diff --git a/dist/index.html b/dist/index.html index 11d79c6..c7c69ae 100644 --- a/dist/index.html +++ b/dist/index.html @@ -12,16 +12,20 @@ background-color: #eee; margin: 0; padding: 0; + overflow: hidden; } .quickMock__toolbar { border-bottom: 1px solid grey; padding: 16px; + height: 40px; } .quickMock__canvas { width: 1000px; height: 1000px; + position: absolute; + overflow: scroll; } @@ -31,12 +35,14 @@ - + diff --git a/dist/libqmock-c6bc2f1219d1ee2f214a.js.map b/dist/libqmock-c6bc2f1219d1ee2f214a.js.map deleted file mode 100644 index ce3564b..0000000 --- a/dist/libqmock-c6bc2f1219d1ee2f214a.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://LibQMock/webpack/bootstrap","webpack://LibQMock/./App.js","webpack://LibQMock/./elements/Window.js","webpack://LibQMock/./elements/index.js","webpack://LibQMock/./index.js","webpack://LibQMock/./node_modules/@sarhanalaa/draw2d/dist/draw2d.js"],"names":[],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA;AAAA;AAAA;AAAuC;AACD;;AAEvB;AACf,uBAAuB,yDAAM;;AAE7B;AACA;AACA,QAAQ,+DAAQ;AAChB,QAAQ,mEAAM;AACd;AACA;;;;;;;;;;;;;ACXA;AAAA;AAAA;AAAuC;;AAEvC,6BAA6B,yDAAM;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,uBAAuB,yDAAM;AAC7B;AACA;AACA;AACA,KAAK;;AAEL,yBAAyB,yDAAM;AAC/B;AACA;AACA;AACA;AACA,KAAK;;AAEL,8BAA8B,yDAAM;AACpC;AACA;AACA;AACA,KAAK;;AAEL,6BAA6B,yDAAM;AACnC,kCAAkC,yDAAM;;AAExC,uCAAuC,SAAS,QAAQ,EAAE;AAC1D;AACA,KAAK;;AAEL,mCAAmC,wCAAwC;;AAE3E;AACA;;AAEe,2EAAY;;;;;;;;;;;;;AC1C3B;AAAA;AAAA;AAAA;AAAuC;AACJ;;AAEpB;AACf,IAAI,6DAAY;AAChB,CAAC;;;;;;;;;;;;;ACLD;AAAA;AAAA;AAAA;AAA6B;;AAET;;;;;;;;;;;;ACFpB;AACA,IAAI,IAAyD;AAC7D;AACA,MAAM,EAKuB;AAC7B,CAAC;AACD,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,gCAAgC;AAClF;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,kBAAkB;AAClF;AACA,yDAAyD,cAAc;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,iCAAiC;AAClF,wHAAwH,mBAAmB,EAAE;AAC7I;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,0BAA0B,EAAE;AAC/D,yCAAyC,eAAe;AACxD;AACA;AACA;AACA;AACA;AACA,8DAA8D,+DAA+D;AAC7H;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B;AAC3B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY;;AAEZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;;AAEA;AACA;AACA;AACA,8BAA8B,YAAY,2BAA2B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,qBAAqB;AACjD,8CAA8C,sBAAsB,+BAA+B,EAAE;AACrG,oCAAoC,sBAAsB;AAC1D,8BAA8B,kDAAkD;AAChF,4BAA4B,6BAA6B;AACzD,6BAA6B,8BAA8B;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;;AAEA;AACA,yBAAyB,oCAAoC;;AAE7D;AACA,mCAAmC,uCAAuC;;AAE1E;AACA;AACA;AACA,4BAA4B;AAC5B,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gGAAgG;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B,gBAAgB,mBAAmB;AACnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0BAA0B,0DAA0D;AACpF;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gBAAgB;AAChB;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,gBAAgB,YAAY;AAC5B,4DAA4D,2CAA2C,sBAAsB;AAC7H,qEAAqE,6CAA6C,wCAAwC;AAC1J,mEAAmE,4CAA4C,yDAAyD;AACxK,6BAA6B,wDAAwD,wEAAwE;AAC7J,UAAU,mCAAmC;AAC7C,IAAI;AACJ;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;;AAEA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;;AAEA,uBAAuB,gBAAgB;AACvC,uBAAuB,gBAAgB;AACvC,2BAA2B,0BAA0B;AACrD,4BAA4B,0BAA0B;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,wBAAwB;AACnD,2BAA2B,wBAAwB;;AAEnD;AACA;AACA;AACA;;AAEA;AACA,sCAAsC;AACtC,sCAAsC;AACtC,uCAAuC;AACvC,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,gBAAgB,0BAA0B;AAC1C;AACA;AACA;;AAEA;AACA,uCAAuC,MAAM;AAC7C;AACA;AACA;;AAEA;AACA,gBAAgB,0BAA0B;AAC1C;AACA;AACA;;AAEA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,8BAA8B,0BAA0B,2BAA2B;AACnF,+BAA+B,0BAA0B,2BAA2B;;AAEpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mCAAmC,gCAAgC,2BAA2B;AAC9F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B;AAC1B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mCAAmC,gCAAgC,uBAAuB;AAC1F;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uCAAuC;AACvC;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,+BAA+B,2BAA2B;AAC1D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2CAA2C;AAC3C;AACA,gBAAgB,0BAA0B;AAC1C;AACA;AACA;;AAEA;;AAEA;AACA;AACA,uDAAuD;AACvD,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,0BAA0B;AAC1C;AACA,gEAAgE;AAChE;AACA;AACA;AACA,6DAA6D;AAC7D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,uBAAuB;AACvE,wDAAwD,2BAA2B;AACnF,oFAAoF,oBAAoB;;AAExG;AACA,mDAAmD,6BAA6B;AAChF,8DAA8D,mCAAmC;AACjG,uDAAuD,4BAA4B;AACnF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yEAAyE,yCAAyC;AAClH,UAAU,YAAY;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,sBAAsB;AACtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,0BAA0B;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B;AAC3B;AACA,cAAc,KAAK;AACnB,8DAA8D;AAC9D,6DAA6D;AAC7D,4CAA4C;AAC5C;AACA,cAAc,KAAK;AACnB,6CAA6C;AAC7C,kCAAkC,EAAE,oCAAoC;AACxE,4BAA4B;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,sCAAsC,oBAAoB;AAC1D;AACA,iBAAiB,sBAAsB;AACvC;AACA,qBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,uDAAuD;AAClF;AACA,8BAA8B;AAC9B;AACA,8BAA8B,6DAA6D;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB,kBAAkB,MAAM;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,wBAAwB;AACvC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,gBAAgB,mCAAmC;AACnD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,+BAA+B;AAC/C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oCAAoC;;AAEpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,4EAA4E;;AAE5E;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,eAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,wBAAwB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sBAAsB,0BAA0B;AAChD;AACA,8DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,gBAAgB,yBAAyB;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,eAAe;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,eAAe;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kCAAkC,WAAW;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,0BAA0B;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,QAAQ;AAC3B;;AAEA;AACA;AACA;AACA;AACA,qCAAqC,oCAAoC;AACzE;AACA,iCAAiC,oBAAoB;AACrD,kCAAkC,kDAAkD,oBAAoB;AACxG;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,0BAA0B;AACzC;AACA;AACA,2FAA2F;AAC3F,gCAAgC;AAChC,4BAA4B;AAC5B,eAAe,kBAAkB;AACjC;AACA,oCAAoC;AACpC;AACA,qCAAqC;AACrC,iBAAiB,qBAAqB;AACtC;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,eAAe;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,gBAAgB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,wBAAwB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,+DAA+D;;AAE/D;AACA,+DAA+D;;AAE/D;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,wBAAwB;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,6CAA6C;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,YAAY;AAC9B,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,sDAAsD;AACtD,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,yBAAyB,iBAAiB;AAC1C,yBAAyB,iBAAiB;;AAE1C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,yBAAyB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B,gCAAgC;;AAE/D;AACA,qBAAqB;AACrB,sBAAsB,4BAA4B;AAClD,IAAI;AACJ;;AAEA;AACA,qBAAqB;AACrB,sBAAsB,oCAAoC;AAC1D,IAAI;AACJ;;AAEA;;AAEA;AACA,gBAAgB,sBAAsB;AACtC;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,sBAAsB;AACtC;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB,sBAAsB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;;AAEA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA,ibAAib,iBAAiB,kBAAkB,6BAA6B,yBAAyB,8BAA8B,2BAA2B,8BAA8B,mCAAmC,yBAAyB,6DAA6D,yDAAyD,yDAAyD,yDAAyD,yDAAyD,+DAA+D,wBAAwB,KAAK,4BAA4B,kCAAkC,+BAA+B,2BAA2B,kCAAkC,uCAAuC,kCAAkC,kCAAkC,KAAK,iCAAiC,yBAAyB,sCAAsC,KAAK,sFAAsF,kCAAkC,kCAAkC,kCAAkC,kCAAkC,KAAK,kCAAkC,wBAAwB,+BAA+B,KAAK,qCAAqC,oBAAoB,KAAK,yEAAyE,wBAAwB,+BAA+B,KAAK,qCAAqC,uBAAuB,oBAAoB,2BAA2B,eAAe,mBAAmB,mBAAmB,KAAK,+PAA+P,oCAAoC,kBAAkB,8BAA8B,8BAA8B,EAAE,iFAAiF,qBAAqB,EAAE,yKAAyK,2BAA2B,KAAK,wCAAwC,yBAAyB,KAAK,gLAAgL,uBAAuB,oBAAoB,2CAA2C,uCAAuC,uCAAuC,uCAAuC,uCAAuC,KAAK,gDAAgD,sBAAsB,KAAK,6CAA6C,sBAAsB,qDAAqD,iBAAiB,KAAK,uDAAuD,uBAAuB,KAAK,iCAAiC,mCAAmC,KAAK;;AAExjH;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mCAAmC,gBAAgB;AACnD,IAAI;AACJ;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA,YAAY,oBAAoB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,oDAAoD,cAAc;;AAElE;AACA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA,0SAA0S,iCAAiC,kCAAkC,QAAQ,0BAA0B,6BAA6B,QAAQ,MAAM,EAAE,oCAAoC,wBAAwB,8BAA8B,QAAQ,0BAA0B,+EAA+E,QAAQ,+BAA+B,qBAAqB,QAAQ,MAAM,EAAE,kCAAkC,eAAe,wCAAwC,eAAe,gCAAgC,oSAAoS,0CAA0C,KAAK,0BAA0B,2FAA2F,0GAA0G,qCAAqC,mJAAmJ,oCAAoC,8BAA8B,6GAA6G,4OAA4O,kCAAkC,uCAAuC,4KAA4K,mMAAmM,0CAA0C,4CAA4C,iBAAiB,cAAc,6CAA6C,UAAU,0EAA0E,4JAA4J,UAAU,kGAAkG,6GAA6G,uFAAuF,uMAAuM,wCAAwC,6BAA6B,qCAAqC,8HAA8H,gDAAgD,yDAAyD,6CAA6C,mDAAmD,wDAAwD,iEAAiE,+CAA+C,wCAAwC,2BAA2B,sBAAsB,oBAAoB,kBAAkB,OAAO,8CAA8C,kBAAkB,cAAc,WAAW,+BAA+B,SAAS,MAAM,IAAI;;AAE3oI,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC,oBAAoB,2CAA2C,sEAAsE,8BAA8B,UAAU,8BAA8B,6CAA6C,wCAAwC,sBAAsB,qBAAqB,cAAc,yBAAyB,YAAY,sBAAsB,KAAK,sBAAsB,8BAA8B,cAAc,0BAA0B,0BAA0B,iBAAiB,oCAAoC,iCAAiC,6BAA6B,cAAc,8BAA8B,wBAAwB,cAAc,gBAAgB,6BAA6B,eAAe,uBAAuB,gBAAgB,WAAW,YAAY,WAAW,KAAK,0BAA0B,cAAc,mBAAmB,cAAc,WAAW,cAAc,cAAc,MAAM,iDAAiD,SAAS,qBAAqB,KAAK,KAAK,oCAAoC,mDAAmD,UAAU,SAAS,aAAa,uBAAuB,uBAAuB,qBAAqB,eAAe,mCAAmC,2CAA2C,cAAc,aAAa,cAAc,mDAAmD,yBAAyB,8BAA8B,IAAI,uCAAuC,SAAS,qBAAqB,+CAA+C,SAAS,yBAAyB,SAAS,aAAa,YAAY,WAAW,KAAK,WAAW,oCAAoC,wBAAwB,8BAA8B,yCAAyC,wBAAwB,gEAAgE,eAAe,sBAAsB,sBAAsB,uCAAuC,OAAO,YAAY,wBAAwB,oHAAoH,2CAA2C,iDAAiD,qFAAqF,0DAA0D,oDAAoD,oBAAoB,eAAe,gBAAgB,MAAM,iBAAiB,6EAA6E,6FAA6F,kCAAkC,oCAAoC,uCAAuC,YAAY,8BAA8B,wEAAwE,gBAAgB,SAAS,YAAY,WAAW,8BAA8B,SAAS,gBAAgB,QAAQ,mBAAmB,KAAK,KAAK,WAAW,6EAA6E,UAAU,IAAI,oBAAoB,SAAS,iDAAiD,qBAAqB,gBAAgB,2BAA2B,UAAU,KAAK,sCAAsC,qCAAqC,kCAAkC,wCAAwC,UAAU,0CAA0C,yBAAyB,gDAAgD,wCAAwC,UAAU,sEAAsE,mBAAmB,8CAA8C,qCAAqC,+BAA+B,eAAe,uBAAuB,8BAA8B,6FAA6F,0BAA0B,yBAAyB,yEAAyE,uBAAuB,2BAA2B,iDAAiD,kBAAkB,mDAAmD,YAAY,iDAAiD,kBAAkB,8DAA8D,oBAAoB,wCAAwC,yBAAyB,QAAQ,IAAI,KAAK,kBAAkB,QAAQ,IAAI,uBAAuB,0BAA0B,+EAA+E,QAAQ,IAAI,YAAY,IAAI,mCAAmC,SAAS,qCAAqC,wBAAwB,wCAAwC,qDAAqD,oCAAoC,+CAA+C,2CAA2C,4BAA4B,0CAA0C,0EAA0E,qeAAqe,8BAA8B,8EAA8E,QAAQ,IAAI,KAAK,kBAAkB,QAAQ,IAAI,wCAAwC,mBAAmB,aAAa,iDAAiD,YAAY,kCAAkC,wCAAwC,sBAAsB,uBAAuB,MAAM,8BAA8B,oDAAoD,sBAAsB,kDAAkD,6CAA6C,mBAAmB,oDAAoD,iBAAiB,QAAQ,wEAAwE,mBAAmB,MAAM,+CAA+C,mBAAmB,MAAM,sFAAsF,iBAAiB,oBAAoB,4BAA4B,KAAK,4BAA4B,aAAa,uBAAuB,SAAS,4BAA4B,mBAAmB,IAAI,4BAA4B,SAAS,mBAAmB,MAAM,yDAAyD,mBAAmB,cAAc,8BAA8B,sBAAsB,oBAAoB,mBAAmB,IAAI,oBAAoB,2BAA2B,mBAAmB,wBAAwB,eAAe,mBAAmB,uBAAuB,sBAAsB,6BAA6B,mBAAmB,IAAI,+DAA+D,SAAS,YAAY,0BAA0B,aAAa,8BAA8B,SAAS,qBAAqB,UAAU,sBAAsB,WAAW,gBAAgB,aAAa,WAAW,SAAS,MAAM,cAAc,mBAAmB,cAAc,6CAA6C,oEAAoE,yBAAyB,cAAc,cAAc,mCAAmC,oIAAoI,gCAAgC,4BAA4B,8BAA8B,6BAA6B,qBAAqB,kCAAkC,kCAAkC,iCAAiC,gCAAgC,iCAAiC,gCAAgC,gCAAgC,8BAA8B,oCAAoC,gCAAgC,8BAA8B,qBAAqB,8BAA8B,6BAA6B,6BAA6B,yBAAyB,8BAA8B,MAAM,6CAA6C,gCAAgC,2BAA2B,sNAAsN,kFAAkF,aAAa,iDAAiD,cAAc,kBAAkB,4CAA4C,mBAAmB,gBAAgB,kBAAkB,6BAA6B,cAAc,kBAAkB,QAAQ,WAAW,kEAAkE,SAAS,oBAAoB,gCAAgC,8CAA8C,MAAM,EAAE,cAAc,sBAAsB,yCAAyC,SAAS,gBAAgB,qFAAqF,sCAAsC,QAAQ,IAAI,KAAK,uCAAuC,QAAQ,WAAW,KAAK,OAAO,+BAA+B,2BAA2B,OAAO,aAAa,uBAAuB,0EAA0E,sDAAsD,WAAW,wBAAwB,WAAW,yBAAyB,0BAA0B,yBAAyB,uBAAuB,2DAA2D,cAAc,OAAO,qHAAqH,2EAA2E,yCAAyC,0BAA0B,eAAe,8IAA8I,kCAAkC,kBAAkB,sBAAsB,+BAA+B,wBAAwB,mBAAmB,IAAI,KAAK,OAAO,qBAAqB,6CAA6C,6HAA6H,SAAS,aAAa,+DAA+D,cAAc,eAAe,qBAAqB,6BAA6B,mBAAmB,2BAA2B,wDAAwD,kEAAkE,cAAc,OAAO,6EAA6E,0BAA0B,yCAAyC,sGAAsG,sBAAsB,gBAAgB,wBAAwB,+BAA+B,wBAAwB,mBAAmB,IAAI,KAAK,OAAO,+BAA+B,kCAAkC,SAAS,aAAa,8DAA8D,cAAc,4CAA4C,UAAU,2BAA2B,wDAAwD,6DAA6D,cAAc,OAAO,qHAAqH,2EAA2E,yCAAyC,oBAAoB,eAAe,2KAA2K,kEAAkE,8BAA8B,8CAA8C,mBAAmB,IAAI,KAAK,OAAO,qBAAqB,0CAA0C,6CAA6C,2HAA2H,8CAA8C,mBAAmB,IAAI,KAAK,OAAO,qBAAqB,0CAA0C,6CAA6C,4HAA4H,SAAS,aAAa,iEAAiE,cAAc,eAAe,qBAAqB,6BAA6B,mBAAmB,6BAA6B,wDAAwD,oEAAoE,cAAc,OAAO,6EAA6E,0BAA0B,yCAAyC,mHAAmH,0DAA0D,0BAA0B,gDAAgD,mBAAmB,IAAI,KAAK,OAAO,qBAAqB,aAAa,sCAAsC,SAAS,wCAAwC,gDAAgD,mBAAmB,IAAI,KAAK,OAAO,qBAAqB,aAAa,sCAAsC,SAAS,yCAAyC,SAAS,aAAa,gEAAgE,cAAc,4CAA4C,UAAU,6BAA6B,wDAAwD,+DAA+D,cAAc,OAAO,yCAAyC,2EAA2E,yCAAyC,wCAAwC,eAAe,sEAAsE,8CAA8C,kBAAkB,sBAAsB,+BAA+B,4BAA4B,SAAS,6CAA6C,6IAA6I,yBAAyB,mBAAmB,IAAI,KAAK,mCAAmC,MAAM,iCAAiC,qBAAqB,qCAAqC,8HAA8H,qCAAqC,gCAAgC,oCAAoC,+CAA+C,iBAAiB,gHAAgH,eAAe,gHAAgH,qHAAqH,iBAAiB,gDAAgD,oBAAoB,iFAAiF,wCAAwC,gEAAgE,gqBAAgqB,KAAK,uBAAuB,mBAAmB,IAAI,6BAA6B,SAAS,aAAa,mDAAmD,WAAW,okBAAokB,6CAA6C;;AAE5kjB,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA,s+CAAs+C,q5BAAq5B,2DAA2D,wCAAwC,iCAAiC,aAAa,EAAE,SAAS,0CAA0C,uCAAuC,SAAS,OAAO,iCAAiC,SAAS,KAAK,kBAAkB,qKAAqK,wCAAwC,6BAA6B,aAAa,kEAAkE,MAAM,weAAwe,oCAAoC,uUAAuU,qGAAqG,qCAAqC,yBAAyB,sDAAsD,QAAQ,uCAAuC,sDAAsD,kDAAkD,kEAAkE,qBAAqB,iBAAiB,sCAAsC,wCAAwC,4CAA4C,mDAAmD,+BAA+B,uCAAuC,mCAAmC,qBAAqB,iBAAiB,2BAA2B,QAAQ,OAAO,qCAAqC,0CAA0C,qDAAqD,2DAA2D,uCAAuC,sCAAsC,6BAA6B,gCAAgC,oCAAoC,sDAAsD,oEAAoE,2CAA2C,0CAA0C,iCAAiC,6BAA6B,mCAAmC,OAAO,gDAAgD,yBAAyB,qBAAqB,OAAO,uDAAuD,mCAAmC,kCAAkC,yBAAyB,qBAAqB,iBAAiB,+BAA+B,mCAAmC,+CAA+C,cAAc,iEAAiE,2XAA2X,sRAAsR,0CAA0C,QAAQ,OAAO,yBAAyB,2CAA2C,QAAQ,OAAO,gCAAgC,uDAAuD,0BAA0B,iCAAiC,wCAAwC,mCAAmC,2CAA2C,2DAA2D,yBAAyB,qBAAqB,iBAAiB,yBAAyB,aAAa,uBAAuB,UAAU,qMAAqM,sCAAsC,mlBAAmlB,qCAAqC,yCAAyC,uXAAuX,gCAAgC,2CAA2C,sCAAsC,aAAa,yEAAyE,8CAA8C,QAAQ,OAAO,wBAAwB,iFAAiF,MAAM,EAAE,aAAa,4BAA4B,wCAAwC,QAAQ,wBAAwB,2BAA2B,aAAa,wBAAwB,sCAAsC,yCAAyC,uCAAuC,iBAAiB,cAAc,UAAU,uTAAuT,iDAAiD,oCAAoC,oCAAoC,EAAE,0MAA0M,oDAAoD,gCAAgC,iGAAiG,cAAc,UAAU,wNAAwN,qBAAqB,UAAU,ycAAyc,0BAA0B,+GAA+G,aAAa,iCAAiC,UAAU,wPAAwP,kDAAkD,UAAU,4jBAA4jB,wBAAwB,wCAAwC,OAAO,uBAAuB,aAAa,uKAAuK,0CAA0C,QAAQ,OAAO,2BAA2B,gBAAgB,0BAA0B,oCAAoC,iCAAiC,+CAA+C,0CAA0C,qDAAqD,yBAAyB,qBAAqB,OAAO,yDAAyD,gDAAgD,yBAAyB,qBAAqB,kDAAkD,iBAAiB,aAAa,wCAAwC,QAAQ,OAAO,2BAA2B,6BAA6B,4BAA4B,kCAAkC,wDAAwD,QAAQ,wBAAwB,iDAAiD,sCAAsC,6BAA6B,sDAAsD,yBAAyB,2EAA2E,mDAAmD,0DAA0D,QAAQ,0BAA0B,mDAAmD,sCAAsC,6BAA6B,+DAA+D,yBAAyB,qBAAqB,OAAO,mCAAmC,2EAA2E,8CAA8C,yBAAyB,qBAAqB,4BAA4B,iBAAiB,aAAa,UAAU,0LAA0L,0BAA0B,wCAAwC,+WAA+W,kCAAkC,qCAAqC,gDAAgD,cAAc,oCAAoC,UAAU,gKAAgK,oCAAoC,sDAAsD,UAAU,uBAAuB,KAAK,GAAG,imBAAimB,2DAA2D,+DAA+D,oCAAoC,aAAa,EAAE,SAAS,0CAA0C,uDAAuD,SAAS,OAAO,6CAA6C,SAAS,KAAK,uBAAuB,u9BAAu9B,yBAAyB,4mBAA4mB,4NAA4N,iFAAiF,8EAA8E,sKAAsK,GAAG,iHAAiH,GAAG,wCAAwC,4CAA4C,6EAA6E,aAAa,+BAA+B,sGAAsG,aAAa,OAAO,oEAAoE,gEAAgE,uCAAuC,wHAAwH,iEAAiE,qBAAqB,EAAE,iBAAiB,OAAO,iEAAiE,iBAAiB,aAAa,SAAS,8BAA8B,oBAAoB,2EAA2E,2DAA2D,4BAA4B,SAAS,2FAA2F,sEAAsE,2BAA2B,kHAAkH,kCAAkC,ijBAAijB,qCAAqC,+BAA+B,uCAAuC,qBAAqB,qPAAqP,SAAS,EAAE,sEAAsE,OAAO,OAAO,iMAAiM,+BAA+B,gDAAgD,qBAAqB,2BAA2B,kBAAkB,EAAE,8BAA8B,iBAAiB,OAAO,0EAA0E,aAAa,shBAAshB,qIAAqI,+bAA+b,yIAAyI,EAAE,aAAa,EAAE,iWAAiW,8CAA8C,iUAAiU,21CAA21C,2DAA2D,0lBAA0lB,2jBAA2jB,aAAa,k+DAAk+D,0CAA0C,qCAAqC,aAAa,6CAA6C,+CAA+C,aAAa,iCAAiC,kCAAkC,yBAAyB,aAAa,gEAAgE,wBAAwB,gRAAgR,iBAAiB,8FAA8F,aAAa,oDAAoD,iCAAiC,4BAA4B,iBAAiB,4IAA4I,aAAa,qCAAqC,qCAAqC,6CAA6C,iBAAiB,wCAAwC,qCAAqC,wDAAwD,iBAAiB,yCAAyC,qCAAqC,+DAA+D,iBAAiB,sCAAsC,qCAAqC,sEAAsE,iBAAiB,uCAAuC,qCAAqC,iEAAiE,iBAAiB,sCAAsC,6CAA6C,6EAA6E,iBAAiB,qCAAqC,6CAA6C,6EAA6E,iBAAiB,aAAa,8UAA8U,8BAA8B,gCAAgC,iBAAiB,8CAA8C,wCAAwC,6CAA6C,QAAQ,OAAO,oCAAoC,kDAAkD,QAAQ,UAAU,6DAA6D,6DAA6D,qCAAqC,yCAAyC,qBAAqB,iBAAiB,4BAA4B,cAAc,qBAAqB,wTAAwT,gCAAgC,mEAAmE,iDAAiD,6BAA6B,qDAAqD,qDAAqD,oCAAoC,aAAa,qBAAqB,SAAS,mTAAmT,yBAAyB,mrBAAmrB,uCAAuC,aAAa,kEAAkE,mCAAmC,EAAE,mCAAmC,EAAE,oCAAoC,iDAAiD,yEAAyE,eAAe,EAAE,iCAAiC,gCAAgC,uEAAuE,kBAAkB,mBAAmB,6WAA6W,wCAAwC,qCAAqC,uCAAuC,aAAa,oCAAoC,0CAA0C,aAAa,yTAAyT,UAAU,iCAAiC,oEAAoE,2BAA2B,aAAa,0CAA0C,qDAAqD,2CAA2C,aAAa,uBAAuB,SAAS,0hBAA0hB,6BAA6B,gEAAgE,+BAA+B,6BAA6B,iBAAiB,yEAAyE,aAAa,OAAO,yEAAyE,aAAa,UAAU,oPAAoP,wCAAwC,UAAU,oPAAoP,mEAAmE,UAAU,8aAA8a,qEAAqE,sCAAsC,sCAAsC,sEAAsE,qCAAqC,iBAAiB,aAAa,OAAO,iCAAiC,yCAAyC,sCAAsC,uCAAuC,iBAAiB,+CAA+C,gDAAgD,iBAAiB,aAAa,yBAAyB,UAAU,6MAA6M,gCAAgC,+GAA+G,cAAc,SAAS,yBAAyB,4FAA4F,kCAAkC,SAAS,EAAE,wHAAwH,mKAAmK,yDAAyD,2BAA2B,mCAAmC,oCAAoC,yCAAyC,aAAa,UAAU,sCAAsC,4BAA4B,qJAAqJ,4BAA4B,yBAAyB,oEAAoE,gDAAgD,sCAAsC,yCAAyC,qBAAqB,WAAW,0DAA0D,qBAAqB,sDAAsD,qDAAqD,6BAA6B,0EAA0E,+EAA+E,0GAA0G,uFAAuF,yBAAyB,WAAW,4CAA4C,yBAAyB,qBAAqB,EAAE,iBAAiB,OAAO,uDAAuD,4DAA4D,+CAA+C,8CAA8C,qDAAqD,8CAA8C,oGAAoG,qBAAqB,EAAE,iBAAiB,oCAAoC,aAAa,wCAAwC,mEAAmE,aAAa,wCAAwC,mEAAmE,aAAa,wCAAwC,gCAAgC,aAAa,8CAA8C,iGAAiG,4BAA4B,4BAA4B,4BAA4B,iBAAiB,mDAAmD,0CAA0C,8BAA8B,8BAA8B,8BAA8B,iBAAiB,8CAA8C,6BAA6B,6BAA6B,6BAA6B,iBAAiB,qCAAqC,aAAa,iDAAiD,yBAAyB,yBAAyB,yBAAyB,2BAA2B,8KAA8K,yDAAyD,2BAA2B,cAAc,mVAAmV,0XAA0X,+CAA+C,oBAAoB,wFAAwF,qCAAqC,8BAA8B,8BAA8B,8BAA8B,kCAAkC,aAAa,kFAAkF,qCAAqC,8BAA8B,8BAA8B,8BAA8B,kCAAkC,aAAa,OAAO,4CAA4C,wCAAwC,iBAAiB,4FAA4F,yCAAyC,kCAAkC,kCAAkC,kCAAkC,yCAAyC,kCAAkC,iBAAiB,OAAO,2BAA2B,eAAe,+EAA+E,iBAAiB,aAAa,uCAAuC,uBAAuB,UAAU,6RAA6R,sKAAsK,wDAAwD,mFAAmF,wBAAwB,wBAAwB,wBAAwB,wBAAwB,aAAa,qBAAqB,8BAA8B,+BAA+B,sBAAsB,yCAAyC,8BAA8B,wBAAwB,uCAAuC,uCAAuC,uCAAuC,0CAA0C,UAAU,oRAAoR,sKAAsK,wDAAwD,mFAAmF,wBAAwB,wBAAwB,wBAAwB,aAAa,0CAA0C,yBAAyB,yBAAyB,yBAAyB,aAAa,qBAAqB,8BAA8B,+BAA+B,6CAA6C,yCAAyC,kCAAkC,wBAAwB,uCAAuC,uCAAuC,uCAAuC,0CAA0C,UAAU,yQAAyQ,iHAAiH,qDAAqD,oCAAoC,qBAAqB,qBAAqB,qBAAqB,+BAA+B,8BAA8B,kCAAkC,iLAAiL,2CAA2C,mCAAmC,oBAAoB,yCAAyC,UAAU,yQAAyQ,iHAAiH,qDAAqD,oCAAoC,qBAAqB,qBAAqB,qBAAqB,qCAAqC,8BAA8B,8BAA8B,sBAAsB,yJAAyJ,2CAA2C,4BAA4B,oGAAoG,oBAAoB,yCAAyC,UAAU,sCAAsC,yDAAyD,UAAU,sCAAsC,8CAA8C,QAAQ,8BAA8B,yDAAyD,aAAa,SAAS,kDAAkD,6BAA6B,6KAA6K,2DAA2D,uCAAuC,wCAAwC,oFAAoF,iBAAiB,mEAAmE,iCAAiC,mDAAmD,gFAAgF,aAAa,wBAAwB,SAAS,0DAA0D,mDAAmD,oDAAoD,aAAa,cAAc,sCAAsC,6BAA6B,mCAAmC,6CAA6C,cAAc,uCAAuC,6CAA6C,cAAc,wCAAwC,0BAA0B,UAAU,oCAAoC,4BAA4B,SAAS,ynBAAynB,UAAU,2GAA2G,WAAW,sHAAsH,WAAW,+QAA+Q,mOAAmO,0DAA0D,2EAA2E,wBAAwB,qEAAqE,aAAa,qCAAqC,wBAAwB,2DAA2D,aAAa,uHAAuH,qMAAqM,sBAAsB,6BAA6B,0DAA0D,8DAA8D,4DAA4D,iBAAiB,6BAA6B,iEAAiE,kEAAkE,gEAAgE,iBAAiB,6BAA6B,wDAAwD,6CAA6C,kEAAkE,+CAA+C,oEAAoE,8CAA8C,mEAAmE,mGAAmG,kFAAkF,iBAAiB,6BAA6B,wDAAwD,6CAA6C,kEAAkE,+CAA+C,oEAAoE,8CAA8C,mEAAmE,yGAAyG,mGAAmG,kFAAkF,gEAAgE,iBAAiB,6BAA6B,wDAAwD,6CAA6C,kEAAkE,+CAA+C,oEAAoE,8CAA8C,mEAAmE,yGAAyG,mGAAmG,kFAAkF,gEAAgE,iBAAiB,uBAAuB,kDAAkD,uGAAuG,qEAAqE,2BAA2B,aAAa,oBAAoB,qEAAqE,SAAS,KAAK,uWAAuW,0CAA0C,SAAS,EAAE,8VAA8V,0CAA0C,SAAS,EAAE,mVAAmV,+BAA+B,sBAAsB,EAAE,4GAA4G,SAAS,EAAE,qXAAqX,sEAAsE,4BAA4B,+DAA+D,4BAA4B,8BAA8B,4BAA4B,8BAA8B,wDAAwD,uBAAuB,EAAE,aAAa,2BAA2B,UAAU,sMAAsM,8BAA8B,UAAU,kGAAkG,uBAAuB,8CAA8C,mBAAmB,UAAU,8CAA8C,+BAA+B,sBAAsB,+BAA+B,sBAAsB,+BAA+B,sBAAsB,+BAA+B,kBAAkB,wBAAwB,6BAA6B,gCAAgC,sCAAsC,qBAAqB,0BAA0B,gCAAgC,wBAAwB,qBAAqB,0BAA0B,gCAAgC,wBAAwB,gCAAgC,wBAAwB,qBAAqB,iBAAiB,OAAO,wCAAwC,oCAAoC,qBAAqB,eAAe,gCAAgC,4BAA4B,qBAAqB,iBAAiB,kUAAkU,aAAa,yBAAyB,SAAS,ibAAib,8BAA8B,4BAA4B,aAAa,wCAAwC,0BAA0B,0CAA0C,aAAa,mCAAmC,iEAAiE,2BAA2B,wEAAwE,iEAAiE,aAAa,+BAA+B,yEAAyE,mFAAmF,2DAA2D,6CAA6C,qBAAqB,EAAE,6DAA6D,oEAAoE,qCAAqC,uDAAuD,qBAAqB,wCAAwC,uDAAuD,qBAAqB,kDAAkD,oFAAoF,iDAAiD,kCAAkC,yBAAyB,qBAAqB,iBAAiB,EAAE,aAAa,2CAA2C,sCAAsC,wBAAwB,UAAU,ucAAuc,2BAA2B,4BAA4B,aAAa,+BAA+B,uBAAuB,2BAA2B,kEAAkE,8DAA8D,aAAa,+BAA+B,mEAAmE,qFAAqF,2DAA2D,6CAA6C,qBAAqB,EAAE,mDAAmD,iBAAiB,EAAE,aAAa,2CAA2C,wBAAwB,SAAS,EAAE,mDAAmD,8CAA8C,wBAAwB,kCAAkC,aAAa,OAAO,yBAAyB,gDAAgD,aAAa,oCAAoC,kEAAkE,mCAAmC,mDAAmD,iBAAiB,aAAa,EAAE,yBAAyB,UAAU,oxBAAoxB,2HAA2H,4IAA4I,mBAAmB,8IAA8I,uBAAuB,0JAA0J,qBAAqB,sJAAsJ,qFAAqF,iGAAiG,m1BAAm1B,mDAAmD,oBAAoB,8DAA8D,aAAa,qBAAqB,aAAa,yBAAyB,aAAa,uBAAuB,aAAa,2CAA2C,UAAU,gxBAAgxB,qBAAqB,yIAAyI,qBAAqB,6IAA6I,YAAY,uFAAuF,wCAAwC,+DAA+D,aAAa,iDAAiD,oBAAoB,sOAAsO,UAAU,ybAAyb,8EAA8E,UAAU,sYAAsY,wCAAwC,+jBAA+jB,UAAU,2CAA2C,gHAAgH,4CAA4C,SAAS,4DAA4D,4BAA4B,sBAAsB,aAAa,0CAA0C,gTAAgT,2BAA2B,OAAO,OAAO,mNAAmN,oDAAoD,aAAa,4BAA4B,SAAS,gEAAgE,wEAAwE,uBAAuB,aAAa,2HAA2H,2DAA2D,qCAAqC,0BAA0B,+CAA+C,+DAA+D,aAAa,sBAAsB,SAAS,4DAA4D,oNAAoN,uBAAuB,aAAa,0PAA0P,mCAAmC,uBAAuB,aAAa,sJAAsJ,oaAAoa,uBAAuB,aAAa,oBAAoB,cAAc,SAAS,oCAAoC,2CAA2C,SAAS,yCAAyC,8CAA8C,SAAS,qDAAqD,sFAAsF,mDAAmD,0CAA0C,aAAa,qPAAqP,0CAA0C,2BAA2B,YAAY,OAAO,0EAA0E,4BAA4B,0BAA0B,EAAE,aAAa,uBAAuB,YAAY,OAAO,sEAAsE,4BAA4B,0BAA0B,EAAE,aAAa,uBAAuB,QAAQ,OAAO,+BAA+B,QAAQ,OAAO,yYAAyY,6BAA6B,qEAAqE,qCAAqC,yBAAyB,8DAA8D,0MAA0M,+EAA+E,4CAA4C,sCAAsC,6BAA6B,OAAO,0CAA0C,gOAAgO,EAAE,6BAA6B,yBAAyB,qBAAqB,iBAAiB,aAAa,uBAAuB,SAAS,8TAA8T,glBAAglB,+EAA+E,iDAAiD,UAAU,4DAA4D,oDAAoD,UAAU,2DAA2D,yCAAyC,yCAAyC,wGAAwG,8CAA8C,QAAQ,OAAO,kCAAkC,qCAAqC,qCAAqC,qCAAqC,iBAAiB,OAAO,yCAAyC,4DAA4D,qCAAqC,qCAAqC,qBAAqB,OAAO,oEAAoE,iCAAiC,iCAAiC,qBAAqB,sDAAsD,QAAQ,OAAO,0CAA0C,6CAA6C,6CAA6C,6CAA6C,yBAAyB,OAAO,iDAAiD,oEAAoE,6CAA6C,6CAA6C,6BAA6B,OAAO,4EAA4E,yCAAyC,yCAAyC,6BAA6B,0EAA0E,4CAA4C,4CAA4C,6BAA6B,OAAO,iEAAiE,QAAQ,OAAO,yDAAyD,yDAAyD,wDAAwD,wDAAwD,iCAAiC,uDAAuD,6BAA6B,yBAAyB,qBAAqB,iBAAiB,aAAa,uBAAuB,SAAS,kbAAkb,wCAAwC,+IAA+I,UAAU,mDAAmD,gCAAgC,wJAAwJ,cAAc,UAAU,4PAA4P,whBAAwhB,wEAAwE,sCAAsC,+BAA+B,oCAAoC,4BAA4B,qEAAqE,EAAE,+LAA+L,4BAA4B,4BAA4B,+CAA+C,iBAAiB,wCAAwC,gIAAgI,iDAAiD,QAAQ,OAAO,gCAAgC,wCAAwC,iCAAiC,iCAAiC,kCAAkC,kCAAkC,qBAAqB,OAAO,qFAAqF,4DAA4D,4DAA4D,iCAAiC,iCAAiC,qBAAqB,iBAAiB,+RAA+R,8TAA8T,qCAAqC,0BAA0B,aAAa,+CAA+C,2CAA2C,8CAA8C,2BAA2B,aAAa,wEAAwE,2CAA2C,8BAA8B,8CAA8C,iBAAiB,yFAAyF,iFAAiF,iBAAiB,qKAAqK,+CAA+C,wCAAwC,wCAAwC,2BAA2B,2BAA2B,4BAA4B,4CAA4C,iBAAiB,0DAA0D,QAAQ,OAAO,kFAAkF,yDAAyD,qDAAqD,uCAAuC,oFAAoF,6CAA6C,6CAA6C,6CAA6C,6CAA6C,+DAA+D,+DAA+D,sCAAsC,sGAAsG,sCAAsC,kFAAkF,2CAA2C,mGAAmG,QAAQ,OAAO,mFAAmF,iCAAiC,yBAAyB,qBAAqB,OAAO,wCAAwC,6CAA6C,2CAA2C,2CAA2C,yBAAyB,uDAAuD,QAAQ,OAAO,8CAA8C,yBAAyB,qBAAqB,4CAA4C,wCAAwC,sEAAsE,mCAAmC,kCAAkC,qFAAqF,kCAAkC,qFAAqF,kCAAkC,kFAAkF,kDAAkD,qBAAqB,iBAAiB,8CAA8C,yCAAyC,2BAA2B,aAAa,wEAAwE,2CAA2C,8BAA8B,8CAA8C,iBAAiB,yFAAyF,iFAAiF,iBAAiB,sDAAsD,2CAA2C,iBAAiB,qKAAqK,+CAA+C,yCAAyC,yCAAyC,2BAA2B,2BAA2B,4BAA4B,2CAA2C,iBAAiB,gKAAgK,iEAAiE,QAAQ,OAAO,qCAAqC,sCAAsC,yDAAyD,qDAAqD,uCAAuC,oFAAoF,6CAA6C,6CAA6C,6CAA6C,6CAA6C,oDAAoD,oDAAoD,sCAAsC,yFAAyF,sCAAsC,yFAAyF,sCAAsC,8GAA8G,iEAAiE,QAAQ,OAAO,2DAA2D,6DAA6D,iCAAiC,0CAA0C,gFAAgF,sCAAsC,uFAAuF,gDAAgD,+FAA+F,QAAQ,OAAO,sEAAsE,iCAAiC,yBAAyB,qBAAqB,2BAA2B,2DAA2D,kCAAkC,wEAAwE,0DAA0D,qBAAqB,OAAO,uDAAuD,QAAQ,OAAO,yCAAyC,yBAAyB,qBAAqB,mCAAmC,sEAAsE,mCAAmC,kCAAkC,wEAAwE,kCAAkC,wEAAwE,kCAAkC,oFAAoF,iDAAiD,gFAAgF,gDAAgD,qBAAqB,iBAAiB,8CAA8C,yCAAyC,2BAA2B,aAAa,8CAA8C,gDAAgD,aAAa,sDAAsD,gEAAgE,uPAAuP,aAAa,oGAAoG,wWAAwW,4IAA4I,gCAAgC,YAAY,qBAAqB,EAAE,iCAAiC,8CAA8C,8BAA8B,8BAA8B,8CAA8C,8BAA8B,8BAA8B,sMAAsM,sEAAsE,gCAAgC,yCAAyC,oCAAoC,oCAAoC,qBAAqB,sgBAAsgB,oDAAoD,gDAAgD,iDAAiD,iDAAiD,gDAAgD,yCAAyC,qBAAqB,iDAAiD,yCAAyC,qBAAqB,iBAAiB,OAAO,sCAAsC,sCAAsC,sCAAsC,sCAAsC,iBAAiB,iCAAiC,qCAAqC,yGAAyG,sEAAsE,gDAAgD,gDAAgD,uGAAuG,iBAAiB,6BAA6B,icAAic,0CAA0C,0CAA0C,gCAAgC,qDAAqD,iBAAiB,OAAO,yEAAyE,oCAAoC,oDAAoD,QAAQ,OAAO,kHAAkH,qBAAqB,kCAAkC,iBAAiB,aAAa,sFAAsF,+BAA+B,wBAAwB,yOAAyO,aAAa,kFAAkF,0YAA0Y,gDAAgD,gDAAgD,uCAAuC,uFAAuF,kCAAkC,kCAAkC,iBAAiB,uCAAuC,uFAAuF,kCAAkC,kCAAkC,iBAAiB,kEAAkE,sDAAsD,8BAA8B,iEAAiE,iEAAiE,gDAAgD,gDAAgD,uCAAuC,uFAAuF,kCAAkC,kCAAkC,iBAAiB,uCAAuC,uFAAuF,kCAAkC,kCAAkC,iBAAiB,wBAAwB,0BAA0B,2CAA2C,2BAA2B,2CAA2C,kBAAkB,aAAa,0EAA0E,gDAAgD,0CAA0C,gDAAgD,iBAAiB,kIAAkI,yDAAyD,+BAA+B,yDAAyD,6DAA6D,0CAA0C,UAAU,oCAAoC,yEAAyE,yBAAyB,iEAAiE,0CAA0C,qFAAqF,8CAA8C,sCAAsC,gJAAgJ,sCAAsC,4GAA4G,uIAAuI,6FAA6F,oGAAoG,sCAAsC,mGAAmG,6CAA6C,iCAAiC,8EAA8E,sCAAsC,4GAA4G,yIAAyI,kGAAkG,0DAA0D,sCAAsC,0GAA0G,+CAA+C,iCAAiC,oGAAoG,sCAAsC,sFAAsF,+CAA+C,0GAA0G,sCAAsC,+HAA+H,sCAAsC,2HAA2H,sCAAsC,2HAA2H,sCAAsC,uHAAuH,sCAAsC,yBAAyB,oCAAoC,qBAAqB,gDAAgD,+CAA+C,0CAA0C,2CAA2C,+CAA+C,gDAAgD,gHAAgH,yGAAyG,6BAA6B,4CAA4C,sEAAsE,yBAAyB,qBAAqB,gEAAgE,6FAA6F,oEAAoE,sCAAsC,sCAAsC,+CAA+C,+CAA+C,sEAAsE,yBAAyB,qBAAqB,0PAA0P,+HAA+H,QAAQ,OAAO,+CAA+C,4JAA4J,2CAA2C,gFAAgF,uDAAuD,0DAA0D,yIAAyI,mMAAmM,uFAAuF,0FAA0F,qEAAqE,+CAA+C,sDAAsD,yBAAyB,iEAAiE,mFAAmF,0CAA0C,qBAAqB,kDAAkD,kDAAkD,8KAA8K,8CAA8C,8CAA8C,mEAAmE,mEAAmE,+EAA+E,+EAA+E,uDAAuD,uDAAuD,iBAAiB,0BAA0B,6CAA6C,iBAAiB,wCAAwC,aAAa,sFAAsF,8BAA8B,qDAAqD,QAAQ,OAAO,gCAAgC,0EAA0E,iDAAiD,0CAA0C,oCAAoC,qBAAqB,oDAAoD,8CAA8C,4DAA4D,mCAAmC,iBAAiB,iDAAiD,QAAQ,OAAO,0CAA0C,yGAAyG,2CAA2C,QAAQ,OAAO,iDAAiD,qDAAqD,sCAAsC,6BAA6B,yBAAyB,mCAAmC,sCAAsC,mCAAmC,yBAAyB,2CAA2C,4DAA4D,8BAA8B,OAAO,OAAO,uCAAuC,2DAA2D,yBAAyB,qBAAqB,iBAAiB,4BAA4B,aAAa,qDAAqD,yDAAyD,+DAA+D,oDAAoD,oDAAoD,aAAa,0DAA0D,uCAAuC,2BAA2B,iBAAiB,gCAAgC,+BAA+B,oCAAoC,oCAAoC,+BAA+B,aAAa,wDAAwD,0CAA0C,2BAA2B,iBAAiB,gCAAgC,uCAAuC,+BAA+B,uCAAuC,kCAAkC,aAAa,uEAAuE,gCAAgC,qDAAqD,iDAAiD,mCAAmC,8BAA8B,8BAA8B,aAAa,yEAAyE,gCAAgC,2DAA2D,iDAAiD,mCAAmC,8BAA8B,8BAA8B,aAAa,wYAAwY,wEAAwE,4BAA4B,iEAAiE,+CAA+C,sCAAsC,yBAAyB,sBAAsB,gDAAgD,iCAAiC,aAAa,6YAA6Y,gEAAgE,aAAa,2EAA2E,mCAAmC,0CAA0C,iBAAiB,8CAA8C,EAAE,iCAAiC,iQAAiQ,0CAA0C,4BAA4B,sDAAsD,QAAQ,OAAO,maAAma,4DAA4D,2CAA2C,mDAAmD,mDAAmD,yDAAyD,yDAAyD,8DAA8D,6BAA6B,OAAO,wDAAwD,6BAA6B,yBAAyB,6BAA6B,4CAA4C,yDAAyD,0FAA0F,4CAA4C,6BAA6B,sBAAsB,+CAA+C,6DAA6D,6DAA6D,2DAA2D,iCAAiC,OAAO,+DAA+D,iCAAiC,4CAA4C,6BAA6B,yBAAyB,6BAA6B,yDAAyD,yDAAyD,sGAAsG,2CAA2C,kDAAkD,6BAA6B,sBAAsB,+CAA+C,6DAA6D,6DAA6D,gEAAgE,iCAAiC,OAAO,oEAAoE,iCAAiC,2CAA2C,2CAA2C,6BAA6B,yBAAyB,0CAA0C,sEAAsE,yBAAyB,qCAAqC,sCAAsC,qBAAqB,iBAAiB,qPAAqP,8BAA8B,0BAA0B,4BAA4B,gCAAgC,gCAAgC,+DAA+D,oCAAoC,oCAAoC,iBAAiB,OAAO,iCAAiC,iBAAiB,aAAa,yCAAyC,gCAAgC,0CAA0C,iDAAiD,6DAA6D,uDAAuD,wDAAwD,qBAAqB,OAAO,sCAAsC,qBAAqB,uDAAuD,2DAA2D,qBAAqB,6BAA6B,yCAAyC,qBAAqB,OAAO,sCAAsC,qBAAqB,iBAAiB,aAAa,2EAA2E,0CAA0C,EAAE,gBAAgB,sDAAsD,sDAAsD,mLAAmL,sBAAsB,eAAe,OAAO,mDAAmD,iDAAiD,yQAAyQ,+BAA+B,qBAAqB,iCAAiC,+BAA+B,kEAAkE,QAAQ,OAAO,0DAA0D,wDAAwD,qBAAqB,iBAAiB,wBAAwB,2EAA2E,cAAc,iDAAiD,0BAA0B,wFAAwF,oCAAoC,uBAAuB,aAAa,oCAAoC,gCAAgC,4BAA4B,2OAA2O,iBAAiB,OAAO,4BAA4B,qIAAqI,iBAAiB,aAAa,oBAAoB,uIAAuI,UAAU,8UAA8U,uBAAuB,2WAA2W,sYAAsY,gDAAgD,UAAU,2CAA2C,4BAA4B,4BAA4B,4BAA4B,4BAA4B,4BAA4B,4BAA4B,4BAA4B,aAAa,OAAO,2BAA2B,2BAA2B,2BAA2B,2BAA2B,2BAA2B,2BAA2B,aAAa,SAAS,iCAAiC,gbAAgb,+NAA+N,mDAAmD,2EAA2E,iBAAiB,+BAA+B,OAAO,OAAO,+BAA+B,OAAO,OAAO,gCAAgC,mCAAmC,OAAO,OAAO,0DAA0D,yBAAyB,wCAAwC,qBAAqB,iBAAiB,mCAAmC,mCAAmC,mCAAmC,mCAAmC,mCAAmC,mCAAmC,cAAc,qOAAqO,gFAAgF,8IAA8I,cAAc,uNAAuN,kFAAkF,cAAc,yQAAyQ,2CAA2C,cAAc,wVAAwV,qCAAqC,2DAA2D,2CAA2C,6DAA6D,cAAc,6RAA6R,6BAA6B,2BAA2B,2BAA2B,oGAAoG,oDAAoD,6CAA6C,cAAc,kWAAkW,wDAAwD,cAAc,kWAAkW,wDAAwD,cAAc,4CAA4C,kEAAkE,cAAc,gDAAgD,iPAAiP,cAAc,gDAAgD,sSAAsS,cAAc,8CAA8C,8DAA8D,cAAc,8BAA8B,iDAAiD,aAAa,mCAAmC,6CAA6C,sCAAsC,sCAAsC,aAAa,yjBAAyjB,6BAA6B,8DAA8D,gCAAgC,qGAAqG,qDAAqD,kCAAkC,8EAA8E,gGAAgG,yDAAyD,kCAAkC,wCAAwC,wGAAwG,8BAA8B,uDAAuD,kCAAkC,sDAAsD,qBAAqB,iBAAiB,OAAO,uDAAuD,iBAAiB,6HAA6H,4HAA4H,uEAAuE,2BAA2B,cAAc,yRAAyR,iDAAiD,iCAAiC,oDAAoD,oDAAoD,oDAAoD,4OAA4O,iBAAiB,OAAO,kHAAkH,iBAAiB,cAAc,SAAS,oBAAoB,8CAA8C,yCAAyC,aAAa,yCAAyC,2DAA2D,aAAa,4CAA4C,yCAAyC,aAAa,sCAAsC,4DAA4D,aAAa,8CAA8C,8KAA8K,4BAA4B,uGAAuG,aAAa,sCAAsC,6CAA6C,8DAA8D,8CAA8C,0DAA0D,qEAAqE,0BAA0B,6DAA6D,kEAAkE,mDAAmD,2GAA2G,mGAAmG,QAAQ,OAAO,2EAA2E,+DAA+D,+DAA+D,wEAAwE,sEAAsE,8CAA8C,qCAAqC,iCAAiC,6EAA6E,8BAA8B,4EAA4E,yBAAyB,gDAAgD,oEAAoE,uJAAuJ,4CAA4C,0BAA0B,sBAAsB,iBAAiB,8BAA8B,8DAA8D,8CAA8C,iDAAiD,sTAAsT,kFAAkF,qFAAqF,6DAA6D,0BAA0B,0DAA0D,oDAAoD,8DAA8D,wCAAwC,0BAA0B,wCAAwC,sBAAsB,iBAAiB,aAAa,+DAA+D,gTAAgT,6BAA6B,oCAAoC,qDAAqD,mFAAmF,qCAAqC,iDAAiD,wEAAwE,kDAAkD,kDAAkD,yFAAyF,sCAAsC,6BAA6B,yBAAyB,qBAAqB,OAAO,2CAA2C,qBAAqB,6NAA6N,4DAA4D,kDAAkD,+DAA+D,iDAAiD,uGAAuG,gFAAgF,iCAAiC,iCAAiC,iJAAiJ,iBAAiB,aAAa,oCAAoC,0DAA0D,8DAA8D,6BAA6B,oCAAoC,wCAAwC,sIAAsI,iBAAiB,0BAA0B,aAAa,4cAA4c,0BAA0B,eAAe,EAAE,aAAa,qEAAqE,6CAA6C,k8KAAk8K,KAAK,GAAG,mCAAmC,0EAA0E,iDAAiD,wDAAwD,0CAA0C,yGAAyG,EAAE,qBAAqB,gCAAgC,kBAAkB,qFAAqF,6FAA6F,gCAAgC,4GAA4G,+CAA+C,gDAAgD,iEAAiE,yBAAyB,qBAAqB,gCAAgC,kBAAkB,aAAa,aAAa,SAAS,4jBAA4jB,2EAA2E,eAAe,4EAA4E,+CAA+C,qBAAqB,EAAE,YAAY,2DAA2D,+DAA+D,wCAAwC,4BAA4B,aAAa,wCAAwC,4CAA4C,yDAAyD,6CAA6C,qBAAqB,gCAAgC,iBAAiB,2EAA2E,iCAAiC,aAAa,8BAA8B,mEAAmE,wBAAwB,UAAU,+VAA+V,8BAA8B,qCAAqC,aAAa,OAAO,+DAA+D,aAAa,wBAAwB,UAAU,qLAAqL,8CAA8C,EAAE,UAAU,qeAAqe,yFAAyF,UAAU,gVAAgV,4DAA4D,UAAU,2BAA2B,oqDAAoqD,+BAA+B,wDAAwD,kPAAkP,6CAA6C,iDAAiD,oDAAoD,iCAAiC,6CAA6C,yDAAyD,gEAAgE,8CAA8C,8CAA8C,kCAAkC,yBAAyB,qBAAqB,iBAAiB,2CAA2C,2CAA2C,sEAAsE,2BAA2B,iFAAiF,EAAE,8EAA8E,2EAA2E,wEAAwE,uIAAuI,aAAa,4BAA4B,4BAA4B,uBAAuB,EAAE,kCAAkC,wBAAwB,UAAU,oXAAoX,2GAA2G,UAAU,oLAAoL,qCAAqC,sDAAsD,qDAAqD,uCAAuC,0DAA0D,aAAa,2EAA2E,sBAAsB,UAAU,sYAAsY,6DAA6D,qEAAqE,mDAAmD,uBAAuB,UAAU,miBAAmiB,8FAA8F,iEAAiE,mFAAmF,mDAAmD,uBAAuB,UAAU,icAAic,mEAAmE,gFAAgF,mDAAmD,uBAAuB,UAAU,smEAAsmE,qOAAqO,wGAAwG,0EAA0E,mDAAmD,uBAAuB,UAAU,2gBAA2gB,oEAAoE,oGAAoG,mDAAmD,uBAAuB,UAAU,0dAA0d,8DAA8D,sEAAsE,mDAAmD,uBAAuB,UAAU,8dAA8d,6GAA6G,oBAAoB,cAAc,EAAE,iGAAiG,uHAAuH,0CAA0C,mDAAmD,kCAAkC,oCAAoC,uBAAuB,UAAU,4RAA4R,2GAA2G,oBAAoB,cAAc,EAAE,+FAA+F,6CAA6C,UAAU,0PAA0P,mCAAmC,gCAAgC,uBAAuB,UAAU,oMAAoM,mDAAmD,oBAAoB,yGAAyG,UAAU,+VAA+V,+DAA+D,UAAU,omBAAomB,oEAAoE,UAAU,wTAAwT,iKAAiK,yCAAyC,8fAA8f,oBAAoB,4DAA4D,UAAU,qbAAqb,iBAAiB,EAAE,qEAAqE,sHAAsH,2DAA2D,qFAAqF,gCAAgC,gCAAgC,yCAAyC,6DAA6D,kCAAkC,mDAAmD,iBAAiB,aAAa,0BAA0B,4BAA4B,aAAa,sFAAsF,2CAA2C,aAAa,gEAAgE,uFAAuF,0BAA0B,UAAU,4UAA4U,iCAAiC,wCAAwC,4DAA4D,iCAAiC,iBAAiB,aAAa,EAAE,uBAAuB,UAAU,+RAA+R,kCAAkC,yBAAyB,mCAAmC,+BAA+B,iBAAiB,+BAA+B,aAAa,wBAAwB,UAAU,kcAAkc,wBAAwB,mBAAmB,EAAE,YAAY,EAAE,wEAAwE,kCAAkC,yBAAyB,4DAA4D,gCAAgC,iBAAiB,+BAA+B,aAAa,wBAAwB,UAAU,oXAAoX,iCAAiC,wCAAwC,6CAA6C,iCAAiC,iBAAiB,aAAa,EAAE,uBAAuB,UAAU,wBAAwB,uCAAuC,SAAS,4BAA4B,oFAAoF,SAAS,wYAAwY,8DAA8D,0EAA0E,iEAAiE,aAAa,iDAAiD,UAAU,sVAAsV,gRAAgR,sEAAsE,+BAA+B,0BAA0B,aAAa,2BAA2B,qCAAqC,2CAA2C,6DAA6D,6DAA6D,gDAAgD,gCAAgC,iBAAiB,gCAAgC,aAAa,iDAAiD,gDAAgD,iCAAiC,6DAA6D,iBAAiB,6EAA6E,0CAA0C,uCAAuC,aAAa,0BAA0B,UAAU,2KAA2K,+BAA+B,4BAA4B,aAAa,gEAAgE,mDAAmD,uBAAuB,UAAU,uaAAua,oYAAoY,oHAAoH,wCAAwC,4BAA4B,aAAa,8BAA8B,qBAAqB,uWAAuW,+JAA+J,mEAAmE,2BAA2B,WAAW,OAAO,4CAA4C,4UAA4U,GAAG,aAAa,0EAA0E,UAAU,8BAA8B,kGAAkG,qCAAqC,0EAA0E,iBAAiB,OAAO,kJAAkJ,iBAAiB,aAAa,6DAA6D,2DAA2D,4CAA4C,4DAA4D,wCAAwC,qDAAqD,QAAQ,OAAO,oCAAoC,4CAA4C,sCAAsC,sCAAsC,yBAAyB,OAAO,kGAAkG,mDAAmD,iEAAiE,4HAA4H,yHAAyH,oDAAoD,WAAW,wDAAwD,gJAAgJ,6CAA6C,8CAA8C,8CAA8C,6CAA6C,iCAAiC,2DAA2D,4HAA4H,4CAA4C,4CAA4C,iCAAiC,6BAA6B,qCAAqC,sCAAsC,sCAAsC,yBAAyB,4CAA4C,qBAAqB,sCAAsC,kIAAkI,6CAA6C,2CAA2C,EAAE,iCAAiC,kBAAkB,cAAc,4JAA4J,kTAAkT,0VAA0V,4IAA4I,2DAA2D,odAAod,wDAAwD,2DAA2D,aAAa,qDAAqD,+DAA+D,UAAU,wPAAwP,sCAAsC,wBAAwB,uBAAuB,aAAa,+CAA+C,kDAAkD,aAAa,4CAA4C,UAAU,yVAAyV,4IAA4I,mEAAmE,sCAAsC,wBAAwB,uBAAuB,aAAa,sDAAsD,UAAU,0QAA0Q,qEAAqE,oEAAoE,uBAAuB,aAAa,8BAA8B,qCAAqC,aAAa,4BAA4B,UAAU,sdAAsd,sCAAsC,wBAAwB,uBAAuB,aAAa,oDAAoD,UAAU,kSAAkS,6GAA6G,+VAA+V,kCAAkC,yBAAyB,aAAa,kCAAkC,mCAAmC,aAAa,kCAAkC,mCAAmC,aAAa,mCAAmC,oTAAoT,uDAAuD,aAAa,mCAAmC,gCAAgC,iDAAiD,aAAa,oCAAoC,0BAA0B,gCAAgC,qDAAqD,aAAa,oCAAoC,+BAA+B,6BAA6B,iBAAiB,kFAAkF,aAAa,mCAAmC,kFAAkF,kCAAkC,kCAAkC,iBAAiB,OAAO,sCAAsC,uCAAuC,4CAA4C,qBAAqB,OAAO,4CAA4C,4CAA4C,kDAAkD,yBAAyB,OAAO,6CAA6C,oDAAoD,yBAAyB,qBAAqB,iBAAiB,yBAAyB,aAAa,UAAU,gDAAgD,kDAAkD,wDAAwD,oCAAoC,sCAAsC,oWAAoW,6CAA6C,iBAAiB,sCAAsC,8DAA8D,sBAAsB,8BAA8B,OAAO,iDAAiD,mDAAmD,iCAAiC,qBAAqB,2UAA2U,8DAA8D,6BAA6B,uCAAuC,gGAAgG,gDAAgD,4CAA4C,mEAAmE,qBAAqB,OAAO,8FAA8F,qBAAqB,mCAAmC,iCAAiC,qBAAqB,oCAAoC,oDAAoD,qEAAqE,+DAA+D,sHAAsH,0CAA0C,4cAA4c,0CAA0C,2FAA2F,2EAA2E,QAAQ,OAAO,oEAAoE,kFAAkF,QAAQ,OAAO,wGAAwG,yCAAyC,gEAAgE,qCAAqC,sDAAsD,0CAA0C,6GAA6G,iDAAiD,2EAA2E,QAAQ,OAAO,wEAAwE,kFAAkF,QAAQ,OAAO,2GAA2G,6CAA6C,yCAAyC,qCAAqC,OAAO,gEAAgE,6FAA6F,0CAA0C,iIAAiI,wGAAwG,qCAAqC,0CAA0C,6GAA6G,iDAAiD,8CAA8C,qDAAqD,+FAA+F,yCAAyC,qCAAqC,0CAA0C,+GAA+G,6CAA6C,iFAAiF,iDAAiD,sFAAsF,qCAAqC,0CAA0C,6BAA6B,4CAA4C,yBAAyB,uCAAuC,oDAAoD,oDAAoD,8EAA8E,6BAA6B,EAAE,yBAAyB,yBAAyB,qBAAqB,OAAO,6CAA6C,mDAAmD,4EAA4E,6EAA6E,oEAAoE,6BAA6B,EAAE,yBAAyB,4BAA4B,sCAAsC,yDAAyD,sDAAsD,+DAA+D,+DAA+D,6BAA6B,4CAA4C,8GAA8G,yBAAyB,gDAAgD,8FAA8F,yBAAyB,qBAAqB,iBAAiB,wEAAwE,aAAa,yCAAyC,iEAAiE,cAAc,gmBAAgmB,gBAAgB,SAAS,SAAS,gbAAgb,+BAA+B,kCAAkC,mDAAmD,+BAA+B,aAAa,0HAA0H,0EAA0E,0DAA0D,QAAQ,OAAO,yFAAyF,iFAAiF,0BAA0B,iBAAiB,aAAa,2BAA2B,8JAA8J,yEAAyE,UAAU,qEAAqE,gNAAgN,sCAAsC,oDAAoD,aAAa,wCAAwC,gDAAgD,oDAAoD,aAAa,8CAA8C,0CAA0C,kCAAkC,OAAO,OAAO,8CAA8C,4CAA4C,kCAAkC,qBAAqB,0DAA0D,yCAAyC,8BAA8B,qBAAqB,sCAAsC,iBAAiB,uBAAuB,uBAAuB,uBAAuB,8BAA8B,8BAA8B,iBAAiB,8BAA8B,8BAA8B,iBAAiB,iCAAiC,0CAA0C,gDAAgD,kCAAkC,qBAAqB,iCAAiC,gCAAgC,qBAAqB,OAAO,gCAAgC,qBAAqB,4CAA4C,iBAAiB,0BAA0B,aAAa,kDAAkD,SAAS,4CAA4C,6GAA6G,wBAAwB,UAAU,sCAAsC,2DAA2D,yBAAyB,2BAA2B,uBAAuB,6DAA6D,wDAAwD,iDAAiD,iBAAiB,4CAA4C,aAAa,gCAAgC,qDAAqD,qCAAqC,SAAS,sXAAsX,eAAe,OAAO,iCAAiC,mFAAmF,2GAA2G,sDAAsD,iCAAiC,gCAAgC,qBAAqB,UAAU,6ZAA6Z,sDAAsD,6BAA6B,sDAAsD,qBAAqB,UAAU,mFAAmF,uCAAuC,oOAAoO,wBAAwB,2BAA2B,yBAAyB,0DAA0D,QAAQ,OAAO,iDAAiD,kEAAkE,mDAAmD,2DAA2D,4CAA4C,yBAAyB,OAAO,yCAAyC,yBAAyB,oDAAoD,8BAA8B,qBAAqB,iBAAiB,aAAa,OAAO,6BAA6B,oBAAoB,sDAAsD,QAAQ,OAAO,0FAA0F,+CAA+C,qDAAqD,0DAA0D,gDAAgD,gDAAgD,0BAA0B,iBAAiB,mBAAmB,8DAA8D,iBAAiB,aAAa,0BAA0B,uBAAuB,aAAa,4BAA4B,iEAAiE,qGAAqG,wDAAwD,oFAAoF,gDAAgD,2DAA2D,8GAA8G,sCAAsC,8GAA8G,kEAAkE,8CAA8C,yPAAyP,sCAAsC,+KAA+K,uDAAuD,gDAAgD,mEAAmE,QAAQ,OAAO,wDAAwD,8EAA8E,QAAQ,OAAO,kGAAkG,qCAAqC,iCAAiC,sCAAsC,+KAA+K,yCAAyC,yDAAyD,qDAAqD,oDAAoD,2DAA2D,uEAAuE,QAAQ,OAAO,2EAA2E,8EAA8E,QAAQ,OAAO,wGAAwG,yCAAyC,qCAAqC,iCAAiC,OAAO,0HAA0H,gDAAgD,uBAAuB,mEAAmE,0EAA0E,6CAA6C,0CAA0C,+VAA+V,oEAAoE,+DAA+D,meAAme,oFAAoF,kDAAkD,IAAI,wBAAwB,0BAA0B,IAAI,uEAAuE,yaAAya,iCAAiC,sCAAsC,wMAAwM,4DAA4D,uDAAuD,oDAAoD,qDAAqD,iDAAiD,yFAAyF,qCAAqC,iCAAiC,kDAAkD,sCAAsC,sGAAsG,+DAA+D,gDAAgD,gFAAgF,6CAA6C,8FAA8F,iCAAiC,sCAAsC,yBAAyB,qBAAqB,iBAAiB,oGAAoG,gCAAgC,2DAA2D,2DAA2D,6CAA6C,iDAAiD,wGAAwG,0BAA0B,qBAAqB,OAAO,wCAAwC,qBAAqB,iBAAiB,oEAAoE,qBAAqB,4sBAA4sB,0CAA0C,0DAA0D,kCAAkC,qDAAqD,wDAAwD,2CAA2C,qBAAqB,iBAAiB,kCAAkC,uDAAuD,iBAAiB,6EAA6E,aAAa,OAAO,6CAA6C,iEAAiE,aAAa,qEAAqE,SAAS,ijBAAijB,gBAAgB,SAAS,SAAS,4NAA4N,8CAA8C,8BAA8B,aAAa,wDAAwD,sDAAsD,8BAA8B,aAAa,oCAAoC,0BAA0B,sBAAsB,2CAA2C,mHAAmH,4BAA4B,uCAAuC,aAAa,wBAAwB,qHAAqH,4EAA4E,yCAAyC,+CAA+C,gEAAgE,8CAA8C,yBAAyB,qBAAqB,mCAAmC,oKAAoK,iBAAiB,iDAAiD,aAAa,OAAO,8CAA8C,oDAAoD,sCAAsC,OAAO,MAAM,aAAa,UAAU,obAAob,gBAAgB,SAAS,SAAS,yTAAyT,+BAA+B,kCAAkC,mDAAmD,+BAA+B,aAAa,wGAAwG,gFAAgF,2BAA2B,UAAU,iqBAAiqB,wCAAwC,kEAAkE,aAAa,wBAAwB,UAAU,kjBAAkjB,gGAAgG,uIAAuI,qFAAqF,gCAAgC,6DAA6D,4BAA4B,aAAa,OAAO,+CAA+C,sBAAsB,SAAS,OAAO,6CAA6C,0EAA0E,mCAAmC,4CAA4C,yBAAyB,kCAAkC,8GAA8G,EAAE,qBAAqB,iBAAiB,2BAA2B,6BAA6B,iBAAiB,2BAA2B,aAAa,UAAU,kVAAkV,2BAA2B,8BAA8B,kGAAkG,wGAAwG,uDAAuD,iBAAiB,aAAa,wBAAwB,UAAU,gVAAgV,2BAA2B,8BAA8B,kGAAkG,6CAA6C,sFAAsF,oCAAoC,kDAAkD,iBAAiB,aAAa,wBAAwB,UAAU,6SAA6S,2BAA2B,8BAA8B,kGAAkG,uGAAuG,qDAAqD,iBAAiB,aAAa,wBAAwB,UAAU,uCAAuC,2BAA2B,8BAA8B,mDAAmD,iDAAiD,aAAa,SAAS,kDAAkD,iDAAiD,wCAAwC,kDAAkD,UAAU,sDAAsD,gCAAgC,gCAAgC,oCAAoC,4BAA4B,sDAAsD,QAAQ,OAAO,uHAAuH,+FAA+F,0CAA0C,yBAAyB,qBAAqB,iBAAiB,aAAa,sCAAsC,oMAAoM,yCAAyC,kDAAkD,QAAQ,OAAO,oCAAoC,mGAAmG,4CAA4C,uDAAuD,kCAAkC,iBAAiB,aAAa,wBAAwB,UAAU,uLAAuL,sDAAsD,oCAAoC,UAAU,kcAAkc,mDAAmD,QAAQ,OAAO,yEAAyE,gCAAgC,iBAAiB,aAAa,wBAAwB,UAAU,+DAA+D,uDAAuD,oCAAoC,wCAAwC,uDAAuD,uDAAuD,qBAAqB,EAAE,kBAAkB,aAAa,UAAU,SAAS,gDAAgD,yEAAyE,iDAAiD,QAAQ,OAAO,gDAAgD,iBAAiB,aAAa,OAAO,uDAAuD,QAAQ,OAAO,oDAAoD,iBAAiB,aAAa,wBAAwB,UAAU,6JAA6J,iCAAiC,2BAA2B,aAAa,UAAU,sbAAsb,qEAAqE,8DAA8D,iGAAiG,uBAAuB,sBAAsB,OAAO,wCAAwC,aAAa,uBAAuB,WAAW,OAAO,4CAA4C,aAAa,kBAAkB,yBAAyB,OAAO,2CAA2C,aAAa,qCAAqC,uBAAuB,0BAA0B,OAAO,kGAAkG,aAAa,kEAAkE,6BAA6B,iCAAiC,aAAa,kCAAkC,UAAU,kUAAkU,6CAA6C,QAAQ,0BAA0B,kCAAkC,4BAA4B,aAAa,UAAU,oEAAoE,mFAAmF,0IAA0I,uBAAuB,4BAA4B,aAAa,kDAAkD,6CAA6C,aAAa,EAAE,+DAA+D,kEAAkE,iDAAiD,yBAAyB,uGAAuG,mEAAmE,aAAa,wBAAwB,UAAU,8CAA8C,sCAAsC,yBAAyB,8CAA8C,aAAa,wBAAwB,UAAU,4VAA4V,sCAAsC,yBAAyB,uCAAuC,aAAa,wBAAwB,UAAU,mUAAmU,sCAAsC,gCAAgC,yBAAyB,8DAA8D,aAAa,2BAA2B,UAAU,2KAA2K,8FAA8F,2CAA2C,KAAK,+BAA+B,oEAAoE,8BAA8B,8BAA8B,2CAA2C,4CAA4C,aAAa,kCAAkC,kCAAkC,oCAAoC,oCAAoC,oBAAoB,kKAAkK,UAAU,uCAAuC,iCAAiC,mDAAmD,QAAQ,OAAO,8CAA8C,aAAa,qBAAqB,UAAU,yCAAyC,+CAA+C,UAAU,kDAAkD,uCAAuC,gDAAgD,+CAA+C,8BAA8B,uDAAuD,yCAAyC,qBAAqB,EAAE,iBAAiB,aAAa,EAAE,uBAAuB,UAAU,+ZAA+Z,sCAAsC,wCAAwC,6CAA6C,yCAAyC,iCAAiC,8BAA8B,aAAa,EAAE,iCAAiC,UAAU,6nBAA6nB,EAAE,GAAG,uDAAuD,6BAA6B,4BAA4B,aAAa,0CAA0C,4BAA4B,0DAA0D,+BAA+B,iBAAiB,qDAAqD,mEAAmE,sDAAsD,aAAa,qCAAqC,kDAAkD,aAAa,OAAO,gDAAgD,aAAa,4BAA4B,yFAAyF,6EAA6E,kDAAkD,8CAA8C,+DAA+D,+FAA+F,oCAAoC,2DAA2D,mBAAmB,yBAAyB,+BAA+B,iCAAiC,iEAAiE,oEAAoE,yBAAyB,qBAAqB,iBAAiB,aAAa,wBAAwB,UAAU,imBAAimB,qFAAqF,4CAA4C,wCAAwC,iCAAiC,kDAAkD,gBAAgB,2BAA2B,uBAAuB,aAAa,uCAAuC,wBAAwB,wHAAwH,2EAA2E,8CAA8C,iDAAiD,8BAA8B,qBAAqB,iBAAiB,aAAa,wBAAwB,uBAAuB,iDAAiD,QAAQ,OAAO,sCAAsC,2LAA2L,8BAA8B,qBAAqB,iBAAiB,aAAa,2BAA2B,UAAU,k+BAAk+B,eAAe,EAAE,mHAAmH,0CAA0C,uFAAuF,+DAA+D,sJAAsJ,kEAAkE,uBAAuB,mEAAmE,6RAA6R,oDAAoD,QAAQ,OAAO,gDAAgD,kCAAkC,iCAAiC,qCAAqC,4DAA4D,qBAAqB,OAAO,gFAAgF,4DAA4D,qIAAqI,qCAAqC,qBAAqB,yCAAyC,kLAAkL,qBAAqB,iBAAiB,aAAa,yCAAyC,4EAA4E,EAAE,UAAU,wHAAwH,yBAAyB,+KAA+K,+HAA+H,iBAAiB,gMAAgM,cAAc,uDAAuD,wCAAwC,0HAA0H,sBAAsB,QAAQ,OAAO,sCAAsC,8EAA8E,iBAAiB,aAAa,uBAAuB,UAAU,2IAA2I,SAAS,+VAA+V,6HAA6H,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,mCAAmC,0DAA0D,6EAA6E,mHAAmH,uDAAuD,aAAa,GAAG,8BAA8B,UAAU,kLAAkL,OAAO,sXAAsX,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,sBAAsB,MAAM,+DAA+D,qHAAqH,YAAY,GAAG,gDAAgD,iCAAiC,MAAM,MAAM,+NAA+N,kCAAkC,mGAAmG,kDAAkD,kCAAkC,8CAA8C,gDAAgD,6BAA6B,kFAAkF,yBAAyB,qBAAqB,EAAE,yEAAyE,+BAA+B,kBAAkB,wCAAwC,4EAA4E,mDAAmD,iBAAiB,EAAE,cAAc,SAAS,IAAI,qbAAqb,2DAA2D,4BAA4B,mBAAmB,4CAA4C,8EAA8E,qBAAqB,UAAU,+WAA+W,0BAA0B,eAAe,EAAE,aAAa,yCAAyC,2CAA2C,4BAA4B,gBAAgB,EAAE,aAAa,4GAA4G,qCAAqC,qDAAqD,0BAA0B,SAAS,EAAE,kJAAkJ,gEAAgE,8DAA8D,8DAA8D,kDAAkD,iBAAiB,SAAS,6CAA6C,aAAa,iCAAiC,mGAAmG,aAAa,uBAAuB,SAAS,kCAAkC,qBAAqB,KAAK,GAAG,8wBAA8wB,2DAA2D,2EAA2E,wCAAwC,aAAa,EAAE,SAAS,0CAA0C,iDAAiD,SAAS,OAAO,kCAAkC,SAAS,KAAK,oBAAoB,0BAA0B,mBAAmB,SAAS,6UAA6U,4EAA4E,0RAA0R,gCAAgC,kCAAkC,iGAAiG,UAAU,qCAAqC,2BAA2B,kDAAkD,mCAAmC,qBAAqB,+DAA+D,gEAAgE,uFAAuF,yBAAyB,OAAO,iEAAiE,yBAAyB,qBAAqB,iBAAiB,OAAO,sFAAsF,uFAAuF,iBAAiB,0BAA0B,aAAa,6DAA6D,4RAA4R,0BAA0B,mGAAmG,0CAA0C,yCAAyC,8CAA8C,8CAA8C,0DAA0D,4PAA4P,yBAAyB,iCAAiC,qBAAqB,EAAE,6DAA6D,6CAA6C,qDAAqD,gDAAgD,2CAA2C,wCAAwC,yBAAyB,8KAA8K,yCAAyC,yCAAyC,4CAA4C,mDAAmD,0CAA0C,yBAAyB,4CAA4C,mDAAmD,0CAA0C,yBAAyB,qBAAqB,sDAAsD,gCAAgC,oCAAoC,qBAAqB,kEAAkE,4EAA4E,+DAA+D,gDAAgD,qBAAqB,gDAAgD,qDAAqD,OAAO,EAAE,8CAA8C,oDAAoD,8FAA8F,IAAI,uQAAuQ,EAAE,iDAAiD,yDAAyD,QAAQ,OAAO,wDAAwD,wSAAwS,GAAG,yBAAyB,qBAAqB,iBAAiB,oPAAoP,6FAA6F,sBAAsB,uJAAuJ,EAAE,+BAA+B,8BAA8B,kCAAkC,yBAAyB,aAAa,4CAA4C,wCAAwC,8BAA8B,wFAAwF,EAAE,aAAa,oDAAoD,yCAAyC,umBAAumB,iCAAiC,4CAA4C,oTAAoT,sCAAsC,iDAAiD,OAAO,mDAAmD,OAAO,iDAAiD,OAAO,kDAAkD,OAAO,yBAAyB,qBAAqB,2CAA2C,+BAA+B,+BAA+B,+BAA+B,+BAA+B,6CAA6C,gCAAgC,qHAAqH,qBAAqB,OAAO,0CAA0C,gCAAgC,qHAAqH,qBAAqB,qCAAqC,oCAAoC,sFAAsF,0FAA0F,yBAAyB,OAAO,0FAA0F,8FAA8F,yBAAyB,qBAAqB,OAAO,wCAAwC,qBAAqB,2CAA2C,iKAAiK,+DAA+D,+DAA+D,sLAAsL,GAAG,sDAAsD,yBAAyB,OAAO,oDAAoD,yBAAyB,uGAAuG,sCAAsC,uDAAuD,gTAAgT,EAAE,iDAAiD,2UAA2U,EAAE,oDAAoD,uDAAuD,wDAAwD,yBAAyB,OAAO,sDAAsD,0EAA0E,yBAAyB,qCAAqC,mFAAmF,oCAAoC,oEAAoE,+EAA+E,yBAAyB,OAAO,kDAAkD,iGAAiG,yBAAyB,kCAAkC,8EAA8E,yCAAyC,wEAAwE,yBAAyB,sCAAsC,2DAA2D,+DAA+D,wDAAwD,yDAAyD,4DAA4D,qBAAqB,OAAO,oCAAoC,oEAAoE,qEAAqE,yBAAyB,OAAO,qCAAqC,iGAAiG,yBAAyB,8DAA8D,sCAAsC,EAAE,yDAAyD,2DAA2D,uDAAuD,yDAAyD,2DAA2D,qBAAqB,uGAAuG,iEAAiE,kEAAkE,qBAAqB,iBAAiB,aAAa,0BAA0B,+WAA+W,sDAAsD,4DAA4D,4BAA4B,mGAAmG,qCAAqC,8IAA8I,iCAAiC,iFAAiF,qBAAqB,+BAA+B,yCAAyC,EAAE,iBAAiB,sBAAsB,+BAA+B,+BAA+B,EAAE,iBAAiB,aAAa,sDAAsD,sHAAsH,mDAAmD,yCAAyC,2CAA2C,2DAA2D,qCAAqC,yBAAyB,gDAAgD,2CAA2C,sCAAsC,wFAAwF,sCAAsC,4HAA4H,yIAAyI,uEAAuE,iCAAiC,OAAO,yDAAyD,6EAA6E,2DAA2D,4DAA4D,iCAAiC,sCAAsC,+IAA+I,wEAAwE,sDAAsD,8DAA8D,yDAAyD,4CAA4C,iCAAiC,wDAAwD,6GAA6G,iCAAiC,OAAO,yEAAyE,iCAAiC,sCAAsC,sGAAsG,sCAAsC,kGAAkG,sCAAsC,oGAAoG,sCAAsC,qGAAqG,sCAAsC,sHAAsH,uDAAuD,0GAA0G,sHAAsH,2DAA2D,2CAA2C,yPAAyP,EAAE,uDAAuD,iEAAiE,6CAA6C,yCAAyC,EAAE,gDAAgD,iCAAiC,6CAA6C,gFAAgF,+CAA+C,gHAAgH,kFAAkF,iDAAiD,iBAAiB,EAAE,sDAAsD,qCAAqC,iCAAiC,sCAAsC,mGAAmG,6CAA6C,4DAA4D,EAAE,kDAAkD,qDAAqD,6GAA6G,4GAA4G,qCAAqC,iCAAiC,sCAAsC,yGAAyG,8CAA8C,+CAA+C,gDAAgD,oDAAoD,iCAAiC,OAAO,0CAA0C,iCAAiC,sFAAsF,0EAA0E,iCAAiC,kHAAkH,0CAA0C,iCAAiC,sGAAsG,+DAA+D,8CAA8C,sCAAsC,0GAA0G,8CAA8C,+CAA+C,gDAAgD,oDAAoD,iCAAiC,OAAO,0CAA0C,iCAAiC,sFAAsF,2EAA2E,iCAAiC,kHAAkH,0CAA0C,iCAAiC,sGAAsG,+DAA+D,8CAA8C,sCAAsC,gGAAgG,6CAA6C,qBAAqB,EAAE,iCAAiC,OAAO,kEAAkE,iCAAiC,8CAA8C,sCAAsC,mGAAmG,gFAAgF,iCAAiC,sCAAsC,sdAAsd,qEAAqE,qFAAqF,qCAAqC,0DAA0D,mEAAmE,qCAAqC,iCAAiC,sEAAsE,kEAAkE,sFAAsF,iCAAiC,iDAAiD,yGAAyG,wGAAwG,iCAAiC,sCAAsC,kHAAkH,sCAAsC,iHAAiH,4CAA4C,wDAAwD,0DAA0D,2DAA2D,2CAA2C,kEAAkE,EAAE,2CAA2C,qCAAqC,EAAE,uDAAuD,wDAAwD,0EAA0E,2IAA2I,mDAAmD,oBAAoB,EAAE,mDAAmD,oBAAoB,EAAE,yCAAyC,EAAE,qCAAqC,MAAM,iEAAiE,6CAA6C,gCAAgC,EAAE,mDAAmD,mEAAmE,0CAA0C,iCAAiC,0DAA0D,iDAAiD,2DAA2D,0DAA0D,iMAAiM,uBAAuB,EAAE,qNAAqN,0CAA0C,EAAE,iCAAiC,yHAAyH,4FAA4F,yIAAyI,uDAAuD,gGAAgG,wEAAwE,yHAAyH,EAAE,yCAAyC,qCAAqC,2DAA2D,0DAA0D,0CAA0C,iCAAiC,kEAAkE,oEAAoE,EAAE,kGAAkG,gEAAgE,uFAAuF,sEAAsE,EAAE,sEAAsE,yGAAyG,wGAAwG,iCAAiC,sCAAsC,2LAA2L,sCAAsC,qIAAqI,6CAA6C,oDAAoD,EAAE,iCAAiC,0IAA0I,iIAAiI,mDAAmD,wFAAwF,kIAAkI,YAAY,SAAS,2DAA2D,wBAAwB,EAAE,yCAAyC,uFAAuF,0CAA0C,iCAAiC,gIAAgI,mFAAmF,wEAAwE,iCAAiC,EAAE,4DAA4D,8CAA8C,8DAA8D,sCAAsC,yBAAyB,qBAAqB,iBAAiB,wCAAwC,4CAA4C,aAAa,yEAAyE,yKAAyK,2BAA2B,iBAAiB,+NAA+N,gDAAgD,yCAAyC,6CAA6C,0DAA0D,qBAAqB,kIAAkI,sDAAsD,QAAQ,OAAO,6CAA6C,uCAAuC,+BAA+B,EAAE,6EAA6E,gDAAgD,0CAA0C,qBAAqB,iBAAiB,OAAO,kEAAkE,mDAAmD,QAAQ,cAAc,sCAAsC,+BAA+B,EAAE,qBAAqB,OAAO,sCAAsC,MAAM,EAAE,qBAAqB,iBAAiB,yBAAyB,eAAe,EAAE,+BAA+B,8FAA8F,8DAA8D,QAAQ,EAAE,aAAa,4CAA4C,yFAAyF,2CAA2C,iBAAiB,OAAO,gCAAgC,iBAAiB,aAAa,6CAA6C,oDAAoD,ibAAib,iDAAiD,iDAAiD,qBAAqB,gEAAgE,8QAA8Q,iFAAiF,iCAAiC,kCAAkC,0CAA0C,EAAE,oBAAoB,yDAAyD,4YAA4Y,yCAAyC,yCAAyC,qCAAqC,8SAA8S,kCAAkC,cAAc,EAAE,sGAAsG,gBAAgB,EAAE,oBAAoB,sDAAsD,8CAA8C,0BAA0B,mNAAmN,mDAAmD,2OAA2O,iDAAiD,+BAA+B,oOAAoO,aAAa,4BAA4B,wCAAwC,sCAAsC,yDAAyD,iCAAiC,qDAAqD,yCAAyC,8BAA8B,iCAAiC,6GAA6G,EAAE,qBAAqB,UAAU,2mBAA2mB,+BAA+B,4BAA4B,aAAa,4CAA4C,iCAAiC,qCAAqC,qCAAqC,aAAa,kCAAkC,sCAAsC,2CAA2C,2CAA2C,6CAA6C,8CAA8C,aAAa,4EAA4E,wBAAwB,UAAU,4oBAA4oB,+BAA+B,4BAA4B,aAAa,0CAA0C,gCAAgC,oCAAoC,oCAAoC,oCAAoC,aAAa,gCAAgC,sCAAsC,sCAAsC,2CAA2C,2CAA2C,aAAa,2DAA2D,4DAA4D,+EAA+E,wBAAwB,UAAU,+YAA+Y,+BAA+B,4BAA4B,aAAa,0CAA0C,gCAAgC,oCAAoC,aAAa,qCAAqC,0BAA0B,uEAAuE,wBAAwB,UAAU,k8BAAk8B,4BAA4B,6BAA6B,oCAAoC,kSAAkS,+GAA+G,0GAA0G,mCAAmC,wEAAwE,iGAAiG,oGAAoG,qQAAqQ,2BAA2B,+BAA+B,mCAAmC,aAAa,4CAA4C,2CAA2C,gCAAgC,EAAE,iDAAiD,uCAAuC,uBAAuB,EAAE,6CAA6C,8FAA8F,2BAA2B,qBAAqB,EAAE,aAAa,mGAAmG,4BAA4B,UAAU,oMAAoM,iEAAiE,wBAAwB,UAAU,kMAAkM,6DAA6D,wBAAwB,UAAU,gKAAgK,8CAA8C,mDAAmD,uBAAuB,aAAa,mCAAmC,yDAAyD,mDAAmD,gCAAgC,sDAAsD,aAAa,iCAAiC,kDAAkD,+EAA+E,qCAAqC,uFAAuF,aAAa,gCAAgC,UAAU,wCAAwC,sDAAsD,4BAA4B,gCAAgC,aAAa,oEAAoE,kDAAkD,uEAAuE,aAAa,qFAAqF,oEAAoE,aAAa,0EAA0E,oCAAoC,8CAA8C,aAAa,0BAA0B,iBAAiB,2CAA2C,aAAa,WAAW,iIAAiI,2MAA2M,aAAa,UAAU,kCAAkC,iCAAiC,sDAAsD,iBAAiB,aAAa,gCAAgC,wBAAwB,UAAU,u0IAAu0I,UAAU,2GAA2G,WAAW,4HAA4H,UAAU,uHAAuH,WAAW,2HAA2H,WAAW,onBAAonB,QAAQ,+DAA+D,QAAQ,4FAA4F,+BAA+B,4BAA4B,aAAa,+BAA+B,6BAA6B,mEAAmE,2CAA2C,iBAAiB,yGAAyG,iDAAiD,2BAA2B,aAAa,0DAA0D,6FAA6F,+CAA+C,iBAAiB,4CAA4C,4CAA4C,iBAAiB,+EAA+E,kDAAkD,QAAQ,OAAO,oCAAoC,6CAA6C,qDAAqD,qBAAqB,kEAAkE,0EAA0E,qBAAqB,OAAO,4DAA4D,qBAAqB,iBAAiB,oDAAoD,aAAa,yDAAyD,yBAAyB,6CAA6C,QAAQ,OAAO,sDAAsD,iBAAiB,2BAA2B,aAAa,gCAAgC,gCAAgC,qCAAqC,aAAa,mDAAmD,8BAA8B,aAAa,qCAAqC,kFAAkF,aAAa,6KAA6K,+FAA+F,8CAA8C,+DAA+D,iDAAiD,iBAAiB,aAAa,2CAA2C,wBAAwB,UAAU,qPAAqP,+BAA+B,4BAA4B,aAAa,8CAA8C,8CAA8C,iCAAiC,qDAAqD,wBAAwB,UAAU,mPAAmP,+BAA+B,4BAA4B,aAAa,8CAA8C,6CAA6C,iEAAiE,wCAAwC,iCAAiC,wBAAwB,UAAU,yNAAyN,2CAA2C,4BAA4B,aAAa,kDAAkD,0FAA0F,wCAAwC,+EAA+E,aAAa,OAAO,uDAAuD,aAAa,sDAAsD,wBAAwB,UAAU,4NAA4N,2CAA2C,4BAA4B,aAAa,kDAAkD,0EAA0E,iEAAiE,uDAAuD,wBAAwB,UAAU,wCAAwC,iGAAiG,8BAA8B,0FAA0F,oCAAoC,yCAAyC,yBAAyB,2BAA2B,EAAE,uCAAuC,+CAA+C,+BAA+B,2BAA2B,oCAAoC,EAAE,aAAa,OAAO,8BAA8B,4DAA4D,mCAAmC,wCAAwC,iBAAiB,mDAAmD,aAAa,qBAAqB,UAAU,oDAAoD,mCAAmC,qDAAqD,2CAA2C,yBAAyB,sDAAsD,kCAAkC,6BAA6B,uBAAuB,UAAU,wDAAwD,iCAAiC,qDAAqD,2CAA2C,yBAAyB,2FAA2F,gCAAgC,6BAA6B,uBAAuB,UAAU,0DAA0D,oCAAoC,qDAAqD,2CAA2C,yBAAyB,gEAAgE,mCAAmC,6BAA6B,uBAAuB,UAAU,2DAA2D,kCAAkC,mBAAmB,+DAA+D,EAAE,oDAAoD,qDAAqD,2CAA2C,yBAAyB,2CAA2C,iCAAiC,uBAAuB,UAAU,qDAAqD,iCAAiC,qDAAqD,2CAA2C,yBAAyB,kUAAkU,gCAAgC,6CAA6C,uBAAuB,UAAU,sDAAsD,6CAA6C,gDAAgD,4DAA4D,8DAA8D,gCAAgC,2DAA2D,aAAa,wBAAwB,UAAU,wCAAwC,qOAAqO,6BAA6B,8DAA8D,aAAa,0EAA0E,8BAA8B,uBAAuB,uBAAuB,iCAAiC,mCAAmC,qBAAqB,6NAA6N,EAAE,iCAAiC,+DAA+D,mBAAmB,oBAAoB,gDAAgD,+BAA+B,aAAa,OAAO,iEAAiE,2CAA2C,uEAAuE,iBAAiB,OAAO,gDAAgD,iBAAiB,aAAa,qCAAqC,oCAAoC,sCAAsC,oCAAoC,8BAA8B,iDAAiD,+DAA+D,EAAE,kCAAkC,6BAA6B,UAAU,2DAA2D,gFAAgF,4PAA4P,4BAA4B,mCAAmC,6BAA6B,iBAAiB,oCAAoC,6DAA6D,aAAa,OAAO,oCAAoC,+CAA+C,aAAa,4BAA4B,yFAAyF,EAAE,iCAAiC,qFAAqF,0BAA0B,qBAAqB,EAAE,gCAAgC,iCAAiC,+BAA+B,aAAa,gDAAgD,wBAAwB,UAAU,sdAAsd,sFAAsF,iBAAiB,oEAAoE,aAAa,YAAY,6CAA6C,aAAa,mEAAmE,8BAA8B,2BAA2B,yDAAyD,iDAAiD,iBAAiB,0BAA0B,sDAAsD,+CAA+C,iBAAiB,aAAa,UAAU,iLAAiL,2CAA2C,gCAAgC,kCAAkC,4CAA4C,aAAa,0CAA0C,sHAAsH,qCAAqC,mDAAmD,UAAU,kKAAkK,0CAA0C,sFAAsF,iCAAiC,uFAAuF,aAAa,UAAU,4BAA4B,yFAAyF,uDAAuD,oCAAoC,wCAAwC,uDAAuD,sDAAsD,qBAAqB,EAAE,kBAAkB,aAAa,UAAU,SAAS,KAAK,GAAG,8wBAA8wB,2DAA2D,2EAA2E,wCAAwC,aAAa,EAAE,SAAS,0CAA0C,iDAAiD,SAAS,OAAO,kCAAkC,SAAS,KAAK,oBAAoB,0BAA0B,mBAAmB,SAAS,6bAA6b,+EAA+E,kLAAkL,OAAO,MAAM,UAAU,WAAW,+EAA+E,2BAA2B,0BAA0B,sBAAsB,yCAAyC,0FAA0F,oEAAoE,kCAAkC,8EAA8E,sFAAsF,yJAAyJ,4DAA4D,6DAA6D,oFAAoF,0CAA0C,6BAA6B,2DAA2D,yBAAyB,EAAE,0CAA0C,qBAAqB,EAAE,+BAA+B,iBAAiB,6CAA6C,yBAAyB,+CAA+C,QAAQ,OAAO,8BAA8B,+CAA+C,8CAA8C,kDAAkD,QAAQ,OAAO,4EAA4E,qBAAqB,gCAAgC,iBAAiB,mCAAmC,aAAa,oDAAoD,mCAAmC,uCAAuC,wBAAwB,yFAAyF,aAAa,4DAA4D,6TAA6T,0CAA0C,iCAAiC,2BAA2B,iBAAiB,oDAAoD,0DAA0D,0BAA0B,sDAAsD,8BAA8B,8BAA8B,iBAAiB,0CAA0C,uDAAuD,8BAA8B,4DAA4D,4CAA4C,kEAAkE,2CAA2C,wCAAwC,kCAAkC,wGAAwG,gEAAgE,qBAAqB,qCAAqC,0FAA0F,qBAAqB,wCAAwC,iBAAiB,2CAA2C,cAAc,kCAAkC,mIAAmI,UAAU,mDAAmD,2QAA2Q,6BAA6B,wCAAwC,wRAAwR,kCAAkC,6FAA6F,OAAO,4FAA4F,OAAO,qBAAqB,iBAAiB,wEAAwE,8CAA8C,iDAAiD,gDAAgD,aAAa,sDAAsD,2DAA2D,wCAAwC,uiBAAuiB,uEAAuE,yCAAyC,iBAAiB,8BAA8B,mDAAmD,kCAAkC,iBAAiB,yDAAyD,4DAA4D,+DAA+D,4DAA4D,0DAA0D,mEAAmE,yHAAyH,kCAAkC,8CAA8C,iDAAiD,2DAA2D,oDAAoD,qBAAqB,iBAAiB,yEAAyE,6BAA6B,sKAAsK,8CAA8C,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,2HAA2H,kCAAkC,iBAAiB,8CAA8C,2EAA2E,2CAA2C,wDAAwD,wDAAwD,kIAAkI,uDAAuD,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,6CAA6C,2DAA2D,2CAA2C,4CAA4C,kEAAkE,oEAAoE,oEAAoE,kDAAkD,gDAAgD,yBAAyB,qBAAqB,iDAAiD,+EAA+E,qBAAqB,iBAAiB,iCAAiC,yDAAyD,sEAAsE,iKAAiK,8FAA8F,oGAAoG,iGAAiG,iBAAiB,gDAAgD,2DAA2D,iBAAiB,8CAA8C,4DAA4D,iBAAiB,onBAAonB,6GAA6G,2CAA2C,uEAAuE,4DAA4D,8CAA8C,qBAAqB,oDAAoD,6FAA6F,wCAAwC,qBAAqB,iDAAiD,qEAAqE,oCAAoC,8EAA8E,+CAA+C,gDAAgD,iDAAiD,oDAAoD,gEAAgE,2DAA2D,kEAAkE,qFAAqF,6BAA6B,EAAE,yBAAyB,OAAO,mEAAmE,yCAAyC,kDAAkD,6EAA6E,sBAAsB,qFAAqF,kDAAkD,yDAAyD,oDAAoD,6BAA6B,yBAAyB,qBAAqB,8EAA8E,sJAAsJ,4DAA4D,+CAA+C,uCAAuC,kDAAkD,yBAAyB,qBAAqB,2CAA2C,+JAA+J,6EAA6E,iZAAiZ,yCAAyC,qBAAqB,6KAA6K,8DAA8D,mFAAmF,sIAAsI,+EAA+E,wDAAwD,sFAAsF,wEAAwE,oFAAoF,6CAA6C,qHAAqH,2EAA2E,0LAA0L,yDAAyD,yCAAyC,ihBAAihB,sIAAsI,qBAAqB,0DAA0D,iBAAiB,2CAA2C,uDAAuD,kKAAkK,mCAAmC,gDAAgD,8EAA8E,8EAA8E,2EAA2E,0FAA0F,uDAAuD,2GAA2G,yBAAyB,+BAA+B,6DAA6D,iEAAiE,iEAAiE,iEAAiE,gCAAgC,4CAA4C,2FAA2F,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,kEAAkE,yIAAyI,2DAA2D,QAAQ,oCAAoC,wCAAwC,8BAA8B,qBAAqB,iGAAiG,mHAAmH,gDAAgD,kCAAkC,kHAAkH,iDAAiD,kCAAkC,8GAA8G,wCAAwC,kCAAkC,qBAAqB,+DAA+D,iBAAiB,sDAAsD,aAAa,6DAA6D,wCAAwC,yMAAyM,4CAA4C,6FAA6F,sCAAsC,mCAAmC,yCAAyC,yCAAyC,sIAAsI,2CAA2C,qBAAqB,6BAA6B,iBAAiB,EAAE,yDAAyD,yCAAyC,iDAAiD,4CAA4C,uCAAuC,oCAAoC,qBAAqB,iBAAiB,kDAAkD,4BAA4B,gCAAgC,iBAAiB,sCAAsC,kCAAkC,wCAAwC,mCAAmC,2CAA2C,+CAA+C,8DAA8D,kCAAkC,qDAAqD,QAAQ,OAAO,wFAAwF,qBAAqB,mFAAmF,6CAA6C,sDAAsD,8CAA8C,iDAAiD,kDAAkD,uCAAuC,qBAAqB,OAAO,6CAA6C,iDAAiD,yDAAyD,qBAAqB,wCAAwC,iBAAiB,yBAAyB,aAAa,6CAA6C,2CAA2C,oCAAoC,mCAAmC,yCAAyC,2BAA2B,2BAA2B,gCAAgC,iCAAiC,yCAAyC,0BAA0B,iPAAiP,mDAAmD,oCAAoC,iDAAiD,+BAA+B,iCAAiC,cAAc,2BAA2B,wCAAwC,sCAAsC,6CAA6C,+BAA+B,wCAAwC,aAAa,kKAAkK,sBAAsB,qDAAqD,EAAE,mCAAmC,aAAa,kDAAkD,iQAAiQ,mCAAmC,6DAA6D,0CAA0C,sCAAsC,uCAAuC,sEAAsE,uDAAuD,8KAA8K,oEAAoE,qDAAqD,iBAAiB,OAAO,uCAAuC,kGAAkG,iBAAiB,aAAa,OAAO,mCAAmC,0CAA0C,8CAA8C,aAAa,gCAAgC,8EAA8E,gDAAgD,aAAa,wBAAwB,UAAU,iDAAiD,+BAA+B,4BAA4B,aAAa,8BAA8B,uBAAuB,aAAa,4CAA4C,iCAAiC,qCAAqC,qCAAqC,aAAa,kCAAkC,sCAAsC,2CAA2C,2CAA2C,6CAA6C,8CAA8C,aAAa,8BAA8B,4EAA4E,wBAAwB,UAAU,+CAA+C,+BAA+B,4BAA4B,aAAa,0CAA0C,gCAAgC,oCAAoC,aAAa,qCAAqC,0BAA0B,8BAA8B,oCAAoC,oCAAoC,aAAa,uEAAuE,wBAAwB,UAAU,mDAAmD,+BAA+B,4BAA4B,aAAa,0CAA0C,gCAAgC,oCAAoC,oCAAoC,oCAAoC,yCAAyC,yCAAyC,aAAa,gCAAgC,sCAAsC,sCAAsC,2CAA2C,2CAA2C,aAAa,2DAA2D,4DAA4D,mFAAmF,8BAA8B,wBAAwB,UAAU,oCAAoC,kEAAkE,wBAAwB,UAAU,oCAAoC,2DAA2D,wBAAwB,UAAU,4FAA4F,qCAAqC,sCAAsC,oEAAoE,2BAA2B,yDAAyD,wDAAwD,yBAAyB,wDAAwD,yBAAyB,wCAAwC,wCAAwC,qCAAqC,sCAAsC,yBAAyB,aAAa,qBAAqB,UAAU,wCAAwC,+BAA+B,0BAA0B,aAAa,oBAAoB,sKAAsK,UAAU,sCAAsC,wDAAwD,uBAAuB,aAAa,mEAAmE,qDAAqD,sCAAsC,wDAAwD,wEAAwE,iCAAiC,uFAAuF,aAAa,gCAAgC,UAAU,+CAA+C,+BAA+B,4BAA4B,aAAa,+BAA+B,6BAA6B,mEAAmE,2CAA2C,iBAAiB,yGAAyG,iDAAiD,2BAA2B,aAAa,0DAA0D,+FAA+F,+CAA+C,iBAAiB,+EAA+E,kDAAkD,QAAQ,OAAO,oCAAoC,6CAA6C,qDAAqD,qBAAqB,kEAAkE,0EAA0E,qBAAqB,OAAO,4DAA4D,qBAAqB,iBAAiB,oDAAoD,aAAa,uEAAuE,yBAAyB,6CAA6C,QAAQ,OAAO,sDAAsD,iBAAiB,2BAA2B,aAAa,uBAAuB,gCAAgC,4BAA4B,qCAAqC,aAAa,uEAAuE,qCAAqC,kFAAkF,aAAa,yBAAyB,iLAAiL,mGAAmG,kDAAkD,mEAAmE,qDAAqD,qBAAqB,iBAAiB,8DAA8D,2DAA2D,uDAAuD,iBAAiB,+CAA+C,uDAAuD,aAAa,wBAAwB,UAAU,uCAAuC,yEAAyE,iFAAiF,wBAAwB,UAAU,sCAAsC,+BAA+B,4BAA4B,aAAa,+DAA+D,8FAA8F,4CAA4C,aAAa,wBAAwB,UAAU,kDAAkD,+BAA+B,4BAA4B,aAAa,0DAA0D,sDAAsD,aAAa,2CAA2C,0FAA0F,aAAa,OAAO,+DAA+D,aAAa,sDAAsD,wBAAwB,UAAU,mDAAmD,+BAA+B,4BAA4B,aAAa,0DAA0D,qCAAqC,aAAa,0EAA0E,uDAAuD,wBAAwB,UAAU,wCAAwC,wEAAwE,yCAAyC,8BAA8B,uCAAuC,wFAAwF,wCAAwC,EAAE,SAAS,EAAE,2BAA2B,aAAa,OAAO,6BAA6B,6BAA6B,uCAAuC,aAAa,wBAAwB,UAAU,yDAAyD,2CAA2C,sCAAsC,2CAA2C,6CAA6C,iEAAiE,kCAAkC,mDAAmD,8BAA8B,wBAAwB,uBAAuB,sCAAsC,uCAAuC,4CAA4C,2BAA2B,iCAAiC,0BAA0B,2BAA2B,qBAAqB,UAAU,wDAAwD,qHAAqH,4BAA4B,4BAA4B,gCAAgC,iCAAiC,oBAAoB,0BAA0B,gCAAgC,uBAAuB,UAAU,0DAA0D,+DAA+D,2BAA2B,2BAA2B,2BAA2B,2BAA2B,mCAAmC,mCAAmC,sGAAsG,EAAE,uBAAuB,UAAU,oDAAoD,+DAA+D,0BAA0B,0BAA0B,kCAAkC,kCAAkC,mCAAmC,6EAA6E,EAAE,uBAAuB,UAAU,2DAA2D,0FAA0F,iBAAiB,gIAAgI,wBAAwB,4BAA4B,4BAA4B,gCAAgC,iCAAiC,0BAA0B,iCAAiC,8DAA8D,+BAA+B,2BAA2B,iCAAiC,mCAAmC,oCAAoC,mCAAmC,0CAA0C,uBAAuB,UAAU,qDAAqD,oIAAoI,uBAAuB,uBAAuB,gCAAgC,kCAAkC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,2DAA2D,mCAAmC,iCAAiC,wBAAwB,sCAAsC,2CAA2C,qCAAqC,iEAAiE,yKAAyK,yBAAyB,0BAA0B,2BAA2B,8BAA8B,qCAAqC,0BAA0B,0BAA0B,0BAA0B,0BAA0B,sCAAsC,8BAA8B,iCAAiC,uCAAuC,4CAA4C,2BAA2B,iCAAiC,0BAA0B,2BAA2B,qBAAqB,UAAU,sDAAsD,uCAAuC,+BAA+B,iCAAiC,iDAAiD,oDAAoD,6BAA6B,+BAA+B,qEAAqE,gCAAgC,gEAAgE,aAAa,wBAAwB,UAAU,2DAA2D,kFAAkF,kJAAkJ,sBAAsB,+BAA+B,8BAA8B,oCAAoC,iDAAiD,iBAAiB,qCAAqC,kDAAkD,iBAAiB,aAAa,gDAAgD,kCAAkC,4FAA4F,wCAAwC,sCAAsC,aAAa,EAAE,wBAAwB,UAAU,uBAAuB,4CAA4C,mCAAmC,8CAA8C,0FAA0F,aAAa,OAAO,iOAAiO,aAAa,iBAAiB,wGAAwG,iDAAiD,sFAAsF,kBAAkB,aAAa,YAAY,iDAAiD,yHAAyH,kBAAkB,aAAa,UAAU,oCAAoC,wCAAwC,gPAAgP,6BAA6B,8DAA8D,aAAa,iIAAiI,uBAAuB,uBAAuB,iCAAiC,mCAAmC,8BAA8B,gCAAgC,iDAAiD,oDAAoD,wDAAwD,sCAAsC,wDAAwD,yDAAyD,aAAa,YAAY,UAAU,SAAS,cAAc,GAAG,oCAAoC,0CAA0C,OAAO,OAAO,GAAG,QAAQ,GAAG,qBAAqB,kBAAkB,aAAa,EAAE,EAAE,EAAE,IAAI,kCAAkC,iCAAiC,6CAA6C,qCAAqC,oCAAoC,2CAA2C,aAAa,OAAO,2CAA2C,oEAAoE,iBAAiB,OAAO,6CAA6C,iBAAiB,aAAa,2CAA2C,uBAAuB,UAAU,yCAAyC,2CAA2C,sCAAsC,yDAAyD,0DAA0D,aAAa,YAAY,UAAU,SAAS,cAAc,eAAe,GAAG,+CAA+C,0CAA0C,UAAU,0CAA0C,4CAA4C,4DAA4D,iCAAiC,uFAAuF,aAAa,wBAAwB,UAAU,gCAAgC,yFAAyF,uDAAuD,oCAAoC,wCAAwC,uDAAuD,sDAAsD,qBAAqB,EAAE,kBAAkB,aAAa,UAAU,SAAS,KAAK,GAAG,urBAAurB,2DAA2D,yGAAyG,yDAAyD,aAAa,EAAE,SAAS,0CAA0C,oDAAoD,yCAAyC,qCAAqC,kDAAkD,SAAS,OAAO,iDAAiD,SAAS,KAAK,2BAA2B,+BAA+B,KAAK,GAAG,uVAAuV,+DAA+D,+EAA+E,sBAAsB,8EAA8E,sCAAsC,mDAAmD,wDAAwD,uDAAuD,qBAAqB,iBAAiB,sDAAsD,2EAA2E,iBAAiB,4EAA4E,sDAAsD,2DAA2D,2DAA2D,+DAA+D,gEAAgE,6CAA6C,0CAA0C,6BAA6B,aAAa,wGAAwG,kEAAkE,6CAA6C,oEAAoE,iBAAiB,aAAa,mJAAmJ,0DAA0D,kCAAkC,gDAAgD,gEAAgE,kEAAkE,6CAA6C,iBAAiB,OAAO,kDAAkD,iBAAiB,kCAAkC,aAAa,2EAA2E,UAAU,mCAAmC,6DAA6D,mEAAmE,mCAAmC,oDAAoD,iDAAiD,sEAAsE,gFAAgF,yBAAyB,qBAAqB,OAAO,qEAAqE,qBAAqB,iBAAiB,6DAA6D,gCAAgC,aAAa,oEAAoE,8CAA8C,oCAAoC,iBAAiB,6BAA6B,0BAA0B,iDAAiD,gDAAgD,iBAAiB,OAAO,yCAAyC,iBAAiB,qDAAqD,wCAAwC,iBAAiB,OAAO,8CAA8C,iBAAiB,8CAA8C,yCAAyC,0CAA0C,+DAA+D,gCAAgC,aAAa,4CAA4C,gGAAgG,aAAa,wDAAwD,uEAAuE,4CAA4C,EAAE,uEAAuE,4CAA4C,EAAE,wFAAwF,gCAAgC,aAAa,oEAAoE,8CAA8C,oCAAoC,iBAAiB,gDAAgD,wCAAwC,iBAAiB,wCAAwC,qCAAqC,+CAA+C,kEAAkE,gCAAgC,aAAa,wEAAwE,sCAAsC,2BAA2B,iBAAiB,sCAAsC,2BAA2B,iBAAiB,sCAAsC,2BAA2B,iBAAiB,sCAAsC,2BAA2B,iBAAiB,4DAA4D,4HAA4H,EAAE,gCAAgC,aAAa,8DAA8D,oCAAoC,sFAAsF,iBAAiB,kDAAkD,oCAAoC,iBAAiB,uDAAuD,qEAAqE,gCAAgC,aAAa,0DAA0D,wDAAwD,oFAAoF,iBAAiB,kDAAkD,oCAAoC,iBAAiB,mCAAmC,mCAAmC,+DAA+D,gCAAgC,aAAa,0EAA0E,uEAAuE,uFAAuF,iBAAiB,8DAA8D,yCAAyC,kDAAkD,oCAAoC,iBAAiB,2CAA2C,yCAAyC,2DAA2D,iBAAiB,mEAAmE,iDAAiD,iBAAiB,iCAAiC,kDAAkD,iBAAiB,6EAA6E,2FAA2F,EAAE,wHAAwH,gCAAgC,aAAa,uEAAuE,yCAAyC,6FAA6F,iBAAiB,0CAA0C,iCAAiC,iBAAiB,wEAAwE,kDAAkD,oCAAoC,iBAAiB,2DAA2D,gKAAgK,sWAAsW,oEAAoE,gCAAgC,aAAa,mEAAmE,yCAAyC,6FAA6F,iBAAiB,2CAA2C,gCAAgC,iBAAiB,kDAAkD,oCAAoC,iBAAiB,2DAA2D,qIAAqI,+VAA+V,oEAAoE,gCAAgC,aAAa,kEAAkE,8CAA8C,oCAAoC,iBAAiB,kDAAkD,oCAAoC,iBAAiB,mDAAmD,+CAA+C,oEAAoE,gCAAgC,aAAa,kEAAkE,0CAA0C,iHAAiH,iBAAiB,kDAAkD,oCAAoC,iBAAiB,qDAAqD,uEAAuE,gCAAgC,aAAa,uEAAuE,sCAAsC,mEAAmE,iBAAiB,sCAAsC,mEAAmE,iBAAiB,wCAAwC,oFAAoF,iBAAiB,+CAA+C,kCAAkC,iBAAiB,8DAA8D,6CAA6C,wCAAwC,iBAAiB,4CAA4C,wDAAwD,EAAE,oDAAoD,uCAAuC,qEAAqE,gCAAgC,aAAa,0DAA0D,0CAA0C,+BAA+B,iBAAiB,qCAAqC,8BAA8B,iBAAiB,qCAAqC,8BAA8B,iBAAiB,qCAAqC,4BAA4B,iBAAiB,2HAA2H,wDAAwD,EAAE,+CAA+C,kFAAkF,2FAA2F,EAAE,8DAA8D,4IAA4I,oBAAoB,gFAAgF,sDAAsD,oIAAoI,wDAAwD,EAAE,+CAA+C,iFAAiF,0GAA0G,EAAE,8DAA8D,2IAA2I,mBAAmB,gFAAgF,qDAAqD,wFAAwF,EAAE,qDAAqD,kFAAkF,wEAAwE,gCAAgC,aAAa,UAAU,gCAAgC,KAAK,QAAQ,oGAAoG,yBAAyB,6CAA6C,+CAA+C,0BAA0B,MAAM,qGAAqG,0EAA0E,uEAAuE,oCAAoC,wBAAwB,MAAM,yHAAyH,wCAAwC,MAAM,2GAA2G,wCAAwC,6BAA6B,SAAS,mDAAmD,wBAAwB,MAAM,sIAAsI,8BAA8B,mBAAmB,SAAS,8BAA8B,mBAAmB,SAAS,gCAAgC,qBAAqB,SAAS,wEAAwE,wBAAwB,MAAM,wHAAwH,6BAA6B,iCAAiC,SAAS,6BAA6B,kBAAkB,SAAS,6BAA6B,mBAAmB,SAAS,+DAA+D,wBAAwB,MAAM,2HAA2H,iCAAiC,8BAA8B,SAAS,iCAAiC,wBAAwB,SAAS,2DAA2D,wBAAwB,MAAM,mGAAmG,8CAA8C,wBAAwB,MAAM,8GAA8G,mDAAmD,wBAAwB,MAAM,4GAA4G,0CAA0C,wBAAwB,MAAM;;AAEhh2V,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wCAAwC;AACxC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B,IAAI,SAAS,IAAI,SAAS,IAAI;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,2BAA2B,IAAI,SAAS,IAAI,SAAS,IAAI;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,sBAAsB,EAAE,KAAK,EAAE,KAAK,EAAE;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,sBAAsB,EAAE,KAAK,EAAE,KAAK,EAAE;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uBAAuB,uBAAuB;AAC9C;AACA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,mDAAmD;AACnD,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa;AACb;AACA;;AAEA;;AAEA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA,EAAE;AACF;AACA;AACA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,yBAAyB,SAAS,CAAC,iBAAiB,mBAAmB,cAAc,4BAA4B,YAAY,qBAAqB,2DAA2D,SAAS,mCAAmC,SAAS,qBAAqB,qCAAqC,oCAAoC,EAAE,iBAAiB,iCAAiC,iBAAiB,YAAY,UAAU,sBAAsB,mBAAmB,iDAAiD,yBAAyB,kBAAkB,aAAa,aAAa,cAAc,4BAA4B,SAAS,iFAAiF,qBAAqB,gBAAgB,8EAA8E,aAAa,+DAA+D,sBAAsB,uBAAuB,sCAAsC,SAAS,uEAAuE,iBAAiB,gBAAgB,YAAY,WAAW,KAAK,WAAW,+GAA+G,uBAAuB,wCAAwC,6EAA6E,gBAAgB,aAAa,qGAAqG,UAAU,uCAAuC,0BAA0B,WAAW,0ZAA0Z,wBAAwB,iCAAiC,uBAAuB,sBAAsB,IAAI,4BAA4B,oBAAoB,wCAAwC,oBAAoB,uBAAuB,yCAAyC,sBAAsB,IAAI,qCAAqC,0EAA0E,+BAA+B,mDAAmD,cAAc,kBAAkB,iCAAiC,IAAI,0BAA0B,aAAa,+DAA+D,iEAAiE,0GAA0G,aAAa,qCAAqC,0CAA0C,gBAAgB,cAAc,yBAAyB,GAAG,EAAE,wCAAwC,gLAAgL,wHAAwH,oCAAoC,4KAA4K,EAAE,6BAA6B,0GAA0G,iIAAiI,EAAE,iCAAiC,uEAAuE,sEAAsE,sJAAsJ,sBAAsB,2DAA2D,EAAE,yBAAyB,kCAAkC,2JAA2J,yBAAyB,yCAAyC,yBAAyB,+BAA+B,EAAE,2BAA2B,8BAA8B,EAAE,4BAA4B,sBAAsB,EAAE,6BAA6B,0DAA0D,EAAE,8BAA8B,iJAAiJ,EAAE,6BAA6B,gBAAgB,cAAc,6JAA6J,EAAE,4BAA4B,+JAA+J,qOAAqO,EAAE,iCAAiC,0CAA0C,EAAE,4CAA4C,0BAA0B,EAAE,+BAA+B,WAAW,mBAAmB,mBAAmB,GAAG,KAAK,GAAG,iBAAiB,oBAAoB,QAAQ,2BAA2B,iBAAiB,EAAE,eAAe,iBAAiB,aAAa,cAAc,qGAAqG,iBAAiB,6GAA6G,qBAAqB,IAAI,2BAA2B,wBAAwB,6DAA6D,YAAY,KAAK,KAAK,oCAAoC,gEAAgE,YAAY,oBAAoB,SAAS,2DAA2D,OAAO,uDAAuD,cAAc,SAAS,UAAU,+BAA+B,uBAAuB,mBAAmB,KAAK,uBAAuB,wCAAwC,MAAM,OAAO,YAAY,WAAW,uCAAuC,UAAU,iBAAiB,aAAa,wBAAwB,0CAA0C,sBAAsB,eAAe,sBAAsB,eAAe,sBAAsB,eAAe,kBAAkB,iBAAiB,0DAA0D,YAAY,IAAI,KAAK,4BAA4B,0BAA0B,OAAO,4BAA4B,gBAAgB,KAAK,IAAI,EAAE,4BAA4B,yBAAyB,UAAU,yEAAyE,iBAAiB,eAAe,iBAAiB,KAAK,sCAAsC,SAAS,mDAAmD,gCAAgC,0BAA0B,WAAW,wBAAwB,mBAAmB,wBAAwB,wCAAwC,yDAAyD,kCAAkC,EAAE,mCAAmC,uCAAuC,iBAAiB,aAAa,sCAAsC,SAAS,uBAAuB,6BAA6B,iBAAiB,gCAAgC,iHAAiH,QAAQ,uFAAuF,sCAAsC,uCAAuC,iBAAiB,aAAa,gFAAgF,gBAAgB,aAAa,qGAAqG,aAAa,YAAY,GAAG,IAAI,iDAAiD,SAAS,0EAA0E,YAAY,iBAAiB,aAAa,sCAAsC,SAAS,EAAE,qBAAqB,SAAS,0BAA0B,qBAAqB,2BAA2B,2BAA2B,6BAA6B,kDAAkD,2BAA2B,qBAAqB,4BAA4B,yBAAyB,8BAA8B,wDAAwD,2BAA2B,qBAAqB,4BAA4B,2BAA2B,8BAA8B,8DAA8D,2BAA2B,qBAAqB,4BAA4B,yBAAyB,8BAA8B,wDAAwD,0BAA0B,iCAAiC,2BAA2B,+BAA+B,6BAA6B,kCAAkC,0BAA0B,oCAAoC,2BAA2B,mCAAmC,6BAA6B,oFAAoF,0BAA0B,4BAA4B,2BAA2B,oCAAoC,6BAA6B,sEAAsE,6BAA6B,yIAAyI,0BAA0B,cAAc,uBAAuB,2BAA2B,cAAc,6BAA6B,6BAA6B,cAAc,iFAAiF,uBAAuB,4DAA4D,2BAA2B,cAAc,iFAAiF,yBAAyB,cAAc,uBAAuB,uBAAuB,cAAc,6BAA6B,sBAAsB,yIAAyI,0BAA0B,qJAAqJ,0BAA0B,8DAA8D,wBAAwB,qBAAqB,sBAAsB,wBAAwB,iBAAiB,aAAa,sCAAsC,SAAS,EAAE,WAAW,qCAAqC,6BAA6B,oBAAoB,mCAAmC,6BAA6B,gBAAgB,EAAE,WAAW,uCAAuC,6BAA6B,sBAAsB,EAAE,WAAW,6CAA6C,6BAA6B,4BAA4B,iDAAiD,6BAA6B,8BAA8B,EAAE,iBAAiB,aAAa,cAAc,sBAAsB,kBAAkB,wCAAwC,oBAAoB,sBAAsB,mCAAmC,cAAc,EAAE,oBAAoB,sBAAsB,4BAA4B,cAAc,SAAS,sCAAsC,SAAS,kDAAkD,wBAAwB,0CAA0C,gDAAgD,qBAAqB,IAAI,oBAAoB,2BAA2B,kBAAkB,EAAE,eAAe,gCAAgC,gGAAgG,eAAe,8IAA8I,eAAe,gCAAgC,mBAAmB,sCAAsC,gCAAgC,+BAA+B,IAAI,eAAe,gBAAgB,eAAe,yBAAyB,WAAW,4CAA4C,EAAE,eAAe,4CAA4C,6CAA6C,eAAe,gBAAgB,eAAe,6BAA6B,eAAe,SAAS,+BAA+B,WAAW,2BAA2B,uCAAuC,EAAE,IAAI,iBAAiB,yBAAyB,8BAA8B,gCAAgC,cAAc,EAAE,iBAAiB,SAAS,6BAA6B,sBAAsB,IAAI,iBAAiB,yBAAyB,YAAY,EAAE,iBAAiB,6BAA6B,wCAAwC,IAAI,iBAAiB,yBAAyB,8DAA8D,UAAU,EAAE,iBAAiB,yBAAyB,6BAA6B,8BAA8B,mCAAmC,wBAAwB,oBAAoB,EAAE,yBAAyB,cAAc,cAAc,EAAE,iBAAiB,yBAAyB,2CAA2C,0CAA0C,WAAW,qBAAqB,cAAc,GAAG,GAAG;AACjxc;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,aAAa,YAAY;AACzB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA,cAAc,WAAW;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;;AAGA,aAAa,WAAW;AACxB;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,aAAa,aAAa;AAC1B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,YAAY;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,iBAAiB,mBAAmB;AACpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iBAAiB,sBAAsB;AACvC;;AAEA;AACA,mBAAmB,2BAA2B;;AAE9C;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,mBAAmB;AACnC;AACA;;AAEA;AACA;;AAEA,iBAAiB,2BAA2B;AAC5C;AACA;;AAEA,QAAQ,uBAAuB;AAC/B;AACA;AACA,GAAG;AACH;;AAEA,iBAAiB,uBAAuB;AACxC;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA;AACA,cAAc;;AAEd,kDAAkD,sBAAsB;AACxE;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD;AACvD;;AAEA,6BAA6B,mBAAmB;;AAEhD;;AAEA;;AAEA;AACA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,WAAW,EAAE;AACrD,wCAAwC,WAAW,EAAE;;AAErD;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,sCAAsC;AACtC,GAAG;AACH;AACA,8DAA8D;AAC9D;;AAEA;AACA;AACA,EAAE;;AAEF;AACA;AACA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,mBAAmB;AAC/D;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA,gCAAgC;AAChC;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,KAAK;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC,CAAC;;AAED,kHAAkH;AAClH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,oBAAoB,YAAY,QAAQ;AAChF,2CAA2C,QAAQ;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,0BAA0B,cAAc;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kLAAkL;AAClL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;;;AAGA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,EAAE;AACF;AACA,gEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,gEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA,EAAE;AACF,2CAA2C;AAC3C;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA,yBAAyB;AACzB,0BAA0B;AAC1B,2BAA2B;AAC3B,4BAA4B;AAC5B,+BAA+B;AAC/B;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,SAAS;AACT;AACA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,GAAG;AACH,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA,GAAG;AACH;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;;AAEA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;AAIA,cAAc,MAAM;AACpB;AACA;AACA;AACA,4BAA4B,gDAAgD;AAC5E,IAAI;AACJ,4BAA4B,oCAAoC;AAChE;AACA;AACA,cAAc,MAAM;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,gCAAgC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,gCAAgC;AAC3D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,MAAM;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,SAAS;AACV;;AAEA;AACA;AACA;AACA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,eAAe;AACf,mBAAmB;AACnB,aAAa;AACb,4BAA4B;AAC5B,mBAAmB;AACnB,oBAAoB;AACpB,oBAAoB;;AAEpB;;AAEA;;AAEA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,uB;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,8BAA8B;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C,WAAW;AACX,mBAAmB,MAAM;AACzB;AACA;AACA,wCAAwC;AACxC;AACA,QAAQ,SAAS;AACjB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;;;AAIA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,IAAI;AACJ,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA,eAAe;AACf;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,IAAI,KAAK;AACT;AACA;AACA;AACA,wBAAwB;AACxB,yBAAyB;AACzB,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,IAAI;AACJ;;AAEA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,GAAG,KAAK;AACZ,gCAAgC;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,I;AACA;AACA;AACA,sBAAsB;AACtB;AACA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,KAAK;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,yBAAyB;AACzB,EAAE;AACF;AACA,0BAA0B,yBAAyB;AACnD,wBAAwB,uBAAuB;AAC/C,sBAAsB,qBAAqB;AAC3C,oBAAoB,mBAAmB;AACvC,sBAAsB;AACtB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,IAAI;AACJ,uBAAuB,0DAA0D;AACjF;AACA,wBAAwB;AACxB;;;;;AAKA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;;;;AAIA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F,kCAAkC,0BAA0B,0CAA0C,gBAAgB,OAAO,kBAAkB,EAAE,aAAa,EAAE,OAAO,wBAAwB,EAAE,EAAE;AACnM;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6MAA6M;AAC7M;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,iDAAiD;;AAEpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,mCAAmC;AACnC;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,2BAA2B;AAC3B,0BAA0B;AAC1B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,sEAAsE;AACtE,mFAAmF;AACnF,yFAAyF;AACzF,8FAA8F;AAC9F,yFAAyF;AACzF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA,2CAA2C,mCAAmC;AAC9E;AACA;AACA;AACA;AACA,2CAA2C,gBAAgB;AAC3D;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL,8GAA8G;AAC9G;AACA,GAAG;;AAEH;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,8BAA8B,eAAe;;AAE7C;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wCAAwC,+CAA+C;AACvF,wCAAwC,+CAA+C;AACvF;AACA,OAAO;AACP;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,gCAAgC;AAC7C;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,mBAAmB,yEAAyE;AAC5F;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,mBAAmB;AAChC;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,cAAc;AAC3B,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kCAAkC,+BAA+B;;AAEjE;AACA,+BAA+B,+BAA+B;;AAE9D;AACA,8BAA8B,+BAA+B;;AAE7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,qCAAqC,iBAAiB;;AAEtD,iCAAiC,+BAA+B;;AAEhE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA,cAAc;AACd;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB,mEAAmE;AACzF,SAAS;AACT;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,qCAAqC;AAClD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,qCAAqC;AAClD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,0BAA0B;AACvC,aAAa,0BAA0B;AACvC;AACA,eAAe;AACf;AACA;AACA;AACA,6CAA6C;AAC7C;;AAEA;AACA,6CAA6C;AAC7C;;AAEA;AACA;;AAEA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B,OAAO;AACP;;AAEA;AACA;AACA,uDAAuD,SAAS;AAChE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD,WAAW;AAClE;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8CAA8C,UAAU;AACxD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB,aAAa;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,kBAAkB,kCAAkC,GAAG,gCAAgC,GAAG,8BAA8B;AACxH;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,wBAAwB;AACrC;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,UAAU;AACV;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA,sDAAsD;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA,sDAAsD;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,qEAAqE;;AAErE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,gCAAgC,mEAAmE;;AAEnG;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,mEAAmE;;AAEtG;AACA,uCAAuC,mEAAmE;AAC1G;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,6BAA6B,2EAA2E;;AAExG;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,6CAA6C,WAAW;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB,aAAa,SAAS;AACtB,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,uEAAuE,UAAU;AACjF;AACA;AACA;AACA;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wDAAwD,yDAAyD;AACjH,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,2CAA2C;AAC/C,6EAA6E,6DAA6D;AAC1I,iGAAiG,iEAAiE;AAClK;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,oDAAoD;AAC7F,IAAI,oDAAoD;AACxD,6BAA6B,iEAAiE;AAC9F;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,0BAA0B,6DAA6D;AACvF;AACA;AACA;AACA;AACA,qFAAqF;AACrF;AACA;AACA,IAAI,uDAAuD;AAC3D,wEAAwE,iEAAiE,GAAG,6DAA6D,KAAK;AAC9M;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+CAA+C,0CAA0C;AACzF;AACA,6CAA6C,8CAA8C;AAC3F;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,+CAA+C,0CAA0C;AACzF;AACA,6CAA6C,8CAA8C;AAC3F;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4CAA4C,0CAA0C;AACtF;AACA,0CAA0C,8CAA8C;AACxF;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4CAA4C,0CAA0C;AACtF;AACA,0CAA0C,8CAA8C;AACxF;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,wCAAwC;AACrD,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,uCAAuC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,uCAAuC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,4DAA4D;AACjG;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA,qCAAqC,4DAA4D;AACjG;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,4BAA4B,+BAA+B;AAC3D,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,0CAA0C;AACzF;AACA;AACA;AACA,6CAA6C,8CAA8C;AAC3F;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wCAAwC,8CAA8C;AACtF;AACA,0CAA0C,0CAA0C;AACpF;;AAEA;AACA,+BAA+B,8CAA8C;AAC7E,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA,+CAA+C,0CAA0C;AACzF;AACA;AACA;AACA,6CAA6C,8CAA8C;AAC3F;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wCAAwC,8CAA8C;AACtF;AACA,0CAA0C,0CAA0C;AACpF;;AAEA;AACA,+BAA+B,8CAA8C;AAC7E,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,aAAa;AACb;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA4C,8CAA8C;AAC1F;AACA;AACA;AACA;AACA,4CAA4C,8CAA8C;AAC1F;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,0CAA0C,8CAA8C;AACxF;AACA;AACA;AACA;AACA,0CAA0C,8CAA8C;AACxF;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,2BAA2B;AACxC;AACA,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F,2CAA2C,kBAAkB,kCAAkC,qEAAqE,EAAE,EAAE,OAAO,kBAAkB,EAAE,YAAY;;AAE/M,kCAAkC,0BAA0B,0CAA0C,gBAAgB,OAAO,kBAAkB,EAAE,aAAa,EAAE,OAAO,wBAAwB,EAAE,EAAE;AACnM;AACA,kQAAkQ,oBAAoB;AACtR;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,qBAAqB;AACtC;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,QAAQ;AACzB;AACA,iBAAiB,QAAQ;AACzB;AACA,iBAAiB,QAAQ;AACzB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,QAAQ;AACzB;AACA,iBAAiB,QAAQ;AACzB;AACA,iBAAiB,QAAQ;AACzB;;AAEA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mEAAmE;AACnE;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,6CAA6C,wBAAwB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,0BAA0B;AAC9D,6CAA6C,mBAAmB;AAChE,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,0BAA0B;AAC5D,4CAA4C,eAAe;AAC3D,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD,qCAAqC;AACrC,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,uCAAuC,gBAAgB;AACvD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,yCAAyC,uBAAuB;AAChE;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,uBAAuB;AAChE;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,YAAY;AAC9D,iDAAiD,kBAAkB;AACnE;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,8BAA8B;AAC3C,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,qCAAqC,kCAAkC;AACvE,KAAK;AACL,yBAAyB,kCAAkC;AAC3D;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA,cAAc,OAAO;AACrB,cAAc,cAAc;AAC5B,cAAc,2BAA2B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA,qCAAqC,mDAAmD;AACxF;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,4BAA4B,2EAA2E;AACvG,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA,uEAAuE;;AAEvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA,sDAAsD;AACtD;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,4BAA4B,6BAA6B;AACzD,gCAAgC,sBAAsB;AACtD,gCAAgC,sBAAsB;;AAEtD;AACA;AACA,+BAA+B,mDAAmD;AAClF,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,qDAAqD;;AAErD;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA,qDAAqD;;AAErD;AACA;AACA;AACA,iCAAiC,gCAAgC;AACjE;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA,iEAAiE;;AAEjE;AACA;AACA;AACA,8BAA8B,iDAAiD;AAC/E;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,sEAAsE;;AAEtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sCAAsC,oBAAoB;;AAE1D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,oCAAoC,4BAA4B;AAChE;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,QAAQ;AACrB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,4BAA4B;;AAE9C;AACA;AACA,KAAK;AACL;AACA;AACA,yCAAyC,sBAAsB;;AAE/D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,oCAAoC,oBAAoB;;AAExD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,qCAAqC,qBAAqB;;AAE1D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,uCAAuC,uBAAuB;;AAE9D;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,wCAAwC,wBAAwB;;AAEhE;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,gCAAgC,gBAAgB;;AAEhD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,gCAAgC,gBAAgB;;AAEhD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA,kBAAkB;;AAElB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA,eAAe;;AAEf;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA,wCAAwC,SAAS,mDAAmD,EAAE;;AAEtG;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,0BAA0B;AAC1B,WAAW;AACX;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA,yCAAyC,yBAAyB;;AAElE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA,yCAAyC,yBAAyB;;AAElE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA,yCAAyC,yBAAyB;;AAElE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA,kDAAkD,SAAS;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,uCAAuC;AACpD;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,wBAAwB;AAC7C;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,6CAA6C,WAAW;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,SAAS;AACtB,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,uEAAuE,UAAU;AACjF;AACA;AACA;AACA;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,oBAAoB;AACjC;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B,OAAO;AACP;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,2BAA2B;AACxC,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,2CAA2C,wBAAwB;;AAEnE,8CAA8C;AAC9C;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kFAAkF;AAClF;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,8DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL,kFAAkF;;AAElF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,eAAe,cAAc;AAC7B,eAAe,wBAAwB;AACvC,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA,gBAAgB;AAChB;AACA;AACA;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,wBAAwB;AAC/C;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,+CAA+C,WAAW;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,yEAAyE,UAAU;AACnF;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA,gFAAgF,wBAAwB;AACxG;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA,8CAA8C,wBAAwB;AACtE;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA,+CAA+C,wBAAwB;AACvE;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,yBAAyB;AACzB,uBAAuB;AACvB;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAAgC,+BAA+B;AAC/D;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,wCAAwC,wBAAwB;;AAEhE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,sCAAsC;AACnD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,4BAA4B,6BAA6B;;AAEzD;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB,sBAAsB;AACtB,qBAAqB;AACrB,qBAAqB;AACrB,2BAA2B;AAC3B;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,4BAA4B,6BAA6B;;AAEzD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,8BAA8B;AAC3C;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,8BAA8B;;AAElE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,gBAAgB,4BAA4B,KAAK,wBAAwB;AACzE;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAmE;;AAEnE;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,iEAAiE;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA,8CAA8C;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA,oDAAoD;;AAEpD;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,uCAAuC;AACvC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAoF,wBAAwB;AAC5G,2CAA2C,wCAAwC;AACnF;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA,6DAA6D;AAC7D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,sBAAsB;AACxC;AACA;;AAEA;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,qBAAqB,uBAAuB;;AAE5C;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;;AAEA,4CAA4C;AAC5C;AACA,SAAS;AACT;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+DAA+D,MAAM;;AAErE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA,iCAAiC;AACjC;AACA;;AAEA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;;AAEA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,6BAA6B,uCAAuC;AACpE,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,qBAAqB,wBAAwB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,4BAA4B;;AAE5B,uCAAuC,2BAA2B;AAClE,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,WAAW;AACX,SAAS;AACT;AACA;AACA;AACA,aAAa;AACb,WAAW;AACX;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,sBAAsB;AAC9C,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,mCAAmC;;AAE3D;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,6DAA6D,+BAA+B;AAC5F;AACA;AACA;AACA;AACA,mCAAmC;AACnC;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,OAAO,iCAAiC,2CAA2C;AAC1G;AACA,uBAAuB,OAAO;AAC9B;AACA,uBAAuB,yBAAyB;AAChD;AACA,uBAAuB,yBAAyB;AAChD;AACA,uBAAuB,OAAO;AAC9B;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA,yCAAyC,qBAAqB;;AAE9D;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA,4CAA4C,wBAAwB;;AAEpE;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,eAAe,yBAAyB;AACxC;AACA;AACA;;AAEA;AACA,0CAA0C,sBAAsB;;AAEhE;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA,yCAAyC,qBAAqB;;AAE9D;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,eAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA,wCAAwC,oBAAoB;;AAE5D;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;AACD;AACA;AACA,qDAAqD,mCAAmC,MAAM;AAC9F;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,kEAAkE;AAC7G;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,uBAAuB;AACpC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,YAAY;AACzB,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,gCAAgC;AACnD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA,mBAAmB,gCAAgC;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,6BAA6B;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,wBAAwB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,sBAAsB;AACnC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,sBAAsB;AACnC,aAAa,sBAAsB;AACnC;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,2CAA2C,mBAAmB;AAC9D,uEAAuE;AACvE;AACA;AACA,aAAa,uBAAuB;AACpC;AACA;AACA;AACA;;AAEA;AACA,iCAAiC;;AAEjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,MAAM,WAAW;AACjB;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,qEAAqE,cAAc;AACnF;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,QAAQ,uBAAuB,cAAc;AAC3D;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kDAAkD;AAC/D;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL,+BAA+B,yBAAyB;AACxD,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,yCAAyC;AACtD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,mBAAmB,UAAU;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,uBAAuB;AACpC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,UAAU;AAC7B;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA,aAAa,uBAAuB;AACpC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,iBAAiB,kCAAkC;AACnD;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,iCAAiC;AAC9C;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,uCAAuC;AACpD;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;;AAEA;AACA;;;;AAIA,eAAe;;AAEf;AACA;;AAEA;;AAEA;;AAEA,UAAU,EAAE;;AAEZ,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;;AAEA,aAAa,+DAA+D;;AAE5E;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA,4DAA4D;AAC5D,yDAAyD;;AAEzD;AACA,aAAa,+DAA+D;AAC5E;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA,aAAa,+DAA+D;;AAE5E;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,YAAY,yBAAyB;AACrC;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,YAAY,yBAAyB;AACrC;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,+DAA+D;AAC5E;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,eAAe;AACf;AACA;AACA,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,cAAc,OAAO,6CAA6C;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,cAAc;AACd;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,2BAA2B;AAC3E,gDAAgD,kBAAkB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA,cAAc,qBAAqB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc,sBAAsB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,iEAAiE,uBAAuB;AACxF,MAAM,0BAA0B;AAChC;AACA,aAAa,sCAAsC;AACnD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA,sBAAsB;;AAEtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB,sBAAsB;AACtB,qBAAqB;AACrB,qBAAqB;AACrB;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA,4BAA4B;;AAE5B;AACA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB;AACA,gBAAgB,sBAAsB;AACtC;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA,4BAA4B;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,SAAS;AACxB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;;AAEA;AACA,2BAA2B,SAAS;AACpC;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,gBAAgB;AAChB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,gBAAgB;AAChB;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,IAAI,4BAA4B;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,SAAS;AACxB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,IAAI,4BAA4B;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F,8FAA8F;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,kEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,SAAS;AACxB,eAAe,OAAO,oEAAoE;AAC1F,eAAe,OAAO;AACtB,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,0EAA0E;AAC1E;AACA,qBAAqB;AACrB;AACA,wEAAwE;AACxE;AACA,iBAAiB;AACjB;AACA;AACA;AACA,SAAS;AACT;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,SAAS;AACxB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc,qBAAqB;AACnC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,oBAAoB;AACpB;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc,qBAAqB;AACnC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,kBAAkB;AAC/B;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc,qBAAqB;AACnC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA,8BAA8B,wBAAwB;AACtD;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,oBAAoB;AACpB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc,qBAAqB;AACnC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc,qBAAqB;AACnC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,mBAAmB,kBAAkB;AACrC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2HAA2H,8BAA8B;AACzJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,mDAAmD,WAAW;AAC9D,8DAA8D,kCAAkC;AAChG,8DAA8D,YAAY;AAC1E,8DAA8D,WAAW;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,sBAAsB;AACnC;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,YAAY;AACxB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,YAAY,YAAY;AACxB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;AACA,8CAA8C;;AAE9C;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA,6EAA6E;;AAE7E;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA,oDAAoD;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC;AACA;;AAEA,CAAC,EAAE;AACH;AACA,iBAAiB,wBAAwB;AACzC;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,sCAAsC;;AAEtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,sBAAsB;AACnC,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA,2CAA2C,oCAAoC;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA,oCAAoC;AACpC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE;AACrE,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE;AACrE,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE;AACrE,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE;AACrE,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA+E;AAC/E,8EAA8E;AAC9E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA+E;AAC/E,8EAA8E;AAC9E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA+E;AAC/E,8EAA8E;AAC9E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA+E;AAC/E,8EAA8E;AAC9E;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB;AACA,eAAe;AACf;AACA;AACA;;AAEA,wDAAwD;;AAExD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC,2BAA2B,uDAAuD;AAClF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA,2BAA2B,iBAAiB;AAC5C,KAAK;AACL,sDAAsD;;AAEtD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA,sDAAsD;AACtD;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;;AAEA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,iBAAiB;AAC9B,aAAa,OAAO;AACpB,aAAa,iBAAiB;AAC9B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA,oGAAoG,mBAAmB,EAAE,mBAAmB,8HAA8H,GAAG;AAC7Q;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8CAA8C,6CAA6C;AAC3F,8CAA8C,sBAAsB;AACpE,uDAAuD,sBAAsB;AAC7E,qDAAqD,sBAAsB;AAC3E,0CAA0C,+CAA+C;AACzF,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB,sBAAsB;AACtB,qBAAqB;AACrB,qBAAqB;AACrB;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,iBAAiB;AAC9B,aAAa,OAAO;AACpB,aAAa,iBAAiB;AAC9B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,gBAAgB;AACrC,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA,+EAA+E,sCAAsC;AACrH,OAAO;AACP;AACA;AACA,sBAAsB,kBAAkB;AACxC;AACA;AACA;AACA;AACA,oEAAoE,sBAAsB;AAC1F;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA,iFAAiF,sCAAsC;AACvH,SAAS;AACT;AACA;AACA,yBAAyB,mBAAmB;AAC5C;AACA;AACA;AACA;AACA,uEAAuE,sBAAsB;AAC7F;;AAEA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,iBAAiB;AACtC,SAAS;AACT;;AAEA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,iFAAiF,sCAAsC;AACvH,SAAS;AACT;AACA;AACA,yBAAyB,mBAAmB;AAC5C;AACA;AACA;AACA;AACA,wEAAwE,sBAAsB;AAC9F;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,eAAe;AACtC,uBAAuB,aAAa;AACpC;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2BAA2B,sBAAsB;AACjD;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,6BAA6B,wBAAwB;AACrD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,yBAAyB;AACvD;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,8BAA8B,yBAAyB;AACvD;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA,eAAe;AACf;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,eAAe,SAAS;AACxB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA,yBAAyB,UAAU;AACnC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,SAAS;AACxB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB;AACvB,uBAAuB;AACvB,0BAA0B;AAC1B,2BAA2B;AAC3B,GAAG;;AAEH;AACA;AACA;AACA;AACA,uBAAuB;AACvB,uBAAuB;AACvB,0BAA0B;AAC1B,2BAA2B;;AAE3B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA,iHAAiH;AACjH,wCAAwC;AACxC;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,kHAAkH;AAClH;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0FAA0F;AAC1F,iFAAiF;AACjF,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW;AACX;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;;AAEzC;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,mBAAmB;AACnB,sBAAsB;AACtB,qBAAqB;AACrB,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,mBAAmB;AACnB,sBAAsB;AACtB,qBAAqB;AACrB,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,sCAAsC;AACtC;AACA,eAAe,yBAAyB;AACxC;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA,mBAAmB,kCAAkC;AACrD;AACA;AACA,oBAAoB,mCAAmC;AACvD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,wCAAwC;;AAExC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,qDAAqD;AACrD;AACA,yDAAyD;;AAEzD;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAA0C,+CAA+C;AACzF,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,mDAAmD,WAAW;AAC9D,8DAA8D,kCAAkC;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,mDAAmD,WAAW;AAC9D,8DAA8D,kCAAkC;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,sCAAsC;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB;AACA,eAAe;AACf;AACA;AACA;;AAEA,wDAAwD;;AAExD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA,2BAA2B,iBAAiB;AAC5C,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,oDAAoD,oBAAoB;AACxE;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,aAAa;AACpE;AACA;AACA;AACA,oDAAoD,oBAAoB;AACxE;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,kCAAkC;AAClC;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,kBAAkB;AACrE;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA,2CAA2C;;AAE3C;AACA;AACA,mCAAmC;AACnC;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,UAAU;AAC9D,kDAAkD,YAAY;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,mBAAmB;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,mCAAmC;AACnC;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,mBAAmB;AACpE;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,qCAAqC;AAC7D,yBAAyB,mCAAmC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,mCAAmC;AACnC;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,oDAAoD,iBAAiB;AACrE;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,kCAAkC;AAClC;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,+BAA+B;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,mCAAmC;AACnC;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,+BAA+B;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA,cAAc,sBAAsB;AACpC;AACA;AACA;AACA;AACA,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;;AAElB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,uBAAuB;;AAEtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,uBAAuB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA,aAAa,wBAAwB;AACrC;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA,cAAc,sBAAsB;AACpC;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,oCAAoC;AACpC;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;;AAEJ;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;;AAEJ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;;AAEJ;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,kCAAkC;AAClC,IAAI;AACJ;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,6CAA6C;AAC7C;AACA;AACA;AACA;;AAEA;AACA,SAAS;;AAET;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAiC,2BAA2B;AAC5D;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB;;AAEnB;AACA,cAAc;;AAEd;AACA,cAAc;;AAEd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA,0BAA0B;AAC1B;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mDAAmD,kEAAkE;AACrH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8CAA8C,+BAA+B;;AAE7E;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,oDAAoD,+CAA+C;AACnG,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,+CAA+C;AACrG;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,oEAAoE;AAC1H,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;;AAEb;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+CAA+C,aAAa;AAC5D,qBAAqB;AACrB;;AAEA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb,oDAAoD;;AAEpD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;AACA,uCAAuC,aAAa;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,0DAA0D,eAAe,eAAe;AACxF;;AAEA;AACA,uBAAuB,yCAAyC;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA,4FAA4F,wBAAwB,OAAO,QAAQ,YAAY,0BAA0B,wBAAwB,gBAAgB,+DAA+D;;AAEhR;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,0BAA0B,UAAU;AACpC,mCAAmC;AACnC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,yDAAyD,yCAAyC;AAClG,SAAS;AACT;AACA;AACA,SAAS;AACT,sCAAsC,gBAAgB;AACtD,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB;AACvB,SAAS;AACT;AACA;;AAEA;AACA,iCAAiC,yBAAyB;AAC1D;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sEAAsE,cAAc;AACpF;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;;AAEA;;AAEA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;;AAEA;AACA,iBAAiB;AACjB;AACA;AACA,kEAAkE,cAAc;AAChF;;AAEA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,4BAA4B,qCAAqC;AACjE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4BAA4B;AAC5B;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;;AAEA,WAAW;;AAEX;AACA,gBAAgB;AAChB,eAAe;AACf;AACA,KAAK;;AAEL,eAAe;;AAEf;AACA;AACA,KAAK;;AAEL;AACA,iBAAiB;AACjB,oBAAoB;AACpB,qBAAqB;AACrB,iBAAiB;AACjB,gBAAgB;AAChB,gBAAgB;AAChB,mBAAmB;AACnB,qBAAqB;AACrB,kBAAkB;AAClB,gBAAgB;AAChB,kBAAkB;AAClB,gBAAgB;AAChB,iBAAiB;AACjB;AACA,KAAK;;AAEL;AACA,kBAAkB;AAClB,sBAAsB;AACtB,gBAAgB;AAChB,gBAAgB;AAChB;AACA,KAAK;;AAEL,eAAe;;AAEf;AACA;AACA,KAAK;;AAEL;AACA,sBAAsB;AACtB,kBAAkB;AAClB,gBAAgB;AAChB;AACA,KAAK;;AAEL,UAAU;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6FAA6F;AAC7F,OAAO,2CAA2C;AAClD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,mDAAmD;;AAEnD,mDAAmD;;AAEnD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,2CAA2C,wBAAwB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA,wCAAwC;;AAExC;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb;;AAEA;;AAEA;AACA,0BAA0B;AAC1B;;AAEA;AACA;;AAEA;AACA;AACA,kCAAkC,mDAAmD;AACrF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe;AACf;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,sDAAsD,mDAAmD;AACzG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,yEAAyE;;AAEzE;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA,uEAAuE;;AAEvE;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,qFAAqF;;AAErF;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,uEAAuE;;AAEvE;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA,mFAAmF;;AAEnF;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA,mEAAmE;;AAEnE;AACA;AACA;AACA;AACA,aAAa,sCAAsC;AACnD,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,iFAAiF;;AAEjF;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,oIAAoI;AACpI,yGAAyG;AACzG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,OAAO;AAC1B,qBAAqB,OAAO;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;;AAEvB,2BAA2B;AAC3B;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,cAAc;AAC/D,+CAA+C,cAAc;AAC7D,mDAAmD,eAAe;AAClE;AACA,kDAAkD,iFAAiF;AACnI;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uCAAuC,wDAAwD;AAC/F;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,KAAK;AACL;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP,KAAK;AACL,qBAAqB;AACrB;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF;AAClF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX;;AAEA;AACA;;AAEA;AACA;AACA;AACA,2DAA2D,wCAAwC;AACnG;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E;AAC5E,6DAA6D,wCAAwC;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,4BAA4B;AACnF,uDAAuD,4BAA4B;AACnF,uDAAuD,4BAA4B;AACnF;AACA,sDAAsD,qDAAqD;AAC3G;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;;AAEA;AACA,kCAAkC,iBAAiB;AACnD;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,OAAO;AAC1B,qBAAqB,OAAO;AAC5B;AACA;AACA,sBAAsB,2CAA2C;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,qEAAqE;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB;;AAEnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,+DAA+D;AACpH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,yBAAyB;AACtC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,gCAAgC,yDAAyD;AACzF,GAAG;;AAEH;AACA;AACA,gCAAgC,iCAAiC;AACjE;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,iEAAiE;AACtH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA,4BAA4B,QAAQ;AACpC;AACA;AACA;AACA,6BAA6B,SAAS;AACtC;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,+DAA+D;AACpH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B;AAC1B;;AAEA;;AAEA;AACA;AACA;AACA,kCAAkC,mDAAmD;AACrF;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oDAAoD,mDAAmD;AACvG;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA,2DAA2D,6CAA6C;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E;AAC5E,6DAA6D,6CAA6C;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,yDAAyD,6CAA6C;AACtG;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kDAAkD,mDAAmD;AACrG;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,oCAAoC,6DAA6D;AACjG;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,yCAAyC,eAAe;AACxD;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,uCAAuC,eAAe;AACtD;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL,iBAAiB,kBAAkB;AACnC;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,kBAAkB;AAChC;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,YAAY;AACZ,GAAG;;AAEH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA,wBAAwB,+BAA+B;AACvD,wBAAwB,mDAAmD;AAC3E,wBAAwB,2CAA2C;AACnE,wBAAwB,+BAA+B;AACvD,wBAAwB,mDAAmD;AAC3E,wBAAwB,4CAA4C;AACpE;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA,mBAAmB,oBAAoB;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,sBAAsB;AACtB;AACA,mEAAmE,+EAA+E;AAClJ,6EAA6E,qDAAqD;;AAElI;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,eAAe;AACvC;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,sBAAsB;;AAEtB;AACA,wEAAwE,+EAA+E;AACvJ,kFAAkF,qDAAqD;;AAEvI;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,aAAa;AACb;AACA,wBAAwB,eAAe;AACvC;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,mKAAmK,+EAA+E;;AAElP,2IAA2I,+EAA+E;;AAE1N,8IAA8I,+EAA+E;;AAE7N,sKAAsK,+EAA+E;;AAErP;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,uLAAuL,qDAAqD;;AAE5O,+JAA+J,qDAAqD;;AAEpN,kKAAkK,qDAAqD;;AAEvN,0LAA0L,qDAAqD;;AAE/O;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,yCAAyC,eAAe;AACxD;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,8KAA8K,+EAA+E;AAC7P,4JAA4J,+EAA+E;AAC3O,qKAAqK,+EAA+E;AACpP,uLAAuL,+EAA+E;;AAEtQ;AACA;AACA,mJAAmJ,qDAAqD;AACxM,yJAAyJ,qDAAqD;;AAE9M;AACA;AACA,oLAAoL,qDAAqD;;AAEzO,kKAAkK,qDAAqD;;AAEvN,2KAA2K,qDAAqD;;AAEhO,6LAA6L,qDAAqD;;AAElP;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,aAAa;AACb;;AAEA,qCAAqC,eAAe;AACpD;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA;AACA,oBAAoB;AACpB,sBAAsB;AACtB;;AAEA,mBAAmB,6BAA6B;AAChD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC;AACrC;AACA,mEAAmE,+EAA+E;AAClJ,kGAAkG,qDAAqD;;AAEvJ;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,eAAe;AACvC;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC;;AAErC;AACA,wEAAwE,+EAA+E;AACvJ,kGAAkG,qDAAqD;;AAEvJ;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,aAAa;AACb;AACA,wBAAwB,eAAe;AACvC;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,2CAA2C;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,oCAAoC,2BAA2B;AAC/D;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,8BAA8B;AAC7C,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,8BAA8B,yBAAyB;AACvD;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B,2BAA2B;AACzD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA,gCAAgC,2BAA2B;AAC3D;;AAEA;AACA;AACA;AACA,eAAe,yBAAyB;AACxC,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,6CAA6C,2BAA2B;AACxE;AACA,OAAO;AACP,KAAK;AACL;AACA,kCAAkC,2BAA2B;AAC7D;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oDAAoD,oBAAoB;AACxE;AACA;AACA,oDAAoD,oBAAoB;AACxE;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,WAAW;AAC3D,kDAAkD,YAAY;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,wEAAwE,gCAAgC;AACxG,8CAA8C,mDAAmD;AACjG;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE,gCAAgC;AACzG,yEAAyE,gCAAgC;AACzG,+CAA+C,mDAAmD;AAClG;AACA,+CAA+C,oDAAoD;AACnG;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,6CAA6C,+FAA+F;AAC5I;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,mDAAmD,sBAAsB;AACzE;AACA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C,uDAAuD,sBAAsB;AAC7E;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,qBAAqB;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,uEAAuE,6CAA6C;AACpH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0FAA0F;AAC1F,2EAA2E,6CAA6C;AACxH;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,mDAAmD;;AAExF;AACA;AACA;AACA;AACA;;AAEA;AACA,+DAA+D,6CAA6C;;AAE5G;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,WAAW;AAC3D,kDAAkD,YAAY;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oDAAoD,oBAAoB;AACxE;AACA;AACA,oDAAoD,oBAAoB;AACxE;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA,uBAAuB;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,+EAA+E,aAAa;AAC5F;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gCAAgC,sBAAsB,IAAI;AAC1D,KAAK;;AAEL;AACA;AACA,yBAAyB,uBAAuB;AAChD;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,WAAW;AAC3D,kDAAkD,YAAY;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA,8DAA8D,mDAAmD;AACjH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4DAA4D,iEAAiE;AAC7H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,wBAAwB;AAC5E;AACA;AACA;AACA,sDAAsD,yDAAyD;AAC/G;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,gDAAgD,kDAAkD;AAClG;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,yDAAyD;AAC/G;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA,sFAAsF;AACtF,sFAAsF;AACtF,sFAAsF;AACtF,sFAAsF;;AAEtF;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA,uBAAuB,iBAAiB;;AAExC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,uBAAuB,oBAAoB;AAC3C;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,eAAe,qBAAqB;AACpC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,sCAAsC;AACnD,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,wBAAwB;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D,gEAAgE;AAC9H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD;AAClD,kDAAkD;AAClD,kDAAkD;AAClD,kDAAkD;AAClD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oDAAoD;AACpD,oDAAoD;AACpD,oDAAoD;AACpD,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA,gDAAgD,kDAAkD;AAClG;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,YAAY;AAChE;AACA;AACA;AACA,sDAAsD,yDAAyD;AAC/G;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,YAAY;AACZ;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;;AAEA;AACA;AACA;AACA,sFAAsF;AACtF,sFAAsF;AACtF,sFAAsF;AACtF,sFAAsF;AACtF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wFAAwF;AACxF,wFAAwF;AACxF,wFAAwF;AACxF,wFAAwF;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,yDAAyD;AAC/G;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,gDAAgD,6DAA6D;AAC7G;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,yDAAyD;AAC/G;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA,UAAU,6CAA6C;AACvD,qBAAqB,2BAA2B;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE;;AAEpE;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA,UAAU,6CAA6C;AACvD,qBAAqB,2BAA2B;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,gDAAgD,2DAA2D;AAC3G;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,yDAAyD;AAC/G;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,cAAc;AAC7B;AACA;AACA;AACA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,kBAAkB;AAC/B,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,wBAAwB;AACvC,eAAe,OAAO;AACtB,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,wBAAwB;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA,oDAAoD,yBAAyB,EAAE;AAC/E,oDAAoD,yBAAyB,EAAE;;AAE/E;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D,iCAAiC;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,eAAe;AACpC;AACA,OAAO;;AAEP;AACA;AACA;AACA,iBAAiB,OAAO;AACxB,iBAAiB,OAAO;AACxB,iBAAiB,QAAQ;AACzB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA,iBAAiB,OAAO;AACxB,iBAAiB,OAAO;AACxB,iBAAiB,OAAO;AACxB,iBAAiB,OAAO;AACxB;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gDAAgD;AAChD,4CAA4C;AAC5C,gDAAgD;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF;AAClF,kFAAkF;AAClF;AACA;AACA;AACA;AACA,kFAAkF;AAClF,kFAAkF;AAClF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAoF;AACpF,oFAAoF;AACpF;AACA;AACA;AACA;AACA,oFAAoF;AACpF,oFAAoF;AACpF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kDAAkD;AAClD,+CAA+C;AAC/C,mDAAmD;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8FAA8F;AAC9F,6FAA6F;AAC7F;AACA;AACA;AACA,8FAA8F;AAC9F,6FAA6F;AAC7F;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gGAAgG;AAChG,+FAA+F;AAC/F;AACA;AACA;AACA;AACA,gGAAgG;AAChG,+FAA+F;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wGAAwG;AACxG,4GAA4G;AAC5G,iFAAiF;AACjF;AACA;AACA,wGAAwG;AACxG,qFAAqF;AACrF,iFAAiF;AACjF;AACA;AACA,wGAAwG;AACxG,4GAA4G;AAC5G,iFAAiF;AACjF;AACA;AACA,wGAAwG;AACxG,4GAA4G;AAC5G,iFAAiF;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAmF;AACnF,4GAA4G;AAC5G,wGAAwG;AACxG;AACA;AACA,mFAAmF;AACnF,4GAA4G;AAC5G,wGAAwG;AACxG;AACA;AACA,mBAAmB;AACnB,+EAA+E;AAC/E,kEAAkE;AAClE,+EAA+E;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0GAA0G;AAC1G,8GAA8G;AAC9G,mFAAmF;AACnF;AACA;AACA,0GAA0G;AAC1G,8GAA8G;AAC9G,mFAAmF;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yGAAyG;AACzG,8GAA8G;AAC9G,0GAA0G;AAC1G;AACA;AACA,qFAAqF;AACrF,8GAA8G;AAC9G,0GAA0G;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA,mFAAmF;AACnF,sEAAsE;AACtE,mFAAmF;AACnF;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA,2JAA2J;AAC3J;AACA,iBAAiB,OAAO;AACxB,iBAAiB,OAAO;AACxB,iBAAiB,QAAQ;AACzB,iBAAiB,QAAQ;AACzB;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA,UAAU,0BAA0B;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,WAAW,8DAA8D;;AAE1F;AACA;AACA;;AAEA;AACA,sBAAsB;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,kBAAkB;AAC/B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU,WAAW;AACrB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA,qBAAqB,2BAA2B;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,aAAa,oBAAoB;AACjC,WAAW,gBAAgB;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,mCAAmC;AACjE;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,mEAAmE;AAC7F;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B;AACA,4EAA4E;;AAE5E;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,gCAAgC;;AAExD;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,4BAA4B;AACzD;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,WAAW;AACnE;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA,wBAAwB,wBAAwB;;AAEhD;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE,WAAW;AAC5E;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA,wBAAwB,uCAAuC;;AAE/D;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA,mEAAmE,WAAW;AAC9E;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;;AAEhD,6DAA6D;AAC7D,8DAA8D;AAC9D,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E,WAAW;AACrF;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;;AAEhD;AACA;;AAEA,iDAAiD;AACjD,kDAAkD;AAClD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE,WAAW;AACnF;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA,+HAA+H,eAAe,kBAAkB,4vDAA4vD,eAAe,kBAAkB,q3BAAq3B,eAAe,kBAAkB;AACn1F,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,0BAA0B;AACpD;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA2E,2BAA2B;AACtG;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA,2HAA2H,eAAe,kBAAkB,2vBAA2vB,eAAe,kBAAkB,48BAA48B,eAAe,kBAAkB;AACr6D,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,0BAA0B;AACpD;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE,4BAA4B;AACnG;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,oDAAoD;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA,uCAAuC,yDAAyD;AAChG,6BAA6B;AAC7B,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,qLAAqL,oBAAoB;;AAEzM;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,wDAAwD;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,WAAW;;AAElD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,qCAAqC,WAAW;;AAEhD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA,4BAA4B,uCAAuC;;AAEnE;;AAEA;;AAEA;AACA,qCAAqC;AACrC,yCAAyC;AACzC,yCAAyC;AACzC,qCAAqC;;AAErC;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,UAAU;AAC/D,qDAAqD,+DAA+D;AACpH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;;AAEA,iBAAiB,yCAAyC;AAC1D,GAAG;;AAEH;AACA;;AAEA,gBAAgB,sBAAsB;;AAEtC;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,YAAY;AACZ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,uJAAuJ;AACvJ;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,+BAA+B,mDAAmD;;AAElF;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,iBAAiB;AACxC;AACA,mCAAmC,mBAAmB;;AAEtD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4BAA4B,kFAAkF;;AAE9G;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB;;AAEpB;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,uCAAuC,oDAAoD;AAC3F,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO,4BAA4B,4BAA4B;AAChF;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,yBAAyB;AAC1C;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,yBAAyB;AAC1C;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,QAAQ;AACzB;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA,uCAAuC,uBAAuB;AAC9D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA,mCAAmC,mBAAmB;AACtD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA;AACA,2CAA2C,2BAA2B;;AAEtE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,4CAA4C,4BAA4B;;AAExE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA,wCAAwC,wBAAwB;;AAEhE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,sBAAsB;AACtB,WAAW;AACX;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,sBAAsB;AACtB,KAAK;AACL;AACA;AACA;AACA,sCAAsC,sBAAsB;;AAE5D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yCAAyC,yBAAyB;;AAElE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,6BAA6B;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,mCAAmC,mBAAmB;;AAEtD;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA,mBAAmB,eAAe;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,0CAA0C;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F,kCAAkC,0BAA0B,0CAA0C,gBAAgB,OAAO,kBAAkB,EAAE,aAAa,EAAE,OAAO,wBAAwB,EAAE,EAAE;AACnM;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qPAAqP,wCAAwC;AAC7R;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6MAA6M;AAC7M;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK,iCAAiC;AACtC,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,2BAA2B;AAC5C;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,yBAAyB;AAC1C;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO,iCAAiC,2CAA2C;AACpG;AACA,iBAAiB,QAAQ;AACzB;AACA,KAAK,mCAAmC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA;AACA,2CAA2C,2BAA2B;;AAEtE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,4CAA4C,4BAA4B;;AAExE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;;AAEA;AACA,6BAA6B;AAC7B;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,4BAA4B,6BAA6B;;AAEzD;AACA;AACA,+BAA+B,mDAAmD;AAClF,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA,wCAAwC,wBAAwB;;AAEhE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B;;AAE/B;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA,gCAAgC,sCAAsC;AACtE;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,qCAAqC,qBAAqB;;AAE1D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA,oCAAoC,wBAAwB;;AAE5D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,kBAAkB;AAChC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,oCAAoC,oBAAoB;;AAExD;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,kBAAkB;AAClB,WAAW;AACX,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,kCAAkC,kBAAkB;;AAEpD;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,sBAAsB;AACpC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA,2CAA2C,gBAAgB;AAC3D;AACA,eAAe;AACf;AACA;AACA;AACA,gBAAgB,6DAA6D;;AAE7E;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,2BAA2B;AACxC,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,aAAa;AACb;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAiB;AAC5C,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B,WAAW,iBAAiB;AAC5B,WAAW,iBAAiB;AAC5B,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA,iBAAiB,2DAA2D;AAC5E,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,6DAA6D;AAC7D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,mBAAmB;AACnC;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,wBAAwB;;AAE7C;AACA;AACA,iCAAiC,mDAAmD;;AAEpF;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mDAAmD,wBAAwB;AAC3E;;AAEA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C,qDAAqD,wBAAwB;AAC7E;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,uJAAuJ;AACvJ;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,mBAAmB;;AAExC;AACA;AACA;;AAEA;AACA;AACA;AACA,mDAAmD,wBAAwB;AAC3E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,+BAA+B,mDAAmD;AAClF,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA,iBAAiB,0BAA0B;AAC3C,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,kCAAkC;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,qCAAqC,SAAS,aAAa,EAAE;;AAE7D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK,iCAAiC;AACtC,iBAAiB,0CAA0C;AAC3D;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK,mCAAmC;AACxC;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,qBAAqB;;AAE1D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,wBAAwB,oCAAoC;;AAE5D;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,oCAAoC,oBAAoB;;AAExD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,yDAAyD,oCAAoC;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,kCAAkC,kBAAkB;;AAEpD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,0CAA0C;AACvD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,qCAAqC,qBAAqB;;AAE1D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,mBAAmB,iCAAiC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iCAAiC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB,mBAAmB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iCAAiC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA,mBAAmB,iCAAiC;AACpD;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,UAAU,EAAE,UAAU,EAAE,YAAY;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F,kCAAkC,0BAA0B,0CAA0C,gBAAgB,OAAO,kBAAkB,EAAE,aAAa,EAAE,OAAO,wBAAwB,EAAE,EAAE;AACnM;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qPAAqP,sBAAsB;AAC3Q,qPAAqP,qBAAqB;AAC1Q;AACA;AACA;AACA;AACA,oNAAoN,2BAA2B;AAC/O;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC,gBAAgB;;AAErD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,aAAa;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,aAAa;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,4BAA4B,+BAA+B;AAC3D,gCAAgC,gBAAgB;AAChD,gCAAgC,gBAAgB;;AAEhD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,wCAAwC,SAAS,yCAAyC,EAAE;;AAE5F;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,0BAA0B;AACvC,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,oCAAoC,4BAA4B;;AAEhE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,6BAA6B,iBAAiB;AAC9C,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA,uCAAuC,uCAAuC,iCAAiC;AAC/G,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK,mCAAmC;AACxC;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,yCAAyC;AACzC;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,wCAAwC,wBAAwB;;AAEhE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA,wBAAwB,2CAA2C;;AAEnE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA,wBAAwB,gDAAgD;;AAExE;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,wCAAwC,SAAS,2DAA2D,EAAE;;AAE9G;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,4EAA4E,6BAA6B,oBAAoB;AAC7H;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA,mEAAmE,6BAA6B,YAAY;;AAE5G;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,kBAAkB;AACvC;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,0DAA0D;AAC/G;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,eAAe;AAChC;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,wBAAwB;AAC/C;;AAEA;AACA;;AAEA;AACA;AACA,iCAAiC,mDAAmD;;AAEpF;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,uJAAuJ;AACvJ;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,mBAAmB;;AAExC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA,+BAA+B,mDAAmD;AAClF,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E;AAC5E,sEAAsE;;AAEtE;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,gCAAgC;AACxD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,gDAAgD;;AAExE;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,wBAAwB,uCAAuC;;AAE/D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA;;AAEA,wBAAwB,uCAAuC;AAC/D,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,4BAA4B,2EAA2E;AACvG,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,sBAAsB;AAC/E,0DAA0D,oBAAoB;AAC9E;AACA;AACA;AACA;AACA,uBAAuB,kDAAkD;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,yDAAyD,SAAS;AAClE;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,iEAAiE;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,sEAAsE;;AAEtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA,uCAAuC,yFAAyF,iCAAiC;AACjK,iBAAiB,MAAM;AACvB;AACA,KAAK,mCAAmC;AACxC;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mCAAmC,cAAc;AACjD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA,uCAAuC,YAAY;AACnD,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,oBAAoB;;AAE3D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,qCAAqC,wBAAwB;;AAE7D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,SAAS,aAAa,EAAE;;AAE7D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,mCAAmC,cAAc;;AAEjD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,mBAAmB,YAAY;AAC/B;AACA;AACA;AACA;AACA,gBAAgB,yCAAyC;AACzD;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA,mBAAmB,WAAW;AAC9B;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F,kCAAkC,0BAA0B,0CAA0C,gBAAgB,OAAO,kBAAkB,EAAE,aAAa,EAAE,OAAO,wBAAwB,EAAE,EAAE;AACnM;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uNAAuN,MAAM;AAC7N;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4MAA4M;AAC5M;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA,uCAAuC,yBAAyB;AAChE,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mCAAmC,cAAc;;AAEjD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;;AAEP,0BAA0B,iDAAiD;AAC3E;AACA;;AAEA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA,4BAA4B,uCAAuC;;AAEnE;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,6BAA6B;AAC7B,6CAA6C;AAC7C,qEAAqE;AACrE,8CAA8C;;AAE9C;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D,UAAU;AACpE,0DAA0D,+DAA+D;AACzH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0BAA0B;AAC1B;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,uCAAuC,wBAAwB;AAC/D,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B,4CAA4C;AACtE;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA,0DAA0D,+CAA+C;AACzG;AACA,qCAAqC,aAAa;AAClD;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,8BAA8B;AAC9B,kCAAkC;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uCAAuC,YAAY,iCAAiC,mCAAmC;;AAEvH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,oBAAoB;AACvC;AACA;;AAEA,oBAAoB,kBAAkB;AACtC;AACA;;AAEA;AACA,GAAG;;AAEH;;AAEA,sDAAsD;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,oCAAoC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,oCAAoC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,yBAAyB;AAC9C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,sBAAsB,QAAQ;AAC9B;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,sBAAsB,QAAQ;AAC9B;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,mBAAmB,oCAAoC;AACvD;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,sCAAsC;AAC3D;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA,qBAAqB,uCAAuC;AAC5D;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,mBAAmB,mCAAmC;AACtD;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,mBAAmB,oCAAoC;AACvD;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,eAAe;AAClE,mDAAmD,eAAe;AAClE,mDAAmD,eAAe;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,eAAe;AACnE,oDAAoD,eAAe;AACnE,oDAAoD,eAAe;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,8BAA8B;AAC9B,kCAAkC;AAClC;AACA;AACA;AACA,+CAA+C;AAC/C,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uCAAuC,8BAA8B;AACrE,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,oBAAoB;;AAEpB,uCAAuC,sCAAsC;AAC7E,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,sBAAsB;AACtB,WAAW;AACX;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,sBAAsB;AACtB,KAAK;AACL;AACA;AACA,sCAAsC,sBAAsB;;AAE5D;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,2BAA2B;AACxC,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA,uCAAuC,0CAA0C,iCAAiC,mCAAmC;;AAErJ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,8BAA8B;AAC9B,kCAAkC;AAClC;AACA;AACA;AACA;;AAEA,oBAAoB;;AAEpB;AACA;AACA;AACA,8BAA8B;;AAE9B,wBAAwB,+BAA+B;AACvD,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB;AACxB,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,sBAAsB;AACtB,WAAW;AACX;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,sBAAsB;AACtB,KAAK;AACL;AACA;AACA;AACA;AACA,sCAAsC,sBAAsB;;AAE5D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA,qDAAqD;;AAErD;AACA;;AAEA;;AAEA;AACA;AACA,2DAA2D,eAAe;AAC1E;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB,oBAAoB;AACzC;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,gBAAgB;AACrC;AACA,0BAA0B,sBAAsB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2BAA2B,uBAAuB;AAClD;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,sBAAsB,iBAAiB;AACvC,4BAA4B,wBAAwB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,iEAAiE;AAC5H,2DAA2D,6CAA6C;AACxG,2DAA2D,8CAA8C;AACzG,2DAA2D,8DAA8D;AACzH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP,8BAA8B;AAC9B,kCAAkC;AAClC;AACA;AACA,8CAA8C;AAC9C;;AAEA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,wBAAwB,wBAAwB;AAChD,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,eAAe;AACtE,uDAAuD,eAAe;AACtE,uDAAuD,eAAe;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,eAAe;AACvE,wDAAwD,eAAe;AACvE,wDAAwD,eAAe;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,iBAAiB;AACzE;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,iBAAiB;AACrE;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;;AAEhD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D,4CAA4C;AAC1G;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,WAAW;AAC1D,6CAA6C,YAAY;AACzD;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA,wBAAwB,qEAAqE;AAC7F;AACA;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6DAA6D,iEAAiE;AAC9H;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA,4DAA4D,kBAAkB,MAAM,kBAAkB;AACtG,iBAAiB,wBAAwB,iBAAiB,kBAAkB;AAC5E;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uCAAuC,wBAAwB;AAC/D,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,2CAA2C,2BAA2B;;AAEtE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;;AAEL;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,2CAA2C,sBAAsB;;AAEjE;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc,YAAY;AAC1B;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,+BAA+B;AAClD;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,cAAc,kBAAkB;AAChC;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,gCAAgC;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,gCAAgC;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,8BAA8B;AAC3C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB,2BAA2B;AAChD;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,8BAA8B;AAC3C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA,+DAA+D,YAAY;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA,iEAAiE;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,2BAA2B;AACxC,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,iBAAiB;AACvE;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D,0CAA0C;AACtG;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA,wBAAwB,yEAAyE;;AAEjG;AACA;AACA,oEAAoE,YAAY;;AAEhF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,2CAA2C,+BAA+B;;AAE1E;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uEAAuE,YAAY;;AAEnF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA,0DAA0D,YAAY;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA,wBAAwB,yEAAyE;;AAEjG;AACA;AACA,oEAAoE,YAAY;;AAEhF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,2CAA2C,+BAA+B;;AAE1E;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA,0DAA0D,YAAY;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;;AAEA;AACA,wBAAwB,0BAA0B;;AAElD;;AAEA,2DAA2D,gBAAgB;AAC3E;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,oCAAoC,cAAc;;AAElD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,0DAA0D,gBAAgB;AAC1E;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,gBAAgB;AACvE;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,oCAAoC,cAAc;;AAElD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,qBAAqB;AACzE;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,0BAA0B;AAC1B;AACA,oBAAoB;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,sBAAsB;AACtB,WAAW;AACX;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB,KAAK;AACL;AACA;AACA;AACA,sCAAsC,sBAAsB;;AAE5D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,iDAAiD;;AAEjD;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,uBAAuB;AACtC,aAAa,WAAW;AACxB;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,uBAAuB;AACpC,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,oCAAoC,2BAA2B;;AAE/D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C,4CAA4C;AAC5C,0CAA0C;AAC1C;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA;AACA,yEAAyE,gBAAgB;AACzF;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,0BAA0B;AAChF;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,0BAA0B;AAC5E;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;AAC5C,4CAA4C;AAC5C;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,yBAAyB;AACxC;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB,qJAAqJ;AAC5K;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0EAA0E,cAAc;AACxF;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,aAAa,SAAS;AACtB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,aAAa,SAAS,iGAAiG;AACvH,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,sBAAsB;AACnC,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc,OAAO;AACrB;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,sBAAsB;AACnC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA,cAAc,sBAAsB;AACpC;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,eAAe,sBAAsB;AACrC;AACA;AACA;;AAEA;AACA,qBAAqB,sBAAsB;AAC3C;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,wCAAwC,QAAQ;AAChD;AACA;AACA,KAAK;AACL,sBAAsB,uBAAuB;AAC7C;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA,CAAC;;AAED;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,qDAAqD;AACrD,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;;AAEA;;AAEA;;AAEA,uBAAuB,kBAAkB;AACzC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA,6CAA6C;AAC7C;AACA,eAAe,OAAO;AACtB,gBAAgB,gBAAgB;AAChC;AACA;AACA;AACA;AACA;AACA,uBAAuB,gBAAgB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,wDAAwD;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA,oGAAoG,mBAAmB,EAAE,mBAAmB,8HAA8H,GAAG;AAC7Q;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0TAA0T;AAC1T;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA,eAAe,sCAAsC;AACrD,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,wFAAwF;AACxF,sCAAsC;AACtC;AACA;AACA,oCAAoC;AACpC;AACA;;AAEA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,6BAA6B;AAC7B,iCAAiC;AACjC,+BAA+B;;AAE/B;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,6BAA6B;AAC7B,iCAAiC;AACjC,+BAA+B;;AAE/B;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,kBAAkB;AACjC,eAAe,OAAO;AACtB,iBAAiB;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;;AAED;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA,WAAW;AACX;AACA;;;AAGA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;;AAEA,iBAAiB,kBAAkB;AACnC;AACA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ,YAAY;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,4BAA4B;;AAE5B,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,cAAc;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,aAAa,IAAI;AAC3D,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,8CAA8C,mBAAmB,IAAI;AACrE,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,kDAAkD,aAAa,IAAI;AACnE;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB,eAAe,OAAO;AACtB;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;;AAEA;;AAEA,uBAAuB,WAAW;AAClC,2BAA2B,YAAY;AACvC;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,uBAAuB,QAAQ;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA,uDAAuD,kDAAkD,4CAA4C;AACrJ;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,uDAAuD,uDAAuD,uDAAuD;AACrK;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,cAAc,MAAM;AACpB,cAAc,OAAO;AACrB;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,uBAAuB,WAAW;AAClC,2BAA2B,YAAY;AACvC;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,wBAAwB,QAAQ;AAChC;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA,8DAA8D,wDAAwD;;AAEtH;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,4BAA4B;;AAE5B;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB,eAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP,UAAU;AACV,CAAC;AACD,kC","file":"libqmock-c6bc2f1219d1ee2f214a.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./index.js\");\n","import draw2d from '@sarhanalaa/draw2d'\r\nimport elements from '../lib/elements'\r\n\r\nexport default function createApp( canvasContainerId, width, height ) {\r\n const canvas = new draw2d.Canvas( canvasContainerId, width, height )\r\n\r\n return {\r\n canvas,\r\n elements,\r\n draw2d\r\n }\r\n}\r\n","import draw2d from '@sarhanalaa/draw2d'\r\n\r\nconst titleLabelEditor = new draw2d.ui.LabelInplaceEditor()\r\n\r\nconst createWindow = ({\r\n height = 480,\r\n title = 'Window',\r\n titleBarColor = '#333',\r\n titleBarBgColor = '#999',\r\n width = 640,\r\n}) => {\r\n const window = new draw2d.shape.composite.Raft({\r\n stroke: 1,\r\n width,\r\n height\r\n })\r\n\r\n const titleBar = new draw2d.shape.basic.Rectangle({\r\n bgColor: titleBarBgColor,\r\n stroke: 0,\r\n height: 24,\r\n width\r\n })\r\n\r\n const titleBarLabel = new draw2d.shape.basic.Label({\r\n text: title,\r\n fontColor: titleBarColor,\r\n stroke: 0\r\n })\r\n\r\n window.add(titleBar, new draw2d.layout.locator.XYRelPortLocator(0, 0))\r\n window.add(titleBarLabel, new draw2d.layout.locator.XYRelPortLocator(0, 0))\r\n\r\n window.on('change:dimension', (_, { value: { width } }) => {\r\n titleBar.setDimension(width, titleBar.getHeight());\r\n })\r\n\r\n titleBar.on('dblclick', () => { titleLabelEditor.start(titleBarLabel) })\r\n\r\n return window\r\n}\r\n\r\nexport default createWindow\r\n","import draw2d from '@sarhanalaa/draw2d'\r\nimport createWindow from './Window'\r\n\r\nexport default {\r\n createWindow\r\n}\r\n","import createApp from './App'\n\nexport { createApp }\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"draw2d\"] = factory();\n\telse\n\t\troot[\"draw2d\"] = factory();\n})(window, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = \"./src/index.js\");\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ \"./node_modules/canvg-browser/index.js\":\n/*!*********************************************!*\\\n !*** ./node_modules/canvg-browser/index.js ***!\n \\*********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\n\r\n var RGBColor = __webpack_require__(/*! rgbcolor */ \"./node_modules/rgbcolor/index.js\");\r\n var stackblur = __webpack_require__(/*! stackblur */ \"./node_modules/stackblur/index.js\");\r\n var xmldom = __webpack_require__(/*! xmldom */ \"./node_modules/xmldom/dom-parser.js\");\r\n\r\n/*\r\n * canvg.js - Javascript SVG parser and renderer on Canvas\r\n * MIT Licensed\r\n * Gabe Lerner (gabelerner@gmail.com)\r\n * http://code.google.com/p/canvg/\r\n *\r\n * Requires: rgbcolor.js - http://www.phpied.com/rgb-color-parser-in-javascript/\r\n */\r\n\r\n/*\r\ncanvg(target, s)\r\n empty parameters: replace all 'svg' elements on page with 'canvas' elements\r\n target: canvas element or the id of a canvas element\r\n s: svg string, url to svg file, or xml document\r\n opts: optional hash of options\r\n ignoreMouse: true => ignore mouse events\r\n ignoreAnimation: true => ignore animations\r\n ignoreDimensions: true => does not try to resize canvas\r\n ignoreClear: true => does not clear canvas\r\n offsetX: int => draws at a x offset\r\n offsetY: int => draws at a y offset\r\n scaleWidth: int => scales horizontally to width\r\n scaleHeight: int => scales vertically to height\r\n renderCallback: function => will call the function after the first render is completed\r\n forceRedraw: function => will call the function on every frame, if it returns true, will redraw\r\n*/\r\nfunction canvg(target, s, opts) {\r\n\r\n\t// no parameters\r\n\tif (target == null && s == null && opts == null) {\r\n\t\tvar svgTags = document.querySelectorAll('svg');\r\n\t\tfor (var i=0; i~\\.\\[:]+)/g;\r\n var classRegex = /(\\.[^\\s\\+>~\\.\\[:]+)/g;\r\n var pseudoElementRegex = /(::[^\\s\\+>~\\.\\[:]+|:first-line|:first-letter|:before|:after)/gi;\r\n var pseudoClassWithBracketsRegex = /(:[\\w-]+\\([^\\)]*\\))/gi;\r\n var pseudoClassRegex = /(:[^\\s\\+>~\\.\\[:]+)/g;\r\n var elementRegex = /([^\\s\\+>~\\.\\[:]+)/g;\r\n\r\n\tvar findMatch = function(regex, type) {\r\n\t\tvar matches = selector.match(regex);\r\n\t\tif (matches == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttypeCount[type] += matches.length;\r\n\t\tselector = selector.replace(regex, ' ');\r\n\t};\r\n\r\n\tselector = selector.replace(/:not\\(([^\\)]*)\\)/g, ' $1 ');\r\n\tselector = selector.replace(/{[^]*/gm, ' ');\r\n\tfindMatch(attributeRegex, 1);\r\n\tfindMatch(idRegex, 0);\r\n\tfindMatch(classRegex, 1);\r\n\tfindMatch(pseudoElementRegex, 2);\r\n\tfindMatch(pseudoClassWithBracketsRegex, 1);\r\n\tfindMatch(pseudoClassRegex, 1);\r\n\tselector = selector.replace(/[\\*\\s\\+>~]/g, ' ');\r\n\tselector = selector.replace(/[#\\.]/g, ' ');\r\n\tfindMatch(elementRegex, 2);\r\n\treturn typeCount.join('');\r\n}\r\n\r\nfunction build(opts) {\r\n\tvar svg = { opts: opts };\r\n\r\n var matchesSelector = getMatchesSelector();\r\n\r\n if (typeof CanvasRenderingContext2D != 'undefined') {\r\n CanvasRenderingContext2D.prototype.drawSvg = function(s, dx, dy, dw, dh, opts) {\r\n var cOpts = {\r\n ignoreMouse: true,\r\n ignoreAnimation: true,\r\n ignoreDimensions: true,\r\n ignoreClear: true,\r\n offsetX: dx,\r\n offsetY: dy,\r\n scaleWidth: dw,\r\n scaleHeight: dh\r\n };\r\n\r\n for(var prop in opts) {\r\n if(opts.hasOwnProperty(prop)){\r\n cOpts[prop] = opts[prop];\r\n }\r\n }\r\n canvg(this.canvas, s, cOpts);\r\n };\r\n }\r\n\r\n\tsvg.FRAMERATE = 30;\r\n\tsvg.MAX_VIRTUAL_PIXELS = 30000;\r\n\r\n\tsvg.log = function(msg) {};\r\n\tif (svg.opts.log == true && typeof console != 'undefined') {\r\n\t\tsvg.log = function(msg) { console.log(msg); };\r\n\t}\r\n\r\n\t// globals\r\n\tsvg.init = function(ctx) {\r\n\t\tvar uniqueId = 0;\r\n\t\tsvg.UniqueId = function () { uniqueId++; return 'canvg' + uniqueId;\t};\r\n\t\tsvg.Definitions = {};\r\n\t\tsvg.Styles = {};\r\n\t\tsvg.StylesSpecificity = {};\r\n\t\tsvg.Animations = [];\r\n\t\tsvg.Images = [];\r\n\t\tsvg.ctx = ctx;\r\n\t\tsvg.ViewPort = new (function () {\r\n\t\t\tthis.viewPorts = [];\r\n\t\t\tthis.Clear = function() { this.viewPorts = []; };\r\n\t\t\tthis.SetCurrent = function(width, height) { this.viewPorts.push({ width: width, height: height }); };\r\n\t\t\tthis.RemoveCurrent = function() { this.viewPorts.pop(); };\r\n\t\t\tthis.Current = function() { return this.viewPorts[this.viewPorts.length - 1]; };\r\n\t\t\tthis.width = function() { return this.Current().width; };\r\n\t\t\tthis.height = function() { return this.Current().height; };\r\n\t\t\tthis.ComputeSize = function(d) {\r\n\t\t\t\tif (d != null && typeof d == 'number') return d;\r\n\t\t\t\tif (d == 'x') return this.width();\r\n\t\t\t\tif (d == 'y') return this.height();\r\n\t\t\t\treturn Math.sqrt(Math.pow(this.width(), 2) + Math.pow(this.height(), 2)) / Math.sqrt(2);\r\n\t\t\t};\r\n\t\t});\r\n\t}\r\n\tsvg.init();\r\n\r\n\t// images loaded\r\n\tsvg.ImagesLoaded = function() {\r\n\t\tfor (var i=0; i]*>/, '');\r\n\t\t\tvar xmlDoc = new ActiveXObject('Microsoft.XMLDOM');\r\n\t\t\txmlDoc.async = 'false';\r\n\t\t\txmlDoc.loadXML(xml);\r\n\t\t\treturn xmlDoc;\r\n\t\t}\r\n\t}\r\n\r\n\tsvg.Property = function(name, value) {\r\n\t\tthis.name = name;\r\n\t\tthis.value = value;\r\n\t}\r\n\t\tsvg.Property.prototype.getValue = function() {\r\n\t\t\treturn this.value;\r\n\t\t}\r\n\r\n\t\tsvg.Property.prototype.hasValue = function() {\r\n\t\t\treturn (this.value != null && this.value != '');\r\n\t\t}\r\n\r\n\t\t// return the numerical value of the property\r\n\t\tsvg.Property.prototype.numValue = function() {\r\n\t\t\tif (!this.hasValue()) return 0;\r\n\r\n\t\t\tvar n = parseFloat(this.value);\r\n\t\t\tif ((this.value + '').match(/%$/)) {\r\n\t\t\t\tn = n / 100.0;\r\n\t\t\t}\r\n\t\t\treturn n;\r\n\t\t}\r\n\r\n\t\tsvg.Property.prototype.valueOrDefault = function(def) {\r\n\t\t\tif (this.hasValue()) return this.value;\r\n\t\t\treturn def;\r\n\t\t}\r\n\r\n\t\tsvg.Property.prototype.numValueOrDefault = function(def) {\r\n\t\t\tif (this.hasValue()) return this.numValue();\r\n\t\t\treturn def;\r\n\t\t}\r\n\r\n\t\t// color extensions\r\n\t\t\t// augment the current color value with the opacity\r\n\t\t\tsvg.Property.prototype.addOpacity = function(opacityProp) {\r\n\t\t\t\tvar newValue = this.value;\r\n\t\t\t\tif (opacityProp.value != null && opacityProp.value != '' && typeof this.value == 'string') { // can only add opacity to colors, not patterns\r\n\t\t\t\t\tvar color = new RGBColor(this.value);\r\n\t\t\t\t\tif (color.ok) {\r\n\t\t\t\t\t\tnewValue = 'rgba(' + color.r + ', ' + color.g + ', ' + color.b + ', ' + opacityProp.numValue() + ')';\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn new svg.Property(this.name, newValue);\r\n\t\t\t}\r\n\r\n\t\t// definition extensions\r\n\t\t\t// get the definition from the definitions table\r\n\t\t\tsvg.Property.prototype.getDefinition = function() {\r\n\t\t\t\tvar name = this.value.match(/#([^\\)'\"]+)/);\r\n\t\t\t\tif (name) { name = name[1]; }\r\n\t\t\t\tif (!name) { name = this.value; }\r\n\t\t\t\treturn svg.Definitions[name];\r\n\t\t\t}\r\n\r\n\t\t\tsvg.Property.prototype.isUrlDefinition = function() {\r\n\t\t\t\treturn this.value.indexOf('url(') == 0\r\n\t\t\t}\r\n\r\n\t\t\tsvg.Property.prototype.getFillStyleDefinition = function(e, opacityProp) {\r\n\t\t\t\tvar def = this.getDefinition();\r\n\r\n\t\t\t\t// gradient\r\n\t\t\t\tif (def != null && def.createGradient) {\r\n\t\t\t\t\treturn def.createGradient(svg.ctx, e, opacityProp);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// pattern\r\n\t\t\t\tif (def != null && def.createPattern) {\r\n\t\t\t\t\tif (def.getHrefAttribute().hasValue()) {\r\n\t\t\t\t\t\tvar pt = def.attribute('patternTransform');\r\n\t\t\t\t\t\tdef = def.getHrefAttribute().getDefinition();\r\n\t\t\t\t\t\tif (pt.hasValue()) { def.attribute('patternTransform', true).value = pt.value; }\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn def.createPattern(svg.ctx, e);\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t// length extensions\r\n\t\t\tsvg.Property.prototype.getDPI = function(viewPort) {\r\n\t\t\t\treturn 96.0; // TODO: compute?\r\n\t\t\t}\r\n\r\n\t\t\tsvg.Property.prototype.getEM = function(viewPort) {\r\n\t\t\t\tvar em = 12;\r\n\r\n\t\t\t\tvar fontSize = new svg.Property('fontSize', svg.Font.Parse(svg.ctx.font).fontSize);\r\n\t\t\t\tif (fontSize.hasValue()) em = fontSize.toPixels(viewPort);\r\n\r\n\t\t\t\treturn em;\r\n\t\t\t}\r\n\r\n\t\t\tsvg.Property.prototype.getUnits = function() {\r\n\t\t\t\tvar s = this.value+'';\r\n\t\t\t\treturn s.replace(/[0-9\\.\\-]/g,'');\r\n\t\t\t}\r\n\r\n\t\t\t// get the length as pixels\r\n\t\t\tsvg.Property.prototype.toPixels = function(viewPort, processPercent) {\r\n\t\t\t\tif (!this.hasValue()) return 0;\r\n\t\t\t\tvar s = this.value+'';\r\n\t\t\t\tif (s.match(/em$/)) return this.numValue() * this.getEM(viewPort);\r\n\t\t\t\tif (s.match(/ex$/)) return this.numValue() * this.getEM(viewPort) / 2.0;\r\n\t\t\t\tif (s.match(/px$/)) return this.numValue();\r\n\t\t\t\tif (s.match(/pt$/)) return this.numValue() * this.getDPI(viewPort) * (1.0 / 72.0);\r\n\t\t\t\tif (s.match(/pc$/)) return this.numValue() * 15;\r\n\t\t\t\tif (s.match(/cm$/)) return this.numValue() * this.getDPI(viewPort) / 2.54;\r\n\t\t\t\tif (s.match(/mm$/)) return this.numValue() * this.getDPI(viewPort) / 25.4;\r\n\t\t\t\tif (s.match(/in$/)) return this.numValue() * this.getDPI(viewPort);\r\n\t\t\t\tif (s.match(/%$/)) return this.numValue() * svg.ViewPort.ComputeSize(viewPort);\r\n\t\t\t\tvar n = this.numValue();\r\n\t\t\t\tif (processPercent && n < 1.0) return n * svg.ViewPort.ComputeSize(viewPort);\r\n\t\t\t\treturn n;\r\n\t\t\t}\r\n\r\n\t\t// time extensions\r\n\t\t\t// get the time as milliseconds\r\n\t\t\tsvg.Property.prototype.toMilliseconds = function() {\r\n\t\t\t\tif (!this.hasValue()) return 0;\r\n\t\t\t\tvar s = this.value+'';\r\n\t\t\t\tif (s.match(/s$/)) return this.numValue() * 1000;\r\n\t\t\t\tif (s.match(/ms$/)) return this.numValue();\r\n\t\t\t\treturn this.numValue();\r\n\t\t\t}\r\n\r\n\t\t// angle extensions\r\n\t\t\t// get the angle as radians\r\n\t\t\tsvg.Property.prototype.toRadians = function() {\r\n\t\t\t\tif (!this.hasValue()) return 0;\r\n\t\t\t\tvar s = this.value+'';\r\n\t\t\t\tif (s.match(/deg$/)) return this.numValue() * (Math.PI / 180.0);\r\n\t\t\t\tif (s.match(/grad$/)) return this.numValue() * (Math.PI / 200.0);\r\n\t\t\t\tif (s.match(/rad$/)) return this.numValue();\r\n\t\t\t\treturn this.numValue() * (Math.PI / 180.0);\r\n\t\t\t}\r\n\r\n\t\t// text extensions\r\n\t\t\t// get the text baseline\r\n\t\t\tvar textBaselineMapping = {\r\n\t\t\t\t'baseline': 'alphabetic',\r\n\t\t\t\t'before-edge': 'top',\r\n\t\t\t\t'text-before-edge': 'top',\r\n\t\t\t\t'middle': 'middle',\r\n\t\t\t\t'central': 'middle',\r\n\t\t\t\t'after-edge': 'bottom',\r\n\t\t\t\t'text-after-edge': 'bottom',\r\n\t\t\t\t'ideographic': 'ideographic',\r\n\t\t\t\t'alphabetic': 'alphabetic',\r\n\t\t\t\t'hanging': 'hanging',\r\n\t\t\t\t'mathematical': 'alphabetic'\r\n\t\t\t};\r\n\t\t\tsvg.Property.prototype.toTextBaseline = function () {\r\n\t\t\t\tif (!this.hasValue()) return null;\r\n\t\t\t\treturn textBaselineMapping[this.value];\r\n\t\t\t}\r\n\r\n\t// fonts\r\n\tsvg.Font = new (function() {\r\n\t\tthis.Styles = 'normal|italic|oblique|inherit';\r\n\t\tthis.Variants = 'normal|small-caps|inherit';\r\n\t\tthis.Weights = 'normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit';\r\n\r\n\t\tthis.CreateFont = function(fontStyle, fontVariant, fontWeight, fontSize, fontFamily, inherit) {\r\n\t\t\tvar f = inherit != null ? this.Parse(inherit) : this.CreateFont('', '', '', '', '', svg.ctx.font);\r\n\t\t\treturn {\r\n\t\t\t\tfontFamily: fontFamily || f.fontFamily,\r\n\t\t\t\tfontSize: fontSize || f.fontSize,\r\n\t\t\t\tfontStyle: fontStyle || f.fontStyle,\r\n\t\t\t\tfontWeight: fontWeight || f.fontWeight,\r\n\t\t\t\tfontVariant: fontVariant || f.fontVariant,\r\n\t\t\t\ttoString: function () { return [this.fontStyle, this.fontVariant, this.fontWeight, this.fontSize, this.fontFamily].join(' ') }\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar that = this;\r\n\t\tthis.Parse = function(s) {\r\n\t\t\tvar f = {};\r\n\t\t\tvar d = svg.trim(svg.compressSpaces(s || '')).split(' ');\r\n\t\t\tvar set = { fontSize: false, fontStyle: false, fontWeight: false, fontVariant: false }\r\n\t\t\tvar ff = '';\r\n\t\t\tfor (var i=0; i this.x2) this.x2 = x;\r\n\t\t\t}\r\n\r\n\t\t\tif (y != null) {\r\n\t\t\t\tif (isNaN(this.y1) || isNaN(this.y2)) {\r\n\t\t\t\t\tthis.y1 = y;\r\n\t\t\t\t\tthis.y2 = y;\r\n\t\t\t\t}\r\n\t\t\t\tif (y < this.y1) this.y1 = y;\r\n\t\t\t\tif (y > this.y2) this.y2 = y;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.addX = function(x) { this.addPoint(x, null); }\r\n\t\tthis.addY = function(y) { this.addPoint(null, y); }\r\n\r\n\t\tthis.addBoundingBox = function(bb) {\r\n\t\t\tthis.addPoint(bb.x1, bb.y1);\r\n\t\t\tthis.addPoint(bb.x2, bb.y2);\r\n\t\t}\r\n\r\n\t\tthis.addQuadraticCurve = function(p0x, p0y, p1x, p1y, p2x, p2y) {\r\n\t\t\tvar cp1x = p0x + 2/3 * (p1x - p0x); // CP1 = QP0 + 2/3 *(QP1-QP0)\r\n\t\t\tvar cp1y = p0y + 2/3 * (p1y - p0y); // CP1 = QP0 + 2/3 *(QP1-QP0)\r\n\t\t\tvar cp2x = cp1x + 1/3 * (p2x - p0x); // CP2 = CP1 + 1/3 *(QP2-QP0)\r\n\t\t\tvar cp2y = cp1y + 1/3 * (p2y - p0y); // CP2 = CP1 + 1/3 *(QP2-QP0)\r\n\t\t\tthis.addBezierCurve(p0x, p0y, cp1x, cp2x, cp1y,\tcp2y, p2x, p2y);\r\n\t\t}\r\n\r\n\t\tthis.addBezierCurve = function(p0x, p0y, p1x, p1y, p2x, p2y, p3x, p3y) {\r\n\t\t\t// from http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html\r\n\t\t\tvar p0 = [p0x, p0y], p1 = [p1x, p1y], p2 = [p2x, p2y], p3 = [p3x, p3y];\r\n\t\t\tthis.addPoint(p0[0], p0[1]);\r\n\t\t\tthis.addPoint(p3[0], p3[1]);\r\n\r\n\t\t\tfor (var i=0; i<=1; i++) {\r\n\t\t\t\tvar f = function(t) {\r\n\t\t\t\t\treturn Math.pow(1-t, 3) * p0[i]\r\n\t\t\t\t\t+ 3 * Math.pow(1-t, 2) * t * p1[i]\r\n\t\t\t\t\t+ 3 * (1-t) * Math.pow(t, 2) * p2[i]\r\n\t\t\t\t\t+ Math.pow(t, 3) * p3[i];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar b = 6 * p0[i] - 12 * p1[i] + 6 * p2[i];\r\n\t\t\t\tvar a = -3 * p0[i] + 9 * p1[i] - 9 * p2[i] + 3 * p3[i];\r\n\t\t\t\tvar c = 3 * p1[i] - 3 * p0[i];\r\n\r\n\t\t\t\tif (a == 0) {\r\n\t\t\t\t\tif (b == 0) continue;\r\n\t\t\t\t\tvar t = -c / b;\r\n\t\t\t\t\tif (0 < t && t < 1) {\r\n\t\t\t\t\t\tif (i == 0) this.addX(f(t));\r\n\t\t\t\t\t\tif (i == 1) this.addY(f(t));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar b2ac = Math.pow(b, 2) - 4 * c * a;\r\n\t\t\t\tif (b2ac < 0) continue;\r\n\t\t\t\tvar t1 = (-b + Math.sqrt(b2ac)) / (2 * a);\r\n\t\t\t\tif (0 < t1 && t1 < 1) {\r\n\t\t\t\t\tif (i == 0) this.addX(f(t1));\r\n\t\t\t\t\tif (i == 1) this.addY(f(t1));\r\n\t\t\t\t}\r\n\t\t\t\tvar t2 = (-b - Math.sqrt(b2ac)) / (2 * a);\r\n\t\t\t\tif (0 < t2 && t2 < 1) {\r\n\t\t\t\t\tif (i == 0) this.addX(f(t2));\r\n\t\t\t\t\tif (i == 1) this.addY(f(t2));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.isPointInBox = function(x, y) {\r\n\t\t\treturn (this.x1 <= x && x <= this.x2 && this.y1 <= y && y <= this.y2);\r\n\t\t}\r\n\r\n\t\tthis.addPoint(x1, y1);\r\n\t\tthis.addPoint(x2, y2);\r\n\t}\r\n\r\n\t// transforms\r\n\tsvg.Transform = function(v) {\r\n\t\tvar that = this;\r\n\t\tthis.Type = {}\r\n\r\n\t\t// translate\r\n\t\tthis.Type.translate = function(s) {\r\n\t\t\tthis.p = svg.CreatePoint(s);\r\n\t\t\tthis.apply = function(ctx) {\r\n\t\t\t\tctx.translate(this.p.x || 0.0, this.p.y || 0.0);\r\n\t\t\t}\r\n\t\t\tthis.unapply = function(ctx) {\r\n\t\t\t\tctx.translate(-1.0 * this.p.x || 0.0, -1.0 * this.p.y || 0.0);\r\n\t\t\t}\r\n\t\t\tthis.applyToPoint = function(p) {\r\n\t\t\t\tp.applyTransform([1, 0, 0, 1, this.p.x || 0.0, this.p.y || 0.0]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// rotate\r\n\t\tthis.Type.rotate = function(s) {\r\n\t\t\tvar a = svg.ToNumberArray(s);\r\n\t\t\tthis.angle = new svg.Property('angle', a[0]);\r\n\t\t\tthis.cx = a[1] || 0;\r\n\t\t\tthis.cy = a[2] || 0;\r\n\t\t\tthis.apply = function(ctx) {\r\n\t\t\t\tctx.translate(this.cx, this.cy);\r\n\t\t\t\tctx.rotate(this.angle.toRadians());\r\n\t\t\t\tctx.translate(-this.cx, -this.cy);\r\n\t\t\t}\r\n\t\t\tthis.unapply = function(ctx) {\r\n\t\t\t\tctx.translate(this.cx, this.cy);\r\n\t\t\t\tctx.rotate(-1.0 * this.angle.toRadians());\r\n\t\t\t\tctx.translate(-this.cx, -this.cy);\r\n\t\t\t}\r\n\t\t\tthis.applyToPoint = function(p) {\r\n\t\t\t\tvar a = this.angle.toRadians();\r\n\t\t\t\tp.applyTransform([1, 0, 0, 1, this.p.x || 0.0, this.p.y || 0.0]);\r\n\t\t\t\tp.applyTransform([Math.cos(a), Math.sin(a), -Math.sin(a), Math.cos(a), 0, 0]);\r\n\t\t\t\tp.applyTransform([1, 0, 0, 1, -this.p.x || 0.0, -this.p.y || 0.0]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.Type.scale = function(s) {\r\n\t\t\tthis.p = svg.CreatePoint(s);\r\n\t\t\tthis.apply = function(ctx) {\r\n\t\t\t\tctx.scale(this.p.x || 1.0, this.p.y || this.p.x || 1.0);\r\n\t\t\t}\r\n\t\t\tthis.unapply = function(ctx) {\r\n\t\t\t\tctx.scale(1.0 / this.p.x || 1.0, 1.0 / this.p.y || this.p.x || 1.0);\r\n\t\t\t}\r\n\t\t\tthis.applyToPoint = function(p) {\r\n\t\t\t\tp.applyTransform([this.p.x || 0.0, 0, 0, this.p.y || 0.0, 0, 0]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.Type.matrix = function(s) {\r\n\t\t\tthis.m = svg.ToNumberArray(s);\r\n\t\t\tthis.apply = function(ctx) {\r\n\t\t\t\tctx.transform(this.m[0], this.m[1], this.m[2], this.m[3], this.m[4], this.m[5]);\r\n\t\t\t}\r\n\t\t\tthis.unapply = function(ctx) {\r\n\t\t\t\tvar a = this.m[0];\r\n\t\t\t\tvar b = this.m[2];\r\n\t\t\t\tvar c = this.m[4];\r\n\t\t\t\tvar d = this.m[1];\r\n\t\t\t\tvar e = this.m[3];\r\n\t\t\t\tvar f = this.m[5];\r\n\t\t\t\tvar g = 0.0;\r\n\t\t\t\tvar h = 0.0;\r\n\t\t\t\tvar i = 1.0;\r\n\t\t\t\tvar det = 1 / (a*(e*i-f*h)-b*(d*i-f*g)+c*(d*h-e*g));\r\n\t\t\t\tctx.transform(\r\n\t\t\t\t\tdet*(e*i-f*h),\r\n\t\t\t\t\tdet*(f*g-d*i),\r\n\t\t\t\t\tdet*(c*h-b*i),\r\n\t\t\t\t\tdet*(a*i-c*g),\r\n\t\t\t\t\tdet*(b*f-c*e),\r\n\t\t\t\t\tdet*(c*d-a*f)\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\tthis.applyToPoint = function(p) {\r\n\t\t\t\tp.applyTransform(this.m);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.Type.SkewBase = function(s) {\r\n\t\t\tthis.base = that.Type.matrix;\r\n\t\t\tthis.base(s);\r\n\t\t\tthis.angle = new svg.Property('angle', s);\r\n\t\t}\r\n\t\tthis.Type.SkewBase.prototype = new this.Type.matrix;\r\n\r\n\t\tthis.Type.skewX = function(s) {\r\n\t\t\tthis.base = that.Type.SkewBase;\r\n\t\t\tthis.base(s);\r\n\t\t\tthis.m = [1, 0, Math.tan(this.angle.toRadians()), 1, 0, 0];\r\n\t\t}\r\n\t\tthis.Type.skewX.prototype = new this.Type.SkewBase;\r\n\r\n\t\tthis.Type.skewY = function(s) {\r\n\t\t\tthis.base = that.Type.SkewBase;\r\n\t\t\tthis.base(s);\r\n\t\t\tthis.m = [1, Math.tan(this.angle.toRadians()), 0, 1, 0, 0];\r\n\t\t}\r\n\t\tthis.Type.skewY.prototype = new this.Type.SkewBase;\r\n\r\n\t\tthis.transforms = [];\r\n\r\n\t\tthis.apply = function(ctx) {\r\n\t\t\tfor (var i=0; i=0; i--) {\r\n\t\t\t\tthis.transforms[i].unapply(ctx);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.applyToPoint = function(p) {\r\n\t\t\tfor (var i=0; i existingSpecificity) {\r\n\t\t\t\t\t\t\t\tthis.styles[name] = styles[name];\r\n\t\t\t\t\t\t\t\tthis.stylesSpecificity[name] = specificity;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tif (node != null && node.nodeType == 1) { //ELEMENT_NODE\r\n\t\t\t// add attributes\r\n\t\t\tfor (var i=0; i 0) {\r\n\t\t\t\tmarkers.push([this.points[this.points.length-1], markers[markers.length-1][1]]);\r\n\t\t\t}\r\n\t\t\treturn markers;\r\n\t\t}\r\n\t}\r\n\tsvg.Element.polyline.prototype = new svg.Element.PathElementBase;\r\n\r\n\t// polygon element\r\n\tsvg.Element.polygon = function(node) {\r\n\t\tthis.base = svg.Element.polyline;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.basePath = this.path;\r\n\t\tthis.path = function(ctx) {\r\n\t\t\tvar bb = this.basePath(ctx);\r\n\t\t\tif (ctx != null) {\r\n\t\t\t\tctx.lineTo(this.points[0].x, this.points[0].y);\r\n\t\t\t\tctx.closePath();\r\n\t\t\t}\r\n\t\t\treturn bb;\r\n\t\t}\r\n\t}\r\n\tsvg.Element.polygon.prototype = new svg.Element.polyline;\r\n\r\n\t// path element\r\n\tsvg.Element.path = function(node) {\r\n\t\tthis.base = svg.Element.PathElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tvar d = this.attribute('d').value;\r\n\t\t// TODO: convert to real lexer based on http://www.w3.org/TR/SVG11/paths.html#PathDataBNF\r\n\t\td = d.replace(/,/gm,' '); // get rid of all commas\r\n\t\t// As the end of a match can also be the start of the next match, we need to run this replace twice.\r\n\t\tfor(var i=0; i<2; i++)\r\n\t\t\td = d.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\\s])/gm,'$1 $2'); // suffix commands with spaces\r\n\t\td = d.replace(/([^\\s])([MmZzLlHhVvCcSsQqTtAa])/gm,'$1 $2'); // prefix commands with spaces\r\n\t\td = d.replace(/([0-9])([+\\-])/gm,'$1 $2'); // separate digits on +- signs\r\n\t\t// Again, we need to run this twice to find all occurances\r\n\t\tfor(var i=0; i<2; i++)\r\n\t\t\td = d.replace(/(\\.[0-9]*)(\\.)/gm,'$1 $2'); // separate digits when they start with a comma\r\n\t\td = d.replace(/([Aa](\\s+[0-9]+){3})\\s+([01])\\s*([01])/gm,'$1 $3 $4 '); // shorthand elliptical arc path syntax\r\n\t\td = svg.compressSpaces(d); // compress multiple spaces\r\n\t\td = svg.trim(d);\r\n\t\tthis.PathParser = new (function(d) {\r\n\t\t\tthis.tokens = d.split(' ');\r\n\r\n\t\t\tthis.reset = function() {\r\n\t\t\t\tthis.i = -1;\r\n\t\t\t\tthis.command = '';\r\n\t\t\t\tthis.previousCommand = '';\r\n\t\t\t\tthis.start = new svg.Point(0, 0);\r\n\t\t\t\tthis.control = new svg.Point(0, 0);\r\n\t\t\t\tthis.current = new svg.Point(0, 0);\r\n\t\t\t\tthis.points = [];\r\n\t\t\t\tthis.angles = [];\r\n\t\t\t}\r\n\r\n\t\t\tthis.isEnd = function() {\r\n\t\t\t\treturn this.i >= this.tokens.length - 1;\r\n\t\t\t}\r\n\r\n\t\t\tthis.isCommandOrEnd = function() {\r\n\t\t\t\tif (this.isEnd()) return true;\r\n\t\t\t\treturn this.tokens[this.i + 1].match(/^[A-Za-z]$/) != null;\r\n\t\t\t}\r\n\r\n\t\t\tthis.isRelativeCommand = function() {\r\n\t\t\t\tswitch(this.command)\r\n\t\t\t\t{\r\n\t\t\t\t\tcase 'm':\r\n\t\t\t\t\tcase 'l':\r\n\t\t\t\t\tcase 'h':\r\n\t\t\t\t\tcase 'v':\r\n\t\t\t\t\tcase 'c':\r\n\t\t\t\t\tcase 's':\r\n\t\t\t\t\tcase 'q':\r\n\t\t\t\t\tcase 't':\r\n\t\t\t\t\tcase 'a':\r\n\t\t\t\t\tcase 'z':\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tthis.getToken = function() {\r\n\t\t\t\tthis.i++;\r\n\t\t\t\treturn this.tokens[this.i];\r\n\t\t\t}\r\n\r\n\t\t\tthis.getScalar = function() {\r\n\t\t\t\treturn parseFloat(this.getToken());\r\n\t\t\t}\r\n\r\n\t\t\tthis.nextCommand = function() {\r\n\t\t\t\tthis.previousCommand = this.command;\r\n\t\t\t\tthis.command = this.getToken();\r\n\t\t\t}\r\n\r\n\t\t\tthis.getPoint = function() {\r\n\t\t\t\tvar p = new svg.Point(this.getScalar(), this.getScalar());\r\n\t\t\t\treturn this.makeAbsolute(p);\r\n\t\t\t}\r\n\r\n\t\t\tthis.getAsControlPoint = function() {\r\n\t\t\t\tvar p = this.getPoint();\r\n\t\t\t\tthis.control = p;\r\n\t\t\t\treturn p;\r\n\t\t\t}\r\n\r\n\t\t\tthis.getAsCurrentPoint = function() {\r\n\t\t\t\tvar p = this.getPoint();\r\n\t\t\t\tthis.current = p;\r\n\t\t\t\treturn p;\r\n\t\t\t}\r\n\r\n\t\t\tthis.getReflectedControlPoint = function() {\r\n\t\t\t\tif (this.previousCommand.toLowerCase() != 'c' &&\r\n\t\t\t\t this.previousCommand.toLowerCase() != 's' &&\r\n\t\t\t\t\tthis.previousCommand.toLowerCase() != 'q' &&\r\n\t\t\t\t\tthis.previousCommand.toLowerCase() != 't' ){\r\n\t\t\t\t\treturn this.current;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// reflect point\r\n\t\t\t\tvar p = new svg.Point(2 * this.current.x - this.control.x, 2 * this.current.y - this.control.y);\r\n\t\t\t\treturn p;\r\n\t\t\t}\r\n\r\n\t\t\tthis.makeAbsolute = function(p) {\r\n\t\t\t\tif (this.isRelativeCommand()) {\r\n\t\t\t\t\tp.x += this.current.x;\r\n\t\t\t\t\tp.y += this.current.y;\r\n\t\t\t\t}\r\n\t\t\t\treturn p;\r\n\t\t\t}\r\n\r\n\t\t\tthis.addMarker = function(p, from, priorTo) {\r\n\t\t\t\t// if the last angle isn't filled in because we didn't have this point yet ...\r\n\t\t\t\tif (priorTo != null && this.angles.length > 0 && this.angles[this.angles.length-1] == null) {\r\n\t\t\t\t\tthis.angles[this.angles.length-1] = this.points[this.points.length-1].angleTo(priorTo);\r\n\t\t\t\t}\r\n\t\t\t\tthis.addMarkerAngle(p, from == null ? null : from.angleTo(p));\r\n\t\t\t}\r\n\r\n\t\t\tthis.addMarkerAngle = function(p, a) {\r\n\t\t\t\tthis.points.push(p);\r\n\t\t\t\tthis.angles.push(a);\r\n\t\t\t}\r\n\r\n\t\t\tthis.getMarkerPoints = function() { return this.points; }\r\n\t\t\tthis.getMarkerAngles = function() {\r\n\t\t\t\tfor (var i=0; i 1) {\r\n\t\t\t\t\t\t\trx *= Math.sqrt(l);\r\n\t\t\t\t\t\t\try *= Math.sqrt(l);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// cx', cy'\r\n\t\t\t\t\t\tvar s = (largeArcFlag == sweepFlag ? -1 : 1) * Math.sqrt(\r\n\t\t\t\t\t\t\t((Math.pow(rx,2)*Math.pow(ry,2))-(Math.pow(rx,2)*Math.pow(currp.y,2))-(Math.pow(ry,2)*Math.pow(currp.x,2))) /\r\n\t\t\t\t\t\t\t(Math.pow(rx,2)*Math.pow(currp.y,2)+Math.pow(ry,2)*Math.pow(currp.x,2))\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\tif (isNaN(s)) s = 0;\r\n\t\t\t\t\t\tvar cpp = new svg.Point(s * rx * currp.y / ry, s * -ry * currp.x / rx);\r\n\t\t\t\t\t\t// cx, cy\r\n\t\t\t\t\t\tvar centp = new svg.Point(\r\n\t\t\t\t\t\t\t(curr.x + cp.x) / 2.0 + Math.cos(xAxisRotation) * cpp.x - Math.sin(xAxisRotation) * cpp.y,\r\n\t\t\t\t\t\t\t(curr.y + cp.y) / 2.0 + Math.sin(xAxisRotation) * cpp.x + Math.cos(xAxisRotation) * cpp.y\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\t// vector magnitude\r\n\t\t\t\t\t\tvar m = function(v) { return Math.sqrt(Math.pow(v[0],2) + Math.pow(v[1],2)); }\r\n\t\t\t\t\t\t// ratio between two vectors\r\n\t\t\t\t\t\tvar r = function(u, v) { return (u[0]*v[0]+u[1]*v[1]) / (m(u)*m(v)) }\r\n\t\t\t\t\t\t// angle between two vectors\r\n\t\t\t\t\t\tvar a = function(u, v) { return (u[0]*v[1] < u[1]*v[0] ? -1 : 1) * Math.acos(r(u,v)); }\r\n\t\t\t\t\t\t// initial angle\r\n\t\t\t\t\t\tvar a1 = a([1,0], [(currp.x-cpp.x)/rx,(currp.y-cpp.y)/ry]);\r\n\t\t\t\t\t\t// angle delta\r\n\t\t\t\t\t\tvar u = [(currp.x-cpp.x)/rx,(currp.y-cpp.y)/ry];\r\n\t\t\t\t\t\tvar v = [(-currp.x-cpp.x)/rx,(-currp.y-cpp.y)/ry];\r\n\t\t\t\t\t\tvar ad = a(u, v);\r\n\t\t\t\t\t\tif (r(u,v) <= -1) ad = Math.PI;\r\n\t\t\t\t\t\tif (r(u,v) >= 1) ad = 0;\r\n\r\n\t\t\t\t\t\t// for markers\r\n\t\t\t\t\t\tvar dir = 1 - sweepFlag ? 1.0 : -1.0;\r\n\t\t\t\t\t\tvar ah = a1 + dir * (ad / 2.0);\r\n\t\t\t\t\t\tvar halfWay = new svg.Point(\r\n\t\t\t\t\t\t\tcentp.x + rx * Math.cos(ah),\r\n\t\t\t\t\t\t\tcentp.y + ry * Math.sin(ah)\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\tpp.addMarkerAngle(halfWay, ah - dir * Math.PI / 2);\r\n\t\t\t\t\t\tpp.addMarkerAngle(cp, ah - dir * Math.PI);\r\n\r\n\t\t\t\t\t\tbb.addPoint(cp.x, cp.y); // TODO: this is too naive, make it better\r\n\t\t\t\t\t\tif (ctx != null) {\r\n\t\t\t\t\t\t\tvar r = rx > ry ? rx : ry;\r\n\t\t\t\t\t\t\tvar sx = rx > ry ? 1 : rx / ry;\r\n\t\t\t\t\t\t\tvar sy = rx > ry ? ry / rx : 1;\r\n\r\n\t\t\t\t\t\t\tctx.translate(centp.x, centp.y);\r\n\t\t\t\t\t\t\tctx.rotate(xAxisRotation);\r\n\t\t\t\t\t\t\tctx.scale(sx, sy);\r\n\t\t\t\t\t\t\tctx.arc(0, 0, r, a1, a1 + ad, 1 - sweepFlag);\r\n\t\t\t\t\t\t\tctx.scale(1/sx, 1/sy);\r\n\t\t\t\t\t\t\tctx.rotate(-xAxisRotation);\r\n\t\t\t\t\t\t\tctx.translate(-centp.x, -centp.y);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'Z':\r\n\t\t\t\tcase 'z':\r\n\t\t\t\t\tif (ctx != null) ctx.closePath();\r\n\t\t\t\t\tpp.current = pp.start;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn bb;\r\n\t\t}\r\n\r\n\t\tthis.getMarkers = function() {\r\n\t\t\tvar points = this.PathParser.getMarkerPoints();\r\n\t\t\tvar angles = this.PathParser.getMarkerAngles();\r\n\r\n\t\t\tvar markers = [];\r\n\t\t\tfor (var i=0; i 1) this.offset = 1;\r\n\r\n\t\tvar stopColor = this.style('stop-color', true);\r\n\t\tif (stopColor.value == '') stopColor.value = '#000';\r\n\t\tif (this.style('stop-opacity').hasValue()) stopColor = stopColor.addOpacity(this.style('stop-opacity'));\r\n\t\tthis.color = stopColor.value;\r\n\t}\r\n\tsvg.Element.stop.prototype = new svg.Element.ElementBase;\r\n\r\n\t// animation base element\r\n\tsvg.Element.AnimateBase = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tsvg.Animations.push(this);\r\n\r\n\t\tthis.duration = 0.0;\r\n\t\tthis.begin = this.attribute('begin').toMilliseconds();\r\n\t\tthis.maxDuration = this.begin + this.attribute('dur').toMilliseconds();\r\n\r\n\t\tthis.getProperty = function() {\r\n\t\t\tvar attributeType = this.attribute('attributeType').value;\r\n\t\t\tvar attributeName = this.attribute('attributeName').value;\r\n\r\n\t\t\tif (attributeType == 'CSS') {\r\n\t\t\t\treturn this.parent.style(attributeName, true);\r\n\t\t\t}\r\n\t\t\treturn this.parent.attribute(attributeName, true);\r\n\t\t};\r\n\r\n\t\tthis.initialValue = null;\r\n\t\tthis.initialUnits = '';\r\n\t\tthis.removed = false;\r\n\r\n\t\tthis.calcValue = function() {\r\n\t\t\t// OVERRIDE ME!\r\n\t\t\treturn '';\r\n\t\t}\r\n\r\n\t\tthis.update = function(delta) {\r\n\t\t\t// set initial value\r\n\t\t\tif (this.initialValue == null) {\r\n\t\t\t\tthis.initialValue = this.getProperty().value;\r\n\t\t\t\tthis.initialUnits = this.getProperty().getUnits();\r\n\t\t\t}\r\n\r\n\t\t\t// if we're past the end time\r\n\t\t\tif (this.duration > this.maxDuration) {\r\n\t\t\t\t// loop for indefinitely repeating animations\r\n\t\t\t\tif (this.attribute('repeatCount').value == 'indefinite'\r\n\t\t\t\t || this.attribute('repeatDur').value == 'indefinite') {\r\n\t\t\t\t\tthis.duration = 0.0\r\n\t\t\t\t}\r\n\t\t\t\telse if (this.attribute('fill').valueOrDefault('remove') == 'freeze' && !this.frozen) {\r\n\t\t\t\t\tthis.frozen = true;\r\n\t\t\t\t\tthis.parent.animationFrozen = true;\r\n\t\t\t\t\tthis.parent.animationFrozenValue = this.getProperty().value;\r\n\t\t\t\t}\r\n\t\t\t\telse if (this.attribute('fill').valueOrDefault('remove') == 'remove' && !this.removed) {\r\n\t\t\t\t\tthis.removed = true;\r\n\t\t\t\t\tthis.getProperty().value = this.parent.animationFrozen ? this.parent.animationFrozenValue : this.initialValue;\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tthis.duration = this.duration + delta;\r\n\r\n\t\t\t// if we're past the begin time\r\n\t\t\tvar updated = false;\r\n\t\t\tif (this.begin < this.duration) {\r\n\t\t\t\tvar newValue = this.calcValue(); // tween\r\n\r\n\t\t\t\tif (this.attribute('type').hasValue()) {\r\n\t\t\t\t\t// for transform, etc.\r\n\t\t\t\t\tvar type = this.attribute('type').value;\r\n\t\t\t\t\tnewValue = type + '(' + newValue + ')';\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.getProperty().value = newValue;\r\n\t\t\t\tupdated = true;\r\n\t\t\t}\r\n\r\n\t\t\treturn updated;\r\n\t\t}\r\n\r\n\t\tthis.from = this.attribute('from');\r\n\t\tthis.to = this.attribute('to');\r\n\t\tthis.values = this.attribute('values');\r\n\t\tif (this.values.hasValue()) this.values.value = this.values.value.split(';');\r\n\r\n\t\t// fraction of duration we've covered\r\n\t\tthis.progress = function() {\r\n\t\t\tvar ret = { progress: (this.duration - this.begin) / (this.maxDuration - this.begin) };\r\n\t\t\tif (this.values.hasValue()) {\r\n\t\t\t\tvar p = ret.progress * (this.values.value.length - 1);\r\n\t\t\t\tvar lb = Math.floor(p), ub = Math.ceil(p);\r\n\t\t\t\tret.from = new svg.Property('from', parseFloat(this.values.value[lb]));\r\n\t\t\t\tret.to = new svg.Property('to', parseFloat(this.values.value[ub]));\r\n\t\t\t\tret.progress = (p - lb) / (ub - lb);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tret.from = this.from;\r\n\t\t\t\tret.to = this.to;\r\n\t\t\t}\r\n\t\t\treturn ret;\r\n\t\t}\r\n\t}\r\n\tsvg.Element.AnimateBase.prototype = new svg.Element.ElementBase;\r\n\r\n\t// animate element\r\n\tsvg.Element.animate = function(node) {\r\n\t\tthis.base = svg.Element.AnimateBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.calcValue = function() {\r\n\t\t\tvar p = this.progress();\r\n\r\n\t\t\t// tween value linearly\r\n\t\t\tvar newValue = p.from.numValue() + (p.to.numValue() - p.from.numValue()) * p.progress;\r\n\t\t\treturn newValue + this.initialUnits;\r\n\t\t};\r\n\t}\r\n\tsvg.Element.animate.prototype = new svg.Element.AnimateBase;\r\n\r\n\t// animate color element\r\n\tsvg.Element.animateColor = function(node) {\r\n\t\tthis.base = svg.Element.AnimateBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.calcValue = function() {\r\n\t\t\tvar p = this.progress();\r\n\t\t\tvar from = new RGBColor(p.from.value);\r\n\t\t\tvar to = new RGBColor(p.to.value);\r\n\r\n\t\t\tif (from.ok && to.ok) {\r\n\t\t\t\t// tween color linearly\r\n\t\t\t\tvar r = from.r + (to.r - from.r) * p.progress;\r\n\t\t\t\tvar g = from.g + (to.g - from.g) * p.progress;\r\n\t\t\t\tvar b = from.b + (to.b - from.b) * p.progress;\r\n\t\t\t\treturn 'rgb('+parseInt(r,10)+','+parseInt(g,10)+','+parseInt(b,10)+')';\r\n\t\t\t}\r\n\t\t\treturn this.attribute('from').value;\r\n\t\t};\r\n\t}\r\n\tsvg.Element.animateColor.prototype = new svg.Element.AnimateBase;\r\n\r\n\t// animate transform element\r\n\tsvg.Element.animateTransform = function(node) {\r\n\t\tthis.base = svg.Element.AnimateBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.calcValue = function() {\r\n\t\t\tvar p = this.progress();\r\n\r\n\t\t\t// tween value linearly\r\n\t\t\tvar from = svg.ToNumberArray(p.from.value);\r\n\t\t\tvar to = svg.ToNumberArray(p.to.value);\r\n\t\t\tvar newValue = '';\r\n\t\t\tfor (var i=0; i startI && child.attribute('x').hasValue()) break; // new group\r\n\t\t\t\t\twidth += child.measureTextRecursive(ctx);\r\n\t\t\t\t}\r\n\t\t\t\treturn -1 * (textAnchor == 'end' ? width : width / 2.0);\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tthis.renderChild = function(ctx, textParent, parent, i) {\r\n\t\t\tvar child = parent.children[i];\r\n\t\t\tif (child.attribute('x').hasValue()) {\r\n\t\t\t\tchild.x = child.attribute('x').toPixels('x') + textParent.getAnchorDelta(ctx, parent, i);\r\n\t\t\t\tif (child.attribute('dx').hasValue()) child.x += child.attribute('dx').toPixels('x');\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (child.attribute('dx').hasValue()) textParent.x += child.attribute('dx').toPixels('x');\r\n\t\t\t\tchild.x = textParent.x;\r\n\t\t\t}\r\n\t\t\ttextParent.x = child.x + child.measureText(ctx);\r\n\r\n\t\t\tif (child.attribute('y').hasValue()) {\r\n\t\t\t\tchild.y = child.attribute('y').toPixels('y');\r\n\t\t\t\tif (child.attribute('dy').hasValue()) child.y += child.attribute('dy').toPixels('y');\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (child.attribute('dy').hasValue()) textParent.y += child.attribute('dy').toPixels('y');\r\n\t\t\t\tchild.y = textParent.y;\r\n\t\t\t}\r\n\t\t\ttextParent.y = child.y;\r\n\r\n\t\t\tchild.render(ctx);\r\n\r\n\t\t\tfor (var i=0; i0 && text[i-1]!=' ' && i0 && text[i-1]!=' ' && (i == text.length-1 || text[i+1]==' ')) arabicForm = 'initial';\r\n\t\t\t\tif (typeof font.glyphs[c] != 'undefined') {\r\n\t\t\t\t\tglyph = font.glyphs[c][arabicForm];\r\n\t\t\t\t\tif (glyph == null && font.glyphs[c].type == 'glyph') glyph = font.glyphs[c];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tglyph = font.glyphs[c];\r\n\t\t\t}\r\n\t\t\tif (glyph == null) glyph = font.missingGlyph;\r\n\t\t\treturn glyph;\r\n\t\t}\r\n\r\n\t\tthis.renderChildren = function(ctx) {\r\n\t\t\tvar customFont = this.parent.style('font-family').getDefinition();\r\n\t\t\tif (customFont != null) {\r\n\t\t\t\tvar fontSize = this.parent.style('font-size').numValueOrDefault(svg.Font.Parse(svg.ctx.font).fontSize);\r\n\t\t\t\tvar fontStyle = this.parent.style('font-style').valueOrDefault(svg.Font.Parse(svg.ctx.font).fontStyle);\r\n\t\t\t\tvar text = this.getText();\r\n\t\t\t\tif (customFont.isRTL) text = text.split(\"\").reverse().join(\"\");\r\n\r\n\t\t\t\tvar dx = svg.ToNumberArray(this.parent.attribute('dx').value);\r\n\t\t\t\tfor (var i=0; i 0) { return ''; }\r\n\t\t\treturn this.text;\r\n\t\t}\r\n\t}\r\n\tsvg.Element.tspan.prototype = new svg.Element.TextElementBase;\r\n\r\n\t// tref\r\n\tsvg.Element.tref = function(node) {\r\n\t\tthis.base = svg.Element.TextElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.getText = function() {\r\n\t\t\tvar element = this.getHrefAttribute().getDefinition();\r\n\t\t\tif (element != null) return element.children[0].getText();\r\n\t\t}\r\n\t}\r\n\tsvg.Element.tref.prototype = new svg.Element.TextElementBase;\r\n\r\n\t// a element\r\n\tsvg.Element.a = function(node) {\r\n\t\tthis.base = svg.Element.TextElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.hasText = node.childNodes.length > 0;\r\n\t\tfor (var i=0; i 0) {\r\n\t\t\t\t// render as temporary group\r\n\t\t\t\tvar g = new svg.Element.g();\r\n\t\t\t\tg.children = this.children;\r\n\t\t\t\tg.parent = this;\r\n\t\t\t\tg.render(ctx);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.onclick = function() {\r\n\t\t\twindow.open(this.getHrefAttribute().value);\r\n\t\t}\r\n\r\n\t\tthis.onmousemove = function() {\r\n\t\t\tsvg.ctx.canvas.style.cursor = 'pointer';\r\n\t\t}\r\n\t}\r\n\tsvg.Element.a.prototype = new svg.Element.TextElementBase;\r\n\r\n\t// image element\r\n\tsvg.Element.image = function(node) {\r\n\t\tthis.base = svg.Element.RenderedElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tvar href = this.getHrefAttribute().value;\r\n\t\tif (href == '') { return; }\r\n\t\tvar isSvg = href.match(/\\.svg$/)\r\n\r\n\t\tsvg.Images.push(this);\r\n\t\tthis.loaded = false;\r\n\t\tif (!isSvg) {\r\n\t\t\tthis.img = document.createElement('img');\r\n\t\t\tif (svg.opts['useCORS'] == true) { this.img.crossOrigin = 'Anonymous'; }\r\n\t\t\tvar self = this;\r\n\t\t\tthis.img.onload = function() { self.loaded = true; }\r\n\t\t\tthis.img.onerror = function() { svg.log('ERROR: image \"' + href + '\" not found'); self.loaded = true; }\r\n\t\t\tthis.img.src = href;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.img = svg.ajax(href);\r\n\t\t\tthis.loaded = true;\r\n\t\t}\r\n\r\n\t\tthis.renderChildren = function(ctx) {\r\n\t\t\tvar x = this.attribute('x').toPixels('x');\r\n\t\t\tvar y = this.attribute('y').toPixels('y');\r\n\r\n\t\t\tvar width = this.attribute('width').toPixels('x');\r\n\t\t\tvar height = this.attribute('height').toPixels('y');\r\n\t\t\tif (width == 0 || height == 0) return;\r\n\r\n\t\t\tctx.save();\r\n\t\t\tif (isSvg) {\r\n\t\t\t\tctx.drawSvg(this.img, x, y, width, height);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tctx.translate(x, y);\r\n\t\t\t\tsvg.AspectRatio(ctx,\r\n\t\t\t\t\t\t\t\tthis.attribute('preserveAspectRatio').value,\r\n\t\t\t\t\t\t\t\twidth,\r\n\t\t\t\t\t\t\t\tthis.img.width,\r\n\t\t\t\t\t\t\t\theight,\r\n\t\t\t\t\t\t\t\tthis.img.height,\r\n\t\t\t\t\t\t\t\t0,\r\n\t\t\t\t\t\t\t\t0);\r\n\t\t\t\tctx.drawImage(this.img, 0, 0);\r\n\t\t\t}\r\n\t\t\tctx.restore();\r\n\t\t}\r\n\r\n\t\tthis.getBoundingBox = function() {\r\n\t\t\tvar x = this.attribute('x').toPixels('x');\r\n\t\t\tvar y = this.attribute('y').toPixels('y');\r\n\t\t\tvar width = this.attribute('width').toPixels('x');\r\n\t\t\tvar height = this.attribute('height').toPixels('y');\r\n\t\t\treturn new svg.BoundingBox(x, y, x + width, y + height);\r\n\t\t}\r\n\t}\r\n\tsvg.Element.image.prototype = new svg.Element.RenderedElementBase;\r\n\r\n\t// group element\r\n\tsvg.Element.g = function(node) {\r\n\t\tthis.base = svg.Element.RenderedElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.getBoundingBox = function() {\r\n\t\t\tvar bb = new svg.BoundingBox();\r\n\t\t\tfor (var i=0; i 0) {\r\n\t\t\t\t\t\t\t\t\tvar urlStart = srcs[s].indexOf('url');\r\n\t\t\t\t\t\t\t\t\tvar urlEnd = srcs[s].indexOf(')', urlStart);\r\n\t\t\t\t\t\t\t\t\tvar url = srcs[s].substr(urlStart + 5, urlEnd - urlStart - 6);\r\n\t\t\t\t\t\t\t\t\tvar doc = svg.parseXml(svg.ajax(url));\r\n\t\t\t\t\t\t\t\t\tvar fonts = doc.getElementsByTagName('font');\r\n\t\t\t\t\t\t\t\t\tfor (var f=0; f label > input,\\r\\n.context-menu-item > label > textarea {\\r\\n -webkit-user-select: text;\\r\\n -moz-user-select: text;\\r\\n -ms-user-select: text;\\r\\n user-select: text;\\r\\n}\\r\\n\\r\\n.context-menu-item.hover {\\r\\n cursor: pointer;\\r\\n background-color: #39F;\\r\\n}\\r\\n\\r\\n.context-menu-item.disabled {\\r\\n color: #666;\\r\\n}\\r\\n\\r\\n.context-menu-input.hover,\\r\\n.context-menu-item.disabled.hover {\\r\\n cursor: default;\\r\\n background-color: #EEE;\\r\\n}\\r\\n\\r\\n.context-menu-submenu:after {\\r\\n content: \\\">\\\";\\r\\n color: #666;\\r\\n position: absolute;\\r\\n top: 0;\\r\\n right: 3px;\\r\\n z-index: 1;\\r\\n}\\r\\n\\r\\n/* icons\\r\\n #protip:\\r\\n In case you want to use sprites for icons (which I would suggest you do) have a look at\\r\\n http://css-tricks.com/13224-pseudo-spriting/ to get an idea of how to implement\\r\\n .context-menu-item.icon:before {}\\r\\n */\\r\\n.context-menu-item.icon { min-height: 18px; background-repeat: no-repeat; background-position: 4px 2px; }\\r\\n\\r\\n/* vertically align inside labels */\\r\\n.context-menu-input > label > * { vertical-align: top; }\\r\\n\\r\\n/* position checkboxes and radios as icons */\\r\\n.context-menu-input > label > input[type=\\\"checkbox\\\"],\\r\\n.context-menu-input > label > input[type=\\\"radio\\\"] {\\r\\n margin-left: -17px;\\r\\n}\\r\\n.context-menu-input > label > span {\\r\\n margin-left: 5px;\\r\\n}\\r\\n\\r\\n.context-menu-input > label,\\r\\n.context-menu-input > label > input[type=\\\"text\\\"],\\r\\n.context-menu-input > label > textarea,\\r\\n.context-menu-input > label > select {\\r\\n display: block;\\r\\n width: 100%;\\r\\n\\r\\n -webkit-box-sizing: border-box;\\r\\n -moz-box-sizing: border-box;\\r\\n -ms-box-sizing: border-box;\\r\\n -o-box-sizing: border-box;\\r\\n box-sizing: border-box;\\r\\n}\\r\\n\\r\\n.context-menu-input > label > textarea {\\r\\n height: 100px;\\r\\n}\\r\\n.context-menu-item > .context-menu-list {\\r\\n display: none;\\r\\n /* re-positioned by js */\\r\\n right: -5px;\\r\\n top: 5px;\\r\\n}\\r\\n\\r\\n.context-menu-item.hover > .context-menu-list {\\r\\n display: block;\\r\\n}\\r\\n\\r\\n.context-menu-accesskey {\\r\\n text-decoration: underline;\\r\\n}\\r\\n\", \"\"]);\n\n// exports\n\n\n/***/ }),\n\n/***/ \"./node_modules/css-loader/lib/css-base.js\":\n/*!*************************************************!*\\\n !*** ./node_modules/css-loader/lib/css-base.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/raw-loader/index.js!./src/lib/Class.exec.js\":\n/*!*********************************************************!*\\\n !*** ./node_modules/raw-loader!./src/lib/Class.exec.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\nmodule.exports = \"/* \\r\\n * Simple JavaScript Inheritance \\r\\n * By John Resig http://ejohn.org/ \\r\\n * MIT Licensed. \\r\\n * \\r\\n ****************************************************** \\r\\n * Example Usage \\r\\n ****************************************************** \\r\\n var Person = Class.extend({ \\r\\n init: function(isDancing){ \\r\\n this.dancing = isDancing; \\r\\n }, \\r\\n dance: function(){ \\r\\n return this.dancing; \\r\\n } \\r\\n}); \\r\\n\\r\\nvar Ninja = Person.extend({ \\r\\n init: function(){ \\r\\n this._super( false ); \\r\\n }, \\r\\n dance: function(){ \\r\\n // Call the inherited version of dance() \\r\\n return this._super(); \\r\\n }, \\r\\n swingSword: function(){ \\r\\n return true; \\r\\n } \\r\\n}); \\r\\n\\r\\nvar p = new Person(true); \\r\\np.dance(); // => true \\r\\n\\r\\nvar n = new Ninja(); \\r\\nn.dance(); // => false \\r\\nn.swingSword(); // => true \\r\\n\\r\\n// Should all be true \\r\\np instanceof Person && p instanceof Class && \\r\\nn instanceof Ninja && n instanceof Person && n instanceof Class \\r\\n\\r\\n ****************************************************** \\r\\n */ \\r\\n \\r\\n// Inspired by base2 and Prototype \\r\\n(function(){ \\r\\n var fnTest = /xyz/.test(function(){xyz;}) ? /\\\\b_super\\\\b/ : /.*/; \\r\\n\\r\\n // The base Class implementation (does nothing) \\r\\n this.Class = function(){}; \\r\\n \\r\\n\\r\\n // Create a new Class that inherits from this class \\r\\n Class.extend = function(prop) { \\r\\n var _super = this.prototype; \\r\\n \\r\\n // Instantiate a base class (but only create the instance, \\r\\n // don't run the init constructor) \\r\\n initializing = true; \\r\\n var prototype = new this(); \\r\\n initializing = false; \\r\\n \\r\\n \\r\\n // Copy the properties over onto the new prototype \\r\\n for (var name in prop) { \\r\\n // Check if we're overwriting an existing function \\r\\n prototype[name] = typeof prop[name] == \\\"function\\\" && \\r\\n typeof _super[name] == \\\"function\\\" && fnTest.test(prop[name]) ? \\r\\n (function(name, fn){ \\r\\n return function() { \\r\\n var tmp = this._super; \\r\\n \\r\\n // Add a new ._super() method that is the same method \\r\\n // but on the super-class \\r\\n this._super = _super[name]; \\r\\n \\r\\n // The method only need to be bound temporarily, so we \\r\\n // remove it when we're done executing \\r\\n var ret = fn.apply(this, arguments); \\r\\n this._super = tmp; \\r\\n \\r\\n return ret; \\r\\n }; \\r\\n })(name, prop[name]) : \\r\\n prop[name]; \\r\\n } \\r\\n \\r\\n // The dummy class constructor \\r\\n function Class() { \\r\\n // All construction is actually done in the init method \\r\\n if ( !initializing && this.init ) \\r\\n this.init.apply(this, arguments); \\r\\n } \\r\\n \\r\\n // Populate our constructed prototype object \\r\\n Class.prototype = prototype; \\r\\n \\r\\n // Enforce the constructor to be what we expect \\r\\n Class.prototype.constructor = Class; \\r\\n\\r\\n // And make this class extendable \\r\\n Class.extend = arguments.callee; \\r\\n \\r\\n // EXTENSION BY Draw2D.org to inject methods into an existing class to provide plugins or \\r\\n // bugfixes for further releases \\r\\n // \\r\\n Class.inject = function (prop) { \\r\\n var proto = this.prototype; \\r\\n var parent = {}; \\r\\n for (var name in prop) { \\r\\n if (typeof (prop[name]) == \\\"function\\\" && typeof (proto[name]) == \\\"function\\\" && fnTest.test(prop[name])) { \\r\\n parent[name] = proto[name]; \\r\\n proto[name] = (function (name, fn) { \\r\\n return function () { \\r\\n var tmp = this.parent; \\r\\n this.parent = parent[name]; \\r\\n var ret = fn.apply(this, arguments); \\r\\n this.parent = tmp; \\r\\n return ret; \\r\\n }; \\r\\n })(name, prop[name]); \\r\\n } else { \\r\\n proto[name] = prop[name]; \\r\\n } \\r\\n } \\r\\n }; \\r\\n \\r\\n return Class; \\r\\n }; \\r\\n})();\\r\\n \\r\\n\"\n\n/***/ }),\n\n/***/ \"./node_modules/raw-loader/index.js!./src/lib/pathfinding.exec.js\":\n/*!***************************************************************!*\\\n !*** ./node_modules/raw-loader!./src/lib/pathfinding.exec.js ***!\n \\***************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\nmodule.exports = \"var PF=function(){var e=function(t,n){var r=e.resolve(t,n||\\\"/\\\"),i=e.modules[r];if(!i)throw new Error(\\\"Failed to resolve module \\\"+t+\\\", tried \\\"+r);var s=i._cached?i._cached:i();return s};return e.paths=[],e.modules={},e.extensions=[\\\".js\\\",\\\".coffee\\\"],e._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0},e.resolve=function(){return function(t,n){function u(t){if(e.modules[t])return t;for(var n=0;n=0;i--){if(t[i]===\\\"node_modules\\\")continue;var s=t.slice(0,i+1).join(\\\"/\\\")+\\\"/node_modules\\\";n.push(s)}return n}n||(n=\\\"/\\\");if(e._core[t])return t;var r=e.modules.path();n=r.resolve(\\\"/\\\",n);var i=n||\\\"/\\\";if(t.match(/^(?:\\\\.\\\\.?\\\\/|\\\\/)/)){var s=u(r.resolve(i,t))||a(r.resolve(i,t));if(s)return s}var o=f(t,i);if(o)return o;throw new Error(\\\"Cannot find module '\\\"+t+\\\"'\\\")}}(),e.alias=function(t,n){var r=e.modules.path(),i=null;try{i=e.resolve(t+\\\"/package.json\\\",\\\"/\\\")}catch(s){i=e.resolve(t,\\\"/\\\")}var o=r.dirname(i),u=(Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t})(e.modules);for(var a=0;a0){var n=e.shift();n()}}},!0),function(n){t?(e.push(n),window.postMessage(\\\"browserify-tick\\\",\\\"*\\\")):setTimeout(n,0)}}()),process.title||(process.title=\\\"browser\\\"),process.binding||(process.binding=function(t){if(t===\\\"evals\\\")return e(\\\"vm\\\");throw new Error(\\\"No such module\\\")}),process.cwd||(process.cwd=function(){return\\\".\\\"}),process.env||(process.env={}),process.argv||(process.argv=[]),e.define(\\\"path\\\",function(e,t,n,r,i){function s(e,t){var n=[];for(var r=0;r=0;r--){var i=e[r];i==\\\".\\\"?e.splice(r,1):i===\\\"..\\\"?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift(\\\"..\\\");return e}var u=/^(.+\\\\/(?!$)|\\\\/)?((?:.+?)?(\\\\.[^.]*)?)$/;n.resolve=function(){var e=\\\"\\\",t=!1;for(var n=arguments.length;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(typeof r!=\\\"string\\\"||!r)continue;e=r+\\\"/\\\"+e,t=r.charAt(0)===\\\"/\\\"}return e=o(s(e.split(\\\"/\\\"),function(e){return!!e}),!t).join(\\\"/\\\"),(t?\\\"/\\\":\\\"\\\")+e||\\\".\\\"},n.normalize=function(e){var t=e.charAt(0)===\\\"/\\\",n=e.slice(-1)===\\\"/\\\";return e=o(s(e.split(\\\"/\\\"),function(e){return!!e}),!t).join(\\\"/\\\"),!e&&!t&&(e=\\\".\\\"),e&&n&&(e+=\\\"/\\\"),(t?\\\"/\\\":\\\"\\\")+e},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(s(e,function(e,t){return e&&typeof e==\\\"string\\\"}).join(\\\"/\\\"))},n.dirname=function(e){var t=u.exec(e)[1]||\\\"\\\",n=!1;return t?t.length===1||n&&t.length<=3&&t.charAt(1)===\\\":\\\"?t:t.substring(0,t.length-1):\\\".\\\"},n.basename=function(e,t){var n=u.exec(e)[2]||\\\"\\\";return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return u.exec(e)[3]||\\\"\\\"}}),e.define(\\\"/core/Node.js\\\",function(e,t,n,r,i){function s(e,t,n){this.x=e,this.y=t,this.walkable=n===undefined?!0:n}t.exports=s}),e.define(\\\"/core/Grid.js\\\",function(e,t,n,r,i){function o(e,t,n){this.width=e,this.height=t,this.nodes=this._buildNodes(e,t,n)}var s=e(\\\"./Node\\\");o.prototype._buildNodes=function(e,t,n){var r,i,o=new Array(t),u;for(r=0;r=0&&e=0&&tt?1:0},f=function(e,t,i,s,o){var u;i==null&&(i=0),o==null&&(o=n);if(i<0)throw new Error(\\\"lo must be non-negative\\\");s==null&&(s=e.length);while(o(i,s)<0)u=r((i+s)/2),o(t,e[u])<0?s=u:i=u+1;return[].splice.apply(e,[i,i-i].concat(t)),t},o=function(e,t,r){return r==null&&(r=n),e.push(t),d(e,0,e.length-1,r)},s=function(e,t){var r,i;return t==null&&(t=n),r=e.pop(),e.length?(i=e[0],e[0]=r,v(e,0,t)):i=r,i},a=function(e,t,r){var i;return r==null&&(r=n),i=e[0],e[0]=t,v(e,0,r),i},u=function(e,t,r){var i;return r==null&&(r=n),e.length&&r(e[0],t)<0&&(i=[e[0],t],t=i[0],e[0]=i[1],v(e,0,r)),t},i=function(e,t){var i,s,o,u,a,f,l,c;t==null&&(t=n),f=function(){c=[];for(var t=0,n=r(e.length/2);0<=n?tn;0<=n?t++:t--)c.push(t);return c}.apply(this).reverse(),l=[];for(s=0,u=f.length;sm;u=0<=m?++p:--p)g.push(s(e,r));return g},d=function(e,t,r,i){var s,o,u;i==null&&(i=n),s=e[r];while(r>t){u=r-1>>1,o=e[u];if(i(s,o)<0){e[r]=o,r=u;continue}break}return e[r]=s},v=function(e,t,r){var i,s,o,u,a;r==null&&(r=n),s=e.length,a=t,o=e[t],i=2*t+1;while(i-f&&(l-=f,e+=o),c Arguments\\r\\n\\r\\n - name (string) name of the *event*, dot (`.`) or slash (`/`) separated\\r\\n - scope (object) context for the event handlers\\r\\n - varargs (...) the rest of arguments will be sent to event handlers\\r\\n\\r\\n = (object) array of returned values from the listeners\\r\\n \\\\*/\\r\\n eve = function (name, scope) {\\r\\n name = String(name);\\r\\n var e = events,\\r\\n oldstop = stop,\\r\\n args = Array.prototype.slice.call(arguments, 2),\\r\\n listeners = eve.listeners(name),\\r\\n z = 0,\\r\\n f = false,\\r\\n l,\\r\\n indexed = [],\\r\\n queue = {},\\r\\n out = [],\\r\\n ce = current_event,\\r\\n errors = [];\\r\\n current_event = name;\\r\\n stop = 0;\\r\\n for (var i = 0, ii = listeners.length; i < ii; i++) if (\\\"zIndex\\\" in listeners[i]) {\\r\\n indexed.push(listeners[i].zIndex);\\r\\n if (listeners[i].zIndex < 0) {\\r\\n queue[listeners[i].zIndex] = listeners[i];\\r\\n }\\r\\n }\\r\\n indexed.sort(numsort);\\r\\n while (indexed[z] < 0) {\\r\\n l = queue[indexed[z++]];\\r\\n out.push(l.apply(scope, args));\\r\\n if (stop) {\\r\\n stop = oldstop;\\r\\n return out;\\r\\n }\\r\\n }\\r\\n for (i = 0; i < ii; i++) {\\r\\n l = listeners[i];\\r\\n if (\\\"zIndex\\\" in l) {\\r\\n if (l.zIndex == indexed[z]) {\\r\\n out.push(l.apply(scope, args));\\r\\n if (stop) {\\r\\n break;\\r\\n }\\r\\n do {\\r\\n z++;\\r\\n l = queue[indexed[z]];\\r\\n l && out.push(l.apply(scope, args));\\r\\n if (stop) {\\r\\n break;\\r\\n }\\r\\n } while (l)\\r\\n } else {\\r\\n queue[l.zIndex] = l;\\r\\n }\\r\\n } else {\\r\\n out.push(l.apply(scope, args));\\r\\n if (stop) {\\r\\n break;\\r\\n }\\r\\n }\\r\\n }\\r\\n stop = oldstop;\\r\\n current_event = ce;\\r\\n return out.length ? out : null;\\r\\n };\\r\\n // Undocumented. Debug only.\\r\\n eve._events = events;\\r\\n /*\\\\\\r\\n * eve.listeners\\r\\n [ method ]\\r\\n\\r\\n * Internal method which gives you array of all event handlers that will be triggered by the given `name`.\\r\\n\\r\\n > Arguments\\r\\n\\r\\n - name (string) name of the event, dot (`.`) or slash (`/`) separated\\r\\n\\r\\n = (array) array of event handlers\\r\\n \\\\*/\\r\\n eve.listeners = function (name) {\\r\\n var names = name.split(separator),\\r\\n e = events,\\r\\n item,\\r\\n items,\\r\\n k,\\r\\n i,\\r\\n ii,\\r\\n j,\\r\\n jj,\\r\\n nes,\\r\\n es = [e],\\r\\n out = [];\\r\\n for (i = 0, ii = names.length; i < ii; i++) {\\r\\n nes = [];\\r\\n for (j = 0, jj = es.length; j < jj; j++) {\\r\\n e = es[j].n;\\r\\n items = [e[names[i]], e[wildcard]];\\r\\n k = 2;\\r\\n while (k--) {\\r\\n item = items[k];\\r\\n if (item) {\\r\\n nes.push(item);\\r\\n out = out.concat(item.f || []);\\r\\n }\\r\\n }\\r\\n }\\r\\n es = nes;\\r\\n }\\r\\n return out;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * eve.on\\r\\n [ method ]\\r\\n **\\r\\n * Binds given event handler with a given name. You can use wildcards “`*`” for the names:\\r\\n | eve.on(\\\"*.under.*\\\", f);\\r\\n | eve(\\\"mouse.under.floor\\\"); // triggers f\\r\\n * Use @eve to trigger the listener.\\r\\n **\\r\\n > Arguments\\r\\n **\\r\\n - name (string) name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\\r\\n - f (function) event handler function\\r\\n **\\r\\n = (function) returned function accepts a single numeric parameter that represents z-index of the handler. It is an optional feature and only used when you need to ensure that some subset of handlers will be invoked in a given order, despite of the order of assignment.\\r\\n > Example:\\r\\n | eve.on(\\\"mouse\\\", eatIt)(2);\\r\\n | eve.on(\\\"mouse\\\", scream);\\r\\n | eve.on(\\\"mouse\\\", catchIt)(1);\\r\\n * This will ensure that `catchIt()` function will be called before `eatIt()`.\\r\\n *\\r\\n * If you want to put your handler before non-indexed handlers, specify a negative value.\\r\\n * Note: I assume most of the time you don’t need to worry about z-index, but it’s nice to have this feature “just in case”.\\r\\n \\\\*/\\r\\n eve.on = function (name, f) {\\r\\n name = String(name);\\r\\n if (typeof f != \\\"function\\\") {\\r\\n return function () {};\\r\\n }\\r\\n var names = name.split(separator),\\r\\n e = events;\\r\\n for (var i = 0, ii = names.length; i < ii; i++) {\\r\\n e = e.n;\\r\\n e = e.hasOwnProperty(names[i]) && e[names[i]] || (e[names[i]] = {n: {}});\\r\\n }\\r\\n e.f = e.f || [];\\r\\n for (i = 0, ii = e.f.length; i < ii; i++) if (e.f[i] == f) {\\r\\n return fun;\\r\\n }\\r\\n e.f.push(f);\\r\\n return function (zIndex) {\\r\\n if (+zIndex == +zIndex) {\\r\\n f.zIndex = +zIndex;\\r\\n }\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * eve.f\\r\\n [ method ]\\r\\n **\\r\\n * Returns function that will fire given event with optional arguments.\\r\\n * Arguments that will be passed to the result function will be also\\r\\n * concated to the list of final arguments.\\r\\n | el.onclick = eve.f(\\\"click\\\", 1, 2);\\r\\n | eve.on(\\\"click\\\", function (a, b, c) {\\r\\n | console.log(a, b, c); // 1, 2, [event object]\\r\\n | });\\r\\n > Arguments\\r\\n - event (string) event name\\r\\n - varargs (…) and any other arguments\\r\\n = (function) possible event handler function\\r\\n \\\\*/\\r\\n eve.f = function (event) {\\r\\n var attrs = [].slice.call(arguments, 1);\\r\\n return function () {\\r\\n eve.apply(null, [event, null].concat(attrs).concat([].slice.call(arguments, 0)));\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * eve.stop\\r\\n [ method ]\\r\\n **\\r\\n * Is used inside an event handler to stop the event, preventing any subsequent listeners from firing.\\r\\n \\\\*/\\r\\n eve.stop = function () {\\r\\n stop = 1;\\r\\n };\\r\\n /*\\\\\\r\\n * eve.nt\\r\\n [ method ]\\r\\n **\\r\\n * Could be used inside event handler to figure out actual name of the event.\\r\\n **\\r\\n > Arguments\\r\\n **\\r\\n - subname (string) #optional subname of the event\\r\\n **\\r\\n = (string) name of the event, if `subname` is not specified\\r\\n * or\\r\\n = (boolean) `true`, if current event’s name contains `subname`\\r\\n \\\\*/\\r\\n eve.nt = function (subname) {\\r\\n if (subname) {\\r\\n return new RegExp(\\\"(?:\\\\\\\\.|\\\\\\\\/|^)\\\" + subname + \\\"(?:\\\\\\\\.|\\\\\\\\/|$)\\\").test(current_event);\\r\\n }\\r\\n return current_event;\\r\\n };\\r\\n /*\\\\\\r\\n * eve.nts\\r\\n [ method ]\\r\\n **\\r\\n * Could be used inside event handler to figure out actual name of the event.\\r\\n **\\r\\n **\\r\\n = (array) names of the event\\r\\n \\\\*/\\r\\n eve.nts = function () {\\r\\n return current_event.split(separator);\\r\\n };\\r\\n /*\\\\\\r\\n * eve.off\\r\\n [ method ]\\r\\n **\\r\\n * Removes given function from the list of event listeners assigned to given name.\\r\\n * If no arguments specified all the events will be cleared.\\r\\n **\\r\\n > Arguments\\r\\n **\\r\\n - name (string) name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\\r\\n - f (function) event handler function\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * eve.unbind\\r\\n [ method ]\\r\\n **\\r\\n * See @eve.off\\r\\n \\\\*/\\r\\n eve.off = eve.unbind = function (name, f) {\\r\\n if (!name) {\\r\\n eve._events = events = {n: {}};\\r\\n return;\\r\\n }\\r\\n var names = name.split(separator),\\r\\n e,\\r\\n key,\\r\\n splice,\\r\\n i, ii, j, jj,\\r\\n cur = [events];\\r\\n for (i = 0, ii = names.length; i < ii; i++) {\\r\\n for (j = 0; j < cur.length; j += splice.length - 2) {\\r\\n splice = [j, 1];\\r\\n e = cur[j].n;\\r\\n if (names[i] != wildcard) {\\r\\n if (e[names[i]]) {\\r\\n splice.push(e[names[i]]);\\r\\n }\\r\\n } else {\\r\\n for (key in e) if (e[has](key)) {\\r\\n splice.push(e[key]);\\r\\n }\\r\\n }\\r\\n cur.splice.apply(cur, splice);\\r\\n }\\r\\n }\\r\\n for (i = 0, ii = cur.length; i < ii; i++) {\\r\\n e = cur[i];\\r\\n while (e.n) {\\r\\n if (f) {\\r\\n if (e.f) {\\r\\n for (j = 0, jj = e.f.length; j < jj; j++) if (e.f[j] == f) {\\r\\n e.f.splice(j, 1);\\r\\n break;\\r\\n }\\r\\n !e.f.length && delete e.f;\\r\\n }\\r\\n for (key in e.n) if (e.n[has](key) && e.n[key].f) {\\r\\n var funcs = e.n[key].f;\\r\\n for (j = 0, jj = funcs.length; j < jj; j++) if (funcs[j] == f) {\\r\\n funcs.splice(j, 1);\\r\\n break;\\r\\n }\\r\\n !funcs.length && delete e.n[key].f;\\r\\n }\\r\\n } else {\\r\\n delete e.f;\\r\\n for (key in e.n) if (e.n[has](key) && e.n[key].f) {\\r\\n delete e.n[key].f;\\r\\n }\\r\\n }\\r\\n e = e.n;\\r\\n }\\r\\n }\\r\\n };\\r\\n /*\\\\\\r\\n * eve.once\\r\\n [ method ]\\r\\n **\\r\\n * Binds given event handler with a given name to only run once then unbind itself.\\r\\n | eve.once(\\\"login\\\", f);\\r\\n | eve(\\\"login\\\"); // triggers f\\r\\n | eve(\\\"login\\\"); // no listeners\\r\\n * Use @eve to trigger the listener.\\r\\n **\\r\\n > Arguments\\r\\n **\\r\\n - name (string) name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\\r\\n - f (function) event handler function\\r\\n **\\r\\n = (function) same return function as @eve.on\\r\\n \\\\*/\\r\\n eve.once = function (name, f) {\\r\\n var f2 = function () {\\r\\n eve.unbind(name, f2);\\r\\n return f.apply(this, arguments);\\r\\n };\\r\\n return eve.on(name, f2);\\r\\n };\\r\\n /*\\\\\\r\\n * eve.version\\r\\n [ property (string) ]\\r\\n **\\r\\n * Current version of the library.\\r\\n \\\\*/\\r\\n eve.version = version;\\r\\n eve.toString = function () {\\r\\n return \\\"You are running Eve \\\" + version;\\r\\n };\\r\\n\\r\\n return eve;\\r\\n}));\\r\\n\\r\\n// ┌────────────────────────────────────────────────────────────────────┐ \\\\\\\\\\r\\n// │ Raphaël 2.1.4 - JavaScript Vector Library │ \\\\\\\\\\r\\n// ├────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Core Module │ \\\\\\\\\\r\\n// ├────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Licensed under the MIT (http://raphaeljs.com/license.html) license.│ \\\\\\\\\\r\\n// └────────────────────────────────────────────────────────────────────┘ \\\\\\\\\\r\\n\\r\\n(function (glob, factory) {\\r\\n if (typeof define === \\\"function\\\" && define.amd) {\\r\\n define(\\\"raphael.core\\\", [\\\"eve\\\"], function(eve) {\\r\\n return factory(eve);\\r\\n });\\r\\n } else if (typeof exports === \\\"object\\\") {\\r\\n module.exports = factory(require(\\\"eve\\\"));\\r\\n } else {\\r\\n glob.Raphael = factory(glob.eve);\\r\\n }\\r\\n}(this, function (eve) {\\r\\n /*\\\\\\r\\n * Raphael\\r\\n [ method ]\\r\\n **\\r\\n * Creates a canvas object on which to draw.\\r\\n * You must do this first, as all future calls to drawing methods\\r\\n * from this instance will be bound to this canvas.\\r\\n > Parameters\\r\\n **\\r\\n - container (HTMLElement|string) DOM element or its ID which is going to be a parent for drawing surface\\r\\n - width (number)\\r\\n - height (number)\\r\\n - callback (function) #optional callback function which is going to be executed in the context of newly created paper\\r\\n * or\\r\\n - x (number)\\r\\n - y (number)\\r\\n - width (number)\\r\\n - height (number)\\r\\n - callback (function) #optional callback function which is going to be executed in the context of newly created paper\\r\\n * or\\r\\n - all (array) (first 3 or 4 elements in the array are equal to [containerID, width, height] or [x, y, width, height]. The rest are element descriptions in format {type: type, }). See @Paper.add.\\r\\n - callback (function) #optional callback function which is going to be executed in the context of newly created paper\\r\\n * or\\r\\n - onReadyCallback (function) function that is going to be called on DOM ready event. You can also subscribe to this event via Eve’s “DOMLoad” event. In this case method returns `undefined`.\\r\\n = (object) @Paper\\r\\n > Usage\\r\\n | // Each of the following examples create a canvas\\r\\n | // that is 320px wide by 200px high.\\r\\n | // Canvas is created at the viewport’s 10,50 coordinate.\\r\\n | var paper = Raphael(10, 50, 320, 200);\\r\\n | // Canvas is created at the top left corner of the #notepad element\\r\\n | // (or its top right corner in dir=\\\"rtl\\\" elements)\\r\\n | var paper = Raphael(document.getElementById(\\\"notepad\\\"), 320, 200);\\r\\n | // Same as above\\r\\n | var paper = Raphael(\\\"notepad\\\", 320, 200);\\r\\n | // Image dump\\r\\n | var set = Raphael([\\\"notepad\\\", 320, 200, {\\r\\n | type: \\\"rect\\\",\\r\\n | x: 10,\\r\\n | y: 10,\\r\\n | width: 25,\\r\\n | height: 25,\\r\\n | stroke: \\\"#f00\\\"\\r\\n | }, {\\r\\n | type: \\\"text\\\",\\r\\n | x: 30,\\r\\n | y: 40,\\r\\n | text: \\\"Dump\\\"\\r\\n | }]);\\r\\n \\\\*/\\r\\n function R(first) {\\r\\n if (R.is(first, \\\"function\\\")) {\\r\\n return loaded ? first() : eve.on(\\\"raphael.DOMload\\\", first);\\r\\n } else if (R.is(first, array)) {\\r\\n return R._engine.create[apply](R, first.splice(0, 3 + R.is(first[0], nu))).add(first);\\r\\n } else {\\r\\n var args = Array.prototype.slice.call(arguments, 0);\\r\\n if (R.is(args[args.length - 1], \\\"function\\\")) {\\r\\n var f = args.pop();\\r\\n return loaded ? f.call(R._engine.create[apply](R, args)) : eve.on(\\\"raphael.DOMload\\\", function () {\\r\\n f.call(R._engine.create[apply](R, args));\\r\\n });\\r\\n } else {\\r\\n return R._engine.create[apply](R, arguments);\\r\\n }\\r\\n }\\r\\n }\\r\\n R.version = \\\"2.1.4\\\";\\r\\n R.eve = eve;\\r\\n var loaded,\\r\\n separator = /[, ]+/,\\r\\n elements = {circle: 1, rect: 1, path: 1, ellipse: 1, text: 1, image: 1},\\r\\n formatrg = /\\\\{(\\\\d+)\\\\}/g,\\r\\n proto = \\\"prototype\\\",\\r\\n has = \\\"hasOwnProperty\\\",\\r\\n g = {\\r\\n doc: document,\\r\\n win: window\\r\\n },\\r\\n oldRaphael = {\\r\\n was: Object.prototype[has].call(g.win, \\\"Raphael\\\"),\\r\\n is: g.win.Raphael\\r\\n },\\r\\n Paper = function () {\\r\\n /*\\\\\\r\\n * Paper.ca\\r\\n [ property (object) ]\\r\\n **\\r\\n * Shortcut for @Paper.customAttributes\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Paper.customAttributes\\r\\n [ property (object) ]\\r\\n **\\r\\n * If you have a set of attributes that you would like to represent\\r\\n * as a function of some number you can do it easily with custom attributes:\\r\\n > Usage\\r\\n | paper.customAttributes.hue = function (num) {\\r\\n | num = num % 1;\\r\\n | return {fill: \\\"hsb(\\\" + num + \\\", 0.75, 1)\\\"};\\r\\n | };\\r\\n | // Custom attribute “hue” will change fill\\r\\n | // to be given hue with fixed saturation and brightness.\\r\\n | // Now you can use it like this:\\r\\n | var c = paper.circle(10, 10, 10).attr({hue: .45});\\r\\n | // or even like this:\\r\\n | c.animate({hue: 1}, 1e3);\\r\\n |\\r\\n | // You could also create custom attribute\\r\\n | // with multiple parameters:\\r\\n | paper.customAttributes.hsb = function (h, s, b) {\\r\\n | return {fill: \\\"hsb(\\\" + [h, s, b].join(\\\",\\\") + \\\")\\\"};\\r\\n | };\\r\\n | c.attr({hsb: \\\"0.5 .8 1\\\"});\\r\\n | c.animate({hsb: [1, 0, 0.5]}, 1e3);\\r\\n \\\\*/\\r\\n this.ca = this.customAttributes = {};\\r\\n },\\r\\n paperproto,\\r\\n appendChild = \\\"appendChild\\\",\\r\\n apply = \\\"apply\\\",\\r\\n concat = \\\"concat\\\",\\r\\n supportsTouch = ('ontouchstart' in g.win) || g.win.DocumentTouch && g.doc instanceof DocumentTouch, //taken from Modernizr touch test\\r\\n E = \\\"\\\",\\r\\n S = \\\" \\\",\\r\\n Str = String,\\r\\n split = \\\"split\\\",\\r\\n events = \\\"click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel\\\"[split](S),\\r\\n touchMap = {\\r\\n mousedown: \\\"touchstart\\\",\\r\\n mousemove: \\\"touchmove\\\",\\r\\n mouseup: \\\"touchend\\\"\\r\\n },\\r\\n lowerCase = Str.prototype.toLowerCase,\\r\\n math = Math,\\r\\n mmax = math.max,\\r\\n mmin = math.min,\\r\\n abs = math.abs,\\r\\n pow = math.pow,\\r\\n PI = math.PI,\\r\\n nu = \\\"number\\\",\\r\\n string = \\\"string\\\",\\r\\n array = \\\"array\\\",\\r\\n toString = \\\"toString\\\",\\r\\n fillString = \\\"fill\\\",\\r\\n objectToString = Object.prototype.toString,\\r\\n paper = {},\\r\\n push = \\\"push\\\",\\r\\n ISURL = R._ISURL = /^url\\\\(['\\\"]?(.+?)['\\\"]?\\\\)$/i,\\r\\n colourRegExp = /^\\\\s*((#[a-f\\\\d]{6})|(#[a-f\\\\d]{3})|rgba?\\\\(\\\\s*([\\\\d\\\\.]+%?\\\\s*,\\\\s*[\\\\d\\\\.]+%?\\\\s*,\\\\s*[\\\\d\\\\.]+%?(?:\\\\s*,\\\\s*[\\\\d\\\\.]+%?)?)\\\\s*\\\\)|hsba?\\\\(\\\\s*([\\\\d\\\\.]+(?:deg|\\\\xb0|%)?\\\\s*,\\\\s*[\\\\d\\\\.]+%?\\\\s*,\\\\s*[\\\\d\\\\.]+(?:%?\\\\s*,\\\\s*[\\\\d\\\\.]+)?)%?\\\\s*\\\\)|hsla?\\\\(\\\\s*([\\\\d\\\\.]+(?:deg|\\\\xb0|%)?\\\\s*,\\\\s*[\\\\d\\\\.]+%?\\\\s*,\\\\s*[\\\\d\\\\.]+(?:%?\\\\s*,\\\\s*[\\\\d\\\\.]+)?)%?\\\\s*\\\\))\\\\s*$/i,\\r\\n isnan = {\\\"NaN\\\": 1, \\\"Infinity\\\": 1, \\\"-Infinity\\\": 1},\\r\\n bezierrg = /^(?:cubic-)?bezier\\\\(([^,]+),([^,]+),([^,]+),([^\\\\)]+)\\\\)/,\\r\\n round = math.round,\\r\\n setAttribute = \\\"setAttribute\\\",\\r\\n toFloat = parseFloat,\\r\\n toInt = parseInt,\\r\\n upperCase = Str.prototype.toUpperCase,\\r\\n availableAttrs = R._availableAttrs = {\\r\\n \\\"arrow-end\\\": \\\"none\\\",\\r\\n \\\"arrow-start\\\": \\\"none\\\",\\r\\n blur: 0,\\r\\n \\\"clip-rect\\\": \\\"0 0 1e9 1e9\\\",\\r\\n cursor: \\\"default\\\",\\r\\n cx: 0,\\r\\n cy: 0,\\r\\n fill: \\\"#fff\\\",\\r\\n \\\"fill-opacity\\\": 1,\\r\\n font: '10px \\\"Arial\\\"',\\r\\n \\\"font-family\\\": '\\\"Arial\\\"',\\r\\n \\\"font-size\\\": \\\"10\\\",\\r\\n \\\"font-style\\\": \\\"normal\\\",\\r\\n \\\"font-weight\\\": 400,\\r\\n gradient: 0,\\r\\n height: 0,\\r\\n href: \\\"http://raphaeljs.com/\\\",\\r\\n \\\"letter-spacing\\\": 0,\\r\\n opacity: 1,\\r\\n path: \\\"M0,0\\\",\\r\\n r: 0,\\r\\n rx: 0,\\r\\n ry: 0,\\r\\n src: \\\"\\\",\\r\\n stroke: \\\"#000\\\",\\r\\n \\\"stroke-dasharray\\\": \\\"\\\",\\r\\n \\\"stroke-linecap\\\": \\\"butt\\\",\\r\\n \\\"stroke-linejoin\\\": \\\"butt\\\",\\r\\n \\\"stroke-miterlimit\\\": 0,\\r\\n \\\"stroke-opacity\\\": 1,\\r\\n \\\"stroke-width\\\": 1,\\r\\n \\\"stroke-scale\\\": false, // FreeGroup: draw2d enhancement\\r\\n target: \\\"_blank\\\",\\r\\n \\\"text-anchor\\\": \\\"middle\\\",\\r\\n title: \\\"Raphael\\\",\\r\\n transform: \\\"\\\",\\r\\n width: 0,\\r\\n x: 0,\\r\\n y: 0\\r\\n },\\r\\n availableAnimAttrs = R._availableAnimAttrs = {\\r\\n blur: nu,\\r\\n \\\"clip-rect\\\": \\\"csv\\\",\\r\\n cx: nu,\\r\\n cy: nu,\\r\\n fill: \\\"colour\\\",\\r\\n \\\"fill-opacity\\\": nu,\\r\\n \\\"font-size\\\": nu,\\r\\n height: nu,\\r\\n opacity: nu,\\r\\n path: \\\"path\\\",\\r\\n r: nu,\\r\\n rx: nu,\\r\\n ry: nu,\\r\\n stroke: \\\"colour\\\",\\r\\n \\\"stroke-opacity\\\": nu,\\r\\n \\\"stroke-width\\\": nu,\\r\\n transform: \\\"transform\\\",\\r\\n width: nu,\\r\\n x: nu,\\r\\n y: nu\\r\\n },\\r\\n whitespace = /[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]/g,\\r\\n commaSpaces = /[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*,[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*/,\\r\\n hsrg = {hs: 1, rg: 1},\\r\\n p2s = /,?([achlmqrstvxz]),?/gi,\\r\\n pathCommand = /([achlmrqstvz])[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029,]*((-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*,?[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*)+)/ig,\\r\\n tCommand = /([rstm])[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029,]*((-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*,?[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*)+)/ig,\\r\\n pathValues = /(-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?)[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*,?[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*/ig,\\r\\n radial_gradient = R._radial_gradient = /^r(?:\\\\(([^,]+?)[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*,[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*([^\\\\)]+?)\\\\))?/,\\r\\n eldata = {},\\r\\n sortByKey = function (a, b) {\\r\\n return a.key - b.key;\\r\\n },\\r\\n sortByNumber = function (a, b) {\\r\\n return toFloat(a) - toFloat(b);\\r\\n },\\r\\n fun = function () {},\\r\\n pipe = function (x) {\\r\\n return x;\\r\\n },\\r\\n rectPath = R._rectPath = function (x, y, w, h, r) {\\r\\n if (r) {\\r\\n return [[\\\"M\\\", x + r, y], [\\\"l\\\", w - r * 2, 0], [\\\"a\\\", r, r, 0, 0, 1, r, r], [\\\"l\\\", 0, h - r * 2], [\\\"a\\\", r, r, 0, 0, 1, -r, r], [\\\"l\\\", r * 2 - w, 0], [\\\"a\\\", r, r, 0, 0, 1, -r, -r], [\\\"l\\\", 0, r * 2 - h], [\\\"a\\\", r, r, 0, 0, 1, r, -r], [\\\"z\\\"]];\\r\\n }\\r\\n return [[\\\"M\\\", x, y], [\\\"l\\\", w, 0], [\\\"l\\\", 0, h], [\\\"l\\\", -w, 0], [\\\"z\\\"]];\\r\\n },\\r\\n ellipsePath = function (x, y, rx, ry) {\\r\\n if (ry == null) {\\r\\n ry = rx;\\r\\n }\\r\\n return [[\\\"M\\\", x, y], [\\\"m\\\", 0, -ry], [\\\"a\\\", rx, ry, 0, 1, 1, 0, 2 * ry], [\\\"a\\\", rx, ry, 0, 1, 1, 0, -2 * ry], [\\\"z\\\"]];\\r\\n },\\r\\n getPath = R._getPath = {\\r\\n path: function (el) {\\r\\n return el.attr(\\\"path\\\");\\r\\n },\\r\\n circle: function (el) {\\r\\n var a = el.attrs;\\r\\n return ellipsePath(a.cx, a.cy, a.r);\\r\\n },\\r\\n ellipse: function (el) {\\r\\n var a = el.attrs;\\r\\n return ellipsePath(a.cx, a.cy, a.rx, a.ry);\\r\\n },\\r\\n rect: function (el) {\\r\\n var a = el.attrs;\\r\\n return rectPath(a.x, a.y, a.width, a.height, a.r);\\r\\n },\\r\\n image: function (el) {\\r\\n var a = el.attrs;\\r\\n return rectPath(a.x, a.y, a.width, a.height);\\r\\n },\\r\\n text: function (el) {\\r\\n var bbox = el._getBBox();\\r\\n return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);\\r\\n },\\r\\n set : function(el) {\\r\\n var bbox = el._getBBox();\\r\\n return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);\\r\\n }\\r\\n },\\r\\n /*\\\\\\r\\n * Raphael.mapPath\\r\\n [ method ]\\r\\n **\\r\\n * Transform the path string with given matrix.\\r\\n > Parameters\\r\\n - path (string) path string\\r\\n - matrix (object) see @Matrix\\r\\n = (string) transformed path string\\r\\n \\\\*/\\r\\n mapPath = R.mapPath = function (path, matrix) {\\r\\n if (!matrix) {\\r\\n return path;\\r\\n }\\r\\n var x, y, i, j, ii, jj, pathi;\\r\\n path = path2curve(path);\\r\\n for (i = 0, ii = path.length; i < ii; i++) {\\r\\n pathi = path[i];\\r\\n for (j = 1, jj = pathi.length; j < jj; j += 2) {\\r\\n x = matrix.x(pathi[j], pathi[j + 1]);\\r\\n y = matrix.y(pathi[j], pathi[j + 1]);\\r\\n pathi[j] = x;\\r\\n pathi[j + 1] = y;\\r\\n }\\r\\n }\\r\\n return path;\\r\\n };\\r\\n\\r\\n R._g = g;\\r\\n /*\\\\\\r\\n * Raphael.type\\r\\n [ property (string) ]\\r\\n **\\r\\n * Can be “SVG”, “VML” or empty, depending on browser support.\\r\\n \\\\*/\\r\\n R.type = (g.win.SVGAngle || g.doc.implementation.hasFeature(\\\"http://www.w3.org/TR/SVG11/feature#BasicStructure\\\", \\\"1.1\\\") ? \\\"SVG\\\" : \\\"VML\\\");\\r\\n if (R.type == \\\"VML\\\") {\\r\\n var d = g.doc.createElement(\\\"div\\\"),\\r\\n b;\\r\\n d.innerHTML = '';\\r\\n b = d.firstChild;\\r\\n b.style.behavior = \\\"url(#default#VML)\\\";\\r\\n if (!(b && typeof b.adj == \\\"object\\\")) {\\r\\n return (R.type = E);\\r\\n }\\r\\n d = null;\\r\\n }\\r\\n /*\\\\\\r\\n * Raphael.svg\\r\\n [ property (boolean) ]\\r\\n **\\r\\n * `true` if browser supports SVG.\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Raphael.vml\\r\\n [ property (boolean) ]\\r\\n **\\r\\n * `true` if browser supports VML.\\r\\n \\\\*/\\r\\n R.svg = !(R.vml = R.type == \\\"VML\\\");\\r\\n R._Paper = Paper;\\r\\n /*\\\\\\r\\n * Raphael.fn\\r\\n [ property (object) ]\\r\\n **\\r\\n * You can add your own method to the canvas. For example if you want to draw a pie chart,\\r\\n * you can create your own pie chart function and ship it as a Raphaël plugin. To do this\\r\\n * you need to extend the `Raphael.fn` object. You should modify the `fn` object before a\\r\\n * Raphaël instance is created, otherwise it will take no effect. Please note that the\\r\\n * ability for namespaced plugins was removed in Raphael 2.0. It is up to the plugin to\\r\\n * ensure any namespacing ensures proper context.\\r\\n > Usage\\r\\n | Raphael.fn.arrow = function (x1, y1, x2, y2, size) {\\r\\n | return this.path( ... );\\r\\n | };\\r\\n | // or create namespace\\r\\n | Raphael.fn.mystuff = {\\r\\n | arrow: function () {…},\\r\\n | star: function () {…},\\r\\n | // etc…\\r\\n | };\\r\\n | var paper = Raphael(10, 10, 630, 480);\\r\\n | // then use it\\r\\n | paper.arrow(10, 10, 30, 30, 5).attr({fill: \\\"#f00\\\"});\\r\\n | paper.mystuff.arrow();\\r\\n | paper.mystuff.star();\\r\\n \\\\*/\\r\\n R.fn = paperproto = Paper.prototype = R.prototype;\\r\\n R._id = 0;\\r\\n R._oid = 0;\\r\\n /*\\\\\\r\\n * Raphael.is\\r\\n [ method ]\\r\\n **\\r\\n * Handful of replacements for `typeof` operator.\\r\\n > Parameters\\r\\n - o (…) any object or primitive\\r\\n - type (string) name of the type, i.e. “string”, “function”, “number”, etc.\\r\\n = (boolean) is given value is of given type\\r\\n \\\\*/\\r\\n R.is = function (o, type) {\\r\\n type = lowerCase.call(type);\\r\\n if (type == \\\"finite\\\") {\\r\\n return !isnan[has](+o);\\r\\n }\\r\\n if (type == \\\"array\\\") {\\r\\n return o instanceof Array;\\r\\n }\\r\\n return (type == \\\"null\\\" && o === null) ||\\r\\n (type == typeof o && o !== null) ||\\r\\n (type == \\\"object\\\" && o === Object(o)) ||\\r\\n (type == \\\"array\\\" && Array.isArray && Array.isArray(o)) ||\\r\\n objectToString.call(o).slice(8, -1).toLowerCase() == type;\\r\\n };\\r\\n\\r\\n function clone(obj) {\\r\\n if (typeof obj == \\\"function\\\" || Object(obj) !== obj) {\\r\\n return obj;\\r\\n }\\r\\n var res = new obj.constructor;\\r\\n for (var key in obj) if (obj[has](key)) {\\r\\n res[key] = clone(obj[key]);\\r\\n }\\r\\n return res;\\r\\n }\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.angle\\r\\n [ method ]\\r\\n **\\r\\n * Returns angle between two or three points\\r\\n > Parameters\\r\\n - x1 (number) x coord of first point\\r\\n - y1 (number) y coord of first point\\r\\n - x2 (number) x coord of second point\\r\\n - y2 (number) y coord of second point\\r\\n - x3 (number) #optional x coord of third point\\r\\n - y3 (number) #optional y coord of third point\\r\\n = (number) angle in degrees.\\r\\n \\\\*/\\r\\n R.angle = function (x1, y1, x2, y2, x3, y3) {\\r\\n if (x3 == null) {\\r\\n var x = x1 - x2,\\r\\n y = y1 - y2;\\r\\n if (!x && !y) {\\r\\n return 0;\\r\\n }\\r\\n return (180 + math.atan2(-y, -x) * 180 / PI + 360) % 360;\\r\\n } else {\\r\\n return R.angle(x1, y1, x3, y3) - R.angle(x2, y2, x3, y3);\\r\\n }\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.rad\\r\\n [ method ]\\r\\n **\\r\\n * Transform angle to radians\\r\\n > Parameters\\r\\n - deg (number) angle in degrees\\r\\n = (number) angle in radians.\\r\\n \\\\*/\\r\\n R.rad = function (deg) {\\r\\n return deg % 360 * PI / 180;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.deg\\r\\n [ method ]\\r\\n **\\r\\n * Transform angle to degrees\\r\\n > Parameters\\r\\n - rad (number) angle in radians\\r\\n = (number) angle in degrees.\\r\\n \\\\*/\\r\\n R.deg = function (rad) {\\r\\n return Math.round ((rad * 180 / PI% 360)* 1000) / 1000;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.snapTo\\r\\n [ method ]\\r\\n **\\r\\n * Snaps given value to given grid.\\r\\n > Parameters\\r\\n - values (array|number) given array of values or step of the grid\\r\\n - value (number) value to adjust\\r\\n - tolerance (number) #optional tolerance for snapping. Default is `10`.\\r\\n = (number) adjusted value.\\r\\n \\\\*/\\r\\n R.snapTo = function (values, value, tolerance) {\\r\\n tolerance = R.is(tolerance, \\\"finite\\\") ? tolerance : 10;\\r\\n if (R.is(values, array)) {\\r\\n var i = values.length;\\r\\n while (i--) if (abs(values[i] - value) <= tolerance) {\\r\\n return values[i];\\r\\n }\\r\\n } else {\\r\\n values = +values;\\r\\n var rem = value % values;\\r\\n if (rem < tolerance) {\\r\\n return value - rem;\\r\\n }\\r\\n if (rem > values - tolerance) {\\r\\n return value - rem + values;\\r\\n }\\r\\n }\\r\\n return value;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.createUUID\\r\\n [ method ]\\r\\n **\\r\\n * Returns RFC4122, version 4 ID\\r\\n \\\\*/\\r\\n var createUUID = R.createUUID = (function (uuidRegEx, uuidReplacer) {\\r\\n return function () {\\r\\n return \\\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\\\".replace(uuidRegEx, uuidReplacer).toUpperCase();\\r\\n };\\r\\n })(/[xy]/g, function (c) {\\r\\n var r = math.random() * 16 | 0,\\r\\n v = c == \\\"x\\\" ? r : (r & 3 | 8);\\r\\n return v.toString(16);\\r\\n });\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.setWindow\\r\\n [ method ]\\r\\n **\\r\\n * Used when you need to draw in `<iframe>`. Switched window to the iframe one.\\r\\n > Parameters\\r\\n - newwin (window) new window object\\r\\n \\\\*/\\r\\n R.setWindow = function (newwin) {\\r\\n eve(\\\"raphael.setWindow\\\", R, g.win, newwin);\\r\\n g.win = newwin;\\r\\n g.doc = g.win.document;\\r\\n if (R._engine.initWin) {\\r\\n R._engine.initWin(g.win);\\r\\n }\\r\\n };\\r\\n var toHex = function (color) {\\r\\n if (R.vml) {\\r\\n // http://dean.edwards.name/weblog/2009/10/convert-any-colour-value-to-hex-in-msie/\\r\\n var trim = /^\\\\s+|\\\\s+$/g;\\r\\n var bod;\\r\\n try {\\r\\n var docum = new ActiveXObject(\\\"htmlfile\\\");\\r\\n docum.write(\\\"\\\");\\r\\n docum.close();\\r\\n bod = docum.body;\\r\\n } catch(e) {\\r\\n bod = createPopup().document.body;\\r\\n }\\r\\n var range = bod.createTextRange();\\r\\n toHex = cacher(function (color) {\\r\\n try {\\r\\n bod.style.color = Str(color).replace(trim, E);\\r\\n var value = range.queryCommandValue(\\\"ForeColor\\\");\\r\\n value = ((value & 255) << 16) | (value & 65280) | ((value & 16711680) >>> 16);\\r\\n return \\\"#\\\" + (\\\"000000\\\" + value.toString(16)).slice(-6);\\r\\n } catch(e) {\\r\\n return \\\"none\\\";\\r\\n }\\r\\n });\\r\\n } else {\\r\\n var i = g.doc.createElement(\\\"i\\\");\\r\\n i.title = \\\"Rapha\\\\xebl Colour Picker\\\";\\r\\n i.style.display = \\\"none\\\";\\r\\n g.doc.body.appendChild(i);\\r\\n toHex = cacher(function (color) {\\r\\n i.style.color = color;\\r\\n return g.doc.defaultView.getComputedStyle(i, E).getPropertyValue(\\\"color\\\");\\r\\n });\\r\\n }\\r\\n return toHex(color);\\r\\n },\\r\\n hsbtoString = function () {\\r\\n return \\\"hsb(\\\" + [this.h, this.s, this.b] + \\\")\\\";\\r\\n },\\r\\n hsltoString = function () {\\r\\n return \\\"hsl(\\\" + [this.h, this.s, this.l] + \\\")\\\";\\r\\n },\\r\\n rgbtoString = function () {\\r\\n return this.hex;\\r\\n },\\r\\n prepareRGB = function (r, g, b) {\\r\\n if (g == null && R.is(r, \\\"object\\\") && \\\"r\\\" in r && \\\"g\\\" in r && \\\"b\\\" in r) {\\r\\n b = r.b;\\r\\n g = r.g;\\r\\n r = r.r;\\r\\n }\\r\\n if (g == null && R.is(r, string)) {\\r\\n var clr = R.getRGB(r);\\r\\n r = clr.r;\\r\\n g = clr.g;\\r\\n b = clr.b;\\r\\n }\\r\\n if (r > 1 || g > 1 || b > 1) {\\r\\n r /= 255;\\r\\n g /= 255;\\r\\n b /= 255;\\r\\n }\\r\\n\\r\\n return [r, g, b];\\r\\n },\\r\\n packageRGB = function (r, g, b, o) {\\r\\n r *= 255;\\r\\n g *= 255;\\r\\n b *= 255;\\r\\n var rgb = {\\r\\n r: r,\\r\\n g: g,\\r\\n b: b,\\r\\n hex: R.rgb(r, g, b),\\r\\n toString: rgbtoString\\r\\n };\\r\\n R.is(o, \\\"finite\\\") && (rgb.opacity = o);\\r\\n return rgb;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.color\\r\\n [ method ]\\r\\n **\\r\\n * Parses the color string and returns object with all values for the given color.\\r\\n > Parameters\\r\\n - clr (string) color string in one of the supported formats (see @Raphael.getRGB)\\r\\n = (object) Combined RGB & HSB object in format:\\r\\n o {\\r\\n o r (number) red,\\r\\n o g (number) green,\\r\\n o b (number) blue,\\r\\n o hex (string) color in HTML/CSS format: #••••••,\\r\\n o error (boolean) `true` if string can’t be parsed,\\r\\n o h (number) hue,\\r\\n o s (number) saturation,\\r\\n o v (number) value (brightness),\\r\\n o l (number) lightness\\r\\n o }\\r\\n \\\\*/\\r\\n R.color = function (clr) {\\r\\n var rgb;\\r\\n if (R.is(clr, \\\"object\\\") && \\\"h\\\" in clr && \\\"s\\\" in clr && \\\"b\\\" in clr) {\\r\\n rgb = R.hsb2rgb(clr);\\r\\n clr.r = rgb.r;\\r\\n clr.g = rgb.g;\\r\\n clr.b = rgb.b;\\r\\n clr.hex = rgb.hex;\\r\\n } else if (R.is(clr, \\\"object\\\") && \\\"h\\\" in clr && \\\"s\\\" in clr && \\\"l\\\" in clr) {\\r\\n rgb = R.hsl2rgb(clr);\\r\\n clr.r = rgb.r;\\r\\n clr.g = rgb.g;\\r\\n clr.b = rgb.b;\\r\\n clr.hex = rgb.hex;\\r\\n } else {\\r\\n if (R.is(clr, \\\"string\\\")) {\\r\\n clr = R.getRGB(clr);\\r\\n }\\r\\n if (R.is(clr, \\\"object\\\") && \\\"r\\\" in clr && \\\"g\\\" in clr && \\\"b\\\" in clr) {\\r\\n rgb = R.rgb2hsl(clr);\\r\\n clr.h = rgb.h;\\r\\n clr.s = rgb.s;\\r\\n clr.l = rgb.l;\\r\\n rgb = R.rgb2hsb(clr);\\r\\n clr.v = rgb.b;\\r\\n } else {\\r\\n clr = {hex: \\\"none\\\"};\\r\\n clr.r = clr.g = clr.b = clr.h = clr.s = clr.v = clr.l = -1;\\r\\n }\\r\\n }\\r\\n clr.toString = rgbtoString;\\r\\n return clr;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.hsb2rgb\\r\\n [ method ]\\r\\n **\\r\\n * Converts HSB values to RGB object.\\r\\n > Parameters\\r\\n - h (number) hue\\r\\n - s (number) saturation\\r\\n - v (number) value or brightness\\r\\n = (object) RGB object in format:\\r\\n o {\\r\\n o r (number) red,\\r\\n o g (number) green,\\r\\n o b (number) blue,\\r\\n o hex (string) color in HTML/CSS format: #••••••\\r\\n o }\\r\\n \\\\*/\\r\\n R.hsb2rgb = function (h, s, v, o) {\\r\\n if (this.is(h, \\\"object\\\") && \\\"h\\\" in h && \\\"s\\\" in h && \\\"b\\\" in h) {\\r\\n v = h.b;\\r\\n s = h.s;\\r\\n o = h.o;\\r\\n h = h.h;\\r\\n }\\r\\n h *= 360;\\r\\n var R, G, B, X, C;\\r\\n h = (h % 360) / 60;\\r\\n C = v * s;\\r\\n X = C * (1 - abs(h % 2 - 1));\\r\\n R = G = B = v - C;\\r\\n\\r\\n h = ~~h;\\r\\n R += [C, X, 0, 0, X, C][h];\\r\\n G += [X, C, C, X, 0, 0][h];\\r\\n B += [0, 0, X, C, C, X][h];\\r\\n return packageRGB(R, G, B, o);\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.hsl2rgb\\r\\n [ method ]\\r\\n **\\r\\n * Converts HSL values to RGB object.\\r\\n > Parameters\\r\\n - h (number) hue\\r\\n - s (number) saturation\\r\\n - l (number) luminosity\\r\\n = (object) RGB object in format:\\r\\n o {\\r\\n o r (number) red,\\r\\n o g (number) green,\\r\\n o b (number) blue,\\r\\n o hex (string) color in HTML/CSS format: #••••••\\r\\n o }\\r\\n \\\\*/\\r\\n R.hsl2rgb = function (h, s, l, o) {\\r\\n if (this.is(h, \\\"object\\\") && \\\"h\\\" in h && \\\"s\\\" in h && \\\"l\\\" in h) {\\r\\n l = h.l;\\r\\n s = h.s;\\r\\n h = h.h;\\r\\n }\\r\\n if (h > 1 || s > 1 || l > 1) {\\r\\n h /= 360;\\r\\n s /= 100;\\r\\n l /= 100;\\r\\n }\\r\\n h *= 360;\\r\\n var R, G, B, X, C;\\r\\n h = (h % 360) / 60;\\r\\n C = 2 * s * (l < .5 ? l : 1 - l);\\r\\n X = C * (1 - abs(h % 2 - 1));\\r\\n R = G = B = l - C / 2;\\r\\n\\r\\n h = ~~h;\\r\\n R += [C, X, 0, 0, X, C][h];\\r\\n G += [X, C, C, X, 0, 0][h];\\r\\n B += [0, 0, X, C, C, X][h];\\r\\n return packageRGB(R, G, B, o);\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.rgb2hsb\\r\\n [ method ]\\r\\n **\\r\\n * Converts RGB values to HSB object.\\r\\n > Parameters\\r\\n - r (number) red\\r\\n - g (number) green\\r\\n - b (number) blue\\r\\n = (object) HSB object in format:\\r\\n o {\\r\\n o h (number) hue\\r\\n o s (number) saturation\\r\\n o b (number) brightness\\r\\n o }\\r\\n \\\\*/\\r\\n R.rgb2hsb = function (r, g, b) {\\r\\n b = prepareRGB(r, g, b);\\r\\n r = b[0];\\r\\n g = b[1];\\r\\n b = b[2];\\r\\n\\r\\n var H, S, V, C;\\r\\n V = mmax(r, g, b);\\r\\n C = V - mmin(r, g, b);\\r\\n H = (C == 0 ? null :\\r\\n V == r ? (g - b) / C :\\r\\n V == g ? (b - r) / C + 2 :\\r\\n (r - g) / C + 4\\r\\n );\\r\\n H = ((H + 360) % 6) * 60 / 360;\\r\\n S = C == 0 ? 0 : C / V;\\r\\n return {h: H, s: S, b: V, toString: hsbtoString};\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.rgb2hsl\\r\\n [ method ]\\r\\n **\\r\\n * Converts RGB values to HSL object.\\r\\n > Parameters\\r\\n - r (number) red\\r\\n - g (number) green\\r\\n - b (number) blue\\r\\n = (object) HSL object in format:\\r\\n o {\\r\\n o h (number) hue\\r\\n o s (number) saturation\\r\\n o l (number) luminosity\\r\\n o }\\r\\n \\\\*/\\r\\n R.rgb2hsl = function (r, g, b) {\\r\\n b = prepareRGB(r, g, b);\\r\\n r = b[0];\\r\\n g = b[1];\\r\\n b = b[2];\\r\\n\\r\\n var H, S, L, M, m, C;\\r\\n M = mmax(r, g, b);\\r\\n m = mmin(r, g, b);\\r\\n C = M - m;\\r\\n H = (C == 0 ? null :\\r\\n M == r ? (g - b) / C :\\r\\n M == g ? (b - r) / C + 2 :\\r\\n (r - g) / C + 4);\\r\\n H = ((H + 360) % 6) * 60 / 360;\\r\\n L = (M + m) / 2;\\r\\n S = (C == 0 ? 0 :\\r\\n L < .5 ? C / (2 * L) :\\r\\n C / (2 - 2 * L));\\r\\n return {h: H, s: S, l: L, toString: hsltoString};\\r\\n };\\r\\n R._path2string = function () {\\r\\n return this.join(\\\",\\\").replace(p2s, \\\"$1\\\");\\r\\n };\\r\\n function repush(array, item) {\\r\\n for (var i = 0, ii = array.length; i < ii; i++) if (array[i] === item) {\\r\\n return array.push(array.splice(i, 1)[0]);\\r\\n }\\r\\n }\\r\\n function cacher(f, scope, postprocessor) {\\r\\n function newf() {\\r\\n var arg = Array.prototype.slice.call(arguments, 0),\\r\\n args = arg.join(\\\"\\\\u2400\\\"),\\r\\n cache = newf.cache = newf.cache || {},\\r\\n count = newf.count = newf.count || [];\\r\\n if (cache[has](args)) {\\r\\n repush(count, args);\\r\\n return postprocessor ? postprocessor(cache[args]) : cache[args];\\r\\n }\\r\\n count.length >= 1e3 && delete cache[count.shift()];\\r\\n count.push(args);\\r\\n cache[args] = f[apply](scope, arg);\\r\\n return postprocessor ? postprocessor(cache[args]) : cache[args];\\r\\n }\\r\\n return newf;\\r\\n }\\r\\n\\r\\n var preload = R._preload = function (src, f) {\\r\\n var img = g.doc.createElement(\\\"img\\\");\\r\\n img.style.cssText = \\\"position:absolute;left:-9999em;top:-9999em\\\";\\r\\n img.onload = function () {\\r\\n f.call(this);\\r\\n this.onload = null;\\r\\n g.doc.body.removeChild(this);\\r\\n };\\r\\n img.onerror = function () {\\r\\n g.doc.body.removeChild(this);\\r\\n };\\r\\n g.doc.body.appendChild(img);\\r\\n img.src = src;\\r\\n };\\r\\n\\r\\n function clrToString() {\\r\\n return this.hex;\\r\\n }\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.getRGB\\r\\n [ method ]\\r\\n **\\r\\n * Parses colour string as RGB object\\r\\n > Parameters\\r\\n - colour (string) colour string in one of formats:\\r\\n #
    \\r\\n #
  • Colour name (“red”, “green”, “cornflowerblue”, etc)
  • \\r\\n #
  • #••• — shortened HTML colour: (“#000”, “#fc0”, etc)
  • \\r\\n #
  • #•••••• — full length HTML colour: (“#000000”, “#bd2300”)
  • \\r\\n #
  • rgb(•••, •••, •••) — red, green and blue channels’ values: (“rgb(200, 100, 0)”)
  • \\r\\n #
  • rgb(•••%, •••%, •••%) — same as above, but in %: (“rgb(100%, 175%, 0%)”)
  • \\r\\n #
  • hsb(•••, •••, •••) — hue, saturation and brightness values: (“hsb(0.5, 0.25, 1)”)
  • \\r\\n #
  • hsb(•••%, •••%, •••%) — same as above, but in %
  • \\r\\n #
  • hsl(•••, •••, •••) — same as hsb
  • \\r\\n #
  • hsl(•••%, •••%, •••%) — same as hsb
  • \\r\\n #
\\r\\n = (object) RGB object in format:\\r\\n o {\\r\\n o r (number) red,\\r\\n o g (number) green,\\r\\n o b (number) blue\\r\\n o hex (string) color in HTML/CSS format: #••••••,\\r\\n o error (boolean) true if string can’t be parsed\\r\\n o }\\r\\n \\\\*/\\r\\n R.getRGB = cacher(function (colour) {\\r\\n if (!colour || !!((colour = Str(colour)).indexOf(\\\"-\\\") + 1)) {\\r\\n return {r: -1, g: -1, b: -1, hex: \\\"none\\\", error: 1, toString: clrToString};\\r\\n }\\r\\n if (colour == \\\"none\\\") {\\r\\n return {r: -1, g: -1, b: -1, hex: \\\"none\\\", toString: clrToString};\\r\\n }\\r\\n !(hsrg[has](colour.toLowerCase().substring(0, 2)) || colour.charAt() == \\\"#\\\") && (colour = toHex(colour));\\r\\n var res,\\r\\n red,\\r\\n green,\\r\\n blue,\\r\\n opacity,\\r\\n t,\\r\\n values,\\r\\n rgb = colour.match(colourRegExp);\\r\\n if (rgb) {\\r\\n if (rgb[2]) {\\r\\n blue = toInt(rgb[2].substring(5), 16);\\r\\n green = toInt(rgb[2].substring(3, 5), 16);\\r\\n red = toInt(rgb[2].substring(1, 3), 16);\\r\\n }\\r\\n if (rgb[3]) {\\r\\n blue = toInt((t = rgb[3].charAt(3)) + t, 16);\\r\\n green = toInt((t = rgb[3].charAt(2)) + t, 16);\\r\\n red = toInt((t = rgb[3].charAt(1)) + t, 16);\\r\\n }\\r\\n if (rgb[4]) {\\r\\n values = rgb[4][split](commaSpaces);\\r\\n red = toFloat(values[0]);\\r\\n values[0].slice(-1) == \\\"%\\\" && (red *= 2.55);\\r\\n green = toFloat(values[1]);\\r\\n values[1].slice(-1) == \\\"%\\\" && (green *= 2.55);\\r\\n blue = toFloat(values[2]);\\r\\n values[2].slice(-1) == \\\"%\\\" && (blue *= 2.55);\\r\\n rgb[1].toLowerCase().slice(0, 4) == \\\"rgba\\\" && (opacity = toFloat(values[3]));\\r\\n values[3] && values[3].slice(-1) == \\\"%\\\" && (opacity /= 100);\\r\\n }\\r\\n if (rgb[5]) {\\r\\n values = rgb[5][split](commaSpaces);\\r\\n red = toFloat(values[0]);\\r\\n values[0].slice(-1) == \\\"%\\\" && (red *= 2.55);\\r\\n green = toFloat(values[1]);\\r\\n values[1].slice(-1) == \\\"%\\\" && (green *= 2.55);\\r\\n blue = toFloat(values[2]);\\r\\n values[2].slice(-1) == \\\"%\\\" && (blue *= 2.55);\\r\\n (values[0].slice(-3) == \\\"deg\\\" || values[0].slice(-1) == \\\"\\\\xb0\\\") && (red /= 360);\\r\\n rgb[1].toLowerCase().slice(0, 4) == \\\"hsba\\\" && (opacity = toFloat(values[3]));\\r\\n values[3] && values[3].slice(-1) == \\\"%\\\" && (opacity /= 100);\\r\\n return R.hsb2rgb(red, green, blue, opacity);\\r\\n }\\r\\n if (rgb[6]) {\\r\\n values = rgb[6][split](commaSpaces);\\r\\n red = toFloat(values[0]);\\r\\n values[0].slice(-1) == \\\"%\\\" && (red *= 2.55);\\r\\n green = toFloat(values[1]);\\r\\n values[1].slice(-1) == \\\"%\\\" && (green *= 2.55);\\r\\n blue = toFloat(values[2]);\\r\\n values[2].slice(-1) == \\\"%\\\" && (blue *= 2.55);\\r\\n (values[0].slice(-3) == \\\"deg\\\" || values[0].slice(-1) == \\\"\\\\xb0\\\") && (red /= 360);\\r\\n rgb[1].toLowerCase().slice(0, 4) == \\\"hsla\\\" && (opacity = toFloat(values[3]));\\r\\n values[3] && values[3].slice(-1) == \\\"%\\\" && (opacity /= 100);\\r\\n return R.hsl2rgb(red, green, blue, opacity);\\r\\n }\\r\\n rgb = {r: red, g: green, b: blue, toString: clrToString};\\r\\n rgb.hex = \\\"#\\\" + (16777216 | blue | (green << 8) | (red << 16)).toString(16).slice(1);\\r\\n R.is(opacity, \\\"finite\\\") && (rgb.opacity = opacity);\\r\\n return rgb;\\r\\n }\\r\\n return {r: -1, g: -1, b: -1, hex: \\\"none\\\", error: 1, toString: clrToString};\\r\\n }, R);\\r\\n /*\\\\\\r\\n * Raphael.hsb\\r\\n [ method ]\\r\\n **\\r\\n * Converts HSB values to hex representation of the colour.\\r\\n > Parameters\\r\\n - h (number) hue\\r\\n - s (number) saturation\\r\\n - b (number) value or brightness\\r\\n = (string) hex representation of the colour.\\r\\n \\\\*/\\r\\n R.hsb = cacher(function (h, s, b) {\\r\\n return R.hsb2rgb(h, s, b).hex;\\r\\n });\\r\\n /*\\\\\\r\\n * Raphael.hsl\\r\\n [ method ]\\r\\n **\\r\\n * Converts HSL values to hex representation of the colour.\\r\\n > Parameters\\r\\n - h (number) hue\\r\\n - s (number) saturation\\r\\n - l (number) luminosity\\r\\n = (string) hex representation of the colour.\\r\\n \\\\*/\\r\\n R.hsl = cacher(function (h, s, l) {\\r\\n return R.hsl2rgb(h, s, l).hex;\\r\\n });\\r\\n /*\\\\\\r\\n * Raphael.rgb\\r\\n [ method ]\\r\\n **\\r\\n * Converts RGB values to hex representation of the colour.\\r\\n > Parameters\\r\\n - r (number) red\\r\\n - g (number) green\\r\\n - b (number) blue\\r\\n = (string) hex representation of the colour.\\r\\n \\\\*/\\r\\n R.rgb = cacher(function (r, g, b) {\\r\\n function round(x) { return (x + 0.5) | 0; }\\r\\n return \\\"#\\\" + (16777216 | round(b) | (round(g) << 8) | (round(r) << 16)).toString(16).slice(1);\\r\\n });\\r\\n /*\\\\\\r\\n * Raphael.getColor\\r\\n [ method ]\\r\\n **\\r\\n * On each call returns next colour in the spectrum. To reset it back to red call @Raphael.getColor.reset\\r\\n > Parameters\\r\\n - value (number) #optional brightness, default is `0.75`\\r\\n = (string) hex representation of the colour.\\r\\n \\\\*/\\r\\n R.getColor = function (value) {\\r\\n var start = this.getColor.start = this.getColor.start || {h: 0, s: 1, b: value || .75},\\r\\n rgb = this.hsb2rgb(start.h, start.s, start.b);\\r\\n start.h += .075;\\r\\n if (start.h > 1) {\\r\\n start.h = 0;\\r\\n start.s -= .2;\\r\\n start.s <= 0 && (this.getColor.start = {h: 0, s: 1, b: start.b});\\r\\n }\\r\\n return rgb.hex;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.getColor.reset\\r\\n [ method ]\\r\\n **\\r\\n * Resets spectrum position for @Raphael.getColor back to red.\\r\\n \\\\*/\\r\\n R.getColor.reset = function () {\\r\\n delete this.start;\\r\\n };\\r\\n\\r\\n // http://schepers.cc/getting-to-the-point\\r\\n function catmullRom2bezier(crp, z) {\\r\\n var d = [];\\r\\n for (var i = 0, iLen = crp.length; iLen - 2 * !z > i; i += 2) {\\r\\n var p = [\\r\\n {x: +crp[i - 2], y: +crp[i - 1]},\\r\\n {x: +crp[i], y: +crp[i + 1]},\\r\\n {x: +crp[i + 2], y: +crp[i + 3]},\\r\\n {x: +crp[i + 4], y: +crp[i + 5]}\\r\\n ];\\r\\n if (z) {\\r\\n if (!i) {\\r\\n p[0] = {x: +crp[iLen - 2], y: +crp[iLen - 1]};\\r\\n } else if (iLen - 4 == i) {\\r\\n p[3] = {x: +crp[0], y: +crp[1]};\\r\\n } else if (iLen - 2 == i) {\\r\\n p[2] = {x: +crp[0], y: +crp[1]};\\r\\n p[3] = {x: +crp[2], y: +crp[3]};\\r\\n }\\r\\n } else {\\r\\n if (iLen - 4 == i) {\\r\\n p[3] = p[2];\\r\\n } else if (!i) {\\r\\n p[0] = {x: +crp[i], y: +crp[i + 1]};\\r\\n }\\r\\n }\\r\\n d.push([\\\"C\\\",\\r\\n (-p[0].x + 6 * p[1].x + p[2].x) / 6,\\r\\n (-p[0].y + 6 * p[1].y + p[2].y) / 6,\\r\\n (p[1].x + 6 * p[2].x - p[3].x) / 6,\\r\\n (p[1].y + 6*p[2].y - p[3].y) / 6,\\r\\n p[2].x,\\r\\n p[2].y\\r\\n ]);\\r\\n }\\r\\n\\r\\n return d;\\r\\n }\\r\\n /*\\\\\\r\\n * Raphael.parsePathString\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Parses given path string into an array of arrays of path segments.\\r\\n > Parameters\\r\\n - pathString (string|array) path string or array of segments (in the last case it will be returned straight away)\\r\\n = (array) array of segments.\\r\\n \\\\*/\\r\\n R.parsePathString = function (pathString) {\\r\\n if (!pathString) {\\r\\n return null;\\r\\n }\\r\\n var pth = paths(pathString);\\r\\n if (pth.arr) {\\r\\n return pathClone(pth.arr);\\r\\n }\\r\\n\\r\\n var paramCounts = {a: 7, c: 6, h: 1, l: 2, m: 2, r: 4, q: 4, s: 4, t: 2, v: 1, z: 0},\\r\\n data = [];\\r\\n if (R.is(pathString, array) && R.is(pathString[0], array)) { // rough assumption\\r\\n data = pathClone(pathString);\\r\\n }\\r\\n if (!data.length) {\\r\\n Str(pathString).replace(pathCommand, function (a, b, c) {\\r\\n var params = [],\\r\\n name = b.toLowerCase();\\r\\n c.replace(pathValues, function (a, b) {\\r\\n b && params.push(+b);\\r\\n });\\r\\n if (name == \\\"m\\\" && params.length > 2) {\\r\\n data.push([b][concat](params.splice(0, 2)));\\r\\n name = \\\"l\\\";\\r\\n b = b == \\\"m\\\" ? \\\"l\\\" : \\\"L\\\";\\r\\n }\\r\\n if (name == \\\"r\\\") {\\r\\n data.push([b][concat](params));\\r\\n } else while (params.length >= paramCounts[name]) {\\r\\n data.push([b][concat](params.splice(0, paramCounts[name])));\\r\\n if (!paramCounts[name]) {\\r\\n break;\\r\\n }\\r\\n }\\r\\n });\\r\\n }\\r\\n data.toString = R._path2string;\\r\\n pth.arr = pathClone(data);\\r\\n return data;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.parseTransformString\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Parses given path string into an array of transformations.\\r\\n > Parameters\\r\\n - TString (string|array) transform string or array of transformations (in the last case it will be returned straight away)\\r\\n = (array) array of transformations.\\r\\n \\\\*/\\r\\n R.parseTransformString = cacher(function (TString) {\\r\\n if (!TString) {\\r\\n return null;\\r\\n }\\r\\n var paramCounts = {r: 3, s: 4, t: 2, m: 6},\\r\\n data = [];\\r\\n if (R.is(TString, array) && R.is(TString[0], array)) { // rough assumption\\r\\n data = pathClone(TString);\\r\\n }\\r\\n if (!data.length) {\\r\\n Str(TString).replace(tCommand, function (a, b, c) {\\r\\n var params = [],\\r\\n name = lowerCase.call(b);\\r\\n c.replace(pathValues, function (a, b) {\\r\\n b && params.push(+b);\\r\\n });\\r\\n data.push([b][concat](params));\\r\\n });\\r\\n }\\r\\n data.toString = R._path2string;\\r\\n return data;\\r\\n });\\r\\n // PATHS\\r\\n var paths = function (ps) {\\r\\n var p = paths.ps = paths.ps || {};\\r\\n if (p[ps]) {\\r\\n p[ps].sleep = 100;\\r\\n } else {\\r\\n p[ps] = {\\r\\n sleep: 100\\r\\n };\\r\\n }\\r\\n setTimeout(function () {\\r\\n for (var key in p) if (p[has](key) && key != ps) {\\r\\n p[key].sleep--;\\r\\n !p[key].sleep && delete p[key];\\r\\n }\\r\\n });\\r\\n return p[ps];\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.findDotsAtSegment\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Find dot coordinates on the given cubic bezier curve at the given t.\\r\\n > Parameters\\r\\n - p1x (number) x of the first point of the curve\\r\\n - p1y (number) y of the first point of the curve\\r\\n - c1x (number) x of the first anchor of the curve\\r\\n - c1y (number) y of the first anchor of the curve\\r\\n - c2x (number) x of the second anchor of the curve\\r\\n - c2y (number) y of the second anchor of the curve\\r\\n - p2x (number) x of the second point of the curve\\r\\n - p2y (number) y of the second point of the curve\\r\\n - t (number) position on the curve (0..1)\\r\\n = (object) point information in format:\\r\\n o {\\r\\n o x: (number) x coordinate of the point\\r\\n o y: (number) y coordinate of the point\\r\\n o m: {\\r\\n o x: (number) x coordinate of the left anchor\\r\\n o y: (number) y coordinate of the left anchor\\r\\n o }\\r\\n o n: {\\r\\n o x: (number) x coordinate of the right anchor\\r\\n o y: (number) y coordinate of the right anchor\\r\\n o }\\r\\n o start: {\\r\\n o x: (number) x coordinate of the start of the curve\\r\\n o y: (number) y coordinate of the start of the curve\\r\\n o }\\r\\n o end: {\\r\\n o x: (number) x coordinate of the end of the curve\\r\\n o y: (number) y coordinate of the end of the curve\\r\\n o }\\r\\n o alpha: (number) angle of the curve derivative at the point\\r\\n o }\\r\\n \\\\*/\\r\\n R.findDotsAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {\\r\\n var t1 = 1 - t,\\r\\n t13 = pow(t1, 3),\\r\\n t12 = pow(t1, 2),\\r\\n t2 = t * t,\\r\\n t3 = t2 * t,\\r\\n x = t13 * p1x + t12 * 3 * t * c1x + t1 * 3 * t * t * c2x + t3 * p2x,\\r\\n y = t13 * p1y + t12 * 3 * t * c1y + t1 * 3 * t * t * c2y + t3 * p2y,\\r\\n mx = p1x + 2 * t * (c1x - p1x) + t2 * (c2x - 2 * c1x + p1x),\\r\\n my = p1y + 2 * t * (c1y - p1y) + t2 * (c2y - 2 * c1y + p1y),\\r\\n nx = c1x + 2 * t * (c2x - c1x) + t2 * (p2x - 2 * c2x + c1x),\\r\\n ny = c1y + 2 * t * (c2y - c1y) + t2 * (p2y - 2 * c2y + c1y),\\r\\n ax = t1 * p1x + t * c1x,\\r\\n ay = t1 * p1y + t * c1y,\\r\\n cx = t1 * c2x + t * p2x,\\r\\n cy = t1 * c2y + t * p2y,\\r\\n alpha = (90 - math.atan2(mx - nx, my - ny) * 180 / PI);\\r\\n (mx > nx || my < ny) && (alpha += 180);\\r\\n return {\\r\\n x: x,\\r\\n y: y,\\r\\n m: {x: mx, y: my},\\r\\n n: {x: nx, y: ny},\\r\\n start: {x: ax, y: ay},\\r\\n end: {x: cx, y: cy},\\r\\n alpha: alpha\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.bezierBBox\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Return bounding box of a given cubic bezier curve\\r\\n > Parameters\\r\\n - p1x (number) x of the first point of the curve\\r\\n - p1y (number) y of the first point of the curve\\r\\n - c1x (number) x of the first anchor of the curve\\r\\n - c1y (number) y of the first anchor of the curve\\r\\n - c2x (number) x of the second anchor of the curve\\r\\n - c2y (number) y of the second anchor of the curve\\r\\n - p2x (number) x of the second point of the curve\\r\\n - p2y (number) y of the second point of the curve\\r\\n * or\\r\\n - bez (array) array of six points for bezier curve\\r\\n = (object) point information in format:\\r\\n o {\\r\\n o min: {\\r\\n o x: (number) x coordinate of the left point\\r\\n o y: (number) y coordinate of the top point\\r\\n o }\\r\\n o max: {\\r\\n o x: (number) x coordinate of the right point\\r\\n o y: (number) y coordinate of the bottom point\\r\\n o }\\r\\n o }\\r\\n \\\\*/\\r\\n R.bezierBBox = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {\\r\\n if (!R.is(p1x, \\\"array\\\")) {\\r\\n p1x = [p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y];\\r\\n }\\r\\n var bbox = curveDim.apply(null, p1x);\\r\\n return {\\r\\n x: bbox.min.x,\\r\\n y: bbox.min.y,\\r\\n x2: bbox.max.x,\\r\\n y2: bbox.max.y,\\r\\n width: bbox.max.x - bbox.min.x,\\r\\n height: bbox.max.y - bbox.min.y\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.isPointInsideBBox\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Returns `true` if given point is inside bounding boxes.\\r\\n > Parameters\\r\\n - bbox (string) bounding box\\r\\n - x (string) x coordinate of the point\\r\\n - y (string) y coordinate of the point\\r\\n = (boolean) `true` if point inside\\r\\n \\\\*/\\r\\n R.isPointInsideBBox = function (bbox, x, y) {\\r\\n return x >= bbox.x && x <= bbox.x2 && y >= bbox.y && y <= bbox.y2;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.isBBoxIntersect\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Returns `true` if two bounding boxes intersect\\r\\n > Parameters\\r\\n - bbox1 (string) first bounding box\\r\\n - bbox2 (string) second bounding box\\r\\n = (boolean) `true` if they intersect\\r\\n \\\\*/\\r\\n R.isBBoxIntersect = function (bbox1, bbox2) {\\r\\n var i = R.isPointInsideBBox;\\r\\n return i(bbox2, bbox1.x, bbox1.y)\\r\\n || i(bbox2, bbox1.x2, bbox1.y)\\r\\n || i(bbox2, bbox1.x, bbox1.y2)\\r\\n || i(bbox2, bbox1.x2, bbox1.y2)\\r\\n || i(bbox1, bbox2.x, bbox2.y)\\r\\n || i(bbox1, bbox2.x2, bbox2.y)\\r\\n || i(bbox1, bbox2.x, bbox2.y2)\\r\\n || i(bbox1, bbox2.x2, bbox2.y2)\\r\\n || (bbox1.x < bbox2.x2 && bbox1.x > bbox2.x || bbox2.x < bbox1.x2 && bbox2.x > bbox1.x)\\r\\n && (bbox1.y < bbox2.y2 && bbox1.y > bbox2.y || bbox2.y < bbox1.y2 && bbox2.y > bbox1.y);\\r\\n };\\r\\n function base3(t, p1, p2, p3, p4) {\\r\\n var t1 = -3 * p1 + 9 * p2 - 9 * p3 + 3 * p4,\\r\\n t2 = t * t1 + 6 * p1 - 12 * p2 + 6 * p3;\\r\\n return t * t2 - 3 * p1 + 3 * p2;\\r\\n }\\r\\n function bezlen(x1, y1, x2, y2, x3, y3, x4, y4, z) {\\r\\n if (z == null) {\\r\\n z = 1;\\r\\n }\\r\\n z = z > 1 ? 1 : z < 0 ? 0 : z;\\r\\n var z2 = z / 2,\\r\\n n = 12,\\r\\n Tvalues = [-0.1252,0.1252,-0.3678,0.3678,-0.5873,0.5873,-0.7699,0.7699,-0.9041,0.9041,-0.9816,0.9816],\\r\\n Cvalues = [0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],\\r\\n sum = 0;\\r\\n for (var i = 0; i < n; i++) {\\r\\n var ct = z2 * Tvalues[i] + z2,\\r\\n xbase = base3(ct, x1, x2, x3, x4),\\r\\n ybase = base3(ct, y1, y2, y3, y4),\\r\\n comb = xbase * xbase + ybase * ybase;\\r\\n sum += Cvalues[i] * math.sqrt(comb);\\r\\n }\\r\\n return z2 * sum;\\r\\n }\\r\\n function getTatLen(x1, y1, x2, y2, x3, y3, x4, y4, ll) {\\r\\n if (ll < 0 || bezlen(x1, y1, x2, y2, x3, y3, x4, y4) < ll) {\\r\\n return;\\r\\n }\\r\\n var t = 1,\\r\\n step = t / 2,\\r\\n t2 = t - step,\\r\\n l,\\r\\n e = .01;\\r\\n l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2);\\r\\n while (abs(l - ll) > e) {\\r\\n step /= 2;\\r\\n t2 += (l < ll ? 1 : -1) * step;\\r\\n l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2);\\r\\n }\\r\\n return t2;\\r\\n }\\r\\n function intersect(x1, y1, x2, y2, x3, y3, x4, y4) {\\r\\n if (\\r\\n mmax(x1, x2) < mmin(x3, x4) ||\\r\\n mmin(x1, x2) > mmax(x3, x4) ||\\r\\n mmax(y1, y2) < mmin(y3, y4) ||\\r\\n mmin(y1, y2) > mmax(y3, y4)\\r\\n ) {\\r\\n return;\\r\\n }\\r\\n var nx = (x1 * y2 - y1 * x2) * (x3 - x4) - (x1 - x2) * (x3 * y4 - y3 * x4),\\r\\n ny = (x1 * y2 - y1 * x2) * (y3 - y4) - (y1 - y2) * (x3 * y4 - y3 * x4),\\r\\n denominator = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4);\\r\\n\\r\\n if (!denominator) {\\r\\n return;\\r\\n }\\r\\n var px = nx / denominator,\\r\\n py = ny / denominator,\\r\\n px2 = +px.toFixed(2),\\r\\n py2 = +py.toFixed(2);\\r\\n if (\\r\\n px2 < +mmin(x1, x2).toFixed(2) ||\\r\\n px2 > +mmax(x1, x2).toFixed(2) ||\\r\\n px2 < +mmin(x3, x4).toFixed(2) ||\\r\\n px2 > +mmax(x3, x4).toFixed(2) ||\\r\\n py2 < +mmin(y1, y2).toFixed(2) ||\\r\\n py2 > +mmax(y1, y2).toFixed(2) ||\\r\\n py2 < +mmin(y3, y4).toFixed(2) ||\\r\\n py2 > +mmax(y3, y4).toFixed(2)\\r\\n ) {\\r\\n return;\\r\\n }\\r\\n return {x: px, y: py};\\r\\n }\\r\\n function inter(bez1, bez2) {\\r\\n return interHelper(bez1, bez2);\\r\\n }\\r\\n function interCount(bez1, bez2) {\\r\\n return interHelper(bez1, bez2, 1);\\r\\n }\\r\\n function interHelper(bez1, bez2, justCount) {\\r\\n var bbox1 = R.bezierBBox(bez1),\\r\\n bbox2 = R.bezierBBox(bez2);\\r\\n if (!R.isBBoxIntersect(bbox1, bbox2)) {\\r\\n return justCount ? 0 : [];\\r\\n }\\r\\n var l1 = bezlen.apply(0, bez1),\\r\\n l2 = bezlen.apply(0, bez2),\\r\\n n1 = mmax(~~(l1 / 5), 1),\\r\\n n2 = mmax(~~(l2 / 5), 1),\\r\\n dots1 = [],\\r\\n dots2 = [],\\r\\n xy = {},\\r\\n res = justCount ? 0 : [];\\r\\n for (var i = 0; i < n1 + 1; i++) {\\r\\n var p = R.findDotsAtSegment.apply(R, bez1.concat(i / n1));\\r\\n dots1.push({x: p.x, y: p.y, t: i / n1});\\r\\n }\\r\\n for (i = 0; i < n2 + 1; i++) {\\r\\n p = R.findDotsAtSegment.apply(R, bez2.concat(i / n2));\\r\\n dots2.push({x: p.x, y: p.y, t: i / n2});\\r\\n }\\r\\n for (i = 0; i < n1; i++) {\\r\\n for (var j = 0; j < n2; j++) {\\r\\n var di = dots1[i],\\r\\n di1 = dots1[i + 1],\\r\\n dj = dots2[j],\\r\\n dj1 = dots2[j + 1],\\r\\n ci = abs(di1.x - di.x) < .001 ? \\\"y\\\" : \\\"x\\\",\\r\\n cj = abs(dj1.x - dj.x) < .001 ? \\\"y\\\" : \\\"x\\\",\\r\\n is = intersect(di.x, di.y, di1.x, di1.y, dj.x, dj.y, dj1.x, dj1.y);\\r\\n if (is) {\\r\\n if (xy[is.x.toFixed(4)] == is.y.toFixed(4)) {\\r\\n continue;\\r\\n }\\r\\n xy[is.x.toFixed(4)] = is.y.toFixed(4);\\r\\n var t1 = di.t + abs((is[ci] - di[ci]) / (di1[ci] - di[ci])) * (di1.t - di.t),\\r\\n t2 = dj.t + abs((is[cj] - dj[cj]) / (dj1[cj] - dj[cj])) * (dj1.t - dj.t);\\r\\n if (t1 >= 0 && t1 <= 1.001 && t2 >= 0 && t2 <= 1.001) {\\r\\n if (justCount) {\\r\\n res++;\\r\\n } else {\\r\\n res.push({\\r\\n x: is.x,\\r\\n y: is.y,\\r\\n t1: mmin(t1, 1),\\r\\n t2: mmin(t2, 1)\\r\\n });\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n return res;\\r\\n }\\r\\n /*\\\\\\r\\n * Raphael.pathIntersection\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Finds intersections of two paths\\r\\n > Parameters\\r\\n - path1 (string) path string\\r\\n - path2 (string) path string\\r\\n = (array) dots of intersection\\r\\n o [\\r\\n o {\\r\\n o x: (number) x coordinate of the point\\r\\n o y: (number) y coordinate of the point\\r\\n o t1: (number) t value for segment of path1\\r\\n o t2: (number) t value for segment of path2\\r\\n o segment1: (number) order number for segment of path1\\r\\n o segment2: (number) order number for segment of path2\\r\\n o bez1: (array) eight coordinates representing beziér curve for the segment of path1\\r\\n o bez2: (array) eight coordinates representing beziér curve for the segment of path2\\r\\n o }\\r\\n o ]\\r\\n \\\\*/\\r\\n R.pathIntersection = function (path1, path2) {\\r\\n return interPathHelper(path1, path2);\\r\\n };\\r\\n R.pathIntersectionNumber = function (path1, path2) {\\r\\n return interPathHelper(path1, path2, 1);\\r\\n };\\r\\n function interPathHelper(path1, path2, justCount) {\\r\\n path1 = R._path2curve(path1);\\r\\n path2 = R._path2curve(path2);\\r\\n var x1, y1, x2, y2, x1m, y1m, x2m, y2m, bez1, bez2,\\r\\n res = justCount ? 0 : [];\\r\\n for (var i = 0, ii = path1.length; i < ii; i++) {\\r\\n var pi = path1[i];\\r\\n if (pi[0] == \\\"M\\\") {\\r\\n x1 = x1m = pi[1];\\r\\n y1 = y1m = pi[2];\\r\\n } else {\\r\\n if (pi[0] == \\\"C\\\") {\\r\\n bez1 = [x1, y1].concat(pi.slice(1));\\r\\n x1 = bez1[6];\\r\\n y1 = bez1[7];\\r\\n } else {\\r\\n bez1 = [x1, y1, x1, y1, x1m, y1m, x1m, y1m];\\r\\n x1 = x1m;\\r\\n y1 = y1m;\\r\\n }\\r\\n for (var j = 0, jj = path2.length; j < jj; j++) {\\r\\n var pj = path2[j];\\r\\n if (pj[0] == \\\"M\\\") {\\r\\n x2 = x2m = pj[1];\\r\\n y2 = y2m = pj[2];\\r\\n } else {\\r\\n if (pj[0] == \\\"C\\\") {\\r\\n bez2 = [x2, y2].concat(pj.slice(1));\\r\\n x2 = bez2[6];\\r\\n y2 = bez2[7];\\r\\n } else {\\r\\n bez2 = [x2, y2, x2, y2, x2m, y2m, x2m, y2m];\\r\\n x2 = x2m;\\r\\n y2 = y2m;\\r\\n }\\r\\n var intr = interHelper(bez1, bez2, justCount);\\r\\n if (justCount) {\\r\\n res += intr;\\r\\n } else {\\r\\n for (var k = 0, kk = intr.length; k < kk; k++) {\\r\\n intr[k].segment1 = i;\\r\\n intr[k].segment2 = j;\\r\\n intr[k].bez1 = bez1;\\r\\n intr[k].bez2 = bez2;\\r\\n }\\r\\n res = res.concat(intr);\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n return res;\\r\\n }\\r\\n /*\\\\\\r\\n * Raphael.isPointInsidePath\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Returns `true` if given point is inside a given closed path.\\r\\n > Parameters\\r\\n - path (string) path string\\r\\n - x (number) x of the point\\r\\n - y (number) y of the point\\r\\n = (boolean) true, if point is inside the path\\r\\n \\\\*/\\r\\n R.isPointInsidePath = function (path, x, y) {\\r\\n var bbox = R.pathBBox(path);\\r\\n return R.isPointInsideBBox(bbox, x, y) &&\\r\\n interPathHelper(path, [[\\\"M\\\", x, y], [\\\"H\\\", bbox.x2 + 10]], 1) % 2 == 1;\\r\\n };\\r\\n R._removedFactory = function (methodname) {\\r\\n return function () {\\r\\n eve(\\\"raphael.log\\\", null, \\\"Rapha\\\\xebl: you are calling to method \\\\u201c\\\" + methodname + \\\"\\\\u201d of removed object\\\", methodname);\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.pathBBox\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Return bounding box of a given path\\r\\n > Parameters\\r\\n - path (string) path string\\r\\n = (object) bounding box\\r\\n o {\\r\\n o x: (number) x coordinate of the left top point of the box\\r\\n o y: (number) y coordinate of the left top point of the box\\r\\n o x2: (number) x coordinate of the right bottom point of the box\\r\\n o y2: (number) y coordinate of the right bottom point of the box\\r\\n o width: (number) width of the box\\r\\n o height: (number) height of the box\\r\\n o cx: (number) x coordinate of the center of the box\\r\\n o cy: (number) y coordinate of the center of the box\\r\\n o }\\r\\n \\\\*/\\r\\n var pathDimensions = R.pathBBox = function (path) {\\r\\n var pth = paths(path);\\r\\n if (pth.bbox) {\\r\\n var b= pth.bbox;\\r\\n return {x: b.x, y: b.y, width: b.width, height: b.height, x2: b.x2, y2: b.y2} ; // FREEGROUP FIX!!!!!!\\r\\n // raphael reuse the returned bbox. You must clone it here if the caller need the bbxo for\\r\\n //further calculation\\r\\n }\\r\\n if (!path) {\\r\\n return {x: 0, y: 0, width: 0, height: 0, x2: 0, y2: 0};\\r\\n }\\r\\n path = path2curve(path);\\r\\n var x = 0,\\r\\n y = 0,\\r\\n X = [],\\r\\n Y = [],\\r\\n p;\\r\\n for (var i = 0, ii = path.length; i < ii; i++) {\\r\\n p = path[i];\\r\\n if (p[0] == \\\"M\\\") {\\r\\n x = p[1];\\r\\n y = p[2];\\r\\n X.push(x);\\r\\n Y.push(y);\\r\\n } else {\\r\\n var dim = curveDim(x, y, p[1], p[2], p[3], p[4], p[5], p[6]);\\r\\n X = X[concat](dim.min.x, dim.max.x);\\r\\n Y = Y[concat](dim.min.y, dim.max.y);\\r\\n x = p[5];\\r\\n y = p[6];\\r\\n }\\r\\n }\\r\\n var xmin = mmin[apply](0, X),\\r\\n ymin = mmin[apply](0, Y),\\r\\n xmax = mmax[apply](0, X),\\r\\n ymax = mmax[apply](0, Y),\\r\\n width = xmax - xmin,\\r\\n height = ymax - ymin,\\r\\n bb = {\\r\\n x: xmin,\\r\\n y: ymin,\\r\\n x2: xmax,\\r\\n y2: ymax,\\r\\n width: width,\\r\\n height: height,\\r\\n cx: xmin + width / 2,\\r\\n cy: ymin + height / 2\\r\\n };\\r\\n pth.bbox = clone(bb);\\r\\n return bb;\\r\\n },\\r\\n pathClone = function (pathArray) {\\r\\n var res = clone(pathArray);\\r\\n res.toString = R._path2string;\\r\\n return res;\\r\\n },\\r\\n pathToRelative = R._pathToRelative = function (pathArray) {\\r\\n var pth = paths(pathArray);\\r\\n if (pth.rel) {\\r\\n return pathClone(pth.rel);\\r\\n }\\r\\n if (!R.is(pathArray, array) || !R.is(pathArray && pathArray[0], array)) { // rough assumption\\r\\n pathArray = R.parsePathString(pathArray);\\r\\n }\\r\\n var res = [],\\r\\n x = 0,\\r\\n y = 0,\\r\\n mx = 0,\\r\\n my = 0,\\r\\n start = 0;\\r\\n if (pathArray[0][0] == \\\"M\\\") {\\r\\n x = pathArray[0][1];\\r\\n y = pathArray[0][2];\\r\\n mx = x;\\r\\n my = y;\\r\\n start++;\\r\\n res.push([\\\"M\\\", x, y]);\\r\\n }\\r\\n for (var i = start, ii = pathArray.length; i < ii; i++) {\\r\\n var r = res[i] = [],\\r\\n pa = pathArray[i];\\r\\n if (pa[0] != lowerCase.call(pa[0])) {\\r\\n r[0] = lowerCase.call(pa[0]);\\r\\n switch (r[0]) {\\r\\n case \\\"a\\\":\\r\\n r[1] = pa[1];\\r\\n r[2] = pa[2];\\r\\n r[3] = pa[3];\\r\\n r[4] = pa[4];\\r\\n r[5] = pa[5];\\r\\n r[6] = +(pa[6] - x).toFixed(3);\\r\\n r[7] = +(pa[7] - y).toFixed(3);\\r\\n break;\\r\\n case \\\"v\\\":\\r\\n r[1] = +(pa[1] - y).toFixed(3);\\r\\n break;\\r\\n case \\\"m\\\":\\r\\n mx = pa[1];\\r\\n my = pa[2];\\r\\n default:\\r\\n for (var j = 1, jj = pa.length; j < jj; j++) {\\r\\n r[j] = +(pa[j] - ((j % 2) ? x : y)).toFixed(3);\\r\\n }\\r\\n }\\r\\n } else {\\r\\n r = res[i] = [];\\r\\n if (pa[0] == \\\"m\\\") {\\r\\n mx = pa[1] + x;\\r\\n my = pa[2] + y;\\r\\n }\\r\\n for (var k = 0, kk = pa.length; k < kk; k++) {\\r\\n res[i][k] = pa[k];\\r\\n }\\r\\n }\\r\\n var len = res[i].length;\\r\\n switch (res[i][0]) {\\r\\n case \\\"z\\\":\\r\\n x = mx;\\r\\n y = my;\\r\\n break;\\r\\n case \\\"h\\\":\\r\\n x += +res[i][len - 1];\\r\\n break;\\r\\n case \\\"v\\\":\\r\\n y += +res[i][len - 1];\\r\\n break;\\r\\n default:\\r\\n x += +res[i][len - 2];\\r\\n y += +res[i][len - 1];\\r\\n }\\r\\n }\\r\\n res.toString = R._path2string;\\r\\n pth.rel = pathClone(res);\\r\\n return res;\\r\\n },\\r\\n pathToAbsolute = R._pathToAbsolute = function (pathArray) {\\r\\n var pth = paths(pathArray);\\r\\n if (pth.abs) {\\r\\n return pathClone(pth.abs);\\r\\n }\\r\\n if (!R.is(pathArray, array) || !R.is(pathArray && pathArray[0], array)) { // rough assumption\\r\\n pathArray = R.parsePathString(pathArray);\\r\\n }\\r\\n if (!pathArray || !pathArray.length) {\\r\\n return [[\\\"M\\\", 0, 0]];\\r\\n }\\r\\n var res = [],\\r\\n x = 0,\\r\\n y = 0,\\r\\n mx = 0,\\r\\n my = 0,\\r\\n start = 0;\\r\\n if (pathArray[0][0] == \\\"M\\\") {\\r\\n x = +pathArray[0][1];\\r\\n y = +pathArray[0][2];\\r\\n mx = x;\\r\\n my = y;\\r\\n start++;\\r\\n res[0] = [\\\"M\\\", x, y];\\r\\n }\\r\\n var crz = pathArray.length == 3 && pathArray[0][0] == \\\"M\\\" && pathArray[1][0].toUpperCase() == \\\"R\\\" && pathArray[2][0].toUpperCase() == \\\"Z\\\";\\r\\n for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) {\\r\\n res.push(r = []);\\r\\n pa = pathArray[i];\\r\\n if (pa[0] != upperCase.call(pa[0])) {\\r\\n r[0] = upperCase.call(pa[0]);\\r\\n switch (r[0]) {\\r\\n case \\\"A\\\":\\r\\n r[1] = pa[1];\\r\\n r[2] = pa[2];\\r\\n r[3] = pa[3];\\r\\n r[4] = pa[4];\\r\\n r[5] = pa[5];\\r\\n r[6] = +(pa[6] + x);\\r\\n r[7] = +(pa[7] + y);\\r\\n break;\\r\\n case \\\"V\\\":\\r\\n r[1] = +pa[1] + y;\\r\\n break;\\r\\n case \\\"H\\\":\\r\\n r[1] = +pa[1] + x;\\r\\n break;\\r\\n case \\\"R\\\":\\r\\n var dots = [x, y][concat](pa.slice(1));\\r\\n for (var j = 2, jj = dots.length; j < jj; j++) {\\r\\n dots[j] = +dots[j] + x;\\r\\n dots[++j] = +dots[j] + y;\\r\\n }\\r\\n res.pop();\\r\\n res = res[concat](catmullRom2bezier(dots, crz));\\r\\n break;\\r\\n case \\\"M\\\":\\r\\n mx = +pa[1] + x;\\r\\n my = +pa[2] + y;\\r\\n default:\\r\\n for (j = 1, jj = pa.length; j < jj; j++) {\\r\\n r[j] = +pa[j] + ((j % 2) ? x : y);\\r\\n }\\r\\n }\\r\\n } else if (pa[0] == \\\"R\\\") {\\r\\n dots = [x, y][concat](pa.slice(1));\\r\\n res.pop();\\r\\n res = res[concat](catmullRom2bezier(dots, crz));\\r\\n r = [\\\"R\\\"][concat](pa.slice(-2));\\r\\n } else {\\r\\n for (var k = 0, kk = pa.length; k < kk; k++) {\\r\\n r[k] = pa[k];\\r\\n }\\r\\n }\\r\\n switch (r[0]) {\\r\\n case \\\"Z\\\":\\r\\n x = mx;\\r\\n y = my;\\r\\n break;\\r\\n case \\\"H\\\":\\r\\n x = r[1];\\r\\n break;\\r\\n case \\\"V\\\":\\r\\n y = r[1];\\r\\n break;\\r\\n case \\\"M\\\":\\r\\n mx = r[r.length - 2];\\r\\n my = r[r.length - 1];\\r\\n default:\\r\\n x = r[r.length - 2];\\r\\n y = r[r.length - 1];\\r\\n }\\r\\n }\\r\\n res.toString = R._path2string;\\r\\n pth.abs = pathClone(res);\\r\\n return res;\\r\\n },\\r\\n l2c = function (x1, y1, x2, y2) {\\r\\n return [x1, y1, x2, y2, x2, y2];\\r\\n },\\r\\n q2c = function (x1, y1, ax, ay, x2, y2) {\\r\\n var _13 = 1 / 3,\\r\\n _23 = 2 / 3;\\r\\n return [\\r\\n _13 * x1 + _23 * ax,\\r\\n _13 * y1 + _23 * ay,\\r\\n _13 * x2 + _23 * ax,\\r\\n _13 * y2 + _23 * ay,\\r\\n x2,\\r\\n y2\\r\\n ];\\r\\n },\\r\\n a2c = function (x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {\\r\\n // for more information of where this math came from visit:\\r\\n // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes\\r\\n var _120 = PI * 120 / 180,\\r\\n rad = PI / 180 * (+angle || 0),\\r\\n res = [],\\r\\n xy,\\r\\n rotate = cacher(function (x, y, rad) {\\r\\n var X = x * math.cos(rad) - y * math.sin(rad),\\r\\n Y = x * math.sin(rad) + y * math.cos(rad);\\r\\n return {x: X, y: Y};\\r\\n });\\r\\n if (!recursive) {\\r\\n xy = rotate(x1, y1, -rad);\\r\\n x1 = xy.x;\\r\\n y1 = xy.y;\\r\\n xy = rotate(x2, y2, -rad);\\r\\n x2 = xy.x;\\r\\n y2 = xy.y;\\r\\n var cos = math.cos(PI / 180 * angle),\\r\\n sin = math.sin(PI / 180 * angle),\\r\\n x = (x1 - x2) / 2,\\r\\n y = (y1 - y2) / 2;\\r\\n var h = (x * x) / (rx * rx) + (y * y) / (ry * ry);\\r\\n if (h > 1) {\\r\\n h = math.sqrt(h);\\r\\n rx = h * rx;\\r\\n ry = h * ry;\\r\\n }\\r\\n var rx2 = rx * rx,\\r\\n ry2 = ry * ry,\\r\\n k = (large_arc_flag == sweep_flag ? -1 : 1) *\\r\\n math.sqrt(abs((rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x))),\\r\\n cx = k * rx * y / ry + (x1 + x2) / 2,\\r\\n cy = k * -ry * x / rx + (y1 + y2) / 2,\\r\\n f1 = math.asin(((y1 - cy) / ry).toFixed(9)),\\r\\n f2 = math.asin(((y2 - cy) / ry).toFixed(9));\\r\\n\\r\\n f1 = x1 < cx ? PI - f1 : f1;\\r\\n f2 = x2 < cx ? PI - f2 : f2;\\r\\n f1 < 0 && (f1 = PI * 2 + f1);\\r\\n f2 < 0 && (f2 = PI * 2 + f2);\\r\\n if (sweep_flag && f1 > f2) {\\r\\n f1 = f1 - PI * 2;\\r\\n }\\r\\n if (!sweep_flag && f2 > f1) {\\r\\n f2 = f2 - PI * 2;\\r\\n }\\r\\n } else {\\r\\n f1 = recursive[0];\\r\\n f2 = recursive[1];\\r\\n cx = recursive[2];\\r\\n cy = recursive[3];\\r\\n }\\r\\n var df = f2 - f1;\\r\\n if (abs(df) > _120) {\\r\\n var f2old = f2,\\r\\n x2old = x2,\\r\\n y2old = y2;\\r\\n f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1);\\r\\n x2 = cx + rx * math.cos(f2);\\r\\n y2 = cy + ry * math.sin(f2);\\r\\n res = a2c(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [f2, f2old, cx, cy]);\\r\\n }\\r\\n df = f2 - f1;\\r\\n var c1 = math.cos(f1),\\r\\n s1 = math.sin(f1),\\r\\n c2 = math.cos(f2),\\r\\n s2 = math.sin(f2),\\r\\n t = math.tan(df / 4),\\r\\n hx = 4 / 3 * rx * t,\\r\\n hy = 4 / 3 * ry * t,\\r\\n m1 = [x1, y1],\\r\\n m2 = [x1 + hx * s1, y1 - hy * c1],\\r\\n m3 = [x2 + hx * s2, y2 - hy * c2],\\r\\n m4 = [x2, y2];\\r\\n m2[0] = 2 * m1[0] - m2[0];\\r\\n m2[1] = 2 * m1[1] - m2[1];\\r\\n if (recursive) {\\r\\n return [m2, m3, m4][concat](res);\\r\\n } else {\\r\\n res = [m2, m3, m4][concat](res).join()[split](\\\",\\\");\\r\\n var newres = [];\\r\\n for (var i = 0, ii = res.length; i < ii; i++) {\\r\\n newres[i] = i % 2 ? rotate(res[i - 1], res[i], rad).y : rotate(res[i], res[i + 1], rad).x;\\r\\n }\\r\\n return newres;\\r\\n }\\r\\n },\\r\\n findDotAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {\\r\\n var t1 = 1 - t;\\r\\n return {\\r\\n x: pow(t1, 3) * p1x + pow(t1, 2) * 3 * t * c1x + t1 * 3 * t * t * c2x + pow(t, 3) * p2x,\\r\\n y: pow(t1, 3) * p1y + pow(t1, 2) * 3 * t * c1y + t1 * 3 * t * t * c2y + pow(t, 3) * p2y\\r\\n };\\r\\n },\\r\\n curveDim = cacher(function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {\\r\\n var a = (c2x - 2 * c1x + p1x) - (p2x - 2 * c2x + c1x),\\r\\n b = 2 * (c1x - p1x) - 2 * (c2x - c1x),\\r\\n c = p1x - c1x,\\r\\n t1 = (-b + math.sqrt(b * b - 4 * a * c)) / 2 / a,\\r\\n t2 = (-b - math.sqrt(b * b - 4 * a * c)) / 2 / a,\\r\\n y = [p1y, p2y],\\r\\n x = [p1x, p2x],\\r\\n dot;\\r\\n abs(t1) > \\\"1e12\\\" && (t1 = .5);\\r\\n abs(t2) > \\\"1e12\\\" && (t2 = .5);\\r\\n if (t1 > 0 && t1 < 1) {\\r\\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t1);\\r\\n x.push(dot.x);\\r\\n y.push(dot.y);\\r\\n }\\r\\n if (t2 > 0 && t2 < 1) {\\r\\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t2);\\r\\n x.push(dot.x);\\r\\n y.push(dot.y);\\r\\n }\\r\\n a = (c2y - 2 * c1y + p1y) - (p2y - 2 * c2y + c1y);\\r\\n b = 2 * (c1y - p1y) - 2 * (c2y - c1y);\\r\\n c = p1y - c1y;\\r\\n t1 = (-b + math.sqrt(b * b - 4 * a * c)) / 2 / a;\\r\\n t2 = (-b - math.sqrt(b * b - 4 * a * c)) / 2 / a;\\r\\n abs(t1) > \\\"1e12\\\" && (t1 = .5);\\r\\n abs(t2) > \\\"1e12\\\" && (t2 = .5);\\r\\n if (t1 > 0 && t1 < 1) {\\r\\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t1);\\r\\n x.push(dot.x);\\r\\n y.push(dot.y);\\r\\n }\\r\\n if (t2 > 0 && t2 < 1) {\\r\\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t2);\\r\\n x.push(dot.x);\\r\\n y.push(dot.y);\\r\\n }\\r\\n return {\\r\\n min: {x: mmin[apply](0, x), y: mmin[apply](0, y)},\\r\\n max: {x: mmax[apply](0, x), y: mmax[apply](0, y)}\\r\\n };\\r\\n }),\\r\\n path2curve = R._path2curve = cacher(function (path, path2) {\\r\\n var pth = !path2 && paths(path);\\r\\n if (!path2 && pth.curve) {\\r\\n return pathClone(pth.curve);\\r\\n }\\r\\n var p = pathToAbsolute(path),\\r\\n p2 = path2 && pathToAbsolute(path2),\\r\\n attrs = {x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null},\\r\\n attrs2 = {x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null},\\r\\n processPath = function (path, d, pcom) {\\r\\n var nx, ny, tq = {T:1, Q:1};\\r\\n if (!path) {\\r\\n return [\\\"C\\\", d.x, d.y, d.x, d.y, d.x, d.y];\\r\\n }\\r\\n !(path[0] in tq) && (d.qx = d.qy = null);\\r\\n switch (path[0]) {\\r\\n case \\\"M\\\":\\r\\n d.X = path[1];\\r\\n d.Y = path[2];\\r\\n break;\\r\\n case \\\"A\\\":\\r\\n path = [\\\"C\\\"][concat](a2c[apply](0, [d.x, d.y][concat](path.slice(1))));\\r\\n break;\\r\\n case \\\"S\\\":\\r\\n if (pcom == \\\"C\\\" || pcom == \\\"S\\\") { // In \\\"S\\\" case we have to take into account, if the previous command is C/S.\\r\\n nx = d.x * 2 - d.bx; // And reflect the previous\\r\\n ny = d.y * 2 - d.by; // command's control point relative to the current point.\\r\\n }\\r\\n else { // or some else or nothing\\r\\n nx = d.x;\\r\\n ny = d.y;\\r\\n }\\r\\n path = [\\\"C\\\", nx, ny][concat](path.slice(1));\\r\\n break;\\r\\n case \\\"T\\\":\\r\\n if (pcom == \\\"Q\\\" || pcom == \\\"T\\\") { // In \\\"T\\\" case we have to take into account, if the previous command is Q/T.\\r\\n d.qx = d.x * 2 - d.qx; // And make a reflection similar\\r\\n d.qy = d.y * 2 - d.qy; // to case \\\"S\\\".\\r\\n }\\r\\n else { // or something else or nothing\\r\\n d.qx = d.x;\\r\\n d.qy = d.y;\\r\\n }\\r\\n path = [\\\"C\\\"][concat](q2c(d.x, d.y, d.qx, d.qy, path[1], path[2]));\\r\\n break;\\r\\n case \\\"Q\\\":\\r\\n d.qx = path[1];\\r\\n d.qy = path[2];\\r\\n path = [\\\"C\\\"][concat](q2c(d.x, d.y, path[1], path[2], path[3], path[4]));\\r\\n break;\\r\\n case \\\"L\\\":\\r\\n path = [\\\"C\\\"][concat](l2c(d.x, d.y, path[1], path[2]));\\r\\n break;\\r\\n case \\\"H\\\":\\r\\n path = [\\\"C\\\"][concat](l2c(d.x, d.y, path[1], d.y));\\r\\n break;\\r\\n case \\\"V\\\":\\r\\n path = [\\\"C\\\"][concat](l2c(d.x, d.y, d.x, path[1]));\\r\\n break;\\r\\n case \\\"Z\\\":\\r\\n path = [\\\"C\\\"][concat](l2c(d.x, d.y, d.X, d.Y));\\r\\n break;\\r\\n }\\r\\n return path;\\r\\n },\\r\\n fixArc = function (pp, i) {\\r\\n if (pp[i].length > 7) {\\r\\n pp[i].shift();\\r\\n var pi = pp[i];\\r\\n while (pi.length) {\\r\\n pcoms1[i]=\\\"A\\\"; // if created multiple C:s, their original seg is saved\\r\\n p2 && (pcoms2[i]=\\\"A\\\"); // the same as above\\r\\n pp.splice(i++, 0, [\\\"C\\\"][concat](pi.splice(0, 6)));\\r\\n }\\r\\n pp.splice(i, 1);\\r\\n ii = mmax(p.length, p2 && p2.length || 0);\\r\\n }\\r\\n },\\r\\n fixM = function (path1, path2, a1, a2, i) {\\r\\n if (path1 && path2 && path1[i][0] == \\\"M\\\" && path2[i][0] != \\\"M\\\") {\\r\\n path2.splice(i, 0, [\\\"M\\\", a2.x, a2.y]);\\r\\n a1.bx = 0;\\r\\n a1.by = 0;\\r\\n a1.x = path1[i][1];\\r\\n a1.y = path1[i][2];\\r\\n ii = mmax(p.length, p2 && p2.length || 0);\\r\\n }\\r\\n },\\r\\n pcoms1 = [], // path commands of original path p\\r\\n pcoms2 = [], // path commands of original path p2\\r\\n pfirst = \\\"\\\", // temporary holder for original path command\\r\\n pcom = \\\"\\\"; // holder for previous path command of original path\\r\\n for (var i = 0, ii = mmax(p.length, p2 && p2.length || 0); i < ii; i++) {\\r\\n p[i] && (pfirst = p[i][0]); // save current path command\\r\\n\\r\\n if (pfirst != \\\"C\\\") // C is not saved yet, because it may be result of conversion\\r\\n {\\r\\n pcoms1[i] = pfirst; // Save current path command\\r\\n i && ( pcom = pcoms1[i-1]); // Get previous path command pcom\\r\\n }\\r\\n p[i] = processPath(p[i], attrs, pcom); // Previous path command is inputted to processPath\\r\\n\\r\\n if (pcoms1[i] != \\\"A\\\" && pfirst == \\\"C\\\") pcoms1[i] = \\\"C\\\"; // A is the only command\\r\\n // which may produce multiple C:s\\r\\n // so we have to make sure that C is also C in original path\\r\\n\\r\\n fixArc(p, i); // fixArc adds also the right amount of A:s to pcoms1\\r\\n\\r\\n if (p2) { // the same procedures is done to p2\\r\\n p2[i] && (pfirst = p2[i][0]);\\r\\n if (pfirst != \\\"C\\\")\\r\\n {\\r\\n pcoms2[i] = pfirst;\\r\\n i && (pcom = pcoms2[i-1]);\\r\\n }\\r\\n p2[i] = processPath(p2[i], attrs2, pcom);\\r\\n\\r\\n if (pcoms2[i]!=\\\"A\\\" && pfirst==\\\"C\\\") pcoms2[i]=\\\"C\\\";\\r\\n\\r\\n fixArc(p2, i);\\r\\n }\\r\\n fixM(p, p2, attrs, attrs2, i);\\r\\n fixM(p2, p, attrs2, attrs, i);\\r\\n var seg = p[i],\\r\\n seg2 = p2 && p2[i],\\r\\n seglen = seg.length,\\r\\n seg2len = p2 && seg2.length;\\r\\n attrs.x = seg[seglen - 2];\\r\\n attrs.y = seg[seglen - 1];\\r\\n attrs.bx = toFloat(seg[seglen - 4]) || attrs.x;\\r\\n attrs.by = toFloat(seg[seglen - 3]) || attrs.y;\\r\\n attrs2.bx = p2 && (toFloat(seg2[seg2len - 4]) || attrs2.x);\\r\\n attrs2.by = p2 && (toFloat(seg2[seg2len - 3]) || attrs2.y);\\r\\n attrs2.x = p2 && seg2[seg2len - 2];\\r\\n attrs2.y = p2 && seg2[seg2len - 1];\\r\\n }\\r\\n if (!p2) {\\r\\n pth.curve = pathClone(p);\\r\\n }\\r\\n return p2 ? [p, p2] : p;\\r\\n }, null, pathClone),\\r\\n parseDots = R._parseDots = cacher(function (gradient) {\\r\\n var dots = [];\\r\\n for (var i = 0, ii = gradient.length; i < ii; i++) {\\r\\n var dot = {},\\r\\n par = gradient[i].match(/^([^:]*):?([\\\\d\\\\.]*)/);\\r\\n dot.color = R.getRGB(par[1]);\\r\\n if (dot.color.error) {\\r\\n return null;\\r\\n }\\r\\n dot.opacity = dot.color.opacity;\\r\\n dot.color = dot.color.hex;\\r\\n par[2] && (dot.offset = par[2] + \\\"%\\\");\\r\\n dots.push(dot);\\r\\n }\\r\\n for (i = 1, ii = dots.length - 1; i < ii; i++) {\\r\\n if (!dots[i].offset) {\\r\\n var start = toFloat(dots[i - 1].offset || 0),\\r\\n end = 0;\\r\\n for (var j = i + 1; j < ii; j++) {\\r\\n if (dots[j].offset) {\\r\\n end = dots[j].offset;\\r\\n break;\\r\\n }\\r\\n }\\r\\n if (!end) {\\r\\n end = 100;\\r\\n j = ii;\\r\\n }\\r\\n end = toFloat(end);\\r\\n var d = (end - start) / (j - i + 1);\\r\\n for (; i < j; i++) {\\r\\n start += d;\\r\\n dots[i].offset = start + \\\"%\\\";\\r\\n }\\r\\n }\\r\\n }\\r\\n return dots;\\r\\n }),\\r\\n tear = R._tear = function (el, paper) {\\r\\n el == paper.top && (paper.top = el.prev);\\r\\n el == paper.bottom && (paper.bottom = el.next);\\r\\n el.next && (el.next.prev = el.prev);\\r\\n el.prev && (el.prev.next = el.next);\\r\\n },\\r\\n tofront = R._tofront = function (el, paper) {\\r\\n if (paper.top === el) {\\r\\n return;\\r\\n }\\r\\n tear(el, paper);\\r\\n el.next = null;\\r\\n el.prev = paper.top;\\r\\n paper.top.next = el;\\r\\n paper.top = el;\\r\\n },\\r\\n toback = R._toback = function (el, paper) {\\r\\n if (paper.bottom === el) {\\r\\n return;\\r\\n }\\r\\n tear(el, paper);\\r\\n el.next = paper.bottom;\\r\\n el.prev = null;\\r\\n paper.bottom.prev = el;\\r\\n paper.bottom = el;\\r\\n },\\r\\n insertafter = R._insertafter = function (el, el2, paper) {\\r\\n tear(el, paper);\\r\\n el2 == paper.top && (paper.top = el);\\r\\n el2.next && (el2.next.prev = el);\\r\\n el.next = el2.next;\\r\\n el.prev = el2;\\r\\n el2.next = el;\\r\\n },\\r\\n insertbefore = R._insertbefore = function (el, el2, paper) {\\r\\n tear(el, paper);\\r\\n el2 == paper.bottom && (paper.bottom = el);\\r\\n el2.prev && (el2.prev.next = el);\\r\\n el.prev = el2.prev;\\r\\n el2.prev = el;\\r\\n el.next = el2;\\r\\n },\\r\\n /*\\\\\\r\\n * Raphael.toMatrix\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Returns matrix of transformations applied to a given path\\r\\n > Parameters\\r\\n - path (string) path string\\r\\n - transform (string|array) transformation string\\r\\n = (object) @Matrix\\r\\n \\\\*/\\r\\n toMatrix = R.toMatrix = function (path, transform) {\\r\\n var bb = pathDimensions(path),\\r\\n el = {\\r\\n _: {\\r\\n transform: E\\r\\n },\\r\\n getBBox: function () {\\r\\n return bb;\\r\\n }\\r\\n };\\r\\n extractTransform(el, transform);\\r\\n return el.matrix;\\r\\n },\\r\\n /*\\\\\\r\\n * Raphael.transformPath\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Returns path transformed by a given transformation\\r\\n > Parameters\\r\\n - path (string) path string\\r\\n - transform (string|array) transformation string\\r\\n = (string) path\\r\\n \\\\*/\\r\\n transformPath = R.transformPath = function (path, transform) {\\r\\n return mapPath(path, toMatrix(path, transform));\\r\\n },\\r\\n extractTransform = R._extractTransform = function (el, tstr) {\\r\\n if (tstr == null) {\\r\\n return el._.transform;\\r\\n }\\r\\n tstr = Str(tstr).replace(/\\\\.{3}|\\\\u2026/g, el._.transform || E);\\r\\n var tdata = R.parseTransformString(tstr),\\r\\n deg = 0,\\r\\n dx = 0,\\r\\n dy = 0,\\r\\n sx = 1,\\r\\n sy = 1,\\r\\n _ = el._,\\r\\n m = new Matrix;\\r\\n _.transform = tdata || [];\\r\\n if (tdata) {\\r\\n for (var i = 0, ii = tdata.length; i < ii; i++) {\\r\\n var t = tdata[i],\\r\\n tlen = t.length,\\r\\n command = Str(t[0]).toLowerCase(),\\r\\n absolute = t[0] != command,\\r\\n inver = absolute ? m.invert() : 0,\\r\\n x1,\\r\\n y1,\\r\\n x2,\\r\\n y2,\\r\\n bb;\\r\\n if (command == \\\"t\\\" && tlen == 3) {\\r\\n if (absolute) {\\r\\n x1 = inver.x(0, 0);\\r\\n y1 = inver.y(0, 0);\\r\\n x2 = inver.x(t[1], t[2]);\\r\\n y2 = inver.y(t[1], t[2]);\\r\\n m.translate(x2 - x1, y2 - y1);\\r\\n } else {\\r\\n m.translate(t[1], t[2]);\\r\\n }\\r\\n } else if (command == \\\"r\\\") {\\r\\n if (tlen == 2) {\\r\\n bb = bb || el.getBBox(1);\\r\\n m.rotate(t[1], bb.x + bb.width / 2, bb.y + bb.height / 2);\\r\\n deg += t[1];\\r\\n } else if (tlen == 4) {\\r\\n if (absolute) {\\r\\n x2 = inver.x(t[2], t[3]);\\r\\n y2 = inver.y(t[2], t[3]);\\r\\n m.rotate(t[1], x2, y2);\\r\\n } else {\\r\\n m.rotate(t[1], t[2], t[3]);\\r\\n }\\r\\n deg += t[1];\\r\\n }\\r\\n } else if (command == \\\"s\\\") {\\r\\n if (tlen == 2 || tlen == 3) {\\r\\n bb = bb || el.getBBox(1);\\r\\n m.scale(t[1], t[tlen - 1], bb.x + bb.width / 2, bb.y + bb.height / 2);\\r\\n sx *= t[1];\\r\\n sy *= t[tlen - 1];\\r\\n } else if (tlen == 5) {\\r\\n if (absolute) {\\r\\n x2 = inver.x(t[3], t[4]);\\r\\n y2 = inver.y(t[3], t[4]);\\r\\n m.scale(t[1], t[2], x2, y2);\\r\\n } else {\\r\\n m.scale(t[1], t[2], t[3], t[4]);\\r\\n }\\r\\n sx *= t[1];\\r\\n sy *= t[2];\\r\\n }\\r\\n } else if (command == \\\"m\\\" && tlen == 7) {\\r\\n m.add(t[1], t[2], t[3], t[4], t[5], t[6]);\\r\\n }\\r\\n _.dirtyT = 1;\\r\\n el.matrix = m;\\r\\n }\\r\\n }\\r\\n\\r\\n /*\\\\\\r\\n * Element.matrix\\r\\n [ property (object) ]\\r\\n **\\r\\n * Keeps @Matrix object, which represents element transformation\\r\\n \\\\*/\\r\\n el.matrix = m;\\r\\n\\r\\n _.sx = sx;\\r\\n _.sy = sy;\\r\\n _.deg = deg;\\r\\n _.dx = dx = m.e;\\r\\n _.dy = dy = m.f;\\r\\n\\r\\n if (sx == 1 && sy == 1 && !deg && _.bbox) {\\r\\n _.bbox.x += +dx;\\r\\n _.bbox.y += +dy;\\r\\n } else {\\r\\n _.dirtyT = 1;\\r\\n }\\r\\n },\\r\\n getEmpty = function (item) {\\r\\n var l = item[0];\\r\\n switch (l.toLowerCase()) {\\r\\n case \\\"t\\\": return [l, 0, 0];\\r\\n case \\\"m\\\": return [l, 1, 0, 0, 1, 0, 0];\\r\\n case \\\"r\\\": if (item.length == 4) {\\r\\n return [l, 0, item[2], item[3]];\\r\\n } else {\\r\\n return [l, 0];\\r\\n }\\r\\n case \\\"s\\\": if (item.length == 5) {\\r\\n return [l, 1, 1, item[3], item[4]];\\r\\n } else if (item.length == 3) {\\r\\n return [l, 1, 1];\\r\\n } else {\\r\\n return [l, 1];\\r\\n }\\r\\n }\\r\\n },\\r\\n equaliseTransform = R._equaliseTransform = function (t1, t2) {\\r\\n t2 = Str(t2).replace(/\\\\.{3}|\\\\u2026/g, t1);\\r\\n t1 = R.parseTransformString(t1) || [];\\r\\n t2 = R.parseTransformString(t2) || [];\\r\\n var maxlength = mmax(t1.length, t2.length),\\r\\n from = [],\\r\\n to = [],\\r\\n i = 0, j, jj,\\r\\n tt1, tt2;\\r\\n for (; i < maxlength; i++) {\\r\\n tt1 = t1[i] || getEmpty(t2[i]);\\r\\n tt2 = t2[i] || getEmpty(tt1);\\r\\n if ((tt1[0] != tt2[0]) ||\\r\\n (tt1[0].toLowerCase() == \\\"r\\\" && (tt1[2] != tt2[2] || tt1[3] != tt2[3])) ||\\r\\n (tt1[0].toLowerCase() == \\\"s\\\" && (tt1[3] != tt2[3] || tt1[4] != tt2[4]))\\r\\n ) {\\r\\n return;\\r\\n }\\r\\n from[i] = [];\\r\\n to[i] = [];\\r\\n for (j = 0, jj = mmax(tt1.length, tt2.length); j < jj; j++) {\\r\\n j in tt1 && (from[i][j] = tt1[j]);\\r\\n j in tt2 && (to[i][j] = tt2[j]);\\r\\n }\\r\\n }\\r\\n return {\\r\\n from: from,\\r\\n to: to\\r\\n };\\r\\n };\\r\\n R._getContainer = function (x, y, w, h) {\\r\\n var container;\\r\\n container = h == null && !R.is(x, \\\"object\\\") ? g.doc.getElementById(x) : x;\\r\\n if (container == null) {\\r\\n return;\\r\\n }\\r\\n if (container.tagName) {\\r\\n if (y == null) {\\r\\n return {\\r\\n container: container,\\r\\n width: container.style.pixelWidth || container.offsetWidth,\\r\\n height: container.style.pixelHeight || container.offsetHeight\\r\\n };\\r\\n } else {\\r\\n return {\\r\\n container: container,\\r\\n width: y,\\r\\n height: w\\r\\n };\\r\\n }\\r\\n }\\r\\n return {\\r\\n container: 1,\\r\\n x: x,\\r\\n y: y,\\r\\n width: w,\\r\\n height: h\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.pathToRelative\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Converts path to relative form\\r\\n > Parameters\\r\\n - pathString (string|array) path string or array of segments\\r\\n = (array) array of segments.\\r\\n \\\\*/\\r\\n R.pathToRelative = pathToRelative;\\r\\n R._engine = {};\\r\\n /*\\\\\\r\\n * Raphael.path2curve\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Converts path to a new path where all segments are cubic bezier curves.\\r\\n > Parameters\\r\\n - pathString (string|array) path string or array of segments\\r\\n = (array) array of segments.\\r\\n \\\\*/\\r\\n R.path2curve = path2curve;\\r\\n /*\\\\\\r\\n * Raphael.matrix\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Returns matrix based on given parameters.\\r\\n > Parameters\\r\\n - a (number)\\r\\n - b (number)\\r\\n - c (number)\\r\\n - d (number)\\r\\n - e (number)\\r\\n - f (number)\\r\\n = (object) @Matrix\\r\\n \\\\*/\\r\\n R.matrix = function (a, b, c, d, e, f) {\\r\\n return new Matrix(a, b, c, d, e, f);\\r\\n };\\r\\n function Matrix(a, b, c, d, e, f) {\\r\\n if (a != null) {\\r\\n this.a = +a;\\r\\n this.b = +b;\\r\\n this.c = +c;\\r\\n this.d = +d;\\r\\n this.e = +e;\\r\\n this.f = +f;\\r\\n } else {\\r\\n this.a = 1;\\r\\n this.b = 0;\\r\\n this.c = 0;\\r\\n this.d = 1;\\r\\n this.e = 0;\\r\\n this.f = 0;\\r\\n }\\r\\n }\\r\\n (function (matrixproto) {\\r\\n /*\\\\\\r\\n * Matrix.add\\r\\n [ method ]\\r\\n **\\r\\n * Adds given matrix to existing one.\\r\\n > Parameters\\r\\n - a (number)\\r\\n - b (number)\\r\\n - c (number)\\r\\n - d (number)\\r\\n - e (number)\\r\\n - f (number)\\r\\n or\\r\\n - matrix (object) @Matrix\\r\\n \\\\*/\\r\\n matrixproto.add = function (a, b, c, d, e, f) {\\r\\n var out = [[], [], []],\\r\\n m = [[this.a, this.c, this.e], [this.b, this.d, this.f], [0, 0, 1]],\\r\\n matrix = [[a, c, e], [b, d, f], [0, 0, 1]],\\r\\n x, y, z, res;\\r\\n\\r\\n if (a && a instanceof Matrix) {\\r\\n matrix = [[a.a, a.c, a.e], [a.b, a.d, a.f], [0, 0, 1]];\\r\\n }\\r\\n\\r\\n for (x = 0; x < 3; x++) {\\r\\n for (y = 0; y < 3; y++) {\\r\\n res = 0;\\r\\n for (z = 0; z < 3; z++) {\\r\\n res += m[x][z] * matrix[z][y];\\r\\n }\\r\\n out[x][y] = res;\\r\\n }\\r\\n }\\r\\n this.a = out[0][0];\\r\\n this.b = out[1][0];\\r\\n this.c = out[0][1];\\r\\n this.d = out[1][1];\\r\\n this.e = out[0][2];\\r\\n this.f = out[1][2];\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.invert\\r\\n [ method ]\\r\\n **\\r\\n * Returns inverted version of the matrix\\r\\n = (object) @Matrix\\r\\n \\\\*/\\r\\n matrixproto.invert = function () {\\r\\n var me = this,\\r\\n x = me.a * me.d - me.b * me.c;\\r\\n return new Matrix(me.d / x, -me.b / x, -me.c / x, me.a / x, (me.c * me.f - me.d * me.e) / x, (me.b * me.e - me.a * me.f) / x);\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.clone\\r\\n [ method ]\\r\\n **\\r\\n * Returns copy of the matrix\\r\\n = (object) @Matrix\\r\\n \\\\*/\\r\\n matrixproto.clone = function () {\\r\\n return new Matrix(this.a, this.b, this.c, this.d, this.e, this.f);\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.translate\\r\\n [ method ]\\r\\n **\\r\\n * Translate the matrix\\r\\n > Parameters\\r\\n - x (number)\\r\\n - y (number)\\r\\n \\\\*/\\r\\n matrixproto.translate = function (x, y) {\\r\\n this.add(1, 0, 0, 1, x, y);\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.scale\\r\\n [ method ]\\r\\n **\\r\\n * Scales the matrix\\r\\n > Parameters\\r\\n - x (number)\\r\\n - y (number) #optional\\r\\n - cx (number) #optional\\r\\n - cy (number) #optional\\r\\n \\\\*/\\r\\n matrixproto.scale = function (x, y, cx, cy) {\\r\\n y == null && (y = x);\\r\\n (cx || cy) && this.add(1, 0, 0, 1, cx, cy);\\r\\n this.add(x, 0, 0, y, 0, 0);\\r\\n (cx || cy) && this.add(1, 0, 0, 1, -cx, -cy);\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.rotate\\r\\n [ method ]\\r\\n **\\r\\n * Rotates the matrix\\r\\n > Parameters\\r\\n - a (number)\\r\\n - x (number)\\r\\n - y (number)\\r\\n \\\\*/\\r\\n matrixproto.rotate = function (a, x, y) {\\r\\n a = R.rad(a);\\r\\n x = x || 0;\\r\\n y = y || 0;\\r\\n var cos = +math.cos(a).toFixed(9),\\r\\n sin = +math.sin(a).toFixed(9);\\r\\n this.add(cos, sin, -sin, cos, x, y);\\r\\n this.add(1, 0, 0, 1, -x, -y);\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.x\\r\\n [ method ]\\r\\n **\\r\\n * Return x coordinate for given point after transformation described by the matrix. See also @Matrix.y\\r\\n > Parameters\\r\\n - x (number)\\r\\n - y (number)\\r\\n = (number) x\\r\\n \\\\*/\\r\\n matrixproto.x = function (x, y) {\\r\\n return x * this.a + y * this.c + this.e;\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.y\\r\\n [ method ]\\r\\n **\\r\\n * Return y coordinate for given point after transformation described by the matrix. See also @Matrix.x\\r\\n > Parameters\\r\\n - x (number)\\r\\n - y (number)\\r\\n = (number) y\\r\\n \\\\*/\\r\\n matrixproto.y = function (x, y) {\\r\\n return x * this.b + y * this.d + this.f;\\r\\n };\\r\\n matrixproto.get = function (i) {\\r\\n return +this[Str.fromCharCode(97 + i)].toFixed(4);\\r\\n };\\r\\n matrixproto.toString = function () {\\r\\n return R.svg ?\\r\\n \\\"matrix(\\\" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)].join() + \\\")\\\" :\\r\\n [this.get(0), this.get(2), this.get(1), this.get(3), 0, 0].join();\\r\\n };\\r\\n matrixproto.toFilter = function () {\\r\\n return \\\"progid:DXImageTransform.Microsoft.Matrix(M11=\\\" + this.get(0) +\\r\\n \\\", M12=\\\" + this.get(2) + \\\", M21=\\\" + this.get(1) + \\\", M22=\\\" + this.get(3) +\\r\\n \\\", Dx=\\\" + this.get(4) + \\\", Dy=\\\" + this.get(5) + \\\", sizingmethod='auto expand')\\\";\\r\\n };\\r\\n matrixproto.offset = function () {\\r\\n return [this.e.toFixed(4), this.f.toFixed(4)];\\r\\n };\\r\\n function norm(a) {\\r\\n return a[0] * a[0] + a[1] * a[1];\\r\\n }\\r\\n function normalize(a) {\\r\\n var mag = math.sqrt(norm(a));\\r\\n a[0] && (a[0] /= mag);\\r\\n a[1] && (a[1] /= mag);\\r\\n }\\r\\n /*\\\\\\r\\n * Matrix.split\\r\\n [ method ]\\r\\n **\\r\\n * Splits matrix into primitive transformations\\r\\n = (object) in format:\\r\\n o dx (number) translation by x\\r\\n o dy (number) translation by y\\r\\n o scalex (number) scale by x\\r\\n o scaley (number) scale by y\\r\\n o shear (number) shear\\r\\n o rotate (number) rotation in deg\\r\\n o isSimple (boolean) could it be represented via simple transformations\\r\\n \\\\*/\\r\\n matrixproto.split = function () {\\r\\n var out = {};\\r\\n // translation\\r\\n out.dx = this.e;\\r\\n out.dy = this.f;\\r\\n\\r\\n // scale and shear\\r\\n var row = [[this.a, this.c], [this.b, this.d]];\\r\\n out.scalex = math.sqrt(norm(row[0]));\\r\\n normalize(row[0]);\\r\\n\\r\\n out.shear = row[0][0] * row[1][0] + row[0][1] * row[1][1];\\r\\n row[1] = [row[1][0] - row[0][0] * out.shear, row[1][1] - row[0][1] * out.shear];\\r\\n\\r\\n out.scaley = math.sqrt(norm(row[1]));\\r\\n normalize(row[1]);\\r\\n out.shear /= out.scaley;\\r\\n\\r\\n // rotation\\r\\n var sin = -row[0][1],\\r\\n cos = row[1][1];\\r\\n if (cos < 0) {\\r\\n out.rotate = R.deg(math.acos(cos));\\r\\n if (sin < 0) {\\r\\n out.rotate = 360 - out.rotate;\\r\\n }\\r\\n } else {\\r\\n out.rotate = R.deg(math.asin(sin));\\r\\n }\\r\\n\\r\\n out.isSimple = !+out.shear.toFixed(9) && (out.scalex.toFixed(9) == out.scaley.toFixed(9) || !out.rotate);\\r\\n out.isSuperSimple = !+out.shear.toFixed(9) && out.scalex.toFixed(9) == out.scaley.toFixed(9) && !out.rotate;\\r\\n out.noRotation = !+out.shear.toFixed(9) && !out.rotate;\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.toTransformString\\r\\n [ method ]\\r\\n **\\r\\n * Return transform string that represents given matrix\\r\\n = (string) transform string\\r\\n \\\\*/\\r\\n matrixproto.toTransformString = function (shorter) {\\r\\n var s = shorter || this[split]();\\r\\n if (s.isSimple) {\\r\\n s.scalex = +s.scalex.toFixed(4);\\r\\n s.scaley = +s.scaley.toFixed(4);\\r\\n s.rotate = +s.rotate.toFixed(4);\\r\\n return (s.dx || s.dy ? \\\"t\\\" + [s.dx, s.dy] : E) +\\r\\n (s.scalex != 1 || s.scaley != 1 ? \\\"s\\\" + [s.scalex, s.scaley, 0, 0] : E) +\\r\\n (s.rotate ? \\\"r\\\" + [s.rotate, 0, 0] : E);\\r\\n } else {\\r\\n return \\\"m\\\" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)];\\r\\n }\\r\\n };\\r\\n })(Matrix.prototype);\\r\\n\\r\\n var preventDefault = function () {\\r\\n this.returnValue = false;\\r\\n },\\r\\n preventTouch = function () {\\r\\n return this.originalEvent.preventDefault();\\r\\n },\\r\\n stopPropagation = function () {\\r\\n this.cancelBubble = true;\\r\\n },\\r\\n stopTouch = function () {\\r\\n return this.originalEvent.stopPropagation();\\r\\n },\\r\\n getEventPosition = function (e) {\\r\\n var scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\\r\\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft;\\r\\n\\r\\n return {\\r\\n x: e.clientX + scrollX,\\r\\n y: e.clientY + scrollY\\r\\n };\\r\\n },\\r\\n addEvent = (function () {\\r\\n if (g.doc.addEventListener) {\\r\\n return function (obj, type, fn, element) {\\r\\n var f = function (e) {\\r\\n var pos = getEventPosition(e);\\r\\n return fn.call(element, e, pos.x, pos.y);\\r\\n };\\r\\n obj.addEventListener(type, f, false);\\r\\n\\r\\n if (supportsTouch && touchMap[type]) {\\r\\n var _f = function (e) {\\r\\n var pos = getEventPosition(e),\\r\\n olde = e;\\r\\n\\r\\n for (var i = 0, ii = e.targetTouches && e.targetTouches.length; i < ii; i++) {\\r\\n if (e.targetTouches[i].target == obj) {\\r\\n e = e.targetTouches[i];\\r\\n e.originalEvent = olde;\\r\\n e.preventDefault = preventTouch;\\r\\n e.stopPropagation = stopTouch;\\r\\n break;\\r\\n }\\r\\n }\\r\\n\\r\\n return fn.call(element, e, pos.x, pos.y);\\r\\n };\\r\\n obj.addEventListener(touchMap[type], _f, false);\\r\\n }\\r\\n\\r\\n return function () {\\r\\n obj.removeEventListener(type, f, false);\\r\\n\\r\\n if (supportsTouch && touchMap[type])\\r\\n obj.removeEventListener(touchMap[type], _f, false);\\r\\n\\r\\n return true;\\r\\n };\\r\\n };\\r\\n } else if (g.doc.attachEvent) {\\r\\n return function (obj, type, fn, element) {\\r\\n var f = function (e) {\\r\\n e = e || g.win.event;\\r\\n var scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\\r\\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft,\\r\\n x = e.clientX + scrollX,\\r\\n y = e.clientY + scrollY;\\r\\n e.preventDefault = e.preventDefault || preventDefault;\\r\\n e.stopPropagation = e.stopPropagation || stopPropagation;\\r\\n return fn.call(element, e, x, y);\\r\\n };\\r\\n obj.attachEvent(\\\"on\\\" + type, f);\\r\\n var detacher = function () {\\r\\n obj.detachEvent(\\\"on\\\" + type, f);\\r\\n return true;\\r\\n };\\r\\n return detacher;\\r\\n };\\r\\n }\\r\\n })(),\\r\\n drag = [],\\r\\n dragMove = function (e) {\\r\\n var x = e.clientX,\\r\\n y = e.clientY,\\r\\n scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\\r\\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft,\\r\\n dragi,\\r\\n j = drag.length;\\r\\n while (j--) {\\r\\n dragi = drag[j];\\r\\n if (supportsTouch && e.touches) {\\r\\n var i = e.touches.length,\\r\\n touch;\\r\\n while (i--) {\\r\\n touch = e.touches[i];\\r\\n if (touch.identifier == dragi.el._drag.id) {\\r\\n x = touch.clientX;\\r\\n y = touch.clientY;\\r\\n (e.originalEvent ? e.originalEvent : e).preventDefault();\\r\\n break;\\r\\n }\\r\\n }\\r\\n } else {\\r\\n e.preventDefault();\\r\\n }\\r\\n var node = dragi.el.node,\\r\\n o,\\r\\n next = node.nextSibling,\\r\\n parent = node.parentNode,\\r\\n display = node.style.display;\\r\\n g.win.opera && parent.removeChild(node);\\r\\n node.style.display = \\\"none\\\";\\r\\n o = dragi.el.paper.getElementByPoint(x, y);\\r\\n node.style.display = display;\\r\\n g.win.opera && (next ? parent.insertBefore(node, next) : parent.appendChild(node));\\r\\n o && eve(\\\"raphael.drag.over.\\\" + dragi.el.id, dragi.el, o);\\r\\n x += scrollX;\\r\\n y += scrollY;\\r\\n eve(\\\"raphael.drag.move.\\\" + dragi.el.id, dragi.move_scope || dragi.el, x - dragi.el._drag.x, y - dragi.el._drag.y, x, y, e);\\r\\n }\\r\\n },\\r\\n dragUp = function (e) {\\r\\n R.unmousemove(dragMove).unmouseup(dragUp);\\r\\n var i = drag.length,\\r\\n dragi;\\r\\n while (i--) {\\r\\n dragi = drag[i];\\r\\n dragi.el._drag = {};\\r\\n eve(\\\"raphael.drag.end.\\\" + dragi.el.id, dragi.end_scope || dragi.start_scope || dragi.move_scope || dragi.el, e);\\r\\n }\\r\\n drag = [];\\r\\n },\\r\\n /*\\\\\\r\\n * Raphael.el\\r\\n [ property (object) ]\\r\\n **\\r\\n * You can add your own method to elements. This is usefull when you want to hack default functionality or\\r\\n * want to wrap some common transformation or attributes in one method. In difference to canvas methods,\\r\\n * you can redefine element method at any time. Expending element methods wouldn’t affect set.\\r\\n > Usage\\r\\n | Raphael.el.red = function () {\\r\\n | this.attr({fill: \\\"#f00\\\"});\\r\\n | };\\r\\n | // then use it\\r\\n | paper.circle(100, 100, 20).red();\\r\\n \\\\*/\\r\\n elproto = R.el = {};\\r\\n /*\\\\\\r\\n * Element.click\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for click for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.unclick\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for click for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.dblclick\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for double click for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.undblclick\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for double click for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.mousedown\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for mousedown for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.unmousedown\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for mousedown for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.mousemove\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for mousemove for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.unmousemove\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for mousemove for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.mouseout\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for mouseout for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.unmouseout\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for mouseout for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.mouseover\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for mouseover for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.unmouseover\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for mouseover for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.mouseup\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for mouseup for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.unmouseup\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for mouseup for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.touchstart\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for touchstart for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.untouchstart\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for touchstart for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.touchmove\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for touchmove for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.untouchmove\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for touchmove for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.touchend\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for touchend for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.untouchend\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for touchend for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.touchcancel\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for touchcancel for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.untouchcancel\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for touchcancel for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n for (var i = events.length; i--;) {\\r\\n (function (eventName) {\\r\\n R[eventName] = elproto[eventName] = function (fn, scope) {\\r\\n if (R.is(fn, \\\"function\\\")) {\\r\\n this.events = this.events || [];\\r\\n this.events.push({name: eventName, f: fn, unbind: addEvent(this.shape || this.node || g.doc, eventName, fn, scope || this)});\\r\\n }\\r\\n return this;\\r\\n };\\r\\n R[\\\"un\\\" + eventName] = elproto[\\\"un\\\" + eventName] = function (fn) {\\r\\n var events = this.events || [],\\r\\n l = events.length;\\r\\n while (l--){\\r\\n if (events[l].name == eventName && (R.is(fn, \\\"undefined\\\") || events[l].f == fn)) {\\r\\n events[l].unbind();\\r\\n events.splice(l, 1);\\r\\n !events.length && delete this.events;\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n })(events[i]);\\r\\n }\\r\\n\\r\\n /*\\\\\\r\\n * Element.data\\r\\n [ method ]\\r\\n **\\r\\n * Adds or retrieves given value asociated with given key.\\r\\n **\\r\\n * See also @Element.removeData\\r\\n > Parameters\\r\\n - key (string) key to store data\\r\\n - value (any) #optional value to store\\r\\n = (object) @Element\\r\\n * or, if value is not specified:\\r\\n = (any) value\\r\\n * or, if key and value are not specified:\\r\\n = (object) Key/value pairs for all the data associated with the element.\\r\\n > Usage\\r\\n | for (var i = 0, i < 5, i++) {\\r\\n | paper.circle(10 + 15 * i, 10, 10)\\r\\n | .attr({fill: \\\"#000\\\"})\\r\\n | .data(\\\"i\\\", i)\\r\\n | .click(function () {\\r\\n | alert(this.data(\\\"i\\\"));\\r\\n | });\\r\\n | }\\r\\n \\\\*/\\r\\n elproto.data = function (key, value) {\\r\\n var data = eldata[this.id] = eldata[this.id] || {};\\r\\n if (arguments.length == 0) {\\r\\n return data;\\r\\n }\\r\\n if (arguments.length == 1) {\\r\\n if (R.is(key, \\\"object\\\")) {\\r\\n for (var i in key) if (key[has](i)) {\\r\\n this.data(i, key[i]);\\r\\n }\\r\\n return this;\\r\\n }\\r\\n eve(\\\"raphael.data.get.\\\" + this.id, this, data[key], key);\\r\\n return data[key];\\r\\n }\\r\\n data[key] = value;\\r\\n eve(\\\"raphael.data.set.\\\" + this.id, this, value, key);\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.removeData\\r\\n [ method ]\\r\\n **\\r\\n * Removes value associated with an element by given key.\\r\\n * If key is not provided, removes all the data of the element.\\r\\n > Parameters\\r\\n - key (string) #optional key\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.removeData = function (key) {\\r\\n if (key == null) {\\r\\n eldata[this.id] = {};\\r\\n } else {\\r\\n eldata[this.id] && delete eldata[this.id][key];\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.getData\\r\\n [ method ]\\r\\n **\\r\\n * Retrieves the element data\\r\\n = (object) data\\r\\n \\\\*/\\r\\n elproto.getData = function () {\\r\\n return clone(eldata[this.id] || {});\\r\\n };\\r\\n /*\\\\\\r\\n * Element.hover\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handlers for hover for the element.\\r\\n > Parameters\\r\\n - f_in (function) handler for hover in\\r\\n - f_out (function) handler for hover out\\r\\n - icontext (object) #optional context for hover in handler\\r\\n - ocontext (object) #optional context for hover out handler\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.hover = function (f_in, f_out, scope_in, scope_out) {\\r\\n return this.mouseover(f_in, scope_in).mouseout(f_out, scope_out || scope_in);\\r\\n };\\r\\n /*\\\\\\r\\n * Element.unhover\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handlers for hover for the element.\\r\\n > Parameters\\r\\n - f_in (function) handler for hover in\\r\\n - f_out (function) handler for hover out\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.unhover = function (f_in, f_out) {\\r\\n return this.unmouseover(f_in).unmouseout(f_out);\\r\\n };\\r\\n var draggable = [];\\r\\n /*\\\\\\r\\n * Element.drag\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handlers for drag of the element.\\r\\n > Parameters\\r\\n - onmove (function) handler for moving\\r\\n - onstart (function) handler for drag start\\r\\n - onend (function) handler for drag end\\r\\n - mcontext (object) #optional context for moving handler\\r\\n - scontext (object) #optional context for drag start handler\\r\\n - econtext (object) #optional context for drag end handler\\r\\n * Additionaly following `drag` events will be triggered: `drag.start.` on start,\\r\\n * `drag.end.` on end and `drag.move.` on every move. When element will be dragged over another element\\r\\n * `drag.over.` will be fired as well.\\r\\n *\\r\\n * Start event and start handler will be called in specified context or in context of the element with following parameters:\\r\\n o x (number) x position of the mouse\\r\\n o y (number) y position of the mouse\\r\\n o event (object) DOM event object\\r\\n * Move event and move handler will be called in specified context or in context of the element with following parameters:\\r\\n o dx (number) shift by x from the start point\\r\\n o dy (number) shift by y from the start point\\r\\n o x (number) x position of the mouse\\r\\n o y (number) y position of the mouse\\r\\n o event (object) DOM event object\\r\\n * End event and end handler will be called in specified context or in context of the element with following parameters:\\r\\n o event (object) DOM event object\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.drag = function (onmove, onstart, onend, move_scope, start_scope, end_scope) {\\r\\n function start(e) {\\r\\n (e.originalEvent || e).preventDefault();\\r\\n var x = e.clientX,\\r\\n y = e.clientY,\\r\\n scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\\r\\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft;\\r\\n this._drag.id = e.identifier;\\r\\n if (supportsTouch && e.touches) {\\r\\n var i = e.touches.length, touch;\\r\\n while (i--) {\\r\\n touch = e.touches[i];\\r\\n this._drag.id = touch.identifier;\\r\\n if (touch.identifier == this._drag.id) {\\r\\n x = touch.clientX;\\r\\n y = touch.clientY;\\r\\n break;\\r\\n }\\r\\n }\\r\\n }\\r\\n this._drag.x = x + scrollX;\\r\\n this._drag.y = y + scrollY;\\r\\n !drag.length && R.mousemove(dragMove).mouseup(dragUp);\\r\\n drag.push({el: this, move_scope: move_scope, start_scope: start_scope, end_scope: end_scope});\\r\\n onstart && eve.on(\\\"raphael.drag.start.\\\" + this.id, onstart);\\r\\n onmove && eve.on(\\\"raphael.drag.move.\\\" + this.id, onmove);\\r\\n onend && eve.on(\\\"raphael.drag.end.\\\" + this.id, onend);\\r\\n eve(\\\"raphael.drag.start.\\\" + this.id, start_scope || move_scope || this, e.clientX + scrollX, e.clientY + scrollY, e);\\r\\n }\\r\\n this._drag = {};\\r\\n draggable.push({el: this, start: start});\\r\\n this.mousedown(start);\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.onDragOver\\r\\n [ method ]\\r\\n **\\r\\n * Shortcut for assigning event handler for `drag.over.` event, where id is id of the element (see @Element.id).\\r\\n > Parameters\\r\\n - f (function) handler for event, first argument would be the element you are dragging over\\r\\n \\\\*/\\r\\n elproto.onDragOver = function (f) {\\r\\n f ? eve.on(\\\"raphael.drag.over.\\\" + this.id, f) : eve.unbind(\\\"raphael.drag.over.\\\" + this.id);\\r\\n };\\r\\n /*\\\\\\r\\n * Element.undrag\\r\\n [ method ]\\r\\n **\\r\\n * Removes all drag event handlers from given element.\\r\\n \\\\*/\\r\\n elproto.undrag = function () {\\r\\n var i = draggable.length;\\r\\n while (i--) if (draggable[i].el == this) {\\r\\n this.unmousedown(draggable[i].start);\\r\\n draggable.splice(i, 1);\\r\\n eve.unbind(\\\"raphael.drag.*.\\\" + this.id);\\r\\n }\\r\\n !draggable.length && R.unmousemove(dragMove).unmouseup(dragUp);\\r\\n drag = [];\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.circle\\r\\n [ method ]\\r\\n **\\r\\n * Draws a circle.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate of the centre\\r\\n - y (number) y coordinate of the centre\\r\\n - r (number) radius\\r\\n = (object) Raphaël element object with type “circle”\\r\\n **\\r\\n > Usage\\r\\n | var c = paper.circle(50, 50, 40);\\r\\n \\\\*/\\r\\n paperproto.circle = function (x, y, r) {\\r\\n var out = R._engine.circle(this, x || 0, y || 0, r || 0);\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.rect\\r\\n [ method ]\\r\\n *\\r\\n * Draws a rectangle.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate of the top left corner\\r\\n - y (number) y coordinate of the top left corner\\r\\n - width (number) width\\r\\n - height (number) height\\r\\n - r (number) #optional radius for rounded corners, default is 0\\r\\n = (object) Raphaël element object with type “rect”\\r\\n **\\r\\n > Usage\\r\\n | // regular rectangle\\r\\n | var c = paper.rect(10, 10, 50, 50);\\r\\n | // rectangle with rounded corners\\r\\n | var c = paper.rect(40, 40, 50, 50, 10);\\r\\n \\\\*/\\r\\n paperproto.rect = function (x, y, w, h, r) {\\r\\n var out = R._engine.rect(this, x || 0, y || 0, w || 0, h || 0, r || 0);\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.ellipse\\r\\n [ method ]\\r\\n **\\r\\n * Draws an ellipse.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate of the centre\\r\\n - y (number) y coordinate of the centre\\r\\n - rx (number) horizontal radius\\r\\n - ry (number) vertical radius\\r\\n = (object) Raphaël element object with type “ellipse”\\r\\n **\\r\\n > Usage\\r\\n | var c = paper.ellipse(50, 50, 40, 20);\\r\\n \\\\*/\\r\\n paperproto.ellipse = function (x, y, rx, ry) {\\r\\n var out = R._engine.ellipse(this, x || 0, y || 0, rx || 0, ry || 0);\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.path\\r\\n [ method ]\\r\\n **\\r\\n * Creates a path element by given path data string.\\r\\n > Parameters\\r\\n - pathString (string) #optional path string in SVG format.\\r\\n * Path string consists of one-letter commands, followed by comma seprarated arguments in numercal form. Example:\\r\\n | \\\"M10,20L30,40\\\"\\r\\n * Here we can see two commands: “M”, with arguments `(10, 20)` and “L” with arguments `(30, 40)`. Upper case letter mean command is absolute, lower case—relative.\\r\\n *\\r\\n #

Here is short list of commands available, for more details see SVG path string format.

\\r\\n # \\r\\n # \\r\\n # \\r\\n # \\r\\n # \\r\\n # \\r\\n # \\r\\n # \\r\\n # \\r\\n # \\r\\n # \\r\\n #
CommandNameParameters
Mmoveto(x y)+
Zclosepath(none)
Llineto(x y)+
Hhorizontal linetox+
Vvertical linetoy+
Ccurveto(x1 y1 x2 y2 x y)+
Ssmooth curveto(x2 y2 x y)+
Qquadratic Bézier curveto(x1 y1 x y)+
Tsmooth quadratic Bézier curveto(x y)+
Aelliptical arc(rx ry x-axis-rotation large-arc-flag sweep-flag x y)+
RCatmull-Rom curveto*x1 y1 (x y)+
\\r\\n * * “Catmull-Rom curveto” is a not standard SVG command and added in 2.0 to make life easier.\\r\\n * Note: there is a special case when path consist of just three commands: “M10,10R…z”. In this case path will smoothly connects to its beginning.\\r\\n > Usage\\r\\n | var c = paper.path(\\\"M10 10L90 90\\\");\\r\\n | // draw a diagonal line:\\r\\n | // move to 10,10, line to 90,90\\r\\n * For example of path strings, check out these icons: http://raphaeljs.com/icons/\\r\\n \\\\*/\\r\\n paperproto.path = function (pathString) {\\r\\n pathString && !R.is(pathString, string) && !R.is(pathString[0], array) && (pathString += E);\\r\\n var out = R._engine.path(R.format[apply](R, arguments), this);\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.image\\r\\n [ method ]\\r\\n **\\r\\n * Embeds an image into the surface.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - src (string) URI of the source image\\r\\n - x (number) x coordinate position\\r\\n - y (number) y coordinate position\\r\\n - width (number) width of the image\\r\\n - height (number) height of the image\\r\\n = (object) Raphaël element object with type “image”\\r\\n **\\r\\n > Usage\\r\\n | var c = paper.image(\\\"apple.png\\\", 10, 10, 80, 80);\\r\\n \\\\*/\\r\\n paperproto.image = function (src, x, y, w, h) {\\r\\n var out = R._engine.image(this, src || \\\"about:blank\\\", x || 0, y || 0, w || 0, h || 0);\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.text\\r\\n [ method ]\\r\\n **\\r\\n * Draws a text string. If you need line breaks, put “\\\\n” in the string.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate position\\r\\n - y (number) y coordinate position\\r\\n - text (string) The text string to draw\\r\\n = (object) Raphaël element object with type “text”\\r\\n **\\r\\n > Usage\\r\\n | var t = paper.text(50, 50, \\\"Raphaël\\\\nkicks\\\\nbutt!\\\");\\r\\n \\\\*/\\r\\n paperproto.text = function (x, y, text) {\\r\\n var out = R._engine.text(this, x || 0, y || 0, Str(text));\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.set\\r\\n [ method ]\\r\\n **\\r\\n * Creates array-like object to keep and operate several elements at once.\\r\\n * Warning: it doesn’t create any elements for itself in the page, it just groups existing elements.\\r\\n * Sets act as pseudo elements — all methods available to an element can be used on a set.\\r\\n = (object) array-like object that represents set of elements\\r\\n **\\r\\n > Usage\\r\\n | var st = paper.set();\\r\\n | st.push(\\r\\n | paper.circle(10, 10, 5),\\r\\n | paper.circle(30, 10, 5)\\r\\n | );\\r\\n | st.attr({fill: \\\"red\\\"}); // changes the fill of both circles\\r\\n \\\\*/\\r\\n paperproto.set = function (itemsArray) {\\r\\n !R.is(itemsArray, \\\"array\\\") && (itemsArray = Array.prototype.splice.call(arguments, 0, arguments.length));\\r\\n var out = new Set(itemsArray);\\r\\n this.__set__ && this.__set__.push(out);\\r\\n out[\\\"paper\\\"] = this;\\r\\n out[\\\"type\\\"] = \\\"set\\\";\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.setStart\\r\\n [ method ]\\r\\n **\\r\\n * Creates @Paper.set. All elements that will be created after calling this method and before calling\\r\\n * @Paper.setFinish will be added to the set.\\r\\n **\\r\\n > Usage\\r\\n | paper.setStart();\\r\\n | paper.circle(10, 10, 5),\\r\\n | paper.circle(30, 10, 5)\\r\\n | var st = paper.setFinish();\\r\\n | st.attr({fill: \\\"red\\\"}); // changes the fill of both circles\\r\\n \\\\*/\\r\\n paperproto.setStart = function (set) {\\r\\n this.__set__ = set || this.set();\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.setFinish\\r\\n [ method ]\\r\\n **\\r\\n * See @Paper.setStart. This method finishes catching and returns resulting set.\\r\\n **\\r\\n = (object) set\\r\\n \\\\*/\\r\\n paperproto.setFinish = function (set) {\\r\\n var out = this.__set__;\\r\\n delete this.__set__;\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.getSize\\r\\n [ method ]\\r\\n **\\r\\n * Obtains current paper actual size.\\r\\n **\\r\\n = (object)\\r\\n \\\\*/\\r\\n paperproto.getSize = function () {\\r\\n var container = this.canvas.parentNode;\\r\\n return {\\r\\n width: container.offsetWidth,\\r\\n height: container.offsetHeight\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.setSize\\r\\n [ method ]\\r\\n **\\r\\n * If you need to change dimensions of the canvas call this method\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - width (number) new width of the canvas\\r\\n - height (number) new height of the canvas\\r\\n \\\\*/\\r\\n paperproto.setSize = function (width, height) {\\r\\n return R._engine.setSize.call(this, width, height);\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.setViewBox\\r\\n [ method ]\\r\\n **\\r\\n * Sets the view box of the paper. Practically it gives you ability to zoom and pan whole paper surface by\\r\\n * specifying new boundaries.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) new x position, default is `0`\\r\\n - y (number) new y position, default is `0`\\r\\n - w (number) new width of the canvas\\r\\n - h (number) new height of the canvas\\r\\n - fit (boolean) `true` if you want graphics to fit into new boundary box\\r\\n \\\\*/\\r\\n paperproto.setViewBox = function (x, y, w, h, fit) {\\r\\n return R._engine.setViewBox.call(this, x, y, w, h, fit);\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.top\\r\\n [ property ]\\r\\n **\\r\\n * Points to the topmost element on the paper\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Paper.bottom\\r\\n [ property ]\\r\\n **\\r\\n * Points to the bottom element on the paper\\r\\n \\\\*/\\r\\n paperproto.top = paperproto.bottom = null;\\r\\n /*\\\\\\r\\n * Paper.raphael\\r\\n [ property ]\\r\\n **\\r\\n * Points to the @Raphael object/function\\r\\n \\\\*/\\r\\n paperproto.raphael = R;\\r\\n var getOffset = function (elem) {\\r\\n var box = elem.getBoundingClientRect(),\\r\\n doc = elem.ownerDocument,\\r\\n body = doc.body,\\r\\n docElem = doc.documentElement,\\r\\n clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,\\r\\n top = box.top + (g.win.pageYOffset || docElem.scrollTop || body.scrollTop ) - clientTop,\\r\\n left = box.left + (g.win.pageXOffset || docElem.scrollLeft || body.scrollLeft) - clientLeft;\\r\\n return {\\r\\n y: top,\\r\\n x: left\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.getElementByPoint\\r\\n [ method ]\\r\\n **\\r\\n * Returns you topmost element under given point.\\r\\n **\\r\\n = (object) Raphaël element object\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate from the top left corner of the window\\r\\n - y (number) y coordinate from the top left corner of the window\\r\\n > Usage\\r\\n | paper.getElementByPoint(mouseX, mouseY).attr({stroke: \\\"#f00\\\"});\\r\\n \\\\*/\\r\\n paperproto.getElementByPoint = function (x, y) {\\r\\n var paper = this,\\r\\n svg = paper.canvas,\\r\\n target = g.doc.elementFromPoint(x, y);\\r\\n if (g.win.opera && target.tagName == \\\"svg\\\") {\\r\\n var so = getOffset(svg),\\r\\n sr = svg.createSVGRect();\\r\\n sr.x = x - so.x;\\r\\n sr.y = y - so.y;\\r\\n sr.width = sr.height = 1;\\r\\n var hits = svg.getIntersectionList(sr, null);\\r\\n if (hits.length) {\\r\\n target = hits[hits.length - 1];\\r\\n }\\r\\n }\\r\\n if (!target) {\\r\\n return null;\\r\\n }\\r\\n while (target.parentNode && target != svg.parentNode && !target.raphael) {\\r\\n target = target.parentNode;\\r\\n }\\r\\n target == paper.canvas.parentNode && (target = svg);\\r\\n target = target && target.raphael ? paper.getById(target.raphaelid) : null;\\r\\n return target;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Paper.getElementsByBBox\\r\\n [ method ]\\r\\n **\\r\\n * Returns set of elements that have an intersecting bounding box\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - bbox (object) bbox to check with\\r\\n = (object) @Set\\r\\n \\\\*/\\r\\n paperproto.getElementsByBBox = function (bbox) {\\r\\n var set = this.set();\\r\\n this.forEach(function (el) {\\r\\n if (R.isBBoxIntersect(el.getBBox(), bbox)) {\\r\\n set.push(el);\\r\\n }\\r\\n });\\r\\n return set;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Paper.getById\\r\\n [ method ]\\r\\n **\\r\\n * Returns you element by its internal ID.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - id (number) id\\r\\n = (object) Raphaël element object\\r\\n \\\\*/\\r\\n paperproto.getById = function (id) {\\r\\n var bot = this.bottom;\\r\\n while (bot) {\\r\\n if (bot.id == id) {\\r\\n return bot;\\r\\n }\\r\\n bot = bot.next;\\r\\n }\\r\\n return null;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.forEach\\r\\n [ method ]\\r\\n **\\r\\n * Executes given function for each element on the paper\\r\\n *\\r\\n * If callback function returns `false` it will stop loop running.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - callback (function) function to run\\r\\n - thisArg (object) context object for the callback\\r\\n = (object) Paper object\\r\\n > Usage\\r\\n | paper.forEach(function (el) {\\r\\n | el.attr({ stroke: \\\"blue\\\" });\\r\\n | });\\r\\n \\\\*/\\r\\n paperproto.forEach = function (callback, thisArg) {\\r\\n var bot = this.bottom;\\r\\n while (bot) {\\r\\n if (callback.call(thisArg, bot) === false) {\\r\\n return this;\\r\\n }\\r\\n bot = bot.next;\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.getElementsByPoint\\r\\n [ method ]\\r\\n **\\r\\n * Returns set of elements that have common point inside\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate of the point\\r\\n - y (number) y coordinate of the point\\r\\n = (object) @Set\\r\\n \\\\*/\\r\\n paperproto.getElementsByPoint = function (x, y) {\\r\\n var set = this.set();\\r\\n this.forEach(function (el) {\\r\\n if (el.isPointInside(x, y)) {\\r\\n set.push(el);\\r\\n }\\r\\n });\\r\\n return set;\\r\\n };\\r\\n function x_y() {\\r\\n return this.x + S + this.y;\\r\\n }\\r\\n function x_y_w_h() {\\r\\n return this.x + S + this.y + S + this.width + \\\" \\\\xd7 \\\" + this.height;\\r\\n }\\r\\n /*\\\\\\r\\n * Element.isPointInside\\r\\n [ method ]\\r\\n **\\r\\n * Determine if given point is inside this element’s shape\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate of the point\\r\\n - y (number) y coordinate of the point\\r\\n = (boolean) `true` if point inside the shape\\r\\n \\\\*/\\r\\n elproto.isPointInside = function (x, y) {\\r\\n var rp = this.realPath = getPath[this.type](this);\\r\\n if (this.attr('transform') && this.attr('transform').length) {\\r\\n rp = R.transformPath(rp, this.attr('transform'));\\r\\n }\\r\\n return R.isPointInsidePath(rp, x, y);\\r\\n };\\r\\n /*\\\\\\r\\n * Element.getBBox\\r\\n [ method ]\\r\\n **\\r\\n * Return bounding box for a given element\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - isWithoutTransform (boolean) flag, `true` if you want to have bounding box before transformations. Default is `false`.\\r\\n = (object) Bounding box object:\\r\\n o {\\r\\n o x: (number) top left corner x\\r\\n o y: (number) top left corner y\\r\\n o x2: (number) bottom right corner x\\r\\n o y2: (number) bottom right corner y\\r\\n o width: (number) width\\r\\n o height: (number) height\\r\\n o }\\r\\n \\\\*/\\r\\n elproto.getBBox = function (isWithoutTransform) {\\r\\n if (this.removed) {\\r\\n return {};\\r\\n }\\r\\n var _ = this._;\\r\\n if (isWithoutTransform) {\\r\\n if (_.dirty || !_.bboxwt) {\\r\\n this.realPath = getPath[this.type](this);\\r\\n _.bboxwt = pathDimensions(this.realPath);\\r\\n _.bboxwt.toString = x_y_w_h;\\r\\n _.dirty = 0;\\r\\n }\\r\\n return _.bboxwt;\\r\\n }\\r\\n if (_.dirty || _.dirtyT || !_.bbox) {\\r\\n if (_.dirty || !this.realPath) {\\r\\n _.bboxwt = 0;\\r\\n this.realPath = getPath[this.type](this);\\r\\n }\\r\\n _.bbox = pathDimensions(mapPath(this.realPath, this.matrix));\\r\\n _.bbox.toString = x_y_w_h;\\r\\n _.dirty = _.dirtyT = 0;\\r\\n }\\r\\n return _.bbox;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.clone\\r\\n [ method ]\\r\\n **\\r\\n = (object) clone of a given element\\r\\n **\\r\\n \\\\*/\\r\\n elproto.clone = function () {\\r\\n if (this.removed) {\\r\\n return null;\\r\\n }\\r\\n var out = this.paper[this.type]().attr(this.attr());\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.glow\\r\\n [ method ]\\r\\n **\\r\\n * Return set of elements that create glow-like effect around given element. See @Paper.set.\\r\\n *\\r\\n * Note: Glow is not connected to the element. If you change element attributes it won’t adjust itself.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - glow (object) #optional parameters object with all properties optional:\\r\\n o {\\r\\n o width (number) size of the glow, default is `10`\\r\\n o fill (boolean) will it be filled, default is `false`\\r\\n o opacity (number) opacity, default is `0.5`\\r\\n o offsetx (number) horizontal offset, default is `0`\\r\\n o offsety (number) vertical offset, default is `0`\\r\\n o color (string) glow colour, default is `black`\\r\\n o }\\r\\n = (object) @Paper.set of elements that represents glow\\r\\n \\\\*/\\r\\n elproto.glow = function (glow) {\\r\\n if (this.type == \\\"text\\\") {\\r\\n return null;\\r\\n }\\r\\n glow = glow || {};\\r\\n var s = {\\r\\n width: (glow.width || 10) + (+this.attr(\\\"stroke-width\\\") || 1),\\r\\n fill: glow.fill || false,\\r\\n opacity: glow.opacity == null ? .5 : glow.opacity,\\r\\n offsetx: glow.offsetx || 0,\\r\\n offsety: glow.offsety || 0,\\r\\n color: glow.color || \\\"#000\\\"\\r\\n },\\r\\n c = s.width / 2,\\r\\n r = this.paper,\\r\\n out = r.set(),\\r\\n path = this.realPath || getPath[this.type](this);\\r\\n path = this.matrix ? mapPath(path, this.matrix) : path;\\r\\n for (var i = 1; i < c + 1; i++) {\\r\\n out.push(r.path(path).attr({\\r\\n stroke: s.color,\\r\\n fill: s.fill ? s.color : \\\"none\\\",\\r\\n \\\"stroke-linejoin\\\": \\\"round\\\",\\r\\n \\\"stroke-linecap\\\": \\\"round\\\",\\r\\n \\\"stroke-width\\\": +(s.width / c * i).toFixed(3),\\r\\n opacity: +(s.opacity / c).toFixed(3)\\r\\n }));\\r\\n }\\r\\n return out.insertBefore(this).translate(s.offsetx, s.offsety);\\r\\n };\\r\\n var curveslengths = {},\\r\\n getPointAtSegmentLength = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length) {\\r\\n if (length == null) {\\r\\n return bezlen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y);\\r\\n } else {\\r\\n return R.findDotsAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, getTatLen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length));\\r\\n }\\r\\n },\\r\\n getLengthFactory = function (istotal, subpath) {\\r\\n return function (path, length, onlystart) {\\r\\n path = path2curve(path);\\r\\n var x, y, p, l, sp = \\\"\\\", subpaths = {}, point,\\r\\n len = 0;\\r\\n for (var i = 0, ii = path.length; i < ii; i++) {\\r\\n p = path[i];\\r\\n if (p[0] == \\\"M\\\") {\\r\\n x = +p[1];\\r\\n y = +p[2];\\r\\n } else {\\r\\n l = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6]);\\r\\n if (len + l > length) {\\r\\n if (subpath && !subpaths.start) {\\r\\n point = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6], length - len);\\r\\n sp += [\\\"C\\\" + point.start.x, point.start.y, point.m.x, point.m.y, point.x, point.y];\\r\\n if (onlystart) {return sp;}\\r\\n subpaths.start = sp;\\r\\n sp = [\\\"M\\\" + point.x, point.y + \\\"C\\\" + point.n.x, point.n.y, point.end.x, point.end.y, p[5], p[6]].join();\\r\\n len += l;\\r\\n x = +p[5];\\r\\n y = +p[6];\\r\\n continue;\\r\\n }\\r\\n if (!istotal && !subpath) {\\r\\n point = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6], length - len);\\r\\n return {x: point.x, y: point.y, alpha: point.alpha};\\r\\n }\\r\\n }\\r\\n len += l;\\r\\n x = +p[5];\\r\\n y = +p[6];\\r\\n }\\r\\n sp += p.shift() + p;\\r\\n }\\r\\n subpaths.end = sp;\\r\\n point = istotal ? len : subpath ? subpaths : R.findDotsAtSegment(x, y, p[0], p[1], p[2], p[3], p[4], p[5], 1);\\r\\n point.alpha && (point = {x: point.x, y: point.y, alpha: point.alpha});\\r\\n return point;\\r\\n };\\r\\n };\\r\\n var getTotalLength = getLengthFactory(1),\\r\\n getPointAtLength = getLengthFactory(),\\r\\n getSubpathsAtLength = getLengthFactory(0, 1);\\r\\n /*\\\\\\r\\n * Raphael.getTotalLength\\r\\n [ method ]\\r\\n **\\r\\n * Returns length of the given path in pixels.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - path (string) SVG path string.\\r\\n **\\r\\n = (number) length.\\r\\n \\\\*/\\r\\n R.getTotalLength = getTotalLength;\\r\\n /*\\\\\\r\\n * Raphael.getPointAtLength\\r\\n [ method ]\\r\\n **\\r\\n * Return coordinates of the point located at the given length on the given path.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - path (string) SVG path string\\r\\n - length (number)\\r\\n **\\r\\n = (object) representation of the point:\\r\\n o {\\r\\n o x: (number) x coordinate\\r\\n o y: (number) y coordinate\\r\\n o alpha: (number) angle of derivative\\r\\n o }\\r\\n \\\\*/\\r\\n R.getPointAtLength = getPointAtLength;\\r\\n /*\\\\\\r\\n * Raphael.getSubpath\\r\\n [ method ]\\r\\n **\\r\\n * Return subpath of a given path from given length to given length.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - path (string) SVG path string\\r\\n - from (number) position of the start of the segment\\r\\n - to (number) position of the end of the segment\\r\\n **\\r\\n = (string) pathstring for the segment\\r\\n \\\\*/\\r\\n R.getSubpath = function (path, from, to) {\\r\\n if (this.getTotalLength(path) - to < 1e-6) {\\r\\n return getSubpathsAtLength(path, from).end;\\r\\n }\\r\\n var a = getSubpathsAtLength(path, to, 1);\\r\\n return from ? getSubpathsAtLength(a, from).end : a;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.getTotalLength\\r\\n [ method ]\\r\\n **\\r\\n * Returns length of the path in pixels. Only works for element of “path” type.\\r\\n = (number) length.\\r\\n \\\\*/\\r\\n elproto.getTotalLength = function () {\\r\\n var path = this.getPath();\\r\\n if (!path) {\\r\\n return;\\r\\n }\\r\\n\\r\\n if (this.node.getTotalLength) {\\r\\n return this.node.getTotalLength();\\r\\n }\\r\\n\\r\\n return getTotalLength(path);\\r\\n };\\r\\n /*\\\\\\r\\n * Element.getPointAtLength\\r\\n [ method ]\\r\\n **\\r\\n * Return coordinates of the point located at the given length on the given path. Only works for element of “path” type.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - length (number)\\r\\n **\\r\\n = (object) representation of the point:\\r\\n o {\\r\\n o x: (number) x coordinate\\r\\n o y: (number) y coordinate\\r\\n o alpha: (number) angle of derivative\\r\\n o }\\r\\n \\\\*/\\r\\n elproto.getPointAtLength = function (length) {\\r\\n var path = this.getPath();\\r\\n if (!path) {\\r\\n return;\\r\\n }\\r\\n\\r\\n return getPointAtLength(path, length);\\r\\n };\\r\\n /*\\\\\\r\\n * Element.getPath\\r\\n [ method ]\\r\\n **\\r\\n * Returns path of the element. Only works for elements of “path” type and simple elements like circle.\\r\\n = (object) path\\r\\n **\\r\\n \\\\*/\\r\\n elproto.getPath = function () {\\r\\n var path,\\r\\n getPath = R._getPath[this.type];\\r\\n\\r\\n if (this.type == \\\"text\\\" || this.type == \\\"set\\\") {\\r\\n return;\\r\\n }\\r\\n\\r\\n if (getPath) {\\r\\n path = getPath(this);\\r\\n }\\r\\n\\r\\n return path;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.getSubpath\\r\\n [ method ]\\r\\n **\\r\\n * Return subpath of a given element from given length to given length. Only works for element of “path” type.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - from (number) position of the start of the segment\\r\\n - to (number) position of the end of the segment\\r\\n **\\r\\n = (string) pathstring for the segment\\r\\n \\\\*/\\r\\n elproto.getSubpath = function (from, to) {\\r\\n var path = this.getPath();\\r\\n if (!path) {\\r\\n return;\\r\\n }\\r\\n\\r\\n return R.getSubpath(path, from, to);\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.easing_formulas\\r\\n [ property ]\\r\\n **\\r\\n * Object that contains easing formulas for animation. You could extend it with your own. By default it has following list of easing:\\r\\n #
    \\r\\n #
  • “linear”
  • \\r\\n #
  • “<” or “easeIn” or “ease-in”
  • \\r\\n #
  • “>” or “easeOut” or “ease-out”
  • \\r\\n #
  • “<>” or “easeInOut” or “ease-in-out”
  • \\r\\n #
  • “backIn” or “back-in”
  • \\r\\n #
  • “backOut” or “back-out”
  • \\r\\n #
  • “elastic”
  • \\r\\n #
  • “bounce”
  • \\r\\n #
\\r\\n #

See also Easing demo.

\\r\\n \\\\*/\\r\\n var ef = R.easing_formulas = {\\r\\n linear: function (n) {\\r\\n return n;\\r\\n },\\r\\n \\\"<\\\": function (n) {\\r\\n return pow(n, 1.7);\\r\\n },\\r\\n \\\">\\\": function (n) {\\r\\n return pow(n, .48);\\r\\n },\\r\\n \\\"<>\\\": function (n) {\\r\\n var q = .48 - n / 1.04,\\r\\n Q = math.sqrt(.1734 + q * q),\\r\\n x = Q - q,\\r\\n X = pow(abs(x), 1 / 3) * (x < 0 ? -1 : 1),\\r\\n y = -Q - q,\\r\\n Y = pow(abs(y), 1 / 3) * (y < 0 ? -1 : 1),\\r\\n t = X + Y + .5;\\r\\n return (1 - t) * 3 * t * t + t * t * t;\\r\\n },\\r\\n backIn: function (n) {\\r\\n var s = 1.70158;\\r\\n return n * n * ((s + 1) * n - s);\\r\\n },\\r\\n backOut: function (n) {\\r\\n n = n - 1;\\r\\n var s = 1.70158;\\r\\n return n * n * ((s + 1) * n + s) + 1;\\r\\n },\\r\\n elastic: function (n) {\\r\\n if (n == !!n) {\\r\\n return n;\\r\\n }\\r\\n return pow(2, -10 * n) * math.sin((n - .075) * (2 * PI) / .3) + 1;\\r\\n },\\r\\n bounce: function (n) {\\r\\n var s = 7.5625,\\r\\n p = 2.75,\\r\\n l;\\r\\n if (n < (1 / p)) {\\r\\n l = s * n * n;\\r\\n } else {\\r\\n if (n < (2 / p)) {\\r\\n n -= (1.5 / p);\\r\\n l = s * n * n + .75;\\r\\n } else {\\r\\n if (n < (2.5 / p)) {\\r\\n n -= (2.25 / p);\\r\\n l = s * n * n + .9375;\\r\\n } else {\\r\\n n -= (2.625 / p);\\r\\n l = s * n * n + .984375;\\r\\n }\\r\\n }\\r\\n }\\r\\n return l;\\r\\n }\\r\\n };\\r\\n ef.easeIn = ef[\\\"ease-in\\\"] = ef[\\\"<\\\"];\\r\\n ef.easeOut = ef[\\\"ease-out\\\"] = ef[\\\">\\\"];\\r\\n ef.easeInOut = ef[\\\"ease-in-out\\\"] = ef[\\\"<>\\\"];\\r\\n ef[\\\"back-in\\\"] = ef.backIn;\\r\\n ef[\\\"back-out\\\"] = ef.backOut;\\r\\n\\r\\n var animationElements = [],\\r\\n requestAnimFrame = window.requestAnimationFrame ||\\r\\n window.webkitRequestAnimationFrame ||\\r\\n window.mozRequestAnimationFrame ||\\r\\n window.oRequestAnimationFrame ||\\r\\n window.msRequestAnimationFrame ||\\r\\n function (callback) {\\r\\n setTimeout(callback, 16);\\r\\n },\\r\\n animation = function () {\\r\\n var Now = +new Date,\\r\\n l = 0;\\r\\n for (; l < animationElements.length; l++) {\\r\\n var e = animationElements[l];\\r\\n if (e.el.removed || e.paused) {\\r\\n continue;\\r\\n }\\r\\n var time = Now - e.start,\\r\\n ms = e.ms,\\r\\n easing = e.easing,\\r\\n from = e.from,\\r\\n diff = e.diff,\\r\\n to = e.to,\\r\\n t = e.t,\\r\\n that = e.el,\\r\\n set = {},\\r\\n now,\\r\\n init = {},\\r\\n key;\\r\\n if (e.initstatus) {\\r\\n time = (e.initstatus * e.anim.top - e.prev) / (e.percent - e.prev) * ms;\\r\\n e.status = e.initstatus;\\r\\n delete e.initstatus;\\r\\n e.stop && animationElements.splice(l--, 1);\\r\\n } else {\\r\\n e.status = (e.prev + (e.percent - e.prev) * (time / ms)) / e.anim.top;\\r\\n }\\r\\n if (time < 0) {\\r\\n continue;\\r\\n }\\r\\n if (time < ms) {\\r\\n var pos = easing(time / ms);\\r\\n for (var attr in from) if (from[has](attr)) {\\r\\n switch (availableAnimAttrs[attr]) {\\r\\n case nu:\\r\\n now = +from[attr] + pos * ms * diff[attr];\\r\\n break;\\r\\n case \\\"colour\\\":\\r\\n now = \\\"rgb(\\\" + [\\r\\n upto255(round(from[attr].r + pos * ms * diff[attr].r)),\\r\\n upto255(round(from[attr].g + pos * ms * diff[attr].g)),\\r\\n upto255(round(from[attr].b + pos * ms * diff[attr].b))\\r\\n ].join(\\\",\\\") + \\\")\\\";\\r\\n break;\\r\\n case \\\"path\\\":\\r\\n now = [];\\r\\n for (var i = 0, ii = from[attr].length; i < ii; i++) {\\r\\n now[i] = [from[attr][i][0]];\\r\\n for (var j = 1, jj = from[attr][i].length; j < jj; j++) {\\r\\n now[i][j] = +from[attr][i][j] + pos * ms * diff[attr][i][j];\\r\\n }\\r\\n now[i] = now[i].join(S);\\r\\n }\\r\\n now = now.join(S);\\r\\n break;\\r\\n case \\\"transform\\\":\\r\\n if (diff[attr].real) {\\r\\n now = [];\\r\\n for (i = 0, ii = from[attr].length; i < ii; i++) {\\r\\n now[i] = [from[attr][i][0]];\\r\\n for (j = 1, jj = from[attr][i].length; j < jj; j++) {\\r\\n now[i][j] = from[attr][i][j] + pos * ms * diff[attr][i][j];\\r\\n }\\r\\n }\\r\\n } else {\\r\\n var get = function (i) {\\r\\n return +from[attr][i] + pos * ms * diff[attr][i];\\r\\n };\\r\\n // now = [[\\\"r\\\", get(2), 0, 0], [\\\"t\\\", get(3), get(4)], [\\\"s\\\", get(0), get(1), 0, 0]];\\r\\n now = [[\\\"m\\\", get(0), get(1), get(2), get(3), get(4), get(5)]];\\r\\n }\\r\\n break;\\r\\n case \\\"csv\\\":\\r\\n if (attr == \\\"clip-rect\\\") {\\r\\n now = [];\\r\\n i = 4;\\r\\n while (i--) {\\r\\n now[i] = +from[attr][i] + pos * ms * diff[attr][i];\\r\\n }\\r\\n }\\r\\n break;\\r\\n default:\\r\\n var from2 = [][concat](from[attr]);\\r\\n now = [];\\r\\n i = that.paper.customAttributes[attr].length;\\r\\n while (i--) {\\r\\n now[i] = +from2[i] + pos * ms * diff[attr][i];\\r\\n }\\r\\n break;\\r\\n }\\r\\n set[attr] = now;\\r\\n }\\r\\n that.attr(set);\\r\\n (function (id, that, anim) {\\r\\n setTimeout(function () {\\r\\n eve(\\\"raphael.anim.frame.\\\" + id, that, anim);\\r\\n });\\r\\n })(that.id, that, e.anim);\\r\\n } else {\\r\\n (function(f, el, a) {\\r\\n setTimeout(function() {\\r\\n eve(\\\"raphael.anim.frame.\\\" + el.id, el, a);\\r\\n eve(\\\"raphael.anim.finish.\\\" + el.id, el, a);\\r\\n R.is(f, \\\"function\\\") && f.call(el);\\r\\n });\\r\\n })(e.callback, that, e.anim);\\r\\n that.attr(to);\\r\\n animationElements.splice(l--, 1);\\r\\n if (e.repeat > 1 && !e.next) {\\r\\n for (key in to) if (to[has](key)) {\\r\\n init[key] = e.totalOrigin[key];\\r\\n }\\r\\n e.el.attr(init);\\r\\n runAnimation(e.anim, e.el, e.anim.percents[0], null, e.totalOrigin, e.repeat - 1);\\r\\n }\\r\\n if (e.next && !e.stop) {\\r\\n runAnimation(e.anim, e.el, e.next, null, e.totalOrigin, e.repeat);\\r\\n }\\r\\n }\\r\\n }\\r\\n animationElements.length && requestAnimFrame(animation);\\r\\n },\\r\\n upto255 = function (color) {\\r\\n return color > 255 ? 255 : color < 0 ? 0 : color;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.animateWith\\r\\n [ method ]\\r\\n **\\r\\n * Acts similar to @Element.animate, but ensure that given animation runs in sync with another given element.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - el (object) element to sync with\\r\\n - anim (object) animation to sync with\\r\\n - params (object) #optional final attributes for the element, see also @Element.attr\\r\\n - ms (number) #optional number of milliseconds for animation to run\\r\\n - easing (string) #optional easing type. Accept on of @Raphael.easing_formulas or CSS format: `cubic‐bezier(XX, XX, XX, XX)`\\r\\n - callback (function) #optional callback function. Will be called at the end of animation.\\r\\n * or\\r\\n - element (object) element to sync with\\r\\n - anim (object) animation to sync with\\r\\n - animation (object) #optional animation object, see @Raphael.animation\\r\\n **\\r\\n = (object) original element\\r\\n \\\\*/\\r\\n elproto.animateWith = function (el, anim, params, ms, easing, callback) {\\r\\n var element = this;\\r\\n if (element.removed) {\\r\\n callback && callback.call(element);\\r\\n return element;\\r\\n }\\r\\n var a = params instanceof Animation ? params : R.animation(params, ms, easing, callback),\\r\\n x, y;\\r\\n runAnimation(a, element, a.percents[0], null, element.attr());\\r\\n for (var i = 0, ii = animationElements.length; i < ii; i++) {\\r\\n if (animationElements[i].anim == anim && animationElements[i].el == el) {\\r\\n animationElements[ii - 1].start = animationElements[i].start;\\r\\n break;\\r\\n }\\r\\n }\\r\\n return element;\\r\\n //\\r\\n //\\r\\n // var a = params ? R.animation(params, ms, easing, callback) : anim,\\r\\n // status = element.status(anim);\\r\\n // return this.animate(a).status(a, status * anim.ms / a.ms);\\r\\n };\\r\\n function CubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration) {\\r\\n var cx = 3 * p1x,\\r\\n bx = 3 * (p2x - p1x) - cx,\\r\\n ax = 1 - cx - bx,\\r\\n cy = 3 * p1y,\\r\\n by = 3 * (p2y - p1y) - cy,\\r\\n ay = 1 - cy - by;\\r\\n function sampleCurveX(t) {\\r\\n return ((ax * t + bx) * t + cx) * t;\\r\\n }\\r\\n function solve(x, epsilon) {\\r\\n var t = solveCurveX(x, epsilon);\\r\\n return ((ay * t + by) * t + cy) * t;\\r\\n }\\r\\n function solveCurveX(x, epsilon) {\\r\\n var t0, t1, t2, x2, d2, i;\\r\\n for(t2 = x, i = 0; i < 8; i++) {\\r\\n x2 = sampleCurveX(t2) - x;\\r\\n if (abs(x2) < epsilon) {\\r\\n return t2;\\r\\n }\\r\\n d2 = (3 * ax * t2 + 2 * bx) * t2 + cx;\\r\\n if (abs(d2) < 1e-6) {\\r\\n break;\\r\\n }\\r\\n t2 = t2 - x2 / d2;\\r\\n }\\r\\n t0 = 0;\\r\\n t1 = 1;\\r\\n t2 = x;\\r\\n if (t2 < t0) {\\r\\n return t0;\\r\\n }\\r\\n if (t2 > t1) {\\r\\n return t1;\\r\\n }\\r\\n while (t0 < t1) {\\r\\n x2 = sampleCurveX(t2);\\r\\n if (abs(x2 - x) < epsilon) {\\r\\n return t2;\\r\\n }\\r\\n if (x > x2) {\\r\\n t0 = t2;\\r\\n } else {\\r\\n t1 = t2;\\r\\n }\\r\\n t2 = (t1 - t0) / 2 + t0;\\r\\n }\\r\\n return t2;\\r\\n }\\r\\n return solve(t, 1 / (200 * duration));\\r\\n }\\r\\n elproto.onAnimation = function (f) {\\r\\n f ? eve.on(\\\"raphael.anim.frame.\\\" + this.id, f) : eve.unbind(\\\"raphael.anim.frame.\\\" + this.id);\\r\\n return this;\\r\\n };\\r\\n function Animation(anim, ms) {\\r\\n var percents = [],\\r\\n newAnim = {};\\r\\n this.ms = ms;\\r\\n this.times = 1;\\r\\n if (anim) {\\r\\n for (var attr in anim) if (anim[has](attr)) {\\r\\n newAnim[toFloat(attr)] = anim[attr];\\r\\n percents.push(toFloat(attr));\\r\\n }\\r\\n percents.sort(sortByNumber);\\r\\n }\\r\\n this.anim = newAnim;\\r\\n this.top = percents[percents.length - 1];\\r\\n this.percents = percents;\\r\\n }\\r\\n /*\\\\\\r\\n * Animation.delay\\r\\n [ method ]\\r\\n **\\r\\n * Creates a copy of existing animation object with given delay.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - delay (number) number of ms to pass between animation start and actual animation\\r\\n **\\r\\n = (object) new altered Animation object\\r\\n | var anim = Raphael.animation({cx: 10, cy: 20}, 2e3);\\r\\n | circle1.animate(anim); // run the given animation immediately\\r\\n | circle2.animate(anim.delay(500)); // run the given animation after 500 ms\\r\\n \\\\*/\\r\\n Animation.prototype.delay = function (delay) {\\r\\n var a = new Animation(this.anim, this.ms);\\r\\n a.times = this.times;\\r\\n a.del = +delay || 0;\\r\\n return a;\\r\\n };\\r\\n /*\\\\\\r\\n * Animation.repeat\\r\\n [ method ]\\r\\n **\\r\\n * Creates a copy of existing animation object with given repetition.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - repeat (number) number iterations of animation. For infinite animation pass `Infinity`\\r\\n **\\r\\n = (object) new altered Animation object\\r\\n \\\\*/\\r\\n Animation.prototype.repeat = function (times) {\\r\\n var a = new Animation(this.anim, this.ms);\\r\\n a.del = this.del;\\r\\n a.times = math.floor(mmax(times, 0)) || 1;\\r\\n return a;\\r\\n };\\r\\n function runAnimation(anim, element, percent, status, totalOrigin, times) {\\r\\n percent = toFloat(percent);\\r\\n var params,\\r\\n isInAnim,\\r\\n isInAnimSet,\\r\\n percents = [],\\r\\n next,\\r\\n prev,\\r\\n timestamp,\\r\\n ms = anim.ms,\\r\\n from = {},\\r\\n to = {},\\r\\n diff = {};\\r\\n if (status) {\\r\\n for (i = 0, ii = animationElements.length; i < ii; i++) {\\r\\n var e = animationElements[i];\\r\\n if (e.el.id == element.id && e.anim == anim) {\\r\\n if (e.percent != percent) {\\r\\n animationElements.splice(i, 1);\\r\\n isInAnimSet = 1;\\r\\n } else {\\r\\n isInAnim = e;\\r\\n }\\r\\n element.attr(e.totalOrigin);\\r\\n break;\\r\\n }\\r\\n }\\r\\n } else {\\r\\n status = +to; // NaN\\r\\n }\\r\\n for (var i = 0, ii = anim.percents.length; i < ii; i++) {\\r\\n if (anim.percents[i] == percent || anim.percents[i] > status * anim.top) {\\r\\n percent = anim.percents[i];\\r\\n prev = anim.percents[i - 1] || 0;\\r\\n ms = ms / anim.top * (percent - prev);\\r\\n next = anim.percents[i + 1];\\r\\n params = anim.anim[percent];\\r\\n break;\\r\\n } else if (status) {\\r\\n element.attr(anim.anim[anim.percents[i]]);\\r\\n }\\r\\n }\\r\\n if (!params) {\\r\\n return;\\r\\n }\\r\\n if (!isInAnim) {\\r\\n for (var attr in params) if (params[has](attr)) {\\r\\n if (availableAnimAttrs[has](attr) || element.paper.customAttributes[has](attr)) {\\r\\n from[attr] = element.attr(attr);\\r\\n (from[attr] == null) && (from[attr] = availableAttrs[attr]);\\r\\n to[attr] = params[attr];\\r\\n switch (availableAnimAttrs[attr]) {\\r\\n case nu:\\r\\n diff[attr] = (to[attr] - from[attr]) / ms;\\r\\n break;\\r\\n case \\\"colour\\\":\\r\\n from[attr] = R.getRGB(from[attr]);\\r\\n var toColour = R.getRGB(to[attr]);\\r\\n diff[attr] = {\\r\\n r: (toColour.r - from[attr].r) / ms,\\r\\n g: (toColour.g - from[attr].g) / ms,\\r\\n b: (toColour.b - from[attr].b) / ms\\r\\n };\\r\\n break;\\r\\n case \\\"path\\\":\\r\\n var pathes = path2curve(from[attr], to[attr]),\\r\\n toPath = pathes[1];\\r\\n from[attr] = pathes[0];\\r\\n diff[attr] = [];\\r\\n for (i = 0, ii = from[attr].length; i < ii; i++) {\\r\\n diff[attr][i] = [0];\\r\\n for (var j = 1, jj = from[attr][i].length; j < jj; j++) {\\r\\n diff[attr][i][j] = (toPath[i][j] - from[attr][i][j]) / ms;\\r\\n }\\r\\n }\\r\\n break;\\r\\n case \\\"transform\\\":\\r\\n var _ = element._,\\r\\n eq = equaliseTransform(_[attr], to[attr]);\\r\\n if (eq) {\\r\\n from[attr] = eq.from;\\r\\n to[attr] = eq.to;\\r\\n diff[attr] = [];\\r\\n diff[attr].real = true;\\r\\n for (i = 0, ii = from[attr].length; i < ii; i++) {\\r\\n diff[attr][i] = [from[attr][i][0]];\\r\\n for (j = 1, jj = from[attr][i].length; j < jj; j++) {\\r\\n diff[attr][i][j] = (to[attr][i][j] - from[attr][i][j]) / ms;\\r\\n }\\r\\n }\\r\\n } else {\\r\\n var m = (element.matrix || new Matrix),\\r\\n to2 = {\\r\\n _: {transform: _.transform},\\r\\n getBBox: function () {\\r\\n return element.getBBox(1);\\r\\n }\\r\\n };\\r\\n from[attr] = [\\r\\n m.a,\\r\\n m.b,\\r\\n m.c,\\r\\n m.d,\\r\\n m.e,\\r\\n m.f\\r\\n ];\\r\\n extractTransform(to2, to[attr]);\\r\\n to[attr] = to2._.transform;\\r\\n diff[attr] = [\\r\\n (to2.matrix.a - m.a) / ms,\\r\\n (to2.matrix.b - m.b) / ms,\\r\\n (to2.matrix.c - m.c) / ms,\\r\\n (to2.matrix.d - m.d) / ms,\\r\\n (to2.matrix.e - m.e) / ms,\\r\\n (to2.matrix.f - m.f) / ms\\r\\n ];\\r\\n // from[attr] = [_.sx, _.sy, _.deg, _.dx, _.dy];\\r\\n // var to2 = {_:{}, getBBox: function () { return element.getBBox(); }};\\r\\n // extractTransform(to2, to[attr]);\\r\\n // diff[attr] = [\\r\\n // (to2._.sx - _.sx) / ms,\\r\\n // (to2._.sy - _.sy) / ms,\\r\\n // (to2._.deg - _.deg) / ms,\\r\\n // (to2._.dx - _.dx) / ms,\\r\\n // (to2._.dy - _.dy) / ms\\r\\n // ];\\r\\n }\\r\\n break;\\r\\n case \\\"csv\\\":\\r\\n var values = Str(params[attr])[split](separator),\\r\\n from2 = Str(from[attr])[split](separator);\\r\\n if (attr == \\\"clip-rect\\\") {\\r\\n from[attr] = from2;\\r\\n diff[attr] = [];\\r\\n i = from2.length;\\r\\n while (i--) {\\r\\n diff[attr][i] = (values[i] - from[attr][i]) / ms;\\r\\n }\\r\\n }\\r\\n to[attr] = values;\\r\\n break;\\r\\n default:\\r\\n values = [][concat](params[attr]);\\r\\n from2 = [][concat](from[attr]);\\r\\n diff[attr] = [];\\r\\n i = element.paper.customAttributes[attr].length;\\r\\n while (i--) {\\r\\n diff[attr][i] = ((values[i] || 0) - (from2[i] || 0)) / ms;\\r\\n }\\r\\n break;\\r\\n }\\r\\n }\\r\\n }\\r\\n var easing = params.easing,\\r\\n easyeasy = R.easing_formulas[easing];\\r\\n if (!easyeasy) {\\r\\n easyeasy = Str(easing).match(bezierrg);\\r\\n if (easyeasy && easyeasy.length == 5) {\\r\\n var curve = easyeasy;\\r\\n easyeasy = function (t) {\\r\\n return CubicBezierAtTime(t, +curve[1], +curve[2], +curve[3], +curve[4], ms);\\r\\n };\\r\\n } else {\\r\\n easyeasy = pipe;\\r\\n }\\r\\n }\\r\\n timestamp = params.start || anim.start || +new Date;\\r\\n e = {\\r\\n anim: anim,\\r\\n percent: percent,\\r\\n timestamp: timestamp,\\r\\n start: timestamp + (anim.del || 0),\\r\\n status: 0,\\r\\n initstatus: status || 0,\\r\\n stop: false,\\r\\n ms: ms,\\r\\n easing: easyeasy,\\r\\n from: from,\\r\\n diff: diff,\\r\\n to: to,\\r\\n el: element,\\r\\n callback: params.callback,\\r\\n prev: prev,\\r\\n next: next,\\r\\n repeat: times || anim.times,\\r\\n origin: element.attr(),\\r\\n totalOrigin: totalOrigin\\r\\n };\\r\\n animationElements.push(e);\\r\\n if (status && !isInAnim && !isInAnimSet) {\\r\\n e.stop = true;\\r\\n e.start = new Date - ms * status;\\r\\n if (animationElements.length == 1) {\\r\\n return animation();\\r\\n }\\r\\n }\\r\\n if (isInAnimSet) {\\r\\n e.start = new Date - e.ms * status;\\r\\n }\\r\\n animationElements.length == 1 && requestAnimFrame(animation);\\r\\n } else {\\r\\n isInAnim.initstatus = status;\\r\\n isInAnim.start = new Date - isInAnim.ms * status;\\r\\n }\\r\\n eve(\\\"raphael.anim.start.\\\" + element.id, element, anim);\\r\\n }\\r\\n /*\\\\\\r\\n * Raphael.animation\\r\\n [ method ]\\r\\n **\\r\\n * Creates an animation object that can be passed to the @Element.animate or @Element.animateWith methods.\\r\\n * See also @Animation.delay and @Animation.repeat methods.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - params (object) final attributes for the element, see also @Element.attr\\r\\n - ms (number) number of milliseconds for animation to run\\r\\n - easing (string) #optional easing type. Accept one of @Raphael.easing_formulas or CSS format: `cubic‐bezier(XX, XX, XX, XX)`\\r\\n - callback (function) #optional callback function. Will be called at the end of animation.\\r\\n **\\r\\n = (object) @Animation\\r\\n \\\\*/\\r\\n R.animation = function (params, ms, easing, callback) {\\r\\n if (params instanceof Animation) {\\r\\n return params;\\r\\n }\\r\\n if (R.is(easing, \\\"function\\\") || !easing) {\\r\\n callback = callback || easing || null;\\r\\n easing = null;\\r\\n }\\r\\n params = Object(params);\\r\\n ms = +ms || 0;\\r\\n var p = {},\\r\\n json,\\r\\n attr;\\r\\n for (attr in params) if (params[has](attr) && toFloat(attr) != attr && toFloat(attr) + \\\"%\\\" != attr) {\\r\\n json = true;\\r\\n p[attr] = params[attr];\\r\\n }\\r\\n if (!json) {\\r\\n // if percent-like syntax is used and end-of-all animation callback used\\r\\n if(callback){\\r\\n // find the last one\\r\\n var lastKey = 0;\\r\\n for(var i in params){\\r\\n var percent = toInt(i);\\r\\n if(params[has](i) && percent > lastKey){\\r\\n lastKey = percent;\\r\\n }\\r\\n }\\r\\n lastKey += '%';\\r\\n // if already defined callback in the last keyframe, skip\\r\\n !params[lastKey].callback && (params[lastKey].callback = callback);\\r\\n }\\r\\n return new Animation(params, ms);\\r\\n } else {\\r\\n easing && (p.easing = easing);\\r\\n callback && (p.callback = callback);\\r\\n return new Animation({100: p}, ms);\\r\\n }\\r\\n };\\r\\n /*\\\\\\r\\n * Element.animate\\r\\n [ method ]\\r\\n **\\r\\n * Creates and starts animation for given element.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - params (object) final attributes for the element, see also @Element.attr\\r\\n - ms (number) number of milliseconds for animation to run\\r\\n - easing (string) #optional easing type. Accept one of @Raphael.easing_formulas or CSS format: `cubic‐bezier(XX, XX, XX, XX)`\\r\\n - callback (function) #optional callback function. Will be called at the end of animation.\\r\\n * or\\r\\n - animation (object) animation object, see @Raphael.animation\\r\\n **\\r\\n = (object) original element\\r\\n \\\\*/\\r\\n elproto.animate = function (params, ms, easing, callback) {\\r\\n var element = this;\\r\\n if (element.removed) {\\r\\n callback && callback.call(element);\\r\\n return element;\\r\\n }\\r\\n var anim = params instanceof Animation ? params : R.animation(params, ms, easing, callback);\\r\\n runAnimation(anim, element, anim.percents[0], null, element.attr());\\r\\n return element;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.setTime\\r\\n [ method ]\\r\\n **\\r\\n * Sets the status of animation of the element in milliseconds. Similar to @Element.status method.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - anim (object) animation object\\r\\n - value (number) number of milliseconds from the beginning of the animation\\r\\n **\\r\\n = (object) original element if `value` is specified\\r\\n * Note, that during animation following events are triggered:\\r\\n *\\r\\n * On each animation frame event `anim.frame.`, on start `anim.start.` and on end `anim.finish.`.\\r\\n \\\\*/\\r\\n elproto.setTime = function (anim, value) {\\r\\n if (anim && value != null) {\\r\\n this.status(anim, mmin(value, anim.ms) / anim.ms);\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.status\\r\\n [ method ]\\r\\n **\\r\\n * Gets or sets the status of animation of the element.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - anim (object) #optional animation object\\r\\n - value (number) #optional 0 – 1. If specified, method works like a setter and sets the status of a given animation to the value. This will cause animation to jump to the given position.\\r\\n **\\r\\n = (number) status\\r\\n * or\\r\\n = (array) status if `anim` is not specified. Array of objects in format:\\r\\n o {\\r\\n o anim: (object) animation object\\r\\n o status: (number) status\\r\\n o }\\r\\n * or\\r\\n = (object) original element if `value` is specified\\r\\n \\\\*/\\r\\n elproto.status = function (anim, value) {\\r\\n var out = [],\\r\\n i = 0,\\r\\n len,\\r\\n e;\\r\\n if (value != null) {\\r\\n runAnimation(anim, this, -1, mmin(value, 1));\\r\\n return this;\\r\\n } else {\\r\\n len = animationElements.length;\\r\\n for (; i < len; i++) {\\r\\n e = animationElements[i];\\r\\n if (e.el.id == this.id && (!anim || e.anim == anim)) {\\r\\n if (anim) {\\r\\n return e.status;\\r\\n }\\r\\n out.push({\\r\\n anim: e.anim,\\r\\n status: e.status\\r\\n });\\r\\n }\\r\\n }\\r\\n if (anim) {\\r\\n return 0;\\r\\n }\\r\\n return out;\\r\\n }\\r\\n };\\r\\n /*\\\\\\r\\n * Element.pause\\r\\n [ method ]\\r\\n **\\r\\n * Stops animation of the element with ability to resume it later on.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - anim (object) #optional animation object\\r\\n **\\r\\n = (object) original element\\r\\n \\\\*/\\r\\n elproto.pause = function (anim) {\\r\\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)) {\\r\\n if (eve(\\\"raphael.anim.pause.\\\" + this.id, this, animationElements[i].anim) !== false) {\\r\\n animationElements[i].paused = true;\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.resume\\r\\n [ method ]\\r\\n **\\r\\n * Resumes animation if it was paused with @Element.pause method.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - anim (object) #optional animation object\\r\\n **\\r\\n = (object) original element\\r\\n \\\\*/\\r\\n elproto.resume = function (anim) {\\r\\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)) {\\r\\n var e = animationElements[i];\\r\\n if (eve(\\\"raphael.anim.resume.\\\" + this.id, this, e.anim) !== false) {\\r\\n delete e.paused;\\r\\n this.status(e.anim, e.status);\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.stop\\r\\n [ method ]\\r\\n **\\r\\n * Stops animation of the element.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - anim (object) #optional animation object\\r\\n **\\r\\n = (object) original element\\r\\n \\\\*/\\r\\n elproto.stop = function (anim) {\\r\\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)) {\\r\\n if (eve(\\\"raphael.anim.stop.\\\" + this.id, this, animationElements[i].anim) !== false) {\\r\\n animationElements.splice(i--, 1);\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n function stopAnimation(paper) {\\r\\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.paper == paper) {\\r\\n animationElements.splice(i--, 1);\\r\\n }\\r\\n }\\r\\n eve.on(\\\"raphael.remove\\\", stopAnimation);\\r\\n eve.on(\\\"raphael.clear\\\", stopAnimation);\\r\\n elproto.toString = function () {\\r\\n return \\\"Rapha\\\\xebl\\\\u2019s object\\\";\\r\\n };\\r\\n\\r\\n // Set\\r\\n var Set = function (items) {\\r\\n this.items = [];\\r\\n this.length = 0;\\r\\n this.type = \\\"set\\\";\\r\\n if (items) {\\r\\n for (var i = 0, ii = items.length; i < ii; i++) {\\r\\n if (items[i] && (items[i].constructor == elproto.constructor || items[i].constructor == Set)) {\\r\\n this[this.items.length] = this.items[this.items.length] = items[i];\\r\\n this.length++;\\r\\n }\\r\\n }\\r\\n }\\r\\n },\\r\\n setproto = Set.prototype;\\r\\n /*\\\\\\r\\n * Set.push\\r\\n [ method ]\\r\\n **\\r\\n * Adds each argument to the current set.\\r\\n = (object) original element\\r\\n \\\\*/\\r\\n setproto.push = function () {\\r\\n var item,\\r\\n len;\\r\\n for (var i = 0, ii = arguments.length; i < ii; i++) {\\r\\n item = arguments[i];\\r\\n if (item && (item.constructor == elproto.constructor || item.constructor == Set)) {\\r\\n len = this.items.length;\\r\\n this[len] = this.items[len] = item;\\r\\n this.length++;\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Set.pop\\r\\n [ method ]\\r\\n **\\r\\n * Removes last element and returns it.\\r\\n = (object) element\\r\\n \\\\*/\\r\\n setproto.pop = function () {\\r\\n this.length && delete this[this.length--];\\r\\n return this.items.pop();\\r\\n };\\r\\n /*\\\\\\r\\n * Set.forEach\\r\\n [ method ]\\r\\n **\\r\\n * Executes given function for each element in the set.\\r\\n *\\r\\n * If function returns `false` it will stop loop running.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - callback (function) function to run\\r\\n - thisArg (object) context object for the callback\\r\\n = (object) Set object\\r\\n \\\\*/\\r\\n setproto.forEach = function (callback, thisArg) {\\r\\n for (var i = 0, ii = this.items.length; i < ii; i++) {\\r\\n if (callback.call(thisArg, this.items[i], i) === false) {\\r\\n return this;\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n for (var method in elproto) if (elproto[has](method)) {\\r\\n setproto[method] = (function (methodname) {\\r\\n return function () {\\r\\n var arg = arguments;\\r\\n return this.forEach(function (el) {\\r\\n el[methodname][apply](el, arg);\\r\\n });\\r\\n };\\r\\n })(method);\\r\\n }\\r\\n setproto.attr = function (name, value) {\\r\\n if (name && R.is(name, array) && R.is(name[0], \\\"object\\\")) {\\r\\n for (var j = 0, jj = name.length; j < jj; j++) {\\r\\n this.items[j].attr(name[j]);\\r\\n }\\r\\n } else {\\r\\n for (var i = 0, ii = this.items.length; i < ii; i++) {\\r\\n this.items[i].attr(name, value);\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Set.clear\\r\\n [ method ]\\r\\n **\\r\\n * Removes all elements from the set\\r\\n \\\\*/\\r\\n setproto.clear = function () {\\r\\n while (this.length) {\\r\\n this.pop();\\r\\n }\\r\\n };\\r\\n /*\\\\\\r\\n * Set.splice\\r\\n [ method ]\\r\\n **\\r\\n * Removes given element from the set\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - index (number) position of the deletion\\r\\n - count (number) number of element to remove\\r\\n - insertion… (object) #optional elements to insert\\r\\n = (object) set elements that were deleted\\r\\n \\\\*/\\r\\n setproto.splice = function (index, count, insertion) {\\r\\n index = index < 0 ? mmax(this.length + index, 0) : index;\\r\\n count = mmax(0, mmin(this.length - index, count));\\r\\n var tail = [],\\r\\n todel = [],\\r\\n args = [],\\r\\n i;\\r\\n for (i = 2; i < arguments.length; i++) {\\r\\n args.push(arguments[i]);\\r\\n }\\r\\n for (i = 0; i < count; i++) {\\r\\n todel.push(this[index + i]);\\r\\n }\\r\\n for (; i < this.length - index; i++) {\\r\\n tail.push(this[index + i]);\\r\\n }\\r\\n var arglen = args.length;\\r\\n for (i = 0; i < arglen + tail.length; i++) {\\r\\n this.items[index + i] = this[index + i] = i < arglen ? args[i] : tail[i - arglen];\\r\\n }\\r\\n i = this.items.length = this.length -= count - arglen;\\r\\n while (this[i]) {\\r\\n delete this[i++];\\r\\n }\\r\\n return new Set(todel);\\r\\n };\\r\\n /*\\\\\\r\\n * Set.exclude\\r\\n [ method ]\\r\\n **\\r\\n * Removes given element from the set\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - element (object) element to remove\\r\\n = (boolean) `true` if object was found & removed from the set\\r\\n \\\\*/\\r\\n setproto.exclude = function (el) {\\r\\n for (var i = 0, ii = this.length; i < ii; i++) if (this[i] == el) {\\r\\n this.splice(i, 1);\\r\\n return true;\\r\\n }\\r\\n };\\r\\n setproto.animate = function (params, ms, easing, callback) {\\r\\n (R.is(easing, \\\"function\\\") || !easing) && (callback = easing || null);\\r\\n var len = this.items.length,\\r\\n i = len,\\r\\n item,\\r\\n set = this,\\r\\n collector;\\r\\n if (!len) {\\r\\n return this;\\r\\n }\\r\\n callback && (collector = function () {\\r\\n !--len && callback.call(set);\\r\\n });\\r\\n easing = R.is(easing, string) ? easing : collector;\\r\\n var anim = R.animation(params, ms, easing, collector);\\r\\n item = this.items[--i].animate(anim);\\r\\n while (i--) {\\r\\n this.items[i] && !this.items[i].removed && this.items[i].animateWith(item, anim, anim);\\r\\n (this.items[i] && !this.items[i].removed) || len--;\\r\\n }\\r\\n return this;\\r\\n };\\r\\n setproto.insertAfter = function (el) {\\r\\n var i = this.items.length;\\r\\n while (i--) {\\r\\n this.items[i].insertAfter(el);\\r\\n }\\r\\n return this;\\r\\n };\\r\\n\\r\\n // FREEGROUP Fix: RaphaelJS changes the order of the elements of the 'set' by calling the toBack method.\\r\\n // \\\"toBack\\\" must be called reverse to care about the rendering order. In this case we override\\r\\n // the buggy default implementation here.\\r\\n //\\r\\n setproto.toBack = function () {\\r\\n var i = this.items.length;\\r\\n while (i--) {\\r\\n this.items[i].toBack();\\r\\n }\\r\\n return this;\\r\\n };\\r\\n\\r\\n // FREEGROUP Fix: Unfortunately raphael didn'T expose the \\\"set.prototype\\\". In this case\\r\\n // I must add all extension to the raphael implementation itself.\\r\\n // Provide support method for easy check if the elements are visible.\\r\\n setproto.isVisible = function () {\\r\\n var i = this.items.length;\\r\\n var visible = false;\\r\\n while (i--) {\\r\\n visible = visible ||this.items[i].isVisible();\\r\\n }\\r\\n return visible;\\r\\n };\\r\\n\\r\\n\\r\\n // FREEGROUP FIX: Adding \\\"isWithoutTransform\\\" to the function and redirect them to the elements\\r\\n setproto.getBBox = function (isWithoutTransform) {\\r\\n var x = [],\\r\\n y = [],\\r\\n x2 = [],\\r\\n y2 = [];\\r\\n for (var i = this.items.length; i--;) if (!this.items[i].removed) {\\r\\n var box = this.items[i].getBBox(isWithoutTransform);\\r\\n x.push(box.x);\\r\\n y.push(box.y);\\r\\n x2.push(box.x + box.width);\\r\\n y2.push(box.y + box.height);\\r\\n }\\r\\n x = mmin[apply](0, x);\\r\\n y = mmin[apply](0, y);\\r\\n x2 = mmax[apply](0, x2);\\r\\n y2 = mmax[apply](0, y2);\\r\\n return {\\r\\n x: x,\\r\\n y: y,\\r\\n x2: x2,\\r\\n y2: y2,\\r\\n width: x2 - x,\\r\\n height: y2 - y\\r\\n };\\r\\n };\\r\\n setproto.clone = function (s) {\\r\\n s = this.paper.set();\\r\\n for (var i = 0, ii = this.items.length; i < ii; i++) {\\r\\n s.push(this.items[i].clone());\\r\\n }\\r\\n return s;\\r\\n };\\r\\n setproto.toString = function () {\\r\\n return \\\"Rapha\\\\xebl\\\\u2018s set\\\";\\r\\n };\\r\\n\\r\\n setproto.glow = function(glowConfig) {\\r\\n var ret = this.paper.set();\\r\\n this.forEach(function(shape, index){\\r\\n var g = shape.glow(glowConfig);\\r\\n if(g != null){\\r\\n g.forEach(function(shape2, index2){\\r\\n ret.push(shape2);\\r\\n });\\r\\n }\\r\\n });\\r\\n return ret;\\r\\n };\\r\\n\\r\\n\\r\\n /*\\\\\\r\\n * Set.isPointInside\\r\\n [ method ]\\r\\n **\\r\\n * Determine if given point is inside this set’s elements\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate of the point\\r\\n - y (number) y coordinate of the point\\r\\n = (boolean) `true` if point is inside any of the set's elements\\r\\n \\\\*/\\r\\n setproto.isPointInside = function (x, y) {\\r\\n var isPointInside = false;\\r\\n this.forEach(function (el) {\\r\\n if (el.isPointInside(x, y)) {\\r\\n isPointInside = true;\\r\\n return false; // stop loop\\r\\n }\\r\\n });\\r\\n return isPointInside;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.registerFont\\r\\n [ method ]\\r\\n **\\r\\n * Adds given font to the registered set of fonts for Raphaël. Should be used as an internal call from within Cufón’s font file.\\r\\n * Returns original parameter, so it could be used with chaining.\\r\\n # More about Cufón and how to convert your font form TTF, OTF, etc to JavaScript file.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - font (object) the font to register\\r\\n = (object) the font you passed in\\r\\n > Usage\\r\\n | Cufon.registerFont(Raphael.registerFont({…}));\\r\\n \\\\*/\\r\\n R.registerFont = function (font) {\\r\\n if (!font.face) {\\r\\n return font;\\r\\n }\\r\\n this.fonts = this.fonts || {};\\r\\n var fontcopy = {\\r\\n w: font.w,\\r\\n face: {},\\r\\n glyphs: {}\\r\\n },\\r\\n family = font.face[\\\"font-family\\\"];\\r\\n for (var prop in font.face) if (font.face[has](prop)) {\\r\\n fontcopy.face[prop] = font.face[prop];\\r\\n }\\r\\n if (this.fonts[family]) {\\r\\n this.fonts[family].push(fontcopy);\\r\\n } else {\\r\\n this.fonts[family] = [fontcopy];\\r\\n }\\r\\n if (!font.svg) {\\r\\n fontcopy.face[\\\"units-per-em\\\"] = toInt(font.face[\\\"units-per-em\\\"], 10);\\r\\n for (var glyph in font.glyphs) if (font.glyphs[has](glyph)) {\\r\\n var path = font.glyphs[glyph];\\r\\n fontcopy.glyphs[glyph] = {\\r\\n w: path.w,\\r\\n k: {},\\r\\n d: path.d && \\\"M\\\" + path.d.replace(/[mlcxtrv]/g, function (command) {\\r\\n return {l: \\\"L\\\", c: \\\"C\\\", x: \\\"z\\\", t: \\\"m\\\", r: \\\"l\\\", v: \\\"c\\\"}[command] || \\\"M\\\";\\r\\n }) + \\\"z\\\"\\r\\n };\\r\\n if (path.k) {\\r\\n for (var k in path.k) if (path[has](k)) {\\r\\n fontcopy.glyphs[glyph].k[k] = path.k[k];\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n return font;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.getFont\\r\\n [ method ]\\r\\n **\\r\\n * Finds font object in the registered fonts by given parameters. You could specify only one word from the font name, like “Myriad” for “Myriad Pro”.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - family (string) font family name or any word from it\\r\\n - weight (string) #optional font weight\\r\\n - style (string) #optional font style\\r\\n - stretch (string) #optional font stretch\\r\\n = (object) the font object\\r\\n > Usage\\r\\n | paper.print(100, 100, \\\"Test string\\\", paper.getFont(\\\"Times\\\", 800), 30);\\r\\n \\\\*/\\r\\n paperproto.getFont = function (family, weight, style, stretch) {\\r\\n stretch = stretch || \\\"normal\\\";\\r\\n style = style || \\\"normal\\\";\\r\\n weight = +weight || {normal: 400, bold: 700, lighter: 300, bolder: 800}[weight] || 400;\\r\\n if (!R.fonts) {\\r\\n return;\\r\\n }\\r\\n var font = R.fonts[family];\\r\\n if (!font) {\\r\\n var name = new RegExp(\\\"(^|\\\\\\\\s)\\\" + family.replace(/[^\\\\w\\\\d\\\\s+!~.:_-]/g, E) + \\\"(\\\\\\\\s|$)\\\", \\\"i\\\");\\r\\n for (var fontName in R.fonts) if (R.fonts[has](fontName)) {\\r\\n if (name.test(fontName)) {\\r\\n font = R.fonts[fontName];\\r\\n break;\\r\\n }\\r\\n }\\r\\n }\\r\\n var thefont;\\r\\n if (font) {\\r\\n for (var i = 0, ii = font.length; i < ii; i++) {\\r\\n thefont = font[i];\\r\\n if (thefont.face[\\\"font-weight\\\"] == weight && (thefont.face[\\\"font-style\\\"] == style || !thefont.face[\\\"font-style\\\"]) && thefont.face[\\\"font-stretch\\\"] == stretch) {\\r\\n break;\\r\\n }\\r\\n }\\r\\n }\\r\\n return thefont;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.print\\r\\n [ method ]\\r\\n **\\r\\n * Creates path that represent given text written using given font at given position with given size.\\r\\n * Result of the method is path element that contains whole text as a separate path.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x position of the text\\r\\n - y (number) y position of the text\\r\\n - string (string) text to print\\r\\n - font (object) font object, see @Paper.getFont\\r\\n - size (number) #optional size of the font, default is `16`\\r\\n - origin (string) #optional could be `\\\"baseline\\\"` or `\\\"middle\\\"`, default is `\\\"middle\\\"`\\r\\n - letter_spacing (number) #optional number in range `-1..1`, default is `0`\\r\\n - line_spacing (number) #optional number in range `1..3`, default is `1`\\r\\n = (object) resulting path element, which consist of all letters\\r\\n > Usage\\r\\n | var txt = r.print(10, 50, \\\"print\\\", r.getFont(\\\"Museo\\\"), 30).attr({fill: \\\"#fff\\\"});\\r\\n \\\\*/\\r\\n paperproto.print = function (x, y, string, font, size, origin, letter_spacing, line_spacing) {\\r\\n origin = origin || \\\"middle\\\"; // baseline|middle\\r\\n letter_spacing = mmax(mmin(letter_spacing || 0, 1), -1);\\r\\n line_spacing = mmax(mmin(line_spacing || 1, 3), 1);\\r\\n var letters = Str(string)[split](E),\\r\\n shift = 0,\\r\\n notfirst = 0,\\r\\n path = E,\\r\\n scale;\\r\\n R.is(font, \\\"string\\\") && (font = this.getFont(font));\\r\\n if (font) {\\r\\n scale = (size || 16) / font.face[\\\"units-per-em\\\"];\\r\\n var bb = font.face.bbox[split](separator),\\r\\n top = +bb[0],\\r\\n lineHeight = bb[3] - bb[1],\\r\\n shifty = 0,\\r\\n height = +bb[1] + (origin == \\\"baseline\\\" ? lineHeight + (+font.face.descent) : lineHeight / 2);\\r\\n for (var i = 0, ii = letters.length; i < ii; i++) {\\r\\n if (letters[i] == \\\"\\\\n\\\") {\\r\\n shift = 0;\\r\\n curr = 0;\\r\\n notfirst = 0;\\r\\n shifty += lineHeight * line_spacing;\\r\\n } else {\\r\\n var prev = notfirst && font.glyphs[letters[i - 1]] || {},\\r\\n curr = font.glyphs[letters[i]];\\r\\n shift += notfirst ? (prev.w || font.w) + (prev.k && prev.k[letters[i]] || 0) + (font.w * letter_spacing) : 0;\\r\\n notfirst = 1;\\r\\n }\\r\\n if (curr && curr.d) {\\r\\n path += R.transformPath(curr.d, [\\\"t\\\", shift * scale, shifty * scale, \\\"s\\\", scale, scale, top, height, \\\"t\\\", (x - top) / scale, (y - height) / scale]);\\r\\n }\\r\\n }\\r\\n }\\r\\n return this.path(path).attr({\\r\\n fill: \\\"#000\\\",\\r\\n stroke: \\\"none\\\"\\r\\n });\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Paper.add\\r\\n [ method ]\\r\\n **\\r\\n * Imports elements in JSON array in format `{type: type, }`\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - json (array)\\r\\n = (object) resulting set of imported elements\\r\\n > Usage\\r\\n | paper.add([\\r\\n | {\\r\\n | type: \\\"circle\\\",\\r\\n | cx: 10,\\r\\n | cy: 10,\\r\\n | r: 5\\r\\n | },\\r\\n | {\\r\\n | type: \\\"rect\\\",\\r\\n | x: 10,\\r\\n | y: 10,\\r\\n | width: 10,\\r\\n | height: 10,\\r\\n | fill: \\\"#fc0\\\"\\r\\n | }\\r\\n | ]);\\r\\n \\\\*/\\r\\n paperproto.add = function (json) {\\r\\n if (R.is(json, \\\"array\\\")) {\\r\\n var res = this.set(),\\r\\n i = 0,\\r\\n ii = json.length,\\r\\n j;\\r\\n for (; i < ii; i++) {\\r\\n j = json[i] || {};\\r\\n elements[has](j.type) && res.push(this[j.type]().attr(j));\\r\\n }\\r\\n }\\r\\n return res;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.format\\r\\n [ method ]\\r\\n **\\r\\n * Simple format function. Replaces construction of type “`{}`” to the corresponding argument.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - token (string) string to format\\r\\n - … (string) rest of arguments will be treated as parameters for replacement\\r\\n = (string) formated string\\r\\n > Usage\\r\\n | var x = 10,\\r\\n | y = 20,\\r\\n | width = 40,\\r\\n | height = 50;\\r\\n | // this will draw a rectangular shape equivalent to \\\"M10,20h40v50h-40z\\\"\\r\\n | paper.path(Raphael.format(\\\"M{0},{1}h{2}v{3}h{4}z\\\", x, y, width, height, -width));\\r\\n \\\\*/\\r\\n R.format = function (token, params) {\\r\\n var args = R.is(params, array) ? [0][concat](params) : arguments;\\r\\n token && R.is(token, string) && args.length - 1 && (token = token.replace(formatrg, function (str, i) {\\r\\n return args[++i] == null ? E : args[i];\\r\\n }));\\r\\n return token || E;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.fullfill\\r\\n [ method ]\\r\\n **\\r\\n * A little bit more advanced format function than @Raphael.format. Replaces construction of type “`{}`” to the corresponding argument.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - token (string) string to format\\r\\n - json (object) object which properties will be used as a replacement\\r\\n = (string) formated string\\r\\n > Usage\\r\\n | // this will draw a rectangular shape equivalent to \\\"M10,20h40v50h-40z\\\"\\r\\n | paper.path(Raphael.fullfill(\\\"M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']}z\\\", {\\r\\n | x: 10,\\r\\n | y: 20,\\r\\n | dim: {\\r\\n | width: 40,\\r\\n | height: 50,\\r\\n | \\\"negative width\\\": -40\\r\\n | }\\r\\n | }));\\r\\n \\\\*/\\r\\n R.fullfill = (function () {\\r\\n var tokenRegex = /\\\\{([^\\\\}]+)\\\\}/g,\\r\\n objNotationRegex = /(?:(?:^|\\\\.)(.+?)(?=\\\\[|\\\\.|$|\\\\()|\\\\[('|\\\")(.+?)\\\\2\\\\])(\\\\(\\\\))?/g, // matches .xxxxx or [\\\"xxxxx\\\"] to run over object properties\\r\\n replacer = function (all, key, obj) {\\r\\n var res = obj;\\r\\n key.replace(objNotationRegex, function (all, name, quote, quotedName, isFunc) {\\r\\n name = name || quotedName;\\r\\n if (res) {\\r\\n if (name in res) {\\r\\n res = res[name];\\r\\n }\\r\\n typeof res == \\\"function\\\" && isFunc && (res = res());\\r\\n }\\r\\n });\\r\\n res = (res == null || res == obj ? all : res) + \\\"\\\";\\r\\n return res;\\r\\n };\\r\\n return function (str, obj) {\\r\\n return String(str).replace(tokenRegex, function (all, key) {\\r\\n return replacer(all, key, obj);\\r\\n });\\r\\n };\\r\\n })();\\r\\n /*\\\\\\r\\n * Raphael.ninja\\r\\n [ method ]\\r\\n **\\r\\n * If you want to leave no trace of Raphaël (Well, Raphaël creates only one global variable `Raphael`, but anyway.) You can use `ninja` method.\\r\\n * Beware, that in this case plugins could stop working, because they are depending on global variable existence.\\r\\n **\\r\\n = (object) Raphael object\\r\\n > Usage\\r\\n | (function (local_raphael) {\\r\\n | var paper = local_raphael(10, 10, 320, 200);\\r\\n | …\\r\\n | })(Raphael.ninja());\\r\\n \\\\*/\\r\\n R.ninja = function () {\\r\\n oldRaphael.was ? (g.win.Raphael = oldRaphael.is) : delete Raphael;\\r\\n return R;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.st\\r\\n [ property (object) ]\\r\\n **\\r\\n * You can add your own method to elements and sets. It is wise to add a set method for each element method\\r\\n * you added, so you will be able to call the same method on sets too.\\r\\n **\\r\\n * See also @Raphael.el.\\r\\n > Usage\\r\\n | Raphael.el.red = function () {\\r\\n | this.attr({fill: \\\"#f00\\\"});\\r\\n | };\\r\\n | Raphael.st.red = function () {\\r\\n | this.forEach(function (el) {\\r\\n | el.red();\\r\\n | });\\r\\n | };\\r\\n | // then use it\\r\\n | paper.set(paper.circle(100, 100, 20), paper.circle(110, 100, 20)).red();\\r\\n \\\\*/\\r\\n R.st = setproto;\\r\\n\\r\\n eve.on(\\\"raphael.DOMload\\\", function () {\\r\\n loaded = true;\\r\\n });\\r\\n\\r\\n // Firefox <3.6 fix: http://webreflection.blogspot.com/2009/11/195-chars-to-help-lazy-loading.html\\r\\n (function (doc, loaded, f) {\\r\\n if (doc.readyState == null && doc.addEventListener){\\r\\n doc.addEventListener(loaded, f = function () {\\r\\n doc.removeEventListener(loaded, f, false);\\r\\n doc.readyState = \\\"complete\\\";\\r\\n }, false);\\r\\n doc.readyState = \\\"loading\\\";\\r\\n }\\r\\n function isLoaded() {\\r\\n (/in/).test(doc.readyState) ? setTimeout(isLoaded, 9) : R.eve(\\\"raphael.DOMload\\\");\\r\\n }\\r\\n isLoaded();\\r\\n })(document, \\\"DOMContentLoaded\\\");\\r\\n\\r\\n return R;\\r\\n}));\\r\\n\\r\\n// ┌─────────────────────────────────────────────────────────────────────┐ \\\\\\\\\\r\\n// │ Raphaël 2.1.4 - JavaScript Vector Library │ \\\\\\\\\\r\\n// ├─────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ SVG Module │ \\\\\\\\\\r\\n// ├─────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Copyright (c) 2008-2011 Dmitry Baranovskiy (http://raphaeljs.com) │ \\\\\\\\\\r\\n// │ Copyright (c) 2008-2011 Sencha Labs (http://sencha.com) │ \\\\\\\\\\r\\n// │ Licensed under the MIT (http://raphaeljs.com/license.html) license. │ \\\\\\\\\\r\\n// └─────────────────────────────────────────────────────────────────────┘ \\\\\\\\\\r\\n\\r\\n(function (glob, factory) {\\r\\n if (typeof define === \\\"function\\\" && define.amd) {\\r\\n define(\\\"raphael.svg\\\", [\\\"raphael.core\\\"], function(raphael) {\\r\\n return factory(raphael);\\r\\n });\\r\\n } else if (typeof exports === \\\"object\\\") {\\r\\n factory(require(\\\"./raphael.core\\\"));\\r\\n } else {\\r\\n factory(glob.Raphael);\\r\\n }\\r\\n}(this, function(R) {\\r\\n if (R && !R.svg) {\\r\\n return;\\r\\n }\\r\\n\\r\\n var has = \\\"hasOwnProperty\\\",\\r\\n Str = String,\\r\\n toFloat = parseFloat,\\r\\n toInt = parseInt,\\r\\n math = Math,\\r\\n mmax = math.max,\\r\\n abs = math.abs,\\r\\n pow = math.pow,\\r\\n separator = /[, ]+/,\\r\\n eve = R.eve,\\r\\n E = \\\"\\\",\\r\\n S = \\\" \\\";\\r\\n var xlink = \\\"http://www.w3.org/1999/xlink\\\",\\r\\n markers = {\\r\\n block: \\\"M5,0 0,2.5 5,5z\\\",\\r\\n classic: \\\"M5,0 0,2.5 5,5 3.5,3 3.5,2z\\\",\\r\\n diamond: \\\"M2.5,0 5,2.5 2.5,5 0,2.5z\\\",\\r\\n open: \\\"M6,1 1,3.5 6,6\\\",\\r\\n oval: \\\"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z\\\"\\r\\n },\\r\\n markerCounter = {};\\r\\n R.toString = function () {\\r\\n return \\\"Your browser supports SVG.\\\\nYou are running Rapha\\\\xebl \\\" + this.version;\\r\\n };\\r\\n var $ = function (el, attr) {\\r\\n if (attr) {\\r\\n if (typeof el == \\\"string\\\") {\\r\\n el = $(el);\\r\\n }\\r\\n for (var key in attr) if (attr[has](key)) {\\r\\n if (key.substring(0, 6) == \\\"xlink:\\\") {\\r\\n el.setAttributeNS(xlink, key.substring(6), Str(attr[key]));\\r\\n } else {\\r\\n el.setAttribute(key, Str(attr[key]));\\r\\n }\\r\\n }\\r\\n } else {\\r\\n el = R._g.doc.createElementNS(\\\"http://www.w3.org/2000/svg\\\", el);\\r\\n el.style && (el.style.webkitTapHighlightColor = \\\"rgba(0,0,0,0)\\\");\\r\\n }\\r\\n return el;\\r\\n },\\r\\n addGradientFill = function (element, gradient) {\\r\\n var type = \\\"linear\\\",\\r\\n id = element.id + gradient,\\r\\n fx = .5, fy = .5,\\r\\n o = element.node,\\r\\n SVG = element.paper,\\r\\n s = o.style,\\r\\n el = R._g.doc.getElementById(id);\\r\\n if (!el) {\\r\\n gradient = Str(gradient).replace(R._radial_gradient, function (all, _fx, _fy) {\\r\\n type = \\\"radial\\\";\\r\\n if (_fx && _fy) {\\r\\n fx = toFloat(_fx);\\r\\n fy = toFloat(_fy);\\r\\n var dir = ((fy > .5) * 2 - 1);\\r\\n pow(fx - .5, 2) + pow(fy - .5, 2) > .25 &&\\r\\n (fy = math.sqrt(.25 - pow(fx - .5, 2)) * dir + .5) &&\\r\\n fy != .5 &&\\r\\n (fy = fy.toFixed(5) - 1e-5 * dir);\\r\\n }\\r\\n return E;\\r\\n });\\r\\n gradient = gradient.split(/\\\\s*\\\\-\\\\s*/);\\r\\n if (type == \\\"linear\\\") {\\r\\n var angle = gradient.shift();\\r\\n angle = -toFloat(angle);\\r\\n if (isNaN(angle)) {\\r\\n return null;\\r\\n }\\r\\n var vector = [0, 0, math.cos(R.rad(angle)), math.sin(R.rad(angle))],\\r\\n max = 1 / (mmax(abs(vector[2]), abs(vector[3])) || 1);\\r\\n vector[2] *= max;\\r\\n vector[3] *= max;\\r\\n if (vector[2] < 0) {\\r\\n vector[0] = -vector[2];\\r\\n vector[2] = 0;\\r\\n }\\r\\n if (vector[3] < 0) {\\r\\n vector[1] = -vector[3];\\r\\n vector[3] = 0;\\r\\n }\\r\\n }\\r\\n var dots = R._parseDots(gradient);\\r\\n if (!dots) {\\r\\n return null;\\r\\n }\\r\\n id = id.replace(/[\\\\(\\\\)\\\\s,\\\\xb0#]/g, \\\"_\\\");\\r\\n\\r\\n if (element.gradient && id != element.gradient.id) {\\r\\n SVG.defs.removeChild(element.gradient);\\r\\n delete element.gradient;\\r\\n }\\r\\n\\r\\n if (!element.gradient) {\\r\\n el = $(type + \\\"Gradient\\\", {id: id});\\r\\n element.gradient = el;\\r\\n $(el, type == \\\"radial\\\" ? {\\r\\n fx: fx,\\r\\n fy: fy\\r\\n } : {\\r\\n x1: vector[0],\\r\\n y1: vector[1],\\r\\n x2: vector[2],\\r\\n y2: vector[3],\\r\\n gradientTransform: element.matrix.invert()\\r\\n });\\r\\n SVG.defs.appendChild(el);\\r\\n for (var i = 0, ii = dots.length; i < ii; i++) {\\r\\n el.appendChild($(\\\"stop\\\", {\\r\\n offset: dots[i].offset ? dots[i].offset : i ? \\\"100%\\\" : \\\"0%\\\",\\r\\n \\\"stop-color\\\": dots[i].color || \\\"#fff\\\",\\r\\n \\\"stop-opacity\\\": isFinite(dots[i].opacity) ? dots[i].opacity : 1\\r\\n }));\\r\\n }\\r\\n }\\r\\n }\\r\\n /* FREEGROUP: don't push URL parameter into the drawing. This will break Apps with \\\"?\\\" in the URL\\r\\n * see: https://github.com/DmitryBaranovskiy/raphael/issues/693\\r\\n **/\\r\\n var url =\\\"\\\";//document.location.protocol + \\\"//\\\" + document.location.host + document.location.pathname;\\r\\n $(o, {\\r\\n fill: \\\"url('\\\" + url + \\\"#\\\" + id + \\\"')\\\",\\r\\n opacity: 1,\\r\\n \\\"fill-opacity\\\": 1\\r\\n });\\r\\n\\r\\n s.fill = E;\\r\\n s.opacity = 1;\\r\\n s.fillOpacity = 1;\\r\\n return 1;\\r\\n },\\r\\n updatePosition = function (o) {\\r\\n var bbox = o.getBBox(1);\\r\\n $(o.pattern, {patternTransform: o.matrix.invert() + \\\" translate(\\\" + bbox.x + \\\",\\\" + bbox.y + \\\")\\\"});\\r\\n },\\r\\n addArrow = function (o, value, isEnd) {\\r\\n if (o.type == \\\"path\\\") {\\r\\n var values = Str(value).toLowerCase().split(\\\"-\\\"),\\r\\n p = o.paper,\\r\\n se = isEnd ? \\\"end\\\" : \\\"start\\\",\\r\\n node = o.node,\\r\\n attrs = o.attrs,\\r\\n stroke = attrs[\\\"stroke-width\\\"],\\r\\n i = values.length,\\r\\n type = \\\"classic\\\",\\r\\n from,\\r\\n to,\\r\\n dx,\\r\\n refX,\\r\\n attr,\\r\\n w = 3,\\r\\n h = 3,\\r\\n t = 5;\\r\\n while (i--) {\\r\\n switch (values[i]) {\\r\\n case \\\"block\\\":\\r\\n case \\\"classic\\\":\\r\\n case \\\"oval\\\":\\r\\n case \\\"diamond\\\":\\r\\n case \\\"open\\\":\\r\\n case \\\"none\\\":\\r\\n type = values[i];\\r\\n break;\\r\\n case \\\"wide\\\": h = 5; break;\\r\\n case \\\"narrow\\\": h = 2; break;\\r\\n case \\\"long\\\": w = 5; break;\\r\\n case \\\"short\\\": w = 2; break;\\r\\n }\\r\\n }\\r\\n if (type == \\\"open\\\") {\\r\\n w += 2;\\r\\n h += 2;\\r\\n t += 2;\\r\\n dx = 1;\\r\\n refX = isEnd ? 4 : 1;\\r\\n attr = {\\r\\n fill: \\\"none\\\",\\r\\n stroke: attrs.stroke\\r\\n };\\r\\n } else {\\r\\n refX = dx = w / 2;\\r\\n attr = {\\r\\n fill: attrs.stroke,\\r\\n stroke: \\\"none\\\"\\r\\n };\\r\\n }\\r\\n if (o._.arrows) {\\r\\n if (isEnd) {\\r\\n o._.arrows.endPath && markerCounter[o._.arrows.endPath]--;\\r\\n o._.arrows.endMarker && markerCounter[o._.arrows.endMarker]--;\\r\\n } else {\\r\\n o._.arrows.startPath && markerCounter[o._.arrows.startPath]--;\\r\\n o._.arrows.startMarker && markerCounter[o._.arrows.startMarker]--;\\r\\n }\\r\\n } else {\\r\\n o._.arrows = {};\\r\\n }\\r\\n if (type != \\\"none\\\") {\\r\\n var pathId = \\\"raphael-marker-\\\" + type,\\r\\n markerId = \\\"raphael-marker-\\\" + se + type + w + h + \\\"-obj\\\" + o.id;\\r\\n if (!R._g.doc.getElementById(pathId)) {\\r\\n p.defs.appendChild($($(\\\"path\\\"), {\\r\\n \\\"stroke-linecap\\\": \\\"round\\\",\\r\\n d: markers[type],\\r\\n id: pathId\\r\\n }));\\r\\n markerCounter[pathId] = 1;\\r\\n } else {\\r\\n markerCounter[pathId]++;\\r\\n }\\r\\n var marker = R._g.doc.getElementById(markerId),\\r\\n use;\\r\\n if (!marker) {\\r\\n marker = $($(\\\"marker\\\"), {\\r\\n id: markerId,\\r\\n markerHeight: h,\\r\\n markerWidth: w,\\r\\n orient: \\\"auto\\\",\\r\\n refX: refX,\\r\\n refY: h / 2\\r\\n });\\r\\n use = $($(\\\"use\\\"), {\\r\\n \\\"xlink:href\\\": \\\"#\\\" + pathId,\\r\\n transform: (isEnd ? \\\"rotate(180 \\\" + w / 2 + \\\" \\\" + h / 2 + \\\") \\\" : E) + \\\"scale(\\\" + w / t + \\\",\\\" + h / t + \\\")\\\",\\r\\n \\\"stroke-width\\\": (1 / ((w / t + h / t) / 2)).toFixed(4)\\r\\n });\\r\\n marker.appendChild(use);\\r\\n p.defs.appendChild(marker);\\r\\n markerCounter[markerId] = 1;\\r\\n } else {\\r\\n markerCounter[markerId]++;\\r\\n use = marker.getElementsByTagName(\\\"use\\\")[0];\\r\\n }\\r\\n $(use, attr);\\r\\n var delta = dx * (type != \\\"diamond\\\" && type != \\\"oval\\\");\\r\\n if (isEnd) {\\r\\n from = o._.arrows.startdx * stroke || 0;\\r\\n to = R.getTotalLength(attrs.path) - delta * stroke;\\r\\n } else {\\r\\n from = delta * stroke;\\r\\n to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);\\r\\n }\\r\\n attr = {};\\r\\n attr[\\\"marker-\\\" + se] = \\\"url(#\\\" + markerId + \\\")\\\";\\r\\n if (to || from) {\\r\\n attr.d = R.getSubpath(attrs.path, from, to);\\r\\n }\\r\\n $(node, attr);\\r\\n o._.arrows[se + \\\"Path\\\"] = pathId;\\r\\n o._.arrows[se + \\\"Marker\\\"] = markerId;\\r\\n o._.arrows[se + \\\"dx\\\"] = delta;\\r\\n o._.arrows[se + \\\"Type\\\"] = type;\\r\\n o._.arrows[se + \\\"String\\\"] = value;\\r\\n } else {\\r\\n if (isEnd) {\\r\\n from = o._.arrows.startdx * stroke || 0;\\r\\n to = R.getTotalLength(attrs.path) - from;\\r\\n } else {\\r\\n from = 0;\\r\\n to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);\\r\\n }\\r\\n o._.arrows[se + \\\"Path\\\"] && $(node, {d: R.getSubpath(attrs.path, from, to)});\\r\\n delete o._.arrows[se + \\\"Path\\\"];\\r\\n delete o._.arrows[se + \\\"Marker\\\"];\\r\\n delete o._.arrows[se + \\\"dx\\\"];\\r\\n delete o._.arrows[se + \\\"Type\\\"];\\r\\n delete o._.arrows[se + \\\"String\\\"];\\r\\n }\\r\\n for (attr in markerCounter) if (markerCounter[has](attr) && !markerCounter[attr]) {\\r\\n var item = R._g.doc.getElementById(attr);\\r\\n item && item.parentNode.removeChild(item);\\r\\n }\\r\\n }\\r\\n },\\r\\n dasharray = {\\r\\n \\\"-\\\": [3, 1],\\r\\n \\\".\\\": [1, 1],\\r\\n \\\"-.\\\": [3, 1, 1, 1],\\r\\n \\\"-..\\\": [3, 1, 1, 1, 1, 1],\\r\\n \\\". \\\": [1, 3],\\r\\n \\\"- \\\": [4, 3],\\r\\n \\\"--\\\": [8, 3],\\r\\n \\\"- .\\\": [4, 3, 1, 3],\\r\\n \\\"--.\\\": [8, 3, 1, 3],\\r\\n \\\"--..\\\": [8, 3, 1, 3, 1, 3]\\r\\n },\\r\\n addDashes = function (o, value, params) {\\r\\n value = dasharray[Str(value).toLowerCase()];\\r\\n if (value) {\\r\\n var width = o.attrs[\\\"stroke-width\\\"] || \\\"1\\\",\\r\\n butt = {round: width, square: width, butt: 0}[o.attrs[\\\"stroke-linecap\\\"] || params[\\\"stroke-linecap\\\"]] || 0,\\r\\n dashes = [],\\r\\n i = value.length;\\r\\n while (i--) {\\r\\n dashes[i] = value[i] * width + ((i % 2) ? 1 : -1) * butt;\\r\\n }\\r\\n $(o.node, {\\\"stroke-dasharray\\\": dashes.join(\\\",\\\")});\\r\\n }\\r\\n else {\\r\\n $(o.node, {\\\"stroke-dasharray\\\": \\\"none\\\"});\\r\\n }\\r\\n },\\r\\n setFillAndStroke = function (o, params) {\\r\\n var node = o.node,\\r\\n attrs = o.attrs,\\r\\n vis = node.style.visibility;\\r\\n node.style.visibility = \\\"hidden\\\";\\r\\n for (var att in params) {\\r\\n if (params[has](att)) {\\r\\n if (!R._availableAttrs[has](att)) {\\r\\n continue;\\r\\n }\\r\\n var value = params[att];\\r\\n attrs[att] = value;\\r\\n switch (att) {\\r\\n case \\\"blur\\\":\\r\\n o.blur(value);\\r\\n break;\\r\\n case \\\"title\\\":\\r\\n var title = node.getElementsByTagName(\\\"title\\\");\\r\\n\\r\\n // Use the existing .\\r\\n if (title.length && (title = title[0])) {\\r\\n title.firstChild.nodeValue = value;\\r\\n } else {\\r\\n title = $(\\\"title\\\");\\r\\n var val = R._g.doc.createTextNode(value);\\r\\n title.appendChild(val);\\r\\n node.appendChild(title);\\r\\n }\\r\\n break;\\r\\n case \\\"href\\\":\\r\\n case \\\"target\\\":\\r\\n var pn = node.parentNode;\\r\\n if (pn.tagName.toLowerCase() != \\\"a\\\") {\\r\\n var hl = $(\\\"a\\\");\\r\\n pn.insertBefore(hl, node);\\r\\n hl.appendChild(node);\\r\\n pn = hl;\\r\\n }\\r\\n if (att == \\\"target\\\") {\\r\\n pn.setAttributeNS(xlink, \\\"show\\\", value == \\\"blank\\\" ? \\\"new\\\" : value);\\r\\n } else {\\r\\n pn.setAttributeNS(xlink, att, value);\\r\\n }\\r\\n break;\\r\\n case \\\"cursor\\\":\\r\\n node.style.cursor = value;\\r\\n break;\\r\\n case \\\"transform\\\":\\r\\n o.transform(value);\\r\\n break;\\r\\n case \\\"arrow-start\\\":\\r\\n addArrow(o, value);\\r\\n break;\\r\\n case \\\"arrow-end\\\":\\r\\n addArrow(o, value, 1);\\r\\n break;\\r\\n case \\\"clip-rect\\\":\\r\\n var rect = Str(value).split(separator);\\r\\n if (rect.length == 4) {\\r\\n o.clip && o.clip.parentNode.parentNode.removeChild(o.clip.parentNode);\\r\\n var el = $(\\\"clipPath\\\"),\\r\\n rc = $(\\\"rect\\\");\\r\\n el.id = R.createUUID();\\r\\n $(rc, {\\r\\n x: rect[0],\\r\\n y: rect[1],\\r\\n width: rect[2],\\r\\n height: rect[3]\\r\\n });\\r\\n el.appendChild(rc);\\r\\n o.paper.defs.appendChild(el);\\r\\n $(node, {\\\"clip-path\\\": \\\"url(#\\\" + el.id + \\\")\\\"});\\r\\n o.clip = rc;\\r\\n }\\r\\n if (!value) {\\r\\n var path = node.getAttribute(\\\"clip-path\\\");\\r\\n if (path) {\\r\\n var clip = R._g.doc.getElementById(path.replace(/(^url\\\\(#|\\\\)$)/g, E));\\r\\n clip && clip.parentNode.removeChild(clip);\\r\\n $(node, {\\\"clip-path\\\": E});\\r\\n delete o.clip;\\r\\n }\\r\\n }\\r\\n break;\\r\\n case \\\"path\\\":\\r\\n if (o.type == \\\"path\\\") {\\r\\n $(node, {d: value ? attrs.path = R._pathToAbsolute(value) : \\\"M0,0\\\"});\\r\\n o._.dirty = 1;\\r\\n if (o._.arrows) {\\r\\n \\\"startString\\\" in o._.arrows && addArrow(o, o._.arrows.startString);\\r\\n \\\"endString\\\" in o._.arrows && addArrow(o, o._.arrows.endString, 1);\\r\\n }\\r\\n }\\r\\n break;\\r\\n case \\\"width\\\":\\r\\n node.setAttribute(att, value);\\r\\n o._.dirty = 1;\\r\\n if (attrs.fx) {\\r\\n att = \\\"x\\\";\\r\\n value = attrs.x;\\r\\n } else {\\r\\n break;\\r\\n }\\r\\n case \\\"x\\\":\\r\\n if (attrs.fx) {\\r\\n value = -attrs.x - (attrs.width || 0);\\r\\n }\\r\\n case \\\"rx\\\":\\r\\n if (att == \\\"rx\\\" && o.type == \\\"rect\\\") {\\r\\n break;\\r\\n }\\r\\n case \\\"cx\\\":\\r\\n node.setAttribute(att, value);\\r\\n o.pattern && updatePosition(o);\\r\\n o._.dirty = 1;\\r\\n break;\\r\\n case \\\"height\\\":\\r\\n node.setAttribute(att, value);\\r\\n o._.dirty = 1;\\r\\n if (attrs.fy) {\\r\\n att = \\\"y\\\";\\r\\n value = attrs.y;\\r\\n } else {\\r\\n break;\\r\\n }\\r\\n case \\\"y\\\":\\r\\n if (attrs.fy) {\\r\\n value = -attrs.y - (attrs.height || 0);\\r\\n }\\r\\n case \\\"ry\\\":\\r\\n if (att == \\\"ry\\\" && o.type == \\\"rect\\\") {\\r\\n break;\\r\\n }\\r\\n case \\\"cy\\\":\\r\\n node.setAttribute(att, value);\\r\\n o.pattern && updatePosition(o);\\r\\n o._.dirty = 1;\\r\\n break;\\r\\n case \\\"r\\\":\\r\\n if (o.type == \\\"rect\\\") {\\r\\n $(node, {rx: value, ry: value});\\r\\n } else {\\r\\n node.setAttribute(att, value);\\r\\n }\\r\\n o._.dirty = 1;\\r\\n break;\\r\\n case \\\"src\\\":\\r\\n if (o.type == \\\"image\\\") {\\r\\n node.setAttributeNS(xlink, \\\"href\\\", value);\\r\\n }\\r\\n break;\\r\\n case \\\"stroke-width\\\":\\r\\n /* FREEGROUP fix\\r\\n * draw2d version 3.0.3\\r\\n *\\r\\n * don't scale the line width if the user resize an shape/element.\\r\\n * Obscure stroke-width in case of \\\"Draw2D touch\\\" usage\\r\\n */\\r\\n if(!attrs[\\\"stroke-scale\\\"]){\\r\\n if (o._.sx != 1 || o._.sy != 1) {\\r\\n value /= mmax(abs(o._.sx), abs(o._.sy)) || 1;\\r\\n }\\r\\n if (o.paper._vbSize) {\\r\\n // value *= o.paper._vbSize;\\r\\n }\\r\\n }\\r\\n\\r\\n\\r\\n node.setAttribute(att, value);\\r\\n if (attrs[\\\"stroke-dasharray\\\"]) {\\r\\n addDashes(o, attrs[\\\"stroke-dasharray\\\"], params);\\r\\n }\\r\\n if (o._.arrows) {\\r\\n \\\"startString\\\" in o._.arrows && addArrow(o, o._.arrows.startString);\\r\\n \\\"endString\\\" in o._.arrows && addArrow(o, o._.arrows.endString, 1);\\r\\n }\\r\\n break;\\r\\n case \\\"stroke-dasharray\\\":\\r\\n addDashes(o, value, params);\\r\\n break;\\r\\n case \\\"fill\\\":\\r\\n var isURL = Str(value).match(R._ISURL);\\r\\n if (isURL) {\\r\\n el = $(\\\"pattern\\\");\\r\\n var ig = $(\\\"image\\\");\\r\\n el.id = R.createUUID();\\r\\n $(el, {x: 0, y: 0, patternUnits: \\\"userSpaceOnUse\\\", height: 1, width: 1});\\r\\n $(ig, {x: 0, y: 0, \\\"xlink:href\\\": isURL[1]});\\r\\n el.appendChild(ig);\\r\\n\\r\\n (function (el) {\\r\\n R._preload(isURL[1], function () {\\r\\n var w = this.offsetWidth,\\r\\n h = this.offsetHeight;\\r\\n $(el, {width: w, height: h});\\r\\n $(ig, {width: w, height: h});\\r\\n });\\r\\n })(el);\\r\\n o.paper.defs.appendChild(el);\\r\\n $(node, {fill: \\\"url(#\\\" + el.id + \\\")\\\"});\\r\\n o.pattern = el;\\r\\n o.pattern && updatePosition(o);\\r\\n break;\\r\\n }\\r\\n var clr = R.getRGB(value);\\r\\n if (!clr.error) {\\r\\n delete params.gradient;\\r\\n delete attrs.gradient;\\r\\n !R.is(attrs.opacity, \\\"undefined\\\") &&\\r\\n R.is(params.opacity, \\\"undefined\\\") &&\\r\\n $(node, {opacity: attrs.opacity});\\r\\n !R.is(attrs[\\\"fill-opacity\\\"], \\\"undefined\\\") &&\\r\\n R.is(params[\\\"fill-opacity\\\"], \\\"undefined\\\") &&\\r\\n $(node, {\\\"fill-opacity\\\": attrs[\\\"fill-opacity\\\"]});\\r\\n } else if ((o.type == \\\"circle\\\" || o.type == \\\"ellipse\\\" || Str(value).charAt() != \\\"r\\\") && addGradientFill(o, value)) {\\r\\n if (\\\"opacity\\\" in attrs || \\\"fill-opacity\\\" in attrs) {\\r\\n var gradient = R._g.doc.getElementById(node.getAttribute(\\\"fill\\\").replace(/^url\\\\(#|\\\\)$/g, E));\\r\\n if (gradient) {\\r\\n var stops = gradient.getElementsByTagName(\\\"stop\\\");\\r\\n $(stops[stops.length - 1], {\\\"stop-opacity\\\": (\\\"opacity\\\" in attrs ? attrs.opacity : 1) * (\\\"fill-opacity\\\" in attrs ? attrs[\\\"fill-opacity\\\"] : 1)});\\r\\n }\\r\\n }\\r\\n attrs.gradient = value;\\r\\n attrs.fill = \\\"none\\\";\\r\\n break;\\r\\n }\\r\\n clr[has](\\\"opacity\\\") && $(node, {\\\"fill-opacity\\\": clr.opacity > 1 ? clr.opacity / 100 : clr.opacity});\\r\\n case \\\"stroke\\\":\\r\\n clr = R.getRGB(value);\\r\\n node.setAttribute(att, clr.hex);\\r\\n att == \\\"stroke\\\" && clr[has](\\\"opacity\\\") && $(node, {\\\"stroke-opacity\\\": clr.opacity > 1 ? clr.opacity / 100 : clr.opacity});\\r\\n if (att == \\\"stroke\\\" && o._.arrows) {\\r\\n \\\"startString\\\" in o._.arrows && addArrow(o, o._.arrows.startString);\\r\\n \\\"endString\\\" in o._.arrows && addArrow(o, o._.arrows.endString, 1);\\r\\n }\\r\\n break;\\r\\n case \\\"gradient\\\":\\r\\n (o.type == \\\"circle\\\" || o.type == \\\"ellipse\\\" || Str(value).charAt() != \\\"r\\\") && addGradientFill(o, value);\\r\\n break;\\r\\n case \\\"opacity\\\":\\r\\n if (attrs.gradient && !attrs[has](\\\"stroke-opacity\\\")) {\\r\\n $(node, {\\\"stroke-opacity\\\": value > 1 ? value / 100 : value});\\r\\n }\\r\\n // fall\\r\\n case \\\"fill-opacity\\\":\\r\\n if (attrs.gradient) {\\r\\n gradient = R._g.doc.getElementById(node.getAttribute(\\\"fill\\\").replace(/^url\\\\(#|\\\\)$/g, E));\\r\\n if (gradient) {\\r\\n stops = gradient.getElementsByTagName(\\\"stop\\\");\\r\\n // FREEGROUP FIX\\r\\n for (gri = 0, grii = stops.length; gri < grii; gri++) {\\r\\n $(stops[gri], {\\\"stop-opacity\\\": value});\\r\\n }\\r\\n // END FIX\\r\\n }\\r\\n break;\\r\\n }\\r\\n default:\\r\\n att == \\\"font-size\\\" && (value = toInt(value, 10) + \\\"px\\\");\\r\\n var cssrule = att.replace(/(\\\\-.)/g, function (w) {\\r\\n return w.substring(1).toUpperCase();\\r\\n });\\r\\n node.style[cssrule] = value;\\r\\n o._.dirty = 1;\\r\\n node.setAttribute(att, value);\\r\\n break;\\r\\n }\\r\\n }\\r\\n }\\r\\n\\r\\n tuneText(o, params);\\r\\n node.style.visibility = vis;\\r\\n },\\r\\n leading = 1.2,\\r\\n tuneText = function (el, params) {\\r\\n if (el.type != \\\"text\\\" || !(params[has](\\\"text\\\") || params[has](\\\"font\\\") || params[has](\\\"font-size\\\") || params[has](\\\"x\\\") || params[has](\\\"y\\\"))) {\\r\\n return;\\r\\n }\\r\\n var a = el.attrs,\\r\\n node = el.node,\\r\\n fontSize = node.firstChild ? toInt(R._g.doc.defaultView.getComputedStyle(node.firstChild, E).getPropertyValue(\\\"font-size\\\"), 10) : 10;\\r\\n\\r\\n if (params[has](\\\"text\\\")) {\\r\\n a.text = params.text;\\r\\n while (node.firstChild) {\\r\\n node.removeChild(node.firstChild);\\r\\n }\\r\\n var texts = Str(params.text).split(\\\"\\\\n\\\"),\\r\\n tspans = [],\\r\\n tspan;\\r\\n for (var i = 0, ii = texts.length; i < ii; i++) {\\r\\n tspan = $(\\\"tspan\\\");\\r\\n i && $(tspan, {dy: fontSize * leading, x: a.x});\\r\\n tspan.appendChild(R._g.doc.createTextNode(texts[i]));\\r\\n node.appendChild(tspan);\\r\\n tspans[i] = tspan;\\r\\n }\\r\\n } else {\\r\\n tspans = node.getElementsByTagName(\\\"tspan\\\");\\r\\n for (i = 0, ii = tspans.length; i < ii; i++) if (i) {\\r\\n $(tspans[i], {dy: fontSize * leading, x: a.x});\\r\\n } else {\\r\\n $(tspans[0], {dy: 0});\\r\\n }\\r\\n }\\r\\n $(node, {x: a.x, y: a.y});\\r\\n el._.dirty = 1;\\r\\n var bb = el._getBBox(),\\r\\n dif = a.y - (bb.y + bb.height / 2);\\r\\n dif && R.is(dif, \\\"finite\\\") && $(tspans[0], {dy: dif});\\r\\n },\\r\\n getRealNode = function (node) {\\r\\n if (node.parentNode && node.parentNode.tagName.toLowerCase() === \\\"a\\\") {\\r\\n return node.parentNode;\\r\\n } else {\\r\\n return node;\\r\\n }\\r\\n },\\r\\n Element = function (node, svg) {\\r\\n var X = 0,\\r\\n Y = 0;\\r\\n /*\\\\\\r\\n * Element.node\\r\\n [ property (object) ]\\r\\n **\\r\\n * Gives you a reference to the DOM object, so you can assign event handlers or just mess around.\\r\\n **\\r\\n * Note: Don’t mess with it.\\r\\n > Usage\\r\\n | // draw a circle at coordinate 10,10 with radius of 10\\r\\n | var c = paper.circle(10, 10, 10);\\r\\n | c.node.onclick = function () {\\r\\n | c.attr(\\\"fill\\\", \\\"red\\\");\\r\\n | };\\r\\n \\\\*/\\r\\n this[0] = this.node = node;\\r\\n /*\\\\\\r\\n * Element.raphael\\r\\n [ property (object) ]\\r\\n **\\r\\n * Internal reference to @Raphael object. In case it is not available.\\r\\n > Usage\\r\\n | Raphael.el.red = function () {\\r\\n | var hsb = this.paper.raphael.rgb2hsb(this.attr(\\\"fill\\\"));\\r\\n | hsb.h = 1;\\r\\n | this.attr({fill: this.paper.raphael.hsb2rgb(hsb).hex});\\r\\n | }\\r\\n \\\\*/\\r\\n node.raphael = true;\\r\\n /*\\\\\\r\\n * Element.id\\r\\n [ property (number) ]\\r\\n **\\r\\n * Unique id of the element. Especially useful when you want to listen to events of the element,\\r\\n * because all events are fired in format `<module>.<action>.<id>`. Also useful for @Paper.getById method.\\r\\n \\\\*/\\r\\n this.id = R._oid++;\\r\\n node.raphaelid = this.id;\\r\\n this.matrix = R.matrix();\\r\\n this.realPath = null;\\r\\n /*\\\\\\r\\n * Element.paper\\r\\n [ property (object) ]\\r\\n **\\r\\n * Internal reference to “paper” where object drawn. Mainly for use in plugins and element extensions.\\r\\n > Usage\\r\\n | Raphael.el.cross = function () {\\r\\n | this.attr({fill: \\\"red\\\"});\\r\\n | this.paper.path(\\\"M10,10L50,50M50,10L10,50\\\")\\r\\n | .attr({stroke: \\\"red\\\"});\\r\\n | }\\r\\n \\\\*/\\r\\n this.paper = svg;\\r\\n this.attrs = this.attrs || {};\\r\\n this._ = {\\r\\n transform: [],\\r\\n sx: 1,\\r\\n sy: 1,\\r\\n deg: 0,\\r\\n dx: 0,\\r\\n dy: 0,\\r\\n dirty: 1\\r\\n };\\r\\n !svg.bottom && (svg.bottom = this);\\r\\n /*\\\\\\r\\n * Element.prev\\r\\n [ property (object) ]\\r\\n **\\r\\n * Reference to the previous element in the hierarchy.\\r\\n \\\\*/\\r\\n this.prev = svg.top;\\r\\n svg.top && (svg.top.next = this);\\r\\n svg.top = this;\\r\\n /*\\\\\\r\\n * Element.next\\r\\n [ property (object) ]\\r\\n **\\r\\n * Reference to the next element in the hierarchy.\\r\\n \\\\*/\\r\\n this.next = null;\\r\\n },\\r\\n elproto = R.el;\\r\\n\\r\\n Element.prototype = elproto;\\r\\n elproto.constructor = Element;\\r\\n\\r\\n R._engine.path = function (pathString, SVG) {\\r\\n var el = $(\\\"path\\\");\\r\\n SVG.canvas && SVG.canvas.appendChild(el);\\r\\n var p = new Element(el, SVG);\\r\\n p.type = \\\"path\\\";\\r\\n setFillAndStroke(p, {\\r\\n fill: \\\"none\\\",\\r\\n stroke: \\\"#000\\\",\\r\\n path: pathString\\r\\n });\\r\\n return p;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.rotate\\r\\n [ method ]\\r\\n **\\r\\n * Deprecated! Use @Element.transform instead.\\r\\n * Adds rotation by given angle around given point to the list of\\r\\n * transformations of the element.\\r\\n > Parameters\\r\\n - deg (number) angle in degrees\\r\\n - cx (number) #optional x coordinate of the centre of rotation\\r\\n - cy (number) #optional y coordinate of the centre of rotation\\r\\n * If cx & cy aren’t specified centre of the shape is used as a point of rotation.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.rotate = function (deg, cx, cy) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n deg = Str(deg).split(separator);\\r\\n if (deg.length - 1) {\\r\\n cx = toFloat(deg[1]);\\r\\n cy = toFloat(deg[2]);\\r\\n }\\r\\n deg = toFloat(deg[0]);\\r\\n (cy == null) && (cx = cy);\\r\\n if (cx == null || cy == null) {\\r\\n var bbox = this.getBBox(1);\\r\\n cx = bbox.x + bbox.width / 2;\\r\\n cy = bbox.y + bbox.height / 2;\\r\\n }\\r\\n this.transform(this._.transform.concat([[\\\"r\\\", deg, cx, cy]]));\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.scale\\r\\n [ method ]\\r\\n **\\r\\n * Deprecated! Use @Element.transform instead.\\r\\n * Adds scale by given amount relative to given point to the list of\\r\\n * transformations of the element.\\r\\n > Parameters\\r\\n - sx (number) horisontal scale amount\\r\\n - sy (number) vertical scale amount\\r\\n - cx (number) #optional x coordinate of the centre of scale\\r\\n - cy (number) #optional y coordinate of the centre of scale\\r\\n * If cx & cy aren’t specified centre of the shape is used instead.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.scale = function (sx, sy, cx, cy) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n sx = Str(sx).split(separator);\\r\\n if (sx.length - 1) {\\r\\n sy = toFloat(sx[1]);\\r\\n cx = toFloat(sx[2]);\\r\\n cy = toFloat(sx[3]);\\r\\n }\\r\\n sx = toFloat(sx[0]);\\r\\n (sy == null) && (sy = sx);\\r\\n (cy == null) && (cx = cy);\\r\\n if (cx == null || cy == null) {\\r\\n var bbox = this.getBBox(1);\\r\\n }\\r\\n cx = cx == null ? bbox.x + bbox.width / 2 : cx;\\r\\n cy = cy == null ? bbox.y + bbox.height / 2 : cy;\\r\\n this.transform(this._.transform.concat([[\\\"s\\\", sx, sy, cx, cy]]));\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.translate\\r\\n [ method ]\\r\\n **\\r\\n * Deprecated! Use @Element.transform instead.\\r\\n * Adds translation by given amount to the list of transformations of the element.\\r\\n > Parameters\\r\\n - dx (number) horisontal shift\\r\\n - dy (number) vertical shift\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.translate = function (dx, dy) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n dx = Str(dx).split(separator);\\r\\n if (dx.length - 1) {\\r\\n dy = toFloat(dx[1]);\\r\\n }\\r\\n dx = toFloat(dx[0]) || 0;\\r\\n dy = +dy || 0;\\r\\n this.transform(this._.transform.concat([[\\\"t\\\", dx, dy]]));\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.transform\\r\\n [ method ]\\r\\n **\\r\\n * Adds transformation to the element which is separate to other attributes,\\r\\n * i.e. translation doesn’t change `x` or `y` of the rectange. The format\\r\\n * of transformation string is similar to the path string syntax:\\r\\n | \\\"t100,100r30,100,100s2,2,100,100r45s1.5\\\"\\r\\n * Each letter is a command. There are four commands: `t` is for translate, `r` is for rotate, `s` is for\\r\\n * scale and `m` is for matrix.\\r\\n *\\r\\n * There are also alternative “absolute” translation, rotation and scale: `T`, `R` and `S`. They will not take previous transformation into account. For example, `...T100,0` will always move element 100 px horisontally, while `...t100,0` could move it vertically if there is `r90` before. Just compare results of `r90t100,0` and `r90T100,0`.\\r\\n *\\r\\n * So, the example line above could be read like “translate by 100, 100; rotate 30° around 100, 100; scale twice around 100, 100;\\r\\n * rotate 45° around centre; scale 1.5 times relative to centre”. As you can see rotate and scale commands have origin\\r\\n * coordinates as optional parameters, the default is the centre point of the element.\\r\\n * Matrix accepts six parameters.\\r\\n > Usage\\r\\n | var el = paper.rect(10, 20, 300, 200);\\r\\n | // translate 100, 100, rotate 45°, translate -100, 0\\r\\n | el.transform(\\\"t100,100r45t-100,0\\\");\\r\\n | // if you want you can append or prepend transformations\\r\\n | el.transform(\\\"...t50,50\\\");\\r\\n | el.transform(\\\"s2...\\\");\\r\\n | // or even wrap\\r\\n | el.transform(\\\"t50,50...t-50-50\\\");\\r\\n | // to reset transformation call method with empty string\\r\\n | el.transform(\\\"\\\");\\r\\n | // to get current value call it without parameters\\r\\n | console.log(el.transform());\\r\\n > Parameters\\r\\n - tstr (string) #optional transformation string\\r\\n * If tstr isn’t specified\\r\\n = (string) current transformation string\\r\\n * else\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.transform = function (tstr) {\\r\\n var _ = this._;\\r\\n if (tstr == null) {\\r\\n return _.transform;\\r\\n }\\r\\n R._extractTransform(this, tstr);\\r\\n\\r\\n this.clip && $(this.clip, {transform: this.matrix.invert()});\\r\\n this.pattern && updatePosition(this);\\r\\n this.node && $(this.node, {transform: this.matrix});\\r\\n\\r\\n if (_.sx != 1 || _.sy != 1) {\\r\\n var sw = this.attrs[has](\\\"stroke-width\\\") ? this.attrs[\\\"stroke-width\\\"] : 1;\\r\\n this.attr({\\\"stroke-width\\\": sw});\\r\\n }\\r\\n\\r\\n //Reduce transform string\\r\\n _.transform = this.matrix.toTransformString();\\r\\n\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.hide\\r\\n [ method ]\\r\\n **\\r\\n * Makes element invisible. See @Element.show.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.hide = function () {\\r\\n if(!this.removed) this.node.style.display = \\\"none\\\";\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.show\\r\\n [ method ]\\r\\n **\\r\\n * Makes element visible. See @Element.hide.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.show = function () {\\r\\n if(!this.removed) this.node.style.display = \\\"\\\";\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.remove\\r\\n [ method ]\\r\\n **\\r\\n * Removes element from the paper.\\r\\n \\\\*/\\r\\n elproto.remove = function () {\\r\\n var node = getRealNode(this.node);\\r\\n if (this.removed || !node.parentNode) {\\r\\n return;\\r\\n }\\r\\n var paper = this.paper;\\r\\n paper.__set__ && paper.__set__.exclude(this);\\r\\n eve.unbind(\\\"raphael.*.*.\\\" + this.id);\\r\\n if (this.gradient) {\\r\\n paper.defs.removeChild(this.gradient);\\r\\n }\\r\\n R._tear(this, paper);\\r\\n\\r\\n node.parentNode.removeChild(node);\\r\\n\\r\\n // Remove custom data for element\\r\\n this.removeData();\\r\\n\\r\\n for (var i in this) {\\r\\n this[i] = typeof this[i] == \\\"function\\\" ? R._removedFactory(i) : null;\\r\\n }\\r\\n this.removed = true;\\r\\n };\\r\\n elproto._getBBox = function () {\\r\\n if (this.node.style.display == \\\"none\\\") {\\r\\n this.show();\\r\\n var hide = true;\\r\\n }\\r\\n var canvasHidden = false,\\r\\n containerStyle;\\r\\n if (this.paper.canvas.parentElement) {\\r\\n containerStyle = this.paper.canvas.parentElement.style;\\r\\n } //IE10+ can't find parentElement\\r\\n else if (this.paper.canvas.parentNode) {\\r\\n containerStyle = this.paper.canvas.parentNode.style;\\r\\n }\\r\\n\\r\\n if(containerStyle && containerStyle.display == \\\"none\\\") {\\r\\n canvasHidden = true;\\r\\n containerStyle.display = \\\"\\\";\\r\\n }\\r\\n var bbox = {};\\r\\n try {\\r\\n bbox = this.node.getBBox();\\r\\n } catch(e) {\\r\\n // Firefox 3.0.x, 25.0.1 (probably more versions affected) play badly here - possible fix\\r\\n bbox = {\\r\\n x: this.node.clientLeft,\\r\\n y: this.node.clientTop,\\r\\n width: this.node.clientWidth,\\r\\n height: this.node.clientHeight\\r\\n }\\r\\n } finally {\\r\\n bbox = bbox || {};\\r\\n if(canvasHidden){\\r\\n containerStyle.display = \\\"none\\\";\\r\\n }\\r\\n }\\r\\n hide && this.hide();\\r\\n return bbox;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.attr\\r\\n [ method ]\\r\\n **\\r\\n * Sets the attributes of the element.\\r\\n > Parameters\\r\\n - attrName (string) attribute’s name\\r\\n - value (string) value\\r\\n * or\\r\\n - params (object) object of name/value pairs\\r\\n * or\\r\\n - attrName (string) attribute’s name\\r\\n * or\\r\\n - attrNames (array) in this case method returns array of current values for given attribute names\\r\\n = (object) @Element if attrsName & value or params are passed in.\\r\\n = (...) value of the attribute if only attrsName is passed in.\\r\\n = (array) array of values of the attribute if attrsNames is passed in.\\r\\n = (object) object of attributes if nothing is passed in.\\r\\n > Possible parameters\\r\\n # <p>Please refer to the <a href=\\\"http://www.w3.org/TR/SVG/\\\" title=\\\"The W3C Recommendation for the SVG language describes these properties in detail.\\\">SVG specification</a> for an explanation of these parameters.</p>\\r\\n o arrow-end (string) arrowhead on the end of the path. The format for string is `<type>[-<width>[-<length>]]`. Possible types: `classic`, `block`, `open`, `oval`, `diamond`, `none`, width: `wide`, `narrow`, `medium`, length: `long`, `short`, `midium`.\\r\\n o clip-rect (string) comma or space separated values: x, y, width and height\\r\\n o cursor (string) CSS type of the cursor\\r\\n o cx (number) the x-axis coordinate of the center of the circle, or ellipse\\r\\n o cy (number) the y-axis coordinate of the center of the circle, or ellipse\\r\\n o fill (string) colour, gradient or image\\r\\n o fill-opacity (number)\\r\\n o font (string)\\r\\n o font-family (string)\\r\\n o font-size (number) font size in pixels\\r\\n o font-weight (string)\\r\\n o height (number)\\r\\n o href (string) URL, if specified element behaves as hyperlink\\r\\n o opacity (number)\\r\\n o path (string) SVG path string format\\r\\n o r (number) radius of the circle, ellipse or rounded corner on the rect\\r\\n o rx (number) horisontal radius of the ellipse\\r\\n o ry (number) vertical radius of the ellipse\\r\\n o src (string) image URL, only works for @Element.image element\\r\\n o stroke (string) stroke colour\\r\\n o stroke-dasharray (string) [“”, “none”, “`-`”, “`.`”, “`-.`”, “`-..`”, “`. `”, “`- `”, “`--`”, “`- .`”, “`--.`”, “`--..`”]\\r\\n o stroke-linecap (string) [“`butt`”, “`square`”, “`round`”]\\r\\n o stroke-linejoin (string) [“`bevel`”, “`round`”, “`miter`”]\\r\\n o stroke-miterlimit (number)\\r\\n o stroke-opacity (number)\\r\\n o stroke-width (number) stroke width in pixels, default is '1'\\r\\n o target (string) used with href\\r\\n o text (string) contents of the text element. Use `\\\\n` for multiline text\\r\\n o text-anchor (string) [“`start`”, “`middle`”, “`end`”], default is “`middle`”\\r\\n o title (string) will create tooltip with a given text\\r\\n o transform (string) see @Element.transform\\r\\n o width (number)\\r\\n o x (number)\\r\\n o y (number)\\r\\n > Gradients\\r\\n * Linear gradient format: “`‹angle›-‹colour›[-‹colour›[:‹offset›]]*-‹colour›`”, example: “`90-#fff-#000`” – 90°\\r\\n * gradient from white to black or “`0-#fff-#f00:20-#000`” – 0° gradient from white via red (at 20%) to black.\\r\\n *\\r\\n * radial gradient: “`r[(‹fx›, ‹fy›)]‹colour›[-‹colour›[:‹offset›]]*-‹colour›`”, example: “`r#fff-#000`” –\\r\\n * gradient from white to black or “`r(0.25, 0.75)#fff-#000`” – gradient from white to black with focus point\\r\\n * at 0.25, 0.75. Focus point coordinates are in 0..1 range. Radial gradients can only be applied to circles and ellipses.\\r\\n > Path String\\r\\n # <p>Please refer to <a href=\\\"http://www.w3.org/TR/SVG/paths.html#PathData\\\" title=\\\"Details of a path’s data attribute’s format are described in the SVG specification.\\\">SVG documentation regarding path string</a>. Raphaël fully supports it.</p>\\r\\n > Colour Parsing\\r\\n # <ul>\\r\\n # <li>Colour name (“<code>red</code>”, “<code>green</code>”, “<code>cornflowerblue</code>”, etc)</li>\\r\\n # <li>#••• — shortened HTML colour: (“<code>#000</code>”, “<code>#fc0</code>”, etc)</li>\\r\\n # <li>#•••••• — full length HTML colour: (“<code>#000000</code>”, “<code>#bd2300</code>”)</li>\\r\\n # <li>rgb(•••, •••, •••) — red, green and blue channels’ values: (“<code>rgb(200, 100, 0)</code>”)</li>\\r\\n # <li>rgb(•••%, •••%, •••%) — same as above, but in %: (“<code>rgb(100%, 175%, 0%)</code>”)</li>\\r\\n # <li>rgba(•••, •••, •••, •••) — red, green and blue channels’ values: (“<code>rgba(200, 100, 0, .5)</code>”)</li>\\r\\n # <li>rgba(•••%, •••%, •••%, •••%) — same as above, but in %: (“<code>rgba(100%, 175%, 0%, 50%)</code>”)</li>\\r\\n # <li>hsb(•••, •••, •••) — hue, saturation and brightness values: (“<code>hsb(0.5, 0.25, 1)</code>”)</li>\\r\\n # <li>hsb(•••%, •••%, •••%) — same as above, but in %</li>\\r\\n # <li>hsba(•••, •••, •••, •••) — same as above, but with opacity</li>\\r\\n # <li>hsl(•••, •••, •••) — almost the same as hsb, see <a href=\\\"http://en.wikipedia.org/wiki/HSL_and_HSV\\\" title=\\\"HSL and HSV - Wikipedia, the free encyclopedia\\\">Wikipedia page</a></li>\\r\\n # <li>hsl(•••%, •••%, •••%) — same as above, but in %</li>\\r\\n # <li>hsla(•••, •••, •••, •••) — same as above, but with opacity</li>\\r\\n # <li>Optionally for hsb and hsl you could specify hue as a degree: “<code>hsl(240deg, 1, .5)</code>” or, if you want to go fancy, “<code>hsl(240°, 1, .5)</code>”</li>\\r\\n # </ul>\\r\\n \\\\*/\\r\\n elproto.attr = function (name, value) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n if (name == null) {\\r\\n var res = {};\\r\\n for (var a in this.attrs) if (this.attrs[has](a)) {\\r\\n res[a] = this.attrs[a];\\r\\n }\\r\\n res.gradient && res.fill == \\\"none\\\" && (res.fill = res.gradient) && delete res.gradient;\\r\\n res.transform = this._.transform;\\r\\n return res;\\r\\n }\\r\\n if (value == null && R.is(name, \\\"string\\\")) {\\r\\n if (name == \\\"fill\\\" && this.attrs.fill == \\\"none\\\" && this.attrs.gradient) {\\r\\n return this.attrs.gradient;\\r\\n }\\r\\n if (name == \\\"transform\\\") {\\r\\n return this._.transform;\\r\\n }\\r\\n var names = name.split(separator),\\r\\n out = {};\\r\\n for (var i = 0, ii = names.length; i < ii; i++) {\\r\\n name = names[i];\\r\\n if (name in this.attrs) {\\r\\n out[name] = this.attrs[name];\\r\\n } else if (R.is(this.paper.customAttributes[name], \\\"function\\\")) {\\r\\n out[name] = this.paper.customAttributes[name].def;\\r\\n } else {\\r\\n out[name] = R._availableAttrs[name];\\r\\n }\\r\\n }\\r\\n return ii - 1 ? out : out[names[0]];\\r\\n }\\r\\n if (value == null && R.is(name, \\\"array\\\")) {\\r\\n out = {};\\r\\n for (i = 0, ii = name.length; i < ii; i++) {\\r\\n out[name[i]] = this.attr(name[i]);\\r\\n }\\r\\n return out;\\r\\n }\\r\\n if (value != null) {\\r\\n var params = {};\\r\\n params[name] = value;\\r\\n } else if (name != null && R.is(name, \\\"object\\\")) {\\r\\n params = name;\\r\\n }\\r\\n for (var key in params) {\\r\\n eve(\\\"raphael.attr.\\\" + key + \\\".\\\" + this.id, this, params[key]);\\r\\n }\\r\\n for (key in this.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], \\\"function\\\")) {\\r\\n var par = this.paper.customAttributes[key].apply(this, [].concat(params[key]));\\r\\n this.attrs[key] = params[key];\\r\\n for (var subkey in par) if (par[has](subkey)) {\\r\\n params[subkey] = par[subkey];\\r\\n }\\r\\n }\\r\\n setFillAndStroke(this, params);\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.toFront\\r\\n [ method ]\\r\\n **\\r\\n * Moves the element so it is the closest to the viewer’s eyes, on top of other elements.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.toFront = function () {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n var node = getRealNode(this.node);\\r\\n node.parentNode.appendChild(node);\\r\\n var svg = this.paper;\\r\\n svg.top != this && R._tofront(this, svg);\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.toBack\\r\\n [ method ]\\r\\n **\\r\\n * Moves the element so it is the furthest from the viewer’s eyes, behind other elements.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.toBack = function () {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n var node = getRealNode(this.node);\\r\\n var parentNode = node.parentNode;\\r\\n parentNode.insertBefore(node, parentNode.firstChild);\\r\\n R._toback(this, this.paper);\\r\\n var svg = this.paper;\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.insertAfter\\r\\n [ method ]\\r\\n **\\r\\n * Inserts current object after the given one.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.insertAfter = function (element) {\\r\\n if (this.removed || !element) {\\r\\n return this;\\r\\n }\\r\\n\\r\\n var node = getRealNode(this.node);\\r\\n var afterNode = getRealNode(element.node || element[element.length - 1].node);\\r\\n if (afterNode.nextSibling) {\\r\\n afterNode.parentNode.insertBefore(node, afterNode.nextSibling);\\r\\n } else {\\r\\n afterNode.parentNode.appendChild(node);\\r\\n }\\r\\n R._insertafter(this, element, this.paper);\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.insertBefore\\r\\n [ method ]\\r\\n **\\r\\n * Inserts current object before the given one.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.insertBefore = function (element) {\\r\\n if (this.removed || !element) {\\r\\n return this;\\r\\n }\\r\\n\\r\\n var node = getRealNode(this.node);\\r\\n var beforeNode = getRealNode(element.node || element[0].node);\\r\\n beforeNode.parentNode.insertBefore(node, beforeNode);\\r\\n R._insertbefore(this, element, this.paper);\\r\\n return this;\\r\\n };\\r\\n elproto.blur = function (size) {\\r\\n // Experimental. No Safari support. Use it on your own risk.\\r\\n var t = this;\\r\\n if (+size !== 0) {\\r\\n var fltr = $(\\\"filter\\\"),\\r\\n blur = $(\\\"feGaussianBlur\\\");\\r\\n t.attrs.blur = size;\\r\\n fltr.id = R.createUUID();\\r\\n $(blur, {stdDeviation: +size || 1.5});\\r\\n fltr.appendChild(blur);\\r\\n t.paper.defs.appendChild(fltr);\\r\\n t._blur = fltr;\\r\\n $(t.node, {filter: \\\"url(#\\\" + fltr.id + \\\")\\\"});\\r\\n } else {\\r\\n if (t._blur) {\\r\\n t._blur.parentNode.removeChild(t._blur);\\r\\n delete t._blur;\\r\\n delete t.attrs.blur;\\r\\n }\\r\\n t.node.removeAttribute(\\\"filter\\\");\\r\\n }\\r\\n return t;\\r\\n };\\r\\n R._engine.circle = function (svg, x, y, r) {\\r\\n var el = $(\\\"circle\\\");\\r\\n svg.canvas && svg.canvas.appendChild(el);\\r\\n var res = new Element(el, svg);\\r\\n res.attrs = {cx: x, cy: y, r: r, fill: \\\"none\\\", stroke: \\\"#000\\\"};\\r\\n res.type = \\\"circle\\\";\\r\\n $(el, res.attrs);\\r\\n return res;\\r\\n };\\r\\n R._engine.rect = function (svg, x, y, w, h, r) {\\r\\n var el = $(\\\"rect\\\");\\r\\n svg.canvas && svg.canvas.appendChild(el);\\r\\n var res = new Element(el, svg);\\r\\n res.attrs = {x: x, y: y, width: w, height: h, rx: r || 0, ry: r || 0, fill: \\\"none\\\", stroke: \\\"#000\\\"};\\r\\n res.type = \\\"rect\\\";\\r\\n $(el, res.attrs);\\r\\n return res;\\r\\n };\\r\\n R._engine.ellipse = function (svg, x, y, rx, ry) {\\r\\n var el = $(\\\"ellipse\\\");\\r\\n svg.canvas && svg.canvas.appendChild(el);\\r\\n var res = new Element(el, svg);\\r\\n res.attrs = {cx: x, cy: y, rx: rx, ry: ry, fill: \\\"none\\\", stroke: \\\"#000\\\"};\\r\\n res.type = \\\"ellipse\\\";\\r\\n $(el, res.attrs);\\r\\n return res;\\r\\n };\\r\\n R._engine.image = function (svg, src, x, y, w, h) {\\r\\n var el = $(\\\"image\\\");\\r\\n $(el, {x: x, y: y, width: w, height: h, preserveAspectRatio: \\\"none\\\"});\\r\\n el.setAttributeNS(xlink, \\\"href\\\", src);\\r\\n svg.canvas && svg.canvas.appendChild(el);\\r\\n var res = new Element(el, svg);\\r\\n res.attrs = {x: x, y: y, width: w, height: h, src: src};\\r\\n res.type = \\\"image\\\";\\r\\n return res;\\r\\n };\\r\\n R._engine.text = function (svg, x, y, text) {\\r\\n var el = $(\\\"text\\\");\\r\\n svg.canvas && svg.canvas.appendChild(el);\\r\\n var res = new Element(el, svg);\\r\\n res.attrs = {\\r\\n x: x,\\r\\n y: y,\\r\\n \\\"text-anchor\\\": \\\"middle\\\",\\r\\n text: text,\\r\\n \\\"font-family\\\": R._availableAttrs[\\\"font-family\\\"],\\r\\n \\\"font-size\\\": R._availableAttrs[\\\"font-size\\\"],\\r\\n stroke: \\\"none\\\",\\r\\n fill: \\\"#000\\\"\\r\\n };\\r\\n res.type = \\\"text\\\";\\r\\n setFillAndStroke(res, res.attrs);\\r\\n return res;\\r\\n };\\r\\n R._engine.setSize = function (width, height) {\\r\\n this.width = width || this.width;\\r\\n this.height = height || this.height;\\r\\n this.canvas.setAttribute(\\\"width\\\", this.width);\\r\\n this.canvas.setAttribute(\\\"height\\\", this.height);\\r\\n if (this._viewBox) {\\r\\n this.setViewBox.apply(this, this._viewBox);\\r\\n }\\r\\n return this;\\r\\n };\\r\\n R._engine.create = function () {\\r\\n var con = R._getContainer.apply(0, arguments),\\r\\n container = con && con.container,\\r\\n x = con.x,\\r\\n y = con.y,\\r\\n width = con.width,\\r\\n height = con.height;\\r\\n if (!container) {\\r\\n throw new Error(\\\"SVG container not found.\\\");\\r\\n }\\r\\n var cnvs = $(\\\"svg\\\"),\\r\\n css = \\\"overflow:hidden;\\\",\\r\\n isFloating;\\r\\n x = x || 0;\\r\\n y = y || 0;\\r\\n width = width || 512;\\r\\n height = height || 342;\\r\\n $(cnvs, {\\r\\n height: height,\\r\\n version: 1.1,\\r\\n width: width,\\r\\n xmlns: \\\"http://www.w3.org/2000/svg\\\",\\r\\n \\\"xmlns:xlink\\\": \\\"http://www.w3.org/1999/xlink\\\"\\r\\n });\\r\\n if (container == 1) {\\r\\n cnvs.style.cssText = css + \\\"position:absolute;left:\\\" + x + \\\"px;top:\\\" + y + \\\"px\\\";\\r\\n R._g.doc.body.appendChild(cnvs);\\r\\n isFloating = 1;\\r\\n } else {\\r\\n cnvs.style.cssText = css + \\\"position:relative\\\";\\r\\n if (container.firstChild) {\\r\\n container.insertBefore(cnvs, container.firstChild);\\r\\n } else {\\r\\n container.appendChild(cnvs);\\r\\n }\\r\\n }\\r\\n container = new R._Paper;\\r\\n container.width = width;\\r\\n container.height = height;\\r\\n container.canvas = cnvs;\\r\\n container.clear();\\r\\n container._left = container._top = 0;\\r\\n isFloating && (container.renderfix = function () {});\\r\\n container.renderfix();\\r\\n return container;\\r\\n };\\r\\n R._engine.setViewBox = function (x, y, w, h, fit) {\\r\\n eve(\\\"raphael.setViewBox\\\", this, this._viewBox, [x, y, w, h, fit]);\\r\\n var paperSize = this.getSize(),\\r\\n size = mmax(w / paperSize.width, h / paperSize.height),\\r\\n top = this.top,\\r\\n aspectRatio = fit ? \\\"xMidYMid meet\\\" : \\\"xMinYMin\\\",\\r\\n vb,\\r\\n sw;\\r\\n if (x == null) {\\r\\n if (this._vbSize) {\\r\\n size = 1;\\r\\n }\\r\\n delete this._vbSize;\\r\\n vb = \\\"0 0 \\\" + this.width + S + this.height;\\r\\n } else {\\r\\n this._vbSize = size;\\r\\n vb = x + S + y + S + w + S + h;\\r\\n }\\r\\n $(this.canvas, {\\r\\n viewBox: vb,\\r\\n preserveAspectRatio: aspectRatio\\r\\n });\\r\\n while (size && top) {\\r\\n sw = \\\"stroke-width\\\" in top.attrs ? top.attrs[\\\"stroke-width\\\"] : 1;\\r\\n top.attr({\\\"stroke-width\\\": sw});\\r\\n top._.dirty = 1;\\r\\n top._.dirtyT = 1;\\r\\n top = top.prev;\\r\\n }\\r\\n this._viewBox = [x, y, w, h, !!fit];\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.renderfix\\r\\n [ method ]\\r\\n **\\r\\n * Fixes the issue of Firefox and IE9 regarding subpixel rendering. If paper is dependant\\r\\n * on other elements after reflow it could shift half pixel which cause for lines to lost their crispness.\\r\\n * This method fixes the issue.\\r\\n **\\r\\n Special thanks to Mariusz Nowak (http://www.medikoo.com/) for this method.\\r\\n \\\\*/\\r\\n R.prototype.renderfix = function () {\\r\\n var cnvs = this.canvas,\\r\\n s = cnvs.style,\\r\\n pos;\\r\\n try {\\r\\n pos = cnvs.getScreenCTM() || cnvs.createSVGMatrix();\\r\\n } catch (e) {\\r\\n pos = cnvs.createSVGMatrix();\\r\\n }\\r\\n var left = -pos.e % 1,\\r\\n top = -pos.f % 1;\\r\\n if (left || top) {\\r\\n if (left) {\\r\\n this._left = (this._left + left) % 1;\\r\\n s.left = this._left + \\\"px\\\";\\r\\n }\\r\\n if (top) {\\r\\n this._top = (this._top + top) % 1;\\r\\n s.top = this._top + \\\"px\\\";\\r\\n }\\r\\n }\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.clear\\r\\n [ method ]\\r\\n **\\r\\n * Clears the paper, i.e. removes all the elements.\\r\\n \\\\*/\\r\\n R.prototype.clear = function () {\\r\\n R.eve(\\\"raphael.clear\\\", this);\\r\\n var c = this.canvas;\\r\\n while (c.firstChild) {\\r\\n c.removeChild(c.firstChild);\\r\\n }\\r\\n this.bottom = this.top = null;\\r\\n (this.desc = $(\\\"desc\\\")).appendChild(R._g.doc.createTextNode(\\\"Created with Rapha\\\\xebl \\\" + R.version));\\r\\n c.appendChild(this.desc);\\r\\n c.appendChild(this.defs = $(\\\"defs\\\"));\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.remove\\r\\n [ method ]\\r\\n **\\r\\n * Removes the paper from the DOM.\\r\\n \\\\*/\\r\\n R.prototype.remove = function () {\\r\\n eve(\\\"raphael.remove\\\", this);\\r\\n this.canvas.parentNode && this.canvas.parentNode.removeChild(this.canvas);\\r\\n for (var i in this) {\\r\\n this[i] = typeof this[i] == \\\"function\\\" ? R._removedFactory(i) : null;\\r\\n }\\r\\n };\\r\\n var setproto = R.st;\\r\\n for (var method in elproto) if (elproto[has](method) && !setproto[has](method)) {\\r\\n setproto[method] = (function (methodname) {\\r\\n return function () {\\r\\n var arg = arguments;\\r\\n return this.forEach(function (el) {\\r\\n el[methodname].apply(el, arg);\\r\\n });\\r\\n };\\r\\n })(method);\\r\\n }\\r\\n}));\\r\\n\\r\\n// ┌─────────────────────────────────────────────────────────────────────┐ \\\\\\\\\\r\\n// │ Raphaël 2.1.4 - JavaScript Vector Library │ \\\\\\\\\\r\\n// ├─────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ VML Module │ \\\\\\\\\\r\\n// ├─────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Copyright (c) 2008-2011 Dmitry Baranovskiy (http://raphaeljs.com) │ \\\\\\\\\\r\\n// │ Copyright (c) 2008-2011 Sencha Labs (http://sencha.com) │ \\\\\\\\\\r\\n// │ Licensed under the MIT (http://raphaeljs.com/license.html) license. │ \\\\\\\\\\r\\n// └─────────────────────────────────────────────────────────────────────┘ \\\\\\\\\\r\\n\\r\\n(function (glob, factory) {\\r\\n if (typeof define === \\\"function\\\" && define.amd) {\\r\\n define(\\\"raphael.vml\\\", [\\\"raphael.core\\\"], function(raphael) {\\r\\n return factory(raphael);\\r\\n });\\r\\n } else if (typeof exports === \\\"object\\\") {\\r\\n factory(require(\\\"./raphael.core\\\"));\\r\\n } else {\\r\\n factory(glob.Raphael);\\r\\n }\\r\\n}(this, function(R) {\\r\\n if (R && !R.vml) {\\r\\n return;\\r\\n }\\r\\n\\r\\n var has = \\\"hasOwnProperty\\\",\\r\\n Str = String,\\r\\n toFloat = parseFloat,\\r\\n math = Math,\\r\\n round = math.round,\\r\\n mmax = math.max,\\r\\n mmin = math.min,\\r\\n abs = math.abs,\\r\\n fillString = \\\"fill\\\",\\r\\n separator = /[, ]+/,\\r\\n eve = R.eve,\\r\\n ms = \\\" progid:DXImageTransform.Microsoft\\\",\\r\\n S = \\\" \\\",\\r\\n E = \\\"\\\",\\r\\n map = {M: \\\"m\\\", L: \\\"l\\\", C: \\\"c\\\", Z: \\\"x\\\", m: \\\"t\\\", l: \\\"r\\\", c: \\\"v\\\", z: \\\"x\\\"},\\r\\n bites = /([clmz]),?([^clmz]*)/gi,\\r\\n blurregexp = / progid:\\\\S+Blur\\\\([^\\\\)]+\\\\)/g,\\r\\n val = /-?[^,\\\\s-]+/g,\\r\\n cssDot = \\\"position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)\\\",\\r\\n zoom = 21600,\\r\\n pathTypes = {path: 1, rect: 1, image: 1},\\r\\n ovalTypes = {circle: 1, ellipse: 1},\\r\\n path2vml = function (path) {\\r\\n var total = /[ahqstv]/ig,\\r\\n command = R._pathToAbsolute;\\r\\n Str(path).match(total) && (command = R._path2curve);\\r\\n total = /[clmz]/g;\\r\\n if (command == R._pathToAbsolute && !Str(path).match(total)) {\\r\\n var res = Str(path).replace(bites, function (all, command, args) {\\r\\n var vals = [],\\r\\n isMove = command.toLowerCase() == \\\"m\\\",\\r\\n res = map[command];\\r\\n args.replace(val, function (value) {\\r\\n if (isMove && vals.length == 2) {\\r\\n res += vals + map[command == \\\"m\\\" ? \\\"l\\\" : \\\"L\\\"];\\r\\n vals = [];\\r\\n }\\r\\n vals.push(round(value * zoom));\\r\\n });\\r\\n return res + vals;\\r\\n });\\r\\n return res;\\r\\n }\\r\\n var pa = command(path), p, r;\\r\\n res = [];\\r\\n for (var i = 0, ii = pa.length; i < ii; i++) {\\r\\n p = pa[i];\\r\\n r = pa[i][0].toLowerCase();\\r\\n r == \\\"z\\\" && (r = \\\"x\\\");\\r\\n for (var j = 1, jj = p.length; j < jj; j++) {\\r\\n r += round(p[j] * zoom) + (j != jj - 1 ? \\\",\\\" : E);\\r\\n }\\r\\n res.push(r);\\r\\n }\\r\\n return res.join(S);\\r\\n },\\r\\n compensation = function (deg, dx, dy) {\\r\\n var m = R.matrix();\\r\\n m.rotate(-deg, .5, .5);\\r\\n return {\\r\\n dx: m.x(dx, dy),\\r\\n dy: m.y(dx, dy)\\r\\n };\\r\\n },\\r\\n setCoords = function (p, sx, sy, dx, dy, deg) {\\r\\n var _ = p._,\\r\\n m = p.matrix,\\r\\n fillpos = _.fillpos,\\r\\n o = p.node,\\r\\n s = o.style,\\r\\n y = 1,\\r\\n flip = \\\"\\\",\\r\\n dxdy,\\r\\n kx = zoom / sx,\\r\\n ky = zoom / sy;\\r\\n s.visibility = \\\"hidden\\\";\\r\\n if (!sx || !sy) {\\r\\n return;\\r\\n }\\r\\n o.coordsize = abs(kx) + S + abs(ky);\\r\\n s.rotation = deg * (sx * sy < 0 ? -1 : 1);\\r\\n if (deg) {\\r\\n var c = compensation(deg, dx, dy);\\r\\n dx = c.dx;\\r\\n dy = c.dy;\\r\\n }\\r\\n sx < 0 && (flip += \\\"x\\\");\\r\\n sy < 0 && (flip += \\\" y\\\") && (y = -1);\\r\\n s.flip = flip;\\r\\n o.coordorigin = (dx * -kx) + S + (dy * -ky);\\r\\n if (fillpos || _.fillsize) {\\r\\n var fill = o.getElementsByTagName(fillString);\\r\\n fill = fill && fill[0];\\r\\n o.removeChild(fill);\\r\\n if (fillpos) {\\r\\n c = compensation(deg, m.x(fillpos[0], fillpos[1]), m.y(fillpos[0], fillpos[1]));\\r\\n fill.position = c.dx * y + S + c.dy * y;\\r\\n }\\r\\n if (_.fillsize) {\\r\\n fill.size = _.fillsize[0] * abs(sx) + S + _.fillsize[1] * abs(sy);\\r\\n }\\r\\n o.appendChild(fill);\\r\\n }\\r\\n s.visibility = \\\"visible\\\";\\r\\n };\\r\\n R.toString = function () {\\r\\n return \\\"Your browser doesn\\\\u2019t support SVG. Falling down to VML.\\\\nYou are running Rapha\\\\xebl \\\" + this.version;\\r\\n };\\r\\n var addArrow = function (o, value, isEnd) {\\r\\n var values = Str(value).toLowerCase().split(\\\"-\\\"),\\r\\n se = isEnd ? \\\"end\\\" : \\\"start\\\",\\r\\n i = values.length,\\r\\n type = \\\"classic\\\",\\r\\n w = \\\"medium\\\",\\r\\n h = \\\"medium\\\";\\r\\n while (i--) {\\r\\n switch (values[i]) {\\r\\n case \\\"block\\\":\\r\\n case \\\"classic\\\":\\r\\n case \\\"oval\\\":\\r\\n case \\\"diamond\\\":\\r\\n case \\\"open\\\":\\r\\n case \\\"none\\\":\\r\\n type = values[i];\\r\\n break;\\r\\n case \\\"wide\\\":\\r\\n case \\\"narrow\\\": h = values[i]; break;\\r\\n case \\\"long\\\":\\r\\n case \\\"short\\\": w = values[i]; break;\\r\\n }\\r\\n }\\r\\n var stroke = o.node.getElementsByTagName(\\\"stroke\\\")[0];\\r\\n stroke[se + \\\"arrow\\\"] = type;\\r\\n stroke[se + \\\"arrowlength\\\"] = w;\\r\\n stroke[se + \\\"arrowwidth\\\"] = h;\\r\\n },\\r\\n setFillAndStroke = function (o, params) {\\r\\n // o.paper.canvas.style.display = \\\"none\\\";\\r\\n o.attrs = o.attrs || {};\\r\\n var node = o.node,\\r\\n a = o.attrs,\\r\\n s = node.style,\\r\\n xy,\\r\\n newpath = pathTypes[o.type] && (params.x != a.x || params.y != a.y || params.width != a.width || params.height != a.height || params.cx != a.cx || params.cy != a.cy || params.rx != a.rx || params.ry != a.ry || params.r != a.r),\\r\\n isOval = ovalTypes[o.type] && (a.cx != params.cx || a.cy != params.cy || a.r != params.r || a.rx != params.rx || a.ry != params.ry),\\r\\n res = o;\\r\\n\\r\\n\\r\\n for (var par in params) if (params[has](par)) {\\r\\n a[par] = params[par];\\r\\n }\\r\\n if (newpath) {\\r\\n a.path = R._getPath[o.type](o);\\r\\n o._.dirty = 1;\\r\\n }\\r\\n params.href && (node.href = params.href);\\r\\n params.title && (node.title = params.title);\\r\\n params.target && (node.target = params.target);\\r\\n params.cursor && (s.cursor = params.cursor);\\r\\n \\\"blur\\\" in params && o.blur(params.blur);\\r\\n if (params.path && o.type == \\\"path\\\" || newpath) {\\r\\n node.path = path2vml(~Str(a.path).toLowerCase().indexOf(\\\"r\\\") ? R._pathToAbsolute(a.path) : a.path);\\r\\n o._.dirty = 1;\\r\\n if (o.type == \\\"image\\\") {\\r\\n o._.fillpos = [a.x, a.y];\\r\\n o._.fillsize = [a.width, a.height];\\r\\n setCoords(o, 1, 1, 0, 0, 0);\\r\\n }\\r\\n }\\r\\n \\\"transform\\\" in params && o.transform(params.transform);\\r\\n if (isOval) {\\r\\n var cx = +a.cx,\\r\\n cy = +a.cy,\\r\\n rx = +a.rx || +a.r || 0,\\r\\n ry = +a.ry || +a.r || 0;\\r\\n node.path = R.format(\\\"ar{0},{1},{2},{3},{4},{1},{4},{1}x\\\", round((cx - rx) * zoom), round((cy - ry) * zoom), round((cx + rx) * zoom), round((cy + ry) * zoom), round(cx * zoom));\\r\\n o._.dirty = 1;\\r\\n }\\r\\n if (\\\"clip-rect\\\" in params) {\\r\\n var rect = Str(params[\\\"clip-rect\\\"]).split(separator);\\r\\n if (rect.length == 4) {\\r\\n rect[2] = +rect[2] + (+rect[0]);\\r\\n rect[3] = +rect[3] + (+rect[1]);\\r\\n var div = node.clipRect || R._g.doc.createElement(\\\"div\\\"),\\r\\n dstyle = div.style;\\r\\n dstyle.clip = R.format(\\\"rect({1}px {2}px {3}px {0}px)\\\", rect);\\r\\n if (!node.clipRect) {\\r\\n dstyle.position = \\\"absolute\\\";\\r\\n dstyle.top = 0;\\r\\n dstyle.left = 0;\\r\\n dstyle.width = o.paper.width + \\\"px\\\";\\r\\n dstyle.height = o.paper.height + \\\"px\\\";\\r\\n node.parentNode.insertBefore(div, node);\\r\\n div.appendChild(node);\\r\\n node.clipRect = div;\\r\\n }\\r\\n }\\r\\n if (!params[\\\"clip-rect\\\"]) {\\r\\n node.clipRect && (node.clipRect.style.clip = \\\"auto\\\");\\r\\n }\\r\\n }\\r\\n if (o.textpath) {\\r\\n var textpathStyle = o.textpath.style;\\r\\n params.font && (textpathStyle.font = params.font);\\r\\n params[\\\"font-family\\\"] && (textpathStyle.fontFamily = '\\\"' + params[\\\"font-family\\\"].split(\\\",\\\")[0].replace(/^['\\\"]+|['\\\"]+$/g, E) + '\\\"');\\r\\n params[\\\"font-size\\\"] && (textpathStyle.fontSize = params[\\\"font-size\\\"]);\\r\\n params[\\\"font-weight\\\"] && (textpathStyle.fontWeight = params[\\\"font-weight\\\"]);\\r\\n params[\\\"font-style\\\"] && (textpathStyle.fontStyle = params[\\\"font-style\\\"]);\\r\\n }\\r\\n if (\\\"arrow-start\\\" in params) {\\r\\n addArrow(res, params[\\\"arrow-start\\\"]);\\r\\n }\\r\\n if (\\\"arrow-end\\\" in params) {\\r\\n addArrow(res, params[\\\"arrow-end\\\"], 1);\\r\\n }\\r\\n if (params.opacity != null ||\\r\\n params[\\\"stroke-width\\\"] != null ||\\r\\n params.fill != null ||\\r\\n params.src != null ||\\r\\n params.stroke != null ||\\r\\n params[\\\"stroke-width\\\"] != null ||\\r\\n params[\\\"stroke-opacity\\\"] != null ||\\r\\n params[\\\"fill-opacity\\\"] != null ||\\r\\n params[\\\"stroke-dasharray\\\"] != null ||\\r\\n params[\\\"stroke-miterlimit\\\"] != null ||\\r\\n params[\\\"stroke-linejoin\\\"] != null ||\\r\\n params[\\\"stroke-linecap\\\"] != null) {\\r\\n var fill = node.getElementsByTagName(fillString),\\r\\n newfill = false;\\r\\n fill = fill && fill[0];\\r\\n !fill && (newfill = fill = createNode(fillString));\\r\\n if (o.type == \\\"image\\\" && params.src) {\\r\\n fill.src = params.src;\\r\\n }\\r\\n params.fill && (fill.on = true);\\r\\n if (fill.on == null || params.fill == \\\"none\\\" || params.fill === null) {\\r\\n fill.on = false;\\r\\n }\\r\\n if (fill.on && params.fill) {\\r\\n var isURL = Str(params.fill).match(R._ISURL);\\r\\n if (isURL) {\\r\\n fill.parentNode == node && node.removeChild(fill);\\r\\n fill.rotate = true;\\r\\n fill.src = isURL[1];\\r\\n fill.type = \\\"tile\\\";\\r\\n var bbox = o.getBBox(1);\\r\\n fill.position = bbox.x + S + bbox.y;\\r\\n o._.fillpos = [bbox.x, bbox.y];\\r\\n\\r\\n R._preload(isURL[1], function () {\\r\\n o._.fillsize = [this.offsetWidth, this.offsetHeight];\\r\\n });\\r\\n } else {\\r\\n fill.color = R.getRGB(params.fill).hex;\\r\\n fill.src = E;\\r\\n fill.type = \\\"solid\\\";\\r\\n if (R.getRGB(params.fill).error && (res.type in {circle: 1, ellipse: 1} || Str(params.fill).charAt() != \\\"r\\\") && addGradientFill(res, params.fill, fill)) {\\r\\n a.fill = \\\"none\\\";\\r\\n a.gradient = params.fill;\\r\\n fill.rotate = false;\\r\\n }\\r\\n }\\r\\n }\\r\\n if (\\\"fill-opacity\\\" in params || \\\"opacity\\\" in params) {\\r\\n var opacity = ((+a[\\\"fill-opacity\\\"] + 1 || 2) - 1) * ((+a.opacity + 1 || 2) - 1) * ((+R.getRGB(params.fill).o + 1 || 2) - 1);\\r\\n opacity = mmin(mmax(opacity, 0), 1);\\r\\n fill.opacity = opacity;\\r\\n if (fill.src) {\\r\\n fill.color = \\\"none\\\";\\r\\n }\\r\\n }\\r\\n node.appendChild(fill);\\r\\n var stroke = (node.getElementsByTagName(\\\"stroke\\\") && node.getElementsByTagName(\\\"stroke\\\")[0]),\\r\\n newstroke = false;\\r\\n !stroke && (newstroke = stroke = createNode(\\\"stroke\\\"));\\r\\n if ((params.stroke && params.stroke != \\\"none\\\") ||\\r\\n params[\\\"stroke-width\\\"] ||\\r\\n params[\\\"stroke-opacity\\\"] != null ||\\r\\n params[\\\"stroke-dasharray\\\"] ||\\r\\n params[\\\"stroke-miterlimit\\\"] ||\\r\\n params[\\\"stroke-linejoin\\\"] ||\\r\\n params[\\\"stroke-linecap\\\"]) {\\r\\n stroke.on = true;\\r\\n }\\r\\n (params.stroke == \\\"none\\\" || params.stroke === null || stroke.on == null || params.stroke == 0 || params[\\\"stroke-width\\\"] == 0) && (stroke.on = false);\\r\\n var strokeColor = R.getRGB(params.stroke);\\r\\n stroke.on && params.stroke && (stroke.color = strokeColor.hex);\\r\\n opacity = ((+a[\\\"stroke-opacity\\\"] + 1 || 2) - 1) * ((+a.opacity + 1 || 2) - 1) * ((+strokeColor.o + 1 || 2) - 1);\\r\\n var width = (toFloat(params[\\\"stroke-width\\\"]) || 1) * .75;\\r\\n opacity = mmin(mmax(opacity, 0), 1);\\r\\n params[\\\"stroke-width\\\"] == null && (width = a[\\\"stroke-width\\\"]);\\r\\n params[\\\"stroke-width\\\"] && (stroke.weight = width);\\r\\n width && width < 1 && (opacity *= width) && (stroke.weight = 1);\\r\\n stroke.opacity = opacity;\\r\\n\\r\\n params[\\\"stroke-linejoin\\\"] && (stroke.joinstyle = params[\\\"stroke-linejoin\\\"] || \\\"miter\\\");\\r\\n stroke.miterlimit = params[\\\"stroke-miterlimit\\\"] || 8;\\r\\n params[\\\"stroke-linecap\\\"] && (stroke.endcap = params[\\\"stroke-linecap\\\"] == \\\"butt\\\" ? \\\"flat\\\" : params[\\\"stroke-linecap\\\"] == \\\"square\\\" ? \\\"square\\\" : \\\"round\\\");\\r\\n if (\\\"stroke-dasharray\\\" in params) {\\r\\n var dasharray = {\\r\\n \\\"-\\\": \\\"shortdash\\\",\\r\\n \\\".\\\": \\\"shortdot\\\",\\r\\n \\\"-.\\\": \\\"shortdashdot\\\",\\r\\n \\\"-..\\\": \\\"shortdashdotdot\\\",\\r\\n \\\". \\\": \\\"dot\\\",\\r\\n \\\"- \\\": \\\"dash\\\",\\r\\n \\\"--\\\": \\\"longdash\\\",\\r\\n \\\"- .\\\": \\\"dashdot\\\",\\r\\n \\\"--.\\\": \\\"longdashdot\\\",\\r\\n \\\"--..\\\": \\\"longdashdotdot\\\"\\r\\n };\\r\\n stroke.dashstyle = dasharray[has](params[\\\"stroke-dasharray\\\"]) ? dasharray[params[\\\"stroke-dasharray\\\"]] : E;\\r\\n }\\r\\n newstroke && node.appendChild(stroke);\\r\\n }\\r\\n if (res.type == \\\"text\\\") {\\r\\n res.paper.canvas.style.display = E;\\r\\n var span = res.paper.span,\\r\\n m = 100,\\r\\n fontSize = a.font && a.font.match(/\\\\d+(?:\\\\.\\\\d*)?(?=px)/);\\r\\n s = span.style;\\r\\n a.font && (s.font = a.font);\\r\\n a[\\\"font-family\\\"] && (s.fontFamily = a[\\\"font-family\\\"]);\\r\\n a[\\\"font-weight\\\"] && (s.fontWeight = a[\\\"font-weight\\\"]);\\r\\n a[\\\"font-style\\\"] && (s.fontStyle = a[\\\"font-style\\\"]);\\r\\n fontSize = toFloat(a[\\\"font-size\\\"] || fontSize && fontSize[0]) || 10;\\r\\n s.fontSize = fontSize * m + \\\"px\\\";\\r\\n res.textpath.string && (span.innerHTML = Str(res.textpath.string).replace(/</g, \\\"<\\\").replace(/&/g, \\\"&\\\").replace(/\\\\n/g, \\\"<br>\\\"));\\r\\n var brect = span.getBoundingClientRect();\\r\\n res.W = a.w = (brect.right - brect.left) / m;\\r\\n res.H = a.h = (brect.bottom - brect.top) / m;\\r\\n // res.paper.canvas.style.display = \\\"none\\\";\\r\\n res.X = a.x;\\r\\n res.Y = a.y + res.H / 2;\\r\\n\\r\\n (\\\"x\\\" in params || \\\"y\\\" in params) && (res.path.v = R.format(\\\"m{0},{1}l{2},{1}\\\", round(a.x * zoom), round(a.y * zoom), round(a.x * zoom) + 1));\\r\\n var dirtyattrs = [\\\"x\\\", \\\"y\\\", \\\"text\\\", \\\"font\\\", \\\"font-family\\\", \\\"font-weight\\\", \\\"font-style\\\", \\\"font-size\\\"];\\r\\n for (var d = 0, dd = dirtyattrs.length; d < dd; d++) if (dirtyattrs[d] in params) {\\r\\n res._.dirty = 1;\\r\\n break;\\r\\n }\\r\\n\\r\\n // text-anchor emulation\\r\\n switch (a[\\\"text-anchor\\\"]) {\\r\\n case \\\"start\\\":\\r\\n res.textpath.style[\\\"v-text-align\\\"] = \\\"left\\\";\\r\\n res.bbx = res.W / 2;\\r\\n break;\\r\\n case \\\"end\\\":\\r\\n res.textpath.style[\\\"v-text-align\\\"] = \\\"right\\\";\\r\\n res.bbx = -res.W / 2;\\r\\n break;\\r\\n default:\\r\\n res.textpath.style[\\\"v-text-align\\\"] = \\\"center\\\";\\r\\n res.bbx = 0;\\r\\n break;\\r\\n }\\r\\n res.textpath.style[\\\"v-text-kern\\\"] = true;\\r\\n }\\r\\n // res.paper.canvas.style.display = E;\\r\\n },\\r\\n addGradientFill = function (o, gradient, fill) {\\r\\n o.attrs = o.attrs || {};\\r\\n var attrs = o.attrs,\\r\\n pow = Math.pow,\\r\\n opacity,\\r\\n oindex,\\r\\n type = \\\"linear\\\",\\r\\n fxfy = \\\".5 .5\\\";\\r\\n o.attrs.gradient = gradient;\\r\\n gradient = Str(gradient).replace(R._radial_gradient, function (all, fx, fy) {\\r\\n type = \\\"radial\\\";\\r\\n if (fx && fy) {\\r\\n fx = toFloat(fx);\\r\\n fy = toFloat(fy);\\r\\n pow(fx - .5, 2) + pow(fy - .5, 2) > .25 && (fy = math.sqrt(.25 - pow(fx - .5, 2)) * ((fy > .5) * 2 - 1) + .5);\\r\\n fxfy = fx + S + fy;\\r\\n }\\r\\n return E;\\r\\n });\\r\\n gradient = gradient.split(/\\\\s*\\\\-\\\\s*/);\\r\\n if (type == \\\"linear\\\") {\\r\\n var angle = gradient.shift();\\r\\n angle = -toFloat(angle);\\r\\n if (isNaN(angle)) {\\r\\n return null;\\r\\n }\\r\\n }\\r\\n var dots = R._parseDots(gradient);\\r\\n if (!dots) {\\r\\n return null;\\r\\n }\\r\\n o = o.shape || o.node;\\r\\n if (dots.length) {\\r\\n o.removeChild(fill);\\r\\n fill.on = true;\\r\\n fill.method = \\\"none\\\";\\r\\n fill.color = dots[0].color;\\r\\n fill.color2 = dots[dots.length - 1].color;\\r\\n var clrs = [];\\r\\n for (var i = 0, ii = dots.length; i < ii; i++) {\\r\\n dots[i].offset && clrs.push(dots[i].offset + S + dots[i].color);\\r\\n }\\r\\n fill.colors = clrs.length ? clrs.join() : \\\"0% \\\" + fill.color;\\r\\n if (type == \\\"radial\\\") {\\r\\n fill.type = \\\"gradientTitle\\\";\\r\\n fill.focus = \\\"100%\\\";\\r\\n fill.focussize = \\\"0 0\\\";\\r\\n fill.focusposition = fxfy;\\r\\n fill.angle = 0;\\r\\n } else {\\r\\n // fill.rotate= true;\\r\\n fill.type = \\\"gradient\\\";\\r\\n fill.angle = (270 - angle) % 360;\\r\\n }\\r\\n o.appendChild(fill);\\r\\n }\\r\\n return 1;\\r\\n },\\r\\n Element = function (node, vml) {\\r\\n this[0] = this.node = node;\\r\\n node.raphael = true;\\r\\n this.id = R._oid++;\\r\\n node.raphaelid = this.id;\\r\\n this.X = 0;\\r\\n this.Y = 0;\\r\\n this.attrs = {};\\r\\n this.paper = vml;\\r\\n this.matrix = R.matrix();\\r\\n this._ = {\\r\\n transform: [],\\r\\n sx: 1,\\r\\n sy: 1,\\r\\n dx: 0,\\r\\n dy: 0,\\r\\n deg: 0,\\r\\n dirty: 1,\\r\\n dirtyT: 1\\r\\n };\\r\\n !vml.bottom && (vml.bottom = this);\\r\\n this.prev = vml.top;\\r\\n vml.top && (vml.top.next = this);\\r\\n vml.top = this;\\r\\n this.next = null;\\r\\n };\\r\\n var elproto = R.el;\\r\\n\\r\\n Element.prototype = elproto;\\r\\n elproto.constructor = Element;\\r\\n elproto.transform = function (tstr) {\\r\\n if (tstr == null) {\\r\\n return this._.transform;\\r\\n }\\r\\n var vbs = this.paper._viewBoxShift,\\r\\n vbt = vbs ? \\\"s\\\" + [vbs.scale, vbs.scale] + \\\"-1-1t\\\" + [vbs.dx, vbs.dy] : E,\\r\\n oldt;\\r\\n if (vbs) {\\r\\n oldt = tstr = Str(tstr).replace(/\\\\.{3}|\\\\u2026/g, this._.transform || E);\\r\\n }\\r\\n R._extractTransform(this, vbt + tstr);\\r\\n var matrix = this.matrix.clone(),\\r\\n skew = this.skew,\\r\\n o = this.node,\\r\\n split,\\r\\n isGrad = ~Str(this.attrs.fill).indexOf(\\\"-\\\"),\\r\\n isPatt = !Str(this.attrs.fill).indexOf(\\\"url(\\\");\\r\\n matrix.translate(1, 1);\\r\\n if (isPatt || isGrad || this.type == \\\"image\\\") {\\r\\n skew.matrix = \\\"1 0 0 1\\\";\\r\\n skew.offset = \\\"0 0\\\";\\r\\n split = matrix.split();\\r\\n if ((isGrad && split.noRotation) || !split.isSimple) {\\r\\n o.style.filter = matrix.toFilter();\\r\\n var bb = this.getBBox(),\\r\\n bbt = this.getBBox(1),\\r\\n dx = bb.x - bbt.x,\\r\\n dy = bb.y - bbt.y;\\r\\n o.coordorigin = (dx * -zoom) + S + (dy * -zoom);\\r\\n setCoords(this, 1, 1, dx, dy, 0);\\r\\n } else {\\r\\n o.style.filter = E;\\r\\n setCoords(this, split.scalex, split.scaley, split.dx, split.dy, split.rotate);\\r\\n }\\r\\n } else {\\r\\n o.style.filter = E;\\r\\n skew.matrix = Str(matrix);\\r\\n skew.offset = matrix.offset();\\r\\n }\\r\\n if (oldt !== null) { // empty string value is true as well\\r\\n this._.transform = oldt;\\r\\n R._extractTransform(this, oldt);\\r\\n }\\r\\n return this;\\r\\n };\\r\\n elproto.rotate = function (deg, cx, cy) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n if (deg == null) {\\r\\n return;\\r\\n }\\r\\n deg = Str(deg).split(separator);\\r\\n if (deg.length - 1) {\\r\\n cx = toFloat(deg[1]);\\r\\n cy = toFloat(deg[2]);\\r\\n }\\r\\n deg = toFloat(deg[0]);\\r\\n (cy == null) && (cx = cy);\\r\\n if (cx == null || cy == null) {\\r\\n var bbox = this.getBBox(1);\\r\\n cx = bbox.x + bbox.width / 2;\\r\\n cy = bbox.y + bbox.height / 2;\\r\\n }\\r\\n this._.dirtyT = 1;\\r\\n this.transform(this._.transform.concat([[\\\"r\\\", deg, cx, cy]]));\\r\\n return this;\\r\\n };\\r\\n elproto.translate = function (dx, dy) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n dx = Str(dx).split(separator);\\r\\n if (dx.length - 1) {\\r\\n dy = toFloat(dx[1]);\\r\\n }\\r\\n dx = toFloat(dx[0]) || 0;\\r\\n dy = +dy || 0;\\r\\n if (this._.bbox) {\\r\\n this._.bbox.x += dx;\\r\\n this._.bbox.y += dy;\\r\\n }\\r\\n this.transform(this._.transform.concat([[\\\"t\\\", dx, dy]]));\\r\\n return this;\\r\\n };\\r\\n elproto.scale = function (sx, sy, cx, cy) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n sx = Str(sx).split(separator);\\r\\n if (sx.length - 1) {\\r\\n sy = toFloat(sx[1]);\\r\\n cx = toFloat(sx[2]);\\r\\n cy = toFloat(sx[3]);\\r\\n isNaN(cx) && (cx = null);\\r\\n isNaN(cy) && (cy = null);\\r\\n }\\r\\n sx = toFloat(sx[0]);\\r\\n (sy == null) && (sy = sx);\\r\\n (cy == null) && (cx = cy);\\r\\n if (cx == null || cy == null) {\\r\\n var bbox = this.getBBox(1);\\r\\n }\\r\\n cx = cx == null ? bbox.x + bbox.width / 2 : cx;\\r\\n cy = cy == null ? bbox.y + bbox.height / 2 : cy;\\r\\n\\r\\n this.transform(this._.transform.concat([[\\\"s\\\", sx, sy, cx, cy]]));\\r\\n this._.dirtyT = 1;\\r\\n return this;\\r\\n };\\r\\n elproto.hide = function () {\\r\\n !this.removed && (this.node.style.display = \\\"none\\\");\\r\\n return this;\\r\\n };\\r\\n elproto.show = function () {\\r\\n !this.removed && (this.node.style.display = E);\\r\\n return this;\\r\\n };\\r\\n // Needed to fix the vml setViewBox issues\\r\\n elproto.auxGetBBox = R.el.getBBox;\\r\\n elproto.getBBox = function(){\\r\\n var b = this.auxGetBBox();\\r\\n if (this.paper && this.paper._viewBoxShift)\\r\\n {\\r\\n var c = {};\\r\\n var z = 1/this.paper._viewBoxShift.scale;\\r\\n c.x = b.x - this.paper._viewBoxShift.dx;\\r\\n c.x *= z;\\r\\n c.y = b.y - this.paper._viewBoxShift.dy;\\r\\n c.y *= z;\\r\\n c.width = b.width * z;\\r\\n c.height = b.height * z;\\r\\n c.x2 = c.x + c.width;\\r\\n c.y2 = c.y + c.height;\\r\\n return c;\\r\\n }\\r\\n return b;\\r\\n };\\r\\n elproto._getBBox = function () {\\r\\n if (this.removed) {\\r\\n return {};\\r\\n }\\r\\n return {\\r\\n x: this.X + (this.bbx || 0) - this.W / 2,\\r\\n y: this.Y - this.H,\\r\\n width: this.W,\\r\\n height: this.H\\r\\n };\\r\\n };\\r\\n elproto.remove = function () {\\r\\n if (this.removed || !this.node.parentNode) {\\r\\n return;\\r\\n }\\r\\n this.paper.__set__ && this.paper.__set__.exclude(this);\\r\\n R.eve.unbind(\\\"raphael.*.*.\\\" + this.id);\\r\\n R._tear(this, this.paper);\\r\\n this.node.parentNode.removeChild(this.node);\\r\\n this.shape && this.shape.parentNode.removeChild(this.shape);\\r\\n for (var i in this) {\\r\\n this[i] = typeof this[i] == \\\"function\\\" ? R._removedFactory(i) : null;\\r\\n }\\r\\n this.removed = true;\\r\\n };\\r\\n elproto.attr = function (name, value) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n if (name == null) {\\r\\n var res = {};\\r\\n for (var a in this.attrs) if (this.attrs[has](a)) {\\r\\n res[a] = this.attrs[a];\\r\\n }\\r\\n res.gradient && res.fill == \\\"none\\\" && (res.fill = res.gradient) && delete res.gradient;\\r\\n res.transform = this._.transform;\\r\\n return res;\\r\\n }\\r\\n if (value == null && R.is(name, \\\"string\\\")) {\\r\\n if (name == fillString && this.attrs.fill == \\\"none\\\" && this.attrs.gradient) {\\r\\n return this.attrs.gradient;\\r\\n }\\r\\n var names = name.split(separator),\\r\\n out = {};\\r\\n for (var i = 0, ii = names.length; i < ii; i++) {\\r\\n name = names[i];\\r\\n if (name in this.attrs) {\\r\\n out[name] = this.attrs[name];\\r\\n } else if (R.is(this.paper.customAttributes[name], \\\"function\\\")) {\\r\\n out[name] = this.paper.customAttributes[name].def;\\r\\n } else {\\r\\n out[name] = R._availableAttrs[name];\\r\\n }\\r\\n }\\r\\n return ii - 1 ? out : out[names[0]];\\r\\n }\\r\\n if (this.attrs && value == null && R.is(name, \\\"array\\\")) {\\r\\n out = {};\\r\\n for (i = 0, ii = name.length; i < ii; i++) {\\r\\n out[name[i]] = this.attr(name[i]);\\r\\n }\\r\\n return out;\\r\\n }\\r\\n var params;\\r\\n if (value != null) {\\r\\n params = {};\\r\\n params[name] = value;\\r\\n }\\r\\n value == null && R.is(name, \\\"object\\\") && (params = name);\\r\\n for (var key in params) {\\r\\n eve(\\\"raphael.attr.\\\" + key + \\\".\\\" + this.id, this, params[key]);\\r\\n }\\r\\n if (params) {\\r\\n for (key in this.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], \\\"function\\\")) {\\r\\n var par = this.paper.customAttributes[key].apply(this, [].concat(params[key]));\\r\\n this.attrs[key] = params[key];\\r\\n for (var subkey in par) if (par[has](subkey)) {\\r\\n params[subkey] = par[subkey];\\r\\n }\\r\\n }\\r\\n // this.paper.canvas.style.display = \\\"none\\\";\\r\\n if (params.text && this.type == \\\"text\\\") {\\r\\n this.textpath.string = params.text;\\r\\n }\\r\\n setFillAndStroke(this, params);\\r\\n // this.paper.canvas.style.display = E;\\r\\n }\\r\\n return this;\\r\\n };\\r\\n elproto.toFront = function () {\\r\\n !this.removed && this.node.parentNode.appendChild(this.node);\\r\\n this.paper && this.paper.top != this && R._tofront(this, this.paper);\\r\\n return this;\\r\\n };\\r\\n elproto.toBack = function () {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n if (this.node.parentNode.firstChild != this.node) {\\r\\n this.node.parentNode.insertBefore(this.node, this.node.parentNode.firstChild);\\r\\n R._toback(this, this.paper);\\r\\n }\\r\\n return this;\\r\\n };\\r\\n elproto.insertAfter = function (element) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n if (element.constructor == R.st.constructor) {\\r\\n element = element[element.length - 1];\\r\\n }\\r\\n if (element.node.nextSibling) {\\r\\n element.node.parentNode.insertBefore(this.node, element.node.nextSibling);\\r\\n } else {\\r\\n element.node.parentNode.appendChild(this.node);\\r\\n }\\r\\n R._insertafter(this, element, this.paper);\\r\\n return this;\\r\\n };\\r\\n elproto.insertBefore = function (element) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n if (element.constructor == R.st.constructor) {\\r\\n element = element[0];\\r\\n }\\r\\n element.node.parentNode.insertBefore(this.node, element.node);\\r\\n R._insertbefore(this, element, this.paper);\\r\\n return this;\\r\\n };\\r\\n elproto.blur = function (size) {\\r\\n var s = this.node.runtimeStyle,\\r\\n f = s.filter;\\r\\n f = f.replace(blurregexp, E);\\r\\n if (+size !== 0) {\\r\\n this.attrs.blur = size;\\r\\n s.filter = f + S + ms + \\\".Blur(pixelradius=\\\" + (+size || 1.5) + \\\")\\\";\\r\\n s.margin = R.format(\\\"-{0}px 0 0 -{0}px\\\", round(+size || 1.5));\\r\\n } else {\\r\\n s.filter = f;\\r\\n s.margin = 0;\\r\\n delete this.attrs.blur;\\r\\n }\\r\\n return this;\\r\\n };\\r\\n\\r\\n R._engine.path = function (pathString, vml) {\\r\\n var el = createNode(\\\"shape\\\");\\r\\n el.style.cssText = cssDot;\\r\\n el.coordsize = zoom + S + zoom;\\r\\n el.coordorigin = vml.coordorigin;\\r\\n var p = new Element(el, vml),\\r\\n attr = {fill: \\\"none\\\", stroke: \\\"#000\\\"};\\r\\n pathString && (attr.path = pathString);\\r\\n p.type = \\\"path\\\";\\r\\n p.path = [];\\r\\n p.Path = E;\\r\\n setFillAndStroke(p, attr);\\r\\n vml.canvas.appendChild(el);\\r\\n var skew = createNode(\\\"skew\\\");\\r\\n skew.on = true;\\r\\n el.appendChild(skew);\\r\\n p.skew = skew;\\r\\n p.transform(E);\\r\\n return p;\\r\\n };\\r\\n R._engine.rect = function (vml, x, y, w, h, r) {\\r\\n var path = R._rectPath(x, y, w, h, r),\\r\\n res = vml.path(path),\\r\\n a = res.attrs;\\r\\n res.X = a.x = x;\\r\\n res.Y = a.y = y;\\r\\n res.W = a.width = w;\\r\\n res.H = a.height = h;\\r\\n a.r = r;\\r\\n a.path = path;\\r\\n res.type = \\\"rect\\\";\\r\\n return res;\\r\\n };\\r\\n R._engine.ellipse = function (vml, x, y, rx, ry) {\\r\\n var res = vml.path(),\\r\\n a = res.attrs;\\r\\n res.X = x - rx;\\r\\n res.Y = y - ry;\\r\\n res.W = rx * 2;\\r\\n res.H = ry * 2;\\r\\n res.type = \\\"ellipse\\\";\\r\\n setFillAndStroke(res, {\\r\\n cx: x,\\r\\n cy: y,\\r\\n rx: rx,\\r\\n ry: ry\\r\\n });\\r\\n return res;\\r\\n };\\r\\n R._engine.circle = function (vml, x, y, r) {\\r\\n var res = vml.path(),\\r\\n a = res.attrs;\\r\\n res.X = x - r;\\r\\n res.Y = y - r;\\r\\n res.W = res.H = r * 2;\\r\\n res.type = \\\"circle\\\";\\r\\n setFillAndStroke(res, {\\r\\n cx: x,\\r\\n cy: y,\\r\\n r: r\\r\\n });\\r\\n return res;\\r\\n };\\r\\n R._engine.image = function (vml, src, x, y, w, h) {\\r\\n var path = R._rectPath(x, y, w, h),\\r\\n res = vml.path(path).attr({stroke: \\\"none\\\"}),\\r\\n a = res.attrs,\\r\\n node = res.node,\\r\\n fill = node.getElementsByTagName(fillString)[0];\\r\\n a.src = src;\\r\\n res.X = a.x = x;\\r\\n res.Y = a.y = y;\\r\\n res.W = a.width = w;\\r\\n res.H = a.height = h;\\r\\n a.path = path;\\r\\n res.type = \\\"image\\\";\\r\\n fill.parentNode == node && node.removeChild(fill);\\r\\n fill.rotate = true;\\r\\n fill.src = src;\\r\\n fill.type = \\\"tile\\\";\\r\\n res._.fillpos = [x, y];\\r\\n res._.fillsize = [w, h];\\r\\n node.appendChild(fill);\\r\\n setCoords(res, 1, 1, 0, 0, 0);\\r\\n return res;\\r\\n };\\r\\n R._engine.text = function (vml, x, y, text) {\\r\\n var el = createNode(\\\"shape\\\"),\\r\\n path = createNode(\\\"path\\\"),\\r\\n o = createNode(\\\"textpath\\\");\\r\\n x = x || 0;\\r\\n y = y || 0;\\r\\n text = text || \\\"\\\";\\r\\n path.v = R.format(\\\"m{0},{1}l{2},{1}\\\", round(x * zoom), round(y * zoom), round(x * zoom) + 1);\\r\\n path.textpathok = true;\\r\\n o.string = Str(text);\\r\\n o.on = true;\\r\\n el.style.cssText = cssDot;\\r\\n el.coordsize = zoom + S + zoom;\\r\\n el.coordorigin = \\\"0 0\\\";\\r\\n var p = new Element(el, vml),\\r\\n attr = {\\r\\n fill: \\\"#000\\\",\\r\\n stroke: \\\"none\\\",\\r\\n font: R._availableAttrs.font,\\r\\n text: text\\r\\n };\\r\\n p.shape = el;\\r\\n p.path = path;\\r\\n p.textpath = o;\\r\\n p.type = \\\"text\\\";\\r\\n p.attrs.text = Str(text);\\r\\n p.attrs.x = x;\\r\\n p.attrs.y = y;\\r\\n p.attrs.w = 1;\\r\\n p.attrs.h = 1;\\r\\n setFillAndStroke(p, attr);\\r\\n el.appendChild(o);\\r\\n el.appendChild(path);\\r\\n vml.canvas.appendChild(el);\\r\\n var skew = createNode(\\\"skew\\\");\\r\\n skew.on = true;\\r\\n el.appendChild(skew);\\r\\n p.skew = skew;\\r\\n p.transform(E);\\r\\n return p;\\r\\n };\\r\\n R._engine.setSize = function (width, height) {\\r\\n var cs = this.canvas.style;\\r\\n this.width = width;\\r\\n this.height = height;\\r\\n width == +width && (width += \\\"px\\\");\\r\\n height == +height && (height += \\\"px\\\");\\r\\n cs.width = width;\\r\\n cs.height = height;\\r\\n cs.clip = \\\"rect(0 \\\" + width + \\\" \\\" + height + \\\" 0)\\\";\\r\\n if (this._viewBox) {\\r\\n R._engine.setViewBox.apply(this, this._viewBox);\\r\\n }\\r\\n return this;\\r\\n };\\r\\n R._engine.setViewBox = function (x, y, w, h, fit) {\\r\\n R.eve(\\\"raphael.setViewBox\\\", this, this._viewBox, [x, y, w, h, fit]);\\r\\n var paperSize = this.getSize(),\\r\\n width = paperSize.width,\\r\\n height = paperSize.height,\\r\\n H, W;\\r\\n if (fit) {\\r\\n H = height / h;\\r\\n W = width / w;\\r\\n if (w * H < width) {\\r\\n x -= (width - w * H) / 2 / H;\\r\\n }\\r\\n if (h * W < height) {\\r\\n y -= (height - h * W) / 2 / W;\\r\\n }\\r\\n }\\r\\n this._viewBox = [x, y, w, h, !!fit];\\r\\n this._viewBoxShift = {\\r\\n dx: -x,\\r\\n dy: -y,\\r\\n scale: paperSize\\r\\n };\\r\\n this.forEach(function (el) {\\r\\n el.transform(\\\"...\\\");\\r\\n });\\r\\n return this;\\r\\n };\\r\\n var createNode;\\r\\n R._engine.initWin = function (win) {\\r\\n var doc = win.document;\\r\\n if (doc.styleSheets.length < 31) {\\r\\n doc.createStyleSheet().addRule(\\\".rvml\\\", \\\"behavior:url(#default#VML)\\\");\\r\\n } else {\\r\\n // no more room, add to the existing one\\r\\n // http://msdn.microsoft.com/en-us/library/ms531194%28VS.85%29.aspx\\r\\n doc.styleSheets[0].addRule(\\\".rvml\\\", \\\"behavior:url(#default#VML)\\\");\\r\\n }\\r\\n try {\\r\\n !doc.namespaces.rvml && doc.namespaces.add(\\\"rvml\\\", \\\"urn:schemas-microsoft-com:vml\\\");\\r\\n createNode = function (tagName) {\\r\\n return doc.createElement('<rvml:' + tagName + ' class=\\\"rvml\\\">');\\r\\n };\\r\\n } catch (e) {\\r\\n createNode = function (tagName) {\\r\\n return doc.createElement('<' + tagName + ' xmlns=\\\"urn:schemas-microsoft.com:vml\\\" class=\\\"rvml\\\">');\\r\\n };\\r\\n }\\r\\n };\\r\\n R._engine.initWin(R._g.win);\\r\\n R._engine.create = function () {\\r\\n var con = R._getContainer.apply(0, arguments),\\r\\n container = con.container,\\r\\n height = con.height,\\r\\n s,\\r\\n width = con.width,\\r\\n x = con.x,\\r\\n y = con.y;\\r\\n if (!container) {\\r\\n throw new Error(\\\"VML container not found.\\\");\\r\\n }\\r\\n var res = new R._Paper,\\r\\n c = res.canvas = R._g.doc.createElement(\\\"div\\\"),\\r\\n cs = c.style;\\r\\n x = x || 0;\\r\\n y = y || 0;\\r\\n width = width || 512;\\r\\n height = height || 342;\\r\\n res.width = width;\\r\\n res.height = height;\\r\\n width == +width && (width += \\\"px\\\");\\r\\n height == +height && (height += \\\"px\\\");\\r\\n res.coordsize = zoom * 1e3 + S + zoom * 1e3;\\r\\n res.coordorigin = \\\"0 0\\\";\\r\\n res.span = R._g.doc.createElement(\\\"span\\\");\\r\\n res.span.style.cssText = \\\"position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;\\\";\\r\\n c.appendChild(res.span);\\r\\n cs.cssText = R.format(\\\"top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden\\\", width, height);\\r\\n if (container == 1) {\\r\\n R._g.doc.body.appendChild(c);\\r\\n cs.left = x + \\\"px\\\";\\r\\n cs.top = y + \\\"px\\\";\\r\\n cs.position = \\\"absolute\\\";\\r\\n } else {\\r\\n if (container.firstChild) {\\r\\n container.insertBefore(c, container.firstChild);\\r\\n } else {\\r\\n container.appendChild(c);\\r\\n }\\r\\n }\\r\\n res.renderfix = function () {};\\r\\n return res;\\r\\n };\\r\\n R.prototype.clear = function () {\\r\\n R.eve(\\\"raphael.clear\\\", this);\\r\\n this.canvas.innerHTML = E;\\r\\n this.span = R._g.doc.createElement(\\\"span\\\");\\r\\n this.span.style.cssText = \\\"position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;\\\";\\r\\n this.canvas.appendChild(this.span);\\r\\n this.bottom = this.top = null;\\r\\n };\\r\\n R.prototype.remove = function () {\\r\\n R.eve(\\\"raphael.remove\\\", this);\\r\\n this.canvas.parentNode.removeChild(this.canvas);\\r\\n for (var i in this) {\\r\\n this[i] = typeof this[i] == \\\"function\\\" ? R._removedFactory(i) : null;\\r\\n }\\r\\n return true;\\r\\n };\\r\\n\\r\\n var setproto = R.st;\\r\\n for (var method in elproto) if (elproto[has](method) && !setproto[has](method)) {\\r\\n setproto[method] = (function (methodname) {\\r\\n return function () {\\r\\n var arg = arguments;\\r\\n return this.forEach(function (el) {\\r\\n el[methodname].apply(el, arg);\\r\\n });\\r\\n };\\r\\n })(method);\\r\\n }\\r\\n}));\\r\\n\\r\\n// ┌────────────────────────────────────────────────────────────────────┐ \\\\\\\\\\r\\n// │ Raphaël @VERSION - JavaScript Vector Library │ \\\\\\\\\\r\\n// ├────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) │ \\\\\\\\\\r\\n// │ Copyright © 2008-2012 Sencha Labs (http://sencha.com) │ \\\\\\\\\\r\\n// ├────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Licensed under the MIT (http://raphaeljs.com/license.html) license.│ \\\\\\\\\\r\\n// └────────────────────────────────────────────────────────────────────┘ \\\\\\\\\\r\\n\\r\\n(function (glob, factory) {\\r\\n if (typeof define === \\\"function\\\" && define.amd) {\\r\\n define(\\\"raphael\\\", [\\\"raphael.core\\\", \\\"raphael.svg\\\", \\\"raphael.vml\\\"], function(Raphael) {\\r\\n return (glob.Raphael = factory(Raphael));\\r\\n });\\r\\n } else if (typeof exports === \\\"object\\\") {\\r\\n var raphael = require(\\\"raphael.core\\\");\\r\\n\\r\\n require(\\\"raphael.svg\\\");\\r\\n require(\\\"raphael.vml\\\");\\r\\n\\r\\n module.exports = factory(raphael);\\r\\n } else {\\r\\n glob.Raphael = factory(glob.Raphael);\\r\\n }\\r\\n}(this, function (Raphael) {\\r\\n return Raphael.ninja();\\r\\n}));\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n/**\\r\\n * FRaphael\\r\\n * \\tAn extension for Raphael.js to make it easier to work with Filter Effects\\r\\n *\\r\\n * Copyright © 2013 Chris Scott <chris.scott@factmint.com>\\r\\n * Delivered with and licensed under the MIT licence\\r\\n *\\r\\n */\\r\\n\\r\\n// Create the global FRaphael object\\r\\n(function(scope) {\\r\\n var\\tversion = \\\"0.0.1\\\",\\r\\n license = \\\"MIT\\\";\\r\\n\\r\\n var\\tns = \\\"http://www.w3.org/2000/svg\\\",\\r\\n idCounter = 0;\\r\\n\\r\\n var FR = {\\r\\n // Object prototype for a filter\\r\\n Filter: function(id) {\\r\\n if (id == undefined) {\\r\\n id = \\\"filter-\\\" + idCounter++;\\r\\n while(FR.filters[id] != undefined) {\\r\\n id = \\\"filter-\\\" + idCounter++;\\r\\n }\\r\\n }\\r\\n\\r\\n if (FR.filters[id] != undefined) {\\r\\n throw \\\"A filter with id \\\" + id + \\\" already exists\\\";\\r\\n }\\r\\n\\r\\n this.element = document.createElementNS(ns, \\\"filter\\\");\\r\\n this.element.setAttribute(\\\"id\\\", id);\\r\\n this.element.setAttribute(\\\"x\\\", \\\"-25%\\\");\\r\\n this.element.setAttribute(\\\"y\\\", \\\"-25%\\\");\\r\\n this.element.setAttribute(\\\"width\\\", \\\"150%\\\");\\r\\n this.element.setAttribute(\\\"height\\\", \\\"150%\\\");\\r\\n\\r\\n this.lastFEResult = null;\\r\\n\\r\\n FR.filters[id] = this;\\r\\n this.id = id;\\r\\n },\\r\\n\\r\\n // Object prototype for an effect\\r\\n FilterEffect: function(type, attributes) {\\r\\n this.element = document.createElementNS(ns, type);\\r\\n for (var key in attributes) {\\r\\n this.element.setAttribute(key, attributes[key]);\\r\\n }\\r\\n },\\r\\n\\r\\n // Return the filter applied to an element or a new filter if none are currently applied\\r\\n getFilter: function(element) {\\r\\n var filterId = element.data(\\\"filterId\\\");\\r\\n var filter = null;\\r\\n\\r\\n if (filterId == undefined) {\\r\\n filterId = \\\"element-filter-\\\" + element.id;\\r\\n filter = element.paper.createFilter(filterId);\\r\\n element.filter(filterId);\\r\\n } else {\\r\\n filter = FR.filters[filterId];\\r\\n }\\r\\n\\r\\n return filter;\\r\\n },\\r\\n\\r\\n // maintain a list of filters by id\\r\\n filters: {}\\r\\n };\\r\\n\\r\\n FR.Filter.prototype = {\\r\\n addEffect: function(type, attributes, children) {\\r\\n var effect = new FR.FilterEffect(type, attributes);\\r\\n\\r\\n if (children) {\\r\\n if (children instanceof Array) {\\r\\n for (var x in children) {\\r\\n if (!children.hasOwnProperty(x)) continue;\\r\\n\\r\\n effect.element.appendChild(children[x].element);\\r\\n }\\r\\n } else {\\r\\n effect.element.appendChild(children.element);\\r\\n }\\r\\n }\\r\\n\\r\\n this.element.appendChild(effect.element);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n chainEffect: function(type, attributes, children) {\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n var inId;\\r\\n var outId;\\r\\n if (attributes.in == undefined) {\\r\\n inId = this.getLastResult();\\r\\n } else {\\r\\n inId = attributes.in;\\r\\n }\\r\\n if (attributes.result == undefined) {\\r\\n outId = idCounter++;\\r\\n } else {\\r\\n outId = attributes.result;\\r\\n }\\r\\n\\r\\n this.lastFEResult = outId;\\r\\n\\r\\n attributes.in = inId;\\r\\n attributes.result = outId;\\r\\n\\r\\n this.addEffect(type, attributes, children);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n getLastResult: function() {\\r\\n return (this.lastFEResult == undefined) ? \\\"SourceGraphic\\\" : this.lastFEResult;\\r\\n },\\r\\n\\r\\n merge: function(in1, in2, attributes) {\\r\\n var mergeNode1 = new FR.FilterEffect(\\\"feMergeNode\\\", {\\r\\n in: in1\\r\\n });\\r\\n var mergeNode2 = new FR.FilterEffect(\\\"feMergeNode\\\", {\\r\\n in: in2\\r\\n });\\r\\n\\r\\n this.chainEffect(\\\"feMerge\\\", attributes, [mergeNode1, mergeNode2]);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n compose: function(in1, in2, operator, attributes) {\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n if (operator == undefined) {\\r\\n operator = \\\"over\\\";\\r\\n }\\r\\n\\r\\n attributes.in = in1;\\r\\n attributes.in2 = in2;\\r\\n attributes.operator = operator;\\r\\n\\r\\n this.chainEffect(\\\"feComposite\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n arithmeticCompose: function(in1, in2, k1, k2, k3, k4) {\\r\\n if (k1 == undefined) {\\r\\n k1 = 0;\\r\\n }\\r\\n if (k2 == undefined) {\\r\\n k2 = 0;\\r\\n }\\r\\n if (k3 == undefined) {\\r\\n k3 = 0;\\r\\n }\\r\\n if (k4 == undefined) {\\r\\n k4 = 0;\\r\\n }\\r\\n\\r\\n this.compose(in1, in2, \\\"arithmetic\\\", {\\r\\n k1: k1,\\r\\n k2: k2,\\r\\n k3: k3,\\r\\n k4: k4\\r\\n });\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addBlur: function(stdDeviation, attributes) {\\r\\n if (!stdDeviation) {\\r\\n throw \\\"Standard deviation is required to perform a blur filter\\\";\\r\\n }\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n attributes.stdDeviation = stdDeviation;\\r\\n\\r\\n this.chainEffect(\\\"feGaussianBlur\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addOffset: function(dx, dy, attributes) {\\r\\n if (dx == undefined | dy == undefined) {\\r\\n throw \\\"dx and dy values are required to perform an offset FE\\\";\\r\\n }\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n attributes.dx = dx;\\r\\n attributes.dy = dy;\\r\\n\\r\\n this.chainEffect(\\\"feOffset\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addLighting: function(x, y, z, color, type, attributes) {\\r\\n if (x == undefined | y == undefined | z == undefined) {\\r\\n throw \\\"Three co-ordinates are required to create a light source\\\";\\r\\n }\\r\\n\\r\\n var previousResult = this.getLastResult();\\r\\n\\r\\n var id = idCounter++;\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n attributes.result = id;\\r\\n if (color != undefined) {\\r\\n attributes[\\\"lighting-color\\\"] = color;\\r\\n }\\r\\n\\r\\n if (type == undefined || type == \\\"diffuse\\\") {\\r\\n type = \\\"feDiffuseLighting\\\";\\r\\n } else if (type == \\\"specular\\\") {\\r\\n type = \\\"feSpecularLighting\\\";\\r\\n }\\r\\n\\r\\n var lightSource = new FR.FilterEffect(\\\"fePointLight\\\", {\\r\\n x: x,\\r\\n y: y,\\r\\n z: z\\r\\n });\\r\\n\\r\\n this.chainEffect(type, attributes, lightSource).arithmeticCompose(previousResult, id, 3, 0.2, 0, 0);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addShiftToColor: function(color, moveBy, attributes) {\\r\\n if (color == undefined) {\\r\\n throw \\\"A colour string is a required argument to create a colorMatrix\\\";\\r\\n }\\r\\n if (moveBy == undefined) {\\r\\n moveBy = 0.5;\\r\\n }\\r\\n\\r\\n var remainingColor = 1 - moveBy, x = remainingColor;\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n var colorObject = Raphael.color(color);\\r\\n var\\tr = colorObject.r * moveBy / 255,\\r\\n g = colorObject.g * moveBy / 255,\\r\\n b = colorObject.b * moveBy / 255;\\r\\n\\r\\n /**\\r\\n * r'\\tx 0 0 0 r\\t\\tr\\r\\n * g'\\t0 x 0 0 g\\t\\tg\\r\\n * b' =\\t0 0 x 0 b\\t.\\tb\\r\\n * a'\\t0 0 0 1 0\\t\\to\\r\\n * 1\\t\\t\\t\\t\\t1\\r\\n */\\r\\n attributes.values = x + \\\" 0 0 0 \\\" + r + \\\" 0 \\\" + x + \\\" 0 0 \\\" + g + \\\" 0 0 \\\" + x + \\\" 0 \\\" + b + \\\" 0 0 0 1 0 \\\";\\r\\n\\r\\n this.chainEffect(\\\"feColorMatrix\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addRecolor: function(color, opacity, attributes) {\\r\\n if (color == undefined) {\\r\\n throw \\\"A colour string is a required argument to create a colorMatrix\\\";\\r\\n }\\r\\n if (opacity == undefined) {\\r\\n opacity = 1;\\r\\n }\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n var colorObject = Raphael.color(color);\\r\\n var\\tr = colorObject.r / 255,\\r\\n g = colorObject.g / 255,\\r\\n b = colorObject.b / 255;\\r\\n\\r\\n /**\\r\\n * r'\\t0 0 0 0 r\\t\\tr\\r\\n * g'\\t0 0 0 0 g\\t\\tg\\r\\n * b' =\\t0 0 0 0 b\\t.\\tb\\r\\n * a'\\t0 0 0 a 0\\t\\ta\\r\\n * 1\\t\\t\\t\\t\\t1\\r\\n */\\r\\n attributes.values = \\\"0 0 0 0 \\\" + r + \\\" 0 0 0 0 \\\" + g + \\\" 0 0 0 0 \\\" + b + \\\" 0 0 0 \\\" + opacity + \\\" 0 \\\";\\r\\n\\r\\n this.chainEffect(\\\"feColorMatrix\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addDesaturate: function(saturation, attributes) {\\r\\n if (saturation == undefined) {\\r\\n saturnation = 0;\\r\\n }\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n attributes.values = saturation;\\r\\n attributes.type = \\\"saturate\\\";\\r\\n\\r\\n this.chainEffect(\\\"feColorMatrix\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addConvolveMatrix: function(matrix, attributes) {\\r\\n if (matrix == undefined) {\\r\\n throw \\\"A matrix (usually 9 numbers) must be provided to apply a convolve matrix transform\\\";\\r\\n }\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n attributes.kernelMatrix = matrix;\\r\\n\\r\\n this.chainEffect(\\\"feConvolveMatrix\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n createShadow: function(dx, dy, blur, opacity, color) {\\r\\n if (dx == undefined) {\\r\\n throw \\\"dx is required for the shadow effect\\\";\\r\\n }\\r\\n if (dy == undefined) {\\r\\n throw \\\"dy is required for the shadow effect\\\";\\r\\n }\\r\\n if (blur == undefined) {\\r\\n throw \\\"blur (stdDeviation) is required for the shadow effect\\\";\\r\\n }\\r\\n\\r\\n if (opacity == undefined) {\\r\\n opacity = 0.6;\\r\\n }\\r\\n\\r\\n var previousResult = this.getLastResult();\\r\\n\\r\\n if (color == undefined) {\\r\\n color = \\\"#000000\\\";\\r\\n }\\r\\n\\r\\n this.addOffset(dx, dy, {\\r\\n in: \\\"SourceAlpha\\\"\\r\\n });\\r\\n\\r\\n this.addRecolor(color, opacity);\\r\\n\\r\\n this.addBlur(blur);\\r\\n\\r\\n this.merge(this.getLastResult(), previousResult);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n createEmboss: function(height, x, y, z) {\\r\\n if (height == undefined) {\\r\\n height = 2;\\r\\n }\\r\\n if (x == undefined) {\\r\\n x = -1000;\\r\\n }\\r\\n if (y == undefined) {\\r\\n y = -5000;\\r\\n }\\r\\n if (z == undefined) {\\r\\n z = 300;\\r\\n }\\r\\n\\r\\n // Create the highlight\\r\\n\\r\\n this.addOffset(height * x / (x + y), height * y / (x + y), {\\r\\n in: \\\"SourceAlpha\\\"\\r\\n });\\r\\n\\r\\n this.addBlur(height * 0.5);\\r\\n\\r\\n var whiteLightSource = new FR.FilterEffect(\\\"fePointLight\\\", {\\r\\n x: x,\\r\\n y: y,\\r\\n z: z\\r\\n });\\r\\n\\r\\n this.chainEffect(\\\"feSpecularLighting\\\", {\\r\\n surfaceScale: height,\\r\\n specularConstant: 0.8,\\r\\n specularExponent: 15\\r\\n }, whiteLightSource);\\r\\n\\r\\n this.compose(this.getLastResult(), \\\"SourceAlpha\\\", \\\"in\\\");\\r\\n var whiteLight = this.getLastResult();\\r\\n\\r\\n // Create the lowlight\\r\\n\\r\\n this.addOffset(height * -1 * x / (x + y), height * -1 * y / (x + y), {\\r\\n in: \\\"SourceAlpha\\\"\\r\\n });\\r\\n\\r\\n this.addBlur(height * 0.5);\\r\\n\\r\\n var darkLightSource = new FR.FilterEffect(\\\"fePointLight\\\", {\\r\\n x: -1 * x,\\r\\n y: -1 * y,\\r\\n z: z\\r\\n });\\r\\n\\r\\n this.chainEffect(\\\"feSpecularLighting\\\", {\\r\\n surfaceScale: height,\\r\\n specularConstant: 1.8,\\r\\n specularExponent: 6\\r\\n }, darkLightSource);\\r\\n\\r\\n this.compose(this.getLastResult(), \\\"SourceAlpha\\\", \\\"in\\\");\\r\\n this.chainEffect(\\\"feColorMatrix\\\", {\\r\\n values: \\\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0\\\"\\r\\n });\\r\\n var darkLight = this.getLastResult();\\r\\n\\r\\n this.arithmeticCompose(whiteLight, darkLight, 0, 0.8, 0.5, 0);\\r\\n\\r\\n this.merge(\\\"SourceGraphic\\\", this.getLastResult());\\r\\n\\r\\n return this;\\r\\n }\\r\\n };\\r\\n\\r\\n scope.FRaphael = FR;\\r\\n})(this);\\r\\n\\r\\n/**\\r\\n * add a filter to the paper by id\\r\\n */\\r\\nRaphael.fn.createFilter = function(id) {\\r\\n var paper = this;\\r\\n var filter = new FRaphael.Filter(id);\\r\\n paper.defs.appendChild(filter.element);\\r\\n\\r\\n return filter;\\r\\n};\\r\\n\\r\\n/**\\r\\n * Apply a filter to an element by id\\r\\n */\\r\\nRaphael.el.filter = function(filter) {\\r\\n var id = (filter instanceof FRaphael.Filter) ? filter.id : filter;\\r\\n\\r\\n this.node.setAttribute(\\\"filter\\\", \\\"url(#\\\" + id + \\\")\\\");\\r\\n this.data(\\\"filterId\\\", id);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * Get the current filter for an element or a new one if not\\r\\n */\\r\\nRaphael.el.getFilter = function() {\\r\\n return FRaphael.getFilter(this);\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for applying blur\\r\\n */\\r\\nRaphael.el.blur = function(stdDeviation) {\\r\\n if (stdDeviation == undefined) {\\r\\n stdDeviation = 3;\\r\\n }\\r\\n\\r\\n this.getFilter().addBlur(stdDeviation);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for applying a drop shadow\\r\\n */\\r\\nRaphael.el.shadow = function(dx, dy, blur, opacity, color) {\\r\\n if (dx == undefined) {\\r\\n dx = 3;\\r\\n }\\r\\n if (dy == undefined) {\\r\\n dy = 3;\\r\\n }\\r\\n if (blur == undefined) {\\r\\n blur = 3;\\r\\n }\\r\\n\\r\\n this.getFilter().createShadow(dx, dy, blur, opacity, color);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for applying lighting\\r\\n */\\r\\nRaphael.el.light = function(x, y, z, color, type) {\\r\\n if (x == undefined) {\\r\\n x = this.paper.width;\\r\\n }\\r\\n if (y == undefined) {\\r\\n y = 0;\\r\\n }\\r\\n if (z == undefined) {\\r\\n z = 20;\\r\\n }\\r\\n\\r\\n this.getFilter().addLighting(x, y, z, color, type);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for applying a colour shift\\r\\n */\\r\\nRaphael.el.colorShift = function(color, shift) {\\r\\n if (color == undefined) {\\r\\n color = \\\"black\\\";\\r\\n }\\r\\n if (shift == undefined) {\\r\\n shift = 0.5;\\r\\n }\\r\\n\\r\\n this.getFilter().addShiftToColor(color, shift);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for embossing\\r\\n */\\r\\nRaphael.el.emboss = function(height) {\\r\\n this.getFilter().createEmboss(height);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for desaturating\\r\\n */\\r\\nRaphael.el.desaturate = function(saturation) {\\r\\n this.getFilter().addDesaturate(saturation);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for complete desaturation\\r\\n */\\r\\nRaphael.el.greyScale = function() {\\r\\n this.getFilter().addDesaturate(0);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\"\n\n/***/ }),\n\n/***/ \"./node_modules/rgbcolor/index.js\":\n/*!****************************************!*\\\n !*** ./node_modules/rgbcolor/index.js ***!\n \\****************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n/*\n\tBased on rgbcolor.js by Stoyan Stefanov <sstoo@gmail.com>\n\thttp://www.phpied.com/rgb-color-parser-in-javascript/\n*/\n\nmodule.exports = function(color_string) {\n this.ok = false;\n this.alpha = 1.0;\n\n // strip any leading #\n if (color_string.charAt(0) == '#') { // remove # if any\n color_string = color_string.substr(1,6);\n }\n\n color_string = color_string.replace(/ /g,'');\n color_string = color_string.toLowerCase();\n\n // before getting into regexps, try simple matches\n // and overwrite the input\n var simple_colors = {\n aliceblue: 'f0f8ff',\n antiquewhite: 'faebd7',\n aqua: '00ffff',\n aquamarine: '7fffd4',\n azure: 'f0ffff',\n beige: 'f5f5dc',\n bisque: 'ffe4c4',\n black: '000000',\n blanchedalmond: 'ffebcd',\n blue: '0000ff',\n blueviolet: '8a2be2',\n brown: 'a52a2a',\n burlywood: 'deb887',\n cadetblue: '5f9ea0',\n chartreuse: '7fff00',\n chocolate: 'd2691e',\n coral: 'ff7f50',\n cornflowerblue: '6495ed',\n cornsilk: 'fff8dc',\n crimson: 'dc143c',\n cyan: '00ffff',\n darkblue: '00008b',\n darkcyan: '008b8b',\n darkgoldenrod: 'b8860b',\n darkgray: 'a9a9a9',\n darkgreen: '006400',\n darkkhaki: 'bdb76b',\n darkmagenta: '8b008b',\n darkolivegreen: '556b2f',\n darkorange: 'ff8c00',\n darkorchid: '9932cc',\n darkred: '8b0000',\n darksalmon: 'e9967a',\n darkseagreen: '8fbc8f',\n darkslateblue: '483d8b',\n darkslategray: '2f4f4f',\n darkturquoise: '00ced1',\n darkviolet: '9400d3',\n deeppink: 'ff1493',\n deepskyblue: '00bfff',\n dimgray: '696969',\n dodgerblue: '1e90ff',\n feldspar: 'd19275',\n firebrick: 'b22222',\n floralwhite: 'fffaf0',\n forestgreen: '228b22',\n fuchsia: 'ff00ff',\n gainsboro: 'dcdcdc',\n ghostwhite: 'f8f8ff',\n gold: 'ffd700',\n goldenrod: 'daa520',\n gray: '808080',\n green: '008000',\n greenyellow: 'adff2f',\n honeydew: 'f0fff0',\n hotpink: 'ff69b4',\n indianred : 'cd5c5c',\n indigo : '4b0082',\n ivory: 'fffff0',\n khaki: 'f0e68c',\n lavender: 'e6e6fa',\n lavenderblush: 'fff0f5',\n lawngreen: '7cfc00',\n lemonchiffon: 'fffacd',\n lightblue: 'add8e6',\n lightcoral: 'f08080',\n lightcyan: 'e0ffff',\n lightgoldenrodyellow: 'fafad2',\n lightgrey: 'd3d3d3',\n lightgreen: '90ee90',\n lightpink: 'ffb6c1',\n lightsalmon: 'ffa07a',\n lightseagreen: '20b2aa',\n lightskyblue: '87cefa',\n lightslateblue: '8470ff',\n lightslategray: '778899',\n lightsteelblue: 'b0c4de',\n lightyellow: 'ffffe0',\n lime: '00ff00',\n limegreen: '32cd32',\n linen: 'faf0e6',\n magenta: 'ff00ff',\n maroon: '800000',\n mediumaquamarine: '66cdaa',\n mediumblue: '0000cd',\n mediumorchid: 'ba55d3',\n mediumpurple: '9370d8',\n mediumseagreen: '3cb371',\n mediumslateblue: '7b68ee',\n mediumspringgreen: '00fa9a',\n mediumturquoise: '48d1cc',\n mediumvioletred: 'c71585',\n midnightblue: '191970',\n mintcream: 'f5fffa',\n mistyrose: 'ffe4e1',\n moccasin: 'ffe4b5',\n navajowhite: 'ffdead',\n navy: '000080',\n oldlace: 'fdf5e6',\n olive: '808000',\n olivedrab: '6b8e23',\n orange: 'ffa500',\n orangered: 'ff4500',\n orchid: 'da70d6',\n palegoldenrod: 'eee8aa',\n palegreen: '98fb98',\n paleturquoise: 'afeeee',\n palevioletred: 'd87093',\n papayawhip: 'ffefd5',\n peachpuff: 'ffdab9',\n peru: 'cd853f',\n pink: 'ffc0cb',\n plum: 'dda0dd',\n powderblue: 'b0e0e6',\n purple: '800080',\n red: 'ff0000',\n rosybrown: 'bc8f8f',\n royalblue: '4169e1',\n saddlebrown: '8b4513',\n salmon: 'fa8072',\n sandybrown: 'f4a460',\n seagreen: '2e8b57',\n seashell: 'fff5ee',\n sienna: 'a0522d',\n silver: 'c0c0c0',\n skyblue: '87ceeb',\n slateblue: '6a5acd',\n slategray: '708090',\n snow: 'fffafa',\n springgreen: '00ff7f',\n steelblue: '4682b4',\n tan: 'd2b48c',\n teal: '008080',\n thistle: 'd8bfd8',\n tomato: 'ff6347',\n turquoise: '40e0d0',\n violet: 'ee82ee',\n violetred: 'd02090',\n wheat: 'f5deb3',\n white: 'ffffff',\n whitesmoke: 'f5f5f5',\n yellow: 'ffff00',\n yellowgreen: '9acd32'\n };\n color_string = simple_colors[color_string] || color_string;\n // emd of simple type-in colors\n\n // array of color definition objects\n var color_defs = [\n {\n re: /^rgba\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*((?:\\d?\\.)?\\d)\\)$/,\n example: ['rgba(123, 234, 45, 0.8)', 'rgba(255,234,245,1.0)'],\n process: function (bits){\n return [\n parseInt(bits[1]),\n parseInt(bits[2]),\n parseInt(bits[3]),\n parseFloat(bits[4])\n ];\n }\n },\n {\n re: /^rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$/,\n example: ['rgb(123, 234, 45)', 'rgb(255,234,245)'],\n process: function (bits){\n return [\n parseInt(bits[1]),\n parseInt(bits[2]),\n parseInt(bits[3])\n ];\n }\n },\n {\n re: /^(\\w{2})(\\w{2})(\\w{2})$/,\n example: ['#00ff00', '336699'],\n process: function (bits){\n return [\n parseInt(bits[1], 16),\n parseInt(bits[2], 16),\n parseInt(bits[3], 16)\n ];\n }\n },\n {\n re: /^(\\w{1})(\\w{1})(\\w{1})$/,\n example: ['#fb0', 'f0f'],\n process: function (bits){\n return [\n parseInt(bits[1] + bits[1], 16),\n parseInt(bits[2] + bits[2], 16),\n parseInt(bits[3] + bits[3], 16)\n ];\n }\n }\n ];\n\n // search through the definitions to find a match\n for (var i = 0; i < color_defs.length; i++) {\n var re = color_defs[i].re;\n var processor = color_defs[i].process;\n var bits = re.exec(color_string);\n if (bits) {\n var channels = processor(bits);\n this.r = channels[0];\n this.g = channels[1];\n this.b = channels[2];\n if (channels.length > 3) {\n this.alpha = channels[3];\n }\n this.ok = true;\n }\n\n }\n\n // validate/cleanup values\n this.r = (this.r < 0 || isNaN(this.r)) ? 0 : ((this.r > 255) ? 255 : this.r);\n this.g = (this.g < 0 || isNaN(this.g)) ? 0 : ((this.g > 255) ? 255 : this.g);\n this.b = (this.b < 0 || isNaN(this.b)) ? 0 : ((this.b > 255) ? 255 : this.b);\n this.alpha = (this.alpha < 0) ? 0 : ((this.alpha > 1.0 || isNaN(this.alpha)) ? 1.0 : this.alpha);\n\n // some getters\n this.toRGB = function () {\n return 'rgb(' + this.r + ', ' + this.g + ', ' + this.b + ')';\n }\n this.toRGBA = function () {\n return 'rgba(' + this.r + ', ' + this.g + ', ' + this.b + ', ' + this.alpha + ')';\n }\n this.toHex = function () {\n var r = this.r.toString(16);\n var g = this.g.toString(16);\n var b = this.b.toString(16);\n if (r.length == 1) r = '0' + r;\n if (g.length == 1) g = '0' + g;\n if (b.length == 1) b = '0' + b;\n return '#' + r + g + b;\n }\n\n // help\n this.getHelpXML = function () {\n\n var examples = new Array();\n // add regexps\n for (var i = 0; i < color_defs.length; i++) {\n var example = color_defs[i].example;\n for (var j = 0; j < example.length; j++) {\n examples[examples.length] = example[j];\n }\n }\n // add type-in colors\n for (var sc in simple_colors) {\n examples[examples.length] = sc;\n }\n\n var xml = document.createElement('ul');\n xml.setAttribute('id', 'rgbcolor-examples');\n for (var i = 0; i < examples.length; i++) {\n try {\n var list_item = document.createElement('li');\n var list_color = new RGBColor(examples[i]);\n var example_div = document.createElement('div');\n example_div.style.cssText =\n 'margin: 3px; '\n + 'border: 1px solid black; '\n + 'background:' + list_color.toHex() + '; '\n + 'color:' + list_color.toHex()\n ;\n example_div.appendChild(document.createTextNode('test'));\n var list_item_value = document.createTextNode(\n ' ' + examples[i] + ' -> ' + list_color.toRGB() + ' -> ' + list_color.toHex()\n );\n list_item.appendChild(example_div);\n list_item.appendChild(list_item_value);\n xml.appendChild(list_item);\n\n } catch(e){}\n }\n return xml;\n\n }\n\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/script-loader/addScript.js\":\n/*!*************************************************!*\\\n !*** ./node_modules/script-loader/addScript.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\nmodule.exports = function(src) {\n\tfunction log(error) {\n\t\t(typeof console !== \"undefined\")\n\t\t&& (console.error || console.log)(\"[Script Loader]\", error);\n\t}\n\n\t// Check for IE =< 8\n\tfunction isIE() {\n\t\treturn typeof attachEvent !== \"undefined\" && typeof addEventListener === \"undefined\";\n\t}\n\n\ttry {\n\t\tif (typeof execScript !== \"undefined\" && isIE()) {\n\t\t\texecScript(src);\n\t\t} else if (typeof eval !== \"undefined\") {\n\t\t\teval.call(null, src);\n\t\t} else {\n\t\t\tlog(\"EvalError: No eval function available\");\n\t\t}\n\t} catch (error) {\n\t\tlog(error);\n\t}\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/shifty/dist/shifty.js\":\n/*!********************************************!*\\\n !*** ./node_modules/shifty/dist/shifty.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n/*! 2.3.1 */\n!function(t,e){ true?module.exports=e():undefined}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,\"a\",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"/assets/\",e(e.s=6)}([function(t,e,n){\"use strict\";(function(t){function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new j,n=e.tween(t);return n.tweenable=e,n}Object.defineProperty(e,\"__esModule\",{value:!0}),e.Tweenable=e.composeEasingObject=e.tweenProps=e.clone=e.each=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t};e.tween=o;var c=n(5),s=r(c),f=n(1),h=function(t){return t&&t.__esModule?t:{default:t}}(f),l=n(7),p=r(l),d=\"undefined\"!=typeof window?window:t,m=d.cancelAnimationFrame||d.webkitCancelAnimationFrame||d.oCancelAnimationFrame||d.msCancelAnimationFrame||d.mozCancelRequestAnimationFrame||d.clearTimeout,_=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.oRequestAnimationFrame||d.msRequestAnimationFrame||d.mozCancelRequestAnimationFrame&&d.mozRequestAnimationFrame||setTimeout,v=function(){},y=e.each=function(t,e){return Object.keys(t).forEach(e)},w=e.clone=function(t){return(0,h.default)({},t)},g=w(s),b=function(t,e,n,r){return t+(e-t)*n(r)},O=e.tweenProps=function(t,e,n,r,i,o,u){var a=t<o?0:(t-o)/i;return y(e,function(t){var i=u[t],o=\"function\"==typeof i?i:g[i];e[t]=b(n[t],r[t],o,a)}),e},M=e.composeEasingObject=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"linear\",n={},r=void 0===e?\"undefined\":a(e);return\"string\"===r||\"function\"===r?y(t,function(t){return n[t]=e}):y(t,function(t){return n[t]=n[t]||e[t]||\"linear\"}),n},j=e.Tweenable=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;i(this,t),this._currentState=e,this._configured=!1,this._scheduleFunction=_,void 0!==n&&this.setConfig(n)}return u(t,[{key:\"_applyFilter\",value:function(e){var n=this,r=t.filters,i=this._filterArgs;y(r,function(t){var o=r[t][e];void 0!==o&&o.apply(n,i)})}},{key:\"_timeoutHandler\",value:function(e){var n=this,r=arguments,i=this._currentState,o=this._delay,u=this._duration,a=this._step,c=this._targetState,s=this._timestamp,f=s+o+u,h=Math.min(e||t.now(),f),l=h>=f,p=u-(f-h);this.isPlaying()&&(l?(a(c,this._attachment,p),this.stop(!0)):(this._scheduleId=this._scheduleFunction.call(d,function(){return n._timeoutHandler.apply(n,r)},1e3/60),this._applyFilter(\"beforeTween\"),h<s+o?(h=1,u=1,s=1):s+=o,O(h,i,this._originalState,c,u,s,this._easing),this._applyFilter(\"afterTween\"),a(i,this._attachment,p)))}},{key:\"tween\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=this._attachment,r=this._configured;return this._isTweening?this:(void 0===e&&r||this.setConfig(e),this._timestamp=t.now(),this._start(this.get(),n),this.resume())}},{key:\"setConfig\",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._configured=!0,this._attachment=e.attachment,(0,h.default)(this,{_pausedAtTime:null,_scheduleId:null,_delay:e.delay||0,_start:e.start||v,_step:e.step||v,_duration:e.duration||500,_currentState:w(e.from||this.get())}),(0,h.default)(this,{_originalState:this.get(),_targetState:w(e.to||this.get())});var n=this._currentState;this._targetState=(0,h.default)({},n,this._targetState),this._easing=M(n,e.easing),this._filterArgs=[n,this._originalState,this._targetState,this._easing],this._applyFilter(\"tweenCreated\");var r=e.promise||Promise;return this._promise=new r(function(e,n){t._resolve=e,t._reject=n}),this._promise.catch(v),this}},{key:\"get\",value:function(){return w(this._currentState)}},{key:\"set\",value:function(t){this._currentState=t}},{key:\"pause\",value:function(){return this._pausedAtTime=t.now(),this._isPaused=!0,this}},{key:\"resume\",value:function(){return this._isPaused&&(this._timestamp+=t.now()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0,this._timeoutHandler(),this._promise}},{key:\"seek\",value:function(e){e=Math.max(e,0);var n=t.now();return this._timestamp+e===0?this:(this._timestamp=n-e,this.isPlaying()||(this._isTweening=!0,this._isPaused=!1,this._timeoutHandler(n),this.pause()),this)}},{key:\"stop\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._attachment,n=this._currentState,r=this._easing,i=this._originalState,o=this._targetState;return this._isTweening=!1,this._isPaused=!1,m(this._scheduleId),t?(this._applyFilter(\"beforeTween\"),O(1,n,i,o,1,0,r),this._applyFilter(\"afterTween\"),this._applyFilter(\"afterTweenEnd\"),this._resolve(n,e)):this._reject(n,e),this}},{key:\"isPlaying\",value:function(){return this._isTweening&&!this._isPaused}},{key:\"setScheduleFunction\",value:function(t){this._scheduleFunction=t}},{key:\"dispose\",value:function(){var t=this;y(this,function(e){return delete t[e]})}}]),t}();(0,h.default)(j,{formulas:g,filters:{token:p},now:Date.now||function(t){return+new Date}})}).call(e,n(4))},function(t,e,n){\"use strict\";function r(t){if(null===t||void 0===t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e[\"_\"+String.fromCharCode(n)]=n;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(\"\"))return!1;var r={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(t){r[t]=t}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},r)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,c=r(t),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var f in n)o.call(n,f)&&(c[f]=n[f]);if(i){a=i(n);for(var h=0;h<a.length;h++)u.call(n,a[h])&&(c[a[h]]=n[a[h]])}}return c}},function(t,e,n){\"use strict\";function r(t,e,n,r,i,o){var u=0,a=0,c=0,s=0,f=0,h=0,l=function(t){return((u*t+a)*t+c)*t},p=function(t){return((s*t+f)*t+h)*t},d=function(t){return(3*u*t+2*a)*t+c},m=function(t){return t>=0?t:0-t},_=function(t,e){var n=void 0,r=void 0,i=void 0,o=void 0,u=void 0,a=void 0;for(i=t,a=0;a<8;a++){if(o=l(i)-t,m(o)<e)return i;if(u=d(i),m(u)<1e-6)break;i-=o/u}if(n=0,r=1,(i=t)<n)return n;if(i>r)return r;for(;n<r;){if(o=l(i),m(o-t)<e)return i;t>o?n=i:r=i,i=.5*(r-n)+n}return i};return c=3*e,a=3*(r-e)-c,u=1-c-a,h=3*n,f=3*(i-n)-h,s=1-h-f,function(t,e){return p(_(t,e))}(t,function(t){return 1/(200*t)}(o))}Object.defineProperty(e,\"__esModule\",{value:!0}),e.unsetBezierFunction=e.setBezierFunction=void 0;var i=n(0),o=n(1),u=function(t){return t&&t.__esModule?t:{default:t}}(o),a=function(t,e,n,i){return function(o){return r(o,t,e,n,i,1)}};e.setBezierFunction=function(t,e,n,r,o){return i.Tweenable.formulas[t]=(0,u.default)(a(e,n,r,o),{displayName:t,x1:e,y1:n,x2:r,y2:o})},e.unsetBezierFunction=function(t){return delete i.Tweenable.formulas[t]}},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.interpolate=void 0;var r=n(0),i=new r.Tweenable;i._filterArgs=[];e.interpolate=function(t,e,n,o){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=(0,r.clone)(t),c=(0,r.composeEasingObject)(t,o);i.set({}),i._filterArgs=[a,t,e,c],i._applyFilter(\"tweenCreated\"),i._applyFilter(\"beforeTween\");var s=(0,r.tweenProps)(n,a,t,e,1,u,c);return i._applyFilter(\"afterTween\"),s}},function(t,e,n){\"use strict\";var r,i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t};r=function(){return this}();try{r=r||Function(\"return this\")()||(0,eval)(\"this\")}catch(t){\"object\"===(\"undefined\"==typeof window?\"undefined\":i(window))&&(r=window)}t.exports=r},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});e.linear=function(t){return t},e.easeInQuad=function(t){return Math.pow(t,2)},e.easeOutQuad=function(t){return-(Math.pow(t-1,2)-1)},e.easeInOutQuad=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},e.easeInCubic=function(t){return Math.pow(t,3)},e.easeOutCubic=function(t){return Math.pow(t-1,3)+1},e.easeInOutCubic=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},e.easeInQuart=function(t){return Math.pow(t,4)},e.easeOutQuart=function(t){return-(Math.pow(t-1,4)-1)},e.easeInOutQuart=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},e.easeInQuint=function(t){return Math.pow(t,5)},e.easeOutQuint=function(t){return Math.pow(t-1,5)+1},e.easeInOutQuint=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},e.easeInSine=function(t){return 1-Math.cos(t*(Math.PI/2))},e.easeOutSine=function(t){return Math.sin(t*(Math.PI/2))},e.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},e.easeInExpo=function(t){return 0===t?0:Math.pow(2,10*(t-1))},e.easeOutExpo=function(t){return 1===t?1:1-Math.pow(2,-10*t)},e.easeInOutExpo=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},e.easeInCirc=function(t){return-(Math.sqrt(1-t*t)-1)},e.easeOutCirc=function(t){return Math.sqrt(1-Math.pow(t-1,2))},e.easeInOutCirc=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},e.easeOutBounce=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},e.easeInBack=function(t){var e=1.70158;return t*t*((e+1)*t-e)},e.easeOutBack=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},e.easeInOutBack=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},e.elastic=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},e.swingFromTo=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},e.swingFrom=function(t){var e=1.70158;return t*t*((e+1)*t-e)},e.swingTo=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},e.bounce=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},e.bouncePast=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},e.easeFromTo=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},e.easeFrom=function(t){return Math.pow(t,4)},e.easeTo=function(t){return Math.pow(t,.25)}},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(0);Object.defineProperty(e,\"Tweenable\",{enumerable:!0,get:function(){return r.Tweenable}}),Object.defineProperty(e,\"tween\",{enumerable:!0,get:function(){return r.tween}});var i=n(3);Object.defineProperty(e,\"interpolate\",{enumerable:!0,get:function(){return i.interpolate}});var o=n(2);Object.defineProperty(e,\"setBezierFunction\",{enumerable:!0,get:function(){return o.setBezierFunction}}),Object.defineProperty(e,\"unsetBezierFunction\",{enumerable:!0,get:function(){return o.unsetBezierFunction}})},function(t,e,n){\"use strict\";function r(t){return parseInt(t,16)}function i(t,e,n){[t,e,n].forEach(_),this._tokenData=g(t)}function o(t,e,n,r){var i=this._tokenData;P(r,i),[t,e,n].forEach(function(t){return b(t,i)})}function u(t,e,n,r){var i=this._tokenData;[t,e,n].forEach(function(t){return F(t,i)}),S(r,i)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.tweenCreated=i,e.beforeTween=o,e.afterTween=u;var a=n(0),c=function(){var t=/[0-9.\\-]+/g.source,e=/,\\s*/.source;return new RegExp(\"rgb\\\\(\"+t+e+t+e+t+\"\\\\)\",\"g\")}(),s=/#([0-9]|[a-f]){3,6}/gi,f=function(t,e){return t.map(function(t,n){return\"_\"+e+\"_\"+n})},h=function(t){var e=t.match(/([^\\-0-9\\.]+)/g);return e?(1===e.length||t.charAt(0).match(/(\\d|\\-|\\.)/))&&e.unshift(\"\"):e=[\"\",\"\"],e.join(\"VAL\")},l=function(t){return t=t.replace(/#/,\"\"),3===t.length&&(t=t.split(\"\"),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),[r(t.substr(0,2)),r(t.substr(2,2)),r(t.substr(4,2))]},p=function(t){return\"rgb(\"+l(t).join(\",\")+\")\"},d=function(t,e,n){var r=e.match(t),i=e.replace(t,\"VAL\");return r&&r.forEach(function(t){return i=i.replace(\"VAL\",n(t))}),i},m=function(t){return d(s,t,p)},_=function(t){(0,a.each)(t,function(e){var n=t[e];\"string\"==typeof n&&n.match(s)&&(t[e]=m(n))})},v=function(t){var e=t.match(/[0-9.\\-]+/g).map(Math.floor);return\"\"+t.match(/^.*\\(/)[0]+e.join(\",\")+\")\"},y=function(t){return d(c,t,v)},w=function(t){return t.match(/[0-9.\\-]+/g)},g=function(t){var e={};return(0,a.each)(t,function(n){var r=t[n];\"string\"==typeof r&&(e[n]={formatString:h(r),chunkNames:f(w(r),n)})}),e},b=function(t,e){(0,a.each)(e,function(n){w(t[n]).forEach(function(r,i){return t[e[n].chunkNames[i]]=+r}),delete t[n]})},O=function(t,e){var n={};return e.forEach(function(e){n[e]=t[e],delete t[e]}),n},M=function(t,e){return e.map(function(e){return t[e]})},j=function(t,e){return e.forEach(function(e){return t=t.replace(\"VAL\",+e.toFixed(4))}),t},F=function(t,e){(0,a.each)(e,function(n){var r=e[n],i=r.chunkNames,o=r.formatString,u=j(o,M(O(t,i),i));t[n]=y(u)})},P=function(t,e){(0,a.each)(e,function(n){var r=e[n].chunkNames,i=t[n];\"string\"==typeof i?function(){var e=i.split(\" \"),n=e[e.length-1];r.forEach(function(r,i){return t[r]=e[i]||n})}():r.forEach(function(e){return t[e]=i}),delete t[n]})},S=function(t,e){(0,a.each)(e,function(n){var r=e[n].chunkNames,i=(r.length,t[r[0]]);t[n]=\"string\"==typeof i?r.map(function(e){var n=t[e];return delete t[e],n}).join(\" \"):i})}}])});\n//# sourceMappingURL=shifty.js.map\n\n/***/ }),\n\n/***/ \"./node_modules/stackblur/index.js\":\n/*!*****************************************!*\\\n !*** ./node_modules/stackblur/index.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n/*\n\nStackBlur - a fast almost Gaussian Blur For Canvas\n\nVersion: \t0.5\nAuthor:\t\tMario Klingemann\nContact: \tmario@quasimondo.com\nWebsite:\thttp://www.quasimondo.com/StackBlurForCanvas\nTwitter:\t@quasimondo\n\nIn case you find this class useful - especially in commercial projects -\nI am not totally unhappy for a small donation to my PayPal account\nmario@quasimondo.de\n\nOr support me on flattr: \nhttps://flattr.com/thing/72791/StackBlur-a-fast-almost-Gaussian-Blur-Effect-for-CanvasJavascript\n\nCopyright (c) 2010 Mario Klingemann\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n*/\n\nvar mul_table = [\n 512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,\n 454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,\n 482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,\n 437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,\n 497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,\n 320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,\n 446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,\n 329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,\n 505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,\n 399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,\n 324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,\n 268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,\n 451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,\n 385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,\n 332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,\n 289,287,285,282,280,278,275,273,271,269,267,265,263,261,259];\n \n \nvar shg_table = [\n\t 9, 11, 12, 13, 13, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, \n\t\t17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, \n\t\t19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20,\n\t\t20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21,\n\t\t21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,\n\t\t21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, \n\t\t22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,\n\t\t22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, \n\t\t23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,\n\t\t23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,\n\t\t23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, \n\t\t23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, \n\t\t24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,\n\t\t24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,\n\t\t24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,\n\t\t24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24 ];\n\nfunction blur( pixels, width, height, radius )\n{\n\tif ( isNaN(radius) || radius < 1 ) return;\n\tradius |= 0;\n\n\tvar x, y, i, p, yp, yi, yw, r_sum, g_sum, b_sum, a_sum, \n\tr_out_sum, g_out_sum, b_out_sum, a_out_sum,\n\tr_in_sum, g_in_sum, b_in_sum, a_in_sum, \n\tpr, pg, pb, pa, rbs;\n\t\t\t\n\tvar div = radius + radius + 1;\n\tvar w4 = width << 2;\n\tvar widthMinus1 = width - 1;\n\tvar heightMinus1 = height - 1;\n\tvar radiusPlus1 = radius + 1;\n\tvar sumFactor = radiusPlus1 * ( radiusPlus1 + 1 ) / 2;\n\t\n\tvar stackStart = new BlurStack();\n\tvar stack = stackStart;\n\tfor ( i = 1; i < div; i++ )\n\t{\n\t\tstack = stack.next = new BlurStack();\n\t\tif ( i == radiusPlus1 ) var stackEnd = stack;\n\t}\n\tstack.next = stackStart;\n\tvar stackIn = null;\n\tvar stackOut = null;\n\t\n\tyw = yi = 0;\n\t\n\tvar mul_sum = mul_table[radius];\n\tvar shg_sum = shg_table[radius];\n\t\n\tfor ( y = 0; y < height; y++ )\n\t{\n\t\tr_in_sum = g_in_sum = b_in_sum = a_in_sum = r_sum = g_sum = b_sum = a_sum = 0;\n\t\t\n\t\tr_out_sum = radiusPlus1 * ( pr = pixels[yi] );\n\t\tg_out_sum = radiusPlus1 * ( pg = pixels[yi+1] );\n\t\tb_out_sum = radiusPlus1 * ( pb = pixels[yi+2] );\n\t\ta_out_sum = radiusPlus1 * ( pa = pixels[yi+3] );\n\t\t\n\t\tr_sum += sumFactor * pr;\n\t\tg_sum += sumFactor * pg;\n\t\tb_sum += sumFactor * pb;\n\t\ta_sum += sumFactor * pa;\n\t\t\n\t\tstack = stackStart;\n\t\t\n\t\tfor( i = 0; i < radiusPlus1; i++ )\n\t\t{\n\t\t\tstack.r = pr;\n\t\t\tstack.g = pg;\n\t\t\tstack.b = pb;\n\t\t\tstack.a = pa;\n\t\t\tstack = stack.next;\n\t\t}\n\t\t\n\t\tfor( i = 1; i < radiusPlus1; i++ )\n\t\t{\n\t\t\tp = yi + (( widthMinus1 < i ? widthMinus1 : i ) << 2 );\n\t\t\tr_sum += ( stack.r = ( pr = pixels[p])) * ( rbs = radiusPlus1 - i );\n\t\t\tg_sum += ( stack.g = ( pg = pixels[p+1])) * rbs;\n\t\t\tb_sum += ( stack.b = ( pb = pixels[p+2])) * rbs;\n\t\t\ta_sum += ( stack.a = ( pa = pixels[p+3])) * rbs;\n\t\t\t\n\t\t\tr_in_sum += pr;\n\t\t\tg_in_sum += pg;\n\t\t\tb_in_sum += pb;\n\t\t\ta_in_sum += pa;\n\t\t\t\n\t\t\tstack = stack.next;\n\t\t}\n\t\t\n\t\t\n\t\tstackIn = stackStart;\n\t\tstackOut = stackEnd;\n\t\tfor ( x = 0; x < width; x++ )\n\t\t{\n\t\t\tpixels[yi+3] = pa = (a_sum * mul_sum) >> shg_sum;\n\t\t\tif ( pa != 0 )\n\t\t\t{\n\t\t\t\tpa = 255 / pa;\n\t\t\t\tpixels[yi] = ((r_sum * mul_sum) >> shg_sum) * pa;\n\t\t\t\tpixels[yi+1] = ((g_sum * mul_sum) >> shg_sum) * pa;\n\t\t\t\tpixels[yi+2] = ((b_sum * mul_sum) >> shg_sum) * pa;\n\t\t\t} else {\n\t\t\t\tpixels[yi] = pixels[yi+1] = pixels[yi+2] = 0;\n\t\t\t}\n\t\t\t\n\t\t\tr_sum -= r_out_sum;\n\t\t\tg_sum -= g_out_sum;\n\t\t\tb_sum -= b_out_sum;\n\t\t\ta_sum -= a_out_sum;\n\t\t\t\n\t\t\tr_out_sum -= stackIn.r;\n\t\t\tg_out_sum -= stackIn.g;\n\t\t\tb_out_sum -= stackIn.b;\n\t\t\ta_out_sum -= stackIn.a;\n\t\t\t\n\t\t\tp = ( yw + ( ( p = x + radius + 1 ) < widthMinus1 ? p : widthMinus1 ) ) << 2;\n\t\t\t\n\t\t\tr_in_sum += ( stackIn.r = pixels[p]);\n\t\t\tg_in_sum += ( stackIn.g = pixels[p+1]);\n\t\t\tb_in_sum += ( stackIn.b = pixels[p+2]);\n\t\t\ta_in_sum += ( stackIn.a = pixels[p+3]);\n\t\t\t\n\t\t\tr_sum += r_in_sum;\n\t\t\tg_sum += g_in_sum;\n\t\t\tb_sum += b_in_sum;\n\t\t\ta_sum += a_in_sum;\n\t\t\t\n\t\t\tstackIn = stackIn.next;\n\t\t\t\n\t\t\tr_out_sum += ( pr = stackOut.r );\n\t\t\tg_out_sum += ( pg = stackOut.g );\n\t\t\tb_out_sum += ( pb = stackOut.b );\n\t\t\ta_out_sum += ( pa = stackOut.a );\n\t\t\t\n\t\t\tr_in_sum -= pr;\n\t\t\tg_in_sum -= pg;\n\t\t\tb_in_sum -= pb;\n\t\t\ta_in_sum -= pa;\n\t\t\t\n\t\t\tstackOut = stackOut.next;\n\n\t\t\tyi += 4;\n\t\t}\n\t\tyw += width;\n\t}\n\n\t\n\tfor ( x = 0; x < width; x++ )\n\t{\n\t\tg_in_sum = b_in_sum = a_in_sum = r_in_sum = g_sum = b_sum = a_sum = r_sum = 0;\n\t\t\n\t\tyi = x << 2;\n\t\tr_out_sum = radiusPlus1 * ( pr = pixels[yi]);\n\t\tg_out_sum = radiusPlus1 * ( pg = pixels[yi+1]);\n\t\tb_out_sum = radiusPlus1 * ( pb = pixels[yi+2]);\n\t\ta_out_sum = radiusPlus1 * ( pa = pixels[yi+3]);\n\t\t\n\t\tr_sum += sumFactor * pr;\n\t\tg_sum += sumFactor * pg;\n\t\tb_sum += sumFactor * pb;\n\t\ta_sum += sumFactor * pa;\n\t\t\n\t\tstack = stackStart;\n\t\t\n\t\tfor( i = 0; i < radiusPlus1; i++ )\n\t\t{\n\t\t\tstack.r = pr;\n\t\t\tstack.g = pg;\n\t\t\tstack.b = pb;\n\t\t\tstack.a = pa;\n\t\t\tstack = stack.next;\n\t\t}\n\t\t\n\t\typ = width;\n\t\t\n\t\tfor( i = 1; i <= radius; i++ )\n\t\t{\n\t\t\tyi = ( yp + x ) << 2;\n\t\t\t\n\t\t\tr_sum += ( stack.r = ( pr = pixels[yi])) * ( rbs = radiusPlus1 - i );\n\t\t\tg_sum += ( stack.g = ( pg = pixels[yi+1])) * rbs;\n\t\t\tb_sum += ( stack.b = ( pb = pixels[yi+2])) * rbs;\n\t\t\ta_sum += ( stack.a = ( pa = pixels[yi+3])) * rbs;\n\t\t \n\t\t\tr_in_sum += pr;\n\t\t\tg_in_sum += pg;\n\t\t\tb_in_sum += pb;\n\t\t\ta_in_sum += pa;\n\t\t\t\n\t\t\tstack = stack.next;\n\t\t\n\t\t\tif( i < heightMinus1 )\n\t\t\t{\n\t\t\t\typ += width;\n\t\t\t}\n\t\t}\n\t\t\n\t\tyi = x;\n\t\tstackIn = stackStart;\n\t\tstackOut = stackEnd;\n\t\tfor ( y = 0; y < height; y++ )\n\t\t{\n\t\t\tp = yi << 2;\n\t\t\tpixels[p+3] = pa = (a_sum * mul_sum) >> shg_sum;\n\t\t\tif ( pa > 0 )\n\t\t\t{\n\t\t\t\tpa = 255 / pa;\n\t\t\t\tpixels[p] = ((r_sum * mul_sum) >> shg_sum ) * pa;\n\t\t\t\tpixels[p+1] = ((g_sum * mul_sum) >> shg_sum ) * pa;\n\t\t\t\tpixels[p+2] = ((b_sum * mul_sum) >> shg_sum ) * pa;\n\t\t\t} else {\n\t\t\t\tpixels[p] = pixels[p+1] = pixels[p+2] = 0;\n\t\t\t}\n\t\t\t\n\t\t\tr_sum -= r_out_sum;\n\t\t\tg_sum -= g_out_sum;\n\t\t\tb_sum -= b_out_sum;\n\t\t\ta_sum -= a_out_sum;\n\t\t \n\t\t\tr_out_sum -= stackIn.r;\n\t\t\tg_out_sum -= stackIn.g;\n\t\t\tb_out_sum -= stackIn.b;\n\t\t\ta_out_sum -= stackIn.a;\n\t\t\t\n\t\t\tp = ( x + (( ( p = y + radiusPlus1) < heightMinus1 ? p : heightMinus1 ) * width )) << 2;\n\t\t\t\n\t\t\tr_sum += ( r_in_sum += ( stackIn.r = pixels[p]));\n\t\t\tg_sum += ( g_in_sum += ( stackIn.g = pixels[p+1]));\n\t\t\tb_sum += ( b_in_sum += ( stackIn.b = pixels[p+2]));\n\t\t\ta_sum += ( a_in_sum += ( stackIn.a = pixels[p+3]));\n\t\t \n\t\t\tstackIn = stackIn.next;\n\t\t\t\n\t\t\tr_out_sum += ( pr = stackOut.r );\n\t\t\tg_out_sum += ( pg = stackOut.g );\n\t\t\tb_out_sum += ( pb = stackOut.b );\n\t\t\ta_out_sum += ( pa = stackOut.a );\n\t\t\t\n\t\t\tr_in_sum -= pr;\n\t\t\tg_in_sum -= pg;\n\t\t\tb_in_sum -= pb;\n\t\t\ta_in_sum -= pa;\n\t\t\t\n\t\t\tstackOut = stackOut.next;\n\t\t\t\n\t\t\tyi += width;\n\t\t}\n\t}\n}\n\nfunction BlurStack()\n{\n\tthis.r = 0;\n\tthis.g = 0;\n\tthis.b = 0;\n\tthis.a = 0;\n\tthis.next = null;\n}\n\nmodule.exports = blur;\n\n/***/ }),\n\n/***/ \"./node_modules/style-loader/lib/addStyles.js\":\n/*!****************************************************!*\\\n !*** ./node_modules/style-loader/lib/addStyles.js ***!\n \\****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n\nvar stylesInDom = {};\n\nvar\tmemoize = function (fn) {\n\tvar memo;\n\n\treturn function () {\n\t\tif (typeof memo === \"undefined\") memo = fn.apply(this, arguments);\n\t\treturn memo;\n\t};\n};\n\nvar isOldIE = memoize(function () {\n\t// Test for IE <= 9 as proposed by Browserhacks\n\t// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n\t// Tests for existence of standard globals is to allow style-loader\n\t// to operate correctly into non-standard environments\n\t// @see https://github.com/webpack-contrib/style-loader/issues/177\n\treturn window && document && document.all && !window.atob;\n});\n\nvar getTarget = function (target) {\n return document.querySelector(target);\n};\n\nvar getElement = (function (fn) {\n\tvar memo = {};\n\n\treturn function(target) {\n // If passing function in options, then use it for resolve \"head\" element.\n // Useful for Shadow Root style i.e\n // {\n // insertInto: function () { return document.querySelector(\"#foo\").shadowRoot }\n // }\n if (typeof target === 'function') {\n return target();\n }\n if (typeof memo[target] === \"undefined\") {\n\t\t\tvar styleTarget = getTarget.call(this, target);\n\t\t\t// Special case to return head of iframe instead of iframe itself\n\t\t\tif (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n\t\t\t\ttry {\n\t\t\t\t\t// This will throw an exception if access to iframe is blocked\n\t\t\t\t\t// due to cross-origin restrictions\n\t\t\t\t\tstyleTarget = styleTarget.contentDocument.head;\n\t\t\t\t} catch(e) {\n\t\t\t\t\tstyleTarget = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmemo[target] = styleTarget;\n\t\t}\n\t\treturn memo[target]\n\t};\n})();\n\nvar singleton = null;\nvar\tsingletonCounter = 0;\nvar\tstylesInsertedAtTop = [];\n\nvar\tfixUrls = __webpack_require__(/*! ./urls */ \"./node_modules/style-loader/lib/urls.js\");\n\nmodule.exports = function(list, options) {\n\tif (typeof DEBUG !== \"undefined\" && DEBUG) {\n\t\tif (typeof document !== \"object\") throw new Error(\"The style-loader cannot be used in a non-browser environment\");\n\t}\n\n\toptions = options || {};\n\n\toptions.attrs = typeof options.attrs === \"object\" ? options.attrs : {};\n\n\t// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n\t// tags it will allow on a page\n\tif (!options.singleton && typeof options.singleton !== \"boolean\") options.singleton = isOldIE();\n\n\t// By default, add <style> tags to the <head> element\n if (!options.insertInto) options.insertInto = \"head\";\n\n\t// By default, add <style> tags to the bottom of the target\n\tif (!options.insertAt) options.insertAt = \"bottom\";\n\n\tvar styles = listToStyles(list, options);\n\n\taddStylesToDom(styles, options);\n\n\treturn function update (newList) {\n\t\tvar mayRemove = [];\n\n\t\tfor (var i = 0; i < styles.length; i++) {\n\t\t\tvar item = styles[i];\n\t\t\tvar domStyle = stylesInDom[item.id];\n\n\t\t\tdomStyle.refs--;\n\t\t\tmayRemove.push(domStyle);\n\t\t}\n\n\t\tif(newList) {\n\t\t\tvar newStyles = listToStyles(newList, options);\n\t\t\taddStylesToDom(newStyles, options);\n\t\t}\n\n\t\tfor (var i = 0; i < mayRemove.length; i++) {\n\t\t\tvar domStyle = mayRemove[i];\n\n\t\t\tif(domStyle.refs === 0) {\n\t\t\t\tfor (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();\n\n\t\t\t\tdelete stylesInDom[domStyle.id];\n\t\t\t}\n\t\t}\n\t};\n};\n\nfunction addStylesToDom (styles, options) {\n\tfor (var i = 0; i < styles.length; i++) {\n\t\tvar item = styles[i];\n\t\tvar domStyle = stylesInDom[item.id];\n\n\t\tif(domStyle) {\n\t\t\tdomStyle.refs++;\n\n\t\t\tfor(var j = 0; j < domStyle.parts.length; j++) {\n\t\t\t\tdomStyle.parts[j](item.parts[j]);\n\t\t\t}\n\n\t\t\tfor(; j < item.parts.length; j++) {\n\t\t\t\tdomStyle.parts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\t\t} else {\n\t\t\tvar parts = [];\n\n\t\t\tfor(var j = 0; j < item.parts.length; j++) {\n\t\t\t\tparts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\n\t\t\tstylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};\n\t\t}\n\t}\n}\n\nfunction listToStyles (list, options) {\n\tvar styles = [];\n\tvar newStyles = {};\n\n\tfor (var i = 0; i < list.length; i++) {\n\t\tvar item = list[i];\n\t\tvar id = options.base ? item[0] + options.base : item[0];\n\t\tvar css = item[1];\n\t\tvar media = item[2];\n\t\tvar sourceMap = item[3];\n\t\tvar part = {css: css, media: media, sourceMap: sourceMap};\n\n\t\tif(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});\n\t\telse newStyles[id].parts.push(part);\n\t}\n\n\treturn styles;\n}\n\nfunction insertStyleElement (options, style) {\n\tvar target = getElement(options.insertInto)\n\n\tif (!target) {\n\t\tthrow new Error(\"Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.\");\n\t}\n\n\tvar lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];\n\n\tif (options.insertAt === \"top\") {\n\t\tif (!lastStyleElementInsertedAtTop) {\n\t\t\ttarget.insertBefore(style, target.firstChild);\n\t\t} else if (lastStyleElementInsertedAtTop.nextSibling) {\n\t\t\ttarget.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);\n\t\t} else {\n\t\t\ttarget.appendChild(style);\n\t\t}\n\t\tstylesInsertedAtTop.push(style);\n\t} else if (options.insertAt === \"bottom\") {\n\t\ttarget.appendChild(style);\n\t} else if (typeof options.insertAt === \"object\" && options.insertAt.before) {\n\t\tvar nextSibling = getElement(options.insertInto + \" \" + options.insertAt.before);\n\t\ttarget.insertBefore(style, nextSibling);\n\t} else {\n\t\tthrow new Error(\"[Style Loader]\\n\\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\\n Must be 'top', 'bottom', or Object.\\n (https://github.com/webpack-contrib/style-loader#insertat)\\n\");\n\t}\n}\n\nfunction removeStyleElement (style) {\n\tif (style.parentNode === null) return false;\n\tstyle.parentNode.removeChild(style);\n\n\tvar idx = stylesInsertedAtTop.indexOf(style);\n\tif(idx >= 0) {\n\t\tstylesInsertedAtTop.splice(idx, 1);\n\t}\n}\n\nfunction createStyleElement (options) {\n\tvar style = document.createElement(\"style\");\n\n\tif(options.attrs.type === undefined) {\n\t\toptions.attrs.type = \"text/css\";\n\t}\n\n\taddAttrs(style, options.attrs);\n\tinsertStyleElement(options, style);\n\n\treturn style;\n}\n\nfunction createLinkElement (options) {\n\tvar link = document.createElement(\"link\");\n\n\tif(options.attrs.type === undefined) {\n\t\toptions.attrs.type = \"text/css\";\n\t}\n\toptions.attrs.rel = \"stylesheet\";\n\n\taddAttrs(link, options.attrs);\n\tinsertStyleElement(options, link);\n\n\treturn link;\n}\n\nfunction addAttrs (el, attrs) {\n\tObject.keys(attrs).forEach(function (key) {\n\t\tel.setAttribute(key, attrs[key]);\n\t});\n}\n\nfunction addStyle (obj, options) {\n\tvar style, update, remove, result;\n\n\t// If a transform function was defined, run it on the css\n\tif (options.transform && obj.css) {\n\t result = options.transform(obj.css);\n\n\t if (result) {\n\t \t// If transform returns a value, use that instead of the original css.\n\t \t// This allows running runtime transformations on the css.\n\t \tobj.css = result;\n\t } else {\n\t \t// If the transform function returns a falsy value, don't add this css.\n\t \t// This allows conditional loading of css\n\t \treturn function() {\n\t \t\t// noop\n\t \t};\n\t }\n\t}\n\n\tif (options.singleton) {\n\t\tvar styleIndex = singletonCounter++;\n\n\t\tstyle = singleton || (singleton = createStyleElement(options));\n\n\t\tupdate = applyToSingletonTag.bind(null, style, styleIndex, false);\n\t\tremove = applyToSingletonTag.bind(null, style, styleIndex, true);\n\n\t} else if (\n\t\tobj.sourceMap &&\n\t\ttypeof URL === \"function\" &&\n\t\ttypeof URL.createObjectURL === \"function\" &&\n\t\ttypeof URL.revokeObjectURL === \"function\" &&\n\t\ttypeof Blob === \"function\" &&\n\t\ttypeof btoa === \"function\"\n\t) {\n\t\tstyle = createLinkElement(options);\n\t\tupdate = updateLink.bind(null, style, options);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\n\t\t\tif(style.href) URL.revokeObjectURL(style.href);\n\t\t};\n\t} else {\n\t\tstyle = createStyleElement(options);\n\t\tupdate = applyToTag.bind(null, style);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\t\t};\n\t}\n\n\tupdate(obj);\n\n\treturn function updateStyle (newObj) {\n\t\tif (newObj) {\n\t\t\tif (\n\t\t\t\tnewObj.css === obj.css &&\n\t\t\t\tnewObj.media === obj.media &&\n\t\t\t\tnewObj.sourceMap === obj.sourceMap\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tupdate(obj = newObj);\n\t\t} else {\n\t\t\tremove();\n\t\t}\n\t};\n}\n\nvar replaceText = (function () {\n\tvar textStore = [];\n\n\treturn function (index, replacement) {\n\t\ttextStore[index] = replacement;\n\n\t\treturn textStore.filter(Boolean).join('\\n');\n\t};\n})();\n\nfunction applyToSingletonTag (style, index, remove, obj) {\n\tvar css = remove ? \"\" : obj.css;\n\n\tif (style.styleSheet) {\n\t\tstyle.styleSheet.cssText = replaceText(index, css);\n\t} else {\n\t\tvar cssNode = document.createTextNode(css);\n\t\tvar childNodes = style.childNodes;\n\n\t\tif (childNodes[index]) style.removeChild(childNodes[index]);\n\n\t\tif (childNodes.length) {\n\t\t\tstyle.insertBefore(cssNode, childNodes[index]);\n\t\t} else {\n\t\t\tstyle.appendChild(cssNode);\n\t\t}\n\t}\n}\n\nfunction applyToTag (style, obj) {\n\tvar css = obj.css;\n\tvar media = obj.media;\n\n\tif(media) {\n\t\tstyle.setAttribute(\"media\", media)\n\t}\n\n\tif(style.styleSheet) {\n\t\tstyle.styleSheet.cssText = css;\n\t} else {\n\t\twhile(style.firstChild) {\n\t\t\tstyle.removeChild(style.firstChild);\n\t\t}\n\n\t\tstyle.appendChild(document.createTextNode(css));\n\t}\n}\n\nfunction updateLink (link, options, obj) {\n\tvar css = obj.css;\n\tvar sourceMap = obj.sourceMap;\n\n\t/*\n\t\tIf convertToAbsoluteUrls isn't defined, but sourcemaps are enabled\n\t\tand there is no publicPath defined then lets turn convertToAbsoluteUrls\n\t\ton by default. Otherwise default to the convertToAbsoluteUrls option\n\t\tdirectly\n\t*/\n\tvar autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;\n\n\tif (options.convertToAbsoluteUrls || autoFixUrls) {\n\t\tcss = fixUrls(css);\n\t}\n\n\tif (sourceMap) {\n\t\t// http://stackoverflow.com/a/26603875\n\t\tcss += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + \" */\";\n\t}\n\n\tvar blob = new Blob([css], { type: \"text/css\" });\n\n\tvar oldSrc = link.href;\n\n\tlink.href = URL.createObjectURL(blob);\n\n\tif(oldSrc) URL.revokeObjectURL(oldSrc);\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/style-loader/lib/urls.js\":\n/*!***********************************************!*\\\n !*** ./node_modules/style-loader/lib/urls.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n\n/**\n * When source maps are enabled, `style-loader` uses a link element with a data-uri to\n * embed the css on the page. This breaks all relative urls because now they are relative to a\n * bundle instead of the current page.\n *\n * One solution is to only use full urls, but that may be impossible.\n *\n * Instead, this function \"fixes\" the relative urls to be absolute according to the current page location.\n *\n * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.\n *\n */\n\nmodule.exports = function (css) {\n // get current location\n var location = typeof window !== \"undefined\" && window.location;\n\n if (!location) {\n throw new Error(\"fixUrls requires window.location\");\n }\n\n\t// blank or null?\n\tif (!css || typeof css !== \"string\") {\n\t return css;\n }\n\n var baseUrl = location.protocol + \"//\" + location.host;\n var currentDir = baseUrl + location.pathname.replace(/\\/[^\\/]*$/, \"/\");\n\n\t// convert each url(...)\n\t/*\n\tThis regular expression is just a way to recursively match brackets within\n\ta string.\n\n\t /url\\s*\\( = Match on the word \"url\" with any whitespace after it and then a parens\n\t ( = Start a capturing group\n\t (?: = Start a non-capturing group\n\t [^)(] = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t (?: = Start another non-capturing groups\n\t [^)(]+ = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t [^)(]* = Match anything that isn't a parentheses\n\t \\) = Match a end parentheses\n\t ) = End Group\n *\\) = Match anything and then a close parens\n ) = Close non-capturing group\n * = Match anything\n ) = Close capturing group\n\t \\) = Match a close parens\n\n\t /gi = Get all matches, not the first. Be case insensitive.\n\t */\n\tvar fixedCss = css.replace(/url\\s*\\(((?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)\\)/gi, function(fullMatch, origUrl) {\n\t\t// strip quotes (if they exist)\n\t\tvar unquotedOrigUrl = origUrl\n\t\t\t.trim()\n\t\t\t.replace(/^\"(.*)\"$/, function(o, $1){ return $1; })\n\t\t\t.replace(/^'(.*)'$/, function(o, $1){ return $1; });\n\n\t\t// already a full url? no change\n\t\tif (/^(#|data:|http:\\/\\/|https:\\/\\/|file:\\/\\/\\/|\\s*$)/i.test(unquotedOrigUrl)) {\n\t\t return fullMatch;\n\t\t}\n\n\t\t// convert the url to a full url\n\t\tvar newUrl;\n\n\t\tif (unquotedOrigUrl.indexOf(\"//\") === 0) {\n\t\t \t//TODO: should we add protocol?\n\t\t\tnewUrl = unquotedOrigUrl;\n\t\t} else if (unquotedOrigUrl.indexOf(\"/\") === 0) {\n\t\t\t// path should be relative to the base url\n\t\t\tnewUrl = baseUrl + unquotedOrigUrl; // already starts with '/'\n\t\t} else {\n\t\t\t// path should be relative to current directory\n\t\t\tnewUrl = currentDir + unquotedOrigUrl.replace(/^\\.\\//, \"\"); // Strip leading './'\n\t\t}\n\n\t\t// send back the fixed url(...)\n\t\treturn \"url(\" + JSON.stringify(newUrl) + \")\";\n\t});\n\n\t// send back the fixed css\n\treturn fixedCss;\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/webpack/buildin/global.js\":\n/*!***********************************!*\\\n !*** (webpack)/buildin/global.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\nvar g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || Function(\"return this\")() || (1, eval)(\"this\");\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n/***/ }),\n\n/***/ \"./node_modules/xmldom/dom-parser.js\":\n/*!*******************************************!*\\\n !*** ./node_modules/xmldom/dom-parser.js ***!\n \\*******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\nfunction DOMParser(options){\r\n\tthis.options = options ||{locator:{}};\r\n\t\r\n}\r\nDOMParser.prototype.parseFromString = function(source,mimeType){\r\n\tvar options = this.options;\r\n\tvar sax = new XMLReader();\r\n\tvar domBuilder = options.domBuilder || new DOMHandler();//contentHandler and LexicalHandler\r\n\tvar errorHandler = options.errorHandler;\r\n\tvar locator = options.locator;\r\n\tvar defaultNSMap = options.xmlns||{};\r\n\tvar entityMap = {'lt':'<','gt':'>','amp':'&','quot':'\"','apos':\"'\"}\r\n\tif(locator){\r\n\t\tdomBuilder.setDocumentLocator(locator)\r\n\t}\r\n\t\r\n\tsax.errorHandler = buildErrorHandler(errorHandler,domBuilder,locator);\r\n\tsax.domBuilder = options.domBuilder || domBuilder;\r\n\tif(/\\/x?html?$/.test(mimeType)){\r\n\t\tentityMap.nbsp = '\\xa0';\r\n\t\tentityMap.copy = '\\xa9';\r\n\t\tdefaultNSMap['']= 'http://www.w3.org/1999/xhtml';\r\n\t}\r\n\tdefaultNSMap.xml = defaultNSMap.xml || 'http://www.w3.org/XML/1998/namespace';\r\n\tif(source){\r\n\t\tsax.parse(source,defaultNSMap,entityMap);\r\n\t}else{\r\n\t\tsax.errorHandler.error(\"invalid doc source\");\r\n\t}\r\n\treturn domBuilder.doc;\r\n}\r\nfunction buildErrorHandler(errorImpl,domBuilder,locator){\r\n\tif(!errorImpl){\r\n\t\tif(domBuilder instanceof DOMHandler){\r\n\t\t\treturn domBuilder;\r\n\t\t}\r\n\t\terrorImpl = domBuilder ;\r\n\t}\r\n\tvar errorHandler = {}\r\n\tvar isCallback = errorImpl instanceof Function;\r\n\tlocator = locator||{}\r\n\tfunction build(key){\r\n\t\tvar fn = errorImpl[key];\r\n\t\tif(!fn && isCallback){\r\n\t\t\tfn = errorImpl.length == 2?function(msg){errorImpl(key,msg)}:errorImpl;\r\n\t\t}\r\n\t\terrorHandler[key] = fn && function(msg){\r\n\t\t\tfn('[xmldom '+key+']\\t'+msg+_locator(locator));\r\n\t\t}||function(){};\r\n\t}\r\n\tbuild('warning');\r\n\tbuild('error');\r\n\tbuild('fatalError');\r\n\treturn errorHandler;\r\n}\r\n\r\n//console.log('#\\n\\n\\n\\n\\n\\n\\n####')\r\n/**\r\n * +ContentHandler+ErrorHandler\r\n * +LexicalHandler+EntityResolver2\r\n * -DeclHandler-DTDHandler \r\n * \r\n * DefaultHandler:EntityResolver, DTDHandler, ContentHandler, ErrorHandler\r\n * DefaultHandler2:DefaultHandler,LexicalHandler, DeclHandler, EntityResolver2\r\n * @link http://www.saxproject.org/apidoc/org/xml/sax/helpers/DefaultHandler.html\r\n */\r\nfunction DOMHandler() {\r\n this.cdata = false;\r\n}\r\nfunction position(locator,node){\r\n\tnode.lineNumber = locator.lineNumber;\r\n\tnode.columnNumber = locator.columnNumber;\r\n}\r\n/**\r\n * @see org.xml.sax.ContentHandler#startDocument\r\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ContentHandler.html\r\n */ \r\nDOMHandler.prototype = {\r\n\tstartDocument : function() {\r\n \tthis.doc = new DOMImplementation().createDocument(null, null, null);\r\n \tif (this.locator) {\r\n \tthis.doc.documentURI = this.locator.systemId;\r\n \t}\r\n\t},\r\n\tstartElement:function(namespaceURI, localName, qName, attrs) {\r\n\t\tvar doc = this.doc;\r\n\t var el = doc.createElementNS(namespaceURI, qName||localName);\r\n\t var len = attrs.length;\r\n\t appendElement(this, el);\r\n\t this.currentElement = el;\r\n\t \r\n\t\tthis.locator && position(this.locator,el)\r\n\t for (var i = 0 ; i < len; i++) {\r\n\t var namespaceURI = attrs.getURI(i);\r\n\t var value = attrs.getValue(i);\r\n\t var qName = attrs.getQName(i);\r\n\t\t\tvar attr = doc.createAttributeNS(namespaceURI, qName);\r\n\t\t\tthis.locator &&position(attrs.getLocator(i),attr);\r\n\t\t\tattr.value = attr.nodeValue = value;\r\n\t\t\tel.setAttributeNode(attr)\r\n\t }\r\n\t},\r\n\tendElement:function(namespaceURI, localName, qName) {\r\n\t\tvar current = this.currentElement\r\n\t\tvar tagName = current.tagName;\r\n\t\tthis.currentElement = current.parentNode;\r\n\t},\r\n\tstartPrefixMapping:function(prefix, uri) {\r\n\t},\r\n\tendPrefixMapping:function(prefix) {\r\n\t},\r\n\tprocessingInstruction:function(target, data) {\r\n\t var ins = this.doc.createProcessingInstruction(target, data);\r\n\t this.locator && position(this.locator,ins)\r\n\t appendElement(this, ins);\r\n\t},\r\n\tignorableWhitespace:function(ch, start, length) {\r\n\t},\r\n\tcharacters:function(chars, start, length) {\r\n\t\tchars = _toString.apply(this,arguments)\r\n\t\t//console.log(chars)\r\n\t\tif(chars){\r\n\t\t\tif (this.cdata) {\r\n\t\t\t\tvar charNode = this.doc.createCDATASection(chars);\r\n\t\t\t} else {\r\n\t\t\t\tvar charNode = this.doc.createTextNode(chars);\r\n\t\t\t}\r\n\t\t\tif(this.currentElement){\r\n\t\t\t\tthis.currentElement.appendChild(charNode);\r\n\t\t\t}else if(/^\\s*$/.test(chars)){\r\n\t\t\t\tthis.doc.appendChild(charNode);\r\n\t\t\t\t//process xml\r\n\t\t\t}\r\n\t\t\tthis.locator && position(this.locator,charNode)\r\n\t\t}\r\n\t},\r\n\tskippedEntity:function(name) {\r\n\t},\r\n\tendDocument:function() {\r\n\t\tthis.doc.normalize();\r\n\t},\r\n\tsetDocumentLocator:function (locator) {\r\n\t if(this.locator = locator){// && !('lineNumber' in locator)){\r\n\t \tlocator.lineNumber = 0;\r\n\t }\r\n\t},\r\n\t//LexicalHandler\r\n\tcomment:function(chars, start, length) {\r\n\t\tchars = _toString.apply(this,arguments)\r\n\t var comm = this.doc.createComment(chars);\r\n\t this.locator && position(this.locator,comm)\r\n\t appendElement(this, comm);\r\n\t},\r\n\t\r\n\tstartCDATA:function() {\r\n\t //used in characters() methods\r\n\t this.cdata = true;\r\n\t},\r\n\tendCDATA:function() {\r\n\t this.cdata = false;\r\n\t},\r\n\t\r\n\tstartDTD:function(name, publicId, systemId) {\r\n\t\tvar impl = this.doc.implementation;\r\n\t if (impl && impl.createDocumentType) {\r\n\t var dt = impl.createDocumentType(name, publicId, systemId);\r\n\t this.locator && position(this.locator,dt)\r\n\t appendElement(this, dt);\r\n\t }\r\n\t},\r\n\t/**\r\n\t * @see org.xml.sax.ErrorHandler\r\n\t * @link http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html\r\n\t */\r\n\twarning:function(error) {\r\n\t\tconsole.warn('[xmldom warning]\\t'+error,_locator(this.locator));\r\n\t},\r\n\terror:function(error) {\r\n\t\tconsole.error('[xmldom error]\\t'+error,_locator(this.locator));\r\n\t},\r\n\tfatalError:function(error) {\r\n\t\tconsole.error('[xmldom fatalError]\\t'+error,_locator(this.locator));\r\n\t throw error;\r\n\t}\r\n}\r\nfunction _locator(l){\r\n\tif(l){\r\n\t\treturn '\\n@'+(l.systemId ||'')+'#[line:'+l.lineNumber+',col:'+l.columnNumber+']'\r\n\t}\r\n}\r\nfunction _toString(chars,start,length){\r\n\tif(typeof chars == 'string'){\r\n\t\treturn chars.substr(start,length)\r\n\t}else{//java sax connect width xmldom on rhino(what about: \"? && !(chars instanceof String)\")\r\n\t\tif(chars.length >= start+length || start){\r\n\t\t\treturn new java.lang.String(chars,start,length)+'';\r\n\t\t}\r\n\t\treturn chars;\r\n\t}\r\n}\r\n\r\n/*\r\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/LexicalHandler.html\r\n * used method of org.xml.sax.ext.LexicalHandler:\r\n * #comment(chars, start, length)\r\n * #startCDATA()\r\n * #endCDATA()\r\n * #startDTD(name, publicId, systemId)\r\n *\r\n *\r\n * IGNORED method of org.xml.sax.ext.LexicalHandler:\r\n * #endDTD()\r\n * #startEntity(name)\r\n * #endEntity(name)\r\n *\r\n *\r\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/DeclHandler.html\r\n * IGNORED method of org.xml.sax.ext.DeclHandler\r\n * \t#attributeDecl(eName, aName, type, mode, value)\r\n * #elementDecl(name, model)\r\n * #externalEntityDecl(name, publicId, systemId)\r\n * #internalEntityDecl(name, value)\r\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/EntityResolver2.html\r\n * IGNORED method of org.xml.sax.EntityResolver2\r\n * #resolveEntity(String name,String publicId,String baseURI,String systemId)\r\n * #resolveEntity(publicId, systemId)\r\n * #getExternalSubset(name, baseURI)\r\n * @link http://www.saxproject.org/apidoc/org/xml/sax/DTDHandler.html\r\n * IGNORED method of org.xml.sax.DTDHandler\r\n * #notationDecl(name, publicId, systemId) {};\r\n * #unparsedEntityDecl(name, publicId, systemId, notationName) {};\r\n */\r\n\"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl\".replace(/\\w+/g,function(key){\r\n\tDOMHandler.prototype[key] = function(){return null}\r\n})\r\n\r\n/* Private static helpers treated below as private instance methods, so don't need to add these to the public API; we might use a Relator to also get rid of non-standard public properties */\r\nfunction appendElement (hander,node) {\r\n if (!hander.currentElement) {\r\n hander.doc.appendChild(node);\r\n } else {\r\n hander.currentElement.appendChild(node);\r\n }\r\n}//appendChild and setAttributeNS are preformance key\r\n\r\n//if(typeof require == 'function'){\r\n\tvar XMLReader = __webpack_require__(/*! ./sax */ \"./node_modules/xmldom/sax.js\").XMLReader;\r\n\tvar DOMImplementation = exports.DOMImplementation = __webpack_require__(/*! ./dom */ \"./node_modules/xmldom/dom.js\").DOMImplementation;\r\n\texports.XMLSerializer = __webpack_require__(/*! ./dom */ \"./node_modules/xmldom/dom.js\").XMLSerializer ;\r\n\texports.DOMParser = DOMParser;\r\n//}\r\n\n\n/***/ }),\n\n/***/ \"./node_modules/xmldom/dom.js\":\n/*!************************************!*\\\n !*** ./node_modules/xmldom/dom.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n/*\n * DOM Level 2\n * Object DOMException\n * @see http://www.w3.org/TR/REC-DOM-Level-1/ecma-script-language-binding.html\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ecma-script-binding.html\n */\n\nfunction copy(src,dest){\n\tfor(var p in src){\n\t\tdest[p] = src[p];\n\t}\n}\n/**\n^\\w+\\.prototype\\.([_\\w]+)\\s*=\\s*((?:.*\\{\\s*?[\\r\\n][\\s\\S]*?^})|\\S.*?(?=[;\\r\\n]));?\n^\\w+\\.prototype\\.([_\\w]+)\\s*=\\s*(\\S.*?(?=[;\\r\\n]));?\n */\nfunction _extends(Class,Super){\n\tvar pt = Class.prototype;\n\tif(Object.create){\n\t\tvar ppt = Object.create(Super.prototype)\n\t\tpt.__proto__ = ppt;\n\t}\n\tif(!(pt instanceof Super)){\n\t\tfunction t(){};\n\t\tt.prototype = Super.prototype;\n\t\tt = new t();\n\t\tcopy(pt,t);\n\t\tClass.prototype = pt = t;\n\t}\n\tif(pt.constructor != Class){\n\t\tif(typeof Class != 'function'){\n\t\t\tconsole.error(\"unknow Class:\"+Class)\n\t\t}\n\t\tpt.constructor = Class\n\t}\n}\nvar htmlns = 'http://www.w3.org/1999/xhtml' ;\n// Node Types\nvar NodeType = {}\nvar ELEMENT_NODE = NodeType.ELEMENT_NODE = 1;\nvar ATTRIBUTE_NODE = NodeType.ATTRIBUTE_NODE = 2;\nvar TEXT_NODE = NodeType.TEXT_NODE = 3;\nvar CDATA_SECTION_NODE = NodeType.CDATA_SECTION_NODE = 4;\nvar ENTITY_REFERENCE_NODE = NodeType.ENTITY_REFERENCE_NODE = 5;\nvar ENTITY_NODE = NodeType.ENTITY_NODE = 6;\nvar PROCESSING_INSTRUCTION_NODE = NodeType.PROCESSING_INSTRUCTION_NODE = 7;\nvar COMMENT_NODE = NodeType.COMMENT_NODE = 8;\nvar DOCUMENT_NODE = NodeType.DOCUMENT_NODE = 9;\nvar DOCUMENT_TYPE_NODE = NodeType.DOCUMENT_TYPE_NODE = 10;\nvar DOCUMENT_FRAGMENT_NODE = NodeType.DOCUMENT_FRAGMENT_NODE = 11;\nvar NOTATION_NODE = NodeType.NOTATION_NODE = 12;\n\n// ExceptionCode\nvar ExceptionCode = {}\nvar ExceptionMessage = {};\nvar INDEX_SIZE_ERR = ExceptionCode.INDEX_SIZE_ERR = ((ExceptionMessage[1]=\"Index size error\"),1);\nvar DOMSTRING_SIZE_ERR = ExceptionCode.DOMSTRING_SIZE_ERR = ((ExceptionMessage[2]=\"DOMString size error\"),2);\nvar HIERARCHY_REQUEST_ERR = ExceptionCode.HIERARCHY_REQUEST_ERR = ((ExceptionMessage[3]=\"Hierarchy request error\"),3);\nvar WRONG_DOCUMENT_ERR = ExceptionCode.WRONG_DOCUMENT_ERR = ((ExceptionMessage[4]=\"Wrong document\"),4);\nvar INVALID_CHARACTER_ERR = ExceptionCode.INVALID_CHARACTER_ERR = ((ExceptionMessage[5]=\"Invalid character\"),5);\nvar NO_DATA_ALLOWED_ERR = ExceptionCode.NO_DATA_ALLOWED_ERR = ((ExceptionMessage[6]=\"No data allowed\"),6);\nvar NO_MODIFICATION_ALLOWED_ERR = ExceptionCode.NO_MODIFICATION_ALLOWED_ERR = ((ExceptionMessage[7]=\"No modification allowed\"),7);\nvar NOT_FOUND_ERR = ExceptionCode.NOT_FOUND_ERR = ((ExceptionMessage[8]=\"Not found\"),8);\nvar NOT_SUPPORTED_ERR = ExceptionCode.NOT_SUPPORTED_ERR = ((ExceptionMessage[9]=\"Not supported\"),9);\nvar INUSE_ATTRIBUTE_ERR = ExceptionCode.INUSE_ATTRIBUTE_ERR = ((ExceptionMessage[10]=\"Attribute in use\"),10);\n//level2\nvar INVALID_STATE_ERR \t= ExceptionCode.INVALID_STATE_ERR \t= ((ExceptionMessage[11]=\"Invalid state\"),11);\nvar SYNTAX_ERR \t= ExceptionCode.SYNTAX_ERR \t= ((ExceptionMessage[12]=\"Syntax error\"),12);\nvar INVALID_MODIFICATION_ERR \t= ExceptionCode.INVALID_MODIFICATION_ERR \t= ((ExceptionMessage[13]=\"Invalid modification\"),13);\nvar NAMESPACE_ERR \t= ExceptionCode.NAMESPACE_ERR \t= ((ExceptionMessage[14]=\"Invalid namespace\"),14);\nvar INVALID_ACCESS_ERR \t= ExceptionCode.INVALID_ACCESS_ERR \t= ((ExceptionMessage[15]=\"Invalid access\"),15);\n\n\nfunction DOMException(code, message) {\n\tif(message instanceof Error){\n\t\tvar error = message;\n\t}else{\n\t\terror = this;\n\t\tError.call(this, ExceptionMessage[code]);\n\t\tthis.message = ExceptionMessage[code];\n\t\tif(Error.captureStackTrace) Error.captureStackTrace(this, DOMException);\n\t}\n\terror.code = code;\n\tif(message) this.message = this.message + \": \" + message;\n\treturn error;\n};\nDOMException.prototype = Error.prototype;\ncopy(ExceptionCode,DOMException)\n/**\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177\n * The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are live.\n * The items in the NodeList are accessible via an integral index, starting from 0.\n */\nfunction NodeList() {\n};\nNodeList.prototype = {\n\t/**\n\t * The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.\n\t * @standard level1\n\t */\n\tlength:0, \n\t/**\n\t * Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.\n\t * @standard level1\n\t * @param index unsigned long \n\t * Index into the collection.\n\t * @return Node\n\t * \tThe node at the indexth position in the NodeList, or null if that is not a valid index. \n\t */\n\titem: function(index) {\n\t\treturn this[index] || null;\n\t},\n\ttoString:function(isHTML,nodeFilter){\n\t\tfor(var buf = [], i = 0;i<this.length;i++){\n\t\t\tserializeToString(this[i],buf,isHTML,nodeFilter);\n\t\t}\n\t\treturn buf.join('');\n\t}\n};\nfunction LiveNodeList(node,refresh){\n\tthis._node = node;\n\tthis._refresh = refresh\n\t_updateLiveList(this);\n}\nfunction _updateLiveList(list){\n\tvar inc = list._node._inc || list._node.ownerDocument._inc;\n\tif(list._inc != inc){\n\t\tvar ls = list._refresh(list._node);\n\t\t//console.log(ls.length)\n\t\t__set__(list,'length',ls.length);\n\t\tcopy(ls,list);\n\t\tlist._inc = inc;\n\t}\n}\nLiveNodeList.prototype.item = function(i){\n\t_updateLiveList(this);\n\treturn this[i];\n}\n\n_extends(LiveNodeList,NodeList);\n/**\n * \n * Objects implementing the NamedNodeMap interface are used to represent collections of nodes that can be accessed by name. Note that NamedNodeMap does not inherit from NodeList; NamedNodeMaps are not maintained in any particular order. Objects contained in an object implementing NamedNodeMap may also be accessed by an ordinal index, but this is simply to allow convenient enumeration of the contents of a NamedNodeMap, and does not imply that the DOM specifies an order to these Nodes.\n * NamedNodeMap objects in the DOM are live.\n * used for attributes or DocumentType entities \n */\nfunction NamedNodeMap() {\n};\n\nfunction _findNodeIndex(list,node){\n\tvar i = list.length;\n\twhile(i--){\n\t\tif(list[i] === node){return i}\n\t}\n}\n\nfunction _addNamedNode(el,list,newAttr,oldAttr){\n\tif(oldAttr){\n\t\tlist[_findNodeIndex(list,oldAttr)] = newAttr;\n\t}else{\n\t\tlist[list.length++] = newAttr;\n\t}\n\tif(el){\n\t\tnewAttr.ownerElement = el;\n\t\tvar doc = el.ownerDocument;\n\t\tif(doc){\n\t\t\toldAttr && _onRemoveAttribute(doc,el,oldAttr);\n\t\t\t_onAddAttribute(doc,el,newAttr);\n\t\t}\n\t}\n}\nfunction _removeNamedNode(el,list,attr){\n\t//console.log('remove attr:'+attr)\n\tvar i = _findNodeIndex(list,attr);\n\tif(i>=0){\n\t\tvar lastIndex = list.length-1\n\t\twhile(i<lastIndex){\n\t\t\tlist[i] = list[++i]\n\t\t}\n\t\tlist.length = lastIndex;\n\t\tif(el){\n\t\t\tvar doc = el.ownerDocument;\n\t\t\tif(doc){\n\t\t\t\t_onRemoveAttribute(doc,el,attr);\n\t\t\t\tattr.ownerElement = null;\n\t\t\t}\n\t\t}\n\t}else{\n\t\tthrow DOMException(NOT_FOUND_ERR,new Error(el.tagName+'@'+attr))\n\t}\n}\nNamedNodeMap.prototype = {\n\tlength:0,\n\titem:NodeList.prototype.item,\n\tgetNamedItem: function(key) {\n//\t\tif(key.indexOf(':')>0 || key == 'xmlns'){\n//\t\t\treturn null;\n//\t\t}\n\t\t//console.log()\n\t\tvar i = this.length;\n\t\twhile(i--){\n\t\t\tvar attr = this[i];\n\t\t\t//console.log(attr.nodeName,key)\n\t\t\tif(attr.nodeName == key){\n\t\t\t\treturn attr;\n\t\t\t}\n\t\t}\n\t},\n\tsetNamedItem: function(attr) {\n\t\tvar el = attr.ownerElement;\n\t\tif(el && el!=this._ownerElement){\n\t\t\tthrow new DOMException(INUSE_ATTRIBUTE_ERR);\n\t\t}\n\t\tvar oldAttr = this.getNamedItem(attr.nodeName);\n\t\t_addNamedNode(this._ownerElement,this,attr,oldAttr);\n\t\treturn oldAttr;\n\t},\n\t/* returns Node */\n\tsetNamedItemNS: function(attr) {// raises: WRONG_DOCUMENT_ERR,NO_MODIFICATION_ALLOWED_ERR,INUSE_ATTRIBUTE_ERR\n\t\tvar el = attr.ownerElement, oldAttr;\n\t\tif(el && el!=this._ownerElement){\n\t\t\tthrow new DOMException(INUSE_ATTRIBUTE_ERR);\n\t\t}\n\t\toldAttr = this.getNamedItemNS(attr.namespaceURI,attr.localName);\n\t\t_addNamedNode(this._ownerElement,this,attr,oldAttr);\n\t\treturn oldAttr;\n\t},\n\n\t/* returns Node */\n\tremoveNamedItem: function(key) {\n\t\tvar attr = this.getNamedItem(key);\n\t\t_removeNamedNode(this._ownerElement,this,attr);\n\t\treturn attr;\n\t\t\n\t\t\n\t},// raises: NOT_FOUND_ERR,NO_MODIFICATION_ALLOWED_ERR\n\t\n\t//for level2\n\tremoveNamedItemNS:function(namespaceURI,localName){\n\t\tvar attr = this.getNamedItemNS(namespaceURI,localName);\n\t\t_removeNamedNode(this._ownerElement,this,attr);\n\t\treturn attr;\n\t},\n\tgetNamedItemNS: function(namespaceURI, localName) {\n\t\tvar i = this.length;\n\t\twhile(i--){\n\t\t\tvar node = this[i];\n\t\t\tif(node.localName == localName && node.namespaceURI == namespaceURI){\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n};\n/**\n * @see http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-102161490\n */\nfunction DOMImplementation(/* Object */ features) {\n\tthis._features = {};\n\tif (features) {\n\t\tfor (var feature in features) {\n\t\t\t this._features = features[feature];\n\t\t}\n\t}\n};\n\nDOMImplementation.prototype = {\n\thasFeature: function(/* string */ feature, /* string */ version) {\n\t\tvar versions = this._features[feature.toLowerCase()];\n\t\tif (versions && (!version || version in versions)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t},\n\t// Introduced in DOM Level 2:\n\tcreateDocument:function(namespaceURI, qualifiedName, doctype){// raises:INVALID_CHARACTER_ERR,NAMESPACE_ERR,WRONG_DOCUMENT_ERR\n\t\tvar doc = new Document();\n\t\tdoc.implementation = this;\n\t\tdoc.childNodes = new NodeList();\n\t\tdoc.doctype = doctype;\n\t\tif(doctype){\n\t\t\tdoc.appendChild(doctype);\n\t\t}\n\t\tif(qualifiedName){\n\t\t\tvar root = doc.createElementNS(namespaceURI,qualifiedName);\n\t\t\tdoc.appendChild(root);\n\t\t}\n\t\treturn doc;\n\t},\n\t// Introduced in DOM Level 2:\n\tcreateDocumentType:function(qualifiedName, publicId, systemId){// raises:INVALID_CHARACTER_ERR,NAMESPACE_ERR\n\t\tvar node = new DocumentType();\n\t\tnode.name = qualifiedName;\n\t\tnode.nodeName = qualifiedName;\n\t\tnode.publicId = publicId;\n\t\tnode.systemId = systemId;\n\t\t// Introduced in DOM Level 2:\n\t\t//readonly attribute DOMString internalSubset;\n\t\t\n\t\t//TODO:..\n\t\t// readonly attribute NamedNodeMap entities;\n\t\t// readonly attribute NamedNodeMap notations;\n\t\treturn node;\n\t}\n};\n\n\n/**\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247\n */\n\nfunction Node() {\n};\n\nNode.prototype = {\n\tfirstChild : null,\n\tlastChild : null,\n\tpreviousSibling : null,\n\tnextSibling : null,\n\tattributes : null,\n\tparentNode : null,\n\tchildNodes : null,\n\townerDocument : null,\n\tnodeValue : null,\n\tnamespaceURI : null,\n\tprefix : null,\n\tlocalName : null,\n\t// Modified in DOM Level 2:\n\tinsertBefore:function(newChild, refChild){//raises \n\t\treturn _insertBefore(this,newChild,refChild);\n\t},\n\treplaceChild:function(newChild, oldChild){//raises \n\t\tthis.insertBefore(newChild,oldChild);\n\t\tif(oldChild){\n\t\t\tthis.removeChild(oldChild);\n\t\t}\n\t},\n\tremoveChild:function(oldChild){\n\t\treturn _removeChild(this,oldChild);\n\t},\n\tappendChild:function(newChild){\n\t\treturn this.insertBefore(newChild,null);\n\t},\n\thasChildNodes:function(){\n\t\treturn this.firstChild != null;\n\t},\n\tcloneNode:function(deep){\n\t\treturn cloneNode(this.ownerDocument||this,this,deep);\n\t},\n\t// Modified in DOM Level 2:\n\tnormalize:function(){\n\t\tvar child = this.firstChild;\n\t\twhile(child){\n\t\t\tvar next = child.nextSibling;\n\t\t\tif(next && next.nodeType == TEXT_NODE && child.nodeType == TEXT_NODE){\n\t\t\t\tthis.removeChild(next);\n\t\t\t\tchild.appendData(next.data);\n\t\t\t}else{\n\t\t\t\tchild.normalize();\n\t\t\t\tchild = next;\n\t\t\t}\n\t\t}\n\t},\n \t// Introduced in DOM Level 2:\n\tisSupported:function(feature, version){\n\t\treturn this.ownerDocument.implementation.hasFeature(feature,version);\n\t},\n // Introduced in DOM Level 2:\n hasAttributes:function(){\n \treturn this.attributes.length>0;\n },\n lookupPrefix:function(namespaceURI){\n \tvar el = this;\n \twhile(el){\n \t\tvar map = el._nsMap;\n \t\t//console.dir(map)\n \t\tif(map){\n \t\t\tfor(var n in map){\n \t\t\t\tif(map[n] == namespaceURI){\n \t\t\t\t\treturn n;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\tel = el.nodeType == ATTRIBUTE_NODE?el.ownerDocument : el.parentNode;\n \t}\n \treturn null;\n },\n // Introduced in DOM Level 3:\n lookupNamespaceURI:function(prefix){\n \tvar el = this;\n \twhile(el){\n \t\tvar map = el._nsMap;\n \t\t//console.dir(map)\n \t\tif(map){\n \t\t\tif(prefix in map){\n \t\t\t\treturn map[prefix] ;\n \t\t\t}\n \t\t}\n \t\tel = el.nodeType == ATTRIBUTE_NODE?el.ownerDocument : el.parentNode;\n \t}\n \treturn null;\n },\n // Introduced in DOM Level 3:\n isDefaultNamespace:function(namespaceURI){\n \tvar prefix = this.lookupPrefix(namespaceURI);\n \treturn prefix == null;\n }\n};\n\n\nfunction _xmlEncoder(c){\n\treturn c == '<' && '<' ||\n c == '>' && '>' ||\n c == '&' && '&' ||\n c == '\"' && '"' ||\n '&#'+c.charCodeAt()+';'\n}\n\n\ncopy(NodeType,Node);\ncopy(NodeType,Node.prototype);\n\n/**\n * @param callback return true for continue,false for break\n * @return boolean true: break visit;\n */\nfunction _visitNode(node,callback){\n\tif(callback(node)){\n\t\treturn true;\n\t}\n\tif(node = node.firstChild){\n\t\tdo{\n\t\t\tif(_visitNode(node,callback)){return true}\n }while(node=node.nextSibling)\n }\n}\n\n\n\nfunction Document(){\n}\nfunction _onAddAttribute(doc,el,newAttr){\n\tdoc && doc._inc++;\n\tvar ns = newAttr.namespaceURI ;\n\tif(ns == 'http://www.w3.org/2000/xmlns/'){\n\t\t//update namespace\n\t\tel._nsMap[newAttr.prefix?newAttr.localName:''] = newAttr.value\n\t}\n}\nfunction _onRemoveAttribute(doc,el,newAttr,remove){\n\tdoc && doc._inc++;\n\tvar ns = newAttr.namespaceURI ;\n\tif(ns == 'http://www.w3.org/2000/xmlns/'){\n\t\t//update namespace\n\t\tdelete el._nsMap[newAttr.prefix?newAttr.localName:'']\n\t}\n}\nfunction _onUpdateChild(doc,el,newChild){\n\tif(doc && doc._inc){\n\t\tdoc._inc++;\n\t\t//update childNodes\n\t\tvar cs = el.childNodes;\n\t\tif(newChild){\n\t\t\tcs[cs.length++] = newChild;\n\t\t}else{\n\t\t\t//console.log(1)\n\t\t\tvar child = el.firstChild;\n\t\t\tvar i = 0;\n\t\t\twhile(child){\n\t\t\t\tcs[i++] = child;\n\t\t\t\tchild =child.nextSibling;\n\t\t\t}\n\t\t\tcs.length = i;\n\t\t}\n\t}\n}\n\n/**\n * attributes;\n * children;\n * \n * writeable properties:\n * nodeValue,Attr:value,CharacterData:data\n * prefix\n */\nfunction _removeChild(parentNode,child){\n\tvar previous = child.previousSibling;\n\tvar next = child.nextSibling;\n\tif(previous){\n\t\tprevious.nextSibling = next;\n\t}else{\n\t\tparentNode.firstChild = next\n\t}\n\tif(next){\n\t\tnext.previousSibling = previous;\n\t}else{\n\t\tparentNode.lastChild = previous;\n\t}\n\t_onUpdateChild(parentNode.ownerDocument,parentNode);\n\treturn child;\n}\n/**\n * preformance key(refChild == null)\n */\nfunction _insertBefore(parentNode,newChild,nextChild){\n\tvar cp = newChild.parentNode;\n\tif(cp){\n\t\tcp.removeChild(newChild);//remove and update\n\t}\n\tif(newChild.nodeType === DOCUMENT_FRAGMENT_NODE){\n\t\tvar newFirst = newChild.firstChild;\n\t\tif (newFirst == null) {\n\t\t\treturn newChild;\n\t\t}\n\t\tvar newLast = newChild.lastChild;\n\t}else{\n\t\tnewFirst = newLast = newChild;\n\t}\n\tvar pre = nextChild ? nextChild.previousSibling : parentNode.lastChild;\n\n\tnewFirst.previousSibling = pre;\n\tnewLast.nextSibling = nextChild;\n\t\n\t\n\tif(pre){\n\t\tpre.nextSibling = newFirst;\n\t}else{\n\t\tparentNode.firstChild = newFirst;\n\t}\n\tif(nextChild == null){\n\t\tparentNode.lastChild = newLast;\n\t}else{\n\t\tnextChild.previousSibling = newLast;\n\t}\n\tdo{\n\t\tnewFirst.parentNode = parentNode;\n\t}while(newFirst !== newLast && (newFirst= newFirst.nextSibling))\n\t_onUpdateChild(parentNode.ownerDocument||parentNode,parentNode);\n\t//console.log(parentNode.lastChild.nextSibling == null)\n\tif (newChild.nodeType == DOCUMENT_FRAGMENT_NODE) {\n\t\tnewChild.firstChild = newChild.lastChild = null;\n\t}\n\treturn newChild;\n}\nfunction _appendSingleChild(parentNode,newChild){\n\tvar cp = newChild.parentNode;\n\tif(cp){\n\t\tvar pre = parentNode.lastChild;\n\t\tcp.removeChild(newChild);//remove and update\n\t\tvar pre = parentNode.lastChild;\n\t}\n\tvar pre = parentNode.lastChild;\n\tnewChild.parentNode = parentNode;\n\tnewChild.previousSibling = pre;\n\tnewChild.nextSibling = null;\n\tif(pre){\n\t\tpre.nextSibling = newChild;\n\t}else{\n\t\tparentNode.firstChild = newChild;\n\t}\n\tparentNode.lastChild = newChild;\n\t_onUpdateChild(parentNode.ownerDocument,parentNode,newChild);\n\treturn newChild;\n\t//console.log(\"__aa\",parentNode.lastChild.nextSibling == null)\n}\nDocument.prototype = {\n\t//implementation : null,\n\tnodeName : '#document',\n\tnodeType : DOCUMENT_NODE,\n\tdoctype : null,\n\tdocumentElement : null,\n\t_inc : 1,\n\t\n\tinsertBefore : function(newChild, refChild){//raises \n\t\tif(newChild.nodeType == DOCUMENT_FRAGMENT_NODE){\n\t\t\tvar child = newChild.firstChild;\n\t\t\twhile(child){\n\t\t\t\tvar next = child.nextSibling;\n\t\t\t\tthis.insertBefore(child,refChild);\n\t\t\t\tchild = next;\n\t\t\t}\n\t\t\treturn newChild;\n\t\t}\n\t\tif(this.documentElement == null && newChild.nodeType == ELEMENT_NODE){\n\t\t\tthis.documentElement = newChild;\n\t\t}\n\t\t\n\t\treturn _insertBefore(this,newChild,refChild),(newChild.ownerDocument = this),newChild;\n\t},\n\tremoveChild : function(oldChild){\n\t\tif(this.documentElement == oldChild){\n\t\t\tthis.documentElement = null;\n\t\t}\n\t\treturn _removeChild(this,oldChild);\n\t},\n\t// Introduced in DOM Level 2:\n\timportNode : function(importedNode,deep){\n\t\treturn importNode(this,importedNode,deep);\n\t},\n\t// Introduced in DOM Level 2:\n\tgetElementById :\tfunction(id){\n\t\tvar rtv = null;\n\t\t_visitNode(this.documentElement,function(node){\n\t\t\tif(node.nodeType == ELEMENT_NODE){\n\t\t\t\tif(node.getAttribute('id') == id){\n\t\t\t\t\trtv = node;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t\treturn rtv;\n\t},\n\t\n\t//document factory method:\n\tcreateElement :\tfunction(tagName){\n\t\tvar node = new Element();\n\t\tnode.ownerDocument = this;\n\t\tnode.nodeName = tagName;\n\t\tnode.tagName = tagName;\n\t\tnode.childNodes = new NodeList();\n\t\tvar attrs\t= node.attributes = new NamedNodeMap();\n\t\tattrs._ownerElement = node;\n\t\treturn node;\n\t},\n\tcreateDocumentFragment :\tfunction(){\n\t\tvar node = new DocumentFragment();\n\t\tnode.ownerDocument = this;\n\t\tnode.childNodes = new NodeList();\n\t\treturn node;\n\t},\n\tcreateTextNode :\tfunction(data){\n\t\tvar node = new Text();\n\t\tnode.ownerDocument = this;\n\t\tnode.appendData(data)\n\t\treturn node;\n\t},\n\tcreateComment :\tfunction(data){\n\t\tvar node = new Comment();\n\t\tnode.ownerDocument = this;\n\t\tnode.appendData(data)\n\t\treturn node;\n\t},\n\tcreateCDATASection :\tfunction(data){\n\t\tvar node = new CDATASection();\n\t\tnode.ownerDocument = this;\n\t\tnode.appendData(data)\n\t\treturn node;\n\t},\n\tcreateProcessingInstruction :\tfunction(target,data){\n\t\tvar node = new ProcessingInstruction();\n\t\tnode.ownerDocument = this;\n\t\tnode.tagName = node.target = target;\n\t\tnode.nodeValue= node.data = data;\n\t\treturn node;\n\t},\n\tcreateAttribute :\tfunction(name){\n\t\tvar node = new Attr();\n\t\tnode.ownerDocument\t= this;\n\t\tnode.name = name;\n\t\tnode.nodeName\t= name;\n\t\tnode.localName = name;\n\t\tnode.specified = true;\n\t\treturn node;\n\t},\n\tcreateEntityReference :\tfunction(name){\n\t\tvar node = new EntityReference();\n\t\tnode.ownerDocument\t= this;\n\t\tnode.nodeName\t= name;\n\t\treturn node;\n\t},\n\t// Introduced in DOM Level 2:\n\tcreateElementNS :\tfunction(namespaceURI,qualifiedName){\n\t\tvar node = new Element();\n\t\tvar pl = qualifiedName.split(':');\n\t\tvar attrs\t= node.attributes = new NamedNodeMap();\n\t\tnode.childNodes = new NodeList();\n\t\tnode.ownerDocument = this;\n\t\tnode.nodeName = qualifiedName;\n\t\tnode.tagName = qualifiedName;\n\t\tnode.namespaceURI = namespaceURI;\n\t\tif(pl.length == 2){\n\t\t\tnode.prefix = pl[0];\n\t\t\tnode.localName = pl[1];\n\t\t}else{\n\t\t\t//el.prefix = null;\n\t\t\tnode.localName = qualifiedName;\n\t\t}\n\t\tattrs._ownerElement = node;\n\t\treturn node;\n\t},\n\t// Introduced in DOM Level 2:\n\tcreateAttributeNS :\tfunction(namespaceURI,qualifiedName){\n\t\tvar node = new Attr();\n\t\tvar pl = qualifiedName.split(':');\n\t\tnode.ownerDocument = this;\n\t\tnode.nodeName = qualifiedName;\n\t\tnode.name = qualifiedName;\n\t\tnode.namespaceURI = namespaceURI;\n\t\tnode.specified = true;\n\t\tif(pl.length == 2){\n\t\t\tnode.prefix = pl[0];\n\t\t\tnode.localName = pl[1];\n\t\t}else{\n\t\t\t//el.prefix = null;\n\t\t\tnode.localName = qualifiedName;\n\t\t}\n\t\treturn node;\n\t}\n};\n_extends(Document,Node);\n\n\nfunction Element() {\n\tthis._nsMap = {};\n};\nElement.prototype = {\n\tnodeType : ELEMENT_NODE,\n\thasAttribute : function(name){\n\t\treturn this.getAttributeNode(name)!=null;\n\t},\n\tgetAttribute : function(name){\n\t\tvar attr = this.getAttributeNode(name);\n\t\treturn attr && attr.value || '';\n\t},\n\tgetAttributeNode : function(name){\n\t\treturn this.attributes.getNamedItem(name);\n\t},\n\tsetAttribute : function(name, value){\n\t\tvar attr = this.ownerDocument.createAttribute(name);\n\t\tattr.value = attr.nodeValue = \"\" + value;\n\t\tthis.setAttributeNode(attr)\n\t},\n\tremoveAttribute : function(name){\n\t\tvar attr = this.getAttributeNode(name)\n\t\tattr && this.removeAttributeNode(attr);\n\t},\n\t\n\t//four real opeartion method\n\tappendChild:function(newChild){\n\t\tif(newChild.nodeType === DOCUMENT_FRAGMENT_NODE){\n\t\t\treturn this.insertBefore(newChild,null);\n\t\t}else{\n\t\t\treturn _appendSingleChild(this,newChild);\n\t\t}\n\t},\n\tsetAttributeNode : function(newAttr){\n\t\treturn this.attributes.setNamedItem(newAttr);\n\t},\n\tsetAttributeNodeNS : function(newAttr){\n\t\treturn this.attributes.setNamedItemNS(newAttr);\n\t},\n\tremoveAttributeNode : function(oldAttr){\n\t\t//console.log(this == oldAttr.ownerElement)\n\t\treturn this.attributes.removeNamedItem(oldAttr.nodeName);\n\t},\n\t//get real attribute name,and remove it by removeAttributeNode\n\tremoveAttributeNS : function(namespaceURI, localName){\n\t\tvar old = this.getAttributeNodeNS(namespaceURI, localName);\n\t\told && this.removeAttributeNode(old);\n\t},\n\t\n\thasAttributeNS : function(namespaceURI, localName){\n\t\treturn this.getAttributeNodeNS(namespaceURI, localName)!=null;\n\t},\n\tgetAttributeNS : function(namespaceURI, localName){\n\t\tvar attr = this.getAttributeNodeNS(namespaceURI, localName);\n\t\treturn attr && attr.value || '';\n\t},\n\tsetAttributeNS : function(namespaceURI, qualifiedName, value){\n\t\tvar attr = this.ownerDocument.createAttributeNS(namespaceURI, qualifiedName);\n\t\tattr.value = attr.nodeValue = \"\" + value;\n\t\tthis.setAttributeNode(attr)\n\t},\n\tgetAttributeNodeNS : function(namespaceURI, localName){\n\t\treturn this.attributes.getNamedItemNS(namespaceURI, localName);\n\t},\n\t\n\tgetElementsByTagName : function(tagName){\n\t\treturn new LiveNodeList(this,function(base){\n\t\t\tvar ls = [];\n\t\t\t_visitNode(base,function(node){\n\t\t\t\tif(node !== base && node.nodeType == ELEMENT_NODE && (tagName === '*' || node.tagName == tagName)){\n\t\t\t\t\tls.push(node);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn ls;\n\t\t});\n\t},\n\tgetElementsByTagNameNS : function(namespaceURI, localName){\n\t\treturn new LiveNodeList(this,function(base){\n\t\t\tvar ls = [];\n\t\t\t_visitNode(base,function(node){\n\t\t\t\tif(node !== base && node.nodeType === ELEMENT_NODE && (namespaceURI === '*' || node.namespaceURI === namespaceURI) && (localName === '*' || node.localName == localName)){\n\t\t\t\t\tls.push(node);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn ls;\n\t\t\t\n\t\t});\n\t}\n};\nDocument.prototype.getElementsByTagName = Element.prototype.getElementsByTagName;\nDocument.prototype.getElementsByTagNameNS = Element.prototype.getElementsByTagNameNS;\n\n\n_extends(Element,Node);\nfunction Attr() {\n};\nAttr.prototype.nodeType = ATTRIBUTE_NODE;\n_extends(Attr,Node);\n\n\nfunction CharacterData() {\n};\nCharacterData.prototype = {\n\tdata : '',\n\tsubstringData : function(offset, count) {\n\t\treturn this.data.substring(offset, offset+count);\n\t},\n\tappendData: function(text) {\n\t\ttext = this.data+text;\n\t\tthis.nodeValue = this.data = text;\n\t\tthis.length = text.length;\n\t},\n\tinsertData: function(offset,text) {\n\t\tthis.replaceData(offset,0,text);\n\t\n\t},\n\tappendChild:function(newChild){\n\t\tthrow new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR])\n\t},\n\tdeleteData: function(offset, count) {\n\t\tthis.replaceData(offset,count,\"\");\n\t},\n\treplaceData: function(offset, count, text) {\n\t\tvar start = this.data.substring(0,offset);\n\t\tvar end = this.data.substring(offset+count);\n\t\ttext = start + text + end;\n\t\tthis.nodeValue = this.data = text;\n\t\tthis.length = text.length;\n\t}\n}\n_extends(CharacterData,Node);\nfunction Text() {\n};\nText.prototype = {\n\tnodeName : \"#text\",\n\tnodeType : TEXT_NODE,\n\tsplitText : function(offset) {\n\t\tvar text = this.data;\n\t\tvar newText = text.substring(offset);\n\t\ttext = text.substring(0, offset);\n\t\tthis.data = this.nodeValue = text;\n\t\tthis.length = text.length;\n\t\tvar newNode = this.ownerDocument.createTextNode(newText);\n\t\tif(this.parentNode){\n\t\t\tthis.parentNode.insertBefore(newNode, this.nextSibling);\n\t\t}\n\t\treturn newNode;\n\t}\n}\n_extends(Text,CharacterData);\nfunction Comment() {\n};\nComment.prototype = {\n\tnodeName : \"#comment\",\n\tnodeType : COMMENT_NODE\n}\n_extends(Comment,CharacterData);\n\nfunction CDATASection() {\n};\nCDATASection.prototype = {\n\tnodeName : \"#cdata-section\",\n\tnodeType : CDATA_SECTION_NODE\n}\n_extends(CDATASection,CharacterData);\n\n\nfunction DocumentType() {\n};\nDocumentType.prototype.nodeType = DOCUMENT_TYPE_NODE;\n_extends(DocumentType,Node);\n\nfunction Notation() {\n};\nNotation.prototype.nodeType = NOTATION_NODE;\n_extends(Notation,Node);\n\nfunction Entity() {\n};\nEntity.prototype.nodeType = ENTITY_NODE;\n_extends(Entity,Node);\n\nfunction EntityReference() {\n};\nEntityReference.prototype.nodeType = ENTITY_REFERENCE_NODE;\n_extends(EntityReference,Node);\n\nfunction DocumentFragment() {\n};\nDocumentFragment.prototype.nodeName =\t\"#document-fragment\";\nDocumentFragment.prototype.nodeType =\tDOCUMENT_FRAGMENT_NODE;\n_extends(DocumentFragment,Node);\n\n\nfunction ProcessingInstruction() {\n}\nProcessingInstruction.prototype.nodeType = PROCESSING_INSTRUCTION_NODE;\n_extends(ProcessingInstruction,Node);\nfunction XMLSerializer(){}\nXMLSerializer.prototype.serializeToString = function(node,isHtml,nodeFilter){\n\treturn nodeSerializeToString.call(node,isHtml,nodeFilter);\n}\nNode.prototype.toString = nodeSerializeToString;\nfunction nodeSerializeToString(isHtml,nodeFilter){\n\tvar buf = [];\n\tvar refNode = this.nodeType == 9?this.documentElement:this;\n\tvar prefix = refNode.prefix;\n\tvar uri = refNode.namespaceURI;\n\t\n\tif(uri && prefix == null){\n\t\t//console.log(prefix)\n\t\tvar prefix = refNode.lookupPrefix(uri);\n\t\tif(prefix == null){\n\t\t\t//isHTML = true;\n\t\t\tvar visibleNamespaces=[\n\t\t\t{namespace:uri,prefix:null}\n\t\t\t//{namespace:uri,prefix:''}\n\t\t\t]\n\t\t}\n\t}\n\tserializeToString(this,buf,isHtml,nodeFilter,visibleNamespaces);\n\t//console.log('###',this.nodeType,uri,prefix,buf.join(''))\n\treturn buf.join('');\n}\nfunction needNamespaceDefine(node,isHTML, visibleNamespaces) {\n\tvar prefix = node.prefix||'';\n\tvar uri = node.namespaceURI;\n\tif (!prefix && !uri){\n\t\treturn false;\n\t}\n\tif (prefix === \"xml\" && uri === \"http://www.w3.org/XML/1998/namespace\" \n\t\t|| uri == 'http://www.w3.org/2000/xmlns/'){\n\t\treturn false;\n\t}\n\t\n\tvar i = visibleNamespaces.length \n\t//console.log('@@@@',node.tagName,prefix,uri,visibleNamespaces)\n\twhile (i--) {\n\t\tvar ns = visibleNamespaces[i];\n\t\t// get namespace prefix\n\t\t//console.log(node.nodeType,node.tagName,ns.prefix,prefix)\n\t\tif (ns.prefix == prefix){\n\t\t\treturn ns.namespace != uri;\n\t\t}\n\t}\n\t//console.log(isHTML,uri,prefix=='')\n\t//if(isHTML && prefix ==null && uri == 'http://www.w3.org/1999/xhtml'){\n\t//\treturn false;\n\t//}\n\t//node.flag = '11111'\n\t//console.error(3,true,node.flag,node.prefix,node.namespaceURI)\n\treturn true;\n}\nfunction serializeToString(node,buf,isHTML,nodeFilter,visibleNamespaces){\n\tif(nodeFilter){\n\t\tnode = nodeFilter(node);\n\t\tif(node){\n\t\t\tif(typeof node == 'string'){\n\t\t\t\tbuf.push(node);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}else{\n\t\t\treturn;\n\t\t}\n\t\t//buf.sort.apply(attrs, attributeSorter);\n\t}\n\tswitch(node.nodeType){\n\tcase ELEMENT_NODE:\n\t\tif (!visibleNamespaces) visibleNamespaces = [];\n\t\tvar startVisibleNamespaces = visibleNamespaces.length;\n\t\tvar attrs = node.attributes;\n\t\tvar len = attrs.length;\n\t\tvar child = node.firstChild;\n\t\tvar nodeName = node.tagName;\n\t\t\n\t\tisHTML = (htmlns === node.namespaceURI) ||isHTML \n\t\tbuf.push('<',nodeName);\n\t\t\n\t\t\n\t\t\n\t\tfor(var i=0;i<len;i++){\n\t\t\t// add namespaces for attributes\n\t\t\tvar attr = attrs.item(i);\n\t\t\tif (attr.prefix == 'xmlns') {\n\t\t\t\tvisibleNamespaces.push({ prefix: attr.localName, namespace: attr.value });\n\t\t\t}else if(attr.nodeName == 'xmlns'){\n\t\t\t\tvisibleNamespaces.push({ prefix: '', namespace: attr.value });\n\t\t\t}\n\t\t}\n\t\tfor(var i=0;i<len;i++){\n\t\t\tvar attr = attrs.item(i);\n\t\t\tif (needNamespaceDefine(attr,isHTML, visibleNamespaces)) {\n\t\t\t\tvar prefix = attr.prefix||'';\n\t\t\t\tvar uri = attr.namespaceURI;\n\t\t\t\tvar ns = prefix ? ' xmlns:' + prefix : \" xmlns\";\n\t\t\t\tbuf.push(ns, '=\"' , uri , '\"');\n\t\t\t\tvisibleNamespaces.push({ prefix: prefix, namespace:uri });\n\t\t\t}\n\t\t\tserializeToString(attr,buf,isHTML,nodeFilter,visibleNamespaces);\n\t\t}\n\t\t// add namespace for current node\t\t\n\t\tif (needNamespaceDefine(node,isHTML, visibleNamespaces)) {\n\t\t\tvar prefix = node.prefix||'';\n\t\t\tvar uri = node.namespaceURI;\n\t\t\tvar ns = prefix ? ' xmlns:' + prefix : \" xmlns\";\n\t\t\tbuf.push(ns, '=\"' , uri , '\"');\n\t\t\tvisibleNamespaces.push({ prefix: prefix, namespace:uri });\n\t\t}\n\t\t\n\t\tif(child || isHTML && !/^(?:meta|link|img|br|hr|input)$/i.test(nodeName)){\n\t\t\tbuf.push('>');\n\t\t\t//if is cdata child node\n\t\t\tif(isHTML && /^script$/i.test(nodeName)){\n\t\t\t\twhile(child){\n\t\t\t\t\tif(child.data){\n\t\t\t\t\t\tbuf.push(child.data);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tserializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces);\n\t\t\t\t\t}\n\t\t\t\t\tchild = child.nextSibling;\n\t\t\t\t}\n\t\t\t}else\n\t\t\t{\n\t\t\t\twhile(child){\n\t\t\t\t\tserializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces);\n\t\t\t\t\tchild = child.nextSibling;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbuf.push('</',nodeName,'>');\n\t\t}else{\n\t\t\tbuf.push('/>');\n\t\t}\n\t\t// remove added visible namespaces\n\t\t//visibleNamespaces.length = startVisibleNamespaces;\n\t\treturn;\n\tcase DOCUMENT_NODE:\n\tcase DOCUMENT_FRAGMENT_NODE:\n\t\tvar child = node.firstChild;\n\t\twhile(child){\n\t\t\tserializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces);\n\t\t\tchild = child.nextSibling;\n\t\t}\n\t\treturn;\n\tcase ATTRIBUTE_NODE:\n\t\treturn buf.push(' ',node.name,'=\"',node.value.replace(/[<&\"]/g,_xmlEncoder),'\"');\n\tcase TEXT_NODE:\n\t\treturn buf.push(node.data.replace(/[<&]/g,_xmlEncoder));\n\tcase CDATA_SECTION_NODE:\n\t\treturn buf.push( '<![CDATA[',node.data,']]>');\n\tcase COMMENT_NODE:\n\t\treturn buf.push( \"<!--\",node.data,\"-->\");\n\tcase DOCUMENT_TYPE_NODE:\n\t\tvar pubid = node.publicId;\n\t\tvar sysid = node.systemId;\n\t\tbuf.push('<!DOCTYPE ',node.name);\n\t\tif(pubid){\n\t\t\tbuf.push(' PUBLIC \"',pubid);\n\t\t\tif (sysid && sysid!='.') {\n\t\t\t\tbuf.push( '\" \"',sysid);\n\t\t\t}\n\t\t\tbuf.push('\">');\n\t\t}else if(sysid && sysid!='.'){\n\t\t\tbuf.push(' SYSTEM \"',sysid,'\">');\n\t\t}else{\n\t\t\tvar sub = node.internalSubset;\n\t\t\tif(sub){\n\t\t\t\tbuf.push(\" [\",sub,\"]\");\n\t\t\t}\n\t\t\tbuf.push(\">\");\n\t\t}\n\t\treturn;\n\tcase PROCESSING_INSTRUCTION_NODE:\n\t\treturn buf.push( \"<?\",node.target,\" \",node.data,\"?>\");\n\tcase ENTITY_REFERENCE_NODE:\n\t\treturn buf.push( '&',node.nodeName,';');\n\t//case ENTITY_NODE:\n\t//case NOTATION_NODE:\n\tdefault:\n\t\tbuf.push('??',node.nodeName);\n\t}\n}\nfunction importNode(doc,node,deep){\n\tvar node2;\n\tswitch (node.nodeType) {\n\tcase ELEMENT_NODE:\n\t\tnode2 = node.cloneNode(false);\n\t\tnode2.ownerDocument = doc;\n\t\t//var attrs = node2.attributes;\n\t\t//var len = attrs.length;\n\t\t//for(var i=0;i<len;i++){\n\t\t\t//node2.setAttributeNodeNS(importNode(doc,attrs.item(i),deep));\n\t\t//}\n\tcase DOCUMENT_FRAGMENT_NODE:\n\t\tbreak;\n\tcase ATTRIBUTE_NODE:\n\t\tdeep = true;\n\t\tbreak;\n\t//case ENTITY_REFERENCE_NODE:\n\t//case PROCESSING_INSTRUCTION_NODE:\n\t////case TEXT_NODE:\n\t//case CDATA_SECTION_NODE:\n\t//case COMMENT_NODE:\n\t//\tdeep = false;\n\t//\tbreak;\n\t//case DOCUMENT_NODE:\n\t//case DOCUMENT_TYPE_NODE:\n\t//cannot be imported.\n\t//case ENTITY_NODE:\n\t//case NOTATION_NODE:\n\t//can not hit in level3\n\t//default:throw e;\n\t}\n\tif(!node2){\n\t\tnode2 = node.cloneNode(false);//false\n\t}\n\tnode2.ownerDocument = doc;\n\tnode2.parentNode = null;\n\tif(deep){\n\t\tvar child = node.firstChild;\n\t\twhile(child){\n\t\t\tnode2.appendChild(importNode(doc,child,deep));\n\t\t\tchild = child.nextSibling;\n\t\t}\n\t}\n\treturn node2;\n}\n//\n//var _relationMap = {firstChild:1,lastChild:1,previousSibling:1,nextSibling:1,\n//\t\t\t\t\tattributes:1,childNodes:1,parentNode:1,documentElement:1,doctype,};\nfunction cloneNode(doc,node,deep){\n\tvar node2 = new node.constructor();\n\tfor(var n in node){\n\t\tvar v = node[n];\n\t\tif(typeof v != 'object' ){\n\t\t\tif(v != node2[n]){\n\t\t\t\tnode2[n] = v;\n\t\t\t}\n\t\t}\n\t}\n\tif(node.childNodes){\n\t\tnode2.childNodes = new NodeList();\n\t}\n\tnode2.ownerDocument = doc;\n\tswitch (node2.nodeType) {\n\tcase ELEMENT_NODE:\n\t\tvar attrs\t= node.attributes;\n\t\tvar attrs2\t= node2.attributes = new NamedNodeMap();\n\t\tvar len = attrs.length\n\t\tattrs2._ownerElement = node2;\n\t\tfor(var i=0;i<len;i++){\n\t\t\tnode2.setAttributeNode(cloneNode(doc,attrs.item(i),true));\n\t\t}\n\t\tbreak;;\n\tcase ATTRIBUTE_NODE:\n\t\tdeep = true;\n\t}\n\tif(deep){\n\t\tvar child = node.firstChild;\n\t\twhile(child){\n\t\t\tnode2.appendChild(cloneNode(doc,child,deep));\n\t\t\tchild = child.nextSibling;\n\t\t}\n\t}\n\treturn node2;\n}\n\nfunction __set__(object,key,value){\n\tobject[key] = value\n}\n//do dynamic\ntry{\n\tif(Object.defineProperty){\n\t\tObject.defineProperty(LiveNodeList.prototype,'length',{\n\t\t\tget:function(){\n\t\t\t\t_updateLiveList(this);\n\t\t\t\treturn this.$$length;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(Node.prototype,'textContent',{\n\t\t\tget:function(){\n\t\t\t\treturn getTextContent(this);\n\t\t\t},\n\t\t\tset:function(data){\n\t\t\t\tswitch(this.nodeType){\n\t\t\t\tcase ELEMENT_NODE:\n\t\t\t\tcase DOCUMENT_FRAGMENT_NODE:\n\t\t\t\t\twhile(this.firstChild){\n\t\t\t\t\t\tthis.removeChild(this.firstChild);\n\t\t\t\t\t}\n\t\t\t\t\tif(data || String(data)){\n\t\t\t\t\t\tthis.appendChild(this.ownerDocument.createTextNode(data));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t//TODO:\n\t\t\t\t\tthis.data = data;\n\t\t\t\t\tthis.value = data;\n\t\t\t\t\tthis.nodeValue = data;\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t\t\n\t\tfunction getTextContent(node){\n\t\t\tswitch(node.nodeType){\n\t\t\tcase ELEMENT_NODE:\n\t\t\tcase DOCUMENT_FRAGMENT_NODE:\n\t\t\t\tvar buf = [];\n\t\t\t\tnode = node.firstChild;\n\t\t\t\twhile(node){\n\t\t\t\t\tif(node.nodeType!==7 && node.nodeType !==8){\n\t\t\t\t\t\tbuf.push(getTextContent(node));\n\t\t\t\t\t}\n\t\t\t\t\tnode = node.nextSibling;\n\t\t\t\t}\n\t\t\t\treturn buf.join('');\n\t\t\tdefault:\n\t\t\t\treturn node.nodeValue;\n\t\t\t}\n\t\t}\n\t\t__set__ = function(object,key,value){\n\t\t\t//console.log(value)\n\t\t\tobject['$$'+key] = value\n\t\t}\n\t}\n}catch(e){//ie8\n}\n\n//if(typeof require == 'function'){\n\texports.DOMImplementation = DOMImplementation;\n\texports.XMLSerializer = XMLSerializer;\n//}\n\n\n/***/ }),\n\n/***/ \"./node_modules/xmldom/sax.js\":\n/*!************************************!*\\\n !*** ./node_modules/xmldom/sax.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n//[4] \tNameStartChar\t ::= \t\":\" | [A-Z] | \"_\" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]\r\n//[4a] \tNameChar\t ::= \tNameStartChar | \"-\" | \".\" | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040]\r\n//[5] \tName\t ::= \tNameStartChar (NameChar)*\r\nvar nameStartChar = /[A-Z_a-z\\xC0-\\xD6\\xD8-\\xF6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]///\\u10000-\\uEFFFF\r\nvar nameChar = new RegExp(\"[\\\\-\\\\.0-9\"+nameStartChar.source.slice(1,-1)+\"\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]\");\r\nvar tagNamePattern = new RegExp('^'+nameStartChar.source+nameChar.source+'*(?:\\:'+nameStartChar.source+nameChar.source+'*)?$');\r\n//var tagNamePattern = /^[a-zA-Z_][\\w\\-\\.]*(?:\\:[a-zA-Z_][\\w\\-\\.]*)?$/\r\n//var handlers = 'resolveEntity,getExternalSubset,characters,endDocument,endElement,endPrefixMapping,ignorableWhitespace,processingInstruction,setDocumentLocator,skippedEntity,startDocument,startElement,startPrefixMapping,notationDecl,unparsedEntityDecl,error,fatalError,warning,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,comment,endCDATA,endDTD,endEntity,startCDATA,startDTD,startEntity'.split(',')\r\n\r\n//S_TAG,\tS_ATTR,\tS_EQ,\tS_ATTR_NOQUOT_VALUE\r\n//S_ATTR_SPACE,\tS_ATTR_END,\tS_TAG_SPACE, S_TAG_CLOSE\r\nvar S_TAG = 0;//tag name offerring\r\nvar S_ATTR = 1;//attr name offerring \r\nvar S_ATTR_SPACE=2;//attr name end and space offer\r\nvar S_EQ = 3;//=space?\r\nvar S_ATTR_NOQUOT_VALUE = 4;//attr value(no quot value only)\r\nvar S_ATTR_END = 5;//attr value end and no space(quot end)\r\nvar S_TAG_SPACE = 6;//(attr value end || tag end ) && (space offer)\r\nvar S_TAG_CLOSE = 7;//closed el<el />\r\n\r\nfunction XMLReader(){\r\n\t\r\n}\r\n\r\nXMLReader.prototype = {\r\n\tparse:function(source,defaultNSMap,entityMap){\r\n\t\tvar domBuilder = this.domBuilder;\r\n\t\tdomBuilder.startDocument();\r\n\t\t_copy(defaultNSMap ,defaultNSMap = {})\r\n\t\tparse(source,defaultNSMap,entityMap,\r\n\t\t\t\tdomBuilder,this.errorHandler);\r\n\t\tdomBuilder.endDocument();\r\n\t}\r\n}\r\nfunction parse(source,defaultNSMapCopy,entityMap,domBuilder,errorHandler){\r\n\tfunction fixedFromCharCode(code) {\r\n\t\t// String.prototype.fromCharCode does not supports\r\n\t\t// > 2 bytes unicode chars directly\r\n\t\tif (code > 0xffff) {\r\n\t\t\tcode -= 0x10000;\r\n\t\t\tvar surrogate1 = 0xd800 + (code >> 10)\r\n\t\t\t\t, surrogate2 = 0xdc00 + (code & 0x3ff);\r\n\r\n\t\t\treturn String.fromCharCode(surrogate1, surrogate2);\r\n\t\t} else {\r\n\t\t\treturn String.fromCharCode(code);\r\n\t\t}\r\n\t}\r\n\tfunction entityReplacer(a){\r\n\t\tvar k = a.slice(1,-1);\r\n\t\tif(k in entityMap){\r\n\t\t\treturn entityMap[k]; \r\n\t\t}else if(k.charAt(0) === '#'){\r\n\t\t\treturn fixedFromCharCode(parseInt(k.substr(1).replace('x','0x')))\r\n\t\t}else{\r\n\t\t\terrorHandler.error('entity not found:'+a);\r\n\t\t\treturn a;\r\n\t\t}\r\n\t}\r\n\tfunction appendText(end){//has some bugs\r\n\t\tif(end>start){\r\n\t\t\tvar xt = source.substring(start,end).replace(/&#?\\w+;/g,entityReplacer);\r\n\t\t\tlocator&&position(start);\r\n\t\t\tdomBuilder.characters(xt,0,end-start);\r\n\t\t\tstart = end\r\n\t\t}\r\n\t}\r\n\tfunction position(p,m){\r\n\t\twhile(p>=lineEnd && (m = linePattern.exec(source))){\r\n\t\t\tlineStart = m.index;\r\n\t\t\tlineEnd = lineStart + m[0].length;\r\n\t\t\tlocator.lineNumber++;\r\n\t\t\t//console.log('line++:',locator,startPos,endPos)\r\n\t\t}\r\n\t\tlocator.columnNumber = p-lineStart+1;\r\n\t}\r\n\tvar lineStart = 0;\r\n\tvar lineEnd = 0;\r\n\tvar linePattern = /.*(?:\\r\\n?|\\n)|.*$/g\r\n\tvar locator = domBuilder.locator;\r\n\t\r\n\tvar parseStack = [{currentNSMap:defaultNSMapCopy}]\r\n\tvar closeMap = {};\r\n\tvar start = 0;\r\n\twhile(true){\r\n\t\ttry{\r\n\t\t\tvar tagStart = source.indexOf('<',start);\r\n\t\t\tif(tagStart<0){\r\n\t\t\t\tif(!source.substr(start).match(/^\\s*$/)){\r\n\t\t\t\t\tvar doc = domBuilder.doc;\r\n\t \t\t\tvar text = doc.createTextNode(source.substr(start));\r\n\t \t\t\tdoc.appendChild(text);\r\n\t \t\t\tdomBuilder.currentElement = text;\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(tagStart>start){\r\n\t\t\t\tappendText(tagStart);\r\n\t\t\t}\r\n\t\t\tswitch(source.charAt(tagStart+1)){\r\n\t\t\tcase '/':\r\n\t\t\t\tvar end = source.indexOf('>',tagStart+3);\r\n\t\t\t\tvar tagName = source.substring(tagStart+2,end);\r\n\t\t\t\tvar config = parseStack.pop();\r\n\t\t\t\tif(end<0){\r\n\t\t\t\t\t\r\n\t \t\ttagName = source.substring(tagStart+2).replace(/[\\s<].*/,'');\r\n\t \t\t//console.error('#@@@@@@'+tagName)\r\n\t \t\terrorHandler.error(\"end tag name: \"+tagName+' is not complete:'+config.tagName);\r\n\t \t\tend = tagStart+1+tagName.length;\r\n\t \t}else if(tagName.match(/\\s</)){\r\n\t \t\ttagName = tagName.replace(/[\\s<].*/,'');\r\n\t \t\terrorHandler.error(\"end tag name: \"+tagName+' maybe not complete');\r\n\t \t\tend = tagStart+1+tagName.length;\r\n\t\t\t\t}\r\n\t\t\t\t//console.error(parseStack.length,parseStack)\r\n\t\t\t\t//console.error(config);\r\n\t\t\t\tvar localNSMap = config.localNSMap;\r\n\t\t\t\tvar endMatch = config.tagName == tagName;\r\n\t\t\t\tvar endIgnoreCaseMach = endMatch || config.tagName&&config.tagName.toLowerCase() == tagName.toLowerCase()\r\n\t\t if(endIgnoreCaseMach){\r\n\t\t \tdomBuilder.endElement(config.uri,config.localName,tagName);\r\n\t\t\t\t\tif(localNSMap){\r\n\t\t\t\t\t\tfor(var prefix in localNSMap){\r\n\t\t\t\t\t\t\tdomBuilder.endPrefixMapping(prefix) ;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!endMatch){\r\n\t\t \terrorHandler.fatalError(\"end tag name: \"+tagName+' is not match the current start tagName:'+config.tagName );\r\n\t\t\t\t\t}\r\n\t\t }else{\r\n\t\t \tparseStack.push(config)\r\n\t\t }\r\n\t\t\t\t\r\n\t\t\t\tend++;\r\n\t\t\t\tbreak;\r\n\t\t\t\t// end elment\r\n\t\t\tcase '?':// <?...?>\r\n\t\t\t\tlocator&&position(tagStart);\r\n\t\t\t\tend = parseInstruction(source,tagStart,domBuilder);\r\n\t\t\t\tbreak;\r\n\t\t\tcase '!':// <!doctype,<![CDATA,<!--\r\n\t\t\t\tlocator&&position(tagStart);\r\n\t\t\t\tend = parseDCC(source,tagStart,domBuilder,errorHandler);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tlocator&&position(tagStart);\r\n\t\t\t\tvar el = new ElementAttributes();\r\n\t\t\t\tvar currentNSMap = parseStack[parseStack.length-1].currentNSMap;\r\n\t\t\t\t//elStartEnd\r\n\t\t\t\tvar end = parseElementStartPart(source,tagStart,el,currentNSMap,entityReplacer,errorHandler);\r\n\t\t\t\tvar len = el.length;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(!el.closed && fixSelfClosed(source,end,el.tagName,closeMap)){\r\n\t\t\t\t\tel.closed = true;\r\n\t\t\t\t\tif(!entityMap.nbsp){\r\n\t\t\t\t\t\terrorHandler.warning('unclosed xml attribute');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(locator && len){\r\n\t\t\t\t\tvar locator2 = copyLocator(locator,{});\r\n\t\t\t\t\t//try{//attribute position fixed\r\n\t\t\t\t\tfor(var i = 0;i<len;i++){\r\n\t\t\t\t\t\tvar a = el[i];\r\n\t\t\t\t\t\tposition(a.offset);\r\n\t\t\t\t\t\ta.locator = copyLocator(locator,{});\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//}catch(e){console.error('@@@@@'+e)}\r\n\t\t\t\t\tdomBuilder.locator = locator2\r\n\t\t\t\t\tif(appendElement(el,domBuilder,currentNSMap)){\r\n\t\t\t\t\t\tparseStack.push(el)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdomBuilder.locator = locator;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(appendElement(el,domBuilder,currentNSMap)){\r\n\t\t\t\t\t\tparseStack.push(el)\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(el.uri === 'http://www.w3.org/1999/xhtml' && !el.closed){\r\n\t\t\t\t\tend = parseHtmlSpecialContent(source,end,el.tagName,entityReplacer,domBuilder)\r\n\t\t\t\t}else{\r\n\t\t\t\t\tend++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(e){\r\n\t\t\terrorHandler.error('element parse error: '+e)\r\n\t\t\t//errorHandler.error('element parse error: '+e);\r\n\t\t\tend = -1;\r\n\t\t\t//throw e;\r\n\t\t}\r\n\t\tif(end>start){\r\n\t\t\tstart = end;\r\n\t\t}else{\r\n\t\t\t//TODO: 这里有可能sax回退,有位置错误风险\r\n\t\t\tappendText(Math.max(tagStart,start)+1);\r\n\t\t}\r\n\t}\r\n}\r\nfunction copyLocator(f,t){\r\n\tt.lineNumber = f.lineNumber;\r\n\tt.columnNumber = f.columnNumber;\r\n\treturn t;\r\n}\r\n\r\n/**\r\n * @see #appendElement(source,elStartEnd,el,selfClosed,entityReplacer,domBuilder,parseStack);\r\n * @return end of the elementStartPart(end of elementEndPart for selfClosed el)\r\n */\r\nfunction parseElementStartPart(source,start,el,currentNSMap,entityReplacer,errorHandler){\r\n\tvar attrName;\r\n\tvar value;\r\n\tvar p = ++start;\r\n\tvar s = S_TAG;//status\r\n\twhile(true){\r\n\t\tvar c = source.charAt(p);\r\n\t\tswitch(c){\r\n\t\tcase '=':\r\n\t\t\tif(s === S_ATTR){//attrName\r\n\t\t\t\tattrName = source.slice(start,p);\r\n\t\t\t\ts = S_EQ;\r\n\t\t\t}else if(s === S_ATTR_SPACE){\r\n\t\t\t\ts = S_EQ;\r\n\t\t\t}else{\r\n\t\t\t\t//fatalError: equal must after attrName or space after attrName\r\n\t\t\t\tthrow new Error('attribute equal must after attrName');\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase '\\'':\r\n\t\tcase '\"':\r\n\t\t\tif(s === S_EQ || s === S_ATTR //|| s == S_ATTR_SPACE\r\n\t\t\t\t){//equal\r\n\t\t\t\tif(s === S_ATTR){\r\n\t\t\t\t\terrorHandler.warning('attribute value must after \"=\"')\r\n\t\t\t\t\tattrName = source.slice(start,p)\r\n\t\t\t\t}\r\n\t\t\t\tstart = p+1;\r\n\t\t\t\tp = source.indexOf(c,start)\r\n\t\t\t\tif(p>0){\r\n\t\t\t\t\tvalue = source.slice(start,p).replace(/&#?\\w+;/g,entityReplacer);\r\n\t\t\t\t\tel.add(attrName,value,start-1);\r\n\t\t\t\t\ts = S_ATTR_END;\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//fatalError: no end quot match\r\n\t\t\t\t\tthrow new Error('attribute value no end \\''+c+'\\' match');\r\n\t\t\t\t}\r\n\t\t\t}else if(s == S_ATTR_NOQUOT_VALUE){\r\n\t\t\t\tvalue = source.slice(start,p).replace(/&#?\\w+;/g,entityReplacer);\r\n\t\t\t\t//console.log(attrName,value,start,p)\r\n\t\t\t\tel.add(attrName,value,start);\r\n\t\t\t\t//console.dir(el)\r\n\t\t\t\terrorHandler.warning('attribute \"'+attrName+'\" missed start quot('+c+')!!');\r\n\t\t\t\tstart = p+1;\r\n\t\t\t\ts = S_ATTR_END\r\n\t\t\t}else{\r\n\t\t\t\t//fatalError: no equal before\r\n\t\t\t\tthrow new Error('attribute value must after \"=\"');\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase '/':\r\n\t\t\tswitch(s){\r\n\t\t\tcase S_TAG:\r\n\t\t\t\tel.setTagName(source.slice(start,p));\r\n\t\t\tcase S_ATTR_END:\r\n\t\t\tcase S_TAG_SPACE:\r\n\t\t\tcase S_TAG_CLOSE:\r\n\t\t\t\ts =S_TAG_CLOSE;\r\n\t\t\t\tel.closed = true;\r\n\t\t\tcase S_ATTR_NOQUOT_VALUE:\r\n\t\t\tcase S_ATTR:\r\n\t\t\tcase S_ATTR_SPACE:\r\n\t\t\t\tbreak;\r\n\t\t\t//case S_EQ:\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new Error(\"attribute invalid close char('/')\")\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase ''://end document\r\n\t\t\t//throw new Error('unexpected end of input')\r\n\t\t\terrorHandler.error('unexpected end of input');\r\n\t\t\tif(s == S_TAG){\r\n\t\t\t\tel.setTagName(source.slice(start,p));\r\n\t\t\t}\r\n\t\t\treturn p;\r\n\t\tcase '>':\r\n\t\t\tswitch(s){\r\n\t\t\tcase S_TAG:\r\n\t\t\t\tel.setTagName(source.slice(start,p));\r\n\t\t\tcase S_ATTR_END:\r\n\t\t\tcase S_TAG_SPACE:\r\n\t\t\tcase S_TAG_CLOSE:\r\n\t\t\t\tbreak;//normal\r\n\t\t\tcase S_ATTR_NOQUOT_VALUE://Compatible state\r\n\t\t\tcase S_ATTR:\r\n\t\t\t\tvalue = source.slice(start,p);\r\n\t\t\t\tif(value.slice(-1) === '/'){\r\n\t\t\t\t\tel.closed = true;\r\n\t\t\t\t\tvalue = value.slice(0,-1)\r\n\t\t\t\t}\r\n\t\t\tcase S_ATTR_SPACE:\r\n\t\t\t\tif(s === S_ATTR_SPACE){\r\n\t\t\t\t\tvalue = attrName;\r\n\t\t\t\t}\r\n\t\t\t\tif(s == S_ATTR_NOQUOT_VALUE){\r\n\t\t\t\t\terrorHandler.warning('attribute \"'+value+'\" missed quot(\")!!');\r\n\t\t\t\t\tel.add(attrName,value.replace(/&#?\\w+;/g,entityReplacer),start)\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(currentNSMap[''] !== 'http://www.w3.org/1999/xhtml' || !value.match(/^(?:disabled|checked|selected)$/i)){\r\n\t\t\t\t\t\terrorHandler.warning('attribute \"'+value+'\" missed value!! \"'+value+'\" instead!!')\r\n\t\t\t\t\t}\r\n\t\t\t\t\tel.add(value,value,start)\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase S_EQ:\r\n\t\t\t\tthrow new Error('attribute value missed!!');\r\n\t\t\t}\r\n//\t\t\tconsole.log(tagName,tagNamePattern,tagNamePattern.test(tagName))\r\n\t\t\treturn p;\r\n\t\t/*xml space '\\x20' | #x9 | #xD | #xA; */\r\n\t\tcase '\\u0080':\r\n\t\t\tc = ' ';\r\n\t\tdefault:\r\n\t\t\tif(c<= ' '){//space\r\n\t\t\t\tswitch(s){\r\n\t\t\t\tcase S_TAG:\r\n\t\t\t\t\tel.setTagName(source.slice(start,p));//tagName\r\n\t\t\t\t\ts = S_TAG_SPACE;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase S_ATTR:\r\n\t\t\t\t\tattrName = source.slice(start,p)\r\n\t\t\t\t\ts = S_ATTR_SPACE;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase S_ATTR_NOQUOT_VALUE:\r\n\t\t\t\t\tvar value = source.slice(start,p).replace(/&#?\\w+;/g,entityReplacer);\r\n\t\t\t\t\terrorHandler.warning('attribute \"'+value+'\" missed quot(\")!!');\r\n\t\t\t\t\tel.add(attrName,value,start)\r\n\t\t\t\tcase S_ATTR_END:\r\n\t\t\t\t\ts = S_TAG_SPACE;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t//case S_TAG_SPACE:\r\n\t\t\t\t//case S_EQ:\r\n\t\t\t\t//case S_ATTR_SPACE:\r\n\t\t\t\t//\tvoid();break;\r\n\t\t\t\t//case S_TAG_CLOSE:\r\n\t\t\t\t\t//ignore warning\r\n\t\t\t\t}\r\n\t\t\t}else{//not space\r\n//S_TAG,\tS_ATTR,\tS_EQ,\tS_ATTR_NOQUOT_VALUE\r\n//S_ATTR_SPACE,\tS_ATTR_END,\tS_TAG_SPACE, S_TAG_CLOSE\r\n\t\t\t\tswitch(s){\r\n\t\t\t\t//case S_TAG:void();break;\r\n\t\t\t\t//case S_ATTR:void();break;\r\n\t\t\t\t//case S_ATTR_NOQUOT_VALUE:void();break;\r\n\t\t\t\tcase S_ATTR_SPACE:\r\n\t\t\t\t\tvar tagName = el.tagName;\r\n\t\t\t\t\tif(currentNSMap[''] !== 'http://www.w3.org/1999/xhtml' || !attrName.match(/^(?:disabled|checked|selected)$/i)){\r\n\t\t\t\t\t\terrorHandler.warning('attribute \"'+attrName+'\" missed value!! \"'+attrName+'\" instead2!!')\r\n\t\t\t\t\t}\r\n\t\t\t\t\tel.add(attrName,attrName,start);\r\n\t\t\t\t\tstart = p;\r\n\t\t\t\t\ts = S_ATTR;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase S_ATTR_END:\r\n\t\t\t\t\terrorHandler.warning('attribute space is required\"'+attrName+'\"!!')\r\n\t\t\t\tcase S_TAG_SPACE:\r\n\t\t\t\t\ts = S_ATTR;\r\n\t\t\t\t\tstart = p;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase S_EQ:\r\n\t\t\t\t\ts = S_ATTR_NOQUOT_VALUE;\r\n\t\t\t\t\tstart = p;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase S_TAG_CLOSE:\r\n\t\t\t\t\tthrow new Error(\"elements closed character '/' and '>' must be connected to\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}//end outer switch\r\n\t\t//console.log('p++',p)\r\n\t\tp++;\r\n\t}\r\n}\r\n/**\r\n * @return true if has new namespace define\r\n */\r\nfunction appendElement(el,domBuilder,currentNSMap){\r\n\tvar tagName = el.tagName;\r\n\tvar localNSMap = null;\r\n\t//var currentNSMap = parseStack[parseStack.length-1].currentNSMap;\r\n\tvar i = el.length;\r\n\twhile(i--){\r\n\t\tvar a = el[i];\r\n\t\tvar qName = a.qName;\r\n\t\tvar value = a.value;\r\n\t\tvar nsp = qName.indexOf(':');\r\n\t\tif(nsp>0){\r\n\t\t\tvar prefix = a.prefix = qName.slice(0,nsp);\r\n\t\t\tvar localName = qName.slice(nsp+1);\r\n\t\t\tvar nsPrefix = prefix === 'xmlns' && localName\r\n\t\t}else{\r\n\t\t\tlocalName = qName;\r\n\t\t\tprefix = null\r\n\t\t\tnsPrefix = qName === 'xmlns' && ''\r\n\t\t}\r\n\t\t//can not set prefix,because prefix !== ''\r\n\t\ta.localName = localName ;\r\n\t\t//prefix == null for no ns prefix attribute \r\n\t\tif(nsPrefix !== false){//hack!!\r\n\t\t\tif(localNSMap == null){\r\n\t\t\t\tlocalNSMap = {}\r\n\t\t\t\t//console.log(currentNSMap,0)\r\n\t\t\t\t_copy(currentNSMap,currentNSMap={})\r\n\t\t\t\t//console.log(currentNSMap,1)\r\n\t\t\t}\r\n\t\t\tcurrentNSMap[nsPrefix] = localNSMap[nsPrefix] = value;\r\n\t\t\ta.uri = 'http://www.w3.org/2000/xmlns/'\r\n\t\t\tdomBuilder.startPrefixMapping(nsPrefix, value) \r\n\t\t}\r\n\t}\r\n\tvar i = el.length;\r\n\twhile(i--){\r\n\t\ta = el[i];\r\n\t\tvar prefix = a.prefix;\r\n\t\tif(prefix){//no prefix attribute has no namespace\r\n\t\t\tif(prefix === 'xml'){\r\n\t\t\t\ta.uri = 'http://www.w3.org/XML/1998/namespace';\r\n\t\t\t}if(prefix !== 'xmlns'){\r\n\t\t\t\ta.uri = currentNSMap[prefix || '']\r\n\t\t\t\t\r\n\t\t\t\t//{console.log('###'+a.qName,domBuilder.locator.systemId+'',currentNSMap,a.uri)}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tvar nsp = tagName.indexOf(':');\r\n\tif(nsp>0){\r\n\t\tprefix = el.prefix = tagName.slice(0,nsp);\r\n\t\tlocalName = el.localName = tagName.slice(nsp+1);\r\n\t}else{\r\n\t\tprefix = null;//important!!\r\n\t\tlocalName = el.localName = tagName;\r\n\t}\r\n\t//no prefix element has default namespace\r\n\tvar ns = el.uri = currentNSMap[prefix || ''];\r\n\tdomBuilder.startElement(ns,localName,tagName,el);\r\n\t//endPrefixMapping and startPrefixMapping have not any help for dom builder\r\n\t//localNSMap = null\r\n\tif(el.closed){\r\n\t\tdomBuilder.endElement(ns,localName,tagName);\r\n\t\tif(localNSMap){\r\n\t\t\tfor(prefix in localNSMap){\r\n\t\t\t\tdomBuilder.endPrefixMapping(prefix) \r\n\t\t\t}\r\n\t\t}\r\n\t}else{\r\n\t\tel.currentNSMap = currentNSMap;\r\n\t\tel.localNSMap = localNSMap;\r\n\t\t//parseStack.push(el);\r\n\t\treturn true;\r\n\t}\r\n}\r\nfunction parseHtmlSpecialContent(source,elStartEnd,tagName,entityReplacer,domBuilder){\r\n\tif(/^(?:script|textarea)$/i.test(tagName)){\r\n\t\tvar elEndStart = source.indexOf('</'+tagName+'>',elStartEnd);\r\n\t\tvar text = source.substring(elStartEnd+1,elEndStart);\r\n\t\tif(/[&<]/.test(text)){\r\n\t\t\tif(/^script$/i.test(tagName)){\r\n\t\t\t\t//if(!/\\]\\]>/.test(text)){\r\n\t\t\t\t\t//lexHandler.startCDATA();\r\n\t\t\t\t\tdomBuilder.characters(text,0,text.length);\r\n\t\t\t\t\t//lexHandler.endCDATA();\r\n\t\t\t\t\treturn elEndStart;\r\n\t\t\t\t//}\r\n\t\t\t}//}else{//text area\r\n\t\t\t\ttext = text.replace(/&#?\\w+;/g,entityReplacer);\r\n\t\t\t\tdomBuilder.characters(text,0,text.length);\r\n\t\t\t\treturn elEndStart;\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\treturn elStartEnd+1;\r\n}\r\nfunction fixSelfClosed(source,elStartEnd,tagName,closeMap){\r\n\t//if(tagName in closeMap){\r\n\tvar pos = closeMap[tagName];\r\n\tif(pos == null){\r\n\t\t//console.log(tagName)\r\n\t\tpos = source.lastIndexOf('</'+tagName+'>')\r\n\t\tif(pos<elStartEnd){//忘记闭合\r\n\t\t\tpos = source.lastIndexOf('</'+tagName)\r\n\t\t}\r\n\t\tcloseMap[tagName] =pos\r\n\t}\r\n\treturn pos<elStartEnd;\r\n\t//} \r\n}\r\nfunction _copy(source,target){\r\n\tfor(var n in source){target[n] = source[n]}\r\n}\r\nfunction parseDCC(source,start,domBuilder,errorHandler){//sure start with '<!'\r\n\tvar next= source.charAt(start+2)\r\n\tswitch(next){\r\n\tcase '-':\r\n\t\tif(source.charAt(start + 3) === '-'){\r\n\t\t\tvar end = source.indexOf('-->',start+4);\r\n\t\t\t//append comment source.substring(4,end)//<!--\r\n\t\t\tif(end>start){\r\n\t\t\t\tdomBuilder.comment(source,start+4,end-start-4);\r\n\t\t\t\treturn end+3;\r\n\t\t\t}else{\r\n\t\t\t\terrorHandler.error(\"Unclosed comment\");\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t//error\r\n\t\t\treturn -1;\r\n\t\t}\r\n\tdefault:\r\n\t\tif(source.substr(start+3,6) == 'CDATA['){\r\n\t\t\tvar end = source.indexOf(']]>',start+9);\r\n\t\t\tdomBuilder.startCDATA();\r\n\t\t\tdomBuilder.characters(source,start+9,end-start-9);\r\n\t\t\tdomBuilder.endCDATA() \r\n\t\t\treturn end+3;\r\n\t\t}\r\n\t\t//<!DOCTYPE\r\n\t\t//startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) \r\n\t\tvar matchs = split(source,start);\r\n\t\tvar len = matchs.length;\r\n\t\tif(len>1 && /!doctype/i.test(matchs[0][0])){\r\n\t\t\tvar name = matchs[1][0];\r\n\t\t\tvar pubid = len>3 && /^public$/i.test(matchs[2][0]) && matchs[3][0]\r\n\t\t\tvar sysid = len>4 && matchs[4][0];\r\n\t\t\tvar lastMatch = matchs[len-1]\r\n\t\t\tdomBuilder.startDTD(name,pubid && pubid.replace(/^(['\"])(.*?)\\1$/,'$2'),\r\n\t\t\t\t\tsysid && sysid.replace(/^(['\"])(.*?)\\1$/,'$2'));\r\n\t\t\tdomBuilder.endDTD();\r\n\t\t\t\r\n\t\t\treturn lastMatch.index+lastMatch[0].length\r\n\t\t}\r\n\t}\r\n\treturn -1;\r\n}\r\n\r\n\r\n\r\nfunction parseInstruction(source,start,domBuilder){\r\n\tvar end = source.indexOf('?>',start);\r\n\tif(end){\r\n\t\tvar match = source.substring(start,end).match(/^<\\?(\\S*)\\s*([\\s\\S]*?)\\s*$/);\r\n\t\tif(match){\r\n\t\t\tvar len = match[0].length;\r\n\t\t\tdomBuilder.processingInstruction(match[1], match[2]) ;\r\n\t\t\treturn end+2;\r\n\t\t}else{//error\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}\r\n\treturn -1;\r\n}\r\n\r\n/**\r\n * @param source\r\n */\r\nfunction ElementAttributes(source){\r\n\t\r\n}\r\nElementAttributes.prototype = {\r\n\tsetTagName:function(tagName){\r\n\t\tif(!tagNamePattern.test(tagName)){\r\n\t\t\tthrow new Error('invalid tagName:'+tagName)\r\n\t\t}\r\n\t\tthis.tagName = tagName\r\n\t},\r\n\tadd:function(qName,value,offset){\r\n\t\tif(!tagNamePattern.test(qName)){\r\n\t\t\tthrow new Error('invalid attribute:'+qName)\r\n\t\t}\r\n\t\tthis[this.length++] = {qName:qName,value:value,offset:offset}\r\n\t},\r\n\tlength:0,\r\n\tgetLocalName:function(i){return this[i].localName},\r\n\tgetLocator:function(i){return this[i].locator},\r\n\tgetQName:function(i){return this[i].qName},\r\n\tgetURI:function(i){return this[i].uri},\r\n\tgetValue:function(i){return this[i].value}\r\n//\t,getIndex:function(uri, localName)){\r\n//\t\tif(localName){\r\n//\t\t\t\r\n//\t\t}else{\r\n//\t\t\tvar qName = uri\r\n//\t\t}\r\n//\t},\r\n//\tgetValue:function(){return this.getValue(this.getIndex.apply(this,arguments))},\r\n//\tgetType:function(uri,localName){}\r\n//\tgetType:function(i){},\r\n}\r\n\r\n\r\n\r\n\r\nfunction _set_proto_(thiz,parent){\r\n\tthiz.__proto__ = parent;\r\n\treturn thiz;\r\n}\r\nif(!(_set_proto_({},_set_proto_.prototype) instanceof _set_proto_)){\r\n\t_set_proto_ = function(thiz,parent){\r\n\t\tfunction p(){};\r\n\t\tp.prototype = parent;\r\n\t\tp = new p();\r\n\t\tfor(parent in thiz){\r\n\t\t\tp[parent] = thiz[parent];\r\n\t\t}\r\n\t\treturn p;\r\n\t}\r\n}\r\n\r\nfunction split(source,start){\r\n\tvar match;\r\n\tvar buf = [];\r\n\tvar reg = /'[^']+'|\"[^\"]+\"|[^\\s<>\\/=]+=?|(\\/?\\s*>|<)/g;\r\n\treg.lastIndex = start;\r\n\treg.exec(source);//skip <\r\n\twhile(match = reg.exec(source)){\r\n\t\tbuf.push(match);\r\n\t\tif(match[1])return buf;\r\n\t}\r\n}\r\n\r\nexports.XMLReader = XMLReader;\r\n\r\n\n\n/***/ }),\n\n/***/ \"./src/Canvas.js\":\n/*!***********************!*\\\n !*** ./src/Canvas.js ***!\n \\***********************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /**\r\n * @class draw2d.Canvas\r\n * Interactive paint area of the draw2d library.\r\n * <br>\r\n * <strong>Usage</strong>\r\n *\r\n *\r\n * $(window).load(function () {\r\n *\r\n * let canvas = new draw2d.Canvas(\"gfx_holder\");\r\n *\r\n * let figure1 = new draw2d.shape.basic.Oval();\r\n * let figure2 = new draw2d.shape.basic.Rectangle();\r\n * canvas.add(figure1,100,100);\r\n * canvas.add(figure2,120,150);\r\n * });\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n */\n\n\n_packages2.default.Canvas = Class.extend({\n NAME: \"draw2d.Canvas\",\n\n /**\r\n * @constructor\r\n * Create a new canvas with the given HTML DOM references.\r\n *\r\n * @param {String} canvasId the id of the DOM element to use a parent container\r\n */\n init: function init(canvasId, width, height) {\n var _this = this;\n\n this.setScrollArea(document.body);\n this.canvasId = canvasId;\n this.html = $(\"#\" + canvasId);\n this.html.css({ \"cursor\": \"default\" });\n if (!isNaN(parseFloat(width)) && !isNaN(parseFloat(height))) {\n this.initialWidth = width;\n this.initialHeight = height;\n } else {\n this.initialWidth = this.getWidth();\n this.initialHeight = this.getHeight();\n }\n\n // avoid the \"highlighting\" in iPad, iPhone if the user tab/touch on the canvas.\n // .... I didn't like this.\n this.html.css({ \"-webkit-tap-highlight-color\": \"rgba(0,0,0,0)\" });\n\n // Drag&Drop handling from foreign DIV into the Canvas\n // Only available in combination with jQuery-UI\n //\n // Create the droppable area for the css class \"draw2d_droppable\"\n // This can be done by a palette of toolbar or something else.\n // For more information see : http://jqueryui.com/demos/droppable/\n //\n $(this.html).droppable({\n accept: '.draw2d_droppable',\n over: function over(event, ui) {\n _this.onDragEnter(ui.draggable);\n },\n out: function out(event, ui) {\n _this.onDragLeave(ui.draggable);\n },\n drop: function drop(event, ui) {\n event = _this._getEvent(event);\n var pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.onDrop(ui.draggable, pos.getX(), pos.getY(), event.shiftKey, event.ctrlKey);\n }\n });\n\n // Create the jQuery-Draggable for the palette -> canvas drag&drop interaction\n //\n $(\".draw2d_droppable\").draggable({\n appendTo: \"body\",\n stack: \"body\",\n zIndex: 27000,\n helper: \"clone\",\n drag: function drag(event, ui) {\n event = _this._getEvent(event);\n var pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.onDrag(ui.draggable, pos.getX(), pos.getY(), event.shiftKey, event.ctrlKey);\n },\n stop: function stop(e, ui) {},\n start: function start(e, ui) {\n $(ui.helper).addClass(\"shadow\");\n }\n });\n\n // painting stuff\n //\n if (!isNaN(parseFloat(height))) {\n this.paper = Raphael(canvasId, width, height);\n } else {\n this.paper = Raphael(canvasId, this.getWidth(), this.getHeight());\n }\n this.paper.canvas.style.position = \"absolute\";\n\n // Status handling\n //\n this.zoomPolicy = null; // default ZoomEditPolicy\n this.zoomFactor = 1.0; // range [0.001..10]\n this.selection = new _packages2.default.Selection();\n this.currentDropTarget = null;\n this.currentHoverFigure = null;\n\n // installed to all added figures to avoid that a figure can be placed outside the canvas area\n // during a drag&drop operation\n this.regionDragDropConstraint = new _packages2.default.policy.figure.RegionEditPolicy(0, 0, this.getWidth(), this.getHeight());\n\n // event handling since version 5.0.0\n this.eventSubscriptions = {};\n\n this.editPolicy = new _packages2.default.util.ArrayList();\n\n // internal document with all figures, ports, ....\n //\n this.figures = new _packages2.default.util.ArrayList();\n this.lines = new _packages2.default.util.ArrayList(); // crap - why are connections not just figures. Design by accident\n this.commonPorts = new _packages2.default.util.ArrayList();\n\n // all visible resize handles which can be drag&drop around. Selection handles like AntRectangleSelectionFeedback\n // are not part of this collection. Required for hitTest only\n this.resizeHandles = new _packages2.default.util.ArrayList();\n\n // The CommandStack for undo/redo operations\n //\n this.commandStack = new _packages2.default.command.CommandStack();\n\n // INTERSECTION/CROSSING handling for connections and lines\n //\n this.linesToRepaintAfterDragDrop = new _packages2.default.util.ArrayList();\n this.lineIntersections = new _packages2.default.util.ArrayList();\n\n // alternative/legacy zoom implementation\n // this.installEditPolicy( new draw2d.policy.canvas.ZoomPolicy()); // Responsible for zooming\n this.installEditPolicy(new _packages2.default.policy.canvas.WheelZoomPolicy()); // Responsible for zooming with mouse wheel\n this.installEditPolicy(new _packages2.default.policy.canvas.DefaultKeyboardPolicy()); // Handles the keyboard interaction\n this.installEditPolicy(new _packages2.default.policy.canvas.BoundingboxSelectionPolicy()); // Responsible for selection handling\n this.installEditPolicy(new _packages2.default.policy.canvas.DropInterceptorPolicy()); // Responsible for drop operations\n this.installEditPolicy(new _packages2.default.policy.connection.ComposedConnectionCreatePolicy( // Responsible for connection creation....\n [new _packages2.default.policy.connection.DragConnectionCreatePolicy(), // ....via drag/´drop\n new _packages2.default.policy.connection.ClickConnectionCreatePolicy() // or clicking on the ports and canvas.\n ]));\n\n // Calculate all intersection between the different lines\n //\n this.commandStack.addEventListener(function (event) {\n if (event.isPostChangeEvent() === true) {\n _this.calculateConnectionIntersection();\n _this.linesToRepaintAfterDragDrop.each(function (i, line) {\n line.svgPathString = null;\n line.repaint();\n });\n _this.linesToRepaintAfterDragDrop = new _packages2.default.util.ArrayList();\n }\n });\n\n // DragDrop status handling\n //\n this.mouseDown = false;\n this.mouseDownX = 0;\n this.mouseDownY = 0;\n this.mouseDragDiffX = 0;\n this.mouseDragDiffY = 0;\n\n this.html.bind(\"mouseup touchend\", function (event) {\n if (_this.mouseDown === false) {\n return;\n }\n\n event = _this._getEvent(event);\n _this.calculateConnectionIntersection();\n\n _this.mouseDown = false;\n var pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.editPolicy.each(function (i, policy) {\n policy.onMouseUp(_this, pos.x, pos.y, event.shiftKey, event.ctrlKey);\n });\n\n _this.mouseDragDiffX = 0;\n _this.mouseDragDiffY = 0;\n });\n\n this.html.bind(\"mousemove touchmove\", function (event) {\n event = _this._getEvent(event);\n var pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n if (_this.mouseDown === false) {\n // mouseEnter/mouseLeave events for Figures. Don't use the Raphael or DOM native functions.\n // Raphael didn't work for Rectangle with transparent fill (events only fired for the border line)\n // DOM didn't work well for lines. No eclipse area - you must hit the line exact to retrieve the event.\n // In this case I implement my own stuff...again and again.\n //\n // don't break the main event loop if one element fires an error during enter/leave event.\n try {\n var hover = _this.getBestFigure(pos.x, pos.y);\n if (hover !== _this.currentHoverFigure && _this.currentHoverFigure !== null) {\n _this.currentHoverFigure.onMouseLeave(); // deprecated\n _this.currentHoverFigure.fireEvent(\"mouseleave\");\n _this.fireEvent(\"mouseleave\", { figure: _this.currentHoverFigure });\n }\n if (hover !== _this.currentHoverFigure && hover !== null) {\n hover.onMouseEnter();\n hover.fireEvent(\"mouseenter\");\n _this.fireEvent(\"mouseenter\", { figure: hover });\n }\n _this.currentHoverFigure = hover;\n } catch (exc) {\n // just write it to the console\n console.log(exc);\n }\n\n _this.editPolicy.each(function (i, policy) {\n policy.onMouseMove(_this, pos.x, pos.y, event.shiftKey, event.ctrlKey);\n });\n _this.fireEvent(\"mousemove\", {\n x: pos.x,\n y: pos.y,\n shiftKey: event.shiftKey,\n ctrlKey: event.ctrlKey,\n hoverFigure: _this.currentHoverFigure\n });\n } else {\n var diffXAbs = (event.clientX - _this.mouseDownX) * _this.zoomFactor;\n var diffYAbs = (event.clientY - _this.mouseDownY) * _this.zoomFactor;\n _this.editPolicy.each(function (i, policy) {\n policy.onMouseDrag(_this, diffXAbs, diffYAbs, diffXAbs - _this.mouseDragDiffX, diffYAbs - _this.mouseDragDiffY, event.shiftKey, event.ctrlKey);\n });\n _this.mouseDragDiffX = diffXAbs;\n _this.mouseDragDiffY = diffYAbs;\n _this.fireEvent(\"mousemove\", {\n x: pos.x,\n y: pos.y,\n shiftKey: event.shiftKey,\n ctrlKey: event.ctrlKey,\n hoverFigure: _this.currentHoverFigure\n });\n }\n });\n\n this.html.bind(\"mousedown touchstart\", function (event) {\n try {\n var pos = null;\n switch (event.which) {\n case 1: //touch pressed\n case 0:\n //Left mouse button pressed\n try {\n event.preventDefault();\n event = _this._getEvent(event);\n _this.mouseDownX = event.clientX;\n _this.mouseDownY = event.clientY;\n _this.mouseDragDiffX = 0;\n _this.mouseDragDiffY = 0;\n pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.mouseDown = true;\n _this.editPolicy.each(function (i, policy) {\n policy.onMouseDown(_this, pos.x, pos.y, event.shiftKey, event.ctrlKey);\n });\n } catch (exc) {\n console.log(exc);\n }\n break;\n case 3:\n //Right mouse button pressed\n event.preventDefault();\n if (typeof event.stopPropagation !== \"undefined\") event.stopPropagation();\n event = _this._getEvent(event);\n pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.onRightMouseDown(pos.x, pos.y, event.shiftKey, event.ctrlKey);\n return false;\n break;\n case 2:\n //Middle mouse button pressed\n break;\n default:\n //You have a strange mouse\n }\n } catch (exc) {\n console.log(exc);\n }\n });\n\n // Catch the dblclick and route them to the Canvas hook.\n //\n this.html.on(\"dblclick\", function (event) {\n event = _this._getEvent(event);\n\n _this.mouseDownX = event.clientX;\n _this.mouseDownY = event.clientY;\n var pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.onDoubleClick(pos.x, pos.y, event.shiftKey, event.ctrlKey);\n });\n\n // Catch the click event and route them to the canvas hook\n //\n this.html.on(\"click\", function (event) {\n event = _this._getEvent(event);\n\n // fire only the click event if we didn't move the mouse (drag&drop)\n //\n if (_this.mouseDownX === event.clientX || _this.mouseDownY === event.clientY) {\n var pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.onClick(pos.x, pos.y, event.shiftKey, event.ctrlKey);\n }\n });\n\n // Important: MozMousePixelScroll is required to prevent 1px scrolling\n // in FF event if we call \"e.preventDefault()\"\n this.html.on('MozMousePixelScroll DOMMouseScroll mousewheel', function (e) {\n var event = _this._getEvent(e);\n var pos = _this.fromDocumentToCanvasCoordinate(event.originalEvent.clientX, event.originalEvent.clientY);\n\n var delta = 0;\n if (e.type == 'mousewheel') {\n delta = e.originalEvent.wheelDelta * -1;\n } else if (e.type == 'DOMMouseScroll') {\n delta = 40 * e.originalEvent.detail;\n }\n\n var returnValue = _this.onMouseWheel(delta, pos.x, pos.y, event.shiftKey, event.ctrlKey);\n\n if (returnValue === false) {\n e.preventDefault();\n }\n });\n\n // Catch the keyUp and CTRL-key and route them to the Canvas hook.\n //\n this.keyupCallback = function (event) {\n // don't initiate the delete command if the event comes from an INPUT field. In this case the user want delete\n // a character in the input field and not the related shape\n var target = $(event.target);\n if (!target.is(\"input\") && !target.is(\"textarea\")) {\n _this.editPolicy.each(function (i, policy) {\n if (policy instanceof _packages2.default.policy.canvas.KeyboardPolicy) {\n policy.onKeyUp(_this, event.keyCode, event.shiftKey, event.ctrlKey);\n }\n });\n }\n };\n $(document).bind(\"keyup\", this.keyupCallback);\n\n // Catch the keyDown and CTRL-key and route them to the Canvas hook.\n //\n this.keydownCallback = function (event) {\n // don't initiate the delete command if the event comes from an INPUT field. In this case the user want delete\n // a character in the input field and not the related shape\n var target = $(event.target);\n if (!target.is(\"input\") && !target.is(\"textarea\")) {\n _this.editPolicy.each(function (i, policy) {\n if (policy instanceof _packages2.default.policy.canvas.KeyboardPolicy) {\n policy.onKeyDown(_this, event.keyCode, event.shiftKey, event.ctrlKey);\n }\n });\n }\n };\n $(document).bind(\"keydown\", this.keydownCallback);\n },\n\n /**\r\n * @method\r\n * Call this method if you didn't need the canvas anymore. The method unregister all even handlers\r\n * and free all resources. The canvas is unusable after this call\r\n *\r\n * @since. 4.7.4\r\n */\n destroy: function destroy() {\n this.clear();\n $(document).unbind(\"keydown\", this.keydownCallback);\n $(document).unbind(\"keyup\", this.keyupCallback);\n // reset the event handlers of the canvas without any notice\n //\n this.eventSubscriptions = {};\n\n try {\n this.paper.remove();\n } catch (exc) {\n // breaks in some ie7 version....don't care about this because ie7/8 isn't a state of the art browser ;-)\n }\n },\n\n /**\r\n * @method\r\n * Reset the canvas and delete all model elements.<br>\r\n * You can now reload another model to the canvas with a {@link draw2d.io.Reader}\r\n *\r\n * @since 1.1.0\r\n */\n clear: function clear() {\n // notice all listener that the canvas will be cleared\n this.fireEvent(\"clear\");\n\n var _this = this;\n\n this.lines.clone().each(function (i, e) {\n _this.remove(e);\n });\n\n this.figures.clone().each(function (i, e) {\n _this.remove(e);\n });\n\n this.zoomFactor = 1.0;\n this.selection.clear();\n this.currentDropTarget = null;\n\n // internal document with all figures, ports, ....\n //\n this.figures = new _packages2.default.util.ArrayList();\n this.lines = new _packages2.default.util.ArrayList();\n this.commonPorts = new _packages2.default.util.ArrayList();\n\n this.commandStack.markSaveLocation();\n\n // INTERSECTION/CROSSING handling for connections and lines\n //\n this.linesToRepaintAfterDragDrop = new _packages2.default.util.ArrayList();\n this.lineIntersections = new _packages2.default.util.ArrayList();\n\n // Inform all listener that the selection has been cleanup. Normally this will be done\n // by the edit policies of the canvas..but exceptional this is done in the clear method as well -\n // Design flaw.\n this.fireEvent(\"select\", { figure: null });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Callback for any kind of image export tools to trigger the canvas to hide all unwanted\r\n * decorations. The method is called e.g. from the draw2d.io.png.Writer\r\n *\r\n * @since 4.0.0\r\n * @template\r\n */\n hideDecoration: function hideDecoration() {},\n\n /**\r\n * @method\r\n * callback method for any image export writer to reactivate the decoration\r\n * of the canvas. e.g. grids, rulers,...\r\n *\r\n *\r\n * @since 4.0.0\r\n * @template\r\n */\n showDecoration: function showDecoration() {},\n\n /**\r\n * @method\r\n * Calculate all connection intersection of the canvas.\r\n * Required for \"bridging\" or \"crossing decoration\"\r\n *\r\n * @private\r\n */\n calculateConnectionIntersection: function calculateConnectionIntersection() {\n var _this2 = this;\n\n this.lineIntersections = new _packages2.default.util.ArrayList();\n var lines = this.getLines().clone();\n\n var _loop = function _loop() {\n var l1 = lines.removeElementAt(0);\n lines.each(function (ii, l2) {\n var partInter = l1.intersection(l2);\n if (partInter.getSize() > 0) {\n _this2.lineIntersections.add({ line: l1, other: l2, intersection: partInter });\n _this2.lineIntersections.add({ line: l2, other: l1, intersection: partInter });\n }\n });\n };\n\n while (lines.getSize() > 0) {\n _loop();\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * Install a new selection and edit policy into the canvas\r\n *\r\n * @since 2.2.0\r\n * @param {draw2d.policy.EditPolicy} policy\r\n */\n installEditPolicy: function installEditPolicy(policy) {\n var _this3 = this;\n\n // a canvas can handle only one selection policy\n //\n if (policy instanceof _packages2.default.policy.canvas.SelectionPolicy) {\n // reset old selection before install new selection strategy\n this.getSelection().getAll().each(function (i, figure) {\n figure.unselect();\n });\n\n // remove existing selection policy\n this.editPolicy.grep(function (p) {\n var stay = !(p instanceof _packages2.default.policy.canvas.SelectionPolicy);\n if (stay === false) {\n p.onUninstall(_this3);\n }\n return stay;\n });\n }\n // only one zoom policy at once\n //\n else if (policy instanceof _packages2.default.policy.canvas.ZoomPolicy) {\n // remove existing zoom policy\n this.editPolicy.grep(function (p) {\n var stay = !(p instanceof _packages2.default.policy.canvas.ZoomPolicy);\n if (stay === false) {\n p.onUninstall(_this3);\n }\n return stay;\n });\n // replace the short cut handle for faster access\n this.zoomPolicy = policy;\n } else if (policy instanceof _packages2.default.policy.connection.ConnectionCreatePolicy) {\n this.editPolicy.grep(function (p) {\n var stay = !(p instanceof _packages2.default.policy.connection.ConnectionCreatePolicy);\n if (stay === false) {\n p.onUninstall(_this3);\n }\n return stay;\n });\n } else if (policy instanceof _packages2.default.policy.canvas.DropInterceptorPolicy) {\n // think about if I allow to install only one drop policy\n }\n\n policy.onInstall(this);\n this.editPolicy.add(policy);\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * UnInstall the selection and edit policy from the canvas.\r\n *\r\n * @since 2.2.0\r\n * @param {draw2d.policy.EditPolicy|String} policy\r\n */\n uninstallEditPolicy: function uninstallEditPolicy(policy) {\n if (policy === null) {\n return; //silently\n }\n\n // either remove exact the policy instance...\n //\n var removed = this.editPolicy.remove(policy);\n if (removed !== null) {\n removed.onUninstall(this);\n if (removed instanceof _packages2.default.policy.canvas.ZoomPolicy) {\n this.zoomPolicy = null;\n }\n } else {\n // ..or all of the same class if the policy isn't installed before\n // With this kind of behaviour it is possible to deinstall all policies with\n // the same class at once\n //\n var _this = this;\n var name = typeof policy === \"string\" ? policy : policy.NAME;\n this.editPolicy.grep(function (p) {\n if (p.NAME === name) {\n p.onUninstall(_this);\n // remove short cut handle to the zoom policy\n if (p instanceof _packages2.default.policy.canvas.ZoomPolicy) {\n _this.zoomPolicy = null;\n }\n return false;\n }\n return true;\n });\n }\n return this;\n },\n\n getDropInterceptorPolicies: function getDropInterceptorPolicies() {\n return this.editPolicy.clone().grep(function (p) {\n return p instanceof _packages2.default.policy.canvas.DropInterceptorPolicy;\n });\n },\n\n /**\r\n * @method\r\n * Set the new zoom factor for the canvas. The value must be between [0.01..10]\r\n *\r\n * // you can register an eventhandler if the zoom factor did change\r\n * canvas.on(\"zoom\", function(emitterFigure, zoomData){\r\n * alert(\"canvas zoomed to:\"+zoomData.factor);\r\n * });\r\n *\r\n * @param {Number} zoomFactor new zoom factor.\r\n * @param {Boolean} [animated] set it to true for smooth zoom in/out\r\n */\n setZoom: function setZoom(zoomFactor, animated) {\n // redirect this legacy method to the new CanvasEditPolicy\n //\n if (this.zoomPolicy) {\n this.zoomPolicy.setZoom(zoomFactor, animated);\n }\n },\n\n /**\r\n * @method\r\n * Return the current zoom factor of the canvas.\r\n *\r\n * @returns {Number}\r\n */\n getZoom: function getZoom() {\n return this.zoomFactor;\n },\n\n /**\r\n * @method\r\n * Return the dimension of the drawing area\r\n *\r\n * @since 4.4.0\r\n * @returns {draw2d.geo.Rectangle}\r\n */\n getDimension: function getDimension() {\n return new _packages2.default.geo.Rectangle(0, 0, this.initialWidth, this.initialHeight);\n },\n\n /**\r\n * @method\r\n * Tells the canvas to resize. If you do not specific any parameters\r\n * the canvas will attempt to determine the height and width by the enclosing bounding box\r\n * of all elements and set the dimension accordingly. If you would like to set the dimension\r\n * explicitly pass in an draw2d.geo.Rectangle or an object with <b>height</b> and <b>width</b> properties.\r\n *\r\n * @since 4.4.0\r\n * @param {draw2d.geo.Rectangle} [dim] the dimension to set or null for autodetect\r\n */\n setDimension: function setDimension(dim, height) {\n if (typeof dim === \"undefined\") {\n var widths = this.getFigures().clone().map(function (f) {\n return f.getAbsoluteX() + f.getWidth();\n });\n var heights = this.getFigures().clone().map(function (f) {\n return f.getAbsoluteY() + f.getHeight();\n });\n this.initialHeight = Math.max.apply(Math, _toConsumableArray(heights.asArray()));\n this.initialWidth = Math.max.apply(Math, _toConsumableArray(widths.asArray()));\n } else if (dim instanceof _packages2.default.geo.Rectangle) {\n this.initialWidth = dim.w;\n this.initialHeight = dim.h;\n } else if (typeof dim.width === \"number\" && typeof dim.height === \"number\") {\n this.initialWidth = dim.width;\n this.initialHeight = dim.height;\n } else if (typeof dim === \"number\" && typeof height === \"number\") {\n this.initialWidth = dim;\n this.initialHeight = height;\n }\n this.html.css({ \"width\": this.initialWidth + \"px\", \"height\": this.initialHeight + \"px\" });\n this.paper.setSize(this.initialWidth, this.initialHeight);\n this.setZoom(this.zoomFactor, false);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Transforms a document coordinate to canvas coordinate.\r\n *\r\n * @param {Number} x the x coordinate relative to the window\r\n * @param {Number} y the y coordinate relative to the window\r\n *\r\n * @returns {draw2d.geo.Point} The coordinate in relation to the canvas [0,0] position\r\n */\n fromDocumentToCanvasCoordinate: function fromDocumentToCanvasCoordinate(x, y) {\n return new _packages2.default.geo.Point((x - this.getAbsoluteX() + this.getScrollLeft()) * this.zoomFactor, (y - this.getAbsoluteY() + this.getScrollTop()) * this.zoomFactor);\n },\n\n /**\r\n * @method\r\n * Transforms a canvas coordinate to document coordinate.\r\n *\r\n * @param {Number} x the x coordinate in the canvas\r\n * @param {Number} y the y coordinate in the canvas\r\n *\r\n * @returns {draw2d.geo.Point} the coordinate in relation to the document [0,0] position\r\n */\n fromCanvasToDocumentCoordinate: function fromCanvasToDocumentCoordinate(x, y) {\n return new _packages2.default.geo.Point(x * (1 / this.zoomFactor) + this.getAbsoluteX() - this.getScrollLeft(), y * (1 / this.zoomFactor) + this.getAbsoluteY() - this.getScrollTop());\n },\n\n /**\r\n * @method\r\n * The DOM host of the canvas\r\n *\r\n * @returns {HTMLElement}\r\n */\n getHtmlContainer: function getHtmlContainer() {\n return this.html;\n },\n\n /**\r\n * @method\r\n * Return a common event object independed if we run on an iPad or desktop.\r\n *\r\n * @param event\r\n * @return\r\n * @private\r\n */\n _getEvent: function _getEvent(event) {\n // check for iPad, Android touch events\n //\n if (typeof event.originalEvent !== \"undefined\") {\n if (event.originalEvent.touches && event.originalEvent.touches.length) {\n return event.originalEvent.touches[0];\n } else if (event.originalEvent.changedTouches && event.originalEvent.changedTouches.length) {\n return event.originalEvent.changedTouches[0];\n }\n }\n return event;\n },\n\n /**\r\n * @method\r\n *\r\n * Set the area which are scrolling the canvas. This can be a jquery selector or\r\n * a jQuery node.\r\n *\r\n * @param {String/HTMLElement} elementSelector\r\n **/\n setScrollArea: function setScrollArea(elementSelector) {\n this.scrollArea = $(elementSelector);\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * return the scrolling area of the canvas. This is jQuery object\r\n *\r\n * @return {JQuery}\r\n **/\n getScrollArea: function getScrollArea() {\n return this.scrollArea;\n },\n\n /**\r\n * @method\r\n * The left scroll position.\r\n *\r\n * @return {Number} the left scroll offset of the canvas\r\n **/\n getScrollLeft: function getScrollLeft() {\n return this.getScrollArea().scrollLeft();\n },\n\n /**\r\n * @method\r\n * The top scroll position\r\n *\r\n * @return {Number} the top scroll offset of the cnavas.\r\n **/\n getScrollTop: function getScrollTop() {\n return this.getScrollArea().scrollTop();\n },\n\n /**\r\n * @method\r\n * Set left scroll position.\r\n *\r\n * @param {Number} left the left scroll offset of the canvas\r\n **/\n setScrollLeft: function setScrollLeft(left) {\n this.getScrollArea().scrollLeft();\n\n return this;\n },\n\n /**\r\n * @method\r\n * set top scroll position\r\n *\r\n * @param {Number} top the top scroll offset of the canvas.\r\n **/\n setScrollTop: function setScrollTop(top) {\n this.getScrollArea().scrollTop();\n\n return this;\n },\n\n /**\r\n * @method\r\n * set the new scroll position of the canvas\r\n *\r\n * @param {Number} top the top scroll offset of the canvas.\r\n * @param {Number} left the left scroll offset of the canvas\r\n * @since 5.8.0\r\n **/\n scrollTo: function scrollTo(top, left) {\n this.getScrollArea().scrollTop(top);\n this.getScrollArea().scrollLeft(left);\n\n return this;\n },\n\n /**\r\n * @method\r\n * The absolute document x offset.\r\n *\r\n * @return {Number}\r\n **/\n getAbsoluteX: function getAbsoluteX() {\n return this.html.offset().left;\n },\n\n /**\r\n * @method\r\n * The absolute document y offset.\r\n *\r\n * @return {Number}\r\n **/\n getAbsoluteY: function getAbsoluteY() {\n return this.html.offset().top;\n },\n\n /**\r\n * @method\r\n * Return the width of the canvas\r\n *\r\n * @return {Number}\r\n **/\n getWidth: function getWidth() {\n return this.html.width();\n },\n\n /**\r\n * @method\r\n * Return the height of the canvas.\r\n *\r\n * @return {Number}\r\n **/\n getHeight: function getHeight() {\n return this.html.height();\n },\n\n /**\r\n * @method\r\n * Add a figure at the given x/y coordinate. This method fires an event.\r\n *\r\n * Example:\r\n *\r\n * canvas.on(\"figure:add\", function(emitter, event){\r\n * alert(\"figure added:\");\r\n * });\r\n *\r\n * // or more general if you want catch all figure related events\r\n * //\r\n * canvas.on(\"figure\", function(emitter, event){\r\n * // use event.figure.getCanvas()===null to determine if the\r\n * // figure part of the canvas\r\n *\r\n * alert(\"figure added or removed:\");\r\n * });\r\n *\r\n * @param {draw2d.Figure} figure The figure to add.\r\n * @param {Number/draw2d.geo.Point} [x] The new x coordinate of the figure or the x/y coordinate if it is an draw2d.geo.Point\r\n * @param {Number} [y] The y position.\r\n **/\n add: function add(figure, x, y) {\n if (figure.getCanvas() === this) {\n return;\n }\n\n if (figure instanceof _packages2.default.shape.basic.Line) {\n this.lines.add(figure);\n this.linesToRepaintAfterDragDrop = this.lines;\n } else {\n this.figures.add(figure);\n if (typeof y !== \"undefined\") {\n figure.setPosition(x, y);\n } else if (typeof x !== \"undefined\") {\n figure.setPosition(x);\n }\n }\n figure.setCanvas(this);\n\n // to avoid drag&drop outside of this canvas\n figure.installEditPolicy(this.regionDragDropConstraint);\n\n // important inital call\n figure.getShapeElement();\n\n // init a repaint of the figure. This enforce that all properties\n // ( color, dim, stroke,...) will be set and pushed to SVG node.\n figure.repaint();\n\n // fire the figure:add event before the \"move\" event and after the figure.repaint() call!\n // - the move event can only be fired if the figure part of the canvas.\n // and in this case the notification event should be fired to the listener before\n this.fireEvent(\"figure:add\", { figure: figure, canvas: this });\n\n // fire the event that the figure is part of the canvas\n figure.fireEvent(\"added\", { figure: figure, canvas: this });\n\n // ...now we can fire the initial move event\n figure.fireEvent(\"move\", { figure: figure, dx: 0, dy: 0 });\n\n // this is only required if the used router requires the crossing information\n // of the connections\n if (figure instanceof _packages2.default.shape.basic.PolyLine) {\n this.calculateConnectionIntersection();\n this.linesToRepaintAfterDragDrop.each(function (i, line) {\n line.svgPathString = null;\n line.repaint();\n });\n this.linesToRepaintAfterDragDrop = new _packages2.default.util.ArrayList();\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove a figure or connection from the Canvas. This method fires an event\r\n * which can be catched.\r\n *\r\n * Example:\r\n *\r\n * canvas.on(\"figure:remove\", function(emitter, event){\r\n * alert(\"figure removed:\");\r\n * });\r\n *\r\n * // or more general if you want catch all figure related events\r\n * //\r\n * canvas.on(\"figure\", function(emitter, event){\r\n * // use event.figure.getCanvas()===null to determine if the\r\n * // figure part of the canvas\r\n *\r\n * alert(\"figure added or removed:\");\r\n * });\r\n *\r\n *\r\n * @param {draw2d.Figure} figure The figure to remove\r\n **/\n remove: function remove(figure) {\n // don't fire events of calll callbacks if the fire isn'T part of this canvas\n //\n if (figure.getCanvas() !== this) {\n return this;\n }\n\n // remove the figure from a selection handler as well and cleanup the\n // selection feedback\n var _this = this;\n if (this.getSelection().contains(figure)) {\n this.editPolicy.each(function (i, policy) {\n if (typeof policy.unselect === \"function\") {\n policy.unselect(_this, figure);\n }\n });\n }\n\n if (figure instanceof _packages2.default.shape.basic.Line) {\n this.lines.remove(figure);\n } else {\n this.figures.remove(figure);\n }\n\n figure.setCanvas(null);\n\n if (figure instanceof _packages2.default.Connection) {\n figure.disconnect();\n }\n\n this.fireEvent(\"figure:remove\", { figure: figure });\n\n figure.fireEvent(\"removed\", { figure: figure, canvas: this });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns all lines/connections in this workflow/canvas.<br>\r\n *\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getLines: function getLines() {\n return this.lines;\n },\n\n /**\r\n * @method\r\n * Returns the internal figures.<br>\r\n *\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getFigures: function getFigures() {\n return this.figures;\n },\n\n /**\r\n * @method\r\n * Returns the line or connection with the given id.\r\n *\r\n * @param {String} id The id of the line.\r\n *\r\n * @return {draw2d.shape.basic.Line}\r\n **/\n getLine: function getLine(id) {\n var count = this.lines.getSize();\n for (var i = 0; i < count; i++) {\n var line = this.lines.get(i);\n if (line.getId() === id) {\n return line;\n }\n }\n return null;\n },\n\n /**\r\n * @method\r\n * Returns the figure with the given id.\r\n *\r\n * @param {String} id The id of the figure.\r\n * @return {draw2d.Figure}\r\n **/\n getFigure: function getFigure(id) {\n var figure = null;\n this.figures.each(function (i, e) {\n if (e.id === id) {\n figure = e;\n return false;\n }\n });\n return figure;\n },\n\n /**\r\n * @method\r\n * Return all intersections draw2d.geo.Point between the given line and all other\r\n * lines in the canvas.\r\n *\r\n * @param {draw2d.shape.basic.Line} line the line for the intersection test\r\n * @return {draw2d.util.ArrayList}\r\n */\n getIntersection: function getIntersection(line) {\n var result = new _packages2.default.util.ArrayList();\n\n this.lineIntersections.each(function (i, entry) {\n if (entry.line === line) {\n entry.intersection.each(function (i, p) {\n result.add({ x: p.x, y: p.y, justTouching: p.justTouching, other: entry.other });\n });\n }\n });\n\n return result;\n },\n\n /**\r\n * @method\r\n * Adjust the coordinate with the installed SnapToHelper.\r\n *\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {draw2d.geo.Point} pos The position to adjust\r\n *\r\n * @return {draw2d.geo.Point} the adjusted position\r\n * @private\r\n **/\n snapToHelper: function snapToHelper(figure, pos) {\n // disable snapToPos if we have sleect more than one element\n // which are currently in Drag&Drop operation\n //\n if (this.getSelection().getSize() > 1) {\n return pos;\n }\n\n var _this = this;\n var orig = pos.clone();\n this.editPolicy.each(function (i, policy) {\n pos = policy.snap(_this, figure, pos, orig);\n });\n\n return pos;\n },\n\n /**\r\n * @method\r\n * Register a port to the canvas. This is required for other ports to find a valid drop target.\r\n *\r\n * @param {draw2d.Port} port The new port which has been added to the Canvas.\r\n **/\n registerPort: function registerPort(port) {\n // All elements have the same drop targets.\n //\n if (!this.commonPorts.contains(port)) {\n this.commonPorts.add(port);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove a port from the internal cnavas registration. Now other ports can't find the\r\n * port anymore as drop target. The port itself is still visible.\r\n *\r\n * @param {draw2d.Port} port The port to unregister as potential drop target\r\n * @private\r\n **/\n unregisterPort: function unregisterPort(port) {\n this.commonPorts.remove(port);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return all ports in the canvas\r\n *\r\n */\n getAllPorts: function getAllPorts() {\n return this.commonPorts;\n },\n\n /**\r\n * @method\r\n * Returns the command stack for the Canvas. Required for undo/redo support.\r\n *\r\n * @return {draw2d.command.CommandStack}\r\n **/\n getCommandStack: function getCommandStack() {\n return this.commandStack;\n },\n\n /**\r\n * @method\r\n * Returns the current selected figure in the Canvas.\r\n *\r\n * @return {draw2d.Figure}\r\n **/\n getPrimarySelection: function getPrimarySelection() {\n return this.selection.getPrimary();\n },\n\n /**\r\n * @method\r\n * Returns the current selection.\r\n *\r\n * @return {draw2d.Selection}\r\n **/\n getSelection: function getSelection() {\n return this.selection;\n },\n\n /**\r\n * @method\r\n * Set the current selected figure or figures in the canvas.<br>\r\n * <br>\r\n * You can hand over a draw2d.util.ArrayList since version 4.8.0 for multiple selection.\r\n *\r\n * @param {draw2d.Figure| draw2d.util.ArrayList} object The figure or list of figures to select.\r\n **/\n setCurrentSelection: function setCurrentSelection(object) {\n var _this4 = this;\n\n // deselect the current selected figures\n //\n // clone the array (getAll) before iterate and modify the initial array\n this.selection.getAll().each(function (i, e) {\n _this4.editPolicy.each(function (i, policy) {\n if (typeof policy.unselect === \"function\") {\n policy.unselect(_this4, e);\n }\n });\n });\n this.addSelection(object);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Add the current figure to the selection. If a single selection policy is installed in the\r\n * canvas the selection before is reseted and the figure is the one and only selection.\r\n *\r\n * @param {draw2d.Figure| draw2d.util.ArrayList} object The figure(s) to add to the selection\r\n * @since 4.6.0\r\n **/\n addSelection: function addSelection(object) {\n var _this = this;\n\n var add = function add(i, figure) {\n _this.editPolicy.each(function (i, policy) {\n if (typeof policy.select === \"function\") {\n policy.select(_this, figure);\n }\n });\n };\n\n if (object instanceof _packages2.default.util.ArrayList) {\n object.each(add);\n } else {\n add(0, object);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the best figure at the location [x,y]. It is a simple hit test. Keep in mind that only visible objects\r\n * are returned.\r\n *\r\n *\r\n * @param {Number} x The x position.\r\n * @param {Number} y The y position.\r\n * @param {draw2d.Figure|Array|Class} [blacklist] The figures or class which should be ignored.\r\n * @param {draw2d.Figure|Array|Class} [whitelist] The figures or class should be considered.\r\n *\r\n * @returns {draw2d.Figure}\r\n **/\n getBestFigure: function getBestFigure(x, y, blacklist, whitelist) {\n if (!Array.isArray(blacklist)) {\n if (blacklist) blacklist = [blacklist];else blacklist = [];\n }\n\n if (!Array.isArray(whitelist)) {\n if (whitelist) whitelist = [whitelist];else whitelist = [];\n }\n\n var result = null;\n var testFigure = null;\n\n var isInList = function isInList(testFigure, list) {\n for (var i = 0, len = list.length; i < len; i++) {\n var considering = list[i];\n if (typeof considering === \"function\") {\n if (testFigure instanceof considering) {\n return true;\n }\n } else if (considering === testFigure || considering.contains(testFigure)) {\n return true;\n }\n }\n return false;\n };\n var isInBlacklist = function isInBlacklist(item) {\n return isInList(item, blacklist);\n };\n // empty whitelist means that every kind of object is allowed\n var isInWhitelist = whitelist.length === 0 ? function () {\n return true;\n } : function (item) {\n return isInList(item, whitelist);\n };\n\n // tool method to check recursive a figure for hitTest\n //\n var checkRecursive = function checkRecursive(children) {\n children.each(function (i, e) {\n var c = e.figure;\n checkRecursive(c.children);\n if (result === null && c.isVisible() && c.hitTest(x, y) && !isInBlacklist(c) && isInWhitelist(c)) {\n result = c;\n }\n return result === null; // break the each-loop if we found an element\n });\n };\n\n // ResizeHandles\n //\n for (var i = 0, len = this.resizeHandles.getSize(); i < len; i++) {\n testFigure = this.resizeHandles.get(i);\n if (testFigure.isVisible() && testFigure.hitTest(x, y) && !isInBlacklist(testFigure) && isInWhitelist(testFigure)) {\n return testFigure;\n }\n }\n\n // Checking ports\n //\n for (var _i = 0, _len = this.commonPorts.getSize(); _i < _len; _i++) {\n var port = this.commonPorts.get(_i);\n // check first a children of the figure\n //\n checkRecursive(port.children);\n\n if (result === null && port.isVisible() && port.hitTest(x, y) && !isInBlacklist(port) && isInWhitelist(port)) {\n result = port;\n }\n\n if (result !== null) {\n return result;\n }\n }\n\n // Check now the common objects.\n // run reverse to aware the z-oder of the figures\n for (var _i2 = this.figures.getSize() - 1; _i2 >= 0; _i2--) {\n var figure = this.figures.get(_i2);\n // check first a children of the figure\n //\n checkRecursive(figure.children);\n\n // ...and the figure itself\n //\n if (result === null && figure.isVisible() && figure.hitTest(x, y) && !isInBlacklist(figure) && isInWhitelist(figure)) {\n result = figure;\n break;\n }\n }\n\n var figureResult = result;\n var childResult = null;\n var lineResult = null;\n result = null;\n\n // Check the children of the lines as well\n // Not selectable/draggable. But should receive onClick/onDoubleClick events\n // as well.\n var count = this.lines.getSize();\n for (var _i3 = 0; _i3 < count; _i3++) {\n var line = this.lines.get(_i3);\n // check first a children of the figure\n //\n checkRecursive(line.children);\n\n if (result !== null) {\n childResult = result;\n break;\n }\n }\n\n lineResult = this.getBestLine(x, y, blacklist, whitelist);\n\n var figureIndex = figureResult !== null ? $(figureResult.shape.node).index() : -1;\n var childIndex = childResult !== null ? $(childResult.shape.node).index() : -1;\n var lineIndex = lineResult !== null ? $(lineResult.shape.node).index() : -1;\n var array = [{ i: figureIndex, f: figureResult }, { i: childIndex, f: childResult }, { i: lineIndex, f: lineResult }];\n array = array.filter(function (e) {\n return e.i !== -1;\n });\n array = array.sort(function (a, b) {\n return b.i - a.i;\n });\n\n //console.log(array)\n if (array.length > 0) {\n result = array[0].f;\n }\n\n return result;\n },\n\n /**\r\n * @method\r\n * Return the line which match the hands over coordinate\r\n *\r\n * @param {Number} x the x-coordinate for the hit test\r\n * @param {Number} y the x-coordinate for the hit test\r\n * @param {draw2d.shape.basic.Line} [lineToIgnore] a possible line which should be ignored for the hit test\r\n *\r\n * @private\r\n * @return {draw2d.shape.basic.Line}\r\n **/\n getBestLine: function getBestLine(x, y, lineToIgnore) {\n if (!Array.isArray(lineToIgnore)) {\n if (lineToIgnore instanceof _packages2.default.Figure) {\n lineToIgnore = [lineToIgnore];\n } else {\n lineToIgnore = [];\n }\n }\n var count = this.lines.getSize();\n\n for (var i = 0; i < count; i++) {\n var line = this.lines.get(i);\n if (line.isVisible() === true && line.hitTest(x, y) === true && $.inArray(line, lineToIgnore) === -1) {\n return line;\n }\n }\n return null;\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag&drop operations.<br>\r\n * Droppable can be setup with:\r\n * <pre>\r\n * $(\".draw2d_droppable\").draggable({\r\n * appendTo:\"#container\",\r\n * stack:\"#container\",\r\n * zIndex: 27000,\r\n * helper:\"clone\",\r\n * start: function(e, ui){$(ui.helper).addClass(\"shadow\");}\r\n * });\r\n * </pre>\r\n * Graphiti use the jQuery draggable/droppable lib. Please inspect\r\n * http://jqueryui.com/demos/droppable/ for further information.\r\n *\r\n * @param {HTMLElement} draggedDomNode The DOM element which is currently dragging\r\n *\r\n * @template\r\n **/\n onDragEnter: function onDragEnter(draggedDomNode) {},\n\n /**\r\n * @method\r\n * Called if the DragDrop object is moving around.<br>\r\n * <br>\r\n * Graphiti use the jQuery draggable/droppable lib. Please inspect\r\n * http://jqueryui.com/demos/droppable/ for further information.\r\n *\r\n * @param {HTMLElement} draggedDomNode The dragged DOM element.\r\n * @param {Number} x the x coordinate of the drag\r\n * @param {Number} y the y coordinate of the drag\r\n *\r\n * @template\r\n **/\n onDrag: function onDrag(draggedDomNode, x, y) {},\n\n /**\r\n * @method\r\n * Called if the DragDrop object leaving the current hover figure.<br>\r\n * <br>\r\n * Graphiti use the jQuery draggable/droppable lib. Please inspect\r\n * http://jqueryui.com/demos/droppable/ for further information.\r\n *\r\n * @param {HTMLElement} draggedDomNode The figure which is currently dragging\r\n *\r\n * @template\r\n **/\n onDragLeave: function onDragLeave(draggedDomNode) {},\n\n /**\r\n * @method\r\n * Called if the user drop the droppedDomNode onto the canvas.<br>\r\n * <br>\r\n * Draw2D use the jQuery draggable/droppable lib. Please inspect\r\n * http://jqueryui.com/demos/droppable/ for further information.\r\n *\r\n * @param {HTMLElement} droppedDomNode The dropped DOM element.\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @template\r\n **/\n onDrop: function onDrop(droppedDomNode, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Callback method for the double click event. The x/y coordinates are relative to the top left\r\n * corner of the canvas.\r\n *\r\n * @private\r\n **/\n onDoubleClick: function onDoubleClick(x, y, shiftKey, ctrlKey) {\n // check if a line has been hit\n //\n var figure = this.getBestFigure(x, y);\n\n // or a line/connection. May we should test the line before a figure..?\n // (since 4.0.0)\n if (figure === null) {\n figure = this.getBestLine(x, y);\n }\n\n this.fireEvent(\"dblclick\", { figure: figure, x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n // forward the event to all install policies as well.\n // (since 4.0.0)\n this.editPolicy.each(function (i, policy) {\n policy.onDoubleClick(figure, x, y, shiftKey, ctrlKey);\n });\n },\n\n /**\r\n *\r\n * @param {Number} x the x coordinate of the event\r\n * @param {Number} y the y coordinate of the event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onClick: function onClick(x, y, shiftKey, ctrlKey) {\n // check if a figure has been hit\n //\n var figure = this.getBestFigure(x, y);\n\n this.fireEvent(\"click\", {\n figure: figure,\n x: x,\n y: y,\n relX: figure !== null ? x - figure.getAbsoluteX() : 0,\n relY: figure !== null ? y - figure.getAbsoluteY() : 0,\n shiftKey: shiftKey,\n ctrlKey: ctrlKey\n });\n\n // forward the event to all install policies as well.\n // (since 3.0.0)\n this.editPolicy.each(function (i, policy) {\n policy.onClick(figure, x, y, shiftKey, ctrlKey);\n });\n },\n\n /**\r\n * @method\r\n * The user has triggered a right click. Redirect them to a responsible figure.\r\n *\r\n * @param {Number} x The x-coordinate of the click\r\n * @param {Number} y The y-coordinate of the click\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @private\r\n * @since 1.1.0\r\n **/\n onRightMouseDown: function onRightMouseDown(x, y, shiftKey, ctrlKey) {\n var figure = this.getBestFigure(x, y);\n this.fireEvent(\"contextmenu\", { figure: figure, x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n if (figure !== null) {\n figure.fireEvent(\"contextmenu\", { figure: figure, x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n // @deprecated legacy call\n figure.onContextMenu(x, y);\n\n // forward the event to all installed policies of the figure\n // soft migration from onHookXYZ to Policies.\n // since 4.4.0\n figure.editPolicy.each(function (i, policy) {\n policy.onRightMouseDown(figure, x, y, shiftKey, ctrlKey);\n });\n }\n\n // forward the event to all install policies as well.\n // (since 4.4.0)\n this.editPolicy.each(function (i, policy) {\n policy.onRightMouseDown(figure, x, y, shiftKey, ctrlKey);\n });\n },\n\n /**\r\n *\r\n * @param {Number} wheelDelta the delata of the wheel rotation\r\n * @param {Number} x the x coordinate of the event\r\n * @param {Number} y the y coordinate of the event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onMouseWheel: function onMouseWheel(wheelDelta, x, y, shiftKey, ctrlKey) {\n var returnValue = true;\n this.fireEvent(\"wheel\", { wheelDelta: wheelDelta, x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n // forward the event to all install policies as well.\n // (since 3.0.0)\n this.editPolicy.each(function (i, policy) {\n returnValue = policy.onMouseWheel(wheelDelta, x, y, shiftKey, ctrlKey) && returnValue;\n });\n\n return returnValue;\n },\n\n // NEW EVENT HANDLING SINCE VERSION 5.0.0\n /**\r\n * @method\r\n * Execute all handlers and behaviors attached to the canvas for the given event type.\r\n *\r\n *\r\n * @param {String} event the event to trigger\r\n * @param {Object} [args] optional parameters for the triggered event callback\r\n *\r\n * @since 5.0.0\r\n */\n fireEvent: function fireEvent(event, args) {\n if (typeof this.eventSubscriptions[event] === 'undefined') {\n return;\n }\n\n var subscribers = this.eventSubscriptions[event];\n for (var i = 0; i < subscribers.length; i++) {\n try {\n subscribers[i](this, args);\n } catch (exc) {\n console.log(exc);\n console.log(subscribers[i]);\n debugger;\n }\n }\n },\n\n /**\r\n * @method\r\n * Attach an event handler function for one or more events to the canvas.\r\n * To remove events bound with .on(), see {@link #off}.\r\n *\r\n * possible events are:<br>\r\n * <ul>\r\n * <li>reset</li>\r\n * <li>select</li>\r\n * </ul>\r\n *\r\n * Example:\r\n *\r\n * canvas.on(\"clear\", function(emitter, event){\r\n * alert(\"canvas.clear() called.\");\r\n * });\r\n *\r\n * canvas.on(\"select\", function(emitter,event){\r\n * if(event.figure!==null){\r\n * alert(\"figure selected\");\r\n * }\r\n * else{\r\n * alert(\"selection cleared\");\r\n * }\r\n * });\r\n *\r\n * @param {String} event One or more space-separated event types\r\n * @param {Function} callback A function to execute when the event is triggered.\r\n * @param {draw2d.Canvas} callback.emitter the emitter of the event\r\n * @param {Object} [callback.obj] optional event related data\r\n *\r\n * @since 5.0.0\r\n */\n on: function on(event, callback) {\n var events = event.split(\" \");\n for (var i = 0; i < events.length; i++) {\n if (typeof this.eventSubscriptions[events[i]] === 'undefined') {\n this.eventSubscriptions[events[i]] = [];\n }\n this.eventSubscriptions[events[i]].push(callback);\n }\n return this;\n },\n\n /**\r\n * @method\r\n * The .off() method removes event handlers that were attached with {@link #on}.<br>\r\n * Calling .off() with no arguments removes all handlers attached to the canvas.<br>\r\n * <br>\r\n * If a simple event name such as \"reset\" is provided, all events of that type are removed from the canvas.\r\n *\r\n *\r\n * @param {String|Function} eventOrFunction the event name of the registerd function\r\n * @since 5.0.0\r\n */\n off: function off(eventOrFunction) {\n if (typeof eventOrFunction === \"undefined\") {\n this.eventSubscriptions = {};\n } else if (typeof eventOrFunction === 'string') {\n this.eventSubscriptions[eventOrFunction] = [];\n } else {\n for (var event in this.eventSubscriptions) {\n this.eventSubscriptions[event] = this.eventSubscriptions[event].filter(function (callback) {\n return callback !== eventOrFunction;\n });\n }\n }\n\n return this;\n }\n});\n\n/***/ }),\n\n/***/ \"./src/Configuration.js\":\n/*!******************************!*\\\n !*** ./src/Configuration.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.Configuration = {\n version: \"@VERSION@\",\n i18n: {\n command: {\n move: \"Move Shape\",\n assignShape: \"Add Shapes to Composite\",\n groupShapes: \"Group Shapes\",\n ungroupShapes: \"Ungroup Shapes\",\n deleteShape: \"Delete Shape\",\n moveShape: \"Move Shape\",\n moveLine: \"Move Line\",\n addShape: \"Add Shape\",\n moveVertex: \"Move Vertex\",\n moveVertices: \"Move Vertices\",\n deleteVertex: \"Delete Vertex\",\n resizeShape: \"Resize Shape\",\n rotateShape: \"Rotate Shape\",\n collection: \"Execute Commands\",\n addVertex: \"Add Vertex\",\n changeAttributes: \"Change Attributes\",\n connectPorts: \"Connect Ports\"\n },\n menu: {\n deleteSegment: \"Delete Segment\",\n addSegment: \"Add Segment\"\n },\n dialog: {\n filenamePrompt: \"Enter Filename:\"\n }\n },\n\n factory: {\n // all selection policies calles this method to create a ResizeHandle.\n // It is possible to replace this method with a custom implementation\n // @since 5.2.0\n createResizeHandle: function createResizeHandle(owner, type, width, height) {\n // create a custom SelectionPolicy instead\n console.log(\"deprecated call factory.createResizeHandle\");\n\n return new _packages2.default.ResizeHandle({ owner: owner, type: type, width: width, height: height });\n },\n // The commands an canvas calles this method to create a new connection.\n // all parameters are optional.\n // @since 5.3.0\n // @deprecated\n createConnection: function createConnection(sourcePort, targetPort, callback, dropTarget) {\n console.log(\"deprecated call factory.createConnection\");\n debugger;\n return new _packages2.default.Connection();\n },\n // @since 5.3.0\n createInputPort: function createInputPort(relatedFigure) {\n return new _packages2.default.InputPort();\n },\n // @since 5.3.0\n createOutputPort: function createOutputPort(relatedFigure) {\n return new _packages2.default.OutputPort();\n },\n // @since 5.3.0\n createHybridPort: function createHybridPort(relatedFigure) {\n return new _packages2.default.HybridPort();\n }\n }\n};\n\n/***/ }),\n\n/***/ \"./src/Connection.js\":\n/*!***************************!*\\\n !*** ./src/Connection.js ***!\n \\***************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.Connection\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start();\r\n * var end = new draw2d.shape.node.End();\r\n\r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * var c = new draw2d.Connection();\r\n *\r\n * // Set the endpoint decorations for the connection\r\n * //\r\n * c.setSourceDecorator(new draw2d.decoration.connection.BarDecorator());\r\n * c.setTargetDecorator(new draw2d.decoration.connection.DiamondDecorator());\r\n * // Connect the endpoints with the start and end port\r\n * //\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n * Connections figures are used to display a line between two points. The Connection interface extends\r\n * {@link draw2d.shape.basic.PolyLine PolyLine}.<br>\r\n * The source and target endpoints of a connection are each defined using a {@link draw2d.layout.anchor.ConnectionAnchor ConnectionAnchor}.\r\n * These endpoints, along with any other points on the connection, are set by the connection's {@link draw2d.layout.connection.ConnectionRouter ConnectionRouter}.\r\n * <br>\r\n * Usually every connection in a drawing has the same router instance. Connections with\r\n * common endpoints can share anchor instances as well.\r\n *\r\n * <h2>Connection Usage</h2>\r\n *\r\n * Connections are created and added just like any other figure. Unlike normal figures, you must not set the\r\n * bounds of a connection. Instead, you must provide the source and target port and let the connection router\r\n * calculate the connection's points. The connection then determines its own bounding box.<br>\r\n * <br>\r\n * A connection has a simple router by default - one that can connect the source and target anchors. But additional routers\r\n * are available and can be set on the connection. Some routers can handle constraints for the connection. Note that when\r\n * setting a routing constraint on a connection, you must first set the router which will use that constraint.<br>\r\n * <br>\r\n *\r\n * <b>TODO:<br></b>\r\n * <i>\r\n * A convenient way to share the router with all connections and to place connections above the drawing is to use a\r\n * ConnectionLayer. The layer has a connection router property which it shares with every child that's a connection.\r\n * You can update this property and easily change every connection's router at once.\r\n * </i>\r\n * <br>\r\n * <br>\r\n * <h2>Routing and Anchors</h2>\r\n * A connection always has a router and it must set at least two ports on the connection: the source and target\r\n * endpoints. By default, or when set to null, the connection's routing will be performed by an internal default router.\r\n * The ends are placed with the help of {@link draw2d.layout.anchor.ConnectionAnchor anchors}. An\r\n * {@link draw2d.layout.anchor.ConnectionAnchor anchors} is a fixed or calculated location, usually associated with some\r\n * figure. For example, the {@link draw2d.layout.anchor.ChopboxConnectionAnchor ChopboxAnchor} finds the point at which a\r\n * line going to the reference point intersects a box, such as the bounds of a figure. The reference point is either\r\n * the anchor at the opposite end, or a bendpoint or some other point nearest to the anchor.\r\n * <br>\r\n * {@img jsdoc_chopbox.gif ChopboxAnchor}\r\n * <br>\r\n * The router calculates the endpoints and any other points in the middle of the connection. It then sets the points on the\r\n * connection by calling {@link draw2d.shape.basic.PolyLine#addPoint Polyline.addPoint}. The connection's existing point list\r\n * can be reused to reduce garbage, but the points must be set on the connection anyway so that it knows about any changes made.\r\n * <br>\r\n * <h2>Adding Decorations and Children to Connections</h2>\r\n * Like most figures, Connection supports the addition of children. The children might be a label that\r\n * decorate the connection. The placement of each type of decoration can vary, so a {@link draw2d.layout.locator.ConnectionLocator ConnectionLocator}\r\n * is used to delegate to each child's constraint object, a Locator. <br>\r\n * <br>\r\n * {@link draw2d.decoration.connection.Decorator Decorator} can be used to create and render a rotatable shape at\r\n * the end or start of a connection like arrows or boxes. Examples are {@link draw2d.decoration.connection.ArrowDecorator ArrowDecorator}, {@link draw2d.decoration.connection.BarDecorator BarDecorator} or {@link draw2d.decoration.connection.CircleDecorator CircleDecorator}\r\n * <br>\r\n * <h2>Connection Layout</h2>\r\n * Connections extend the process of validation and layout to include routing. Since layout is the process of positioning children, routing must\r\n * come first. This allows a child's locator to operate on the connection's newly-routed points.<br>\r\n * Check out [Class System Guide](#!/guide/class_system) for additional reading.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.PolyLine\r\n */\n\n_packages2.default.Connection = _packages2.default.shape.basic.PolyLine.extend({\n NAME: \"draw2d.Connection\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.sourcePort = null;\n this.targetPort = null;\n\n this.oldPoint = null;\n\n this.sourceDecorator = null;\n /*:draw2d.ConnectionDecorator*/\n this.targetDecorator = null;\n /*:draw2d.ConnectionDecorator*/\n\n // decoration of the polyline\n //\n this.sourceDecoratorNode = null;\n this.targetDecoratorNode = null;\n\n // helper var to restore the initial visual representation if the user drag&drop\n // the port outside of the browser window. In this case some events get lost and\n // I can restore the initial state of the connection if the mouse comes in the browser window\n // again.\n this.isMoving = false;\n\n var _this = this;\n this.moveListener = function (figure) {\n if (figure === _this.sourcePort) {\n _this.setStartPoint(_this.sourcePort.getAbsoluteX(), _this.sourcePort.getAbsoluteY());\n } else {\n _this.setEndPoint(_this.targetPort.getAbsoluteX(), _this.targetPort.getAbsoluteY());\n }\n };\n\n this._super((0, _extend2.default)({\n color: \"#129CE4\",\n stroke: 2,\n // outlineStroke:1,\n // outlineColor:\"#ffffff\",\n radius: 3\n }, attr), (0, _extend2.default)({\n sourceDecorator: this.setSourceDecorator,\n targetDecorator: this.setTargetDecorator,\n source: this.setSource,\n target: this.setTarget\n }, setter), (0, _extend2.default)({\n sourceDecorator: this.getSourceDecorator,\n targetDecorator: this.getTargetDecorator,\n source: this.getSource,\n target: this.getTarget\n }, getter));\n },\n\n /**\r\n * @private\r\n **/\n disconnect: function disconnect() {\n if (this.sourcePort !== null) {\n this.sourcePort.off(this.moveListener);\n this.sourcePort.connections.remove(this);\n\n // fire the events to all listener\n this.sourcePort.fireEvent(\"disconnect\", { port: this.sourcePort, connection: this });\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"disconnect\", { \"port\": this.sourcePort, \"connection\": this });\n }\n this.sourcePort.onDisconnect(this);\n\n this.fireSourcePortRouteEvent();\n }\n\n if (this.targetPort !== null) {\n this.targetPort.off(this.moveListener);\n this.targetPort.connections.remove(this);\n\n // fire the events to all listener\n this.targetPort.fireEvent(\"disconnect\", { port: this.targetPort, connection: this });\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"disconnect\", { \"port\": this.targetPort, \"connection\": this });\n }\n this.targetPort.onDisconnect(this);\n\n this.fireTargetPortRouteEvent();\n }\n },\n\n /**\r\n * @private\r\n **/\n reconnect: function reconnect() {\n if (this.sourcePort !== null) {\n this.sourcePort.on(\"move\", this.moveListener);\n this.sourcePort.connections.add(this);\n\n // fire the events to all listener\n this.sourcePort.fireEvent(\"connect\", { port: this.sourcePort, connection: this });\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"connect\", { \"port\": this.sourcePort, \"connection\": this });\n }\n this.sourcePort.onConnect(this);\n\n this.fireSourcePortRouteEvent();\n }\n\n if (this.targetPort !== null) {\n this.targetPort.on(\"move\", this.moveListener);\n this.targetPort.connections.add(this);\n\n // fire the events to all listener\n this.targetPort.fireEvent(\"connect\", { port: this.targetPort, connection: this });\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"connect\", { \"port\": this.targetPort, \"connection\": this });\n }\n this.targetPort.onConnect(this);\n\n this.fireTargetPortRouteEvent();\n }\n this.routingRequired = true;\n this.repaint();\n },\n\n /**\r\n * You can't drag&drop the resize handles of a connector.\r\n * @type boolean\r\n **/\n isResizeable: function isResizeable() {\n return this.isDraggable();\n },\n\n /**\r\n * @method\r\n * Add a child figure to the Connection. The hands over figure doesn't support drag&drop\r\n * operations. It's only a decorator for the connection.<br>\r\n * Mainly for labels or other fancy decorations :-)\r\n *\r\n * @param {draw2d.Figure} child the figure to add as decoration to the connection.\r\n * @param {draw2d.layout.locator.ConnectionLocator} locator the locator for the child.\r\n * @param {Number} [index] optional index where to insert the figure\r\n **/\n add: function add(child, locator, index) {\n // just to ensure the right interface for the locator.\n // The base class needs only 'draw2d.layout.locator.Locator'.\n if (!(locator instanceof _packages2.default.layout.locator.ConnectionLocator)) {\n throw \"Locator must implement the class draw2d.layout.locator.ConnectionLocator\";\n }\n\n this._super(child, locator, index);\n },\n\n /**\r\n * @method\r\n * Set the ConnectionDecorator for this object.\r\n *\r\n * @param {draw2d.decoration.connection.Decorator} decorator the new source decorator for the connection\r\n **/\n setSourceDecorator: function setSourceDecorator(decorator) {\n this.sourceDecorator = decorator;\n this.routingRequired = true;\n if (this.sourceDecoratorNode !== null) {\n this.sourceDecoratorNode.remove();\n this.sourceDecoratorNode = null;\n }\n this.repaint();\n },\n\n /**\r\n * @method\r\n * Get the current source ConnectionDecorator for this object.\r\n *\r\n * @returns draw2d.decoration.connection.Decorator\r\n **/\n getSourceDecorator: function getSourceDecorator() {\n return this.sourceDecorator;\n },\n\n /**\r\n * @method\r\n * Set the ConnectionDecorator for this object.\r\n *\r\n * @param {draw2d.decoration.connection.Decorator} decorator the new target decorator for the connection\r\n **/\n setTargetDecorator: function setTargetDecorator(decorator) {\n this.targetDecorator = decorator;\n this.routingRequired = true;\n if (this.targetDecoratorNode !== null) {\n this.targetDecoratorNode.remove();\n this.targetDecoratorNode = null;\n }\n this.repaint();\n },\n\n /**\r\n * @method\r\n * Get the current target ConnectionDecorator for this object.\r\n *\r\n * @returns draw2d.decoration.connection.Decorator\r\n **/\n getTargetDecorator: function getTargetDecorator() {\n return this.targetDecorator;\n },\n\n /**\r\n * @method\r\n * Calculate the path of the polyline.\r\n *\r\n * @param {Object} routingHints some helper attributes for the router\r\n * @param {Boolean} routingHints.startMoved is true if just the start location has moved\r\n * @param {Boolean} routingHints.destMoved is true if the destination location has changed\r\n * @private\r\n */\n calculatePath: function calculatePath(routingHints) {\n\n if (this.sourcePort === null || this.targetPort === null) {\n return this;\n }\n\n this._super(routingHints);\n\n if (this.shape !== null) {\n var z1 = this.sourcePort.getZOrder();\n var z2 = this.targetPort.getZOrder();\n z1 < z2 ? this.toBack(this.sourcePort) : this.toBack(this.targetPort);\n }\n\n return this;\n },\n\n /**\r\n * @private\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n if (this.sourcePort === null || this.targetPort === null) {\n return;\n }\n\n this._super(attributes);\n\n // paint the decorator if any exists\n //\n if (this.targetDecorator !== null && this.targetDecoratorNode === null) {\n this.targetDecoratorNode = this.targetDecorator.paint(this.getCanvas().paper);\n }\n\n if (this.sourceDecorator !== null && this.sourceDecoratorNode === null) {\n this.sourceDecoratorNode = this.sourceDecorator.paint(this.getCanvas().paper);\n }\n\n var _this = this;\n\n // translate/transform the decorations to the end/start of the connection\n // and rotate them as well\n //\n if (this.sourceDecoratorNode !== null) {\n var start = this.getVertices().first();\n this.sourceDecoratorNode.transform(\"r\" + this.getStartAngle() + \",\" + start.x + \",\" + start.y + \" t\" + start.x + \",\" + start.y);\n // propagate the color and the opacity to the decoration as well\n this.sourceDecoratorNode.attr({ \"stroke\": \"#\" + this.lineColor.hex(), opacity: this.alpha });\n this.sourceDecoratorNode.forEach(function (shape) {\n shape.node.setAttribute(\"class\", _this.cssClass !== null ? _this.cssClass : \"\");\n });\n }\n\n if (this.targetDecoratorNode !== null) {\n var end = this.getVertices().last();\n this.targetDecoratorNode.transform(\"r\" + this.getEndAngle() + \",\" + end.x + \",\" + end.y + \" t\" + end.x + \",\" + end.y);\n this.targetDecoratorNode.attr({ \"stroke\": \"#\" + this.lineColor.hex(), opacity: this.alpha });\n this.targetDecoratorNode.forEach(function (shape) {\n shape.node.setAttribute(\"class\", _this.cssClass !== null ? _this.cssClass : \"\");\n });\n }\n },\n\n /**\r\n * @method\r\n * The x-offset related to the canvas.\r\n * Didn't provided by a connection. Return always '0'. This is required\r\n * for children position calculation. (e.g. Label decoration)\r\n *\r\n * @return {Number} the x-offset to the parent figure\r\n **/\n getAbsoluteX: function getAbsoluteX() {\n return 0;\n },\n\n /**\r\n * @method\r\n * The y-offset related to the canvas.\r\n * Didn't provided by a connection. Return always '0'. This is required\r\n * for children position calculation. (e.g. Label decoration)\r\n *\r\n * @return {Number} The y-offset to the parent figure.\r\n **/\n getAbsoluteY: function getAbsoluteY() {\n return 0;\n },\n\n postProcess: function postProcess(postProcessCache) {\n this.router.postProcess(this, this.getCanvas(), postProcessCache);\n },\n\n /**\r\n * @method\r\n * Don't call them manually. This will be done by the framework.<br>\r\n * Will be called if the object are moved via drag and drop.\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call\r\n * the super implementation via <code>this._super(dx, dy, dx2, dy2);</code>\r\n * @private\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n if (this.command === null) {\n return;\n }\n\n // Delegate the drag&drop operation to the router. The router has\n // all the meta information how to update start/end vertices\n //\n this.router.onDrag(this, dx, dy, dx2, dy2);\n\n this.command.updateVertices(this.getVertices().clone());\n\n var _this = this;\n\n // notify all installed policies\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.onDrag(_this.canvas, _this);\n }\n });\n\n this.svgPathString = null;\n this.repaint();\n\n // Update the resize handles if the user change the position of the\n // element via an API call.\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.fireEvent(\"move\", { figure: this, dx: dx, dy: dx });\n },\n\n /**\r\n * @method\r\n * Moves the element so it is the closest to the viewer’s eyes, on top of other elements. Additional\r\n * the internal model changed as well.\r\n *\r\n * Optional: Inserts current object in front of the given one.\r\n *\r\n * @param {draw2d.Figure} [figure] move current object in front of the given one.\r\n * @since 3.0.0\r\n */\n toFront: function toFront(figure) {\n this._super(figure);\n\n // ensure that the decoration is always in front of the connection\n //\n if (this.shape !== null) {\n if (this.targetDecoratorNode !== null) {\n this.targetDecoratorNode.insertAfter(this.shape);\n }\n if (this.sourceDecoratorNode !== null) {\n this.sourceDecoratorNode.insertAfter(this.shape);\n }\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Moves the element to the background. Additional\r\n * the internal model changed as well.\r\n *\r\n * @param {draw2d.Figure} [figure] move this object behind of the 'figure'.\r\n * @since 4.7.2\r\n */\n toBack: function toBack(figure) {\n this._super(figure);\n\n if (this.shape !== null) {\n if (this.targetDecoratorNode !== null) {\n this.targetDecoratorNode.insertAfter(this.shape);\n }\n if (this.sourceDecoratorNode !== null) {\n this.sourceDecoratorNode.insertAfter(this.shape);\n }\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the recalculated position of the start point with the usage of\r\n * the installed connection anchor locator.\r\n *\r\n * @return {draw2d.geo.Point}\r\n * @deprecated\r\n **/\n getStartPoint: function getStartPoint(refPoint) {\n return this.getStartPosition(refPoint);\n },\n\n getStartPosition: function getStartPosition(refPoint) {\n if (this.isMoving === false) {\n if (refPoint) {\n return this.sourcePort.getConnectionAnchorLocation(refPoint, this);\n }\n return this.sourcePort.getConnectionAnchorLocation(this.targetPort.getConnectionAnchorReferencePoint(this), this);\n }\n\n return this._super();\n },\n\n /**\r\n * @method\r\n * Return the recalculated position of the start point with the usage of\r\n * the installed connection anchor locator.\r\n *\r\n * @return {draw2d.geo.Point}\r\n * @deprecated\r\n **/\n getEndPoint: function getEndPoint(refPoint) {\n return this.getEndPosition(refPoint);\n },\n\n getEndPosition: function getEndPosition(refPoint) {\n if (this.isMoving === false) {\n if (refPoint) {\n return this.targetPort.getConnectionAnchorLocation(refPoint, this);\n }\n return this.targetPort.getConnectionAnchorLocation(this.sourcePort.getConnectionAnchorReferencePoint(this), this);\n }\n\n return this._super();\n },\n\n /**\r\n * @method\r\n * Set the new source port of this connection. This enforce a repaint of the connection.\r\n *\r\n * @param {draw2d.Port} port The new source port of this connection.\r\n *\r\n **/\n setSource: function setSource(port) {\n if (this.sourcePort !== null) {\n this.sourcePort.off(this.moveListener);\n this.sourcePort.connections.remove(this);\n this.sourcePort.fireEvent(\"disconnect\", { port: this.sourcePort, connection: this });\n // it is possible that a connection has already a port but is not assigned to\n // a canvas. In this case we must check if the canvas set correct before we fire this event\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"disconnect\", { \"port\": this.sourcePort, \"connection\": this });\n }\n this.sourcePort.onDisconnect(this);\n }\n\n this.sourcePort = port;\n if (this.sourcePort === null) {\n return;\n }\n\n this.routingRequired = true;\n this.fireSourcePortRouteEvent();\n this.sourcePort.connections.add(this);\n this.sourcePort.on(\"move\", this.moveListener);\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"connect\", { \"port\": this.sourcePort, \"connection\": this });\n }\n this.sourcePort.fireEvent(\"connect\", { port: this.sourcePort, connection: this });\n this.sourcePort.onConnect(this);\n\n this.setStartPoint(port.getAbsoluteX(), port.getAbsoluteY());\n this.fireEvent(\"connect\", { \"port\": this.sourcePort, \"connection\": this });\n },\n\n /**\r\n * @method\r\n * Returns the source port of this connection.\r\n *\r\n * @return {draw2d.Port}\r\n **/\n getSource: function getSource() {\n return this.sourcePort;\n },\n\n /**\r\n * @method\r\n * Set the target port of this connection. This enforce a repaint of the connection.\r\n *\r\n * @param {draw2d.Port} port The new target port of this connection\r\n **/\n setTarget: function setTarget(port) {\n if (this.targetPort !== null) {\n this.targetPort.off(this.moveListener);\n this.targetPort.connections.remove(this);\n this.targetPort.fireEvent(\"disconnect\", { port: this.targetPort, connection: this });\n // it is possible that a connection has already a port but is not assigned to\n // a canvas. In this case we must check if the canvas set correct before we fire this event\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"disconnect\", { \"port\": this.targetPort, \"connection\": this });\n }\n this.targetPort.onDisconnect(this);\n }\n\n this.targetPort = port;\n if (this.targetPort === null) {\n return;\n }\n\n this.routingRequired = true;\n this.fireTargetPortRouteEvent();\n this.targetPort.connections.add(this);\n this.targetPort.on(\"move\", this.moveListener);\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"connect\", { \"port\": this.targetPort, \"connection\": this });\n }\n this.targetPort.fireEvent(\"connect\", { port: this.targetPort, connection: this });\n this.targetPort.onConnect(this);\n\n this.setEndPoint(port.getAbsoluteX(), port.getAbsoluteY());\n this.fireEvent(\"connect\", { \"port\": this.targetPort, \"connection\": this });\n },\n\n /**\r\n * @method\r\n * Returns the target port of this connection.\r\n *\r\n * @returns {draw2d.Port}\r\n **/\n getTarget: function getTarget() {\n return this.targetPort;\n },\n\n /**\r\n * @method\r\n * Method returns true if the connection has at least one common draw2d.Port with the given connection.\r\n *\r\n * @param {draw2d.Connection} other\r\n *\r\n * @returns {Boolean}\r\n */\n sharingPorts: function sharingPorts(other) {\n return this.sourcePort == other.sourcePort || this.sourcePort == other.targetPort || this.targetPort == other.sourcePort || this.targetPort == other.targetPort;\n },\n\n /**\r\n * @method\r\n * Set the canvas element of this figures.\r\n *\r\n * @param {draw2d.Canvas} canvas the new parent of the figure or null\r\n */\n setCanvas: function setCanvas(canvas) {\n if (this.canvas === canvas) {\n return; // nothing to do\n }\n\n var notiCanvas = this.canvas == null ? canvas : this.canvas;\n\n this._super(canvas);\n\n if (canvas !== null && _packages2.default.Connection.DROP_FILTER === null) {\n _packages2.default.Connection.DROP_FILTER = canvas.paper.createFilter();\n _packages2.default.Connection.DROP_FILTER.element.setAttribute(\"width\", \"250%\");\n _packages2.default.Connection.DROP_FILTER.element.setAttribute(\"height\", \"250%\");\n _packages2.default.Connection.DROP_FILTER.createShadow(1, 1, 2, 0.3);\n }\n\n if (this.sourceDecoratorNode !== null) {\n this.sourceDecoratorNode.remove();\n this.sourceDecoratorNode = null;\n }\n\n if (this.targetDecoratorNode !== null) {\n this.targetDecoratorNode.remove();\n this.targetDecoratorNode = null;\n }\n\n if (this.canvas === null) {\n if (this.sourcePort !== null) {\n this.sourcePort.off(this.moveListener);\n notiCanvas.fireEvent(\"disconnect\", { \"port\": this.sourcePort, \"connection\": this });\n this.sourcePort.onDisconnect(this);\n }\n if (this.targetPort !== null) {\n this.targetPort.off(this.moveListener);\n notiCanvas.fireEvent(\"disconnect\", { \"port\": this.targetPort, \"connection\": this });\n this.targetPort.onDisconnect(this);\n }\n } else {\n this.shape.items[0].filter(_packages2.default.Connection.DROP_FILTER);\n\n if (this.sourcePort !== null) {\n this.sourcePort.on(\"move\", this.moveListener);\n this.canvas.fireEvent(\"connect\", { \"port\": this.sourcePort, \"connection\": this });\n this.sourcePort.onConnect(this);\n }\n if (this.targetPort !== null) {\n this.targetPort.on(\"move\", this.moveListener);\n this.canvas.fireEvent(\"connect\", { \"port\": this.targetPort, \"connection\": this });\n this.targetPort.onConnect(this);\n }\n }\n },\n\n /**\r\n * Returns the angle of the connection at the output port (source)\r\n *\r\n **/\n getStartAngle: function getStartAngle() {\n // return a good default value if the connection is not routed at the\n // moment\n if (this.lineSegments.getSize() === 0) {\n return 0;\n }\n\n var p1 = this.lineSegments.get(0).start;\n var p2 = this.lineSegments.get(0).end;\n if (this.router instanceof _packages2.default.layout.connection.SplineConnectionRouter) {\n p2 = this.lineSegments.get(5).end;\n }\n var length = Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));\n var angle = -(180 / Math.PI) * Math.asin((p1.y - p2.y) / length);\n\n if (angle < 0) {\n if (p2.x < p1.x) {\n angle = Math.abs(angle) + 180;\n } else {\n angle = 360 - Math.abs(angle);\n }\n } else {\n if (p2.x < p1.x) {\n angle = 180 - angle;\n }\n }\n return angle;\n },\n\n getEndAngle: function getEndAngle() {\n // return a good default value if the connection is not routed at the\n // moment\n if (this.lineSegments.getSize() === 0) {\n return 90;\n }\n\n var p1 = this.lineSegments.get(this.lineSegments.getSize() - 1).end;\n var p2 = this.lineSegments.get(this.lineSegments.getSize() - 1).start;\n if (this.router instanceof _packages2.default.layout.connection.SplineConnectionRouter) {\n p2 = this.lineSegments.get(this.lineSegments.getSize() - 5).end;\n }\n var length = Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));\n var angle = -(180 / Math.PI) * Math.asin((p1.y - p2.y) / length);\n\n if (angle < 0) {\n if (p2.x < p1.x) {\n angle = Math.abs(angle) + 180;\n } else {\n angle = 360 - Math.abs(angle);\n }\n } else {\n if (p2.x < p1.x) {\n angle = 180 - angle;\n }\n }\n return angle;\n },\n\n /**\r\n * @private\r\n **/\n fireSourcePortRouteEvent: function fireSourcePortRouteEvent() {\n this.sourcePort.getConnections().each(function (i, conn) {\n conn.routingRequired = true;\n conn.repaint();\n });\n },\n\n /**\r\n * @private\r\n **/\n fireTargetPortRouteEvent: function fireTargetPortRouteEvent() {\n // enforce a repaint of all connections which are related to this port\n // this is required for a \"FanConnectionRouter\" or \"ShortesPathConnectionRouter\"\n //\n this.targetPort.getConnections().each(function (i, conn) {\n conn.routingRequired = true;\n conn.repaint();\n });\n },\n\n /**\r\n * @method\r\n * Returns the Command to perform the specified Request or null.\r\n *\r\n * @param {draw2d.command.CommandType} request describes the Command being requested\r\n *\r\n * @return {draw2d.command.Command} null or a Command\r\n **/\n createCommand: function createCommand(request) {\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE) {\n if (this.isDraggable()) {\n return new _packages2.default.command.CommandMoveVertices(this);\n }\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE_BASEPOINT) {\n // DragDrop of a connection doesn't create a undo command at this point. This will be done in\n // the onDrop method\n return new _packages2.default.command.CommandReconnect(this);\n }\n\n return this._super(request);\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n var parentNode = this.getSource().getParent();\n while (parentNode.getParent() !== null) {\n parentNode = parentNode.getParent();\n }\n memento.source = {\n node: parentNode.getId(),\n port: this.getSource().getName()\n };\n\n parentNode = this.getTarget().getParent();\n while (parentNode.getParent() !== null) {\n parentNode = parentNode.getParent();\n }\n memento.target = {\n node: parentNode.getId(),\n port: this.getTarget().getName()\n };\n\n if (this.sourceDecorator !== null) {\n memento.source.decoration = this.sourceDecorator.NAME;\n }\n\n if (this.targetDecorator !== null) {\n memento.target.decoration = this.targetDecorator.NAME;\n }\n\n return memento;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n * @returns\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n // nothing to to for the connection creation. This will be done in the draw2d.io.Reader\n // implementation\n //\n // restore your custom attributes here\n if (typeof memento.target.decoration !== \"undefined\" && memento.target.decoration != null) {\n this.setTargetDecorator(eval(\"new \" + memento.target.decoration));\n }\n\n if (typeof memento.source.decoration !== \"undefined\" && memento.source.decoration != null) {\n this.setSourceDecorator(eval(\"new \" + memento.source.decoration));\n }\n }\n});\n\n_packages2.default.Connection.DROP_FILTER = null;\n\n/***/ }),\n\n/***/ \"./src/Figure.js\":\n/*!***********************!*\\\n !*** ./src/Figure.js ***!\n \\***********************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nvar _UUID = __webpack_require__(/*! util/UUID */ \"./src/util/UUID.js\");\n\nvar _UUID2 = _interopRequireDefault(_UUID);\n\nvar _extend = __webpack_require__(/*! util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /**\r\n * @class draw2d.Figure\r\n * A lightweight graphical object. Figures are rendered to a {@link draw2d.Canvas} object.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n */\n\n_packages2.default.Figure = Class.extend({\n\n NAME: \"draw2d.Figure\",\n\n MIN_TIMER_INTERVAL: 50, // minimum timer interval in milliseconds\n\n // special attributes that should be get/set via method calls\n\n /**\r\n * @constructor\r\n * Creates a new figure element which is not assigned to any canvas.\r\n *\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n var _this2 = this;\n\n this.setterWhitelist = (0, _extend2.default)({\n /** @attr {String} id the unique id of the figure */\n id: this.setId,\n /** @attr {Number} x the x offset of the figure in relation to the parent figure or canvas */\n x: this.setX,\n /** @attr {Number} y the y offset of the figure in relation to the parent figure or canvas */\n y: this.setY,\n /** @attr {Number} width the new width of the figure. Considering the minWidth of the shape */\n width: this.setWidth,\n /** @attr {Number} height the new height of the figure. Considering the minHeight of the shape */\n height: this.setHeight,\n /** @attr {draw2d.geo.Rectangle} boundingBox set the new bounding box of the shape */\n boundingBox: this.setBoundingBox,\n /** @attr {Number} minWidth the new min width of the figure. */\n minWidth: this.setMinWidth,\n /** @attr {Number} minHeight the new min height of the figure. */\n minHeight: this.setMinHeight,\n /** @attr {String} cssClass the css class of the shape. can be used to style the shape via CSS3 (SVG only) */\n cssClass: this.setCssClass,\n /** @attr {Object} userData additional custom data which can be stored by the shape */\n userData: this.setUserData,\n /** @attr {Boolean} draggable drives the dragging behaviour of the shape */\n draggable: this.setDraggable,\n /** @attr {Boolean} resizeable drives the resizeable behaviour of the shape */\n resizeable: this.setResizeable,\n /** @attr {Boolean} selectable drives the selectable behaviour of the shape */\n selectable: this.setSelectable,\n /** @attr {Number} angle the rotation angle of the shape. At the moment only 90 degree increments are possible */\n angle: this.setRotationAngle,\n /** @attr {Number} alpha the the alpha/opacity of the shape. value must be between [0..1] */\n alpha: this.setAlpha,\n /** @attr {Number} opacity the the alpha/opacity of the shape. value must be between [0..1] */\n opacity: this.setAlpha,\n /** @attr {Boolean} glow the glow flag for the shape. The representation of the \"glow\" depends on the shape */\n glow: this.setGlow,\n /** @attr {Boolean} visible set the visibility flag of the shape */\n visible: this.setVisible,\n /** @attr {Boolean} keepAspectRatio indicate if the shape should keep the aspect ratio during resize */\n keepAspectRatio: this.setKeepAspectRatio\n\n }, setter);\n\n this.getterWhitelist = (0, _extend2.default)({\n id: this.getId,\n visible: this.isVisible,\n angle: this.getRotationAngle,\n x: this.getX,\n y: this.getY,\n width: this.getWidth,\n height: this.getHeight,\n draggable: this.isDraggable,\n resizeable: this.isResizeable,\n selectable: this.isSelectable,\n alpha: this.getAlpha,\n opacity: this.getAlpha\n }, getter);\n\n var _this = this;\n\n // all figures has an unique id. Required for figure get and persistence storage\n this.id = _UUID2.default.create();\n\n // required for the SelectionEditPolicy to indicate the type of figure\n // which the user clicks\n this.isResizeHandle = false;\n\n // for undo/redo operation. It holds the command during a drag/drop operation\n // and execute it on the CommandStack if the user drop the figure.\n this.command = null;\n\n // the assigned canvas\n this.canvas = null;\n\n // the RaphaelJS element reference\n this.shape = null;\n\n // possible decorations ( e.g. a Label) of the Connection\n // children are fixed bounded the figure. Most of the events of the child will bee\n // routed to the parent\n this.children = new _packages2.default.util.ArrayList();\n\n // behavior flags\n //\n this.selectable = true;\n this.deleteable = true;\n this.resizeable = true;\n this.draggable = true;\n this.visible = true;\n // since 4.1.0.\n this.keepAspectRatio = false;\n\n this.canSnapToHelper = true;\n this.snapToGridAnchor = new _packages2.default.geo.Point(0, 0); // hot spot for snap to grid\n this.editPolicy = new _packages2.default.util.ArrayList();\n\n // timer for animation or automatic update\n //\n this.timerId = -1;\n this.timerInterval = 0;\n\n // possible parent of the figure.\n // @see: this.children\n this.parent = null;\n\n // a figure can be part of a StrongComposite like a group, ...\n //\n this.composite = null;\n\n // generic handle for the JSON read/write of user defined data\n this.userData = null;\n\n // appearance, position and dim properties\n //\n this.x = 0;\n this.y = 0;\n this.minHeight = 5;\n this.minWidth = 5;\n this.rotationAngle = 0;\n // add the name of the class to the css attribute\n this.cssClass = this.NAME.replace(new RegExp(\"[.]\", \"g\"), \"_\");\n\n this.width = this.getMinWidth();\n this.height = this.getMinHeight();\n\n this.alpha = 1.0;\n\n // internal status flags for the Drag&Drop operation handling and other stuff\n //\n this.isInDragDrop = false;\n\n this.ox = 0;\n this.oy = 0;\n this.repaintBlocked = false;\n this.lastAppliedAttributes = {};\n this.selectionHandles = new _packages2.default.util.ArrayList();\n this.panningDelegate = null;\n\n // even handling since version 5.0.0\n this.eventSubscriptions = {};\n\n this.relocateChildrenEventCallback = function () {\n _this2.children.each(function (i, e) {\n e.locator.relocate(i, e.figure);\n });\n };\n\n // new approach to delegate selection requests.\n //\n this.defaultSelectionAdapter = this.selectionAdapter = function () {\n return _this2;\n };\n\n // install default selection handler. Can be overridden or replaced\n this.installEditPolicy(new _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy());\n\n // the new style attr call with object attributes\n this.attr(attr);\n },\n\n /**\r\n * @method\r\n * Read or set shape attributes.<br>\r\n * When no value is given, reads specified attribute from the element.<br>\r\n * When value is given, sets the attribute to that value.\r\n * Multiple attributes can be set by passing an object with name-value pairs.\r\n *\r\n * let figure = new draw2d.shape.basic.Rectangle();\r\n * figure.attr('x'); //=> read value\r\n * figure.attr('x', 30); //=> set value\r\n *\r\n * // multiple attributes:\r\n * figure.attr({\r\n * x: 30,\r\n * y: 40,\r\n * width : 200,\r\n * height: 50,\r\n * cssClass: \"red_border_figure\"\r\n * });\r\n *\r\n * // it is possible to override any method of the figure as well\r\n * // Instead of inheritance you can just override the callback methods\r\n * // like\r\n * //\r\n * figure.attr({\r\n * onClick : function(){\r\n * alert(\"click\");\r\n * }\r\n * });\r\n *\r\n * // or you can pass the attr values in the constructor\r\n * //\r\n * let clickFigure = new draw2d.shape.basic.Rectangle({\r\n * onClick : function(){\r\n * alert(\"click\");\r\n * }\r\n * });\r\n *\r\n *\r\n * Additional you can set the user defined values (userData) with this method\r\n * using the dot-notation. User defined values are always part of the exported\r\n * JSON data.\r\n *\r\n * // setting multiple attributes:\r\n * figure.attr({\r\n * \"userData.my.property.x\": 30,\r\n * \"userData.my.property.y\": 40\r\n * });\r\n *\r\n * Also set using array notation is possible for the userData:\r\n *\r\n * // dot notation and array brackets:\r\n * figure.attr({\r\n * \"userData.my.names[0]\": \"John\",\r\n * \"userData.my.names[1]\": \"Doe\"\r\n * });\r\n *\r\n *\r\n * The Object returned should be the equivalent structured object:\r\n *\r\n * let obj = figure.getUserData();\r\n *\r\n * That is, where obj is equivalent to:\r\n *\r\n * let obj = {\r\n * my:{\r\n * property:{\r\n * x: 30,\r\n * y: 40\r\n * },\r\n * names: [\"John\", \"Doe\"]\r\n * }\r\n * };\r\n *\r\n *\r\n *\r\n * @param {String/Object} name\r\n * @param {Object} [value]\r\n * @since 5.0.1\r\n * @experimental\r\n * @returns\r\n **/\n attr: function attr(name, value) {\n var _this = this;\n var orig = this.repaintBlocked;\n\n try {\n // call of attr as setter method with {name1:val1, name2:val2 } argument list\n //\n if ($.isPlainObject(name)) {\n for (var key in name) {\n // user can set the \"userData\" with path notation. In this case we\n // expand the path to a real JSON object and set the data.\n // index/brackets are allowed too.\n //\n if (key.substring(0, 9) === \"userData.\") {\n if (this.userData === null) {\n this.userData = {};\n }\n _JSONUtil2.default.set({ userData: this.userData }, key, name[key]);\n this.fireEvent(\"change:\" + key, { value: name[key] });\n } else {\n var func = this.setterWhitelist[key];\n var param = name[key];\n if (func && param !== undefined) {\n func.call(this, param);\n }\n // maybe the user adds a function as property to the attr call\n // e.g.:\n // {\n // doIt: function(){}\n // }\n //\n // in this case we assign the method to this object and wrap it with \"this\" as context\n // a very, very simple method to replace default implemenations of the object\n else if (typeof name[key] === \"function\") {\n this[key] = param.bind(this);\n }\n }\n }\n } else if (typeof name === \"string\") {\n // call attr as getter\n //\n if (typeof value === \"undefined\") {\n var getter = this.getterWhitelist[name];\n if (typeof getter === \"function\") {\n return getter.call(this);\n }\n // or it is a userData path notation like \"userData.any.path.value\"\n else if (name.substring(0, 9) === \"userData.\") {\n var data = { userData: this.userData };\n return _JSONUtil2.default.get(data, name);\n }\n return; // undefined\n }\n // call attr as simple setter with (key , value)\n //\n\n // the value can be a function. In this case we must call the value().\n if (typeof value === \"function\") {\n value = value();\n }\n if (name.substring(0, 9) === \"userData.\") {\n if (this.userData === null) {\n this.userData = {};\n }\n _JSONUtil2.default.set({ userData: this.userData }, name, value);\n this.fireEvent(\"change:\" + name, { value: value });\n } else {\n var setter = this.setterWhitelist[name];\n if (setter) {\n setter.call(this, value);\n }\n }\n }\n // may it is a array of attributes used for the getter\n //\n else if (Array.isArray(name)) {\n return Object.assign.apply(Object, [{}].concat(_toConsumableArray(Object.keys(name).map(function (k) {\n return _defineProperty({}, k, _this.attr(k));\n }))));\n }\n // generic getter of all registered attributes\n else if (typeof name === \"undefined\") {\n var result = {};\n for (var _key in this.getterWhitelist) {\n result[_key] = this.getterWhitelist[_key].call(this);\n }\n return result;\n }\n } finally {\n this.repaintBlocked = orig;\n }\n // this.repaint();\n\n return this;\n },\n\n /**\r\n * Return a copy of the object, filtered to only have values for the whitelisted keys.\r\n * @deprecated\r\n */\n pick: function pick(obj, var_keys) {\n var keys = typeof arguments[1] !== 'string' ? arguments[1] : Array.prototype.slice.call(arguments, 1);\n var out = {},\n key = void 0;\n for (key in keys) {\n if (typeof obj[key] !== \"undefined\") out[key] = obj[key];\n }\n return out;\n },\n\n /**\r\n * @method\r\n * Add the figure to the current selection and propagate this to all edit policies.\r\n *\r\n * @param {Boolean} [asPrimarySelection] true if the element should be the primary selection\r\n * @private\r\n */\n select: function select(asPrimarySelection) {\n if (typeof asPrimarySelection === \"undefined\") {\n asPrimarySelection = true;\n }\n\n // apply all EditPolicy for select Operations\n //\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionPolicy) {\n e.onSelect(_this.canvas, _this, asPrimarySelection);\n }\n });\n\n if (this.canvas !== null) {\n this.canvas.getSelection().add(this);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Unselect the figure and propagete this event to all edit policies.\r\n *\r\n * @private\r\n **/\n unselect: function unselect() {\n var _this = this;\n // apply all EditPolicy for select Operations\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionPolicy) {\n e.onUnselect(_this.canvas, _this);\n }\n });\n\n if (this.canvas !== null) {\n this.canvas.getSelection().remove(this);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns a function which returns the the figure which must handle the selection handling.\r\n *\r\n * @param {Function} [adapter] function which returns the figure which handles the selection handling\r\n */\n setSelectionAdapter: function setSelectionAdapter(adapter) {\n if (adapter == null) {\n this.selectionAdapter = this.defaultSelectionAdapter;\n } else {\n this.selectionAdapter = adapter;\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * @returns {Function}\r\n */\n getSelectionAdapter: function getSelectionAdapter() {\n return this.selectionAdapter;\n },\n\n /**\r\n * @method\r\n * Returns true if the figure part of the current canvas selection.\r\n *\r\n * @since 5.5.6\r\n *\r\n * @return {Boolean}\r\n */\n isSelected: function isSelected() {\n if (this.canvas !== null) {\n return this.canvas.getSelection().contains(this);\n }\n\n return false;\n },\n\n /**\r\n * @method\r\n * Allows a user to attach (or remove) data to an element, without needing to create a custom figure or shape.\r\n * The data must be a valid JSON object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * userData: object\r\n * });\r\n *\r\n * @since 2.7.2\r\n * @param {Object} object\r\n */\n setUserData: function setUserData(object) {\n this.userData = object;\n this.fireEvent(\"change:userData\", { value: object });\n return this;\n },\n\n /**\r\n * @method\r\n * Returns any user data set previously on the given figure by setUserData.\r\n *\r\n * @since 2.7.2\r\n * @returns {Object}\r\n */\n getUserData: function getUserData() {\n return this.userData;\n },\n\n /**\r\n * @method\r\n * Return the UUID of this element.\r\n *\r\n * @return {String}\r\n */\n getId: function getId() {\n return this.id;\n },\n\n /**\r\n * @method\r\n * Set the id of this element.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * id: newId\r\n * });\r\n *\r\n * @param {String} newId the new id for this figure\r\n */\n setId: function setId(newId) {\n this.id = newId;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the css styling class name of the element.\r\n *\r\n *\r\n * @return {String}\r\n */\n getCssClass: function getCssClass() {\n return this.cssClass;\n },\n\n /**\r\n * @method\r\n * Set the css class of the node.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * \"cssClass\": \"red_border_figure\"\r\n * });\r\n *\r\n * @param {String} cssClass the new css class name of the node\r\n * @since 2.9.0\r\n */\n setCssClass: function setCssClass(cssClass) {\n this.cssClass = cssClass === null ? null : cssClass.trim();\n\n if (this.shape === null) {\n return this;\n }\n\n if (this.cssClass === null) {\n this.shape.node.removeAttribute(\"class\");\n } else {\n this.shape.node.setAttribute(\"class\", this.cssClass);\n }\n this.fireEvent(\"change:cssClass\", { value: this.cssClass });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The method will return true if the class is assigned to the element, even if other classes also are.\r\n *\r\n * @param {String} className the class name to check\r\n * @since 2.9.0\r\n */\n hasCssClass: function hasCssClass(className) {\n if (this.cssClass === null) {\n return false;\n }\n\n return new RegExp(' ' + className.trim() + ' ').test(' ' + this.cssClass + ' ');\n },\n\n /**\r\n * @method\r\n * Add a CSS class to the figure.<br>\r\n * It's important to note that this method does not replace a class. It simply adds the class,\r\n * appending it to any which may already be assigned to the elements.\r\n *\r\n * @param {String} className\r\n * @since 2.9.0\r\n */\n addCssClass: function addCssClass(className) {\n className = className.trim();\n if (!this.hasCssClass(className)) {\n if (this.cssClass === null) {\n this.setCssClass(className);\n } else {\n this.setCssClass(this.cssClass + ' ' + className);\n }\n this.fireEvent(\"change:cssClass\", { value: this.cssClass });\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * Remove the given css class name from the figure\r\n *\r\n * @param {String} className the css class name to add\r\n */\n removeCssClass: function removeCssClass(className) {\n className = className.trim();\n var newClass = ' ' + this.cssClass.replace(/[\\t\\r\\n]/g, ' ') + ' ';\n if (this.hasCssClass(className)) {\n while (newClass.indexOf(' ' + className + ' ') >= 0) {\n newClass = newClass.replace(' ' + className + ' ', ' ');\n }\n this.setCssClass(newClass.replace(/^\\s+|\\s+$/g, ''));\n this.fireEvent(\"change:cssClass\", { value: this.cssClass });\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * Add or remove the given css class name from the figure\r\n *\r\n * @param {String} className the class name to toggle\r\n */\n toggleCssClass: function toggleCssClass(className) {\n className = className.trim();\n var newClass = ' ' + this.cssClass.replace(/[\\t\\r\\n]/g, ' ') + ' ';\n if (this.hasCssClass(className)) {\n while (newClass.indexOf(' ' + className + ' ') >= 0) {\n newClass = newClass.replace(' ' + className + ' ', ' ');\n }\n this.setCssClass(newClass.replace(/^\\s+|\\s+$/g, ''));\n } else {\n this.setCssClass(this.cssClass + ' ' + className);\n }\n this.fireEvent(\"change:cssClass\", { value: this.cssClass });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the canvas element of this figures. This can be used to determine whenever an element\r\n * is added or removed to the canvas.\r\n *\r\n * @param {draw2d.Canvas} canvas the new parent of the figure or null\r\n */\n setCanvas: function setCanvas(canvas) {\n // remove the shape if we reset the canvas and the element\n // was already drawn\n if (canvas === null && this.shape !== null) {\n if (this.isSelected()) {\n this.unselect();\n }\n this.shape.remove();\n this.shape = null;\n }\n\n this.canvas = canvas;\n\n if (this.canvas !== null) {\n this.getShapeElement();\n }\n\n // reset the attribute cache. We must start by paint all attributes\n //\n this.lastAppliedAttributes = {};\n\n if (canvas === null) {\n this.stopTimer();\n } else {\n if (this.timerInterval >= this.MIN_TIMER_INTERVAL) {\n this.startTimer(this.timerInterval);\n }\n }\n\n this.children.each(function (i, e) {\n e.figure.setCanvas(canvas);\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the current assigned canvas container.\r\n *\r\n * @return {draw2d.Canvas}\r\n */\n getCanvas: function getCanvas() {\n return this.canvas;\n },\n\n /**\r\n * @method\r\n * Start a timer which calls the onTimer method in the given interval.\r\n *\r\n * @param {Number} milliSeconds\r\n */\n startTimer: function startTimer(milliSeconds) {\n var _this3 = this;\n\n this.stopTimer();\n this.timerInterval = Math.max(this.MIN_TIMER_INTERVAL, milliSeconds);\n\n if (this.canvas !== null) {\n this.timerId = window.setInterval(function () {\n _this3.onTimer();\n _this3.fireEvent(\"timer\");\n }, this.timerInterval);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Stop the internal timer.\r\n *\r\n */\n stopTimer: function stopTimer() {\n if (this.timerId >= 0) {\n window.clearInterval(this.timerId);\n this.timerId = -1;\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Callback method for the internal timer handling<br>\r\n * Inherit classes must override this method if they want use the timer feature.\r\n *\r\n * // Alternatively you can register for this event with\r\n * figure.on(\"timer\", function(emitter){\r\n * alert(\"timer fired\");\r\n * });\r\n *\r\n * @template\r\n */\n onTimer: function onTimer() {},\n\n /**\r\n * @method\r\n * Moves the element so it is the closest to the viewer’s eyes, on top of other elements. Additional\r\n * the internal model changed as well.\r\n *\r\n * Optional: Inserts current object in front of the given one.\r\n *\r\n * @param {draw2d.Figure} [figure] move current object in front of the given one.\r\n * @since 3.0.0\r\n */\n toFront: function toFront(figure) {\n // ensure that the z-oder is still correct if the figure is assigned\n // to a StrongComposite\n //\n if (this.composite instanceof _packages2.default.shape.composite.StrongComposite && typeof figure !== \"undefined\") {\n var indexFigure = figure.getZOrder();\n var indexComposite = this.composite.getZOrder();\n if (indexFigure < indexComposite) {\n figure = this.composite;\n }\n }\n\n if (typeof figure === \"undefined\") {\n this.getShapeElement().toFront();\n\n if (this.canvas !== null) {\n var figures = this.canvas.getFigures();\n var lines = this.canvas.getLines();\n if (figures.remove(this) !== null) {\n figures.add(this);\n } else if (lines.remove(this) !== null) {\n lines.add(this);\n }\n }\n } else {\n this.getShapeElement().insertAfter(figure.getTopLevelShapeElement());\n\n if (this.canvas !== null) {\n var _figures = this.canvas.getFigures();\n var _lines = this.canvas.getLines();\n if (_figures.remove(this) !== null) {\n var index = _figures.indexOf(figure);\n _figures.insertElementAt(this, index + 1);\n } else if (_lines.remove(this) !== null) {\n _lines.add(this);\n }\n }\n }\n\n // bring all children in front of the parent\n var _this = this;\n this.children.each(function (i, child) {\n child.figure.toFront(_this);\n });\n\n // and last but not lease the ResizeHandles if any present\n //\n this.selectionHandles.each(function (i, handle) {\n handle.toFront();\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Moves the element to the background. Additional\r\n * the internal model changed as well.\r\n *\r\n * @since 4.7.2\r\n */\n toBack: function toBack(figure) {\n // it is not allowed that a figure is behind an assigned composite\n //\n if (this.composite instanceof _packages2.default.shape.composite.StrongComposite) {\n this.toFront(this.composite);\n return;\n }\n\n if (this.canvas !== null) {\n var figures = this.canvas.getFigures();\n var lines = this.canvas.getLines();\n if (figures.remove(this) !== null) {\n figures.insertElementAt(this, 0);\n } else if (lines.remove(this) !== null) {\n lines.insertElementAt(this, 0);\n }\n if (typeof figure !== \"undefined\") {\n this.getShapeElement().insertBefore(figure.getShapeElement());\n } else {\n this.getShapeElement().toBack();\n }\n }\n\n // Bring all children in front of \"this\" figure\n //\n var _this = this;\n this.children.each(function (i, child) {\n child.figure.toFront(_this);\n }, true);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Install a new edit policy to the figure. Each editpolicy is able to focus on a single editing\r\n * task or group of related tasks. This also allows editing behavior to be selectively reused across\r\n * different figure implementations. Also, behavior can change dynamically, such as when the layouts\r\n * or routing methods change.\r\n *\r\n * Example for limited DragDrop behavior can be a draw2d.layout.constraint.RegionConstriantPolicy.\r\n *\r\n * @param {draw2d.policy.EditPolicy} policy\r\n */\n installEditPolicy: function installEditPolicy(policy) {\n var _this4 = this;\n\n // it is only possible to install one SelectionFeedbackPolicy at once\n //\n if (policy instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n this.editPolicy.grep(function (p) {\n var stay = !(p instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy);\n if (!stay) {\n\n p.onUninstall(_this4);\n }\n return stay;\n });\n }\n policy.onInstall(this);\n this.editPolicy.add(policy);\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * UnInstall the edit policy from the figure. Either the instance itself if found\r\n * or all kind of the given edit policies.\r\n *\r\n *\r\n * @param {draw2d.policy.EditPolicy} policy\r\n * @since 4.81\r\n */\n uninstallEditPolicy: function uninstallEditPolicy(policy) {\n var removedPolicy = this.editPolicy.remove(policy);\n\n // we found the policy and we are happy\n //\n if (removedPolicy !== null) {\n removedPolicy.onUninstall(this);\n return;\n }\n\n // The policy isn'T part of the figure. In this case we \"think\" the user want\n // deinstall all instances of the policy\n //\n var _this = this;\n var name = typeof policy === \"string\" ? policy : policy.NAME;\n this.editPolicy.grep(function (p) {\n if (p.NAME === name) {\n p.onUninstall(_this);\n return false;\n }\n return true;\n });\n },\n\n /**\r\n * @method\r\n * Add a child figure to the figure. The hands over figure doesn't support drag&drop\r\n * operations. It's only a decorator for the connection.<br>\r\n * Mainly for labels or other decorations\r\n *\r\n *\r\n * let start = new draw2d.shape.node.Start({x:80, y:150});\r\n * start.add(new draw2d.shape.basic.Label({text:\"Test Label\"}), new draw2d.layout.locator.TopLocator());\r\n *\r\n * canvas.add( start);\r\n *\r\n * @param {draw2d.Figure} child the figure to add as decoration to the connection.\r\n * @param {draw2d.layout.locator.Locator} locator the locator for the child.\r\n * @param {Number} [index] optional index where to insert the figure\r\n **/\n add: function add(child, locator, index) {\n if (typeof locator === \"undefined\" || locator === null) {\n throw \"Second parameter 'locator' is required for method 'Figure#add'\";\n }\n\n // the child is now a slave of the parent\n //\n child.setParent(this);\n\n // inform the locator that a new child is bounded to the parent\n // The call must happen after parent assignment. Reason: the locator\n // can override some behaviours which are propagated from the parent.\n //\n locator.bind(this, child);\n\n child.on(\"resize\", this.relocateChildrenEventCallback);\n\n if (!isNaN(parseInt(index))) {\n this.children.insertElementAt({ figure: child, locator: locator }, index);\n } else {\n this.children.add({ figure: child, locator: locator });\n }\n\n if (this.canvas !== null) {\n child.setCanvas(this.canvas);\n }\n\n this.repaint();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove the child figure from this figure and the canvas\r\n *\r\n * @param {draw2d.Figure} child the figure to remove.\r\n *\r\n * @return {Object} the removed tupple of figure/locator or null if the child isn't found\r\n * @return {draw2d.Figure} return.figure The removed figure\r\n * @return {draw2d.shape.layout.Layout} return.locator The used locator of the figure\r\n *\r\n * @since 5.0.0\r\n **/\n remove: function remove(child) {\n if (typeof child === \"undefined\" || child === null) {\n debug.warn(\"The parameter child is required for Figure.remove\");\n return null;\n }\n\n var removed = null;\n this.children.grep(function (e) {\n var stay = e.figure !== child;\n if (!stay) {\n removed = e;\n }\n return stay;\n });\n\n if (removed !== null) {\n child.setParent(null);\n child.setCanvas(null);\n removed.locator.unbind(this, child);\n child.off(this.relocateChildrenEventCallback);\n\n this.repaint();\n return removed;\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Return all children/decorations of this shape which has been added with\r\n * draw2d.Figure.add\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getChildren: function getChildren() {\n return this.children.clone().map(function (e) {\n return e.figure;\n });\n },\n\n /**\r\n * @method\r\n * Remove all children/decorations of this shape\r\n *\r\n */\n resetChildren: function resetChildren() {\n this.children.each(function (i, e) {\n e.figure.setCanvas(null);\n });\n this.children = new _packages2.default.util.ArrayList();\n this.repaint();\n\n return this;\n },\n\n /**\r\n * @method\r\n * return the current SVG shape element or create it on demand.\r\n *\r\n * @protected\r\n */\n getShapeElement: function getShapeElement() {\n if (this.shape !== null) {\n return this.shape;\n }\n\n this.shape = this.createShapeElement();\n if (!this.isVisible()) {\n this.shape.hide();\n }\n\n // add CSS class to enable styling of the element with CSS rules/files\n //\n if (this.cssClass !== null) {\n this.shape.node.setAttribute(\"class\", this.cssClass);\n }\n\n return this.shape;\n },\n\n /**\r\n * @method\r\n * Get the top level shape element. May the figure has a set of SVG elements. In this case this\r\n * method must return the top level node.<br>\r\n * This method is used for the toFront/toBack method to order the nodes in the correct way.\r\n *\r\n * @since 5.0.0\r\n * @private\r\n */\n getTopLevelShapeElement: function getTopLevelShapeElement() {\n return this.getShapeElement();\n },\n\n /**\r\n * @method\r\n * Inherited classes must override this method to implement it's own draw functionality.\r\n *\r\n * @template\r\n * @abstract\r\n */\n createShapeElement: function createShapeElement() {\n throw \"Inherited class [\" + this.NAME + \"] must override the abstract method createShapeElement\";\n },\n\n /**\r\n * @method\r\n * propagate all attributes like color, stroke,... to the shape element\r\n *\r\n * @param {Object} [attributes] the style attributes for the SVG shape\r\n * @private\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return this;\n }\n var _this = this;\n attributes = attributes || {};\n\n if (this.visible === true) {\n if (this.shape.isVisible() === false) {\n if (!isNaN(parseFloat(attributes.visibleDuration))) {\n $(this.shape.node).fadeIn(attributes.visibleDuration, function () {\n _this.shape.show();\n });\n } else {\n this.shape.show();\n }\n }\n } else {\n if (this.shape.isVisible() === true) {\n if (!isNaN(parseFloat(attributes.visibleDuration))) {\n $(this.shape.node).fadeOut(attributes.visibleDuration, function () {\n _this.shape.hide();\n });\n } else {\n this.shape.hide();\n }\n }\n return this;\n }\n\n // enrich with common properties\n attributes.opacity = this.alpha;\n\n // performance improvement\n // Only apply attributes which has changed. This ends in a big performance improvement\n // because the raphael shape isn't redraw at all.\n //\n attributes = _JSONUtil2.default.flatDiff(attributes, this.lastAppliedAttributes);\n this.lastAppliedAttributes = attributes;\n\n if (Object.getOwnPropertyNames(attributes).length > 0) {\n this.shape.attr(attributes);\n }\n\n this.applyTransformation();\n\n // Relocate all children of the figure.\n // This means that the Locator can calculate the new Position of the child.\n // This is not the best place for this. Move it to dim/size/shape changing\n // methods of the figure. A \"repaint\" isn't always dimension changing the figure.\n //\n this.children.each(function (i, e) {\n e.locator.relocate(i, e.figure);\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * apply a transformation to the shape like rotation, translate,..\r\n *\r\n * @private\r\n * @template\r\n */\n applyTransformation: function applyTransformation() {\n return this;\n },\n\n /**\r\n * @method\r\n * Highlight the element or remove the highlighting\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * glow: flag\r\n * });\r\n *\r\n * @param {Boolean} flag indicates glow/noGlow\r\n * @template\r\n */\n setGlow: function setGlow(flag) {\n // do nothing in the base class.\n // Subclasses must implement this method.\n\n return this;\n },\n\n /**\r\n * @method\r\n * Allow dragging only when the cursor is over a specific part of the figure.\r\n * <br>\r\n * Override this method to specify the bounding box of an element or a draw2d.util.ArrayList\r\n * of draw2d.geo.Rectangle of bounding boxes used to drag the figure. The returned coordinates\r\n * are absolute coordinates to the canvas.\r\n * <br>\r\n * <br>\r\n * Default implementation returns <b>null</b> to indicate to use the complete figures as\r\n * drag handle.\r\n *\r\n * @since 5.6.0\r\n * @returns {draw2d.geo.Rectangle|draw2d.util.ArrayList}\r\n */\n getHandleBBox: function getHandleBBox() {\n return null;\n },\n\n /**\r\n * @method\r\n * Called if the drag and drop action begins. You can return [false] if you\r\n * want avoid that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} true if the figure accepts dragging\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n this.isInDragDrop = false;\n\n // Check whenever the figures has a drag-handle. Allow drag&drop\n // operation only if the x/y is inside this area.\n //\n // @since 5.6.0\n var bbox = this.getHandleBBox();\n if (bbox !== null && bbox.translate(this.getAbsolutePosition().scale(-1)).hitTest(x, y) === false) {\n // design failure: we must catch the figure below the mouse to forward\n // the panning event to this figure. Special handling to provide sliders\n // and other UI elements which requires the panning event. Hack.\n this.panningDelegate = this.getBestChild(this.getX() + x, this.getY() + y);\n if (this.panningDelegate !== null) {\n // transform x/y relative to the panning figure and request the dragStart event\n this.panningDelegate.onDragStart(x - this.panningDelegate.x, y - this.panningDelegate.y, shiftKey, ctrlKey);\n }\n return false;\n }\n\n this.command = this.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE));\n\n if (this.command !== null) {\n this.ox = this.getX();\n this.oy = this.getY();\n this.isInDragDrop = true;\n\n // notify all installed policies\n //\n var _this = this;\n var canStartDrag = true;\n\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n canStartDrag = canStartDrag && e.onDragStart(_this.canvas, _this, x, y, shiftKey, ctrlKey);\n }\n });\n\n if (canStartDrag) {\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragstart\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n }\n return canStartDrag;\n }\n\n return false;\n },\n\n /**\r\n * @method\r\n * Don't call them manually. This will be done by the framework.<br>\r\n * Will be called if the object are moved via drag and drop.\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call\r\n * the super implementation via <code>this._super(dx, dy, dx2, dy2);</code>\r\n *\r\n * @private\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n var _this5 = this;\n\n // apply all EditPolicy for DragDrop Operations\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n var _newPos = e.adjustPosition(_this5, _this5.ox + dx, _this5.oy + dy);\n if (_newPos) {\n dx = _newPos.x - _this5.ox;\n dy = _newPos.y - _this5.oy;\n }\n }\n });\n\n var newPos = new _packages2.default.geo.Point(this.ox + dx, this.oy + dy);\n\n // Adjust the new location if the object can snap to a helper\n // like grid, geometry, ruler,...\n //\n if (this.getCanSnapToHelper()) {\n newPos = this.getCanvas().snapToHelper(this, newPos);\n }\n\n this.setPosition(newPos);\n\n // notify all installed policies\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.onDrag(_this5.canvas, _this5);\n }\n });\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"drag\", { dx: dx, dy: dy, dx2: dx2, dy2: dy2, shiftKey: shiftKey, ctrlKey: ctrlKey });\n },\n\n /**\r\n * @method\r\n * Called by the framework if the figure returns false for the drag operation. In this\r\n * case we send a \"panning\" event - mouseDown + mouseMove. This is very useful for\r\n * UI-Widget like slider, spinner,...\r\n *\r\n * // You can alternatively register an event handler with:\r\n * figure.on(\"panning\", function(emitter, eventData){\r\n * alert(\"panning of the figure called\");\r\n * });\r\n *\r\n * @param {Number} dx the x difference between the mouse down operation and now\r\n * @param {Number} dy the y difference between the mouse down operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onPanning: function onPanning(dx, dy, dx2, dy2, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Called by the framework if the panning event of the figures ends. This happens\r\n * after the mous up event if the panning is active.\r\n *\r\n * // You can alternatively register an event handler with:\r\n * figure.on(\"panningEnd\", function(emitter){\r\n * alert(\"panning of the figure called\");\r\n * });\r\n *\r\n */\n onPanningEnd: function onPanningEnd() {},\n\n /**\r\n * @method\r\n * Will be called after a drag and drop action.<br>\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call\r\n * the super implementation via <code>this._super();</code>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @template\r\n **/\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n var _this6 = this;\n\n // Element ist zwar schon an seine Position, das Command muss aber trotzdem\n // in dem CommandStack gelegt werden damit das Undo funktioniert.\n //\n if (this.command !== null) {\n this.command.setPosition(this.x, this.y);\n this.canvas.getCommandStack().execute(this.command);\n this.command = null;\n }\n this.isInDragDrop = false;\n this.panningDelegate = null;\n\n // notify all installed policies\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.onDragEnd(_this6.canvas, _this6, x, y, shiftKey, ctrlKey);\n }\n });\n\n this.fireEvent(\"move\", { figure: this, dx: 0, dy: 0 });\n this.fireEvent(\"change:x\", { figure: this, dx: 0 });\n this.fireEvent(\"change:y\", { figure: this, dy: 0 });\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragend\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag&drop operations if the user drag a figure over this figure\r\n *\r\n * @param {draw2d.Figure} draggedFigure The figure which is currently dragging\r\n *\r\n * @return {draw2d.Figure} the figure which should receive the drop event or null if the element didn't want a drop event\r\n * @since 6.1.0\r\n * @private\r\n **/\n delegateTarget: function delegateTarget(draggedFigure) {\n var _this7 = this;\n\n var delegate = draggedFigure;\n this.getCanvas().getDropInterceptorPolicies().each(function (i, policy) {\n delegate = policy.delegateTarget(draggedFigure, _this7);\n if (delegate !== null) {\n return false; // break the loop\n }\n });\n\n return delegate;\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag&drop operations if the user drag a figure over this figure\r\n *\r\n * @param {draw2d.Figure} draggedFigure The figure which is currently dragging\r\n *\r\n * @template\r\n **/\n onDragEnter: function onDragEnter(draggedFigure) {},\n\n /**\r\n * @method\r\n * Called if the DragDrop object leaving the current hover figure.\r\n *\r\n * @param {draw2d.Figure} draggedFigure The figure which is currently dragging\r\n * @template\r\n **/\n onDragLeave: function onDragLeave(draggedFigure) {},\n\n /**\r\n * @method\r\n * Called if the user drop this element onto the dropTarget. This event is ONLY fired if the\r\n * shape return \"this\" in the {@link draw2d.Figure#onDragEnter} method.\r\n *\r\n *\r\n * @param {draw2d.Figure} dropTarget The drop target.\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n **/\n onDrop: function onDrop(dropTarget, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Called if the user dropped an figure onto this element. This event is ONLY fired if the\r\n * in the canvas installed {@link draw2d.policy.canvas.DropInterceptorPolicy} allow this.\r\n *\r\n *\r\n * @param {draw2d.Figure} droppedFigure The dropped figure.\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n * @since 4.8.0\r\n **/\n onCatch: function onCatch(droppedFigure, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Callback method for the mouse enter event. Usefull for mouse hover-effects.\r\n * Override this method for your own effects. Don't call them manually.\r\n *\r\n * @template\r\n **/\n onMouseEnter: function onMouseEnter() {},\n\n /**\r\n * @method\r\n * Callback method for the mouse leave event. Useful for mouse hover-effects.\r\n *\r\n * @template\r\n **/\n onMouseLeave: function onMouseLeave() {},\n\n /**\r\n * @method\r\n * Called when a user dbl clicks on the element\r\n *\r\n * // Alternatively you can register an event with:\r\n * //\r\n * figure.on(\"dblclick\", function(emitter, event){\r\n * alert(\"user dbl click on the figure\");\r\n * });\r\n *\r\n * @template\r\n */\n onDoubleClick: function onDoubleClick() {},\n\n /**\r\n * @method\r\n * Called when a user clicks on the element.\r\n *\r\n * // You can alternatively register an event handler with:\r\n * figure.on(\"click\", function(emitter, event){\r\n * alert(\"user click on the figure\");\r\n * });\r\n *\r\n * @template\r\n * @deprecated\r\n */\n onClick: function onClick() {},\n\n /**\r\n * @method\r\n * called by the framework if the figure should show the context menu.<br>\r\n * The strategy to show the context menu depends on the platform. Either looong press or\r\n * right click with the mouse.\r\n *\r\n * // Alternatively you register for this event with:\r\n * figure.on(\"contextmenu\", function(emitter, event){\r\n * alert(\"user press the right mouse button for a context menu\");\r\n * });\r\n *\r\n * @param {Number} x the x-coordinate to show the menu\r\n * @param {Number} y the y-coordinate to show the menu\r\n * @since 1.1.0\r\n * @template\r\n */\n onContextMenu: function onContextMenu(x, y) {},\n\n /**\r\n * @method\r\n * Set the alpha blending of this figure.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * \"alpha\": percent\r\n * });\r\n *\r\n * // ...or:\r\n * figure.attr({\r\n * \"opacity\": percent\r\n * });\r\n *\r\n * @param {Number} percent value between [0..1].\r\n * @template\r\n **/\n setAlpha: function setAlpha(percent) {\n percent = Math.min(1, Math.max(0, parseFloat(percent)));\n if (percent === this.alpha) {\n return;\n }\n\n this.alpha = percent;\n this.repaint();\n this.fireEvent(\"change:opacity\", { value: this.alpha });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the alpha blending of the figure\r\n *\r\n * @return {Number} the current alpha blending\r\n */\n getAlpha: function getAlpha() {\n return this.alpha;\n },\n\n /**\r\n * @method\r\n * Set the rotation angle in degree [0..356]<br>\r\n * <b>Only steps of 90 degree is working well</b>\r\n * <br>\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * angle: angle\r\n * });\r\n *\r\n * @param {Number} angle the rotation angle in degree\r\n */\n setRotationAngle: function setRotationAngle(angle) {\n var _this8 = this;\n\n this.rotationAngle = angle;\n\n // Update the resize handles if the user change the position of the element via an API call.\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this8.canvas, _this8);\n }\n });\n\n this.fireEvent(\"change:angle\", { value: this.rotationAngle });\n this.repaint();\n\n return this;\n },\n\n /**\r\n * @method\r\n * return the rotation angle of the figure in degree of [0..356].\r\n *\r\n * <br>\r\n * <b>NOTE: this method is pre alpha and not for production. Only steps of 90 degree is working well</b>\r\n * <br>\r\n * @returns {Number}\r\n */\n getRotationAngle: function getRotationAngle() {\n return this.rotationAngle;\n },\n\n /**\r\n * @method\r\n * Show/hide the element. The element didn't receive any mouse events (click, dblclick) if you hide the\r\n * figure.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * visible: flag\r\n * });\r\n *\r\n * @param {Boolean} flag\r\n * @param {Number} [duration] the optional number for the fadeIn /fadeOut of the figure\r\n * @since 1.1.0\r\n */\n setVisible: function setVisible(flag, duration) {\n flag = !!flag;\n if (flag === this.visible) {\n return;\n }\n this.visible = flag;\n\n this.repaint({ visibleDuration: duration });\n\n if (this.visible) {\n this.fireEvent(\"show\");\n } else {\n this.fireEvent(\"hide\");\n }\n this.fireEvent(\"change:visibility\", { value: this.visible });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return true if the figure visible.\r\n *\r\n * @return {Boolean}\r\n * @since 1.1.0\r\n */\n isVisible: function isVisible() {\n return this.visible && this.shape !== null;\n },\n\n /**\r\n * @method\r\n * Guarantee, that the figure width/height will not be distorted. Applicable before calling setDimension().\r\n * It is false by default.\r\n *\r\n * @since 4.1.0\r\n * @param {Boolean} flag boolean flag if the figure should respect the aspect ratio\r\n */\n setKeepAspectRatio: function setKeepAspectRatio(flag) {\n this.keepAspectRatio = flag;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the flag if the shape keep the aspect ratio.\r\n *\r\n * @since 4.1.0\r\n */\n getKeepAspectRatio: function getKeepAspectRatio() {\n return this.keepAspectRatio;\n },\n\n /**\r\n * @method\r\n * Return the current z-index of the element. Currently this is an expensive method. The index will be calculated\r\n * all the time. Caching is not implemented at the moment.\r\n *\r\n * @return {Number}\r\n */\n getZOrder: function getZOrder() {\n if (this.shape === null) {\n return -1;\n }\n\n var i = 0;\n var child = this.shape.node;\n while ((child = child.previousSibling) !== null) {\n i++;\n }\n return i;\n },\n\n /**\r\n * @method\r\n * Set the flag if this object can snap to grid or geometry.\r\n * A window of dialog should set this flag to false.\r\n *\r\n * @param {Boolean} flag The snap to grid/geometry enable flag.\r\n *\r\n **/\n setCanSnapToHelper: function setCanSnapToHelper(flag) {\n this.canSnapToHelper = !!flag;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns true if the figure can snap to any helper like a grid, guide, geometrie\r\n * or something else.\r\n *\r\n * @return {Boolean}\r\n **/\n getCanSnapToHelper: function getCanSnapToHelper() {\n return this.canSnapToHelper;\n },\n\n /**\r\n *\r\n * @return {draw2d.geo.Point}\r\n **/\n getSnapToGridAnchor: function getSnapToGridAnchor() {\n return this.snapToGridAnchor;\n },\n\n /**\r\n * @method\r\n * Set the hot spot for all snapTo### operations.\r\n *\r\n * @param {draw2d.geo.Point} point\r\n **/\n setSnapToGridAnchor: function setSnapToGridAnchor(point) {\n this.snapToGridAnchor = point;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the width of the figure and consider the minWidth attribute\r\n *\r\n * @param {Number} width the new width of the figure\r\n * @since 5.1.0\r\n */\n setWidth: function setWidth(width) {\n this.setDimension(parseFloat(width), this.getHeight());\n this.fireEvent(\"change:width\", { value: this.width });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The current width of the figure.\r\n *\r\n * @type {Number}\r\n **/\n getWidth: function getWidth() {\n return this.width;\n },\n\n /**\r\n * @method\r\n * Set the heigth of the figure and consider the minWidth attribute\r\n *\r\n * @param {Number} height the new height of the figure\r\n * @since 5.1.0\r\n */\n setHeight: function setHeight(height) {\n this.setDimension(this.getWidth(), parseFloat(height));\n this.fireEvent(\"change:height\", { value: this.height });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The current height of the figure.\r\n *\r\n * @return {Number}\r\n **/\n getHeight: function getHeight() {\n return this.height;\n },\n\n /**\r\n * @method\r\n * This value is relevant for the interactive resize of the figure.\r\n *\r\n * @return {Number} Returns the min. width of this object.\r\n */\n getMinWidth: function getMinWidth() {\n return this.minWidth;\n },\n\n /**\r\n * @method\r\n * Set the minimum width of this figure\r\n *\r\n * @param {Number} w\r\n */\n setMinWidth: function setMinWidth(w) {\n this.minWidth = parseFloat(w);\n this.fireEvent(\"change:minWidth\", { value: this.minWidth });\n\n // fit the width with the new constraint\n this.setWidth(this.getWidth());\n\n return this;\n },\n\n /**\r\n * @method\r\n * This value is relevant for the interactive resize of the figure.\r\n *\r\n * @return {Number} Returns the min. height of this object.\r\n */\n getMinHeight: function getMinHeight() {\n return this.minHeight;\n },\n\n /**\r\n * @method\r\n * Set the minimum height of the figure.\r\n *\r\n * @param {Number} h\r\n */\n setMinHeight: function setMinHeight(h) {\n this.minHeight = parseFloat(h);\n this.fireEvent(\"change:minHeight\", { value: this.minHeight });\n\n // fit the height with the new constraint\n this.setHeight(this.getHeight());\n\n return this;\n },\n\n /**\r\n * @method\r\n * the the x-offset related to the parent figure or canvas\r\n *\r\n * @param {Number} x the new x offset of the figure\r\n * @since 5.0.8\r\n */\n setX: function setX(x) {\n this.setPosition(parseFloat(x), this.y);\n this.fireEvent(\"change:x\", { value: this.x });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The x-offset related to the parent figure or canvas.\r\n *\r\n * @return {Number} the x-offset to the parent figure\r\n **/\n getX: function getX() {\n return this.x;\n },\n\n /**\r\n * @method\r\n * the the y-offset related to the parent figure or canvas\r\n *\r\n * @param {Number} y the new x offset of the figure\r\n * @since 5.0.8\r\n */\n setY: function setY(y) {\n this.setPosition(this.x, parseFloat(y));\n this.fireEvent(\"change:y\", { value: this.y });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The y-offset related to the parent figure or canvas.\r\n *\r\n * @return {Number} The y-offset to the parent figure.\r\n **/\n getY: function getY() {\n return this.y;\n },\n\n /**\r\n * @method\r\n * The x-offset related to the canvas.\r\n *\r\n * @return {Number} the x-offset to the canvas\r\n **/\n getAbsoluteX: function getAbsoluteX() {\n if (!this.parent) {\n return this.getX();\n }\n\n return this.getX() + this.parent.getAbsoluteX();\n },\n\n /**\r\n * @method\r\n * The y-offset related to the canvas.\r\n *\r\n * @return {Number} The y-offset to the canvas.\r\n **/\n getAbsoluteY: function getAbsoluteY() {\n if (!this.parent) {\n return this.getY();\n }\n return this.getY() + this.parent.getAbsoluteY();\n },\n\n /**\r\n * @method\r\n * Returns the absolute y-position of the port.\r\n *\r\n * @type {draw2d.geo.Point}\r\n **/\n getAbsolutePosition: function getAbsolutePosition() {\n return new _packages2.default.geo.Point(this.getAbsoluteX(), this.getAbsoluteY());\n },\n\n /**\r\n * @method\r\n * Returns the absolute y-position of the port.\r\n *\r\n * @return {draw2d.geo.Rectangle}\r\n **/\n getAbsoluteBounds: function getAbsoluteBounds() {\n return new _packages2.default.geo.Rectangle(this.getAbsoluteX(), this.getAbsoluteY(), this.getWidth(), this.getHeight());\n },\n\n /**\r\n * @method\r\n * Set the position of the object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * x: x,\r\n * y: y\r\n * });\r\n *\r\n * @param {Number|draw2d.geo.Point} x The new x coordinate of the figure or the x/y coordinate if it is an draw2d.geo.Point\r\n * @param {Number} [y] The new y coordinate of the figure\r\n **/\n setPosition: function setPosition(x, y) {\n var _this9 = this;\n\n if (typeof x === \"undefined\") {\n debugger;\n }\n\n var oldPos = { x: this.x, y: this.y };\n\n if (x instanceof _packages2.default.geo.Point) {\n this.x = x.x;\n this.y = x.y;\n } else {\n this.x = x;\n this.y = y;\n }\n\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n var newPos = e.adjustPosition(_this9, _this9.x, _this9.y);\n _this9.x = newPos.x;\n _this9.y = newPos.y;\n }\n });\n\n this.repaint();\n\n // Update the resize handles if the user change the position of the\n // element via an API call.\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this9.canvas, _this9);\n }\n });\n\n var event = { figure: this, dx: this.x - oldPos.x, dy: this.y - oldPos.y };\n this.fireEvent(\"move\", event);\n this.fireEvent(\"change:x\", event);\n this.fireEvent(\"change:y\", event);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the current position of the figure\r\n *\r\n * @return {draw2d.geo.Point}\r\n * @since 2.0.0\r\n */\n getPosition: function getPosition() {\n return new _packages2.default.geo.Point(this.getX(), this.getY());\n },\n\n /**\r\n * @method\r\n * Translate the figure with the given x/y offset.\r\n *\r\n * @param {Number} dx The x offset to translate\r\n * @param {Number} dy The y offset to translate\r\n **/\n translate: function translate(dx, dy) {\n this.setPosition(this.getX() + dx, this.getY() + dy);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the new width and height of the figure.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * width: w,\r\n * height: h\r\n * });\r\n *\r\n * @param {Number} w The new width of the figure\r\n * @param {Number} h The new height of the figure\r\n **/\n setDimension: function setDimension(w, h) {\n var _this10 = this;\n\n var old = { width: this.width, height: this.height };\n\n w = Math.max(this.getMinWidth(), w);\n h = Math.max(this.getMinHeight(), h);\n\n if (this.width === w && this.height === h) {\n // required if an inherit figure changed the w/h to a given constraint.\n // In this case the Resize handles must be informed that the shape didn't resized.\n // because the minWidth/minHeight did have a higher prio.\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this10.canvas, _this10);\n }\n });\n return this;\n }\n\n // apply all EditPolicy to adjust/modify the new dimension\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n var newDim = e.adjustDimension(_this10, w, h);\n w = newDim.w;\n h = newDim.h;\n }\n });\n\n // respect the aspect ratio if required\n //\n if (this.keepAspectRatio === true) {\n if (w >= this.getMinWidth()) {\n // scale the height to the given ratio\n h = this.getHeight() * (w / this.getWidth());\n // and apply the new dimension only if the values are in range of the given constraints\n if (h >= this.getMinHeight()) {\n this.width = w;\n this.height = h;\n }\n }\n } else {\n this.width = Math.max(this.getMinWidth(), w);\n this.height = Math.max(this.getMinHeight(), h);\n }\n\n this.repaint();\n\n this.fireEvent(\"resize\");\n this.fireEvent(\"change:dimension\", { value: { height: this.height, width: this.width, old: old } });\n\n // Update the resize handles if the user change the position of the element via an API call.\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this10.canvas, _this10);\n }\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the bounding box of the figure\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * width: w,\r\n * height: h,\r\n * x: x,\r\n * y: y\r\n * });\r\n *\r\n * // or\r\n * figure.attr({\r\n * boundingBox: {x:1, y:100, width:30, height:30}\r\n * });\r\n *\r\n * @param {draw2d.geo.Rectangle} rect\r\n * @since 4.8.0\r\n */\n setBoundingBox: function setBoundingBox(rect) {\n rect = new _packages2.default.geo.Rectangle(rect);\n\n var orig = this.repaintBlocked;\n this.repaintBlocked = true;\n this.setPosition(rect.x, rect.y);\n this.repaintBlocked = orig;\n this.setDimension(rect.w, rect.h);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the bounding box of the figure in absolute position to the canvas.\r\n *\r\n * @return {draw2d.geo.Rectangle}\r\n **/\n getBoundingBox: function getBoundingBox() {\n return new _packages2.default.geo.Rectangle(this.getAbsoluteX(), this.getAbsoluteY(), this.getWidth(), this.getHeight());\n },\n\n /**\r\n * @method\r\n * Detect whenever the hands over coordinate is inside the figure.\r\n * The default implementation is a simple bounding box test.\r\n *\r\n * @param {Number} iX\r\n * @param {Number} iY\r\n * @param {Number} [corona]\r\n *\r\n * @returns {Boolean}\r\n */\n hitTest: function hitTest(iX, iY, corona) {\n if (typeof corona === \"number\") {\n return this.getBoundingBox().scale(corona, corona).hitTest(iX, iY);\n }\n return this.getBoundingBox().hitTest(iX, iY);\n },\n\n /**\r\n * @method\r\n * Switch on/off the drag drop behaviour of this object\r\n *\r\n * @param {Boolean} flag The new drag drop indicator\r\n **/\n setDraggable: function setDraggable(flag) {\n this.draggable = !!flag;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the Drag drop enable flag\r\n *\r\n * @return {Boolean} The new drag drop indicator\r\n **/\n isDraggable: function isDraggable() {\n // delegate to the composite if given\n if (this.composite !== null) {\n return this.composite.isMemberDraggable(this, this.draggable);\n }\n\n return this.draggable;\n },\n\n /**\r\n * @method\r\n * Returns the true if the figure can be resized.\r\n *\r\n * @return {Boolean}\r\n **/\n isResizeable: function isResizeable() {\n return this.resizeable;\n },\n\n /**\r\n * @method\r\n * You can change the resizeable behaviour of this object. Hands over [false] and\r\n * the figure has no resizehandles if you select them with the mouse.<br>\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * resizeable: flag\r\n * });\r\n *\r\n * @param {Boolean} flag The resizeable flag.\r\n **/\n setResizeable: function setResizeable(flag) {\n this.resizeable = !!flag;\n this.fireEvent(\"change:resizeable\", { value: this.resizeable });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Indicates whenever the element is selectable by user interaction or API.\r\n *\r\n * @return {Boolean}\r\n **/\n isSelectable: function isSelectable() {\n // delegate to the composite if given\n if (this.composite !== null) {\n return this.composite.isMemberSelectable(this, this.selectable);\n }\n\n return this.selectable;\n },\n\n /**\r\n * @method\r\n * You can change the selectable behavior of this object. Hands over [false] and\r\n * the figure has no selection handles if you try to select them with the mouse.<br>\r\n *\r\n * @param {Boolean} flag The selectable flag.\r\n **/\n setSelectable: function setSelectable(flag) {\n this.selectable = !!flag;\n this.fireEvent(\"change:selectable\", { value: this.selectable });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return true if the object doesn't care about the aspect ratio.\r\n * You can change the height and width independent.<br>\r\n *\r\n * Replaced with \"getKeepAspectRatio\"\r\n * @return {Boolean}\r\n * @deprecated\r\n */\n isStrechable: function isStrechable() {\n return !this.getKeepAspectRatio();\n },\n\n /**\r\n * @method\r\n * Return false if you avoid that the user can delete your figure.\r\n * Sub class can override this method.\r\n *\r\n * @return {Boolean}\r\n **/\n isDeleteable: function isDeleteable() {\n return this.deleteable;\n },\n\n /**\r\n * @method\r\n * Set the flag if the shape is deleteable.\r\n *\r\n * @param {Boolean} flag enable or disable flag for the delete operation\r\n **/\n setDeleteable: function setDeleteable(flag) {\n this.deleteable = !!flag;\n this.fireEvent(\"change:deleteable\", { value: this.deleteable });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the parent of this figure.\r\n * Don't call them manually.\r\n *\r\n * @param {draw2d.Figure} parent The new parent of this figure\r\n * @private\r\n **/\n setParent: function setParent(parent) {\n this.parent = parent;\n\n if (parent !== null) {\n // inherit the selection handling impl from the parent\n this.setSelectionAdapter(parent.getSelectionAdapter());\n } else {\n // use default\n this.setSelectionAdapter(null);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the parent of this figure.\r\n *\r\n * @return {draw2d.Figure}\r\n **/\n getParent: function getParent() {\n return this.parent;\n },\n\n /**\r\n * @method\r\n * Check to see if a figure is a descendant of another figure.\r\n * <br>\r\n * The contains() method returns true if the figure provided by the argument is a descendant of this figure,\r\n * whether it is a direct child or nested more deeply. Otherwise, it returns false.\r\n *\r\n * @param {draw2d.Figure} containedFigure The figure that may be contained by (a descendant of) this figure.\r\n * @since 5.5.4\r\n */\n contains: function contains(containedFigure) {\n if (containedFigure.getParent() === this) {\n return true;\n }\n\n for (var i = 0, len = this.children.getSize(); i < len; i++) {\n var child = this.children.get(i).figure;\n if (child.contains(containedFigure)) {\n return true;\n }\n }\n return false;\n },\n\n /**\r\n * @method\r\n * Get the top most parent of this figure. This can be an layout figure or parent container\r\n *\r\n * @return {draw2d.Figure}\r\n * @since 5.0.6\r\n **/\n getRoot: function getRoot() {\n var root = this.parent;\n while (root !== null && root.parent !== null) {\n root = root.parent;\n }\n return root;\n },\n\n /**\r\n * @method\r\n * Set the assigned composite of this figure.\r\n *\r\n * @param {draw2d.shape.composite.StrongComposite} composite The assigned composite of this figure\r\n * @since 4.8.0\r\n **/\n setComposite: function setComposite(composite) {\n if (composite !== null && !(composite instanceof _packages2.default.shape.composite.StrongComposite)) {\n throw \"'composite must inherit from 'draw2d.shape.composite.StrongComposite'\";\n }\n\n this.composite = composite;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the assigned composite of this figure.\r\n *\r\n * @return {draw2d.shape.composite.StrongComposite}\r\n * @since 4.8.0\r\n **/\n getComposite: function getComposite() {\n return this.composite;\n },\n\n /**\r\n * @method\r\n * Execute all handlers and behaviors attached to the figure for the given event type.\r\n *\r\n *\r\n * @param {String} event the event to trigger\r\n * @param {Object} [args] optional parameters for the triggered event callback\r\n *\r\n * @since 5.0.0\r\n */\n fireEvent: function fireEvent(event, args) {\n try {\n if (typeof this.eventSubscriptions[event] === 'undefined') {\n return;\n }\n\n // avoid recursion\n if (this._inEvent === true) {\n return;\n }\n this._inEvent = true;\n var subscribers = this.eventSubscriptions[event];\n for (var i = 0; i < subscribers.length; i++) {\n subscribers[i](this, args);\n }\n } catch (exc) {\n console.log(exc);\n throw exc;\n } finally {\n this._inEvent = false;\n\n // fire a generic change event if an attribute has changed\n // required for some DataBinding frameworks or for the Backbone.Model compatibility\n // the event \"change\" with the corresponding attribute name as additional parameter\n if (event.substring(0, 7) === \"change:\") {\n this.fireEvent(\"change\", event.substring(7));\n }\n }\n },\n\n /**\r\n * @method\r\n * Attach an event handler function for one or more events to the figure.\r\n * To remove events bound with .on(), see {@link #off}.\r\n *\r\n * possible events are:<br>\r\n * <ul>\r\n * <li>click</li>\r\n * <li>dblclick</li>\r\n * <li>move</li>\r\n * <li>resize</li>\r\n * <li>timer</li>\r\n * <li>contextmenu</li>\r\n * <li>show</li>\r\n * <li>hide</li>\r\n * <li>added</li>\r\n * <li>removed</li>\r\n * <li>change:[attr]</li>\r\n * </ul>\r\n *\r\n * @param {String} event One or more space-separated event types\r\n * @param {Function} callback A function to execute when the event is triggered.\r\n * @param {draw2d.Figure} callback.emitter the emitter of the event\r\n * @param {Object} [callback.obj] optional event related data\r\n * @param {Object} [context] optional context of the function callback.\r\n * @since 5.0.0\r\n */\n on: function on(event, callback, context) {\n var events = event.split(\" \");\n if (typeof callback === \"undefined\") {\n debugger;\n }\n // the \"context\" param is add to be compatible with Backbone.Model.\n // The project \"backbone.ModelBinder\" requires this signature and we want to be nice.\n //\n if (context) {\n callback = callback.bind(context);\n callback.___originalCallback = callback;\n }\n\n for (var i = 0; i < events.length; i++) {\n if (typeof this.eventSubscriptions[events[i]] === 'undefined') {\n this.eventSubscriptions[events[i]] = [];\n }\n // avoid duplicate registration for the same event with the same callback method\n if (-1 !== $.inArray(callback, this.eventSubscriptions[events[i]])) {\n // debugger\n } else {\n this.eventSubscriptions[events[i]].push(callback);\n }\n }\n return this;\n },\n\n /**\r\n * @method\r\n * The .off() method removes event handlers that were attached with {@link #on}.<br>\r\n * Calling .off() with no arguments removes all handlers attached to the elements.<br>\r\n * <br>\r\n * If a simple event name such as \"move\" is provided, all events of that type are removed from the figure.\r\n *\r\n *\r\n * @param {String|Function} eventOrFunction the event name of the registerd function or the function itself\r\n * @since 5.0.0\r\n */\n off: function off(eventOrFunction) {\n if (typeof eventOrFunction === \"undefined\") {\n this.eventSubscriptions = {};\n } else if (typeof eventOrFunction === 'string') {\n this.eventSubscriptions[eventOrFunction] = [];\n } else {\n for (var event in this.eventSubscriptions) {\n this.eventSubscriptions[event] = this.eventSubscriptions[event].filter(function (callback) {\n if (typeof callback.___originalCallback !== \"undefined\") {\n return callback.___originalCallback !== eventOrFunction;\n }\n return callback !== eventOrFunction;\n });\n }\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the best figure at the location [x,y]. It is a simple hit test. Keep in mind that only visible objects\r\n * are returned.\r\n *\r\n * @param {Number} x The x position.\r\n * @param {Number} y The y position.\r\n * @param {draw2d.Figure|Array} [figureToIgnore] The figures which should be ignored.\r\n **/\n getBestChild: function getBestChild(x, y, figureToIgnore) {\n if (!Array.isArray(figureToIgnore)) {\n if (figureToIgnore instanceof _packages2.default.Figure) {\n figureToIgnore = [figureToIgnore];\n } else {\n figureToIgnore = [];\n }\n }\n\n var result = null;\n\n // tool method to check recursive a figure for hitTest\n //\n var checkRecursive = function checkRecursive(children) {\n children.each(function (i, e) {\n var c = e.figure;\n checkRecursive(c.children);\n if (result === null && c.isVisible() === true && c.hitTest(x, y) === true && $.inArray(c, figureToIgnore) === -1) {\n result = c;\n }\n return result === null; // break the each-loop if we found an element\n });\n };\n\n checkRecursive(this.children);\n\n return result;\n },\n\n /**\r\n * @method\r\n * Returns the Command to perform the specified Request or null.\r\n *\r\n * @param {draw2d.command.CommandType} request describes the Command being requested\r\n * @return {draw2d.command.Command} null or a Command\r\n * @private\r\n **/\n createCommand: function createCommand(request) {\n if (request === null) {\n return null;\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE) {\n if (!this.isDraggable()) {\n return null;\n }\n return new _packages2.default.command.CommandMove(this);\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.DELETE) {\n if (!this.isDeleteable()) {\n return null;\n }\n return new _packages2.default.command.CommandDelete(this);\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.RESIZE) {\n if (!this.isResizeable()) {\n return null;\n }\n return new _packages2.default.command.CommandResize(this);\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Clone the figure. <br>\r\n * You must override and implement the methods <b>getPersistentAttributes</b> and <b>setPersistentAttributes</b> for your custom\r\n * figures if the have special attributes.\r\n *\r\n * The clone() method performs a deep copy of the object, meaning that it copies the children, ports and decorations\r\n * per default. You can control the clone procedure with the 'cloneMetaData'.\r\n *\r\n *\r\n * @param {Object} [cloneMetaData] controls the clone procedure\r\n * @param {Boolean} [cloneMetaData.excludeChildren] set it to true if you want exclude the children.\r\n *\r\n * @since 4.1.0\r\n * @experimental\r\n */\n clone: function clone(cloneMetaData) {\n cloneMetaData = (0, _extend2.default)({ exludeChildren: false }, cloneMetaData);\n\n var clone = eval(\"new \" + this.NAME + \"();\");\n var initialId = clone.id;\n\n clone.setPersistentAttributes(this.getPersistentAttributes());\n\n clone.id = initialId;\n\n // add all decorations to the memento\n //\n if (cloneMetaData.exludeChildren === false) {\n clone.resetChildren();\n this.children.each(function (i, entry) {\n var child = entry.figure.clone();\n // we can ignore the locator if this didn't provide a \"correct\" name, this can happen in some\n // Layout shapes like VerticalLayout or Horziontal Layout. This figures injects it own kind\n // of layouter...so didn'T care about this.\n\n var locator = entry.locator.NAME ? eval(\"new \" + entry.locator.NAME + \"();\") : null;\n clone.add(child, locator);\n });\n }\n\n return clone;\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @return\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n // force deep copy of userData to avoid side effects in the clone method.\n //\n var memento = {\n type: this.NAME,\n id: this.id,\n x: this.getX(),\n y: this.getY(),\n width: this.width,\n height: this.height,\n alpha: this.alpha,\n selectable: this.selectable,\n draggable: this.draggable,\n angle: this.rotationAngle,\n userData: (0, _extend2.default)(true, {}, this.userData)\n };\n\n if (this.cssClass !== null) {\n memento.cssClass = this.cssClass;\n }\n\n if (this.composite !== null) {\n memento.composite = this.composite.getId();\n }\n\n return memento;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this.id = memento.id;\n this.setPosition(parseFloat(memento.x), parseFloat(memento.y));\n\n // width and height are optional parameter for the JSON stuff.\n // We use the defaults if the attributes not present\n if (typeof memento.width !== \"undefined\") {\n this.width = parseFloat(memento.width);\n }\n\n if (typeof memento.height !== \"undefined\") {\n this.height = parseFloat(memento.height);\n }\n\n if (typeof memento.userData !== \"undefined\") {\n this.userData = memento.userData;\n }\n\n if (typeof memento.selectable !== \"undefined\") {\n this.selectable = memento.selectable;\n }\n\n if (typeof memento.draggable !== \"undefined\") {\n this.draggable = memento.draggable;\n }\n\n if (typeof memento.cssClass !== \"undefined\") {\n this.setCssClass(memento.cssClass);\n }\n\n if (typeof memento.alpha !== \"undefined\") {\n this.setAlpha(parseFloat(memento.alpha));\n }\n\n if (typeof memento.angle !== \"undefined\") {\n this.rotationAngle = parseFloat(memento.angle);\n }\n\n return this;\n }\n});\n\n/***/ }),\n\n/***/ \"./src/HeadlessCanvas.js\":\n/*!*******************************!*\\\n !*** ./src/HeadlessCanvas.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.HeadlessCanvas = Class.extend({\n NAME: \"draw2d.HeadlessCanvas\",\n\n /**\r\n * @constructor\r\n * Create a new canvas with the given HTML DOM references.\r\n *\r\n * @param {String} canvasId the id of the DOM element to use a parent container\r\n */\n init: function init() {\n // internal document with all figures, ports, ....\n //\n this.figures = new _packages2.default.util.ArrayList();\n this.lines = new _packages2.default.util.ArrayList(); // crap - why are connections not just figures. Design by accident\n this.commonPorts = new _packages2.default.util.ArrayList();\n\n this.eventSubscriptions = {};\n\n // The CommandStack for undo/redo operations\n //\n this.commandStack = new _packages2.default.command.CommandStack();\n },\n\n /**\r\n * @method\r\n * Reset the canvas and delete all model elements.<br>\r\n * You can now reload another model to the canvas with a {@link draw2d.io.Reader}\r\n *\r\n * @since 1.1.0\r\n */\n clear: function clear() {\n // internal document with all figures, ports, ....\n //\n this.figures = new _packages2.default.util.ArrayList();\n this.lines = new _packages2.default.util.ArrayList();\n this.commonPorts = new _packages2.default.util.ArrayList();\n\n this.commandStack.markSaveLocation();\n\n return this;\n },\n\n calculateConnectionIntersection: function calculateConnectionIntersection() {},\n\n /**\r\n * @method\r\n * Callback for any kind of image export tools to trigger the canvas to hide all unwanted\r\n * decorations. The method is called e.g. from the draw2d.io.png.Writer\r\n *\r\n * @since 4.0.0\r\n * @template\r\n */\n hideDecoration: function hideDecoration() {},\n\n /**\r\n * @method\r\n * callback method for any image export writer to reactivate the decoration\r\n * of the canvas. e.g. grids, rulers,...\r\n *\r\n *\r\n * @since 4.0.0\r\n * @template\r\n */\n showDecoration: function showDecoration() {},\n\n /**\r\n * @method\r\n * Add a figure at the given x/y coordinate. This method fires an event.\r\n *\r\n * Example:\r\n *\r\n * canvas.on(\"figure:add\", function(emitter, event){\r\n * alert(\"figure added:\");\r\n * });\r\n *\r\n * // or more general if you want catch all figure related events\r\n * //\r\n * canvas.on(\"figure\", function(emitter, event){\r\n * // use event.figure.getCanvas()===null to determine if the\r\n * // figure part of the canvas\r\n *\r\n * alert(\"figure added or removed:\");\r\n * });\r\n *\r\n * @param {draw2d.Figure} figure The figure to add.\r\n * @param {Number/draw2d.geo.Point} [x] The new x coordinate of the figure or the x/y coordinate if it is an draw2d.geo.Point\r\n * @param {Number} [y] The y position.\r\n **/\n add: function add(figure, x, y) {\n if (figure.getCanvas() === this) {\n return;\n }\n\n if (figure instanceof _packages2.default.shape.basic.Line) {\n this.lines.add(figure);\n } else {\n this.figures.add(figure);\n }\n figure.canvas = this;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns all lines/connections in this workflow/canvas.<br>\r\n *\r\n * @protected\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getLines: function getLines() {\n return this.lines;\n },\n\n /**\r\n * @method\r\n * Returns the internal figures.<br>\r\n *\r\n * @protected\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getFigures: function getFigures() {\n return this.figures;\n },\n\n /**\r\n * @method\r\n * Returns the line or connection with the given id.\r\n *\r\n * @param {String} id The id of the line.\r\n *\r\n * @return {draw2d.shape.basic.Line}\r\n **/\n getLine: function getLine(id) {\n var count = this.lines.getSize();\n for (var i = 0; i < count; i++) {\n var line = this.lines.get(i);\n if (line.getId() === id) {\n return line;\n }\n }\n return null;\n },\n\n /**\r\n * @method\r\n * Returns the figure with the given id.\r\n *\r\n * @param {String} id The id of the figure.\r\n * @return {draw2d.Figure}\r\n **/\n getFigure: function getFigure(id) {\n var figure = null;\n this.figures.each(function (i, e) {\n if (e.id === id) {\n figure = e;\n return false;\n }\n });\n return figure;\n },\n\n /**\r\n * @method\r\n * Register a port to the canvas. This is required for other ports to find a valid drop target.\r\n *\r\n * @param {draw2d.Port} port The new port which has been added to the Canvas.\r\n **/\n registerPort: function registerPort(port) {\n // All elements have the same drop targets.\n //\n if (!this.commonPorts.contains(port)) {\n this.commonPorts.add(port);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return all ports in the canvas\r\n *\r\n */\n getAllPorts: function getAllPorts() {\n return this.commonPorts;\n },\n\n /**\r\n * @method\r\n * Returns the command stack for the Canvas. Required for undo/redo support.\r\n *\r\n * @return {draw2d.command.CommandStack}\r\n **/\n getCommandStack: function getCommandStack() {\n return this.commandStack;\n },\n\n // NEW EVENT HANDLING SINCE VERSION 5.0.0\n /**\r\n * @method\r\n * Execute all handlers and behaviors attached to the canvas for the given event type.\r\n *\r\n *\r\n * @param {String} event the event to trigger\r\n * @param {Object} [args] optional parameters for the triggered event callback\r\n *\r\n * @since 5.0.0\r\n */\n fireEvent: function fireEvent(event, args) {\n if (typeof this.eventSubscriptions[event] === 'undefined') {\n return;\n }\n\n var subscribers = this.eventSubscriptions[event];\n for (var i = 0; i < subscribers.length; i++) {\n try {\n subscribers[i](this, args);\n } catch (exc) {\n console.log(exc);\n console.log(subscribers[i]);\n debugger;\n }\n }\n },\n\n /**\r\n * @method\r\n * Attach an event handler function for one or more events to the canvas.\r\n * To remove events bound with .on(), see {@link #off}.\r\n *\r\n * possible events are:<br>\r\n * <ul>\r\n * <li>reset</li>\r\n * <li>select</li>\r\n * </ul>\r\n *\r\n * Example:\r\n *\r\n * canvas.on(\"clear\", function(emitter, event){\r\n * alert(\"canvas.clear() called.\");\r\n * });\r\n *\r\n * canvas.on(\"select\", function(emitter,event){\r\n * if(event.figure!==null){\r\n * alert(\"figure selected\");\r\n * }\r\n * else{\r\n * alert(\"selection cleared\");\r\n * }\r\n * });\r\n *\r\n * @param {String} event One or more space-separated event types\r\n * @param {Function} callback A function to execute when the event is triggered.\r\n * @param {draw2d.Canvas} callback.emitter the emitter of the event\r\n * @param {Object} [callback.obj] optional event related data\r\n *\r\n * @since 5.0.0\r\n */\n on: function on(event, callback) {\n var events = event.split(\" \");\n for (var i = 0; i < events.length; i++) {\n if (typeof this.eventSubscriptions[events[i]] === 'undefined') {\n this.eventSubscriptions[events[i]] = [];\n }\n this.eventSubscriptions[events[i]].push(callback);\n }\n return this;\n },\n\n /**\r\n * @method\r\n * The .off() method removes event handlers that were attached with {@link #on}.<br>\r\n * Calling .off() with no arguments removes all handlers attached to the canvas.<br>\r\n * <br>\r\n * If a simple event name such as \"reset\" is provided, all events of that type are removed from the canvas.\r\n *\r\n *\r\n * @param {String|Function} eventOrFunction the event name of the registerd function\r\n * @since 5.0.0\r\n */\n off: function off(eventOrFunction) {\n if (typeof eventOrFunction === \"undefined\") {\n this.eventSubscriptions = {};\n } else if (typeof eventOrFunction === 'string') {\n this.eventSubscriptions[eventOrFunction] = [];\n } else {\n for (var event in this.eventSubscriptions) {\n this.eventSubscriptions[event] = this.eventSubscriptions[event].filter(function (callback) {\n return callback !== eventOrFunction;\n });\n }\n }\n\n return this;\n }\n}); /**\r\n * @class draw2d.HeadlessCanvas\r\n *\r\n * Required for Node.js draw2d model read/write operations.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/HybridPort.js\":\n/*!***************************!*\\\n !*** ./src/HybridPort.js ***!\n \\***************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.HybridPort = _packages2.default.Port.extend({\n\n NAME: \"draw2d.HybridPort\",\n\n /**\r\n * @constructor\r\n * Create a new HybridPort element\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n // responsive for the arrangement of the port\n // calculates the x/y coordinates in relation to the parent node\n this.locator = new _packages2.default.layout.locator.InputPortLocator();\n },\n\n /**\r\n * @inheritdoc\r\n */\n createCommand: function createCommand(request) {\n // Connect request between two ports\n //\n if (request.getPolicy() === _packages2.default.command.CommandType.CONNECT) {\n\n if (request.source.getParent().getId() === request.target.getParent().getId()) {\n return null;\n }\n\n if (request.source instanceof _packages2.default.InputPort) {\n // This is the difference to the InputPort implementation of createCommand.\n return new _packages2.default.command.CommandConnect(request.target, request.source, request.source);\n } else if (request.source instanceof _packages2.default.OutputPort) {\n // This is the different to the OutputPort implementation of createCommand\n return new _packages2.default.command.CommandConnect(request.source, request.target, request.source);\n } else if (request.source instanceof _packages2.default.HybridPort) {\n // This is the different to the OutputPort implementation of createCommand\n return new _packages2.default.command.CommandConnect(request.target, request.source, request.source);\n }\n\n return null;\n }\n\n // ...else call the base class\n return this._super(request);\n }\n}); /**\r\n * @class draw2d.HybridPort\r\n * A HybridPort can work as Input and as Output port in the same way for a {@link draw2d.Connection}.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.Port\r\n */\n\n/***/ }),\n\n/***/ \"./src/InputPort.js\":\n/*!**************************!*\\\n !*** ./src/InputPort.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.InputPort = _packages2.default.Port.extend({\n\n NAME: \"draw2d.InputPort\",\n\n /**\r\n * @constructor\r\n * Create a new InputPort element\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n // responsive for the arrangement of the port\n // calculates the x/y coordinates in relation to the parent node\n this.locator = new _packages2.default.layout.locator.InputPortLocator();\n },\n\n /**\r\n * @inheritdoc\r\n */\n createCommand: function createCommand(request) {\n // Connect request between two ports\n //\n if (request.getPolicy() === _packages2.default.command.CommandType.CONNECT) {\n return new _packages2.default.command.CommandConnect(request.source, request.target, request.source);\n }\n\n // ...else call the base class\n return this._super(request);\n }\n}); /**\r\n * @class draw2d.InputPort\r\n * A InputPort is the start anchor for a {@link draw2d.Connection}.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.Port\r\n */\n\n/***/ }),\n\n/***/ \"./src/OutputPort.js\":\n/*!***************************!*\\\n !*** ./src/OutputPort.js ***!\n \\***************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.OutputPort = _packages2.default.Port.extend({\n\n NAME: \"draw2d.OutputPort\",\n\n /**\r\n * @constructor\r\n * Create a new OutputPort element\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n // responsive for the arrangement of the port\n // calculates the x/y coordinates in relation to the parent node\n this.locator = new _packages2.default.layout.locator.OutputPortLocator();\n },\n\n /**\r\n * @inheritdoc\r\n */\n createCommand: function createCommand(request) {\n // Connect request between two ports\n //\n if (request.getPolicy() === _packages2.default.command.CommandType.CONNECT) {\n // source and target are changed.\n return new _packages2.default.command.CommandConnect(request.target, request.source, request.source);\n }\n\n // ...else call the base class\n return this._super(request);\n }\n}); /**\r\n * @class draw2d.OutputPort\r\n * A OutputPort is the start anchor for a {@link draw2d.Connection}.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.Port\r\n */\n\n/***/ }),\n\n/***/ \"./src/Port.js\":\n/*!*********************!*\\\n !*** ./src/Port.js ***!\n \\*********************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.Port = _packages2.default.shape.basic.Circle.extend({\n NAME: \"draw2d.Port\",\n\n DEFAULT_BORDER_COLOR: new _packages2.default.util.Color(\"#1B1B1B\"),\n\n /**\r\n * @constructor\r\n * Creates a new Node element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n var _this2 = this;\n\n this.locator = null;\n this.lighterBgColor = null;\n this.name = null;\n\n this._super(extend({\n bgColor: \"#4f6870\",\n stroke: 1,\n diameter: 10,\n color: \"#1B1B1B\",\n selectable: false\n }, attr), setter, getter);\n\n // status var for user interaction\n //\n this.ox = this.x;\n this.oy = this.y;\n this.coronaWidth = 5; // the corona width for the hitTest method. Useful during drag&drop of ports. Better SnapTo behavior.\n this.corona = null; // draw2d.shape.basic.Circle\n this.useGradient = true;\n\n this.preferredConnectionDirection = null;\n\n // current attached connections\n this.connections = new _packages2.default.util.ArrayList();\n\n this.moveListener = function (emitter, event) {\n _this2.repaint();\n // Falls sich der parent bewegt hat, dann muss der Port dies seinen\n // Connections mitteilen\n _this2.fireEvent(\"move\", { figure: _this2, dx: 0, dy: 0 });\n };\n\n this.connectionAnchor = new _packages2.default.layout.anchor.ConnectionAnchor(this);\n\n // for dynamic diagrams. A Port can have a value which is set by a connector\n //\n this.value = null;\n this.maxFanOut = Number.MAX_SAFE_INTEGER;\n\n this.setCanSnapToHelper(false);\n\n // uninstall all default selection policies. This is not required for Ports\n this.editPolicy.each(function (i, policy) {\n return _this2.uninstallEditPolicy(policy);\n });\n\n this.installEditPolicy(new _packages2.default.policy.port.IntrusivePortsFeedbackPolicy());\n // this.installEditPolicy(new draw2d.policy.port.ElasticStrapFeedbackPolicy());\n\n // a port handles the selection handling always by its own regardless if\n // the port is part of an composite, node, group or whatever.\n this.portSelectionAdapter = function () {\n return _this2;\n };\n },\n\n getSelectionAdapter: function getSelectionAdapter() {\n return this.portSelectionAdapter;\n },\n\n /**\r\n * @method\r\n * set the maximal possible count of connections for this port.<br>\r\n * This method din't delete any connection if you reduce the number and a bunch of\r\n * connection are bounded already.\r\n *\r\n * @param {Number} count the maximal number of connection related to this port\r\n */\n setMaxFanOut: function setMaxFanOut(count) {\n this.maxFanOut = Math.max(1, count);\n this.fireEvent(\"change:maxFanOut\", { value: this.maxFanOut });\n\n return this;\n },\n\n /**\r\n * @method\r\n * return the maximal possible connections (in+out) for this port.\r\n *\r\n * @return {Number}\r\n */\n getMaxFanOut: function getMaxFanOut() {\n return this.maxFanOut;\n },\n\n /**\r\n * @method\r\n * Set the Anchor for this object. An anchor is responsible for the endpoint calculation\r\n * of an connection. just visible representation.\r\n *\r\n * @param {draw2d.layout.anchor.ConnectionAnchor} [anchor] the new source anchor for the connection or \"null\" to use the default anchor.\r\n **/\n setConnectionAnchor: function setConnectionAnchor(anchor) {\n // set some good defaults.\n if (typeof anchor === \"undefined\" || anchor === null) {\n anchor = new _packages2.default.layout.anchor.ConnectionAnchor();\n }\n\n this.connectionAnchor = anchor;\n this.connectionAnchor.setOwner(this);\n\n // the anchor has changed. In this case all connections needs an change event to recalculate\n // the anchor and the routing itself\n this.fireEvent(\"move\", { figure: this, dx: 0, dy: 0 });\n\n return this;\n },\n\n getConnectionAnchorLocation: function getConnectionAnchorLocation(referencePoint, inquiringConnection) {\n return this.connectionAnchor.getLocation(referencePoint, inquiringConnection);\n },\n\n getConnectionAnchorReferencePoint: function getConnectionAnchorReferencePoint(inquiringConnection) {\n return this.connectionAnchor.getReferencePoint(inquiringConnection);\n },\n\n /**\r\n * @method\r\n * Returns the **direction** for the connection in relation to the given port and it's parent.\r\n *\r\n * <p>\r\n * Possible values:\r\n * <ul>\r\n * <li>draw2d.geo.Rectangle.DIRECTION_UP</li>\r\n * <li>draw2d.geo.Rectangle.DIRECTION_RIGHT</li>\r\n * <li>draw2d.geo.Rectangle.DIRECTION_DOWN</li>\r\n * <li>draw2d.geo.Rectangle.DIRECTION_LEFT</li>\r\n * </ul>\r\n * <p>\r\n *\r\n * @param {draw2d.Port} peerPort the counterpart port\r\n *\r\n * @return {Number} the direction.\r\n */\n getConnectionDirection: function getConnectionDirection(peerPort) {\n // return the calculated connection direction if the port didn't have set any\n //\n if (typeof this.preferredConnectionDirection === \"undefined\" || this.preferredConnectionDirection === null) {\n return this.getParent().getBoundingBox().getDirection(this.getAbsolutePosition());\n }\n\n return this.preferredConnectionDirection;\n },\n\n /**\r\n * @method\r\n * Set the **direction** for the connection in relation to the given port and it's parent.\r\n *\r\n * <p>\r\n * Possible values:\r\n * <ul>\r\n * <li>up -> 0</li>\r\n * <li>right -> 1</li>\r\n * <li>down -> 2</li>\r\n * <li>left -> 3</li>\r\n * <li>calculated -> null</li>\r\n * </ul>\r\n * <p>\r\n *\r\n * @since 5.2.1\r\n * @param {Number} direction the preferred connection direction.\r\n */\n setConnectionDirection: function setConnectionDirection(direction) {\n this.preferredConnectionDirection = direction;\n\n // needs an change event to recalculate the route\n this.fireEvent(\"move\", { figure: this, dx: 0, dy: 0 });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the locator/layouter of the port. A locator is responsive for the x/y arrangement of the\r\n * port in relation to the parent node.\r\n *\r\n * @param {draw2d.layout.locator.Locator} locator\r\n */\n setLocator: function setLocator(locator) {\n this.locator = locator;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the locator/layouter of the port. A locator is responsive for the x/y arrangement of the\r\n * port in relation to the parent node.\r\n *\r\n * @since 4.2.0\r\n */\n getLocator: function getLocator() {\n return this.locator;\n },\n\n /**\r\n * @method\r\n * Set the new background color of the figure. It is possible to hands over\r\n * <code>null</code> to set the background transparent.\r\n *\r\n * @param {draw2d.util.Color|String} color The new background color of the figure\r\n **/\n setBackgroundColor: function setBackgroundColor(color) {\n this._super(color);\n this.lighterBgColor = this.bgColor.lighter(0.3).rgba();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set a value for the port. This is useful for interactive/dynamic diagrams like circuits, simulator,...\r\n *\r\n * @param {Object} value the new value for the port\r\n */\n setValue: function setValue(value) {\n\n if (value === this.value) {\n return this;\n }\n var old = this.value;\n this.value = value;\n if (this.getParent() !== null) {\n this.getParent().onPortValueChanged(this);\n }\n this.fireEvent(\"change:value\", { value: this.value, old: old });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the user defined value of the port.\r\n *\r\n * @returns {Object}\r\n */\n getValue: function getValue() {\n return this.value;\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n // a port did have the 0/0 coordinate in the center and not in the top/left corner\n //\n attributes.cx = this.getAbsoluteX();\n attributes.cy = this.getAbsoluteY();\n attributes.rx = this.width / 2;\n attributes.ry = attributes.rx;\n attributes.cursor = \"move\";\n\n if (this.getAlpha() < 0.9 || this.useGradient === false) {\n attributes.fill = this.bgColor.rgba();\n } else {\n attributes.fill = [\"90\", this.bgColor.hash(), this.lighterBgColor].join(\"-\");\n }\n\n this._super(attributes);\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n **/\n onMouseEnter: function onMouseEnter() {\n this._oldstroke = this.getStroke();\n this.setStroke(2);\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n **/\n onMouseLeave: function onMouseLeave() {\n this.setStroke(this._oldstroke);\n },\n\n /**\r\n * @method\r\n * Returns a {@link draw2d.util.ArrayList} of {@link draw2d.Connection}s of all related connections to this port.\r\n *\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getConnections: function getConnections() {\n return this.connections;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setParent: function setParent(parent) {\n if (this.parent !== null) {\n this.parent.off(this.moveListener);\n }\n\n this._super(parent);\n\n if (this.parent !== null) {\n this.parent.on(\"move\", this.moveListener);\n }\n },\n\n /**\r\n * @method\r\n * Returns the corona width of the Port. The corona width will be used during the\r\n * drag&drop of a port.\r\n *\r\n * @return {Number}\r\n **/\n getCoronaWidth: function getCoronaWidth() {\n return this.coronaWidth;\n },\n\n /**\r\n * @method\r\n * Set the corona width of the Port. The corona width will be used during the\r\n * drag&drop of a port. You can drop a port in the corona of this port to create\r\n * a connection. It is not neccessary to drop exactly on the port.\r\n *\r\n * @param {Number} width The new corona width of the port\r\n **/\n setCoronaWidth: function setCoronaWidth(width) {\n this.coronaWidth = width;\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean}\r\n * @private\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n // just allow the DragOperation if the port didn't have reached the max fanOut\n // limit.\n if (this.getConnections().getSize() >= this.maxFanOut) {\n return false;\n }\n\n var _this = this;\n\n // this.getShapeElement().insertAfter(this.parent.getShapeElement());\n // don't call the super method. This creates a command and this is not necessary for a port\n this.ox = this.x;\n this.oy = this.y;\n\n var canStartDrag = true;\n\n // notify all installed policies\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n // DragStart operation can send a veto for the dragStart\n // @since 6.1.0\n canStartDrag = canStartDrag && e.onDragStart(_this.canvas, _this, x, y, shiftKey, ctrlKey);\n }\n });\n\n return canStartDrag;\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n *\r\n * @private\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n // TODO: warum wurde diese methode überschrieben?!\n this._super(dx, dy);\n },\n\n /**\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @private\r\n **/\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n // Don't call the parent implementation. This will create an CommandMove object\n // and store them o the CommandStack for the undo operation. This makes no sense for a\n // port.\n // draw2d.shape.basic.Rectangle.prototype.onDragEnd.call(this); DON'T call the super implementation!!!\n\n this.setAlpha(1.0);\n\n // 1.) Restore the old Position of the node\n //\n this.setPosition(this.ox, this.oy);\n },\n\n /**\r\n * @method\r\n * Called if the user drop this element onto the dropTarget\r\n *\r\n * @param {draw2d.Figure} dropTarget The drop target.\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @@private\r\n **/\n onDrop: function onDrop(dropTarget, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Callback method if a new connection has created with this port\r\n *\r\n * // Alternatively you register for this event with:\r\n * port.on(\"connect\", function(emitterPort, connection){\r\n * alert(\"port connected\");\r\n * });\r\n *\r\n * @param {draw2d.Connection} connection The connection which has been created\r\n * @since 2.5.1\r\n *\r\n * @template\r\n **/\n onConnect: function onConnect(connection) {},\n\n /**\r\n * @method\r\n * Callback method if a new connection has created with this port\r\n *\r\n * // Alternatively you register for this event with:\r\n * port.on(\"connect\", function(emitterPort, connection){\r\n * alert(\"port disconnected\");\r\n * });\r\n *\r\n * @param {draw2d.Connection} connection The connection which has been deleted\r\n * @since 2.5.1\r\n *\r\n * @template\r\n **/\n onDisconnect: function onDisconnect(connection) {},\n\n /**\r\n * @method\r\n * Return the name of this port.\r\n *\r\n * @return {String}\r\n **/\n getName: function getName() {\n return this.name;\n },\n\n /**\r\n * @method\r\n * Set the name of this port. The name of the port can be referenced by the lookup of\r\n * ports in the node.\r\n *\r\n *\r\n * @param {String} name The new name of this port.\r\n **/\n setName: function setName(name) {\n this.name = name;\n },\n\n /**\r\n * @method\r\n * Hit test for ports. This method respect the corona diameter of the port for the hit test.\r\n * The corona width can be set with {@link draw2d.Port#setCoronaWidth}\r\n * @param {Number} iX\r\n * @param {Number} iY\r\n * @param {Number} [corona]\r\n * @return {Boolean}\r\n */\n hitTest: function hitTest(iX, iY, corona) {\n var x = this.getAbsoluteX() - this.coronaWidth - this.getWidth() / 2;\n var y = this.getAbsoluteY() - this.coronaWidth - this.getHeight() / 2;\n var iX2 = x + this.getWidth() + this.coronaWidth * 2;\n var iY2 = y + this.getHeight() + this.coronaWidth * 2;\n\n return iX >= x && iX <= iX2 && iY >= y && iY <= iY2;\n },\n\n /**\r\n * @method\r\n * Highlight this port\r\n *\r\n * @param {Boolean} flag indicator if the figure should glow.\r\n */\n setGlow: function setGlow(flag) {\n if (flag === true && this.corona === null) {\n this.corona = new _packages2.default.Corona();\n this.corona.setDimension(this.getWidth() + this.getCoronaWidth() * 2, this.getWidth() + this.getCoronaWidth() * 2);\n this.corona.setPosition(this.getAbsoluteX() - this.getCoronaWidth() - this.getWidth() / 2, this.getAbsoluteY() - this.getCoronaWidth() - this.getHeight() / 2);\n\n this.corona.setCanvas(this.getCanvas());\n\n // important inital\n this.corona.getShapeElement();\n this.corona.repaint();\n } else if (flag === false && this.corona !== null) {\n this.corona.setCanvas(null);\n this.corona = null;\n }\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createCommand: function createCommand(request) {\n // the port has its own implementation of the CommandMove\n //\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE) {\n if (!this.isDraggable()) {\n return null;\n }\n return new _packages2.default.command.CommandMovePort(this);\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Called from the figure itself when any position changes happens. All listener\r\n * will be informed.\r\n * <br>\r\n * DON'T fire this event if the Port is during a Drag&Drop operation. This can happen\r\n * if we try to connect two ports\r\n **/\n fireEvent: function fireEvent(event, args) {\n if (this.isInDragDrop === true && event !== \"drag\") {\n return;\n }\n\n this._super(event, args);\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @return\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n memento.maxFanOut = this.maxFanOut;\n memento.name = this.name;\n\n // defined by the locator. Don't persist\n //\n delete memento.x;\n delete memento.y;\n\n // ports didn'T have children ports. In this case we\n // delete this attribute as well to avoid confusions.\n //\n delete memento.ports;\n\n return memento;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.maxFanOut !== \"undefined\") {\n // Big bug in the past.\n // I used Number.MAX_VALUE as maxFanOut which is 1.7976931348623157e+308\n // parseInt creates \"1\" during the reading of the JSON - which is crap.\n // BIG BIG BUG!!! my fault.\n // Now check if the memento.maxFanOut is a number and take this without crappy parsing.\n if (typeof memento.maxFanOut === \"number\") {\n this.maxFanOut = memento.maxFanOut;\n } else {\n this.maxFanOut = Math.max(1, parseInt(memento.maxFanOut));\n }\n }\n if (typeof memento.name !== \"undefined\") {\n this.setName(memento.name);\n }\n\n return this;\n }\n});\n\n/**\r\n * @class draw2d.Corona\r\n * Glow effect for ports. Just for internal use.\r\n *\r\n * @extend draw2d.shape.basic.Circle\r\n */\n/**\r\n * @class draw2d.Port\r\n * A port is an object that is used to establish a connection between a node and a {@link draw2d.Connection}. The port can\r\n * be placed anywhere within a node ( see {@link draw2d.layout.locator.PortLocator} for details)\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Circle\r\n */\n\n_packages2.default.Corona = _packages2.default.shape.basic.Circle.extend({\n\n /**\r\n * @constructor\r\n * Creates a new Node element which are not assigned to any canvas.\r\n *\r\n */\n init: function init() {\n this._super();\n this.setAlpha(0.3);\n this.setBackgroundColor(new _packages2.default.util.Color(178, 225, 255));\n this.setColor(new _packages2.default.util.Color(102, 182, 252));\n },\n\n /**\r\n * @method\r\n * the the opacity of the element.\r\n *\r\n * @param {Number} percent\r\n */\n setAlpha: function setAlpha(percent) {\n this._super(Math.min(0.3, percent));\n this.setDeleteable(false);\n this.setDraggable(false);\n this.setResizeable(false);\n this.setSelectable(false);\n\n return this;\n }\n});\n\n/***/ }),\n\n/***/ \"./src/ResizeHandle.js\":\n/*!*****************************!*\\\n !*** ./src/ResizeHandle.js ***!\n \\*****************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ./util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.ResizeHandle\r\n * The Resizehandles for Figures.\r\n\r\n * <pre>\r\n * Possible Type:\r\n *\r\n * 1 2 3\r\n * O-----------O-------------O\r\n * | |\r\n * | |\r\n * 8 O + 9 O 4\r\n * | |\r\n * | |\r\n * O-----------O-------------O\r\n * 7 6 5\r\n * </pre>\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n_packages2.default.ResizeHandle = _packages2.default.shape.basic.Rectangle.extend({\n NAME: \"draw2d.ResizeHandle\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {draw2d.Figure} the owner if the resize handle\r\n * @param {Number} type the type of the ResizeHandle.\r\n */\n init: function init(attr, setter, getter) {\n var _this = this;\n\n this.zoomCallback = function () {\n _this.attr({\n width: _this.origWidth * _this.getCanvas().getZoom(),\n height: _this.origHeight * _this.getCanvas().getZoom(),\n radius: _this.origRadius * _this.getCanvas().getZoom(),\n stroke: _this.origStroke * _this.getCanvas().getZoom()\n });\n\n // size of the ResizeHandle has changed. Force a reposition of handle\n //\n if (!_this.blockEvent) _this.owner.fireEvent(\"move\", {});\n };\n\n this._super((0, _extend2.default)({\n // set some good defaults\n bgColor: \"#FDFDFD\",\n stroke: 0.5,\n width: 10,\n height: 10,\n minWidth: 0.3,\n minHeight: 0.3,\n color: \"#a0a0a0\",\n radius: 1,\n selectable: false\n // and allow to override them\n }, attr), (0, _extend2.default)({\n owner: this.setOwner,\n type: this.setType\n }, setter), (0, _extend2.default)({\n owner: this.getOwner,\n type: this.getType\n }, getter));\n\n // required in the SelectionEditPolicy to indicate the type of figure\n // which the user clicks\n this.isResizeHandle = true;\n\n this.command = null;\n this.commandMove = null;\n this.commandResize = null;\n this.useGradient = true;\n\n this.origRadius = this.radius;\n this.origWidth = this.width;\n this.origHeight = this.height;\n this.origStroke = this.stroke;\n },\n\n /**\r\n * @method\r\n * The edge of the rectangle for the snapTo mechanism.\r\n *\r\n * @return\r\n */\n getSnapToDirection: function getSnapToDirection() {\n switch (this.type) {\n case 1:\n return _packages2.default.SnapToHelper.NORTH_WEST;\n case 2:\n return _packages2.default.SnapToHelper.NORTH;\n case 3:\n return _packages2.default.SnapToHelper.NORTH_EAST;\n case 4:\n return _packages2.default.SnapToHelper.EAST;\n case 5:\n return _packages2.default.SnapToHelper.SOUTH_EAST;\n case 6:\n return _packages2.default.SnapToHelper.SOUTH;\n case 7:\n return _packages2.default.SnapToHelper.SOUTH_WEST;\n case 8:\n return _packages2.default.SnapToHelper.WEST;\n case 9:\n return _packages2.default.SnapToHelper.NSEW;\n default:\n return _packages2.default.SnapToHelper.EAST;\n }\n },\n\n /**\r\n * @inheritdoc\r\n */\n createShapeElement: function createShapeElement() {\n this.shape = this._super();\n\n this.shape.node.setAttribute(\"type\", this.type);\n this.updateCursor(this.shape);\n\n return this.shape;\n },\n\n /**\r\n * @method\r\n * Returns the current used SVG as string\r\n *\r\n * @returns {String}\r\n */\n getOwner: function getOwner() {\n return this.owner;\n },\n\n setOwner: function setOwner(owner) {\n this.owner = owner;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the current used SVG as string\r\n *\r\n * @returns {String}\r\n */\n getType: function getType() {\n return this.type;\n },\n\n setType: function setType(type) {\n this.type = type;\n\n return this;\n },\n\n /**\r\n * @method\r\n * calculate and set the cursor of the reize handle\r\n * @private\r\n */\n updateCursor: function updateCursor(shape) {\n if (shape === null) {\n return this;\n }\n\n if (this.isDraggable() === false) {\n shape.attr({ \"cursor\": \"default\" });\n return this;\n }\n\n switch (this.type) {\n case 1:\n shape.attr({ \"cursor\": \"nw-resize\" });\n break;\n case 2:\n shape.attr({ \"cursor\": \"n-resize\" });\n break;\n case 3:\n shape.attr({ \"cursor\": \"ne-resize\" });\n break;\n case 4:\n shape.attr({ \"cursor\": \"e-resize\" });\n break;\n case 5:\n shape.attr({ \"cursor\": \"se-resize\" });\n break;\n case 6:\n shape.attr({ \"cursor\": \"s-resize\" });\n break;\n case 7:\n shape.attr({ \"cursor\": \"sw-resize\" });\n break;\n case 8:\n shape.attr({ \"cursor\": \"w-resize\" });\n break;\n default:\n shape.attr({ \"cursor\": \"move\" });\n break;\n }\n return this;\n },\n\n /**\r\n * @method\r\n * Adjust the draggable flag of the resize handle and update the cursor of the shape in relation\r\n * to the type of resize handle. north, south,west,..\r\n *\r\n * @param flag\r\n * @returns\r\n */\n setDraggable: function setDraggable(flag) {\n this._super(flag);\n this.updateCursor(this.shape);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Will be called if the drag and drop action beginns. You can return [false] if you\r\n * want avoid that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} true whenever the drag drop operation is allowed.\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n // This happens if the selected figure has set the \"nonResizeable\" flag\n // In this case the ResizeHandle can't be dragged. => no resize\n //\n if (!this.isDraggable()) {\n return false;\n }\n\n this.ox = this.getAbsoluteX();\n this.oy = this.getAbsoluteY();\n\n this.commandMove = this.owner.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE));\n this.commandResize = this.owner.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.RESIZE));\n\n return true;\n },\n\n /**\r\n * @method\r\n * Called by the framework if the figure is moved by user interaction.\r\n *\r\n * @param {Number} dx the move x offset\r\n * @param {Number} dy the move y offset\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n *\r\n */\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n if (this.isDraggable() === false) {\n return;\n }\n\n var oldX = this.getAbsoluteX();\n var oldY = this.getAbsoluteY();\n\n // call the super.drag method with all snapTo### handler and adjustments\n this._super(dx, dy, dx2, dy2);\n\n var diffX = this.getAbsoluteX() - oldX;\n var diffY = this.getAbsoluteY() - oldY;\n\n var obj = this.owner;\n var objPosX = obj.getAbsoluteX();\n var objPosY = obj.getAbsoluteY();\n var objWidth = obj.getWidth();\n var objHeight = obj.getHeight();\n\n var newX = null;\n var newY = null;\n var corrPos = null;\n switch (this.type) {\n case 1:\n obj.setDimension(objWidth - diffX, objHeight - diffY);\n newX = objPosX + (objWidth - obj.getWidth());\n newY = objPosY + (objHeight - obj.getHeight());\n obj.setPosition(newX, newY);\n break;\n case 2:\n obj.setDimension(objWidth, objHeight - diffY);\n newX = objPosX;\n newY = objPosY + (objHeight - obj.getHeight());\n obj.setPosition(newX, newY);\n break;\n case 3:\n obj.setDimension(objWidth + diffX, objHeight - diffY);\n newX = objPosX;\n newY = objPosY + (objHeight - obj.getHeight());\n obj.setPosition(newX, newY);\n break;\n case 4:\n obj.setDimension(objWidth + diffX, objHeight);\n break;\n case 5:\n obj.setDimension(objWidth + diffX, objHeight + diffY);\n break;\n case 6:\n obj.setDimension(objWidth, objHeight + diffY);\n break;\n case 7:\n obj.setDimension(objWidth - diffX, objHeight + diffY);\n newX = objPosX + (objWidth - obj.getWidth());\n newY = objPosY;\n obj.setPosition(newX, newY);\n break;\n case 8:\n obj.setDimension(objWidth - diffX, objHeight);\n newX = objPosX + (objWidth - obj.getWidth());\n newY = objPosY;\n obj.setPosition(newX, newY);\n break;\n }\n\n if (newX !== null) {\n // may the setPosition has changed regarding any constraint or edit policies. In this case\n // we must adjust the dimension with the related correction\n //\n corrPos = obj.getPosition();\n if (corrPos.x !== newX || corrPos.y !== newY) {\n obj.setDimension(obj.getWidth() - (corrPos.x - newX), obj.getHeight() - (corrPos.y - newY));\n }\n }\n },\n\n /**\r\n * @method\r\n * Will be called after a drag and drop action.<br>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n if (!this.isDraggable()) {\n return;\n }\n\n // An non draggable resizeHandle doesn't create a move/resize command.\n // This happens if the selected figure has set the \"nonResizeable\" flag.\n //\n if (this.commandMove !== null) {\n this.commandMove.setPosition(this.owner.getX(), this.owner.getY());\n this.canvas.getCommandStack().execute(this.commandMove);\n this.commandMove = null;\n }\n\n if (this.commandResize !== null) {\n this.commandResize.setDimension(this.owner.getWidth(), this.owner.getHeight());\n this.canvas.getCommandStack().execute(this.commandResize);\n this.commandResize = null;\n }\n },\n\n /**\r\n * Set the position of the object.<br>\r\n * The ResizeHandle overrides the Figure.setPosition method. The base\r\n * class updates the resize handles during the update of the Dimension/Position. This\r\n * is not neccessary for the ResizeHandles. Performance issue.\r\n *\r\n * @param {Number|draw2d.geo.Point} x The new x coordinate of the figure\r\n * @param {Number} y The new y coordinate of the figure\r\n **/\n setPosition: function setPosition(x, y) {\n // don't call base implementation. Base implementation will show\n // ResizeHandles...but I'm the ResizeHandle\n if (x instanceof _packages2.default.geo.Point) {\n this.x = x.x;\n this.y = x.y;\n } else {\n this.x = x;\n this.y = y;\n }\n\n if (this.repaintBlocked === true || this.shape === null) {\n return this;\n }\n\n // performance improvement by setting the coordinates direct.\n this.shape.attr({ x: this.x, y: this.y });\n\n this.applyTransformation();\n },\n\n /**\r\n * @method\r\n * Set the new dimension of the the ResizeHandle. If you didn't pass any width/height the best default for the\r\n * platform will be used.\r\n *\r\n * Additional the \"snapTo\" anchor is re-calculated in relation to the type of ResizeHandle\r\n *\r\n * @param {Number} [width] new width of the resize handle\r\n * @param {Number} [height] new width of the resize handle\r\n */\n setDimension: function setDimension(width, height) {\n\n if (typeof height !== \"undefined\") {\n this._super(width, height);\n } else {\n if (_packages2.default.isTouchDevice) {\n this._super(15, 15);\n } else {\n this._super(8, 8);\n }\n }\n\n var offset = this.getWidth();\n var offset2 = offset / 2;\n\n switch (this.type) {\n case 1:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(offset, offset));\n break;\n case 2:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(offset2, offset));\n break;\n case 3:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(0, offset));\n break;\n case 4:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(0, offset2));\n break;\n case 5:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(0, 0));\n break;\n case 6:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(offset2, 0));\n break;\n case 7:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(offset, 0));\n break;\n case 8:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(offset, offset2));\n break;\n case 9:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(offset2, offset2));\n break;\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Show the ResizeHandle and add it to the canvas.<br>\r\n * Additional bring it in to the front of other figures if we didn't use\r\n * an overlayCanvas.\r\n *\r\n * If the ResizeHandle is place inside an overlayCanvas it is automatically on top.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to use\r\n **/\n show: function show(canvas) {\n // don't call the parent function. The parent functions delete this object\n // and a resize handle can't be deleted.\n this.setCanvas(canvas);\n\n this.canvas.resizeHandles.add(this);\n this.shape.insertAfter(this.owner.getShapeElement());\n\n try {\n this.blockEvent = true;\n this.zoomCallback();\n } finally {\n this.blockEvent = false;\n }\n this.repaint();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Hide the resize handle and remove it from the canvas.\r\n *\r\n **/\n hide: function hide() {\n // don't call the parent function. The parent functions delete this object\n // and a resize handle shouldn't be deleted.\n if (this.shape === null) {\n return;\n }\n\n this.canvas.resizeHandles.remove(this);\n this.setCanvas(null);\n\n return this;\n },\n\n setCanvas: function setCanvas(canvas) {\n\n if (this.canvas !== null) {\n this.canvas.off(this.zoomCallback);\n }\n\n this._super(canvas);\n\n if (this.canvas !== null) {\n this.canvas.on(\"zoom\", this.zoomCallback);\n }\n },\n\n /**\r\n * @method\r\n * Set the new background color of the figure. It is possible to hands over\r\n * <code>null</code> to set the background transparent.\r\n *\r\n * @param {draw2d.util.Color} color The new background color of the figure\r\n **/\n setBackgroundColor: function setBackgroundColor(color) {\n color = new _packages2.default.util.Color(color);\n\n this.bgGradient = \"90-\" + color.darker(0.2).hash() + \"-\" + color.hash();\n this._super(color);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n if (this.bgColor.hash() === \"none\") {\n attributes.fill = \"none\";\n } else if (this.getAlpha() < 0.9 || this.useGradient === false) {\n attributes.fill = this.bgColor.rgba();\n } else {\n attributes.fill = this.bgGradient;\n }\n\n this._super(attributes);\n },\n\n /**\r\n * @method\r\n * return true if the element can be used in combination with the\r\n * SnapToHelper feature.\r\n *\r\n * @return {Boolean}\r\n **/\n supportsSnapToHelper: function supportsSnapToHelper() {\n return true;\n },\n\n /**\r\n * @method\r\n * Override this method and redirect them to the cavas. A ResizeHandle didn't support\r\n * Keyboard interaction at the moment.\r\n *\r\n * @param {Number} keyCode the id of the pressed key\r\n * @param {Boolean} ctrl true if the user has pressed the CTRL/STRG key as well.\r\n **/\n onKeyDown: function onKeyDown(keyCode, ctrl) {\n // don't call the parent function. The parent functions delete this object\n // and a resize handle can't be deleted.\n this.canvas.onKeyDown(keyCode, ctrl);\n },\n\n /**\r\n * @inheritdoc\r\n */\n fireEvent: function fireEvent(event, args) {\n // A resizeHandle doesn't fire this event.\n // Normally this set the document dirty. This is not necessary for a ResizeHandle.\n }\n});\n\n/***/ }),\n\n/***/ \"./src/SVGFigure.js\":\n/*!**************************!*\\\n !*** ./src/SVGFigure.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.SVGFigure\r\n * Abstract class which can handle plain SVG content. Inherit class must override the method\r\n * <code>getSVG()</code>.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.SetFigure\r\n */\n\n_packages2.default.SVGFigure = _packages2.default.SetFigure.extend({\n\n NAME: \"draw2d.SVGFigure\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.svg = null;\n\n this._super((0, _extend2.default)({}, attr), (0, _extend2.default)({\n svg: this.setSVG\n }, setter), (0, _extend2.default)({\n svg: this.getSVG\n }, getter));\n },\n\n /**\r\n * @inheritdoc\r\n */\n createSet: function createSet() {\n // legacy behaviour. Legacy code of Draw2D didn't have the \"svg\" attribute.\n // in this case we must call the overridden method \"getSVG\" to retrieve the SVG from inherit\n // the inherit class.\n //\n if (this.svg === null) {\n this.svg = this.getSVG();\n }\n\n return this.importSVG(this.canvas, this.svg);\n },\n\n /**\r\n * @method\r\n * Returns the current used SVG as string\r\n *\r\n * @returns {String}\r\n */\n getSVG: function getSVG() {\n return this.svg;\n },\n\n /**\r\n * @method\r\n * Set the SVG of this shape\r\n *\r\n * @param {String} svg The new SVG to render as String\r\n * @param {Number} [duration] the optional duration for the change of the SVG of the figure\r\n *\r\n * @returns {draw2d.SVGFigure}\r\n */\n setSVG: function setSVG(svg, duration) {\n this.svg = svg;\n\n // SVG has changed. Update the rendering\n //\n if (this.canvas !== null && this.svgNodes !== null) {\n var newSVGNodes = this.createSet();\n if (!isNaN(parseFloat(duration))) {\n newSVGNodes.hide();\n newSVGNodes.insertAfter(this.svgNodes);\n var oldSVG = this.svgNodes;\n this.svgNodes = newSVGNodes;\n this.applyTransformation();\n oldSVG.forEach(function (shape) {\n $(shape.node).fadeOut(duration, function () {\n shape.remove();\n });\n });\n newSVGNodes.forEach(function (shape) {\n $(shape.node).fadeIn(duration);\n });\n } else {\n newSVGNodes.insertAfter(this.svgNodes);\n this.svgNodes.remove();\n this.svgNodes = newSVGNodes;\n this.applyTransformation();\n // this.repaint();\n }\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Helper method to transform the SVG string into a raphaelJS set.\r\n *\r\n * @private\r\n */\n importSVG: function importSVG(canvas, rawSVG) {\n\n var set = canvas.paper.set();\n\n try {\n if (typeof rawSVG === 'undefined') {\n throw 'No data was provided.';\n }\n\n // Override the dimension from the JSON if the SVG contains any\n //\n var svgDOM = $(rawSVG);\n\n // set the dimension of the element if the JSON import didn't provide\n // a dimension already\n //\n if (typeof this._dimensionReadFromJSON === \"undefined\") {\n if (svgDOM.attr(\"width\") && svgDOM.attr(\"height\")) {\n this.setDimension(parseFloat(svgDOM.attr(\"width\")), parseFloat(svgDOM.attr(\"height\")));\n }\n delete this._dimensionReadFromJSON;\n }\n\n var findStyle = new RegExp('([a-z0-9\\-]+) ?: ?([^ ;]+)[ ;]?', 'gi');\n\n svgDOM.children().each(function (i, element) {\n //element = $(element);\n var shape = null;\n var style = null;\n var attr = {};\n var node = element.tagName;\n\n // remove the namespace of the node if existing. This can happen in IE8\n //\n var index = node.indexOf(\":\");\n if (index != -1) node = node.substr(index + 1);\n\n // map some element to Raphael specifix attributes or ignore some unknown attributes\n //\n $(element.attributes).each(function () {\n switch (this.nodeName) {\n case 'stroke-dasharray':\n attr[this.nodeName] = '- ';\n break;\n case 'style':\n style = this.nodeValue;\n break;\n case 'id':\n case 'xml:space':\n // just to ignore\n break;\n default:\n if (this.value) {\n attr[this.nodeName] = this.value;\n } else {\n // @deprecated\n attr[this.nodeName] = this.nodeValue;\n }\n break;\n }\n });\n\n if (style !== null) {\n while (findStyle.exec(style)) {\n attr[RegExp.$1] = RegExp.$2;\n }\n }\n\n // set some good defaults if the element didn't provide a stroke-width but has a \"stroke\" attribute\n //\n if (typeof attr['stroke-width'] === 'undefined') {\n attr['stroke-width'] = typeof attr.stroke === 'undefined' ? 0 : 1.2;\n }\n\n switch (node) {\n case 'rect':\n shape = canvas.paper.rect();\n\n // transfer rx-SVG attribute to the \"r\" attribute of raphael\n if (typeof attr[\"rx\"] !== \"undefined\") {\n attr.r = parseInt(attr.rx);\n delete attr.rx;\n }\n break;\n case 'circle':\n shape = canvas.paper.circle();\n break;\n case 'ellipse':\n shape = canvas.paper.ellipse();\n break;\n case 'path':\n attr.fill = \"none\";\n shape = canvas.paper.path(attr.d);\n break;\n case 'line':\n attr.d = \"M \" + attr.x1 + \" \" + attr.y1 + \"L\" + attr.x2 + \" \" + attr.y2;\n attr.fill = \"none\";\n shape = canvas.paper.path(attr.d);\n break;\n case 'polyline':\n var path = attr.points;\n attr.d = \"M \" + path.replace(\" \", \" L\");\n shape = canvas.paper.path(attr.d);\n break;\n case 'polygon':\n shape = canvas.paper.polygon(attr.points);\n break;\n case 'image':\n shape = canvas.paper.image();\n break;\n case 'tspan':\n case 'text':\n if (element.childNodes.length > 0) {\n var child = element.firstChild;\n do {\n switch (child.nodeType) {\n case 2: //ATTRIBUTE_NODE\n case 4: //CDATA_SECTION_NODE\n case 5: //ENTITY_REFERENCE_NODE\n case 6: //ENTITY_NODE\n case 7: //PROCESSING_INSTRUCTION_NODE\n case 8: //COMMENT_NODE\n case 9: //DOCUMENT_NODE\n case 10: //DOCUMENT_TYPE_NODE\n case 11: //DOCUMENT_FRAGMENT_NODE\n case 12:\n //NOTATION_NODE\n return;\n case 3:\n //TEXT_NODE\n // redirect to the parent node if we found a simple TEXT without any attributes\n child = element;\n break;\n case 1: //ELEMENT_NODE\n }\n var subShape = canvas.paper.text(0, 0, $(child).text());\n var subAttr = { \"x\": parseFloat(child.attributes.x.value), \"y\": parseFloat(child.attributes.y.value) };\n subAttr[\"text-anchor\"] = \"start\";\n if (typeof child.attributes[\"text-anchor\"] !== \"undefined\") {\n subAttr[\"text-anchor\"] = child.attributes[\"text-anchor\"].value;\n } else if (typeof attr[\"text-anchor\"] !== \"undefined\") {\n subAttr[\"text-anchor\"] = attr[\"text-anchor\"];\n }\n\n if (typeof child.attributes[\"font-size\"] !== \"undefined\") {\n subAttr[\"font-size\"] = parseInt(child.attributes[\"font-size\"].value);\n } else if (typeof attr[\"font-size\"] !== \"undefined\") {\n // inherit the font size from the parent node\n subAttr[\"font-size\"] = parseInt(attr[\"font-size\"]);\n }\n\n if (typeof child.attributes[\"font-family\"] !== \"undefined\") {\n subAttr[\"font-family\"] = child.attributes[\"font-family\"].value;\n } else if (typeof attr[\"font-family\"] !== \"undefined\") {\n // inherit the font size from the parent node\n subAttr[\"font-family\"] = attr[\"font-family\"];\n }\n\n subAttr[\"fill\"] = \"#000000\";\n if (typeof child.attributes[\"fill\"] !== \"undefined\") {\n subAttr[\"fill\"] = child.attributes[\"fill\"].value;\n } else if (typeof attr[\"fill\"] !== \"undefined\") {\n // inherit the font size from the parent node\n subAttr[\"fill\"] = attr[\"fill\"];\n }\n\n subAttr.y = subAttr.y + subShape.getBBox().height / 2;\n\n subShape.attr(subAttr);\n set.push(subShape);\n child = child.nextSibling;\n } while (child && child.nodeType === 3); // 3= TEXT_NODE\n } else {\n shape = canvas.paper.text(0, 0, $(element).html());\n if (typeof attr[\"fill\"] === \"undefined\") attr[\"fill\"] = \"#000000\";\n if (typeof attr[\"text-anchor\"] === \"undefined\") attr[\"text-anchor\"] = \"start\";\n if (typeof attr[\"font-size\"] !== \"undefined\") attr[\"font-size\"] = parseInt(attr[\"font-size\"]);\n if (typeof attr[\"font-family\"] !== \"undefined\") attr[\"font-family\"] = parseInt(attr[\"font-family\"]);\n attr.y = parseFloat(attr.y) + shape.getBBox().height / 2;\n }\n break;\n }\n if (shape !== null) {\n shape.attr(attr);\n set.push(shape);\n }\n });\n } catch (error) {\n alert('The SVG data you entered was invalid! (' + error + ')');\n }\n\n return set;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n // keep a temp flag to indicate the we have read the dimension of the\n // element from the JSON struct. In this case we didn't care about the dimension\n // from the SVG data\n //\n if (typeof memento.width !== \"undefined\") {\n this._dimensionReadFromJSON = true;\n } else if (typeof memento.height !== \"undefined\") {\n this._dimensionReadFromJSON = true;\n }\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/Selection.js\":\n/*!**************************!*\\\n !*** ./src/Selection.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.Selection = Class.extend({\n\n NAME: \"draw2d.Selection\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n */\n init: function init() {\n this.primary = null;\n this.all = new _packages2.default.util.ArrayList();\n },\n\n /**\r\n * @method\r\n * Reset the current selection\r\n *\r\n */\n clear: function clear() {\n this.primary = null;\n this.all = new _packages2.default.util.ArrayList();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the primary selection. This can only one figure at once.\r\n *\r\n * @return {draw2d.Figure} the primary selected figure\r\n */\n getPrimary: function getPrimary() {\n return this.primary;\n },\n\n /**\r\n * @method\r\n * Set the primary selection.\r\n *\r\n * @param {draw2d.Figure} figure The new primary selection\r\n */\n setPrimary: function setPrimary(figure) {\n this.primary = figure;\n this.add(figure);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove the given figure from the selection (primary,all)\r\n *\r\n * @param {draw2d.Figure} figure\r\n */\n remove: function remove(figure) {\n this.all.remove(figure);\n if (this.primary === figure) {\n this.primary = null;\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Add a figure to the selection. No events are fired or update the selection handle. This method just\r\n * add the figure to the internal management data structure.\r\n *\r\n * @param figure\r\n * @private\r\n */\n add: function add(figure) {\n if (figure !== null && !this.all.contains(figure)) {\n this.all.add(figure);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * return true if the given figure part of the selection.\r\n *\r\n * @param {draw2d.Figure} figure The figure to check\r\n * @param {Boolean} [checkDescendant] Check if the figure provided by the argument is a descendant of the selection whether it is a direct child or nested more deeply.\r\n *\r\n * @since 2.2.0\r\n * @return {Boolean}\r\n */\n contains: function contains(figure, checkDescendant) {\n if (checkDescendant) {\n for (var i = 0; i < this.all.getSize(); i++) {\n var figureToCheck = this.all.get(i);\n if (figureToCheck === figure || figureToCheck.contains(figure)) {\n return true;\n }\n }\n return false;\n }\n return this.all.contains(figure);\n },\n\n /**\r\n * @method\r\n * Return the size of the selection\r\n *\r\n * @since 4.8.0\r\n */\n getSize: function getSize() {\n return this.all.getSize();\n },\n\n /**\r\n * @method\r\n * Return the complete selection - including the primary selection.\r\n *\r\n * @param {Boolean} [expand] expand all StrongComposite and WeakComposite to get all figures. Didn't expand any SetFigures or LayoutFigures\r\n * @return {draw2d.util.ArrayList}\r\n *\r\n */\n getAll: function getAll(expand) {\n if (expand === true) {\n var result = new _packages2.default.util.ArrayList();\n var addRecursive = function addRecursive(figures) {\n result.addAll(figures, true);\n figures.each(function (index, figure) {\n if (figure instanceof _packages2.default.shape.composite.StrongComposite) {\n addRecursive(figure.getAssignedFigures());\n }\n });\n };\n addRecursive(this.all);\n\n return result;\n }\n\n return this.all.clone();\n },\n\n /**\r\n * @method\r\n * Iterates over the current selection with <b>func</b> as callback handler.\r\n *\r\n * @param {Function} func the callback function to call for each element\r\n * @param {Number} func.i index of the element in iteration\r\n * @param {Object} func.value value of the element in iteration.\r\n * @param {Boolean} [reverse] optional parameter. Iterate the collection reverse if it set to <b>true</b>\r\n */\n each: function each(func, reverse) {\n this.all.each(func, reverse);\n\n return this;\n }\n}); /**\r\n * @class draw2d.Selection\r\n *\r\n * Represents the current selection in the canvas. The selection element is a pure passive element which\r\n * manage/store the selection.\r\n *\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/SetFigure.js\":\n/*!**************************!*\\\n !*** ./src/SetFigure.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.SetFigure\r\n *\r\n * A SetFigure is a composition of different SVG elements.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n_packages2.default.SetFigure = _packages2.default.shape.basic.Rectangle.extend({\n\n NAME: \"draw2d.SetFigure\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // collection of SVG DOM nodes\n this.svgNodes = null;\n\n this.originalWidth = null;\n this.originalHeight = null;\n\n this.scaleX = 1;\n this.scaleY = 1;\n\n this.strokeScale = true; // scale the stroke width of the children nodes if the parent resize\n\n this._super((0, _extend2.default)({ stroke: 0, bgColor: null }, attr), setter, getter);\n },\n\n /**\r\n * @method\r\n * Set/Reset the canvas for the element.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to use\r\n */\n setCanvas: function setCanvas(canvas) {\n // remove the shape if we reset the canvas and the element\n // was already drawn\n if (canvas === null && this.svgNodes !== null) {\n this.svgNodes.remove();\n this.svgNodes = null;\n }\n\n this._super(canvas);\n },\n\n /**\r\n * @method\r\n * Set the css class if the node.\r\n *\r\n * @param {String} cssClass the new css class name of the node\r\n * @since 2.9.0\r\n */\n setCssClass: function setCssClass(cssClass) {\n this._super(cssClass);\n\n if (this.svgNodes === null) {\n return this;\n }\n\n if (this.cssClass === null) {\n this.svgNodes.forEach(function (e) {\n e.node.removeAttribute(\"class\");\n });\n } else {\n this.svgNodes.forEach(function (e) {\n e.node.setAttribute(\"class\", cssClass);\n });\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * propagate all attributes like color, stroke,... to the shape element and\r\n * repaint them.\r\n *\r\n * @protected\r\n **/\n repaint: function repaint(attributes) {\n // repaint can be blocked during deserialization and if the shape\n // not part of any canvas.\n //\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n if (this.originalWidth !== null) {\n this.scaleX = this.width / this.originalWidth;\n this.scaleY = this.height / this.originalHeight;\n }\n\n attributes = attributes || {};\n\n this.applyAlpha();\n\n this._super(attributes);\n },\n\n /**\r\n * @inheritdoc\r\n */\n setVisible: function setVisible(flag, duration) {\n this._super(flag, duration);\n\n if (this.svgNodes !== null) {\n if (duration) {\n if (this.visible === true) {\n this.svgNodes.forEach(function (shape) {\n $(shape.node).fadeIn(duration, function () {\n return shape.show();\n });\n });\n } else {\n this.svgNodes.forEach(function (shape) {\n $(shape.node).fadeOut(duration, function () {\n return shape.hide();\n });\n });\n }\n } else {\n if (this.visible === true) {\n this.svgNodes.show();\n } else {\n this.svgNodes.hide();\n }\n }\n }\n },\n\n /**\r\n * @method\r\n * Apply the opacity to all child set elements. Override this if you want to avoid opacity changes.\r\n * @private\r\n *\r\n */\n applyAlpha: function applyAlpha() {\n this.svgNodes.attr({ opacity: this.alpha });\n },\n\n /**\r\n * @private\r\n */\n applyTransformation: function applyTransformation() {\n var s = \"S\" + this.scaleX + \",\" + this.scaleY + \",0,0 \" + \"R\" + this.rotationAngle + \",\" + (this.getWidth() / 2 | 0) + \",\" + (this.getHeight() / 2 | 0) + \"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY() + \"\";\n this.svgNodes.transform(s);\n if (this.rotationAngle === 90 || this.rotationAngle === 270) {\n var before = this.svgNodes.getBBox(true);\n var ratio = before.height / before.width;\n var reverseRatio = before.width / before.height;\n var rs = \"...S\" + ratio + \",\" + reverseRatio + \",\" + (this.getAbsoluteX() + this.getWidth() / 2) + \",\" + (this.getAbsoluteY() + this.getHeight() / 2);\n this.svgNodes.transform(rs);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Moves the element so it is the closest to the viewer’s eyes, on top of other elements. Additional\r\n * the internal model changed as well.\r\n *\r\n * Optional: Inserts current object in front of the given one.\r\n *\r\n * @param {draw2d.Figure} [figure] move current object in front of the given one.\r\n * @since 3.0.0\r\n */\n toFront: function toFront(figure) {\n ////////////////////////////////////////////////////////////////////\n // NOTE: the code has a complete different order of draw2d.Figure.\n // we must respect the svgNodes here\n ////////////////////////////////////////////////////////////////////\n\n // ensure that the z-oder is still correct if the figure is assigned\n // to a StrongComposite\n //\n if (this.composite instanceof _packages2.default.shape.composite.StrongComposite && typeof figure !== \"undefined\") {\n var indexFigure = figure.getZOrder();\n var indexComposite = this.composite.getZOrder();\n if (indexFigure < indexComposite) {\n figure = this.composite;\n }\n }\n\n if (typeof figure === \"undefined\") {\n // bring the outer frame in front...\n this.getShapeElement().toFront();\n\n // and all inner children\n //\n if (this.svgNodes !== null) {\n this.svgNodes.toFront();\n }\n\n if (this.canvas !== null) {\n var figures = this.canvas.getFigures();\n var lines = this.canvas.getLines();\n if (figures.remove(this) !== null) {\n figures.add(this);\n } else if (lines.remove(this) !== null) {\n lines.add(this);\n }\n }\n } else {\n // Bring the SVG shapes between the \"figure\" and the container of this shape\n //\n if (this.svgNodes !== null) {\n this.svgNodes.insertAfter(figure.getTopLevelShapeElement());\n }\n this.getShapeElement().insertAfter(figure.getTopLevelShapeElement());\n\n if (this.canvas !== null) {\n var _figures = this.canvas.getFigures();\n var _lines = this.canvas.getLines();\n if (_figures.remove(this) !== null) {\n var index = _figures.indexOf(figure);\n _figures.insertElementAt(this, index + 1);\n } else if (_lines.remove(this) !== null) {\n _lines.add(this);\n }\n }\n }\n\n // bring all children in front of the parent\n //\n this.children.each(function (i, child) {\n child.figure.toFront(figure);\n });\n\n // the ports are always on top\n //\n var _this = this;\n this.getPorts().each(function (i, port) {\n port.getConnections().each(function (i, connection) {\n connection.toFront(figure);\n });\n // a port should always be in front of the shape doesn't matter what the\n // \"figure\" parameter says.\n //\n port.toFront(_this);\n });\n\n // and last but not lease the ResizeHandles if any present\n //\n this.selectionHandles.each(function (i, handle) {\n handle.toFront();\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Moves the element to the background. Additional\r\n * the internal model changed as well.\r\n *\r\n * Optional: Inserts current object in front of the given one.\r\n *\r\n * @param {draw2d.Figure} [figure] move current object in front of the given one.\r\n * @since 4.7.2\r\n */\n toBack: function toBack(figure) {\n // it is not allowed that a figure is behind the assigned composite\n //\n if (this.composite instanceof _packages2.default.shape.composite.StrongComposite) {\n this.toFront(this.composite);\n return;\n }\n\n // sort the JSON Doc\n //\n if (this.canvas !== null) {\n var figures = this.canvas.getFigures();\n var lines = this.canvas.getLines();\n if (figures.remove(this) !== null) {\n figures.insertElementAt(this, 0);\n } else if (lines.remove(this) !== null) {\n lines.insertElementAt(this, 0);\n }\n }\n\n // bring all children figures in front of the parent\n // run reverse to the collection to care about the z-order of the children)\n this.children.each(function (i, child) {\n child.figure.toBack(figure);\n }, true);\n\n if (this.svgNodes !== null) {\n if (typeof figure !== \"undefined\") {\n this.svgNodes.insertBefore(figure.getShapeElement());\n } else {\n this.svgNodes.toBack();\n }\n }\n\n if (this.canvas !== null) {\n if (typeof figure !== \"undefined\") {\n this.getShapeElement().insertBefore(figure.getShapeElement());\n } else {\n this.getShapeElement().toBack();\n }\n }\n\n // and last but not least - the ports are always on top\n //\n var _this = this;\n this.getPorts().each(function (i, port) {\n port.getConnections().each(function (i, connection) {\n connection.toFront(_this);\n });\n // a port should always be in front of the shape doesn't matter what the\n // \"figure\" parameter says.\n //\n port.toFront(_this);\n });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getTopLevelShapeElement: function getTopLevelShapeElement() {\n if (this.svgNodes.length === 0) {\n return this.shape;\n }\n return this.svgNodes;\n },\n\n /**\r\n * @private\r\n */\n createShapeElement: function createShapeElement() {\n // NOTE: don't change the order of the two calls. This defines the z-oder in the canvas.\n // The \"set\" must always be on top.\n var shape = this.canvas.paper.rect(this.getX(), this.getY(), this.getWidth(), this.getHeight());\n this.svgNodes = this.createSet();\n\n // check if the element is a \"set\" or a simple raphael shape. otherwise we wrap them into a set\n //\n if (typeof this.svgNodes.forEach === \"undefined\") {\n var set = this.canvas.paper.set();\n set.push(this.svgNodes);\n this.svgNodes = set;\n }\n\n this.svgNodes.attr({ \"stroke-scale\": this.strokeScale });\n\n // update the visibility of the children\n this.setVisible(this.visible);\n\n // propagate the CSS style to all set elements\n this.setCssClass(this.cssClass);\n\n var bb = this.svgNodes.getBBox();\n this.originalWidth = bb.width;\n this.originalHeight = bb.height;\n\n return shape;\n },\n\n /**\r\n * @method\r\n * Override this method to add your own SVG elements. See {@link draw2d.shape.basic.Label} as example.\r\n *\r\n * @template\r\n */\n createSet: function createSet() {\n return this.canvas.paper.set(); // return empty set as default;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/VectorFigure.js\":\n/*!*****************************!*\\\n !*** ./src/VectorFigure.js ***!\n \\*****************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nvar _extend = __webpack_require__(/*! util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.VectorFigure = _packages2.default.shape.node.Node.extend({\n NAME: \"draw2d.VectorFigure\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.stroke = 1;\n this.radius = 0;\n this.bgColor = new _packages2.default.util.Color(\"#ffffff\");\n this.color = new _packages2.default.util.Color(\"#303030\");\n this.dasharray = null;\n\n // memento for the stroke if we reset the glow effect of this shape\n //\n this.strokeBeforeGlow = this.stroke;\n this.glowIsActive = false;\n\n this._super(attr, (0, _extend2.default)({\n /** @attr {String} dasharray the line pattern see {@link draw2d.shape.basic.Line#setDashArray} for more information*/\n dasharray: this.setDashArray,\n /** @attr {Number} radius the radius to render the line edges */\n radius: this.setRadius,\n /** @attr {String|draw2d.util.Color} bgColor the background color of the shape */\n bgColor: this.setBackgroundColor,\n /** @attr {String|draw2d.util.Color} color the main color of the shape */\n color: this.setColor,\n /** @attr {Number} stroke the stroke width */\n stroke: this.setStroke\n }, setter), (0, _extend2.default)({\n dasharray: this.getDashArray,\n radius: this.getRadius,\n bgColor: this.getBackgroundColor,\n color: this.getColor,\n stroke: this.getStroke\n }, getter));\n },\n\n /**\r\n * @method\r\n * Sets the corner radius or the edges.\r\n *\r\n * @param {Number} radius\r\n * @since 4.2.1\r\n */\n setRadius: function setRadius(radius) {\n this.radius = radius;\n this.repaint();\n this.fireEvent(\"change:radius\", { value: this.radius });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the corner radius of the edges.\r\n *\r\n * @return {Number}\r\n * @since 4.2.1\r\n */\n getRadius: function getRadius() {\n return this.radius;\n },\n\n /**\r\n * @method\r\n * Set the line style for this object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * dash: dashPattern\r\n * });\r\n *\r\n * @param {String} dash can be one of this [\"\", \"-\", \".\", \"-.\", \"-..\", \". \", \"- \", \"--\", \"- .\", \"--.\", \"--..\"]\r\n */\n setDashArray: function setDashArray(dashPattern) {\n this.dasharray = dashPattern;\n this.repaint();\n\n this.fireEvent(\"change:dashArray\", { value: this.dasharray });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the line style for this object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr(\"dash\");\r\n *\r\n * @since 5.1.0\r\n */\n getDashArray: function getDashArray() {\n return this.dasharray;\n },\n\n /**\r\n * @method\r\n * Highlight the element or remove the highlighting\r\n *\r\n * @param {Boolean} flag indicates glow/noGlow\r\n */\n setGlow: function setGlow(flag) {\n\n if (flag === this.glowIsActive) {\n return this;\n }\n\n this.glowIsActive = flag;\n if (flag === true) {\n this.strokeBeforeGlow = this.getStroke();\n this.setStroke(this.strokeBeforeGlow * 2.5);\n } else {\n this.setStroke(this.strokeBeforeGlow);\n }\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n attributes.x = this.getAbsoluteX();\n attributes.y = this.getAbsoluteY();\n\n if (typeof attributes.stroke === \"undefined\") {\n if (this.color === null || this.stroke === 0) {\n attributes.stroke = \"none\";\n } else {\n attributes.stroke = this.color.rgba();\n }\n }\n\n _JSONUtil2.default.ensureDefault(attributes, \"stroke-width\", this.stroke);\n _JSONUtil2.default.ensureDefault(attributes, \"fill\", this.bgColor.rgba());\n _JSONUtil2.default.ensureDefault(attributes, \"dasharray\", this.dasharray);\n\n this._super(attributes);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the new background color of the figure. It is possible to hands over\r\n * <code>null</code> to set the background transparent.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * \"bgColor\": \"#f0f0f0\"\r\n * });\r\n *\r\n * @param {String|draw2d.util.Color} color The new background color of the figure\r\n **/\n setBackgroundColor: function setBackgroundColor(color) {\n this.bgColor = new _packages2.default.util.Color(color);\n\n this.repaint();\n this.fireEvent(\"change:bgColor\", { value: this.bgColor });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The current used background color.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * var color =figure.attr(\"bgColor\");\r\n *\r\n * @return {draw2d.util.Color}\r\n */\n getBackgroundColor: function getBackgroundColor() {\n return this.bgColor;\n },\n\n /**\r\n * @method\r\n * Set the stroke to use.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * \"stroke\": 2\r\n * });\r\n *\r\n * @param {Number} w The new line width of the figure\r\n **/\n setStroke: function setStroke(w) {\n this.stroke = w;\n this.repaint();\n this.fireEvent(\"change:stroke\", { value: this.stroke });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The used line width.\r\n *\r\n * @returns {Number}\r\n **/\n getStroke: function getStroke() {\n return this.stroke;\n },\n\n /**\r\n * @method\r\n * Set the foreground color of the figure.\r\n * This method fires a <i>document dirty</i> event.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * \"color\": \"#f3f3f3\"\r\n * });\r\n *\r\n * @param {String|draw2d.util.Color} color The new color of the line.\r\n **/\n setColor: function setColor(color) {\n this.color = new _packages2.default.util.Color(color);\n this.repaint();\n this.fireEvent(\"change:color\", { value: this.color });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the current used foreground color\r\n *\r\n *\r\n * @returns {draw2d.util.Color}\r\n */\n getColor: function getColor() {\n return this.color;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n return (0, _extend2.default)(this._super(), {\n bgColor: this.bgColor.rgba(),\n color: this.color.rgba(),\n stroke: this.stroke,\n radius: this.radius,\n dasharray: this.dasharray\n });\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.radius !== \"undefined\") {\n this.setRadius(memento.radius);\n }\n\n if (typeof memento.bgColor !== \"undefined\") {\n this.setBackgroundColor(memento.bgColor);\n }\n\n if (typeof memento.color !== \"undefined\") {\n this.setColor(memento.color);\n }\n\n if (typeof memento.stroke !== \"undefined\") {\n this.setStroke(memento.stroke === null ? 0 : parseFloat(memento.stroke));\n }\n\n if (typeof memento.dasharray === \"string\") {\n this.dasharray = memento.dasharray;\n }\n\n return this;\n }\n\n});\n/**\r\n * @class draw2d.VectorFigure\r\n * The base class for all vector based figures like {@link draw2d.shape.basic.Rectangle} or {@link draw2d.shape.basic.Oval}\r\n * inside a canvas.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.node.Node\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/Command.js\":\n/*!********************************!*\\\n !*** ./src/command/Command.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.Command = Class.extend({\n\n NAME: \"draw2d.command.Command\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {String} label\r\n */\n init: function init(label) {\n this.label = label;\n },\n\n /**\r\n * @method\r\n * Returns a label of the Command. e.g. \"move figure\".\r\n *\r\n * @return {String} the label for this command\r\n **/\n getLabel: function getLabel() {\n return this.label;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean} return try if the command modify the model or make any relevant changes\r\n **/\n canExecute: function canExecute() {\n return true;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time.\r\n * Sup-classes must implement this method.\r\n *\r\n * @template\r\n **/\n execute: function execute() {},\n\n /**\r\n * @method\r\n * Will be called if the user cancel the operation.\r\n *\r\n * @template\r\n **/\n cancel: function cancel() {},\n\n /**\r\n * @method\r\n * Undo the command.\r\n * Sup-classes must implement this method.\r\n *\r\n * @template\r\n **/\n undo: function undo() {},\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command.\r\n * Sup-classes must implement this method.\r\n *\r\n * @template\r\n **/\n redo: function redo() {}\n}); /**\r\n * @class draw2d.command.Command\r\n *\r\n * Commands are passed around throughout editing. They are used to encapsulate and combine\r\n * changes to the application's model. An application has a single command stack. Commands must\r\n * be executed using the command stack rather than directly calling execute.\r\n * <br>\r\n * This is requried for a deneric support for the undo/redo concept within draw2d.<br>\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandAdd.js\":\n/*!***********************************!*\\\n !*** ./src/command/CommandAdd.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandAdd = _packages2.default.command.Command.extend({\n\n NAME: \"draw2d.command.CommandAdd\",\n\n /**\r\n * @constructor\r\n * Create a add command for the given figure.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to use\r\n * @param {draw2d.Figure} figure the figure to add\r\n * @param {Number|draw2d.geo.Point} x the x-coordinate or a complete point where to place the figure\r\n * @param {Number} [y] the y-coordinate if x is a number and not a complete point\r\n */\n init: function init(canvas, figure, x, y) {\n this._super(_packages2.default.Configuration.i18n.command.addShape);\n this.figure = figure;\n this.canvas = canvas;\n this.pos = new _packages2.default.geo.Point(x, y);\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean} return try if the command modify the model or make any relevant changes\r\n **/\n canExecute: function canExecute() {\n // we can only add the figure once to the canvas\n return this.figure.getCanvas() === null;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.canvas.add(this.figure, this.pos.x, this.pos.y);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.execute();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n this.canvas.remove(this.figure);\n }\n\n}); /**\r\n * @class draw2d.command.CommandAdd\r\n *\r\n * Command to add a figure with CommandStack support.\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandAddVertex.js\":\n/*!*****************************************!*\\\n !*** ./src/command/CommandAddVertex.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandAddVertex = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandAddVertex\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which add a vertex to a PolyLine / Polygon.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} line the related line\r\n * @param {Number} index the index where to add\r\n * @param {Number} x the x coordinate for the new vertex\r\n * @param {Number} y the y coordinate for the new vertex\r\n */\n init: function init(line, index, x, y) {\n this._super(_packages2.default.Configuration.i18n.command.addVertex);\n\n this.line = line;\n this.index = index;\n this.newPoint = new _packages2.default.geo.Point(x, y);\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return true;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.line.removeVertexAt(this.index);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.line.insertVertexAt(this.index, this.newPoint.x, this.newPoint.y);\n }\n}); /**\r\n * @class draw2d.command.CommandAddVertex\r\n *\r\n * Add a vertex to a polyline or polygon\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandAssignFigure.js\":\n/*!********************************************!*\\\n !*** ./src/command/CommandAssignFigure.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandAssignFigure = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandAssignFigure\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Figure} figure the figure to assign\r\n * @param {draw2d.Figure} composite the composite where the figure should assign\r\n */\n init: function init(figure, composite) {\n this._super(_packages2.default.Configuration.i18n.command.assignShape);\n\n this.figure = figure;\n this.composite = composite;\n this.assignedConnections = new _packages2.default.util.ArrayList();\n this.isNode = this.figure instanceof _packages2.default.shape.node.Node;\n this.oldBoundingBox = composite.getBoundingBox();\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return true;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.composite.assignFigure(this.figure);\n\n // get all connections of the shape and check if source/target node\n // part of the composite. In this case the connection will be part of\n // the composite as well\n if (this.isNode === true) {\n var connections = this.figure.getConnections();\n var _this = this;\n connections.each(function (i, connection) {\n if (connection.getSource().getParent().getComposite() === _this.composite && connection.getTarget().getParent().getComposite() === _this.composite) {\n if (connection.getComposite() !== _this.composite) {\n _this.assignedConnections.add({ oldComposite: connection.getComposite(), connection: connection });\n _this.composite.assignFigure(connection);\n }\n }\n });\n }\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.composite.unassignFigure(this.figure);\n this.assignedConnections.each(function (i, entry) {\n if (entry.oldComposite !== null) {\n entry.oldComposite.assignFigure(entry.connection);\n } else {\n entry.connection.getComposite().unassignFigure(entry.connection);\n }\n });\n this.composite.stickFigures = true;\n this.composite.setBoundingBox(this.oldBoundingBox);\n this.composite.stickFigures = false;\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n var _this2 = this;\n\n this.composite.setBoundingBox(this.oldBoundingBox);\n this.composite.assignFigure(this.figure);\n this.assignedConnections.each(function (i, entry) {\n return _this2.composite.assignFigure(entry.connection);\n });\n }\n}); /**\r\n * @class draw2d.command.CommandAssignFigure\r\n *\r\n * Assign a figure to a compiste\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n * @since 4.9.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandAttr.js\":\n/*!************************************!*\\\n !*** ./src/command/CommandAttr.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandAttr = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandAttr\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which provides undo/redo for attributes.\r\n *\r\n * @param {draw2d.Figure} figure the figure to handle\r\n * @param {Object} attributes new attributes to set\r\n */\n init: function init(figure, newAttributes) {\n var _this = this;\n\n this._super(_packages2.default.Configuration.i18n.command.changeAttributes);\n\n this.figure = figure;\n this.newAttributes = newAttributes;\n this.oldAttributes = {};\n // Get the current attributes from the shape before we modify them.\n // Required for undo/redo\n Object.keys(newAttributes).forEach(function (key) {\n _this.oldAttributes[key] = figure.attr(key);\n });\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return true;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.figure.attr(this.oldAttributes);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.figure.attr(this.newAttributes);\n }\n}); /**\r\n * @class draw2d.command.CommandAattr\r\n *\r\n *Command to change attributes of a shape with undo/redo support\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandBoundingBox.js\":\n/*!*******************************************!*\\\n !*** ./src/command/CommandBoundingBox.js ***!\n \\*******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandBoundingBox = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandResize\",\n\n /**\r\n * @constructor\r\n * Create a new resize Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Figure} figure the figure to resize\r\n * @param {draw2d.geo.Rectangle} boundingBox the new bounding box of the figure\r\n */\n init: function init(figure, boundingBox) {\n this._super(_packages2.default.Configuration.i18n.command.resizeShape);\n this.figure = figure;\n this.oldBoundingBox = this.figure.getBoundingBox();\n this.newBoundingBox = boundingBox;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return !this.oldBoundingBox.equals(this.newBoundingBox);\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n this.figure.setBoundingBox(this.oldBoundingBox);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.figure.setBoundingBox(this.newBoundingBox);\n }\n}); /**\r\n * @class draw2d.command.CommandBoundingBox\r\n * Set the bounding box of a figure with undo/redo support\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandCollection.js\":\n/*!******************************************!*\\\n !*** ./src/command/CommandCollection.js ***!\n \\******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandCollection = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandCollection\",\n\n /**\r\n * @constructor\r\n * Create a new CommandConnect objects which can be execute via the CommandStack.\r\n *\r\n * @param {String} [commandLabel] the label to show on the command stack for the undo/redo operation\r\n */\n init: function init(commandLabel) {\n this._super(typeof commandLabel === 'undefined' ? _packages2.default.Configuration.i18n.command.collection : commandLabel);\n\n this.commands = new _packages2.default.util.ArrayList();\n },\n\n /**\r\n * @method\r\n * Returns a label of the Command. e.g. \"move figure\".\r\n *\r\n * @return {String} the label for this command\r\n **/\n getLabel: function getLabel() {\n //return the label of the one and only command\n //\n if (this.commands.getSize() === 1) {\n return this.commands.first().getLabel();\n }\n\n // return a common label if all commands have the same label.\n //\n if (this.commands.getSize() > 1) {\n var labels = this.commands.clone().map(function (e) {\n return e.getLabel();\n });\n labels.unique();\n if (labels.getSize() === 1) {\n return labels.first();\n }\n }\n\n // return the all purpose label.\n return this._super();\n },\n\n /**\r\n * @method\r\n * Add a command to the collection.\r\n *\r\n * @param {draw2d.command.Command} command\r\n */\n add: function add(command) {\n this.commands.add(command);\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // We ask all cmd's if they make any changes.\n // Keep in mind: the command will be execute if at least ONE command return [true]!!!!\n // doesn't matter if the other commands return [false].\n // The method should be renamed into: modifiesTheModel()....design flaw.\n var canExec = false;\n this.commands.each(function (i, cmd) {\n canExec = canExec || cmd.canExecute();\n });\n return canExec;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.commands.each(function (i, cmd) {\n cmd.execute();\n });\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command.\r\n *\r\n **/\n redo: function redo() {\n this.commands.each(function (i, cmd) {\n cmd.redo();\n });\n },\n\n /**\r\n * @method\r\n * Undo the command.\r\n *\r\n **/\n undo: function undo() {\n // execute the undo operation in reverse direction.\n\n this.commands.reverse();\n this.commands.each(function (i, cmd) {\n cmd.undo();\n });\n this.commands.reverse();\n }\n}); /**\r\n * @class draw2d.command.CommandCollection\r\n *\r\n * A CommandCollection works as a single command. You can add more than one\r\n * Command to this CommandCollection and execute/undo them onto the CommandStack as a\r\n * single Command.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandConnect.js\":\n/*!***************************************!*\\\n !*** ./src/command/CommandConnect.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandConnect = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandConnect\",\n\n /**\r\n * @constructor\r\n * Create a new CommandConnect objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Port} source the source port for the connection to create\r\n * @param {draw2d.Port} target the target port for the connection to create\r\n * @param {draw2d.Port} [dropTarget] the port who has initiate the connection creation. mainly the drop target\r\n */\n init: function init(source, target, dropTarget) {\n this._super(_packages2.default.Configuration.i18n.command.connectPorts);\n this.canvas = target.getCanvas();\n this.source = source;\n this.target = target;\n this.connection = null;\n this.dropTarget = dropTarget; // optional\n },\n\n /**\r\n * @method\r\n * set the connection to use. called by the ConnectionCreatePolicy\r\n */\n setConnection: function setConnection(connection) {\n this.connection = connection;\n },\n\n /**\r\n * @method\r\n * Returns the fresh created connection if available. Used in the\r\n * ClickConnectionCreatePolicy to customize the router and vertices.\r\n *\r\n * @returns {null|draw2d.Connection}\r\n * @since 6.1.0\r\n */\n getConnection: function getConnection() {\n return this.connection;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n var _this = this;\n\n var optionalCallback = function optionalCallback(conn) {\n _this.connection = conn;\n _this.connection.setSource(_this.source);\n _this.connection.setTarget(_this.target);\n _this.canvas.add(_this.connection);\n };\n\n // the createConnection must return either a connection or \"undefined\". If the method return \"undefined\"\n // the asynch callback must be called. Usefull if the createConnection shows a selection dialog\n //\n if (this.connection === null) {\n // deprecated call!!!!\n //\n var result = _packages2.default.Configuration.factory.createConnection(this.source, this.target, optionalCallback, this.dropTarget);\n debugger;\n // will be handled by the optional callback\n if (typeof result === \"undefined\") {\n return;\n }\n\n this.connection = result;\n }\n\n optionalCallback(this.connection);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command.\r\n *\r\n **/\n redo: function redo() {\n this.canvas.add(this.connection);\n this.connection.reconnect();\n },\n\n /**\r\n * @method\r\n * Undo the command.\r\n *\r\n **/\n undo: function undo() {\n this.canvas.remove(this.connection);\n }\n}); /**\r\n * @class draw2d.command.CommandConnect\r\n *\r\n * Connects two ports with a connection.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandDelete.js\":\n/*!**************************************!*\\\n !*** ./src/command/CommandDelete.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandDelete = _packages2.default.command.Command.extend({\n\n NAME: \"draw2d.command.CommandDelete\",\n\n /**\r\n * @constructor\r\n * Create a delete command for the given figure.\r\n *\r\n * @param {draw2d.Figure} figure\r\n */\n init: function init(figure) {\n this._super(_packages2.default.Configuration.i18n.command.deleteShape);\n\n this.parent = figure.getParent();\n this.figure = figure;\n this.canvas = figure.getCanvas();\n this.connections = null;\n this.removedParentEntry = null; // can be null if the figure didn't have any parent shape assigned\n this.indexOfChild = -1;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean} return try if the command modify the model or make any relevant changes\r\n **/\n canExecute: function canExecute() {\n // we can only delete the figure if its part of the canvas.\n return this.figure.getCanvas() !== null;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n if (this.parent !== null) {\n this.parent.add(this.removedParentEntry.figure, this.removedParentEntry.locator, this.indexOfChild);\n this.canvas.setCurrentSelection(this.parent);\n } else {\n this.canvas.add(this.figure);\n this.canvas.setCurrentSelection(this.figure);\n }\n\n if (this.figure instanceof _packages2.default.Connection) {\n this.figure.reconnect();\n }\n\n for (var i = 0; i < this.connections.getSize(); ++i) {\n this.canvas.add(this.connections.get(i));\n this.connections.get(i).reconnect();\n }\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.canvas.setCurrentSelection(null);\n\n // Collect all connections that are bounded to the figure to delete. This connections\n // must be deleted too.\n //\n if (this.connections === null) {\n if (this.figure instanceof _packages2.default.shape.node.Node) {\n this.connections = this.figure.getConnections();\n } else {\n this.connections = new _packages2.default.util.ArrayList();\n }\n }\n\n // already done in the canvas.remove(..) method\n // if(this.figure instanceof draw2d.Connection){\n // this.figure.disconnect();\n // }\n\n\n // remove all connections\n //\n for (var i = 0; i < this.connections.getSize(); ++i) {\n this.canvas.remove(this.connections.get(i));\n }\n\n // remove this figure from the parent\n //\n if (this.parent !== null) {\n // determine the index of the child before remove\n this.indexOfChild = this.parent.getChildren().indexOf(this.figure);\n this.removedParentEntry = this.parent.remove(this.figure);\n }\n // or from the canvas\n else {\n this.canvas.remove(this.figure);\n }\n }\n}); /**\r\n * @class draw2d.command.CommandDelete\r\n * Command to remove a figure with CommandStack support.\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandDeleteGroup.js\":\n/*!*******************************************!*\\\n !*** ./src/command/CommandDeleteGroup.js ***!\n \\*******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandDeleteGroup = _packages2.default.command.Command.extend({\n\n NAME: \"draw2d.command.CommandDeleteGroup\",\n\n /**\r\n * @constructor\r\n * Create a delete command for the given figure.\r\n *\r\n * @param {draw2d.shape.composite.Group} group\r\n */\n init: function init(group) {\n this._super(_packages2.default.Configuration.i18n.command.deleteShape);\n\n this.parent = group.getParent();\n this.group = group;\n this.canvas = group.getCanvas();\n this.batchDelete = null;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean} return try if the command modify the model or make any relevant changes\r\n **/\n canExecute: function canExecute() {\n // we can only delete the shape if a children can be deleted\n //\n var children = this.group.getAssignedFigures();\n for (var i = 0; i < children.getSize(); i++) {\n if (children.get(i).isDeleteable() === false) {\n return false;\n }\n }\n\n // we can only delete the figure if its part of the canvas.\n return this.group.getCanvas() !== null;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n this.batchDelete.undo();\n this.canvas.setCurrentSelection(this.group);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n if (this.batchDelete === null) {\n this.batchDelete = new _packages2.default.command.CommandCollection();\n\n // remove the assignment of the children to the group before we delete the group\n //\n this.batchDelete.add(new _packages2.default.command.CommandUngroup(this.canvas, this.group));\n\n // add the delete command of the children to the batch\n //\n var children = this.group.getAssignedFigures();\n for (var i = 0; i < children.getSize(); i++) {\n var child = children.get(i);\n // request a delete Command from the child instead of create one by my own. May the child\n // provides its own implementation\n var cmd = child.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.DELETE));\n this.batchDelete.add(cmd);\n }\n }\n\n this.batchDelete.execute();\n }\n}); /**\r\n * @class draw2d.command.CommandDeleteGroup\r\n *\r\n * Command to remove a group with all related children.\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandGroup.js\":\n/*!*************************************!*\\\n !*** ./src/command/CommandGroup.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandGroup = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandGroup\",\n\n /**\r\n * @constructor\r\n * Create a group command for the given figure.\r\n *\r\n * @param {draw2d.util.ArrayList} figures the figures to group\r\n */\n init: function init(canvas, figures) {\n this._super(_packages2.default.Configuration.i18n.command.groupShapes);\n if (figures instanceof _packages2.default.Selection) {\n this.figures = figures.getAll();\n } else {\n this.figures = figures;\n }\n\n // figures which already part of an non \"Group\" composite will be removed from the set.\n // It is not possible to assign a figure to two different composites.\n //\n this.figures.grep(function (figure) {\n return figure.getComposite() === null;\n });\n\n this.canvas = canvas;\n this.group = new _packages2.default.shape.composite.Group();\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean} return try if the command modify the model or make any relevant changes\r\n **/\n canExecute: function canExecute() {\n return !this.figures.isEmpty();\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n var _this = this;\n this.figures.each(function (i, figure) {\n _this.group.unassignFigure(figure);\n });\n\n this.canvas.remove(this.group);\n this.canvas.setCurrentSelection(this.figures);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n var _this = this;\n this.figures.each(function (i, figure) {\n _this.group.assignFigure(figure);\n });\n\n this.canvas.add(this.group);\n this.canvas.setCurrentSelection(this.group);\n }\n}); /**\r\n * @class draw2d.command.CommandGroup\r\n * Command to group a given set of figures\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandMove.js\":\n/*!************************************!*\\\n !*** ./src/command/CommandMove.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandMove = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandMove\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Figure} figure the figure to move\r\n * @param {Number} [x] the current x position\r\n * @param {Number} [y] the current y position\r\n */\n init: function init(figure, x, y) {\n this._super(_packages2.default.Configuration.i18n.command.moveShape);\n this.figure = figure;\n if (typeof x === \"undefined\") {\n this.oldX = figure.getX();\n this.oldY = figure.getY();\n } else {\n this.oldX = x;\n this.oldY = y;\n }\n },\n\n /**\r\n * @method\r\n * Set the initial position of the element\r\n *\r\n * @param {Number} x the new initial x position\r\n * @param {Number} y the new initial y position\r\n **/\n setStartPosition: function setStartPosition(x, y) {\n this.oldX = x;\n this.oldY = y;\n },\n\n /**\r\n * @method\r\n * Set the target/final position of the figure move command.\r\n *\r\n * @param {Number} x the new x position\r\n * @param {Number} y the new y position\r\n **/\n setPosition: function setPosition(x, y) {\n this.newX = x;\n this.newY = y;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.newX !== this.oldX || this.newY !== this.oldY;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.figure.setPosition(this.oldX, this.oldY);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.figure.setPosition(this.newX, this.newY);\n }\n}); /**\r\n * @class draw2d.command.CommandMove\r\n *\r\n * Command for the movement of figures.\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandMoveConnection.js\":\n/*!**********************************************!*\\\n !*** ./src/command/CommandMoveConnection.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandMoveConnection = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandMoveConnection\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Connection} figure the connection to move\r\n */\n init: function init(figure) {\n this._super(_packages2.default.Configuration.i18n.command.moveLine);\n this.line = figure;\n this.dx = 0;\n this.dy = 0;\n },\n\n /**\r\n * @method\r\n * set the offset of the line translation\r\n *\r\n * @param {Number} dx\r\n * @param {Number} dy\r\n */\n setTranslation: function setTranslation(dx, dy) {\n this.dx = dx;\n this.dy = dy;\n },\n\n /**\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @returns {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.dx !== 0 && this.dy !== 0;\n },\n\n /**\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n var _this = this;\n this.line.getVertices().each(function (i, e) {\n e.translate(-_this.dx, -_this.dy);\n });\n this.line.svgPathString = null;\n // required to update resize handles and the painting of the line\n this.line.setPosition(this.line.getStartPosition());\n },\n\n /**\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n var _this = this;\n this.line.getVertices().each(function (i, e) {\n e.translate(_this.dx, _this.dy);\n });\n this.line.svgPathString = null;\n\n // required to update resize handles and the painting of the line\n this.line.setPosition(this.line.getStartPosition());\n }\n}); /**\r\n * @class draw2d.command.CommandMoveConnection\r\n *\r\n * Command for the movement of figures.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandMoveLine.js\":\n/*!****************************************!*\\\n !*** ./src/command/CommandMoveLine.js ***!\n \\****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandMoveLine = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandMoveLine\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.shape.basic.Line} figure the line to move\r\n */\n init: function init(figure) {\n this._super(_packages2.default.Configuration.i18n.command.moveLine);\n this.line = figure;\n this.dx = 0;\n this.dy = 0;\n },\n\n /**\r\n * @method\r\n * set the offset of the line translation\r\n *\r\n * @param {Number} dx\r\n * @param {Number} dy\r\n */\n setTranslation: function setTranslation(dx, dy) {\n this.dx = dx;\n this.dy = dy;\n },\n\n /**\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @returns {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.dx !== 0 && this.dy !== 0;\n },\n\n /**\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n var _this = this;\n this.line.getVertices().each(function (i, e) {\n e.translate(-_this.dx, -_this.dy);\n });\n this.line.svgPathString = null;\n // required to update resize handles and the painting of the line\n this.line.setPosition(this.line.getStartPosition());\n },\n\n /**\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n var _this = this;\n this.line.getVertices().each(function (i, e) {\n e.translate(_this.dx, _this.dy);\n });\n this.line.svgPathString = null;\n\n // required to update resize handles and the painting of the line\n this.line.setPosition(this.line.getStartPosition());\n }\n}); /**\r\n * @class draw2d.command.CommandMoveLine\r\n *\r\n * Command for the movement of figures.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandMoveVertex.js\":\n/*!******************************************!*\\\n !*** ./src/command/CommandMoveVertex.js ***!\n \\******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandMoveVertex = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandMoveVertex\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} line the related line\r\n */\n init: function init(line) {\n this._super(_packages2.default.Configuration.i18n.command.moveVertex);\n\n this.line = line;\n this.index = -1;\n this.newPoint = null;\n },\n\n /**\r\n * @method\r\n * Set the index of the vertex of the polyline/polygon to modify.\r\n *\r\n * @param {Number} index the related index of the vertex\r\n **/\n setIndex: function setIndex(index) {\n this.index = index;\n this.origPoint = this.line.getVertices().get(this.index).clone();\n },\n\n updatePosition: function updatePosition(x, y) {\n this.newPoint = new _packages2.default.geo.Point(x, y);\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.index !== -1 && this.newPoint !== null;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.line.setVertex(this.index, this.origPoint.x, this.origPoint.y);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.line.setVertex(this.index, this.newPoint.x, this.newPoint.y);\n }\n}); /**\r\n * @class draw2d.command.CommandMoveVertex\r\n *\r\n * Command for the vertex movement of a polyline/polygon.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandMoveVertices.js\":\n/*!********************************************!*\\\n !*** ./src/command/CommandMoveVertices.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandMoveVertices = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandMoveVertices\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} line the related line\r\n */\n init: function init(line) {\n this._super(_packages2.default.Configuration.i18n.command.moveVertices);\n\n this.line = line;\n this.oldVertices = line.getVertices().clone(true);\n this.newVertices = null;\n },\n\n updateVertices: function updateVertices(newVertices) {\n this.newVertices = newVertices;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.newVertices !== null;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.line.setVertices(this.oldVertices);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.line.setVertices(this.newVertices);\n }\n}); /**\r\n * @class draw2d.command.CommandMoveVertices\r\n *\r\n * Command for the vertices movement of a polyline/polygon.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandReconnect.js\":\n/*!*****************************************!*\\\n !*** ./src/command/CommandReconnect.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandReconnect = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandReconnect\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Connection} conn the related Connection which is currently in the drag&drop operation\r\n */\n init: function init(conn) {\n this._super(_packages2.default.Configuration.i18n.command.connectPorts);\n this.con = conn;\n this.oldSourcePort = conn.getSource();\n this.oldTargetPort = conn.getTarget();\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return true;\n },\n\n /**\r\n * @method\r\n * The new ports to use during the execute of this command.\r\n *\r\n * @param {draw2d.Port} source\r\n * @param {draw2d.Port} target\r\n */\n setNewPorts: function setNewPorts(source, target) {\n this.newSourcePort = source;\n this.newTargetPort = target;\n },\n\n setIndex: function setIndex(index) {\n // do nothing....but method is required for LineResizeHandle\n // With this common interface the ResizeHandle can handle Lines and Connections\n // with the same code\n },\n\n /**\r\n * compatibily method to the CommandMoveVertex to handle Line and Connections\r\n * transparent in the ResizeHandles\r\n *\r\n * @param x\r\n * @param y\r\n */\n updatePosition: function updatePosition(x, y) {\n // do nothing....but method is required for LineResizeHandle\n // With this common interface the ResizeHandle can handle Lines and Connections\n // with the same code\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n cancel: function cancel() {\n this.con.setSource(this.oldSourcePort);\n this.con.setTarget(this.oldTargetPort);\n\n // force a routing of the connection and DON'T set the old reouter again because this reset all manual added\n // vertices\n this.con.routingRequired = true;\n this.con.repaint();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n this.con.setSource(this.oldSourcePort);\n this.con.setTarget(this.oldTargetPort);\n // force a routing of the connection and DON'T set the old reouter again because this reset all manual added\n // vertices\n this.con.routingRequired = true;\n this.con.repaint();\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.con.setSource(this.newSourcePort);\n this.con.setTarget(this.newTargetPort);\n // force a routing of the connection and DON'T set the old reouter again because this reset all manual added\n // vertices\n this.con.routingRequired = true;\n this.con.repaint();\n }\n\n}); /**\r\n * @class draw2d.command.CommandReconnect\r\n *\r\n * Reconnects two ports. This command is used during the DragDrop operation of a draw2d.Connection.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandRemoveVertex.js\":\n/*!********************************************!*\\\n !*** ./src/command/CommandRemoveVertex.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandRemoveVertex = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandRemoveVertex\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which add a vertex to a PloyLine.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} line the related line\r\n * @param {Number} index the index where to add\r\n */\n init: function init(line, index) {\n this._super(_packages2.default.Configuration.i18n.command.deleteVertex);\n\n this.line = line;\n this.index = index;\n this.oldPoint = line.getVertices().get(index).clone();\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return true;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.line.insertVertexAt(this.index, this.oldPoint.x, this.oldPoint.y);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.line.removeVertexAt(this.index);\n }\n}); /**\r\n * @class draw2d.command.CommandRemoveVertex\r\n *\r\n * Remove a vertex from a polyline or polygon\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandReplaceVertices.js\":\n/*!***********************************************!*\\\n !*** ./src/command/CommandReplaceVertices.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandReplaceVertices = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandReplaceVertices\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which add a segment to a PolyLine / Polygon.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} line the related line\r\n * @param {draw2d.util.ArrayList} originalVertices the original vertices of the polyline\r\n * @param {draw2d.util.ArrayList} newVertices the new vertices of the polyline\r\n */\n init: function init(line, originalVertices, newVertices) {\n this._super(_packages2.default.Configuration.i18n.command.addSegment);\n\n this.line = line;\n this.originalVertices = originalVertices;\n this.newVertices = newVertices;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return true;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.line.setVertices(this.originalVertices);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.line.setVertices(this.newVertices);\n }\n}); /**\r\n * @class draw2d.command.CommandReplaceVertices\r\n *\r\n * Replace the vertices of a polyline.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandResize.js\":\n/*!**************************************!*\\\n !*** ./src/command/CommandResize.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandResize = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandResize\",\n\n /**\r\n * @constructor\r\n * Create a new resize Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Figure} figure the figure to resize\r\n * @param {Number} [width] the current width\r\n * @param {Number} [height] the current height\r\n */\n init: function init(figure, width, height) {\n this._super(_packages2.default.Configuration.i18n.command.resizeShape);\n this.figure = figure;\n\n if (typeof width === \"undefined\") {\n this.oldWidth = figure.getWidth();\n this.oldHeight = figure.getHeight();\n } else {\n this.oldWidth = width;\n this.oldHeight = height;\n }\n },\n\n /**\r\n * @method\r\n * Set the new dimension of the element.\r\n *\r\n * @param {Number} width the new width.\r\n * @param {Number} height the new height of the element.\r\n **/\n setDimension: function setDimension(width, height) {\n this.newWidth = width | 0;\n this.newHeight = height | 0;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.newWidth !== this.oldWidth || this.newHeight !== this.oldHeight;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n this.figure.setDimension(this.oldWidth, this.oldHeight);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.figure.setDimension(this.newWidth, this.newHeight);\n }\n}); /**\r\n * @class draw2d.command.CommandResize\r\n * Resize command for figures. Can be execute/undo/redo via a CommandStack.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandRotate.js\":\n/*!**************************************!*\\\n !*** ./src/command/CommandRotate.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandRotate = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandRotate\",\n\n /**\r\n * @constructor\r\n * Create a new resize Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Figure} figure the figure to resize\r\n * @param {Number} angle the angle to rotate\r\n */\n init: function init(figure, angle) {\n this._super(_packages2.default.Configuration.i18n.command.rotateShape);\n this.figure = figure;\n\n this.oldAngle = figure.getRotationAngle();\n this.newAngle = angle;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.oldAngle !== this.newAngle;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n this.rotate(this.oldAngle);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.rotate(this.newAngle);\n },\n\n rotate: function rotate(angle) {\n var w = this.figure.getWidth();\n var h = this.figure.getHeight();\n\n this.figure.setRotationAngle(angle);\n\n this.figure.setDimension(h, w);\n\n this.figure.portRelayoutRequired = true;\n }\n}); /**\r\n * @class draw2d.command.CommandRotate\r\n *\r\n * Set the rotation angle of the given figure\r\n *\r\n * @since 4.4.1\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandStack.js\":\n/*!*************************************!*\\\n !*** ./src/command/CommandStack.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandStack = Class.extend({\n NAME: \"draw2d.command.CommandStack\",\n\n /**\r\n * @constructor\r\n * Create a new CommandStack objects which can be execute via the CommandStack.\r\n *\r\n */\n init: function init() {\n this.undostack = [];\n this.redostack = [];\n this.maxundo = 50;\n this.transactionCommand = null;\n this.eventListeners = new _packages2.default.util.ArrayList();\n },\n\n /**\r\n * @method\r\n * Set the maximal undo stack size. Entries will be remove if the max. stack\r\n * size has been reached.\r\n *\r\n * @param {Number} count The maximal undo stack size.\r\n *\r\n **/\n setUndoLimit: function setUndoLimit(count) {\n this.maxundo = count;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove the undo / redo history. This is useful if the user has been save the\r\n * document.\r\n *\r\n **/\n markSaveLocation: function markSaveLocation() {\n this.undostack = [];\n this.redostack = [];\n\n // fire an empty command to inform all listener that the stack has been changed\n this.notifyListeners(new _packages2.default.command.Command(), _packages2.default.command.CommandStack.POST_EXECUTE);\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * Executes the specified Command if possible. Prior to executing the command, a\r\n * draw2d.command.CommandStackEvent for {@link #PRE_EXECUTE} will be fired to event listeners.\r\n * Similarly, after attempting to execute the command, an event for {@link #POST_EXECUTE}\r\n * will be fired.\r\n *\r\n * @param {draw2d.command.Command} command The command to execute.\r\n *\r\n **/\n execute: function execute(command) {\n if (typeof command === \"undefined\") throw \"Missing parameter [command] for method call CommandStack.execute\";\n\n // nothing to do\n if (command === null) return; //silently\n\n // return if the command can't execute or it doesn't change the model\n // => Empty command\n if (command.canExecute() === false) return;\n\n // A command stack transaction is open.\n // The execution will be postpone until the transaction will commit\n //\n if (this.transactionCommand !== null) {\n this.transactionCommand.add(command);\n return;\n }\n\n this.notifyListeners(command, _packages2.default.command.CommandStack.PRE_EXECUTE, \"PRE_EXECUTE\");\n\n this.undostack.push(command);\n command.execute();\n\n // cleanup the redo stack if the user execute a new command.\n // I think this will create a \"clean\" behaviour of the unde/redo mechanism.\n //\n this.redostack = [];\n\n // monitor only the max. undo stack size\n //\n if (this.undostack.length > this.maxundo) {\n this.undostack = this.undostack.slice(this.undostack.length - this.maxundo);\n }\n this.notifyListeners(command, _packages2.default.command.CommandStack.POST_EXECUTE, \"POST_EXECUTE\");\n\n return this;\n },\n\n /**\r\n * @method\r\n * Opens a transaction for further multiple commands. If you execute a command all\r\n * {@ #execute} calls will be ignored until you commit the current transaction.\r\n *\r\n * @param {String} [commandLabel] the label to show for the undo/redo operation\r\n *\r\n * @since 4.0.0\r\n */\n startTransaction: function startTransaction(commandLabel) {\n if (this.transactionCommand !== null) {\n debugger;\n throw \"CommandStack is already within transactional mode. Don't call 'startTransaction\";\n }\n\n this.transactionCommand = new _packages2.default.command.CommandCollection(commandLabel);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns true if the Command Stack has an open transaction.\r\n *\r\n *\r\n */\n isInTransaction: function isInTransaction() {\n return this.transactionCommand !== null;\n },\n\n /**\r\n * @method\r\n * Commit the running transaction. All commands between the start/end of a transaction\r\n * can be undo/redo in a single step.\r\n *\r\n * @since 4.0.0\r\n */\n commitTransaction: function commitTransaction() {\n if (this.transactionCommand === null) {\n return; //silently\n }\n\n var cmd = this.transactionCommand;\n this.transactionCommand = null;\n // we can drop the CommandCollection if the collection contains only one command.\n if (cmd.commands.getSize() === 1) {\n this.execute(cmd.commands.first());\n } else {\n this.execute(cmd);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Undo on command from the stack and store them on the redo command stack.\r\n *\r\n **/\n undo: function undo() {\n var command = this.undostack.pop();\n if (command) {\n this.notifyListeners(command, _packages2.default.command.CommandStack.PRE_UNDO);\n this.redostack.push(command);\n command.undo();\n this.notifyListeners(command, _packages2.default.command.CommandStack.POST_UNDO);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Redo a command after the user has undo a command\r\n *\r\n **/\n redo: function redo() {\n var command = this.redostack.pop();\n\n if (command) {\n this.notifyListeners(command, _packages2.default.command.CommandStack.PRE_REDO);\n this.undostack.push(command);\n command.redo();\n this.notifyListeners(command, _packages2.default.command.CommandStack.POST_REDO);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the label of the next REDO command.\r\n *\r\n * @return {String}\r\n **/\n getRedoLabel: function getRedoLabel() {\n if (this.redostack.length === 0) return \"\";\n\n var command = this.redostack[this.redostack.length - 1];\n\n if (command) {\n return command.getLabel();\n }\n return \"\";\n },\n\n /**\r\n * @method\r\n * Return the label of the next UNDO command.\r\n *\r\n * @return {String}\r\n **/\n getUndoLabel: function getUndoLabel() {\n if (this.undostack.length === 0) return \"\";\n\n var command = this.undostack[this.undostack.length - 1];\n\n if (command) {\n return command.getLabel();\n }\n return \"\";\n },\n\n /**\r\n * @method\r\n * Indicates whenever a REDO is possible.\r\n *\r\n * @return boolean <code>true</code> if it is appropriate to call {@link #redo()}.\r\n */\n canRedo: function canRedo() {\n return this.redostack.length > 0;\n },\n\n /**\r\n * @method\r\n * indicator whenever a undo is possible.\r\n *\r\n * @return {Boolean} <code>true</code> if {@link #undo()} can be called\r\n **/\n canUndo: function canUndo() {\n return this.undostack.length > 0;\n },\n\n /**\r\n * @method\r\n * Adds a listener to the command stack, which will be notified whenever a command has been processed on the stack.\r\n * @deprecated use on/off to register events\r\n * @param {draw2d.command.CommandStackEventListener|Function} listener the listener to add.\r\n */\n addEventListener: function addEventListener(listener) {\n return this.on(\"change\", listener);\n },\n /**\r\n * Adds a listener to the command stack, which will be notified whenever a command has been processed on the stack.\r\n * @param event\r\n * @param func\r\n */\n on: function on(event, listener) {\n if (event !== \"change\") throw \"only event of kind 'change' is supported\";\n\n if (listener instanceof _packages2.default.command.CommandStackEventListener) {\n this.eventListeners.add(listener);\n } else if (typeof listener.stackChanged === \"function\") {\n this.eventListeners.add(listener);\n } else if (typeof listener === \"function\") {\n this.eventListeners.add({ stackChanged: listener });\n } else {\n throw \"Object doesn't implement required callback interface [draw2d.command.CommandStackListener]\";\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Removes a listener from the command stack.\r\n *\r\n * @param {draw2d.command.CommandStackEventListener} listener the listener to remove.\r\n */\n removeEventListener: function removeEventListener(listener) {\n this.off(listener);\n },\n\n off: function off(listener) {\n this.eventListeners.grep(function (entry) {\n return entry === listener || entry.stackChanged === listener;\n });\n /*\r\n let size = this.eventListeners.getSize()\r\n for (let i = 0; i < size; i++) {\r\n let entry = this.eventListeners.get(i)\r\n if (entry === listener || entry.stackChanged === listener) {\r\n this.eventListeners.remove(entry)\r\n return\r\n }\r\n }\r\n */\n return this;\n },\n\n /**\r\n * @method\r\n * Notifies command stack event listeners that the command stack has changed to the\r\n * specified state.\r\n *\r\n * @param {draw2d.command.Command} command the command\r\n * @param {Number} state the current stack state\r\n *\r\n **/\n notifyListeners: function notifyListeners(command, state, action) {\n var event = new _packages2.default.command.CommandStackEvent(this, command, state, action);\n var size = this.eventListeners.getSize();\n\n for (var i = 0; i < size; i++) {\n this.eventListeners.get(i).stackChanged(event);\n }\n }\n});\n\n/** Constant indicating notification prior to executing a command (value is 1).*/\n/**\r\n * @class draw2d.command.CommandStack\r\n * Stack for undo/redo operations\r\n */\n_packages2.default.command.CommandStack.PRE_EXECUTE = 1;\n/** Constant indicating notification prior to redoing a command (value is 2).*/\n_packages2.default.command.CommandStack.PRE_REDO = 2;\n/** Constant indicating notification prior to undoing a command (value is 4).*/\n_packages2.default.command.CommandStack.PRE_UNDO = 4;\n/** Constant indicating notification after a command has been executed (value is 8).*/\n_packages2.default.command.CommandStack.POST_EXECUTE = 8;\n/** Constant indicating notification after a command has been redone (value is 16).*/\n_packages2.default.command.CommandStack.POST_REDO = 16;\n/** Constant indicating notification after a command has been undone (value is 32).*/\n_packages2.default.command.CommandStack.POST_UNDO = 32;\n/** Constant indicating notification after the stack has been (re)init (value is 64).*/\n_packages2.default.command.CommandStack.POST_INIT = 64;\n\n_packages2.default.command.CommandStack.POST_MASK = _packages2.default.command.CommandStack.POST_EXECUTE | _packages2.default.command.CommandStack.POST_UNDO | _packages2.default.command.CommandStack.POST_REDO;\n_packages2.default.command.CommandStack.PRE_MASK = _packages2.default.command.CommandStack.PRE_EXECUTE | _packages2.default.command.CommandStack.PRE_UNDO | _packages2.default.command.CommandStack.PRE_REDO;\n\n/***/ }),\n\n/***/ \"./src/command/CommandStackEvent.js\":\n/*!******************************************!*\\\n !*** ./src/command/CommandStackEvent.js ***!\n \\******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandStackEvent = Class.extend({\n NAME: \"draw2d.command.CommandStackEvent\",\n\n /**\r\n * @constructor\r\n * Create a new CommandStack objects which can be execute via the CommandStack.\r\n * @param {draw2d.command.Command} command the related command\r\n * @param {Number} details the current state of the command execution\r\n *\r\n */\n init: function init(stack, command, details, action) {\n this.stack = stack;\n this.command = command;\n this.details = details; // deprecated\n this.action = action;\n },\n\n /**\r\n * @method\r\n * Return the corresponding stack of the event.\r\n *\r\n * @return {draw2d.command.CommandStack}\r\n **/\n getStack: function getStack() {\n return this.stack;\n },\n\n /**\r\n * @method\r\n * Returns null or a Command if a command is relevant to the current event.\r\n *\r\n * @return {draw2d.command.Command}\r\n **/\n getCommand: function getCommand() {\n return this.command;\n },\n\n /**\r\n * @method\r\n * Returns an integer identifying the type of event which has occurred.\r\n * Defined by {@link draw2d.command.CommandStack}.\r\n *\r\n * @return {Number}\r\n **/\n getDetails: function getDetails() {\n return this.details;\n },\n\n /**\r\n * @method\r\n * Returns true if this event is fired after the stack having changed.\r\n *\r\n * @return {Boolean} true if post-change event\r\n **/\n isPostChangeEvent: function isPostChangeEvent() {\n return 0 !== (this.getDetails() & _packages2.default.command.CommandStack.POST_MASK);\n },\n\n /**\r\n * @method\r\n * Returns true if this event is fired prior to the stack changing.\r\n *\r\n * @return {Boolean} true if pre-change event\r\n **/\n isPreChangeEvent: function isPreChangeEvent() {\n return 0 !== (this.getDetails() & _packages2.default.command.CommandStack.PRE_MASK);\n }\n}); /**\r\n * @class draw2d.command.CommandStackEvent\r\n * Event class which will be fired for every CommandStack operation. Required for CommandStackListener.\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandStackEventListener.js\":\n/*!**************************************************!*\\\n !*** ./src/command/CommandStackEventListener.js ***!\n \\**************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandStackEventListener = Class.extend({\n NAME: \"draw2d.command.CommandStackEventListener\",\n\n /**\r\n * @constructor\r\n * Creates a new Listener Object\r\n *\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n * Sent when an event occurs on the command stack. draw2d.command.CommandStackEvent.getDetail()\r\n * can be used to identify the type of event which has occurred.\r\n *\r\n * @template\r\n *\r\n * @param {draw2d.command.CommandStackEvent} event\r\n **/\n stackChanged: function stackChanged(event) {}\n\n}); /**\r\n * @class draw2d.command.CommandStackEventListener\r\n *\r\n * Event class which will be fired for every CommandStack operation. Required for CommandStackListener.\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandType.js\":\n/*!************************************!*\\\n !*** ./src/command/CommandType.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandType = Class.extend({\n\n NAME: \"draw2d.command.CommandType\",\n\n /**\r\n * @constructor\r\n * Create a new edit policy object\r\n *\r\n * @param {String} policy\r\n */\n init: function init(policy) {\n this.policy = policy;\n },\n\n /**\r\n * @method\r\n * Return the String representation of the policy\r\n *\r\n * @return {String}\r\n **/\n getPolicy: function getPolicy() {\n return this.policy;\n }\n}); /**\r\n * @class draw2d.command.CommandType\r\n *\r\n * EditPolicies should determine an Figures editing capabilities.\r\n * It is possible to implement an Figure such that it handles all editing\r\n * responsibility.<br>\r\n * However, it is much more flexible and object-oriented to use\r\n * EditPolicies. Using policies, you can pick and choose the editing behavior for\r\n * an Figure without being bound to its class hierarchy. Code reuse is increased,\r\n * and code management is easier.\r\n *\r\n * @author Andreas Herz\r\n */\n\n\n_packages2.default.command.CommandType.DELETE = \"DELETE\";\n_packages2.default.command.CommandType.MOVE = \"MOVE\";\n_packages2.default.command.CommandType.CONNECT = \"CONNECT\";\n_packages2.default.command.CommandType.MOVE_BASEPOINT = \"MOVE_BASEPOINT\";\n_packages2.default.command.CommandType.MOVE_VERTEX = \"MOVE_VERTEX\";\n_packages2.default.command.CommandType.MOVE_VERTICES = \"MOVE_VERTICES\";\n_packages2.default.command.CommandType.MOVE_GHOST_VERTEX = \"MOVE_GHOST_VERTEX\";\n_packages2.default.command.CommandType.RESIZE = \"RESIZE\";\n_packages2.default.command.CommandType.RESET = \"RESET\";\n_packages2.default.command.CommandType.ROTATE = \"ROTATE\";\n\n/***/ }),\n\n/***/ \"./src/command/CommandUngroup.js\":\n/*!***************************************!*\\\n !*** ./src/command/CommandUngroup.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandUngroup = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandUngroup\",\n\n /**\r\n * @constructor\r\n * Create a group command for the given figure.\r\n *\r\n * @param {draw2d.Canvas} canvas the responsible canvas\r\n * @param {draw2d.util.ArrayList|draw2d.Selection} group the figures to group\r\n */\n init: function init(canvas, group) {\n this._super(_packages2.default.Configuration.i18n.command.ungroupShapes);\n if (group instanceof _packages2.default.Selection) {\n this.group = group.getAll().first();\n } else {\n this.group = group;\n }\n\n this.canvas = canvas;\n this.figures = this.group.getAssignedFigures().clone();\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean} return try if the command modify the model or make any relevant changes\r\n **/\n canExecute: function canExecute() {\n return !this.figures.isEmpty();\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n var _this = this;\n this.figures.each(function (i, figure) {\n _this.group.assignFigure(figure);\n });\n this.canvas.add(this.group);\n this.canvas.setCurrentSelection(this.group);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n var _this = this;\n this.figures.each(function (i, figure) {\n _this.group.unassignFigure(figure);\n });\n\n this.canvas.setCurrentSelection(this.figures);\n this.canvas.remove(this.group);\n }\n}); /**\r\n * @class draw2d.command.CommandUngroup\r\n * Command to ungroup a given group figures\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/css/contextmenu.css\":\n/*!*********************************!*\\\n !*** ./src/css/contextmenu.css ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\nvar content = __webpack_require__(/*! !../../node_modules/css-loader!./contextmenu.css */ \"./node_modules/css-loader/index.js!./src/css/contextmenu.css\");\n\nif(typeof content === 'string') content = [[module.i, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = __webpack_require__(/*! ../../node_modules/style-loader/lib/addStyles.js */ \"./node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(false) {}\n\n/***/ }),\n\n/***/ \"./src/decoration/connection/ArrowDecorator.js\":\n/*!*****************************************************!*\\\n !*** ./src/decoration/connection/ArrowDecorator.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.decoration.connection.ArrowDecorator = _packages2.default.decoration.connection.Decorator.extend({\n\n NAME: \"draw2d.decoration.connection.ArrowDecorator\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Number} [width] the width of the arrow\r\n * @param {Number} [height] the height of the arrow\r\n */\n init: function init(width, height) {\n this._super(width, height);\n },\n\n /**\r\n * Draw a filled arrow decoration.\r\n * It's not your work to rotate the arrow. The draw2d do this job for you.\r\n *\r\n * <pre>\r\n * ---+ [length , width/2]\r\n * ------- |\r\n * [3,0] -------- |\r\n * +--- |==========================\r\n * -------- |\r\n * ------- |\r\n * ---+ [lenght ,-width/2]\r\n *\r\n *</pre>\r\n * @param {Raphael} paper the raphael paper object for the paint operation\r\n **/\n paint: function paint(paper) {\n var st = paper.set();\n\n st.push(paper.path([\"M0 0\", \"L\", this.width, \" \", -this.height / 2, \"L\", this.width, \" \", this.height / 2, \"L0 0\"].join(\"\")));\n\n st.attr({ fill: this.backgroundColor.rgba(), stroke: this.color.rgba() });\n\n return st;\n }\n}); /**\r\n * @class draw2d.decoration.connection.ArrowDecorator\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start();\r\n * var end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * var c = new draw2d.Connection();\r\n *\r\n * // toggle from ManhattenRouter to DirectRouter to show the rotation of decorations\r\n * c.setRouter(new draw2d.layout.connection.DirectRouter());\r\n *\r\n * // Set the endpoint decorations for the connection\r\n * //\r\n * c.setSourceDecorator(new draw2d.decoration.connection.ArrowDecorator());\r\n * c.setTargetDecorator(new draw2d.decoration.connection.ArrowDecorator());\r\n * // Connect the endpoints with the start and end port\r\n * //\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extend draw2d.decoration.connection.Decorator\r\n */\n\n/***/ }),\n\n/***/ \"./src/decoration/connection/BarDecorator.js\":\n/*!***************************************************!*\\\n !*** ./src/decoration/connection/BarDecorator.js ***!\n \\***************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.decoration.connection.BarDecorator = _packages2.default.decoration.connection.Decorator.extend({\n\n NAME: \"draw2d.decoration.connection.BarDecorator\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Number} [width] the width of the bar\r\n * @param {Number} [height] the height of the bar\r\n */\n init: function init(width, height) {\n this._super(width, height);\n },\n\n /**\r\n * @method\r\n * Draw a bar decoration.\r\n *\r\n *\r\n * @param {Raphael} paper the raphael paper object for the paint operation\r\n **/\n paint: function paint(paper) {\n var st = paper.set();\n var path = [\"M\", this.width / 2, \" \", -this.height / 2]; // Go to the top center..\n path.push(\"L\", this.width / 2, \" \", this.height / 2); // ...bottom center...\n\n st.push(paper.path(path.join(\"\")));\n st.attr({ fill: this.backgroundColor.rgba(), stroke: this.color.rgba() });\n return st;\n }\n\n}); /**\r\n * @class draw2d.decoration.connection.BarDecorator\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start();\r\n * var end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * var c = new draw2d.Connection();\r\n *\r\n * // toggle from ManhattenRouter to DirectRouter to show the rotation of decorations\r\n * c.setRouter(new draw2d.layout.connection.DirectRouter());\r\n *\r\n * // Set the endpoint decorations for the connection\r\n * //\r\n * c.setSourceDecorator(new draw2d.decoration.connection.BarDecorator());\r\n * c.setTargetDecorator(new draw2d.decoration.connection.BarDecorator());\r\n * // Connect the endpoints with the start and end port\r\n * //\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extend draw2d.decoration.connection.Decorator\r\n */\n\n/***/ }),\n\n/***/ \"./src/decoration/connection/CircleDecorator.js\":\n/*!******************************************************!*\\\n !*** ./src/decoration/connection/CircleDecorator.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.decoration.connection.CircleDecorator = _packages2.default.decoration.connection.Decorator.extend({\n\n NAME: \"draw2d.decoration.connection.CircleDecorator\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Number} [width] the width of the arrow\r\n * @param {Number} [height] the height of the arrow\r\n */\n init: function init(width, height) {\n this._super(width, height);\n },\n\n /**\r\n * Draw a filled circle decoration.\r\n *\r\n * @param {Raphael} paper the raphael paper object for the paint operation\r\n **/\n paint: function paint(paper) {\n var st = paper.set();\n\n st.push(paper.circle(0, 0, this.width / 2));\n st.attr({ fill: this.backgroundColor.rgba(), stroke: this.color.rgba() });\n\n return st;\n }\n}); /**\r\n * @class draw2d.decoration.connection.CircleDecorator\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start();\r\n * var end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * var c = new draw2d.Connection();\r\n *\r\n * // toggle from ManhattenRouter to DirectRouter to show the rotation of decorations\r\n * c.setRouter(new draw2d.layout.connection.DirectRouter());\r\n *\r\n * // Set the endpoint decorations for the connection\r\n * //\r\n * c.setSourceDecorator(new draw2d.decoration.connection.CircleDecorator());\r\n * c.setTargetDecorator(new draw2d.decoration.connection.CircleDecorator());\r\n * // Connect the endpoints with the start and end port\r\n * //\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extend draw2d.decoration.connection.Decorator\r\n */\n\n/***/ }),\n\n/***/ \"./src/decoration/connection/Decorator.js\":\n/*!************************************************!*\\\n !*** ./src/decoration/connection/Decorator.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _Color = __webpack_require__(/*! ../../util/Color */ \"./src/util/Color.js\");\n\nvar _Color2 = _interopRequireDefault(_Color);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.decoration.connection.Decorator\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n */\n_packages2.default.decoration.connection.Decorator = Class.extend({\n\n\tNAME: \"draw2d.decoration.connection.Decorator\",\n\n\t/**\r\n * @constructor\r\n */\n\tinit: function init(width, height) {\n\n\t\tif (typeof width === \"undefined\" || width < 1) {\n\t\t\tthis.width = 20;\n\t\t} else {\n\t\t\tthis.width = width;\n\t\t}\n\n\t\tif (typeof height === \"undefined\" || height < 1) {\n\t\t\tthis.height = 15;\n\t\t} else {\n\t\t\tthis.height = height;\n\t\t}\n\n\t\tthis.color = new _Color2.default(0, 0, 0);\n\t\tthis.backgroundColor = new _Color2.default(250, 250, 250);\n\t},\n\n\t/**\r\n * @method\r\n * Paint the decoration for a connector. The Connector starts always in\r\n * [0,0] and ends in [x,0].\r\n * It is not necessary to consider any rotation of the connection. This will be done by the\r\n * framework.\r\n *\r\n * <pre>\r\n * | -Y\r\n * |\r\n * |\r\n * --------------+-----------------------------> +X\r\n * |\r\n * |\r\n * |\r\n * V +Y\r\n *\r\n *\r\n * </pre>\r\n *\r\n * See in ArrowConnectionDecorator for example implementation.\r\n * @param {Raphael} paper\r\n */\n\tpaint: function paint(paper) {\n\t\t// do nothing per default\n\t},\n\n\t/**\r\n * @method\r\n * Set the stroke color for the decoration\r\n *\r\n * @param {draw2d.util.Color|String} c\r\n */\n\tsetColor: function setColor(c) {\n\t\tthis.color = new _Color2.default(c);\n\n\t\treturn this;\n\t},\n\n\t/**\r\n * @method\r\n * Set the background color for the decoration\r\n *\r\n * @param {draw2d.util.Color|String} c\r\n */\n\tsetBackgroundColor: function setBackgroundColor(c) {\n\t\tthis.backgroundColor = new _Color2.default(c);\n\n\t\treturn this;\n\t},\n\n\t/**\r\n * @method\r\n * Change the dimension of the decoration shape\r\n *\r\n * @param {Number} width The new width of the decoration\r\n * @param {Number} height The new height of the decoration\r\n **/\n\tsetDimension: function setDimension(width, height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\n\t\treturn this;\n\t}\n\n});\n\n/***/ }),\n\n/***/ \"./src/decoration/connection/DiamondDecorator.js\":\n/*!*******************************************************!*\\\n !*** ./src/decoration/connection/DiamondDecorator.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.decoration.connection.DiamondDecorator = _packages2.default.decoration.connection.Decorator.extend({\n\n NAME: \"draw2d.decoration.connection.DiamondDecorator\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Number} [width] the width of the arrow\r\n * @param {Number} [height] the height of the arrow\r\n */\n init: function init(width, height) {\n this._super(width, height);\n },\n\n /**\r\n * Draw a filled diamond decoration.\r\n *\r\n * It's not your work to rotate the arrow. The draw2d do this job for you.\r\n *\r\n * @param {Raphael} paper the raphael paper object for the paint operation\r\n **/\n paint: function paint(paper) {\n var st = paper.set();\n\n st.push(paper.path([\"M\", this.width / 2, \" \", -this.height / 2, // Go to the top center..\n \"L\", this.width, \" \", 0, // ...draw line to the right middle\n \"L\", this.width / 2, \" \", this.height / 2, // ...bottom center...\n \"L\", 0, \" \", 0, // ...left middle...\n \"L\", this.width / 2, \" \", -this.height / 2, // and close the path\n \"Z\"].join(\"\")));\n\n st.attr({ fill: this.backgroundColor.rgba(), stroke: this.color.rgba() });\n return st;\n }\n\n}); /**\r\n * @class draw2d.decoration.connection.DiamondDecorator\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start();\r\n * var end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * var c = new draw2d.Connection();\r\n *\r\n * // toggle from ManhattenRouter to DirectRouter to show the rotation of decorations\r\n * c.setRouter(new draw2d.layout.connection.DirectRouter());\r\n *\r\n * // Set the endpoint decorations for the connection\r\n * //\r\n * c.setSourceDecorator(new draw2d.decoration.connection.DiamondDecorator());\r\n * c.setTargetDecorator(new draw2d.decoration.connection.DiamondDecorator());\r\n * // Connect the endpoints with the start and end port\r\n * //\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extend draw2d.decoration.connection.Decorator\r\n */\n\n/***/ }),\n\n/***/ \"./src/geo/Line.js\":\n/*!*************************!*\\\n !*** ./src/geo/Line.js ***!\n \\*************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.geo.Line = {\n\n /**\r\n * Returns the relative position of the point on the line between [0..1]\r\n * The point \"p\" must be part of the line!!\r\n *\r\n * 0 => given point is on the start location\r\n * ..=> given point is in between\r\n * 1 => given point is at the end\r\n *\r\n * @return {Number}\r\n */\n inverseLerp: function inverseLerp(X1, Y1, X2, Y2, px, py) {\n var nenner = Math.abs(X2 - X1);\n var zaehler = Math.abs(X2 - px);\n if (nenner === 0) {\n nenner = Math.abs(Y2 - Y1);\n zaehler = Math.abs(Y2 - py);\n if (nenner === 0) {\n return 1;\n }\n }\n\n return zaehler / nenner;\n },\n\n /**\r\n * @method\r\n * Returns the projection of the point onto the line.\r\n *\r\n * @param {Number} px the x coordinate of the test point\r\n * @param {Number} py the y coordinate of the test point\r\n * @return {draw2d.geo.Point}\r\n **/\n pointProjection: function pointProjection(X1, Y1, X2, Y2, px, py) {\n var r = new _packages2.default.geo.Point(0, 0);\n if (X1 === X2 && Y1 === Y2) X1 -= 0.00001;\n\n var U = (px - X1) * (X2 - X1) + (py - Y1) * (Y2 - Y1);\n\n var Udenom = Math.pow(X2 - X1, 2) + Math.pow(Y2 - Y1, 2);\n\n U /= Udenom;\n\n r.x = X1 + U * (X2 - X1);\n r.y = Y1 + U * (Y2 - Y1);\n\n var minx = void 0,\n maxx = void 0,\n miny = void 0,\n maxy = void 0;\n\n minx = Math.min(X1, X2);\n maxx = Math.max(X1, X2);\n\n miny = Math.min(Y1, Y2);\n maxy = Math.max(Y1, Y2);\n\n var isValid = r.x >= minx && r.x <= maxx && r.y >= miny && r.y <= maxy;\n\n return isValid ? r : null;\n },\n\n distance: function distance(X1, Y1, X2, Y2, px, py) {\n // Adjust vectors relative to X1,Y1\n // X2,Y2 becomes relative vector from X1,Y1 to end of segment\n X2 -= X1;\n Y2 -= Y1;\n // px,py becomes relative vector from X1,Y1 to test point\n px -= X1;\n py -= Y1;\n var dotprod = px * X2 + py * Y2;\n var projlenSq = void 0;\n if (dotprod <= 0.0) {\n // px,py is on the side of X1,Y1 away from X2,Y2\n // distance to segment is length of px,py vector\n // \"length of its (clipped) projection\" is now 0.0\n projlenSq = 0.0;\n } else {\n // switch to backwards vectors relative to X2,Y2\n // X2,Y2 are already the negative of X1,Y1=>X2,Y2\n // to get px,py to be the negative of px,py=>X2,Y2\n // the dot product of two negated vectors is the same\n // as the dot product of the two normal vectors\n px = X2 - px;\n py = Y2 - py;\n dotprod = px * X2 + py * Y2;\n if (dotprod <= 0.0) {\n // px,py is on the side of X2,Y2 away from X1,Y1\n // distance to segment is length of (backwards) px,py vector\n // \"length of its (clipped) projection\" is now 0.0\n projlenSq = 0.0;\n } else {\n // px,py is between X1,Y1 and X2,Y2\n // dotprod is the length of the px,py vector\n // projected on the X2,Y2=>X1,Y1 vector times the\n // length of the X2,Y2=>X1,Y1 vector\n projlenSq = dotprod * dotprod / (X2 * X2 + Y2 * Y2);\n }\n }\n // Distance to line is now the length of the relative point\n // vector minus the length of its projection onto the line\n // (which is zero if the projection falls outside the range\n // of the line segment).\n var lenSq = px * px + py * py - projlenSq;\n if (lenSq < 0) {\n lenSq = 0;\n }\n return Math.sqrt(lenSq);\n }\n}; /**\r\n * Static util function to determine the minimal distance of point(px,py) on the line(x1,y1,x2,y2)\r\n *\r\n *\r\n * @return {Number}\r\n * @static\r\n * @private\r\n * @param {Number} X1 x coordinate of the start point of the line\r\n * @param {Number} Y1 y coordinate of the start point of the line\r\n * @param {Number} X2 x coordinate of the end point of the line\r\n * @param {Number} Y2 y coordinate of the end point of the line\r\n * @param {Number} px x coordinate of the point to test\r\n * @param {Number} py y coordinate of the point to test\r\n **/\n\n/***/ }),\n\n/***/ \"./src/geo/Point.js\":\n/*!**************************!*\\\n !*** ./src/geo/Point.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.geo.Point = Class.extend({\n\n NAME: \"draw2d.geo.Point\",\n\n /**\r\n * @constructor\r\n * Creates a new Point object with the hands over coordinates.\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {Number} y\r\n */\n init: function init(x, y) {\n if (x instanceof _packages2.default.geo.Point) {\n this.x = x.x;\n this.y = x.y;\n } else if (!isNaN(parseFloat(x.x)) && !isNaN(parseFloat(x.y))) {\n this.x = x.x;\n this.y = x.y;\n } else {\n this.x = x;\n this.y = y;\n }\n\n // limit for the maxi/minimum boundary of this rectangle\n // It is not possible that the rect leave the boundary if set.\n this.bx = null;\n this.by = null;\n this.bw = null;\n this.bh = null;\n },\n\n /**\r\n * @method\r\n * Set the boundary of the rectangle. If set, the rectangle is always inside\r\n * the boundary. A setX or setY will always be adjusted.\r\n *\r\n */\n setBoundary: function setBoundary(bx, by, bw, bh) {\n if (bx instanceof _packages2.default.geo.Rectangle) {\n this.bx = bx.x;\n this.by = bx.y;\n this.bw = bx.w;\n this.bh = bx.h;\n } else {\n this.bx = bx;\n this.by = by;\n this.bw = bw;\n this.bh = bh;\n }\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * @private\r\n */\n adjustBoundary: function adjustBoundary() {\n if (this.bx === null) {\n return;\n }\n this.x = Math.min(Math.max(this.bx, this.x), this.bw);\n this.y = Math.min(Math.max(this.by, this.y), this.bh);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Moves this Rectangle horizontally by dx and vertically by dy, then returns\r\n * this Rectangle for convenience.<br>\r\n * <br>\r\n * The method return the object itself. This allows you to do command chaining, where\r\n * you can perform multiple methods on the same elements.\r\n *\r\n * @param {Number} dx Shift along X axis\r\n * @param {Number} dy Shift along Y axis\r\n *\r\n **/\n translate: function translate(dx, dy) {\n this.x += dx;\n this.y += dy;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * The X value of the point\r\n * @since 0.1\r\n * @return {Number}\r\n */\n getX: function getX() {\n return this.x;\n },\n\n /**\r\n * @method\r\n * The y value of the point\r\n *\r\n * @return {Number}\r\n */\n getY: function getY() {\n return this.y;\n },\n\n /**\r\n * @method\r\n * Set the new X value of the point\r\n *\r\n * @param {Number} x the new value\r\n */\n setX: function setX(x) {\n this.x = x;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the new Y value of the point\r\n *\r\n * @param {Number} y the new value\r\n */\n setY: function setY(y) {\n this.y = y;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the new x/y coordinates of this point\r\n *\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {Number} [y]\r\n */\n setPosition: function setPosition(x, y) {\n if (x instanceof _packages2.default.geo.Point) {\n this.x = x.x;\n this.y = x.y;\n } else {\n this.x = x;\n this.y = y;\n }\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Calculates the relative position of the specified Point to this Point.\r\n *\r\n * @param {draw2d.geo.Point} p The reference Point\r\n * @return {Number} NORTH, SOUTH, EAST, or WEST, as defined in {@link draw2d.geo.PositionConstants}\r\n */\n getPosition: function getPosition(p) {\n var dx = p.x - this.x;\n var dy = p.y - this.y;\n if (Math.abs(dx) > Math.abs(dy)) {\n if (dx < 0) return _packages2.default.geo.PositionConstants.WEST;\n return _packages2.default.geo.PositionConstants.EAST;\n }\n if (dy < 0) return _packages2.default.geo.PositionConstants.NORTH;\n return _packages2.default.geo.PositionConstants.SOUTH;\n },\n\n /**\r\n * @method\r\n * Compares two points and return [true] if x and y are equals.\r\n *\r\n * @param {draw2d.geo.Point} p the point to compare with\r\n *\r\n * @return {Boolean}\r\n */\n equals: function equals(p) {\n return this.x === p.x && this.y === p.y;\n },\n\n /**\r\n * @method\r\n * Return the distance between this point and the hands over.\r\n *\r\n * @param {draw2d.geo.Point} other the point to use\r\n * @return {Number}\r\n */\n distance: function distance(other) {\n return Math.sqrt((this.x - other.x) * (this.x - other.x) + (this.y - other.y) * (this.y - other.y));\n },\n /* @deprecated */\n getDistance: function getDistance(other) {\n return this.distance(other);\n },\n\n /**\r\n * @method\r\n * Return the th of the vector from [0,0]\r\n *\r\n * @return {Number}\r\n * @since 2.10.0\r\n */\n length: function length() {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n },\n\n /**\r\n * @method\r\n * Return a new Point translated with the x/y values of the hands over point.\r\n *\r\n * @param {draw2d.geo.Point|Number} x the x translation or the complete point to translate\r\n * @param {Number} [y] the y translation. Required if x is a simple number instead of a draw2d.geo.Point\r\n * @return {draw2d.geo.Point} The new translated point.\r\n */\n translated: function translated(x, y) {\n var other = new _packages2.default.geo.Point(x, y);\n return new _packages2.default.geo.Point(this.x + other.x, this.y + other.y);\n },\n\n /**\r\n * @method\r\n * Return a new Point scaled with the x/y values of the hands over point.\r\n *\r\n * @param {Number} factor the factor to scaled the new point.\r\n * @return {draw2d.geo.Point} The new translated point.\r\n */\n scale: function scale(factor) {\n this.x *= factor;\n this.y *= factor;\n this.adjustBoundary();\n return this;\n },\n\n /**\r\n * @method\r\n * Return a new Point scaled with the x/y values of the hands over point.\r\n *\r\n * @param {Number} factor the factor to scaled the new point.\r\n * @return {draw2d.geo.Point} The new translated point.\r\n */\n scaled: function scaled(factor) {\n return new _packages2.default.geo.Point(this.x * factor, this.y * factor);\n },\n\n /* @deprecated */\n getScaled: function getScaled(factor) {\n return this.scaled(factor);\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n return {\n x: this.x,\n y: this.y\n };\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n * @returns\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this.x = memento.x;\n this.y = memento.y;\n },\n\n /**\r\n * @method\r\n * substract the given point and return the new point.\r\n *\r\n * @param that\r\n * @returns {draw2d.geo.Point}\r\n */\n subtract: function subtract(that) {\n return new _packages2.default.geo.Point(this.x - that.x, this.y - that.y);\n },\n\n dot: function dot(that) {\n return this.x * that.x + this.y * that.y;\n },\n\n cross: function cross(that) {\n return this.x * that.y - this.y * that.x;\n },\n\n lerp: function lerp(that, t) {\n return new _packages2.default.geo.Point(this.x + (that.x - this.x) * t, this.y + (that.y - this.y) * t);\n },\n\n /**\r\n * @method\r\n * Clone the Point and return them\r\n *\r\n * @returns\r\n */\n clone: function clone() {\n return new _packages2.default.geo.Point(this.x, this.y);\n }\n\n}); /**\r\n * @class draw2d.geo.Point Util class for geometrie handling.\r\n */\n\n/***/ }),\n\n/***/ \"./src/geo/PositionConstants.js\":\n/*!**************************************!*\\\n !*** ./src/geo/PositionConstants.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.geo.PositionConstants = function () {};\n/**\r\n * @class draw2d.geo.PositionConstants\r\n * Static values for point orientation.\r\n * \r\n */\n\n\n_packages2.default.geo.PositionConstants.NORTH = 1;\n_packages2.default.geo.PositionConstants.SOUTH = 4;\n_packages2.default.geo.PositionConstants.WEST = 8;\n_packages2.default.geo.PositionConstants.EAST = 16;\n\n/***/ }),\n\n/***/ \"./src/geo/Ray.js\":\n/*!************************!*\\\n !*** ./src/geo/Ray.js ***!\n \\************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.geo.Ray = _packages2.default.geo.Point.extend({\n\n NAME: \"draw2d.geo.Ray\",\n\n /**\r\n * @constructor \r\n * Creates a ray object. \r\n * \r\n * @param {Number} x\r\n * @param {Number} y\r\n */\n init: function init(x, y) {\n this._super(x, y);\n },\n\n isHorizontal: function isHorizontal() {\n return this.x != 0;\n },\n\n similarity: function similarity(otherRay) {\n return Math.abs(this.dot(otherRay));\n },\n\n getAveraged: function getAveraged(otherRay) {\n return new _packages2.default.geo.Ray((this.x + otherRay.x) / 2, (this.y + otherRay.y) / 2);\n }\n\n});\n\n/**\r\n * @class draw2d.geo.Ray\r\n * A ray is a line starting in [0,0,] with some additional\r\n * helper functions required for some router.\r\n * \r\n * @inheritable\r\n * @extends draw2d.geo.Point\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/geo/Rectangle.js\":\n/*!******************************!*\\\n !*** ./src/geo/Rectangle.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.geo.Rectangle = _packages2.default.geo.Point.extend({\n\n NAME: \"draw2d.geo.Rectangle\",\n\n /**\r\n * @constructor \r\n * Creates a new Point object with the hands over coordinates.\r\n * <br>\r\n * The constructor consumes almost any kind of rectangel definitions\r\n * like:\r\n * var rect0 = new draw2d.geo.Rectangle({x:0,y:0,width:20,height:20});\r\n * var rect1 = new draw2d.geo.Rectangle({x:0,y:0,w:20,h:20});\r\n * var rect2 = new draw2d.geo.Rectangle($(\"#divid\")[0].getBoundingClientRect());\r\n * var rect3 = new draw2d.geo.Rectangle(rect1);\r\n *\r\n * The rectangle class is usefull for any kind of intersection, hitTest, contains,...calculation\r\n * or to set the bounding box of any shape.\r\n *\r\n * @param {Number|draw2d.geo.Rectangle} x\r\n * @param {Number} y\r\n * @param {Number} w\r\n * @param {Number} h\r\n */\n init: function init(x, y, w, h) {\n // try to consume any kind rectangle definitions\n //\n\n\n if (x instanceof _packages2.default.geo.Rectangle) {\n y = x.y;\n w = x.w;\n h = x.h;\n x = x.x;\n } else if (typeof x.x === \"number\" && typeof x.y === \"number\") {\n y = x.y;\n w = x.w | x.width;\n h = x.h | x.height;\n x = x.x;\n } else if (typeof x.top === \"number\" && typeof x.left === \"number\") {\n y = x.top;\n w = x.w | x.width;\n h = x.h | x.height;\n x = x.left;\n }\n this._super(x, y);\n this.w = w;\n this.h = h;\n },\n\n /**\r\n * @method\r\n * @private\r\n */\n adjustBoundary: function adjustBoundary() {\n if (this.bx === null) {\n return;\n }\n this.x = Math.min(Math.max(this.bx, this.x), this.bw - this.w);\n this.y = Math.min(Math.max(this.by, this.y), this.bh - this.h);\n this.w = Math.min(this.w, this.bw);\n this.h = Math.min(this.h, this.bh);\n },\n\n /**\r\n * @method\r\n * Resizes this Rectangle by the values supplied as input and returns this for \r\n * convenience. This Rectangle's width will become this.width + dw. This \r\n * Rectangle's height will become this.height + dh.\r\n * <br>\r\n * The method return the object itself. This allows you to do command chaining, where \r\n * you can perform multiple methods on the same elements.\r\n *\r\n *\r\n * @param {Number} dw Amount by which width is to be resized\r\n * @param {Number} dh Amount by which height is to be resized\r\n * \r\n * @return {draw2d.geo.Rectangle} The method return the object itself\r\n **/\n resize: function resize(dw, dh) {\n this.w += dw;\n this.h += dh;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Adds the specified padding to the rectangle's bounds. This Rectangle's width\r\n * will become this.width + dw. The Rectangle's height will become this.height + dh.\r\n * The top left corner moves -dw/2, -dh/2\r\n * <br>\r\n * The method return the object itself. This allows you to do command chaining, where \r\n * you can perform multiple methods on the same elements.\r\n *\r\n *\r\n * @param {Number} dw Amount by which width is to be resized\r\n * @param {Number} dh Amount by which height is to be resized\r\n * \r\n **/\n scale: function scale(dw, dh) {\n this.w += dw;\n this.h += dh;\n this.x -= dw / 2;\n this.y -= dh / 2;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Translate the rectangle with the given x/y coordiante.\r\n *\r\n * @param {draw2d.geo.Point|Number} x the x translation or the complete point to translate\r\n * @param {Number} [y] the y translation. Required if x is a simple number instead of a draw2d.geo.Point\r\n *\r\n *\r\n * @since 5.6.0\r\n */\n translate: function translate(x, y) {\n var other = new _packages2.default.geo.Point(x, y);\n this.x += other.x;\n this.y += other.y;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns a copy of the translated rectangle\r\n *\r\n * @param {draw2d.geo.Point|Number} x the x translation or the complete point to translate\r\n * @param {Number} [y] the y translation. Required if x is a simple number instead of a draw2d.geo.Point\r\n *\r\n * @return {draw2d.geo.Rectangle} The new translated rectangle.\r\n *\r\n * @since 5.6.0\r\n */\n translated: function translated(x, y) {\n var other = new _packages2.default.geo.Point(x, y);\n return new _packages2.default.geo.Rectangle(this.x + other.x, this.y + other.y, this.w, this.h);\n },\n\n /**\r\n * Sets the parameters of this Rectangle from the Rectangle passed in and\r\n * returns this for convenience.<br>\r\n * <br>\r\n * The method return the object itself. This allows you to do command chaining, where \r\n * you can perform multiple methods on the same elements.\r\n *\r\n * @param {draw2d.geo.Rectangle} Rectangle providing the bounding values\r\n * \r\n * @return {draw2d.geo.Rectangle} The method return the object itself\r\n */\n setBounds: function setBounds(rect) {\n this.setPosition(rect.x, rect.y);\n\n this.w = rect.w;\n this.h = rect.h;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns <code>true</code> if this Rectangle's width or height is less than or\r\n * equal to 0.\r\n * \r\n * @return {Boolean}\r\n */\n isEmpty: function isEmpty() {\n return this.w <= 0 || this.h <= 0;\n },\n\n /**\r\n * @method\r\n * The width of the dimension element.\r\n * \r\n * @return {Number}\r\n **/\n getWidth: function getWidth() {\n return this.w;\n },\n\n /**\r\n * @method\r\n * Set the new width of the rectangle.\r\n * \r\n * @param {Number} w the new width of the rectangle\r\n */\n setWidth: function setWidth(w) {\n this.w = w;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * The height of the dimension element.\r\n * \r\n * @return {Number}\r\n **/\n getHeight: function getHeight() {\n return this.h;\n },\n\n /**\r\n * @method\r\n * Set the new height of the rectangle.\r\n * \r\n * @param {Number} h the new height of the rectangle\r\n */\n setHeight: function setHeight(h) {\n this.h = h;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * The x coordinate of the left corner.\r\n * \r\n * @return {Number}\r\n **/\n getLeft: function getLeft() {\n return this.x;\n },\n\n /**\r\n * @method\r\n * The x coordinate of the right corner.\r\n * \r\n * @return {Number}\r\n **/\n getRight: function getRight() {\n return this.x + this.w;\n },\n\n /**\r\n * @method\r\n * The y coordinate of the top.\r\n * \r\n *@return {Number}\r\n **/\n getTop: function getTop() {\n return this.y;\n },\n\n /**\r\n * @method\r\n * The y coordinate of the bottom.\r\n * \r\n *@return {Number}\r\n **/\n getBottom: function getBottom() {\n return this.y + this.h;\n },\n\n /**\r\n * @method\r\n * The top left corner of the dimension object.\r\n * \r\n * @return {draw2d.geo.Point} a new point objects which holds the coordinates\r\n **/\n getTopLeft: function getTopLeft() {\n return new _packages2.default.geo.Point(this.x, this.y);\n },\n\n /**\r\n * @method\r\n * The top center coordinate of the dimension object.\r\n * \r\n * @return {draw2d.geo.Point} a new point objects which holds the coordinates\r\n **/\n getTopCenter: function getTopCenter() {\n return new _packages2.default.geo.Point(this.x + this.w / 2, this.y);\n },\n\n /**\r\n * @method\r\n * The top right corner of the dimension object.\r\n * \r\n * @return {draw2d.geo.Point} a new point objects which holds the coordinates\r\n **/\n getTopRight: function getTopRight() {\n return new _packages2.default.geo.Point(this.x + this.w, this.y);\n },\n\n /**\r\n * @method\r\n * The center left of the dimension object.\r\n *\r\n * @return {draw2d.geo.Point} a new point objects which holds the coordinates\r\n **/\n getCenterLeft: function getCenterLeft() {\n return new _packages2.default.geo.Point(this.x, this.y + this.h / 2);\n },\n\n /**\r\n * @method\r\n * The bottom left corner of the dimension object.\r\n * \r\n * @return {draw2d.geo.Point} a new point objects which holds the coordinates\r\n **/\n getBottomLeft: function getBottomLeft() {\n return new _packages2.default.geo.Point(this.x, this.y + this.h);\n },\n\n /**\r\n * @method\r\n * The bottom center coordinate of the dimension object.\r\n * \r\n * @return {draw2d.geo.Point} a new point objects which holds the coordinates\r\n **/\n getBottomCenter: function getBottomCenter() {\n return new _packages2.default.geo.Point(this.x + this.w / 2, this.y + this.h);\n },\n\n /**\r\n * @method\r\n * The center of the dimension object\r\n * \r\n * @return {draw2d.geo.Point} a new point which holds the center of the object\r\n **/\n getCenter: function getCenter() {\n return new _packages2.default.geo.Point(this.x + this.w / 2, this.y + this.h / 2);\n },\n\n /**\r\n * @method\r\n * Bottom right corner of the object\r\n * \r\n * @return {draw2d.geo.Point} a new point which holds the bottom right corner\r\n **/\n getBottomRight: function getBottomRight() {\n return new _packages2.default.geo.Point(this.x + this.w, this.y + this.h);\n },\n\n /**\r\n * @method\r\n * Return all points of the rectangle as array. Starting at topLeft and the\r\n * clockwise.\r\n * \r\n * @return {draw2d.util.ArrayList} the points starting at top/left and the clockwise\r\n */\n getVertices: function getVertices() {\n var result = new _packages2.default.util.ArrayList();\n // don't change the order. We expect always that the top left corner has index[0]\n // and goes clock wise\n //\n result.add(this.getTopLeft());\n result.add(this.getTopRight());\n result.add(this.getBottomRight());\n result.add(this.getBottomLeft());\n\n return result;\n },\n\n /**\r\n * @method\r\n * Return a new rectangle which fits into this rectangle. <b>ONLY</b> the x/y coordinates\r\n * will be changed. Not the dimension of the given rectangle.\r\n * \r\n * @param {draw2d.geo.Rectangle} rect the rectangle to adjust\r\n * @return the new shifted rectangle\r\n */\n moveInside: function moveInside(rect) {\n var newRect = new _packages2.default.geo.Rectangle(rect.x, rect.y, rect.w, rect.h);\n // shift the coordinate right/down if coordinate not inside the rect\n //\n newRect.x = Math.max(newRect.x, this.x);\n newRect.y = Math.max(newRect.y, this.y);\n\n // ensure that the right border is inside this rect (if possible). \n //\n if (newRect.w < this.w) {\n newRect.x = Math.min(newRect.x + newRect.w, this.x + this.w) - newRect.w;\n } else {\n newRect.x = this.x;\n }\n\n // ensure that the bottom is inside this rectangle\n //\n if (newRect.h < this.h) {\n newRect.y = Math.min(newRect.y + newRect.h, this.y + this.h) - newRect.h;\n } else {\n newRect.y = this.y;\n }\n\n return newRect;\n },\n\n /**\r\n * @method\r\n * Return the minimum distance of this rectangle to the given {@link draw2d.geo.Point} or \r\n * {link draw2d.geo.Rectangle}.\r\n * \r\n * @param {draw2d.geo.Point|draw2d.geo.Rectangle} pointOrRectangle the reference point/rectangle for the distance calculation\r\n */\n getDistance: function getDistance(pointOrRectangle) {\n var cx = this.x;\n var cy = this.y;\n var cw = this.w;\n var ch = this.h;\n\n var ox = pointOrRectangle.getX();\n var oy = pointOrRectangle.getY();\n var ow = 1;\n var oh = 1;\n\n if (pointOrRectangle instanceof _packages2.default.geo.Rectangle) {\n ow = pointOrRectangle.getWidth();\n oh = pointOrRectangle.getHeight();\n }\n var oct = 9;\n\n // Determin Octant\n //\n // 0 | 1 | 2\n // __|___|__\n // 7 | 9 | 3\n // __|___|__\n // 6 | 5 | 4\n\n if (cx + cw <= ox) {\n if (cy + ch <= oy) {\n oct = 0;\n } else if (cy >= oy + oh) {\n oct = 6;\n } else {\n oct = 7;\n }\n } else if (cx >= ox + ow) {\n if (cy + ch <= oy) {\n oct = 2;\n } else if (cy >= oy + oh) {\n oct = 4;\n } else {\n oct = 3;\n }\n } else if (cy + ch <= oy) {\n oct = 1;\n } else if (cy >= oy + oh) {\n oct = 5;\n } else {\n return 0;\n }\n\n // Determine Distance based on Quad\n //\n switch (oct) {\n case 0:\n cx = cx + cw - ox;\n cy = cy + ch - oy;\n return -(cx + cy);\n case 1:\n return -(cy + ch - oy);\n case 2:\n cx = ox + ow - cx;\n cy = cy + ch - oy;\n return -(cx + cy);\n case 3:\n return -(ox + ow - cx);\n case 4:\n cx = ox + ow - cx;\n cy = oy + oh - cy;\n return -(cx + cy);\n case 5:\n return -(oy + oh - cy);\n case 6:\n cx = cx + cw - ox;\n cy = oy + oh - cy;\n return -(cx + cy);\n case 7:\n return -(cx + cw - ox);\n }\n\n throw \"Unknown data type of parameter for distance calculation in draw2d.geo.Rectangle.getDistance(..)\";\n },\n\n /**\r\n * @method\r\n * Determin the octant of r2 in relation to this rectangle.\r\n * <pre>\r\n *\r\n * 0 | 1 | 2\r\n * __|___|__\r\n * 7 | 8 | 3\r\n * __|___|__\r\n * 6 | 5 | 4\r\n * </pre>\r\n *\r\n * @param {draw2d.geo.Rectangle} r2\r\n * \r\n */\n determineOctant: function determineOctant(r2) {\n var HISTERESE = 3; // Toleranz um diese vermieden wird, dass der Octant \"8\" zurückgegeben wird\n\n var ox = this.x + HISTERESE;\n var oy = this.y + HISTERESE;\n var ow = this.w - HISTERESE * 2;\n var oh = this.h - HISTERESE * 2;\n\n var cx = r2.x;\n var cy = r2.y;\n var cw = 2;\n var ch = 2;\n if (r2 instanceof _packages2.default.geo.Rectangle) {\n cw = r2.w;\n ch = r2.h;\n }\n\n var oct = 0;\n\n if (cx + cw <= ox) {\n if (cy + ch <= oy) {\n oct = 0;\n } else if (cy >= oy + oh) {\n oct = 6;\n } else {\n oct = 7;\n }\n } else if (cx >= ox + ow) {\n if (cy + ch <= oy) {\n oct = 2;\n } else if (cy >= oy + oh) {\n oct = 4;\n } else {\n oct = 3;\n }\n } else if (cy + ch <= oy) {\n oct = 1;\n } else if (cy >= oy + oh) {\n oct = 5;\n } else {\n oct = 8;\n }\n\n return oct;\n },\n\n /**\r\n * @method\r\n * Returns the direction the point <i>p</i> is in relation to the given rectangle.\r\n * Util method for inherit router implementations.\r\n * \r\n * <p>\r\n * Possible values:\r\n * <ul>\r\n * <li>up -> 0</li>\r\n * <li>right -> 1</li>\r\n * <li>down -> 2</li>\r\n * <li>left -> 3</li>\r\n * </ul>\r\n * <p>\r\n * \r\n * @param {draw2d.geo.Point} other the point in relation to the given rectangle\r\n * \r\n * @return {Number} the direction from <i>r</i> to <i>p</i>\r\n */\n getDirection: function getDirection(other) {\n var current = this.getTopLeft();\n switch (this.determineOctant(other)) {\n case 0:\n if (current.x - other.x < current.y - other.y) return _packages2.default.geo.Rectangle.DIRECTION_UP;\n return _packages2.default.geo.Rectangle.DIRECTION_LEFT;\n case 1:\n return _packages2.default.geo.Rectangle.DIRECTION_UP;\n case 2:\n current = this.getTopRight();\n if (other.x - current.x < current.y - other.y) return _packages2.default.geo.Rectangle.DIRECTION_UP;\n return _packages2.default.geo.Rectangle.DIRECTION_RIGHT;\n case 3:\n return _packages2.default.geo.Rectangle.DIRECTION_RIGHT;\n case 4:\n current = this.getBottomRight();\n if (other.x - current.x < other.y - current.y) return _packages2.default.geo.Rectangle.DIRECTION_DOWN;\n return _packages2.default.geo.Rectangle.DIRECTION_RIGHT;\n case 5:\n return _packages2.default.geo.Rectangle.DIRECTION_DOWN;\n case 6:\n current = this.getBottomLeft();\n if (current.x - other.x < other.y - current.y) return _packages2.default.geo.Rectangle.DIRECTION_DOWN;\n return _packages2.default.geo.Rectangle.DIRECTION_LEFT;\n case 7:\n return _packages2.default.geo.Rectangle.DIRECTION_LEFT;\n case 8:\n if (other.y > this.y) {\n return _packages2.default.geo.Rectangle.DIRECTION_DOWN;\n }\n return _packages2.default.geo.Rectangle.DIRECTION_UP;\n\n }\n return _packages2.default.geo.Rectangle.DIRECTION_UP;\n },\n\n /**\r\n * @method\r\n * Compares two rectangle objects\r\n * \r\n * @param {draw2d.geo.Rectangle} o\r\n *\r\n * @return {Boolean}\r\n **/\n equals: function equals(o) {\n return this.x == o.x && this.y == o.y && this.w == o.w && this.h == o.h;\n },\n\n /**\r\n * @method\r\n * Detect whenever the hands over coordinate is inside the rectangle.\r\n *\r\n * @param {Number/draw2d.geo.Point} iX\r\n * @param {Number} iY\r\n * @returns {Boolean}\r\n */\n hitTest: function hitTest(iX, iY) {\n if (iX instanceof _packages2.default.geo.Point) {\n iY = iX.y;\n iX = iX.x;\n }\n var iX2 = this.x + this.getWidth();\n var iY2 = this.y + this.getHeight();\n return iX >= this.x && iX <= iX2 && iY >= this.y && iY <= iY2;\n },\n\n /**\r\n * @method\r\n * return true if this rectangle inside the hand over rectangle\r\n * \r\n *\r\n * @param {draw2d.geo.Rectangle} rect\r\n * @returns {Boolean}\r\n */\n isInside: function isInside(rect) {\n return rect.hitTest(this.getTopLeft()) && rect.hitTest(this.getTopRight()) && rect.hitTest(this.getBottomLeft()) && rect.hitTest(this.getBottomRight());\n },\n\n /**\r\n * @method\r\n * return true if this rectangle contains the hand over rectangle.\r\n * \r\n *\r\n * @param {draw2d.geo.Rectangle} rect\r\n * @returns {Boolean}\r\n * @since 4.7.2\r\n */\n contains: function contains(rect) {\n return this.hitTest(rect.getTopLeft()) && this.hitTest(rect.getTopRight()) && this.hitTest(rect.getBottomLeft()) && this.hitTest(rect.getBottomRight());\n },\n\n /**\r\n * @method\r\n * checks whenever the rectangles has an intersection.\r\n * \r\n * @param {draw2d.geo.Rectangle} rect\r\n * @returns {Boolean}\r\n */\n intersects: function intersects(rect) {\n var x11 = rect.x,\n y11 = rect.y,\n x12 = rect.x + rect.w,\n y12 = rect.y + rect.h,\n x21 = this.x,\n y21 = this.y,\n x22 = this.x + this.w,\n y22 = this.y + this.h;\n\n var x_overlap = Math.max(0, Math.min(x12, x22) - Math.max(x11, x21));\n var y_overlap = Math.max(0, Math.min(y12, y22) - Math.max(y11, y21));\n\n return x_overlap * y_overlap !== 0;\n },\n\n /**\r\n * @method\r\n * Merge this rectangle with the given one.\r\n * \r\n * @param {draw2d.geo.Rectangle} rect\r\n * @since 4.8.0\r\n */\n merge: function merge(rect) {\n var r = Math.max(rect.getRight(), this.getRight());\n var b = Math.max(rect.getBottom(), this.getBottom());\n\n this.setPosition(Math.min(this.x, rect.x), Math.min(this.y, rect.y));\n\n this.w = r - this.x;\n this.h = b - this.y;\n\n return this;\n },\n\n /**\r\n * @method\r\n * returns the intersection points with the given line if any exists\r\n * \r\n * @param {draw2d.geo.Point} start\r\n * @param {draw2d.geo.Point} end\r\n */\n intersectionWithLine: function intersectionWithLine(start, end) {\n var result = new _packages2.default.util.ArrayList();\n var v = this.getVertices();\n v.add(v.first());\n var p1 = v.first();\n var p2 = null;\n for (var i = 1; i < 5; i++) {\n p2 = v.get(i);\n p1 = _packages2.default.shape.basic.Line.intersection(start, end, p1, p2);\n if (p1 !== null) {\n result.add(p1);\n }\n p1 = p2;\n }\n return result;\n },\n\n /**\r\n * @method\r\n * Returns a copy of this rectangle\r\n *\r\n *\r\n * @returns {draw2d.geo.Rectangle}\r\n * @since 5.6.0\r\n */\n clone: function clone() {\n return new _packages2.default.geo.Rectangle(this.x, this.y, this.w, this.h);\n },\n\n /**\r\n * @method\r\n * converts the rectangle to JSON representation. required for the draw2d.io.Writer\r\n * \r\n * @returns {Object}\r\n */\n toJSON: function toJSON() {\n return {\n width: this.w,\n height: this.h,\n x: this.x,\n y: this.y\n };\n }\n\n});\n\n/**\r\n * ENUM for Direction\r\n */\n/**\r\n * @class draw2d.geo.Rectangle\r\n * \r\n * Util class for geometrie handling.\r\n * \r\n * @inheritable\r\n * @author Andreas Herz\r\n * \r\n * @extends draw2d.geo.Point\r\n */\n_packages2.default.geo.Rectangle.DIRECTION_UP = 0;\n_packages2.default.geo.Rectangle.DIRECTION_RIGHT = 1;\n_packages2.default.geo.Rectangle.DIRECTION_DOWN = 2;\n_packages2.default.geo.Rectangle.DIRECTION_LEFT = 3;\n\n/***/ }),\n\n/***/ \"./src/geo/Util.js\":\n/*!*************************!*\\\n !*** ./src/geo/Util.js ***!\n \\*************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.geo.Util = {\n\n insetPoint: function insetPoint(start, end, distanceFromStart) {\n if (start.equals(end)) {\n return start;\n }\n var vx = start.x - end.x;\n var vy = start.y - end.y;\n var length = Math.sqrt(vx * vx + vy * vy);\n var localDistance = Math.min(length / 2, distanceFromStart);\n return { x: end.x + vx / length * (length - localDistance),\n y: end.y + vy / length * (length - localDistance) };\n }\n\n};\n\n/**\r\n * @class draw2d.geo.Ray\r\n * A ray is a line starting in [0,0,] with some additional\r\n * helper functions required for some router.\r\n * \r\n * @inheritable\r\n * @extends draw2d.geo.Point\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/index.js\":\n/*!**********************!*\\\n !*** ./src/index.js ***!\n \\**********************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _raphaelExec = __webpack_require__(/*! lib/raphael.exec.js */ \"./src/lib/raphael.exec.js\");\n\nvar _raphaelExec2 = _interopRequireDefault(_raphaelExec);\n\nvar _ClassExec = __webpack_require__(/*! lib/Class.exec.js */ \"./src/lib/Class.exec.js\");\n\nvar _ClassExec2 = _interopRequireDefault(_ClassExec);\n\nvar _pathfindingExec = __webpack_require__(/*! lib/pathfinding.exec.js */ \"./src/lib/pathfinding.exec.js\");\n\nvar _pathfindingExec2 = _interopRequireDefault(_pathfindingExec);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = _packages2.default;\n\n__webpack_require__(/*! ./util/raphael_ext */ \"./src/util/raphael_ext.js\");\n__webpack_require__(/*! ./util/Polyfill */ \"./src/util/Polyfill.js\");\n__webpack_require__(/*! ./util/Base64 */ \"./src/util/Base64.js\");\n__webpack_require__(/*! ./util/Debug */ \"./src/util/Debug.js\");\n// require('./util/Color');\n\n__webpack_require__(/*! ./util/ArrayList */ \"./src/util/ArrayList.js\");\n__webpack_require__(/*! ./util/SVGUtil */ \"./src/util/SVGUtil.js\");\n//require('./util/JSONUtil');\n//require('./util/UUID');\n__webpack_require__(/*! ./util/spline/Spline */ \"./src/util/spline/Spline.js\");\n__webpack_require__(/*! ./util/spline/CubicSpline */ \"./src/util/spline/CubicSpline.js\");\n__webpack_require__(/*! ./util/spline/CatmullRomSpline */ \"./src/util/spline/CatmullRomSpline.js\");\n__webpack_require__(/*! ./util/spline/BezierSpline */ \"./src/util/spline/BezierSpline.js\");\n__webpack_require__(/*! ./geo/PositionConstants */ \"./src/geo/PositionConstants.js\");\n__webpack_require__(/*! ./geo/Point */ \"./src/geo/Point.js\");\n__webpack_require__(/*! ./geo/Rectangle */ \"./src/geo/Rectangle.js\");\n__webpack_require__(/*! ./geo/Util */ \"./src/geo/Util.js\");\n__webpack_require__(/*! ./geo/Ray */ \"./src/geo/Ray.js\");\n__webpack_require__(/*! ./geo/Line */ \"./src/geo/Line.js\");\n__webpack_require__(/*! ./command/CommandType */ \"./src/command/CommandType.js\");\n__webpack_require__(/*! ./command/Command */ \"./src/command/Command.js\");\n__webpack_require__(/*! ./command/CommandCollection */ \"./src/command/CommandCollection.js\");\n__webpack_require__(/*! ./command/CommandStack */ \"./src/command/CommandStack.js\");\n__webpack_require__(/*! ./command/CommandStackEvent */ \"./src/command/CommandStackEvent.js\");\n__webpack_require__(/*! ./command/CommandStackEventListener */ \"./src/command/CommandStackEventListener.js\");\n__webpack_require__(/*! ./command/CommandMove */ \"./src/command/CommandMove.js\");\n__webpack_require__(/*! ./command/CommandAttr */ \"./src/command/CommandAttr.js\");\n__webpack_require__(/*! ./command/CommandMoveLine */ \"./src/command/CommandMoveLine.js\");\n__webpack_require__(/*! ./command/CommandMoveConnection */ \"./src/command/CommandMoveConnection.js\");\n__webpack_require__(/*! ./command/CommandMoveVertex */ \"./src/command/CommandMoveVertex.js\");\n__webpack_require__(/*! ./command/CommandMoveVertices */ \"./src/command/CommandMoveVertices.js\");\n__webpack_require__(/*! ./command/CommandResize */ \"./src/command/CommandResize.js\");\n__webpack_require__(/*! ./command/CommandRotate */ \"./src/command/CommandRotate.js\");\n__webpack_require__(/*! ./command/CommandConnect */ \"./src/command/CommandConnect.js\");\n__webpack_require__(/*! ./command/CommandReconnect */ \"./src/command/CommandReconnect.js\");\n__webpack_require__(/*! ./command/CommandDelete */ \"./src/command/CommandDelete.js\");\n__webpack_require__(/*! ./command/CommandDeleteGroup */ \"./src/command/CommandDeleteGroup.js\");\n__webpack_require__(/*! ./command/CommandAdd */ \"./src/command/CommandAdd.js\");\n__webpack_require__(/*! ./command/CommandGroup */ \"./src/command/CommandGroup.js\");\n__webpack_require__(/*! ./command/CommandUngroup */ \"./src/command/CommandUngroup.js\");\n__webpack_require__(/*! ./command/CommandAddVertex */ \"./src/command/CommandAddVertex.js\");\n__webpack_require__(/*! ./command/CommandAssignFigure */ \"./src/command/CommandAssignFigure.js\");\n__webpack_require__(/*! ./command/CommandBoundingBox */ \"./src/command/CommandBoundingBox.js\");\n__webpack_require__(/*! ./command/CommandRemoveVertex */ \"./src/command/CommandRemoveVertex.js\");\n__webpack_require__(/*! ./command/CommandReplaceVertices */ \"./src/command/CommandReplaceVertices.js\");\n__webpack_require__(/*! ./layout/connection/ConnectionRouter */ \"./src/layout/connection/ConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/DirectRouter */ \"./src/layout/connection/DirectRouter.js\");\n__webpack_require__(/*! ./layout/connection/RubberbandRouter */ \"./src/layout/connection/RubberbandRouter.js\");\n__webpack_require__(/*! ./layout/connection/VertexRouter */ \"./src/layout/connection/VertexRouter.js\");\n__webpack_require__(/*! ./layout/connection/ManhattanConnectionRouter */ \"./src/layout/connection/ManhattanConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/ManhattanBridgedConnectionRouter */ \"./src/layout/connection/ManhattanBridgedConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/InteractiveManhattanConnectionRouter */ \"./src/layout/connection/InteractiveManhattanConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/CircuitConnectionRouter */ \"./src/layout/connection/CircuitConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/SplineConnectionRouter */ \"./src/layout/connection/SplineConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/FanConnectionRouter */ \"./src/layout/connection/FanConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/MazeConnectionRouter */ \"./src/layout/connection/MazeConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/MuteableManhattanConnectionRouter */ \"./src/layout/connection/MuteableManhattanConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/SketchConnectionRouter */ \"./src/layout/connection/SketchConnectionRouter.js\");\n__webpack_require__(/*! ./layout/mesh/MeshLayouter */ \"./src/layout/mesh/MeshLayouter.js\");\n__webpack_require__(/*! ./layout/mesh/ExplodeLayouter */ \"./src/layout/mesh/ExplodeLayouter.js\");\n__webpack_require__(/*! ./layout/mesh/ProposedMeshChange */ \"./src/layout/mesh/ProposedMeshChange.js\");\n__webpack_require__(/*! ./layout/locator/Locator */ \"./src/layout/locator/Locator.js\");\n__webpack_require__(/*! ./layout/locator/PortLocator */ \"./src/layout/locator/PortLocator.js\");\n__webpack_require__(/*! ./layout/locator/DraggableLocator */ \"./src/layout/locator/DraggableLocator.js\");\n__webpack_require__(/*! ./layout/locator/SmartDraggableLocator */ \"./src/layout/locator/SmartDraggableLocator.js\");\n__webpack_require__(/*! ./layout/locator/XYAbsPortLocator */ \"./src/layout/locator/XYAbsPortLocator.js\");\n__webpack_require__(/*! ./layout/locator/XYRelPortLocator */ \"./src/layout/locator/XYRelPortLocator.js\");\n__webpack_require__(/*! ./layout/locator/InputPortLocator */ \"./src/layout/locator/InputPortLocator.js\");\n__webpack_require__(/*! ./layout/locator/OutputPortLocator */ \"./src/layout/locator/OutputPortLocator.js\");\n__webpack_require__(/*! ./layout/locator/ConnectionLocator */ \"./src/layout/locator/ConnectionLocator.js\");\n__webpack_require__(/*! ./layout/locator/ManhattanMidpointLocator */ \"./src/layout/locator/ManhattanMidpointLocator.js\");\n__webpack_require__(/*! ./layout/locator/PolylineMidpointLocator */ \"./src/layout/locator/PolylineMidpointLocator.js\");\n__webpack_require__(/*! ./layout/locator/ParallelMidpointLocator */ \"./src/layout/locator/ParallelMidpointLocator.js\");\n__webpack_require__(/*! ./layout/locator/TopLocator */ \"./src/layout/locator/TopLocator.js\");\n__webpack_require__(/*! ./layout/locator/BottomLocator */ \"./src/layout/locator/BottomLocator.js\");\n__webpack_require__(/*! ./layout/locator/LeftLocator */ \"./src/layout/locator/LeftLocator.js\");\n__webpack_require__(/*! ./layout/locator/RightLocator */ \"./src/layout/locator/RightLocator.js\");\n__webpack_require__(/*! ./layout/locator/CenterLocator */ \"./src/layout/locator/CenterLocator.js\");\n__webpack_require__(/*! ./policy/EditPolicy */ \"./src/policy/EditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/CanvasPolicy */ \"./src/policy/canvas/CanvasPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ZoomPolicy */ \"./src/policy/canvas/ZoomPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/WheelZoomPolicy */ \"./src/policy/canvas/WheelZoomPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/KeyboardPolicy */ \"./src/policy/canvas/KeyboardPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/DefaultKeyboardPolicy */ \"./src/policy/canvas/DefaultKeyboardPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ExtendedKeyboardPolicy */ \"./src/policy/canvas/ExtendedKeyboardPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SelectionPolicy */ \"./src/policy/canvas/SelectionPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SingleSelectionPolicy */ \"./src/policy/canvas/SingleSelectionPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/GhostMoveSelectionPolicy */ \"./src/policy/canvas/GhostMoveSelectionPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/PanningSelectionPolicy */ \"./src/policy/canvas/PanningSelectionPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/BoundingboxSelectionPolicy */ \"./src/policy/canvas/BoundingboxSelectionPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ReadOnlySelectionPolicy */ \"./src/policy/canvas/ReadOnlySelectionPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/DecorationPolicy */ \"./src/policy/canvas/DecorationPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/FadeoutDecorationPolicy */ \"./src/policy/canvas/FadeoutDecorationPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/CoronaDecorationPolicy */ \"./src/policy/canvas/CoronaDecorationPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToEditPolicy */ \"./src/policy/canvas/SnapToEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ShowDimetricGridEditPolicy */ \"./src/policy/canvas/ShowDimetricGridEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToDimetricGridEditPolicy */ \"./src/policy/canvas/SnapToDimetricGridEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ShowGridEditPolicy */ \"./src/policy/canvas/ShowGridEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToGridEditPolicy */ \"./src/policy/canvas/SnapToGridEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ShowDotEditPolicy */ \"./src/policy/canvas/ShowDotEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ShowChessboardEditPolicy */ \"./src/policy/canvas/ShowChessboardEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToGeometryEditPolicy */ \"./src/policy/canvas/SnapToGeometryEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToVerticesEditPolicy */ \"./src/policy/canvas/SnapToVerticesEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToInBetweenEditPolicy */ \"./src/policy/canvas/SnapToInBetweenEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToCenterEditPolicy */ \"./src/policy/canvas/SnapToCenterEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/DropInterceptorPolicy */ \"./src/policy/canvas/DropInterceptorPolicy.js\");\n__webpack_require__(/*! ./policy/connection/ConnectionCreatePolicy */ \"./src/policy/connection/ConnectionCreatePolicy.js\");\n__webpack_require__(/*! ./policy/connection/ComposedConnectionCreatePolicy */ \"./src/policy/connection/ComposedConnectionCreatePolicy.js\");\n__webpack_require__(/*! ./policy/connection/ClickConnectionCreatePolicy */ \"./src/policy/connection/ClickConnectionCreatePolicy.js\");\n__webpack_require__(/*! ./policy/connection/OrthogonalConnectionCreatePolicy */ \"./src/policy/connection/OrthogonalConnectionCreatePolicy.js\");\n__webpack_require__(/*! ./policy/connection/DragConnectionCreatePolicy */ \"./src/policy/connection/DragConnectionCreatePolicy.js\");\n__webpack_require__(/*! ./policy/figure/FigureEditPolicy */ \"./src/policy/figure/FigureEditPolicy.js\");\n__webpack_require__(/*! ./policy/figure/DragDropEditPolicy */ \"./src/policy/figure/DragDropEditPolicy.js\");\n__webpack_require__(/*! ./policy/figure/RegionEditPolicy */ \"./src/policy/figure/RegionEditPolicy.js\");\n__webpack_require__(/*! ./policy/figure/HorizontalEditPolicy */ \"./src/policy/figure/HorizontalEditPolicy.js\");\n__webpack_require__(/*! ./policy/figure/VerticalEditPolicy */ \"./src/policy/figure/VerticalEditPolicy.js\");\n__webpack_require__(/*! ./policy/figure/SelectionPolicy */ \"./src/policy/figure/SelectionPolicy.js\");\n__webpack_require__(/*! ./policy/figure/SelectionFeedbackPolicy */ \"./src/policy/figure/SelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/ResizeSelectionFeedbackPolicy */ \"./src/policy/figure/ResizeSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/RectangleSelectionFeedbackPolicy */ \"./src/policy/figure/RectangleSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/BigRectangleSelectionFeedbackPolicy */ \"./src/policy/figure/BigRectangleSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/RoundRectangleSelectionFeedbackPolicy */ \"./src/policy/figure/RoundRectangleSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/BusSelectionFeedbackPolicy */ \"./src/policy/figure/BusSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/WidthSelectionFeedbackPolicy */ \"./src/policy/figure/WidthSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/VBusSelectionFeedbackPolicy */ \"./src/policy/figure/VBusSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/HBusSelectionFeedbackPolicy */ \"./src/policy/figure/HBusSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/AntSelectionFeedbackPolicy */ \"./src/policy/figure/AntSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/GlowSelectionFeedbackPolicy */ \"./src/policy/figure/GlowSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/SlimSelectionFeedbackPolicy */ \"./src/policy/figure/SlimSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/VertexSelectionFeedbackPolicy */ \"./src/policy/figure/VertexSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/line/LineSelectionFeedbackPolicy */ \"./src/policy/line/LineSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/line/VertexSelectionFeedbackPolicy */ \"./src/policy/line/VertexSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/line/OrthogonalSelectionFeedbackPolicy */ \"./src/policy/line/OrthogonalSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/port/PortFeedbackPolicy */ \"./src/policy/port/PortFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/port/ElasticStrapFeedbackPolicy */ \"./src/policy/port/ElasticStrapFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/port/IntrusivePortsFeedbackPolicy */ \"./src/policy/port/IntrusivePortsFeedbackPolicy.js\");\n__webpack_require__(/*! ./Configuration */ \"./src/Configuration.js\");\n__webpack_require__(/*! ./HeadlessCanvas */ \"./src/HeadlessCanvas.js\");\n__webpack_require__(/*! ./Canvas */ \"./src/Canvas.js\");\n__webpack_require__(/*! ./Selection */ \"./src/Selection.js\");\n__webpack_require__(/*! ./Figure */ \"./src/Figure.js\");\n__webpack_require__(/*! ./shape/node/Node */ \"./src/shape/node/Node.js\");\n__webpack_require__(/*! ./VectorFigure */ \"./src/VectorFigure.js\");\n__webpack_require__(/*! ./shape/basic/Rectangle */ \"./src/shape/basic/Rectangle.js\");\n__webpack_require__(/*! ./SetFigure */ \"./src/SetFigure.js\");\n__webpack_require__(/*! ./SVGFigure */ \"./src/SVGFigure.js\");\n__webpack_require__(/*! ./shape/node/Hub */ \"./src/shape/node/Hub.js\");\n__webpack_require__(/*! ./shape/node/HorizontalBus */ \"./src/shape/node/HorizontalBus.js\");\n__webpack_require__(/*! ./shape/node/VerticalBus */ \"./src/shape/node/VerticalBus.js\");\n__webpack_require__(/*! ./shape/node/Fulcrum */ \"./src/shape/node/Fulcrum.js\");\n__webpack_require__(/*! ./shape/basic/Arc */ \"./src/shape/basic/Arc.js\");\n__webpack_require__(/*! ./shape/basic/Oval */ \"./src/shape/basic/Oval.js\");\n__webpack_require__(/*! ./shape/basic/Circle */ \"./src/shape/basic/Circle.js\");\n__webpack_require__(/*! ./shape/basic/Label */ \"./src/shape/basic/Label.js\");\n__webpack_require__(/*! ./shape/basic/Text */ \"./src/shape/basic/Text.js\");\n__webpack_require__(/*! ./shape/basic/Line */ \"./src/shape/basic/Line.js\");\n__webpack_require__(/*! ./shape/basic/PolyLine */ \"./src/shape/basic/PolyLine.js\");\n__webpack_require__(/*! ./shape/basic/Image */ \"./src/shape/basic/Image.js\");\n__webpack_require__(/*! ./shape/basic/Polygon */ \"./src/shape/basic/Polygon.js\");\n__webpack_require__(/*! ./shape/basic/Diamond */ \"./src/shape/basic/Diamond.js\");\n__webpack_require__(/*! ./shape/dimetric/Rectangle */ \"./src/shape/dimetric/Rectangle.js\");\n__webpack_require__(/*! ./shape/composite/Composite */ \"./src/shape/composite/Composite.js\");\n__webpack_require__(/*! ./shape/composite/StrongComposite */ \"./src/shape/composite/StrongComposite.js\");\n__webpack_require__(/*! ./shape/composite/Group */ \"./src/shape/composite/Group.js\");\n__webpack_require__(/*! ./shape/composite/Jailhouse */ \"./src/shape/composite/Jailhouse.js\");\n__webpack_require__(/*! ./shape/composite/WeakComposite */ \"./src/shape/composite/WeakComposite.js\");\n__webpack_require__(/*! ./shape/composite/Raft */ \"./src/shape/composite/Raft.js\");\n__webpack_require__(/*! ./Connection */ \"./src/Connection.js\");\n__webpack_require__(/*! ./VectorFigure */ \"./src/VectorFigure.js\");\n__webpack_require__(/*! ./ResizeHandle */ \"./src/ResizeHandle.js\");\n__webpack_require__(/*! ./shape/basic/LineResizeHandle */ \"./src/shape/basic/LineResizeHandle.js\");\n__webpack_require__(/*! ./shape/basic/LineStartResizeHandle */ \"./src/shape/basic/LineStartResizeHandle.js\");\n__webpack_require__(/*! ./shape/basic/LineEndResizeHandle */ \"./src/shape/basic/LineEndResizeHandle.js\");\n__webpack_require__(/*! ./shape/basic/VertexResizeHandle */ \"./src/shape/basic/VertexResizeHandle.js\");\n__webpack_require__(/*! ./shape/basic/GhostVertexResizeHandle */ \"./src/shape/basic/GhostVertexResizeHandle.js\");\n__webpack_require__(/*! ./Port */ \"./src/Port.js\");\n__webpack_require__(/*! ./InputPort */ \"./src/InputPort.js\");\n__webpack_require__(/*! ./OutputPort */ \"./src/OutputPort.js\");\n__webpack_require__(/*! ./HybridPort */ \"./src/HybridPort.js\");\n__webpack_require__(/*! ./layout/anchor/ConnectionAnchor */ \"./src/layout/anchor/ConnectionAnchor.js\");\n__webpack_require__(/*! ./layout/anchor/ChopboxConnectionAnchor */ \"./src/layout/anchor/ChopboxConnectionAnchor.js\");\n__webpack_require__(/*! ./layout/anchor/FanConnectionAnchor */ \"./src/layout/anchor/FanConnectionAnchor.js\");\n__webpack_require__(/*! ./layout/anchor/ShortesPathConnectionAnchor */ \"./src/layout/anchor/ShortesPathConnectionAnchor.js\");\n__webpack_require__(/*! ./layout/anchor/CenterEdgeConnectionAnchor */ \"./src/layout/anchor/CenterEdgeConnectionAnchor.js\");\n__webpack_require__(/*! ./shape/arrow/CalligrapherArrowLeft */ \"./src/shape/arrow/CalligrapherArrowLeft.js\");\n__webpack_require__(/*! ./shape/arrow/CalligrapherArrowDownLeft */ \"./src/shape/arrow/CalligrapherArrowDownLeft.js\");\n__webpack_require__(/*! ./shape/node/Start */ \"./src/shape/node/Start.js\");\n__webpack_require__(/*! ./shape/node/End */ \"./src/shape/node/End.js\");\n__webpack_require__(/*! ./shape/node/Between */ \"./src/shape/node/Between.js\");\n__webpack_require__(/*! ./shape/note/PostIt */ \"./src/shape/note/PostIt.js\");\n__webpack_require__(/*! ./shape/flowchart/Document */ \"./src/shape/flowchart/Document.js\");\n__webpack_require__(/*! ./shape/widget/Widget */ \"./src/shape/widget/Widget.js\");\n__webpack_require__(/*! ./shape/widget/Slider */ \"./src/shape/widget/Slider.js\");\n__webpack_require__(/*! ./shape/diagram/Diagram */ \"./src/shape/diagram/Diagram.js\");\n__webpack_require__(/*! ./shape/diagram/Pie */ \"./src/shape/diagram/Pie.js\");\n__webpack_require__(/*! ./shape/diagram/Sparkline */ \"./src/shape/diagram/Sparkline.js\");\n__webpack_require__(/*! ./shape/analog/OpAmp */ \"./src/shape/analog/OpAmp.js\");\n__webpack_require__(/*! ./shape/analog/ResistorBridge */ \"./src/shape/analog/ResistorBridge.js\");\n__webpack_require__(/*! ./shape/analog/ResistorVertical */ \"./src/shape/analog/ResistorVertical.js\");\n__webpack_require__(/*! ./shape/analog/VoltageSupplyHorizontal */ \"./src/shape/analog/VoltageSupplyHorizontal.js\");\n__webpack_require__(/*! ./shape/analog/VoltageSupplyVertical */ \"./src/shape/analog/VoltageSupplyVertical.js\");\n__webpack_require__(/*! ./shape/layout/Layout */ \"./src/shape/layout/Layout.js\");\n__webpack_require__(/*! ./shape/layout/HorizontalLayout */ \"./src/shape/layout/HorizontalLayout.js\");\n__webpack_require__(/*! ./shape/layout/VerticalLayout */ \"./src/shape/layout/VerticalLayout.js\");\n__webpack_require__(/*! ./shape/layout/TableLayout */ \"./src/shape/layout/TableLayout.js\");\n__webpack_require__(/*! ./shape/layout/FlexGridLayout */ \"./src/shape/layout/FlexGridLayout.js\");\n__webpack_require__(/*! ./shape/layout/StackLayout */ \"./src/shape/layout/StackLayout.js\");\n__webpack_require__(/*! ./shape/icon/Icon */ \"./src/shape/icon/Icon.js\");\n__webpack_require__(/*! ./shape/icon/Thunder */ \"./src/shape/icon/Thunder.js\");\n__webpack_require__(/*! ./shape/icon/Snow */ \"./src/shape/icon/Snow.js\");\n__webpack_require__(/*! ./shape/icon/Hail */ \"./src/shape/icon/Hail.js\");\n__webpack_require__(/*! ./shape/icon/Rain */ \"./src/shape/icon/Rain.js\");\n__webpack_require__(/*! ./shape/icon/Cloudy */ \"./src/shape/icon/Cloudy.js\");\n__webpack_require__(/*! ./shape/icon/Sun */ \"./src/shape/icon/Sun.js\");\n__webpack_require__(/*! ./shape/icon/Undo */ \"./src/shape/icon/Undo.js\");\n__webpack_require__(/*! ./shape/icon/Detour */ \"./src/shape/icon/Detour.js\");\n__webpack_require__(/*! ./shape/icon/Merge */ \"./src/shape/icon/Merge.js\");\n__webpack_require__(/*! ./shape/icon/Split */ \"./src/shape/icon/Split.js\");\n__webpack_require__(/*! ./shape/icon/Fork */ \"./src/shape/icon/Fork.js\");\n__webpack_require__(/*! ./shape/icon/ForkAlt */ \"./src/shape/icon/ForkAlt.js\");\n__webpack_require__(/*! ./shape/icon/Exchange */ \"./src/shape/icon/Exchange.js\");\n__webpack_require__(/*! ./shape/icon/Shuffle */ \"./src/shape/icon/Shuffle.js\");\n__webpack_require__(/*! ./shape/icon/Refresh */ \"./src/shape/icon/Refresh.js\");\n__webpack_require__(/*! ./shape/icon/Ccw */ \"./src/shape/icon/Ccw.js\");\n__webpack_require__(/*! ./shape/icon/Acw */ \"./src/shape/icon/Acw.js\");\n__webpack_require__(/*! ./shape/icon/Contract */ \"./src/shape/icon/Contract.js\");\n__webpack_require__(/*! ./shape/icon/Expand */ \"./src/shape/icon/Expand.js\");\n__webpack_require__(/*! ./shape/icon/Stop */ \"./src/shape/icon/Stop.js\");\n__webpack_require__(/*! ./shape/icon/End */ \"./src/shape/icon/End.js\");\n__webpack_require__(/*! ./shape/icon/Start */ \"./src/shape/icon/Start.js\");\n__webpack_require__(/*! ./shape/icon/Ff */ \"./src/shape/icon/Ff.js\");\n__webpack_require__(/*! ./shape/icon/Rw */ \"./src/shape/icon/Rw.js\");\n__webpack_require__(/*! ./shape/icon/ArrowRight */ \"./src/shape/icon/ArrowRight.js\");\n__webpack_require__(/*! ./shape/icon/ArrowLeft */ \"./src/shape/icon/ArrowLeft.js\");\n__webpack_require__(/*! ./shape/icon/ArrowUp */ \"./src/shape/icon/ArrowUp.js\");\n__webpack_require__(/*! ./shape/icon/ArrowDown */ \"./src/shape/icon/ArrowDown.js\");\n__webpack_require__(/*! ./shape/icon/ArrowLeft2 */ \"./src/shape/icon/ArrowLeft2.js\");\n__webpack_require__(/*! ./shape/icon/ArrowRight2 */ \"./src/shape/icon/ArrowRight2.js\");\n__webpack_require__(/*! ./shape/icon/Smile2 */ \"./src/shape/icon/Smile2.js\");\n__webpack_require__(/*! ./shape/icon/Smile */ \"./src/shape/icon/Smile.js\");\n__webpack_require__(/*! ./shape/icon/Alarm */ \"./src/shape/icon/Alarm.js\");\n__webpack_require__(/*! ./shape/icon/Clock */ \"./src/shape/icon/Clock.js\");\n__webpack_require__(/*! ./shape/icon/StopWatch */ \"./src/shape/icon/StopWatch.js\");\n__webpack_require__(/*! ./shape/icon/History */ \"./src/shape/icon/History.js\");\n__webpack_require__(/*! ./shape/icon/Future */ \"./src/shape/icon/Future.js\");\n__webpack_require__(/*! ./shape/icon/GlobeAlt2 */ \"./src/shape/icon/GlobeAlt2.js\");\n__webpack_require__(/*! ./shape/icon/GlobeAlt */ \"./src/shape/icon/GlobeAlt.js\");\n__webpack_require__(/*! ./shape/icon/Globe */ \"./src/shape/icon/Globe.js\");\n__webpack_require__(/*! ./shape/icon/Warning */ \"./src/shape/icon/Warning.js\");\n__webpack_require__(/*! ./shape/icon/Code */ \"./src/shape/icon/Code.js\");\n__webpack_require__(/*! ./shape/icon/Pensil */ \"./src/shape/icon/Pensil.js\");\n__webpack_require__(/*! ./shape/icon/Pen */ \"./src/shape/icon/Pen.js\");\n__webpack_require__(/*! ./shape/icon/Plus */ \"./src/shape/icon/Plus.js\");\n__webpack_require__(/*! ./shape/icon/Minus */ \"./src/shape/icon/Minus.js\");\n__webpack_require__(/*! ./shape/icon/TShirt */ \"./src/shape/icon/TShirt.js\");\n__webpack_require__(/*! ./shape/icon/Sticker */ \"./src/shape/icon/Sticker.js\");\n__webpack_require__(/*! ./shape/icon/Page2 */ \"./src/shape/icon/Page2.js\");\n__webpack_require__(/*! ./shape/icon/Page */ \"./src/shape/icon/Page.js\");\n__webpack_require__(/*! ./shape/icon/Landscape1 */ \"./src/shape/icon/Landscape1.js\");\n__webpack_require__(/*! ./shape/icon/Landscape2 */ \"./src/shape/icon/Landscape2.js\");\n__webpack_require__(/*! ./shape/icon/Plugin */ \"./src/shape/icon/Plugin.js\");\n__webpack_require__(/*! ./shape/icon/Bookmark */ \"./src/shape/icon/Bookmark.js\");\n__webpack_require__(/*! ./shape/icon/Hammer */ \"./src/shape/icon/Hammer.js\");\n__webpack_require__(/*! ./shape/icon/Users */ \"./src/shape/icon/Users.js\");\n__webpack_require__(/*! ./shape/icon/User */ \"./src/shape/icon/User.js\");\n__webpack_require__(/*! ./shape/icon/Customer */ \"./src/shape/icon/Customer.js\");\n__webpack_require__(/*! ./shape/icon/Employee */ \"./src/shape/icon/Employee.js\");\n__webpack_require__(/*! ./shape/icon/Anonymous */ \"./src/shape/icon/Anonymous.js\");\n__webpack_require__(/*! ./shape/icon/Skull */ \"./src/shape/icon/Skull.js\");\n__webpack_require__(/*! ./shape/icon/Mail */ \"./src/shape/icon/Mail.js\");\n__webpack_require__(/*! ./shape/icon/Picture */ \"./src/shape/icon/Picture.js\");\n__webpack_require__(/*! ./shape/icon/Bubble */ \"./src/shape/icon/Bubble.js\");\n__webpack_require__(/*! ./shape/icon/CodeTalk */ \"./src/shape/icon/CodeTalk.js\");\n__webpack_require__(/*! ./shape/icon/Talkq */ \"./src/shape/icon/Talkq.js\");\n__webpack_require__(/*! ./shape/icon/Talke */ \"./src/shape/icon/Talke.js\");\n__webpack_require__(/*! ./shape/icon/Home */ \"./src/shape/icon/Home.js\");\n__webpack_require__(/*! ./shape/icon/Lock */ \"./src/shape/icon/Lock.js\");\n__webpack_require__(/*! ./shape/icon/Clip */ \"./src/shape/icon/Clip.js\");\n__webpack_require__(/*! ./shape/icon/Star */ \"./src/shape/icon/Star.js\");\n__webpack_require__(/*! ./shape/icon/StarOff */ \"./src/shape/icon/StarOff.js\");\n__webpack_require__(/*! ./shape/icon/Star2 */ \"./src/shape/icon/Star2.js\");\n__webpack_require__(/*! ./shape/icon/Star2Off */ \"./src/shape/icon/Star2Off.js\");\n__webpack_require__(/*! ./shape/icon/Star3 */ \"./src/shape/icon/Star3.js\");\n__webpack_require__(/*! ./shape/icon/Star3Off */ \"./src/shape/icon/Star3Off.js\");\n__webpack_require__(/*! ./shape/icon/Chat */ \"./src/shape/icon/Chat.js\");\n__webpack_require__(/*! ./shape/icon/Quote */ \"./src/shape/icon/Quote.js\");\n__webpack_require__(/*! ./shape/icon/Gear2 */ \"./src/shape/icon/Gear2.js\");\n__webpack_require__(/*! ./shape/icon/Gear */ \"./src/shape/icon/Gear.js\");\n__webpack_require__(/*! ./shape/icon/Wrench */ \"./src/shape/icon/Wrench.js\");\n__webpack_require__(/*! ./shape/icon/Wrench2 */ \"./src/shape/icon/Wrench2.js\");\n__webpack_require__(/*! ./shape/icon/Wrench3 */ \"./src/shape/icon/Wrench3.js\");\n__webpack_require__(/*! ./shape/icon/ScrewDriver */ \"./src/shape/icon/ScrewDriver.js\");\n__webpack_require__(/*! ./shape/icon/HammerAndScrewDriver */ \"./src/shape/icon/HammerAndScrewDriver.js\");\n__webpack_require__(/*! ./shape/icon/Magic */ \"./src/shape/icon/Magic.js\");\n__webpack_require__(/*! ./shape/icon/Download */ \"./src/shape/icon/Download.js\");\n__webpack_require__(/*! ./shape/icon/View */ \"./src/shape/icon/View.js\");\n__webpack_require__(/*! ./shape/icon/Noview */ \"./src/shape/icon/Noview.js\");\n__webpack_require__(/*! ./shape/icon/Cloud */ \"./src/shape/icon/Cloud.js\");\n__webpack_require__(/*! ./shape/icon/Cloud2 */ \"./src/shape/icon/Cloud2.js\");\n__webpack_require__(/*! ./shape/icon/CloudDown */ \"./src/shape/icon/CloudDown.js\");\n__webpack_require__(/*! ./shape/icon/CloudUp */ \"./src/shape/icon/CloudUp.js\");\n__webpack_require__(/*! ./shape/icon/Location */ \"./src/shape/icon/Location.js\");\n__webpack_require__(/*! ./shape/icon/Volume0 */ \"./src/shape/icon/Volume0.js\");\n__webpack_require__(/*! ./shape/icon/Volume1 */ \"./src/shape/icon/Volume1.js\");\n__webpack_require__(/*! ./shape/icon/Volume2 */ \"./src/shape/icon/Volume2.js\");\n__webpack_require__(/*! ./shape/icon/Volume3 */ \"./src/shape/icon/Volume3.js\");\n__webpack_require__(/*! ./shape/icon/Key */ \"./src/shape/icon/Key.js\");\n__webpack_require__(/*! ./shape/icon/Ruler */ \"./src/shape/icon/Ruler.js\");\n__webpack_require__(/*! ./shape/icon/Power */ \"./src/shape/icon/Power.js\");\n__webpack_require__(/*! ./shape/icon/Unlock */ \"./src/shape/icon/Unlock.js\");\n__webpack_require__(/*! ./shape/icon/Flag */ \"./src/shape/icon/Flag.js\");\n__webpack_require__(/*! ./shape/icon/Tag */ \"./src/shape/icon/Tag.js\");\n__webpack_require__(/*! ./shape/icon/Search */ \"./src/shape/icon/Search.js\");\n__webpack_require__(/*! ./shape/icon/ZoomOut */ \"./src/shape/icon/ZoomOut.js\");\n__webpack_require__(/*! ./shape/icon/ZoomIn */ \"./src/shape/icon/ZoomIn.js\");\n__webpack_require__(/*! ./shape/icon/Cross */ \"./src/shape/icon/Cross.js\");\n__webpack_require__(/*! ./shape/icon/Check */ \"./src/shape/icon/Check.js\");\n__webpack_require__(/*! ./shape/icon/Settings */ \"./src/shape/icon/Settings.js\");\n__webpack_require__(/*! ./shape/icon/SettingsAlt */ \"./src/shape/icon/SettingsAlt.js\");\n__webpack_require__(/*! ./shape/icon/Feed */ \"./src/shape/icon/Feed.js\");\n__webpack_require__(/*! ./shape/icon/Bug */ \"./src/shape/icon/Bug.js\");\n__webpack_require__(/*! ./shape/icon/Link */ \"./src/shape/icon/Link.js\");\n__webpack_require__(/*! ./shape/icon/Calendar */ \"./src/shape/icon/Calendar.js\");\n__webpack_require__(/*! ./shape/icon/Picker */ \"./src/shape/icon/Picker.js\");\n__webpack_require__(/*! ./shape/icon/No */ \"./src/shape/icon/No.js\");\n__webpack_require__(/*! ./shape/icon/CommandLine */ \"./src/shape/icon/CommandLine.js\");\n__webpack_require__(/*! ./shape/icon/Photo */ \"./src/shape/icon/Photo.js\");\n__webpack_require__(/*! ./shape/icon/Printer */ \"./src/shape/icon/Printer.js\");\n__webpack_require__(/*! ./shape/icon/Export */ \"./src/shape/icon/Export.js\");\n__webpack_require__(/*! ./shape/icon/Import */ \"./src/shape/icon/Import.js\");\n__webpack_require__(/*! ./shape/icon/Run */ \"./src/shape/icon/Run.js\");\n__webpack_require__(/*! ./shape/icon/Magnet */ \"./src/shape/icon/Magnet.js\");\n__webpack_require__(/*! ./shape/icon/NoMagnet */ \"./src/shape/icon/NoMagnet.js\");\n__webpack_require__(/*! ./shape/icon/ReflectH */ \"./src/shape/icon/ReflectH.js\");\n__webpack_require__(/*! ./shape/icon/ReflectV */ \"./src/shape/icon/ReflectV.js\");\n__webpack_require__(/*! ./shape/icon/Resize2 */ \"./src/shape/icon/Resize2.js\");\n__webpack_require__(/*! ./shape/icon/Rotate */ \"./src/shape/icon/Rotate.js\");\n__webpack_require__(/*! ./shape/icon/Connect */ \"./src/shape/icon/Connect.js\");\n__webpack_require__(/*! ./shape/icon/Disconnect */ \"./src/shape/icon/Disconnect.js\");\n__webpack_require__(/*! ./shape/icon/Folder */ \"./src/shape/icon/Folder.js\");\n__webpack_require__(/*! ./shape/icon/Man */ \"./src/shape/icon/Man.js\");\n__webpack_require__(/*! ./shape/icon/Woman */ \"./src/shape/icon/Woman.js\");\n__webpack_require__(/*! ./shape/icon/People */ \"./src/shape/icon/People.js\");\n__webpack_require__(/*! ./shape/icon/Parent */ \"./src/shape/icon/Parent.js\");\n__webpack_require__(/*! ./shape/icon/Notebook */ \"./src/shape/icon/Notebook.js\");\n__webpack_require__(/*! ./shape/icon/Diagram */ \"./src/shape/icon/Diagram.js\");\n__webpack_require__(/*! ./shape/icon/BarChart */ \"./src/shape/icon/BarChart.js\");\n__webpack_require__(/*! ./shape/icon/PieChart */ \"./src/shape/icon/PieChart.js\");\n__webpack_require__(/*! ./shape/icon/LineChart */ \"./src/shape/icon/LineChart.js\");\n__webpack_require__(/*! ./shape/icon/Apps */ \"./src/shape/icon/Apps.js\");\n__webpack_require__(/*! ./shape/icon/Locked */ \"./src/shape/icon/Locked.js\");\n__webpack_require__(/*! ./shape/icon/Ppt */ \"./src/shape/icon/Ppt.js\");\n__webpack_require__(/*! ./shape/icon/Lab */ \"./src/shape/icon/Lab.js\");\n__webpack_require__(/*! ./shape/icon/Umbrella */ \"./src/shape/icon/Umbrella.js\");\n__webpack_require__(/*! ./shape/icon/Dry */ \"./src/shape/icon/Dry.js\");\n__webpack_require__(/*! ./shape/icon/Ipad */ \"./src/shape/icon/Ipad.js\");\n__webpack_require__(/*! ./shape/icon/Iphone */ \"./src/shape/icon/Iphone.js\");\n__webpack_require__(/*! ./shape/icon/Jigsaw */ \"./src/shape/icon/Jigsaw.js\");\n__webpack_require__(/*! ./shape/icon/Lamp */ \"./src/shape/icon/Lamp.js\");\n__webpack_require__(/*! ./shape/icon/Lamp_alt */ \"./src/shape/icon/Lamp_alt.js\");\n__webpack_require__(/*! ./shape/icon/Video */ \"./src/shape/icon/Video.js\");\n__webpack_require__(/*! ./shape/icon/Palm */ \"./src/shape/icon/Palm.js\");\n__webpack_require__(/*! ./shape/icon/Fave */ \"./src/shape/icon/Fave.js\");\n__webpack_require__(/*! ./shape/icon/Help */ \"./src/shape/icon/Help.js\");\n__webpack_require__(/*! ./shape/icon/Crop */ \"./src/shape/icon/Crop.js\");\n__webpack_require__(/*! ./shape/icon/BioHazard */ \"./src/shape/icon/BioHazard.js\");\n__webpack_require__(/*! ./shape/icon/WheelChair */ \"./src/shape/icon/WheelChair.js\");\n__webpack_require__(/*! ./shape/icon/Mic */ \"./src/shape/icon/Mic.js\");\n__webpack_require__(/*! ./shape/icon/MicMute */ \"./src/shape/icon/MicMute.js\");\n__webpack_require__(/*! ./shape/icon/IMac */ \"./src/shape/icon/IMac.js\");\n__webpack_require__(/*! ./shape/icon/Pc */ \"./src/shape/icon/Pc.js\");\n__webpack_require__(/*! ./shape/icon/Cube */ \"./src/shape/icon/Cube.js\");\n__webpack_require__(/*! ./shape/icon/FullCube */ \"./src/shape/icon/FullCube.js\");\n__webpack_require__(/*! ./shape/icon/Font */ \"./src/shape/icon/Font.js\");\n__webpack_require__(/*! ./shape/icon/Trash */ \"./src/shape/icon/Trash.js\");\n__webpack_require__(/*! ./shape/icon/NewWindow */ \"./src/shape/icon/NewWindow.js\");\n__webpack_require__(/*! ./shape/icon/DockRight */ \"./src/shape/icon/DockRight.js\");\n__webpack_require__(/*! ./shape/icon/DockLeft */ \"./src/shape/icon/DockLeft.js\");\n__webpack_require__(/*! ./shape/icon/DockBottom */ \"./src/shape/icon/DockBottom.js\");\n__webpack_require__(/*! ./shape/icon/DockTop */ \"./src/shape/icon/DockTop.js\");\n__webpack_require__(/*! ./shape/icon/Pallete */ \"./src/shape/icon/Pallete.js\");\n__webpack_require__(/*! ./shape/icon/Cart */ \"./src/shape/icon/Cart.js\");\n__webpack_require__(/*! ./shape/icon/Glasses */ \"./src/shape/icon/Glasses.js\");\n__webpack_require__(/*! ./shape/icon/Package */ \"./src/shape/icon/Package.js\");\n__webpack_require__(/*! ./shape/icon/Book */ \"./src/shape/icon/Book.js\");\n__webpack_require__(/*! ./shape/icon/Books */ \"./src/shape/icon/Books.js\");\n__webpack_require__(/*! ./shape/icon/Icons */ \"./src/shape/icon/Icons.js\");\n__webpack_require__(/*! ./shape/icon/List */ \"./src/shape/icon/List.js\");\n__webpack_require__(/*! ./shape/icon/Db */ \"./src/shape/icon/Db.js\");\n__webpack_require__(/*! ./shape/icon/Paper */ \"./src/shape/icon/Paper.js\");\n__webpack_require__(/*! ./shape/icon/TakeOff */ \"./src/shape/icon/TakeOff.js\");\n__webpack_require__(/*! ./shape/icon/Landing */ \"./src/shape/icon/Landing.js\");\n__webpack_require__(/*! ./shape/icon/Plane */ \"./src/shape/icon/Plane.js\");\n__webpack_require__(/*! ./shape/icon/Phone */ \"./src/shape/icon/Phone.js\");\n__webpack_require__(/*! ./shape/icon/HangUp */ \"./src/shape/icon/HangUp.js\");\n__webpack_require__(/*! ./shape/icon/SlideShare */ \"./src/shape/icon/SlideShare.js\");\n__webpack_require__(/*! ./shape/icon/Twitter */ \"./src/shape/icon/Twitter.js\");\n__webpack_require__(/*! ./shape/icon/TwitterBird */ \"./src/shape/icon/TwitterBird.js\");\n__webpack_require__(/*! ./shape/icon/Skype */ \"./src/shape/icon/Skype.js\");\n__webpack_require__(/*! ./shape/icon/Windows */ \"./src/shape/icon/Windows.js\");\n__webpack_require__(/*! ./shape/icon/Apple */ \"./src/shape/icon/Apple.js\");\n__webpack_require__(/*! ./shape/icon/Linux */ \"./src/shape/icon/Linux.js\");\n__webpack_require__(/*! ./shape/icon/NodeJs */ \"./src/shape/icon/NodeJs.js\");\n__webpack_require__(/*! ./shape/icon/JQuery */ \"./src/shape/icon/JQuery.js\");\n__webpack_require__(/*! ./shape/icon/Sencha */ \"./src/shape/icon/Sencha.js\");\n__webpack_require__(/*! ./shape/icon/Vim */ \"./src/shape/icon/Vim.js\");\n__webpack_require__(/*! ./shape/icon/InkScape */ \"./src/shape/icon/InkScape.js\");\n__webpack_require__(/*! ./shape/icon/Aumade */ \"./src/shape/icon/Aumade.js\");\n__webpack_require__(/*! ./shape/icon/Firefox */ \"./src/shape/icon/Firefox.js\");\n__webpack_require__(/*! ./shape/icon/Ie */ \"./src/shape/icon/Ie.js\");\n__webpack_require__(/*! ./shape/icon/Ie9 */ \"./src/shape/icon/Ie9.js\");\n__webpack_require__(/*! ./shape/icon/Opera */ \"./src/shape/icon/Opera.js\");\n__webpack_require__(/*! ./shape/icon/Chrome */ \"./src/shape/icon/Chrome.js\");\n__webpack_require__(/*! ./shape/icon/Safari */ \"./src/shape/icon/Safari.js\");\n__webpack_require__(/*! ./shape/icon/LinkedIn */ \"./src/shape/icon/LinkedIn.js\");\n__webpack_require__(/*! ./shape/icon/Flickr */ \"./src/shape/icon/Flickr.js\");\n__webpack_require__(/*! ./shape/icon/GitHub */ \"./src/shape/icon/GitHub.js\");\n__webpack_require__(/*! ./shape/icon/GitHubAlt */ \"./src/shape/icon/GitHubAlt.js\");\n__webpack_require__(/*! ./shape/icon/Raphael */ \"./src/shape/icon/Raphael.js\");\n__webpack_require__(/*! ./shape/icon/GRaphael */ \"./src/shape/icon/GRaphael.js\");\n__webpack_require__(/*! ./shape/icon/Svg */ \"./src/shape/icon/Svg.js\");\n__webpack_require__(/*! ./shape/icon/Usb */ \"./src/shape/icon/Usb.js\");\n__webpack_require__(/*! ./shape/icon/Ethernet */ \"./src/shape/icon/Ethernet.js\");\n__webpack_require__(/*! ./shape/pert/Activity */ \"./src/shape/pert/Activity.js\");\n__webpack_require__(/*! ./shape/pert/Start */ \"./src/shape/pert/Start.js\");\n__webpack_require__(/*! ./shape/state/Start */ \"./src/shape/state/Start.js\");\n__webpack_require__(/*! ./shape/state/End */ \"./src/shape/state/End.js\");\n__webpack_require__(/*! ./shape/state/State */ \"./src/shape/state/State.js\");\n__webpack_require__(/*! ./shape/state/Connection */ \"./src/shape/state/Connection.js\");\n__webpack_require__(/*! ./ui/LabelEditor */ \"./src/ui/LabelEditor.js\");\n__webpack_require__(/*! ./ui/LabelInplaceEditor */ \"./src/ui/LabelInplaceEditor.js\");\n__webpack_require__(/*! ./decoration/connection/Decorator */ \"./src/decoration/connection/Decorator.js\");\n__webpack_require__(/*! ./decoration/connection/ArrowDecorator */ \"./src/decoration/connection/ArrowDecorator.js\");\n__webpack_require__(/*! ./decoration/connection/DiamondDecorator */ \"./src/decoration/connection/DiamondDecorator.js\");\n__webpack_require__(/*! ./decoration/connection/CircleDecorator */ \"./src/decoration/connection/CircleDecorator.js\");\n__webpack_require__(/*! ./decoration/connection/BarDecorator */ \"./src/decoration/connection/BarDecorator.js\");\n__webpack_require__(/*! ./io/Reader */ \"./src/io/Reader.js\");\n__webpack_require__(/*! ./io/Writer */ \"./src/io/Writer.js\");\n__webpack_require__(/*! ./io/svg/Writer */ \"./src/io/svg/Writer.js\");\n__webpack_require__(/*! ./io/png/Writer */ \"./src/io/png/Writer.js\");\n__webpack_require__(/*! ./io/json/Writer */ \"./src/io/json/Writer.js\");\n__webpack_require__(/*! ./io/json/Reader */ \"./src/io/json/Reader.js\");\n\n/***/ }),\n\n/***/ \"./src/io/Reader.js\":\n/*!**************************!*\\\n !*** ./src/io/Reader.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.io.Reader = Class.extend({\n\n /**\r\n * @constructor\r\n * @private\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n *\r\n * Restore the canvas from a given String.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to restore\r\n * @param {Object} document the document to read\r\n *\r\n * @return {draw2d.util.ArrayList} the added elements\r\n * @template\r\n */\n unmarshal: function unmarshal(canvas, document) {\n // do nothing. Inherit classes must implement this method\n }\n\n});\n/**\r\n * @class draw2d.io.Reader\r\n * Template class for general import of a document into the canvas.\r\n *\r\n * @author andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/io/Writer.js\":\n/*!**************************!*\\\n !*** ./src/io/Writer.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.io.Writer = Class.extend({\n\n /**\r\n * @constructor\r\n * @private\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n * Export the content to the implemented data format. Inherit class implements\r\n * content specific writer.\r\n * <br>\r\n * <br>\r\n *\r\n * Method signature has been changed from version 2.10.1 to version 3.0.0.<br>\r\n * The parameter <b>resultCallback</b> is required and new. The method calls\r\n * the callback instead of return the result.\r\n *\r\n * @template\r\n * @since 2.10.1\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Function} resultCallback the method to call on success. The first argument is the result object, the second the base64 content of a corresponding file\r\n * @returns {Object}\r\n *\r\n */\n marshal: function marshal(canvas, resultCallback) {\n // I change the API signature from version 2.10.1 to 3.0.0. Throw an exception\n // if any application not care about this changes.\n if (typeof resultCallback !== \"function\") {\n throw \"Writer.marshal method signature has been change from version 2.10.1 to version 3.0.0. Please consult the API documentation about this issue.\";\n }\n\n resultCallback(\"\", \"\");\n },\n\n /**\r\n * @method\r\n * utility method to format a given XML string.\r\n *\r\n * @param xml\r\n * @returns {String}\r\n */\n formatXml: function formatXml(xml) {\n var formatted = '';\n var reg = new RegExp(\"(>)(<)(\\/*)\", \"g\");\n xml = xml.replace(reg, '$1\\r\\n$2$3');\n var pad = 0;\n xml.split('\\r\\n').forEach(function (node) {\n var indent = 0;\n if (node.match(new RegExp(\".+<\\/\\w[^>]*>$\"))) {\n indent = 0;\n } else if (node.match(new RegExp(\"^<\\/\\w\"))) {\n if (pad != 0) {\n pad -= 1;\n }\n } else if (node.match(new RegExp(\"^<\\w[^>]*[^\\/]>.*$\"))) {\n indent = 1;\n } else {\n indent = 0;\n }\n\n var padding = '';\n for (var i = 0; i < pad; i++) {\n padding += ' ';\n }\n\n formatted += padding + node + '\\r\\n';\n pad += indent;\n });\n\n return formatted;\n }\n});\n/**\r\n * @class draw2d.io.Writer\r\n * Serialize the canvas to an external format. This is only a template/interface class.\r\n * Inherit classes must implement the export format.\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/io/json/Reader.js\":\n/*!*******************************!*\\\n !*** ./src/io/json/Reader.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.io.json.Reader = _packages2.default.io.Reader.extend({\n\n NAME: \"draw2d.io.json.Reader\",\n\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n *\r\n * Restore the canvas from a given JSON object.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to restore\r\n * @param {Object} document the json object to load.\r\n */\n unmarshal: function unmarshal(canvas, json) {\n var _this2 = this;\n\n var _this = this;\n var result = new _packages2.default.util.ArrayList();\n\n if (typeof json === \"string\") {\n json = JSON.parse(json);\n }\n\n var node = null;\n json.forEach(function (element) {\n try {\n var o = _this.createFigureFromElement(element) || _this.createFigureFromType(element.type);\n var source = null;\n var target = null;\n for (var i in element) {\n var val = element[i];\n if (i === \"source\") {\n node = canvas.getFigure(val.node);\n if (node === null) {\n throw \"Source figure with id '\" + val.node + \"' not found\";\n }\n source = node.getPort(val.port);\n if (source === null) {\n throw \"Unable to find source port '\" + val.port + \"' at figure '\" + val.node + \"' to unmarschal '\" + element.type + \"'\";\n }\n } else if (i === \"target\") {\n node = canvas.getFigure(val.node);\n if (node === null) {\n throw \"Target figure with id '\" + val.node + \"' not found\";\n }\n target = node.getPort(val.port);\n if (target === null) {\n throw \"Unable to find target port '\" + val.port + \"' at figure '\" + val.node + \"' to unmarschal '\" + element.type + \"'\";\n }\n }\n }\n if (source !== null && target !== null) {\n // don't change the order or the source/target set.\n // TARGET must always be the second one because some applications needs the \"source\"\n // port in the \"connect\" event of the target.\n o.setSource(source);\n o.setTarget(target);\n }\n o.setPersistentAttributes(element);\n canvas.add(o);\n result.add(o);\n } catch (exc) {\n debug.error(element, \"Unable to instantiate figure type '\" + element.type + \"' with id '\" + element.id + \"' during unmarshal by \" + _this2.NAME + \". Skipping figure..\");\n debug.error(exc);\n debug.warn(element);\n }\n });\n\n // restore group assignment\n //\n json.forEach(function (element) {\n if (typeof element.composite !== \"undefined\") {\n var figure = canvas.getFigure(element.id);\n if (figure === null) {\n figure = canvas.getLine(element.id);\n }\n var group = canvas.getFigure(element.composite);\n group.assignFigure(figure);\n }\n });\n\n // recalculate all crossings and repaint the connections with\n // possible crossing decoration\n canvas.calculateConnectionIntersection();\n canvas.getLines().each(function (i, line) {\n line.svgPathString = null;\n line.repaint();\n });\n canvas.linesToRepaintAfterDragDrop = canvas.getLines().clone();\n\n canvas.showDecoration();\n\n return result;\n },\n\n /**\r\n * @method\r\n * Factory method to create an instance of the given element type.\r\n *\r\n * @param {String} type\r\n * @return {draw2d.Figure}\r\n */\n createFigureFromType: function createFigureFromType(type) {\n return eval(\"new \" + type + \"()\");\n },\n\n /**\r\n * @method\r\n * Factory method to create an instance of the given element.\r\n *\r\n * @param {Object} element\r\n * @return {draw2d.Figure}\r\n */\n createFigureFromElement: function createFigureFromElement(element) {\n return null;\n }\n});\n/**\r\n * @class draw2d.io.json.Reader\r\n * Read a JSON data and import them into the canvas. The JSON must be generated with the\r\n * {@link draw2d.io.json.Writer}.\r\n *\r\n * // Load a standard draw2d JSON object into the canvas\r\n * //\r\n * var jsonDocument =\r\n * [\r\n * {\r\n * \"type\": \"draw2d.shape.basic.Oval\",\r\n * \"id\": \"5b4c74 b0-96d1-1aa3-7eca-bbeaed5fffd7\",\r\n * \"x\": 237,\r\n * \"y\": 236,\r\n * \"width\": 93,\r\n * \"height\": 38\r\n * },\r\n * {\r\n * \"type\": \"draw2d.shape.basic.Rectangle\",\r\n * \"id\": \"354fa3b9-a834-0221-2009-abc2d6bd852a\",\r\n * \"x\": 225,\r\n * \"y\": 97,\r\n * \"width\": 201,\r\n * \"height\": 82,\r\n * \"radius\": 2\r\n * }\r\n * ];\r\n * // unmarshal the JSON document into the canvas\r\n * // (load)\r\n * var reader = new draw2d.io.json.Reader();\r\n * reader.unmarshal(canvas, jsonDocument);\r\n *\r\n *\r\n * @extends draw2d.io.Reader\r\n */\n\n/***/ }),\n\n/***/ \"./src/io/json/Writer.js\":\n/*!*******************************!*\\\n !*** ./src/io/json/Writer.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.io.json.Writer = _packages2.default.io.Writer.extend({\n\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Export the content to the implemented data format. Inherit class implements\r\n * content specific writer.\r\n * <br>\r\n * <br>\r\n * \r\n * Method signature has been changed from version 2.10.1 to version 3.0.0.<br>\r\n * The parameter <b>resultCallback</b> is required and new. The method calls\r\n * the callback instead of return the result.\r\n * \r\n * @param {draw2d.Canvas} canvas\r\n * @param {Function} resultCallback the method to call on success. The first argument is the result object, the second the base64 representation of the file content\r\n * @param {Object} resultCallback.json the canvas document as JSON object\r\n * @param {String} resultCallback.base64 the canvas document as base encoded JSON\r\n */\n marshal: function marshal(canvas, resultCallback) {\n // I change the API signature from version 2.10.1 to 3.0.0. Throw an exception\n // if any application not care about this changes.\n if (typeof resultCallback !== \"function\") {\n throw \"Writer.marshal method signature has been change from version 2.10.1 to version 3.0.0. Please consult the API documentation about this issue.\";\n }\n\n var result = [];\n\n canvas.getFigures().each(function (i, figure) {\n result.push(figure.getPersistentAttributes());\n });\n\n canvas.getLines().each(function (i, element) {\n result.push(element.getPersistentAttributes());\n });\n\n var base64Content = _packages2.default.util.Base64.encode(JSON.stringify(result, null, 2));\n\n resultCallback(result, base64Content);\n }\n});\n\n/**\r\n * @class draw2d.io.json.Writer\r\n * Serialize the canvas document into a JSON object which can be read from the corresponding\r\n * {@link draw2d.io.json.Reader}.\r\n * \r\n * // Create a JSON writer and convert it into a JSON-String representation.\r\n * //\r\n * var writer = new draw2d.io.json.Writer();\r\n * writer.marshal(canvas, function(json){\r\n * // convert the json object into string representation\r\n * var jsonTxt = JSON.stringify(json,null,2);\r\n * \r\n * // insert the json string into a DIV for preview or post\r\n * // it via ajax to the server....\r\n * $(\"#json\").text(jsonTxt);\r\n * \r\n * });\r\n * \r\n *\r\n * \r\n * @author Andreas Herz\r\n * @extends draw2d.io.Writer\r\n */\n\n/***/ }),\n\n/***/ \"./src/io/png/Writer.js\":\n/*!******************************!*\\\n !*** ./src/io/png/Writer.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar canvg = __webpack_require__(/*! canvg-browser */ \"./node_modules/canvg-browser/index.js\"); /**\r\n * @class draw2d.io.png.Writer\r\n * Convert the canvas document into a PNG Image.\r\n *\r\n * // example how to create a PNG image and set an\r\n * // image src attribute.\r\n * //\r\n * var writer = new draw2d.io.png.Writer();\r\n * writer.marshal(canvas, function(png){\r\n * $(\"#preview\").attr(\"src\",png);\r\n * });\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.io.Writer\r\n */\n\n\n_packages2.default.io.png.Writer = _packages2.default.io.Writer.extend({\n\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Export the content to a PNG image. The result can be set as <b>src=\"....\"</b> because\r\n * the result is encoded as data source url <b>data:image/png;base64....</b>\r\n * <br>\r\n * <br>\r\n *\r\n * Method signature has been changed from version 2.10.1 to version 3.0.0.<br>\r\n * The parameter <b>resultCallback</b> is required and new. The method calls\r\n * the callback instead of return the result.\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Function} resultCallback the method to call on success. The first argument is the dataUrl, the second is the base64 formated png image\r\n * @param {String} resultCallback.img The image as data source url <b>data:image/png;base64....</b>\r\n * @param {String} resultCallback.base64 the image encoded in base64\r\n * @param {draw2d.geo.Rectangle} cropBoundingBox optional cropping/clipping bounding box\r\n */\n marshal: function marshal(canvas, resultCallback, cropBoundingBox) {\n // I change the API signature from version 2.10.1 to 3.0.0. Throw an exception\n // if any application not care about this changes.\n if (typeof resultCallback !== \"function\") {\n throw \"Writer.marshal method signature has been change from version 2.10.1 to version 3.0.0. Please consult the API documentation about this issue.\";\n }\n\n var svg = \"\";\n\n // the png.Writer can create Snapshots of a singel figure too.\n // Didn't work in IE <10\n // @status beta\n // @since 5.5.0\n if (canvas instanceof _packages2.default.Figure) {\n var origPos = canvas.getPosition();\n canvas.setPosition(1, 1);\n svg = \"<svg xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" >\" + canvas.shape.node.outerHTML + \"</svg>\";\n canvas.setPosition(origPos);\n canvas.initialWidth = canvas.getWidth() + 2;\n canvas.initialHeight = canvas.getHeight() + 2;\n }\n // create a snapshot of a complete canvas\n //\n else {\n canvas.hideDecoration();\n svg = canvas.getHtmlContainer().html().replace(/>\\s+/g, \">\").replace(/\\s+</g, \"<\");\n\n // add missing namespace for images in SVG if missing\n // depends on raphaelJS version\n if (svg.indexOf(\"http://www.w3.org/1999/xlink\") === -1) {\n svg = svg.replace(\"<svg \", \"<svg xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" \");\n }\n }\n\n // required for IE9 support.\n // The following table contains ready-to-use conditions to detec IE Browser versions\n //\n // IE versions Condition to check for\n // ------------------------------------------------------------\n // 10 or older document.all\n // 9 or older document.all && !window.atob\n // 8 or older document.all && !document.addEventListener\n // 7 or older document.all && !document.querySelector\n // 6 or older document.all && !window.XMLHttpRequest\n // 5.x document.all && !document.compatMode\n if (document.all) {\n svg = svg.replace(/xmlns=\\\"http:\\/\\/www\\.w3\\.org\\/2000\\/svg\\\"/, '');\n }\n\n var canvasDomNode = $('<canvas id=\"canvas_png_export_for_draw2d\" style=\"display:none\"></canvas>');\n $('body').append(canvasDomNode);\n var fullSizeCanvas = $(\"#canvas_png_export_for_draw2d\")[0];\n fullSizeCanvas.width = canvas.initialWidth;\n fullSizeCanvas.height = canvas.initialHeight;\n\n canvg(\"canvas_png_export_for_draw2d\", svg, {\n ignoreMouse: true,\n ignoreAnimation: true,\n renderCallback: function renderCallback() {\n try {\n if (canvas instanceof _packages2.default.Canvas) canvas.showDecoration();\n\n if (typeof cropBoundingBox !== \"undefined\") {\n var sourceX = cropBoundingBox.x;\n var sourceY = cropBoundingBox.y;\n var sourceWidth = cropBoundingBox.w;\n var sourceHeight = cropBoundingBox.h;\n\n var croppedCanvas = document.createElement('canvas');\n croppedCanvas.width = sourceWidth;\n croppedCanvas.height = sourceHeight;\n\n croppedCanvas.getContext(\"2d\").drawImage(fullSizeCanvas, sourceX, sourceY, sourceWidth, sourceHeight, 0, 0, sourceWidth, sourceHeight);\n\n var dataUrl = croppedCanvas.toDataURL(\"image/png\");\n var base64Image = dataUrl.replace(\"data:image/png;base64,\", \"\");\n resultCallback(dataUrl, base64Image);\n } else {\n var img = fullSizeCanvas.toDataURL(\"image/png\");\n resultCallback(img, img.replace(\"data:image/png;base64,\", \"\"));\n }\n } finally {\n canvasDomNode.remove();\n }\n }\n });\n }\n});\n\n/***/ }),\n\n/***/ \"./src/io/svg/Writer.js\":\n/*!******************************!*\\\n !*** ./src/io/svg/Writer.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.io.svg.Writer = _packages2.default.io.Writer.extend({\n\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Export the content of the canvas into SVG. The SVG document can be loaded with Inkscape or any other SVG Editor.\r\n * <br>\r\n * <br>\r\n * \r\n * Method signature has been changed from version 2.10.1 to version 3.0.0.<br>\r\n * The parameter <b>resultCallback</b> is required and new. The method calls\r\n * the callback instead of return the result.\r\n * \r\n * \r\n * @param {draw2d.Canvas} canvas the canvas to marshal\r\n * @param {Function} callback the method to call on success. The first argument is the SVG document\r\n * @param {String} callback.svg the SVG document\r\n * @param {String} callback.base64 the SVG document encoded in base64\r\n */\n marshal: function marshal(canvas, callback) {\n // I change the API signature from version 2.10.1 to 3.0.0. Throw an exception\n // if any application not care about this changes.\n if (typeof callback !== \"function\") {\n throw \"Writer.marshal method signature has been change from version 2.10.1 to version 3.0.0. Please consult the API documentation about this issue.\";\n }\n\n var s = canvas.getPrimarySelection();\n canvas.setCurrentSelection(null);\n var svg = canvas.getHtmlContainer().html().replace(/>\\s+/g, \">\").replace(/\\s+</g, \"<\");\n svg = this.formatXml(svg);\n svg = svg.replace(/<desc>.*<\\/desc>/g, \"<desc>Create with draw2d JS graph library and RaphaelJS</desc>\");\n\n canvas.setCurrentSelection(s);\n\n var base64Content = _packages2.default.util.Base64.encode(svg);\n callback(svg, base64Content);\n }\n});\n\n/**\r\n * @class draw2d.io.svg.Writer\r\n * \r\n * Serialize the canvas document into a SVG document.\r\n * \r\n * // Create a SVG writer and convert the canvas into a SVG document.\r\n * //\r\n * var writer = new draw2d.io.svg.Writer();\r\n * writer.marshal(canvas, function(svg){\r\n * // insert the svg string into a DIV for preview or post\r\n * // it via ajax to the server....\r\n * $(\"#svg\").text(svg);\r\n * });\r\n * \r\n *\r\n * \r\n * @author Andreas Herz\r\n * @extends draw2d.io.Writer\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/anchor/CenterEdgeConnectionAnchor.js\":\n/*!*********************************************************!*\\\n !*** ./src/layout/anchor/CenterEdgeConnectionAnchor.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.anchor.CenterEdgeConnectionAnchor = _packages2.default.layout.anchor.ConnectionAnchor.extend({\n\n NAME: \"draw2d.layout.anchor.CenterEdgeConnectionAnchor\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {draw2d.Figure} [owner] the figure to use for the anchor calculation\r\n */\n init: function init(owner) {\n this._super(owner);\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the location where the Connection should be anchored in\r\n * absolute coordinates. The anchor may use the given reference\r\n * Point to calculate this location.\r\n *\r\n * @param {draw2d.geo.Point} ref The reference Point in absolute coordinates\r\n * @param {draw2d.Connection} [inquiringConnection] the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The anchor's location\r\n */\n getLocation: function getLocation(ref, inquiringConnection) {\n var r = this.getOwner().getParent().getBoundingBox();\n\n var dir = r.getDirection(ref);\n var center = r.getCenter();\n\n switch (dir) {\n case 0:\n center.y = r.y;\n break;\n case 1:\n center.x = r.x + r.w;\n break;\n case 2:\n center.y = r.y + r.h;\n break;\n case 3:\n center.x = r.x;\n }\n\n return center;\n },\n\n /**\r\n * Returns the bounds of this Anchor's owner. Subclasses can\r\n * override this method to adjust the box. Maybe you return the box\r\n * of the port parent (the parent figure)\r\n *\r\n * @return {draw2d.geo.Rectangle} The bounds of this Anchor's owner\r\n */\n getBox: function getBox() {\n return this.getOwner().getParent().getBoundingBox();\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the bounds of this Anchor's owner. Subclasses can\r\n * override this method to adjust the box. Maybe you return the box\r\n * of the port parent (the parent figure)\r\n *\r\n * @param {draw2d.Connection} [inquiringConnection] the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The bounds of this Anchor's owner\r\n */\n getReferencePoint: function getReferencePoint(inquiringConnection) {\n return this.getBox().getCenter();\n }\n}); /**\r\n * @class draw2d.layout.anchor.CenterEdgeConnectionAnchor\r\n *\r\n * The CenterEdgeConnectionAnchor's location is found by calculating the intersection of a\r\n * line drawn from the center point of its owner's box (the parent of the\r\n * connection port) to a reference point on that box. A Connection using the\r\n * ChopBoxAnchor will be oriented such that they point to their port owner's\r\n * center.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.anchor.ConnectionAnchor\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/anchor/ChopboxConnectionAnchor.js\":\n/*!******************************************************!*\\\n !*** ./src/layout/anchor/ChopboxConnectionAnchor.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.anchor.ChopboxConnectionAnchor = _packages2.default.layout.anchor.ConnectionAnchor.extend({\n\n NAME: \"draw2d.layout.anchor.ChopboxConnectionAnchor\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {draw2d.Figure} owner the figure to use for the anchor calculation\r\n */\n init: function init(owner) {\n this._super(owner);\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the location where the Connection should be anchored in\r\n * absolute coordinates. The anchor may use the given reference\r\n * Point to calculate this location.\r\n *\r\n * @param {draw2d.geo.Point} reference The reference Point in absolute coordinates\r\n * @param {draw2d.Connection} [inquiringConnection] the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The anchor's location\r\n */\n getLocation: function getLocation(reference, inquiringConnection) {\n var r = new _packages2.default.geo.Rectangle(0, 0);\n r.setBounds(this.getBox());\n r.translate(-1, -1);\n r.resize(1, 1);\n\n var center = r.getCenter();\n\n if (r.isEmpty() || reference.x === center.x && reference.y === center.y) {\n return center; // This avoids divide-by-zero\n }\n\n var dx = reference.x - center.x;\n var dy = reference.y - center.y;\n\n // r.width, r.height, dx, and dy are guaranteed to be non-zero.\n var scale = 0.5 / Math.max(Math.abs(dx) / r.w, Math.abs(dy) / r.h);\n\n dx *= scale;\n dy *= scale;\n center.translate(dx, dy);\n\n return center;\n },\n\n /**\r\n * Returns the bounds of this Anchor's owner. Subclasses can\r\n * override this method to adjust the box. Maybe you return the box\r\n * of the port parent (the parent figure)\r\n *\r\n * @return {draw2d.geo.Rectangle} The bounds of this Anchor's owner\r\n */\n getBox: function getBox() {\n return this.getOwner().getParent().getBoundingBox();\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the reference point for this anchor in absolute coordinates. This might be used\r\n * by another anchor to determine its own location.\r\n *\r\n * @param {draw2d.Connection} [inquiringConnection] the connection who ask for the location.\r\n * @return {draw2d.geo.Point} The bounds of this Anchor's owner\r\n */\n getReferencePoint: function getReferencePoint(inquiringConnection) {\n return this.getBox().getCenter();\n }\n}); /**\r\n * @class draw2d.layout.anchor.ChopboxConnectionAnchor\r\n *\r\n * The ChopboxAnchor's location is found by calculating the intersection of a\r\n * line drawn from the center point of its owner's box (the parent of the\r\n * connection port) to a reference point on that box. A Connection using the\r\n * ChopBoxAnchor will be oriented such that they point to their port owner's\r\n * center.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.layout.anchor.ConnectionAnchor\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/anchor/ConnectionAnchor.js\":\n/*!***********************************************!*\\\n !*** ./src/layout/anchor/ConnectionAnchor.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.anchor.ConnectionAnchor = Class.extend({\n NAME: \"draw2d.layout.anchor.ConnectionAnchor\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {draw2d.Figure} owner the figure to use for the anchor calculation\r\n */\n init: function init(owner) {\n this.owner = owner;\n },\n\n /**\r\n * @method\r\n * Returns the location where the Connection should be anchored in absolute coordinates.\r\n * The anchor may use the given reference Point to calculate this location.\r\n *\r\n * @param {draw2d.geo.Point} reference the opposite reference point\r\n * @param {draw2d.Connection} inquiringConnection the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point}\r\n */\n getLocation: function getLocation(reference, inquiringConnection) {\n // return the center of the owner/port.\n return this.getReferencePoint(inquiringConnection);\n },\n\n /**\r\n * @method\r\n * Returns the Figure that contains this ConnectionAnchor.\r\n *\r\n * @return {draw2d.Figure} The Figure that contains this ConnectionAnchor\r\n */\n getOwner: function getOwner() {\n return this.owner;\n },\n\n /**\r\n * @method\r\n * Set the owner of the Anchor.\r\n *\r\n * @param {draw2d.Figure} owner the new owner of the anchor locator\r\n */\n setOwner: function setOwner(owner) {\n if (typeof owner === \"undefined\") {\n throw \"Missing parameter for 'owner' in ConnectionAnchor.setOwner\";\n }\n this.owner = owner;\n },\n\n /**\r\n * @method\r\n * Returns the bounds of this Anchor's owner. Subclasses can override this method\r\n * to adjust the box. Maybe you return the box of the port parent (the parent figure)\r\n *\r\n * @return {draw2d.geo.Rectangle} The bounds of this Anchor's owner\r\n */\n getBox: function getBox() {\n return this.getOwner().getAbsoluteBounds();\n },\n\n /**\r\n * @method\r\n * Returns the reference point for this anchor in absolute coordinates. This might be used\r\n * by another anchor to determine its own location.\r\n *\r\n * @param {draw2d.Connection} [inquiringConnection] the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The reference Point\r\n */\n getReferencePoint: function getReferencePoint(inquiringConnection) {\n return this.getOwner().getAbsolutePosition();\n }\n}); /**\r\n * @class draw2d.layout.anchor.ConnectionAnchor\r\n * An object to which a {@link draw2d.Connection} will be anchored.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/anchor/FanConnectionAnchor.js\":\n/*!**************************************************!*\\\n !*** ./src/layout/anchor/FanConnectionAnchor.js ***!\n \\**************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.anchor.FanConnectionAnchor = _packages2.default.layout.anchor.ConnectionAnchor.extend({\n\n NAME: \"draw2d.layout.anchor.FanConnectionAnchor\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {draw2d.Figure} owner the figure to use for the anchor calculation\r\n * @param {Number} [separation] the separation or fan distance between the concurrent/conflicting anchors\r\n */\n init: function init(owner, separation) {\n this._super(owner);\n\n if (separation) {\n this.separation = parseInt(separation);\n } else {\n this.separation = 10;\n }\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the location where the Connection should be anchored in\r\n * absolute coordinates. The anchor may use the given reference\r\n * Point to calculate this location.\r\n *\r\n * @param {draw2d.geo.Point} reference The reference Point in absolute coordinates\r\n * @param {draw2d.Connection} inquiringConnection the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The anchor's location\r\n */\n getLocation: function getLocation(reference, inquiringConnection) {\n\n var r = new _packages2.default.geo.Rectangle(0, 0);\n r.setBounds(this.getBox());\n r.translate(-1, -1);\n r.resize(1, 1);\n\n var center = r.getCenter();\n\n if (r.isEmpty() || reference.x === center.x && reference.y === center.y) {\n return center; // This avoids divide-by-zero\n }\n\n // translate the center if required\n //\n var s = inquiringConnection.getSource();\n var t = inquiringConnection.getTarget();\n var lines = this.getOwner().getConnections().clone();\n lines.grep(function (other) {\n return other.getTarget() === t && other.getSource() === s || other.getTarget() === s && other.getSource() === t;\n });\n var index = lines.indexOf(inquiringConnection) + 1;\n var position = center.getPosition(reference);\n var ray = void 0;\n if (position === _packages2.default.geo.PositionConstants.SOUTH || position === _packages2.default.geo.PositionConstants.EAST) {\n ray = new _packages2.default.geo.Point(reference.x - center.x, reference.y - center.y);\n } else {\n ray = new _packages2.default.geo.Point(center.x - reference.x, center.y - reference.y);\n }\n var length = Math.sqrt(ray.x * ray.x + ray.y * ray.y);\n if (index <= 2) {\n length *= 1.5;\n }\n var xSeparation = this.separation * ray.x / length;\n var ySeparation = this.separation * ray.y / length;\n if (index % 2 === 0) {\n center = new _packages2.default.geo.Point(center.x + index / 2 * (-1 * ySeparation), center.y + index / 2 * xSeparation);\n } else {\n center = new _packages2.default.geo.Point(center.x + index / 2 * ySeparation, center.y + index / 2 * (-1 * xSeparation));\n }\n\n var intersections = this.getBox().intersectionWithLine(center, reference);\n // perfect - one intersection mean that the shifted center point is inside the bounding box and has only one intersection with it.\n //\n switch (intersections.getSize()) {\n case 0:\n // calculate the edge of the bounding box which is nearest to the reference point\n //\n var v = this.getBox().getVertices();\n var first = v.first();\n first.distance = reference.distance(first);\n return v.asArray().reduce(function (previous, current) {\n current.distance = reference.distance(current);\n return current.distance < previous.distance ? current : previous;\n });\n case 1:\n return intersections.get(0);\n case 2:\n // get the nearest of these points\n var p0 = intersections.get(0);\n var p1 = intersections.get(1);\n var p0diff = reference.distance(p0);\n var p1diff = reference.distance(p1);\n if (p0diff < p1diff) {\n return p0;\n }\n return p1;\n }\n\n // we have 0 or 2 intersections with the bounding box. This means the shifted\n // calculate the intersection if the new \"center\" with the bounding box of the\n // shape (if any exists)\n },\n\n /**\r\n * Returns the bounds of this Anchor's owner. Subclasses can\r\n * override this method to adjust the box. Maybe you return the box\r\n * of the port parent (the parent figure)\r\n *\r\n * @return {draw2d.geo.Rectangle} The bounds of this Anchor's owner\r\n */\n getBox: function getBox() {\n return this.getOwner().getParent().getBoundingBox();\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the reference point for this anchor in absolute coordinates. This might be used\r\n * by another anchor to determine its own location.\r\n *\r\n * @param {draw2d.Connection} inquiringConnection the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The bounds of this Anchor's owner\r\n */\n getReferencePoint: function getReferencePoint(inquiringConnection) {\n return this.getBox().getCenter();\n }\n}); /**\r\n * @class draw2d.layout.anchor.FanConnectionAnchor\r\n *\r\n * The FanConnectionAnchor's location is found by calculating the intersection of a\r\n * line drawn from the center point of its owner's box (the parent of the\r\n * connection port) to a reference point on that box.\r\n * Additional the anchor resolves conflicts by spread the anchor if more than one\r\n * connection has the same reference point. <br>\r\n * In a case of a DirectRouter parallel connections are the result.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @since 4.6.0\r\n * @extends draw2d.layout.anchor.ConnectionAnchor\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/anchor/ShortesPathConnectionAnchor.js\":\n/*!**********************************************************!*\\\n !*** ./src/layout/anchor/ShortesPathConnectionAnchor.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.anchor.ShortesPathConnectionAnchor = _packages2.default.layout.anchor.ConnectionAnchor.extend({\n\n NAME: \"draw2d.layout.anchor.ShortesPathConnectionAnchor\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {draw2d.Figure} [owner] the figure to use for the anchor calculation\r\n */\n init: function init(owner) {\n this._super(owner);\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the location where the Connection should be anchored in\r\n * absolute coordinates. The anchor may use the given reference\r\n * Point to calculate this location.\r\n *\r\n * @param {draw2d.geo.Point} ref The reference Point in absolute coordinates\r\n * @param {draw2d.Connection} inquiringConnection the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The anchor's location\r\n */\n getLocation: function getLocation(ref, inquiringConnection) {\n var r = this.getOwner().getParent().getBoundingBox();\n var center = r.getCenter();\n\n // check if we can calculate with a circle/line intersection\n //\n if (this.getOwner().getParent() instanceof _packages2.default.shape.basic.Oval) {\n var result = this.getOwner().getParent().intersectionWithLine(ref, center);\n if (result.getSize() === 1) {\n return result.get(0);\n }\n }\n\n /* 0 | 1 | 2\r\n * __|___|__\r\n * 7 | 8 | 3\r\n * __|___|__\r\n * 6 | 5 | 4\r\n */\n var octant = r.determineOctant(new _packages2.default.geo.Rectangle(ref.x, ref.y, 2, 2));\n\n switch (octant) {\n case 0:\n return r.getTopLeft();\n case 1:\n return new _packages2.default.geo.Point(ref.x, r.getTop());\n case 2:\n return r.getTopRight();\n case 3:\n return new _packages2.default.geo.Point(r.getRight(), ref.y);\n case 4:\n return r.getBottomRight();\n case 5:\n return new _packages2.default.geo.Point(ref.x, r.getBottom());\n case 6:\n return r.getBottomLeft();\n case 7:\n return new _packages2.default.geo.Point(r.getLeft(), ref.y);\n }\n\n return r.getTopLeft();\n },\n\n /**\r\n * Returns the bounds of this Anchor's owner. Subclasses can\r\n * override this method to adjust the box. Maybe you return the box\r\n * of the port parent (the parent figure)\r\n *\r\n * @return {draw2d.geo.Rectangle} The bounds of this Anchor's owner\r\n */\n getBox: function getBox() {\n return this.getOwner().getParent().getBoundingBox();\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the bounds of this Anchor's owner. Subclasses can\r\n * override this method to adjust the box. Maybe you return the box\r\n * of the port parent (the parent figure)\r\n *\r\n * @param {draw2d.Connection} inquiringConnection the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The bounds of this Anchor's owner\r\n */\n getReferencePoint: function getReferencePoint(inquiringConnection) {\n return this.getBox().getCenter();\n }\n}); /**\r\n * @class draw2d.layout.anchor.ShortesPathConnectionAnchor\r\n *\r\n * The ChopboxAnchor's location is found by calculating the intersection of a\r\n * line drawn from the center point of its owner's box (the parent of the\r\n * connection port) to a reference point on that box. A Connection using the\r\n * ChopBoxAnchor will be oriented such that they point to their port owner's\r\n * center.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.layout.anchor.ConnectionAnchor\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/CircuitConnectionRouter.js\":\n/*!**********************************************************!*\\\n !*** ./src/layout/connection/CircuitConnectionRouter.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.CircuitConnectionRouter = _packages2.default.layout.connection.ManhattanConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.CircuitConnectionRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n\n this.setBridgeRadius(4);\n this.setVertexRadius(2);\n\n // experimental\n this.abortRoutingOnFirstVertexNode = false;\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been removed from the connection. In the case of the CircuitRouter\r\n * all vertex nodes will be removed from the canvas.\r\n *\r\n * @param {draw2d.Connection} connection The related connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onUninstall: function onUninstall(connection) {\n if (typeof connection.vertexNodes !== \"undefined\" && connection.vertexNodes !== null) {\n connection.vertexNodes.remove();\n connection.vertexNodes = null;\n }\n },\n\n /**\r\n * @method\r\n * Set the radius of the vertex circle.\r\n *\r\n * @param {Number} radius\r\n */\n setVertexRadius: function setVertexRadius(radius) {\n this.vertexRadius = radius;\n\n return this;\n },\n /** deprecated\r\n * @private\r\n * **/\n setJunctionRadius: function setJunctionRadius(radius) {\n this.vertexRadius = radius;\n },\n\n /**\r\n * @method\r\n * Set the radius or span of the bridge. A bridge will be drawn if two connections are crossing and didn't have any\r\n * common port.\r\n *\r\n * @param {Number} radius\r\n */\n setBridgeRadius: function setBridgeRadius(radius) {\n this.bridgeRadius = radius;\n this.bridge_LR = [\" r\", 0.5, -0.5, radius - radius / 2, -(radius - radius / 4), radius, -radius, radius + radius / 2, -(radius - radius / 4), radius * 2, \"0 \"].join(\" \");\n this.bridge_RL = [\" r\", -0.5, -0.5, -(radius - radius / 2), -(radius - radius / 4), -radius, -radius, -(radius + radius / 2), -(radius - radius / 4), -radius * 2, \"0 \"].join(\" \");\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(conn, routingHints) {\n var _this = this;\n\n var fromPt = conn.getStartPoint();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPoint();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n // calculate the lines between the two points with the standard ManhattanRouter.\n //\n this._route(conn, toPt, toDir, fromPt, fromDir);\n\n // get the intersections to the other connections\n //\n var intersectionsASC = conn.getCanvas().getIntersection(conn).sort(\"x\");\n var intersectionsDESC = intersectionsASC.clone().reverse();\n\n var intersectionForCalc = intersectionsASC;\n\n // add a ArrayList of all added vertex nodes to the connection\n //\n if (typeof conn.vertexNodes !== \"undefined\" && conn.vertexNodes !== null) {\n conn.vertexNodes.remove();\n }\n conn.vertexNodes = conn.canvas.paper.set();\n\n // ATTENTION: we cast all x/y coordinates to integer and add 0.5 to avoid subpixel rendering of\n // the connection. The 1px or 2px lines look much clearer than before.\n //\n var ps = conn.getVertices();\n var p = ps.get(0);\n var path = [\"M\", (p.x | 0) + 0.5, \" \", (p.y | 0) + 0.5];\n\n var oldP = p;\n var bridgeWidth = null;\n var bridgeCode = null;\n\n var lastVertexNode = null;\n\n for (var i = 1; i < ps.getSize(); i++) {\n p = ps.get(i);\n\n // line goes from right->left.\n if (oldP.x > p.x) {\n intersectionForCalc = intersectionsDESC;\n bridgeCode = this.bridge_RL;\n bridgeWidth = -this.bridgeRadius;\n }\n // line goes from left->right\n else {\n intersectionForCalc = intersectionsASC;\n bridgeCode = this.bridge_LR;\n bridgeWidth = this.bridgeRadius;\n }\n\n // add a bridge or a vertex node depending to the intersection connection\n //\n // bridge => the connections didn't have a common port\n // vertex => the connections did have a common source or target port\n //\n intersectionForCalc.each(function (ii, interP) {\n if (_packages2.default.shape.basic.Line.hit(1, oldP.x, oldP.y, p.x, p.y, interP.x, interP.y) === true) {\n\n // It is a vertex node..\n //\n if (conn.sharingPorts(interP.other)) {\n var other = interP.other;\n var otherZ = other.getZOrder();\n var connZ = conn.getZOrder();\n if (connZ < otherZ) {\n var vertexNode = conn.canvas.paper.ellipse(interP.x, interP.y, _this.vertexRadius, _this.vertexRadius).attr({ fill: conn.lineColor.rgba() });\n conn.vertexNodes.push(vertexNode);\n // we found a vertex node. In this case an already existing connection did draw the connection.\n //\n if (_this.abortRoutingOnFirstVertexNode === true) {\n if (conn.getSource() === other.getSource() || conn.getSource() === other.getTarget()) {\n path = [\"M\", (interP.x | 0) + 0.5, \" \", (interP.y | 0) + 0.5];\n if (lastVertexNode !== null) {\n lastVertexNode.remove();\n conn.vertexNodes.exclude(lastVerteNode);\n }\n }\n lastVertexNode = vertexNode;\n }\n }\n }\n // ..or a bridge. We draw only horizontal bridges. Just a design decision\n //\n else if (p.y === interP.y) {\n path.push(\" L\", (interP.x - bridgeWidth | 0) + 0.5, \" \", (interP.y | 0) + 0.5);\n path.push(bridgeCode);\n }\n }\n });\n\n path.push(\" L\", (p.x | 0) + 0.5, \" \", (p.y | 0) + 0.5);\n oldP = p;\n }\n conn.svgPathString = path.join(\"\");\n }\n}); /**\r\n * @class draw2d.layout.connection.CircuitConnectionRouter\r\n *\r\n * Provides a {@link draw2d.Connection} with an orthogonal route between the Connection's source\r\n * and target anchors.\r\n * <br>\r\n * Additional a <b>bridge</b> is added to each connection which didn't have a common source or target\r\n * port.<br>\r\n * A <b>dot</b> is added at the crossing if the two connections have a common spurce or target port.\r\n *\r\n * <br>\r\n *\r\n * @example preview small frame\r\n *\r\n * let createConnection=function(){\r\n * let con = new draw2d.Connection();\r\n * con.setRouter(new draw2d.layout.connection.CircuitConnectionRouter());\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let f1 = new draw2d.shape.analog.OpAmp({x:10, y:10});\r\n * let f2 = new draw2d.shape.analog.ResistorVertical({angle:90, height:20, x:300, y:150});\r\n * let f3 = new draw2d.shape.analog.ResistorVertical({x:250, y:70});\r\n * let f4 = new draw2d.shape.analog.ResistorVertical({x:10, y:90});\r\n *\r\n * // ...add it to the canvas\r\n * //\r\n * canvas.add( f1);\r\n * canvas.add( f2);\r\n * canvas.add( f3);\r\n * canvas.add( f4);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(f1.getOutputPort(0));\r\n * c.setTarget(f2.getHybridPort(0));\r\n * canvas.add(c);\r\n *\r\n * // second Connection between the other resistors\r\n * //\r\n * c = createConnection();\r\n * c.setSource(f3.getHybridPort(1));\r\n * c.setTarget(f4.getHybridPort(0));\r\n * canvas.add(c);\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ManhattanConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/ConnectionRouter.js\":\n/*!***************************************************!*\\\n !*** ./src/layout/connection/ConnectionRouter.js ***!\n \\***************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.ConnectionRouter = Class.extend({\n NAME: \"draw2d.layout.connection.ConnectionRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n * Routes the Connection.\r\n *\r\n * @param {draw2d.Connection} connection The Connection to route\r\n * @param {Object} [routingHints] some helper attributes for the router\r\n * @param {Boolean} [routingHints.startMoved] is true if just the start location has moved\r\n * @param {Boolean} [routingHints.endMoved] is true if the destination location has changed\r\n * @param {draw2d.util.ArrayList} [routingHints.oldVertices] the vertices before the reroute has been triggered\r\n *\r\n * @template\r\n */\n route: function route(connection, routingHints) {\n throw \"subclasses must implement the method [ConnectionRouter.route]\";\n },\n\n _paint: function _paint(conn) {\n // calculate the path string for the SVG rendering\n // Important: to avoid subpixel error rendering we add 0.5 to each coordinate\n // With this offset the canvas can paint the line on a \"full pixel\" instead\n // of subpixel rendering.\n // let adjust = val => (val| 0) +0.5\n var adjust = function adjust(val) {\n return val;\n };\n\n var ps = conn.getVertices();\n var p = ps.get(0);\n var radius = conn.getRadius();\n var path = [\"M\", adjust(p.x), \" \", adjust(p.y)];\n var i = 1;\n var length = void 0,\n inset = void 0,\n p2 = void 0;\n if (radius > 0) {\n var lastP = p;\n length = ps.getSize() - 1;\n for (; i < length; i++) {\n p = ps.get(i);\n inset = _packages2.default.geo.Util.insetPoint(p, lastP, radius);\n path.push(\"L\", adjust(inset.x), \",\", adjust(inset.y));\n\n p2 = ps.get(i + 1);\n inset = _packages2.default.geo.Util.insetPoint(p, p2, radius);\n\n path.push(\"Q\", p.x, \",\", p.y, \" \", adjust(inset.x), \", \", adjust(inset.y));\n lastP = p;\n }\n p = ps.get(i);\n path.push(\"L\", adjust(p.x), \",\", adjust(p.y));\n } else {\n length = ps.getSize();\n for (; i < length; i++) {\n p = ps.get(i);\n path.push(\"L\", adjust(p.x), \",\", adjust(p.y));\n }\n }\n conn.svgPathString = path.join(\"\");\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {},\n\n /**\r\n * @method\r\n * Callback method if the router has been removed from the connection.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} connection The related connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onUninstall: function onUninstall(connection) {},\n\n /**\r\n * @method\r\n * Callback method for the PolyLine or Connection to check if it possible to remove a vertex from\r\n * the list. The router can send an veto for this.\r\n * Per default it is not possible to remove any vertex from the PolyLine exceptional if any interactive\r\n * router is installed.\r\n *\r\n * @param {Number} index\r\n * @since 4.2.3\r\n */\n canRemoveVertexAt: function canRemoveVertexAt(index) {\n return false;\n },\n\n /**\r\n * Callback method for the PolyLine or Connection to verify that a segment is deletable.\r\n *\r\n * @param {Number} index\r\n * @returns {Boolean}\r\n * @since 4.2.3\r\n */\n canRemoveSegmentAt: function canRemoveSegmentAt(index) {\n return false;\n },\n\n /**\r\n * @method\r\n * Tweak or enrich the polyline persistence data with routing information\r\n *\r\n * @since 2.10.0\r\n * @param {draw2d.shape.basic.PolyLine} line\r\n * @param {Object} memento The memento data of the polyline\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes(line, memento) {\n return memento;\n },\n\n /**\r\n * @method\r\n * set the attributes for the polyline with routing information\r\n *\r\n * @since 2.10.0\r\n * @param {draw2d.shape.basic.Line} line\r\n * @param {Object} memento the JSON data to read\r\n */\n setPersistentAttributes: function setPersistentAttributes(line, memento) {},\n\n /**\r\n * @method\r\n *\r\n * The draw2d.Connection delegates the drag operation to the router. The router can\r\n * handle the different constraints of the connection.\r\n *\r\n * @param {draw2d.shape.basic.Line} line\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n */\n onDrag: function onDrag(line, dx, dy, dx2, dy2) {},\n\n /**\r\n * @method\r\n * Called by the connection if the vertices set outside.\r\n * This enforce the router to avoid full autoroute. E.g. InteractiveManhattanRouter\r\n *\r\n * @protected\r\n * @param {draw2d.shape.basic.Line} line\r\n */\n verticesSet: function verticesSet(line) {}\n\n}); /**\r\n * @class draw2d.layout.connection.ConnectionRouter\r\n * Routes a {@link draw2d.Connection}, possibly using a constraint.\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/DirectRouter.js\":\n/*!***********************************************!*\\\n !*** ./src/layout/connection/DirectRouter.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.DirectRouter = _packages2.default.layout.connection.ConnectionRouter.extend({\n\n NAME: \"draw2d.layout.connection.DirectRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * Invalidates the given Connection\r\n */\n invalidate: function invalidate() {},\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(connection, routingHints) {\n var start = connection.getStartPosition();\n var end = connection.getEndPosition();\n\n // required for hit tests\n //\n connection.addPoint(start);\n connection.addPoint(end);\n\n // calculate the path\n var path = [\"M\", start.x, \" \", start.y];\n path.push(\"L\", end.x, \" \", end.y);\n\n connection.svgPathString = path.join(\"\");\n }\n}); /**\r\n * @class draw2d.layout.connection.DirectRouter\r\n *\r\n * Router for direct connections between two ports. Beeline\r\n * <br>\r\n * <br>\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let createConnection=function(){\r\n * let con = new draw2d.Connection();\r\n * con.setRouter(new draw2d.layout.connection.DirectRouter());\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * let end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/FanConnectionRouter.js\":\n/*!******************************************************!*\\\n !*** ./src/layout/connection/FanConnectionRouter.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.FanConnectionRouter = _packages2.default.layout.connection.DirectRouter.extend({\n NAME: \"draw2d.layout.connection.FanConnectionRouter\",\n\n /**\r\n * @constructor Creates a new Router object.\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * Layout the hands over connection in a manhattan like layout\r\n *\r\n * @param {draw2d.Connection} conn\r\n * @param {draw2d.util.ArrayList} oldVertices old/existing vertices of the Connection\r\n * @param {Object} routingHints some helper attributes for the router\r\n * @param {Boolean} routingHints.startMoved is true if just the start location has moved\r\n * @param {Boolean} routingHints.destMoved is true if the destination location has changed\r\n */\n route: function route(conn, routingHints) {\n var lines = conn.getSource().getConnections().clone();\n lines.grep(function (other) {\n return other.getTarget() === conn.getTarget() || other.getSource() === conn.getTarget();\n });\n\n if (lines.getSize() > 1) {\n this.routeCollision(conn, lines.indexOf(conn));\n } else {\n this._super(conn, routingHints);\n }\n },\n\n /**\r\n * @method\r\n * route the connection if connections overlap. Two connections overlap if the combination\r\n * of source and target anchors are equal.\r\n *\r\n * @param {draw2d.Connection} conn\r\n * @param {Number} index\r\n */\n routeCollision: function routeCollision(conn, index) {\n index = index + 1;\n var start = conn.getStartPoint();\n var end = conn.getEndPoint();\n\n var separation = 15;\n\n var midPoint = new _packages2.default.geo.Point((end.x + start.x) / 2, (end.y + start.y) / 2);\n var position = end.getPosition(start);\n var ray = void 0;\n if (position === _packages2.default.geo.PositionConstants.SOUTH || position === _packages2.default.geo.PositionConstants.EAST) {\n ray = new _packages2.default.geo.Point(end.x - start.x, end.y - start.y);\n } else {\n ray = new _packages2.default.geo.Point(start.x - end.x, start.y - end.y);\n }\n\n var length = Math.sqrt(ray.x * ray.x + ray.y * ray.y);\n\n var xSeparation = separation * ray.x / length;\n var ySeparation = separation * ray.y / length;\n\n var bendPoint = void 0;\n\n if (index % 2 === 0) {\n bendPoint = new _packages2.default.geo.Point(midPoint.x + index / 2 * (-1 * ySeparation), midPoint.y + index / 2 * xSeparation);\n } else {\n bendPoint = new _packages2.default.geo.Point(midPoint.x + index / 2 * ySeparation, midPoint.y + index / 2 * (-1 * xSeparation));\n }\n\n // required for hit tests\n conn.addPoint(start);\n conn.addPoint(bendPoint);\n conn.addPoint(end);\n\n // calculate the path string for the SVG rendering\n //\n this._paint(conn);\n }\n\n}); /**\r\n * @class draw2d.layout.connection.FanConnectionRouter\r\n *\r\n * Automatic router that spreads its {@link draw2d.Connection Connections} in a fan-like fashion upon collision.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let createConnection=function(){\r\n * // return my special kind of connection\r\n * let con = new draw2d.Connection({\r\n * radius: 14,\r\n * router: new draw2d.layout.connection.FanConnectionRouter()\r\n * });\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * let end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n * // second Connection\r\n * //\r\n * c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n * // third Connection\r\n * //\r\n * c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.DirectRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/InteractiveManhattanConnectionRouter.js\":\n/*!***********************************************************************!*\\\n !*** ./src/layout/connection/InteractiveManhattanConnectionRouter.js ***!\n \\***********************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.layout.connection.InteractiveManhattanConnectionRouter\r\n * Route the connection in an Manhattan style and add resize handles to all vertex for interactive alignment of the\r\n * routing.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let createConnection=function(){\r\n * // return my special kind of connection\r\n * let con = new draw2d.Connection({\r\n * radius: 4,\r\n * router: new draw2d.layout.connection.InteractiveManhattanConnectionRouter()\r\n * });\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * let end = new draw2d.shape.node.End();\r\n\r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n * // select the connection to show the selection handles\r\n * //\r\n * c.select();\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @since 4.0.2\r\n * @extends draw2d.layout.connection.ManhattanConnectionRouter\r\n */\n_packages2.default.layout.connection.InteractiveManhattanConnectionRouter = _packages2.default.layout.connection.ManhattanConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.InteractiveManhattanConnectionRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n onInstall: function onInstall(conn) {\n conn.installEditPolicy(new _packages2.default.policy.line.OrthogonalSelectionFeedbackPolicy());\n if (!conn._routingMetaData) {\n conn._routingMetaData = {\n routedByUserInteraction: false,\n fromDir: -1,\n toDir: -1\n };\n }\n },\n\n onUninstall: function onUninstall(conn) {\n delete conn._routingMetaData;\n },\n\n /**\r\n * @inheritDoc\r\n */\n route: function route(conn, routingHints) {\n if (!routingHints.oldVertices) {\n debugger;\n }\n if (routingHints.oldVertices.getSize() === 0 || conn._routingMetaData.routedByUserInteraction === false) {\n this._super(conn, routingHints);\n conn._routingMetaData.fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n conn._routingMetaData.toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n } else {\n this.halfRoute(conn, routingHints);\n this._paint(conn);\n }\n },\n\n /**\r\n * @method\r\n * The routing algorithm if the user has changed at least on of the vertices manually.\r\n * This kind of routing just align the start and end vertices to the new source/target port\r\n * location.\r\n * The vertices between keep untouched. Modification of this vertices are done by the\r\n * draw2d.policy.line.OrthogonalSelectionFeedbackPolicy\r\n *\r\n * @param {draw2d.Connection} conn the connection to route\r\n * @param {Object} routingHints some helper attributes for the router\r\n * @param {Boolean} routingHints.startMoved is true if just the start location has moved\r\n * @param {Boolean} routingHints.endMoved is true if the destination location has changed\r\n */\n halfRoute: function halfRoute(conn, routingHints) {\n var MINDIST = this.MINDIST;\n var max = Math.max;\n var min = Math.min;\n\n routingHints = routingHints || { oldVertices: new _packages2.default.util.ArrayList() };\n var oldVertices = routingHints.oldVertices;\n var vertexCount = oldVertices.getSize();\n\n var fromPt = conn.getStartPosition();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPosition();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n // the port orientation has been changed. This can happen if the node rotates. In this case\n // we must recalculate the routing.\n if (conn._routingMetaData.fromDir !== fromDir || conn._routingMetaData.toDir !== toDir) {\n conn._routingMetaData.routedByUserInteraction = false;\n this.route(conn, routingHints);\n }\n\n // TODO: detection for switch back to autoroute isn't good enough.\n // Add more logic. e.g. if the fromDir!==1. This happens if\n // The ports are at bottom and top.\n // The code below covers only the classic workflow configuration left->right\n //\n // go back to the default if no routing is possible anymore\n //\n if (fromDir === _packages2.default.geo.Rectangle.DIRECTION_RIGHT && toDir === _packages2.default.geo.Rectangle.DIRECTION_LEFT && fromPt.x > toPt.x && vertexCount <= 4) {\n\n conn._routingMetaData.routedByUserInteraction = false;\n this.route(conn, routingHints);\n }\n // it makes no sense to have just 2 vertices and manual routing for Manhattan-style routing\n else if (conn.getVertices().getSize() === 2 && conn._routingMetaData.routedByUserInteraction === true) {\n conn._routingMetaData.routedByUserInteraction = false;\n this.route(conn, routingHints);\n }\n\n // transfer the old vertices into the connection\n //\n oldVertices.each(function (i, vertex) {\n conn.addPoint(vertex);\n });\n\n // all points are adjusted with the drag&drop operation. There is no need to move\n // start/end points twice\n if (conn.isInDragDrop) {\n return;\n }\n\n // The SOURCE port (labeled with p0) has been moved/changed.\n //\n if (routingHints.startMoved || !fromPt.equals(oldVertices.get(0))) {\n var p1 = oldVertices.get(1);\n var p2 = oldVertices.get(2);\n conn.setVertex(0, fromPt);\n switch (fromDir) {\n // .\n // p0 . p1\n // x------+\n // .\n // .\n //\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n conn.setVertex(1, max(fromPt.x + MINDIST, p1.x), fromPt.y); // p1\n conn.setVertex(2, max(fromPt.x + MINDIST, p1.x), p2.y); // p2\n break;\n // .\n // . p1 p0\n // +------x\n // .\n // .\n //\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n conn.setVertex(1, min(fromPt.x - MINDIST, p1.x), fromPt.y); // p1\n conn.setVertex(2, min(fromPt.x - MINDIST, p1.x), p2.y); // p2\n break;\n // ...+....\n // p1 |\n // |\n // |\n // p0 x\n //\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n conn.setVertex(1, fromPt.x, min(fromPt.y - MINDIST, p1.y)); // p1\n conn.setVertex(2, p2.x, min(fromPt.y - MINDIST, p1.y)); // p2\n break;\n // x\n // p0 |\n // |\n // p1 |\n // ....+....\n //\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n conn.setVertex(1, fromPt.x, max(fromPt.y + MINDIST, p1.y)); // p1\n conn.setVertex(2, p2.x, max(fromPt.y + MINDIST, p1.y)); // p2\n break;\n }\n }\n //////////////////////////////////////////////////////////////////\n // the TARGET port (labeled with p0) has moved\n //\n if (routingHints.endMoved || !toPt.equals(oldVertices.get(vertexCount - 1))) {\n var _p = oldVertices.get(vertexCount - 2);\n var _p2 = oldVertices.get(vertexCount - 3);\n conn.setVertex(vertexCount - 1, toPt); // p0\n\n switch (toDir) {\n // .\n // p0 . p1\n // x----------+\n // .\n // .\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n conn.setVertex(vertexCount - 2, max(toPt.x + MINDIST, _p.x), toPt.y); // p1\n conn.setVertex(vertexCount - 3, max(toPt.x + MINDIST, _p.x), _p2.y); // p2\n break;\n\n // .\n // .\n // . p1 p0\n // +----------x\n // .\n // .\n //\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n conn.setVertex(vertexCount - 2, min(toPt.x - MINDIST, _p.x), toPt.y); // p1\n conn.setVertex(vertexCount - 3, min(toPt.x - MINDIST, _p.x), _p2.y); // p2\n break;\n\n // ...+....\n // p1 |\n // |\n // |\n // p0 x\n //\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n conn.setVertex(vertexCount - 2, toPt.x, min(toPt.y - MINDIST, _p.y)); // p1\n conn.setVertex(vertexCount - 3, _p2.x, min(toPt.y - MINDIST, _p.y)); // p2\n break;\n\n // +\n // p0 |\n // |\n // p1 |\n // ...+...\n //\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n conn.setVertex(vertexCount - 2, toPt.x, max(toPt.y + MINDIST, _p.y)); // p1\n conn.setVertex(vertexCount - 3, _p2.x, max(toPt.y + MINDIST, _p.y)); // p2\n break;\n }\n }\n },\n\n /**\r\n * Callback method for the PolyLine or Connection to verify that a segment is deletable.\r\n * @param {draw2d.Connection} conn\r\n * @param {Number} index\r\n *\r\n * @returns {Boolean}\r\n * @since 4.2.3\r\n */\n canRemoveSegmentAt: function canRemoveSegmentAt(conn, index) {\n\n var segmentCount = conn.getVertices().getSize() - 1; // segmentCount is one less than vertex count\n\n // The first and last segment isn't deletable\n //\n if (index <= 0 || index + 1 >= segmentCount) {\n return false;\n }\n\n // a connection need at least three strokes\n //\n if (segmentCount < 4) {\n return false;\n }\n\n var fromPt = conn.getStartPosition();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPosition();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n if (segmentCount <= 5) {\n // ___\n // | | From\n // | 1 |-----+\n // |___| |\n // |\n // +----------+\n // |\n // | ___\n // | | |\n // +---| 2 | To\n // |___|\n // the connection needs at least 5 segments if the routing is like this\n //\n if (fromDir === _packages2.default.geo.Rectangle.DIRECTION_RIGHT && toDir === _packages2.default.geo.Rectangle.DIRECTION_LEFT && fromPt.x >= toPt.x) {\n return false;\n }\n\n // ___\n // | | To\n // | 2 |-----+\n // |___| |\n // |\n // +----------+\n // |\n // | ___\n // | | |\n // +---| 1 | From\n // |___|\n // the connection needs at least 5 segments if the routing is like this\n //\n if (fromDir == _packages2.default.geo.Rectangle.DIRECTION_LEFT & toDir == _packages2.default.geo.Rectangle.DIRECTION_RIGHT && fromPt.x <= toPt.x) {\n return false;\n }\n\n // ___\n // +_______ | |\n // | from | | 2 |\n // _+_ | |___|\n // | | | To +\n // | 1 | |____________|\n // |___|\n // the connection needs at least 5 segments if the routing is like this\n //\n if (fromDir == _packages2.default.geo.Rectangle.DIRECTION_UP & toDir == _packages2.default.geo.Rectangle.DIRECTION_DOWN && fromPt.y <= toPt.y) {\n return false;\n }\n\n // ___\n // +_______ | |\n // | to | | 1 |\n // _+_ | |___|\n // | | | from +\n // | 2 | |____________|\n // |___|\n // the connection needs at least 5 segments if the routing is like this\n //\n if (fromDir == _packages2.default.geo.Rectangle.DIRECTION_DOWN & toDir == _packages2.default.geo.Rectangle.DIRECTION_UP && fromPt.y >= toPt.y) {\n return false;\n }\n\n // unable to make the decision on the easy way. calculate the route again with an\n // temporary connection and check if the segment count of the new routed connection\n // allows a removal\n //\n var tmpConn = new _packages2.default.Connection();\n tmpConn.lineSegments = new _packages2.default.util.ArrayList();\n tmpConn.vertices = new _packages2.default.util.ArrayList();\n tmpConn.sourcePort = conn.sourcePort;\n tmpConn.targetPort = conn.targetPort;\n tmpConn._routingMetaData = { routedByUserInteraction: false, fromDir: -1, toDir: -1 };\n this.route(tmpConn, { oldVertices: new _packages2.default.util.ArrayList() });\n var curSegmentCount = conn.getVertices().getSize() - 1;\n var minSegmentCount = tmpConn.getVertices().getSize() - 1;\n if (curSegmentCount <= minSegmentCount) {\n return false;\n }\n }\n\n return true;\n },\n\n /**\r\n * @method\r\n *\r\n * The draw2d.Connection delegates the drag operation to the router. The router can\r\n * handle the different constraints of the connection and just drag&drop a single segment\r\n * instead of the complete connection.\r\n *\r\n * @param {draw2d.shape.basic.Line} line the related line to handle\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n *\r\n * @since 6.1.0\r\n */\n onDrag: function onDrag(line, dx, dy, dx2, dy2) {\n var i = 0;\n // Connection is dragged by source and origin port movement\n // or MultiSelection in this case we drag the complete\n // connection\n if (line.draggedSegment === null) {\n var count = line.getVertices().getSize() - 1;\n for (i = 1; i < count; i++) {\n line.getVertex(i).translate(dx2, dy2);\n }\n return;\n }\n\n // don't drag start/end segments. This segments are bounded to the related\n // ports.\n if (line.draggedSegment.index === 0 || line.draggedSegment.index === line.getSegments().getSize() - 1) {\n return;\n }\n\n line._routingMetaData.routedByUserInteraction = true;\n\n var p0 = line.draggedSegment.start;\n var p1 = line.draggedSegment.end;\n i = line.draggedSegment.index;\n var lp0 = line.getVertices().first();\n var lp1 = line.getVertices().last();\n\n // horizontal segment movement\n // x Py\n // .\n // P0 .\n // +---------------------------+ P1\n // .\n // .\n // x Px\n //\n var distance = 0;\n if (p0.y === p1.y) {\n // ensure that the segment is the min distance away from the source/target port\n // (Px is endpoints of the connection and bounded to a port)\n if (i === 1) distance = p0.y - lp0.y;\n // (Py is endpoints of the connection and bounded to a port)\n if (i === line.getSegments().getSize() - 2) distance = p1.y - lp1.y;\n\n if (distance < 0 && dy2 > 0) {\n dy2 = Math.min(dy2, -distance - this.MINDIST);\n } else if (distance > 0 && dy2 < 0) {\n dy2 = -Math.min(-dy2, distance - this.MINDIST);\n }\n\n line.getVertex(i).translate(0, dy2);\n line.getVertex(i + 1).translate(0, dy2);\n }\n // vertical segment movement\n //\n else if (p0.x === p1.x) {\n // ensure that the segment is the min distance away from the source/target port\n //\n if (i === 1) {\n distance = p0.x - lp0.x;\n if (distance < 0 && dx2 > 0) {\n dx2 = Math.min(dx2, -distance - this.MINDIST);\n } else if (distance > 0 && dx2 < 0) {\n dx2 = -Math.min(-dx2, distance - this.MINDIST);\n }\n }\n\n // we need this additional test too. No \"else if\" because the special\n // case of \"index===1\". In this case the segment can be the last AND first\n // segment if the connection has only three segments at all.\n //\n if (i === line.getSegments().getSize() - 2) {\n distance = p1.x - lp1.x;\n if (distance < 0 && dx2 > 0) {\n dx2 = Math.min(dx2, -distance - this.MINDIST);\n } else if (distance > 0 && dx2 < 0) {\n dx2 = -Math.min(-dx2, distance - this.MINDIST);\n }\n }\n\n line.getVertex(i).translate(dx2, 0);\n line.getVertex(i + 1).translate(dx2, 0);\n }\n },\n\n /**\r\n * @method\r\n * Called by the connection if the vertices set outside.\r\n * This enforce the router to avoid full autoroute. E.g. InteractiveManhattanRouter\r\n *\r\n * @protected\r\n */\n verticesSet: function verticesSet(conn) {\n conn._routingMetaData.routedByUserInteraction = true;\n if (conn.getSource() !== null && conn.getTarget() !== null) {\n conn._routingMetaData.fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n conn._routingMetaData.toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n }\n },\n\n /**\r\n * @method\r\n * Tweak or enrich the polyline persistence data with routing information\r\n *\r\n * @since 2.10.0\r\n * @param {draw2d.shape.basic.PolyLine} line\r\n * @param {Object} memento The memento data of the polyline\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes(line, memento) {\n memento.vertex = [];\n\n line.getVertices().each(function (i, e) {\n memento.vertex.push({ x: e.x, y: e.y });\n });\n memento.routingMetaData = (0, _extend2.default)({}, line._routingMetaData);\n\n return memento;\n },\n\n /**\r\n * @method\r\n * set the attributes for the polyline with routing information of the interactive manhattan router.\r\n *\r\n * @since 4..0.0\r\n * @param {Object} memento\r\n */\n setPersistentAttributes: function setPersistentAttributes(line, memento) {\n // restore the points from the JSON data and add them to the polyline\n //\n if (Array.isArray(memento.vertex)) {\n\n line.oldPoint = null;\n line.lineSegments = new _packages2.default.util.ArrayList();\n\n line.setVertices(memento.vertex);\n\n /*\r\n line.vertices = new draw2d.util.ArrayList();\r\n $.each(memento.vertex, function(i,e){\r\n line.addPoint(e.x, e.y);\r\n });\r\n */\n }\n\n if (typeof memento.routingMetaData !== \"undefined\") {\n line._routingMetaData = (0, _extend2.default)({}, memento.routingMetaData);\n }\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/layout/connection/ManhattanBridgedConnectionRouter.js\":\n/*!*******************************************************************!*\\\n !*** ./src/layout/connection/ManhattanBridgedConnectionRouter.js ***!\n \\*******************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.ManhattanBridgedConnectionRouter = _packages2.default.layout.connection.ManhattanConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.ManhattanBridgedConnectionRouter\",\n\n BRIDGE_HORIZONTAL_LR: \" r 0 0 3 -4 7 -4 10 0 13 0 \", // Left to right\n BRIDGE_HORIZONTAL_RL: \" r 0 0 -3 -4 -7 -4 -10 0 -13 0 \", // right to left\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(conn, routingHints) {\n var _this = this;\n\n var fromPt = conn.getStartPoint();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPoint();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n // calculate the lines between the two points.\n //\n this._route(conn, toPt, toDir, fromPt, fromDir);\n\n // calculate the path string for the SVG rendering\n //\n var intersectionsASC = conn.getCanvas().getIntersection(conn).sort(\"x\");\n var intersectionsDESC = intersectionsASC.clone().reverse();\n\n var intersectionForCalc = intersectionsASC;\n\n // ATTENTION: we cast all x/y coordinates to int and add 0.5 to avoid subpixel rendering of\n // the connection. The 1px or 2px lines look much clearer than before.\n //\n var ps = conn.getVertices();\n var p = ps.get(0);\n var path = [\"M\", (p.x | 0) + 0.5, \" \", (p.y | 0) + 0.5];\n var oldP = p;\n\n var _loop = function _loop(i) {\n p = ps.get(i);\n\n // check for intersection and paint a bridge if required\n // line goes from left to right\n //\n var bridgeWidth = 5;\n var bridgeCode = _this.BRIDGE_HORIZONTAL_LR;\n\n // line goes from right->left. Inverse the bridge and the bridgeWidth\n //\n if (oldP.x > p.x) {\n intersectionForCalc = intersectionsDESC;\n bridgeCode = _this.BRIDGE_HORIZONTAL_RL;\n bridgeWidth = -bridgeWidth;\n }\n\n intersectionForCalc.each(function (ii, interP) {\n if (interP.justTouching === false && _packages2.default.shape.basic.Line.hit(1, oldP.x, oldP.y, p.x, p.y, interP.x, interP.y) === true) {\n // we draw only horizontal bridges. Just a design decision\n //\n if (p.y === interP.y) {\n path.push(\" L\", (interP.x - bridgeWidth | 0) + 0.5, \" \", (interP.y | 0) + 0.5);\n path.push(bridgeCode);\n }\n }\n });\n\n path.push(\" L\", (p.x | 0) + 0.5, \" \", (p.y | 0) + 0.5);\n oldP = p;\n };\n\n for (var i = 1; i < ps.getSize(); i++) {\n _loop(i);\n }\n conn.svgPathString = path.join(\"\");\n }\n\n}); /**\r\n * @class draw2d.layout.connection.ManhattanBridgedConnectionRouter\r\n * Provides a {@link draw2d.Connection} with an orthogonal route between the Connection's source\r\n * and target anchors.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ManhattanConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/ManhattanConnectionRouter.js\":\n/*!************************************************************!*\\\n !*** ./src/layout/connection/ManhattanConnectionRouter.js ***!\n \\************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.ManhattanConnectionRouter = _packages2.default.layout.connection.ConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.ManhattanConnectionRouter\",\n\n MINDIST: 20,\n TOL: 0.1,\n TOLxTOL: 0.01,\n TOGGLE_DIST: 20,\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(conn, routingHints) {\n var fromPt = conn.getStartPosition();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPosition();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n // calculate the lines between the two points.\n //\n this._route(conn, toPt, toDir, fromPt, fromDir);\n this._paint(conn);\n },\n\n /**\r\n * @method\r\n * Internal routing algorithm.\r\n *\r\n * @private\r\n * @param {draw2d.Connection} conn\r\n * @param {draw2d.geo.Point} fromPt\r\n * @param {Number} fromDir\r\n * @param {draw2d.geo.Point} toPt\r\n * @param {Number} toDir\r\n */\n _route: function _route(conn, fromPt, fromDir, toPt, toDir) {\n // fromPt is an x,y to start from.\n // fromDir is an angle that the first link must\n //\n var UP = _packages2.default.geo.Rectangle.DIRECTION_UP;\n var RIGHT = _packages2.default.geo.Rectangle.DIRECTION_RIGHT;\n var DOWN = _packages2.default.geo.Rectangle.DIRECTION_DOWN;\n var LEFT = _packages2.default.geo.Rectangle.DIRECTION_LEFT;\n\n var xDiff = fromPt.x - toPt.x;\n var yDiff = fromPt.y - toPt.y;\n var point = void 0;\n var dir = void 0;\n var pos = void 0;\n\n if (xDiff * xDiff < this.TOLxTOL && yDiff * yDiff < this.TOLxTOL) {\n conn.addPoint(new _packages2.default.geo.Point(toPt.x, toPt.y));\n return;\n }\n\n if (fromDir === LEFT) {\n if (xDiff > 0 && yDiff * yDiff < this.TOL && toDir === RIGHT) {\n point = toPt;\n dir = toDir;\n } else {\n if (xDiff < 0) {\n point = new _packages2.default.geo.Point(fromPt.x - this.MINDIST, fromPt.y);\n } else if (yDiff > 0 && toDir === DOWN || yDiff < 0 && toDir === UP) {\n point = new _packages2.default.geo.Point(toPt.x, fromPt.y);\n } else if (fromDir === toDir) {\n pos = Math.min(fromPt.x, toPt.x) - this.MINDIST;\n point = new _packages2.default.geo.Point(pos, fromPt.y);\n } else {\n point = new _packages2.default.geo.Point(fromPt.x - xDiff / 2, fromPt.y);\n }\n\n if (yDiff > 0) {\n dir = UP;\n } else {\n dir = DOWN;\n }\n }\n } else if (fromDir === RIGHT) {\n if (xDiff < 0 && yDiff * yDiff < this.TOL && toDir === LEFT) {\n point = toPt;\n dir = toDir;\n } else {\n if (xDiff > 0) {\n point = new _packages2.default.geo.Point(fromPt.x + this.MINDIST, fromPt.y);\n } else if (yDiff > 0 && toDir === DOWN || yDiff < 0 && toDir === UP) {\n point = new _packages2.default.geo.Point(toPt.x, fromPt.y);\n } else if (fromDir === toDir) {\n pos = Math.max(fromPt.x, toPt.x) + this.MINDIST;\n point = new _packages2.default.geo.Point(pos, fromPt.y);\n } else {\n point = new _packages2.default.geo.Point(fromPt.x - xDiff / 2, fromPt.y);\n }\n\n if (yDiff > 0) {\n dir = UP;\n } else {\n dir = DOWN;\n }\n }\n } else if (fromDir === DOWN) {\n if (xDiff * xDiff < this.TOL && yDiff < 0 && toDir === UP) {\n point = toPt;\n dir = toDir;\n } else {\n if (yDiff > 0) {\n point = new _packages2.default.geo.Point(fromPt.x, fromPt.y + this.MINDIST);\n } else if (xDiff > 0 && toDir === RIGHT || xDiff < 0 && toDir === LEFT) {\n point = new _packages2.default.geo.Point(fromPt.x, toPt.y);\n } else if (fromDir === toDir) {\n pos = Math.max(fromPt.y, toPt.y) + this.MINDIST;\n point = new _packages2.default.geo.Point(fromPt.x, pos);\n } else {\n point = new _packages2.default.geo.Point(fromPt.x, fromPt.y - yDiff / 2);\n }\n\n if (xDiff > 0) {\n dir = LEFT;\n } else {\n dir = RIGHT;\n }\n }\n } else if (fromDir === UP) {\n if (xDiff * xDiff < this.TOL && yDiff > 0 && toDir === DOWN) {\n point = toPt;\n dir = toDir;\n } else {\n if (yDiff < 0) {\n point = new _packages2.default.geo.Point(fromPt.x, fromPt.y - this.MINDIST);\n } else if (xDiff > 0 && toDir === RIGHT || xDiff < 0 && toDir === LEFT) {\n point = new _packages2.default.geo.Point(fromPt.x, toPt.y);\n } else if (fromDir === toDir) {\n pos = Math.min(fromPt.y, toPt.y) - this.MINDIST;\n point = new _packages2.default.geo.Point(fromPt.x, pos);\n } else {\n point = new _packages2.default.geo.Point(fromPt.x, fromPt.y - yDiff / 2);\n }\n\n if (xDiff > 0) {\n dir = LEFT;\n } else {\n dir = RIGHT;\n }\n }\n }\n this._route(conn, point, dir, toPt, toDir);\n conn.addPoint(fromPt);\n }\n\n}); /**\r\n * @class draw2d.layout.connection.ManhattanConnectionRouter\r\n * Provides a {@link draw2d.Connection} with an orthogonal route between the Connection's source\r\n * and target anchors.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // Override the default connection type. This is used during drag&drop operations of ports.\r\n * //\r\n * let createConnection=function(sourcePort, targetPort){\r\n * // return my special kind of connection\r\n * let con = new draw2d.Connection();\r\n * con.setRouter(new draw2d.layout.connection.ManhattanConnectionRouter());\r\n * return con;\r\n * };\r\n *\r\n * // Install a special policy into the canvas to use my own implementation of connection\r\n * // if we drag&drop a port\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * let end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/MazeConnectionRouter.js\":\n/*!*******************************************************!*\\\n !*** ./src/layout/connection/MazeConnectionRouter.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; /**\r\n * @class draw2d.layout.connection.MazeConnectionRouter\r\n * <b>BETA VERSION. Not for production!!!<br></b>\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ConnectionRouter\r\n */\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar ROUTER_RECTS = null;\n\n_packages2.default.layout.connection.MazeConnectionRouter = _packages2.default.layout.connection.ConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.MazeConnectionRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n\n this.useSpline = false;\n this.useSimplify = true;\n this.useSimplifyValue = 2;\n this.useDebug = false;\n this.useShift = 4;\n this.portOutletOffset = 15;\n\n // \tthis.finder = new PF.AStarFinder();\n // this.finder = new PF.AStarFinder({ allowDiagonal: true, dontCrossCorners: true});\n // this.finder = new PF.AStarFinder({ allowDiagonal: false});\n // this.finder = new PF.BiBreadthFirstFinder({ allowDiagonal: false});\n // this.finder = new PF.BreadthFirstFinder({ allowDiagonal: false});\n this.finder = new PF.JumpPointFinder({ allowDiagonal: false, dontCrossCorners: true });\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(conn, routingHints) {\n var fromPt = conn.getStartPoint();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPoint();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n // calculate the lines between the two points.\n //\n this._route(conn, toPt, toDir, fromPt, fromDir);\n this._paint(conn);\n },\n\n /**\r\n * @method\r\n * Internal routing algorithm.\r\n * * <p>\r\n * Possible values:\r\n * <ul>\r\n * <li>up -> 0</li>\r\n * <li>right -> 1</li>\r\n * <li>down -> 2</li>\r\n * <li>left -> 3</li>\r\n * </ul>\r\n * <p>\r\n * @private\r\n * @param {draw2d.Connection} conn\r\n * @param {draw2d.geo.Point} fromPt\r\n * @param {Number} fromDir\r\n * @param {draw2d.geo.Point} toPt\r\n * @param {Number} toDir\r\n */\n _route: function _route(conn, fromPt, fromDir, toPt, toDir) {\n var shift = this.useShift;\n\n var oldToPt = toPt;\n var oldFromPt = fromPt;\n\n // move the points with an offset in the prefered routing direction of the ports\n // to avoid that the routed connection is sticking on one side of the figure.\n //\n fromPt = this.getAdjustedPoint(fromPt, fromDir, this.portOutletOffset);\n toPt = this.getAdjustedPoint(toPt, toDir, this.portOutletOffset);\n\n var grid = this.generateNoGoGrid(conn, fromPt, fromDir, toPt, toDir);\n\n // 4. Calculate the shortest path from source to target based on the grid\n //\n var path = this.finder.findPath(fromPt.x >> shift, fromPt.y >> shift, toPt.x >> shift, toPt.y >> shift, grid);\n\n // transfer the path from the grid based coordinates back to the real coordinates\n //\n path.forEach(function (e) {\n e.x = e[0] = e[0] << shift;\n e.y = e[1] = e[1] << shift;\n });\n\n // 5. paint the \"no go\" area in read if we are in debug mode\n //\n if (this.useDebug) {\n if (ROUTER_RECTS !== null) {\n ROUTER_RECTS.remove();\n }\n ROUTER_RECTS = conn.canvas.paper.set();\n\n for (var i = 0; i < grid.width; i++) {\n for (var j = 0; j < grid.height; j++) {\n if (!grid.isWalkableAt(i, j)) ROUTER_RECTS.push(conn.canvas.paper.rect(i << shift, j << shift, 1 << shift, 1 << shift).attr({\n \"fill\": \"red\",\n \"opacity\": \"0.1\"\n }));\n }\n }\n ROUTER_RECTS.push(conn.canvas.paper.rect(fromPt.x - 3, fromPt.y - 3, 6, 6).attr({\n \"fill\": \"#ff0000\",\n \"opacity\": \"0.8\"\n }));\n ROUTER_RECTS.push(conn.canvas.paper.rect(toPt.x - 3, toPt.y - 3, 6, 6).attr({\n \"fill\": \"#ff0000\",\n \"opacity\": \"0.8\"\n }));\n\n // paint the original calculated path without any simplification in BLUE\n path.forEach(function (e) {\n ROUTER_RECTS.push(conn.canvas.paper.rect(e.x - 3, e.y - 3, 6, 6).attr({ \"fill\": \"#0000ff\", \"opacity\": \"0.8\" }));\n });\n var p = path[0];\n var svgPathBefore = [\"M\", p.x, \" \", p.y];\n for (var _i = 1; _i < path.length; _i++) {\n p = path[_i];\n svgPathBefore.push(\"L\", p.x, \" \", p.y);\n }\n svgPathBefore = svgPathBefore.join(\"\");\n ROUTER_RECTS.push(conn.canvas.paper.path(svgPathBefore).attr({ \"stroke\": \"#0000ff\" }));\n }\n\n this.adjustPath(fromPt, path, fromDir);\n path.reverse();\n this.adjustPath(toPt, path, toDir);\n path.reverse();\n\n path.forEach(function (e) {\n e.x = e[0];\n e.y = e[1];\n });\n\n if (this.useSpline) {\n var _p = new _packages2.default.util.ArrayList();\n _p.add(oldFromPt);\n path.forEach(function (e) {\n _p.add(new _packages2.default.geo.Point(e[0], e[1]));\n });\n _p.add(oldToPt);\n\n if (this.useDebug) {\n path.forEach(function (e) {\n ROUTER_RECTS.push(conn.canvas.paper.rect(e.x - 3, e.y - 3, 6, 6).attr({ \"fill\": \"#00ff00\", \"opacity\": \"0.8\" }));\n });\n var pt = path[0];\n var _svgPathBefore = [\"M\", pt.x, \" \", pt.y];\n for (var _i2 = 1; _i2 < path.length; _i2++) {\n pt = path[_i2];\n _svgPathBefore.push(\"L\", pt.x, \" \", pt.y);\n }\n _svgPathBefore = _svgPathBefore.join(\"\");\n ROUTER_RECTS.push(conn.canvas.paper.path(_svgPathBefore).attr({ \"stroke\": \"#00ff00\" }));\n }\n\n this.spline = new _packages2.default.util.spline.CubicSpline();\n var splinePoints = this.spline.generate(_p, 8);\n\n if (this.useSimplify) {\n path = [];\n splinePoints.each(function (i, e) {\n path.push({ x: e.x, y: e.y });\n });\n path = this.simplify(path, this.useSimplifyValue, true);\n\n path.forEach(function (e) {\n conn.addPoint(e.x, e.y);\n });\n } else {\n splinePoints.each(function (i, e) {\n conn.addPoint(e);\n });\n }\n } else {\n if (this.useSimplify) {\n path = this.simplify(path, this.useSimplifyValue, true);\n }\n\n if (this.useDebug) {\n path.forEach(function (e) {\n ROUTER_RECTS.push(conn.canvas.paper.rect(e.x - 3, e.y - 3, 6, 6).attr({ \"fill\": \"#00ff00\", \"opacity\": \"0.8\" }));\n });\n var _p2 = path[0];\n var _svgPathBefore2 = [\"M\", _p2.x, \" \", _p2.y];\n for (var _i3 = 1; _i3 < path.length; _i3++) {\n _p2 = path[_i3];\n _svgPathBefore2.push(\"L\", _p2.x, \" \", _p2.y);\n }\n _svgPathBefore2 = _svgPathBefore2.join(\"\");\n ROUTER_RECTS.push(conn.canvas.paper.path(_svgPathBefore2).attr({ \"stroke\": \"#00ff00\" }));\n }\n\n conn.addPoint(oldFromPt);\n path.forEach(function (e) {\n conn.addPoint(e[0], e[1]);\n });\n conn.addPoint(oldToPt);\n }\n },\n\n /**\r\n * @method\r\n * Generate a grid base no go map required for the path finding algorithm\r\n *\r\n * @param conn\r\n * @returns {PF.Grid}\r\n */\n generateNoGoGrid: function generateNoGoGrid(conn, fromPt, fromDir, toPt, toDir) {\n var shift = this.useShift;\n var oneShift2 = (1 << shift) / 2;\n\n // 1. generate a map with all \"no go\" areas. The bounding box of the shapes defines\n // the no go areas.\n //\n var canvasWidth = conn.getCanvas().paper.width >> shift;\n var canvasHeight = conn.getCanvas().paper.height >> shift;\n var grid = new PF.Grid(canvasWidth, canvasHeight);\n var figures = conn.getCanvas().getFigures();\n figures.each(function (i, e) {\n var box = e.getBoundingBox();\n // remove shapes which are hit by the input or output ports. It is not possible to route\n // out from a not walkable area\n if (box.hitTest(fromPt.x, fromPt.y) === true || box.hitTest(toPt.x, toPt.y)) {\n return;\n }\n\n var x = box.x >> shift;\n var y = box.y >> shift;\n if (x < 1 || y < 1) {\n return;\n }\n var r_orig = box.x + box.w + oneShift2 >> shift;\n var b_orig = box.y + box.h + oneShift2 >> shift;\n for (var _i4 = x; _i4 <= r_orig; _i4++) {\n for (var j = y; j <= b_orig; j++) {\n grid.setWalkableAt(_i4, j, false);\n }\n }\n });\n\n // 3. make the are walkable on the edge of the port side. Otherwise we a\n // an enclosed area around the port if we are very close to another shape\n //\n var box = conn.getSource().getParent().getBoundingBox();\n if (toDir === 1 || toDir === 3) {\n var y = box.y >> shift;\n if (y > 0) {\n var b_orig = box.y + box.h;\n var i = toPt.x >> shift;\n\n for (var j = y - 1; j << shift <= b_orig; j++) {\n grid.setWalkableAt(i, j, true);\n }\n }\n } else {\n var x = box.x >> shift;\n if (x > 0) {\n var r_orig = box.x + box.w;\n var _j = toPt.x >> shift;\n for (var _i5 = x - 1; _i5 << shift <= r_orig; _i5++) {\n grid.setWalkableAt(_i5, _j, true);\n }\n }\n }\n\n box = conn.getTarget().getParent().getBoundingBox();\n if (fromDir === 1 || fromDir === 3) {\n var _y = box.y >> shift;\n if (_y > 0) {\n var _b_orig = box.y + box.h;\n var _i6 = fromPt.x >> shift;\n for (var _j2 = _y - 1; _j2 << shift <= _b_orig; _j2++) {\n grid.setWalkableAt(_i6, _j2, true);\n }\n }\n } else {\n var _x = box.x >> shift;\n if (_x > 0) {\n var _r_orig = box.x + box.w;\n var _j3 = fromPt.x >> shift;\n for (var _i7 = _x - 1; _i7 << shift <= _r_orig; _i7++) {\n grid.setWalkableAt(_i7, _j3, true);\n }\n }\n }\n\n return grid;\n },\n\n /**\r\n * @method\r\n * move the point in the given direction with the given offset\r\n *\r\n * @param {draw2d.geo.Point} pt\r\n * @param {Number} direction\r\n * @param {Number} adjustment\r\n *\r\n * @returns {draw2d.geo.Point}\r\n */\n getAdjustedPoint: function getAdjustedPoint(pt, direction, adjustment) {\n\n switch (direction) {\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n return new _packages2.default.geo.Point(pt.x, pt.y - adjustment);\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n return new _packages2.default.geo.Point(pt.x + adjustment, pt.y);\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n return new _packages2.default.geo.Point(pt.x, pt.y + adjustment);\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n return new _packages2.default.geo.Point(pt.x - adjustment, pt.y);\n }\n },\n\n adjustPath: function adjustPath(pt, path, direction) {\n var shift = this.useShift;\n var x = pt.x >> shift;\n var y = pt.y >> shift;\n path.forEach(function (e) {\n if (y === e[1] >> shift) {\n e[1] = pt.y;\n } else {\n return false;\n }\n });\n path.forEach(function (e) {\n if (x === e[0] >> shift) {\n e[0] = pt.x;\n } else {\n return false;\n }\n });\n },\n\n getSquareDistance: function getSquareDistance(p1, p2) {\n // square distance between 2 points\n\n var dx = p1.x - p2.x,\n dy = p1.y - p2.y;\n\n return dx * dx + dy * dy;\n },\n\n getSquareSegmentDistance: function getSquareSegmentDistance(p, p1, p2) {\n // square distance from a point to a segment\n\n var x = p1.x,\n y = p1.y,\n dx = p2.x - x,\n dy = p2.y - y,\n t = void 0;\n\n if (dx !== 0 || dy !== 0) {\n\n t = ((p.x - x) * dx + (p.y - y) * dy) / (dx * dx + dy * dy);\n\n if (t > 1) {\n x = p2.x;\n y = p2.y;\n } else if (t > 0) {\n x += dx * t;\n y += dy * t;\n }\n }\n\n dx = p.x - x;\n dy = p.y - y;\n\n return dx * dx + dy * dy;\n },\n\n simplifyRadialDistance: function simplifyRadialDistance(points, sqTolerance) {\n // distance-based simplification\n\n var i = void 0,\n len = points.length,\n point = null,\n prevPoint = points[0],\n newPoints = [prevPoint];\n\n for (i = 1; i < len; i++) {\n point = points[i];\n\n if (this.getSquareDistance(point, prevPoint) > sqTolerance) {\n newPoints.push(point);\n prevPoint = point;\n }\n }\n\n if (prevPoint !== point) {\n newPoints.push(point);\n }\n\n return newPoints;\n },\n\n // simplification using optimized Douglas-Peucker algorithm with recursion elimination\n\n simplifyDouglasPeucker: function simplifyDouglasPeucker(points, sqTolerance) {\n\n var len = points.length,\n MarkerArray = (typeof Uint8Array === \"undefined\" ? \"undefined\" : _typeof(Uint8Array)) !== undefined + '' ? Uint8Array : Array,\n markers = new MarkerArray(len),\n first = 0,\n last = len - 1,\n i = void 0,\n maxSqDist = void 0,\n sqDist = void 0,\n index = void 0,\n firstStack = [],\n lastStack = [],\n newPoints = [];\n\n markers[first] = markers[last] = 1;\n\n while (last) {\n\n maxSqDist = 0;\n\n for (i = first + 1; i < last; i++) {\n sqDist = this.getSquareSegmentDistance(points[i], points[first], points[last]);\n\n if (sqDist > maxSqDist) {\n index = i;\n maxSqDist = sqDist;\n }\n }\n\n if (maxSqDist > sqTolerance) {\n markers[index] = 1;\n\n firstStack.push(first);\n lastStack.push(index);\n\n firstStack.push(index);\n lastStack.push(last);\n }\n\n first = firstStack.pop();\n last = lastStack.pop();\n }\n\n for (i = 0; i < len; i++) {\n if (markers[i]) {\n newPoints.push(points[i]);\n }\n }\n\n return newPoints;\n },\n\n simplify: function simplify(points, tolerance, highestQuality) {\n\n var sqTolerance = tolerance !== undefined ? tolerance * tolerance : 1;\n\n if (!highestQuality) {\n points = this.simplifyRadialDistance(points, sqTolerance);\n }\n points = this.simplifyDouglasPeucker(points, sqTolerance);\n\n return points;\n }\n});\n\n/***/ }),\n\n/***/ \"./src/layout/connection/MuteableManhattanConnectionRouter.js\":\n/*!********************************************************************!*\\\n !*** ./src/layout/connection/MuteableManhattanConnectionRouter.js ***!\n \\********************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.MuteableManhattanConnectionRouter = _packages2.default.layout.connection.ManhattanConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.MuteableManhattanConnectionRouter\",\n\n UP: new _packages2.default.geo.Ray(0, -1),\n DOWN: new _packages2.default.geo.Ray(0, 1),\n LEFT: new _packages2.default.geo.Ray(-1, 0),\n RIGHT: new _packages2.default.geo.Ray(1, 0),\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n\n this.rowsUsed = {}; //new HashMap<Integer, Integer>();\n this.colsUsed = {}; //new HashMap<Integer, Integer>();\n this.constraints = {}; //new HashMap<Connection, Object>();\n this.reservedInfo = {}; //new HashMap<Connection, ReservedInfo>();\n },\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(conn, routingHints) {\n this.rowsUsed = {}; //new HashMap<Integer, Integer>();\n this.colsUsed = {}; //new HashMap<Integer, Integer>();\n this.constraints = {}; //new HashMap<Connection, Object>();\n this.reservedInfo = {}; //new HashMap<Connection, ReservedInfo>();\n\n var canvas = conn.getCanvas();\n var i = void 0;\n\n var startPoint = conn.getStartPoint();\n var endPoint = conn.getEndPoint();\n\n var start = new _packages2.default.geo.Ray(startPoint);\n var end = new _packages2.default.geo.Ray(endPoint);\n var average = new _packages2.default.geo.Ray((start.x + end.x) / 2, (start.y + end.y) / 2);\n\n var direction = new _packages2.default.geo.Ray(end.x - start.x, end.y - start.y);\n var startNormal = this.getStartDirection(conn);\n var endNormal = this.getEndDirection(conn);\n\n var positions = new _packages2.default.util.ArrayList();\n var horizontal = startNormal.isHorizontal();\n\n if (horizontal) {\n positions.add(start.y);\n } else {\n positions.add(start.x);\n }\n\n horizontal = !horizontal;\n\n // dot product is zero if the vector orthogonal (90°)\n if (startNormal.dot(endNormal) === 0) {\n if (startNormal.dot(direction) >= 0 && endNormal.dot(direction) <= 0) {\n // 0\n } else {\n\n // 2\n if (startNormal.dot(direction) < 0) i = startNormal.similarity(start.translated(startNormal.scaled(10)));else {\n if (horizontal) i = average.y;else i = average.x;\n }\n\n positions.add(i);\n horizontal = !horizontal;\n\n if (endNormal.dot(direction) > 0) {\n i = endNormal.similarity(end.translated(endNormal.scaled(10)));\n } else {\n if (horizontal) {\n i = average.y;\n } else {\n i = average.x;\n }\n }\n positions.add(i);\n horizontal = !horizontal;\n }\n } else {\n if (startNormal.dot(endNormal) > 0) {\n //1\n if (startNormal.dot(direction) >= 0) i = startNormal.similarity(start.translated(startNormal.scaled(10)));else i = endNormal.similarity(end.translated(endNormal.scaled(10)));\n positions.add(i);\n horizontal = !horizontal;\n } else {\n //3 or 1\n if (startNormal.dot(direction) < 0) {\n i = startNormal.similarity(start.translated(startNormal.scaled(10)));\n positions.add(i);\n horizontal = !horizontal;\n }\n\n // my tweak to route SCA wires starts\n if (this.isCycle(conn)) {\n if (horizontal) i = conn.getSource().getParent().getBoundingBox().getTop() - 10; // * index;\n else i = conn.getSource().getParent().getBoundingBox().getRight() + 10; // * index;\n } else {\n if (horizontal) {\n var j = average.y;\n\n var next = endNormal.similarity(end.translated(endNormal.scaled(10)));\n\n var trial = new _packages2.default.geo.Ray(positions.get(positions.getSize() - 1), j);\n var figure = this.findFirstFigureAtStraightLine(canvas, trial, this.LEFT, _packages2.default.util.ArrayList.EMPTY_LIST);\n\n while (figure != null && figure.getBoundingBox().x + figure.getBoundingBox().width > next) {\n j = figure.getBoundingBox().y + figure.getBoundingBox().height + 5;\n trial.y = j;\n figure = this.findFirstFigureAtStraightLine(canvas, trial, this.LEFT, _packages2.default.util.ArrayList.EMPTY_LIST);\n }\n\n i = j;\n } else {\n var _figure = this.findFirstFigureAtStraightLine(canvas, start, this.RIGHT, this.getExcludingFigures(conn));\n if (_figure == null) i = average.x;else {\n i = Math.min(average.x, start.translated(new _packages2.default.geo.Ray(3 * (_figure.getBoundingBox().x - start.x) / 4, 0)).x);\n i = Math.max(start.x, i);\n }\n i = this.adjust(conn, i);\n }\n }\n // my tweak to route SCA wires ends\n positions.add(i);\n horizontal = !horizontal;\n }\n }\n if (horizontal) positions.add(end.y);else positions.add(end.x);\n\n this.processPositions(start, end, positions, startNormal.isHorizontal(), conn);\n\n this._paint(conn);\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Connection} connection\r\n * @param {Number} r\r\n * @param {Number} n\r\n * @param {Number} x\r\n *\r\n * @private\r\n */\n getColumnNear: function getColumnNear(connection, r, n, x) {\n var min = Math.min(n, x);\n var max = Math.max(n, x);\n\n if (min > r) {\n max = min;\n min = r - (min - r);\n }\n if (max < r) {\n min = max;\n max = r + (r - max);\n }\n\n var proximity = 0;\n var direction = -1;\n if (r % 6 !== 0) {\n r = r - r % 6;\n }\n\n var i = void 0;\n while (proximity < r) {\n i = parseInt(r + proximity * direction);\n if (!(i in this.colsUsed)) {\n this.colsUsed[i] = i;\n this.reserveColumn(connection, i);\n return i;\n }\n\n if (i <= min) {\n return i + 6;\n }\n\n if (i >= max) {\n return i - 6;\n }\n\n if (direction === 1) {\n direction = -1;\n } else {\n direction = 1;\n proximity += 6;\n }\n }\n return r;\n },\n\n getRowNear: function getRowNear(connection, r, n, x) {\n var min = Math.min(n, x);\n var max = Math.max(n, x);\n\n if (min > r) {\n max = min;\n min = r - (min - r);\n }\n if (max < r) {\n min = max;\n max = r + (r - max);\n }\n\n var proximity = 0;\n var direction = -1;\n if (r % 6 !== 0) {\n r = r - r % 6;\n }\n\n var i = void 0;\n while (proximity < r) {\n i = parseInt(r + proximity * direction);\n if (!(i in this.rowsUsed)) {\n this.rowsUsed[i] = i;\n this.reserveRow(connection, i);\n return i;\n }\n if (i <= min) return i + 6;\n if (i >= max) return i - 6;\n if (direction === 1) direction = -1;else {\n direction = 1;\n proximity += 6;\n }\n }\n return r;\n },\n\n /**\r\n * <li>up -> 0</li>\r\n * <li>right -> 1</li>\r\n * <li>down -> 2</li>\r\n * <li>left -> 3</li>\r\n **/\n getEndDirection: function getEndDirection(conn) {\n var p = conn.getEndPoint();\n var rect = conn.getTarget().getParent().getBoundingBox();\n return this.getDirection(rect, p);\n },\n\n /**\r\n * <li>up -> 0</li>\r\n * <li>right -> 1</li>\r\n * <li>down -> 2</li>\r\n * <li>left -> 3</li>\r\n **/\n getStartDirection: function getStartDirection(conn) {\n var p = conn.getStartPoint();\n var rect = conn.getSource().getParent().getBoundingBox();\n return this.getDirection(rect, p);\n },\n\n /**\r\n * Returns the direction the point <i>p</i> is in relation to the given rectangle.\r\n * Possible values are LEFT (-1,0), RIGHT (1,0), UP (0,-1) and DOWN (0,1).\r\n *\r\n * @param r the rectangle\r\n * @param p the point\r\n * @return the direction from <i>r</i> to <i>p</i>\r\n */\n getDirection: function getDirection(r, p) {\n var i = Math.abs(r.y - p.y);\n var distance = Math.abs(r.x - p.x);\n var direction = this.LEFT;\n\n if (i <= distance) {\n distance = i;\n direction = this.UP;\n }\n\n i = Math.abs(r.getBottom() - p.y);\n if (i <= distance) {\n distance = i;\n direction = this.DOWN;\n }\n\n i = Math.abs(r.getRight() - p.x);\n if (i < distance) {\n direction = this.RIGHT;\n }\n\n return direction;\n },\n\n processPositions: function processPositions( /*Ray*/start, /*Ray*/end, /*List*/positions, /*boolean*/horizontal, /*Connection*/conn) {\n this.removeReservedLines(conn);\n\n var pos = [];\n if (horizontal) pos.push(start.x);else pos.push(start.y);\n var i = void 0;\n for (i = 0; i < positions.getSize(); i++) {\n pos.push(positions.get(i));\n }\n\n if (horizontal === (positions.getSize() % 2 === 1)) {\n pos.push(end.x);\n } else {\n pos.push(end.y);\n }\n\n conn.addPoint(new _packages2.default.geo.Point(start.x, start.y));\n var p = void 0;\n var current = void 0,\n prev = void 0,\n min = void 0,\n max = void 0;\n var adjust = void 0;\n for (i = 2; i < pos.length - 1; i++) {\n horizontal = !horizontal;\n prev = pos[i - 1];\n current = pos[i];\n\n adjust = i !== pos.length - 2;\n if (horizontal) {\n if (adjust) {\n min = pos[i - 2];\n max = pos[i + 2];\n pos[i] = current = this.getRowNear(conn, current, min, max);\n }\n p = new _packages2.default.geo.Point(prev, current);\n } else {\n if (adjust) {\n min = pos[i - 2];\n max = pos[i + 2];\n pos[i] = current = this.getColumnNear(conn, current, min, max);\n }\n p = new _packages2.default.geo.Point(current, prev);\n }\n conn.addPoint(p);\n }\n conn.addPoint(new _packages2.default.geo.Point(end.x, end.y));\n },\n\n removeReservedLines: function removeReservedLines(connection) {\n var rInfo = this.reservedInfo[connection];\n if (typeof rInfo === \"undefined\" || rInfo === null) return;\n\n for (var i = 0; i < rInfo.reservedRows.getSize(); i++) {\n delete this.rowsUsed[rInfo.reservedRows.get(i)];\n }\n for (var _i = 0; _i < rInfo.reservedCols.getSize(); _i++) {\n delete this.colsUsed[rInfo.reservedCols.get(_i)];\n }\n delete this.reservedInfo[connection];\n },\n\n reserveColumn: function reserveColumn(connection, column) {\n var info = this.reservedInfo[connection];\n if (typeof info === \"undefined\" || info === null) {\n info = { reservedCols: new _packages2.default.util.ArrayList(), reservedRows: new _packages2.default.util.ArrayList() };\n this.reservedInfo[connection] = info;\n }\n info.reservedCols.add(column);\n },\n\n reserveRow: function reserveRow(connection, row) {\n var info = this.reservedInfo[connection];\n if (typeof info === \"undefined\" || info === null) {\n info = { reservedCols: new _packages2.default.util.ArrayList(), reservedRows: new _packages2.default.util.ArrayList() };\n this.reservedInfo[connection] = info;\n }\n info.reservedRows.add(row);\n },\n\n getConstraint: function getConstraint(connection) {\n return this.constraints[connection];\n },\n\n setConstraint: function setConstraint(connection, constraint) {\n this.constraints[connection] = constraint;\n },\n\n isCycle: function isCycle(conn) {\n var source = conn.getSource().getParent();\n var target = conn.getTarget().getParent();\n\n return source.id === target.id;\n },\n\n getExcludingFigures: function getExcludingFigures(conn) {\n var excluding = new _packages2.default.util.ArrayList();\n\n excluding.add(conn.getSource().getParent());\n excluding.add(conn.getTarget().getParent());\n\n return excluding;\n },\n\n findFirstFigureAtStraightLine: function findFirstFigureAtStraightLine(canvas, /*Ray*/start, /*Ray*/direction, /*List*/excluding) {\n var figure = null;\n\n var figures = canvas.getFigures();\n var _this = this;\n figures.each(function (i, child) {\n try {\n if (!excluding.contains(child)) {\n var rect = child.getBoundingBox();\n if (_this.LEFT.equals(direction)) {\n if (start.x > rect.x && start.y >= rect.y && start.y <= rect.y + rect.h) {\n if (figure === null || rect.x > figure.getBoundingBox().x) figure = child;\n }\n } else if (_this.RIGHT.equals(direction)) {\n if (start.x < rect.x + rect.w && start.y >= rect.y && start.y <= rect.y + rect.h) {\n if (figure == null || rect.x < figure.getBoundingBox().x) figure = child;\n }\n } else if (_this.UP.equals(direction)) {\n if (start.y > rect.y && start.x >= rect.x && start.x <= rect.x + rect.w) {\n if (figure === null || rect.y > figure.getBoundingBox().y) figure = child;\n }\n } else if (_this.DOWN.equals(direction)) {\n if (start.y < rect.y + rect.h && start.x >= rect.x && start.x <= rect.x + rect.w) {\n if (figure === null || rect.y < figure.getBoundingBox().y) figure = child;\n }\n }\n }\n } catch (exc) {\n console.log(exc);\n debugger;\n }\n });\n return figure;\n },\n\n adjust: function adjust(connection, col) {\n var column = col;\n\n var start = connection.getSource().getPosition();\n\n var connections = connection.getCanvas().getLines();\n connections.each(function (i, conn) {\n try {\n if (conn === connection) return;\n\n var end = conn.getTarget().getPosition();\n if (start.x < end.x && start.y === end.y) {\n if (conn.getVertices().getMidpoint().x <= col) column = conn.getVertices().getMidpoint().x - 5;\n }\n } catch (exc) {\n console.log(exc);\n debugger;\n }\n });\n return column;\n }\n\n}); /**\r\n * @class draw2d.layout.connection.MuteableManhattanConnectionRouter\r\n *\r\n * JUST FOR RESEARCH AT THE MOMENT!!!!!!\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ManhattanConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/RubberbandRouter.js\":\n/*!***************************************************!*\\\n !*** ./src/layout/connection/RubberbandRouter.js ***!\n \\***************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.RubberbandRouter = _packages2.default.layout.connection.ConnectionRouter.extend({\n\n NAME: \"draw2d.layout.connection.RubberbandRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * Invalidates the given Connection\r\n */\n invalidate: function invalidate() {},\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(connection, routingHints) {\n var thickness = 10;\n\n var start = connection.getStartPoint();\n var end = connection.getEndPoint();\n\n // 1. Calculate the vector AB→ by subtracting the coordinates of A from the coordinates of B.\n // Let's say you get (u,v) as the vector components.\n //\n // 2. normalize the vector (u,v,) to a length of |1|\n //\n // 3. The vector (−v,u) is AB→ rotated by 90 degrees counterclockwise. (Why? Look up \"rotation matrix\").\n //\n // 4. Add (−v,u) to A to get C. Also add (−v,u) to B to get D.\n\n var uv = end.subtract(start);\n var uv2 = uv.clone();\n var length = uv.length();\n\n var strength = 1 - Math.min(0.75, 1 / 500 * length);\n var first = start.lerp(end, 0.25 * strength); // go closer to the start point if the strength grows\n var second = start.lerp(end, 0.5);\n var third = start.lerp(end, 1 - 0.25 * strength); // go closer to the end point if the strengths grows\n\n thickness = Math.max(5, thickness * strength);\n\n uv.x = uv.x / length * thickness;\n uv.y = uv.y / length * thickness;\n\n uv2.x = uv2.x / length * (thickness * strength);\n uv2.y = uv2.y / length * (thickness * strength);\n\n // anchor points for the 180 arc at the start point of the connection\n //\n var start90 = new _packages2.default.geo.Point(-uv.y + start.x, uv.x + start.y);\n var start270 = new _packages2.default.geo.Point(uv.y + start.x, -uv.x + start.y);\n\n // anchor point in the first segment ( on the upside/downside) of the connection\n //\n var first90 = new _packages2.default.geo.Point(-uv2.y + first.x, uv2.x + first.y);\n var first270 = new _packages2.default.geo.Point(uv2.y + first.x, -uv2.x + first.y);\n\n // center upside/downside anchor point of the connection\n //\n var second90 = new _packages2.default.geo.Point(-uv2.y + second.x, uv2.x + second.y);\n var second270 = new _packages2.default.geo.Point(uv2.y + second.x, -uv2.x + second.y);\n\n // anchor point in the third segment of the connection\n //\n var third90 = new _packages2.default.geo.Point(-uv2.y + third.x, uv2.x + third.y);\n var third270 = new _packages2.default.geo.Point(uv2.y + third.x, -uv2.x + third.y);\n\n // anchor point for the 180 arc at the end\n //\n var end90 = new _packages2.default.geo.Point(-uv.y + end.x, uv.x + end.y);\n var end270 = new _packages2.default.geo.Point(uv.y + end.x, -uv.x + end.y);\n\n // required for hit tests\n //\n connection.addPoint(start);\n connection.addPoint(end);\n\n // calculate the path\n var path = [\"M\", start90.x, \",\", start90.y];\n path.push(\"A\", thickness, \",\", thickness, \"0 0 1 \", start270.x, \",\", start270.y);\n path.push(\"C\", start270.x, \",\", start270.y, first270.x, \",\", first270.y, second270.x, \",\", second270.y);\n path.push(\"C\", second270.x, \",\", second270.y, third270.x, \",\", third270.y, end270.x, \",\", end270.y);\n path.push(\"A\", thickness, \",\", thickness, \"0 0 1\", end90.x, \",\", end90.y);\n path.push(\"C\", end90.x, \",\", end90.y, third90.x, \",\", third90.y, second90.x, \",\", second90.y);\n path.push(\"C\", second90.x, \",\", second90.y, first90.x, \",\", first90.y, start90.x, \",\", start90.y);\n\n connection.svgPathString = path.join(\" \");\n }\n}); /**\r\n * @class draw2d.layout.connection.RubberbandRouter\r\n * Router for direct connections between two ports with a rubber band effect\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let RubberConnection= draw2d.Connection.extend({\r\n * NAME: \"RubberConnection\",\r\n *\r\n * init:function(attr, setter, getter)\r\n * {\r\n * this._super(extend({\r\n * color: \"#33691e\",\r\n * stroke:1,\r\n * outlineStroke:0,\r\n * outlineColor:null\r\n * },attr),\r\n * setter,\r\n * getter);\r\n *\r\n *\r\n * this.setRouter(new draw2d.layout.connection.RubberbandRouter());\r\n * },\r\n *\r\n * repaint:function(attributes)\r\n * {\r\n * if (this.repaintBlocked===true || this.shape === null){\r\n * return;\r\n * }\r\n * attributes= attributes || {};\r\n * // enrich the rendering with a \"fill\" attribute\r\n * if(typeof attributes.fill === \"undefined\"){\r\n * \t attributes.fill = \"#aed581\";\r\n * }\r\n * this._super(attributes);\r\n * }\r\n * });\r\n *\r\n * let createConnection=function(){\r\n * let con = new RubberConnection();\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * let end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/SketchConnectionRouter.js\":\n/*!*********************************************************!*\\\n !*** ./src/layout/connection/SketchConnectionRouter.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.SketchConnectionRouter = _packages2.default.layout.connection.MazeConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.SketchConnectionRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n\n this.useSpline = true;\n this.useShift = 5;\n this.useSimplifyValue = 0.2;\n this.finder = new PF.JumpPointFinder({ allowDiagonal: false, dontCrossCorners: true });\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n }\n\n}); /**\r\n * @class draw2d.layout.connection.SketchConnectionRouter\r\n *\r\n * Provide a router which routes the connection in a hand drawn manner.\r\n *\r\n * @example preview small frame\r\n *\r\n * let createConnection=function(){\r\n * let con = new draw2d.Connection();\r\n * con.setRouter(new draw2d.layout.connection.SketchConnectionRouter());\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let f1 = new draw2d.shape.analog.OpAmp({x:10, y:10});\r\n * let f2 = new draw2d.shape.analog.ResistorVertical({angle:90, height:20, x:300, y:150});\r\n *\r\n * // ...add it to the canvas\r\n * //\r\n * canvas.add( f1);\r\n * canvas.add( f2);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(f1.getOutputPort(0));\r\n * c.setTarget(f2.getHybridPort(0));\r\n * canvas.add(c);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @since 2.7.2\r\n * @extends draw2d.layout.connection.MazeConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/SplineConnectionRouter.js\":\n/*!*********************************************************!*\\\n !*** ./src/layout/connection/SplineConnectionRouter.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.SplineConnectionRouter = _packages2.default.layout.connection.ManhattanConnectionRouter.extend({\n\n NAME: \"draw2d.layout.connection.SplineConnectionRouter\",\n\n /**\r\n * @constructor Creates a new Router object\r\n */\n init: function init() {\n this._super();\n\n // this.spline = new draw2d.util.spline.CatmullRomSpline();\n this.spline = new _packages2.default.util.spline.CubicSpline();\n // this.spline = new draw2d.util.spline.BezierSpline();\n\n this.MINDIST = 50;\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(conn, routingHints) {\n var i = void 0;\n var fromPt = conn.getStartPoint();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPoint();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n // calculate the manhatten bend points between start/end.\n //\n this._route(conn, toPt, toDir, fromPt, fromDir);\n\n var ps = conn.getVertices();\n\n conn.oldPoint = null;\n conn.lineSegments = new _packages2.default.util.ArrayList();\n conn.vertices = new _packages2.default.util.ArrayList();\n\n var splinePoints = this.spline.generate(ps, 8);\n splinePoints.each(function (i, e) {\n conn.addPoint(e);\n });\n\n // calculate the path string for the SVG rendering\n //\n ps = conn.getVertices();\n var length = ps.getSize();\n var p = ps.get(0);\n var path = [\"M\", p.x, \" \", p.y];\n for (i = 1; i < length; i++) {\n p = ps.get(i);\n path.push(\"L\", p.x, \" \", p.y);\n }\n conn.svgPathString = path.join(\"\");\n }\n}); /**\r\n * @class draw2d.layout.connection.SplineConnectionRouter\r\n *\r\n * A ManhattanConnectionRouter with an spline interpolation between the bend points.\r\n *\r\n * @example preview small frame\r\n *\r\n * let createConnection=function(){\r\n * let con = new draw2d.Connection();\r\n * con.setRouter(new draw2d.layout.connection.SplineConnectionRouter());\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let f1 = new draw2d.shape.analog.OpAmp({x:10, y:10});\r\n * let f2 = new draw2d.shape.analog.ResistorVertical({angle:90, height:20, x:300, y:150});\r\n *\r\n * // ...add it to the canvas\r\n * //\r\n * canvas.add( f1);\r\n * canvas.add( f2);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(f1.getOutputPort(0));\r\n * c.setTarget(f2.getHybridPort(0));\r\n * canvas.add(c);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.layout.connection.ManhattanConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/VertexRouter.js\":\n/*!***********************************************!*\\\n !*** ./src/layout/connection/VertexRouter.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.VertexRouter = _packages2.default.layout.connection.ConnectionRouter.extend({\n\n NAME: \"draw2d.layout.connection.VertexRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.VertexSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * Invalidates the given Connection\r\n */\n invalidate: function invalidate() {},\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(connection, routingHints) {\n // reuse all existing vertex points\n //\n var count = routingHints.oldVertices.getSize();\n for (var i = 0; i < count; i++) {\n connection.addPoint(routingHints.oldVertices.get(i));\n }\n\n var ps = connection.getVertices();\n\n // respect the calculated anchor position if the start/end port has set any Anchor impl.\n var startAnchor = connection.getStartPosition(ps.get(1));\n var endAnchor = connection.getEndPosition(ps.get(ps.getSize() - 2));\n ps.first().setPosition(startAnchor);\n ps.last().setPosition(endAnchor);\n\n this._paint(connection);\n },\n\n /**\r\n * @method\r\n * Callback method for the PolyLine or Connection to check if it possible to remove a vertex from\r\n * the list. The router can send an veto for this.\r\n * Per default it is not possible to remove any vertex from the PolyLine exceptional if any interactive\r\n * router is installed.\r\n *\r\n * @param {draw2d.Connection} conn\r\n * @param {Number} index\r\n *\r\n * @since 4.2.3\r\n */\n canRemoveVertexAt: function canRemoveVertexAt(conn, index) {\n return false;\n },\n\n /**\r\n * Callback method for the PolyLine or Connection to verify that a segment is deletable.\r\n *\r\n * @param {draw2d.Connection} conn\r\n * @param {Number} index\r\n *\r\n * @returns {Boolean}\r\n * @since 4.2.3\r\n */\n canRemoveSegmentAt: function canRemoveSegmentAt(conn, index) {\n\n var segmentCount = conn.getVertices().getSize() - 1; // segmentCount is one less than vertex count\n\n // The first and last segment isn't deletable\n //\n if (index <= 0 || index >= segmentCount) {\n return false;\n }\n\n // a connection need at least one strokes\n //\n return segmentCount >= 2;\n },\n\n /**\r\n * @method\r\n * Tweak or enrich the polyline persistence data with routing information\r\n *\r\n * @since 2.10.0\r\n * @param {draw2d.shape.basic.PolyLine} line\r\n * @param {Object} memento The memento data of the polyline\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes(line, memento) {\n memento.vertex = [];\n\n line.getVertices().each(function (i, e) {\n memento.vertex.push({ x: e.x, y: e.y });\n });\n\n return memento;\n },\n\n /**\r\n * @method\r\n * set the attributes for the polyline with routing information\r\n *\r\n * @since 2.10.0\r\n * @param {Object} memento\r\n */\n setPersistentAttributes: function setPersistentAttributes(line, memento) {\n // restore the points from the JSON data and add them to the polyline\n //\n if (Array.isArray(memento.vertex) && memento.vertex.length > 1) {\n\n line.oldPoint = null;\n line.lineSegments = new _packages2.default.util.ArrayList();\n\n line.setVertices(memento.vertex);\n }\n },\n\n /**\r\n * @method\r\n *\r\n * The draw2d.Connection delegates the drag operation to the router. The router can\r\n * handle the different constraints of the connection and just drag&drop a single segment\r\n * instead of the complete connection.\r\n *\r\n * @param {draw2d.shape.basic.Line} line the related line to handle\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n *\r\n * @since 6.1.0\r\n */\n onDrag: function onDrag(line, dx, dy, dx2, dy2) {\n var count = line.getVertices().getSize() - 1;\n for (var i = 1; i < count; i++) {\n line.getVertex(i).translate(dx2, dy2);\n }\n }\n\n}); /**\r\n * @class draw2d.layout.connection.VertexRouter\r\n *\r\n * A Router with unlimited vertices.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // Override the default connection type. This is used during drag&drop operations of ports.\r\n * //\r\n * let createConnection=function(){\r\n * // return my special kind of connection\r\n * let con = new draw2d.Connection();\r\n * con.setRouter(new draw2d.layout.connection.VertexRouter());\r\n * return con;\r\n * };\r\n *\r\n * // Install a special policy into the canvas to use my own implementation of connection\r\n * // if we drag&drop a port\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * let end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/BottomLocator.js\":\n/*!*********************************************!*\\\n !*** ./src/layout/locator/BottomLocator.js ***!\n \\*********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.BottomLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.BottomLocator\",\n\n /**\r\n * @constructor\r\n *\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var parent = target.getParent();\n var boundingBox = parent.getBoundingBox();\n // I made a wrong decision in the port handling: anchor point\n // is in the center and not topLeft. Now I must correct this flaw here, and there, and...\n // shit happens.\n var offset = parent instanceof _packages2.default.Port ? boundingBox.w / 2 : 0;\n\n var targetBoundingBox = target.getBoundingBox();\n if (target instanceof _packages2.default.Port) {\n target.setPosition(boundingBox.w / 2 - offset, boundingBox.h);\n } else {\n target.setPosition(boundingBox.w / 2 - targetBoundingBox.w / 2 - offset, 2 + boundingBox.h);\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.BottomLocator\r\n *\r\n * A bottomLocator is used to place figures at the bottom of a parent shape.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // create a basic figure and add a Label/child via API call\r\n * //\r\n * var circle = new draw2d.shape.basic.Circle({\r\n * x:100,\r\n * y:50,\r\n * diameter:100,\r\n * stroke: 3,\r\n * color:\"#A63343\",\r\n * bgColor:\"#E65159\"\r\n * });\r\n *\r\n * circle.add(new draw2d.shape.basic.Label({text:\"Bottom Label\"}), new draw2d.layout.locator.BottomLocator());\r\n * canvas.add( circle);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/CenterLocator.js\":\n/*!*********************************************!*\\\n !*** ./src/layout/locator/CenterLocator.js ***!\n \\*********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.CenterLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.CenterLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a locator with associated parent.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var parent = target.getParent();\n var boundingBox = parent.getBoundingBox();\n\n // TODO: instanceof is always a HACK. ugly. Redirect the call to the figure instead of \n // determine the position with a miracle.\n //\n if (target instanceof _packages2.default.Port) {\n target.setPosition(boundingBox.w / 2, boundingBox.h / 2);\n } else {\n var targetBoundingBox = target.getBoundingBox();\n target.setPosition((boundingBox.w / 2 - targetBoundingBox.w / 2 | 0) + 0.5, (boundingBox.h / 2 - targetBoundingBox.h / 2 | 0) + 0.5);\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.CenterLocator\r\n *\r\n * A CenterLocator is used to place figures in the center of a parent shape.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // create a basic figure and add a Label/child via API call\r\n * //\r\n * let circle = new draw2d.shape.basic.Circle({diameter:120});\r\n * circle.setStroke(3);\r\n * circle.setColor(\"#A63343\");\r\n * circle.setBackgroundColor(\"#E65159\");\r\n * circle.add(new draw2d.shape.basic.Label({text:\"Center Label\"}), new draw2d.layout.locator.CenterLocator());\r\n * canvas.add( circle, 100,50);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/ConnectionLocator.js\":\n/*!*************************************************!*\\\n !*** ./src/layout/locator/ConnectionLocator.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.ConnectionLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.ConnectionLocator\",\n\n /**\r\n * @constructor\r\n * Default constructor for a Locator which can layout a figure in context of a\r\n * {@link draw2d.Connector}\r\n */\n init: function init() {\n this._super();\n }\n\n}); /**\r\n * @class draw2d.layout.locator.ConnectionLocator\r\n *\r\n * Repositions a Figure attached to a Connection when the\r\n * Connection is moved. Provides for alignment at the start\r\n * (source), middle, or end (target) of the Connection.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/DraggableLocator.js\":\n/*!************************************************!*\\\n !*** ./src/layout/locator/DraggableLocator.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.DraggableLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.DraggableLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a locator with associated parent.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n bind: function bind(parent, child) {\n // override the parent implementation to avoid\n // that the child is \"!selectable\" and \"!draggable\"\n\n // Don't redirect the selection handling to the parent\n // Using the DraggableLocator provides the ability to the children\n // that they are selectable and draggable. Remove the SelectionAdapter from the parent\n // assignment.\n child.setSelectionAdapter(function () {\n return child;\n });\n },\n\n unbind: function unbind(parent, child) {\n // use default\n child.setSelectionAdapter(null);\n }\n}); /**\r\n * @class draw2d.layout.locator.DraggableLocator\r\n *\r\n * A DraggableLocator is used to place figures relative to the parent top left corner. It is\r\n * possible to move a child node via drag&drop.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/InputPortLocator.js\":\n/*!************************************************!*\\\n !*** ./src/layout/locator/InputPortLocator.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.InputPortLocator = _packages2.default.layout.locator.PortLocator.extend({\n NAME: \"draw2d.layout.locator.InputPortLocator\",\n\n /**\r\n * @constructor\r\n * Default constructor for a Locator which can layout a port in context of a\r\n * {@link draw2d.shape.node.Node}\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Controls the location of an {@link draw2d.Figure}\r\n *\r\n * @param {Number} index port index of the figure\r\n * @param {draw2d.Figure} figure the figure to control\r\n *\r\n * @template\r\n **/\n relocate: function relocate(index, figure) {\n var node = figure.getParent();\n\n var dividerFactor = 1;\n var thisNAME = this.NAME;\n var portIndex = 1;\n node.getPorts().each(function (i, p) {\n portIndex = p === figure ? dividerFactor : portIndex;\n dividerFactor += p.getLocator().NAME === thisNAME ? 1 : 0;\n });\n this.applyConsiderRotation(figure, 0, node.getHeight() / dividerFactor * portIndex);\n }\n\n}); /**\r\n * @class draw2d.layout.locator.InputPortLocator\r\n *\r\n * Repositions a Figure attached to a Connection when the\r\n * Connection is moved. Provides for alignment at the start\r\n * (source), middle, or end (target) of the Connection.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.PortLocator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/LeftLocator.js\":\n/*!*******************************************!*\\\n !*** ./src/layout/locator/LeftLocator.js ***!\n \\*******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.LeftLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.LeftLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a locator with associated parent.\r\n *\r\n * @param attr\r\n */\n init: function init(attr) {\n this._super();\n\n this.margin = attr && \"margin\" in attr ? attr.margin : 5;\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var parent = target.getParent();\n var boundingBox = parent.getBoundingBox();\n\n // I made a wrong decision in the port handling: anchor point\n // is in the center and not topLeft. Now I must correct this flaw here, and there, and...\n // shit happens.\n var offset = parent instanceof _packages2.default.Port ? boundingBox.h / 2 : 0;\n\n if (target instanceof _packages2.default.Port) {\n target.setPosition(0, boundingBox.h / 2 - offset);\n } else {\n var targetBoundingBox = target.getBoundingBox();\n target.setPosition(-targetBoundingBox.w - this.margin, boundingBox.h / 2 - targetBoundingBox.h / 2 - offset);\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.LeftLocator\r\n *\r\n * A LeftLocator is used to place figures to the left of a parent shape.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // create a basic figure and add a Label/child via API call\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * start.add(new draw2d.shape.basic.Label({text:\"Left Label\"}), new draw2d.layout.locator.LeftLocator({\r\n * margin:10 // distance to the parent shape\r\n * }));\r\n * canvas.add( start, 100,50);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/Locator.js\":\n/*!***************************************!*\\\n !*** ./src/layout/locator/Locator.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.Locator = Class.extend({\n NAME: \"draw2d.layout.locator.Locator\",\n\n /**\r\n * @constructor\r\n * Initial Constructor\r\n *\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n * Callback method if a child is bounded to a parent. This is\r\n * the perfect moment to prepare the child node with some basic\r\n * behaviour which are forced by the <code>Locator</code>\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {draw2d.Figure} child\r\n */\n bind: function bind(figure, child) {\n // default behaviour of an Locator. The child isn't draggable and\n // the locator defines the position of the child.\n //\n child.setDraggable(false);\n child.setSelectable(false);\n },\n\n /**\r\n * @method\r\n * Callback method if a child is unbounded to the locator.\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {draw2d.Figure} child\r\n */\n unbind: function unbind(figure, child) {},\n\n /**\r\n * @method\r\n * Controls the location of an I{@link draw2d.Figure}\r\n *\r\n * @param {Number} index child index of the figure\r\n * @param {draw2d.Figure} figure the figure to control\r\n *\r\n * @template\r\n **/\n relocate: function relocate(index, figure) {\n // just repaint the child to update the SVG related to the new location\n // of the parent.\n figure.repaint();\n },\n\n /**\r\n * @method\r\n * Return a clone of the locator object\r\n *\r\n * @returns\r\n */\n clone: function clone() {\n return eval(\"new \" + this.NAME + \"()\");\n }\n}); /**\r\n * @class draw2d.layout.locator.Locator\r\n *\r\n * Controls the location of an IFigure.\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/ManhattanMidpointLocator.js\":\n/*!********************************************************!*\\\n !*** ./src/layout/locator/ManhattanMidpointLocator.js ***!\n \\********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.ManhattanMidpointLocator = _packages2.default.layout.locator.ConnectionLocator.extend({\n NAME: \"draw2d.layout.locator.ManhattanMidpointLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a ManhattanMidpointLocator with associated Connection c.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure always in the center of an edge.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var conn = target.getParent();\n var points = conn.getVertices();\n\n var segmentIndex = Math.floor((points.getSize() - 2) / 2);\n if (points.getSize() <= segmentIndex + 1) return;\n\n var p1 = points.get(segmentIndex);\n var p2 = points.get(segmentIndex + 1);\n\n target.setPosition((p2.x - p1.x) / 2 + p1.x - target.getWidth() / 2 | 0, (p2.y - p1.y) / 2 + p1.y - target.getHeight() / 2 | 0);\n }\n}); /**\r\n * @class draw2d.layout.locator.ManhattanMidpointLocator\r\n *\r\n * A ManhattanMidpointLocator that is used to place figures at the midpoint of a Manhatten routed\r\n * connection. The midpoint is always in the center of an edge.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * //create and add two Node which contains Ports (In and OUT)\r\n * let start = new draw2d.shape.node.Start({x:50,y:50});\r\n * let end = new draw2d.shape.node.End({x:230,y:100});\r\n *\r\n * canvas.add( start);\r\n * canvas.add( end);\r\n *\r\n * // Create a Connection and connect he Start and End node\r\n * //\r\n * let c = new draw2d.Connection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n * // create a label which should attach to the connection\r\n * //\r\n * let label = new draw2d.shape.basic.Label({text:\"I'm a Label\"});\r\n * label.setColor(\"#0d0d0d\");\r\n * label.setFontColor(\"#0d0d0d\");\r\n * label.setBackgroundColor(\"#f0f0f0\");\r\n *\r\n * // add the decoration to the connection with a ManhattanMidpointLocator.\r\n * //\r\n * c.add(label, new draw2d.layout.locator.ManhattanMidpointLocator());\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.ConnectionLocator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/OutputPortLocator.js\":\n/*!*************************************************!*\\\n !*** ./src/layout/locator/OutputPortLocator.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.OutputPortLocator = _packages2.default.layout.locator.PortLocator.extend({\n NAME: \"draw2d.layout.locator.OutputPortLocator\",\n\n /**\r\n * @constructor\r\n * Default constructor for a Locator which can layout a port in context of a\r\n * {@link draw2d.shape.node.Node}\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Controls the location of an I{@link draw2d.Figure}\r\n *\r\n * @param {Number} index child index of the figure\r\n * @param {draw2d.Figure} figure the figure to control\r\n *\r\n * @template\r\n **/\n relocate: function relocate(index, figure) {\n var node = figure.getParent();\n var dividerFactor = 1;\n var thisNAME = this.NAME;\n var portIndex = 1;\n node.getPorts().each(function (i, p) {\n portIndex = p === figure ? dividerFactor : portIndex;\n dividerFactor += p.getLocator().NAME === thisNAME ? 1 : 0;\n });\n this.applyConsiderRotation(figure, node.getWidth(), node.getHeight() / dividerFactor * portIndex);\n }\n\n}); /**\r\n * @class draw2d.layout.locator.OutputPortLocator\r\n *\r\n * Repositions a Figure attached to a Connection when the\r\n * Connection is moved. Provides for alignment at the start\r\n * (source), middle, or end (target) of the Connection.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.PortLocator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/ParallelMidpointLocator.js\":\n/*!*******************************************************!*\\\n !*** ./src/layout/locator/ParallelMidpointLocator.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.ParallelMidpointLocator = _packages2.default.layout.locator.ConnectionLocator.extend({\n NAME: \"draw2d.layout.locator.ParallelMidpointLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a ParallelMidpointLocator with optional padding to the connection.\r\n *\r\n * if the parameter <b>distanceFromConnection</b> is less than zero the label is\r\n * placed above of the connection. Else the label is below the connection.\r\n *\r\n * @param {Number} distanceFromConnection the distance of the label to the connection.\r\n */\n init: function init(distanceFromConnection) {\n this._super();\n\n if (typeof distanceFromConnection !== \"undefined\") {\n this.distanceFromConnection = parseFloat(distanceFromConnection);\n } else {\n this.distanceFromConnection = -5;\n }\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure always in the center of an edge.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var conn = target.getParent();\n var points = conn.getVertices();\n\n var segmentIndex = Math.floor((points.getSize() - 2) / 2);\n if (points.getSize() <= segmentIndex + 1) {\n return;\n }\n\n var p1 = points.get(segmentIndex);\n var p2 = points.get(segmentIndex + 1);\n\n // calculate the distance of the label (above or below the connection)\n var distance = this.distanceFromConnection <= 0 ? this.distanceFromConnection - target.getHeight() : this.distanceFromConnection;\n\n // get the angle of the segment\n var nx = p1.x - p2.x;\n var ny = p1.y - p2.y;\n var length = Math.sqrt(nx * nx + ny * ny);\n var radian = -Math.asin(ny / length);\n var angle = 180 / Math.PI * radian;\n if (radian < 0) {\n if (p2.x < p1.x) {\n radian = Math.abs(radian) + Math.PI;\n angle = 360 - angle;\n distance = -distance - target.getHeight();\n } else {\n radian = Math.PI * 2 - Math.abs(radian);\n angle = 360 + angle;\n }\n } else {\n if (p2.x < p1.x) {\n radian = Math.PI - radian;\n angle = 360 - angle;\n distance = -distance - target.getHeight();\n }\n }\n\n var rotAnchor = this.rotate(length / 2 - target.getWidth() / 2, distance, 0, 0, radian);\n\n // rotate the x/y coordinate with the calculated angle around \"p1\"\n //\n var rotCenterOfLabel = this.rotate(0, 0, target.getWidth() / 2, target.getHeight() / 2, radian);\n\n target.setRotationAngle(angle);\n target.setPosition(rotAnchor.x - rotCenterOfLabel.x + p1.x, rotAnchor.y - rotCenterOfLabel.y + p1.y);\n },\n\n rotate: function rotate(x, y, xm, ym, radian) {\n var cos = Math.cos,\n sin = Math.sin;\n\n // Subtract midpoints, so that midpoint is translated to origin\n // and add it in the end again\n return {\n x: (x - xm) * cos(radian) - (y - ym) * sin(radian) + xm,\n y: (x - xm) * sin(radian) + (y - ym) * cos(radian) + ym\n };\n }\n\n}); /**\r\n * @class draw2d.layout.locator.ParallelMidpointLocator\r\n *\r\n * A ParallelMidpointLocator that is used to place label at the midpoint of a routed\r\n * connection. The midpoint is always in the center of an edge.\r\n * The label is aligned to the connection angle at the calculated conection segment.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.ConnectionLocator\r\n * @since 4.4.4\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/PolylineMidpointLocator.js\":\n/*!*******************************************************!*\\\n !*** ./src/layout/locator/PolylineMidpointLocator.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.PolylineMidpointLocator = _packages2.default.layout.locator.ManhattanMidpointLocator.extend({\n NAME: \"draw2d.layout.locator.PolylineMidpointLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a ManhattanMidpointLocator with associated Connection c.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var conn = target.getParent();\n var points = conn.getVertices();\n\n // it has an event count of points -> use the manhattan algorithm...this is working\n // well in this case\n if (points.getSize() % 2 === 0) {\n this._super(index, target);\n }\n // odd count of points. take the center point as fulcrum\n else {\n var index = Math.floor(points.getSize() / 2);\n var p1 = points.get(index);\n target.setPosition(p1.x - target.getWidth() / 2, p1.y - target.getHeight() / 2);\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.PolylineMidpointLocator\r\n *\r\n * A PolylineMidpointLocator is used to place figures at the midpoint of a routed\r\n * connection. <br>\r\n * If the connection did have an odd count of points the figure is located in the center vertex of the polyline.<br>\r\n * On an even count of junction point, the figure will be center on the middle segment of the ploy line.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.ManhattanMidpointLocator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/PortLocator.js\":\n/*!*******************************************!*\\\n !*** ./src/layout/locator/PortLocator.js ***!\n \\*******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.PortLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.PortLocator\",\n\n /**\r\n * @constructor\r\n * Default constructor for a Locator which can layout a port in context of a\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n applyConsiderRotation: function applyConsiderRotation(port, x, y) {\n var parent = port.getParent();\n\n // determine the width/height before manipulate the \n // matrix of the shape\n var halfW = parent.getWidth() / 2;\n var halfH = parent.getHeight() / 2;\n\n var rotAngle = parent.getRotationAngle();\n var m = Raphael.matrix();\n m.rotate(rotAngle, halfW, halfH);\n if (rotAngle === 90 || rotAngle === 270) {\n var ratio = parent.getHeight() / parent.getWidth();\n m.scale(ratio, 1 / ratio, halfW, halfH);\n }\n\n port.setPosition(m.x(x, y), m.y(x, y));\n }\n}); /**\r\n * @class draw2d.layout.locator.PortLocator\r\n *\r\n * The port locator calculates the position of an port. All ports MUST have a locator\r\n * if you add them as child to a node.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/RightLocator.js\":\n/*!********************************************!*\\\n !*** ./src/layout/locator/RightLocator.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.RightLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.RightLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a locator with associated parent.\r\n *\r\n */\n init: function init(attr) {\n this._super();\n\n this.margin = attr && \"margin\" in attr ? attr.margin : 5;\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var parent = target.getParent();\n var boundingBox = parent.getBoundingBox();\n\n // I made a wrong decision in the port handling: anchor point\n // is in the center and not topLeft. Now I must correct this flaw here, and there, and...\n // shit happens.\n var offset = parent instanceof _packages2.default.Port ? boundingBox.h / 2 : 0;\n\n if (target instanceof _packages2.default.Port) {\n target.setPosition(boundingBox.w, boundingBox.h / 2 - offset);\n } else {\n var targetBoundingBox = target.getBoundingBox();\n target.setPosition(boundingBox.w + this.margin, boundingBox.h / 2 - targetBoundingBox.h / 2 - offset);\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.RightLocator\r\n *\r\n * A RightLocator is used to place figures to the right of a parent shape.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // create a basic figure and add a Label/child via API call\r\n * //\r\n * var end = new draw2d.shape.node.End();\r\n * end.add(new draw2d.shape.basic.Label({text:\"Right Label\"}), new draw2d.layout.locator.RightLocator({\r\n * margin: 10 // distance to the parent shape\r\n * }));\r\n * canvas.add( end, 50,50);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/SmartDraggableLocator.js\":\n/*!*****************************************************!*\\\n !*** ./src/layout/locator/SmartDraggableLocator.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.SmartDraggableLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.SmartDraggableLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a locator with associated parent.\r\n *\r\n */\n init: function init() {\n this._super();\n\n // description see \"bind\" method\n this.boundedCorners = {\n init: false,\n parent: 0,\n child: 0,\n dist: Number.MAX_SAFE_INTEGER,\n xOffset: 0,\n yOffset: 0\n };\n },\n\n bind: function bind(parent, child) {\n var _this = this;\n // determine the best corner of the parent/child node and stick to the calculated corner\n // In the example below it is R1.2 in combination with R2.0\n //\n // 0 1\n // +-----------+\n // | |\n // | R1 |\n // +-----------+\n // 3 2\n //\n // 0 1\n // +-----------+\n // | |\n // | R2 |\n // +-----------+\n // 3 2\n //\n var calcBoundingCorner = function calcBoundingCorner() {\n _this.boundedCorners = {\n init: false,\n parent: 0,\n child: 0,\n dist: Number.MAX_SAFE_INTEGER,\n xOffset: 0,\n yOffset: 0\n };\n var parentVertices = child.getParent().getBoundingBox().getVertices();\n var childVertices = child.getBoundingBox().getVertices();\n var i_parent = void 0,\n i_child = void 0;\n var p1 = void 0,\n p2 = void 0,\n distance = void 0;\n for (i_parent = 0; i_parent < parentVertices.getSize(); i_parent++) {\n for (i_child = 0; i_child < childVertices.getSize(); i_child++) {\n p1 = parentVertices.get(i_parent);\n p2 = childVertices.get(i_child);\n distance = Math.abs(p1.distance(p2));\n if (distance < _this.boundedCorners.dist) {\n _this.boundedCorners = {\n parent: i_parent,\n child: i_child,\n dist: distance,\n xOffset: p1.x - p2.x,\n yOffset: p1.y - p2.y\n };\n }\n }\n }\n _this.boundedCorners.init = true;\n };\n\n // override the parent implementation to avoid\n // that the child is \"!selectable\" and \"!draggable\"\n\n // Don't redirect the selection handling to the parent\n // Using the DraggableLocator provides the ability to the children\n // that they are selectable and draggable. Remove the SelectionAdapter from the parent\n // assignment.\n child.setSelectionAdapter(function () {\n return child;\n });\n\n child.getParent().on(\"added\", calcBoundingCorner);\n child.on(\"dragend\", calcBoundingCorner);\n },\n\n unbind: function unbind(parent, child) {\n // use default\n child.setSelectionAdapter(null);\n },\n\n /**\r\n * @method\r\n * Controls the location of an I{@link draw2d.Figure}\r\n *\r\n * @param {Number} index child index of the figure\r\n * @param {draw2d.Figure} figure the figure to control\r\n *\r\n * @template\r\n **/\n relocate: function relocate(index, figure) {\n this._super(index, figure);\n if (this.boundedCorners.init === true) {\n var parentVertices = figure.getParent().getBoundingBox().getVertices();\n var childVertices = figure.getBoundingBox().getVertices();\n var p1 = parentVertices.get(this.boundedCorners.parent);\n var p2 = childVertices.get(this.boundedCorners.child);\n\n var xOffset = p1.x - p2.x;\n var yOffset = p1.y - p2.y;\n // restore the initial distance from the corner by adding the new offset\n // to the position of the child\n figure.translate(xOffset - this.boundedCorners.xOffset, yOffset - this.boundedCorners.yOffset);\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.DraggableLocator\r\n *\r\n * A DraggableLocator is used to place figures relative to the parent nearest corner. It is\r\n * possible to move a child node via drag&drop.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/TopLocator.js\":\n/*!******************************************!*\\\n !*** ./src/layout/locator/TopLocator.js ***!\n \\******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.TopLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.TopLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a ManhattanMidpointLocator with associated Connection c.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var parent = target.getParent();\n var boundingBox = parent.getBoundingBox();\n\n // I made a wrong decision in the port handling: anchor point\n // is in the center and not topLeft. Now I must correct this flaw here, and there, and...\n // shit happens.\n var offset = parent instanceof _packages2.default.Port ? boundingBox.w / 2 : 0;\n\n var targetBoundingBox = target.getBoundingBox();\n if (target instanceof _packages2.default.Port) {\n target.setPosition(boundingBox.w / 2 - offset, 0);\n } else {\n target.setPosition(boundingBox.w / 2 - targetBoundingBox.w / 2 - offset, -(targetBoundingBox.h + 2));\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.TopLocator\r\n *\r\n * A TopLocator is used to place figures at the top/center of a parent shape.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // create a basic figure and add a Label/child via API call\r\n * //\r\n * let circle = new draw2d.shape.basic.Circle({\r\n * x:100,\r\n * y:70,\r\n * diameter:80,\r\n * stroke: 3,\r\n * color:\"#A63343\",\r\n * bgColor:\"#E65159\"\r\n * });\r\n *\r\n * circle.add(new draw2d.shape.basic.Label({text:\"Top Label\"}), new draw2d.layout.locator.TopLocator());\r\n * canvas.add( circle);\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/XYAbsPortLocator.js\":\n/*!************************************************!*\\\n !*** ./src/layout/locator/XYAbsPortLocator.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.XYAbsPortLocator = _packages2.default.layout.locator.PortLocator.extend({\n NAME: \"draw2d.layout.locator.XYAbsPortLocator\",\n\n /**\r\n * @constructor\r\n *\r\n * {@link draw2d.shape.node.Node}\r\n *\r\n * @param {Number} x the x coordinate of the port relative to the left of the parent\r\n * @param {Number} y the y coordinate of the port relative to the top of the parent\r\n */\n init: function init(x, y) {\n this._super();\n\n this.x = x;\n this.y = y;\n },\n\n /**\r\n * @method\r\n * Controls the location of an {@link draw2d.Figure}\r\n *\r\n * @param {Number} index child index of the figure\r\n * @param {draw2d.Figure} figure the figure to control\r\n *\r\n * @template\r\n **/\n relocate: function relocate(index, figure) {\n this.applyConsiderRotation(figure, this.x, this.y);\n }\n\n}); /**\r\n * @class draw2d.layout.locator.XYAbsPortLocator\r\n *\r\n * Create a locator for fixed x/y coordinate position. The port in the example below is\r\n * always 20px below of the top border.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * var figure = new draw2d.shape.basic.Rectangle({x:130,y:30,width:100,height:60});\r\n * figure.createPort(\"input\", new draw2d.layout.locator.XYAbsPortLocator(0,20));\r\n *\r\n * canvas.add(figure);\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.PortLocator\r\n * @since 4.0.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/XYRelPortLocator.js\":\n/*!************************************************!*\\\n !*** ./src/layout/locator/XYRelPortLocator.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.XYRelPortLocator = _packages2.default.layout.locator.PortLocator.extend({\n NAME: \"draw2d.layout.locator.XYRelPortLocator\",\n\n /**\r\n * @constructor\r\n *\r\n *\r\n * @param {Number} xPercentage the x coordinate in percent of the port relative to the left of the parent\r\n * @param {Number} yPercentage the y coordinate in percent of the port relative to the top of the parent\r\n */\n init: function init(xPercentage, yPercentage) {\n this._super();\n\n this.x = xPercentage;\n this.y = yPercentage;\n },\n\n /**\r\n * @method\r\n * Controls the location of an I{@link draw2d.Figure}\r\n *\r\n * @param {Number} index child index of the figure\r\n * @param {draw2d.Figure} figure the figure to control\r\n *\r\n * @template\r\n **/\n relocate: function relocate(index, figure) {\n var parent = figure.getParent();\n\n this.applyConsiderRotation(figure, parent.getWidth() / 100 * this.x, parent.getHeight() / 100 * this.y);\n }\n\n}); /**\r\n * @class draw2d.layout.locator.XYRelPortLocator\r\n *\r\n * Create a locator for a relative x/y coordinate position. The coordinates are named in percentage [0..100%]\r\n * relative to the top/left corner of the parent node.<br>\r\n * <br>\r\n * <br>\r\n * Resize the shape in the example to see what happens. The port top position is always 20% of the shape height.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.basic.Rectangle({x:130,y:30,width:100,height:60});\r\n * figure.createPort(\"input\", new draw2d.layout.locator.XYRelPortLocator(0,20));\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.PortLocator\r\n * @since 4.0.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/mesh/ExplodeLayouter.js\":\n/*!********************************************!*\\\n !*** ./src/layout/mesh/ExplodeLayouter.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.mesh.ExplodeLayouter = _packages2.default.layout.mesh.MeshLayouter.extend({\n\n MIN_MARGIN: 40,\n\n /**\r\n * @constructor \r\n * Creates a new layouter object.\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n * Return a changes list for an existing mesh/canvas to ensure that the element to insert \r\n * did have enough space.\r\n * \r\n * @param {draw2d.Canvas} canvas the canvas to use for the analytic\r\n * @param {draw2d.Figure} figure The figure to add to the exising canvas\r\n * @param {Number} x requested x-position for the figure\r\n * @param {Number} y requested y-position for the figure\r\n * \r\n * \r\n * @return {draw2d.util.ArrayList} a list of changes to apply if the user want to insert he figure.\r\n */\n add: function add(canvas, figureToAdd) {\n // changes for the different octant areas\n var changes = [];\n changes[0] = { x: 0, y: 0 };\n changes[1] = { x: 0, y: 0 };\n changes[2] = { x: 0, y: 0 };\n changes[3] = { x: 0, y: 0 };\n changes[4] = { x: 0, y: 0 };\n changes[5] = { x: 0, y: 0 };\n changes[6] = { x: 0, y: 0 };\n changes[7] = { x: 0, y: 0 };\n changes[8] = { x: 0, y: 0 };\n\n var boundingBox = figureToAdd.getBoundingBox();\n\n var figures = canvas.getFigures();\n var figure = null;\n\n var dis = 0;\n var oct = 0;\n var currentOctChanges = null;\n var i = 0;\n for (i = 0; i < figures.getSize(); i++) {\n\n figure = figures.get(i);\n\n // calculate the distance of all corners in relation to the requested x/y coordinate\n //\n if (figure !== figureToAdd) {\n dis = figure.getBoundingBox().getDistance(boundingBox);\n // other figure is to close\n //\n if (dis < this.MIN_MARGIN) {\n // determine the octant of the figure\n oct = this.determineOctant(boundingBox, figure.getBoundingBox());\n\n // all other relevant segments must be arranged too!!\n //\n switch (oct) {\n case 2:\n changes[2].x = Math.max(changes[2].x, this.MIN_MARGIN - dis);\n changes[3].x = Math.max(changes[3].x, this.MIN_MARGIN - dis);\n changes[4].x = Math.max(changes[4].x, this.MIN_MARGIN - dis);\n break;\n case 3:\n changes[2].x = Math.max(changes[2].x, this.MIN_MARGIN - dis);\n changes[3].x = Math.max(changes[3].x, this.MIN_MARGIN - dis);\n changes[4].x = Math.max(changes[4].x, this.MIN_MARGIN - dis);\n break;\n case 4:\n changes[2].x = Math.max(changes[2].x, this.MIN_MARGIN - dis);\n changes[3].x = Math.max(changes[3].x, this.MIN_MARGIN - dis);\n changes[4].x = Math.max(changes[4].x, this.MIN_MARGIN - dis);\n changes[4].y = Math.max(changes[4].y, this.MIN_MARGIN - dis);\n changes[5].y = Math.max(changes[5].y, this.MIN_MARGIN - dis);\n changes[6].y = Math.max(changes[6].y, this.MIN_MARGIN - dis);\n break;\n case 5:\n changes[4].y = Math.max(changes[4].y, this.MIN_MARGIN - dis);\n changes[5].y = Math.max(changes[5].y, this.MIN_MARGIN - dis);\n changes[6].y = Math.max(changes[6].y, this.MIN_MARGIN - dis);\n break;\n case 6:\n changes[4].y = Math.max(changes[4].y, this.MIN_MARGIN - dis);\n changes[5].y = Math.max(changes[5].y, this.MIN_MARGIN - dis);\n changes[6].y = Math.max(changes[6].y, this.MIN_MARGIN - dis);\n break;\n case 8:\n // overlapping\n // we must determine the new distance with the border of the figures\n dis = boundingBox.getBottomRight().getDistance(figure.getBoundingBox().getTopLeft()) | 0;\n\n changes[2].x = Math.max(changes[2].x, this.MIN_MARGIN + dis);\n changes[3].x = Math.max(changes[3].x, this.MIN_MARGIN + dis);\n changes[4].x = Math.max(changes[4].x, this.MIN_MARGIN + dis);\n changes[4].y = Math.max(changes[4].y, this.MIN_MARGIN + dis);\n changes[5].y = Math.max(changes[5].y, this.MIN_MARGIN + dis);\n changes[6].y = Math.max(changes[6].y, this.MIN_MARGIN + dis);\n changes[8].x = Math.max(changes[8].x, this.MIN_MARGIN + dis);\n // \t\t\t\tchanges[8].y = Math.max(changes[8].y,this.MIN_MARGIN+dis);\n }\n }\n }\n // Falls die minimale Distance zu den Objecten kleiner 80 ist, muss ein layout erfolgen\n }\n\n // calculate the adjustment for each figure\n //\n var result = new _packages2.default.util.ArrayList();\n for (i = 0; i < figures.getSize(); i++) {\n figure = figures.get(i);\n if (figure !== figureToAdd) {\n oct = this.determineOctant(boundingBox, figure.getBoundingBox());\n currentOctChanges = changes[oct];\n if (currentOctChanges.x !== 0 || currentOctChanges.y !== 0) {\n result.add(new _packages2.default.layout.mesh.ProposedMeshChange(figure, currentOctChanges.x, currentOctChanges.y));\n }\n }\n }\n\n return result;\n },\n\n /**\r\n * @method\r\n * Determin Octant\r\n *\r\n * 0 | 1 | 2\r\n * __|___|__\r\n * 7 | 8 | 3\r\n * __|___|__\r\n * 6 | 5 | 4\r\n *\r\n * @returns {Number}\r\n */\n determineOctant: function determineOctant(r1, r2) {\n var ox = r1.x;\n var oy = r1.y;\n var ow = r1.w;\n var oh = r1.h;\n\n var cx = r2.x;\n var cy = r2.y;\n var cw = r2.w;\n var ch = r2.h;\n var oct = 0;\n\n if (cx + cw <= ox) {\n if (cy + ch <= oy) {\n oct = 0;\n } else if (cy >= oy + oh) {\n oct = 6;\n } else {\n oct = 7;\n }\n } else if (cx >= ox + ow) {\n if (cy + ch <= oy) {\n oct = 2;\n } else if (cy >= oy + oh) {\n oct = 4;\n } else {\n oct = 3;\n }\n } else if (cy + ch <= oy) {\n oct = 1;\n } else if (cy >= oy + oh) {\n oct = 5;\n } else {\n oct = 8;\n }\n\n return oct;\n }\n});\n/**\r\n * @class draw2d.layout.mesh.ExplodeLayouter\r\n * Routes a {@link draw2d.Connection}, possibly using a constraint.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.mesh.MeshLayouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/mesh/MeshLayouter.js\":\n/*!*****************************************!*\\\n !*** ./src/layout/mesh/MeshLayouter.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.mesh.MeshLayouter = Class.extend({\n\n /**\r\n * @constructor\r\n * Creates a new layouter object.\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n * Return a changes list for an existing mesh/canvas to ensure that the element to insert\r\n * did have enough space.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to use for the analytic\r\n * @param {draw2d.Figure} figure The figure to add to the exising canvas\r\n *\r\n *\r\n * @return {draw2d.util.ArrayList} a list of changes to apply if the user want to insert he figure.\r\n */\n add: function add(canvas, figure) {\n return new _packages2.default.util.ArrayList();\n }\n});\n/**\r\n * @class draw2d.layout.mesh.MeshLayouter\r\n * Layouter for a mesh or grid.\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/mesh/ProposedMeshChange.js\":\n/*!***********************************************!*\\\n !*** ./src/layout/mesh/ProposedMeshChange.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.mesh.ProposedMeshChange = Class.extend({\n\n /**\r\n * @constructor\r\n * Creates change object.\r\n */\n init: function init(figure, x, y) {\n this.figure = figure;\n this.x = x;\n this.y = y;\n },\n\n /**\r\n * @method\r\n * Return the related figure.\r\n *\r\n * @return {draw2d.Figure} the figure to the related change proposal\r\n */\n getFigure: function getFigure() {\n return this.figure;\n },\n\n /**\r\n * @method\r\n * The proposed x-coordinate.\r\n *\r\n * @return {Number}\r\n */\n getX: function getX() {\n return this.x;\n },\n\n /**\r\n * @method\r\n * The proposed y-coordinate\r\n *\r\n * @return {Number}\r\n */\n getY: function getY() {\n return this.y;\n }\n\n});\n/**\r\n * @class draw2d.layout.mesh.ProposedMeshChange\r\n * Change proposal for grid/mesh layout changes.\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/lib/Class.exec.js\":\n/*!*******************************!*\\\n !*** ./src/lib/Class.exec.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(/*! !./node_modules/script-loader/addScript.js */ \"./node_modules/script-loader/addScript.js\")(__webpack_require__(/*! !./node_modules/raw-loader!./src/lib/Class.exec.js */ \"./node_modules/raw-loader/index.js!./src/lib/Class.exec.js\"));\n\n/***/ }),\n\n/***/ \"./src/lib/jquery.autoresize.js\":\n/*!**************************************!*\\\n !*** ./src/lib/jquery.autoresize.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/*\r\n * jQuery.fn.autoResize 1.14\r\n * --\r\n * https://github.com/padolsey/jQuery.fn.autoResize\r\n * --\r\n * This program is free software. It comes without any warranty, to\r\n * the extent permitted by applicable law. You can redistribute it\r\n * and/or modify it under the terms of the Do What The Fuck You Want\r\n * To Public License, Version 2, as published by Sam Hocevar. See\r\n * http://sam.zoy.org/wtfpl/COPYING for more details. */\n\n(function ($) {\n\n\tvar uid = 'ar' + +new Date(),\n\t defaults = autoResize.defaults = {\n\t\tonResize: function onResize() {},\n\t\tonBeforeResize: function onBeforeResize() {\n\t\t\treturn 123;\n\t\t},\n\t\tonAfterResize: function onAfterResize() {\n\t\t\treturn 555;\n\t\t},\n\t\tanimate: {\n\t\t\tduration: 200,\n\t\t\tcomplete: function complete() {}\n\t\t},\n\t\textraSpace: 50,\n\t\tminHeight: 'original',\n\t\tmaxHeight: 500,\n\t\tminWidth: 'original',\n\t\tmaxWidth: 500\n\t};\n\n\tautoResize.cloneCSSProperties = ['lineHeight', 'textDecoration', 'letterSpacing', 'fontSize', 'fontFamily', 'fontStyle', 'fontWeight', 'textTransform', 'textAlign', 'direction', 'wordSpacing', 'fontSizeAdjust', 'paddingTop', 'paddingLeft', 'paddingBottom', 'paddingRight', 'width'];\n\n\tautoResize.cloneCSSValues = {\n\t\tposition: 'absolute',\n\t\ttop: -9999,\n\t\tleft: -9999,\n\t\topacity: 0,\n\t\toverflow: 'hidden'\n\t};\n\n\tautoResize.resizableFilterSelector = ['textarea:not(textarea.' + uid + ')', 'input:not(input[type])', 'input[type=text]', 'input[type=password]', 'input[type=email]', 'input[type=url]'].join(',');\n\n\tautoResize.AutoResizer = AutoResizer;\n\n\t$.fn.autoResize = autoResize;\n\n\tfunction autoResize(config) {\n\t\tthis.filter(autoResize.resizableFilterSelector).each(function () {\n\t\t\tnew AutoResizer($(this), config);\n\t\t});\n\t\treturn this;\n\t}\n\n\tfunction AutoResizer(el, config) {\n\n\t\tif (el.data('AutoResizer')) {\n\t\t\tel.data('AutoResizer').destroy();\n\t\t}\n\n\t\tconfig = this.config = $.extend({}, autoResize.defaults, config);\n\t\tthis.el = el;\n\n\t\tthis.nodeName = el[0].nodeName.toLowerCase();\n\n\t\tthis.originalHeight = el.height();\n\t\tthis.previousScrollTop = null;\n\n\t\tthis.value = el.val();\n\n\t\tif (config.maxWidth === 'original') config.maxWidth = el.width();\n\t\tif (config.minWidth === 'original') config.minWidth = el.width();\n\t\tif (config.maxHeight === 'original') config.maxHeight = el.height();\n\t\tif (config.minHeight === 'original') config.minHeight = el.height();\n\n\t\tif (this.nodeName === 'textarea') {\n\t\t\tel.css({\n\t\t\t\tresize: 'none',\n\t\t\t\toverflowY: 'hidden'\n\t\t\t});\n\t\t}\n\n\t\tel.data('AutoResizer', this);\n\n\t\t// Make sure onAfterResize is called upon animation completion\n\t\tconfig.animate.complete = function (f) {\n\t\t\treturn function () {\n\t\t\t\tconfig.onAfterResize.call(el);\n\t\t\t\treturn f.apply(this, arguments);\n\t\t\t};\n\t\t}(config.animate.complete);\n\n\t\tthis.bind();\n\t}\n\n\tAutoResizer.prototype = {\n\n\t\tbind: function bind() {\n\n\t\t\tvar check = $.proxy(function () {\n\t\t\t\tthis.check();\n\t\t\t\treturn true;\n\t\t\t}, this);\n\n\t\t\tthis.unbind();\n\n\t\t\tthis.el.bind('keyup.autoResize', check)\n\t\t\t//.bind('keydown.autoResize', check)\n\t\t\t.bind('change.autoResize', check).bind('paste.autoResize', function () {\n\t\t\t\tsetTimeout(function () {\n\t\t\t\t\tcheck();\n\t\t\t\t}, 0);\n\t\t\t});\n\n\t\t\tif (!this.el.is(':hidden')) {\n\t\t\t\tthis.check(null, true);\n\t\t\t}\n\t\t},\n\n\t\tunbind: function unbind() {\n\t\t\tthis.el.unbind('.autoResize');\n\t\t},\n\n\t\tcreateClone: function createClone() {\n\n\t\t\tvar el = this.el,\n\t\t\t clone = this.nodeName === 'textarea' ? el.clone() : $('<span/>');\n\n\t\t\tthis.clone = clone;\n\n\t\t\t$.each(autoResize.cloneCSSProperties, function (i, p) {\n\t\t\t\tclone[0].style[p] = el.css(p);\n\t\t\t});\n\n\t\t\tclone.removeAttr('name').removeAttr('id').addClass(uid).attr('tabIndex', -1).css(autoResize.cloneCSSValues);\n\n\t\t\tif (this.nodeName === 'textarea') {\n\t\t\t\tclone.height('auto');\n\t\t\t} else {\n\t\t\t\tclone.width('auto').css({\n\t\t\t\t\twhiteSpace: 'nowrap'\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\tcheck: function check(e, immediate) {\n\n\t\t\tif (!this.clone) {\n\t\t\t\tthis.createClone();\n\t\t\t\tthis.injectClone();\n\t\t\t}\n\n\t\t\tvar config = this.config,\n\t\t\t clone = this.clone,\n\t\t\t el = this.el,\n\t\t\t value = el.val();\n\n\t\t\t// Do nothing if value hasn't changed\n\t\t\tif (value === this.prevValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tthis.prevValue = value;\n\n\t\t\tif (this.nodeName === 'input') {\n\n\t\t\t\tclone.text(value);\n\n\t\t\t\t// Calculate new width + whether to change\n\t\t\t\tvar cloneWidth = clone.width(),\n\t\t\t\t newWidth = cloneWidth + config.extraSpace >= config.minWidth ? cloneWidth + config.extraSpace : config.minWidth,\n\t\t\t\t currentWidth = el.width();\n\n\t\t\t\tnewWidth = Math.min(newWidth, config.maxWidth);\n\n\t\t\t\tif (newWidth < currentWidth && newWidth >= config.minWidth || newWidth >= config.minWidth && newWidth <= config.maxWidth) {\n\n\t\t\t\t\tconfig.onBeforeResize.call(el);\n\t\t\t\t\tconfig.onResize.call(el);\n\n\t\t\t\t\tel.scrollLeft(0);\n\n\t\t\t\t\tif (config.animate && !immediate) {\n\t\t\t\t\t\tel.stop(1, 1).animate({\n\t\t\t\t\t\t\twidth: newWidth\n\t\t\t\t\t\t}, config.animate);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tel.width(newWidth);\n\t\t\t\t\t\tconfig.onAfterResize.call(el);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// TEXTAREA\n\n\t\t\tclone.width(el.width()).height(0).val(value).scrollTop(10000);\n\n\t\t\tvar scrollTop = clone[0].scrollTop;\n\n\t\t\tif (!value) {\n\t\t\t\t// empty textarea should be exactly minHeight\n\t\t\t\tscrollTop = config.minHeight;\n\t\t\t\tthis.previousScrollTop = null; // reset state\n\t\t\t} else {\n\t\t\t\t// Don't do anything if scrollTop hasen't changed:\n\t\t\t\tif (this.previousScrollTop === scrollTop) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.previousScrollTop = scrollTop;\n\n\t\t\t\tif (scrollTop + config.extraSpace >= config.maxHeight) {\n\t\t\t\t\tel.css('overflowY', '');\n\t\t\t\t\tscrollTop = config.maxHeight;\n\t\t\t\t\timmediate = true;\n\t\t\t\t} else if (scrollTop + config.extraSpace <= config.minHeight) {\n\t\t\t\t\t// include extraSpace in calculations so the code works correctly\n\t\t\t\t\t// when there are few lines\n\t\t\t\t\tscrollTop = config.minHeight;\n\t\t\t\t} else {\n\t\t\t\t\tel.css('overflowY', 'hidden');\n\t\t\t\t\tscrollTop += config.extraSpace;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconfig.onBeforeResize.call(el);\n\t\t\tconfig.onResize.call(el);\n\n\t\t\t// Either animate or directly apply height:\n\t\t\tif (config.animate && !immediate) {\n\t\t\t\tel.stop(1, 1).animate({\n\t\t\t\t\theight: scrollTop\n\t\t\t\t}, config.animate);\n\t\t\t} else {\n\t\t\t\tel.height(scrollTop);\n\t\t\t\tconfig.onAfterResize.call(el);\n\t\t\t}\n\t\t},\n\n\t\tdestroy: function destroy() {\n\t\t\tthis.unbind();\n\t\t\tthis.el.removeData('AutoResizer');\n\t\t\tthis.clone.remove();\n\t\t\tdelete this.el;\n\t\t\tdelete this.clone;\n\t\t},\n\n\t\tinjectClone: function injectClone() {\n\t\t\t(autoResize.cloneContainer || (autoResize.cloneContainer = $('<arclones/>').appendTo('body'))).append(this.clone);\n\t\t}\n\n\t};\n})(jQuery);\n\n/***/ }),\n\n/***/ \"./src/lib/jquery.contextmenu.js\":\n/*!***************************************!*\\\n !*** ./src/lib/jquery.contextmenu.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/*!\r\n * jQuery contextMenu - Plugin for simple contextMenu handling\r\n *\r\n * Version: 1.6.5\r\n *\r\n * Authors: Rodney Rehm, Addy Osmani (patches for FF)\r\n * Web: http://medialize.github.com/jQuery-contextMenu/\r\n *\r\n * Licensed under\r\n * MIT License http://www.opensource.org/licenses/mit-license\r\n * GPL v3 http://opensource.org/licenses/GPL-3.0\r\n *\r\n */\n\n(function ($, undefined) {\n\n // TODO: -\n // ARIA stuff: menuitem, menuitemcheckbox und menuitemradio\n // create <menu> structure if $.support[htmlCommand || htmlMenuitem] and !opt.disableNative\n\n // determine html5 compatibility\n $.support.htmlMenuitem = 'HTMLMenuItemElement' in window;\n $.support.htmlCommand = 'HTMLCommandElement' in window;\n $.support.eventSelectstart = \"onselectstart\" in document.documentElement;\n /* // should the need arise, test for css user-select\r\n $.support.cssUserSelect = (function(){\r\n var t = false,\r\n e = document.createElement('div');\r\n \r\n $.each('Moz|Webkit|Khtml|O|ms|Icab|'.split('|'), function(i, prefix) {\r\n var propCC = prefix + (prefix ? 'U' : 'u') + 'serSelect',\r\n prop = (prefix ? ('-' + prefix.toLowerCase() + '-') : '') + 'user-select';\r\n \r\n e.style.cssText = prop + ': text;';\r\n if (e.style[propCC] == 'text') {\r\n t = true;\r\n return false;\r\n }\r\n \r\n return true;\r\n });\r\n \r\n return t;\r\n })();\r\n */\n\n if (!$.ui || !$.ui.widget) {\n // duck punch $.cleanData like jQueryUI does to get that remove event\n // https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.widget.js#L16-24\n var _cleanData = $.cleanData;\n $.cleanData = function (elems) {\n for (var i = 0, elem; (elem = elems[i]) != null; i++) {\n try {\n $(elem).triggerHandler(\"remove\");\n // http://bugs.jquery.com/ticket/8235\n } catch (e) {}\n }\n _cleanData(elems);\n };\n }\n\n var // currently active contextMenu trigger\n $currentTrigger = null,\n\n // is contextMenu initialized with at least one menu?\n initialized = false,\n\n // window handle\n $win = $(window),\n\n // number of registered menus\n counter = 0,\n\n // mapping selector to namespace\n namespaces = {},\n\n // mapping namespace to options\n menus = {},\n\n // custom command type handlers\n types = {},\n\n // default values\n defaults = {\n // selector of contextMenu trigger\n selector: null,\n // where to append the menu to\n appendTo: null,\n // method to trigger context menu [\"right\", \"left\", \"hover\"]\n trigger: \"right\",\n // hide menu when mouse leaves trigger / menu elements\n autoHide: false,\n // ms to wait before showing a hover-triggered context menu\n delay: 200,\n // flag denoting if a second trigger should simply move (true) or rebuild (false) an open menu\n // as long as the trigger happened on one of the trigger-element's child nodes\n reposition: false,\n // determine position to show menu at\n determinePosition: function determinePosition($menu) {\n // position to the lower middle of the trigger element\n if ($.ui && $.ui.position) {\n // .position() is provided as a jQuery UI utility\n // (...and it won't work on hidden elements)\n $menu.css('display', 'block').position({\n my: \"center top\",\n at: \"center bottom\",\n of: this,\n offset: \"0 5\",\n collision: \"fit\"\n }).css('display', 'none');\n } else {\n // determine contextMenu position\n var offset = this.offset();\n offset.top += this.outerHeight();\n offset.left += this.outerWidth() / 2 - $menu.outerWidth() / 2;\n $menu.css(offset);\n }\n },\n // position menu\n position: function position(opt, x, y) {\n var $this = this,\n offset;\n // determine contextMenu position\n if (!x && !y) {\n opt.determinePosition.call(this, opt.$menu);\n return;\n } else if (x === \"maintain\" && y === \"maintain\") {\n // x and y must not be changed (after re-show on command click)\n offset = opt.$menu.position();\n } else {\n // x and y are given (by mouse event)\n offset = { top: y, left: x };\n }\n\n // correct offset if viewport demands it\n var bottom = $win.scrollTop() + $win.height(),\n right = $win.scrollLeft() + $win.width(),\n height = opt.$menu.height(),\n width = opt.$menu.width();\n\n if (offset.top + height > bottom) {\n offset.top -= height;\n }\n\n if (offset.left + width > right) {\n offset.left -= width;\n }\n\n opt.$menu.css(offset);\n },\n // position the sub-menu\n positionSubmenu: function positionSubmenu($menu) {\n if ($.ui && $.ui.position) {\n // .position() is provided as a jQuery UI utility\n // (...and it won't work on hidden elements)\n $menu.css('display', 'block').position({\n my: \"left top\",\n at: \"right top\",\n of: this,\n collision: \"flipfit fit\"\n }).css('display', '');\n } else {\n // determine contextMenu position\n var offset = {\n top: 0,\n left: this.outerWidth()\n };\n $menu.css(offset);\n }\n },\n // offset to add to zIndex\n zIndex: 1,\n // show hide animation settings\n animation: {\n duration: 50,\n show: 'slideDown',\n hide: 'slideUp'\n },\n // events\n events: {\n show: $.noop,\n hide: $.noop\n },\n // default callback\n callback: null,\n // list of contextMenu items\n items: {}\n },\n\n // mouse position for hover activation\n hoveract = {\n timer: null,\n pageX: null,\n pageY: null\n },\n\n // determine zIndex\n zindex = function zindex($t) {\n var zin = 0,\n $tt = $t;\n\n while (true) {\n zin = Math.max(zin, parseInt($tt.css('z-index'), 10) || 0);\n $tt = $tt.parent();\n if (!$tt || !$tt.length || \"html body\".indexOf($tt.prop('nodeName').toLowerCase()) > -1) {\n break;\n }\n }\n\n return zin;\n },\n\n // event handlers\n handle = {\n // abort anything\n abortevent: function abortevent(e) {\n e.preventDefault();\n e.stopImmediatePropagation();\n },\n\n // contextmenu show dispatcher\n contextmenu: function contextmenu(e) {\n var $this = $(this);\n\n // disable actual context-menu\n e.preventDefault();\n e.stopImmediatePropagation();\n\n // abort native-triggered events unless we're triggering on right click\n if (e.data.trigger != 'right' && e.originalEvent) {\n return;\n }\n\n // abort event if menu is visible for this trigger\n if ($this.hasClass('context-menu-active')) {\n return;\n }\n\n if (!$this.hasClass('context-menu-disabled')) {\n // theoretically need to fire a show event at <menu>\n // http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#context-menus\n // var evt = jQuery.Event(\"show\", { data: data, pageX: e.pageX, pageY: e.pageY, relatedTarget: this });\n // e.data.$menu.trigger(evt);\n\n $currentTrigger = $this;\n if (e.data.build) {\n var built = e.data.build($currentTrigger, e);\n // abort if build() returned false\n if (built === false) {\n return;\n }\n\n // dynamically build menu on invocation\n e.data = $.extend(true, {}, defaults, e.data, built || {});\n\n // abort if there are no items to display\n if (!e.data.items || $.isEmptyObject(e.data.items)) {\n // Note: jQuery captures and ignores errors from event handlers\n if (window.console) {\n (console.error || console.log)(\"No items specified to show in contextMenu\");\n }\n\n throw new Error('No Items sepcified');\n }\n\n // backreference for custom command type creation\n e.data.$trigger = $currentTrigger;\n\n op.create(e.data);\n }\n // show menu\n op.show.call($this, e.data, e.pageX, e.pageY);\n }\n },\n // contextMenu left-click trigger\n click: function click(e) {\n e.preventDefault();\n e.stopImmediatePropagation();\n $(this).trigger($.Event(\"contextmenu\", { data: e.data, pageX: e.pageX, pageY: e.pageY }));\n },\n // contextMenu right-click trigger\n mousedown: function mousedown(e) {\n // register mouse down\n var $this = $(this);\n\n // hide any previous menus\n if ($currentTrigger && $currentTrigger.length && !$currentTrigger.is($this)) {\n $currentTrigger.data('contextMenu').$menu.trigger('contextmenu:hide');\n }\n\n // activate on right click\n if (e.button == 2) {\n $currentTrigger = $this.data('contextMenuActive', true);\n }\n },\n // contextMenu right-click trigger\n mouseup: function mouseup(e) {\n // show menu\n var $this = $(this);\n if ($this.data('contextMenuActive') && $currentTrigger && $currentTrigger.length && $currentTrigger.is($this) && !$this.hasClass('context-menu-disabled')) {\n e.preventDefault();\n e.stopImmediatePropagation();\n $currentTrigger = $this;\n $this.trigger($.Event(\"contextmenu\", { data: e.data, pageX: e.pageX, pageY: e.pageY }));\n }\n\n $this.removeData('contextMenuActive');\n },\n // contextMenu hover trigger\n mouseenter: function mouseenter(e) {\n var $this = $(this),\n $related = $(e.relatedTarget),\n $document = $(document);\n\n // abort if we're coming from a menu\n if ($related.is('.context-menu-list') || $related.closest('.context-menu-list').length) {\n return;\n }\n\n // abort if a menu is shown\n if ($currentTrigger && $currentTrigger.length) {\n return;\n }\n\n hoveract.pageX = e.pageX;\n hoveract.pageY = e.pageY;\n hoveract.data = e.data;\n $document.on('mousemove.contextMenuShow', handle.mousemove);\n hoveract.timer = setTimeout(function () {\n hoveract.timer = null;\n $document.off('mousemove.contextMenuShow');\n $currentTrigger = $this;\n $this.trigger($.Event(\"contextmenu\", { data: hoveract.data, pageX: hoveract.pageX, pageY: hoveract.pageY }));\n }, e.data.delay);\n },\n // contextMenu hover trigger\n mousemove: function mousemove(e) {\n hoveract.pageX = e.pageX;\n hoveract.pageY = e.pageY;\n },\n // contextMenu hover trigger\n mouseleave: function mouseleave(e) {\n // abort if we're leaving for a menu\n var $related = $(e.relatedTarget);\n if ($related.is('.context-menu-list') || $related.closest('.context-menu-list').length) {\n return;\n }\n\n try {\n clearTimeout(hoveract.timer);\n } catch (e) {}\n\n hoveract.timer = null;\n },\n\n // click on layer to hide contextMenu\n layerClick: function layerClick(e) {\n var $this = $(this),\n root = $this.data('contextMenuRoot'),\n mouseup = false,\n button = e.button,\n x = e.pageX,\n y = e.pageY,\n target,\n offset,\n selectors;\n\n e.preventDefault();\n e.stopImmediatePropagation();\n\n setTimeout(function () {\n var $window, hideshow, possibleTarget;\n var triggerAction = root.trigger == 'left' && button === 0 || root.trigger == 'right' && button === 2;\n\n // find the element that would've been clicked, wasn't the layer in the way\n if (document.elementFromPoint) {\n root.$layer.hide();\n target = document.elementFromPoint(x - $win.scrollLeft(), y - $win.scrollTop());\n root.$layer.show();\n }\n\n if (root.reposition && triggerAction) {\n if (document.elementFromPoint) {\n if (root.$trigger.is(target) || root.$trigger.has(target).length) {\n root.position.call(root.$trigger, root, x, y);\n return;\n }\n } else {\n offset = root.$trigger.offset();\n $window = $(window);\n // while this looks kinda awful, it's the best way to avoid\n // unnecessarily calculating any positions\n offset.top += $window.scrollTop();\n if (offset.top <= e.pageY) {\n offset.left += $window.scrollLeft();\n if (offset.left <= e.pageX) {\n offset.bottom = offset.top + root.$trigger.outerHeight();\n if (offset.bottom >= e.pageY) {\n offset.right = offset.left + root.$trigger.outerWidth();\n if (offset.right >= e.pageX) {\n // reposition\n root.position.call(root.$trigger, root, x, y);\n return;\n }\n }\n }\n }\n }\n }\n\n if (target && triggerAction) {\n root.$trigger.one('contextmenu:hidden', function () {\n $(target).contextMenu({ x: x, y: y });\n });\n }\n\n root.$menu.trigger('contextmenu:hide');\n }, 50);\n },\n // key handled :hover\n keyStop: function keyStop(e, opt) {\n if (!opt.isInput) {\n e.preventDefault();\n }\n\n e.stopPropagation();\n },\n key: function key(e) {\n var opt = $currentTrigger.data('contextMenu') || {};\n\n switch (e.keyCode) {\n case 9:\n case 38:\n // up\n handle.keyStop(e, opt);\n // if keyCode is [38 (up)] or [9 (tab) with shift]\n if (opt.isInput) {\n if (e.keyCode == 9 && e.shiftKey) {\n e.preventDefault();\n opt.$selected && opt.$selected.find('input, textarea, select').blur();\n opt.$menu.trigger('prevcommand');\n return;\n } else if (e.keyCode == 38 && opt.$selected.find('input, textarea, select').prop('type') == 'checkbox') {\n // checkboxes don't capture this key\n e.preventDefault();\n return;\n }\n } else if (e.keyCode != 9 || e.shiftKey) {\n opt.$menu.trigger('prevcommand');\n return;\n }\n // omitting break;\n\n // case 9: // tab - reached through omitted break;\n case 40:\n // down\n handle.keyStop(e, opt);\n if (opt.isInput) {\n if (e.keyCode == 9) {\n e.preventDefault();\n opt.$selected && opt.$selected.find('input, textarea, select').blur();\n opt.$menu.trigger('nextcommand');\n return;\n } else if (e.keyCode == 40 && opt.$selected.find('input, textarea, select').prop('type') == 'checkbox') {\n // checkboxes don't capture this key\n e.preventDefault();\n return;\n }\n } else {\n opt.$menu.trigger('nextcommand');\n return;\n }\n break;\n\n case 37:\n // left\n handle.keyStop(e, opt);\n if (opt.isInput || !opt.$selected || !opt.$selected.length) {\n break;\n }\n\n if (!opt.$selected.parent().hasClass('context-menu-root')) {\n var $parent = opt.$selected.parent().parent();\n opt.$selected.trigger('contextmenu:blur');\n opt.$selected = $parent;\n return;\n }\n break;\n\n case 39:\n // right\n handle.keyStop(e, opt);\n if (opt.isInput || !opt.$selected || !opt.$selected.length) {\n break;\n }\n\n var itemdata = opt.$selected.data('contextMenu') || {};\n if (itemdata.$menu && opt.$selected.hasClass('context-menu-submenu')) {\n opt.$selected = null;\n itemdata.$selected = null;\n itemdata.$menu.trigger('nextcommand');\n return;\n }\n break;\n\n case 35: // end\n case 36:\n // home\n if (opt.$selected && opt.$selected.find('input, textarea, select').length) {\n return;\n } else {\n (opt.$selected && opt.$selected.parent() || opt.$menu).children(':not(.disabled, .not-selectable)')[e.keyCode == 36 ? 'first' : 'last']().trigger('contextmenu:focus');\n e.preventDefault();\n return;\n }\n break;\n\n case 13:\n // enter\n handle.keyStop(e, opt);\n if (opt.isInput) {\n if (opt.$selected && !opt.$selected.is('textarea, select')) {\n e.preventDefault();\n return;\n }\n break;\n }\n opt.$selected && opt.$selected.trigger('mouseup');\n return;\n\n case 32: // space\n case 33: // page up\n case 34:\n // page down\n // prevent browser from scrolling down while menu is visible\n handle.keyStop(e, opt);\n return;\n\n case 27:\n // esc\n handle.keyStop(e, opt);\n opt.$menu.trigger('contextmenu:hide');\n return;\n\n default:\n // 0-9, a-z\n var k = String.fromCharCode(e.keyCode).toUpperCase();\n if (opt.accesskeys[k]) {\n // according to the specs accesskeys must be invoked immediately\n opt.accesskeys[k].$node.trigger(opt.accesskeys[k].$menu ? 'contextmenu:focus' : 'mouseup');\n return;\n }\n break;\n }\n // pass event to selected item,\n // stop propagation to avoid endless recursion\n e.stopPropagation();\n opt.$selected && opt.$selected.trigger(e);\n },\n\n // select previous possible command in menu\n prevItem: function prevItem(e) {\n e.stopPropagation();\n var opt = $(this).data('contextMenu') || {};\n\n // obtain currently selected menu\n if (opt.$selected) {\n var $s = opt.$selected;\n opt = opt.$selected.parent().data('contextMenu') || {};\n opt.$selected = $s;\n }\n\n var $children = opt.$menu.children(),\n $prev = !opt.$selected || !opt.$selected.prev().length ? $children.last() : opt.$selected.prev(),\n $round = $prev;\n\n // skip disabled\n while ($prev.hasClass('disabled') || $prev.hasClass('not-selectable')) {\n if ($prev.prev().length) {\n $prev = $prev.prev();\n } else {\n $prev = $children.last();\n }\n if ($prev.is($round)) {\n // break endless loop\n return;\n }\n }\n\n // leave current\n if (opt.$selected) {\n handle.itemMouseleave.call(opt.$selected.get(0), e);\n }\n\n // activate next\n handle.itemMouseenter.call($prev.get(0), e);\n\n // focus input\n var $input = $prev.find('input, textarea, select');\n if ($input.length) {\n $input.focus();\n }\n },\n // select next possible command in menu\n nextItem: function nextItem(e) {\n e.stopPropagation();\n var opt = $(this).data('contextMenu') || {};\n\n // obtain currently selected menu\n if (opt.$selected) {\n var $s = opt.$selected;\n opt = opt.$selected.parent().data('contextMenu') || {};\n opt.$selected = $s;\n }\n\n var $children = opt.$menu.children(),\n $next = !opt.$selected || !opt.$selected.next().length ? $children.first() : opt.$selected.next(),\n $round = $next;\n\n // skip disabled\n while ($next.hasClass('disabled') || $next.hasClass('not-selectable')) {\n if ($next.next().length) {\n $next = $next.next();\n } else {\n $next = $children.first();\n }\n if ($next.is($round)) {\n // break endless loop\n return;\n }\n }\n\n // leave current\n if (opt.$selected) {\n handle.itemMouseleave.call(opt.$selected.get(0), e);\n }\n\n // activate next\n handle.itemMouseenter.call($next.get(0), e);\n\n // focus input\n var $input = $next.find('input, textarea, select');\n if ($input.length) {\n $input.focus();\n }\n },\n\n // flag that we're inside an input so the key handler can act accordingly\n focusInput: function focusInput(e) {\n var $this = $(this).closest('.context-menu-item'),\n data = $this.data(),\n opt = data.contextMenu,\n root = data.contextMenuRoot;\n\n root.$selected = opt.$selected = $this;\n root.isInput = opt.isInput = true;\n },\n // flag that we're inside an input so the key handler can act accordingly\n blurInput: function blurInput(e) {\n var $this = $(this).closest('.context-menu-item'),\n data = $this.data(),\n opt = data.contextMenu,\n root = data.contextMenuRoot;\n\n root.isInput = opt.isInput = false;\n },\n\n // :hover on menu\n menuMouseenter: function menuMouseenter(e) {\n var root = $(this).data().contextMenuRoot;\n if (root) root.hovering = true;\n },\n // :hover on menu\n menuMouseleave: function menuMouseleave(e) {\n var root = $(this).data().contextMenuRoot;\n if (root && root.$layer && root.$layer.is(e.relatedTarget)) {\n root.hovering = false;\n }\n },\n\n // :hover done manually so key handling is possible\n itemMouseenter: function itemMouseenter(e) {\n var $this = $(this),\n data = $this.data(),\n opt = data.contextMenu,\n root = data.contextMenuRoot;\n\n if (!root) return;\n\n root.hovering = true;\n\n // abort if we're re-entering\n if (e && root.$layer && root.$layer.is(e.relatedTarget)) {\n e.preventDefault();\n e.stopImmediatePropagation();\n }\n\n // make sure only one item is selected\n (opt.$menu ? opt : root).$menu.children('.hover').trigger('contextmenu:blur');\n\n if ($this.hasClass('disabled') || $this.hasClass('not-selectable')) {\n opt.$selected = null;\n return;\n }\n\n $this.trigger('contextmenu:focus');\n },\n // :hover done manually so key handling is possible\n itemMouseleave: function itemMouseleave(e) {\n var $this = $(this),\n data = $this.data(),\n opt = data.contextMenu,\n root = data.contextMenuRoot;\n\n if (root && root !== opt && root.$layer && root.$layer.is(e.relatedTarget)) {\n root.$selected && root.$selected.trigger('contextmenu:blur');\n e.preventDefault();\n e.stopImmediatePropagation();\n root.$selected = opt.$selected = opt.$node;\n return;\n }\n\n $this.trigger('contextmenu:blur');\n },\n // contextMenu item click\n itemClick: function itemClick(e) {\n var $this = $(this),\n data = $this.data(),\n opt = data.contextMenu,\n root = data.contextMenuRoot,\n key = data.contextMenuKey,\n callback;\n\n // abort if the key is unknown or disabled or is a menu\n if (!opt.items[key] || $this.is('.disabled, .context-menu-submenu, .context-menu-separator, .not-selectable')) {\n return;\n }\n\n e.preventDefault();\n e.stopImmediatePropagation();\n\n if ($.isFunction(root.callbacks[key]) && Object.prototype.hasOwnProperty.call(root.callbacks, key)) {\n // item-specific callback\n callback = root.callbacks[key];\n } else if ($.isFunction(root.callback)) {\n // default callback\n callback = root.callback;\n } else {\n // no callback, no action\n return;\n }\n\n // hide menu if callback doesn't stop that\n if (callback.call(root.$trigger, key, root) !== false) {\n root.$menu.trigger('contextmenu:hide');\n } else if (root.$menu.parent().length) {\n op.update.call(root.$trigger, root);\n }\n },\n // ignore click events on input elements\n inputClick: function inputClick(e) {\n e.stopImmediatePropagation();\n },\n\n // hide <menu>\n hideMenu: function hideMenu(e, data) {\n var root = $(this).data('contextMenuRoot');\n op.hide.call(root.$trigger, root, data && data.force);\n },\n // focus <command>\n focusItem: function focusItem(e) {\n e.stopPropagation();\n var $this = $(this),\n data = $this.data(),\n opt = data.contextMenu,\n root = data.contextMenuRoot;\n\n $this.addClass('hover').siblings('.hover').trigger('contextmenu:blur');\n\n // remember selected\n opt.$selected = root.$selected = $this;\n\n // position sub-menu - do after show so dumb $.ui.position can keep up\n if (opt.$node) {\n root.positionSubmenu.call(opt.$node, opt.$menu);\n }\n },\n // blur <command>\n blurItem: function blurItem(e) {\n e.stopPropagation();\n var $this = $(this),\n data = $this.data(),\n opt = data.contextMenu;\n\n $this.removeClass('hover');\n if (opt) opt.$selected = null;\n }\n },\n\n // operations\n op = {\n show: function show(opt, x, y) {\n var $trigger = $(this),\n offset,\n css = {};\n\n // hide any open menus\n $('#context-menu-layer').trigger('mousedown');\n\n // backreference for callbacks\n opt.$trigger = $trigger;\n\n // show event\n if (opt.events.show.call($trigger, opt) === false) {\n $currentTrigger = null;\n return;\n }\n\n // create or update context menu\n op.update.call($trigger, opt);\n\n // position menu\n opt.position.call($trigger, opt, x, y);\n\n // make sure we're in front\n if (opt.zIndex) {\n css.zIndex = zindex($trigger) + opt.zIndex;\n }\n\n // add layer\n op.layer.call(opt.$menu, opt, css.zIndex);\n\n // adjust sub-menu zIndexes\n opt.$menu.find('ul').css('zIndex', css.zIndex + 1);\n\n // position and show context menu\n opt.$menu.css(css)[opt.animation.show](opt.animation.duration, function () {\n $trigger.trigger('contextmenu:visible');\n });\n // make options available and set state\n $trigger.data('contextMenu', opt).addClass(\"context-menu-active\");\n\n // register key handler\n $(document).off('keydown.contextMenu').on('keydown.contextMenu', handle.key);\n // register autoHide handler\n if (opt.autoHide) {\n // mouse position handler\n $(document).on('mousemove.contextMenuAutoHide', function (e) {\n // need to capture the offset on mousemove,\n // since the page might've been scrolled since activation\n var pos = $trigger.offset();\n pos.right = pos.left + $trigger.outerWidth();\n pos.bottom = pos.top + $trigger.outerHeight();\n\n if (opt.$layer && !opt.hovering && (!(e.pageX >= pos.left && e.pageX <= pos.right) || !(e.pageY >= pos.top && e.pageY <= pos.bottom))) {\n // if mouse in menu...\n opt.$menu.trigger('contextmenu:hide');\n }\n });\n }\n },\n hide: function hide(opt, force) {\n var $trigger = $(this);\n if (!opt) {\n opt = $trigger.data('contextMenu') || {};\n }\n\n // hide event\n if (!force && opt.events && opt.events.hide.call($trigger, opt) === false) {\n return;\n }\n\n // remove options and revert state\n $trigger.removeData('contextMenu').removeClass(\"context-menu-active\");\n\n if (opt.$layer) {\n // keep layer for a bit so the contextmenu event can be aborted properly by opera\n setTimeout(function ($layer) {\n return function () {\n $layer.remove();\n };\n }(opt.$layer), 10);\n\n try {\n delete opt.$layer;\n } catch (e) {\n opt.$layer = null;\n }\n }\n\n // remove handle\n $currentTrigger = null;\n // remove selected\n opt.$menu.find('.hover').trigger('contextmenu:blur');\n opt.$selected = null;\n // unregister key and mouse handlers\n //$(document).off('.contextMenuAutoHide keydown.contextMenu'); // http://bugs.jquery.com/ticket/10705\n $(document).off('.contextMenuAutoHide').off('keydown.contextMenu');\n // hide menu\n opt.$menu && opt.$menu[opt.animation.hide](opt.animation.duration, function () {\n // tear down dynamically built menu after animation is completed.\n if (opt.build) {\n opt.$menu.remove();\n $.each(opt, function (key, value) {\n switch (key) {\n case 'ns':\n case 'selector':\n case 'build':\n case 'trigger':\n return true;\n\n default:\n opt[key] = undefined;\n try {\n delete opt[key];\n } catch (e) {}\n return true;\n }\n });\n }\n\n setTimeout(function () {\n $trigger.trigger('contextmenu:hidden');\n }, 10);\n });\n },\n create: function create(opt, root) {\n if (root === undefined) {\n root = opt;\n }\n // create contextMenu\n opt.$menu = $('<ul class=\"context-menu-list\"></ul>').addClass(opt.className || \"\").data({\n 'contextMenu': opt,\n 'contextMenuRoot': root\n });\n\n $.each(['callbacks', 'commands', 'inputs'], function (i, k) {\n opt[k] = {};\n if (!root[k]) {\n root[k] = {};\n }\n });\n\n root.accesskeys || (root.accesskeys = {});\n\n // create contextMenu items\n $.each(opt.items, function (key, item) {\n var $t = $('<li class=\"context-menu-item\"></li>').addClass(item.className || \"\"),\n $label = null,\n $input = null;\n\n // iOS needs to see a click-event bound to an element to actually\n // have the TouchEvents infrastructure trigger the click event\n $t.on('click', $.noop);\n\n if (typeof item !== \"string\") {\n item.$node = $t.data({\n 'contextMenu': opt,\n 'contextMenuRoot': root,\n 'contextMenuKey': key\n });\n }\n\n // register accesskey\n // NOTE: the accesskey attribute should be applicable to any element, but Safari5 and Chrome13 still can't do that\n if (item.accesskey) {\n var aks = splitAccesskey(item.accesskey);\n for (var i = 0, ak; ak = aks[i]; i++) {\n if (!root.accesskeys[ak]) {\n root.accesskeys[ak] = item;\n item._name = item.name.replace(new RegExp('(' + ak + ')', 'i'), '<span class=\"context-menu-accesskey\">$1</span>');\n break;\n }\n }\n }\n\n if (typeof item == \"string\") {\n $t.addClass('context-menu-separator not-selectable');\n } else if (item.type && types[item.type]) {\n // run custom type handler\n types[item.type].call($t, item, opt, root);\n // register commands\n $.each([opt, root], function (i, k) {\n k.commands[key] = item;\n if ($.isFunction(item.callback)) {\n k.callbacks[key] = item.callback;\n }\n });\n } else {\n // add label for input\n if (item.type == 'html') {\n $t.addClass('context-menu-html not-selectable');\n } else if (item.type) {\n $label = $('<label></label>').appendTo($t);\n $('<span></span>').html(item._name || item.name).appendTo($label);\n $t.addClass('context-menu-input');\n opt.hasTypes = true;\n $.each([opt, root], function (i, k) {\n k.commands[key] = item;\n k.inputs[key] = item;\n });\n } else if (item.items) {\n item.type = 'sub';\n }\n\n switch (item.type) {\n case 'text':\n $input = $('<input type=\"text\" value=\"1\" name=\"\" value=\"\">').attr('name', 'context-menu-input-' + key).val(item.value || \"\").appendTo($label);\n break;\n\n case 'textarea':\n $input = $('<textarea name=\"\"></textarea>').attr('name', 'context-menu-input-' + key).val(item.value || \"\").appendTo($label);\n\n if (item.height) {\n $input.height(item.height);\n }\n break;\n\n case 'checkbox':\n $input = $('<input type=\"checkbox\" value=\"1\" name=\"\" value=\"\">').attr('name', 'context-menu-input-' + key).val(item.value || \"\").prop(\"checked\", !!item.selected).prependTo($label);\n break;\n\n case 'radio':\n $input = $('<input type=\"radio\" value=\"1\" name=\"\" value=\"\">').attr('name', 'context-menu-input-' + item.radio).val(item.value || \"\").prop(\"checked\", !!item.selected).prependTo($label);\n break;\n\n case 'select':\n $input = $('<select name=\"\">').attr('name', 'context-menu-input-' + key).appendTo($label);\n if (item.options) {\n $.each(item.options, function (value, text) {\n $('<option></option>').val(value).text(text).appendTo($input);\n });\n $input.val(item.selected);\n }\n break;\n\n case 'sub':\n // FIXME: shouldn't this .html() be a .text()?\n $('<span></span>').html(item._name || item.name).appendTo($t);\n item.appendTo = item.$node;\n op.create(item, root);\n $t.data('contextMenu', item).addClass('context-menu-submenu');\n item.callback = null;\n break;\n\n case 'html':\n $(item.html).appendTo($t);\n break;\n\n default:\n $.each([opt, root], function (i, k) {\n k.commands[key] = item;\n if ($.isFunction(item.callback)) {\n k.callbacks[key] = item.callback;\n }\n });\n // FIXME: shouldn't this .html() be a .text()?\n $('<span></span>').html(item._name || item.name || \"\").appendTo($t);\n break;\n }\n\n // disable key listener in <input>\n if (item.type && item.type != 'sub' && item.type != 'html') {\n $input.on('focus', handle.focusInput).on('blur', handle.blurInput);\n\n if (item.events) {\n $input.on(item.events, opt);\n }\n }\n\n // add icons\n if (item.icon) {\n $t.addClass(\"icon icon-\" + item.icon);\n }\n }\n\n // cache contained elements\n if (typeof item !== \"string\") {\n item.$input = $input;\n item.$label = $label;\n }\n\n // attach item to menu\n $t.appendTo(opt.$menu);\n\n // Disable text selection\n if (!opt.hasTypes && $.support.eventSelectstart) {\n // browsers support user-select: none,\n // IE has a special event for text-selection\n // browsers supporting neither will not be preventing text-selection\n $t.on('selectstart.disableTextSelect', handle.abortevent);\n }\n });\n // attach contextMenu to <body> (to bypass any possible overflow:hidden issues on parents of the trigger element)\n if (!opt.$node) {\n opt.$menu.css('display', 'none').addClass('context-menu-root');\n }\n opt.$menu.appendTo(opt.appendTo || document.body);\n },\n resize: function resize($menu, nested) {\n // determine widths of submenus, as CSS won't grow them automatically\n // position:absolute within position:absolute; min-width:100; max-width:200; results in width: 100;\n // kinda sucks hard...\n\n // determine width of absolutely positioned element\n $menu.css({ position: 'absolute', display: 'block' });\n // don't apply yet, because that would break nested elements' widths\n // add a pixel to circumvent word-break issue in IE9 - #80\n $menu.data('width', Math.ceil($menu.width()) + 1);\n // reset styles so they allow nested elements to grow/shrink naturally\n $menu.css({\n position: 'static',\n minWidth: '0px',\n maxWidth: '100000px'\n });\n // identify width of nested menus\n $menu.find('> li > ul').each(function () {\n op.resize($(this), true);\n });\n // reset and apply changes in the end because nested\n // elements' widths wouldn't be calculatable otherwise\n if (!nested) {\n $menu.find('ul').andSelf().css({\n position: '',\n display: '',\n minWidth: '',\n maxWidth: ''\n }).width(function () {\n return $(this).data('width');\n });\n }\n },\n update: function update(opt, root) {\n var $trigger = this;\n if (root === undefined) {\n root = opt;\n op.resize(opt.$menu);\n }\n // re-check disabled for each item\n opt.$menu.children().each(function () {\n var $item = $(this),\n key = $item.data('contextMenuKey'),\n item = opt.items[key],\n disabled = item === undefined || typeof item === \"string\" || $.isFunction(item.disabled) && item.disabled.call($trigger, key, root) || item.disabled === true;\n\n // dis- / enable item\n $item[disabled ? 'addClass' : 'removeClass']('disabled');\n\n if (item && item.type) {\n // dis- / enable input elements\n $item.find('input, select, textarea').prop('disabled', disabled);\n\n // update input states\n switch (item.type) {\n case 'text':\n case 'textarea':\n item.$input.val(item.value || \"\");\n break;\n\n case 'checkbox':\n case 'radio':\n item.$input.val(item.value || \"\").prop('checked', !!item.selected);\n break;\n\n case 'select':\n item.$input.val(item.selected || \"\");\n break;\n }\n }\n\n if (item && item.$menu) {\n // update sub-menu\n op.update.call($trigger, item, root);\n }\n });\n },\n layer: function layer(opt, zIndex) {\n // add transparent layer for click area\n // filter and background for Internet Explorer, Issue #23\n var $layer = opt.$layer = $('<div id=\"context-menu-layer\" style=\"position:fixed; z-index:' + zIndex + '; top:0; left:0; opacity: 0; filter: alpha(opacity=0); background-color: #000;\"></div>').css({ height: $win.height(), width: $win.width(), display: 'block' }).data('contextMenuRoot', opt).insertBefore(this).on('contextmenu', handle.abortevent).on('mousedown', handle.layerClick);\n\n // IE6 doesn't know position:fixed;\n if (!$.support.fixedPosition) {\n $layer.css({\n 'position': 'absolute',\n 'height': $(document).height()\n });\n }\n\n return $layer;\n }\n };\n\n // split accesskey according to http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#assigned-access-key\n function splitAccesskey(val) {\n var t = val.split(/\\s+/),\n keys = [];\n\n for (var i = 0, k; k = t[i]; i++) {\n k = k[0].toUpperCase(); // first character only\n // theoretically non-accessible characters should be ignored, but different systems, different keyboard layouts, ... screw it.\n // a map to look up already used access keys would be nice\n keys.push(k);\n }\n\n return keys;\n }\n\n // handle contextMenu triggers\n $.fn.contextMenu = function (operation) {\n if (operation === undefined) {\n this.first().trigger('contextmenu');\n } else if (operation.x && operation.y) {\n this.first().trigger($.Event(\"contextmenu\", { pageX: operation.x, pageY: operation.y }));\n } else if (operation === \"hide\") {\n var $menu = this.data('contextMenu').$menu;\n $menu && $menu.trigger('contextmenu:hide');\n } else if (operation === \"destroy\") {\n $.contextMenu(\"destroy\", { context: this });\n } else if ($.isPlainObject(operation)) {\n operation.context = this;\n $.contextMenu(\"create\", operation);\n } else if (operation) {\n this.removeClass('context-menu-disabled');\n } else if (!operation) {\n this.addClass('context-menu-disabled');\n }\n\n return this;\n };\n\n // manage contextMenu instances\n $.contextMenu = function (operation, options) {\n if (typeof operation != 'string') {\n options = operation;\n operation = 'create';\n }\n\n if (typeof options == 'string') {\n options = { selector: options };\n } else if (options === undefined) {\n options = {};\n }\n\n // merge with default options\n var o = $.extend(true, {}, defaults, options || {});\n var $document = $(document);\n var $context = $document;\n var _hasContext = false;\n\n if (!o.context || !o.context.length) {\n o.context = document;\n } else {\n // you never know what they throw at you...\n $context = $(o.context).first();\n o.context = $context.get(0);\n _hasContext = o.context !== document;\n }\n\n switch (operation) {\n case 'create':\n // no selector no joy\n if (!o.selector) {\n throw new Error('No selector specified');\n }\n // make sure internal classes are not bound to\n if (o.selector.match(/.context-menu-(list|item|input)($|\\s)/)) {\n throw new Error('Cannot bind to selector \"' + o.selector + '\" as it contains a reserved className');\n }\n if (!o.build && (!o.items || $.isEmptyObject(o.items))) {\n throw new Error('No Items sepcified');\n }\n counter++;\n o.ns = '.contextMenu' + counter;\n if (!_hasContext) {\n namespaces[o.selector] = o.ns;\n }\n menus[o.ns] = o;\n\n // default to right click\n if (!o.trigger) {\n o.trigger = 'right';\n }\n\n if (!initialized) {\n // make sure item click is registered first\n $document.on({\n 'contextmenu:hide.contextMenu': handle.hideMenu,\n 'prevcommand.contextMenu': handle.prevItem,\n 'nextcommand.contextMenu': handle.nextItem,\n 'contextmenu.contextMenu': handle.abortevent,\n 'mouseenter.contextMenu': handle.menuMouseenter,\n 'mouseleave.contextMenu': handle.menuMouseleave\n }, '.context-menu-list').on('mouseup.contextMenu', '.context-menu-input', handle.inputClick).on({\n 'mouseup.contextMenu': handle.itemClick,\n 'contextmenu:focus.contextMenu': handle.focusItem,\n 'contextmenu:blur.contextMenu': handle.blurItem,\n 'contextmenu.contextMenu': handle.abortevent,\n 'mouseenter.contextMenu': handle.itemMouseenter,\n 'mouseleave.contextMenu': handle.itemMouseleave\n }, '.context-menu-item');\n\n initialized = true;\n }\n\n // engage native contextmenu event\n $context.on('contextmenu' + o.ns, o.selector, o, handle.contextmenu);\n\n if (_hasContext) {\n // add remove hook, just in case\n $context.on('remove' + o.ns, function () {\n $(this).contextMenu(\"destroy\");\n });\n }\n\n switch (o.trigger) {\n case 'hover':\n $context.on('mouseenter' + o.ns, o.selector, o, handle.mouseenter).on('mouseleave' + o.ns, o.selector, o, handle.mouseleave);\n break;\n\n case 'left':\n $context.on('click' + o.ns, o.selector, o, handle.click);\n break;\n /*\r\n default:\r\n // http://www.quirksmode.org/dom/events/contextmenu.html\r\n $document\r\n .on('mousedown' + o.ns, o.selector, o, handle.mousedown)\r\n .on('mouseup' + o.ns, o.selector, o, handle.mouseup);\r\n break;\r\n */\n }\n\n // create menu\n if (!o.build) {\n op.create(o);\n }\n break;\n\n case 'destroy':\n var $visibleMenu;\n if (_hasContext) {\n // get proper options\n var context = o.context;\n $.each(menus, function (ns, o) {\n if (o.context !== context) {\n return true;\n }\n\n $visibleMenu = $('.context-menu-list').filter(':visible');\n if ($visibleMenu.length && $visibleMenu.data().contextMenuRoot.$trigger.is($(o.context).find(o.selector))) {\n $visibleMenu.trigger('contextmenu:hide', { force: true });\n }\n\n try {\n if (menus[o.ns].$menu) {\n menus[o.ns].$menu.remove();\n }\n\n delete menus[o.ns];\n } catch (e) {\n menus[o.ns] = null;\n }\n\n $(o.context).off(o.ns);\n\n return true;\n });\n } else if (!o.selector) {\n $document.off('.contextMenu .contextMenuAutoHide');\n $.each(menus, function (ns, o) {\n $(o.context).off(o.ns);\n });\n\n namespaces = {};\n menus = {};\n counter = 0;\n initialized = false;\n\n $('#context-menu-layer, .context-menu-list').remove();\n } else if (namespaces[o.selector]) {\n $visibleMenu = $('.context-menu-list').filter(':visible');\n if ($visibleMenu.length && $visibleMenu.data().contextMenuRoot.$trigger.is(o.selector)) {\n $visibleMenu.trigger('contextmenu:hide', { force: true });\n }\n\n try {\n if (menus[namespaces[o.selector]].$menu) {\n menus[namespaces[o.selector]].$menu.remove();\n }\n\n delete menus[namespaces[o.selector]];\n } catch (e) {\n menus[namespaces[o.selector]] = null;\n }\n\n $document.off(namespaces[o.selector]);\n }\n break;\n\n case 'html5':\n // if <command> or <menuitem> are not handled by the browser,\n // or options was a bool true,\n // initialize $.contextMenu for them\n if (!$.support.htmlCommand && !$.support.htmlMenuitem || typeof options == \"boolean\" && options) {\n $('menu[type=\"context\"]').each(function () {\n if (this.id) {\n $.contextMenu({\n selector: '[contextmenu=' + this.id + ']',\n items: $.contextMenu.fromMenu(this)\n });\n }\n }).css('display', 'none');\n }\n break;\n\n default:\n throw new Error('Unknown operation \"' + operation + '\"');\n }\n\n return this;\n };\n\n // import values into <input> commands\n $.contextMenu.setInputValues = function (opt, data) {\n if (data === undefined) {\n data = {};\n }\n\n $.each(opt.inputs, function (key, item) {\n switch (item.type) {\n case 'text':\n case 'textarea':\n item.value = data[key] || \"\";\n break;\n\n case 'checkbox':\n item.selected = data[key] ? true : false;\n break;\n\n case 'radio':\n item.selected = (data[item.radio] || \"\") == item.value ? true : false;\n break;\n\n case 'select':\n item.selected = data[key] || \"\";\n break;\n }\n });\n };\n\n // export values from <input> commands\n $.contextMenu.getInputValues = function (opt, data) {\n if (data === undefined) {\n data = {};\n }\n\n $.each(opt.inputs, function (key, item) {\n switch (item.type) {\n case 'text':\n case 'textarea':\n case 'select':\n data[key] = item.$input.val();\n break;\n\n case 'checkbox':\n data[key] = item.$input.prop('checked');\n break;\n\n case 'radio':\n if (item.$input.prop('checked')) {\n data[item.radio] = item.value;\n }\n break;\n }\n });\n\n return data;\n };\n\n // find <label for=\"xyz\">\n function inputLabel(node) {\n return node.id && $('label[for=\"' + node.id + '\"]').val() || node.name;\n }\n\n // convert <menu> to items object\n function menuChildren(items, $children, counter) {\n if (!counter) {\n counter = 0;\n }\n\n $children.each(function () {\n var $node = $(this),\n node = this,\n nodeName = this.nodeName.toLowerCase(),\n label,\n item;\n\n // extract <label><input>\n if (nodeName == 'label' && $node.find('input, textarea, select').length) {\n label = $node.text();\n $node = $node.children().first();\n node = $node.get(0);\n nodeName = node.nodeName.toLowerCase();\n }\n\n /*\r\n * <menu> accepts flow-content as children. that means <embed>, <canvas> and such are valid menu items.\r\n * Not being the sadistic kind, $.contextMenu only accepts:\r\n * <command>, <menuitem>, <hr>, <span>, <p> <input [text, radio, checkbox]>, <textarea>, <select> and of course <menu>.\r\n * Everything else will be imported as an html node, which is not interfaced with contextMenu.\r\n */\n\n // http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#concept-command\n switch (nodeName) {\n // http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#the-menu-element\n case 'menu':\n item = { name: $node.attr('label'), items: {} };\n counter = menuChildren(item.items, $node.children(), counter);\n break;\n\n // http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#using-the-a-element-to-define-a-command\n case 'a':\n // http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#using-the-button-element-to-define-a-command\n case 'button':\n item = {\n name: $node.text(),\n disabled: !!$node.attr('disabled'),\n callback: function () {\n return function () {\n $node.click();\n };\n }()\n };\n break;\n\n // http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#using-the-command-element-to-define-a-command\n\n case 'menuitem':\n case 'command':\n switch ($node.attr('type')) {\n case undefined:\n case 'command':\n case 'menuitem':\n item = {\n name: $node.attr('label'),\n disabled: !!$node.attr('disabled'),\n callback: function () {\n return function () {\n $node.click();\n };\n }()\n };\n break;\n\n case 'checkbox':\n item = {\n type: 'checkbox',\n disabled: !!$node.attr('disabled'),\n name: $node.attr('label'),\n selected: !!$node.attr('checked')\n };\n break;\n\n case 'radio':\n item = {\n type: 'radio',\n disabled: !!$node.attr('disabled'),\n name: $node.attr('label'),\n radio: $node.attr('radiogroup'),\n value: $node.attr('id'),\n selected: !!$node.attr('checked')\n };\n break;\n\n default:\n item = undefined;\n }\n break;\n\n case 'hr':\n item = '-------';\n break;\n\n case 'input':\n switch ($node.attr('type')) {\n case 'text':\n item = {\n type: 'text',\n name: label || inputLabel(node),\n disabled: !!$node.attr('disabled'),\n value: $node.val()\n };\n break;\n\n case 'checkbox':\n item = {\n type: 'checkbox',\n name: label || inputLabel(node),\n disabled: !!$node.attr('disabled'),\n selected: !!$node.attr('checked')\n };\n break;\n\n case 'radio':\n item = {\n type: 'radio',\n name: label || inputLabel(node),\n disabled: !!$node.attr('disabled'),\n radio: !!$node.attr('name'),\n value: $node.val(),\n selected: !!$node.attr('checked')\n };\n break;\n\n default:\n item = undefined;\n break;\n }\n break;\n\n case 'select':\n item = {\n type: 'select',\n name: label || inputLabel(node),\n disabled: !!$node.attr('disabled'),\n selected: $node.val(),\n options: {}\n };\n $node.children().each(function () {\n item.options[this.value] = $(this).text();\n });\n break;\n\n case 'textarea':\n item = {\n type: 'textarea',\n name: label || inputLabel(node),\n disabled: !!$node.attr('disabled'),\n value: $node.val()\n };\n break;\n\n case 'label':\n break;\n\n default:\n item = { type: 'html', html: $node.clone(true) };\n break;\n }\n\n if (item) {\n counter++;\n items['key' + counter] = item;\n }\n });\n\n return counter;\n }\n\n // convert html5 menu\n $.contextMenu.fromMenu = function (element) {\n var $this = $(element),\n items = {};\n\n menuChildren(items, $this.children());\n\n return items;\n };\n\n // make defaults accessible\n $.contextMenu.defaults = defaults;\n $.contextMenu.types = types;\n // export internal functions - undocumented, for hacking only!\n $.contextMenu.handle = handle;\n $.contextMenu.op = op;\n $.contextMenu.menus = menus;\n})(jQuery);\n\n/***/ }),\n\n/***/ \"./src/lib/pathfinding.exec.js\":\n/*!*************************************!*\\\n !*** ./src/lib/pathfinding.exec.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(/*! !./node_modules/script-loader/addScript.js */ \"./node_modules/script-loader/addScript.js\")(__webpack_require__(/*! !./node_modules/raw-loader!./src/lib/pathfinding.exec.js */ \"./node_modules/raw-loader/index.js!./src/lib/pathfinding.exec.js\"));\n\n/***/ }),\n\n/***/ \"./src/lib/raphael.exec.js\":\n/*!*********************************!*\\\n !*** ./src/lib/raphael.exec.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(/*! !./node_modules/script-loader/addScript.js */ \"./node_modules/script-loader/addScript.js\")(__webpack_require__(/*! !./node_modules/raw-loader!./src/lib/raphael.exec.js */ \"./node_modules/raw-loader/index.js!./src/lib/raphael.exec.js\"));\n\n/***/ }),\n\n/***/ \"./src/packages.js\":\n/*!*************************!*\\\n !*** ./src/packages.js ***!\n \\*************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/**\r\n *\r\n * @private\r\n */\nexports.default = {\n\n geo: {},\n\n io: {\n json: {},\n png: {},\n svg: {}\n },\n\n storage: {},\n\n util: {\n spline: {}\n },\n\n shape: {\n basic: {},\n dimetric: {},\n composite: {},\n arrow: {},\n node: {},\n note: {},\n diagram: {},\n flowchart: {},\n analog: {},\n icon: {},\n layout: {},\n pert: {},\n state: {},\n widget: {}\n },\n\n policy: {\n canvas: {},\n connection: {},\n line: {},\n port: {},\n figure: {}\n },\n\n command: {},\n\n decoration: {\n connection: {}\n },\n\n layout: {\n connection: {},\n anchor: {},\n mesh: {},\n locator: {}\n },\n\n ui: {},\n\n isTouchDevice:\n //Detect iPhone\n navigator.platform.indexOf(\"iPhone\") != -1 ||\n //Detect iPod\n navigator.platform.indexOf(\"iPod\") != -1 ||\n //Detect iPad\n navigator.platform.indexOf(\"iPad\") != -1\n\n};\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n\n/***/ \"./src/policy/EditPolicy.js\":\n/*!**********************************!*\\\n !*** ./src/policy/EditPolicy.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.policy.EditPolicy\r\n *\r\n * A plugable contribution implementing a portion of an behavior.\r\n *\r\n *\r\n * EditPolicies should determine an Canvas or figure editing capabilities. It is possible to implement\r\n * an figure such that it handles all editing responsibility. However, it is much more flexible\r\n * and object-oriented to use EditPolicies. Using policies, you can pick and choose the editing\r\n * behavior for an figure/canvas without being bound to its class hierarchy. Code management is easier.\r\n *\r\n *\r\n * This interface is not intended to be implemented by clients. Clients should inherit from {@link draw2d.policy.figure.SelectionFeedbackPolicy}\r\n * or {@link draw2d.policy.canvas.SelectionPolicy}.\r\n *\r\n * @author Andreas Herz\r\n */\n_packages2.default.policy.EditPolicy = Class.extend({\n\n NAME: \"draw2d.policy.EditPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this.setterWhitelist = (0, _extend2.default)({}, setter);\n\n this.getterWhitelist = (0, _extend2.default)({}, getter);\n\n this.attr(attr);\n },\n\n /**\r\n * @method\r\n * Read or set object attributes.<br>\r\n * When no value is given, reads specified attribute from the element.<br>\r\n * When value is given, sets the attribute to that value.\r\n * Multiple attributes can be set by passing an object with name-value pairs.\r\n *\r\n * @param {String/Object} name\r\n * @param {Object} [value]\r\n * @since 5.3.2\r\n * @returns\r\n **/\n attr: function attr(name, value) {\n // call of attr as setter method with {name1:val1, name2:val2 } argument list\n //\n if ($.isPlainObject(name)) {\n for (var _key in name) {\n var func = this.setterWhitelist[_key];\n // call the assigned method if given\n if (func) {\n func.call(this, name[_key]);\n }\n // maby the ussser adds a function as property to the attr call\n // e.g.:\n // {\n // doIt: function(){}\n // }\n //\n // in this case we assign the method to this object and wrap it with \"this\" as context\n // a very, very simple method to replace default implemenations of the object\n else if (typeof name[_key] === \"function\") {\n this[_key] = name[_key].bind(this);\n }\n }\n } else if (typeof name === \"string\") {\n // call attr as getter\n //\n if (typeof value === \"undefined\") {\n var getter = this.getterWhitelist[name];\n if (typeof getter === \"function\") {\n return getter.call(this);\n }\n return; // undefined\n }\n // call attr as simple setter with (key , value)\n //\n\n // the value can be a function. In this case we must call the value().\n if (typeof value === \"function\") {\n value = value();\n }\n var setter = this.setterWhitelist[name];\n if (setter) {\n setter.call(this, value);\n }\n }\n // generic getter of all registered attributes\n else if (typeof name === \"undefined\") {\n var result = {};\n for (key in this.getterWhitelist) {\n result[key] = this.getterWhitelist[key].call(this);\n }\n return result;\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been installed.\r\n *\r\n * @param {draw2d.Canvas|draw2d.Figure} host\r\n */\n onInstall: function onInstall(host) {},\n\n /**\r\n * @method\r\n * Called by the host if the policy has been uninstalled.\r\n *\r\n * @param {draw2d.Canvas|draw2d.Figure} host\r\n */\n onUninstall: function onUninstall(host) {}\n});\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/BoundingboxSelectionPolicy.js\":\n/*!*********************************************************!*\\\n !*** ./src/policy/canvas/BoundingboxSelectionPolicy.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.BoundingboxSelectionPolicy = _packages2.default.policy.canvas.SingleSelectionPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.BoundingboxSelectionPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new selection policy for a canvas.\r\n */\n init: function init() {\n this.isInsideMode = function (rect1, rect2) {\n return rect1.isInside(rect2);\n };\n this.intersectsMode = function (rect1, rect2) {\n return rect1.intersects(rect2);\n };\n\n this.decision = this.isInsideMode;\n\n this._super();\n\n this.boundingBoxFigure1 = null;\n this.boundingBoxFigure2 = null;\n this.x = 0;\n this.y = 0;\n\n // falls ein Port getroffen wird, dann darf keine BoundingBox gezeichnet werden.\n //\n this.canDrawBoundingBox = false;\n },\n\n /**\r\n * @inheritdoc\r\n */\n select: function select(canvas, figure) {\n var _this = this;\n\n if (canvas.getSelection().contains(figure)) {\n return; // nothing to to\n }\n\n var oldSelection = canvas.getSelection().getPrimary();\n\n if (figure !== null) {\n figure.select(true); // primary selection\n }\n\n if (oldSelection !== figure) {\n canvas.getSelection().setPrimary(figure);\n\n // inform all selection listeners about the new selection.\n //\n canvas.fireEvent(\"select\", { figure: figure, selection: canvas.getSelection() });\n }\n\n // adding connections to the selection of the source and target port part of the current selection\n //\n var selection = canvas.getSelection();\n canvas.getLines().each(function (i, line) {\n if (line instanceof _packages2.default.Connection) {\n if (selection.contains(line.getSource().getRoot()) && selection.contains(line.getTarget().getRoot())) {\n _this.select(canvas, line, false);\n }\n }\n });\n },\n\n /**\r\n * @method\r\n * Set the selection handling mode to <b>intersection</b> or to <b>isInside</b>.\r\n * <ul>\r\n * <li>true = intersection, shapes must only touch the selection bounding box </li>\r\n * <li>false = isInside, shapes must complete inside the selection bounding box (default)</li>\r\n * </ul>\r\n *\r\n * @param {Boolean} useIntersectionMode set true if the selection handle should use the alternative selection approach\r\n * @since 4.9.0\r\n */\n setDecisionMode: function setDecisionMode(useIntersectionMode) {\n if (useIntersectionMode === true) {\n this.decision = this.intersectsMode;\n } else {\n this.decision = this.isInsideMode;\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseDown: function onMouseDown(canvas, x, y, shiftKey, ctrlKey) {\n var _this2 = this;\n\n try {\n this.x = x;\n this.y = y;\n\n var currentSelection = canvas.getSelection().getAll();\n\n // COPY_PARENT\n // this code part is copied from the parent implementation. The main problem is, that\n // the sequence of unselect/select of elements is broken if we call the base implementation\n // in this case wrong events are fired if we select a figure if already a figure is selected!\n // WRONG: selectNewFigure -> unselectOldFigure\n // RIGHT: unselectOldFigure -> selectNewFigure\n // To ensure this I must copy the parent code and postbound the event propagation\n //\n this.mouseMovedDuringMouseDown = false;\n var canDragStart = true;\n\n this.canDrawBoundingBox = false;\n\n var figure = canvas.getBestFigure(x, y);\n\n // may the figure is assigned to a composite. In this case the composite can\n // override the event receiver\n while (figure !== null) {\n var delegated = figure.getSelectionAdapter()();\n if (delegated === figure) {\n break;\n }\n figure = delegated;\n }\n\n // ignore ports since version 6.1.0. This is handled by the ConnectionCreatePolicy\n //\n if (figure instanceof _packages2.default.Port) {\n return; // silently\n }\n\n if (figure !== null && figure.isSelectable() === false && figure.isDraggable() === false) {\n figure = null;\n }\n\n this.canDrawBoundingBox = true;\n\n if (figure !== null && figure.isDraggable()) {\n canDragStart = figure.onDragStart(x - figure.getAbsoluteX(), y - figure.getAbsoluteY(), shiftKey, ctrlKey);\n // Element send a veto about the drag&drop operation\n this.mouseDraggingElement = canDragStart === false ? null : figure;\n }\n\n this.mouseDownElement = figure;\n\n if (this.mouseDownElement !== null) {\n this.mouseDownElement.fireEvent(\"mousedown\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n }\n\n // we click on an element which are not part of the current selection\n // => reset the \"old\" current selection if we didn't press the shift key\n if (shiftKey === false) {\n if (this.mouseDownElement !== null && this.mouseDownElement.isResizeHandle === false && !currentSelection.contains(this.mouseDownElement)) {\n currentSelection.each(function (i, figure) {\n _this2.unselect(canvas, figure);\n });\n }\n }\n\n if (figure !== canvas.getSelection().getPrimary() && figure !== null && figure.isSelectable() === true) {\n this.select(canvas, figure);\n\n // its a line\n if (figure instanceof _packages2.default.shape.basic.Line) {\n // you can move a line with Drag&Drop...but not a connection.\n // A Connection is fixed linked with the corresponding ports.\n //\n if (!(figure instanceof _packages2.default.Connection)) {\n canvas.draggingLineCommand = figure.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE));\n if (canvas.draggingLineCommand !== null) {\n canvas.draggingLine = figure;\n }\n }\n } else if (canDragStart === false) {\n figure.unselect();\n }\n }\n // END_COPY FROM PARENT\n\n\n // inform all figures that they have a new ox/oy position for the relative\n // drag/drop operation\n if (this.mouseDownElement !== null && this.mouseDownElement.isResizeHandle === false) {\n currentSelection = canvas.getSelection().getAll();\n currentSelection.each(function (i, figure) {\n var fakeDragX = 1;\n var fakeDragY = 1;\n\n var handleRect = figure.getHandleBBox();\n if (handleRect !== null) {\n handleRect.translate(figure.getAbsolutePosition().scale(-1));\n fakeDragX = handleRect.x + 1;\n fakeDragY = handleRect.y + 1;\n }\n\n var canDragStart = figure.onDragStart(fakeDragX, fakeDragY, shiftKey, ctrlKey, true /*fakeFlag*/);\n // its a line\n if (figure instanceof _packages2.default.shape.basic.Line) {\n // no special handling\n } else if (canDragStart === false) {\n _this2.unselect(canvas, figure);\n }\n });\n }\n } catch (exc) {\n console.log(exc);\n throw exc;\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n // don't drag a selection box if we drag&drop a port\n //\n if (this.canDrawBoundingBox === false) {\n return;\n }\n\n try {\n this._super(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey);\n\n if (this.mouseDraggingElement === null && this.mouseDownElement === null && this.boundingBoxFigure1 === null) {\n this.boundingBoxFigure1 = new _packages2.default.shape.basic.Rectangle({\n width: 1,\n height: 1,\n x: this.x,\n y: this.y,\n bgColor: \"#d4d1d4\",\n alpha: 0.1\n });\n this.boundingBoxFigure1.setCanvas(canvas);\n\n this.boundingBoxFigure2 = new _packages2.default.shape.basic.Rectangle({\n width: 1,\n height: 1,\n x: this.x,\n y: this.y,\n dash: \"--..\",\n stroke: 0.5,\n color: \"#37a8ff\",\n bgColor: null\n });\n this.boundingBoxFigure2.setCanvas(canvas);\n }\n var abs = Math.abs;\n if (this.boundingBoxFigure1 !== null) {\n this.boundingBoxFigure1.setDimension(abs(dx), abs(dy));\n this.boundingBoxFigure1.setPosition(this.x + Math.min(0, dx), this.y + Math.min(0, dy));\n this.boundingBoxFigure2.setDimension(abs(dx), abs(dy));\n this.boundingBoxFigure2.setPosition(this.x + Math.min(0, dx), this.y + Math.min(0, dy));\n }\n } catch (exc) {\n console.log(exc);\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(canvas, x, y, shiftKey, ctrlKey) {\n var _this3 = this;\n\n try {\n // delete the current selection if you have clicked in the empty\n // canvas.\n if (this.mouseDownElement === null) {\n canvas.getSelection().getAll().each(function (i, figure) {\n _this3.unselect(canvas, figure);\n });\n } else if (this.mouseDownElement instanceof _packages2.default.ResizeHandle || this.mouseDownElement instanceof _packages2.default.shape.basic.LineResizeHandle) {}\n // Do nothing\n // A click on a resize handle didn't change the selection of the canvas\n //\n\n // delete the current selection if you click on another figure than the current\n // selection and you didn't drag the complete selection.\n else if (this.mouseDownElement !== null && this.mouseMovedDuringMouseDown === false) {\n var sel = canvas.getSelection().getAll();\n if (!sel.contains(this.mouseDownElement)) {\n canvas.getSelection().getAll().each(function (i, figure) {\n _this3.unselect(canvas, figure);\n });\n }\n }\n this._super(canvas, x, y, shiftKey, ctrlKey);\n\n if (this.boundingBoxFigure1 !== null) {\n // retrieve all figures which are inside the bounding box and select all of them\n //\n var selectionRect = this.boundingBoxFigure1.getBoundingBox();\n canvas.getFigures().each(function (i, figure) {\n if (figure.isSelectable() === true && _this3.decision(figure.getBoundingBox(), selectionRect)) {\n var fakeDragX = 1;\n var fakeDragY = 1;\n\n var handleRect = figure.getHandleBBox();\n if (handleRect !== null) {\n handleRect.translate(figure.getAbsolutePosition().scale(-1));\n fakeDragX = handleRect.x + 1;\n fakeDragY = handleRect.y + 1;\n }\n var canDragStart = figure.onDragStart(fakeDragX, fakeDragY, shiftKey, ctrlKey);\n if (canDragStart === true) {\n _this3.select(canvas, figure);\n }\n }\n });\n\n this.boundingBoxFigure1.setCanvas(null);\n this.boundingBoxFigure1 = null;\n this.boundingBoxFigure2.setCanvas(null);\n this.boundingBoxFigure2 = null;\n }\n } catch (exc) {\n console.log(exc);\n debugger;\n }\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.BoundingboxSelectionPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.SelectionPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/CanvasPolicy.js\":\n/*!*******************************************!*\\\n !*** ./src/policy/canvas/CanvasPolicy.js ***!\n \\*******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _Color = __webpack_require__(/*! ../../util/Color */ \"./src/util/Color.js\");\n\nvar _Color2 = _interopRequireDefault(_Color);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.policy.canvas.CanvasPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.EditPolicy\r\n */\n_packages2.default.policy.canvas.CanvasPolicy = _packages2.default.policy.EditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.CanvasPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this.canvas = null;\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called if the policy is installed into the canvas.\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n */\n onInstall: function onInstall(canvas) {\n this.canvas = canvas;\n },\n\n /**\r\n * @method\r\n * Called if the policy is deinstalled from the canvas\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n */\n onUninstall: function onUninstall(canvas) {\n this.canvas = null;\n },\n\n /**\r\n * @method\r\n * Called by the canvas if the user click on a figure.\r\n *\r\n * @param {draw2d.Figure} the figure under the click event. Can be null\r\n * @param {Number} mouseX the x coordinate of the mouse during the click event\r\n * @param {Number} mouseY the y coordinate of the mouse during the click event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @since 3.0.0\r\n *\r\n * @template\r\n */\n onClick: function onClick(figure, mouseX, mouseY, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseMove: function onMouseMove(canvas, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Called by the canvas if the user double click on a figure.\r\n *\r\n * @param {draw2d.Figure} the figure under the double click event. Can be null\r\n * @param {Number} mouseX the x coordinate of the mouse during the click event\r\n * @param {Number} mouseY the y coordinate of the mouse during the click event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @since 4.1.0\r\n *\r\n * @template\r\n */\n onDoubleClick: function onDoubleClick(figure, mouseX, mouseY, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseDown: function onMouseDown(canvas, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the shape below the mouse or null\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseUp: function onMouseUp(figure, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Called if the user press the right mouse in the canvas.\r\n *\r\n * @param {draw2d.Figure|draw2d.shape.basic.Line} figure the figure below the mouse\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n * @since 4.4.0\r\n */\n onRightMouseDown: function onRightMouseDown(figure, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * called if the user uses the mouse wheel.\r\n *\r\n *\r\n * @param {Number} wheelDelta\r\n * @param {Number} x the x coordinate of the event\r\n * @param {Number} y the y coordinate of the event\r\n * @param shiftKey\r\n * @param ctrlKey\r\n * @since 5.8.0\r\n * @template\r\n *\r\n * @return {Boolean} return <b>false</b> to preven tthe default event operation (e.g. scrolling)\r\n */\n onMouseWheel: function onMouseWheel(wheelDelta, x, y, shiftKey, ctrlKey) {\n // return \"false\" to prevent the default event operation\n return true;\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the given constraint.\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n return modifiedPos;\n },\n\n /**\r\n * @method\r\n * Helper method to make an monochrome GIF image WxH pixels big, first create a properly sized array: var pixels = new Array(W*H);.\r\n * Then, for each pixel X,Y that should be opaque, store a 1 at the proper location: pixels[X+Y*W] = 1;.\r\n * Finally, create the image: var my_glif = createGif(W, H, pixels, color);\r\n * \"0\" pixels are transparent.\r\n * The <b>color</b> defines the foreground color.\r\n *\r\n * Now, you can specify this image as the SRC attribute of an IMG tag: document.write(\"<IMG SRC=\\\"\" + my_glif + \"\\\">\");\r\n * or for the canvas as background-image css attribute.\r\n *\r\n *\r\n * @param w\r\n * @param h\r\n * @param d\r\n * @param color\r\n * @returns {String}\r\n *\r\n * @private\r\n */\n createMonochromGif: function createMonochromGif(w, h, d, color) {\n color = new _Color2.default(color);\n var r = String.fromCharCode(w % 256) + String.fromCharCode(w / 256) + String.fromCharCode(h % 256) + String.fromCharCode(h / 256);\n\n var gif = \"GIF89a\" + r + \"\\xf0\\0\\0\\xff\\xff\\xff\" + String.fromCharCode(color.red) + String.fromCharCode(color.green) + String.fromCharCode(color.blue) + '!\\xF9\\x04\\x01\\0\\0\\0,\\0\\0\\0\\0' + r + '\\0\\x02';\n\n // help method to generate uncompressed in memory GIF data structur without the usage of a canvas or any other\n // heavy weight stuff.\n var b = {\n bit: 1,\n byte_: 0,\n data: \"\",\n\n writeBit: function writeBit(b) {\n if (b) this.byte_ |= this.bit;\n this.bit <<= 1;\n if (this.bit == 256) {\n this.bit = 1;\n this.data += String.fromCharCode(this.byte_);\n this.byte_ = 0;\n }\n },\n\n get: function get() {\n var result = \"\";\n var data = this.data;\n if (this.bit != 1) {\n data += String.fromCharCode(this.byte_);\n }\n for (var i = 0; i < data.length + 1; i += 255) {\n var chunklen = data.length - i;\n if (chunklen < 0) chunklen = 0;\n if (chunklen > 255) chunklen = 255;\n result += String.fromCharCode(chunklen) + data.substring(i, i + 255);\n }\n return result + \"\\0\";\n }\n };\n\n for (var y = 0; y < h; y++) {\n for (var x = 0; x < w; x++) {\n b.writeBit(d[x + w * y]);\n b.writeBit(0);\n b.writeBit(0);\n b.writeBit(0);\n b.writeBit(0);\n b.writeBit(1);\n }\n }\n gif += b.get() + \";\";\n\n return \"data:image/gif;base64,\" + _packages2.default.util.Base64.encode(gif);\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/CoronaDecorationPolicy.js\":\n/*!*****************************************************!*\\\n !*** ./src/policy/canvas/CoronaDecorationPolicy.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.policy.canvas.CoronaDecorationPolicy\r\n * This decorations hides draw2d.Ports which are to far from the current cursor position.\r\n * This makes the canvas more clean if you have a lot of nodes on it.<br>\r\n * You didn't see a bunch of ports.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // install the policy to the canvas\r\n *\r\n * // add some demo figure to the canvas\r\n * canvas.add(new draw2d.shape.node.Start({x: 10, y: 30}));\r\n * canvas.add(new draw2d.shape.node.End({x: 90, y: 90}));\r\n * canvas.add(new draw2d.shape.node.Between({ x: 310, y: 30}));\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"move the mouse and you see that ports are hidden if the mouse far from it\"}),5,5);\r\n *\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.CoronaDecorationPolicy());\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.DecorationPolicy\r\n */\n_packages2.default.policy.canvas.CoronaDecorationPolicy = _packages2.default.policy.canvas.DecorationPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.CoronaDecorationPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n\n this.startDragX = 0;\n this.startDragY = 0;\n this.diameterToBeFullVisible = 0;\n this.diameterToBeVisible = 0;\n this.sumDiameter = 0;\n\n this._super((0, _extend2.default)({ diameterToBeVisible: 200, diameterToBeFullVisible: 20 }, attr), (0, _extend2.default)({\n diameterToBeVisible: this.setDiameterToBeVisible,\n diameterToBeFullVisible: this.setDiameterToBeFullVisible\n }, setter), (0, _extend2.default)({\n diameterToBeVisible: this.getDiameterToBeVisible,\n diameterToBeFullVisible: this.getDiameterToBeFullVisible\n }, getter));\n },\n\n setDiameterToBeVisible: function setDiameterToBeVisible(diameter) {\n this.diameterToBeVisible = diameter;\n this.sumDiameter = this.diameterToBeFullVisible + this.diameterToBeVisible;\n },\n\n getDiameterToBeVisible: function getDiameterToBeVisible() {\n return this.diameterToBeVisible;\n },\n\n setDiameterToBeFullVisible: function setDiameterToBeFullVisible(diameter) {\n this.diameterToBeFullVisible = diameter;\n this.sumDiameter = this.diameterToBeFullVisible + this.diameterToBeVisible;\n },\n\n getDiameterToBeFullVisible: function getDiameterToBeFullVisible() {\n return this.diameterToBeFullVisible;\n },\n\n /**\r\n * @inheritdoc\r\n */\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n canvas.getFigures().each(function (i, figure) {\n figure.getPorts().each(function (i, p) {\n return p.setVisible(false);\n });\n });\n },\n\n /**\r\n * @inheritdoc\r\n */\n onUninstall: function onUninstall(canvas) {\n this._super(canvas);\n\n canvas.getFigures().each(function (i, figure) {\n figure.getPorts().each(function (i, p) {\n if (p.__origAlpha) {\n p.setAlpha(p.__origAlpha);\n delete p.__origAlpha;\n }\n p.setVisible(true);\n });\n });\n },\n\n /**\r\n * @inheritdoc\r\n */\n onMouseDown: function onMouseDown(canvas, x, y, shiftKey, ctrlKey) {\n this.startDragX = x;\n this.startDragY = y;\n },\n\n /**\r\n * @inheritdoc\r\n */\n onMouseMove: function onMouseMove(canvas, x, y, shiftKey, ctrlKey) {\n this.updatePorts(canvas, x, y);\n },\n\n /**\r\n * @inheritdoc\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n this.updatePorts(canvas, this.startDragX + dx, this.startDragY + dy);\n },\n\n /**\r\n * @method\r\n * Update all ports with the new calculated opacity in relation to the distance to the current\r\n * mouse position\r\n *\r\n * @param canvas\r\n * @param x\r\n * @param y\r\n * @private\r\n */\n updatePorts: function updatePorts(canvas, x, y) {\n var _this = this;\n\n canvas.getFigures().each(function (i, figure) {\n if (figure instanceof _packages2.default.shape.node.Node) {\n if (figure.isVisible() === true && figure.hitTest(x, y, _this.sumDiameter) === true) {\n figure.getPorts().each(function (i, p) {\n if (p.isVisible() === false) {\n p.__origAlpha = figure.getAlpha();\n }\n var dist = figure.getBoundingBox().getDistance(new _packages2.default.geo.Point(x, y));\n var alpha = 1 - 100 / (_this.diameterToBeVisible - _this.diameterToBeFullVisible) * dist / 100.0;\n p.setAlpha(alpha);\n p.setVisible(true);\n });\n } else {\n figure.getPorts().each(function (i, p) {\n if (p.__origAlpha) {\n p.setAlpha(p.__origAlpha);\n delete p.__origAlpha;\n }\n p.setVisible(false);\n });\n }\n }\n });\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/DecorationPolicy.js\":\n/*!***********************************************!*\\\n !*** ./src/policy/canvas/DecorationPolicy.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.DecorationPolicy = _packages2.default.policy.canvas.CanvasPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.DecorationPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.DecorationPolicy\r\n * The base class for any canvas decoration like grid, chessboard, graph paper or\r\n * other.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/DefaultKeyboardPolicy.js\":\n/*!****************************************************!*\\\n !*** ./src/policy/canvas/DefaultKeyboardPolicy.js ***!\n \\****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.DefaultKeyboardPolicy = _packages2.default.policy.canvas.KeyboardPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.DefaultKeyboardPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback if the user press a key.<br>\r\n * This implementation checks only if the <b>DEL</b> has been pressed and creates an\r\n * CommandDelete if this happens.\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {Number} keyCode the pressed key\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onKeyDown: function onKeyDown(canvas, keyCode, shiftKey, ctrlKey) {\n //\n if (keyCode === 46 && canvas.getPrimarySelection() !== null) {\n // create a single undo/redo transaction if the user delete more than one element. \n // This happens with command stack transactions.\n //\n canvas.getCommandStack().startTransaction(_packages2.default.Configuration.i18n.command.deleteShape);\n var selection = canvas.getSelection();\n selection.each(function (index, figure) {\n // don't delete a connection if the source or target figure is part of the selection.\n // In this case the connection is deleted by the DeleteCommand itself and it is not allowed to\n // delete a figure twice.\n //\n if (figure instanceof _packages2.default.Connection) {\n if (selection.contains(figure.getSource(), true)) {\n return;\n }\n if (selection.contains(figure.getTarget(), true)) {\n return;\n }\n }\n var cmd = figure.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.DELETE));\n if (cmd !== null) {\n canvas.getCommandStack().execute(cmd);\n }\n });\n // execute all single commands at once.\n canvas.getCommandStack().commitTransaction();\n } else {\n this._super(canvas, keyCode, shiftKey, ctrlKey);\n }\n }\n}); /**\r\n * @class draw2d.policy.canvas.DefaultKeyboardPolicy\r\n * Standard keyboard policy. This is the standard installed keyboard policy.\r\n * <br>\r\n * <br>\r\n * Keyboard commands\r\n * <ul>\r\n * <li>DEL - delete selection</li>\r\n * </ul>\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.KeyboardPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/DropInterceptorPolicy.js\":\n/*!****************************************************!*\\\n !*** ./src/policy/canvas/DropInterceptorPolicy.js ***!\n \\****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.DropInterceptorPolicy = _packages2.default.policy.canvas.CanvasPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.DropInterceptorPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called if the user want connect a port with any kind draw2d.Figure.<br>\r\n * Return a non <b>null</b> value if the interceptor accept the connect event.<br>\r\n * <br>\r\n * It is possible to delegate the drop event to another figure if the policy\r\n * returns another figure. This is usefull if a figure want to accept a port\r\n * drop event and delegates this drop event to another port.<br>\r\n *\r\n *\r\n * @param {draw2d.Figure} connectInquirer the figure who wants connect\r\n * @param {draw2d.Figure} connectIntent the potential connect target\r\n *\r\n * @return {draw2d.Figure} the calculated connect intent or <b>null</b> if the interceptor uses the veto right\r\n */\n delegateTarget: function delegateTarget(connectInquirer, connectIntent) {\n // a composite accept any kind of figures exceptional ports\n //\n if (!(connectInquirer instanceof _packages2.default.Port) && connectIntent instanceof _packages2.default.shape.composite.StrongComposite) {\n return connectIntent;\n }\n\n // Ports accepts only Ports as DropTarget\n //\n if (!(connectIntent instanceof _packages2.default.Port) || !(connectInquirer instanceof _packages2.default.Port)) {\n return null;\n }\n\n // consider the max possible connections for this port\n //\n if (connectIntent.getConnections().getSize() >= connectIntent.getMaxFanOut()) {\n return null;\n }\n\n // It is not allowed to connect two output ports\n if (connectInquirer instanceof _packages2.default.OutputPort && connectIntent instanceof _packages2.default.OutputPort) {\n return null;\n }\n\n // It is not allowed to connect two input ports\n if (connectInquirer instanceof _packages2.default.InputPort && connectIntent instanceof _packages2.default.InputPort) {\n return null;\n }\n\n // It is not possible to create a loop back connection at the moment.\n // Reason: no connection router implemented for this case\n if (connectInquirer instanceof _packages2.default.Port && connectIntent instanceof _packages2.default.Port) {\n if (connectInquirer.getParent() === connectIntent.getParent()) {\n return null;\n }\n }\n\n // redirect the dragEnter handling to the hybrid port\n //\n if (connectInquirer instanceof _packages2.default.Port && connectIntent instanceof _packages2.default.shape.node.Hub) {\n return connectIntent.getHybridPort(0);\n }\n\n // return the connectTarget determined by the framework or delegate it to another\n // figure.\n return connectIntent;\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.DropInterceptorPolicy\r\n *\r\n * Drop interceptors are basically event handlers from which you can return a value\r\n * that tells draw2d to abort what it is that it was doing.<br>\r\n * <br>\r\n * Interceptors can be registered via the registerEditPolicy method on the draw2d canvas just like any other\r\n * edit policies.<br>\r\n * <br>\r\n * The <b>delegateTarget</b> method is responsible for all drop event especially to all connection and port handling.\r\n *\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n * @since 5.0.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ExtendedKeyboardPolicy.js\":\n/*!*****************************************************!*\\\n !*** ./src/policy/canvas/ExtendedKeyboardPolicy.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.ExtendedKeyboardPolicy = _packages2.default.policy.canvas.KeyboardPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ExtendedKeyboardPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback if the user press a key\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {Number} keyCode the pressed key\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onKeyDown: function onKeyDown(canvas, keyCode, shiftKey, ctrlKey) {\n if (canvas.getPrimarySelection() !== null && ctrlKey === true) {\n switch (keyCode) {\n\n case 71:\n // G\n if (canvas.getPrimarySelection() instanceof _packages2.default.shape.composite.Group && canvas.getSelection().getSize() === 1) {\n canvas.getCommandStack().execute(new _packages2.default.command.CommandUngroup(canvas, canvas.getPrimarySelection()));\n } else {\n canvas.getCommandStack().execute(new _packages2.default.command.CommandGroup(canvas, canvas.getSelection()));\n }\n break;\n case 66:\n // B\n canvas.getPrimarySelection().toBack();\n break;\n case 70:\n // F\n canvas.getPrimarySelection().toFront();\n }\n } else {\n this._super(canvas, keyCode, shiftKey, ctrlKey);\n }\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.ExtendedKeyboardPolicy\r\n * Extended keyboard policy to <b>delete</b> and <b>group</b> figures in the canvas.\r\n * <br>\r\n * Keyboard commands\r\n * <ul>\r\n * <li>DEL - delete selection</li>\r\n * <li>Ctrl+G - group/ungroup selection</li>\r\n * <li>Ctrl+B - send current selection in the background (toBack)</li>\r\n * <li>Ctrl+F - send current selection in the foreground (toFront)</li>\r\n * </ul>\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.KeyboardPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/FadeoutDecorationPolicy.js\":\n/*!******************************************************!*\\\n !*** ./src/policy/canvas/FadeoutDecorationPolicy.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.FadeoutDecorationPolicy = _packages2.default.policy.canvas.DecorationPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.FadeoutDecorationPolicy\",\n\n DEFAULT_FADEOUT_DURATION: 60,\n DEFAULT_ALPHA_DECREMENT: 0.05,\n\n /**\r\n * @constructor\r\n * Creates a new fade out policy. Don't forget to install them into the canvas.\r\n *\r\n */\n init: function init() {\n this._super();\n this.alpha = 1.0;\n this.alphaDec = this.DEFAULT_ALPHA_DECREMENT;\n this.hidePortsCounter = this.DEFAULT_FADEOUT_DURATION;\n this.portDragging = false;\n },\n\n /**\r\n * @inheritDoc\r\n **/\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n this.timerId = window.setInterval(this.onTimer.bind(this), 50);\n\n // initial hide all decorations after install of this policy\n //\n this.hidePortsCounter = 1;\n this.alpha = 0.1;\n },\n\n /**\r\n * @inheritDoc\r\n **/\n onUninstall: function onUninstall(canvas) {\n window.clearInterval(this.timerId);\n this.canvas.getAllPorts().each(function (i, port) {\n port.setAlpha(1.0);\n });\n\n this._super(canvas);\n },\n\n /**\r\n * @method\r\n *\r\n * Timerfucntion to show/hide the related ports\r\n * @private\r\n **/\n onTimer: function onTimer() {\n this.hidePortsCounter--;\n var _this = this;\n if (this.hidePortsCounter <= 0 && this.alpha > 0) {\n this.alpha = Math.max(0, this.alpha - this.alphaDec);\n\n this.canvas.getAllPorts().each(function (i, port) {\n port.setAlpha(_this.alpha);\n });\n\n this.canvas.getSelection().getAll().each(function (i, figure) {\n figure.selectionHandles.each(function (i, handle) {\n handle.setAlpha(_this.alpha);\n });\n });\n } else if (this.hidePortsCounter > 0 && this.alpha !== 1.0) {\n this.alpha = 1; // Math.min(1,this.alpha+0.1);\n this.alphaDec = this.DEFAULT_ALPHA_DECREMENT;\n this.duringHide = false;\n this.canvas.getAllPorts().each(function (i, port) {\n port.setAlpha(_this.alpha);\n });\n this.canvas.getSelection().getAll().each(function (i, figure) {\n figure.selectionHandles.each(function (i, handle) {\n handle.setAlpha(_this.alpha);\n });\n });\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseDown: function onMouseDown(canvas, x, y, shiftKey, ctrlKey) {\n this.hidePortsCounter = this.DEFAULT_FADEOUT_DURATION;\n this.portDragging = canvas.getBestFigure(x, y) instanceof _packages2.default.Port;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseMove: function onMouseMove(canvas, x, y, shiftKey, ctrlKey) {\n this.hidePortsCounter = this.DEFAULT_FADEOUT_DURATION;\n this.portDragging = false;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n if (this.portDragging === false) {\n this.hidePortsCounter = 0;\n this.alphaDec = 0.1;\n this.onTimer();\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(figure, x, y, shiftKey, ctrlKey) {\n this.hidePortsCounter = this.DEFAULT_FADEOUT_DURATION;\n this.portDragging = false;\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.FadeoutDecorationPolicy\r\n *\r\n * Install this edit policy in a canvas if you want fadeout all decorations like ports, resize handles\r\n * if the user didn't move the mouse. This is good for a clean representation of your diagram.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.DecorationPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/GhostMoveSelectionPolicy.js\":\n/*!*******************************************************!*\\\n !*** ./src/policy/canvas/GhostMoveSelectionPolicy.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.GhostMoveSelectionPolicy = _packages2.default.policy.canvas.SingleSelectionPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.GhostMoveSelectionPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this.clone = null;\n this.ghostRectangle1 = null;\n this.ghostRectangle2 = null;\n\n this._super();\n },\n\n /**\r\n * @inheritdoc\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n this.mouseMovedDuringMouseDown = true;\n if (this.mouseDraggingElement !== null) {\n\n // if the figure not part of the selection it must be a ResizeHandle...\n var sel = canvas.getSelection().getAll();\n if (!sel.contains(this.mouseDraggingElement)) {\n this.mouseDraggingElement.onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n }\n // it is a normal draw2d.Figure\n else {\n // create the ghost handles for the figure to move and update the position\n //\n if (this.ghostRectangle1 === null) {\n this.ghostRectangle1 = new _packages2.default.shape.basic.Rectangle(); // new API with version 5.0.0\n // old API\n this.ghostRectangle1.setBackgroundColor(\"#303030\");\n this.ghostRectangle1.setAlpha(0.1);\n\n this.ghostRectangle2 = new _packages2.default.shape.basic.Rectangle();\n this.ghostRectangle2.setDashArray(\"- \");\n this.ghostRectangle2.setStroke(1);\n this.ghostRectangle2.setColor(\"#5497DC\");\n this.ghostRectangle2.setBackgroundColor(null);\n\n this.ghostRectangle1.setBoundingBox(this.mouseDraggingElement.getBoundingBox());\n this.ghostRectangle2.setBoundingBox(this.mouseDraggingElement.getBoundingBox());\n\n this.ghostRectangle1.setCanvas(canvas);\n this.ghostRectangle1.toFront();\n\n this.ghostRectangle2.setCanvas(canvas);\n this.ghostRectangle2.toFront();\n\n this.clone = this.mouseDraggingElement.clone();\n if (this.clone instanceof _packages2.default.shape.node.Node) {\n this.clone.resetPorts();\n }\n this.clone.setCanvas(canvas);\n this.clone.getShapeElement();\n this.clone.setAlpha(0.4);\n this.clone.repaint();\n } else {\n this.ghostRectangle1.translate(dx2, dy2);\n this.ghostRectangle2.translate(dx2, dy2);\n this.clone.translate(dx2, dy2);\n }\n\n sel.each(function (i, figure) {\n // store the new location in a tmp var.\n figure._newPos = new _packages2.default.geo.Point(figure.ox + dx, figure.oy + dy);\n\n // don't move the figure. This will be done in the MouseUp event\n //figure.onDrag(dx, dy, dx2, dy2);\n });\n }\n\n var p = canvas.fromDocumentToCanvasCoordinate(canvas.mouseDownX + dx / canvas.zoomFactor, canvas.mouseDownY + dy / canvas.zoomFactor);\n var target = canvas.getBestFigure(p.x, p.y, this.mouseDraggingElement);\n\n if (target !== canvas.currentDropTarget) {\n if (canvas.currentDropTarget !== null) {\n canvas.currentDropTarget.onDragLeave(this.mouseDraggingElement);\n canvas.currentDropTarget.fireEvent(\"dragLeave\", { draggingElement: this.draggingElement });\n canvas.currentDropTarget = null;\n }\n if (target !== null) {\n canvas.currentDropTarget = target.delegateTarget(this.mouseDraggingElement);\n // inform all listener that the element has accept a dropEnter event\n if (canvas.currentDropTarget !== null) {\n canvas.currentDropTarget.onDragEnter(this.mouseDraggingElement); // legacy\n canvas.currentDropTarget.fireEvent(\"dragEnter\", { draggingElement: this.draggingElement });\n }\n }\n }\n }\n // Connection didn't support panning at the moment. There is no special reason for that. Just an interaction\n // decision.\n //\n else if (this.mouseDownElement !== null && !(this.mouseDownElement instanceof _packages2.default.Connection)) {\n if (this.mouseDownElement.panningDelegate !== null) {\n this.mouseDownElement.panningDelegate.fireEvent(\"panning\", {\n dx: dx,\n dy: dy,\n dx2: dx2,\n dy2: dy2,\n shiftKey: shiftKey,\n ctrlKey: ctrlKey\n });\n this.mouseDownElement.panningDelegate.onPanning(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n } else {\n this.mouseDownElement.fireEvent(\"panning\", {\n dx: dx,\n dy: dy,\n dx2: dx2,\n dy2: dy2,\n shiftKey: shiftKey,\n ctrlKey: ctrlKey\n });\n this.mouseDownElement.onPanning(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n }\n }\n },\n\n /**\r\n * @inheritdoc\r\n */\n onMouseUp: function onMouseUp(canvas, x, y, shiftKey, ctrlKey) {\n\n if (this.ghostRectangle1 !== null) {\n this.ghostRectangle1.setCanvas(null);\n this.ghostRectangle1 = null;\n this.ghostRectangle2.setCanvas(null);\n this.ghostRectangle2 = null;\n this.clone.setCanvas(null);\n this.clone = null;\n }\n\n if (this.mouseDraggingElement !== null) {\n var redrawConnection = new _packages2.default.util.ArrayList();\n if (this.mouseDraggingElement instanceof _packages2.default.shape.node.Node) {\n canvas.lineIntersections.each(function (i, inter) {\n if (!redrawConnection.contains(inter.line)) redrawConnection.add(inter.line);\n if (!redrawConnection.contains(inter.other)) redrawConnection.add(inter.other);\n });\n }\n\n // start CommandStack transaction\n // Trigger an update of the connections if we have move a draw2d.shape.node.Node figure.\n // (only \"nodes\" can have ports and connections)\n //\n canvas.getCommandStack().startTransaction();\n\n var sel = canvas.getSelection().getAll();\n // We move a resize handle...\n //\n if (!sel.contains(this.mouseDraggingElement)) {\n this.mouseDraggingElement.onDragEnd(x, y, shiftKey, ctrlKey);\n }\n // ... or a real figure.\n //\n else {\n canvas.getSelection().getAll().each(function (i, figure) {\n // set position and cleanup tmp variable\n if (figure._newPos) {\n figure.setPosition(figure._newPos);\n delete figure._newPos;\n }\n // done\n figure.onDragEnd(x, y, shiftKey, ctrlKey);\n });\n }\n\n // May we drop the figure onto another shape..handle this here\n //\n if (canvas.currentDropTarget !== null && !this.mouseDraggingElement.isResizeHandle) {\n this.mouseDraggingElement.onDrop(canvas.currentDropTarget, x, y, shiftKey, ctrlKey);\n canvas.currentDropTarget.onDragLeave(this.mouseDraggingElement);\n canvas.currentDropTarget.onCatch(this.mouseDraggingElement, x, y, shiftKey, ctrlKey);\n canvas.currentDropTarget = null;\n }\n\n // end command stack trans\n canvas.getCommandStack().commitTransaction();\n\n if (this.mouseDraggingElement instanceof _packages2.default.shape.node.Node) {\n canvas.lineIntersections.each(function (i, inter) {\n if (!redrawConnection.contains(inter.line)) redrawConnection.add(inter.line);\n if (!redrawConnection.contains(inter.other)) redrawConnection.add(inter.other);\n });\n redrawConnection.each(function (i, line) {\n line.svgPathString = null;\n line.repaint();\n });\n }\n\n this.mouseDraggingElement = null;\n }\n\n // Reset the current selection if the user click in the blank canvas.\n // Don't reset the selection if the user is panning the canvas\n //\n if (this.mouseDownElement === null && this.mouseMovedDuringMouseDown === false) {\n this.select(canvas, null);\n }\n\n this.mouseDownElement = null;\n this.mouseMovedDuringMouseDown = false;\n }\n}); /**\r\n * @class draw2d.policy.canvas.GhostMoveSelectionPolicy\r\n *\r\n * A drag&Drop feedback handler for the canvas. The policy didn't move the\r\n * shapes in real time rather it shows a ghost rectangle as feedback. <br>\r\n * <br>\r\n * The shapes are updated after the drag&drop operation.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // install the policy to the canvas\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.GhostMoveSelectionPolicy());\r\n *\r\n * // add some demo figure to the canvas\r\n * canvas.add(new draw2d.shape.basic.Circle({diameter: 50, x: 10, y: 30}));\r\n * canvas.add(new draw2d.shape.basic.Circle({diameter: 30, x: 90, y: 50}));\r\n * canvas.add(new draw2d.shape.basic.Circle({diameter: 60, x: 110, y: 30}));\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"move the circle to see the drag&drop feedback\"}),5,5);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.SingleSelectionPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/KeyboardPolicy.js\":\n/*!*********************************************!*\\\n !*** ./src/policy/canvas/KeyboardPolicy.js ***!\n \\*********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.KeyboardPolicy = _packages2.default.policy.canvas.CanvasPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.KeyboardPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Callback if the user release a key\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {Number} keyCode the pressed key\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onKeyUp: function onKeyUp(canvas, keyCode, shiftKey, ctrlKey) {\n // do nothing per default\n },\n\n /**\r\n * @method\r\n * Callback if the user press a key down\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {Number} keyCode the pressed key\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onKeyDown: function onKeyDown(canvas, keyCode, shiftKey, ctrlKey) {\n // do nothing per default\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.KeyboardPolicy\r\n * Default interface for keyboard interaction with the canvas.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/PanningSelectionPolicy.js\":\n/*!*****************************************************!*\\\n !*** ./src/policy/canvas/PanningSelectionPolicy.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.PanningSelectionPolicy = _packages2.default.policy.canvas.SingleSelectionPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.PanningSelectionPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n this._super(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey);\n\n if (this.mouseDraggingElement === null && this.mouseDownElement === null) {\n\n // check if we are dragging a port. This isn't reported by the selection handler anymore\n //\n var p = canvas.fromDocumentToCanvasCoordinate(canvas.mouseDownX + dx / canvas.zoomFactor, canvas.mouseDownY + dy / canvas.zoomFactor);\n var figure = canvas.getBestFigure(p.x, p.y);\n\n if (figure === null) {\n var area = canvas.getScrollArea();\n area.scrollTop(area.scrollTop() - dy2);\n area.scrollLeft(area.scrollLeft() - dx2);\n }\n }\n }\n}); /**\r\n * @class draw2d.policy.canvas.PanningSelectionPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.SingleSelectionPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ReadOnlySelectionPolicy.js\":\n/*!******************************************************!*\\\n !*** ./src/policy/canvas/ReadOnlySelectionPolicy.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.ReadOnlySelectionPolicy = _packages2.default.policy.canvas.SelectionPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ReadOnlySelectionPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been installed.\r\n *\r\n * @param {draw2d.Canvas/draw2d.Canvas} canvas\r\n */\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n canvas.getAllPorts().each(function (i, port) {\n port.setVisible(false);\n });\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been uninstalled.\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n */\n onUninstall: function onUninstall(canvas) {\n canvas.getAllPorts().each(function (i, port) {\n port.setVisible(true);\n });\n\n this._super(canvas);\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n var area = canvas.getScrollArea();\n area.scrollTop(area.scrollTop() - dy2);\n area.scrollLeft(area.scrollLeft() - dx2);\n }\n}); /**\r\n * @class draw2d.policy.canvas.ReadOnlySelectionPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.SelectionPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SelectionPolicy.js\":\n/*!**********************************************!*\\\n !*** ./src/policy/canvas/SelectionPolicy.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SelectionPolicy = _packages2.default.policy.canvas.CanvasPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SelectionPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new selection policy\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Selects the given figure within the canvas. The policy must unselect already selected\r\n * figures or show any decorations.\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {draw2d.Figure} figure\r\n *\r\n */\n select: function select(canvas, figure) {},\n\n /**\r\n * @method\r\n * Unselect the given figure in the canvas and remove all resize handles\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {draw2d.Figure} figure\r\n */\n unselect: function unselect(canvas, figure) {\n canvas.getSelection().remove(figure);\n\n figure.unselect();\n\n // @since 6.1.42\n canvas.fireEvent(\"unselect\", { figure: figure });\n }\n}); /**\r\n * @class draw2d.policy.canvas.SelectionPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ShowChessboardEditPolicy.js\":\n/*!*******************************************************!*\\\n !*** ./src/policy/canvas/ShowChessboardEditPolicy.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.ShowChessboardEditPolicy = _packages2.default.policy.canvas.DecorationPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ShowChessboardEditPolicy\",\n\n GRID_COLOR: \"#e0e0e0\",\n GRID_WIDTH: 20,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to grid\r\n *\r\n * @param {Number} grid the grid width of the canvas\r\n */\n init: function init(grid) {\n this._super();\n this.cells = null;\n if (grid) {\n this.grid = grid;\n } else {\n this.grid = this.GRID_WIDTH;\n }\n },\n\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n this.showGrid();\n },\n\n onUninstall: function onUninstall(canvas) {\n this.cells.remove();\n this._super(canvas);\n },\n\n /**\r\n * @method\r\n * paint the grid into the canvas\r\n *\r\n * @private\r\n * @since 2.3.0\r\n */\n showGrid: function showGrid() {\n // vertical lines\n var w = this.canvas.initialWidth;\n var h = this.canvas.initialHeight;\n this.cells = this.canvas.paper.set();\n\n var even = false;\n var xEven = even;\n for (var x = 0; x < w; x += this.grid) {\n for (var y = 0; y < h; y += this.grid) {\n if (even) {\n var crect = this.canvas.paper.rect(x, y, this.grid, this.grid);\n crect.attr({ fill: this.GRID_COLOR, \"stroke-width\": 0 });\n this.cells.push(crect);\n }\n even = !even;\n }\n xEven = !xEven;\n even = xEven;\n }\n\n this.cells.toBack();\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.ShowChessboardEditPolicy\r\n *\r\n * Just to paint a grid in the background.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.ShowChessboardEditPolicy());\r\n * var shape = new draw2d.shape.basic.Text({text:\"This is a simple text in a canvas with chessboard background.\"});\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.DecorationPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ShowDimetricGridEditPolicy.js\":\n/*!*********************************************************!*\\\n !*** ./src/policy/canvas/ShowDimetricGridEditPolicy.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.ShowDimetricGridEditPolicy = _packages2.default.policy.canvas.DecorationPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ShowDimetricGridEditPolicy\",\n\n GRID_COLOR: \"#f0f0f0\",\n GRID_WIDTH: 30,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to grid\r\n *\r\n * @param {Number} [grid] the grid width of the canvas\r\n */\n init: function init(grid) {\n this.color = new _packages2.default.util.Color(this.GRID_COLOR);\n this.zoom = 1;\n this.shapes = null;\n\n this._super();\n\n if (typeof grid === \"number\") {\n this.grid = grid;\n } else {\n this.grid = this.GRID_WIDTH;\n }\n },\n\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n this.zoom = canvas.getZoom();\n this.setGrid(this.grid);\n },\n\n onUninstall: function onUninstall(canvas) {\n this._super(canvas);\n if (this.shapes !== null) {\n this.shapes.remove();\n }\n },\n\n /**\r\n * @method\r\n * Set the grid color\r\n *\r\n * @param {draw2d.util.Color|String} color a color object or the CSS string declaration for a color\r\n * @since 5.0.3\r\n */\n setGridColor: function setGridColor(color) {\n this.color = new _packages2.default.util.Color(color);\n this.setGrid(this.grid);\n },\n\n /**\r\n * @method\r\n * Set a new grid width/height\r\n *\r\n * @param {Number} grid\r\n * @since 5.0.3\r\n */\n setGrid: function setGrid(grid) {\n this.grid = grid;\n\n if (this.canvas != null) {\n if (this.shapes !== null) {\n this.shapes.remove();\n }\n\n var r = this.canvas.paper;\n var d = this.grid,\n i = void 0;\n var w = r.width;\n var h = r.height;\n var props = { stroke: this.color.rgba() };\n\n var max = Math.sqrt(w * w + h * h);\n var angle26 = Math.atan(.5);\n var angle153 = Math.PI - angle26;\n var cos30 = Math.cos(angle26);\n var sin30 = Math.sin(angle26);\n var cos150 = Math.cos(angle153);\n var sin150 = Math.sin(angle153);\n\n r.setStart();\n // horizontal\n for (i = 0; i <= w; i += d * 2) {\n r.path([[\"M\", i, 0], [\"L\", i + cos30 * max, sin30 * max]]).attr(props);\n r.path([[\"M\", i, 0], [\"L\", i + cos150 * max, sin150 * max]]).attr(props);\n }\n for (i = d; i <= h; i += d) {\n r.path([[\"M\", 0, i], [\"L\", cos30 * max, i + sin30 * max]]).attr(props);\n r.path([[\"M\", w, i], [\"L\", w + cos150 * max, i + sin150 * max]]).attr(props);\n }\n // vertical\n this.shapes = r.setFinish();\n\n this.shapes.toBack();\n }\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.ShowDimetricGridEditPolicy\r\n *\r\n * A canvas decoration which paints a dimetric in the background.\r\n * <br>\r\n * <br>\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.ShowDimetricGridEditPolicy());\r\n * let shape = new draw2d.shape.basic.Text({text:\"This is a simple text in a canvas with grid background.\"});\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.DecorationPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ShowDotEditPolicy.js\":\n/*!************************************************!*\\\n !*** ./src/policy/canvas/ShowDotEditPolicy.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.ShowDotEditPolicy = _packages2.default.policy.canvas.DecorationPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ShowDotEditPolicy\",\n\n DOT_COLOR: \"#999999\",\n DOT_RADIUS: 1,\n DOT_DISTANCE: 20,\n\n /**\r\n * @constructor\r\n * show a dot grid in the canvas for decoration.\r\n *\r\n * @param {Number} [dotDistance] the distance or grid width between the dots.\r\n * @param {Number} [dotRadius] the radius of the dots.\r\n * @param {draw2d.util.Color|String} [dotColor] the color for the dots.\r\n */\n init: function init(dotDistance, dotRadius, dotColor) {\n this._super();\n\n this.dotDistance = dotDistance ? dotDistance : this.DOT_DISTANCE;\n this.dotRadius = dotRadius ? dotRadius : this.DOT_RADIUS;\n this.dotColor = new _packages2.default.util.Color(dotColor ? dotColor : this.DOT_COLOR);\n\n // generate the background pattern with an data URL GIF image. This is much faster than draw\n // the pattern via the canvas and the raphael.circle method\n //\n var mypixels = Array(this.dotDistance * this.dotDistance);\n // set the pixel at the coordinate [0,0] as opaque.\n mypixels[0] = 1;\n this.imageDataURL = this.createMonochromGif(this.dotDistance, this.dotDistance, mypixels, this.dotColor);\n },\n\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n this.oldBg = this.canvas.html.css(\"background-image\");\n $(canvas.paper.canvas).css({ \"background-image\": \"url('\" + this.imageDataURL + \"')\" });\n },\n\n onUninstall: function onUninstall(canvas) {\n this._super(canvas);\n $(canvas.paper.canvas).css({ \"background-image\": this.oldBg });\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.ShowDotEditPolicy\r\n *\r\n * Paint a dotted pattern in the background of the canvas.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.ShowDotEditPolicy());\r\n * var shape = new draw2d.shape.basic.Text({text:\"This is a simple text in a canvas with dotted background.\"});\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.DecorationPolicy\r\n * @since 4.0.1\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ShowGridEditPolicy.js\":\n/*!*************************************************!*\\\n !*** ./src/policy/canvas/ShowGridEditPolicy.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.ShowGridEditPolicy = _packages2.default.policy.canvas.DecorationPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ShowGridEditPolicy\",\n\n GRID_COLOR: \"#f0f0f0\",\n GRID_WIDTH: 20,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to grid\r\n *\r\n * @param {Number} [grid] the grid width of the canvas\r\n */\n init: function init(grid) {\n this.color = new _packages2.default.util.Color(this.GRID_COLOR);\n this.zoom = 1;\n this.svg = null;\n\n this._super();\n\n if (typeof grid === \"number\") {\n this.grid = grid;\n } else {\n this.grid = this.GRID_WIDTH;\n }\n },\n\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n this.zoom = canvas.getZoom();\n this.setGrid(this.grid);\n },\n\n onUninstall: function onUninstall(canvas) {\n this._super(canvas);\n if (this.svg !== null) {\n this.svg.remove();\n }\n },\n\n /**\r\n * @method\r\n * Set the grid color\r\n *\r\n * @param {draw2d.util.Color|String} color a color object or the CSS string declaration for a color\r\n * @since 5.0.3\r\n */\n setGridColor: function setGridColor(color) {\n this.color = new _packages2.default.util.Color(color);\n this.setGrid(this.grid);\n },\n\n /**\r\n * @method\r\n * Set a new grid width/height\r\n *\r\n * @param {Number} grid\r\n * @since 5.0.3\r\n */\n setGrid: function setGrid(grid) {\n this.grid = grid;\n\n if (this.canvas != null) {\n if (this.svg !== null) {\n this.svg.remove();\n }\n\n var r = this.canvas.paper;\n var d = this.grid,\n i;\n var w = r.width;\n var h = r.height;\n var props = { stroke: this.color.rgba() };\n r.setStart();\n // horizontal\n for (var _i = d + 0.5; _i < h; _i += d) {\n r.path([[\"M\", 0, _i], [\"L\", w, _i]]).attr(props);\n }\n // vertical\n for (var _i2 = d + 0.5; _i2 < w; _i2 += d) {\n r.path([[\"M\", _i2, 0], [\"L\", _i2, h]]).attr(props);\n }\n this.svg = r.setFinish();\n\n this.svg.toBack();\n }\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.ShowGridEditPolicy\r\n *\r\n * A cavas decoration which paints a grid in the background.\r\n * <br>\r\n * <br>\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.ShowGridEditPolicy());\r\n * var shape = new draw2d.shape.basic.Text({text:\"This is a simple text in a canvas with grid background.\"});\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.DecorationPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SingleSelectionPolicy.js\":\n/*!****************************************************!*\\\n !*** ./src/policy/canvas/SingleSelectionPolicy.js ***!\n \\****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SingleSelectionPolicy = _packages2.default.policy.canvas.SelectionPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SingleSelectionPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init() {\n this._super();\n this.mouseMovedDuringMouseDown = false;\n this.mouseDraggingElement = null;\n this.mouseDownElement = null;\n },\n\n /**\r\n * @inheritdoc\r\n */\n select: function select(canvas, figure) {\n if (canvas.getSelection().contains(figure)) {\n return; // nothing to to\n }\n\n var oldSelection = canvas.getSelection().getPrimary();\n if (canvas.getSelection().getPrimary() !== null) {\n this.unselect(canvas, canvas.getSelection().getPrimary());\n }\n\n if (figure !== null) {\n figure.select(true); // primary selection\n }\n\n canvas.getSelection().setPrimary(figure);\n\n // inform all selection listeners about the new selection.\n //\n if (oldSelection !== figure) {\n canvas.fireEvent(\"select\", { figure: figure, selection: canvas.getSelection() });\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseDown: function onMouseDown(canvas, x, y, shiftKey, ctrlKey) {\n this.mouseMovedDuringMouseDown = false;\n var canDragStart = true;\n\n // ignore ports since version 6.1.0. This is handled by the ConnectionCreatePolicy\n //\n var figure = canvas.getBestFigure(x, y);\n\n // may the figure is assigned to a composite. In this case the composite can\n // override the event receiver\n while (figure !== null) {\n var delegate = figure.getSelectionAdapter()();\n if (delegate === figure) {\n break;\n }\n figure = delegate;\n }\n\n // ignore ports since version 6.1.0. This is handled by the ConnectionCreatePolicy\n //\n if (figure instanceof _packages2.default.Port) {\n return; // silently\n }\n\n if (figure !== null && figure.isDraggable()) {\n canDragStart = figure.onDragStart(x - figure.getAbsoluteX(), y - figure.getAbsoluteY(), shiftKey, ctrlKey);\n // Element send a veto about the drag&drop operation\n this.mouseDraggingElement = canDragStart === false ? null : figure;\n }\n\n this.mouseDownElement = figure;\n if (this.mouseDownElement !== null) {\n this.mouseDownElement.fireEvent(\"mousedown\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n }\n\n if (figure !== canvas.getSelection().getPrimary() && figure !== null && figure.isSelectable() === true) {\n this.select(canvas, figure);\n\n // it's a line\n if (figure instanceof _packages2.default.shape.basic.Line) {\n // you can move a line with Drag&Drop...but not a connection.\n // A Connection is fixed linked with the corresponding ports.\n //\n if (!(figure instanceof _packages2.default.Connection)) {\n canvas.draggingLineCommand = figure.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE));\n if (canvas.draggingLineCommand !== null) {\n canvas.draggingLine = figure;\n }\n }\n } else if (canDragStart === false) {\n figure.unselect();\n }\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n this.mouseMovedDuringMouseDown = true;\n if (this.mouseDraggingElement !== null) {\n // Can be a ResizeHandle or a normal Figure\n //\n var sel = canvas.getSelection();\n if (!sel.contains(this.mouseDraggingElement)) {\n this.mouseDraggingElement.onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n } else {\n sel.each(function (i, figure) {\n figure.onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n });\n }\n\n var p = canvas.fromDocumentToCanvasCoordinate(canvas.mouseDownX + dx / canvas.zoomFactor, canvas.mouseDownY + dy / canvas.zoomFactor);\n var target = canvas.getBestFigure(p.x, p.y, this.mouseDraggingElement);\n\n if (target !== canvas.currentDropTarget) {\n if (canvas.currentDropTarget !== null) {\n canvas.currentDropTarget.onDragLeave(this.mouseDraggingElement);\n canvas.currentDropTarget.fireEvent(\"dragLeave\", { draggingElement: this.mouseDraggingElement });\n canvas.currentDropTarget = null;\n }\n if (target !== null) {\n canvas.currentDropTarget = target.delegateTarget(this.mouseDraggingElement);\n // inform all listener that the element has accept the dragEnter event\n //\n if (canvas.currentDropTarget !== null) {\n canvas.currentDropTarget.onDragEnter(this.mouseDraggingElement); // legacy\n canvas.currentDropTarget.fireEvent(\"dragEnter\", { draggingElement: this.mouseDraggingElement });\n }\n }\n }\n }\n // Connection didn't support panning at the moment. There is no special reason for that. Just an interaction\n // decision.\n //\n else if (this.mouseDownElement !== null && !(this.mouseDownElement instanceof _packages2.default.Connection)) {\n if (this.mouseDownElement.panningDelegate !== null) {\n this.mouseDownElement.panningDelegate.fireEvent(\"panning\", {\n dx: dx,\n dy: dy,\n dx2: dx2,\n dy2: dy2,\n shiftKey: shiftKey,\n ctrlKey: ctrlKey\n });\n this.mouseDownElement.panningDelegate.onPanning(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n } else {\n this.mouseDownElement.fireEvent(\"panning\", {\n dx: dx,\n dy: dy,\n dx2: dx2,\n dy2: dy2,\n shiftKey: shiftKey,\n ctrlKey: ctrlKey\n });\n this.mouseDownElement.onPanning(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n }\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the shape below the mouse or null\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(canvas, x, y, shiftKey, ctrlKey) {\n if (this.mouseDraggingElement !== null) {\n var redrawConnection = new _packages2.default.util.ArrayList();\n if (this.mouseDraggingElement instanceof _packages2.default.shape.node.Node) {\n // TODO: don't add the connections with to check if a repaint is required\n // may a moved connection didn't have an intersection with the named lines.\n // in this case a redraw is useless\n canvas.lineIntersections.each(function (i, inter) {\n if (!redrawConnection.contains(inter.line)) redrawConnection.add(inter.line);\n if (!redrawConnection.contains(inter.other)) redrawConnection.add(inter.other);\n });\n }\n\n // start CommandStack transaction\n canvas.getCommandStack().startTransaction();\n\n var sel = canvas.getSelection().getAll();\n if (!sel.contains(this.mouseDraggingElement)) {\n this.mouseDraggingElement.onDragEnd(x, y, shiftKey, ctrlKey);\n } else {\n canvas.getSelection().getAll().each(function (i, figure) {\n figure.onDragEnd(x, y, shiftKey, ctrlKey);\n });\n }\n\n if (canvas.currentDropTarget !== null && !this.mouseDraggingElement.isResizeHandle) {\n this.mouseDraggingElement.onDrop(canvas.currentDropTarget, x, y, shiftKey, ctrlKey);\n canvas.currentDropTarget.onDragLeave(this.mouseDraggingElement);\n canvas.currentDropTarget.fireEvent(\"dragLeave\", { draggingElement: this.mouseDraggingElement });\n canvas.currentDropTarget.onCatch(this.mouseDraggingElement, x, y, shiftKey, ctrlKey);\n canvas.currentDropTarget = null;\n }\n\n // end command stack trans\n canvas.getCommandStack().commitTransaction();\n\n if (this.mouseDraggingElement instanceof _packages2.default.shape.node.Node) {\n canvas.lineIntersections.each(function (i, inter) {\n if (!redrawConnection.contains(inter.line)) redrawConnection.add(inter.line);\n if (!redrawConnection.contains(inter.other)) redrawConnection.add(inter.other);\n });\n redrawConnection.each(function (i, line) {\n line.svgPathString = null;\n line.repaint();\n });\n }\n\n this.mouseDraggingElement = null;\n }\n // Connection didn't support panning at the moment. There is no special reason for that. Just an interaction\n // decision.\n //\n else if (this.mouseDownElement !== null && !(this.mouseDownElement instanceof _packages2.default.Connection)) {\n if (this.mouseDownElement.panningDelegate !== null) {\n this.mouseDownElement.panningDelegate.fireEvent(\"panningEnd\");\n this.mouseDownElement.panningDelegate.onPanningEnd();\n } else {\n this.mouseDownElement.fireEvent(\"panningEnd\");\n this.mouseDownElement.onPanningEnd();\n }\n }\n\n // Reset the current selection if the user click in the blank canvas.\n // Don't reset the selection if the user pan the canvas\n //\n if (this.mouseDownElement === null && this.mouseMovedDuringMouseDown === false) {\n this.select(canvas, null);\n }\n\n if (this.mouseDownElement !== null) {\n this.mouseDownElement.fireEvent(\"mouseup\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n }\n\n this.mouseDownElement = null;\n this.mouseMovedDuringMouseDown = false;\n },\n\n /**\r\n * @method\r\n * Called by the canvas if the user click on a figure.\r\n *\r\n * @param {draw2d.Figure} the figure under the click event. Can be null\r\n * @param {Number} mouseX the x coordinate of the mouse during the click event\r\n * @param {Number} mouseY the y coordinate of the mouse during the click event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @since 3.0.0\r\n */\n onClick: function onClick(figure, mouseX, mouseY, shiftKey, ctrlKey) {\n if (figure !== null) {\n figure.fireEvent(\"click\", {\n figure: figure,\n x: mouseX,\n y: mouseY,\n relX: mouseX - figure.getAbsoluteX(),\n relY: mouseY - figure.getAbsoluteY(),\n shiftKey: shiftKey,\n ctrlKey: ctrlKey\n });\n\n figure.onClick();\n }\n },\n\n /**\r\n * @method\r\n * Called by the canvas if the user double click on a figure.\r\n *\r\n * @param {draw2d.Figure} the figure under the double click event. Can be null\r\n * @param {Number} mouseX the x coordinate of the mouse during the click event\r\n * @param {Number} mouseY the y coordinate of the mouse during the click event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @since 4.1.0\r\n */\n onDoubleClick: function onDoubleClick(figure, mouseX, mouseY, shiftKey, ctrlKey) {\n if (figure !== null) {\n figure.fireEvent(\"dblclick\", { x: mouseX, y: mouseY, shiftKey: shiftKey, ctrlKey: ctrlKey });\n figure.onDoubleClick();\n }\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.SingleSelectionPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.SelectionPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToCenterEditPolicy.js\":\n/*!*****************************************************!*\\\n !*** ./src/policy/canvas/SnapToCenterEditPolicy.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SnapToCenterEditPolicy = _packages2.default.policy.canvas.SnapToEditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToCenterEditPolicy\",\n\n SNAP_THRESHOLD: 5,\n FADEOUT_DURATION: 500,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to geometry\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.centers = null;\n\n this.horizontalGuideLines = null;\n this.verticalGuideLines = null;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the shape below the mouse or null\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(figure, x, y, shiftKey, ctrlKey) {\n this.centers = null;\n this.hideHorizontalGuides(false);\n this.hideVerticalGuides(false);\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the canvas neighbours\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n // do nothing for resize handles\n if (figure instanceof _packages2.default.ResizeHandle) {\n return modifiedPos;\n }\n\n // do nothing for lines\n if (figure instanceof _packages2.default.shape.basic.Line) {\n return modifiedPos;\n }\n\n var allowXChanges = modifiedPos.x === originalPos.x;\n var allowYChanges = modifiedPos.y === originalPos.y;\n\n var inputBounds = new _packages2.default.geo.Rectangle(modifiedPos.x, modifiedPos.y, figure.getWidth(), figure.getHeight());\n var inputCenter = inputBounds.getCenter();\n\n modifiedPos = modifiedPos.clone();\n\n if (allowXChanges === true) {\n var horizontal = this.snapHorizontal(inputCenter);\n\n // Show a horizontal line if the snapper has modified the inputPoint\n //\n if (horizontal.snapped) {\n // show the snap lines..\n this.showHorizontalGuides(figure, horizontal);\n\n // and snap the x coordinate\n modifiedPos.y += horizontal.diff;\n } else {\n this.hideHorizontalGuides(true);\n }\n } else {\n this.hideHorizontalGuides(true);\n }\n\n if (allowYChanges === true) {\n var vertical = this.snapVertical(inputCenter);\n\n // Show a vertical guides if the snapper has modified the inputPoint\n //\n if (vertical.snapped) {\n // show the snap lines..\n this.showVerticalGuides(figure, vertical);\n\n // and snap the x coordinate\n modifiedPos.x += vertical.diff;\n } else {\n this.hideVerticalGuides(true);\n }\n } else {\n this.hideVerticalGuides(true);\n }\n\n return modifiedPos;\n },\n\n snapVertical: function snapVertical(center) {\n var _this = this;\n if (this.centers === null) {\n this.populateCenters();\n }\n\n var result = {\n point: center,\n snapped: false,\n diff: 0\n };\n\n var candidates = [];\n this.centers.forEach(function (point) {\n if (Math.abs(point.x - center.x) < _this.SNAP_THRESHOLD) {\n candidates.push(point);\n }\n });\n\n // we can abort if we didn't find an intersection on the right hand side\n if (candidates.length === 0) {\n return result;\n }\n\n // sort the intersection point and get the closest point to the tested inputPoint\n // In this case it is the point with the greatest X coordinate\n //\n candidates.sort(function (a, b) {\n return a.x - b.x;\n });\n\n var diff = candidates[0].x - center.x;\n var snappedPoint = center.clone();\n snappedPoint.x += diff;\n return { snapped: true, diff: diff, point: candidates[0], snappedPoint: snappedPoint };\n },\n\n snapHorizontal: function snapHorizontal(center) {\n var _this = this;\n if (this.centers === null) {\n this.populateCenters();\n }\n\n var result = {\n point: center,\n snapped: false,\n diff: 0\n };\n\n var candidates = [];\n this.centers.forEach(function (point) {\n if (Math.abs(point.y - center.y) < _this.SNAP_THRESHOLD) {\n candidates.push(point);\n }\n });\n\n // we can abort if we didn't find an intersection on the right hand side\n if (candidates.length === 0) {\n return result;\n }\n\n // sort the intersection point and get the closest point to the tested inputPoint\n // In this case it is the point with the greatest X coordinate\n //\n candidates.sort(function (a, b) {\n return a.y - b.y;\n });\n\n var diff = candidates[0].y - center.y;\n var snappedPoint = center.clone();\n snappedPoint.y += diff;\n return { snapped: true, diff: diff, point: candidates[0], snappedPoint: snappedPoint };\n },\n\n populateCenters: function populateCenters() {\n var selection = this.canvas.getSelection().getAll(true);\n var centers = this.centers = [];\n\n var figures = this.canvas.getFigures();\n figures.each(function (index, figure) {\n if (!selection.contains(figure)) {\n centers.push(figure.getBoundingBox().getCenter());\n }\n });\n },\n\n showHorizontalGuides: function showHorizontalGuides(causedFigure, constraint) {\n if (this.horizontalGuideLines !== null) {\n this.horizontalGuideLines.stop();\n this.horizontalGuideLines.remove();\n }\n\n var start = constraint.point;\n var end = constraint.snappedPoint;\n\n this.canvas.paper.setStart();\n\n // horizontal lines\n //\n this.canvas.paper.path(\"M \" + start.x + \" \" + ((start.y | 0) + 0.5) + \" L \" + end.x + \" \" + ((end.y | 0) + 0.5)).attr({\n \"stroke\": this.lineColor.rgba(),\n \"stroke-width\": 1\n });\n\n this.horizontalGuideLines = this.canvas.paper.setFinish();\n this.horizontalGuideLines.toFront();\n },\n\n /**\r\n * @method\r\n * Hide the horizontal snapping guides\r\n *\r\n * @param {Boolean} fast\r\n */\n hideHorizontalGuides: function hideHorizontalGuides(fast) {\n var _this2 = this;\n\n if (this.horizontalGuideLines === null) {\n return;\n }\n if (fast === true) {\n if (this.horizontalGuideLines !== null) {\n this.horizontalGuideLines.remove();\n this.horizontalGuideLines = null;\n }\n } else {\n this.horizontalGuideLines.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this2.horizontalGuideLines !== null) {\n _this2.horizontalGuideLines.remove();\n _this2.horizontalGuideLines = null;\n }\n });\n }\n },\n\n showVerticalGuides: function showVerticalGuides(causedFigure, constraint) {\n if (this.verticalGuideLines !== null) {\n this.verticalGuideLines.stop();\n this.verticalGuideLines.remove();\n }\n\n var start = constraint.point;\n var end = constraint.snappedPoint;\n\n this.canvas.paper.setStart();\n\n // horizontal lines\n //\n this.canvas.paper.path(\"M \" + ((start.x | 0) + 0.5) + \" \" + start.y + \" L \" + ((end.x | 0) + 0.5) + \" \" + end.y).attr({\n \"stroke\": this.lineColor.rgba(),\n \"stroke-width\": 1\n });\n\n this.verticalGuideLines = this.canvas.paper.setFinish();\n this.verticalGuideLines.toFront();\n },\n\n /**\r\n * @method\r\n * Hide the horizontal snapüing guides\r\n *\r\n * @param soft\r\n */\n hideVerticalGuides: function hideVerticalGuides(fast) {\n var _this3 = this;\n\n if (this.verticalGuideLines === null) {\n return;\n }\n if (fast === true) {\n if (this.verticalGuideLines !== null) {\n this.verticalGuideLines.remove();\n this.verticalGuideLines = null;\n }\n } else {\n this.verticalGuideLines.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this3.verticalGuideLines !== null) {\n _this3.verticalGuideLines.remove();\n _this3.verticalGuideLines = null;\n }\n });\n }\n }\n}); /**\r\n * @class draw2d.policy.canvas.SnapToCenterEditPolicy\r\n *\r\n * Snapping is based on the existing children of a container. When snapping a shape,\r\n * the center of the bounding box will snap to the center of other figures of the given canvas.\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.SnapToEditPolicy\r\n * @since 5.6.4\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToDimetricGridEditPolicy.js\":\n/*!***********************************************************!*\\\n !*** ./src/policy/canvas/SnapToDimetricGridEditPolicy.js ***!\n \\***********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SnapToDimetricGridEditPolicy = _packages2.default.policy.canvas.ShowDimetricGridEditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToDimetricGridEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to grid\r\n *\r\n * @param {Number} grid the grid width of the canvas\r\n */\n init: function init(grid) {\n this._super(grid);\n },\n\n /**\r\n * @method\r\n * Applies a snapping correction to the given result.\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n * @since 2.3.0\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n // do nothing for lines\n if (figure instanceof _packages2.default.shape.basic.Line) {\n return modifiedPos;\n }\n\n var snapPoint = figure.getSnapToGridAnchor();\n\n modifiedPos.x = modifiedPos.x + snapPoint.x;\n modifiedPos.y = modifiedPos.y + snapPoint.y;\n\n var g = this.grid / 5;\n\n modifiedPos.x = g * Math.floor((modifiedPos.x + g / 2.0) / g);\n modifiedPos.y = g * Math.floor((modifiedPos.y + g / 2.0) / g);\n\n modifiedPos.x = modifiedPos.x - snapPoint.x;\n modifiedPos.y = modifiedPos.y - snapPoint.y;\n\n return modifiedPos;\n }\n}); /**\r\n * @class draw2d.policy.canvas.SnapToDimetricGridEditPolicy\r\n *\r\n * A helper used to perform snapping to a grid, which is specified on the canvas via the various\r\n * properties defined in this class.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.ShowDimetricGridEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToEditPolicy.js\":\n/*!***********************************************!*\\\n !*** ./src/policy/canvas/SnapToEditPolicy.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.SnapToHelper = {};\n\n_packages2.default.SnapToHelper.NORTH = 1;\n_packages2.default.SnapToHelper.SOUTH = 4;\n_packages2.default.SnapToHelper.WEST = 8;\n_packages2.default.SnapToHelper.EAST = 16;\n_packages2.default.SnapToHelper.CENTER_H = 32;\n_packages2.default.SnapToHelper.CENTER_V = 642;\n\n_packages2.default.SnapToHelper.NORTH_EAST = _packages2.default.SnapToHelper.NORTH | _packages2.default.SnapToHelper.EAST;\n_packages2.default.SnapToHelper.NORTH_WEST = _packages2.default.SnapToHelper.NORTH | _packages2.default.SnapToHelper.WEST;\n_packages2.default.SnapToHelper.SOUTH_EAST = _packages2.default.SnapToHelper.SOUTH | _packages2.default.SnapToHelper.EAST;\n_packages2.default.SnapToHelper.SOUTH_WEST = _packages2.default.SnapToHelper.SOUTH | _packages2.default.SnapToHelper.WEST;\n_packages2.default.SnapToHelper.NORTH_SOUTH = _packages2.default.SnapToHelper.NORTH | _packages2.default.SnapToHelper.SOUTH;\n_packages2.default.SnapToHelper.EAST_WEST = _packages2.default.SnapToHelper.EAST | _packages2.default.SnapToHelper.WEST;\n_packages2.default.SnapToHelper.NSEW = _packages2.default.SnapToHelper.NORTH_SOUTH | _packages2.default.SnapToHelper.EAST_WEST;\n\n/**\r\n * @class draw2d.policy.canvas.SnapToEditPolicy\r\n *\r\n * A helper used by Tools for snapping certain mouse interactions.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n */\n_packages2.default.policy.canvas.SnapToEditPolicy = _packages2.default.policy.canvas.CanvasPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to grid\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this.lineColor = null;\n\n this._super((0, _extend2.default)({\n lineColor: \"#51C1FC\"\n }, attr), (0, _extend2.default)({\n /** @attr {draw2d.util.Color} color the line color of the snapTo lines */\n lineColor: this.setLineColor\n }, setter), (0, _extend2.default)({\n lineColor: this.getLineColor\n }, getter));\n },\n\n /**\r\n * @method\r\n * Set the color of the snap line.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * policy.attr({\r\n * lineColor: color\r\n * });\r\n *\r\n * @param {draw2d.util.Color|String} color The new color of the line.\r\n **/\n setLineColor: function setLineColor(color) {\n this.lineColor = new _packages2.default.util.Color(color);\n return this;\n },\n\n /**\r\n * @method\r\n * Return the current paint color.\r\n *\r\n * @return {draw2d.util.Color} The paint color of the line.\r\n * @since 5.6.1\r\n **/\n getLineColor: function getLineColor() {\n return this.lineColor;\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the given constraint of the policy.\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n return modifiedPos;\n }\n});\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToGeometryEditPolicy.js\":\n/*!*******************************************************!*\\\n !*** ./src/policy/canvas/SnapToGeometryEditPolicy.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SnapToGeometryEditPolicy = _packages2.default.policy.canvas.SnapToEditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToGeometryEditPolicy\",\n\n SNAP_THRESHOLD: 3,\n FADEOUT_DURATION: 300,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to geometry\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.rows = null;\n this.cols = null;\n this.vline = null;\n this.hline = null;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the shape below the mouse or null\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(figure, x, y, shiftKey, ctrlKey) {\n this.rows = null;\n this.cols = null;\n this.hideVerticalLine();\n this.hideHorizontalLine();\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the canvas neighbours\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n // do nothing for lines\n if (figure instanceof _packages2.default.shape.basic.Line) {\n return modifiedPos;\n }\n\n var result = void 0;\n var allowXChanges = modifiedPos.x === originalPos.x;\n var allowYChanges = modifiedPos.y === originalPos.y;\n\n // Coordinates already snapped to an x/y coordinate.\n // Don't change them and in this case no further calculation is requried.\n //\n if (!allowXChanges && !allowYChanges) {\n return modifiedPos;\n }\n\n if (figure instanceof _packages2.default.ResizeHandle) {\n var snapPoint = figure.getSnapToGridAnchor();\n modifiedPos.x += snapPoint.x;\n modifiedPos.y += snapPoint.y;\n\n var snapDirections = figure.getSnapToDirection();\n result = this.snapPoint(snapDirections, modifiedPos);\n\n // Show a vertical line if the snapper has modified the inputPoint\n //\n if (allowXChanges && snapDirections & _packages2.default.SnapToHelper.EAST_WEST && !(result.edge & _packages2.default.SnapToHelper.EAST_WEST)) {\n this.showVerticalLine(figure, _packages2.default.SnapToHelper.WEST, result.point.x);\n } else {\n this.hideVerticalLine();\n }\n\n // Show a horizontal line if the snapper has modified the inputPoint\n //\n if (allowYChanges && snapDirections & _packages2.default.SnapToHelper.NORTH_SOUTH && !(result.edge & _packages2.default.SnapToHelper.NORTH_SOUTH)) {\n this.showHorizontalLine(figure, _packages2.default.SnapToHelper.NORTH, result.point.y);\n } else {\n this.hideHorizontalLine();\n }\n\n // restore the original pos coordinate if x or y coordinate already snapped to any axis\n // or subtract the added snapOffset\n //\n result.point.x = allowXChanges ? result.point.x - snapPoint.x : modifiedPos.x;\n result.point.y = allowYChanges ? result.point.y - snapPoint.y : modifiedPos.y;\n\n return result.point;\n }\n\n // The user drag&drop a normal figure\n var inputBounds = new _packages2.default.geo.Rectangle(modifiedPos.x, modifiedPos.y, figure.getWidth(), figure.getHeight());\n\n result = this.snapRectangle(inputBounds);\n\n if (!allowXChanges) {\n result.bounds.x = modifiedPos.x;\n }\n\n if (!allowYChanges) {\n result.bounds.y = modifiedPos.y;\n }\n\n // Show a vertical line if the snapper has modified the inputPoint\n //\n if (allowXChanges && !(result.edge & _packages2.default.SnapToHelper.WEST)) {\n this.showVerticalLine(figure, _packages2.default.SnapToHelper.WEST, result.bounds.x);\n } else if (allowXChanges && !(result.edge & _packages2.default.SnapToHelper.EAST)) {\n this.showVerticalLine(figure, _packages2.default.SnapToHelper.EAST, result.bounds.x + result.bounds.getWidth());\n } else {\n this.hideVerticalLine();\n }\n\n // Show a horizontal line if the snapper has modified the inputPoint\n //\n if (allowYChanges && !(result.edge & _packages2.default.SnapToHelper.NORTH)) {\n this.showHorizontalLine(figure, _packages2.default.SnapToHelper.NORTH, result.bounds.y);\n } else if (allowYChanges && !(result.edge & _packages2.default.SnapToHelper.SOUTH)) {\n this.showHorizontalLine(figure, _packages2.default.SnapToHelper.SOUTH, result.bounds.y + result.bounds.getHeight());\n } else {\n this.hideHorizontalLine();\n }\n\n return result.bounds.getTopLeft();\n },\n\n /**\r\n * @method\r\n * calculates the snapped position of the rectangle.\r\n *\r\n * @param {draw2d.geo.Rectangle} inputBounds\r\n *\r\n * @returns {Object}\r\n */\n snapRectangle: function snapRectangle(inputBounds) {\n var resultBounds = inputBounds.clone();\n\n var topLeft = this.snapPoint(_packages2.default.SnapToHelper.NORTH_WEST, inputBounds.getTopLeft());\n resultBounds.x = topLeft.point.x;\n resultBounds.y = topLeft.point.y;\n\n var bottomRight = this.snapPoint(_packages2.default.SnapToHelper.SOUTH_EAST, inputBounds.getBottomRight());\n\n // The first test (topLeft) has not modified the point. so we can modify them with the bottomRight adjustment\n //\n if (topLeft.edge & _packages2.default.SnapToHelper.WEST) {\n resultBounds.x = bottomRight.point.x - inputBounds.getWidth();\n }\n\n // The first test (topLeft) has not modified the point. so we can modify them with the bottomRight adjustment\n //\n if (topLeft.edge & _packages2.default.SnapToHelper.NORTH) {\n resultBounds.y = bottomRight.point.y - inputBounds.getHeight();\n }\n\n return { edge: topLeft.edge | bottomRight.edge, bounds: resultBounds };\n },\n\n snapPoint: function snapPoint( /*:int*/snapOrientation, /*:draw2d.Point*/inputPoint) {\n var resultPoint = inputPoint.clone();\n\n if (this.rows === null || this.cols === null) this.populateRowsAndCols();\n\n if ((snapOrientation & _packages2.default.SnapToHelper.EAST) !== 0) {\n var rightCorrection = this.getCorrectionFor(this.cols, inputPoint.x + 1, 1);\n if (rightCorrection !== this.SNAP_THRESHOLD) {\n snapOrientation &= ~_packages2.default.SnapToHelper.EAST;\n resultPoint.x += rightCorrection;\n }\n }\n\n if ((snapOrientation & _packages2.default.SnapToHelper.WEST) !== 0) {\n var leftCorrection = this.getCorrectionFor(this.cols, inputPoint.x, -1);\n if (leftCorrection !== this.SNAP_THRESHOLD) {\n snapOrientation &= ~_packages2.default.SnapToHelper.WEST;\n resultPoint.x += leftCorrection;\n }\n }\n\n if ((snapOrientation & _packages2.default.SnapToHelper.SOUTH) !== 0) {\n var bottomCorrection = this.getCorrectionFor(this.rows, inputPoint.y + 1, 1);\n if (bottomCorrection !== this.SNAP_THRESHOLD) {\n snapOrientation &= ~_packages2.default.SnapToHelper.SOUTH;\n resultPoint.y += bottomCorrection;\n }\n }\n\n if ((snapOrientation & _packages2.default.SnapToHelper.NORTH) !== 0) {\n var topCorrection = this.getCorrectionFor(this.rows, inputPoint.y, -1);\n if (topCorrection !== this.SNAP_THRESHOLD) {\n snapOrientation &= ~_packages2.default.SnapToHelper.NORTH;\n resultPoint.y += topCorrection;\n }\n }\n\n return { edge: snapOrientation, point: resultPoint };\n },\n\n populateRowsAndCols: function populateRowsAndCols() {\n var selection = this.canvas.getSelection();\n this.rows = [];\n this.cols = [];\n\n var figures = this.canvas.getFigures();\n for (var i = 0; i < figures.getSize(); i++) {\n var figure = figures.get(i);\n if (!selection.contains(figure, true)) {\n var bounds = figure.getBoundingBox();\n this.cols.push({ type: -1, location: bounds.x });\n this.cols.push({ type: 0, location: bounds.x + (bounds.w - 1) / 2 });\n this.cols.push({ type: 1, location: bounds.getRight() + 1 });\n this.rows.push({ type: -1, location: bounds.y });\n this.rows.push({ type: 0, location: bounds.y + (bounds.h - 1) / 2 });\n this.rows.push({ type: 1, location: bounds.getBottom() + 1 });\n }\n }\n\n // TODO: remove duplicate entries in the rows/cols array\n },\n\n getCorrectionFor: function getCorrectionFor( /*:Array*/entries, /*:double*/value, /*:int*/side) {\n var resultMag = this.SNAP_THRESHOLD;\n var result = this.SNAP_THRESHOLD;\n\n for (var i = 0; i < entries.length; i++) {\n var entry = entries[i];\n var magnitude = void 0;\n\n if (entry.type === -1 && side !== 0) {\n magnitude = Math.abs(value - entry.location);\n if (magnitude < resultMag) {\n resultMag = magnitude;\n result = entry.location - value;\n }\n } else if (entry.type === 0 && side === 0) {\n magnitude = Math.abs(value - entry.location);\n if (magnitude < resultMag) {\n resultMag = magnitude;\n result = entry.location - value;\n }\n } else if (entry.type === 1 && side !== 0) {\n magnitude = Math.abs(value - entry.location);\n if (magnitude < resultMag) {\n resultMag = magnitude;\n result = entry.location - value;\n }\n }\n }\n return result;\n },\n\n showVerticalLine: function showVerticalLine(causedFigure, edge, x) {\n if (this.vline != null) {\n this.vline.stop();\n this.vline.remove();\n }\n\n var figures = this.canvas.getFigures().clone();\n figures.removeAll(this.canvas.getSelection().getAll(true));\n figures.map(function (figure) {\n return figure.getBoundingBox();\n });\n figures.grep(function (bbox) {\n return Math.abs(bbox.x - x) <= 1 || Math.abs(bbox.getRight() - x) <= 1;\n });\n\n // return silently if no figure bounding box is left\n //\n if (figures.getSize() === 0) {\n return;\n }\n\n // figure to align is above the current shape\n //\n var causedBox = causedFigure.getBoundingBox();\n var causedCenter = causedBox.getCenter();\n figures.sort(function (a, b) {\n var d_a = a.getCenter().distance(causedCenter);\n var d_b = b.getCenter().distance(causedCenter);\n return d_a - d_b;\n });\n var fromY = 0;\n var maxLength = this.canvas.getHeight() * Math.max(1, this.canvas.getZoom());\n var yLength = maxLength;\n var snappedBox = figures.get(0);\n if (causedBox.y < snappedBox.y) {\n fromY = causedBox.y;\n yLength = snappedBox.getBottom() - causedBox.y;\n } else {\n fromY = snappedBox.y;\n yLength = causedBox.getBottom() - snappedBox.y;\n }\n\n x = (x | 0) + 0.5; // force a .5 number to avoid subpixel rendering. Blurry lines...\n this.canvas.paper.setStart();\n this.canvas.paper.path(\"M \" + x + \" 0 l 0 \" + maxLength).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + x + \" \" + fromY + \" l 0 \" + yLength).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.vline = this.canvas.paper.setFinish();\n this.vline.toBack();\n },\n\n hideVerticalLine: function hideVerticalLine() {\n var _this = this;\n\n if (this.vline == null) {\n return;\n }\n this.vline.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this.vline !== null) {\n _this.vline.remove();\n _this.vline = null;\n }\n });\n },\n\n showHorizontalLine: function showHorizontalLine(causedFigure, edge, y) {\n if (this.hline != null) {\n this.hline.stop();\n this.hline.remove();\n }\n\n var figures = this.canvas.getFigures().clone();\n figures.removeAll(this.canvas.getSelection().getAll(true));\n figures.map(function (figure) {\n return figure.getBoundingBox();\n });\n figures.grep(function (bbox) {\n return Math.abs(bbox.y - y) <= 1 || Math.abs(bbox.getBottom() - y) <= 1;\n });\n\n // return silently if no figure bounding box is left\n //\n if (figures.getSize() === 0) {\n return;\n }\n\n // figure to align is above the current shape\n //\n var causedBox = causedFigure.getBoundingBox();\n var causedCenter = causedBox.getCenter();\n figures.sort(function (a, b) {\n var d_a = a.getCenter().distance(causedCenter);\n var d_b = b.getCenter().distance(causedCenter);\n return d_a - d_b;\n });\n var fromX = 0;\n var maxLength = void 0;\n var xLength = maxLength = this.canvas.getWidth() * Math.max(1, this.canvas.getZoom());\n var snappedBox = figures.get(0);\n if (causedBox.x < snappedBox.x) {\n fromX = causedBox.x;\n xLength = snappedBox.getRight() - causedBox.x;\n } else {\n fromX = snappedBox.x;\n xLength = causedBox.getRight() - snappedBox.x;\n }\n\n y = (y | 0) + 0.5; // force a .5 number to avoid subpixel rendering. Blurry lines...\n\n this.canvas.paper.setStart();\n this.canvas.paper.path(\"M 0 \" + y + \" l \" + maxLength + \" 0\").attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + fromX + \" \" + y + \" l \" + xLength + \" 0\").attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.hline = this.canvas.paper.setFinish();\n this.hline.toBack();\n },\n\n hideHorizontalLine: function hideHorizontalLine() {\n var _this2 = this;\n\n if (this.hline === null) {\n return; //silently\n }\n this.hline.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this2.hline !== null) {\n _this2.hline.remove();\n _this2.hline = null;\n }\n });\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.SnapToGeometryEditPolicy\r\n *\r\n * Snapping is based on the existing children of a container. When snapping a shape,\r\n * the edges of the bounding box will snap to edges of other rectangles generated\r\n * from the children of the given canvas.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.SnapToEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToGridEditPolicy.js\":\n/*!***************************************************!*\\\n !*** ./src/policy/canvas/SnapToGridEditPolicy.js ***!\n \\***************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SnapToGridEditPolicy = _packages2.default.policy.canvas.ShowGridEditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToGridEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to grid\r\n *\r\n * @param {Number} grid the grid width of the canvas\r\n */\n init: function init(grid) {\n this._super(grid);\n },\n\n /**\r\n * @method\r\n * Applies a snapping correction to the given result.\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n * @since 2.3.0\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n // do nothing for lines\n if (figure instanceof _packages2.default.shape.basic.Line) {\n return modifiedPos;\n }\n\n var snapPoint = figure.getSnapToGridAnchor();\n\n modifiedPos.x = modifiedPos.x + snapPoint.x;\n modifiedPos.y = modifiedPos.y + snapPoint.y;\n\n modifiedPos.x = this.grid * Math.floor((modifiedPos.x + this.grid / 2.0) / this.grid);\n modifiedPos.y = this.grid * Math.floor((modifiedPos.y + this.grid / 2.0) / this.grid);\n\n modifiedPos.x = modifiedPos.x - snapPoint.x;\n modifiedPos.y = modifiedPos.y - snapPoint.y;\n\n return modifiedPos;\n }\n}); /**\r\n * @class draw2d.policy.canvas.SnapToGridEditPolicy\r\n *\r\n * A helper used to perform snapping to a grid, which is specified on the canvas via the various\r\n * properties defined in this class.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.ShowGridEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToInBetweenEditPolicy.js\":\n/*!********************************************************!*\\\n !*** ./src/policy/canvas/SnapToInBetweenEditPolicy.js ***!\n \\********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SnapToInBetweenEditPolicy = _packages2.default.policy.canvas.SnapToEditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToInBetweenEditPolicy\",\n\n SNAP_THRESHOLD: 5,\n FADEOUT_DURATION: 500,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to geometry\r\n *\r\n */\n init: function init(attr, setter, getter) {\n\n this._super(attr, setter, getter);\n\n this.bounds = null;\n\n this.horizontalGuideLines = null;\n this.verticalGuideLines = null;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseUp: function onMouseUp(figure, x, y, shiftKey, ctrlKey) {\n this.bounds = null;\n this.hideHorizontalGuides(false);\n this.hideVerticalGuides(false);\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the canvas neighbours\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n // do nothing for resize handles\n if (figure instanceof _packages2.default.ResizeHandle) {\n return modifiedPos;\n }\n // do nothing for lines\n if (figure instanceof _packages2.default.shape.basic.Line) {\n return modifiedPos;\n }\n\n var allowXChanges = modifiedPos.x === originalPos.x;\n var allowYChanges = modifiedPos.y === originalPos.y;\n\n var inputBounds = new _packages2.default.geo.Rectangle(modifiedPos.x, modifiedPos.y, figure.getWidth(), figure.getHeight());\n\n modifiedPos = modifiedPos.clone();\n\n if (allowXChanges === true) {\n var horizontal = this.snapHorizontal(inputBounds);\n\n // Show a horizontal line if the snapper has modified the inputPoint\n //\n if (horizontal.snapped) {\n // show the snap lines..\n this.showHorizontalGuides(figure, horizontal);\n\n // and snap the x coordinate\n modifiedPos.x += horizontal.diff;\n } else {\n this.hideHorizontalGuides(true);\n }\n } else {\n this.hideHorizontalGuides(true);\n }\n\n if (allowYChanges === true) {\n var vertical = this.snapVertical(inputBounds);\n\n // Show a vertical guides if the snapper has modified the inputPoint\n //\n if (vertical.snapped) {\n // show the snap lines..\n this.showVerticalGuides(figure, vertical);\n\n // and snap the x coordinate\n modifiedPos.y += vertical.diff;\n } else {\n this.hideVerticalGuides(true);\n }\n } else {\n this.hideVerticalGuides(true);\n }\n\n return modifiedPos;\n },\n\n snapHorizontal: function snapHorizontal(boundingBox) {\n var center = boundingBox.getCenter();\n if (this.bounds === null) this.populateBounds();\n\n var result = {\n point: center,\n snapped: false,\n snappedBox: boundingBox.clone()\n };\n\n var intersectionPoint = null;\n\n // Calculate the intersections points p(i) of all left side edges of the bounding boxes\n // and the ray from the center of the drag&drop object to the left edge of the canva\n //\n // BBox of Drag&Drop\n // any Figure Figure\n //\n // ....+ ........\n // | . .\n // . |p(i) . .\n // . X<------------->+ .\n // . | . .\n // ....+ . .\n // ........\n //\n //\n var leftIntersections = [];\n var leftInputPoint = center.clone();\n leftInputPoint.x = 0;\n this.bounds.forEach(function (bbox, index) {\n intersectionPoint = _packages2.default.shape.basic.Line.intersection(bbox.getTopRight(), bbox.getBottomRight(), center, leftInputPoint);\n if (intersectionPoint !== null) {\n intersectionPoint.causedBBox = bbox;\n leftIntersections.push(intersectionPoint);\n }\n });\n // we can abort if we didn't find an intersection on the left hand side\n if (leftIntersections.length === 0) {\n return result;\n }\n\n // sort the intersection point and get the closest point to the tested inputPoint\n // In this case it is the point with the greates X coordinate\n //\n leftIntersections.sort(function (a, b) {\n return b.x - a.x;\n });\n\n // Calculate the intersections points p(i) of all right hand side edges of the\n // bounding boxes and the ray from the center of the drag&drop object to the\n // left edge of the canvas\n //\n // Drag&Drop bbox of any\n // Figure figure\n //\n // ........\n // . .\n // . . ...........\n // . +<-------------->X |\n // . . p(i)| |\n // . . | |\n // ........ | |\n // ...........\n //\n var rightIntersections = [];\n var rightInputPoint = center.clone();\n rightInputPoint.x = Number.MAX_SAFE_INTEGER;\n this.bounds.forEach(function (bbox, index) {\n intersectionPoint = _packages2.default.shape.basic.Line.intersection(bbox.getTopLeft(), bbox.getBottomLeft(), center, rightInputPoint);\n if (intersectionPoint !== null) {\n intersectionPoint.causedBBox = bbox;\n rightIntersections.push(intersectionPoint);\n }\n });\n // we can abort if we didn't find an intersection on the right hand side\n if (rightIntersections.length === 0) {\n return result;\n }\n\n // sort the intersection point and get the closest point to the tested inputPoint\n // In this case it is the point with the greates X coordinate\n //\n rightIntersections.sort(function (a, b) {\n return a.x - b.x;\n });\n\n // Snap the point (S) between the two founded intersections\n // p(i1) and p(i2)\n //\n // BBox FigureA Drag&Drop BBox of FigureB\n // Figure\n //\n // ....+ ........\n // | . .\n // . |p(i1) . S . ...........\n // . X<------------->X<-------------->X |\n // . | . . p(i2)| |\n // ....+ . . | |\n // ........ | |\n // ...........\n //\n var snappedRect = boundingBox.clone();\n var diff = (leftIntersections[0].x + rightIntersections[0].x) / 2 - center.x;\n\n snappedRect.x += diff;\n\n return {\n snapped: Math.abs(diff) < this.SNAP_THRESHOLD,\n snappedRect: snappedRect,\n diff: diff,\n leftSide: leftIntersections[0],\n rightSide: rightIntersections[0]\n };\n },\n\n snapVertical: function snapVertical(boundingBox) {\n var center = boundingBox.getCenter();\n\n if (this.bounds === null) {\n this.populateBounds();\n }\n\n var result = {\n point: center,\n snapped: false,\n snappedBox: boundingBox.clone()\n };\n\n var intersectionPoint = null;\n\n // Calculate the intersections points p(i) of all left side edges of the bounding boxes\n // and the ray from the center of the drag&drop object to the left edge of the canva\n //\n // BBox of Drag&Drop\n // any Figure Figure\n //\n // ....+ ........\n // | . .\n // . |p(i) . .\n // . X<------------->+ .\n // . | . .\n // ....+ . .\n // ........\n //\n //\n var topIntersections = [];\n var topInputPoint = center.clone();\n topInputPoint.y = 0;\n this.bounds.forEach(function (bbox) {\n intersectionPoint = _packages2.default.shape.basic.Line.intersection(bbox.getBottomLeft(), bbox.getBottomRight(), center, topInputPoint);\n if (intersectionPoint !== null) {\n intersectionPoint.causedBBox = bbox;\n topIntersections.push(intersectionPoint);\n }\n });\n // we can abort if we didn't find an intersection on the left hand side\n if (topIntersections.length === 0) {\n return result;\n }\n\n // sort the intersection point and get the closest point to the tested inputPoint\n // In this case it is the point with the greates X coordinate\n //\n topIntersections.sort(function (a, b) {\n return b.y - a.y;\n });\n\n // Calculate the intersections points p(i) of all right hand side edges of the\n // bounding boxes and the ray from the center of the drag&drop object to the\n // left edge of the canvas\n //\n // Drag&Drop bbox of any\n // Figure figure\n //\n // ........\n // . .\n // . . ...........\n // . +<-------------->X |\n // . . p(i)| |\n // . . | |\n // ........ | |\n // ...........\n //\n var bottomIntersections = [];\n var bottomInputPoint = center.clone();\n bottomInputPoint.y = Number.MAX_SAFE_INTEGER;\n this.bounds.forEach(function (bbox) {\n intersectionPoint = _packages2.default.shape.basic.Line.intersection(bbox.getTopLeft(), bbox.getTopRight(), center, bottomInputPoint);\n if (intersectionPoint !== null) {\n intersectionPoint.causedBBox = bbox;\n bottomIntersections.push(intersectionPoint);\n }\n });\n // we can abort if we didn't find an intersection on the right hand side\n if (bottomIntersections.length === 0) {\n return result;\n }\n\n // sort the intersection point and get the closest point to the tested inputPoint\n // In this case it is the point with the greates X coordinate\n //\n bottomIntersections.sort(function (a, b) {\n return a.y - b.y;\n });\n\n // Snap the point (S) between the two founded intersections\n // p(i1) and p(i2)\n //\n // BBox FigureA Drag&Drop BBox of FigureB\n // Figure\n //\n // ....+ ........\n // | . .\n // . |p(i1) . S . ...........\n // . X<------------->X<-------------->X |\n // . | . . p(i2)| |\n // ....+ . . | |\n // ........ | |\n // ...........\n //\n var snappedRect = boundingBox.clone();\n var diff = (topIntersections[0].y + bottomIntersections[0].y) / 2 - center.y;\n\n snappedRect.y += diff;\n\n return {\n snapped: Math.abs(diff) < this.SNAP_THRESHOLD,\n snappedRect: snappedRect,\n diff: diff,\n topSide: topIntersections[0],\n bottomSide: bottomIntersections[0]\n };\n },\n\n populateBounds: function populateBounds() {\n var selection = this.canvas.getSelection().getAll(true);\n var bounds = this.bounds = [];\n\n var figures = this.canvas.getFigures();\n figures.each(function (index, figure) {\n if (!selection.contains(figure)) {\n bounds.push(figure.getBoundingBox());\n }\n });\n },\n\n showHorizontalGuides: function showHorizontalGuides(causedFigure, constraint) {\n if (this.horizontalGuideLines != null) {\n this.horizontalGuideLines.stop();\n this.horizontalGuideLines.remove();\n }\n\n var snapTopLeft = constraint.snappedRect.getTopLeft();\n var snapTopRight = constraint.snappedRect.getTopRight();\n var y = (Math.min(constraint.leftSide.causedBBox.getTopRight().y, Math.min(constraint.rightSide.causedBBox.y, causedFigure.getY())) - 50 | 0) + 0.5;\n\n this.canvas.paper.setStart();\n\n // Vertical lines from left to the right order\n //\n this.canvas.paper.path(\"M \" + ((constraint.leftSide.x | 0) + 0.5) + \" \" + y + \" L \" + ((constraint.leftSide.x | 0) + 0.5) + \" \" + constraint.leftSide.y).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n\n this.canvas.paper.path(\"M \" + ((snapTopLeft.x | 0) + 0.5) + \" \" + y + \" L \" + ((snapTopLeft.x | 0) + 0.5) + \" \" + snapTopLeft.y).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n\n this.canvas.paper.path(\"M \" + ((snapTopRight.x | 0) + 0.5) + \" \" + y + \" L \" + ((snapTopRight.x | 0) + 0.5) + \" \" + snapTopRight.y).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n\n this.canvas.paper.path(\"M \" + ((constraint.rightSide.x | 0) + 0.5) + \" \" + y + \" L \" + ((constraint.rightSide.x | 0) + 0.5) + \" \" + constraint.rightSide.y).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n\n // horizontal lines\n //\n this.canvas.paper.path(\"M \" + constraint.leftSide.x + \" \" + (y + 5) + \" L \" + snapTopLeft.x + \" \" + (y + 5)).attr({\n \"stroke\": this.lineColor.rgba(),\n \"stroke-width\": 1\n });\n this.canvas.paper.path(\"M \" + constraint.rightSide.x + \" \" + (y + 5) + \" L \" + snapTopRight.x + \" \" + (y + 5)).attr({\n \"stroke\": this.lineColor.rgba(),\n \"stroke-width\": 1\n });\n\n // 4 arrow heads starting on the left side and add one by one\n //\n this.canvas.paper.path(\" M \" + (constraint.leftSide.x + 5) + \" \" + y + \" L \" + constraint.leftSide.x + \" \" + (y + 5) + \" L \" + (constraint.leftSide.x + 5) + \" \" + (y + 10)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.canvas.paper.path(\" M \" + (snapTopLeft.x - 5) + \" \" + y + \" L \" + snapTopLeft.x + \" \" + (y + 5) + \" L \" + (snapTopLeft.x - 5) + \" \" + (y + 10)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.canvas.paper.path(\" M \" + (snapTopRight.x + 5) + \" \" + y + \" L \" + snapTopRight.x + \" \" + (y + 5) + \" L \" + (snapTopRight.x + 5) + \" \" + (y + 10)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.canvas.paper.path(\" M \" + (constraint.rightSide.x - 5) + \" \" + y + \" L \" + constraint.rightSide.x + \" \" + (y + 5) + \" L \" + (constraint.rightSide.x - 5) + \" \" + (y + 10)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.horizontalGuideLines = this.canvas.paper.setFinish();\n this.horizontalGuideLines.toFront();\n },\n\n /**\r\n * @method\r\n * Hide the horizontal snaping guides\r\n *\r\n * @param {Boolean} fast\r\n */\n hideHorizontalGuides: function hideHorizontalGuides(fast) {\n var _this = this;\n\n if (this.horizontalGuideLines == null) {\n return;\n }\n\n if (fast === true) {\n if (this.horizontalGuideLines !== null) {\n this.horizontalGuideLines.remove();\n this.horizontalGuideLines = null;\n }\n } else {\n this.horizontalGuideLines.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this.horizontalGuideLines !== null) {\n _this.horizontalGuideLines.remove();\n _this.horizontalGuideLines = null;\n }\n });\n }\n },\n\n showVerticalGuides: function showVerticalGuides(causedFigure, constraint) {\n if (this.verticalGuideLines != null) {\n this.verticalGuideLines.stop();\n this.verticalGuideLines.remove();\n }\n\n var snapTopRight = constraint.snappedRect.getTopRight();\n var snapBottomRight = constraint.snappedRect.getBottomRight();\n var x = (Math.max(constraint.topSide.causedBBox.getRight(), Math.max(constraint.bottomSide.causedBBox.getRight(), causedFigure.getX())) + 40 | 0) + 0.5;\n\n this.canvas.paper.setStart();\n\n // Vertical lines from left to the right order\n //\n this.canvas.paper.path(\"M \" + x + \" \" + ((constraint.topSide.y | 0) + 0.5) + \" L \" + ((constraint.topSide.x | 0) + 0.5) + \" \" + ((constraint.topSide.y | 0) + 0.5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + x + \" \" + ((snapTopRight.y | 0) + 0.5) + \" L \" + ((snapTopRight.x | 0) + 0.5) + \" \" + ((snapTopRight.y | 0) + 0.5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + x + \" \" + ((snapBottomRight.y | 0) + 0.5) + \" L \" + ((snapBottomRight.x | 0) + 0.5) + \" \" + ((snapBottomRight.y | 0) + 0.5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + x + \" \" + ((constraint.bottomSide.y | 0) + 0.5) + \" L \" + ((constraint.bottomSide.x | 0) + 0.5) + \" \" + ((constraint.bottomSide.y | 0) + 0.5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n\n // horizontal lines\n //\n this.canvas.paper.path(\"M \" + (x - 5) + \" \" + ((constraint.topSide.y | 0) + 0.5) + \" L \" + (x - 5) + \" \" + ((snapTopRight.y | 0) + 0.5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n this.canvas.paper.path(\"M \" + (x - 5) + \" \" + ((constraint.bottomSide.y | 0) + 0.5) + \" L \" + (x - 5) + \" \" + ((snapBottomRight.y | 0) + 0.5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n // 4 arrow heads starting on the left side and add one by one\n //\n this.canvas.paper.path(\" M \" + (x - 10) + \" \" + (constraint.topSide.y + 5) + \" L \" + (x - 5) + \" \" + constraint.topSide.y + \" L \" + x + \" \" + (constraint.topSide.y + 5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.canvas.paper.path(\" M \" + (x - 10) + \" \" + (snapTopRight.y - 5) + \" L \" + (x - 5) + \" \" + snapTopRight.y + \" L \" + x + \" \" + (snapTopRight.y - 5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.canvas.paper.path(\" M \" + (x - 10) + \" \" + (snapBottomRight.y + 5) + \" L \" + (x - 5) + \" \" + snapBottomRight.y + \" L \" + x + \" \" + (snapBottomRight.y + 5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.canvas.paper.path(\" M \" + (x - 10) + \" \" + (constraint.bottomSide.y - 5) + \" L \" + (x - 5) + \" \" + constraint.bottomSide.y + \" L \" + x + \" \" + (constraint.bottomSide.y - 5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.verticalGuideLines = this.canvas.paper.setFinish();\n this.verticalGuideLines.toFront();\n },\n\n hideVerticalGuides: function hideVerticalGuides() {\n var _this2 = this;\n\n if (this.verticalGuideLines == null) {\n return; //silently\n }\n\n this.verticalGuideLines.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this2.verticalGuideLines !== null) {\n _this2.verticalGuideLines.remove();\n _this2.verticalGuideLines = null;\n }\n });\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.SnapToInBetweenEditPolicy\r\n *\r\n * Snapping is based on the existing children of a container. When snapping a shape,\r\n * the edges of the bounding box will snap to edges of other rectangles generated\r\n * from the children of the given canvas.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.SnapToEditPolicy\r\n * @since 5.6.4\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToVerticesEditPolicy.js\":\n/*!*******************************************************!*\\\n !*** ./src/policy/canvas/SnapToVerticesEditPolicy.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SnapToVerticesEditPolicy = _packages2.default.policy.canvas.SnapToEditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToVerticesEditPolicy\",\n\n SNAP_THRESHOLD: 3,\n FADEOUT_DURATION: 300,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to geometry\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.constraints = null;\n this.vline = null;\n this.hline = null;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the shape below the mouse or null\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(figure, x, y, shiftKey, ctrlKey) {\n this.constraints = null;\n this.hideVerticalLine();\n this.hideHorizontalLine();\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the canvas neighbours\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n // can only handle PolyLies at the moment\n //\n if (!(figure instanceof _packages2.default.shape.basic.VertexResizeHandle)) {\n return modifiedPos;\n }\n\n var allowXChanges = modifiedPos.x === originalPos.x;\n var allowYChanges = modifiedPos.y === originalPos.y;\n\n // Coordinates already snapped to an x/y coordinate.\n // Don't change them and in this case no further calculation is required.\n //\n if (!allowXChanges && !allowYChanges) {\n return modifiedPos;\n }\n\n var result = modifiedPos.clone();\n var correction = this.getCorrectionFor(figure, originalPos);\n\n if (allowXChanges && correction.vertical.x !== Number.MAX_SAFE_INTEGER) {\n result.x = correction.vertical.x;\n this.showVerticalLine(originalPos, correction.vertical);\n } else {\n this.hideVerticalLine();\n }\n\n if (allowYChanges && correction.horizontal.y !== Number.MAX_SAFE_INTEGER) {\n result.y = correction.horizontal.y;\n this.showHorizontalLine(originalPos, correction.horizontal);\n } else {\n this.hideHorizontalLine();\n }\n\n return result;\n },\n\n getCorrectionFor: function getCorrectionFor(vertexResizeHandle, point) {\n var _this = this;\n if (this.constraints === null) {\n this.constraints = [];\n\n var lines = this.canvas.getLines();\n lines.each(function (i, line) {\n line.getVertices().each(function (ii, vertex) {\n if (vertexResizeHandle.index !== ii || vertexResizeHandle.owner !== line) _this.constraints.push(vertex);\n });\n });\n }\n\n var SNAP = this.SNAP_THRESHOLD;\n var vertical = { x: Number.MAX_SAFE_INTEGER, y: Number.MAX_SAFE_INTEGER, diffy: Number.MAX_SAFE_INTEGER };\n var horizontal = { x: Number.MAX_SAFE_INTEGER, y: Number.MAX_SAFE_INTEGER, diffx: Number.MAX_SAFE_INTEGER };\n var diffx, diffy;\n\n for (var i = 0; i < this.constraints.length; i++) {\n var entry = this.constraints[i];\n\n diffx = Math.abs(point.x - entry.x);\n diffy = Math.abs(point.y - entry.y);\n // we found a possible candidate for the vertical snap line\n //\n if (diffx < SNAP) {\n if (diffy < vertical.diffy) {\n vertical = { x: entry.x, y: entry.y, diffy: diffy };\n }\n }\n\n if (diffy < SNAP) {\n if (diffx < horizontal.diffx) {\n horizontal = { x: entry.x, y: entry.y, diffx: diffx };\n }\n }\n }\n return { vertical: vertical, horizontal: horizontal };\n },\n\n showVerticalLine: function showVerticalLine(originalPos, snappedPos) {\n if (this.vline != null) {\n this.vline.stop();\n this.vline.remove();\n }\n\n var maxLength = this.canvas.getHeight();\n var x = (snappedPos.x | 0) + 0.5; // force a .5 number to avoid subpixel rendering. Blurry lines...\n this.canvas.paper.setStart();\n this.canvas.paper.path(\"M \" + x + \" 0 l 0 \" + maxLength).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + x + \" \" + originalPos.y + \" L \" + x + \" \" + snappedPos.y).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.vline = this.canvas.paper.setFinish();\n this.vline.toBack();\n },\n\n hideVerticalLine: function hideVerticalLine() {\n var _this2 = this;\n\n if (this.vline == null) {\n return;\n }\n this.vline.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this2.vline !== null) {\n _this2.vline.remove();\n _this2.vline = null;\n }\n });\n },\n\n showHorizontalLine: function showHorizontalLine(originalPos, snappedPos) {\n if (this.hline != null) {\n this.hline.stop();\n this.hline.remove();\n }\n\n var maxLength = this.canvas.getWidth();\n var y = (snappedPos.y | 0) + 0.5; // force a .5 number to avoid subpixel rendering. Blurry lines...\n\n this.canvas.paper.setStart();\n this.canvas.paper.path(\"M 0 \" + y + \" l \" + maxLength + \" 0\").attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + originalPos.x + \" \" + y + \" L \" + snappedPos.x + \" \" + y).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.hline = this.canvas.paper.setFinish();\n this.hline.toBack();\n },\n\n hideHorizontalLine: function hideHorizontalLine() {\n var _this3 = this;\n\n if (this.hline === null) {\n return; //silently\n }\n this.hline.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this3.hline !== null) {\n _this3.hline.remove();\n _this3.hline = null;\n }\n });\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.SnapToVerticesEditPolicy\r\n *\r\n * Snapping is based on the existing children of a container. When snapping a shape,\r\n * the edges of the bounding box will snap to edges of other rectangles generated\r\n * from the children of the given canvas.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.SnapToEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/WheelZoomPolicy.js\":\n/*!**********************************************!*\\\n !*** ./src/policy/canvas/WheelZoomPolicy.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _shifty = __webpack_require__(/*! shifty */ \"./node_modules/shifty/dist/shifty.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.policy.canvas.WheelZoomPolicy\r\n * Zoom support for a canvas. Use the mouse wheel and the shift key to zoom in/out.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.WheelZoomPolicy());\r\n * let shape = new draw2d.shape.basic.Text({text:\"Use the mouse wheel + SHIFT to zoom\"});\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n * @since 5.8.0\r\n */\n_packages2.default.policy.canvas.WheelZoomPolicy = _packages2.default.policy.canvas.ZoomPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.WheelZoomPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n var _this = this;\n\n this._super();\n\n this.center = null;\n this.debouncedZoomedCallback = this._debounce(function () {\n var canvas = _this.canvas;\n if (canvas !== null) {\n canvas.fireEvent(\"zoomed\", { value: canvas.zoomFactor });\n }\n _this.center = null;\n }, 200);\n },\n\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n canvas.setZoom(1);\n canvas.__wheelZoom = 1;\n },\n\n onUninstall: function onUninstall(canvas) {\n this._super(canvas);\n\n // cleanup the canvas object and remove custom properties\n //\n delete canvas.__wheelZoom;\n },\n\n /**\r\n * @method\r\n * called if the user uses the mouse wheel.\r\n *\r\n *\r\n * @param wheelDelta\r\n * @param {Number} x the x coordinate of the event\r\n * @param {Number} y the y coordinate of the event\r\n * @param shiftKey\r\n * @param ctrlKey\r\n * @since 5.8.0\r\n * @template\r\n * @return {Boolean} return <b>false</b> to preven tthe default event operation (e.g. scrolling)\r\n */\n onMouseWheel: function onMouseWheel(wheelDelta, x, y, shiftKey, ctrlKey) {\n // mouse wheel is only supported if the user presses the shift key.\n // normally the canvas scrolls during mouseWheel usage.\n //\n if (shiftKey === false) {\n return true;\n }\n\n wheelDelta = wheelDelta / 1024;\n\n var newZoom = (Math.min(5, Math.max(0.1, this.canvas.zoomFactor + wheelDelta)) * 10000 | 0) / 10000;\n if (this.center === null) {\n var client = this.canvas.fromCanvasToDocumentCoordinate(x, y);\n\n this.center = {\n x: x,\n y: y,\n clientX: client.x,\n clientY: client.y\n };\n }\n this._zoom(newZoom, this.center);\n this.debouncedZoomedCallback();\n\n return false;\n },\n\n /**\r\n * @method\r\n * Set the new zoom level of the canvas.\r\n *\r\n * @param zoomFactor\r\n * @param animated\r\n */\n setZoom: function setZoom(zoomFactor, animated) {\n var _this2 = this;\n\n // determine the center of the current canvas. We try to keep the\n // current center during zoom operation\n //\n var scrollTop = this.canvas.getScrollTop();\n var scrollLeft = this.canvas.getScrollLeft();\n var scrollWidth = this.canvas.getScrollArea().width();\n var scrollHeight = this.canvas.getScrollArea().width();\n var centerY = scrollTop + scrollHeight / 2 * this.canvas.zoomFactor;\n var centerX = scrollLeft + scrollWidth / 2 * this.canvas.zoomFactor;\n\n if (animated) {\n var myTweenable = new _shifty.Tweenable();\n myTweenable.tween({\n from: { 'x': this.canvas.zoomFactor },\n to: { 'x': zoomFactor },\n duration: 300,\n easing: \"easeOutSine\",\n step: function step(params) {\n _this2._zoom(params.x, centerX, centerY);\n },\n finish: function finish(state) {\n _this2.debouncedZoomedCallback();\n }\n });\n } else {\n this._zoom(zoomFactor, { x: centerX, y: centerY });\n this.debouncedZoomedCallback();\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {Number} zoom\r\n * @param {draw2d.geo.Point} center\r\n * @private\r\n */\n _zoom: function _zoom(zoom, center) {\n var canvas = this.canvas;\n\n if (zoom === canvas.zoomFactor) {\n return;\n }\n\n canvas.zoomFactor = zoom;\n\n canvas.paper.setViewBox(0, 0, canvas.initialWidth, canvas.initialHeight);\n // Change the width and the height attributes manually through DOM\n // unfortunately the raphaelJS 'setSize' method changes the viewBox as well and this is unwanted in this case\n //\n canvas.html.find(\"svg\").attr({\n 'width': canvas.initialWidth / zoom,\n 'height': canvas.initialHeight / zoom\n });\n\n // try to keep the document position to the given client position\n //\n if (center.clientX) {\n var coordsAfter = canvas.fromCanvasToDocumentCoordinate(center.x, center.y);\n canvas.scrollTo(this.canvas.getScrollTop() - (center.clientY - coordsAfter.y), canvas.getScrollLeft() - (center.clientX - coordsAfter.x));\n }\n\n canvas.fireEvent(\"zoom\", { value: canvas.zoomFactor });\n },\n\n // Returns a function, that, as long as it continues to be invoked, will not\n // be triggered. The function will be called after it stops being called for\n // N milliseconds. If `immediate` is passed, trigger the function on the\n // leading edge, instead of the trailing.\n _debounce: function _debounce(func, wait, immediate) {\n var _this3 = this,\n _arguments = arguments;\n\n var timeout = void 0;\n return function () {\n var context = _this3,\n args = _arguments;\n var later = function later() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n }\n});\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ZoomPolicy.js\":\n/*!*****************************************!*\\\n !*** ./src/policy/canvas/ZoomPolicy.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _shifty = __webpack_require__(/*! shifty */ \"./node_modules/shifty/dist/shifty.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.policy.canvas.ZoomPolicy\r\n * Generic zoom policy installable into a canvas object.\r\n * This is the legacy implementation of the very first zooming in\r\n * Draw2D. You can use this implementation if you want backward compatible.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n * @since 5.8.0\r\n */\n_packages2.default.policy.canvas.ZoomPolicy = _packages2.default.policy.canvas.CanvasPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ZoomPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this._super();\n },\n\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n canvas.setZoom(1);\n },\n\n onUninstall: function onUninstall(canvas) {\n this._super(canvas);\n },\n\n /** @method\r\n * Set the new zoom factor for the canvas. The value must be between [0.01..10]\r\n *\r\n * // you can register an eventhandler to listen to the zoom factor of the canvas.\r\n * //\r\n * canvas.on(\"zoom\", function(emitterFigure, zoomData){\r\n * alert(\"canvas zoomed to:\"+zoomData.factor);\r\n * });\r\n *\r\n * @param {Number} zoomFactor new zoom factor.\r\n * @param {Boolean} [animated] set it to true for smooth zoom in/out\r\n **/\n setZoom: function setZoom(zoomFactor, animated) {\n var canvas = this.canvas;\n\n var _zoom = function _zoom(z) {\n canvas.zoomFactor = Math.min(Math.max(0.01, z), 10);\n\n var viewBoxWidth = canvas.initialWidth * canvas.zoomFactor | 0;\n var viewBoxHeight = canvas.initialHeight * canvas.zoomFactor | 0;\n\n canvas.paper.setViewBox(0, 0, viewBoxWidth, viewBoxHeight);\n\n canvas.fireEvent(\"zoom\", { value: canvas.zoomFactor });\n };\n\n if (animated) {\n var myTweenable = new _shifty.Tweenable();\n myTweenable.tween({\n from: { 'x': canvas.zoomFactor },\n to: { 'x': zoomFactor },\n duration: 300,\n easing: \"easeOutSine\",\n step: function step(params) {\n return _zoom(params.x);\n },\n finish: function finish(state) {\n return canvas.fireEvent(\"zoomed\", { value: canvas.zoomFactor });\n }\n });\n } else {\n _zoom(zoomFactor);\n canvas.fireEvent(\"zoomed\", { value: canvas.zoomFactor });\n }\n }\n});\n\n/***/ }),\n\n/***/ \"./src/policy/connection/ClickConnectionCreatePolicy.js\":\n/*!**************************************************************!*\\\n !*** ./src/policy/connection/ClickConnectionCreatePolicy.js ***!\n \\**************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.connection.ClickConnectionCreatePolicy = _packages2.default.policy.connection.ConnectionCreatePolicy.extend({\n\n NAME: \"draw2d.policy.connection.ClickConnectionCreatePolicy\",\n\n /**\r\n * @constructor\r\n *\r\n * Creates a new connection create policy instance\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.port1 = null;\n this.beeline = null;\n this.pulse = null;\n this.tempConnection = null;\n\n this.vertices = [];\n },\n\n /**\r\n * @method\r\n * Called by the canvas if the user click on a figure.\r\n *\r\n * @param {draw2d.Figure} the figure under the click event. Can be null\r\n * @param {Number} x the x coordinate of the mouse during the click event\r\n * @param {Number} y the y coordinate of the mouse during the click event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @since 6.1.0\r\n */\n onClick: function onClick(figure, x, y, shiftKey, ctrlKey) {\n var _this = this;\n var port = figure;\n\n if (port === null && this.port1 === null) {\n return;\n }\n\n // nothing found at all\n //\n if (port === null) {\n this.vertices.push(new _packages2.default.geo.Point(x, y));\n this.beeline.setStartPosition(x, y);\n this.tempConnection.setVertices(this.vertices);\n if (this.pulse !== null) {\n this.pulse.remove();\n this.pulse = null;\n }\n this.ripple(x, y, 0);\n return;\n }\n\n //just consider ports\n //\n if (!(port instanceof _packages2.default.Port)) {\n return;\n }\n\n // start connection create by selection the start port\n //\n if (this.port1 === null) {\n var canvas = port.getCanvas();\n this.port1 = port;\n this.vertices.push(port.getAbsolutePosition());\n this.beeline = new _packages2.default.shape.basic.Line({\n start: this.port1.getAbsolutePosition(),\n end: this.port1.getAbsolutePosition(),\n dasharray: \"- \",\n color: \"#2C70FF\"\n });\n\n this.beeline.hide = function () {\n _this.beeline.setCanvas(null);\n };\n\n this.beeline.show = function (canvas) {\n _this.beeline.setCanvas(canvas);\n _this.beeline.shape.toFront();\n };\n this.beeline.show(canvas);\n\n this.tempConnection = new _packages2.default.shape.basic.PolyLine({\n start: this.port1.getAbsolutePosition(),\n end: this.port1.getAbsolutePosition(),\n stroke: 2,\n color: \"#2C70FF\"\n });\n\n this.tempConnection.hide = function () {\n _this.tempConnection.setCanvas(null);\n };\n\n this.tempConnection.show = function (canvas) {\n _this.tempConnection.setCanvas(canvas);\n _this.tempConnection.shape.toFront();\n };\n this.tempConnection.show(canvas);\n this.tempConnection.setVertices([this.port1.getAbsolutePosition(), this.port1.getAbsolutePosition()]);\n\n var a = function a() {\n _this.tempConnection.shape.animate({ \"stroke-width\": 2 }, 800, b);\n };\n var b = function b() {\n _this.tempConnection.shape.animate({ \"stroke-width\": 1 }, 800, a);\n };\n a();\n\n var pos = port.getAbsolutePosition();\n this.pulse = this.ripple(pos.x, pos.y, 1);\n return;\n }\n\n var possibleTarget = port.delegateTarget(this.port1);\n\n if (!(possibleTarget instanceof _packages2.default.Port)) {\n return; // silently\n }\n\n var request = new _packages2.default.command.CommandType(_packages2.default.command.CommandType.CONNECT);\n request.source = this.port1;\n request.target = port;\n\n var command = null;\n if (this.port1 instanceof _packages2.default.InputPort) {\n command = this.port1.createCommand(request);\n } else {\n command = port.createCommand(request);\n }\n\n if (command !== null) {\n this.vertices.push(port.getPosition());\n command.setConnection(this.createConnection());\n figure.getCanvas().getCommandStack().execute(command);\n this.beeline.hide();\n this.tempConnection.hide();\n if (this.pulse !== null) {\n this.pulse.remove();\n this.pulse = null;\n }\n this.beeline = null;\n this.port1 = null;\n this.vertices = [];\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseMove: function onMouseMove(canvas, x, y, shiftKey, ctrlKey) {\n if (this.beeline !== null) {\n this.beeline.setEndPosition(x, y);\n }\n },\n\n /**\r\n * @method\r\n * Callback if the user press a key down\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {Number} keyCode the pressed key\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n **/\n onKeyDown: function onKeyDown(canvas, keyCode, shiftKey, ctrlKey) {\n var KEYCODE_ENTER = 13;\n var KEYCODE_ESC = 27;\n if (keyCode === KEYCODE_ESC && this.beeline !== null) {\n this.beeline.hide();\n this.tempConnection.hide();\n this.beeline = null;\n this.port1 = null;\n this.vertices = [];\n if (this.pulse != null) {\n this.pulse.remove();\n this.pulse = null;\n }\n }\n },\n\n createConnection: function createConnection() {\n var connection = this._super();\n if (this.vertices.length === 2) {\n connection.setRouter(new _packages2.default.layout.connection.DirectRouter());\n } else {\n connection.setRouter(new _packages2.default.layout.connection.VertexRouter());\n connection.setVertices(this.vertices);\n }\n connection.setRadius(10);\n return connection;\n }\n\n});\n/**\r\n * @class draw2d.policy.connection.ClickConnectionCreatePolicy\r\n *\r\n * The ClickConnectionCreatePolicy can be installed into the canvas to override the\r\n * default connection crate behaviour. Normally you can create connections by drag&drop a port.\r\n *\r\n * With this policy you can route the connection during creation.\r\n *\r\n * Creates a connection by clicking on a port.\r\n * <ul>\r\n * <li> click on the first port</li>\r\n * <li> click within the canvas to add additional vertices</li>\r\n * <li> click on the target port to draw the connection</li>\r\n * <li> press ESC to abort the operation (didn't work within this JSDoc)</li>\r\n * </ul>\r\n * <br>\r\n * <br>\r\n * <b>The generated connections didn't have any orthogonal constraints nor any other restrictions or guidance.</b>\r\n * <br>\r\n * <br>\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // Override the default connection creation.\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.ClickConnectionCreatePolicy());\r\n *\r\n * // create and add two Node which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start({x:50, y:50});\r\n * var endNode = new draw2d.shape.node.End({x:200, y:70});\r\n *\r\n * // add the two nodes to the canvas\r\n * //\r\n * canvas.add( start);\r\n * canvas.add( endNode);\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.connection.ConnectionCreatePolicy\r\n * @since 6.1.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/connection/ComposedConnectionCreatePolicy.js\":\n/*!*****************************************************************!*\\\n !*** ./src/policy/connection/ComposedConnectionCreatePolicy.js ***!\n \\*****************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.connection.ComposedConnectionCreatePolicy = _packages2.default.policy.connection.ConnectionCreatePolicy.extend({\n\n NAME: \"draw2d.policy.connection.ComposedConnectionCreatePolicy\",\n\n /**\r\n * @constructor\r\n *\r\n * Creates a new connection create policy instance\r\n *\r\n * @param {array} policies the policies to use\r\n */\n init: function init(policies) {\n this.policies = policies;\n this._super();\n },\n\n onMouseDown: function onMouseDown() {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onMouseDown.apply(p, _arg);\n });\n },\n onMouseDrag: function onMouseDrag() {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onMouseDrag.apply(p, _arg);\n });\n },\n\n onMouseUp: function onMouseUp() {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onMouseUp.apply(p, _arg);\n });\n },\n\n onClick: function onClick() {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onClick.apply(p, _arg);\n });\n },\n onMouseMove: function onMouseMove() {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onMouseMove.apply(p, _arg);\n });\n },\n\n /**\r\n * @inheritDoc\r\n **/\n onKeyUp: function onKeyUp(canvas, keyCode, shiftKey, ctrlKey) {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onKeyUp.apply(p, _arg);\n });\n },\n\n /**\r\n * @inheritDoc\r\n **/\n onKeyDown: function onKeyDown(canvas, keyCode, shiftKey, ctrlKey) {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onKeyDown.apply(p, _arg);\n });\n },\n\n /**\r\n * @method\r\n * Called if the policy is installed into the canvas.\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n */\n onInstall: function onInstall(canvas) {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onInstall.apply(p, _arg);\n });\n },\n\n /**\r\n * @method\r\n * Called if the policy is deinstalled from the canvas\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n */\n onUninstall: function onUninstall(canvas) {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onUninstall.apply(p, _arg);\n });\n }\n\n});\n/**\r\n * @class draw2d.policy.connection.ComposedConnectionCreatePolicy\r\n * A composed connection create policy. Use this to install more than one\r\n * ConnectionCreatePolicy into the canvas. Normally it is not allowed to install\r\n * more than one policy from the same type.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.connection.ConnectionCreatePolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/connection/ConnectionCreatePolicy.js\":\n/*!*********************************************************!*\\\n !*** ./src/policy/connection/ConnectionCreatePolicy.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.connection.ConnectionCreatePolicy = _packages2.default.policy.canvas.KeyboardPolicy.extend({\n\n NAME: \"draw2d.policy.connection.ConnectionCreatePolicy\",\n\n /**\r\n * @constructor\r\n *\r\n * Creates a new connection create policy instance\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Factory method to create the connection to insert.\r\n *\r\n * @return {draw2d.Connection}\r\n * @template\r\n */\n createConnection: function createConnection() {\n return new _packages2.default.Connection({\n router: new _packages2.default.layout.connection.DirectRouter()\n });\n },\n\n ripple: function ripple(x, y, type) {\n switch (type) {\n case 0:\n var circle = this.canvas.paper.circle(x, y, 3, 3).attr({ fill: null, stroke: \"#d0d0ff\" });\n var anim = Raphael.animation({ transform: \"s6\", opacity: 0.0, \"stroke-width\": 3 }, 500, \"linear\", function () {\n circle.remove();\n });\n circle.animate(anim);\n // return an emmpty raphael.set. The circle removes itself after animation is done\n //\n return this.canvas.paper.set();\n break;\n case 1:\n var circle1 = this.canvas.paper.circle(x, y, 3, 3).attr({ fill: null, stroke: \"#3f72bf\" });\n var circle2 = this.canvas.paper.circle(x, y, 3, 3).attr({ fill: null, stroke: \"#ff0000\" });\n var anim1 = Raphael.animation({ transform: \"s6\", opacity: 0.0, \"stroke-width\": 1 }, 1200, \"linear\").repeat(Infinity);\n circle1.animate(anim1);\n var anim2 = Raphael.animation({ transform: \"s12\", opacity: 0.0, \"stroke-width\": 4 }, 500, \"linear\", function () {\n circle2.remove();\n });\n circle2.animate(anim2);\n\n // return the \"circle1\". This shape must be remove by the caller\n // \"circle2\" is removed automaticly\n //\n return circle1;\n break;\n }\n }\n\n});\n/**\r\n * @class draw2d.policy.connection.ConnectionCreatePolicy\r\n * Base class for connection creation by user interaction.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.KeyboardPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/connection/DragConnectionCreatePolicy.js\":\n/*!*************************************************************!*\\\n !*** ./src/policy/connection/DragConnectionCreatePolicy.js ***!\n \\*************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.connection.DragConnectionCreatePolicy = _packages2.default.policy.connection.ConnectionCreatePolicy.extend({\n\n NAME: \"draw2d.policy.connection.DragConnectionCreatePolicy\",\n\n /**\r\n * @constructor\r\n *\r\n * Creates a new connection create policy instance\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.mouseDraggingElement = null;\n this.currentDropTarget = null;\n this.currentTarget = null;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseDown: function onMouseDown(canvas, x, y, shiftKey, ctrlKey) {\n //just consider ports\n //\n var port = canvas.getBestFigure(x, y);\n\n // nothing found at all\n //\n if (port === null) {\n return;\n }\n\n // may there is a resize handle below the port or another figure\n // in this case the ResizeHandle has prio. and handled by another\n // Policy\n if (!(port instanceof _packages2.default.Port)) {\n return;\n }\n\n // this can happen if the user release the mouse button outside the window during a drag&drop\n // operation. In this case we must fire the \"onDragEnd\" event postpond.\n //\n if (port.isInDragDrop === true) {\n port.onDragEnd(x, y, shiftKey, ctrlKey);\n port.isInDragDrop = false;\n }\n\n // introspect the port only if it is draggable at all\n //\n if (port.isDraggable()) {\n var canDragStart = port.onDragStart(x - port.getAbsoluteX(), y - port.getAbsoluteY(), shiftKey, ctrlKey);\n if (canDragStart) {\n port.fireEvent(\"dragstart\", { x: x - port.getAbsoluteX(), y: y - port.getAbsoluteY(), shiftKey: shiftKey, ctrlKey: ctrlKey });\n }\n\n // Element send a veto about the drag&drop operation\n this.mouseDraggingElement = canDragStart === false ? null : port;\n this.mouseDownElement = port;\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @template\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n try {\n if (this.mouseDraggingElement !== null) {\n var de = this.mouseDraggingElement;\n var ct = this.currentTarget;\n\n de.isInDragDrop = true;\n de.onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n\n var target = canvas.getBestFigure(de.getAbsoluteX(), de.getAbsoluteY(), de);\n\n // the hovering element has been changed\n if (target !== ct) {\n if (ct !== null) {\n ct.onDragLeave(de);\n ct.fireEvent(\"dragLeave\", { draggingElement: de });\n de.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.port.PortFeedbackPolicy) {\n e.onHoverLeave(canvas, de, ct);\n }\n });\n }\n\n // possible hoverEnter event\n //\n if (target !== null) {\n this.currentTarget = ct = target.delegateTarget(de);\n if (ct !== null) {\n ct.onDragEnter(de); // legacy\n ct.fireEvent(\"dragEnter\", { draggingElement: de });\n de.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.port.PortFeedbackPolicy) {\n e.onHoverEnter(canvas, de, ct);\n }\n });\n }\n } else {\n this.currentTarget = null;\n }\n }\n\n var p = canvas.fromDocumentToCanvasCoordinate(canvas.mouseDownX + dx / canvas.zoomFactor, canvas.mouseDownY + dy / canvas.zoomFactor);\n var target = canvas.getBestFigure(p.x, p.y, this.mouseDraggingElement);\n\n if (target !== this.currentDropTarget) {\n if (this.currentDropTarget !== null) {\n this.currentDropTarget.onDragLeave(this.mouseDraggingElement);\n this.currentDropTarget.fireEvent(\"dragLeave\", { draggingElement: this.mouseDraggingElement });\n this.currentDropTarget = null;\n }\n if (target !== null) {\n this.currentDropTarget = target.delegateTarget(this.mouseDraggingElement);\n // inform all listener that the element has accept the dragEnter event\n //\n if (this.currentDropTarget !== null) {\n this.currentDropTarget.onDragEnter(this.mouseDraggingElement); // legacy\n this.currentDropTarget.fireEvent(\"dragEnter\", { draggingElement: this.mouseDraggingElement });\n }\n }\n }\n }\n } catch (exc) {\n console.log(exc);\n debugger;\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the shape below the mouse or null\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(canvas, x, y, shiftKey, ctrlKey) {\n if (this.mouseDraggingElement !== null) {\n\n var de = this.mouseDraggingElement;\n var ct = this.currentTarget;\n // start CommandStack transaction\n canvas.getCommandStack().startTransaction();\n\n de.onDragEnd(x, y, shiftKey, ctrlKey);\n // notify all installed policies\n //\n if (ct) {\n de.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.port.PortFeedbackPolicy) {\n e.onHoverLeave(canvas, de, ct);\n }\n });\n }\n\n de.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.onDragEnd(canvas, de, x, y, shiftKey, ctrlKey);\n }\n });\n\n // Reset the drag&drop flyover information\n //\n this.currentTarget = null;\n de.isInDragDrop = false;\n\n // fire an event\n // @since 5.3.3\n de.fireEvent(\"dragend\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n // check if we drop the port onto a valid\n // drop target and create a connection if possible\n //\n if (this.currentDropTarget !== null) {\n this.mouseDraggingElement.onDrop(this.currentDropTarget, x, y, shiftKey, ctrlKey);\n\n this.currentDropTarget.onDragLeave(this.mouseDraggingElement);\n this.currentDropTarget.fireEvent(\"dragLeave\", { draggingElement: this.mouseDraggingElement });\n\n // Ports accepts only Ports as DropTarget\n //\n if (this.currentDropTarget instanceof _packages2.default.Port) {\n var request = new _packages2.default.command.CommandType(_packages2.default.command.CommandType.CONNECT);\n request.source = this.currentDropTarget;\n request.target = this.mouseDraggingElement;\n var command = this.mouseDraggingElement.createCommand(request);\n\n if (command !== null) {\n command.setConnection(this.createConnection());\n canvas.getCommandStack().execute(command);\n this.currentDropTarget.onCatch(this.mouseDraggingElement, x, y, shiftKey, ctrlKey);\n }\n }\n }\n\n // end command stack trans\n canvas.getCommandStack().commitTransaction();\n this.currentDropTarget = null;\n this.mouseDraggingElement = null;\n }\n },\n\n createConnection: function createConnection() {\n var connection = this._super();\n connection.setRouter(new _packages2.default.layout.connection.DirectRouter());\n\n return connection;\n }\n\n});\n/**\r\n * @class draw2d.policy.connection.DragConnectionCreatePolicy\r\n *\r\n * The DragConnectionCreatePolicy is the default configuration for connection creation.\r\n * You must drag a port and drop them onto another port to create connection.\r\n *\r\n * Creates a connection by drag&drop on a port.\r\n * <ul>\r\n * <li> click on the first port</li>\r\n * <li> drag it to the target port</li>\r\n * <li> drop it onto the target</li>\r\n * </ul>\r\n * <br>\r\n * <br>\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // Override the default connection creation.\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy());\r\n *\r\n * // create and add two Node which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start({x:50, y:50});\r\n * var endNode = new draw2d.shape.node.End({x:200, y:70});\r\n *\r\n * // add the two nodes to the canvas\r\n * //\r\n * canvas.add( start);\r\n * canvas.add( endNode);\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.connection.ConnectionCreatePolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/connection/OrthogonalConnectionCreatePolicy.js\":\n/*!*******************************************************************!*\\\n !*** ./src/policy/connection/OrthogonalConnectionCreatePolicy.js ***!\n \\*******************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.connection.OrthogonalConnectionCreatePolicy = _packages2.default.policy.connection.ConnectionCreatePolicy.extend({\n\n NAME: \"draw2d.policy.connection.ClickConnectionCreatePolicy\",\n\n /**\r\n * @constructor\r\n *\r\n * Creates a new connection create policy instance\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.port1 = null;\n this.beeline = null;\n this.pulse = null;\n this.tempConnection = null;\n\n this.vertices = new _packages2.default.util.ArrayList();\n },\n\n /**\r\n * @method\r\n * Called by the canvas if the user click on a figure.\r\n *\r\n * @param {draw2d.Figure} the figure under the click event. Can be null\r\n * @param {Number} x the x coordinate of the mouse during the click event\r\n * @param {Number} y the y coordinate of the mouse during the click event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @since 6.1.0\r\n *\r\n * @template\r\n */\n onClick: function onClick(figure, x, y, shiftKey, ctrlKey) {\n var UP = _packages2.default.geo.Rectangle.DIRECTION_UP;\n var RIGHT = _packages2.default.geo.Rectangle.DIRECTION_RIGHT;\n var DOWN = _packages2.default.geo.Rectangle.DIRECTION_DOWN;\n var LEFT = _packages2.default.geo.Rectangle.DIRECTION_LEFT;\n\n var _this = this;\n var port = figure; // .getCanvas().getBestFigure(x, y);\n\n // nothing to do\n if (port === null && this.port1 === null) {\n return;\n }\n\n // nothing found at all\n //\n if (port === null) {\n var canvas = this.port1.getCanvas();\n var newPos = this.beeline.getEndPosition();\n this.vertices.add(newPos);\n this.beeline.setStartPosition(this.beeline.getEndPosition());\n this.tempConnection.setVertices(this.vertices);\n if (this.pulse !== null) {\n this.pulse.remove();\n this.pulse = null;\n }\n this.ripple(newPos.x, newPos.y, 0);\n return;\n }\n\n // we just considering ports\n //\n if (!(port instanceof _packages2.default.Port)) {\n return;\n }\n\n // start connection create by selection the start port\n //\n if (this.port1 === null) {\n var canvas = port.getCanvas();\n this.port1 = port;\n this.vertices.add(port.getAbsolutePosition());\n this.beeline = new _packages2.default.shape.basic.Line({\n start: this.port1.getAbsolutePosition(),\n end: this.port1.getAbsolutePosition(),\n dasharray: \"- \",\n color: \"#2C70FF\"\n });\n\n this.beeline.hide = function () {\n _this.beeline.setCanvas(null);\n };\n\n this.beeline.show = function (canvas) {\n _this.beeline.setCanvas(canvas);\n _this.beeline.shape.toFront();\n };\n this.beeline.show(canvas);\n\n this.tempConnection = new _packages2.default.shape.basic.PolyLine({\n start: this.port1.getAbsolutePosition(),\n end: this.port1.getAbsolutePosition(),\n stroke: 2,\n color: \"#2C70FF\"\n });\n\n this.tempConnection.hide = function () {\n _this.tempConnection.setCanvas(null);\n };\n\n this.tempConnection.show = function (canvas) {\n _this.tempConnection.setCanvas(canvas);\n _this.tempConnection.shape.toFront();\n };\n this.tempConnection.show(canvas);\n this.tempConnection.setVertices([this.port1.getAbsolutePosition(), this.port1.getAbsolutePosition()]);\n\n var a = function a() {\n _this.tempConnection.shape.animate({ \"stroke-width\": 2 }, 800, b);\n };\n var b = function b() {\n _this.tempConnection.shape.animate({ \"stroke-width\": 1 }, 800, a);\n };\n a();\n\n canvas.paper.setStart();\n\n // delete the previews puls if the user press twice on the starting port\n //\n if (this.pulse !== null) {\n this.pulse.remove();\n this.pulse = null;\n }\n\n var pos = port.getAbsolutePosition();\n this.ripple(pos.x, pos.y, 1);\n this.pulse = canvas.paper.setFinish();\n } else {\n var possibleTarget = port.delegateTarget(this.port1);\n\n if (!(possibleTarget instanceof _packages2.default.Port)) {\n return; // silently\n }\n\n // check whenever the target port allows a connection\n //\n var request = new _packages2.default.command.CommandType(_packages2.default.command.CommandType.CONNECT);\n request.source = this.port1;\n request.target = port;\n var command = null;\n if (this.port1 instanceof _packages2.default.InputPort) {\n command = this.port1.createCommand(request);\n } else {\n command = port.createCommand(request);\n }\n\n if (command !== null) {\n var connection = this.createConnection();\n command.setConnection(connection);\n port.getCanvas().getCommandStack().execute(command);\n\n this.beeline.hide();\n this.tempConnection.hide();\n if (this.pulse !== null) {\n this.pulse.remove();\n this.pulse = null;\n }\n this.beeline = null;\n this.port1 = null;\n\n // use the default routing if the user didn't add some\n // vertices\n if (this.vertices.getSize() <= 2) {\n return;\n }\n\n var MINDIST = command.getConnection().getRouter().MINDIST;\n var beforeVertex = this.vertices.get(this.vertices.getSize() - 2);\n var lastVertex = this.vertices.last();\n var portPos = port.getAbsolutePosition();\n var lastSegmentDir = UP;\n if (lastVertex.x === beforeVertex.x) {\n lastSegmentDir = lastVertex.y < beforeVertex.y ? UP : DOWN;\n } else {\n lastSegmentDir = lastVertex.x < beforeVertex.x ? LEFT : RIGHT;\n }\n\n // CALCULATE THE LAST MILE OF THE CONNECTION\n //\n // ensure that we have a valid \"manhattan style\" connection.\n // We must add or adjust some points or segments.\n //\n // The code below creates and adjust the points in that way that the\n // DOTTED line is the calculated part to the user defined vertices.\n // ==================================\n //\n switch (port.getConnectionDirection(this.port1)) {\n case UP:\n switch (lastSegmentDir) {\n case UP:\n // o..................o lastVertex\n // | . |\n // | . |\n // | +----O----+ |\n // ------o | portPos | o------------\n // | | beforeVertex\n // +---------+\n //\n if (lastVertex.y < portPos.y - MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, lastVertex.y));\n this.vertices.add(portPos);\n }\n // ...................\n // . . .\n // . +----O----+ .\n // o | portPos | o lastVertex\n // | | | |\n // | +---------+ |\n // -------o o------------\n // beforeVertex\n //\n else {\n lastVertex.y = portPos.y - MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, lastVertex.y));\n this.vertices.add(portPos);\n }\n break;\n case RIGHT:\n // ..............................\n // . . .\n // . . .\n // o------->o +----O----+ o---------------->O\n // | | portPos | | beforeVertex lastVertex\n // | | | |\n // | +---------+\n if (lastVertex.y > portPos.y - MINDIST) {\n beforeVertex.y = portPos.y - MINDIST;\n lastVertex.x = portPos.x;\n lastVertex.y = beforeVertex.y;\n this.vertices.add(portPos);\n }\n //\n // beforeVertex lastVertex\n // o---------->o..................o------------->O\n // | . |\n // | +----O----+ |\n // | | portPos | |\n // | | | |\n // +---------+\n else {\n lastVertex.x = portPos.x;\n this.vertices.add(portPos);\n }\n break;\n case DOWN:\n // beforeVertex\n // ------o..................o------------\n // | . |\n // | . |\n // V +----O----+ V\n // o | portPos | o lastVertex\n // | |\n // +---------+\n //\n if (lastVertex.y < portPos.y - MINDIST) {\n beforeVertex.x = portPos.x;\n lastVertex.setPosition(portPos);\n }\n // ...................\n // . . .\n // . +----O----+ . beforeVertex\n // -------o | portPos | o------------\n // | | | |\n // V +---------+ V\n // o o\n // lastVertex\n //\n else {\n lastVertex.y = portPos.y - MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, lastVertex.y));\n this.vertices.add(portPos);\n }\n break;\n case LEFT:\n // ..................................\n // . . .\n // . . .\n // o<--------o +----O----+ o<-------------O beforeVertex\n // | | portPos | lastVertex |\n // | | | |\n // +---------+\n if (lastVertex.y > portPos.y - MINDIST) {\n beforeVertex.y = portPos.y - MINDIST;\n lastVertex.x = portPos.x;\n lastVertex.y = beforeVertex.y;\n this.vertices.add(portPos);\n }\n // | |\n // | |\n // o<--------o................o<-------------O\n // . lastVertex beforeVertex\n // +----O----+\n // | portPos |\n // | |\n // +---------+\n else {\n lastVertex.x = portPos.x;\n this.vertices.add(portPos);\n }\n break;\n }\n break;\n case RIGHT:\n switch (lastSegmentDir) {\n case UP:\n // o lastVertex\n // |\n // |\n // ------------------o beforeVertex\n // .\n // +----------+ .\n // | | .\n // | portPos O.......\n // | | .\n // +----------+ .\n // o lastVertex\n // |\n // |\n // -----------------o beforeVertex\n //\n if (lastVertex.x > portPos.x + MINDIST) {\n lastVertex.y = portPos.y;\n this.vertices.add(portPos);\n }\n // lastVertex\n // o...............\n // | .\n // | .\n // ----o beforeVertex .\n // .\n // +----------+ .\n // | | .\n // | portPos O........\n // | | .\n // +----------+ .\n // o...............\n // | lastVertex\n // |\n //------o\n // beforeVertex\n //\n //\n else {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x + MINDIST, lastVertex.y));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x + MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n case RIGHT:\n // beforeVertex lastVertex\n // o-------------->o\n // .\n // +----------+ .\n // | | .\n // | portPos O.......\n // | | .\n // +----------+ .\n // .\n // o-------------->o\n // beforeVertex lastVertex\n //\n if (lastVertex.x > portPos.x + MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n // beforeVertex lastVertex\n // o------------>o.........\n // .\n // +----------+ .\n // | | .\n // | portPos O.......\n // | | .\n // +----------+ .\n // .\n // o----------->o..........\n // beforeVertex lastVertex\n //\n else {\n lastVertex.x = portPos.x + MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n case DOWN:\n // ----------------o beforeVertex\n // |\n // |\n // o lastVertex\n // .\n // +----------+ .\n // | | .\n // | portPos O.......\n // | | .\n // +----------+ .\n // .\n // --------------o beforeVertex\n // |\n // |\n // o lastVertex\n //\n if (lastVertex.x > portPos.x + MINDIST) {\n lastVertex.y = portPos.y;\n this.vertices.add(portPos);\n }\n // -----o beforeVertex\n // |\n // | lastVertex\n // o...........\n // .\n // +----------+ .\n // | | .\n // | portPos O.......\n // | | .\n // +----------+ .\n // .\n // ----o beforeVertex .\n // | .\n // | lastVertex .\n // o...............\n //\n else {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x + MINDIST, lastVertex.y));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x + MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n case LEFT:\n // lastVertex beforeVertex\n // o<--------------o\n // .\n // +----------+ .\n // | | .\n // | portPos O..\n // | | .\n // +----------+ .\n // .\n // o<--------------o\n // lastVertex beforeVertex\n //\n if (lastVertex.x > portPos.x + MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n // lastVertex beforeVertex\n // o<-----------------------o\n // .\n // +----------+ .\n // | | .\n // | portPos O....\n // | | .\n // +----------+ .\n // .\n // o<----------------------o\n // lastVertex beforeVertex\n //\n else {\n lastVertex.x = portPos.x + MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n }\n break;\n case DOWN:\n switch (lastSegmentDir) {\n case UP:\n // o o lastVertex\n // | |\n // | |\n // | +---------+ |\n // ------o | | o------------\n // . | portPos | . beforeVertex\n // . +----O----+ .\n // . . .\n // ....................\n //\n if (lastVertex.y < portPos.y + MINDIST) {\n lastVertex.y = portPos.y + MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, lastVertex.y));\n this.vertices.add(portPos);\n }\n // +---------+\n // | |\n // | portPos |\n // +----O----+\n // .\n // o.................o lastVertex\n // | |\n // | |\n // -------o o------------\n // beforeVertex\n //\n else {\n lastVertex.x = portPos.x;\n lastVertex.y = portPos.y;\n beforeVertex.x = portPos.x;\n }\n break;\n case RIGHT:\n // +---------+\n // | |\n // | portPos |\n // o------->o +----O----+ o--------------->O\n // | . . | beforeVertex . lastVertex\n // | .....................|.................\n // |\n //\n //\n if (lastVertex.y < portPos.y + MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y + MINDIST));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, portPos.y + MINDIST));\n this.vertices.add(portPos);\n }\n // +---------+\n // | |\n // | portPos |\n // +----O----+\n // .\n // ...................................\n // . beforeVertex . lastVertex\n // o---------->o o------------->O\n // | |\n // | |\n //\n else {\n lastVertex.x = portPos.x;\n this.vertices.add(portPos);\n }\n break;\n case DOWN:\n // beforeVertex\n // ------o o------------\n // | |\n // | |\n // V +---------+ V\n // o | | o lastVertex\n // . | portPos | .\n // . +----O----+ .\n // . . .\n // ....................\n //\n if (lastVertex.y < portPos.y + MINDIST) {\n lastVertex.y = portPos.y + MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, lastVertex.y));\n this.vertices.add(portPos);\n }\n //\n // +---------+ beforeVertex\n // -------o | portPos | o------------\n // | | | |\n // V +----O----+ V\n // o . o\n // .................. lastVertex\n //\n else {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, lastVertex.y));\n this.vertices.add(portPos);\n }\n break;\n case LEFT:\n //\n // o<--------o +---------+ o<-------------O beforeVertex\n // . | | | . lastVertex |\n // . | | portPos | . |\n // . +----O----+ .\n // . . .\n // ..............................\n //\n if (lastVertex.y < portPos.y - MINDIST) {\n beforeVertex.y = portPos.y - MINDIST;\n lastVertex.x = portPos.x;\n lastVertex.y = beforeVertex.y;\n this.vertices.add(portPos);\n }\n //\n // +---------+\n // | | | |\n // | | portPos | |\n // | +----O----+ |\n // | . |\n // o<--------o...................o<---------o\n //\n else {\n lastVertex.x = portPos.x;\n this.vertices.add(portPos);\n }\n break;\n }\n break;\n case LEFT:\n switch (lastSegmentDir) {\n case UP:\n // ................o lastVertex\n // . |\n // . |\n // --.---------------o beforeVertex\n // .\n // . +----------+\n // . | |\n // ....o portPos |\n // . | |\n // . +----------+\n // .\n // ................o lastVertex\n // |\n // |\n // -----------------o beforeVertex\n //\n if (lastVertex.x >= portPos.x - MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, lastVertex.y));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n //\n // +----------+\n // | |\n // ......o portPos |\n // . | |\n // . +----------+\n // o\n // | lastVertex\n // |\n //------o\n // beforeVertex\n //\n //\n else if (lastVertex.y > portPos.y && lastVertex.x < portPos.x - MINDIST) {\n lastVertex.y = portPos.y;\n this.vertices.add(portPos);\n }\n // lastVertex\n // o..\n // | .\n // | .\n // ----o . beforeVertex\n // .\n // . +----------+\n // . | |\n // ....o portPos |\n // | |\n // +----------+\n //\n else {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, lastVertex.y));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n case RIGHT:\n // beforeVertex lastVertex\n // o-------------->o\n // .\n // ....................\n // .\n // . +----------+\n // . | |\n // .......o portPos |\n // | |\n // +----------+\n //\n if (lastVertex.y < portPos.y && lastVertex.x > portPos.x - MINDIST) {\n var center = portPos.y - (portPos.y - lastVertex.y) / 2;\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, center));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, center));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n // +----------+\n // | |\n // .......o portPos |\n // . | |\n // . +----------+\n // .\n // ....................\n // .\n // o-------------->o\n // beforeVertex lastVertex\n //\n else if (lastVertex.y > portPos.y && lastVertex.x > portPos.x - MINDIST) {\n var center = portPos.y + (lastVertex.y - portPos.y) / 2;\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, center));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, center));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n // beforeVertex lastVertex\n // o------------>o\n // .\n // . +----------+\n // . | |\n // ....o portPos |\n // . | |\n // . +----------+\n // .\n // o----------->o\n // beforeVertex lastVertex\n //\n else {\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n case DOWN:\n // -----------o beforeVertex\n // |\n // |\n // V\n // ................o lastVertex\n // .\n // . +----------+\n // . | |\n // ........o portPos |\n // . | |\n // . +----------+\n // .\n // . --------o beforeVertex\n // . |\n // . |\n // . V\n // .................o lastVertex\n //\n if (lastVertex.x >= portPos.x - MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, lastVertex.y));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n // -----o beforeVertex\n // |\n // |\n // o lastVertex\n // .\n // . +----------+\n // . | |\n // ........o portPos |\n // . | |\n // . +----------+\n // beforeVertex.\n // ------------o\n // |\n // |\n // lastVertex o\n //\n else {\n lastVertex.y = portPos.y;\n this.vertices.add(portPos);\n }\n break;\n case LEFT:\n // lastVertex beforeVertex\n // o<--------------o\n // .\n // . +----------+\n // . | |\n // ....... o portPos |\n // . | |\n // . +----------+\n // .\n // o<--------------o\n // lastVertex beforeVertex\n //\n if (lastVertex.x < portPos.x - MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n // lastVertex beforeVertex\n // .......o<-----------------------o\n // .\n // . +----------+\n // . | |\n // .....o portPos |\n // . | |\n // . +----------+\n // .\n // ........o<----------------------o\n // lastVertex beforeVertex\n //\n else {\n lastVertex.x = portPos.x - MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n }\n break;\n }\n\n if (this.vertices.getSize() > 3) {\n connection._routingMetaData.routedByUserInteraction = true;\n connection.setVertices(this.vertices);\n }\n this.vertices.clear();\n }\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseMove: function onMouseMove(canvas, x, y, shiftKey, ctrlKey) {\n if (this.beeline !== null) {\n this.beeline.setEndPosition(this.orthogonal(this.vertices.last(), { x: x, y: y }));\n }\n },\n\n /**\r\n * @method\r\n * Callback if the user press a key down\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {Number} keyCode the pressed key\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onKeyDown: function onKeyDown(canvas, keyCode, shiftKey, ctrlKey) {\n var KEYCODE_ENTER = 13;\n var KEYCODE_ESC = 27;\n if (keyCode === KEYCODE_ESC && this.beeline !== null) {\n this.beeline.hide();\n this.tempConnection.hide();\n this.beeline = null;\n this.port1 = null;\n this.vertices.clear();\n if (this.pulse != null) {\n this.pulse.remove();\n this.pulse = null;\n }\n }\n },\n\n orthogonal: function orthogonal(anchor, p) {\n // calculate vertical line distance\n //\n var xDiff = Math.abs(anchor.x - p.x) + 10;\n var xDist = _packages2.default.geo.Line.distance(anchor.x - xDiff, anchor.y, anchor.x + xDiff, anchor.y, p.x, p.y);\n\n // calculate horizontal line distance\n //\n var yDiff = Math.abs(anchor.y - p.y) + 10;\n var yDist = _packages2.default.geo.Line.distance(anchor.x, anchor.y - yDiff, anchor.x, anchor.y + yDiff, p.x, p.y);\n\n return yDist > xDist ? { x: p.x, y: anchor.y } : { x: anchor.x, y: p.y };\n },\n\n createConnection: function createConnection() {\n var connection = this._super();\n connection.attr({ radius: 7, stroke: 3 });\n connection.setRouter(new _packages2.default.layout.connection.InteractiveManhattanConnectionRouter());\n return connection;\n }\n\n});\n/**\r\n * @class draw2d.policy.connection.OrthogonalConnectionCreatePolicy\r\n *\r\n * The OrthogonalConnectionCreatePolicy can be installed into the canvas to override the\r\n * default connection crate behaviour. Normaly you can create connections by drag&drop a port.\r\n *\r\n * With this policy you can route the connection during creation.\r\n *\r\n * Creates a connection by clicking on a port.\r\n * <ul>\r\n * <li> click on the first port</li>\r\n * <li> click within the canvas to add additional vertices</li>\r\n * <li> click on the target port to draw the connection</li>\r\n * <li> press ESC to abort the operation (didn't work within this JSDoc)</li>\r\n * </ul>\r\n * <br>\r\n * <br>\r\n * <b>The generated connection has always perpendicular segments.</b>\r\n * <br>\r\n * <br>\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // Override the default connection creation.\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.OrthogonalConnectionCreatePolicy());\r\n *\r\n * // create and add two Node which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start({x:50, y:50});\r\n * var endNode = new draw2d.shape.node.End({x:200, y:70});\r\n *\r\n * // add the two nodes to the canvas\r\n * //\r\n * canvas.add( start);\r\n * canvas.add( endNode);\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.connection.ConnectionCreatePolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/AntSelectionFeedbackPolicy.js\":\n/*!*********************************************************!*\\\n !*** ./src/policy/figure/AntSelectionFeedbackPolicy.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.AntSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.AntSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the framework of the Policy should show a resize handle for the given shape\r\n *\r\n * @param {draw2d.Canvas} canvas the responsible canvas\r\n * @param {draw2d.Figure} figure the figure to decorate with a selection feedback\r\n * @param {Boolean} [isPrimarySelection]\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n if (figure.selectionHandles.isEmpty()) {\n var box = new _packages2.default.shape.basic.Rectangle({ bgColor: null, dasharray: \"- \", color: \"#2C70FF\" });\n box.hide = function () {\n // IMPORTANT\n // don't add/remove this rectangle to the canvas resizeHandles. This rect isn't responsible for any hitTest or\n // dragDrop operation\n //canvas.resizeHandles.remove(box);\n box.setCanvas(null);\n };\n box.show = function (canvas) {\n box.setCanvas(canvas);\n // IMPORTANT\n // don't add/remove this rectangle to the canvas resizeHandles. This rect isn't responsible for any hitTest or\n // dragDrop operation\n //canvas.resizeHandles.remove(box);\n //canvas.resizeHandles.add(box);\n box.shape.toFront();\n };\n box.show(canvas);\n figure.selectionHandles.add(box);\n\n // add a bee line to the parent if a parent is given and if the bounding box\n // of the parent and the figure didn't have intersections\n if (figure.getParent() !== null) {\n var line = new _packages2.default.shape.basic.Line({ opacity: 0.5, bgColor: null, dasharray: \"- \", color: \"#2C70FF\" });\n //line.setStartPosition(figure.getBoundingBox().getCenter());\n //line.setEndPosition(figure.getParent().getBoundingBox().getCenter());\n line.show = function (canvas) {\n return line.setCanvas(canvas);\n };\n line.hide = function () {\n return line.setCanvas(null);\n };\n line.show(canvas);\n figure.selectionHandles.add(line);\n this._updateBeeLine(line, figure);\n }\n }\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved\r\n *\r\n * @param figure\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n\n var margin = 2;\n var box = figure.selectionHandles.first();\n box.setPosition(figure.getAbsolutePosition().translate(-margin, -margin));\n box.setDimension(figure.getWidth() + margin * 2, figure.getHeight() + margin * 2);\n box.setRotationAngle(figure.getRotationAngle());\n\n if (figure.selectionHandles.getSize() > 1) {\n this._updateBeeLine(figure.selectionHandles.get(1), figure);\n }\n },\n\n /**\r\n *\r\n * @param {draw2d.shape.basic.Line} line\r\n * @param {draw2d.Figure} figure\r\n * @private\r\n */\n _updateBeeLine: function _updateBeeLine(line, figure) {\n var parent = figure.getParent();\n\n if (parent === null) {\n return;\n }\n\n if (parent instanceof _packages2.default.shape.basic.Line) {\n var center = figure.getBoundingBox().getCenter();\n var projection = parent.pointProjection(center);\n if (projection === null) {\n var p1 = line.getStartPosition();\n var p2 = line.getEndPosition();\n var d1 = center.distance(p1);\n var d2 = center.distance(p1);\n projection = d1 < d2 ? p1 : p2;\n }\n var intersection = figure.getBoundingBox().intersectionWithLine(center, projection);\n if (intersection.getSize() > 0) {\n line.setStartPosition(figure.getBoundingBox().intersectionWithLine(center, projection).get(0)).setEndPosition(projection);\n } else {\n line.setStartPosition(figure.getBoundingBox().getCenter()).setEndPosition(projection);\n }\n } else {\n var rect1 = figure.getBoundingBox(),\n rect2 = parent.getBoundingBox();\n\n var center1 = rect1.getCenter();\n var center2 = rect2.getCenter();\n // the rectangle overlaps -> return the center of booth\n if (rect1.intersects(rect2)) {\n line.setStartPosition(center1).setEndPosition(center2);\n }\n // one rect is inside the other rect\n //\n else if (rect1.hitTest(center2) || rect2.hitTest(center1)) {\n line.setStartPosition(center1).setEndPosition(center2);\n } else {\n rect1.scale(3, 3);\n rect2.scale(3, 3);\n\n line.setStartPosition(rect1.intersectionWithLine(center1, center2).get(0)).setEndPosition(rect2.intersectionWithLine(center1, center2).get(0));\n }\n }\n }\n}); /**\r\n * @class draw2d.policy.figure.AntSelectionFeedbackPolicy\r\n *\r\n * Provide support for selecting and positioning a non-resizable figure.\r\n * Selection is indicated via rectangular handle that outlines the figure with a 1-pixel black\r\n * dotted line.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle({diameter:50, x:90, y:50});\r\n * circle.installEditPolicy(new draw2d.policy.figure.AntSelectionFeedbackPolicy());\r\n * canvas.add(circle);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"Click on the circle to see the selection feedback\"}),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/BigRectangleSelectionFeedbackPolicy.js\":\n/*!******************************************************************!*\\\n !*** ./src/policy/figure/BigRectangleSelectionFeedbackPolicy.js ***!\n \\******************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.BigRectangleSelectionFeedbackPolicy = _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.BigRectangleSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n createResizeHandle: function createResizeHandle(owner, type) {\n return new _packages2.default.ResizeHandle({ owner: owner, type: type, width: 15, height: 15 });\n }\n\n}); /**\r\n * @class draw2d.policy.figure.BigRectangleSelectionFeedbackPolicy\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle();\r\n * circle.installEditPolicy(new draw2d.policy.figure.BigRectangleSelectionFeedbackPolicy());\r\n * canvas.add(circle,90,50);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"Click on the circle to see the selection feedback\"}),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/BusSelectionFeedbackPolicy.js\":\n/*!*********************************************************!*\\\n !*** ./src/policy/figure/BusSelectionFeedbackPolicy.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.BusSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.BusSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the framework of the Policy should show a resize handle for the given shape\r\n *\r\n * @param {Boolean} isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n if (figure.selectionHandles.isEmpty()) {\n var r2 = _packages2.default.Configuration.factory.createResizeHandle(figure, 2); // 2 = CENTER_TOP\n var r4 = _packages2.default.Configuration.factory.createResizeHandle(figure, 4); // 4 = RIGHT_MIDDLE\n var r6 = _packages2.default.Configuration.factory.createResizeHandle(figure, 6); // 6 = CENTER_BOTTOM\n var r8 = _packages2.default.Configuration.factory.createResizeHandle(figure, 8); // 8 = LEFT_MIDDLE\n\n figure.selectionHandles.add(r2, r4, r6, r8);\n\n r2.setDraggable(figure.isResizeable());\n r4.setDraggable(figure.isResizeable());\n r6.setDraggable(figure.isResizeable());\n r8.setDraggable(figure.isResizeable());\n\n r2.show(canvas);\n r4.show(canvas);\n r6.show(canvas);\n r8.show(canvas);\n }\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved\r\n *\r\n * @param figure\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n var r2 = figure.selectionHandles.find(function (handle) {\n return handle.type === 2;\n });\n var r4 = figure.selectionHandles.find(function (handle) {\n return handle.type === 4;\n });\n var r6 = figure.selectionHandles.find(function (handle) {\n return handle.type === 6;\n });\n var r8 = figure.selectionHandles.find(function (handle) {\n return handle.type === 8;\n });\n\n var objHeight = figure.getHeight();\n var objWidth = figure.getWidth();\n\n var xPos = figure.getX();\n var yPos = figure.getY();\n r2.setPosition(xPos + objWidth / 2 - r2.getWidth() / 2, yPos - r2.getHeight());\n r4.setPosition(xPos + objWidth, yPos + objHeight / 2 - r4.getHeight() / 2);\n r6.setPosition(xPos + objWidth / 2 - r6.getWidth() / 2, yPos + objHeight);\n r8.setPosition(xPos - r8.getWidth(), yPos + objHeight / 2 - r8.getHeight() / 2);\n }\n\n}); /**\r\n * @class draw2d.policy.figure.BusSelectionFeedbackPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/DragDropEditPolicy.js\":\n/*!*************************************************!*\\\n !*** ./src/policy/figure/DragDropEditPolicy.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.DragDropEditPolicy = _packages2.default.policy.figure.FigureEditPolicy.extend({\n\n NAME: \"draw2d.policy.figure.DragDropEditPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init(attr, setter, getter) {\n var _this = this;\n\n this._super(attr, setter, getter);\n this.moveCallback = function (emitter, event) {\n _this.moved(emitter.getCanvas(), emitter);\n };\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been installed.\r\n *\r\n * @param {draw2d.Canvas|draw2d.Figure} host\r\n */\n onInstall: function onInstall(host) {\n this._super(host);\n host.on(\"move\", this.moveCallback);\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been uninstalled.\r\n *\r\n * @param {draw2d.Canvas|draw2d.Figure} host\r\n */\n onUninstall: function onUninstall(host) {\n this._super(host);\n host.off(this.moveCallback);\n },\n\n /**\r\n * @method\r\n * Called by the framework if the related shape has init a drag&drop\r\n * operation\r\n *\r\n * The Policy can send a veto to prevent the DragDrop operation\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} return <b>false</b> to send a veto to the drag operation\r\n */\n onDragStart: function onDragStart(canvas, figure, x, y, shiftKey, ctrlKey) {\n figure.shape.attr({ cursor: \"move\" });\n\n // this happens if you drag&drop the shape outside of the screen and\n // release the mouse button outside the window. We restore the alpha\n // with the next drag&drop operation\n if (figure.isMoving === true) {\n figure.setAlpha(figure.originalAlpha);\n }\n\n figure.originalAlpha = figure.getAlpha();\n figure.isMoving = false;\n\n // return value since 6.1.0\n return true;\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag a figure.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @template\r\n */\n onDrag: function onDrag(canvas, figure) {\n // enable the alpha blending of the first real move of the object\n //\n if (figure.isMoving === false) {\n figure.isMoving = true;\n figure.setAlpha(figure.originalAlpha * 0.4);\n }\n },\n\n /**\r\n * @method\r\n * Called by the framework if the drag drop operation ends.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onDragEnd: function onDragEnd(canvas, figure, x, y, shiftKey, ctrlKey) {\n figure.shape.attr({ cursor: \"default\" });\n figure.isMoving = false;\n figure.setAlpha(figure.originalAlpha);\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the rectangle/region of this constraint.\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {Number} [y]\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n *\r\n * @template\r\n */\n adjustPosition: function adjustPosition(figure, x, y) {\n // do nothing per default implementation\n if (x instanceof _packages2.default.geo.Point) {\n return x;\n }\n\n return new _packages2.default.geo.Point(x, y);\n },\n\n /**\r\n * @method\r\n * ensure that the dimension didn't goes outside the given restrictions\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {Number} w\r\n * @param {number} h\r\n * @returns {draw2d.geo.Rectangle} the constraint position of the figure\r\n */\n adjustDimension: function adjustDimension(figure, w, h) {\n return new _packages2.default.geo.Rectangle(0, 0, w, h);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has moved\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {}\n}); /**\r\n * @class draw2d.policy.figure.DragDropEditPolicy\r\n *\r\n * Called by the framework if the user edit the position of a figure with a drag drop operation.\r\n * Sub class like SelectionEditPolicy or RegionEditPolicy can adjust the position of the figure or the selections handles.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.FigureEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/FigureEditPolicy.js\":\n/*!***********************************************!*\\\n !*** ./src/policy/figure/FigureEditPolicy.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.FigureEditPolicy = _packages2.default.policy.EditPolicy.extend({\n\n NAME: \"draw2d.policy.figure.FigureEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called if the user press the right mouse on the figure.<br>\r\n * You can either override the \"onContextMenu\" method of the figure or install an editor policy and override this method.\r\n * Booth is valid and possible.\r\n *\r\n * @param {draw2d.Figure|draw2d.shape.basic.Line} figure the figure below the mouse\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n * @since 4.4.0\r\n */\n onRightMouseDown: function onRightMouseDown(figure, x, y, shiftKey, ctrlKey) {}\n}); /**\r\n * @class draw2d.policy.figure.FigureEditPolicy\r\n *\r\n * Called by the framework if the user edit the position of a figure with a drag drop operation.\r\n * Sub class like SelectionEditPolicy or RegionEditPolicy can adjust the position of the figure\r\n * or the selections handles.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.EditPolicy\r\n * @since 4.4.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/GlowSelectionFeedbackPolicy.js\":\n/*!**********************************************************!*\\\n !*** ./src/policy/figure/GlowSelectionFeedbackPolicy.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.GlowSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.GlowSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the framework of the Policy should show a resize handle for the given shape\r\n *\r\n * @param {Boolean} isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n figure.setGlow(true);\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the unselected figure\r\n */\n onUnselect: function onUnselect(canvas, figure) {\n this._super(canvas, figure);\n figure.setGlow(false);\n }\n\n}); /**\r\n * @class draw2d.policy.figure.GlowSelectionFeedbackPolicy\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle();\r\n * circle.installEditPolicy(new draw2d.policy.figure.GlowSelectionFeedbackPolicy());\r\n * canvas.add(circle,90,50);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label(\"Click on the circle to see the selection feedback\"),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/HBusSelectionFeedbackPolicy.js\":\n/*!**********************************************************!*\\\n !*** ./src/policy/figure/HBusSelectionFeedbackPolicy.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.HBusSelectionFeedbackPolicy = _packages2.default.policy.figure.BusSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.HBusSelectionFeedbackPolicy\",\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved\r\n *\r\n * @param figure\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n var r4 = figure.selectionHandles.find(function (handle) {\n return handle.type === 4;\n });\n var r8 = figure.selectionHandles.find(function (handle) {\n return handle.type === 8;\n });\n\n r4.setDimension(r4.getWidth(), figure.getHeight());\n r8.setDimension(r4.getWidth(), figure.getHeight());\n\n this._super(canvas, figure);\n }\n\n});\n/**\r\n * @class draw2d.policy.figure.HBusSelectionFeedbackPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.BusSelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/HorizontalEditPolicy.js\":\n/*!***************************************************!*\\\n !*** ./src/policy/figure/HorizontalEditPolicy.js ***!\n \\***************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.HorizontalEditPolicy = _packages2.default.policy.figure.DragDropEditPolicy.extend({\n\n NAME: \"draw2d.policy.figure.HorizontalEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new constraint object\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * It is only possible to drag&drop the element in a horizontal line\r\n *\r\n * @param figure\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {number} [y]\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n adjustPosition: function adjustPosition(figure, x, y) {\n return new _packages2.default.geo.Point(x, figure.getY());\n }\n\n}); /**\r\n * @class draw2d.policy.figure.HorizontalEditPolicy\r\n *\r\n * An EditPolicy for use with Figures. With this edit policy you can move the shape only in a horizontal manner.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // add some demo figure to the canvas\r\n * var circle =new draw2d.shape.basic.Circle({diameter:50, x:10, y:30});\r\n * canvas.add(circle);\r\n *\r\n * // add the edit policy to the shape. At this point you can move the shape only\r\n * // horizontal\r\n * circle.installEditPolicy(new draw2d.policy.figure.HorizontalEditPolicy());\r\n *\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/RectangleSelectionFeedbackPolicy.js\":\n/*!***************************************************************!*\\\n !*** ./src/policy/figure/RectangleSelectionFeedbackPolicy.js ***!\n \\***************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.RectangleSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.RectangleSelectionFeedbackPolicy\",\n /**\r\n * @constructor\r\n * Creates a selection feedback for a shape.\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @inheritdoc\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n if (figure.selectionHandles.isEmpty()) {\n // Add a dotted line rectangle to the figure. Override the show/hide method of the standard\n // figure to avoid adding these element to the hit test of the canvas. In this case the element\n // is just visible but not part of the model or responsible for any drag/drop operation\n // #2C70FF #2096fc\n var box = new _packages2.default.shape.basic.Rectangle({ bgColor: null, dashArray: \"- \", color: \"#2C70FF\", stroke: 0.5 });\n box.hide = function () {\n // IMPORTANT\n // don't add/remove this rectangle to the canvas resizeHandles. This rect isn't responsible for any hitTest or\n // dragDrop operation\n //canvas.resizeHandles.remove(box);\n box.setCanvas(null);\n };\n box.show = function (canvas) {\n box.setCanvas(canvas);\n // IMPORTANT\n // don't add/remove this rectangle to the canvas resizeHandles. This rect isn't responsible for any hitTest or\n // dragDrop operation\n //canvas.resizeHandles.remove(box);\n //canvas.resizeHandles.add(box);\n box.toFront(figure);\n };\n\n // create standard Resize handles for the figure\n //\n var r1 = this.createResizeHandle(figure, 1); // 1 = LEFT TOP\n var r3 = this.createResizeHandle(figure, 3); // 3 = RIGHT_TOP\n var r5 = this.createResizeHandle(figure, 5); // 5 = RIGHT_BOTTOM\n var r7 = this.createResizeHandle(figure, 7); // 7 = LEFT_BOTTOM\n figure.selectionHandles.add(r1, r3, r5, r7);\n r1.show(canvas);\n r3.show(canvas);\n r5.show(canvas);\n r7.show(canvas);\n\n // change the look&feel of the corner resizehandles if the\n // figure isn't resizeable\n //\n if (figure.isResizeable() === false) {\n var attr = { bgColor: null, draggable: false };\n r1.attr(attr);\n r3.attr(attr);\n r5.attr(attr);\n r7.attr(attr);\n r1.setDraggable(false);\n r3.setDraggable(false);\n r5.setDraggable(false);\n r7.setDraggable(false);\n }\n\n // show only the additional resizehandles if the figure is resizeable and didn't care about\n // the aspect ration\n //\n if (!figure.getKeepAspectRatio() && figure.isResizeable()) {\n var r2 = this.createResizeHandle(figure, 2); // 2 = CENTER_TOP\n var r4 = this.createResizeHandle(figure, 4); // 4 = RIGHT_MIDDLE\n var r6 = this.createResizeHandle(figure, 6); // 6 = CENTER_BOTTOM\n var r8 = this.createResizeHandle(figure, 8); // 8 = LEFT_MIDDLE\n figure.selectionHandles.add(r2, r4, r6, r8);\n r2.show(canvas);\n r4.show(canvas);\n r6.show(canvas);\n r8.show(canvas);\n }\n\n // add the reference of the \"ant box\" to the figure as well. But wee add them\n // to the end of the array because inherit classes expect the resizehandles\n // on index 0-7.\n //\n figure.selectionHandles.add(box);\n\n // call the box.show() at last to ensure that the resize handles are above the\n // rectangle. The rectangle did a toFront(parentShape);\n box.show(canvas);\n }\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved. In this case we must update the position of the\r\n * resize handles and the \"ant\" box.\r\n *\r\n * @param figure\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {\n\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n\n var margin = 3 * canvas.getZoom();\n var objHeight = figure.getHeight();\n var objWidth = figure.getWidth();\n var xPos = figure.getAbsoluteX();\n var yPos = figure.getAbsoluteY();\n\n var r1 = figure.selectionHandles.find(function (handle) {\n return handle.type === 1;\n });\n var r3 = figure.selectionHandles.find(function (handle) {\n return handle.type === 3;\n });\n var r5 = figure.selectionHandles.find(function (handle) {\n return handle.type === 5;\n });\n var r7 = figure.selectionHandles.find(function (handle) {\n return handle.type === 7;\n });\n\n r1.setPosition(xPos - r1.getWidth(), yPos - r1.getHeight());\n r3.setPosition(xPos + objWidth, yPos - r3.getHeight());\n r5.setPosition(xPos + objWidth, yPos + objHeight);\n r7.setPosition(xPos - r7.getWidth(), yPos + objHeight);\n\n if (!figure.getKeepAspectRatio() && figure.isResizeable()) {\n var r2 = figure.selectionHandles.find(function (handle) {\n return handle.type === 2;\n });\n var r4 = figure.selectionHandles.find(function (handle) {\n return handle.type === 4;\n });\n var r6 = figure.selectionHandles.find(function (handle) {\n return handle.type === 6;\n });\n var r8 = figure.selectionHandles.find(function (handle) {\n return handle.type === 8;\n });\n\n r2.setPosition(xPos + objWidth / 2 - r2.getWidth() / 2, yPos - r2.getHeight());\n r4.setPosition(xPos + objWidth, yPos + objHeight / 2 - r4.getHeight() / 2);\n r6.setPosition(xPos + objWidth / 2 - r6.getWidth() / 2, yPos + objHeight);\n r8.setPosition(xPos - r8.getWidth(), yPos + objHeight / 2 - r8.getHeight() / 2);\n }\n var box = figure.selectionHandles.last();\n box.attr({\n x: xPos - margin,\n y: yPos - margin,\n width: objWidth + margin * 2,\n height: objHeight + margin * 2,\n stroke: canvas.getZoom()\n });\n\n box.setRotationAngle(figure.getRotationAngle());\n },\n\n createResizeHandle: function createResizeHandle(owner, type) {\n return new _packages2.default.ResizeHandle({ owner: owner, type: type, width: 10, height: 10 });\n }\n}); /**\r\n * @class draw2d.policy.figure.RectangleSelectionFeedbackPolicy\r\n *\r\n * A SelectionFeedbackPolicy with resize handles (rectangles) on each side and corner of the shape\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle({diameter:50});\r\n * circle.installEditPolicy(new draw2d.policy.RectangleSelectionFeedbackPolicy());\r\n * canvas.add(circle,90,50);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"Click on the circle to see the selection feedback\"}),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/RegionEditPolicy.js\":\n/*!***********************************************!*\\\n !*** ./src/policy/figure/RegionEditPolicy.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.RegionEditPolicy = _packages2.default.policy.figure.DragDropEditPolicy.extend({\n\n NAME: \"draw2d.policy.figure.RegionEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new constraint object\r\n *\r\n * @param {Number|draw2d.geo.Rectangle} x x coordinate or a rectangle as constraint for the assigned figure.\r\n * @param {Number} y\r\n * @param {Number} w\r\n * @param {Number} h\r\n */\n init: function init(x, y, w, h) {\n this._super();\n if (x instanceof _packages2.default.geo.Rectangle) {\n this.constRect = x;\n } else if (typeof h === \"number\") {\n this.constRect = new _packages2.default.geo.Rectangle(x, y, w, h);\n } else {\n throw \"Invalid parameter. RegionEditPolicy need a rectangle as parameter in the constructor\";\n }\n },\n\n /**\r\n * @method\r\n * Update the constraint bounding box for the policy.\r\n *\r\n * @param {draw2d.geo.Rectangle} boundingBox the constraint rectangle\r\n * @since 4.8.2\r\n */\n setBoundingBox: function setBoundingBox(boundingBox) {\n this.constRect = boundingBox;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the rectangle/region of this constraint.\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {Number} [y]\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n adjustPosition: function adjustPosition(figure, x, y) {\n var r = null;\n if (x instanceof _packages2.default.geo.Point) {\n r = new _packages2.default.geo.Rectangle(x.x, x.y, figure.getWidth(), figure.getHeight());\n } else {\n r = new _packages2.default.geo.Rectangle(x, y, figure.getWidth(), figure.getHeight());\n }\n r = this.constRect.moveInside(r);\n return r.getTopLeft();\n },\n\n /**\r\n * @method\r\n * Adjust the dimension of the rectangle to fit into the region of the policy\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {Number} w\r\n * @param {Number} h\r\n *\r\n * @private\r\n */\n adjustDimension: function adjustDimension(figure, w, h) {\n var diffW = figure.getAbsoluteX() + w - this.constRect.getRight();\n var diffH = figure.getAbsoluteY() + h - this.constRect.getBottom();\n\n if (diffW > 0) {\n w = w - diffW;\n }\n if (diffH > 0) {\n h = h - diffH;\n }\n\n return { w: w, h: h };\n }\n}); /**\r\n * @class draw2d.policy.figure.RegionConstraintPolicy\r\n *\r\n * An EditPolicy for use with Figures. The constraint for RegionEditPolicy is a Rectangle. It is\r\n * not possible to move the related figure outside this constrained area.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/ResizeSelectionFeedbackPolicy.js\":\n/*!************************************************************!*\\\n !*** ./src/policy/figure/ResizeSelectionFeedbackPolicy.js ***!\n \\************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.ResizeSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.ResizeSelectionFeedbackPolicy\",\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the framework of the Policy should show a resize handle for the given shape\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the selected figure\r\n * @param {Boolean} [isPrimarySelection]\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n\n if (figure.selectionHandles.isEmpty()) {\n // create standard Resize handles for the figure\n //\n var r1 = _packages2.default.Configuration.factory.createResizeHandle(figure, 1); // 1 = LEFT TOP\n var r3 = _packages2.default.Configuration.factory.createResizeHandle(figure, 3); // 3 = RIGHT_TOP\n var r5 = _packages2.default.Configuration.factory.createResizeHandle(figure, 5); // 5 = RIGHT_BOTTOM\n var r7 = _packages2.default.Configuration.factory.createResizeHandle(figure, 7); // 7 = LEFT_BOTTOM\n figure.selectionHandles.add(r1, r3, r5, r7);\n r1.show(canvas);\n r3.show(canvas);\n r5.show(canvas);\n r7.show(canvas);\n\n // The corner ResizeHandles are only draggable fi the figure is\n // resizeable. But the Resize handles are visible\n //\n\n // change the look&feel of the corner resizehandles if the\n // figure isn't resizeable\n //\n if (figure.isResizeable() === false) {\n r1.setBackgroundColor(null);\n r3.setBackgroundColor(null);\n r5.setBackgroundColor(null);\n r7.setBackgroundColor(null);\n r1.setDraggable(false);\n r3.setDraggable(false);\n r5.setDraggable(false);\n r7.setDraggable(false);\n }\n\n // show only the additional resizehandles if the figure is resizeable\n //\n if (!figure.getKeepAspectRatio() && figure.isResizeable()) {\n var r2 = _packages2.default.Configuration.factory.createResizeHandle(figure, 2); // 2 = CENTER_TOP\n var r4 = _packages2.default.Configuration.factory.createResizeHandle(figure, 4); // 4 = RIGHT_MIDDLE\n var r6 = _packages2.default.Configuration.factory.createResizeHandle(figure, 6); // 6 = CENTER_BOTTOM\n var r8 = _packages2.default.Configuration.factory.createResizeHandle(figure, 8); // 8 = LEFT_MIDDLE\n figure.selectionHandles.add(r2, r4, r6, r8);\n r2.show(canvas);\n r4.show(canvas);\n r6.show(canvas);\n r8.show(canvas);\n }\n }\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved. In this case we must update the position of the\r\n * resize handles.\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the moved figure\r\n *\r\n */\n moved: function moved(canvas, figure) {\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n\n var objHeight = figure.getHeight();\n var objWidth = figure.getWidth();\n var xPos = figure.getX();\n var yPos = figure.getY();\n\n var r1 = figure.selectionHandles.find(function (handle) {\n return handle.type === 1;\n });\n var r3 = figure.selectionHandles.find(function (handle) {\n return handle.type === 3;\n });\n var r5 = figure.selectionHandles.find(function (handle) {\n return handle.type === 5;\n });\n var r7 = figure.selectionHandles.find(function (handle) {\n return handle.type === 7;\n });\n r1.setPosition(xPos - r1.getWidth(), yPos - r1.getHeight());\n r3.setPosition(xPos + objWidth, yPos - r3.getHeight());\n r5.setPosition(xPos + objWidth, yPos + objHeight);\n r7.setPosition(xPos - r7.getWidth(), yPos + objHeight);\n\n if (!figure.getKeepAspectRatio()) {\n var r2 = figure.selectionHandles.find(function (handle) {\n return handle.type === 2;\n });\n var r4 = figure.selectionHandles.find(function (handle) {\n return handle.type === 4;\n });\n var r6 = figure.selectionHandles.find(function (handle) {\n return handle.type === 6;\n });\n var r8 = figure.selectionHandles.find(function (handle) {\n return handle.type === 8;\n });\n\n r2.setPosition(xPos + objWidth / 2 - r2.getWidth() / 2, yPos - r2.getHeight());\n r4.setPosition(xPos + objWidth, yPos + objHeight / 2 - r4.getHeight() / 2);\n r6.setPosition(xPos + objWidth / 2 - r6.getWidth() / 2, yPos + objHeight);\n r8.setPosition(xPos - r8.getWidth(), yPos + objHeight / 2 - r8.getHeight() / 2);\n }\n }\n\n}); /**\r\n * @class draw2d.policy.figure.ResizeSelectionFeedbackPolicy\r\n *\r\n * Selection feedback policy without \"marching ant lines\" or any other rectangle highlight. Just\r\n * some resize handles at each corner of the shape.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle();\r\n * circle.installEditPolicy(new draw2d.policy.ResizeSelectionFeedbackPolicy());\r\n * canvas.add(circle,90,50);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"Click on the circle to see the selection feedback\"}),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @since 4.0.0\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n *\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/RoundRectangleSelectionFeedbackPolicy.js\":\n/*!********************************************************************!*\\\n !*** ./src/policy/figure/RoundRectangleSelectionFeedbackPolicy.js ***!\n \\********************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.RoundRectangleSelectionFeedbackPolicy = _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.RoundRectangleSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n createResizeHandle: function createResizeHandle(owner, type) {\n return new _packages2.default.ResizeHandle({ owner: owner, type: type, width: 12, height: 12, radius: 4 });\n }\n}); /**\r\n * @class draw2d.policy.figure.RoundRectangleSelectionFeedbackPolicy\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle();\r\n * circle.installEditPolicy(new draw2d.policy.RoundRectangleSelectionFeedbackPolicy());\r\n * canvas.add(circle,90,50);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"Click on the circle to see the selection feedback\"}),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.RectangleSelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/SelectionFeedbackPolicy.js\":\n/*!******************************************************!*\\\n !*** ./src/policy/figure/SelectionFeedbackPolicy.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.SelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionPolicy.extend({\n\n NAME: \"draw2d.policy.figure.SelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the unselected figure\r\n */\n onUnselect: function onUnselect(canvas, figure) {\n this._super(canvas, figure);\n\n figure.selectionHandles.each(function (i, e) {\n return e.hide();\n });\n figure.selectionHandles = new _packages2.default.util.ArrayList();\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been installed.\r\n *\r\n * @param {draw2d.Figure} figure\r\n */\n onInstall: function onInstall(figure) {\n this._super(figure);\n\n var canvas = figure.getCanvas();\n if (canvas !== null) {\n if (canvas.getSelection().contains(figure)) {\n this.onSelect(canvas, figure, true);\n }\n }\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been uninstalled.\r\n *\r\n * @param {draw2d.Figure} figure\r\n */\n onUninstall: function onUninstall(figure) {\n this._super(figure);\n\n figure.selectionHandles.each(function (i, e) {\n return e.hide();\n });\n figure.selectionHandles = new _packages2.default.util.ArrayList();\n }\n\n}); /**\r\n * @class draw2d.policy.figure.SelectionFeedbackPolicy\r\n *\r\n * A {@link draw2d.policy.SelectionFeedbackPolicy} that is sensitive to the canvas selection. Subclasses will typically\r\n * decorate the {@link draw2d.Figure figure} with things like selection handles and/or focus feedback.\r\n * <br>\r\n * If you want to change the handle visibility for a figure, then you should use SelectionFeedbackPolicy to do that.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/SelectionPolicy.js\":\n/*!**********************************************!*\\\n !*** ./src/policy/figure/SelectionPolicy.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.SelectionPolicy = _packages2.default.policy.figure.DragDropEditPolicy.extend({\n\n NAME: \"draw2d.policy.figure.SelectionPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n *\r\n * @template\r\n * @param figure\r\n * @param isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {},\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the unselected figure\r\n */\n onUnselect: function onUnselect(canvas, figure) {}\n\n}); /**\r\n * @class draw2d.policy.figure.SelectionFeedbackPolicy\r\n *\r\n * A {@link draw2d.policy.SelectionFeedbackPolicy} that is sensitive to the canvas selection. Subclasses will typically\r\n * decorate the {@link draw2d.Figure figure} with things like selection handles and/or focus feedback.\r\n * <br>\r\n * If you want to change the handle visibility for a figure, then you should use SelectionFeedbackPolicy to do that.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/SlimSelectionFeedbackPolicy.js\":\n/*!**********************************************************!*\\\n !*** ./src/policy/figure/SlimSelectionFeedbackPolicy.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.SlimSelectionFeedbackPolicy = _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.SlimSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n createResizeHandle: function createResizeHandle(owner, type) {\n return new _packages2.default.ResizeHandle({ owner: owner, type: type, width: 6, height: 6, radius: 0 });\n }\n}); /**\r\n * @class draw2d.policy.figure.SlimSelectionFeedbackPolicy\r\n * Add only very small resize handles to the figure.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle();\r\n * circle.installEditPolicy(new draw2d.policy.SlimSelectionFeedbackPolicy());\r\n * canvas.add(circle,90,50);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"Click on the circle to see the selection feedback\"}),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.RectangleSelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/VBusSelectionFeedbackPolicy.js\":\n/*!**********************************************************!*\\\n !*** ./src/policy/figure/VBusSelectionFeedbackPolicy.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.VBusSelectionFeedbackPolicy = _packages2.default.policy.figure.BusSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.VBusSelectionFeedbackPolicy\",\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n *\r\n **/\n moved: function moved(canvas, figure) {\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n\n var r2 = figure.selectionHandles.find(function (handle) {\n return handle.type === 2;\n });\n var r6 = figure.selectionHandles.find(function (handle) {\n return handle.type === 6;\n });\n\n var objWidth = figure.getWidth();\n // adjust the resize handles on the left/right to the new dimension of the shape\n //\n r2.setDimension(objWidth, r2.getHeight());\n r6.setDimension(objWidth, r6.getHeight());\n\n this._super(canvas, figure);\n }\n\n});\n/**\r\n * @class draw2d.policy.figure.VBusSelectionFeedbackPolicy\r\n *\r\n * Selection feedback policy for vertical bus figures.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.BusSelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/VertexSelectionFeedbackPolicy.js\":\n/*!************************************************************!*\\\n !*** ./src/policy/figure/VertexSelectionFeedbackPolicy.js ***!\n \\************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.VertexSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.VertexSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Connection} connection the selected figure\r\n * @param {Boolean} isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, connection, isPrimarySelection) {\n // \tthis._super(canvas, connection, isPrimarySelection);\n\n var points = connection.getVertices();\n for (var i = 0; i < points.getSize(); i++) {\n var handle = new _packages2.default.shape.basic.VertexResizeHandle(connection, i);\n connection.selectionHandles.add(handle);\n handle.setDraggable(connection.isResizeable());\n handle.show(canvas);\n\n if (i !== 0) {\n var _handle = new _packages2.default.shape.basic.GhostVertexResizeHandle(connection, i - 1);\n connection.selectionHandles.add(_handle);\n _handle.setDraggable(connection.isResizeable());\n _handle.show(canvas);\n }\n }\n\n this.moved(canvas, connection);\n },\n\n /**\r\n * @method\r\n * Callback method if the figure has been moved.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n */\n moved: function moved(canvas, figure) {\n figure.selectionHandles.each(function (i, e) {\n return e.relocate();\n });\n }\n\n}); /**\r\n * @class draw2d.policy.figure.VertexSelectionFeedbackPolicy\r\n *\r\n * Called by the framework if the user edit the position of a figure with a drag drop operation.\r\n * Sub class like SelectionEditPolicy or RegionEditPolicy cam adjust th e position of the figure or the selections handles.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/VerticalEditPolicy.js\":\n/*!*************************************************!*\\\n !*** ./src/policy/figure/VerticalEditPolicy.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.VerticalEditPolicy = _packages2.default.policy.figure.DragDropEditPolicy.extend({\n\n NAME: \"draw2d.policy.figure.VerticalEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new constraint object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * It is only possible to drag&drop the element in a vertical line\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {number} [y]\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n adjustPosition: function adjustPosition(figure, x, y) {\n return new _packages2.default.geo.Point(figure.getX(), y);\n }\n\n});\n/**\r\n * @class draw2d.policy.figure.VerticalEditPolicy\r\n *\r\n * An EditPolicy for use with Figures. With this edit policy you can move the shape only in a vertical manner.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // add some demo figure to the canvas\r\n * var circle =new draw2d.shape.basic.Circle({diameter:50, x:10, y:30});\r\n * canvas.add(circle);\r\n *\r\n * // add the edit policy to the shape. At this point you can move the shape only\r\n * // horizontal\r\n * circle.installEditPolicy(new draw2d.policy.figure.VerticalEditPolicy());\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/WidthSelectionFeedbackPolicy.js\":\n/*!***********************************************************!*\\\n !*** ./src/policy/figure/WidthSelectionFeedbackPolicy.js ***!\n \\***********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.WidthSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.BusSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the framework of the Policy should show a resize handle for the given shape\r\n *\r\n * @param {draw2d.Canvas} canvas the host of the diagram\r\n * @param {draw2d.Figure} figure the figure to select\r\n * @param {Boolean} isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n if (figure.selectionHandles.isEmpty()) {\n var r4 = new _packages2.default.ResizeHandle({ owner: figure, type: 4 }); // 4 = RIGHT_MIDDLE\n var r8 = new _packages2.default.ResizeHandle({ owner: figure, type: 8 }); // 8 = LEFT_MIDDLE\n\n r4.installEditPolicy(new _packages2.default.policy.figure.HorizontalEditPolicy());\n r8.installEditPolicy(new _packages2.default.policy.figure.HorizontalEditPolicy());\n figure.selectionHandles.add(r4, r8);\n\n r4.setDraggable(figure.isResizeable());\n r8.setDraggable(figure.isResizeable());\n\n r4.show(canvas);\n r8.show(canvas);\n }\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n var r4 = figure.selectionHandles.find(function (handle) {\n return handle.type === 4;\n });\n var r8 = figure.selectionHandles.find(function (handle) {\n return handle.type === 8;\n });\n\n var objWidth = figure.getWidth();\n\n var xPos = figure.getX();\n var yPos = figure.getY();\n r4.setDimension(r4.getWidth(), figure.getHeight());\n r8.setDimension(r8.getWidth(), figure.getHeight());\n r4.setPosition(xPos + objWidth, yPos);\n r8.setPosition(xPos - r8.getWidth(), yPos);\n }\n}); /**\r\n * @class draw2d.policy.figure.WidthSelectionFeedbackPolicy\r\n * This selection shows only selection handles for the width. It is only possible to change the width\r\n * of an shaped. The height stays always the same or is recalculated by the figure itself.\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // add some demo figure to the canvas\r\n * //\r\n * let shape =new draw2d.shape.basic.Rectangle({width:50, height:100, x:10, y:30});\r\n * canvas.add(shape);\r\n *\r\n * // At this point you can only change the width of the shape\r\n * //\r\n * shape.installEditPolicy(new draw2d.policy.figure.WidthSelectionFeedbackPolicy());\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/line/LineSelectionFeedbackPolicy.js\":\n/*!********************************************************!*\\\n !*** ./src/policy/line/LineSelectionFeedbackPolicy.js ***!\n \\********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.line.LineSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.line.LineSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new selection feedback policy for a line or connection\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the framework of the Policy should show a resize handle for the given shape\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {Boolean} [isPrimarySelection]\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n if (figure.selectionHandles.isEmpty()) {\n figure.selectionHandles.add(new _packages2.default.shape.basic.LineStartResizeHandle(figure));\n figure.selectionHandles.add(new _packages2.default.shape.basic.LineEndResizeHandle(figure));\n\n figure.selectionHandles.each(function (i, e) {\n e.setDraggable(figure.isResizeable());\n e.show(canvas);\n });\n }\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Callback method if the figure has been moved.\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {\n figure.selectionHandles.each(function (i, e) {\n return e.relocate();\n });\n }\n\n}); /**\r\n * @class draw2d.policy.line.LineSelectionFeedbackPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/line/OrthogonalSelectionFeedbackPolicy.js\":\n/*!**************************************************************!*\\\n !*** ./src/policy/line/OrthogonalSelectionFeedbackPolicy.js ***!\n \\**************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _jquery = __webpack_require__(/*! lib/jquery.contextmenu */ \"./src/lib/jquery.contextmenu.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _contextmenu = __webpack_require__(/*! css/contextmenu.css */ \"./src/css/contextmenu.css\");\n\nvar _contextmenu2 = _interopRequireDefault(_contextmenu);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// do not delete them\n_packages2.default.policy.line.OrthogonalSelectionFeedbackPolicy = _packages2.default.policy.line.LineSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.line.OrthogonalSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n // The ResizeHandle for the Policy. This is inline to avoid that a user want to use them without\n // the right installed policy.\n //\n this.ResizeHandle = _packages2.default.ResizeHandle.extend({\n NAME: \"draw2d.policy.line.OrthogonalSelectionFeedbackPolicy.ResizeHandle\",\n\n init: function init(owner, index) {\n this._super({ owner: owner });\n this.index = index;\n },\n\n /**\r\n * @method\r\n * Called if a drag&drop operation starts.<br>\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @private\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n this._super(x, y, shiftKey, ctrlKey);\n this.command = this.getCanvas().getPrimarySelection().createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE_VERTICES));\n\n // Vertex is a reference and not a copy of the point\n this.vertex = this.owner.getVertex(this.index).clone();\n },\n\n /**\r\n * @method\r\n * Called from the framework during a drag&drop operation of the ResizeHandles\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n *\r\n * @return {Boolean}\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n if (this.command == null) {\n return false;\n }\n\n var MINDIST = this.owner.getRouter().MINDIST || 10;\n\n var fromDir = this.owner.getSource().getConnectionDirection(this.owner.getTarget());\n var toDir = this.owner.getTarget().getConnectionDirection(this.owner.getSource());\n\n this.vertex.translate(dx2, dy2);\n\n var vertices = this.owner.getVertices();\n var count = vertices.getSize();\n //shortcut for math operations\n var max = Math.max;\n var min = Math.min;\n\n // Keep in mind: \"p1\" is always the dragged handle in the coding below\n // marked with an '*' in the diagram\n //\n\n // FIRST handle of the connection\n //\n if (this.index === 1) {\n var p0 = vertices.get(this.index - 1); // first vertex of the connection\n var p1 = vertices.get(this.index); // dragged vertex\n var p2 = vertices.get(this.index + 1); // additional neighbor\n\n // vertex alignment to handle:\n //\n // p0 +-----* p1 p1 *------+ p0\n // | |\n // | |\n // + p2 p2 +\n if (p1.x === p2.x && p0.y === p1.y) {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n // p0 is on the left of p1\n //\n this.owner.setVertex(1, max(p0.x + MINDIST, this.vertex.x), p1.y); // p1\n this.owner.setVertex(2, max(p0.x + MINDIST, this.vertex.x), p2.y); // p2\n break;\n // p0 is on the right of p2\n //\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n this.owner.setVertex(1, min(p0.x - MINDIST, this.vertex.x), p1.y); // p1\n this.owner.setVertex(2, min(p0.x - MINDIST, this.vertex.x), p2.y); // p2\n break;\n }\n }\n\n // vertices alignment to handle:\n //\n // p0 + p1 *--------+ p2\n // | |\n // | |\n // p1 *-----+ p2 p0 +\n else {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n // p0 is below of p1\n //\n this.owner.setVertex(1, p1.x, min(p0.y - MINDIST, this.vertex.y)); // p1\n this.owner.setVertex(2, p2.x, min(p0.y - MINDIST, this.vertex.y)); // p2\n break;\n // p0 is above of p2\n //\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n this.owner.setVertex(1, p1.x, max(p0.y + MINDIST, this.vertex.y)); // p1\n this.owner.setVertex(2, p2.x, max(p0.y + MINDIST, this.vertex.y)); // p2\n break;\n }\n }\n }\n\n // LAST handle: Only the left hand side sibling can be changed\n //\n else if (this.index === count - 2) {\n var _p = vertices.get(this.index - 1); // neighbor of the dragged vertex\n var _p2 = vertices.get(this.index); // dragged vertex\n var _p3 = vertices.get(this.index + 1); // last vertex of the connection\n\n // vertices with this alignment.\n //\n // p2 +-----* p1 + p0\n // | |\n // | |\n // + p0 p2 +--------* p1\n if (_p3.x === _p2.x && _p.y === _p2.y) {\n switch (toDir) {\n // p0 is below of p1\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n this.owner.setVertex(count - 2, _p2.x, min(_p3.y - MINDIST, this.vertex.y)); // p1\n this.owner.setVertex(count - 3, _p.x, min(_p3.y - MINDIST, this.vertex.y)); // p2\n break;\n // p0 is above p2\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n this.owner.setVertex(count - 2, _p2.x, max(_p3.y + MINDIST, this.vertex.y)); // p1\n this.owner.setVertex(count - 3, _p.x, max(_p3.y + MINDIST, this.vertex.y)); // p2\n break;\n }\n }\n\n // vertices with this alignment.\n //\n // p2 + p0 +--------* p1\n // | |\n // | |\n // p1 *-----+ p0 p2 +\n else {\n switch (toDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n // p0 is on the left of p1\n //\n this.owner.setVertex(count - 2, max(_p3.x + MINDIST, this.vertex.x), _p2.y); // p1\n this.owner.setVertex(count - 3, max(_p3.x + MINDIST, this.vertex.x), _p.y); // p2\n break;\n // p0 is on the right of p2\n //\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n this.owner.setVertex(count - 2, min(_p3.x - MINDIST, this.vertex.x), _p2.y); // p1\n this.owner.setVertex(count - 3, min(_p3.x - MINDIST, this.vertex.x), _p.y); // p2\n break;\n }\n }\n }\n // The resize handle is in the middle of the connection.\n // -> In this case the connection MUST HAVE at least 5 vertices\n //\n else {\n var p_m1 = vertices.get(this.index - 2);\n var _p4 = vertices.get(this.index - 1);\n var _p5 = vertices.get(this.index); // selected DragHandle\n var _p6 = vertices.get(this.index + 1);\n var p3 = vertices.get(this.index + 2);\n\n // vertices alignment to handle\n //\n // . .\n // . .\n // p1 *------->+ p0 p0 +<---------* p1\n // | . . |\n // | . . |\n // p2 | | p2\n // ...+... ......+.....\n //\n if (_p5.x === _p6.x && _p5.y === _p4.y) {\n // Exception handling if the dragged handle (p1) is near by the start of the connection\n // p_m1 is the start of the connection\n // p0 must be the immediate neighbor of p_m1\n //\n if (this.index - 2 === 0) {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n this.owner.setVertex(this.index - 1, _p4.x, max(this.vertex.y, p_m1.y - MINDIST)); // p0\n this.owner.setVertex(this.index, this.vertex.x, max(this.vertex.y, p_m1.y - MINDIST)); // p1\n this.owner.setVertex(this.index + 1, this.vertex.x, _p6.y); // p2\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n this.owner.setVertex(this.index - 1, _p4.x, min(this.vertex.y, p_m1.y + MINDIST)); // p0\n this.owner.setVertex(this.index, this.vertex.x, this.vertex.y); // p1\n this.owner.setVertex(this.index + 1, this.vertex.x, _p6.y); // p2\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n this.owner.setVertex(this.index - 1, _p4.x, min(this.vertex.y, p_m1.y - MINDIST)); // p0\n this.owner.setVertex(this.index, this.vertex.x, min(this.vertex.y, p_m1.y - MINDIST)); // p1\n this.owner.setVertex(this.index + 1, this.vertex.x, _p6.y); // p2\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n this.owner.setVertex(this.index - 1, _p4.x, max(this.vertex.y, p_m1.y + MINDIST)); // p0\n this.owner.setVertex(this.index, this.vertex.x, max(this.vertex.y, p_m1.y + MINDIST)); // p1\n this.owner.setVertex(this.index + 1, this.vertex.x, _p6.y); // p2\n break;\n }\n }\n // Exception handling if the dragged handle (p1L) near by the end of the connection\n // p3 is the end of the connection\n //\n else if (this.index - count + 3 === 0) {\n switch (toDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n this.owner.setVertex(this.index - 1, _p4.x, this.vertex.y); // p0\n this.owner.setVertex(this.index, max(this.vertex.x, p3.x + MINDIST), this.vertex.y); // p1\n this.owner.setVertex(this.index + 1, max(this.vertex.x, p3.x + MINDIST), _p6.y); // p2\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n this.owner.setVertex(this.index - 1, _p4.x, this.vertex.y); // p0\n this.owner.setVertex(this.index, min(this.vertex.x, p3.x - MINDIST), this.vertex.y); // p1\n this.owner.setVertex(this.index + 1, min(this.vertex.x, p3.x - MINDIST), _p6.y); // p2\n break;\n }\n } else {\n this.owner.setVertex(this.index - 1, _p4.x, this.vertex.y); // p0\n this.owner.setVertex(this.index, this.vertex); // p1\n this.owner.setVertex(this.index + 1, this.vertex.x, _p6.y); // p2\n }\n }\n // vertices alignment to handle\n //\n // ...+... ...+...\n // p0 | . | p0\n // | . . |\n // | . . |\n // p1 *----------+ p2 p2 +---------* p1\n // . .\n // . .\n else if (_p4.x === _p5.x && _p5.y === _p6.y) {\n // p_m1 is the start of the analyzed segment\n // p0 must be the immediate neighbor of p_m1\n //\n if (this.index - 2 === 0) {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n this.owner.setVertex(this.index - 1, max(this.vertex.x, p_m1.x + MINDIST), _p4.y); // p0\n this.owner.setVertex(this.index, max(this.vertex.x, p_m1.x + MINDIST), this.vertex.y); // p1\n this.owner.setVertex(this.index + 1, _p6.x, this.vertex.y); // p2\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n this.owner.setVertex(this.index - 1, min(this.vertex.x, p_m1.x - MINDIST), _p4.y); // p0\n this.owner.setVertex(this.index, min(this.vertex.x, p_m1.x - MINDIST), this.vertex.y); // p1\n this.owner.setVertex(this.index + 1, _p6.x, this.vertex.y); // p2\n break;\n }\n }\n // p3 is the end point\n //\n else if (this.index - count + 3 === 0) {\n switch (toDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n this.owner.setVertex(this.index - 1, this.vertex.x, max(this.vertex.y, _p4.y)); // p0\n this.owner.setVertex(this.index, this.vertex.x, min(this.vertex.y, p3.y - MINDIST)); // p1\n this.owner.setVertex(this.index + 1, _p6.x, min(this.vertex.y, p3.y - MINDIST)); // p2\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n this.owner.setVertex(this.index - 1, this.vertex.x, _p4.y); // p0\n this.owner.setVertex(this.index, this.vertex.x, max(this.vertex.y, p3.y + MINDIST)); // p1\n this.owner.setVertex(this.index + 1, _p6.x, max(this.vertex.y, p3.y + MINDIST)); // p2\n break;\n }\n }\n // just any element in the middle of the connection\n //\n else {\n this.owner.setVertex(this.index - 1, this.vertex.x, _p4.y); // p0\n this.owner.setVertex(this.index, this.vertex); // p1\n this.owner.setVertex(this.index + 1, _p6.x, this.vertex.y); // p2\n }\n }\n }\n\n this.relocate();\n\n // update the command for the undo/redo stuff\n //\n if (this.command !== null) {\n this.command.updateVertices(this.owner.getVertices().clone());\n }\n\n // note that the user has changed the routing manually.\n // This skips the automatic routing.\n this.owner._routingMetaData.routedByUserInteraction = true;\n return true;\n },\n\n /**\r\n * @method Called after a drag and drop action.<br>\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call the super implementation via <code>this._super();</code>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean}\r\n */\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n var stack = this.getCanvas().getCommandStack();\n\n stack.execute(this.command);\n this.command = null;\n return true;\n },\n\n /**\r\n * @method\r\n * Controls the location of the resize handle\r\n *\r\n * @template\r\n **/\n relocate: function relocate() {\n\n var resizeWidthHalf = this.getWidth() / 2;\n var resizeHeightHalf = this.getHeight() / 2;\n\n var anchor = this.owner.getVertices().get(this.index);\n if (anchor) this.setPosition(anchor.x - resizeWidthHalf, anchor.y - resizeHeightHalf);\n }\n\n });\n },\n\n /**\r\n * @method\r\n *\r\n * @template\r\n * @param {draw2d.Connection} connection the selected figure\r\n * @param {Boolean} isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, connection, isPrimarySelection) {\n this._super(canvas, connection, isPrimarySelection);\n\n var points = connection.getVertices();\n var i = 1;\n for (; i < points.getSize() - 1; i++) {\n var handle = new this.ResizeHandle(connection, i);\n connection.selectionHandles.add(handle);\n handle.setDraggable(connection.isResizeable());\n handle.show(canvas);\n }\n\n this.moved(canvas, connection);\n },\n\n /**\r\n * @method\r\n * remove the segment with the given index.\r\n * You must check if it possible to remove the segment before. The method didn'T do any consistency checks.\r\n *\r\n * @param conn\r\n * @param segmentIndex\r\n */\n removeSegment: function removeSegment(conn, segmentIndex) {\n var PADDING = 10;\n\n var segmentCount = conn.getVertices().getSize() - 1;\n\n var fromPt = conn.getStartPoint();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPoint();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n var p0 = conn.getVertex(segmentIndex - 1);\n var p1 = conn.getVertex(segmentIndex);\n var p2 = conn.getVertex(segmentIndex + 1);\n var p3 = conn.getVertex(segmentIndex + 2);\n\n // p0 .\n // Es wird ein Horizontales Segment .\n // geloescht. Es muessen somit die Punkte .\n // p0 und p3 neu gesetzt werden. p1 +------*-----+ p2\n // Ihre neue X-Koordinate ist somit in der ^ .\n // Mitte des geloeschten Segmentes newX .\n // . p3\n //\n if (p1.y === p2.y) {\n var _newX = (p1.x + p2.x) / 2;\n // Die neue X-Koordinate muss auf jeden Falls zwischen p-1 und p4 liegen\n //\n if (segmentIndex === 1) {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n _newX = Math.max(_newX, fromPt.x + PADDING);\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n _newX = Math.min(_newX, fromPt.x - PADDING);\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n _newX = fromPt.x;\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n _newX = fromPt.x;\n break;\n }\n }\n\n if (segmentIndex === segmentCount - 2) {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n _newX = Math.max(_newX, toPt.x + PADDING);\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n _newX = Math.min(_newX, toPt.x - PADDING);\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n _newX = toPt.x;\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n _newX = toPt.x;\n break;\n }\n }\n\n conn.setVertex(segmentIndex - 1, new _packages2.default.geo.Point(_newX, p0.y));\n conn.setVertex(segmentIndex + 2, new _packages2.default.geo.Point(_newX, p3.y));\n\n conn.removeVertexAt(segmentIndex);\n conn.removeVertexAt(segmentIndex);\n conn._routingMetaData.routedByUserInteraction = true;\n }\n\n // p2 p3\n // Es wird ein vertikales Segment +..........+\n // geloescht. Es muessen somit die Punkte |\n // p0 und p3 neu gesetzt werden. |\n // Ihre neue Y-Koordinate ist somit in der |\n // Mitte des geloeschten Segmentes p0 | p1\n // +........+\n //\n else if (p1.x === p2.x) {\n var newY = (p1.y + p2.y) / 2;\n // Die neue Y-Koordinate muss auf jeden Falls zwischen p-1 und p4 liegen\n //\n if (segmentIndex === 1) {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n newY = fromPt.y;\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n debugger; // newX is newer read....why did I calculate them?!\n newX = fromPt.x;\n break;\n }\n }\n if (segmentIndex === segmentCount - 2) {\n switch (toDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n newY = toPt.y;\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n debugger; // newX is newer read....why did I calculate them?!\n newX = toPt.x;\n break;\n }\n }\n\n conn.setVertex(segmentIndex - 1, new _packages2.default.geo.Point(p0.x, newY));\n conn.setVertex(segmentIndex + 2, new _packages2.default.geo.Point(p3.x, newY));\n\n conn.removeVertexAt(segmentIndex);\n conn.removeVertexAt(segmentIndex);\n conn._routingMetaData.routedByUserInteraction = true;\n }\n },\n\n /**\r\n * @method\r\n * split the segment with the given index and insert a new segment.\r\n *\r\n * @param conn\r\n * @param segmentIndex\r\n */\n splitSegment: function splitSegment(conn, segmentIndex, x, y) {\n var segmentCount = conn.getVertices().getSize() - 1;\n var p1 = conn.getVertex(segmentIndex);\n var p2 = conn.getVertex(segmentIndex + 1);\n var length = 40;\n\n // the selected segment is vertical\n //\n if (p1.x === p2.x) {\n conn._routingMetaData.routedByUserInteraction = true;\n // edge case of an ManhattanRouter: One segment. This happens if the source/target on the same x - coordinate\n //\n if (segmentCount === 1) {\n // + p1\n // |\n // np1 +-----+ np2\n // |\n // |\n // np3 +-----+ np3\n // |\n // |\n // + p2\n //\n var newSegLength = p1.getDistance(p2) / 4 / 2;\n var np1 = new _packages2.default.geo.Point(p1.x, y - newSegLength);\n var np2 = new _packages2.default.geo.Point(p2.x + length, y - newSegLength);\n var np3 = new _packages2.default.geo.Point(p2.x + length, y + newSegLength);\n var np4 = new _packages2.default.geo.Point(p2.x, y + newSegLength);\n\n conn.insertVertexAt(segmentIndex + 1, np1);\n conn.insertVertexAt(segmentIndex + 2, np2);\n conn.insertVertexAt(segmentIndex + 3, np3);\n conn.insertVertexAt(segmentIndex + 4, np4);\n } else {\n var _np = new _packages2.default.geo.Point(0, 0);\n var _np2 = new _packages2.default.geo.Point(0, 0);\n // p2 +\n // .\n // np1 +----+ np2\n // .\n // .\n // + p1\n // p1 ist der Startpunkt und darf somit nicht verschoben werden\n //\n if (segmentIndex === 0) {\n _np.y = y;\n _np.x = p1.x;\n _np2.y = y;\n _np2.x = p2.x + length;\n conn.setVertex(segmentIndex + 1, new _packages2.default.geo.Point(_np2.x, p2.y));\n }\n // p2 ist der Schlusspunkt und darf somit nicht veaendert werden\n //\n else if (segmentIndex === segmentCount - 1) {\n _np.y = y;\n _np.x = p1.x - length;\n _np2.y = y;\n _np2.x = p2.x;\n conn.setVertex(segmentIndex, new _packages2.default.geo.Point(_np.x, p1.y));\n } else {\n _np.y = y;\n _np.x = p1.x - length / 2;\n _np2.y = y;\n _np2.x = p2.x + length / 2;\n conn.setVertex(segmentIndex, new _packages2.default.geo.Point(_np.x, p1.y));\n conn.setVertex(segmentIndex + 1, new _packages2.default.geo.Point(_np2.x, p2.y));\n }\n\n conn.insertVertexAt(segmentIndex + 1, _np);\n conn.insertVertexAt(segmentIndex + 2, _np2);\n }\n }\n // the selected segment is horizontal\n //\n else if (p1.y == p2.y) {\n conn._routingMetaData.routedByUserInteraction = true;\n // edge case of an ManhattanRouter: One segment. This happens if the source/target on the same y - coordinate\n //\n if (segmentCount === 1) {\n // np2 +---------+ np3\n // | |\n // --------+np1 np4+--------\n //\n var _newSegLength = p1.getDistance(p2) / 4 / 2;\n var _np3 = new _packages2.default.geo.Point(x - _newSegLength, p1.y);\n var _np4 = new _packages2.default.geo.Point(x - _newSegLength, p1.y - length);\n var _np5 = new _packages2.default.geo.Point(x + _newSegLength, p1.y - length);\n var _np6 = new _packages2.default.geo.Point(x + _newSegLength, p1.y);\n\n conn.insertVertexAt(segmentIndex + 1, _np3);\n conn.insertVertexAt(segmentIndex + 2, _np4);\n conn.insertVertexAt(segmentIndex + 3, _np5);\n conn.insertVertexAt(segmentIndex + 4, _np6);\n } else {\n // p1 np1\n // +.........+\n // |\n // |\n // | np2 p2\n // +.........+\n var _np7 = new _packages2.default.geo.Point(0, 0);\n var _np8 = new _packages2.default.geo.Point(0, 0);\n\n // p1 ist der Startpunkt und darf somit nicht verschoben werden\n //\n if (segmentIndex === 0) {\n _np7.x = x;\n _np7.y = p1.y;\n _np8.x = x;\n _np8.y = p2.y + length;\n conn.setVertex(segmentIndex + 1, new _packages2.default.geo.Point(p2.x, _np8.y));\n }\n // p2 ist der Schlusspunkt und darf somit nicht veaendert werden\n //\n else if (segmentIndex === segmentCount - 1) {\n _np7.x = x;\n _np7.y = p1.y - length;\n _np8.x = x;\n _np8.y = p2.y;\n conn.setVertex(segmentIndex, new _packages2.default.geo.Point(p1.x, _np7.y));\n } else {\n _np7.x = x;\n _np7.y = p1.y - length / 2;\n _np8.x = x;\n _np8.y = p2.y + length / 2;\n conn.setVertex(segmentIndex, new _packages2.default.geo.Point(p1.x, _np7.y));\n conn.setVertex(segmentIndex + 1, new _packages2.default.geo.Point(p2.x, _np8.y));\n }\n conn.insertVertexAt(segmentIndex + 1, _np7);\n conn.insertVertexAt(segmentIndex + 2, _np8);\n }\n }\n },\n\n /**\r\n * @method\r\n * Called if the user press the right mouse on the figure.<br>\r\n * You can either override the \"onContextMenu\" method of the figure or install an editor policy and override this method.\r\n * Booth is valid and possible.\r\n *\r\n * @param {draw2d.shape.basic.Line} conn the polyline below the mouse\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n * @since 4.4.0\r\n */\n onRightMouseDown: function onRightMouseDown(conn, x, y, shiftKey, ctrlKey) {\n var _this = this;\n\n var segment = conn.hitSegment(x, y);\n var items = { \"split\": { name: _packages2.default.Configuration.i18n.menu.addSegment } };\n\n if (segment === null) {\n return;\n }\n\n if (conn.getRouter().canRemoveSegmentAt(conn, segment.index)) {\n items.remove = { name: _packages2.default.Configuration.i18n.menu.deleteSegment };\n }\n\n $.contextMenu({\n selector: 'body',\n events: {\n hide: function hide() {\n $.contextMenu('destroy');\n }\n },\n callback: function callback(key, options) {\n switch (key) {\n case \"remove\":\n {\n // deep copy of the vertices of the connection for the command stack to avoid side effects\n var originalVertices = conn.getVertices().clone(true);\n _this.removeSegment(conn, segment.index);\n var newVertices = conn.getVertices().clone(true);\n conn.getCanvas().getCommandStack().execute(new _packages2.default.command.CommandReplaceVertices(conn, originalVertices, newVertices));\n }\n break;\n case \"split\":\n {\n // deep copy of the vertices of the connection for the command stack to avoid side effects\n var _originalVertices = conn.getVertices().clone(true);\n _this.splitSegment(conn, segment.index, x, y);\n var _newVertices = conn.getVertices().clone(true);\n conn.getCanvas().getCommandStack().execute(new _packages2.default.command.CommandReplaceVertices(conn, _originalVertices, _newVertices));\n }\n break;\n default:\n break;\n }\n },\n x: x,\n y: y,\n items: items\n });\n }\n}); /**\r\n * @class draw2d.policy.line.OrthogonalSelectionFeedbackPolicy\r\n *\r\n * Feedback and edit policy for the InteractiveManhattanRouter.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.line.LineSelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/line/VertexSelectionFeedbackPolicy.js\":\n/*!**********************************************************!*\\\n !*** ./src/policy/line/VertexSelectionFeedbackPolicy.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.line.VertexSelectionFeedbackPolicy = _packages2.default.policy.line.LineSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.line.VertexSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Connection} figure the selected figure\r\n * @param {Boolean} isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n var startHandle = new _packages2.default.shape.basic.LineStartResizeHandle(figure);\n var endHandle = new _packages2.default.shape.basic.LineEndResizeHandle(figure);\n figure.selectionHandles.add(startHandle);\n figure.selectionHandles.add(endHandle);\n\n var points = figure.getVertices();\n var count = points.getSize() - 1;\n var i = 1;\n for (; i < count; i++) {\n figure.selectionHandles.add(new _packages2.default.shape.basic.VertexResizeHandle(figure, i));\n figure.selectionHandles.add(new _packages2.default.shape.basic.GhostVertexResizeHandle(figure, i - 1));\n }\n\n figure.selectionHandles.add(new _packages2.default.shape.basic.GhostVertexResizeHandle(figure, i - 1));\n\n figure.selectionHandles.each(function (i, e) {\n e.setDraggable(figure.isResizeable());\n e.show(canvas);\n });\n\n this.moved(canvas, figure);\n }\n\n}); /**\r\n * @class draw2d.policy.line.VertexSelectionFeedbackPolicy\r\n *\r\n * Feedback and edit policy for the VertexRouter.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.line.LineSelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/port/ElasticStrapFeedbackPolicy.js\":\n/*!*******************************************************!*\\\n !*** ./src/policy/port/ElasticStrapFeedbackPolicy.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.port.ElasticStrapFeedbackPolicy = _packages2.default.policy.port.PortFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.port.ElasticStrapFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n this.connectionLine = null;\n },\n\n /**\r\n * @method\r\n * Called by the framework if the related shape has init a drag&drop\r\n * operation\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onDragStart: function onDragStart(canvas, figure, x, y, shiftKey, ctrlKey) {\n this.connectionLine = new _packages2.default.shape.basic.Line();\n this.connectionLine.setCanvas(canvas);\n this.connectionLine.getShapeElement();\n\n this.onDrag(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag a figure.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n */\n onDrag: function onDrag(canvas, figure) {\n var x1 = figure.ox + figure.getParent().getAbsoluteX();\n var y1 = figure.oy + figure.getParent().getAbsoluteY();\n\n this.connectionLine.setStartPosition(x1, y1);\n this.connectionLine.setEndPosition(figure.getAbsoluteX(), figure.getAbsoluteY());\n },\n\n /**\r\n * @method\r\n * Called by the framework if the drag drop operation ends.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onDragEnd: function onDragEnd(canvas, figure, x, y, shiftKey, ctrlKey) {\n this.connectionLine.setCanvas(null);\n this.connectionLine = null;\n },\n\n onHoverEnter: function onHoverEnter(canvas, draggedFigure, hoverFiger) {\n this.connectionLine.setGlow(true);\n hoverFiger.setGlow(true);\n },\n\n onHoverLeave: function onHoverLeave(canvas, draggedFigure, hoverFiger) {\n hoverFiger.setGlow(false);\n this.connectionLine.setGlow(false);\n }\n\n}); /**\r\n * @class draw2d.policy.port.ElasticStrapFeedbackPolicy\r\n *\r\n * A draw2d.policy.SelectionFeedbackPolicy that is sensitive to the canvas selection. Subclasses will typically\r\n * decorate the {@link draw2d.Figure figure} with things like selection handles and/or focus feedback.\r\n * <br>\r\n * If you want to change the handle visibility for a figure, then you should use SelectionFeedbackPolicy to do that.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/port/IntrusivePortsFeedbackPolicy.js\":\n/*!*********************************************************!*\\\n !*** ./src/policy/port/IntrusivePortsFeedbackPolicy.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _shifty = __webpack_require__(/*! shifty */ \"./node_modules/shifty/dist/shifty.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.policy.port.IntrusivePortsFeedbackPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n_packages2.default.policy.port.IntrusivePortsFeedbackPolicy = _packages2.default.policy.port.PortFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.port.IntrusivePortsFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n this.connectionLine = null;\n this.tweenable = null;\n },\n\n /**\r\n * @method\r\n * Called by the framework if the related shape has init a drag&drop\r\n * operation\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onDragStart: function onDragStart(canvas, figure, x, y, shiftKey, ctrlKey) {\n var start = 0;\n var allPorts = canvas.getAllPorts().clone();\n allPorts.each(function (i, element) {\n if (typeof element.__beforeInflate === \"undefined\") {\n element.__beforeInflate = element.getWidth();\n }\n start = element.__beforeInflate;\n });\n\n // animate the resize of the ports\n //\n allPorts.grep(function (p) {\n return p.NAME != figure.NAME && p.parent !== figure.parent || p instanceof _packages2.default.HybridPort || figure instanceof _packages2.default.HybridPort;\n });\n this.tweenable = new _shifty.Tweenable();\n this.tweenable.tween({\n from: { 'size': start / 2 },\n to: { 'size': start },\n duration: 200,\n easing: \"easeOutSine\",\n step: function step(params) {\n allPorts.each(function (i, element) {\n // IMPORTANT shortcut to avoid rendering errors!!\n // performance shortcut to avoid a lot of events and recalculate/routing of all related connections\n // for each setDimension call. Additional the connection is following a port during Drag&Drop operation\n element.shape.attr({ rx: params.size, ry: params.size });\n element.width = element.height = params.size * 2;\n });\n }\n });\n\n this.connectionLine = new _packages2.default.shape.basic.Line();\n this.connectionLine.setCanvas(canvas);\n this.connectionLine.getShapeElement();\n this.connectionLine.setDashArray(\"- \");\n this.connectionLine.setColor(\"#30c48a\");\n\n this.onDrag(canvas, figure);\n\n return true;\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag a figure.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @template\r\n */\n onDrag: function onDrag(canvas, figure) {\n var x1 = figure.ox + figure.getParent().getAbsoluteX();\n var y1 = figure.oy + figure.getParent().getAbsoluteY();\n\n this.connectionLine.setStartPosition(x1, y1);\n this.connectionLine.setEndPosition(figure.getAbsoluteX(), figure.getAbsoluteY());\n },\n\n /**\r\n * @method\r\n * Called by the framework if the drag drop operation ends.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @template\r\n */\n onDragEnd: function onDragEnd(canvas, figure, x, y, shiftKey, ctrlKey) {\n if (this.tweenable) {\n this.tweenable.stop(true);\n this.tweenable.dispose();\n this.tweenable = null;\n }\n canvas.getAllPorts().each(function (i, element) {\n // IMPORTANT shortcut to avoid rendering errors!!\n // performance shortcut to avoid a lot of events and recalculate/routing of all related connections\n // for each setDimension call. Additional the connection is following a port during Drag&Drop operation\n element.shape.attr({ rx: element.__beforeInflate / 2, ry: element.__beforeInflate / 2 });\n element.width = element.height = element.__beforeInflate;\n delete element.__beforeInflate;\n });\n this.connectionLine.setCanvas(null);\n this.connectionLine = null;\n },\n\n onHoverEnter: function onHoverEnter(canvas, draggedFigure, hoverFiger) {\n this.connectionLine.setGlow(true);\n hoverFiger.setGlow(true);\n },\n\n onHoverLeave: function onHoverLeave(canvas, draggedFigure, hoverFiger) {\n hoverFiger.setGlow(false);\n if (this.connectionLine === null) {\n debugger;\n }\n this.connectionLine.setGlow(false);\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/policy/port/PortFeedbackPolicy.js\":\n/*!***********************************************!*\\\n !*** ./src/policy/port/PortFeedbackPolicy.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.port.PortFeedbackPolicy = _packages2.default.policy.figure.DragDropEditPolicy.extend({\n\n NAME: \"draw2d.policy.port.PortFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called if the dragged port hove another port\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {draw2d.Port} draggedFigure\r\n * @param {draw2d.Figure} hoverFigure\r\n */\n onHoverEnter: function onHoverEnter(canvas, draggedFigure, hoverFigure) {},\n\n /**\r\n * @method\r\n * Fired if the dragged figures leaves the hover figure\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {draw2d.Port} draggedFigure\r\n * @param {draw2d.Figure} hoverFigure\r\n */\n onHoverLeave: function onHoverLeave(canvas, draggedFigure, hoverFigure) {}\n}); /**\r\n * @class draw2d.policy.port.PortFeedbackPolicy\r\n *\r\n * Base class for all port feedback policies. Used for grow, highlight or\r\n * other decorations during drag&drop and connecting of ports.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/analog/OpAmp.js\":\n/*!***********************************!*\\\n !*** ./src/shape/analog/OpAmp.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.analog.OpAmp = _packages2.default.SVGFigure.extend({\n\n NAME: \"draw2d.shape.analog.OpAmp\",\n\n // custom locator for the special design of the OpAmp Input area\n MyInputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, port) {\n var parent = port.getParent();\n var calcY = (8 + 18.5 * index) * parent.scaleY;\n this.applyConsiderRotation(port, 1, calcY);\n }\n }),\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ stroke: 0, bgColor: \"#f0f0ff\" }, attr), setter, getter);\n\n this.inputLocator = new this.MyInputPortLocator();\n\n this.createPort(\"input\", this.inputLocator);\n this.createPort(\"input\", this.inputLocator);\n\n this.createPort(\"output\");\n },\n\n /**\r\n * @inheritdoc\r\n */\n getSVG: function getSVG() {\n return '<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"50\" height=\"50\">' + '<path d=\"m8.2627,0l0,35.36035l31.23926,-17.76025l-31.23926,-17.60011l0,0l0,0.00001zm2.27832,27.36719l4.08105,0m-2.10449,-2.20703l0,4.27979m2.26367,-21.35938l-4.15918,0\" stroke=\"#1B1B1B\" fill=\"none\"/>' + '<line x1=\"0.53516\" y1=\"8\" x2=\"8.21191\" y2=\"8\" stroke=\"#010101\"/>' + '<line x1=\"39.14941\" y1=\"18\" x2=\"45.81055\" y2=\"18\" stroke=\"#010101\" />' + '<line x1=\"0.53516\" y1=\"27\" x2=\"8.21191\" y2=\"27\" stroke=\"#010101\" />' + '</svg>';\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n // redirect the backgroundColor to an internal SVG node.\n // In this case only a small part of the shape are filled with the background color\n // and not the complete rectangle/bounding box\n //\n attributes[\"fill\"] = \"none\";\n if (this.bgColor != null) {\n this.svgNodes[0].attr({ fill: this.bgColor.rgba() });\n }\n\n this._super(attributes);\n\n return this;\n }\n\n}); /**\r\n * @class draw2d.shape.analog.OpAmp\r\n * Hand drawn arrow which points down left\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.analog.OpAmp({x:10, y:10});\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/analog/ResistorBridge.js\":\n/*!********************************************!*\\\n !*** ./src/shape/analog/ResistorBridge.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.analog.ResistorBridge = _packages2.default.SVGFigure.extend({\n\n NAME: \"draw2d.shape.analog.ResistorBridge\",\n\n // custom locator for the special design of the ResistorBridge Input area\n MyInputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n var h = figure.getParent().getHeight();\n this.applyConsiderRotation(figure, w / 2 + 1, h * index);\n }\n }),\n\n // custom locator for the special design of the ResistorBridge Input area\n MyOutputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n var h = figure.getParent().getHeight();\n\n this.applyConsiderRotation(figure, w * (index - 2), h / 2);\n }\n }),\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n\n this.inputLocator = new this.MyInputPortLocator();\n this.outputLocator = new this.MyOutputPortLocator();\n\n this.createPort(\"hybrid\", this.inputLocator);\n this.createPort(\"hybrid\", this.inputLocator);\n\n this.createPort(\"hybrid\", this.outputLocator);\n this.createPort(\"hybrid\", this.outputLocator);\n },\n\n /**\r\n * @inheritdoc\r\n */\n getSVG: function getSVG() {\n return '<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">' + '<path fill=\"#010101\" stroke=\"#010101\" stroke-miterlimit=\"14.3\" id=\"path12322\" d=\"m47.62207,22.71094l0,0c0.73145,0.73242 0.71777,1.93359 -0.03027,2.68164c-0.74805,0.74951 -1.94922,0.76123 -2.68073,0.0293c-0.73138,-0.73242 -0.71967,-1.93211 0.03033,-2.68115c0.74707,-0.74803 1.94727,-0.76219 2.68066,-0.02979l0,0z\"/>' + '<path fill=\"#010101\" stroke=\"#010101\" stroke-miterlimit=\"14.3\" id=\"path12324\" d=\"m25.84082,0.93115l0,0c0.73145,0.73096 0.71875,1.93359 -0.02832,2.68066c-0.75,0.74951 -1.94922,0.76123 -2.68164,0.0293c-0.73242,-0.73241 -0.71973,-1.93164 0.0293,-2.68065c0.74805,-0.74756 1.94922,-0.76172 2.68066,-0.0293l0,0l0,-0.00002z\"/>' + '<path fill=\"#010101\" stroke=\"#010101\" stroke-miterlimit=\"14.3\" id=\"path12326\" d=\"m25.75098,44.58203l0,0c0.73145,0.73193 0.71875,1.93311 -0.02832,2.68115c-0.75,0.74902 -1.94922,0.76074 -2.68262,0.0293c-0.73145,-0.73193 -0.71973,-1.93262 0.03033,-2.68164c0.74707,-0.74756 1.94922,-0.76123 2.68066,-0.02879l0,0l-0.00006,-0.00002z\"/>' + '<path fill=\"#010101\" stroke=\"#010101\" stroke-miterlimit=\"14.3\" id=\"path12328\" d=\"m3.9707,22.80127l0,0c0.73242,0.73193 0.71777,1.93359 -0.0293,2.68115c-0.74902,0.74951 -1.94922,0.76172 -2.68164,0.0293c-0.73145,-0.73242 -0.71973,-1.93164 0.03027,-2.68115c0.74707,-0.74707 1.94922,-0.76074 2.68066,-0.0293l0,0z\"/>' + '<polyline fill=\"none\" stroke=\"#010101\" id=\"polyline12334\" points=\"24.908203125,45.49267578125 31.71875,38.68310546875 31.2119140625,36.98876953125 34.892578125,37.95703125 33.953125,34.22265625 37.6650390625,35.18359375 36.6767578125,31.52490234375 40.3759765625,32.47314453125 39.873046875,30.52783203125 45.884765625,24.51708984375 \" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"#010101\" id=\"polyline12338\" points=\"36.3408203125,23.98876953125 38.146484375,29.55810546875 33.630859375,29.55810546875 35.435546875,23.98779296875 \"/>' + '<line fill=\"none\" stroke=\"#010101\" id=\"line12340\" y2=\"28.90967\" x2=\"35.8877\" y1=\"41.13428\" x1=\"35.88867\" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"none\" stroke=\"#010101\" id=\"polyline12346\" points=\"3.2109375,23.79248046875 10.01953125,16.98388671875 9.513671875,15.2890625 13.193359375,16.25732421875 12.251953125,12.5234375 15.9658203125,13.48486328125 14.9775390625,9.82568359375 18.6767578125,10.7734375 18.173828125,8.82958984375 24.185546875,2.81787109375 \" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"#010101\" id=\"polyline12350\" points=\"13.126953125,23.80419921875 11.3212890625,18.236328125 15.8369140625,18.236328125 14.0322265625,23.806640625 \"/>' + '<line fill=\"none\" stroke=\"#010101\" id=\"line12352\" y2=\"18.8833\" x2=\"13.58008\" y1=\"6.65967\" x1=\"13.5791\" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"none\" stroke=\"#010101\" id=\"polyline12358\" points=\"46.65625,24.33642578125 39.84765625,17.52783203125 38.154296875,18.033203125 39.1220703125,14.353515625 35.3876953125,15.29345703125 36.34765625,11.58056640625 32.689453125,12.56884765625 33.6376953125,8.86865234375 31.6923828125,9.373046875 24.322265625,2.00341796875 \" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"#010101\" id=\"polyline12362\" points=\"36.578125,1.87109375 38.3828125,7.439453125 33.8681640625,7.439453125 35.6728515625,1.869140625 \"/>' + '<line fill=\"none\" stroke=\"#010101\" id=\"line12364\" y2=\"6.7915\" x2=\"36.125\" y1=\"19.01758\" x1=\"36.125\" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"none\" stroke=\"#010101\" id=\"polyline12370\" points=\"24.494140625,46.49951171875 17.685546875,39.69091796875 15.9921875,40.1953125 16.958984375,36.515625 13.2265625,37.45556640625 14.185546875,33.7421875 10.52734375,34.73193359375 11.474609375,31.03125 9.529296875,31.53515625 2.1611328125,24.166015625 \" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"#010101\" id=\"polyline12374\" points=\"12.150390625,44.80029296875 10.34765625,39.23193359375 14.861328125,39.23095703125 13.0556640625,44.80224609375 \"/>' + '<line fill=\"none\" stroke=\"#010101\" id=\"line12376\" y2=\"39.87891\" x2=\"12.60352\" y1=\"27.6543\" x1=\"12.60352\" stroke-miterlimit=\"14.3\"/>' + '</svg>';\n }\n}); /**\r\n * @class draw2d.shape.analog.ResistorBridge\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.analog.ResistorBridge({x:10, y:10});\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/analog/ResistorVertical.js\":\n/*!**********************************************!*\\\n !*** ./src/shape/analog/ResistorVertical.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.analog.ResistorVertical = _packages2.default.SetFigure.extend({\n\n NAME: \"draw2d.shape.analog.ResistorVertical\",\n\n // custom locator for the special design of the Input area\n MyInputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n var h = figure.getParent().getHeight();\n this.applyConsiderRotation(figure, w / 2, h);\n }\n }),\n\n // custom locator for the special design of the Output area\n MyOutputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n this.applyConsiderRotation(figure, w / 2, 0);\n }\n }),\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n\n this._super(extend({ width: 30, height: 50, bgColor: null }, attr), setter, getter);\n\n this.inputLocator = new this.MyInputPortLocator();\n this.outputLocator = new this.MyOutputPortLocator();\n\n this.createPort(\"hybrid\", this.inputLocator);\n this.createPort(\"hybrid\", this.outputLocator);\n },\n\n /**\r\n * @inheritdoc\r\n */\n createSet: function createSet() {\n var set = this._super();\n\n set.push(this.canvas.paper.path(\"M15,0 L15,5 L0,7.5 L30,10 L0,15 L30,20 L0,25 L30,30 L15,32.5 L15,40\"));\n\n return set;\n }\n}); /**\r\n * @class draw2d.shape.analog.ResistorVertical\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.analog.ResistorVertical({x:10, y:10});\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/analog/VoltageSupplyHorizontal.js\":\n/*!*****************************************************!*\\\n !*** ./src/shape/analog/VoltageSupplyHorizontal.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.analog.VoltageSupplyHorizontal = _packages2.default.SVGFigure.extend({\n\n NAME: \"draw2d.shape.analog.VoltageSupplyHorizontal\",\n\n // custom locator for the special design of the Input area\n MyInputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var h = figure.getParent().getHeight();\n this.applyConsiderRotation(figure, 0, h / 2);\n }\n }),\n\n // custom locator for the special design of the Output area\n MyOutputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n var h = figure.getParent().getHeight();\n this.applyConsiderRotation(figure, w, h / 2);\n }\n }),\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 30 }, attr), setter, getter);\n\n this.createPort(\"hybrid\", new this.MyInputPortLocator()); // GND\n this.createPort(\"hybrid\", new this.MyOutputPortLocator()); // VCC\n },\n\n /**\r\n * @inheritdoc\r\n */\n getSVG: function getSVG() {\n return '<svg width=\"49\" height=\"28\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">' + '<path d=\"m24.99933,18.95592l0,-9.54576m-5.78374,-9.40907l0,28.35939m-5.78718,-9.40457l0,-9.54576m-5.78374,-9.40907l0,28.35939\" id=\"path10566\" stroke-miterlimit=\"14.3\" stroke=\"#010101\" fill=\"none\"/>' + '<path d=\"m26.79878,14.13039l6.90583,0m-33.22691,0l6.90583,0\" id=\"path10568\" stroke-miterlimit=\"14.3\" stroke-linecap=\"square\" stroke=\"#010101\" fill=\"none\"/>' + '</svg>';\n }\n}); /**\r\n * @class draw2d.shape.analog.VoltageSupplyHorizontal\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.analog.VoltageSupplyHorizontal({x:10, y:10});\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/analog/VoltageSupplyVertical.js\":\n/*!***************************************************!*\\\n !*** ./src/shape/analog/VoltageSupplyVertical.js ***!\n \\***************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.analog.VoltageSupplyVertical = _packages2.default.SVGFigure.extend({\n\n NAME: \"draw2d.shape.analog.VoltageSupplyVertical\",\n\n // custom locator for the special design of the Input area\n MyInputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n var h = figure.getParent().getHeight();\n this.applyConsiderRotation(figure, w / 2, h);\n }\n }),\n\n // custom locator for the special design of the Output area\n MyOutputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n this.applyConsiderRotation(figure, w / 2, 0);\n }\n }),\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 30, height: 50 }, attr), setter, getter);\n\n this.inputLocator = new this.MyInputPortLocator();\n this.outputLocator = new this.MyOutputPortLocator();\n\n this.createPort(\"hybrid\", this.inputLocator); // GND\n this.createPort(\"hybrid\", this.outputLocator); // VCC\n },\n\n /**\r\n * @inheritdoc\r\n */\n getSVG: function getSVG() {\n return '<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">' + '<path d=\"m19.62398,12.37594l-9.87926,0m-9.74355,8.22145l29.36289,0m-9.74007,8.22469l-9.87927,0m-9.74355,8.22145l29.36289,0\" id=\"path10560\" stroke-miterlimit=\"14.3\" stroke=\"#010101\" fill=\"none\"/>' + '<path d=\"m14.63157,9.81646l0,-9.81646m0,47.2328l0,-9.81646\" id=\"path10562\" stroke-miterlimit=\"14.3\" stroke-linecap=\"square\" stroke=\"#010101\" fill=\"none\"/>' + '</svg>';\n }\n}); /**\r\n * @class draw2d.shape.analog.VoltageSupplyVertical\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.analog.VoltageSupplyVertical({x:10, y:10});\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/arrow/CalligrapherArrowDownLeft.js\":\n/*!******************************************************!*\\\n !*** ./src/shape/arrow/CalligrapherArrowDownLeft.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.arrow.CalligrapherArrowDownLeft = _packages2.default.SVGFigure.extend({\n\n NAME: \"draw2d.shape.arrow.CalligrapherArrowDownLeft\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr);\n },\n\n getSVG: function getSVG() {\n return '<svg width=\"180\" height=\"300\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">' + ' <path style=\"fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none\" id=\"path3084\" d=\"m 159.63578,17.846597 c 0.43137,9.44641 -0.0636,18.88035 -0.8284,28.30165 c -1.73211,18.38336 -4.05381,36.71698 -6.08253,55.075313 c -1.61738,13.7075 -3.03402,27.43467 -3.97611,41.19113 c -1.09101,11.16584 -1.31019,22.36559 -1.28541,33.56466 c -0.1328,4.82188 0.3218,9.6468 0.14332,14.46812 c -0.0888,2.39977 -0.28315,3.73625 -0.55012,6.12095 c -0.85848,4.73147 -2.27416,9.40019 -4.7769,13.68272 c -1.47003,2.51544 -3.78493,5.6647 -5.47739,8.05048 c -5.02888,6.66256 -11.08555,12.65652 -18.10552,17.75963 c -4.23302,3.07716 -7.74942,5.12065 -12.22081,7.86298 c -13.253319,6.72606 -25.889792,15.11686 -40.84124,18.60576 c -3.016829,0.7039 -4.431417,0.8157 -7.450859,1.2076 c -6.983246,0.5774 -14.009174,0.3375 -21.010676,0.2509 c -3.278795,-0.033 -6.55749,0.01 -9.835897,0.045 c 0,0 20.838833,-13.2364 20.838833,-13.2364 l 0,0 c 3.147056,0.093 6.294483,0.1852 9.443646,0.2007 c 6.966697,0.011 13.971433,0.1301 20.897176,-0.6344 c 3.732439,-0.5577 7.321215,-1.2431 10.881203,-2.4145 c 1.517208,-0.4992 5.830867,-2.43339 4.487902,-1.6386 c -6.098183,3.6088 -25.104875,12.8748 -9.52514,5.223 c 4.40875,-2.5927 8.262057,-4.7459 12.425175,-7.65986 c 6.839117,-4.78709 12.633657,-10.50427 17.500607,-16.86761 c 2.53518,-3.56692 5.24684,-7.12748 7.07617,-11.03446 c 1.42357,-3.0404 2.21532,-6.28727 2.91146,-9.50152 c 0.91919,-6.88822 1.03991,-13.81392 1.25118,-20.74151 c 0.47683,-11.27871 0.96259,-22.55877 1.61689,-33.83062 c 1.21127,-14.03392 3.64191,-27.94339 5.46543,-41.92167 c 2.26899,-18.186603 4.6835,-36.384373 5.4487,-54.679643 c 0.0788,-2.46092 0.23808,-4.92087 0.23618,-7.38276 c -0.005,-6.45916 -0.62194,-13.00218 -2.13821,-19.32664 c 0,0 23.48134,-10.73998 23.48134,-10.73998 z\" inkscape:connector-curvature=\"0\" />' + ' <path style=\"fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none\" id=\"path3086\" d=\"m 41.271518,252.40239 c 2.465518,-0.7264 4.879503,-1.7726 7.145328,-2.9859 c 0.955597,-0.5117 3.736822,-2.1986 2.791991,-1.6673 c -5.218817,2.9348 -10.409826,5.9187 -15.61474,8.878 c 5.366557,-3.4898 10.227818,-7.6685 14.119927,-12.75576 c 3.507157,-5.09382 4.097613,-11.17122 4.301158,-17.17644 c 0.02635,-3.95844 -0.31227,-7.90612 -0.635377,-11.84752 c 0,0 19.920693,-10.3059 19.920693,-10.3059 l 0,0 c 0.171761,4.05015 0.409899,8.09777 0.50079,12.15101 c -0.185739,6.23619 -0.347804,12.66862 -3.492579,18.24747 c -0.503375,0.75197 -0.961922,1.53596 -1.510126,2.25591 c -3.478528,4.56826 -8.226837,8.04586 -12.757403,11.47443 c -7.345206,4.3297 -14.671333,8.692 -22.035619,12.9891 c -3.551305,2.0723 -7.368692,3.8726 -11.394645,4.7773 c 0,0 18.660602,-14.0344 18.660602,-14.0344 z\" inkscape:connector-curvature=\"0\" />' + ' <path style=\"fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none\" id=\"path3088\" d=\"m 37.815923,255.49919 c 3.41111,0.1581 6.814569,0.2213 10.182693,0.8184 c 6.92998,2.6928 13.533527,6.2357 20.043462,9.8162 c 3.912139,2.1362 7.91195,4.4644 10.690321,8.0298 c 1.039962,1.2802 1.510411,2.7604 1.893523,4.3313 c 0,0 -20.370847,10.9259 -20.370847,10.9259 l 0,0 c -0.225419,-1.2711 -0.55067,-2.4558 -1.329618,-3.5184 c -2.332229,-3.3633 -5.869056,-5.6279 -9.247191,-7.8233 c -6.335066,-3.7106 -12.98611,-7.1834 -20.232784,-8.6836 c -3.497247,-0.3814 -7.011372,-0.4307 -10.521829,-0.1703 c 0,0 18.89227,-13.726 18.89227,-13.726 z\" inkscape:connector-curvature=\"0\" />' + '</svg>';\n },\n\n /**\r\n * @method\r\n * propagate all attributes like color, stroke,... to the shape element\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n if (this.svgNodes !== null) {\n this.svgNodes.attr({ fill: this.color.rgba() });\n }\n\n this._super(attributes);\n }\n\n}); /**\r\n * @class draw2d.shape.arrow.CalligrapherArrowDownLeft\r\n * Hand drawn arrow which points down left\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.arrow.CalligrapherArrowDownLeft({x:10,y:10, color:\"#3d3d3d\"});\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/arrow/CalligrapherArrowLeft.js\":\n/*!**************************************************!*\\\n !*** ./src/shape/arrow/CalligrapherArrowLeft.js ***!\n \\**************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.arrow.CalligrapherArrowLeft = _packages2.default.SVGFigure.extend({\n\n NAME: \"draw2d.shape.arrow.CalligrapherArrowLeft\",\n\n /**\r\n * @constructor\r\n * Creates a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr);\n },\n\n getSVG: function getSVG() {\n return '<svg width=\"230\" height=\"60\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">' + ' <path style=\"fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none\" id=\"path3024\" d=\"m 218.87943,27.464763 c -1.21088,-0.0563 -2.42064,-0.14616 -3.63262,-0.16893 c -5.82495,-0.10948 -18.61676,-0.0226 -22.97385,0.0122 c -7.12848,0.057 -14.25673,0.14021 -21.38495,0.22333 c -9.03765,0.10539 -18.07511,0.22813 -27.11266,0.3422 c -10.2269,0.11878 -20.4538,0.23756 -30.6807,0.35634 c -35.488759,0.4089 -70.975849,0.82793 -106.4669238,0.95195 c 0,0 7.9718628,-5.70244 7.9718628,-5.70244 l 0,0 c 6.374241,0.28694 12.745594,0.64561 19.122722,0.86083 c 28.09499,0.94816 56.21338,0.92473 84.315959,0.32205 c 10.51273,-0.32805 21.0288,-0.56402 31.53819,-0.98412 c 27.47361,-1.09824 54.91405,-2.91665 82.28177,-5.53697 c 0,0 -12.9788,9.32351 -12.9788,9.32351 z\" inkscape:connector-curvature=\"0\" />' + ' <path style=\"fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none\" id=\"path3026\" d=\"m 100.75066,1.6309831 c -7.165239,3.9571 -14.284929,7.47866 -22.036659,10.2707299 c -5.00195,1.80163 -10.10374,3.31886 -15.2402,4.79424 c -8.25878,2.37815 -16.55626,4.65805 -24.9012,6.79479 c -2.89107,0.71593 -5.74687,1.56407 -8.66266,2.20424 c -3.211679,0.70512 -6.49468,1.17333 -9.752959,1.6747 c -5.447101,0.92112 -10.9044008,1.81762 -16.3983488,2.50082 c -1.608931,0.0814 -0.850754,0.10697 -2.275834,-0.0365 C 20.004071,21.041553 19.256899,21.517873 32.515691,19.216243 c 6.21537,-1.05913 12.34875,-2.37668 18.3945,-4.03234 c 8.12719,-2.02803 16.23765,-4.1157 24.26421,-6.4321199 c 5.23574,-1.55053 10.41682,-3.15473 15.46857,-5.12875 c 1.38953,-0.54295 2.7579,-1.12682 4.12253,-1.71603 c 0.98421,-0.42496 3.86537,-1.81801999 2.92296,-1.32600999 C 93.642191,2.6934931 89.529511,4.7073031 85.450031,6.7704531 l 15.300629,-5.1394 z\" inkscape:connector-curvature=\"0\" sodipodi:nodetypes=\"csccsccccccsssccc\" />' + ' <path style=\"fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none\" id=\"path3028\" d=\"m 80.764281,58.068863 c -2.45498,-3.50762 -6.58178,-6.10525 -10.40324,-8.66732 c -4.30614,-2.72676 -7.93958,-6.28283 -12.6021,-8.28702 c -7.39912,-4.50257 -11.70055,-7.85592 -20.85866,-9.23429 c -4.9257,-0.85706 -17.294247,-1.32043 -22.226462,-2.15427 c -3.445882,-0.42869 -6.2035918,0.70541 -9.6845138,0.57715 c -1.496337,-0.0586 -2.99355,-0.0965 -4.491229,-0.12472 l 13.9525278,-6.24562 l 3.25,-1.17153 c 1.441459,0.0813 -1.116338,0.15309 0.325505,0.23016 c 3.574557,0.17902 7.211864,0.0695 10.712655,0.73822 c 4.723107,1.08097 9.443947,2.1624 14.234177,3.05317 c 2.76739,0.64203 3.92627,0.87082 6.64127,1.66289 c 4.42146,1.28993 8.60075,3.01513 12.86503,4.58129 c 1.90199,0.73446 5.05193,1.93181 6.89302,2.7216 c 4.92005,2.11061 9.5916,4.57045 13.9716,7.31023 c 4.16708,2.62011 8.48023,5.20033 11.72012,8.56863 z\" inkscape:connector-curvature=\"0\" sodipodi:nodetypes=\"ccccccccccccscsccc\" />' + '</svg>';\n },\n\n /**\r\n * @method\r\n * propagate all attributes like color, stroke,... to the shape element\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n if (this.svgNodes !== null) {\n this.svgNodes.attr({ fill: this.color.rgba() });\n }\n\n this._super(attributes);\n }\n\n}); /**\r\n * @class draw2d.shape.arrow.CalligrapherArrowLeft\r\n * Hand drawn arrow to the left.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.arrow.CalligrapherArrowLeft({x:10, y:10, color:\"#3d3d3d\"});\r\n *\r\n * canvas.add(figure);\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Arc.js\":\n/*!********************************!*\\\n !*** ./src/shape/basic/Arc.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.basic.Arc\r\n * Oval figure.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let arc = new draw2d.shape.basic.Arc({diameter:150, x:50, y:10, startAngle:0, endAngle:45});\r\n *\r\n * canvas.add(arc);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.VectorFigure\r\n */\n_packages2.default.shape.basic.Arc = _packages2.default.SetFigure.extend({\n NAME: \"draw2d.shape.basic.Arc\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.startAngle = 180;\n this.endAngle = 360;\n\n this._super((0, _extend2.default)({ width: 80, height: 50, bgColor: null, color: \"#1B1B1B\" }, attr), setter, getter);\n this.strokeScale = false; // scale the stroke width of the children nodes if the parent resize\n },\n\n /**\r\n * @template\r\n **/\n createSet: function createSet() {\n this.canvas.paper.setStart();\n\n var flag = this.endAngle - this.startAngle > 180;\n var a1 = this.startAngle % 360 * Math.PI / 180;\n var a2 = this.endAngle % 360 * Math.PI / 180;\n\n var w2 = this.getWidth() / 2;\n var h2 = this.getHeight() / 2;\n\n this.canvas.paper.path([[\"M\", w2, h2, \"l\", w2 * Math.cos(a1), h2 * Math.sin(a1), \"A\", w2, h2, 0, +flag, 1, w2 + w2 * Math.cos(a2), h2 + h2 * Math.sin(a2), \"z\"]].join(\"\")).attr({ \"fill\": \"#fff0f0\" });\n\n return this.canvas.paper.setFinish();\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Circle.js\":\n/*!***********************************!*\\\n !*** ./src/shape/basic/Circle.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.basic.Circle\r\n * A circle figure with basic background and stroke API. <br>\r\n * A circle can not be streched. <strong>The aspect ration is always 1:1</strong>.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let shape = new draw2d.shape.basic.Circle({x:40,y:10, stroke:3, color:\"#3d3d3d\", bgColor:\"#3dff3d\"});\r\n *\r\n * canvas.add(shape);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Oval\r\n */\n_packages2.default.shape.basic.Circle = _packages2.default.shape.basic.Oval.extend({\n\n NAME: \"draw2d.shape.basic.Circle\",\n\n /**\r\n * @constructor\r\n * Create a new circle figure.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, (0, _extend2.default)({\n /** @attr {Number} diameter the diameter of the circle */\n diameter: this.setDiameter,\n /** @attr {Number} radius the radius of the circle */\n radius: this.setRadius\n }, setter), (0, _extend2.default)({\n diameter: this.getDiameter,\n radius: this.getRadius\n }, getter));\n\n this.setKeepAspectRatio(true);\n },\n\n /**\r\n * @method\r\n * Set the diameter of the circle. The center of the circle will be retained.\r\n *\r\n * @param {Number} d The new diameter of the circle.\r\n * @since 4.0.0\r\n **/\n setDiameter: function setDiameter(d) {\n var center = this.getCenter();\n this.setDimension(d, d);\n this.setCenter(center);\n this.fireEvent(\"change:diameter\", { value: d });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the diameter of the circle.\r\n *\r\n * @since 4.0.0\r\n **/\n getDiameter: function getDiameter() {\n return this.getWidth();\n },\n\n /**\r\n * @method\r\n * Set the radius of the circle. The center of the circle will be retained.\r\n *\r\n * @param {Number} d The new radius of the circle.\r\n * @since 4.0.0\r\n **/\n setRadius: function setRadius(r) {\n this.setDiameter(r * 2);\n this.fireEvent(\"change:radius\", { value: r });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n // delete the radius attribute of the parent. Because the \"radius\" is the corner radius\n // of the shape and not the \"radius\" of the circle. Design flaw. :-/\n delete memento.radius;\n\n return memento;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Diamond.js\":\n/*!************************************!*\\\n !*** ./src/shape/basic/Diamond.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.Diamond = _packages2.default.shape.basic.Polygon.extend({\n NAME: \"draw2d.shape.basic.Diamond\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ bgColor: \"#00a3f6\", color: \"#1B1B1B\" }, attr), setter, getter);\n\n var pos = this.getPosition();\n\n this.resetVertices();\n\n var box = this.getBoundingBox();\n this.addVertex(box.w / 2, 0); // Go to the top center..\n this.addVertex(box.w, box.h / 2); // ...draw line to the right middle\n this.addVertex(box.w / 2, box.h); // ...bottom center...\n this.addVertex(0, box.h / 2); // ...left middle...\n\n // override the selection handler from the polygon. Because the vertices of\n // the diamond are not selectable and modifiable\n //\n this.installEditPolicy(new _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy());\n\n this.setPosition(pos);\n }\n\n}); /**\r\n * @class draw2d.shape.basic.Diamond\r\n * A Diamond Figure.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let d1 = new draw2d.shape.basic.Diamond({x:10,y:10});\r\n * let d2 = new draw2d.shape.basic.Diamond({x:100,y:10, bgColor:\"#f0f000\", alpha:0.7, width:100, height:60});\r\n *\r\n * canvas.add(d1);\r\n * canvas.add(d2);\r\n *\r\n * canvas.setCurrentSelection(d2);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.VectorFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/GhostVertexResizeHandle.js\":\n/*!****************************************************!*\\\n !*** ./src/shape/basic/GhostVertexResizeHandle.js ***!\n \\****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.GhostVertexResizeHandle = _packages2.default.shape.basic.LineResizeHandle.extend({\n NAME: \"draw2d.shape.basic.GhostVertexResizeHandle\",\n\n init: function init(owner, precursorIndex) {\n this.maxOpacity = 0.35;\n this.precursorIndex = precursorIndex;\n\n this._super({ owner: owner, opacity: this.maxOpacity });\n },\n\n createShapeElement: function createShapeElement() {\n var shape = this._super();\n\n shape.attr({ \"cursor\": \"pointer\" });\n\n return shape;\n },\n\n /**\r\n * @method\r\n * Set the alpha blending of this figure.\r\n *\r\n * @param {Number} percent Value between [0..1].\r\n * @template\r\n **/\n setAlpha: function setAlpha(percent) {\n this._super(Math.min(this.maxOpacity, Math.max(0, parseFloat(percent))));\n\n return this;\n },\n\n /**\r\n * @method\r\n * Called when a user clicks on the element\r\n *\r\n * @template\r\n */\n onClick: function onClick() {\n var cmd = new _packages2.default.command.CommandAddVertex(this.owner, this.precursorIndex + 1, this.getAbsoluteX() + this.getWidth() / 2, this.getAbsoluteY() + this.getHeight() / 2);\n this.getCanvas().getCommandStack().execute(cmd);\n },\n\n /**\r\n * Called if the drag and drop action begins. You can return [false] if you\r\n * want avoid the that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @type {Boolean}\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n return true;\n },\n\n /**\r\n * @method\r\n * Called from the framework during a drag&drop operation\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @return {Boolean}\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n return true;\n },\n\n /**\r\n * @method Called after a drag and drop action.<br>\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call the super implementation via <code>this._super();</code>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean}\r\n */\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragend\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n return true;\n },\n\n /**\r\n * @method\r\n * Controls the location of the resize handle\r\n *\r\n * @template\r\n **/\n relocate: function relocate() {\n var p1 = this.owner.getVertices().get(this.precursorIndex);\n var p2 = this.owner.getVertices().get(this.precursorIndex + 1);\n\n this.setPosition((p2.x - p1.x) / 2 + p1.x - this.getWidth() / 2, (p2.y - p1.y) / 2 + p1.y - this.getHeight() / 2);\n }\n\n}); /**\r\n * @class draw2d.shape.basic.GhostVertexResizeHandle\r\n * ResizeHandle for a vertex edit policy. Click of this kind of resize handles\r\n * adds a new vertex to the polyline or polygon.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.LineResizeHandle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Image.js\":\n/*!**********************************!*\\\n !*** ./src/shape/basic/Image.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.basic.Image\r\n * Simple Image shape.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.node.Node\r\n */\n_packages2.default.shape.basic.Image = _packages2.default.shape.node.Node.extend({\n NAME: \"draw2d.shape.basic.Image\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, (0, _extend2.default)({\n /** @attr {String} path the image path (absolute or relative) of the shape */\n path: this.setPath\n }, setter), (0, _extend2.default)({\n path: this.getPath\n }, getter));\n },\n\n /**\r\n * @method\r\n * Set the image path attribute of the Image shape and repaint them.\r\n * The path can be relative or absolute\r\n *\r\n * @param path\r\n * @since 2.8.0\r\n */\n setPath: function setPath(path) {\n this.path = path;\n\n if (this.shape !== null) {\n this.shape.attr({ src: this.path });\n }\n this.fireEvent(\"change:path\", { value: this.path });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the image path attribute of the shape.\r\n *\r\n * @returns {String}\r\n * @since 2.8.0\r\n */\n getPath: function getPath() {\n return this.path;\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return this;\n }\n\n attributes = attributes || {};\n\n attributes.x = this.getAbsoluteX();\n attributes.y = this.getAbsoluteY();\n attributes.width = this.getWidth();\n attributes.height = this.getHeight();\n attributes.src = this.path;\n\n // propagate the width/height and the display:inline-block as CSS attribute as well because Chrome\n // did some \"flickering\" in some versions and sometimes the image disappear complete\n $(this.shape.node).css({ display: \"inline-block\", \"width\": attributes.width, \"height\": attributes.height });\n\n this._super(attributes);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createShapeElement: function createShapeElement() {\n return this.canvas.paper.image(this.path, this.getX(), this.getY(), this.getWidth(), this.getHeight());\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n return (0, _extend2.default)(this._super(), {\n path: this.path\n });\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n if (typeof memento.path !== \"undefined\") {\n this.setPath(memento.path);\n }\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Label.js\":\n/*!**********************************!*\\\n !*** ./src/shape/basic/Label.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! ../../util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.Label = _packages2.default.SetFigure.extend({\n\n NAME: \"draw2d.shape.basic.Label\",\n\n FONT_FALLBACK: {\n 'Georgia': 'Georgia, serif',\n 'Palatino Linotype': '\"Palatino Linotype\", \"Book Antiqua\", Palatino, serif',\n 'Times New Roman': '\"Times New Roman\", Times, serif',\n 'Arial': 'Arial, Helvetica, sans-serif',\n 'Arial Black': '\"Arial Black\", Gadget, sans-serif',\n 'Comic Sans MS': '\"Comic Sans MS\", cursive, sans-serif',\n 'Impact': 'Impact, Charcoal, sans-serif',\n 'Lucida Sans Unicode': '\"Lucida Sans Unicode\", \"Lucida Grande\", sans-serif',\n 'Tahoma, Geneva': 'Tahoma, Geneva, sans-seri',\n 'Trebuchet MS': '\"Trebuchet MS\", Helvetica, sans-serif',\n 'Verdana': 'Verdana, Geneva, sans-serif',\n 'Courier New': '\"Courier New\", Courier, monospace',\n 'Lucida Console': '\"Lucida Console\", Monaco, monospace'\n },\n\n /**\r\n * @constructor\r\n * Creates a new text element.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n\n this.text = \"\";\n // for performance reasons\n //\n this.cachedWidth = null;\n this.cachedHeight = null;\n this.cachedMinWidth = null;\n this.cachedMinHeight = null;\n\n // appearance of the shape\n //\n this.fontSize = 12;\n this.fontColor = new _packages2.default.util.Color(\"#080808\");\n this.fontFamily = null;\n this.padding = { top: 4, right: 4, bottom: 4, left: 4 };\n\n this.outlineStroke = 0;\n this.outlineColor = new _packages2.default.util.Color(null);\n\n this.bold = false;\n\n // behavior of the shape\n //\n this.editor = null;\n\n this._super((0, _extend2.default)({ stroke: 1, width: 1, height: 1, resizeable: false }, attr), (0, _extend2.default)({\n /** @attr {String} text the text to show */\n text: this.setText,\n /** @attr {String} set the editor to use see {@link draw2d.ui.LabelEditor} */\n editor: this.installEditor,\n /** @attr {Number} outlineStroke the line width of the text to draw. Fill color and outline of the text can be different. */\n outlineStroke: this.setOutlineStroke,\n /** @attr {String|draw2d.util.Color} outlineColor the outline color of the text */\n outlineColor: this.setOutlineColor,\n /** @attr {String} fontFamily the font to use*/\n fontFamily: this.setFontFamily,\n /** @attr {Number} fontSize the font size to use */\n fontSize: this.setFontSize,\n /** @attr {String|draw2d.util.Color} fontColor the font color */\n fontColor: this.setFontColor,\n /** @attr {Number} padding the padding in pixel around the text */\n padding: this.setPadding,\n /** @attr {Boolean} bold indicator if bold text should be used*/\n bold: this.setBold\n }, setter), (0, _extend2.default)({\n text: this.getText,\n outlineStroke: this.getOutlineStroke,\n outlineColor: this.getOutlineColor,\n fontFamily: this.getFontFamily,\n fontSize: this.getFontSize,\n fontColor: this.getFontColor,\n padding: this.getPadding,\n bold: this.isBold\n }, getter));\n\n this.installEditPolicy(new _packages2.default.policy.figure.AntSelectionFeedbackPolicy());\n\n // some performance improvements\n this.lastAppliedLabelRotation = \"\";\n this.lastAppliedTextAttributes = {};\n },\n\n /**\r\n * @method\r\n * Creates the shape object for a text node.\r\n *\r\n * @template\r\n **/\n createSet: function createSet() {\n return this.canvas.paper.text(0, 0, this.text);\n },\n\n /**\r\n * @method\r\n * Set the canvas element of this figures.\r\n *\r\n * @param {draw2d.Canvas} canvas the new parent of the figure or null\r\n */\n setCanvas: function setCanvas(canvas) {\n this.clearCache();\n this._super(canvas);\n this.clearCache();\n },\n\n /**\r\n * @method\r\n * Trigger the repaint of the element and transport all style properties to the visual representation.<br>\r\n * Called by the framework.\r\n *\r\n * @template\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null || this.parent && this.parent.repaintBlocked === true) {\n return;\n }\n\n // style the label\n var lattr = this.calculateTextAttr();\n lattr.text = this.text;\n\n var attrDiff = _JSONUtil2.default.flatDiff(lattr, this.lastAppliedTextAttributes);\n this.lastAppliedTextAttributes = lattr;\n\n // the two \"attr\" calls takes 2/3 of the complete method call (chrome performance check).\n // now we check if any changes happens and call this method only if neccessary.\n if (Object.getOwnPropertyNames(attrDiff).length > 0) {\n this.svgNodes.attr(lattr);\n // set of the x/y must be done AFTER the font-size and bold has been set.\n // Reason: the getBBox method needs the font attributes for calculation\n this.svgNodes.attr({\n x: this.padding.left + this.stroke,\n y: this.svgNodes.getBBox(true).height / 2 + this.padding.top + this.getStroke()\n });\n }\n this._super(attributes);\n },\n\n /**\r\n *\r\n * @protected\r\n */\n calculateTextAttr: function calculateTextAttr() {\n var lattr = {\n \"text-anchor\": \"start\",\n \"font-size\": this.fontSize,\n \"font-weight\": this.bold === true ? \"bold\" : \"normal\",\n fill: this.fontColor.rgba(),\n stroke: this.outlineColor.rgba(),\n \"stroke-width\": this.outlineStroke\n };\n if (this.fontFamily !== null) {\n lattr[\"font-family\"] = this.fontFamily;\n }\n return lattr;\n },\n\n /**\r\n * @private\r\n */\n applyTransformation: function applyTransformation() {\n var ts = \"R\" + this.rotationAngle;\n // if(ts!==this.lastAppliedLabelRotation){\n this.shape.transform(ts);\n this.lastAppliedLabelRotation = ts;\n // }\n\n this.svgNodes.transform(\"R\" + this.rotationAngle + \"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the new font size in [pt].\r\n *\r\n * @param {Number} size The new font size in <code>pt</code>\r\n **/\n setFontSize: function setFontSize(size) {\n this.clearCache();\n this.fontSize = size;\n\n this.repaint();\n\n this.fireEvent(\"change:fontSize\", { value: this.fontSize });\n this.fireEvent(\"resize\");\n\n // Update the resize handles if the user change the position of the element via an API call.\n //\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the current used font size in px.\r\n *\r\n * @returns {Number}\r\n * @since 4.0.1\r\n */\n getFontSize: function getFontSize() {\n return this.fontSize;\n },\n\n /**\r\n * @method\r\n * Set the label to <b>bold</b> or <b>normal</b> font weight.\r\n *\r\n * @param {Boolean} bold The bold flag for the label\r\n * @since 2.4.1\r\n **/\n setBold: function setBold(bold) {\n this.clearCache();\n this.bold = bold;\n this.repaint();\n\n this.fireEvent(\"change:bold\", { value: this.bold });\n this.fireEvent(\"resize\");\n\n // Update the resize handles if the user change the position of the element via an API call.\n //\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the \"bold\" attribute of the label\r\n *\r\n * @since 5.0.0\r\n * @returns {Boolean}\r\n */\n isBold: function isBold() {\n return this.bold;\n },\n\n /**\r\n * @method\r\n * Set the outline color of the font.\r\n *\r\n * @param {draw2d.util.Color/String} color The new color of the line.\r\n * @since 4.2.1\r\n **/\n setOutlineColor: function setOutlineColor(color) {\n this.outlineColor = new _packages2.default.util.Color(color);\n this.repaint();\n this.fireEvent(\"change:outlineColor\", { value: this.outlineColor });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The outlien color of the text\r\n *\r\n * @returns {draw2d.util.Color}\r\n * @since 4.2.1\r\n */\n getOutlineColor: function getOutlineColor() {\n return this.outlineColor;\n },\n\n /**\r\n * @method\r\n * Set the stroke of the text to use.\r\n *\r\n * @param {Number} w The new line width of the figure\r\n * @since 4.2.1\r\n **/\n setOutlineStroke: function setOutlineStroke(w) {\n this.outlineStroke = w;\n this.repaint();\n this.fireEvent(\"change:outlineStroke\", { value: this.outlineStroke });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The used outline line width.\r\n *\r\n * @type {Number}\r\n * @since 4.2.1\r\n **/\n getOutlineStroke: function getOutlineStroke() {\n return this.outlineStroke;\n },\n\n /**\r\n * @method\r\n * Set the color of the font.\r\n *\r\n * @param {draw2d.util.Color|String} color The new color of the line.\r\n **/\n setFontColor: function setFontColor(color) {\n this.fontColor = new _packages2.default.util.Color(color);\n this.repaint();\n this.fireEvent(\"change:fontColor\", { value: this.fontColor });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The current used font color\r\n *\r\n * @returns {draw2d.util.Color}\r\n */\n getFontColor: function getFontColor() {\n return this.fontColor;\n },\n\n /**\r\n * @method\r\n * Set the padding of the element\r\n *\r\n * // Alternatively you can use the attr method:\r\n * //\r\n * // set the padding for top,left,bottom,right in one call\r\n * figure.attr({\r\n * padding: 3\r\n * });\r\n *\r\n * // update the padding left and top\r\n * figure.attr({\r\n * padding: {left:3, top:30}\r\n * });\r\n *\r\n * @param {Number|Object} padding The new padding\r\n **/\n setPadding: function setPadding(padding) {\n this.clearCache();\n if (typeof padding === \"number\") {\n this.padding = { top: padding, right: padding, bottom: padding, left: padding };\n } else {\n this.padding = (0, _extend2.default)(this.padding, padding);\n }\n this.repaint();\n this.fireEvent(\"change:padding\", { value: this.padding });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the padding of the element.\r\n *\r\n * @since 4.0.1\r\n **/\n getPadding: function getPadding() {\n return this.padding;\n },\n\n /**\r\n * @method\r\n * Set the font family to use. If you use the shown font names the typical fallback\r\n * font are installed as well.\r\n *\r\n * <b>Serif Fonts</b>\r\n * <ul>\r\n * <li><span style=\"font-family:'Georgia'\">Georgia</span></li>\r\n * <li><span style=\"font-family:'Palatino Linotype'\">Palatino Linotype</span></li>\r\n * <li><span style=\"font-family:'Times New Roman'\">Times New Roman</span></li>\r\n * </ul>\r\n *\r\n * <b>Sans-Serif Fonts</b>\r\n * <ul>\r\n * <li><span style=\"font-family:'Arial'\">Arial</span></li>\r\n * <li><span style=\"font-family:'Arial Black'\">Arial Black</span></li>\r\n * <li><span style=\"font-family:'Comic Sans MS'\">Comic Sans MS</span></li>\r\n * <li><span style=\"font-family:'Impact, Charcoal'\">Impact, Charcoal</span></li>\r\n * <li><span style=\"font-family:'Lucida Sans Unicode'\">Lucida Sans Unicode</span></li>\r\n * <li><span style=\"font-family:'Tahoma, Geneva'\">Tahoma, Geneva</span></li>\r\n * <li><span style=\"font-family:'Trebuchet MS'\">Trebuchet MS</span> </li>\r\n * <li><span style=\"font-family:'Verdana'\">Verdana</span></li>\r\n * </ul>\r\n *\r\n * <b>Monospace Fonts</b>\r\n * <ul>\r\n * <li><span style=\"font-family:'Courier New'\">Courier New</span></li>\r\n * <li><span style=\"font-family:'Lucida Console'\">Lucida Console</span></li>\r\n * </ul>\r\n *\r\n * @param {String} font The font to use\r\n **/\n setFontFamily: function setFontFamily(font) {\n this.clearCache();\n\n // check for fallback\n //\n if (typeof font !== \"undefined\" && font !== null && typeof this.FONT_FALLBACK[font] !== \"undefined\") {\n font = this.FONT_FALLBACK[font];\n }\n\n this.fontFamily = font;\n this.repaint();\n this.fireEvent(\"change:fontFamily\", { value: this.fontFamily });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the used font family of the label.\r\n *\r\n * @returns {String}\r\n */\n getFontFamily: function getFontFamily() {\n return this.fontFamily;\n },\n\n /**\r\n * @method\r\n * A Label did have \"autosize\". Do nothing at all.\r\n *\r\n **/\n setDimension: function setDimension(w, h) {\n this.clearCache();\n\n this._super(w, h);\n\n return this;\n },\n\n /**\r\n * @method\r\n * clear the internal cache for width/height precalculation\r\n * @private\r\n */\n clearCache: function clearCache() {\n this.portRelayoutRequired = true;\n this.cachedMinWidth = null;\n this.cachedMinHeight = null;\n this.cachedWidth = null;\n this.cachedHeight = null;\n this.lastAppliedTextAttributes = {};\n\n return this;\n },\n\n /**\r\n * @method\r\n * This value is relevant for the interactive resize of the figure.\r\n *\r\n * @return {Number} Returns the min. width of this object.\r\n */\n getMinWidth: function getMinWidth() {\n if (this.shape === null) {\n return 0;\n }\n\n if (this.cachedMinWidth === null) {\n this.cachedMinWidth = this.svgNodes.getBBox(true).width + this.padding.left + this.padding.right + 2 * this.getStroke();\n }\n\n return this.cachedMinWidth;\n },\n\n /**\r\n * @method\r\n * This value is relevant for the interactive resize of the figure.\r\n *\r\n * @return {Number} Returns the min. width of this object.\r\n */\n getMinHeight: function getMinHeight() {\n if (this.shape === null) {\n return 0;\n }\n\n if (this.cachedMinHeight === null) {\n this.cachedMinHeight = this.svgNodes.getBBox(true).height + this.padding.top + this.padding.bottom + 2 * this.getStroke();\n }\n\n return this.cachedMinHeight;\n },\n\n /**\r\n * @method\r\n * Return the calculate width of the set. This calculates the bounding box of all elements.\r\n *\r\n * @return {Number} the calculated width of the label\r\n **/\n getWidth: function getWidth() {\n if (this.shape === null) {\n return 0;\n }\n\n if (this.cachedWidth === null) {\n if (this.resizeable === true) {\n this.cachedWidth = Math.max(this.width, this.getMinWidth());\n } else {\n this.cachedWidth = this.getMinWidth();\n }\n }\n\n return this.cachedWidth;\n },\n\n /**\r\n * @method\r\n * Return the calculated height of the set. This calculates the bounding box of all elements.\r\n *\r\n * @return {Number} the calculated height of the label\r\n */\n getHeight: function getHeight() {\n if (this.shape === null) {\n return 0;\n }\n\n if (this.cachedHeight === null) {\n this.cachedHeight = Math.max(this.height, this.getMinHeight());\n }\n\n return this.cachedHeight;\n },\n\n /**\r\n * @method\r\n * Set an editor for the label. This can be a dialog or inplace editor for the\r\n * Text.<br>\r\n * The editor will be activated if you doubleClick on the label.\r\n *\r\n * @param {draw2d.ui.LabelEditor|String} editor\r\n */\n installEditor: function installEditor(editor) {\n if (typeof editor === \"string\") {\n editor = eval(\"new \" + editor + \"()\");\n }\n this.editor = editor;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Called when a user dbl clicks on the element\r\n *\r\n */\n onDoubleClick: function onDoubleClick() {\n if (this.editor !== null) {\n this.editor.start(this);\n }\n },\n\n /**\r\n * @method\r\n * Returns the current text of the label.\r\n *\r\n * @returns the current display text of the label\r\n * @type {String}\r\n **/\n getText: function getText() {\n return this.text;\n },\n\n /**\r\n * @method\r\n * Set the text for the label. Use \\n for multiline text.\r\n *\r\n * @param {String} text The new text for the label.\r\n **/\n setText: function setText(text) {\n this.clearCache();\n this.text = text;\n\n this.repaint();\n // Update the resize handles if the user change the position of the element via an API call.\n //\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.fireEvent(\"resize\");\n this.fireEvent(\"change:text\", { value: this.text });\n\n if (this.parent !== null) {\n this.parent.repaint();\n }\n\n return this;\n },\n\n hitTest: function hitTest(x, y) {\n // apply a simple bounding box test if the label isn'T rotated\n //\n if (this.rotationAngle === 0) {\n return this._super(x, y);\n }\n\n // rotate the box with the current matrix of the\n // shape\n var matrix = this.shape.matrix;\n var points = this.getBoundingBox().getVertices();\n points.each(function (i, point) {\n var x = matrix.x(point.x, point.y);\n var y = matrix.y(point.x, point.y);\n point.x = x;\n point.y = y;\n });\n\n var polySides = 4;\n\n var j = polySides - 1;\n var oddNodes = false;\n\n for (var i = 0; i < polySides; i++) {\n var pi = points.get(i);\n var pj = points.get(j);\n if ((pi.y < y && pj.y >= y || pj.y < y && pi.y >= y) && (pi.x <= x || pj.x <= x)) {\n if (pi.x + (y - pi.y) / (pj.y - pi.y) * (pj.x - pi.x) < x) {\n oddNodes = !oddNodes;\n }\n }\n j = i;\n }\n return oddNodes;\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n memento.text = this.text;\n memento.outlineStroke = this.outlineStroke;\n memento.outlineColor = this.outlineColor.rgba();\n memento.fontSize = this.fontSize;\n memento.fontColor = this.fontColor.rgba();\n memento.fontFamily = this.fontFamily;\n\n if (this.editor !== null) {\n memento.editor = this.editor.NAME;\n }\n return memento;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n * @returns\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n if (typeof memento.text !== \"undefined\") {\n this.setText(memento.text);\n }\n if (typeof memento.outlineStroke !== \"undefined\") {\n this.setOutlineStroke(memento.outlineStroke);\n }\n if (typeof memento.outlineColor !== \"undefined\") {\n this.setOutlineColor(memento.outlineColor);\n }\n if (typeof memento.fontFamily !== \"undefined\") {\n this.setFontFamily(memento.fontFamily);\n }\n if (typeof memento.fontSize !== \"undefined\") {\n this.setFontSize(memento.fontSize);\n }\n if (typeof memento.fontColor !== \"undefined\") {\n this.setFontColor(memento.fontColor);\n }\n\n if (typeof memento.editor === \"string\") {\n this.installEditor(eval(\"new \" + memento.editor + \"()\"));\n }\n }\n\n}); /**\r\n * @class draw2d.shape.basic.Label\r\n * Implements a simple text label.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let shape = new draw2d.shape.basic.Label({text:\"This is a simple label\", x:40, y:10});\r\n *\r\n * canvas.add(shape);\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.SetFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Line.js\":\n/*!*********************************!*\\\n !*** ./src/shape/basic/Line.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! ../../util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /**\r\n * @class draw2d.shape.basic.Line\r\n * The base class for all visible elements inside a canvas.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // Create the line and modify the start/end after inserting them into\r\n * // the canvas\r\n * let line1 = new draw2d.shape.basic.Line({startX:30, startY:30, endX:100, endY:80});\r\n *\r\n * canvas.add(line1);\r\n *\r\n * // Create the line with a given start/end coordinate in the constructor\r\n * //\r\n * let line2 = new draw2d.shape.basic.Line({\r\n * startX:20,\r\n * startY:80,\r\n * endX:200,\r\n * endY:150,\r\n * stroke:3,\r\n * color:\"#1d1dff\"\r\n * });\r\n * canvas.add(line2);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.Figure\r\n */\n\n\n_packages2.default.shape.basic.Line = _packages2.default.Figure.extend({\n NAME: \"draw2d.shape.basic.Line\",\n\n DEFAULT_COLOR: new _packages2.default.util.Color(0, 0, 0),\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas witht he given start and\r\n * end coordinate.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // click area for the line hit test\n this.corona = 10;\n this.isGlowing = false;\n this.lineColor = this.DEFAULT_COLOR;\n this.stroke = 1;\n this.outlineStroke = 0;\n this.outlineColor = new _packages2.default.util.Color(null);\n this.outlineVisible = false;\n\n this.draggedSegment = null;\n\n this.dasharray = null;\n\n this.start = new _packages2.default.geo.Point(30, 30);\n this.end = new _packages2.default.geo.Point(100, 100);\n\n this.vertices = new _packages2.default.util.ArrayList();\n this.vertices.add(this.start.clone());\n this.vertices.add(this.end.clone());\n\n this._super((0, _extend2.default)({\n deleteable: false,\n selectable: true\n }, attr), (0, _extend2.default)({}, {\n /** @attr {Number} start the coordinates of the start point */\n start: this.setStartPosition,\n /** @attr {Number} startX the x coordinate of the start point */\n startX: this.setStartX,\n /** @attr {Number} startY the y coordinate of the start point */\n startY: this.setStartY,\n /** @attr {Number} end the coordinates of the end point */\n end: this.setEndPosition,\n /** @attr {Number} endX the x coordinate of the end */\n endX: this.setEndX,\n /** @attr {Number} endY the y coordinate of the end */\n endY: this.setEndY,\n /** @attr {Number} vertices the x coordinate of the start point */\n vertices: this.setVertices,\n /** @attr {String | draw2d.util.Color} outlineColor the outline color of the line */\n outlineColor: this.setOutlineColor,\n /** @attr {Number} outlineStroke the line width of the outline */\n outlineStroke: this.setOutlineStroke,\n /** @attr {String|draw2d.util.Color} color the color of the line */\n color: this.setColor,\n /** @attr {Number} stroke the line width of the color */\n stroke: this.setStroke,\n /** @attr {String} dasharray the line pattern see {@link draw2d.shape.basic.Line#setDashArray} for more information*/\n dasharray: this.setDashArray,\n /** @attr {Boolean} glow the glow flag for the shape. The representation of the \"glow\" depends on the shape */\n glow: this.setGlow\n }, setter), (0, _extend2.default)({}, {\n start: this.getStartPosition,\n end: this.getEndPosition,\n outlineColor: this.getOutlineColor,\n outlineStroke: this.getOutlineStroke,\n stroke: this.getStroke,\n color: this.getColor,\n dasharray: this.getDashArray,\n vertices: this.getVertices\n }, getter));\n\n // some router installs a edit policy. In this case we want delete them\n //\n if (this.editPolicy.getSize() === 0) {\n this.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n }\n },\n\n /**\r\n * @method\r\n * Set the outline color of the line.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * outlineColor: color\r\n * });\r\n *\r\n * @param {draw2d.util.Color/String} color The new color of the line.\r\n * @since 4.2.1\r\n **/\n setOutlineColor: function setOutlineColor(color) {\n this.outlineColor = new _packages2.default.util.Color(color);\n this.repaint();\n this.fireEvent(\"change:outlineColor\", { value: this.outlineColor });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The outline color of the text\r\n *\r\n * @returns {draw2d.util.Color}\r\n * @since 4.2.1\r\n */\n getOutlineColor: function getOutlineColor() {\n return this.outlineColor;\n },\n\n /**\r\n * @method\r\n * Set the outline stroke of the line to use.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * outlineStroke: w\r\n * });\r\n *\r\n * @param {Number} w The new outline width of the line\r\n * @since 4.2.1\r\n **/\n setOutlineStroke: function setOutlineStroke(w) {\n this.outlineStroke = w;\n this.repaint();\n this.fireEvent(\"change:outlineStroke\", { value: this.outlineStroke });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The used outline line width.\r\n *\r\n * @returns {Number}\r\n * @since 4.2.1\r\n **/\n getOutlineStroke: function getOutlineStroke() {\n return this.outlineStroke;\n },\n\n /**\r\n * @method\r\n * Called if the drag and drop action begins. You can return [false] if you\r\n * want avoid that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} true if the figure accepts dragging\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey, isFaked) {\n var result = this._super(x, y, shiftKey, ctrlKey);\n\n if (result === true && isFaked !== true) {\n this.draggedSegment = { index: 0, start: this.start, end: this.end };\n }\n return result;\n },\n\n /**\r\n * @method\r\n * Don't call them manually. This will be done by the framework.<br>\r\n * Will be called if the object are moved via drag and drop.\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call\r\n * the super implementation via <code>this._super(dx, dy, dx2, dy2);</code>\r\n * @private\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n if (this.command === null) {\n return;\n }\n\n this.vertices.each(function (i, e) {\n e.translate(dx2, dy2);\n });\n this.command.updateVertices(this.vertices.clone());\n\n // start/end are separate draw2d.geo.Point objects. Required for routing and determining if a node is dragged away\n // from the connection. In this case we must modify the start/end by hand\n this.start.translate(dx2, dy2);\n this.end.translate(dx2, dy2);\n\n this.svgPathString = null;\n this._super(dx, dy, dx2, dy2);\n },\n\n /**\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n var _this2 = this;\n\n // Element ist zwar schon an seine Position, das Command muss aber trotzdem\n // in dem CommandStack gelegt werden damit das Undo funktioniert.\n //\n this.isInDragDrop = false;\n this.draggedSegment = null;\n\n if (this.command === null) {\n return;\n }\n\n this.canvas.getCommandStack().execute(this.command);\n this.command = null;\n this.isMoving = false;\n\n // notify all installed policies\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.onDragEnd(_this2.canvas, _this2, x, y, shiftKey, ctrlKey);\n }\n });\n\n // inform all other listener\n this.fireEvent(\"move\", { figure: this, dx: 0, dy: 0 });\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragend\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n },\n\n /**\r\n * @method\r\n * Called when a user clicks on the element.\r\n *\r\n * // Alternatively you can register for this event with\r\n * figure.on(\"click\", function(emitterFigure){\r\n * alert(\"clicked\");\r\n * });\r\n *\r\n * @template\r\n * @since 4.0.0\r\n */\n onClick: function onClick() {},\n\n /**\r\n * @method\r\n * Set the line style for this object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * dasharray: dashPattern\r\n * });\r\n *\r\n * @param {String} dashPattern Can be one of this [\"\", \"-\", \".\", \"-.\", \"-..\", \". \", \"- \", \"--\", \"- .\", \"--.\", \"--..\"]\r\n */\n setDashArray: function setDashArray(dashPattern) {\n this.dasharray = dashPattern;\n this.repaint();\n\n this.fireEvent(\"change:dashArray\", { value: this.dasharray });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the line style for this object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr(\"dasharray\");\r\n *\r\n * @since 5.1.0\r\n */\n getDashArray: function getDashArray() {\n return this.dasharray;\n },\n\n /**\r\n * @method\r\n * Set the width for the click hit test of this line.\r\n *\r\n * @param {Number} width the width of the line hit test.\r\n **/\n setCoronaWidth: function setCoronaWidth(width) {\n this.corona = width;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Called by the framework. Don't call them manually.\r\n *\r\n * @private\r\n **/\n createShapeElement: function createShapeElement() {\n var set = this.canvas.paper.set();\n\n // the drop shadow or border line\n set.push(this.canvas.paper.path(\"M\" + this.start.x + \" \" + this.start.y + \"L\" + this.end.x + \" \" + this.end.y));\n // the main path\n set.push(this.canvas.paper.path(\"M\" + this.start.x + \" \" + this.start.y + \"L\" + this.end.x + \" \" + this.end.y));\n set.node = set.items[1].node;\n\n // indicate that the outline is visible at the moment\n // the repaint update the status correct and set the attributes for\n // the first time\n this.outlineVisible = true; //this.outlineStroke>0;\n\n return set;\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n // don't override existing values\n //\n if (typeof attributes === \"undefined\") {\n attributes = {\n \"stroke\": this.lineColor.rgba(),\n \"stroke-width\": this.stroke,\n \"path\": [\"M\", this.start.x, this.start.y, \"L\", this.end.x, this.end.y].join(\" \")\n };\n } else {\n // may a router has calculate another path. don't override them.\n if (typeof attributes.path === \"undefined\") {\n attributes.path = [\"M\", this.start.x, this.start.y, \"L\", this.end.x, this.end.y].join(\" \");\n }\n _JSONUtil2.default.ensureDefault(attributes, \"stroke\", this.lineColor.rgba());\n _JSONUtil2.default.ensureDefault(attributes, \"stroke-width\", this.stroke);\n }\n\n _JSONUtil2.default.ensureDefault(attributes, \"stroke-dasharray\", this.dasharray);\n this._super(attributes);\n\n if (this.outlineStroke > 0) {\n this.shape.items[0].attr({\n \"stroke-width\": this.outlineStroke + this.stroke,\n \"stroke\": this.outlineColor.rgba()\n });\n if (this.outlineVisible === false) this.shape.items[0].show();\n this.outlineVisible = true;\n } else if (this.outlineVisible === true) {\n // reset them once\n this.shape.items[0].attr({ \"stroke-width\": 0, \"stroke\": \"none\" });\n this.shape.items[0].hide();\n this.outlineVisible = false;\n }\n },\n\n /**\r\n * @method\r\n * Moves the element to the background. Additional\r\n * the internal model changed as well.\r\n *\r\n * @since 4.7.2\r\n */\n toBack: function toBack(figure) {\n this._super(figure);\n\n if (this.outlineVisible === true) {\n this.shape.items[0].insertBefore(this.shape.items[1]);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Highlight the element or remove the highlighting\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * glow: flag\r\n * });\r\n *\r\n * @param {Boolean} flag indicates glow/noGlow\r\n * @template\r\n */\n setGlow: function setGlow(flag) {\n if (this.isGlowing === flag) {\n return;\n }\n\n if (flag === true) {\n // store old values for restore\n this._lineColor = this.lineColor;\n this._stroke = this.stroke;\n\n this.setColor(new _packages2.default.util.Color(\"#3f72bf\"));\n this.setStroke(this.stroke * 4 | 0);\n } else {\n this.setColor(this._lineColor);\n this.setStroke(this._stroke);\n }\n\n this.isGlowing = flag;\n\n return this;\n },\n\n /**\r\n * You can't drag&drop the resize handles if the line not resizeable.\r\n * @returns boolean\r\n **/\n isResizeable: function isResizeable() {\n return true;\n },\n\n /**\r\n * Set the line width. This enforce a repaint of the line.\r\n * This method fires a <i>document dirty</i> event.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * stroke: w\r\n * });\r\n *\r\n * @param {Number} w The new line width of the figure.\r\n **/\n setStroke: function setStroke(w) {\n this.stroke = parseFloat(w);\n\n this.repaint();\n this.fireEvent(\"change:stroke\", { value: this.stroke });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The used line width.\r\n *\r\n * @returns {Number}\r\n **/\n getStroke: function getStroke() {\n return this.stroke;\n },\n\n /**\r\n * @method\r\n * Set the color of the line.\r\n * This method fires a <i>document dirty</i> event.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * color: color\r\n * });\r\n *\r\n * @param {draw2d.util.Color|String} color The new color of the line.\r\n **/\n setColor: function setColor(color) {\n this.lineColor = new _packages2.default.util.Color(color);\n this.repaint();\n this.fireEvent(\"change:color\", { value: this.lineColor });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the current paint color.\r\n *\r\n * @return {draw2d.util.Color} The paint color of the line.\r\n **/\n getColor: function getColor() {\n return this.lineColor;\n },\n\n /**\r\n * @method\r\n * Translate the line with the given x/y offset.\r\n *\r\n * @param {Number} dx The new x translate offset\r\n * @param {Number} dy The new y translate offset\r\n * @since 4.1.0\r\n **/\n translate: function translate(dx, dy) {\n this.vertices.each(function (i, e) {\n e.translate(dx, dy);\n });\n\n // update start/end if the first or last vertex has been changed\n //\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.svgPathString = null;\n this.repaint();\n\n return this;\n },\n\n /**\r\n * @method\r\n * return the bounding box of the line or polygon\r\n *\r\n * TODO: precalculate or cache this values\r\n *\r\n * @returns {draw2d.geo.Rectangle}\r\n * @since 4.8.2\r\n */\n getBoundingBox: function getBoundingBox() {\n var minX = Math.min.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.x;\n })));\n var minY = Math.min.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.y;\n })));\n var maxX = Math.max.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.x;\n })));\n var maxY = Math.max.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.y;\n })));\n var width = maxX - minX;\n var height = maxY - minY;\n\n return new _packages2.default.geo.Rectangle(minX, minY, width, height);\n },\n\n /**\r\n * @method\r\n * Set the start point of the line.\r\n * This method fires a <i>document dirty</i> event.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * startX: x,\r\n * startY: y\r\n * });\r\n *\r\n * @param {Number|draw2d.geo.Point} x the x coordinate of the start point\r\n * @param {Number} [y] the y coordinate of the start point\r\n **/\n setStartPosition: function setStartPosition(x, y) {\n var pos = new _packages2.default.geo.Point(x, y);\n if (this.start.equals(pos)) {\n return this;\n }\n\n this.start.setPosition(pos);\n this.vertices.first().setPosition(pos);\n this.repaint();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n this.fireEvent(\"change:start\", { value: this.start });\n\n return this;\n },\n /** @deprecated */\n setStartPoint: function setStartPoint(x, y) {\n return this.setStartPosition(x, y);\n },\n\n setStartX: function setStartX(x) {\n this.setStartPosition(x, this.start.y);\n },\n\n setStartY: function setStartY(y) {\n this.setStartPosition(this.start.x, y);\n },\n\n setEndX: function setEndX(x) {\n this.setEndPosition(x, this.end.y);\n },\n\n setEndY: function setEndY(y) {\n this.setEndPosition(this.end.x, y);\n },\n\n /**\r\n * Set the end point of the line.\r\n * This method fires a <i>document dirty</i> event.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * endX: 3,\r\n * endY: 10\r\n * });\r\n *\r\n * // or\r\n * figure.attr({\r\n * end: {x:3, y:10}\r\n * });\r\n * @param {Number|draw2d.geo.Point} x the x coordinate or a draw2d.geo.Point of the end point\r\n * @param {Number} [y] the y coordinate of the end point\r\n **/\n setEndPosition: function setEndPosition(x, y) {\n var pos = new _packages2.default.geo.Point(x, y);\n if (this.end.equals(pos)) {\n return this;\n }\n\n this.end.setPosition(pos);\n this.vertices.last().setPosition(pos);\n this.repaint();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.fireEvent(\"change:end\", { value: this.end });\n\n return this;\n },\n /** @deprecated **/\n setEndPoint: function setEndPoint(x, y) {\n return this.setEndPosition(x, y);\n },\n\n /**\r\n * @method\r\n * Return the x coordinate of the start.\r\n * @return {Number}\r\n **/\n getStartX: function getStartX() {\n return this.start.x;\n },\n\n /**\r\n * @method\r\n * Return the y coordinate of the start.\r\n *\r\n * @return {Number}\r\n **/\n getStartY: function getStartY() {\n return this.start.y;\n },\n\n /**\r\n * @method\r\n * Return the start point.\r\n *\r\n * @return {draw2d.geo.Point}\r\n **/\n getStartPosition: function getStartPosition() {\n return this.start.clone();\n },\n /** @deprecated **/\n getStartPoint: function getStartPoint() {\n return this.getStartPosition();\n },\n\n /**\r\n * @method\r\n * Return the x coordinate of the end point\r\n *\r\n * @return {Number}\r\n **/\n getEndX: function getEndX() {\n return this.end.x;\n },\n\n /**\r\n * @method\r\n * Return the y coordinate of the end point.\r\n *\r\n * @return {Number}\r\n **/\n getEndY: function getEndY() {\n return this.end.y;\n },\n\n /**\r\n * @method\r\n * Return the end point.\r\n *\r\n * @return {draw2d.geo.Point}\r\n **/\n getEndPosition: function getEndPosition() {\n return this.end.clone();\n },\n /** @deprecated **/\n getEndPoint: function getEndPoint() {\n return this.getEndPosition();\n },\n\n /**\r\n * @method\r\n * The x-offset related to the parent figure or canvas.\r\n *\r\n * @return {Number} the x-offset to the parent figure\r\n **/\n getX: function getX() {\n return this.getBoundingBox().x;\n },\n\n /**\r\n * @method\r\n * The x-offset related to the parent figure or canvas.\r\n *\r\n * @return {Number} the x-offset to the parent figure\r\n **/\n getY: function getY() {\n return this.getBoundingBox().y;\n },\n\n /**\r\n * @method\r\n * Return the Vertex with the given index.\r\n *\r\n * @param {Number} index the index of the vertex to return\r\n */\n getVertex: function getVertex(index) {\n return this.vertices.get(index);\n },\n\n /**\r\n * @method\r\n * Update the vertex at the give position with the new coordinate\r\n *\r\n * @param {Number} index the index of the vertex to update\r\n * @param {Number|draw2d.geo.Point} x the x coordinate or the draw2d.geo.Point object\r\n * @param {Number} [y] the y coordinate or undefined of the second argument is a point\r\n *\r\n * @since 4.0.0\r\n */\n setVertex: function setVertex(index, x, y) {\n if (x instanceof _packages2.default.geo.Point) {\n y = x.y;\n x = x.x;\n }\n\n var vertex = this.vertices.get(index);\n\n // invalid point or nothing to do\n //\n if (vertex === null || vertex.x === x && vertex.y === y) {\n return;\n }\n\n vertex.x = parseFloat(x);\n vertex.y = parseFloat(y);\n\n // update start/end if the first or last vertex has been changed\n //\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n\n this.svgPathString = null;\n this.routingRequired = true;\n this.repaint();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the vertices of the connection\r\n *\r\n * @return {draw2d.util.ArrayList} an draw2d.util.ArrayList of type draw2d.Point\r\n **/\n getVertices: function getVertices() {\n return this.vertices;\n },\n\n /**\r\n * @method\r\n * Update the vertices of the object. The given array is copied and assigned.\r\n *\r\n * @param {draw2d.util.ArrayList|Array} vertices the new vertices of the polyline.\r\n *\r\n * @since 4.0.1\r\n */\n setVertices: function setVertices(vertices) {\n var _this3 = this;\n\n var _this = this;\n // convert json document/array to draw2d ArrayList\n //\n if (Array.isArray(vertices)) {\n this.vertices = new _packages2.default.util.ArrayList();\n vertices.forEach(function (element) {\n _this3.vertices.add(new _packages2.default.geo.Point(element));\n });\n }\n // use the given ArrayList\n //\n else if (vertices instanceof _packages2.default.util.ArrayList) {\n this.vertices = vertices.clone(true);\n } else {\n throw \"invalid argument for Line.setVertices\";\n }\n\n // can happen if the given vertices array is empty\n //\n if (this.vertices.getSize() > 1) {\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n }\n\n // update the UI and the segment parts\n this.svgPathString = null;\n this.repaint();\n\n // align the SelectionHandles to the new situation\n // This is a Hack....normally this should be done below and the Line shouldn't know\n // something about this issue....this is complete a \"EditPolicy\" domain to handle this.\n if (!this.selectionHandles.isEmpty()) {\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n e.onUnselect(_this.canvas, _this);\n e.onSelect(_this.canvas, _this);\n }\n });\n }\n\n // notify the listener about the changes\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the segments of the line with {start:s, end: e} JSON array list\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getSegments: function getSegments() {\n var result = new _packages2.default.util.ArrayList();\n result.add({ start: this.getStartPosition(), end: this.getEndPosition() });\n\n return result;\n },\n\n /**\r\n * @method\r\n * Returns the length of the line.\r\n *\r\n * @return {Number}\r\n **/\n getLength: function getLength() {\n return Math.sqrt((this.start.x - this.end.x) * (this.start.x - this.end.x) + (this.start.y - this.end.y) * (this.start.y - this.end.y));\n },\n\n /**\r\n * @method\r\n * Returns the angle of the line in degree.\r\n *\r\n * <pre>\r\n * 270°\r\n * |\r\n * |\r\n * |\r\n * |\r\n * 180° -------------------------+------------------------> +X\r\n * | 0°\r\n * |\r\n * |\r\n * |\r\n * V +Y\r\n * 90°\r\n * </pre>\r\n * @return {Number}\r\n **/\n getAngle: function getAngle() {\n var length = this.getLength();\n var angle = -(180 / Math.PI) * Math.asin((this.start.y - this.end.y) / length);\n\n if (angle < 0) {\n if (this.end.x < this.start.x) {\n angle = Math.abs(angle) + 180;\n } else {\n angle = 360 - Math.abs(angle);\n }\n } else {\n if (this.end.x < this.start.x) {\n angle = 180 - angle;\n }\n }\n return angle;\n },\n\n /**\r\n * @method\r\n * Returns the Command to perform the specified Request or null if the shape want cancel the\r\n * operation or it can't operate the command.\r\n *\r\n * @param {draw2d.command.CommandType} request describes the Command being requested\r\n * @return {draw2d.command.Command} null or a Command\r\n * @private\r\n **/\n createCommand: function createCommand(request) {\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE) {\n if (this.isDraggable()) {\n return new _packages2.default.command.CommandMoveVertices(this);\n }\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.DELETE) {\n if (this.isDeleteable()) {\n return new _packages2.default.command.CommandDelete(this);\n }\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE_BASEPOINT) {\n if (this.isDraggable()) {\n return new _packages2.default.command.CommandMoveVertex(this);\n }\n }\n\n return null;\n },\n\n installEditPolicy: function installEditPolicy(policy) {\n if (!(policy instanceof _packages2.default.policy.line.LineSelectionFeedbackPolicy) && policy instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n return; // silently\n }\n\n this._super(policy);\n },\n\n /**\r\n * @method\r\n * Checks if the hands over coordinate close to the line. The 'corona' is considered\r\n * for this test. This means the point isn't direct on the line. Is it only close to the\r\n * line!\r\n *\r\n * @param {Number} px the x coordinate of the test point\r\n * @param {Number} py the y coordinate of the test point\r\n * @return {Boolean}\r\n **/\n hitTest: function hitTest(px, py) {\n return _packages2.default.shape.basic.Line.hit(this.corona + this.stroke, this.start.x, this.start.y, this.end.x, this.end.y, px, py);\n },\n\n /**\r\n * @method\r\n * Returns the projection of the point on the line.\r\n *\r\n * @param {Number} px the x coordinate of the test point\r\n * @param {Number} py the y coordinate of the test point\r\n * @return {draw2d.geo.Point}\r\n **/\n pointProjection: function pointProjection(px, py) {\n var pt = new _packages2.default.geo.Point(px, py);\n var p1 = this.getStartPosition();\n var p2 = this.getEndPosition();\n return _packages2.default.geo.Line.pointProjection(p1.x, p1.y, p2.x, p2.y, pt.x, pt.y);\n },\n\n /**\r\n * @method\r\n * Returns the point onto the line which has the 'percentage' position onto the line.\r\n *\r\n * @param {Number} percentage value between [0..1]\r\n * @returns {*}\r\n */\n lerp: function lerp(percentage) {\n var p1 = this.getStartPosition();\n var p2 = this.getEndPosition();\n percentage = Math.min(1, Math.max(0, percentage));\n return new _packages2.default.geo.Point(p1.x + (p2.x - p1.x) * percentage, p1.y + (p2.y - p1.y) * percentage);\n },\n\n /**\r\n * @method\r\n * Return all intersection points between the given Line.\r\n *\r\n * @param {draw2d.shape.basic.Line} other\r\n * @returns {draw2d.util.ArrayList}\r\n */\n intersection: function intersection(other) {\n var result = new _packages2.default.util.ArrayList();\n\n // empty result. the lines are equal...infinit array\n if (other === this) {\n return result;\n }\n\n var segments1 = this.getSegments();\n var segments2 = other.getSegments();\n\n segments1.each(function (i, s1) {\n segments2.each(function (j, s2) {\n var p = _packages2.default.shape.basic.Line.intersection(s1.start, s1.end, s2.start, s2.end);\n if (p !== null) {\n result.add(p);\n }\n });\n });\n return result;\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n delete memento.x;\n delete memento.y;\n delete memento.width;\n delete memento.height;\n\n memento.stroke = this.stroke;\n memento.color = this.getColor().rgba();\n memento.outlineStroke = this.outlineStroke;\n memento.outlineColor = this.outlineColor.rgba();\n if (this.dasharray !== null) {\n memento.dasharray = this.dasharray;\n }\n\n if (this.editPolicy.getSize() > 0) {\n memento.policy = this.editPolicy.first().NAME;\n }\n\n // the attribute \"vertex\" will be overridden by a router if the element is a\n // \"PolyLine\" instance and has the correct router. Connections mainly ignore this\n // attribute because the start/end is defined by the ports and the vertices in between are\n // calculated by a router.\n memento.vertex = [];\n this.getVertices().each(function (i, e) {\n memento.vertex.push({ x: e.x, y: e.y });\n });\n\n return memento;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n * @returns\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.dasharray === \"string\") {\n this.dasharray = memento.dasharray;\n }\n if (typeof memento.stroke !== \"undefined\") {\n this.setStroke(parseFloat(memento.stroke));\n }\n if (typeof memento.color !== \"undefined\") {\n this.setColor(memento.color);\n }\n if (typeof memento.outlineStroke !== \"undefined\") {\n this.setOutlineStroke(memento.outlineStroke);\n }\n if (typeof memento.outlineColor !== \"undefined\") {\n this.setOutlineColor(memento.outlineColor);\n }\n if (typeof memento.policy !== \"undefined\") {\n try {\n this.installEditPolicy(eval(\"new \" + memento.policy + \"()\"));\n } catch (exc) {\n debug.warn(\"Unable to install edit policy '\" + memento.policy + \"' forced by \" + this.NAME + \".setPersistentAttributes. Using default.\");\n }\n }\n\n // restore the vertex of the connection/line if any are given\n //\n // it makes no sense to restore vertices with only zero or one vertex. This\n // isn't a \"line\" at all.\n if (Array.isArray(memento.vertex) && memento.vertex.length > 1) {\n this.setVertices(memento.vertex);\n }\n }\n});\n\n/**\r\n * see: http://en.wikipedia.org/wiki/Line-line_intersection\r\n *\r\n * @param {draw2d.geo.Point} a1\r\n * @param {draw2d.geo.Point} a2\r\n * @param {draw2d.geo.Point} b1\r\n * @param {draw2d.geo.Point} b2\r\n *\r\n * @static\r\n * @private\r\n * @returns {draw2d.geo.Point}\r\n */\n_packages2.default.shape.basic.Line.intersection = function (a1, a2, b1, b2) {\n var result = null;\n\n var ua_t = (b2.x - b1.x) * (a1.y - b1.y) - (b2.y - b1.y) * (a1.x - b1.x);\n var ub_t = (a2.x - a1.x) * (a1.y - b1.y) - (a2.y - a1.y) * (a1.x - b1.x);\n var u_b = (b2.y - b1.y) * (a2.x - a1.x) - (b2.x - b1.x) * (a2.y - a1.y);\n\n if (u_b !== 0) {\n var ua = ua_t / u_b;\n var ub = ub_t / u_b;\n\n if (0 <= ua && ua <= 1 && 0 <= ub && ub <= 1) {\n result = new _packages2.default.geo.Point(a1.x + ua * (a2.x - a1.x) | 0, a1.y + ua * (a2.y - a1.y) | 0);\n\n // determine if the lines are crossing or just touching\n //\n result.justTouching = 0 === ua || ua === 1 || 0 === ub || ub === 1;\n }\n }\n\n return result;\n};\n\n/**\r\n * Static util function to determine is a point(px,py) on the line(x1,y1,x2,y2)\r\n * A simple hit test.\r\n *\r\n * @return {Boolean}\r\n * @static\r\n * @private\r\n * @param {Number} coronaWidth the accepted corona for the hit test\r\n * @param {Number} X1 x coordinate of the start point of the line\r\n * @param {Number} Y1 y coordinate of the start point of the line\r\n * @param {Number} X2 x coordinate of the end point of the line\r\n * @param {Number} Y2 y coordinate of the end point of the line\r\n * @param {Number} px x coordinate of the point to test\r\n * @param {Number} py y coordinate of the point to test\r\n **/\n_packages2.default.shape.basic.Line.hit = function (coronaWidth, X1, Y1, X2, Y2, px, py) {\n return _packages2.default.geo.Line.distance(X1, Y1, X2, Y2, px, py) < coronaWidth;\n};\n\n/***/ }),\n\n/***/ \"./src/shape/basic/LineEndResizeHandle.js\":\n/*!************************************************!*\\\n !*** ./src/shape/basic/LineEndResizeHandle.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.LineEndResizeHandle = _packages2.default.shape.basic.LineResizeHandle.extend({\n NAME: \"draw2d.shape.basic.LineEndResizeHandle\",\n\n init: function init(figure) {\n this._super({ owner: figure, index: figure.getVertices().getSize() - 1 });\n },\n\n /**\r\n * @method\r\n * Return the Port assigned to this ResizeHandle if the line is an instance of draw2d.Connection\r\n *\r\n * @return {draw2d.Port}\r\n */\n getRelatedPort: function getRelatedPort() {\n if (this.owner instanceof _packages2.default.Connection) {\n return this.owner.getTarget();\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Return the peer Port assigned to this ResizeHandle if the line is an instance of draw2d.Connection\r\n *\r\n * @returns {draw2d.Port}\r\n */\n getOppositePort: function getOppositePort() {\n if (this.owner instanceof _packages2.default.Connection) {\n return this.owner.getSource();\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Called from the framework during a drag&drop operation\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @return {Boolean}\r\n * @private\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n this._super(dx, dy, dx2, dy2);\n\n var objPos = this.owner.getEndPoint().clone();\n objPos.translate(dx2, dy2);\n\n if (this.command !== null) {\n this.command.updatePosition(objPos);\n }\n\n this.owner.setEndPoint(objPos);\n\n this.owner.isMoving = true;\n\n return true;\n },\n\n /**\r\n * @method\r\n * Resizehandle has been drop on a InputPort/OutputPort.\r\n *\r\n * @param {draw2d.Figure} dropTarget\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onDrop: function onDrop(dropTarget, x, y, shiftKey, ctrlKey) {\n this.owner.isMoving = false;\n\n if (this.owner instanceof _packages2.default.Connection && this.command !== null) {\n this.command.setNewPorts(this.owner.getSource(), dropTarget);\n this.getCanvas().getCommandStack().execute(this.command);\n }\n this.command = null;\n },\n\n /**\r\n * @method\r\n * Controls the location of the resize handle\r\n *\r\n **/\n relocate: function relocate() {\n\n var resizeWidthHalf = this.getWidth() / 2;\n var resizeHeightHalf = this.getHeight() / 2;\n\n var anchor = this.owner.getEndPoint();\n\n this.setPosition(anchor.x - resizeWidthHalf, anchor.y - resizeHeightHalf);\n\n return this;\n }\n}); /**\r\n * @class draw2d.shape.basic.LineEndResizeHandle\r\n *\r\n * Selection handle for connections and normal lines.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.LineResizeHandle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/LineResizeHandle.js\":\n/*!*********************************************!*\\\n !*** ./src/shape/basic/LineResizeHandle.js ***!\n \\*********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.basic.LineResizeHandle\r\n * Base class for selection handle for connections and normal lines.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Circle\r\n */\n_packages2.default.shape.basic.LineResizeHandle = _packages2.default.shape.basic.Circle.extend({\n NAME: \"draw2d.shape.basic.LineResizeHandle\",\n\n init: function init(attr, setter, getter) {\n var _this = this;\n\n this.zoomCallback = function () {\n _this.attr({\n width: _this.origWidth * _this.getCanvas().getZoom(),\n height: _this.origHeight * _this.getCanvas().getZoom(),\n stroke: _this.origStroke * _this.getCanvas().getZoom()\n });\n // size of the ResizeHandle has changed. Force a reposition of handle\n //\n if (!_this.blockEvent) _this.owner.fireEvent(\"move\", {});\n };\n\n this._super((0, _extend2.default)({\n bgColor: \"#5bcaff\",\n stroke: 1,\n width: 10,\n height: 10,\n minWidth: 0.3,\n minHeight: 0.3,\n selectable: false\n }, attr), (0, _extend2.default)({\n owner: this.setOwner,\n index: this.setIndex\n }, setter), (0, _extend2.default)({\n owner: this.getOwner,\n index: this.getIndex\n }, getter));\n\n // required in the SelectionEditPolicy to indicate the type of figure\n // which the user clicks\n this.isResizeHandle = true;\n this.currentTarget = null;\n\n this.origWidth = this.width;\n this.origHeight = this.height;\n this.origStroke = this.stroke;\n },\n\n /**\r\n * @method\r\n * Returns the current used SVG as string\r\n *\r\n * @returns {String}\r\n */\n getOwner: function getOwner() {\n return this.owner;\n },\n\n setOwner: function setOwner(owner) {\n this.owner = owner;\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the index of the selection. In case of a PlyLine the count is dynamic.\r\n *\r\n * @returns {Number}\r\n */\n getIndex: function getIndex() {\n return this.index;\n },\n\n setIndex: function setIndex(index) {\n this.index = index;\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createShapeElement: function createShapeElement() {\n var shape = this._super();\n\n shape.attr({ \"cursor\": \"move\" });\n return shape;\n },\n\n /**\r\n * @inheritdoc\r\n **/\n setBackgroundColor: function setBackgroundColor(color) {\n color = new _packages2.default.util.Color(color);\n\n this.bgGradient = \"r(.4,.3)\" + color.hash() + \"-\" + color.darker(0.1).hash() + \":60-\" + color.darker(0.2).hash();\n this._super(color);\n this.setColor(color.darker(0.3));\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the port below the ResizeHandle.\r\n *\r\n * @template\r\n * @return {draw2d.Port}\r\n */\n getRelatedPort: function getRelatedPort() {\n return null;\n },\n\n /**\r\n * @method\r\n * Return the port of the other side of the related connection.\r\n *\r\n * @template\r\n * @return {draw2d.Port}\r\n */\n getOppositePort: function getOppositePort() {\n return null;\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n if (this.bgColor.hash() === \"none\") {\n attributes.fill = this.bgColor.rgba();\n } else if (this.getAlpha() < 0.9) {\n attributes.fill = this.bgColor.rgba();\n } else {\n attributes.fill = this.bgGradient;\n }\n\n this._super(attributes);\n },\n\n /**\r\n * Called if the drag and drop action begins. You can return [false] if you\r\n * want avoid the that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @type {Boolean}\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n this.command = this.owner.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE_BASEPOINT));\n // no drag&drop allowed if we didn'T have a valid command.\n // This is one way to send a veto for Connection reconnect\n if (this.command !== null) {\n this.command.setIndex(this.index);\n }\n\n this.setAlpha(0.2);\n this.shape.attr({ \"cursor\": \"crosshair\" });\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragstart\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n return true;\n },\n\n /**\r\n * @method\r\n * Called from the framework during a drag&drop operation\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @return {Boolean}\r\n * @private\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n this.setPosition(this.x + dx2, this.y + dy2);\n\n var port = this.getOppositePort();\n\n var target = port !== null ? port.getCanvas().getBestFigure(this.getX(), this.getY(), [this, this.owner]) : null;\n\n // the hovering element has been changed\n if (target !== this.currentTarget) {\n\n if (this.currentTarget !== null) {\n this.currentTarget.onDragLeave(port);\n this.currentTarget.setGlow(false);\n this.currentTarget.fireEvent(\"dragLeave\", { draggingElement: port });\n }\n\n if (target !== null) {\n this.currentTarget = target.delegateTarget(port);\n if (this.currentTarget !== null) {\n this.currentTarget.setGlow(true);\n this.currentTarget.onDragEnter(port); // legacy\n this.currentTarget.fireEvent(\"dragEnter\", { draggingElement: port });\n }\n }\n }\n\n return true;\n },\n\n /**\r\n * @method Called after a drag and drop action.<br>\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call the super implementation via <code>this._super();</code>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean}\r\n */\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n if (!this.isDraggable()) {\n return false;\n }\n\n this.shape.attr({ \"cursor\": \"move\" });\n\n var port = this.getOppositePort();\n if (port !== null) {\n if (this.currentTarget !== null) {\n\n this.onDrop(this.currentTarget, x, y, shiftKey, ctrlKey);\n this.currentTarget.onDragLeave(port);\n this.currentTarget.setGlow(false);\n this.currentTarget.fireEvent(\"dragLeave\", { draggingElement: port });\n this.currentTarget.onCatch(this, x, y, shiftKey, ctrlKey);\n this.currentTarget = null;\n }\n }\n\n this.owner.isMoving = false;\n // A Connection is stuck to the corresponding ports. So we must reset the position\n // to the origin port if we doesn't drop the ResizeHandle on a other port.\n //\n if (this.owner instanceof _packages2.default.Connection) {\n if (this.command !== null) {\n this.command.cancel();\n }\n }\n //\n else {\n // An non draggable resizeHandle doesn't create a move/resize command.\n // This happens if the selected figure has set \"isResizeable=false\".\n //\n if (this.command !== null) {\n this.getCanvas().getCommandStack().execute(this.command);\n }\n }\n this.command = null;\n\n this.setAlpha(1);\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragend\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n },\n\n /**\r\n * @method\r\n * Controls the position of the ResizeHandle\r\n * Called by the framework.\r\n *\r\n **/\n relocate: function relocate() {\n\n return this;\n },\n\n /**\r\n * @method\r\n * The LineResizeHandle didn't support the SnapToHelper feature if the\r\n * corresponding object is an Connection. A Connection is always bounded to\r\n * Port. In this case it makes no sense to use a Grid or Geometry for snapping.\r\n *\r\n * @return {Boolean} return false if the corresponding object didn't support snapTo\r\n **/\n supportsSnapToHelper: function supportsSnapToHelper() {\n if (this.owner instanceof _packages2.default.Connection) {\n return false;\n }\n\n return true;\n },\n\n /**\r\n * @method\r\n * Show the ResizeHandle and add it to the canvas.<br>\r\n * Additional bring it in to the front of other figures.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to use\r\n * @param {Number} x the x-position\r\n * @param {Number} y the y-position\r\n **/\n show: function show(canvas, x, y) {\n if (x) debugger;\n // don't call the parent function. The parent functions make this object selectable/deleteable\n // and a resize handle can't be deleted.\n this.setCanvas(canvas);\n try {\n this.blockEvent = true;\n this.zoomCallback();\n } finally {\n this.blockEvent = false;\n }\n\n // this.setPosition(x,y);\n this.shape.toFront();\n this.canvas.resizeHandles.add(this);\n },\n\n /**\r\n * @method\r\n * Hide the resize handle and remove it from the canvas.\r\n *\r\n **/\n hide: function hide() {\n // don't call the parent function. The parent functions delete this object\n // and a resize handle shouldn't be deleted.\n if (this.shape === null) {\n return;\n }\n\n this.canvas.resizeHandles.remove(this);\n this.setCanvas(null);\n },\n\n setCanvas: function setCanvas(canvas) {\n\n if (this.canvas !== null) {\n this.canvas.off(this.zoomCallback);\n }\n\n this._super(canvas);\n\n if (this.canvas !== null) {\n this.canvas.on(\"zoom\", this.zoomCallback);\n }\n },\n\n /**\r\n * @method\r\n * Override this method and redirect them to the canvas. A ResizeHandle didn't support\r\n * Keyboard interaction at the moment.\r\n *\r\n * @param {Number} keyCode the id of the pressed key\r\n * @param {Boolean} ctrl true if the user has pressed the CTRL/STRG key as well.\r\n **/\n onKeyDown: function onKeyDown(keyCode, ctrl) {\n // don't call the parent function. The parent functions delete this object\n // and a resize handle can't be deleted.\n this.canvas.onKeyDown(keyCode, ctrl);\n }\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/LineStartResizeHandle.js\":\n/*!**************************************************!*\\\n !*** ./src/shape/basic/LineStartResizeHandle.js ***!\n \\**************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.LineStartResizeHandle = _packages2.default.shape.basic.LineResizeHandle.extend({\n NAME: \"draw2d.shape.basic.LineStartResizeHandle\",\n\n init: function init(figure) {\n this._super({ owner: figure, index: 0 });\n },\n\n /**\r\n * @method\r\n * Return the Port below the ResizeHandle\r\n *\r\n * @return {draw2d.Port}\r\n */\n getRelatedPort: function getRelatedPort() {\n if (this.owner instanceof _packages2.default.Connection) return this.owner.getSource();\n\n return null;\n },\n\n /**\r\n * @method\r\n * Return the Port on the opposite side of the ResizeHandle\r\n *\r\n * @returns\r\n */\n getOppositePort: function getOppositePort() {\n if (this.owner instanceof _packages2.default.Connection) return this.owner.getTarget();\n\n return null;\n },\n\n /**\r\n * @method\r\n * Called from the framework during a drag&drop operation\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @return {Boolean}\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n this._super(dx, dy, dx2, dy2);\n\n var objPos = this.owner.getStartPoint();\n objPos.translate(dx2, dy2);\n\n if (this.command !== null) {\n this.command.updatePosition(objPos);\n }\n this.owner.setStartPoint(objPos);\n\n this.owner.isMoving = true;\n\n return true;\n },\n\n /**\r\n * @method\r\n * Resize handle has been drop on a InputPort/OutputPort.\r\n *\r\n * @param {draw2d.Port} dropTarget\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n **/\n onDrop: function onDrop(dropTarget, x, y, shiftKey, ctrlKey) {\n this.owner.isMoving = false;\n\n // The ResizeHandle of a Connection has been dropped on a Port\n // This will enforce a ReconnectCommand\n if (this.owner instanceof _packages2.default.Connection && this.command !== null) {\n this.command.setNewPorts(dropTarget, this.owner.getTarget());\n this.getCanvas().getCommandStack().execute(this.command);\n }\n this.command = null;\n },\n\n /**\r\n * @method\r\n * Controls the location of the resize handle\r\n **/\n relocate: function relocate() {\n var resizeWidthHalf = this.getWidth() / 2;\n var resizeHeightHalf = this.getHeight() / 2;\n\n var anchor = this.owner.getStartPoint();\n\n this.setPosition(anchor.x - resizeWidthHalf, anchor.y - resizeHeightHalf);\n\n return this;\n }\n}); /**\r\n * @class draw2d.shape.basic.LineStartResizeHandle\r\n * Selection handle for connections and normal lines.\r\n *\r\n * TODO: Split the LineEndResizeHandle to ConnectionEndResizeHandle and LineEndResizeHandle!!!!\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.LineResizeHandle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Oval.js\":\n/*!*********************************!*\\\n !*** ./src/shape/basic/Oval.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.basic.Oval\r\n * Oval figure.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let oval = new draw2d.shape.basic.Oval({width:150, height:100, x:50, y:10});\r\n *\r\n * canvas.add(oval);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.VectorFigure\r\n */\n_packages2.default.shape.basic.Oval = _packages2.default.VectorFigure.extend({\n NAME: \"draw2d.shape.basic.Oval\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super((0, _extend2.default)({\n bgColor: \"#C02B1D\",\n color: \"#1B1B1B\"\n }, attr), (0, _extend2.default)({\n center: this.setCenter\n }, setter), getter);\n },\n\n /**\r\n * @template\r\n **/\n createShapeElement: function createShapeElement() {\n var halfW = this.getWidth() / 2;\n var halfH = this.getHeight() / 2;\n\n return this.canvas.paper.ellipse(this.getAbsoluteX() + halfW, this.getAbsoluteY() + halfH, halfW, halfH);\n },\n\n /**\r\n * @method\r\n * Get the center of the figure\r\n *\r\n */\n getCenter: function getCenter() {\n var w2 = this.getWidth() / 2;\n var h2 = this.getHeight() / 2;\n\n return this.getPosition().translate(w2, h2);\n },\n\n /**\r\n * @method\r\n * Set the center of the figure.\r\n *\r\n * @param {Number|draw2d.geo.Point} x the new x coordinate of the center or a draw2d.geo.Point object with the center\r\n * @param {Number} [y] the y coordinate of the new center of the first argument isn't a draw2d.geo.Point object\r\n */\n setCenter: function setCenter(x, y) {\n var pos = new _packages2.default.geo.Point(x, y);\n var w2 = this.getWidth() / 2;\n var h2 = this.getHeight() / 2;\n\n pos.translate(-w2, -h2);\n this.setPosition(pos);\n\n this.fireEvent(\"change:center\", { value: { x: x, y: y } });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n * @template\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n // don't override cx/cy if inherited class has set the center already.\n if (typeof attributes.rx === \"undefined\") {\n attributes.rx = this.width / 2;\n attributes.ry = this.height / 2;\n }\n\n // don't override cx/cy if inherited class has set the center already.\n if (typeof attributes.cx === \"undefined\") {\n attributes.cx = this.getAbsoluteX() + attributes.rx;\n attributes.cy = this.getAbsoluteY() + attributes.ry;\n }\n\n this._super(attributes);\n },\n\n /**\r\n * @method\r\n *\r\n * NOTE: Rotation will need to be added to this function\r\n *\r\n **/\n intersectionWithLine: function intersectionWithLine(a1, a2) {\n var rx = this.getWidth() / 2;\n var ry = this.getHeight() / 2;\n\n var result = new _packages2.default.util.ArrayList();\n\n var origin = new _packages2.default.geo.Point(a1.x, a1.y);\n var dir = a2.subtract(a1);\n var center = new _packages2.default.geo.Point(this.getAbsoluteX() + rx, this.getAbsoluteY() + ry);\n var diff = origin.subtract(center);\n var mDir = new _packages2.default.geo.Point(dir.x / (rx * rx), dir.y / (ry * ry));\n var mDiff = new _packages2.default.geo.Point(diff.x / (rx * rx), diff.y / (ry * ry));\n\n var a = dir.dot(mDir);\n var b = dir.dot(mDiff);\n var c = diff.dot(mDiff) - 1.0;\n var d = b * b - a * c;\n\n if (d < 0) {\n // \"Outside\"\n } else if (d > 0) {\n var root = Math.sqrt(d);\n var t_a = (-b - root) / a;\n var t_b = (-b + root) / a;\n\n if ((t_a < 0 || 1 < t_a) && (t_b < 0 || 1 < t_b)) {\n if (t_a < 0 && t_b < 0 || t_a > 1 && t_b > 1) {\n //\"Outside\";\n } else {\n //\"Inside\";\n }\n } else {\n if (0 <= t_a && t_a <= 1) result.add(a1.lerp(a2, t_a));\n if (0 <= t_b && t_b <= 1) result.add(a1.lerp(a2, t_b));\n }\n } else {\n var t = -b / a;\n if (0 <= t && t <= 1) {\n result.add(a1.lerp(a2, t));\n } else {\n //\"Outside\";\n }\n }\n\n return result;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/PolyLine.js\":\n/*!*************************************!*\\\n !*** ./src/shape/basic/PolyLine.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! ../../util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.PolyLine = _packages2.default.shape.basic.Line.extend({\n\n NAME: \"draw2d.shape.basic.PolyLine\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // internal status handling for performance reasons\n //\n this.svgPathString = null;\n this.oldPoint = null;\n\n this.router = null;\n this.routingRequired = true;\n this.lineSegments = new _packages2.default.util.ArrayList();\n\n this.radius = \"\";\n\n this._super((0, _extend2.default)({\n router: new _packages2.default.layout.connection.VertexRouter()\n }, attr), (0, _extend2.default)({}, {\n /** @attr {draw2d.layout.connection.ConnectionRouter} the router to use to layout the polyline */\n router: this.setRouter,\n /** @attr {Number} radius the radius to render the line edges */\n radius: this.setRadius\n }, setter), (0, _extend2.default)({}, {\n router: this.getRouter,\n radius: this.getRadius\n }, getter));\n },\n\n /**\r\n * @method\r\n * Sets the corner radius of the edges.\r\n *\r\n * @param {Number} radius the corner radius\r\n * @since 4.2.1\r\n */\n setRadius: function setRadius(radius) {\n this.radius = radius;\n this.svgPathString = null;\n this.repaint();\n this.fireEvent(\"change:radius\", { value: this.radius });\n\n return this;\n },\n\n setOutlineStroke: function setOutlineStroke(w) {\n if (this.outlineStroke !== w) {\n this.svgPathString = null;\n this.routingRequired = true;\n }\n this._super(w);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the corner radius of the edges.\r\n *\r\n * @return {Number}\r\n * @since 4.2.1\r\n */\n getRadius: function getRadius() {\n return this.radius;\n },\n\n /**\r\n * @method\r\n * Set the start point of the line.\r\n *\r\n * @param {Number} x the x coordinate of the start point\r\n * @param {Number} y the y coordinate of the start point\r\n **/\n setStartPoint: function setStartPoint(x, y) {\n if (this.vertices.getSize() > 0) {\n this.vertices.first().setPosition(x, y);\n } else {\n this.vertices.add(new _packages2.default.geo.Point(x, y));\n }\n this.start = this.vertices.first().clone();\n // if(this.isInDragDrop===false)\n this.calculatePath({ startMoved: true, endMoved: false });\n\n this.repaint();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.fireEvent(\"change:start\", { value: this.start });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the end point of the line.\r\n *\r\n * @param {Number} x the x coordinate of the end point\r\n * @param {Number} y the y coordinate of the end point\r\n */\n setEndPoint: function setEndPoint(x, y) {\n if (this.vertices.getSize() > 1) {\n this.vertices.last().setPosition(x, y);\n } else {\n this.vertices.add(new _packages2.default.geo.Point(x, y));\n }\n this.end = this.vertices.last().clone();\n\n if (this.isInDragDrop === false) this.calculatePath({ startMoved: false, endMoved: true });\n\n this.repaint();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n this.fireEvent(\"change:end\", { value: this.end });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Inserts the draw2d.geo.Point object into the vertex list of the polyline just after the object with the given index.\r\n *\r\n * @param {Number|draw2d.geo.Point} x the x coordinate or the draw2d.geo.Point object\r\n * @param {Number} [y] the y coordinate or undefined of the second argument is a point\r\n *\r\n * @since 4.0.0\r\n */\n addVertex: function addVertex(x, y) {\n this.vertices.add(new _packages2.default.geo.Point(x, y));\n\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n\n this.svgPathString = null;\n this.repaint();\n\n if (!this.selectionHandles.isEmpty()) {\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n e.onUnselect(_this.canvas, _this);\n e.onSelect(_this.canvas, _this);\n }\n });\n }\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Inserts the draw2d.geo.Point object into the vertex list of the polyline just after the object with the given index.\r\n *\r\n * @param {Number} index the insert index\r\n * @param {Number|draw2d.geo.Point} x the x coordinate or the draw2d.geo.Point object\r\n * @param {Number} [y] the y coordinate or undefined of the second argument is a point\r\n *\r\n * @since 4.0.0\r\n */\n insertVertexAt: function insertVertexAt(index, x, y) {\n var vertex = new _packages2.default.geo.Point(x, y);\n\n this.vertices.insertElementAt(vertex, index);\n\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n\n this.svgPathString = null;\n this.repaint();\n\n if (!this.selectionHandles.isEmpty()) {\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n e.onUnselect(_this.canvas, _this);\n e.onSelect(_this.canvas, _this);\n }\n });\n }\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove a vertex from the polyline and return the removed point. The current installed connection router\r\n * can send an veto for this operation.\r\n *\r\n * @param index\r\n * @returns {draw2d.geo.Point} the removed point or null of the current router decline this operation\r\n * @since 4.0.0\r\n */\n removeVertexAt: function removeVertexAt(index) {\n var removedPoint = this.vertices.removeElementAt(index);\n\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n\n this.svgPathString = null;\n this.repaint();\n\n if (!this.selectionHandles.isEmpty()) {\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n e.onUnselect(_this.canvas, _this);\n e.onSelect(_this.canvas, _this);\n }\n });\n }\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return removedPoint;\n },\n\n /**\r\n * @method\r\n * Set the router for this connection.\r\n *\r\n * @param {draw2d.layout.connection.ConnectionRouter} [router] the new router for this connection or null if the connection should use the default routing\r\n **/\n setRouter: function setRouter(router) {\n if (this.router !== null) {\n this.router.onUninstall(this);\n }\n\n if (typeof router === \"undefined\" || router === null) {\n this.router = new _packages2.default.layout.connection.DirectRouter();\n } else {\n this.router = router;\n }\n\n this.router.onInstall(this);\n\n this.routingRequired = true;\n\n // repaint the connection with the new router\n this.repaint();\n\n this.fireEvent(\"change:router\", { value: this.router });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the current active router of this connection.\r\n *\r\n * @return draw2d.layout.connection.ConnectionRouter\r\n **/\n getRouter: function getRouter() {\n return this.router;\n },\n\n /**\r\n * @method\r\n * Calculate the path of the polyline\r\n *\r\n * @param {Object} [routingHints] some helper attributes for the router\r\n * @param {Boolean} routingHints.startMoved is true if just the start location has moved\r\n * @param {Boolean} routingHints.endMoved is true if the destination location has changed\r\n * @param {Boolean} routingHints.oldVertices store old vertices for after processing\r\n *\r\n * @private\r\n */\n calculatePath: function calculatePath(routingHints) {\n routingHints = routingHints || {};\n\n if (this.shape === null) {\n return;\n }\n\n this.svgPathString = null;\n\n routingHints.oldVertices = this.vertices;\n\n // cleanup the routing cache\n //\n this.oldPoint = null;\n this.lineSegments = new _packages2.default.util.ArrayList();\n this.vertices = new _packages2.default.util.ArrayList();\n\n // Use the internal router\n //\n this.router.route(this, routingHints);\n this.routingRequired = false;\n this.fireEvent(\"routed\");\n this.fireEvent(\"change:route\", {});\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return this;\n }\n\n if (this.svgPathString === null || this.routingRequired === true) {\n this.calculatePath();\n }\n\n if (typeof attributes === \"undefined\") {\n attributes = {};\n }\n attributes.path = this.svgPathString;\n _JSONUtil2.default.ensureDefault(attributes, \"stroke-linecap\", \"round\");\n _JSONUtil2.default.ensureDefault(attributes, \"stroke-linejoin\", \"round\");\n\n return this._super(attributes);\n },\n\n /**\r\n * @method\r\n * Return all line segments of the polyline.\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getSegments: function getSegments() {\n return this.lineSegments;\n },\n\n /**\r\n * @method\r\n * used for the router to add the calculated points\r\n *\r\n * @protected\r\n *\r\n **/\n addPoint: function addPoint( /*:draw2d.geo.Point*/p, y) {\n if (typeof y !== \"undefined\") {\n p = new _packages2.default.geo.Point(p, y);\n }\n this.vertices.add(p);\n\n if (this.oldPoint !== null) {\n // store the painted line segment for the \"mouse selection test\"\n // (required for user interaction)\n this.lineSegments.add({\n start: this.oldPoint,\n end: p\n });\n }\n this.svgPathString = null;\n this.oldPoint = p;\n },\n\n /**\r\n * @method\r\n * Called if the drag and drop action begins. You can return [false] if you\r\n * want avoid that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} true if the figure accepts dragging\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey, isFaked) {\n var result = this._super(x, y, shiftKey, ctrlKey, isFaked);\n\n if (result === true && isFaked !== true) {\n this.draggedSegment = this.hitSegment(x, y);\n }\n return result;\n },\n\n /**\r\n * @method\r\n * Returns the length of the polyline.\r\n *\r\n * @return {Number}\r\n * @since 6.1.43\r\n **/\n getLength: function getLength() {\n var result = 0;\n for (var i = 0; i < this.lineSegments.getSize(); i++) {\n var segment = this.lineSegments.get(i);\n var p1 = segment.start;\n var p2 = segment.end;\n result += Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));\n }\n return result;\n },\n\n setVertices: function setVertices(vertices) {\n // inform the router tha the vertices has set outside. This switch some\n // router from full autoroute to half autoroute\n this.router.verticesSet(this);\n\n this._super(vertices);\n },\n\n /**\r\n * @method\r\n * Returns the projection of the point on the line.\r\n *\r\n * @param {Number} px the x coordinate of the test point\r\n * @param {Number} py the y coordinate of the test point\r\n * @return {draw2d.geo.Point}\r\n **/\n pointProjection: function pointProjection(px, py) {\n var result = null,\n projection = null,\n p1 = null,\n p2 = null,\n segment = null;\n var lastDist = Number.MAX_SAFE_INTEGER;\n var pt = new _packages2.default.geo.Point(px, py);\n for (var i = 0; i < this.lineSegments.getSize(); i++) {\n segment = this.lineSegments.get(i);\n p1 = segment.start;\n p2 = segment.end;\n projection = _packages2.default.geo.Line.pointProjection(p1.x, p1.y, p2.x, p2.y, pt.x, pt.y);\n if (projection !== null) {\n var dist = projection.distance(pt);\n if (result == null || dist < lastDist) {\n result = projection;\n result.index = i;\n lastDist = dist;\n }\n }\n }\n\n if (result !== null) {\n var length = 0;\n var _segment = void 0;\n for (var _i = 0; _i < result.index; _i++) {\n _segment = this.lineSegments.get(_i);\n length += _segment.start.distance(_segment.end);\n }\n _segment = this.lineSegments.get(result.index);\n p1 = _segment.start;\n p2 = _segment.end;\n length += p1.distance(p2) * _packages2.default.geo.Line.inverseLerp(p2.x, p2.y, p1.x, p1.y, result.x, result.y);\n result.percentage = 1.0 / this.getLength() * length;\n }\n return result;\n },\n\n /**\r\n * @method\r\n * Returns the point onto the line which has the relative 'percentage' position onto the line.\r\n *\r\n * @param {Number} percentage the relative position between [0..1]\r\n * @returns {draw2d.geo.Point}\r\n */\n lerp: function lerp(percentage) {\n var length = this.getLength() * percentage;\n var lastValidLength = length;\n var segment = null,\n p1 = null,\n p2 = null;\n for (var i = 0; i < this.lineSegments.getSize(); i++) {\n segment = this.lineSegments.get(i);\n p1 = segment.start;\n p2 = segment.end;\n length = length - p1.distance(p2);\n if (length <= 0) {\n percentage = 1.0 / p1.distance(p2) * lastValidLength;\n return new _packages2.default.geo.Point(p1.x + (p2.x - p1.x) * percentage, p1.y + (p2.y - p1.y) * percentage);\n }\n lastValidLength = length;\n }\n return p2;\n },\n\n /**\r\n * @method\r\n * get the best segment of the line which is below the given coordinate or null if\r\n * all segment are not below the coordinate. <br>\r\n * The 'corona' property of the polyline is considered for this test. This means\r\n * the point isn't direct on the line. Is it only close to the line!\r\n *\r\n * @param {Number} px the x coordinate of the test point\r\n * @param {Number} py the y coordinate of the test point\r\n * @return {Object}\r\n * @since 4.4.0\r\n **/\n hitSegment: function hitSegment(px, py) {\n for (var i = 0; i < this.lineSegments.getSize(); i++) {\n var segment = this.lineSegments.get(i);\n if (_packages2.default.shape.basic.Line.hit(this.corona + this.stroke, segment.start.x, segment.start.y, segment.end.x, segment.end.y, px, py)) {\n return { index: i, start: segment.start, end: segment.end };\n }\n }\n return null;\n },\n\n /**\r\n * @method\r\n * Checks if the hands over coordinate close to the line. The 'corona' property of the polyline\r\n * is considered for this test. This means the point isn't direct on the line. Is it only close to the\r\n * line!\r\n *\r\n * @param {Number} px the x coordinate of the test point\r\n * @param {Number} py the y coordinate of the test point\r\n * @return {Boolean}\r\n **/\n hitTest: function hitTest(px, py) {\n return this.hitSegment(px, py) !== null;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createCommand: function createCommand(request) {\n\n if (request.getPolicy() === _packages2.default.command.CommandType.DELETE) {\n if (this.isDeleteable() === true) {\n return new _packages2.default.command.CommandDelete(this);\n }\n } else if (request.getPolicy() === _packages2.default.command.CommandType.MOVE_VERTEX) {\n if (this.isResizeable() === true) {\n return new _packages2.default.command.CommandMoveVertex(this);\n }\n } else if (request.getPolicy() === _packages2.default.command.CommandType.MOVE_VERTICES) {\n if (this.isResizeable() === true) {\n return new _packages2.default.command.CommandMoveVertices(this);\n }\n }\n\n return this._super(request);\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = (0, _extend2.default)(this._super(), {\n router: this.router.NAME,\n radius: this.radius\n });\n\n memento = this.router.getPersistentAttributes(this, memento);\n\n return memento;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.router !== \"undefined\") {\n try {\n this.setRouter(eval(\"new \" + memento.router + \"()\"));\n } catch (exc) {\n debug.warn(\"Unable to install router '\" + memento.router + \"' forced by \" + this.NAME + \".setPersistentAttributes. Using default\");\n }\n }\n\n if (typeof memento.radius !== \"undefined\") {\n this.setRadius(memento.radius);\n }\n\n this.router.setPersistentAttributes(this, memento);\n\n if (this.vertices.getSize() > 1) {\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n }\n }\n}); /**\r\n * @class draw2d.shape.basic.PolyLine\r\n *\r\n * A PolyLine is a line with more than 2 points.\r\n *\r\n *\r\n * @example preview small frame\r\n *\r\n * let line = new draw2d.shape.basic.PolyLine();\r\n * line.setVertices([{x:10,y:10},{x:80,y:70},{x:100,y:110}]);\r\n * canvas.add(line);\r\n *\r\n *\r\n * canvas.setCurrentSelection(line);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Line\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Polygon.js\":\n/*!************************************!*\\\n !*** ./src/shape/basic/Polygon.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! ../../util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /**\r\n * @class draw2d.shape.basic.Polygon\r\n * A Polygon figure.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let p1 = new draw2d.shape.basic.Polygon({width:100, height:100});\r\n * let p2 = new draw2d.shape.basic.Polygon({width:100, height:60});\r\n *\r\n * canvas.add(p1,10,10);\r\n * canvas.add(p2,100,10);\r\n *\r\n * p2.attr({color:\"#f0f000\", alpha:0.7});\r\n *\r\n * canvas.setCurrentSelection(p2);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.VectorFigure\r\n */\n\n_packages2.default.shape.basic.Polygon = _packages2.default.VectorFigure.extend({\n\n NAME: \"draw2d.shape.basic.Polygon\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.minX = 0;\n this.minY = 0;\n this.maxX = 0;\n this.maxY = 0;\n this.vertices = new _packages2.default.util.ArrayList();\n\n this._super(attr, setter, getter);\n\n // we must cache the initial width/height because the width/height of the shape\n // is recalculated in the addVertex method. After the first call this values are 0/0\n if (this.vertices.getSize() === 0) {\n var w = this.width;\n var h = this.height;\n var pos = this.getPosition();\n this.addVertex(new _packages2.default.geo.Point(0, 0));\n this.addVertex(new _packages2.default.geo.Point(w, 0));\n this.addVertex(new _packages2.default.geo.Point(w, h));\n\n this.setPosition(pos);\n }\n\n this.svgPathString = null;\n\n this.installEditPolicy(new _packages2.default.policy.figure.VertexSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n setRadius: function setRadius(radius) {\n this.svgPathString = null;\n\n this._super(radius);\n this.fireEvent(\"change:radius\", { value: radius });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createShapeElement: function createShapeElement() {\n // return some good default...\n return this.canvas.paper.path(\"M0 10L100 100\");\n },\n\n /**\r\n * @method\r\n * calculate the path of the polygon\r\n *\r\n */\n calculatePath: function calculatePath() {\n var radius = this.getRadius();\n var path = [];\n // hard corners\n //\n if (radius === 0) {\n var _length = this.vertices.getSize();\n var p = this.vertices.get(0);\n path.push(\"M\", p.x, \" \", p.y);\n for (var i = 1; i < _length; i++) {\n p = this.vertices.get(i);\n path.push(\"L\", p.x, \" \", p.y);\n }\n path.push(\"Z\");\n }\n // soften/round corners\n //\n else {\n length = this.vertices.getSize();\n var start = this.vertices.first();\n var end = this.vertices.last();\n if (start.equals(end)) {\n length = length - 1;\n end = this.vertices.get(length - 1);\n }\n var begin = _packages2.default.geo.Util.insetPoint(start, end, radius);\n path.push(\"M\", begin.x, \",\", begin.y);\n for (var _i = 0; _i < length; _i++) {\n start = this.vertices.get(_i);\n end = this.vertices.get((_i + 1) % length);\n var modStart = _packages2.default.geo.Util.insetPoint(start, end, radius);\n var modEnd = _packages2.default.geo.Util.insetPoint(end, start, radius);\n path.push(\"Q\", start.x, \",\", start.y, \" \", modStart.x, \", \", modStart.y);\n path.push(\"L\", modEnd.x, \",\", modEnd.y);\n }\n }\n this.svgPathString = path.join(\"\");\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n if (this.svgPathString === null) {\n this.calculatePath();\n }\n\n attributes = attributes || {};\n\n _JSONUtil2.default.ensureDefault(attributes, \"path\", this.svgPathString);\n\n this._super(attributes);\n },\n\n /**\r\n * @method\r\n * Translate the figure with the given x/y offset. This method modifies all\r\n * vertices and the bounding box.\r\n *\r\n * @param {Number} dx The new x translate offset\r\n * @param {Number} dy The new y translate offset\r\n **/\n translate: function translate(dx, dy) {\n var _this = this;\n\n // TODO: This is not good. If the polygon part of an \"Composite\" I should call\n // the adjustPosition. IF we DragDrap the composition the figures inside should follow\n // without modify the dx/dy.\n //\n dx = this.x + dx;\n dy = this.y + dy;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n var newPos = e.adjustPosition(_this, dx, dy);\n dx = newPos.x;\n dy = newPos.y;\n }\n });\n dx = dx - this.x;\n dy = dy - this.y;\n\n this.vertices.each(function (i, e) {\n e.translate(dx, dy);\n });\n this.svgPathString = null;\n this.updateBoundingBox();\n\n this.repaint();\n\n // Update the resize handles if the user change the position of the\n // element via an API call.\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.fireEvent(\"move\", { figure: this, dx: dx, dy: dy });\n this.fireEvent(\"change:x\", { value: this.x });\n this.fireEvent(\"change:y\", { value: this.y });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Change the position of the polygon. This method updates all vertices.\r\n *\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {Number} [y]\r\n */\n setPosition: function setPosition(x, y) {\n if (x instanceof _packages2.default.geo.Point) {\n y = x.y;\n x = x.x;\n }\n this.svgPathString = null;\n\n var dx = x - this.minX;\n var dy = y - this.minY;\n\n this.translate(dx, dy);\n\n this.x = x;\n this.y = y;\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n var oldWidth = this.width;\n var oldHeight = this.height;\n\n this._super(w, h);\n\n var fracWidth = 1 / oldWidth * this.width;\n var fracHeight = 1 / oldHeight * this.height;\n\n var thisX = this.x;\n var thisY = this.y;\n this.vertices.each(function (i, e) {\n // calculate difference between point and figure origin\n var diffX = (e.getX() - thisX) * fracWidth;\n var diffY = (e.getY() - thisY) * fracHeight;\n e.setPosition(thisX + diffX, thisY + diffY);\n });\n\n this.svgPathString = null;\n this.repaint();\n this.fireEvent(\"change:dimension\", { value: { width: this.width, height: this.height } });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return all vertices of the polygon.\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getVertices: function getVertices() {\n return this.vertices;\n },\n\n /**\r\n * @method\r\n * Return the Vertex with the given index.\r\n *\r\n * @param {Number} index the index of the vertex to return\r\n * @since 5.0.2\r\n */\n getVertex: function getVertex(index) {\n return this.vertices.get(index);\n },\n\n resetVertices: function resetVertices() {\n var _this2 = this;\n\n this.vertices = new _packages2.default.util.ArrayList();\n\n this.svgPathString = null;\n this.repaint();\n\n this.updateBoundingBox();\n\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this2.canvas, _this2);\n }\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Update the vertex at the given index. The method call didn't have any effect\r\n * if the vertex didn't exists.\r\n *\r\n * @param {Number} index\r\n * @param {Number} x\r\n * @param {Number} y\r\n */\n setVertex: function setVertex(index, x, y) {\n var vertex = this.vertices.get(index);\n\n // invalid point or nothing to do\n //\n if (vertex === null || vertex.x === x && vertex.y === y) {\n return this;\n }\n\n vertex.x = parseFloat(x);\n vertex.y = parseFloat(y);\n\n this.svgPathString = null;\n this.repaint();\n\n this.updateBoundingBox();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Append a new vertex to the polygon.\r\n *\r\n * @param {Number | draw2d.geo.Point} x\r\n * @param {Number} [y]\r\n */\n addVertex: function addVertex(x, y) {\n this.vertices.add(new _packages2.default.geo.Point(x, y));\n\n this.svgPathString = null;\n this.repaint();\n\n this.updateBoundingBox();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Insert a new vertex at the given index. All vertices will be shifted to\r\n * free the requested index.\r\n *\r\n * @param {Number} index\r\n * @param {Number} x\r\n * @param {Number} y\r\n */\n insertVertexAt: function insertVertexAt(index, x, y) {\n this.vertices.insertElementAt(new _packages2.default.geo.Point(x, y), index);\n\n this.svgPathString = null;\n this.repaint();\n\n this.updateBoundingBox();\n\n if (!this.selectionHandles.isEmpty()) {\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n e.onUnselect(_this.canvas, _this);\n e.onSelect(_this.canvas, _this);\n }\n });\n }\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove a vertex from the polygon and return the removed point.\r\n *\r\n * @param {Number} index\r\n *\r\n * @returns {draw2d.geo.Point} the removed vertex\r\n */\n removeVertexAt: function removeVertexAt(index) {\n // a polygon need at least 3 vertices\n //\n if (this.vertices.getSize() <= 3) {\n return null;\n }\n\n var vertex = this.vertices.removeElementAt(index);\n\n this.svgPathString = null;\n this.repaint();\n\n this.updateBoundingBox();\n\n if (!this.selectionHandles.isEmpty()) {\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n e.onUnselect(_this.canvas, _this);\n e.onSelect(_this.canvas, _this);\n }\n });\n }\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return vertex;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setRotationAngle: function setRotationAngle(angle) {\n this.rotationAngle = 360 % angle;\n\n // The different to the other figures is, the the vertices must rotated instead of\n // transform the shape with SVG matrix.\n //\n // Reason: the vertices are selectable and in this case the coordinates must transform\n // and not only the resulting SVG shape.\n //\n var radian = angle / (180 / Math.PI);\n var center = this.getBoundingBox().getCenter();\n var rotate = function rotate(x, y, xm, ym, radian) {\n var cos = Math.cos,\n sin = Math.sin;\n return {\n x: (x - xm) * cos(radian) - (y - ym) * sin(radian) + xm,\n y: (x - xm) * sin(radian) + (y - ym) * cos(radian) + ym\n };\n };\n\n this.vertices.each(function (i, e) {\n var rot = rotate(e.x, e.y, center.x, center.y, radian);\n e.setPosition(rot.x, rot.y);\n });\n\n this.updateBoundingBox();\n\n // Update the resize handles if the user change the position of the element via an API call.\n //\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.repaint();\n this.fireEvent(\"change:angle\", { value: this.rotationAngle });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Calculate the bounding box of the shape and store them in an internal\r\n * variable for fast access.\r\n *\r\n * @private\r\n */\n updateBoundingBox: function updateBoundingBox() {\n if (this.vertices.isEmpty()) {\n this.minX = this.x;\n this.minY = this.y;\n this.maxX = this.x + this.width;\n this.maxY = this.y + this.height;\n } else {\n this.minX = this.x = Math.min.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.x;\n })));\n this.minY = this.y = Math.min.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.y;\n })));\n this.maxX = Math.max.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.x;\n })));\n this.maxY = Math.max.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.y;\n })));\n this.width = this.maxX - this.minX;\n this.height = this.maxY - this.minY;\n }\n },\n\n /**\r\n * @inheritdoc\r\n */\n createCommand: function createCommand(request) {\n\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE_VERTEX) {\n if (this.isResizeable() === true) {\n return new _packages2.default.command.CommandMoveVertex(this);\n }\n }\n\n return this._super(request);\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n memento.vertices = [];\n\n this.vertices.each(function (i, e) {\n memento.vertices.push({ x: e.x, y: e.y });\n });\n\n return memento;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n var _this3 = this;\n\n this._super(memento);\n\n // restore the points from the JSON data and add them to the polyline\n //\n if (typeof memento.vertices !== \"undefined\") {\n this.vertices = new _packages2.default.util.ArrayList();\n memento.vertices.forEach(function (point) {\n _this3.addVertex(point);\n });\n }\n }\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Rectangle.js\":\n/*!**************************************!*\\\n !*** ./src/shape/basic/Rectangle.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.basic.Rectangle\r\n * A Rectangle Figure.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let rect1 = new draw2d.shape.basic.Rectangle({\r\n * \tx:10,\r\n * y:10\r\n * });\r\n *\r\n * let rect2 = new draw2d.shape.basic.Rectangle({\r\n * x: 100,\r\n * y: 10,\r\n * bgColor: \"#f0f000\",\r\n * alpha : 0.7,\r\n * width: 100,\r\n * height: 60,\r\n * radius: 10\r\n * });\r\n *\r\n * canvas.add(rect1);\r\n * canvas.add(rect2);\r\n *\r\n * canvas.setCurrentSelection(rect2);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.VectorFigure\r\n */\n_packages2.default.shape.basic.Rectangle = _packages2.default.VectorFigure.extend({\n NAME: \"draw2d.shape.basic.Rectangle\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.dasharray = null;\n\n this._super((0, _extend2.default)({ bgColor: \"#a0a0a0\", color: \"#1B1B1B\" }, attr), (0, _extend2.default)({}, {\n /** @attr {String} dash The dot/dash pattern for the line style. Valid values: [\"\", \"-\", \".\", \"-.\", \"-..\", \". \", \"- \", \"--\", \"- .\", \"--.\", \"--..\"]*/\n dash: this.setDashArray,\n /** @attr {String} dasharray The dot/dash pattern for the line style. Valid values: [\"\", \"-\", \".\", \"-.\", \"-..\", \". \", \"- \", \"--\", \"- .\", \"--.\", \"--..\"]*/\n dasharray: this.setDashArray\n }, setter), (0, _extend2.default)({}, {\n dash: this.getDashArray,\n dasharray: this.getDashArray\n }, getter));\n },\n\n /**\r\n * @inheritdoc\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = (0, _extend2.default)({}, {\n width: this.getWidth(),\n height: this.getHeight(),\n r: this.getRadius()\n }, attributes);\n\n if (this.dasharray !== null) {\n attributes[\"stroke-dasharray\"] = this.dasharray;\n }\n\n this._super(attributes);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n applyTransformation: function applyTransformation() {\n var ts = \"R\" + this.rotationAngle;\n\n if (this.getRotationAngle() === 90 || this.getRotationAngle() === 270) {\n var ratio = this.getHeight() / this.getWidth();\n ts = ts + \"S\" + ratio + \",\" + 1 / ratio + \",\" + (this.getAbsoluteX() + this.getWidth() / 2) + \",\" + (this.getAbsoluteY() + this.getHeight() / 2);\n }\n\n this.shape.transform(ts);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createShapeElement: function createShapeElement() {\n return this.canvas.paper.rect(this.getAbsoluteX(), this.getAbsoluteY(), this.getWidth(), this.getHeight());\n },\n\n /**\r\n * @method\r\n * Set the line style for dot/dash styling. Possible values are\r\n * [\"\", \"-\", \".\", \"-.\", \"-..\", \". \", \"- \", \"--\", \"- .\", \"--.\", \"--..\"]\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * dash: pattern\r\n * });\r\n *\r\n * @param {String} pattern the string with the dot/dash pattern. valid values: [\"\", \"-\", \".\", \"-.\", \"-..\", \". \", \"- \", \"--\", \"- .\", \"--.\", \"--..\"]\r\n */\n setDashArray: function setDashArray(pattern) {\n this.dasharray = pattern;\n this.repaint();\n this.fireEvent(\"change:dashArray\", { value: this.dasharray });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the line style for this object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr(\"dash\");\r\n *\r\n * @since 5.1.0\r\n */\n getDashArray: function getDashArray() {\n return this.dasharray;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n if (this.dasharray !== null) {\n memento.dasharray = this.dasharray;\n }\n\n return memento;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.dasharray === \"string\") {\n this.dasharray = memento.dasharray;\n }\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Text.js\":\n/*!*********************************!*\\\n !*** ./src/shape/basic/Text.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.Text = _packages2.default.shape.basic.Label.extend({\n\n NAME: \"draw2d.shape.basic.Text\",\n\n /**\r\n * @constructor\r\n * Creates a new text element.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.cachedWrappedAttr = null;\n\n this._super(extend({ width: 100, height: 50, resizeable: true }, attr), setter, getter);\n\n this.installEditPolicy(new _packages2.default.policy.figure.WidthSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n // style the label\n this.svgNodes.attr(extend({}, this.calculateTextAttr(), this.wrappedTextAttr(this.text, this.getWidth() - this.padding.left - this.padding.right)));\n\n // set of the x/y must be done AFTER the font-size and bold has been set.\n // Reason: the getHeight method needs the font-size for calculation because\n // it redirects the calculation to the SVG element.\n this.svgNodes.attr({ x: this.padding.left, y: this.getHeight() / 2 });\n\n // this is an exception call. Don't call the super method (Label) to avoid\n // the calculation in this method.\n _packages2.default.SetFigure.prototype.repaint.call(this, attributes);\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this.clearCache();\n var attr = this.wrappedTextAttr(this.text, w);\n\n this.cachedMinWidth = Math.max(w, attr.width);\n this.cachedMinHeight = attr.height;\n\n _packages2.default.shape.node.Node.prototype.setDimension.call(this, this.cachedMinWidth, this.cachedMinHeight);\n // this._super(Math.min(w,attr.width),attr.height);\n this.fireEvent(\"change:dimension\", { value: { width: this.cachedMinWidth, height: this.cachedMinHeight } });\n\n return this;\n },\n\n /**\r\n * @method\r\n * clear the internal cache for width/height precalculation\r\n * @private\r\n */\n clearCache: function clearCache() {\n this._super();\n this.cachedWrappedAttr = null;\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinWidth: function getMinWidth() {\n if (this.shape === null) {\n return 0;\n }\n\n if (this.cachedMinWidth === null) {\n // get the longest word in the text\n //\n var longestWord = this.text.split(\" \").reduce(function (arg1, arg2) {\n return arg1.length > arg2.length ? arg1 : arg2;\n });\n var svgText = this.canvas.paper.text(0, 0, longestWord).attr(extend({}, this.calculateTextAttr(), { text: longestWord }));\n this.cachedMinWidth = svgText.getBBox(true).width + this.padding.left + this.padding.right + 2 * this.getStroke();\n svgText.remove();\n }\n\n return this.cachedMinWidth;\n },\n\n /**\r\n * @method\r\n * calculates the attributes (wrapped text and width, height) with the given parameter\r\n *\r\n * @private\r\n */\n wrappedTextAttr: function wrappedTextAttr(text, width) {\n var words = text.split(\" \");\n if (this.canvas === null || words.length === 0) {\n return { text: text, width: width, height: 20 };\n }\n\n if (this.cachedWrappedAttr === null) {\n var abc = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n var svgText = this.canvas.paper.text(0, 0, \"\").attr(extend({}, this.calculateTextAttr(), { text: abc }));\n\n // get a good estimation of a letter width...not correct but this is working for the very first draft implementation\n var letterWidth = svgText.getBBox(true).width / abc.length;\n\n var s = [words[0]],\n x = s[0].length * letterWidth;\n var w = null;\n for (var i = 1; i < words.length; i++) {\n w = words[i];\n var l = w.length * letterWidth;\n if (x + l > width) {\n s.push(\"\\n\");\n x = l;\n } else {\n s.push(\" \");\n x += l;\n }\n s.push(w);\n }\n // set the wrapped text and get the resulted boudning box\n //\n svgText.attr({ text: s.join(\"\") });\n var bbox = svgText.getBBox(true);\n svgText.remove();\n this.cachedWrappedAttr = {\n text: s.join(\"\"),\n width: Math.max(width, bbox.width) + this.padding.left + this.padding.right,\n height: bbox.height + this.padding.top + this.padding.bottom\n };\n }\n return this.cachedWrappedAttr;\n }\n\n}); /**\r\n * @class draw2d.shape.basic.Text\r\n * Implements a simple text with word wrapping.<br>The height of the element is automatic calculated. The widht of\r\n * the element is changeable by the user and respect the minWidth constraint.\r\n * <br>\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let shape = new draw2d.shape.basic.Text({text:\"This is a simple text with some loooooong word in.\"});\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n * @author Andreas Herz\r\n * @since 4.2.3\r\n * @extends draw2d.shape.basic.Label\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/VertexResizeHandle.js\":\n/*!***********************************************!*\\\n !*** ./src/shape/basic/VertexResizeHandle.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.VertexResizeHandle = _packages2.default.ResizeHandle.extend({\n NAME: \"draw2d.shape.basic.VertexResizeHandle\",\n\n SNAP_THRESHOLD: 3,\n LINE_COLOR: \"#1387E6\",\n FADEOUT_DURATION: 300,\n\n init: function init(owner, index) {\n this._super({ owner: owner });\n this.index = index;\n this.isDead = false;\n },\n\n /**\r\n * @method\r\n * Called when a user double clicks on the element\r\n *\r\n * @template\r\n */\n onDoubleClick: function onDoubleClick() {\n var cmd = new _packages2.default.command.CommandRemoveVertex(this.owner, this.index);\n this.getCanvas().getCommandStack().execute(cmd);\n\n this.isDead = true;\n },\n\n /**\r\n * @method\r\n * Called if a drag&drop operation starts.<br>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n if (this.isDead === true) {\n return;\n }\n\n this._super();\n this.command = this.getCanvas().getPrimarySelection().createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE_VERTEX));\n if (this.command != null) {\n this.command.setIndex(this.index);\n this.setAlpha(0.2);\n this.shape.attr({ \"cursor\": \"crosshair\" });\n }\n\n // Vertex is a reference and not a copy of the point\n this.vertex = this.owner.getVertex(this.index).clone();\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragstart\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n return true;\n },\n\n /**\r\n * @method\r\n * Called from the framework during a drag&drop operation\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n if (this.isDead === true || this.command == null) {\n return;\n }\n\n this.setPosition(this.x + dx2, this.y + dy2);\n\n // update the polyline for immediately drag&drop feedback\n //\n this.vertex.translate(dx2, dy2);\n var newPos = this.vertex.clone();\n // Adjust the new location if the object can snap to a helper\n // like grid, geometry, ruler,...\n //\n if (this.getCanSnapToHelper()) {\n newPos = this.getCanvas().snapToHelper(this, newPos);\n }\n\n this.owner.setVertex(this.index, newPos.x, newPos.y);\n\n // update the command for the undo/redo stuff\n //\n this.command.updatePosition(this.vertex.x, this.vertex.y);\n },\n\n /**\r\n * @method Called after a drag and drop action.<br>\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call the super implementation via <code>this._super();</code>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n if (this.isDead === true || this.command === null) {\n return;\n }\n\n this.shape.attr({ \"cursor\": \"move\" });\n\n var stack = this.getCanvas().getCommandStack();\n\n var transactionCommand = new _packages2.default.command.CommandCollection();\n\n try {\n transactionCommand.add(this.command);\n this.command = null;\n if (this.getEnclosingAngle() > 178) {\n transactionCommand.add(new _packages2.default.command.CommandRemoveVertex(this.owner, this.index));\n }\n } finally {\n stack.execute(transactionCommand);\n }\n\n this.setAlpha(1);\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragend\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n },\n\n /**\r\n * @method\r\n * Controls the location of the resize handle\r\n *\r\n * @template\r\n **/\n relocate: function relocate() {\n var resizeWidthHalf = this.getWidth() / 2;\n var resizeHeightHalf = this.getHeight() / 2;\n\n var anchor = this.owner.getVertex(this.index);\n\n this.setPosition(anchor.x - resizeWidthHalf, anchor.y - resizeHeightHalf);\n },\n\n /**\r\n * @method\r\n * Calculates the angle between the siblings\r\n *\r\n * @returns {Number}\r\n */\n getEnclosingAngle: function getEnclosingAngle() {\n // calculate the angle between the siblings\n var points = this.owner.getVertices();\n var trans = this.vertex.getScaled(-1);\n var size = points.getSize();\n var left = points.get((this.index - 1 + size) % size).translated(trans); // % is just to ensure the [0, size] interval\n var right = points.get((this.index + 1) % size).translated(trans); // % is just to ensure the [0, size] interval\n\n var dot = left.dot(right);\n\n var acos = Math.acos(dot / (left.length() * right.length()));\n return acos * 180 / Math.PI;\n }\n\n}); /**\r\n * @class draw2d.shape.basic.VertexResizeHandle\r\n *\r\n * Selection handle for polyline vertices.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.ResizeHandle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/composite/Composite.js\":\n/*!******************************************!*\\\n !*** ./src/shape/composite/Composite.js ***!\n \\******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.composite.Composite = _packages2.default.SetFigure.extend({\n NAME: \"draw2d.shape.composite.Composite\",\n\n /**\r\n * @constructor\r\n * Creates a new composite element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ stroke: 1, \"color\": \"#f0f0f0\" }, attr), setter, getter);\n },\n\n /**\r\n * @method\r\n * Called when a user dbl clicks on the element\r\n *\r\n * @template\r\n */\n onDoubleClick: function onDoubleClick() {\n // do nothing per default. no rotation of the shape.\n },\n\n /**\r\n * @method\r\n * Delegate method to calculate if a figure is selectable. A composite has the right to override the\r\n * initial selectable flag of the figure.\r\n *\r\n * @param {draw2d.Figure} figure the figure to test\r\n * @param {Boolean} selectable the initial selectable flag of the figure\r\n * @returns\r\n *\r\n */\n isMemberSelectable: function isMemberSelectable(figure, selectable) {\n return selectable;\n },\n\n /**\r\n * @method\r\n * Delegate method to calculate if a figure is draggable. A composite has the right to override the\r\n * initial draggable flag of the figure.\r\n *\r\n * @param {draw2d.Figure} figure the figure to test\r\n * @param {Boolean} draggable the initial draggable flag of the figure\r\n * @returns\r\n *\r\n */\n isMemberDraggable: function isMemberDraggable(figure, draggable) {\n return draggable;\n },\n\n /**\r\n * @method\r\n * Set the canvas element of this figures. This can be used to determine whenever an element\r\n * is added or removed to the canvas.\r\n *\r\n * @param {draw2d.Canvas} canvas the new parent of the figure or null\r\n */\n setCanvas: function setCanvas(canvas) {\n this._super(canvas);\n\n // an composite shape goes always in the background\n //\n if (canvas !== null) {\n this.toBack();\n }\n }\n\n}); /**\r\n * @class draw2d.shape.composite.Composite\r\n * Base interface for the compiste shapes\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Rectangle\r\n * @since 4.7.2\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/composite/Group.js\":\n/*!**************************************!*\\\n !*** ./src/shape/composite/Group.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.composite.Group = _packages2.default.shape.composite.StrongComposite.extend({\n NAME: \"draw2d.shape.composite.Group\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ bgColor: null, color: null, resizeable: false }, attr), setter, getter);\n\n // used during figure assignment/unassignment. The Group resizes during figure assignment\n // and we want avoid that already assigned figures are moving during this resize.\n //\n this.stickFigures = false;\n },\n\n /**\r\n * @method\r\n * Delegate method to calculate if a figure is selectable. A composite has the right to override the\r\n * initial selectable flag of the figure.\r\n *\r\n * @param {draw2d.Figure} figure the figure to test\r\n * @param {Boolean} selectable the initial selectable flag of the figure\r\n * @returns\r\n *\r\n */\n isMemberSelectable: function isMemberSelectable(figure, selectable) {\n return false;\n },\n\n /**\r\n * @method\r\n * Delegate method to calculate if a figure is draggable. A composite has the right to override the\r\n * initial draggable flag of the figure.\r\n * <br>\r\n * Returns false because only the complete group is draggable\r\n *\r\n * @param {draw2d.Figure} figure the figure to test\r\n * @param {Boolean} draggable the initial draggable flag of the figure\r\n * @returns\r\n *\r\n */\n isMemberDraggable: function isMemberDraggable(figure, draggable) {\n return false;\n },\n\n /**\r\n * @method\r\n * Set the position of the object.\r\n *\r\n * @param {Number/draw2d.geo.Point} x The new x coordinate of the figure\r\n * @param {Number} [y] The new y coordinate of the figure\r\n **/\n setPosition: function setPosition(x, y) {\n var oldX = this.x;\n var oldY = this.y;\n\n this._super(x, y);\n\n var dx = this.x - oldX;\n var dy = this.y - oldY;\n\n if (dx === 0 && dy === 0) {\n return this;\n }\n\n if (this.stickFigures === false) {\n this.assignedFigures.each(function (i, figure) {\n figure.translate(dx, dy);\n });\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Assign a figure to the given group.\r\n * The bounding box of the group is recalculated and the union of the current bounding box with the\r\n * figure bounding box.\r\n *\r\n * @param {draw2d.Figure} figure\r\n */\n assignFigure: function assignFigure(figure) {\n if (!this.assignedFigures.contains(figure)) {\n var _this = this;\n this.stickFigures = true;\n if (this.assignedFigures.isEmpty() === true) {\n this.setBoundingBox(figure.getBoundingBox());\n } else {\n this.setBoundingBox(this.getBoundingBox().merge(figure.getBoundingBox()));\n }\n this.assignedFigures.add(figure);\n figure.setComposite(this);\n // the selection adapter defines which figure should be selected if the user clicks on\n // \"figure\". The \"group\" redirects to the group instead to allowing select the child.\n figure.setSelectionAdapter(function () {\n return _this;\n });\n this.stickFigures = false;\n }\n return this;\n },\n\n /**\r\n * @method\r\n * Remove the given figure from the group assignment\r\n *\r\n * @param {draw2d.Figure} figure the figure to remove\r\n *\r\n */\n unassignFigure: function unassignFigure(figure) {\n if (this.assignedFigures.contains(figure)) {\n this.stickFigures = true;\n figure.setComposite(null);\n figure.setSelectionAdapter(null);\n this.assignedFigures.remove(figure);\n if (!this.assignedFigures.isEmpty()) {\n var box = this.assignedFigures.first().getBoundingBox();\n this.assignedFigures.each(function (i, figure) {\n box.merge(figure.getBoundingBox());\n });\n this.setBoundingBox(box);\n }\n this.stickFigures = false;\n }\n\n return this;\n },\n\n /**\r\n * @inheritDoc\r\n */\n createCommand: function createCommand(request) {\n if (request === null) {\n return null;\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.DELETE) {\n if (!this.isDeleteable()) {\n return null;\n }\n return new _packages2.default.command.CommandDeleteGroup(this);\n }\n\n return this._super(request);\n }\n\n}); /**\r\n * @class draw2d.shape.composite.Group\r\n *\r\n * A group is a figure that acts as a transparent container for other figures. A group\r\n * is a StrongComposite node that controls a set of child figures. The bounding rectangle of\r\n * a group is the union of the bounds of its children. Child nodes cannot be selected or\r\n * manipulated individually.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.composite.StrongComposite\r\n * @since 4.8.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/composite/Jailhouse.js\":\n/*!******************************************!*\\\n !*** ./src/shape/composite/Jailhouse.js ***!\n \\******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.composite.Jailhouse = _packages2.default.shape.composite.StrongComposite.extend({\n NAME: \"draw2d.shape.composite.Jailhouse\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.policy = new _packages2.default.policy.figure.RegionEditPolicy(0, 0, 10, 10);\n this._super(extend({ bgColor: \"#f0f0f0\", color: \"#333333\" }, attr), setter, getter);\n\n this.stickFigures = false;\n },\n\n /**\r\n * @method\r\n * Set the new width and height of the figure and update the constraint policy for the assigned\r\n * figures..\r\n *\r\n * @param {Number} w The new width of the figure\r\n * @param {Number} h The new height of the figure\r\n **/\n setDimension: function setDimension(w, h) {\n this._super(w, h);\n this.policy.setBoundingBox(this.getAbsoluteBounds());\n },\n\n /**\r\n * @method\r\n * Set the position of the object.\r\n *\r\n * @param {Number/draw2d.geo.Point} x The new x coordinate of the figure\r\n * @param {Number} [y] The new y coordinate of the figure\r\n **/\n setPosition: function setPosition(x, y) {\n var oldX = this.x;\n var oldY = this.y;\n\n this._super(x, y);\n\n var dx = this.x - oldX;\n var dy = this.y - oldY;\n\n if (dx === 0 && dy === 0) {\n return this;\n }\n this.policy.setBoundingBox(this.getAbsoluteBounds());\n\n if (this.stickFigures === false) {\n this.assignedFigures.each(function (i, figure) {\n figure.translate(dx, dy);\n });\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Assign a figure to the given group.\r\n * The bounding box of the group is recalculated and the union of the current bounding box with the\r\n * figure bounding box.\r\n *\r\n * @param {draw2d.Figure} figure\r\n */\n assignFigure: function assignFigure(figure) {\n if (!this.assignedFigures.contains(figure) && figure !== this) {\n this.stickFigures = true;\n this.setBoundingBox(this.getBoundingBox().merge(figure.getBoundingBox()));\n this.assignedFigures.add(figure);\n figure.setComposite(this);\n figure.installEditPolicy(this.policy);\n figure.toFront(this);\n this.stickFigures = false;\n }\n return this;\n },\n\n /**\r\n * @method\r\n * Remove the given figure from the group assignment\r\n *\r\n * @param {draw2d.Figure} figure the figure to remove\r\n *\r\n */\n unassignFigure: function unassignFigure(figure) {\n if (this.assignedFigures.contains(figure)) {\n this.stickFigures = true;\n figure.setComposite(null);\n figure.uninstallEditPolicy(this.policy);\n this.assignedFigures.remove(figure);\n if (!this.assignedFigures.isEmpty()) {\n var box = this.assignedFigures.first().getBoundingBox();\n this.assignedFigures.each(function (i, figure) {\n box.merge(figure.getBoundingBox());\n });\n this.setBoundingBox(box);\n }\n this.stickFigures = false;\n }\n\n return this;\n },\n\n onCatch: function onCatch(droppedFigure, x, y, shiftKey, ctrlKey) {\n this.getCanvas().getCommandStack().execute(new _packages2.default.command.CommandAssignFigure(droppedFigure, this));\n },\n\n /**\r\n * @method\r\n * Return the minWidth of the jailhouse. The minWidth is calculated by care the assigned figures.\r\n *\r\n *\r\n * @private\r\n * @returns\r\n */\n getMinWidth: function getMinWidth() {\n var width = 0;\n this.assignedFigures.each(function (i, figure) {\n width = Math.max(width, figure.getBoundingBox().getRight());\n });\n return width - this.getAbsoluteX();\n },\n\n /**\r\n * @method\r\n *\r\n * @private\r\n * @returns\r\n */\n getMinHeight: function getMinHeight() {\n var height = 0;\n this.assignedFigures.each(function (i, figure) {\n height = Math.max(height, figure.getBoundingBox().getBottom());\n });\n return height - this.getAbsoluteY();\n }\n}); /**\r\n * @class draw2d.shape.composite.Jailhouse\r\n *\r\n * A Jailhouse is a figure that acts as a container for other figures. A Jailhouse\r\n * is a StrongComposite node that controls a set of child figures. Child nodes can't\r\n * moved outside of the composite.<br>\r\n * Objects in a jailhouse have the same Z-order, which can be relatively controlled with\r\n * respect to other figures.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.composite.StrongComposite\r\n * @since 4.8.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/composite/Raft.js\":\n/*!*************************************!*\\\n !*** ./src/shape/composite/Raft.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.composite.Raft = _packages2.default.shape.composite.WeakComposite.extend({\n NAME: \"draw2d.shape.composite.Raft\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n\n this.aboardFigures = new _packages2.default.util.ArrayList();\n\n this._super(extend({ bgColor: \"#f0f0f0\", color: \"#1B1B1B\" }, attr), setter, getter);\n },\n\n /**\r\n * @method\r\n * Will be called if the drag and drop action begins. You can return [false] if you\r\n * want avoid that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} true if the figure accepts dragging\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n this._super(x, y, shiftKey, ctrlKey);\n\n this.aboardFigures = new _packages2.default.util.ArrayList();\n // force the recalculation of the aboard figures if the shape is in a drag&drop operation\n this.getAboardFigures(this.isInDragDrop);\n\n return true;\n },\n\n /**\r\n * @method\r\n * Set the position of the object.\r\n *\r\n * @param {Number/draw2d.geo.Point} x The new x coordinate of the figure\r\n * @param {Number} [y] The new y coordinate of the figure\r\n * @param {boolean} [dontApplyToChildren] don't move the children if this flag is set.\r\n **/\n setPosition: function setPosition(x, y, dontApplyToChildren) {\n var oldX = this.x;\n var oldY = this.y;\n\n // we need the figures before the composite has moved. Otherwise some figures are fall out of the raft\n //\n var aboardedFigures = dontApplyToChildren ? _packages2.default.util.ArrayList.EMPTY_LIST : this.getAboardFigures(this.isInDragDrop === false);\n\n this._super(x, y);\n\n var dx = this.x - oldX;\n var dy = this.y - oldY;\n\n if (dx === 0 && dy === 0) {\n return this;\n }\n\n // we must move circuits with \"user routed\" elements as well if the start/target is withing\n // the raft. Some segments stay still because some coordinates has a fixed position\n //\n if (this.canvas !== null) {\n aboardedFigures = aboardedFigures.clone();\n this.canvas.getLines().each(function (i, line) {\n if (line instanceof _packages2.default.Connection) {\n if (aboardedFigures.contains(line.getSource().getRoot()) && aboardedFigures.contains(line.getTarget().getRoot())) {\n aboardedFigures.add(line);\n }\n }\n });\n }\n\n aboardedFigures.each(function (i, figure) {\n figure.translate(dx, dy);\n });\n\n return this;\n },\n\n onDrag: function onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n var _this = this;\n\n // apply all EditPolicy for DragDrop Operations\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n var _newPos = e.adjustPosition(_this, _this.ox + dx, _this.oy + dy);\n if (_newPos) {\n dx = _newPos.x - _this.ox;\n dy = _newPos.y - _this.oy;\n }\n }\n });\n\n var newPos = new _packages2.default.geo.Point(this.ox + dx, this.oy + dy);\n\n // Adjust the new location if the object can snap to a helper\n // like grid, geometry, ruler,...\n //\n if (this.getCanSnapToHelper()) {\n newPos = this.getCanvas().snapToHelper(this, newPos);\n }\n\n // push the shiftKey to the setPosition method and avoid to move the children objects\n // if the user press the shift key\n this.setPosition(newPos.x, newPos.y, shiftKey);\n\n // notify all installed policies\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.onDrag(_this.canvas, _this);\n }\n });\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"drag\", { dx: dx, dy: dy, dx2: dx2, dy2: dy2, shiftKey: shiftKey, ctrlKey: ctrlKey });\n },\n\n /**\r\n * @method\r\n * Return all figures which are aboard of this shape. These shapes are moved as well if the raft\r\n * is moving.\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getAboardFigures: function getAboardFigures(recalculate) {\n if (recalculate === true && this.canvas !== null) {\n var raftBoundingBox = this.getBoundingBox();\n var zIndex = this.getZOrder();\n this.aboardFigures = new _packages2.default.util.ArrayList();\n\n var _this = this;\n this.getCanvas().getFigures().each(function (i, figure) {\n if (figure !== _this && figure.isSelectable() === true && figure.getBoundingBox().isInside(raftBoundingBox)) {\n // Don't add the figure if it is already catched by another composite with a higher z-index\n //\n if (_this.getNextComposite(figure) !== _this) {\n return;\n }\n // only add the shape if it is in front of the raft\n if (figure.getZOrder() > zIndex) {\n _this.aboardFigures.add(figure);\n }\n }\n });\n }\n return this.aboardFigures;\n },\n\n /**\r\n * @method\r\n * return the next potential composite parent figure\r\n *\r\n * @param {draw2d.Figure} figureToTest\r\n * @returns {draw2d.Figure}\r\n */\n getNextComposite: function getNextComposite(figureToTest) {\n var nextComposite = null;\n this.getCanvas().getFigures().each(function (i, figure) {\n if (figureToTest === figure) {\n return;\n }\n if (figure instanceof _packages2.default.shape.composite.Composite) {\n if (nextComposite !== null && nextComposite.getZOrder() > figure.getZOrder()) {\n return;\n }\n\n if (figure.getBoundingBox().contains(figureToTest.getBoundingBox())) {\n nextComposite = figure;\n }\n }\n });\n\n return nextComposite;\n }\n}); /**\r\n * @class draw2d.shape.composite.Raft\r\n * Raft figures are shapes, which aggregate multiple figures. It works like a real raft. Aboard figures are\r\n * moved if the raft figures moves.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let rect1 = new draw2d.shape.composite.Raft({width:200, height:100});\r\n * let rect2 = new draw2d.shape.basic.Rectangle({width:50, height:50});\r\n *\r\n * canvas.add(rect1,10,10);\r\n * canvas.add(rect2,20,20);\r\n *\r\n * rect2.attr({bgColor:\"#f0f000\", width:50, height:50, radius:10});\r\n *\r\n * canvas.setCurrentSelection(rect1);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.composite.WeakComposite\r\n * @since 4.7.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/composite/StrongComposite.js\":\n/*!************************************************!*\\\n !*** ./src/shape/composite/StrongComposite.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.composite.StrongComposite = _packages2.default.shape.composite.Composite.extend({\n NAME: \"draw2d.shape.composite.StrongComposite\",\n\n /**\r\n * @constructor\r\n * Creates a new strong composite element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.assignedFigures = new _packages2.default.util.ArrayList();\n\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Check to see if a figure is a descendant of another figure.\r\n * <br>\r\n * The contains() method returns true if the figure provided by the argument is a descendant of this figure,\r\n * whether it is a direct child or nested more deeply. Otherwise, it returns false.\r\n *\r\n * @param {draw2d.Figure} containedFigure The figure that may be contained by (a descendant of) this figure.\r\n * @since 5.5.4\r\n */\n contains: function contains(containedFigure) {\n for (var i = 0, len = this.assignedFigures.getSize(); i < len; i++) {\n var child = this.assignedFigures.get(i);\n if (child === containedFigure || child.contains(containedFigure)) {\n return true;\n }\n }\n return this._super(containedFigure);\n },\n\n /**\r\n * @method\r\n * Assign a figure to the composite.\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @template\r\n */\n assignFigure: function assignFigure(figure) {\n return this;\n },\n\n /**\r\n * @method\r\n * Remove the given figure from the group assignment\r\n *\r\n * @param {draw2d.Figure} figure the figure to remove\r\n * @template\r\n */\n unassignFigure: function unassignFigure(figure) {\n return this;\n },\n\n /**\r\n * @method\r\n * Return all assigned figures of the composite\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getAssignedFigures: function getAssignedFigures() {\n return this.assignedFigures;\n },\n\n /**\r\n * @method\r\n * Called if the user drop this element onto the dropTarget. This event is ONLY fired if the\r\n * shape return \"this\" in the onDragEnter method.\r\n *\r\n *\r\n * @param {draw2d.Figure} dropTarget The drop target.\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n * @since 4.7.4\r\n **/\n onDrop: function onDrop(dropTarget, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Called if the user dropped an figure onto this element. This event is ONLY fired if the\r\n * shape return \"this\" in the onDragEnter method.\r\n *\r\n *\r\n * @param {draw2d.Figure} droppedFigure The dropped figure.\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n * @since 4.7.4\r\n **/\n onCatch: function onCatch(droppedFigure, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Moves the element so it is the closest to the viewer’s eyes, on top of other elements. Additional\r\n * the internal model changed as well.\r\n *\r\n * Optional: Inserts current object in front of the given one.\r\n *\r\n * @param {draw2d.Figure} [figure] move current object in front of the given one.\r\n */\n toFront: function toFront(figure) {\n this._super(figure);\n // ensure that all assigned figures are in front of the composite\n //\n var figures = this.getAssignedFigures().clone();\n figures.sort(function (a, b) {\n // return 1 if a before b\n // return -1 if b before a\n return a.getZOrder() > b.getZOrder() ? -1 : 1;\n });\n var _this = this;\n figures.each(function (i, f) {\n f.toFront(_this);\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Moves the element to the background. Additional\r\n * the internal model changed as well.\r\n *\r\n * @since 4.7.2\r\n */\n toBack: function toBack(figure) {\n this._super(figure);\n // ensure that all assigned figures are in front of the composite\n //\n var figures = this.getAssignedFigures().clone();\n figures.sort(function (a, b) {\n // return 1 if a before b\n // return -1 if b before a\n return a.getZOrder() > b.getZOrder() ? -1 : 1;\n });\n\n var _this = this;\n figures.each(function (i, f) {\n f.toBack(_this);\n });\n\n return this;\n }\n}); /**\r\n * @class draw2d.shape.composite.StrongComposite\r\n * A StrongComposite is a composite figure with strong assignment of the children and the composite.\r\n * The child knows everything about the assigned composite and receives events about assignment to a\r\n * composite.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.composite.Composite\r\n * @since 4.8.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/composite/WeakComposite.js\":\n/*!**********************************************!*\\\n !*** ./src/shape/composite/WeakComposite.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.composite.WeakComposite = _packages2.default.shape.composite.Composite.extend({\n NAME: \"draw2d.shape.composite.WeakComposite\",\n\n /**\r\n * @constructor\r\n * Creates a new weak composite element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n }\n}); /**\r\n * @class draw2d.shape.composite.WeakComposite\r\n * A WeakComposite is a composite figure with loose coupling of the children and the composite.\r\n * The child didn't know anything about the assigned composite nor did they receive any events\r\n * about assignment to a composite.\r\n *\r\n * Assignment without obligation.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.composite.Composite\r\n * @since 4.8.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/diagram/Diagram.js\":\n/*!**************************************!*\\\n !*** ./src/shape/diagram/Diagram.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nvar _JSONUtil = __webpack_require__(/*! ../../util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.diagram.Diagram = _packages2.default.SetFigure.extend({\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.data = [];\n this.cache = {};\n\n this._super((0, _extend2.default)({ data: [], bgColor: \"#8dabf2\", stroke: 1, color: \"#f0f0f0\", radius: 2, resizeable: true }, attr), (0, _extend2.default)({}, {\n /** @attr {Array} data the data to display in the diagram */\n data: this.setData\n }, setter), (0, _extend2.default)({}, {\n data: this.getData\n }, getter));\n },\n\n /**\r\n * @method\r\n * Set the data for the chart/diagram element\r\n *\r\n * @param {Array} data\r\n *\r\n */\n setData: function setData(data) {\n this.data = data;\n this.cache = {};\n\n if (this.svgNodes !== null) {\n this.svgNodes.remove();\n this.svgNodes = this.createSet();\n }\n\n this.repaint();\n this.fireEvent(\"change:data\", { value: data });\n },\n\n /**\r\n * @method\r\n * Return the data of the diagram\r\n *\r\n * @since 5.0.0\r\n */\n getData: function getData() {\n return this.data;\n },\n\n /**\r\n * @method\r\n * Set the dimension of the diagram and reset the cached calculation\r\n *\r\n * @since 5.0.0\r\n */\n setDimension: function setDimension(w, h) {\n this.cache = {};\n this._super(w, h);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the calculate width of the set. This calculates the bounding box of all elements.\r\n *\r\n * @return {Number} the calculated width of the label\r\n **/\n getWidth: function getWidth() {\n return this.width;\n },\n\n /**\r\n * @method\r\n * Return the calculated height of the set. This calculates the bounding box of all elements.\r\n *\r\n * @return {Number} the calculated height of the label\r\n */\n getHeight: function getHeight() {\n return this.height;\n },\n\n /**\r\n *\r\n * @param attributes\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape == null) {\n return this;\n }\n\n attributes = attributes || {};\n\n _JSONUtil2.default.ensureDefault(attributes, \"fill\", \"none\");\n\n return this._super(attributes);\n },\n\n applyTransformation: function applyTransformation() {\n if (this.isResizeable() === true) {\n this.svgNodes.transform(\"S\" + this.scaleX + \",\" + this.scaleY + \",\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY() + \"t\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n } else {\n this.svgNodes.transform(\"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n }\n\n return this;\n }\n\n}); /**\r\n * @class draw2d.shape.diagram.Diagram\r\n *\r\n * Base class for all diagrams.\r\n *\r\n * @extends draw2d.SetFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/diagram/Pie.js\":\n/*!**********************************!*\\\n !*** ./src/shape/diagram/Pie.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.diagram.Pie\r\n *\r\n * Small data pie chart.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let pie = new draw2d.shape.diagram.Pie({\r\n * diameter:80,\r\n * data:[30,60,122,4],\r\n * x:100,\r\n * y:60\r\n * });\r\n *\r\n * canvas.add( pie);\r\n *\r\n * @extends draw2d.shape.diagram.Diagram\r\n */\n_packages2.default.shape.diagram.Pie = _packages2.default.shape.diagram.Diagram.extend({\n\n COLORS: ['#00A8F0', '#b9dd69', '#f3546a', '#4DA74D', '#9440ED'],\n TWO_PI: Math.PI * 2,\n\n /**\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n\n this._super((0, _extend2.default)({ stroke: 0 }, attr), (0, _extend2.default)({\n /** @attr {Number} diameter the diameter of the pie chart */\n diameter: this.setDiameter,\n /** @attr {Number} radius the radius of the pie chart */\n radius: this.setRadius\n }, setter), (0, _extend2.default)({\n diameter: this.getDiameter,\n radius: this.getRadius\n }, getter));\n },\n\n /**\r\n * @method\r\n * Set the diameter of the circle. The center of the circle will be retained.\r\n *\r\n * @param {Number} d The new diameter of the circle.\r\n * @since 4.0.0\r\n **/\n setDiameter: function setDiameter(d) {\n var center = this.getCenter();\n this.setDimension(d, d);\n this.setCenter(center);\n this.fireEvent(\"change:diameter\", { value: this.width });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the diameter of the circle.\r\n *\r\n * @since 4.0.0\r\n **/\n getDiameter: function getDiameter() {\n return this.getWidth();\n },\n\n /**\r\n * @method\r\n * Set the radius of the circle. The center of the circle will be retained.\r\n *\r\n * @param {Number} r The new radius of the circle.\r\n * @since 4.0.0\r\n **/\n setRadius: function setRadius(r) {\n this.setDiameter(r * 2);\n this.fireEvent(\"change:radius\", { value: this.width / 2 });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the center of the circle\r\n *\r\n */\n getCenter: function getCenter() {\n var d2 = this.getDiameter() / 2;\n return this.getPosition().translate(d2, d2);\n },\n\n /**\r\n * @method\r\n * Set the center of the circle.\r\n *\r\n * @param {Number|draw2d.geo.Point} x the new x coordinate of the center or a draw2d.geo.Point object with the center\r\n * @param {Number} y the y coordinate of the new center of the first argument isn't a draw2d.geo.Point object\r\n */\n setCenter: function setCenter(x, y) {\n var pos = new _packages2.default.geo.Point(x, y);\n var d2 = this.getDiameter() / 2;\n pos.translate(-d2, -d2);\n this.setPosition(pos);\n this.fireEvent(\"change:center\", { value: { x: x, y: y } });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setData: function setData(data) {\n var _this = this;\n\n // Normalize the Data.\n // The SUM must be == 1.\n this.sum = 0;\n data.forEach(function (val) {\n _this.sum += val;\n });\n var _sum = 1 / this.sum;\n data.forEach(function (val, i) {\n data[i] = _sum * val;\n });\n\n // pass the normalize data to the base implementation\n //\n this._super(data);\n this.fireEvent(\"change:data\", { value: data });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createSet: function createSet() {\n var radius = this.getWidth() / 2;\n var length = this.data.length;\n\n var pie = this.canvas.paper.set();\n\n var offsetAngle = 0;\n\n for (var i = 0; i < length; i++) {\n // angle is percent of TWO_PI\n var angle = this.TWO_PI * this.data[i];\n var color = this.COLORS[i % length];\n var seg = this.drawSegment(radius, angle, offsetAngle, 0.1);\n seg.attr({ stroke: this.color.rgba(), fill: color });\n pie.push(seg);\n offsetAngle += angle;\n }\n return pie;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n // keep the aspect ration\n //\n if (w > h) {\n this._super(w, w);\n } else {\n this._super(h, h);\n }\n\n // we must recreate the diagram if we change the size.\n // low performance. Better: transfor/scale the set. Can be done in the next release\n //\n if (this.svgNodes !== null) {\n this.svgNodes.remove();\n this.svgNodes = this.createSet();\n }\n\n this.repaint();\n\n return this;\n },\n\n polarPath: function polarPath(radius, theta, rotation) {\n var x = void 0,\n y = void 0;\n x = radius * Math.cos(theta + rotation) + radius;\n y = radius * Math.sin(theta + rotation) + radius;\n return \"L \" + x + \" \" + y + \" \";\n },\n\n drawSegment: function drawSegment(radius, value, rotation, resolution) {\n var path = \"M \" + radius + \" \" + radius;\n\n for (var i = 0; i < value; i += resolution) {\n path += this.polarPath(radius, i, rotation);\n }\n path += this.polarPath(radius, value, rotation);\n\n path += \"L \" + radius + \" \" + radius;\n return this.getCanvas().paper.path(path);\n },\n\n /**\r\n * @inheritdoc\r\n */\n applyTransformation: function applyTransformation() {\n this.svgNodes.transform(\"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/diagram/Sparkline.js\":\n/*!****************************************!*\\\n !*** ./src/shape/diagram/Sparkline.js ***!\n \\****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /**\r\n * @class draw2d.shape.diagram.Sparkline\r\n *\r\n * Small data line diagram.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let testData = [];\r\n * for(let i=0;i<100;i++) {\r\n * testData.push(Math.floor(Math.random() * 100));\r\n * }\r\n *\r\n * let sparkline = new draw2d.shape.diagram.Sparkline({\r\n * \tdata: testData,\r\n * width:150,\r\n * height:50,\r\n * x:100,\r\n * y:60\r\n * });\r\n *\r\n * canvas.add( sparkline);\r\n *\r\n * @extends draw2d.shape.diagram.Diagram\r\n */\n\n\n_packages2.default.shape.diagram.Sparkline = _packages2.default.shape.diagram.Diagram.extend({\n\n /**\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.min = 0;\n this.max = 10;\n this.padding = 4;\n\n this._super((0, _extend2.default)({ width: 180, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @inheritdoc\r\n */\n setData: function setData(data) {\n if (data.length > 0) {\n // get the min/max from an array and not only from two elements..\n this.min = Math.min.apply(Math, _toConsumableArray(data));\n this.max = Math.max.apply(Math, _toConsumableArray(data));\n } else {\n this.min = 0;\n this.max = 1;\n }\n\n if (this.max == this.min) {\n this.max = this.min + 1;\n }\n\n this._super(data);\n this.fireEvent(\"change:data\", { value: data });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M0 0 l0 0\");\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n var _this = this;\n\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n attributes.fill = \"90-#000:5-#4d4d4d:95\";\n\n var padding = this.padding;\n var width = this.getWidth() - 2 * padding;\n var height = this.getHeight() - 2 * padding;\n var length = this.data.length;\n var min = this.min;\n var max = this.max;\n var toCoords = function toCoords(value, idx) {\n var step = 1;\n // avoid divisionByZero\n if (length > 1) {\n step = width / (length - 1);\n }\n\n return {\n y: -((value - min) / (max - min) * height) + height + padding,\n x: padding + idx * step\n };\n };\n\n if (this.svgNodes !== null && typeof this.cache.pathString === \"undefined\") {\n var prev_pt = null;\n this.data.forEach(function (item, idx) {\n var pt = toCoords(item, idx);\n if (prev_pt === null) {\n _this.cache.pathString = [\"M\", pt.x, pt.y].join(\" \");\n } else {\n _this.cache.pathString = [_this.cache.pathString, \"L\", pt.x, pt.y].join(\" \");\n }\n prev_pt = pt;\n });\n\n this.svgNodes.attr({ path: this.cache.pathString, stroke: \"#f0f0f0\" });\n }\n this._super(attributes);\n\n return this;\n }\n});\n\n/***/ }),\n\n/***/ \"./src/shape/dimetric/Rectangle.js\":\n/*!*****************************************!*\\\n !*** ./src/shape/dimetric/Rectangle.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.dimetric.Rectangle = _packages2.default.shape.basic.Polygon.extend({\n NAME: \"draw2d.shape.dimetric.Rectangle\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ bgColor: \"#00a3f6\", color: \"#1B1B1B\" }, attr), setter, getter);\n\n var pos = this.getPosition();\n\n this.resetVertices();\n\n var angle26 = Math.atan(.5);\n var cos30 = Math.cos(angle26);\n var sin30 = Math.sin(angle26);\n\n var box = this.getBoundingBox();\n var w = box.w;\n var h = box.h;\n\n this.addVertex(0, 0); // topLeft\n this.addVertex(cos30 * w, sin30 * w); // topRight\n this.addVertex(cos30 * w - cos30 * h, sin30 * w + sin30 * h); // bottomRight\n this.addVertex(-cos30 * h, sin30 * h); // bottomLeft\n\n // override the selection handler from the polygon. Because the vertices of\n // the diamond are not selectable and modifiable\n //\n this.installEditPolicy(new _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy());\n\n this.setPosition(pos);\n }\n}); /**\r\n * @class draw2d.shape.dimetric.Rectangle\r\n * A Rectangle Figure in a dimetric perspective.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let d1 = new draw2d.shape.dimetric.Rectangle({x:10,y:10});\r\n * let d2 = new draw2d.shape.dimetric.Rectangle({x:100,y:10, bgColor:\"#f0f000\", alpha:0.7, width:100, height:60});\r\n *\r\n * canvas.add(d1);\r\n * canvas.add(d2);\r\n *\r\n * canvas.setCurrentSelection(d2);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Polygon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/flowchart/Document.js\":\n/*!*****************************************!*\\\n !*** ./src/shape/flowchart/Document.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.flowchart.Document = _packages2.default.VectorFigure.extend({\n NAME: \"draw2d.shape.flowchart.Document\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.amplitude = 0.08; // percentage of height\n\n this._super(extend({\n width: 80,\n height: 50,\n bgColor: \"#2196f3\",\n color: \"#1B1B1B\",\n stroke: 1\n }, attr), setter, getter);\n },\n\n /**\r\n * @inheritdoc\r\n */\n createShapeElement: function createShapeElement() {\n return this.canvas.paper.path(this.calcPath());\n },\n\n calcPath: function calcPath() {\n var w = this.getWidth();\n var h = this.getHeight();\n var w2 = w / 2;\n var w4 = w / 4;\n var h2 = h * this.amplitude | 0;\n\n return [\"M\", this.getAbsoluteX(), \",\", this.getAbsoluteY(), \"l\", w, \",\", 0, \"l\", 0, \",\", h - h2, \"q\", -w4, \",\", -h2, -w2, \",\", 0, \"q\", -w4, \",\", h2, -w2, \",\", 0, \"z\"].join(\" \");\n },\n\n /**\r\n * @inheritdoc\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = extend({}, {\n path: this.calcPath()\n }, attributes);\n\n this._super(attributes);\n\n return this;\n }\n /*\r\n function draw_curve(Ax, Ay, Bx, By, M) {\r\n // Find midpoint J\r\n let Jx = Ax + (Bx - Ax) / 2\r\n let Jy = Ay + (By - Ay) / 2\r\n // We need a and b to find theta, and we need to know the sign of each to make sure that the orientation is correct.\r\n let a = Bx - Ax\r\n let asign = (a < 0 ? -1 : 1)\r\n let b = By - Ay\r\n let bsign = (b < 0 ? -1 : 1)\r\n let theta = Math.atan(b / a)\r\n // Find the point that's perpendicular to J on side\r\n let costheta = asign * Math.cos(theta)\r\n let sintheta = asign * Math.sin(theta)\r\n // Find c and d\r\n let c = M * sintheta\r\n let d = M * costheta\r\n // Use c and d to find Kx and Ky\r\n let Kx = Jx - c\r\n let Ky = Jy + d\r\n return \"M\" + Ax + \",\" + Ay +\r\n \"Q\" + Kx + \",\" + Ky +\r\n \" \" + Bx + \",\" + By\r\n }*/\n}); /**\r\n * @class draw2d.shape.flowchart.Document\r\n *\r\n * Typical flowchart <b>Document</b> shape\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.flowchart.Document({\r\n * x:100,\r\n * y:60\r\n * });\r\n *\r\n * canvas.add( figure);\r\n *\r\n * @extends draw2d.VectorFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Acw.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Acw.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Acw = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Acw\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M19.275,3.849l1.695,8.56l1.875-1.642c2.311,3.59,1.72,8.415-1.584,11.317c-2.24,1.96-5.186,2.57-7.875,1.908l-0.84,3.396c3.75,0.931,7.891,0.066,11.02-2.672c4.768-4.173,5.521-11.219,1.94-16.279l2.028-1.775L19.275,3.849zM8.154,20.232c-2.312-3.589-1.721-8.416,1.582-11.317c2.239-1.959,5.186-2.572,7.875-1.909l0.842-3.398c-3.752-0.93-7.893-0.067-11.022,2.672c-4.765,4.174-5.519,11.223-1.939,16.283l-2.026,1.772l8.26,2.812l-1.693-8.559L8.154,20.232z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Acw\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Acw();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Alarm.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Alarm.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Alarm = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Alarm\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M8.179,20.115c-0.478,0.277-0.642,0.889-0.365,1.366c0.275,0.479,0.889,0.642,1.365,0.366c0.479-0.275,0.643-0.888,0.367-1.367C9.27,20.004,8.658,19.84,8.179,20.115zM9.18,12.239c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,13.126,9.657,12.516,9.18,12.239zM8.625,17.043c-0.001-0.552-0.448-0.999-1.001-1c-0.553,0-1,0.448-1,1c0,0.553,0.449,1,1,1C8.176,18.043,8.624,17.596,8.625,17.043zM16.312,3.957V3.031h1c0.275,0,0.5-0.225,0.5-0.5v-0.5c0-0.275-0.225-0.5-0.5-0.5h-3.625c-0.275,0-0.5,0.225-0.5,0.5v0.5c0,0.275,0.225,0.5,0.5,0.5h1v0.926C7.819,4.381,2.376,10.068,2.374,17.042C2.376,24.291,8.251,30.166,15.5,30.169c7.249-0.003,13.124-5.878,13.125-13.127C28.624,10.067,23.181,4.38,16.312,3.957zM15.5,27.166C9.909,27.157,5.385,22.633,5.375,17.042C5.385,11.451,9.909,6.927,15.5,6.917c5.59,0.01,10.115,4.535,10.124,10.125C25.615,22.633,21.091,27.157,15.5,27.166zM12.062,22.998c-0.478-0.275-1.089-0.111-1.366,0.367c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.277,1.091,0.111,1.365-0.365C12.704,23.887,12.54,23.275,12.062,22.998zM12.062,11.088c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,11.2,11.584,11.364,12.062,11.088zM22.822,13.971c0.478-0.275,0.643-0.888,0.366-1.366c-0.275-0.478-0.89-0.642-1.366-0.366c-0.479,0.278-0.642,0.89-0.366,1.367C21.732,14.083,22.344,14.247,22.822,13.971zM15.501,23.92c-0.552,0-1,0.447-1,1c0,0.552,0.448,1,1,1s1-0.448,1-1C16.501,24.367,16.053,23.92,15.501,23.92zM19.938,9.355c-0.477-0.276-1.091-0.111-1.365,0.366c-0.275,0.48-0.111,1.091,0.366,1.367s1.089,0.112,1.366-0.366C20.581,10.245,20.418,9.632,19.938,9.355zM23.378,16.042c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1c0.551,0,1-0.447,1-1C24.378,16.492,23.929,16.042,23.378,16.042zM22.823,20.115c-0.48-0.275-1.092-0.111-1.367,0.365c-0.275,0.479-0.112,1.091,0.367,1.367c0.477,0.275,1.089,0.112,1.365-0.366C23.464,21.004,23.3,20.391,22.823,20.115zM15.501,8.167c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.889-0.365,1.366c0.275,0.479,0.889,0.642,1.365,0.366l3.305-1.676c0.055,0.006,0.109,0.017,0.166,0.017c0.828,0,1.5-0.672,1.5-1.5l-0.5-7.876C16.501,8.614,16.053,8.167,15.501,8.167zM18.939,22.998c-0.479,0.276-0.643,0.888-0.366,1.367c0.275,0.477,0.888,0.642,1.366,0.365c0.478-0.276,0.642-0.889,0.366-1.365C20.028,22.886,19.417,22.723,18.939,22.998zM11.197,3.593c-0.836-1.04-2.103-1.718-3.541-1.718c-2.52,0-4.562,2.042-4.562,4.562c0,0.957,0.297,1.843,0.8,2.576C5.649,6.484,8.206,4.553,11.197,3.593zM27.106,9.014c0.503-0.733,0.8-1.619,0.8-2.576c0-2.52-2.043-4.562-4.562-4.562c-1.438,0-2.704,0.678-3.541,1.717C22.794,4.553,25.351,6.484,27.106,9.014z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Alarm\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Alarm();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Anonymous.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/Anonymous.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Anonymous = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Anonymous\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.523,23.813c-0.518-0.51-6.795-2.938-7.934-3.396c-1.132-0.451-1.584-1.697-1.584-1.697s-0.51,0.282-0.51-0.51c0-0.793,0.51,0.51,1.021-2.548c0,0,1.414-0.397,1.133-3.68l-0.338,0.001c0,0,0.85-3.511,0-4.699c-0.854-1.188-1.188-1.981-3.062-2.548c-1.869-0.567-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.793-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.32s0.283,3.059,0.566,3.624l-0.337,0.112c-0.283,3.283,1.132,3.681,1.132,3.681c0.509,3.058,1.019,1.755,1.019,2.548c0,0.792-0.51,0.51-0.51,0.51s-0.452,1.246-1.584,1.697c-1.132,0.453-7.416,2.887-7.927,3.396c-0.511,0.521-0.453,2.896-0.453,2.896h26.954C28.977,26.709,29.039,24.332,28.523,23.813zM16.618,13.693c-0.398-0.251-0.783-1.211-0.783-1.64c0-0.133,0-0.236,0-0.236c-0.105-0.106-0.574-0.096-0.67,0c0,0,0,0.104,0,0.236c0,0.429-0.385,1.389-0.783,1.64c-0.399,0.251-1.611,0.237-2.084-0.236c-0.473-0.473-0.524-1.663-0.643-1.78c-0.118-0.119-0.185-0.185-0.185-0.185l0.029-0.414c0,0,0.842-0.207,1.699-0.207s1.803,0.502,1.803,0.502c0.231-0.074,0.784-0.083,0.996,0c0,0,0.945-0.502,1.803-0.502s1.699,0.207,1.699,0.207l0.029,0.414c0,0-0.066,0.066-0.185,0.185c-0.118,0.118-0.169,1.308-0.643,1.78C18.229,13.93,17.018,13.944,16.618,13.693z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Anonymous\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Anonymous();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Apple.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Apple.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Apple = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Apple\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.32,10.85c-1.743,1.233-2.615,2.719-2.615,4.455c0,2.079,1.078,3.673,3.232,4.786c-0.578,1.677-1.416,3.134-2.514,4.375c-1.097,1.241-2.098,1.862-3.004,1.862c-0.427,0-1.009-0.143-1.748-0.423l-0.354-0.138c-0.725-0.281-1.363-0.423-1.92-0.423c-0.525,0-1.1,0.11-1.725,0.331l-0.445,0.16l-0.56,0.229c-0.441,0.176-0.888,0.264-1.337,0.264c-1.059,0-2.228-0.872-3.507-2.616c-1.843-2.498-2.764-5.221-2.764-8.167c0-2.095,0.574-3.781,1.725-5.061c1.149-1.279,2.673-1.92,4.568-1.92c0.709,0,1.371,0.13,1.988,0.389l0.423,0.172l0.445,0.183c0.396,0.167,0.716,0.251,0.959,0.251c0.312,0,0.659-0.072,1.04-0.217l0.582-0.229l0.435-0.16c0.693-0.251,1.459-0.377,2.297-0.377C21.512,8.576,23.109,9.334,24.32,10.85zM19.615,3.287c0.021,0.267,0.033,0.473,0.033,0.617c0,1.317-0.479,2.473-1.438,3.467s-2.075,1.49-3.347,1.49c-0.038-0.297-0.058-0.51-0.058-0.639c0-1.12,0.445-2.171,1.337-3.153c0.891-0.982,1.922-1.558,3.096-1.725C19.32,3.329,19.447,3.311,19.615,3.287z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Apple\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Apple();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Apps.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Apps.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Apps = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Apps\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.359,18.424l-2.326,1.215c0.708,1.174,1.384,2.281,1.844,3.033l2.043-1.066C25.538,20.822,24.966,19.652,24.359,18.424zM19.143,14.688c0.445,0.84,1.342,2.367,2.274,3.926l2.414-1.261c-0.872-1.769-1.72-3.458-2.087-4.122c-0.896-1.621-1.982-3.108-3.454-5.417c-1.673-2.625-3.462-5.492-4.052-4.947c-1.194,0.384,1.237,4.094,1.876,5.715C16.73,10.147,17.991,12.512,19.143,14.688zM26.457,22.673l-1.961,1.022l1.982,4.598c0,0,0.811,0.684,1.92,0.213c1.104-0.469,0.81-1.706,0.81-1.706L26.457,22.673zM24.35,15.711c0.168,0.339,2.924,5.93,2.924,5.93h1.983v-5.93H24.35zM18.34,15.704h-4.726l-3.424,5.935h11.66C21.559,21.159,18.771,16.479,18.34,15.704zM3.231,21.613l3.437-5.902H2.083v5.93h1.133L3.231,21.613zM15.048,10.145c0-0.93-0.754-1.685-1.685-1.685c-0.661,0-1.231,0.381-1.507,0.936l2.976,1.572C14.97,10.725,15.048,10.444,15.048,10.145zM14.343,12.06l-3.188-1.684L9.62,13.012l3.197,1.689L14.343,12.06zM3.192,26.886l-0.384,1.108v0.299l0.298-0.128l0.725-0.896l2.997-2.354l-3.137-1.651L3.192,26.886zM9.02,14.044l-4.757,8.17l3.23,1.706l4.728-8.186L9.02,14.044z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Apps\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Apps();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ArrowDown.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/ArrowDown.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ArrowDown = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ArrowDown\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M5.318,6.684L15.5,24.316L25.682,6.684H5.318z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ArrowDown\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ArrowDown();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ArrowLeft.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/ArrowLeft.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ArrowLeft = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ArrowLeft\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.316,5.318L6.684,15.5l17.632,10.182V5.318L24.316,5.318z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ArrowLeft\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ArrowLeft();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ArrowLeft2.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/ArrowLeft2.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ArrowLeft2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ArrowLeft2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.871,9.814 15.684,16.001 21.871,22.188 18.335,25.725 8.612,16.001 18.335,6.276z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ArrowLeft2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ArrowLeft2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ArrowRight.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/ArrowRight.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ArrowRight = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ArrowRight\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ArrowRight\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ArrowRight();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ArrowRight2.js\":\n/*!***************************************!*\\\n !*** ./src/shape/icon/ArrowRight2.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ArrowRight2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ArrowRight2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M10.129,22.186 16.316,15.999 10.129,9.812 13.665,6.276 23.389,15.999 13.665,25.725z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ArrowRight2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ArrowRight2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ArrowUp.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/ArrowUp.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ArrowUp = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ArrowUp\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.682,24.316L15.5,6.684L5.318,24.316H25.682z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ArrowUp\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ArrowUp();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Aumade.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Aumade.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Aumade = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Aumade\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.513,24.52c-0.131-0.217-0.14-0.481-0.022-0.711l1.987-3.844l0,0c0.186-0.357,0.625-0.497,0.981-0.312c0.357,0.188,0.498,0.625,0.312,0.982l-1.801,3.48l2.228,3.699h12.269l-14.8-25.631L6.433,18.178c0.434,0.242,0.909,0.479,1.391,0.654c0.571,0.211,1.148,0.342,1.658,0.342c0.276,0,0.579-0.078,0.916-0.238c0.337-0.158,0.7-0.396,1.073-0.688c0.749-0.582,1.527-1.354,2.334-2.021c0.539-0.442,1.091-0.844,1.706-1.099c0.352-0.145,0.729-0.239,1.128-0.239c0.622,0,1.174,0.214,1.622,0.5c0.449,0.287,0.813,0.646,1.11,0.995c0.59,0.697,0.902,1.359,0.924,1.394l0,0c0.18,0.361,0.021,0.801-0.341,0.977c-0.356,0.176-0.798,0.021-0.978-0.34c0-0.002-0.002-0.004-0.004-0.007c-0.002-0.011-0.008-0.021-0.018-0.034c-0.018-0.033-0.043-0.082-0.078-0.146c-0.07-0.125-0.179-0.305-0.312-0.496c-0.271-0.391-0.668-0.845-1.092-1.104c-0.281-0.178-0.561-0.272-0.844-0.272c-0.216,0-0.479,0.069-0.788,0.229c-0.309,0.153-0.653,0.396-1.016,0.688c-0.727,0.584-1.511,1.362-2.351,2.033c-0.562,0.445-1.15,0.853-1.809,1.103c-0.375,0.143-0.776,0.229-1.195,0.229c-0.749,0-1.48-0.181-2.164-0.433c-0.58-0.219-1.125-0.482-1.613-0.764L0.86,27.816h15.63L14.513,24.52zM18.214,22.242c0.222-0.557,0.537-1.217,0.963-1.848c0.427-0.627,0.957-1.232,1.646-1.646c0.379-0.229,0.812-0.391,1.282-0.438l-0.604-0.934l0,0c-0.22-0.339-0.123-0.789,0.215-1.009c0.341-0.219,0.789-0.123,1.013,0.216l1.545,2.391c0.184,0.274,0.147,0.646-0.075,0.893c-0.228,0.247-0.591,0.305-0.886,0.145c-0.354-0.191-0.646-0.258-0.901-0.258c-0.291,0-0.562,0.084-0.845,0.25c-0.277,0.164-0.562,0.414-0.813,0.719c-0.519,0.607-0.937,1.422-1.185,2.055c-0.111,0.285-0.387,0.466-0.678,0.466c-0.092,0-0.183-0.021-0.271-0.056C18.249,23.039,18.064,22.615,18.214,22.242z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Aumade\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Aumade();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/BarChart.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/BarChart.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.BarChart = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.BarChart\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.25,8.375V28h6.5V8.375H21.25zM12.25,28h6.5V4.125h-6.5V28zM3.25,28h6.5V12.625h-6.5V28z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.BarChart\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.BarChart();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/BioHazard.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/BioHazard.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.BioHazard = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.BioHazard\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.154,13.988c-0.96-0.554-1.982-0.892-3.019-1.032c0.396-0.966,0.616-2.023,0.616-3.131c0-4.399-3.438-8.001-7.772-8.264c3.245,0.258,5.803,2.979,5.803,6.292c0,3.373-2.653,6.123-5.983,6.294v1.292c0.908,0.144,1.605,0.934,1.605,1.883c0,0.232-0.043,0.454-0.118,0.66l1.181,0.683c1.826-2.758,5.509-3.658,8.41-1.981c2.896,1.672,3.965,5.299,2.506,8.254C31.386,21.038,29.992,16.204,26.154,13.988zM4.122,16.587c2.92-1.686,6.628-0.764,8.442,2.034l1.141-0.657c-0.072-0.2-0.109-0.417-0.109-0.642c0-0.909,0.638-1.67,1.489-1.859v-1.319c-3.3-0.202-5.92-2.94-5.92-6.292c0-3.297,2.532-6.007,5.757-6.286c-4.312,0.285-7.729,3.875-7.729,8.258c0,1.078,0.206,2.106,0.581,3.05c-1.004,0.147-1.999,0.481-2.931,1.02c-3.812,2.201-5.209,6.985-3.264,10.87C0.174,21.823,1.251,18.244,4.122,16.587zM11.15,11.452c0.114,0.139,0.235,0.271,0.362,0.398c0.126,0.126,0.259,0.247,0.397,0.361c0.102,0.084,0.211,0.16,0.318,0.236c0.93-0.611,2.045-0.969,3.244-0.969c1.201,0,2.312,0.357,3.242,0.969c0.107-0.077,0.217-0.152,0.318-0.236c0.139-0.114,0.271-0.235,0.397-0.361c0.127-0.127,0.248-0.259,0.362-0.398c0.113-0.138,0.222-0.283,0.323-0.431c-1.307-0.956-2.908-1.528-4.643-1.528c-0.042,0-0.083-0.001-0.124,0c-0.019,0-0.04-0.001-0.06,0c-1.666,0.038-3.201,0.605-4.462,1.528C10.929,11.17,11.037,11.314,11.15,11.452zM9.269,16.787c-0.168-0.062-0.338-0.117-0.512-0.164c-0.173-0.047-0.348-0.083-0.525-0.113c-0.177-0.03-0.355-0.053-0.535-0.065c-0.175,1.609,0.13,3.282,0.998,4.786c0.868,1.503,2.164,2.606,3.645,3.259c0.079-0.162,0.15-0.328,0.212-0.496c0.063-0.169,0.118-0.338,0.164-0.512c0.047-0.173,0.087-0.349,0.115-0.525c0.022-0.13,0.034-0.262,0.046-0.394c-0.993-0.5-1.86-1.286-2.461-2.325c-0.6-1.04-0.847-2.182-0.783-3.294C9.512,16.889,9.392,16.833,9.269,16.787zM18.122,22.657c0.014,0.132,0.024,0.263,0.046,0.394c0.03,0.177,0.067,0.352,0.113,0.524c0.047,0.174,0.102,0.346,0.165,0.514c0.062,0.169,0.132,0.333,0.212,0.495c1.48-0.653,2.777-1.755,3.644-3.257c0.868-1.504,1.176-3.179,1.001-4.788c-0.18,0.013-0.358,0.035-0.535,0.065c-0.177,0.029-0.353,0.067-0.525,0.113s-0.345,0.101-0.513,0.163c-0.124,0.047-0.241,0.105-0.362,0.16c0.063,1.11-0.183,2.253-0.784,3.292C19.984,21.373,19.116,22.157,18.122,22.657zM20.569,27.611c-2.92-1.687-3.977-5.358-2.46-8.329l-1.192-0.689c-0.349,0.389-0.854,0.634-1.417,0.634c-0.571,0-1.086-0.254-1.436-0.653l-1.146,0.666c1.475,2.96,0.414,6.598-2.488,8.272c-2.888,1.668-6.552,0.791-8.386-1.935c2.38,3.667,7.249,4.87,11.079,2.658c0.929-0.535,1.711-1.227,2.339-2.018c0.64,0.832,1.45,1.554,2.416,2.112c3.835,2.213,8.709,1.006,11.086-2.671C27.132,28.396,23.463,29.282,20.569,27.611z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.BioHazard\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.BioHazard();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Book.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Book.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Book = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Book\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.754,4.626c-0.233-0.161-0.536-0.198-0.802-0.097L12.16,9.409c-0.557,0.213-1.253,0.316-1.968,0.316c-0.997,0.002-2.029-0.202-2.747-0.48C7.188,9.148,6.972,9.04,6.821,8.943c0.056-0.024,0.12-0.05,0.193-0.075L18.648,4.43l1.733,0.654V3.172c0-0.284-0.14-0.554-0.374-0.714c-0.233-0.161-0.538-0.198-0.802-0.097L6.414,7.241c-0.395,0.142-0.732,0.312-1.02,0.564C5.111,8.049,4.868,8.45,4.872,8.896c0,0.012,0.004,0.031,0.004,0.031v17.186c0,0.008-0.003,0.015-0.003,0.021c0,0.006,0.003,0.01,0.003,0.016v0.017h0.002c0.028,0.601,0.371,0.983,0.699,1.255c1.034,0.803,2.769,1.252,4.614,1.274c0.874,0,1.761-0.116,2.583-0.427l12.796-4.881c0.337-0.128,0.558-0.448,0.558-0.809V5.341C26.128,5.057,25.988,4.787,25.754,4.626zM5.672,11.736c0.035,0.086,0.064,0.176,0.069,0.273l0.004,0.054c0.016,0.264,0.13,0.406,0.363,0.611c0.783,0.626,2.382,1.08,4.083,1.093c0.669,0,1.326-0.083,1.931-0.264v1.791c-0.647,0.143-1.301,0.206-1.942,0.206c-1.674-0.026-3.266-0.353-4.509-1.053V11.736zM10.181,24.588c-1.674-0.028-3.266-0.354-4.508-1.055v-2.712c0.035,0.086,0.065,0.176,0.07,0.275l0.002,0.053c0.018,0.267,0.13,0.408,0.364,0.613c0.783,0.625,2.381,1.079,4.083,1.091c0.67,0,1.327-0.082,1.932-0.262v1.789C11.476,24.525,10.821,24.588,10.181,24.588z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Book\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Book();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Bookmark.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Bookmark.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Bookmark = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Bookmark\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M17.396,1.841L6.076,25.986l7.341-4.566l1.186,8.564l11.32-24.146L17.396,1.841zM19.131,9.234c-0.562-0.264-0.805-0.933-0.541-1.495c0.265-0.562,0.934-0.805,1.496-0.541s0.805,0.934,0.541,1.496S19.694,9.498,19.131,9.234z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Bookmark\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Bookmark();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Books.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Books.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Books = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Books\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.679,7.858c-0.176-0.138-0.404-0.17-0.606-0.083l-9.66,4.183c-0.42,0.183-0.946,0.271-1.486,0.271c-0.753,0.002-1.532-0.173-2.075-0.412c-0.194-0.083-0.356-0.176-0.471-0.259c0.042-0.021,0.09-0.042,0.146-0.064l8.786-3.804l1.31,0.561V6.612c0-0.244-0.106-0.475-0.283-0.612c-0.176-0.138-0.406-0.17-0.605-0.083l-9.66,4.183c-0.298,0.121-0.554,0.268-0.771,0.483c-0.213,0.208-0.397,0.552-0.394,0.934c0,0.01,0.003,0.027,0.003,0.027v14.73c0,0.006-0.002,0.012-0.002,0.019c0,0.005,0.002,0.007,0.002,0.012v0.015h0.002c0.021,0.515,0.28,0.843,0.528,1.075c0.781,0.688,2.091,1.073,3.484,1.093c0.66,0,1.33-0.1,1.951-0.366l9.662-4.184c0.255-0.109,0.422-0.383,0.422-0.692V8.471C26.961,8.227,26.855,7.996,26.679,7.858zM20.553,5.058c-0.017-0.221-0.108-0.429-0.271-0.556c-0.176-0.138-0.404-0.17-0.606-0.083l-9.66,4.183C9.596,8.784,9.069,8.873,8.53,8.873C7.777,8.874,6.998,8.699,6.455,8.46C6.262,8.378,6.099,8.285,5.984,8.202C6.026,8.181,6.075,8.16,6.13,8.138l8.787-3.804l1.309,0.561V3.256c0-0.244-0.106-0.475-0.283-0.612c-0.176-0.138-0.407-0.17-0.606-0.083l-9.66,4.183C5.379,6.864,5.124,7.011,4.907,7.227C4.693,7.435,4.51,7.779,4.513,8.161c0,0.011,0.003,0.027,0.003,0.027v14.73c0,0.006-0.001,0.013-0.001,0.019c0,0.005,0.001,0.007,0.001,0.012v0.016h0.002c0.021,0.515,0.28,0.843,0.528,1.075c0.781,0.688,2.091,1.072,3.485,1.092c0.376,0,0.754-0.045,1.126-0.122V11.544c-0.01-0.7,0.27-1.372,0.762-1.856c0.319-0.315,0.708-0.564,1.19-0.756L20.553,5.058z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Books\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Books();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Bubble.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Bubble.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Bubble = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Bubble\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,5.333c-7.732,0-14,4.701-14,10.5c0,1.982,0.741,3.833,2.016,5.414L2,25.667l5.613-1.441c2.339,1.317,5.237,2.107,8.387,2.107c7.732,0,14-4.701,14-10.5C30,10.034,23.732,5.333,16,5.333z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Bubble\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Bubble();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Bug.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Bug.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Bug = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Bug\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.589,10.903l-5.828,1.612c-0.534-1.419-1.338-2.649-2.311-3.628l3.082-5.44c0.271-0.48,0.104-1.092-0.38-1.365c-0.479-0.271-1.09-0.102-1.36,0.377l-2.924,5.162c-0.604-0.383-1.24-0.689-1.9-0.896c-0.416-1.437-1.652-2.411-3.058-2.562c-0.001-0.004-0.002-0.008-0.003-0.012c-0.061-0.242-0.093-0.46-0.098-0.65c-0.005-0.189,0.012-0.351,0.046-0.479c0.037-0.13,0.079-0.235,0.125-0.317c0.146-0.26,0.34-0.43,0.577-0.509c0.023,0.281,0.142,0.482,0.352,0.601c0.155,0.088,0.336,0.115,0.546,0.086c0.211-0.031,0.376-0.152,0.496-0.363c0.105-0.186,0.127-0.389,0.064-0.607c-0.064-0.219-0.203-0.388-0.414-0.507c-0.154-0.087-0.314-0.131-0.482-0.129c-0.167,0.001-0.327,0.034-0.481,0.097c-0.153,0.063-0.296,0.16-0.429,0.289c-0.132,0.129-0.241,0.271-0.33,0.426c-0.132,0.234-0.216,0.496-0.25,0.783c-0.033,0.286-0.037,0.565-0.009,0.84c0.017,0.16,0.061,0.301,0.094,0.449c-0.375-0.021-0.758,0.002-1.14,0.108c-0.482,0.133-0.913,0.36-1.28,0.653c-0.052-0.172-0.098-0.344-0.18-0.518c-0.116-0.249-0.263-0.486-0.438-0.716c-0.178-0.229-0.384-0.41-0.618-0.543C9.904,3.059,9.737,2.994,9.557,2.951c-0.18-0.043-0.352-0.052-0.516-0.027s-0.318,0.08-0.463,0.164C8.432,3.172,8.318,3.293,8.23,3.445C8.111,3.656,8.08,3.873,8.136,4.092c0.058,0.221,0.181,0.384,0.367,0.49c0.21,0.119,0.415,0.138,0.611,0.056C9.31,4.556,9.451,4.439,9.539,4.283c0.119-0.21,0.118-0.443-0.007-0.695c0.244-0.055,0.497-0.008,0.757,0.141c0.081,0.045,0.171,0.115,0.27,0.208c0.097,0.092,0.193,0.222,0.286,0.388c0.094,0.166,0.179,0.368,0.251,0.608c0.013,0.044,0.023,0.098,0.035,0.146c-0.911,0.828-1.357,2.088-1.098,3.357c-0.582,0.584-1.072,1.27-1.457,2.035l-5.16-2.926c-0.48-0.271-1.092-0.102-1.364,0.377C1.781,8.404,1.95,9.016,2.43,9.289l5.441,3.082c-0.331,1.34-0.387,2.807-0.117,4.297l-5.828,1.613c-0.534,0.147-0.846,0.699-0.698,1.231c0.147,0.53,0.697,0.843,1.231,0.694l5.879-1.627c0.503,1.057,1.363,2.28,2.371,3.443l-3.194,5.639c-0.272,0.481-0.104,1.092,0.378,1.363c0.239,0.137,0.512,0.162,0.758,0.094c0.248-0.068,0.469-0.229,0.604-0.471l2.895-5.109c2.7,2.594,5.684,4.123,5.778,1.053c1.598,2.56,3.451-0.338,4.502-3.976l5.203,2.947c0.24,0.138,0.514,0.162,0.762,0.094c0.246-0.067,0.467-0.229,0.603-0.471c0.272-0.479,0.104-1.091-0.377-1.362l-5.701-3.229c0.291-1.505,0.422-2.983,0.319-4.138l5.886-1.627c0.53-0.147,0.847-0.697,0.696-1.229C29.673,11.068,29.121,10.756,28.589,10.903z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Bug\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Bug();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Calendar.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Calendar.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Calendar = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Calendar\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M11.758,15.318c0.312-0.3,0.408-0.492,0.408-0.492h0.024c0,0-0.012,0.264-0.012,0.528v5.469h-1.871v1.031h4.87v-1.031H13.33v-7.436h-1.055l-2.027,1.967l0.719,0.744L11.758,15.318zM16.163,21.207c0,0.205,0.024,0.42,0.06,0.647h5.457v-1.031h-4.197c0.023-1.931,4.065-2.362,4.065-5.146c0-1.463-1.114-2.436-2.674-2.436c-1.907,0-2.675,1.607-2.675,1.607l0.875,0.587c0,0,0.6-1.08,1.716-1.08c0.887,0,1.522,0.563,1.522,1.403C20.312,17.754,16.163,18.186,16.163,21.207zM12,3.604h-2v3.335h2V3.604zM23,4.77v3.17h-4V4.77h-6v3.168H9.002V4.77H6.583v21.669h18.833V4.77H23zM24.417,25.438H7.584V10.522h16.833V25.438zM22,3.604h-2v3.335h2V3.604z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Calendar\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Calendar();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Cart.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Cart.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Cart = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Cart\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M29.02,11.754L8.416,9.473L7.16,4.716C7.071,4.389,6.772,4.158,6.433,4.158H3.341C3.114,3.866,2.775,3.667,2.377,3.667c-0.686,0-1.242,0.556-1.242,1.242c0,0.686,0.556,1.242,1.242,1.242c0.399,0,0.738-0.201,0.965-0.493h2.512l5.23,19.8c-0.548,0.589-0.891,1.373-0.891,2.242c0,1.821,1.473,3.293,3.293,3.293c1.82,0,3.294-1.472,3.297-3.293c0-0.257-0.036-0.504-0.093-0.743h5.533c-0.056,0.239-0.092,0.486-0.092,0.743c0,1.821,1.475,3.293,3.295,3.293s3.295-1.472,3.295-3.293c0-1.82-1.473-3.295-3.295-3.297c-0.951,0.001-1.801,0.409-2.402,1.053h-7.136c-0.601-0.644-1.451-1.052-2.402-1.053c-0.379,0-0.738,0.078-1.077,0.196l-0.181-0.685H26.81c1.157-0.027,2.138-0.83,2.391-1.959l1.574-7.799c0.028-0.145,0.041-0.282,0.039-0.414C30.823,12.733,30.051,11.86,29.02,11.754zM25.428,27.994c-0.163,0-0.295-0.132-0.297-0.295c0.002-0.165,0.134-0.297,0.297-0.297s0.295,0.132,0.297,0.297C25.723,27.862,25.591,27.994,25.428,27.994zM27.208,20.499l0.948-0.948l-0.318,1.578L27.208,20.499zM12.755,11.463l1.036,1.036l-1.292,1.292l-1.292-1.292l1.087-1.087L12.755,11.463zM17.253,11.961l0.538,0.538l-1.292,1.292l-1.292-1.292l0.688-0.688L17.253,11.961zM9.631,14.075l0.868-0.868l1.292,1.292l-1.292,1.292l-0.564-0.564L9.631,14.075zM9.335,12.956l-0.328-1.24L9.792,12.5L9.335,12.956zM21.791,16.499l-1.292,1.292l-1.292-1.292l1.292-1.292L21.791,16.499zM21.207,14.5l1.292-1.292l1.292,1.292l-1.292,1.292L21.207,14.5zM18.5,15.791l-1.293-1.292l1.292-1.292l1.292,1.292L18.5,15.791zM17.791,16.499L16.5,17.791l-1.292-1.292l1.292-1.292L17.791,16.499zM14.499,15.791l-1.292-1.292l1.292-1.292l1.292,1.292L14.499,15.791zM13.791,16.499l-1.292,1.291l-1.292-1.291l1.292-1.292L13.791,16.499zM10.499,17.207l1.292,1.292l-0.785,0.784l-0.54-2.044L10.499,17.207zM11.302,20.404l1.197-1.197l1.292,1.292L12.5,21.791l-1.131-1.13L11.302,20.404zM13.208,18.499l1.291-1.292l1.292,1.292L14.5,19.791L13.208,18.499zM16.5,19.207l1.292,1.292L16.5,21.79l-1.292-1.291L16.5,19.207zM17.208,18.499l1.292-1.292l1.291,1.292L18.5,19.79L17.208,18.499zM20.499,19.207l1.292,1.292L20.5,21.79l-1.292-1.292L20.499,19.207zM21.207,18.499l1.292-1.292l1.292,1.292l-1.292,1.292L21.207,18.499zM23.207,16.499l1.292-1.292l1.292,1.292l-1.292,1.292L23.207,16.499zM25.207,14.499l1.292-1.292L27.79,14.5l-1.291,1.292L25.207,14.499zM24.499,13.792l-1.156-1.156l2.082,0.23L24.499,13.792zM21.791,12.5l-1.292,1.292L19.207,12.5l0.29-0.29l2.253,0.25L21.791,12.5zM14.5,11.791l-0.152-0.152l0.273,0.03L14.5,11.791zM10.5,11.792l-0.65-0.65l1.171,0.129L10.5,11.792zM14.5,21.207l1.205,1.205h-2.409L14.5,21.207zM18.499,21.207l1.206,1.206h-2.412L18.499,21.207zM22.499,21.207l1.208,1.207l-2.414-0.001L22.499,21.207zM23.207,20.499l1.292-1.292l1.292,1.292l-1.292,1.292L23.207,20.499zM25.207,18.499l1.292-1.291l1.291,1.291l-1.291,1.292L25.207,18.499zM28.499,17.791l-1.291-1.292l1.291-1.291l0.444,0.444l-0.429,2.124L28.499,17.791zM29.001,13.289l-0.502,0.502l-0.658-0.658l1.016,0.112C28.911,13.253,28.956,13.271,29.001,13.289zM13.487,27.994c-0.161,0-0.295-0.132-0.295-0.295c0-0.165,0.134-0.297,0.295-0.297c0.163,0,0.296,0.132,0.296,0.297C13.783,27.862,13.651,27.994,13.487,27.994zM26.81,22.414h-1.517l1.207-1.207l0.93,0.93C27.243,22.306,27.007,22.428,26.81,22.414z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Cart\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Cart();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ccw.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Ccw.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ccw = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ccw\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.249,15.499c-0.009,4.832-3.918,8.741-8.75,8.75c-2.515,0-4.768-1.064-6.365-2.763l2.068-1.442l-7.901-3.703l0.744,8.694l2.193-1.529c2.244,2.594,5.562,4.242,9.26,4.242c6.767,0,12.249-5.482,12.249-12.249H24.249zM15.499,6.75c2.516,0,4.769,1.065,6.367,2.764l-2.068,1.443l7.901,3.701l-0.746-8.693l-2.192,1.529c-2.245-2.594-5.562-4.245-9.262-4.245C8.734,3.25,3.25,8.734,3.249,15.499H6.75C6.758,10.668,10.668,6.758,15.499,6.75z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ccw\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ccw();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Chat.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Chat.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Chat = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Chat\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.985,5.972c-7.563,0-13.695,4.077-13.695,9.106c0,2.877,2.013,5.44,5.147,7.108c-0.446,1.479-1.336,3.117-3.056,4.566c0,0,4.015-0.266,6.851-3.143c0.163,0.04,0.332,0.07,0.497,0.107c-0.155-0.462-0.246-0.943-0.246-1.443c0-3.393,3.776-6.05,8.599-6.05c3.464,0,6.379,1.376,7.751,3.406c1.168-1.34,1.847-2.892,1.847-4.552C29.68,10.049,23.548,5.972,15.985,5.972zM27.68,22.274c0-2.79-3.401-5.053-7.599-5.053c-4.196,0-7.599,2.263-7.599,5.053c0,2.791,3.403,5.053,7.599,5.053c0.929,0,1.814-0.116,2.637-0.319c1.573,1.597,3.801,1.744,3.801,1.744c-0.954-0.804-1.447-1.713-1.695-2.534C26.562,25.293,27.68,23.871,27.68,22.274z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Chat\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Chat();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Check.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Check.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Check = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Check\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M2.379,14.729 5.208,11.899 12.958,19.648 25.877,6.733 28.707,9.561 12.958,25.308z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Check\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Check();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Chrome.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Chrome.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Chrome = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Chrome\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.318,7.677c0.071-0.029,0.148-0.046,0.229-0.046h11.949c-2.533-3.915-6.938-6.506-11.949-6.506c-5.017,0-9.428,2.598-11.959,6.522l4.291,7.431C8.018,11.041,11.274,7.796,15.318,7.677zM28.196,8.84h-8.579c2.165,1.357,3.605,3.763,3.605,6.506c0,1.321-0.334,2.564-0.921,3.649c-0.012,0.071-0.035,0.142-0.073,0.209l-5.973,10.347c7.526-0.368,13.514-6.587,13.514-14.205C29.77,13.002,29.201,10.791,28.196,8.84zM15.547,23.022c-2.761,0-5.181-1.458-6.533-3.646c-0.058-0.046-0.109-0.103-0.149-0.171L2.89,8.855c-1,1.946-1.565,4.153-1.565,6.492c0,7.624,5.999,13.846,13.534,14.205l4.287-7.425C18.073,22.698,16.848,23.022,15.547,23.022zM9.08,15.347c0,1.788,0.723,3.401,1.894,4.573c1.172,1.172,2.785,1.895,4.573,1.895c1.788,0,3.401-0.723,4.573-1.895s1.895-2.785,1.895-4.573c0-1.788-0.723-3.4-1.895-4.573c-1.172-1.171-2.785-1.894-4.573-1.894c-1.788,0-3.401,0.723-4.573,1.894C9.803,11.946,9.081,13.559,9.08,15.347z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Chrome\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Chrome();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Clip.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Clip.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Clip = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Clip\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.898,6.135c-1.571-1.125-3.758-0.764-4.884,0.808l-8.832,12.331c-0.804,1.122-0.546,2.684,0.577,3.488c1.123,0.803,2.684,0.545,3.488-0.578l6.236-8.706l-0.813-0.583l-6.235,8.707h0c-0.483,0.672-1.42,0.828-2.092,0.347c-0.673-0.481-0.827-1.419-0.345-2.093h0l8.831-12.33l0.001-0.001l-0.002-0.001c0.803-1.119,2.369-1.378,3.489-0.576c1.12,0.803,1.379,2.369,0.577,3.489v-0.001l-9.68,13.516l0.001,0.001c-1.124,1.569-3.316,1.931-4.885,0.808c-1.569-1.125-1.93-3.315-0.807-4.885l7.035-9.822l-0.813-0.582l-7.035,9.822c-1.447,2.02-0.982,4.83,1.039,6.277c2.021,1.448,4.831,0.982,6.278-1.037l9.68-13.516C25.83,9.447,25.47,7.261,23.898,6.135z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Clip\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Clip();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Clock.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Clock.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Clock = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Clock\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,2.374C8.251,2.375,2.376,8.251,2.374,15.5C2.376,22.748,8.251,28.623,15.5,28.627c7.249-0.004,13.124-5.879,13.125-13.127C28.624,8.251,22.749,2.375,15.5,2.374zM15.5,25.623C9.909,25.615,5.385,21.09,5.375,15.5C5.385,9.909,9.909,5.384,15.5,5.374c5.59,0.01,10.115,4.535,10.124,10.125C25.615,21.09,21.091,25.615,15.5,25.623zM8.625,15.5c-0.001-0.552-0.448-0.999-1.001-1c-0.553,0-1,0.448-1,1c0,0.553,0.449,1,1,1C8.176,16.5,8.624,16.053,8.625,15.5zM8.179,18.572c-0.478,0.277-0.642,0.889-0.365,1.367c0.275,0.479,0.889,0.641,1.365,0.365c0.479-0.275,0.643-0.887,0.367-1.367C9.27,18.461,8.658,18.297,8.179,18.572zM9.18,10.696c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,11.584,9.657,10.973,9.18,10.696zM22.822,12.428c0.478-0.275,0.643-0.888,0.366-1.366c-0.275-0.478-0.89-0.642-1.366-0.366c-0.479,0.278-0.642,0.89-0.366,1.367C21.732,12.54,22.344,12.705,22.822,12.428zM12.062,21.455c-0.478-0.275-1.089-0.111-1.366,0.367c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.277,1.091,0.111,1.365-0.365C12.704,22.344,12.54,21.732,12.062,21.455zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM22.823,18.572c-0.48-0.275-1.092-0.111-1.367,0.365c-0.275,0.479-0.112,1.092,0.367,1.367c0.477,0.275,1.089,0.113,1.365-0.365C23.464,19.461,23.3,18.848,22.823,18.572zM19.938,7.813c-0.477-0.276-1.091-0.111-1.365,0.366c-0.275,0.48-0.111,1.091,0.366,1.367s1.089,0.112,1.366-0.366C20.581,8.702,20.418,8.089,19.938,7.813zM23.378,14.5c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1c0.551,0,1-0.447,1-1C24.378,14.949,23.929,14.5,23.378,14.5zM15.501,6.624c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.889-0.365,1.365c0.275,0.479,0.889,0.643,1.365,0.367l3.305-1.676C15.39,16.99,15.444,17,15.501,17c0.828,0,1.5-0.671,1.5-1.5l-0.5-7.876C16.501,7.072,16.053,6.624,15.501,6.624zM15.501,22.377c-0.552,0-1,0.447-1,1s0.448,1,1,1s1-0.447,1-1S16.053,22.377,15.501,22.377zM18.939,21.455c-0.479,0.277-0.643,0.889-0.366,1.367c0.275,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.889,0.366-1.365C20.028,21.344,19.417,21.18,18.939,21.455z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Clock\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Clock();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Cloud.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Cloud.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Cloud = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Cloud\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.345,13.904c0.019-0.195,0.03-0.392,0.03-0.591c0-3.452-2.798-6.25-6.25-6.25c-2.679,0-4.958,1.689-5.847,4.059c-0.589-0.646-1.429-1.059-2.372-1.059c-1.778,0-3.219,1.441-3.219,3.219c0,0.21,0.023,0.415,0.062,0.613c-2.372,0.391-4.187,2.436-4.187,4.918c0,2.762,2.239,5,5,5h15.875c2.762,0,5-2.238,5-5C28.438,16.362,26.672,14.332,24.345,13.904z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Cloud\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Cloud();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Cloud2.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Cloud2.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Cloud2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Cloud2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M7.562,24.812c-3.313,0-6-2.687-6-6l0,0c0.002-2.659,1.734-4.899,4.127-5.684l0,0c0.083-2.26,1.937-4.064,4.216-4.066l0,0c0.73,0,1.415,0.19,2.01,0.517l0,0c1.266-2.105,3.57-3.516,6.208-3.517l0,0c3.947,0.002,7.157,3.155,7.248,7.079l0,0c2.362,0.804,4.062,3.034,4.064,5.671l0,0c0,3.313-2.687,6-6,6l0,0H7.562L7.562,24.812zM24.163,14.887c-0.511-0.095-0.864-0.562-0.815-1.079l0,0c0.017-0.171,0.027-0.336,0.027-0.497l0,0c-0.007-2.899-2.352-5.245-5.251-5.249l0,0c-2.249-0.002-4.162,1.418-4.911,3.41l0,0c-0.122,0.323-0.406,0.564-0.748,0.63l0,0c-0.34,0.066-0.694-0.052-0.927-0.309l0,0c-0.416-0.453-0.986-0.731-1.633-0.731l0,0c-1.225,0.002-2.216,0.993-2.22,2.218l0,0c0,0.136,0.017,0.276,0.045,0.424l0,0c0.049,0.266-0.008,0.54-0.163,0.762l0,0c-0.155,0.223-0.392,0.371-0.657,0.414l0,0c-1.9,0.313-3.352,1.949-3.35,3.931l0,0c0.004,2.209,1.792,3.995,4.001,4.001l0,0h15.874c2.209-0.006,3.994-1.792,3.999-4.001l0,0C27.438,16.854,26.024,15.231,24.163,14.887L24.163,14.887\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Cloud2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Cloud2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/CloudDown.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/CloudDown.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.CloudDown = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.CloudDown\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.345,13.904c0.019-0.195,0.03-0.392,0.03-0.591c0-3.452-2.798-6.25-6.25-6.25c-2.679,0-4.958,1.689-5.847,4.059c-0.589-0.646-1.429-1.059-2.372-1.059c-1.778,0-3.219,1.441-3.219,3.219c0,0.21,0.023,0.415,0.062,0.613c-2.372,0.391-4.187,2.436-4.187,4.918c0,2.762,2.239,5,5,5h3.404l-0.707-0.707c-0.377-0.377-0.585-0.879-0.585-1.413c0-0.533,0.208-1.035,0.585-1.412l0.556-0.557c0.4-0.399,0.937-0.628,1.471-0.628c0.027,0,0.054,0,0.08,0.002v-0.472c0-1.104,0.898-2.002,2-2.002h3.266c1.103,0,2,0.898,2,2.002v0.472c0.027-0.002,0.054-0.002,0.081-0.002c0.533,0,1.07,0.229,1.47,0.63l0.557,0.552c0.78,0.781,0.78,2.05,0,2.828l-0.706,0.707h2.403c2.762,0,5-2.238,5-5C28.438,16.362,26.672,14.332,24.345,13.904z M21.033,20.986l-0.556-0.555c-0.39-0.389-0.964-0.45-1.276-0.137c-0.312,0.312-0.568,0.118-0.568-0.432v-1.238c0-0.55-0.451-1-1-1h-3.265c-0.55,0-1,0.45-1,1v1.238c0,0.55-0.256,0.744-0.569,0.432c-0.312-0.313-0.887-0.252-1.276,0.137l-0.556,0.555c-0.39,0.389-0.39,1.024-0.001,1.413l4.328,4.331c0.194,0.194,0.451,0.291,0.707,0.291s0.512-0.097,0.707-0.291l4.327-4.331C21.424,22.011,21.423,21.375,21.033,20.986z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.CloudDown\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.CloudDown();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/CloudUp.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/CloudUp.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.CloudUp = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.CloudUp\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.345,13.904c0.019-0.195,0.03-0.392,0.03-0.591c0-3.452-2.798-6.25-6.25-6.25c-2.679,0-4.958,1.689-5.847,4.059c-0.589-0.646-1.429-1.059-2.372-1.059c-1.778,0-3.219,1.441-3.219,3.219c0,0.21,0.023,0.415,0.062,0.613c-2.372,0.391-4.187,2.436-4.187,4.918c0,2.762,2.239,5,5,5h2.312c-0.126-0.266-0.2-0.556-0.2-0.859c0-0.535,0.208-1.04,0.587-1.415l4.325-4.329c0.375-0.377,0.877-0.585,1.413-0.585c0.54,0,1.042,0.21,1.417,0.587l4.323,4.329c0.377,0.373,0.585,0.878,0.585,1.413c0,0.304-0.073,0.594-0.2,0.859h1.312c2.762,0,5-2.238,5-5C28.438,16.362,26.672,14.332,24.345,13.904z M16.706,17.916c-0.193-0.195-0.45-0.291-0.706-0.291s-0.512,0.096-0.707,0.291l-4.327,4.33c-0.39,0.389-0.389,1.025,0.001,1.414l0.556,0.555c0.39,0.389,0.964,0.449,1.276,0.137s0.568-0.119,0.568,0.432v1.238c0,0.549,0.451,1,1,1h3.265c0.551,0,1-0.451,1-1v-1.238c0-0.551,0.256-0.744,0.569-0.432c0.312,0.312,0.887,0.252,1.276-0.137l0.556-0.555c0.39-0.389,0.39-1.025,0.001-1.414L16.706,17.916z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.CloudUp\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.CloudUp();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Cloudy.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Cloudy.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Cloudy = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Cloudy\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.378,6.781c0.41,0.988,1.938,0.346,1.524-0.648C15.708,5.667,15.515,5.2,15.32,4.734c-0.289-0.695-0.875-3.233-2.042-2.747c-1.03,0.433-0.128,1.846,0.142,2.494C13.739,5.248,14.059,6.015,14.378,6.781M20.8,7.223c1.094,0.453,1.538-1.551,1.813-2.216c0.281-0.677,1.478-2.565,0.357-3.029c-1.092-0.453-1.537,1.548-1.813,2.216C20.876,4.872,19.68,6.757,20.8,7.223M18.137,6.692c1.183,0,0.829-2.019,0.829-2.742c0-0.732,0.383-2.935-0.829-2.935c-1.183,0-0.828,2.019-0.828,2.742C17.309,4.49,16.926,6.692,18.137,6.692M23.058,8.729c0.852,0.85,2.142-0.972,2.659-1.49c0.512-0.513,2.187-1.687,1.352-2.524c-0.834-0.836-2.013,0.843-2.522,1.353C24.028,6.585,22.198,7.874,23.058,8.729M24.565,10.986c0.448,1.091,2.183-0.01,2.849-0.286c0.676-0.28,2.858-0.771,2.394-1.89c-0.455-1.091-2.181,0.008-2.849,0.285C26.281,9.377,24.102,9.866,24.565,10.986M12.036,8.742c0.752,0.75,1.932-0.415,1.17-1.173c-0.253-0.347-0.646-0.645-0.949-0.946c-0.541-0.539-2.162-2.799-3.068-1.889c-0.79,0.791,0.586,1.755,1.083,2.25C10.859,7.57,11.447,8.156,12.036,8.742M29.365,17.397c-0.768-0.317-1.534-0.635-2.302-0.952c-0.646-0.268-2.07-1.169-2.495-0.135c-0.481,1.168,2.054,1.747,2.751,2.035c0.455,0.188,0.911,0.377,1.367,0.565C29.7,19.331,30.379,17.816,29.365,17.397M29.942,12.817c-0.83,0-1.66,0-2.49,0c-0.701,0-2.357-0.288-2.355,0.83c0,1.262,2.567,0.827,3.319,0.827c0.493,0,0.986,0,1.479-0.001C30.99,14.473,31.043,12.815,29.942,12.817M24.234,18.568c-0.673-0.673-1.773,0.189-1.281,1.007c-0.295-0.264-0.614-0.499-0.961-0.69c3.894-2.866,3.328-9.006-1.021-11.107c-2.024-0.978-4.481-0.828-6.368,0.394c-0.871,0.564-1.603,1.336-2.119,2.236c-0.262,0.456-0.468,0.943-0.612,1.449c-0.074,0.258-0.131,0.521-0.172,0.786c-0.083,0.534-0.109,0.553-0.553,0.871c-0.182-0.957-1.64-0.675-2.326-0.674c-0.815,0.001-1.963-0.217-2.752,0.046c-0.867,0.289-0.652,1.615,0.263,1.613c0.324,0.052,0.701-0.001,1.028-0.001c0.904-0.001,1.809-0.002,2.713-0.003c-0.308,0.352-0.496,0.969-0.94,0.77c-0.467-0.209-0.978-0.319-1.49-0.319c-0.951,0-1.877,0.375-2.561,1.036c-0.681,0.658-1.088,1.569-1.123,2.516c-0.944,0.31-1.791,0.891-2.421,1.658c-2.756,3.354-0.265,8.554,4.058,8.554v-0.002c3.597,0,7.194,0,10.792,0c1.341,0,2.843,0.167,4.168-0.113c3.652-0.772,5.361-5.21,3.133-8.229c0.548,0.547,1.096,1.094,1.644,1.641c0.183,0.183,0.364,0.424,0.575,0.574c0.552,0.552,1.524,0.066,1.403-0.713c-0.097-0.622-1.042-1.267-1.448-1.673C25.319,19.652,24.776,19.11,24.234,18.568M18.137,8.787c4.559,0.009,6.576,5.979,2.912,8.734c-0.637-3.505-4.161-5.824-7.629-5.03C13.943,10.367,15.852,8.792,18.137,8.787M22.895,24.08c-0.633,3.346-4.149,2.879-6.68,2.879c-3.017,0-6.033,0-9.049,0c-0.767,0-1.62,0.084-2.373-0.095c-2.274-0.538-3.416-3.242-2.172-5.235c0.678-1.087,1.568-1.19,2.626-1.67c0.604-0.273,0.456-0.807,0.456-1.331c0.002-0.597,0.284-1.169,0.756-1.533c0.787-0.608,1.943-0.497,2.611,0.234c1.098,1.205,1.96-1.346,2.507-1.893c2.025-2.025,5.475-1.708,7.068,0.684c0.344,0.516,0.581,1.102,0.693,1.712c0.097,0.529-0.115,1.341,0.188,1.796c0.291,0.47,0.943,0.463,1.397,0.68c0.508,0.23,0.963,0.591,1.304,1.034C22.834,22.125,23.064,23.107,22.895,24.08M6.906,9.917c0.881,0.364,1.763,0.727,2.644,1.091c0.353,0.146,0.707,0.292,1.06,0.437c0.997,0.412,1.637-1.119,0.642-1.526C10.47,9.441,9.456,9.177,8.609,8.828c-0.354-0.146-0.707-0.292-1.06-0.437C6.554,7.98,5.912,9.505,6.906,9.917\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Cloudy\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Cloudy();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Code.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Code.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Code = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Code\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M8.982,7.107L0.322,15.77l8.661,8.662l3.15-3.15L6.621,15.77l5.511-5.511L8.982,7.107zM21.657,7.107l-3.148,3.151l5.511,5.511l-5.511,5.511l3.148,3.15l8.662-8.662L21.657,7.107z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Code\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Code();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/CodeTalk.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/CodeTalk.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.CodeTalk = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.CodeTalk\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,4.938c-7.732,0-14,4.701-14,10.5c0,1.981,0.741,3.833,2.016,5.414L2,25.272l5.613-1.44c2.339,1.316,5.237,2.106,8.387,2.106c7.732,0,14-4.701,14-10.5S23.732,4.938,16,4.938zM13.704,19.47l-2.338,2.336l-6.43-6.431l6.429-6.432l2.339,2.341l-4.091,4.091L13.704,19.47zM20.775,21.803l-2.337-2.339l4.092-4.09l-4.092-4.092l2.337-2.339l6.43,6.426L20.775,21.803z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.CodeTalk\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.CodeTalk();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/CommandLine.js\":\n/*!***************************************!*\\\n !*** ./src/shape/icon/CommandLine.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.CommandLine = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.CommandLine\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M2.021,9.748L2.021,9.748V9.746V9.748zM2.022,9.746l5.771,5.773l-5.772,5.771l2.122,2.123l7.894-7.895L4.143,7.623L2.022,9.746zM12.248,23.269h14.419V20.27H12.248V23.269zM16.583,17.019h10.084V14.02H16.583V17.019zM12.248,7.769v3.001h14.419V7.769H12.248z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.CommandLine\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.CommandLine();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Connect.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Connect.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Connect = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Connect\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.06,13.719c-0.944-5.172-5.461-9.094-10.903-9.094v4c3.917,0.006,7.085,3.176,7.094,7.094c-0.009,3.917-3.177,7.085-7.094,7.093v4.002c5.442-0.004,9.959-3.926,10.903-9.096h4.69v-3.999H25.06zM20.375,15.719c0-3.435-2.784-6.219-6.219-6.219c-2.733,0-5.05,1.766-5.884,4.218H1.438v4.001h6.834c0.833,2.452,3.15,4.219,5.884,4.219C17.591,21.938,20.375,19.153,20.375,15.719z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Connect\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Connect();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Contract.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Contract.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Contract = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Contract\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.083,18.895l-8.428-2.259l2.258,8.428l1.838-1.837l7.053,7.053l2.476-2.476l-7.053-7.053L25.083,18.895zM5.542,11.731l8.428,2.258l-2.258-8.428L9.874,7.398L3.196,0.72L0.72,3.196l6.678,6.678L5.542,11.731zM7.589,20.935l-6.87,6.869l2.476,2.476l6.869-6.869l1.858,1.857l2.258-8.428l-8.428,2.258L7.589,20.935zM23.412,10.064l6.867-6.87l-2.476-2.476l-6.868,6.869l-1.856-1.856l-2.258,8.428l8.428-2.259L23.412,10.064z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Contract\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Contract();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Crop.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Crop.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Crop = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Crop\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.303,21.707V8.275l4.48-4.421l-2.021-2.048l-4.126,4.07H8.761V2.083H5.882v3.793H1.8v2.877h4.083v15.832h15.542v4.609h2.878v-4.609H29.2v-2.878H24.303zM19.72,8.753L8.761,19.565V8.753H19.72zM10.688,21.706l10.735-10.591l0.001,10.592L10.688,21.706z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Crop\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Crop();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Cross.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Cross.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Cross = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Cross\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Cross\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Cross();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Cube.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Cube.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Cube = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Cube\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,3.029l-10.8,6.235L4.7,21.735L15.5,27.971l10.8-6.235V9.265L15.5,3.029zM24.988,10.599L16,15.789v10.378c0,0.275-0.225,0.5-0.5,0.5s-0.5-0.225-0.5-0.5V15.786l-8.987-5.188c-0.239-0.138-0.321-0.444-0.183-0.683c0.138-0.238,0.444-0.321,0.683-0.183l8.988,5.189l8.988-5.189c0.238-0.138,0.545-0.055,0.684,0.184C25.309,10.155,25.227,10.461,24.988,10.599z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Cube\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Cube();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Customer.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Customer.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Customer = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Customer\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.523,23.813c-0.518-0.51-6.795-2.938-7.934-3.396c-1.132-0.451-1.584-1.697-1.584-1.697s-0.51,0.282-0.51-0.51c0-0.793,0.51,0.51,1.021-2.548c0,0,1.414-0.397,1.133-3.68l-0.338,0.001c0,0,0.85-3.511,0-4.699c-0.854-1.188-1.188-1.981-3.062-2.548c-1.869-0.567-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.793-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.32s0.283,3.059,0.566,3.624l-0.337,0.112c-0.283,3.283,1.132,3.681,1.132,3.681c0.509,3.058,1.019,1.755,1.019,2.548c0,0.792-0.51,0.51-0.51,0.51s-0.452,1.246-1.584,1.697c-1.132,0.453-7.416,2.887-7.927,3.396c-0.511,0.521-0.453,2.896-0.453,2.896h12.036l0.878-3.459l-0.781-0.781l1.344-1.344l1.344,1.344l-0.781,0.781l0.879,3.459h12.035C28.977,26.709,29.039,24.332,28.523,23.813z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Customer\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Customer();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Db.js\":\n/*!******************************!*\\\n !*** ./src/shape/icon/Db.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Db = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Db\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.499,23.438c-3.846,0-7.708-0.987-9.534-3.117c-0.054,0.236-0.09,0.48-0.09,0.737v3.877c0,3.435,4.988,4.998,9.625,4.998s9.625-1.563,9.625-4.998v-3.877c0-0.258-0.036-0.501-0.09-0.737C23.209,22.451,19.347,23.438,15.499,23.438zM15.499,15.943c-3.846,0-7.708-0.987-9.533-3.117c-0.054,0.236-0.091,0.479-0.091,0.736v3.877c0,3.435,4.988,4.998,9.625,4.998s9.625-1.563,9.625-4.998v-3.877c0-0.257-0.036-0.501-0.09-0.737C23.209,14.956,19.347,15.943,15.499,15.943zM15.5,1.066c-4.637,0-9.625,1.565-9.625,5.001v3.876c0,3.435,4.988,4.998,9.625,4.998s9.625-1.563,9.625-4.998V6.067C25.125,2.632,20.137,1.066,15.5,1.066zM15.5,9.066c-4.211,0-7.625-1.343-7.625-3c0-1.656,3.414-3,7.625-3s7.625,1.344,7.625,3C23.125,7.724,19.711,9.066,15.5,9.066z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Db\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Db();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Detour.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Detour.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Detour = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Detour\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M29.342,15.5l-7.556-4.363v2.614H18.75c-1.441-0.004-2.423,1.002-2.875,1.784c-0.735,1.222-1.056,2.561-1.441,3.522c-0.135,0.361-0.278,0.655-0.376,0.817c-1.626,0-0.998,0-2.768,0c-0.213-0.398-0.571-1.557-0.923-2.692c-0.237-0.676-0.5-1.381-1.013-2.071C8.878,14.43,7.89,13.726,6.75,13.75H2.812v3.499c0,0,0.358,0,1.031,0h2.741c0.008,0.013,0.018,0.028,0.029,0.046c0.291,0.401,0.634,1.663,1.031,2.888c0.218,0.623,0.455,1.262,0.92,1.897c0.417,0.614,1.319,1.293,2.383,1.293H11c2.25,0,1.249,0,3.374,0c0.696,0.01,1.371-0.286,1.809-0.657c1.439-1.338,1.608-2.886,2.13-4.127c0.218-0.608,0.453-1.115,0.605-1.314c0.006-0.01,0.012-0.018,0.018-0.025h2.85v2.614L29.342,15.5zM10.173,14.539c0.568,0.76,0.874,1.559,1.137,2.311c0.04,0.128,0.082,0.264,0.125,0.399h2.58c0.246-0.697,0.553-1.479,1.005-2.228c0.252-0.438,0.621-0.887,1.08-1.272H9.43C9.735,14.003,9.99,14.277,10.173,14.539z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Detour\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Detour();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Diagram.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Diagram.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.icon.Diagram\r\n\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Diagram();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n_packages2.default.shape.icon.Diagram = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Diagram\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super((0, _extend2.default)({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M6.812,17.202l7.396-3.665v-2.164h-0.834c-0.414,0-0.808-0.084-1.167-0.237v1.159l-7.396,3.667v2.912h2V17.202zM26.561,18.875v-2.913l-7.396-3.666v-1.158c-0.358,0.152-0.753,0.236-1.166,0.236h-0.832l-0.001,2.164l7.396,3.666v1.672H26.561zM16.688,18.875v-7.501h-2v7.501H16.688zM27.875,19.875H23.25c-1.104,0-2,0.896-2,2V26.5c0,1.104,0.896,2,2,2h4.625c1.104,0,2-0.896,2-2v-4.625C29.875,20.771,28.979,19.875,27.875,19.875zM8.125,19.875H3.5c-1.104,0-2,0.896-2,2V26.5c0,1.104,0.896,2,2,2h4.625c1.104,0,2-0.896,2-2v-4.625C10.125,20.771,9.229,19.875,8.125,19.875zM13.375,10.375H18c1.104,0,2-0.896,2-2V3.75c0-1.104-0.896-2-2-2h-4.625c-1.104,0-2,0.896-2,2v4.625C11.375,9.479,12.271,10.375,13.375,10.375zM18,19.875h-4.625c-1.104,0-2,0.896-2,2V26.5c0,1.104,0.896,2,2,2H18c1.104,0,2-0.896,2-2v-4.625C20,20.771,19.104,19.875,18,19.875z\");\n }\n});\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Disconnect.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/Disconnect.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Disconnect = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Disconnect\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M9.219,9.5c-2.733,0-5.05,1.766-5.884,4.218H1.438v4.001h1.897c0.833,2.452,3.15,4.219,5.884,4.219c3.435,0,6.219-2.784,6.219-6.219S12.653,9.5,9.219,9.5zM27.685,13.719c-0.944-5.172-5.461-9.094-10.903-9.094v4c3.917,0.006,7.085,3.176,7.094,7.094c-0.009,3.917-3.177,7.085-7.094,7.093v4.002c5.442-0.004,9.959-3.926,10.903-9.096h2.065v-3.999H27.685z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Disconnect\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Disconnect();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/DockBottom.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/DockBottom.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.DockBottom = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.DockBottom\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M3.083,7.333v16.334h24.833V7.333H3.083zM24.915,16.833H6.083v-6.501h18.833L24.915,16.833L24.915,16.833z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.DockBottom\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.DockBottom();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/DockLeft.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/DockLeft.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.DockLeft = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.DockLeft\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M3.084,7.333v16.334h24.832V7.333H3.084z M11.667,10.332h13.251v10.336H11.667V10.332z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.DockLeft\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.DockLeft();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/DockRight.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/DockRight.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.DockRight = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.DockRight\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M3.083,7.333v16.334h24.833V7.333H3.083z M19.333,20.668H6.083V10.332h13.25V20.668z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.DockRight\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.DockRight();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/DockTop.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/DockTop.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.DockTop = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.DockTop\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.916,23.667V7.333H3.083v16.334H27.916zM24.915,20.668H6.083v-6.501h18.833L24.915,20.668L24.915,20.668z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.DockTop\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.DockTop();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Download.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Download.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Download = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Download\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM16,28.792c-1.549,0-2.806-1.256-2.806-2.806s1.256-2.806,2.806-2.806c1.55,0,2.806,1.256,2.806,2.806S17.55,28.792,16,28.792zM16,21.087l-7.858-6.562h3.469V5.747h8.779v8.778h3.468L16,21.087z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Download\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Download();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Dry.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Dry.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Dry = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Dry\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.784,26.991c0,1.238-1.329,1.696-1.835,1.696c-0.504,0-1.536-0.413-1.65-1.812c0-0.354-0.288-0.642-0.644-0.642c-0.354,0-0.641,0.287-0.641,0.642c0.045,1.056,0.756,3.052,2.935,3.052c2.432,0,3.166-1.882,3.166-3.144v-8.176l-1.328-0.024C14.787,18.584,14.784,25.889,14.784,26.991zM15.584,9.804c-6.807,0-11.084,4.859-11.587,8.326c0.636-0.913,1.694-1.51,2.89-1.51c1.197,0,2.22,0.582,2.855,1.495c0.638-0.904,1.69-1.495,2.88-1.495c1.2,0,2.26,0.6,2.896,1.517c0.635-0.917,1.83-1.517,3.03-1.517c1.19,0,2.241,0.591,2.879,1.495c0.636-0.913,1.659-1.495,2.855-1.495c1.197,0,2.254,0.597,2.89,1.51C26.669,14.663,22.393,9.804,15.584,9.804zM14.733,7.125v2.081h1.323V7.125c0-0.365-0.296-0.661-0.661-0.661C15.029,6.464,14.733,6.76,14.733,7.125zM7.562,6.015c0.54,0.312,1.229,0.128,1.54-0.412c0.109-0.189,0.157-0.398,0.15-0.602L9.251,3.09L7.59,4.047c-0.178,0.095-0.333,0.24-0.441,0.428C6.837,5.015,7.022,5.703,7.562,6.015zM5.572,11.717c0.109-0.19,0.158-0.398,0.151-0.602L5.721,9.203l-1.66,0.957c-0.178,0.096-0.333,0.241-0.441,0.429c-0.311,0.539-0.127,1.229,0.413,1.539C4.571,12.44,5.26,12.256,5.572,11.717zM10.523,9.355c0.539,0.312,1.229,0.126,1.541-0.412c0.109-0.189,0.156-0.398,0.15-0.603L12.214,6.43l-1.662,0.956c-0.177,0.097-0.332,0.241-0.441,0.43C9.799,8.354,9.984,9.044,10.523,9.355zM15.251,3.998c0.539,0.312,1.229,0.126,1.54-0.412c0.11-0.19,0.157-0.398,0.15-0.603L16.94,1.072l-1.661,0.956c-0.178,0.097-0.332,0.242-0.441,0.43C14.526,2.998,14.711,3.687,15.251,3.998zM19.348,8.914c0.539,0.312,1.228,0.128,1.541-0.412c0.109-0.189,0.156-0.398,0.149-0.602h-0.001V5.988l-1.661,0.957c-0.178,0.096-0.332,0.241-0.441,0.429C18.623,7.914,18.809,8.603,19.348,8.914zM23.633,5.196c0.54,0.312,1.23,0.126,1.542-0.413c0.109-0.189,0.156-0.398,0.149-0.602h-0.001V2.27l-1.662,0.957c-0.177,0.096-0.331,0.24-0.44,0.43C22.909,4.195,23.094,4.885,23.633,5.196zM27.528,8.51l-1.659,0.956c-0.18,0.097-0.334,0.242-0.443,0.43c-0.312,0.539-0.127,1.229,0.413,1.54c0.539,0.312,1.229,0.127,1.541-0.412c0.109-0.19,0.158-0.398,0.151-0.603L27.528,8.51z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Dry\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Dry();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Employee.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Employee.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Employee = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Employee\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.523,23.813c-0.518-0.51-6.795-2.938-7.934-3.396c-1.132-0.451-1.584-1.697-1.584-1.697s-0.51,0.282-0.51-0.51c0-0.793,0.51,0.51,1.021-2.548c0,0,1.414-0.397,1.133-3.68l-0.338,0.001c0,0,0.85-3.511,0-4.699c-0.854-1.188-1.188-1.981-3.062-2.548c-1.869-0.567-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.793-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.32s0.283,3.059,0.566,3.624l-0.337,0.112c-0.283,3.283,1.132,3.681,1.132,3.681c0.509,3.058,1.019,1.755,1.019,2.548c0,0.792-0.51,0.51-0.51,0.51s-0.452,1.246-1.584,1.697c-1.132,0.453-7.416,2.887-7.927,3.396c-0.511,0.521-0.453,2.896-0.453,2.896h26.954C28.977,26.709,29.039,24.332,28.523,23.813zM22.188,26.062h-4.562v-1.25h4.562V26.062z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Employee\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Employee();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/End.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/End.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.End = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.End\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.167,5.5,21.167,13.681,6.684,5.318,6.684,25.682,21.167,17.318,21.167,25.5,25.5,25.5,25.5,5.5z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.End\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.End();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ethernet.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Ethernet.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ethernet = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ethernet\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.5,8.5v3.168l3.832,3.832L22.5,19.332V22.5l7-7L22.5,8.5zM8.5,22.5v-3.168L4.667,15.5L8.5,11.668V8.5l-7,7L8.5,22.5zM15.5,14.101c-0.928,0-1.68,0.751-1.68,1.68c0,0.927,0.752,1.681,1.68,1.681c0.927,0,1.68-0.754,1.68-1.681C17.18,14.852,16.427,14.101,15.5,14.101zM10.46,14.101c-0.928,0-1.68,0.751-1.68,1.68c0,0.927,0.752,1.681,1.68,1.681s1.68-0.754,1.68-1.681C12.14,14.852,11.388,14.101,10.46,14.101zM20.541,14.101c-0.928,0-1.682,0.751-1.682,1.68c0,0.927,0.754,1.681,1.682,1.681s1.68-0.754,1.68-1.681C22.221,14.852,21.469,14.101,20.541,14.101z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ethernet\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ethernet();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Exchange.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Exchange.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Exchange = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Exchange\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.786,12.876l7.556-4.363l-7.556-4.363v2.598H2.813v3.5h18.973V12.876zM10.368,18.124l-7.556,4.362l7.556,4.362V24.25h18.974v-3.501H10.368V18.124z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Exchange\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Exchange();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Expand.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Expand.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Expand = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Expand\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.545,23.328,17.918,15.623,25.534,8.007,27.391,9.864,29.649,1.436,21.222,3.694,23.058,5.53,15.455,13.134,7.942,5.543,9.809,3.696,1.393,1.394,3.608,9.833,5.456,8.005,12.98,15.608,5.465,23.123,3.609,21.268,1.351,29.695,9.779,27.438,7.941,25.6,15.443,18.098,23.057,25.791,21.19,27.638,29.606,29.939,27.393,21.5z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Expand\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Expand();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Export.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Export.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Export = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Export\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.086,20.904c-1.805,3.113-5.163,5.212-9.023,5.219c-5.766-0.01-10.427-4.672-10.438-10.435C4.636,9.922,9.297,5.261,15.063,5.25c3.859,0.007,7.216,2.105,9.022,5.218l3.962,2.284l0.143,0.082C26.879,6.784,21.504,2.25,15.063,2.248C7.64,2.25,1.625,8.265,1.624,15.688c0.002,7.42,6.017,13.435,13.439,13.437c6.442-0.002,11.819-4.538,13.127-10.589l-0.141,0.081L24.086,20.904zM28.4,15.688l-7.15-4.129v2.297H10.275v3.661H21.25v2.297L28.4,15.688z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Export\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Export();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Fave.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Fave.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Fave = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Fave\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.132,7.971c-2.203-2.205-5.916-2.098-8.25,0.235L15.5,8.588l-0.382-0.382c-2.334-2.333-6.047-2.44-8.25-0.235c-2.204,2.203-2.098,5.916,0.235,8.249l8.396,8.396l8.396-8.396C26.229,13.887,26.336,10.174,24.132,7.971z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Fave\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Fave();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Feed.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Feed.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Feed = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Feed\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.135,16.762c3.078,0,5.972,1.205,8.146,3.391c2.179,2.187,3.377,5.101,3.377,8.202h4.745c0-9.008-7.299-16.335-16.269-16.335V16.762zM4.141,8.354c10.973,0,19.898,8.975,19.898,20.006h4.743c0-13.646-11.054-24.749-24.642-24.749V8.354zM10.701,25.045c0,1.815-1.471,3.287-3.285,3.287s-3.285-1.472-3.285-3.287c0-1.813,1.471-3.285,3.285-3.285S10.701,23.231,10.701,25.045z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Feed\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Feed();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ff.js\":\n/*!******************************!*\\\n !*** ./src/shape/icon/Ff.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ff = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ff\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.5,15.5,15.2,9.552,15.2,15.153,5.5,9.552,5.5,21.447,15.2,15.847,15.2,21.447z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ff\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ff();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Firefox.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Firefox.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Firefox = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Firefox\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.4,22.469c0.479-0.964,0.851-1.991,1.095-3.066c0.953-3.661,0.666-6.854,0.666-6.854l-0.327,2.104c0,0-0.469-3.896-1.044-5.353c-0.881-2.231-1.273-2.214-1.274-2.21c0.542,1.379,0.494,2.169,0.483,2.288c-0.01-0.016-0.019-0.032-0.027-0.047c-0.131-0.324-0.797-1.819-2.225-2.878c-2.502-2.481-5.943-4.014-9.745-4.015c-4.056,0-7.705,1.745-10.238,4.525C5.444,6.5,5.183,5.938,5.159,5.317c0,0-0.002,0.002-0.006,0.005c0-0.011-0.003-0.021-0.003-0.031c0,0-1.61,1.247-1.436,4.612c-0.299,0.574-0.56,1.172-0.777,1.791c-0.375,0.817-0.75,2.004-1.059,3.746c0,0,0.133-0.422,0.399-0.988c-0.064,0.482-0.103,0.971-0.116,1.467c-0.09,0.845-0.118,1.865-0.039,3.088c0,0,0.032-0.406,0.136-1.021c0.834,6.854,6.667,12.165,13.743,12.165l0,0c1.86,0,3.636-0.37,5.256-1.036C24.938,27.771,27.116,25.196,28.4,22.469zM16.002,3.356c2.446,0,4.73,0.68,6.68,1.86c-2.274-0.528-3.433-0.261-3.423-0.248c0.013,0.015,3.384,0.589,3.981,1.411c0,0-1.431,0-2.856,0.41c-0.065,0.019,5.242,0.663,6.327,5.966c0,0-0.582-1.213-1.301-1.42c0.473,1.439,0.351,4.17-0.1,5.528c-0.058,0.174-0.118-0.755-1.004-1.155c0.284,2.037-0.018,5.268-1.432,6.158c-0.109,0.07,0.887-3.189,0.201-1.93c-4.093,6.276-8.959,2.539-10.934,1.208c1.585,0.388,3.267,0.108,4.242-0.559c0.982-0.672,1.564-1.162,2.087-1.047c0.522,0.117,0.87-0.407,0.464-0.872c-0.405-0.466-1.392-1.105-2.725-0.757c-0.94,0.247-2.107,1.287-3.886,0.233c-1.518-0.899-1.507-1.63-1.507-2.095c0-0.366,0.257-0.88,0.734-1.028c0.58,0.062,1.044,0.214,1.537,0.466c0.005-0.135,0.006-0.315-0.001-0.519c0.039-0.077,0.015-0.311-0.047-0.596c-0.036-0.287-0.097-0.582-0.19-0.851c0.01-0.002,0.017-0.007,0.021-0.021c0.076-0.344,2.147-1.544,2.299-1.659c0.153-0.114,0.55-0.378,0.506-1.183c-0.015-0.265-0.058-0.294-2.232-0.286c-0.917,0.003-1.425-0.894-1.589-1.245c0.222-1.231,0.863-2.11,1.919-2.704c0.02-0.011,0.015-0.021-0.008-0.027c0.219-0.127-2.524-0.006-3.76,1.604C9.674,8.045,9.219,7.95,8.71,7.95c-0.638,0-1.139,0.07-1.603,0.187c-0.05,0.013-0.122,0.011-0.208-0.001C6.769,8.04,6.575,7.88,6.365,7.672c0.161-0.18,0.324-0.356,0.495-0.526C9.201,4.804,12.43,3.357,16.002,3.356z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Firefox\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Firefox();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Flag.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Flag.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Flag = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Flag\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.04,9.508c0.138-0.533,0.15-1.407,0.028-1.943l-0.404-1.771c-0.122-0.536-0.665-1.052-1.207-1.146l-3.723-0.643c-0.542-0.094-1.429-0.091-1.97,0.007l-4.033,0.726c-0.542,0.098-1.429,0.108-1.973,0.023L8.812,4.146C8.817,4.165,8.826,4.182,8.83,4.201l2.701,12.831l1.236,0.214c0.542,0.094,1.428,0.09,1.97-0.007l4.032-0.727c0.541-0.097,1.429-0.107,1.973-0.022l4.329,0.675c0.544,0.085,0.906-0.288,0.807-0.829l-0.485-2.625c-0.1-0.541-0.069-1.419,0.068-1.952L26.04,9.508zM6.667,3.636C6.126,3.75,5.78,4.279,5.894,4.819l5.763,27.378H13.7L7.852,4.409C7.736,3.867,7.207,3.521,6.667,3.636z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Flag\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Flag();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Flickr.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Flickr.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Flickr = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Flickr\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.77,8.895c-2.379,0-4.479,1.174-5.77,2.969c-1.289-1.795-3.39-2.969-5.77-2.969c-3.924,0-7.105,3.181-7.105,7.105c0,3.924,3.181,7.105,7.105,7.105c2.379,0,4.48-1.175,5.77-2.97c1.29,1.795,3.391,2.97,5.77,2.97c3.925,0,7.105-3.182,7.105-7.105C28.875,12.075,25.694,8.895,21.77,8.895zM21.769,21.822c-3.211,0-5.821-2.61-5.821-5.821c0-3.213,2.61-5.824,5.821-5.824c3.213,0,5.824,2.611,5.824,5.824C27.593,19.212,24.981,21.822,21.769,21.822z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Flickr\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Flickr();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Folder.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Folder.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Folder = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Folder\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.625,26.75h-26.5V8.375h1.124c1.751,0,0.748-3.125,3-3.125c3.215,0,1.912,0,5.126,0c2.251,0,1.251,3.125,3.001,3.125h14.25V26.75z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Folder\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Folder();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Font.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Font.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Font = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Font\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.255,19.327l-1.017,0.131c-0.609,0.081-1.067,0.208-1.375,0.382c-0.521,0.293-0.779,0.76-0.779,1.398c0,0.484,0.178,0.867,0.532,1.146c0.354,0.28,0.774,0.421,1.262,0.421c0.593,0,1.164-0.138,1.72-0.412c0.938-0.453,1.4-1.188,1.4-2.229v-1.354c-0.205,0.131-0.469,0.229-0.792,0.328C22.883,19.229,22.564,19.29,22.255,19.327zM8.036,18.273h4.309l-2.113-6.063L8.036,18.273zM28.167,7.75H3.168c-0.552,0-1,0.448-1,1v16.583c0,0.553,0.448,1,1,1h24.999c0.554,0,1-0.447,1-1V8.75C29.167,8.198,28.721,7.75,28.167,7.75zM14.305,23.896l-1.433-4.109H7.488L6,23.896H4.094L9.262,10.17h2.099l4.981,13.727H14.305L14.305,23.896zM26.792,23.943c-0.263,0.074-0.461,0.121-0.599,0.141c-0.137,0.02-0.323,0.027-0.562,0.027c-0.579,0-0.999-0.204-1.261-0.615c-0.138-0.219-0.231-0.525-0.29-0.926c-0.344,0.449-0.834,0.839-1.477,1.169c-0.646,0.329-1.354,0.493-2.121,0.493c-0.928,0-1.688-0.28-2.273-0.844c-0.589-0.562-0.884-1.271-0.884-2.113c0-0.928,0.29-1.646,0.868-2.155c0.578-0.511,1.34-0.824,2.279-0.942l2.682-0.336c0.388-0.05,0.646-0.211,0.775-0.484c0.063-0.146,0.104-0.354,0.104-0.646c0-0.575-0.203-0.993-0.604-1.252c-0.408-0.26-0.99-0.389-1.748-0.389c-0.877,0-1.5,0.238-1.865,0.713c-0.205,0.263-0.34,0.654-0.399,1.174H17.85c0.031-1.237,0.438-2.097,1.199-2.582c0.77-0.484,1.659-0.726,2.674-0.726c1.176,0,2.131,0.225,2.864,0.673c0.729,0.448,1.093,1.146,1.093,2.093v5.766c0,0.176,0.035,0.313,0.106,0.422c0.071,0.104,0.223,0.156,0.452,0.156c0.076,0,0.16-0.005,0.254-0.015c0.093-0.011,0.191-0.021,0.299-0.041L26.792,23.943L26.792,23.943z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Font\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Font();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Fork.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Fork.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Fork = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Fork\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M13.741,10.249h8.045v2.627l7.556-4.363l-7.556-4.363v2.598H9.826C11.369,7.612,12.616,8.922,13.741,10.249zM21.786,20.654c-0.618-0.195-1.407-0.703-2.291-1.587c-1.79-1.756-3.712-4.675-5.731-7.227c-2.049-2.486-4.159-4.972-7.451-5.091h-3.5v3.5h3.5c0.656-0.027,1.683,0.486,2.879,1.683c1.788,1.753,3.712,4.674,5.731,7.226c1.921,2.331,3.907,4.639,6.863,5.016v2.702l7.556-4.362l-7.556-4.362V20.654z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Fork\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Fork();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ForkAlt.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/ForkAlt.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ForkAlt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ForkAlt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.786,12.873l7.556-4.361l-7.556-4.362v2.701c-2.929,0.374-4.905,2.64-6.809,4.952c0.545,0.703,1.08,1.418,1.604,2.127c0.192,0.26,0.383,0.514,0.573,0.77c0.802-1.043,1.584-1.999,2.341-2.74c0.884-0.885,1.673-1.393,2.291-1.588V12.873zM17.661,17.006c-1.893-2.371-3.815-5.354-6.009-7.537c-1.461-1.428-3.155-2.664-5.34-2.693h-3.5v3.5h3.5c0.971-0.119,2.845,1.333,4.712,3.771c1.895,2.371,3.815,5.354,6.011,7.537c1.326,1.297,2.847,2.426,4.751,2.645v2.646l7.556-4.363l-7.556-4.362v2.535C20.746,20.346,19.205,19.022,17.661,17.006z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ForkAlt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ForkAlt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/FullCube.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/FullCube.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.FullCube = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.FullCube\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,3.029l-10.8,6.235L4.7,21.735L15.5,27.971l10.8-6.235V9.265L15.5,3.029zM15.5,7.029l6.327,3.652L15.5,14.334l-6.326-3.652L15.5,7.029zM24.988,10.599L16,15.789v10.378c0,0.275-0.225,0.5-0.5,0.5s-0.5-0.225-0.5-0.5V15.786l-8.987-5.188c-0.239-0.138-0.321-0.444-0.183-0.683c0.138-0.238,0.444-0.321,0.683-0.183l8.988,5.189l8.988-5.189c0.238-0.138,0.545-0.055,0.684,0.184C25.309,10.155,25.227,10.461,24.988,10.599z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.FullCube\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.FullCube();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Future.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Future.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Future = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Future\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M17.001,15.5l-0.5-7.876c0-0.552-0.448-1-1-1c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.89-0.365,1.365c0.275,0.479,0.889,0.644,1.365,0.367l3.305-1.677C15.39,16.99,15.444,17,15.501,17C16.329,17,17.001,16.329,17.001,15.5zM18.939,21.455c-0.479,0.277-0.644,0.889-0.366,1.367c0.274,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.89,0.365-1.365C20.027,21.344,19.417,21.18,18.939,21.455zM19.938,7.813c-0.477-0.276-1.09-0.111-1.364,0.366c-0.275,0.48-0.111,1.091,0.366,1.367c0.477,0.276,1.088,0.112,1.365-0.366C20.581,8.702,20.418,8.089,19.938,7.813zM21.823,20.305c0.477,0.274,1.089,0.112,1.364-0.365c0.276-0.479,0.112-1.092-0.364-1.367c-0.48-0.275-1.093-0.111-1.367,0.365C21.182,19.416,21.344,20.029,21.823,20.305zM22.822,12.428c0.478-0.275,0.643-0.888,0.365-1.366c-0.274-0.478-0.89-0.642-1.365-0.366c-0.479,0.278-0.643,0.89-0.366,1.367S22.344,12.705,22.822,12.428zM24.378,15.5c0-0.551-0.448-1-1-1c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1C23.93,16.5,24.378,16.053,24.378,15.5zM9.546,12.062c0.275-0.478,0.111-1.089-0.366-1.366c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366C8.658,12.704,9.269,12.541,9.546,12.062zM6.624,15.5c0,0.553,0.449,1,1,1c0.552,0,1-0.447,1.001-1c-0.001-0.552-0.448-0.999-1.001-1C7.071,14.5,6.624,14.948,6.624,15.5zM9.179,20.305c0.479-0.275,0.643-0.888,0.367-1.367c-0.276-0.477-0.888-0.641-1.367-0.365c-0.478,0.277-0.642,0.889-0.365,1.367C8.089,20.418,8.703,20.58,9.179,20.305zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM14.501,23.377c0,0.553,0.448,1,1,1c0.552,0,1-0.447,1-1s-0.448-1-1-1C14.949,22.377,14.501,22.824,14.501,23.377zM10.696,21.822c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.276,1.091,0.11,1.365-0.365c0.277-0.479,0.113-1.09-0.365-1.367C11.584,21.18,10.973,21.344,10.696,21.822zM28.674,14.087l-3.27-1.186c0.291,1.105,0.41,2.274,0.309,3.478c-0.492,5.639-5.449,9.809-11.091,9.333c-5.639-0.495-9.809-5.45-9.333-11.09c0.494-5.641,5.449-9.812,11.089-9.335c2.428,0.212,4.567,1.266,6.194,2.833l-1.637,1.377l7.031,2.548l-1.309-7.364l-1.771,1.492c-2.133-2.151-4.996-3.597-8.25-3.877C9.346,1.67,2.926,7.072,2.297,14.364c-0.625,7.291,4.777,13.71,12.066,14.339c7.293,0.625,13.713-4.776,14.342-12.066C28.779,15.771,28.762,14.919,28.674,14.087z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Future\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Future();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/GRaphael.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/GRaphael.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.GRaphael = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.GRaphael\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.833,15.709c0-1.477-0.574-2.862-1.617-3.904l-7.002-7.001l-0.003,0.002c-1.027-1.03-2.445-1.62-3.9-1.62c-1.455,0-2.871,0.59-3.9,1.621l-0.002-0.002l-7,7C4.376,12.836,3.79,14.25,3.79,15.709s0.586,2.873,1.619,3.902l6.312,6.312c0.253,0.285,0.519,0.556,0.8,0.8c1.049,0.989,2.463,1.534,3.908,1.51c1.417-0.021,2.783-0.604,3.785-1.604l6.812-6.812c0.021-0.021,0.035-0.029,0.062-0.062l0.143-0.146c0.271-0.271,0.484-0.562,0.725-0.86l-0.012-0.002C28.516,17.85,28.833,16.805,28.833,15.709zM18.77,25.17c-1.121,1.119-2.917,1.336-4.271,0.514l0.002-0.002c-0.213-0.145-0.414-0.303-0.61-0.471c-0.016-0.016-7.04-7.041-7.04-7.041c-1.34-1.34-1.342-3.584,0-4.92l7-6.998c1.121-1.121,2.908-1.338,4.259-0.512v0.002c0.213,0.141,0.414,0.299,0.604,0.467c0.021,0.016,7.053,7.043,7.053,7.043c0.396,0.388,0.655,0.852,0.818,1.348l-2.607,0.006c-0.537-3.754-3.769-6.641-7.667-6.641c-4.277,0-7.744,3.468-7.745,7.746c0.001,4.277,3.468,7.744,7.745,7.744c3.917,0,7.156-2.91,7.668-6.688l2.638-0.021c-0.16,0.521-0.441,1.02-0.849,1.412L18.77,25.17zM16.312,16.789c0.002,0,0.002,0,0.004,0l5.476-0.02c-0.5,2.562-2.76,4.518-5.48,4.521c-3.084-0.004-5.578-2.5-5.584-5.582c0.006-3.084,2.5-5.58,5.584-5.584c2.708,0.004,4.959,1.929,5.472,4.484l-5.476,0.018c-0.596,0.002-1.078,0.488-1.076,1.084C15.233,16.308,15.715,16.789,16.312,16.789z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.GRaphael\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.GRaphael();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Gear.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Gear.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Gear = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Gear\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.974,16.514l3.765-1.991c-0.074-0.738-0.217-1.454-0.396-2.157l-4.182-0.579c-0.362-0.872-0.84-1.681-1.402-2.423l1.594-3.921c-0.524-0.511-1.09-0.977-1.686-1.406l-3.551,2.229c-0.833-0.438-1.73-0.77-2.672-0.984l-1.283-3.976c-0.364-0.027-0.728-0.056-1.099-0.056s-0.734,0.028-1.099,0.056l-1.271,3.941c-0.967,0.207-1.884,0.543-2.738,0.986L7.458,4.037C6.863,4.466,6.297,4.932,5.773,5.443l1.55,3.812c-0.604,0.775-1.11,1.629-1.49,2.55l-4.05,0.56c-0.178,0.703-0.322,1.418-0.395,2.157l3.635,1.923c0.041,1.013,0.209,1.994,0.506,2.918l-2.742,3.032c0.319,0.661,0.674,1.303,1.085,1.905l4.037-0.867c0.662,0.72,1.416,1.351,2.248,1.873l-0.153,4.131c0.663,0.299,1.352,0.549,2.062,0.749l2.554-3.283C15.073,26.961,15.532,27,16,27c0.507,0,1.003-0.046,1.491-0.113l2.567,3.301c0.711-0.2,1.399-0.45,2.062-0.749l-0.156-4.205c0.793-0.513,1.512-1.127,2.146-1.821l4.142,0.889c0.411-0.602,0.766-1.243,1.085-1.905l-2.831-3.131C26.778,18.391,26.93,17.467,26.974,16.514zM20.717,21.297l-1.785,1.162l-1.098-1.687c-0.571,0.22-1.186,0.353-1.834,0.353c-2.831,0-5.125-2.295-5.125-5.125c0-2.831,2.294-5.125,5.125-5.125c2.83,0,5.125,2.294,5.125,5.125c0,1.414-0.573,2.693-1.499,3.621L20.717,21.297z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Gear\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Gear();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Gear2.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Gear2.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Gear2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Gear2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M17.047,27.945c-0.34,0.032-0.688,0.054-1.046,0.054l0,0c-0.32,0-0.631-0.017-0.934-0.043l0,0l-2.626,3.375l-0.646-0.183c-0.758-0.213-1.494-0.48-2.202-0.8l0,0L8.979,30.07l0.158-4.24c-0.558-0.39-1.079-0.825-1.561-1.302l0,0L3.424,25.42l-0.379-0.557c-0.445-0.654-0.824-1.339-1.16-2.032l0,0l-0.292-0.605l2.819-3.12c-0.176-0.661-0.293-1.343-0.353-2.038l0,0l-3.736-1.975l0.068-0.669c0.08-0.801,0.235-1.567,0.42-2.303l0,0l0.165-0.653l4.167-0.577c0.297-0.627,0.647-1.221,1.041-1.78l0,0l-1.59-3.914l0.48-0.47c0.564-0.55,1.168-1.048,1.798-1.503l0,0l0.546-0.394l3.597,2.259c0.606-0.279,1.24-0.509,1.897-0.685l0,0l1.304-4.046l0.672-0.051c0.362-0.027,0.751-0.058,1.174-0.058l0,0c0.422,0,0.81,0.031,1.172,0.058l0,0l0.672,0.051l1.318,4.088c0.632,0.176,1.244,0.401,1.831,0.674l0,0l3.647-2.291l0.548,0.394c0.63,0.455,1.235,0.954,1.798,1.501l0,0l0.482,0.47l-1.639,4.031c0.357,0.519,0.679,1.068,0.954,1.646l0,0l4.297,0.595l0.167,0.653c0.188,0.735,0.342,1.501,0.42,2.303l0,0l0.068,0.669l-3.866,2.044c-0.058,0.634-0.161,1.258-0.315,1.866l0,0l2.913,3.218l-0.293,0.608c-0.335,0.695-0.712,1.382-1.159,2.034l0,0l-0.379,0.555l-4.255-0.912c-0.451,0.451-0.939,0.866-1.461,1.241l0,0l0.162,4.323l-0.615,0.278c-0.709,0.319-1.444,0.587-2.202,0.8l0,0l-0.648,0.183L17.047,27.945L17.047,27.945zM20.424,29.028c0.227-0.076,0.45-0.157,0.671-0.244l0,0l-0.152-4.083l0.479-0.307c0.717-0.466,1.37-1.024,1.95-1.658l0,0l0.386-0.423l4.026,0.862c0.121-0.202,0.238-0.409,0.351-0.62l0,0l-2.754-3.045l0.171-0.544c0.243-0.783,0.381-1.623,0.422-2.5l0,0l0.025-0.571l3.658-1.933c-0.038-0.234-0.082-0.467-0.132-0.7l0,0l-4.07-0.563l-0.219-0.527c-0.327-0.787-0.76-1.524-1.277-2.204l0,0l-0.342-0.453l1.548-3.808c-0.179-0.157-0.363-0.31-0.552-0.458l0,0l-3.455,2.169L20.649,7.15c-0.754-0.397-1.569-0.698-2.429-0.894l0,0l-0.556-0.127l-1.248-3.87c-0.121-0.006-0.239-0.009-0.354-0.009l0,0c-0.117,0-0.235,0.003-0.357,0.009l0,0l-1.239,3.845l-0.564,0.12c-0.875,0.188-1.709,0.494-2.486,0.896l0,0l-0.508,0.264L7.509,5.249c-0.188,0.148-0.372,0.301-0.55,0.458l0,0l1.507,3.708L8.112,9.869c-0.552,0.709-1.011,1.485-1.355,2.319l0,0l-0.218,0.529l-3.939,0.545c-0.05,0.233-0.094,0.466-0.131,0.7l0,0l3.531,1.867l0.022,0.575c0.037,0.929,0.192,1.82,0.459,2.653l0,0l0.175,0.548l-2.667,2.95c0.112,0.212,0.229,0.419,0.351,0.621l0,0l3.916-0.843l0.39,0.423c0.601,0.657,1.287,1.229,2.043,1.703l0,0l0.488,0.305l-0.149,4.02c0.221,0.087,0.445,0.168,0.672,0.244l0,0l2.479-3.188l0.566,0.07c0.427,0.054,0.843,0.089,1.257,0.089l0,0c0.445,0,0.894-0.039,1.353-0.104l0,0l0.571-0.08L20.424,29.028L20.424,29.028zM21.554,20.75l0.546,0.839l-3.463,2.253l-1.229-1.891l0,0c-0.447,0.109-0.917,0.173-1.406,0.173l0,0c-3.384,0-6.126-2.743-6.126-6.123l0,0c0-3.384,2.742-6.126,6.126-6.126l0,0c3.38,0,6.123,2.742,6.123,6.126l0,0c0,1.389-0.467,2.676-1.25,3.704l0,0L21.554,20.75M19.224,21.073l0.108-0.069l-0.987-1.519l0.572-0.572c0.748-0.75,1.207-1.773,1.207-2.912l0,0c-0.004-2.278-1.848-4.122-4.123-4.126l0,0c-2.28,0.004-4.122,1.846-4.126,4.126l0,0c0.004,2.275,1.848,4.119,4.126,4.123l0,0c0.509,0,0.999-0.104,1.473-0.286l0,0l0.756-0.29L19.224,21.073L19.224,21.073z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Gear2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Gear2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/GitHub.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/GitHub.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.GitHub = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.GitHub\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.436,15.099c-1.201-0.202-2.451-0.335-3.466-0.371l-0.179-0.006c0.041-0.09,0.072-0.151,0.082-0.16c0.022-0.018,0.04-0.094,0.042-0.168c0-0.041,0.018-0.174,0.046-0.35c0.275,0.01,0.64,0.018,1.038,0.021c1.537,0.012,3.145,0.136,4.248,0.331c0.657,0.116,0.874,0.112,0.389-0.006c-0.491-0.119-1.947-0.294-3.107-0.37c-0.779-0.053-1.896-0.073-2.554-0.062c0.019-0.114,0.041-0.241,0.064-0.371c0.093-0.503,0.124-1.009,0.126-2.016c0.002-1.562-0.082-1.992-0.591-3.025c-0.207-0.422-0.441-0.78-0.724-1.104c0.247-0.729,0.241-1.858-0.015-2.848c-0.211-0.812-0.285-0.864-1.021-0.708C22.19,4.019,21.69,4.2,21.049,4.523c-0.303,0.153-0.721,0.391-1.024,0.578c-0.79-0.278-1.607-0.462-2.479-0.561c-0.884-0.1-3.051-0.044-3.82,0.098c-0.752,0.139-1.429,0.309-2.042,0.511c-0.306-0.189-0.75-0.444-1.067-0.604C9.973,4.221,9.473,4.041,8.847,3.908c-0.734-0.157-0.81-0.104-1.02,0.708c-0.26,1.003-0.262,2.151-0.005,2.878C7.852,7.577,7.87,7.636,7.877,7.682c-1.042,1.312-1.382,2.78-1.156,4.829c0.059,0.534,0.15,1.024,0.277,1.473c-0.665-0.004-1.611,0.02-2.294,0.064c-1.162,0.077-2.618,0.25-3.109,0.369c-0.484,0.118-0.269,0.122,0.389,0.007c1.103-0.194,2.712-0.32,4.248-0.331c0.29-0.001,0.561-0.007,0.794-0.013c0.07,0.237,0.15,0.463,0.241,0.678L7.26,14.759c-1.015,0.035-2.264,0.168-3.465,0.37c-0.901,0.151-2.231,0.453-2.386,0.54c-0.163,0.091-0.03,0.071,0.668-0.106c1.273-0.322,2.928-0.569,4.978-0.741l0.229-0.02c0.44,1.022,1.118,1.802,2.076,2.41c0.586,0.373,1.525,0.756,1.998,0.816c0.13,0.016,0.508,0.094,0.84,0.172c0.333,0.078,0.984,0.195,1.446,0.262h0.011c-0.009,0.006-0.017,0.01-0.025,0.016c-0.56,0.291-0.924,0.744-1.169,1.457c-0.11,0.033-0.247,0.078-0.395,0.129c-0.529,0.18-0.735,0.217-1.271,0.221c-0.556,0.004-0.688-0.02-1.02-0.176c-0.483-0.225-0.933-0.639-1.233-1.133c-0.501-0.826-1.367-1.41-2.089-1.41c-0.617,0-0.734,0.25-0.288,0.615c0.672,0.549,1.174,1.109,1.38,1.537c0.116,0.24,0.294,0.611,0.397,0.824c0.109,0.227,0.342,0.535,0.564,0.748c0.522,0.498,1.026,0.736,1.778,0.848c0.504,0.074,0.628,0.074,1.223-0.002c0.287-0.035,0.529-0.076,0.746-0.127c0,0.244,0,0.525,0,0.855c0,1.766-0.021,2.334-0.091,2.5c-0.132,0.316-0.428,0.641-0.716,0.787c-0.287,0.146-0.376,0.307-0.255,0.455c0.067,0.08,0.196,0.094,0.629,0.066c0.822-0.051,1.403-0.355,1.699-0.891c0.095-0.172,0.117-0.518,0.147-2.318c0.032-1.953,0.046-2.141,0.173-2.42c0.077-0.166,0.188-0.346,0.25-0.395c0.104-0.086,0.111,0.084,0.111,2.42c-0.001,2.578-0.027,2.889-0.285,3.385c-0.058,0.113-0.168,0.26-0.245,0.33c-0.135,0.123-0.192,0.438-0.098,0.533c0.155,0.154,0.932-0.088,1.356-0.422c0.722-0.572,0.808-1.045,0.814-4.461l0.003-2.004l0.219,0.021l0.219,0.02l0.036,2.621c0.041,2.951,0.047,2.994,0.549,3.564c0.285,0.322,0.572,0.5,1.039,0.639c0.625,0.188,0.813-0.102,0.393-0.605c-0.457-0.547-0.479-0.756-0.454-3.994c0.017-2.076,0.017-2.076,0.151-1.955c0.282,0.256,0.336,0.676,0.336,2.623c0,2.418,0.069,2.648,0.923,3.07c0.399,0.195,0.511,0.219,1.022,0.221c0.544,0.002,0.577-0.006,0.597-0.148c0.017-0.115-0.05-0.193-0.304-0.348c-0.333-0.205-0.564-0.467-0.709-0.797c-0.055-0.127-0.092-0.959-0.117-2.672c-0.036-2.393-0.044-2.502-0.193-2.877c-0.201-0.504-0.508-0.902-0.897-1.166c-0.101-0.066-0.202-0.121-0.333-0.162c0.161-0.016,0.317-0.033,0.468-0.055c1.572-0.209,2.403-0.383,3.07-0.641c1.411-0.543,2.365-1.445,2.882-2.724c0.046-0.114,0.092-0.222,0.131-0.309l0.398,0.033c2.051,0.173,3.706,0.42,4.979,0.743c0.698,0.177,0.831,0.198,0.668,0.105C30.666,15.551,29.336,15.25,28.436,15.099zM22.422,15.068c-0.233,0.512-0.883,1.17-1.408,1.428c-0.518,0.256-1.33,0.451-2.25,0.544c-0.629,0.064-4.137,0.083-4.716,0.026c-1.917-0.188-2.991-0.557-3.783-1.296c-0.75-0.702-1.1-1.655-1.039-2.828c0.039-0.734,0.216-1.195,0.679-1.755c0.421-0.51,0.864-0.825,1.386-0.985c0.437-0.134,1.778-0.146,3.581-0.03c0.797,0.051,1.456,0.051,2.252,0c1.886-0.119,3.145-0.106,3.61,0.038c0.731,0.226,1.397,0.834,1.797,1.644c0.18,0.362,0.215,0.516,0.241,1.075C22.808,13.699,22.675,14.517,22.422,15.068zM12.912,11.762c-1.073-0.188-1.686,1.649-0.863,2.587c0.391,0.445,0.738,0.518,1.172,0.248c0.402-0.251,0.62-0.72,0.62-1.328C13.841,12.458,13.472,11.862,12.912,11.762zM19.425,11.872c-1.073-0.188-1.687,1.647-0.864,2.586c0.392,0.445,0.738,0.519,1.173,0.247c0.401-0.25,0.62-0.72,0.62-1.328C20.354,12.569,19.985,11.971,19.425,11.872zM16.539,15.484c-0.023,0.074-0.135,0.184-0.248,0.243c-0.286,0.147-0.492,0.096-0.794-0.179c-0.187-0.169-0.272-0.258-0.329-0.081c-0.053,0.164,0.28,0.493,0.537,0.594c0.236,0.094,0.405,0.097,0.661-0.01c0.254-0.106,0.476-0.391,0.476-0.576C16.842,15.303,16.595,15.311,16.539,15.484zM16.222,14.909c0.163-0.144,0.2-0.44,0.044-0.597s-0.473-0.133-0.597,0.043c-0.144,0.206-0.067,0.363,0.036,0.53C15.865,15.009,16.08,15.034,16.222,14.909z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.GitHub\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.GitHub();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/GitHubAlt.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/GitHubAlt.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.GitHubAlt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.GitHubAlt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.356,17.485c-0.004,0.007-0.007,0.013-0.01,0.021l0.162,0.005c0.107,0.004,0.218,0.01,0.33,0.016c-0.046-0.004-0.09-0.009-0.136-0.013L23.356,17.485zM15.5,1.249C7.629,1.25,1.25,7.629,1.249,15.5C1.25,23.371,7.629,29.75,15.5,29.751c7.871-0.001,14.25-6.38,14.251-14.251C29.75,7.629,23.371,1.25,15.5,1.249zM3.771,17.093c0.849-0.092,1.833-0.148,2.791-0.156c0.262,0,0.507-0.006,0.717-0.012c0.063,0.213,0.136,0.419,0.219,0.613H7.492c-0.918,0.031-2.047,0.152-3.134,0.335c-0.138,0.023-0.288,0.051-0.441,0.08C3.857,17.67,3.81,17.383,3.771,17.093zM12.196,22.224c-0.1,0.028-0.224,0.07-0.357,0.117c-0.479,0.169-0.665,0.206-1.15,0.206c-0.502,0.015-0.621-0.019-0.921-0.17C9.33,22.171,8.923,21.8,8.651,21.353c-0.453-0.746-1.236-1.275-1.889-1.275c-0.559,0-0.664,0.227-0.261,0.557c0.608,0.496,1.062,0.998,1.248,1.385c0.105,0.215,0.266,0.546,0.358,0.744c0.099,0.206,0.311,0.474,0.511,0.676c0.472,0.441,0.928,0.659,1.608,0.772c0.455,0.06,0.567,0.06,1.105-0.004c0.26-0.03,0.479-0.067,0.675-0.118v0.771c0,1.049-0.008,1.628-0.031,1.945c-1.852-0.576-3.507-1.595-4.848-2.934c-1.576-1.578-2.706-3.592-3.195-5.848c0.952-0.176,2.073-0.32,3.373-0.43l0.208-0.018c0.398,0.925,1.011,1.631,1.876,2.179c0.53,0.337,1.38,0.685,1.808,0.733c0.118,0.02,0.46,0.09,0.76,0.16c0.302,0.066,0.89,0.172,1.309,0.236h0.009c-0.007,0.018-0.014,0.02-0.022,0.02C12.747,21.169,12.418,21.579,12.196,22.224zM13.732,27.207c-0.168-0.025-0.335-0.056-0.5-0.087c0.024-0.286,0.038-0.785,0.054-1.723c0.028-1.767,0.041-1.94,0.156-2.189c0.069-0.15,0.17-0.32,0.226-0.357c0.095-0.078,0.101,0.076,0.101,2.188C13.769,26.143,13.763,26.786,13.732,27.207zM15.5,27.339c-0.148,0-0.296-0.006-0.443-0.012c0.086-0.562,0.104-1.428,0.106-2.871l0.003-1.82l0.197,0.019l0.199,0.02l0.032,2.365c0.017,1.21,0.027,1.878,0.075,2.296C15.613,27.335,15.558,27.339,15.5,27.339zM17.006,27.24c-0.039-0.485-0.037-1.243-0.027-2.553c0.019-1.866,0.019-1.866,0.131-1.769c0.246,0.246,0.305,0.623,0.305,2.373c0,0.928,0.011,1.497,0.082,1.876C17.334,27.196,17.17,27.22,17.006,27.24zM27.089,17.927c-0.155-0.029-0.307-0.057-0.446-0.08c-0.96-0.162-1.953-0.275-2.804-0.32c1.25,0.108,2.327,0.248,3.246,0.418c-0.479,2.289-1.618,4.33-3.214,5.928c-1.402,1.4-3.15,2.448-5.106,3.008c-0.034-0.335-0.058-1.048-0.066-2.212c-0.03-2.167-0.039-2.263-0.17-2.602c-0.181-0.458-0.47-0.811-0.811-1.055c-0.094-0.057-0.181-0.103-0.301-0.14c0.145-0.02,0.282-0.021,0.427-0.057c1.418-0.188,2.168-0.357,2.772-0.584c1.263-0.492,2.129-1.301,2.606-2.468c0.044-0.103,0.088-0.2,0.123-0.279l0.011,0.001c0.032-0.07,0.057-0.118,0.064-0.125c0.02-0.017,0.036-0.085,0.038-0.151c0-0.037,0.017-0.157,0.041-0.317c0.249,0.01,0.58,0.018,0.938,0.02c0.959,0.008,1.945,0.064,2.794,0.156C27.194,17.356,27.148,17.644,27.089,17.927zM25.823,16.87c-0.697-0.049-1.715-0.064-2.311-0.057c0.02-0.103,0.037-0.218,0.059-0.336c0.083-0.454,0.111-0.912,0.113-1.823c0.002-1.413-0.074-1.801-0.534-2.735c-0.188-0.381-0.399-0.705-0.655-0.998c0.225-0.659,0.207-1.68-0.02-2.575c-0.19-0.734-0.258-0.781-0.924-0.64c-0.563,0.12-1.016,0.283-1.598,0.576c-0.274,0.138-0.652,0.354-0.923,0.522c-0.715-0.251-1.451-0.419-2.242-0.508c-0.799-0.092-2.759-0.04-3.454,0.089c-0.681,0.126-1.293,0.28-1.848,0.462c-0.276-0.171-0.678-0.4-0.964-0.547C9.944,8.008,9.491,7.846,8.925,7.727c-0.664-0.144-0.732-0.095-0.922,0.64c-0.235,0.907-0.237,1.945-0.004,2.603c0.026,0.075,0.043,0.129,0.05,0.17c-0.942,1.187-1.25,2.515-1.046,4.367c0.053,0.482,0.136,0.926,0.251,1.333c-0.602-0.004-1.457,0.018-2.074,0.057c-0.454,0.031-0.957,0.076-1.418,0.129c-0.063-0.5-0.101-1.008-0.101-1.524c0-3.273,1.323-6.225,3.468-8.372c2.146-2.144,5.099-3.467,8.371-3.467c3.273,0,6.226,1.323,8.371,3.467c2.145,2.147,3.468,5.099,3.468,8.372c0,0.508-0.036,1.008-0.098,1.499C26.78,16.946,26.276,16.899,25.823,16.87z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.GitHubAlt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.GitHubAlt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Glasses.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Glasses.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Glasses = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Glasses\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.075,9.531c0,0-2.705-1.438-5.158-1.438c-2.453,0-4.862,0.593-4.862,0.593L3.971,9.869c0,0,0.19,0.19,0.528,0.53c0.338,0.336,0.486,3.741,1.838,5.094c1.353,1.354,4.82,1.396,5.963,0.676c1.14-0.718,2.241-3.466,2.241-4.693c0-0.38,0-0.676,0-0.676c0.274-0.275,1.615-0.303,1.917,0c0,0,0,0.296,0,0.676c0,1.227,1.101,3.975,2.241,4.693c1.144,0.72,4.611,0.678,5.963-0.676c1.355-1.353,1.501-4.757,1.839-5.094c0.338-0.34,0.528-0.53,0.528-0.53l-0.084-1.183c0,0-2.408-0.593-4.862-0.593c-2.453,0-5.158,1.438-5.158,1.438C16.319,9.292,14.737,9.32,14.075,9.531z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Glasses\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Glasses();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Globe.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Globe.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Globe = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Globe\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM19.158,23.269c-0.079,0.064-0.183,0.13-0.105,0.207c0.078,0.078-0.09,0.131-0.09,0.17s0.104,0.246,0.052,0.336c-0.052,0.092-0.091,0.223-0.13,0.301c-0.039,0.077-0.131,0.155-0.104,0.272c0.025,0.116-0.104,0.077-0.104,0.194c0,0.116,0.116,0.065,0.09,0.208c-0.025,0.144-0.09,0.183-0.09,0.285c0,0.104,0.064,0.247,0.064,0.286s-0.064,0.17-0.155,0.272c-0.092,0.104-0.155,0.17-0.144,0.233c0.014,0.065,0.104,0.144,0.091,0.184c-0.013,0.037-0.129,0.168-0.116,0.259c0.014,0.09,0.129,0.053,0.155,0.116c0.026,0.065-0.155,0.118-0.078,0.183c0.078,0.064,0.183,0.051,0.156,0.208c-0.019,0.112,0.064,0.163,0.126,0.198c-0.891,0.221-1.818,0.352-2.777,0.352C9.639,27.533,4.466,22.36,4.466,16c0-2.073,0.557-4.015,1.518-5.697c0.079-0.042,0.137-0.069,0.171-0.062c0.065,0.013,0.079,0.104,0.183,0.13c0.104,0.026,0.195-0.078,0.26-0.117c0.064-0.039,0.116-0.195,0.051-0.182c-0.065,0.013-0.234,0-0.234,0s0.183-0.104,0.183-0.169s0.025-0.169,0.129-0.208C6.83,9.655,6.83,9.681,6.765,9.837C6.7,9.993,6.896,9.928,6.973,9.863s0.13-0.013,0.272-0.104c0.143-0.091,0.143-0.143,0.221-0.143c0.078,0,0.221,0.143,0.299,0.091c0.077-0.052,0.299,0.065,0.429,0.065c0.129,0,0.545,0.169,0.624,0.169c0.078,0,0.312,0.09,0.325,0.259c0.013,0.169,0.09,0.156,0.168,0.156s0.26,0.065,0.26,0.13c0,0.065-0.052,0.325,0.078,0.39c0.129,0.064,0.247,0.169,0.299,0.143c0.052-0.026,0-0.233-0.064-0.26c-0.065-0.026-0.027-0.117-0.052-0.169c-0.026-0.051,0.078-0.051,0.117,0.039c0.039,0.091,0.143,0.26,0.208,0.26c0.064,0,0.208,0.156,0.168,0.247c-0.039,0.091,0.039,0.221,0.156,0.221c0.116,0,0.26,0.182,0.312,0.195c0.052,0.013,0.117,0.078,0.117,0.117c0,0.04,0.065,0.26,0.065,0.351c0,0.09-0.04,0.454-0.053,0.597s0.104,0.39,0.234,0.52c0.129,0.13,0.246,0.377,0.324,0.429c0.079,0.052,0.13,0.195,0.247,0.182c0.117-0.013,0.195,0.078,0.299,0.26c0.104,0.182,0.208,0.48,0.286,0.506c0.078,0.026,0.208,0.117,0.142,0.182c-0.064,0.064-0.168,0.208-0.051,0.208c0.117,0,0.156-0.065,0.247,0.053c0.09,0.116,0.208,0.181,0.194,0.26c-0.013,0.077,0.104,0.103,0.156,0.116c0.052,0.013,0.169,0.247,0.286,0.143c0.117-0.104-0.155-0.259-0.234-0.326c-0.078-0.064,0-0.207-0.182-0.35c-0.182-0.143-0.156-0.247-0.286-0.351c-0.13-0.104-0.233-0.195-0.104-0.286c0.13-0.091,0.143,0.091,0.195,0.208c0.052,0.116,0.324,0.351,0.441,0.454c0.117,0.104,0.326,0.468,0.39,0.468s0.247,0.208,0.247,0.208s0.103,0.168,0.064,0.22c-0.039,0.052,0.053,0.247,0.144,0.299c0.09,0.052,0.455,0.22,0.507,0.247c0.052,0.027,0.155,0.221,0.299,0.221c0.142,0,0.247,0.014,0.286,0.053c0.039,0.038,0.155,0.194,0.234,0.104c0.078-0.092,0.09-0.131,0.208-0.131c0.117,0,0.168,0.091,0.233,0.156c0.065,0.065,0.247,0.235,0.338,0.222c0.091-0.013,0.208,0.104,0.273,0.064s0.169,0.025,0.22,0.052c0.054,0.026,0.234,0.118,0.222,0.272c-0.013,0.157,0.103,0.195,0.182,0.234c0.078,0.039,0.182,0.13,0.248,0.195c0.064,0.063,0.206,0.077,0.246,0.116c0.039,0.039,0.065,0.117,0.182,0.052c0.116-0.064,0.092-0.181,0.092-0.181s0.129-0.026,0.194,0.026c0.064,0.05,0.104,0.22,0.144,0.246c0.038,0.026,0.115,0.221,0.063,0.362c-0.051,0.145-0.038,0.286-0.091,0.286c-0.052,0-0.116,0.17-0.195,0.209c-0.076,0.039-0.285,0.221-0.272,0.286c0.013,0.063,0.131,0.258,0.104,0.35c-0.025,0.091-0.194,0.195-0.154,0.338c0.038,0.144,0.312,0.183,0.323,0.312c0.014,0.131,0.209,0.417,0.235,0.546c0.025,0.13,0.246,0.272,0.246,0.453c0,0.184,0.312,0.3,0.377,0.312c0.063,0.013,0.182,0.131,0.272,0.17s0.169,0.116,0.233,0.221s0.053,0.261,0.053,0.299c0,0.039-0.039,0.44-0.078,0.674C19.145,23.021,19.235,23.203,19.158,23.269zM10.766,11.188c0.039,0.013,0.117,0.091,0.156,0.091c0.04,0,0.234,0.156,0.286,0.208c0.053,0.052,0.053,0.195-0.013,0.208s-0.104-0.143-0.117-0.208c-0.013-0.065-0.143-0.065-0.208-0.104C10.805,11.344,10.66,11.152,10.766,11.188zM27.51,16.41c-0.144,0.182-0.13,0.272-0.195,0.286c-0.064,0.013,0.065,0.065,0.09,0.194c0.022,0.112-0.065,0.224,0.063,0.327c-0.486,4.619-3.71,8.434-8.016,9.787c-0.007-0.011-0.019-0.025-0.021-0.034c-0.027-0.078-0.027-0.233,0.064-0.285c0.091-0.053,0.312-0.233,0.363-0.272c0.052-0.04,0.13-0.221,0.091-0.247c-0.038-0.026-0.232,0-0.26-0.039c-0.026-0.039-0.026-0.092,0.104-0.182c0.13-0.091,0.195-0.222,0.247-0.26c0.052-0.039,0.155-0.117,0.195-0.209c0.038-0.09-0.041-0.039-0.118-0.039s-0.117-0.142-0.117-0.207s0.195,0.026,0.339,0.052c0.143,0.024,0.077-0.065,0.064-0.142c-0.013-0.078,0.026-0.209,0.105-0.17c0.076,0.039,0.479-0.013,0.531-0.026c0.052-0.013,0.194-0.246,0.246-0.312c0.053-0.065,0.064-0.129,0-0.168c-0.065-0.04-0.143-0.184-0.168-0.221c-0.026-0.041-0.039-0.274-0.013-0.34c0.025-0.063,0,0.377,0.181,0.43c0.183,0.052,0.286,0.078,0.455-0.078c0.169-0.155,0.298-0.26,0.312-0.363c0.013-0.104,0.052-0.209,0.117-0.246c0.065-0.039,0.104,0.103,0.182-0.065c0.078-0.17,0.156-0.157,0.234-0.299c0.077-0.144-0.13-0.325,0.024-0.43c0.157-0.103,0.43-0.233,0.43-0.233s0.078-0.039,0.234-0.078c0.155-0.038,0.324-0.014,0.376-0.09c0.052-0.079,0.104-0.247,0.182-0.338c0.079-0.092,0.169-0.234,0.13-0.299c-0.039-0.065,0.104-0.352,0.091-0.429c-0.013-0.078-0.13-0.261,0.065-0.416s0.402-0.391,0.416-0.454c0.012-0.065,0.169-0.338,0.154-0.469c-0.012-0.129-0.154-0.285-0.245-0.325c-0.092-0.037-0.286-0.05-0.364-0.154s-0.299-0.208-0.377-0.182c-0.077,0.026-0.208,0.051-0.312-0.015c-0.104-0.063-0.272-0.143-0.337-0.194c-0.066-0.051-0.234-0.09-0.312-0.09s-0.065-0.053-0.182,0.103c-0.117,0.157,0,0.209-0.208,0.182c-0.209-0.024,0.025-0.038,0.144-0.194c0.115-0.155-0.014-0.247-0.144-0.207c-0.13,0.039-0.039,0.117-0.247,0.156c-0.207,0.038-0.207-0.092-0.077-0.117c0.13-0.026,0.363-0.143,0.363-0.194c0-0.053-0.026-0.196-0.13-0.196s-0.078-0.129-0.233-0.297c-0.156-0.17-0.351-0.274-0.508-0.249c-0.154,0.026-0.272,0.065-0.35-0.076c-0.078-0.144-0.169-0.17-0.222-0.247c-0.051-0.078-0.182,0-0.221-0.039s-0.039-0.039-0.039-0.039s-0.169,0.039-0.077-0.078c0.09-0.117,0.129-0.338,0.09-0.325c-0.038,0.013-0.104,0.196-0.168,0.183c-0.064-0.013-0.014-0.04-0.144-0.117c-0.13-0.078-0.337-0.013-0.337,0.052c0,0.065-0.065,0.117-0.065,0.117s-0.039-0.038-0.078-0.117c-0.039-0.078-0.221-0.091-0.312-0.013c-0.09,0.078-0.142-0.196-0.207-0.196s-0.194,0.065-0.26,0.184c-0.064,0.116-0.038,0.285-0.092,0.272c-0.05-0.013-0.063-0.233-0.05-0.312c0.012-0.079,0.155-0.208,0.05-0.234c-0.103-0.026-0.259,0.13-0.323,0.143c-0.065,0.013-0.195,0.104-0.273,0.209c-0.077,0.103-0.116,0.168-0.195,0.207c-0.077,0.039-0.193,0-0.167-0.039c0.025-0.039-0.222-0.181-0.261-0.13c-0.04,0.052-0.155,0.091-0.272,0.144c-0.117,0.052-0.222-0.065-0.247-0.117s-0.079-0.064-0.091-0.234c-0.013-0.168,0.027-0.351,0.065-0.454c0.038-0.104-0.195-0.312-0.286-0.3c-0.091,0.015-0.182,0.105-0.272,0.091c-0.092-0.012-0.052-0.038-0.195-0.038c-0.143,0-0.026-0.025,0-0.143c0.025-0.116-0.052-0.273,0.092-0.377c0.142-0.104,0.091-0.351,0-0.363c-0.092-0.014-0.261,0.039-0.377,0.026c-0.116-0.014-0.208,0.091-0.169,0.207c0.039,0.117-0.065,0.195-0.104,0.183c-0.039-0.013-0.09-0.078-0.234,0.026c-0.142,0.103-0.194,0.064-0.337-0.052c-0.143-0.118-0.299-0.234-0.325-0.416c-0.026-0.182-0.04-0.364,0.013-0.468c0.051-0.104,0.051-0.285-0.026-0.312c-0.078-0.025,0.09-0.155,0.181-0.181c0.092-0.026,0.234-0.143,0.26-0.195c0.026-0.052,0.156-0.04,0.298-0.04c0.143,0,0.169,0,0.312,0.078c0.143,0.078,0.169-0.039,0.169-0.078c0-0.039,0.052-0.117,0.208-0.104c0.156,0.013,0.376-0.052,0.416-0.013s0.116,0.195,0.194,0.143c0.079-0.051,0.104-0.143,0.131,0.014c0.025,0.155,0.09,0.39,0.208,0.429c0.116,0.039,0.052,0.194,0.168,0.207c0.115,0.013,0.17-0.246,0.131-0.337c-0.04-0.09-0.118-0.363-0.183-0.428c-0.064-0.065-0.064-0.234,0.064-0.286c0.13-0.052,0.442-0.312,0.532-0.389c0.092-0.079,0.338-0.144,0.261-0.248c-0.078-0.104-0.104-0.168-0.104-0.247s0.078-0.052,0.117,0s0.194-0.078,0.155-0.143c-0.038-0.064-0.026-0.155,0.065-0.143c0.091,0.013,0.116-0.065,0.078-0.117c-0.039-0.052,0.091-0.117,0.182-0.091c0.092,0.026,0.325-0.013,0.364-0.065c0.038-0.052-0.078-0.104-0.078-0.208c0-0.104,0.155-0.195,0.247-0.208c0.091-0.013,0.207,0,0.221-0.039c0.012-0.039,0.143-0.143,0.155-0.052c0.014,0.091,0,0.247,0.104,0.247c0.104,0,0.232-0.117,0.272-0.129c0.038-0.013,0.286-0.065,0.338-0.078c0.052-0.013,0.363-0.039,0.325-0.13c-0.039-0.09-0.078-0.181-0.118-0.22c-0.039-0.039-0.077,0.013-0.13,0.078c-0.051,0.065-0.143,0.065-0.168,0.013c-0.026-0.051,0.012-0.207-0.078-0.156c-0.092,0.052-0.104,0.104-0.157,0.078c-0.052-0.026-0.103-0.117-0.103-0.117s0.129-0.064,0.038-0.182c-0.09-0.117-0.221-0.091-0.35-0.025c-0.13,0.064-0.118,0.051-0.273,0.09s-0.234,0.078-0.234,0.078s0.209-0.129,0.299-0.208c0.091-0.078,0.209-0.117,0.286-0.195c0.078-0.078,0.285,0.039,0.285,0.039s0.105-0.104,0.105-0.039s-0.027,0.234,0.051,0.234c0.079,0,0.299-0.104,0.21-0.131c-0.093-0.026,0.129,0,0.219-0.065c0.092-0.065,0.194-0.065,0.247-0.09c0.052-0.026,0.092-0.143,0.182-0.143c0.092,0,0.13,0.117,0,0.195s-0.143,0.273-0.208,0.325c-0.064,0.052-0.026,0.117,0.078,0.104c0.104-0.013,0.194,0.013,0.286-0.013s0.143,0.026,0.168,0.065c0.026,0.039,0.104-0.039,0.104-0.039s0.169-0.039,0.221,0.026c0.053,0.064,0.092-0.039,0.053-0.104c-0.039-0.064-0.092-0.129-0.13-0.208c-0.039-0.078-0.091-0.104-0.194-0.078c-0.104,0.026-0.13-0.026-0.195-0.064c-0.065-0.04-0.118,0.052-0.065-0.04c0.053-0.09,0.078-0.117,0.117-0.195c0.039-0.078,0.209-0.221,0.039-0.259c-0.169-0.04-0.222-0.065-0.247-0.143c-0.026-0.078-0.221-0.221-0.272-0.221c-0.053,0-0.233,0-0.247-0.065c-0.013-0.065-0.143-0.208-0.208-0.273c-0.064-0.065-0.312-0.351-0.351-0.377c-0.039-0.026-0.091-0.013-0.208,0.143c-0.116,0.157-0.22,0.183-0.312,0.144c-0.091-0.039-0.104-0.026-0.193-0.13c-0.093-0.104,0.09-0.117,0.051-0.182c-0.04-0.064-0.247-0.091-0.377-0.104c-0.13-0.013-0.221-0.156-0.416-0.169c-0.194-0.013-0.428,0.026-0.493,0.026c-0.064,0-0.064,0.091-0.09,0.234c-0.027,0.143,0.09,0.182-0.027,0.208c-0.116,0.026-0.169,0.039-0.052,0.091c0.117,0.052,0.273,0.26,0.273,0.26s0,0.117-0.092,0.182c-0.09,0.065-0.182,0.13-0.233,0.053c-0.053-0.079-0.195-0.065-0.155,0.013c0.038,0.078,0.116,0.117,0.116,0.195c0,0.077,0.117,0.272,0.039,0.337c-0.078,0.065-0.168,0.014-0.233,0.026s-0.131-0.104-0.078-0.13c0.051-0.026-0.014-0.221-0.014-0.221s-0.155,0.221-0.143,0.104c0.014-0.117-0.064-0.13-0.064-0.221c0-0.091-0.079-0.13-0.194-0.104c-0.118,0.026-0.26-0.04-0.482-0.079c-0.22-0.039-0.311-0.064-0.493-0.156c-0.182-0.091-0.247-0.026-0.338-0.013c-0.091,0.013-0.052-0.182-0.169-0.207c-0.116-0.027-0.181,0.025-0.207-0.144c-0.026-0.168,0.039-0.208,0.324-0.39c0.286-0.182,0.247-0.26,0.468-0.286c0.22-0.026,0.325,0.026,0.325-0.039s0.052-0.325,0.052-0.195S16.95,9.109,16.832,9.2c-0.116,0.091-0.052,0.104,0.04,0.104c0.091,0,0.259-0.091,0.259-0.091s0.208-0.091,0.26-0.013c0.053,0.078,0.053,0.156,0.144,0.156s0.285-0.104,0.116-0.195c-0.168-0.091-0.272-0.078-0.376-0.182s-0.078-0.065-0.195-0.039c-0.116,0.026-0.116-0.039-0.156-0.039s-0.104,0.026-0.13-0.026c-0.025-0.052,0.014-0.065,0.145-0.065c0.129,0,0.285,0.039,0.285,0.039s0.155-0.052,0.194-0.065c0.039-0.013,0.247-0.039,0.208-0.155c-0.04-0.117-0.169-0.117-0.208-0.156s0.078-0.09,0.143-0.117c0.065-0.026,0.247,0,0.247,0s0.117,0.013,0.117-0.039S17.897,8.2,17.976,8.239s0,0.156,0.117,0.13c0.116-0.026,0.143,0,0.207,0.039c0.065,0.039-0.013,0.195-0.077,0.221c-0.065,0.025-0.169,0.077-0.026,0.09c0.144,0.014,0.246,0.014,0.246,0.014s0.092-0.091,0.131-0.169c0.038-0.078,0.104-0.026,0.155,0c0.052,0.025,0.247,0.065,0.065,0.117c-0.183,0.052-0.221,0.117-0.26,0.182c-0.038,0.065-0.053,0.104-0.221,0.065c-0.17-0.039-0.26-0.026-0.299,0.039c-0.039,0.064-0.013,0.273,0.053,0.247c0.063-0.026,0.129-0.026,0.207-0.052c0.078-0.026,0.39,0.026,0.467,0.013c0.078-0.013,0.209,0.13,0.248,0.104c0.039-0.026,0.117,0.052,0.194,0.104c0.078,0.052,0.052-0.117,0.194-0.013c0.144,0.104,0.065,0.104,0.144,0.104c0.076,0,0.246,0.013,0.246,0.013s0.014-0.129,0.144-0.104c0.13,0.026,0.245,0.169,0.232,0.064c-0.012-0.103,0.013-0.181-0.09-0.259c-0.104-0.078-0.272-0.13-0.299-0.169c-0.026-0.039-0.052-0.091-0.013-0.117c0.039-0.025,0.221,0.013,0.324,0.079c0.104,0.065,0.195,0.13,0.273,0.078c0.077-0.052,0.17-0.078,0.208-0.117c0.038-0.04,0.13-0.156,0.13-0.156s-0.391-0.051-0.441-0.117c-0.053-0.065-0.235-0.156-0.287-0.156s-0.194,0.091-0.246-0.039s-0.052-0.286-0.105-0.299c-0.05-0.013-0.597-0.091-0.674-0.13c-0.078-0.039-0.39-0.13-0.507-0.195s-0.286-0.156-0.389-0.156c-0.104,0-0.533,0.052-0.611,0.039c-0.078-0.013-0.312,0.026-0.403,0.039c-0.091,0.013,0.117,0.182-0.077,0.221c-0.195,0.039-0.169,0.065-0.13-0.13c0.038-0.195-0.131-0.247-0.299-0.169c-0.169,0.078-0.442,0.13-0.377,0.221c0.065,0.091-0.012,0.157,0.117,0.247c0.13,0.091,0.183,0.117,0.35,0.104c0.17-0.013,0.339,0.025,0.339,0.025s0,0.157-0.064,0.182c-0.065,0.026-0.169,0.026-0.196,0.104c-0.025,0.078-0.155,0.117-0.155,0.078s0.065-0.169-0.026-0.234c-0.09-0.065-0.117-0.078-0.221-0.013c-0.104,0.065-0.116,0.091-0.169-0.013C16.053,8.291,15.897,8.2,15.897,8.2s-0.104-0.129-0.182-0.194c-0.077-0.065-0.22-0.052-0.234,0.013c-0.013,0.064,0.026,0.129,0.078,0.247c0.052,0.117,0.104,0.337,0.013,0.351c-0.091,0.013-0.104,0.026-0.195,0.052c-0.091,0.026-0.13-0.039-0.13-0.143s-0.04-0.195-0.013-0.234c0.026-0.039-0.104,0.027-0.234,0c-0.13-0.025-0.233,0.052-0.104,0.092c0.13,0.039,0.157,0.194,0.039,0.233c-0.117,0.039-0.559,0-0.702,0s-0.35,0.039-0.39-0.039c-0.039-0.078,0.118-0.129,0.208-0.129c0.091,0,0.363,0.012,0.467-0.13c0.104-0.143-0.13-0.169-0.233-0.169c-0.104,0-0.183-0.039-0.299-0.155c-0.118-0.117,0.078-0.195,0.052-0.247c-0.026-0.052-0.156-0.014-0.272-0.014c-0.117,0-0.299-0.09-0.299,0.014c0,0.104,0.143,0.402,0.052,0.337c-0.091-0.064-0.078-0.156-0.143-0.234c-0.065-0.078-0.168-0.065-0.299-0.052c-0.129,0.013-0.35,0.052-0.415,0.039c-0.064-0.013-0.013-0.013-0.156-0.078c-0.142-0.065-0.208-0.052-0.312-0.117C12.091,7.576,12.182,7.551,12,7.538c-0.181-0.013-0.168,0.09-0.35,0.065c-0.182-0.026-0.234,0.013-0.416,0c-0.182-0.013-0.272-0.026-0.299,0.065c-0.025,0.091-0.078,0.247-0.156,0.247c-0.077,0-0.169,0.091,0.078,0.104c0.247,0.013,0.105,0.129,0.325,0.117c0.221-0.013,0.416-0.013,0.468-0.117c0.052-0.104,0.091-0.104,0.117-0.065c0.025,0.039,0.22,0.272,0.22,0.272s0.131,0.104,0.183,0.13c0.051,0.026-0.052,0.143-0.156,0.078c-0.104-0.065-0.299-0.051-0.377-0.116c-0.078-0.065-0.429-0.065-0.52-0.052c-0.09,0.013-0.247-0.039-0.299-0.039c-0.051,0-0.221,0.13-0.221,0.13S10.532,8.252,10.494,8.2c-0.039-0.052-0.104,0.052-0.156,0.065c-0.052,0.013-0.208-0.104-0.364-0.052C9.818,8.265,9.87,8.317,9.649,8.304s-0.272-0.052-0.35-0.039C9.22,8.278,9.22,8.278,9.22,8.278S9.233,8.33,9.143,8.382C9.052,8.434,8.986,8.499,8.921,8.421C8.857,8.343,8.818,8.343,8.779,8.33c-0.04-0.013-0.118-0.078-0.286-0.04C8.324,8.33,8.064,8.239,8.013,8.239c-0.04,0-0.313-0.015-0.491-0.033c2.109-2.292,5.124-3.74,8.478-3.74c2.128,0,4.117,0.589,5.83,1.598c-0.117,0.072-0.319,0.06-0.388,0.023c-0.078-0.043-0.158-0.078-0.475-0.061c-0.317,0.018-0.665,0.122-0.595,0.226c0.072,0.104-0.142,0.165-0.197,0.113c-0.055-0.052-0.309,0.06-0.293,0.165c0.016,0.104-0.039,0.225-0.175,0.199c-0.134-0.027-0.229,0.06-0.237,0.146c-0.007,0.087-0.309,0.147-0.332,0.147c-0.024,0-0.412-0.008-0.27,0.095c0.097,0.069,0.15,0.027,0.27,0.052c0.119,0.026,0.214,0.217,0.277,0.243c0.062,0.026,0.15,0,0.189-0.052c0.04-0.052,0.095-0.234,0.095-0.234s0,0.173,0.097,0.208c0.095,0.035,0.331-0.026,0.395-0.017c0.064,0.008,0.437,0.061,0.538,0.112c0.104,0.052,0.356,0.087,0.428,0.199c0.071,0.113,0.08,0.503,0.119,0.546c0.04,0.043,0.174-0.139,0.205-0.182c0.031-0.044,0.198-0.018,0.254,0.042c0.056,0.061,0.182,0.208,0.175,0.269C21.9,8.365,21.877,8.459,21.83,8.425c-0.048-0.034-0.127-0.025-0.096-0.095c0.032-0.069,0.048-0.217-0.015-0.217c-0.064,0-0.119,0-0.119,0s-0.12-0.035-0.199,0.095s-0.015,0.26,0.04,0.26s0.184,0,0.184,0.034c0,0.035-0.136,0.139-0.128,0.2c0.009,0.061,0.11,0.268,0.144,0.312c0.031,0.043,0.197,0.086,0.244,0.096c0.049,0.008-0.111,0.017-0.07,0.077c0.04,0.061,0.102,0.208,0.189,0.243c0.087,0.035,0.333,0.19,0.363,0.26c0.032,0.069,0.222-0.052,0.262-0.061c0.04-0.008,0.032,0.182,0.143,0.191c0.11,0.008,0.15-0.018,0.245-0.096s0.072-0.182,0.079-0.26c0.009-0.078,0-0.138,0.104-0.113c0.104,0.026,0.158-0.018,0.15-0.104c-0.008-0.087-0.095-0.191,0.07-0.217c0.167-0.026,0.254-0.138,0.357-0.138c0.103,0,0.389,0.043,0.419,0c0.032-0.043,0.167-0.243,0.254-0.251c0.067-0.007,0.224-0.021,0.385-0.042c1.582,1.885,2.561,4.284,2.673,6.905c-0.118,0.159-0.012,0.305,0.021,0.408c0.001,0.03,0.005,0.058,0.005,0.088c0,0.136-0.016,0.269-0.021,0.404C27.512,16.406,27.512,16.408,27.51,16.41zM17.794,12.084c-0.064,0.013-0.169-0.052-0.169-0.143s-0.091,0.169-0.04,0.247c0.053,0.078-0.104,0.169-0.155,0.169s-0.091-0.116-0.078-0.233c0.014-0.117-0.077-0.221-0.221-0.208c-0.143,0.014-0.208,0.13-0.259,0.169c-0.053,0.039-0.053,0.259-0.04,0.312s0.013,0.235-0.116,0.221c-0.118-0.013-0.092-0.233-0.079-0.312c0.014-0.078-0.039-0.273,0.014-0.376c0.053-0.104,0.207-0.143,0.312-0.156s0.324,0.065,0.363,0.052c0.04-0.014,0.222-0.014,0.312,0C17.729,11.837,17.858,12.071,17.794,12.084zM18.027,12.123c0.04,0.026,0.311-0.039,0.364,0.026c0.051,0.065-0.054,0.078-0.183,0.13c-0.129,0.052-0.169,0.039-0.221,0.104s-0.221,0.09-0.299,0.168c-0.078,0.079-0.217,0.125-0.246,0.065c-0.04-0.078,0.013-0.039,0.025-0.078c0.013-0.039,0.245-0.129,0.245-0.129S17.988,12.097,18.027,12.123zM16.988,11.668c-0.038,0.013-0.182-0.026-0.3-0.026c-0.116,0-0.091-0.078-0.143-0.064c-0.051,0.013-0.168,0.039-0.247,0.078c-0.078,0.039-0.208,0.03-0.208-0.04c0-0.104,0.052-0.078,0.221-0.143c0.169-0.065,0.352-0.247,0.429-0.169c0.078,0.078,0.221,0.169,0.312,0.182C17.144,11.5,17.026,11.655,16.988,11.668zM15.659,7.637c-0.079,0.026-0.347,0.139-0.321,0.199c0.01,0.023,0.078,0.069,0.19,0.052c0.113-0.018,0.276-0.035,0.355-0.043c0.078-0.009,0.095-0.139,0.009-0.147C15.805,7.689,15.736,7.611,15.659,7.637zM14.698,7.741c-0.061,0.026-0.243-0.043-0.338,0.018c-0.061,0.038-0.026,0.164,0.07,0.172c0.095,0.009,0.259-0.06,0.276-0.008c0.018,0.052,0.078,0.286,0.234,0.208c0.156-0.078,0.147-0.147,0.19-0.156c0.043-0.009-0.008-0.199-0.078-0.243C14.983,7.689,14.758,7.715,14.698,7.741zM14.385,7.005c0.017,0.044-0.008,0.078,0.113,0.095c0.121,0.018,0.173,0.035,0.243,0.035c0.069,0,0.042-0.113-0.018-0.19c-0.061-0.078-0.043-0.069-0.199-0.113c-0.156-0.043-0.312-0.043-0.416-0.035c-0.104,0.009-0.217-0.017-0.243,0.104c-0.013,0.062,0.07,0.112,0.174,0.112S14.368,6.962,14.385,7.005zM14.611,7.481c0.043,0.095,0.043,0.051,0.165,0.061C14.896,7.551,14.991,7.421,15,7.378c0.009-0.044-0.061-0.13-0.225-0.113c-0.165,0.017-0.667-0.026-0.736,0.034c-0.066,0.058,0,0.233-0.026,0.251c-0.026,0.017,0.009,0.095,0.077,0.078c0.069-0.017,0.104-0.182,0.157-0.182C14.299,7.447,14.568,7.386,14.611,7.481zM12.982,7.126c0.052,0.043,0.183,0.008,0.173-0.035c-0.008-0.043,0.053-0.217-0.051-0.225C13,6.858,12.854,6.962,12.697,7.014c-0.101,0.033-0.078,0.13-0.009,0.13S12.931,7.083,12.982,7.126zM13.72,7.282c-0.087,0.043-0.114,0.069-0.191,0.052c-0.078-0.017-0.078-0.156-0.217-0.13c-0.138,0.026-0.164,0.104-0.207,0.139s-0.139,0.061-0.173,0.043c-0.034-0.017-0.234-0.129-0.234-0.129s-0.416-0.018-0.433-0.07c-0.017-0.052-0.086-0.138-0.277-0.121s-0.52,0.13-0.572,0.13c-0.052,0,0.062,0.104-0.009,0.104c-0.069,0-0.155-0.008-0.181,0.069c-0.018,0.053,0.078,0.052,0.189,0.052c0.112,0,0.295,0,0.347-0.026c0.052-0.026,0.312-0.087,0.303-0.009c-0.009,0.079,0.104,0.199,0.164,0.182c0.061-0.017,0.183-0.13,0.243-0.086c0.061,0.043,0.07,0.146,0.13,0.173c0.061,0.025,0.226,0.025,0.304,0c0.077-0.027,0.294-0.027,0.389-0.009c0.095,0.018,0.373,0.069,0.399,0.018c0.026-0.053,0.104-0.061,0.112-0.113s0.051-0.216,0.051-0.216S13.806,7.239,13.72,7.282zM18.105,16.239c-0.119,0.021-0.091,0.252,0.052,0.21C18.3,16.407,18.223,16.217,18.105,16.239zM19.235,15.929c-0.104-0.026-0.221,0-0.299,0.013c-0.078,0.013-0.299,0.208-0.299,0.208s0.143,0.026,0.233,0.026c0.092,0,0.144,0.051,0.221,0.09c0.078,0.04,0.221-0.052,0.272-0.052c0.053,0,0.118,0.156,0.131-0.013C19.508,16.032,19.339,15.955,19.235,15.929zM15.616,7.507c-0.043-0.104-0.259-0.139-0.304-0.035C15.274,7.563,15.659,7.611,15.616,7.507zM18.093,15.292c0.143-0.026,0.064-0.144-0.053-0.13C17.922,15.175,17.949,15.318,18.093,15.292zM19.82,16.095c-0.119,0.022-0.092,0.253,0.051,0.211C20.015,16.264,19.937,16.074,19.82,16.095zM18.247,15.708c-0.09,0.013-0.285-0.09-0.389-0.182c-0.104-0.091-0.299-0.091-0.377-0.091c-0.077,0-0.39,0.091-0.39,0.091c-0.013,0.13,0.117,0.091,0.273,0.091s0.429-0.026,0.479,0.039c0.053,0.064,0.286,0.168,0.352,0.221c0.064,0.052,0.272,0.065,0.285,0.013S18.338,15.695,18.247,15.708zM16.698,7.412c-0.13-0.009-0.295-0.009-0.399,0c-0.104,0.008-0.182-0.069-0.26-0.113c-0.077-0.043-0.251-0.182-0.354-0.199c-0.104-0.017-0.086-0.017-0.303-0.069c-0.11-0.027-0.294-0.061-0.294-0.086c0-0.026-0.052,0.121,0.043,0.165c0.095,0.043,0.251,0.121,0.363,0.164c0.114,0.043,0.329,0.052,0.399,0.139c0.069,0.086,0.303,0.156,0.303,0.156l0.277,0.026c0,0,0.191-0.043,0.39-0.026c0.199,0.017,0.493,0.043,0.659,0.035c0.163-0.008,0.189-0.061,0.208-0.095c0.016-0.035-0.304-0.104-0.383-0.095C17.271,7.42,16.827,7.42,16.698,7.412zM17.182,9.404c-0.034,0.039,0.157,0.095,0.191,0.043C17.407,9.396,17.271,9.309,17.182,9.404zM17.764,9.585c0.086-0.035,0.043-0.139-0.079-0.104C17.547,9.521,17.676,9.62,17.764,9.585z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Globe\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Globe();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/GlobeAlt.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/GlobeAlt.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.GlobeAlt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.GlobeAlt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM27.436,17.39c0.001,0.002,0.004,0.002,0.005,0.004c-0.022,0.187-0.054,0.37-0.085,0.554c-0.015-0.012-0.034-0.025-0.047-0.036c-0.103-0.09-0.254-0.128-0.318-0.115c-0.157,0.032,0.229,0.305,0.267,0.342c0.009,0.009,0.031,0.03,0.062,0.058c-1.029,5.312-5.709,9.338-11.319,9.338c-4.123,0-7.736-2.18-9.776-5.441c0.123-0.016,0.24-0.016,0.28-0.076c0.051-0.077,0.102-0.241,0.178-0.331c0.077-0.089,0.165-0.229,0.127-0.292c-0.039-0.064,0.101-0.344,0.088-0.419c-0.013-0.076-0.127-0.256,0.064-0.407s0.394-0.382,0.407-0.444c0.012-0.063,0.166-0.331,0.152-0.458c-0.012-0.127-0.152-0.28-0.24-0.318c-0.09-0.037-0.28-0.05-0.356-0.151c-0.077-0.103-0.292-0.203-0.368-0.178c-0.076,0.025-0.204,0.05-0.305-0.015c-0.102-0.062-0.267-0.139-0.33-0.189c-0.065-0.05-0.229-0.088-0.305-0.088c-0.077,0-0.065-0.052-0.178,0.101c-0.114,0.153,0,0.204-0.204,0.177c-0.204-0.023,0.025-0.036,0.141-0.189c0.113-0.152-0.013-0.242-0.141-0.203c-0.126,0.038-0.038,0.115-0.241,0.153c-0.203,0.036-0.203-0.09-0.076-0.115s0.355-0.139,0.355-0.19c0-0.051-0.025-0.191-0.127-0.191s-0.077-0.126-0.229-0.291c-0.092-0.101-0.196-0.164-0.299-0.204c-0.09-0.579-0.15-1.167-0.15-1.771c0-2.844,1.039-5.446,2.751-7.458c0.024-0.02,0.048-0.034,0.069-0.036c0.084-0.009,0.31-0.025,0.51-0.059c0.202-0.034,0.418-0.161,0.489-0.153c0.069,0.008,0.241,0.008,0.186-0.042C8.417,8.2,8.339,8.082,8.223,8.082S8.215,7.896,8.246,7.896c0.03,0,0.186,0.025,0.178,0.11C8.417,8.091,8.471,8.2,8.625,8.167c0.156-0.034,0.132-0.162,0.102-0.195C8.695,7.938,8.672,7.853,8.642,7.794c-0.031-0.06-0.023-0.136,0.14-0.153C8.944,7.625,9.168,7.708,9.16,7.573s0-0.28,0.046-0.356C9.253,7.142,9.354,7.09,9.299,7.065C9.246,7.04,9.176,7.099,9.121,6.972c-0.054-0.127,0.047-0.22,0.108-0.271c0.02-0.015,0.067-0.06,0.124-0.112C11.234,5.257,13.524,4.466,16,4.466c3.213,0,6.122,1.323,8.214,3.45c-0.008,0.022-0.01,0.052-0.031,0.056c-0.077,0.013-0.166,0.063-0.179-0.051c-0.013-0.114-0.013-0.331-0.102-0.203c-0.089,0.127-0.127,0.127-0.127,0.191c0,0.063,0.076,0.127,0.051,0.241C23.8,8.264,23.8,8.341,23.84,8.341c0.036,0,0.126-0.115,0.239-0.141c0.116-0.025,0.319-0.088,0.332,0.026c0.013,0.115,0.139,0.152,0.013,0.203c-0.128,0.051-0.267,0.026-0.293-0.051c-0.025-0.077-0.114-0.077-0.203-0.013c-0.088,0.063-0.279,0.292-0.279,0.292s-0.306,0.139-0.343,0.114c-0.04-0.025,0.101-0.165,0.203-0.228c0.102-0.064,0.178-0.204,0.14-0.242c-0.038-0.038-0.088-0.279-0.063-0.343c0.025-0.063,0.139-0.152,0.013-0.216c-0.127-0.063-0.217-0.14-0.318-0.178s-0.216,0.152-0.305,0.204c-0.089,0.051-0.076,0.114-0.191,0.127c-0.114,0.013-0.189,0.165,0,0.254c0.191,0.089,0.255,0.152,0.204,0.204c-0.051,0.051-0.267-0.025-0.267-0.025s-0.165-0.076-0.268-0.076c-0.101,0-0.229-0.063-0.33-0.076c-0.102-0.013-0.306-0.013-0.355,0.038c-0.051,0.051-0.179,0.203-0.28,0.152c-0.101-0.051-0.101-0.102-0.241-0.051c-0.14,0.051-0.279-0.038-0.355,0.038c-0.077,0.076-0.013,0.076-0.255,0c-0.241-0.076-0.189,0.051-0.419,0.089s-0.368-0.038-0.432,0.038c-0.064,0.077-0.153,0.217-0.19,0.127c-0.038-0.088,0.126-0.241,0.062-0.292c-0.062-0.051-0.33-0.025-0.367,0.013c-0.039,0.038-0.014,0.178,0.011,0.229c0.026,0.05,0.064,0.254-0.011,0.216c-0.077-0.038-0.064-0.166-0.141-0.152c-0.076,0.013-0.165,0.051-0.203,0.077c-0.038,0.025-0.191,0.025-0.229,0.076c-0.037,0.051,0.014,0.191-0.051,0.203c-0.063,0.013-0.114,0.064-0.254-0.025c-0.14-0.089-0.14-0.038-0.178-0.012c-0.038,0.025-0.216,0.127-0.229,0.012c-0.013-0.114,0.025-0.152-0.089-0.229c-0.115-0.076-0.026-0.076,0.127-0.025c0.152,0.05,0.343,0.075,0.622-0.013c0.28-0.089,0.395-0.127,0.28-0.178c-0.115-0.05-0.229-0.101-0.406-0.127c-0.179-0.025-0.42-0.025-0.7-0.127c-0.279-0.102-0.343-0.14-0.457-0.165c-0.115-0.026-0.813-0.14-1.132-0.089c-0.317,0.051-1.193,0.28-1.245,0.318s-0.128,0.19-0.292,0.318c-0.165,0.127-0.47,0.419-0.712,0.47c-0.241,0.051-0.521,0.254-0.521,0.305c0,0.051,0.101,0.242,0.076,0.28c-0.025,0.038,0.05,0.229,0.191,0.28c0.139,0.05,0.381,0.038,0.393-0.039c0.014-0.076,0.204-0.241,0.217-0.127c0.013,0.115,0.14,0.292,0.114,0.368c-0.025,0.077,0,0.153,0.09,0.14c0.088-0.012,0.559-0.114,0.559-0.114s0.153-0.064,0.127-0.166c-0.026-0.101,0.166-0.241,0.203-0.279c0.038-0.038,0.178-0.191,0.014-0.241c-0.167-0.051-0.293-0.064-0.115-0.216s0.292,0,0.521-0.229c0.229-0.229-0.051-0.292,0.191-0.305c0.241-0.013,0.496-0.025,0.444,0.051c-0.05,0.076-0.342,0.242-0.508,0.318c-0.166,0.077-0.14,0.216-0.076,0.292c0.063,0.076,0.09,0.254,0.204,0.229c0.113-0.025,0.254-0.114,0.38-0.101c0.128,0.012,0.383-0.013,0.42-0.013c0.039,0,0.216,0.178,0.114,0.203c-0.101,0.025-0.229,0.013-0.445,0.025c-0.215,0.013-0.456,0.013-0.456,0.051c0,0.039,0.292,0.127,0.19,0.191c-0.102,0.063-0.203-0.013-0.331-0.026c-0.127-0.012-0.203,0.166-0.241,0.267c-0.039,0.102,0.063,0.28-0.127,0.216c-0.191-0.063-0.331-0.063-0.381-0.038c-0.051,0.025-0.203,0.076-0.331,0.114c-0.126,0.038-0.076-0.063-0.242-0.063c-0.164,0-0.164,0-0.164,0l-0.103,0.013c0,0-0.101-0.063-0.114-0.165c-0.013-0.102,0.05-0.216-0.013-0.241c-0.064-0.026-0.292,0.012-0.33,0.088c-0.038,0.076-0.077,0.216-0.026,0.28c0.052,0.063,0.204,0.19,0.064,0.152c-0.14-0.038-0.317-0.051-0.419,0.026c-0.101,0.076-0.279,0.241-0.279,0.241s-0.318,0.025-0.318,0.102c0,0.077,0,0.178-0.114,0.191c-0.115,0.013-0.268,0.05-0.42,0.076c-0.153,0.025-0.139,0.088-0.317,0.102s-0.204,0.089-0.038,0.114c0.165,0.025,0.418,0.127,0.431,0.241c0.014,0.114-0.013,0.242-0.076,0.356c-0.043,0.079-0.305,0.026-0.458,0.026c-0.152,0-0.456-0.051-0.584,0c-0.127,0.051-0.102,0.305-0.064,0.419c0.039,0.114-0.012,0.178-0.063,0.216c-0.051,0.038-0.065,0.152,0,0.204c0.063,0.051,0.114,0.165,0.166,0.178c0.051,0.013,0.215-0.038,0.279,0.025c0.064,0.064,0.127,0.216,0.165,0.178c0.039-0.038,0.089-0.203,0.153-0.166c0.064,0.039,0.216-0.012,0.331-0.025s0.177-0.14,0.292-0.204c0.114-0.063,0.05-0.063,0.013-0.14c-0.038-0.076,0.114-0.165,0.204-0.254c0.088-0.089,0.253-0.013,0.292-0.115c0.038-0.102,0.051-0.279,0.151-0.267c0.103,0.013,0.243,0.076,0.331,0.076c0.089,0,0.279-0.14,0.332-0.165c0.05-0.025,0.241-0.013,0.267,0.102c0.025,0.114,0.241,0.254,0.292,0.279c0.051,0.025,0.381,0.127,0.433,0.165c0.05,0.038,0.126,0.153,0.152,0.254c0.025,0.102,0.114,0.102,0.128,0.013c0.012-0.089-0.065-0.254,0.025-0.242c0.088,0.013,0.191-0.026,0.191-0.026s-0.243-0.165-0.331-0.203c-0.088-0.038-0.255-0.114-0.331-0.241c-0.076-0.127-0.267-0.153-0.254-0.279c0.013-0.127,0.191-0.051,0.292,0.051c0.102,0.102,0.356,0.241,0.445,0.33c0.088,0.089,0.229,0.127,0.267,0.242c0.039,0.114,0.152,0.241,0.19,0.292c0.038,0.051,0.165,0.331,0.204,0.394c0.038,0.063,0.165-0.012,0.229-0.063c0.063-0.051,0.179-0.076,0.191-0.178c0.013-0.102-0.153-0.178-0.203-0.216c-0.051-0.038,0.127-0.076,0.191-0.127c0.063-0.05,0.177-0.14,0.228-0.063c0.051,0.077,0.026,0.381,0.051,0.432c0.025,0.051,0.279,0.127,0.331,0.191c0.05,0.063,0.267,0.089,0.304,0.051c0.039-0.038,0.242,0.026,0.294,0.038c0.049,0.013,0.202-0.025,0.304-0.05c0.103-0.025,0.204-0.102,0.191,0.063c-0.013,0.165-0.051,0.419-0.179,0.546c-0.127,0.127-0.076,0.191-0.202,0.191c-0.06,0-0.113,0-0.156,0.021c-0.041-0.065-0.098-0.117-0.175-0.097c-0.152,0.038-0.344,0.038-0.47,0.19c-0.128,0.153-0.178,0.165-0.204,0.114c-0.025-0.051,0.369-0.267,0.317-0.331c-0.05-0.063-0.355-0.038-0.521-0.038c-0.166,0-0.305-0.102-0.433-0.127c-0.126-0.025-0.292,0.127-0.418,0.254c-0.128,0.127-0.216,0.038-0.331,0.038c-0.115,0-0.331-0.165-0.331-0.165s-0.216-0.089-0.305-0.089c-0.088,0-0.267-0.165-0.318-0.165c-0.05,0-0.19-0.115-0.088-0.166c0.101-0.05,0.202,0.051,0.101-0.229c-0.101-0.279-0.33-0.216-0.419-0.178c-0.088,0.039-0.724,0.025-0.775,0.025c-0.051,0-0.419,0.127-0.533,0.178c-0.116,0.051-0.318,0.115-0.369,0.14c-0.051,0.025-0.318-0.051-0.433,0.013c-0.151,0.084-0.291,0.216-0.33,0.216c-0.038,0-0.153,0.089-0.229,0.28c-0.077,0.19,0.013,0.355-0.128,0.419c-0.139,0.063-0.394,0.204-0.495,0.305c-0.102,0.101-0.229,0.458-0.355,0.623c-0.127,0.165,0,0.317,0.025,0.419c0.025,0.101,0.114,0.292-0.025,0.471c-0.14,0.178-0.127,0.266-0.191,0.279c-0.063,0.013,0.063,0.063,0.088,0.19c0.025,0.128-0.114,0.255,0.128,0.369c0.241,0.113,0.355,0.217,0.418,0.367c0.064,0.153,0.382,0.407,0.382,0.407s0.229,0.205,0.344,0.293c0.114,0.089,0.152,0.038,0.177-0.05c0.025-0.09,0.178-0.104,0.355-0.104c0.178,0,0.305,0.04,0.483,0.014c0.178-0.025,0.356-0.141,0.42-0.166c0.063-0.025,0.279-0.164,0.443-0.063c0.166,0.103,0.141,0.241,0.23,0.332c0.088,0.088,0.24,0.037,0.355-0.051c0.114-0.09,0.064-0.052,0.203,0.025c0.14,0.075,0.204,0.151,0.077,0.267c-0.128,0.113-0.051,0.293-0.128,0.47c-0.076,0.178-0.063,0.203,0.077,0.278c0.14,0.076,0.394,0.548,0.47,0.638c0.077,0.088-0.025,0.342,0.064,0.495c0.089,0.151,0.178,0.254,0.077,0.331c-0.103,0.075-0.28,0.216-0.292,0.47s0.051,0.431,0.102,0.521s0.177,0.331,0.241,0.419c0.064,0.089,0.14,0.305,0.152,0.445c0.013,0.14-0.024,0.306,0.039,0.381c0.064,0.076,0.102,0.191,0.216,0.292c0.115,0.103,0.152,0.318,0.152,0.318s0.039,0.089,0.051,0.229c0.012,0.14,0.025,0.228,0.152,0.292c0.126,0.063,0.215,0.076,0.28,0.013c0.063-0.063,0.381-0.077,0.546-0.063c0.165,0.013,0.355-0.075,0.521-0.19s0.407-0.419,0.496-0.508c0.089-0.09,0.292-0.255,0.268-0.356c-0.025-0.101-0.077-0.203,0.024-0.254c0.102-0.052,0.344-0.152,0.356-0.229c0.013-0.077-0.09-0.395-0.115-0.457c-0.024-0.064,0.064-0.18,0.165-0.306c0.103-0.128,0.421-0.216,0.471-0.267c0.051-0.053,0.191-0.267,0.217-0.433c0.024-0.167-0.051-0.369,0-0.457c0.05-0.09,0.013-0.165-0.103-0.268c-0.114-0.102-0.089-0.407-0.127-0.457c-0.037-0.051-0.013-0.319,0.063-0.345c0.076-0.023,0.242-0.279,0.344-0.393c0.102-0.114,0.394-0.47,0.534-0.496c0.139-0.025,0.355-0.229,0.368-0.343c0.013-0.115,0.38-0.547,0.394-0.635c0.013-0.09,0.166-0.42,0.102-0.497c-0.062-0.076-0.559,0.115-0.622,0.141c-0.064,0.025-0.241,0.127-0.446,0.113c-0.202-0.013-0.114-0.177-0.127-0.254c-0.012-0.076-0.228-0.368-0.279-0.381c-0.051-0.012-0.203-0.166-0.267-0.317c-0.063-0.153-0.152-0.343-0.254-0.458c-0.102-0.114-0.165-0.38-0.268-0.559c-0.101-0.178-0.189-0.407-0.279-0.572c-0.021-0.041-0.045-0.079-0.067-0.117c0.118-0.029,0.289-0.082,0.31-0.009c0.024,0.088,0.165,0.279,0.19,0.419s0.165,0.089,0.178,0.216c0.014,0.128,0.14,0.433,0.19,0.47c0.052,0.038,0.28,0.242,0.318,0.318c0.038,0.076,0.089,0.178,0.127,0.369c0.038,0.19,0.076,0.444,0.179,0.482c0.102,0.038,0.444-0.064,0.508-0.102s0.482-0.242,0.635-0.255c0.153-0.012,0.179-0.115,0.368-0.152c0.191-0.038,0.331-0.177,0.458-0.28c0.127-0.101,0.28-0.355,0.33-0.444c0.052-0.088,0.179-0.152,0.115-0.253c-0.063-0.103-0.331-0.254-0.433-0.268c-0.102-0.012-0.089-0.178-0.152-0.178s-0.051,0.088-0.178,0.153c-0.127,0.063-0.255,0.19-0.344,0.165s0.026-0.089-0.113-0.203s-0.192-0.14-0.192-0.228c0-0.089-0.278-0.255-0.304-0.382c-0.026-0.127,0.19-0.305,0.254-0.19c0.063,0.114,0.115,0.292,0.279,0.368c0.165,0.076,0.318,0.204,0.395,0.229c0.076,0.025,0.267-0.14,0.33-0.114c0.063,0.024,0.191,0.253,0.306,0.292c0.113,0.038,0.495,0.051,0.559,0.051s0.33,0.013,0.381-0.063c0.051-0.076,0.089-0.076,0.153-0.076c0.062,0,0.177,0.229,0.267,0.254c0.089,0.025,0.254,0.013,0.241,0.179c-0.012,0.164,0.076,0.305,0.165,0.317c0.09,0.012,0.293-0.191,0.293-0.191s0,0.318-0.012,0.433c-0.014,0.113,0.139,0.534,0.139,0.534s0.19,0.393,0.241,0.482s0.267,0.355,0.267,0.47c0,0.115,0.025,0.293,0.103,0.293c0.076,0,0.152-0.203,0.24-0.331c0.091-0.126,0.116-0.305,0.153-0.432c0.038-0.127,0.038-0.356,0.038-0.444c0-0.09,0.075-0.166,0.255-0.242c0.178-0.076,0.304-0.292,0.456-0.407c0.153-0.115,0.141-0.305,0.446-0.305c0.305,0,0.278,0,0.355-0.077c0.076-0.076,0.151-0.127,0.19,0.013c0.038,0.14,0.254,0.343,0.292,0.394c0.038,0.052,0.114,0.191,0.103,0.344c-0.013,0.152,0.012,0.33,0.075,0.33s0.191-0.216,0.191-0.216s0.279-0.189,0.267,0.013c-0.014,0.203,0.025,0.419,0.025,0.545c0,0.053,0.042,0.135,0.088,0.21c-0.005,0.059-0.004,0.119-0.009,0.178C27.388,17.153,27.387,17.327,27.436,17.39zM20.382,12.064c0.076,0.05,0.102,0.127,0.152,0.203c0.052,0.076,0.14,0.05,0.203,0.114c0.063,0.064-0.178,0.14-0.075,0.216c0.101,0.077,0.151,0.381,0.165,0.458c0.013,0.076-0.279,0.114-0.369,0.102c-0.089-0.013-0.354-0.102-0.445-0.127c-0.089-0.026-0.139-0.343-0.025-0.331c0.116,0.013,0.141-0.025,0.267-0.139c0.128-0.115-0.189-0.166-0.278-0.191c-0.089-0.025-0.268-0.305-0.331-0.394c-0.062-0.089-0.014-0.228,0.141-0.331c0.076-0.051,0.279,0.063,0.381,0c0.101-0.063,0.203-0.14,0.241-0.165c0.039-0.025,0.293,0.038,0.33,0.114c0.039,0.076,0.191,0.191,0.141,0.229c-0.052,0.038-0.281,0.076-0.356,0c-0.075-0.077-0.255,0.012-0.268,0.152C20.242,12.115,20.307,12.013,20.382,12.064zM16.875,12.28c-0.077-0.025,0.025-0.178,0.102-0.229c0.075-0.051,0.164-0.178,0.241-0.305c0.076-0.127,0.178-0.14,0.241-0.127c0.063,0.013,0.203,0.241,0.241,0.318c0.038,0.076,0.165-0.026,0.217-0.051c0.05-0.025,0.127-0.102,0.14-0.165s0.127-0.102,0.254-0.102s0.013,0.102-0.076,0.127c-0.09,0.025-0.038,0.077,0.113,0.127c0.153,0.051,0.293,0.191,0.459,0.279c0.165,0.089,0.19,0.267,0.088,0.292c-0.101,0.025-0.406,0.051-0.521,0.038c-0.114-0.013-0.254-0.127-0.419-0.153c-0.165-0.025-0.369-0.013-0.433,0.077s-0.292,0.05-0.395,0.05c-0.102,0-0.228,0.127-0.253,0.077C16.875,12.534,16.951,12.306,16.875,12.28zM17.307,9.458c0.063-0.178,0.419,0.038,0.355,0.127C17.599,9.675,17.264,9.579,17.307,9.458zM17.802,18.584c0.063,0.102-0.14,0.431-0.254,0.407c-0.113-0.027-0.076-0.318-0.038-0.382C17.548,18.545,17.769,18.529,17.802,18.584zM13.189,12.674c0.025-0.051-0.039-0.153-0.127-0.013C13.032,12.71,13.164,12.725,13.189,12.674zM20.813,8.035c0.141,0.076,0.339,0.107,0.433,0.013c0.076-0.076,0.013-0.204-0.05-0.216c-0.064-0.013-0.104-0.115,0.062-0.203c0.165-0.089,0.343-0.204,0.534-0.229c0.19-0.025,0.622-0.038,0.774,0c0.152,0.039,0.382-0.166,0.445-0.254s-0.203-0.152-0.279-0.051c-0.077,0.102-0.444,0.076-0.521,0.051c-0.076-0.025-0.686,0.102-0.812,0.102c-0.128,0-0.179,0.152-0.356,0.229c-0.179,0.076-0.42,0.191-0.509,0.229c-0.088,0.038-0.177,0.19-0.101,0.216C20.509,7.947,20.674,7.959,20.813,8.035zM14.142,12.674c0.064-0.089-0.051-0.217-0.114-0.217c-0.12,0-0.178,0.191-0.103,0.254C14.002,12.776,14.078,12.763,14.142,12.674zM14.714,13.017c0.064,0.025,0.114,0.102,0.165,0.114c0.052,0.013,0.217,0,0.167-0.127s-0.167-0.127-0.204-0.127c-0.038,0-0.203-0.038-0.267,0C14.528,12.905,14.65,12.992,14.714,13.017zM11.308,10.958c0.101,0.013,0.217-0.063,0.305-0.101c0.088-0.038,0.216-0.114,0.216-0.229c0-0.114-0.025-0.216-0.077-0.267c-0.051-0.051-0.14-0.064-0.216-0.051c-0.115,0.02-0.127,0.14-0.203,0.14c-0.076,0-0.165,0.025-0.14,0.114s0.077,0.152,0,0.19C11.117,10.793,11.205,10.946,11.308,10.958zM11.931,10.412c0.127,0.051,0.394,0.102,0.292,0.153c-0.102,0.051-0.28,0.19-0.305,0.267s0.216,0.153,0.216,0.153s-0.077,0.089-0.013,0.114c0.063,0.025,0.102-0.089,0.203-0.089c0.101,0,0.304,0.063,0.406,0.063c0.103,0,0.267-0.14,0.254-0.229c-0.013-0.089-0.14-0.229-0.254-0.28c-0.113-0.051-0.241-0.28-0.317-0.331c-0.076-0.051,0.076-0.178-0.013-0.267c-0.09-0.089-0.153-0.076-0.255-0.14c-0.102-0.063-0.191,0.013-0.254,0.089c-0.063,0.076-0.14-0.013-0.217,0.012c-0.102,0.035-0.063,0.166-0.012,0.229C11.714,10.221,11.804,10.361,11.931,10.412zM24.729,17.198c-0.083,0.037-0.153,0.47,0,0.521c0.152,0.052,0.241-0.202,0.191-0.267C24.868,17.39,24.843,17.147,24.729,17.198zM20.114,20.464c-0.159-0.045-0.177,0.166-0.304,0.306c-0.128,0.141-0.267,0.254-0.317,0.241c-0.052-0.013-0.331,0.089-0.242,0.279c0.089,0.191,0.076,0.382-0.013,0.472c-0.089,0.088,0.076,0.342,0.052,0.482c-0.026,0.139,0.037,0.229,0.215,0.229s0.242-0.064,0.318-0.229c0.076-0.166,0.088-0.331,0.164-0.47c0.077-0.141,0.141-0.434,0.179-0.51c0.038-0.075,0.114-0.316,0.102-0.457C20.254,20.669,20.204,20.489,20.114,20.464zM10.391,8.802c-0.069-0.06-0.229-0.102-0.306-0.11c-0.076-0.008-0.152,0.06-0.321,0.06c-0.168,0-0.279,0.067-0.347,0C9.349,8.684,9.068,8.65,9.042,8.692C9.008,8.749,8.941,8.751,9.008,8.87c0.069,0.118,0.12,0.186,0.179,0.178s0.262-0.017,0.288,0.051C9.5,9.167,9.569,9.226,9.712,9.184c0.145-0.042,0.263-0.068,0.296-0.119c0.033-0.051,0.263-0.059,0.263-0.059S10.458,8.861,10.391,8.802z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.GlobeAlt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.GlobeAlt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/GlobeAlt2.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/GlobeAlt2.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.GlobeAlt2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.GlobeAlt2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM8.251,7.48c0.122,0.055,0.255,0.104,0.28,0.137C8.57,7.668,8.621,7.823,8.557,7.861C8.492,7.9,8.39,7.887,8.376,7.771c-0.013-0.115-0.026-0.128-0.18-0.18c-0.022-0.007-0.035-0.01-0.051-0.015C8.18,7.544,8.216,7.512,8.251,7.48zM7.733,7.974c0.031,0.087,0.113,0.125,0,0.17C7.673,8.168,7.611,8.172,7.559,8.165C7.617,8.102,7.672,8.035,7.733,7.974zM16,27.533C9.639,27.533,4.466,22.36,4.466,16c0-0.085,0.011-0.168,0.013-0.254c0.004-0.003,0.008-0.006,0.012-0.009c0.129-0.102,0.283-0.359,0.334-0.45c0.052-0.089,0.181-0.154,0.116-0.256c-0.059-0.096-0.292-0.23-0.407-0.261c0.01-0.099,0.032-0.195,0.045-0.294c0.063,0.077,0.137,0.17,0.208,0.194c0.115,0.038,0.501,0.052,0.566,0.052c0.063,0,0.334,0.014,0.386-0.064c0.051-0.077,0.09-0.077,0.154-0.077c0.064,0,0.18,0.231,0.271,0.257c0.089,0.026,0.257,0.013,0.244,0.181c-0.012,0.166,0.077,0.309,0.167,0.321c0.09,0.013,0.296-0.194,0.296-0.194s0,0.322-0.012,0.438C6.846,15.698,7,16.124,7,16.124s0.193,0.397,0.244,0.488c0.052,0.09,0.27,0.36,0.27,0.476c0,0.117,0.026,0.297,0.104,0.297s0.155-0.206,0.244-0.335c0.091-0.128,0.117-0.31,0.155-0.438c0.039-0.129,0.039-0.36,0.039-0.45c0-0.091,0.076-0.168,0.257-0.245c0.181-0.077,0.309-0.296,0.463-0.412c0.155-0.116,0.142-0.309,0.452-0.309c0.308,0,0.282,0,0.36-0.078c0.077-0.077,0.154-0.128,0.192,0.013c0.039,0.142,0.257,0.347,0.296,0.399c0.039,0.052,0.116,0.193,0.104,0.348c-0.013,0.153,0.012,0.334,0.077,0.334c0.064,0,0.193-0.219,0.193-0.219s0.283-0.192,0.27,0.014c-0.014,0.205,0.025,0.425,0.025,0.552c0,0.13,0.232,0.438,0.232,0.362c0-0.079,0.103-0.296,0.103-0.413c0-0.114,0.064-0.063,0.231,0.051c0.167,0.116,0.283,0.349,0.283,0.349s0.168,0.154,0.193,0.219c0.026,0.064,0.206-0.025,0.244-0.104c0.039-0.076,0.065-0.115,0.167-0.141c0.104-0.026,0.231-0.026,0.271-0.168c0.039-0.142,0.154-0.308,0-0.502c-0.154-0.193-0.232-0.321-0.347-0.412c-0.117-0.09-0.206-0.322-0.206-0.322s0.244-0.218,0.321-0.296c0.079-0.077,0.193-0.025,0.207,0.064c0.013,0.091-0.115,0.168-0.141,0.361c-0.026,0.192,0.154,0.257,0.206,0.192c0.051-0.065,0.18-0.219,0.18-0.257c0-0.039-0.089-0.026-0.102-0.167c-0.013-0.142,0.166-0.245,0.23-0.207c0.066,0.039,0.477-0.051,0.67-0.154s0.308-0.322,0.425-0.412c0.116-0.089,0.515-0.386,0.489-0.527c-0.026-0.142,0.012-0.334-0.09-0.515c-0.103-0.18-0.232-0.295-0.283-0.373c-0.051-0.077,0.219-0.09,0.347-0.206c0.129-0.116,0-0.219-0.064-0.206c-0.064,0.013-0.232,0.052-0.296,0.039c-0.064-0.013-0.103-0.077-0.206-0.155c-0.102-0.077,0.026-0.192,0.091-0.179c0.064,0.013,0.23-0.129,0.308-0.193c0.077-0.064,0.193-0.115,0.154-0.051c-0.038,0.064-0.128,0.296-0.026,0.309c0.104,0.013,0.348-0.193,0.388-0.18c0.038,0.013,0.102,0.18,0.064,0.257c-0.039,0.077-0.039,0.206,0.013,0.193c0.051-0.013,0.154-0.129,0.18-0.09c0.027,0.039,0.154,0.116,0.09,0.257c-0.063,0.142-0.193,0.193-0.039,0.284c0.154,0.089,0.206,0.012,0.322-0.052c0.115-0.064,0.193-0.347,0.128-0.438c-0.064-0.09-0.218-0.27-0.218-0.334c0-0.064,0.257-0.064,0.257-0.167s0.09-0.18,0.18-0.219c0.091-0.039,0.206-0.206,0.244-0.154c0.039,0.052,0.271,0.116,0.334,0.039c0.064-0.077,0.4-0.36,0.605-0.515c0.206-0.154,0.283-0.334,0.336-0.515c0.051-0.18,0.128-0.296,0.102-0.437v0c0.077,0.18,0.09,0.309,0.077,0.45c-0.013,0.142,0,0.438,0.026,0.476c0.025,0.039,0.129,0.128,0.192,0.103c0.064-0.025-0.025-0.283-0.025-0.334c0-0.052,0.09-0.129,0.142-0.142c0.052-0.013,0-0.231-0.065-0.322c-0.063-0.09-0.154-0.142-0.102-0.154c0.051-0.013,0.115-0.116,0.077-0.142c-0.039-0.025-0.014-0.116-0.103-0.09c-0.065,0.019-0.241-0.015-0.235,0.095c-0.037-0.11-0.116-0.183-0.216-0.172c-0.116,0.013-0.181,0.077-0.296,0.077s-0.025-0.18-0.077-0.18c-0.051,0-0.168,0.167-0.231,0.077c-0.064-0.09,0.18-0.206,0.373-0.27c0.192-0.064,0.514-0.438,0.644-0.451c0.128-0.013,0.45,0.026,0.733,0.013c0.283-0.013,0.373-0.129,0.463-0.064s0.283,0.142,0.399,0.129c0.116-0.014,0.064,0,0.244-0.129c0.18-0.129,0.348-0.193,0.438-0.296c0.09-0.103,0.335-0.18,0.348-0.077c0.014,0.103-0.026,0.206,0.077,0.206s0.258-0.103,0.386-0.154c0.129-0.051,0.231-0.116,0.231-0.116s-0.527,0.36-0.655,0.438c-0.129,0.077-0.438,0.129-0.567,0.283c-0.128,0.155-0.205,0.206-0.192,0.374c0.014,0.167,0.231,0.386,0.128,0.54c-0.103,0.154-0.141,0.373-0.141,0.373s0.154-0.219,0.373-0.36s0.348-0.334,0.425-0.412s0.309-0.091,0.309-0.181s0.064-0.206,0.104-0.309c0.038-0.103-0.077-0.078,0-0.206c0.076-0.129,0.064-0.232,0.45-0.232s0.257,0.026,0.566,0.013c0.309-0.013,0.424-0.167,0.72-0.245c0.296-0.077,0.527-0.128,0.618-0.089c0.09,0.038,0.232,0.012,0.141-0.078c-0.089-0.09-0.295-0.219-0.193-0.245c0.104-0.026,0.207-0.039,0.246-0.142c0.039-0.103-0.142-0.283-0.039-0.386c0.104-0.103-0.077-0.231-0.207-0.257c-0.128-0.025-0.63,0.026-0.731-0.025c-0.104-0.052-0.271-0.116-0.322-0.078c-0.052,0.039-0.168,0.245-0.168,0.245s-0.09,0.025-0.168-0.09c-0.076-0.116-0.5-0.103-0.629-0.103s-0.271,0.025-0.413,0.039c-0.141,0.013-0.219,0.052-0.322-0.039c-0.102-0.09-0.243-0.129-0.296-0.167c-0.051-0.039-0.334-0.039-0.553-0.012c-0.218,0.025-0.438,0.025-0.438,0.025s-0.104-0.039-0.257-0.129c-0.154-0.09-0.309-0.154-0.361-0.154c-0.051,0-0.449,0.064-0.539,0c-0.091-0.064-0.181-0.103-0.245-0.103s-0.115-0.103-0.038-0.103s0.437-0.103,0.437-0.103s-0.103-0.142-0.231-0.142c-0.128,0-0.359-0.064-0.424-0.064s-0.014,0.064-0.142,0.039c-0.13-0.026-0.258-0.078-0.335-0.026c-0.076,0.051-0.258,0.128-0.064,0.18c0.193,0.052,0.373,0,0.425,0.078c0.052,0.077,0,0.115,0,0.167s-0.103,0.193-0.167,0.219c-0.064,0.025-0.143-0.039-0.27,0.025c-0.129,0.064-0.451,0.013-0.49,0.052c-0.038,0.039-0.115-0.103-0.18-0.077c-0.064,0.025-0.232,0.193-0.322,0.18c-0.089-0.013-0.206-0.103-0.206-0.206s-0.038-0.232-0.077-0.258c-0.038-0.025-0.322-0.039-0.425-0.025c-0.103,0.013-0.424,0.038-0.477,0.09c-0.052,0.052-0.193,0.09-0.283,0.09s-0.167-0.09-0.36-0.116c-0.192-0.026-0.617-0.039-0.669-0.026s-0.218-0.025-0.155-0.077c0.065-0.051,0.257-0.219,0.143-0.295c-0.117-0.078-0.375-0.078-0.489-0.09c-0.117-0.013-0.232-0.039-0.413-0.013c-0.181,0.026-0.219,0.116-0.296,0.039c-0.077-0.077,0.193,0.039-0.077-0.077c-0.27-0.116-0.399-0.103-0.477-0.064c-0.077,0.039,0.013,0.025-0.192,0.103c-0.206,0.078-0.322,0.116-0.374,0.129c-0.051,0.012-0.372-0.065-0.411-0.091c-0.038-0.025-0.181,0.013-0.309,0.064S9.895,7.025,9.767,7C9.638,6.973,9.432,6.973,9.303,7.025C9.174,7.076,9.084,7.076,8.956,7.166c-0.13,0.09-0.373,0.142-0.373,0.142S8.522,7.305,8.448,7.301C10.474,5.541,13.111,4.466,16,4.466c6.361,0,11.534,5.173,11.534,11.534S22.36,27.533,16,27.533zM14.888,19.92c0,0,0.207-0.026,0.207-0.117c0-0.089-0.207-0.205-0.282-0.102c-0.078,0.102-0.219,0.205-0.207,0.296C14.625,20.138,14.888,19.92,14.888,19.92zM14.875,17.023c-0.181,0.233-0.167,0.182-0.296,0.128c-0.128-0.05-0.334,0.116-0.296,0.182c0.039,0.064,0.322-0.014,0.386,0.102c0.065,0.116,0.065,0.129,0.193,0.104c0.128-0.026,0.257-0.205,0.219-0.295C15.043,17.151,14.875,17.023,14.875,17.023zM14.837,18.245c-0.051,0-0.412,0.064-0.451,0.079c-0.039,0.013-0.27-0.025-0.27-0.025c-0.09,0.089-0.026,0.179,0.116,0.166s0.438-0.052,0.502-0.052C14.799,18.413,14.888,18.245,14.837,18.245zM14.284,14.668c-0.19,0.03-0.308,0.438-0.155,0.425C14.284,15.081,14.451,14.643,14.284,14.668zM14.734,16.959c-0.052-0.064-0.181-0.271-0.323-0.219c-0.042,0.017-0.153,0.245-0.012,0.245C14.541,16.985,14.786,17.023,14.734,16.959zM14.85,16.805c0.232-0.013,0.167-0.245-0.013-0.257C14.786,16.544,14.618,16.818,14.85,16.805zM17.591,18.928c-0.193-0.039-0.244-0.102-0.45-0.205c-0.207-0.103-0.67-0.103-0.682-0.039c-0.014,0.064,0,0-0.155-0.05c-0.153-0.054-0.271,0-0.309-0.091c-0.038-0.091-0.128-0.117-0.244-0.002c-0.097,0.097-0.142,0.104,0.078,0.143c0.218,0.039,0.283,0.039,0.192,0.141c-0.09,0.104-0.154,0.233-0.077,0.244c0.077,0.015,0.309-0.05,0.334,0c0.026,0.054-0.051,0.064,0.207,0.105c0.258,0.037,0.309,0.128,0.359,0.178c0.051,0.052,0.206,0.22,0.104,0.22c-0.104,0-0.219,0.128-0.142,0.143c0.077,0.013,0.309-0.039,0.321,0c0.014,0.037,0.143,0.283,0.271,0.271c0.129-0.013,0.206-0.244,0.27-0.31c0.065-0.064,0.322-0.104,0.349,0.012c0.026,0.116,0.104,0.233,0.257,0.311c0.154,0.076,0.335,0.154,0.348,0.089c0.013-0.064-0.077-0.309-0.181-0.346c-0.103-0.041-0.282-0.259-0.282-0.348c0-0.091-0.155-0.117-0.232-0.182C17.849,19.147,17.784,18.967,17.591,18.928zM8.042,17.023c-0.084,0.037-0.155,0.476,0,0.527c0.154,0.052,0.244-0.205,0.193-0.271C8.183,17.218,8.158,16.973,8.042,17.023zM15.429,18.117c-0.118-0.05-0.335,0.424-0.181,0.463C15.403,18.62,15.518,18.156,15.429,18.117zM15.687,13.703c0.077,0,0.18-0.051,0.18-0.193c0-0.142,0.18,0,0.27-0.013s0.141-0.103,0.18-0.206c0.005-0.013,0.008-0.021,0.009-0.027c-0.003,0.024-0.001,0.093,0.095,0.117c0.154,0.038,0.205-0.064,0.205-0.103s0.283-0.103,0.336-0.142c0.051-0.038,0.258-0.103,0.27-0.154c0.013-0.051,0-0.348,0.064-0.373c0.064-0.026,0.154-0.026,0.052-0.206c-0.104-0.181-0.104-0.348-0.232-0.271c-0.095,0.057-0.038,0.284-0.115,0.438s-0.142,0.296-0.193,0.296s-0.321,0.103-0.399,0.18c-0.076,0.077-0.45-0.064-0.501,0c-0.052,0.064-0.154,0.141-0.219,0.193c-0.065,0.051-0.245,0.013-0.207,0.167C15.518,13.562,15.609,13.703,15.687,13.703zM17.449,12.056c0.18-0.013,0.348-0.064,0.348-0.064s0.271,0.013,0.232-0.116c-0.04-0.128-0.322-0.141-0.375-0.128c-0.051,0.013-0.142-0.142-0.244-0.116c-0.096,0.023-0.128,0.155-0.128,0.193c0,0.039-0.36,0.115-0.245,0.219C17.153,12.146,17.27,12.069,17.449,12.056zM13.91,19.058c0.104,0.064,0.296-0.219,0.349-0.13c0.051,0.091-0.013,0.13,0.076,0.246c0.091,0.114,0.258,0.102,0.258,0.102s-0.013-0.309-0.155-0.387c-0.142-0.077-0.232-0.166-0.064-0.141c0.167,0.026,0.257-0.039,0.219-0.114c-0.039-0.078-0.283-0.039-0.361-0.026s-0.193-0.052-0.193-0.052c-0.077,0.024-0.063,0.089-0.09,0.219C13.923,18.902,13.807,18.992,13.91,19.058zM20.924,21.618c-0.231-0.052-0.077,0.039,0,0.154c0.077,0.116,0.232,0.176,0.258,0.05C21.193,21.759,21.155,21.67,20.924,21.618zM21.915,24.744c-0.077,0.064,0,0.091-0.219,0.22c-0.22,0.13-0.49,0.271-0.541,0.386c-0.052,0.116,0.051,0.181,0.258,0.192c0.206,0.013,0.154,0.053,0.296-0.103s0.271-0.244,0.438-0.373c0.168-0.128,0.168-0.322,0.168-0.322s-0.181-0.178-0.193-0.141C22.1,24.665,21.992,24.681,21.915,24.744zM18.504,21.618c0.014-0.116-0.219-0.116-0.334-0.207c-0.116-0.089-0.128-0.359-0.193-0.515c-0.064-0.153-0.192-0.257-0.322-0.397c-0.128-0.143-0.192-0.465-0.23-0.438c-0.039,0.025-0.154,0.399-0.064,0.515c0.09,0.116-0.039,0.348-0.103,0.503c-0.065,0.153-0.22-0.026-0.349-0.104c-0.129-0.078-0.308-0.128-0.398-0.219c-0.09-0.091,0.155-0.335,0.091-0.426c-0.065-0.09-0.412-0.013-0.45-0.013c-0.039,0-0.116-0.128-0.194-0.128c-0.077,0-0.064,0.258-0.064,0.258s-0.078-0.091-0.193-0.207c-0.117-0.115,0.012,0.077-0.103,0.193c-0.117,0.117-0.079,0.078-0.129,0.206c-0.051,0.129-0.167,0.077-0.283-0.052c-0.116-0.128-0.179-0.037-0.258,0c-0.077,0.039-0.141,0.259-0.18,0.309c-0.039,0.052-0.309,0.117-0.374,0.182c-0.064,0.062-0.09,0.27-0.09,0.322c0,0.05-0.271,0.023-0.361,0.089c-0.09,0.064-0.23,0.025-0.321,0.025c-0.09,0-0.399,0.244-0.502,0.308c-0.103,0.066-0.103,0.298-0.051,0.362c0.051,0.063,0.154,0.219,0.09,0.244c-0.064,0.026-0.104,0.206,0.051,0.359c0.154,0.155,0.103,0.194,0.115,0.271c0.014,0.077,0.078,0.104,0.181,0.232c0.102,0.128-0.181,0.231-0.219,0.31c-0.039,0.076,0.091,0.192,0.167,0.257c0.077,0.063,0.271,0.026,0.386-0.013c0.117-0.039,0.245-0.143,0.321-0.155c0.079-0.013,0.438-0.026,0.438-0.026s0.129-0.192,0.219-0.296c0.089-0.102,0.372-0.013,0.372-0.013s0.117-0.076,0.426-0.141c0.309-0.065,0.179,0.064,0.296,0.104c0.115,0.037,0.27,0.062,0.359,0.128c0.09,0.064,0,0.218-0.012,0.283c-0.014,0.064,0.219,0.038,0.23-0.026c0.014-0.064,0.077-0.128,0.207-0.205c0.128-0.078,0.025,0.114,0.076,0.231c0.052,0.116,0.129-0.157,0.129-0.026c0,0.039,0.039,0.078,0.051,0.116c0.014,0.039,0.181,0.052,0.181,0.18c0,0.13,0,0.207,0.039,0.231c0.038,0.026,0.244,0,0.335,0.155c0.089,0.154,0.154,0.013,0.205-0.052c0.052-0.064,0.231,0.026,0.283,0.078c0.052,0.05,0.193-0.104,0.387-0.155c0.192-0.051,0.167-0.039,0.219-0.115c0.051-0.078,0.09-0.283,0.205-0.438c0.115-0.153,0.271-0.424,0.271-0.631c0-0.206-0.014-0.682-0.155-0.899C18.761,21.953,18.492,21.733,18.504,21.618zM18.029,24.77c-0.065-0.013-0.207-0.062-0.207-0.062c-0.142,0.141,0.142,0.141,0.104,0.283c-0.039,0.141,0.193,0.089,0.257,0.064c0.063-0.027,0.22-0.323,0.193-0.399C18.351,24.577,18.093,24.783,18.029,24.77zM22.803,24.178c-0.052,0-0.077,0.064-0.192,0c-0.117-0.063-0.091-0.037-0.168-0.167c-0.077-0.127-0.091-0.296-0.219-0.23c-0.051,0.025,0,0.168,0.051,0.218c0.053,0.052,0.077,0.231,0.064,0.283c-0.012,0.052-0.231,0.116-0.129,0.18c0.104,0.064,0.297,0,0.271,0.078c-0.025,0.077-0.129,0.179-0.013,0.205c0.115,0.025,0.154-0.089,0.207-0.178c0.051-0.093,0.089-0.169,0.179-0.221C22.944,24.294,22.854,24.178,22.803,24.178zM22.815,21.18c0.168,0.064,0.464-0.231,0.347-0.27C23.047,20.871,22.815,21.18,22.815,21.18zM13.923,19.906c-0.029,0.115,0.193,0.167,0.206,0.039C14.141,19.816,13.949,19.803,13.923,19.906zM14.27,16.47c-0.064,0.065-0.257,0.193-0.283,0.31c-0.025,0.115,0.309-0.182,0.399-0.296c0.091-0.117,0.27-0.052,0.308-0.117c0.04-0.063,0.04-0.063,0.04-0.063s-0.142-0.025-0.257-0.063c-0.117-0.039-0.258,0.102-0.193-0.104c0.064-0.206,0.257-0.167,0.219-0.322c-0.039-0.154-0.168-0.193-0.207-0.193c-0.09,0,0.013,0.141-0.116,0.231c-0.128,0.09-0.271,0.128-0.193,0.283C14.064,16.29,14.334,16.405,14.27,16.47zM13.254,19.751c0.013-0.076-0.142-0.192-0.206-0.192c-0.065,0-0.386-0.077-0.386-0.077c-0.058,0.023-0.135,0.045-0.158,0.077c-0.007-0.011-0.022-0.024-0.049-0.039c-0.142-0.075-0.309,0-0.361-0.102c-0.05-0.104-0.127-0.104-0.179-0.039c-0.094,0.117,0.025,0.206,0.063,0.231c0.038,0.024,0.181,0.052,0.309,0.039c0.08-0.008,0.181-0.027,0.21-0.059c0.004,0.014,0.016,0.027,0.035,0.044c0.103,0.092,0.167,0.13,0.321,0.116C13.009,19.74,13.241,19.829,13.254,19.751zM12.881,18.992c0.065,0,0.193,0,0.283,0.026c0.09,0.025,0.386,0.05,0.373-0.064c-0.013-0.115-0.038-0.297,0.089-0.411c0.13-0.117,0.257-0.18,0.193-0.348c-0.063-0.167-0.193-0.271-0.103-0.349c0.09-0.076,0.192-0.102,0.192-0.166c0-0.065-0.217,0.18-0.244-0.246c-0.005-0.091-0.206,0.025-0.219,0.116c-0.012,0.091,0.142,0.167-0.103,0.167c-0.245,0-0.257,0.194-0.309,0.232c-0.052,0.039-0.103,0.051-0.207,0.076c-0.102,0.026-0.127,0.13-0.153,0.194c-0.025,0.063-0.206-0.116-0.257-0.064c-0.051,0.052-0.013,0.296,0.077,0.501C12.585,18.863,12.816,18.992,12.881,18.992zM11.979,18.928c0.065-0.077,0.038-0.192-0.063-0.18c-0.103,0.013-0.193-0.168-0.36-0.283c-0.168-0.114-0.296-0.194-0.451-0.36c-0.154-0.167-0.347-0.271-0.45-0.359c-0.104-0.091-0.257-0.13-0.322-0.116c-0.159,0.032,0.231,0.309,0.271,0.346c0.039,0.041,0.387,0.335,0.387,0.478s0.231,0.476,0.296,0.527c0.064,0.052,0.385,0.244,0.437,0.348c0.052,0.103,0.167,0.13,0.167-0.013C11.89,19.174,11.916,19.006,11.979,18.928zM11.002,17.474c0.064,0.232,0.193,0.464,0.244,0.555c0.052,0.089,0.271,0.217,0.348,0.281c0.077,0.064,0.192-0.024,0.143-0.102c-0.052-0.078-0.155-0.192-0.167-0.283c-0.013-0.091-0.078-0.233-0.181-0.387c-0.102-0.153-0.192-0.192-0.257-0.295c-0.064-0.104-0.296-0.297-0.296-0.297c-0.102,0.013-0.102,0.205-0.051,0.271C10.834,17.28,10.938,17.243,11.002,17.474z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.GlobeAlt2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.GlobeAlt2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Hail.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Hail.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Hail = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Hail\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.372,6.912c-0.093-3.925-3.302-7.078-7.248-7.08c-2.638,0.002-4.942,1.412-6.208,3.518c-0.595-0.327-1.28-0.518-2.01-0.518C7.627,2.834,5.773,4.639,5.69,6.898c-2.393,0.786-4.125,3.025-4.127,5.686c0,3.312,2.687,6,6,6v-0.002h15.875c3.312,0,6-2.688,6-6C29.434,9.944,27.732,7.715,25.372,6.912zM23.436,16.584H7.562c-2.209-0.006-3.997-1.793-4.001-4c-0.002-1.983,1.45-3.619,3.35-3.933c0.265-0.043,0.502-0.19,0.657-0.414C7.723,8.015,7.78,7.74,7.731,7.475C7.703,7.326,7.686,7.187,7.686,7.051c0.004-1.225,0.995-2.217,2.22-2.219c0.647,0,1.217,0.278,1.633,0.731c0.233,0.257,0.587,0.375,0.927,0.31c0.342-0.066,0.626-0.308,0.748-0.631c0.749-1.992,2.662-3.412,4.911-3.41c2.898,0.004,5.244,2.351,5.251,5.25c0,0.16-0.009,0.325-0.026,0.496c-0.05,0.518,0.305,0.984,0.814,1.079c1.859,0.345,3.273,1.966,3.271,3.923C27.43,14.791,25.645,16.578,23.436,16.584zM11.503,23.709c-0.784-0.002-1.418-0.636-1.418-1.416c0-0.785,0.634-1.416,1.418-1.418c0.78,0.002,1.413,0.633,1.416,1.418C12.917,23.073,12.284,23.707,11.503,23.709zM19.002,23.709c-0.783-0.002-1.418-0.636-1.418-1.416c0-0.785,0.635-1.416,1.418-1.418c0.779,0.002,1.414,0.633,1.414,1.418C20.417,23.073,19.784,23.707,19.002,23.709zM7.503,28.771c-0.783-0.002-1.417-0.637-1.417-1.418s0.634-1.414,1.417-1.416c0.78,0.002,1.415,0.635,1.415,1.416C8.917,28.135,8.284,28.77,7.503,28.771zM15.001,28.771c-0.782-0.002-1.417-0.637-1.417-1.418s0.634-1.414,1.417-1.416c0.78,0.002,1.413,0.635,1.415,1.416C16.415,28.135,15.784,28.77,15.001,28.771zM22.5,28.771c-0.782-0.002-1.416-0.634-1.416-1.416c0-0.785,0.634-1.418,1.416-1.42c0.781,0.002,1.414,0.635,1.418,1.42C23.915,28.138,23.282,28.77,22.5,28.771z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Hail\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Hail();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Hammer.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Hammer.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Hammer = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Hammer\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M7.831,29.354c0.685,0.353,1.62,1.178,2.344,0.876c0.475-0.195,0.753-1.301,1.048-1.883c2.221-4.376,4.635-9.353,6.392-13.611c0-0.19,0.101-0.337-0.049-0.595c0.983-1.6,1.65-3.358,2.724-5.138c0.34-0.566,0.686-1.351,1.163-1.577l0.881-0.368c1.12-0.288,1.938-0.278,2.719,0.473c0.396,0.383,0.578,1.015,0.961,1.395c0.259,0.26,1.246,0.899,1.613,0.8c0.285-0.077,0.52-0.364,0.72-0.728l0.696-1.286c0.195-0.366,0.306-0.718,0.215-0.999c-0.117-0.362-1.192-0.84-1.552-0.915c-0.528-0.113-1.154,0.081-1.692-0.041c-1.057-0.243-1.513-0.922-1.883-2.02c-2.608-1.533-6.119-2.53-10.207-1.244c-1.109,0.349-2.172,0.614-2.901,1.323c-0.146,0.412,0.143,0.494,0.446,0.489c-0.237,0.216-0.62,0.341-0.399,0.848c2.495-1.146,7.34-1.542,7.669,0.804c0.072,0.522-0.395,1.241-0.682,1.835c-0.905,1.874-2.011,3.394-2.813,5.091c-0.298,0.017-0.366,0.18-0.525,0.287c-2.604,3.8-5.451,8.541-7.9,12.794c-0.326,0.566-1.098,1.402-1.002,1.906C5.961,28.641,7.146,29,7.831,29.354z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Hammer\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Hammer();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/HammerAndScrewDriver.js\":\n/*!************************************************!*\\\n !*** ./src/shape/icon/HammerAndScrewDriver.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.HammerAndScrewDriver = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.HammerAndScrewDriver\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.537,9.859c-0.473-0.259-1.127-0.252-1.609-0.523c-0.943-0.534-1.186-1.316-1.226-2.475c-2.059-2.215-5.138-4.176-9.424-4.114c-1.162,0.017-2.256-0.035-3.158,0.435c-0.258,0.354-0.004,0.516,0.288,0.599c-0.29,0.138-0.692,0.147-0.626,0.697c2.72-0.383,7.475,0.624,7.116,2.966c-0.08,0.521-0.735,1.076-1.179,1.563c-1.263,1.382-2.599,2.45-3.761,3.667l0.336,0.336c0.742-0.521,1.446-0.785,2.104-0.785c0.707,0,1.121,0.297,1.276,0.433c0.575-0.618,1.166-1.244,1.839-1.853c0.488-0.444,1.047-1.099,1.566-1.178l0.949-0.101c1.156,0.047,1.937,0.29,2.471,1.232c0.27,0.481,0.262,1.139,0.521,1.613c0.175,0.324,0.937,1.218,1.316,1.228c0.294,0.009,0.603-0.199,0.899-0.49l1.033-1.034c0.291-0.294,0.501-0.6,0.492-0.896C29.754,10.801,28.861,10.035,28.537,9.859zM13.021,15.353l-0.741-0.741c-3.139,2.643-6.52,5.738-9.531,8.589c-0.473,0.443-1.452,1.021-1.506,1.539c-0.083,0.781,0.95,1.465,1.506,2c0.556,0.533,1.212,1.602,1.994,1.51c0.509-0.043,1.095-1.029,1.544-1.502c2.255-2.374,4.664-4.976,6.883-7.509c-0.312-0.371-0.498-0.596-0.498-0.596C12.535,18.451,11.779,17.272,13.021,15.353zM20.64,15.643c-0.366-0.318-1.466,0.143-1.777-0.122c-0.311-0.266,0.171-1.259-0.061-1.455c-0.482-0.406-0.77-0.646-0.77-0.646s-0.862-0.829-2.812,0.928L7.44,6.569C7.045,6.173,7.203,4.746,7.203,4.746L3.517,2.646L2.623,3.541l2.1,3.686c0,0,1.428-0.158,1.824,0.237l7.792,7.793c-1.548,1.831-0.895,2.752-0.895,2.752s0.238,0.288,0.646,0.771c0.196,0.23,1.188-0.249,1.455,0.061c0.264,0.312-0.196,1.41,0.12,1.777c2.666,3.064,6.926,7.736,8.125,7.736c0.892,0,2.021-0.724,2.948-1.64c0.925-0.917,1.639-2.055,1.639-2.947C28.377,22.567,23.704,18.309,20.64,15.643z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.HammerAndScrewDriver\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.HammerAndScrewDriver();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/HangUp.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/HangUp.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.HangUp = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.HangUp\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.563,10.494c-7.35-7.349-19.265-7.348-26.612,0.001c-1.796,1.796-0.247,6.84-0.247,6.84c0.135,0.443,0.616,0.72,1.067,0.614l6.898-1.604c0.451-0.105,0.82-0.57,0.82-1.033l0.001-3.685c0-0.463,0.379-0.842,0.842-0.842h8.285c0.464,0,0.843,0.379,0.843,0.842l-0.001,3.471c0.001,0.462,0.375,0.907,0.83,0.986l7.635,1.316c0.456,0.08,0.873-0.232,0.926-0.692C29.851,16.708,30.359,12.29,28.563,10.494zM17.264,14.072h-3.501v4.39h-2.625l4.363,7.556l4.363-7.556h-2.6V14.072z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.HangUp\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.HangUp();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Help.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Help.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Help = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Help\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.834,4.834L4.833,4.833c-5.889,5.892-5.89,15.443,0.001,21.334s15.44,5.888,21.33-0.002c5.891-5.891,5.893-15.44,0.002-21.33C20.275-1.056,10.725-1.056,4.834,4.834zM25.459,5.542c0.833,0.836,1.523,1.757,2.104,2.726l-4.08,4.08c-0.418-1.062-1.053-2.06-1.912-2.918c-0.859-0.859-1.857-1.494-2.92-1.913l4.08-4.08C23.7,4.018,24.622,4.709,25.459,5.542zM10.139,20.862c-2.958-2.968-2.959-7.758-0.001-10.725c2.966-2.957,7.756-2.957,10.725,0c2.954,2.965,2.955,7.757-0.001,10.724C17.896,23.819,13.104,23.817,10.139,20.862zM5.542,25.459c-0.833-0.837-1.524-1.759-2.105-2.728l4.081-4.081c0.418,1.063,1.055,2.06,1.914,2.919c0.858,0.859,1.855,1.494,2.917,1.913l-4.081,4.081C7.299,26.982,6.379,26.292,5.542,25.459zM8.268,3.435l4.082,4.082C11.288,7.935,10.29,8.571,9.43,9.43c-0.858,0.859-1.494,1.855-1.912,2.918L3.436,8.267c0.58-0.969,1.271-1.89,2.105-2.727C6.377,4.707,7.299,4.016,8.268,3.435zM22.732,27.563l-4.082-4.082c1.062-0.418,2.061-1.053,2.919-1.912c0.859-0.859,1.495-1.857,1.913-2.92l4.082,4.082c-0.58,0.969-1.271,1.891-2.105,2.728C24.623,26.292,23.701,26.983,22.732,27.563z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Help\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Help();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/History.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/History.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.History = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.History\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M10.666,18.292c0.275,0.479,0.889,0.644,1.365,0.367l3.305-1.677C15.39,16.99,15.444,17,15.501,17c0.828,0,1.5-0.671,1.5-1.5l-0.5-7.876c0-0.552-0.448-1-1-1c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96C10.553,17.204,10.389,17.816,10.666,18.292zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM8.179,18.572c-0.478,0.277-0.642,0.889-0.365,1.367c0.275,0.479,0.889,0.641,1.365,0.365c0.479-0.275,0.643-0.888,0.367-1.367C9.27,18.461,8.658,18.297,8.179,18.572zM9.18,10.696c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,11.584,9.657,10.973,9.18,10.696zM6.624,15.5c0,0.553,0.449,1,1,1c0.552,0,1-0.447,1.001-1c-0.001-0.552-0.448-0.999-1.001-1C7.071,14.5,6.624,14.948,6.624,15.5zM14.501,23.377c0,0.553,0.448,1,1,1c0.552,0,1-0.447,1-1s-0.448-1-1-1C14.949,22.377,14.501,22.824,14.501,23.377zM10.696,21.822c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.276,1.091,0.11,1.365-0.365c0.277-0.479,0.113-1.09-0.365-1.367C11.584,21.18,10.973,21.344,10.696,21.822zM21.822,10.696c-0.479,0.278-0.643,0.89-0.366,1.367s0.888,0.642,1.366,0.365c0.478-0.275,0.643-0.888,0.365-1.366C22.913,10.584,22.298,10.42,21.822,10.696zM21.456,18.938c-0.274,0.479-0.112,1.092,0.367,1.367c0.477,0.274,1.089,0.112,1.364-0.365c0.276-0.479,0.112-1.092-0.364-1.367C22.343,18.297,21.73,18.461,21.456,18.938zM24.378,15.5c0-0.551-0.448-1-1-1c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1C23.93,16.5,24.378,16.053,24.378,15.5zM18.573,22.822c0.274,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.89,0.365-1.365c-0.277-0.479-0.888-0.643-1.365-0.367C18.46,21.732,18.296,22.344,18.573,22.822zM18.939,9.546c0.477,0.276,1.088,0.112,1.365-0.366c0.276-0.478,0.113-1.091-0.367-1.367c-0.477-0.276-1.09-0.111-1.364,0.366C18.298,8.659,18.462,9.27,18.939,9.546zM28.703,14.364C28.074,7.072,21.654,1.67,14.364,2.295c-3.254,0.281-6.118,1.726-8.25,3.877L4.341,4.681l-1.309,7.364l7.031-2.548L8.427,8.12c1.627-1.567,3.767-2.621,6.194-2.833c5.64-0.477,10.595,3.694,11.089,9.335c0.477,5.64-3.693,10.595-9.333,11.09c-5.643,0.476-10.599-3.694-11.092-9.333c-0.102-1.204,0.019-2.373,0.31-3.478l-3.27,1.186c-0.089,0.832-0.106,1.684-0.031,2.55c0.629,7.29,7.048,12.691,14.341,12.066C23.926,28.074,29.328,21.655,28.703,14.364z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.History\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.History();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Home.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Home.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Home = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Home\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.812,16l-3.062-3.062V5.625h-2.625v4.688L16,4.188L4.188,16L7,15.933v11.942h17.875V16H27.812zM16,26.167h-5.833v-7H16V26.167zM21.667,23.167h-3.833v-4.042h3.833V23.167z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Home\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Home();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/IMac.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/IMac.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.IMac = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.IMac\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.936,2.099H2.046c-0.506,0-0.919,0.414-0.919,0.92v21.097c0,0.506,0.413,0.919,0.919,0.919h17.062v-0.003h9.828c0.506,0,0.92-0.413,0.92-0.921V3.019C29.854,2.513,29.439,2.099,28.936,2.099zM28.562,20.062c0,0.412-0.338,0.75-0.75,0.75H3.062c-0.413,0-0.75-0.338-0.75-0.75v-16c0-0.413,0.337-0.75,0.75-0.75h24.75c0.412,0,0.75,0.337,0.75,0.75V20.062zM20.518,28.4c-0.033-0.035-0.062-0.055-0.068-0.062l-0.01-0.004l-0.008-0.004c0,0-0.046-0.021-0.119-0.062c-0.108-0.056-0.283-0.144-0.445-0.237c-0.162-0.097-0.32-0.199-0.393-0.271c-0.008-0.014-0.035-0.079-0.058-0.17c-0.083-0.32-0.161-0.95-0.22-1.539h-7.5c-0.023,0.23-0.048,0.467-0.076,0.691c-0.035,0.272-0.073,0.524-0.113,0.716c-0.02,0.096-0.039,0.175-0.059,0.23c-0.009,0.025-0.018,0.05-0.024,0.062c-0.003,0.006-0.005,0.01-0.007,0.013c-0.094,0.096-0.34,0.246-0.553,0.36c-0.107,0.062-0.209,0.11-0.283,0.146c-0.074,0.037-0.119,0.062-0.119,0.062l-0.007,0.004l-0.008,0.004c-0.01,0.009-0.038,0.022-0.07,0.062c-0.031,0.037-0.067,0.103-0.067,0.185c0.002,0.002-0.004,0.037-0.006,0.088c0,0.043,0.007,0.118,0.068,0.185c0.061,0.062,0.143,0.08,0.217,0.08h9.716c0.073,0,0.153-0.021,0.215-0.08c0.062-0.063,0.068-0.142,0.068-0.185c-0.001-0.051-0.008-0.086-0.007-0.088C20.583,28.503,20.548,28.439,20.518,28.4z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.IMac\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.IMac();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Icon.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Icon.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Icon = _packages2.default.SetFigure.extend({\n NAME: \"draw2d.shape.icon.Icon\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n this.setBackgroundColor(\"#333333\");\n this.keepAspectRatio = false;\n },\n\n /**\r\n * @method\r\n * propagate all attributes like color, stroke,... to the shape element\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n // redirect the bgColor to the inner set and not to the outer container\n //\n attributes.fill = \"none\";\n if (this.svgNodes !== null) {\n this.svgNodes.attr({ fill: this.bgColor.rgba(), stroke: \"none\" });\n }\n\n this._super(attributes);\n },\n\n applyTransformation: function applyTransformation() {\n var trans = [];\n\n if (this.rotationAngle !== 0) {\n trans.push(\"R\" + this.rotationAngle);\n }\n\n if (this.getRotationAngle() === 90 || this.getRotationAngle() === 270) {\n var ratio = this.getHeight() / this.getWidth();\n trans.push(\"T\" + -this.offsetY + \",\" + -this.offsetX);\n trans.push(\"S\" + ratio + \",\" + 1 / ratio + \",0,0\");\n } else {\n trans.push(\"T\" + -this.offsetX + \",\" + -this.offsetY);\n }\n if (this.isResizeable() === true) {\n trans.push(\"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY() + \"S\" + this.scaleX + \",\" + this.scaleY + \",\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n } else {\n trans.push(\"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n }\n\n this.svgNodes.transform(trans.join(\" \"));\n\n return this;\n },\n\n /**\r\n * @private\r\n */\n createShapeElement: function createShapeElement() {\n var shape = this._super();\n\n var bb = this.svgNodes.getBBox();\n\n this.offsetX = bb.x;\n this.offsetY = bb.y;\n\n return shape;\n }\n}); /**\r\n * @class draw2d.shape.icon.Icon\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.SetFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Icons.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Icons.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Icons = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Icons\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.083,14H14V4.083H4.083V14zM17,4.083V14h9.917V4.083H17zM17,26.917h9.917v-9.918H17V26.917zM4.083,26.917H14v-9.918H4.083V26.917z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Icons\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Icons();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ie.js\":\n/*!******************************!*\\\n !*** ./src/shape/icon/Ie.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ie = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ie\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.998,2.266c-2.12-1.91-6.925,0.382-9.575,1.93c-0.76-0.12-1.557-0.185-2.388-0.185c-3.349,0-6.052,0.985-8.106,2.843c-2.336,2.139-3.631,4.94-3.631,8.177c0,0.028,0.001,0.056,0.001,0.084c3.287-5.15,8.342-7.79,9.682-8.487c0.212-0.099,0.338,0.155,0.141,0.253c-0.015,0.042-0.015,0,0,0c-2.254,1.35-6.434,5.259-9.146,10.886l-0.003-0.007c-1.717,3.547-3.167,8.529-0.267,10.358c2.197,1.382,6.13-0.248,9.295-2.318c0.764,0.108,1.567,0.165,2.415,0.165c5.84,0,9.937-3.223,11.399-7.924l-8.022-0.014c-0.337,1.661-1.464,2.548-3.223,2.548c-2.21,0-3.729-1.211-3.828-4.012l15.228-0.014c0.028-0.578-0.042-0.985-0.042-1.436c0-5.251-3.143-9.355-8.255-10.663c2.081-1.294,5.974-3.209,7.848-1.681c1.407,1.14,0.633,3.533,0.295,4.518c-0.056,0.254,0.24,0.296,0.296,0.057C28.814,5.573,29.026,3.194,27.998,2.266zM13.272,25.676c-2.469,1.475-5.873,2.539-7.539,1.289c-1.243-0.935-0.696-3.468,0.398-5.938c0.664,0.992,1.495,1.886,2.473,2.63C9.926,24.651,11.479,25.324,13.272,25.676zM12.714,13.046c0.042-2.435,1.787-3.49,3.617-3.49c1.928,0,3.49,1.112,3.49,3.49H12.714z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ie\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ie();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ie9.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Ie9.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ie9 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ie9\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.751,17.887c0.054-0.434,0.081-0.876,0.081-1.324c0-1.744-0.413-3.393-1.146-4.854c1.133-2.885,1.155-5.369-0.201-6.777c-1.756-1.822-5.391-1.406-9.433,0.721c-0.069-0.001-0.138-0.003-0.206-0.003c-6.069,0-10.988,4.888-10.988,10.917c0,0.183,0.005,0.354,0.014,0.529c-2.688,4.071-3.491,7.967-1.688,9.838c1.557,1.613,4.691,1.344,8.2-0.392c1.363,0.604,2.873,0.938,4.462,0.938c4.793,0,8.867-3.049,10.369-7.299H21.26c-0.814,1.483-2.438,2.504-4.307,2.504c-2.688,0-4.867-2.104-4.867-4.688c0-0.036,0.002-0.071,0.003-0.106h15.662V17.887zM26.337,6.099c0.903,0.937,0.806,2.684-0.087,4.818c-1.27-2.083-3.221-3.71-5.546-4.576C23.244,5.217,25.324,5.047,26.337,6.099zM16.917,10.372c2.522,0,4.585,1.991,4.748,4.509h-9.496C12.333,12.363,14.396,10.372,16.917,10.372zM5.687,26.501c-1.103-1.146-0.712-3.502,0.799-6.298c0.907,2.546,2.736,4.658,5.09,5.938C8.92,27.368,6.733,27.587,5.687,26.501z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ie9\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ie9();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Import.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Import.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Import = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Import\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.067,2.25c-5.979,0-11.035,3.91-12.778,9.309h3.213c1.602-3.705,5.271-6.301,9.565-6.309c5.764,0.01,10.428,4.674,10.437,10.437c-0.009,5.764-4.673,10.428-10.437,10.438c-4.294-0.007-7.964-2.605-9.566-6.311H2.289c1.744,5.399,6.799,9.31,12.779,9.312c7.419-0.002,13.437-6.016,13.438-13.438C28.504,8.265,22.486,2.252,15.067,2.25zM10.918,19.813l7.15-4.126l-7.15-4.129v2.297H-0.057v3.661h10.975V19.813z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Import\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Import();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/InkScape.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/InkScape.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.InkScape = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.InkScape\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.402,17.626c0.84-0.772,2.468-0.381,5.979-1.853c1.716-0.72,1.572-1.265,1.566-1.928c-0.001-0.014,0-0.027,0-0.041h-0.005c-0.012-0.667-0.291-1.332-0.846-1.845L17.049,2.684c-0.566-0.522-1.304-0.782-2.042-0.782V1.898c-0.738,0-1.475,0.261-2.04,0.783l-10.05,9.276c-0.554,0.512-0.832,1.176-0.843,1.844H2.07c0,0,0.003,0.011,0.004,0.011c0,0.012-0.004,0.024-0.004,0.034h0.017c0.193,0.676,5.164,1.536,5.718,2.049c0.838,0.774-3.211,1.339-2.374,2.114c0.838,0.773,5.062,1.496,5.898,2.271c0.838,0.771-1.711,1.596-0.874,2.366c0.837,0.773,3.651-0.191,3.142,1.822c1.13,1.045,3.49,0.547,5.071-0.498c0.837-0.771-1.607-0.703-0.77-1.477c0.836-0.774,2.949-0.777,4.73-2.627C21.913,18.838,19.566,18.398,20.402,17.626zM10.973,16.868l-0.42-0.504c1.497,0.358,3.162,0.827,4.498,0.837l0.058,0.554C13.964,17.646,11.544,17.137,10.973,16.868zM18.161,8.58l-1.396-0.74L14.53,9.594l-1.067-3.192l-1.177,2.545L8.998,9.25l0.036-1.352c0-0.324,1.895-2.596,3.05-3.136l2.112-1.401c0.312-0.186,0.53-0.261,0.727-0.257c0.327,0.011,0.593,0.239,1.112,0.55l4.748,3.25c0.357,0.215,0.619,0.522,0.626,0.898l-2.813-1.254L18.161,8.58zM26.434,19.594c-0.313-0.07-1.688-0.691-2.035,0.165c0.968,0.981,2.645,2.181,3.316,1.482C28.391,20.543,27.102,19.745,26.434,19.594zM4.663,21.566c-0.315,0.074-1.842,0.115-1.719,1.021c1.351,0.451,3.438,0.792,3.684-0.113C6.873,21.566,5.33,21.414,4.663,21.566zM17.877,26.396c-0.232,0.209-1.53,0.953-0.929,1.681c1.413-0.236,3.403-0.914,3.12-1.812C19.786,25.369,18.37,25.953,17.877,26.396z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.InkScape\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.InkScape();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ipad.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Ipad.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ipad = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ipad\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.221,1.417H6.11c-0.865,0-1.566,0.702-1.566,1.566v25.313c0,0.865,0.701,1.565,1.566,1.565h19.111c0.865,0,1.565-0.7,1.565-1.565V2.984C26.787,2.119,26.087,1.417,25.221,1.417zM15.666,29.299c-0.346,0-0.626-0.279-0.626-0.625s0.281-0.627,0.626-0.627c0.346,0,0.627,0.281,0.627,0.627S16.012,29.299,15.666,29.299zM24.376,26.855c0,0.174-0.142,0.312-0.313,0.312H7.27c-0.173,0-0.313-0.142-0.313-0.312V4.3c0-0.173,0.14-0.313,0.313-0.313h16.792c0.172,0,0.312,0.14,0.312,0.313L24.376,26.855L24.376,26.855z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ipad\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ipad();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Iphone.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Iphone.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Iphone = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Iphone\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.755,1H10.62C9.484,1,8.562,1.921,8.562,3.058v24.385c0,1.136,0.921,2.058,2.058,2.058h10.135c1.136,0,2.058-0.922,2.058-2.058V3.058C22.812,1.921,21.891,1,20.755,1zM14.659,3.264h2.057c0.101,0,0.183,0.081,0.183,0.18c0,0.1-0.082,0.18-0.183,0.18h-2.057c-0.1,0-0.181-0.081-0.181-0.18C14.478,3.344,14.559,3.264,14.659,3.264zM13.225,3.058c0.199,0,0.359,0.162,0.359,0.36c0,0.198-0.161,0.36-0.359,0.36c-0.2,0-0.36-0.161-0.36-0.36S13.025,3.058,13.225,3.058zM15.688,28.473c-0.796,0-1.44-0.646-1.44-1.438c0-0.799,0.645-1.439,1.44-1.439s1.44,0.646,1.44,1.439S16.483,28.473,15.688,28.473zM22.041,24.355c0,0.17-0.139,0.309-0.309,0.309H9.642c-0.17,0-0.308-0.139-0.308-0.309V6.042c0-0.17,0.138-0.309,0.308-0.309h12.09c0.17,0,0.309,0.138,0.309,0.309V24.355z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Iphone\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Iphone();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/JQuery.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/JQuery.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.JQuery = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.JQuery\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M10.322,23.041C4.579,18.723,2.777,11.07,5.494,4.583c-0.254,0.291-0.502,0.59-0.739,0.904c-5.177,6.887-4.008,16.505,2.613,21.482c6.62,4.979,16.184,3.432,21.362-3.455c0.237-0.314,0.454-0.635,0.663-0.959C23.915,26.963,16.064,27.357,10.322,23.041zM13.662,18.598c4.765,3.582,11.604,2.564,15.567-2.198c-3.609,2.641-9.09,2.475-13.361-0.736S9.916,7.231,11.451,3.03C7.976,8.161,8.897,15.015,13.662,18.598zM18.642,11.976c3.254,2.447,8.146,1.438,10.967-2.242c-2.604,1.921-6.341,1.955-9.157-0.164c-2.819-2.118-3.826-5.718-2.701-8.754C14.998,4.549,15.387,9.528,18.642,11.976z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.JQuery\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.JQuery();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Jigsaw.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Jigsaw.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Jigsaw = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Jigsaw\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M3.739,13.619c0,0,3.516-4.669,5.592-3.642c2.077,1.027-0.414,2.795,1.598,3.719c2.011,0.924,5.048-0.229,4.376-2.899c-0.672-2.67-1.866-0.776-2.798-2.208c-0.934-1.432,4.586-4.59,4.586-4.59s3.361,6.651,4.316,4.911c1.157-2.105,3.193-4.265,5.305-1.025c0,0,1.814,2.412,0.246,3.434s-2.917,0.443-3.506,1.553c-0.586,1.112,3.784,4.093,3.784,4.093s-2.987,4.81-4.926,3.548c-1.939-1.262,0.356-3.364-2.599-3.989c-1.288-0.23-3.438,0.538-3.818,2.34c-0.13,2.709,1.604,2.016,2.797,3.475c1.191,1.457-4.484,4.522-4.484,4.522s-1.584-3.923-3.811-4.657c-2.227-0.735-0.893,2.135-2.917,2.531c-2.024,0.396-4.816-2.399-3.46-4.789c1.358-2.391,3.275-0.044,3.441-1.951C7.629,16.087,3.739,13.619,3.739,13.619z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Jigsaw\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Jigsaw();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Key.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Key.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Key = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Key\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M18.386,16.009l0.009-0.006l-0.58-0.912c1.654-2.226,1.876-5.319,0.3-7.8c-2.043-3.213-6.303-4.161-9.516-2.118c-3.212,2.042-4.163,6.302-2.12,9.517c1.528,2.402,4.3,3.537,6.944,3.102l0.424,0.669l0.206,0.045l0.779-0.447l-0.305,1.377l2.483,0.552l-0.296,1.325l1.903,0.424l-0.68,3.06l1.406,0.313l-0.424,1.906l4.135,0.918l0.758-3.392L18.386,16.009z M10.996,8.944c-0.685,0.436-1.593,0.233-2.029-0.452C8.532,7.807,8.733,6.898,9.418,6.463s1.594-0.233,2.028,0.452C11.883,7.6,11.68,8.509,10.996,8.944z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Key\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Key();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Lab.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Lab.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Lab = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Lab\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.121,24.438l-3.362-7.847c-0.329-0.769-0.599-2.081-0.599-2.917s0.513-1.521,1.14-1.521s1.141-0.513,1.141-1.14s-0.685-1.14-1.521-1.14h-6.84c-0.836,0-1.52,0.513-1.52,1.14s0.513,1.14,1.14,1.14s1.14,0.685,1.14,1.521s-0.269,2.148-0.599,2.917l-3.362,7.847C8.55,25.206,8.28,26.177,8.28,26.595s0.342,1.103,0.76,1.521s1.444,0.76,2.28,0.76h8.359c0.836,0,1.862-0.342,2.28-0.76s0.76-1.103,0.76-1.521S22.45,25.206,22.121,24.438zM16.582,7.625c0,0.599,0.484,1.083,1.083,1.083s1.083-0.484,1.083-1.083s-0.484-1.084-1.083-1.084S16.582,7.026,16.582,7.625zM13.667,7.792c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5s-0.5,0.224-0.5,0.5S13.391,7.792,13.667,7.792zM15.584,5.292c0.874,0,1.583-0.709,1.583-1.583c0-0.875-0.709-1.584-1.583-1.584C14.709,2.125,14,2.834,14,3.709C14,4.583,14.709,5.292,15.584,5.292z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Lab\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Lab();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Lamp.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Lamp.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Lamp = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Lamp\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,2.833c-3.866,0-7,3.134-7,7c0,3.859,3.945,4.937,4.223,9.499h5.553c0.278-4.562,4.224-5.639,4.224-9.499C22.5,5.968,19.366,2.833,15.5,2.833zM15.5,28.166c1.894,0,2.483-1.027,2.667-1.666h-5.334C13.017,27.139,13.606,28.166,15.5,28.166zM12.75,25.498h5.5v-5.164h-5.5V25.498z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Lamp\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Lamp();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Lamp_alt.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Lamp_alt.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Lamp_alt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Lamp_alt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M12.75,25.498h5.5v-5.164h-5.5V25.498zM15.5,28.166c1.894,0,2.483-1.027,2.667-1.666h-5.334C13.017,27.139,13.606,28.166,15.5,28.166zM15.5,2.833c-3.866,0-7,3.134-7,7c0,3.859,3.945,4.937,4.223,9.499h1.271c-0.009-0.025-0.024-0.049-0.029-0.078L11.965,8.256c-0.043-0.245,0.099-0.485,0.335-0.563c0.237-0.078,0.494,0.026,0.605,0.25l0.553,1.106l0.553-1.106c0.084-0.17,0.257-0.277,0.446-0.277c0.189,0,0.362,0.107,0.446,0.277l0.553,1.106l0.553-1.106c0.084-0.17,0.257-0.277,0.448-0.277c0.189,0,0.36,0.107,0.446,0.277l0.554,1.106l0.553-1.106c0.111-0.224,0.368-0.329,0.604-0.25s0.377,0.318,0.333,0.563l-1.999,10.998c-0.005,0.029-0.02,0.053-0.029,0.078h1.356c0.278-4.562,4.224-5.639,4.224-9.499C22.5,5.968,19.366,2.833,15.5,2.833zM17.458,10.666c-0.191,0-0.364-0.107-0.446-0.275l-0.554-1.106l-0.553,1.106c-0.086,0.168-0.257,0.275-0.446,0.275c-0.191,0-0.364-0.107-0.449-0.275l-0.553-1.106l-0.553,1.106c-0.084,0.168-0.257,0.275-0.446,0.275c-0.012,0-0.025,0-0.037-0.001l1.454,8.001h1.167l1.454-8.001C17.482,10.666,17.47,10.666,17.458,10.666z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Lamp_alt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Lamp_alt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Landing.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Landing.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Landing = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Landing\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.322,19.491c0,0,1.903,0.342,0.299-1.869c-1.353-1.866-5.261-3.104-5.261-3.104l-4.213-8.229l-2.47-0.394l0.973,5.449L9.241,10.11L8.772,7.273L7.008,6.302c0,0-0.496,2.742-0.149,5.271C6.859,11.573,13.965,17.999,23.322,19.491zM3.251,23.106v1.998h24.498v-1.998H3.251zM14,17.94c0,0.414,0.336,0.75,0.75,0.75s0.75-0.336,0.75-0.75s-0.336-0.75-0.75-0.75S14,17.526,14,17.94z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Landing\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Landing();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Landscape1.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/Landscape1.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Landscape1 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Landscape1\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M19.883,5.71H2.746c-0.163,0-0.319,0.071-0.435,0.188c-0.118,0.117-0.18,0.272-0.18,0.435v18.364c0,0.164,0.063,0.318,0.18,0.436c0.123,0.117,0.287,0.18,0.435,0.18h25.75c0.164,0,0.324-0.066,0.438-0.18c0.118-0.114,0.182-0.273,0.182-0.436V14.551c-0.002-0.102-0.01-0.188-0.021-0.271c-0.186-1.543-1.543-3.424-3.236-5.168C24.039,7.31,21.869,5.753,19.883,5.71zM26.914,12.314c-0.008-0.005-0.019-0.007-0.029-0.01c-1.092-0.293-2.33-0.355-3.199-0.355c-0.162,0-0.312,0.002-0.445,0.004c-0.037-0.604-0.129-1.604-0.356-2.625c-0.11-0.461-0.246-0.94-0.433-1.42c0.857,0.541,1.748,1.264,2.535,2.068C25.74,10.718,26.41,11.551,26.914,12.314zM3.365,6.947h16.517c0.058,0,0.12,0,0.183,0.004c0.694,0.105,1.307,1.221,1.616,2.646c0.335,1.484,0.354,2.997,0.354,3l0.007,0.656l0.651-0.051c0,0,0.398-0.027,0.99-0.025c0.809,0,1.977,0.062,2.871,0.312c0.939,0.275,1.352,0.635,1.326,1.051h0.002v9.542H3.365V6.951V6.947z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Landscape1\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Landscape1();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Landscape2.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/Landscape2.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Landscape2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Landscape2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M19.883,5.71H2.746c-0.163,0-0.319,0.071-0.435,0.188c-0.118,0.117-0.18,0.272-0.18,0.435v18.364c0,0.164,0.063,0.318,0.18,0.436c0.123,0.117,0.287,0.18,0.435,0.18h25.75c0.164,0,0.324-0.066,0.438-0.18c0.118-0.114,0.182-0.273,0.182-0.436V14.551c-0.002-0.102-0.01-0.188-0.021-0.271c-0.186-1.543-1.543-3.424-3.236-5.168C24.039,7.31,21.869,5.753,19.883,5.71zM3.365,6.947h16.517c0.058,0,0.12,0,0.183,0.004c0.694,0.105,1.307,1.221,1.616,2.646c0.335,1.484,0.354,2.997,0.354,3l0.007,0.656l0.651-0.051c0,0,0.398-0.027,0.99-0.025c0.809,0,1.977,0.062,2.871,0.312c0.939,0.275,1.352,0.635,1.326,1.051h0.002v9.542H3.365V6.951V6.947z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Landscape2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Landscape2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/LineChart.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/LineChart.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.LineChart = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.LineChart\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M3.625,25.062c-0.539-0.115-0.885-0.646-0.77-1.187l0,0L6.51,6.584l2.267,9.259l1.923-5.188l3.581,3.741l3.883-13.103l2.934,11.734l1.96-1.509l5.271,11.74c0.226,0.504,0,1.095-0.505,1.321l0,0c-0.505,0.227-1.096,0-1.322-0.504l0,0l-4.23-9.428l-2.374,1.826l-1.896-7.596l-2.783,9.393l-3.754-3.924L8.386,22.66l-1.731-7.083l-1.843,8.711c-0.101,0.472-0.515,0.794-0.979,0.794l0,0C3.765,25.083,3.695,25.076,3.625,25.062L3.625,25.062z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.LineChart\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.LineChart();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Link.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Link.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Link = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Link\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16.45,18.085l-2.47,2.471c0.054,1.023-0.297,2.062-1.078,2.846c-1.465,1.459-3.837,1.459-5.302-0.002c-1.461-1.465-1.46-3.836-0.001-5.301c0.783-0.781,1.824-1.131,2.847-1.078l2.469-2.469c-2.463-1.057-5.425-0.586-7.438,1.426c-2.634,2.637-2.636,6.907,0,9.545c2.638,2.637,6.909,2.635,9.545,0l0.001,0.002C17.033,23.511,17.506,20.548,16.45,18.085zM14.552,12.915l2.467-2.469c-0.053-1.023,0.297-2.062,1.078-2.848C19.564,6.139,21.934,6.137,23.4,7.6c1.462,1.465,1.462,3.837,0,5.301c-0.783,0.783-1.822,1.132-2.846,1.079l-2.469,2.468c2.463,1.057,5.424,0.584,7.438-1.424c2.634-2.639,2.633-6.91,0-9.546c-2.639-2.636-6.91-2.637-9.545-0.001C13.967,7.489,13.495,10.451,14.552,12.915zM18.152,10.727l-7.424,7.426c-0.585,0.584-0.587,1.535,0,2.121c0.585,0.584,1.536,0.584,2.121-0.002l7.425-7.424c0.584-0.586,0.584-1.535,0-2.121C19.687,10.141,18.736,10.142,18.152,10.727z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Link\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Link();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/LinkedIn.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/LinkedIn.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.LinkedIn = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.LinkedIn\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.25,3.125h-22c-1.104,0-2,0.896-2,2v22c0,1.104,0.896,2,2,2h22c1.104,0,2-0.896,2-2v-22C29.25,4.021,28.354,3.125,27.25,3.125zM11.219,26.781h-4v-14h4V26.781zM9.219,11.281c-1.383,0-2.5-1.119-2.5-2.5s1.117-2.5,2.5-2.5s2.5,1.119,2.5,2.5S10.602,11.281,9.219,11.281zM25.219,26.781h-4v-8.5c0-0.4-0.403-1.055-0.687-1.213c-0.375-0.211-1.261-0.229-1.665-0.034l-1.648,0.793v8.954h-4v-14h4v0.614c1.583-0.723,3.78-0.652,5.27,0.184c1.582,0.886,2.73,2.864,2.73,4.702V26.781z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.LinkedIn\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.LinkedIn();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Linux.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Linux.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Linux = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Linux\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M11.791,25.229c1.027-0.104,1.162-1.191,0.68-1.666c-0.398-0.392-2.598-2.022-3.171-2.664C9.033,20.6,8.673,20.454,8.52,20.12c-0.352-0.771-0.598-1.869-0.151-2.658c0.081-0.144,0.133-0.078,0.071,0.22c-0.351,1.684,0.746,3.059,0.986,2.354c0.167-0.487,0.013-1.358,0.102-2.051c0.158-1.226,1.273-3.577,1.763-3.712c-0.755-1.398,0.886-2.494,0.866-3.723c-0.014-0.798,0.701,0.982,1.419,1.359c0.802,0.422,1.684-0.794,2.936-1.41c0.354-0.176,0.809-0.376,0.776-0.524c-0.146-0.718-1.644,0.886-2.979,0.939c-0.61,0.024-0.837-0.12-1.072-0.347c-0.712-0.689,0.073-0.115,1.132-0.307c0.471-0.085,0.629-0.163,1.128-0.365c0.5-0.201,1.069-0.5,1.636-0.654c0.395-0.106,0.361-0.402,0.208-0.491c-0.088-0.051-0.219-0.046-0.321,0.133c-0.244,0.419-1.383,0.661-1.74,0.771c-0.457,0.14-0.962,0.271-1.634,0.243c-1.021-0.042-0.782-0.509-1.513-0.928c-0.213-0.122-0.156-0.444,0.129-0.729c0.148-0.148,0.557-0.232,0.76-0.572c0.028-0.047,0.289-0.32,0.494-0.461c0.07-0.049,0.076-1.295-0.562-1.32c-0.543-0.021-0.697,0.398-0.675,0.818c0.022,0.419,0.245,0.765,0.393,0.764c0.285-0.004,0.019,0.311-0.138,0.361c-0.237,0.078-0.562-0.934-0.525-1.418c0.039-0.506,0.303-1.4,0.942-1.383c0.576,0.016,0.993,0.737,0.973,1.983c-0.003,0.211,0.935-0.101,1.247,0.229c0.224,0.236-0.767-2.207,1.438-2.375c0.582,0.111,1.14,0.305,1.371,1.641c-0.086,0.139,0.146,1.07-0.215,1.182c-0.438,0.135-0.707-0.02-0.453-0.438c0.172-0.418,0.004-1.483-0.882-1.42c-0.887,0.064-0.769,1.637-0.526,1.668c0.243,0.031,0.854,0.465,1.282,0.549c1.401,0.271,0.371,1.075,0.555,2.048c0.205,1.099,0.929,0.809,1.578,3.717c0.137,0.177,0.676,0.345,1.199,2.579c0.473,2.011-0.195,3.473,0.938,3.353c0.256-0.026,0.629-0.1,0.792-0.668c0.425-1.489-0.213-3.263-0.855-4.46c-0.375-0.698-0.729-1.174-0.916-1.337c0.738,0.436,1.683,1.829,1.898,2.862c0.286,1.358,0.49,1.934,0.059,3.37c0.25,0.125,0.871,0.39,0.871,0.685c-0.647-0.53-2.629-0.625-2.68,0.646c-0.338,0.008-0.594,0.034-0.811,0.293c-0.797,0.944-0.059,2.842-0.139,3.859c-0.07,0.896-0.318,1.783-0.46,2.683c-0.474-0.019-0.428-0.364-0.274-0.852c0.135-0.431,0.351-0.968,0.365-1.484c0.012-0.467-0.039-0.759-0.156-0.831c-0.118-0.072-0.303,0.074-0.559,0.485c-0.543,0.875-1.722,1.261-2.821,1.397c-1.099,0.138-2.123,0.028-2.664-0.578c-0.186-0.207-0.492,0.058-0.529,0.111c-0.049,0.074,0.18,0.219,0.352,0.533c0.251,0.461,0.49,1.159-0.105,1.479C12.83,26.314,12.316,26.221,11.791,25.229L11.791,25.229zM11.398,25.188c0.395,0.621,1.783,3.232-0.652,3.571c-0.814,0.114-2.125-0.474-3.396-0.784c-1.142-0.279-2.301-0.444-2.949-0.627c-0.391-0.108-0.554-0.25-0.588-0.414c-0.091-0.434,0.474-1.041,0.503-1.555c0.028-0.514-0.188-0.779-0.364-1.199c-0.177-0.42-0.224-0.734-0.081-0.914c0.109-0.141,0.334-0.199,0.698-0.164c0.462,0.047,1.02-0.049,1.319-0.23c0.505-0.309,0.742-0.939,0.516-1.699c0,0.744-0.244,1.025-0.855,1.366c-0.577,0.319-1.467,0.062-1.875,0.416c-0.492,0.427,0.175,1.528,0.12,2.338c-0.042,0.622-0.69,1.322-0.401,1.946c0.291,0.627,1.648,0.695,3.064,0.99c2.012,0.422,3.184,1.153,4.113,1.188c1.356,0.05,1.564-1.342,3.693-1.36c0.621-0.033,1.229-0.052,1.835-0.06c0.688-0.009,1.375-0.003,2.079,0.014c1.417,0.034,0.931,0.773,1.851,1.246c0.774,0.397,2.17,0.241,2.504-0.077c0.451-0.431,1.662-1.467,2.592-1.935c1.156-0.583,3.876-1.588,1.902-2.812c-0.461-0.285-1.547-0.588-1.639-2.676c-0.412,0.366-0.365,2.312,0.784,2.697c1.283,0.431,2.085,1.152-0.301,1.969c-1.58,0.54-1.849,0.706-3.099,1.747c-1.267,1.054-3.145,0.636-2.815-1.582c0.171-1.155,0.269-2.11-0.019-3.114c-0.142-0.49-0.211-1.119-0.114-1.562c0.187-0.858,0.651-1.117,1.106-0.293c0.285,0.519,0.385,1.122,1.408,1.171c1.607,0.077,1.926-1.553,2.439-1.627c0.343-0.05,0.686-1.02,0.425-2.589c-0.28-1.681-1.269-4.332-2.536-5.677c-1.053-1.118-1.717-2.098-2.135-3.497c-0.352-1.175-0.547-2.318-0.475-3.412c0.094-1.417-0.691-3.389-1.943-4.316c-0.782-0.581-2.011-0.893-3.122-0.88c-0.623,0.007-1.21,0.099-1.661,0.343c-1.855,1.008-2.113,2.445-2.086,4.088c0.025,1.543,0.078,3.303,0.254,4.977c-0.208,0.77-1.288,2.227-1.979,3.114C8.59,14.233,8.121,16.01,7.52,17.561c-0.321,0.828-0.862,1.2-0.908,2.265C6.6,20.122,6.61,20.891,6.894,20.672C7.98,19.829,9.343,21.95,11.398,25.188L11.398,25.188zM17.044,2.953c-0.06,0.176-0.3,0.321-0.146,0.443c0.152,0.123,0.24-0.171,0.549-0.281c0.08-0.028,0.449,0.012,0.519-0.164c0.03-0.077-0.19-0.164-0.321-0.291c-0.133-0.125-0.262-0.236-0.386-0.229C16.938,2.451,17.096,2.798,17.044,2.953L17.044,2.953zM18.934,9.35c0.115-0.121,0.174,0.207,0.483,0.402c0.244,0.154,0.481,0.04,0.545,0.354c0.044,0.225-0.097,0.467-0.284,0.436C19.35,10.486,18.596,9.705,18.934,9.35L18.934,9.35zM13.832,7.375c-0.508-0.037-0.543,0.33-0.375,0.324C13.629,7.693,13.523,7.408,13.832,7.375L13.832,7.375zM12.96,6.436c0.06-0.013,0.146,0.09,0.119,0.233c-0.037,0.199-0.021,0.324,0.117,0.325c0.022,0,0.048-0.005,0.056-0.057c0.066-0.396-0.14-0.688-0.225-0.711C12.834,6.178,12.857,6.458,12.96,6.436L12.96,6.436zM16.663,6.268c0.129,0.039,0.253,0.262,0.28,0.504c0.002,0.021,0.168-0.035,0.17-0.088c0.011-0.389-0.321-0.571-0.408-0.562C16.506,6.139,16.562,6.238,16.663,6.268L16.663,6.268zM14.765,7.423c0.463-0.214,0.625,0.118,0.465,0.171C15.066,7.648,15.065,7.345,14.765,7.423L14.765,7.423zM9.178,15.304c-0.219-0.026,0.063-0.19,0.184-0.397c0.131-0.227,0.105-0.511,0.244-0.469s0.061,0.2-0.033,0.461C9.491,15.121,9.258,15.313,9.178,15.304L9.178,15.304z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Linux\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Linux();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/List.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/List.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.List = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.List\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.082,4.083v2.999h22.835V4.083H4.082zM4.082,20.306h22.835v-2.999H4.082V20.306zM4.082,13.694h22.835v-2.999H4.082V13.694zM4.082,26.917h22.835v-2.999H4.082V26.917z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.List\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.List();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Location.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Location.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Location = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Location\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,3.5c-4.142,0-7.5,3.358-7.5,7.5c0,4.143,7.5,18.121,7.5,18.121S23.5,15.143,23.5,11C23.5,6.858,20.143,3.5,16,3.5z M16,14.584c-1.979,0-3.584-1.604-3.584-3.584S14.021,7.416,16,7.416S19.584,9.021,19.584,11S17.979,14.584,16,14.584z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Location\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Location();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Lock.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Lock.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Lock = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Lock\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.335,12.833V9.999h-0.001C22.333,6.501,19.498,3.666,16,3.666S9.666,6.502,9.666,10h0v2.833H7.375V25h17.25V12.833H22.335zM11.667,10C11.667,10,11.667,10,11.667,10c0-2.39,1.944-4.334,4.333-4.334c2.391,0,4.335,1.944,4.335,4.333c0,0,0,0,0,0v2.834h-8.668V10z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Lock\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Lock();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Locked.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Locked.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Locked = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Locked\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.711,14.085L16.914,4.29c-0.778-0.778-2.051-0.778-2.829,0L4.29,14.086c-0.778,0.778-0.778,2.05,0,2.829l9.796,9.796c0.778,0.777,2.051,0.777,2.829,0l9.797-9.797C27.488,16.136,27.488,14.863,26.711,14.085zM8.218,16.424c-0.4-0.153-0.687-0.533-0.687-0.987s0.287-0.834,0.687-0.987V16.424zM8.969,16.424v-1.974c0.4,0.152,0.687,0.533,0.687,0.987S9.369,16.272,8.969,16.424zM13.5,19.188l1.203-3.609c-0.689-0.306-1.172-0.994-1.172-1.797c0-1.087,0.881-1.969,1.969-1.969c1.087,0,1.969,0.881,1.969,1.969c0,0.803-0.482,1.491-1.172,1.797l1.203,3.609H13.5zM22.03,16.549c-0.399-0.152-0.687-0.533-0.687-0.986s0.287-0.834,0.687-0.987V16.549zM22.781,16.549v-1.973c0.4,0.152,0.688,0.533,0.688,0.987S23.182,16.397,22.781,16.549z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Locked\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Locked();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Magic.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Magic.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Magic = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Magic\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.043,4.649l-0.404-2.312l-1.59,1.727l-2.323-0.33l1.151,2.045l-1.032,2.108l2.302-0.463l1.686,1.633l0.271-2.332l2.074-1.099L23.043,4.649zM26.217,18.198l-0.182-1.25l-0.882,0.905l-1.245-0.214l0.588,1.118l-0.588,1.118l1.245-0.214l0.882,0.905l0.182-1.25l1.133-0.56L26.217,18.198zM4.92,7.672L5.868,7.3l0.844,0.569L6.65,6.853l0.802-0.627L6.467,5.97L6.118,5.013L5.571,5.872L4.553,5.908l0.647,0.786L4.92,7.672zM10.439,10.505l1.021-1.096l1.481,0.219l-0.727-1.31l0.667-1.341l-1.47,0.287l-1.069-1.048L10.16,7.703L8.832,8.396l1.358,0.632L10.439,10.505zM17.234,12.721c-0.588-0.368-1.172-0.618-1.692-0.729c-0.492-0.089-1.039-0.149-1.425,0.374L2.562,30.788h6.68l9.669-15.416c0.303-0.576,0.012-1.041-0.283-1.447C18.303,13.508,17.822,13.09,17.234,12.721zM13.613,21.936c-0.254-0.396-0.74-0.857-1.373-1.254c-0.632-0.396-1.258-0.634-1.726-0.69l4.421-7.052c0.064-0.013,0.262-0.021,0.543,0.066c0.346,0.092,0.785,0.285,1.225,0.562c0.504,0.313,0.908,0.677,1.133,0.97c0.113,0.145,0.178,0.271,0.195,0.335c0.002,0.006,0.004,0.011,0.004,0.015L13.613,21.936z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Magic\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Magic();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Magnet.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Magnet.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Magnet = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Magnet\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.812,19.5h5.002v-6.867c-0.028-1.706-0.61-3.807-2.172-5.841c-1.539-2.014-4.315-3.72-7.939-3.687C12.076,3.073,9.3,4.779,7.762,6.792C6.2,8.826,5.617,10.928,5.588,12.634V19.5h5v-6.866c-0.027-0.377,0.303-1.789,1.099-2.748c0.819-0.979,1.848-1.747,4.014-1.778c2.165,0.032,3.195,0.799,4.013,1.778c0.798,0.959,1.126,2.372,1.099,2.748V19.5L20.812,19.5zM25.814,25.579c0,0,0-2.354,0-5.079h-5.002c0,2.727,0,5.08,0,5.08l5.004-0.001H25.814zM5.588,25.58h5c0,0,0-2.354,0-5.08h-5C5.588,23.227,5.588,25.58,5.588,25.58z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Magnet\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Magnet();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Mail.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Mail.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Mail = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Mail\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.516,7.167H3.482l12.517,7.108L28.516,7.167zM16.74,17.303C16.51,17.434,16.255,17.5,16,17.5s-0.51-0.066-0.741-0.197L2.5,10.06v14.773h27V10.06L16.74,17.303z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Mail\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Mail();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Man.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Man.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Man = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Man\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.021,16.349c-0.611-1.104-1.359-1.998-2.109-2.623c-0.875,0.641-1.941,1.031-3.103,1.031c-1.164,0-2.231-0.391-3.105-1.031c-0.75,0.625-1.498,1.519-2.111,2.623c-1.422,2.563-1.578,5.192-0.35,5.874c0.55,0.307,1.127,0.078,1.723-0.496c-0.105,0.582-0.166,1.213-0.166,1.873c0,2.932,1.139,5.307,2.543,5.307c0.846,0,1.265-0.865,1.466-2.189c0.201,1.324,0.62,2.189,1.463,2.189c1.406,0,2.545-2.375,2.545-5.307c0-0.66-0.061-1.291-0.168-1.873c0.598,0.574,1.174,0.803,1.725,0.496C22.602,21.541,22.443,18.912,21.021,16.349zM15.808,13.757c2.362,0,4.278-1.916,4.278-4.279s-1.916-4.279-4.278-4.279c-2.363,0-4.28,1.916-4.28,4.279S13.445,13.757,15.808,13.757z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Man\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Man();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Merge.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Merge.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Merge = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Merge\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M29.342,15.5l-7.556-4.363v2.613h-1.411c-0.788-0.01-1.331-0.241-2.019-0.743c-1.021-0.745-2.094-2.181-3.551-3.568C13.367,8.06,11.291,6.73,8.5,6.749H2.812v3.5H8.5c2.231,0.012,3.441,1.185,5.07,2.934c0.697,0.753,1.428,1.58,2.324,2.323c-1.396,1.165-2.412,2.516-3.484,3.501c-1.183,1.081-2.202,1.723-3.912,1.741H2.813v3.5h5.716c3.752,0.001,6.035-2.319,7.619-4.066c0.817-0.895,1.537-1.691,2.209-2.191c0.686-0.502,1.23-0.732,2.017-0.742h1.412v2.614L29.342,15.5z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Merge\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Merge();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Mic.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Mic.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Mic = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Mic\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,21.125c2.682,0,4.875-2.25,4.875-5V5.875c0-2.75-2.193-5-4.875-5s-4.875,2.25-4.875,5v10.25C10.625,18.875,12.818,21.125,15.5,21.125zM21.376,11v5.125c0,3.308-2.636,6-5.876,6s-5.875-2.691-5.875-6V11H6.626v5.125c0,4.443,3.194,8.132,7.372,8.861v2.139h-3.372v3h9.749v-3h-3.376v-2.139c4.181-0.727,7.375-4.418,7.375-8.861V11H21.376z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Mic\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Mic();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/MicMute.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/MicMute.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.MicMute = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.MicMute\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M10.121,18.529c-0.317-0.736-0.496-1.549-0.496-2.404V11H6.626v5.125c0,1.693,0.466,3.275,1.272,4.627L10.121,18.529zM20.375,8.276V5.875c0-2.75-2.193-5-4.875-5s-4.875,2.25-4.875,5v10.25c0,0.568,0.113,1.105,0.285,1.615L20.375,8.276zM21.376,12.931v3.195c0,3.308-2.636,6-5.876,6c-0.958,0-1.861-0.24-2.661-0.657l-2.179,2.179c0.995,0.659,2.123,1.128,3.338,1.34v2.139h-3.372v3h9.749v-3h-3.376v-2.139c4.181-0.727,7.375-4.418,7.375-8.861V11h-1.068L21.376,12.931zM20.375,16.125v-2.194l-6.788,6.788c0.588,0.26,1.234,0.405,1.913,0.405C18.182,21.125,20.375,18.875,20.375,16.125zM25.542,4.522L4.855,25.209l1.415,1.416L26.956,5.937L25.542,4.522z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.MicMute\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.MicMute();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Minus.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Minus.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Minus = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Minus\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.979,12.896,5.979,12.896,5.979,19.562,25.979,19.562z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Minus\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Minus();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/NewWindow.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/NewWindow.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.NewWindow = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.NewWindow\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M5.896,5.333V21.25h23.417V5.333H5.896zM26.312,18.25H8.896V8.334h17.417V18.25L26.312,18.25zM4.896,9.542H1.687v15.917h23.417V22.25H4.896V9.542z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.NewWindow\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.NewWindow();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/No.js\":\n/*!******************************!*\\\n !*** ./src/shape/icon/No.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.No = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.No\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,2.939C9.006,2.942,3.338,8.61,3.335,15.605C3.335,22.6,9.005,28.268,16,28.27c6.994-0.002,12.662-5.67,12.664-12.664C28.663,8.61,22.995,2.939,16,2.939zM25.663,15.605c-0.003,1.943-0.583,3.748-1.569,5.264L10.736,7.513c1.515-0.988,3.32-1.569,5.265-1.573C21.337,5.951,25.654,10.269,25.663,15.605zM6.335,15.605c0.004-1.943,0.584-3.75,1.573-5.266l13.355,13.357c-1.516,0.986-3.32,1.566-5.264,1.569C10.664,25.26,6.346,20.941,6.335,15.605z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.No\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.No();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/NoMagnet.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/NoMagnet.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.NoMagnet = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.NoMagnet\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M10.59,17.857v-5.225c-0.027-0.376,0.303-1.789,1.099-2.748c0.819-0.979,1.849-1.748,4.014-1.778c1.704,0.026,2.699,0.508,3.447,1.189l3.539-3.539c-1.616-1.526-4.01-2.679-6.986-2.652C12.077,3.073,9.3,4.779,7.762,6.793C6.2,8.826,5.617,10.928,5.59,12.634V19.5h3.357L10.59,17.857zM5.59,20.5v2.357L7.947,20.5H5.59zM20.812,13.29v6.21h5.002v-6.866c-0.021-1.064-0.252-2.283-0.803-3.542L20.812,13.29zM25.339,4.522L4.652,25.209l1.415,1.416L26.753,5.937L25.339,4.522zM20.812,25.58h5.002c0,0,0-2.354,0-5.08h-5.002C20.812,23.227,20.812,25.58,20.812,25.58zM10.59,25.58c0,0,0-0.827,0-2.064L8.525,25.58H10.59z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.NoMagnet\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.NoMagnet();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/NodeJs.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/NodeJs.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.NodeJs = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.NodeJs\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.783,4.458L2.59,3.196C2.553,3.174,2.511,3.163,2.469,3.161H2.447C2.405,3.163,2.363,3.174,2.326,3.196L0.133,4.458C0.051,4.505,0,4.593,0,4.688l0.005,3.398c0,0.047,0.024,0.092,0.066,0.114c0.041,0.024,0.091,0.024,0.132,0l1.303-0.746c0.083-0.049,0.132-0.136,0.132-0.229V5.637c0-0.095,0.05-0.183,0.132-0.229l0.555-0.32c0.041-0.023,0.086-0.035,0.132-0.035c0.045,0,0.092,0.012,0.132,0.035l0.555,0.32c0.082,0.047,0.133,0.135,0.133,0.229v1.588c0,0.094,0.051,0.182,0.132,0.229l1.303,0.746c0.041,0.024,0.092,0.024,0.132,0c0.041-0.022,0.066-0.067,0.066-0.114l0.004-3.398C4.915,4.593,4.865,4.505,4.783,4.458zM17.93,0.745l-1.305-0.729c-0.042-0.023-0.091-0.022-0.132,0.001c-0.041,0.024-0.065,0.067-0.065,0.114v3.365c0,0.033-0.018,0.064-0.046,0.081s-0.064,0.017-0.093,0l-0.549-0.316c-0.082-0.047-0.183-0.047-0.265,0l-2.193,1.266c-0.082,0.047-0.133,0.135-0.133,0.229V7.29c0,0.095,0.051,0.182,0.132,0.229l2.194,1.267c0.082,0.048,0.183,0.048,0.265,0l2.194-1.267c0.082-0.048,0.133-0.135,0.133-0.229V0.977C18.066,0.88,18.014,0.792,17.93,0.745zM16.421,6.458c0,0.023-0.013,0.045-0.033,0.057l-0.753,0.435c-0.021,0.012-0.045,0.012-0.066,0l-0.753-0.435c-0.021-0.012-0.033-0.034-0.033-0.057v-0.87c0-0.023,0.013-0.045,0.033-0.058l0.753-0.435c0.021-0.012,0.045-0.012,0.066,0l0.753,0.435c0.021,0.012,0.033,0.034,0.033,0.058V6.458zM24.473,4.493l-2.18-1.266c-0.082-0.047-0.183-0.048-0.265,0l-2.193,1.266c-0.082,0.047-0.132,0.135-0.132,0.229v2.532c0,0.096,0.051,0.184,0.133,0.23l2.18,1.242c0.08,0.045,0.179,0.046,0.26,0.001l1.318-0.732c0.042-0.023,0.067-0.067,0.068-0.115c0-0.048-0.025-0.092-0.066-0.116l-2.207-1.266c-0.041-0.023-0.066-0.067-0.066-0.115V5.59c0-0.047,0.025-0.091,0.065-0.115l0.688-0.396c0.041-0.024,0.091-0.024,0.132,0l0.688,0.396c0.041,0.023,0.066,0.067,0.066,0.115v0.625c0,0.047,0.025,0.091,0.066,0.114c0.041,0.024,0.092,0.024,0.132,0l1.314-0.764c0.081-0.047,0.132-0.135,0.132-0.229V4.722C24.605,4.628,24.555,4.541,24.473,4.493zM11.363,4.48L9.169,3.214c-0.082-0.047-0.183-0.047-0.265,0L6.711,4.48C6.629,4.527,6.579,4.615,6.579,4.709v2.534c0,0.095,0.051,0.182,0.133,0.229l2.193,1.267c0.082,0.048,0.183,0.048,0.265,0l2.193-1.267c0.082-0.048,0.132-0.135,0.132-0.229V4.709C11.495,4.615,11.445,4.527,11.363,4.48zM31.019,4.382L28.95,3.187c-0.13-0.074-0.304-0.074-0.435,0l-2.068,1.195c-0.135,0.077-0.218,0.222-0.218,0.377v2.386c0,0.156,0.083,0.301,0.218,0.378l0.542,0.312c0.263,0.13,0.356,0.13,0.477,0.13c0.389,0,0.612-0.236,0.612-0.646V4.962c0-0.033-0.027-0.06-0.06-0.06h-0.263c-0.033,0-0.061,0.026-0.061,0.06v2.356c0,0.182-0.188,0.363-0.495,0.209l-0.566-0.326c-0.021-0.012-0.033-0.033-0.033-0.057V4.759c0-0.023,0.013-0.045,0.033-0.057l2.067-1.193c0.019-0.011,0.044-0.011,0.063,0l2.067,1.193c0.02,0.012,0.032,0.034,0.032,0.057v2.386c0,0.023-0.013,0.046-0.032,0.057l-2.068,1.193c-0.018,0.012-0.045,0.012-0.063,0l-0.53-0.314c-0.017-0.01-0.036-0.013-0.052-0.004c-0.146,0.083-0.175,0.094-0.312,0.143c-0.034,0.012-0.084,0.031,0.019,0.09l0.691,0.408c0.065,0.038,0.141,0.059,0.217,0.059s0.151-0.021,0.218-0.059l2.068-1.194c0.134-0.078,0.217-0.222,0.217-0.378V4.759C31.235,4.604,31.152,4.459,31.019,4.382zM29.371,6.768c-0.548,0-0.668-0.138-0.708-0.41c-0.005-0.029-0.029-0.051-0.06-0.051h-0.268c-0.033,0-0.06,0.026-0.06,0.06c0,0.349,0.189,0.765,1.095,0.765c0.655,0,1.031-0.259,1.031-0.709c0-0.447-0.302-0.566-0.938-0.65c-0.643-0.085-0.708-0.128-0.708-0.279c0-0.125,0.056-0.29,0.531-0.29c0.425,0,0.581,0.091,0.646,0.378c0.006,0.027,0.03,0.047,0.059,0.047h0.269c0.017,0,0.032-0.007,0.044-0.019c0.011-0.013,0.017-0.029,0.016-0.046c-0.042-0.493-0.37-0.723-1.032-0.723c-0.59,0-0.941,0.249-0.941,0.666c0,0.453,0.35,0.578,0.916,0.634c0.677,0.066,0.729,0.166,0.729,0.298C29.992,6.669,29.807,6.768,29.371,6.768zM22.128,5.446l-0.42,0.243c-0.016,0.009-0.025,0.026-0.025,0.044v0.486c0,0.019,0.01,0.035,0.025,0.044l0.42,0.243c0.016,0.009,0.035,0.009,0.052,0l0.421-0.243c0.016-0.009,0.025-0.025,0.025-0.044V5.733c0-0.018-0.01-0.035-0.025-0.044L22.18,5.446C22.163,5.438,22.144,5.438,22.128,5.446z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.NodeJs\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.NodeJs();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Notebook.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Notebook.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Notebook = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Notebook\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.875,1.375H8c-1.033,0-1.874,0.787-1.979,1.792h1.604c1.102,0,2,0.898,2,2c0,1.102-0.898,2-2,2H6v0.999h1.625c1.104,0,2.002,0.898,2.002,2.002c0,1.104-0.898,2.001-2.002,2.001H6v0.997h1.625c1.102,0,2,0.898,2,2c0,1.104-0.898,2.004-2,2.004H6v0.994h1.625c1.102,0,2,0.898,2,2.002s-0.898,2.002-2,2.002H6v0.997h1.624c1.104,0,2.002,0.897,2.002,2.001c0,1.104-0.898,2.002-2.002,2.002H6.004C6.027,28.252,6.91,29.125,8,29.125h16.875c1.104,0,2-0.896,2-2V3.375C26.875,2.271,25.979,1.375,24.875,1.375zM25.25,8.375c0,0.552-0.447,1-1,1H14c-0.553,0-1-0.448-1-1V4c0-0.552,0.447-1,1-1h10.25c0.553,0,1,0.448,1,1V8.375zM8.625,25.166c0-0.554-0.449-1.001-1-1.001h-3.25c-0.552,0-1,0.447-1,1.001c0,0.552,0.449,1,1,1h3.25C8.176,26.166,8.625,25.718,8.625,25.166zM4.375,6.166h3.251c0.551,0,0.999-0.448,0.999-0.999c0-0.555-0.448-1-0.999-1H4.375c-0.553,0-1,0.445-1,1C3.374,5.718,3.822,6.166,4.375,6.166zM4.375,11.167h3.25c0.553,0,1-0.448,1-1s-0.448-1-1-1h-3.25c-0.553,0-1,0.448-1,1S3.822,11.167,4.375,11.167zM4.375,16.167h3.25c0.551,0,1-0.448,1-1.001s-0.448-0.999-1-0.999h-3.25c-0.553,0-1.001,0.446-1.001,0.999S3.822,16.167,4.375,16.167zM3.375,20.165c0,0.553,0.446,1.002,1,1.002h3.25c0.551,0,1-0.449,1-1.002c0-0.552-0.448-1-1-1h-3.25C3.821,19.165,3.375,19.613,3.375,20.165z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Notebook\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Notebook();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Noview.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Noview.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Noview = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Noview\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M11.478,17.568c-0.172-0.494-0.285-1.017-0.285-1.568c0-2.65,2.158-4.807,4.807-4.807c0.552,0,1.074,0.113,1.568,0.285l2.283-2.283C18.541,8.647,17.227,8.286,16,8.286C8.454,8.286,2.5,16,2.5,16s2.167,2.791,5.53,5.017L11.478,17.568zM23.518,11.185l-3.056,3.056c0.217,0.546,0.345,1.138,0.345,1.76c0,2.648-2.158,4.807-4.807,4.807c-0.622,0-1.213-0.128-1.76-0.345l-2.469,2.47c1.327,0.479,2.745,0.783,4.229,0.783c5.771,0,13.5-7.715,13.5-7.715S26.859,13.374,23.518,11.185zM25.542,4.917L4.855,25.604L6.27,27.02L26.956,6.332L25.542,4.917z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Noview\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Noview();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Opera.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Opera.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Opera = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Opera\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.954,2.046c-7.489,0-12.872,5.432-12.872,13.581c0,7.25,5.234,13.835,12.873,13.835c7.712,0,12.974-6.583,12.974-13.835C28.929,7.413,23.375,2.046,15.954,2.046zM15.952,26.548L15.952,26.548c-2.289,0-3.49-1.611-4.121-3.796c-0.284-1.037-0.458-2.185-0.563-3.341c-0.114-1.374-0.129-2.773-0.129-4.028c0-0.993,0.018-1.979,0.074-2.926c0.124-1.728,0.386-3.431,0.89-4.833c0.694-1.718,1.871-2.822,3.849-2.822c2.5,0,3.763,1.782,4.385,4.322c0.429,1.894,0.56,4.124,0.56,6.274c0,2.299-0.103,5.153-0.763,7.442C19.473,24.979,18.242,26.548,15.952,26.548z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Opera\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Opera();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Package.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Package.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Package = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Package\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M17.078,22.004l-1.758-4.129l-2.007,4.752l-7.519-3.289l0.174,3.905l9.437,4.374l10.909-5.365l-0.149-4.989L17.078,22.004zM29.454,6.619L18.521,3.383l-3.006,2.671l-3.091-2.359L1.546,8.199l3.795,3.048l-3.433,5.302l10.879,4.757l2.53-5.998l2.257,5.308l11.393-5.942l-3.105-4.709L29.454,6.619zM15.277,14.579l-9.059-3.83l9.275-4.101l9.608,3.255L15.277,14.579z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Package\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Package();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Page.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Page.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Page = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Page\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.024,5.673c-1.744-1.694-3.625-3.051-5.168-3.236c-0.084-0.012-0.171-0.019-0.263-0.021H7.438c-0.162,0-0.322,0.063-0.436,0.18C6.889,2.71,6.822,2.87,6.822,3.033v25.75c0,0.162,0.063,0.317,0.18,0.435c0.117,0.116,0.271,0.179,0.436,0.179h18.364c0.162,0,0.317-0.062,0.434-0.179c0.117-0.117,0.182-0.272,0.182-0.435V11.648C26.382,9.659,24.824,7.49,23.024,5.673zM25.184,28.164H8.052V3.646h9.542v0.002c0.416-0.025,0.775,0.386,1.05,1.326c0.25,0.895,0.313,2.062,0.312,2.871c0.002,0.593-0.027,0.991-0.027,0.991l-0.049,0.652l0.656,0.007c0.003,0,1.516,0.018,3,0.355c1.426,0.308,2.541,0.922,2.645,1.617c0.004,0.062,0.005,0.124,0.004,0.182V28.164z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Page\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Page();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Page2.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Page2.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Page2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Page2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.024,5.673c-1.744-1.694-3.625-3.051-5.168-3.236c-0.084-0.012-0.171-0.019-0.263-0.021H7.438c-0.162,0-0.322,0.063-0.436,0.18C6.889,2.71,6.822,2.87,6.822,3.033v25.75c0,0.162,0.063,0.317,0.18,0.435c0.117,0.116,0.271,0.179,0.436,0.179h18.364c0.162,0,0.317-0.062,0.434-0.179c0.117-0.117,0.182-0.272,0.182-0.435V11.648C26.382,9.659,24.824,7.49,23.024,5.673zM22.157,6.545c0.805,0.786,1.529,1.676,2.069,2.534c-0.468-0.185-0.959-0.322-1.42-0.431c-1.015-0.228-2.008-0.32-2.625-0.357c0.003-0.133,0.004-0.283,0.004-0.446c0-0.869-0.055-2.108-0.356-3.2c-0.003-0.01-0.005-0.02-0.009-0.03C20.584,5.119,21.416,5.788,22.157,6.545zM25.184,28.164H8.052V3.646h9.542v0.002c0.416-0.025,0.775,0.386,1.05,1.326c0.25,0.895,0.313,2.062,0.312,2.871c0.002,0.593-0.027,0.991-0.027,0.991l-0.049,0.652l0.656,0.007c0.003,0,1.516,0.018,3,0.355c1.426,0.308,2.541,0.922,2.645,1.617c0.004,0.062,0.005,0.124,0.004,0.182V28.164z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Page2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Page2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Pallete.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Pallete.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Pallete = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Pallete\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.653,7.25c-3.417,0-8.577,0.983-8.577,3.282c0,1.91,2.704,3.229,1.691,3.889c-1.02,0.666-2.684-1.848-4.048-1.848c-1.653,0-2.815,1.434-2.815,2.926c0,4.558,6.326,8.25,13.749,8.25c7.424,0,13.443-3.692,13.443-8.25C29.096,10.944,23.077,7.25,15.653,7.25zM10.308,13.521c0-0.645,0.887-1.166,1.98-1.166c1.093,0,1.979,0.521,1.979,1.166c0,0.644-0.886,1.166-1.979,1.166C11.195,14.687,10.308,14.164,10.308,13.521zM14.289,22.299c-1.058,0-1.914-0.68-1.914-1.518s0.856-1.518,1.914-1.518c1.057,0,1.914,0.68,1.914,1.518S15.346,22.299,14.289,22.299zM19.611,21.771c-1.057,0-1.913-0.681-1.913-1.519c0-0.84,0.856-1.521,1.913-1.521c1.059,0,1.914,0.681,1.914,1.521C21.525,21.092,20.67,21.771,19.611,21.771zM20.075,10.66c0-0.838,0.856-1.518,1.914-1.518s1.913,0.68,1.913,1.518c0,0.839-0.855,1.518-1.913,1.518C20.934,12.178,20.075,11.499,20.075,10.66zM24.275,19.482c-1.057,0-1.914-0.681-1.914-1.519s0.857-1.518,1.914-1.518c1.059,0,1.914,0.68,1.914,1.518S25.334,19.482,24.275,19.482zM25.286,15.475c-1.058,0-1.914-0.68-1.914-1.519c0-0.838,0.856-1.518,1.914-1.518c1.057,0,1.913,0.68,1.913,1.518C27.199,14.795,26.343,15.475,25.286,15.475z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Pallete\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Pallete();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Palm.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Palm.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Palm = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Palm\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.296,27.885v-2.013c0,0-0.402-1.408-1.073-2.013c-0.671-0.604-1.274-1.274-1.409-1.61c0,0-0.268,0.135-0.737-0.335s-1.812-2.616-1.812-2.616l-0.671-0.872c0,0-0.47-0.671-1.275-1.342c-0.805-0.672-0.938-0.067-1.476-0.738s0.604-1.275,1.006-1.409c0.403-0.134,1.946,0.134,2.684,0.872c0.738,0.738,0.738,0.738,0.738,0.738l1.073,1.141l0.537,0.201l0.671-1.073l-0.269-2.281c0,0-0.604-2.55-0.737-4.764c-0.135-2.214-0.47-5.703,1.006-5.837s1.007,2.55,1.073,3.489c0.067,0.938,0.806,5.232,1.208,5.568c0.402,0.335,0.671,0.066,0.671,0.066l0.402-7.514c0,0-0.479-2.438,1.073-2.549c0.939-0.067,0.872,1.543,0.872,2.147c0,0.604,0.269,7.514,0.269,7.514l0.537,0.135c0,0,0.402-2.214,0.604-3.153s0.604-2.416,0.537-3.087c-0.067-0.671-0.135-2.348,1.006-2.348s0.872,1.812,0.939,2.415s-0.134,3.153-0.134,3.757c0,0.604-0.738,3.623-0.537,3.824s2.08-2.817,2.349-3.958c0.268-1.141,0.201-3.02,1.408-2.885c1.208,0.134,0.47,2.817,0.402,3.086c-0.066,0.269-0.671,2.349-0.872,2.952s-0.805,1.476-1.006,2.013s0.402,2.349,0,4.629c-0.402,2.281-1.61,5.166-1.61,5.166l0.604,2.08c0,0-1.744,0.671-3.824,0.805C16.443,28.221,14.296,27.885,14.296,27.885z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Palm\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Palm();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Paper.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Paper.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Paper = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Paper\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.916,8.009L15.953,1.888c-0.251-0.119-0.548-0.115-0.798,0.008c-0.25,0.125-0.433,0.357-0.491,0.629c-0.002,0.01-1.04,4.83-2.578,9.636c-0.526,1.646-1.114,3.274-1.728,4.704l1.665,0.786c2-4.643,3.584-11.052,4.181-13.614l11.264,5.316c-0.346,1.513-1.233,5.223-2.42,8.927c-0.767,2.399-1.665,4.797-2.585,6.532c-0.889,1.79-1.958,2.669-2.197,2.552c-1.419,0.03-2.418-1.262-3.09-2.918c-0.32-0.803-0.53-1.63-0.657-2.246c-0.127-0.618-0.166-1.006-0.168-1.006c-0.034-0.317-0.232-0.597-0.52-0.731l-12.962-6.12c-0.301-0.142-0.654-0.11-0.925,0.081c-0.27,0.193-0.416,0.518-0.38,0.847c0.008,0.045,0.195,1.848,0.947,3.736c0.521,1.321,1.406,2.818,2.845,3.575l12.956,6.131l0.006-0.013c0.562,0.295,1.201,0.487,1.947,0.496c1.797-0.117,2.777-1.668,3.818-3.525c3-5.69,5.32-16.602,5.338-16.642C29.512,8.615,29.302,8.19,28.916,8.009z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Paper\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Paper();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Parent.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Parent.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Parent = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Parent\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.423,12.17c-0.875,0.641-1.941,1.031-3.102,1.031c-1.164,0-2.231-0.391-3.104-1.031c-0.75,0.625-1.498,1.519-2.111,2.623c-1.422,2.563-1.578,5.192-0.35,5.874c0.549,0.312,1.127,0.078,1.723-0.496c-0.105,0.582-0.166,1.213-0.166,1.873c0,2.938,1.139,5.312,2.543,5.312c0.846,0,1.265-0.865,1.466-2.188c0.2,1.314,0.62,2.188,1.461,2.188c1.396,0,2.545-2.375,2.545-5.312c0-0.66-0.062-1.291-0.168-1.873c0.6,0.574,1.176,0.812,1.726,0.496c1.227-0.682,1.068-3.311-0.354-5.874C15.921,13.689,15.173,12.795,14.423,12.17zM11.32,12.201c2.361,0,4.277-1.916,4.277-4.279s-1.916-4.279-4.277-4.279c-2.363,0-4.28,1.916-4.28,4.279S8.957,12.201,11.32,12.201zM21.987,17.671c1.508,0,2.732-1.225,2.732-2.735c0-1.51-1.225-2.735-2.732-2.735c-1.511,0-2.736,1.225-2.736,2.735C19.251,16.446,20.477,17.671,21.987,17.671zM25.318,19.327c-0.391-0.705-0.869-1.277-1.349-1.677c-0.56,0.41-1.24,0.659-1.982,0.659c-0.744,0-1.426-0.25-1.983-0.659c-0.479,0.399-0.958,0.972-1.35,1.677c-0.909,1.638-1.009,3.318-0.224,3.754c0.351,0.2,0.721,0.05,1.101-0.317c-0.067,0.372-0.105,0.775-0.105,1.197c0,1.878,0.728,3.396,1.625,3.396c0.54,0,0.808-0.553,0.937-1.398c0.128,0.841,0.396,1.398,0.934,1.398c0.893,0,1.627-1.518,1.627-3.396c0-0.422-0.04-0.825-0.107-1.197c0.383,0.367,0.752,0.52,1.104,0.317C26.328,22.646,26.227,20.965,25.318,19.327z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Parent\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Parent();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Pc.js\":\n/*!******************************!*\\\n !*** ./src/shape/icon/Pc.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Pc = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Pc\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M29.249,3.14h-9.188l-0.459,0.459v18.225l0.33,2.389H19.57v0.245h-0.307v-0.306h-0.611v0.244h-0.311v-0.367h-0.486v0.307h-1.104l-2.022-0.367v-0.92h0.858l0.302-1.47h2.728c0.188,0,0.339-0.152,0.339-0.339V7.828c0-0.187-0.149-0.338-0.339-0.338H1.591c-0.187,0-0.339,0.152-0.339,0.338V21.24c0,0.187,0.152,0.339,0.339,0.339h3.016l0.199,1.47h1.409l-3.4,3.4L2.11,27.951c0,0,2.941,1.102,6.678,1.102c3.737,0,9.679-0.857,10.476-0.857s4.84,0,4.84,0v-1.225l-0.137-1.068h1.744c-0.2,0.106-0.322,0.244-0.322,0.396v0.979c0,0.341,0.604,0.613,1.352,0.613c0.742,0,1.348-0.272,1.348-0.613v-0.979c0-0.339-0.604-0.611-1.348-0.611c-0.188,0-0.364,0.019-0.525,0.049v-0.17h-2.29l-0.055-0.432h5.382L29.249,3.14L29.249,3.14zM2.478,20.17V8.714h15.07V20.17H2.478z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Pc\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Pc();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Pen.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Pen.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Pen = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Pen\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M13.587,12.074c-0.049-0.074-0.11-0.147-0.188-0.202c-0.333-0.243-0.803-0.169-1.047,0.166c-0.244,0.336-0.167,0.805,0.167,1.048c0.303,0.22,0.708,0.167,0.966-0.091l-7.086,9.768l-2.203,7.997l6.917-4.577L26.865,4.468l-4.716-3.42l-1.52,2.096c-0.087-0.349-0.281-0.676-0.596-0.907c-0.73-0.529-1.751-0.369-2.28,0.363C14.721,6.782,16.402,7.896,13.587,12.074zM10.118,25.148L6.56,27.503l1.133-4.117L10.118,25.148zM14.309,11.861c2.183-3.225,1.975-4.099,3.843-6.962c0.309,0.212,0.664,0.287,1.012,0.269L14.309,11.861z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Pen\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Pen();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Pensil.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Pensil.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Pensil = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Pensil\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.31,2.872l-3.384-2.127c-0.854-0.536-1.979-0.278-2.517,0.576l-1.334,2.123l6.474,4.066l1.335-2.122C26.42,4.533,26.164,3.407,25.31,2.872zM6.555,21.786l6.474,4.066L23.581,9.054l-6.477-4.067L6.555,21.786zM5.566,26.952l-0.143,3.819l3.379-1.787l3.14-1.658l-6.246-3.925L5.566,26.952z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Pensil\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Pensil();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/People.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/People.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.People = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.People\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.066,20.667c1.227-0.682,1.068-3.311-0.354-5.874c-0.611-1.104-1.359-1.998-2.109-2.623c-0.875,0.641-1.941,1.031-3.102,1.031c-1.164,0-2.231-0.391-3.104-1.031c-0.75,0.625-1.498,1.519-2.111,2.623c-1.422,2.563-1.578,5.192-0.35,5.874c0.549,0.312,1.127,0.078,1.723-0.496c-0.105,0.582-0.166,1.213-0.166,1.873c0,2.938,1.139,5.312,2.543,5.312c0.846,0,1.265-0.865,1.466-2.188c0.2,1.314,0.62,2.188,1.461,2.188c1.396,0,2.545-2.375,2.545-5.312c0-0.66-0.062-1.291-0.168-1.873C19.939,20.745,20.516,20.983,21.066,20.667zM15.5,12.201c2.361,0,4.277-1.916,4.277-4.279S17.861,3.644,15.5,3.644c-2.363,0-4.28,1.916-4.28,4.279S13.137,12.201,15.5,12.201zM24.094,14.914c1.938,0,3.512-1.573,3.512-3.513c0-1.939-1.573-3.513-3.512-3.513c-1.94,0-3.513,1.573-3.513,3.513C20.581,13.341,22.153,14.914,24.094,14.914zM28.374,17.043c-0.502-0.907-1.116-1.641-1.732-2.154c-0.718,0.526-1.594,0.846-2.546,0.846c-0.756,0-1.459-0.207-2.076-0.55c0.496,1.093,0.803,2.2,0.861,3.19c0.093,1.516-0.381,2.641-1.329,3.165c-0.204,0.117-0.426,0.183-0.653,0.224c-0.056,0.392-0.095,0.801-0.095,1.231c0,2.412,0.935,4.361,2.088,4.361c0.694,0,1.039-0.71,1.204-1.796c0.163,1.079,0.508,1.796,1.199,1.796c1.146,0,2.09-1.95,2.09-4.361c0-0.542-0.052-1.06-0.139-1.538c0.492,0.472,0.966,0.667,1.418,0.407C29.671,21.305,29.541,19.146,28.374,17.043zM6.906,14.914c1.939,0,3.512-1.573,3.512-3.513c0-1.939-1.573-3.513-3.512-3.513c-1.94,0-3.514,1.573-3.514,3.513C3.392,13.341,4.966,14.914,6.906,14.914zM9.441,21.536c-1.593-0.885-1.739-3.524-0.457-6.354c-0.619,0.346-1.322,0.553-2.078,0.553c-0.956,0-1.832-0.321-2.549-0.846c-0.616,0.513-1.229,1.247-1.733,2.154c-1.167,2.104-1.295,4.262-0.287,4.821c0.451,0.257,0.925,0.064,1.414-0.407c-0.086,0.479-0.136,0.996-0.136,1.538c0,2.412,0.935,4.361,2.088,4.361c0.694,0,1.039-0.71,1.204-1.796c0.165,1.079,0.509,1.796,1.201,1.796c1.146,0,2.089-1.95,2.089-4.361c0-0.432-0.04-0.841-0.097-1.233C9.874,21.721,9.651,21.656,9.441,21.536z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.People\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.People();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Phone.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Phone.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Phone = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Phone\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.065,18.53c-0.467-0.29-1.167-0.21-1.556,0.179l-3.093,3.092c-0.389,0.389-1.025,0.389-1.414,0L9.05,14.848c-0.389-0.389-0.389-1.025,0-1.414l2.913-2.912c0.389-0.389,0.447-1.075,0.131-1.524L6.792,1.485C6.476,1.036,5.863,0.948,5.433,1.29c0,0-4.134,3.281-4.134,6.295c0,12.335,10,22.334,22.334,22.334c3.015,0,5.948-5.533,5.948-5.533c0.258-0.486,0.087-1.122-0.38-1.412L22.065,18.53z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Phone\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Phone();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Photo.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Photo.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Photo = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Photo\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.25,10.25H20.5v-1.5h-9.375v1.5h-3.75c-1.104,0-2,0.896-2,2v10.375c0,1.104,0.896,2,2,2H24.25c1.104,0,2-0.896,2-2V12.25C26.25,11.146,25.354,10.25,24.25,10.25zM15.812,23.499c-3.342,0-6.06-2.719-6.06-6.061c0-3.342,2.718-6.062,6.06-6.062s6.062,2.72,6.062,6.062C21.874,20.78,19.153,23.499,15.812,23.499zM15.812,13.375c-2.244,0-4.062,1.819-4.062,4.062c0,2.244,1.819,4.062,4.062,4.062c2.244,0,4.062-1.818,4.062-4.062C19.875,15.194,18.057,13.375,15.812,13.375z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Photo\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Photo();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Picker.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Picker.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Picker = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Picker\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.221,10.853c-0.111-0.414-0.261-0.412,0.221-1.539l1.66-3.519c0.021-0.051,0.2-0.412,0.192-0.946c0.015-0.529-0.313-1.289-1.119-1.642c-1.172-0.555-1.17-0.557-2.344-1.107c-0.784-0.396-1.581-0.171-1.979,0.179c-0.42,0.333-0.584,0.7-0.609,0.75L16.58,6.545c-0.564,1.084-0.655,0.97-1.048,1.147c-0.469,0.129-1.244,0.558-1.785,1.815c-1.108,2.346-1.108,2.346-1.108,2.346l-0.276,0.586l1.17,0.553l-3.599,7.623c-0.38,0.828-0.166,1.436-0.166,2.032c0.01,0.627-0.077,1.509-0.876,3.21l-0.276,0.586l3.517,1.661l0.276-0.585c0.808-1.699,1.431-2.326,1.922-2.717c0.46-0.381,1.066-0.6,1.465-1.42l3.599-7.618l1.172,0.554l0.279-0.589c0,0,0,0,1.105-2.345C22.578,12.166,22.419,11.301,22.221,10.853zM14.623,22.83c-0.156,0.353-0.413,0.439-1.091,0.955c-0.577,0.448-1.264,1.172-2.009,2.6l-1.191-0.562c0.628-1.48,0.75-2.474,0.73-3.203c-0.031-0.851-0.128-1.104,0.045-1.449l3.599-7.621l3.517,1.662L14.623,22.83z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Picker\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Picker();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Picture.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Picture.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Picture = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Picture\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M2.5,4.833v22.334h27V4.833H2.5zM25.25,25.25H6.75V6.75h18.5V25.25zM11.25,14c1.426,0,2.583-1.157,2.583-2.583c0-1.427-1.157-2.583-2.583-2.583c-1.427,0-2.583,1.157-2.583,2.583C8.667,12.843,9.823,14,11.25,14zM24.251,16.25l-4.917-4.917l-6.917,6.917L10.5,16.333l-2.752,2.752v5.165h16.503V16.25z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Picture\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Picture();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/PieChart.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/PieChart.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.PieChart = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.PieChart\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.583,15.917l1.648-10.779C16.692,5.056,16.145,5,15.583,5C9.554,5,4.666,9.888,4.666,15.917c0,6.029,4.888,10.917,10.917,10.917S26.5,21.946,26.5,15.917c0-0.256-0.021-0.507-0.038-0.759L15.583,15.917zM19.437,3.127l-1.648,10.779l10.879-0.759C28.313,8.026,24.436,3.886,19.437,3.127z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.PieChart\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.PieChart();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Plane.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Plane.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Plane = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Plane\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M19.671,8.11l-2.777,2.777l-3.837-0.861c0.362-0.505,0.916-1.683,0.464-2.135c-0.518-0.517-1.979,0.278-2.305,0.604l-0.913,0.913L7.614,8.804l-2.021,2.021l2.232,1.061l-0.082,0.082l1.701,1.701l0.688-0.687l3.164,1.504L9.571,18.21H6.413l-1.137,1.138l3.6,0.948l1.83,1.83l0.947,3.598l1.137-1.137V21.43l3.725-3.725l1.504,3.164l-0.687,0.687l1.702,1.701l0.081-0.081l1.062,2.231l2.02-2.02l-0.604-2.689l0.912-0.912c0.326-0.326,1.121-1.789,0.604-2.306c-0.452-0.452-1.63,0.101-2.135,0.464l-0.861-3.838l2.777-2.777c0.947-0.947,3.599-4.862,2.62-5.839C24.533,4.512,20.618,7.163,19.671,8.11z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Plane\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Plane();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Plugin.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Plugin.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Plugin = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Plugin\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.33,15.836l-3.893-1.545l3.136-7.9c0.28-0.705-0.064-1.505-0.771-1.785c-0.707-0.28-1.506,0.065-1.785,0.771l-3.136,7.9l-4.88-1.937l3.135-7.9c0.281-0.706-0.064-1.506-0.77-1.786c-0.706-0.279-1.506,0.065-1.785,0.771l-3.136,7.9L8.554,8.781l-1.614,4.066l2.15,0.854l-2.537,6.391c-0.61,1.54,0.143,3.283,1.683,3.895l1.626,0.646L8.985,26.84c-0.407,1.025,0.095,2.188,1.122,2.596l0.93,0.369c1.026,0.408,2.188-0.095,2.596-1.121l0.877-2.207l1.858,0.737c1.54,0.611,3.284-0.142,3.896-1.682l2.535-6.391l1.918,0.761L26.33,15.836z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Plugin\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Plugin();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Plus.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Plus.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Plus = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Plus\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.979,12.896 19.312,12.896 19.312,6.229 12.647,6.229 12.647,12.896 5.979,12.896 5.979,19.562 12.647,19.562 12.647,26.229 19.312,26.229 19.312,19.562 25.979,19.562z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Plus\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Plus();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Power.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Power.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Power = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Power\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.542,8.354c-1.47-1.766-2.896-2.617-3.025-2.695c-0.954-0.565-2.181-0.241-2.739,0.724c-0.556,0.961-0.24,2.194,0.705,2.763c0,0,0.001,0,0.002,0.001c0.001,0,0.002,0.001,0.003,0.002c0.001,0,0.003,0.001,0.004,0.001c0.102,0.062,1.124,0.729,2.08,1.925c1.003,1.261,1.933,3.017,1.937,5.438c-0.001,2.519-1.005,4.783-2.64,6.438c-1.637,1.652-3.877,2.668-6.368,2.669c-2.491-0.001-4.731-1.017-6.369-2.669c-1.635-1.654-2.639-3.919-2.64-6.438c0.005-2.499,0.995-4.292,2.035-5.558c0.517-0.625,1.043-1.098,1.425-1.401c0.191-0.152,0.346-0.263,0.445-0.329c0.049-0.034,0.085-0.058,0.104-0.069c0.005-0.004,0.009-0.006,0.012-0.008s0.004-0.002,0.004-0.002l0,0c0.946-0.567,1.262-1.802,0.705-2.763c-0.559-0.965-1.785-1.288-2.739-0.724c-0.128,0.079-1.555,0.93-3.024,2.696c-1.462,1.751-2.974,4.511-2.97,8.157C2.49,23.775,8.315,29.664,15.5,29.667c7.186-0.003,13.01-5.892,13.012-13.155C28.516,12.864,27.005,10.105,25.542,8.354zM15.5,17.523c1.105,0,2.002-0.907,2.002-2.023h-0.001V3.357c0-1.118-0.896-2.024-2.001-2.024s-2.002,0.906-2.002,2.024V15.5C13.498,16.616,14.395,17.523,15.5,17.523z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Power\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Power();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ppt.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Ppt.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ppt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ppt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16.604,1.914c0-0.575-0.466-1.041-1.041-1.041s-1.041,0.466-1.041,1.041v1.04h2.082V1.914zM16.604,22.717h-2.082v3.207c0,0.574-4.225,4.031-4.225,4.031l2.468-0.003l2.807-2.673l3.013,2.693l2.272-0.039l-4.254-4.011V22.717L16.604,22.717zM28.566,7.113c0.86,0,1.56-0.698,1.56-1.56c0-0.861-0.698-1.56-1.56-1.56H2.561c-0.861,0-1.56,0.699-1.56,1.56c0,0.862,0.699,1.56,1.56,1.56h1.583v12.505l-0.932-0.022c-0.861,0-1.213,0.467-1.213,1.04c0,0.576,0.352,1.041,1.213,1.041h24.597c0.86,0,1.299-0.465,1.299-1.041c0-1.094-1.299-1.04-1.299-1.04l-0.804,0.109V7.113H28.566zM11.435,17.516c-3.771,0-4.194-4.191-4.194-4.191c0-4.096,4.162-4.161,4.162-4.161v4.161h4.193C15.596,17.516,11.435,17.516,11.435,17.516zM18.716,13.388h-1.071v-1.073h1.071V13.388zM18.716,10.267h-1.071V9.194h1.071V10.267zM23.314,13.388H20.26c-0.296,0-0.535-0.24-0.535-0.536c0-0.297,0.239-0.537,0.535-0.537h3.057c0.297,0,0.535,0.24,0.535,0.537C23.852,13.147,23.611,13.388,23.314,13.388zM23.314,10.267H20.26c-0.296,0-0.535-0.239-0.535-0.535c0-0.297,0.239-0.537,0.535-0.537h3.057c0.297,0,0.535,0.24,0.535,0.537C23.852,10.027,23.611,10.267,23.314,10.267z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ppt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ppt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Printer.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Printer.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Printer = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Printer\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.569,12.125h-2.12c-0.207-1.34-1.247-2.759-2.444-3.967c-1.277-1.24-2.654-2.234-3.784-2.37c-0.062-0.008-0.124-0.014-0.198-0.015H8.594c-0.119,0-0.235,0.047-0.319,0.132c-0.083,0.083-0.132,0.2-0.132,0.32v5.9H6.069c-1.104,0-2,0.896-2,2V23h4.074v2.079c0,0.118,0.046,0.23,0.132,0.318c0.086,0.085,0.199,0.131,0.319,0.131h13.445c0.118,0,0.232-0.046,0.318-0.131s0.138-0.199,0.138-0.318V23h4.074v-8.875C26.569,13.021,25.674,12.125,24.569,12.125zM21.589,24.626H9.043V21.5h12.546V24.626zM21.589,13.921c0-0.03,0-0.063-0.003-0.096c-0.015-0.068-0.062-0.135-0.124-0.2H9.043v-6.95h6.987v0.001c0.305-0.019,0.567,0.282,0.769,0.971c0.183,0.655,0.229,1.509,0.229,2.102c0.001,0.433-0.019,0.725-0.019,0.725l-0.037,0.478l0.48,0.005c0.002,0,1.109,0.014,2.196,0.26c1.044,0.226,1.86,0.675,1.938,1.184c0.003,0.045,0.003,0.091,0.003,0.133V13.921z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Printer\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Printer();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Quote.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Quote.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Quote = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Quote\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.505,5.873c-3.937,2.52-5.904,5.556-5.904,9.108c0,1.104,0.192,1.656,0.576,1.656l0.396-0.107c0.312-0.12,0.563-0.18,0.756-0.18c1.128,0,2.07,0.411,2.826,1.229c0.756,0.82,1.134,1.832,1.134,3.037c0,1.157-0.408,2.14-1.224,2.947c-0.816,0.807-1.801,1.211-2.952,1.211c-1.608,0-2.935-0.661-3.979-1.984c-1.044-1.321-1.565-2.98-1.565-4.977c0-2.259,0.443-4.327,1.332-6.203c0.888-1.875,2.243-3.57,4.067-5.085c1.824-1.514,2.988-2.272,3.492-2.272c0.336,0,0.612,0.162,0.828,0.486c0.216,0.324,0.324,0.606,0.324,0.846L14.505,5.873zM27.465,5.873c-3.937,2.52-5.904,5.556-5.904,9.108c0,1.104,0.192,1.656,0.576,1.656l0.396-0.107c0.312-0.12,0.563-0.18,0.756-0.18c1.104,0,2.04,0.411,2.808,1.229c0.769,0.82,1.152,1.832,1.152,3.037c0,1.157-0.408,2.14-1.224,2.947c-0.816,0.807-1.801,1.211-2.952,1.211c-1.608,0-2.935-0.661-3.979-1.984c-1.044-1.321-1.565-2.98-1.565-4.977c0-2.284,0.449-4.369,1.35-6.256c0.9-1.887,2.256-3.577,4.068-5.067c1.812-1.49,2.97-2.236,3.474-2.236c0.336,0,0.612,0.162,0.828,0.486c0.216,0.324,0.324,0.606,0.324,0.846L27.465,5.873z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Quote\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Quote();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Rain.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Rain.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Rain = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Rain\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.371,7.306c-0.092-3.924-3.301-7.077-7.248-7.079c-2.638,0.001-4.942,1.412-6.208,3.517c-0.595-0.327-1.28-0.517-2.01-0.517C7.626,3.229,5.772,5.033,5.689,7.293c-2.393,0.786-4.125,3.025-4.127,5.686c0,3.312,2.687,6,6,6v-0.002h15.874c3.312,0,6-2.688,6-6C29.434,10.34,27.732,8.11,25.371,7.306zM23.436,16.979H7.561c-2.209-0.006-3.997-1.792-4.001-4.001c-0.002-1.982,1.45-3.618,3.35-3.931c0.265-0.043,0.502-0.191,0.657-0.414C7.722,8.41,7.779,8.136,7.73,7.87C7.702,7.722,7.685,7.582,7.685,7.446C7.689,6.221,8.68,5.23,9.905,5.228c0.647,0,1.217,0.278,1.633,0.731c0.233,0.257,0.587,0.375,0.927,0.309c0.342-0.066,0.626-0.307,0.748-0.63c0.749-1.992,2.662-3.412,4.911-3.41c2.899,0.004,5.244,2.35,5.251,5.249c0,0.161-0.009,0.326-0.027,0.497c-0.049,0.517,0.305,0.984,0.815,1.079c1.86,0.344,3.274,1.966,3.271,3.923C27.43,15.186,25.645,16.973,23.436,16.979zM9.029,26.682c0-1.115,0.021-5.425,0.021-5.432c0.002-0.409-0.247-0.779-0.628-0.932c-0.38-0.152-0.815-0.059-1.099,0.24c-0.006,0.008-1.037,1.098-2.081,2.342c-0.523,0.627-1.048,1.287-1.463,1.896c-0.399,0.648-0.753,1.066-0.811,1.885C2.971,28.355,4.324,29.711,6,29.714C7.672,29.71,9.029,28.354,9.029,26.682zM4.971,26.727c0.091-0.349,1.081-1.719,1.993-2.764c0.025-0.029,0.051-0.061,0.076-0.089c-0.005,1.124-0.01,2.294-0.01,2.808c0,0.567-0.461,1.028-1.029,1.03C5.447,27.71,4.997,27.273,4.971,26.727zM16.425,26.682c0-1.115,0.021-5.424,0.021-5.43c0.002-0.41-0.247-0.779-0.628-0.934c-0.381-0.152-0.814-0.058-1.1,0.242c-0.006,0.008-1.035,1.094-2.08,2.342c-0.522,0.623-1.047,1.285-1.463,1.894c-0.399,0.649-0.753,1.068-0.809,1.888c0,1.672,1.354,3.028,3.029,3.028C15.068,29.711,16.425,28.354,16.425,26.682zM12.365,26.729c0.092-0.349,1.081-1.72,1.993-2.765c0.025-0.03,0.05-0.06,0.075-0.089c-0.005,1.123-0.011,2.294-0.011,2.807c-0.002,0.568-0.461,1.027-1.028,1.029C12.84,27.709,12.392,27.273,12.365,26.729zM23.271,20.317c-0.38-0.153-0.816-0.06-1.099,0.24c-0.009,0.008-1.037,1.097-2.08,2.342c-0.523,0.625-1.049,1.285-1.462,1.896c-0.402,0.649-0.754,1.067-0.812,1.886c0,1.672,1.354,3.029,3.03,3.029c1.673,0,3.027-1.357,3.027-3.029c0-1.115,0.022-5.425,0.022-5.431C23.9,20.84,23.651,20.47,23.271,20.317zM21.879,26.681c-0.004,0.568-0.463,1.027-1.031,1.029c-0.553-0.002-1.002-0.438-1.028-0.982c0.092-0.349,1.081-1.72,1.993-2.765c0.025-0.028,0.05-0.059,0.074-0.088C21.883,24.998,21.879,26.167,21.879,26.681z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Rain\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Rain();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Raphael.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Raphael.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Raphael = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Raphael\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.777,18.941c0.584-0.881,0.896-1.914,0.896-2.998c0-1.457-0.567-2.826-1.598-3.854l-6.91-6.911l-0.003,0.002c-0.985-0.988-2.35-1.6-3.851-1.6c-1.502,0-2.864,0.612-3.85,1.6H12.46l-6.911,6.911c-1.031,1.029-1.598,2.398-1.598,3.854c0,1.457,0.567,2.826,1.598,3.854l6.231,6.229c0.25,0.281,0.512,0.544,0.789,0.785c1.016,0.961,2.338,1.49,3.743,1.49c1.456,0,2.825-0.565,3.854-1.598l6.723-6.725c0.021-0.019,0.034-0.032,0.051-0.051l0.14-0.138c0.26-0.26,0.487-0.54,0.688-0.838c0.004-0.008,0.01-0.015,0.014-0.021L27.777,18.941zM26.658,15.946c0,0.678-0.197,1.326-0.561,1.879c-0.222,0.298-0.447,0.559-0.684,0.784L25.4,18.625c-1.105,1.052-2.354,1.35-3.414,1.35c-0.584,0-1.109-0.09-1.523-0.195c-2.422-0.608-5.056-2.692-6.261-5.732c0.649,0.274,1.362,0.426,2.11,0.426c2.811,0,5.129-2.141,5.415-4.877l3.924,3.925C26.301,14.167,26.658,15.029,26.658,15.946zM16.312,5.6c1.89,0,3.426,1.538,3.426,3.427c0,1.89-1.536,3.427-3.426,3.427c-1.889,0-3.426-1.537-3.426-3.427C12.886,7.138,14.423,5.6,16.312,5.6zM6.974,18.375c-0.649-0.648-1.007-1.512-1.007-2.429c0-0.917,0.357-1.78,1.007-2.428l2.655-2.656c-0.693,2.359-0.991,4.842-0.831,7.221c0.057,0.854,0.175,1.677,0.345,2.46L6.974,18.375zM11.514,11.592c0.583,4.562,4.195,9.066,8.455,10.143c0.693,0.179,1.375,0.265,2.033,0.265c0.01,0,0.02,0,0.027,0l-3.289,3.289c-0.648,0.646-1.512,1.006-2.428,1.006c-0.638,0-1.248-0.177-1.779-0.5l0.001-0.002c-0.209-0.142-0.408-0.295-0.603-0.461c-0.015-0.019-0.031-0.026-0.046-0.043l-0.665-0.664c-1.367-1.567-2.227-3.903-2.412-6.671C10.669,15.856,10.921,13.673,11.514,11.592\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Raphael\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Raphael();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ReflectH.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/ReflectH.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ReflectH = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ReflectH\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.57,20.273h0.854v-1.705H15.57V20.273zM15.57,23.686h0.854V21.98H15.57V23.686zM15.57,27.096h0.854v-1.705H15.57V27.096zM15.57,29.689h0.854V28.8H15.57V29.689zM15.57,16.865h0.854V15.16H15.57V16.865zM15.57,3.225h0.854V1.52H15.57V3.225zM15.57,6.635h0.854V4.93H15.57V6.635zM15.57,10.045h0.854V8.34H15.57V10.045zM15.57,13.455h0.854V11.75H15.57V13.455zM18.41,3.327V25.46h12.015L18.41,3.327zM19.264,6.68l9.729,17.93h-9.729V6.68zM13.535,25.46V3.327L1.521,25.46H13.535z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ReflectH\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ReflectH();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ReflectV.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/ReflectV.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ReflectV = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ReflectV\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.643,16.008v-0.854h-1.705v0.854H20.643zM24.053,16.008v-0.854h-1.705v0.854H24.053zM27.463,16.008v-0.854h-1.705v0.854H27.463zM30.059,16.008v-0.854h-0.891v0.854H30.059zM17.232,16.008v-0.854h-1.709v0.854H17.232zM3.593,16.008v-0.854H1.888v0.854H3.593zM7.003,16.008v-0.854H5.298v0.854H7.003zM10.414,16.008v-0.854H8.709v0.854H10.414zM13.824,16.008v-0.854h-1.705v0.854H13.824zM3.694,13.167h22.134V1.152L3.694,13.167zM7.048,12.314l17.929-9.729v9.729H7.048zM25.828,18.042H3.694l22.134,12.015V18.042z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ReflectV\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ReflectV();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Refresh.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Refresh.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Refresh = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Refresh\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.083,15.5c-0.009,4.739-3.844,8.574-8.583,8.583c-4.741-0.009-8.577-3.844-8.585-8.583c0.008-4.741,3.844-8.577,8.585-8.585c1.913,0,3.665,0.629,5.09,1.686l-1.782,1.783l8.429,2.256l-2.26-8.427l-1.89,1.89c-2.072-1.677-4.717-2.688-7.587-2.688C8.826,3.418,3.418,8.826,3.416,15.5C3.418,22.175,8.826,27.583,15.5,27.583S27.583,22.175,27.583,15.5H24.083z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Refresh\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Refresh();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Resize2.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Resize2.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Resize2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Resize2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M1.999,2.332v26.499H28.5V2.332H1.999zM26.499,26.832H4V12.5h8.167V4.332h14.332V26.832zM15.631,17.649l5.468,5.469l-1.208,1.206l5.482,1.469l-1.47-5.481l-1.195,1.195l-5.467-5.466l1.209-1.208l-5.482-1.469l1.468,5.48L15.631,17.649z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Resize2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Resize2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Rotate.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Rotate.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Rotate = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Rotate\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,5.27c1.914,0,3.666,0.629,5.089,1.686l-1.781,1.783l8.428,2.256l-2.26-8.427l-1.889,1.89C21.016,2.781,18.371,1.77,15.5,1.77C8.827,1.773,3.418,7.181,3.417,13.855c0.001,4.063,2.012,7.647,5.084,9.838v-4.887c-0.993-1.4-1.583-3.105-1.585-4.952C6.923,9.114,10.759,5.278,15.5,5.27zM9.5,29.23h12V12.355h-12V29.23z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Rotate\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Rotate();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ruler.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Ruler.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ruler = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ruler\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M6.63,21.796l-5.122,5.121h25.743V1.175L6.63,21.796zM18.702,10.48c0.186-0.183,0.48-0.183,0.664,0l1.16,1.159c0.184,0.183,0.186,0.48,0.002,0.663c-0.092,0.091-0.213,0.137-0.332,0.137c-0.121,0-0.24-0.046-0.33-0.137l-1.164-1.159C18.519,10.96,18.519,10.664,18.702,10.48zM17.101,12.084c0.184-0.183,0.48-0.183,0.662,0l2.156,2.154c0.184,0.183,0.184,0.48,0.002,0.661c-0.092,0.092-0.213,0.139-0.334,0.139s-0.24-0.046-0.33-0.137l-2.156-2.154C16.917,12.564,16.917,12.267,17.101,12.084zM15.497,13.685c0.184-0.183,0.48-0.183,0.664,0l1.16,1.161c0.184,0.183,0.182,0.48-0.002,0.663c-0.092,0.092-0.211,0.138-0.33,0.138c-0.121,0-0.24-0.046-0.332-0.138l-1.16-1.16C15.314,14.166,15.314,13.868,15.497,13.685zM13.896,15.288c0.184-0.183,0.48-0.181,0.664,0.002l1.158,1.159c0.183,0.184,0.183,0.48,0,0.663c-0.092,0.092-0.212,0.138-0.332,0.138c-0.119,0-0.24-0.046-0.332-0.138l-1.158-1.161C13.713,15.767,13.713,15.471,13.896,15.288zM12.293,16.892c0.183-0.184,0.479-0.184,0.663,0l2.154,2.153c0.184,0.184,0.184,0.481,0,0.665c-0.092,0.092-0.211,0.138-0.33,0.138c-0.121,0-0.242-0.046-0.334-0.138l-2.153-2.155C12.11,17.371,12.11,17.075,12.293,16.892zM10.302,24.515c-0.091,0.093-0.212,0.139-0.332,0.139c-0.119,0-0.238-0.045-0.33-0.137l-2.154-2.153c-0.184-0.183-0.184-0.479,0-0.663s0.479-0.184,0.662,0l2.154,2.153C10.485,24.036,10.485,24.332,10.302,24.515zM10.912,21.918c-0.093,0.093-0.214,0.139-0.333,0.139c-0.12,0-0.24-0.045-0.33-0.137l-1.162-1.161c-0.184-0.183-0.184-0.479,0-0.66c0.184-0.185,0.48-0.187,0.664-0.003l1.161,1.162C11.095,21.438,11.095,21.735,10.912,21.918zM12.513,20.316c-0.092,0.092-0.211,0.138-0.332,0.138c-0.119,0-0.239-0.046-0.331-0.138l-1.159-1.16c-0.184-0.184-0.184-0.48,0-0.664s0.48-0.182,0.663,0.002l1.159,1.161C12.696,19.838,12.696,20.135,12.513,20.316zM22.25,21.917h-8.67l8.67-8.67V21.917zM22.13,10.7c-0.09,0.092-0.211,0.138-0.33,0.138c-0.121,0-0.242-0.046-0.334-0.138l-1.16-1.159c-0.184-0.183-0.184-0.479,0-0.663c0.182-0.183,0.479-0.183,0.662,0l1.16,1.159C22.312,10.221,22.313,10.517,22.13,10.7zM24.726,10.092c-0.092,0.092-0.213,0.137-0.332,0.137s-0.24-0.045-0.33-0.137l-2.154-2.154c-0.184-0.183-0.184-0.481,0-0.664s0.482-0.181,0.664,0.002l2.154,2.154C24.911,9.613,24.909,9.91,24.726,10.092z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ruler\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ruler();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Run.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Run.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Run = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Run\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M17.41,20.395l-0.778-2.723c0.228-0.2,0.442-0.414,0.644-0.643l2.721,0.778c0.287-0.418,0.534-0.862,0.755-1.323l-2.025-1.96c0.097-0.288,0.181-0.581,0.241-0.883l2.729-0.684c0.02-0.252,0.039-0.505,0.039-0.763s-0.02-0.51-0.039-0.762l-2.729-0.684c-0.061-0.302-0.145-0.595-0.241-0.883l2.026-1.96c-0.222-0.46-0.469-0.905-0.756-1.323l-2.721,0.777c-0.201-0.228-0.416-0.442-0.644-0.643l0.778-2.722c-0.418-0.286-0.863-0.534-1.324-0.755l-1.96,2.026c-0.287-0.097-0.581-0.18-0.883-0.241l-0.683-2.73c-0.253-0.019-0.505-0.039-0.763-0.039s-0.51,0.02-0.762,0.039l-0.684,2.73c-0.302,0.061-0.595,0.144-0.883,0.241l-1.96-2.026C7.048,3.463,6.604,3.71,6.186,3.997l0.778,2.722C6.736,6.919,6.521,7.134,6.321,7.361L3.599,6.583C3.312,7.001,3.065,7.446,2.844,7.907l2.026,1.96c-0.096,0.288-0.18,0.581-0.241,0.883l-2.73,0.684c-0.019,0.252-0.039,0.505-0.039,0.762s0.02,0.51,0.039,0.763l2.73,0.684c0.061,0.302,0.145,0.595,0.241,0.883l-2.026,1.96c0.221,0.46,0.468,0.905,0.755,1.323l2.722-0.778c0.2,0.229,0.415,0.442,0.643,0.643l-0.778,2.723c0.418,0.286,0.863,0.533,1.323,0.755l1.96-2.026c0.288,0.097,0.581,0.181,0.883,0.241l0.684,2.729c0.252,0.02,0.505,0.039,0.763,0.039s0.51-0.02,0.763-0.039l0.683-2.729c0.302-0.061,0.596-0.145,0.883-0.241l1.96,2.026C16.547,20.928,16.992,20.681,17.41,20.395zM11.798,15.594c-1.877,0-3.399-1.522-3.399-3.399s1.522-3.398,3.399-3.398s3.398,1.521,3.398,3.398S13.675,15.594,11.798,15.594zM27.29,22.699c0.019-0.547-0.06-1.104-0.23-1.654l1.244-1.773c-0.188-0.35-0.4-0.682-0.641-0.984l-2.122,0.445c-0.428-0.364-0.915-0.648-1.436-0.851l-0.611-2.079c-0.386-0.068-0.777-0.105-1.173-0.106l-0.974,1.936c-0.279,0.054-0.558,0.128-0.832,0.233c-0.257,0.098-0.497,0.22-0.727,0.353L17.782,17.4c-0.297,0.262-0.568,0.545-0.813,0.852l0.907,1.968c-0.259,0.495-0.437,1.028-0.519,1.585l-1.891,1.06c0.019,0.388,0.076,0.776,0.164,1.165l2.104,0.519c0.231,0.524,0.541,0.993,0.916,1.393l-0.352,2.138c0.32,0.23,0.66,0.428,1.013,0.6l1.715-1.32c0.536,0.141,1.097,0.195,1.662,0.15l1.452,1.607c0.2-0.057,0.399-0.118,0.596-0.193c0.175-0.066,0.34-0.144,0.505-0.223l0.037-2.165c0.455-0.339,0.843-0.747,1.152-1.206l2.161-0.134c0.152-0.359,0.279-0.732,0.368-1.115L27.29,22.699zM23.127,24.706c-1.201,0.458-2.545-0.144-3.004-1.345s0.143-2.546,1.344-3.005c1.201-0.458,2.547,0.144,3.006,1.345C24.931,22.902,24.328,24.247,23.127,24.706z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Run\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Run();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Rw.js\":\n/*!******************************!*\\\n !*** ./src/shape/icon/Rw.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Rw = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Rw\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M5.5,15.499,15.8,21.447,15.8,15.846,25.5,21.447,25.5,9.552,15.8,15.152,15.8,9.552z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Rw\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Rw();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Safari.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Safari.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Safari = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Safari\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16.154,5.135c-0.504,0-1,0.031-1.488,0.089l-0.036-0.18c-0.021-0.104-0.06-0.198-0.112-0.283c0.381-0.308,0.625-0.778,0.625-1.306c0-0.927-0.751-1.678-1.678-1.678s-1.678,0.751-1.678,1.678c0,0.745,0.485,1.376,1.157,1.595c-0.021,0.105-0.021,0.216,0,0.328l0.033,0.167C7.645,6.95,3.712,11.804,3.712,17.578c0,6.871,5.571,12.441,12.442,12.441c6.871,0,12.441-5.57,12.441-12.441C28.596,10.706,23.025,5.135,16.154,5.135zM16.369,8.1c4.455,0,8.183,3.116,9.123,7.287l-0.576,0.234c-0.148-0.681-0.755-1.191-1.48-1.191c-0.837,0-1.516,0.679-1.516,1.516c0,0.075,0.008,0.148,0.018,0.221l-2.771-0.028c-0.054-0.115-0.114-0.226-0.182-0.333l3.399-5.11l0.055-0.083l-4.766,4.059c-0.352-0.157-0.74-0.248-1.148-0.256l0.086-0.018l-1.177-2.585c0.64-0.177,1.111-0.763,1.111-1.459c0-0.837-0.678-1.515-1.516-1.515c-0.075,0-0.147,0.007-0.219,0.018l0.058-0.634C15.357,8.141,15.858,8.1,16.369,8.1zM12.146,3.455c0-0.727,0.591-1.318,1.318-1.318c0.727,0,1.318,0.591,1.318,1.318c0,0.425-0.203,0.802-0.516,1.043c-0.183-0.123-0.413-0.176-0.647-0.13c-0.226,0.045-0.413,0.174-0.535,0.349C12.542,4.553,12.146,4.049,12.146,3.455zM7.017,17.452c0-4.443,3.098-8.163,7.252-9.116l0.297,0.573c-0.61,0.196-1.051,0.768-1.051,1.442c0,0.837,0.678,1.516,1.515,1.516c0.068,0,0.135-0.006,0.2-0.015l-0.058,2.845l0.052-0.011c-0.442,0.204-0.824,0.513-1.116,0.895l0.093-0.147l-1.574-0.603l1.172,1.239l0.026-0.042c-0.19,0.371-0.306,0.788-0.324,1.229l-0.003-0.016l-2.623,1.209c-0.199-0.604-0.767-1.041-1.438-1.041c-0.837,0-1.516,0.678-1.516,1.516c0,0.064,0.005,0.128,0.013,0.191l-0.783-0.076C7.063,18.524,7.017,17.994,7.017,17.452zM16.369,26.805c-4.429,0-8.138-3.078-9.106-7.211l0.691-0.353c0.146,0.686,0.753,1.2,1.482,1.2c0.837,0,1.515-0.679,1.515-1.516c0-0.105-0.011-0.207-0.031-0.307l2.858,0.03c0.045,0.095,0.096,0.187,0.15,0.276l-3.45,5.277l0.227-0.195l4.529-3.92c0.336,0.153,0.705,0.248,1.094,0.266l-0.019,0.004l1.226,2.627c-0.655,0.166-1.142,0.76-1.142,1.468c0,0.837,0.678,1.515,1.516,1.515c0.076,0,0.151-0.007,0.225-0.018l0.004,0.688C17.566,26.746,16.975,26.805,16.369,26.805zM18.662,26.521l-0.389-0.6c0.661-0.164,1.152-0.759,1.152-1.47c0-0.837-0.68-1.516-1.516-1.516c-0.066,0-0.13,0.005-0.193,0.014v-2.86l-0.025,0.004c0.409-0.185,0.77-0.459,1.055-0.798l1.516,0.659l-1.104-1.304c0.158-0.335,0.256-0.704,0.278-1.095l2.552-1.164c0.19,0.618,0.766,1.068,1.447,1.068c0.838,0,1.516-0.679,1.516-1.516c0-0.069-0.006-0.137-0.016-0.204l0.65,0.12c0.089,0.517,0.136,1.049,0.136,1.591C25.722,21.826,22.719,25.499,18.662,26.521z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Safari\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Safari();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ScrewDriver.js\":\n/*!***************************************!*\\\n !*** ./src/shape/icon/ScrewDriver.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ScrewDriver = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ScrewDriver\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M19.387,14.373c2.119-2.619,5.322-6.77,5.149-7.75c-0.128-0.729-0.882-1.547-1.763-2.171c-0.883-0.625-1.916-1.044-2.645-0.915c-0.98,0.173-3.786,4.603-5.521,7.49c-0.208,0.344,0.328,1.177,0.156,1.468c-0.172,0.292-1.052,0.042-1.18,0.261c-0.263,0.451-0.417,0.722-0.417,0.722s-0.553,0.823,1.163,2.163l-5.233,7.473c-0.267,0.381-1.456,0.459-1.456,0.459l-1.184,3.312l0.859,0.602l2.708-2.246c0,0-0.334-1.143-0.068-1.523l5.242-7.489c1.719,1,2.377,0.336,2.377,0.336s0.201-0.238,0.536-0.639c0.161-0.194-0.374-0.936-0.159-1.197C18.169,14.467,19.133,14.685,19.387,14.373z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ScrewDriver\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ScrewDriver();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Search.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Search.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Search = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Search\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Search\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Search();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Sencha.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Sencha.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Sencha = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Sencha\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M18.265,22.734c1.365,0.662,2.309,2.062,2.309,3.682c0,1.566-0.881,2.928-2.176,3.615l1.922-0.98c3.16-1.58,5.332-4.846,5.332-8.617c0-3.719-2.109-6.945-5.195-8.547l-6.272-3.144c-1.366-0.662-2.308-2.062-2.308-3.682c0-1.567,0.881-2.928,2.175-3.614L12.13,2.428c-3.161,1.578-5.332,4.843-5.332,8.616c0,3.718,2.108,6.944,5.195,8.546L18.265,22.734z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Sencha\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Sencha();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Settings.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Settings.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Settings = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Settings\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16.015,12.03c-2.156,0-3.903,1.747-3.903,3.903c0,2.155,1.747,3.903,3.903,3.903c0.494,0,0.962-0.102,1.397-0.27l0.836,1.285l1.359-0.885l-0.831-1.276c0.705-0.706,1.142-1.681,1.142-2.757C19.918,13.777,18.171,12.03,16.015,12.03zM16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM26.174,20.809c-0.241,0.504-0.513,0.99-0.826,1.45L22.19,21.58c-0.481,0.526-1.029,0.994-1.634,1.385l0.119,3.202c-0.507,0.23-1.028,0.421-1.569,0.57l-1.955-2.514c-0.372,0.051-0.75,0.086-1.136,0.086c-0.356,0-0.706-0.029-1.051-0.074l-1.945,2.5c-0.541-0.151-1.065-0.342-1.57-0.569l0.117-3.146c-0.634-0.398-1.208-0.88-1.712-1.427L6.78,22.251c-0.313-0.456-0.583-0.944-0.826-1.448l2.088-2.309c-0.226-0.703-0.354-1.451-0.385-2.223l-2.768-1.464c0.055-0.563,0.165-1.107,0.301-1.643l3.084-0.427c0.29-0.702,0.675-1.352,1.135-1.942L8.227,7.894c0.399-0.389,0.83-0.744,1.283-1.07l2.663,1.672c0.65-0.337,1.349-0.593,2.085-0.75l0.968-3.001c0.278-0.021,0.555-0.042,0.837-0.042c0.282,0,0.56,0.022,0.837,0.042l0.976,3.028c0.72,0.163,1.401,0.416,2.036,0.75l2.704-1.697c0.455,0.326,0.887,0.681,1.285,1.07l-1.216,2.986c0.428,0.564,0.793,1.181,1.068,1.845l3.185,0.441c0.135,0.535,0.247,1.081,0.302,1.643l-2.867,1.516c-0.034,0.726-0.15,1.43-0.355,2.1L26.174,20.809z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Settings\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Settings();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/SettingsAlt.js\":\n/*!***************************************!*\\\n !*** ./src/shape/icon/SettingsAlt.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.SettingsAlt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.SettingsAlt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM24.386,14.968c-1.451,1.669-3.706,2.221-5.685,1.586l-7.188,8.266c-0.766,0.88-2.099,0.97-2.979,0.205s-0.973-2.099-0.208-2.979l7.198-8.275c-0.893-1.865-0.657-4.164,0.787-5.824c1.367-1.575,3.453-2.151,5.348-1.674l-2.754,3.212l0.901,2.621l2.722,0.529l2.761-3.22C26.037,11.229,25.762,13.387,24.386,14.968z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.SettingsAlt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.SettingsAlt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Shuffle.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Shuffle.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Shuffle = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Shuffle\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.786,20.654c-0.618-0.195-1.407-0.703-2.291-1.587c-0.757-0.742-1.539-1.698-2.34-2.741c-0.191,0.256-0.382,0.51-0.574,0.77c-0.524,0.709-1.059,1.424-1.604,2.127c1.904,2.31,3.88,4.578,6.809,4.952v2.701l7.556-4.362l-7.556-4.362V20.654zM9.192,11.933c0.756,0.741,1.538,1.697,2.339,2.739c0.195-0.262,0.39-0.521,0.587-0.788c0.52-0.703,1.051-1.412,1.592-2.11c-2.032-2.463-4.133-4.907-7.396-5.025h-3.5v3.5h3.5C6.969,10.223,7.996,10.735,9.192,11.933zM21.786,10.341v2.535l7.556-4.363l-7.556-4.363v2.647c-1.904,0.219-3.425,1.348-4.751,2.644c-2.196,2.183-4.116,5.167-6.011,7.538c-1.867,2.438-3.741,3.888-4.712,3.771h-3.5v3.5h3.5c2.185-0.029,3.879-1.266,5.34-2.693c2.194-2.184,4.116-5.167,6.009-7.538C19.205,12.003,20.746,10.679,21.786,10.341z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Shuffle\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Shuffle();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Skull.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Skull.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Skull = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Skull\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.947,11.14c0-5.174-3.979-9.406-10.613-9.406c-6.633,0-10.282,4.232-10.282,9.406c0,5.174,1.459,4.511,1.459,7.43c0,1.095-1.061,0.564-1.061,2.919c0,2.587,3.615,2.223,4.677,3.283c1.061,1.062,0.961,3.019,0.961,3.019s0.199,0.796,0.564,0.563c0,0,0.232,0.564,0.498,0.232c0,0,0.265,0.563,0.531,0.1c0,0,0.265,0.631,0.696,0.166c0,0,0.431,0.63,0.929,0.133c0,0,0.564,0.53,1.194,0.133c0.63,0.397,1.194-0.133,1.194-0.133c0.497,0.497,0.929-0.133,0.929-0.133c0.432,0.465,0.695-0.166,0.695-0.166c0.268,0.464,0.531-0.1,0.531-0.1c0.266,0.332,0.498-0.232,0.498-0.232c0.365,0.232,0.564-0.563,0.564-0.563s-0.1-1.957,0.961-3.019c1.062-1.061,4.676-0.696,4.676-3.283c0-2.354-1.061-1.824-1.061-2.919C24.488,15.651,25.947,16.314,25.947,11.14zM10.333,20.992c-1.783,0.285-2.59-0.215-2.785-1.492c-0.508-3.328,2.555-3.866,4.079-3.683c0.731,0.088,1.99,0.862,1.99,1.825C13.617,20.229,11.992,20.727,10.333,20.992zM16.461,25.303c-0.331,0-0.862-0.431-0.895-1.227c-0.033,0.796-0.63,1.227-0.961,1.227c-0.332,0-0.83-0.331-0.863-1.127c-0.033-0.796,1.028-4.013,1.792-4.013c0.762,0,1.824,3.217,1.791,4.013S16.794,25.303,16.461,25.303zM23.361,19.5c-0.195,1.277-1.004,1.777-2.787,1.492c-1.658-0.266-3.283-0.763-3.283-3.35c0-0.963,1.258-1.737,1.99-1.825C20.805,15.634,23.869,16.172,23.361,19.5z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Skull\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Skull();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Skype.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Skype.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Skype = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Skype\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.777,18.438c0.209-0.948,0.318-1.934,0.318-2.944c0-7.578-6.144-13.722-13.724-13.722c-0.799,0-1.584,0.069-2.346,0.2C11.801,1.199,10.35,0.75,8.793,0.75c-4.395,0-7.958,3.562-7.958,7.958c0,1.47,0.399,2.845,1.094,4.024c-0.183,0.893-0.277,1.814-0.277,2.76c0,7.58,6.144,13.723,13.722,13.723c0.859,0,1.699-0.078,2.515-0.23c1.119,0.604,2.399,0.945,3.762,0.945c4.395,0,7.957-3.562,7.957-7.959C29.605,20.701,29.309,19.502,28.777,18.438zM22.412,22.051c-0.635,0.898-1.573,1.609-2.789,2.115c-1.203,0.5-2.646,0.754-4.287,0.754c-1.971,0-3.624-0.346-4.914-1.031C9.5,23.391,8.74,22.717,8.163,21.885c-0.583-0.842-0.879-1.676-0.879-2.479c0-0.503,0.192-0.939,0.573-1.296c0.375-0.354,0.857-0.532,1.432-0.532c0.471,0,0.878,0.141,1.209,0.422c0.315,0.269,0.586,0.662,0.805,1.174c0.242,0.558,0.508,1.027,0.788,1.397c0.269,0.355,0.656,0.656,1.151,0.89c0.497,0.235,1.168,0.354,1.992,0.354c1.135,0,2.064-0.241,2.764-0.721c0.684-0.465,1.016-1.025,1.016-1.711c0-0.543-0.173-0.969-0.529-1.303c-0.373-0.348-0.865-0.621-1.465-0.807c-0.623-0.195-1.47-0.404-2.518-0.623c-1.424-0.306-2.634-0.668-3.596-1.076c-0.984-0.419-1.777-1-2.357-1.727c-0.59-0.736-0.889-1.662-0.889-2.75c0-1.036,0.314-1.971,0.933-2.776c0.613-0.8,1.51-1.423,2.663-1.849c1.139-0.422,2.494-0.635,4.027-0.635c1.225,0,2.303,0.141,3.201,0.421c0.904,0.282,1.668,0.662,2.267,1.13c0.604,0.472,1.054,0.977,1.335,1.5c0.284,0.529,0.43,1.057,0.43,1.565c0,0.49-0.189,0.937-0.563,1.324c-0.375,0.391-0.851,0.589-1.408,0.589c-0.509,0-0.905-0.124-1.183-0.369c-0.258-0.227-0.523-0.58-0.819-1.09c-0.342-0.65-0.756-1.162-1.229-1.523c-0.463-0.351-1.232-0.529-2.292-0.529c-0.984,0-1.784,0.197-2.379,0.588c-0.572,0.375-0.85,0.805-0.85,1.314c0,0.312,0.09,0.574,0.273,0.799c0.195,0.238,0.471,0.447,0.818,0.621c0.36,0.182,0.732,0.326,1.104,0.429c0.382,0.106,1.021,0.263,1.899,0.466c1.11,0.238,2.131,0.506,3.034,0.793c0.913,0.293,1.703,0.654,2.348,1.072c0.656,0.429,1.178,0.979,1.547,1.635c0.369,0.658,0.558,1.471,0.558,2.416C23.371,20.119,23.049,21.148,22.412,22.051z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Skype\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Skype();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/SlideShare.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/SlideShare.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.SlideShare = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.SlideShare\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.952,12.795c-0.956,1.062-5.073,2.409-5.604,2.409h-4.513c-0.749,0-1.877,0.147-2.408,0.484c0.061,0.054,0.122,0.108,0.181,0.163c0.408,0.379,1.362,0.913,2.206,0.913c0.397,0,0.723-0.115,1-0.354c1.178-1.007,1.79-1.125,2.145-1.125c0.421,0,0.783,0.193,0.996,0.531c0.4,0.626,0.106,1.445-0.194,2.087c-0.718,1.524-3.058,3.171-5.595,3.171c-0.002,0-0.002,0-0.004,0c-0.354,0-0.701-0.033-1.033-0.099v3.251c0,0.742,1.033,2.533,4.167,2.533s3.955-3.701,3.955-4.338v-4.512c2.23-1.169,4.512-1.805,5.604-3.895C30.882,12.05,29.907,11.733,28.952,12.795zM21.942,17.521c0.796-1.699-0.053-1.699-1.54-0.425s-3.665,0.105-4.408-0.585c-0.743-0.689-1.486-1.22-2.814-1.167c-1.328,0.053-4.46-0.161-6.267-0.585c-1.805-0.425-4.895-3-5.15-2.335c-0.266,0.69,0.211,1.168,1.168,2.335c0.955,1.169,5.075,2.778,5.075,2.778s0,3.453,0,4.886c0,1.435,2.973,3.61,4.512,3.61s2.708-1.062,2.708-1.806v-4.512C17.775,21.045,21.146,19.221,21.942,17.521zM20.342,13.73c1.744,0,3.159-1.414,3.159-3.158c0-1.745-1.415-3.159-3.159-3.159s-3.158,1.414-3.158,3.159C17.184,12.316,18.598,13.73,20.342,13.73zM12.019,13.73c1.744,0,3.158-1.414,3.158-3.158c0-1.745-1.414-3.159-3.158-3.159c-1.745,0-3.159,1.414-3.159,3.159C8.86,12.316,10.273,13.73,12.019,13.73z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.SlideShare\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.SlideShare();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Smile.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Smile.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Smile = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Smile\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM20.729,7.375c0.934,0,1.688,1.483,1.688,3.312S21.661,14,20.729,14c-0.932,0-1.688-1.483-1.688-3.312S19.798,7.375,20.729,7.375zM11.104,7.375c0.932,0,1.688,1.483,1.688,3.312S12.037,14,11.104,14s-1.688-1.483-1.688-3.312S10.172,7.375,11.104,7.375zM16.021,26c-2.873,0-5.563-1.757-7.879-4.811c2.397,1.564,5.021,2.436,7.774,2.436c2.923,0,5.701-0.98,8.215-2.734C21.766,24.132,18.99,26,16.021,26z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Smile\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Smile();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Smile2.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Smile2.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Smile2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Smile2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM16,29.534C8.539,29.534,2.466,23.462,2.466,16C2.466,8.539,8.539,2.466,16,2.466c7.462,0,13.535,6.072,13.535,13.533C29.534,23.462,23.462,29.534,16,29.534zM11.104,14c0.932,0,1.688-1.483,1.688-3.312s-0.755-3.312-1.688-3.312s-1.688,1.483-1.688,3.312S10.172,14,11.104,14zM20.729,14c0.934,0,1.688-1.483,1.688-3.312s-0.756-3.312-1.688-3.312c-0.932,0-1.688,1.483-1.688,3.312S19.798,14,20.729,14zM8.143,21.189C10.458,24.243,13.148,26,16.021,26c2.969,0,5.745-1.868,8.11-5.109c-2.515,1.754-5.292,2.734-8.215,2.734C13.164,23.625,10.54,22.756,8.143,21.189z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Smile2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Smile2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Snow.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Snow.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Snow = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Snow\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.372,6.912c-0.093-3.925-3.302-7.078-7.248-7.08c-2.638,0.002-4.942,1.412-6.208,3.518c-0.595-0.327-1.28-0.518-2.01-0.518C7.627,2.834,5.773,4.639,5.69,6.898c-2.393,0.786-4.125,3.025-4.127,5.686c0,3.312,2.687,6,6,6v-0.002h15.875c3.312,0,6-2.688,6-6C29.434,9.944,27.732,7.715,25.372,6.912zM23.436,16.584H7.562c-2.209-0.006-3.997-1.793-4.001-4c-0.002-1.983,1.45-3.619,3.35-3.933c0.265-0.043,0.502-0.19,0.657-0.414C7.723,8.015,7.78,7.74,7.731,7.475C7.703,7.326,7.686,7.187,7.686,7.051c0.004-1.225,0.995-2.217,2.22-2.219c0.647,0,1.217,0.278,1.633,0.731c0.233,0.257,0.587,0.375,0.927,0.31c0.342-0.066,0.626-0.308,0.748-0.631c0.749-1.992,2.662-3.412,4.911-3.41c2.898,0.004,5.244,2.351,5.251,5.25c0,0.16-0.009,0.325-0.026,0.496c-0.05,0.518,0.305,0.984,0.814,1.079c1.859,0.345,3.273,1.966,3.271,3.923C27.43,14.791,25.645,16.578,23.436,16.584zM16.667,24.09l1.119-1.119c0.389-0.391,0.389-1.025,0-1.416c-0.392-0.391-1.025-0.391-1.415,0l-1.119,1.119l-1.119-1.119c-0.391-0.391-1.025-0.391-1.415,0c-0.391,0.391-0.391,1.025,0,1.416l1.118,1.117l-1.12,1.121c-0.389,0.393-0.389,1.021,0,1.414c0.195,0.188,0.451,0.293,0.707,0.293c0.256,0,0.512-0.104,0.708-0.293l1.12-1.119l1.12,1.119c0.195,0.188,0.451,0.293,0.708,0.293c0.256,0,0.512-0.104,0.707-0.293c0.391-0.396,0.391-1.021,0-1.414L16.667,24.09zM25.119,21.817c-0.393-0.392-1.025-0.392-1.415,0l-1.12,1.121l-1.12-1.121c-0.391-0.392-1.022-0.392-1.414,0c-0.39,0.392-0.39,1.022,0,1.416l1.119,1.119l-1.119,1.119c-0.39,0.391-0.39,1.022,0,1.413c0.195,0.195,0.451,0.294,0.707,0.294c0.257,0,0.513-0.099,0.707-0.294l1.12-1.118l1.12,1.118c0.194,0.195,0.45,0.294,0.707,0.294c0.256,0,0.513-0.099,0.708-0.294c0.389-0.391,0.389-1.022,0-1.413l-1.12-1.119l1.12-1.119C25.507,22.842,25.507,22.209,25.119,21.817zM9.334,23.953l1.119-1.119c0.389-0.394,0.389-1.021,0-1.414c-0.391-0.394-1.025-0.394-1.415,0l-1.119,1.119l-1.12-1.121c-0.391-0.39-1.023-0.39-1.415,0c-0.391,0.396-0.391,1.024,0,1.418l1.119,1.117l-1.12,1.118c-0.391,0.394-0.391,1.025,0,1.414c0.196,0.195,0.452,0.293,0.708,0.293c0.256,0,0.511-0.098,0.707-0.293l1.12-1.119l1.121,1.121c0.195,0.195,0.451,0.293,0.707,0.293s0.513-0.098,0.708-0.293c0.389-0.391,0.389-1.022,0-1.416L9.334,23.953z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Snow\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Snow();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Split.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Split.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Split = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Split\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.786,20.698c-1.792-0.237-2.912-1.331-4.358-2.886c-0.697-0.751-1.428-1.577-2.324-2.319c1.396-1.165,2.411-2.519,3.483-3.503c1.01-0.92,1.901-1.519,3.199-1.688v2.574l7.556-4.363L21.786,4.15v2.652c-3.34,0.266-5.45,2.378-6.934,4.013c-0.819,0.896-1.537,1.692-2.212,2.192c-0.685,0.501-1.227,0.731-2.013,0.742c-0.001,0-0.002,0-0.003,0H2.812v3.5h0.001v0.001c0,0,0.046-0.001,0.136-0.001h7.677c0.786,0.011,1.33,0.241,2.017,0.743c1.021,0.743,2.095,2.181,3.552,3.568c1.312,1.258,3.162,2.46,5.592,2.649v2.664l7.556-4.36l-7.556-4.361V20.698z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Split\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Split();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Star.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Star.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Star = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Star\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,22.375L7.116,28.83l3.396-10.438l-8.883-6.458l10.979,0.002L16.002,1.5l3.391,10.434h10.981l-8.886,6.457l3.396,10.439L16,22.375L16,22.375z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Star\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Star();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Star2.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Star2.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Star2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Star2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.615,4.928c0.487-0.986,1.284-0.986,1.771,0l2.249,4.554c0.486,0.986,1.775,1.923,2.864,2.081l5.024,0.73c1.089,0.158,1.335,0.916,0.547,1.684l-3.636,3.544c-0.788,0.769-1.28,2.283-1.095,3.368l0.859,5.004c0.186,1.085-0.459,1.553-1.433,1.041l-4.495-2.363c-0.974-0.512-2.567-0.512-3.541,0l-4.495,2.363c-0.974,0.512-1.618,0.044-1.432-1.041l0.858-5.004c0.186-1.085-0.307-2.6-1.094-3.368L3.93,13.977c-0.788-0.768-0.542-1.525,0.547-1.684l5.026-0.73c1.088-0.158,2.377-1.095,2.864-2.081L14.615,4.928z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Star2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Star2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Star2Off.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Star2Off.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Star2Off = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Star2Off\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.522,12.293l-5.024-0.73c-1.089-0.158-2.378-1.095-2.864-2.081l-2.249-4.554c-0.487-0.986-1.284-0.986-1.771,0l-2.247,4.554c-0.487,0.986-1.776,1.923-2.864,2.081l-5.026,0.73c-1.088,0.158-1.334,0.916-0.547,1.684l3.637,3.544c0.788,0.769,1.28,2.283,1.094,3.368l-0.858,5.004c-0.186,1.085,0.458,1.553,1.432,1.041l4.495-2.363c0.974-0.512,2.566-0.512,3.541,0l4.495,2.363c0.974,0.512,1.618,0.044,1.433-1.041l-0.859-5.004c-0.186-1.085,0.307-2.6,1.095-3.368l3.636-3.544C27.857,13.209,27.611,12.452,26.522,12.293zM22.037,16.089c-1.266,1.232-1.966,3.394-1.67,5.137l0.514,2.984l-2.679-1.409c-0.757-0.396-1.715-0.612-2.702-0.612s-1.945,0.216-2.7,0.61l-2.679,1.409l0.511-2.982c0.297-1.743-0.404-3.905-1.671-5.137l-2.166-2.112l2.995-0.435c1.754-0.255,3.592-1.591,4.373-3.175L15.5,7.652l1.342,2.716c0.781,1.583,2.617,2.92,4.369,3.173l2.992,0.435L22.037,16.089z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Star2Off\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Star2Off();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Star3.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Star3.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Star3 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Star3\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.441,28.181c-0.419,0-0.835-0.132-1.189-0.392l-5.751-4.247L9.75,27.789c-0.354,0.26-0.771,0.392-1.189,0.392c-0.412,0-0.824-0.128-1.175-0.384c-0.707-0.511-1-1.422-0.723-2.25l2.26-6.783l-5.815-4.158c-0.71-0.509-1.009-1.416-0.74-2.246c0.268-0.826,1.037-1.382,1.904-1.382c0.004,0,0.01,0,0.014,0l7.15,0.056l2.157-6.816c0.262-0.831,1.035-1.397,1.906-1.397s1.645,0.566,1.906,1.397l2.155,6.816l7.15-0.056c0.004,0,0.01,0,0.015,0c0.867,0,1.636,0.556,1.903,1.382c0.271,0.831-0.028,1.737-0.739,2.246l-5.815,4.158l2.263,6.783c0.276,0.826-0.017,1.737-0.721,2.25C23.268,28.053,22.854,28.181,22.441,28.181L22.441,28.181z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Star3\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Star3();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Star3Off.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Star3Off.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Star3Off = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Star3Off\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.631,12.359c-0.268-0.826-1.036-1.382-1.903-1.382h-0.015l-7.15,0.056l-2.155-6.816c-0.262-0.831-1.035-1.397-1.906-1.397s-1.645,0.566-1.906,1.397l-2.157,6.816l-7.15-0.056H4.273c-0.868,0-1.636,0.556-1.904,1.382c-0.27,0.831,0.029,1.737,0.74,2.246l5.815,4.158l-2.26,6.783c-0.276,0.828,0.017,1.739,0.723,2.25c0.351,0.256,0.763,0.384,1.175,0.384c0.418,0,0.834-0.132,1.189-0.392l5.751-4.247l5.751,4.247c0.354,0.26,0.771,0.392,1.189,0.392c0.412,0,0.826-0.128,1.177-0.384c0.704-0.513,0.997-1.424,0.721-2.25l-2.263-6.783l5.815-4.158C28.603,14.097,28.901,13.19,28.631,12.359zM19.712,17.996l2.729,8.184l-6.94-5.125L8.56,26.18l2.729-8.184l-7.019-5.018l8.627,0.066L15.5,4.82l2.603,8.225l8.627-0.066L19.712,17.996z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Star3Off\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Star3Off();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/StarOff.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/StarOff.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.StarOff = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.StarOff\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,22.375L7.116,28.83l3.396-10.438l-8.883-6.458l10.979,0.002L16.002,1.5l3.391,10.434h10.981l-8.886,6.457l3.396,10.439L16,22.375L16,22.375zM22.979,26.209l-2.664-8.205l6.979-5.062h-8.627L16,4.729l-2.666,8.206H4.708l6.979,5.07l-2.666,8.203L16,21.146L22.979,26.209L22.979,26.209z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.StarOff\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.StarOff();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Start.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Start.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Start = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Start\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.316,5.318,9.833,13.682,9.833,5.5,5.5,5.5,5.5,25.5,9.833,25.5,9.833,17.318,24.316,25.682z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Start\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Start();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Sticker.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Sticker.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Sticker = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Sticker\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,1.999c-1.042,0-1.916,0.377-2.57,1.088L2.895,13.138C2.302,13.784,1.999,14.58,1.999,15.5C1.999,22.943,8.057,29,15.5,29S29,22.943,29,15.5S22.943,1.999,15.5,1.999zM15.5,28C8.596,28,3,22.404,3,15.5c0-3.452,5.239-2.737,7.501-4.999C12.762,8.239,12.048,3,15.5,3C22.404,3,28,8.597,28,15.5S22.404,28,15.5,28z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Sticker\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Sticker();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Stop.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Stop.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Stop = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Stop\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M5.5,5.5h20v20h-20z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Stop\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Stop();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/StopWatch.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/StopWatch.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.StopWatch = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.StopWatch\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.216,18.533c0-3.636-1.655-6.883-4.253-9.032l0.733-0.998l0.482,0.354c0.198,0.146,0.481,0.104,0.628-0.097l0.442-0.604c0.146-0.198,0.103-0.482-0.097-0.628l-2.052-1.506c-0.199-0.146-0.481-0.103-0.628,0.097L22.03,6.724c-0.146,0.199-0.104,0.482,0.096,0.628l0.483,0.354l-0.736,1.003c-1.28-0.834-2.734-1.419-4.296-1.699c0.847-0.635,1.402-1.638,1.403-2.778h-0.002c0-1.922-1.557-3.48-3.479-3.48c-1.925,0-3.48,1.559-3.48,3.48c0,1.141,0.556,2.144,1.401,2.778c-1.549,0.277-2.99,0.857-4.265,1.68L8.424,7.684l0.484-0.353c0.198-0.145,0.245-0.428,0.098-0.628l-0.44-0.604C8.42,5.899,8.136,5.855,7.937,6.001L5.881,7.5c-0.2,0.146-0.243,0.428-0.099,0.628l0.442,0.604c0.145,0.2,0.428,0.244,0.627,0.099l0.483-0.354l0.729,0.999c-2.615,2.149-4.282,5.407-4.282,9.057c0,6.471,5.245,11.716,11.718,11.716c6.47,0,11.716-5.243,11.718-11.716H27.216zM12.918,4.231c0.002-1.425,1.155-2.58,2.582-2.582c1.426,0.002,2.579,1.157,2.581,2.582c-0.002,1.192-0.812,2.184-1.908,2.482v-1.77h0.6c0.246,0,0.449-0.203,0.449-0.449V3.746c0-0.247-0.203-0.449-0.449-0.449h-2.545c-0.247,0-0.449,0.202-0.449,0.449v0.749c0,0.246,0.202,0.449,0.449,0.449h0.599v1.77C13.729,6.415,12.919,5.424,12.918,4.231zM15.5,27.554c-4.983-0.008-9.015-4.038-9.022-9.021c0.008-4.982,4.039-9.013,9.022-9.022c4.981,0.01,9.013,4.04,9.021,9.022C24.513,23.514,20.481,27.546,15.5,27.554zM15.5,12.138c0.476,0,0.861-0.385,0.861-0.86s-0.386-0.861-0.861-0.861s-0.861,0.386-0.861,0.861S15.024,12.138,15.5,12.138zM15.5,24.927c-0.476,0-0.861,0.386-0.861,0.861s0.386,0.861,0.861,0.861s0.861-0.386,0.861-0.861S15.976,24.927,15.5,24.927zM12.618,11.818c-0.237-0.412-0.764-0.553-1.176-0.315c-0.412,0.238-0.554,0.765-0.315,1.177l2.867,6.722c0.481,0.831,1.543,1.116,2.375,0.637c0.829-0.479,1.114-1.543,0.635-2.374L12.618,11.818zM18.698,24.07c-0.412,0.237-0.555,0.765-0.316,1.176c0.237,0.412,0.764,0.554,1.176,0.315c0.413-0.238,0.553-0.765,0.316-1.176C19.635,23.974,19.108,23.832,18.698,24.07zM8.787,15.65c0.412,0.238,0.938,0.097,1.176-0.315c0.237-0.413,0.097-0.938-0.314-1.176c-0.412-0.239-0.938-0.098-1.177,0.313C8.234,14.886,8.375,15.412,8.787,15.65zM22.215,21.413c-0.412-0.236-0.938-0.096-1.176,0.316c-0.238,0.412-0.099,0.938,0.314,1.176c0.41,0.238,0.937,0.098,1.176-0.314C22.768,22.178,22.625,21.652,22.215,21.413zM9.107,18.531c-0.002-0.476-0.387-0.86-0.861-0.86c-0.477,0-0.862,0.385-0.862,0.86c0.001,0.476,0.386,0.86,0.861,0.861C8.722,19.393,9.106,19.008,9.107,18.531zM21.896,18.531c0,0.477,0.384,0.862,0.859,0.86c0.476,0.002,0.862-0.382,0.862-0.859s-0.387-0.86-0.862-0.862C22.279,17.671,21.896,18.056,21.896,18.531zM8.787,21.413c-0.412,0.238-0.554,0.765-0.316,1.176c0.239,0.412,0.765,0.553,1.177,0.316c0.413-0.239,0.553-0.765,0.315-1.178C9.725,21.317,9.198,21.176,8.787,21.413zM21.352,14.157c-0.411,0.238-0.551,0.764-0.312,1.176c0.237,0.413,0.764,0.555,1.174,0.315c0.412-0.236,0.555-0.762,0.316-1.176C22.29,14.06,21.766,13.921,21.352,14.157zM12.304,24.067c-0.413-0.235-0.939-0.096-1.176,0.315c-0.238,0.413-0.098,0.939,0.312,1.178c0.413,0.236,0.939,0.096,1.178-0.315C12.857,24.832,12.715,24.308,12.304,24.067zM18.698,12.992c0.41,0.238,0.938,0.099,1.174-0.313c0.238-0.411,0.1-0.938-0.314-1.177c-0.414-0.238-0.937-0.097-1.177,0.315C18.144,12.229,18.286,12.755,18.698,12.992z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.StopWatch\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.StopWatch();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Sun.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Sun.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Sun = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Sun\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.502,7.504c-4.35,0-7.873,3.523-7.873,7.873c0,4.347,3.523,7.872,7.873,7.872c4.346,0,7.871-3.525,7.871-7.872C23.374,11.027,19.85,7.504,15.502,7.504zM15.502,21.25c-3.244-0.008-5.866-2.63-5.874-5.872c0.007-3.243,2.63-5.866,5.874-5.874c3.242,0.008,5.864,2.631,5.871,5.874C21.366,18.62,18.744,21.242,15.502,21.25zM15.502,6.977c0.553,0,1-0.448,1-1.001V1.125c-0.002-0.553-0.448-1-1-1c-0.553,0-1.001,0.449-1,1.002v4.85C14.502,6.528,14.949,6.977,15.502,6.977zM18.715,7.615c0.125,0.053,0.255,0.076,0.382,0.077c0.394,0,0.765-0.233,0.925-0.618l1.856-4.483c0.21-0.511-0.031-1.095-0.541-1.306c-0.511-0.211-1.096,0.031-1.308,0.541L18.174,6.31C17.963,6.82,18.205,7.405,18.715,7.615zM21.44,9.436c0.195,0.194,0.451,0.293,0.707,0.293s0.512-0.098,0.707-0.293l3.43-3.433c0.391-0.39,0.39-1.023,0-1.415c-0.392-0.39-1.025-0.39-1.415,0.002L21.44,8.021C21.049,8.412,21.049,9.045,21.44,9.436zM23.263,12.16c0.158,0.385,0.531,0.617,0.923,0.617c0.127,0,0.257-0.025,0.383-0.078l4.48-1.857c0.511-0.211,0.753-0.797,0.541-1.307s-0.796-0.752-1.307-0.54l-4.481,1.857C23.292,11.064,23.051,11.65,23.263,12.16zM29.752,14.371l-4.851,0.001c-0.552,0-1,0.448-0.998,1.001c0,0.553,0.447,0.999,0.998,0.999l4.852-0.002c0.553,0,0.999-0.449,0.999-1C30.752,14.817,30.304,14.369,29.752,14.371zM29.054,19.899l-4.482-1.854c-0.512-0.212-1.097,0.03-1.307,0.541c-0.211,0.511,0.031,1.096,0.541,1.308l4.482,1.854c0.126,0.051,0.256,0.075,0.383,0.075c0.393,0,0.765-0.232,0.925-0.617C29.806,20.695,29.563,20.109,29.054,19.899zM22.86,21.312c-0.391-0.391-1.023-0.391-1.414,0.001c-0.391,0.39-0.39,1.022,0,1.413l3.434,3.429c0.195,0.195,0.45,0.293,0.706,0.293s0.513-0.098,0.708-0.293c0.391-0.392,0.389-1.025,0-1.415L22.86,21.312zM20.029,23.675c-0.211-0.511-0.796-0.752-1.307-0.541c-0.51,0.212-0.752,0.797-0.54,1.308l1.86,4.48c0.159,0.385,0.531,0.617,0.925,0.617c0.128,0,0.258-0.024,0.383-0.076c0.511-0.211,0.752-0.797,0.54-1.309L20.029,23.675zM15.512,23.778c-0.553,0-1,0.448-1,1l0.004,4.851c0,0.553,0.449,0.999,1,0.999c0.553,0,1-0.448,0.998-1l-0.003-4.852C16.511,24.226,16.062,23.777,15.512,23.778zM12.296,23.142c-0.51-0.21-1.094,0.031-1.306,0.543l-1.852,4.483c-0.21,0.511,0.033,1.096,0.543,1.307c0.125,0.052,0.254,0.076,0.382,0.076c0.392,0,0.765-0.234,0.924-0.619l1.853-4.485C13.051,23.937,12.807,23.353,12.296,23.142zM9.57,21.325c-0.392-0.391-1.025-0.389-1.415,0.002L4.729,24.76c-0.391,0.392-0.389,1.023,0.002,1.415c0.195,0.194,0.45,0.292,0.706,0.292c0.257,0,0.513-0.098,0.708-0.293l3.427-3.434C9.961,22.349,9.961,21.716,9.57,21.325zM7.746,18.604c-0.213-0.509-0.797-0.751-1.307-0.54L1.96,19.925c-0.511,0.212-0.752,0.798-0.54,1.308c0.16,0.385,0.531,0.616,0.924,0.616c0.127,0,0.258-0.024,0.383-0.076l4.479-1.861C7.715,19.698,7.957,19.113,7.746,18.604zM7.1,15.392c0-0.553-0.447-0.999-1-0.999l-4.851,0.006c-0.553,0-1.001,0.448-0.999,1.001c0.001,0.551,0.449,1,1,0.998l4.852-0.006C6.654,16.392,7.102,15.942,7.1,15.392zM1.944,10.869l4.485,1.85c0.125,0.053,0.254,0.076,0.381,0.076c0.393,0,0.766-0.232,0.925-0.618c0.212-0.511-0.032-1.097-0.544-1.306L2.708,9.021c-0.511-0.21-1.095,0.032-1.306,0.542C1.19,10.074,1.435,10.657,1.944,10.869zM8.137,9.451c0.195,0.193,0.449,0.291,0.705,0.291s0.513-0.098,0.709-0.295c0.391-0.389,0.389-1.023-0.004-1.414L6.113,4.609C5.723,4.219,5.088,4.221,4.699,4.612c-0.391,0.39-0.389,1.024,0.002,1.414L8.137,9.451zM10.964,7.084c0.16,0.384,0.532,0.615,0.923,0.615c0.128,0,0.258-0.025,0.384-0.077c0.51-0.212,0.753-0.798,0.54-1.307l-1.864-4.479c-0.212-0.51-0.798-0.751-1.308-0.539C9.129,1.51,8.888,2.096,9.1,2.605L10.964,7.084z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Sun\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Sun();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Svg.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Svg.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Svg = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Svg\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M31.274,15.989c0-2.473-2.005-4.478-4.478-4.478l0,0c0.81-0.811,1.312-1.93,1.312-3.167c0-2.474-2.005-4.479-4.479-4.479c-1.236,0-2.356,0.501-3.167,1.312c0-2.473-2.005-4.478-4.478-4.478c-2.474,0-4.479,2.005-4.479,4.478c-0.811-0.81-1.93-1.312-3.167-1.312c-2.474,0-4.479,2.005-4.479,4.479c0,1.236,0.501,2.356,1.312,3.166c-2.474,0-4.479,2.005-4.479,4.479c0,2.474,2.005,4.479,4.479,4.479c-0.811,0.81-1.312,1.93-1.312,3.167c0,2.473,2.005,4.478,4.479,4.478c1.236,0,2.356-0.501,3.167-1.312c0,2.473,2.005,4.479,4.479,4.479c2.473,0,4.478-2.006,4.478-4.479l0,0c0.811,0.811,1.931,1.312,3.167,1.312c2.474,0,4.478-2.005,4.478-4.478c0-1.237-0.501-2.357-1.312-3.168c0.001,0,0.001,0,0.001,0C29.27,20.467,31.274,18.463,31.274,15.989zM23.583,21.211c0.016,0,0.031-0.001,0.047-0.001c1.339,0,2.424,1.085,2.424,2.425c0,1.338-1.085,2.424-2.424,2.424s-2.424-1.086-2.424-2.424c0-0.017,0.001-0.031,0.001-0.047l-3.541-3.542v5.009c0.457,0.44,0.743,1.06,0.743,1.746c0,1.339-1.086,2.424-2.424,2.424c-1.339,0-2.425-1.085-2.425-2.424c0-0.687,0.286-1.306,0.743-1.746v-5.009l-3.541,3.542c0,0.016,0.001,0.031,0.001,0.047c0,1.338-1.085,2.424-2.424,2.424s-2.424-1.086-2.424-2.424c0-1.34,1.085-2.425,2.424-2.425c0.015,0,0.031,0.001,0.046,0.001l3.542-3.541H6.919c-0.44,0.458-1.06,0.743-1.746,0.743c-1.339,0-2.424-1.085-2.424-2.424s1.085-2.424,2.424-2.424c0.686,0,1.305,0.285,1.746,0.744h5.008l-3.542-3.542c-0.015,0-0.031,0.001-0.046,0.001c-1.339,0-2.424-1.085-2.424-2.424S7.001,5.92,8.34,5.92s2.424,1.085,2.424,2.424c0,0.015-0.001,0.031-0.001,0.046l3.541,3.542V6.924c-0.457-0.441-0.743-1.06-0.743-1.746c0-1.339,1.086-2.425,2.425-2.425c1.338,0,2.424,1.085,2.424,2.425c0,0.686-0.286,1.305-0.743,1.746v5.008l3.541-3.542c0-0.015-0.001-0.031-0.001-0.046c0-1.339,1.085-2.424,2.424-2.424s2.424,1.085,2.424,2.424c0,1.339-1.085,2.424-2.424,2.424c-0.016,0-0.031-0.001-0.047-0.001l-3.541,3.542h5.008c0.441-0.458,1.061-0.744,1.747-0.744c1.338,0,2.423,1.085,2.423,2.424s-1.085,2.424-2.423,2.424c-0.687,0-1.306-0.285-1.747-0.743h-5.008L23.583,21.211z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Svg\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Svg();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/TShirt.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/TShirt.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.TShirt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.TShirt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.1,4.039c-0.681,1.677-2.32,2.862-4.24,2.862c-1.921,0-3.56-1.185-4.24-2.862L1.238,8.442l2.921,6.884l3.208-1.361V28h17.099V14.015l3.093,1.312l2.922-6.884L20.1,4.039z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.TShirt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.TShirt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Tag.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Tag.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Tag = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Tag\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.263,2.826H7.904L2.702,8.028v6.359L18.405,30.09l11.561-11.562L14.263,2.826zM6.495,8.859c-0.619-0.619-0.619-1.622,0-2.24C7.114,6,8.117,6,8.736,6.619c0.62,0.62,0.619,1.621,0,2.241C8.117,9.479,7.114,9.479,6.495,8.859z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Tag\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Tag();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/TakeOff.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/TakeOff.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.TakeOff = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.TakeOff\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M10.27,19.267c0,0,9.375-1.981,16.074-8.681c0,0,1.395-1.339-1.338-1.339c-2.305,0-5.6,2.438-5.6,2.438l-9.137-1.42l-1.769,1.769l4.983,2.411l-3.001,2.035l-2.571-1.285L6.09,16.052C6.09,16.052,8.02,18.062,10.27,19.267zM3.251,23.106v1.998h24.498v-1.998H3.251z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.TakeOff\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.TakeOff();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Talke.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Talke.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Talke = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Talke\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,4.938c-7.732,0-14,4.701-14,10.5c0,1.981,0.741,3.833,2.016,5.414L2,25.272l5.613-1.44c2.339,1.316,5.237,2.106,8.387,2.106c7.732,0,14-4.701,14-10.5S23.732,4.938,16,4.938zM16.982,21.375h-1.969v-1.889h1.969V21.375zM16.982,17.469v0.625h-1.969v-0.769c0-2.321,2.641-2.689,2.641-4.337c0-0.752-0.672-1.329-1.553-1.329c-0.912,0-1.713,0.672-1.713,0.672l-1.12-1.393c0,0,1.104-1.153,3.009-1.153c1.81,0,3.49,1.121,3.49,3.009C19.768,15.437,16.982,15.741,16.982,17.469z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Talke\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Talke();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Talkq.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Talkq.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Talkq = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Talkq\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,4.938c-7.732,0-14,4.701-14,10.5c0,1.981,0.741,3.833,2.016,5.414L2,25.272l5.613-1.44c2.339,1.316,5.237,2.106,8.387,2.106c7.732,0,14-4.701,14-10.5S23.732,4.938,16,4.938zM16.868,21.375h-1.969v-1.889h1.969V21.375zM16.772,18.094h-1.777l-0.176-8.083h2.113L16.772,18.094z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Talkq\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Talkq();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Thunder.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Thunder.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Thunder = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Thunder\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.371,7.306c-0.092-3.924-3.301-7.077-7.248-7.079c-2.638,0.001-4.942,1.412-6.208,3.517c-0.595-0.327-1.28-0.517-2.01-0.517C7.626,3.229,5.772,5.033,5.689,7.293c-2.393,0.786-4.125,3.025-4.127,5.686c0,3.312,2.687,6,6,6v-0.002h5.271l-2.166,3.398l1.977-0.411L10,30.875l9.138-10.102L17,21l2.167-2.023h4.269c3.312,0,6-2.688,6-6C29.434,10.34,27.732,8.11,25.371,7.306zM23.436,16.979H7.561c-2.209-0.006-3.997-1.792-4.001-4.001c-0.002-1.982,1.45-3.618,3.35-3.931c0.265-0.043,0.502-0.191,0.657-0.414C7.722,8.41,7.779,8.136,7.73,7.87C7.702,7.722,7.685,7.582,7.685,7.446C7.689,6.221,8.68,5.23,9.905,5.228c0.647,0,1.217,0.278,1.633,0.731c0.233,0.257,0.587,0.375,0.927,0.309c0.342-0.066,0.626-0.307,0.748-0.63c0.749-1.992,2.662-3.412,4.911-3.41c2.899,0.004,5.244,2.35,5.251,5.249c0,0.161-0.009,0.326-0.027,0.497c-0.049,0.517,0.305,0.984,0.815,1.079c1.86,0.344,3.274,1.966,3.271,3.923C27.43,15.186,25.645,16.973,23.436,16.979z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Thunder\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Thunder();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Trash.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Trash.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Trash = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Trash\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.826,5.75l0.396,1.188c1.54,0.575,2.589,1.44,2.589,2.626c0,2.405-4.308,3.498-8.312,3.498c-4.003,0-8.311-1.093-8.311-3.498c0-1.272,1.21-2.174,2.938-2.746l0.388-1.165c-2.443,0.648-4.327,1.876-4.327,3.91v2.264c0,1.224,0.685,2.155,1.759,2.845l0.396,9.265c0,1.381,3.274,2.5,7.312,2.5c4.038,0,7.313-1.119,7.313-2.5l0.405-9.493c0.885-0.664,1.438-1.521,1.438-2.617V9.562C24.812,7.625,23.101,6.42,20.826,5.75zM11.093,24.127c-0.476-0.286-1.022-0.846-1.166-1.237c-1.007-2.76-0.73-4.921-0.529-7.509c0.747,0.28,1.58,0.491,2.45,0.642c-0.216,2.658-0.43,4.923,0.003,7.828C11.916,24.278,11.567,24.411,11.093,24.127zM17.219,24.329c-0.019,0.445-0.691,0.856-1.517,0.856c-0.828,0-1.498-0.413-1.517-0.858c-0.126-2.996-0.032-5.322,0.068-8.039c0.418,0.022,0.835,0.037,1.246,0.037c0.543,0,1.097-0.02,1.651-0.059C17.251,18.994,17.346,21.325,17.219,24.329zM21.476,22.892c-0.143,0.392-0.69,0.95-1.165,1.235c-0.474,0.284-0.817,0.151-0.754-0.276c0.437-2.93,0.214-5.209-0.005-7.897c0.881-0.174,1.708-0.417,2.44-0.731C22.194,17.883,22.503,20.076,21.476,22.892zM11.338,9.512c0.525,0.173,1.092-0.109,1.268-0.633h-0.002l0.771-2.316h4.56l0.771,2.316c0.14,0.419,0.53,0.685,0.949,0.685c0.104,0,0.211-0.017,0.316-0.052c0.524-0.175,0.808-0.742,0.633-1.265l-1.002-3.001c-0.136-0.407-0.518-0.683-0.945-0.683h-6.002c-0.428,0-0.812,0.275-0.948,0.683l-1,2.999C10.532,8.77,10.815,9.337,11.338,9.512z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Trash\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Trash();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Twitter.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Twitter.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Twitter = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Twitter\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.295,22.567h-7.213c-2.125,0-4.103-2.215-4.103-4.736v-1.829h11.232c1.817,0,3.291-1.469,3.291-3.281c0-1.813-1.474-3.282-3.291-3.282H11.979V6.198c0-1.835-1.375-3.323-3.192-3.323c-1.816,0-3.29,1.488-3.29,3.323v11.633c0,6.23,4.685,11.274,10.476,11.274h7.211c1.818,0,3.318-1.463,3.318-3.298S25.112,22.567,23.295,22.567z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Twitter\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Twitter();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/TwitterBird.js\":\n/*!***************************************!*\\\n !*** ./src/shape/icon/TwitterBird.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.TwitterBird = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.TwitterBird\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.605,13.11c0.913-2.851,2.029-4.698,3.313-6.038c0.959-1,1.453-1.316,0.891-0.216c0.25-0.199,0.606-0.464,0.885-0.605c1.555-0.733,1.442-0.119,0.373,0.54c2.923-1.045,2.82,0.286-0.271,0.949c2.527,0.047,5.214,1.656,5.987,5.077c0.105,0.474-0.021,0.428,0.464,0.514c1.047,0.186,2.03,0.174,2.991-0.13c-0.104,0.708-1.039,1.167-2.497,1.471c-0.541,0.112-0.651,0.083-0.005,0.229c0.799,0.179,1.69,0.226,2.634,0.182c-0.734,0.846-1.905,1.278-3.354,1.296c-0.904,3.309-2.976,5.678-5.596,7.164c-6.152,3.492-15.108,2.984-19.599-3.359c2.947,2.312,7.312,2.821,10.555-0.401c-2.125,0-2.674-1.591-0.99-2.449c-1.595-0.017-2.608-0.521-3.203-1.434c-0.226-0.347-0.229-0.374,0.14-0.64c0.405-0.293,0.958-0.423,1.528-0.467c-1.651-0.473-2.66-1.335-3.009-2.491c-0.116-0.382-0.134-0.363,0.256-0.462c0.38-0.097,0.87-0.148,1.309-0.17C6.11,10.88,5.336,9.917,5.139,8.852c-0.186-1.006,0.005-0.748,0.758-0.46C9.263,9.68,12.619,11.062,14.605,13.11L14.605,13.11z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.TwitterBird\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.TwitterBird();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Umbrella.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Umbrella.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Umbrella = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Umbrella\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.784,26.991c0,1.238-1.329,1.696-1.835,1.696c-0.504,0-1.536-0.413-1.65-1.812c0-0.354-0.288-0.642-0.644-0.642c-0.354,0-0.641,0.287-0.641,0.642c0.045,1.056,0.756,3.052,2.935,3.052c2.432,0,3.166-1.882,3.166-3.144v-8.176l-1.328-0.024C14.787,18.584,14.784,25.889,14.784,26.991zM15.584,9.804c-6.807,0-11.084,4.859-11.587,8.326c0.636-0.913,1.694-1.51,2.89-1.51c1.197,0,2.22,0.582,2.855,1.495c0.638-0.904,1.69-1.495,2.88-1.495c1.2,0,2.26,0.6,2.896,1.517c0.635-0.917,1.83-1.517,3.03-1.517c1.19,0,2.241,0.591,2.879,1.495c0.636-0.913,1.659-1.495,2.855-1.495c1.197,0,2.254,0.597,2.89,1.51C26.669,14.663,22.393,9.804,15.584,9.804zM14.733,7.125v2.081h1.323V7.125c0-0.365-0.296-0.661-0.661-0.661C15.029,6.464,14.733,6.76,14.733,7.125z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Umbrella\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Umbrella();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Undo.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Undo.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Undo = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Undo\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M12.981,9.073V6.817l-12.106,6.99l12.106,6.99v-2.422c3.285-0.002,9.052,0.28,9.052,2.269c0,2.78-6.023,4.263-6.023,4.263v2.132c0,0,13.53,0.463,13.53-9.823C29.54,9.134,17.952,8.831,12.981,9.073z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Undo\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Undo();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Unlock.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Unlock.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Unlock = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Unlock\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.375,12.833h-2.209V10c0,0,0,0,0-0.001c0-2.389,1.945-4.333,4.334-4.333c2.391,0,4.335,1.944,4.335,4.333c0,0,0,0,0,0v2.834h2V9.999h-0.001c-0.001-3.498-2.836-6.333-6.334-6.333S16.166,6.502,16.166,10v2.833H3.125V25h17.25V12.833z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Unlock\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Unlock();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Usb.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Usb.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Usb = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Usb\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,1.667L13.745,4.74h1.252v15.709L11.8,17.391c-0.205-0.26-0.351-0.601-0.358-0.952c0-1.417-0.001-2.258-0.001-2.568c0.592-0.21,1.02-0.774,1.02-1.444c0-0.849-0.682-1.538-1.521-1.538c-0.84,0-1.521,0.689-1.521,1.538c0,0.67,0.427,1.234,1.019,1.444l-0.001,2.539c0,0.688,0.373,1.409,0.812,1.868c-0.013-0.013-0.027-0.025,0,0c0.011,0.01,3.392,3.245,3.392,3.245c0.205,0.26,0.35,0.6,0.357,0.951v1.776c-1.161,0.236-2.036,1.272-2.036,2.517c0,1.418,1.137,2.566,2.539,2.566c1.403,0,2.54-1.148,2.54-2.566c0-1.244-0.875-2.28-2.038-2.517v-1.746c0-0.005,0-0.009,0-0.014v-3.861c0.008-0.35,0.152-0.689,0.358-0.949c0,0,3.38-3.234,3.392-3.245c0.027-0.026,0.012-0.013,0,0c0.438-0.459,0.811-1.181,0.811-1.869V10.12h1.02V7.046h-3.041v3.075h1.018c0,0-0.002,0.644-0.002,2.476c-0.008,0.351-0.152,0.692-0.357,0.952l-3.198,3.06V4.74h1.254L15.5,1.667z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Usb\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Usb();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/User.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/User.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.User = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.User\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.771,12.364c0,0,0.849-3.51,0-4.699c-0.85-1.189-1.189-1.981-3.058-2.548s-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.792-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.321s0.283,3.058,0.566,3.624l-0.337,0.113c-0.283,3.283,1.132,3.68,1.132,3.68c0.509,3.058,1.019,1.756,1.019,2.548s-0.51,0.51-0.51,0.51s-0.452,1.245-1.584,1.698c-1.132,0.452-7.416,2.886-7.927,3.396c-0.511,0.511-0.453,2.888-0.453,2.888h26.947c0,0,0.059-2.377-0.452-2.888c-0.512-0.511-6.796-2.944-7.928-3.396c-1.132-0.453-1.584-1.698-1.584-1.698s-0.51,0.282-0.51-0.51s0.51,0.51,1.02-2.548c0,0,1.414-0.397,1.132-3.68H20.771z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.User\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.User();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Users.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Users.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Users = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Users\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.053,20.8c-1.132-0.453-1.584-1.698-1.584-1.698s-0.51,0.282-0.51-0.51s0.51,0.51,1.02-2.548c0,0,1.414-0.397,1.132-3.68h-0.34c0,0,0.849-3.51,0-4.699c-0.85-1.189-1.189-1.981-3.058-2.548s-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.792-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.321s0.283,3.058,0.566,3.624l-0.337,0.113c-0.283,3.283,1.132,3.68,1.132,3.68c0.509,3.058,1.019,1.756,1.019,2.548s-0.51,0.51-0.51,0.51s-0.452,1.245-1.584,1.698c-1.132,0.452-7.416,2.886-7.927,3.396c-0.511,0.511-0.453,2.888-0.453,2.888h26.947c0,0,0.059-2.377-0.452-2.888C28.469,23.686,22.185,21.252,21.053,20.8zM8.583,20.628c-0.099-0.18-0.148-0.31-0.148-0.31s-0.432,0.239-0.432-0.432s0.432,0.432,0.864-2.159c0,0,1.199-0.336,0.959-3.119H9.538c0,0,0.143-0.591,0.237-1.334c-0.004-0.308,0.006-0.636,0.037-0.996l0.038-0.426c-0.021-0.492-0.107-0.939-0.312-1.226C8.818,9.619,8.53,8.947,6.947,8.467c-1.583-0.48-1.008-0.385-2.159-0.336C3.636,8.179,2.676,8.802,2.676,9.139c0,0-0.72,0.048-1.008,0.336c-0.271,0.271-0.705,1.462-0.757,1.885v0.281c0.047,0.653,0.258,2.449,0.469,2.872l-0.286,0.096c-0.239,2.783,0.959,3.119,0.959,3.119c0.432,2.591,0.864,1.488,0.864,2.159s-0.432,0.432-0.432,0.432s-0.383,1.057-1.343,1.439c-0.061,0.024-0.139,0.056-0.232,0.092v5.234h0.575c-0.029-1.278,0.077-2.927,0.746-3.594C2.587,23.135,3.754,22.551,8.583,20.628zM30.913,11.572c-0.04-0.378-0.127-0.715-0.292-0.946c-0.719-1.008-1.008-1.679-2.59-2.159c-1.584-0.48-1.008-0.385-2.16-0.336C24.72,8.179,23.76,8.802,23.76,9.139c0,0-0.719,0.048-1.008,0.336c-0.271,0.272-0.709,1.472-0.758,1.891h0.033l0.08,0.913c0.02,0.231,0.022,0.436,0.027,0.645c0.09,0.666,0.21,1.35,0.33,1.589l-0.286,0.096c-0.239,2.783,0.96,3.119,0.96,3.119c0.432,2.591,0.863,1.488,0.863,2.159s-0.432,0.432-0.432,0.432s-0.053,0.142-0.163,0.338c4.77,1.9,5.927,2.48,6.279,2.834c0.67,0.667,0.775,2.315,0.746,3.594h0.48v-5.306c-0.016-0.006-0.038-0.015-0.052-0.021c-0.959-0.383-1.343-1.439-1.343-1.439s-0.433,0.239-0.433-0.432s0.433,0.432,0.864-2.159c0,0,0.804-0.229,0.963-1.841v-1.227c-0.001-0.018-0.001-0.033-0.003-0.051h-0.289c0,0,0.215-0.89,0.292-1.861V11.572z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Users\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Users();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Video.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Video.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Video = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Video\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.188,4.875v1.094h-4.5V4.875H8.062v1.094h-4.5V4.875h-1v21.25h1v-1.094h4.5v1.094h14.625v-1.094h4.5v1.094h1.25V4.875H27.188zM8.062,23.719h-4.5v-3.125h4.5V23.719zM8.062,19.281h-4.5v-3.125h4.5V19.281zM8.062,14.844h-4.5v-3.125h4.5V14.844zM8.062,10.406h-4.5V7.281h4.5V10.406zM11.247,20.59V9.754l9.382,5.418L11.247,20.59zM27.188,23.719h-4.5v-3.125h4.5V23.719zM27.188,19.281h-4.5v-3.125h4.5V19.281zM27.188,14.844h-4.5v-3.125h4.5V14.844zM27.188,10.406h-4.5V7.281h4.5V10.406z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Video\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Video();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/View.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/View.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.View = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.View\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,8.286C8.454,8.286,2.5,16,2.5,16s5.954,7.715,13.5,7.715c5.771,0,13.5-7.715,13.5-7.715S21.771,8.286,16,8.286zM16,20.807c-2.649,0-4.807-2.157-4.807-4.807s2.158-4.807,4.807-4.807s4.807,2.158,4.807,4.807S18.649,20.807,16,20.807zM16,13.194c-1.549,0-2.806,1.256-2.806,2.806c0,1.55,1.256,2.806,2.806,2.806c1.55,0,2.806-1.256,2.806-2.806C18.806,14.451,17.55,13.194,16,13.194z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.View\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.View();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Vim.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Vim.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Vim = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Vim\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.012,10.44l4.571-4.645c0.11-0.113,0.173-0.264,0.173-0.423V3.134c0-0.159-0.064-0.314-0.177-0.427l-0.604-0.602c-0.111-0.112-0.261-0.176-0.42-0.177l-9.646-0.086C18.71,1.84,18.523,1.935,18.41,2.099L17.807,2.96c-0.033,0.047-0.059,0.099-0.076,0.154l-2.144-2.156l0,0l-1.646,1.666l-0.447-0.497c-0.112-0.125-0.27-0.197-0.438-0.199L3.324,1.756c-0.163-0.003-0.322,0.06-0.437,0.176L2.284,2.535C2.171,2.647,2.107,2.803,2.107,2.962v2.325c0,0.164,0.066,0.32,0.183,0.434l0.657,0.635C3.056,6.461,3.2,6.521,3.352,6.525l0.285,0.007l0.007,6.512l-2.527,2.557l2.533,2.533l0.008,8.084c0,0.159,0.065,0.314,0.177,0.427l0.861,0.861c0.112,0.111,0.268,0.176,0.427,0.176h2.67c0.161,0,0.317-0.064,0.43-0.181l2.378-2.417l4.9,4.9l14.47-14.558L25.012,10.44zM9.747,24.232l-2.208,2.242H5.372l-0.509-0.509L4.856,19.34l-0.008-7.515L4.842,5.943c0-0.328-0.261-0.594-0.588-0.603L3.617,5.326L3.313,5.031v-1.82l0.245-0.245l9.215,0.163l0.319,0.354l0.126,0.141v1.419l-0.352,0.362H12.26c-0.331,0-0.6,0.266-0.603,0.597l-0.076,7.203c-0.002,0.244,0.141,0.463,0.365,0.56c0.224,0.096,0.482,0.049,0.657-0.12l7.495-7.235c0.174-0.171,0.23-0.432,0.139-0.66c-0.09-0.228-0.312-0.377-0.56-0.377h-0.479l-0.296-0.379V3.496l0.312-0.445l9.083,0.081l0.252,0.252v1.743l-4.388,4.458L9.747,24.232z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Vim\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Vim();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Volume0.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Volume0.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Volume0 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Volume0\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.998,12.127v7.896h4.495l6.729,5.526l0.004-18.948l-6.73,5.526H4.998z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Volume0\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Volume0();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Volume1.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Volume1.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Volume1 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Volume1\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.998,12.127v7.896h4.495l6.729,5.526l0.004-18.948l-6.73,5.526H4.998z M18.806,11.219c-0.393-0.389-1.024-0.389-1.415,0.002c-0.39,0.391-0.39,1.024,0.002,1.416v-0.002c0.863,0.864,1.395,2.049,1.395,3.366c0,1.316-0.531,2.497-1.393,3.361c-0.394,0.389-0.394,1.022-0.002,1.415c0.195,0.195,0.451,0.293,0.707,0.293c0.257,0,0.513-0.098,0.708-0.293c1.222-1.22,1.98-2.915,1.979-4.776C20.788,14.136,20.027,12.439,18.806,11.219z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Volume1\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Volume1();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Volume2.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Volume2.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Volume2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Volume2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.998,12.127v7.896h4.495l6.729,5.526l0.004-18.948l-6.73,5.526H4.998z M18.806,11.219c-0.393-0.389-1.024-0.389-1.415,0.002c-0.39,0.391-0.39,1.024,0.002,1.416v-0.002c0.863,0.864,1.395,2.049,1.395,3.366c0,1.316-0.531,2.497-1.393,3.361c-0.394,0.389-0.394,1.022-0.002,1.415c0.195,0.195,0.451,0.293,0.707,0.293c0.257,0,0.513-0.098,0.708-0.293c1.222-1.22,1.98-2.915,1.979-4.776C20.788,14.136,20.027,12.439,18.806,11.219z M21.101,8.925c-0.393-0.391-1.024-0.391-1.413,0c-0.392,0.391-0.392,1.025,0,1.414c1.45,1.451,2.344,3.447,2.344,5.661c0,2.212-0.894,4.207-2.342,5.659c-0.392,0.39-0.392,1.023,0,1.414c0.195,0.195,0.451,0.293,0.708,0.293c0.256,0,0.512-0.098,0.707-0.293c1.808-1.809,2.929-4.315,2.927-7.073C24.033,13.24,22.912,10.732,21.101,8.925z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Volume2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Volume2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Volume3.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Volume3.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Volume3 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Volume3\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.998,12.127v7.896h4.495l6.729,5.526l0.004-18.948l-6.73,5.526H4.998z M18.806,11.219c-0.393-0.389-1.024-0.389-1.415,0.002c-0.39,0.391-0.39,1.024,0.002,1.416v-0.002c0.863,0.864,1.395,2.049,1.395,3.366c0,1.316-0.531,2.497-1.393,3.361c-0.394,0.389-0.394,1.022-0.002,1.415c0.195,0.195,0.451,0.293,0.707,0.293c0.257,0,0.513-0.098,0.708-0.293c1.222-1.22,1.98-2.915,1.979-4.776C20.788,14.136,20.027,12.439,18.806,11.219z M21.101,8.925c-0.393-0.391-1.024-0.391-1.413,0c-0.392,0.391-0.392,1.025,0,1.414c1.45,1.451,2.344,3.447,2.344,5.661c0,2.212-0.894,4.207-2.342,5.659c-0.392,0.39-0.392,1.023,0,1.414c0.195,0.195,0.451,0.293,0.708,0.293c0.256,0,0.512-0.098,0.707-0.293c1.808-1.809,2.929-4.315,2.927-7.073C24.033,13.24,22.912,10.732,21.101,8.925z M23.28,6.746c-0.393-0.391-1.025-0.389-1.414,0.002c-0.391,0.389-0.391,1.023,0.002,1.413h-0.002c2.009,2.009,3.248,4.773,3.248,7.839c0,3.063-1.239,5.828-3.246,7.838c-0.391,0.39-0.391,1.023,0.002,1.415c0.194,0.194,0.45,0.291,0.706,0.291s0.513-0.098,0.708-0.293c2.363-2.366,3.831-5.643,3.829-9.251C27.115,12.389,25.647,9.111,23.28,6.746z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Volume3\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Volume3();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Warning.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Warning.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Warning = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Warning\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M29.225,23.567l-3.778-6.542c-1.139-1.972-3.002-5.2-4.141-7.172l-3.778-6.542c-1.14-1.973-3.003-1.973-4.142,0L9.609,9.853c-1.139,1.972-3.003,5.201-4.142,7.172L1.69,23.567c-1.139,1.974-0.207,3.587,2.071,3.587h23.391C29.432,27.154,30.363,25.541,29.225,23.567zM16.536,24.58h-2.241v-2.151h2.241V24.58zM16.428,20.844h-2.023l-0.201-9.204h2.407L16.428,20.844z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Warning\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Warning();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/WheelChair.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/WheelChair.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.WheelChair = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.WheelChair\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.373,19.85c0,4.079-3.318,7.397-7.398,7.397c-4.079,0-7.398-3.318-7.398-7.397c0-2.466,1.213-4.652,3.073-5.997l-0.251-2.21c-2.875,1.609-4.825,4.684-4.825,8.207c0,5.184,4.217,9.4,9.401,9.4c4.395,0,8.093-3.031,9.117-7.111L20.37,19.73C20.37,19.771,20.373,19.81,20.373,19.85zM11.768,6.534c1.321,0,2.392-1.071,2.392-2.392c0-1.321-1.071-2.392-2.392-2.392c-1.321,0-2.392,1.071-2.392,2.392C9.375,5.463,10.446,6.534,11.768,6.534zM27.188,22.677l-5.367-7.505c-0.28-0.393-0.749-0.579-1.226-0.538c-0.035-0.003-0.071-0.006-0.106-0.006h-6.132l-0.152-1.335h4.557c0.53,0,0.96-0.429,0.96-0.959c0-0.53-0.43-0.959-0.96-0.959h-4.776l-0.25-2.192c-0.146-1.282-1.303-2.203-2.585-2.057C9.869,7.271,8.948,8.428,9.094,9.71l0.705,6.19c0.136,1.197,1.154,2.078,2.332,2.071c0.004,0,0.007,0.001,0.012,0.001h8.023l4.603,6.436c0.439,0.615,1.338,0.727,2.007,0.248C27.442,24.178,27.628,23.292,27.188,22.677z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.WheelChair\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.WheelChair();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Windows.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Windows.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Windows = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Windows\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.023,17.484c-1.732-0.205-3.022-0.908-4.212-1.701l0,0l-0.559,0.279l-2.578,8.924l0,0c1.217,0.805,2.905,1.707,4.682,1.914c2.686,0.312,5.56-0.744,6.391-1.195l2.617-9.061l-0.559-0.279C25.805,16.365,23.193,17.857,20.023,17.484zM14.424,14.825c-1.267-0.87-2.578-1.652-4.375-1.816c-0.318-0.029-0.627-0.042-0.925-0.042c-3.011,0-4.948,1.347-4.948,1.347l-2.565,8.877l0,0l0.526,0.281c0.981-0.476,2.78-1.145,5.09-0.984c1.665,0.113,2.92,0.781,4.117,1.531l0.507-0.26l0,0L14.424,14.825zM10.201,12.094c1.664,0.114,2.921,0.78,4.117,1.533l0.509-0.26l0,0L17.4,4.431c-1.27-0.87-2.579-1.653-4.377-1.816c-0.318-0.029-0.626-0.042-0.924-0.042C9.088,2.573,7.15,3.92,7.15,3.92l-2.566,8.878L5.11,13.08C6.092,12.604,7.891,11.936,10.201,12.094zM28.779,5.971L28.779,5.971c0,0.001-2.609,1.492-5.779,1.119c-1.734-0.204-3.023-0.907-4.213-1.701L18.227,5.67l-2.576,8.923l0,0c1.215,0.803,2.906,1.709,4.68,1.915c2.687,0.312,5.558-0.745,6.392-1.197l2.615-9.059L28.779,5.971z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Windows\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Windows();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Woman.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Woman.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Woman = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Woman\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.022,16.349c-0.611-1.104-1.359-1.998-2.109-2.623c-0.875,0.641-1.941,1.031-3.104,1.031c-1.164,0-2.231-0.391-3.105-1.031c-0.75,0.625-1.498,1.519-2.111,2.623c-1.422,2.563-1.579,5.192-0.351,5.874c0.55,0.307,1.127,0.078,1.723-0.496c-0.105,0.582-0.167,1.213-0.167,1.873c0,2.932,1.139,5.307,2.543,5.307c0.846,0,1.265-0.865,1.466-2.189c0.201,1.324,0.62,2.189,1.464,2.189c1.406,0,2.545-2.375,2.545-5.307c0-0.66-0.061-1.291-0.168-1.873c0.598,0.574,1.174,0.803,1.725,0.496C22.603,21.541,22.444,18.912,21.022,16.349zM15.808,13.757c2.363,0,4.279-1.916,4.279-4.279s-1.916-4.279-4.279-4.279c-2.363,0-4.28,1.916-4.28,4.279S13.445,13.757,15.808,13.757zM18.731,4.974c1.235,0.455,0.492-0.725,0.492-1.531s0.762-1.792-0.492-1.391c-1.316,0.422-2.383,0.654-2.383,1.461S17.415,4.489,18.731,4.974zM15.816,4.4c0.782,0,0.345-0.396,0.345-0.884c0-0.488,0.438-0.883-0.345-0.883s-0.374,0.396-0.374,0.883C15.442,4.005,15.034,4.4,15.816,4.4zM12.884,4.974c1.316-0.484,2.383-0.654,2.383-1.461S14.2,2.474,12.884,2.052c-1.254-0.402-0.492,0.584-0.492,1.391S11.648,5.428,12.884,4.974z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Woman\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Woman();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Wrench.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Wrench.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Wrench = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Wrench\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.834,14.693c1.816-2.088,2.181-4.938,1.193-7.334l-3.646,4.252l-3.594-0.699L19.596,7.45l3.637-4.242c-2.502-0.63-5.258,0.13-7.066,2.21c-1.907,2.193-2.219,5.229-1.039,7.693L5.624,24.04c-1.011,1.162-0.888,2.924,0.274,3.935c1.162,1.01,2.924,0.888,3.935-0.274l9.493-10.918C21.939,17.625,24.918,16.896,26.834,14.693z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Wrench\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Wrench();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Wrench2.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Wrench2.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Wrench2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Wrench2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.946,9.721l-2.872-0.768l-0.771-2.874l3.188-3.231c-1.992-0.653-4.268-0.192-5.848,1.391c-1.668,1.668-2.095,4.111-1.279,6.172l-3.476,3.478l-3.478,3.478c-2.062-0.816-4.504-0.391-6.173,1.277c-1.583,1.581-2.043,3.856-1.39,5.849l3.231-3.188l2.874,0.77l0.769,2.872l-3.239,3.197c1.998,0.665,4.288,0.207,5.876-1.384c1.678-1.678,2.1-4.133,1.271-6.202l3.463-3.464l3.464-3.463c2.069,0.828,4.523,0.406,6.202-1.272c1.592-1.589,2.049-3.878,1.384-5.876L24.946,9.721z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Wrench2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Wrench2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Wrench3.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Wrench3.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Wrench3 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Wrench3\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.839,6.775l-3.197,3.239L21.77,9.246l-0.771-2.874l3.188-3.231c-1.992-0.653-4.268-0.192-5.848,1.391c-1.668,1.668-2.095,4.111-1.279,6.172L7.42,20.344c-0.204-0.032-0.408-0.062-0.621-0.062c-2.173,0-3.933,1.759-3.933,3.933c0,2.173,1.76,3.933,3.933,3.933c2.171,0,3.931-1.76,3.933-3.933c0-0.24-0.03-0.473-0.071-0.7l9.592-9.59c2.069,0.828,4.523,0.406,6.202-1.272C28.047,11.062,28.504,8.772,27.839,6.775zM6.799,25.146c-0.517,0-0.933-0.418-0.935-0.933c0.002-0.515,0.418-0.933,0.935-0.933c0.514,0,0.932,0.418,0.932,0.933S7.313,25.146,6.799,25.146z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Wrench3\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Wrench3();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ZoomIn.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/ZoomIn.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ZoomIn = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ZoomIn\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.646,19.307c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127l3.535-3.537L22.646,19.307zM13.688,20.369c-3.582-0.008-6.478-2.904-6.484-6.484c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486C20.165,17.465,17.267,20.361,13.688,20.369zM15.687,9.051h-4v2.833H8.854v4.001h2.833v2.833h4v-2.834h2.832v-3.999h-2.833V9.051z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ZoomIn\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ZoomIn();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ZoomOut.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/ZoomOut.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ZoomOut = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ZoomOut\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.646,19.307c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127l3.535-3.537L22.646,19.307zM13.688,20.369c-3.582-0.008-6.478-2.904-6.484-6.484c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486C20.165,17.465,17.267,20.361,13.688,20.369zM8.854,11.884v4.001l9.665-0.001v-3.999L8.854,11.884z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ZoomOut\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ZoomOut();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/layout/FlexGridLayout.js\":\n/*!********************************************!*\\\n !*** ./src/shape/layout/FlexGridLayout.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.layout.FlexGridLayout\r\n *\r\n * FlexGridLayout is a powerful, flexible and precise layout manager that aligns components vertically and\r\n * horizontally in a dynamic rectangular grid of cells, with each component occupying in one or more cell.\r\n * To define a form layout you specify the form's columns, rows. Everyhing that applies to columns applies\r\n * to rows too - just with a different orientation. FlexGridLayout uses the same API, algorithms and implementation\r\n * for column and rows.\r\n *\r\n * FlexGridLayout focuses on form-oriented panels much like the 'Segment' panel. Nevertheless, it is a general purpose\r\n * layout system that can be used for the vast majority of rectangular layouts.\r\n *\r\n * Define your layout with:\r\n * <ul>\r\n * <li>[number]px</li>\r\n * <li>grow</li>\r\n * <li>pref</li>\r\n * </ul>\r\n *\r\n * e.g. we want build a shape with a border on the left and right and a label in the\r\n * center. We allow the center to grow, the shape is resizeable.\r\n *\r\n * <pre>\r\n * 10px grow 10px\r\n *\r\n * -----+------------------+-----\r\n * | | [LABEL] | |\r\n * | | | |\r\n * | | | | grow\r\n * | | | |\r\n * | | | |\r\n * -----+------------------+-----\r\n * </pre>\r\n *\r\n * The number forces the exact width or height of the cell. <b>grow</b> respect the minimum width of the\r\n * element and allows to resize the shape. The row/col with the <b>grow</b> declaration will be resized.\r\n * The <b>pref</b> declaration forces the cell to the minimum width/height of the embedded figure.\r\n *\r\n * Example Implementation of a shape:\r\n *\r\n * @example preview small frame\r\n * let PredefinedProcess = draw2d.shape.layout.FlexGridLayout.extend({\r\n *\r\n *\r\n * // 10px grow 10px\r\n * //\r\n * // -----+------------------+-----\r\n * // | | [LABEL] | |\r\n * // | | | |\r\n * // | | | | grow\r\n * // | | | |\r\n * // | | | |\r\n * // -----+------------------+-----\r\n * //\r\n * // @param attr\r\n * //\r\n * init: function(attr, setter, getter)\r\n * {\r\n * this._super(extend({\r\n * columns:\"10px, grow, 10px\",\r\n * rows: \"grow\",\r\n * bgColor:\"#FFFFFF\",\r\n * stroke:2\r\n * },attr),\r\n * setter,\r\n * getter);\r\n *\r\n *\r\n * this.label = new draw2d.shape.basic.Label({text:\"Process Name\", resizeable:true, stroke:2});\r\n * this.label.installEditor(new draw2d.ui.LabelInplaceEditor());\r\n * this.add(this.label, {row:0, col:1});\r\n *\r\n * this.setDimension(120,80);\r\n * }\r\n * });\r\n * let shape = new PredefinedProcess();\r\n * canvas.add(shape,10,10);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.layout.Layout\r\n * @since 2.5.1\r\n */\n_packages2.default.shape.layout.FlexGridLayout = _packages2.default.shape.layout.Layout.extend({\n\n NAME: \"draw2d.shape.layout.FlexGridLayout\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n var _this = this;\n this.cellLocator = {\n relocate: function relocate(index, figure) {\n if (_this.gridDef.layoutRequired === true) {\n _this._layout();\n }\n var cell = figure.__cellConstraint;\n var x = cell.x;\n var y = cell.y;\n\n // stretch the figure to fill the complete cell\n //\n if (figure.isResizeable()) {\n figure.setDimension(Math.max(figure.getMinWidth(), cell.width), Math.max(figure.getMinHeight(), cell.height));\n }\n // else apply the valign and align property\n //\n else {\n // apply vertical alignment\n //\n switch (cell.valign) {\n case \"middle\":\n y = y + (cell.height - figure.getHeight()) / 2;\n break;\n case \"bottom\":\n y = y + (cell.height - figure.getHeight());\n break;\n }\n\n // apply horizontal alignment\n //\n switch (cell.align) {\n case \"center\":\n x = x + (cell.width - figure.getWidth()) / 2;\n break;\n case \"right\":\n x = x + (cell.width - figure.getWidth());\n break;\n }\n }\n figure.setPosition(x, y);\n },\n bind: function bind() {},\n unbind: function unbind() {},\n translate: function translate(figure, diff) {\n figure.setPosition(figure.x + diff.x, figure.y + diff.y);\n }\n };\n\n this.debug = false;\n this.gridDef = {\n debugLines: [],\n def_cols: [],\n def_rows: [],\n min_height: [],\n min_width: [],\n minGridWidth: 10,\n minGridHeight: 10,\n hResizeable: false,\n vResizeable: false,\n layoutRequired: true\n };\n\n this._super((0, _extend2.default)({ stroke: 2 }, attr), (0, _extend2.default)({}, setter), (0, _extend2.default)({}, getter));\n\n this.resizeListener = function (figure) {\n _this.gridDef.layoutRequired = true;\n // propagate the event to the parent or other listener if existing\n //\n if (_this.getParent() instanceof _packages2.default.shape.layout.Layout) {\n _this.fireEvent(\"resize\");\n }\n // or we are the parent and must consume it self\n else {\n _this.setDimension(_this.gridDef.hResizeable === true ? _this.getWidth() : 1, _this.gridDef.vResizeable === true ? _this.getHeight() : 1);\n }\n };\n\n var rows = attr.rows.split(\",\");\n var columns = attr.columns.split(\",\");\n for (var i = 0; i < columns.length; i++) {\n this.gridDef.def_cols[i] = this.cellWidthFromDef(columns[i]);\n }\n\n for (var _i = 0; _i < rows.length; _i++) {\n this.gridDef.def_rows[_i] = this.cellWidthFromDef(rows[_i]);\n }\n\n this.installEditPolicy(new _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy());\n },\n\n add: function add(figure, cellConstraint) {\n\n figure.__cellConstraint = (0, _extend2.default)({}, {\n row: 0,\n col: 0,\n rowspan: 1,\n colspan: 1,\n align: \"left\",\n valign: \"top\",\n width: 1,\n height: 1\n }, cellConstraint);\n this.gridDef.layoutRequired = true;\n this._super(figure, this.cellLocator);\n this._layout();\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinWidth: function getMinWidth() {\n return this.gridDef.minGridWidth;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinHeight: function getMinHeight() {\n return this.gridDef.minGridHeight;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setCanvas: function setCanvas(canvas) {\n // layout must be recalculated if the shape will be assigned\n // to a canvas. \"Text\" elements can now calculate correct with the right font settings.\n //\n this.gridDef.layoutRequired = true;\n this._super(canvas);\n\n return this;\n },\n\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return this;\n }\n this._super(attributes);\n if (this.debug) {\n this.paintDebugGrid();\n }\n\n return this;\n },\n\n setDimension: function setDimension(w, h) {\n // we need the calculated layout to determine the min width/height of the figure\n //\n if (this.gridDef.layoutRequired === true) {\n this._layout();\n }\n // set the new dimension\n this._super(w, h);\n\n // after setting the new dimension a recalculation of the layout is required. May the shape\n // has grown up\n this.gridDef.layoutRequired = true;\n this.repaint();\n\n return this;\n },\n\n _layout: function _layout() {\n this.gridDef.layoutRequired = false;\n\n var figures = this.getChildren();\n\n // copy the initial requested width/heights\n //\n this.gridDef.min_height = this.gridDef.def_rows.slice(0);\n this.gridDef.min_width = this.gridDef.def_cols.slice(0);\n\n // Calculate the basic width/height of the elements without considering the \"span\" and \"grow\"\n //\n for (var i = 0; i < figures.getSize(); i++) {\n var figure = figures.get(i);\n var cell = figure.__cellConstraint;\n // ermitteln der derzeitig zur verfügung stehenden weite\n this.gridDef.min_width[cell.col] = Math.max(this.gridDef.min_width[cell.col], figure.getMinWidth());\n\n // Falls das Elemente eine y_span hat, dann versuchen ob es auf die ganze\n // höhe rein passt. Wenn nicht wird der Teil der 'grow' angegeben hat verändert.\n // Wenn kein Element 'grow' angegeben hat, dann wird das letzte Element verändert\n if (cell.rowspan > 1) {\n var eHeight = figure.getMinHeight();\n var cHeight = this.cellHeight(cell.row, cell.row + cell.rowspan);\n if (cHeight < eHeight) {\n var diff = eHeight - cHeight;\n this.gridDef.min_height[cell.row + cell.rowspan - 1] = this.gridDef.min_height[cell.row + cell.rowspan - 1] + diff;\n }\n } else {\n this.gridDef.min_height[cell.row] = Math.max(this.gridDef.min_height[cell.row], figure.getMinHeight());\n }\n }\n this.gridDef.minGridWidth = this._getGridWidth();\n this.gridDef.minGridHeight = this._getGridHeight();\n\n // Resize the grid height if at least one row supports \"grow\"\n //\n var gridHeight = this._getGridHeight();\n for (var _i2 = 0; _i2 < this.gridDef.def_rows.length; _i2++) {\n // row found which can grow\n if (this.gridDef.def_rows[_i2] === -1) {\n this.gridDef.min_height[_i2] = this.gridDef.min_height[_i2] + Math.max(0, this.getHeight() - gridHeight);\n this.gridDef.vResizeable = true;\n break;\n }\n }\n\n // Resize the grid if at least one column supports \"grow\"\n //\n var gridWidth = this._getGridWidth();\n for (var _i3 = 0; _i3 < this.gridDef.def_cols.length; _i3++) {\n // column found which can grow\n if (this.gridDef.def_cols[_i3] === -1) {\n this.gridDef.min_width[_i3] = this.gridDef.min_width[_i3] + Math.max(0, this.getWidth() - gridWidth);\n this.gridDef.hResizeable = true;\n break;\n }\n }\n\n // apply the cell constraints to the elements\n //\n for (var _i4 = 0; _i4 < figures.getSize(); _i4++) {\n var _cell = figures.get(_i4).__cellConstraint;\n _cell.width = this.cellWidth(_cell.col, _cell.col + _cell.colspan);\n _cell.height = this.cellHeight(_cell.row, _cell.row + _cell.rowspan);\n _cell.x = this.cellX(_cell.col);\n _cell.y = this.cellY(_cell.row);\n }\n\n return this;\n },\n\n cellX: function cellX(col) {\n var r = 0;\n for (var i = 0; i < col; i++) {\n r = r + this.gridDef.min_width[i];\n }\n\n return r;\n },\n\n cellY: function cellY(row) {\n var r = 0;\n for (var i = 0; i < row; i++) {\n r = r + this.gridDef.min_height[i];\n }\n\n return r;\n },\n\n cellWidth: function cellWidth(from, to) {\n var r = 0;\n for (var i = from; i < to; i++) {\n r = r + this.gridDef.min_width[i];\n }\n\n return r;\n },\n\n cellHeight: function cellHeight(from, to) {\n var r = 0;\n for (var i = from; i < to; i++) {\n r = r + this.gridDef.min_height[i];\n }\n\n return r;\n },\n\n paintDebugGrid: function paintDebugGrid() {\n // alte Linien erstmal entfernen bevor man neue zeichnet\n //\n for (var i = 0; i < this.gridDef.debugLines.length; i++) {\n this.gridDef.debugLines[i].remove();\n }this.gridDef.debugLines = [];\n\n var gridHeight = this._getGridHeight();\n var gridWidth = this._getGridWidth();\n var posX = this.getAbsoluteX();\n var posY = this.getAbsoluteY();\n\n // draw the cols first\n var x = posX;\n for (var _i5 = 0; _i5 <= this.gridDef.min_width.length; _i5++) {\n var newLine = this.canvas.paper.path(\"M \" + x + \" \" + posY + \" l 0 \" + gridHeight).attr({\n \"stroke\": \"#FF0000\",\n \"stroke-width\": 1\n });\n this.gridDef.debugLines.push(newLine);\n if (_i5 < this.gridDef.min_width.length) x = x + this.gridDef.min_width[_i5];\n }\n\n var y = posY;\n for (var _i6 = 0; _i6 <= this.gridDef.min_height.length; _i6++) {\n var _newLine = this.canvas.paper.path(\"M \" + posX + \" \" + y + \" l \" + gridWidth + \" 0\").attr({\n \"stroke\": \"#FF0000\",\n \"stroke-width\": 1\n });\n this.gridDef.debugLines.push(_newLine);\n if (_i6 < this.gridDef.min_height.length) y = y + this.gridDef.min_height[_i6];\n }\n },\n\n _getGridWidth: function _getGridWidth() {\n var gridWidth = 0;\n for (var i = 0; i < this.gridDef.min_width.length; i++) {\n gridWidth = gridWidth + this.gridDef.min_width[i];\n }\n\n return gridWidth;\n },\n\n _getGridHeight: function _getGridHeight() {\n var gridHeight = 0;\n for (var i = 0; i < this.gridDef.min_height.length; i++) {\n gridHeight = gridHeight + this.gridDef.min_height[i];\n }\n\n return gridHeight;\n },\n\n cellWidthFromDef: function cellWidthFromDef(def) {\n var pattern = new RegExp(\"(\\\\d+)(?:px)?\");\n var match = def.match(pattern);\n\n if (match != null) {\n return parseInt(match[1]);\n }\n\n pattern = new RegExp(\"p(?:ref)?\");\n match = def.match(pattern);\n if (match != null) {\n return 0;\n }\n\n pattern = new RegExp(\"g(?:row)?\");\n match = def.match(pattern);\n if (match != null) {\n this.autoResize = false;\n return -1;\n }\n\n return 0;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/layout/HorizontalLayout.js\":\n/*!**********************************************!*\\\n !*** ./src/shape/layout/HorizontalLayout.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.layout.HorizontalLayout\r\n * The HorizontalLayout class arranges the layout elements in a horizontal sequence,\r\n * left to right, with optional gaps between the elements.\r\n *\r\n * During the execution of the setDimension() method, the minimum width of the container is calculated\r\n * by accumulating the minimum sizes of the elements, including stroke, gaps and padding.\r\n *\r\n *\r\n * See the example below with and without gap and border settings\r\n *\r\n *\r\n * @example preview small frame\r\n *\r\n * // first container without any gap and a border of the parent\r\n * // container\r\n * let label1 = new draw2d.shape.basic.Label({text:\"Label 1\"});\r\n * let label2 = new draw2d.shape.basic.Label({text:\"Label 2\"});\r\n * let label3 = new draw2d.shape.basic.Label({text:\"Label 3\"});\r\n *\r\n * let container1 = new draw2d.shape.layout.HorizontalLayout();\r\n *\r\n * container1.add(label1);\r\n * container1.add(label2);\r\n * container1.add(label3);\r\n * container1.setGap(10);\r\n * container1.setStroke(2);\r\n * canvas.add(container1,50,10);\r\n *\r\n * // second container without any gab or border\r\n * //\r\n * let label11 = new draw2d.shape.basic.Label({text:\"Label 1\"});\r\n * let label12 = new draw2d.shape.basic.Label({text:\"Label 2\"});\r\n * let label13 = new draw2d.shape.basic.Label({text:\"Label 3\"});\r\n *\r\n * let container2 = new draw2d.shape.layout.HorizontalLayout();\r\n *\r\n * container2.add(label11);\r\n * container2.add(label12);\r\n * container2.add(label13);\r\n *\r\n * canvas.add(container2,50,90);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.layout.Layout\r\n * @since 2.5.1\r\n */\n_packages2.default.shape.layout.HorizontalLayout = _packages2.default.shape.layout.Layout.extend({\n\n NAME: \"draw2d.shape.layout.HorizontalLayout\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.gap = 0;\n var _this = this;\n this.locator = {\n translate: function translate(figure, diff) {\n figure.setPosition(figure.x + diff.x, figure.y + diff.y);\n },\n bind: function bind() {},\n unbind: function unbind() {},\n relocate: function relocate(index, target) {\n var stroke = _this.getStroke();\n var yPos = stroke + _this.padding.top;\n var xPos = stroke + _this.padding.left; // respect the border and padding of the parent\n for (var i = 0; i < index; i++) {\n var child = _this.children.get(i).figure;\n if (child.isVisible()) {\n xPos += child.getWidth() + _this.gap;\n }\n }\n\n target.setPosition(xPos, yPos);\n }\n };\n\n this._super((0, _extend2.default)({ width: 1, height: 1, gap: 0 }, attr), (0, _extend2.default)({\n /** @attr {Number} gap the gap between the children shapes */\n gap: this.setGap\n }, setter), (0, _extend2.default)({\n gap: this.getGap\n }, getter));\n },\n\n /**\r\n * @inheritdoc\r\n */\n add: function add(child, locator, index) {\n this._super(child, this.locator, index);\n\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the gap width between child components within this layout.\r\n * This will only affect the space between components, not the space around all the components in the layout.\r\n *\r\n * @param {Number} gap The space, in pixels, between items.\r\n * @since 2.5.1\r\n */\n setGap: function setGap(gap) {\n this.gap = gap;\n // this forces a relayout of the element\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the gap between the children shapes\r\n *\r\n * @since 5.0.0\r\n *\r\n */\n getGap: function getGap() {\n return this.gap;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinWidth: function getMinWidth() {\n var _this = this;\n var width = this.stroke * 2 + this.padding.left + this.padding.right;\n var gap = 0;\n\n this.children.each(function (i, e) {\n if (e.figure.isVisible()) {\n width += e.figure.isResizeable() ? e.figure.getMinWidth() : e.figure.getWidth() + gap;\n gap = _this.gap;\n }\n });\n\n return width;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinHeight: function getMinHeight() {\n var markup = this.stroke * 2 + this.padding.top + this.padding.bottom;\n var height = 0;\n\n this.children.each(function (i, e) {\n height = Math.max(height, e.figure.isResizeable() ? e.figure.getMinHeight() : e.figure.getHeight());\n });\n\n return height + markup;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this._super(w, h);\n\n var diff = this.width - this.getMinWidth();\n if (diff > 0) {\n diff = diff / this.children.getSize() | 0;\n this.children.each(function (i, e) {\n if (e.figure.isResizeable() === true) {\n e.figure.setDimension(e.figure.getMinWidth() + diff, e.figure.getHeight());\n }\n });\n } else {\n var minHeight = this.getMinHeight();\n this.children.each(function (i, e) {\n // The layout respect the \"resizeable\" flag because a layout is a kind of layouter and\n // any kind of autolayouter must respect this flag\n if (e.figure.isResizeable() === true) {\n // reset the shape to the minimum width/height. see setMinWidth/setMinHeight\n e.figure.setDimension(1, minHeight);\n }\n });\n }\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n memento.gap = this.gap;\n\n return memento;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.gap === \"number\") {\n this.gap = memento.gap;\n }\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/layout/Layout.js\":\n/*!************************************!*\\\n !*** ./src/shape/layout/Layout.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.layout.Layout\r\n *\r\n * A base class for positioning child figures and determining the ideal size for\r\n * a figure with children.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n_packages2.default.shape.layout.Layout = _packages2.default.shape.basic.Rectangle.extend({\n\n NAME: \"draw2d.shape.layout.Layout\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // @since 4.3.3\n this.padding = { top: 0, right: 0, bottom: 0, left: 0 };\n\n this._super((0, _extend2.default)({ bgColor: null, radius: 0, stroke: 0 }, attr), (0, _extend2.default)({\n /** @attr {Number} padding the padding in pixel around the text */\n padding: this.setPadding\n }, setter), (0, _extend2.default)({\n padding: this.getPadding\n }, getter));\n\n var _this = this;\n this.resizeListener = function (figure) {\n // propagate the event to the parent or other listener if existing\n //\n if (_this.getParent() instanceof _packages2.default.shape.layout.Layout) {\n _this.fireEvent(\"resize\");\n }\n // or we are the parent and must consume it self\n else {\n _this.setDimension(1, 1);\n _this.fireEvent(\"resize\");\n }\n };\n\n this.installEditPolicy(new _packages2.default.policy.figure.AntSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n add: function add(child, locator, index) {\n this._super(child, locator, index);\n\n child.on(\"resize\", this.resizeListener);\n child.on(\"change:visibility\", this.resizeListener);\n\n // don't use the getter/setter. This considers the canvas assignment and\n // the child is always invisible. BIG BUG. The example shape_db will break if you change this.\n // child.setVisible(this.isVisible());\n // respect the \"visible\" flag of the child as well\n child.visible = child.visible && this.visible;\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n remove: function remove(child) {\n var r = this._super(child);\n child.off(this.resizeListener);\n this.setDimension(1, 1);\n\n return r;\n },\n\n /**\r\n * @method\r\n * Set the padding of the element\r\n *\r\n * // Alternatively you can use the attr method:\r\n * //\r\n * // set the padding for top,left,bottom,right in one call\r\n * figure.attr({\r\n * padding: 3\r\n * });\r\n *\r\n * // update the padding left and top\r\n * figure.attr({\r\n * padding: {left:3, top:30}\r\n * });\r\n *\r\n * @param {Number|Object} padding The new padding\r\n * @since 4.3.3\r\n **/\n setPadding: function setPadding(padding) {\n if (typeof padding === \"number\") {\n this.padding = { top: padding, right: padding, bottom: padding, left: padding };\n } else {\n this.padding = (0, _extend2.default)(this.padding, padding);\n }\n this.fireEvent(\"change:padding\", { value: this.padding });\n\n // force a relayout of the figure\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the padding of the element.\r\n *\r\n * @since 4.3.3\r\n **/\n getPadding: function getPadding() {\n return this.padding;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setVisible: function setVisible(flag) {\n // propagate the visibility to all children too.\n //\n this.children.each(function (i, e) {\n e.figure.setVisible(flag);\n });\n\n this._super(flag);\n\n // force a relayout of the shape because the dimension has been changed\n // by enable/disable of child shapes\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the Command to perform the specified Request or null.\r\n *\r\n * @param {draw2d.command.CommandType} request describes the Command being requested\r\n * @return {draw2d.command.Command} null or a Command\r\n * @private\r\n **/\n createCommand: function createCommand(request) {\n // it is not possible to rate a layout object\n // ..at the moment\n if (request.getPolicy() === _packages2.default.command.CommandType.ROTATE) {\n return null;\n }\n\n return this._super(request);\n }\n});\n\n/***/ }),\n\n/***/ \"./src/shape/layout/StackLayout.js\":\n/*!*****************************************!*\\\n !*** ./src/shape/layout/StackLayout.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.layout.StackLayout\r\n * Using the StackLayout as their layout shape have their children placed on top of one another.\r\n * Order of placement is determined by the order in which the children were added, first child\r\n * added placed on the bottom. Only one child is visible at once.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.layout.Layout\r\n */\n_packages2.default.shape.layout.StackLayout = _packages2.default.shape.layout.Layout.extend({\n\n NAME: \"draw2d.shape.layout.StackLayout\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.visibleLayer = 0;\n this.locator = new _packages2.default.layout.locator.XYAbsPortLocator(0, 0);\n\n this._super((0, _extend2.default)({ resizeable: true, width: 10, height: 10 }, attr), (0, _extend2.default)({}, setter), (0, _extend2.default)({}, getter));\n\n this.resizeListener = function (figure) {};\n // install default selection handler. Can be overridden or replaced\n this.installEditPolicy(new _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * Set the current visible layer of the stack layout\r\n *\r\n * @param {Number} visibleLayer\r\n */\n setVisibleLayer: function setVisibleLayer(visibleLayer, duration) {\n this.getChildren().get(this.visibleLayer).setVisible(false, duration);\n this.visibleLayer = Math.min(this.getChildren().getSize() - 1, Math.max(0, visibleLayer));\n\n this.getChildren().get(this.visibleLayer).setVisible(true, duration);\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the current visible layer\r\n *\r\n * @returns {Number}\r\n */\n getVisibleLayer: function getVisibleLayer() {\n return this.visibleLayer;\n },\n\n /**\r\n * @inheritdoc\r\n */\n add: function add(child, locator, index) {\n // the child didn'T care about events...at the moment\n //\n child.hitTest = function () {\n return false;\n };\n\n // make all existing shapes invisible\n //\n this.getChildren().each(function (i, c) {\n c.setVisible(false);\n });\n this.visibleLayer = this.getChildren().getSize();\n\n // ignore the parameter \"locator\" and use the locator for the stack layout instead\n return this._super(child, this.locator, index);\n },\n\n /**\r\n * @inheritdoc\r\n */\n setVisible: function setVisible(flag) {\n _packages2.default.shape.basic.Rectangle.prototype.setVisible.call(this, flag);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinWidth: function getMinWidth() {\n var markup = this.stroke * 2 + this.padding.left + this.padding.right;\n var width = 10;\n this.children.each(function (i, e) {\n width = Math.max(width, e.figure.isResizeable() ? e.figure.getMinWidth() : e.figure.getWidth());\n });\n return width + markup;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinHeight: function getMinHeight() {\n var markup = this.stroke * 2 + this.padding.top + this.padding.bottom;\n var height = 10;\n this.children.each(function (i, e) {\n height = Math.max(height, e.figure.isResizeable() ? e.figure.getMinHeight() : e.figure.getHeight());\n });\n return height + markup;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this._super(w, h);\n\n var width = this.width - this.padding.left - this.padding.right;\n var height = this.height - this.padding.top - this.padding.bottom;\n if (width === this._recursiveWidth && height === this._recursiveHeight) {\n return this;\n }\n this._recursiveHeight = height;\n this._recursiveWidth = width;\n\n this.children.each(function (i, e) {\n if (e.figure.isResizeable()) {\n e.figure.setDimension(width, height);\n }\n });\n\n delete this._recursiveHeight;\n delete this._recursiveWidth;\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/layout/TableLayout.js\":\n/*!*****************************************!*\\\n !*** ./src/shape/layout/TableLayout.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.layout.TableLayout = _packages2.default.shape.layout.Layout.extend({\n\n NAME: \"draw2d.shape.layout.TableLayout\",\n\n DUMMY_CELL: {\n getMinHeight: function getMinHeight() {\n return 1;\n },\n getMinWidth: function getMinWidth() {\n return 1;\n },\n off: function off() {}\n },\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n var _this = this;\n this.cellLocator = {\n relocate: function relocate(index, figure) {\n if (_this.repaintBlocked === true) {\n return;\n }\n var cell = figure.__cell;\n var layout = _this.getCellLayout(cell.row, cell.column);\n var outerWidth = _this.getWidth();\n var minWidth = _this.getMinWidth();\n var widthOffset = 0;\n if (outerWidth != minWidth) {\n widthOffset = (outerWidth - minWidth) / _this.layoutInfos[0].length * cell.column;\n }\n\n var width = figure.getWidth();\n var height = figure.getHeight();\n var x = layout.x + _this.padding.left + layout.padding.left + widthOffset;\n var y = layout.y + _this.padding.top + layout.padding.top;\n\n // stretch the figure to fill the complete cell\n //\n if (figure.isResizeable()) {\n var w = Math.max(figure.getMinWidth(), layout.w - (layout.padding.left + layout.padding.right) + widthOffset);\n var h = Math.max(figure.getMinHeight(), layout.h - (layout.padding.top + layout.padding.bottom));\n figure.setDimension(w, h);\n }\n // else apply the valign and align property\n //\n else {\n // apply vertical alignment\n //\n switch (layout.valign) {\n case \"middle\":\n y = y + (layout.h - (height + layout.padding.top + layout.padding.bottom)) / 2;\n break;\n case \"bottom\":\n y = y + (layout.h - (height + layout.padding.top + layout.padding.bottom));\n break;\n }\n\n // apply horizontal alignment\n //\n switch (layout.align) {\n case \"center\":\n x = x + (layout.w - (width + layout.padding.left + layout.padding.right)) / 2 + widthOffset / 2;\n break;\n case \"right\":\n x = x + (layout.w - (width + layout.padding.left + layout.padding.right)) + widthOffset;\n break;\n }\n }\n figure.setPosition(x, y);\n },\n bind: function bind() {},\n unbind: function unbind() {},\n translate: function translate(figure, diff) {\n figure.setPosition(figure.x + diff.x, figure.y + diff.y);\n }\n };\n\n this.padding = { top: 4, right: 4, bottom: 4, left: 4 };\n\n this.grid = [];\n this.layoutInfos = [];\n this.layoutInfos[0] = [];\n this.layoutInfos[0][0] = { x: 0, y: 0, w: 1, h: 1, valign: \"top\", align: \"left\" };\n\n this._super(extend({ stroke: 1, resizeable: false }, attr), extend({\n /** @attr {Number} padding the padding in pixel around the text */\n padding: this.setPadding\n }, setter), extend({\n padding: this.getPadding\n }, getter));\n },\n\n /**\r\n * @method\r\n * Set the padding of the given cell.\r\n *\r\n *\r\n * @param {Number|Object} padding The new padding\r\n **/\n setCellPadding: function setCellPadding(row, column, padding) {\n var layout = this.getCellLayout(row, column);\n if (layout === null) {\n return this;\n }\n\n if (typeof padding === \"number\") {\n layout.padding = { top: padding, right: padding, bottom: padding, left: padding };\n } else {\n extend(layout.padding, padding);\n }\n\n this.calculateLayout();\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the padding of the outer grid.\r\n *\r\n **/\n getCellPadding: function getCellPadding(row, column) {\n\n var layout = this.getCellLayout(row, column);\n if (layout === null || typeof layout.padding === \"undefined\") {\n return { top: 0, right: 0, bottom: 0, left: 0 };\n }\n return layout.padding;\n },\n\n /**\r\n * @method\r\n * Set the padding of the outer grid.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * //\r\n * // set the padding for top,left,bottom,right in one call\r\n * figure.attr({\r\n * padding: 3\r\n * });\r\n *\r\n * // update the padding left and top\r\n * figure.attr({\r\n * padding: {left:3, top:30}\r\n * });\r\n *\r\n * @param {Number|Object} padding The new padding\r\n **/\n setPadding: function setPadding(padding) {\n if (typeof padding === \"number\") {\n this.padding = { top: padding, right: padding, bottom: padding, left: padding };\n } else {\n this.padding = extend(this.padding, padding);\n }\n this.calculateLayout();\n this.setDimension(1, 1);\n this.fireEvent(\"change:padding\", { value: this.padding });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the padding of the outer grid.\r\n *\r\n **/\n getPadding: function getPadding() {\n return this.padding;\n },\n\n setCanvas: function setCanvas(canvas) {\n this._super(canvas);\n this.calculateLayout();\n this.setDimension(2, 2);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n add: function add(child, locator, index) {\n this._super(child, locator, index);\n\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n *\r\n * @method\r\n * Removes the row from the TableLayout\r\n *\r\n * @returns the removed row\r\n */\n removeRow: function removeRow(index) {\n var _this = this;\n var removedRow = this.grid.splice(index, 1);\n removedRow[0].forEach(function (figure) {\n _this.remove(figure);\n });\n\n this.calculateLayout();\n this.setDimension(2, 2);\n\n return removedRow;\n },\n\n /**\r\n * @method\r\n * Add a row to the table grid.\r\n * This method has a variable argument list. All arguments are added in one row.\r\n *\r\n * @param {Array} figures variable count of figures to add as one row\r\n */\n addRow: function addRow() {\n var figuresToAdd = [];\n var _this = this;\n var args = Array.prototype.slice.call(arguments); // sometimes js is stupid...\n\n var rowCount = this.grid.length + 1;\n var columnCount = this.grid.length > 0 ? Math.max(this.grid[0].length, args.length) : args.length;\n\n var row = [];\n\n args.forEach(function (figure, index) {\n if (typeof figure === \"string\") {\n figure = new _packages2.default.shape.basic.Label({ text: figure });\n }\n row.push(figure);\n figuresToAdd.push(figure);\n });\n this.grid.push(row);\n\n // adjust the columns. All rows must have the same column count. Add empty cells\n // if required.\n //\n this.grid.forEach(function (row, index) {\n var missingColumns = columnCount - row.length;\n for (var i = 0; i < missingColumns; i++) {\n row.push(_this.DUMMY_CELL);\n }\n });\n\n var orig = this.repaintBlocked;\n this.repaintBlocked = true;\n figuresToAdd.forEach(function (figure) {\n _this.add(figure, _this.cellLocator);\n });\n this.repaintBlocked = orig;\n\n this.calculateLayout();\n this.setDimension(1, 1);\n\n return this;\n },\n\n getMinWidth: function getMinWidth() {\n // return some good default if we are not part of the canvas.\n // A real width/height calculation isn'T possible if the canvas not set\n if (this.canvas === null || this.layoutInfos.length === 0) {\n return 10;\n }\n\n var bottom = this.layoutInfos[this.layoutInfos.length - 1];\n var layout = bottom[bottom.length - 1];\n\n return layout.w + layout.x + this.padding.left + this.padding.right;\n },\n\n getMinHeight: function getMinHeight() {\n // return some good default if we are not part of the canvas.\n // A real width/height calculation isn'T possible if the canvas not set\n if (this.canvas === null || this.layoutInfos.length === 0) {\n return 10;\n }\n\n var bottom = this.layoutInfos[this.layoutInfos.length - 1];\n var layout = bottom[bottom.length - 1];\n\n return layout.h + layout.y + this.padding.top + this.padding.bottom;\n },\n\n /**\r\n * @method\r\n * Set the vertical alignment of a cell. Possible values are\r\n * <ul>\r\n * <li>top</li>\r\n * <li>middle</li>\r\n * <li>bottom</li>\r\n * </ul>\r\n *\r\n * @param {Number} row The row index of the cell. Starting by 0\r\n * @param {Number} column The column index of the cell. Starting by 0\r\n * @param {String} align The vertical alignment of the cell\r\n */\n setCellVerticalAlign: function setCellVerticalAlign(row, column, valign) {\n var layout = this.getCellLayout(row, column);\n if (layout === null) {\n return; // silently\n }\n\n switch (valign) {\n case \"top\":\n case \"middle\":\n case \"bottom\":\n layout.valign = valign;\n this.calculateLayout();\n this.setDimension(1, 1);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the vertical alignment of a cell. Possible values are\r\n * <ul>\r\n * <li>top</li>\r\n * <li>middle</li>\r\n * <li>bottom</li>\r\n * </ul>\r\n *\r\n * @param {Number} row The row index of the cell. Starting by 0\r\n * @param {Number} column The column index of the cell. Starting by 0\r\n * @returns {String} The vertical alignment of the cell\r\n */\n getCellVerticalAlign: function getCellVerticalAlign(row, column) {\n var layout = this.getCellLayout(row, column);\n if (layout === null) {\n return \"top\";\n }\n\n return layout.valign;\n },\n\n /**\r\n * @method\r\n * Set the alignment of a cell. Possible values are\r\n * <ul>\r\n * <li>left</li>\r\n * <li>center</li>\r\n * <li>right</li>\r\n * </ul>\r\n *\r\n *\r\n * @param {Number} row The row index of the cell. Starting by 0\r\n * @param {Number} column The column index of the cell. Starting by 0\r\n * @param {String} align The horizontal alignment of the cell\r\n */\n setCellAlign: function setCellAlign(row, column, align) {\n\n var layout = this.getCellLayout(row, column);\n if (layout === null) {\n return; // silently\n }\n\n switch (align) {\n case \"left\":\n case \"center\":\n case \"right\":\n layout.align = align;\n this.calculateLayout();\n this.setDimension(1, 1);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the alignment of a cell. Possible values are\r\n * <ul>\r\n * <li>left</li>\r\n * <li>center</li>\r\n * <li>right</li>\r\n * </ul>\r\n *\r\n *\r\n * @param {Number} row The row index of the cell. Starting by 0\r\n * @param {Number} column The column index of the cell. Starting by 0\r\n * return {String} The horizontal alignment of the cell\r\n */\n getCellAlign: function getCellAlign(row, column) {\n\n var layout = this.getCellLayout(row, column);\n if (layout === null) {\n return \"left\";\n }\n return layout.align;\n },\n\n /**\r\n * @method\r\n * Return the layout information for the given row/column or <b>null</b>\r\n * if the row/column index is out of range.\r\n *\r\n * @private\r\n */\n getCellLayout: function getCellLayout(row, column) {\n if (row < 0 || column < 0) {\n return null; // silently\n }\n\n if (row >= this.layoutInfos.length) {\n return null; // silently\n }\n\n var layouts = this.layoutInfos[row];\n if (column >= layouts.length) {\n return null; // silently\n }\n\n return layouts[column];\n },\n\n /**\r\n * @method\r\n * Recalculate the layout of the table\r\n *\r\n * @private\r\n */\n calculateLayout: function calculateLayout() {\n var _this = this;\n var rowCount = this.grid.length;\n var columnCount = this.grid.length > 0 ? this.grid[0].length : 0;\n\n var newLayoutInfos = [];\n for (var row = 0; row < rowCount; row++) {\n newLayoutInfos[row] = [];\n for (var column = 0; column < columnCount; column++) {\n newLayoutInfos[row][column] = {\n width: 0,\n height: 0,\n x: 0,\n y: 0,\n valign: this.getCellVerticalAlign(row, column),\n align: this.getCellAlign(row, column),\n padding: this.getCellPadding(row, column)\n };\n }\n }\n\n // determine the heights/widths of the grid\n //\n var layoutWidths = new Array(columnCount + 1).join('0').split('').map(parseFloat);\n var layoutHeights = new Array(rowCount + 1).join('0').split('').map(parseFloat);\n this.grid.forEach(function (figures, row) {\n for (var _column = 0; _column < columnCount; _column++) {\n var layout = newLayoutInfos[row][_column];\n var figure = figures[_column];\n figure.__cell = { row: row, column: _column };\n layoutHeights[row] = Math.max(layoutHeights[row], figure.getMinHeight() + layout.padding.top + layout.padding.bottom);\n layoutWidths[_column] = Math.max(layoutWidths[_column], figure.getMinWidth() + layout.padding.left + layout.padding.right);\n }\n });\n\n var x = 0,\n y = 0;\n for (var _row = 0; _row < rowCount; _row++) {\n for (var _column2 = 0; _column2 < columnCount; _column2++) {\n var layout = newLayoutInfos[_row][_column2];\n layout.w = layoutWidths[_column2];\n layout.h = layoutHeights[_row];\n layout.x = x;\n layout.y = y;\n x = x + layout.w;\n }\n y = y + layoutHeights[_row];\n x = 0;\n }\n\n this.layoutInfos = newLayoutInfos;\n\n return this;\n }\n}); /**\r\n * @class draw2d.shape.layout.TableLayout\r\n *\r\n * The TableLayout class arranges the children in a row/column order. Each cell can be styled\r\n * with valign, align and padding.\r\n *\r\n *\r\n * See the example below with and without padding or alignment settings\r\n *\r\n *\r\n * @example preview small frame\r\n *\r\n * let label1 = new draw2d.shape.basic.Label({text:\"[0,1] with long long long long label\", fontColor:\"#00AF00\"});\r\n * let label2 = new draw2d.shape.basic.Label({text:\"[1,1] padding:10\", fontColor:\"#00AF00\"});\r\n * let label3 = new draw2d.shape.basic.Label({text:\"[2,1] align:right\", fontColor:\"#00AF00\"});\r\n * let label4 = new draw2d.shape.basic.Label({text:\"[3,1] resize:true\",resizeable:true, fontColor:\"#00AF00\"});\r\n *\r\n * let container = new draw2d.shape.layout.TableLayout();\r\n *\r\n * container.addRow(\"[0,0]\", label1 ,\"[0,2] align:center\");\r\n * container.addRow(\"[1,0] valign:bottom\", label2,\"[1,2] long long long label\");\r\n * container.addRow(\"[2,0]\", label3,\"[2,2]\");\r\n * container.addRow(\"[3,0]\", label4,\"[3,2]\");\r\n *\r\n * container.setPadding(0);\r\n * container.setCellPadding(1,1, 10);\r\n *\r\n * container.setCellAlign(0,2, \"center\");\r\n * container.setCellAlign(2,1, \"right\");\r\n *\r\n * container.setCellVerticalAlign(1, 0, \"bottom\");\r\n * canvas.add(container,10,10);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.layout.Layout\r\n * @since 5.3.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/layout/VerticalLayout.js\":\n/*!********************************************!*\\\n !*** ./src/shape/layout/VerticalLayout.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.layout.VerticalLayout = _packages2.default.shape.layout.Layout.extend({\n\n NAME: \"draw2d.shape.layout.VerticalLayout\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // some layout parameter\n //\n this.gap = 0;\n\n // \"this\" shortcut to avoid $.proxy\n var _this = this;\n\n this.locator = {\n translate: function translate(figure, diff) {\n figure.setPosition(figure.x + diff.x, figure.y + diff.y);\n },\n bind: function bind() {},\n unbind: function unbind() {},\n relocate: function relocate(index, target) {\n var stroke = _this.getStroke();\n var yPos = stroke + _this.padding.top; // respect the border and padding of the shape\n var xPos = _this.padding.left;\n\n for (var i = 0; i < index; i++) {\n var child = _this.children.get(i).figure;\n if (child.isVisible()) {\n yPos += child.getHeight() + _this.gap;\n }\n }\n\n target.setPosition(xPos, yPos);\n }\n };\n\n this._super(extend({ width: 10, height: 10 }, attr), extend({\n /** @attr {Number} gap the gap between the children shapes */\n gap: this.setGap\n }, setter), extend({\n gap: this.getGap\n }, getter));\n },\n\n /**\r\n * @inheritdoc\r\n */\n add: function add(child, locator, index) {\n this._super(child, this.locator, index);\n\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the gap width between child components within this layout.\r\n * This will only affect the space between components, not the space around all the components in the layout.\r\n *\r\n * @param {Number} gap The space, in pixels, between items.\r\n */\n setGap: function setGap(gap) {\n this.gap = gap;\n // this forces a relayout of the element\n this.setDimension(1, 1);\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinWidth: function getMinWidth() {\n var markup = this.stroke * 2 + this.padding.left + this.padding.right;\n var width = 10;\n this.children.each(function (i, e) {\n if (e.figure.isVisible()) width = Math.max(width, e.figure.isResizeable() ? e.figure.getMinWidth() : e.figure.getWidth());\n });\n return width + markup;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinHeight: function getMinHeight() {\n var _this = this;\n var gap = 0;\n var markup = this.stroke * 2 + this.padding.top + this.padding.bottom;\n var height = 0;\n\n this.children.each(function (i, e) {\n if (e.figure.isVisible()) {\n height += (e.figure.isResizeable() ? e.figure.getMinHeight() : e.figure.getHeight()) + gap;\n // first element is iterated. Now we must add the gap to all next elements\n gap = _this.gap;\n }\n });\n\n return height + markup;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this._super(w, h);\n\n var width = this.width - this.padding.left - this.padding.right;\n if (width === this._recursiveWidth) {\n return this;\n }\n this._recursiveWidth = width;\n\n this.children.each(function (i, e) {\n if (e.figure.isResizeable() && e.figure.isVisible()) {\n e.figure.setDimension(width, e.figure.getMinHeight());\n }\n });\n\n delete this._recursiveWidth;\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n memento.gap = this.gap;\n\n return memento;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.gap === \"number\") {\n this.gap = memento.gap;\n }\n\n return this;\n }\n\n}); /**\r\n * @class draw2d.shape.layout.VerticalLayout\r\n * The VerticalLayout class arranges the layout elements in a vertical sequence,\r\n * left to right, with optional gaps between the elements.\r\n *\r\n * During the execution of the setDimension() method, the minimum height of the container is calculated\r\n * by accumulating the minimum sizes of the elements, including stroke, gaps and padding.\r\n *\r\n * See the example below with and without gap and border settings\r\n *\r\n *\r\n * @example preview small frame\r\n *\r\n * // first container without any gap and a border of the parent\r\n * // container\r\n * let label1 = new draw2d.shape.basic.Label({text:\"Label 1\"});\r\n * let label2 = new draw2d.shape.basic.Label({text:\"Label 2\"});\r\n * let label3 = new draw2d.shape.basic.Label({text:\"Label 3\"});\r\n *\r\n * let container1 = new draw2d.shape.layout.VerticalLayout();\r\n *\r\n * container1.add(label1);\r\n * container1.add(label2);\r\n * container1.add(label3);\r\n * container1.setGap(10);\r\n * container1.setStroke(2);\r\n * canvas.add(container1,50,10);\r\n *\r\n * // second container without any gab or border\r\n * //\r\n * let label11 = new draw2d.shape.basic.Label({text:\"Label 1\"});\r\n * let label12 = new draw2d.shape.basic.Label({text:\"Label 2\"});\r\n * let label13 = new draw2d.shape.basic.Label({text:\"Label 3\"});\r\n *\r\n * let container2 = new draw2d.shape.layout.VerticalLayout();\r\n *\r\n * container2.add(label11);\r\n * container2.add(label12);\r\n * container2.add(label13);\r\n *\r\n * canvas.add(container2,150,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.layout.Layout\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/node/Between.js\":\n/*!***********************************!*\\\n !*** ./src/shape/node/Between.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.node.Between = _packages2.default.shape.basic.Rectangle.extend({\n\n NAME: \"draw2d.shape.node.Between\",\n\n DEFAULT_COLOR: new _packages2.default.util.Color(\"#4D90FE\"),\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({\n bgColor: this.DEFAULT_COLOR,\n color: this.DEFAULT_COLOR.darker(),\n width: 50,\n height: 50\n }, attr), setter, getter);\n\n this.createPort(\"output\");\n this.createPort(\"input\");\n }\n}); /**\r\n * @class draw2d.shape.node.Between\r\n * A simple Node which has a InputPort and OutputPort. Mainly used for demo and examples.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.node.Between({color: \"#3d3d3d\"});\r\n *\r\n * canvas.add(figure,50,10);\r\n *\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/node/End.js\":\n/*!*******************************!*\\\n !*** ./src/shape/node/End.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.node.End = _packages2.default.shape.basic.Rectangle.extend({\n\n NAME: \"draw2d.shape.node.End\",\n\n DEFAULT_COLOR: new _packages2.default.util.Color(\"#4D90FE\"),\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({\n bgColor: this.DEFAULT_COLOR,\n color: this.DEFAULT_COLOR.darker(),\n width: 50,\n height: 50\n }, attr), setter, getter);\n\n this.createPort(\"input\");\n }\n\n}); /**\r\n * @class draw2d.shape.node.End\r\n * A simple Node which has a InputPort. Mainly used for demo and examples.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.node.End({color: \"#3d3d3d\"});\r\n *\r\n * canvas.add(figure,50,10);\r\n *\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/node/Fulcrum.js\":\n/*!***********************************!*\\\n !*** ./src/shape/node/Fulcrum.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! ../../util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.node.Fulcrum\r\n *\r\n * A horizontal bus shape with a special kind of port handling. The hole figure is a hybrid port.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.add( new draw2d.shape.node.Fulcrum(),50,10);\r\n * canvas.add( new draw2d.shape.node.Fulcrum(),80,100);\r\n * canvas.add( new draw2d.shape.node.Fulcrum(),150,50);\r\n *\r\n * @extends draw2d.shape.node.Hub\r\n */\n_packages2.default.shape.node.Fulcrum = _packages2.default.shape.node.Hub.extend({\n\n NAME: \"draw2d.shape.node.Fulcrum\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 40, height: 40 }, attr), setter, getter);\n\n this.port.setConnectionAnchor(new _packages2.default.layout.anchor.ConnectionAnchor(this.port));\n this.port.setVisible(true);\n this.port.hitTest = this.port._orig_hitTest;\n\n this.setConnectionDirStrategy(0);\n this.setColor(null);\n this.setRadius(10);\n this.setBackgroundColor(null);\n this.setStroke(0);\n this.installEditPolicy(new _packages2.default.policy.figure.AntSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return this;\n }\n\n attributes = attributes || {};\n\n // set some good defaults if the parent didn't\n _JSONUtil2.default.ensureDefault(attributes, \"fill\", this.bgColor.rgba());\n\n return this._super(attributes);\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/node/HorizontalBus.js\":\n/*!*****************************************!*\\\n !*** ./src/shape/node/HorizontalBus.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.node.HorizontalBus = _packages2.default.shape.node.Hub.extend({\n\n NAME: \"draw2d.shape.node.HorizontalBus\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.setConnectionDirStrategy(1);\n\n this.installEditPolicy(new _packages2.default.policy.figure.HBusSelectionFeedbackPolicy());\n }\n\n}); /**\r\n * @class draw2d.shape.node.HorizontalBus\r\n *\r\n * A horizontal bus shape with a special kind of port handling. The hole figure is a hybrid port.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.node.HorizontalBus({width:300, height:20, text:\"Horizontal Bus\"});\r\n *\r\n * canvas.add(figure,50,10);\r\n *\r\n * @extends draw2d.shape.node.Hub\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/node/Hub.js\":\n/*!*******************************!*\\\n !*** ./src/shape/node/Hub.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _Color = __webpack_require__(/*! ../../util/Color */ \"./src/util/Color.js\");\n\nvar _Color2 = _interopRequireDefault(_Color);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.node.Hub\r\n *\r\n * A hub is a shape with a special kind of port handling. The hole figure is a hybrid port. You can drag&drop a Port directly on\r\n * the figure.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * canvas.add(new draw2d.shape.node.Start({x:50, y:50}));\r\n * canvas.add(new draw2d.shape.node.Hub({x:150, y:50}));\r\n *\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n_packages2.default.shape.node.Hub = _packages2.default.shape.basic.Rectangle.extend({\n\n NAME: \"draw2d.shape.node.Hub\",\n\n DEFAULT_COLOR: new _Color2.default(\"#4DF0FE\"),\n BACKGROUND_COLOR: new _Color2.default(\"#29AA77\"),\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.label = null;\n\n this._super(extend({ color: this.DEFAULT_COLOR.darker(), bgColor: this.BACKGROUND_COLOR }, attr), extend({\n // deprecated\n label: this.setLabel,\n /** @attr {String} text the text to display in the center of the hub */\n text: this.setLabel\n }, setter), extend({\n label: this.getLabel,\n text: this.getLabel\n }, getter));\n\n var _port = this.port = this.createPort(\"hybrid\", new _packages2.default.layout.locator.CenterLocator());\n\n var r = _packages2.default.geo.Rectangle;\n this.CONNECTION_DIR_STRATEGY = [function (peerPort) {\n return _port.getParent().getBoundingBox().getDirection(peerPort.getAbsolutePosition());\n }, function (peerPort) {\n return _port.getAbsoluteY() > peerPort.getAbsoluteY() ? r.DIRECTION_UP : r.DIRECTION_DOWN;\n }, function (peerPort) {\n return _port.getAbsoluteX() > peerPort.getAbsoluteX() ? r.DIRECTION_LEFT : r.DIRECTION_RIGHT;\n }];\n\n // redirect the glow effect and the hitTest for the port to the parent node\n //\n this.port.setGlow = this.setGlow.bind(this);\n this.port._orig_hitTest = this.port.hitTest;\n this.port.hitTest = this.hitTest.bind(this);\n\n // provide a special connection anchor for this port. We use the bounding box of the\n // parent as connection border\n //\n this.port.setConnectionAnchor(new _packages2.default.layout.anchor.ShortesPathConnectionAnchor(this.port));\n this.port.setVisible(false);\n this.port.setVisible = function () {};\n\n this.setConnectionDirStrategy(0);\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag&drop operations if the user drag a figure over this figure\r\n *\r\n * @param {draw2d.Figure} draggedFigure The figure which is currently dragging\r\n *\r\n * @return {draw2d.Figure} the figure which should receive the drop event or null if the element didn't want a drop event\r\n **/\n delegateTarget: function delegateTarget(draggedFigure) {\n // redirect the dragEnter handling to the hybrid port\n //\n return this.getHybridPort(0).delegateTarget(draggedFigure);\n },\n\n /**\r\n * @method\r\n * This value is relevant for the interactive resize of the figure.\r\n *\r\n * @return {Number} Returns the min. width of this object.\r\n */\n getMinWidth: function getMinWidth() {\n if (this.label !== null) {\n return Math.max(this.label.getMinWidth(), this._super());\n }\n return this._super();\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n * @private\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n // set some good defaults if the parent didn't\n if (typeof attributes.fill === \"undefined\") {\n if (this.bgColor !== null) {\n attributes.fill = \"90-\" + this.bgColor.hash() + \":5-\" + this.bgColor.lighter(0.3).hash() + \":95\";\n } else {\n attributes.fill = \"none\";\n }\n }\n\n this._super(attributes);\n },\n\n /**\r\n * @method\r\n * Set the label for the Hub\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * text: label\r\n * });\r\n *\r\n *\r\n * @param {String} label\r\n * @since 3.0.4\r\n */\n setLabel: function setLabel(label) {\n // Create any Draw2D figure as decoration for the connection\n //\n if (this.label === null) {\n var _this = this;\n\n this.label = new _packages2.default.shape.basic.Label({ text: label, color: \"#0d0d0d\", fontColor: \"#0d0d0d\", stroke: 0 });\n // add the new decoration to the connection with a position locator.\n //\n this.add(this.label, new _packages2.default.layout.locator.CenterLocator());\n this.label.setSelectionAdapter(function () {\n return _this;\n });\n this.label.delegateTarget = function () {\n return _this.port;\n };\n } else {\n this.label.setText(label);\n }\n },\n\n /**\r\n * @method\r\n * Set the strategy for the connection direction calculation.<br>\r\n * <br>\r\n *\r\n * <ul>\r\n * <li>0 - Use the best/shortest direction (UP/RIGHT/DOWN/LEFT) for the connection routing (default)</li>\r\n * <li>1 - Use UP/DOWN for the connection direction</li>\r\n * <li>2 - Use LEFT/RIGHT</li>\r\n * </ul>\r\n * @param {Number} strategy the connection routing strategy to use\r\n * @since 2.4.3\r\n */\n setConnectionDirStrategy: function setConnectionDirStrategy(strategy) {\n switch (strategy) {\n case 0:\n case 1:\n case 2:\n this.port.getConnectionDirection = this.CONNECTION_DIR_STRATEGY[strategy];\n break;\n }\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n memento.dirStrategy = this.CONNECTION_DIR_STRATEGY.indexOf(this.port.getConnectionDirection);\n if (this.label !== null) {\n memento.label = this.label.getText();\n }\n\n return memento;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.dirStrategy === \"number\") {\n this.setConnectionDirStrategy(memento.dirStrategy);\n }\n\n if (typeof memento.label !== \"undefined\") {\n this.setLabel(memento.label);\n }\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/node/Node.js\":\n/*!********************************!*\\\n !*** ./src/shape/node/Node.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.node.Node\r\n *\r\n * A Node is the base class for all figures which can have {@link draw2d.Port}s. A {@link draw2d.Port} is the\r\n * anchor for a {@link draw2d.Connection} line.<br><br>A {@link draw2d.Port} is a green dot which can\r\n * be dragged and dropped over another port.<br>\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.Figure\r\n */\n_packages2.default.shape.node.Node = _packages2.default.Figure.extend({\n\n NAME: \"draw2d.shape.node.Node\",\n\n /**\r\n * @constructor\r\n * Creates a new Node element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.inputPorts = new _packages2.default.util.ArrayList();\n this.outputPorts = new _packages2.default.util.ArrayList();\n this.hybridPorts = new _packages2.default.util.ArrayList();\n\n // flag which indicates if the figure should read/write ports to\n // JSON\n this.persistPorts = true;\n\n // Flags just for performance reasons\n //\n this.portRelayoutRequired = true;\n\n // just for performance reasons\n //\n this.cachedPorts = null;\n\n this._super((0, _extend2.default)({ width: 50, height: 50 }, attr), (0, _extend2.default)({\n /** @attr {Number} indicate whenever you want persists the ports too */\n persistPorts: this.setPersistPorts\n }, setter), (0, _extend2.default)({\n persistPorts: this.getPersistPorts\n }, getter));\n },\n\n /**\r\n * @method\r\n * Indicates if the node should read/write the ports via the draw2d.Figure.getPersistenAttributes\r\n * to the JSON object\r\n *\r\n * @param {Boolean} flag\r\n * @since 5.0.4\r\n */\n setPersistPorts: function setPersistPorts(flag) {\n this.persistPorts = flag;\n this.fireEvent(\"change:persistPorts\", { value: this.persistPorts });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Indicates if the figure writes the ports to the JSON structore too.\r\n * Default is \"false\"\r\n *\r\n * @returns {Boolean}\r\n */\n getPersistPorts: function getPersistPorts() {\n return this.persistPorts;\n },\n\n /**\r\n * @inheritdoc\r\n */\n toFront: function toFront(figure) {\n var _this = this;\n\n this._super(figure);\n\n this.getPorts().each(function (i, port) {\n port.getConnections().each(function (i, connection) {\n return connection.toFront(figure);\n });\n port.toFront(_this);\n });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n toBack: function toBack(figure) {\n\n this.getPorts().each(function (i, port) {\n port.getConnections().each(function (i, connection) {\n return connection.toBack(figure);\n });\n port.toBack(figure);\n });\n\n this._super(figure);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setVisible: function setVisible(flag, duration) {\n // adjust the visibility of the ports to the parent state\n //\n if (!flag) {\n this.getPorts().each(function (i, port) {\n port.__initialVisibilityState = port.isVisible();\n port.setVisible(false, duration);\n });\n } else {\n this.getPorts().each(function (i, port) {\n if (typeof port.__initialVisibilityState !== \"undefined\") {\n port.setVisible(port.__initialVisibilityState, duration);\n } else {\n port.setVisible(true, duration);\n }\n delete port.__initialVisibilityState;\n });\n }\n this._super(flag, duration);\n },\n\n /**\r\n * @method\r\n * Return all ports of the node. The results contains\r\n * all ports of the children too per default. Set <b>recursive</b>\r\n * to false to retrieve direct assigned ports only.\r\n *\r\n * @param {Boolean} [recursive] indicates if the method should return children ports too. Default is <b>true</b>\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getPorts: function getPorts(recursive) {\n var _this2 = this;\n\n if (typeof recursive === \"boolean\" && recursive === false) {\n var ports = new _packages2.default.util.ArrayList();\n ports.addAll(this.inputPorts);\n ports.addAll(this.outputPorts);\n ports.addAll(this.hybridPorts);\n return ports;\n }\n\n if (this.cachedPorts === null) {\n this.cachedPorts = new _packages2.default.util.ArrayList();\n this.cachedPorts.addAll(this.inputPorts);\n this.cachedPorts.addAll(this.outputPorts);\n this.cachedPorts.addAll(this.hybridPorts);\n\n this.children.each(function (i, e) {\n _this2.cachedPorts.addAll(e.figure.getPorts());\n });\n }\n return this.cachedPorts;\n },\n\n /**\r\n * @method\r\n * Return all input ports of the node.\r\n *\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getInputPorts: function getInputPorts() {\n return this.inputPorts.clone().addAll(this.hybridPorts);\n },\n\n /**\r\n * @method\r\n * Return all output ports of the node.\r\n *\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getOutputPorts: function getOutputPorts() {\n return this.outputPorts.clone().addAll(this.hybridPorts);\n },\n\n /**\r\n * @method\r\n * Clone the figure. <br>\r\n * You must override and implement the methods <b>getPersistentAttributes</b> and <b>setPersistentAttributes</b> for your custom\r\n * figures if the have special attributes.\r\n *\r\n * The clone() method performs a deep copy of the object, meaning that it copies the children, ports and decorations\r\n * per default. You can control the clone procedure with the 'cloneMetaData'.\r\n *\r\n *\r\n * @param {Object} [cloneMetaData] controls the clone procedure\r\n * @param {Boolean} [cloneMetaData.excludeChildren] set it to true if you want exclude the children.\r\n * @param {Boolean} [cloneMetaData.excludePorts] set it to true if you want exclude the ports of the node.\r\n *\r\n * @since 4.1.0\r\n * @experimental\r\n */\n clone: function clone(cloneMetaData) {\n cloneMetaData = (0, _extend2.default)({ excludePorts: false }, cloneMetaData);\n\n var clone = this._super(cloneMetaData);\n\n // remove all ports of the clone. the \"init\" method can have create some. but this must\n // removed because we want a clone of an existing figure\n //\n if (cloneMetaData.excludePorts === false) {\n clone.resetPorts();\n var ports = this.getPorts(false);\n\n ports.each(function (i, port) {\n var clonePort = port.clone();\n var locator = port.getLocator().clone();\n clone.addPort(clonePort, locator);\n });\n }\n\n return clone;\n },\n\n /**\r\n * @method\r\n * Return the port with the corresponding name.\r\n *\r\n *\r\n * @param {String} portName The name of the port to return.\r\n * @return {draw2d.Port} Returns the port with the hands over name or null.\r\n **/\n getPort: function getPort(portName) {\n return this.getPorts().find(function (e) {\n return e.getName() === portName;\n });\n },\n\n /**\r\n * @method\r\n * Return the input port with the corresponding name.\r\n *\r\n *\r\n * @param {String/Number} portNameOrIndex The name or numeric index of the port to return.\r\n * @return {draw2d.InputPort} Returns the port with the hands over name or null.\r\n **/\n getInputPort: function getInputPort(portNameOrIndex) {\n if (typeof portNameOrIndex === \"number\") {\n return this.inputPorts.get(portNameOrIndex);\n }\n\n for (var i = 0; i < this.inputPorts.getSize(); i++) {\n var port = this.inputPorts.get(i);\n if (port.getName() === portNameOrIndex) {\n return port;\n }\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Return the output port with the corresponding name.\r\n *\r\n * @param {String/Number} portNameOrIndex The name or the numeric index of the port to return.\r\n * @return {draw2d.OutputPort} Returns the port with the hands over name or null.\r\n **/\n getOutputPort: function getOutputPort(portNameOrIndex) {\n if (typeof portNameOrIndex === \"number\") {\n return this.outputPorts.get(portNameOrIndex);\n }\n\n for (var i = 0; i < this.outputPorts.getSize(); i++) {\n var port = this.outputPorts.get(i);\n if (port.getName() === portNameOrIndex) {\n return port;\n }\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Return the input port with the corresponding name.\r\n *\r\n *\r\n * @param {String/Number} portNameOrIndex The name or numeric index of the port to return.\r\n * @return {draw2d.InputPort} Returns the port with the hands over name or null.\r\n **/\n getHybridPort: function getHybridPort(portNameOrIndex) {\n if (typeof portNameOrIndex === \"number\") {\n return this.hybridPorts.get(portNameOrIndex);\n }\n\n for (var i = 0; i < this.hybridPorts.getSize(); i++) {\n var port = this.hybridPorts.get(i);\n if (port.getName() === portNameOrIndex) {\n return port;\n }\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Add a port to this node at the given position.<br>\r\n *\r\n * @param {draw2d.Port} port The new port to add.\r\n * @param {draw2d.layout.locator.Locator} locator The layout for the port.\r\n **/\n addPort: function addPort(port, locator) {\n if (!(port instanceof _packages2.default.Port)) {\n throw \"Argument is not typeof 'draw2d.Port'. \\nFunction: draw2d.shape.node.Node#addPort\";\n }\n\n // add to the internal cache if already build\n if (this.cachedPorts !== null) {\n this.cachedPorts.add(port);\n }\n\n this.portRelayoutRequired = true;\n\n if (port instanceof _packages2.default.InputPort) {\n this.inputPorts.add(port);\n } else if (port instanceof _packages2.default.OutputPort) {\n this.outputPorts.add(port);\n } else if (port instanceof _packages2.default.HybridPort) {\n this.hybridPorts.add(port);\n }\n\n if (typeof locator !== \"undefined\" && locator instanceof _packages2.default.layout.locator.Locator) {\n port.setLocator(locator);\n }\n\n port.setParent(this);\n port.setCanvas(this.canvas);\n\n // You can't delete a port with the [DEL] key if a port is a child of a node\n port.setDeleteable(false);\n\n if (this.canvas !== null) {\n port.getShapeElement();\n this.canvas.registerPort(port);\n }\n\n return port;\n },\n\n /**\r\n * @method\r\n * Remove all ports of this node\r\n *\r\n * @since 5.0.0\r\n */\n resetPorts: function resetPorts() {\n var _this3 = this;\n\n this.getPorts().each(function (i, port) {\n return _this3.removePort(port);\n });\n return this;\n },\n\n /**\r\n * @method\r\n * Removes a port and all related connections from this node.<br>\r\n *\r\n * @param {draw2d.Port} port The port to remove.\r\n **/\n removePort: function removePort(port) {\n this.portRelayoutRequired = true;\n\n this.cachedPorts = null;\n this.inputPorts.remove(port);\n this.outputPorts.remove(port);\n this.hybridPorts.remove(port);\n\n if (port.getCanvas() !== null) {\n port.getCanvas().unregisterPort(port);\n // remove the related connections of the port too.\n var connections = port.getConnections();\n for (var i = 0; i < connections.getSize(); ++i) {\n port.getCanvas().remove(connections.get(i));\n }\n }\n\n port.setCanvas(null);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Create a standard Port for this element. Inherited class can override this\r\n * method to create its own type of ports.\r\n *\r\n * @param {String} type the type of the requested port. possible [\"input\", \"output\"]\r\n * @param {draw2d.layout.locator.Locator} [locator] the layouter to use for this port\r\n * @template\r\n */\n createPort: function createPort(type, locator) {\n var newPort = null;\n var count = 0;\n\n switch (type) {\n case \"input\":\n newPort = _packages2.default.Configuration.factory.createInputPort(this);\n count = this.inputPorts.getSize();\n break;\n case \"output\":\n newPort = _packages2.default.Configuration.factory.createOutputPort(this);\n count = this.outputPorts.getSize();\n break;\n case \"hybrid\":\n newPort = _packages2.default.Configuration.factory.createHybridPort(this);\n count = this.hybridPorts.getSize();\n break;\n default:\n throw \"Unknown type [\" + type + \"] of port requested\";\n }\n\n newPort.setName(type + count);\n\n this.addPort(newPort, locator);\n // relayout the ports\n this.setDimension(this.width, this.height);\n\n return newPort;\n },\n\n /**\r\n * @method\r\n * Return all connections related to this node.\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getConnections: function getConnections() {\n var connections = new _packages2.default.util.ArrayList();\n var ports = this.getPorts();\n for (var i = 0; i < ports.getSize(); i++) {\n var port = ports.get(i);\n // Do NOT add twice the same connection if it is linking ports from the same node\n for (var c = 0, c_size = port.getConnections().getSize(); c < c_size; c++) {\n if (!connections.contains(port.getConnections().get(c))) {\n connections.add(port.getConnections().get(c));\n }\n }\n }\n return connections;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setCanvas: function setCanvas(canvas) {\n var oldCanvas = this.canvas;\n this._super(canvas);\n\n var ports = this.getPorts();\n if (oldCanvas !== null) {\n ports.each(function (i, port) {\n return oldCanvas.unregisterPort(port);\n });\n }\n\n if (canvas !== null) {\n ports.each(function (i, port) {\n port.setCanvas(canvas);\n canvas.registerPort(port);\n });\n // relayout the ports\n this.setDimension(this.width, this.height);\n } else {\n ports.each(function (i, port) {\n return port.setCanvas(null);\n });\n }\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setRotationAngle: function setRotationAngle(angle) {\n this.portRelayoutRequired = true;\n this._super(angle);\n\n this.layoutPorts();\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this.portRelayoutRequired = true;\n this._super(w, h);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Called if the value of any port has been changed\r\n *\r\n * @param {draw2d.Port} relatedPort\r\n * @template\r\n */\n onPortValueChanged: function onPortValueChanged(relatedPort) {},\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n this._super(attributes);\n this.layoutPorts();\n },\n\n /**\r\n * @method\r\n *\r\n * @private\r\n */\n layoutPorts: function layoutPorts() {\n if (this.portRelayoutRequired === false) {\n return; //silently\n }\n this.portRelayoutRequired = false;\n\n // layout the ports\n //\n this.outputPorts.each(function (i, port) {\n return port.locator.relocate(i, port);\n });\n this.inputPorts.each(function (i, port) {\n return port.locator.relocate(i, port);\n });\n this.hybridPorts.each(function (i, port) {\n return port.locator.relocate(i, port);\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the Command to perform the specified Request or null.\r\n *\r\n * @param {draw2d.command.CommandType} request describes the Command being requested\r\n * @return {draw2d.command.Command} null or a Command\r\n * @private\r\n **/\n createCommand: function createCommand(request) {\n if (request === null) {\n return null;\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.ROTATE) {\n return new _packages2.default.command.CommandRotate(this, (this.getRotationAngle() + 90) % 360);\n }\n\n return this._super(request);\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n // write all ports to the JSON\n //\n if (this.persistPorts === true) {\n memento.ports = [];\n this.getPorts().each(function (i, port) {\n memento.ports.push((0, _extend2.default)(port.getPersistentAttributes(), {\n name: port.getName(),\n port: port.NAME,\n locator: port.getLocator().NAME\n }));\n });\n }\n\n return memento;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n * @returns\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n var _this4 = this;\n\n this._super(memento);\n\n if (typeof memento.ports !== \"undefined\") {\n // we read the ports from the JSON and now we save it to the JSON too.\n this.persistPorts = true;\n\n // remove all ports created in the init method\n //\n this.resetPorts();\n\n // and restore all ports of the JSON document instead.\n //\n memento.ports.forEach(function (e) {\n var port = eval(\"new \" + e.port + \"()\");\n var locator = eval(\"new \" + e.locator + \"()\");\n port.setPersistentAttributes(e);\n _this4.addPort(port, locator);\n port.setName(e.name);\n });\n }\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/node/Start.js\":\n/*!*********************************!*\\\n !*** ./src/shape/node/Start.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.node.Start = _packages2.default.shape.basic.Rectangle.extend({\n\n NAME: \"draw2d.shape.node.Start\",\n DEFAULT_COLOR: new _packages2.default.util.Color(\"#4D90FE\"),\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({\n bgColor: this.DEFAULT_COLOR,\n color: this.DEFAULT_COLOR.darker(),\n width: 50,\n height: 50\n }, attr), setter, getter);\n this.createPort(\"output\");\n this.installEditPolicy(new _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy());\n this.createPort(\"output\");\n }\n\n}); /**\r\n * @class draw2d.shape.node.Start\r\n *\r\n * A generic Node which has an OutputPort. Mainly used for demo and examples.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.node.Start({color: \"#3d3d3d\"});\r\n *\r\n * canvas.add(figure,50,10);\r\n *\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/node/VerticalBus.js\":\n/*!***************************************!*\\\n !*** ./src/shape/node/VerticalBus.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.node.VerticalBus = _packages2.default.shape.node.Hub.extend({\n\n NAME: \"draw2d.shape.node.VerticalBus\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.setConnectionDirStrategy(2);\n this.installEditPolicy(new _packages2.default.policy.figure.VBusSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * set the label for the Hub\r\n *\r\n * @param {String} labelString\r\n * @since 3.0.4\r\n */\n setLabel: function setLabel(labelString) {\n var mustAdjustTheAngel = this.label === null;\n\n this._super(labelString);\n\n if (mustAdjustTheAngel === true && this.label !== null) {\n this.label.setRotationAngle(90);\n }\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinHeight: function getMinHeight() {\n if (this.shape === null && this.label === null) {\n return 0;\n }\n\n if (this.label !== null) {\n return this.label.getMinWidth();\n }\n\n return this._super();\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinWidth: function getMinWidth() {\n if (this.shape === null && this.label === null) {\n return 0;\n }\n\n if (this.label !== null) {\n return this.label.getMinHeight();\n }\n\n return this._super();\n }\n\n}); /**\r\n * @class draw2d.shape.node.VerticalBus\r\n *\r\n * A horizontal bus shape with a special kind of port handling. The hole figure is a hybrid port.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.node.VerticalBus({width:40, height:300, text:\"Vertical Bus\"});\r\n *\r\n * canvas.add(figure,50,10);\r\n *\r\n * @extends draw2d.shape.node.Hub\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/note/PostIt.js\":\n/*!**********************************!*\\\n !*** ./src/shape/note/PostIt.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.note.PostIt = _packages2.default.shape.basic.Label.extend({\n\n NAME: \"draw2d.shape.note.PostIt\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.setStroke(1);\n this.setBackgroundColor(\"#5b5b5b\");\n this.setColor(\"#FFFFFF\");\n this.setFontColor(\"#ffffff\");\n this.setFontSize(14);\n this.setPadding(5);\n this.setRadius(5);\n }\n}); /**\r\n * @class draw2d.shape.note.PostIt\r\n *\r\n * Simple Post-it like figure with text. Can be used for annotations or documentation.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let shape = new draw2d.shape.note.PostIt({\r\n * text:\"This is a simple sticky note\",\r\n * color:\"#000000\",\r\n * padding:20\r\n * });\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Label\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/pert/Activity.js\":\n/*!************************************!*\\\n !*** ./src/shape/pert/Activity.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.pert.Activity = _packages2.default.shape.layout.VerticalLayout.extend({\n\n NAME: \"draw2d.shape.pert.Activity\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // shortcut for some callback methods to avoid $.proxy wrapper\n var _this = this;\n\n // persistence values for the activity\n // will be stored/read in the JSON\n this.mementoValues = {\n duration: null\n\n // just some color attributes for the rendering/gradient\n };this.bgColor = new _packages2.default.util.Color(\"#f3f3f3\");\n this.lighterBgColor = this.bgColor.lighter(0.2).rgba();\n this.darkerBgColor = this.bgColor.darker(0.2).rgba();\n\n this._super(extend({ bgColor: this.bgColor, stroke: 2, radius: 2, color: this.darkerBgColor }, attr), setter, getter);\n\n // Compose the top row of the shape\n //\n var top = new _packages2.default.shape.layout.HorizontalLayout({ stroke: 0 });\n\n this.earlyStartLabel = this.createLabel(\"Early Start\").setStroke(0);\n\n this.durationLabel = new _packages2.default.shape.basic.Label({\n text: \"Duration\",\n stroke: 1,\n color: this.darkerBgColor,\n radius: 0,\n bgColor: null,\n padding: 5\n });\n // duration label has a inplaceEditor for the value\n this.durationLabel.installEditor(new _packages2.default.ui.LabelEditor({\n onCommit: function onCommit(value) {\n _this.setDuration(parseFloat(value));\n }\n }));\n\n this.earlyEndLabel = this.createLabel({ text: \"Early End\", stroke: 0 });\n\n top.add(this.earlyStartLabel);\n top.add(this.durationLabel);\n top.add(this.earlyEndLabel);\n\n // the middle part of the shape\n // This part contains the ports for the connection\n //\n this.activityLabel = new _packages2.default.shape.basic.Label({\n text: \"Activity Name\",\n radius: 0,\n padding: 10,\n color: this.darkerBgColor,\n bgColor: null\n });\n // direct editor for the label\n this.activityLabel.installEditor(new _packages2.default.ui.LabelInplaceEditor());\n\n this.inputPort = this.activityLabel.createPort(\"input\");\n this.inputPort.getActivity = function () {\n return _this;\n };\n this.inputPort.onConnect = function () {\n _this.setDuration(_this.mementoValues.duration);\n };\n this.inputPort.onDisconnect = function () {\n _this.setDuration(_this.mementoValues.duration);\n };\n this.inputPort.setValue = function (anyValue) {\n _this.setDuration(_this.mementoValues.duration);\n };\n\n this.outputPort = this.activityLabel.createPort(\"output\");\n this.outputPort.getActivity = function () {\n return _this;\n };\n this.outputPort.onConnect = function () {\n _this.setDuration(_this.mementoValues.duration);\n };\n this.outputPort.onDisconnect = function () {\n _this.setDuration(_this.mementoValues.duration);\n };\n\n // the bottom of the activity shape\n //\n var bottom = new _packages2.default.shape.layout.HorizontalLayout({ stroke: 0 });\n\n this.lateStartLabel = this.createLabel(\"Late Start\").setStroke(0);\n this.stackLabel = this.createLabel(\"Stack\");\n this.lateEndLabel = this.createLabel(\"Late End\").setStroke(0);\n\n bottom.add(this.lateStartLabel);\n bottom.add(this.stackLabel);\n bottom.add(this.lateEndLabel);\n\n // finally compose the shape with top/middle/bottom in VerticalLayout\n //\n this.add(top);\n this.add(this.activityLabel);\n this.add(bottom);\n\n // set some good default value for the activity\n //\n this.setDuration(1);\n },\n\n /**\r\n * @method\r\n * Set the duration for the activity. This triggers a complete recalculation of the complete\r\n * diagram. No further calls are required\r\n *\r\n * @param {Number} duration the new Duration for the activity\r\n */\n setDuration: function setDuration(duration) {\n\n if (this.mementoValues.duration !== duration) {\n // store the new value\n this.mementoValues.duration = duration;\n\n // update the labels for duration\n this.durationLabel.setText(this.mementoValues.duration);\n }\n\n // calculate the earlyStart and latestEnd and set the labels\n //\n var start = this.getEarlyStart();\n\n this.earlyStartLabel.setText(start);\n this.earlyEndLabel.setText(start + this.mementoValues.duration);\n\n // notify all children that a parent value has been changed\n // Just knock on the inputPort...\n //\n var connections = this.outputPort.getConnections();\n connections.each(function (i, conn) {\n var targetPort = conn.getTarget();\n targetPort.setValue();\n });\n\n // propagate the lateFinish up to all parent nodes if we are a leaf\n //\n if (connections.getSize() === 0) {\n var lateFinish = parseFloat(this.earlyEndLabel.getText());\n this.setLateFinish(lateFinish);\n }\n },\n\n getEarlyEnd: function getEarlyEnd() {\n return this.getEarlyStart() + this.mementoValues.duration;\n },\n\n getEarlyStart: function getEarlyStart() {\n var latestEarlyEnd = 0;\n\n // retrieve the greatest \"earlyStart\" from all parent activities\n this.inputPort.getConnections().each(function (i, conn) {\n var parentActivity = conn.getSource().getActivity();\n latestEarlyEnd = Math.max(latestEarlyEnd, parentActivity.getEarlyEnd());\n });\n\n return latestEarlyEnd;\n },\n\n setLateFinish: function setLateFinish(value) {\n var lateStart = value - this.mementoValues.duration;\n\n this.lateEndLabel.setText(value);\n this.lateStartLabel.setText(lateStart);\n this.stackLabel.setText(lateStart - parseFloat(this.earlyStartLabel.getText()));\n\n var connections = this.inputPort.getConnections();\n connections.each(function (i, conn) {\n var sourcePort = conn.getSource();\n sourcePort.getActivity().setLateFinish(lateStart);\n });\n },\n\n /**\r\n * @method\r\n * help method to create some labels\r\n *\r\n * @param {String} txt the label to display\r\n * @returns {draw2d.shape.basic.Label}\r\n */\n createLabel: function createLabel(txt) {\n var label = new _packages2.default.shape.basic.Label({ text: txt });\n label.setStroke(1);\n label.setColor(this.darkerBgColor);\n label.setRadius(0);\n label.setBackgroundColor(null);\n label.setPadding(5);\n label.setColor(this.bgColor.darker(0.2));\n label.onDoubleClick = function (angle) {/* ignore them for the layout elements*/\n };\n\n return label;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setBackgroundColor: function setBackgroundColor(color) {\n this._super(color);\n\n // calculate the new lighter and darker colors for the gradient\n //\n this.lighterBgColor = this.bgColor.lighter(0.2).rgba();\n this.darkerBgColor = this.bgColor.darker(0.2).rgba();\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n\n // repaint can be blocked during deserialization and if the shape\n // not part of any canvas.\n //\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n if (this.getAlpha() < 0.9) {\n attributes.fill = this.bgColor.rgba();\n } else {\n attributes.fill = [\"90\", this.bgColor.hash(), this.lighterBgColor].join(\"-\");\n }\n\n this._super(attributes);\n }\n}); /**\r\n * @class draw2d.shape.pert.Activity\r\n *\r\n * NOT FOR PRODUCTIVE\r\n *\r\n * Checkout [Wikipedia PERT][1] for more information.\r\n *\r\n * Double click on the Task name or the top middle number to change the value.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.add( new draw2d.shape.pert.Start(),10,10);\r\n * canvas.add( new draw2d.shape.pert.Activity(),80,130);\r\n * canvas.add( new draw2d.shape.pert.Activity(),180,50);\r\n *\r\n * [1] http://en.wikipedia.org/wiki/Program_Evaluation_and_Review_Technique\r\n *\r\n * @extends draw2d.shape.layout.VerticalLayout\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/pert/Start.js\":\n/*!*********************************!*\\\n !*** ./src/shape/pert/Start.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.pert.Start = _packages2.default.shape.layout.VerticalLayout.extend({\n\n NAME: \"draw2d.shape.pert.Start\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // shortcut for some callback methods to avoid $.proxy wrapper\n var _this = this;\n\n // persistence values for the activity\n // will be stored/read in the JSON\n this.mementoValues = {\n duration: null\n\n // just some color attributes for the rendering/gradient\n };this.bgColor = new _packages2.default.util.Color(\"#f3f3f3\");\n this.lighterBgColor = this.bgColor.lighter(0.2).rgba();\n this.darkerBgColor = this.bgColor.darker(0.2).rgba();\n\n this._super(extend({ bgColor: this.bgColor, stroke: 2, radius: 2, color: this.darkerBgColor }, attr), setter, getter);\n\n // Compose the top row of the shape\n //\n var top = new _packages2.default.shape.layout.HorizontalLayout({ stroke: 0 });\n\n this.durationLabel = new _packages2.default.shape.basic.Label({\n text: \"Duration\",\n stroke: 1,\n color: this.darkerBgColor,\n radius: 0,\n bgColor: null,\n padding: 5\n });\n // duration label has a inplaceEditor for the value\n this.durationLabel.installEditor(new _packages2.default.ui.LabelEditor({\n text: \"Enter new duration\",\n onCommit: function onCommit(value) {\n _this.setDuration(parseFloat(value));\n }\n }));\n\n this.earlyEndLabel = this.createLabel({ text: \"Early End\", stroke: 0 });\n\n top.add(this.durationLabel);\n top.add(this.earlyEndLabel);\n\n // the middle part of the shape\n // This part contains the ports for the connection\n //\n this.activityLabel = new _packages2.default.shape.basic.Label({\n text: \"Start\",\n radius: 0,\n padding: 10,\n color: this.darkerBgColor,\n bgColor: null\n });\n // direct editor for the label\n this.activityLabel.installEditor(new _packages2.default.ui.LabelInplaceEditor());\n\n this.outputPort = this.activityLabel.createPort(\"output\");\n this.outputPort.getActivity = function () {\n return _this;\n };\n this.outputPort.onConnect = function () {\n _this.setDuration(_this.mementoValues.duration);\n };\n this.outputPort.onDisconnect = function () {\n _this.setDuration(_this.mementoValues.duration);\n };\n\n // the bottom of the activity shape\n //\n var bottom = this.createLabel(\" \");\n bottom.setPadding(10);\n bottom.setStroke(0);\n this.lateEndLabel = bottom;\n\n // finally compose the shape with top/middle/bottom in VerticalLayout\n //\n this.add(top);\n this.add(this.activityLabel);\n this.add(bottom);\n\n // set some good default value for the activity\n //\n this.setDuration(1);\n },\n\n /**\r\n * @method\r\n * Set the duration for the activity. This triggers a complete recalculation of the complete\r\n * diagram. No further calls are required\r\n *\r\n * @param {Number} duration the new Duration for the activity\r\n */\n setDuration: function setDuration(duration) {\n\n if (this.mementoValues.duration !== duration) {\n // store the new value\n this.mementoValues.duration = duration;\n\n // update the labels for duration\n this.durationLabel.setText(this.mementoValues.duration);\n }\n\n this.earlyEndLabel.setText(this.mementoValues.duration);\n\n // notify all children that a parent value has been changed\n // Just knock on the inputPort...\n //\n var connections = this.outputPort.getConnections();\n connections.each(function (i, conn) {\n var targetPort = conn.getTarget();\n targetPort.setValue();\n });\n\n // propagate the lateFinish up to all parent nodes if we are a leaf\n //\n if (connections.getSize() === 0) {\n var lateFinish = parseFloat(this.earlyEndLabel.getText());\n this.setLateFinish(lateFinish);\n }\n },\n\n getEarlyEnd: function getEarlyEnd() {\n return this.mementoValues.duration;\n },\n\n setLateFinish: function setLateFinish(value) {\n var lateStart = value - this.mementoValues.duration;\n\n this.lateEndLabel.setText(value);\n },\n\n /**\r\n * @method\r\n * help method to create some labels\r\n *\r\n * @param {String} txt the label to display\r\n * @returns {draw2d.shape.basic.Label}\r\n */\n createLabel: function createLabel(txt) {\n var label = new _packages2.default.shape.basic.Label({ text: txt });\n label.setStroke(1);\n label.setColor(this.darkerBgColor);\n label.setRadius(0);\n label.setBackgroundColor(null);\n label.setPadding(5);\n label.setColor(this.bgColor.darker(0.2));\n label.onDoubleClick = function (angle) {/* ignore them for the layout elements*/\n };\n\n return label;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setBackgroundColor: function setBackgroundColor(color) {\n this._super(color);\n\n // calculate the new lighter and darker colors for the gradient\n //\n this.lighterBgColor = this.bgColor.lighter(0.2).rgba();\n this.darkerBgColor = this.bgColor.darker(0.2).rgba();\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n\n // repaint can be blocked during deserialization and if the shape\n // not part of any canvas.\n //\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n if (this.getAlpha() < 0.9) {\n attributes.fill = this.bgColor.rgba();\n } else {\n attributes.fill = [\"90\", this.bgColor.hash(), this.lighterBgColor].join(\"-\");\n }\n\n this._super(attributes);\n }\n}); /**\r\n * @class draw2d.shape.pert.Start\r\n *\r\n * NOT FOR PRODUCTIVE\r\n *\r\n * Checkout [Wikipedia PERT][1] for more information.\r\n *\r\n * Double click on the Task name or the top middle number to change the value.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.add( new draw2d.shape.pert.Start(),10,10);\r\n * canvas.add( new draw2d.shape.pert.Activity(),80,130);\r\n * canvas.add( new draw2d.shape.pert.Activity(),180,50);\r\n *\r\n * [1] http://en.wikipedia.org/wiki/Program_Evaluation_and_Review_Technique\r\n *\r\n * @extends draw2d.shape.layout.VerticalLayout\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/state/Connection.js\":\n/*!***************************************!*\\\n !*** ./src/shape/state/Connection.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.state.Connection = _packages2.default.Connection.extend({\n\n NAME: \"draw2d.shape.state.Connection\",\n\n DEFAULT_COLOR: new _packages2.default.util.Color(\"#4D90FE\"),\n\n init: function init(attr, setter, getter) {\n this._super(extend({ router: null, stroke: 2 }, attr), setter, getter);\n\n this.setTargetDecorator(new _packages2.default.decoration.connection.ArrowDecorator(17, 8));\n\n this.label = new _packages2.default.shape.basic.Label({ text: \"label\" });\n this.label.setStroke(1);\n this.label.setPadding(2);\n this.label.setBackgroundColor(\"#f0f0f0\");\n this.add(this.label, new _packages2.default.layout.locator.ParallelMidpointLocator());\n },\n /**\r\n * @method\r\n * Set the text to show if the state shape\r\n *\r\n * @param {String} text\r\n */\n setLabel: function setLabel(text) {\n this.label.setText(text);\n\n // hide the label if no text available\n this.label.setVisible(!(text === null || text === \"\"));\n this.fireEvent(\"change:label\", { value: text });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the label of the shape\r\n *\r\n */\n getLabel: function getLabel() {\n return this.label.getText();\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n return extend(this._super(), {\n label: this.getLabel()\n });\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.label !== \"undefined\") {\n this.setLabel(memento.label);\n }\n }\n\n}); /**\r\n * @class draw2d.shape.state.Connection\r\n *\r\n * Connection designed for a state diagram with arrow decoration at the\r\n * target of the connection and a label\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.state.Start();\r\n * let end = new draw2d.shape.state.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,180);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * let c = new draw2d.shape.state.Connection({\r\n * \t source : start.getOutputPort(0),\r\n * target : end.getInputPort(0)\r\n * });\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n *\r\n * @extends draw2d.Connection\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/state/End.js\":\n/*!********************************!*\\\n !*** ./src/shape/state/End.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.state.End = _packages2.default.shape.basic.Circle.extend({\n\n NAME: \"draw2d.shape.state.End\",\n\n DEFAULT_COLOR: new _packages2.default.util.Color(\"#4D90FE\"),\n\n init: function init(attr, setter, getter) {\n this.innerCircle = new _packages2.default.shape.basic.Circle(20);\n\n this._super(attr, setter, getter);\n\n this.port = this.createPort(\"input\", new _packages2.default.layout.locator.TopLocator());\n this.port.setConnectionAnchor(new _packages2.default.layout.anchor.ShortesPathConnectionAnchor(this.port));\n\n this.setDimension(50, 50);\n this.setBackgroundColor(this.DEFAULT_COLOR);\n this.installEditPolicy(new _packages2.default.policy.figure.AntSelectionFeedbackPolicy());\n\n this.innerCircle.setStroke(2);\n this.innerCircle.setBackgroundColor(null);\n this.add(this.innerCircle, new _packages2.default.layout.locator.CenterLocator());\n\n this.setStroke(0);\n //this.setColor(this.DEFAULT_COLOR.darker());\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this._super(w, h);\n this.innerCircle.setDimension(this.getWidth() - 10, this.getHeight() - 10);\n }\n}); /**\r\n * @class draw2d.shape.state.End\r\n *\r\n * The end node for a state diagram\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * let end = new draw2d.shape.state.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( end, 230,80);\r\n *\r\n * @extends draw2d.shape.basic.Circle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/state/Start.js\":\n/*!**********************************!*\\\n !*** ./src/shape/state/Start.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.state.Start = _packages2.default.shape.basic.Circle.extend({\n\n NAME: \"draw2d.shape.state.Start\",\n\n DEFAULT_COLOR: new _packages2.default.util.Color(\"#3369E8\"),\n\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.port = this.createPort(\"output\", new _packages2.default.layout.locator.BottomLocator());\n this.port.setConnectionAnchor(new _packages2.default.layout.anchor.ShortesPathConnectionAnchor(this.port));\n\n this.setDimension(50, 50);\n this.setBackgroundColor(this.DEFAULT_COLOR);\n this.installEditPolicy(new _packages2.default.policy.figure.AntSelectionFeedbackPolicy());\n\n this.setStroke(0);\n //this.setColor(this.DEFAULT_COLOR.darker());\n\n var label = new _packages2.default.shape.basic.Label({ text: \"START\" });\n label.setStroke(0);\n label.setFontColor(\"#ffffff\");\n label.setFontFamily('\"Open Sans\",sans-serif');\n this.add(label, new _packages2.default.layout.locator.CenterLocator());\n }\n}); /**\r\n * @class draw2d.shape.state.Start\r\n *\r\n * The start node for a state diagram\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.state.Start({color:\"#3d3d3d\"});\r\n *\r\n * canvas.add(figure,50,10);\r\n *\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/state/State.js\":\n/*!**********************************!*\\\n !*** ./src/shape/state/State.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.state.State = _packages2.default.shape.layout.VerticalLayout.extend({\n\n NAME: \"draw2d.shape.state.State\",\n\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.port = this.createPort(\"hybrid\", new _packages2.default.layout.locator.BottomLocator());\n this.port.setConnectionAnchor(new _packages2.default.layout.anchor.ChopboxConnectionAnchor(this.port));\n\n this.setBackgroundColor(\"#f3f3f3\");\n\n // UI representation\n this.setStroke(1);\n this.setColor(\"#e0e0e0\");\n this.setRadius(5);\n\n // Compose the top row of the shape\n //\n var top = this.createLabel(\"State\").setStroke(0);\n this.label = top;\n\n // the middle part of the shape\n // This part contains the ports for the connection\n //\n var center = new _packages2.default.shape.basic.Rectangle();\n center.getHeight = function () {\n return 1;\n };\n center.setMinWidth(90);\n center.setColor(\"#e0e0e0\");\n\n // the bottom of the activity shape\n //\n var bottom = new _packages2.default.shape.basic.Rectangle();\n bottom.setMinHeight(30);\n bottom.setStroke(0);\n bottom.setBackgroundColor(null);\n\n // finally compose the shape with top/middle/bottom in VerticalLayout\n //\n this.add(top);\n this.add(center);\n this.add(bottom);\n },\n\n /**\r\n * @method\r\n * Set the text to show if the state shape\r\n *\r\n * @param {String} text\r\n */\n setLabel: function setLabel(text) {\n this.label.setText(text);\n this.fireEvent(\"change:label\", { value: text });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the label of the shape\r\n *\r\n */\n getLabel: function getLabel() {\n return this.label.getText();\n },\n\n /**\r\n * @method\r\n * helper method to create some labels\r\n *\r\n * @param {String} txt the label to display\r\n * @returns {draw2d.shape.basic.Label}\r\n * @private\r\n */\n createLabel: function createLabel(txt) {\n var label = new _packages2.default.shape.basic.Label(txt);\n label.setStroke(1);\n label.setColor(this.darkerBgColor);\n label.setRadius(0);\n label.setBackgroundColor(null);\n label.setPadding(5);\n label.setColor(this.bgColor.darker(0.2));\n label.onDoubleClick = function (angle) {/* ignore them for the layout elements*/\n };\n\n return label;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n return extend(this._super(), {\n label: this.getLabel()\n });\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.label !== \"undefined\") {\n this.setLabel(memento.label);\n }\n }\n}); /**\r\n * @class draw2d.shape.state.State\r\n *\r\n * a state shape for a state diagram\r\n *\r\n * @example preview small frame\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.state.Start();\r\n * let state = new draw2d.shape.state.State();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( state, 230,180);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * let c = new draw2d.shape.state.Connection({\r\n * \t\tsource : start.getOutputPort(0),\r\n * target : state.getInputPort(0)\r\n * });\r\n *\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n * @extends draw2d.shape.layout.VerticalLayout\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/widget/Slider.js\":\n/*!************************************!*\\\n !*** ./src/shape/widget/Slider.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _shifty = __webpack_require__(/*! shifty */ \"./node_modules/shifty/dist/shifty.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.widget.Slider\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let slider = new draw2d.shape.widget.Slider({width:120, height:20});\r\n * canvas.add( slider,100,60);\r\n *\r\n * @extends draw2d.shape.widget.Widget\r\n */\n_packages2.default.shape.widget.Slider = _packages2.default.shape.widget.Widget.extend({\n\n NAME: \"draw2d.shape.widget.Slider\",\n\n DEFAULT_COLOR_THUMB: new _packages2.default.util.Color(\"#bddf69\"),\n DEFAULT_COLOR_BG: new _packages2.default.util.Color(\"#d3d3d3\"),\n\n init: function init(attr, setter, getter) {\n this.currentValue = 0; // [0..100]\n this.slideBoundingBox = new _packages2.default.geo.Rectangle(0, 0, 10, 20);\n this.padding = { top: 4, right: 4, bottom: 4, left: 4 };\n this.panning = false;\n this.thumbGrow = 0;\n\n this._super(extend({\n width: 150,\n height: 15,\n stroke: 1,\n radius: 4,\n resizeable: true,\n color: this.DEFAULT_COLOR_THUMB,\n bgColor: this.DEFAULT_COLOR_BG,\n value: 50\n }, attr), extend({\n /** @attr {Number} padding the padding in pixel around the text */\n padding: this.setPadding,\n /** @attr {Number} value the new value of the slider. values must be in range of [0..100] */\n value: this.setValue\n }, setter), extend({\n padding: this.getPadding,\n value: this.getValue\n }, getter));\n\n this.setMinHeight(15);\n this.setMinWidth(80);\n },\n\n /**\r\n * @method\r\n * Create the additional elements for the figure\r\n *\r\n */\n createSet: function createSet() {\n var result = this.canvas.paper.set();\n var thumb = this.canvas.paper.rect(0, 0, 10, 20);\n thumb.node.style.cursor = \"col-resize\";\n result.push(thumb);\n\n return result;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this._super(w, h);\n this.slideBoundingBox.setBoundary(this.padding.left, 0, this.getWidth() - this.padding.right, this.getHeight());\n this.slideBoundingBox.setHeight(this.getHeight() + 1);\n\n // TODO: and repaint again.....two repaints for one \"setDimension\"....BAD\n //\n this.repaint();\n },\n\n /**\r\n * @method\r\n * Set the padding of the element\r\n *\r\n * // Alternatively you can use the attr method:\r\n * //\r\n * // set the padding for top,left,bottom,right in one call\r\n * figure.attr({\r\n * padding: 3\r\n * });\r\n *\r\n * // update the padding left and top\r\n * figure.attr({\r\n * padding: {left:3, top:30}\r\n * });\r\n *\r\n * @param {Number|Object} padding The new padding\r\n * @since 5.6.0\r\n **/\n setPadding: function setPadding(padding) {\n this.clearCache();\n if (typeof padding === \"number\") {\n this.padding = { top: padding, right: padding, bottom: padding, left: padding };\n } else {\n this.padding = extend(this.padding, padding);\n }\n this.repaint();\n this.fireEvent(\"change:padding\", { value: this.padding });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the padding of the element.\r\n *\r\n * @since 5.6.0\r\n **/\n getPadding: function getPadding() {\n return this.padding;\n },\n\n /**\r\n * @method\r\n * Called if the value of the slider has been changed.\r\n *\r\n * @param {Number} value The new value of the slider in percentage [0..100]\r\n * @template\r\n */\n onValueChange: function onValueChange(value) {},\n\n /**\r\n * @method\r\n * Will be called if the drag and drop action begins. You can return [false] if you\r\n * want avoid that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} true if the figure accepts dragging\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n // check if the use has been clicked on the thumb.\n // Return \"false\" to prevent drag&drop operation.\n //\n if (this.slideBoundingBox.hitTest(x, y)) {\n\n this.panningX = x;\n this.panningY = y;\n this.panning = true;\n var tweenable = new _shifty.Tweenable();\n tweenable.tween({\n from: { grow: this.thumbGrow },\n to: { grow: 10 },\n duration: 500,\n easing: 'easeOutQuart',\n step: function (state) {\n this.thumbGrow = state.grow;\n this.repaint();\n }.bind(this),\n finish: function finish() {\n tweenable.dispose();\n }\n });\n return false;\n }\n\n return this._super(x, y, shiftKey, ctrlKey);\n },\n\n /**\r\n * @method\r\n * Called by the framework if the figure returns false for the drag operation. In this\r\n * case we send a \"panning\" event - mouseDown + mouseMove. This is very useful for\r\n * UI-Widget like slider, spinner,...\r\n *\r\n * @param {Number} dx the x difference between the mouse down operation and now\r\n * @param {Number} dy the y difference between the mouse down operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n */\n onPanning: function onPanning(dx, dy, dx2, dy2) {\n // calculate the current position of the mouse pos\n //\n var thumbW2 = this.slideBoundingBox.w / 2;\n var width = this.getWidth();\n var sliderWidth = width - this.padding.left - this.padding.right;\n\n var figurePos = Math.min(width, Math.max(0, this.panningX + dx));\n var sliderPos = Math.min(width - this.padding.left - this.padding.right, figurePos - this.padding.left) - thumbW2;\n\n this.setValue(100 / sliderWidth * sliderPos);\n },\n\n /**\r\n * @inheritdoc\r\n */\n onPanningEnd: function onPanningEnd() {\n this.panning = false;\n\n var tweenable = new _shifty.Tweenable();\n tweenable.tween({\n from: { grow: this.thumbGrow },\n to: { grow: 0 },\n duration: 300,\n easing: 'easeOutQuart',\n step: function (state) {\n this.thumbGrow = state.grow;\n this.repaint();\n }.bind(this),\n finish: function finish() {\n tweenable.dispose();\n }\n });\n this.thumbGrow = 0;\n this.repaint();\n },\n\n /**\r\n * @method\r\n * Set the current value of the slider. Valid values are [0..100]\r\n *\r\n * @param {Number} value values between [0..100]\r\n */\n setValue: function setValue(value) {\n this.currentValue = Math.min(Math.max(0, value | 0), 100);\n this.repaint();\n this.onValueChange(this.currentValue);\n this.fireEvent(\"change:value\", { value: this.currentValue });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the current value of the slider\r\n *\r\n * @since 5.6.0\r\n *\r\n * @returns {Number}\r\n */\n getValue: function getValue() {\n return this.currentValue;\n },\n\n /**\r\n *\r\n * @param attributes\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n // adjust the slider to the current value and the new dimension of the widget\n //\n var thumbX = (this.getWidth() - this.padding.left - this.padding.right) / 100 * this.currentValue + this.padding.left | 0;\n this.slideBoundingBox.setX(thumbX);\n\n // update slider\n //\n if (this.svgNodes !== null) {\n var attr = this.slideBoundingBox.toJSON();\n attr.y -= this.thumbGrow / 2;\n attr.height += this.thumbGrow;\n attr.fill = this.getColor().rgba();\n attr.stroke = this.getColor().darker(0.2).rgba();\n attr.r = 4;\n this.svgNodes.attr(attr);\n }\n\n attributes.fill = \"90-\" + this.bgColor.hash() + \":5-\" + this.bgColor.lighter(0.3).hash() + \":95\";\n attributes.stroke = this.bgColor.darker(0.1).rgba();\n\n this._super(attributes);\n },\n\n applyTransformation: function applyTransformation() {\n this.svgNodes.transform(\"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/widget/Widget.js\":\n/*!************************************!*\\\n !*** ./src/shape/widget/Widget.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.widget.Widget = _packages2.default.SetFigure.extend({\n\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n }\n}); /**\r\n * @class draw2d.shape.widget.Widget\r\n * Base class for all diagrams.\r\n *\r\n * @extends draw2d.SetFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/ui/LabelEditor.js\":\n/*!*******************************!*\\\n !*** ./src/ui/LabelEditor.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.ui.LabelEditor = Class.extend({\n\n NAME: \"draw2d.ui.LabelEditor\",\n\n /**\r\n * @constructor\r\n * Create an label editor with a dedicated callback listener\r\n *\r\n */\n init: function init(listener) {\n // register some default listener and override this with the handover one\n this.configuration = extend({\n onCommit: function onCommit() {},\n onCancel: function onCancel() {},\n onStart: function onStart() {},\n text: \"Value\"\n }, listener);\n },\n\n /**\r\n * @method\r\n * Trigger the edit of the label text.\r\n *\r\n * @param {draw2d.shape.basic.Label} label the label to edit\r\n */\n start: function start(label) {\n this.configuration.onStart();\n var newText = prompt(this.configuration.text, label.getText());\n if (newText) {\n var cmd = new _packages2.default.command.CommandAttr(label, { text: newText });\n label.getCanvas().getCommandStack().execute(cmd);\n\n this.configuration.onCommit(label.getText());\n } else {\n this.configuration.onCancel();\n }\n }\n\n}); /**\r\n * @class draw2d.ui.LabelEditor\r\n * Base class for all draw2d.shape.basic.Label editors. The default implementation is to open\r\n * a simple javascript prompt dialog.<br>\r\n * Use LabelInplaceEditor or your own implementation if you need more comfort.\r\n *\r\n * @example preview small frame\r\n *\r\n * var label = new draw2d.shape.basic.Label({text:\"Double Click on me\"});\r\n *\r\n * label.installEditor(new draw2d.ui.LabelEditor({\r\n * // called after the value has been set to the LabelFigure\r\n * onCommit: $.proxy(function(value){\r\n * alert(\"new value set to:\"+value);\r\n * },this),\r\n * // called if the user abort the operation\r\n * onCancel: function(){\r\n * }\r\n * }));\r\n *\r\n * canvas.add(label,50,10);\r\n *\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/ui/LabelInplaceEditor.js\":\n/*!**************************************!*\\\n !*** ./src/ui/LabelInplaceEditor.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _jquery = __webpack_require__(/*! lib/jquery.autoresize */ \"./src/lib/jquery.autoresize.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.ui.LabelInplaceEditor\r\n *\r\n * Inplace editor for draw2d.shape.base.Label\r\n *\r\n * @example preview small frame\r\n *\r\n * var label = new draw2d.shape.basic.Label({text:\"Double Click on me\"});\r\n *\r\n * label.installEditor(new draw2d.ui.LabelInplaceEditor({\r\n * // called after the value has been set to the LabelFigure\r\n * onCommit: $.proxy(function(value){\r\n * alert(\"new value set to:\"+value);\r\n * },this),\r\n * // called if the user abort the operation\r\n * onCancel: function(){\r\n * }\r\n * }));\r\n *\r\n * canvas.add(label,50,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.ui.LabelEditor\r\n*/\n_packages2.default.ui.LabelInplaceEditor = _packages2.default.ui.LabelEditor.extend({\n\n NAME: \"draw2d.ui.LabelInplaceEditor\",\n\n /**\r\n * @constructor\r\n * @private\r\n */\n init: function init(listener) {\n this._super();\n\n // register some default listener and override this with the handover one\n this.listener = extend({\n onCommit: function onCommit() {},\n onCancel: function onCancel() {},\n onStart: function onStart() {}\n }, listener);\n },\n\n /**\r\n * @method\r\n * Trigger the edit of the label text.\r\n *\r\n * @param {draw2d.shape.basic.Label} label the label to edit\r\n */\n start: function start(label) {\n var _this = this;\n\n this.label = label;\n\n this.commitCallback = this.commit.bind(this);\n\n // commit the editor if the user clicks anywhere in the document\n //\n $(\"body\").bind(\"click\", this.commitCallback);\n\n // append the input field to the document and register\n // the ENTER and ESC key to commit /cancel the operation\n //\n this.html = $('<input id=\"inplaceeditor\">');\n this.html.val(label.getText());\n this.html.hide();\n\n $(\"body\").append(this.html);\n\n this.html.autoResize();\n\n this.html.bind(\"keyup\", function (e) {\n switch (e.which) {\n case 13:\n this.commit();\n break;\n case 27:\n this.cancel();\n break;\n }\n }.bind(this));\n\n this.html.bind(\"blur\", this.commitCallback);\n\n // avoid commit of the operation if we click inside the editor\n //\n this.html.bind(\"click\", function (e) {\n e.stopPropagation();\n e.preventDefault();\n });\n\n // Position the INPUT and init the autoresize of the element\n //\n var canvas = this.label.getCanvas();\n var bb = this.label.getBoundingBox();\n\n bb.setPosition(canvas.fromCanvasToDocumentCoordinate(bb.x, bb.y));\n\n // remove the scroll from the body if we add the canvas directly into the body\n var scrollDiv = canvas.getScrollArea();\n if (scrollDiv.is($(\"body\"))) {\n bb.translate(canvas.getScrollLeft(), canvas.getScrollTop());\n }\n\n bb.translate(-1, -1);\n bb.resize(2, 2);\n\n this.html.css({ position: \"absolute\", \"top\": bb.y, \"left\": bb.x, \"min-width\": bb.w * (1 / canvas.getZoom()), \"height\": Math.max(25, bb.h * (1 / canvas.getZoom())) });\n this.html.fadeIn(function () {\n _this.html.focus();\n _this.listener.onStart();\n });\n },\n\n /**\r\n * @method\r\n * Transfer the data from the editor into the label.<br>\r\n * Remove the editor.<br>\r\n *\r\n * @private\r\n */\n commit: function commit() {\n var _this2 = this;\n\n this.html.unbind(\"blur\", this.commitCallback);\n $(\"body\").unbind(\"click\", this.commitCallback);\n var label = this.html.val();\n var cmd = new _packages2.default.command.CommandAttr(this.label, { text: label });\n this.label.getCanvas().getCommandStack().execute(cmd);\n this.html.fadeOut(function () {\n _this2.html.remove();\n _this2.html = null;\n _this2.listener.onCommit(_this2.label.getText());\n });\n },\n\n /**\r\n * @method\r\n * Transfer the data from the editor into the label.<br>\r\n * Remove the editor.<br>\r\n * @private\r\n */\n cancel: function cancel() {\n var _this3 = this;\n\n this.html.unbind(\"blur\", this.commitCallback);\n $(\"body\").unbind(\"click\", this.commitCallback);\n this.html.fadeOut(function () {\n _this3.html.remove();\n _this3.html = null;\n _this3.listener.onCancel();\n });\n }\n});\n\n/***/ }),\n\n/***/ \"./src/util/ArrayList.js\":\n/*!*******************************!*\\\n !*** ./src/util/ArrayList.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.util.ArrayList\r\n *\r\n * <Disclaimer> Writing my own class for arrays was one of my worst ideas...\r\n *\r\n * An ArrayList stores a variable number of objects. This is similar to making an array of\r\n * objects, but with an ArrayList, items can be easily added and removed from the ArrayList\r\n * and it is resized dynamically. This can be very convenient, but it's slower than making\r\n * an array of objects when using many elements.\r\n */\n_packages2.default.util.ArrayList = Class.extend({\n\n /**\r\n * @constructor\r\n * Initializes a new instance of the ArrayList class that is empty and has\r\n * the default initial capacity.\r\n *\r\n */\n init: function init(a) {\n if (Array.isArray(a)) {\n this.data = a;\n } else {\n this.data = [];\n }\n },\n\n /**\r\n * @method\r\n * Clears the array\r\n *\r\n * @since 6.1.0\r\n */\n clear: function clear() {\n this.data = [];\n\n return this;\n },\n\n /**\r\n * @method\r\n * Reverses the order of the elements in the ArrayList. The array will be modified!\r\n *\r\n */\n reverse: function reverse() {\n this.data.reverse();\n\n return this;\n },\n\n /**\r\n * @method\r\n * The size/count of the stored objects.\r\n *\r\n * @return {Number}\r\n */\n getSize: function getSize() {\n return this.data.length;\n },\n\n /**\r\n * @method\r\n * checks to see if the Vector has any elements.\r\n *\r\n * @return {Boolean} true if the list is empty\r\n **/\n isEmpty: function isEmpty() {\n return this.getSize() === 0;\n },\n\n /**\r\n * @method\r\n * return the last element.\r\n *\r\n * @return {Object}\r\n */\n last: function last() {\n return this.data[this.data.length - 1];\n },\n\n /**\r\n * @method\r\n * Return a reference to the internal javascript native array.\r\n *\r\n * @return {Array}\r\n */\n asArray: function asArray() {\n return this.data;\n },\n\n /**\r\n * @method\r\n * returns the first element\r\n *\r\n * @return {Object}\r\n */\n first: function first() {\n if (this.data.length > 0) {\n return this.data[0];\n }\n return null;\n },\n\n /**\r\n * @method\r\n * returns an element at a specified index\r\n *\r\n * @param {Number} i\r\n * @return {Object}\r\n */\n get: function get(i) {\n return this.data[i];\n },\n\n /**\r\n * @method\r\n * Adds a element at the end of the Vector.\r\n *\r\n * @param {Object} obj the object to add\r\n */\n add: function add() {\n var _data;\n\n (_data = this.data).push.apply(_data, arguments);\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * The method removes items from an array as necessary so that all remaining items pass a\r\n * provided test. The test is a function that is passed an array item and the index of the\r\n * item within the array. Only if the test returns true will the item stay in the array.\r\n *\r\n * @param {Function} func the filter function(element,index)\r\n * @param {Object} func.value value of the element in iteration.\r\n * @since 2.0.0\r\n */\n grep: function grep(func) {\n this.data = this.data.filter(func);\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * Return ONE element which matches by the given function or <b>null</b>\r\n * if no element is found.\r\n *\r\n * var r1= figures.find(function(figure){\r\n * return figure.id===123456\r\n * });\r\n *\r\n * @param {Function} func the filter function\r\n * @param {Object} func.value value of the element in iteration.\r\n * @param {Object} func.index index of the element in collection.\r\n * @since 2.0.0\r\n */\n find: function find(func) {\n var result = this.data.filter(func);\n if (result.length === 0) {\n return null;\n }\n return result[0];\n },\n\n /**\r\n * @method\r\n * Translate all items in the array into new items. The array list is modified after this call.\r\n * You must clone the array before if you want avoid this.\r\n *\r\n * var labels = this.commands.clone().map(function(e){\r\n * return e.getLabel();\r\n * });\r\n *\r\n * @param {Function} func The function to process each item against. The first argument to the function is the value; the second argument is the index or key of the array or object property.\r\n * @param {Object} func.value value of the element in iteration.\r\n * @param {Number} func.i index of the element in iteration\r\n *\r\n * @since 4.0.0\r\n */\n map: function map(func) {\n this.data = this.data.map(func);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Removes any duplicate elements from the array. The array is modified after this call. You\r\n * must clone the array before if you want avoid this\r\n *\r\n * @since 4.0.0\r\n */\n unique: function unique() {\n this.data = this.data.filter(function (value, index, self) {\n return self.indexOf(value) === index;\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Add all elements into this array.\r\n *\r\n * @param {draw2d.util.ArrayList} list\r\n * @param {Boolean} [avoidDuplicates] checks whenever the new elements exists before insert if the parameter is to [true]\r\n *\r\n */\n addAll: function addAll(list, avoidDuplicates) {\n if (!(list instanceof _packages2.default.util.ArrayList)) {\n throw \"Unable to handle unknown object type in ArrayList.addAll\";\n }\n\n this.data = this.data.concat(list.data);\n if (avoidDuplicates) {\n this.unique();\n }\n return this;\n },\n\n /**\r\n * @method\r\n * You can use the Array list as Stack as well. this is the pop method to remove one element\r\n * at the end of the stack.\r\n *\r\n * @returns\r\n */\n pop: function pop() {\n return this.removeElementAt(this.data.length - 1);\n },\n\n /**\r\n * @method\r\n * Push one element at the top of the stack/array\r\n *\r\n * @param path\r\n */\n push: function push(value) {\n this.add(value);\n },\n\n /**\r\n * @method\r\n * Remove the element from the list\r\n *\r\n * @param {Object} obj the object to remove\r\n *\r\n * @return {Object} the removed object or null\r\n */\n remove: function remove(obj) {\n var index = this.indexOf(obj);\n if (index >= 0) {\n return this.removeElementAt(index);\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Inserts an element at a given position. Existing elements will be shifted\r\n * to the right.\r\n *\r\n * @param {Object} obj the object to insert.\r\n * @param {Number} index the insert position.\r\n *\r\n */\n insertElementAt: function insertElementAt(obj, index) {\n this.data.splice(index, 0, obj);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Removes an element at a specific index.\r\n *\r\n * @param {Number} index the index of the element to remove\r\n * @return {Object} the removed object\r\n */\n removeElementAt: function removeElementAt(index) {\n var element = this.data[index];\n\n this.data.splice(index, 1);\n\n return element;\n },\n\n /**\r\n * @method\r\n * removes all given elements in the ArrayList\r\n *\r\n * @param {draw2d.util.ArrayList} elements The elements to remove\r\n */\n removeAll: function removeAll(elements) {\n var _this = this;\n\n if (elements instanceof _packages2.default.util.ArrayList) {\n elements = elements.data;\n }\n\n if (Array.isArray(elements)) {\n elements.forEach(function (e) {\n _this.remove(e);\n });\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the zero based index of the given element or -1 if the element\r\n * not in the list.\r\n *\r\n * @param {Object} obj the element to check\r\n *\r\n * @return {Number} the index of the element or -1\r\n */\n indexOf: function indexOf(obj) {\n return this.data.indexOf(obj);\n },\n\n /**\r\n * @method\r\n * returns true if the element is in the Vector, otherwise false.\r\n *\r\n * @param {Object} obj the object to check\r\n *\r\n * @return {Boolean}\r\n */\n contains: function contains(obj) {\n return this.indexOf(obj) !== -1;\n },\n\n /**\r\n * @method\r\n * Sorts the collection based on a field name or sort a function. See on http://www.w3schools.com/jsref/jsref_sort.asp\r\n * if you use a sort function.\r\n *\r\n * @param {String|Function} f the field name for the sorting or a sort function\r\n *\r\n * @return {draw2d.util.ArrayList} self\r\n */\n sort: function sort(f) {\n if (typeof f === \"function\") {\n this.data.sort(f);\n } else {\n this.data.sort(function (a, b) {\n if (a[f] < b[f]) return -1;\n if (a[f] > b[f]) return 1;\n return 0;\n });\n }\n return this;\n },\n\n /**\r\n * @method\r\n * Copies the contents of a Vector to another Vector returning the new Vector.\r\n *\r\n * @param {Boolean} [deep] call \"clone\" of each elements and add the clone to the new ArrayList\r\n *\r\n * @returns {draw2d.util.ArrayList} the new ArrayList\r\n */\n clone: function clone(deep) {\n var newVector = new _packages2.default.util.ArrayList();\n\n if (deep) {\n for (var i = 0; i < this.data.length; i++) {\n newVector.data.push(this.data[i].clone());\n }\n } else {\n newVector.data = this.data.slice(0);\n }\n\n return newVector;\n },\n\n /**\r\n * @method\r\n * Iterates over the list of elements, yielding each in turn to an iterator\r\n * function.\r\n * Each invocation of iterator is called with two arguments: (index, element).\r\n *\r\n * @param {Function} func the callback function to call for each element\r\n * @param {Number} func.i index of the element in iteration\r\n * @param {Object} func.value value of the element in iteration.\r\n * @param {Boolean} [reverse] optional parameter. Iterate the collection reverse if it set to <b>true</b>\r\n *\r\n */\n each: function each(func, reverse) {\n if (typeof reverse !== \"undefined\" && reverse === true) {\n for (var i = this.data.length - 1; i >= 0; i--) {\n if (func(i, this.data[i]) === false) break;\n }\n } else {\n for (var _i = 0; _i < this.data.length; _i++) {\n if (func(_i, this.data[_i]) === false) break;\n }\n }\n\n return this;\n },\n\n // overwriteElementAt() - overwrites the element with an object at the specific index.\n overwriteElementAt: function overwriteElementAt(obj, index) {\n this.data[index] = obj;\n\n return this;\n },\n\n getPersistentAttributes: function getPersistentAttributes() {\n return { data: this.data };\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n * @returns\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this.data = memento.data;\n }\n\n});\n\n_packages2.default.util.ArrayList.EMPTY_LIST = new _packages2.default.util.ArrayList();\n\n/***/ }),\n\n/***/ \"./src/util/Base64.js\":\n/*!****************************!*\\\n !*** ./src/util/Base64.js ***!\n \\****************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.Base64 = {\n\n /**\r\n * Maps bytes to characters.\r\n * @type {Object}\r\n * @private\r\n */\n byteToCharMap_: null,\n\n /**\r\n * Maps characters to bytes.\r\n * @type {Object}\r\n * @private\r\n */\n charToByteMap_: null,\n\n /**\r\n * Maps bytes to websafe characters.\r\n * @type {Object}\r\n * @private\r\n */\n byteToCharMapWebSafe_: null,\n\n /**\r\n * Maps websafe characters to bytes.\r\n * @type {Object}\r\n * @private\r\n */\n charToByteMapWebSafe_: null,\n\n /**\r\n * Our default alphabet, shared between\r\n * ENCODED_VALS and ENCODED_VALS_WEBSAFE\r\n * @type {string}\r\n */\n ENCODED_VALS_BASE: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',\n\n /**\r\n * Our default alphabet. Value 64 (=) is special; it means \"nothing.\"\r\n * @type {string}\r\n */\n ENCODED_VALS: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' + '+/=',\n\n /**\r\n * Our websafe alphabet.\r\n * @type {string}\r\n */\n ENCODED_VALS_WEBSAFE: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' + '-_.',\n\n encodeByteArray: function encodeByteArray(input, opt_webSafe) {\n _packages2.default.util.Base64.init();\n\n var byteToCharMap = opt_webSafe ? _packages2.default.util.Base64.byteToCharMapWebSafe_ : _packages2.default.util.Base64.byteToCharMap_;\n\n var output = [];\n\n for (var i = 0; i < input.length; i += 3) {\n var byte1 = input[i];\n var haveByte2 = i + 1 < input.length;\n var byte2 = haveByte2 ? input[i + 1] : 0;\n var haveByte3 = i + 2 < input.length;\n var byte3 = haveByte3 ? input[i + 2] : 0;\n\n var outByte1 = byte1 >> 2;\n var outByte2 = (byte1 & 0x03) << 4 | byte2 >> 4;\n var outByte3 = (byte2 & 0x0F) << 2 | byte3 >> 6;\n var outByte4 = byte3 & 0x3F;\n\n if (!haveByte3) {\n outByte4 = 64;\n\n if (!haveByte2) {\n outByte3 = 64;\n }\n }\n\n output.push(byteToCharMap[outByte1], byteToCharMap[outByte2], byteToCharMap[outByte3], byteToCharMap[outByte4]);\n }\n\n return output.join('');\n },\n\n /**\r\n * @method\r\n * Base64-encode a string.\r\n *\r\n * @param {string} input A string to encode.\r\n * @param {boolean=} opt_webSafe If true, we should use the alternative alphabet.\r\n * @return {string} The base64 encoded string.\r\n */\n encode: function encode(input, opt_webSafe) {\n return _packages2.default.util.Base64.encodeByteArray(_packages2.default.util.Base64.stringToByteArray(input), opt_webSafe);\n },\n\n /**\r\n * @method\r\n * Base64-decode a string.\r\n *\r\n * @param {String} input to decode (length not required to be a multiple of 4).\r\n * @param {boolean=} opt_webSafe True if we should use the\r\n * alternative alphabet.\r\n * @return {Array} bytes representing the decoded value.\r\n */\n decode: function decode(input, opt_webSafe) {\n _packages2.default.util.Base64.init();\n\n var charToByteMap = opt_webSafe ? _packages2.default.util.Base64.charToByteMapWebSafe_ : _packages2.default.util.Base64.charToByteMap_;\n\n var output = [];\n\n for (var i = 0; i < input.length;) {\n var byte1 = charToByteMap[input.charAt(i++)];\n\n var haveByte2 = i < input.length;\n var byte2 = haveByte2 ? charToByteMap[input.charAt(i)] : 0;\n ++i;\n\n var haveByte3 = i < input.length;\n var byte3 = haveByte3 ? charToByteMap[input.charAt(i)] : 0;\n ++i;\n\n var haveByte4 = i < input.length;\n var byte4 = haveByte4 ? charToByteMap[input.charAt(i)] : 0;\n ++i;\n\n if (byte1 == null || byte2 == null || byte3 == null || byte4 == null) {\n throw Error();\n }\n\n var outByte1 = byte1 << 2 | byte2 >> 4;\n output.push(outByte1);\n\n if (byte3 != 64) {\n var outByte2 = byte2 << 4 & 0xF0 | byte3 >> 2;\n output.push(outByte2);\n\n if (byte4 != 64) {\n var outByte3 = byte3 << 6 & 0xC0 | byte4;\n output.push(outByte3);\n }\n }\n }\n\n return output;\n },\n\n /**\r\n * Turns a string into an array of bytes; a \"byte\" being a JS number in the\r\n * range 0-255.\r\n * @param {string} str String value to arrify.\r\n * @return {!Array.<number>} Array of numbers corresponding to the\r\n * UCS character codes of each character in str.\r\n */\n stringToByteArray: function stringToByteArray(str) {\n var output = [],\n p = 0;\n for (var i = 0; i < str.length; i++) {\n var c = str.charCodeAt(i);\n while (c > 0xff) {\n output[p++] = c & 0xff;\n c >>= 8;\n }\n output[p++] = c;\n }\n return output;\n },\n\n init: function init() {\n if (!_packages2.default.util.Base64.byteToCharMap_) {\n _packages2.default.util.Base64.byteToCharMap_ = {};\n _packages2.default.util.Base64.charToByteMap_ = {};\n _packages2.default.util.Base64.byteToCharMapWebSafe_ = {};\n _packages2.default.util.Base64.charToByteMapWebSafe_ = {};\n\n // We want quick mappings back and forth, so we precompute two maps.\n for (var i = 0; i < _packages2.default.util.Base64.ENCODED_VALS.length; i++) {\n _packages2.default.util.Base64.byteToCharMap_[i] = _packages2.default.util.Base64.ENCODED_VALS.charAt(i);\n _packages2.default.util.Base64.charToByteMap_[_packages2.default.util.Base64.byteToCharMap_[i]] = i;\n _packages2.default.util.Base64.byteToCharMapWebSafe_[i] = _packages2.default.util.Base64.ENCODED_VALS_WEBSAFE.charAt(i);\n _packages2.default.util.Base64.charToByteMapWebSafe_[_packages2.default.util.Base64.byteToCharMapWebSafe_[i]] = i;\n }\n }\n }\n};\n\n/***/ }),\n\n/***/ \"./src/util/Color.js\":\n/*!***************************!*\\\n !*** ./src/util/Color.js ***!\n \\***************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; /**\r\n * @class\r\n * Util class to handle colors in the draw2d enviroment.\r\n *\r\n * // Create a new Color with RGB values\r\n * var color = new draw2d.util.Color(127,0,0);\r\n *\r\n * // of from a hex string\r\n * var color2 = new draw2d.util.Color(\"#f00000\");\r\n *\r\n * // Create a little bit darker color\r\n * var darkerColor = color.darker(0.2); // 20% darker\r\n *\r\n * // create a optimal text color if 'color' the background color\r\n * // (best in meaning of contrast and readability)\r\n * var fontColor = color.getIdealTextColor();\r\n *\r\n */\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.Color = Class.extend({\n\n /**\r\n * @constructor\r\n * Create a new Color object\r\n *\r\n * @param {Number|String|draw2d.util.Color|Array} red\r\n * @param {Number} green\r\n * @param {Number} blue\r\n * @param {Number} [alpha]\r\n */\n init: function init(red, green, blue, alpha) {\n\n this.hashString = null;\n\n if (typeof red === \"undefined\" || red === null) {\n this.hashString = \"none\";\n } else if (red instanceof _packages2.default.util.Color) {\n if (red.hashString === \"none\") {\n this.hashString = \"none\";\n } else {\n this.red = red.red;\n this.green = red.green;\n this.blue = red.blue;\n this.alpha = red.alpha;\n }\n } else if (typeof red === \"string\") {\n if (red === \"none\") {\n this.hashString = \"none\";\n } else {\n var rgba = this.hex2rgb(red);\n this.red = rgba[0];\n this.green = rgba[1];\n this.blue = rgba[2];\n this.alpha = rgba[3];\n }\n }\n // JSON struct of {red:###, green:###, blue:### }\n else if ((typeof red === \"undefined\" ? \"undefined\" : _typeof(red)) === \"object\" && typeof red.red === \"number\") {\n this.red = red.red;\n this.green = red.green;\n this.blue = red.blue;\n this.alpha = red.alpha;\n }\n // array detection 1\n else if (red instanceof Array && red.length === 3) {\n this.red = red[0];\n this.green = red[1];\n this.blue = red[2];\n this.alpha = red[3];\n }\n // array detection 2\n else if ((typeof red === \"undefined\" ? \"undefined\" : _typeof(red)) === \"object\" && typeof red.length === \"number\" && red.length === 3) {\n this.red = red[0];\n this.green = red[1];\n this.blue = red[2];\n this.alpha = red[3];\n } else {\n this.red = parseInt(red);\n this.green = parseInt(green);\n this.blue = parseInt(blue);\n this.alpha = typeof alpha === 'undefined' ? 1 : parseFloat(alpha);\n }\n },\n\n /**\r\n * @method\r\n * Convert the color object into a HTML CSS representation\r\n * @return {String} the color in rgb(##,##,##) representation\r\n **/\n getHTMLStyle: function getHTMLStyle() {\n if (typeof this.red === \"undefined\") return \"rgba(0,0,0,0)\";\n\n return \"rgba(\" + this.red + \",\" + this.green + \",\" + this.blue + \",\" + this.alpha + \")\";\n },\n\n /**\r\n * @method\r\n * The red part of the color.\r\n *\r\n * @return {Number} the [red] part of the color.\r\n **/\n getRed: function getRed() {\n return this.red;\n },\n\n /**\r\n * @method\r\n * The green part of the color.\r\n *\r\n * @return {Number} the [green] part of the color.\r\n **/\n getGreen: function getGreen() {\n return this.green;\n },\n\n /**\r\n * @method\r\n * The blue part of the color\r\n *\r\n * @return {Number} the [blue] part of the color.\r\n **/\n getBlue: function getBlue() {\n return this.blue;\n },\n\n /**\r\n * @method\r\n * The alpha part of the color\r\n *\r\n * @return {Number} the [alpha] part of the color.\r\n **/\n getAlpha: function getAlpha() {\n return this.alpha;\n },\n\n /**\r\n * @method\r\n * Returns the ideal Text Color. Useful for font color selection by a given background color.\r\n *\r\n * @return {draw2d.util.Color} The <i>ideal</i> inverse color.\r\n **/\n getIdealTextColor: function getIdealTextColor() {\n var nThreshold = 105;\n var bgDelta = this.red * 0.299 + this.green * 0.587 + this.blue * 0.114;\n return 255 - bgDelta < nThreshold ? new _packages2.default.util.Color(0, 0, 0) : new _packages2.default.util.Color(255, 255, 255);\n },\n\n /**\r\n * return array of [r,g,b,a] from any valid color. if failed returns [0,0,0,1]\r\n *\r\n * @param hexcolor\r\n * @returns {*}\r\n */\n hex2rgb: function hex2rgb(color) {\n if (!color) {\n return [0, 0, 0, 1];\n }\n\n if (color.toLowerCase() === 'transparent') {\n return [0, 0, 0, 0];\n }\n\n if (color[0] === '#') {\n if (color.length < 7) {\n // convert #RGB and #RGBA to #RRGGBB and #RRGGBBAA\n color = '#' + color[1] + color[1] + color[2] + color[2] + color[3] + color[3] + (color.length > 4 ? color[4] + color[4] : '');\n }\n return [parseInt(color.substr(1, 2), 16), parseInt(color.substr(3, 2), 16), parseInt(color.substr(5, 2), 16), color.length > 7 ? parseInt(color.substr(7, 2), 16) / 255 : 1];\n }\n\n if (color.indexOf('rgb') === -1) {\n // convert named colors\n var temp_elem = document.body.appendChild(document.createElement('fictum')); // intentionally use unknown tag to lower chances of css rule override with !important\n var flag = 'rgb(1, 2, 3)'; // this flag tested on chrome 59, ff 53, ie9, ie10, ie11, edge 14\n temp_elem.style.color = flag;\n if (temp_elem.style.color !== flag) {\n return [0, 0, 0, 1]; // color set failed - some monstrous css rule is probably taking over the color of our object\n }\n temp_elem.style.color = color;\n\n if (temp_elem.style.color === flag || temp_elem.style.color === '') {\n return [0, 0, 0, 1]; // color parse failed\n }\n color = getComputedStyle(temp_elem).color;\n document.body.removeChild(temp_elem);\n }\n\n if (color.indexOf('rgb') === 0) {\n if (color.indexOf('rgba') === -1) {\n color += ',1'; // convert 'rgb(R,G,B)' to 'rgb(R,G,B)A' which looks awful but will pass the regxep below\n }\n return color.match(/[\\.\\d]+/g).map(function (a) {\n return +a;\n });\n }\n },\n\n /**\r\n *\r\n **/\n hex: function hex() {\n return this.int2hex(this.red) + this.int2hex(this.green) + this.int2hex(this.blue)\n // breaks raphaelJS...so don'T use it right now\n //(this.alpha * 255).toString(16).substring(0,2).toUpperCase()\n ;\n },\n\n /**\r\n * @method\r\n * Convert the color object into a HTML CSS representation\r\n * @return {String} the color in rgb(##,##,##) representation\r\n **/\n rgba: function rgba() {\n return this.getHTMLStyle();\n },\n\n /**\r\n * @method\r\n * Convert the color object into a HTML CSS representation\r\n * @return {String} the color in #RRGGBB representation\r\n **/\n hash: function hash() {\n if (this.hashString === null) {\n this.hashString = \"#\" + this.hex();\n }\n return this.hashString;\n },\n\n /**\r\n * @private\r\n */\n int2hex: function int2hex(v) {\n v = Math.round(Math.min(Math.max(0, v), 255));\n return \"0123456789ABCDEF\".charAt((v - v % 16) / 16) + \"0123456789ABCDEF\".charAt(v % 16);\n },\n\n /**\r\n * @method\r\n * Returns a darker color of the given one. The original color is unchanged.\r\n *\r\n * @param {Number} fraction Darkness fraction between [0..1].\r\n * @return{draw2d.util.Color} Darker color.\r\n */\n darker: function darker(fraction) {\n // we can't \"darker\" a undefined color. In this case we return the undefnied color itself\n //\n if (this.hashString === \"none\") return this;\n\n fraction = typeof fraction === 'undefined' ? 0.1 : fraction;\n\n var red = parseInt(Math.round(this.getRed() * (1.0 - fraction)));\n var green = parseInt(Math.round(this.getGreen() * (1.0 - fraction)));\n var blue = parseInt(Math.round(this.getBlue() * (1.0 - fraction)));\n\n if (red < 0) red = 0;else if (red > 255) red = 255;\n if (green < 0) green = 0;else if (green > 255) green = 255;\n if (blue < 0) blue = 0;else if (blue > 255) blue = 255;\n\n return new _packages2.default.util.Color(red, green, blue, this.alpha);\n },\n\n /**\r\n * @method\r\n * Make a color lighter. The original color is unchanged.\r\n *\r\n * @param {Number} fraction lighter fraction between [0..1].\r\n * @return {draw2d.util.Color} Lighter color.\r\n */\n lighter: function lighter(fraction) {\n // we can't \"lighter\" a undefined color. In this case we return the undefined color itself\n //\n if (this.hashString === \"none\") return this;\n\n fraction = typeof fraction === 'undefined' ? 0.1 : fraction;\n\n var red = parseInt(Math.round(this.getRed() * (1.0 + fraction)));\n var green = parseInt(Math.round(this.getGreen() * (1.0 + fraction)));\n var blue = parseInt(Math.round(this.getBlue() * (1.0 + fraction)));\n\n if (red < 0) red = 0;else if (red > 255) red = 255;\n if (green < 0) green = 0;else if (green > 255) green = 255;\n if (blue < 0) blue = 0;else if (blue > 255) blue = 255;\n\n return new _packages2.default.util.Color(red, green, blue, this.alpha);\n },\n\n /**\r\n * @method\r\n * Return a new color wich is faded to the given color.\r\n * @param {draw2d.util.Color} color\r\n * @param {Number} pc the fade percentage in [0..1]\r\n * @returns {draw2d.util.Color}\r\n *\r\n * @since 2.1.0\r\n */\n fadeTo: function fadeTo(color, pc) {\n\n var r = Math.floor(this.red + pc * (color.red - this.red) + .5);\n var g = Math.floor(this.green + pc * (color.green - this.green) + .5);\n var b = Math.floor(this.blue + pc * (color.blue - this.blue) + .5);\n var a = Math.floor(this.alpha + pc * (color.alpha - this.alpha) + .5);\n\n return new _packages2.default.util.Color(r, g, b, a);\n },\n\n /**\r\n * @method\r\n * Compares two color objects\r\n *\r\n * @param {draw2d.util.Color} o\r\n * @return {Boolean}\r\n **/\n equals: function equals(o) {\n if (!(o instanceof _packages2.default.util.Color)) {\n return false;\n }\n return this.rgba() === o.rgba();\n }\n\n});\n\nmodule.exports = _packages2.default.util.Color;\n\n/***/ }),\n\n/***/ \"./src/util/Debug.js\":\n/*!***************************!*\\\n !*** ./src/util/Debug.js ***!\n \\***************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/*!\r\n * JavaScript Debug - v0.4 - 6/22/2010\r\n * http://benalman.com/projects/javascript-debug-console-log/\r\n *\r\n * Copyright (c) 2010 \"Cowboy\" Ben Alman\r\n * Dual licensed under the MIT and GPL licenses.\r\n * http://benalman.com/about/license/\r\n *\r\n * With lots of help from Paul Irish!\r\n * http://paulirish.com/\r\n */\n\n// Script: JavaScript Debug: A simple wrapper for console.log\n//\n// *Version: 0.4, Last Updated: 6/22/2010*\n//\n// Tested with Internet Explorer 6-8, Firefox 3-3.6, Safari 3-4, Chrome 3-5, Opera 9.6-10.5\n//\n// Home - http://benalman.com/projects/javascript-debug-console-log/\n// GitHub - http://github.com/cowboy/javascript-debug/\n// Source - http://github.com/cowboy/javascript-debug/raw/master/ba-debug.js\n// (Minified) - http://github.com/cowboy/javascript-debug/raw/master/ba-debug.min.js (1.1kb)\n//\n// About: License\n//\n// Copyright (c) 2010 \"Cowboy\" Ben Alman,\n// Dual licensed under the MIT and GPL licenses.\n// http://benalman.com/about/license/\n//\n// About: Support and Testing\n//\n// Information about what browsers this code has been tested in.\n//\n// Browsers Tested - Internet Explorer 6-8, Firefox 3-3.6, Safari 3-4, Chrome\n// 3-5, Opera 9.6-10.5\n//\n// About: Examples\n//\n// These working examples, complete with fully commented code, illustrate a few\n// ways in which this plugin can be used.\n//\n// Examples - http://benalman.com/code/projects/javascript-debug/examples/debug/\n//\n// About: Revision History\n//\n// 0.4 - (6/22/2010) Added missing passthrough methods: exception,\n// groupCollapsed, table\n// 0.3 - (6/8/2009) Initial release\n//\n// Topic: Pass-through console methods\n//\n// assert, clear, count, dir, dirxml, exception, group, groupCollapsed,\n// groupEnd, profile, profileEnd, table, time, timeEnd, trace\n//\n// These console methods are passed through (but only if both the console and\n// the method exists), so use them without fear of reprisal. Note that these\n// methods will not be passed through if the logging level is set to 0 via\n// <debug.setLevel>.\n\nwindow.debug = function () {\n var window = this,\n\n\n // Some convenient shortcuts.\n aps = Array.prototype.slice,\n con = console,\n\n\n // Public object to be returned.\n that = {},\n callback_func,\n callback_force,\n\n\n // Default logging level, show everything.\n log_level = 9,\n\n\n // Logging methods, in \"priority order\". Not all console implementations\n // will utilize these, but they will be used in the callback passed to\n // setCallback.\n log_methods = ['error', 'warn', 'info', 'debug', 'log'],\n\n\n // Pass these methods through to the console if they exist, otherwise just\n // fail gracefully. These methods are provided for convenience.\n pass_methods = 'assert clear count dir dirxml exception group groupCollapsed groupEnd profile profileEnd table time timeEnd trace'.split(' '),\n idx = pass_methods.length,\n\n\n // Logs are stored here so that they can be recalled as necessary.\n logs = [];\n\n while (--idx >= 0) {\n (function (method) {\n\n // Generate pass-through methods. These methods will be called, if they\n // exist, as long as the logging level is non-zero.\n that[method] = function () {\n log_level !== 0 && con && con[method] && con[method].apply(con, arguments);\n };\n })(pass_methods[idx]);\n }\n\n idx = log_methods.length;\n while (--idx >= 0) {\n (function (idx, level) {\n\n // Method: debug.log\n //\n // Call the console.log method if available. Adds an entry into the logs\n // array for a callback specified via <debug.setCallback>.\n //\n // Usage:\n //\n // debug.log( object [, object, ...] ); - -\n //\n // Arguments:\n //\n // object - (Object) Any valid JavaScript object.\n\n // Method: debug.debug\n //\n // Call the console.debug method if available, otherwise call console.log.\n // Adds an entry into the logs array for a callback specified via\n // <debug.setCallback>.\n //\n // Usage:\n //\n // debug.debug( object [, object, ...] ); - -\n //\n // Arguments:\n //\n // object - (Object) Any valid JavaScript object.\n\n // Method: debug.info\n //\n // Call the console.info method if available, otherwise call console.log.\n // Adds an entry into the logs array for a callback specified via\n // <debug.setCallback>.\n //\n // Usage:\n //\n // debug.info( object [, object, ...] ); - -\n //\n // Arguments:\n //\n // object - (Object) Any valid JavaScript object.\n\n // Method: debug.warn\n //\n // Call the console.warn method if available, otherwise call console.log.\n // Adds an entry into the logs array for a callback specified via\n // <debug.setCallback>.\n //\n // Usage:\n //\n // debug.warn( object [, object, ...] ); - -\n //\n // Arguments:\n //\n // object - (Object) Any valid JavaScript object.\n\n // Method: debug.error\n //\n // Call the console.error method if available, otherwise call console.log.\n // Adds an entry into the logs array for a callback specified via\n // <debug.setCallback>.\n //\n // Usage:\n //\n // debug.error( object [, object, ...] ); - -\n //\n // Arguments:\n //\n // object - (Object) Any valid JavaScript object.\n\n that[level] = function () {\n var args = aps.call(arguments),\n log_arr = [level].concat(args);\n\n logs.push(log_arr);\n exec_callback(log_arr);\n\n if (!con || !is_level(idx)) {\n return;\n }\n\n con.firebug ? con[level].apply(window, args) : con[level] ? con[level](args) : con.log(args);\n };\n })(idx, log_methods[idx]);\n }\n\n // Execute the callback function if set.\n function exec_callback(args) {\n if (callback_func && (callback_force || !con || !con.log)) {\n callback_func.apply(window, args);\n }\n };\n\n // Method: debug.setLevel\n //\n // Set a minimum or maximum logging level for the console. Doesn't affect\n // the <debug.setCallback> callback function, but if set to 0 to disable\n // logging, <Pass-through console methods> will be disabled as well.\n //\n // Usage:\n //\n // debug.setLevel( [ level ] ) - -\n //\n // Arguments:\n //\n // level - (Number) If 0, disables logging. If negative, shows N lowest\n // priority levels of log messages. If positive, shows N highest priority\n // levels of log messages.\n //\n // Priority levels:\n //\n // log (1) < debug (2) < info (3) < warn (4) < error (5)\n\n that.setLevel = function (level) {\n log_level = typeof level === 'number' ? level : 9;\n };\n\n // Determine if the level is visible given the current log_level.\n function is_level(level) {\n return log_level > 0 ? log_level > level : log_methods.length + log_level <= level;\n };\n\n // Method: debug.setCallback\n //\n // Set a callback to be used if logging isn't possible due to console.log\n // not existing. If unlogged logs exist when callback is set, they will all\n // be logged immediately unless a limit is specified.\n //\n // Usage:\n //\n // debug.setCallback( callback [, force ] [, limit ] )\n //\n // Arguments:\n //\n // callback - (Function) The aforementioned callback function. The first\n // argument is the logging level, and all subsequent arguments are those\n // passed to the initial debug logging method.\n // force - (Boolean) If false, log to console.log if available, otherwise\n // callback. If true, log to both console.log and callback.\n // limit - (Number) If specified, number of lines to limit initial scrollback\n // to.\n\n that.setCallback = function () {\n var args = aps.call(arguments),\n max = logs.length,\n i = max;\n\n callback_func = args.shift() || null;\n callback_force = typeof args[0] === 'boolean' ? args.shift() : false;\n\n i -= typeof args[0] === 'number' ? args.shift() : max;\n\n while (i < max) {\n exec_callback(logs[i++]);\n }\n };\n\n return that;\n}();\n\n/***/ }),\n\n/***/ \"./src/util/JSONUtil.js\":\n/*!******************************!*\\\n !*** ./src/util/JSONUtil.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.JSON = {\n\n /**\r\n * @method\r\n * Given a dot deliminated string set will create an object\r\n * based on the structure of the string with the desired value\r\n *\r\n * @param {Object} data the json object to modify\r\n * @param {String} path path indicating where value should be placed\r\n * @param {Object} value the value desired to be set at the location determined by path\r\n */\n set: function set(data, path, value) {\n if (!path || path === '') {\n return;\n }\n\n var re = /[\\w-]+|\\[\\]|([^\\[[\\w]\\]]|[\"'](.*?)['\"])/g;\n // parse path on dots, and brackets\n var pathList = path.match(re);\n var parent = data;\n var parentKey = void 0;\n var grandParent = null;\n var grandParentKey = null;\n\n var addObj = function addObj(obj, key, data) {\n if (key === '[]') {\n obj.push(data);\n } else {\n obj[key] = data;\n }\n };\n\n while (pathList.length > 0) {\n parentKey = pathList.shift().replace(/[\"']/g, '');\n\n // Number, treat it as an array\n if (!isNaN(+parentKey) || parentKey === \"[]\") {\n if (parent.constructor !== Array) {\n parent = [];\n addObj(grandParent, grandParentKey, parent);\n }\n // String, treat it as a key\n } else if (typeof parentKey === \"string\") {\n if (!$.isPlainObject(parent)) {\n parent = {};\n addObj(grandParent, grandParentKey, parent);\n }\n }\n // Next\n grandParent = parent;\n grandParentKey = parentKey;\n parent = parent[parentKey];\n }\n\n addObj(grandParent, grandParentKey, value);\n },\n\n /**\r\n * @method\r\n * Returns the value defined by the path passed in\r\n *\r\n * @param {Object} data the JSON data object\r\n * @param {String} path string leading to a desired value\r\n */\n get: function get(data, path) {\n var regex = /[\\w-]+|\\[\\]|([^\\[[\\w]\\]]|[\"'](.*?)['\"])/g;\n //check if path is truthy\n if (!path) {\n return undefined;\n }\n //parse path on dots and brackets\n var paths = path.match(regex);\n //step through data object until all keys in path have been processed\n while (data !== null && paths.length > 0) {\n if (data.propertyIsEnumerable(paths[0].replace(/\"/g, ''))) {\n data = data[paths.shift().replace(/\"/g, '')];\n } else {\n return undefined;\n }\n }\n return data;\n },\n\n /**\r\n * @method\r\n * calculates the diff between the given json objects\r\n *\r\n */\n diff: function diff(obj1, obj2) {\n var result = {};\n for (var key in obj1) {\n var v1 = obj1[key];\n var v2 = obj2[key];\n if (v1 !== v2) {\n if (v1.equals) {\n if (!v1.equals(v2)) {\n result[key] = obj1[key];\n }\n } else {\n result[key] = obj1[key];\n }\n }\n }\n return result;\n },\n\n flatDiff: function flatDiff(obj1, obj2) {\n var result = {};\n for (var key in obj1) {\n if (obj1[key] !== obj2[key]) {\n result[key] = obj1[key];\n }\n }\n return result;\n },\n\n ensureDefault: function ensureDefault(json, attribute, value) {\n if (!json.hasOwnProperty(attribute)) {\n json[attribute] = value;\n }\n }\n};\n\nmodule.exports = _packages2.default.util.JSON;\n\n/***/ }),\n\n/***/ \"./src/util/Polyfill.js\":\n/*!******************************!*\\\n !*** ./src/util/Polyfill.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n// avoid iPad bounce effect during DragDrop\n//\ndocument.ontouchmove = function (e) {\n e.preventDefault();\n};\n\nMath.sign = function () {\n if (this < 0) {\n return -1;\n }\n return 1;\n};\n\n/***/ }),\n\n/***/ \"./src/util/SVGUtil.js\":\n/*!*****************************!*\\\n !*** ./src/util/SVGUtil.js ***!\n \\*****************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n// extending raphael with a polygon function\nRaphael.fn.polygon = function (pointString) {\n var poly = ['M'];\n var point = pointString.split(' ');\n\n for (var i = 0; i < point.length; i++) {\n var c = point[i].split(',');\n for (var j = 0; j < c.length; j++) {\n var d = parseFloat(c[j]);\n if (!isNaN(d)) poly.push(d);\n };\n if (i == 0) poly.push('L');\n }\n poly.push('Z');\n\n return this.path(poly);\n};\n\n/***/ }),\n\n/***/ \"./src/util/UUID.js\":\n/*!**************************!*\\\n !*** ./src/util/UUID.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.util.UUID\r\n * Generates a (pseudo) UUID's\r\n *\r\n * // a UUID in the format\r\n * // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12)\r\n * var id = draw2d.util.UUID.create();\r\n *\r\n * @author Andreas Herz\r\n * @constructor\r\n * @private\r\n */\n_packages2.default.util.UUID = function () {};\n\n/**\r\n * @method\r\n * Generates a unique id.<br>\r\n * But just for the correctness: <strong>this is no Global Unique Identifier</strong>, it is just a random generator\r\n * with the output that looks like a GUID. <br>\r\n * But may be also useful.\r\n *\r\n * @returns {String} the UUID in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12)\r\n **/\n_packages2.default.util.UUID.create = function () {\n var segment = function segment() {\n return ((1 + Math.random()) * 0x10000 | 0).toString(16).substring(1);\n };\n return segment() + segment() + \"-\" + segment() + \"-\" + segment() + \"-\" + segment() + \"-\" + segment() + segment() + segment();\n};\n\nmodule.exports = _packages2.default.util.UUID;\n\n/***/ }),\n\n/***/ \"./src/util/extend.js\":\n/*!****************************!*\\\n !*** ./src/util/extend.js ***!\n \\****************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(global) {\n\n// Pass in the objects to merge as arguments.\n// For a deep extend, set the first argument to `true`.\nvar fn = function fn() {\n\n // Variables\n var extended = {};\n var deep = false;\n var i = 0;\n var length = arguments.length;\n\n // Check if a deep merge\n if (Object.prototype.toString.call(arguments[0]) === '[object Boolean]') {\n deep = arguments[0];\n i++;\n }\n\n // Merge the object into the extended object\n var merge = function merge(obj) {\n for (var prop in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, prop)) {\n // If deep merge and property is an object, merge properties\n if (deep && Object.prototype.toString.call(obj[prop]) === '[object Object]') {\n extended[prop] = extend(true, extended[prop], obj[prop]);\n } else {\n extended[prop] = obj[prop];\n }\n }\n }\n };\n\n // Loop through each object and conduct a merge\n for (; i < length; i++) {\n var obj = arguments[i];\n merge(obj);\n }\n\n return extended;\n};\nmodule.exports = fn;\nglobal.extend = fn;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n/***/ }),\n\n/***/ \"./src/util/raphael_ext.js\":\n/*!*********************************!*\\\n !*** ./src/util/raphael_ext.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n// hacking RaphaelJS to support groups of elements\n//\n(function () {\n Raphael.fn.group = function (f, g) {\n var enabled = document.getElementsByTagName(\"svg\").length > 0;\n if (!enabled) {\n // return a stub for VML compatibility\n return {\n add: function add() {\n // intentionally left blank\n }\n };\n }\n var i;\n this.svg = \"http://www.w3.org/2000/svg\";\n this.defs = document.getElementsByTagName(\"defs\")[f];\n this.svgcanv = document.getElementsByTagName(\"svg\")[f];\n this.group = document.createElementNS(this.svg, \"g\");\n for (i = 0; i < g.length; i++) {\n this.group.appendChild(g[i].node);\n }\n this.svgcanv.appendChild(this.group);\n this.group.translate = function (c, a) {\n this.setAttribute(\"transform\", \"translate(\" + c + \",\" + a + \") scale(\" + this.getAttr(\"scale\").x + \",\" + this.getAttr(\"scale\").y + \")\");\n };\n this.group.rotate = function (c, a, e) {\n this.setAttribute(\"transform\", \"translate(\" + this.getAttr(\"translate\").x + \",\" + this.getAttr(\"translate\").y + \") scale(\" + this.getAttr(\"scale\").x + \",\" + this.getAttr(\"scale\").y + \") rotate(\" + c + \",\" + a + \",\" + e + \")\");\n };\n this.group.scale = function (c, a) {\n this.setAttribute(\"transform\", \"scale(\" + c + \",\" + a + \") translate(\" + this.getAttr(\"translate\").x + \",\" + this.getAttr(\"translate\").y + \")\");\n };\n this.group.push = function (c) {\n this.appendChild(c.node);\n };\n this.group.getAttr = function (c) {\n this.previous = this.getAttribute(\"transform\") ? this.getAttribute(\"transform\") : \"\";\n var a = [],\n e,\n h,\n j;\n a = this.previous.split(\" \");\n for (i = 0; i < a.length; i++) {\n if (a[i].substring(0, 1) == \"t\") {\n var d = a[i],\n b = [];\n b = d.split(\"(\");\n d = b[1].substring(0, b[1].length - 1);\n b = [];\n b = d.split(\",\");\n e = b.length === 0 ? { x: 0, y: 0 } : { x: b[0], y: b[1] };\n } else {\n if (a[i].substring(0, 1) === \"r\") {\n d = a[i];\n b = d.split(\"(\");\n d = b[1].substring(0, b[1].length - 1);\n b = d.split(\",\");\n h = b.length === 0 ? { x: 0, y: 0, z: 0 } : { x: b[0], y: b[1], z: b[2] };\n } else {\n if (a[i].substring(0, 1) === \"s\") {\n d = a[i];\n b = d.split(\"(\");\n d = b[1].substring(0, b[1].length - 1);\n b = d.split(\",\");\n j = b.length === 0 ? { x: 1, y: 1 } : { x: b[0], y: b[1] };\n }\n }\n }\n }\n if (typeof e === \"undefined\") {\n e = { x: 0, y: 0 };\n }\n if (typeof h === \"undefined\") {\n h = { x: 0, y: 0, z: 0 };\n }\n if (typeof j === \"undefined\") {\n j = { x: 1, y: 1 };\n }\n\n if (c == \"translate\") {\n var k = e;\n } else {\n if (c == \"rotate\") {\n k = h;\n } else {\n if (c == \"scale\") {\n k = j;\n }\n }\n }\n return k;\n };\n this.group.copy = function (el) {\n this.copy = el.node.cloneNode(true);\n this.appendChild(this.copy);\n };\n return this.group;\n };\n})();\n\n/**\r\n * adding support method to check if the node is already visible\r\n **/\n(function () {\n Raphael.el.isVisible = function () {\n return this.node.style.display !== \"none\";\n };\n})();\n\n/***/ }),\n\n/***/ \"./src/util/spline/BezierSpline.js\":\n/*!*****************************************!*\\\n !*** ./src/util/spline/BezierSpline.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.spline.BezierSpline = _packages2.default.util.spline.Spline.extend({\n NAME: \"draw2d.util.spline.BezierSpline\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * Create a spline based on the given control points.\r\n * The generated curve starts in the first control point and ends\r\n * in the last control point.\r\n *\r\n * @param {Array} controlPoints Control points of spline (x0,y0,z0,x1,y1,z1,...).\r\n * @param {Number} parts Number of parts to divide each leg into.\r\n *\r\n * @returns {Array} the new generated array with new draw2d.geo.Point\r\n */\n generate: function generate(controlPoints, parts) {\n var n = controlPoints.getSize();\n var spline = new _packages2.default.util.ArrayList();\n\n spline.add(this.p(0, 0, controlPoints));\n\n for (var i = 0; i < n - 3; i += 3) {\n for (var j = 1; j <= parts; j++) {\n spline.add(this.p(i, j / parts, controlPoints));\n }\n }\n\n // spline.add(controlPoints.get(controlPoints.getSize()-1));\n\n return spline;\n },\n\n p: function p(i, t, cp) {\n var x = 0.0;\n var y = 0.0;\n\n var k = i;\n for (var j = 0; j <= 3; j++) {\n var b = this.blend(j, t);\n var p = cp.get(k++);\n x += b * p.x;\n y += b * p.y;\n }\n\n return new _packages2.default.geo.Point(x, y);\n },\n\n blend: function blend(i, t) {\n if (i == 0) return (1 - t) * (1 - t) * (1 - t);else if (i == 1) return 3 * t * (1 - t) * (1 - t);else if (i == 2) return 3 * t * t * (1 - t);else return t * t * t;\n }\n}); /**\r\n * @class draw2d.util.spline.BezierSpline\r\n *\r\n * A bezier spline object.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.util.spline.Spline\r\n */\n\n/***/ }),\n\n/***/ \"./src/util/spline/CatmullRomSpline.js\":\n/*!*********************************************!*\\\n !*** ./src/util/spline/CatmullRomSpline.js ***!\n \\*********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.spline.CatmullRomSpline = _packages2.default.util.spline.CubicSpline.extend({\n NAME: \"draw2d.util.spline.CatmullRomSpline\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this._super();\n },\n\n blend: function blend(i, t) {\n if (i == -2) return ((-t + 2) * t - 1) * t / 2;else if (i == -1) return ((3 * t - 5) * t * t + 2) / 2;else if (i == 0) return ((-3 * t + 4) * t + 1) * t / 2;else return (t - 1) * t * t / 2;\n }\n\n}); /**\r\n * @class draw2d.util.spline.CatmullRomSpline\r\n *\r\n * A catmull-rom spline object.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.util.spline.CubicSpline\r\n */\n\n/***/ }),\n\n/***/ \"./src/util/spline/CubicSpline.js\":\n/*!****************************************!*\\\n !*** ./src/util/spline/CubicSpline.js ***!\n \\****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.spline.CubicSpline = _packages2.default.util.spline.Spline.extend({\n NAME: \"draw2d.util.spline.CubicSpline\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * Create a spline based on the given control points.\r\n * The generated curve starts in the first control point and ends\r\n * in the last control point.\r\n *\r\n * @param {Array} controlPoints Control points of spline (x0,y0,z0,x1,y1,z1,...).\r\n * @param {Number} parts Number of parts to divide each leg into.\r\n *\r\n * @returns {Array} the new generated array with new draw2d.geo.Point\r\n */\n generate: function generate(controlPoints, parts) {\n // Endpoints are added twice to get them include in the\n // generated array\n var cp = new _packages2.default.util.ArrayList();\n cp.add(controlPoints.get(0));\n cp.addAll(controlPoints);\n cp.add(controlPoints.get(controlPoints.getSize() - 1));\n\n var n = cp.getSize();\n var spline = new _packages2.default.util.ArrayList();\n spline.add(controlPoints.get(0));\n spline.add(this.p(1, 0, cp));\n\n for (var i = 1; i < n - 2; i++) {\n for (var j = 1; j <= parts; j++) {\n spline.add(this.p(i, j / parts, cp));\n }\n }\n spline.add(controlPoints.get(controlPoints.getSize() - 1));\n\n return spline;\n },\n\n p: function p(i, t, cp) {\n var x = 0.0;\n var y = 0.0;\n\n var k = i - 1;\n for (var j = -2; j <= 1; j++) {\n var b = this.blend(j, t);\n var p = cp.get(k++);\n x += b * p.x;\n y += b * p.y;\n }\n\n return new _packages2.default.geo.Point(x, y);\n },\n\n blend: function blend(i, t) {\n if (i === -2) return (((-t + 3) * t - 3) * t + 1) / 6;else if (i === -1) return ((3 * t - 6) * t * t + 4) / 6;else if (i === 0) return (((-3 * t + 3) * t + 3) * t + 1) / 6;\n\n return t * t * t / 6;\n }\n\n}); /**\r\n * @class draw2d.util.spline.CubicSpline\r\n *\r\n * A cubic spline object.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.util.spline.Spline\r\n */\n\n/***/ }),\n\n/***/ \"./src/util/spline/Spline.js\":\n/*!***********************************!*\\\n !*** ./src/util/spline/Spline.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.spline.Spline = Class.extend({\n\n NAME: \"draw2d.util.spline.Spline\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {},\n\n /**\r\n * Create a spline based on the given control points.\r\n * The generated curve starts in the first control point and ends\r\n * in the last control point.\r\n *\r\n * @param {Array} controlPoints Control points of spline (x0,y0,z0,x1,y1,z1,...).\r\n * @param {Number} parts Number of parts to divide each leg into.\r\n **/\n generate: function generate(controlPoints, parts) {\n throw \"inherit classes must implement the method 'draw2d.util.spline.Spline.generate()'\";\n }\n\n});\n/**\r\n * @class draw2d.util.spline.Spline\r\n *\r\n * An abstract class defining a general spline object.\r\n */\n\n/***/ })\n\n/******/ });\n});\n//# sourceMappingURL=draw2d.js.map"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/libqmock-c6bc2f1219d1ee2f214a.js b/dist/libqmock-cf91cc219150643297c1.js similarity index 99% rename from dist/libqmock-c6bc2f1219d1ee2f214a.js rename to dist/libqmock-cf91cc219150643297c1.js index 1de4b8a..d735766 100644 --- a/dist/libqmock-c6bc2f1219d1ee2f214a.js +++ b/dist/libqmock-cf91cc219150643297c1.js @@ -105,7 +105,7 @@ __webpack_require__.r(__webpack_exports__); function createApp( canvasContainerId, width, height ) { const canvas = new _sarhanalaa_draw2d__WEBPACK_IMPORTED_MODULE_0___default.a.Canvas( canvasContainerId, width, height ) - + canvas.setScrollArea('#'+canvasContainerId) return { canvas, elements: _lib_elements__WEBPACK_IMPORTED_MODULE_1__["default"], @@ -64186,4 +64186,4 @@ _packages2.default.util.spline.Spline = Class.extend({ /***/ }) /******/ }); -//# sourceMappingURL=libqmock-c6bc2f1219d1ee2f214a.js.map \ No newline at end of file +//# sourceMappingURL=libqmock-cf91cc219150643297c1.js.map \ No newline at end of file diff --git a/dist/libqmock-cf91cc219150643297c1.js.map b/dist/libqmock-cf91cc219150643297c1.js.map new file mode 100644 index 0000000..5ce0b96 --- /dev/null +++ b/dist/libqmock-cf91cc219150643297c1.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://LibQMock/webpack/bootstrap","webpack://LibQMock/./App.js","webpack://LibQMock/./elements/Window.js","webpack://LibQMock/./elements/index.js","webpack://LibQMock/./index.js","webpack://LibQMock/./node_modules/@sarhanalaa/draw2d/dist/draw2d.js"],"names":[],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA;AAAA;AAAA;AAAuC;AACD;;AAEvB;AACf,uBAAuB,yDAAM;AAC7B;AACA;AACA;AACA,QAAQ,+DAAQ;AAChB,QAAQ,mEAAM;AACd;AACA;;;;;;;;;;;;;ACXA;AAAA;AAAA;AAAuC;;AAEvC,6BAA6B,yDAAM;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,uBAAuB,yDAAM;AAC7B;AACA;AACA;AACA,KAAK;;AAEL,yBAAyB,yDAAM;AAC/B;AACA;AACA;AACA;AACA,KAAK;;AAEL,8BAA8B,yDAAM;AACpC;AACA;AACA;AACA,KAAK;;AAEL,6BAA6B,yDAAM;AACnC,kCAAkC,yDAAM;;AAExC,uCAAuC,SAAS,QAAQ,EAAE;AAC1D;AACA,KAAK;;AAEL,mCAAmC,wCAAwC;;AAE3E;AACA;;AAEe,2EAAY;;;;;;;;;;;;;AC1C3B;AAAA;AAAA;AAAA;AAAuC;AACJ;;AAEpB;AACf,IAAI,6DAAY;AAChB,CAAC;;;;;;;;;;;;;ACLD;AAAA;AAAA;AAAA;AAA6B;;AAET;;;;;;;;;;;;ACFpB;AACA,IAAI,IAAyD;AAC7D;AACA,MAAM,EAKuB;AAC7B,CAAC;AACD,oCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,gCAAgC;AAClF;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,kBAAkB;AAClF;AACA,yDAAyD,cAAc;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,iCAAiC;AAClF,wHAAwH,mBAAmB,EAAE;AAC7I;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,0BAA0B,EAAE;AAC/D,yCAAyC,eAAe;AACxD;AACA;AACA;AACA;AACA;AACA,8DAA8D,+DAA+D;AAC7H;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B;AAC3B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY;;AAEZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;;AAEA;AACA;AACA;AACA,8BAA8B,YAAY,2BAA2B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,qBAAqB;AACjD,8CAA8C,sBAAsB,+BAA+B,EAAE;AACrG,oCAAoC,sBAAsB;AAC1D,8BAA8B,kDAAkD;AAChF,4BAA4B,6BAA6B;AACzD,6BAA6B,8BAA8B;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;;AAEA;AACA,yBAAyB,oCAAoC;;AAE7D;AACA,mCAAmC,uCAAuC;;AAE1E;AACA;AACA;AACA,4BAA4B;AAC5B,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gGAAgG;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B,gBAAgB,mBAAmB;AACnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0BAA0B,0DAA0D;AACpF;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gBAAgB;AAChB;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA,gBAAgB,YAAY;AAC5B,4DAA4D,2CAA2C,sBAAsB;AAC7H,qEAAqE,6CAA6C,wCAAwC;AAC1J,mEAAmE,4CAA4C,yDAAyD;AACxK,6BAA6B,wDAAwD,wEAAwE;AAC7J,UAAU,mCAAmC;AAC7C,IAAI;AACJ;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;;AAEA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;;AAEA,uBAAuB,gBAAgB;AACvC,uBAAuB,gBAAgB;AACvC,2BAA2B,0BAA0B;AACrD,4BAA4B,0BAA0B;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,wBAAwB;AACnD,2BAA2B,wBAAwB;;AAEnD;AACA;AACA;AACA;;AAEA;AACA,sCAAsC;AACtC,sCAAsC;AACtC,uCAAuC;AACvC,uCAAuC;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,gBAAgB,0BAA0B;AAC1C;AACA;AACA;;AAEA;AACA,uCAAuC,MAAM;AAC7C;AACA;AACA;;AAEA;AACA,gBAAgB,0BAA0B;AAC1C;AACA;AACA;;AAEA;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,8BAA8B,0BAA0B,2BAA2B;AACnF,+BAA+B,0BAA0B,2BAA2B;;AAEpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,mCAAmC,gCAAgC,2BAA2B;AAC9F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,0BAA0B;AAC1B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mCAAmC,gCAAgC,uBAAuB;AAC1F;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uCAAuC;AACvC;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,+BAA+B,2BAA2B;AAC1D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2CAA2C;AAC3C;AACA,gBAAgB,0BAA0B;AAC1C;AACA;AACA;;AAEA;;AAEA;AACA;AACA,uDAAuD;AACvD,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,0BAA0B;AAC1C;AACA,gEAAgE;AAChE;AACA;AACA;AACA,6DAA6D;AAC7D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,uBAAuB;AACvE,wDAAwD,2BAA2B;AACnF,oFAAoF,oBAAoB;;AAExG;AACA,mDAAmD,6BAA6B;AAChF,8DAA8D,mCAAmC;AACjG,uDAAuD,4BAA4B;AACnF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yEAAyE,yCAAyC;AAClH,UAAU,YAAY;AACtB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,sBAAsB;AACtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,0BAA0B;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA2B;AAC3B;AACA,cAAc,KAAK;AACnB,8DAA8D;AAC9D,6DAA6D;AAC7D,4CAA4C;AAC5C;AACA,cAAc,KAAK;AACnB,6CAA6C;AAC7C,kCAAkC,EAAE,oCAAoC;AACxE,4BAA4B;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,sCAAsC,oBAAoB;AAC1D;AACA,iBAAiB,sBAAsB;AACvC;AACA,qBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,uDAAuD;AAClF;AACA,8BAA8B;AAC9B;AACA,8BAA8B,6DAA6D;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,MAAM;AACvB,kBAAkB,MAAM;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,wBAAwB;AACvC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,gBAAgB,mCAAmC;AACnD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,+BAA+B;AAC/C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,oCAAoC;;AAEpC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,4EAA4E;;AAE5E;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB,eAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,wBAAwB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sBAAsB,0BAA0B;AAChD;AACA,8DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,gBAAgB,yBAAyB;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,eAAe;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,eAAe;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kCAAkC,WAAW;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,eAAe,0BAA0B;AACzC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,QAAQ;AAC3B;;AAEA;AACA;AACA;AACA;AACA,qCAAqC,oCAAoC;AACzE;AACA,iCAAiC,oBAAoB;AACrD,kCAAkC,kDAAkD,oBAAoB;AACxG;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAe,0BAA0B;AACzC;AACA;AACA,2FAA2F;AAC3F,gCAAgC;AAChC,4BAA4B;AAC5B,eAAe,kBAAkB;AACjC;AACA,oCAAoC;AACpC;AACA,qCAAqC;AACrC,iBAAiB,qBAAqB;AACtC;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,eAAe;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,gBAAgB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,wBAAwB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,+DAA+D;;AAE/D;AACA,+DAA+D;;AAE/D;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,wBAAwB;AAC7C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,wBAAwB;AACxC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,6CAA6C;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,YAAY;AAC9B,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,sDAAsD;AACtD,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,yBAAyB,iBAAiB;AAC1C,yBAAyB,iBAAiB;;AAE1C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,yBAAyB;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+BAA+B,gCAAgC;;AAE/D;AACA,qBAAqB;AACrB,sBAAsB,4BAA4B;AAClD,IAAI;AACJ;;AAEA;AACA,qBAAqB;AACrB,sBAAsB,oCAAoC;AAC1D,IAAI;AACJ;;AAEA;;AAEA;AACA,gBAAgB,sBAAsB;AACtC;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,sBAAsB;AACtC;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB,sBAAsB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;;AAEA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA,ibAAib,iBAAiB,kBAAkB,6BAA6B,yBAAyB,8BAA8B,2BAA2B,8BAA8B,mCAAmC,yBAAyB,6DAA6D,yDAAyD,yDAAyD,yDAAyD,yDAAyD,+DAA+D,wBAAwB,KAAK,4BAA4B,kCAAkC,+BAA+B,2BAA2B,kCAAkC,uCAAuC,kCAAkC,kCAAkC,KAAK,iCAAiC,yBAAyB,sCAAsC,KAAK,sFAAsF,kCAAkC,kCAAkC,kCAAkC,kCAAkC,KAAK,kCAAkC,wBAAwB,+BAA+B,KAAK,qCAAqC,oBAAoB,KAAK,yEAAyE,wBAAwB,+BAA+B,KAAK,qCAAqC,uBAAuB,oBAAoB,2BAA2B,eAAe,mBAAmB,mBAAmB,KAAK,+PAA+P,oCAAoC,kBAAkB,8BAA8B,8BAA8B,EAAE,iFAAiF,qBAAqB,EAAE,yKAAyK,2BAA2B,KAAK,wCAAwC,yBAAyB,KAAK,gLAAgL,uBAAuB,oBAAoB,2CAA2C,uCAAuC,uCAAuC,uCAAuC,uCAAuC,KAAK,gDAAgD,sBAAsB,KAAK,6CAA6C,sBAAsB,qDAAqD,iBAAiB,KAAK,uDAAuD,uBAAuB,KAAK,iCAAiC,mCAAmC,KAAK;;AAExjH;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mCAAmC,gBAAgB;AACnD,IAAI;AACJ;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA,YAAY,oBAAoB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,oDAAoD,cAAc;;AAElE;AACA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA,0SAA0S,iCAAiC,kCAAkC,QAAQ,0BAA0B,6BAA6B,QAAQ,MAAM,EAAE,oCAAoC,wBAAwB,8BAA8B,QAAQ,0BAA0B,+EAA+E,QAAQ,+BAA+B,qBAAqB,QAAQ,MAAM,EAAE,kCAAkC,eAAe,wCAAwC,eAAe,gCAAgC,oSAAoS,0CAA0C,KAAK,0BAA0B,2FAA2F,0GAA0G,qCAAqC,mJAAmJ,oCAAoC,8BAA8B,6GAA6G,4OAA4O,kCAAkC,uCAAuC,4KAA4K,mMAAmM,0CAA0C,4CAA4C,iBAAiB,cAAc,6CAA6C,UAAU,0EAA0E,4JAA4J,UAAU,kGAAkG,6GAA6G,uFAAuF,uMAAuM,wCAAwC,6BAA6B,qCAAqC,8HAA8H,gDAAgD,yDAAyD,6CAA6C,mDAAmD,wDAAwD,iEAAiE,+CAA+C,wCAAwC,2BAA2B,sBAAsB,oBAAoB,kBAAkB,OAAO,8CAA8C,kBAAkB,cAAc,WAAW,+BAA+B,SAAS,MAAM,IAAI;;AAE3oI,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC,oBAAoB,2CAA2C,sEAAsE,8BAA8B,UAAU,8BAA8B,6CAA6C,wCAAwC,sBAAsB,qBAAqB,cAAc,yBAAyB,YAAY,sBAAsB,KAAK,sBAAsB,8BAA8B,cAAc,0BAA0B,0BAA0B,iBAAiB,oCAAoC,iCAAiC,6BAA6B,cAAc,8BAA8B,wBAAwB,cAAc,gBAAgB,6BAA6B,eAAe,uBAAuB,gBAAgB,WAAW,YAAY,WAAW,KAAK,0BAA0B,cAAc,mBAAmB,cAAc,WAAW,cAAc,cAAc,MAAM,iDAAiD,SAAS,qBAAqB,KAAK,KAAK,oCAAoC,mDAAmD,UAAU,SAAS,aAAa,uBAAuB,uBAAuB,qBAAqB,eAAe,mCAAmC,2CAA2C,cAAc,aAAa,cAAc,mDAAmD,yBAAyB,8BAA8B,IAAI,uCAAuC,SAAS,qBAAqB,+CAA+C,SAAS,yBAAyB,SAAS,aAAa,YAAY,WAAW,KAAK,WAAW,oCAAoC,wBAAwB,8BAA8B,yCAAyC,wBAAwB,gEAAgE,eAAe,sBAAsB,sBAAsB,uCAAuC,OAAO,YAAY,wBAAwB,oHAAoH,2CAA2C,iDAAiD,qFAAqF,0DAA0D,oDAAoD,oBAAoB,eAAe,gBAAgB,MAAM,iBAAiB,6EAA6E,6FAA6F,kCAAkC,oCAAoC,uCAAuC,YAAY,8BAA8B,wEAAwE,gBAAgB,SAAS,YAAY,WAAW,8BAA8B,SAAS,gBAAgB,QAAQ,mBAAmB,KAAK,KAAK,WAAW,6EAA6E,UAAU,IAAI,oBAAoB,SAAS,iDAAiD,qBAAqB,gBAAgB,2BAA2B,UAAU,KAAK,sCAAsC,qCAAqC,kCAAkC,wCAAwC,UAAU,0CAA0C,yBAAyB,gDAAgD,wCAAwC,UAAU,sEAAsE,mBAAmB,8CAA8C,qCAAqC,+BAA+B,eAAe,uBAAuB,8BAA8B,6FAA6F,0BAA0B,yBAAyB,yEAAyE,uBAAuB,2BAA2B,iDAAiD,kBAAkB,mDAAmD,YAAY,iDAAiD,kBAAkB,8DAA8D,oBAAoB,wCAAwC,yBAAyB,QAAQ,IAAI,KAAK,kBAAkB,QAAQ,IAAI,uBAAuB,0BAA0B,+EAA+E,QAAQ,IAAI,YAAY,IAAI,mCAAmC,SAAS,qCAAqC,wBAAwB,wCAAwC,qDAAqD,oCAAoC,+CAA+C,2CAA2C,4BAA4B,0CAA0C,0EAA0E,qeAAqe,8BAA8B,8EAA8E,QAAQ,IAAI,KAAK,kBAAkB,QAAQ,IAAI,wCAAwC,mBAAmB,aAAa,iDAAiD,YAAY,kCAAkC,wCAAwC,sBAAsB,uBAAuB,MAAM,8BAA8B,oDAAoD,sBAAsB,kDAAkD,6CAA6C,mBAAmB,oDAAoD,iBAAiB,QAAQ,wEAAwE,mBAAmB,MAAM,+CAA+C,mBAAmB,MAAM,sFAAsF,iBAAiB,oBAAoB,4BAA4B,KAAK,4BAA4B,aAAa,uBAAuB,SAAS,4BAA4B,mBAAmB,IAAI,4BAA4B,SAAS,mBAAmB,MAAM,yDAAyD,mBAAmB,cAAc,8BAA8B,sBAAsB,oBAAoB,mBAAmB,IAAI,oBAAoB,2BAA2B,mBAAmB,wBAAwB,eAAe,mBAAmB,uBAAuB,sBAAsB,6BAA6B,mBAAmB,IAAI,+DAA+D,SAAS,YAAY,0BAA0B,aAAa,8BAA8B,SAAS,qBAAqB,UAAU,sBAAsB,WAAW,gBAAgB,aAAa,WAAW,SAAS,MAAM,cAAc,mBAAmB,cAAc,6CAA6C,oEAAoE,yBAAyB,cAAc,cAAc,mCAAmC,oIAAoI,gCAAgC,4BAA4B,8BAA8B,6BAA6B,qBAAqB,kCAAkC,kCAAkC,iCAAiC,gCAAgC,iCAAiC,gCAAgC,gCAAgC,8BAA8B,oCAAoC,gCAAgC,8BAA8B,qBAAqB,8BAA8B,6BAA6B,6BAA6B,yBAAyB,8BAA8B,MAAM,6CAA6C,gCAAgC,2BAA2B,sNAAsN,kFAAkF,aAAa,iDAAiD,cAAc,kBAAkB,4CAA4C,mBAAmB,gBAAgB,kBAAkB,6BAA6B,cAAc,kBAAkB,QAAQ,WAAW,kEAAkE,SAAS,oBAAoB,gCAAgC,8CAA8C,MAAM,EAAE,cAAc,sBAAsB,yCAAyC,SAAS,gBAAgB,qFAAqF,sCAAsC,QAAQ,IAAI,KAAK,uCAAuC,QAAQ,WAAW,KAAK,OAAO,+BAA+B,2BAA2B,OAAO,aAAa,uBAAuB,0EAA0E,sDAAsD,WAAW,wBAAwB,WAAW,yBAAyB,0BAA0B,yBAAyB,uBAAuB,2DAA2D,cAAc,OAAO,qHAAqH,2EAA2E,yCAAyC,0BAA0B,eAAe,8IAA8I,kCAAkC,kBAAkB,sBAAsB,+BAA+B,wBAAwB,mBAAmB,IAAI,KAAK,OAAO,qBAAqB,6CAA6C,6HAA6H,SAAS,aAAa,+DAA+D,cAAc,eAAe,qBAAqB,6BAA6B,mBAAmB,2BAA2B,wDAAwD,kEAAkE,cAAc,OAAO,6EAA6E,0BAA0B,yCAAyC,sGAAsG,sBAAsB,gBAAgB,wBAAwB,+BAA+B,wBAAwB,mBAAmB,IAAI,KAAK,OAAO,+BAA+B,kCAAkC,SAAS,aAAa,8DAA8D,cAAc,4CAA4C,UAAU,2BAA2B,wDAAwD,6DAA6D,cAAc,OAAO,qHAAqH,2EAA2E,yCAAyC,oBAAoB,eAAe,2KAA2K,kEAAkE,8BAA8B,8CAA8C,mBAAmB,IAAI,KAAK,OAAO,qBAAqB,0CAA0C,6CAA6C,2HAA2H,8CAA8C,mBAAmB,IAAI,KAAK,OAAO,qBAAqB,0CAA0C,6CAA6C,4HAA4H,SAAS,aAAa,iEAAiE,cAAc,eAAe,qBAAqB,6BAA6B,mBAAmB,6BAA6B,wDAAwD,oEAAoE,cAAc,OAAO,6EAA6E,0BAA0B,yCAAyC,mHAAmH,0DAA0D,0BAA0B,gDAAgD,mBAAmB,IAAI,KAAK,OAAO,qBAAqB,aAAa,sCAAsC,SAAS,wCAAwC,gDAAgD,mBAAmB,IAAI,KAAK,OAAO,qBAAqB,aAAa,sCAAsC,SAAS,yCAAyC,SAAS,aAAa,gEAAgE,cAAc,4CAA4C,UAAU,6BAA6B,wDAAwD,+DAA+D,cAAc,OAAO,yCAAyC,2EAA2E,yCAAyC,wCAAwC,eAAe,sEAAsE,8CAA8C,kBAAkB,sBAAsB,+BAA+B,4BAA4B,SAAS,6CAA6C,6IAA6I,yBAAyB,mBAAmB,IAAI,KAAK,mCAAmC,MAAM,iCAAiC,qBAAqB,qCAAqC,8HAA8H,qCAAqC,gCAAgC,oCAAoC,+CAA+C,iBAAiB,gHAAgH,eAAe,gHAAgH,qHAAqH,iBAAiB,gDAAgD,oBAAoB,iFAAiF,wCAAwC,gEAAgE,gqBAAgqB,KAAK,uBAAuB,mBAAmB,IAAI,6BAA6B,SAAS,aAAa,mDAAmD,WAAW,okBAAokB,6CAA6C;;AAE5kjB,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA,s+CAAs+C,q5BAAq5B,2DAA2D,wCAAwC,iCAAiC,aAAa,EAAE,SAAS,0CAA0C,uCAAuC,SAAS,OAAO,iCAAiC,SAAS,KAAK,kBAAkB,qKAAqK,wCAAwC,6BAA6B,aAAa,kEAAkE,MAAM,weAAwe,oCAAoC,uUAAuU,qGAAqG,qCAAqC,yBAAyB,sDAAsD,QAAQ,uCAAuC,sDAAsD,kDAAkD,kEAAkE,qBAAqB,iBAAiB,sCAAsC,wCAAwC,4CAA4C,mDAAmD,+BAA+B,uCAAuC,mCAAmC,qBAAqB,iBAAiB,2BAA2B,QAAQ,OAAO,qCAAqC,0CAA0C,qDAAqD,2DAA2D,uCAAuC,sCAAsC,6BAA6B,gCAAgC,oCAAoC,sDAAsD,oEAAoE,2CAA2C,0CAA0C,iCAAiC,6BAA6B,mCAAmC,OAAO,gDAAgD,yBAAyB,qBAAqB,OAAO,uDAAuD,mCAAmC,kCAAkC,yBAAyB,qBAAqB,iBAAiB,+BAA+B,mCAAmC,+CAA+C,cAAc,iEAAiE,2XAA2X,sRAAsR,0CAA0C,QAAQ,OAAO,yBAAyB,2CAA2C,QAAQ,OAAO,gCAAgC,uDAAuD,0BAA0B,iCAAiC,wCAAwC,mCAAmC,2CAA2C,2DAA2D,yBAAyB,qBAAqB,iBAAiB,yBAAyB,aAAa,uBAAuB,UAAU,qMAAqM,sCAAsC,mlBAAmlB,qCAAqC,yCAAyC,uXAAuX,gCAAgC,2CAA2C,sCAAsC,aAAa,yEAAyE,8CAA8C,QAAQ,OAAO,wBAAwB,iFAAiF,MAAM,EAAE,aAAa,4BAA4B,wCAAwC,QAAQ,wBAAwB,2BAA2B,aAAa,wBAAwB,sCAAsC,yCAAyC,uCAAuC,iBAAiB,cAAc,UAAU,uTAAuT,iDAAiD,oCAAoC,oCAAoC,EAAE,0MAA0M,oDAAoD,gCAAgC,iGAAiG,cAAc,UAAU,wNAAwN,qBAAqB,UAAU,ycAAyc,0BAA0B,+GAA+G,aAAa,iCAAiC,UAAU,wPAAwP,kDAAkD,UAAU,4jBAA4jB,wBAAwB,wCAAwC,OAAO,uBAAuB,aAAa,uKAAuK,0CAA0C,QAAQ,OAAO,2BAA2B,gBAAgB,0BAA0B,oCAAoC,iCAAiC,+CAA+C,0CAA0C,qDAAqD,yBAAyB,qBAAqB,OAAO,yDAAyD,gDAAgD,yBAAyB,qBAAqB,kDAAkD,iBAAiB,aAAa,wCAAwC,QAAQ,OAAO,2BAA2B,6BAA6B,4BAA4B,kCAAkC,wDAAwD,QAAQ,wBAAwB,iDAAiD,sCAAsC,6BAA6B,sDAAsD,yBAAyB,2EAA2E,mDAAmD,0DAA0D,QAAQ,0BAA0B,mDAAmD,sCAAsC,6BAA6B,+DAA+D,yBAAyB,qBAAqB,OAAO,mCAAmC,2EAA2E,8CAA8C,yBAAyB,qBAAqB,4BAA4B,iBAAiB,aAAa,UAAU,0LAA0L,0BAA0B,wCAAwC,+WAA+W,kCAAkC,qCAAqC,gDAAgD,cAAc,oCAAoC,UAAU,gKAAgK,oCAAoC,sDAAsD,UAAU,uBAAuB,KAAK,GAAG,imBAAimB,2DAA2D,+DAA+D,oCAAoC,aAAa,EAAE,SAAS,0CAA0C,uDAAuD,SAAS,OAAO,6CAA6C,SAAS,KAAK,uBAAuB,u9BAAu9B,yBAAyB,4mBAA4mB,4NAA4N,iFAAiF,8EAA8E,sKAAsK,GAAG,iHAAiH,GAAG,wCAAwC,4CAA4C,6EAA6E,aAAa,+BAA+B,sGAAsG,aAAa,OAAO,oEAAoE,gEAAgE,uCAAuC,wHAAwH,iEAAiE,qBAAqB,EAAE,iBAAiB,OAAO,iEAAiE,iBAAiB,aAAa,SAAS,8BAA8B,oBAAoB,2EAA2E,2DAA2D,4BAA4B,SAAS,2FAA2F,sEAAsE,2BAA2B,kHAAkH,kCAAkC,ijBAAijB,qCAAqC,+BAA+B,uCAAuC,qBAAqB,qPAAqP,SAAS,EAAE,sEAAsE,OAAO,OAAO,iMAAiM,+BAA+B,gDAAgD,qBAAqB,2BAA2B,kBAAkB,EAAE,8BAA8B,iBAAiB,OAAO,0EAA0E,aAAa,shBAAshB,qIAAqI,+bAA+b,yIAAyI,EAAE,aAAa,EAAE,iWAAiW,8CAA8C,iUAAiU,21CAA21C,2DAA2D,0lBAA0lB,2jBAA2jB,aAAa,k+DAAk+D,0CAA0C,qCAAqC,aAAa,6CAA6C,+CAA+C,aAAa,iCAAiC,kCAAkC,yBAAyB,aAAa,gEAAgE,wBAAwB,gRAAgR,iBAAiB,8FAA8F,aAAa,oDAAoD,iCAAiC,4BAA4B,iBAAiB,4IAA4I,aAAa,qCAAqC,qCAAqC,6CAA6C,iBAAiB,wCAAwC,qCAAqC,wDAAwD,iBAAiB,yCAAyC,qCAAqC,+DAA+D,iBAAiB,sCAAsC,qCAAqC,sEAAsE,iBAAiB,uCAAuC,qCAAqC,iEAAiE,iBAAiB,sCAAsC,6CAA6C,6EAA6E,iBAAiB,qCAAqC,6CAA6C,6EAA6E,iBAAiB,aAAa,8UAA8U,8BAA8B,gCAAgC,iBAAiB,8CAA8C,wCAAwC,6CAA6C,QAAQ,OAAO,oCAAoC,kDAAkD,QAAQ,UAAU,6DAA6D,6DAA6D,qCAAqC,yCAAyC,qBAAqB,iBAAiB,4BAA4B,cAAc,qBAAqB,wTAAwT,gCAAgC,mEAAmE,iDAAiD,6BAA6B,qDAAqD,qDAAqD,oCAAoC,aAAa,qBAAqB,SAAS,mTAAmT,yBAAyB,mrBAAmrB,uCAAuC,aAAa,kEAAkE,mCAAmC,EAAE,mCAAmC,EAAE,oCAAoC,iDAAiD,yEAAyE,eAAe,EAAE,iCAAiC,gCAAgC,uEAAuE,kBAAkB,mBAAmB,6WAA6W,wCAAwC,qCAAqC,uCAAuC,aAAa,oCAAoC,0CAA0C,aAAa,yTAAyT,UAAU,iCAAiC,oEAAoE,2BAA2B,aAAa,0CAA0C,qDAAqD,2CAA2C,aAAa,uBAAuB,SAAS,0hBAA0hB,6BAA6B,gEAAgE,+BAA+B,6BAA6B,iBAAiB,yEAAyE,aAAa,OAAO,yEAAyE,aAAa,UAAU,oPAAoP,wCAAwC,UAAU,oPAAoP,mEAAmE,UAAU,8aAA8a,qEAAqE,sCAAsC,sCAAsC,sEAAsE,qCAAqC,iBAAiB,aAAa,OAAO,iCAAiC,yCAAyC,sCAAsC,uCAAuC,iBAAiB,+CAA+C,gDAAgD,iBAAiB,aAAa,yBAAyB,UAAU,6MAA6M,gCAAgC,+GAA+G,cAAc,SAAS,yBAAyB,4FAA4F,kCAAkC,SAAS,EAAE,wHAAwH,mKAAmK,yDAAyD,2BAA2B,mCAAmC,oCAAoC,yCAAyC,aAAa,UAAU,sCAAsC,4BAA4B,qJAAqJ,4BAA4B,yBAAyB,oEAAoE,gDAAgD,sCAAsC,yCAAyC,qBAAqB,WAAW,0DAA0D,qBAAqB,sDAAsD,qDAAqD,6BAA6B,0EAA0E,+EAA+E,0GAA0G,uFAAuF,yBAAyB,WAAW,4CAA4C,yBAAyB,qBAAqB,EAAE,iBAAiB,OAAO,uDAAuD,4DAA4D,+CAA+C,8CAA8C,qDAAqD,8CAA8C,oGAAoG,qBAAqB,EAAE,iBAAiB,oCAAoC,aAAa,wCAAwC,mEAAmE,aAAa,wCAAwC,mEAAmE,aAAa,wCAAwC,gCAAgC,aAAa,8CAA8C,iGAAiG,4BAA4B,4BAA4B,4BAA4B,iBAAiB,mDAAmD,0CAA0C,8BAA8B,8BAA8B,8BAA8B,iBAAiB,8CAA8C,6BAA6B,6BAA6B,6BAA6B,iBAAiB,qCAAqC,aAAa,iDAAiD,yBAAyB,yBAAyB,yBAAyB,2BAA2B,8KAA8K,yDAAyD,2BAA2B,cAAc,mVAAmV,0XAA0X,+CAA+C,oBAAoB,wFAAwF,qCAAqC,8BAA8B,8BAA8B,8BAA8B,kCAAkC,aAAa,kFAAkF,qCAAqC,8BAA8B,8BAA8B,8BAA8B,kCAAkC,aAAa,OAAO,4CAA4C,wCAAwC,iBAAiB,4FAA4F,yCAAyC,kCAAkC,kCAAkC,kCAAkC,yCAAyC,kCAAkC,iBAAiB,OAAO,2BAA2B,eAAe,+EAA+E,iBAAiB,aAAa,uCAAuC,uBAAuB,UAAU,6RAA6R,sKAAsK,wDAAwD,mFAAmF,wBAAwB,wBAAwB,wBAAwB,wBAAwB,aAAa,qBAAqB,8BAA8B,+BAA+B,sBAAsB,yCAAyC,8BAA8B,wBAAwB,uCAAuC,uCAAuC,uCAAuC,0CAA0C,UAAU,oRAAoR,sKAAsK,wDAAwD,mFAAmF,wBAAwB,wBAAwB,wBAAwB,aAAa,0CAA0C,yBAAyB,yBAAyB,yBAAyB,aAAa,qBAAqB,8BAA8B,+BAA+B,6CAA6C,yCAAyC,kCAAkC,wBAAwB,uCAAuC,uCAAuC,uCAAuC,0CAA0C,UAAU,yQAAyQ,iHAAiH,qDAAqD,oCAAoC,qBAAqB,qBAAqB,qBAAqB,+BAA+B,8BAA8B,kCAAkC,iLAAiL,2CAA2C,mCAAmC,oBAAoB,yCAAyC,UAAU,yQAAyQ,iHAAiH,qDAAqD,oCAAoC,qBAAqB,qBAAqB,qBAAqB,qCAAqC,8BAA8B,8BAA8B,sBAAsB,yJAAyJ,2CAA2C,4BAA4B,oGAAoG,oBAAoB,yCAAyC,UAAU,sCAAsC,yDAAyD,UAAU,sCAAsC,8CAA8C,QAAQ,8BAA8B,yDAAyD,aAAa,SAAS,kDAAkD,6BAA6B,6KAA6K,2DAA2D,uCAAuC,wCAAwC,oFAAoF,iBAAiB,mEAAmE,iCAAiC,mDAAmD,gFAAgF,aAAa,wBAAwB,SAAS,0DAA0D,mDAAmD,oDAAoD,aAAa,cAAc,sCAAsC,6BAA6B,mCAAmC,6CAA6C,cAAc,uCAAuC,6CAA6C,cAAc,wCAAwC,0BAA0B,UAAU,oCAAoC,4BAA4B,SAAS,ynBAAynB,UAAU,2GAA2G,WAAW,sHAAsH,WAAW,+QAA+Q,mOAAmO,0DAA0D,2EAA2E,wBAAwB,qEAAqE,aAAa,qCAAqC,wBAAwB,2DAA2D,aAAa,uHAAuH,qMAAqM,sBAAsB,6BAA6B,0DAA0D,8DAA8D,4DAA4D,iBAAiB,6BAA6B,iEAAiE,kEAAkE,gEAAgE,iBAAiB,6BAA6B,wDAAwD,6CAA6C,kEAAkE,+CAA+C,oEAAoE,8CAA8C,mEAAmE,mGAAmG,kFAAkF,iBAAiB,6BAA6B,wDAAwD,6CAA6C,kEAAkE,+CAA+C,oEAAoE,8CAA8C,mEAAmE,yGAAyG,mGAAmG,kFAAkF,gEAAgE,iBAAiB,6BAA6B,wDAAwD,6CAA6C,kEAAkE,+CAA+C,oEAAoE,8CAA8C,mEAAmE,yGAAyG,mGAAmG,kFAAkF,gEAAgE,iBAAiB,uBAAuB,kDAAkD,uGAAuG,qEAAqE,2BAA2B,aAAa,oBAAoB,qEAAqE,SAAS,KAAK,uWAAuW,0CAA0C,SAAS,EAAE,8VAA8V,0CAA0C,SAAS,EAAE,mVAAmV,+BAA+B,sBAAsB,EAAE,4GAA4G,SAAS,EAAE,qXAAqX,sEAAsE,4BAA4B,+DAA+D,4BAA4B,8BAA8B,4BAA4B,8BAA8B,wDAAwD,uBAAuB,EAAE,aAAa,2BAA2B,UAAU,sMAAsM,8BAA8B,UAAU,kGAAkG,uBAAuB,8CAA8C,mBAAmB,UAAU,8CAA8C,+BAA+B,sBAAsB,+BAA+B,sBAAsB,+BAA+B,sBAAsB,+BAA+B,kBAAkB,wBAAwB,6BAA6B,gCAAgC,sCAAsC,qBAAqB,0BAA0B,gCAAgC,wBAAwB,qBAAqB,0BAA0B,gCAAgC,wBAAwB,gCAAgC,wBAAwB,qBAAqB,iBAAiB,OAAO,wCAAwC,oCAAoC,qBAAqB,eAAe,gCAAgC,4BAA4B,qBAAqB,iBAAiB,kUAAkU,aAAa,yBAAyB,SAAS,ibAAib,8BAA8B,4BAA4B,aAAa,wCAAwC,0BAA0B,0CAA0C,aAAa,mCAAmC,iEAAiE,2BAA2B,wEAAwE,iEAAiE,aAAa,+BAA+B,yEAAyE,mFAAmF,2DAA2D,6CAA6C,qBAAqB,EAAE,6DAA6D,oEAAoE,qCAAqC,uDAAuD,qBAAqB,wCAAwC,uDAAuD,qBAAqB,kDAAkD,oFAAoF,iDAAiD,kCAAkC,yBAAyB,qBAAqB,iBAAiB,EAAE,aAAa,2CAA2C,sCAAsC,wBAAwB,UAAU,ucAAuc,2BAA2B,4BAA4B,aAAa,+BAA+B,uBAAuB,2BAA2B,kEAAkE,8DAA8D,aAAa,+BAA+B,mEAAmE,qFAAqF,2DAA2D,6CAA6C,qBAAqB,EAAE,mDAAmD,iBAAiB,EAAE,aAAa,2CAA2C,wBAAwB,SAAS,EAAE,mDAAmD,8CAA8C,wBAAwB,kCAAkC,aAAa,OAAO,yBAAyB,gDAAgD,aAAa,oCAAoC,kEAAkE,mCAAmC,mDAAmD,iBAAiB,aAAa,EAAE,yBAAyB,UAAU,oxBAAoxB,2HAA2H,4IAA4I,mBAAmB,8IAA8I,uBAAuB,0JAA0J,qBAAqB,sJAAsJ,qFAAqF,iGAAiG,m1BAAm1B,mDAAmD,oBAAoB,8DAA8D,aAAa,qBAAqB,aAAa,yBAAyB,aAAa,uBAAuB,aAAa,2CAA2C,UAAU,gxBAAgxB,qBAAqB,yIAAyI,qBAAqB,6IAA6I,YAAY,uFAAuF,wCAAwC,+DAA+D,aAAa,iDAAiD,oBAAoB,sOAAsO,UAAU,ybAAyb,8EAA8E,UAAU,sYAAsY,wCAAwC,+jBAA+jB,UAAU,2CAA2C,gHAAgH,4CAA4C,SAAS,4DAA4D,4BAA4B,sBAAsB,aAAa,0CAA0C,gTAAgT,2BAA2B,OAAO,OAAO,mNAAmN,oDAAoD,aAAa,4BAA4B,SAAS,gEAAgE,wEAAwE,uBAAuB,aAAa,2HAA2H,2DAA2D,qCAAqC,0BAA0B,+CAA+C,+DAA+D,aAAa,sBAAsB,SAAS,4DAA4D,oNAAoN,uBAAuB,aAAa,0PAA0P,mCAAmC,uBAAuB,aAAa,sJAAsJ,oaAAoa,uBAAuB,aAAa,oBAAoB,cAAc,SAAS,oCAAoC,2CAA2C,SAAS,yCAAyC,8CAA8C,SAAS,qDAAqD,sFAAsF,mDAAmD,0CAA0C,aAAa,qPAAqP,0CAA0C,2BAA2B,YAAY,OAAO,0EAA0E,4BAA4B,0BAA0B,EAAE,aAAa,uBAAuB,YAAY,OAAO,sEAAsE,4BAA4B,0BAA0B,EAAE,aAAa,uBAAuB,QAAQ,OAAO,+BAA+B,QAAQ,OAAO,yYAAyY,6BAA6B,qEAAqE,qCAAqC,yBAAyB,8DAA8D,0MAA0M,+EAA+E,4CAA4C,sCAAsC,6BAA6B,OAAO,0CAA0C,gOAAgO,EAAE,6BAA6B,yBAAyB,qBAAqB,iBAAiB,aAAa,uBAAuB,SAAS,8TAA8T,glBAAglB,+EAA+E,iDAAiD,UAAU,4DAA4D,oDAAoD,UAAU,2DAA2D,yCAAyC,yCAAyC,wGAAwG,8CAA8C,QAAQ,OAAO,kCAAkC,qCAAqC,qCAAqC,qCAAqC,iBAAiB,OAAO,yCAAyC,4DAA4D,qCAAqC,qCAAqC,qBAAqB,OAAO,oEAAoE,iCAAiC,iCAAiC,qBAAqB,sDAAsD,QAAQ,OAAO,0CAA0C,6CAA6C,6CAA6C,6CAA6C,yBAAyB,OAAO,iDAAiD,oEAAoE,6CAA6C,6CAA6C,6BAA6B,OAAO,4EAA4E,yCAAyC,yCAAyC,6BAA6B,0EAA0E,4CAA4C,4CAA4C,6BAA6B,OAAO,iEAAiE,QAAQ,OAAO,yDAAyD,yDAAyD,wDAAwD,wDAAwD,iCAAiC,uDAAuD,6BAA6B,yBAAyB,qBAAqB,iBAAiB,aAAa,uBAAuB,SAAS,kbAAkb,wCAAwC,+IAA+I,UAAU,mDAAmD,gCAAgC,wJAAwJ,cAAc,UAAU,4PAA4P,whBAAwhB,wEAAwE,sCAAsC,+BAA+B,oCAAoC,4BAA4B,qEAAqE,EAAE,+LAA+L,4BAA4B,4BAA4B,+CAA+C,iBAAiB,wCAAwC,gIAAgI,iDAAiD,QAAQ,OAAO,gCAAgC,wCAAwC,iCAAiC,iCAAiC,kCAAkC,kCAAkC,qBAAqB,OAAO,qFAAqF,4DAA4D,4DAA4D,iCAAiC,iCAAiC,qBAAqB,iBAAiB,+RAA+R,8TAA8T,qCAAqC,0BAA0B,aAAa,+CAA+C,2CAA2C,8CAA8C,2BAA2B,aAAa,wEAAwE,2CAA2C,8BAA8B,8CAA8C,iBAAiB,yFAAyF,iFAAiF,iBAAiB,qKAAqK,+CAA+C,wCAAwC,wCAAwC,2BAA2B,2BAA2B,4BAA4B,4CAA4C,iBAAiB,0DAA0D,QAAQ,OAAO,kFAAkF,yDAAyD,qDAAqD,uCAAuC,oFAAoF,6CAA6C,6CAA6C,6CAA6C,6CAA6C,+DAA+D,+DAA+D,sCAAsC,sGAAsG,sCAAsC,kFAAkF,2CAA2C,mGAAmG,QAAQ,OAAO,mFAAmF,iCAAiC,yBAAyB,qBAAqB,OAAO,wCAAwC,6CAA6C,2CAA2C,2CAA2C,yBAAyB,uDAAuD,QAAQ,OAAO,8CAA8C,yBAAyB,qBAAqB,4CAA4C,wCAAwC,sEAAsE,mCAAmC,kCAAkC,qFAAqF,kCAAkC,qFAAqF,kCAAkC,kFAAkF,kDAAkD,qBAAqB,iBAAiB,8CAA8C,yCAAyC,2BAA2B,aAAa,wEAAwE,2CAA2C,8BAA8B,8CAA8C,iBAAiB,yFAAyF,iFAAiF,iBAAiB,sDAAsD,2CAA2C,iBAAiB,qKAAqK,+CAA+C,yCAAyC,yCAAyC,2BAA2B,2BAA2B,4BAA4B,2CAA2C,iBAAiB,gKAAgK,iEAAiE,QAAQ,OAAO,qCAAqC,sCAAsC,yDAAyD,qDAAqD,uCAAuC,oFAAoF,6CAA6C,6CAA6C,6CAA6C,6CAA6C,oDAAoD,oDAAoD,sCAAsC,yFAAyF,sCAAsC,yFAAyF,sCAAsC,8GAA8G,iEAAiE,QAAQ,OAAO,2DAA2D,6DAA6D,iCAAiC,0CAA0C,gFAAgF,sCAAsC,uFAAuF,gDAAgD,+FAA+F,QAAQ,OAAO,sEAAsE,iCAAiC,yBAAyB,qBAAqB,2BAA2B,2DAA2D,kCAAkC,wEAAwE,0DAA0D,qBAAqB,OAAO,uDAAuD,QAAQ,OAAO,yCAAyC,yBAAyB,qBAAqB,mCAAmC,sEAAsE,mCAAmC,kCAAkC,wEAAwE,kCAAkC,wEAAwE,kCAAkC,oFAAoF,iDAAiD,gFAAgF,gDAAgD,qBAAqB,iBAAiB,8CAA8C,yCAAyC,2BAA2B,aAAa,8CAA8C,gDAAgD,aAAa,sDAAsD,gEAAgE,uPAAuP,aAAa,oGAAoG,wWAAwW,4IAA4I,gCAAgC,YAAY,qBAAqB,EAAE,iCAAiC,8CAA8C,8BAA8B,8BAA8B,8CAA8C,8BAA8B,8BAA8B,sMAAsM,sEAAsE,gCAAgC,yCAAyC,oCAAoC,oCAAoC,qBAAqB,sgBAAsgB,oDAAoD,gDAAgD,iDAAiD,iDAAiD,gDAAgD,yCAAyC,qBAAqB,iDAAiD,yCAAyC,qBAAqB,iBAAiB,OAAO,sCAAsC,sCAAsC,sCAAsC,sCAAsC,iBAAiB,iCAAiC,qCAAqC,yGAAyG,sEAAsE,gDAAgD,gDAAgD,uGAAuG,iBAAiB,6BAA6B,icAAic,0CAA0C,0CAA0C,gCAAgC,qDAAqD,iBAAiB,OAAO,yEAAyE,oCAAoC,oDAAoD,QAAQ,OAAO,kHAAkH,qBAAqB,kCAAkC,iBAAiB,aAAa,sFAAsF,+BAA+B,wBAAwB,yOAAyO,aAAa,kFAAkF,0YAA0Y,gDAAgD,gDAAgD,uCAAuC,uFAAuF,kCAAkC,kCAAkC,iBAAiB,uCAAuC,uFAAuF,kCAAkC,kCAAkC,iBAAiB,kEAAkE,sDAAsD,8BAA8B,iEAAiE,iEAAiE,gDAAgD,gDAAgD,uCAAuC,uFAAuF,kCAAkC,kCAAkC,iBAAiB,uCAAuC,uFAAuF,kCAAkC,kCAAkC,iBAAiB,wBAAwB,0BAA0B,2CAA2C,2BAA2B,2CAA2C,kBAAkB,aAAa,0EAA0E,gDAAgD,0CAA0C,gDAAgD,iBAAiB,kIAAkI,yDAAyD,+BAA+B,yDAAyD,6DAA6D,0CAA0C,UAAU,oCAAoC,yEAAyE,yBAAyB,iEAAiE,0CAA0C,qFAAqF,8CAA8C,sCAAsC,gJAAgJ,sCAAsC,4GAA4G,uIAAuI,6FAA6F,oGAAoG,sCAAsC,mGAAmG,6CAA6C,iCAAiC,8EAA8E,sCAAsC,4GAA4G,yIAAyI,kGAAkG,0DAA0D,sCAAsC,0GAA0G,+CAA+C,iCAAiC,oGAAoG,sCAAsC,sFAAsF,+CAA+C,0GAA0G,sCAAsC,+HAA+H,sCAAsC,2HAA2H,sCAAsC,2HAA2H,sCAAsC,uHAAuH,sCAAsC,yBAAyB,oCAAoC,qBAAqB,gDAAgD,+CAA+C,0CAA0C,2CAA2C,+CAA+C,gDAAgD,gHAAgH,yGAAyG,6BAA6B,4CAA4C,sEAAsE,yBAAyB,qBAAqB,gEAAgE,6FAA6F,oEAAoE,sCAAsC,sCAAsC,+CAA+C,+CAA+C,sEAAsE,yBAAyB,qBAAqB,0PAA0P,+HAA+H,QAAQ,OAAO,+CAA+C,4JAA4J,2CAA2C,gFAAgF,uDAAuD,0DAA0D,yIAAyI,mMAAmM,uFAAuF,0FAA0F,qEAAqE,+CAA+C,sDAAsD,yBAAyB,iEAAiE,mFAAmF,0CAA0C,qBAAqB,kDAAkD,kDAAkD,8KAA8K,8CAA8C,8CAA8C,mEAAmE,mEAAmE,+EAA+E,+EAA+E,uDAAuD,uDAAuD,iBAAiB,0BAA0B,6CAA6C,iBAAiB,wCAAwC,aAAa,sFAAsF,8BAA8B,qDAAqD,QAAQ,OAAO,gCAAgC,0EAA0E,iDAAiD,0CAA0C,oCAAoC,qBAAqB,oDAAoD,8CAA8C,4DAA4D,mCAAmC,iBAAiB,iDAAiD,QAAQ,OAAO,0CAA0C,yGAAyG,2CAA2C,QAAQ,OAAO,iDAAiD,qDAAqD,sCAAsC,6BAA6B,yBAAyB,mCAAmC,sCAAsC,mCAAmC,yBAAyB,2CAA2C,4DAA4D,8BAA8B,OAAO,OAAO,uCAAuC,2DAA2D,yBAAyB,qBAAqB,iBAAiB,4BAA4B,aAAa,qDAAqD,yDAAyD,+DAA+D,oDAAoD,oDAAoD,aAAa,0DAA0D,uCAAuC,2BAA2B,iBAAiB,gCAAgC,+BAA+B,oCAAoC,oCAAoC,+BAA+B,aAAa,wDAAwD,0CAA0C,2BAA2B,iBAAiB,gCAAgC,uCAAuC,+BAA+B,uCAAuC,kCAAkC,aAAa,uEAAuE,gCAAgC,qDAAqD,iDAAiD,mCAAmC,8BAA8B,8BAA8B,aAAa,yEAAyE,gCAAgC,2DAA2D,iDAAiD,mCAAmC,8BAA8B,8BAA8B,aAAa,wYAAwY,wEAAwE,4BAA4B,iEAAiE,+CAA+C,sCAAsC,yBAAyB,sBAAsB,gDAAgD,iCAAiC,aAAa,6YAA6Y,gEAAgE,aAAa,2EAA2E,mCAAmC,0CAA0C,iBAAiB,8CAA8C,EAAE,iCAAiC,iQAAiQ,0CAA0C,4BAA4B,sDAAsD,QAAQ,OAAO,maAAma,4DAA4D,2CAA2C,mDAAmD,mDAAmD,yDAAyD,yDAAyD,8DAA8D,6BAA6B,OAAO,wDAAwD,6BAA6B,yBAAyB,6BAA6B,4CAA4C,yDAAyD,0FAA0F,4CAA4C,6BAA6B,sBAAsB,+CAA+C,6DAA6D,6DAA6D,2DAA2D,iCAAiC,OAAO,+DAA+D,iCAAiC,4CAA4C,6BAA6B,yBAAyB,6BAA6B,yDAAyD,yDAAyD,sGAAsG,2CAA2C,kDAAkD,6BAA6B,sBAAsB,+CAA+C,6DAA6D,6DAA6D,gEAAgE,iCAAiC,OAAO,oEAAoE,iCAAiC,2CAA2C,2CAA2C,6BAA6B,yBAAyB,0CAA0C,sEAAsE,yBAAyB,qCAAqC,sCAAsC,qBAAqB,iBAAiB,qPAAqP,8BAA8B,0BAA0B,4BAA4B,gCAAgC,gCAAgC,+DAA+D,oCAAoC,oCAAoC,iBAAiB,OAAO,iCAAiC,iBAAiB,aAAa,yCAAyC,gCAAgC,0CAA0C,iDAAiD,6DAA6D,uDAAuD,wDAAwD,qBAAqB,OAAO,sCAAsC,qBAAqB,uDAAuD,2DAA2D,qBAAqB,6BAA6B,yCAAyC,qBAAqB,OAAO,sCAAsC,qBAAqB,iBAAiB,aAAa,2EAA2E,0CAA0C,EAAE,gBAAgB,sDAAsD,sDAAsD,mLAAmL,sBAAsB,eAAe,OAAO,mDAAmD,iDAAiD,yQAAyQ,+BAA+B,qBAAqB,iCAAiC,+BAA+B,kEAAkE,QAAQ,OAAO,0DAA0D,wDAAwD,qBAAqB,iBAAiB,wBAAwB,2EAA2E,cAAc,iDAAiD,0BAA0B,wFAAwF,oCAAoC,uBAAuB,aAAa,oCAAoC,gCAAgC,4BAA4B,2OAA2O,iBAAiB,OAAO,4BAA4B,qIAAqI,iBAAiB,aAAa,oBAAoB,uIAAuI,UAAU,8UAA8U,uBAAuB,2WAA2W,sYAAsY,gDAAgD,UAAU,2CAA2C,4BAA4B,4BAA4B,4BAA4B,4BAA4B,4BAA4B,4BAA4B,4BAA4B,aAAa,OAAO,2BAA2B,2BAA2B,2BAA2B,2BAA2B,2BAA2B,2BAA2B,aAAa,SAAS,iCAAiC,gbAAgb,+NAA+N,mDAAmD,2EAA2E,iBAAiB,+BAA+B,OAAO,OAAO,+BAA+B,OAAO,OAAO,gCAAgC,mCAAmC,OAAO,OAAO,0DAA0D,yBAAyB,wCAAwC,qBAAqB,iBAAiB,mCAAmC,mCAAmC,mCAAmC,mCAAmC,mCAAmC,mCAAmC,cAAc,qOAAqO,gFAAgF,8IAA8I,cAAc,uNAAuN,kFAAkF,cAAc,yQAAyQ,2CAA2C,cAAc,wVAAwV,qCAAqC,2DAA2D,2CAA2C,6DAA6D,cAAc,6RAA6R,6BAA6B,2BAA2B,2BAA2B,oGAAoG,oDAAoD,6CAA6C,cAAc,kWAAkW,wDAAwD,cAAc,kWAAkW,wDAAwD,cAAc,4CAA4C,kEAAkE,cAAc,gDAAgD,iPAAiP,cAAc,gDAAgD,sSAAsS,cAAc,8CAA8C,8DAA8D,cAAc,8BAA8B,iDAAiD,aAAa,mCAAmC,6CAA6C,sCAAsC,sCAAsC,aAAa,yjBAAyjB,6BAA6B,8DAA8D,gCAAgC,qGAAqG,qDAAqD,kCAAkC,8EAA8E,gGAAgG,yDAAyD,kCAAkC,wCAAwC,wGAAwG,8BAA8B,uDAAuD,kCAAkC,sDAAsD,qBAAqB,iBAAiB,OAAO,uDAAuD,iBAAiB,6HAA6H,4HAA4H,uEAAuE,2BAA2B,cAAc,yRAAyR,iDAAiD,iCAAiC,oDAAoD,oDAAoD,oDAAoD,4OAA4O,iBAAiB,OAAO,kHAAkH,iBAAiB,cAAc,SAAS,oBAAoB,8CAA8C,yCAAyC,aAAa,yCAAyC,2DAA2D,aAAa,4CAA4C,yCAAyC,aAAa,sCAAsC,4DAA4D,aAAa,8CAA8C,8KAA8K,4BAA4B,uGAAuG,aAAa,sCAAsC,6CAA6C,8DAA8D,8CAA8C,0DAA0D,qEAAqE,0BAA0B,6DAA6D,kEAAkE,mDAAmD,2GAA2G,mGAAmG,QAAQ,OAAO,2EAA2E,+DAA+D,+DAA+D,wEAAwE,sEAAsE,8CAA8C,qCAAqC,iCAAiC,6EAA6E,8BAA8B,4EAA4E,yBAAyB,gDAAgD,oEAAoE,uJAAuJ,4CAA4C,0BAA0B,sBAAsB,iBAAiB,8BAA8B,8DAA8D,8CAA8C,iDAAiD,sTAAsT,kFAAkF,qFAAqF,6DAA6D,0BAA0B,0DAA0D,oDAAoD,8DAA8D,wCAAwC,0BAA0B,wCAAwC,sBAAsB,iBAAiB,aAAa,+DAA+D,gTAAgT,6BAA6B,oCAAoC,qDAAqD,mFAAmF,qCAAqC,iDAAiD,wEAAwE,kDAAkD,kDAAkD,yFAAyF,sCAAsC,6BAA6B,yBAAyB,qBAAqB,OAAO,2CAA2C,qBAAqB,6NAA6N,4DAA4D,kDAAkD,+DAA+D,iDAAiD,uGAAuG,gFAAgF,iCAAiC,iCAAiC,iJAAiJ,iBAAiB,aAAa,oCAAoC,0DAA0D,8DAA8D,6BAA6B,oCAAoC,wCAAwC,sIAAsI,iBAAiB,0BAA0B,aAAa,4cAA4c,0BAA0B,eAAe,EAAE,aAAa,qEAAqE,6CAA6C,k8KAAk8K,KAAK,GAAG,mCAAmC,0EAA0E,iDAAiD,wDAAwD,0CAA0C,yGAAyG,EAAE,qBAAqB,gCAAgC,kBAAkB,qFAAqF,6FAA6F,gCAAgC,4GAA4G,+CAA+C,gDAAgD,iEAAiE,yBAAyB,qBAAqB,gCAAgC,kBAAkB,aAAa,aAAa,SAAS,4jBAA4jB,2EAA2E,eAAe,4EAA4E,+CAA+C,qBAAqB,EAAE,YAAY,2DAA2D,+DAA+D,wCAAwC,4BAA4B,aAAa,wCAAwC,4CAA4C,yDAAyD,6CAA6C,qBAAqB,gCAAgC,iBAAiB,2EAA2E,iCAAiC,aAAa,8BAA8B,mEAAmE,wBAAwB,UAAU,+VAA+V,8BAA8B,qCAAqC,aAAa,OAAO,+DAA+D,aAAa,wBAAwB,UAAU,qLAAqL,8CAA8C,EAAE,UAAU,qeAAqe,yFAAyF,UAAU,gVAAgV,4DAA4D,UAAU,2BAA2B,oqDAAoqD,+BAA+B,wDAAwD,kPAAkP,6CAA6C,iDAAiD,oDAAoD,iCAAiC,6CAA6C,yDAAyD,gEAAgE,8CAA8C,8CAA8C,kCAAkC,yBAAyB,qBAAqB,iBAAiB,2CAA2C,2CAA2C,sEAAsE,2BAA2B,iFAAiF,EAAE,8EAA8E,2EAA2E,wEAAwE,uIAAuI,aAAa,4BAA4B,4BAA4B,uBAAuB,EAAE,kCAAkC,wBAAwB,UAAU,oXAAoX,2GAA2G,UAAU,oLAAoL,qCAAqC,sDAAsD,qDAAqD,uCAAuC,0DAA0D,aAAa,2EAA2E,sBAAsB,UAAU,sYAAsY,6DAA6D,qEAAqE,mDAAmD,uBAAuB,UAAU,miBAAmiB,8FAA8F,iEAAiE,mFAAmF,mDAAmD,uBAAuB,UAAU,icAAic,mEAAmE,gFAAgF,mDAAmD,uBAAuB,UAAU,smEAAsmE,qOAAqO,wGAAwG,0EAA0E,mDAAmD,uBAAuB,UAAU,2gBAA2gB,oEAAoE,oGAAoG,mDAAmD,uBAAuB,UAAU,0dAA0d,8DAA8D,sEAAsE,mDAAmD,uBAAuB,UAAU,8dAA8d,6GAA6G,oBAAoB,cAAc,EAAE,iGAAiG,uHAAuH,0CAA0C,mDAAmD,kCAAkC,oCAAoC,uBAAuB,UAAU,4RAA4R,2GAA2G,oBAAoB,cAAc,EAAE,+FAA+F,6CAA6C,UAAU,0PAA0P,mCAAmC,gCAAgC,uBAAuB,UAAU,oMAAoM,mDAAmD,oBAAoB,yGAAyG,UAAU,+VAA+V,+DAA+D,UAAU,omBAAomB,oEAAoE,UAAU,wTAAwT,iKAAiK,yCAAyC,8fAA8f,oBAAoB,4DAA4D,UAAU,qbAAqb,iBAAiB,EAAE,qEAAqE,sHAAsH,2DAA2D,qFAAqF,gCAAgC,gCAAgC,yCAAyC,6DAA6D,kCAAkC,mDAAmD,iBAAiB,aAAa,0BAA0B,4BAA4B,aAAa,sFAAsF,2CAA2C,aAAa,gEAAgE,uFAAuF,0BAA0B,UAAU,4UAA4U,iCAAiC,wCAAwC,4DAA4D,iCAAiC,iBAAiB,aAAa,EAAE,uBAAuB,UAAU,+RAA+R,kCAAkC,yBAAyB,mCAAmC,+BAA+B,iBAAiB,+BAA+B,aAAa,wBAAwB,UAAU,kcAAkc,wBAAwB,mBAAmB,EAAE,YAAY,EAAE,wEAAwE,kCAAkC,yBAAyB,4DAA4D,gCAAgC,iBAAiB,+BAA+B,aAAa,wBAAwB,UAAU,oXAAoX,iCAAiC,wCAAwC,6CAA6C,iCAAiC,iBAAiB,aAAa,EAAE,uBAAuB,UAAU,wBAAwB,uCAAuC,SAAS,4BAA4B,oFAAoF,SAAS,wYAAwY,8DAA8D,0EAA0E,iEAAiE,aAAa,iDAAiD,UAAU,sVAAsV,gRAAgR,sEAAsE,+BAA+B,0BAA0B,aAAa,2BAA2B,qCAAqC,2CAA2C,6DAA6D,6DAA6D,gDAAgD,gCAAgC,iBAAiB,gCAAgC,aAAa,iDAAiD,gDAAgD,iCAAiC,6DAA6D,iBAAiB,6EAA6E,0CAA0C,uCAAuC,aAAa,0BAA0B,UAAU,2KAA2K,+BAA+B,4BAA4B,aAAa,gEAAgE,mDAAmD,uBAAuB,UAAU,uaAAua,oYAAoY,oHAAoH,wCAAwC,4BAA4B,aAAa,8BAA8B,qBAAqB,uWAAuW,+JAA+J,mEAAmE,2BAA2B,WAAW,OAAO,4CAA4C,4UAA4U,GAAG,aAAa,0EAA0E,UAAU,8BAA8B,kGAAkG,qCAAqC,0EAA0E,iBAAiB,OAAO,kJAAkJ,iBAAiB,aAAa,6DAA6D,2DAA2D,4CAA4C,4DAA4D,wCAAwC,qDAAqD,QAAQ,OAAO,oCAAoC,4CAA4C,sCAAsC,sCAAsC,yBAAyB,OAAO,kGAAkG,mDAAmD,iEAAiE,4HAA4H,yHAAyH,oDAAoD,WAAW,wDAAwD,gJAAgJ,6CAA6C,8CAA8C,8CAA8C,6CAA6C,iCAAiC,2DAA2D,4HAA4H,4CAA4C,4CAA4C,iCAAiC,6BAA6B,qCAAqC,sCAAsC,sCAAsC,yBAAyB,4CAA4C,qBAAqB,sCAAsC,kIAAkI,6CAA6C,2CAA2C,EAAE,iCAAiC,kBAAkB,cAAc,4JAA4J,kTAAkT,0VAA0V,4IAA4I,2DAA2D,odAAod,wDAAwD,2DAA2D,aAAa,qDAAqD,+DAA+D,UAAU,wPAAwP,sCAAsC,wBAAwB,uBAAuB,aAAa,+CAA+C,kDAAkD,aAAa,4CAA4C,UAAU,yVAAyV,4IAA4I,mEAAmE,sCAAsC,wBAAwB,uBAAuB,aAAa,sDAAsD,UAAU,0QAA0Q,qEAAqE,oEAAoE,uBAAuB,aAAa,8BAA8B,qCAAqC,aAAa,4BAA4B,UAAU,sdAAsd,sCAAsC,wBAAwB,uBAAuB,aAAa,oDAAoD,UAAU,kSAAkS,6GAA6G,+VAA+V,kCAAkC,yBAAyB,aAAa,kCAAkC,mCAAmC,aAAa,kCAAkC,mCAAmC,aAAa,mCAAmC,oTAAoT,uDAAuD,aAAa,mCAAmC,gCAAgC,iDAAiD,aAAa,oCAAoC,0BAA0B,gCAAgC,qDAAqD,aAAa,oCAAoC,+BAA+B,6BAA6B,iBAAiB,kFAAkF,aAAa,mCAAmC,kFAAkF,kCAAkC,kCAAkC,iBAAiB,OAAO,sCAAsC,uCAAuC,4CAA4C,qBAAqB,OAAO,4CAA4C,4CAA4C,kDAAkD,yBAAyB,OAAO,6CAA6C,oDAAoD,yBAAyB,qBAAqB,iBAAiB,yBAAyB,aAAa,UAAU,gDAAgD,kDAAkD,wDAAwD,oCAAoC,sCAAsC,oWAAoW,6CAA6C,iBAAiB,sCAAsC,8DAA8D,sBAAsB,8BAA8B,OAAO,iDAAiD,mDAAmD,iCAAiC,qBAAqB,2UAA2U,8DAA8D,6BAA6B,uCAAuC,gGAAgG,gDAAgD,4CAA4C,mEAAmE,qBAAqB,OAAO,8FAA8F,qBAAqB,mCAAmC,iCAAiC,qBAAqB,oCAAoC,oDAAoD,qEAAqE,+DAA+D,sHAAsH,0CAA0C,4cAA4c,0CAA0C,2FAA2F,2EAA2E,QAAQ,OAAO,oEAAoE,kFAAkF,QAAQ,OAAO,wGAAwG,yCAAyC,gEAAgE,qCAAqC,sDAAsD,0CAA0C,6GAA6G,iDAAiD,2EAA2E,QAAQ,OAAO,wEAAwE,kFAAkF,QAAQ,OAAO,2GAA2G,6CAA6C,yCAAyC,qCAAqC,OAAO,gEAAgE,6FAA6F,0CAA0C,iIAAiI,wGAAwG,qCAAqC,0CAA0C,6GAA6G,iDAAiD,8CAA8C,qDAAqD,+FAA+F,yCAAyC,qCAAqC,0CAA0C,+GAA+G,6CAA6C,iFAAiF,iDAAiD,sFAAsF,qCAAqC,0CAA0C,6BAA6B,4CAA4C,yBAAyB,uCAAuC,oDAAoD,oDAAoD,8EAA8E,6BAA6B,EAAE,yBAAyB,yBAAyB,qBAAqB,OAAO,6CAA6C,mDAAmD,4EAA4E,6EAA6E,oEAAoE,6BAA6B,EAAE,yBAAyB,4BAA4B,sCAAsC,yDAAyD,sDAAsD,+DAA+D,+DAA+D,6BAA6B,4CAA4C,8GAA8G,yBAAyB,gDAAgD,8FAA8F,yBAAyB,qBAAqB,iBAAiB,wEAAwE,aAAa,yCAAyC,iEAAiE,cAAc,gmBAAgmB,gBAAgB,SAAS,SAAS,gbAAgb,+BAA+B,kCAAkC,mDAAmD,+BAA+B,aAAa,0HAA0H,0EAA0E,0DAA0D,QAAQ,OAAO,yFAAyF,iFAAiF,0BAA0B,iBAAiB,aAAa,2BAA2B,8JAA8J,yEAAyE,UAAU,qEAAqE,gNAAgN,sCAAsC,oDAAoD,aAAa,wCAAwC,gDAAgD,oDAAoD,aAAa,8CAA8C,0CAA0C,kCAAkC,OAAO,OAAO,8CAA8C,4CAA4C,kCAAkC,qBAAqB,0DAA0D,yCAAyC,8BAA8B,qBAAqB,sCAAsC,iBAAiB,uBAAuB,uBAAuB,uBAAuB,8BAA8B,8BAA8B,iBAAiB,8BAA8B,8BAA8B,iBAAiB,iCAAiC,0CAA0C,gDAAgD,kCAAkC,qBAAqB,iCAAiC,gCAAgC,qBAAqB,OAAO,gCAAgC,qBAAqB,4CAA4C,iBAAiB,0BAA0B,aAAa,kDAAkD,SAAS,4CAA4C,6GAA6G,wBAAwB,UAAU,sCAAsC,2DAA2D,yBAAyB,2BAA2B,uBAAuB,6DAA6D,wDAAwD,iDAAiD,iBAAiB,4CAA4C,aAAa,gCAAgC,qDAAqD,qCAAqC,SAAS,sXAAsX,eAAe,OAAO,iCAAiC,mFAAmF,2GAA2G,sDAAsD,iCAAiC,gCAAgC,qBAAqB,UAAU,6ZAA6Z,sDAAsD,6BAA6B,sDAAsD,qBAAqB,UAAU,mFAAmF,uCAAuC,oOAAoO,wBAAwB,2BAA2B,yBAAyB,0DAA0D,QAAQ,OAAO,iDAAiD,kEAAkE,mDAAmD,2DAA2D,4CAA4C,yBAAyB,OAAO,yCAAyC,yBAAyB,oDAAoD,8BAA8B,qBAAqB,iBAAiB,aAAa,OAAO,6BAA6B,oBAAoB,sDAAsD,QAAQ,OAAO,0FAA0F,+CAA+C,qDAAqD,0DAA0D,gDAAgD,gDAAgD,0BAA0B,iBAAiB,mBAAmB,8DAA8D,iBAAiB,aAAa,0BAA0B,uBAAuB,aAAa,4BAA4B,iEAAiE,qGAAqG,wDAAwD,oFAAoF,gDAAgD,2DAA2D,8GAA8G,sCAAsC,8GAA8G,kEAAkE,8CAA8C,yPAAyP,sCAAsC,+KAA+K,uDAAuD,gDAAgD,mEAAmE,QAAQ,OAAO,wDAAwD,8EAA8E,QAAQ,OAAO,kGAAkG,qCAAqC,iCAAiC,sCAAsC,+KAA+K,yCAAyC,yDAAyD,qDAAqD,oDAAoD,2DAA2D,uEAAuE,QAAQ,OAAO,2EAA2E,8EAA8E,QAAQ,OAAO,wGAAwG,yCAAyC,qCAAqC,iCAAiC,OAAO,0HAA0H,gDAAgD,uBAAuB,mEAAmE,0EAA0E,6CAA6C,0CAA0C,+VAA+V,oEAAoE,+DAA+D,meAAme,oFAAoF,kDAAkD,IAAI,wBAAwB,0BAA0B,IAAI,uEAAuE,yaAAya,iCAAiC,sCAAsC,wMAAwM,4DAA4D,uDAAuD,oDAAoD,qDAAqD,iDAAiD,yFAAyF,qCAAqC,iCAAiC,kDAAkD,sCAAsC,sGAAsG,+DAA+D,gDAAgD,gFAAgF,6CAA6C,8FAA8F,iCAAiC,sCAAsC,yBAAyB,qBAAqB,iBAAiB,oGAAoG,gCAAgC,2DAA2D,2DAA2D,6CAA6C,iDAAiD,wGAAwG,0BAA0B,qBAAqB,OAAO,wCAAwC,qBAAqB,iBAAiB,oEAAoE,qBAAqB,4sBAA4sB,0CAA0C,0DAA0D,kCAAkC,qDAAqD,wDAAwD,2CAA2C,qBAAqB,iBAAiB,kCAAkC,uDAAuD,iBAAiB,6EAA6E,aAAa,OAAO,6CAA6C,iEAAiE,aAAa,qEAAqE,SAAS,ijBAAijB,gBAAgB,SAAS,SAAS,4NAA4N,8CAA8C,8BAA8B,aAAa,wDAAwD,sDAAsD,8BAA8B,aAAa,oCAAoC,0BAA0B,sBAAsB,2CAA2C,mHAAmH,4BAA4B,uCAAuC,aAAa,wBAAwB,qHAAqH,4EAA4E,yCAAyC,+CAA+C,gEAAgE,8CAA8C,yBAAyB,qBAAqB,mCAAmC,oKAAoK,iBAAiB,iDAAiD,aAAa,OAAO,8CAA8C,oDAAoD,sCAAsC,OAAO,MAAM,aAAa,UAAU,obAAob,gBAAgB,SAAS,SAAS,yTAAyT,+BAA+B,kCAAkC,mDAAmD,+BAA+B,aAAa,wGAAwG,gFAAgF,2BAA2B,UAAU,iqBAAiqB,wCAAwC,kEAAkE,aAAa,wBAAwB,UAAU,kjBAAkjB,gGAAgG,uIAAuI,qFAAqF,gCAAgC,6DAA6D,4BAA4B,aAAa,OAAO,+CAA+C,sBAAsB,SAAS,OAAO,6CAA6C,0EAA0E,mCAAmC,4CAA4C,yBAAyB,kCAAkC,8GAA8G,EAAE,qBAAqB,iBAAiB,2BAA2B,6BAA6B,iBAAiB,2BAA2B,aAAa,UAAU,kVAAkV,2BAA2B,8BAA8B,kGAAkG,wGAAwG,uDAAuD,iBAAiB,aAAa,wBAAwB,UAAU,gVAAgV,2BAA2B,8BAA8B,kGAAkG,6CAA6C,sFAAsF,oCAAoC,kDAAkD,iBAAiB,aAAa,wBAAwB,UAAU,6SAA6S,2BAA2B,8BAA8B,kGAAkG,uGAAuG,qDAAqD,iBAAiB,aAAa,wBAAwB,UAAU,uCAAuC,2BAA2B,8BAA8B,mDAAmD,iDAAiD,aAAa,SAAS,kDAAkD,iDAAiD,wCAAwC,kDAAkD,UAAU,sDAAsD,gCAAgC,gCAAgC,oCAAoC,4BAA4B,sDAAsD,QAAQ,OAAO,uHAAuH,+FAA+F,0CAA0C,yBAAyB,qBAAqB,iBAAiB,aAAa,sCAAsC,oMAAoM,yCAAyC,kDAAkD,QAAQ,OAAO,oCAAoC,mGAAmG,4CAA4C,uDAAuD,kCAAkC,iBAAiB,aAAa,wBAAwB,UAAU,uLAAuL,sDAAsD,oCAAoC,UAAU,kcAAkc,mDAAmD,QAAQ,OAAO,yEAAyE,gCAAgC,iBAAiB,aAAa,wBAAwB,UAAU,+DAA+D,uDAAuD,oCAAoC,wCAAwC,uDAAuD,uDAAuD,qBAAqB,EAAE,kBAAkB,aAAa,UAAU,SAAS,gDAAgD,yEAAyE,iDAAiD,QAAQ,OAAO,gDAAgD,iBAAiB,aAAa,OAAO,uDAAuD,QAAQ,OAAO,oDAAoD,iBAAiB,aAAa,wBAAwB,UAAU,6JAA6J,iCAAiC,2BAA2B,aAAa,UAAU,sbAAsb,qEAAqE,8DAA8D,iGAAiG,uBAAuB,sBAAsB,OAAO,wCAAwC,aAAa,uBAAuB,WAAW,OAAO,4CAA4C,aAAa,kBAAkB,yBAAyB,OAAO,2CAA2C,aAAa,qCAAqC,uBAAuB,0BAA0B,OAAO,kGAAkG,aAAa,kEAAkE,6BAA6B,iCAAiC,aAAa,kCAAkC,UAAU,kUAAkU,6CAA6C,QAAQ,0BAA0B,kCAAkC,4BAA4B,aAAa,UAAU,oEAAoE,mFAAmF,0IAA0I,uBAAuB,4BAA4B,aAAa,kDAAkD,6CAA6C,aAAa,EAAE,+DAA+D,kEAAkE,iDAAiD,yBAAyB,uGAAuG,mEAAmE,aAAa,wBAAwB,UAAU,8CAA8C,sCAAsC,yBAAyB,8CAA8C,aAAa,wBAAwB,UAAU,4VAA4V,sCAAsC,yBAAyB,uCAAuC,aAAa,wBAAwB,UAAU,mUAAmU,sCAAsC,gCAAgC,yBAAyB,8DAA8D,aAAa,2BAA2B,UAAU,2KAA2K,8FAA8F,2CAA2C,KAAK,+BAA+B,oEAAoE,8BAA8B,8BAA8B,2CAA2C,4CAA4C,aAAa,kCAAkC,kCAAkC,oCAAoC,oCAAoC,oBAAoB,kKAAkK,UAAU,uCAAuC,iCAAiC,mDAAmD,QAAQ,OAAO,8CAA8C,aAAa,qBAAqB,UAAU,yCAAyC,+CAA+C,UAAU,kDAAkD,uCAAuC,gDAAgD,+CAA+C,8BAA8B,uDAAuD,yCAAyC,qBAAqB,EAAE,iBAAiB,aAAa,EAAE,uBAAuB,UAAU,+ZAA+Z,sCAAsC,wCAAwC,6CAA6C,yCAAyC,iCAAiC,8BAA8B,aAAa,EAAE,iCAAiC,UAAU,6nBAA6nB,EAAE,GAAG,uDAAuD,6BAA6B,4BAA4B,aAAa,0CAA0C,4BAA4B,0DAA0D,+BAA+B,iBAAiB,qDAAqD,mEAAmE,sDAAsD,aAAa,qCAAqC,kDAAkD,aAAa,OAAO,gDAAgD,aAAa,4BAA4B,yFAAyF,6EAA6E,kDAAkD,8CAA8C,+DAA+D,+FAA+F,oCAAoC,2DAA2D,mBAAmB,yBAAyB,+BAA+B,iCAAiC,iEAAiE,oEAAoE,yBAAyB,qBAAqB,iBAAiB,aAAa,wBAAwB,UAAU,imBAAimB,qFAAqF,4CAA4C,wCAAwC,iCAAiC,kDAAkD,gBAAgB,2BAA2B,uBAAuB,aAAa,uCAAuC,wBAAwB,wHAAwH,2EAA2E,8CAA8C,iDAAiD,8BAA8B,qBAAqB,iBAAiB,aAAa,wBAAwB,uBAAuB,iDAAiD,QAAQ,OAAO,sCAAsC,2LAA2L,8BAA8B,qBAAqB,iBAAiB,aAAa,2BAA2B,UAAU,k+BAAk+B,eAAe,EAAE,mHAAmH,0CAA0C,uFAAuF,+DAA+D,sJAAsJ,kEAAkE,uBAAuB,mEAAmE,6RAA6R,oDAAoD,QAAQ,OAAO,gDAAgD,kCAAkC,iCAAiC,qCAAqC,4DAA4D,qBAAqB,OAAO,gFAAgF,4DAA4D,qIAAqI,qCAAqC,qBAAqB,yCAAyC,kLAAkL,qBAAqB,iBAAiB,aAAa,yCAAyC,4EAA4E,EAAE,UAAU,wHAAwH,yBAAyB,+KAA+K,+HAA+H,iBAAiB,gMAAgM,cAAc,uDAAuD,wCAAwC,0HAA0H,sBAAsB,QAAQ,OAAO,sCAAsC,8EAA8E,iBAAiB,aAAa,uBAAuB,UAAU,2IAA2I,SAAS,+VAA+V,6HAA6H,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,mCAAmC,0DAA0D,6EAA6E,mHAAmH,uDAAuD,aAAa,GAAG,8BAA8B,UAAU,kLAAkL,OAAO,sXAAsX,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,sBAAsB,MAAM,+DAA+D,qHAAqH,YAAY,GAAG,gDAAgD,iCAAiC,MAAM,MAAM,+NAA+N,kCAAkC,mGAAmG,kDAAkD,kCAAkC,8CAA8C,gDAAgD,6BAA6B,kFAAkF,yBAAyB,qBAAqB,EAAE,yEAAyE,+BAA+B,kBAAkB,wCAAwC,4EAA4E,mDAAmD,iBAAiB,EAAE,cAAc,SAAS,IAAI,qbAAqb,2DAA2D,4BAA4B,mBAAmB,4CAA4C,8EAA8E,qBAAqB,UAAU,+WAA+W,0BAA0B,eAAe,EAAE,aAAa,yCAAyC,2CAA2C,4BAA4B,gBAAgB,EAAE,aAAa,4GAA4G,qCAAqC,qDAAqD,0BAA0B,SAAS,EAAE,kJAAkJ,gEAAgE,8DAA8D,8DAA8D,kDAAkD,iBAAiB,SAAS,6CAA6C,aAAa,iCAAiC,mGAAmG,aAAa,uBAAuB,SAAS,kCAAkC,qBAAqB,KAAK,GAAG,8wBAA8wB,2DAA2D,2EAA2E,wCAAwC,aAAa,EAAE,SAAS,0CAA0C,iDAAiD,SAAS,OAAO,kCAAkC,SAAS,KAAK,oBAAoB,0BAA0B,mBAAmB,SAAS,6UAA6U,4EAA4E,0RAA0R,gCAAgC,kCAAkC,iGAAiG,UAAU,qCAAqC,2BAA2B,kDAAkD,mCAAmC,qBAAqB,+DAA+D,gEAAgE,uFAAuF,yBAAyB,OAAO,iEAAiE,yBAAyB,qBAAqB,iBAAiB,OAAO,sFAAsF,uFAAuF,iBAAiB,0BAA0B,aAAa,6DAA6D,4RAA4R,0BAA0B,mGAAmG,0CAA0C,yCAAyC,8CAA8C,8CAA8C,0DAA0D,4PAA4P,yBAAyB,iCAAiC,qBAAqB,EAAE,6DAA6D,6CAA6C,qDAAqD,gDAAgD,2CAA2C,wCAAwC,yBAAyB,8KAA8K,yCAAyC,yCAAyC,4CAA4C,mDAAmD,0CAA0C,yBAAyB,4CAA4C,mDAAmD,0CAA0C,yBAAyB,qBAAqB,sDAAsD,gCAAgC,oCAAoC,qBAAqB,kEAAkE,4EAA4E,+DAA+D,gDAAgD,qBAAqB,gDAAgD,qDAAqD,OAAO,EAAE,8CAA8C,oDAAoD,8FAA8F,IAAI,uQAAuQ,EAAE,iDAAiD,yDAAyD,QAAQ,OAAO,wDAAwD,wSAAwS,GAAG,yBAAyB,qBAAqB,iBAAiB,oPAAoP,6FAA6F,sBAAsB,uJAAuJ,EAAE,+BAA+B,8BAA8B,kCAAkC,yBAAyB,aAAa,4CAA4C,wCAAwC,8BAA8B,wFAAwF,EAAE,aAAa,oDAAoD,yCAAyC,umBAAumB,iCAAiC,4CAA4C,oTAAoT,sCAAsC,iDAAiD,OAAO,mDAAmD,OAAO,iDAAiD,OAAO,kDAAkD,OAAO,yBAAyB,qBAAqB,2CAA2C,+BAA+B,+BAA+B,+BAA+B,+BAA+B,6CAA6C,gCAAgC,qHAAqH,qBAAqB,OAAO,0CAA0C,gCAAgC,qHAAqH,qBAAqB,qCAAqC,oCAAoC,sFAAsF,0FAA0F,yBAAyB,OAAO,0FAA0F,8FAA8F,yBAAyB,qBAAqB,OAAO,wCAAwC,qBAAqB,2CAA2C,iKAAiK,+DAA+D,+DAA+D,sLAAsL,GAAG,sDAAsD,yBAAyB,OAAO,oDAAoD,yBAAyB,uGAAuG,sCAAsC,uDAAuD,gTAAgT,EAAE,iDAAiD,2UAA2U,EAAE,oDAAoD,uDAAuD,wDAAwD,yBAAyB,OAAO,sDAAsD,0EAA0E,yBAAyB,qCAAqC,mFAAmF,oCAAoC,oEAAoE,+EAA+E,yBAAyB,OAAO,kDAAkD,iGAAiG,yBAAyB,kCAAkC,8EAA8E,yCAAyC,wEAAwE,yBAAyB,sCAAsC,2DAA2D,+DAA+D,wDAAwD,yDAAyD,4DAA4D,qBAAqB,OAAO,oCAAoC,oEAAoE,qEAAqE,yBAAyB,OAAO,qCAAqC,iGAAiG,yBAAyB,8DAA8D,sCAAsC,EAAE,yDAAyD,2DAA2D,uDAAuD,yDAAyD,2DAA2D,qBAAqB,uGAAuG,iEAAiE,kEAAkE,qBAAqB,iBAAiB,aAAa,0BAA0B,+WAA+W,sDAAsD,4DAA4D,4BAA4B,mGAAmG,qCAAqC,8IAA8I,iCAAiC,iFAAiF,qBAAqB,+BAA+B,yCAAyC,EAAE,iBAAiB,sBAAsB,+BAA+B,+BAA+B,EAAE,iBAAiB,aAAa,sDAAsD,sHAAsH,mDAAmD,yCAAyC,2CAA2C,2DAA2D,qCAAqC,yBAAyB,gDAAgD,2CAA2C,sCAAsC,wFAAwF,sCAAsC,4HAA4H,yIAAyI,uEAAuE,iCAAiC,OAAO,yDAAyD,6EAA6E,2DAA2D,4DAA4D,iCAAiC,sCAAsC,+IAA+I,wEAAwE,sDAAsD,8DAA8D,yDAAyD,4CAA4C,iCAAiC,wDAAwD,6GAA6G,iCAAiC,OAAO,yEAAyE,iCAAiC,sCAAsC,sGAAsG,sCAAsC,kGAAkG,sCAAsC,oGAAoG,sCAAsC,qGAAqG,sCAAsC,sHAAsH,uDAAuD,0GAA0G,sHAAsH,2DAA2D,2CAA2C,yPAAyP,EAAE,uDAAuD,iEAAiE,6CAA6C,yCAAyC,EAAE,gDAAgD,iCAAiC,6CAA6C,gFAAgF,+CAA+C,gHAAgH,kFAAkF,iDAAiD,iBAAiB,EAAE,sDAAsD,qCAAqC,iCAAiC,sCAAsC,mGAAmG,6CAA6C,4DAA4D,EAAE,kDAAkD,qDAAqD,6GAA6G,4GAA4G,qCAAqC,iCAAiC,sCAAsC,yGAAyG,8CAA8C,+CAA+C,gDAAgD,oDAAoD,iCAAiC,OAAO,0CAA0C,iCAAiC,sFAAsF,0EAA0E,iCAAiC,kHAAkH,0CAA0C,iCAAiC,sGAAsG,+DAA+D,8CAA8C,sCAAsC,0GAA0G,8CAA8C,+CAA+C,gDAAgD,oDAAoD,iCAAiC,OAAO,0CAA0C,iCAAiC,sFAAsF,2EAA2E,iCAAiC,kHAAkH,0CAA0C,iCAAiC,sGAAsG,+DAA+D,8CAA8C,sCAAsC,gGAAgG,6CAA6C,qBAAqB,EAAE,iCAAiC,OAAO,kEAAkE,iCAAiC,8CAA8C,sCAAsC,mGAAmG,gFAAgF,iCAAiC,sCAAsC,sdAAsd,qEAAqE,qFAAqF,qCAAqC,0DAA0D,mEAAmE,qCAAqC,iCAAiC,sEAAsE,kEAAkE,sFAAsF,iCAAiC,iDAAiD,yGAAyG,wGAAwG,iCAAiC,sCAAsC,kHAAkH,sCAAsC,iHAAiH,4CAA4C,wDAAwD,0DAA0D,2DAA2D,2CAA2C,kEAAkE,EAAE,2CAA2C,qCAAqC,EAAE,uDAAuD,wDAAwD,0EAA0E,2IAA2I,mDAAmD,oBAAoB,EAAE,mDAAmD,oBAAoB,EAAE,yCAAyC,EAAE,qCAAqC,MAAM,iEAAiE,6CAA6C,gCAAgC,EAAE,mDAAmD,mEAAmE,0CAA0C,iCAAiC,0DAA0D,iDAAiD,2DAA2D,0DAA0D,iMAAiM,uBAAuB,EAAE,qNAAqN,0CAA0C,EAAE,iCAAiC,yHAAyH,4FAA4F,yIAAyI,uDAAuD,gGAAgG,wEAAwE,yHAAyH,EAAE,yCAAyC,qCAAqC,2DAA2D,0DAA0D,0CAA0C,iCAAiC,kEAAkE,oEAAoE,EAAE,kGAAkG,gEAAgE,uFAAuF,sEAAsE,EAAE,sEAAsE,yGAAyG,wGAAwG,iCAAiC,sCAAsC,2LAA2L,sCAAsC,qIAAqI,6CAA6C,oDAAoD,EAAE,iCAAiC,0IAA0I,iIAAiI,mDAAmD,wFAAwF,kIAAkI,YAAY,SAAS,2DAA2D,wBAAwB,EAAE,yCAAyC,uFAAuF,0CAA0C,iCAAiC,gIAAgI,mFAAmF,wEAAwE,iCAAiC,EAAE,4DAA4D,8CAA8C,8DAA8D,sCAAsC,yBAAyB,qBAAqB,iBAAiB,wCAAwC,4CAA4C,aAAa,yEAAyE,yKAAyK,2BAA2B,iBAAiB,+NAA+N,gDAAgD,yCAAyC,6CAA6C,0DAA0D,qBAAqB,kIAAkI,sDAAsD,QAAQ,OAAO,6CAA6C,uCAAuC,+BAA+B,EAAE,6EAA6E,gDAAgD,0CAA0C,qBAAqB,iBAAiB,OAAO,kEAAkE,mDAAmD,QAAQ,cAAc,sCAAsC,+BAA+B,EAAE,qBAAqB,OAAO,sCAAsC,MAAM,EAAE,qBAAqB,iBAAiB,yBAAyB,eAAe,EAAE,+BAA+B,8FAA8F,8DAA8D,QAAQ,EAAE,aAAa,4CAA4C,yFAAyF,2CAA2C,iBAAiB,OAAO,gCAAgC,iBAAiB,aAAa,6CAA6C,oDAAoD,ibAAib,iDAAiD,iDAAiD,qBAAqB,gEAAgE,8QAA8Q,iFAAiF,iCAAiC,kCAAkC,0CAA0C,EAAE,oBAAoB,yDAAyD,4YAA4Y,yCAAyC,yCAAyC,qCAAqC,8SAA8S,kCAAkC,cAAc,EAAE,sGAAsG,gBAAgB,EAAE,oBAAoB,sDAAsD,8CAA8C,0BAA0B,mNAAmN,mDAAmD,2OAA2O,iDAAiD,+BAA+B,oOAAoO,aAAa,4BAA4B,wCAAwC,sCAAsC,yDAAyD,iCAAiC,qDAAqD,yCAAyC,8BAA8B,iCAAiC,6GAA6G,EAAE,qBAAqB,UAAU,2mBAA2mB,+BAA+B,4BAA4B,aAAa,4CAA4C,iCAAiC,qCAAqC,qCAAqC,aAAa,kCAAkC,sCAAsC,2CAA2C,2CAA2C,6CAA6C,8CAA8C,aAAa,4EAA4E,wBAAwB,UAAU,4oBAA4oB,+BAA+B,4BAA4B,aAAa,0CAA0C,gCAAgC,oCAAoC,oCAAoC,oCAAoC,aAAa,gCAAgC,sCAAsC,sCAAsC,2CAA2C,2CAA2C,aAAa,2DAA2D,4DAA4D,+EAA+E,wBAAwB,UAAU,+YAA+Y,+BAA+B,4BAA4B,aAAa,0CAA0C,gCAAgC,oCAAoC,aAAa,qCAAqC,0BAA0B,uEAAuE,wBAAwB,UAAU,k8BAAk8B,4BAA4B,6BAA6B,oCAAoC,kSAAkS,+GAA+G,0GAA0G,mCAAmC,wEAAwE,iGAAiG,oGAAoG,qQAAqQ,2BAA2B,+BAA+B,mCAAmC,aAAa,4CAA4C,2CAA2C,gCAAgC,EAAE,iDAAiD,uCAAuC,uBAAuB,EAAE,6CAA6C,8FAA8F,2BAA2B,qBAAqB,EAAE,aAAa,mGAAmG,4BAA4B,UAAU,oMAAoM,iEAAiE,wBAAwB,UAAU,kMAAkM,6DAA6D,wBAAwB,UAAU,gKAAgK,8CAA8C,mDAAmD,uBAAuB,aAAa,mCAAmC,yDAAyD,mDAAmD,gCAAgC,sDAAsD,aAAa,iCAAiC,kDAAkD,+EAA+E,qCAAqC,uFAAuF,aAAa,gCAAgC,UAAU,wCAAwC,sDAAsD,4BAA4B,gCAAgC,aAAa,oEAAoE,kDAAkD,uEAAuE,aAAa,qFAAqF,oEAAoE,aAAa,0EAA0E,oCAAoC,8CAA8C,aAAa,0BAA0B,iBAAiB,2CAA2C,aAAa,WAAW,iIAAiI,2MAA2M,aAAa,UAAU,kCAAkC,iCAAiC,sDAAsD,iBAAiB,aAAa,gCAAgC,wBAAwB,UAAU,u0IAAu0I,UAAU,2GAA2G,WAAW,4HAA4H,UAAU,uHAAuH,WAAW,2HAA2H,WAAW,onBAAonB,QAAQ,+DAA+D,QAAQ,4FAA4F,+BAA+B,4BAA4B,aAAa,+BAA+B,6BAA6B,mEAAmE,2CAA2C,iBAAiB,yGAAyG,iDAAiD,2BAA2B,aAAa,0DAA0D,6FAA6F,+CAA+C,iBAAiB,4CAA4C,4CAA4C,iBAAiB,+EAA+E,kDAAkD,QAAQ,OAAO,oCAAoC,6CAA6C,qDAAqD,qBAAqB,kEAAkE,0EAA0E,qBAAqB,OAAO,4DAA4D,qBAAqB,iBAAiB,oDAAoD,aAAa,yDAAyD,yBAAyB,6CAA6C,QAAQ,OAAO,sDAAsD,iBAAiB,2BAA2B,aAAa,gCAAgC,gCAAgC,qCAAqC,aAAa,mDAAmD,8BAA8B,aAAa,qCAAqC,kFAAkF,aAAa,6KAA6K,+FAA+F,8CAA8C,+DAA+D,iDAAiD,iBAAiB,aAAa,2CAA2C,wBAAwB,UAAU,qPAAqP,+BAA+B,4BAA4B,aAAa,8CAA8C,8CAA8C,iCAAiC,qDAAqD,wBAAwB,UAAU,mPAAmP,+BAA+B,4BAA4B,aAAa,8CAA8C,6CAA6C,iEAAiE,wCAAwC,iCAAiC,wBAAwB,UAAU,yNAAyN,2CAA2C,4BAA4B,aAAa,kDAAkD,0FAA0F,wCAAwC,+EAA+E,aAAa,OAAO,uDAAuD,aAAa,sDAAsD,wBAAwB,UAAU,4NAA4N,2CAA2C,4BAA4B,aAAa,kDAAkD,0EAA0E,iEAAiE,uDAAuD,wBAAwB,UAAU,wCAAwC,iGAAiG,8BAA8B,0FAA0F,oCAAoC,yCAAyC,yBAAyB,2BAA2B,EAAE,uCAAuC,+CAA+C,+BAA+B,2BAA2B,oCAAoC,EAAE,aAAa,OAAO,8BAA8B,4DAA4D,mCAAmC,wCAAwC,iBAAiB,mDAAmD,aAAa,qBAAqB,UAAU,oDAAoD,mCAAmC,qDAAqD,2CAA2C,yBAAyB,sDAAsD,kCAAkC,6BAA6B,uBAAuB,UAAU,wDAAwD,iCAAiC,qDAAqD,2CAA2C,yBAAyB,2FAA2F,gCAAgC,6BAA6B,uBAAuB,UAAU,0DAA0D,oCAAoC,qDAAqD,2CAA2C,yBAAyB,gEAAgE,mCAAmC,6BAA6B,uBAAuB,UAAU,2DAA2D,kCAAkC,mBAAmB,+DAA+D,EAAE,oDAAoD,qDAAqD,2CAA2C,yBAAyB,2CAA2C,iCAAiC,uBAAuB,UAAU,qDAAqD,iCAAiC,qDAAqD,2CAA2C,yBAAyB,kUAAkU,gCAAgC,6CAA6C,uBAAuB,UAAU,sDAAsD,6CAA6C,gDAAgD,4DAA4D,8DAA8D,gCAAgC,2DAA2D,aAAa,wBAAwB,UAAU,wCAAwC,qOAAqO,6BAA6B,8DAA8D,aAAa,0EAA0E,8BAA8B,uBAAuB,uBAAuB,iCAAiC,mCAAmC,qBAAqB,6NAA6N,EAAE,iCAAiC,+DAA+D,mBAAmB,oBAAoB,gDAAgD,+BAA+B,aAAa,OAAO,iEAAiE,2CAA2C,uEAAuE,iBAAiB,OAAO,gDAAgD,iBAAiB,aAAa,qCAAqC,oCAAoC,sCAAsC,oCAAoC,8BAA8B,iDAAiD,+DAA+D,EAAE,kCAAkC,6BAA6B,UAAU,2DAA2D,gFAAgF,4PAA4P,4BAA4B,mCAAmC,6BAA6B,iBAAiB,oCAAoC,6DAA6D,aAAa,OAAO,oCAAoC,+CAA+C,aAAa,4BAA4B,yFAAyF,EAAE,iCAAiC,qFAAqF,0BAA0B,qBAAqB,EAAE,gCAAgC,iCAAiC,+BAA+B,aAAa,gDAAgD,wBAAwB,UAAU,sdAAsd,sFAAsF,iBAAiB,oEAAoE,aAAa,YAAY,6CAA6C,aAAa,mEAAmE,8BAA8B,2BAA2B,yDAAyD,iDAAiD,iBAAiB,0BAA0B,sDAAsD,+CAA+C,iBAAiB,aAAa,UAAU,iLAAiL,2CAA2C,gCAAgC,kCAAkC,4CAA4C,aAAa,0CAA0C,sHAAsH,qCAAqC,mDAAmD,UAAU,kKAAkK,0CAA0C,sFAAsF,iCAAiC,uFAAuF,aAAa,UAAU,4BAA4B,yFAAyF,uDAAuD,oCAAoC,wCAAwC,uDAAuD,sDAAsD,qBAAqB,EAAE,kBAAkB,aAAa,UAAU,SAAS,KAAK,GAAG,8wBAA8wB,2DAA2D,2EAA2E,wCAAwC,aAAa,EAAE,SAAS,0CAA0C,iDAAiD,SAAS,OAAO,kCAAkC,SAAS,KAAK,oBAAoB,0BAA0B,mBAAmB,SAAS,6bAA6b,+EAA+E,kLAAkL,OAAO,MAAM,UAAU,WAAW,+EAA+E,2BAA2B,0BAA0B,sBAAsB,yCAAyC,0FAA0F,oEAAoE,kCAAkC,8EAA8E,sFAAsF,yJAAyJ,4DAA4D,6DAA6D,oFAAoF,0CAA0C,6BAA6B,2DAA2D,yBAAyB,EAAE,0CAA0C,qBAAqB,EAAE,+BAA+B,iBAAiB,6CAA6C,yBAAyB,+CAA+C,QAAQ,OAAO,8BAA8B,+CAA+C,8CAA8C,kDAAkD,QAAQ,OAAO,4EAA4E,qBAAqB,gCAAgC,iBAAiB,mCAAmC,aAAa,oDAAoD,mCAAmC,uCAAuC,wBAAwB,yFAAyF,aAAa,4DAA4D,6TAA6T,0CAA0C,iCAAiC,2BAA2B,iBAAiB,oDAAoD,0DAA0D,0BAA0B,sDAAsD,8BAA8B,8BAA8B,iBAAiB,0CAA0C,uDAAuD,8BAA8B,4DAA4D,4CAA4C,kEAAkE,2CAA2C,wCAAwC,kCAAkC,wGAAwG,gEAAgE,qBAAqB,qCAAqC,0FAA0F,qBAAqB,wCAAwC,iBAAiB,2CAA2C,cAAc,kCAAkC,mIAAmI,UAAU,mDAAmD,2QAA2Q,6BAA6B,wCAAwC,wRAAwR,kCAAkC,6FAA6F,OAAO,4FAA4F,OAAO,qBAAqB,iBAAiB,wEAAwE,8CAA8C,iDAAiD,gDAAgD,aAAa,sDAAsD,2DAA2D,wCAAwC,uiBAAuiB,uEAAuE,yCAAyC,iBAAiB,8BAA8B,mDAAmD,kCAAkC,iBAAiB,yDAAyD,4DAA4D,+DAA+D,4DAA4D,0DAA0D,mEAAmE,yHAAyH,kCAAkC,8CAA8C,iDAAiD,2DAA2D,oDAAoD,qBAAqB,iBAAiB,yEAAyE,6BAA6B,sKAAsK,8CAA8C,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,2HAA2H,kCAAkC,iBAAiB,8CAA8C,2EAA2E,2CAA2C,wDAAwD,wDAAwD,kIAAkI,uDAAuD,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,6CAA6C,2DAA2D,2CAA2C,4CAA4C,kEAAkE,oEAAoE,oEAAoE,kDAAkD,gDAAgD,yBAAyB,qBAAqB,iDAAiD,+EAA+E,qBAAqB,iBAAiB,iCAAiC,yDAAyD,sEAAsE,iKAAiK,8FAA8F,oGAAoG,iGAAiG,iBAAiB,gDAAgD,2DAA2D,iBAAiB,8CAA8C,4DAA4D,iBAAiB,onBAAonB,6GAA6G,2CAA2C,uEAAuE,4DAA4D,8CAA8C,qBAAqB,oDAAoD,6FAA6F,wCAAwC,qBAAqB,iDAAiD,qEAAqE,oCAAoC,8EAA8E,+CAA+C,gDAAgD,iDAAiD,oDAAoD,gEAAgE,2DAA2D,kEAAkE,qFAAqF,6BAA6B,EAAE,yBAAyB,OAAO,mEAAmE,yCAAyC,kDAAkD,6EAA6E,sBAAsB,qFAAqF,kDAAkD,yDAAyD,oDAAoD,6BAA6B,yBAAyB,qBAAqB,8EAA8E,sJAAsJ,4DAA4D,+CAA+C,uCAAuC,kDAAkD,yBAAyB,qBAAqB,2CAA2C,+JAA+J,6EAA6E,iZAAiZ,yCAAyC,qBAAqB,6KAA6K,8DAA8D,mFAAmF,sIAAsI,+EAA+E,wDAAwD,sFAAsF,wEAAwE,oFAAoF,6CAA6C,qHAAqH,2EAA2E,0LAA0L,yDAAyD,yCAAyC,ihBAAihB,sIAAsI,qBAAqB,0DAA0D,iBAAiB,2CAA2C,uDAAuD,kKAAkK,mCAAmC,gDAAgD,8EAA8E,8EAA8E,2EAA2E,0FAA0F,uDAAuD,2GAA2G,yBAAyB,+BAA+B,6DAA6D,iEAAiE,iEAAiE,iEAAiE,gCAAgC,4CAA4C,2FAA2F,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,kEAAkE,yIAAyI,2DAA2D,QAAQ,oCAAoC,wCAAwC,8BAA8B,qBAAqB,iGAAiG,mHAAmH,gDAAgD,kCAAkC,kHAAkH,iDAAiD,kCAAkC,8GAA8G,wCAAwC,kCAAkC,qBAAqB,+DAA+D,iBAAiB,sDAAsD,aAAa,6DAA6D,wCAAwC,yMAAyM,4CAA4C,6FAA6F,sCAAsC,mCAAmC,yCAAyC,yCAAyC,sIAAsI,2CAA2C,qBAAqB,6BAA6B,iBAAiB,EAAE,yDAAyD,yCAAyC,iDAAiD,4CAA4C,uCAAuC,oCAAoC,qBAAqB,iBAAiB,kDAAkD,4BAA4B,gCAAgC,iBAAiB,sCAAsC,kCAAkC,wCAAwC,mCAAmC,2CAA2C,+CAA+C,8DAA8D,kCAAkC,qDAAqD,QAAQ,OAAO,wFAAwF,qBAAqB,mFAAmF,6CAA6C,sDAAsD,8CAA8C,iDAAiD,kDAAkD,uCAAuC,qBAAqB,OAAO,6CAA6C,iDAAiD,yDAAyD,qBAAqB,wCAAwC,iBAAiB,yBAAyB,aAAa,6CAA6C,2CAA2C,oCAAoC,mCAAmC,yCAAyC,2BAA2B,2BAA2B,gCAAgC,iCAAiC,yCAAyC,0BAA0B,iPAAiP,mDAAmD,oCAAoC,iDAAiD,+BAA+B,iCAAiC,cAAc,2BAA2B,wCAAwC,sCAAsC,6CAA6C,+BAA+B,wCAAwC,aAAa,kKAAkK,sBAAsB,qDAAqD,EAAE,mCAAmC,aAAa,kDAAkD,iQAAiQ,mCAAmC,6DAA6D,0CAA0C,sCAAsC,uCAAuC,sEAAsE,uDAAuD,8KAA8K,oEAAoE,qDAAqD,iBAAiB,OAAO,uCAAuC,kGAAkG,iBAAiB,aAAa,OAAO,mCAAmC,0CAA0C,8CAA8C,aAAa,gCAAgC,8EAA8E,gDAAgD,aAAa,wBAAwB,UAAU,iDAAiD,+BAA+B,4BAA4B,aAAa,8BAA8B,uBAAuB,aAAa,4CAA4C,iCAAiC,qCAAqC,qCAAqC,aAAa,kCAAkC,sCAAsC,2CAA2C,2CAA2C,6CAA6C,8CAA8C,aAAa,8BAA8B,4EAA4E,wBAAwB,UAAU,+CAA+C,+BAA+B,4BAA4B,aAAa,0CAA0C,gCAAgC,oCAAoC,aAAa,qCAAqC,0BAA0B,8BAA8B,oCAAoC,oCAAoC,aAAa,uEAAuE,wBAAwB,UAAU,mDAAmD,+BAA+B,4BAA4B,aAAa,0CAA0C,gCAAgC,oCAAoC,oCAAoC,oCAAoC,yCAAyC,yCAAyC,aAAa,gCAAgC,sCAAsC,sCAAsC,2CAA2C,2CAA2C,aAAa,2DAA2D,4DAA4D,mFAAmF,8BAA8B,wBAAwB,UAAU,oCAAoC,kEAAkE,wBAAwB,UAAU,oCAAoC,2DAA2D,wBAAwB,UAAU,4FAA4F,qCAAqC,sCAAsC,oEAAoE,2BAA2B,yDAAyD,wDAAwD,yBAAyB,wDAAwD,yBAAyB,wCAAwC,wCAAwC,qCAAqC,sCAAsC,yBAAyB,aAAa,qBAAqB,UAAU,wCAAwC,+BAA+B,0BAA0B,aAAa,oBAAoB,sKAAsK,UAAU,sCAAsC,wDAAwD,uBAAuB,aAAa,mEAAmE,qDAAqD,sCAAsC,wDAAwD,wEAAwE,iCAAiC,uFAAuF,aAAa,gCAAgC,UAAU,+CAA+C,+BAA+B,4BAA4B,aAAa,+BAA+B,6BAA6B,mEAAmE,2CAA2C,iBAAiB,yGAAyG,iDAAiD,2BAA2B,aAAa,0DAA0D,+FAA+F,+CAA+C,iBAAiB,+EAA+E,kDAAkD,QAAQ,OAAO,oCAAoC,6CAA6C,qDAAqD,qBAAqB,kEAAkE,0EAA0E,qBAAqB,OAAO,4DAA4D,qBAAqB,iBAAiB,oDAAoD,aAAa,uEAAuE,yBAAyB,6CAA6C,QAAQ,OAAO,sDAAsD,iBAAiB,2BAA2B,aAAa,uBAAuB,gCAAgC,4BAA4B,qCAAqC,aAAa,uEAAuE,qCAAqC,kFAAkF,aAAa,yBAAyB,iLAAiL,mGAAmG,kDAAkD,mEAAmE,qDAAqD,qBAAqB,iBAAiB,8DAA8D,2DAA2D,uDAAuD,iBAAiB,+CAA+C,uDAAuD,aAAa,wBAAwB,UAAU,uCAAuC,yEAAyE,iFAAiF,wBAAwB,UAAU,sCAAsC,+BAA+B,4BAA4B,aAAa,+DAA+D,8FAA8F,4CAA4C,aAAa,wBAAwB,UAAU,kDAAkD,+BAA+B,4BAA4B,aAAa,0DAA0D,sDAAsD,aAAa,2CAA2C,0FAA0F,aAAa,OAAO,+DAA+D,aAAa,sDAAsD,wBAAwB,UAAU,mDAAmD,+BAA+B,4BAA4B,aAAa,0DAA0D,qCAAqC,aAAa,0EAA0E,uDAAuD,wBAAwB,UAAU,wCAAwC,wEAAwE,yCAAyC,8BAA8B,uCAAuC,wFAAwF,wCAAwC,EAAE,SAAS,EAAE,2BAA2B,aAAa,OAAO,6BAA6B,6BAA6B,uCAAuC,aAAa,wBAAwB,UAAU,yDAAyD,2CAA2C,sCAAsC,2CAA2C,6CAA6C,iEAAiE,kCAAkC,mDAAmD,8BAA8B,wBAAwB,uBAAuB,sCAAsC,uCAAuC,4CAA4C,2BAA2B,iCAAiC,0BAA0B,2BAA2B,qBAAqB,UAAU,wDAAwD,qHAAqH,4BAA4B,4BAA4B,gCAAgC,iCAAiC,oBAAoB,0BAA0B,gCAAgC,uBAAuB,UAAU,0DAA0D,+DAA+D,2BAA2B,2BAA2B,2BAA2B,2BAA2B,mCAAmC,mCAAmC,sGAAsG,EAAE,uBAAuB,UAAU,oDAAoD,+DAA+D,0BAA0B,0BAA0B,kCAAkC,kCAAkC,mCAAmC,6EAA6E,EAAE,uBAAuB,UAAU,2DAA2D,0FAA0F,iBAAiB,gIAAgI,wBAAwB,4BAA4B,4BAA4B,gCAAgC,iCAAiC,0BAA0B,iCAAiC,8DAA8D,+BAA+B,2BAA2B,iCAAiC,mCAAmC,oCAAoC,mCAAmC,0CAA0C,uBAAuB,UAAU,qDAAqD,oIAAoI,uBAAuB,uBAAuB,gCAAgC,kCAAkC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,2DAA2D,mCAAmC,iCAAiC,wBAAwB,sCAAsC,2CAA2C,qCAAqC,iEAAiE,yKAAyK,yBAAyB,0BAA0B,2BAA2B,8BAA8B,qCAAqC,0BAA0B,0BAA0B,0BAA0B,0BAA0B,sCAAsC,8BAA8B,iCAAiC,uCAAuC,4CAA4C,2BAA2B,iCAAiC,0BAA0B,2BAA2B,qBAAqB,UAAU,sDAAsD,uCAAuC,+BAA+B,iCAAiC,iDAAiD,oDAAoD,6BAA6B,+BAA+B,qEAAqE,gCAAgC,gEAAgE,aAAa,wBAAwB,UAAU,2DAA2D,kFAAkF,kJAAkJ,sBAAsB,+BAA+B,8BAA8B,oCAAoC,iDAAiD,iBAAiB,qCAAqC,kDAAkD,iBAAiB,aAAa,gDAAgD,kCAAkC,4FAA4F,wCAAwC,sCAAsC,aAAa,EAAE,wBAAwB,UAAU,uBAAuB,4CAA4C,mCAAmC,8CAA8C,0FAA0F,aAAa,OAAO,iOAAiO,aAAa,iBAAiB,wGAAwG,iDAAiD,sFAAsF,kBAAkB,aAAa,YAAY,iDAAiD,yHAAyH,kBAAkB,aAAa,UAAU,oCAAoC,wCAAwC,gPAAgP,6BAA6B,8DAA8D,aAAa,iIAAiI,uBAAuB,uBAAuB,iCAAiC,mCAAmC,8BAA8B,gCAAgC,iDAAiD,oDAAoD,wDAAwD,sCAAsC,wDAAwD,yDAAyD,aAAa,YAAY,UAAU,SAAS,cAAc,GAAG,oCAAoC,0CAA0C,OAAO,OAAO,GAAG,QAAQ,GAAG,qBAAqB,kBAAkB,aAAa,EAAE,EAAE,EAAE,IAAI,kCAAkC,iCAAiC,6CAA6C,qCAAqC,oCAAoC,2CAA2C,aAAa,OAAO,2CAA2C,oEAAoE,iBAAiB,OAAO,6CAA6C,iBAAiB,aAAa,2CAA2C,uBAAuB,UAAU,yCAAyC,2CAA2C,sCAAsC,yDAAyD,0DAA0D,aAAa,YAAY,UAAU,SAAS,cAAc,eAAe,GAAG,+CAA+C,0CAA0C,UAAU,0CAA0C,4CAA4C,4DAA4D,iCAAiC,uFAAuF,aAAa,wBAAwB,UAAU,gCAAgC,yFAAyF,uDAAuD,oCAAoC,wCAAwC,uDAAuD,sDAAsD,qBAAqB,EAAE,kBAAkB,aAAa,UAAU,SAAS,KAAK,GAAG,urBAAurB,2DAA2D,yGAAyG,yDAAyD,aAAa,EAAE,SAAS,0CAA0C,oDAAoD,yCAAyC,qCAAqC,kDAAkD,SAAS,OAAO,iDAAiD,SAAS,KAAK,2BAA2B,+BAA+B,KAAK,GAAG,uVAAuV,+DAA+D,+EAA+E,sBAAsB,8EAA8E,sCAAsC,mDAAmD,wDAAwD,uDAAuD,qBAAqB,iBAAiB,sDAAsD,2EAA2E,iBAAiB,4EAA4E,sDAAsD,2DAA2D,2DAA2D,+DAA+D,gEAAgE,6CAA6C,0CAA0C,6BAA6B,aAAa,wGAAwG,kEAAkE,6CAA6C,oEAAoE,iBAAiB,aAAa,mJAAmJ,0DAA0D,kCAAkC,gDAAgD,gEAAgE,kEAAkE,6CAA6C,iBAAiB,OAAO,kDAAkD,iBAAiB,kCAAkC,aAAa,2EAA2E,UAAU,mCAAmC,6DAA6D,mEAAmE,mCAAmC,oDAAoD,iDAAiD,sEAAsE,gFAAgF,yBAAyB,qBAAqB,OAAO,qEAAqE,qBAAqB,iBAAiB,6DAA6D,gCAAgC,aAAa,oEAAoE,8CAA8C,oCAAoC,iBAAiB,6BAA6B,0BAA0B,iDAAiD,gDAAgD,iBAAiB,OAAO,yCAAyC,iBAAiB,qDAAqD,wCAAwC,iBAAiB,OAAO,8CAA8C,iBAAiB,8CAA8C,yCAAyC,0CAA0C,+DAA+D,gCAAgC,aAAa,4CAA4C,gGAAgG,aAAa,wDAAwD,uEAAuE,4CAA4C,EAAE,uEAAuE,4CAA4C,EAAE,wFAAwF,gCAAgC,aAAa,oEAAoE,8CAA8C,oCAAoC,iBAAiB,gDAAgD,wCAAwC,iBAAiB,wCAAwC,qCAAqC,+CAA+C,kEAAkE,gCAAgC,aAAa,wEAAwE,sCAAsC,2BAA2B,iBAAiB,sCAAsC,2BAA2B,iBAAiB,sCAAsC,2BAA2B,iBAAiB,sCAAsC,2BAA2B,iBAAiB,4DAA4D,4HAA4H,EAAE,gCAAgC,aAAa,8DAA8D,oCAAoC,sFAAsF,iBAAiB,kDAAkD,oCAAoC,iBAAiB,uDAAuD,qEAAqE,gCAAgC,aAAa,0DAA0D,wDAAwD,oFAAoF,iBAAiB,kDAAkD,oCAAoC,iBAAiB,mCAAmC,mCAAmC,+DAA+D,gCAAgC,aAAa,0EAA0E,uEAAuE,uFAAuF,iBAAiB,8DAA8D,yCAAyC,kDAAkD,oCAAoC,iBAAiB,2CAA2C,yCAAyC,2DAA2D,iBAAiB,mEAAmE,iDAAiD,iBAAiB,iCAAiC,kDAAkD,iBAAiB,6EAA6E,2FAA2F,EAAE,wHAAwH,gCAAgC,aAAa,uEAAuE,yCAAyC,6FAA6F,iBAAiB,0CAA0C,iCAAiC,iBAAiB,wEAAwE,kDAAkD,oCAAoC,iBAAiB,2DAA2D,gKAAgK,sWAAsW,oEAAoE,gCAAgC,aAAa,mEAAmE,yCAAyC,6FAA6F,iBAAiB,2CAA2C,gCAAgC,iBAAiB,kDAAkD,oCAAoC,iBAAiB,2DAA2D,qIAAqI,+VAA+V,oEAAoE,gCAAgC,aAAa,kEAAkE,8CAA8C,oCAAoC,iBAAiB,kDAAkD,oCAAoC,iBAAiB,mDAAmD,+CAA+C,oEAAoE,gCAAgC,aAAa,kEAAkE,0CAA0C,iHAAiH,iBAAiB,kDAAkD,oCAAoC,iBAAiB,qDAAqD,uEAAuE,gCAAgC,aAAa,uEAAuE,sCAAsC,mEAAmE,iBAAiB,sCAAsC,mEAAmE,iBAAiB,wCAAwC,oFAAoF,iBAAiB,+CAA+C,kCAAkC,iBAAiB,8DAA8D,6CAA6C,wCAAwC,iBAAiB,4CAA4C,wDAAwD,EAAE,oDAAoD,uCAAuC,qEAAqE,gCAAgC,aAAa,0DAA0D,0CAA0C,+BAA+B,iBAAiB,qCAAqC,8BAA8B,iBAAiB,qCAAqC,8BAA8B,iBAAiB,qCAAqC,4BAA4B,iBAAiB,2HAA2H,wDAAwD,EAAE,+CAA+C,kFAAkF,2FAA2F,EAAE,8DAA8D,4IAA4I,oBAAoB,gFAAgF,sDAAsD,oIAAoI,wDAAwD,EAAE,+CAA+C,iFAAiF,0GAA0G,EAAE,8DAA8D,2IAA2I,mBAAmB,gFAAgF,qDAAqD,wFAAwF,EAAE,qDAAqD,kFAAkF,wEAAwE,gCAAgC,aAAa,UAAU,gCAAgC,KAAK,QAAQ,oGAAoG,yBAAyB,6CAA6C,+CAA+C,0BAA0B,MAAM,qGAAqG,0EAA0E,uEAAuE,oCAAoC,wBAAwB,MAAM,yHAAyH,wCAAwC,MAAM,2GAA2G,wCAAwC,6BAA6B,SAAS,mDAAmD,wBAAwB,MAAM,sIAAsI,8BAA8B,mBAAmB,SAAS,8BAA8B,mBAAmB,SAAS,gCAAgC,qBAAqB,SAAS,wEAAwE,wBAAwB,MAAM,wHAAwH,6BAA6B,iCAAiC,SAAS,6BAA6B,kBAAkB,SAAS,6BAA6B,mBAAmB,SAAS,+DAA+D,wBAAwB,MAAM,2HAA2H,iCAAiC,8BAA8B,SAAS,iCAAiC,wBAAwB,SAAS,2DAA2D,wBAAwB,MAAM,mGAAmG,8CAA8C,wBAAwB,MAAM,8GAA8G,mDAAmD,wBAAwB,MAAM,4GAA4G,0CAA0C,wBAAwB,MAAM;;AAEhh2V,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,wCAAwC;AACxC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4BAA4B,IAAI,SAAS,IAAI,SAAS,IAAI;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,2BAA2B,IAAI,SAAS,IAAI,SAAS,IAAI;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,sBAAsB,EAAE,KAAK,EAAE,KAAK,EAAE;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,sBAAsB,EAAE,KAAK,EAAE,KAAK,EAAE;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uBAAuB,uBAAuB;AAC9C;AACA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,mDAAmD;AACnD,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa;AACb;AACA;;AAEA;;AAEA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA,EAAE;AACF;AACA;AACA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAe,yBAAyB,SAAS,CAAC,iBAAiB,mBAAmB,cAAc,4BAA4B,YAAY,qBAAqB,2DAA2D,SAAS,mCAAmC,SAAS,qBAAqB,qCAAqC,oCAAoC,EAAE,iBAAiB,iCAAiC,iBAAiB,YAAY,UAAU,sBAAsB,mBAAmB,iDAAiD,yBAAyB,kBAAkB,aAAa,aAAa,cAAc,4BAA4B,SAAS,iFAAiF,qBAAqB,gBAAgB,8EAA8E,aAAa,+DAA+D,sBAAsB,uBAAuB,sCAAsC,SAAS,uEAAuE,iBAAiB,gBAAgB,YAAY,WAAW,KAAK,WAAW,+GAA+G,uBAAuB,wCAAwC,6EAA6E,gBAAgB,aAAa,qGAAqG,UAAU,uCAAuC,0BAA0B,WAAW,0ZAA0Z,wBAAwB,iCAAiC,uBAAuB,sBAAsB,IAAI,4BAA4B,oBAAoB,wCAAwC,oBAAoB,uBAAuB,yCAAyC,sBAAsB,IAAI,qCAAqC,0EAA0E,+BAA+B,mDAAmD,cAAc,kBAAkB,iCAAiC,IAAI,0BAA0B,aAAa,+DAA+D,iEAAiE,0GAA0G,aAAa,qCAAqC,0CAA0C,gBAAgB,cAAc,yBAAyB,GAAG,EAAE,wCAAwC,gLAAgL,wHAAwH,oCAAoC,4KAA4K,EAAE,6BAA6B,0GAA0G,iIAAiI,EAAE,iCAAiC,uEAAuE,sEAAsE,sJAAsJ,sBAAsB,2DAA2D,EAAE,yBAAyB,kCAAkC,2JAA2J,yBAAyB,yCAAyC,yBAAyB,+BAA+B,EAAE,2BAA2B,8BAA8B,EAAE,4BAA4B,sBAAsB,EAAE,6BAA6B,0DAA0D,EAAE,8BAA8B,iJAAiJ,EAAE,6BAA6B,gBAAgB,cAAc,6JAA6J,EAAE,4BAA4B,+JAA+J,qOAAqO,EAAE,iCAAiC,0CAA0C,EAAE,4CAA4C,0BAA0B,EAAE,+BAA+B,WAAW,mBAAmB,mBAAmB,GAAG,KAAK,GAAG,iBAAiB,oBAAoB,QAAQ,2BAA2B,iBAAiB,EAAE,eAAe,iBAAiB,aAAa,cAAc,qGAAqG,iBAAiB,6GAA6G,qBAAqB,IAAI,2BAA2B,wBAAwB,6DAA6D,YAAY,KAAK,KAAK,oCAAoC,gEAAgE,YAAY,oBAAoB,SAAS,2DAA2D,OAAO,uDAAuD,cAAc,SAAS,UAAU,+BAA+B,uBAAuB,mBAAmB,KAAK,uBAAuB,wCAAwC,MAAM,OAAO,YAAY,WAAW,uCAAuC,UAAU,iBAAiB,aAAa,wBAAwB,0CAA0C,sBAAsB,eAAe,sBAAsB,eAAe,sBAAsB,eAAe,kBAAkB,iBAAiB,0DAA0D,YAAY,IAAI,KAAK,4BAA4B,0BAA0B,OAAO,4BAA4B,gBAAgB,KAAK,IAAI,EAAE,4BAA4B,yBAAyB,UAAU,yEAAyE,iBAAiB,eAAe,iBAAiB,KAAK,sCAAsC,SAAS,mDAAmD,gCAAgC,0BAA0B,WAAW,wBAAwB,mBAAmB,wBAAwB,wCAAwC,yDAAyD,kCAAkC,EAAE,mCAAmC,uCAAuC,iBAAiB,aAAa,sCAAsC,SAAS,uBAAuB,6BAA6B,iBAAiB,gCAAgC,iHAAiH,QAAQ,uFAAuF,sCAAsC,uCAAuC,iBAAiB,aAAa,gFAAgF,gBAAgB,aAAa,qGAAqG,aAAa,YAAY,GAAG,IAAI,iDAAiD,SAAS,0EAA0E,YAAY,iBAAiB,aAAa,sCAAsC,SAAS,EAAE,qBAAqB,SAAS,0BAA0B,qBAAqB,2BAA2B,2BAA2B,6BAA6B,kDAAkD,2BAA2B,qBAAqB,4BAA4B,yBAAyB,8BAA8B,wDAAwD,2BAA2B,qBAAqB,4BAA4B,2BAA2B,8BAA8B,8DAA8D,2BAA2B,qBAAqB,4BAA4B,yBAAyB,8BAA8B,wDAAwD,0BAA0B,iCAAiC,2BAA2B,+BAA+B,6BAA6B,kCAAkC,0BAA0B,oCAAoC,2BAA2B,mCAAmC,6BAA6B,oFAAoF,0BAA0B,4BAA4B,2BAA2B,oCAAoC,6BAA6B,sEAAsE,6BAA6B,yIAAyI,0BAA0B,cAAc,uBAAuB,2BAA2B,cAAc,6BAA6B,6BAA6B,cAAc,iFAAiF,uBAAuB,4DAA4D,2BAA2B,cAAc,iFAAiF,yBAAyB,cAAc,uBAAuB,uBAAuB,cAAc,6BAA6B,sBAAsB,yIAAyI,0BAA0B,qJAAqJ,0BAA0B,8DAA8D,wBAAwB,qBAAqB,sBAAsB,wBAAwB,iBAAiB,aAAa,sCAAsC,SAAS,EAAE,WAAW,qCAAqC,6BAA6B,oBAAoB,mCAAmC,6BAA6B,gBAAgB,EAAE,WAAW,uCAAuC,6BAA6B,sBAAsB,EAAE,WAAW,6CAA6C,6BAA6B,4BAA4B,iDAAiD,6BAA6B,8BAA8B,EAAE,iBAAiB,aAAa,cAAc,sBAAsB,kBAAkB,wCAAwC,oBAAoB,sBAAsB,mCAAmC,cAAc,EAAE,oBAAoB,sBAAsB,4BAA4B,cAAc,SAAS,sCAAsC,SAAS,kDAAkD,wBAAwB,0CAA0C,gDAAgD,qBAAqB,IAAI,oBAAoB,2BAA2B,kBAAkB,EAAE,eAAe,gCAAgC,gGAAgG,eAAe,8IAA8I,eAAe,gCAAgC,mBAAmB,sCAAsC,gCAAgC,+BAA+B,IAAI,eAAe,gBAAgB,eAAe,yBAAyB,WAAW,4CAA4C,EAAE,eAAe,4CAA4C,6CAA6C,eAAe,gBAAgB,eAAe,6BAA6B,eAAe,SAAS,+BAA+B,WAAW,2BAA2B,uCAAuC,EAAE,IAAI,iBAAiB,yBAAyB,8BAA8B,gCAAgC,cAAc,EAAE,iBAAiB,SAAS,6BAA6B,sBAAsB,IAAI,iBAAiB,yBAAyB,YAAY,EAAE,iBAAiB,6BAA6B,wCAAwC,IAAI,iBAAiB,yBAAyB,8DAA8D,UAAU,EAAE,iBAAiB,yBAAyB,6BAA6B,8BAA8B,mCAAmC,wBAAwB,oBAAoB,EAAE,yBAAyB,cAAc,cAAc,EAAE,iBAAiB,yBAAyB,2CAA2C,0CAA0C,WAAW,qBAAqB,cAAc,GAAG,GAAG;AACjxc;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,aAAa,YAAY;AACzB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA,cAAc,WAAW;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;;AAGA,aAAa,WAAW;AACxB;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,aAAa,aAAa;AAC1B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,YAAY;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,iBAAiB,mBAAmB;AACpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,iBAAiB,sBAAsB;AACvC;;AAEA;AACA,mBAAmB,2BAA2B;;AAE9C;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB,mBAAmB;AACnC;AACA;;AAEA;AACA;;AAEA,iBAAiB,2BAA2B;AAC5C;AACA;;AAEA,QAAQ,uBAAuB;AAC/B;AACA;AACA,GAAG;AACH;;AAEA,iBAAiB,uBAAuB;AACxC;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;;AAEA;AACA;AACA;;AAEA,gBAAgB,iBAAiB;AACjC;AACA;AACA;AACA;AACA;AACA,cAAc;;AAEd,kDAAkD,sBAAsB;AACxE;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD;AACvD;;AAEA,6BAA6B,mBAAmB;;AAEhD;;AAEA;;AAEA;AACA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,WAAW,EAAE;AACrD,wCAAwC,WAAW,EAAE;;AAErD;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,sCAAsC;AACtC,GAAG;AACH;AACA,8DAA8D;AAC9D;;AAEA;AACA;AACA,EAAE;;AAEF;AACA;AACA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA,yDAAyD;AACzD;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,mBAAmB;AAC/D;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA,gCAAgC;AAChC;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,KAAK;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC,CAAC;;AAED,kHAAkH;AAClH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,oBAAoB,YAAY,QAAQ;AAChF,2CAA2C,QAAQ;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,0BAA0B,cAAc;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kLAAkL;AAClL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;;;AAGA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,EAAE;AACF;AACA,gEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA,gEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C;AACA,EAAE;AACF,2CAA2C;AAC3C;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA,yBAAyB;AACzB,0BAA0B;AAC1B,2BAA2B;AAC3B,4BAA4B;AAC5B,+BAA+B;AAC/B;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,SAAS;AACT;AACA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,GAAG;AACH,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA,GAAG;AACH;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;;AAEA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;AAIA,cAAc,MAAM;AACpB;AACA;AACA;AACA,4BAA4B,gDAAgD;AAC5E,IAAI;AACJ,4BAA4B,oCAAoC;AAChE;AACA;AACA,cAAc,MAAM;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,gCAAgC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,gCAAgC;AAC3D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,MAAM;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,SAAS;AACV;;AAEA;AACA;AACA;AACA;;;AAGA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd,eAAe;AACf,mBAAmB;AACnB,aAAa;AACb,4BAA4B;AAC5B,mBAAmB;AACnB,oBAAoB;AACpB,oBAAoB;;AAEpB;;AAEA;;AAEA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,uB;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,8BAA8B;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C,WAAW;AACX,mBAAmB,MAAM;AACzB;AACA;AACA,wCAAwC;AACxC;AACA,QAAQ,SAAS;AACjB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;;;AAIA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,IAAI;AACJ,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C;AAC3C,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA,eAAe;AACf;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,IAAI,KAAK;AACT;AACA;AACA;AACA,wBAAwB;AACxB,yBAAyB;AACzB,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,IAAI;AACJ;;AAEA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,GAAG,KAAK;AACZ,gCAAgC;AAChC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,I;AACA;AACA;AACA,sBAAsB;AACtB;AACA,wDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,KAAK;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,yBAAyB;AACzB,EAAE;AACF;AACA,0BAA0B,yBAAyB;AACnD,wBAAwB,uBAAuB;AAC/C,sBAAsB,qBAAqB;AAC3C,oBAAoB,mBAAmB;AACvC,sBAAsB;AACtB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,IAAI;AACJ,uBAAuB,0DAA0D;AACjF;AACA,wBAAwB;AACxB;;;;;AAKA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;;;;AAIA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F,kCAAkC,0BAA0B,0CAA0C,gBAAgB,OAAO,kBAAkB,EAAE,aAAa,EAAE,OAAO,wBAAwB,EAAE,EAAE;AACnM;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6MAA6M;AAC7M;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,iDAAiD;;AAEpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,mCAAmC;AACnC;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,2BAA2B;AAC3B,0BAA0B;AAC1B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,sEAAsE;AACtE,mFAAmF;AACnF,yFAAyF;AACzF,8FAA8F;AAC9F,yFAAyF;AACzF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD;AACpD;AACA,2CAA2C,mCAAmC;AAC9E;AACA;AACA;AACA;AACA,2CAA2C,gBAAgB;AAC3D;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL,8GAA8G;AAC9G;AACA,GAAG;;AAEH;AACA;AACA;AACA,4DAA4D;AAC5D;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,8BAA8B,eAAe;;AAE7C;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wCAAwC,+CAA+C;AACvF,wCAAwC,+CAA+C;AACvF;AACA,OAAO;AACP;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,gCAAgC;AAC7C;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,mBAAmB,yEAAyE;AAC5F;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,mBAAmB;AAChC;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,cAAc;AAC3B,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kCAAkC,+BAA+B;;AAEjE;AACA,+BAA+B,+BAA+B;;AAE9D;AACA,8BAA8B,+BAA+B;;AAE7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,qCAAqC,iBAAiB;;AAEtD,iCAAiC,+BAA+B;;AAEhE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA,cAAc;AACd;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB,mEAAmE;AACzF,SAAS;AACT;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,qCAAqC;AAClD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,qCAAqC;AAClD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,0BAA0B;AACvC,aAAa,0BAA0B;AACvC;AACA,eAAe;AACf;AACA;AACA;AACA,6CAA6C;AAC7C;;AAEA;AACA,6CAA6C;AAC7C;;AAEA;AACA;;AAEA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B,OAAO;AACP;;AAEA;AACA;AACA,uDAAuD,SAAS;AAChE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uDAAuD,WAAW;AAClE;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,8CAA8C,UAAU;AACxD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB,aAAa;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,kBAAkB,kCAAkC,GAAG,gCAAgC,GAAG,8BAA8B;AACxH;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,wBAAwB;AACrC;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA,mBAAmB,WAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,UAAU;AACV;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA,sDAAsD;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA,sDAAsD;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,qEAAqE;;AAErE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,gCAAgC,mEAAmE;;AAEnG;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,mEAAmE;;AAEtG;AACA,uCAAuC,mEAAmE;AAC1G;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,6BAA6B,2EAA2E;;AAExG;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,6CAA6C,WAAW;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB,aAAa,SAAS;AACtB,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,uEAAuE,UAAU;AACjF;AACA;AACA;AACA;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wDAAwD,yDAAyD;AACjH,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,2CAA2C;AAC/C,6EAA6E,6DAA6D;AAC1I,iGAAiG,iEAAiE;AAClK;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,oDAAoD;AAC7F,IAAI,oDAAoD;AACxD,6BAA6B,iEAAiE;AAC9F;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,0BAA0B,6DAA6D;AACvF;AACA;AACA;AACA;AACA,qFAAqF;AACrF;AACA;AACA,IAAI,uDAAuD;AAC3D,wEAAwE,iEAAiE,GAAG,6DAA6D,KAAK;AAC9M;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,+CAA+C,0CAA0C;AACzF;AACA,6CAA6C,8CAA8C;AAC3F;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,+CAA+C,0CAA0C;AACzF;AACA,6CAA6C,8CAA8C;AAC3F;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4CAA4C,0CAA0C;AACtF;AACA,0CAA0C,8CAA8C;AACxF;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,4CAA4C,0CAA0C;AACtF;AACA,0CAA0C,8CAA8C;AACxF;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,wCAAwC;AACrD,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,uCAAuC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,uCAAuC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,4DAA4D;AACjG;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA,qCAAqC,4DAA4D;AACjG;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,4BAA4B,+BAA+B;AAC3D,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,0CAA0C;AACzF;AACA;AACA;AACA,6CAA6C,8CAA8C;AAC3F;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wCAAwC,8CAA8C;AACtF;AACA,0CAA0C,0CAA0C;AACpF;;AAEA;AACA,+BAA+B,8CAA8C;AAC7E,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA,+CAA+C,0CAA0C;AACzF;AACA;AACA;AACA,6CAA6C,8CAA8C;AAC3F;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,wCAAwC,8CAA8C;AACtF;AACA,0CAA0C,0CAA0C;AACpF;;AAEA;AACA,+BAA+B,8CAA8C;AAC7E,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,aAAa;AACb;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA4C,8CAA8C;AAC1F;AACA;AACA;AACA;AACA,4CAA4C,8CAA8C;AAC1F;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,0CAA0C,8CAA8C;AACxF;AACA;AACA;AACA;AACA,0CAA0C,8CAA8C;AACxF;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,2BAA2B;AACxC;AACA,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F,2CAA2C,kBAAkB,kCAAkC,qEAAqE,EAAE,EAAE,OAAO,kBAAkB,EAAE,YAAY;;AAE/M,kCAAkC,0BAA0B,0CAA0C,gBAAgB,OAAO,kBAAkB,EAAE,aAAa,EAAE,OAAO,wBAAwB,EAAE,EAAE;AACnM;AACA,kQAAkQ,oBAAoB;AACtR;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,qBAAqB;AACtC;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,QAAQ;AACzB;AACA,iBAAiB,QAAQ;AACzB;AACA,iBAAiB,QAAQ;AACzB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,QAAQ;AACzB;AACA,iBAAiB,QAAQ;AACzB;AACA,iBAAiB,QAAQ;AACzB;;AAEA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mEAAmE;AACnE;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,6CAA6C,wBAAwB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,0BAA0B;AAC9D,6CAA6C,mBAAmB;AAChE,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,0BAA0B;AAC5D,4CAA4C,eAAe;AAC3D,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD,qCAAqC;AACrC,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,uCAAuC,gBAAgB;AACvD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,yCAAyC,uBAAuB;AAChE;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC,uBAAuB;AAChE;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,YAAY;AAC9D,iDAAiD,kBAAkB;AACnE;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,8BAA8B;AAC3C,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,qCAAqC,kCAAkC;AACvE,KAAK;AACL,yBAAyB,kCAAkC;AAC3D;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA,cAAc,OAAO;AACrB,cAAc,cAAc;AAC5B,cAAc,2BAA2B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA,qCAAqC,mDAAmD;AACxF;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,4BAA4B,2EAA2E;AACvG,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA,uEAAuE;;AAEvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA,sDAAsD;AACtD;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,4BAA4B,6BAA6B;AACzD,gCAAgC,sBAAsB;AACtD,gCAAgC,sBAAsB;;AAEtD;AACA;AACA,+BAA+B,mDAAmD;AAClF,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,qDAAqD;;AAErD;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA,qDAAqD;;AAErD;AACA;AACA;AACA,iCAAiC,gCAAgC;AACjE;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA,iEAAiE;;AAEjE;AACA;AACA;AACA,8BAA8B,iDAAiD;AAC/E;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,sEAAsE;;AAEtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sCAAsC,oBAAoB;;AAE1D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,oCAAoC,4BAA4B;AAChE;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,QAAQ;AACrB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,4BAA4B;;AAE9C;AACA;AACA,KAAK;AACL;AACA;AACA,yCAAyC,sBAAsB;;AAE/D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,oCAAoC,oBAAoB;;AAExD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,qCAAqC,qBAAqB;;AAE1D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,uCAAuC,uBAAuB;;AAE9D;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,wCAAwC,wBAAwB;;AAEhE;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,gCAAgC,gBAAgB;;AAEhD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,gCAAgC,gBAAgB;;AAEhD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA,kBAAkB;;AAElB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA,eAAe;;AAEf;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA,wCAAwC,SAAS,mDAAmD,EAAE;;AAEtG;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,0BAA0B;AAC1B,WAAW;AACX;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA,yCAAyC,yBAAyB;;AAElE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA,yCAAyC,yBAAyB;;AAElE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA,yCAAyC,yBAAyB;;AAElE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA,kDAAkD,SAAS;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,uCAAuC;AACpD;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,wBAAwB;AAC7C;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,6CAA6C,WAAW;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,SAAS;AACtB,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,uEAAuE,UAAU;AACjF;AACA;AACA;AACA;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,oBAAoB;AACjC;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B,OAAO;AACP;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,2BAA2B;AACxC,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,2CAA2C,wBAAwB;;AAEnE,8CAA8C;AAC9C;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,kFAAkF;AAClF;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA,6DAA6D;AAC7D;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,8DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL,kFAAkF;;AAElF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,eAAe,cAAc;AAC7B,eAAe,wBAAwB;AACvC,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA,gBAAgB;AAChB;AACA;AACA;AACA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,wBAAwB;AAC/C;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,+CAA+C,WAAW;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,yEAAyE,UAAU;AACnF;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;;AAEJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA,gFAAgF,wBAAwB;AACxG;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA,8CAA8C,wBAAwB;AACtE;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA,+CAA+C,wBAAwB;AACvE;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,yBAAyB;AACzB,uBAAuB;AACvB;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAAgC,+BAA+B;AAC/D;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,wCAAwC,wBAAwB;;AAEhE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,sCAAsC;AACnD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,4BAA4B,6BAA6B;;AAEzD;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB,sBAAsB;AACtB,qBAAqB;AACrB,qBAAqB;AACrB,2BAA2B;AAC3B;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,4BAA4B,6BAA6B;;AAEzD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,8BAA8B;AAC3C;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,8BAA8B;;AAElE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,gBAAgB,4BAA4B,KAAK,wBAAwB;AACzE;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAmE;;AAEnE;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,iEAAiE;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA,8CAA8C;;AAE9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA,oDAAoD;;AAEpD;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,uCAAuC;AACvC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAoF,wBAAwB;AAC5G,2CAA2C,wCAAwC;AACnF;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA,6DAA6D;AAC7D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,sBAAsB;AACxC;AACA;;AAEA;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,qBAAqB,uBAAuB;;AAE5C;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;;AAEA,4CAA4C;AAC5C;AACA,SAAS;AACT;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+DAA+D,MAAM;;AAErE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA,iCAAiC;AACjC;AACA;;AAEA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;;AAEA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,6BAA6B,uCAAuC;AACpE,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,qBAAqB,wBAAwB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,4BAA4B;;AAE5B,uCAAuC,2BAA2B;AAClE,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,WAAW;AACX,SAAS;AACT;AACA;AACA;AACA,aAAa;AACb,WAAW;AACX;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,sBAAsB;AAC9C,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,mCAAmC;;AAE3D;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,6DAA6D,+BAA+B;AAC5F;AACA;AACA;AACA;AACA,mCAAmC;AACnC;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,OAAO,iCAAiC,2CAA2C;AAC1G;AACA,uBAAuB,OAAO;AAC9B;AACA,uBAAuB,yBAAyB;AAChD;AACA,uBAAuB,yBAAyB;AAChD;AACA,uBAAuB,OAAO;AAC9B;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA,yCAAyC,qBAAqB;;AAE9D;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA,4CAA4C,wBAAwB;;AAEpE;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,eAAe,yBAAyB;AACxC;AACA;AACA;;AAEA;AACA,0CAA0C,sBAAsB;;AAEhE;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA,yCAAyC,qBAAqB;;AAE9D;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,eAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA,wCAAwC,oBAAoB;;AAE5D;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;AACD;AACA;AACA,qDAAqD,mCAAmC,MAAM;AAC9F;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,kEAAkE;AAC7G;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,uBAAuB;AACpC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,YAAY;AACzB,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mBAAmB,gCAAgC;AACnD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA,mBAAmB,gCAAgC;AACnD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,6BAA6B;AAC1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,wBAAwB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,sBAAsB;AACnC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,sBAAsB;AACnC,aAAa,sBAAsB;AACnC;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,2CAA2C,mBAAmB;AAC9D,uEAAuE;AACvE;AACA;AACA,aAAa,uBAAuB;AACpC;AACA;AACA;AACA;;AAEA;AACA,iCAAiC;;AAEjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,MAAM,WAAW;AACjB;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,qEAAqE,cAAc;AACnF;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,QAAQ,uBAAuB,cAAc;AAC3D;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kDAAkD;AAC/D;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL,+BAA+B,yBAAyB;AACxD,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,yCAAyC;AACtD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,mBAAmB,UAAU;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,uBAAuB;AACpC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,UAAU;AAC7B;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA,aAAa,uBAAuB;AACpC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,iBAAiB,kCAAkC;AACnD;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,iCAAiC;AAC9C;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,uCAAuC;AACpD;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;;AAEA;AACA;;;;AAIA,eAAe;;AAEf;AACA;;AAEA;;AAEA;;AAEA,UAAU,EAAE;;AAEZ,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;;AAEA,aAAa,+DAA+D;;AAE5E;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA,4DAA4D;AAC5D,yDAAyD;;AAEzD;AACA,aAAa,+DAA+D;AAC5E;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA,aAAa,+DAA+D;;AAE5E;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,YAAY,yBAAyB;AACrC;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,YAAY,yBAAyB;AACrC;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,+DAA+D;AAC5E;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,eAAe;AACf;AACA;AACA,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,cAAc,OAAO,6CAA6C;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,cAAc;AACd;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,2BAA2B;AAC3E,gDAAgD,kBAAkB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA,cAAc,qBAAqB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA,eAAe,qBAAqB;AACpC;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc,sBAAsB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,iEAAiE,uBAAuB;AACxF,MAAM,0BAA0B;AAChC;AACA,aAAa,sCAAsC;AACnD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA,sBAAsB;;AAEtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB,sBAAsB;AACtB,qBAAqB;AACrB,qBAAqB;AACrB;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA,4BAA4B;;AAE5B;AACA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB;AACA,gBAAgB,sBAAsB;AACtC;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA,4BAA4B;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,SAAS;AACxB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;;AAEA;AACA,2BAA2B,SAAS;AACpC;AACA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,gBAAgB;AAChB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,gBAAgB;AAChB;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,IAAI,4BAA4B;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,SAAS;AACxB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,IAAI,4BAA4B;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F,8FAA8F;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,kEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,SAAS;AACxB,eAAe,OAAO,oEAAoE;AAC1F,eAAe,OAAO;AACtB,eAAe,qBAAqB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,0EAA0E;AAC1E;AACA,qBAAqB;AACrB;AACA,wEAAwE;AACxE;AACA,iBAAiB;AACjB;AACA;AACA;AACA,SAAS;AACT;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,SAAS;AACxB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc,qBAAqB;AACnC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,oBAAoB;AACpB;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc,qBAAqB;AACnC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,kBAAkB;AAC/B;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc,qBAAqB;AACnC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA,8BAA8B,wBAAwB;AACtD;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,oBAAoB;AACpB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc,qBAAqB;AACnC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc,qBAAqB;AACnC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA,mBAAmB,kBAAkB;AACrC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2HAA2H,8BAA8B;AACzJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,mDAAmD,WAAW;AAC9D,8DAA8D,kCAAkC;AAChG,8DAA8D,YAAY;AAC1E,8DAA8D,WAAW;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,sBAAsB;AACnC;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,YAAY;AACxB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,YAAY,YAAY;AACxB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;AACA,8CAA8C;;AAE9C;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;AACA,kDAAkD;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA,6EAA6E;;AAE7E;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA,oDAAoD;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC;AACA;;AAEA,CAAC,EAAE;AACH;AACA,iBAAiB,wBAAwB;AACzC;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,sCAAsC;;AAEtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,sBAAsB;AACnC,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA,2CAA2C,oCAAoC;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA,oCAAoC;AACpC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE;AACrE,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE;AACrE,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE;AACrE,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE;AACrE,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA+E;AAC/E,8EAA8E;AAC9E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA+E;AAC/E,8EAA8E;AAC9E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA+E;AAC/E,8EAA8E;AAC9E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA+E;AAC/E,8EAA8E;AAC9E;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB;AACA,eAAe;AACf;AACA;AACA;;AAEA,wDAAwD;;AAExD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC,2BAA2B,uDAAuD;AAClF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA,2BAA2B,iBAAiB;AAC5C,KAAK;AACL,sDAAsD;;AAEtD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA,sDAAsD;AACtD;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;;AAEA,mBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,iBAAiB;AAC9B,aAAa,OAAO;AACpB,aAAa,iBAAiB;AAC9B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA,oGAAoG,mBAAmB,EAAE,mBAAmB,8HAA8H,GAAG;AAC7Q;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8CAA8C,6CAA6C;AAC3F,8CAA8C,sBAAsB;AACpE,uDAAuD,sBAAsB;AAC7E,qDAAqD,sBAAsB;AAC3E,0CAA0C,+CAA+C;AACzF,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB,sBAAsB;AACtB,qBAAqB;AACrB,qBAAqB;AACrB;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,iBAAiB;AAC9B,aAAa,OAAO;AACpB,aAAa,iBAAiB;AAC9B,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,gBAAgB;AACrC,uBAAuB,iBAAiB;AACxC;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA,+EAA+E,sCAAsC;AACrH,OAAO;AACP;AACA;AACA,sBAAsB,kBAAkB;AACxC;AACA;AACA;AACA;AACA,oEAAoE,sBAAsB;AAC1F;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA,iFAAiF,sCAAsC;AACvH,SAAS;AACT;AACA;AACA,yBAAyB,mBAAmB;AAC5C;AACA;AACA;AACA;AACA,uEAAuE,sBAAsB;AAC7F;;AAEA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,iBAAiB;AACtC,SAAS;AACT;;AAEA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,iFAAiF,sCAAsC;AACvH,SAAS;AACT;AACA;AACA,yBAAyB,mBAAmB;AAC5C;AACA;AACA;AACA;AACA,wEAAwE,sBAAsB;AAC9F;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,eAAe;AACtC,uBAAuB,aAAa;AACpC;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2BAA2B,sBAAsB;AACjD;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,6BAA6B,wBAAwB;AACrD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,yBAAyB;AACvD;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,8BAA8B,yBAAyB;AACvD;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA,eAAe;AACf;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,eAAe,SAAS;AACxB;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA,yBAAyB,UAAU;AACnC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAe,SAAS;AACxB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB;AACvB,uBAAuB;AACvB,0BAA0B;AAC1B,2BAA2B;AAC3B,GAAG;;AAEH;AACA;AACA;AACA;AACA,uBAAuB;AACvB,uBAAuB;AACvB,0BAA0B;AAC1B,2BAA2B;;AAE3B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA,iHAAiH;AACjH,wCAAwC;AACxC;;AAEA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,kHAAkH;AAClH;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0FAA0F;AAC1F,iFAAiF;AACjF,SAAS;AACT;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW;AACX;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAyC;;AAEzC;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,mBAAmB;AACnB,sBAAsB;AACtB,qBAAqB;AACrB,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,mBAAmB;AACnB,sBAAsB;AACtB,qBAAqB;AACrB,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,sCAAsC;AACtC;AACA,eAAe,yBAAyB;AACxC;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,oBAAoB;AACnC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA,mBAAmB,kCAAkC;AACrD;AACA;AACA,oBAAoB,mCAAmC;AACvD;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,wCAAwC;;AAExC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,qDAAqD;AACrD;AACA,yDAAyD;;AAEzD;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAA0C,+CAA+C;AACzF,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,mDAAmD,WAAW;AAC9D,8DAA8D,kCAAkC;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,mDAAmD,WAAW;AAC9D,8DAA8D,kCAAkC;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,sCAAsC;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,OAAO;AACpB;AACA,eAAe;AACf;AACA;AACA;;AAEA,wDAAwD;;AAExD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA,2BAA2B,iBAAiB;AAC5C,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,mBAAmB,WAAW;AAC9B;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,oDAAoD,oBAAoB;AACxE;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,aAAa;AACpE;AACA;AACA;AACA,oDAAoD,oBAAoB;AACxE;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,kCAAkC;AAClC;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,kBAAkB;AACrE;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA,2CAA2C;;AAE3C;AACA;AACA,mCAAmC;AACnC;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,UAAU;AAC9D,kDAAkD,YAAY;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,mBAAmB;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,mCAAmC;AACnC;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,mBAAmB;AACpE;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,qCAAqC;AAC7D,yBAAyB,mCAAmC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,mCAAmC;AACnC;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,oDAAoD,iBAAiB;AACrE;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,kCAAkC;AAClC;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,+BAA+B;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,mCAAmC;AACnC;AACA,aAAa,OAAO;AACpB,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,+BAA+B;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA,cAAc,sBAAsB;AACpC;AACA;AACA;AACA;AACA,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;;AAElB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,uBAAuB;;AAEtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,uBAAuB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;AACA,aAAa,wBAAwB;AACrC;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA,cAAc,sBAAsB;AACpC;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,oCAAoC;AACpC;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;;AAEJ;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;;AAEJ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;;AAEJ;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,kCAAkC;AAClC,IAAI;AACJ;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,6CAA6C;AAC7C;AACA;AACA;AACA;;AAEA;AACA,SAAS;;AAET;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAiC,2BAA2B;AAC5D;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,mBAAmB;;AAEnB;AACA,cAAc;;AAEd;AACA,cAAc;;AAEd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA,0BAA0B;AAC1B;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mDAAmD,kEAAkE;AACrH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8CAA8C,+BAA+B;;AAE7E;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,oDAAoD,+CAA+C;AACnG,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,+CAA+C;AACrG;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,oEAAoE;AAC1H,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa;;AAEb;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+CAA+C,aAAa;AAC5D,qBAAqB;AACrB;;AAEA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb,oDAAoD;;AAEpD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;AACA,uCAAuC,aAAa;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,0DAA0D,eAAe,eAAe;AACxF;;AAEA;AACA,uBAAuB,yCAAyC;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA,4FAA4F,wBAAwB,OAAO,QAAQ,YAAY,0BAA0B,wBAAwB,gBAAgB,+DAA+D;;AAEhR;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,0BAA0B,UAAU;AACpC,mCAAmC;AACnC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,yDAAyD,yCAAyC;AAClG,SAAS;AACT;AACA;AACA,SAAS;AACT,sCAAsC,gBAAgB;AACtD,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB;AACvB,SAAS;AACT;AACA;;AAEA;AACA,iCAAiC,yBAAyB;AAC1D;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sEAAsE,cAAc;AACpF;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yBAAyB;AACzB;AACA;;AAEA;;AAEA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;;AAEA;AACA,iBAAiB;AACjB;AACA;AACA,kEAAkE,cAAc;AAChF;;AAEA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,4BAA4B,qCAAqC;AACjE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4BAA4B;AAC5B;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;;AAEA,WAAW;;AAEX;AACA,gBAAgB;AAChB,eAAe;AACf;AACA,KAAK;;AAEL,eAAe;;AAEf;AACA;AACA,KAAK;;AAEL;AACA,iBAAiB;AACjB,oBAAoB;AACpB,qBAAqB;AACrB,iBAAiB;AACjB,gBAAgB;AAChB,gBAAgB;AAChB,mBAAmB;AACnB,qBAAqB;AACrB,kBAAkB;AAClB,gBAAgB;AAChB,kBAAkB;AAClB,gBAAgB;AAChB,iBAAiB;AACjB;AACA,KAAK;;AAEL;AACA,kBAAkB;AAClB,sBAAsB;AACtB,gBAAgB;AAChB,gBAAgB;AAChB;AACA,KAAK;;AAEL,eAAe;;AAEf;AACA;AACA,KAAK;;AAEL;AACA,sBAAsB;AACtB,kBAAkB;AAClB,gBAAgB;AAChB;AACA,KAAK;;AAEL,UAAU;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6FAA6F;AAC7F,OAAO,2CAA2C;AAClD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,mDAAmD;;AAEnD,mDAAmD;;AAEnD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,2CAA2C,wBAAwB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA,wCAAwC;;AAExC;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb;;AAEA;;AAEA;AACA,0BAA0B;AAC1B;;AAEA;AACA;;AAEA;AACA;AACA,kCAAkC,mDAAmD;AACrF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe;AACf;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,sDAAsD,mDAAmD;AACzG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,yEAAyE;;AAEzE;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA,uEAAuE;;AAEvE;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,qFAAqF;;AAErF;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,uEAAuE;;AAEvE;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA,mFAAmF;;AAEnF;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA,mEAAmE;;AAEnE;AACA;AACA;AACA;AACA,aAAa,sCAAsC;AACnD,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,iFAAiF;;AAEjF;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,oIAAoI;AACpI,yGAAyG;AACzG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,OAAO;AAC1B,qBAAqB,OAAO;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;;AAEvB,2BAA2B;AAC3B;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,cAAc;AAC/D,+CAA+C,cAAc;AAC7D,mDAAmD,eAAe;AAClE;AACA,kDAAkD,iFAAiF;AACnI;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uCAAuC,wDAAwD;AAC/F;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,KAAK;AACL;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP,KAAK;AACL,qBAAqB;AACrB;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF;AAClF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,WAAW;AACX;;AAEA;AACA;;AAEA;AACA;AACA;AACA,2DAA2D,wCAAwC;AACnG;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E;AAC5E,6DAA6D,wCAAwC;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,4BAA4B;AACnF,uDAAuD,4BAA4B;AACnF,uDAAuD,4BAA4B;AACnF;AACA,sDAAsD,qDAAqD;AAC3G;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA,4CAA4C;;AAE5C;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;;AAEA;AACA,kCAAkC,iBAAiB;AACnD;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,OAAO;AAC1B,qBAAqB,OAAO;AAC5B;AACA;AACA,sBAAsB,2CAA2C;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,qEAAqE;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB;;AAEnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,+DAA+D;AACpH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,yBAAyB;AACtC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,gCAAgC,yDAAyD;AACzF,GAAG;;AAEH;AACA;AACA,gCAAgC,iCAAiC;AACjE;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,iEAAiE;AACtH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA,4BAA4B,QAAQ;AACpC;AACA;AACA;AACA,6BAA6B,SAAS;AACtC;AACA;AACA;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,+DAA+D;AACpH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B;AAC1B;;AAEA;;AAEA;AACA;AACA;AACA,kCAAkC,mDAAmD;AACrF;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oDAAoD,mDAAmD;AACvG;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA,2DAA2D,6CAA6C;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E;AAC5E,6DAA6D,6CAA6C;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,yDAAyD,6CAA6C;AACtG;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kDAAkD,mDAAmD;AACrG;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,oCAAoC,6DAA6D;AACjG;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,yCAAyC,eAAe;AACxD;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,uCAAuC,eAAe;AACtD;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL,iBAAiB,kBAAkB;AACnC;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,kBAAkB;AAChC;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,YAAY;AACZ,GAAG;;AAEH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA,wBAAwB,+BAA+B;AACvD,wBAAwB,mDAAmD;AAC3E,wBAAwB,2CAA2C;AACnE,wBAAwB,+BAA+B;AACvD,wBAAwB,mDAAmD;AAC3E,wBAAwB,4CAA4C;AACpE;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA,mBAAmB,oBAAoB;AACvC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,sBAAsB;AACtB;AACA,mEAAmE,+EAA+E;AAClJ,6EAA6E,qDAAqD;;AAElI;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,eAAe;AACvC;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,sBAAsB;;AAEtB;AACA,wEAAwE,+EAA+E;AACvJ,kFAAkF,qDAAqD;;AAEvI;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,aAAa;AACb;AACA,wBAAwB,eAAe;AACvC;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,mKAAmK,+EAA+E;;AAElP,2IAA2I,+EAA+E;;AAE1N,8IAA8I,+EAA+E;;AAE7N,sKAAsK,+EAA+E;;AAErP;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,uLAAuL,qDAAqD;;AAE5O,+JAA+J,qDAAqD;;AAEpN,kKAAkK,qDAAqD;;AAEvN,0LAA0L,qDAAqD;;AAE/O;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,yCAAyC,eAAe;AACxD;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,8KAA8K,+EAA+E;AAC7P,4JAA4J,+EAA+E;AAC3O,qKAAqK,+EAA+E;AACpP,uLAAuL,+EAA+E;;AAEtQ;AACA;AACA,mJAAmJ,qDAAqD;AACxM,yJAAyJ,qDAAqD;;AAE9M;AACA;AACA,oLAAoL,qDAAqD;;AAEzO,kKAAkK,qDAAqD;;AAEvN,2KAA2K,qDAAqD;;AAEhO,6LAA6L,qDAAqD;;AAElP;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,aAAa;AACb;;AAEA,qCAAqC,eAAe;AACpD;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,iBAAiB;AAC9B,aAAa,iBAAiB;AAC9B;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA;AACA,oBAAoB;AACpB,sBAAsB;AACtB;;AAEA,mBAAmB,6BAA6B;AAChD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC;AACrC;AACA,mEAAmE,+EAA+E;AAClJ,kGAAkG,qDAAqD;;AAEvJ;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA,wBAAwB,eAAe;AACvC;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC;;AAErC;AACA,wEAAwE,+EAA+E;AACvJ,kGAAkG,qDAAqD;;AAEvJ;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,aAAa;AACb;AACA,wBAAwB,eAAe;AACvC;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,2CAA2C;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,oCAAoC,2BAA2B;AAC/D;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,8BAA8B;AAC7C,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,8BAA8B,yBAAyB;AACvD;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA,8BAA8B,2BAA2B;AACzD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA,gCAAgC,2BAA2B;AAC3D;;AAEA;AACA;AACA;AACA,eAAe,yBAAyB;AACxC,aAAa,kBAAkB;AAC/B;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,6CAA6C,2BAA2B;AACxE;AACA,OAAO;AACP,KAAK;AACL;AACA,kCAAkC,2BAA2B;AAC7D;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oDAAoD,oBAAoB;AACxE;AACA;AACA,oDAAoD,oBAAoB;AACxE;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,WAAW;AAC3D,kDAAkD,YAAY;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,wEAAwE,gCAAgC;AACxG,8CAA8C,mDAAmD;AACjG;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,yEAAyE,gCAAgC;AACzG,yEAAyE,gCAAgC;AACzG,+CAA+C,mDAAmD;AAClG;AACA,+CAA+C,oDAAoD;AACnG;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,6CAA6C,+FAA+F;AAC5I;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,mDAAmD,sBAAsB;AACzE;AACA;AACA;AACA;AACA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C,uDAAuD,sBAAsB;AAC7E;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,qBAAqB;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,uEAAuE,6CAA6C;AACpH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0FAA0F;AAC1F,2EAA2E,6CAA6C;AACxH;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;;AAEA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA,qCAAqC,mDAAmD;;AAExF;AACA;AACA;AACA;AACA;;AAEA;AACA,+DAA+D,6CAA6C;;AAE5G;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,WAAW;AAC3D,kDAAkD,YAAY;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oDAAoD,oBAAoB;AACxE;AACA;AACA,oDAAoD,oBAAoB;AACxE;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA,uBAAuB;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,+EAA+E,aAAa;AAC5F;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,OAAO;AACtB,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gCAAgC,sBAAsB,IAAI;AAC1D,KAAK;;AAEL;AACA;AACA,yBAAyB,uBAAuB;AAChD;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,WAAW;AAC3D,kDAAkD,YAAY;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA,8DAA8D,mDAAmD;AACjH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4DAA4D,iEAAiE;AAC7H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,wBAAwB;AAC5E;AACA;AACA;AACA,sDAAsD,yDAAyD;AAC/G;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,gDAAgD,kDAAkD;AAClG;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,yDAAyD;AAC/G;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA,sFAAsF;AACtF,sFAAsF;AACtF,sFAAsF;AACtF,sFAAsF;;AAEtF;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA,uBAAuB,iBAAiB;;AAExC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,uBAAuB,oBAAoB;AAC3C;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,eAAe,qBAAqB;AACpC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,sCAAsC;AACnD,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,wBAAwB;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D,gEAAgE;AAC9H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kDAAkD;AAClD,kDAAkD;AAClD,kDAAkD;AAClD,kDAAkD;AAClD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oDAAoD;AACpD,oDAAoD;AACpD,oDAAoD;AACpD,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA,gDAAgD,kDAAkD;AAClG;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,YAAY;AAChE;AACA;AACA;AACA,sDAAsD,yDAAyD;AAC/G;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,qBAAqB;AAClC;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,YAAY;AACZ;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;;AAEA;AACA;AACA;AACA,sFAAsF;AACtF,sFAAsF;AACtF,sFAAsF;AACtF,sFAAsF;AACtF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wFAAwF;AACxF,wFAAwF;AACxF,wFAAwF;AACxF,wFAAwF;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,yDAAyD;AAC/G;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,gDAAgD,6DAA6D;AAC7G;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,yDAAyD;AAC/G;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA,UAAU,6CAA6C;AACvD,qBAAqB,2BAA2B;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE;;AAEpE;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA,UAAU,6CAA6C;AACvD,qBAAqB,2BAA2B;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,gDAAgD,2DAA2D;AAC3G;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,yDAAyD;AAC/G;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,cAAc;AAC7B;AACA;AACA;AACA;AACA,mBAAmB;AACnB;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,kBAAkB;AAC/B,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA,mBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,cAAc;AAC7B,eAAe,wBAAwB;AACvC,eAAe,OAAO;AACtB,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,wBAAwB;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA,oDAAoD,yBAAyB,EAAE;AAC/E,oDAAoD,yBAAyB,EAAE;;AAE/E;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D,iCAAiC;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,eAAe;AACpC;AACA,OAAO;;AAEP;AACA;AACA;AACA,iBAAiB,OAAO;AACxB,iBAAiB,OAAO;AACxB,iBAAiB,QAAQ;AACzB,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA,iBAAiB,OAAO;AACxB,iBAAiB,OAAO;AACxB,iBAAiB,OAAO;AACxB,iBAAiB,OAAO;AACxB;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gDAAgD;AAChD,4CAA4C;AAC5C,gDAAgD;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAkF;AAClF,kFAAkF;AAClF;AACA;AACA;AACA;AACA,kFAAkF;AAClF,kFAAkF;AAClF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAoF;AACpF,oFAAoF;AACpF;AACA;AACA;AACA;AACA,oFAAoF;AACpF,oFAAoF;AACpF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kDAAkD;AAClD,+CAA+C;AAC/C,mDAAmD;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8FAA8F;AAC9F,6FAA6F;AAC7F;AACA;AACA;AACA,8FAA8F;AAC9F,6FAA6F;AAC7F;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gGAAgG;AAChG,+FAA+F;AAC/F;AACA;AACA;AACA;AACA,gGAAgG;AAChG,+FAA+F;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wGAAwG;AACxG,4GAA4G;AAC5G,iFAAiF;AACjF;AACA;AACA,wGAAwG;AACxG,qFAAqF;AACrF,iFAAiF;AACjF;AACA;AACA,wGAAwG;AACxG,4GAA4G;AAC5G,iFAAiF;AACjF;AACA;AACA,wGAAwG;AACxG,4GAA4G;AAC5G,iFAAiF;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAmF;AACnF,4GAA4G;AAC5G,wGAAwG;AACxG;AACA;AACA,mFAAmF;AACnF,4GAA4G;AAC5G,wGAAwG;AACxG;AACA;AACA,mBAAmB;AACnB,+EAA+E;AAC/E,kEAAkE;AAClE,+EAA+E;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0GAA0G;AAC1G,8GAA8G;AAC9G,mFAAmF;AACnF;AACA;AACA,0GAA0G;AAC1G,8GAA8G;AAC9G,mFAAmF;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yGAAyG;AACzG,8GAA8G;AAC9G,0GAA0G;AAC1G;AACA;AACA,qFAAqF;AACrF,8GAA8G;AAC9G,0GAA0G;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA,mFAAmF;AACnF,sEAAsE;AACtE,mFAAmF;AACnF;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA,2JAA2J;AAC3J;AACA,iBAAiB,OAAO;AACxB,iBAAiB,OAAO;AACxB,iBAAiB,QAAQ;AACzB,iBAAiB,QAAQ;AACzB;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,kBAAkB;AAC/B,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA,UAAU,0BAA0B;AACpC;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,WAAW,8DAA8D;;AAE1F;AACA;AACA;;AAEA;AACA,sBAAsB;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,kBAAkB;AAC/B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAU,WAAW;AACrB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA,qBAAqB,2BAA2B;AAChD;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,aAAa,oBAAoB;AACjC,WAAW,gBAAgB;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,mCAAmC;AACjE;AACA,SAAS;AACT;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,mEAAmE;AAC7F;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B;AACA,4EAA4E;;AAE5E;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,gCAAgC;;AAExD;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,4BAA4B;AACzD;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,WAAW;AACnE;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA,wBAAwB,wBAAwB;;AAEhD;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE,WAAW;AAC5E;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA,wBAAwB,uCAAuC;;AAE/D;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA,mEAAmE,WAAW;AAC9E;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;;AAEhD,6DAA6D;AAC7D,8DAA8D;AAC9D,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E,WAAW;AACrF;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;;AAEhD;AACA;;AAEA,iDAAiD;AACjD,kDAAkD;AAClD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE,WAAW;AACnF;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA,+HAA+H,eAAe,kBAAkB,4vDAA4vD,eAAe,kBAAkB,q3BAAq3B,eAAe,kBAAkB;AACn1F,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,0BAA0B;AACpD;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA2E,2BAA2B;AACtG;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA,2HAA2H,eAAe,kBAAkB,2vBAA2vB,eAAe,kBAAkB,48BAA48B,eAAe,kBAAkB;AACr6D,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,0BAA0B;AACpD;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE,4BAA4B;AACnG;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,oDAAoD;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA,uCAAuC,yDAAyD;AAChG,6BAA6B;AAC7B,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,qLAAqL,oBAAoB;;AAEzM;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,wDAAwD;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,WAAW;;AAElD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,qCAAqC,WAAW;;AAEhD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA,4BAA4B,uCAAuC;;AAEnE;;AAEA;;AAEA;AACA,qCAAqC;AACrC,yCAAyC;AACzC,yCAAyC;AACzC,qCAAqC;;AAErC;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,UAAU;AAC/D,qDAAqD,+DAA+D;AACpH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;;AAEA,iBAAiB,yCAAyC;AAC1D,GAAG;;AAEH;AACA;;AAEA,gBAAgB,sBAAsB;;AAEtC;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,YAAY;AACZ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,uJAAuJ;AACvJ;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,+BAA+B,mDAAmD;;AAElF;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,iBAAiB;AACxC;AACA,mCAAmC,mBAAmB;;AAEtD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4BAA4B,kFAAkF;;AAE9G;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB;;AAEpB;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,uCAAuC,oDAAoD;AAC3F,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO,4BAA4B,4BAA4B;AAChF;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,yBAAyB;AAC1C;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,yBAAyB;AAC1C;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,QAAQ;AACzB;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA,uCAAuC,uBAAuB;AAC9D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA,mCAAmC,mBAAmB;AACtD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA;AACA,2CAA2C,2BAA2B;;AAEtE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,4CAA4C,4BAA4B;;AAExE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA,wCAAwC,wBAAwB;;AAEhE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,sBAAsB;AACtB,WAAW;AACX;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,sBAAsB;AACtB,KAAK;AACL;AACA;AACA;AACA,sCAAsC,sBAAsB;;AAE5D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yCAAyC,yBAAyB;;AAElE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,6BAA6B;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,mCAAmC,mBAAmB;;AAEtD;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;;AAEA,mBAAmB,eAAe;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,0CAA0C;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F,kCAAkC,0BAA0B,0CAA0C,gBAAgB,OAAO,kBAAkB,EAAE,aAAa,EAAE,OAAO,wBAAwB,EAAE,EAAE;AACnM;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qPAAqP,wCAAwC;AAC7R;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6MAA6M;AAC7M;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK,iCAAiC;AACtC,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,2BAA2B;AAC5C;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,yBAAyB;AAC1C;AACA,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO,iCAAiC,2CAA2C;AACpG;AACA,iBAAiB,QAAQ;AACzB;AACA,KAAK,mCAAmC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA;AACA,2CAA2C,2BAA2B;;AAEtE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,4CAA4C,4BAA4B;;AAExE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;;AAEA;AACA,6BAA6B;AAC7B;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,4BAA4B,6BAA6B;;AAEzD;AACA;AACA,+BAA+B,mDAAmD;AAClF,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA,wCAAwC,wBAAwB;;AAEhE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B;;AAE/B;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA,gCAAgC,sCAAsC;AACtE;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,qCAAqC,qBAAqB;;AAE1D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,yBAAyB;AACtC;AACA;AACA;AACA;AACA,oCAAoC,wBAAwB;;AAE5D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,kBAAkB;AAChC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,oCAAoC,oBAAoB;;AAExD;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,kBAAkB;AAClB,WAAW;AACX,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,kCAAkC,kBAAkB;;AAEpD;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,sBAAsB;AACpC;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA,2CAA2C,gBAAgB;AAC3D;AACA,eAAe;AACf;AACA;AACA;AACA,gBAAgB,6DAA6D;;AAE7E;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,2BAA2B;AACxC,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,aAAa;AACb;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAiB;AAC5C,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B,WAAW,iBAAiB;AAC5B,WAAW,iBAAiB;AAC5B,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA,iBAAiB,2DAA2D;AAC5E,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,6DAA6D;AAC7D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA,gBAAgB,mBAAmB;AACnC;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,wBAAwB;;AAE7C;AACA;AACA,iCAAiC,mDAAmD;;AAEpF;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mDAAmD,wBAAwB;AAC3E;;AAEA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C,qDAAqD,wBAAwB;AAC7E;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,uJAAuJ;AACvJ;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,mBAAmB;;AAExC;AACA;AACA;;AAEA;AACA;AACA;AACA,mDAAmD,wBAAwB;AAC3E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,+BAA+B,mDAAmD;AAClF,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA,iBAAiB,0BAA0B;AAC3C,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,kCAAkC;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,qCAAqC,SAAS,aAAa,EAAE;;AAE7D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK,iCAAiC;AACtC,iBAAiB,0CAA0C;AAC3D;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK,mCAAmC;AACxC;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,qBAAqB;;AAE1D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,wBAAwB,oCAAoC;;AAE5D;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,oCAAoC,oBAAoB;;AAExD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA,yDAAyD,oCAAoC;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,kCAAkC,kBAAkB;;AAEpD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,0CAA0C;AACvD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA,qCAAqC,qBAAqB;;AAE1D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,mBAAmB,iCAAiC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iCAAiC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAsB,mBAAmB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,iCAAiC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA,mBAAmB,iCAAiC;AACpD;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,UAAU,EAAE,UAAU,EAAE,YAAY;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F,kCAAkC,0BAA0B,0CAA0C,gBAAgB,OAAO,kBAAkB,EAAE,aAAa,EAAE,OAAO,wBAAwB,EAAE,EAAE;AACnM;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qPAAqP,sBAAsB;AAC3Q,qPAAqP,qBAAqB;AAC1Q;AACA;AACA;AACA;AACA,oNAAoN,2BAA2B;AAC/O;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA,qCAAqC,gBAAgB;;AAErD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,aAAa;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,aAAa;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,4BAA4B,+BAA+B;AAC3D,gCAAgC,gBAAgB;AAChD,gCAAgC,gBAAgB;;AAEhD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,wCAAwC,SAAS,yCAAyC,EAAE;;AAE5F;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,0BAA0B;AACvC,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA,eAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,uCAAuC,uBAAuB;;AAE9D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,oCAAoC,4BAA4B;;AAEhE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,6BAA6B,iBAAiB;AAC9C,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA,uCAAuC,uCAAuC,iCAAiC;AAC/G,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK,mCAAmC;AACxC;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,yCAAyC;AACzC;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,wCAAwC,wBAAwB;;AAEhE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA,wBAAwB,2CAA2C;;AAEnE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA,wBAAwB,gDAAgD;;AAExE;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,wCAAwC,SAAS,2DAA2D,EAAE;;AAE9G;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,4EAA4E,6BAA6B,oBAAoB;AAC7H;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;;AAEA;AACA;AACA,mEAAmE,6BAA6B,YAAY;;AAE5G;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,kBAAkB;AACvC;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,0DAA0D;AAC/G;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iBAAiB,eAAe;AAChC;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,wBAAwB;AAC/C;;AAEA;AACA;;AAEA;AACA;AACA,iCAAiC,mDAAmD;;AAEpF;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,uJAAuJ;AACvJ;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA,qBAAqB,mBAAmB;;AAExC;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA,+BAA+B,mDAAmD;AAClF,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E;AAC5E,sEAAsE;;AAEtE;;AAEA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,gCAAgC;AACxD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,gDAAgD;;AAExE;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,wBAAwB,uCAAuC;;AAE/D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA;;AAEA,wBAAwB,uCAAuC;AAC/D,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,4BAA4B,2EAA2E;AACvG,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,sBAAsB;AAC/E,0DAA0D,oBAAoB;AAC9E;AACA;AACA;AACA;AACA,uBAAuB,kDAAkD;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,yDAAyD,SAAS;AAClE;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,iEAAiE;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA,sEAAsE;;AAEtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA,uCAAuC,yFAAyF,iCAAiC;AACjK,iBAAiB,MAAM;AACvB;AACA,KAAK,mCAAmC;AACxC;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mCAAmC,cAAc;AACjD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA,uCAAuC,YAAY;AACnD,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,oBAAoB;;AAE3D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,qCAAqC,wBAAwB;;AAE7D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,SAAS,aAAa,EAAE;;AAE7D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,mCAAmC,cAAc;;AAEjD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,mBAAmB,YAAY;AAC/B;AACA;AACA;AACA;AACA,gBAAgB,yCAAyC;AACzD;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA,mBAAmB,WAAW;AAC9B;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F,kCAAkC,0BAA0B,0CAA0C,gBAAgB,OAAO,kBAAkB,EAAE,aAAa,EAAE,OAAO,wBAAwB,EAAE,EAAE;AACnM;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uNAAuN,MAAM;AAC7N;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4MAA4M;AAC5M;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA,uCAAuC,yBAAyB;AAChE,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mCAAmC,cAAc;;AAEjD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;;AAEP,0BAA0B,iDAAiD;AAC3E;AACA;;AAEA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA,4BAA4B,uCAAuC;;AAEnE;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,6BAA6B;AAC7B,6CAA6C;AAC7C,qEAAqE;AACrE,8CAA8C;;AAE9C;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D,UAAU;AACpE,0DAA0D,+DAA+D;AACzH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,0BAA0B;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0BAA0B;AAC1B;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,uCAAuC,wBAAwB;AAC/D,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B,4CAA4C;AACtE;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;AAChD,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA,0DAA0D,+CAA+C;AACzG;AACA,qCAAqC,aAAa;AAClD;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,8BAA8B;AAC9B,kCAAkC;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uCAAuC,YAAY,iCAAiC,mCAAmC;;AAEvH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,oBAAoB;AACvC;AACA;;AAEA,oBAAoB,kBAAkB;AACtC;AACA;;AAEA;AACA,GAAG;;AAEH;;AAEA,sDAAsD;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,uBAAuB;AAC1C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,oCAAoC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,oCAAoC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,yBAAyB;AAC9C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,mBAAmB,SAAS;AAC5B;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,sBAAsB,QAAQ;AAC9B;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,sBAAsB,QAAQ;AAC9B;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,mBAAmB,oCAAoC;AACvD;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,sCAAsC;AAC3D;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA,qBAAqB,uCAAuC;AAC5D;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,mBAAmB,mCAAmC;AACtD;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,mBAAmB,oCAAoC;AACvD;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAmD,eAAe;AAClE,mDAAmD,eAAe;AAClE,mDAAmD,eAAe;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,eAAe;AACnE,oDAAoD,eAAe;AACnE,oDAAoD,eAAe;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,8BAA8B;AAC9B,kCAAkC;AAClC;AACA;AACA;AACA,+CAA+C;AAC/C,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uCAAuC,8BAA8B;AACrE,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,oBAAoB;;AAEpB,uCAAuC,sCAAsC;AAC7E,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,sBAAsB;AACtB,WAAW;AACX;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA,sBAAsB;AACtB,KAAK;AACL;AACA;AACA,sCAAsC,sBAAsB;;AAE5D;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,2BAA2B;AACxC,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA,uCAAuC,0CAA0C,iCAAiC,mCAAmC;;AAErJ;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,8BAA8B;AAC9B,kCAAkC;AAClC;AACA;AACA;AACA;;AAEA,oBAAoB;;AAEpB;AACA;AACA;AACA,8BAA8B;;AAE9B,wBAAwB,+BAA+B;AACvD,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB;AACxB,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,sBAAsB;AACtB,WAAW;AACX;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA,sBAAsB;AACtB,KAAK;AACL;AACA;AACA;AACA;AACA,sCAAsC,sBAAsB;;AAE5D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA,qDAAqD;;AAErD;AACA;;AAEA;;AAEA;AACA;AACA,2DAA2D,eAAe;AAC1E;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB,oBAAoB;AACzC;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA,kBAAkB;AAClB;;AAEA;AACA;AACA,kBAAkB;AAClB;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,gBAAgB;AACrC;AACA,0BAA0B,sBAAsB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2BAA2B,uBAAuB;AAClD;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA,sBAAsB,iBAAiB;AACvC,4BAA4B,wBAAwB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,iEAAiE;AAC5H,2DAA2D,6CAA6C;AACxG,2DAA2D,8CAA8C;AACzG,2DAA2D,8DAA8D;AACzH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP,8BAA8B;AAC9B,kCAAkC;AAClC;AACA;AACA,8CAA8C;AAC9C;;AAEA,uBAAuB,WAAW;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,wBAAwB,wBAAwB;AAChD,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,eAAe;AACtE,uDAAuD,eAAe;AACtE,uDAAuD,eAAe;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,eAAe;AACvE,wDAAwD,eAAe;AACvE,wDAAwD,eAAe;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,iBAAiB;AACzE;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,iBAAiB;AACrE;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,wBAAwB,wBAAwB;;AAEhD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D,4CAA4C;AAC1G;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,WAAW;AAC1D,6CAA6C,YAAY;AACzD;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA,wBAAwB,qEAAqE;AAC7F;AACA;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA,cAAc,cAAc;AAC5B;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6DAA6D,iEAAiE;AAC9H;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA,4DAA4D,kBAAkB,MAAM,kBAAkB;AACtG,iBAAiB,wBAAwB,iBAAiB,kBAAkB;AAC5E;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uCAAuC,wBAAwB;AAC/D,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,2CAA2C,2BAA2B;;AAEtE;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA,KAAK;;AAEL;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA,2CAA2C,sBAAsB;;AAEjE;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc,YAAY;AAC1B;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,+BAA+B;AAClD;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,cAAc,kBAAkB;AAChC;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,gCAAgC;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,cAAc;AAC3B,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,gCAAgC;AACnD;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB,aAAa,8BAA8B;AAC3C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB,2BAA2B;AAChD;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,8BAA8B;AAC3C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,mBAAmB,qBAAqB;AACxC;AACA;AACA,+DAA+D,YAAY;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,YAAY;AACzB;AACA;AACA,iEAAiE;;AAEjE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,2BAA2B;AACxC,cAAc,uBAAuB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,iBAAiB;AACvE;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D,0CAA0C;AACtG;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA,wBAAwB,yEAAyE;;AAEjG;AACA;AACA,oEAAoE,YAAY;;AAEhF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,2CAA2C,+BAA+B;;AAE1E;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uEAAuE,YAAY;;AAEnF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA,0DAA0D,YAAY;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;;AAEA,wBAAwB,yEAAyE;;AAEjG;AACA;AACA,oEAAoE,YAAY;;AAEhF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL,2CAA2C,+BAA+B;;AAE1E;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA,0DAA0D,YAAY;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;;AAEA;AACA,wBAAwB,0BAA0B;;AAElD;;AAEA,2DAA2D,gBAAgB;AAC3E;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA,oCAAoC,cAAc;;AAElD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,0DAA0D,gBAAgB;AAC1E;AACA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,gBAAgB;AACvE;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA,oCAAoC,cAAc;;AAElD;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,qBAAqB;AACzE;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA,0BAA0B;AAC1B;AACA,oBAAoB;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,iBAAiB,OAAO;AACxB;AACA,iBAAiB,OAAO;AACxB;AACA,KAAK;AACL;AACA;AACA,KAAK;;AAEL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,sBAAsB;AACtB,WAAW;AACX;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB,KAAK;AACL;AACA;AACA;AACA,sCAAsC,sBAAsB;;AAE5D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA,iDAAiD;;AAEjD;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,uBAAuB;AACtC,aAAa,WAAW;AACxB;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,uBAAuB;AACpC,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,oCAAoC,2BAA2B;;AAE/D;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C,4CAA4C;AAC5C,0CAA0C;AAC1C;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA;AACA,yEAAyE,gBAAgB;AACzF;;AAEA;AACA,SAAS;AACT;AACA;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAsD,0BAA0B;AAChF;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,0BAA0B;AAC5E;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;AAC5C,4CAA4C;AAC5C;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,yBAAyB;AACxC;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,uBAAuB,qJAAqJ;AAC5K;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0EAA0E,cAAc;AACxF;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,aAAa,SAAS;AACtB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,aAAa,SAAS,iGAAiG;AACvH,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,sBAAsB;AACnC,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,cAAc,OAAO;AACrB;AACA;AACA;;AAEA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,sBAAsB;AACnC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA,cAAc,OAAO;AACrB;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA,cAAc;AACd;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,aAAa,gBAAgB;AAC7B;AACA,cAAc,sBAAsB;AACpC;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,eAAe,sBAAsB;AACrC;AACA;AACA;;AAEA;AACA,qBAAqB,sBAAsB;AAC3C;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA,wCAAwC,QAAQ;AAChD;AACA;AACA,KAAK;AACL,sBAAsB,uBAAuB;AAC7C;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA,CAAC;;AAED;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA,qDAAqD;AACrD,cAAc;AACd;AACA;;AAEA;AACA;AACA,cAAc;AACd;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;;AAEA;;AAEA;;AAEA,uBAAuB,kBAAkB;AACzC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA,6CAA6C;AAC7C;AACA,eAAe,OAAO;AACtB,gBAAgB,gBAAgB;AAChC;AACA;AACA;AACA;AACA;AACA,uBAAuB,gBAAgB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B,wDAAwD;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA,oGAAoG,mBAAmB,EAAE,mBAAmB,8HAA8H,GAAG;AAC7Q;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0TAA0T;AAC1T;AACA;AACA;AACA;AACA;AACA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA,eAAe,sCAAsC;AACrD,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB;AACA;;AAEA;;AAEA;AACA;AACA,SAAS;AACT;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,wFAAwF;AACxF,sCAAsC;AACtC;AACA;AACA,oCAAoC;AACpC;AACA;;AAEA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,6BAA6B;AAC7B,iCAAiC;AACjC,+BAA+B;;AAE/B;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,gBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,6BAA6B;AAC7B,iCAAiC;AACjC,+BAA+B;;AAE/B;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,kBAAkB;AACjC,eAAe,OAAO;AACtB,iBAAiB;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAC;;AAED;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;;;AAGA;AACA,WAAW;AACX;AACA;;;AAGA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;AAChD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,cAAc,OAAO;AACrB,cAAc,OAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;;AAEA,iBAAiB,kBAAkB;AACnC;AACA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ,YAAY;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,4BAA4B;;AAE5B,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,cAAc;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,aAAa,IAAI;AAC3D,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,8CAA8C,mBAAmB,IAAI;AACrE,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,kDAAkD,aAAa,IAAI;AACnE;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;;AAEA;AACA;AACA,aAAa;AACb;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB,eAAe,OAAO;AACtB;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;;AAEA;;AAEA,uBAAuB,WAAW;AAClC,2BAA2B,YAAY;AACvC;AACA;AACA;;AAEA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,uBAAuB,QAAQ;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA,uDAAuD,kDAAkD,4CAA4C;AACrJ;AACA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,uDAAuD,uDAAuD,uDAAuD;AACrK;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,cAAc,MAAM;AACpB,cAAc,OAAO;AACrB;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,uBAAuB,WAAW;AAClC,2BAA2B,YAAY;AACvC;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA,wBAAwB,QAAQ;AAChC;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA,8DAA8D,wDAAwD;;AAEtH;AACA;;AAEA,CAAC,EAAE;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;;AAEA;;AAEA,sCAAsC,uCAAuC,gBAAgB;;AAE7F;;AAEA;;AAEA;AACA;AACA;AACA,4BAA4B;;AAE5B;AACA;AACA;AACA;AACA;AACA,eAAe,MAAM;AACrB,eAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA,CAAC;AACD;AACA;AACA;AACA;AACA;;AAEA,OAAO;;AAEP,UAAU;AACV,CAAC;AACD,kC","file":"libqmock-cf91cc219150643297c1.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./index.js\");\n","import draw2d from '@sarhanalaa/draw2d'\r\nimport elements from '../lib/elements'\r\n\r\nexport default function createApp( canvasContainerId, width, height ) {\r\n const canvas = new draw2d.Canvas( canvasContainerId, width, height )\r\n canvas.setScrollArea('#'+canvasContainerId)\r\n return {\r\n canvas,\r\n elements,\r\n draw2d\r\n }\r\n}\r\n","import draw2d from '@sarhanalaa/draw2d'\r\n\r\nconst titleLabelEditor = new draw2d.ui.LabelInplaceEditor()\r\n\r\nconst createWindow = ({\r\n height = 480,\r\n title = 'Window',\r\n titleBarColor = '#333',\r\n titleBarBgColor = '#999',\r\n width = 640,\r\n}) => {\r\n const window = new draw2d.shape.composite.Raft({\r\n stroke: 1,\r\n width,\r\n height\r\n })\r\n\r\n const titleBar = new draw2d.shape.basic.Rectangle({\r\n bgColor: titleBarBgColor,\r\n stroke: 0,\r\n height: 24,\r\n width\r\n })\r\n\r\n const titleBarLabel = new draw2d.shape.basic.Label({\r\n text: title,\r\n fontColor: titleBarColor,\r\n stroke: 0\r\n })\r\n\r\n window.add(titleBar, new draw2d.layout.locator.XYRelPortLocator(0, 0))\r\n window.add(titleBarLabel, new draw2d.layout.locator.XYRelPortLocator(0, 0))\r\n\r\n window.on('change:dimension', (_, { value: { width } }) => {\r\n titleBar.setDimension(width, titleBar.getHeight());\r\n })\r\n\r\n titleBar.on('dblclick', () => { titleLabelEditor.start(titleBarLabel) })\r\n\r\n return window\r\n}\r\n\r\nexport default createWindow\r\n","import draw2d from '@sarhanalaa/draw2d'\r\nimport createWindow from './Window'\r\n\r\nexport default {\r\n createWindow\r\n}\r\n","import createApp from './App'\n\nexport { createApp }\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"draw2d\"] = factory();\n\telse\n\t\troot[\"draw2d\"] = factory();\n})(window, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = \"./src/index.js\");\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ \"./node_modules/canvg-browser/index.js\":\n/*!*********************************************!*\\\n !*** ./node_modules/canvg-browser/index.js ***!\n \\*********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\n\r\n var RGBColor = __webpack_require__(/*! rgbcolor */ \"./node_modules/rgbcolor/index.js\");\r\n var stackblur = __webpack_require__(/*! stackblur */ \"./node_modules/stackblur/index.js\");\r\n var xmldom = __webpack_require__(/*! xmldom */ \"./node_modules/xmldom/dom-parser.js\");\r\n\r\n/*\r\n * canvg.js - Javascript SVG parser and renderer on Canvas\r\n * MIT Licensed\r\n * Gabe Lerner (gabelerner@gmail.com)\r\n * http://code.google.com/p/canvg/\r\n *\r\n * Requires: rgbcolor.js - http://www.phpied.com/rgb-color-parser-in-javascript/\r\n */\r\n\r\n/*\r\ncanvg(target, s)\r\n empty parameters: replace all 'svg' elements on page with 'canvas' elements\r\n target: canvas element or the id of a canvas element\r\n s: svg string, url to svg file, or xml document\r\n opts: optional hash of options\r\n ignoreMouse: true => ignore mouse events\r\n ignoreAnimation: true => ignore animations\r\n ignoreDimensions: true => does not try to resize canvas\r\n ignoreClear: true => does not clear canvas\r\n offsetX: int => draws at a x offset\r\n offsetY: int => draws at a y offset\r\n scaleWidth: int => scales horizontally to width\r\n scaleHeight: int => scales vertically to height\r\n renderCallback: function => will call the function after the first render is completed\r\n forceRedraw: function => will call the function on every frame, if it returns true, will redraw\r\n*/\r\nfunction canvg(target, s, opts) {\r\n\r\n\t// no parameters\r\n\tif (target == null && s == null && opts == null) {\r\n\t\tvar svgTags = document.querySelectorAll('svg');\r\n\t\tfor (var i=0; i<svgTags.length; i++) {\r\n\t\t\tvar svgTag = svgTags[i];\r\n\t\t\tvar c = document.createElement('canvas');\r\n\t\t\tc.width = svgTag.clientWidth;\r\n\t\t\tc.height = svgTag.clientHeight;\r\n\t\t\tsvgTag.parentNode.insertBefore(c, svgTag);\r\n\t\t\tsvgTag.parentNode.removeChild(svgTag);\r\n\t\t\tvar div = document.createElement('div');\r\n\t\t\tdiv.appendChild(svgTag);\r\n\t\t\tcanvg(c, div.innerHTML);\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n\r\n\tif (typeof target == 'string') {\r\n\t\ttarget = document.getElementById(target);\r\n\t}\r\n\r\n\t// store class on canvas\r\n\tif (target.svg != null) target.svg.stop();\r\n\tvar svg = build(opts || {});\r\n\t// on i.e. 8 for flash canvas, we can't assign the property so check for it\r\n\tif (!(target.childNodes.length == 1 && target.childNodes[0].nodeName == 'OBJECT')) target.svg = svg;\r\n\r\n\tvar ctx = target.getContext('2d');\r\n\tif (typeof s.documentElement != 'undefined') {\r\n\t\t// load from xml doc\r\n\t\tsvg.loadXmlDoc(ctx, s);\r\n\t}\r\n\telse if (s.substr(0,1) == '<') {\r\n\t\t// load from xml string\r\n\t\tsvg.loadXml(ctx, s);\r\n\t}\r\n\telse {\r\n\t\t// load from url\r\n\t\tsvg.load(ctx, s);\r\n\t}\r\n}\r\n\r\nfunction getMatchesSelector() {\r\n // see https://developer.mozilla.org/en-US/docs/Web/API/Element.matches\r\n var matchesSelector;\r\n if (typeof Element.prototype.matches != 'undefined') {\r\n \tmatchesSelector = function(node, selector) {\r\n \t\treturn node.matches(selector);\r\n \t};\r\n } else if (typeof Element.prototype.webkitMatchesSelector != 'undefined') {\r\n \tmatchesSelector = function(node, selector) {\r\n \t\treturn node.webkitMatchesSelector(selector);\r\n \t};\r\n } else if (typeof Element.prototype.mozMatchesSelector != 'undefined') {\r\n \tmatchesSelector = function(node, selector) {\r\n \t\treturn node.mozMatchesSelector(selector);\r\n \t};\r\n } else if (typeof Element.prototype.msMatchesSelector != 'undefined') {\r\n \tmatchesSelector = function(node, selector) {\r\n \t\treturn node.msMatchesSelector(selector);\r\n \t};\r\n } else if (typeof Element.prototype.oMatchesSelector != 'undefined') {\r\n \tmatchesSelector = function(node, selector) {\r\n \t\treturn node.oMatchesSelector(selector);\r\n \t};\r\n } else {\r\n \t// requires Sizzle: https://github.com/jquery/sizzle/wiki/Sizzle-Documentation\r\n \t// or jQuery: http://jquery.com/download/\r\n \t// or Zepto: http://zeptojs.com/#\r\n \t// without it, this is a ReferenceError\r\n\r\n \tif (typeof jQuery == 'function' || typeof Zepto == 'function') {\r\n \t\tmatchesSelector = function (node, selector) {\r\n \t\t\treturn $(node).is(selector);\r\n \t\t};\r\n \t}\r\n\r\n \tif (typeof matchesSelector == 'undefined') {\r\n \t\tmatchesSelector = Sizzle.matchesSelector;\r\n \t}\r\n }\r\n\r\n return matchesSelector;\r\n}\r\n\r\nfunction getSelectorSpecificity(selector) {\r\n\tvar typeCount = [0, 0, 0];\r\n\r\n // slightly modified version of https://github.com/keeganstreet/specificity/blob/master/specificity.js\r\n var attributeRegex = /(\\[[^\\]]+\\])/g;\r\n var idRegex = /(#[^\\s\\+>~\\.\\[:]+)/g;\r\n var classRegex = /(\\.[^\\s\\+>~\\.\\[:]+)/g;\r\n var pseudoElementRegex = /(::[^\\s\\+>~\\.\\[:]+|:first-line|:first-letter|:before|:after)/gi;\r\n var pseudoClassWithBracketsRegex = /(:[\\w-]+\\([^\\)]*\\))/gi;\r\n var pseudoClassRegex = /(:[^\\s\\+>~\\.\\[:]+)/g;\r\n var elementRegex = /([^\\s\\+>~\\.\\[:]+)/g;\r\n\r\n\tvar findMatch = function(regex, type) {\r\n\t\tvar matches = selector.match(regex);\r\n\t\tif (matches == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttypeCount[type] += matches.length;\r\n\t\tselector = selector.replace(regex, ' ');\r\n\t};\r\n\r\n\tselector = selector.replace(/:not\\(([^\\)]*)\\)/g, ' $1 ');\r\n\tselector = selector.replace(/{[^]*/gm, ' ');\r\n\tfindMatch(attributeRegex, 1);\r\n\tfindMatch(idRegex, 0);\r\n\tfindMatch(classRegex, 1);\r\n\tfindMatch(pseudoElementRegex, 2);\r\n\tfindMatch(pseudoClassWithBracketsRegex, 1);\r\n\tfindMatch(pseudoClassRegex, 1);\r\n\tselector = selector.replace(/[\\*\\s\\+>~]/g, ' ');\r\n\tselector = selector.replace(/[#\\.]/g, ' ');\r\n\tfindMatch(elementRegex, 2);\r\n\treturn typeCount.join('');\r\n}\r\n\r\nfunction build(opts) {\r\n\tvar svg = { opts: opts };\r\n\r\n var matchesSelector = getMatchesSelector();\r\n\r\n if (typeof CanvasRenderingContext2D != 'undefined') {\r\n CanvasRenderingContext2D.prototype.drawSvg = function(s, dx, dy, dw, dh, opts) {\r\n var cOpts = {\r\n ignoreMouse: true,\r\n ignoreAnimation: true,\r\n ignoreDimensions: true,\r\n ignoreClear: true,\r\n offsetX: dx,\r\n offsetY: dy,\r\n scaleWidth: dw,\r\n scaleHeight: dh\r\n };\r\n\r\n for(var prop in opts) {\r\n if(opts.hasOwnProperty(prop)){\r\n cOpts[prop] = opts[prop];\r\n }\r\n }\r\n canvg(this.canvas, s, cOpts);\r\n };\r\n }\r\n\r\n\tsvg.FRAMERATE = 30;\r\n\tsvg.MAX_VIRTUAL_PIXELS = 30000;\r\n\r\n\tsvg.log = function(msg) {};\r\n\tif (svg.opts.log == true && typeof console != 'undefined') {\r\n\t\tsvg.log = function(msg) { console.log(msg); };\r\n\t}\r\n\r\n\t// globals\r\n\tsvg.init = function(ctx) {\r\n\t\tvar uniqueId = 0;\r\n\t\tsvg.UniqueId = function () { uniqueId++; return 'canvg' + uniqueId;\t};\r\n\t\tsvg.Definitions = {};\r\n\t\tsvg.Styles = {};\r\n\t\tsvg.StylesSpecificity = {};\r\n\t\tsvg.Animations = [];\r\n\t\tsvg.Images = [];\r\n\t\tsvg.ctx = ctx;\r\n\t\tsvg.ViewPort = new (function () {\r\n\t\t\tthis.viewPorts = [];\r\n\t\t\tthis.Clear = function() { this.viewPorts = []; };\r\n\t\t\tthis.SetCurrent = function(width, height) { this.viewPorts.push({ width: width, height: height }); };\r\n\t\t\tthis.RemoveCurrent = function() { this.viewPorts.pop(); };\r\n\t\t\tthis.Current = function() { return this.viewPorts[this.viewPorts.length - 1]; };\r\n\t\t\tthis.width = function() { return this.Current().width; };\r\n\t\t\tthis.height = function() { return this.Current().height; };\r\n\t\t\tthis.ComputeSize = function(d) {\r\n\t\t\t\tif (d != null && typeof d == 'number') return d;\r\n\t\t\t\tif (d == 'x') return this.width();\r\n\t\t\t\tif (d == 'y') return this.height();\r\n\t\t\t\treturn Math.sqrt(Math.pow(this.width(), 2) + Math.pow(this.height(), 2)) / Math.sqrt(2);\r\n\t\t\t};\r\n\t\t});\r\n\t}\r\n\tsvg.init();\r\n\r\n\t// images loaded\r\n\tsvg.ImagesLoaded = function() {\r\n\t\tfor (var i=0; i<svg.Images.length; i++) {\r\n\t\t\tif (!svg.Images[i].loaded) return false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\r\n\t// trim\r\n\tsvg.trim = function(s) { return s.replace(/^\\s+|\\s+$/g, ''); }\r\n\r\n\t// compress spaces\r\n\tsvg.compressSpaces = function(s) { return s.replace(/[\\s\\r\\t\\n]+/gm,' '); }\r\n\r\n\t// ajax\r\n\tsvg.ajax = function(url) {\r\n\t\tvar AJAX;\r\n\t\tif(window.XMLHttpRequest){AJAX=new XMLHttpRequest();}\r\n\t\telse{AJAX=new ActiveXObject('Microsoft.XMLHTTP');}\r\n\t\tif(AJAX){\r\n\t\t AJAX.open('GET',url,false);\r\n\t\t AJAX.send(null);\r\n\t\t return AJAX.responseText;\r\n\t\t}\r\n\t\treturn null;\r\n\t}\r\n\r\n\t// parse xml\r\n\tsvg.parseXml = function(xml) {\r\n\t\tif (typeof Windows != 'undefined' && typeof Windows.Data != 'undefined' && typeof Windows.Data.Xml != 'undefined') {\r\n\t\t\tvar xmlDoc = new Windows.Data.Xml.Dom.XmlDocument();\r\n\t\t\tvar settings = new Windows.Data.Xml.Dom.XmlLoadSettings();\r\n\t\t\tsettings.prohibitDtd = false;\r\n\t\t\txmlDoc.loadXml(xml, settings);\r\n\t\t\treturn xmlDoc;\r\n\t\t}\r\n\t\telse if (window.DOMParser)\r\n\t\t{\r\n\t\t\tvar parser = new DOMParser();\r\n\t\t\treturn parser.parseFromString(xml, 'text/xml');\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\txml = xml.replace(/<!DOCTYPE svg[^>]*>/, '');\r\n\t\t\tvar xmlDoc = new ActiveXObject('Microsoft.XMLDOM');\r\n\t\t\txmlDoc.async = 'false';\r\n\t\t\txmlDoc.loadXML(xml);\r\n\t\t\treturn xmlDoc;\r\n\t\t}\r\n\t}\r\n\r\n\tsvg.Property = function(name, value) {\r\n\t\tthis.name = name;\r\n\t\tthis.value = value;\r\n\t}\r\n\t\tsvg.Property.prototype.getValue = function() {\r\n\t\t\treturn this.value;\r\n\t\t}\r\n\r\n\t\tsvg.Property.prototype.hasValue = function() {\r\n\t\t\treturn (this.value != null && this.value != '');\r\n\t\t}\r\n\r\n\t\t// return the numerical value of the property\r\n\t\tsvg.Property.prototype.numValue = function() {\r\n\t\t\tif (!this.hasValue()) return 0;\r\n\r\n\t\t\tvar n = parseFloat(this.value);\r\n\t\t\tif ((this.value + '').match(/%$/)) {\r\n\t\t\t\tn = n / 100.0;\r\n\t\t\t}\r\n\t\t\treturn n;\r\n\t\t}\r\n\r\n\t\tsvg.Property.prototype.valueOrDefault = function(def) {\r\n\t\t\tif (this.hasValue()) return this.value;\r\n\t\t\treturn def;\r\n\t\t}\r\n\r\n\t\tsvg.Property.prototype.numValueOrDefault = function(def) {\r\n\t\t\tif (this.hasValue()) return this.numValue();\r\n\t\t\treturn def;\r\n\t\t}\r\n\r\n\t\t// color extensions\r\n\t\t\t// augment the current color value with the opacity\r\n\t\t\tsvg.Property.prototype.addOpacity = function(opacityProp) {\r\n\t\t\t\tvar newValue = this.value;\r\n\t\t\t\tif (opacityProp.value != null && opacityProp.value != '' && typeof this.value == 'string') { // can only add opacity to colors, not patterns\r\n\t\t\t\t\tvar color = new RGBColor(this.value);\r\n\t\t\t\t\tif (color.ok) {\r\n\t\t\t\t\t\tnewValue = 'rgba(' + color.r + ', ' + color.g + ', ' + color.b + ', ' + opacityProp.numValue() + ')';\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn new svg.Property(this.name, newValue);\r\n\t\t\t}\r\n\r\n\t\t// definition extensions\r\n\t\t\t// get the definition from the definitions table\r\n\t\t\tsvg.Property.prototype.getDefinition = function() {\r\n\t\t\t\tvar name = this.value.match(/#([^\\)'\"]+)/);\r\n\t\t\t\tif (name) { name = name[1]; }\r\n\t\t\t\tif (!name) { name = this.value; }\r\n\t\t\t\treturn svg.Definitions[name];\r\n\t\t\t}\r\n\r\n\t\t\tsvg.Property.prototype.isUrlDefinition = function() {\r\n\t\t\t\treturn this.value.indexOf('url(') == 0\r\n\t\t\t}\r\n\r\n\t\t\tsvg.Property.prototype.getFillStyleDefinition = function(e, opacityProp) {\r\n\t\t\t\tvar def = this.getDefinition();\r\n\r\n\t\t\t\t// gradient\r\n\t\t\t\tif (def != null && def.createGradient) {\r\n\t\t\t\t\treturn def.createGradient(svg.ctx, e, opacityProp);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// pattern\r\n\t\t\t\tif (def != null && def.createPattern) {\r\n\t\t\t\t\tif (def.getHrefAttribute().hasValue()) {\r\n\t\t\t\t\t\tvar pt = def.attribute('patternTransform');\r\n\t\t\t\t\t\tdef = def.getHrefAttribute().getDefinition();\r\n\t\t\t\t\t\tif (pt.hasValue()) { def.attribute('patternTransform', true).value = pt.value; }\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn def.createPattern(svg.ctx, e);\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t// length extensions\r\n\t\t\tsvg.Property.prototype.getDPI = function(viewPort) {\r\n\t\t\t\treturn 96.0; // TODO: compute?\r\n\t\t\t}\r\n\r\n\t\t\tsvg.Property.prototype.getEM = function(viewPort) {\r\n\t\t\t\tvar em = 12;\r\n\r\n\t\t\t\tvar fontSize = new svg.Property('fontSize', svg.Font.Parse(svg.ctx.font).fontSize);\r\n\t\t\t\tif (fontSize.hasValue()) em = fontSize.toPixels(viewPort);\r\n\r\n\t\t\t\treturn em;\r\n\t\t\t}\r\n\r\n\t\t\tsvg.Property.prototype.getUnits = function() {\r\n\t\t\t\tvar s = this.value+'';\r\n\t\t\t\treturn s.replace(/[0-9\\.\\-]/g,'');\r\n\t\t\t}\r\n\r\n\t\t\t// get the length as pixels\r\n\t\t\tsvg.Property.prototype.toPixels = function(viewPort, processPercent) {\r\n\t\t\t\tif (!this.hasValue()) return 0;\r\n\t\t\t\tvar s = this.value+'';\r\n\t\t\t\tif (s.match(/em$/)) return this.numValue() * this.getEM(viewPort);\r\n\t\t\t\tif (s.match(/ex$/)) return this.numValue() * this.getEM(viewPort) / 2.0;\r\n\t\t\t\tif (s.match(/px$/)) return this.numValue();\r\n\t\t\t\tif (s.match(/pt$/)) return this.numValue() * this.getDPI(viewPort) * (1.0 / 72.0);\r\n\t\t\t\tif (s.match(/pc$/)) return this.numValue() * 15;\r\n\t\t\t\tif (s.match(/cm$/)) return this.numValue() * this.getDPI(viewPort) / 2.54;\r\n\t\t\t\tif (s.match(/mm$/)) return this.numValue() * this.getDPI(viewPort) / 25.4;\r\n\t\t\t\tif (s.match(/in$/)) return this.numValue() * this.getDPI(viewPort);\r\n\t\t\t\tif (s.match(/%$/)) return this.numValue() * svg.ViewPort.ComputeSize(viewPort);\r\n\t\t\t\tvar n = this.numValue();\r\n\t\t\t\tif (processPercent && n < 1.0) return n * svg.ViewPort.ComputeSize(viewPort);\r\n\t\t\t\treturn n;\r\n\t\t\t}\r\n\r\n\t\t// time extensions\r\n\t\t\t// get the time as milliseconds\r\n\t\t\tsvg.Property.prototype.toMilliseconds = function() {\r\n\t\t\t\tif (!this.hasValue()) return 0;\r\n\t\t\t\tvar s = this.value+'';\r\n\t\t\t\tif (s.match(/s$/)) return this.numValue() * 1000;\r\n\t\t\t\tif (s.match(/ms$/)) return this.numValue();\r\n\t\t\t\treturn this.numValue();\r\n\t\t\t}\r\n\r\n\t\t// angle extensions\r\n\t\t\t// get the angle as radians\r\n\t\t\tsvg.Property.prototype.toRadians = function() {\r\n\t\t\t\tif (!this.hasValue()) return 0;\r\n\t\t\t\tvar s = this.value+'';\r\n\t\t\t\tif (s.match(/deg$/)) return this.numValue() * (Math.PI / 180.0);\r\n\t\t\t\tif (s.match(/grad$/)) return this.numValue() * (Math.PI / 200.0);\r\n\t\t\t\tif (s.match(/rad$/)) return this.numValue();\r\n\t\t\t\treturn this.numValue() * (Math.PI / 180.0);\r\n\t\t\t}\r\n\r\n\t\t// text extensions\r\n\t\t\t// get the text baseline\r\n\t\t\tvar textBaselineMapping = {\r\n\t\t\t\t'baseline': 'alphabetic',\r\n\t\t\t\t'before-edge': 'top',\r\n\t\t\t\t'text-before-edge': 'top',\r\n\t\t\t\t'middle': 'middle',\r\n\t\t\t\t'central': 'middle',\r\n\t\t\t\t'after-edge': 'bottom',\r\n\t\t\t\t'text-after-edge': 'bottom',\r\n\t\t\t\t'ideographic': 'ideographic',\r\n\t\t\t\t'alphabetic': 'alphabetic',\r\n\t\t\t\t'hanging': 'hanging',\r\n\t\t\t\t'mathematical': 'alphabetic'\r\n\t\t\t};\r\n\t\t\tsvg.Property.prototype.toTextBaseline = function () {\r\n\t\t\t\tif (!this.hasValue()) return null;\r\n\t\t\t\treturn textBaselineMapping[this.value];\r\n\t\t\t}\r\n\r\n\t// fonts\r\n\tsvg.Font = new (function() {\r\n\t\tthis.Styles = 'normal|italic|oblique|inherit';\r\n\t\tthis.Variants = 'normal|small-caps|inherit';\r\n\t\tthis.Weights = 'normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit';\r\n\r\n\t\tthis.CreateFont = function(fontStyle, fontVariant, fontWeight, fontSize, fontFamily, inherit) {\r\n\t\t\tvar f = inherit != null ? this.Parse(inherit) : this.CreateFont('', '', '', '', '', svg.ctx.font);\r\n\t\t\treturn {\r\n\t\t\t\tfontFamily: fontFamily || f.fontFamily,\r\n\t\t\t\tfontSize: fontSize || f.fontSize,\r\n\t\t\t\tfontStyle: fontStyle || f.fontStyle,\r\n\t\t\t\tfontWeight: fontWeight || f.fontWeight,\r\n\t\t\t\tfontVariant: fontVariant || f.fontVariant,\r\n\t\t\t\ttoString: function () { return [this.fontStyle, this.fontVariant, this.fontWeight, this.fontSize, this.fontFamily].join(' ') }\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar that = this;\r\n\t\tthis.Parse = function(s) {\r\n\t\t\tvar f = {};\r\n\t\t\tvar d = svg.trim(svg.compressSpaces(s || '')).split(' ');\r\n\t\t\tvar set = { fontSize: false, fontStyle: false, fontWeight: false, fontVariant: false }\r\n\t\t\tvar ff = '';\r\n\t\t\tfor (var i=0; i<d.length; i++) {\r\n\t\t\t\tif (!set.fontStyle && that.Styles.indexOf(d[i]) != -1) { if (d[i] != 'inherit') f.fontStyle = d[i]; set.fontStyle = true; }\r\n\t\t\t\telse if (!set.fontVariant && that.Variants.indexOf(d[i]) != -1) { if (d[i] != 'inherit') f.fontVariant = d[i]; set.fontStyle = set.fontVariant = true;\t}\r\n\t\t\t\telse if (!set.fontWeight && that.Weights.indexOf(d[i]) != -1) {\tif (d[i] != 'inherit') f.fontWeight = d[i]; set.fontStyle = set.fontVariant = set.fontWeight = true; }\r\n\t\t\t\telse if (!set.fontSize) { if (d[i] != 'inherit') f.fontSize = d[i].split('/')[0]; set.fontStyle = set.fontVariant = set.fontWeight = set.fontSize = true; }\r\n\t\t\t\telse { if (d[i] != 'inherit') ff += d[i]; }\r\n\t\t\t} if (ff != '') f.fontFamily = ff;\r\n\t\t\treturn f;\r\n\t\t}\r\n\t});\r\n\r\n\t// points and paths\r\n\tsvg.ToNumberArray = function(s) {\r\n\t\tvar a = svg.trim(svg.compressSpaces((s || '').replace(/,/g, ' '))).split(' ');\r\n\t\tfor (var i=0; i<a.length; i++) {\r\n\t\t\ta[i] = parseFloat(a[i]);\r\n\t\t}\r\n\t\treturn a;\r\n\t}\r\n\tsvg.Point = function(x, y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}\r\n\t\tsvg.Point.prototype.angleTo = function(p) {\r\n\t\t\treturn Math.atan2(p.y - this.y, p.x - this.x);\r\n\t\t}\r\n\r\n\t\tsvg.Point.prototype.applyTransform = function(v) {\r\n\t\t\tvar xp = this.x * v[0] + this.y * v[2] + v[4];\r\n\t\t\tvar yp = this.x * v[1] + this.y * v[3] + v[5];\r\n\t\t\tthis.x = xp;\r\n\t\t\tthis.y = yp;\r\n\t\t}\r\n\r\n\tsvg.CreatePoint = function(s) {\r\n\t\tvar a = svg.ToNumberArray(s);\r\n\t\treturn new svg.Point(a[0], a[1]);\r\n\t}\r\n\tsvg.CreatePath = function(s) {\r\n\t\tvar a = svg.ToNumberArray(s);\r\n\t\tvar path = [];\r\n\t\tfor (var i=0; i<a.length; i+=2) {\r\n\t\t\tpath.push(new svg.Point(a[i], a[i+1]));\r\n\t\t}\r\n\t\treturn path;\r\n\t}\r\n\r\n\t// bounding box\r\n\tsvg.BoundingBox = function(x1, y1, x2, y2) { // pass in initial points if you want\r\n\t\tthis.x1 = Number.NaN;\r\n\t\tthis.y1 = Number.NaN;\r\n\t\tthis.x2 = Number.NaN;\r\n\t\tthis.y2 = Number.NaN;\r\n\r\n\t\tthis.x = function() { return this.x1; }\r\n\t\tthis.y = function() { return this.y1; }\r\n\t\tthis.width = function() { return this.x2 - this.x1; }\r\n\t\tthis.height = function() { return this.y2 - this.y1; }\r\n\r\n\t\tthis.addPoint = function(x, y) {\r\n\t\t\tif (x != null) {\r\n\t\t\t\tif (isNaN(this.x1) || isNaN(this.x2)) {\r\n\t\t\t\t\tthis.x1 = x;\r\n\t\t\t\t\tthis.x2 = x;\r\n\t\t\t\t}\r\n\t\t\t\tif (x < this.x1) this.x1 = x;\r\n\t\t\t\tif (x > this.x2) this.x2 = x;\r\n\t\t\t}\r\n\r\n\t\t\tif (y != null) {\r\n\t\t\t\tif (isNaN(this.y1) || isNaN(this.y2)) {\r\n\t\t\t\t\tthis.y1 = y;\r\n\t\t\t\t\tthis.y2 = y;\r\n\t\t\t\t}\r\n\t\t\t\tif (y < this.y1) this.y1 = y;\r\n\t\t\t\tif (y > this.y2) this.y2 = y;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.addX = function(x) { this.addPoint(x, null); }\r\n\t\tthis.addY = function(y) { this.addPoint(null, y); }\r\n\r\n\t\tthis.addBoundingBox = function(bb) {\r\n\t\t\tthis.addPoint(bb.x1, bb.y1);\r\n\t\t\tthis.addPoint(bb.x2, bb.y2);\r\n\t\t}\r\n\r\n\t\tthis.addQuadraticCurve = function(p0x, p0y, p1x, p1y, p2x, p2y) {\r\n\t\t\tvar cp1x = p0x + 2/3 * (p1x - p0x); // CP1 = QP0 + 2/3 *(QP1-QP0)\r\n\t\t\tvar cp1y = p0y + 2/3 * (p1y - p0y); // CP1 = QP0 + 2/3 *(QP1-QP0)\r\n\t\t\tvar cp2x = cp1x + 1/3 * (p2x - p0x); // CP2 = CP1 + 1/3 *(QP2-QP0)\r\n\t\t\tvar cp2y = cp1y + 1/3 * (p2y - p0y); // CP2 = CP1 + 1/3 *(QP2-QP0)\r\n\t\t\tthis.addBezierCurve(p0x, p0y, cp1x, cp2x, cp1y,\tcp2y, p2x, p2y);\r\n\t\t}\r\n\r\n\t\tthis.addBezierCurve = function(p0x, p0y, p1x, p1y, p2x, p2y, p3x, p3y) {\r\n\t\t\t// from http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html\r\n\t\t\tvar p0 = [p0x, p0y], p1 = [p1x, p1y], p2 = [p2x, p2y], p3 = [p3x, p3y];\r\n\t\t\tthis.addPoint(p0[0], p0[1]);\r\n\t\t\tthis.addPoint(p3[0], p3[1]);\r\n\r\n\t\t\tfor (var i=0; i<=1; i++) {\r\n\t\t\t\tvar f = function(t) {\r\n\t\t\t\t\treturn Math.pow(1-t, 3) * p0[i]\r\n\t\t\t\t\t+ 3 * Math.pow(1-t, 2) * t * p1[i]\r\n\t\t\t\t\t+ 3 * (1-t) * Math.pow(t, 2) * p2[i]\r\n\t\t\t\t\t+ Math.pow(t, 3) * p3[i];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar b = 6 * p0[i] - 12 * p1[i] + 6 * p2[i];\r\n\t\t\t\tvar a = -3 * p0[i] + 9 * p1[i] - 9 * p2[i] + 3 * p3[i];\r\n\t\t\t\tvar c = 3 * p1[i] - 3 * p0[i];\r\n\r\n\t\t\t\tif (a == 0) {\r\n\t\t\t\t\tif (b == 0) continue;\r\n\t\t\t\t\tvar t = -c / b;\r\n\t\t\t\t\tif (0 < t && t < 1) {\r\n\t\t\t\t\t\tif (i == 0) this.addX(f(t));\r\n\t\t\t\t\t\tif (i == 1) this.addY(f(t));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar b2ac = Math.pow(b, 2) - 4 * c * a;\r\n\t\t\t\tif (b2ac < 0) continue;\r\n\t\t\t\tvar t1 = (-b + Math.sqrt(b2ac)) / (2 * a);\r\n\t\t\t\tif (0 < t1 && t1 < 1) {\r\n\t\t\t\t\tif (i == 0) this.addX(f(t1));\r\n\t\t\t\t\tif (i == 1) this.addY(f(t1));\r\n\t\t\t\t}\r\n\t\t\t\tvar t2 = (-b - Math.sqrt(b2ac)) / (2 * a);\r\n\t\t\t\tif (0 < t2 && t2 < 1) {\r\n\t\t\t\t\tif (i == 0) this.addX(f(t2));\r\n\t\t\t\t\tif (i == 1) this.addY(f(t2));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.isPointInBox = function(x, y) {\r\n\t\t\treturn (this.x1 <= x && x <= this.x2 && this.y1 <= y && y <= this.y2);\r\n\t\t}\r\n\r\n\t\tthis.addPoint(x1, y1);\r\n\t\tthis.addPoint(x2, y2);\r\n\t}\r\n\r\n\t// transforms\r\n\tsvg.Transform = function(v) {\r\n\t\tvar that = this;\r\n\t\tthis.Type = {}\r\n\r\n\t\t// translate\r\n\t\tthis.Type.translate = function(s) {\r\n\t\t\tthis.p = svg.CreatePoint(s);\r\n\t\t\tthis.apply = function(ctx) {\r\n\t\t\t\tctx.translate(this.p.x || 0.0, this.p.y || 0.0);\r\n\t\t\t}\r\n\t\t\tthis.unapply = function(ctx) {\r\n\t\t\t\tctx.translate(-1.0 * this.p.x || 0.0, -1.0 * this.p.y || 0.0);\r\n\t\t\t}\r\n\t\t\tthis.applyToPoint = function(p) {\r\n\t\t\t\tp.applyTransform([1, 0, 0, 1, this.p.x || 0.0, this.p.y || 0.0]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// rotate\r\n\t\tthis.Type.rotate = function(s) {\r\n\t\t\tvar a = svg.ToNumberArray(s);\r\n\t\t\tthis.angle = new svg.Property('angle', a[0]);\r\n\t\t\tthis.cx = a[1] || 0;\r\n\t\t\tthis.cy = a[2] || 0;\r\n\t\t\tthis.apply = function(ctx) {\r\n\t\t\t\tctx.translate(this.cx, this.cy);\r\n\t\t\t\tctx.rotate(this.angle.toRadians());\r\n\t\t\t\tctx.translate(-this.cx, -this.cy);\r\n\t\t\t}\r\n\t\t\tthis.unapply = function(ctx) {\r\n\t\t\t\tctx.translate(this.cx, this.cy);\r\n\t\t\t\tctx.rotate(-1.0 * this.angle.toRadians());\r\n\t\t\t\tctx.translate(-this.cx, -this.cy);\r\n\t\t\t}\r\n\t\t\tthis.applyToPoint = function(p) {\r\n\t\t\t\tvar a = this.angle.toRadians();\r\n\t\t\t\tp.applyTransform([1, 0, 0, 1, this.p.x || 0.0, this.p.y || 0.0]);\r\n\t\t\t\tp.applyTransform([Math.cos(a), Math.sin(a), -Math.sin(a), Math.cos(a), 0, 0]);\r\n\t\t\t\tp.applyTransform([1, 0, 0, 1, -this.p.x || 0.0, -this.p.y || 0.0]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.Type.scale = function(s) {\r\n\t\t\tthis.p = svg.CreatePoint(s);\r\n\t\t\tthis.apply = function(ctx) {\r\n\t\t\t\tctx.scale(this.p.x || 1.0, this.p.y || this.p.x || 1.0);\r\n\t\t\t}\r\n\t\t\tthis.unapply = function(ctx) {\r\n\t\t\t\tctx.scale(1.0 / this.p.x || 1.0, 1.0 / this.p.y || this.p.x || 1.0);\r\n\t\t\t}\r\n\t\t\tthis.applyToPoint = function(p) {\r\n\t\t\t\tp.applyTransform([this.p.x || 0.0, 0, 0, this.p.y || 0.0, 0, 0]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.Type.matrix = function(s) {\r\n\t\t\tthis.m = svg.ToNumberArray(s);\r\n\t\t\tthis.apply = function(ctx) {\r\n\t\t\t\tctx.transform(this.m[0], this.m[1], this.m[2], this.m[3], this.m[4], this.m[5]);\r\n\t\t\t}\r\n\t\t\tthis.unapply = function(ctx) {\r\n\t\t\t\tvar a = this.m[0];\r\n\t\t\t\tvar b = this.m[2];\r\n\t\t\t\tvar c = this.m[4];\r\n\t\t\t\tvar d = this.m[1];\r\n\t\t\t\tvar e = this.m[3];\r\n\t\t\t\tvar f = this.m[5];\r\n\t\t\t\tvar g = 0.0;\r\n\t\t\t\tvar h = 0.0;\r\n\t\t\t\tvar i = 1.0;\r\n\t\t\t\tvar det = 1 / (a*(e*i-f*h)-b*(d*i-f*g)+c*(d*h-e*g));\r\n\t\t\t\tctx.transform(\r\n\t\t\t\t\tdet*(e*i-f*h),\r\n\t\t\t\t\tdet*(f*g-d*i),\r\n\t\t\t\t\tdet*(c*h-b*i),\r\n\t\t\t\t\tdet*(a*i-c*g),\r\n\t\t\t\t\tdet*(b*f-c*e),\r\n\t\t\t\t\tdet*(c*d-a*f)\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\tthis.applyToPoint = function(p) {\r\n\t\t\t\tp.applyTransform(this.m);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.Type.SkewBase = function(s) {\r\n\t\t\tthis.base = that.Type.matrix;\r\n\t\t\tthis.base(s);\r\n\t\t\tthis.angle = new svg.Property('angle', s);\r\n\t\t}\r\n\t\tthis.Type.SkewBase.prototype = new this.Type.matrix;\r\n\r\n\t\tthis.Type.skewX = function(s) {\r\n\t\t\tthis.base = that.Type.SkewBase;\r\n\t\t\tthis.base(s);\r\n\t\t\tthis.m = [1, 0, Math.tan(this.angle.toRadians()), 1, 0, 0];\r\n\t\t}\r\n\t\tthis.Type.skewX.prototype = new this.Type.SkewBase;\r\n\r\n\t\tthis.Type.skewY = function(s) {\r\n\t\t\tthis.base = that.Type.SkewBase;\r\n\t\t\tthis.base(s);\r\n\t\t\tthis.m = [1, Math.tan(this.angle.toRadians()), 0, 1, 0, 0];\r\n\t\t}\r\n\t\tthis.Type.skewY.prototype = new this.Type.SkewBase;\r\n\r\n\t\tthis.transforms = [];\r\n\r\n\t\tthis.apply = function(ctx) {\r\n\t\t\tfor (var i=0; i<this.transforms.length; i++) {\r\n\t\t\t\tthis.transforms[i].apply(ctx);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.unapply = function(ctx) {\r\n\t\t\tfor (var i=this.transforms.length-1; i>=0; i--) {\r\n\t\t\t\tthis.transforms[i].unapply(ctx);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.applyToPoint = function(p) {\r\n\t\t\tfor (var i=0; i<this.transforms.length; i++) {\r\n\t\t\t\tthis.transforms[i].applyToPoint(p);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar data = svg.trim(svg.compressSpaces(v)).replace(/\\)([a-zA-Z])/g, ') $1').replace(/\\)(\\s?,\\s?)/g,') ').split(/\\s(?=[a-z])/);\r\n\t\tfor (var i=0; i<data.length; i++) {\r\n\t\t\tvar type = svg.trim(data[i].split('(')[0]);\r\n\t\t\tvar s = data[i].split('(')[1].replace(')','');\r\n\t\t\tvar transformType = this.Type[type];\r\n\t\t\tif (typeof transformType != 'undefined') {\r\n\t\t\t\tvar transform = new transformType(s);\r\n\t\t\t\ttransform.type = type;\r\n\t\t\t\tthis.transforms.push(transform);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t// aspect ratio\r\n\tsvg.AspectRatio = function(ctx, aspectRatio, width, desiredWidth, height, desiredHeight, minX, minY, refX, refY) {\r\n\t\t// aspect ratio - http://www.w3.org/TR/SVG/coords.html#PreserveAspectRatioAttribute\r\n\t\taspectRatio = svg.compressSpaces(aspectRatio);\r\n\t\taspectRatio = aspectRatio.replace(/^defer\\s/,''); // ignore defer\r\n\t\tvar align = aspectRatio.split(' ')[0] || 'xMidYMid';\r\n\t\tvar meetOrSlice = aspectRatio.split(' ')[1] || 'meet';\r\n\r\n\t\t// calculate scale\r\n\t\tvar scaleX = width / desiredWidth;\r\n\t\tvar scaleY = height / desiredHeight;\r\n\t\tvar scaleMin = Math.min(scaleX, scaleY);\r\n\t\tvar scaleMax = Math.max(scaleX, scaleY);\r\n\t\tif (meetOrSlice == 'meet') { desiredWidth *= scaleMin; desiredHeight *= scaleMin; }\r\n\t\tif (meetOrSlice == 'slice') { desiredWidth *= scaleMax; desiredHeight *= scaleMax; }\r\n\r\n\t\trefX = new svg.Property('refX', refX);\r\n\t\trefY = new svg.Property('refY', refY);\r\n\t\tif (refX.hasValue() && refY.hasValue()) {\r\n\t\t\tctx.translate(-scaleMin * refX.toPixels('x'), -scaleMin * refY.toPixels('y'));\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// align\r\n\t\t\tif (align.match(/^xMid/) && ((meetOrSlice == 'meet' && scaleMin == scaleY) || (meetOrSlice == 'slice' && scaleMax == scaleY))) ctx.translate(width / 2.0 - desiredWidth / 2.0, 0);\r\n\t\t\tif (align.match(/YMid$/) && ((meetOrSlice == 'meet' && scaleMin == scaleX) || (meetOrSlice == 'slice' && scaleMax == scaleX))) ctx.translate(0, height / 2.0 - desiredHeight / 2.0);\r\n\t\t\tif (align.match(/^xMax/) && ((meetOrSlice == 'meet' && scaleMin == scaleY) || (meetOrSlice == 'slice' && scaleMax == scaleY))) ctx.translate(width - desiredWidth, 0);\r\n\t\t\tif (align.match(/YMax$/) && ((meetOrSlice == 'meet' && scaleMin == scaleX) || (meetOrSlice == 'slice' && scaleMax == scaleX))) ctx.translate(0, height - desiredHeight);\r\n\t\t}\r\n\r\n\t\t// scale\r\n\t\tif (align == 'none') ctx.scale(scaleX, scaleY);\r\n\t\telse if (meetOrSlice == 'meet') ctx.scale(scaleMin, scaleMin);\r\n\t\telse if (meetOrSlice == 'slice') ctx.scale(scaleMax, scaleMax);\r\n\r\n\t\t// translate\r\n\t\tctx.translate(minX == null ? 0 : -minX, minY == null ? 0 : -minY);\r\n\t}\r\n\r\n\t// elements\r\n\tsvg.Element = {}\r\n\r\n\tsvg.EmptyProperty = new svg.Property('EMPTY', '');\r\n\r\n\tsvg.Element.ElementBase = function(node) {\r\n\t\tthis.attributes = {};\r\n\t\tthis.styles = {};\r\n\t\tthis.stylesSpecificity = {};\r\n\t\tthis.children = [];\r\n\r\n\t\t// get or create attribute\r\n\t\tthis.attribute = function(name, createIfNotExists) {\r\n\t\t\tvar a = this.attributes[name];\r\n\t\t\tif (a != null) return a;\r\n\r\n\t\t\tif (createIfNotExists == true) { a = new svg.Property(name, ''); this.attributes[name] = a; }\r\n\t\t\treturn a || svg.EmptyProperty;\r\n\t\t}\r\n\r\n\t\tthis.getHrefAttribute = function() {\r\n\t\t\tfor (var a in this.attributes) {\r\n\t\t\t\tif (a == 'href' || a.match(/:href$/)) {\r\n\t\t\t\t\treturn this.attributes[a];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn svg.EmptyProperty;\r\n\t\t}\r\n\r\n\t\t// get or create style, crawls up node tree\r\n\t\tthis.style = function(name, createIfNotExists, skipAncestors) {\r\n\t\t\tvar s = this.styles[name];\r\n\t\t\tif (s != null) return s;\r\n\r\n\t\t\tvar a = this.attribute(name);\r\n\t\t\tif (a != null && a.hasValue()) {\r\n\t\t\t\tthis.styles[name] = a; // move up to me to cache\r\n\t\t\t\treturn a;\r\n\t\t\t}\r\n\r\n\t\t\tif (skipAncestors != true) {\r\n\t\t\t\tvar p = this.parent;\r\n\t\t\t\tif (p != null) {\r\n\t\t\t\t\tvar ps = p.style(name);\r\n\t\t\t\t\tif (ps != null && ps.hasValue()) {\r\n\t\t\t\t\t\treturn ps;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (createIfNotExists == true) { s = new svg.Property(name, ''); this.styles[name] = s; }\r\n\t\t\treturn s || svg.EmptyProperty;\r\n\t\t}\r\n\r\n\t\t// base render\r\n\t\tthis.render = function(ctx) {\r\n\t\t\t// don't render display=none\r\n\t\t\tif (this.style('display').value == 'none') return;\r\n\r\n\t\t\t// don't render visibility=hidden\r\n\t\t\tif (this.style('visibility').value == 'hidden') return;\r\n\r\n\t\t\tctx.save();\r\n\t\t\tif (this.style('mask').hasValue()) { // mask\r\n\t\t\t\tvar mask = this.style('mask').getDefinition();\r\n\t\t\t\tif (mask != null) mask.apply(ctx, this);\r\n\t\t\t}\r\n\t\t\telse if (this.style('filter').hasValue()) { // filter\r\n\t\t\t\tvar filter = this.style('filter').getDefinition();\r\n\t\t\t\tif (filter != null) filter.apply(ctx, this);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.setContext(ctx);\r\n\t\t\t\tthis.renderChildren(ctx);\r\n\t\t\t\tthis.clearContext(ctx);\r\n\t\t\t}\r\n\t\t\tctx.restore();\r\n\t\t}\r\n\r\n\t\t// base set context\r\n\t\tthis.setContext = function(ctx) {\r\n\t\t\t// OVERRIDE ME!\r\n\t\t}\r\n\r\n\t\t// base clear context\r\n\t\tthis.clearContext = function(ctx) {\r\n\t\t\t// OVERRIDE ME!\r\n\t\t}\r\n\r\n\t\t// base render children\r\n\t\tthis.renderChildren = function(ctx) {\r\n\t\t\tfor (var i=0; i<this.children.length; i++) {\r\n\t\t\t\tthis.children[i].render(ctx);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.addChild = function(childNode, create) {\r\n\t\t\tvar child = childNode;\r\n\t\t\tif (create) child = svg.CreateElement(childNode);\r\n\t\t\tchild.parent = this;\r\n\t\t\tif (child.type != 'title') { this.children.push(child);\t}\r\n\t\t}\r\n\r\n\t\tthis.addStylesFromStyleDefinition = function () {\r\n\t\t\t// add styles\r\n\t\t\tfor (var selector in svg.Styles) {\r\n\t\t\t\tif (selector[0] != '@' && matchesSelector(node, selector)) {\r\n\t\t\t\t\tvar styles = svg.Styles[selector];\r\n\t\t\t\t\tvar specificity = svg.StylesSpecificity[selector];\r\n\t\t\t\t\tif (styles != null) {\r\n\t\t\t\t\t\tfor (var name in styles) {\r\n\t\t\t\t\t\t\tvar existingSpecificity = this.stylesSpecificity[name];\r\n\t\t\t\t\t\t\tif (typeof existingSpecificity == 'undefined') {\r\n\t\t\t\t\t\t\t\texistingSpecificity = '000';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (specificity > existingSpecificity) {\r\n\t\t\t\t\t\t\t\tthis.styles[name] = styles[name];\r\n\t\t\t\t\t\t\t\tthis.stylesSpecificity[name] = specificity;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tif (node != null && node.nodeType == 1) { //ELEMENT_NODE\r\n\t\t\t// add attributes\r\n\t\t\tfor (var i=0; i<node.attributes.length; i++) {\r\n\t\t\t\tvar attribute = node.attributes[i];\r\n\t\t\t\tthis.attributes[attribute.nodeName] = new svg.Property(attribute.nodeName, attribute.value);\r\n\t\t\t}\r\n\r\n\t\t\tthis.addStylesFromStyleDefinition();\r\n\r\n\t\t\t// add inline styles\r\n\t\t\tif (this.attribute('style').hasValue()) {\r\n\t\t\t\tvar styles = this.attribute('style').value.split(';');\r\n\t\t\t\tfor (var i=0; i<styles.length; i++) {\r\n\t\t\t\t\tif (svg.trim(styles[i]) != '') {\r\n\t\t\t\t\t\tvar style = styles[i].split(':');\r\n\t\t\t\t\t\tvar name = svg.trim(style[0]);\r\n\t\t\t\t\t\tvar value = svg.trim(style[1]);\r\n\t\t\t\t\t\tthis.styles[name] = new svg.Property(name, value);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// add id\r\n\t\t\tif (this.attribute('id').hasValue()) {\r\n\t\t\t\tif (svg.Definitions[this.attribute('id').value] == null) {\r\n\t\t\t\t\tsvg.Definitions[this.attribute('id').value] = this;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// add children\r\n\t\t\tfor (var i=0; i<node.childNodes.length; i++) {\r\n\t\t\t\tvar childNode = node.childNodes[i];\r\n\t\t\t\tif (childNode.nodeType == 1) this.addChild(childNode, true); //ELEMENT_NODE\r\n\t\t\t\tif (this.captureTextNodes && (childNode.nodeType == 3 || childNode.nodeType == 4)) {\r\n\t\t\t\t\tvar text = childNode.value || childNode.text || childNode.textContent || '';\r\n\t\t\t\t\tif (svg.compressSpaces(text) != '') {\r\n\t\t\t\t\t\tthis.addChild(new svg.Element.tspan(childNode), false); // TEXT_NODE\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tsvg.Element.RenderedElementBase = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.setContext = function(ctx) {\r\n\t\t\t// fill\r\n\t\t\tif (this.style('fill').isUrlDefinition()) {\r\n\t\t\t\tvar fs = this.style('fill').getFillStyleDefinition(this, this.style('fill-opacity'));\r\n\t\t\t\tif (fs != null) ctx.fillStyle = fs;\r\n\t\t\t}\r\n\t\t\telse if (this.style('fill').hasValue()) {\r\n\t\t\t\tvar fillStyle = this.style('fill');\r\n\t\t\t\tif (fillStyle.value == 'currentColor') fillStyle.value = this.style('color').value;\r\n\t\t\t\tif (fillStyle.value != 'inherit') ctx.fillStyle = (fillStyle.value == 'none' ? 'rgba(0,0,0,0)' : fillStyle.value);\r\n\t\t\t}\r\n\t\t\tif (this.style('fill-opacity').hasValue()) {\r\n\t\t\t\tvar fillStyle = new svg.Property('fill', ctx.fillStyle);\r\n\t\t\t\tfillStyle = fillStyle.addOpacity(this.style('fill-opacity'));\r\n\t\t\t\tctx.fillStyle = fillStyle.value;\r\n\t\t\t}\r\n\r\n\t\t\t// stroke\r\n\t\t\tif (this.style('stroke').isUrlDefinition()) {\r\n\t\t\t\tvar fs = this.style('stroke').getFillStyleDefinition(this, this.style('stroke-opacity'));\r\n\t\t\t\tif (fs != null) ctx.strokeStyle = fs;\r\n\t\t\t}\r\n\t\t\telse if (this.style('stroke').hasValue()) {\r\n\t\t\t\tvar strokeStyle = this.style('stroke');\r\n\t\t\t\tif (strokeStyle.value == 'currentColor') strokeStyle.value = this.style('color').value;\r\n\t\t\t\tif (strokeStyle.value != 'inherit') ctx.strokeStyle = (strokeStyle.value == 'none' ? 'rgba(0,0,0,0)' : strokeStyle.value);\r\n\t\t\t}\r\n\t\t\tif (this.style('stroke-opacity').hasValue()) {\r\n\t\t\t\tvar strokeStyle = new svg.Property('stroke', ctx.strokeStyle);\r\n\t\t\t\tstrokeStyle = strokeStyle.addOpacity(this.style('stroke-opacity'));\r\n\t\t\t\tctx.strokeStyle = strokeStyle.value;\r\n\t\t\t}\r\n\t\t\tif (this.style('stroke-width').hasValue()) {\r\n\t\t\t\tvar newLineWidth = this.style('stroke-width').toPixels();\r\n\t\t\t\tctx.lineWidth = newLineWidth == 0 ? 0.001 : newLineWidth; // browsers don't respect 0\r\n\t\t }\r\n\t\t\tif (this.style('stroke-linecap').hasValue()) ctx.lineCap = this.style('stroke-linecap').value;\r\n\t\t\tif (this.style('stroke-linejoin').hasValue()) ctx.lineJoin = this.style('stroke-linejoin').value;\r\n\t\t\tif (this.style('stroke-miterlimit').hasValue()) ctx.miterLimit = this.style('stroke-miterlimit').value;\r\n\t\t\tif (this.style('stroke-dasharray').hasValue() && this.style('stroke-dasharray').value != 'none') {\r\n\t\t\t\tvar gaps = svg.ToNumberArray(this.style('stroke-dasharray').value);\r\n\t\t\t\tif (typeof ctx.setLineDash != 'undefined') { ctx.setLineDash(gaps); }\r\n\t\t\t\telse if (typeof ctx.webkitLineDash != 'undefined') { ctx.webkitLineDash = gaps; }\r\n\t\t\t\telse if (typeof ctx.mozDash != 'undefined' && !(gaps.length==1 && gaps[0]==0)) { ctx.mozDash = gaps; }\r\n\r\n\t\t\t\tvar offset = this.style('stroke-dashoffset').numValueOrDefault(1);\r\n\t\t\t\tif (typeof ctx.lineDashOffset != 'undefined') { ctx.lineDashOffset = offset; }\r\n\t\t\t\telse if (typeof ctx.webkitLineDashOffset != 'undefined') { ctx.webkitLineDashOffset = offset; }\r\n\t\t\t\telse if (typeof ctx.mozDashOffset != 'undefined') { ctx.mozDashOffset = offset; }\r\n\t\t\t}\r\n\r\n\t\t\t// font\r\n\t\t\tif (typeof ctx.font != 'undefined') {\r\n\t\t\t\tctx.font = svg.Font.CreateFont(\r\n\t\t\t\t\tthis.style('font-style').value,\r\n\t\t\t\t\tthis.style('font-variant').value,\r\n\t\t\t\t\tthis.style('font-weight').value,\r\n\t\t\t\t\tthis.style('font-size').hasValue() ? this.style('font-size').toPixels() + 'px' : '',\r\n\t\t\t\t\tthis.style('font-family').value).toString();\r\n\t\t\t}\r\n\r\n\t\t\t// transform\r\n\t\t\tif (this.style('transform', false, true).hasValue()) {\r\n\t\t\t\tvar transform = new svg.Transform(this.style('transform', false, true).value);\r\n\t\t\t\ttransform.apply(ctx);\r\n\t\t\t}\r\n\r\n\t\t\t// clip\r\n\t\t\tif (this.style('clip-path', false, true).hasValue()) {\r\n\t\t\t\tvar clip = this.style('clip-path', false, true).getDefinition();\r\n\t\t\t\tif (clip != null) clip.apply(ctx);\r\n\t\t\t}\r\n\r\n\t\t\t// opacity\r\n\t\t\tif (this.style('opacity').hasValue()) {\r\n\t\t\t\tctx.globalAlpha = this.style('opacity').numValue();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tsvg.Element.RenderedElementBase.prototype = new svg.Element.ElementBase;\r\n\r\n\tsvg.Element.PathElementBase = function(node) {\r\n\t\tthis.base = svg.Element.RenderedElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.path = function(ctx) {\r\n\t\t\tif (ctx != null) ctx.beginPath();\r\n\t\t\treturn new svg.BoundingBox();\r\n\t\t}\r\n\r\n\t\tthis.renderChildren = function(ctx) {\r\n\t\t\tthis.path(ctx);\r\n\t\t\tsvg.Mouse.checkPath(this, ctx);\r\n\t\t\tif (ctx.fillStyle != '') {\r\n\t\t\t\tif (this.style('fill-rule').valueOrDefault('inherit') != 'inherit') { ctx.fill(this.style('fill-rule').value); }\r\n\t\t\t\telse { ctx.fill(); }\r\n\t\t\t}\r\n\t\t\tif (ctx.strokeStyle != '') ctx.stroke();\r\n\r\n\t\t\tvar markers = this.getMarkers();\r\n\t\t\tif (markers != null) {\r\n\t\t\t\tif (this.style('marker-start').isUrlDefinition()) {\r\n\t\t\t\t\tvar marker = this.style('marker-start').getDefinition();\r\n\t\t\t\t\tmarker.render(ctx, markers[0][0], markers[0][1]);\r\n\t\t\t\t}\r\n\t\t\t\tif (this.style('marker-mid').isUrlDefinition()) {\r\n\t\t\t\t\tvar marker = this.style('marker-mid').getDefinition();\r\n\t\t\t\t\tfor (var i=1;i<markers.length-1;i++) {\r\n\t\t\t\t\t\tmarker.render(ctx, markers[i][0], markers[i][1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (this.style('marker-end').isUrlDefinition()) {\r\n\t\t\t\t\tvar marker = this.style('marker-end').getDefinition();\r\n\t\t\t\t\tmarker.render(ctx, markers[markers.length-1][0], markers[markers.length-1][1]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.getBoundingBox = function() {\r\n\t\t\treturn this.path();\r\n\t\t}\r\n\r\n\t\tthis.getMarkers = function() {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}\r\n\tsvg.Element.PathElementBase.prototype = new svg.Element.RenderedElementBase;\r\n\r\n\t// svg element\r\n\tsvg.Element.svg = function(node) {\r\n\t\tthis.base = svg.Element.RenderedElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.baseClearContext = this.clearContext;\r\n\t\tthis.clearContext = function(ctx) {\r\n\t\t\tthis.baseClearContext(ctx);\r\n\t\t\tsvg.ViewPort.RemoveCurrent();\r\n\t\t}\r\n\r\n\t\tthis.baseSetContext = this.setContext;\r\n\t\tthis.setContext = function(ctx) {\r\n\t\t\t// initial values and defaults\r\n\t\t\tctx.strokeStyle = 'rgba(0,0,0,0)';\r\n\t\t\tctx.lineCap = 'butt';\r\n\t\t\tctx.lineJoin = 'miter';\r\n\t\t\tctx.miterLimit = 4;\r\n\t\t\tif (typeof ctx.font != 'undefined' && typeof window.getComputedStyle != 'undefined') {\r\n\t\t\t\tctx.font = window.getComputedStyle(ctx.canvas).getPropertyValue('font');\r\n\t\t\t}\r\n\r\n\t\t\tthis.baseSetContext(ctx);\r\n\r\n\t\t\t// create new view port\r\n\t\t\tif (!this.attribute('x').hasValue()) this.attribute('x', true).value = 0;\r\n\t\t\tif (!this.attribute('y').hasValue()) this.attribute('y', true).value = 0;\r\n\t\t\tctx.translate(this.attribute('x').toPixels('x'), this.attribute('y').toPixels('y'));\r\n\r\n\t\t\tvar width = svg.ViewPort.width();\r\n\t\t\tvar height = svg.ViewPort.height();\r\n\r\n\t\t\tif (!this.attribute('width').hasValue()) this.attribute('width', true).value = '100%';\r\n\t\t\tif (!this.attribute('height').hasValue()) this.attribute('height', true).value = '100%';\r\n\t\t\tif (typeof this.root == 'undefined') {\r\n\t\t\t\twidth = this.attribute('width').toPixels('x');\r\n\t\t\t\theight = this.attribute('height').toPixels('y');\r\n\r\n\t\t\t\tvar x = 0;\r\n\t\t\t\tvar y = 0;\r\n\t\t\t\tif (this.attribute('refX').hasValue() && this.attribute('refY').hasValue()) {\r\n\t\t\t\t\tx = -this.attribute('refX').toPixels('x');\r\n\t\t\t\t\ty = -this.attribute('refY').toPixels('y');\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (this.attribute('overflow').valueOrDefault('hidden') != 'visible') {\r\n\t\t\t\t\tctx.beginPath();\r\n\t\t\t\t\tctx.moveTo(x, y);\r\n\t\t\t\t\tctx.lineTo(width, y);\r\n\t\t\t\t\tctx.lineTo(width, height);\r\n\t\t\t\t\tctx.lineTo(x, height);\r\n\t\t\t\t\tctx.closePath();\r\n\t\t\t\t\tctx.clip();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsvg.ViewPort.SetCurrent(width, height);\r\n\r\n\t\t\t// viewbox\r\n\t\t\tif (this.attribute('viewBox').hasValue()) {\r\n\t\t\t\tvar viewBox = svg.ToNumberArray(this.attribute('viewBox').value);\r\n\t\t\t\tvar minX = viewBox[0];\r\n\t\t\t\tvar minY = viewBox[1];\r\n\t\t\t\twidth = viewBox[2];\r\n\t\t\t\theight = viewBox[3];\r\n\r\n\t\t\t\tsvg.AspectRatio(ctx,\r\n\t\t\t\t\t\t\t\tthis.attribute('preserveAspectRatio').value,\r\n\t\t\t\t\t\t\t\tsvg.ViewPort.width(),\r\n\t\t\t\t\t\t\t\twidth,\r\n\t\t\t\t\t\t\t\tsvg.ViewPort.height(),\r\n\t\t\t\t\t\t\t\theight,\r\n\t\t\t\t\t\t\t\tminX,\r\n\t\t\t\t\t\t\t\tminY,\r\n\t\t\t\t\t\t\t\tthis.attribute('refX').value,\r\n\t\t\t\t\t\t\t\tthis.attribute('refY').value);\r\n\r\n\t\t\t\tsvg.ViewPort.RemoveCurrent();\r\n\t\t\t\tsvg.ViewPort.SetCurrent(viewBox[2], viewBox[3]);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tsvg.Element.svg.prototype = new svg.Element.RenderedElementBase;\r\n\r\n\t// rect element\r\n\tsvg.Element.rect = function(node) {\r\n\t\tthis.base = svg.Element.PathElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.path = function(ctx) {\r\n\t\t\tvar x = this.attribute('x').toPixels('x');\r\n\t\t\tvar y = this.attribute('y').toPixels('y');\r\n\t\t\tvar width = this.attribute('width').toPixels('x');\r\n\t\t\tvar height = this.attribute('height').toPixels('y');\r\n\t\t\tvar rx = this.attribute('rx').toPixels('x');\r\n\t\t\tvar ry = this.attribute('ry').toPixels('y');\r\n\t\t\tif (this.attribute('rx').hasValue() && !this.attribute('ry').hasValue()) ry = rx;\r\n\t\t\tif (this.attribute('ry').hasValue() && !this.attribute('rx').hasValue()) rx = ry;\r\n\t\t\trx = Math.min(rx, width / 2.0);\r\n\t\t\try = Math.min(ry, height / 2.0);\r\n\t\t\tif (ctx != null) {\r\n\t\t\t\tctx.beginPath();\r\n\t\t\t\tctx.moveTo(x + rx, y);\r\n\t\t\t\tctx.lineTo(x + width - rx, y);\r\n\t\t\t\tctx.quadraticCurveTo(x + width, y, x + width, y + ry)\r\n\t\t\t\tctx.lineTo(x + width, y + height - ry);\r\n\t\t\t\tctx.quadraticCurveTo(x + width, y + height, x + width - rx, y + height)\r\n\t\t\t\tctx.lineTo(x + rx, y + height);\r\n\t\t\t\tctx.quadraticCurveTo(x, y + height, x, y + height - ry)\r\n\t\t\t\tctx.lineTo(x, y + ry);\r\n\t\t\t\tctx.quadraticCurveTo(x, y, x + rx, y)\r\n\t\t\t\tctx.closePath();\r\n\t\t\t}\r\n\r\n\t\t\treturn new svg.BoundingBox(x, y, x + width, y + height);\r\n\t\t}\r\n\t}\r\n\tsvg.Element.rect.prototype = new svg.Element.PathElementBase;\r\n\r\n\t// circle element\r\n\tsvg.Element.circle = function(node) {\r\n\t\tthis.base = svg.Element.PathElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.path = function(ctx) {\r\n\t\t\tvar cx = this.attribute('cx').toPixels('x');\r\n\t\t\tvar cy = this.attribute('cy').toPixels('y');\r\n\t\t\tvar r = this.attribute('r').toPixels();\r\n\r\n\t\t\tif (ctx != null) {\r\n\t\t\t\tctx.beginPath();\r\n\t\t\t\tctx.arc(cx, cy, r, 0, Math.PI * 2, true);\r\n\t\t\t\tctx.closePath();\r\n\t\t\t}\r\n\r\n\t\t\treturn new svg.BoundingBox(cx - r, cy - r, cx + r, cy + r);\r\n\t\t}\r\n\t}\r\n\tsvg.Element.circle.prototype = new svg.Element.PathElementBase;\r\n\r\n\t// ellipse element\r\n\tsvg.Element.ellipse = function(node) {\r\n\t\tthis.base = svg.Element.PathElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.path = function(ctx) {\r\n\t\t\tvar KAPPA = 4 * ((Math.sqrt(2) - 1) / 3);\r\n\t\t\tvar rx = this.attribute('rx').toPixels('x');\r\n\t\t\tvar ry = this.attribute('ry').toPixels('y');\r\n\t\t\tvar cx = this.attribute('cx').toPixels('x');\r\n\t\t\tvar cy = this.attribute('cy').toPixels('y');\r\n\r\n\t\t\tif (ctx != null) {\r\n\t\t\t\tctx.beginPath();\r\n\t\t\t\tctx.moveTo(cx, cy - ry);\r\n\t\t\t\tctx.bezierCurveTo(cx + (KAPPA * rx), cy - ry, cx + rx, cy - (KAPPA * ry), cx + rx, cy);\r\n\t\t\t\tctx.bezierCurveTo(cx + rx, cy + (KAPPA * ry), cx + (KAPPA * rx), cy + ry, cx, cy + ry);\r\n\t\t\t\tctx.bezierCurveTo(cx - (KAPPA * rx), cy + ry, cx - rx, cy + (KAPPA * ry), cx - rx, cy);\r\n\t\t\t\tctx.bezierCurveTo(cx - rx, cy - (KAPPA * ry), cx - (KAPPA * rx), cy - ry, cx, cy - ry);\r\n\t\t\t\tctx.closePath();\r\n\t\t\t}\r\n\r\n\t\t\treturn new svg.BoundingBox(cx - rx, cy - ry, cx + rx, cy + ry);\r\n\t\t}\r\n\t}\r\n\tsvg.Element.ellipse.prototype = new svg.Element.PathElementBase;\r\n\r\n\t// line element\r\n\tsvg.Element.line = function(node) {\r\n\t\tthis.base = svg.Element.PathElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.getPoints = function() {\r\n\t\t\treturn [\r\n\t\t\t\tnew svg.Point(this.attribute('x1').toPixels('x'), this.attribute('y1').toPixels('y')),\r\n\t\t\t\tnew svg.Point(this.attribute('x2').toPixels('x'), this.attribute('y2').toPixels('y'))];\r\n\t\t}\r\n\r\n\t\tthis.path = function(ctx) {\r\n\t\t\tvar points = this.getPoints();\r\n\r\n\t\t\tif (ctx != null) {\r\n\t\t\t\tctx.beginPath();\r\n\t\t\t\tctx.moveTo(points[0].x, points[0].y);\r\n\t\t\t\tctx.lineTo(points[1].x, points[1].y);\r\n\t\t\t}\r\n\r\n\t\t\treturn new svg.BoundingBox(points[0].x, points[0].y, points[1].x, points[1].y);\r\n\t\t}\r\n\r\n\t\tthis.getMarkers = function() {\r\n\t\t\tvar points = this.getPoints();\r\n\t\t\tvar a = points[0].angleTo(points[1]);\r\n\t\t\treturn [[points[0], a], [points[1], a]];\r\n\t\t}\r\n\t}\r\n\tsvg.Element.line.prototype = new svg.Element.PathElementBase;\r\n\r\n\t// polyline element\r\n\tsvg.Element.polyline = function(node) {\r\n\t\tthis.base = svg.Element.PathElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.points = svg.CreatePath(this.attribute('points').value);\r\n\t\tthis.path = function(ctx) {\r\n\t\t\tvar bb = new svg.BoundingBox(this.points[0].x, this.points[0].y);\r\n\t\t\tif (ctx != null) {\r\n\t\t\t\tctx.beginPath();\r\n\t\t\t\tctx.moveTo(this.points[0].x, this.points[0].y);\r\n\t\t\t}\r\n\t\t\tfor (var i=1; i<this.points.length; i++) {\r\n\t\t\t\tbb.addPoint(this.points[i].x, this.points[i].y);\r\n\t\t\t\tif (ctx != null) ctx.lineTo(this.points[i].x, this.points[i].y);\r\n\t\t\t}\r\n\t\t\treturn bb;\r\n\t\t}\r\n\r\n\t\tthis.getMarkers = function() {\r\n\t\t\tvar markers = [];\r\n\t\t\tfor (var i=0; i<this.points.length - 1; i++) {\r\n\t\t\t\tmarkers.push([this.points[i], this.points[i].angleTo(this.points[i+1])]);\r\n\t\t\t}\r\n\t\t\tif (markers.length > 0) {\r\n\t\t\t\tmarkers.push([this.points[this.points.length-1], markers[markers.length-1][1]]);\r\n\t\t\t}\r\n\t\t\treturn markers;\r\n\t\t}\r\n\t}\r\n\tsvg.Element.polyline.prototype = new svg.Element.PathElementBase;\r\n\r\n\t// polygon element\r\n\tsvg.Element.polygon = function(node) {\r\n\t\tthis.base = svg.Element.polyline;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.basePath = this.path;\r\n\t\tthis.path = function(ctx) {\r\n\t\t\tvar bb = this.basePath(ctx);\r\n\t\t\tif (ctx != null) {\r\n\t\t\t\tctx.lineTo(this.points[0].x, this.points[0].y);\r\n\t\t\t\tctx.closePath();\r\n\t\t\t}\r\n\t\t\treturn bb;\r\n\t\t}\r\n\t}\r\n\tsvg.Element.polygon.prototype = new svg.Element.polyline;\r\n\r\n\t// path element\r\n\tsvg.Element.path = function(node) {\r\n\t\tthis.base = svg.Element.PathElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tvar d = this.attribute('d').value;\r\n\t\t// TODO: convert to real lexer based on http://www.w3.org/TR/SVG11/paths.html#PathDataBNF\r\n\t\td = d.replace(/,/gm,' '); // get rid of all commas\r\n\t\t// As the end of a match can also be the start of the next match, we need to run this replace twice.\r\n\t\tfor(var i=0; i<2; i++)\r\n\t\t\td = d.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\\s])/gm,'$1 $2'); // suffix commands with spaces\r\n\t\td = d.replace(/([^\\s])([MmZzLlHhVvCcSsQqTtAa])/gm,'$1 $2'); // prefix commands with spaces\r\n\t\td = d.replace(/([0-9])([+\\-])/gm,'$1 $2'); // separate digits on +- signs\r\n\t\t// Again, we need to run this twice to find all occurances\r\n\t\tfor(var i=0; i<2; i++)\r\n\t\t\td = d.replace(/(\\.[0-9]*)(\\.)/gm,'$1 $2'); // separate digits when they start with a comma\r\n\t\td = d.replace(/([Aa](\\s+[0-9]+){3})\\s+([01])\\s*([01])/gm,'$1 $3 $4 '); // shorthand elliptical arc path syntax\r\n\t\td = svg.compressSpaces(d); // compress multiple spaces\r\n\t\td = svg.trim(d);\r\n\t\tthis.PathParser = new (function(d) {\r\n\t\t\tthis.tokens = d.split(' ');\r\n\r\n\t\t\tthis.reset = function() {\r\n\t\t\t\tthis.i = -1;\r\n\t\t\t\tthis.command = '';\r\n\t\t\t\tthis.previousCommand = '';\r\n\t\t\t\tthis.start = new svg.Point(0, 0);\r\n\t\t\t\tthis.control = new svg.Point(0, 0);\r\n\t\t\t\tthis.current = new svg.Point(0, 0);\r\n\t\t\t\tthis.points = [];\r\n\t\t\t\tthis.angles = [];\r\n\t\t\t}\r\n\r\n\t\t\tthis.isEnd = function() {\r\n\t\t\t\treturn this.i >= this.tokens.length - 1;\r\n\t\t\t}\r\n\r\n\t\t\tthis.isCommandOrEnd = function() {\r\n\t\t\t\tif (this.isEnd()) return true;\r\n\t\t\t\treturn this.tokens[this.i + 1].match(/^[A-Za-z]$/) != null;\r\n\t\t\t}\r\n\r\n\t\t\tthis.isRelativeCommand = function() {\r\n\t\t\t\tswitch(this.command)\r\n\t\t\t\t{\r\n\t\t\t\t\tcase 'm':\r\n\t\t\t\t\tcase 'l':\r\n\t\t\t\t\tcase 'h':\r\n\t\t\t\t\tcase 'v':\r\n\t\t\t\t\tcase 'c':\r\n\t\t\t\t\tcase 's':\r\n\t\t\t\t\tcase 'q':\r\n\t\t\t\t\tcase 't':\r\n\t\t\t\t\tcase 'a':\r\n\t\t\t\t\tcase 'z':\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tthis.getToken = function() {\r\n\t\t\t\tthis.i++;\r\n\t\t\t\treturn this.tokens[this.i];\r\n\t\t\t}\r\n\r\n\t\t\tthis.getScalar = function() {\r\n\t\t\t\treturn parseFloat(this.getToken());\r\n\t\t\t}\r\n\r\n\t\t\tthis.nextCommand = function() {\r\n\t\t\t\tthis.previousCommand = this.command;\r\n\t\t\t\tthis.command = this.getToken();\r\n\t\t\t}\r\n\r\n\t\t\tthis.getPoint = function() {\r\n\t\t\t\tvar p = new svg.Point(this.getScalar(), this.getScalar());\r\n\t\t\t\treturn this.makeAbsolute(p);\r\n\t\t\t}\r\n\r\n\t\t\tthis.getAsControlPoint = function() {\r\n\t\t\t\tvar p = this.getPoint();\r\n\t\t\t\tthis.control = p;\r\n\t\t\t\treturn p;\r\n\t\t\t}\r\n\r\n\t\t\tthis.getAsCurrentPoint = function() {\r\n\t\t\t\tvar p = this.getPoint();\r\n\t\t\t\tthis.current = p;\r\n\t\t\t\treturn p;\r\n\t\t\t}\r\n\r\n\t\t\tthis.getReflectedControlPoint = function() {\r\n\t\t\t\tif (this.previousCommand.toLowerCase() != 'c' &&\r\n\t\t\t\t this.previousCommand.toLowerCase() != 's' &&\r\n\t\t\t\t\tthis.previousCommand.toLowerCase() != 'q' &&\r\n\t\t\t\t\tthis.previousCommand.toLowerCase() != 't' ){\r\n\t\t\t\t\treturn this.current;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// reflect point\r\n\t\t\t\tvar p = new svg.Point(2 * this.current.x - this.control.x, 2 * this.current.y - this.control.y);\r\n\t\t\t\treturn p;\r\n\t\t\t}\r\n\r\n\t\t\tthis.makeAbsolute = function(p) {\r\n\t\t\t\tif (this.isRelativeCommand()) {\r\n\t\t\t\t\tp.x += this.current.x;\r\n\t\t\t\t\tp.y += this.current.y;\r\n\t\t\t\t}\r\n\t\t\t\treturn p;\r\n\t\t\t}\r\n\r\n\t\t\tthis.addMarker = function(p, from, priorTo) {\r\n\t\t\t\t// if the last angle isn't filled in because we didn't have this point yet ...\r\n\t\t\t\tif (priorTo != null && this.angles.length > 0 && this.angles[this.angles.length-1] == null) {\r\n\t\t\t\t\tthis.angles[this.angles.length-1] = this.points[this.points.length-1].angleTo(priorTo);\r\n\t\t\t\t}\r\n\t\t\t\tthis.addMarkerAngle(p, from == null ? null : from.angleTo(p));\r\n\t\t\t}\r\n\r\n\t\t\tthis.addMarkerAngle = function(p, a) {\r\n\t\t\t\tthis.points.push(p);\r\n\t\t\t\tthis.angles.push(a);\r\n\t\t\t}\r\n\r\n\t\t\tthis.getMarkerPoints = function() { return this.points; }\r\n\t\t\tthis.getMarkerAngles = function() {\r\n\t\t\t\tfor (var i=0; i<this.angles.length; i++) {\r\n\t\t\t\t\tif (this.angles[i] == null) {\r\n\t\t\t\t\t\tfor (var j=i+1; j<this.angles.length; j++) {\r\n\t\t\t\t\t\t\tif (this.angles[j] != null) {\r\n\t\t\t\t\t\t\t\tthis.angles[i] = this.angles[j];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn this.angles;\r\n\t\t\t}\r\n\t\t})(d);\r\n\r\n\t\tthis.path = function(ctx) {\r\n\t\t\tvar pp = this.PathParser;\r\n\t\t\tpp.reset();\r\n\r\n\t\t\tvar bb = new svg.BoundingBox();\r\n\t\t\tif (ctx != null) ctx.beginPath();\r\n\t\t\twhile (!pp.isEnd()) {\r\n\t\t\t\tpp.nextCommand();\r\n\t\t\t\tswitch (pp.command) {\r\n\t\t\t\tcase 'M':\r\n\t\t\t\tcase 'm':\r\n\t\t\t\t\tvar p = pp.getAsCurrentPoint();\r\n\t\t\t\t\tpp.addMarker(p);\r\n\t\t\t\t\tbb.addPoint(p.x, p.y);\r\n\t\t\t\t\tif (ctx != null) ctx.moveTo(p.x, p.y);\r\n\t\t\t\t\tpp.start = pp.current;\r\n\t\t\t\t\twhile (!pp.isCommandOrEnd()) {\r\n\t\t\t\t\t\tvar p = pp.getAsCurrentPoint();\r\n\t\t\t\t\t\tpp.addMarker(p, pp.start);\r\n\t\t\t\t\t\tbb.addPoint(p.x, p.y);\r\n\t\t\t\t\t\tif (ctx != null) ctx.lineTo(p.x, p.y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'L':\r\n\t\t\t\tcase 'l':\r\n\t\t\t\t\twhile (!pp.isCommandOrEnd()) {\r\n\t\t\t\t\t\tvar c = pp.current;\r\n\t\t\t\t\t\tvar p = pp.getAsCurrentPoint();\r\n\t\t\t\t\t\tpp.addMarker(p, c);\r\n\t\t\t\t\t\tbb.addPoint(p.x, p.y);\r\n\t\t\t\t\t\tif (ctx != null) ctx.lineTo(p.x, p.y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'H':\r\n\t\t\t\tcase 'h':\r\n\t\t\t\t\twhile (!pp.isCommandOrEnd()) {\r\n\t\t\t\t\t\tvar newP = new svg.Point((pp.isRelativeCommand() ? pp.current.x : 0) + pp.getScalar(), pp.current.y);\r\n\t\t\t\t\t\tpp.addMarker(newP, pp.current);\r\n\t\t\t\t\t\tpp.current = newP;\r\n\t\t\t\t\t\tbb.addPoint(pp.current.x, pp.current.y);\r\n\t\t\t\t\t\tif (ctx != null) ctx.lineTo(pp.current.x, pp.current.y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'V':\r\n\t\t\t\tcase 'v':\r\n\t\t\t\t\twhile (!pp.isCommandOrEnd()) {\r\n\t\t\t\t\t\tvar newP = new svg.Point(pp.current.x, (pp.isRelativeCommand() ? pp.current.y : 0) + pp.getScalar());\r\n\t\t\t\t\t\tpp.addMarker(newP, pp.current);\r\n\t\t\t\t\t\tpp.current = newP;\r\n\t\t\t\t\t\tbb.addPoint(pp.current.x, pp.current.y);\r\n\t\t\t\t\t\tif (ctx != null) ctx.lineTo(pp.current.x, pp.current.y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'C':\r\n\t\t\t\tcase 'c':\r\n\t\t\t\t\twhile (!pp.isCommandOrEnd()) {\r\n\t\t\t\t\t\tvar curr = pp.current;\r\n\t\t\t\t\t\tvar p1 = pp.getPoint();\r\n\t\t\t\t\t\tvar cntrl = pp.getAsControlPoint();\r\n\t\t\t\t\t\tvar cp = pp.getAsCurrentPoint();\r\n\t\t\t\t\t\tpp.addMarker(cp, cntrl, p1);\r\n\t\t\t\t\t\tbb.addBezierCurve(curr.x, curr.y, p1.x, p1.y, cntrl.x, cntrl.y, cp.x, cp.y);\r\n\t\t\t\t\t\tif (ctx != null) ctx.bezierCurveTo(p1.x, p1.y, cntrl.x, cntrl.y, cp.x, cp.y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'S':\r\n\t\t\t\tcase 's':\r\n\t\t\t\t\twhile (!pp.isCommandOrEnd()) {\r\n\t\t\t\t\t\tvar curr = pp.current;\r\n\t\t\t\t\t\tvar p1 = pp.getReflectedControlPoint();\r\n\t\t\t\t\t\tvar cntrl = pp.getAsControlPoint();\r\n\t\t\t\t\t\tvar cp = pp.getAsCurrentPoint();\r\n\t\t\t\t\t\tpp.addMarker(cp, cntrl, p1);\r\n\t\t\t\t\t\tbb.addBezierCurve(curr.x, curr.y, p1.x, p1.y, cntrl.x, cntrl.y, cp.x, cp.y);\r\n\t\t\t\t\t\tif (ctx != null) ctx.bezierCurveTo(p1.x, p1.y, cntrl.x, cntrl.y, cp.x, cp.y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'Q':\r\n\t\t\t\tcase 'q':\r\n\t\t\t\t\twhile (!pp.isCommandOrEnd()) {\r\n\t\t\t\t\t\tvar curr = pp.current;\r\n\t\t\t\t\t\tvar cntrl = pp.getAsControlPoint();\r\n\t\t\t\t\t\tvar cp = pp.getAsCurrentPoint();\r\n\t\t\t\t\t\tpp.addMarker(cp, cntrl, cntrl);\r\n\t\t\t\t\t\tbb.addQuadraticCurve(curr.x, curr.y, cntrl.x, cntrl.y, cp.x, cp.y);\r\n\t\t\t\t\t\tif (ctx != null) ctx.quadraticCurveTo(cntrl.x, cntrl.y, cp.x, cp.y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'T':\r\n\t\t\t\tcase 't':\r\n\t\t\t\t\twhile (!pp.isCommandOrEnd()) {\r\n\t\t\t\t\t\tvar curr = pp.current;\r\n\t\t\t\t\t\tvar cntrl = pp.getReflectedControlPoint();\r\n\t\t\t\t\t\tpp.control = cntrl;\r\n\t\t\t\t\t\tvar cp = pp.getAsCurrentPoint();\r\n\t\t\t\t\t\tpp.addMarker(cp, cntrl, cntrl);\r\n\t\t\t\t\t\tbb.addQuadraticCurve(curr.x, curr.y, cntrl.x, cntrl.y, cp.x, cp.y);\r\n\t\t\t\t\t\tif (ctx != null) ctx.quadraticCurveTo(cntrl.x, cntrl.y, cp.x, cp.y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'A':\r\n\t\t\t\tcase 'a':\r\n\t\t\t\t\twhile (!pp.isCommandOrEnd()) {\r\n\t\t\t\t\t var curr = pp.current;\r\n\t\t\t\t\t\tvar rx = pp.getScalar();\r\n\t\t\t\t\t\tvar ry = pp.getScalar();\r\n\t\t\t\t\t\tvar xAxisRotation = pp.getScalar() * (Math.PI / 180.0);\r\n\t\t\t\t\t\tvar largeArcFlag = pp.getScalar();\r\n\t\t\t\t\t\tvar sweepFlag = pp.getScalar();\r\n\t\t\t\t\t\tvar cp = pp.getAsCurrentPoint();\r\n\r\n\t\t\t\t\t\t// Conversion from endpoint to center parameterization\r\n\t\t\t\t\t\t// http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes\r\n\t\t\t\t\t\t// x1', y1'\r\n\t\t\t\t\t\tvar currp = new svg.Point(\r\n\t\t\t\t\t\t\tMath.cos(xAxisRotation) * (curr.x - cp.x) / 2.0 + Math.sin(xAxisRotation) * (curr.y - cp.y) / 2.0,\r\n\t\t\t\t\t\t\t-Math.sin(xAxisRotation) * (curr.x - cp.x) / 2.0 + Math.cos(xAxisRotation) * (curr.y - cp.y) / 2.0\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\t// adjust radii\r\n\t\t\t\t\t\tvar l = Math.pow(currp.x,2)/Math.pow(rx,2)+Math.pow(currp.y,2)/Math.pow(ry,2);\r\n\t\t\t\t\t\tif (l > 1) {\r\n\t\t\t\t\t\t\trx *= Math.sqrt(l);\r\n\t\t\t\t\t\t\try *= Math.sqrt(l);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// cx', cy'\r\n\t\t\t\t\t\tvar s = (largeArcFlag == sweepFlag ? -1 : 1) * Math.sqrt(\r\n\t\t\t\t\t\t\t((Math.pow(rx,2)*Math.pow(ry,2))-(Math.pow(rx,2)*Math.pow(currp.y,2))-(Math.pow(ry,2)*Math.pow(currp.x,2))) /\r\n\t\t\t\t\t\t\t(Math.pow(rx,2)*Math.pow(currp.y,2)+Math.pow(ry,2)*Math.pow(currp.x,2))\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\tif (isNaN(s)) s = 0;\r\n\t\t\t\t\t\tvar cpp = new svg.Point(s * rx * currp.y / ry, s * -ry * currp.x / rx);\r\n\t\t\t\t\t\t// cx, cy\r\n\t\t\t\t\t\tvar centp = new svg.Point(\r\n\t\t\t\t\t\t\t(curr.x + cp.x) / 2.0 + Math.cos(xAxisRotation) * cpp.x - Math.sin(xAxisRotation) * cpp.y,\r\n\t\t\t\t\t\t\t(curr.y + cp.y) / 2.0 + Math.sin(xAxisRotation) * cpp.x + Math.cos(xAxisRotation) * cpp.y\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\t// vector magnitude\r\n\t\t\t\t\t\tvar m = function(v) { return Math.sqrt(Math.pow(v[0],2) + Math.pow(v[1],2)); }\r\n\t\t\t\t\t\t// ratio between two vectors\r\n\t\t\t\t\t\tvar r = function(u, v) { return (u[0]*v[0]+u[1]*v[1]) / (m(u)*m(v)) }\r\n\t\t\t\t\t\t// angle between two vectors\r\n\t\t\t\t\t\tvar a = function(u, v) { return (u[0]*v[1] < u[1]*v[0] ? -1 : 1) * Math.acos(r(u,v)); }\r\n\t\t\t\t\t\t// initial angle\r\n\t\t\t\t\t\tvar a1 = a([1,0], [(currp.x-cpp.x)/rx,(currp.y-cpp.y)/ry]);\r\n\t\t\t\t\t\t// angle delta\r\n\t\t\t\t\t\tvar u = [(currp.x-cpp.x)/rx,(currp.y-cpp.y)/ry];\r\n\t\t\t\t\t\tvar v = [(-currp.x-cpp.x)/rx,(-currp.y-cpp.y)/ry];\r\n\t\t\t\t\t\tvar ad = a(u, v);\r\n\t\t\t\t\t\tif (r(u,v) <= -1) ad = Math.PI;\r\n\t\t\t\t\t\tif (r(u,v) >= 1) ad = 0;\r\n\r\n\t\t\t\t\t\t// for markers\r\n\t\t\t\t\t\tvar dir = 1 - sweepFlag ? 1.0 : -1.0;\r\n\t\t\t\t\t\tvar ah = a1 + dir * (ad / 2.0);\r\n\t\t\t\t\t\tvar halfWay = new svg.Point(\r\n\t\t\t\t\t\t\tcentp.x + rx * Math.cos(ah),\r\n\t\t\t\t\t\t\tcentp.y + ry * Math.sin(ah)\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\tpp.addMarkerAngle(halfWay, ah - dir * Math.PI / 2);\r\n\t\t\t\t\t\tpp.addMarkerAngle(cp, ah - dir * Math.PI);\r\n\r\n\t\t\t\t\t\tbb.addPoint(cp.x, cp.y); // TODO: this is too naive, make it better\r\n\t\t\t\t\t\tif (ctx != null) {\r\n\t\t\t\t\t\t\tvar r = rx > ry ? rx : ry;\r\n\t\t\t\t\t\t\tvar sx = rx > ry ? 1 : rx / ry;\r\n\t\t\t\t\t\t\tvar sy = rx > ry ? ry / rx : 1;\r\n\r\n\t\t\t\t\t\t\tctx.translate(centp.x, centp.y);\r\n\t\t\t\t\t\t\tctx.rotate(xAxisRotation);\r\n\t\t\t\t\t\t\tctx.scale(sx, sy);\r\n\t\t\t\t\t\t\tctx.arc(0, 0, r, a1, a1 + ad, 1 - sweepFlag);\r\n\t\t\t\t\t\t\tctx.scale(1/sx, 1/sy);\r\n\t\t\t\t\t\t\tctx.rotate(-xAxisRotation);\r\n\t\t\t\t\t\t\tctx.translate(-centp.x, -centp.y);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'Z':\r\n\t\t\t\tcase 'z':\r\n\t\t\t\t\tif (ctx != null) ctx.closePath();\r\n\t\t\t\t\tpp.current = pp.start;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn bb;\r\n\t\t}\r\n\r\n\t\tthis.getMarkers = function() {\r\n\t\t\tvar points = this.PathParser.getMarkerPoints();\r\n\t\t\tvar angles = this.PathParser.getMarkerAngles();\r\n\r\n\t\t\tvar markers = [];\r\n\t\t\tfor (var i=0; i<points.length; i++) {\r\n\t\t\t\tmarkers.push([points[i], angles[i]]);\r\n\t\t\t}\r\n\t\t\treturn markers;\r\n\t\t}\r\n\t}\r\n\tsvg.Element.path.prototype = new svg.Element.PathElementBase;\r\n\r\n\t// pattern element\r\n\tsvg.Element.pattern = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.createPattern = function(ctx, element) {\r\n\t\t\tvar width = this.attribute('width').toPixels('x', true);\r\n\t\t\tvar height = this.attribute('height').toPixels('y', true);\r\n\r\n\t\t\t// render me using a temporary svg element\r\n\t\t\tvar tempSvg = new svg.Element.svg();\r\n\t\t\ttempSvg.attributes['viewBox'] = new svg.Property('viewBox', this.attribute('viewBox').value);\r\n\t\t\ttempSvg.attributes['width'] = new svg.Property('width', width + 'px');\r\n\t\t\ttempSvg.attributes['height'] = new svg.Property('height', height + 'px');\r\n\t\t\ttempSvg.attributes['transform'] = new svg.Property('transform', this.attribute('patternTransform').value);\r\n\t\t\ttempSvg.children = this.children;\r\n\r\n\t\t\tvar c = document.createElement('canvas');\r\n\t\t\tc.width = width;\r\n\t\t\tc.height = height;\r\n\t\t\tvar cctx = c.getContext('2d');\r\n\t\t\tif (this.attribute('x').hasValue() && this.attribute('y').hasValue()) {\r\n\t\t\t\tcctx.translate(this.attribute('x').toPixels('x', true), this.attribute('y').toPixels('y', true));\r\n\t\t\t}\r\n\t\t\t// render 3x3 grid so when we transform there's no white space on edges\r\n\t\t\tfor (var x=-1; x<=1; x++) {\r\n\t\t\t\tfor (var y=-1; y<=1; y++) {\r\n\t\t\t\t\tcctx.save();\r\n\t\t\t\t\ttempSvg.attributes['x'] = new svg.Property('x', x * c.width);\r\n\t\t\t\t\ttempSvg.attributes['y'] = new svg.Property('y', y * c.height);\r\n\t\t\t\t\ttempSvg.render(cctx);\r\n\t\t\t\t\tcctx.restore();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tvar pattern = ctx.createPattern(c, 'repeat');\r\n\t\t\treturn pattern;\r\n\t\t}\r\n\t}\r\n\tsvg.Element.pattern.prototype = new svg.Element.ElementBase;\r\n\r\n\t// marker element\r\n\tsvg.Element.marker = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.baseRender = this.render;\r\n\t\tthis.render = function(ctx, point, angle) {\r\n\t\t\tctx.translate(point.x, point.y);\r\n\t\t\tif (this.attribute('orient').valueOrDefault('auto') == 'auto') ctx.rotate(angle);\r\n\t\t\tif (this.attribute('markerUnits').valueOrDefault('strokeWidth') == 'strokeWidth') ctx.scale(ctx.lineWidth, ctx.lineWidth);\r\n\t\t\tctx.save();\r\n\r\n\t\t\t// render me using a temporary svg element\r\n\t\t\tvar tempSvg = new svg.Element.svg();\r\n\t\t\ttempSvg.attributes['viewBox'] = new svg.Property('viewBox', this.attribute('viewBox').value);\r\n\t\t\ttempSvg.attributes['refX'] = new svg.Property('refX', this.attribute('refX').value);\r\n\t\t\ttempSvg.attributes['refY'] = new svg.Property('refY', this.attribute('refY').value);\r\n\t\t\ttempSvg.attributes['width'] = new svg.Property('width', this.attribute('markerWidth').value);\r\n\t\t\ttempSvg.attributes['height'] = new svg.Property('height', this.attribute('markerHeight').value);\r\n\t\t\ttempSvg.attributes['fill'] = new svg.Property('fill', this.attribute('fill').valueOrDefault('black'));\r\n\t\t\ttempSvg.attributes['stroke'] = new svg.Property('stroke', this.attribute('stroke').valueOrDefault('none'));\r\n\t\t\ttempSvg.children = this.children;\r\n\t\t\ttempSvg.render(ctx);\r\n\r\n\t\t\tctx.restore();\r\n\t\t\tif (this.attribute('markerUnits').valueOrDefault('strokeWidth') == 'strokeWidth') ctx.scale(1/ctx.lineWidth, 1/ctx.lineWidth);\r\n\t\t\tif (this.attribute('orient').valueOrDefault('auto') == 'auto') ctx.rotate(-angle);\r\n\t\t\tctx.translate(-point.x, -point.y);\r\n\t\t}\r\n\t}\r\n\tsvg.Element.marker.prototype = new svg.Element.ElementBase;\r\n\r\n\t// definitions element\r\n\tsvg.Element.defs = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.render = function(ctx) {\r\n\t\t\t// NOOP\r\n\t\t}\r\n\t}\r\n\tsvg.Element.defs.prototype = new svg.Element.ElementBase;\r\n\r\n\t// base for gradients\r\n\tsvg.Element.GradientBase = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.stops = [];\r\n\t\tfor (var i=0; i<this.children.length; i++) {\r\n\t\t\tvar child = this.children[i];\r\n\t\t\tif (child.type == 'stop') this.stops.push(child);\r\n\t\t}\r\n\r\n\t\tthis.getGradient = function() {\r\n\t\t\t// OVERRIDE ME!\r\n\t\t}\r\n\r\n\t\tthis.gradientUnits = function () {\r\n\t\t\treturn this.attribute('gradientUnits').valueOrDefault('objectBoundingBox');\r\n\t\t}\r\n\r\n\t\tthis.attributesToInherit = ['gradientUnits'];\r\n\r\n\t\tthis.inheritStopContainer = function (stopsContainer) {\r\n\t\t\tfor (var i=0; i<this.attributesToInherit.length; i++) {\r\n\t\t\t\tvar attributeToInherit = this.attributesToInherit[i];\r\n\t\t\t\tif (!this.attribute(attributeToInherit).hasValue() && stopsContainer.attribute(attributeToInherit).hasValue()) {\r\n\t\t\t\t\tthis.attribute(attributeToInherit, true).value = stopsContainer.attribute(attributeToInherit).value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.createGradient = function(ctx, element, parentOpacityProp) {\r\n\t\t\tvar stopsContainer = this;\r\n\t\t\tif (this.getHrefAttribute().hasValue()) {\r\n\t\t\t\tstopsContainer = this.getHrefAttribute().getDefinition();\r\n\t\t\t\tthis.inheritStopContainer(stopsContainer);\r\n\t\t\t}\r\n\r\n\t\t\tvar addParentOpacity = function (color) {\r\n\t\t\t\tif (parentOpacityProp.hasValue()) {\r\n\t\t\t\t\tvar p = new svg.Property('color', color);\r\n\t\t\t\t\treturn p.addOpacity(parentOpacityProp).value;\r\n\t\t\t\t}\r\n\t\t\t\treturn color;\r\n\t\t\t};\r\n\r\n\t\t\tvar g = this.getGradient(ctx, element);\r\n\t\t\tif (g == null) return addParentOpacity(stopsContainer.stops[stopsContainer.stops.length - 1].color);\r\n\t\t\tfor (var i=0; i<stopsContainer.stops.length; i++) {\r\n\t\t\t\tg.addColorStop(stopsContainer.stops[i].offset, addParentOpacity(stopsContainer.stops[i].color));\r\n\t\t\t}\r\n\r\n\t\t\tif (this.attribute('gradientTransform').hasValue()) {\r\n\t\t\t\t// render as transformed pattern on temporary canvas\r\n\t\t\t\tvar rootView = svg.ViewPort.viewPorts[0];\r\n\r\n\t\t\t\tvar rect = new svg.Element.rect();\r\n\t\t\t\trect.attributes['x'] = new svg.Property('x', -svg.MAX_VIRTUAL_PIXELS/3.0);\r\n\t\t\t\trect.attributes['y'] = new svg.Property('y', -svg.MAX_VIRTUAL_PIXELS/3.0);\r\n\t\t\t\trect.attributes['width'] = new svg.Property('width', svg.MAX_VIRTUAL_PIXELS);\r\n\t\t\t\trect.attributes['height'] = new svg.Property('height', svg.MAX_VIRTUAL_PIXELS);\r\n\r\n\t\t\t\tvar group = new svg.Element.g();\r\n\t\t\t\tgroup.attributes['transform'] = new svg.Property('transform', this.attribute('gradientTransform').value);\r\n\t\t\t\tgroup.children = [ rect ];\r\n\r\n\t\t\t\tvar tempSvg = new svg.Element.svg();\r\n\t\t\t\ttempSvg.attributes['x'] = new svg.Property('x', 0);\r\n\t\t\t\ttempSvg.attributes['y'] = new svg.Property('y', 0);\r\n\t\t\t\ttempSvg.attributes['width'] = new svg.Property('width', rootView.width);\r\n\t\t\t\ttempSvg.attributes['height'] = new svg.Property('height', rootView.height);\r\n\t\t\t\ttempSvg.children = [ group ];\r\n\r\n\t\t\t\tvar c = document.createElement('canvas');\r\n\t\t\t\tc.width = rootView.width;\r\n\t\t\t\tc.height = rootView.height;\r\n\t\t\t\tvar tempCtx = c.getContext('2d');\r\n\t\t\t\ttempCtx.fillStyle = g;\r\n\t\t\t\ttempSvg.render(tempCtx);\r\n\t\t\t\treturn tempCtx.createPattern(c, 'no-repeat');\r\n\t\t\t}\r\n\r\n\t\t\treturn g;\r\n\t\t}\r\n\t}\r\n\tsvg.Element.GradientBase.prototype = new svg.Element.ElementBase;\r\n\r\n\t// linear gradient element\r\n\tsvg.Element.linearGradient = function(node) {\r\n\t\tthis.base = svg.Element.GradientBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.attributesToInherit.push('x1');\r\n\t\tthis.attributesToInherit.push('y1');\r\n\t\tthis.attributesToInherit.push('x2');\r\n\t\tthis.attributesToInherit.push('y2');\r\n\r\n\t\tthis.getGradient = function(ctx, element) {\r\n\t\t\tvar bb = this.gradientUnits() == 'objectBoundingBox' ? element.getBoundingBox() : null;\r\n\r\n\t\t\tif (!this.attribute('x1').hasValue()\r\n\t\t\t && !this.attribute('y1').hasValue()\r\n\t\t\t && !this.attribute('x2').hasValue()\r\n\t\t\t && !this.attribute('y2').hasValue()) {\r\n\t\t\t\tthis.attribute('x1', true).value = 0;\r\n\t\t\t\tthis.attribute('y1', true).value = 0;\r\n\t\t\t\tthis.attribute('x2', true).value = 1;\r\n\t\t\t\tthis.attribute('y2', true).value = 0;\r\n\t\t\t }\r\n\r\n\t\t\tvar x1 = (this.gradientUnits() == 'objectBoundingBox'\r\n\t\t\t\t? bb.x() + bb.width() * this.attribute('x1').numValue()\r\n\t\t\t\t: this.attribute('x1').toPixels('x'));\r\n\t\t\tvar y1 = (this.gradientUnits() == 'objectBoundingBox'\r\n\t\t\t\t? bb.y() + bb.height() * this.attribute('y1').numValue()\r\n\t\t\t\t: this.attribute('y1').toPixels('y'));\r\n\t\t\tvar x2 = (this.gradientUnits() == 'objectBoundingBox'\r\n\t\t\t\t? bb.x() + bb.width() * this.attribute('x2').numValue()\r\n\t\t\t\t: this.attribute('x2').toPixels('x'));\r\n\t\t\tvar y2 = (this.gradientUnits() == 'objectBoundingBox'\r\n\t\t\t\t? bb.y() + bb.height() * this.attribute('y2').numValue()\r\n\t\t\t\t: this.attribute('y2').toPixels('y'));\r\n\r\n\t\t\tif (x1 == x2 && y1 == y2) return null;\r\n\t\t\treturn ctx.createLinearGradient(x1, y1, x2, y2);\r\n\t\t}\r\n\t}\r\n\tsvg.Element.linearGradient.prototype = new svg.Element.GradientBase;\r\n\r\n\t// radial gradient element\r\n\tsvg.Element.radialGradient = function(node) {\r\n\t\tthis.base = svg.Element.GradientBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.attributesToInherit.push('cx');\r\n\t\tthis.attributesToInherit.push('cy');\r\n\t\tthis.attributesToInherit.push('r');\r\n\t\tthis.attributesToInherit.push('fx');\r\n\t\tthis.attributesToInherit.push('fy');\r\n\r\n\t\tthis.getGradient = function(ctx, element) {\r\n\t\t\tvar bb = element.getBoundingBox();\r\n\r\n\t\t\tif (!this.attribute('cx').hasValue()) this.attribute('cx', true).value = '50%';\r\n\t\t\tif (!this.attribute('cy').hasValue()) this.attribute('cy', true).value = '50%';\r\n\t\t\tif (!this.attribute('r').hasValue()) this.attribute('r', true).value = '50%';\r\n\r\n\t\t\tvar cx = (this.gradientUnits() == 'objectBoundingBox'\r\n\t\t\t\t? bb.x() + bb.width() * this.attribute('cx').numValue()\r\n\t\t\t\t: this.attribute('cx').toPixels('x'));\r\n\t\t\tvar cy = (this.gradientUnits() == 'objectBoundingBox'\r\n\t\t\t\t? bb.y() + bb.height() * this.attribute('cy').numValue()\r\n\t\t\t\t: this.attribute('cy').toPixels('y'));\r\n\r\n\t\t\tvar fx = cx;\r\n\t\t\tvar fy = cy;\r\n\t\t\tif (this.attribute('fx').hasValue()) {\r\n\t\t\t\tfx = (this.gradientUnits() == 'objectBoundingBox'\r\n\t\t\t\t? bb.x() + bb.width() * this.attribute('fx').numValue()\r\n\t\t\t\t: this.attribute('fx').toPixels('x'));\r\n\t\t\t}\r\n\t\t\tif (this.attribute('fy').hasValue()) {\r\n\t\t\t\tfy = (this.gradientUnits() == 'objectBoundingBox'\r\n\t\t\t\t? bb.y() + bb.height() * this.attribute('fy').numValue()\r\n\t\t\t\t: this.attribute('fy').toPixels('y'));\r\n\t\t\t}\r\n\r\n\t\t\tvar r = (this.gradientUnits() == 'objectBoundingBox'\r\n\t\t\t\t? (bb.width() + bb.height()) / 2.0 * this.attribute('r').numValue()\r\n\t\t\t\t: this.attribute('r').toPixels());\r\n\r\n\t\t\treturn ctx.createRadialGradient(fx, fy, 0, cx, cy, r);\r\n\t\t}\r\n\t}\r\n\tsvg.Element.radialGradient.prototype = new svg.Element.GradientBase;\r\n\r\n\t// gradient stop element\r\n\tsvg.Element.stop = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.offset = this.attribute('offset').numValue();\r\n\t\tif (this.offset < 0) this.offset = 0;\r\n\t\tif (this.offset > 1) this.offset = 1;\r\n\r\n\t\tvar stopColor = this.style('stop-color', true);\r\n\t\tif (stopColor.value == '') stopColor.value = '#000';\r\n\t\tif (this.style('stop-opacity').hasValue()) stopColor = stopColor.addOpacity(this.style('stop-opacity'));\r\n\t\tthis.color = stopColor.value;\r\n\t}\r\n\tsvg.Element.stop.prototype = new svg.Element.ElementBase;\r\n\r\n\t// animation base element\r\n\tsvg.Element.AnimateBase = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tsvg.Animations.push(this);\r\n\r\n\t\tthis.duration = 0.0;\r\n\t\tthis.begin = this.attribute('begin').toMilliseconds();\r\n\t\tthis.maxDuration = this.begin + this.attribute('dur').toMilliseconds();\r\n\r\n\t\tthis.getProperty = function() {\r\n\t\t\tvar attributeType = this.attribute('attributeType').value;\r\n\t\t\tvar attributeName = this.attribute('attributeName').value;\r\n\r\n\t\t\tif (attributeType == 'CSS') {\r\n\t\t\t\treturn this.parent.style(attributeName, true);\r\n\t\t\t}\r\n\t\t\treturn this.parent.attribute(attributeName, true);\r\n\t\t};\r\n\r\n\t\tthis.initialValue = null;\r\n\t\tthis.initialUnits = '';\r\n\t\tthis.removed = false;\r\n\r\n\t\tthis.calcValue = function() {\r\n\t\t\t// OVERRIDE ME!\r\n\t\t\treturn '';\r\n\t\t}\r\n\r\n\t\tthis.update = function(delta) {\r\n\t\t\t// set initial value\r\n\t\t\tif (this.initialValue == null) {\r\n\t\t\t\tthis.initialValue = this.getProperty().value;\r\n\t\t\t\tthis.initialUnits = this.getProperty().getUnits();\r\n\t\t\t}\r\n\r\n\t\t\t// if we're past the end time\r\n\t\t\tif (this.duration > this.maxDuration) {\r\n\t\t\t\t// loop for indefinitely repeating animations\r\n\t\t\t\tif (this.attribute('repeatCount').value == 'indefinite'\r\n\t\t\t\t || this.attribute('repeatDur').value == 'indefinite') {\r\n\t\t\t\t\tthis.duration = 0.0\r\n\t\t\t\t}\r\n\t\t\t\telse if (this.attribute('fill').valueOrDefault('remove') == 'freeze' && !this.frozen) {\r\n\t\t\t\t\tthis.frozen = true;\r\n\t\t\t\t\tthis.parent.animationFrozen = true;\r\n\t\t\t\t\tthis.parent.animationFrozenValue = this.getProperty().value;\r\n\t\t\t\t}\r\n\t\t\t\telse if (this.attribute('fill').valueOrDefault('remove') == 'remove' && !this.removed) {\r\n\t\t\t\t\tthis.removed = true;\r\n\t\t\t\t\tthis.getProperty().value = this.parent.animationFrozen ? this.parent.animationFrozenValue : this.initialValue;\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tthis.duration = this.duration + delta;\r\n\r\n\t\t\t// if we're past the begin time\r\n\t\t\tvar updated = false;\r\n\t\t\tif (this.begin < this.duration) {\r\n\t\t\t\tvar newValue = this.calcValue(); // tween\r\n\r\n\t\t\t\tif (this.attribute('type').hasValue()) {\r\n\t\t\t\t\t// for transform, etc.\r\n\t\t\t\t\tvar type = this.attribute('type').value;\r\n\t\t\t\t\tnewValue = type + '(' + newValue + ')';\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.getProperty().value = newValue;\r\n\t\t\t\tupdated = true;\r\n\t\t\t}\r\n\r\n\t\t\treturn updated;\r\n\t\t}\r\n\r\n\t\tthis.from = this.attribute('from');\r\n\t\tthis.to = this.attribute('to');\r\n\t\tthis.values = this.attribute('values');\r\n\t\tif (this.values.hasValue()) this.values.value = this.values.value.split(';');\r\n\r\n\t\t// fraction of duration we've covered\r\n\t\tthis.progress = function() {\r\n\t\t\tvar ret = { progress: (this.duration - this.begin) / (this.maxDuration - this.begin) };\r\n\t\t\tif (this.values.hasValue()) {\r\n\t\t\t\tvar p = ret.progress * (this.values.value.length - 1);\r\n\t\t\t\tvar lb = Math.floor(p), ub = Math.ceil(p);\r\n\t\t\t\tret.from = new svg.Property('from', parseFloat(this.values.value[lb]));\r\n\t\t\t\tret.to = new svg.Property('to', parseFloat(this.values.value[ub]));\r\n\t\t\t\tret.progress = (p - lb) / (ub - lb);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tret.from = this.from;\r\n\t\t\t\tret.to = this.to;\r\n\t\t\t}\r\n\t\t\treturn ret;\r\n\t\t}\r\n\t}\r\n\tsvg.Element.AnimateBase.prototype = new svg.Element.ElementBase;\r\n\r\n\t// animate element\r\n\tsvg.Element.animate = function(node) {\r\n\t\tthis.base = svg.Element.AnimateBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.calcValue = function() {\r\n\t\t\tvar p = this.progress();\r\n\r\n\t\t\t// tween value linearly\r\n\t\t\tvar newValue = p.from.numValue() + (p.to.numValue() - p.from.numValue()) * p.progress;\r\n\t\t\treturn newValue + this.initialUnits;\r\n\t\t};\r\n\t}\r\n\tsvg.Element.animate.prototype = new svg.Element.AnimateBase;\r\n\r\n\t// animate color element\r\n\tsvg.Element.animateColor = function(node) {\r\n\t\tthis.base = svg.Element.AnimateBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.calcValue = function() {\r\n\t\t\tvar p = this.progress();\r\n\t\t\tvar from = new RGBColor(p.from.value);\r\n\t\t\tvar to = new RGBColor(p.to.value);\r\n\r\n\t\t\tif (from.ok && to.ok) {\r\n\t\t\t\t// tween color linearly\r\n\t\t\t\tvar r = from.r + (to.r - from.r) * p.progress;\r\n\t\t\t\tvar g = from.g + (to.g - from.g) * p.progress;\r\n\t\t\t\tvar b = from.b + (to.b - from.b) * p.progress;\r\n\t\t\t\treturn 'rgb('+parseInt(r,10)+','+parseInt(g,10)+','+parseInt(b,10)+')';\r\n\t\t\t}\r\n\t\t\treturn this.attribute('from').value;\r\n\t\t};\r\n\t}\r\n\tsvg.Element.animateColor.prototype = new svg.Element.AnimateBase;\r\n\r\n\t// animate transform element\r\n\tsvg.Element.animateTransform = function(node) {\r\n\t\tthis.base = svg.Element.AnimateBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.calcValue = function() {\r\n\t\t\tvar p = this.progress();\r\n\r\n\t\t\t// tween value linearly\r\n\t\t\tvar from = svg.ToNumberArray(p.from.value);\r\n\t\t\tvar to = svg.ToNumberArray(p.to.value);\r\n\t\t\tvar newValue = '';\r\n\t\t\tfor (var i=0; i<from.length; i++) {\r\n\t\t\t\tnewValue += from[i] + (to[i] - from[i]) * p.progress + ' ';\r\n\t\t\t}\r\n\t\t\treturn newValue;\r\n\t\t};\r\n\t}\r\n\tsvg.Element.animateTransform.prototype = new svg.Element.animate;\r\n\r\n\t// font element\r\n\tsvg.Element.font = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.horizAdvX = this.attribute('horiz-adv-x').numValue();\r\n\r\n\t\tthis.isRTL = false;\r\n\t\tthis.isArabic = false;\r\n\t\tthis.fontFace = null;\r\n\t\tthis.missingGlyph = null;\r\n\t\tthis.glyphs = [];\r\n\t\tfor (var i=0; i<this.children.length; i++) {\r\n\t\t\tvar child = this.children[i];\r\n\t\t\tif (child.type == 'font-face') {\r\n\t\t\t\tthis.fontFace = child;\r\n\t\t\t\tif (child.style('font-family').hasValue()) {\r\n\t\t\t\t\tsvg.Definitions[child.style('font-family').value] = this;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (child.type == 'missing-glyph') this.missingGlyph = child;\r\n\t\t\telse if (child.type == 'glyph') {\r\n\t\t\t\tif (child.arabicForm != '') {\r\n\t\t\t\t\tthis.isRTL = true;\r\n\t\t\t\t\tthis.isArabic = true;\r\n\t\t\t\t\tif (typeof this.glyphs[child.unicode] == 'undefined') this.glyphs[child.unicode] = [];\r\n\t\t\t\t\tthis.glyphs[child.unicode][child.arabicForm] = child;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.glyphs[child.unicode] = child;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tsvg.Element.font.prototype = new svg.Element.ElementBase;\r\n\r\n\t// font-face element\r\n\tsvg.Element.fontface = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.ascent = this.attribute('ascent').value;\r\n\t\tthis.descent = this.attribute('descent').value;\r\n\t\tthis.unitsPerEm = this.attribute('units-per-em').numValue();\r\n\t}\r\n\tsvg.Element.fontface.prototype = new svg.Element.ElementBase;\r\n\r\n\t// missing-glyph element\r\n\tsvg.Element.missingglyph = function(node) {\r\n\t\tthis.base = svg.Element.path;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.horizAdvX = 0;\r\n\t}\r\n\tsvg.Element.missingglyph.prototype = new svg.Element.path;\r\n\r\n\t// glyph element\r\n\tsvg.Element.glyph = function(node) {\r\n\t\tthis.base = svg.Element.path;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.horizAdvX = this.attribute('horiz-adv-x').numValue();\r\n\t\tthis.unicode = this.attribute('unicode').value;\r\n\t\tthis.arabicForm = this.attribute('arabic-form').value;\r\n\t}\r\n\tsvg.Element.glyph.prototype = new svg.Element.path;\r\n\r\n\t// text element\r\n\tsvg.Element.text = function(node) {\r\n\t\tthis.captureTextNodes = true;\r\n\t\tthis.base = svg.Element.RenderedElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.baseSetContext = this.setContext;\r\n\t\tthis.setContext = function(ctx) {\r\n\t\t\tthis.baseSetContext(ctx);\r\n\r\n\t\t\tvar textBaseline = this.style('dominant-baseline').toTextBaseline();\r\n\t\t\tif (textBaseline == null) textBaseline = this.style('alignment-baseline').toTextBaseline();\r\n\t\t\tif (textBaseline != null) ctx.textBaseline = textBaseline;\r\n\t\t}\r\n\r\n\t\tthis.getBoundingBox = function () {\r\n\t\t\tvar x = this.attribute('x').toPixels('x');\r\n\t\t\tvar y = this.attribute('y').toPixels('y');\r\n\t\t\tvar fontSize = this.parent.style('font-size').numValueOrDefault(svg.Font.Parse(svg.ctx.font).fontSize);\r\n\t\t\treturn new svg.BoundingBox(x, y - fontSize, x + Math.floor(fontSize * 2.0 / 3.0) * this.children[0].getText().length, y);\r\n\t\t}\r\n\r\n\t\tthis.renderChildren = function(ctx) {\r\n\t\t\tthis.x = this.attribute('x').toPixels('x');\r\n\t\t\tthis.y = this.attribute('y').toPixels('y');\r\n\t\t\tif (this.attribute('dx').hasValue()) this.x += this.attribute('dx').toPixels('x');\r\n\t\t\tif (this.attribute('dy').hasValue()) this.y += this.attribute('dy').toPixels('y');\r\n\t\t\tthis.x += this.getAnchorDelta(ctx, this, 0);\r\n\t\t\tfor (var i=0; i<this.children.length; i++) {\r\n\t\t\t\tthis.renderChild(ctx, this, this, i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.getAnchorDelta = function (ctx, parent, startI) {\r\n\t\t\tvar textAnchor = this.style('text-anchor').valueOrDefault('start');\r\n\t\t\tif (textAnchor != 'start') {\r\n\t\t\t\tvar width = 0;\r\n\t\t\t\tfor (var i=startI; i<parent.children.length; i++) {\r\n\t\t\t\t\tvar child = parent.children[i];\r\n\t\t\t\t\tif (i > startI && child.attribute('x').hasValue()) break; // new group\r\n\t\t\t\t\twidth += child.measureTextRecursive(ctx);\r\n\t\t\t\t}\r\n\t\t\t\treturn -1 * (textAnchor == 'end' ? width : width / 2.0);\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tthis.renderChild = function(ctx, textParent, parent, i) {\r\n\t\t\tvar child = parent.children[i];\r\n\t\t\tif (child.attribute('x').hasValue()) {\r\n\t\t\t\tchild.x = child.attribute('x').toPixels('x') + textParent.getAnchorDelta(ctx, parent, i);\r\n\t\t\t\tif (child.attribute('dx').hasValue()) child.x += child.attribute('dx').toPixels('x');\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (child.attribute('dx').hasValue()) textParent.x += child.attribute('dx').toPixels('x');\r\n\t\t\t\tchild.x = textParent.x;\r\n\t\t\t}\r\n\t\t\ttextParent.x = child.x + child.measureText(ctx);\r\n\r\n\t\t\tif (child.attribute('y').hasValue()) {\r\n\t\t\t\tchild.y = child.attribute('y').toPixels('y');\r\n\t\t\t\tif (child.attribute('dy').hasValue()) child.y += child.attribute('dy').toPixels('y');\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (child.attribute('dy').hasValue()) textParent.y += child.attribute('dy').toPixels('y');\r\n\t\t\t\tchild.y = textParent.y;\r\n\t\t\t}\r\n\t\t\ttextParent.y = child.y;\r\n\r\n\t\t\tchild.render(ctx);\r\n\r\n\t\t\tfor (var i=0; i<child.children.length; i++) {\r\n\t\t\t\ttextParent.renderChild(ctx, textParent, child, i);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tsvg.Element.text.prototype = new svg.Element.RenderedElementBase;\r\n\r\n\t// text base\r\n\tsvg.Element.TextElementBase = function(node) {\r\n\t\tthis.base = svg.Element.RenderedElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.getGlyph = function(font, text, i) {\r\n\t\t\tvar c = text[i];\r\n\t\t\tvar glyph = null;\r\n\t\t\tif (font.isArabic) {\r\n\t\t\t\tvar arabicForm = 'isolated';\r\n\t\t\t\tif ((i==0 || text[i-1]==' ') && i<text.length-2 && text[i+1]!=' ') arabicForm = 'terminal';\r\n\t\t\t\tif (i>0 && text[i-1]!=' ' && i<text.length-2 && text[i+1]!=' ') arabicForm = 'medial';\r\n\t\t\t\tif (i>0 && text[i-1]!=' ' && (i == text.length-1 || text[i+1]==' ')) arabicForm = 'initial';\r\n\t\t\t\tif (typeof font.glyphs[c] != 'undefined') {\r\n\t\t\t\t\tglyph = font.glyphs[c][arabicForm];\r\n\t\t\t\t\tif (glyph == null && font.glyphs[c].type == 'glyph') glyph = font.glyphs[c];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tglyph = font.glyphs[c];\r\n\t\t\t}\r\n\t\t\tif (glyph == null) glyph = font.missingGlyph;\r\n\t\t\treturn glyph;\r\n\t\t}\r\n\r\n\t\tthis.renderChildren = function(ctx) {\r\n\t\t\tvar customFont = this.parent.style('font-family').getDefinition();\r\n\t\t\tif (customFont != null) {\r\n\t\t\t\tvar fontSize = this.parent.style('font-size').numValueOrDefault(svg.Font.Parse(svg.ctx.font).fontSize);\r\n\t\t\t\tvar fontStyle = this.parent.style('font-style').valueOrDefault(svg.Font.Parse(svg.ctx.font).fontStyle);\r\n\t\t\t\tvar text = this.getText();\r\n\t\t\t\tif (customFont.isRTL) text = text.split(\"\").reverse().join(\"\");\r\n\r\n\t\t\t\tvar dx = svg.ToNumberArray(this.parent.attribute('dx').value);\r\n\t\t\t\tfor (var i=0; i<text.length; i++) {\r\n\t\t\t\t\tvar glyph = this.getGlyph(customFont, text, i);\r\n\t\t\t\t\tvar scale = fontSize / customFont.fontFace.unitsPerEm;\r\n\t\t\t\t\tctx.translate(this.x, this.y);\r\n\t\t\t\t\tctx.scale(scale, -scale);\r\n\t\t\t\t\tvar lw = ctx.lineWidth;\r\n\t\t\t\t\tctx.lineWidth = ctx.lineWidth * customFont.fontFace.unitsPerEm / fontSize;\r\n\t\t\t\t\tif (fontStyle == 'italic') ctx.transform(1, 0, .4, 1, 0, 0);\r\n\t\t\t\t\tglyph.render(ctx);\r\n\t\t\t\t\tif (fontStyle == 'italic') ctx.transform(1, 0, -.4, 1, 0, 0);\r\n\t\t\t\t\tctx.lineWidth = lw;\r\n\t\t\t\t\tctx.scale(1/scale, -1/scale);\r\n\t\t\t\t\tctx.translate(-this.x, -this.y);\r\n\r\n\t\t\t\t\tthis.x += fontSize * (glyph.horizAdvX || customFont.horizAdvX) / customFont.fontFace.unitsPerEm;\r\n\t\t\t\t\tif (typeof dx[i] != 'undefined' && !isNaN(dx[i])) {\r\n\t\t\t\t\t\tthis.x += dx[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif (ctx.fillStyle != '') ctx.fillText(svg.compressSpaces(this.getText()), this.x, this.y);\r\n\t\t\tif (ctx.strokeStyle != '') ctx.strokeText(svg.compressSpaces(this.getText()), this.x, this.y);\r\n\t\t}\r\n\r\n\t\tthis.getText = function() {\r\n\t\t\t// OVERRIDE ME\r\n\t\t}\r\n\r\n\t\tthis.measureTextRecursive = function(ctx) {\r\n\t\t\tvar width = this.measureText(ctx);\r\n\t\t\tfor (var i=0; i<this.children.length; i++) {\r\n\t\t\t\twidth += this.children[i].measureTextRecursive(ctx);\r\n\t\t\t}\r\n\t\t\treturn width;\r\n\t\t}\r\n\r\n\t\tthis.measureText = function(ctx) {\r\n\t\t\tvar customFont = this.parent.style('font-family').getDefinition();\r\n\t\t\tif (customFont != null) {\r\n\t\t\t\tvar fontSize = this.parent.style('font-size').numValueOrDefault(svg.Font.Parse(svg.ctx.font).fontSize);\r\n\t\t\t\tvar measure = 0;\r\n\t\t\t\tvar text = this.getText();\r\n\t\t\t\tif (customFont.isRTL) text = text.split(\"\").reverse().join(\"\");\r\n\t\t\t\tvar dx = svg.ToNumberArray(this.parent.attribute('dx').value);\r\n\t\t\t\tfor (var i=0; i<text.length; i++) {\r\n\t\t\t\t\tvar glyph = this.getGlyph(customFont, text, i);\r\n\t\t\t\t\tmeasure += (glyph.horizAdvX || customFont.horizAdvX) * fontSize / customFont.fontFace.unitsPerEm;\r\n\t\t\t\t\tif (typeof dx[i] != 'undefined' && !isNaN(dx[i])) {\r\n\t\t\t\t\t\tmeasure += dx[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn measure;\r\n\t\t\t}\r\n\r\n\t\t\tvar textToMeasure = svg.compressSpaces(this.getText());\r\n\t\t\tif (!ctx.measureText) return textToMeasure.length * 10;\r\n\r\n\t\t\tctx.save();\r\n\t\t\tthis.setContext(ctx);\r\n\t\t\tvar width = ctx.measureText(textToMeasure).width;\r\n\t\t\tctx.restore();\r\n\t\t\treturn width;\r\n\t\t}\r\n\t}\r\n\tsvg.Element.TextElementBase.prototype = new svg.Element.RenderedElementBase;\r\n\r\n\t// tspan\r\n\tsvg.Element.tspan = function(node) {\r\n\t\tthis.captureTextNodes = true;\r\n\t\tthis.base = svg.Element.TextElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.text = svg.compressSpaces(node.value || node.text || node.textContent || '');\r\n\t\tthis.getText = function() {\r\n\t\t\t// if this node has children, then they own the text\r\n\t\t\tif (this.children.length > 0) { return ''; }\r\n\t\t\treturn this.text;\r\n\t\t}\r\n\t}\r\n\tsvg.Element.tspan.prototype = new svg.Element.TextElementBase;\r\n\r\n\t// tref\r\n\tsvg.Element.tref = function(node) {\r\n\t\tthis.base = svg.Element.TextElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.getText = function() {\r\n\t\t\tvar element = this.getHrefAttribute().getDefinition();\r\n\t\t\tif (element != null) return element.children[0].getText();\r\n\t\t}\r\n\t}\r\n\tsvg.Element.tref.prototype = new svg.Element.TextElementBase;\r\n\r\n\t// a element\r\n\tsvg.Element.a = function(node) {\r\n\t\tthis.base = svg.Element.TextElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.hasText = node.childNodes.length > 0;\r\n\t\tfor (var i=0; i<node.childNodes.length; i++) {\r\n\t\t\tif (node.childNodes[i].nodeType != 3) this.hasText = false;\r\n\t\t}\r\n\r\n\t\t// this might contain text\r\n\t\tthis.text = this.hasText ? node.childNodes[0].value : '';\r\n\t\tthis.getText = function() {\r\n\t\t\treturn this.text;\r\n\t\t}\r\n\r\n\t\tthis.baseRenderChildren = this.renderChildren;\r\n\t\tthis.renderChildren = function(ctx) {\r\n\t\t\tif (this.hasText) {\r\n\t\t\t\t// render as text element\r\n\t\t\t\tthis.baseRenderChildren(ctx);\r\n\t\t\t\tvar fontSize = new svg.Property('fontSize', svg.Font.Parse(svg.ctx.font).fontSize);\r\n\t\t\t\tsvg.Mouse.checkBoundingBox(this, new svg.BoundingBox(this.x, this.y - fontSize.toPixels('y'), this.x + this.measureText(ctx), this.y));\r\n\t\t\t}\r\n\t\t\telse if (this.children.length > 0) {\r\n\t\t\t\t// render as temporary group\r\n\t\t\t\tvar g = new svg.Element.g();\r\n\t\t\t\tg.children = this.children;\r\n\t\t\t\tg.parent = this;\r\n\t\t\t\tg.render(ctx);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.onclick = function() {\r\n\t\t\twindow.open(this.getHrefAttribute().value);\r\n\t\t}\r\n\r\n\t\tthis.onmousemove = function() {\r\n\t\t\tsvg.ctx.canvas.style.cursor = 'pointer';\r\n\t\t}\r\n\t}\r\n\tsvg.Element.a.prototype = new svg.Element.TextElementBase;\r\n\r\n\t// image element\r\n\tsvg.Element.image = function(node) {\r\n\t\tthis.base = svg.Element.RenderedElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tvar href = this.getHrefAttribute().value;\r\n\t\tif (href == '') { return; }\r\n\t\tvar isSvg = href.match(/\\.svg$/)\r\n\r\n\t\tsvg.Images.push(this);\r\n\t\tthis.loaded = false;\r\n\t\tif (!isSvg) {\r\n\t\t\tthis.img = document.createElement('img');\r\n\t\t\tif (svg.opts['useCORS'] == true) { this.img.crossOrigin = 'Anonymous'; }\r\n\t\t\tvar self = this;\r\n\t\t\tthis.img.onload = function() { self.loaded = true; }\r\n\t\t\tthis.img.onerror = function() { svg.log('ERROR: image \"' + href + '\" not found'); self.loaded = true; }\r\n\t\t\tthis.img.src = href;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.img = svg.ajax(href);\r\n\t\t\tthis.loaded = true;\r\n\t\t}\r\n\r\n\t\tthis.renderChildren = function(ctx) {\r\n\t\t\tvar x = this.attribute('x').toPixels('x');\r\n\t\t\tvar y = this.attribute('y').toPixels('y');\r\n\r\n\t\t\tvar width = this.attribute('width').toPixels('x');\r\n\t\t\tvar height = this.attribute('height').toPixels('y');\r\n\t\t\tif (width == 0 || height == 0) return;\r\n\r\n\t\t\tctx.save();\r\n\t\t\tif (isSvg) {\r\n\t\t\t\tctx.drawSvg(this.img, x, y, width, height);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tctx.translate(x, y);\r\n\t\t\t\tsvg.AspectRatio(ctx,\r\n\t\t\t\t\t\t\t\tthis.attribute('preserveAspectRatio').value,\r\n\t\t\t\t\t\t\t\twidth,\r\n\t\t\t\t\t\t\t\tthis.img.width,\r\n\t\t\t\t\t\t\t\theight,\r\n\t\t\t\t\t\t\t\tthis.img.height,\r\n\t\t\t\t\t\t\t\t0,\r\n\t\t\t\t\t\t\t\t0);\r\n\t\t\t\tctx.drawImage(this.img, 0, 0);\r\n\t\t\t}\r\n\t\t\tctx.restore();\r\n\t\t}\r\n\r\n\t\tthis.getBoundingBox = function() {\r\n\t\t\tvar x = this.attribute('x').toPixels('x');\r\n\t\t\tvar y = this.attribute('y').toPixels('y');\r\n\t\t\tvar width = this.attribute('width').toPixels('x');\r\n\t\t\tvar height = this.attribute('height').toPixels('y');\r\n\t\t\treturn new svg.BoundingBox(x, y, x + width, y + height);\r\n\t\t}\r\n\t}\r\n\tsvg.Element.image.prototype = new svg.Element.RenderedElementBase;\r\n\r\n\t// group element\r\n\tsvg.Element.g = function(node) {\r\n\t\tthis.base = svg.Element.RenderedElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.getBoundingBox = function() {\r\n\t\t\tvar bb = new svg.BoundingBox();\r\n\t\t\tfor (var i=0; i<this.children.length; i++) {\r\n\t\t\t\tbb.addBoundingBox(this.children[i].getBoundingBox());\r\n\t\t\t}\r\n\t\t\treturn bb;\r\n\t\t};\r\n\t}\r\n\tsvg.Element.g.prototype = new svg.Element.RenderedElementBase;\r\n\r\n\t// symbol element\r\n\tsvg.Element.symbol = function(node) {\r\n\t\tthis.base = svg.Element.RenderedElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.render = function(ctx) {\r\n\t\t\t// NO RENDER\r\n\t\t};\r\n\t}\r\n\tsvg.Element.symbol.prototype = new svg.Element.RenderedElementBase;\r\n\r\n\t// style element\r\n\tsvg.Element.style = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\t// text, or spaces then CDATA\r\n\t\tvar css = ''\r\n\t\tfor (var i=0; i<node.childNodes.length; i++) {\r\n\t\t css += node.childNodes[i].data;\r\n\t\t}\r\n\t\tcss = css.replace(/(\\/\\*([^*]|[\\r\\n]|(\\*+([^*\\/]|[\\r\\n])))*\\*+\\/)|(^[\\s]*\\/\\/.*)/gm, ''); // remove comments\r\n\t\tcss = svg.compressSpaces(css); // replace whitespace\r\n\t\tvar cssDefs = css.split('}');\r\n\t\tfor (var i=0; i<cssDefs.length; i++) {\r\n\t\t\tif (svg.trim(cssDefs[i]) != '') {\r\n\t\t\t\tvar cssDef = cssDefs[i].split('{');\r\n\t\t\t\tvar cssClasses = cssDef[0].split(',');\r\n\t\t\t\tvar cssProps = cssDef[1].split(';');\r\n\t\t\t\tfor (var j=0; j<cssClasses.length; j++) {\r\n\t\t\t\t\tvar cssClass = svg.trim(cssClasses[j]);\r\n\t\t\t\t\tif (cssClass != '') {\r\n\t\t\t\t\t\tvar props = svg.Styles[cssClass] || {};\r\n\t\t\t\t\t\tfor (var k=0; k<cssProps.length; k++) {\r\n\t\t\t\t\t\t\tvar prop = cssProps[k].indexOf(':');\r\n\t\t\t\t\t\t\tvar name = cssProps[k].substr(0, prop);\r\n\t\t\t\t\t\t\tvar value = cssProps[k].substr(prop + 1, cssProps[k].length - prop);\r\n\t\t\t\t\t\t\tif (name != null && value != null) {\r\n\t\t\t\t\t\t\t\tprops[svg.trim(name)] = new svg.Property(svg.trim(name), svg.trim(value));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsvg.Styles[cssClass] = props;\r\n\t\t\t\t\t\tsvg.StylesSpecificity[cssClass] = getSelectorSpecificity(cssClass);\r\n\t\t\t\t\t\tif (cssClass == '@font-face') {\r\n\t\t\t\t\t\t\tvar fontFamily = props['font-family'].value.replace(/\"/g,'');\r\n\t\t\t\t\t\t\tvar srcs = props['src'].value.split(',');\r\n\t\t\t\t\t\t\tfor (var s=0; s<srcs.length; s++) {\r\n\t\t\t\t\t\t\t\tif (srcs[s].indexOf('format(\"svg\")') > 0) {\r\n\t\t\t\t\t\t\t\t\tvar urlStart = srcs[s].indexOf('url');\r\n\t\t\t\t\t\t\t\t\tvar urlEnd = srcs[s].indexOf(')', urlStart);\r\n\t\t\t\t\t\t\t\t\tvar url = srcs[s].substr(urlStart + 5, urlEnd - urlStart - 6);\r\n\t\t\t\t\t\t\t\t\tvar doc = svg.parseXml(svg.ajax(url));\r\n\t\t\t\t\t\t\t\t\tvar fonts = doc.getElementsByTagName('font');\r\n\t\t\t\t\t\t\t\t\tfor (var f=0; f<fonts.length; f++) {\r\n\t\t\t\t\t\t\t\t\t\tvar font = svg.CreateElement(fonts[f]);\r\n\t\t\t\t\t\t\t\t\t\tsvg.Definitions[fontFamily] = font;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tsvg.Element.style.prototype = new svg.Element.ElementBase;\r\n\r\n\t// use element\r\n\tsvg.Element.use = function(node) {\r\n\t\tthis.base = svg.Element.RenderedElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.baseSetContext = this.setContext;\r\n\t\tthis.setContext = function(ctx) {\r\n\t\t\tthis.baseSetContext(ctx);\r\n\t\t\tif (this.attribute('x').hasValue()) ctx.translate(this.attribute('x').toPixels('x'), 0);\r\n\t\t\tif (this.attribute('y').hasValue()) ctx.translate(0, this.attribute('y').toPixels('y'));\r\n\t\t}\r\n\r\n\t\tvar element = this.getHrefAttribute().getDefinition();\r\n\r\n\t\tthis.path = function(ctx) {\r\n\t\t\tif (element != null) element.path(ctx);\r\n\t\t}\r\n\r\n\t\tthis.getBoundingBox = function() {\r\n\t\t\tif (element != null) return element.getBoundingBox();\r\n\t\t}\r\n\r\n\t\tthis.renderChildren = function(ctx) {\r\n\t\t\tif (element != null) {\r\n\t\t\t\tvar tempSvg = element;\r\n\t\t\t\tif (element.type == 'symbol') {\r\n\t\t\t\t\t// render me using a temporary svg element in symbol cases (http://www.w3.org/TR/SVG/struct.html#UseElement)\r\n\t\t\t\t\ttempSvg = new svg.Element.svg();\r\n\t\t\t\t\ttempSvg.type = 'svg';\r\n\t\t\t\t\ttempSvg.attributes['viewBox'] = new svg.Property('viewBox', element.attribute('viewBox').value);\r\n\t\t\t\t\ttempSvg.attributes['preserveAspectRatio'] = new svg.Property('preserveAspectRatio', element.attribute('preserveAspectRatio').value);\r\n\t\t\t\t\ttempSvg.attributes['overflow'] = new svg.Property('overflow', element.attribute('overflow').value);\r\n\t\t\t\t\ttempSvg.children = element.children;\r\n\t\t\t\t}\r\n\t\t\t\tif (tempSvg.type == 'svg') {\r\n\t\t\t\t\t// if symbol or svg, inherit width/height from me\r\n\t\t\t\t\tif (this.attribute('width').hasValue()) tempSvg.attributes['width'] = new svg.Property('width', this.attribute('width').value);\r\n\t\t\t\t\tif (this.attribute('height').hasValue()) tempSvg.attributes['height'] = new svg.Property('height', this.attribute('height').value);\r\n\t\t\t\t}\r\n\t\t\t\tvar oldParent = tempSvg.parent;\r\n\t\t\t\ttempSvg.parent = null;\r\n\t\t\t\ttempSvg.render(ctx);\r\n\t\t\t\ttempSvg.parent = oldParent;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tsvg.Element.use.prototype = new svg.Element.RenderedElementBase;\r\n\r\n\t// mask element\r\n\tsvg.Element.mask = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.apply = function(ctx, element) {\r\n\t\t\t// render as temp svg\r\n\t\t\tvar x = this.attribute('x').toPixels('x');\r\n\t\t\tvar y = this.attribute('y').toPixels('y');\r\n\t\t\tvar width = this.attribute('width').toPixels('x');\r\n\t\t\tvar height = this.attribute('height').toPixels('y');\r\n\r\n\t\t\tif (width == 0 && height == 0) {\r\n\t\t\t\tvar bb = new svg.BoundingBox();\r\n\t\t\t\tfor (var i=0; i<this.children.length; i++) {\r\n\t\t\t\t\tbb.addBoundingBox(this.children[i].getBoundingBox());\r\n\t\t\t\t}\r\n\t\t\t\tvar x = Math.floor(bb.x1);\r\n\t\t\t\tvar y = Math.floor(bb.y1);\r\n\t\t\t\tvar width = Math.floor(bb.width());\r\n\t\t\t\tvar\theight = Math.floor(bb.height());\r\n\t\t\t}\r\n\r\n\t\t\t// temporarily remove mask to avoid recursion\r\n\t\t\tvar mask = element.attribute('mask').value;\r\n\t\t\telement.attribute('mask').value = '';\r\n\r\n\t\t\t\tvar cMask = document.createElement('canvas');\r\n\t\t\t\tcMask.width = x + width;\r\n\t\t\t\tcMask.height = y + height;\r\n\t\t\t\tvar maskCtx = cMask.getContext('2d');\r\n\t\t\t\tthis.renderChildren(maskCtx);\r\n\r\n\t\t\t\tvar c = document.createElement('canvas');\r\n\t\t\t\tc.width = x + width;\r\n\t\t\t\tc.height = y + height;\r\n\t\t\t\tvar tempCtx = c.getContext('2d');\r\n\t\t\t\telement.render(tempCtx);\r\n\t\t\t\ttempCtx.globalCompositeOperation = 'destination-in';\r\n\t\t\t\ttempCtx.fillStyle = maskCtx.createPattern(cMask, 'no-repeat');\r\n\t\t\t\ttempCtx.fillRect(0, 0, x + width, y + height);\r\n\r\n\t\t\t\tctx.fillStyle = tempCtx.createPattern(c, 'no-repeat');\r\n\t\t\t\tctx.fillRect(0, 0, x + width, y + height);\r\n\r\n\t\t\t// reassign mask\r\n\t\t\telement.attribute('mask').value = mask;\r\n\t\t}\r\n\r\n\t\tthis.render = function(ctx) {\r\n\t\t\t// NO RENDER\r\n\t\t}\r\n\t}\r\n\tsvg.Element.mask.prototype = new svg.Element.ElementBase;\r\n\r\n\t// clip element\r\n\tsvg.Element.clipPath = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.apply = function(ctx) {\r\n\t\t\tvar oldBeginPath = CanvasRenderingContext2D.prototype.beginPath;\r\n\t\t\tCanvasRenderingContext2D.prototype.beginPath = function () { };\r\n\r\n\t\t\tvar oldClosePath = CanvasRenderingContext2D.prototype.closePath;\r\n\t\t\tCanvasRenderingContext2D.prototype.closePath = function () { };\r\n\r\n\t\t\toldBeginPath.call(ctx);\r\n\t\t\tfor (var i=0; i<this.children.length; i++) {\r\n\t\t\t\tvar child = this.children[i];\r\n\t\t\t\tif (typeof child.path != 'undefined') {\r\n\t\t\t\t\tvar transform = null;\r\n\t\t\t\t\tif (child.style('transform', false, true).hasValue()) {\r\n\t\t\t\t\t\ttransform = new svg.Transform(child.style('transform', false, true).value);\r\n\t\t\t\t\t\ttransform.apply(ctx);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tchild.path(ctx);\r\n\t\t\t\t\tCanvasRenderingContext2D.prototype.closePath = oldClosePath;\r\n\t\t\t\t\tif (transform) { transform.unapply(ctx); }\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\toldClosePath.call(ctx);\r\n\t\t\tctx.clip();\r\n\r\n\t\t\tCanvasRenderingContext2D.prototype.beginPath = oldBeginPath;\r\n\t\t\tCanvasRenderingContext2D.prototype.closePath = oldClosePath;\r\n\t\t}\r\n\r\n\t\tthis.render = function(ctx) {\r\n\t\t\t// NO RENDER\r\n\t\t}\r\n\t}\r\n\tsvg.Element.clipPath.prototype = new svg.Element.ElementBase;\r\n\r\n\t// filters\r\n\tsvg.Element.filter = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.apply = function(ctx, element) {\r\n\t\t\t// render as temp svg\r\n\t\t\tvar bb = element.getBoundingBox();\r\n\t\t\tvar x = Math.floor(bb.x1);\r\n\t\t\tvar y = Math.floor(bb.y1);\r\n\t\t\tvar width = Math.floor(bb.width());\r\n\t\t\tvar\theight = Math.floor(bb.height());\r\n\r\n\t\t\t// temporarily remove filter to avoid recursion\r\n\t\t\tvar filter = element.style('filter').value;\r\n\t\t\telement.style('filter').value = '';\r\n\r\n\t\t\tvar px = 0, py = 0;\r\n\t\t\tfor (var i=0; i<this.children.length; i++) {\r\n\t\t\t\tvar efd = this.children[i].extraFilterDistance || 0;\r\n\t\t\t\tpx = Math.max(px, efd);\r\n\t\t\t\tpy = Math.max(py, efd);\r\n\t\t\t}\r\n\r\n\t\t\tvar c = document.createElement('canvas');\r\n\t\t\tc.width = width + 2*px;\r\n\t\t\tc.height = height + 2*py;\r\n\t\t\tvar tempCtx = c.getContext('2d');\r\n\t\t\ttempCtx.translate(-x + px, -y + py);\r\n\t\t\telement.render(tempCtx);\r\n\r\n\t\t\t// apply filters\r\n\t\t\tfor (var i=0; i<this.children.length; i++) {\r\n\t\t\t\tif (typeof this.children[i].apply == 'function') {\r\n\t\t\t\t\tthis.children[i].apply(tempCtx, 0, 0, width + 2*px, height + 2*py);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// render on me\r\n\t\t\tctx.drawImage(c, 0, 0, width + 2*px, height + 2*py, x - px, y - py, width + 2*px, height + 2*py);\r\n\r\n\t\t\t// reassign filter\r\n\t\t\telement.style('filter', true).value = filter;\r\n\t\t}\r\n\r\n\t\tthis.render = function(ctx) {\r\n\t\t\t// NO RENDER\r\n\t\t}\r\n\t}\r\n\tsvg.Element.filter.prototype = new svg.Element.ElementBase;\r\n\r\n\tsvg.Element.feMorphology = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.apply = function(ctx, x, y, width, height) {\r\n\t\t\t// TODO: implement\r\n\t\t}\r\n\t}\r\n\tsvg.Element.feMorphology.prototype = new svg.Element.ElementBase;\r\n\r\n\tsvg.Element.feComposite = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.apply = function(ctx, x, y, width, height) {\r\n\t\t\t// TODO: implement\r\n\t\t}\r\n\t}\r\n\tsvg.Element.feComposite.prototype = new svg.Element.ElementBase;\r\n\r\n\tsvg.Element.feColorMatrix = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tvar matrix = svg.ToNumberArray(this.attribute('values').value);\r\n\t\tswitch (this.attribute('type').valueOrDefault('matrix')) { // http://www.w3.org/TR/SVG/filters.html#feColorMatrixElement\r\n\t\t\tcase 'saturate':\r\n\t\t\t\tvar s = matrix[0];\r\n\t\t\t\tmatrix = [0.213+0.787*s,0.715-0.715*s,0.072-0.072*s,0,0,\r\n\t\t\t\t\t\t 0.213-0.213*s,0.715+0.285*s,0.072-0.072*s,0,0,\r\n\t\t\t\t\t\t 0.213-0.213*s,0.715-0.715*s,0.072+0.928*s,0,0,\r\n\t\t\t\t\t\t 0,0,0,1,0,\r\n\t\t\t\t\t\t 0,0,0,0,1];\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'hueRotate':\r\n\t\t\t\tvar a = matrix[0] * Math.PI / 180.0;\r\n\t\t\t\tvar c = function (m1,m2,m3) { return m1 + Math.cos(a)*m2 + Math.sin(a)*m3; };\r\n\t\t\t\tmatrix = [c(0.213,0.787,-0.213),c(0.715,-0.715,-0.715),c(0.072,-0.072,0.928),0,0,\r\n\t\t\t\t\t\t c(0.213,-0.213,0.143),c(0.715,0.285,0.140),c(0.072,-0.072,-0.283),0,0,\r\n\t\t\t\t\t\t c(0.213,-0.213,-0.787),c(0.715,-0.715,0.715),c(0.072,0.928,0.072),0,0,\r\n\t\t\t\t\t\t 0,0,0,1,0,\r\n\t\t\t\t\t\t 0,0,0,0,1];\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'luminanceToAlpha':\r\n\t\t\t\tmatrix = [0,0,0,0,0,\r\n\t\t\t\t\t\t 0,0,0,0,0,\r\n\t\t\t\t\t\t 0,0,0,0,0,\r\n\t\t\t\t\t\t 0.2125,0.7154,0.0721,0,0,\r\n\t\t\t\t\t\t 0,0,0,0,1];\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tfunction imGet(img, x, y, width, height, rgba) {\r\n\t\t\treturn img[y*width*4 + x*4 + rgba];\r\n\t\t}\r\n\r\n\t\tfunction imSet(img, x, y, width, height, rgba, val) {\r\n\t\t\timg[y*width*4 + x*4 + rgba] = val;\r\n\t\t}\r\n\r\n\t\tfunction m(i, v) {\r\n\t\t\tvar mi = matrix[i];\r\n\t\t\treturn mi * (mi < 0 ? v - 255 : v);\r\n\t\t}\r\n\r\n\t\tthis.apply = function(ctx, x, y, width, height) {\r\n\t\t\t// assuming x==0 && y==0 for now\r\n\t\t\tvar srcData = ctx.getImageData(0, 0, width, height);\r\n\t\t\tfor (var y = 0; y < height; y++) {\r\n\t\t\t\tfor (var x = 0; x < width; x++) {\r\n\t\t\t\t\tvar r = imGet(srcData.data, x, y, width, height, 0);\r\n\t\t\t\t\tvar g = imGet(srcData.data, x, y, width, height, 1);\r\n\t\t\t\t\tvar b = imGet(srcData.data, x, y, width, height, 2);\r\n\t\t\t\t\tvar a = imGet(srcData.data, x, y, width, height, 3);\r\n\t\t\t\t\timSet(srcData.data, x, y, width, height, 0, m(0,r)+m(1,g)+m(2,b)+m(3,a)+m(4,1));\r\n\t\t\t\t\timSet(srcData.data, x, y, width, height, 1, m(5,r)+m(6,g)+m(7,b)+m(8,a)+m(9,1));\r\n\t\t\t\t\timSet(srcData.data, x, y, width, height, 2, m(10,r)+m(11,g)+m(12,b)+m(13,a)+m(14,1));\r\n\t\t\t\t\timSet(srcData.data, x, y, width, height, 3, m(15,r)+m(16,g)+m(17,b)+m(18,a)+m(19,1));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tctx.clearRect(0, 0, width, height);\r\n\t\t\tctx.putImageData(srcData, 0, 0);\r\n\t\t}\r\n\t}\r\n\tsvg.Element.feColorMatrix.prototype = new svg.Element.ElementBase;\r\n\r\n\tsvg.Element.feGaussianBlur = function(node) {\r\n\t\tthis.base = svg.Element.ElementBase;\r\n\t\tthis.base(node);\r\n\r\n\t\tthis.blurRadius = Math.floor(this.attribute('stdDeviation').numValue());\r\n\t\tthis.extraFilterDistance = this.blurRadius;\r\n\r\n\t\tthis.apply = function(ctx, x, y, width, height) {\r\n\t\t\tif (typeof stackblur.canvasRGBA == 'undefined') {\r\n\t\t\t\tsvg.log('ERROR: StackBlur.js must be included for blur to work');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// StackBlur requires canvas be on document\r\n\t\t\tctx.canvas.id = svg.UniqueId();\r\n\t\t\tctx.canvas.style.display = 'none';\r\n\t\t\tdocument.body.appendChild(ctx.canvas);\r\n\t\t\tstackblur.canvasRGBA(ctx.canvas.id, x, y, width, height, this.blurRadius);\r\n\t\t\tdocument.body.removeChild(ctx.canvas);\r\n\t\t}\r\n\t}\r\n\tsvg.Element.feGaussianBlur.prototype = new svg.Element.ElementBase;\r\n\r\n\t// title element, do nothing\r\n\tsvg.Element.title = function(node) {\r\n\t}\r\n\tsvg.Element.title.prototype = new svg.Element.ElementBase;\r\n\r\n\t// desc element, do nothing\r\n\tsvg.Element.desc = function(node) {\r\n\t}\r\n\tsvg.Element.desc.prototype = new svg.Element.ElementBase;\r\n\r\n\tsvg.Element.MISSING = function(node) {\r\n\t\tsvg.log('ERROR: Element \\'' + node.nodeName + '\\' not yet implemented.');\r\n\t}\r\n\tsvg.Element.MISSING.prototype = new svg.Element.ElementBase;\r\n\r\n\t// element factory\r\n\tsvg.CreateElement = function(node) {\r\n\t\tvar className = node.nodeName.replace(/^[^:]+:/,''); // remove namespace\r\n\t\tclassName = className.replace(/\\-/g,''); // remove dashes\r\n\t\tvar e = null;\r\n\t\tif (typeof svg.Element[className] != 'undefined') {\r\n\t\t\te = new svg.Element[className](node);\r\n\t\t}\r\n\t\telse {\r\n\t\t\te = new svg.Element.MISSING(node);\r\n\t\t}\r\n\r\n\t\te.type = node.nodeName;\r\n\t\treturn e;\r\n\t}\r\n\r\n\t// load from url\r\n\tsvg.load = function(ctx, url) {\r\n\t\tsvg.loadXml(ctx, svg.ajax(url));\r\n\t}\r\n\r\n\t// load from xml\r\n\tsvg.loadXml = function(ctx, xml) {\r\n\t\tsvg.loadXmlDoc(ctx, svg.parseXml(xml));\r\n\t}\r\n\r\n\tsvg.loadXmlDoc = function(ctx, dom) {\r\n\t\tsvg.init(ctx);\r\n\r\n\t\tvar mapXY = function(p) {\r\n\t\t\tvar e = ctx.canvas;\r\n\t\t\twhile (e) {\r\n\t\t\t\tp.x -= e.offsetLeft;\r\n\t\t\t\tp.y -= e.offsetTop;\r\n\t\t\t\te = e.offsetParent;\r\n\t\t\t}\r\n\t\t\tif (window.scrollX) p.x += window.scrollX;\r\n\t\t\tif (window.scrollY) p.y += window.scrollY;\r\n\t\t\treturn p;\r\n\t\t}\r\n\r\n\t\t// bind mouse\r\n\t\tif (svg.opts['ignoreMouse'] != true) {\r\n\t\t\tctx.canvas.onclick = function(e) {\r\n\t\t\t\tvar p = mapXY(new svg.Point(e != null ? e.clientX : event.clientX, e != null ? e.clientY : event.clientY));\r\n\t\t\t\tsvg.Mouse.onclick(p.x, p.y);\r\n\t\t\t};\r\n\t\t\tctx.canvas.onmousemove = function(e) {\r\n\t\t\t\tvar p = mapXY(new svg.Point(e != null ? e.clientX : event.clientX, e != null ? e.clientY : event.clientY));\r\n\t\t\t\tsvg.Mouse.onmousemove(p.x, p.y);\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tvar e = svg.CreateElement(dom.documentElement);\r\n\t\te.root = true;\r\n\t\te.addStylesFromStyleDefinition();\r\n\r\n\t\t// render loop\r\n\t\tvar isFirstRender = true;\r\n\t\tvar draw = function() {\r\n\t\t\tsvg.ViewPort.Clear();\r\n\t\t\tif (ctx.canvas.parentNode) svg.ViewPort.SetCurrent(ctx.canvas.parentNode.clientWidth, ctx.canvas.parentNode.clientHeight);\r\n\r\n\t\t\tif (svg.opts['ignoreDimensions'] != true) {\r\n\t\t\t\t// set canvas size\r\n\t\t\t\tif (e.style('width').hasValue()) {\r\n\t\t\t\t\tctx.canvas.width = e.style('width').toPixels('x');\r\n\t\t\t\t\tctx.canvas.style.width = ctx.canvas.width + 'px';\r\n\t\t\t\t}\r\n\t\t\t\tif (e.style('height').hasValue()) {\r\n\t\t\t\t\tctx.canvas.height = e.style('height').toPixels('y');\r\n\t\t\t\t\tctx.canvas.style.height = ctx.canvas.height + 'px';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tvar cWidth = ctx.canvas.clientWidth || ctx.canvas.width;\r\n\t\t\tvar cHeight = ctx.canvas.clientHeight || ctx.canvas.height;\r\n\t\t\tif (svg.opts['ignoreDimensions'] == true && e.style('width').hasValue() && e.style('height').hasValue()) {\r\n\t\t\t\tcWidth = e.style('width').toPixels('x');\r\n\t\t\t\tcHeight = e.style('height').toPixels('y');\r\n\t\t\t}\r\n\t\t\tsvg.ViewPort.SetCurrent(cWidth, cHeight);\r\n\r\n\t\t\tif (svg.opts['offsetX'] != null) e.attribute('x', true).value = svg.opts['offsetX'];\r\n\t\t\tif (svg.opts['offsetY'] != null) e.attribute('y', true).value = svg.opts['offsetY'];\r\n\t\t\tif (svg.opts['scaleWidth'] != null || svg.opts['scaleHeight'] != null) {\r\n\t\t\t\tvar xRatio = null, yRatio = null, viewBox = svg.ToNumberArray(e.attribute('viewBox').value);\r\n\r\n\t\t\t\tif (svg.opts['scaleWidth'] != null) {\r\n\t\t\t\t\tif (e.attribute('width').hasValue()) xRatio = e.attribute('width').toPixels('x') / svg.opts['scaleWidth'];\r\n\t\t\t\t\telse if (!isNaN(viewBox[2])) xRatio = viewBox[2] / svg.opts['scaleWidth'];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (svg.opts['scaleHeight'] != null) {\r\n\t\t\t\t\tif (e.attribute('height').hasValue()) yRatio = e.attribute('height').toPixels('y') / svg.opts['scaleHeight'];\r\n\t\t\t\t\telse if (!isNaN(viewBox[3])) yRatio = viewBox[3] / svg.opts['scaleHeight'];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (xRatio == null) { xRatio = yRatio; }\r\n\t\t\t\tif (yRatio == null) { yRatio = xRatio; }\r\n\r\n\t\t\t\te.attribute('width', true).value = svg.opts['scaleWidth'];\r\n\t\t\t\te.attribute('height', true).value = svg.opts['scaleHeight'];\r\n\t\t\t\te.style('transform', true, true).value += ' scale('+(1.0/xRatio)+','+(1.0/yRatio)+')';\r\n\t\t\t}\r\n\r\n\t\t\t// clear and render\r\n\t\t\tif (svg.opts['ignoreClear'] != true) {\r\n\t\t\t\tctx.clearRect(0, 0, cWidth, cHeight);\r\n\t\t\t}\r\n\t\t\te.render(ctx);\r\n\t\t\tif (isFirstRender) {\r\n\t\t\t\tisFirstRender = false;\r\n\t\t\t\tif (typeof svg.opts['renderCallback'] == 'function') svg.opts['renderCallback'](dom);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvar waitingForImages = true;\r\n\t\tif (svg.ImagesLoaded()) {\r\n\t\t\twaitingForImages = false;\r\n\t\t\tdraw();\r\n\t\t}\r\n\t\tsvg.intervalID = setInterval(function() {\r\n\t\t\tvar needUpdate = false;\r\n\r\n\t\t\tif (waitingForImages && svg.ImagesLoaded()) {\r\n\t\t\t\twaitingForImages = false;\r\n\t\t\t\tneedUpdate = true;\r\n\t\t\t}\r\n\r\n\t\t\t// need update from mouse events?\r\n\t\t\tif (svg.opts['ignoreMouse'] != true) {\r\n\t\t\t\tneedUpdate = needUpdate | svg.Mouse.hasEvents();\r\n\t\t\t}\r\n\r\n\t\t\t// need update from animations?\r\n\t\t\tif (svg.opts['ignoreAnimation'] != true) {\r\n\t\t\t\tfor (var i=0; i<svg.Animations.length; i++) {\r\n\t\t\t\t\tneedUpdate = needUpdate | svg.Animations[i].update(1000 / svg.FRAMERATE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// need update from redraw?\r\n\t\t\tif (typeof svg.opts['forceRedraw'] == 'function') {\r\n\t\t\t\tif (svg.opts['forceRedraw']() == true) needUpdate = true;\r\n\t\t\t}\r\n\r\n\t\t\t// render if needed\r\n\t\t\tif (needUpdate) {\r\n\t\t\t\tdraw();\r\n\t\t\t\tsvg.Mouse.runEvents(); // run and clear our events\r\n\t\t\t}\r\n\t\t}, 1000 / svg.FRAMERATE);\r\n\t}\r\n\r\n\tsvg.stop = function() {\r\n\t\tif (svg.intervalID) {\r\n\t\t\tclearInterval(svg.intervalID);\r\n\t\t}\r\n\t}\r\n\r\n\tsvg.Mouse = new (function() {\r\n\t\tthis.events = [];\r\n\t\tthis.hasEvents = function() { return this.events.length != 0; }\r\n\r\n\t\tthis.onclick = function(x, y) {\r\n\t\t\tthis.events.push({ type: 'onclick', x: x, y: y,\r\n\t\t\t\trun: function(e) { if (e.onclick) e.onclick(); }\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.onmousemove = function(x, y) {\r\n\t\t\tthis.events.push({ type: 'onmousemove', x: x, y: y,\r\n\t\t\t\trun: function(e) { if (e.onmousemove) e.onmousemove(); }\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tthis.eventElements = [];\r\n\r\n\t\tthis.checkPath = function(element, ctx) {\r\n\t\t\tfor (var i=0; i<this.events.length; i++) {\r\n\t\t\t\tvar e = this.events[i];\r\n\t\t\t\tif (ctx.isPointInPath && ctx.isPointInPath(e.x, e.y)) this.eventElements[i] = element;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.checkBoundingBox = function(element, bb) {\r\n\t\t\tfor (var i=0; i<this.events.length; i++) {\r\n\t\t\t\tvar e = this.events[i];\r\n\t\t\t\tif (bb.isPointInBox(e.x, e.y)) this.eventElements[i] = element;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.runEvents = function() {\r\n\t\t\tsvg.ctx.canvas.style.cursor = '';\r\n\r\n\t\t\tfor (var i=0; i<this.events.length; i++) {\r\n\t\t\t\tvar e = this.events[i];\r\n\t\t\t\tvar element = this.eventElements[i];\r\n\t\t\t\twhile (element) {\r\n\t\t\t\t\te.run(element);\r\n\t\t\t\t\telement = element.parent;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// done running, clear\r\n\t\t\tthis.events = [];\r\n\t\t\tthis.eventElements = [];\r\n\t\t}\r\n\t});\r\n\r\n\treturn svg;\r\n};\r\n\r\nmodule.exports = canvg;\r\n\n\n/***/ }),\n\n/***/ \"./node_modules/css-loader/index.js!./src/css/contextmenu.css\":\n/*!***********************************************************!*\\\n !*** ./node_modules/css-loader!./src/css/contextmenu.css ***!\n \\***********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\nexports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/lib/css-base.js */ \"./node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.i, \"/*!\\r\\n * jQuery contextMenu - Plugin for simple contextMenu handling\\r\\n *\\r\\n * Version: 1.5.24\\r\\n *\\r\\n * Authors: Rodney Rehm, Addy Osmani (patches for FF)\\r\\n * Web: http://medialize.github.com/jQuery-contextMenu/\\r\\n *\\r\\n * Licensed under\\r\\n * MIT License http://www.opensource.org/licenses/mit-license\\r\\n * GPL v3 http://opensource.org/licenses/GPL-3.0\\r\\n *\\r\\n */\\r\\n\\r\\n.context-menu-list {\\r\\n margin:0;\\r\\n padding:0;\\r\\n\\r\\n min-width: 120px;\\r\\n max-width: 250px;\\r\\n display: inline-block;\\r\\n position: absolute;\\r\\n list-style-type: none;\\r\\n\\r\\n border: 1px solid #DDD;\\r\\n background: #EEE;\\r\\n\\r\\n -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\\r\\n -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\\r\\n -ms-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\\r\\n -o-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\\r\\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);\\r\\n\\r\\n font-family: Verdana, Arial, Helvetica, sans-serif;\\r\\n font-size: 11px;\\r\\n}\\r\\n\\r\\n.context-menu-item {\\r\\n padding: 2px 2px 2px 24px;\\r\\n background-color: #EEE;\\r\\n position: relative;\\r\\n -webkit-user-select: none;\\r\\n -moz-user-select: -moz-none;\\r\\n -ms-user-select: none;\\r\\n user-select: none;\\r\\n}\\r\\n\\r\\n.context-menu-separator {\\r\\n padding-bottom:0;\\r\\n border-bottom: 1px solid #DDD;\\r\\n}\\r\\n\\r\\n.context-menu-item > label > input,\\r\\n.context-menu-item > label > textarea {\\r\\n -webkit-user-select: text;\\r\\n -moz-user-select: text;\\r\\n -ms-user-select: text;\\r\\n user-select: text;\\r\\n}\\r\\n\\r\\n.context-menu-item.hover {\\r\\n cursor: pointer;\\r\\n background-color: #39F;\\r\\n}\\r\\n\\r\\n.context-menu-item.disabled {\\r\\n color: #666;\\r\\n}\\r\\n\\r\\n.context-menu-input.hover,\\r\\n.context-menu-item.disabled.hover {\\r\\n cursor: default;\\r\\n background-color: #EEE;\\r\\n}\\r\\n\\r\\n.context-menu-submenu:after {\\r\\n content: \\\">\\\";\\r\\n color: #666;\\r\\n position: absolute;\\r\\n top: 0;\\r\\n right: 3px;\\r\\n z-index: 1;\\r\\n}\\r\\n\\r\\n/* icons\\r\\n #protip:\\r\\n In case you want to use sprites for icons (which I would suggest you do) have a look at\\r\\n http://css-tricks.com/13224-pseudo-spriting/ to get an idea of how to implement\\r\\n .context-menu-item.icon:before {}\\r\\n */\\r\\n.context-menu-item.icon { min-height: 18px; background-repeat: no-repeat; background-position: 4px 2px; }\\r\\n\\r\\n/* vertically align inside labels */\\r\\n.context-menu-input > label > * { vertical-align: top; }\\r\\n\\r\\n/* position checkboxes and radios as icons */\\r\\n.context-menu-input > label > input[type=\\\"checkbox\\\"],\\r\\n.context-menu-input > label > input[type=\\\"radio\\\"] {\\r\\n margin-left: -17px;\\r\\n}\\r\\n.context-menu-input > label > span {\\r\\n margin-left: 5px;\\r\\n}\\r\\n\\r\\n.context-menu-input > label,\\r\\n.context-menu-input > label > input[type=\\\"text\\\"],\\r\\n.context-menu-input > label > textarea,\\r\\n.context-menu-input > label > select {\\r\\n display: block;\\r\\n width: 100%;\\r\\n\\r\\n -webkit-box-sizing: border-box;\\r\\n -moz-box-sizing: border-box;\\r\\n -ms-box-sizing: border-box;\\r\\n -o-box-sizing: border-box;\\r\\n box-sizing: border-box;\\r\\n}\\r\\n\\r\\n.context-menu-input > label > textarea {\\r\\n height: 100px;\\r\\n}\\r\\n.context-menu-item > .context-menu-list {\\r\\n display: none;\\r\\n /* re-positioned by js */\\r\\n right: -5px;\\r\\n top: 5px;\\r\\n}\\r\\n\\r\\n.context-menu-item.hover > .context-menu-list {\\r\\n display: block;\\r\\n}\\r\\n\\r\\n.context-menu-accesskey {\\r\\n text-decoration: underline;\\r\\n}\\r\\n\", \"\"]);\n\n// exports\n\n\n/***/ }),\n\n/***/ \"./node_modules/css-loader/lib/css-base.js\":\n/*!*************************************************!*\\\n !*** ./node_modules/css-loader/lib/css-base.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/raw-loader/index.js!./src/lib/Class.exec.js\":\n/*!*********************************************************!*\\\n !*** ./node_modules/raw-loader!./src/lib/Class.exec.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\nmodule.exports = \"/* \\r\\n * Simple JavaScript Inheritance \\r\\n * By John Resig http://ejohn.org/ \\r\\n * MIT Licensed. \\r\\n * \\r\\n ****************************************************** \\r\\n * Example Usage \\r\\n ****************************************************** \\r\\n var Person = Class.extend({ \\r\\n init: function(isDancing){ \\r\\n this.dancing = isDancing; \\r\\n }, \\r\\n dance: function(){ \\r\\n return this.dancing; \\r\\n } \\r\\n}); \\r\\n\\r\\nvar Ninja = Person.extend({ \\r\\n init: function(){ \\r\\n this._super( false ); \\r\\n }, \\r\\n dance: function(){ \\r\\n // Call the inherited version of dance() \\r\\n return this._super(); \\r\\n }, \\r\\n swingSword: function(){ \\r\\n return true; \\r\\n } \\r\\n}); \\r\\n\\r\\nvar p = new Person(true); \\r\\np.dance(); // => true \\r\\n\\r\\nvar n = new Ninja(); \\r\\nn.dance(); // => false \\r\\nn.swingSword(); // => true \\r\\n\\r\\n// Should all be true \\r\\np instanceof Person && p instanceof Class && \\r\\nn instanceof Ninja && n instanceof Person && n instanceof Class \\r\\n\\r\\n ****************************************************** \\r\\n */ \\r\\n \\r\\n// Inspired by base2 and Prototype \\r\\n(function(){ \\r\\n var fnTest = /xyz/.test(function(){xyz;}) ? /\\\\b_super\\\\b/ : /.*/; \\r\\n\\r\\n // The base Class implementation (does nothing) \\r\\n this.Class = function(){}; \\r\\n \\r\\n\\r\\n // Create a new Class that inherits from this class \\r\\n Class.extend = function(prop) { \\r\\n var _super = this.prototype; \\r\\n \\r\\n // Instantiate a base class (but only create the instance, \\r\\n // don't run the init constructor) \\r\\n initializing = true; \\r\\n var prototype = new this(); \\r\\n initializing = false; \\r\\n \\r\\n \\r\\n // Copy the properties over onto the new prototype \\r\\n for (var name in prop) { \\r\\n // Check if we're overwriting an existing function \\r\\n prototype[name] = typeof prop[name] == \\\"function\\\" && \\r\\n typeof _super[name] == \\\"function\\\" && fnTest.test(prop[name]) ? \\r\\n (function(name, fn){ \\r\\n return function() { \\r\\n var tmp = this._super; \\r\\n \\r\\n // Add a new ._super() method that is the same method \\r\\n // but on the super-class \\r\\n this._super = _super[name]; \\r\\n \\r\\n // The method only need to be bound temporarily, so we \\r\\n // remove it when we're done executing \\r\\n var ret = fn.apply(this, arguments); \\r\\n this._super = tmp; \\r\\n \\r\\n return ret; \\r\\n }; \\r\\n })(name, prop[name]) : \\r\\n prop[name]; \\r\\n } \\r\\n \\r\\n // The dummy class constructor \\r\\n function Class() { \\r\\n // All construction is actually done in the init method \\r\\n if ( !initializing && this.init ) \\r\\n this.init.apply(this, arguments); \\r\\n } \\r\\n \\r\\n // Populate our constructed prototype object \\r\\n Class.prototype = prototype; \\r\\n \\r\\n // Enforce the constructor to be what we expect \\r\\n Class.prototype.constructor = Class; \\r\\n\\r\\n // And make this class extendable \\r\\n Class.extend = arguments.callee; \\r\\n \\r\\n // EXTENSION BY Draw2D.org to inject methods into an existing class to provide plugins or \\r\\n // bugfixes for further releases \\r\\n // \\r\\n Class.inject = function (prop) { \\r\\n var proto = this.prototype; \\r\\n var parent = {}; \\r\\n for (var name in prop) { \\r\\n if (typeof (prop[name]) == \\\"function\\\" && typeof (proto[name]) == \\\"function\\\" && fnTest.test(prop[name])) { \\r\\n parent[name] = proto[name]; \\r\\n proto[name] = (function (name, fn) { \\r\\n return function () { \\r\\n var tmp = this.parent; \\r\\n this.parent = parent[name]; \\r\\n var ret = fn.apply(this, arguments); \\r\\n this.parent = tmp; \\r\\n return ret; \\r\\n }; \\r\\n })(name, prop[name]); \\r\\n } else { \\r\\n proto[name] = prop[name]; \\r\\n } \\r\\n } \\r\\n }; \\r\\n \\r\\n return Class; \\r\\n }; \\r\\n})();\\r\\n \\r\\n\"\n\n/***/ }),\n\n/***/ \"./node_modules/raw-loader/index.js!./src/lib/pathfinding.exec.js\":\n/*!***************************************************************!*\\\n !*** ./node_modules/raw-loader!./src/lib/pathfinding.exec.js ***!\n \\***************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\nmodule.exports = \"var PF=function(){var e=function(t,n){var r=e.resolve(t,n||\\\"/\\\"),i=e.modules[r];if(!i)throw new Error(\\\"Failed to resolve module \\\"+t+\\\", tried \\\"+r);var s=i._cached?i._cached:i();return s};return e.paths=[],e.modules={},e.extensions=[\\\".js\\\",\\\".coffee\\\"],e._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0},e.resolve=function(){return function(t,n){function u(t){if(e.modules[t])return t;for(var n=0;n<e.extensions.length;n++){var r=e.extensions[n];if(e.modules[t+r])return t+r}}function a(t){t=t.replace(/\\\\/+$/,\\\"\\\");var n=t+\\\"/package.json\\\";if(e.modules[n]){var i=e.modules[n](),s=i.browserify;if(typeof s==\\\"object\\\"&&s.main){var o=u(r.resolve(t,s.main));if(o)return o}else if(typeof s==\\\"string\\\"){var o=u(r.resolve(t,s));if(o)return o}else if(i.main){var o=u(r.resolve(t,i.main));if(o)return o}}return u(t+\\\"/index\\\")}function f(e,t){var n=l(t);for(var r=0;r<n.length;r++){var i=n[r],s=u(i+\\\"/\\\"+e);if(s)return s;var o=a(i+\\\"/\\\"+e);if(o)return o}var s=u(e);if(s)return s}function l(e){var t;e===\\\"/\\\"?t=[\\\"\\\"]:t=r.normalize(e).split(\\\"/\\\");var n=[];for(var i=t.length-1;i>=0;i--){if(t[i]===\\\"node_modules\\\")continue;var s=t.slice(0,i+1).join(\\\"/\\\")+\\\"/node_modules\\\";n.push(s)}return n}n||(n=\\\"/\\\");if(e._core[t])return t;var r=e.modules.path();n=r.resolve(\\\"/\\\",n);var i=n||\\\"/\\\";if(t.match(/^(?:\\\\.\\\\.?\\\\/|\\\\/)/)){var s=u(r.resolve(i,t))||a(r.resolve(i,t));if(s)return s}var o=f(t,i);if(o)return o;throw new Error(\\\"Cannot find module '\\\"+t+\\\"'\\\")}}(),e.alias=function(t,n){var r=e.modules.path(),i=null;try{i=e.resolve(t+\\\"/package.json\\\",\\\"/\\\")}catch(s){i=e.resolve(t,\\\"/\\\")}var o=r.dirname(i),u=(Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t})(e.modules);for(var a=0;a<u.length;a++){var f=u[a];if(f.slice(0,o.length+1)===o+\\\"/\\\"){var l=f.slice(o.length);e.modules[n+l]=e.modules[o+l]}else f===o&&(e.modules[n]=e.modules[o])}},e.define=function(t,n){var r=e._core[t]?\\\"\\\":e.modules.path().dirname(t),i=function(t){return e(t,r)};i.resolve=function(t){return e.resolve(t,r)},i.modules=e.modules,i.define=e.define;var s={exports:{}};e.modules[t]=function(){return e.modules[t]._cached=s.exports,n.call(s.exports,i,s,s.exports,r,t),e.modules[t]._cached=s.exports,s.exports}},typeof process==\\\"undefined\\\"&&(process={}),process.nextTick||(process.nextTick=function(){var e=[],t=typeof window!=\\\"undefined\\\"&&window.postMessage&&window.addEventListener;return t&&window.addEventListener(\\\"message\\\",function(t){if(t.source===window&&t.data===\\\"browserify-tick\\\"){t.stopPropagation();if(e.length>0){var n=e.shift();n()}}},!0),function(n){t?(e.push(n),window.postMessage(\\\"browserify-tick\\\",\\\"*\\\")):setTimeout(n,0)}}()),process.title||(process.title=\\\"browser\\\"),process.binding||(process.binding=function(t){if(t===\\\"evals\\\")return e(\\\"vm\\\");throw new Error(\\\"No such module\\\")}),process.cwd||(process.cwd=function(){return\\\".\\\"}),process.env||(process.env={}),process.argv||(process.argv=[]),e.define(\\\"path\\\",function(e,t,n,r,i){function s(e,t){var n=[];for(var r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}function o(e,t){var n=0;for(var r=e.length;r>=0;r--){var i=e[r];i==\\\".\\\"?e.splice(r,1):i===\\\"..\\\"?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift(\\\"..\\\");return e}var u=/^(.+\\\\/(?!$)|\\\\/)?((?:.+?)?(\\\\.[^.]*)?)$/;n.resolve=function(){var e=\\\"\\\",t=!1;for(var n=arguments.length;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(typeof r!=\\\"string\\\"||!r)continue;e=r+\\\"/\\\"+e,t=r.charAt(0)===\\\"/\\\"}return e=o(s(e.split(\\\"/\\\"),function(e){return!!e}),!t).join(\\\"/\\\"),(t?\\\"/\\\":\\\"\\\")+e||\\\".\\\"},n.normalize=function(e){var t=e.charAt(0)===\\\"/\\\",n=e.slice(-1)===\\\"/\\\";return e=o(s(e.split(\\\"/\\\"),function(e){return!!e}),!t).join(\\\"/\\\"),!e&&!t&&(e=\\\".\\\"),e&&n&&(e+=\\\"/\\\"),(t?\\\"/\\\":\\\"\\\")+e},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(s(e,function(e,t){return e&&typeof e==\\\"string\\\"}).join(\\\"/\\\"))},n.dirname=function(e){var t=u.exec(e)[1]||\\\"\\\",n=!1;return t?t.length===1||n&&t.length<=3&&t.charAt(1)===\\\":\\\"?t:t.substring(0,t.length-1):\\\".\\\"},n.basename=function(e,t){var n=u.exec(e)[2]||\\\"\\\";return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return u.exec(e)[3]||\\\"\\\"}}),e.define(\\\"/core/Node.js\\\",function(e,t,n,r,i){function s(e,t,n){this.x=e,this.y=t,this.walkable=n===undefined?!0:n}t.exports=s}),e.define(\\\"/core/Grid.js\\\",function(e,t,n,r,i){function o(e,t,n){this.width=e,this.height=t,this.nodes=this._buildNodes(e,t,n)}var s=e(\\\"./Node\\\");o.prototype._buildNodes=function(e,t,n){var r,i,o=new Array(t),u;for(r=0;r<t;++r){o[r]=new Array(e);for(i=0;i<e;++i)o[r][i]=new s(i,r)}if(n===undefined)return o;if(n.length!==t||n[0].length!==e)throw new Error(\\\"Matrix size does not fit\\\");for(r=0;r<t;++r)for(i=0;i<e;++i)n[r][i]&&(o[r][i].walkable=!1);return o},o.prototype.getNodeAt=function(e,t){return this.nodes[t][e]},o.prototype.isWalkableAt=function(e,t){return this.isInside(e,t)&&this.nodes[t][e].walkable},o.prototype.isInside=function(e,t){return e>=0&&e<this.width&&t>=0&&t<this.height},o.prototype.setWalkableAt=function(e,t,n){this.nodes[t][e].walkable=n},o.prototype.getNeighbors=function(e,t,n){var r=e.x,i=e.y,s=[],o=!1,u=!1,a=!1,f=!1,l=!1,c=!1,h=!1,p=!1,d=this.nodes;return this.isWalkableAt(r,i-1)&&(s.push(d[i-1][r]),o=!0),this.isWalkableAt(r+1,i)&&(s.push(d[i][r+1]),a=!0),this.isWalkableAt(r,i+1)&&(s.push(d[i+1][r]),l=!0),this.isWalkableAt(r-1,i)&&(s.push(d[i][r-1]),h=!0),t?(n?(u=h&&o,f=o&&a,c=a&&l,p=l&&h):(u=h||o,f=o||a,c=a||l,p=l||h),u&&this.isWalkableAt(r-1,i-1)&&s.push(d[i-1][r-1]),f&&this.isWalkableAt(r+1,i-1)&&s.push(d[i-1][r+1]),c&&this.isWalkableAt(r+1,i+1)&&s.push(d[i+1][r+1]),p&&this.isWalkableAt(r-1,i+1)&&s.push(d[i+1][r-1]),s):s},o.prototype.clone=function(){var e,t,n=this.width,r=this.height,i=this.nodes,u=new o(n,r),a=new Array(r),f;for(e=0;e<r;++e){a[e]=new Array(n);for(t=0;t<n;++t)a[e][t]=new s(t,e,i[e][t].walkable)}return u.nodes=a,u},t.exports=o}),e.define(\\\"/core/Heap.js\\\",function(e,t,n,r,i){(function(){var e,n,r,i,s,o,u,a,f,l,c,h,p,d,v;r=Math.floor,l=Math.min,n=function(e,t){return e<t?-1:e>t?1:0},f=function(e,t,i,s,o){var u;i==null&&(i=0),o==null&&(o=n);if(i<0)throw new Error(\\\"lo must be non-negative\\\");s==null&&(s=e.length);while(o(i,s)<0)u=r((i+s)/2),o(t,e[u])<0?s=u:i=u+1;return[].splice.apply(e,[i,i-i].concat(t)),t},o=function(e,t,r){return r==null&&(r=n),e.push(t),d(e,0,e.length-1,r)},s=function(e,t){var r,i;return t==null&&(t=n),r=e.pop(),e.length?(i=e[0],e[0]=r,v(e,0,t)):i=r,i},a=function(e,t,r){var i;return r==null&&(r=n),i=e[0],e[0]=t,v(e,0,r),i},u=function(e,t,r){var i;return r==null&&(r=n),e.length&&r(e[0],t)<0&&(i=[e[0],t],t=i[0],e[0]=i[1],v(e,0,r)),t},i=function(e,t){var i,s,o,u,a,f,l,c;t==null&&(t=n),f=function(){c=[];for(var t=0,n=r(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)c.push(t);return c}.apply(this).reverse(),l=[];for(s=0,u=f.length;s<u;s++)i=f[s],l.push(v(e,i,t));return l},p=function(e,t,r){var i;return r==null&&(r=n),i=e.indexOf(t),d(e,0,i,r),v(e,i,r)},c=function(e,t,r){var s,o,a,f,l;r==null&&(r=n),o=e.slice(0,t);if(!o.length)return o;i(o,r),l=e.slice(t);for(a=0,f=l.length;a<f;a++)s=l[a],u(o,s,r);return o.sort(r).reverse()},h=function(e,t,r){var o,u,a,c,h,p,d,v,m,g;r==null&&(r=n);if(t*10<=e.length){c=e.slice(0,t).sort(r);if(!c.length)return c;a=c[c.length-1],v=e.slice(t);for(h=0,d=v.length;h<d;h++)o=v[h],r(o,a)<0&&(f(c,o,0,null,r),c.pop(),a=c[c.length-1]);return c}i(e,r),g=[];for(u=p=0,m=l(t,e.length);0<=m?p<m:p>m;u=0<=m?++p:--p)g.push(s(e,r));return g},d=function(e,t,r,i){var s,o,u;i==null&&(i=n),s=e[r];while(r>t){u=r-1>>1,o=e[u];if(i(s,o)<0){e[r]=o,r=u;continue}break}return e[r]=s},v=function(e,t,r){var i,s,o,u,a;r==null&&(r=n),s=e.length,a=t,o=e[t],i=2*t+1;while(i<s)u=i+1,u<s&&!(r(e[i],e[u])<0)&&(i=u),e[t]=e[i],t=i,i=2*t+1;return e[t]=o,d(e,a,t,r)},e=function(){function e(e){this.cmp=e!=null?e:n,this.nodes=[]}return e.name=\\\"Heap\\\",e.push=o,e.pop=s,e.replace=a,e.pushpop=u,e.heapify=i,e.nlargest=c,e.nsmallest=h,e.prototype.push=function(e){return o(this.nodes,e,this.cmp)},e.prototype.pop=function(){return s(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return this.nodes.indexOf(e)!==-1},e.prototype.replace=function(e){return a(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return u(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return i(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return p(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return this.nodes.length===0},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t;return t=new e,t.nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.remove=e.prototype.pop,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),(typeof t!=\\\"undefined\\\"&&t!==null?t.exports:void 0)?t.exports=e:window.Heap=e}).call(this)}),e.define(\\\"/core/Util.js\\\",function(e,t,n,r,i){function s(e){var t=[[e.x,e.y]];while(e.parent)e=e.parent,t.push([e.x,e.y]);return t.reverse()}function o(e,t){var n=s(e),r=s(t);return n.concat(r.reverse())}function u(e){var t,n=0,r,i,s,o;for(t=1;t<e.length;++t)r=e[t-1],i=e[t],s=r[0]-i[0],o=r[1]-i[1],n+=Math.sqrt(s*s+o*o);return n}function a(e,t,n,r){var i=Math.abs,s=[],o,u,a,f,l,c;a=i(n-e),f=i(r-t),o=e<n?1:-1,u=t<r?1:-1,l=a-f;for(;;){s.push([e,t]);if(e===n&&t===r)break;c=2*l,c>-f&&(l-=f,e+=o),c<a&&(l+=a,t+=u)}return s}function f(e,t){var n=t.length,r=t[0][0],i=t[0][1],s=t[n-1][0],o=t[n-1][1],u,f,l,c,h,p,d,v,m,g,y,b,w;u=r,f=i,h=t[1][0],p=t[1][1],d=[[u,f]];for(v=2;v<n;++v){g=t[v],l=g[0],c=g[1],y=a(u,f,l,c),w=!1;for(m=1;m<y.length;++m){b=y[m];if(!e.isWalkableAt(b[0],b[1])){w=!0,d.push([h,p]),u=h,f=p;break}}w||(h=l,p=c)}return d.push([s,o]),d}n.backtrace=s,n.biBacktrace=o,n.pathLength=u,n.getLine=a,n.smoothenPath=f}),e.define(\\\"/core/Heuristic.js\\\",function(e,t,n,r,i){t.exports={manhattan:function(e,t){return e+t},euclidean:function(e,t){return Math.sqrt(e*e+t*t)},chebyshev:function(e,t){return Math.max(e,t)}}}),e.define(\\\"/finders/AStarFinder.js\\\",function(e,t,n,r,i){function a(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.heuristic=e.heuristic||u.manhattan}var s=e(\\\"../core/Heap\\\"),o=e(\\\"../core/Util\\\"),u=e(\\\"../core/Heuristic\\\");a.prototype.findPath=function(e,t,n,r,i){var u=new s(function(e,t){return e.f-t.f}),a=i.getNodeAt(e,t),f=i.getNodeAt(n,r),l=this.heuristic,c=this.allowDiagonal,h=this.dontCrossCorners,p=Math.abs,d=Math.SQRT2,v,m,g,y,b,w,E,S;a.g=0,a.f=0,u.push(a),a.opened=!0;while(!u.empty()){v=u.pop(),v.closed=!0;if(v===f)return o.backtrace(f);m=i.getNeighbors(v,c,h);for(y=0,b=m.length;y<b;++y){g=m[y];if(g.closed)continue;w=g.x,E=g.y,S=v.g+(w-v.x===0||E-v.y===0?1:d);if(!g.opened||S<g.g)g.g=S,g.h=g.h||l(p(w-n),p(E-r)),g.f=g.g+g.h,g.parent=v,g.opened?u.updateItem(g):(u.push(g),g.opened=!0)}}return[]},t.exports=a}),e.define(\\\"/finders/BestFirstFinder.js\\\",function(e,t,n,r,i){function o(e){s.call(this,e);var t=this.heuristic;this.heuristic=function(e,n){return t(e,n)*1e6}}var s=e(\\\"./AStarFinder\\\");o.prototype=new s,o.prototype.constructor=o,t.exports=o}),e.define(\\\"/finders/BreadthFirstFinder.js\\\",function(e,t,n,r,i){function o(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners}var s=e(\\\"../core/Util\\\");o.prototype.findPath=function(e,t,n,r,i){var o=[],u=this.allowDiagonal,a=this.dontCrossCorners,f=i.getNodeAt(e,t),l=i.getNodeAt(n,r),c,h,p,d,v;o.push(f),f.opened=!0;while(o.length){p=o.shift(),p.closed=!0;if(p===l)return s.backtrace(l);c=i.getNeighbors(p,u,a);for(d=0,v=c.length;d<v;++d){h=c[d];if(h.closed||h.opened)continue;o.push(h),h.opened=!0,h.parent=p}}return[]},t.exports=o}),e.define(\\\"/finders/DijkstraFinder.js\\\",function(e,t,n,r,i){function o(e){s.call(this,e),this.heuristic=function(e,t){return 0}}var s=e(\\\"./AStarFinder\\\");o.prototype=new s,o.prototype.constructor=o,t.exports=o}),e.define(\\\"/finders/BiAStarFinder.js\\\",function(e,t,n,r,i){function a(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.heuristic=e.heuristic||u.manhattan}var s=e(\\\"../core/Heap\\\"),o=e(\\\"../core/Util\\\"),u=e(\\\"../core/Heuristic\\\");a.prototype.findPath=function(e,t,n,r,i){var u=function(e,t){return e.f-t.f},a=new s(u),f=new s(u),l=i.getNodeAt(e,t),c=i.getNodeAt(n,r),h=this.heuristic,p=this.allowDiagonal,d=this.dontCrossCorners,v=Math.abs,m=Math.SQRT2,g,y,b,w,E,S,x,T,N=1,C=2;l.g=0,l.f=0,a.push(l),l.opened=N,c.g=0,c.f=0,f.push(c),c.opened=C;while(!a.empty()&&!f.empty()){g=a.pop(),g.closed=!0,y=i.getNeighbors(g,p,d);for(w=0,E=y.length;w<E;++w){b=y[w];if(b.closed)continue;if(b.opened===C)return o.biBacktrace(g,b);S=b.x,x=b.y,T=g.g+(S-g.x===0||x-g.y===0?1:m);if(!b.opened||T<b.g)b.g=T,b.h=b.h||h(v(S-n),v(x-r)),b.f=b.g+b.h,b.parent=g,b.opened?a.updateItem(b):(a.push(b),b.opened=N)}g=f.pop(),g.closed=!0,y=i.getNeighbors(g,p,d);for(w=0,E=y.length;w<E;++w){b=y[w];if(b.closed)continue;if(b.opened===N)return o.biBacktrace(b,g);S=b.x,x=b.y,T=g.g+(S-g.x===0||x-g.y===0?1:m);if(!b.opened||T<b.g)b.g=T,b.h=b.h||h(v(S-e),v(x-t)),b.f=b.g+b.h,b.parent=g,b.opened?f.updateItem(b):(f.push(b),b.opened=C)}}return[]},t.exports=a}),e.define(\\\"/finders/BiBestFirstFinder.js\\\",function(e,t,n,r,i){function o(e){s.call(this,e);var t=this.heuristic;this.heuristic=function(e,n){return t(e,n)*1e6}}var s=e(\\\"./BiAStarFinder\\\");o.prototype=new s,o.prototype.constructor=o,t.exports=o}),e.define(\\\"/finders/BiBreadthFirstFinder.js\\\",function(e,t,n,r,i){function o(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners}var s=e(\\\"../core/Util\\\");o.prototype.findPath=function(e,t,n,r,i){var o=i.getNodeAt(e,t),u=i.getNodeAt(n,r),a=[],f=[],l,c,h,p=this.allowDiagonal,d=this.dontCrossCorners,v=0,m=1,g,y;a.push(o),o.opened=!0,o.by=v,f.push(u),u.opened=!0,u.by=m;while(a.length&&f.length){h=a.shift(),h.closed=!0,l=i.getNeighbors(h,p,d);for(g=0,y=l.length;g<y;++g){c=l[g];if(c.closed)continue;if(c.opened){if(c.by===m)return s.biBacktrace(h,c);continue}a.push(c),c.parent=h,c.opened=!0,c.by=v}h=f.shift(),h.closed=!0,l=i.getNeighbors(h,p,d);for(g=0,y=l.length;g<y;++g){c=l[g];if(c.closed)continue;if(c.opened){if(c.by===v)return s.biBacktrace(c,h);continue}f.push(c),c.parent=h,c.opened=!0,c.by=m}}return[]},t.exports=o}),e.define(\\\"/finders/BiDijkstraFinder.js\\\",function(e,t,n,r,i){function o(e){s.call(this,e),this.heuristic=function(e,t){return 0}}var s=e(\\\"./BiAStarFinder\\\");o.prototype=new s,o.prototype.constructor=o,t.exports=o}),e.define(\\\"/finders/JumpPointFinder.js\\\",function(e,t,n,r,i){function a(e){e=e||{},this.heuristic=e.heuristic||u.manhattan}var s=e(\\\"../core/Heap\\\"),o=e(\\\"../core/Util\\\"),u=e(\\\"../core/Heuristic\\\");a.prototype.findPath=function(e,t,n,r,i){var u=this.openList=new s(function(e,t){return e.f-t.f}),a=this.startNode=i.getNodeAt(e,t),f=this.endNode=i.getNodeAt(n,r),l;this.grid=i,a.g=0,a.f=0,u.push(a),a.opened=!0;while(!u.empty()){l=u.pop(),l.closed=!0;if(l===f)return o.backtrace(f);this._identifySuccessors(l)}return[]},a.prototype._identifySuccessors=function(e){var t=this.grid,n=this.heuristic,r=this.openList,i=this.endNode.x,s=this.endNode.y,o,a,f,l,c,h=e.x,p=e.y,d,v,m,g,y,b,w,E=Math.abs,S=Math.max;o=this._findNeighbors(e);for(l=0,c=o.length;l<c;++l){a=o[l],f=this._jump(a[0],a[1],h,p);if(f){d=f[0],v=f[1],w=t.getNodeAt(d,v);if(w.closed)continue;y=u.euclidean(E(d-h),E(v-p)),b=e.g+y;if(!w.opened||b<w.g)w.g=b,w.h=w.h||n(E(d-i),E(v-s)),w.f=w.g+w.h,w.parent=e,w.opened?r.updateItem(w):(r.push(w),w.opened=!0)}}},a.prototype._jump=function(e,t,n,r){var i=this.grid,s=e-n,o=t-r,u,a;if(!i.isWalkableAt(e,t))return null;if(i.getNodeAt(e,t)===this.endNode)return[e,t];if(s!==0&&o!==0){if(i.isWalkableAt(e-s,t+o)&&!i.isWalkableAt(e-s,t)||i.isWalkableAt(e+s,t-o)&&!i.isWalkableAt(e,t-o))return[e,t]}else if(s!==0){if(i.isWalkableAt(e+s,t+1)&&!i.isWalkableAt(e,t+1)||i.isWalkableAt(e+s,t-1)&&!i.isWalkableAt(e,t-1))return[e,t]}else if(i.isWalkableAt(e+1,t+o)&&!i.isWalkableAt(e+1,t)||i.isWalkableAt(e-1,t+o)&&!i.isWalkableAt(e-1,t))return[e,t];if(s!==0&&o!==0){u=this._jump(e+s,t,e,t),a=this._jump(e,t+o,e,t);if(u||a)return[e,t]}return i.isWalkableAt(e+s,t)||i.isWalkableAt(e,t+o)?this._jump(e+s,t+o,e,t):null},a.prototype._findNeighbors=function(e){var t=e.parent,n=e.x,r=e.y,i=this.grid,s,o,u,a,f,l,c=[],h,p,d,v;if(t)s=t.x,o=t.y,f=(n-s)/Math.max(Math.abs(n-s),1),l=(r-o)/Math.max(Math.abs(r-o),1),f!==0&&l!==0?(i.isWalkableAt(n,r+l)&&c.push([n,r+l]),i.isWalkableAt(n+f,r)&&c.push([n+f,r]),(i.isWalkableAt(n,r+l)||i.isWalkableAt(n+f,r))&&c.push([n+f,r+l]),!i.isWalkableAt(n-f,r)&&i.isWalkableAt(n,r+l)&&c.push([n-f,r+l]),!i.isWalkableAt(n,r-l)&&i.isWalkableAt(n+f,r)&&c.push([n+f,r-l])):f===0?i.isWalkableAt(n,r+l)&&(i.isWalkableAt(n,r+l)&&c.push([n,r+l]),i.isWalkableAt(n+1,r)||c.push([n+1,r+l]),i.isWalkableAt(n-1,r)||c.push([n-1,r+l])):i.isWalkableAt(n+f,r)&&(i.isWalkableAt(n+f,r)&&c.push([n+f,r]),i.isWalkableAt(n,r+1)||c.push([n+f,r+1]),i.isWalkableAt(n,r-1)||c.push([n+f,r-1]));else{h=i.getNeighbors(e,!0);for(d=0,v=h.length;d<v;++d)p=h[d],c.push([p.x,p.y])}return c},t.exports=a}),e.define(\\\"/PathFinding.js\\\",function(e,t,n,r,i){t.exports={Node:e(\\\"./core/Node\\\"),Grid:e(\\\"./core/Grid\\\"),Heap:e(\\\"./core/Heap\\\"),Util:e(\\\"./core/Util\\\"),Heuristic:e(\\\"./core/Heuristic\\\"),AStarFinder:e(\\\"./finders/AStarFinder\\\"),BestFirstFinder:e(\\\"./finders/BestFirstFinder\\\"),BreadthFirstFinder:e(\\\"./finders/BreadthFirstFinder\\\"),DijkstraFinder:e(\\\"./finders/DijkstraFinder\\\"),BiAStarFinder:e(\\\"./finders/BiAStarFinder\\\"),BiBestFirstFinder:e(\\\"./finders/BiBestFirstFinder\\\"),BiBreadthFirstFinder:e(\\\"./finders/BiBreadthFirstFinder\\\"),BiDijkstraFinder:e(\\\"./finders/BiDijkstraFinder\\\"),JumpPointFinder:e(\\\"./finders/JumpPointFinder\\\")}}),e(\\\"/PathFinding.js\\\"),e(\\\"/PathFinding\\\")}()\"\n\n/***/ }),\n\n/***/ \"./node_modules/raw-loader/index.js!./src/lib/raphael.exec.js\":\n/*!***********************************************************!*\\\n !*** ./node_modules/raw-loader!./src/lib/raphael.exec.js ***!\n \\***********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\nmodule.exports = \"// ┌────────────────────────────────────────────────────────────────────┐ \\\\\\\\\\r\\n// │ Raphaël 2.1.0 - JavaScript Vector Library │ \\\\\\\\\\r\\n// ├────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) │ \\\\\\\\\\r\\n// │ Copyright © 2008-2012 Sencha Labs (http://sencha.com) │ \\\\\\\\\\r\\n// ├────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Licensed under the MIT (http://raphaeljs.com/license.html) license.│ \\\\\\\\\\r\\n// └────────────────────────────────────────────────────────────────────┘ \\\\\\\\\\r\\n\\r\\n// ┌──────────────────────────────────────────────────────────────────────────────────────┐ \\\\\\\\\\r\\n// │ Eve 0.3.4 - JavaScript Events Library │ \\\\\\\\\\r\\n// ├──────────────────────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Copyright (c) 2008-2011 Dmitry Baranovskiy (http://dmitry.baranovskiy.com/) │ \\\\\\\\\\r\\n// │ Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. │ \\\\\\\\\\r\\n// └──────────────────────────────────────────────────────────────────────────────────────┘ \\\\\\\\\\r\\n\\r\\n// THIS FILES IS PATCHED BY FREEGROUP\\r\\n// you can't replace this file with a new version without migrate all changes\\r\\n// tagged with \\\"FREEGROUP\\\"\\r\\n//\\r\\n// Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\r\\n// you may not use this file except in compliance with the License.\\r\\n// You may obtain a copy of the License at\\r\\n//\\r\\n// http://www.apache.org/licenses/LICENSE-2.0\\r\\n//\\r\\n// Unless required by applicable law or agreed to in writing, software\\r\\n// distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\r\\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\r\\n// See the License for the specific language governing permissions and\\r\\n// limitations under the License.\\r\\n// ┌────────────────────────────────────────────────────────────┐ \\\\\\\\\\r\\n// │ Eve 0.4.2 - JavaScript Events Library │ \\\\\\\\\\r\\n// ├────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Author Dmitry Baranovskiy (http://dmitry.baranovskiy.com/) │ \\\\\\\\\\r\\n// └────────────────────────────────────────────────────────────┘ \\\\\\\\\\r\\n(function (glob, factory) {\\r\\n if (typeof define === \\\"function\\\" && define.amd) {\\r\\n define(\\\"eve\\\", function() {\\r\\n return factory();\\r\\n });\\r\\n } else if (typeof exports === \\\"object\\\") {\\r\\n module.exports = factory();\\r\\n } else {\\r\\n glob.eve = factory();\\r\\n }\\r\\n}(this, function(){\\r\\n var version = \\\"0.4.2\\\",\\r\\n has = \\\"hasOwnProperty\\\",\\r\\n separator = /[\\\\.\\\\/]/,\\r\\n wildcard = \\\"*\\\",\\r\\n fun = function () {},\\r\\n numsort = function (a, b) {\\r\\n return a - b;\\r\\n },\\r\\n current_event,\\r\\n stop,\\r\\n events = {n: {}},\\r\\n /*\\\\\\r\\n * eve\\r\\n [ method ]\\r\\n\\r\\n * Fires event with given `name`, given scope and other parameters.\\r\\n\\r\\n > Arguments\\r\\n\\r\\n - name (string) name of the *event*, dot (`.`) or slash (`/`) separated\\r\\n - scope (object) context for the event handlers\\r\\n - varargs (...) the rest of arguments will be sent to event handlers\\r\\n\\r\\n = (object) array of returned values from the listeners\\r\\n \\\\*/\\r\\n eve = function (name, scope) {\\r\\n name = String(name);\\r\\n var e = events,\\r\\n oldstop = stop,\\r\\n args = Array.prototype.slice.call(arguments, 2),\\r\\n listeners = eve.listeners(name),\\r\\n z = 0,\\r\\n f = false,\\r\\n l,\\r\\n indexed = [],\\r\\n queue = {},\\r\\n out = [],\\r\\n ce = current_event,\\r\\n errors = [];\\r\\n current_event = name;\\r\\n stop = 0;\\r\\n for (var i = 0, ii = listeners.length; i < ii; i++) if (\\\"zIndex\\\" in listeners[i]) {\\r\\n indexed.push(listeners[i].zIndex);\\r\\n if (listeners[i].zIndex < 0) {\\r\\n queue[listeners[i].zIndex] = listeners[i];\\r\\n }\\r\\n }\\r\\n indexed.sort(numsort);\\r\\n while (indexed[z] < 0) {\\r\\n l = queue[indexed[z++]];\\r\\n out.push(l.apply(scope, args));\\r\\n if (stop) {\\r\\n stop = oldstop;\\r\\n return out;\\r\\n }\\r\\n }\\r\\n for (i = 0; i < ii; i++) {\\r\\n l = listeners[i];\\r\\n if (\\\"zIndex\\\" in l) {\\r\\n if (l.zIndex == indexed[z]) {\\r\\n out.push(l.apply(scope, args));\\r\\n if (stop) {\\r\\n break;\\r\\n }\\r\\n do {\\r\\n z++;\\r\\n l = queue[indexed[z]];\\r\\n l && out.push(l.apply(scope, args));\\r\\n if (stop) {\\r\\n break;\\r\\n }\\r\\n } while (l)\\r\\n } else {\\r\\n queue[l.zIndex] = l;\\r\\n }\\r\\n } else {\\r\\n out.push(l.apply(scope, args));\\r\\n if (stop) {\\r\\n break;\\r\\n }\\r\\n }\\r\\n }\\r\\n stop = oldstop;\\r\\n current_event = ce;\\r\\n return out.length ? out : null;\\r\\n };\\r\\n // Undocumented. Debug only.\\r\\n eve._events = events;\\r\\n /*\\\\\\r\\n * eve.listeners\\r\\n [ method ]\\r\\n\\r\\n * Internal method which gives you array of all event handlers that will be triggered by the given `name`.\\r\\n\\r\\n > Arguments\\r\\n\\r\\n - name (string) name of the event, dot (`.`) or slash (`/`) separated\\r\\n\\r\\n = (array) array of event handlers\\r\\n \\\\*/\\r\\n eve.listeners = function (name) {\\r\\n var names = name.split(separator),\\r\\n e = events,\\r\\n item,\\r\\n items,\\r\\n k,\\r\\n i,\\r\\n ii,\\r\\n j,\\r\\n jj,\\r\\n nes,\\r\\n es = [e],\\r\\n out = [];\\r\\n for (i = 0, ii = names.length; i < ii; i++) {\\r\\n nes = [];\\r\\n for (j = 0, jj = es.length; j < jj; j++) {\\r\\n e = es[j].n;\\r\\n items = [e[names[i]], e[wildcard]];\\r\\n k = 2;\\r\\n while (k--) {\\r\\n item = items[k];\\r\\n if (item) {\\r\\n nes.push(item);\\r\\n out = out.concat(item.f || []);\\r\\n }\\r\\n }\\r\\n }\\r\\n es = nes;\\r\\n }\\r\\n return out;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * eve.on\\r\\n [ method ]\\r\\n **\\r\\n * Binds given event handler with a given name. You can use wildcards “`*`” for the names:\\r\\n | eve.on(\\\"*.under.*\\\", f);\\r\\n | eve(\\\"mouse.under.floor\\\"); // triggers f\\r\\n * Use @eve to trigger the listener.\\r\\n **\\r\\n > Arguments\\r\\n **\\r\\n - name (string) name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\\r\\n - f (function) event handler function\\r\\n **\\r\\n = (function) returned function accepts a single numeric parameter that represents z-index of the handler. It is an optional feature and only used when you need to ensure that some subset of handlers will be invoked in a given order, despite of the order of assignment.\\r\\n > Example:\\r\\n | eve.on(\\\"mouse\\\", eatIt)(2);\\r\\n | eve.on(\\\"mouse\\\", scream);\\r\\n | eve.on(\\\"mouse\\\", catchIt)(1);\\r\\n * This will ensure that `catchIt()` function will be called before `eatIt()`.\\r\\n *\\r\\n * If you want to put your handler before non-indexed handlers, specify a negative value.\\r\\n * Note: I assume most of the time you don’t need to worry about z-index, but it’s nice to have this feature “just in case”.\\r\\n \\\\*/\\r\\n eve.on = function (name, f) {\\r\\n name = String(name);\\r\\n if (typeof f != \\\"function\\\") {\\r\\n return function () {};\\r\\n }\\r\\n var names = name.split(separator),\\r\\n e = events;\\r\\n for (var i = 0, ii = names.length; i < ii; i++) {\\r\\n e = e.n;\\r\\n e = e.hasOwnProperty(names[i]) && e[names[i]] || (e[names[i]] = {n: {}});\\r\\n }\\r\\n e.f = e.f || [];\\r\\n for (i = 0, ii = e.f.length; i < ii; i++) if (e.f[i] == f) {\\r\\n return fun;\\r\\n }\\r\\n e.f.push(f);\\r\\n return function (zIndex) {\\r\\n if (+zIndex == +zIndex) {\\r\\n f.zIndex = +zIndex;\\r\\n }\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * eve.f\\r\\n [ method ]\\r\\n **\\r\\n * Returns function that will fire given event with optional arguments.\\r\\n * Arguments that will be passed to the result function will be also\\r\\n * concated to the list of final arguments.\\r\\n | el.onclick = eve.f(\\\"click\\\", 1, 2);\\r\\n | eve.on(\\\"click\\\", function (a, b, c) {\\r\\n | console.log(a, b, c); // 1, 2, [event object]\\r\\n | });\\r\\n > Arguments\\r\\n - event (string) event name\\r\\n - varargs (…) and any other arguments\\r\\n = (function) possible event handler function\\r\\n \\\\*/\\r\\n eve.f = function (event) {\\r\\n var attrs = [].slice.call(arguments, 1);\\r\\n return function () {\\r\\n eve.apply(null, [event, null].concat(attrs).concat([].slice.call(arguments, 0)));\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * eve.stop\\r\\n [ method ]\\r\\n **\\r\\n * Is used inside an event handler to stop the event, preventing any subsequent listeners from firing.\\r\\n \\\\*/\\r\\n eve.stop = function () {\\r\\n stop = 1;\\r\\n };\\r\\n /*\\\\\\r\\n * eve.nt\\r\\n [ method ]\\r\\n **\\r\\n * Could be used inside event handler to figure out actual name of the event.\\r\\n **\\r\\n > Arguments\\r\\n **\\r\\n - subname (string) #optional subname of the event\\r\\n **\\r\\n = (string) name of the event, if `subname` is not specified\\r\\n * or\\r\\n = (boolean) `true`, if current event’s name contains `subname`\\r\\n \\\\*/\\r\\n eve.nt = function (subname) {\\r\\n if (subname) {\\r\\n return new RegExp(\\\"(?:\\\\\\\\.|\\\\\\\\/|^)\\\" + subname + \\\"(?:\\\\\\\\.|\\\\\\\\/|$)\\\").test(current_event);\\r\\n }\\r\\n return current_event;\\r\\n };\\r\\n /*\\\\\\r\\n * eve.nts\\r\\n [ method ]\\r\\n **\\r\\n * Could be used inside event handler to figure out actual name of the event.\\r\\n **\\r\\n **\\r\\n = (array) names of the event\\r\\n \\\\*/\\r\\n eve.nts = function () {\\r\\n return current_event.split(separator);\\r\\n };\\r\\n /*\\\\\\r\\n * eve.off\\r\\n [ method ]\\r\\n **\\r\\n * Removes given function from the list of event listeners assigned to given name.\\r\\n * If no arguments specified all the events will be cleared.\\r\\n **\\r\\n > Arguments\\r\\n **\\r\\n - name (string) name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\\r\\n - f (function) event handler function\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * eve.unbind\\r\\n [ method ]\\r\\n **\\r\\n * See @eve.off\\r\\n \\\\*/\\r\\n eve.off = eve.unbind = function (name, f) {\\r\\n if (!name) {\\r\\n eve._events = events = {n: {}};\\r\\n return;\\r\\n }\\r\\n var names = name.split(separator),\\r\\n e,\\r\\n key,\\r\\n splice,\\r\\n i, ii, j, jj,\\r\\n cur = [events];\\r\\n for (i = 0, ii = names.length; i < ii; i++) {\\r\\n for (j = 0; j < cur.length; j += splice.length - 2) {\\r\\n splice = [j, 1];\\r\\n e = cur[j].n;\\r\\n if (names[i] != wildcard) {\\r\\n if (e[names[i]]) {\\r\\n splice.push(e[names[i]]);\\r\\n }\\r\\n } else {\\r\\n for (key in e) if (e[has](key)) {\\r\\n splice.push(e[key]);\\r\\n }\\r\\n }\\r\\n cur.splice.apply(cur, splice);\\r\\n }\\r\\n }\\r\\n for (i = 0, ii = cur.length; i < ii; i++) {\\r\\n e = cur[i];\\r\\n while (e.n) {\\r\\n if (f) {\\r\\n if (e.f) {\\r\\n for (j = 0, jj = e.f.length; j < jj; j++) if (e.f[j] == f) {\\r\\n e.f.splice(j, 1);\\r\\n break;\\r\\n }\\r\\n !e.f.length && delete e.f;\\r\\n }\\r\\n for (key in e.n) if (e.n[has](key) && e.n[key].f) {\\r\\n var funcs = e.n[key].f;\\r\\n for (j = 0, jj = funcs.length; j < jj; j++) if (funcs[j] == f) {\\r\\n funcs.splice(j, 1);\\r\\n break;\\r\\n }\\r\\n !funcs.length && delete e.n[key].f;\\r\\n }\\r\\n } else {\\r\\n delete e.f;\\r\\n for (key in e.n) if (e.n[has](key) && e.n[key].f) {\\r\\n delete e.n[key].f;\\r\\n }\\r\\n }\\r\\n e = e.n;\\r\\n }\\r\\n }\\r\\n };\\r\\n /*\\\\\\r\\n * eve.once\\r\\n [ method ]\\r\\n **\\r\\n * Binds given event handler with a given name to only run once then unbind itself.\\r\\n | eve.once(\\\"login\\\", f);\\r\\n | eve(\\\"login\\\"); // triggers f\\r\\n | eve(\\\"login\\\"); // no listeners\\r\\n * Use @eve to trigger the listener.\\r\\n **\\r\\n > Arguments\\r\\n **\\r\\n - name (string) name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\\r\\n - f (function) event handler function\\r\\n **\\r\\n = (function) same return function as @eve.on\\r\\n \\\\*/\\r\\n eve.once = function (name, f) {\\r\\n var f2 = function () {\\r\\n eve.unbind(name, f2);\\r\\n return f.apply(this, arguments);\\r\\n };\\r\\n return eve.on(name, f2);\\r\\n };\\r\\n /*\\\\\\r\\n * eve.version\\r\\n [ property (string) ]\\r\\n **\\r\\n * Current version of the library.\\r\\n \\\\*/\\r\\n eve.version = version;\\r\\n eve.toString = function () {\\r\\n return \\\"You are running Eve \\\" + version;\\r\\n };\\r\\n\\r\\n return eve;\\r\\n}));\\r\\n\\r\\n// ┌────────────────────────────────────────────────────────────────────┐ \\\\\\\\\\r\\n// │ Raphaël 2.1.4 - JavaScript Vector Library │ \\\\\\\\\\r\\n// ├────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Core Module │ \\\\\\\\\\r\\n// ├────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Licensed under the MIT (http://raphaeljs.com/license.html) license.│ \\\\\\\\\\r\\n// └────────────────────────────────────────────────────────────────────┘ \\\\\\\\\\r\\n\\r\\n(function (glob, factory) {\\r\\n if (typeof define === \\\"function\\\" && define.amd) {\\r\\n define(\\\"raphael.core\\\", [\\\"eve\\\"], function(eve) {\\r\\n return factory(eve);\\r\\n });\\r\\n } else if (typeof exports === \\\"object\\\") {\\r\\n module.exports = factory(require(\\\"eve\\\"));\\r\\n } else {\\r\\n glob.Raphael = factory(glob.eve);\\r\\n }\\r\\n}(this, function (eve) {\\r\\n /*\\\\\\r\\n * Raphael\\r\\n [ method ]\\r\\n **\\r\\n * Creates a canvas object on which to draw.\\r\\n * You must do this first, as all future calls to drawing methods\\r\\n * from this instance will be bound to this canvas.\\r\\n > Parameters\\r\\n **\\r\\n - container (HTMLElement|string) DOM element or its ID which is going to be a parent for drawing surface\\r\\n - width (number)\\r\\n - height (number)\\r\\n - callback (function) #optional callback function which is going to be executed in the context of newly created paper\\r\\n * or\\r\\n - x (number)\\r\\n - y (number)\\r\\n - width (number)\\r\\n - height (number)\\r\\n - callback (function) #optional callback function which is going to be executed in the context of newly created paper\\r\\n * or\\r\\n - all (array) (first 3 or 4 elements in the array are equal to [containerID, width, height] or [x, y, width, height]. The rest are element descriptions in format {type: type, <attributes>}). See @Paper.add.\\r\\n - callback (function) #optional callback function which is going to be executed in the context of newly created paper\\r\\n * or\\r\\n - onReadyCallback (function) function that is going to be called on DOM ready event. You can also subscribe to this event via Eve’s “DOMLoad” event. In this case method returns `undefined`.\\r\\n = (object) @Paper\\r\\n > Usage\\r\\n | // Each of the following examples create a canvas\\r\\n | // that is 320px wide by 200px high.\\r\\n | // Canvas is created at the viewport’s 10,50 coordinate.\\r\\n | var paper = Raphael(10, 50, 320, 200);\\r\\n | // Canvas is created at the top left corner of the #notepad element\\r\\n | // (or its top right corner in dir=\\\"rtl\\\" elements)\\r\\n | var paper = Raphael(document.getElementById(\\\"notepad\\\"), 320, 200);\\r\\n | // Same as above\\r\\n | var paper = Raphael(\\\"notepad\\\", 320, 200);\\r\\n | // Image dump\\r\\n | var set = Raphael([\\\"notepad\\\", 320, 200, {\\r\\n | type: \\\"rect\\\",\\r\\n | x: 10,\\r\\n | y: 10,\\r\\n | width: 25,\\r\\n | height: 25,\\r\\n | stroke: \\\"#f00\\\"\\r\\n | }, {\\r\\n | type: \\\"text\\\",\\r\\n | x: 30,\\r\\n | y: 40,\\r\\n | text: \\\"Dump\\\"\\r\\n | }]);\\r\\n \\\\*/\\r\\n function R(first) {\\r\\n if (R.is(first, \\\"function\\\")) {\\r\\n return loaded ? first() : eve.on(\\\"raphael.DOMload\\\", first);\\r\\n } else if (R.is(first, array)) {\\r\\n return R._engine.create[apply](R, first.splice(0, 3 + R.is(first[0], nu))).add(first);\\r\\n } else {\\r\\n var args = Array.prototype.slice.call(arguments, 0);\\r\\n if (R.is(args[args.length - 1], \\\"function\\\")) {\\r\\n var f = args.pop();\\r\\n return loaded ? f.call(R._engine.create[apply](R, args)) : eve.on(\\\"raphael.DOMload\\\", function () {\\r\\n f.call(R._engine.create[apply](R, args));\\r\\n });\\r\\n } else {\\r\\n return R._engine.create[apply](R, arguments);\\r\\n }\\r\\n }\\r\\n }\\r\\n R.version = \\\"2.1.4\\\";\\r\\n R.eve = eve;\\r\\n var loaded,\\r\\n separator = /[, ]+/,\\r\\n elements = {circle: 1, rect: 1, path: 1, ellipse: 1, text: 1, image: 1},\\r\\n formatrg = /\\\\{(\\\\d+)\\\\}/g,\\r\\n proto = \\\"prototype\\\",\\r\\n has = \\\"hasOwnProperty\\\",\\r\\n g = {\\r\\n doc: document,\\r\\n win: window\\r\\n },\\r\\n oldRaphael = {\\r\\n was: Object.prototype[has].call(g.win, \\\"Raphael\\\"),\\r\\n is: g.win.Raphael\\r\\n },\\r\\n Paper = function () {\\r\\n /*\\\\\\r\\n * Paper.ca\\r\\n [ property (object) ]\\r\\n **\\r\\n * Shortcut for @Paper.customAttributes\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Paper.customAttributes\\r\\n [ property (object) ]\\r\\n **\\r\\n * If you have a set of attributes that you would like to represent\\r\\n * as a function of some number you can do it easily with custom attributes:\\r\\n > Usage\\r\\n | paper.customAttributes.hue = function (num) {\\r\\n | num = num % 1;\\r\\n | return {fill: \\\"hsb(\\\" + num + \\\", 0.75, 1)\\\"};\\r\\n | };\\r\\n | // Custom attribute “hue” will change fill\\r\\n | // to be given hue with fixed saturation and brightness.\\r\\n | // Now you can use it like this:\\r\\n | var c = paper.circle(10, 10, 10).attr({hue: .45});\\r\\n | // or even like this:\\r\\n | c.animate({hue: 1}, 1e3);\\r\\n |\\r\\n | // You could also create custom attribute\\r\\n | // with multiple parameters:\\r\\n | paper.customAttributes.hsb = function (h, s, b) {\\r\\n | return {fill: \\\"hsb(\\\" + [h, s, b].join(\\\",\\\") + \\\")\\\"};\\r\\n | };\\r\\n | c.attr({hsb: \\\"0.5 .8 1\\\"});\\r\\n | c.animate({hsb: [1, 0, 0.5]}, 1e3);\\r\\n \\\\*/\\r\\n this.ca = this.customAttributes = {};\\r\\n },\\r\\n paperproto,\\r\\n appendChild = \\\"appendChild\\\",\\r\\n apply = \\\"apply\\\",\\r\\n concat = \\\"concat\\\",\\r\\n supportsTouch = ('ontouchstart' in g.win) || g.win.DocumentTouch && g.doc instanceof DocumentTouch, //taken from Modernizr touch test\\r\\n E = \\\"\\\",\\r\\n S = \\\" \\\",\\r\\n Str = String,\\r\\n split = \\\"split\\\",\\r\\n events = \\\"click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel\\\"[split](S),\\r\\n touchMap = {\\r\\n mousedown: \\\"touchstart\\\",\\r\\n mousemove: \\\"touchmove\\\",\\r\\n mouseup: \\\"touchend\\\"\\r\\n },\\r\\n lowerCase = Str.prototype.toLowerCase,\\r\\n math = Math,\\r\\n mmax = math.max,\\r\\n mmin = math.min,\\r\\n abs = math.abs,\\r\\n pow = math.pow,\\r\\n PI = math.PI,\\r\\n nu = \\\"number\\\",\\r\\n string = \\\"string\\\",\\r\\n array = \\\"array\\\",\\r\\n toString = \\\"toString\\\",\\r\\n fillString = \\\"fill\\\",\\r\\n objectToString = Object.prototype.toString,\\r\\n paper = {},\\r\\n push = \\\"push\\\",\\r\\n ISURL = R._ISURL = /^url\\\\(['\\\"]?(.+?)['\\\"]?\\\\)$/i,\\r\\n colourRegExp = /^\\\\s*((#[a-f\\\\d]{6})|(#[a-f\\\\d]{3})|rgba?\\\\(\\\\s*([\\\\d\\\\.]+%?\\\\s*,\\\\s*[\\\\d\\\\.]+%?\\\\s*,\\\\s*[\\\\d\\\\.]+%?(?:\\\\s*,\\\\s*[\\\\d\\\\.]+%?)?)\\\\s*\\\\)|hsba?\\\\(\\\\s*([\\\\d\\\\.]+(?:deg|\\\\xb0|%)?\\\\s*,\\\\s*[\\\\d\\\\.]+%?\\\\s*,\\\\s*[\\\\d\\\\.]+(?:%?\\\\s*,\\\\s*[\\\\d\\\\.]+)?)%?\\\\s*\\\\)|hsla?\\\\(\\\\s*([\\\\d\\\\.]+(?:deg|\\\\xb0|%)?\\\\s*,\\\\s*[\\\\d\\\\.]+%?\\\\s*,\\\\s*[\\\\d\\\\.]+(?:%?\\\\s*,\\\\s*[\\\\d\\\\.]+)?)%?\\\\s*\\\\))\\\\s*$/i,\\r\\n isnan = {\\\"NaN\\\": 1, \\\"Infinity\\\": 1, \\\"-Infinity\\\": 1},\\r\\n bezierrg = /^(?:cubic-)?bezier\\\\(([^,]+),([^,]+),([^,]+),([^\\\\)]+)\\\\)/,\\r\\n round = math.round,\\r\\n setAttribute = \\\"setAttribute\\\",\\r\\n toFloat = parseFloat,\\r\\n toInt = parseInt,\\r\\n upperCase = Str.prototype.toUpperCase,\\r\\n availableAttrs = R._availableAttrs = {\\r\\n \\\"arrow-end\\\": \\\"none\\\",\\r\\n \\\"arrow-start\\\": \\\"none\\\",\\r\\n blur: 0,\\r\\n \\\"clip-rect\\\": \\\"0 0 1e9 1e9\\\",\\r\\n cursor: \\\"default\\\",\\r\\n cx: 0,\\r\\n cy: 0,\\r\\n fill: \\\"#fff\\\",\\r\\n \\\"fill-opacity\\\": 1,\\r\\n font: '10px \\\"Arial\\\"',\\r\\n \\\"font-family\\\": '\\\"Arial\\\"',\\r\\n \\\"font-size\\\": \\\"10\\\",\\r\\n \\\"font-style\\\": \\\"normal\\\",\\r\\n \\\"font-weight\\\": 400,\\r\\n gradient: 0,\\r\\n height: 0,\\r\\n href: \\\"http://raphaeljs.com/\\\",\\r\\n \\\"letter-spacing\\\": 0,\\r\\n opacity: 1,\\r\\n path: \\\"M0,0\\\",\\r\\n r: 0,\\r\\n rx: 0,\\r\\n ry: 0,\\r\\n src: \\\"\\\",\\r\\n stroke: \\\"#000\\\",\\r\\n \\\"stroke-dasharray\\\": \\\"\\\",\\r\\n \\\"stroke-linecap\\\": \\\"butt\\\",\\r\\n \\\"stroke-linejoin\\\": \\\"butt\\\",\\r\\n \\\"stroke-miterlimit\\\": 0,\\r\\n \\\"stroke-opacity\\\": 1,\\r\\n \\\"stroke-width\\\": 1,\\r\\n \\\"stroke-scale\\\": false, // FreeGroup: draw2d enhancement\\r\\n target: \\\"_blank\\\",\\r\\n \\\"text-anchor\\\": \\\"middle\\\",\\r\\n title: \\\"Raphael\\\",\\r\\n transform: \\\"\\\",\\r\\n width: 0,\\r\\n x: 0,\\r\\n y: 0\\r\\n },\\r\\n availableAnimAttrs = R._availableAnimAttrs = {\\r\\n blur: nu,\\r\\n \\\"clip-rect\\\": \\\"csv\\\",\\r\\n cx: nu,\\r\\n cy: nu,\\r\\n fill: \\\"colour\\\",\\r\\n \\\"fill-opacity\\\": nu,\\r\\n \\\"font-size\\\": nu,\\r\\n height: nu,\\r\\n opacity: nu,\\r\\n path: \\\"path\\\",\\r\\n r: nu,\\r\\n rx: nu,\\r\\n ry: nu,\\r\\n stroke: \\\"colour\\\",\\r\\n \\\"stroke-opacity\\\": nu,\\r\\n \\\"stroke-width\\\": nu,\\r\\n transform: \\\"transform\\\",\\r\\n width: nu,\\r\\n x: nu,\\r\\n y: nu\\r\\n },\\r\\n whitespace = /[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]/g,\\r\\n commaSpaces = /[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*,[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*/,\\r\\n hsrg = {hs: 1, rg: 1},\\r\\n p2s = /,?([achlmqrstvxz]),?/gi,\\r\\n pathCommand = /([achlmrqstvz])[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029,]*((-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*,?[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*)+)/ig,\\r\\n tCommand = /([rstm])[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029,]*((-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*,?[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*)+)/ig,\\r\\n pathValues = /(-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?)[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*,?[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*/ig,\\r\\n radial_gradient = R._radial_gradient = /^r(?:\\\\(([^,]+?)[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*,[\\\\x09\\\\x0a\\\\x0b\\\\x0c\\\\x0d\\\\x20\\\\xa0\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\u2028\\\\u2029]*([^\\\\)]+?)\\\\))?/,\\r\\n eldata = {},\\r\\n sortByKey = function (a, b) {\\r\\n return a.key - b.key;\\r\\n },\\r\\n sortByNumber = function (a, b) {\\r\\n return toFloat(a) - toFloat(b);\\r\\n },\\r\\n fun = function () {},\\r\\n pipe = function (x) {\\r\\n return x;\\r\\n },\\r\\n rectPath = R._rectPath = function (x, y, w, h, r) {\\r\\n if (r) {\\r\\n return [[\\\"M\\\", x + r, y], [\\\"l\\\", w - r * 2, 0], [\\\"a\\\", r, r, 0, 0, 1, r, r], [\\\"l\\\", 0, h - r * 2], [\\\"a\\\", r, r, 0, 0, 1, -r, r], [\\\"l\\\", r * 2 - w, 0], [\\\"a\\\", r, r, 0, 0, 1, -r, -r], [\\\"l\\\", 0, r * 2 - h], [\\\"a\\\", r, r, 0, 0, 1, r, -r], [\\\"z\\\"]];\\r\\n }\\r\\n return [[\\\"M\\\", x, y], [\\\"l\\\", w, 0], [\\\"l\\\", 0, h], [\\\"l\\\", -w, 0], [\\\"z\\\"]];\\r\\n },\\r\\n ellipsePath = function (x, y, rx, ry) {\\r\\n if (ry == null) {\\r\\n ry = rx;\\r\\n }\\r\\n return [[\\\"M\\\", x, y], [\\\"m\\\", 0, -ry], [\\\"a\\\", rx, ry, 0, 1, 1, 0, 2 * ry], [\\\"a\\\", rx, ry, 0, 1, 1, 0, -2 * ry], [\\\"z\\\"]];\\r\\n },\\r\\n getPath = R._getPath = {\\r\\n path: function (el) {\\r\\n return el.attr(\\\"path\\\");\\r\\n },\\r\\n circle: function (el) {\\r\\n var a = el.attrs;\\r\\n return ellipsePath(a.cx, a.cy, a.r);\\r\\n },\\r\\n ellipse: function (el) {\\r\\n var a = el.attrs;\\r\\n return ellipsePath(a.cx, a.cy, a.rx, a.ry);\\r\\n },\\r\\n rect: function (el) {\\r\\n var a = el.attrs;\\r\\n return rectPath(a.x, a.y, a.width, a.height, a.r);\\r\\n },\\r\\n image: function (el) {\\r\\n var a = el.attrs;\\r\\n return rectPath(a.x, a.y, a.width, a.height);\\r\\n },\\r\\n text: function (el) {\\r\\n var bbox = el._getBBox();\\r\\n return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);\\r\\n },\\r\\n set : function(el) {\\r\\n var bbox = el._getBBox();\\r\\n return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);\\r\\n }\\r\\n },\\r\\n /*\\\\\\r\\n * Raphael.mapPath\\r\\n [ method ]\\r\\n **\\r\\n * Transform the path string with given matrix.\\r\\n > Parameters\\r\\n - path (string) path string\\r\\n - matrix (object) see @Matrix\\r\\n = (string) transformed path string\\r\\n \\\\*/\\r\\n mapPath = R.mapPath = function (path, matrix) {\\r\\n if (!matrix) {\\r\\n return path;\\r\\n }\\r\\n var x, y, i, j, ii, jj, pathi;\\r\\n path = path2curve(path);\\r\\n for (i = 0, ii = path.length; i < ii; i++) {\\r\\n pathi = path[i];\\r\\n for (j = 1, jj = pathi.length; j < jj; j += 2) {\\r\\n x = matrix.x(pathi[j], pathi[j + 1]);\\r\\n y = matrix.y(pathi[j], pathi[j + 1]);\\r\\n pathi[j] = x;\\r\\n pathi[j + 1] = y;\\r\\n }\\r\\n }\\r\\n return path;\\r\\n };\\r\\n\\r\\n R._g = g;\\r\\n /*\\\\\\r\\n * Raphael.type\\r\\n [ property (string) ]\\r\\n **\\r\\n * Can be “SVG”, “VML” or empty, depending on browser support.\\r\\n \\\\*/\\r\\n R.type = (g.win.SVGAngle || g.doc.implementation.hasFeature(\\\"http://www.w3.org/TR/SVG11/feature#BasicStructure\\\", \\\"1.1\\\") ? \\\"SVG\\\" : \\\"VML\\\");\\r\\n if (R.type == \\\"VML\\\") {\\r\\n var d = g.doc.createElement(\\\"div\\\"),\\r\\n b;\\r\\n d.innerHTML = '<v:shape adj=\\\"1\\\"/>';\\r\\n b = d.firstChild;\\r\\n b.style.behavior = \\\"url(#default#VML)\\\";\\r\\n if (!(b && typeof b.adj == \\\"object\\\")) {\\r\\n return (R.type = E);\\r\\n }\\r\\n d = null;\\r\\n }\\r\\n /*\\\\\\r\\n * Raphael.svg\\r\\n [ property (boolean) ]\\r\\n **\\r\\n * `true` if browser supports SVG.\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Raphael.vml\\r\\n [ property (boolean) ]\\r\\n **\\r\\n * `true` if browser supports VML.\\r\\n \\\\*/\\r\\n R.svg = !(R.vml = R.type == \\\"VML\\\");\\r\\n R._Paper = Paper;\\r\\n /*\\\\\\r\\n * Raphael.fn\\r\\n [ property (object) ]\\r\\n **\\r\\n * You can add your own method to the canvas. For example if you want to draw a pie chart,\\r\\n * you can create your own pie chart function and ship it as a Raphaël plugin. To do this\\r\\n * you need to extend the `Raphael.fn` object. You should modify the `fn` object before a\\r\\n * Raphaël instance is created, otherwise it will take no effect. Please note that the\\r\\n * ability for namespaced plugins was removed in Raphael 2.0. It is up to the plugin to\\r\\n * ensure any namespacing ensures proper context.\\r\\n > Usage\\r\\n | Raphael.fn.arrow = function (x1, y1, x2, y2, size) {\\r\\n | return this.path( ... );\\r\\n | };\\r\\n | // or create namespace\\r\\n | Raphael.fn.mystuff = {\\r\\n | arrow: function () {…},\\r\\n | star: function () {…},\\r\\n | // etc…\\r\\n | };\\r\\n | var paper = Raphael(10, 10, 630, 480);\\r\\n | // then use it\\r\\n | paper.arrow(10, 10, 30, 30, 5).attr({fill: \\\"#f00\\\"});\\r\\n | paper.mystuff.arrow();\\r\\n | paper.mystuff.star();\\r\\n \\\\*/\\r\\n R.fn = paperproto = Paper.prototype = R.prototype;\\r\\n R._id = 0;\\r\\n R._oid = 0;\\r\\n /*\\\\\\r\\n * Raphael.is\\r\\n [ method ]\\r\\n **\\r\\n * Handful of replacements for `typeof` operator.\\r\\n > Parameters\\r\\n - o (…) any object or primitive\\r\\n - type (string) name of the type, i.e. “string”, “function”, “number”, etc.\\r\\n = (boolean) is given value is of given type\\r\\n \\\\*/\\r\\n R.is = function (o, type) {\\r\\n type = lowerCase.call(type);\\r\\n if (type == \\\"finite\\\") {\\r\\n return !isnan[has](+o);\\r\\n }\\r\\n if (type == \\\"array\\\") {\\r\\n return o instanceof Array;\\r\\n }\\r\\n return (type == \\\"null\\\" && o === null) ||\\r\\n (type == typeof o && o !== null) ||\\r\\n (type == \\\"object\\\" && o === Object(o)) ||\\r\\n (type == \\\"array\\\" && Array.isArray && Array.isArray(o)) ||\\r\\n objectToString.call(o).slice(8, -1).toLowerCase() == type;\\r\\n };\\r\\n\\r\\n function clone(obj) {\\r\\n if (typeof obj == \\\"function\\\" || Object(obj) !== obj) {\\r\\n return obj;\\r\\n }\\r\\n var res = new obj.constructor;\\r\\n for (var key in obj) if (obj[has](key)) {\\r\\n res[key] = clone(obj[key]);\\r\\n }\\r\\n return res;\\r\\n }\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.angle\\r\\n [ method ]\\r\\n **\\r\\n * Returns angle between two or three points\\r\\n > Parameters\\r\\n - x1 (number) x coord of first point\\r\\n - y1 (number) y coord of first point\\r\\n - x2 (number) x coord of second point\\r\\n - y2 (number) y coord of second point\\r\\n - x3 (number) #optional x coord of third point\\r\\n - y3 (number) #optional y coord of third point\\r\\n = (number) angle in degrees.\\r\\n \\\\*/\\r\\n R.angle = function (x1, y1, x2, y2, x3, y3) {\\r\\n if (x3 == null) {\\r\\n var x = x1 - x2,\\r\\n y = y1 - y2;\\r\\n if (!x && !y) {\\r\\n return 0;\\r\\n }\\r\\n return (180 + math.atan2(-y, -x) * 180 / PI + 360) % 360;\\r\\n } else {\\r\\n return R.angle(x1, y1, x3, y3) - R.angle(x2, y2, x3, y3);\\r\\n }\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.rad\\r\\n [ method ]\\r\\n **\\r\\n * Transform angle to radians\\r\\n > Parameters\\r\\n - deg (number) angle in degrees\\r\\n = (number) angle in radians.\\r\\n \\\\*/\\r\\n R.rad = function (deg) {\\r\\n return deg % 360 * PI / 180;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.deg\\r\\n [ method ]\\r\\n **\\r\\n * Transform angle to degrees\\r\\n > Parameters\\r\\n - rad (number) angle in radians\\r\\n = (number) angle in degrees.\\r\\n \\\\*/\\r\\n R.deg = function (rad) {\\r\\n return Math.round ((rad * 180 / PI% 360)* 1000) / 1000;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.snapTo\\r\\n [ method ]\\r\\n **\\r\\n * Snaps given value to given grid.\\r\\n > Parameters\\r\\n - values (array|number) given array of values or step of the grid\\r\\n - value (number) value to adjust\\r\\n - tolerance (number) #optional tolerance for snapping. Default is `10`.\\r\\n = (number) adjusted value.\\r\\n \\\\*/\\r\\n R.snapTo = function (values, value, tolerance) {\\r\\n tolerance = R.is(tolerance, \\\"finite\\\") ? tolerance : 10;\\r\\n if (R.is(values, array)) {\\r\\n var i = values.length;\\r\\n while (i--) if (abs(values[i] - value) <= tolerance) {\\r\\n return values[i];\\r\\n }\\r\\n } else {\\r\\n values = +values;\\r\\n var rem = value % values;\\r\\n if (rem < tolerance) {\\r\\n return value - rem;\\r\\n }\\r\\n if (rem > values - tolerance) {\\r\\n return value - rem + values;\\r\\n }\\r\\n }\\r\\n return value;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.createUUID\\r\\n [ method ]\\r\\n **\\r\\n * Returns RFC4122, version 4 ID\\r\\n \\\\*/\\r\\n var createUUID = R.createUUID = (function (uuidRegEx, uuidReplacer) {\\r\\n return function () {\\r\\n return \\\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\\\".replace(uuidRegEx, uuidReplacer).toUpperCase();\\r\\n };\\r\\n })(/[xy]/g, function (c) {\\r\\n var r = math.random() * 16 | 0,\\r\\n v = c == \\\"x\\\" ? r : (r & 3 | 8);\\r\\n return v.toString(16);\\r\\n });\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.setWindow\\r\\n [ method ]\\r\\n **\\r\\n * Used when you need to draw in `<iframe>`. Switched window to the iframe one.\\r\\n > Parameters\\r\\n - newwin (window) new window object\\r\\n \\\\*/\\r\\n R.setWindow = function (newwin) {\\r\\n eve(\\\"raphael.setWindow\\\", R, g.win, newwin);\\r\\n g.win = newwin;\\r\\n g.doc = g.win.document;\\r\\n if (R._engine.initWin) {\\r\\n R._engine.initWin(g.win);\\r\\n }\\r\\n };\\r\\n var toHex = function (color) {\\r\\n if (R.vml) {\\r\\n // http://dean.edwards.name/weblog/2009/10/convert-any-colour-value-to-hex-in-msie/\\r\\n var trim = /^\\\\s+|\\\\s+$/g;\\r\\n var bod;\\r\\n try {\\r\\n var docum = new ActiveXObject(\\\"htmlfile\\\");\\r\\n docum.write(\\\"<body>\\\");\\r\\n docum.close();\\r\\n bod = docum.body;\\r\\n } catch(e) {\\r\\n bod = createPopup().document.body;\\r\\n }\\r\\n var range = bod.createTextRange();\\r\\n toHex = cacher(function (color) {\\r\\n try {\\r\\n bod.style.color = Str(color).replace(trim, E);\\r\\n var value = range.queryCommandValue(\\\"ForeColor\\\");\\r\\n value = ((value & 255) << 16) | (value & 65280) | ((value & 16711680) >>> 16);\\r\\n return \\\"#\\\" + (\\\"000000\\\" + value.toString(16)).slice(-6);\\r\\n } catch(e) {\\r\\n return \\\"none\\\";\\r\\n }\\r\\n });\\r\\n } else {\\r\\n var i = g.doc.createElement(\\\"i\\\");\\r\\n i.title = \\\"Rapha\\\\xebl Colour Picker\\\";\\r\\n i.style.display = \\\"none\\\";\\r\\n g.doc.body.appendChild(i);\\r\\n toHex = cacher(function (color) {\\r\\n i.style.color = color;\\r\\n return g.doc.defaultView.getComputedStyle(i, E).getPropertyValue(\\\"color\\\");\\r\\n });\\r\\n }\\r\\n return toHex(color);\\r\\n },\\r\\n hsbtoString = function () {\\r\\n return \\\"hsb(\\\" + [this.h, this.s, this.b] + \\\")\\\";\\r\\n },\\r\\n hsltoString = function () {\\r\\n return \\\"hsl(\\\" + [this.h, this.s, this.l] + \\\")\\\";\\r\\n },\\r\\n rgbtoString = function () {\\r\\n return this.hex;\\r\\n },\\r\\n prepareRGB = function (r, g, b) {\\r\\n if (g == null && R.is(r, \\\"object\\\") && \\\"r\\\" in r && \\\"g\\\" in r && \\\"b\\\" in r) {\\r\\n b = r.b;\\r\\n g = r.g;\\r\\n r = r.r;\\r\\n }\\r\\n if (g == null && R.is(r, string)) {\\r\\n var clr = R.getRGB(r);\\r\\n r = clr.r;\\r\\n g = clr.g;\\r\\n b = clr.b;\\r\\n }\\r\\n if (r > 1 || g > 1 || b > 1) {\\r\\n r /= 255;\\r\\n g /= 255;\\r\\n b /= 255;\\r\\n }\\r\\n\\r\\n return [r, g, b];\\r\\n },\\r\\n packageRGB = function (r, g, b, o) {\\r\\n r *= 255;\\r\\n g *= 255;\\r\\n b *= 255;\\r\\n var rgb = {\\r\\n r: r,\\r\\n g: g,\\r\\n b: b,\\r\\n hex: R.rgb(r, g, b),\\r\\n toString: rgbtoString\\r\\n };\\r\\n R.is(o, \\\"finite\\\") && (rgb.opacity = o);\\r\\n return rgb;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.color\\r\\n [ method ]\\r\\n **\\r\\n * Parses the color string and returns object with all values for the given color.\\r\\n > Parameters\\r\\n - clr (string) color string in one of the supported formats (see @Raphael.getRGB)\\r\\n = (object) Combined RGB & HSB object in format:\\r\\n o {\\r\\n o r (number) red,\\r\\n o g (number) green,\\r\\n o b (number) blue,\\r\\n o hex (string) color in HTML/CSS format: #••••••,\\r\\n o error (boolean) `true` if string can’t be parsed,\\r\\n o h (number) hue,\\r\\n o s (number) saturation,\\r\\n o v (number) value (brightness),\\r\\n o l (number) lightness\\r\\n o }\\r\\n \\\\*/\\r\\n R.color = function (clr) {\\r\\n var rgb;\\r\\n if (R.is(clr, \\\"object\\\") && \\\"h\\\" in clr && \\\"s\\\" in clr && \\\"b\\\" in clr) {\\r\\n rgb = R.hsb2rgb(clr);\\r\\n clr.r = rgb.r;\\r\\n clr.g = rgb.g;\\r\\n clr.b = rgb.b;\\r\\n clr.hex = rgb.hex;\\r\\n } else if (R.is(clr, \\\"object\\\") && \\\"h\\\" in clr && \\\"s\\\" in clr && \\\"l\\\" in clr) {\\r\\n rgb = R.hsl2rgb(clr);\\r\\n clr.r = rgb.r;\\r\\n clr.g = rgb.g;\\r\\n clr.b = rgb.b;\\r\\n clr.hex = rgb.hex;\\r\\n } else {\\r\\n if (R.is(clr, \\\"string\\\")) {\\r\\n clr = R.getRGB(clr);\\r\\n }\\r\\n if (R.is(clr, \\\"object\\\") && \\\"r\\\" in clr && \\\"g\\\" in clr && \\\"b\\\" in clr) {\\r\\n rgb = R.rgb2hsl(clr);\\r\\n clr.h = rgb.h;\\r\\n clr.s = rgb.s;\\r\\n clr.l = rgb.l;\\r\\n rgb = R.rgb2hsb(clr);\\r\\n clr.v = rgb.b;\\r\\n } else {\\r\\n clr = {hex: \\\"none\\\"};\\r\\n clr.r = clr.g = clr.b = clr.h = clr.s = clr.v = clr.l = -1;\\r\\n }\\r\\n }\\r\\n clr.toString = rgbtoString;\\r\\n return clr;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.hsb2rgb\\r\\n [ method ]\\r\\n **\\r\\n * Converts HSB values to RGB object.\\r\\n > Parameters\\r\\n - h (number) hue\\r\\n - s (number) saturation\\r\\n - v (number) value or brightness\\r\\n = (object) RGB object in format:\\r\\n o {\\r\\n o r (number) red,\\r\\n o g (number) green,\\r\\n o b (number) blue,\\r\\n o hex (string) color in HTML/CSS format: #••••••\\r\\n o }\\r\\n \\\\*/\\r\\n R.hsb2rgb = function (h, s, v, o) {\\r\\n if (this.is(h, \\\"object\\\") && \\\"h\\\" in h && \\\"s\\\" in h && \\\"b\\\" in h) {\\r\\n v = h.b;\\r\\n s = h.s;\\r\\n o = h.o;\\r\\n h = h.h;\\r\\n }\\r\\n h *= 360;\\r\\n var R, G, B, X, C;\\r\\n h = (h % 360) / 60;\\r\\n C = v * s;\\r\\n X = C * (1 - abs(h % 2 - 1));\\r\\n R = G = B = v - C;\\r\\n\\r\\n h = ~~h;\\r\\n R += [C, X, 0, 0, X, C][h];\\r\\n G += [X, C, C, X, 0, 0][h];\\r\\n B += [0, 0, X, C, C, X][h];\\r\\n return packageRGB(R, G, B, o);\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.hsl2rgb\\r\\n [ method ]\\r\\n **\\r\\n * Converts HSL values to RGB object.\\r\\n > Parameters\\r\\n - h (number) hue\\r\\n - s (number) saturation\\r\\n - l (number) luminosity\\r\\n = (object) RGB object in format:\\r\\n o {\\r\\n o r (number) red,\\r\\n o g (number) green,\\r\\n o b (number) blue,\\r\\n o hex (string) color in HTML/CSS format: #••••••\\r\\n o }\\r\\n \\\\*/\\r\\n R.hsl2rgb = function (h, s, l, o) {\\r\\n if (this.is(h, \\\"object\\\") && \\\"h\\\" in h && \\\"s\\\" in h && \\\"l\\\" in h) {\\r\\n l = h.l;\\r\\n s = h.s;\\r\\n h = h.h;\\r\\n }\\r\\n if (h > 1 || s > 1 || l > 1) {\\r\\n h /= 360;\\r\\n s /= 100;\\r\\n l /= 100;\\r\\n }\\r\\n h *= 360;\\r\\n var R, G, B, X, C;\\r\\n h = (h % 360) / 60;\\r\\n C = 2 * s * (l < .5 ? l : 1 - l);\\r\\n X = C * (1 - abs(h % 2 - 1));\\r\\n R = G = B = l - C / 2;\\r\\n\\r\\n h = ~~h;\\r\\n R += [C, X, 0, 0, X, C][h];\\r\\n G += [X, C, C, X, 0, 0][h];\\r\\n B += [0, 0, X, C, C, X][h];\\r\\n return packageRGB(R, G, B, o);\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.rgb2hsb\\r\\n [ method ]\\r\\n **\\r\\n * Converts RGB values to HSB object.\\r\\n > Parameters\\r\\n - r (number) red\\r\\n - g (number) green\\r\\n - b (number) blue\\r\\n = (object) HSB object in format:\\r\\n o {\\r\\n o h (number) hue\\r\\n o s (number) saturation\\r\\n o b (number) brightness\\r\\n o }\\r\\n \\\\*/\\r\\n R.rgb2hsb = function (r, g, b) {\\r\\n b = prepareRGB(r, g, b);\\r\\n r = b[0];\\r\\n g = b[1];\\r\\n b = b[2];\\r\\n\\r\\n var H, S, V, C;\\r\\n V = mmax(r, g, b);\\r\\n C = V - mmin(r, g, b);\\r\\n H = (C == 0 ? null :\\r\\n V == r ? (g - b) / C :\\r\\n V == g ? (b - r) / C + 2 :\\r\\n (r - g) / C + 4\\r\\n );\\r\\n H = ((H + 360) % 6) * 60 / 360;\\r\\n S = C == 0 ? 0 : C / V;\\r\\n return {h: H, s: S, b: V, toString: hsbtoString};\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.rgb2hsl\\r\\n [ method ]\\r\\n **\\r\\n * Converts RGB values to HSL object.\\r\\n > Parameters\\r\\n - r (number) red\\r\\n - g (number) green\\r\\n - b (number) blue\\r\\n = (object) HSL object in format:\\r\\n o {\\r\\n o h (number) hue\\r\\n o s (number) saturation\\r\\n o l (number) luminosity\\r\\n o }\\r\\n \\\\*/\\r\\n R.rgb2hsl = function (r, g, b) {\\r\\n b = prepareRGB(r, g, b);\\r\\n r = b[0];\\r\\n g = b[1];\\r\\n b = b[2];\\r\\n\\r\\n var H, S, L, M, m, C;\\r\\n M = mmax(r, g, b);\\r\\n m = mmin(r, g, b);\\r\\n C = M - m;\\r\\n H = (C == 0 ? null :\\r\\n M == r ? (g - b) / C :\\r\\n M == g ? (b - r) / C + 2 :\\r\\n (r - g) / C + 4);\\r\\n H = ((H + 360) % 6) * 60 / 360;\\r\\n L = (M + m) / 2;\\r\\n S = (C == 0 ? 0 :\\r\\n L < .5 ? C / (2 * L) :\\r\\n C / (2 - 2 * L));\\r\\n return {h: H, s: S, l: L, toString: hsltoString};\\r\\n };\\r\\n R._path2string = function () {\\r\\n return this.join(\\\",\\\").replace(p2s, \\\"$1\\\");\\r\\n };\\r\\n function repush(array, item) {\\r\\n for (var i = 0, ii = array.length; i < ii; i++) if (array[i] === item) {\\r\\n return array.push(array.splice(i, 1)[0]);\\r\\n }\\r\\n }\\r\\n function cacher(f, scope, postprocessor) {\\r\\n function newf() {\\r\\n var arg = Array.prototype.slice.call(arguments, 0),\\r\\n args = arg.join(\\\"\\\\u2400\\\"),\\r\\n cache = newf.cache = newf.cache || {},\\r\\n count = newf.count = newf.count || [];\\r\\n if (cache[has](args)) {\\r\\n repush(count, args);\\r\\n return postprocessor ? postprocessor(cache[args]) : cache[args];\\r\\n }\\r\\n count.length >= 1e3 && delete cache[count.shift()];\\r\\n count.push(args);\\r\\n cache[args] = f[apply](scope, arg);\\r\\n return postprocessor ? postprocessor(cache[args]) : cache[args];\\r\\n }\\r\\n return newf;\\r\\n }\\r\\n\\r\\n var preload = R._preload = function (src, f) {\\r\\n var img = g.doc.createElement(\\\"img\\\");\\r\\n img.style.cssText = \\\"position:absolute;left:-9999em;top:-9999em\\\";\\r\\n img.onload = function () {\\r\\n f.call(this);\\r\\n this.onload = null;\\r\\n g.doc.body.removeChild(this);\\r\\n };\\r\\n img.onerror = function () {\\r\\n g.doc.body.removeChild(this);\\r\\n };\\r\\n g.doc.body.appendChild(img);\\r\\n img.src = src;\\r\\n };\\r\\n\\r\\n function clrToString() {\\r\\n return this.hex;\\r\\n }\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.getRGB\\r\\n [ method ]\\r\\n **\\r\\n * Parses colour string as RGB object\\r\\n > Parameters\\r\\n - colour (string) colour string in one of formats:\\r\\n # <ul>\\r\\n # <li>Colour name (“<code>red</code>”, “<code>green</code>”, “<code>cornflowerblue</code>”, etc)</li>\\r\\n # <li>#••• — shortened HTML colour: (“<code>#000</code>”, “<code>#fc0</code>”, etc)</li>\\r\\n # <li>#•••••• — full length HTML colour: (“<code>#000000</code>”, “<code>#bd2300</code>”)</li>\\r\\n # <li>rgb(•••, •••, •••) — red, green and blue channels’ values: (“<code>rgb(200, 100, 0)</code>”)</li>\\r\\n # <li>rgb(•••%, •••%, •••%) — same as above, but in %: (“<code>rgb(100%, 175%, 0%)</code>”)</li>\\r\\n # <li>hsb(•••, •••, •••) — hue, saturation and brightness values: (“<code>hsb(0.5, 0.25, 1)</code>”)</li>\\r\\n # <li>hsb(•••%, •••%, •••%) — same as above, but in %</li>\\r\\n # <li>hsl(•••, •••, •••) — same as hsb</li>\\r\\n # <li>hsl(•••%, •••%, •••%) — same as hsb</li>\\r\\n # </ul>\\r\\n = (object) RGB object in format:\\r\\n o {\\r\\n o r (number) red,\\r\\n o g (number) green,\\r\\n o b (number) blue\\r\\n o hex (string) color in HTML/CSS format: #••••••,\\r\\n o error (boolean) true if string can’t be parsed\\r\\n o }\\r\\n \\\\*/\\r\\n R.getRGB = cacher(function (colour) {\\r\\n if (!colour || !!((colour = Str(colour)).indexOf(\\\"-\\\") + 1)) {\\r\\n return {r: -1, g: -1, b: -1, hex: \\\"none\\\", error: 1, toString: clrToString};\\r\\n }\\r\\n if (colour == \\\"none\\\") {\\r\\n return {r: -1, g: -1, b: -1, hex: \\\"none\\\", toString: clrToString};\\r\\n }\\r\\n !(hsrg[has](colour.toLowerCase().substring(0, 2)) || colour.charAt() == \\\"#\\\") && (colour = toHex(colour));\\r\\n var res,\\r\\n red,\\r\\n green,\\r\\n blue,\\r\\n opacity,\\r\\n t,\\r\\n values,\\r\\n rgb = colour.match(colourRegExp);\\r\\n if (rgb) {\\r\\n if (rgb[2]) {\\r\\n blue = toInt(rgb[2].substring(5), 16);\\r\\n green = toInt(rgb[2].substring(3, 5), 16);\\r\\n red = toInt(rgb[2].substring(1, 3), 16);\\r\\n }\\r\\n if (rgb[3]) {\\r\\n blue = toInt((t = rgb[3].charAt(3)) + t, 16);\\r\\n green = toInt((t = rgb[3].charAt(2)) + t, 16);\\r\\n red = toInt((t = rgb[3].charAt(1)) + t, 16);\\r\\n }\\r\\n if (rgb[4]) {\\r\\n values = rgb[4][split](commaSpaces);\\r\\n red = toFloat(values[0]);\\r\\n values[0].slice(-1) == \\\"%\\\" && (red *= 2.55);\\r\\n green = toFloat(values[1]);\\r\\n values[1].slice(-1) == \\\"%\\\" && (green *= 2.55);\\r\\n blue = toFloat(values[2]);\\r\\n values[2].slice(-1) == \\\"%\\\" && (blue *= 2.55);\\r\\n rgb[1].toLowerCase().slice(0, 4) == \\\"rgba\\\" && (opacity = toFloat(values[3]));\\r\\n values[3] && values[3].slice(-1) == \\\"%\\\" && (opacity /= 100);\\r\\n }\\r\\n if (rgb[5]) {\\r\\n values = rgb[5][split](commaSpaces);\\r\\n red = toFloat(values[0]);\\r\\n values[0].slice(-1) == \\\"%\\\" && (red *= 2.55);\\r\\n green = toFloat(values[1]);\\r\\n values[1].slice(-1) == \\\"%\\\" && (green *= 2.55);\\r\\n blue = toFloat(values[2]);\\r\\n values[2].slice(-1) == \\\"%\\\" && (blue *= 2.55);\\r\\n (values[0].slice(-3) == \\\"deg\\\" || values[0].slice(-1) == \\\"\\\\xb0\\\") && (red /= 360);\\r\\n rgb[1].toLowerCase().slice(0, 4) == \\\"hsba\\\" && (opacity = toFloat(values[3]));\\r\\n values[3] && values[3].slice(-1) == \\\"%\\\" && (opacity /= 100);\\r\\n return R.hsb2rgb(red, green, blue, opacity);\\r\\n }\\r\\n if (rgb[6]) {\\r\\n values = rgb[6][split](commaSpaces);\\r\\n red = toFloat(values[0]);\\r\\n values[0].slice(-1) == \\\"%\\\" && (red *= 2.55);\\r\\n green = toFloat(values[1]);\\r\\n values[1].slice(-1) == \\\"%\\\" && (green *= 2.55);\\r\\n blue = toFloat(values[2]);\\r\\n values[2].slice(-1) == \\\"%\\\" && (blue *= 2.55);\\r\\n (values[0].slice(-3) == \\\"deg\\\" || values[0].slice(-1) == \\\"\\\\xb0\\\") && (red /= 360);\\r\\n rgb[1].toLowerCase().slice(0, 4) == \\\"hsla\\\" && (opacity = toFloat(values[3]));\\r\\n values[3] && values[3].slice(-1) == \\\"%\\\" && (opacity /= 100);\\r\\n return R.hsl2rgb(red, green, blue, opacity);\\r\\n }\\r\\n rgb = {r: red, g: green, b: blue, toString: clrToString};\\r\\n rgb.hex = \\\"#\\\" + (16777216 | blue | (green << 8) | (red << 16)).toString(16).slice(1);\\r\\n R.is(opacity, \\\"finite\\\") && (rgb.opacity = opacity);\\r\\n return rgb;\\r\\n }\\r\\n return {r: -1, g: -1, b: -1, hex: \\\"none\\\", error: 1, toString: clrToString};\\r\\n }, R);\\r\\n /*\\\\\\r\\n * Raphael.hsb\\r\\n [ method ]\\r\\n **\\r\\n * Converts HSB values to hex representation of the colour.\\r\\n > Parameters\\r\\n - h (number) hue\\r\\n - s (number) saturation\\r\\n - b (number) value or brightness\\r\\n = (string) hex representation of the colour.\\r\\n \\\\*/\\r\\n R.hsb = cacher(function (h, s, b) {\\r\\n return R.hsb2rgb(h, s, b).hex;\\r\\n });\\r\\n /*\\\\\\r\\n * Raphael.hsl\\r\\n [ method ]\\r\\n **\\r\\n * Converts HSL values to hex representation of the colour.\\r\\n > Parameters\\r\\n - h (number) hue\\r\\n - s (number) saturation\\r\\n - l (number) luminosity\\r\\n = (string) hex representation of the colour.\\r\\n \\\\*/\\r\\n R.hsl = cacher(function (h, s, l) {\\r\\n return R.hsl2rgb(h, s, l).hex;\\r\\n });\\r\\n /*\\\\\\r\\n * Raphael.rgb\\r\\n [ method ]\\r\\n **\\r\\n * Converts RGB values to hex representation of the colour.\\r\\n > Parameters\\r\\n - r (number) red\\r\\n - g (number) green\\r\\n - b (number) blue\\r\\n = (string) hex representation of the colour.\\r\\n \\\\*/\\r\\n R.rgb = cacher(function (r, g, b) {\\r\\n function round(x) { return (x + 0.5) | 0; }\\r\\n return \\\"#\\\" + (16777216 | round(b) | (round(g) << 8) | (round(r) << 16)).toString(16).slice(1);\\r\\n });\\r\\n /*\\\\\\r\\n * Raphael.getColor\\r\\n [ method ]\\r\\n **\\r\\n * On each call returns next colour in the spectrum. To reset it back to red call @Raphael.getColor.reset\\r\\n > Parameters\\r\\n - value (number) #optional brightness, default is `0.75`\\r\\n = (string) hex representation of the colour.\\r\\n \\\\*/\\r\\n R.getColor = function (value) {\\r\\n var start = this.getColor.start = this.getColor.start || {h: 0, s: 1, b: value || .75},\\r\\n rgb = this.hsb2rgb(start.h, start.s, start.b);\\r\\n start.h += .075;\\r\\n if (start.h > 1) {\\r\\n start.h = 0;\\r\\n start.s -= .2;\\r\\n start.s <= 0 && (this.getColor.start = {h: 0, s: 1, b: start.b});\\r\\n }\\r\\n return rgb.hex;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.getColor.reset\\r\\n [ method ]\\r\\n **\\r\\n * Resets spectrum position for @Raphael.getColor back to red.\\r\\n \\\\*/\\r\\n R.getColor.reset = function () {\\r\\n delete this.start;\\r\\n };\\r\\n\\r\\n // http://schepers.cc/getting-to-the-point\\r\\n function catmullRom2bezier(crp, z) {\\r\\n var d = [];\\r\\n for (var i = 0, iLen = crp.length; iLen - 2 * !z > i; i += 2) {\\r\\n var p = [\\r\\n {x: +crp[i - 2], y: +crp[i - 1]},\\r\\n {x: +crp[i], y: +crp[i + 1]},\\r\\n {x: +crp[i + 2], y: +crp[i + 3]},\\r\\n {x: +crp[i + 4], y: +crp[i + 5]}\\r\\n ];\\r\\n if (z) {\\r\\n if (!i) {\\r\\n p[0] = {x: +crp[iLen - 2], y: +crp[iLen - 1]};\\r\\n } else if (iLen - 4 == i) {\\r\\n p[3] = {x: +crp[0], y: +crp[1]};\\r\\n } else if (iLen - 2 == i) {\\r\\n p[2] = {x: +crp[0], y: +crp[1]};\\r\\n p[3] = {x: +crp[2], y: +crp[3]};\\r\\n }\\r\\n } else {\\r\\n if (iLen - 4 == i) {\\r\\n p[3] = p[2];\\r\\n } else if (!i) {\\r\\n p[0] = {x: +crp[i], y: +crp[i + 1]};\\r\\n }\\r\\n }\\r\\n d.push([\\\"C\\\",\\r\\n (-p[0].x + 6 * p[1].x + p[2].x) / 6,\\r\\n (-p[0].y + 6 * p[1].y + p[2].y) / 6,\\r\\n (p[1].x + 6 * p[2].x - p[3].x) / 6,\\r\\n (p[1].y + 6*p[2].y - p[3].y) / 6,\\r\\n p[2].x,\\r\\n p[2].y\\r\\n ]);\\r\\n }\\r\\n\\r\\n return d;\\r\\n }\\r\\n /*\\\\\\r\\n * Raphael.parsePathString\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Parses given path string into an array of arrays of path segments.\\r\\n > Parameters\\r\\n - pathString (string|array) path string or array of segments (in the last case it will be returned straight away)\\r\\n = (array) array of segments.\\r\\n \\\\*/\\r\\n R.parsePathString = function (pathString) {\\r\\n if (!pathString) {\\r\\n return null;\\r\\n }\\r\\n var pth = paths(pathString);\\r\\n if (pth.arr) {\\r\\n return pathClone(pth.arr);\\r\\n }\\r\\n\\r\\n var paramCounts = {a: 7, c: 6, h: 1, l: 2, m: 2, r: 4, q: 4, s: 4, t: 2, v: 1, z: 0},\\r\\n data = [];\\r\\n if (R.is(pathString, array) && R.is(pathString[0], array)) { // rough assumption\\r\\n data = pathClone(pathString);\\r\\n }\\r\\n if (!data.length) {\\r\\n Str(pathString).replace(pathCommand, function (a, b, c) {\\r\\n var params = [],\\r\\n name = b.toLowerCase();\\r\\n c.replace(pathValues, function (a, b) {\\r\\n b && params.push(+b);\\r\\n });\\r\\n if (name == \\\"m\\\" && params.length > 2) {\\r\\n data.push([b][concat](params.splice(0, 2)));\\r\\n name = \\\"l\\\";\\r\\n b = b == \\\"m\\\" ? \\\"l\\\" : \\\"L\\\";\\r\\n }\\r\\n if (name == \\\"r\\\") {\\r\\n data.push([b][concat](params));\\r\\n } else while (params.length >= paramCounts[name]) {\\r\\n data.push([b][concat](params.splice(0, paramCounts[name])));\\r\\n if (!paramCounts[name]) {\\r\\n break;\\r\\n }\\r\\n }\\r\\n });\\r\\n }\\r\\n data.toString = R._path2string;\\r\\n pth.arr = pathClone(data);\\r\\n return data;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.parseTransformString\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Parses given path string into an array of transformations.\\r\\n > Parameters\\r\\n - TString (string|array) transform string or array of transformations (in the last case it will be returned straight away)\\r\\n = (array) array of transformations.\\r\\n \\\\*/\\r\\n R.parseTransformString = cacher(function (TString) {\\r\\n if (!TString) {\\r\\n return null;\\r\\n }\\r\\n var paramCounts = {r: 3, s: 4, t: 2, m: 6},\\r\\n data = [];\\r\\n if (R.is(TString, array) && R.is(TString[0], array)) { // rough assumption\\r\\n data = pathClone(TString);\\r\\n }\\r\\n if (!data.length) {\\r\\n Str(TString).replace(tCommand, function (a, b, c) {\\r\\n var params = [],\\r\\n name = lowerCase.call(b);\\r\\n c.replace(pathValues, function (a, b) {\\r\\n b && params.push(+b);\\r\\n });\\r\\n data.push([b][concat](params));\\r\\n });\\r\\n }\\r\\n data.toString = R._path2string;\\r\\n return data;\\r\\n });\\r\\n // PATHS\\r\\n var paths = function (ps) {\\r\\n var p = paths.ps = paths.ps || {};\\r\\n if (p[ps]) {\\r\\n p[ps].sleep = 100;\\r\\n } else {\\r\\n p[ps] = {\\r\\n sleep: 100\\r\\n };\\r\\n }\\r\\n setTimeout(function () {\\r\\n for (var key in p) if (p[has](key) && key != ps) {\\r\\n p[key].sleep--;\\r\\n !p[key].sleep && delete p[key];\\r\\n }\\r\\n });\\r\\n return p[ps];\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.findDotsAtSegment\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Find dot coordinates on the given cubic bezier curve at the given t.\\r\\n > Parameters\\r\\n - p1x (number) x of the first point of the curve\\r\\n - p1y (number) y of the first point of the curve\\r\\n - c1x (number) x of the first anchor of the curve\\r\\n - c1y (number) y of the first anchor of the curve\\r\\n - c2x (number) x of the second anchor of the curve\\r\\n - c2y (number) y of the second anchor of the curve\\r\\n - p2x (number) x of the second point of the curve\\r\\n - p2y (number) y of the second point of the curve\\r\\n - t (number) position on the curve (0..1)\\r\\n = (object) point information in format:\\r\\n o {\\r\\n o x: (number) x coordinate of the point\\r\\n o y: (number) y coordinate of the point\\r\\n o m: {\\r\\n o x: (number) x coordinate of the left anchor\\r\\n o y: (number) y coordinate of the left anchor\\r\\n o }\\r\\n o n: {\\r\\n o x: (number) x coordinate of the right anchor\\r\\n o y: (number) y coordinate of the right anchor\\r\\n o }\\r\\n o start: {\\r\\n o x: (number) x coordinate of the start of the curve\\r\\n o y: (number) y coordinate of the start of the curve\\r\\n o }\\r\\n o end: {\\r\\n o x: (number) x coordinate of the end of the curve\\r\\n o y: (number) y coordinate of the end of the curve\\r\\n o }\\r\\n o alpha: (number) angle of the curve derivative at the point\\r\\n o }\\r\\n \\\\*/\\r\\n R.findDotsAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {\\r\\n var t1 = 1 - t,\\r\\n t13 = pow(t1, 3),\\r\\n t12 = pow(t1, 2),\\r\\n t2 = t * t,\\r\\n t3 = t2 * t,\\r\\n x = t13 * p1x + t12 * 3 * t * c1x + t1 * 3 * t * t * c2x + t3 * p2x,\\r\\n y = t13 * p1y + t12 * 3 * t * c1y + t1 * 3 * t * t * c2y + t3 * p2y,\\r\\n mx = p1x + 2 * t * (c1x - p1x) + t2 * (c2x - 2 * c1x + p1x),\\r\\n my = p1y + 2 * t * (c1y - p1y) + t2 * (c2y - 2 * c1y + p1y),\\r\\n nx = c1x + 2 * t * (c2x - c1x) + t2 * (p2x - 2 * c2x + c1x),\\r\\n ny = c1y + 2 * t * (c2y - c1y) + t2 * (p2y - 2 * c2y + c1y),\\r\\n ax = t1 * p1x + t * c1x,\\r\\n ay = t1 * p1y + t * c1y,\\r\\n cx = t1 * c2x + t * p2x,\\r\\n cy = t1 * c2y + t * p2y,\\r\\n alpha = (90 - math.atan2(mx - nx, my - ny) * 180 / PI);\\r\\n (mx > nx || my < ny) && (alpha += 180);\\r\\n return {\\r\\n x: x,\\r\\n y: y,\\r\\n m: {x: mx, y: my},\\r\\n n: {x: nx, y: ny},\\r\\n start: {x: ax, y: ay},\\r\\n end: {x: cx, y: cy},\\r\\n alpha: alpha\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.bezierBBox\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Return bounding box of a given cubic bezier curve\\r\\n > Parameters\\r\\n - p1x (number) x of the first point of the curve\\r\\n - p1y (number) y of the first point of the curve\\r\\n - c1x (number) x of the first anchor of the curve\\r\\n - c1y (number) y of the first anchor of the curve\\r\\n - c2x (number) x of the second anchor of the curve\\r\\n - c2y (number) y of the second anchor of the curve\\r\\n - p2x (number) x of the second point of the curve\\r\\n - p2y (number) y of the second point of the curve\\r\\n * or\\r\\n - bez (array) array of six points for bezier curve\\r\\n = (object) point information in format:\\r\\n o {\\r\\n o min: {\\r\\n o x: (number) x coordinate of the left point\\r\\n o y: (number) y coordinate of the top point\\r\\n o }\\r\\n o max: {\\r\\n o x: (number) x coordinate of the right point\\r\\n o y: (number) y coordinate of the bottom point\\r\\n o }\\r\\n o }\\r\\n \\\\*/\\r\\n R.bezierBBox = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {\\r\\n if (!R.is(p1x, \\\"array\\\")) {\\r\\n p1x = [p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y];\\r\\n }\\r\\n var bbox = curveDim.apply(null, p1x);\\r\\n return {\\r\\n x: bbox.min.x,\\r\\n y: bbox.min.y,\\r\\n x2: bbox.max.x,\\r\\n y2: bbox.max.y,\\r\\n width: bbox.max.x - bbox.min.x,\\r\\n height: bbox.max.y - bbox.min.y\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.isPointInsideBBox\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Returns `true` if given point is inside bounding boxes.\\r\\n > Parameters\\r\\n - bbox (string) bounding box\\r\\n - x (string) x coordinate of the point\\r\\n - y (string) y coordinate of the point\\r\\n = (boolean) `true` if point inside\\r\\n \\\\*/\\r\\n R.isPointInsideBBox = function (bbox, x, y) {\\r\\n return x >= bbox.x && x <= bbox.x2 && y >= bbox.y && y <= bbox.y2;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.isBBoxIntersect\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Returns `true` if two bounding boxes intersect\\r\\n > Parameters\\r\\n - bbox1 (string) first bounding box\\r\\n - bbox2 (string) second bounding box\\r\\n = (boolean) `true` if they intersect\\r\\n \\\\*/\\r\\n R.isBBoxIntersect = function (bbox1, bbox2) {\\r\\n var i = R.isPointInsideBBox;\\r\\n return i(bbox2, bbox1.x, bbox1.y)\\r\\n || i(bbox2, bbox1.x2, bbox1.y)\\r\\n || i(bbox2, bbox1.x, bbox1.y2)\\r\\n || i(bbox2, bbox1.x2, bbox1.y2)\\r\\n || i(bbox1, bbox2.x, bbox2.y)\\r\\n || i(bbox1, bbox2.x2, bbox2.y)\\r\\n || i(bbox1, bbox2.x, bbox2.y2)\\r\\n || i(bbox1, bbox2.x2, bbox2.y2)\\r\\n || (bbox1.x < bbox2.x2 && bbox1.x > bbox2.x || bbox2.x < bbox1.x2 && bbox2.x > bbox1.x)\\r\\n && (bbox1.y < bbox2.y2 && bbox1.y > bbox2.y || bbox2.y < bbox1.y2 && bbox2.y > bbox1.y);\\r\\n };\\r\\n function base3(t, p1, p2, p3, p4) {\\r\\n var t1 = -3 * p1 + 9 * p2 - 9 * p3 + 3 * p4,\\r\\n t2 = t * t1 + 6 * p1 - 12 * p2 + 6 * p3;\\r\\n return t * t2 - 3 * p1 + 3 * p2;\\r\\n }\\r\\n function bezlen(x1, y1, x2, y2, x3, y3, x4, y4, z) {\\r\\n if (z == null) {\\r\\n z = 1;\\r\\n }\\r\\n z = z > 1 ? 1 : z < 0 ? 0 : z;\\r\\n var z2 = z / 2,\\r\\n n = 12,\\r\\n Tvalues = [-0.1252,0.1252,-0.3678,0.3678,-0.5873,0.5873,-0.7699,0.7699,-0.9041,0.9041,-0.9816,0.9816],\\r\\n Cvalues = [0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],\\r\\n sum = 0;\\r\\n for (var i = 0; i < n; i++) {\\r\\n var ct = z2 * Tvalues[i] + z2,\\r\\n xbase = base3(ct, x1, x2, x3, x4),\\r\\n ybase = base3(ct, y1, y2, y3, y4),\\r\\n comb = xbase * xbase + ybase * ybase;\\r\\n sum += Cvalues[i] * math.sqrt(comb);\\r\\n }\\r\\n return z2 * sum;\\r\\n }\\r\\n function getTatLen(x1, y1, x2, y2, x3, y3, x4, y4, ll) {\\r\\n if (ll < 0 || bezlen(x1, y1, x2, y2, x3, y3, x4, y4) < ll) {\\r\\n return;\\r\\n }\\r\\n var t = 1,\\r\\n step = t / 2,\\r\\n t2 = t - step,\\r\\n l,\\r\\n e = .01;\\r\\n l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2);\\r\\n while (abs(l - ll) > e) {\\r\\n step /= 2;\\r\\n t2 += (l < ll ? 1 : -1) * step;\\r\\n l = bezlen(x1, y1, x2, y2, x3, y3, x4, y4, t2);\\r\\n }\\r\\n return t2;\\r\\n }\\r\\n function intersect(x1, y1, x2, y2, x3, y3, x4, y4) {\\r\\n if (\\r\\n mmax(x1, x2) < mmin(x3, x4) ||\\r\\n mmin(x1, x2) > mmax(x3, x4) ||\\r\\n mmax(y1, y2) < mmin(y3, y4) ||\\r\\n mmin(y1, y2) > mmax(y3, y4)\\r\\n ) {\\r\\n return;\\r\\n }\\r\\n var nx = (x1 * y2 - y1 * x2) * (x3 - x4) - (x1 - x2) * (x3 * y4 - y3 * x4),\\r\\n ny = (x1 * y2 - y1 * x2) * (y3 - y4) - (y1 - y2) * (x3 * y4 - y3 * x4),\\r\\n denominator = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4);\\r\\n\\r\\n if (!denominator) {\\r\\n return;\\r\\n }\\r\\n var px = nx / denominator,\\r\\n py = ny / denominator,\\r\\n px2 = +px.toFixed(2),\\r\\n py2 = +py.toFixed(2);\\r\\n if (\\r\\n px2 < +mmin(x1, x2).toFixed(2) ||\\r\\n px2 > +mmax(x1, x2).toFixed(2) ||\\r\\n px2 < +mmin(x3, x4).toFixed(2) ||\\r\\n px2 > +mmax(x3, x4).toFixed(2) ||\\r\\n py2 < +mmin(y1, y2).toFixed(2) ||\\r\\n py2 > +mmax(y1, y2).toFixed(2) ||\\r\\n py2 < +mmin(y3, y4).toFixed(2) ||\\r\\n py2 > +mmax(y3, y4).toFixed(2)\\r\\n ) {\\r\\n return;\\r\\n }\\r\\n return {x: px, y: py};\\r\\n }\\r\\n function inter(bez1, bez2) {\\r\\n return interHelper(bez1, bez2);\\r\\n }\\r\\n function interCount(bez1, bez2) {\\r\\n return interHelper(bez1, bez2, 1);\\r\\n }\\r\\n function interHelper(bez1, bez2, justCount) {\\r\\n var bbox1 = R.bezierBBox(bez1),\\r\\n bbox2 = R.bezierBBox(bez2);\\r\\n if (!R.isBBoxIntersect(bbox1, bbox2)) {\\r\\n return justCount ? 0 : [];\\r\\n }\\r\\n var l1 = bezlen.apply(0, bez1),\\r\\n l2 = bezlen.apply(0, bez2),\\r\\n n1 = mmax(~~(l1 / 5), 1),\\r\\n n2 = mmax(~~(l2 / 5), 1),\\r\\n dots1 = [],\\r\\n dots2 = [],\\r\\n xy = {},\\r\\n res = justCount ? 0 : [];\\r\\n for (var i = 0; i < n1 + 1; i++) {\\r\\n var p = R.findDotsAtSegment.apply(R, bez1.concat(i / n1));\\r\\n dots1.push({x: p.x, y: p.y, t: i / n1});\\r\\n }\\r\\n for (i = 0; i < n2 + 1; i++) {\\r\\n p = R.findDotsAtSegment.apply(R, bez2.concat(i / n2));\\r\\n dots2.push({x: p.x, y: p.y, t: i / n2});\\r\\n }\\r\\n for (i = 0; i < n1; i++) {\\r\\n for (var j = 0; j < n2; j++) {\\r\\n var di = dots1[i],\\r\\n di1 = dots1[i + 1],\\r\\n dj = dots2[j],\\r\\n dj1 = dots2[j + 1],\\r\\n ci = abs(di1.x - di.x) < .001 ? \\\"y\\\" : \\\"x\\\",\\r\\n cj = abs(dj1.x - dj.x) < .001 ? \\\"y\\\" : \\\"x\\\",\\r\\n is = intersect(di.x, di.y, di1.x, di1.y, dj.x, dj.y, dj1.x, dj1.y);\\r\\n if (is) {\\r\\n if (xy[is.x.toFixed(4)] == is.y.toFixed(4)) {\\r\\n continue;\\r\\n }\\r\\n xy[is.x.toFixed(4)] = is.y.toFixed(4);\\r\\n var t1 = di.t + abs((is[ci] - di[ci]) / (di1[ci] - di[ci])) * (di1.t - di.t),\\r\\n t2 = dj.t + abs((is[cj] - dj[cj]) / (dj1[cj] - dj[cj])) * (dj1.t - dj.t);\\r\\n if (t1 >= 0 && t1 <= 1.001 && t2 >= 0 && t2 <= 1.001) {\\r\\n if (justCount) {\\r\\n res++;\\r\\n } else {\\r\\n res.push({\\r\\n x: is.x,\\r\\n y: is.y,\\r\\n t1: mmin(t1, 1),\\r\\n t2: mmin(t2, 1)\\r\\n });\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n return res;\\r\\n }\\r\\n /*\\\\\\r\\n * Raphael.pathIntersection\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Finds intersections of two paths\\r\\n > Parameters\\r\\n - path1 (string) path string\\r\\n - path2 (string) path string\\r\\n = (array) dots of intersection\\r\\n o [\\r\\n o {\\r\\n o x: (number) x coordinate of the point\\r\\n o y: (number) y coordinate of the point\\r\\n o t1: (number) t value for segment of path1\\r\\n o t2: (number) t value for segment of path2\\r\\n o segment1: (number) order number for segment of path1\\r\\n o segment2: (number) order number for segment of path2\\r\\n o bez1: (array) eight coordinates representing beziér curve for the segment of path1\\r\\n o bez2: (array) eight coordinates representing beziér curve for the segment of path2\\r\\n o }\\r\\n o ]\\r\\n \\\\*/\\r\\n R.pathIntersection = function (path1, path2) {\\r\\n return interPathHelper(path1, path2);\\r\\n };\\r\\n R.pathIntersectionNumber = function (path1, path2) {\\r\\n return interPathHelper(path1, path2, 1);\\r\\n };\\r\\n function interPathHelper(path1, path2, justCount) {\\r\\n path1 = R._path2curve(path1);\\r\\n path2 = R._path2curve(path2);\\r\\n var x1, y1, x2, y2, x1m, y1m, x2m, y2m, bez1, bez2,\\r\\n res = justCount ? 0 : [];\\r\\n for (var i = 0, ii = path1.length; i < ii; i++) {\\r\\n var pi = path1[i];\\r\\n if (pi[0] == \\\"M\\\") {\\r\\n x1 = x1m = pi[1];\\r\\n y1 = y1m = pi[2];\\r\\n } else {\\r\\n if (pi[0] == \\\"C\\\") {\\r\\n bez1 = [x1, y1].concat(pi.slice(1));\\r\\n x1 = bez1[6];\\r\\n y1 = bez1[7];\\r\\n } else {\\r\\n bez1 = [x1, y1, x1, y1, x1m, y1m, x1m, y1m];\\r\\n x1 = x1m;\\r\\n y1 = y1m;\\r\\n }\\r\\n for (var j = 0, jj = path2.length; j < jj; j++) {\\r\\n var pj = path2[j];\\r\\n if (pj[0] == \\\"M\\\") {\\r\\n x2 = x2m = pj[1];\\r\\n y2 = y2m = pj[2];\\r\\n } else {\\r\\n if (pj[0] == \\\"C\\\") {\\r\\n bez2 = [x2, y2].concat(pj.slice(1));\\r\\n x2 = bez2[6];\\r\\n y2 = bez2[7];\\r\\n } else {\\r\\n bez2 = [x2, y2, x2, y2, x2m, y2m, x2m, y2m];\\r\\n x2 = x2m;\\r\\n y2 = y2m;\\r\\n }\\r\\n var intr = interHelper(bez1, bez2, justCount);\\r\\n if (justCount) {\\r\\n res += intr;\\r\\n } else {\\r\\n for (var k = 0, kk = intr.length; k < kk; k++) {\\r\\n intr[k].segment1 = i;\\r\\n intr[k].segment2 = j;\\r\\n intr[k].bez1 = bez1;\\r\\n intr[k].bez2 = bez2;\\r\\n }\\r\\n res = res.concat(intr);\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n return res;\\r\\n }\\r\\n /*\\\\\\r\\n * Raphael.isPointInsidePath\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Returns `true` if given point is inside a given closed path.\\r\\n > Parameters\\r\\n - path (string) path string\\r\\n - x (number) x of the point\\r\\n - y (number) y of the point\\r\\n = (boolean) true, if point is inside the path\\r\\n \\\\*/\\r\\n R.isPointInsidePath = function (path, x, y) {\\r\\n var bbox = R.pathBBox(path);\\r\\n return R.isPointInsideBBox(bbox, x, y) &&\\r\\n interPathHelper(path, [[\\\"M\\\", x, y], [\\\"H\\\", bbox.x2 + 10]], 1) % 2 == 1;\\r\\n };\\r\\n R._removedFactory = function (methodname) {\\r\\n return function () {\\r\\n eve(\\\"raphael.log\\\", null, \\\"Rapha\\\\xebl: you are calling to method \\\\u201c\\\" + methodname + \\\"\\\\u201d of removed object\\\", methodname);\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.pathBBox\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Return bounding box of a given path\\r\\n > Parameters\\r\\n - path (string) path string\\r\\n = (object) bounding box\\r\\n o {\\r\\n o x: (number) x coordinate of the left top point of the box\\r\\n o y: (number) y coordinate of the left top point of the box\\r\\n o x2: (number) x coordinate of the right bottom point of the box\\r\\n o y2: (number) y coordinate of the right bottom point of the box\\r\\n o width: (number) width of the box\\r\\n o height: (number) height of the box\\r\\n o cx: (number) x coordinate of the center of the box\\r\\n o cy: (number) y coordinate of the center of the box\\r\\n o }\\r\\n \\\\*/\\r\\n var pathDimensions = R.pathBBox = function (path) {\\r\\n var pth = paths(path);\\r\\n if (pth.bbox) {\\r\\n var b= pth.bbox;\\r\\n return {x: b.x, y: b.y, width: b.width, height: b.height, x2: b.x2, y2: b.y2} ; // FREEGROUP FIX!!!!!!\\r\\n // raphael reuse the returned bbox. You must clone it here if the caller need the bbxo for\\r\\n //further calculation\\r\\n }\\r\\n if (!path) {\\r\\n return {x: 0, y: 0, width: 0, height: 0, x2: 0, y2: 0};\\r\\n }\\r\\n path = path2curve(path);\\r\\n var x = 0,\\r\\n y = 0,\\r\\n X = [],\\r\\n Y = [],\\r\\n p;\\r\\n for (var i = 0, ii = path.length; i < ii; i++) {\\r\\n p = path[i];\\r\\n if (p[0] == \\\"M\\\") {\\r\\n x = p[1];\\r\\n y = p[2];\\r\\n X.push(x);\\r\\n Y.push(y);\\r\\n } else {\\r\\n var dim = curveDim(x, y, p[1], p[2], p[3], p[4], p[5], p[6]);\\r\\n X = X[concat](dim.min.x, dim.max.x);\\r\\n Y = Y[concat](dim.min.y, dim.max.y);\\r\\n x = p[5];\\r\\n y = p[6];\\r\\n }\\r\\n }\\r\\n var xmin = mmin[apply](0, X),\\r\\n ymin = mmin[apply](0, Y),\\r\\n xmax = mmax[apply](0, X),\\r\\n ymax = mmax[apply](0, Y),\\r\\n width = xmax - xmin,\\r\\n height = ymax - ymin,\\r\\n bb = {\\r\\n x: xmin,\\r\\n y: ymin,\\r\\n x2: xmax,\\r\\n y2: ymax,\\r\\n width: width,\\r\\n height: height,\\r\\n cx: xmin + width / 2,\\r\\n cy: ymin + height / 2\\r\\n };\\r\\n pth.bbox = clone(bb);\\r\\n return bb;\\r\\n },\\r\\n pathClone = function (pathArray) {\\r\\n var res = clone(pathArray);\\r\\n res.toString = R._path2string;\\r\\n return res;\\r\\n },\\r\\n pathToRelative = R._pathToRelative = function (pathArray) {\\r\\n var pth = paths(pathArray);\\r\\n if (pth.rel) {\\r\\n return pathClone(pth.rel);\\r\\n }\\r\\n if (!R.is(pathArray, array) || !R.is(pathArray && pathArray[0], array)) { // rough assumption\\r\\n pathArray = R.parsePathString(pathArray);\\r\\n }\\r\\n var res = [],\\r\\n x = 0,\\r\\n y = 0,\\r\\n mx = 0,\\r\\n my = 0,\\r\\n start = 0;\\r\\n if (pathArray[0][0] == \\\"M\\\") {\\r\\n x = pathArray[0][1];\\r\\n y = pathArray[0][2];\\r\\n mx = x;\\r\\n my = y;\\r\\n start++;\\r\\n res.push([\\\"M\\\", x, y]);\\r\\n }\\r\\n for (var i = start, ii = pathArray.length; i < ii; i++) {\\r\\n var r = res[i] = [],\\r\\n pa = pathArray[i];\\r\\n if (pa[0] != lowerCase.call(pa[0])) {\\r\\n r[0] = lowerCase.call(pa[0]);\\r\\n switch (r[0]) {\\r\\n case \\\"a\\\":\\r\\n r[1] = pa[1];\\r\\n r[2] = pa[2];\\r\\n r[3] = pa[3];\\r\\n r[4] = pa[4];\\r\\n r[5] = pa[5];\\r\\n r[6] = +(pa[6] - x).toFixed(3);\\r\\n r[7] = +(pa[7] - y).toFixed(3);\\r\\n break;\\r\\n case \\\"v\\\":\\r\\n r[1] = +(pa[1] - y).toFixed(3);\\r\\n break;\\r\\n case \\\"m\\\":\\r\\n mx = pa[1];\\r\\n my = pa[2];\\r\\n default:\\r\\n for (var j = 1, jj = pa.length; j < jj; j++) {\\r\\n r[j] = +(pa[j] - ((j % 2) ? x : y)).toFixed(3);\\r\\n }\\r\\n }\\r\\n } else {\\r\\n r = res[i] = [];\\r\\n if (pa[0] == \\\"m\\\") {\\r\\n mx = pa[1] + x;\\r\\n my = pa[2] + y;\\r\\n }\\r\\n for (var k = 0, kk = pa.length; k < kk; k++) {\\r\\n res[i][k] = pa[k];\\r\\n }\\r\\n }\\r\\n var len = res[i].length;\\r\\n switch (res[i][0]) {\\r\\n case \\\"z\\\":\\r\\n x = mx;\\r\\n y = my;\\r\\n break;\\r\\n case \\\"h\\\":\\r\\n x += +res[i][len - 1];\\r\\n break;\\r\\n case \\\"v\\\":\\r\\n y += +res[i][len - 1];\\r\\n break;\\r\\n default:\\r\\n x += +res[i][len - 2];\\r\\n y += +res[i][len - 1];\\r\\n }\\r\\n }\\r\\n res.toString = R._path2string;\\r\\n pth.rel = pathClone(res);\\r\\n return res;\\r\\n },\\r\\n pathToAbsolute = R._pathToAbsolute = function (pathArray) {\\r\\n var pth = paths(pathArray);\\r\\n if (pth.abs) {\\r\\n return pathClone(pth.abs);\\r\\n }\\r\\n if (!R.is(pathArray, array) || !R.is(pathArray && pathArray[0], array)) { // rough assumption\\r\\n pathArray = R.parsePathString(pathArray);\\r\\n }\\r\\n if (!pathArray || !pathArray.length) {\\r\\n return [[\\\"M\\\", 0, 0]];\\r\\n }\\r\\n var res = [],\\r\\n x = 0,\\r\\n y = 0,\\r\\n mx = 0,\\r\\n my = 0,\\r\\n start = 0;\\r\\n if (pathArray[0][0] == \\\"M\\\") {\\r\\n x = +pathArray[0][1];\\r\\n y = +pathArray[0][2];\\r\\n mx = x;\\r\\n my = y;\\r\\n start++;\\r\\n res[0] = [\\\"M\\\", x, y];\\r\\n }\\r\\n var crz = pathArray.length == 3 && pathArray[0][0] == \\\"M\\\" && pathArray[1][0].toUpperCase() == \\\"R\\\" && pathArray[2][0].toUpperCase() == \\\"Z\\\";\\r\\n for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) {\\r\\n res.push(r = []);\\r\\n pa = pathArray[i];\\r\\n if (pa[0] != upperCase.call(pa[0])) {\\r\\n r[0] = upperCase.call(pa[0]);\\r\\n switch (r[0]) {\\r\\n case \\\"A\\\":\\r\\n r[1] = pa[1];\\r\\n r[2] = pa[2];\\r\\n r[3] = pa[3];\\r\\n r[4] = pa[4];\\r\\n r[5] = pa[5];\\r\\n r[6] = +(pa[6] + x);\\r\\n r[7] = +(pa[7] + y);\\r\\n break;\\r\\n case \\\"V\\\":\\r\\n r[1] = +pa[1] + y;\\r\\n break;\\r\\n case \\\"H\\\":\\r\\n r[1] = +pa[1] + x;\\r\\n break;\\r\\n case \\\"R\\\":\\r\\n var dots = [x, y][concat](pa.slice(1));\\r\\n for (var j = 2, jj = dots.length; j < jj; j++) {\\r\\n dots[j] = +dots[j] + x;\\r\\n dots[++j] = +dots[j] + y;\\r\\n }\\r\\n res.pop();\\r\\n res = res[concat](catmullRom2bezier(dots, crz));\\r\\n break;\\r\\n case \\\"M\\\":\\r\\n mx = +pa[1] + x;\\r\\n my = +pa[2] + y;\\r\\n default:\\r\\n for (j = 1, jj = pa.length; j < jj; j++) {\\r\\n r[j] = +pa[j] + ((j % 2) ? x : y);\\r\\n }\\r\\n }\\r\\n } else if (pa[0] == \\\"R\\\") {\\r\\n dots = [x, y][concat](pa.slice(1));\\r\\n res.pop();\\r\\n res = res[concat](catmullRom2bezier(dots, crz));\\r\\n r = [\\\"R\\\"][concat](pa.slice(-2));\\r\\n } else {\\r\\n for (var k = 0, kk = pa.length; k < kk; k++) {\\r\\n r[k] = pa[k];\\r\\n }\\r\\n }\\r\\n switch (r[0]) {\\r\\n case \\\"Z\\\":\\r\\n x = mx;\\r\\n y = my;\\r\\n break;\\r\\n case \\\"H\\\":\\r\\n x = r[1];\\r\\n break;\\r\\n case \\\"V\\\":\\r\\n y = r[1];\\r\\n break;\\r\\n case \\\"M\\\":\\r\\n mx = r[r.length - 2];\\r\\n my = r[r.length - 1];\\r\\n default:\\r\\n x = r[r.length - 2];\\r\\n y = r[r.length - 1];\\r\\n }\\r\\n }\\r\\n res.toString = R._path2string;\\r\\n pth.abs = pathClone(res);\\r\\n return res;\\r\\n },\\r\\n l2c = function (x1, y1, x2, y2) {\\r\\n return [x1, y1, x2, y2, x2, y2];\\r\\n },\\r\\n q2c = function (x1, y1, ax, ay, x2, y2) {\\r\\n var _13 = 1 / 3,\\r\\n _23 = 2 / 3;\\r\\n return [\\r\\n _13 * x1 + _23 * ax,\\r\\n _13 * y1 + _23 * ay,\\r\\n _13 * x2 + _23 * ax,\\r\\n _13 * y2 + _23 * ay,\\r\\n x2,\\r\\n y2\\r\\n ];\\r\\n },\\r\\n a2c = function (x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {\\r\\n // for more information of where this math came from visit:\\r\\n // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes\\r\\n var _120 = PI * 120 / 180,\\r\\n rad = PI / 180 * (+angle || 0),\\r\\n res = [],\\r\\n xy,\\r\\n rotate = cacher(function (x, y, rad) {\\r\\n var X = x * math.cos(rad) - y * math.sin(rad),\\r\\n Y = x * math.sin(rad) + y * math.cos(rad);\\r\\n return {x: X, y: Y};\\r\\n });\\r\\n if (!recursive) {\\r\\n xy = rotate(x1, y1, -rad);\\r\\n x1 = xy.x;\\r\\n y1 = xy.y;\\r\\n xy = rotate(x2, y2, -rad);\\r\\n x2 = xy.x;\\r\\n y2 = xy.y;\\r\\n var cos = math.cos(PI / 180 * angle),\\r\\n sin = math.sin(PI / 180 * angle),\\r\\n x = (x1 - x2) / 2,\\r\\n y = (y1 - y2) / 2;\\r\\n var h = (x * x) / (rx * rx) + (y * y) / (ry * ry);\\r\\n if (h > 1) {\\r\\n h = math.sqrt(h);\\r\\n rx = h * rx;\\r\\n ry = h * ry;\\r\\n }\\r\\n var rx2 = rx * rx,\\r\\n ry2 = ry * ry,\\r\\n k = (large_arc_flag == sweep_flag ? -1 : 1) *\\r\\n math.sqrt(abs((rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x))),\\r\\n cx = k * rx * y / ry + (x1 + x2) / 2,\\r\\n cy = k * -ry * x / rx + (y1 + y2) / 2,\\r\\n f1 = math.asin(((y1 - cy) / ry).toFixed(9)),\\r\\n f2 = math.asin(((y2 - cy) / ry).toFixed(9));\\r\\n\\r\\n f1 = x1 < cx ? PI - f1 : f1;\\r\\n f2 = x2 < cx ? PI - f2 : f2;\\r\\n f1 < 0 && (f1 = PI * 2 + f1);\\r\\n f2 < 0 && (f2 = PI * 2 + f2);\\r\\n if (sweep_flag && f1 > f2) {\\r\\n f1 = f1 - PI * 2;\\r\\n }\\r\\n if (!sweep_flag && f2 > f1) {\\r\\n f2 = f2 - PI * 2;\\r\\n }\\r\\n } else {\\r\\n f1 = recursive[0];\\r\\n f2 = recursive[1];\\r\\n cx = recursive[2];\\r\\n cy = recursive[3];\\r\\n }\\r\\n var df = f2 - f1;\\r\\n if (abs(df) > _120) {\\r\\n var f2old = f2,\\r\\n x2old = x2,\\r\\n y2old = y2;\\r\\n f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1);\\r\\n x2 = cx + rx * math.cos(f2);\\r\\n y2 = cy + ry * math.sin(f2);\\r\\n res = a2c(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [f2, f2old, cx, cy]);\\r\\n }\\r\\n df = f2 - f1;\\r\\n var c1 = math.cos(f1),\\r\\n s1 = math.sin(f1),\\r\\n c2 = math.cos(f2),\\r\\n s2 = math.sin(f2),\\r\\n t = math.tan(df / 4),\\r\\n hx = 4 / 3 * rx * t,\\r\\n hy = 4 / 3 * ry * t,\\r\\n m1 = [x1, y1],\\r\\n m2 = [x1 + hx * s1, y1 - hy * c1],\\r\\n m3 = [x2 + hx * s2, y2 - hy * c2],\\r\\n m4 = [x2, y2];\\r\\n m2[0] = 2 * m1[0] - m2[0];\\r\\n m2[1] = 2 * m1[1] - m2[1];\\r\\n if (recursive) {\\r\\n return [m2, m3, m4][concat](res);\\r\\n } else {\\r\\n res = [m2, m3, m4][concat](res).join()[split](\\\",\\\");\\r\\n var newres = [];\\r\\n for (var i = 0, ii = res.length; i < ii; i++) {\\r\\n newres[i] = i % 2 ? rotate(res[i - 1], res[i], rad).y : rotate(res[i], res[i + 1], rad).x;\\r\\n }\\r\\n return newres;\\r\\n }\\r\\n },\\r\\n findDotAtSegment = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {\\r\\n var t1 = 1 - t;\\r\\n return {\\r\\n x: pow(t1, 3) * p1x + pow(t1, 2) * 3 * t * c1x + t1 * 3 * t * t * c2x + pow(t, 3) * p2x,\\r\\n y: pow(t1, 3) * p1y + pow(t1, 2) * 3 * t * c1y + t1 * 3 * t * t * c2y + pow(t, 3) * p2y\\r\\n };\\r\\n },\\r\\n curveDim = cacher(function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {\\r\\n var a = (c2x - 2 * c1x + p1x) - (p2x - 2 * c2x + c1x),\\r\\n b = 2 * (c1x - p1x) - 2 * (c2x - c1x),\\r\\n c = p1x - c1x,\\r\\n t1 = (-b + math.sqrt(b * b - 4 * a * c)) / 2 / a,\\r\\n t2 = (-b - math.sqrt(b * b - 4 * a * c)) / 2 / a,\\r\\n y = [p1y, p2y],\\r\\n x = [p1x, p2x],\\r\\n dot;\\r\\n abs(t1) > \\\"1e12\\\" && (t1 = .5);\\r\\n abs(t2) > \\\"1e12\\\" && (t2 = .5);\\r\\n if (t1 > 0 && t1 < 1) {\\r\\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t1);\\r\\n x.push(dot.x);\\r\\n y.push(dot.y);\\r\\n }\\r\\n if (t2 > 0 && t2 < 1) {\\r\\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t2);\\r\\n x.push(dot.x);\\r\\n y.push(dot.y);\\r\\n }\\r\\n a = (c2y - 2 * c1y + p1y) - (p2y - 2 * c2y + c1y);\\r\\n b = 2 * (c1y - p1y) - 2 * (c2y - c1y);\\r\\n c = p1y - c1y;\\r\\n t1 = (-b + math.sqrt(b * b - 4 * a * c)) / 2 / a;\\r\\n t2 = (-b - math.sqrt(b * b - 4 * a * c)) / 2 / a;\\r\\n abs(t1) > \\\"1e12\\\" && (t1 = .5);\\r\\n abs(t2) > \\\"1e12\\\" && (t2 = .5);\\r\\n if (t1 > 0 && t1 < 1) {\\r\\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t1);\\r\\n x.push(dot.x);\\r\\n y.push(dot.y);\\r\\n }\\r\\n if (t2 > 0 && t2 < 1) {\\r\\n dot = findDotAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t2);\\r\\n x.push(dot.x);\\r\\n y.push(dot.y);\\r\\n }\\r\\n return {\\r\\n min: {x: mmin[apply](0, x), y: mmin[apply](0, y)},\\r\\n max: {x: mmax[apply](0, x), y: mmax[apply](0, y)}\\r\\n };\\r\\n }),\\r\\n path2curve = R._path2curve = cacher(function (path, path2) {\\r\\n var pth = !path2 && paths(path);\\r\\n if (!path2 && pth.curve) {\\r\\n return pathClone(pth.curve);\\r\\n }\\r\\n var p = pathToAbsolute(path),\\r\\n p2 = path2 && pathToAbsolute(path2),\\r\\n attrs = {x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null},\\r\\n attrs2 = {x: 0, y: 0, bx: 0, by: 0, X: 0, Y: 0, qx: null, qy: null},\\r\\n processPath = function (path, d, pcom) {\\r\\n var nx, ny, tq = {T:1, Q:1};\\r\\n if (!path) {\\r\\n return [\\\"C\\\", d.x, d.y, d.x, d.y, d.x, d.y];\\r\\n }\\r\\n !(path[0] in tq) && (d.qx = d.qy = null);\\r\\n switch (path[0]) {\\r\\n case \\\"M\\\":\\r\\n d.X = path[1];\\r\\n d.Y = path[2];\\r\\n break;\\r\\n case \\\"A\\\":\\r\\n path = [\\\"C\\\"][concat](a2c[apply](0, [d.x, d.y][concat](path.slice(1))));\\r\\n break;\\r\\n case \\\"S\\\":\\r\\n if (pcom == \\\"C\\\" || pcom == \\\"S\\\") { // In \\\"S\\\" case we have to take into account, if the previous command is C/S.\\r\\n nx = d.x * 2 - d.bx; // And reflect the previous\\r\\n ny = d.y * 2 - d.by; // command's control point relative to the current point.\\r\\n }\\r\\n else { // or some else or nothing\\r\\n nx = d.x;\\r\\n ny = d.y;\\r\\n }\\r\\n path = [\\\"C\\\", nx, ny][concat](path.slice(1));\\r\\n break;\\r\\n case \\\"T\\\":\\r\\n if (pcom == \\\"Q\\\" || pcom == \\\"T\\\") { // In \\\"T\\\" case we have to take into account, if the previous command is Q/T.\\r\\n d.qx = d.x * 2 - d.qx; // And make a reflection similar\\r\\n d.qy = d.y * 2 - d.qy; // to case \\\"S\\\".\\r\\n }\\r\\n else { // or something else or nothing\\r\\n d.qx = d.x;\\r\\n d.qy = d.y;\\r\\n }\\r\\n path = [\\\"C\\\"][concat](q2c(d.x, d.y, d.qx, d.qy, path[1], path[2]));\\r\\n break;\\r\\n case \\\"Q\\\":\\r\\n d.qx = path[1];\\r\\n d.qy = path[2];\\r\\n path = [\\\"C\\\"][concat](q2c(d.x, d.y, path[1], path[2], path[3], path[4]));\\r\\n break;\\r\\n case \\\"L\\\":\\r\\n path = [\\\"C\\\"][concat](l2c(d.x, d.y, path[1], path[2]));\\r\\n break;\\r\\n case \\\"H\\\":\\r\\n path = [\\\"C\\\"][concat](l2c(d.x, d.y, path[1], d.y));\\r\\n break;\\r\\n case \\\"V\\\":\\r\\n path = [\\\"C\\\"][concat](l2c(d.x, d.y, d.x, path[1]));\\r\\n break;\\r\\n case \\\"Z\\\":\\r\\n path = [\\\"C\\\"][concat](l2c(d.x, d.y, d.X, d.Y));\\r\\n break;\\r\\n }\\r\\n return path;\\r\\n },\\r\\n fixArc = function (pp, i) {\\r\\n if (pp[i].length > 7) {\\r\\n pp[i].shift();\\r\\n var pi = pp[i];\\r\\n while (pi.length) {\\r\\n pcoms1[i]=\\\"A\\\"; // if created multiple C:s, their original seg is saved\\r\\n p2 && (pcoms2[i]=\\\"A\\\"); // the same as above\\r\\n pp.splice(i++, 0, [\\\"C\\\"][concat](pi.splice(0, 6)));\\r\\n }\\r\\n pp.splice(i, 1);\\r\\n ii = mmax(p.length, p2 && p2.length || 0);\\r\\n }\\r\\n },\\r\\n fixM = function (path1, path2, a1, a2, i) {\\r\\n if (path1 && path2 && path1[i][0] == \\\"M\\\" && path2[i][0] != \\\"M\\\") {\\r\\n path2.splice(i, 0, [\\\"M\\\", a2.x, a2.y]);\\r\\n a1.bx = 0;\\r\\n a1.by = 0;\\r\\n a1.x = path1[i][1];\\r\\n a1.y = path1[i][2];\\r\\n ii = mmax(p.length, p2 && p2.length || 0);\\r\\n }\\r\\n },\\r\\n pcoms1 = [], // path commands of original path p\\r\\n pcoms2 = [], // path commands of original path p2\\r\\n pfirst = \\\"\\\", // temporary holder for original path command\\r\\n pcom = \\\"\\\"; // holder for previous path command of original path\\r\\n for (var i = 0, ii = mmax(p.length, p2 && p2.length || 0); i < ii; i++) {\\r\\n p[i] && (pfirst = p[i][0]); // save current path command\\r\\n\\r\\n if (pfirst != \\\"C\\\") // C is not saved yet, because it may be result of conversion\\r\\n {\\r\\n pcoms1[i] = pfirst; // Save current path command\\r\\n i && ( pcom = pcoms1[i-1]); // Get previous path command pcom\\r\\n }\\r\\n p[i] = processPath(p[i], attrs, pcom); // Previous path command is inputted to processPath\\r\\n\\r\\n if (pcoms1[i] != \\\"A\\\" && pfirst == \\\"C\\\") pcoms1[i] = \\\"C\\\"; // A is the only command\\r\\n // which may produce multiple C:s\\r\\n // so we have to make sure that C is also C in original path\\r\\n\\r\\n fixArc(p, i); // fixArc adds also the right amount of A:s to pcoms1\\r\\n\\r\\n if (p2) { // the same procedures is done to p2\\r\\n p2[i] && (pfirst = p2[i][0]);\\r\\n if (pfirst != \\\"C\\\")\\r\\n {\\r\\n pcoms2[i] = pfirst;\\r\\n i && (pcom = pcoms2[i-1]);\\r\\n }\\r\\n p2[i] = processPath(p2[i], attrs2, pcom);\\r\\n\\r\\n if (pcoms2[i]!=\\\"A\\\" && pfirst==\\\"C\\\") pcoms2[i]=\\\"C\\\";\\r\\n\\r\\n fixArc(p2, i);\\r\\n }\\r\\n fixM(p, p2, attrs, attrs2, i);\\r\\n fixM(p2, p, attrs2, attrs, i);\\r\\n var seg = p[i],\\r\\n seg2 = p2 && p2[i],\\r\\n seglen = seg.length,\\r\\n seg2len = p2 && seg2.length;\\r\\n attrs.x = seg[seglen - 2];\\r\\n attrs.y = seg[seglen - 1];\\r\\n attrs.bx = toFloat(seg[seglen - 4]) || attrs.x;\\r\\n attrs.by = toFloat(seg[seglen - 3]) || attrs.y;\\r\\n attrs2.bx = p2 && (toFloat(seg2[seg2len - 4]) || attrs2.x);\\r\\n attrs2.by = p2 && (toFloat(seg2[seg2len - 3]) || attrs2.y);\\r\\n attrs2.x = p2 && seg2[seg2len - 2];\\r\\n attrs2.y = p2 && seg2[seg2len - 1];\\r\\n }\\r\\n if (!p2) {\\r\\n pth.curve = pathClone(p);\\r\\n }\\r\\n return p2 ? [p, p2] : p;\\r\\n }, null, pathClone),\\r\\n parseDots = R._parseDots = cacher(function (gradient) {\\r\\n var dots = [];\\r\\n for (var i = 0, ii = gradient.length; i < ii; i++) {\\r\\n var dot = {},\\r\\n par = gradient[i].match(/^([^:]*):?([\\\\d\\\\.]*)/);\\r\\n dot.color = R.getRGB(par[1]);\\r\\n if (dot.color.error) {\\r\\n return null;\\r\\n }\\r\\n dot.opacity = dot.color.opacity;\\r\\n dot.color = dot.color.hex;\\r\\n par[2] && (dot.offset = par[2] + \\\"%\\\");\\r\\n dots.push(dot);\\r\\n }\\r\\n for (i = 1, ii = dots.length - 1; i < ii; i++) {\\r\\n if (!dots[i].offset) {\\r\\n var start = toFloat(dots[i - 1].offset || 0),\\r\\n end = 0;\\r\\n for (var j = i + 1; j < ii; j++) {\\r\\n if (dots[j].offset) {\\r\\n end = dots[j].offset;\\r\\n break;\\r\\n }\\r\\n }\\r\\n if (!end) {\\r\\n end = 100;\\r\\n j = ii;\\r\\n }\\r\\n end = toFloat(end);\\r\\n var d = (end - start) / (j - i + 1);\\r\\n for (; i < j; i++) {\\r\\n start += d;\\r\\n dots[i].offset = start + \\\"%\\\";\\r\\n }\\r\\n }\\r\\n }\\r\\n return dots;\\r\\n }),\\r\\n tear = R._tear = function (el, paper) {\\r\\n el == paper.top && (paper.top = el.prev);\\r\\n el == paper.bottom && (paper.bottom = el.next);\\r\\n el.next && (el.next.prev = el.prev);\\r\\n el.prev && (el.prev.next = el.next);\\r\\n },\\r\\n tofront = R._tofront = function (el, paper) {\\r\\n if (paper.top === el) {\\r\\n return;\\r\\n }\\r\\n tear(el, paper);\\r\\n el.next = null;\\r\\n el.prev = paper.top;\\r\\n paper.top.next = el;\\r\\n paper.top = el;\\r\\n },\\r\\n toback = R._toback = function (el, paper) {\\r\\n if (paper.bottom === el) {\\r\\n return;\\r\\n }\\r\\n tear(el, paper);\\r\\n el.next = paper.bottom;\\r\\n el.prev = null;\\r\\n paper.bottom.prev = el;\\r\\n paper.bottom = el;\\r\\n },\\r\\n insertafter = R._insertafter = function (el, el2, paper) {\\r\\n tear(el, paper);\\r\\n el2 == paper.top && (paper.top = el);\\r\\n el2.next && (el2.next.prev = el);\\r\\n el.next = el2.next;\\r\\n el.prev = el2;\\r\\n el2.next = el;\\r\\n },\\r\\n insertbefore = R._insertbefore = function (el, el2, paper) {\\r\\n tear(el, paper);\\r\\n el2 == paper.bottom && (paper.bottom = el);\\r\\n el2.prev && (el2.prev.next = el);\\r\\n el.prev = el2.prev;\\r\\n el2.prev = el;\\r\\n el.next = el2;\\r\\n },\\r\\n /*\\\\\\r\\n * Raphael.toMatrix\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Returns matrix of transformations applied to a given path\\r\\n > Parameters\\r\\n - path (string) path string\\r\\n - transform (string|array) transformation string\\r\\n = (object) @Matrix\\r\\n \\\\*/\\r\\n toMatrix = R.toMatrix = function (path, transform) {\\r\\n var bb = pathDimensions(path),\\r\\n el = {\\r\\n _: {\\r\\n transform: E\\r\\n },\\r\\n getBBox: function () {\\r\\n return bb;\\r\\n }\\r\\n };\\r\\n extractTransform(el, transform);\\r\\n return el.matrix;\\r\\n },\\r\\n /*\\\\\\r\\n * Raphael.transformPath\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Returns path transformed by a given transformation\\r\\n > Parameters\\r\\n - path (string) path string\\r\\n - transform (string|array) transformation string\\r\\n = (string) path\\r\\n \\\\*/\\r\\n transformPath = R.transformPath = function (path, transform) {\\r\\n return mapPath(path, toMatrix(path, transform));\\r\\n },\\r\\n extractTransform = R._extractTransform = function (el, tstr) {\\r\\n if (tstr == null) {\\r\\n return el._.transform;\\r\\n }\\r\\n tstr = Str(tstr).replace(/\\\\.{3}|\\\\u2026/g, el._.transform || E);\\r\\n var tdata = R.parseTransformString(tstr),\\r\\n deg = 0,\\r\\n dx = 0,\\r\\n dy = 0,\\r\\n sx = 1,\\r\\n sy = 1,\\r\\n _ = el._,\\r\\n m = new Matrix;\\r\\n _.transform = tdata || [];\\r\\n if (tdata) {\\r\\n for (var i = 0, ii = tdata.length; i < ii; i++) {\\r\\n var t = tdata[i],\\r\\n tlen = t.length,\\r\\n command = Str(t[0]).toLowerCase(),\\r\\n absolute = t[0] != command,\\r\\n inver = absolute ? m.invert() : 0,\\r\\n x1,\\r\\n y1,\\r\\n x2,\\r\\n y2,\\r\\n bb;\\r\\n if (command == \\\"t\\\" && tlen == 3) {\\r\\n if (absolute) {\\r\\n x1 = inver.x(0, 0);\\r\\n y1 = inver.y(0, 0);\\r\\n x2 = inver.x(t[1], t[2]);\\r\\n y2 = inver.y(t[1], t[2]);\\r\\n m.translate(x2 - x1, y2 - y1);\\r\\n } else {\\r\\n m.translate(t[1], t[2]);\\r\\n }\\r\\n } else if (command == \\\"r\\\") {\\r\\n if (tlen == 2) {\\r\\n bb = bb || el.getBBox(1);\\r\\n m.rotate(t[1], bb.x + bb.width / 2, bb.y + bb.height / 2);\\r\\n deg += t[1];\\r\\n } else if (tlen == 4) {\\r\\n if (absolute) {\\r\\n x2 = inver.x(t[2], t[3]);\\r\\n y2 = inver.y(t[2], t[3]);\\r\\n m.rotate(t[1], x2, y2);\\r\\n } else {\\r\\n m.rotate(t[1], t[2], t[3]);\\r\\n }\\r\\n deg += t[1];\\r\\n }\\r\\n } else if (command == \\\"s\\\") {\\r\\n if (tlen == 2 || tlen == 3) {\\r\\n bb = bb || el.getBBox(1);\\r\\n m.scale(t[1], t[tlen - 1], bb.x + bb.width / 2, bb.y + bb.height / 2);\\r\\n sx *= t[1];\\r\\n sy *= t[tlen - 1];\\r\\n } else if (tlen == 5) {\\r\\n if (absolute) {\\r\\n x2 = inver.x(t[3], t[4]);\\r\\n y2 = inver.y(t[3], t[4]);\\r\\n m.scale(t[1], t[2], x2, y2);\\r\\n } else {\\r\\n m.scale(t[1], t[2], t[3], t[4]);\\r\\n }\\r\\n sx *= t[1];\\r\\n sy *= t[2];\\r\\n }\\r\\n } else if (command == \\\"m\\\" && tlen == 7) {\\r\\n m.add(t[1], t[2], t[3], t[4], t[5], t[6]);\\r\\n }\\r\\n _.dirtyT = 1;\\r\\n el.matrix = m;\\r\\n }\\r\\n }\\r\\n\\r\\n /*\\\\\\r\\n * Element.matrix\\r\\n [ property (object) ]\\r\\n **\\r\\n * Keeps @Matrix object, which represents element transformation\\r\\n \\\\*/\\r\\n el.matrix = m;\\r\\n\\r\\n _.sx = sx;\\r\\n _.sy = sy;\\r\\n _.deg = deg;\\r\\n _.dx = dx = m.e;\\r\\n _.dy = dy = m.f;\\r\\n\\r\\n if (sx == 1 && sy == 1 && !deg && _.bbox) {\\r\\n _.bbox.x += +dx;\\r\\n _.bbox.y += +dy;\\r\\n } else {\\r\\n _.dirtyT = 1;\\r\\n }\\r\\n },\\r\\n getEmpty = function (item) {\\r\\n var l = item[0];\\r\\n switch (l.toLowerCase()) {\\r\\n case \\\"t\\\": return [l, 0, 0];\\r\\n case \\\"m\\\": return [l, 1, 0, 0, 1, 0, 0];\\r\\n case \\\"r\\\": if (item.length == 4) {\\r\\n return [l, 0, item[2], item[3]];\\r\\n } else {\\r\\n return [l, 0];\\r\\n }\\r\\n case \\\"s\\\": if (item.length == 5) {\\r\\n return [l, 1, 1, item[3], item[4]];\\r\\n } else if (item.length == 3) {\\r\\n return [l, 1, 1];\\r\\n } else {\\r\\n return [l, 1];\\r\\n }\\r\\n }\\r\\n },\\r\\n equaliseTransform = R._equaliseTransform = function (t1, t2) {\\r\\n t2 = Str(t2).replace(/\\\\.{3}|\\\\u2026/g, t1);\\r\\n t1 = R.parseTransformString(t1) || [];\\r\\n t2 = R.parseTransformString(t2) || [];\\r\\n var maxlength = mmax(t1.length, t2.length),\\r\\n from = [],\\r\\n to = [],\\r\\n i = 0, j, jj,\\r\\n tt1, tt2;\\r\\n for (; i < maxlength; i++) {\\r\\n tt1 = t1[i] || getEmpty(t2[i]);\\r\\n tt2 = t2[i] || getEmpty(tt1);\\r\\n if ((tt1[0] != tt2[0]) ||\\r\\n (tt1[0].toLowerCase() == \\\"r\\\" && (tt1[2] != tt2[2] || tt1[3] != tt2[3])) ||\\r\\n (tt1[0].toLowerCase() == \\\"s\\\" && (tt1[3] != tt2[3] || tt1[4] != tt2[4]))\\r\\n ) {\\r\\n return;\\r\\n }\\r\\n from[i] = [];\\r\\n to[i] = [];\\r\\n for (j = 0, jj = mmax(tt1.length, tt2.length); j < jj; j++) {\\r\\n j in tt1 && (from[i][j] = tt1[j]);\\r\\n j in tt2 && (to[i][j] = tt2[j]);\\r\\n }\\r\\n }\\r\\n return {\\r\\n from: from,\\r\\n to: to\\r\\n };\\r\\n };\\r\\n R._getContainer = function (x, y, w, h) {\\r\\n var container;\\r\\n container = h == null && !R.is(x, \\\"object\\\") ? g.doc.getElementById(x) : x;\\r\\n if (container == null) {\\r\\n return;\\r\\n }\\r\\n if (container.tagName) {\\r\\n if (y == null) {\\r\\n return {\\r\\n container: container,\\r\\n width: container.style.pixelWidth || container.offsetWidth,\\r\\n height: container.style.pixelHeight || container.offsetHeight\\r\\n };\\r\\n } else {\\r\\n return {\\r\\n container: container,\\r\\n width: y,\\r\\n height: w\\r\\n };\\r\\n }\\r\\n }\\r\\n return {\\r\\n container: 1,\\r\\n x: x,\\r\\n y: y,\\r\\n width: w,\\r\\n height: h\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.pathToRelative\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Converts path to relative form\\r\\n > Parameters\\r\\n - pathString (string|array) path string or array of segments\\r\\n = (array) array of segments.\\r\\n \\\\*/\\r\\n R.pathToRelative = pathToRelative;\\r\\n R._engine = {};\\r\\n /*\\\\\\r\\n * Raphael.path2curve\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Converts path to a new path where all segments are cubic bezier curves.\\r\\n > Parameters\\r\\n - pathString (string|array) path string or array of segments\\r\\n = (array) array of segments.\\r\\n \\\\*/\\r\\n R.path2curve = path2curve;\\r\\n /*\\\\\\r\\n * Raphael.matrix\\r\\n [ method ]\\r\\n **\\r\\n * Utility method\\r\\n **\\r\\n * Returns matrix based on given parameters.\\r\\n > Parameters\\r\\n - a (number)\\r\\n - b (number)\\r\\n - c (number)\\r\\n - d (number)\\r\\n - e (number)\\r\\n - f (number)\\r\\n = (object) @Matrix\\r\\n \\\\*/\\r\\n R.matrix = function (a, b, c, d, e, f) {\\r\\n return new Matrix(a, b, c, d, e, f);\\r\\n };\\r\\n function Matrix(a, b, c, d, e, f) {\\r\\n if (a != null) {\\r\\n this.a = +a;\\r\\n this.b = +b;\\r\\n this.c = +c;\\r\\n this.d = +d;\\r\\n this.e = +e;\\r\\n this.f = +f;\\r\\n } else {\\r\\n this.a = 1;\\r\\n this.b = 0;\\r\\n this.c = 0;\\r\\n this.d = 1;\\r\\n this.e = 0;\\r\\n this.f = 0;\\r\\n }\\r\\n }\\r\\n (function (matrixproto) {\\r\\n /*\\\\\\r\\n * Matrix.add\\r\\n [ method ]\\r\\n **\\r\\n * Adds given matrix to existing one.\\r\\n > Parameters\\r\\n - a (number)\\r\\n - b (number)\\r\\n - c (number)\\r\\n - d (number)\\r\\n - e (number)\\r\\n - f (number)\\r\\n or\\r\\n - matrix (object) @Matrix\\r\\n \\\\*/\\r\\n matrixproto.add = function (a, b, c, d, e, f) {\\r\\n var out = [[], [], []],\\r\\n m = [[this.a, this.c, this.e], [this.b, this.d, this.f], [0, 0, 1]],\\r\\n matrix = [[a, c, e], [b, d, f], [0, 0, 1]],\\r\\n x, y, z, res;\\r\\n\\r\\n if (a && a instanceof Matrix) {\\r\\n matrix = [[a.a, a.c, a.e], [a.b, a.d, a.f], [0, 0, 1]];\\r\\n }\\r\\n\\r\\n for (x = 0; x < 3; x++) {\\r\\n for (y = 0; y < 3; y++) {\\r\\n res = 0;\\r\\n for (z = 0; z < 3; z++) {\\r\\n res += m[x][z] * matrix[z][y];\\r\\n }\\r\\n out[x][y] = res;\\r\\n }\\r\\n }\\r\\n this.a = out[0][0];\\r\\n this.b = out[1][0];\\r\\n this.c = out[0][1];\\r\\n this.d = out[1][1];\\r\\n this.e = out[0][2];\\r\\n this.f = out[1][2];\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.invert\\r\\n [ method ]\\r\\n **\\r\\n * Returns inverted version of the matrix\\r\\n = (object) @Matrix\\r\\n \\\\*/\\r\\n matrixproto.invert = function () {\\r\\n var me = this,\\r\\n x = me.a * me.d - me.b * me.c;\\r\\n return new Matrix(me.d / x, -me.b / x, -me.c / x, me.a / x, (me.c * me.f - me.d * me.e) / x, (me.b * me.e - me.a * me.f) / x);\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.clone\\r\\n [ method ]\\r\\n **\\r\\n * Returns copy of the matrix\\r\\n = (object) @Matrix\\r\\n \\\\*/\\r\\n matrixproto.clone = function () {\\r\\n return new Matrix(this.a, this.b, this.c, this.d, this.e, this.f);\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.translate\\r\\n [ method ]\\r\\n **\\r\\n * Translate the matrix\\r\\n > Parameters\\r\\n - x (number)\\r\\n - y (number)\\r\\n \\\\*/\\r\\n matrixproto.translate = function (x, y) {\\r\\n this.add(1, 0, 0, 1, x, y);\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.scale\\r\\n [ method ]\\r\\n **\\r\\n * Scales the matrix\\r\\n > Parameters\\r\\n - x (number)\\r\\n - y (number) #optional\\r\\n - cx (number) #optional\\r\\n - cy (number) #optional\\r\\n \\\\*/\\r\\n matrixproto.scale = function (x, y, cx, cy) {\\r\\n y == null && (y = x);\\r\\n (cx || cy) && this.add(1, 0, 0, 1, cx, cy);\\r\\n this.add(x, 0, 0, y, 0, 0);\\r\\n (cx || cy) && this.add(1, 0, 0, 1, -cx, -cy);\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.rotate\\r\\n [ method ]\\r\\n **\\r\\n * Rotates the matrix\\r\\n > Parameters\\r\\n - a (number)\\r\\n - x (number)\\r\\n - y (number)\\r\\n \\\\*/\\r\\n matrixproto.rotate = function (a, x, y) {\\r\\n a = R.rad(a);\\r\\n x = x || 0;\\r\\n y = y || 0;\\r\\n var cos = +math.cos(a).toFixed(9),\\r\\n sin = +math.sin(a).toFixed(9);\\r\\n this.add(cos, sin, -sin, cos, x, y);\\r\\n this.add(1, 0, 0, 1, -x, -y);\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.x\\r\\n [ method ]\\r\\n **\\r\\n * Return x coordinate for given point after transformation described by the matrix. See also @Matrix.y\\r\\n > Parameters\\r\\n - x (number)\\r\\n - y (number)\\r\\n = (number) x\\r\\n \\\\*/\\r\\n matrixproto.x = function (x, y) {\\r\\n return x * this.a + y * this.c + this.e;\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.y\\r\\n [ method ]\\r\\n **\\r\\n * Return y coordinate for given point after transformation described by the matrix. See also @Matrix.x\\r\\n > Parameters\\r\\n - x (number)\\r\\n - y (number)\\r\\n = (number) y\\r\\n \\\\*/\\r\\n matrixproto.y = function (x, y) {\\r\\n return x * this.b + y * this.d + this.f;\\r\\n };\\r\\n matrixproto.get = function (i) {\\r\\n return +this[Str.fromCharCode(97 + i)].toFixed(4);\\r\\n };\\r\\n matrixproto.toString = function () {\\r\\n return R.svg ?\\r\\n \\\"matrix(\\\" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)].join() + \\\")\\\" :\\r\\n [this.get(0), this.get(2), this.get(1), this.get(3), 0, 0].join();\\r\\n };\\r\\n matrixproto.toFilter = function () {\\r\\n return \\\"progid:DXImageTransform.Microsoft.Matrix(M11=\\\" + this.get(0) +\\r\\n \\\", M12=\\\" + this.get(2) + \\\", M21=\\\" + this.get(1) + \\\", M22=\\\" + this.get(3) +\\r\\n \\\", Dx=\\\" + this.get(4) + \\\", Dy=\\\" + this.get(5) + \\\", sizingmethod='auto expand')\\\";\\r\\n };\\r\\n matrixproto.offset = function () {\\r\\n return [this.e.toFixed(4), this.f.toFixed(4)];\\r\\n };\\r\\n function norm(a) {\\r\\n return a[0] * a[0] + a[1] * a[1];\\r\\n }\\r\\n function normalize(a) {\\r\\n var mag = math.sqrt(norm(a));\\r\\n a[0] && (a[0] /= mag);\\r\\n a[1] && (a[1] /= mag);\\r\\n }\\r\\n /*\\\\\\r\\n * Matrix.split\\r\\n [ method ]\\r\\n **\\r\\n * Splits matrix into primitive transformations\\r\\n = (object) in format:\\r\\n o dx (number) translation by x\\r\\n o dy (number) translation by y\\r\\n o scalex (number) scale by x\\r\\n o scaley (number) scale by y\\r\\n o shear (number) shear\\r\\n o rotate (number) rotation in deg\\r\\n o isSimple (boolean) could it be represented via simple transformations\\r\\n \\\\*/\\r\\n matrixproto.split = function () {\\r\\n var out = {};\\r\\n // translation\\r\\n out.dx = this.e;\\r\\n out.dy = this.f;\\r\\n\\r\\n // scale and shear\\r\\n var row = [[this.a, this.c], [this.b, this.d]];\\r\\n out.scalex = math.sqrt(norm(row[0]));\\r\\n normalize(row[0]);\\r\\n\\r\\n out.shear = row[0][0] * row[1][0] + row[0][1] * row[1][1];\\r\\n row[1] = [row[1][0] - row[0][0] * out.shear, row[1][1] - row[0][1] * out.shear];\\r\\n\\r\\n out.scaley = math.sqrt(norm(row[1]));\\r\\n normalize(row[1]);\\r\\n out.shear /= out.scaley;\\r\\n\\r\\n // rotation\\r\\n var sin = -row[0][1],\\r\\n cos = row[1][1];\\r\\n if (cos < 0) {\\r\\n out.rotate = R.deg(math.acos(cos));\\r\\n if (sin < 0) {\\r\\n out.rotate = 360 - out.rotate;\\r\\n }\\r\\n } else {\\r\\n out.rotate = R.deg(math.asin(sin));\\r\\n }\\r\\n\\r\\n out.isSimple = !+out.shear.toFixed(9) && (out.scalex.toFixed(9) == out.scaley.toFixed(9) || !out.rotate);\\r\\n out.isSuperSimple = !+out.shear.toFixed(9) && out.scalex.toFixed(9) == out.scaley.toFixed(9) && !out.rotate;\\r\\n out.noRotation = !+out.shear.toFixed(9) && !out.rotate;\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Matrix.toTransformString\\r\\n [ method ]\\r\\n **\\r\\n * Return transform string that represents given matrix\\r\\n = (string) transform string\\r\\n \\\\*/\\r\\n matrixproto.toTransformString = function (shorter) {\\r\\n var s = shorter || this[split]();\\r\\n if (s.isSimple) {\\r\\n s.scalex = +s.scalex.toFixed(4);\\r\\n s.scaley = +s.scaley.toFixed(4);\\r\\n s.rotate = +s.rotate.toFixed(4);\\r\\n return (s.dx || s.dy ? \\\"t\\\" + [s.dx, s.dy] : E) +\\r\\n (s.scalex != 1 || s.scaley != 1 ? \\\"s\\\" + [s.scalex, s.scaley, 0, 0] : E) +\\r\\n (s.rotate ? \\\"r\\\" + [s.rotate, 0, 0] : E);\\r\\n } else {\\r\\n return \\\"m\\\" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)];\\r\\n }\\r\\n };\\r\\n })(Matrix.prototype);\\r\\n\\r\\n var preventDefault = function () {\\r\\n this.returnValue = false;\\r\\n },\\r\\n preventTouch = function () {\\r\\n return this.originalEvent.preventDefault();\\r\\n },\\r\\n stopPropagation = function () {\\r\\n this.cancelBubble = true;\\r\\n },\\r\\n stopTouch = function () {\\r\\n return this.originalEvent.stopPropagation();\\r\\n },\\r\\n getEventPosition = function (e) {\\r\\n var scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\\r\\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft;\\r\\n\\r\\n return {\\r\\n x: e.clientX + scrollX,\\r\\n y: e.clientY + scrollY\\r\\n };\\r\\n },\\r\\n addEvent = (function () {\\r\\n if (g.doc.addEventListener) {\\r\\n return function (obj, type, fn, element) {\\r\\n var f = function (e) {\\r\\n var pos = getEventPosition(e);\\r\\n return fn.call(element, e, pos.x, pos.y);\\r\\n };\\r\\n obj.addEventListener(type, f, false);\\r\\n\\r\\n if (supportsTouch && touchMap[type]) {\\r\\n var _f = function (e) {\\r\\n var pos = getEventPosition(e),\\r\\n olde = e;\\r\\n\\r\\n for (var i = 0, ii = e.targetTouches && e.targetTouches.length; i < ii; i++) {\\r\\n if (e.targetTouches[i].target == obj) {\\r\\n e = e.targetTouches[i];\\r\\n e.originalEvent = olde;\\r\\n e.preventDefault = preventTouch;\\r\\n e.stopPropagation = stopTouch;\\r\\n break;\\r\\n }\\r\\n }\\r\\n\\r\\n return fn.call(element, e, pos.x, pos.y);\\r\\n };\\r\\n obj.addEventListener(touchMap[type], _f, false);\\r\\n }\\r\\n\\r\\n return function () {\\r\\n obj.removeEventListener(type, f, false);\\r\\n\\r\\n if (supportsTouch && touchMap[type])\\r\\n obj.removeEventListener(touchMap[type], _f, false);\\r\\n\\r\\n return true;\\r\\n };\\r\\n };\\r\\n } else if (g.doc.attachEvent) {\\r\\n return function (obj, type, fn, element) {\\r\\n var f = function (e) {\\r\\n e = e || g.win.event;\\r\\n var scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\\r\\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft,\\r\\n x = e.clientX + scrollX,\\r\\n y = e.clientY + scrollY;\\r\\n e.preventDefault = e.preventDefault || preventDefault;\\r\\n e.stopPropagation = e.stopPropagation || stopPropagation;\\r\\n return fn.call(element, e, x, y);\\r\\n };\\r\\n obj.attachEvent(\\\"on\\\" + type, f);\\r\\n var detacher = function () {\\r\\n obj.detachEvent(\\\"on\\\" + type, f);\\r\\n return true;\\r\\n };\\r\\n return detacher;\\r\\n };\\r\\n }\\r\\n })(),\\r\\n drag = [],\\r\\n dragMove = function (e) {\\r\\n var x = e.clientX,\\r\\n y = e.clientY,\\r\\n scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\\r\\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft,\\r\\n dragi,\\r\\n j = drag.length;\\r\\n while (j--) {\\r\\n dragi = drag[j];\\r\\n if (supportsTouch && e.touches) {\\r\\n var i = e.touches.length,\\r\\n touch;\\r\\n while (i--) {\\r\\n touch = e.touches[i];\\r\\n if (touch.identifier == dragi.el._drag.id) {\\r\\n x = touch.clientX;\\r\\n y = touch.clientY;\\r\\n (e.originalEvent ? e.originalEvent : e).preventDefault();\\r\\n break;\\r\\n }\\r\\n }\\r\\n } else {\\r\\n e.preventDefault();\\r\\n }\\r\\n var node = dragi.el.node,\\r\\n o,\\r\\n next = node.nextSibling,\\r\\n parent = node.parentNode,\\r\\n display = node.style.display;\\r\\n g.win.opera && parent.removeChild(node);\\r\\n node.style.display = \\\"none\\\";\\r\\n o = dragi.el.paper.getElementByPoint(x, y);\\r\\n node.style.display = display;\\r\\n g.win.opera && (next ? parent.insertBefore(node, next) : parent.appendChild(node));\\r\\n o && eve(\\\"raphael.drag.over.\\\" + dragi.el.id, dragi.el, o);\\r\\n x += scrollX;\\r\\n y += scrollY;\\r\\n eve(\\\"raphael.drag.move.\\\" + dragi.el.id, dragi.move_scope || dragi.el, x - dragi.el._drag.x, y - dragi.el._drag.y, x, y, e);\\r\\n }\\r\\n },\\r\\n dragUp = function (e) {\\r\\n R.unmousemove(dragMove).unmouseup(dragUp);\\r\\n var i = drag.length,\\r\\n dragi;\\r\\n while (i--) {\\r\\n dragi = drag[i];\\r\\n dragi.el._drag = {};\\r\\n eve(\\\"raphael.drag.end.\\\" + dragi.el.id, dragi.end_scope || dragi.start_scope || dragi.move_scope || dragi.el, e);\\r\\n }\\r\\n drag = [];\\r\\n },\\r\\n /*\\\\\\r\\n * Raphael.el\\r\\n [ property (object) ]\\r\\n **\\r\\n * You can add your own method to elements. This is usefull when you want to hack default functionality or\\r\\n * want to wrap some common transformation or attributes in one method. In difference to canvas methods,\\r\\n * you can redefine element method at any time. Expending element methods wouldn’t affect set.\\r\\n > Usage\\r\\n | Raphael.el.red = function () {\\r\\n | this.attr({fill: \\\"#f00\\\"});\\r\\n | };\\r\\n | // then use it\\r\\n | paper.circle(100, 100, 20).red();\\r\\n \\\\*/\\r\\n elproto = R.el = {};\\r\\n /*\\\\\\r\\n * Element.click\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for click for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.unclick\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for click for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.dblclick\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for double click for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.undblclick\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for double click for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.mousedown\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for mousedown for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.unmousedown\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for mousedown for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.mousemove\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for mousemove for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.unmousemove\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for mousemove for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.mouseout\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for mouseout for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.unmouseout\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for mouseout for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.mouseover\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for mouseover for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.unmouseover\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for mouseover for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.mouseup\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for mouseup for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.unmouseup\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for mouseup for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.touchstart\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for touchstart for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.untouchstart\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for touchstart for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.touchmove\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for touchmove for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.untouchmove\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for touchmove for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.touchend\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for touchend for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.untouchend\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for touchend for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n\\r\\n /*\\\\\\r\\n * Element.touchcancel\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handler for touchcancel for the element.\\r\\n > Parameters\\r\\n - handler (function) handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Element.untouchcancel\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handler for touchcancel for the element.\\r\\n > Parameters\\r\\n - handler (function) #optional handler for the event\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n for (var i = events.length; i--;) {\\r\\n (function (eventName) {\\r\\n R[eventName] = elproto[eventName] = function (fn, scope) {\\r\\n if (R.is(fn, \\\"function\\\")) {\\r\\n this.events = this.events || [];\\r\\n this.events.push({name: eventName, f: fn, unbind: addEvent(this.shape || this.node || g.doc, eventName, fn, scope || this)});\\r\\n }\\r\\n return this;\\r\\n };\\r\\n R[\\\"un\\\" + eventName] = elproto[\\\"un\\\" + eventName] = function (fn) {\\r\\n var events = this.events || [],\\r\\n l = events.length;\\r\\n while (l--){\\r\\n if (events[l].name == eventName && (R.is(fn, \\\"undefined\\\") || events[l].f == fn)) {\\r\\n events[l].unbind();\\r\\n events.splice(l, 1);\\r\\n !events.length && delete this.events;\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n })(events[i]);\\r\\n }\\r\\n\\r\\n /*\\\\\\r\\n * Element.data\\r\\n [ method ]\\r\\n **\\r\\n * Adds or retrieves given value asociated with given key.\\r\\n **\\r\\n * See also @Element.removeData\\r\\n > Parameters\\r\\n - key (string) key to store data\\r\\n - value (any) #optional value to store\\r\\n = (object) @Element\\r\\n * or, if value is not specified:\\r\\n = (any) value\\r\\n * or, if key and value are not specified:\\r\\n = (object) Key/value pairs for all the data associated with the element.\\r\\n > Usage\\r\\n | for (var i = 0, i < 5, i++) {\\r\\n | paper.circle(10 + 15 * i, 10, 10)\\r\\n | .attr({fill: \\\"#000\\\"})\\r\\n | .data(\\\"i\\\", i)\\r\\n | .click(function () {\\r\\n | alert(this.data(\\\"i\\\"));\\r\\n | });\\r\\n | }\\r\\n \\\\*/\\r\\n elproto.data = function (key, value) {\\r\\n var data = eldata[this.id] = eldata[this.id] || {};\\r\\n if (arguments.length == 0) {\\r\\n return data;\\r\\n }\\r\\n if (arguments.length == 1) {\\r\\n if (R.is(key, \\\"object\\\")) {\\r\\n for (var i in key) if (key[has](i)) {\\r\\n this.data(i, key[i]);\\r\\n }\\r\\n return this;\\r\\n }\\r\\n eve(\\\"raphael.data.get.\\\" + this.id, this, data[key], key);\\r\\n return data[key];\\r\\n }\\r\\n data[key] = value;\\r\\n eve(\\\"raphael.data.set.\\\" + this.id, this, value, key);\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.removeData\\r\\n [ method ]\\r\\n **\\r\\n * Removes value associated with an element by given key.\\r\\n * If key is not provided, removes all the data of the element.\\r\\n > Parameters\\r\\n - key (string) #optional key\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.removeData = function (key) {\\r\\n if (key == null) {\\r\\n eldata[this.id] = {};\\r\\n } else {\\r\\n eldata[this.id] && delete eldata[this.id][key];\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.getData\\r\\n [ method ]\\r\\n **\\r\\n * Retrieves the element data\\r\\n = (object) data\\r\\n \\\\*/\\r\\n elproto.getData = function () {\\r\\n return clone(eldata[this.id] || {});\\r\\n };\\r\\n /*\\\\\\r\\n * Element.hover\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handlers for hover for the element.\\r\\n > Parameters\\r\\n - f_in (function) handler for hover in\\r\\n - f_out (function) handler for hover out\\r\\n - icontext (object) #optional context for hover in handler\\r\\n - ocontext (object) #optional context for hover out handler\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.hover = function (f_in, f_out, scope_in, scope_out) {\\r\\n return this.mouseover(f_in, scope_in).mouseout(f_out, scope_out || scope_in);\\r\\n };\\r\\n /*\\\\\\r\\n * Element.unhover\\r\\n [ method ]\\r\\n **\\r\\n * Removes event handlers for hover for the element.\\r\\n > Parameters\\r\\n - f_in (function) handler for hover in\\r\\n - f_out (function) handler for hover out\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.unhover = function (f_in, f_out) {\\r\\n return this.unmouseover(f_in).unmouseout(f_out);\\r\\n };\\r\\n var draggable = [];\\r\\n /*\\\\\\r\\n * Element.drag\\r\\n [ method ]\\r\\n **\\r\\n * Adds event handlers for drag of the element.\\r\\n > Parameters\\r\\n - onmove (function) handler for moving\\r\\n - onstart (function) handler for drag start\\r\\n - onend (function) handler for drag end\\r\\n - mcontext (object) #optional context for moving handler\\r\\n - scontext (object) #optional context for drag start handler\\r\\n - econtext (object) #optional context for drag end handler\\r\\n * Additionaly following `drag` events will be triggered: `drag.start.<id>` on start,\\r\\n * `drag.end.<id>` on end and `drag.move.<id>` on every move. When element will be dragged over another element\\r\\n * `drag.over.<id>` will be fired as well.\\r\\n *\\r\\n * Start event and start handler will be called in specified context or in context of the element with following parameters:\\r\\n o x (number) x position of the mouse\\r\\n o y (number) y position of the mouse\\r\\n o event (object) DOM event object\\r\\n * Move event and move handler will be called in specified context or in context of the element with following parameters:\\r\\n o dx (number) shift by x from the start point\\r\\n o dy (number) shift by y from the start point\\r\\n o x (number) x position of the mouse\\r\\n o y (number) y position of the mouse\\r\\n o event (object) DOM event object\\r\\n * End event and end handler will be called in specified context or in context of the element with following parameters:\\r\\n o event (object) DOM event object\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.drag = function (onmove, onstart, onend, move_scope, start_scope, end_scope) {\\r\\n function start(e) {\\r\\n (e.originalEvent || e).preventDefault();\\r\\n var x = e.clientX,\\r\\n y = e.clientY,\\r\\n scrollY = g.doc.documentElement.scrollTop || g.doc.body.scrollTop,\\r\\n scrollX = g.doc.documentElement.scrollLeft || g.doc.body.scrollLeft;\\r\\n this._drag.id = e.identifier;\\r\\n if (supportsTouch && e.touches) {\\r\\n var i = e.touches.length, touch;\\r\\n while (i--) {\\r\\n touch = e.touches[i];\\r\\n this._drag.id = touch.identifier;\\r\\n if (touch.identifier == this._drag.id) {\\r\\n x = touch.clientX;\\r\\n y = touch.clientY;\\r\\n break;\\r\\n }\\r\\n }\\r\\n }\\r\\n this._drag.x = x + scrollX;\\r\\n this._drag.y = y + scrollY;\\r\\n !drag.length && R.mousemove(dragMove).mouseup(dragUp);\\r\\n drag.push({el: this, move_scope: move_scope, start_scope: start_scope, end_scope: end_scope});\\r\\n onstart && eve.on(\\\"raphael.drag.start.\\\" + this.id, onstart);\\r\\n onmove && eve.on(\\\"raphael.drag.move.\\\" + this.id, onmove);\\r\\n onend && eve.on(\\\"raphael.drag.end.\\\" + this.id, onend);\\r\\n eve(\\\"raphael.drag.start.\\\" + this.id, start_scope || move_scope || this, e.clientX + scrollX, e.clientY + scrollY, e);\\r\\n }\\r\\n this._drag = {};\\r\\n draggable.push({el: this, start: start});\\r\\n this.mousedown(start);\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.onDragOver\\r\\n [ method ]\\r\\n **\\r\\n * Shortcut for assigning event handler for `drag.over.<id>` event, where id is id of the element (see @Element.id).\\r\\n > Parameters\\r\\n - f (function) handler for event, first argument would be the element you are dragging over\\r\\n \\\\*/\\r\\n elproto.onDragOver = function (f) {\\r\\n f ? eve.on(\\\"raphael.drag.over.\\\" + this.id, f) : eve.unbind(\\\"raphael.drag.over.\\\" + this.id);\\r\\n };\\r\\n /*\\\\\\r\\n * Element.undrag\\r\\n [ method ]\\r\\n **\\r\\n * Removes all drag event handlers from given element.\\r\\n \\\\*/\\r\\n elproto.undrag = function () {\\r\\n var i = draggable.length;\\r\\n while (i--) if (draggable[i].el == this) {\\r\\n this.unmousedown(draggable[i].start);\\r\\n draggable.splice(i, 1);\\r\\n eve.unbind(\\\"raphael.drag.*.\\\" + this.id);\\r\\n }\\r\\n !draggable.length && R.unmousemove(dragMove).unmouseup(dragUp);\\r\\n drag = [];\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.circle\\r\\n [ method ]\\r\\n **\\r\\n * Draws a circle.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate of the centre\\r\\n - y (number) y coordinate of the centre\\r\\n - r (number) radius\\r\\n = (object) Raphaël element object with type “circle”\\r\\n **\\r\\n > Usage\\r\\n | var c = paper.circle(50, 50, 40);\\r\\n \\\\*/\\r\\n paperproto.circle = function (x, y, r) {\\r\\n var out = R._engine.circle(this, x || 0, y || 0, r || 0);\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.rect\\r\\n [ method ]\\r\\n *\\r\\n * Draws a rectangle.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate of the top left corner\\r\\n - y (number) y coordinate of the top left corner\\r\\n - width (number) width\\r\\n - height (number) height\\r\\n - r (number) #optional radius for rounded corners, default is 0\\r\\n = (object) Raphaël element object with type “rect”\\r\\n **\\r\\n > Usage\\r\\n | // regular rectangle\\r\\n | var c = paper.rect(10, 10, 50, 50);\\r\\n | // rectangle with rounded corners\\r\\n | var c = paper.rect(40, 40, 50, 50, 10);\\r\\n \\\\*/\\r\\n paperproto.rect = function (x, y, w, h, r) {\\r\\n var out = R._engine.rect(this, x || 0, y || 0, w || 0, h || 0, r || 0);\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.ellipse\\r\\n [ method ]\\r\\n **\\r\\n * Draws an ellipse.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate of the centre\\r\\n - y (number) y coordinate of the centre\\r\\n - rx (number) horizontal radius\\r\\n - ry (number) vertical radius\\r\\n = (object) Raphaël element object with type “ellipse”\\r\\n **\\r\\n > Usage\\r\\n | var c = paper.ellipse(50, 50, 40, 20);\\r\\n \\\\*/\\r\\n paperproto.ellipse = function (x, y, rx, ry) {\\r\\n var out = R._engine.ellipse(this, x || 0, y || 0, rx || 0, ry || 0);\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.path\\r\\n [ method ]\\r\\n **\\r\\n * Creates a path element by given path data string.\\r\\n > Parameters\\r\\n - pathString (string) #optional path string in SVG format.\\r\\n * Path string consists of one-letter commands, followed by comma seprarated arguments in numercal form. Example:\\r\\n | \\\"M10,20L30,40\\\"\\r\\n * Here we can see two commands: “M”, with arguments `(10, 20)` and “L” with arguments `(30, 40)`. Upper case letter mean command is absolute, lower case—relative.\\r\\n *\\r\\n # <p>Here is short list of commands available, for more details see <a href=\\\"http://www.w3.org/TR/SVG/paths.html#PathData\\\" title=\\\"Details of a path's data attribute's format are described in the SVG specification.\\\">SVG path string format</a>.</p>\\r\\n # <table><thead><tr><th>Command</th><th>Name</th><th>Parameters</th></tr></thead><tbody>\\r\\n # <tr><td>M</td><td>moveto</td><td>(x y)+</td></tr>\\r\\n # <tr><td>Z</td><td>closepath</td><td>(none)</td></tr>\\r\\n # <tr><td>L</td><td>lineto</td><td>(x y)+</td></tr>\\r\\n # <tr><td>H</td><td>horizontal lineto</td><td>x+</td></tr>\\r\\n # <tr><td>V</td><td>vertical lineto</td><td>y+</td></tr>\\r\\n # <tr><td>C</td><td>curveto</td><td>(x1 y1 x2 y2 x y)+</td></tr>\\r\\n # <tr><td>S</td><td>smooth curveto</td><td>(x2 y2 x y)+</td></tr>\\r\\n # <tr><td>Q</td><td>quadratic Bézier curveto</td><td>(x1 y1 x y)+</td></tr>\\r\\n # <tr><td>T</td><td>smooth quadratic Bézier curveto</td><td>(x y)+</td></tr>\\r\\n # <tr><td>A</td><td>elliptical arc</td><td>(rx ry x-axis-rotation large-arc-flag sweep-flag x y)+</td></tr>\\r\\n # <tr><td>R</td><td><a href=\\\"http://en.wikipedia.org/wiki/Catmull–Rom_spline#Catmull.E2.80.93Rom_spline\\\">Catmull-Rom curveto</a>*</td><td>x1 y1 (x y)+</td></tr></tbody></table>\\r\\n * * “Catmull-Rom curveto” is a not standard SVG command and added in 2.0 to make life easier.\\r\\n * Note: there is a special case when path consist of just three commands: “M10,10R…z”. In this case path will smoothly connects to its beginning.\\r\\n > Usage\\r\\n | var c = paper.path(\\\"M10 10L90 90\\\");\\r\\n | // draw a diagonal line:\\r\\n | // move to 10,10, line to 90,90\\r\\n * For example of path strings, check out these icons: http://raphaeljs.com/icons/\\r\\n \\\\*/\\r\\n paperproto.path = function (pathString) {\\r\\n pathString && !R.is(pathString, string) && !R.is(pathString[0], array) && (pathString += E);\\r\\n var out = R._engine.path(R.format[apply](R, arguments), this);\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.image\\r\\n [ method ]\\r\\n **\\r\\n * Embeds an image into the surface.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - src (string) URI of the source image\\r\\n - x (number) x coordinate position\\r\\n - y (number) y coordinate position\\r\\n - width (number) width of the image\\r\\n - height (number) height of the image\\r\\n = (object) Raphaël element object with type “image”\\r\\n **\\r\\n > Usage\\r\\n | var c = paper.image(\\\"apple.png\\\", 10, 10, 80, 80);\\r\\n \\\\*/\\r\\n paperproto.image = function (src, x, y, w, h) {\\r\\n var out = R._engine.image(this, src || \\\"about:blank\\\", x || 0, y || 0, w || 0, h || 0);\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.text\\r\\n [ method ]\\r\\n **\\r\\n * Draws a text string. If you need line breaks, put “\\\\n” in the string.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate position\\r\\n - y (number) y coordinate position\\r\\n - text (string) The text string to draw\\r\\n = (object) Raphaël element object with type “text”\\r\\n **\\r\\n > Usage\\r\\n | var t = paper.text(50, 50, \\\"Raphaël\\\\nkicks\\\\nbutt!\\\");\\r\\n \\\\*/\\r\\n paperproto.text = function (x, y, text) {\\r\\n var out = R._engine.text(this, x || 0, y || 0, Str(text));\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.set\\r\\n [ method ]\\r\\n **\\r\\n * Creates array-like object to keep and operate several elements at once.\\r\\n * Warning: it doesn’t create any elements for itself in the page, it just groups existing elements.\\r\\n * Sets act as pseudo elements — all methods available to an element can be used on a set.\\r\\n = (object) array-like object that represents set of elements\\r\\n **\\r\\n > Usage\\r\\n | var st = paper.set();\\r\\n | st.push(\\r\\n | paper.circle(10, 10, 5),\\r\\n | paper.circle(30, 10, 5)\\r\\n | );\\r\\n | st.attr({fill: \\\"red\\\"}); // changes the fill of both circles\\r\\n \\\\*/\\r\\n paperproto.set = function (itemsArray) {\\r\\n !R.is(itemsArray, \\\"array\\\") && (itemsArray = Array.prototype.splice.call(arguments, 0, arguments.length));\\r\\n var out = new Set(itemsArray);\\r\\n this.__set__ && this.__set__.push(out);\\r\\n out[\\\"paper\\\"] = this;\\r\\n out[\\\"type\\\"] = \\\"set\\\";\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.setStart\\r\\n [ method ]\\r\\n **\\r\\n * Creates @Paper.set. All elements that will be created after calling this method and before calling\\r\\n * @Paper.setFinish will be added to the set.\\r\\n **\\r\\n > Usage\\r\\n | paper.setStart();\\r\\n | paper.circle(10, 10, 5),\\r\\n | paper.circle(30, 10, 5)\\r\\n | var st = paper.setFinish();\\r\\n | st.attr({fill: \\\"red\\\"}); // changes the fill of both circles\\r\\n \\\\*/\\r\\n paperproto.setStart = function (set) {\\r\\n this.__set__ = set || this.set();\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.setFinish\\r\\n [ method ]\\r\\n **\\r\\n * See @Paper.setStart. This method finishes catching and returns resulting set.\\r\\n **\\r\\n = (object) set\\r\\n \\\\*/\\r\\n paperproto.setFinish = function (set) {\\r\\n var out = this.__set__;\\r\\n delete this.__set__;\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.getSize\\r\\n [ method ]\\r\\n **\\r\\n * Obtains current paper actual size.\\r\\n **\\r\\n = (object)\\r\\n \\\\*/\\r\\n paperproto.getSize = function () {\\r\\n var container = this.canvas.parentNode;\\r\\n return {\\r\\n width: container.offsetWidth,\\r\\n height: container.offsetHeight\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.setSize\\r\\n [ method ]\\r\\n **\\r\\n * If you need to change dimensions of the canvas call this method\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - width (number) new width of the canvas\\r\\n - height (number) new height of the canvas\\r\\n \\\\*/\\r\\n paperproto.setSize = function (width, height) {\\r\\n return R._engine.setSize.call(this, width, height);\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.setViewBox\\r\\n [ method ]\\r\\n **\\r\\n * Sets the view box of the paper. Practically it gives you ability to zoom and pan whole paper surface by\\r\\n * specifying new boundaries.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) new x position, default is `0`\\r\\n - y (number) new y position, default is `0`\\r\\n - w (number) new width of the canvas\\r\\n - h (number) new height of the canvas\\r\\n - fit (boolean) `true` if you want graphics to fit into new boundary box\\r\\n \\\\*/\\r\\n paperproto.setViewBox = function (x, y, w, h, fit) {\\r\\n return R._engine.setViewBox.call(this, x, y, w, h, fit);\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.top\\r\\n [ property ]\\r\\n **\\r\\n * Points to the topmost element on the paper\\r\\n \\\\*/\\r\\n /*\\\\\\r\\n * Paper.bottom\\r\\n [ property ]\\r\\n **\\r\\n * Points to the bottom element on the paper\\r\\n \\\\*/\\r\\n paperproto.top = paperproto.bottom = null;\\r\\n /*\\\\\\r\\n * Paper.raphael\\r\\n [ property ]\\r\\n **\\r\\n * Points to the @Raphael object/function\\r\\n \\\\*/\\r\\n paperproto.raphael = R;\\r\\n var getOffset = function (elem) {\\r\\n var box = elem.getBoundingClientRect(),\\r\\n doc = elem.ownerDocument,\\r\\n body = doc.body,\\r\\n docElem = doc.documentElement,\\r\\n clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,\\r\\n top = box.top + (g.win.pageYOffset || docElem.scrollTop || body.scrollTop ) - clientTop,\\r\\n left = box.left + (g.win.pageXOffset || docElem.scrollLeft || body.scrollLeft) - clientLeft;\\r\\n return {\\r\\n y: top,\\r\\n x: left\\r\\n };\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.getElementByPoint\\r\\n [ method ]\\r\\n **\\r\\n * Returns you topmost element under given point.\\r\\n **\\r\\n = (object) Raphaël element object\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate from the top left corner of the window\\r\\n - y (number) y coordinate from the top left corner of the window\\r\\n > Usage\\r\\n | paper.getElementByPoint(mouseX, mouseY).attr({stroke: \\\"#f00\\\"});\\r\\n \\\\*/\\r\\n paperproto.getElementByPoint = function (x, y) {\\r\\n var paper = this,\\r\\n svg = paper.canvas,\\r\\n target = g.doc.elementFromPoint(x, y);\\r\\n if (g.win.opera && target.tagName == \\\"svg\\\") {\\r\\n var so = getOffset(svg),\\r\\n sr = svg.createSVGRect();\\r\\n sr.x = x - so.x;\\r\\n sr.y = y - so.y;\\r\\n sr.width = sr.height = 1;\\r\\n var hits = svg.getIntersectionList(sr, null);\\r\\n if (hits.length) {\\r\\n target = hits[hits.length - 1];\\r\\n }\\r\\n }\\r\\n if (!target) {\\r\\n return null;\\r\\n }\\r\\n while (target.parentNode && target != svg.parentNode && !target.raphael) {\\r\\n target = target.parentNode;\\r\\n }\\r\\n target == paper.canvas.parentNode && (target = svg);\\r\\n target = target && target.raphael ? paper.getById(target.raphaelid) : null;\\r\\n return target;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Paper.getElementsByBBox\\r\\n [ method ]\\r\\n **\\r\\n * Returns set of elements that have an intersecting bounding box\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - bbox (object) bbox to check with\\r\\n = (object) @Set\\r\\n \\\\*/\\r\\n paperproto.getElementsByBBox = function (bbox) {\\r\\n var set = this.set();\\r\\n this.forEach(function (el) {\\r\\n if (R.isBBoxIntersect(el.getBBox(), bbox)) {\\r\\n set.push(el);\\r\\n }\\r\\n });\\r\\n return set;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Paper.getById\\r\\n [ method ]\\r\\n **\\r\\n * Returns you element by its internal ID.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - id (number) id\\r\\n = (object) Raphaël element object\\r\\n \\\\*/\\r\\n paperproto.getById = function (id) {\\r\\n var bot = this.bottom;\\r\\n while (bot) {\\r\\n if (bot.id == id) {\\r\\n return bot;\\r\\n }\\r\\n bot = bot.next;\\r\\n }\\r\\n return null;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.forEach\\r\\n [ method ]\\r\\n **\\r\\n * Executes given function for each element on the paper\\r\\n *\\r\\n * If callback function returns `false` it will stop loop running.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - callback (function) function to run\\r\\n - thisArg (object) context object for the callback\\r\\n = (object) Paper object\\r\\n > Usage\\r\\n | paper.forEach(function (el) {\\r\\n | el.attr({ stroke: \\\"blue\\\" });\\r\\n | });\\r\\n \\\\*/\\r\\n paperproto.forEach = function (callback, thisArg) {\\r\\n var bot = this.bottom;\\r\\n while (bot) {\\r\\n if (callback.call(thisArg, bot) === false) {\\r\\n return this;\\r\\n }\\r\\n bot = bot.next;\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.getElementsByPoint\\r\\n [ method ]\\r\\n **\\r\\n * Returns set of elements that have common point inside\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate of the point\\r\\n - y (number) y coordinate of the point\\r\\n = (object) @Set\\r\\n \\\\*/\\r\\n paperproto.getElementsByPoint = function (x, y) {\\r\\n var set = this.set();\\r\\n this.forEach(function (el) {\\r\\n if (el.isPointInside(x, y)) {\\r\\n set.push(el);\\r\\n }\\r\\n });\\r\\n return set;\\r\\n };\\r\\n function x_y() {\\r\\n return this.x + S + this.y;\\r\\n }\\r\\n function x_y_w_h() {\\r\\n return this.x + S + this.y + S + this.width + \\\" \\\\xd7 \\\" + this.height;\\r\\n }\\r\\n /*\\\\\\r\\n * Element.isPointInside\\r\\n [ method ]\\r\\n **\\r\\n * Determine if given point is inside this element’s shape\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate of the point\\r\\n - y (number) y coordinate of the point\\r\\n = (boolean) `true` if point inside the shape\\r\\n \\\\*/\\r\\n elproto.isPointInside = function (x, y) {\\r\\n var rp = this.realPath = getPath[this.type](this);\\r\\n if (this.attr('transform') && this.attr('transform').length) {\\r\\n rp = R.transformPath(rp, this.attr('transform'));\\r\\n }\\r\\n return R.isPointInsidePath(rp, x, y);\\r\\n };\\r\\n /*\\\\\\r\\n * Element.getBBox\\r\\n [ method ]\\r\\n **\\r\\n * Return bounding box for a given element\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - isWithoutTransform (boolean) flag, `true` if you want to have bounding box before transformations. Default is `false`.\\r\\n = (object) Bounding box object:\\r\\n o {\\r\\n o x: (number) top left corner x\\r\\n o y: (number) top left corner y\\r\\n o x2: (number) bottom right corner x\\r\\n o y2: (number) bottom right corner y\\r\\n o width: (number) width\\r\\n o height: (number) height\\r\\n o }\\r\\n \\\\*/\\r\\n elproto.getBBox = function (isWithoutTransform) {\\r\\n if (this.removed) {\\r\\n return {};\\r\\n }\\r\\n var _ = this._;\\r\\n if (isWithoutTransform) {\\r\\n if (_.dirty || !_.bboxwt) {\\r\\n this.realPath = getPath[this.type](this);\\r\\n _.bboxwt = pathDimensions(this.realPath);\\r\\n _.bboxwt.toString = x_y_w_h;\\r\\n _.dirty = 0;\\r\\n }\\r\\n return _.bboxwt;\\r\\n }\\r\\n if (_.dirty || _.dirtyT || !_.bbox) {\\r\\n if (_.dirty || !this.realPath) {\\r\\n _.bboxwt = 0;\\r\\n this.realPath = getPath[this.type](this);\\r\\n }\\r\\n _.bbox = pathDimensions(mapPath(this.realPath, this.matrix));\\r\\n _.bbox.toString = x_y_w_h;\\r\\n _.dirty = _.dirtyT = 0;\\r\\n }\\r\\n return _.bbox;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.clone\\r\\n [ method ]\\r\\n **\\r\\n = (object) clone of a given element\\r\\n **\\r\\n \\\\*/\\r\\n elproto.clone = function () {\\r\\n if (this.removed) {\\r\\n return null;\\r\\n }\\r\\n var out = this.paper[this.type]().attr(this.attr());\\r\\n this.__set__ && this.__set__.push(out);\\r\\n return out;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.glow\\r\\n [ method ]\\r\\n **\\r\\n * Return set of elements that create glow-like effect around given element. See @Paper.set.\\r\\n *\\r\\n * Note: Glow is not connected to the element. If you change element attributes it won’t adjust itself.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - glow (object) #optional parameters object with all properties optional:\\r\\n o {\\r\\n o width (number) size of the glow, default is `10`\\r\\n o fill (boolean) will it be filled, default is `false`\\r\\n o opacity (number) opacity, default is `0.5`\\r\\n o offsetx (number) horizontal offset, default is `0`\\r\\n o offsety (number) vertical offset, default is `0`\\r\\n o color (string) glow colour, default is `black`\\r\\n o }\\r\\n = (object) @Paper.set of elements that represents glow\\r\\n \\\\*/\\r\\n elproto.glow = function (glow) {\\r\\n if (this.type == \\\"text\\\") {\\r\\n return null;\\r\\n }\\r\\n glow = glow || {};\\r\\n var s = {\\r\\n width: (glow.width || 10) + (+this.attr(\\\"stroke-width\\\") || 1),\\r\\n fill: glow.fill || false,\\r\\n opacity: glow.opacity == null ? .5 : glow.opacity,\\r\\n offsetx: glow.offsetx || 0,\\r\\n offsety: glow.offsety || 0,\\r\\n color: glow.color || \\\"#000\\\"\\r\\n },\\r\\n c = s.width / 2,\\r\\n r = this.paper,\\r\\n out = r.set(),\\r\\n path = this.realPath || getPath[this.type](this);\\r\\n path = this.matrix ? mapPath(path, this.matrix) : path;\\r\\n for (var i = 1; i < c + 1; i++) {\\r\\n out.push(r.path(path).attr({\\r\\n stroke: s.color,\\r\\n fill: s.fill ? s.color : \\\"none\\\",\\r\\n \\\"stroke-linejoin\\\": \\\"round\\\",\\r\\n \\\"stroke-linecap\\\": \\\"round\\\",\\r\\n \\\"stroke-width\\\": +(s.width / c * i).toFixed(3),\\r\\n opacity: +(s.opacity / c).toFixed(3)\\r\\n }));\\r\\n }\\r\\n return out.insertBefore(this).translate(s.offsetx, s.offsety);\\r\\n };\\r\\n var curveslengths = {},\\r\\n getPointAtSegmentLength = function (p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length) {\\r\\n if (length == null) {\\r\\n return bezlen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y);\\r\\n } else {\\r\\n return R.findDotsAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, getTatLen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length));\\r\\n }\\r\\n },\\r\\n getLengthFactory = function (istotal, subpath) {\\r\\n return function (path, length, onlystart) {\\r\\n path = path2curve(path);\\r\\n var x, y, p, l, sp = \\\"\\\", subpaths = {}, point,\\r\\n len = 0;\\r\\n for (var i = 0, ii = path.length; i < ii; i++) {\\r\\n p = path[i];\\r\\n if (p[0] == \\\"M\\\") {\\r\\n x = +p[1];\\r\\n y = +p[2];\\r\\n } else {\\r\\n l = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6]);\\r\\n if (len + l > length) {\\r\\n if (subpath && !subpaths.start) {\\r\\n point = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6], length - len);\\r\\n sp += [\\\"C\\\" + point.start.x, point.start.y, point.m.x, point.m.y, point.x, point.y];\\r\\n if (onlystart) {return sp;}\\r\\n subpaths.start = sp;\\r\\n sp = [\\\"M\\\" + point.x, point.y + \\\"C\\\" + point.n.x, point.n.y, point.end.x, point.end.y, p[5], p[6]].join();\\r\\n len += l;\\r\\n x = +p[5];\\r\\n y = +p[6];\\r\\n continue;\\r\\n }\\r\\n if (!istotal && !subpath) {\\r\\n point = getPointAtSegmentLength(x, y, p[1], p[2], p[3], p[4], p[5], p[6], length - len);\\r\\n return {x: point.x, y: point.y, alpha: point.alpha};\\r\\n }\\r\\n }\\r\\n len += l;\\r\\n x = +p[5];\\r\\n y = +p[6];\\r\\n }\\r\\n sp += p.shift() + p;\\r\\n }\\r\\n subpaths.end = sp;\\r\\n point = istotal ? len : subpath ? subpaths : R.findDotsAtSegment(x, y, p[0], p[1], p[2], p[3], p[4], p[5], 1);\\r\\n point.alpha && (point = {x: point.x, y: point.y, alpha: point.alpha});\\r\\n return point;\\r\\n };\\r\\n };\\r\\n var getTotalLength = getLengthFactory(1),\\r\\n getPointAtLength = getLengthFactory(),\\r\\n getSubpathsAtLength = getLengthFactory(0, 1);\\r\\n /*\\\\\\r\\n * Raphael.getTotalLength\\r\\n [ method ]\\r\\n **\\r\\n * Returns length of the given path in pixels.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - path (string) SVG path string.\\r\\n **\\r\\n = (number) length.\\r\\n \\\\*/\\r\\n R.getTotalLength = getTotalLength;\\r\\n /*\\\\\\r\\n * Raphael.getPointAtLength\\r\\n [ method ]\\r\\n **\\r\\n * Return coordinates of the point located at the given length on the given path.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - path (string) SVG path string\\r\\n - length (number)\\r\\n **\\r\\n = (object) representation of the point:\\r\\n o {\\r\\n o x: (number) x coordinate\\r\\n o y: (number) y coordinate\\r\\n o alpha: (number) angle of derivative\\r\\n o }\\r\\n \\\\*/\\r\\n R.getPointAtLength = getPointAtLength;\\r\\n /*\\\\\\r\\n * Raphael.getSubpath\\r\\n [ method ]\\r\\n **\\r\\n * Return subpath of a given path from given length to given length.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - path (string) SVG path string\\r\\n - from (number) position of the start of the segment\\r\\n - to (number) position of the end of the segment\\r\\n **\\r\\n = (string) pathstring for the segment\\r\\n \\\\*/\\r\\n R.getSubpath = function (path, from, to) {\\r\\n if (this.getTotalLength(path) - to < 1e-6) {\\r\\n return getSubpathsAtLength(path, from).end;\\r\\n }\\r\\n var a = getSubpathsAtLength(path, to, 1);\\r\\n return from ? getSubpathsAtLength(a, from).end : a;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.getTotalLength\\r\\n [ method ]\\r\\n **\\r\\n * Returns length of the path in pixels. Only works for element of “path” type.\\r\\n = (number) length.\\r\\n \\\\*/\\r\\n elproto.getTotalLength = function () {\\r\\n var path = this.getPath();\\r\\n if (!path) {\\r\\n return;\\r\\n }\\r\\n\\r\\n if (this.node.getTotalLength) {\\r\\n return this.node.getTotalLength();\\r\\n }\\r\\n\\r\\n return getTotalLength(path);\\r\\n };\\r\\n /*\\\\\\r\\n * Element.getPointAtLength\\r\\n [ method ]\\r\\n **\\r\\n * Return coordinates of the point located at the given length on the given path. Only works for element of “path” type.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - length (number)\\r\\n **\\r\\n = (object) representation of the point:\\r\\n o {\\r\\n o x: (number) x coordinate\\r\\n o y: (number) y coordinate\\r\\n o alpha: (number) angle of derivative\\r\\n o }\\r\\n \\\\*/\\r\\n elproto.getPointAtLength = function (length) {\\r\\n var path = this.getPath();\\r\\n if (!path) {\\r\\n return;\\r\\n }\\r\\n\\r\\n return getPointAtLength(path, length);\\r\\n };\\r\\n /*\\\\\\r\\n * Element.getPath\\r\\n [ method ]\\r\\n **\\r\\n * Returns path of the element. Only works for elements of “path” type and simple elements like circle.\\r\\n = (object) path\\r\\n **\\r\\n \\\\*/\\r\\n elproto.getPath = function () {\\r\\n var path,\\r\\n getPath = R._getPath[this.type];\\r\\n\\r\\n if (this.type == \\\"text\\\" || this.type == \\\"set\\\") {\\r\\n return;\\r\\n }\\r\\n\\r\\n if (getPath) {\\r\\n path = getPath(this);\\r\\n }\\r\\n\\r\\n return path;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.getSubpath\\r\\n [ method ]\\r\\n **\\r\\n * Return subpath of a given element from given length to given length. Only works for element of “path” type.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - from (number) position of the start of the segment\\r\\n - to (number) position of the end of the segment\\r\\n **\\r\\n = (string) pathstring for the segment\\r\\n \\\\*/\\r\\n elproto.getSubpath = function (from, to) {\\r\\n var path = this.getPath();\\r\\n if (!path) {\\r\\n return;\\r\\n }\\r\\n\\r\\n return R.getSubpath(path, from, to);\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.easing_formulas\\r\\n [ property ]\\r\\n **\\r\\n * Object that contains easing formulas for animation. You could extend it with your own. By default it has following list of easing:\\r\\n # <ul>\\r\\n # <li>“linear”</li>\\r\\n # <li>“<” or “easeIn” or “ease-in”</li>\\r\\n # <li>“>” or “easeOut” or “ease-out”</li>\\r\\n # <li>“<>” or “easeInOut” or “ease-in-out”</li>\\r\\n # <li>“backIn” or “back-in”</li>\\r\\n # <li>“backOut” or “back-out”</li>\\r\\n # <li>“elastic”</li>\\r\\n # <li>“bounce”</li>\\r\\n # </ul>\\r\\n # <p>See also <a href=\\\"http://raphaeljs.com/easing.html\\\">Easing demo</a>.</p>\\r\\n \\\\*/\\r\\n var ef = R.easing_formulas = {\\r\\n linear: function (n) {\\r\\n return n;\\r\\n },\\r\\n \\\"<\\\": function (n) {\\r\\n return pow(n, 1.7);\\r\\n },\\r\\n \\\">\\\": function (n) {\\r\\n return pow(n, .48);\\r\\n },\\r\\n \\\"<>\\\": function (n) {\\r\\n var q = .48 - n / 1.04,\\r\\n Q = math.sqrt(.1734 + q * q),\\r\\n x = Q - q,\\r\\n X = pow(abs(x), 1 / 3) * (x < 0 ? -1 : 1),\\r\\n y = -Q - q,\\r\\n Y = pow(abs(y), 1 / 3) * (y < 0 ? -1 : 1),\\r\\n t = X + Y + .5;\\r\\n return (1 - t) * 3 * t * t + t * t * t;\\r\\n },\\r\\n backIn: function (n) {\\r\\n var s = 1.70158;\\r\\n return n * n * ((s + 1) * n - s);\\r\\n },\\r\\n backOut: function (n) {\\r\\n n = n - 1;\\r\\n var s = 1.70158;\\r\\n return n * n * ((s + 1) * n + s) + 1;\\r\\n },\\r\\n elastic: function (n) {\\r\\n if (n == !!n) {\\r\\n return n;\\r\\n }\\r\\n return pow(2, -10 * n) * math.sin((n - .075) * (2 * PI) / .3) + 1;\\r\\n },\\r\\n bounce: function (n) {\\r\\n var s = 7.5625,\\r\\n p = 2.75,\\r\\n l;\\r\\n if (n < (1 / p)) {\\r\\n l = s * n * n;\\r\\n } else {\\r\\n if (n < (2 / p)) {\\r\\n n -= (1.5 / p);\\r\\n l = s * n * n + .75;\\r\\n } else {\\r\\n if (n < (2.5 / p)) {\\r\\n n -= (2.25 / p);\\r\\n l = s * n * n + .9375;\\r\\n } else {\\r\\n n -= (2.625 / p);\\r\\n l = s * n * n + .984375;\\r\\n }\\r\\n }\\r\\n }\\r\\n return l;\\r\\n }\\r\\n };\\r\\n ef.easeIn = ef[\\\"ease-in\\\"] = ef[\\\"<\\\"];\\r\\n ef.easeOut = ef[\\\"ease-out\\\"] = ef[\\\">\\\"];\\r\\n ef.easeInOut = ef[\\\"ease-in-out\\\"] = ef[\\\"<>\\\"];\\r\\n ef[\\\"back-in\\\"] = ef.backIn;\\r\\n ef[\\\"back-out\\\"] = ef.backOut;\\r\\n\\r\\n var animationElements = [],\\r\\n requestAnimFrame = window.requestAnimationFrame ||\\r\\n window.webkitRequestAnimationFrame ||\\r\\n window.mozRequestAnimationFrame ||\\r\\n window.oRequestAnimationFrame ||\\r\\n window.msRequestAnimationFrame ||\\r\\n function (callback) {\\r\\n setTimeout(callback, 16);\\r\\n },\\r\\n animation = function () {\\r\\n var Now = +new Date,\\r\\n l = 0;\\r\\n for (; l < animationElements.length; l++) {\\r\\n var e = animationElements[l];\\r\\n if (e.el.removed || e.paused) {\\r\\n continue;\\r\\n }\\r\\n var time = Now - e.start,\\r\\n ms = e.ms,\\r\\n easing = e.easing,\\r\\n from = e.from,\\r\\n diff = e.diff,\\r\\n to = e.to,\\r\\n t = e.t,\\r\\n that = e.el,\\r\\n set = {},\\r\\n now,\\r\\n init = {},\\r\\n key;\\r\\n if (e.initstatus) {\\r\\n time = (e.initstatus * e.anim.top - e.prev) / (e.percent - e.prev) * ms;\\r\\n e.status = e.initstatus;\\r\\n delete e.initstatus;\\r\\n e.stop && animationElements.splice(l--, 1);\\r\\n } else {\\r\\n e.status = (e.prev + (e.percent - e.prev) * (time / ms)) / e.anim.top;\\r\\n }\\r\\n if (time < 0) {\\r\\n continue;\\r\\n }\\r\\n if (time < ms) {\\r\\n var pos = easing(time / ms);\\r\\n for (var attr in from) if (from[has](attr)) {\\r\\n switch (availableAnimAttrs[attr]) {\\r\\n case nu:\\r\\n now = +from[attr] + pos * ms * diff[attr];\\r\\n break;\\r\\n case \\\"colour\\\":\\r\\n now = \\\"rgb(\\\" + [\\r\\n upto255(round(from[attr].r + pos * ms * diff[attr].r)),\\r\\n upto255(round(from[attr].g + pos * ms * diff[attr].g)),\\r\\n upto255(round(from[attr].b + pos * ms * diff[attr].b))\\r\\n ].join(\\\",\\\") + \\\")\\\";\\r\\n break;\\r\\n case \\\"path\\\":\\r\\n now = [];\\r\\n for (var i = 0, ii = from[attr].length; i < ii; i++) {\\r\\n now[i] = [from[attr][i][0]];\\r\\n for (var j = 1, jj = from[attr][i].length; j < jj; j++) {\\r\\n now[i][j] = +from[attr][i][j] + pos * ms * diff[attr][i][j];\\r\\n }\\r\\n now[i] = now[i].join(S);\\r\\n }\\r\\n now = now.join(S);\\r\\n break;\\r\\n case \\\"transform\\\":\\r\\n if (diff[attr].real) {\\r\\n now = [];\\r\\n for (i = 0, ii = from[attr].length; i < ii; i++) {\\r\\n now[i] = [from[attr][i][0]];\\r\\n for (j = 1, jj = from[attr][i].length; j < jj; j++) {\\r\\n now[i][j] = from[attr][i][j] + pos * ms * diff[attr][i][j];\\r\\n }\\r\\n }\\r\\n } else {\\r\\n var get = function (i) {\\r\\n return +from[attr][i] + pos * ms * diff[attr][i];\\r\\n };\\r\\n // now = [[\\\"r\\\", get(2), 0, 0], [\\\"t\\\", get(3), get(4)], [\\\"s\\\", get(0), get(1), 0, 0]];\\r\\n now = [[\\\"m\\\", get(0), get(1), get(2), get(3), get(4), get(5)]];\\r\\n }\\r\\n break;\\r\\n case \\\"csv\\\":\\r\\n if (attr == \\\"clip-rect\\\") {\\r\\n now = [];\\r\\n i = 4;\\r\\n while (i--) {\\r\\n now[i] = +from[attr][i] + pos * ms * diff[attr][i];\\r\\n }\\r\\n }\\r\\n break;\\r\\n default:\\r\\n var from2 = [][concat](from[attr]);\\r\\n now = [];\\r\\n i = that.paper.customAttributes[attr].length;\\r\\n while (i--) {\\r\\n now[i] = +from2[i] + pos * ms * diff[attr][i];\\r\\n }\\r\\n break;\\r\\n }\\r\\n set[attr] = now;\\r\\n }\\r\\n that.attr(set);\\r\\n (function (id, that, anim) {\\r\\n setTimeout(function () {\\r\\n eve(\\\"raphael.anim.frame.\\\" + id, that, anim);\\r\\n });\\r\\n })(that.id, that, e.anim);\\r\\n } else {\\r\\n (function(f, el, a) {\\r\\n setTimeout(function() {\\r\\n eve(\\\"raphael.anim.frame.\\\" + el.id, el, a);\\r\\n eve(\\\"raphael.anim.finish.\\\" + el.id, el, a);\\r\\n R.is(f, \\\"function\\\") && f.call(el);\\r\\n });\\r\\n })(e.callback, that, e.anim);\\r\\n that.attr(to);\\r\\n animationElements.splice(l--, 1);\\r\\n if (e.repeat > 1 && !e.next) {\\r\\n for (key in to) if (to[has](key)) {\\r\\n init[key] = e.totalOrigin[key];\\r\\n }\\r\\n e.el.attr(init);\\r\\n runAnimation(e.anim, e.el, e.anim.percents[0], null, e.totalOrigin, e.repeat - 1);\\r\\n }\\r\\n if (e.next && !e.stop) {\\r\\n runAnimation(e.anim, e.el, e.next, null, e.totalOrigin, e.repeat);\\r\\n }\\r\\n }\\r\\n }\\r\\n animationElements.length && requestAnimFrame(animation);\\r\\n },\\r\\n upto255 = function (color) {\\r\\n return color > 255 ? 255 : color < 0 ? 0 : color;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.animateWith\\r\\n [ method ]\\r\\n **\\r\\n * Acts similar to @Element.animate, but ensure that given animation runs in sync with another given element.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - el (object) element to sync with\\r\\n - anim (object) animation to sync with\\r\\n - params (object) #optional final attributes for the element, see also @Element.attr\\r\\n - ms (number) #optional number of milliseconds for animation to run\\r\\n - easing (string) #optional easing type. Accept on of @Raphael.easing_formulas or CSS format: `cubic‐bezier(XX, XX, XX, XX)`\\r\\n - callback (function) #optional callback function. Will be called at the end of animation.\\r\\n * or\\r\\n - element (object) element to sync with\\r\\n - anim (object) animation to sync with\\r\\n - animation (object) #optional animation object, see @Raphael.animation\\r\\n **\\r\\n = (object) original element\\r\\n \\\\*/\\r\\n elproto.animateWith = function (el, anim, params, ms, easing, callback) {\\r\\n var element = this;\\r\\n if (element.removed) {\\r\\n callback && callback.call(element);\\r\\n return element;\\r\\n }\\r\\n var a = params instanceof Animation ? params : R.animation(params, ms, easing, callback),\\r\\n x, y;\\r\\n runAnimation(a, element, a.percents[0], null, element.attr());\\r\\n for (var i = 0, ii = animationElements.length; i < ii; i++) {\\r\\n if (animationElements[i].anim == anim && animationElements[i].el == el) {\\r\\n animationElements[ii - 1].start = animationElements[i].start;\\r\\n break;\\r\\n }\\r\\n }\\r\\n return element;\\r\\n //\\r\\n //\\r\\n // var a = params ? R.animation(params, ms, easing, callback) : anim,\\r\\n // status = element.status(anim);\\r\\n // return this.animate(a).status(a, status * anim.ms / a.ms);\\r\\n };\\r\\n function CubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration) {\\r\\n var cx = 3 * p1x,\\r\\n bx = 3 * (p2x - p1x) - cx,\\r\\n ax = 1 - cx - bx,\\r\\n cy = 3 * p1y,\\r\\n by = 3 * (p2y - p1y) - cy,\\r\\n ay = 1 - cy - by;\\r\\n function sampleCurveX(t) {\\r\\n return ((ax * t + bx) * t + cx) * t;\\r\\n }\\r\\n function solve(x, epsilon) {\\r\\n var t = solveCurveX(x, epsilon);\\r\\n return ((ay * t + by) * t + cy) * t;\\r\\n }\\r\\n function solveCurveX(x, epsilon) {\\r\\n var t0, t1, t2, x2, d2, i;\\r\\n for(t2 = x, i = 0; i < 8; i++) {\\r\\n x2 = sampleCurveX(t2) - x;\\r\\n if (abs(x2) < epsilon) {\\r\\n return t2;\\r\\n }\\r\\n d2 = (3 * ax * t2 + 2 * bx) * t2 + cx;\\r\\n if (abs(d2) < 1e-6) {\\r\\n break;\\r\\n }\\r\\n t2 = t2 - x2 / d2;\\r\\n }\\r\\n t0 = 0;\\r\\n t1 = 1;\\r\\n t2 = x;\\r\\n if (t2 < t0) {\\r\\n return t0;\\r\\n }\\r\\n if (t2 > t1) {\\r\\n return t1;\\r\\n }\\r\\n while (t0 < t1) {\\r\\n x2 = sampleCurveX(t2);\\r\\n if (abs(x2 - x) < epsilon) {\\r\\n return t2;\\r\\n }\\r\\n if (x > x2) {\\r\\n t0 = t2;\\r\\n } else {\\r\\n t1 = t2;\\r\\n }\\r\\n t2 = (t1 - t0) / 2 + t0;\\r\\n }\\r\\n return t2;\\r\\n }\\r\\n return solve(t, 1 / (200 * duration));\\r\\n }\\r\\n elproto.onAnimation = function (f) {\\r\\n f ? eve.on(\\\"raphael.anim.frame.\\\" + this.id, f) : eve.unbind(\\\"raphael.anim.frame.\\\" + this.id);\\r\\n return this;\\r\\n };\\r\\n function Animation(anim, ms) {\\r\\n var percents = [],\\r\\n newAnim = {};\\r\\n this.ms = ms;\\r\\n this.times = 1;\\r\\n if (anim) {\\r\\n for (var attr in anim) if (anim[has](attr)) {\\r\\n newAnim[toFloat(attr)] = anim[attr];\\r\\n percents.push(toFloat(attr));\\r\\n }\\r\\n percents.sort(sortByNumber);\\r\\n }\\r\\n this.anim = newAnim;\\r\\n this.top = percents[percents.length - 1];\\r\\n this.percents = percents;\\r\\n }\\r\\n /*\\\\\\r\\n * Animation.delay\\r\\n [ method ]\\r\\n **\\r\\n * Creates a copy of existing animation object with given delay.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - delay (number) number of ms to pass between animation start and actual animation\\r\\n **\\r\\n = (object) new altered Animation object\\r\\n | var anim = Raphael.animation({cx: 10, cy: 20}, 2e3);\\r\\n | circle1.animate(anim); // run the given animation immediately\\r\\n | circle2.animate(anim.delay(500)); // run the given animation after 500 ms\\r\\n \\\\*/\\r\\n Animation.prototype.delay = function (delay) {\\r\\n var a = new Animation(this.anim, this.ms);\\r\\n a.times = this.times;\\r\\n a.del = +delay || 0;\\r\\n return a;\\r\\n };\\r\\n /*\\\\\\r\\n * Animation.repeat\\r\\n [ method ]\\r\\n **\\r\\n * Creates a copy of existing animation object with given repetition.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - repeat (number) number iterations of animation. For infinite animation pass `Infinity`\\r\\n **\\r\\n = (object) new altered Animation object\\r\\n \\\\*/\\r\\n Animation.prototype.repeat = function (times) {\\r\\n var a = new Animation(this.anim, this.ms);\\r\\n a.del = this.del;\\r\\n a.times = math.floor(mmax(times, 0)) || 1;\\r\\n return a;\\r\\n };\\r\\n function runAnimation(anim, element, percent, status, totalOrigin, times) {\\r\\n percent = toFloat(percent);\\r\\n var params,\\r\\n isInAnim,\\r\\n isInAnimSet,\\r\\n percents = [],\\r\\n next,\\r\\n prev,\\r\\n timestamp,\\r\\n ms = anim.ms,\\r\\n from = {},\\r\\n to = {},\\r\\n diff = {};\\r\\n if (status) {\\r\\n for (i = 0, ii = animationElements.length; i < ii; i++) {\\r\\n var e = animationElements[i];\\r\\n if (e.el.id == element.id && e.anim == anim) {\\r\\n if (e.percent != percent) {\\r\\n animationElements.splice(i, 1);\\r\\n isInAnimSet = 1;\\r\\n } else {\\r\\n isInAnim = e;\\r\\n }\\r\\n element.attr(e.totalOrigin);\\r\\n break;\\r\\n }\\r\\n }\\r\\n } else {\\r\\n status = +to; // NaN\\r\\n }\\r\\n for (var i = 0, ii = anim.percents.length; i < ii; i++) {\\r\\n if (anim.percents[i] == percent || anim.percents[i] > status * anim.top) {\\r\\n percent = anim.percents[i];\\r\\n prev = anim.percents[i - 1] || 0;\\r\\n ms = ms / anim.top * (percent - prev);\\r\\n next = anim.percents[i + 1];\\r\\n params = anim.anim[percent];\\r\\n break;\\r\\n } else if (status) {\\r\\n element.attr(anim.anim[anim.percents[i]]);\\r\\n }\\r\\n }\\r\\n if (!params) {\\r\\n return;\\r\\n }\\r\\n if (!isInAnim) {\\r\\n for (var attr in params) if (params[has](attr)) {\\r\\n if (availableAnimAttrs[has](attr) || element.paper.customAttributes[has](attr)) {\\r\\n from[attr] = element.attr(attr);\\r\\n (from[attr] == null) && (from[attr] = availableAttrs[attr]);\\r\\n to[attr] = params[attr];\\r\\n switch (availableAnimAttrs[attr]) {\\r\\n case nu:\\r\\n diff[attr] = (to[attr] - from[attr]) / ms;\\r\\n break;\\r\\n case \\\"colour\\\":\\r\\n from[attr] = R.getRGB(from[attr]);\\r\\n var toColour = R.getRGB(to[attr]);\\r\\n diff[attr] = {\\r\\n r: (toColour.r - from[attr].r) / ms,\\r\\n g: (toColour.g - from[attr].g) / ms,\\r\\n b: (toColour.b - from[attr].b) / ms\\r\\n };\\r\\n break;\\r\\n case \\\"path\\\":\\r\\n var pathes = path2curve(from[attr], to[attr]),\\r\\n toPath = pathes[1];\\r\\n from[attr] = pathes[0];\\r\\n diff[attr] = [];\\r\\n for (i = 0, ii = from[attr].length; i < ii; i++) {\\r\\n diff[attr][i] = [0];\\r\\n for (var j = 1, jj = from[attr][i].length; j < jj; j++) {\\r\\n diff[attr][i][j] = (toPath[i][j] - from[attr][i][j]) / ms;\\r\\n }\\r\\n }\\r\\n break;\\r\\n case \\\"transform\\\":\\r\\n var _ = element._,\\r\\n eq = equaliseTransform(_[attr], to[attr]);\\r\\n if (eq) {\\r\\n from[attr] = eq.from;\\r\\n to[attr] = eq.to;\\r\\n diff[attr] = [];\\r\\n diff[attr].real = true;\\r\\n for (i = 0, ii = from[attr].length; i < ii; i++) {\\r\\n diff[attr][i] = [from[attr][i][0]];\\r\\n for (j = 1, jj = from[attr][i].length; j < jj; j++) {\\r\\n diff[attr][i][j] = (to[attr][i][j] - from[attr][i][j]) / ms;\\r\\n }\\r\\n }\\r\\n } else {\\r\\n var m = (element.matrix || new Matrix),\\r\\n to2 = {\\r\\n _: {transform: _.transform},\\r\\n getBBox: function () {\\r\\n return element.getBBox(1);\\r\\n }\\r\\n };\\r\\n from[attr] = [\\r\\n m.a,\\r\\n m.b,\\r\\n m.c,\\r\\n m.d,\\r\\n m.e,\\r\\n m.f\\r\\n ];\\r\\n extractTransform(to2, to[attr]);\\r\\n to[attr] = to2._.transform;\\r\\n diff[attr] = [\\r\\n (to2.matrix.a - m.a) / ms,\\r\\n (to2.matrix.b - m.b) / ms,\\r\\n (to2.matrix.c - m.c) / ms,\\r\\n (to2.matrix.d - m.d) / ms,\\r\\n (to2.matrix.e - m.e) / ms,\\r\\n (to2.matrix.f - m.f) / ms\\r\\n ];\\r\\n // from[attr] = [_.sx, _.sy, _.deg, _.dx, _.dy];\\r\\n // var to2 = {_:{}, getBBox: function () { return element.getBBox(); }};\\r\\n // extractTransform(to2, to[attr]);\\r\\n // diff[attr] = [\\r\\n // (to2._.sx - _.sx) / ms,\\r\\n // (to2._.sy - _.sy) / ms,\\r\\n // (to2._.deg - _.deg) / ms,\\r\\n // (to2._.dx - _.dx) / ms,\\r\\n // (to2._.dy - _.dy) / ms\\r\\n // ];\\r\\n }\\r\\n break;\\r\\n case \\\"csv\\\":\\r\\n var values = Str(params[attr])[split](separator),\\r\\n from2 = Str(from[attr])[split](separator);\\r\\n if (attr == \\\"clip-rect\\\") {\\r\\n from[attr] = from2;\\r\\n diff[attr] = [];\\r\\n i = from2.length;\\r\\n while (i--) {\\r\\n diff[attr][i] = (values[i] - from[attr][i]) / ms;\\r\\n }\\r\\n }\\r\\n to[attr] = values;\\r\\n break;\\r\\n default:\\r\\n values = [][concat](params[attr]);\\r\\n from2 = [][concat](from[attr]);\\r\\n diff[attr] = [];\\r\\n i = element.paper.customAttributes[attr].length;\\r\\n while (i--) {\\r\\n diff[attr][i] = ((values[i] || 0) - (from2[i] || 0)) / ms;\\r\\n }\\r\\n break;\\r\\n }\\r\\n }\\r\\n }\\r\\n var easing = params.easing,\\r\\n easyeasy = R.easing_formulas[easing];\\r\\n if (!easyeasy) {\\r\\n easyeasy = Str(easing).match(bezierrg);\\r\\n if (easyeasy && easyeasy.length == 5) {\\r\\n var curve = easyeasy;\\r\\n easyeasy = function (t) {\\r\\n return CubicBezierAtTime(t, +curve[1], +curve[2], +curve[3], +curve[4], ms);\\r\\n };\\r\\n } else {\\r\\n easyeasy = pipe;\\r\\n }\\r\\n }\\r\\n timestamp = params.start || anim.start || +new Date;\\r\\n e = {\\r\\n anim: anim,\\r\\n percent: percent,\\r\\n timestamp: timestamp,\\r\\n start: timestamp + (anim.del || 0),\\r\\n status: 0,\\r\\n initstatus: status || 0,\\r\\n stop: false,\\r\\n ms: ms,\\r\\n easing: easyeasy,\\r\\n from: from,\\r\\n diff: diff,\\r\\n to: to,\\r\\n el: element,\\r\\n callback: params.callback,\\r\\n prev: prev,\\r\\n next: next,\\r\\n repeat: times || anim.times,\\r\\n origin: element.attr(),\\r\\n totalOrigin: totalOrigin\\r\\n };\\r\\n animationElements.push(e);\\r\\n if (status && !isInAnim && !isInAnimSet) {\\r\\n e.stop = true;\\r\\n e.start = new Date - ms * status;\\r\\n if (animationElements.length == 1) {\\r\\n return animation();\\r\\n }\\r\\n }\\r\\n if (isInAnimSet) {\\r\\n e.start = new Date - e.ms * status;\\r\\n }\\r\\n animationElements.length == 1 && requestAnimFrame(animation);\\r\\n } else {\\r\\n isInAnim.initstatus = status;\\r\\n isInAnim.start = new Date - isInAnim.ms * status;\\r\\n }\\r\\n eve(\\\"raphael.anim.start.\\\" + element.id, element, anim);\\r\\n }\\r\\n /*\\\\\\r\\n * Raphael.animation\\r\\n [ method ]\\r\\n **\\r\\n * Creates an animation object that can be passed to the @Element.animate or @Element.animateWith methods.\\r\\n * See also @Animation.delay and @Animation.repeat methods.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - params (object) final attributes for the element, see also @Element.attr\\r\\n - ms (number) number of milliseconds for animation to run\\r\\n - easing (string) #optional easing type. Accept one of @Raphael.easing_formulas or CSS format: `cubic‐bezier(XX, XX, XX, XX)`\\r\\n - callback (function) #optional callback function. Will be called at the end of animation.\\r\\n **\\r\\n = (object) @Animation\\r\\n \\\\*/\\r\\n R.animation = function (params, ms, easing, callback) {\\r\\n if (params instanceof Animation) {\\r\\n return params;\\r\\n }\\r\\n if (R.is(easing, \\\"function\\\") || !easing) {\\r\\n callback = callback || easing || null;\\r\\n easing = null;\\r\\n }\\r\\n params = Object(params);\\r\\n ms = +ms || 0;\\r\\n var p = {},\\r\\n json,\\r\\n attr;\\r\\n for (attr in params) if (params[has](attr) && toFloat(attr) != attr && toFloat(attr) + \\\"%\\\" != attr) {\\r\\n json = true;\\r\\n p[attr] = params[attr];\\r\\n }\\r\\n if (!json) {\\r\\n // if percent-like syntax is used and end-of-all animation callback used\\r\\n if(callback){\\r\\n // find the last one\\r\\n var lastKey = 0;\\r\\n for(var i in params){\\r\\n var percent = toInt(i);\\r\\n if(params[has](i) && percent > lastKey){\\r\\n lastKey = percent;\\r\\n }\\r\\n }\\r\\n lastKey += '%';\\r\\n // if already defined callback in the last keyframe, skip\\r\\n !params[lastKey].callback && (params[lastKey].callback = callback);\\r\\n }\\r\\n return new Animation(params, ms);\\r\\n } else {\\r\\n easing && (p.easing = easing);\\r\\n callback && (p.callback = callback);\\r\\n return new Animation({100: p}, ms);\\r\\n }\\r\\n };\\r\\n /*\\\\\\r\\n * Element.animate\\r\\n [ method ]\\r\\n **\\r\\n * Creates and starts animation for given element.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - params (object) final attributes for the element, see also @Element.attr\\r\\n - ms (number) number of milliseconds for animation to run\\r\\n - easing (string) #optional easing type. Accept one of @Raphael.easing_formulas or CSS format: `cubic‐bezier(XX, XX, XX, XX)`\\r\\n - callback (function) #optional callback function. Will be called at the end of animation.\\r\\n * or\\r\\n - animation (object) animation object, see @Raphael.animation\\r\\n **\\r\\n = (object) original element\\r\\n \\\\*/\\r\\n elproto.animate = function (params, ms, easing, callback) {\\r\\n var element = this;\\r\\n if (element.removed) {\\r\\n callback && callback.call(element);\\r\\n return element;\\r\\n }\\r\\n var anim = params instanceof Animation ? params : R.animation(params, ms, easing, callback);\\r\\n runAnimation(anim, element, anim.percents[0], null, element.attr());\\r\\n return element;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.setTime\\r\\n [ method ]\\r\\n **\\r\\n * Sets the status of animation of the element in milliseconds. Similar to @Element.status method.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - anim (object) animation object\\r\\n - value (number) number of milliseconds from the beginning of the animation\\r\\n **\\r\\n = (object) original element if `value` is specified\\r\\n * Note, that during animation following events are triggered:\\r\\n *\\r\\n * On each animation frame event `anim.frame.<id>`, on start `anim.start.<id>` and on end `anim.finish.<id>`.\\r\\n \\\\*/\\r\\n elproto.setTime = function (anim, value) {\\r\\n if (anim && value != null) {\\r\\n this.status(anim, mmin(value, anim.ms) / anim.ms);\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.status\\r\\n [ method ]\\r\\n **\\r\\n * Gets or sets the status of animation of the element.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - anim (object) #optional animation object\\r\\n - value (number) #optional 0 – 1. If specified, method works like a setter and sets the status of a given animation to the value. This will cause animation to jump to the given position.\\r\\n **\\r\\n = (number) status\\r\\n * or\\r\\n = (array) status if `anim` is not specified. Array of objects in format:\\r\\n o {\\r\\n o anim: (object) animation object\\r\\n o status: (number) status\\r\\n o }\\r\\n * or\\r\\n = (object) original element if `value` is specified\\r\\n \\\\*/\\r\\n elproto.status = function (anim, value) {\\r\\n var out = [],\\r\\n i = 0,\\r\\n len,\\r\\n e;\\r\\n if (value != null) {\\r\\n runAnimation(anim, this, -1, mmin(value, 1));\\r\\n return this;\\r\\n } else {\\r\\n len = animationElements.length;\\r\\n for (; i < len; i++) {\\r\\n e = animationElements[i];\\r\\n if (e.el.id == this.id && (!anim || e.anim == anim)) {\\r\\n if (anim) {\\r\\n return e.status;\\r\\n }\\r\\n out.push({\\r\\n anim: e.anim,\\r\\n status: e.status\\r\\n });\\r\\n }\\r\\n }\\r\\n if (anim) {\\r\\n return 0;\\r\\n }\\r\\n return out;\\r\\n }\\r\\n };\\r\\n /*\\\\\\r\\n * Element.pause\\r\\n [ method ]\\r\\n **\\r\\n * Stops animation of the element with ability to resume it later on.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - anim (object) #optional animation object\\r\\n **\\r\\n = (object) original element\\r\\n \\\\*/\\r\\n elproto.pause = function (anim) {\\r\\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)) {\\r\\n if (eve(\\\"raphael.anim.pause.\\\" + this.id, this, animationElements[i].anim) !== false) {\\r\\n animationElements[i].paused = true;\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.resume\\r\\n [ method ]\\r\\n **\\r\\n * Resumes animation if it was paused with @Element.pause method.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - anim (object) #optional animation object\\r\\n **\\r\\n = (object) original element\\r\\n \\\\*/\\r\\n elproto.resume = function (anim) {\\r\\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)) {\\r\\n var e = animationElements[i];\\r\\n if (eve(\\\"raphael.anim.resume.\\\" + this.id, this, e.anim) !== false) {\\r\\n delete e.paused;\\r\\n this.status(e.anim, e.status);\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.stop\\r\\n [ method ]\\r\\n **\\r\\n * Stops animation of the element.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - anim (object) #optional animation object\\r\\n **\\r\\n = (object) original element\\r\\n \\\\*/\\r\\n elproto.stop = function (anim) {\\r\\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)) {\\r\\n if (eve(\\\"raphael.anim.stop.\\\" + this.id, this, animationElements[i].anim) !== false) {\\r\\n animationElements.splice(i--, 1);\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n function stopAnimation(paper) {\\r\\n for (var i = 0; i < animationElements.length; i++) if (animationElements[i].el.paper == paper) {\\r\\n animationElements.splice(i--, 1);\\r\\n }\\r\\n }\\r\\n eve.on(\\\"raphael.remove\\\", stopAnimation);\\r\\n eve.on(\\\"raphael.clear\\\", stopAnimation);\\r\\n elproto.toString = function () {\\r\\n return \\\"Rapha\\\\xebl\\\\u2019s object\\\";\\r\\n };\\r\\n\\r\\n // Set\\r\\n var Set = function (items) {\\r\\n this.items = [];\\r\\n this.length = 0;\\r\\n this.type = \\\"set\\\";\\r\\n if (items) {\\r\\n for (var i = 0, ii = items.length; i < ii; i++) {\\r\\n if (items[i] && (items[i].constructor == elproto.constructor || items[i].constructor == Set)) {\\r\\n this[this.items.length] = this.items[this.items.length] = items[i];\\r\\n this.length++;\\r\\n }\\r\\n }\\r\\n }\\r\\n },\\r\\n setproto = Set.prototype;\\r\\n /*\\\\\\r\\n * Set.push\\r\\n [ method ]\\r\\n **\\r\\n * Adds each argument to the current set.\\r\\n = (object) original element\\r\\n \\\\*/\\r\\n setproto.push = function () {\\r\\n var item,\\r\\n len;\\r\\n for (var i = 0, ii = arguments.length; i < ii; i++) {\\r\\n item = arguments[i];\\r\\n if (item && (item.constructor == elproto.constructor || item.constructor == Set)) {\\r\\n len = this.items.length;\\r\\n this[len] = this.items[len] = item;\\r\\n this.length++;\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Set.pop\\r\\n [ method ]\\r\\n **\\r\\n * Removes last element and returns it.\\r\\n = (object) element\\r\\n \\\\*/\\r\\n setproto.pop = function () {\\r\\n this.length && delete this[this.length--];\\r\\n return this.items.pop();\\r\\n };\\r\\n /*\\\\\\r\\n * Set.forEach\\r\\n [ method ]\\r\\n **\\r\\n * Executes given function for each element in the set.\\r\\n *\\r\\n * If function returns `false` it will stop loop running.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - callback (function) function to run\\r\\n - thisArg (object) context object for the callback\\r\\n = (object) Set object\\r\\n \\\\*/\\r\\n setproto.forEach = function (callback, thisArg) {\\r\\n for (var i = 0, ii = this.items.length; i < ii; i++) {\\r\\n if (callback.call(thisArg, this.items[i], i) === false) {\\r\\n return this;\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n for (var method in elproto) if (elproto[has](method)) {\\r\\n setproto[method] = (function (methodname) {\\r\\n return function () {\\r\\n var arg = arguments;\\r\\n return this.forEach(function (el) {\\r\\n el[methodname][apply](el, arg);\\r\\n });\\r\\n };\\r\\n })(method);\\r\\n }\\r\\n setproto.attr = function (name, value) {\\r\\n if (name && R.is(name, array) && R.is(name[0], \\\"object\\\")) {\\r\\n for (var j = 0, jj = name.length; j < jj; j++) {\\r\\n this.items[j].attr(name[j]);\\r\\n }\\r\\n } else {\\r\\n for (var i = 0, ii = this.items.length; i < ii; i++) {\\r\\n this.items[i].attr(name, value);\\r\\n }\\r\\n }\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Set.clear\\r\\n [ method ]\\r\\n **\\r\\n * Removes all elements from the set\\r\\n \\\\*/\\r\\n setproto.clear = function () {\\r\\n while (this.length) {\\r\\n this.pop();\\r\\n }\\r\\n };\\r\\n /*\\\\\\r\\n * Set.splice\\r\\n [ method ]\\r\\n **\\r\\n * Removes given element from the set\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - index (number) position of the deletion\\r\\n - count (number) number of element to remove\\r\\n - insertion… (object) #optional elements to insert\\r\\n = (object) set elements that were deleted\\r\\n \\\\*/\\r\\n setproto.splice = function (index, count, insertion) {\\r\\n index = index < 0 ? mmax(this.length + index, 0) : index;\\r\\n count = mmax(0, mmin(this.length - index, count));\\r\\n var tail = [],\\r\\n todel = [],\\r\\n args = [],\\r\\n i;\\r\\n for (i = 2; i < arguments.length; i++) {\\r\\n args.push(arguments[i]);\\r\\n }\\r\\n for (i = 0; i < count; i++) {\\r\\n todel.push(this[index + i]);\\r\\n }\\r\\n for (; i < this.length - index; i++) {\\r\\n tail.push(this[index + i]);\\r\\n }\\r\\n var arglen = args.length;\\r\\n for (i = 0; i < arglen + tail.length; i++) {\\r\\n this.items[index + i] = this[index + i] = i < arglen ? args[i] : tail[i - arglen];\\r\\n }\\r\\n i = this.items.length = this.length -= count - arglen;\\r\\n while (this[i]) {\\r\\n delete this[i++];\\r\\n }\\r\\n return new Set(todel);\\r\\n };\\r\\n /*\\\\\\r\\n * Set.exclude\\r\\n [ method ]\\r\\n **\\r\\n * Removes given element from the set\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - element (object) element to remove\\r\\n = (boolean) `true` if object was found & removed from the set\\r\\n \\\\*/\\r\\n setproto.exclude = function (el) {\\r\\n for (var i = 0, ii = this.length; i < ii; i++) if (this[i] == el) {\\r\\n this.splice(i, 1);\\r\\n return true;\\r\\n }\\r\\n };\\r\\n setproto.animate = function (params, ms, easing, callback) {\\r\\n (R.is(easing, \\\"function\\\") || !easing) && (callback = easing || null);\\r\\n var len = this.items.length,\\r\\n i = len,\\r\\n item,\\r\\n set = this,\\r\\n collector;\\r\\n if (!len) {\\r\\n return this;\\r\\n }\\r\\n callback && (collector = function () {\\r\\n !--len && callback.call(set);\\r\\n });\\r\\n easing = R.is(easing, string) ? easing : collector;\\r\\n var anim = R.animation(params, ms, easing, collector);\\r\\n item = this.items[--i].animate(anim);\\r\\n while (i--) {\\r\\n this.items[i] && !this.items[i].removed && this.items[i].animateWith(item, anim, anim);\\r\\n (this.items[i] && !this.items[i].removed) || len--;\\r\\n }\\r\\n return this;\\r\\n };\\r\\n setproto.insertAfter = function (el) {\\r\\n var i = this.items.length;\\r\\n while (i--) {\\r\\n this.items[i].insertAfter(el);\\r\\n }\\r\\n return this;\\r\\n };\\r\\n\\r\\n // FREEGROUP Fix: RaphaelJS changes the order of the elements of the 'set' by calling the toBack method.\\r\\n // \\\"toBack\\\" must be called reverse to care about the rendering order. In this case we override\\r\\n // the buggy default implementation here.\\r\\n //\\r\\n setproto.toBack = function () {\\r\\n var i = this.items.length;\\r\\n while (i--) {\\r\\n this.items[i].toBack();\\r\\n }\\r\\n return this;\\r\\n };\\r\\n\\r\\n // FREEGROUP Fix: Unfortunately raphael didn'T expose the \\\"set.prototype\\\". In this case\\r\\n // I must add all extension to the raphael implementation itself.\\r\\n // Provide support method for easy check if the elements are visible.\\r\\n setproto.isVisible = function () {\\r\\n var i = this.items.length;\\r\\n var visible = false;\\r\\n while (i--) {\\r\\n visible = visible ||this.items[i].isVisible();\\r\\n }\\r\\n return visible;\\r\\n };\\r\\n\\r\\n\\r\\n // FREEGROUP FIX: Adding \\\"isWithoutTransform\\\" to the function and redirect them to the elements\\r\\n setproto.getBBox = function (isWithoutTransform) {\\r\\n var x = [],\\r\\n y = [],\\r\\n x2 = [],\\r\\n y2 = [];\\r\\n for (var i = this.items.length; i--;) if (!this.items[i].removed) {\\r\\n var box = this.items[i].getBBox(isWithoutTransform);\\r\\n x.push(box.x);\\r\\n y.push(box.y);\\r\\n x2.push(box.x + box.width);\\r\\n y2.push(box.y + box.height);\\r\\n }\\r\\n x = mmin[apply](0, x);\\r\\n y = mmin[apply](0, y);\\r\\n x2 = mmax[apply](0, x2);\\r\\n y2 = mmax[apply](0, y2);\\r\\n return {\\r\\n x: x,\\r\\n y: y,\\r\\n x2: x2,\\r\\n y2: y2,\\r\\n width: x2 - x,\\r\\n height: y2 - y\\r\\n };\\r\\n };\\r\\n setproto.clone = function (s) {\\r\\n s = this.paper.set();\\r\\n for (var i = 0, ii = this.items.length; i < ii; i++) {\\r\\n s.push(this.items[i].clone());\\r\\n }\\r\\n return s;\\r\\n };\\r\\n setproto.toString = function () {\\r\\n return \\\"Rapha\\\\xebl\\\\u2018s set\\\";\\r\\n };\\r\\n\\r\\n setproto.glow = function(glowConfig) {\\r\\n var ret = this.paper.set();\\r\\n this.forEach(function(shape, index){\\r\\n var g = shape.glow(glowConfig);\\r\\n if(g != null){\\r\\n g.forEach(function(shape2, index2){\\r\\n ret.push(shape2);\\r\\n });\\r\\n }\\r\\n });\\r\\n return ret;\\r\\n };\\r\\n\\r\\n\\r\\n /*\\\\\\r\\n * Set.isPointInside\\r\\n [ method ]\\r\\n **\\r\\n * Determine if given point is inside this set’s elements\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x coordinate of the point\\r\\n - y (number) y coordinate of the point\\r\\n = (boolean) `true` if point is inside any of the set's elements\\r\\n \\\\*/\\r\\n setproto.isPointInside = function (x, y) {\\r\\n var isPointInside = false;\\r\\n this.forEach(function (el) {\\r\\n if (el.isPointInside(x, y)) {\\r\\n isPointInside = true;\\r\\n return false; // stop loop\\r\\n }\\r\\n });\\r\\n return isPointInside;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.registerFont\\r\\n [ method ]\\r\\n **\\r\\n * Adds given font to the registered set of fonts for Raphaël. Should be used as an internal call from within Cufón’s font file.\\r\\n * Returns original parameter, so it could be used with chaining.\\r\\n # <a href=\\\"http://wiki.github.com/sorccu/cufon/about\\\">More about Cufón and how to convert your font form TTF, OTF, etc to JavaScript file.</a>\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - font (object) the font to register\\r\\n = (object) the font you passed in\\r\\n > Usage\\r\\n | Cufon.registerFont(Raphael.registerFont({…}));\\r\\n \\\\*/\\r\\n R.registerFont = function (font) {\\r\\n if (!font.face) {\\r\\n return font;\\r\\n }\\r\\n this.fonts = this.fonts || {};\\r\\n var fontcopy = {\\r\\n w: font.w,\\r\\n face: {},\\r\\n glyphs: {}\\r\\n },\\r\\n family = font.face[\\\"font-family\\\"];\\r\\n for (var prop in font.face) if (font.face[has](prop)) {\\r\\n fontcopy.face[prop] = font.face[prop];\\r\\n }\\r\\n if (this.fonts[family]) {\\r\\n this.fonts[family].push(fontcopy);\\r\\n } else {\\r\\n this.fonts[family] = [fontcopy];\\r\\n }\\r\\n if (!font.svg) {\\r\\n fontcopy.face[\\\"units-per-em\\\"] = toInt(font.face[\\\"units-per-em\\\"], 10);\\r\\n for (var glyph in font.glyphs) if (font.glyphs[has](glyph)) {\\r\\n var path = font.glyphs[glyph];\\r\\n fontcopy.glyphs[glyph] = {\\r\\n w: path.w,\\r\\n k: {},\\r\\n d: path.d && \\\"M\\\" + path.d.replace(/[mlcxtrv]/g, function (command) {\\r\\n return {l: \\\"L\\\", c: \\\"C\\\", x: \\\"z\\\", t: \\\"m\\\", r: \\\"l\\\", v: \\\"c\\\"}[command] || \\\"M\\\";\\r\\n }) + \\\"z\\\"\\r\\n };\\r\\n if (path.k) {\\r\\n for (var k in path.k) if (path[has](k)) {\\r\\n fontcopy.glyphs[glyph].k[k] = path.k[k];\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n return font;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.getFont\\r\\n [ method ]\\r\\n **\\r\\n * Finds font object in the registered fonts by given parameters. You could specify only one word from the font name, like “Myriad” for “Myriad Pro”.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - family (string) font family name or any word from it\\r\\n - weight (string) #optional font weight\\r\\n - style (string) #optional font style\\r\\n - stretch (string) #optional font stretch\\r\\n = (object) the font object\\r\\n > Usage\\r\\n | paper.print(100, 100, \\\"Test string\\\", paper.getFont(\\\"Times\\\", 800), 30);\\r\\n \\\\*/\\r\\n paperproto.getFont = function (family, weight, style, stretch) {\\r\\n stretch = stretch || \\\"normal\\\";\\r\\n style = style || \\\"normal\\\";\\r\\n weight = +weight || {normal: 400, bold: 700, lighter: 300, bolder: 800}[weight] || 400;\\r\\n if (!R.fonts) {\\r\\n return;\\r\\n }\\r\\n var font = R.fonts[family];\\r\\n if (!font) {\\r\\n var name = new RegExp(\\\"(^|\\\\\\\\s)\\\" + family.replace(/[^\\\\w\\\\d\\\\s+!~.:_-]/g, E) + \\\"(\\\\\\\\s|$)\\\", \\\"i\\\");\\r\\n for (var fontName in R.fonts) if (R.fonts[has](fontName)) {\\r\\n if (name.test(fontName)) {\\r\\n font = R.fonts[fontName];\\r\\n break;\\r\\n }\\r\\n }\\r\\n }\\r\\n var thefont;\\r\\n if (font) {\\r\\n for (var i = 0, ii = font.length; i < ii; i++) {\\r\\n thefont = font[i];\\r\\n if (thefont.face[\\\"font-weight\\\"] == weight && (thefont.face[\\\"font-style\\\"] == style || !thefont.face[\\\"font-style\\\"]) && thefont.face[\\\"font-stretch\\\"] == stretch) {\\r\\n break;\\r\\n }\\r\\n }\\r\\n }\\r\\n return thefont;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.print\\r\\n [ method ]\\r\\n **\\r\\n * Creates path that represent given text written using given font at given position with given size.\\r\\n * Result of the method is path element that contains whole text as a separate path.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - x (number) x position of the text\\r\\n - y (number) y position of the text\\r\\n - string (string) text to print\\r\\n - font (object) font object, see @Paper.getFont\\r\\n - size (number) #optional size of the font, default is `16`\\r\\n - origin (string) #optional could be `\\\"baseline\\\"` or `\\\"middle\\\"`, default is `\\\"middle\\\"`\\r\\n - letter_spacing (number) #optional number in range `-1..1`, default is `0`\\r\\n - line_spacing (number) #optional number in range `1..3`, default is `1`\\r\\n = (object) resulting path element, which consist of all letters\\r\\n > Usage\\r\\n | var txt = r.print(10, 50, \\\"print\\\", r.getFont(\\\"Museo\\\"), 30).attr({fill: \\\"#fff\\\"});\\r\\n \\\\*/\\r\\n paperproto.print = function (x, y, string, font, size, origin, letter_spacing, line_spacing) {\\r\\n origin = origin || \\\"middle\\\"; // baseline|middle\\r\\n letter_spacing = mmax(mmin(letter_spacing || 0, 1), -1);\\r\\n line_spacing = mmax(mmin(line_spacing || 1, 3), 1);\\r\\n var letters = Str(string)[split](E),\\r\\n shift = 0,\\r\\n notfirst = 0,\\r\\n path = E,\\r\\n scale;\\r\\n R.is(font, \\\"string\\\") && (font = this.getFont(font));\\r\\n if (font) {\\r\\n scale = (size || 16) / font.face[\\\"units-per-em\\\"];\\r\\n var bb = font.face.bbox[split](separator),\\r\\n top = +bb[0],\\r\\n lineHeight = bb[3] - bb[1],\\r\\n shifty = 0,\\r\\n height = +bb[1] + (origin == \\\"baseline\\\" ? lineHeight + (+font.face.descent) : lineHeight / 2);\\r\\n for (var i = 0, ii = letters.length; i < ii; i++) {\\r\\n if (letters[i] == \\\"\\\\n\\\") {\\r\\n shift = 0;\\r\\n curr = 0;\\r\\n notfirst = 0;\\r\\n shifty += lineHeight * line_spacing;\\r\\n } else {\\r\\n var prev = notfirst && font.glyphs[letters[i - 1]] || {},\\r\\n curr = font.glyphs[letters[i]];\\r\\n shift += notfirst ? (prev.w || font.w) + (prev.k && prev.k[letters[i]] || 0) + (font.w * letter_spacing) : 0;\\r\\n notfirst = 1;\\r\\n }\\r\\n if (curr && curr.d) {\\r\\n path += R.transformPath(curr.d, [\\\"t\\\", shift * scale, shifty * scale, \\\"s\\\", scale, scale, top, height, \\\"t\\\", (x - top) / scale, (y - height) / scale]);\\r\\n }\\r\\n }\\r\\n }\\r\\n return this.path(path).attr({\\r\\n fill: \\\"#000\\\",\\r\\n stroke: \\\"none\\\"\\r\\n });\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Paper.add\\r\\n [ method ]\\r\\n **\\r\\n * Imports elements in JSON array in format `{type: type, <attributes>}`\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - json (array)\\r\\n = (object) resulting set of imported elements\\r\\n > Usage\\r\\n | paper.add([\\r\\n | {\\r\\n | type: \\\"circle\\\",\\r\\n | cx: 10,\\r\\n | cy: 10,\\r\\n | r: 5\\r\\n | },\\r\\n | {\\r\\n | type: \\\"rect\\\",\\r\\n | x: 10,\\r\\n | y: 10,\\r\\n | width: 10,\\r\\n | height: 10,\\r\\n | fill: \\\"#fc0\\\"\\r\\n | }\\r\\n | ]);\\r\\n \\\\*/\\r\\n paperproto.add = function (json) {\\r\\n if (R.is(json, \\\"array\\\")) {\\r\\n var res = this.set(),\\r\\n i = 0,\\r\\n ii = json.length,\\r\\n j;\\r\\n for (; i < ii; i++) {\\r\\n j = json[i] || {};\\r\\n elements[has](j.type) && res.push(this[j.type]().attr(j));\\r\\n }\\r\\n }\\r\\n return res;\\r\\n };\\r\\n\\r\\n /*\\\\\\r\\n * Raphael.format\\r\\n [ method ]\\r\\n **\\r\\n * Simple format function. Replaces construction of type “`{<number>}`” to the corresponding argument.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - token (string) string to format\\r\\n - … (string) rest of arguments will be treated as parameters for replacement\\r\\n = (string) formated string\\r\\n > Usage\\r\\n | var x = 10,\\r\\n | y = 20,\\r\\n | width = 40,\\r\\n | height = 50;\\r\\n | // this will draw a rectangular shape equivalent to \\\"M10,20h40v50h-40z\\\"\\r\\n | paper.path(Raphael.format(\\\"M{0},{1}h{2}v{3}h{4}z\\\", x, y, width, height, -width));\\r\\n \\\\*/\\r\\n R.format = function (token, params) {\\r\\n var args = R.is(params, array) ? [0][concat](params) : arguments;\\r\\n token && R.is(token, string) && args.length - 1 && (token = token.replace(formatrg, function (str, i) {\\r\\n return args[++i] == null ? E : args[i];\\r\\n }));\\r\\n return token || E;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.fullfill\\r\\n [ method ]\\r\\n **\\r\\n * A little bit more advanced format function than @Raphael.format. Replaces construction of type “`{<name>}`” to the corresponding argument.\\r\\n **\\r\\n > Parameters\\r\\n **\\r\\n - token (string) string to format\\r\\n - json (object) object which properties will be used as a replacement\\r\\n = (string) formated string\\r\\n > Usage\\r\\n | // this will draw a rectangular shape equivalent to \\\"M10,20h40v50h-40z\\\"\\r\\n | paper.path(Raphael.fullfill(\\\"M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']}z\\\", {\\r\\n | x: 10,\\r\\n | y: 20,\\r\\n | dim: {\\r\\n | width: 40,\\r\\n | height: 50,\\r\\n | \\\"negative width\\\": -40\\r\\n | }\\r\\n | }));\\r\\n \\\\*/\\r\\n R.fullfill = (function () {\\r\\n var tokenRegex = /\\\\{([^\\\\}]+)\\\\}/g,\\r\\n objNotationRegex = /(?:(?:^|\\\\.)(.+?)(?=\\\\[|\\\\.|$|\\\\()|\\\\[('|\\\")(.+?)\\\\2\\\\])(\\\\(\\\\))?/g, // matches .xxxxx or [\\\"xxxxx\\\"] to run over object properties\\r\\n replacer = function (all, key, obj) {\\r\\n var res = obj;\\r\\n key.replace(objNotationRegex, function (all, name, quote, quotedName, isFunc) {\\r\\n name = name || quotedName;\\r\\n if (res) {\\r\\n if (name in res) {\\r\\n res = res[name];\\r\\n }\\r\\n typeof res == \\\"function\\\" && isFunc && (res = res());\\r\\n }\\r\\n });\\r\\n res = (res == null || res == obj ? all : res) + \\\"\\\";\\r\\n return res;\\r\\n };\\r\\n return function (str, obj) {\\r\\n return String(str).replace(tokenRegex, function (all, key) {\\r\\n return replacer(all, key, obj);\\r\\n });\\r\\n };\\r\\n })();\\r\\n /*\\\\\\r\\n * Raphael.ninja\\r\\n [ method ]\\r\\n **\\r\\n * If you want to leave no trace of Raphaël (Well, Raphaël creates only one global variable `Raphael`, but anyway.) You can use `ninja` method.\\r\\n * Beware, that in this case plugins could stop working, because they are depending on global variable existence.\\r\\n **\\r\\n = (object) Raphael object\\r\\n > Usage\\r\\n | (function (local_raphael) {\\r\\n | var paper = local_raphael(10, 10, 320, 200);\\r\\n | …\\r\\n | })(Raphael.ninja());\\r\\n \\\\*/\\r\\n R.ninja = function () {\\r\\n oldRaphael.was ? (g.win.Raphael = oldRaphael.is) : delete Raphael;\\r\\n return R;\\r\\n };\\r\\n /*\\\\\\r\\n * Raphael.st\\r\\n [ property (object) ]\\r\\n **\\r\\n * You can add your own method to elements and sets. It is wise to add a set method for each element method\\r\\n * you added, so you will be able to call the same method on sets too.\\r\\n **\\r\\n * See also @Raphael.el.\\r\\n > Usage\\r\\n | Raphael.el.red = function () {\\r\\n | this.attr({fill: \\\"#f00\\\"});\\r\\n | };\\r\\n | Raphael.st.red = function () {\\r\\n | this.forEach(function (el) {\\r\\n | el.red();\\r\\n | });\\r\\n | };\\r\\n | // then use it\\r\\n | paper.set(paper.circle(100, 100, 20), paper.circle(110, 100, 20)).red();\\r\\n \\\\*/\\r\\n R.st = setproto;\\r\\n\\r\\n eve.on(\\\"raphael.DOMload\\\", function () {\\r\\n loaded = true;\\r\\n });\\r\\n\\r\\n // Firefox <3.6 fix: http://webreflection.blogspot.com/2009/11/195-chars-to-help-lazy-loading.html\\r\\n (function (doc, loaded, f) {\\r\\n if (doc.readyState == null && doc.addEventListener){\\r\\n doc.addEventListener(loaded, f = function () {\\r\\n doc.removeEventListener(loaded, f, false);\\r\\n doc.readyState = \\\"complete\\\";\\r\\n }, false);\\r\\n doc.readyState = \\\"loading\\\";\\r\\n }\\r\\n function isLoaded() {\\r\\n (/in/).test(doc.readyState) ? setTimeout(isLoaded, 9) : R.eve(\\\"raphael.DOMload\\\");\\r\\n }\\r\\n isLoaded();\\r\\n })(document, \\\"DOMContentLoaded\\\");\\r\\n\\r\\n return R;\\r\\n}));\\r\\n\\r\\n// ┌─────────────────────────────────────────────────────────────────────┐ \\\\\\\\\\r\\n// │ Raphaël 2.1.4 - JavaScript Vector Library │ \\\\\\\\\\r\\n// ├─────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ SVG Module │ \\\\\\\\\\r\\n// ├─────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Copyright (c) 2008-2011 Dmitry Baranovskiy (http://raphaeljs.com) │ \\\\\\\\\\r\\n// │ Copyright (c) 2008-2011 Sencha Labs (http://sencha.com) │ \\\\\\\\\\r\\n// │ Licensed under the MIT (http://raphaeljs.com/license.html) license. │ \\\\\\\\\\r\\n// └─────────────────────────────────────────────────────────────────────┘ \\\\\\\\\\r\\n\\r\\n(function (glob, factory) {\\r\\n if (typeof define === \\\"function\\\" && define.amd) {\\r\\n define(\\\"raphael.svg\\\", [\\\"raphael.core\\\"], function(raphael) {\\r\\n return factory(raphael);\\r\\n });\\r\\n } else if (typeof exports === \\\"object\\\") {\\r\\n factory(require(\\\"./raphael.core\\\"));\\r\\n } else {\\r\\n factory(glob.Raphael);\\r\\n }\\r\\n}(this, function(R) {\\r\\n if (R && !R.svg) {\\r\\n return;\\r\\n }\\r\\n\\r\\n var has = \\\"hasOwnProperty\\\",\\r\\n Str = String,\\r\\n toFloat = parseFloat,\\r\\n toInt = parseInt,\\r\\n math = Math,\\r\\n mmax = math.max,\\r\\n abs = math.abs,\\r\\n pow = math.pow,\\r\\n separator = /[, ]+/,\\r\\n eve = R.eve,\\r\\n E = \\\"\\\",\\r\\n S = \\\" \\\";\\r\\n var xlink = \\\"http://www.w3.org/1999/xlink\\\",\\r\\n markers = {\\r\\n block: \\\"M5,0 0,2.5 5,5z\\\",\\r\\n classic: \\\"M5,0 0,2.5 5,5 3.5,3 3.5,2z\\\",\\r\\n diamond: \\\"M2.5,0 5,2.5 2.5,5 0,2.5z\\\",\\r\\n open: \\\"M6,1 1,3.5 6,6\\\",\\r\\n oval: \\\"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z\\\"\\r\\n },\\r\\n markerCounter = {};\\r\\n R.toString = function () {\\r\\n return \\\"Your browser supports SVG.\\\\nYou are running Rapha\\\\xebl \\\" + this.version;\\r\\n };\\r\\n var $ = function (el, attr) {\\r\\n if (attr) {\\r\\n if (typeof el == \\\"string\\\") {\\r\\n el = $(el);\\r\\n }\\r\\n for (var key in attr) if (attr[has](key)) {\\r\\n if (key.substring(0, 6) == \\\"xlink:\\\") {\\r\\n el.setAttributeNS(xlink, key.substring(6), Str(attr[key]));\\r\\n } else {\\r\\n el.setAttribute(key, Str(attr[key]));\\r\\n }\\r\\n }\\r\\n } else {\\r\\n el = R._g.doc.createElementNS(\\\"http://www.w3.org/2000/svg\\\", el);\\r\\n el.style && (el.style.webkitTapHighlightColor = \\\"rgba(0,0,0,0)\\\");\\r\\n }\\r\\n return el;\\r\\n },\\r\\n addGradientFill = function (element, gradient) {\\r\\n var type = \\\"linear\\\",\\r\\n id = element.id + gradient,\\r\\n fx = .5, fy = .5,\\r\\n o = element.node,\\r\\n SVG = element.paper,\\r\\n s = o.style,\\r\\n el = R._g.doc.getElementById(id);\\r\\n if (!el) {\\r\\n gradient = Str(gradient).replace(R._radial_gradient, function (all, _fx, _fy) {\\r\\n type = \\\"radial\\\";\\r\\n if (_fx && _fy) {\\r\\n fx = toFloat(_fx);\\r\\n fy = toFloat(_fy);\\r\\n var dir = ((fy > .5) * 2 - 1);\\r\\n pow(fx - .5, 2) + pow(fy - .5, 2) > .25 &&\\r\\n (fy = math.sqrt(.25 - pow(fx - .5, 2)) * dir + .5) &&\\r\\n fy != .5 &&\\r\\n (fy = fy.toFixed(5) - 1e-5 * dir);\\r\\n }\\r\\n return E;\\r\\n });\\r\\n gradient = gradient.split(/\\\\s*\\\\-\\\\s*/);\\r\\n if (type == \\\"linear\\\") {\\r\\n var angle = gradient.shift();\\r\\n angle = -toFloat(angle);\\r\\n if (isNaN(angle)) {\\r\\n return null;\\r\\n }\\r\\n var vector = [0, 0, math.cos(R.rad(angle)), math.sin(R.rad(angle))],\\r\\n max = 1 / (mmax(abs(vector[2]), abs(vector[3])) || 1);\\r\\n vector[2] *= max;\\r\\n vector[3] *= max;\\r\\n if (vector[2] < 0) {\\r\\n vector[0] = -vector[2];\\r\\n vector[2] = 0;\\r\\n }\\r\\n if (vector[3] < 0) {\\r\\n vector[1] = -vector[3];\\r\\n vector[3] = 0;\\r\\n }\\r\\n }\\r\\n var dots = R._parseDots(gradient);\\r\\n if (!dots) {\\r\\n return null;\\r\\n }\\r\\n id = id.replace(/[\\\\(\\\\)\\\\s,\\\\xb0#]/g, \\\"_\\\");\\r\\n\\r\\n if (element.gradient && id != element.gradient.id) {\\r\\n SVG.defs.removeChild(element.gradient);\\r\\n delete element.gradient;\\r\\n }\\r\\n\\r\\n if (!element.gradient) {\\r\\n el = $(type + \\\"Gradient\\\", {id: id});\\r\\n element.gradient = el;\\r\\n $(el, type == \\\"radial\\\" ? {\\r\\n fx: fx,\\r\\n fy: fy\\r\\n } : {\\r\\n x1: vector[0],\\r\\n y1: vector[1],\\r\\n x2: vector[2],\\r\\n y2: vector[3],\\r\\n gradientTransform: element.matrix.invert()\\r\\n });\\r\\n SVG.defs.appendChild(el);\\r\\n for (var i = 0, ii = dots.length; i < ii; i++) {\\r\\n el.appendChild($(\\\"stop\\\", {\\r\\n offset: dots[i].offset ? dots[i].offset : i ? \\\"100%\\\" : \\\"0%\\\",\\r\\n \\\"stop-color\\\": dots[i].color || \\\"#fff\\\",\\r\\n \\\"stop-opacity\\\": isFinite(dots[i].opacity) ? dots[i].opacity : 1\\r\\n }));\\r\\n }\\r\\n }\\r\\n }\\r\\n /* FREEGROUP: don't push URL parameter into the drawing. This will break Apps with \\\"?\\\" in the URL\\r\\n * see: https://github.com/DmitryBaranovskiy/raphael/issues/693\\r\\n **/\\r\\n var url =\\\"\\\";//document.location.protocol + \\\"//\\\" + document.location.host + document.location.pathname;\\r\\n $(o, {\\r\\n fill: \\\"url('\\\" + url + \\\"#\\\" + id + \\\"')\\\",\\r\\n opacity: 1,\\r\\n \\\"fill-opacity\\\": 1\\r\\n });\\r\\n\\r\\n s.fill = E;\\r\\n s.opacity = 1;\\r\\n s.fillOpacity = 1;\\r\\n return 1;\\r\\n },\\r\\n updatePosition = function (o) {\\r\\n var bbox = o.getBBox(1);\\r\\n $(o.pattern, {patternTransform: o.matrix.invert() + \\\" translate(\\\" + bbox.x + \\\",\\\" + bbox.y + \\\")\\\"});\\r\\n },\\r\\n addArrow = function (o, value, isEnd) {\\r\\n if (o.type == \\\"path\\\") {\\r\\n var values = Str(value).toLowerCase().split(\\\"-\\\"),\\r\\n p = o.paper,\\r\\n se = isEnd ? \\\"end\\\" : \\\"start\\\",\\r\\n node = o.node,\\r\\n attrs = o.attrs,\\r\\n stroke = attrs[\\\"stroke-width\\\"],\\r\\n i = values.length,\\r\\n type = \\\"classic\\\",\\r\\n from,\\r\\n to,\\r\\n dx,\\r\\n refX,\\r\\n attr,\\r\\n w = 3,\\r\\n h = 3,\\r\\n t = 5;\\r\\n while (i--) {\\r\\n switch (values[i]) {\\r\\n case \\\"block\\\":\\r\\n case \\\"classic\\\":\\r\\n case \\\"oval\\\":\\r\\n case \\\"diamond\\\":\\r\\n case \\\"open\\\":\\r\\n case \\\"none\\\":\\r\\n type = values[i];\\r\\n break;\\r\\n case \\\"wide\\\": h = 5; break;\\r\\n case \\\"narrow\\\": h = 2; break;\\r\\n case \\\"long\\\": w = 5; break;\\r\\n case \\\"short\\\": w = 2; break;\\r\\n }\\r\\n }\\r\\n if (type == \\\"open\\\") {\\r\\n w += 2;\\r\\n h += 2;\\r\\n t += 2;\\r\\n dx = 1;\\r\\n refX = isEnd ? 4 : 1;\\r\\n attr = {\\r\\n fill: \\\"none\\\",\\r\\n stroke: attrs.stroke\\r\\n };\\r\\n } else {\\r\\n refX = dx = w / 2;\\r\\n attr = {\\r\\n fill: attrs.stroke,\\r\\n stroke: \\\"none\\\"\\r\\n };\\r\\n }\\r\\n if (o._.arrows) {\\r\\n if (isEnd) {\\r\\n o._.arrows.endPath && markerCounter[o._.arrows.endPath]--;\\r\\n o._.arrows.endMarker && markerCounter[o._.arrows.endMarker]--;\\r\\n } else {\\r\\n o._.arrows.startPath && markerCounter[o._.arrows.startPath]--;\\r\\n o._.arrows.startMarker && markerCounter[o._.arrows.startMarker]--;\\r\\n }\\r\\n } else {\\r\\n o._.arrows = {};\\r\\n }\\r\\n if (type != \\\"none\\\") {\\r\\n var pathId = \\\"raphael-marker-\\\" + type,\\r\\n markerId = \\\"raphael-marker-\\\" + se + type + w + h + \\\"-obj\\\" + o.id;\\r\\n if (!R._g.doc.getElementById(pathId)) {\\r\\n p.defs.appendChild($($(\\\"path\\\"), {\\r\\n \\\"stroke-linecap\\\": \\\"round\\\",\\r\\n d: markers[type],\\r\\n id: pathId\\r\\n }));\\r\\n markerCounter[pathId] = 1;\\r\\n } else {\\r\\n markerCounter[pathId]++;\\r\\n }\\r\\n var marker = R._g.doc.getElementById(markerId),\\r\\n use;\\r\\n if (!marker) {\\r\\n marker = $($(\\\"marker\\\"), {\\r\\n id: markerId,\\r\\n markerHeight: h,\\r\\n markerWidth: w,\\r\\n orient: \\\"auto\\\",\\r\\n refX: refX,\\r\\n refY: h / 2\\r\\n });\\r\\n use = $($(\\\"use\\\"), {\\r\\n \\\"xlink:href\\\": \\\"#\\\" + pathId,\\r\\n transform: (isEnd ? \\\"rotate(180 \\\" + w / 2 + \\\" \\\" + h / 2 + \\\") \\\" : E) + \\\"scale(\\\" + w / t + \\\",\\\" + h / t + \\\")\\\",\\r\\n \\\"stroke-width\\\": (1 / ((w / t + h / t) / 2)).toFixed(4)\\r\\n });\\r\\n marker.appendChild(use);\\r\\n p.defs.appendChild(marker);\\r\\n markerCounter[markerId] = 1;\\r\\n } else {\\r\\n markerCounter[markerId]++;\\r\\n use = marker.getElementsByTagName(\\\"use\\\")[0];\\r\\n }\\r\\n $(use, attr);\\r\\n var delta = dx * (type != \\\"diamond\\\" && type != \\\"oval\\\");\\r\\n if (isEnd) {\\r\\n from = o._.arrows.startdx * stroke || 0;\\r\\n to = R.getTotalLength(attrs.path) - delta * stroke;\\r\\n } else {\\r\\n from = delta * stroke;\\r\\n to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);\\r\\n }\\r\\n attr = {};\\r\\n attr[\\\"marker-\\\" + se] = \\\"url(#\\\" + markerId + \\\")\\\";\\r\\n if (to || from) {\\r\\n attr.d = R.getSubpath(attrs.path, from, to);\\r\\n }\\r\\n $(node, attr);\\r\\n o._.arrows[se + \\\"Path\\\"] = pathId;\\r\\n o._.arrows[se + \\\"Marker\\\"] = markerId;\\r\\n o._.arrows[se + \\\"dx\\\"] = delta;\\r\\n o._.arrows[se + \\\"Type\\\"] = type;\\r\\n o._.arrows[se + \\\"String\\\"] = value;\\r\\n } else {\\r\\n if (isEnd) {\\r\\n from = o._.arrows.startdx * stroke || 0;\\r\\n to = R.getTotalLength(attrs.path) - from;\\r\\n } else {\\r\\n from = 0;\\r\\n to = R.getTotalLength(attrs.path) - (o._.arrows.enddx * stroke || 0);\\r\\n }\\r\\n o._.arrows[se + \\\"Path\\\"] && $(node, {d: R.getSubpath(attrs.path, from, to)});\\r\\n delete o._.arrows[se + \\\"Path\\\"];\\r\\n delete o._.arrows[se + \\\"Marker\\\"];\\r\\n delete o._.arrows[se + \\\"dx\\\"];\\r\\n delete o._.arrows[se + \\\"Type\\\"];\\r\\n delete o._.arrows[se + \\\"String\\\"];\\r\\n }\\r\\n for (attr in markerCounter) if (markerCounter[has](attr) && !markerCounter[attr]) {\\r\\n var item = R._g.doc.getElementById(attr);\\r\\n item && item.parentNode.removeChild(item);\\r\\n }\\r\\n }\\r\\n },\\r\\n dasharray = {\\r\\n \\\"-\\\": [3, 1],\\r\\n \\\".\\\": [1, 1],\\r\\n \\\"-.\\\": [3, 1, 1, 1],\\r\\n \\\"-..\\\": [3, 1, 1, 1, 1, 1],\\r\\n \\\". \\\": [1, 3],\\r\\n \\\"- \\\": [4, 3],\\r\\n \\\"--\\\": [8, 3],\\r\\n \\\"- .\\\": [4, 3, 1, 3],\\r\\n \\\"--.\\\": [8, 3, 1, 3],\\r\\n \\\"--..\\\": [8, 3, 1, 3, 1, 3]\\r\\n },\\r\\n addDashes = function (o, value, params) {\\r\\n value = dasharray[Str(value).toLowerCase()];\\r\\n if (value) {\\r\\n var width = o.attrs[\\\"stroke-width\\\"] || \\\"1\\\",\\r\\n butt = {round: width, square: width, butt: 0}[o.attrs[\\\"stroke-linecap\\\"] || params[\\\"stroke-linecap\\\"]] || 0,\\r\\n dashes = [],\\r\\n i = value.length;\\r\\n while (i--) {\\r\\n dashes[i] = value[i] * width + ((i % 2) ? 1 : -1) * butt;\\r\\n }\\r\\n $(o.node, {\\\"stroke-dasharray\\\": dashes.join(\\\",\\\")});\\r\\n }\\r\\n else {\\r\\n $(o.node, {\\\"stroke-dasharray\\\": \\\"none\\\"});\\r\\n }\\r\\n },\\r\\n setFillAndStroke = function (o, params) {\\r\\n var node = o.node,\\r\\n attrs = o.attrs,\\r\\n vis = node.style.visibility;\\r\\n node.style.visibility = \\\"hidden\\\";\\r\\n for (var att in params) {\\r\\n if (params[has](att)) {\\r\\n if (!R._availableAttrs[has](att)) {\\r\\n continue;\\r\\n }\\r\\n var value = params[att];\\r\\n attrs[att] = value;\\r\\n switch (att) {\\r\\n case \\\"blur\\\":\\r\\n o.blur(value);\\r\\n break;\\r\\n case \\\"title\\\":\\r\\n var title = node.getElementsByTagName(\\\"title\\\");\\r\\n\\r\\n // Use the existing <title>.\\r\\n if (title.length && (title = title[0])) {\\r\\n title.firstChild.nodeValue = value;\\r\\n } else {\\r\\n title = $(\\\"title\\\");\\r\\n var val = R._g.doc.createTextNode(value);\\r\\n title.appendChild(val);\\r\\n node.appendChild(title);\\r\\n }\\r\\n break;\\r\\n case \\\"href\\\":\\r\\n case \\\"target\\\":\\r\\n var pn = node.parentNode;\\r\\n if (pn.tagName.toLowerCase() != \\\"a\\\") {\\r\\n var hl = $(\\\"a\\\");\\r\\n pn.insertBefore(hl, node);\\r\\n hl.appendChild(node);\\r\\n pn = hl;\\r\\n }\\r\\n if (att == \\\"target\\\") {\\r\\n pn.setAttributeNS(xlink, \\\"show\\\", value == \\\"blank\\\" ? \\\"new\\\" : value);\\r\\n } else {\\r\\n pn.setAttributeNS(xlink, att, value);\\r\\n }\\r\\n break;\\r\\n case \\\"cursor\\\":\\r\\n node.style.cursor = value;\\r\\n break;\\r\\n case \\\"transform\\\":\\r\\n o.transform(value);\\r\\n break;\\r\\n case \\\"arrow-start\\\":\\r\\n addArrow(o, value);\\r\\n break;\\r\\n case \\\"arrow-end\\\":\\r\\n addArrow(o, value, 1);\\r\\n break;\\r\\n case \\\"clip-rect\\\":\\r\\n var rect = Str(value).split(separator);\\r\\n if (rect.length == 4) {\\r\\n o.clip && o.clip.parentNode.parentNode.removeChild(o.clip.parentNode);\\r\\n var el = $(\\\"clipPath\\\"),\\r\\n rc = $(\\\"rect\\\");\\r\\n el.id = R.createUUID();\\r\\n $(rc, {\\r\\n x: rect[0],\\r\\n y: rect[1],\\r\\n width: rect[2],\\r\\n height: rect[3]\\r\\n });\\r\\n el.appendChild(rc);\\r\\n o.paper.defs.appendChild(el);\\r\\n $(node, {\\\"clip-path\\\": \\\"url(#\\\" + el.id + \\\")\\\"});\\r\\n o.clip = rc;\\r\\n }\\r\\n if (!value) {\\r\\n var path = node.getAttribute(\\\"clip-path\\\");\\r\\n if (path) {\\r\\n var clip = R._g.doc.getElementById(path.replace(/(^url\\\\(#|\\\\)$)/g, E));\\r\\n clip && clip.parentNode.removeChild(clip);\\r\\n $(node, {\\\"clip-path\\\": E});\\r\\n delete o.clip;\\r\\n }\\r\\n }\\r\\n break;\\r\\n case \\\"path\\\":\\r\\n if (o.type == \\\"path\\\") {\\r\\n $(node, {d: value ? attrs.path = R._pathToAbsolute(value) : \\\"M0,0\\\"});\\r\\n o._.dirty = 1;\\r\\n if (o._.arrows) {\\r\\n \\\"startString\\\" in o._.arrows && addArrow(o, o._.arrows.startString);\\r\\n \\\"endString\\\" in o._.arrows && addArrow(o, o._.arrows.endString, 1);\\r\\n }\\r\\n }\\r\\n break;\\r\\n case \\\"width\\\":\\r\\n node.setAttribute(att, value);\\r\\n o._.dirty = 1;\\r\\n if (attrs.fx) {\\r\\n att = \\\"x\\\";\\r\\n value = attrs.x;\\r\\n } else {\\r\\n break;\\r\\n }\\r\\n case \\\"x\\\":\\r\\n if (attrs.fx) {\\r\\n value = -attrs.x - (attrs.width || 0);\\r\\n }\\r\\n case \\\"rx\\\":\\r\\n if (att == \\\"rx\\\" && o.type == \\\"rect\\\") {\\r\\n break;\\r\\n }\\r\\n case \\\"cx\\\":\\r\\n node.setAttribute(att, value);\\r\\n o.pattern && updatePosition(o);\\r\\n o._.dirty = 1;\\r\\n break;\\r\\n case \\\"height\\\":\\r\\n node.setAttribute(att, value);\\r\\n o._.dirty = 1;\\r\\n if (attrs.fy) {\\r\\n att = \\\"y\\\";\\r\\n value = attrs.y;\\r\\n } else {\\r\\n break;\\r\\n }\\r\\n case \\\"y\\\":\\r\\n if (attrs.fy) {\\r\\n value = -attrs.y - (attrs.height || 0);\\r\\n }\\r\\n case \\\"ry\\\":\\r\\n if (att == \\\"ry\\\" && o.type == \\\"rect\\\") {\\r\\n break;\\r\\n }\\r\\n case \\\"cy\\\":\\r\\n node.setAttribute(att, value);\\r\\n o.pattern && updatePosition(o);\\r\\n o._.dirty = 1;\\r\\n break;\\r\\n case \\\"r\\\":\\r\\n if (o.type == \\\"rect\\\") {\\r\\n $(node, {rx: value, ry: value});\\r\\n } else {\\r\\n node.setAttribute(att, value);\\r\\n }\\r\\n o._.dirty = 1;\\r\\n break;\\r\\n case \\\"src\\\":\\r\\n if (o.type == \\\"image\\\") {\\r\\n node.setAttributeNS(xlink, \\\"href\\\", value);\\r\\n }\\r\\n break;\\r\\n case \\\"stroke-width\\\":\\r\\n /* FREEGROUP fix\\r\\n * draw2d version 3.0.3\\r\\n *\\r\\n * don't scale the line width if the user resize an shape/element.\\r\\n * Obscure stroke-width in case of \\\"Draw2D touch\\\" usage\\r\\n */\\r\\n if(!attrs[\\\"stroke-scale\\\"]){\\r\\n if (o._.sx != 1 || o._.sy != 1) {\\r\\n value /= mmax(abs(o._.sx), abs(o._.sy)) || 1;\\r\\n }\\r\\n if (o.paper._vbSize) {\\r\\n // value *= o.paper._vbSize;\\r\\n }\\r\\n }\\r\\n\\r\\n\\r\\n node.setAttribute(att, value);\\r\\n if (attrs[\\\"stroke-dasharray\\\"]) {\\r\\n addDashes(o, attrs[\\\"stroke-dasharray\\\"], params);\\r\\n }\\r\\n if (o._.arrows) {\\r\\n \\\"startString\\\" in o._.arrows && addArrow(o, o._.arrows.startString);\\r\\n \\\"endString\\\" in o._.arrows && addArrow(o, o._.arrows.endString, 1);\\r\\n }\\r\\n break;\\r\\n case \\\"stroke-dasharray\\\":\\r\\n addDashes(o, value, params);\\r\\n break;\\r\\n case \\\"fill\\\":\\r\\n var isURL = Str(value).match(R._ISURL);\\r\\n if (isURL) {\\r\\n el = $(\\\"pattern\\\");\\r\\n var ig = $(\\\"image\\\");\\r\\n el.id = R.createUUID();\\r\\n $(el, {x: 0, y: 0, patternUnits: \\\"userSpaceOnUse\\\", height: 1, width: 1});\\r\\n $(ig, {x: 0, y: 0, \\\"xlink:href\\\": isURL[1]});\\r\\n el.appendChild(ig);\\r\\n\\r\\n (function (el) {\\r\\n R._preload(isURL[1], function () {\\r\\n var w = this.offsetWidth,\\r\\n h = this.offsetHeight;\\r\\n $(el, {width: w, height: h});\\r\\n $(ig, {width: w, height: h});\\r\\n });\\r\\n })(el);\\r\\n o.paper.defs.appendChild(el);\\r\\n $(node, {fill: \\\"url(#\\\" + el.id + \\\")\\\"});\\r\\n o.pattern = el;\\r\\n o.pattern && updatePosition(o);\\r\\n break;\\r\\n }\\r\\n var clr = R.getRGB(value);\\r\\n if (!clr.error) {\\r\\n delete params.gradient;\\r\\n delete attrs.gradient;\\r\\n !R.is(attrs.opacity, \\\"undefined\\\") &&\\r\\n R.is(params.opacity, \\\"undefined\\\") &&\\r\\n $(node, {opacity: attrs.opacity});\\r\\n !R.is(attrs[\\\"fill-opacity\\\"], \\\"undefined\\\") &&\\r\\n R.is(params[\\\"fill-opacity\\\"], \\\"undefined\\\") &&\\r\\n $(node, {\\\"fill-opacity\\\": attrs[\\\"fill-opacity\\\"]});\\r\\n } else if ((o.type == \\\"circle\\\" || o.type == \\\"ellipse\\\" || Str(value).charAt() != \\\"r\\\") && addGradientFill(o, value)) {\\r\\n if (\\\"opacity\\\" in attrs || \\\"fill-opacity\\\" in attrs) {\\r\\n var gradient = R._g.doc.getElementById(node.getAttribute(\\\"fill\\\").replace(/^url\\\\(#|\\\\)$/g, E));\\r\\n if (gradient) {\\r\\n var stops = gradient.getElementsByTagName(\\\"stop\\\");\\r\\n $(stops[stops.length - 1], {\\\"stop-opacity\\\": (\\\"opacity\\\" in attrs ? attrs.opacity : 1) * (\\\"fill-opacity\\\" in attrs ? attrs[\\\"fill-opacity\\\"] : 1)});\\r\\n }\\r\\n }\\r\\n attrs.gradient = value;\\r\\n attrs.fill = \\\"none\\\";\\r\\n break;\\r\\n }\\r\\n clr[has](\\\"opacity\\\") && $(node, {\\\"fill-opacity\\\": clr.opacity > 1 ? clr.opacity / 100 : clr.opacity});\\r\\n case \\\"stroke\\\":\\r\\n clr = R.getRGB(value);\\r\\n node.setAttribute(att, clr.hex);\\r\\n att == \\\"stroke\\\" && clr[has](\\\"opacity\\\") && $(node, {\\\"stroke-opacity\\\": clr.opacity > 1 ? clr.opacity / 100 : clr.opacity});\\r\\n if (att == \\\"stroke\\\" && o._.arrows) {\\r\\n \\\"startString\\\" in o._.arrows && addArrow(o, o._.arrows.startString);\\r\\n \\\"endString\\\" in o._.arrows && addArrow(o, o._.arrows.endString, 1);\\r\\n }\\r\\n break;\\r\\n case \\\"gradient\\\":\\r\\n (o.type == \\\"circle\\\" || o.type == \\\"ellipse\\\" || Str(value).charAt() != \\\"r\\\") && addGradientFill(o, value);\\r\\n break;\\r\\n case \\\"opacity\\\":\\r\\n if (attrs.gradient && !attrs[has](\\\"stroke-opacity\\\")) {\\r\\n $(node, {\\\"stroke-opacity\\\": value > 1 ? value / 100 : value});\\r\\n }\\r\\n // fall\\r\\n case \\\"fill-opacity\\\":\\r\\n if (attrs.gradient) {\\r\\n gradient = R._g.doc.getElementById(node.getAttribute(\\\"fill\\\").replace(/^url\\\\(#|\\\\)$/g, E));\\r\\n if (gradient) {\\r\\n stops = gradient.getElementsByTagName(\\\"stop\\\");\\r\\n // FREEGROUP FIX\\r\\n for (gri = 0, grii = stops.length; gri < grii; gri++) {\\r\\n $(stops[gri], {\\\"stop-opacity\\\": value});\\r\\n }\\r\\n // END FIX\\r\\n }\\r\\n break;\\r\\n }\\r\\n default:\\r\\n att == \\\"font-size\\\" && (value = toInt(value, 10) + \\\"px\\\");\\r\\n var cssrule = att.replace(/(\\\\-.)/g, function (w) {\\r\\n return w.substring(1).toUpperCase();\\r\\n });\\r\\n node.style[cssrule] = value;\\r\\n o._.dirty = 1;\\r\\n node.setAttribute(att, value);\\r\\n break;\\r\\n }\\r\\n }\\r\\n }\\r\\n\\r\\n tuneText(o, params);\\r\\n node.style.visibility = vis;\\r\\n },\\r\\n leading = 1.2,\\r\\n tuneText = function (el, params) {\\r\\n if (el.type != \\\"text\\\" || !(params[has](\\\"text\\\") || params[has](\\\"font\\\") || params[has](\\\"font-size\\\") || params[has](\\\"x\\\") || params[has](\\\"y\\\"))) {\\r\\n return;\\r\\n }\\r\\n var a = el.attrs,\\r\\n node = el.node,\\r\\n fontSize = node.firstChild ? toInt(R._g.doc.defaultView.getComputedStyle(node.firstChild, E).getPropertyValue(\\\"font-size\\\"), 10) : 10;\\r\\n\\r\\n if (params[has](\\\"text\\\")) {\\r\\n a.text = params.text;\\r\\n while (node.firstChild) {\\r\\n node.removeChild(node.firstChild);\\r\\n }\\r\\n var texts = Str(params.text).split(\\\"\\\\n\\\"),\\r\\n tspans = [],\\r\\n tspan;\\r\\n for (var i = 0, ii = texts.length; i < ii; i++) {\\r\\n tspan = $(\\\"tspan\\\");\\r\\n i && $(tspan, {dy: fontSize * leading, x: a.x});\\r\\n tspan.appendChild(R._g.doc.createTextNode(texts[i]));\\r\\n node.appendChild(tspan);\\r\\n tspans[i] = tspan;\\r\\n }\\r\\n } else {\\r\\n tspans = node.getElementsByTagName(\\\"tspan\\\");\\r\\n for (i = 0, ii = tspans.length; i < ii; i++) if (i) {\\r\\n $(tspans[i], {dy: fontSize * leading, x: a.x});\\r\\n } else {\\r\\n $(tspans[0], {dy: 0});\\r\\n }\\r\\n }\\r\\n $(node, {x: a.x, y: a.y});\\r\\n el._.dirty = 1;\\r\\n var bb = el._getBBox(),\\r\\n dif = a.y - (bb.y + bb.height / 2);\\r\\n dif && R.is(dif, \\\"finite\\\") && $(tspans[0], {dy: dif});\\r\\n },\\r\\n getRealNode = function (node) {\\r\\n if (node.parentNode && node.parentNode.tagName.toLowerCase() === \\\"a\\\") {\\r\\n return node.parentNode;\\r\\n } else {\\r\\n return node;\\r\\n }\\r\\n },\\r\\n Element = function (node, svg) {\\r\\n var X = 0,\\r\\n Y = 0;\\r\\n /*\\\\\\r\\n * Element.node\\r\\n [ property (object) ]\\r\\n **\\r\\n * Gives you a reference to the DOM object, so you can assign event handlers or just mess around.\\r\\n **\\r\\n * Note: Don’t mess with it.\\r\\n > Usage\\r\\n | // draw a circle at coordinate 10,10 with radius of 10\\r\\n | var c = paper.circle(10, 10, 10);\\r\\n | c.node.onclick = function () {\\r\\n | c.attr(\\\"fill\\\", \\\"red\\\");\\r\\n | };\\r\\n \\\\*/\\r\\n this[0] = this.node = node;\\r\\n /*\\\\\\r\\n * Element.raphael\\r\\n [ property (object) ]\\r\\n **\\r\\n * Internal reference to @Raphael object. In case it is not available.\\r\\n > Usage\\r\\n | Raphael.el.red = function () {\\r\\n | var hsb = this.paper.raphael.rgb2hsb(this.attr(\\\"fill\\\"));\\r\\n | hsb.h = 1;\\r\\n | this.attr({fill: this.paper.raphael.hsb2rgb(hsb).hex});\\r\\n | }\\r\\n \\\\*/\\r\\n node.raphael = true;\\r\\n /*\\\\\\r\\n * Element.id\\r\\n [ property (number) ]\\r\\n **\\r\\n * Unique id of the element. Especially useful when you want to listen to events of the element,\\r\\n * because all events are fired in format `<module>.<action>.<id>`. Also useful for @Paper.getById method.\\r\\n \\\\*/\\r\\n this.id = R._oid++;\\r\\n node.raphaelid = this.id;\\r\\n this.matrix = R.matrix();\\r\\n this.realPath = null;\\r\\n /*\\\\\\r\\n * Element.paper\\r\\n [ property (object) ]\\r\\n **\\r\\n * Internal reference to “paper” where object drawn. Mainly for use in plugins and element extensions.\\r\\n > Usage\\r\\n | Raphael.el.cross = function () {\\r\\n | this.attr({fill: \\\"red\\\"});\\r\\n | this.paper.path(\\\"M10,10L50,50M50,10L10,50\\\")\\r\\n | .attr({stroke: \\\"red\\\"});\\r\\n | }\\r\\n \\\\*/\\r\\n this.paper = svg;\\r\\n this.attrs = this.attrs || {};\\r\\n this._ = {\\r\\n transform: [],\\r\\n sx: 1,\\r\\n sy: 1,\\r\\n deg: 0,\\r\\n dx: 0,\\r\\n dy: 0,\\r\\n dirty: 1\\r\\n };\\r\\n !svg.bottom && (svg.bottom = this);\\r\\n /*\\\\\\r\\n * Element.prev\\r\\n [ property (object) ]\\r\\n **\\r\\n * Reference to the previous element in the hierarchy.\\r\\n \\\\*/\\r\\n this.prev = svg.top;\\r\\n svg.top && (svg.top.next = this);\\r\\n svg.top = this;\\r\\n /*\\\\\\r\\n * Element.next\\r\\n [ property (object) ]\\r\\n **\\r\\n * Reference to the next element in the hierarchy.\\r\\n \\\\*/\\r\\n this.next = null;\\r\\n },\\r\\n elproto = R.el;\\r\\n\\r\\n Element.prototype = elproto;\\r\\n elproto.constructor = Element;\\r\\n\\r\\n R._engine.path = function (pathString, SVG) {\\r\\n var el = $(\\\"path\\\");\\r\\n SVG.canvas && SVG.canvas.appendChild(el);\\r\\n var p = new Element(el, SVG);\\r\\n p.type = \\\"path\\\";\\r\\n setFillAndStroke(p, {\\r\\n fill: \\\"none\\\",\\r\\n stroke: \\\"#000\\\",\\r\\n path: pathString\\r\\n });\\r\\n return p;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.rotate\\r\\n [ method ]\\r\\n **\\r\\n * Deprecated! Use @Element.transform instead.\\r\\n * Adds rotation by given angle around given point to the list of\\r\\n * transformations of the element.\\r\\n > Parameters\\r\\n - deg (number) angle in degrees\\r\\n - cx (number) #optional x coordinate of the centre of rotation\\r\\n - cy (number) #optional y coordinate of the centre of rotation\\r\\n * If cx & cy aren’t specified centre of the shape is used as a point of rotation.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.rotate = function (deg, cx, cy) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n deg = Str(deg).split(separator);\\r\\n if (deg.length - 1) {\\r\\n cx = toFloat(deg[1]);\\r\\n cy = toFloat(deg[2]);\\r\\n }\\r\\n deg = toFloat(deg[0]);\\r\\n (cy == null) && (cx = cy);\\r\\n if (cx == null || cy == null) {\\r\\n var bbox = this.getBBox(1);\\r\\n cx = bbox.x + bbox.width / 2;\\r\\n cy = bbox.y + bbox.height / 2;\\r\\n }\\r\\n this.transform(this._.transform.concat([[\\\"r\\\", deg, cx, cy]]));\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.scale\\r\\n [ method ]\\r\\n **\\r\\n * Deprecated! Use @Element.transform instead.\\r\\n * Adds scale by given amount relative to given point to the list of\\r\\n * transformations of the element.\\r\\n > Parameters\\r\\n - sx (number) horisontal scale amount\\r\\n - sy (number) vertical scale amount\\r\\n - cx (number) #optional x coordinate of the centre of scale\\r\\n - cy (number) #optional y coordinate of the centre of scale\\r\\n * If cx & cy aren’t specified centre of the shape is used instead.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.scale = function (sx, sy, cx, cy) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n sx = Str(sx).split(separator);\\r\\n if (sx.length - 1) {\\r\\n sy = toFloat(sx[1]);\\r\\n cx = toFloat(sx[2]);\\r\\n cy = toFloat(sx[3]);\\r\\n }\\r\\n sx = toFloat(sx[0]);\\r\\n (sy == null) && (sy = sx);\\r\\n (cy == null) && (cx = cy);\\r\\n if (cx == null || cy == null) {\\r\\n var bbox = this.getBBox(1);\\r\\n }\\r\\n cx = cx == null ? bbox.x + bbox.width / 2 : cx;\\r\\n cy = cy == null ? bbox.y + bbox.height / 2 : cy;\\r\\n this.transform(this._.transform.concat([[\\\"s\\\", sx, sy, cx, cy]]));\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.translate\\r\\n [ method ]\\r\\n **\\r\\n * Deprecated! Use @Element.transform instead.\\r\\n * Adds translation by given amount to the list of transformations of the element.\\r\\n > Parameters\\r\\n - dx (number) horisontal shift\\r\\n - dy (number) vertical shift\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.translate = function (dx, dy) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n dx = Str(dx).split(separator);\\r\\n if (dx.length - 1) {\\r\\n dy = toFloat(dx[1]);\\r\\n }\\r\\n dx = toFloat(dx[0]) || 0;\\r\\n dy = +dy || 0;\\r\\n this.transform(this._.transform.concat([[\\\"t\\\", dx, dy]]));\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.transform\\r\\n [ method ]\\r\\n **\\r\\n * Adds transformation to the element which is separate to other attributes,\\r\\n * i.e. translation doesn’t change `x` or `y` of the rectange. The format\\r\\n * of transformation string is similar to the path string syntax:\\r\\n | \\\"t100,100r30,100,100s2,2,100,100r45s1.5\\\"\\r\\n * Each letter is a command. There are four commands: `t` is for translate, `r` is for rotate, `s` is for\\r\\n * scale and `m` is for matrix.\\r\\n *\\r\\n * There are also alternative “absolute” translation, rotation and scale: `T`, `R` and `S`. They will not take previous transformation into account. For example, `...T100,0` will always move element 100 px horisontally, while `...t100,0` could move it vertically if there is `r90` before. Just compare results of `r90t100,0` and `r90T100,0`.\\r\\n *\\r\\n * So, the example line above could be read like “translate by 100, 100; rotate 30° around 100, 100; scale twice around 100, 100;\\r\\n * rotate 45° around centre; scale 1.5 times relative to centre”. As you can see rotate and scale commands have origin\\r\\n * coordinates as optional parameters, the default is the centre point of the element.\\r\\n * Matrix accepts six parameters.\\r\\n > Usage\\r\\n | var el = paper.rect(10, 20, 300, 200);\\r\\n | // translate 100, 100, rotate 45°, translate -100, 0\\r\\n | el.transform(\\\"t100,100r45t-100,0\\\");\\r\\n | // if you want you can append or prepend transformations\\r\\n | el.transform(\\\"...t50,50\\\");\\r\\n | el.transform(\\\"s2...\\\");\\r\\n | // or even wrap\\r\\n | el.transform(\\\"t50,50...t-50-50\\\");\\r\\n | // to reset transformation call method with empty string\\r\\n | el.transform(\\\"\\\");\\r\\n | // to get current value call it without parameters\\r\\n | console.log(el.transform());\\r\\n > Parameters\\r\\n - tstr (string) #optional transformation string\\r\\n * If tstr isn’t specified\\r\\n = (string) current transformation string\\r\\n * else\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.transform = function (tstr) {\\r\\n var _ = this._;\\r\\n if (tstr == null) {\\r\\n return _.transform;\\r\\n }\\r\\n R._extractTransform(this, tstr);\\r\\n\\r\\n this.clip && $(this.clip, {transform: this.matrix.invert()});\\r\\n this.pattern && updatePosition(this);\\r\\n this.node && $(this.node, {transform: this.matrix});\\r\\n\\r\\n if (_.sx != 1 || _.sy != 1) {\\r\\n var sw = this.attrs[has](\\\"stroke-width\\\") ? this.attrs[\\\"stroke-width\\\"] : 1;\\r\\n this.attr({\\\"stroke-width\\\": sw});\\r\\n }\\r\\n\\r\\n //Reduce transform string\\r\\n _.transform = this.matrix.toTransformString();\\r\\n\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.hide\\r\\n [ method ]\\r\\n **\\r\\n * Makes element invisible. See @Element.show.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.hide = function () {\\r\\n if(!this.removed) this.node.style.display = \\\"none\\\";\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.show\\r\\n [ method ]\\r\\n **\\r\\n * Makes element visible. See @Element.hide.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.show = function () {\\r\\n if(!this.removed) this.node.style.display = \\\"\\\";\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.remove\\r\\n [ method ]\\r\\n **\\r\\n * Removes element from the paper.\\r\\n \\\\*/\\r\\n elproto.remove = function () {\\r\\n var node = getRealNode(this.node);\\r\\n if (this.removed || !node.parentNode) {\\r\\n return;\\r\\n }\\r\\n var paper = this.paper;\\r\\n paper.__set__ && paper.__set__.exclude(this);\\r\\n eve.unbind(\\\"raphael.*.*.\\\" + this.id);\\r\\n if (this.gradient) {\\r\\n paper.defs.removeChild(this.gradient);\\r\\n }\\r\\n R._tear(this, paper);\\r\\n\\r\\n node.parentNode.removeChild(node);\\r\\n\\r\\n // Remove custom data for element\\r\\n this.removeData();\\r\\n\\r\\n for (var i in this) {\\r\\n this[i] = typeof this[i] == \\\"function\\\" ? R._removedFactory(i) : null;\\r\\n }\\r\\n this.removed = true;\\r\\n };\\r\\n elproto._getBBox = function () {\\r\\n if (this.node.style.display == \\\"none\\\") {\\r\\n this.show();\\r\\n var hide = true;\\r\\n }\\r\\n var canvasHidden = false,\\r\\n containerStyle;\\r\\n if (this.paper.canvas.parentElement) {\\r\\n containerStyle = this.paper.canvas.parentElement.style;\\r\\n } //IE10+ can't find parentElement\\r\\n else if (this.paper.canvas.parentNode) {\\r\\n containerStyle = this.paper.canvas.parentNode.style;\\r\\n }\\r\\n\\r\\n if(containerStyle && containerStyle.display == \\\"none\\\") {\\r\\n canvasHidden = true;\\r\\n containerStyle.display = \\\"\\\";\\r\\n }\\r\\n var bbox = {};\\r\\n try {\\r\\n bbox = this.node.getBBox();\\r\\n } catch(e) {\\r\\n // Firefox 3.0.x, 25.0.1 (probably more versions affected) play badly here - possible fix\\r\\n bbox = {\\r\\n x: this.node.clientLeft,\\r\\n y: this.node.clientTop,\\r\\n width: this.node.clientWidth,\\r\\n height: this.node.clientHeight\\r\\n }\\r\\n } finally {\\r\\n bbox = bbox || {};\\r\\n if(canvasHidden){\\r\\n containerStyle.display = \\\"none\\\";\\r\\n }\\r\\n }\\r\\n hide && this.hide();\\r\\n return bbox;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.attr\\r\\n [ method ]\\r\\n **\\r\\n * Sets the attributes of the element.\\r\\n > Parameters\\r\\n - attrName (string) attribute’s name\\r\\n - value (string) value\\r\\n * or\\r\\n - params (object) object of name/value pairs\\r\\n * or\\r\\n - attrName (string) attribute’s name\\r\\n * or\\r\\n - attrNames (array) in this case method returns array of current values for given attribute names\\r\\n = (object) @Element if attrsName & value or params are passed in.\\r\\n = (...) value of the attribute if only attrsName is passed in.\\r\\n = (array) array of values of the attribute if attrsNames is passed in.\\r\\n = (object) object of attributes if nothing is passed in.\\r\\n > Possible parameters\\r\\n # <p>Please refer to the <a href=\\\"http://www.w3.org/TR/SVG/\\\" title=\\\"The W3C Recommendation for the SVG language describes these properties in detail.\\\">SVG specification</a> for an explanation of these parameters.</p>\\r\\n o arrow-end (string) arrowhead on the end of the path. The format for string is `<type>[-<width>[-<length>]]`. Possible types: `classic`, `block`, `open`, `oval`, `diamond`, `none`, width: `wide`, `narrow`, `medium`, length: `long`, `short`, `midium`.\\r\\n o clip-rect (string) comma or space separated values: x, y, width and height\\r\\n o cursor (string) CSS type of the cursor\\r\\n o cx (number) the x-axis coordinate of the center of the circle, or ellipse\\r\\n o cy (number) the y-axis coordinate of the center of the circle, or ellipse\\r\\n o fill (string) colour, gradient or image\\r\\n o fill-opacity (number)\\r\\n o font (string)\\r\\n o font-family (string)\\r\\n o font-size (number) font size in pixels\\r\\n o font-weight (string)\\r\\n o height (number)\\r\\n o href (string) URL, if specified element behaves as hyperlink\\r\\n o opacity (number)\\r\\n o path (string) SVG path string format\\r\\n o r (number) radius of the circle, ellipse or rounded corner on the rect\\r\\n o rx (number) horisontal radius of the ellipse\\r\\n o ry (number) vertical radius of the ellipse\\r\\n o src (string) image URL, only works for @Element.image element\\r\\n o stroke (string) stroke colour\\r\\n o stroke-dasharray (string) [“”, “none”, “`-`”, “`.`”, “`-.`”, “`-..`”, “`. `”, “`- `”, “`--`”, “`- .`”, “`--.`”, “`--..`”]\\r\\n o stroke-linecap (string) [“`butt`”, “`square`”, “`round`”]\\r\\n o stroke-linejoin (string) [“`bevel`”, “`round`”, “`miter`”]\\r\\n o stroke-miterlimit (number)\\r\\n o stroke-opacity (number)\\r\\n o stroke-width (number) stroke width in pixels, default is '1'\\r\\n o target (string) used with href\\r\\n o text (string) contents of the text element. Use `\\\\n` for multiline text\\r\\n o text-anchor (string) [“`start`”, “`middle`”, “`end`”], default is “`middle`”\\r\\n o title (string) will create tooltip with a given text\\r\\n o transform (string) see @Element.transform\\r\\n o width (number)\\r\\n o x (number)\\r\\n o y (number)\\r\\n > Gradients\\r\\n * Linear gradient format: “`‹angle›-‹colour›[-‹colour›[:‹offset›]]*-‹colour›`”, example: “`90-#fff-#000`” – 90°\\r\\n * gradient from white to black or “`0-#fff-#f00:20-#000`” – 0° gradient from white via red (at 20%) to black.\\r\\n *\\r\\n * radial gradient: “`r[(‹fx›, ‹fy›)]‹colour›[-‹colour›[:‹offset›]]*-‹colour›`”, example: “`r#fff-#000`” –\\r\\n * gradient from white to black or “`r(0.25, 0.75)#fff-#000`” – gradient from white to black with focus point\\r\\n * at 0.25, 0.75. Focus point coordinates are in 0..1 range. Radial gradients can only be applied to circles and ellipses.\\r\\n > Path String\\r\\n # <p>Please refer to <a href=\\\"http://www.w3.org/TR/SVG/paths.html#PathData\\\" title=\\\"Details of a path’s data attribute’s format are described in the SVG specification.\\\">SVG documentation regarding path string</a>. Raphaël fully supports it.</p>\\r\\n > Colour Parsing\\r\\n # <ul>\\r\\n # <li>Colour name (“<code>red</code>”, “<code>green</code>”, “<code>cornflowerblue</code>”, etc)</li>\\r\\n # <li>#••• — shortened HTML colour: (“<code>#000</code>”, “<code>#fc0</code>”, etc)</li>\\r\\n # <li>#•••••• — full length HTML colour: (“<code>#000000</code>”, “<code>#bd2300</code>”)</li>\\r\\n # <li>rgb(•••, •••, •••) — red, green and blue channels’ values: (“<code>rgb(200, 100, 0)</code>”)</li>\\r\\n # <li>rgb(•••%, •••%, •••%) — same as above, but in %: (“<code>rgb(100%, 175%, 0%)</code>”)</li>\\r\\n # <li>rgba(•••, •••, •••, •••) — red, green and blue channels’ values: (“<code>rgba(200, 100, 0, .5)</code>”)</li>\\r\\n # <li>rgba(•••%, •••%, •••%, •••%) — same as above, but in %: (“<code>rgba(100%, 175%, 0%, 50%)</code>”)</li>\\r\\n # <li>hsb(•••, •••, •••) — hue, saturation and brightness values: (“<code>hsb(0.5, 0.25, 1)</code>”)</li>\\r\\n # <li>hsb(•••%, •••%, •••%) — same as above, but in %</li>\\r\\n # <li>hsba(•••, •••, •••, •••) — same as above, but with opacity</li>\\r\\n # <li>hsl(•••, •••, •••) — almost the same as hsb, see <a href=\\\"http://en.wikipedia.org/wiki/HSL_and_HSV\\\" title=\\\"HSL and HSV - Wikipedia, the free encyclopedia\\\">Wikipedia page</a></li>\\r\\n # <li>hsl(•••%, •••%, •••%) — same as above, but in %</li>\\r\\n # <li>hsla(•••, •••, •••, •••) — same as above, but with opacity</li>\\r\\n # <li>Optionally for hsb and hsl you could specify hue as a degree: “<code>hsl(240deg, 1, .5)</code>” or, if you want to go fancy, “<code>hsl(240°, 1, .5)</code>”</li>\\r\\n # </ul>\\r\\n \\\\*/\\r\\n elproto.attr = function (name, value) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n if (name == null) {\\r\\n var res = {};\\r\\n for (var a in this.attrs) if (this.attrs[has](a)) {\\r\\n res[a] = this.attrs[a];\\r\\n }\\r\\n res.gradient && res.fill == \\\"none\\\" && (res.fill = res.gradient) && delete res.gradient;\\r\\n res.transform = this._.transform;\\r\\n return res;\\r\\n }\\r\\n if (value == null && R.is(name, \\\"string\\\")) {\\r\\n if (name == \\\"fill\\\" && this.attrs.fill == \\\"none\\\" && this.attrs.gradient) {\\r\\n return this.attrs.gradient;\\r\\n }\\r\\n if (name == \\\"transform\\\") {\\r\\n return this._.transform;\\r\\n }\\r\\n var names = name.split(separator),\\r\\n out = {};\\r\\n for (var i = 0, ii = names.length; i < ii; i++) {\\r\\n name = names[i];\\r\\n if (name in this.attrs) {\\r\\n out[name] = this.attrs[name];\\r\\n } else if (R.is(this.paper.customAttributes[name], \\\"function\\\")) {\\r\\n out[name] = this.paper.customAttributes[name].def;\\r\\n } else {\\r\\n out[name] = R._availableAttrs[name];\\r\\n }\\r\\n }\\r\\n return ii - 1 ? out : out[names[0]];\\r\\n }\\r\\n if (value == null && R.is(name, \\\"array\\\")) {\\r\\n out = {};\\r\\n for (i = 0, ii = name.length; i < ii; i++) {\\r\\n out[name[i]] = this.attr(name[i]);\\r\\n }\\r\\n return out;\\r\\n }\\r\\n if (value != null) {\\r\\n var params = {};\\r\\n params[name] = value;\\r\\n } else if (name != null && R.is(name, \\\"object\\\")) {\\r\\n params = name;\\r\\n }\\r\\n for (var key in params) {\\r\\n eve(\\\"raphael.attr.\\\" + key + \\\".\\\" + this.id, this, params[key]);\\r\\n }\\r\\n for (key in this.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], \\\"function\\\")) {\\r\\n var par = this.paper.customAttributes[key].apply(this, [].concat(params[key]));\\r\\n this.attrs[key] = params[key];\\r\\n for (var subkey in par) if (par[has](subkey)) {\\r\\n params[subkey] = par[subkey];\\r\\n }\\r\\n }\\r\\n setFillAndStroke(this, params);\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.toFront\\r\\n [ method ]\\r\\n **\\r\\n * Moves the element so it is the closest to the viewer’s eyes, on top of other elements.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.toFront = function () {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n var node = getRealNode(this.node);\\r\\n node.parentNode.appendChild(node);\\r\\n var svg = this.paper;\\r\\n svg.top != this && R._tofront(this, svg);\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.toBack\\r\\n [ method ]\\r\\n **\\r\\n * Moves the element so it is the furthest from the viewer’s eyes, behind other elements.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.toBack = function () {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n var node = getRealNode(this.node);\\r\\n var parentNode = node.parentNode;\\r\\n parentNode.insertBefore(node, parentNode.firstChild);\\r\\n R._toback(this, this.paper);\\r\\n var svg = this.paper;\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.insertAfter\\r\\n [ method ]\\r\\n **\\r\\n * Inserts current object after the given one.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.insertAfter = function (element) {\\r\\n if (this.removed || !element) {\\r\\n return this;\\r\\n }\\r\\n\\r\\n var node = getRealNode(this.node);\\r\\n var afterNode = getRealNode(element.node || element[element.length - 1].node);\\r\\n if (afterNode.nextSibling) {\\r\\n afterNode.parentNode.insertBefore(node, afterNode.nextSibling);\\r\\n } else {\\r\\n afterNode.parentNode.appendChild(node);\\r\\n }\\r\\n R._insertafter(this, element, this.paper);\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Element.insertBefore\\r\\n [ method ]\\r\\n **\\r\\n * Inserts current object before the given one.\\r\\n = (object) @Element\\r\\n \\\\*/\\r\\n elproto.insertBefore = function (element) {\\r\\n if (this.removed || !element) {\\r\\n return this;\\r\\n }\\r\\n\\r\\n var node = getRealNode(this.node);\\r\\n var beforeNode = getRealNode(element.node || element[0].node);\\r\\n beforeNode.parentNode.insertBefore(node, beforeNode);\\r\\n R._insertbefore(this, element, this.paper);\\r\\n return this;\\r\\n };\\r\\n elproto.blur = function (size) {\\r\\n // Experimental. No Safari support. Use it on your own risk.\\r\\n var t = this;\\r\\n if (+size !== 0) {\\r\\n var fltr = $(\\\"filter\\\"),\\r\\n blur = $(\\\"feGaussianBlur\\\");\\r\\n t.attrs.blur = size;\\r\\n fltr.id = R.createUUID();\\r\\n $(blur, {stdDeviation: +size || 1.5});\\r\\n fltr.appendChild(blur);\\r\\n t.paper.defs.appendChild(fltr);\\r\\n t._blur = fltr;\\r\\n $(t.node, {filter: \\\"url(#\\\" + fltr.id + \\\")\\\"});\\r\\n } else {\\r\\n if (t._blur) {\\r\\n t._blur.parentNode.removeChild(t._blur);\\r\\n delete t._blur;\\r\\n delete t.attrs.blur;\\r\\n }\\r\\n t.node.removeAttribute(\\\"filter\\\");\\r\\n }\\r\\n return t;\\r\\n };\\r\\n R._engine.circle = function (svg, x, y, r) {\\r\\n var el = $(\\\"circle\\\");\\r\\n svg.canvas && svg.canvas.appendChild(el);\\r\\n var res = new Element(el, svg);\\r\\n res.attrs = {cx: x, cy: y, r: r, fill: \\\"none\\\", stroke: \\\"#000\\\"};\\r\\n res.type = \\\"circle\\\";\\r\\n $(el, res.attrs);\\r\\n return res;\\r\\n };\\r\\n R._engine.rect = function (svg, x, y, w, h, r) {\\r\\n var el = $(\\\"rect\\\");\\r\\n svg.canvas && svg.canvas.appendChild(el);\\r\\n var res = new Element(el, svg);\\r\\n res.attrs = {x: x, y: y, width: w, height: h, rx: r || 0, ry: r || 0, fill: \\\"none\\\", stroke: \\\"#000\\\"};\\r\\n res.type = \\\"rect\\\";\\r\\n $(el, res.attrs);\\r\\n return res;\\r\\n };\\r\\n R._engine.ellipse = function (svg, x, y, rx, ry) {\\r\\n var el = $(\\\"ellipse\\\");\\r\\n svg.canvas && svg.canvas.appendChild(el);\\r\\n var res = new Element(el, svg);\\r\\n res.attrs = {cx: x, cy: y, rx: rx, ry: ry, fill: \\\"none\\\", stroke: \\\"#000\\\"};\\r\\n res.type = \\\"ellipse\\\";\\r\\n $(el, res.attrs);\\r\\n return res;\\r\\n };\\r\\n R._engine.image = function (svg, src, x, y, w, h) {\\r\\n var el = $(\\\"image\\\");\\r\\n $(el, {x: x, y: y, width: w, height: h, preserveAspectRatio: \\\"none\\\"});\\r\\n el.setAttributeNS(xlink, \\\"href\\\", src);\\r\\n svg.canvas && svg.canvas.appendChild(el);\\r\\n var res = new Element(el, svg);\\r\\n res.attrs = {x: x, y: y, width: w, height: h, src: src};\\r\\n res.type = \\\"image\\\";\\r\\n return res;\\r\\n };\\r\\n R._engine.text = function (svg, x, y, text) {\\r\\n var el = $(\\\"text\\\");\\r\\n svg.canvas && svg.canvas.appendChild(el);\\r\\n var res = new Element(el, svg);\\r\\n res.attrs = {\\r\\n x: x,\\r\\n y: y,\\r\\n \\\"text-anchor\\\": \\\"middle\\\",\\r\\n text: text,\\r\\n \\\"font-family\\\": R._availableAttrs[\\\"font-family\\\"],\\r\\n \\\"font-size\\\": R._availableAttrs[\\\"font-size\\\"],\\r\\n stroke: \\\"none\\\",\\r\\n fill: \\\"#000\\\"\\r\\n };\\r\\n res.type = \\\"text\\\";\\r\\n setFillAndStroke(res, res.attrs);\\r\\n return res;\\r\\n };\\r\\n R._engine.setSize = function (width, height) {\\r\\n this.width = width || this.width;\\r\\n this.height = height || this.height;\\r\\n this.canvas.setAttribute(\\\"width\\\", this.width);\\r\\n this.canvas.setAttribute(\\\"height\\\", this.height);\\r\\n if (this._viewBox) {\\r\\n this.setViewBox.apply(this, this._viewBox);\\r\\n }\\r\\n return this;\\r\\n };\\r\\n R._engine.create = function () {\\r\\n var con = R._getContainer.apply(0, arguments),\\r\\n container = con && con.container,\\r\\n x = con.x,\\r\\n y = con.y,\\r\\n width = con.width,\\r\\n height = con.height;\\r\\n if (!container) {\\r\\n throw new Error(\\\"SVG container not found.\\\");\\r\\n }\\r\\n var cnvs = $(\\\"svg\\\"),\\r\\n css = \\\"overflow:hidden;\\\",\\r\\n isFloating;\\r\\n x = x || 0;\\r\\n y = y || 0;\\r\\n width = width || 512;\\r\\n height = height || 342;\\r\\n $(cnvs, {\\r\\n height: height,\\r\\n version: 1.1,\\r\\n width: width,\\r\\n xmlns: \\\"http://www.w3.org/2000/svg\\\",\\r\\n \\\"xmlns:xlink\\\": \\\"http://www.w3.org/1999/xlink\\\"\\r\\n });\\r\\n if (container == 1) {\\r\\n cnvs.style.cssText = css + \\\"position:absolute;left:\\\" + x + \\\"px;top:\\\" + y + \\\"px\\\";\\r\\n R._g.doc.body.appendChild(cnvs);\\r\\n isFloating = 1;\\r\\n } else {\\r\\n cnvs.style.cssText = css + \\\"position:relative\\\";\\r\\n if (container.firstChild) {\\r\\n container.insertBefore(cnvs, container.firstChild);\\r\\n } else {\\r\\n container.appendChild(cnvs);\\r\\n }\\r\\n }\\r\\n container = new R._Paper;\\r\\n container.width = width;\\r\\n container.height = height;\\r\\n container.canvas = cnvs;\\r\\n container.clear();\\r\\n container._left = container._top = 0;\\r\\n isFloating && (container.renderfix = function () {});\\r\\n container.renderfix();\\r\\n return container;\\r\\n };\\r\\n R._engine.setViewBox = function (x, y, w, h, fit) {\\r\\n eve(\\\"raphael.setViewBox\\\", this, this._viewBox, [x, y, w, h, fit]);\\r\\n var paperSize = this.getSize(),\\r\\n size = mmax(w / paperSize.width, h / paperSize.height),\\r\\n top = this.top,\\r\\n aspectRatio = fit ? \\\"xMidYMid meet\\\" : \\\"xMinYMin\\\",\\r\\n vb,\\r\\n sw;\\r\\n if (x == null) {\\r\\n if (this._vbSize) {\\r\\n size = 1;\\r\\n }\\r\\n delete this._vbSize;\\r\\n vb = \\\"0 0 \\\" + this.width + S + this.height;\\r\\n } else {\\r\\n this._vbSize = size;\\r\\n vb = x + S + y + S + w + S + h;\\r\\n }\\r\\n $(this.canvas, {\\r\\n viewBox: vb,\\r\\n preserveAspectRatio: aspectRatio\\r\\n });\\r\\n while (size && top) {\\r\\n sw = \\\"stroke-width\\\" in top.attrs ? top.attrs[\\\"stroke-width\\\"] : 1;\\r\\n top.attr({\\\"stroke-width\\\": sw});\\r\\n top._.dirty = 1;\\r\\n top._.dirtyT = 1;\\r\\n top = top.prev;\\r\\n }\\r\\n this._viewBox = [x, y, w, h, !!fit];\\r\\n return this;\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.renderfix\\r\\n [ method ]\\r\\n **\\r\\n * Fixes the issue of Firefox and IE9 regarding subpixel rendering. If paper is dependant\\r\\n * on other elements after reflow it could shift half pixel which cause for lines to lost their crispness.\\r\\n * This method fixes the issue.\\r\\n **\\r\\n Special thanks to Mariusz Nowak (http://www.medikoo.com/) for this method.\\r\\n \\\\*/\\r\\n R.prototype.renderfix = function () {\\r\\n var cnvs = this.canvas,\\r\\n s = cnvs.style,\\r\\n pos;\\r\\n try {\\r\\n pos = cnvs.getScreenCTM() || cnvs.createSVGMatrix();\\r\\n } catch (e) {\\r\\n pos = cnvs.createSVGMatrix();\\r\\n }\\r\\n var left = -pos.e % 1,\\r\\n top = -pos.f % 1;\\r\\n if (left || top) {\\r\\n if (left) {\\r\\n this._left = (this._left + left) % 1;\\r\\n s.left = this._left + \\\"px\\\";\\r\\n }\\r\\n if (top) {\\r\\n this._top = (this._top + top) % 1;\\r\\n s.top = this._top + \\\"px\\\";\\r\\n }\\r\\n }\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.clear\\r\\n [ method ]\\r\\n **\\r\\n * Clears the paper, i.e. removes all the elements.\\r\\n \\\\*/\\r\\n R.prototype.clear = function () {\\r\\n R.eve(\\\"raphael.clear\\\", this);\\r\\n var c = this.canvas;\\r\\n while (c.firstChild) {\\r\\n c.removeChild(c.firstChild);\\r\\n }\\r\\n this.bottom = this.top = null;\\r\\n (this.desc = $(\\\"desc\\\")).appendChild(R._g.doc.createTextNode(\\\"Created with Rapha\\\\xebl \\\" + R.version));\\r\\n c.appendChild(this.desc);\\r\\n c.appendChild(this.defs = $(\\\"defs\\\"));\\r\\n };\\r\\n /*\\\\\\r\\n * Paper.remove\\r\\n [ method ]\\r\\n **\\r\\n * Removes the paper from the DOM.\\r\\n \\\\*/\\r\\n R.prototype.remove = function () {\\r\\n eve(\\\"raphael.remove\\\", this);\\r\\n this.canvas.parentNode && this.canvas.parentNode.removeChild(this.canvas);\\r\\n for (var i in this) {\\r\\n this[i] = typeof this[i] == \\\"function\\\" ? R._removedFactory(i) : null;\\r\\n }\\r\\n };\\r\\n var setproto = R.st;\\r\\n for (var method in elproto) if (elproto[has](method) && !setproto[has](method)) {\\r\\n setproto[method] = (function (methodname) {\\r\\n return function () {\\r\\n var arg = arguments;\\r\\n return this.forEach(function (el) {\\r\\n el[methodname].apply(el, arg);\\r\\n });\\r\\n };\\r\\n })(method);\\r\\n }\\r\\n}));\\r\\n\\r\\n// ┌─────────────────────────────────────────────────────────────────────┐ \\\\\\\\\\r\\n// │ Raphaël 2.1.4 - JavaScript Vector Library │ \\\\\\\\\\r\\n// ├─────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ VML Module │ \\\\\\\\\\r\\n// ├─────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Copyright (c) 2008-2011 Dmitry Baranovskiy (http://raphaeljs.com) │ \\\\\\\\\\r\\n// │ Copyright (c) 2008-2011 Sencha Labs (http://sencha.com) │ \\\\\\\\\\r\\n// │ Licensed under the MIT (http://raphaeljs.com/license.html) license. │ \\\\\\\\\\r\\n// └─────────────────────────────────────────────────────────────────────┘ \\\\\\\\\\r\\n\\r\\n(function (glob, factory) {\\r\\n if (typeof define === \\\"function\\\" && define.amd) {\\r\\n define(\\\"raphael.vml\\\", [\\\"raphael.core\\\"], function(raphael) {\\r\\n return factory(raphael);\\r\\n });\\r\\n } else if (typeof exports === \\\"object\\\") {\\r\\n factory(require(\\\"./raphael.core\\\"));\\r\\n } else {\\r\\n factory(glob.Raphael);\\r\\n }\\r\\n}(this, function(R) {\\r\\n if (R && !R.vml) {\\r\\n return;\\r\\n }\\r\\n\\r\\n var has = \\\"hasOwnProperty\\\",\\r\\n Str = String,\\r\\n toFloat = parseFloat,\\r\\n math = Math,\\r\\n round = math.round,\\r\\n mmax = math.max,\\r\\n mmin = math.min,\\r\\n abs = math.abs,\\r\\n fillString = \\\"fill\\\",\\r\\n separator = /[, ]+/,\\r\\n eve = R.eve,\\r\\n ms = \\\" progid:DXImageTransform.Microsoft\\\",\\r\\n S = \\\" \\\",\\r\\n E = \\\"\\\",\\r\\n map = {M: \\\"m\\\", L: \\\"l\\\", C: \\\"c\\\", Z: \\\"x\\\", m: \\\"t\\\", l: \\\"r\\\", c: \\\"v\\\", z: \\\"x\\\"},\\r\\n bites = /([clmz]),?([^clmz]*)/gi,\\r\\n blurregexp = / progid:\\\\S+Blur\\\\([^\\\\)]+\\\\)/g,\\r\\n val = /-?[^,\\\\s-]+/g,\\r\\n cssDot = \\\"position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)\\\",\\r\\n zoom = 21600,\\r\\n pathTypes = {path: 1, rect: 1, image: 1},\\r\\n ovalTypes = {circle: 1, ellipse: 1},\\r\\n path2vml = function (path) {\\r\\n var total = /[ahqstv]/ig,\\r\\n command = R._pathToAbsolute;\\r\\n Str(path).match(total) && (command = R._path2curve);\\r\\n total = /[clmz]/g;\\r\\n if (command == R._pathToAbsolute && !Str(path).match(total)) {\\r\\n var res = Str(path).replace(bites, function (all, command, args) {\\r\\n var vals = [],\\r\\n isMove = command.toLowerCase() == \\\"m\\\",\\r\\n res = map[command];\\r\\n args.replace(val, function (value) {\\r\\n if (isMove && vals.length == 2) {\\r\\n res += vals + map[command == \\\"m\\\" ? \\\"l\\\" : \\\"L\\\"];\\r\\n vals = [];\\r\\n }\\r\\n vals.push(round(value * zoom));\\r\\n });\\r\\n return res + vals;\\r\\n });\\r\\n return res;\\r\\n }\\r\\n var pa = command(path), p, r;\\r\\n res = [];\\r\\n for (var i = 0, ii = pa.length; i < ii; i++) {\\r\\n p = pa[i];\\r\\n r = pa[i][0].toLowerCase();\\r\\n r == \\\"z\\\" && (r = \\\"x\\\");\\r\\n for (var j = 1, jj = p.length; j < jj; j++) {\\r\\n r += round(p[j] * zoom) + (j != jj - 1 ? \\\",\\\" : E);\\r\\n }\\r\\n res.push(r);\\r\\n }\\r\\n return res.join(S);\\r\\n },\\r\\n compensation = function (deg, dx, dy) {\\r\\n var m = R.matrix();\\r\\n m.rotate(-deg, .5, .5);\\r\\n return {\\r\\n dx: m.x(dx, dy),\\r\\n dy: m.y(dx, dy)\\r\\n };\\r\\n },\\r\\n setCoords = function (p, sx, sy, dx, dy, deg) {\\r\\n var _ = p._,\\r\\n m = p.matrix,\\r\\n fillpos = _.fillpos,\\r\\n o = p.node,\\r\\n s = o.style,\\r\\n y = 1,\\r\\n flip = \\\"\\\",\\r\\n dxdy,\\r\\n kx = zoom / sx,\\r\\n ky = zoom / sy;\\r\\n s.visibility = \\\"hidden\\\";\\r\\n if (!sx || !sy) {\\r\\n return;\\r\\n }\\r\\n o.coordsize = abs(kx) + S + abs(ky);\\r\\n s.rotation = deg * (sx * sy < 0 ? -1 : 1);\\r\\n if (deg) {\\r\\n var c = compensation(deg, dx, dy);\\r\\n dx = c.dx;\\r\\n dy = c.dy;\\r\\n }\\r\\n sx < 0 && (flip += \\\"x\\\");\\r\\n sy < 0 && (flip += \\\" y\\\") && (y = -1);\\r\\n s.flip = flip;\\r\\n o.coordorigin = (dx * -kx) + S + (dy * -ky);\\r\\n if (fillpos || _.fillsize) {\\r\\n var fill = o.getElementsByTagName(fillString);\\r\\n fill = fill && fill[0];\\r\\n o.removeChild(fill);\\r\\n if (fillpos) {\\r\\n c = compensation(deg, m.x(fillpos[0], fillpos[1]), m.y(fillpos[0], fillpos[1]));\\r\\n fill.position = c.dx * y + S + c.dy * y;\\r\\n }\\r\\n if (_.fillsize) {\\r\\n fill.size = _.fillsize[0] * abs(sx) + S + _.fillsize[1] * abs(sy);\\r\\n }\\r\\n o.appendChild(fill);\\r\\n }\\r\\n s.visibility = \\\"visible\\\";\\r\\n };\\r\\n R.toString = function () {\\r\\n return \\\"Your browser doesn\\\\u2019t support SVG. Falling down to VML.\\\\nYou are running Rapha\\\\xebl \\\" + this.version;\\r\\n };\\r\\n var addArrow = function (o, value, isEnd) {\\r\\n var values = Str(value).toLowerCase().split(\\\"-\\\"),\\r\\n se = isEnd ? \\\"end\\\" : \\\"start\\\",\\r\\n i = values.length,\\r\\n type = \\\"classic\\\",\\r\\n w = \\\"medium\\\",\\r\\n h = \\\"medium\\\";\\r\\n while (i--) {\\r\\n switch (values[i]) {\\r\\n case \\\"block\\\":\\r\\n case \\\"classic\\\":\\r\\n case \\\"oval\\\":\\r\\n case \\\"diamond\\\":\\r\\n case \\\"open\\\":\\r\\n case \\\"none\\\":\\r\\n type = values[i];\\r\\n break;\\r\\n case \\\"wide\\\":\\r\\n case \\\"narrow\\\": h = values[i]; break;\\r\\n case \\\"long\\\":\\r\\n case \\\"short\\\": w = values[i]; break;\\r\\n }\\r\\n }\\r\\n var stroke = o.node.getElementsByTagName(\\\"stroke\\\")[0];\\r\\n stroke[se + \\\"arrow\\\"] = type;\\r\\n stroke[se + \\\"arrowlength\\\"] = w;\\r\\n stroke[se + \\\"arrowwidth\\\"] = h;\\r\\n },\\r\\n setFillAndStroke = function (o, params) {\\r\\n // o.paper.canvas.style.display = \\\"none\\\";\\r\\n o.attrs = o.attrs || {};\\r\\n var node = o.node,\\r\\n a = o.attrs,\\r\\n s = node.style,\\r\\n xy,\\r\\n newpath = pathTypes[o.type] && (params.x != a.x || params.y != a.y || params.width != a.width || params.height != a.height || params.cx != a.cx || params.cy != a.cy || params.rx != a.rx || params.ry != a.ry || params.r != a.r),\\r\\n isOval = ovalTypes[o.type] && (a.cx != params.cx || a.cy != params.cy || a.r != params.r || a.rx != params.rx || a.ry != params.ry),\\r\\n res = o;\\r\\n\\r\\n\\r\\n for (var par in params) if (params[has](par)) {\\r\\n a[par] = params[par];\\r\\n }\\r\\n if (newpath) {\\r\\n a.path = R._getPath[o.type](o);\\r\\n o._.dirty = 1;\\r\\n }\\r\\n params.href && (node.href = params.href);\\r\\n params.title && (node.title = params.title);\\r\\n params.target && (node.target = params.target);\\r\\n params.cursor && (s.cursor = params.cursor);\\r\\n \\\"blur\\\" in params && o.blur(params.blur);\\r\\n if (params.path && o.type == \\\"path\\\" || newpath) {\\r\\n node.path = path2vml(~Str(a.path).toLowerCase().indexOf(\\\"r\\\") ? R._pathToAbsolute(a.path) : a.path);\\r\\n o._.dirty = 1;\\r\\n if (o.type == \\\"image\\\") {\\r\\n o._.fillpos = [a.x, a.y];\\r\\n o._.fillsize = [a.width, a.height];\\r\\n setCoords(o, 1, 1, 0, 0, 0);\\r\\n }\\r\\n }\\r\\n \\\"transform\\\" in params && o.transform(params.transform);\\r\\n if (isOval) {\\r\\n var cx = +a.cx,\\r\\n cy = +a.cy,\\r\\n rx = +a.rx || +a.r || 0,\\r\\n ry = +a.ry || +a.r || 0;\\r\\n node.path = R.format(\\\"ar{0},{1},{2},{3},{4},{1},{4},{1}x\\\", round((cx - rx) * zoom), round((cy - ry) * zoom), round((cx + rx) * zoom), round((cy + ry) * zoom), round(cx * zoom));\\r\\n o._.dirty = 1;\\r\\n }\\r\\n if (\\\"clip-rect\\\" in params) {\\r\\n var rect = Str(params[\\\"clip-rect\\\"]).split(separator);\\r\\n if (rect.length == 4) {\\r\\n rect[2] = +rect[2] + (+rect[0]);\\r\\n rect[3] = +rect[3] + (+rect[1]);\\r\\n var div = node.clipRect || R._g.doc.createElement(\\\"div\\\"),\\r\\n dstyle = div.style;\\r\\n dstyle.clip = R.format(\\\"rect({1}px {2}px {3}px {0}px)\\\", rect);\\r\\n if (!node.clipRect) {\\r\\n dstyle.position = \\\"absolute\\\";\\r\\n dstyle.top = 0;\\r\\n dstyle.left = 0;\\r\\n dstyle.width = o.paper.width + \\\"px\\\";\\r\\n dstyle.height = o.paper.height + \\\"px\\\";\\r\\n node.parentNode.insertBefore(div, node);\\r\\n div.appendChild(node);\\r\\n node.clipRect = div;\\r\\n }\\r\\n }\\r\\n if (!params[\\\"clip-rect\\\"]) {\\r\\n node.clipRect && (node.clipRect.style.clip = \\\"auto\\\");\\r\\n }\\r\\n }\\r\\n if (o.textpath) {\\r\\n var textpathStyle = o.textpath.style;\\r\\n params.font && (textpathStyle.font = params.font);\\r\\n params[\\\"font-family\\\"] && (textpathStyle.fontFamily = '\\\"' + params[\\\"font-family\\\"].split(\\\",\\\")[0].replace(/^['\\\"]+|['\\\"]+$/g, E) + '\\\"');\\r\\n params[\\\"font-size\\\"] && (textpathStyle.fontSize = params[\\\"font-size\\\"]);\\r\\n params[\\\"font-weight\\\"] && (textpathStyle.fontWeight = params[\\\"font-weight\\\"]);\\r\\n params[\\\"font-style\\\"] && (textpathStyle.fontStyle = params[\\\"font-style\\\"]);\\r\\n }\\r\\n if (\\\"arrow-start\\\" in params) {\\r\\n addArrow(res, params[\\\"arrow-start\\\"]);\\r\\n }\\r\\n if (\\\"arrow-end\\\" in params) {\\r\\n addArrow(res, params[\\\"arrow-end\\\"], 1);\\r\\n }\\r\\n if (params.opacity != null ||\\r\\n params[\\\"stroke-width\\\"] != null ||\\r\\n params.fill != null ||\\r\\n params.src != null ||\\r\\n params.stroke != null ||\\r\\n params[\\\"stroke-width\\\"] != null ||\\r\\n params[\\\"stroke-opacity\\\"] != null ||\\r\\n params[\\\"fill-opacity\\\"] != null ||\\r\\n params[\\\"stroke-dasharray\\\"] != null ||\\r\\n params[\\\"stroke-miterlimit\\\"] != null ||\\r\\n params[\\\"stroke-linejoin\\\"] != null ||\\r\\n params[\\\"stroke-linecap\\\"] != null) {\\r\\n var fill = node.getElementsByTagName(fillString),\\r\\n newfill = false;\\r\\n fill = fill && fill[0];\\r\\n !fill && (newfill = fill = createNode(fillString));\\r\\n if (o.type == \\\"image\\\" && params.src) {\\r\\n fill.src = params.src;\\r\\n }\\r\\n params.fill && (fill.on = true);\\r\\n if (fill.on == null || params.fill == \\\"none\\\" || params.fill === null) {\\r\\n fill.on = false;\\r\\n }\\r\\n if (fill.on && params.fill) {\\r\\n var isURL = Str(params.fill).match(R._ISURL);\\r\\n if (isURL) {\\r\\n fill.parentNode == node && node.removeChild(fill);\\r\\n fill.rotate = true;\\r\\n fill.src = isURL[1];\\r\\n fill.type = \\\"tile\\\";\\r\\n var bbox = o.getBBox(1);\\r\\n fill.position = bbox.x + S + bbox.y;\\r\\n o._.fillpos = [bbox.x, bbox.y];\\r\\n\\r\\n R._preload(isURL[1], function () {\\r\\n o._.fillsize = [this.offsetWidth, this.offsetHeight];\\r\\n });\\r\\n } else {\\r\\n fill.color = R.getRGB(params.fill).hex;\\r\\n fill.src = E;\\r\\n fill.type = \\\"solid\\\";\\r\\n if (R.getRGB(params.fill).error && (res.type in {circle: 1, ellipse: 1} || Str(params.fill).charAt() != \\\"r\\\") && addGradientFill(res, params.fill, fill)) {\\r\\n a.fill = \\\"none\\\";\\r\\n a.gradient = params.fill;\\r\\n fill.rotate = false;\\r\\n }\\r\\n }\\r\\n }\\r\\n if (\\\"fill-opacity\\\" in params || \\\"opacity\\\" in params) {\\r\\n var opacity = ((+a[\\\"fill-opacity\\\"] + 1 || 2) - 1) * ((+a.opacity + 1 || 2) - 1) * ((+R.getRGB(params.fill).o + 1 || 2) - 1);\\r\\n opacity = mmin(mmax(opacity, 0), 1);\\r\\n fill.opacity = opacity;\\r\\n if (fill.src) {\\r\\n fill.color = \\\"none\\\";\\r\\n }\\r\\n }\\r\\n node.appendChild(fill);\\r\\n var stroke = (node.getElementsByTagName(\\\"stroke\\\") && node.getElementsByTagName(\\\"stroke\\\")[0]),\\r\\n newstroke = false;\\r\\n !stroke && (newstroke = stroke = createNode(\\\"stroke\\\"));\\r\\n if ((params.stroke && params.stroke != \\\"none\\\") ||\\r\\n params[\\\"stroke-width\\\"] ||\\r\\n params[\\\"stroke-opacity\\\"] != null ||\\r\\n params[\\\"stroke-dasharray\\\"] ||\\r\\n params[\\\"stroke-miterlimit\\\"] ||\\r\\n params[\\\"stroke-linejoin\\\"] ||\\r\\n params[\\\"stroke-linecap\\\"]) {\\r\\n stroke.on = true;\\r\\n }\\r\\n (params.stroke == \\\"none\\\" || params.stroke === null || stroke.on == null || params.stroke == 0 || params[\\\"stroke-width\\\"] == 0) && (stroke.on = false);\\r\\n var strokeColor = R.getRGB(params.stroke);\\r\\n stroke.on && params.stroke && (stroke.color = strokeColor.hex);\\r\\n opacity = ((+a[\\\"stroke-opacity\\\"] + 1 || 2) - 1) * ((+a.opacity + 1 || 2) - 1) * ((+strokeColor.o + 1 || 2) - 1);\\r\\n var width = (toFloat(params[\\\"stroke-width\\\"]) || 1) * .75;\\r\\n opacity = mmin(mmax(opacity, 0), 1);\\r\\n params[\\\"stroke-width\\\"] == null && (width = a[\\\"stroke-width\\\"]);\\r\\n params[\\\"stroke-width\\\"] && (stroke.weight = width);\\r\\n width && width < 1 && (opacity *= width) && (stroke.weight = 1);\\r\\n stroke.opacity = opacity;\\r\\n\\r\\n params[\\\"stroke-linejoin\\\"] && (stroke.joinstyle = params[\\\"stroke-linejoin\\\"] || \\\"miter\\\");\\r\\n stroke.miterlimit = params[\\\"stroke-miterlimit\\\"] || 8;\\r\\n params[\\\"stroke-linecap\\\"] && (stroke.endcap = params[\\\"stroke-linecap\\\"] == \\\"butt\\\" ? \\\"flat\\\" : params[\\\"stroke-linecap\\\"] == \\\"square\\\" ? \\\"square\\\" : \\\"round\\\");\\r\\n if (\\\"stroke-dasharray\\\" in params) {\\r\\n var dasharray = {\\r\\n \\\"-\\\": \\\"shortdash\\\",\\r\\n \\\".\\\": \\\"shortdot\\\",\\r\\n \\\"-.\\\": \\\"shortdashdot\\\",\\r\\n \\\"-..\\\": \\\"shortdashdotdot\\\",\\r\\n \\\". \\\": \\\"dot\\\",\\r\\n \\\"- \\\": \\\"dash\\\",\\r\\n \\\"--\\\": \\\"longdash\\\",\\r\\n \\\"- .\\\": \\\"dashdot\\\",\\r\\n \\\"--.\\\": \\\"longdashdot\\\",\\r\\n \\\"--..\\\": \\\"longdashdotdot\\\"\\r\\n };\\r\\n stroke.dashstyle = dasharray[has](params[\\\"stroke-dasharray\\\"]) ? dasharray[params[\\\"stroke-dasharray\\\"]] : E;\\r\\n }\\r\\n newstroke && node.appendChild(stroke);\\r\\n }\\r\\n if (res.type == \\\"text\\\") {\\r\\n res.paper.canvas.style.display = E;\\r\\n var span = res.paper.span,\\r\\n m = 100,\\r\\n fontSize = a.font && a.font.match(/\\\\d+(?:\\\\.\\\\d*)?(?=px)/);\\r\\n s = span.style;\\r\\n a.font && (s.font = a.font);\\r\\n a[\\\"font-family\\\"] && (s.fontFamily = a[\\\"font-family\\\"]);\\r\\n a[\\\"font-weight\\\"] && (s.fontWeight = a[\\\"font-weight\\\"]);\\r\\n a[\\\"font-style\\\"] && (s.fontStyle = a[\\\"font-style\\\"]);\\r\\n fontSize = toFloat(a[\\\"font-size\\\"] || fontSize && fontSize[0]) || 10;\\r\\n s.fontSize = fontSize * m + \\\"px\\\";\\r\\n res.textpath.string && (span.innerHTML = Str(res.textpath.string).replace(/</g, \\\"<\\\").replace(/&/g, \\\"&\\\").replace(/\\\\n/g, \\\"<br>\\\"));\\r\\n var brect = span.getBoundingClientRect();\\r\\n res.W = a.w = (brect.right - brect.left) / m;\\r\\n res.H = a.h = (brect.bottom - brect.top) / m;\\r\\n // res.paper.canvas.style.display = \\\"none\\\";\\r\\n res.X = a.x;\\r\\n res.Y = a.y + res.H / 2;\\r\\n\\r\\n (\\\"x\\\" in params || \\\"y\\\" in params) && (res.path.v = R.format(\\\"m{0},{1}l{2},{1}\\\", round(a.x * zoom), round(a.y * zoom), round(a.x * zoom) + 1));\\r\\n var dirtyattrs = [\\\"x\\\", \\\"y\\\", \\\"text\\\", \\\"font\\\", \\\"font-family\\\", \\\"font-weight\\\", \\\"font-style\\\", \\\"font-size\\\"];\\r\\n for (var d = 0, dd = dirtyattrs.length; d < dd; d++) if (dirtyattrs[d] in params) {\\r\\n res._.dirty = 1;\\r\\n break;\\r\\n }\\r\\n\\r\\n // text-anchor emulation\\r\\n switch (a[\\\"text-anchor\\\"]) {\\r\\n case \\\"start\\\":\\r\\n res.textpath.style[\\\"v-text-align\\\"] = \\\"left\\\";\\r\\n res.bbx = res.W / 2;\\r\\n break;\\r\\n case \\\"end\\\":\\r\\n res.textpath.style[\\\"v-text-align\\\"] = \\\"right\\\";\\r\\n res.bbx = -res.W / 2;\\r\\n break;\\r\\n default:\\r\\n res.textpath.style[\\\"v-text-align\\\"] = \\\"center\\\";\\r\\n res.bbx = 0;\\r\\n break;\\r\\n }\\r\\n res.textpath.style[\\\"v-text-kern\\\"] = true;\\r\\n }\\r\\n // res.paper.canvas.style.display = E;\\r\\n },\\r\\n addGradientFill = function (o, gradient, fill) {\\r\\n o.attrs = o.attrs || {};\\r\\n var attrs = o.attrs,\\r\\n pow = Math.pow,\\r\\n opacity,\\r\\n oindex,\\r\\n type = \\\"linear\\\",\\r\\n fxfy = \\\".5 .5\\\";\\r\\n o.attrs.gradient = gradient;\\r\\n gradient = Str(gradient).replace(R._radial_gradient, function (all, fx, fy) {\\r\\n type = \\\"radial\\\";\\r\\n if (fx && fy) {\\r\\n fx = toFloat(fx);\\r\\n fy = toFloat(fy);\\r\\n pow(fx - .5, 2) + pow(fy - .5, 2) > .25 && (fy = math.sqrt(.25 - pow(fx - .5, 2)) * ((fy > .5) * 2 - 1) + .5);\\r\\n fxfy = fx + S + fy;\\r\\n }\\r\\n return E;\\r\\n });\\r\\n gradient = gradient.split(/\\\\s*\\\\-\\\\s*/);\\r\\n if (type == \\\"linear\\\") {\\r\\n var angle = gradient.shift();\\r\\n angle = -toFloat(angle);\\r\\n if (isNaN(angle)) {\\r\\n return null;\\r\\n }\\r\\n }\\r\\n var dots = R._parseDots(gradient);\\r\\n if (!dots) {\\r\\n return null;\\r\\n }\\r\\n o = o.shape || o.node;\\r\\n if (dots.length) {\\r\\n o.removeChild(fill);\\r\\n fill.on = true;\\r\\n fill.method = \\\"none\\\";\\r\\n fill.color = dots[0].color;\\r\\n fill.color2 = dots[dots.length - 1].color;\\r\\n var clrs = [];\\r\\n for (var i = 0, ii = dots.length; i < ii; i++) {\\r\\n dots[i].offset && clrs.push(dots[i].offset + S + dots[i].color);\\r\\n }\\r\\n fill.colors = clrs.length ? clrs.join() : \\\"0% \\\" + fill.color;\\r\\n if (type == \\\"radial\\\") {\\r\\n fill.type = \\\"gradientTitle\\\";\\r\\n fill.focus = \\\"100%\\\";\\r\\n fill.focussize = \\\"0 0\\\";\\r\\n fill.focusposition = fxfy;\\r\\n fill.angle = 0;\\r\\n } else {\\r\\n // fill.rotate= true;\\r\\n fill.type = \\\"gradient\\\";\\r\\n fill.angle = (270 - angle) % 360;\\r\\n }\\r\\n o.appendChild(fill);\\r\\n }\\r\\n return 1;\\r\\n },\\r\\n Element = function (node, vml) {\\r\\n this[0] = this.node = node;\\r\\n node.raphael = true;\\r\\n this.id = R._oid++;\\r\\n node.raphaelid = this.id;\\r\\n this.X = 0;\\r\\n this.Y = 0;\\r\\n this.attrs = {};\\r\\n this.paper = vml;\\r\\n this.matrix = R.matrix();\\r\\n this._ = {\\r\\n transform: [],\\r\\n sx: 1,\\r\\n sy: 1,\\r\\n dx: 0,\\r\\n dy: 0,\\r\\n deg: 0,\\r\\n dirty: 1,\\r\\n dirtyT: 1\\r\\n };\\r\\n !vml.bottom && (vml.bottom = this);\\r\\n this.prev = vml.top;\\r\\n vml.top && (vml.top.next = this);\\r\\n vml.top = this;\\r\\n this.next = null;\\r\\n };\\r\\n var elproto = R.el;\\r\\n\\r\\n Element.prototype = elproto;\\r\\n elproto.constructor = Element;\\r\\n elproto.transform = function (tstr) {\\r\\n if (tstr == null) {\\r\\n return this._.transform;\\r\\n }\\r\\n var vbs = this.paper._viewBoxShift,\\r\\n vbt = vbs ? \\\"s\\\" + [vbs.scale, vbs.scale] + \\\"-1-1t\\\" + [vbs.dx, vbs.dy] : E,\\r\\n oldt;\\r\\n if (vbs) {\\r\\n oldt = tstr = Str(tstr).replace(/\\\\.{3}|\\\\u2026/g, this._.transform || E);\\r\\n }\\r\\n R._extractTransform(this, vbt + tstr);\\r\\n var matrix = this.matrix.clone(),\\r\\n skew = this.skew,\\r\\n o = this.node,\\r\\n split,\\r\\n isGrad = ~Str(this.attrs.fill).indexOf(\\\"-\\\"),\\r\\n isPatt = !Str(this.attrs.fill).indexOf(\\\"url(\\\");\\r\\n matrix.translate(1, 1);\\r\\n if (isPatt || isGrad || this.type == \\\"image\\\") {\\r\\n skew.matrix = \\\"1 0 0 1\\\";\\r\\n skew.offset = \\\"0 0\\\";\\r\\n split = matrix.split();\\r\\n if ((isGrad && split.noRotation) || !split.isSimple) {\\r\\n o.style.filter = matrix.toFilter();\\r\\n var bb = this.getBBox(),\\r\\n bbt = this.getBBox(1),\\r\\n dx = bb.x - bbt.x,\\r\\n dy = bb.y - bbt.y;\\r\\n o.coordorigin = (dx * -zoom) + S + (dy * -zoom);\\r\\n setCoords(this, 1, 1, dx, dy, 0);\\r\\n } else {\\r\\n o.style.filter = E;\\r\\n setCoords(this, split.scalex, split.scaley, split.dx, split.dy, split.rotate);\\r\\n }\\r\\n } else {\\r\\n o.style.filter = E;\\r\\n skew.matrix = Str(matrix);\\r\\n skew.offset = matrix.offset();\\r\\n }\\r\\n if (oldt !== null) { // empty string value is true as well\\r\\n this._.transform = oldt;\\r\\n R._extractTransform(this, oldt);\\r\\n }\\r\\n return this;\\r\\n };\\r\\n elproto.rotate = function (deg, cx, cy) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n if (deg == null) {\\r\\n return;\\r\\n }\\r\\n deg = Str(deg).split(separator);\\r\\n if (deg.length - 1) {\\r\\n cx = toFloat(deg[1]);\\r\\n cy = toFloat(deg[2]);\\r\\n }\\r\\n deg = toFloat(deg[0]);\\r\\n (cy == null) && (cx = cy);\\r\\n if (cx == null || cy == null) {\\r\\n var bbox = this.getBBox(1);\\r\\n cx = bbox.x + bbox.width / 2;\\r\\n cy = bbox.y + bbox.height / 2;\\r\\n }\\r\\n this._.dirtyT = 1;\\r\\n this.transform(this._.transform.concat([[\\\"r\\\", deg, cx, cy]]));\\r\\n return this;\\r\\n };\\r\\n elproto.translate = function (dx, dy) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n dx = Str(dx).split(separator);\\r\\n if (dx.length - 1) {\\r\\n dy = toFloat(dx[1]);\\r\\n }\\r\\n dx = toFloat(dx[0]) || 0;\\r\\n dy = +dy || 0;\\r\\n if (this._.bbox) {\\r\\n this._.bbox.x += dx;\\r\\n this._.bbox.y += dy;\\r\\n }\\r\\n this.transform(this._.transform.concat([[\\\"t\\\", dx, dy]]));\\r\\n return this;\\r\\n };\\r\\n elproto.scale = function (sx, sy, cx, cy) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n sx = Str(sx).split(separator);\\r\\n if (sx.length - 1) {\\r\\n sy = toFloat(sx[1]);\\r\\n cx = toFloat(sx[2]);\\r\\n cy = toFloat(sx[3]);\\r\\n isNaN(cx) && (cx = null);\\r\\n isNaN(cy) && (cy = null);\\r\\n }\\r\\n sx = toFloat(sx[0]);\\r\\n (sy == null) && (sy = sx);\\r\\n (cy == null) && (cx = cy);\\r\\n if (cx == null || cy == null) {\\r\\n var bbox = this.getBBox(1);\\r\\n }\\r\\n cx = cx == null ? bbox.x + bbox.width / 2 : cx;\\r\\n cy = cy == null ? bbox.y + bbox.height / 2 : cy;\\r\\n\\r\\n this.transform(this._.transform.concat([[\\\"s\\\", sx, sy, cx, cy]]));\\r\\n this._.dirtyT = 1;\\r\\n return this;\\r\\n };\\r\\n elproto.hide = function () {\\r\\n !this.removed && (this.node.style.display = \\\"none\\\");\\r\\n return this;\\r\\n };\\r\\n elproto.show = function () {\\r\\n !this.removed && (this.node.style.display = E);\\r\\n return this;\\r\\n };\\r\\n // Needed to fix the vml setViewBox issues\\r\\n elproto.auxGetBBox = R.el.getBBox;\\r\\n elproto.getBBox = function(){\\r\\n var b = this.auxGetBBox();\\r\\n if (this.paper && this.paper._viewBoxShift)\\r\\n {\\r\\n var c = {};\\r\\n var z = 1/this.paper._viewBoxShift.scale;\\r\\n c.x = b.x - this.paper._viewBoxShift.dx;\\r\\n c.x *= z;\\r\\n c.y = b.y - this.paper._viewBoxShift.dy;\\r\\n c.y *= z;\\r\\n c.width = b.width * z;\\r\\n c.height = b.height * z;\\r\\n c.x2 = c.x + c.width;\\r\\n c.y2 = c.y + c.height;\\r\\n return c;\\r\\n }\\r\\n return b;\\r\\n };\\r\\n elproto._getBBox = function () {\\r\\n if (this.removed) {\\r\\n return {};\\r\\n }\\r\\n return {\\r\\n x: this.X + (this.bbx || 0) - this.W / 2,\\r\\n y: this.Y - this.H,\\r\\n width: this.W,\\r\\n height: this.H\\r\\n };\\r\\n };\\r\\n elproto.remove = function () {\\r\\n if (this.removed || !this.node.parentNode) {\\r\\n return;\\r\\n }\\r\\n this.paper.__set__ && this.paper.__set__.exclude(this);\\r\\n R.eve.unbind(\\\"raphael.*.*.\\\" + this.id);\\r\\n R._tear(this, this.paper);\\r\\n this.node.parentNode.removeChild(this.node);\\r\\n this.shape && this.shape.parentNode.removeChild(this.shape);\\r\\n for (var i in this) {\\r\\n this[i] = typeof this[i] == \\\"function\\\" ? R._removedFactory(i) : null;\\r\\n }\\r\\n this.removed = true;\\r\\n };\\r\\n elproto.attr = function (name, value) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n if (name == null) {\\r\\n var res = {};\\r\\n for (var a in this.attrs) if (this.attrs[has](a)) {\\r\\n res[a] = this.attrs[a];\\r\\n }\\r\\n res.gradient && res.fill == \\\"none\\\" && (res.fill = res.gradient) && delete res.gradient;\\r\\n res.transform = this._.transform;\\r\\n return res;\\r\\n }\\r\\n if (value == null && R.is(name, \\\"string\\\")) {\\r\\n if (name == fillString && this.attrs.fill == \\\"none\\\" && this.attrs.gradient) {\\r\\n return this.attrs.gradient;\\r\\n }\\r\\n var names = name.split(separator),\\r\\n out = {};\\r\\n for (var i = 0, ii = names.length; i < ii; i++) {\\r\\n name = names[i];\\r\\n if (name in this.attrs) {\\r\\n out[name] = this.attrs[name];\\r\\n } else if (R.is(this.paper.customAttributes[name], \\\"function\\\")) {\\r\\n out[name] = this.paper.customAttributes[name].def;\\r\\n } else {\\r\\n out[name] = R._availableAttrs[name];\\r\\n }\\r\\n }\\r\\n return ii - 1 ? out : out[names[0]];\\r\\n }\\r\\n if (this.attrs && value == null && R.is(name, \\\"array\\\")) {\\r\\n out = {};\\r\\n for (i = 0, ii = name.length; i < ii; i++) {\\r\\n out[name[i]] = this.attr(name[i]);\\r\\n }\\r\\n return out;\\r\\n }\\r\\n var params;\\r\\n if (value != null) {\\r\\n params = {};\\r\\n params[name] = value;\\r\\n }\\r\\n value == null && R.is(name, \\\"object\\\") && (params = name);\\r\\n for (var key in params) {\\r\\n eve(\\\"raphael.attr.\\\" + key + \\\".\\\" + this.id, this, params[key]);\\r\\n }\\r\\n if (params) {\\r\\n for (key in this.paper.customAttributes) if (this.paper.customAttributes[has](key) && params[has](key) && R.is(this.paper.customAttributes[key], \\\"function\\\")) {\\r\\n var par = this.paper.customAttributes[key].apply(this, [].concat(params[key]));\\r\\n this.attrs[key] = params[key];\\r\\n for (var subkey in par) if (par[has](subkey)) {\\r\\n params[subkey] = par[subkey];\\r\\n }\\r\\n }\\r\\n // this.paper.canvas.style.display = \\\"none\\\";\\r\\n if (params.text && this.type == \\\"text\\\") {\\r\\n this.textpath.string = params.text;\\r\\n }\\r\\n setFillAndStroke(this, params);\\r\\n // this.paper.canvas.style.display = E;\\r\\n }\\r\\n return this;\\r\\n };\\r\\n elproto.toFront = function () {\\r\\n !this.removed && this.node.parentNode.appendChild(this.node);\\r\\n this.paper && this.paper.top != this && R._tofront(this, this.paper);\\r\\n return this;\\r\\n };\\r\\n elproto.toBack = function () {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n if (this.node.parentNode.firstChild != this.node) {\\r\\n this.node.parentNode.insertBefore(this.node, this.node.parentNode.firstChild);\\r\\n R._toback(this, this.paper);\\r\\n }\\r\\n return this;\\r\\n };\\r\\n elproto.insertAfter = function (element) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n if (element.constructor == R.st.constructor) {\\r\\n element = element[element.length - 1];\\r\\n }\\r\\n if (element.node.nextSibling) {\\r\\n element.node.parentNode.insertBefore(this.node, element.node.nextSibling);\\r\\n } else {\\r\\n element.node.parentNode.appendChild(this.node);\\r\\n }\\r\\n R._insertafter(this, element, this.paper);\\r\\n return this;\\r\\n };\\r\\n elproto.insertBefore = function (element) {\\r\\n if (this.removed) {\\r\\n return this;\\r\\n }\\r\\n if (element.constructor == R.st.constructor) {\\r\\n element = element[0];\\r\\n }\\r\\n element.node.parentNode.insertBefore(this.node, element.node);\\r\\n R._insertbefore(this, element, this.paper);\\r\\n return this;\\r\\n };\\r\\n elproto.blur = function (size) {\\r\\n var s = this.node.runtimeStyle,\\r\\n f = s.filter;\\r\\n f = f.replace(blurregexp, E);\\r\\n if (+size !== 0) {\\r\\n this.attrs.blur = size;\\r\\n s.filter = f + S + ms + \\\".Blur(pixelradius=\\\" + (+size || 1.5) + \\\")\\\";\\r\\n s.margin = R.format(\\\"-{0}px 0 0 -{0}px\\\", round(+size || 1.5));\\r\\n } else {\\r\\n s.filter = f;\\r\\n s.margin = 0;\\r\\n delete this.attrs.blur;\\r\\n }\\r\\n return this;\\r\\n };\\r\\n\\r\\n R._engine.path = function (pathString, vml) {\\r\\n var el = createNode(\\\"shape\\\");\\r\\n el.style.cssText = cssDot;\\r\\n el.coordsize = zoom + S + zoom;\\r\\n el.coordorigin = vml.coordorigin;\\r\\n var p = new Element(el, vml),\\r\\n attr = {fill: \\\"none\\\", stroke: \\\"#000\\\"};\\r\\n pathString && (attr.path = pathString);\\r\\n p.type = \\\"path\\\";\\r\\n p.path = [];\\r\\n p.Path = E;\\r\\n setFillAndStroke(p, attr);\\r\\n vml.canvas.appendChild(el);\\r\\n var skew = createNode(\\\"skew\\\");\\r\\n skew.on = true;\\r\\n el.appendChild(skew);\\r\\n p.skew = skew;\\r\\n p.transform(E);\\r\\n return p;\\r\\n };\\r\\n R._engine.rect = function (vml, x, y, w, h, r) {\\r\\n var path = R._rectPath(x, y, w, h, r),\\r\\n res = vml.path(path),\\r\\n a = res.attrs;\\r\\n res.X = a.x = x;\\r\\n res.Y = a.y = y;\\r\\n res.W = a.width = w;\\r\\n res.H = a.height = h;\\r\\n a.r = r;\\r\\n a.path = path;\\r\\n res.type = \\\"rect\\\";\\r\\n return res;\\r\\n };\\r\\n R._engine.ellipse = function (vml, x, y, rx, ry) {\\r\\n var res = vml.path(),\\r\\n a = res.attrs;\\r\\n res.X = x - rx;\\r\\n res.Y = y - ry;\\r\\n res.W = rx * 2;\\r\\n res.H = ry * 2;\\r\\n res.type = \\\"ellipse\\\";\\r\\n setFillAndStroke(res, {\\r\\n cx: x,\\r\\n cy: y,\\r\\n rx: rx,\\r\\n ry: ry\\r\\n });\\r\\n return res;\\r\\n };\\r\\n R._engine.circle = function (vml, x, y, r) {\\r\\n var res = vml.path(),\\r\\n a = res.attrs;\\r\\n res.X = x - r;\\r\\n res.Y = y - r;\\r\\n res.W = res.H = r * 2;\\r\\n res.type = \\\"circle\\\";\\r\\n setFillAndStroke(res, {\\r\\n cx: x,\\r\\n cy: y,\\r\\n r: r\\r\\n });\\r\\n return res;\\r\\n };\\r\\n R._engine.image = function (vml, src, x, y, w, h) {\\r\\n var path = R._rectPath(x, y, w, h),\\r\\n res = vml.path(path).attr({stroke: \\\"none\\\"}),\\r\\n a = res.attrs,\\r\\n node = res.node,\\r\\n fill = node.getElementsByTagName(fillString)[0];\\r\\n a.src = src;\\r\\n res.X = a.x = x;\\r\\n res.Y = a.y = y;\\r\\n res.W = a.width = w;\\r\\n res.H = a.height = h;\\r\\n a.path = path;\\r\\n res.type = \\\"image\\\";\\r\\n fill.parentNode == node && node.removeChild(fill);\\r\\n fill.rotate = true;\\r\\n fill.src = src;\\r\\n fill.type = \\\"tile\\\";\\r\\n res._.fillpos = [x, y];\\r\\n res._.fillsize = [w, h];\\r\\n node.appendChild(fill);\\r\\n setCoords(res, 1, 1, 0, 0, 0);\\r\\n return res;\\r\\n };\\r\\n R._engine.text = function (vml, x, y, text) {\\r\\n var el = createNode(\\\"shape\\\"),\\r\\n path = createNode(\\\"path\\\"),\\r\\n o = createNode(\\\"textpath\\\");\\r\\n x = x || 0;\\r\\n y = y || 0;\\r\\n text = text || \\\"\\\";\\r\\n path.v = R.format(\\\"m{0},{1}l{2},{1}\\\", round(x * zoom), round(y * zoom), round(x * zoom) + 1);\\r\\n path.textpathok = true;\\r\\n o.string = Str(text);\\r\\n o.on = true;\\r\\n el.style.cssText = cssDot;\\r\\n el.coordsize = zoom + S + zoom;\\r\\n el.coordorigin = \\\"0 0\\\";\\r\\n var p = new Element(el, vml),\\r\\n attr = {\\r\\n fill: \\\"#000\\\",\\r\\n stroke: \\\"none\\\",\\r\\n font: R._availableAttrs.font,\\r\\n text: text\\r\\n };\\r\\n p.shape = el;\\r\\n p.path = path;\\r\\n p.textpath = o;\\r\\n p.type = \\\"text\\\";\\r\\n p.attrs.text = Str(text);\\r\\n p.attrs.x = x;\\r\\n p.attrs.y = y;\\r\\n p.attrs.w = 1;\\r\\n p.attrs.h = 1;\\r\\n setFillAndStroke(p, attr);\\r\\n el.appendChild(o);\\r\\n el.appendChild(path);\\r\\n vml.canvas.appendChild(el);\\r\\n var skew = createNode(\\\"skew\\\");\\r\\n skew.on = true;\\r\\n el.appendChild(skew);\\r\\n p.skew = skew;\\r\\n p.transform(E);\\r\\n return p;\\r\\n };\\r\\n R._engine.setSize = function (width, height) {\\r\\n var cs = this.canvas.style;\\r\\n this.width = width;\\r\\n this.height = height;\\r\\n width == +width && (width += \\\"px\\\");\\r\\n height == +height && (height += \\\"px\\\");\\r\\n cs.width = width;\\r\\n cs.height = height;\\r\\n cs.clip = \\\"rect(0 \\\" + width + \\\" \\\" + height + \\\" 0)\\\";\\r\\n if (this._viewBox) {\\r\\n R._engine.setViewBox.apply(this, this._viewBox);\\r\\n }\\r\\n return this;\\r\\n };\\r\\n R._engine.setViewBox = function (x, y, w, h, fit) {\\r\\n R.eve(\\\"raphael.setViewBox\\\", this, this._viewBox, [x, y, w, h, fit]);\\r\\n var paperSize = this.getSize(),\\r\\n width = paperSize.width,\\r\\n height = paperSize.height,\\r\\n H, W;\\r\\n if (fit) {\\r\\n H = height / h;\\r\\n W = width / w;\\r\\n if (w * H < width) {\\r\\n x -= (width - w * H) / 2 / H;\\r\\n }\\r\\n if (h * W < height) {\\r\\n y -= (height - h * W) / 2 / W;\\r\\n }\\r\\n }\\r\\n this._viewBox = [x, y, w, h, !!fit];\\r\\n this._viewBoxShift = {\\r\\n dx: -x,\\r\\n dy: -y,\\r\\n scale: paperSize\\r\\n };\\r\\n this.forEach(function (el) {\\r\\n el.transform(\\\"...\\\");\\r\\n });\\r\\n return this;\\r\\n };\\r\\n var createNode;\\r\\n R._engine.initWin = function (win) {\\r\\n var doc = win.document;\\r\\n if (doc.styleSheets.length < 31) {\\r\\n doc.createStyleSheet().addRule(\\\".rvml\\\", \\\"behavior:url(#default#VML)\\\");\\r\\n } else {\\r\\n // no more room, add to the existing one\\r\\n // http://msdn.microsoft.com/en-us/library/ms531194%28VS.85%29.aspx\\r\\n doc.styleSheets[0].addRule(\\\".rvml\\\", \\\"behavior:url(#default#VML)\\\");\\r\\n }\\r\\n try {\\r\\n !doc.namespaces.rvml && doc.namespaces.add(\\\"rvml\\\", \\\"urn:schemas-microsoft-com:vml\\\");\\r\\n createNode = function (tagName) {\\r\\n return doc.createElement('<rvml:' + tagName + ' class=\\\"rvml\\\">');\\r\\n };\\r\\n } catch (e) {\\r\\n createNode = function (tagName) {\\r\\n return doc.createElement('<' + tagName + ' xmlns=\\\"urn:schemas-microsoft.com:vml\\\" class=\\\"rvml\\\">');\\r\\n };\\r\\n }\\r\\n };\\r\\n R._engine.initWin(R._g.win);\\r\\n R._engine.create = function () {\\r\\n var con = R._getContainer.apply(0, arguments),\\r\\n container = con.container,\\r\\n height = con.height,\\r\\n s,\\r\\n width = con.width,\\r\\n x = con.x,\\r\\n y = con.y;\\r\\n if (!container) {\\r\\n throw new Error(\\\"VML container not found.\\\");\\r\\n }\\r\\n var res = new R._Paper,\\r\\n c = res.canvas = R._g.doc.createElement(\\\"div\\\"),\\r\\n cs = c.style;\\r\\n x = x || 0;\\r\\n y = y || 0;\\r\\n width = width || 512;\\r\\n height = height || 342;\\r\\n res.width = width;\\r\\n res.height = height;\\r\\n width == +width && (width += \\\"px\\\");\\r\\n height == +height && (height += \\\"px\\\");\\r\\n res.coordsize = zoom * 1e3 + S + zoom * 1e3;\\r\\n res.coordorigin = \\\"0 0\\\";\\r\\n res.span = R._g.doc.createElement(\\\"span\\\");\\r\\n res.span.style.cssText = \\\"position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;\\\";\\r\\n c.appendChild(res.span);\\r\\n cs.cssText = R.format(\\\"top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden\\\", width, height);\\r\\n if (container == 1) {\\r\\n R._g.doc.body.appendChild(c);\\r\\n cs.left = x + \\\"px\\\";\\r\\n cs.top = y + \\\"px\\\";\\r\\n cs.position = \\\"absolute\\\";\\r\\n } else {\\r\\n if (container.firstChild) {\\r\\n container.insertBefore(c, container.firstChild);\\r\\n } else {\\r\\n container.appendChild(c);\\r\\n }\\r\\n }\\r\\n res.renderfix = function () {};\\r\\n return res;\\r\\n };\\r\\n R.prototype.clear = function () {\\r\\n R.eve(\\\"raphael.clear\\\", this);\\r\\n this.canvas.innerHTML = E;\\r\\n this.span = R._g.doc.createElement(\\\"span\\\");\\r\\n this.span.style.cssText = \\\"position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;\\\";\\r\\n this.canvas.appendChild(this.span);\\r\\n this.bottom = this.top = null;\\r\\n };\\r\\n R.prototype.remove = function () {\\r\\n R.eve(\\\"raphael.remove\\\", this);\\r\\n this.canvas.parentNode.removeChild(this.canvas);\\r\\n for (var i in this) {\\r\\n this[i] = typeof this[i] == \\\"function\\\" ? R._removedFactory(i) : null;\\r\\n }\\r\\n return true;\\r\\n };\\r\\n\\r\\n var setproto = R.st;\\r\\n for (var method in elproto) if (elproto[has](method) && !setproto[has](method)) {\\r\\n setproto[method] = (function (methodname) {\\r\\n return function () {\\r\\n var arg = arguments;\\r\\n return this.forEach(function (el) {\\r\\n el[methodname].apply(el, arg);\\r\\n });\\r\\n };\\r\\n })(method);\\r\\n }\\r\\n}));\\r\\n\\r\\n// ┌────────────────────────────────────────────────────────────────────┐ \\\\\\\\\\r\\n// │ Raphaël @VERSION - JavaScript Vector Library │ \\\\\\\\\\r\\n// ├────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) │ \\\\\\\\\\r\\n// │ Copyright © 2008-2012 Sencha Labs (http://sencha.com) │ \\\\\\\\\\r\\n// ├────────────────────────────────────────────────────────────────────┤ \\\\\\\\\\r\\n// │ Licensed under the MIT (http://raphaeljs.com/license.html) license.│ \\\\\\\\\\r\\n// └────────────────────────────────────────────────────────────────────┘ \\\\\\\\\\r\\n\\r\\n(function (glob, factory) {\\r\\n if (typeof define === \\\"function\\\" && define.amd) {\\r\\n define(\\\"raphael\\\", [\\\"raphael.core\\\", \\\"raphael.svg\\\", \\\"raphael.vml\\\"], function(Raphael) {\\r\\n return (glob.Raphael = factory(Raphael));\\r\\n });\\r\\n } else if (typeof exports === \\\"object\\\") {\\r\\n var raphael = require(\\\"raphael.core\\\");\\r\\n\\r\\n require(\\\"raphael.svg\\\");\\r\\n require(\\\"raphael.vml\\\");\\r\\n\\r\\n module.exports = factory(raphael);\\r\\n } else {\\r\\n glob.Raphael = factory(glob.Raphael);\\r\\n }\\r\\n}(this, function (Raphael) {\\r\\n return Raphael.ninja();\\r\\n}));\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n/**\\r\\n * FRaphael\\r\\n * \\tAn extension for Raphael.js to make it easier to work with Filter Effects\\r\\n *\\r\\n * Copyright © 2013 Chris Scott <chris.scott@factmint.com>\\r\\n * Delivered with and licensed under the MIT licence\\r\\n *\\r\\n */\\r\\n\\r\\n// Create the global FRaphael object\\r\\n(function(scope) {\\r\\n var\\tversion = \\\"0.0.1\\\",\\r\\n license = \\\"MIT\\\";\\r\\n\\r\\n var\\tns = \\\"http://www.w3.org/2000/svg\\\",\\r\\n idCounter = 0;\\r\\n\\r\\n var FR = {\\r\\n // Object prototype for a filter\\r\\n Filter: function(id) {\\r\\n if (id == undefined) {\\r\\n id = \\\"filter-\\\" + idCounter++;\\r\\n while(FR.filters[id] != undefined) {\\r\\n id = \\\"filter-\\\" + idCounter++;\\r\\n }\\r\\n }\\r\\n\\r\\n if (FR.filters[id] != undefined) {\\r\\n throw \\\"A filter with id \\\" + id + \\\" already exists\\\";\\r\\n }\\r\\n\\r\\n this.element = document.createElementNS(ns, \\\"filter\\\");\\r\\n this.element.setAttribute(\\\"id\\\", id);\\r\\n this.element.setAttribute(\\\"x\\\", \\\"-25%\\\");\\r\\n this.element.setAttribute(\\\"y\\\", \\\"-25%\\\");\\r\\n this.element.setAttribute(\\\"width\\\", \\\"150%\\\");\\r\\n this.element.setAttribute(\\\"height\\\", \\\"150%\\\");\\r\\n\\r\\n this.lastFEResult = null;\\r\\n\\r\\n FR.filters[id] = this;\\r\\n this.id = id;\\r\\n },\\r\\n\\r\\n // Object prototype for an effect\\r\\n FilterEffect: function(type, attributes) {\\r\\n this.element = document.createElementNS(ns, type);\\r\\n for (var key in attributes) {\\r\\n this.element.setAttribute(key, attributes[key]);\\r\\n }\\r\\n },\\r\\n\\r\\n // Return the filter applied to an element or a new filter if none are currently applied\\r\\n getFilter: function(element) {\\r\\n var filterId = element.data(\\\"filterId\\\");\\r\\n var filter = null;\\r\\n\\r\\n if (filterId == undefined) {\\r\\n filterId = \\\"element-filter-\\\" + element.id;\\r\\n filter = element.paper.createFilter(filterId);\\r\\n element.filter(filterId);\\r\\n } else {\\r\\n filter = FR.filters[filterId];\\r\\n }\\r\\n\\r\\n return filter;\\r\\n },\\r\\n\\r\\n // maintain a list of filters by id\\r\\n filters: {}\\r\\n };\\r\\n\\r\\n FR.Filter.prototype = {\\r\\n addEffect: function(type, attributes, children) {\\r\\n var effect = new FR.FilterEffect(type, attributes);\\r\\n\\r\\n if (children) {\\r\\n if (children instanceof Array) {\\r\\n for (var x in children) {\\r\\n if (!children.hasOwnProperty(x)) continue;\\r\\n\\r\\n effect.element.appendChild(children[x].element);\\r\\n }\\r\\n } else {\\r\\n effect.element.appendChild(children.element);\\r\\n }\\r\\n }\\r\\n\\r\\n this.element.appendChild(effect.element);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n chainEffect: function(type, attributes, children) {\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n var inId;\\r\\n var outId;\\r\\n if (attributes.in == undefined) {\\r\\n inId = this.getLastResult();\\r\\n } else {\\r\\n inId = attributes.in;\\r\\n }\\r\\n if (attributes.result == undefined) {\\r\\n outId = idCounter++;\\r\\n } else {\\r\\n outId = attributes.result;\\r\\n }\\r\\n\\r\\n this.lastFEResult = outId;\\r\\n\\r\\n attributes.in = inId;\\r\\n attributes.result = outId;\\r\\n\\r\\n this.addEffect(type, attributes, children);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n getLastResult: function() {\\r\\n return (this.lastFEResult == undefined) ? \\\"SourceGraphic\\\" : this.lastFEResult;\\r\\n },\\r\\n\\r\\n merge: function(in1, in2, attributes) {\\r\\n var mergeNode1 = new FR.FilterEffect(\\\"feMergeNode\\\", {\\r\\n in: in1\\r\\n });\\r\\n var mergeNode2 = new FR.FilterEffect(\\\"feMergeNode\\\", {\\r\\n in: in2\\r\\n });\\r\\n\\r\\n this.chainEffect(\\\"feMerge\\\", attributes, [mergeNode1, mergeNode2]);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n compose: function(in1, in2, operator, attributes) {\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n if (operator == undefined) {\\r\\n operator = \\\"over\\\";\\r\\n }\\r\\n\\r\\n attributes.in = in1;\\r\\n attributes.in2 = in2;\\r\\n attributes.operator = operator;\\r\\n\\r\\n this.chainEffect(\\\"feComposite\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n arithmeticCompose: function(in1, in2, k1, k2, k3, k4) {\\r\\n if (k1 == undefined) {\\r\\n k1 = 0;\\r\\n }\\r\\n if (k2 == undefined) {\\r\\n k2 = 0;\\r\\n }\\r\\n if (k3 == undefined) {\\r\\n k3 = 0;\\r\\n }\\r\\n if (k4 == undefined) {\\r\\n k4 = 0;\\r\\n }\\r\\n\\r\\n this.compose(in1, in2, \\\"arithmetic\\\", {\\r\\n k1: k1,\\r\\n k2: k2,\\r\\n k3: k3,\\r\\n k4: k4\\r\\n });\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addBlur: function(stdDeviation, attributes) {\\r\\n if (!stdDeviation) {\\r\\n throw \\\"Standard deviation is required to perform a blur filter\\\";\\r\\n }\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n attributes.stdDeviation = stdDeviation;\\r\\n\\r\\n this.chainEffect(\\\"feGaussianBlur\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addOffset: function(dx, dy, attributes) {\\r\\n if (dx == undefined | dy == undefined) {\\r\\n throw \\\"dx and dy values are required to perform an offset FE\\\";\\r\\n }\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n attributes.dx = dx;\\r\\n attributes.dy = dy;\\r\\n\\r\\n this.chainEffect(\\\"feOffset\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addLighting: function(x, y, z, color, type, attributes) {\\r\\n if (x == undefined | y == undefined | z == undefined) {\\r\\n throw \\\"Three co-ordinates are required to create a light source\\\";\\r\\n }\\r\\n\\r\\n var previousResult = this.getLastResult();\\r\\n\\r\\n var id = idCounter++;\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n attributes.result = id;\\r\\n if (color != undefined) {\\r\\n attributes[\\\"lighting-color\\\"] = color;\\r\\n }\\r\\n\\r\\n if (type == undefined || type == \\\"diffuse\\\") {\\r\\n type = \\\"feDiffuseLighting\\\";\\r\\n } else if (type == \\\"specular\\\") {\\r\\n type = \\\"feSpecularLighting\\\";\\r\\n }\\r\\n\\r\\n var lightSource = new FR.FilterEffect(\\\"fePointLight\\\", {\\r\\n x: x,\\r\\n y: y,\\r\\n z: z\\r\\n });\\r\\n\\r\\n this.chainEffect(type, attributes, lightSource).arithmeticCompose(previousResult, id, 3, 0.2, 0, 0);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addShiftToColor: function(color, moveBy, attributes) {\\r\\n if (color == undefined) {\\r\\n throw \\\"A colour string is a required argument to create a colorMatrix\\\";\\r\\n }\\r\\n if (moveBy == undefined) {\\r\\n moveBy = 0.5;\\r\\n }\\r\\n\\r\\n var remainingColor = 1 - moveBy, x = remainingColor;\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n var colorObject = Raphael.color(color);\\r\\n var\\tr = colorObject.r * moveBy / 255,\\r\\n g = colorObject.g * moveBy / 255,\\r\\n b = colorObject.b * moveBy / 255;\\r\\n\\r\\n /**\\r\\n * r'\\tx 0 0 0 r\\t\\tr\\r\\n * g'\\t0 x 0 0 g\\t\\tg\\r\\n * b' =\\t0 0 x 0 b\\t.\\tb\\r\\n * a'\\t0 0 0 1 0\\t\\to\\r\\n * 1\\t\\t\\t\\t\\t1\\r\\n */\\r\\n attributes.values = x + \\\" 0 0 0 \\\" + r + \\\" 0 \\\" + x + \\\" 0 0 \\\" + g + \\\" 0 0 \\\" + x + \\\" 0 \\\" + b + \\\" 0 0 0 1 0 \\\";\\r\\n\\r\\n this.chainEffect(\\\"feColorMatrix\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addRecolor: function(color, opacity, attributes) {\\r\\n if (color == undefined) {\\r\\n throw \\\"A colour string is a required argument to create a colorMatrix\\\";\\r\\n }\\r\\n if (opacity == undefined) {\\r\\n opacity = 1;\\r\\n }\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n var colorObject = Raphael.color(color);\\r\\n var\\tr = colorObject.r / 255,\\r\\n g = colorObject.g / 255,\\r\\n b = colorObject.b / 255;\\r\\n\\r\\n /**\\r\\n * r'\\t0 0 0 0 r\\t\\tr\\r\\n * g'\\t0 0 0 0 g\\t\\tg\\r\\n * b' =\\t0 0 0 0 b\\t.\\tb\\r\\n * a'\\t0 0 0 a 0\\t\\ta\\r\\n * 1\\t\\t\\t\\t\\t1\\r\\n */\\r\\n attributes.values = \\\"0 0 0 0 \\\" + r + \\\" 0 0 0 0 \\\" + g + \\\" 0 0 0 0 \\\" + b + \\\" 0 0 0 \\\" + opacity + \\\" 0 \\\";\\r\\n\\r\\n this.chainEffect(\\\"feColorMatrix\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addDesaturate: function(saturation, attributes) {\\r\\n if (saturation == undefined) {\\r\\n saturnation = 0;\\r\\n }\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n attributes.values = saturation;\\r\\n attributes.type = \\\"saturate\\\";\\r\\n\\r\\n this.chainEffect(\\\"feColorMatrix\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n addConvolveMatrix: function(matrix, attributes) {\\r\\n if (matrix == undefined) {\\r\\n throw \\\"A matrix (usually 9 numbers) must be provided to apply a convolve matrix transform\\\";\\r\\n }\\r\\n\\r\\n if (attributes == undefined) {\\r\\n attributes = {};\\r\\n }\\r\\n\\r\\n attributes.kernelMatrix = matrix;\\r\\n\\r\\n this.chainEffect(\\\"feConvolveMatrix\\\", attributes);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n createShadow: function(dx, dy, blur, opacity, color) {\\r\\n if (dx == undefined) {\\r\\n throw \\\"dx is required for the shadow effect\\\";\\r\\n }\\r\\n if (dy == undefined) {\\r\\n throw \\\"dy is required for the shadow effect\\\";\\r\\n }\\r\\n if (blur == undefined) {\\r\\n throw \\\"blur (stdDeviation) is required for the shadow effect\\\";\\r\\n }\\r\\n\\r\\n if (opacity == undefined) {\\r\\n opacity = 0.6;\\r\\n }\\r\\n\\r\\n var previousResult = this.getLastResult();\\r\\n\\r\\n if (color == undefined) {\\r\\n color = \\\"#000000\\\";\\r\\n }\\r\\n\\r\\n this.addOffset(dx, dy, {\\r\\n in: \\\"SourceAlpha\\\"\\r\\n });\\r\\n\\r\\n this.addRecolor(color, opacity);\\r\\n\\r\\n this.addBlur(blur);\\r\\n\\r\\n this.merge(this.getLastResult(), previousResult);\\r\\n\\r\\n return this;\\r\\n },\\r\\n\\r\\n createEmboss: function(height, x, y, z) {\\r\\n if (height == undefined) {\\r\\n height = 2;\\r\\n }\\r\\n if (x == undefined) {\\r\\n x = -1000;\\r\\n }\\r\\n if (y == undefined) {\\r\\n y = -5000;\\r\\n }\\r\\n if (z == undefined) {\\r\\n z = 300;\\r\\n }\\r\\n\\r\\n // Create the highlight\\r\\n\\r\\n this.addOffset(height * x / (x + y), height * y / (x + y), {\\r\\n in: \\\"SourceAlpha\\\"\\r\\n });\\r\\n\\r\\n this.addBlur(height * 0.5);\\r\\n\\r\\n var whiteLightSource = new FR.FilterEffect(\\\"fePointLight\\\", {\\r\\n x: x,\\r\\n y: y,\\r\\n z: z\\r\\n });\\r\\n\\r\\n this.chainEffect(\\\"feSpecularLighting\\\", {\\r\\n surfaceScale: height,\\r\\n specularConstant: 0.8,\\r\\n specularExponent: 15\\r\\n }, whiteLightSource);\\r\\n\\r\\n this.compose(this.getLastResult(), \\\"SourceAlpha\\\", \\\"in\\\");\\r\\n var whiteLight = this.getLastResult();\\r\\n\\r\\n // Create the lowlight\\r\\n\\r\\n this.addOffset(height * -1 * x / (x + y), height * -1 * y / (x + y), {\\r\\n in: \\\"SourceAlpha\\\"\\r\\n });\\r\\n\\r\\n this.addBlur(height * 0.5);\\r\\n\\r\\n var darkLightSource = new FR.FilterEffect(\\\"fePointLight\\\", {\\r\\n x: -1 * x,\\r\\n y: -1 * y,\\r\\n z: z\\r\\n });\\r\\n\\r\\n this.chainEffect(\\\"feSpecularLighting\\\", {\\r\\n surfaceScale: height,\\r\\n specularConstant: 1.8,\\r\\n specularExponent: 6\\r\\n }, darkLightSource);\\r\\n\\r\\n this.compose(this.getLastResult(), \\\"SourceAlpha\\\", \\\"in\\\");\\r\\n this.chainEffect(\\\"feColorMatrix\\\", {\\r\\n values: \\\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0\\\"\\r\\n });\\r\\n var darkLight = this.getLastResult();\\r\\n\\r\\n this.arithmeticCompose(whiteLight, darkLight, 0, 0.8, 0.5, 0);\\r\\n\\r\\n this.merge(\\\"SourceGraphic\\\", this.getLastResult());\\r\\n\\r\\n return this;\\r\\n }\\r\\n };\\r\\n\\r\\n scope.FRaphael = FR;\\r\\n})(this);\\r\\n\\r\\n/**\\r\\n * add a filter to the paper by id\\r\\n */\\r\\nRaphael.fn.createFilter = function(id) {\\r\\n var paper = this;\\r\\n var filter = new FRaphael.Filter(id);\\r\\n paper.defs.appendChild(filter.element);\\r\\n\\r\\n return filter;\\r\\n};\\r\\n\\r\\n/**\\r\\n * Apply a filter to an element by id\\r\\n */\\r\\nRaphael.el.filter = function(filter) {\\r\\n var id = (filter instanceof FRaphael.Filter) ? filter.id : filter;\\r\\n\\r\\n this.node.setAttribute(\\\"filter\\\", \\\"url(#\\\" + id + \\\")\\\");\\r\\n this.data(\\\"filterId\\\", id);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * Get the current filter for an element or a new one if not\\r\\n */\\r\\nRaphael.el.getFilter = function() {\\r\\n return FRaphael.getFilter(this);\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for applying blur\\r\\n */\\r\\nRaphael.el.blur = function(stdDeviation) {\\r\\n if (stdDeviation == undefined) {\\r\\n stdDeviation = 3;\\r\\n }\\r\\n\\r\\n this.getFilter().addBlur(stdDeviation);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for applying a drop shadow\\r\\n */\\r\\nRaphael.el.shadow = function(dx, dy, blur, opacity, color) {\\r\\n if (dx == undefined) {\\r\\n dx = 3;\\r\\n }\\r\\n if (dy == undefined) {\\r\\n dy = 3;\\r\\n }\\r\\n if (blur == undefined) {\\r\\n blur = 3;\\r\\n }\\r\\n\\r\\n this.getFilter().createShadow(dx, dy, blur, opacity, color);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for applying lighting\\r\\n */\\r\\nRaphael.el.light = function(x, y, z, color, type) {\\r\\n if (x == undefined) {\\r\\n x = this.paper.width;\\r\\n }\\r\\n if (y == undefined) {\\r\\n y = 0;\\r\\n }\\r\\n if (z == undefined) {\\r\\n z = 20;\\r\\n }\\r\\n\\r\\n this.getFilter().addLighting(x, y, z, color, type);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for applying a colour shift\\r\\n */\\r\\nRaphael.el.colorShift = function(color, shift) {\\r\\n if (color == undefined) {\\r\\n color = \\\"black\\\";\\r\\n }\\r\\n if (shift == undefined) {\\r\\n shift = 0.5;\\r\\n }\\r\\n\\r\\n this.getFilter().addShiftToColor(color, shift);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for embossing\\r\\n */\\r\\nRaphael.el.emboss = function(height) {\\r\\n this.getFilter().createEmboss(height);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for desaturating\\r\\n */\\r\\nRaphael.el.desaturate = function(saturation) {\\r\\n this.getFilter().addDesaturate(saturation);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\\r\\n/**\\r\\n * A shorthand method for complete desaturation\\r\\n */\\r\\nRaphael.el.greyScale = function() {\\r\\n this.getFilter().addDesaturate(0);\\r\\n\\r\\n return this;\\r\\n};\\r\\n\"\n\n/***/ }),\n\n/***/ \"./node_modules/rgbcolor/index.js\":\n/*!****************************************!*\\\n !*** ./node_modules/rgbcolor/index.js ***!\n \\****************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n/*\n\tBased on rgbcolor.js by Stoyan Stefanov <sstoo@gmail.com>\n\thttp://www.phpied.com/rgb-color-parser-in-javascript/\n*/\n\nmodule.exports = function(color_string) {\n this.ok = false;\n this.alpha = 1.0;\n\n // strip any leading #\n if (color_string.charAt(0) == '#') { // remove # if any\n color_string = color_string.substr(1,6);\n }\n\n color_string = color_string.replace(/ /g,'');\n color_string = color_string.toLowerCase();\n\n // before getting into regexps, try simple matches\n // and overwrite the input\n var simple_colors = {\n aliceblue: 'f0f8ff',\n antiquewhite: 'faebd7',\n aqua: '00ffff',\n aquamarine: '7fffd4',\n azure: 'f0ffff',\n beige: 'f5f5dc',\n bisque: 'ffe4c4',\n black: '000000',\n blanchedalmond: 'ffebcd',\n blue: '0000ff',\n blueviolet: '8a2be2',\n brown: 'a52a2a',\n burlywood: 'deb887',\n cadetblue: '5f9ea0',\n chartreuse: '7fff00',\n chocolate: 'd2691e',\n coral: 'ff7f50',\n cornflowerblue: '6495ed',\n cornsilk: 'fff8dc',\n crimson: 'dc143c',\n cyan: '00ffff',\n darkblue: '00008b',\n darkcyan: '008b8b',\n darkgoldenrod: 'b8860b',\n darkgray: 'a9a9a9',\n darkgreen: '006400',\n darkkhaki: 'bdb76b',\n darkmagenta: '8b008b',\n darkolivegreen: '556b2f',\n darkorange: 'ff8c00',\n darkorchid: '9932cc',\n darkred: '8b0000',\n darksalmon: 'e9967a',\n darkseagreen: '8fbc8f',\n darkslateblue: '483d8b',\n darkslategray: '2f4f4f',\n darkturquoise: '00ced1',\n darkviolet: '9400d3',\n deeppink: 'ff1493',\n deepskyblue: '00bfff',\n dimgray: '696969',\n dodgerblue: '1e90ff',\n feldspar: 'd19275',\n firebrick: 'b22222',\n floralwhite: 'fffaf0',\n forestgreen: '228b22',\n fuchsia: 'ff00ff',\n gainsboro: 'dcdcdc',\n ghostwhite: 'f8f8ff',\n gold: 'ffd700',\n goldenrod: 'daa520',\n gray: '808080',\n green: '008000',\n greenyellow: 'adff2f',\n honeydew: 'f0fff0',\n hotpink: 'ff69b4',\n indianred : 'cd5c5c',\n indigo : '4b0082',\n ivory: 'fffff0',\n khaki: 'f0e68c',\n lavender: 'e6e6fa',\n lavenderblush: 'fff0f5',\n lawngreen: '7cfc00',\n lemonchiffon: 'fffacd',\n lightblue: 'add8e6',\n lightcoral: 'f08080',\n lightcyan: 'e0ffff',\n lightgoldenrodyellow: 'fafad2',\n lightgrey: 'd3d3d3',\n lightgreen: '90ee90',\n lightpink: 'ffb6c1',\n lightsalmon: 'ffa07a',\n lightseagreen: '20b2aa',\n lightskyblue: '87cefa',\n lightslateblue: '8470ff',\n lightslategray: '778899',\n lightsteelblue: 'b0c4de',\n lightyellow: 'ffffe0',\n lime: '00ff00',\n limegreen: '32cd32',\n linen: 'faf0e6',\n magenta: 'ff00ff',\n maroon: '800000',\n mediumaquamarine: '66cdaa',\n mediumblue: '0000cd',\n mediumorchid: 'ba55d3',\n mediumpurple: '9370d8',\n mediumseagreen: '3cb371',\n mediumslateblue: '7b68ee',\n mediumspringgreen: '00fa9a',\n mediumturquoise: '48d1cc',\n mediumvioletred: 'c71585',\n midnightblue: '191970',\n mintcream: 'f5fffa',\n mistyrose: 'ffe4e1',\n moccasin: 'ffe4b5',\n navajowhite: 'ffdead',\n navy: '000080',\n oldlace: 'fdf5e6',\n olive: '808000',\n olivedrab: '6b8e23',\n orange: 'ffa500',\n orangered: 'ff4500',\n orchid: 'da70d6',\n palegoldenrod: 'eee8aa',\n palegreen: '98fb98',\n paleturquoise: 'afeeee',\n palevioletred: 'd87093',\n papayawhip: 'ffefd5',\n peachpuff: 'ffdab9',\n peru: 'cd853f',\n pink: 'ffc0cb',\n plum: 'dda0dd',\n powderblue: 'b0e0e6',\n purple: '800080',\n red: 'ff0000',\n rosybrown: 'bc8f8f',\n royalblue: '4169e1',\n saddlebrown: '8b4513',\n salmon: 'fa8072',\n sandybrown: 'f4a460',\n seagreen: '2e8b57',\n seashell: 'fff5ee',\n sienna: 'a0522d',\n silver: 'c0c0c0',\n skyblue: '87ceeb',\n slateblue: '6a5acd',\n slategray: '708090',\n snow: 'fffafa',\n springgreen: '00ff7f',\n steelblue: '4682b4',\n tan: 'd2b48c',\n teal: '008080',\n thistle: 'd8bfd8',\n tomato: 'ff6347',\n turquoise: '40e0d0',\n violet: 'ee82ee',\n violetred: 'd02090',\n wheat: 'f5deb3',\n white: 'ffffff',\n whitesmoke: 'f5f5f5',\n yellow: 'ffff00',\n yellowgreen: '9acd32'\n };\n color_string = simple_colors[color_string] || color_string;\n // emd of simple type-in colors\n\n // array of color definition objects\n var color_defs = [\n {\n re: /^rgba\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*((?:\\d?\\.)?\\d)\\)$/,\n example: ['rgba(123, 234, 45, 0.8)', 'rgba(255,234,245,1.0)'],\n process: function (bits){\n return [\n parseInt(bits[1]),\n parseInt(bits[2]),\n parseInt(bits[3]),\n parseFloat(bits[4])\n ];\n }\n },\n {\n re: /^rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$/,\n example: ['rgb(123, 234, 45)', 'rgb(255,234,245)'],\n process: function (bits){\n return [\n parseInt(bits[1]),\n parseInt(bits[2]),\n parseInt(bits[3])\n ];\n }\n },\n {\n re: /^(\\w{2})(\\w{2})(\\w{2})$/,\n example: ['#00ff00', '336699'],\n process: function (bits){\n return [\n parseInt(bits[1], 16),\n parseInt(bits[2], 16),\n parseInt(bits[3], 16)\n ];\n }\n },\n {\n re: /^(\\w{1})(\\w{1})(\\w{1})$/,\n example: ['#fb0', 'f0f'],\n process: function (bits){\n return [\n parseInt(bits[1] + bits[1], 16),\n parseInt(bits[2] + bits[2], 16),\n parseInt(bits[3] + bits[3], 16)\n ];\n }\n }\n ];\n\n // search through the definitions to find a match\n for (var i = 0; i < color_defs.length; i++) {\n var re = color_defs[i].re;\n var processor = color_defs[i].process;\n var bits = re.exec(color_string);\n if (bits) {\n var channels = processor(bits);\n this.r = channels[0];\n this.g = channels[1];\n this.b = channels[2];\n if (channels.length > 3) {\n this.alpha = channels[3];\n }\n this.ok = true;\n }\n\n }\n\n // validate/cleanup values\n this.r = (this.r < 0 || isNaN(this.r)) ? 0 : ((this.r > 255) ? 255 : this.r);\n this.g = (this.g < 0 || isNaN(this.g)) ? 0 : ((this.g > 255) ? 255 : this.g);\n this.b = (this.b < 0 || isNaN(this.b)) ? 0 : ((this.b > 255) ? 255 : this.b);\n this.alpha = (this.alpha < 0) ? 0 : ((this.alpha > 1.0 || isNaN(this.alpha)) ? 1.0 : this.alpha);\n\n // some getters\n this.toRGB = function () {\n return 'rgb(' + this.r + ', ' + this.g + ', ' + this.b + ')';\n }\n this.toRGBA = function () {\n return 'rgba(' + this.r + ', ' + this.g + ', ' + this.b + ', ' + this.alpha + ')';\n }\n this.toHex = function () {\n var r = this.r.toString(16);\n var g = this.g.toString(16);\n var b = this.b.toString(16);\n if (r.length == 1) r = '0' + r;\n if (g.length == 1) g = '0' + g;\n if (b.length == 1) b = '0' + b;\n return '#' + r + g + b;\n }\n\n // help\n this.getHelpXML = function () {\n\n var examples = new Array();\n // add regexps\n for (var i = 0; i < color_defs.length; i++) {\n var example = color_defs[i].example;\n for (var j = 0; j < example.length; j++) {\n examples[examples.length] = example[j];\n }\n }\n // add type-in colors\n for (var sc in simple_colors) {\n examples[examples.length] = sc;\n }\n\n var xml = document.createElement('ul');\n xml.setAttribute('id', 'rgbcolor-examples');\n for (var i = 0; i < examples.length; i++) {\n try {\n var list_item = document.createElement('li');\n var list_color = new RGBColor(examples[i]);\n var example_div = document.createElement('div');\n example_div.style.cssText =\n 'margin: 3px; '\n + 'border: 1px solid black; '\n + 'background:' + list_color.toHex() + '; '\n + 'color:' + list_color.toHex()\n ;\n example_div.appendChild(document.createTextNode('test'));\n var list_item_value = document.createTextNode(\n ' ' + examples[i] + ' -> ' + list_color.toRGB() + ' -> ' + list_color.toHex()\n );\n list_item.appendChild(example_div);\n list_item.appendChild(list_item_value);\n xml.appendChild(list_item);\n\n } catch(e){}\n }\n return xml;\n\n }\n\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/script-loader/addScript.js\":\n/*!*************************************************!*\\\n !*** ./node_modules/script-loader/addScript.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\nmodule.exports = function(src) {\n\tfunction log(error) {\n\t\t(typeof console !== \"undefined\")\n\t\t&& (console.error || console.log)(\"[Script Loader]\", error);\n\t}\n\n\t// Check for IE =< 8\n\tfunction isIE() {\n\t\treturn typeof attachEvent !== \"undefined\" && typeof addEventListener === \"undefined\";\n\t}\n\n\ttry {\n\t\tif (typeof execScript !== \"undefined\" && isIE()) {\n\t\t\texecScript(src);\n\t\t} else if (typeof eval !== \"undefined\") {\n\t\t\teval.call(null, src);\n\t\t} else {\n\t\t\tlog(\"EvalError: No eval function available\");\n\t\t}\n\t} catch (error) {\n\t\tlog(error);\n\t}\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/shifty/dist/shifty.js\":\n/*!********************************************!*\\\n !*** ./node_modules/shifty/dist/shifty.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n/*! 2.3.1 */\n!function(t,e){ true?module.exports=e():undefined}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,\"a\",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"/assets/\",e(e.s=6)}([function(t,e,n){\"use strict\";(function(t){function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new j,n=e.tween(t);return n.tweenable=e,n}Object.defineProperty(e,\"__esModule\",{value:!0}),e.Tweenable=e.composeEasingObject=e.tweenProps=e.clone=e.each=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t};e.tween=o;var c=n(5),s=r(c),f=n(1),h=function(t){return t&&t.__esModule?t:{default:t}}(f),l=n(7),p=r(l),d=\"undefined\"!=typeof window?window:t,m=d.cancelAnimationFrame||d.webkitCancelAnimationFrame||d.oCancelAnimationFrame||d.msCancelAnimationFrame||d.mozCancelRequestAnimationFrame||d.clearTimeout,_=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.oRequestAnimationFrame||d.msRequestAnimationFrame||d.mozCancelRequestAnimationFrame&&d.mozRequestAnimationFrame||setTimeout,v=function(){},y=e.each=function(t,e){return Object.keys(t).forEach(e)},w=e.clone=function(t){return(0,h.default)({},t)},g=w(s),b=function(t,e,n,r){return t+(e-t)*n(r)},O=e.tweenProps=function(t,e,n,r,i,o,u){var a=t<o?0:(t-o)/i;return y(e,function(t){var i=u[t],o=\"function\"==typeof i?i:g[i];e[t]=b(n[t],r[t],o,a)}),e},M=e.composeEasingObject=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"linear\",n={},r=void 0===e?\"undefined\":a(e);return\"string\"===r||\"function\"===r?y(t,function(t){return n[t]=e}):y(t,function(t){return n[t]=n[t]||e[t]||\"linear\"}),n},j=e.Tweenable=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;i(this,t),this._currentState=e,this._configured=!1,this._scheduleFunction=_,void 0!==n&&this.setConfig(n)}return u(t,[{key:\"_applyFilter\",value:function(e){var n=this,r=t.filters,i=this._filterArgs;y(r,function(t){var o=r[t][e];void 0!==o&&o.apply(n,i)})}},{key:\"_timeoutHandler\",value:function(e){var n=this,r=arguments,i=this._currentState,o=this._delay,u=this._duration,a=this._step,c=this._targetState,s=this._timestamp,f=s+o+u,h=Math.min(e||t.now(),f),l=h>=f,p=u-(f-h);this.isPlaying()&&(l?(a(c,this._attachment,p),this.stop(!0)):(this._scheduleId=this._scheduleFunction.call(d,function(){return n._timeoutHandler.apply(n,r)},1e3/60),this._applyFilter(\"beforeTween\"),h<s+o?(h=1,u=1,s=1):s+=o,O(h,i,this._originalState,c,u,s,this._easing),this._applyFilter(\"afterTween\"),a(i,this._attachment,p)))}},{key:\"tween\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=this._attachment,r=this._configured;return this._isTweening?this:(void 0===e&&r||this.setConfig(e),this._timestamp=t.now(),this._start(this.get(),n),this.resume())}},{key:\"setConfig\",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._configured=!0,this._attachment=e.attachment,(0,h.default)(this,{_pausedAtTime:null,_scheduleId:null,_delay:e.delay||0,_start:e.start||v,_step:e.step||v,_duration:e.duration||500,_currentState:w(e.from||this.get())}),(0,h.default)(this,{_originalState:this.get(),_targetState:w(e.to||this.get())});var n=this._currentState;this._targetState=(0,h.default)({},n,this._targetState),this._easing=M(n,e.easing),this._filterArgs=[n,this._originalState,this._targetState,this._easing],this._applyFilter(\"tweenCreated\");var r=e.promise||Promise;return this._promise=new r(function(e,n){t._resolve=e,t._reject=n}),this._promise.catch(v),this}},{key:\"get\",value:function(){return w(this._currentState)}},{key:\"set\",value:function(t){this._currentState=t}},{key:\"pause\",value:function(){return this._pausedAtTime=t.now(),this._isPaused=!0,this}},{key:\"resume\",value:function(){return this._isPaused&&(this._timestamp+=t.now()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0,this._timeoutHandler(),this._promise}},{key:\"seek\",value:function(e){e=Math.max(e,0);var n=t.now();return this._timestamp+e===0?this:(this._timestamp=n-e,this.isPlaying()||(this._isTweening=!0,this._isPaused=!1,this._timeoutHandler(n),this.pause()),this)}},{key:\"stop\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._attachment,n=this._currentState,r=this._easing,i=this._originalState,o=this._targetState;return this._isTweening=!1,this._isPaused=!1,m(this._scheduleId),t?(this._applyFilter(\"beforeTween\"),O(1,n,i,o,1,0,r),this._applyFilter(\"afterTween\"),this._applyFilter(\"afterTweenEnd\"),this._resolve(n,e)):this._reject(n,e),this}},{key:\"isPlaying\",value:function(){return this._isTweening&&!this._isPaused}},{key:\"setScheduleFunction\",value:function(t){this._scheduleFunction=t}},{key:\"dispose\",value:function(){var t=this;y(this,function(e){return delete t[e]})}}]),t}();(0,h.default)(j,{formulas:g,filters:{token:p},now:Date.now||function(t){return+new Date}})}).call(e,n(4))},function(t,e,n){\"use strict\";function r(t){if(null===t||void 0===t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e[\"_\"+String.fromCharCode(n)]=n;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(\"\"))return!1;var r={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(t){r[t]=t}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},r)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,c=r(t),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var f in n)o.call(n,f)&&(c[f]=n[f]);if(i){a=i(n);for(var h=0;h<a.length;h++)u.call(n,a[h])&&(c[a[h]]=n[a[h]])}}return c}},function(t,e,n){\"use strict\";function r(t,e,n,r,i,o){var u=0,a=0,c=0,s=0,f=0,h=0,l=function(t){return((u*t+a)*t+c)*t},p=function(t){return((s*t+f)*t+h)*t},d=function(t){return(3*u*t+2*a)*t+c},m=function(t){return t>=0?t:0-t},_=function(t,e){var n=void 0,r=void 0,i=void 0,o=void 0,u=void 0,a=void 0;for(i=t,a=0;a<8;a++){if(o=l(i)-t,m(o)<e)return i;if(u=d(i),m(u)<1e-6)break;i-=o/u}if(n=0,r=1,(i=t)<n)return n;if(i>r)return r;for(;n<r;){if(o=l(i),m(o-t)<e)return i;t>o?n=i:r=i,i=.5*(r-n)+n}return i};return c=3*e,a=3*(r-e)-c,u=1-c-a,h=3*n,f=3*(i-n)-h,s=1-h-f,function(t,e){return p(_(t,e))}(t,function(t){return 1/(200*t)}(o))}Object.defineProperty(e,\"__esModule\",{value:!0}),e.unsetBezierFunction=e.setBezierFunction=void 0;var i=n(0),o=n(1),u=function(t){return t&&t.__esModule?t:{default:t}}(o),a=function(t,e,n,i){return function(o){return r(o,t,e,n,i,1)}};e.setBezierFunction=function(t,e,n,r,o){return i.Tweenable.formulas[t]=(0,u.default)(a(e,n,r,o),{displayName:t,x1:e,y1:n,x2:r,y2:o})},e.unsetBezierFunction=function(t){return delete i.Tweenable.formulas[t]}},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.interpolate=void 0;var r=n(0),i=new r.Tweenable;i._filterArgs=[];e.interpolate=function(t,e,n,o){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=(0,r.clone)(t),c=(0,r.composeEasingObject)(t,o);i.set({}),i._filterArgs=[a,t,e,c],i._applyFilter(\"tweenCreated\"),i._applyFilter(\"beforeTween\");var s=(0,r.tweenProps)(n,a,t,e,1,u,c);return i._applyFilter(\"afterTween\"),s}},function(t,e,n){\"use strict\";var r,i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t};r=function(){return this}();try{r=r||Function(\"return this\")()||(0,eval)(\"this\")}catch(t){\"object\"===(\"undefined\"==typeof window?\"undefined\":i(window))&&(r=window)}t.exports=r},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});e.linear=function(t){return t},e.easeInQuad=function(t){return Math.pow(t,2)},e.easeOutQuad=function(t){return-(Math.pow(t-1,2)-1)},e.easeInOutQuad=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},e.easeInCubic=function(t){return Math.pow(t,3)},e.easeOutCubic=function(t){return Math.pow(t-1,3)+1},e.easeInOutCubic=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},e.easeInQuart=function(t){return Math.pow(t,4)},e.easeOutQuart=function(t){return-(Math.pow(t-1,4)-1)},e.easeInOutQuart=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},e.easeInQuint=function(t){return Math.pow(t,5)},e.easeOutQuint=function(t){return Math.pow(t-1,5)+1},e.easeInOutQuint=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},e.easeInSine=function(t){return 1-Math.cos(t*(Math.PI/2))},e.easeOutSine=function(t){return Math.sin(t*(Math.PI/2))},e.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},e.easeInExpo=function(t){return 0===t?0:Math.pow(2,10*(t-1))},e.easeOutExpo=function(t){return 1===t?1:1-Math.pow(2,-10*t)},e.easeInOutExpo=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},e.easeInCirc=function(t){return-(Math.sqrt(1-t*t)-1)},e.easeOutCirc=function(t){return Math.sqrt(1-Math.pow(t-1,2))},e.easeInOutCirc=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},e.easeOutBounce=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},e.easeInBack=function(t){var e=1.70158;return t*t*((e+1)*t-e)},e.easeOutBack=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},e.easeInOutBack=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},e.elastic=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},e.swingFromTo=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},e.swingFrom=function(t){var e=1.70158;return t*t*((e+1)*t-e)},e.swingTo=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},e.bounce=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},e.bouncePast=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},e.easeFromTo=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},e.easeFrom=function(t){return Math.pow(t,4)},e.easeTo=function(t){return Math.pow(t,.25)}},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(0);Object.defineProperty(e,\"Tweenable\",{enumerable:!0,get:function(){return r.Tweenable}}),Object.defineProperty(e,\"tween\",{enumerable:!0,get:function(){return r.tween}});var i=n(3);Object.defineProperty(e,\"interpolate\",{enumerable:!0,get:function(){return i.interpolate}});var o=n(2);Object.defineProperty(e,\"setBezierFunction\",{enumerable:!0,get:function(){return o.setBezierFunction}}),Object.defineProperty(e,\"unsetBezierFunction\",{enumerable:!0,get:function(){return o.unsetBezierFunction}})},function(t,e,n){\"use strict\";function r(t){return parseInt(t,16)}function i(t,e,n){[t,e,n].forEach(_),this._tokenData=g(t)}function o(t,e,n,r){var i=this._tokenData;P(r,i),[t,e,n].forEach(function(t){return b(t,i)})}function u(t,e,n,r){var i=this._tokenData;[t,e,n].forEach(function(t){return F(t,i)}),S(r,i)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.tweenCreated=i,e.beforeTween=o,e.afterTween=u;var a=n(0),c=function(){var t=/[0-9.\\-]+/g.source,e=/,\\s*/.source;return new RegExp(\"rgb\\\\(\"+t+e+t+e+t+\"\\\\)\",\"g\")}(),s=/#([0-9]|[a-f]){3,6}/gi,f=function(t,e){return t.map(function(t,n){return\"_\"+e+\"_\"+n})},h=function(t){var e=t.match(/([^\\-0-9\\.]+)/g);return e?(1===e.length||t.charAt(0).match(/(\\d|\\-|\\.)/))&&e.unshift(\"\"):e=[\"\",\"\"],e.join(\"VAL\")},l=function(t){return t=t.replace(/#/,\"\"),3===t.length&&(t=t.split(\"\"),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),[r(t.substr(0,2)),r(t.substr(2,2)),r(t.substr(4,2))]},p=function(t){return\"rgb(\"+l(t).join(\",\")+\")\"},d=function(t,e,n){var r=e.match(t),i=e.replace(t,\"VAL\");return r&&r.forEach(function(t){return i=i.replace(\"VAL\",n(t))}),i},m=function(t){return d(s,t,p)},_=function(t){(0,a.each)(t,function(e){var n=t[e];\"string\"==typeof n&&n.match(s)&&(t[e]=m(n))})},v=function(t){var e=t.match(/[0-9.\\-]+/g).map(Math.floor);return\"\"+t.match(/^.*\\(/)[0]+e.join(\",\")+\")\"},y=function(t){return d(c,t,v)},w=function(t){return t.match(/[0-9.\\-]+/g)},g=function(t){var e={};return(0,a.each)(t,function(n){var r=t[n];\"string\"==typeof r&&(e[n]={formatString:h(r),chunkNames:f(w(r),n)})}),e},b=function(t,e){(0,a.each)(e,function(n){w(t[n]).forEach(function(r,i){return t[e[n].chunkNames[i]]=+r}),delete t[n]})},O=function(t,e){var n={};return e.forEach(function(e){n[e]=t[e],delete t[e]}),n},M=function(t,e){return e.map(function(e){return t[e]})},j=function(t,e){return e.forEach(function(e){return t=t.replace(\"VAL\",+e.toFixed(4))}),t},F=function(t,e){(0,a.each)(e,function(n){var r=e[n],i=r.chunkNames,o=r.formatString,u=j(o,M(O(t,i),i));t[n]=y(u)})},P=function(t,e){(0,a.each)(e,function(n){var r=e[n].chunkNames,i=t[n];\"string\"==typeof i?function(){var e=i.split(\" \"),n=e[e.length-1];r.forEach(function(r,i){return t[r]=e[i]||n})}():r.forEach(function(e){return t[e]=i}),delete t[n]})},S=function(t,e){(0,a.each)(e,function(n){var r=e[n].chunkNames,i=(r.length,t[r[0]]);t[n]=\"string\"==typeof i?r.map(function(e){var n=t[e];return delete t[e],n}).join(\" \"):i})}}])});\n//# sourceMappingURL=shifty.js.map\n\n/***/ }),\n\n/***/ \"./node_modules/stackblur/index.js\":\n/*!*****************************************!*\\\n !*** ./node_modules/stackblur/index.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n/*\n\nStackBlur - a fast almost Gaussian Blur For Canvas\n\nVersion: \t0.5\nAuthor:\t\tMario Klingemann\nContact: \tmario@quasimondo.com\nWebsite:\thttp://www.quasimondo.com/StackBlurForCanvas\nTwitter:\t@quasimondo\n\nIn case you find this class useful - especially in commercial projects -\nI am not totally unhappy for a small donation to my PayPal account\nmario@quasimondo.de\n\nOr support me on flattr: \nhttps://flattr.com/thing/72791/StackBlur-a-fast-almost-Gaussian-Blur-Effect-for-CanvasJavascript\n\nCopyright (c) 2010 Mario Klingemann\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n*/\n\nvar mul_table = [\n 512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,\n 454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,\n 482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,\n 437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,\n 497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,\n 320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,\n 446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,\n 329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,\n 505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,\n 399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,\n 324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,\n 268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,\n 451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,\n 385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,\n 332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,\n 289,287,285,282,280,278,275,273,271,269,267,265,263,261,259];\n \n \nvar shg_table = [\n\t 9, 11, 12, 13, 13, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, \n\t\t17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, \n\t\t19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20,\n\t\t20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21,\n\t\t21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,\n\t\t21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, \n\t\t22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,\n\t\t22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, \n\t\t23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,\n\t\t23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,\n\t\t23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, \n\t\t23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, \n\t\t24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,\n\t\t24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,\n\t\t24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,\n\t\t24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24 ];\n\nfunction blur( pixels, width, height, radius )\n{\n\tif ( isNaN(radius) || radius < 1 ) return;\n\tradius |= 0;\n\n\tvar x, y, i, p, yp, yi, yw, r_sum, g_sum, b_sum, a_sum, \n\tr_out_sum, g_out_sum, b_out_sum, a_out_sum,\n\tr_in_sum, g_in_sum, b_in_sum, a_in_sum, \n\tpr, pg, pb, pa, rbs;\n\t\t\t\n\tvar div = radius + radius + 1;\n\tvar w4 = width << 2;\n\tvar widthMinus1 = width - 1;\n\tvar heightMinus1 = height - 1;\n\tvar radiusPlus1 = radius + 1;\n\tvar sumFactor = radiusPlus1 * ( radiusPlus1 + 1 ) / 2;\n\t\n\tvar stackStart = new BlurStack();\n\tvar stack = stackStart;\n\tfor ( i = 1; i < div; i++ )\n\t{\n\t\tstack = stack.next = new BlurStack();\n\t\tif ( i == radiusPlus1 ) var stackEnd = stack;\n\t}\n\tstack.next = stackStart;\n\tvar stackIn = null;\n\tvar stackOut = null;\n\t\n\tyw = yi = 0;\n\t\n\tvar mul_sum = mul_table[radius];\n\tvar shg_sum = shg_table[radius];\n\t\n\tfor ( y = 0; y < height; y++ )\n\t{\n\t\tr_in_sum = g_in_sum = b_in_sum = a_in_sum = r_sum = g_sum = b_sum = a_sum = 0;\n\t\t\n\t\tr_out_sum = radiusPlus1 * ( pr = pixels[yi] );\n\t\tg_out_sum = radiusPlus1 * ( pg = pixels[yi+1] );\n\t\tb_out_sum = radiusPlus1 * ( pb = pixels[yi+2] );\n\t\ta_out_sum = radiusPlus1 * ( pa = pixels[yi+3] );\n\t\t\n\t\tr_sum += sumFactor * pr;\n\t\tg_sum += sumFactor * pg;\n\t\tb_sum += sumFactor * pb;\n\t\ta_sum += sumFactor * pa;\n\t\t\n\t\tstack = stackStart;\n\t\t\n\t\tfor( i = 0; i < radiusPlus1; i++ )\n\t\t{\n\t\t\tstack.r = pr;\n\t\t\tstack.g = pg;\n\t\t\tstack.b = pb;\n\t\t\tstack.a = pa;\n\t\t\tstack = stack.next;\n\t\t}\n\t\t\n\t\tfor( i = 1; i < radiusPlus1; i++ )\n\t\t{\n\t\t\tp = yi + (( widthMinus1 < i ? widthMinus1 : i ) << 2 );\n\t\t\tr_sum += ( stack.r = ( pr = pixels[p])) * ( rbs = radiusPlus1 - i );\n\t\t\tg_sum += ( stack.g = ( pg = pixels[p+1])) * rbs;\n\t\t\tb_sum += ( stack.b = ( pb = pixels[p+2])) * rbs;\n\t\t\ta_sum += ( stack.a = ( pa = pixels[p+3])) * rbs;\n\t\t\t\n\t\t\tr_in_sum += pr;\n\t\t\tg_in_sum += pg;\n\t\t\tb_in_sum += pb;\n\t\t\ta_in_sum += pa;\n\t\t\t\n\t\t\tstack = stack.next;\n\t\t}\n\t\t\n\t\t\n\t\tstackIn = stackStart;\n\t\tstackOut = stackEnd;\n\t\tfor ( x = 0; x < width; x++ )\n\t\t{\n\t\t\tpixels[yi+3] = pa = (a_sum * mul_sum) >> shg_sum;\n\t\t\tif ( pa != 0 )\n\t\t\t{\n\t\t\t\tpa = 255 / pa;\n\t\t\t\tpixels[yi] = ((r_sum * mul_sum) >> shg_sum) * pa;\n\t\t\t\tpixels[yi+1] = ((g_sum * mul_sum) >> shg_sum) * pa;\n\t\t\t\tpixels[yi+2] = ((b_sum * mul_sum) >> shg_sum) * pa;\n\t\t\t} else {\n\t\t\t\tpixels[yi] = pixels[yi+1] = pixels[yi+2] = 0;\n\t\t\t}\n\t\t\t\n\t\t\tr_sum -= r_out_sum;\n\t\t\tg_sum -= g_out_sum;\n\t\t\tb_sum -= b_out_sum;\n\t\t\ta_sum -= a_out_sum;\n\t\t\t\n\t\t\tr_out_sum -= stackIn.r;\n\t\t\tg_out_sum -= stackIn.g;\n\t\t\tb_out_sum -= stackIn.b;\n\t\t\ta_out_sum -= stackIn.a;\n\t\t\t\n\t\t\tp = ( yw + ( ( p = x + radius + 1 ) < widthMinus1 ? p : widthMinus1 ) ) << 2;\n\t\t\t\n\t\t\tr_in_sum += ( stackIn.r = pixels[p]);\n\t\t\tg_in_sum += ( stackIn.g = pixels[p+1]);\n\t\t\tb_in_sum += ( stackIn.b = pixels[p+2]);\n\t\t\ta_in_sum += ( stackIn.a = pixels[p+3]);\n\t\t\t\n\t\t\tr_sum += r_in_sum;\n\t\t\tg_sum += g_in_sum;\n\t\t\tb_sum += b_in_sum;\n\t\t\ta_sum += a_in_sum;\n\t\t\t\n\t\t\tstackIn = stackIn.next;\n\t\t\t\n\t\t\tr_out_sum += ( pr = stackOut.r );\n\t\t\tg_out_sum += ( pg = stackOut.g );\n\t\t\tb_out_sum += ( pb = stackOut.b );\n\t\t\ta_out_sum += ( pa = stackOut.a );\n\t\t\t\n\t\t\tr_in_sum -= pr;\n\t\t\tg_in_sum -= pg;\n\t\t\tb_in_sum -= pb;\n\t\t\ta_in_sum -= pa;\n\t\t\t\n\t\t\tstackOut = stackOut.next;\n\n\t\t\tyi += 4;\n\t\t}\n\t\tyw += width;\n\t}\n\n\t\n\tfor ( x = 0; x < width; x++ )\n\t{\n\t\tg_in_sum = b_in_sum = a_in_sum = r_in_sum = g_sum = b_sum = a_sum = r_sum = 0;\n\t\t\n\t\tyi = x << 2;\n\t\tr_out_sum = radiusPlus1 * ( pr = pixels[yi]);\n\t\tg_out_sum = radiusPlus1 * ( pg = pixels[yi+1]);\n\t\tb_out_sum = radiusPlus1 * ( pb = pixels[yi+2]);\n\t\ta_out_sum = radiusPlus1 * ( pa = pixels[yi+3]);\n\t\t\n\t\tr_sum += sumFactor * pr;\n\t\tg_sum += sumFactor * pg;\n\t\tb_sum += sumFactor * pb;\n\t\ta_sum += sumFactor * pa;\n\t\t\n\t\tstack = stackStart;\n\t\t\n\t\tfor( i = 0; i < radiusPlus1; i++ )\n\t\t{\n\t\t\tstack.r = pr;\n\t\t\tstack.g = pg;\n\t\t\tstack.b = pb;\n\t\t\tstack.a = pa;\n\t\t\tstack = stack.next;\n\t\t}\n\t\t\n\t\typ = width;\n\t\t\n\t\tfor( i = 1; i <= radius; i++ )\n\t\t{\n\t\t\tyi = ( yp + x ) << 2;\n\t\t\t\n\t\t\tr_sum += ( stack.r = ( pr = pixels[yi])) * ( rbs = radiusPlus1 - i );\n\t\t\tg_sum += ( stack.g = ( pg = pixels[yi+1])) * rbs;\n\t\t\tb_sum += ( stack.b = ( pb = pixels[yi+2])) * rbs;\n\t\t\ta_sum += ( stack.a = ( pa = pixels[yi+3])) * rbs;\n\t\t \n\t\t\tr_in_sum += pr;\n\t\t\tg_in_sum += pg;\n\t\t\tb_in_sum += pb;\n\t\t\ta_in_sum += pa;\n\t\t\t\n\t\t\tstack = stack.next;\n\t\t\n\t\t\tif( i < heightMinus1 )\n\t\t\t{\n\t\t\t\typ += width;\n\t\t\t}\n\t\t}\n\t\t\n\t\tyi = x;\n\t\tstackIn = stackStart;\n\t\tstackOut = stackEnd;\n\t\tfor ( y = 0; y < height; y++ )\n\t\t{\n\t\t\tp = yi << 2;\n\t\t\tpixels[p+3] = pa = (a_sum * mul_sum) >> shg_sum;\n\t\t\tif ( pa > 0 )\n\t\t\t{\n\t\t\t\tpa = 255 / pa;\n\t\t\t\tpixels[p] = ((r_sum * mul_sum) >> shg_sum ) * pa;\n\t\t\t\tpixels[p+1] = ((g_sum * mul_sum) >> shg_sum ) * pa;\n\t\t\t\tpixels[p+2] = ((b_sum * mul_sum) >> shg_sum ) * pa;\n\t\t\t} else {\n\t\t\t\tpixels[p] = pixels[p+1] = pixels[p+2] = 0;\n\t\t\t}\n\t\t\t\n\t\t\tr_sum -= r_out_sum;\n\t\t\tg_sum -= g_out_sum;\n\t\t\tb_sum -= b_out_sum;\n\t\t\ta_sum -= a_out_sum;\n\t\t \n\t\t\tr_out_sum -= stackIn.r;\n\t\t\tg_out_sum -= stackIn.g;\n\t\t\tb_out_sum -= stackIn.b;\n\t\t\ta_out_sum -= stackIn.a;\n\t\t\t\n\t\t\tp = ( x + (( ( p = y + radiusPlus1) < heightMinus1 ? p : heightMinus1 ) * width )) << 2;\n\t\t\t\n\t\t\tr_sum += ( r_in_sum += ( stackIn.r = pixels[p]));\n\t\t\tg_sum += ( g_in_sum += ( stackIn.g = pixels[p+1]));\n\t\t\tb_sum += ( b_in_sum += ( stackIn.b = pixels[p+2]));\n\t\t\ta_sum += ( a_in_sum += ( stackIn.a = pixels[p+3]));\n\t\t \n\t\t\tstackIn = stackIn.next;\n\t\t\t\n\t\t\tr_out_sum += ( pr = stackOut.r );\n\t\t\tg_out_sum += ( pg = stackOut.g );\n\t\t\tb_out_sum += ( pb = stackOut.b );\n\t\t\ta_out_sum += ( pa = stackOut.a );\n\t\t\t\n\t\t\tr_in_sum -= pr;\n\t\t\tg_in_sum -= pg;\n\t\t\tb_in_sum -= pb;\n\t\t\ta_in_sum -= pa;\n\t\t\t\n\t\t\tstackOut = stackOut.next;\n\t\t\t\n\t\t\tyi += width;\n\t\t}\n\t}\n}\n\nfunction BlurStack()\n{\n\tthis.r = 0;\n\tthis.g = 0;\n\tthis.b = 0;\n\tthis.a = 0;\n\tthis.next = null;\n}\n\nmodule.exports = blur;\n\n/***/ }),\n\n/***/ \"./node_modules/style-loader/lib/addStyles.js\":\n/*!****************************************************!*\\\n !*** ./node_modules/style-loader/lib/addStyles.js ***!\n \\****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n\nvar stylesInDom = {};\n\nvar\tmemoize = function (fn) {\n\tvar memo;\n\n\treturn function () {\n\t\tif (typeof memo === \"undefined\") memo = fn.apply(this, arguments);\n\t\treturn memo;\n\t};\n};\n\nvar isOldIE = memoize(function () {\n\t// Test for IE <= 9 as proposed by Browserhacks\n\t// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n\t// Tests for existence of standard globals is to allow style-loader\n\t// to operate correctly into non-standard environments\n\t// @see https://github.com/webpack-contrib/style-loader/issues/177\n\treturn window && document && document.all && !window.atob;\n});\n\nvar getTarget = function (target) {\n return document.querySelector(target);\n};\n\nvar getElement = (function (fn) {\n\tvar memo = {};\n\n\treturn function(target) {\n // If passing function in options, then use it for resolve \"head\" element.\n // Useful for Shadow Root style i.e\n // {\n // insertInto: function () { return document.querySelector(\"#foo\").shadowRoot }\n // }\n if (typeof target === 'function') {\n return target();\n }\n if (typeof memo[target] === \"undefined\") {\n\t\t\tvar styleTarget = getTarget.call(this, target);\n\t\t\t// Special case to return head of iframe instead of iframe itself\n\t\t\tif (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n\t\t\t\ttry {\n\t\t\t\t\t// This will throw an exception if access to iframe is blocked\n\t\t\t\t\t// due to cross-origin restrictions\n\t\t\t\t\tstyleTarget = styleTarget.contentDocument.head;\n\t\t\t\t} catch(e) {\n\t\t\t\t\tstyleTarget = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmemo[target] = styleTarget;\n\t\t}\n\t\treturn memo[target]\n\t};\n})();\n\nvar singleton = null;\nvar\tsingletonCounter = 0;\nvar\tstylesInsertedAtTop = [];\n\nvar\tfixUrls = __webpack_require__(/*! ./urls */ \"./node_modules/style-loader/lib/urls.js\");\n\nmodule.exports = function(list, options) {\n\tif (typeof DEBUG !== \"undefined\" && DEBUG) {\n\t\tif (typeof document !== \"object\") throw new Error(\"The style-loader cannot be used in a non-browser environment\");\n\t}\n\n\toptions = options || {};\n\n\toptions.attrs = typeof options.attrs === \"object\" ? options.attrs : {};\n\n\t// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n\t// tags it will allow on a page\n\tif (!options.singleton && typeof options.singleton !== \"boolean\") options.singleton = isOldIE();\n\n\t// By default, add <style> tags to the <head> element\n if (!options.insertInto) options.insertInto = \"head\";\n\n\t// By default, add <style> tags to the bottom of the target\n\tif (!options.insertAt) options.insertAt = \"bottom\";\n\n\tvar styles = listToStyles(list, options);\n\n\taddStylesToDom(styles, options);\n\n\treturn function update (newList) {\n\t\tvar mayRemove = [];\n\n\t\tfor (var i = 0; i < styles.length; i++) {\n\t\t\tvar item = styles[i];\n\t\t\tvar domStyle = stylesInDom[item.id];\n\n\t\t\tdomStyle.refs--;\n\t\t\tmayRemove.push(domStyle);\n\t\t}\n\n\t\tif(newList) {\n\t\t\tvar newStyles = listToStyles(newList, options);\n\t\t\taddStylesToDom(newStyles, options);\n\t\t}\n\n\t\tfor (var i = 0; i < mayRemove.length; i++) {\n\t\t\tvar domStyle = mayRemove[i];\n\n\t\t\tif(domStyle.refs === 0) {\n\t\t\t\tfor (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();\n\n\t\t\t\tdelete stylesInDom[domStyle.id];\n\t\t\t}\n\t\t}\n\t};\n};\n\nfunction addStylesToDom (styles, options) {\n\tfor (var i = 0; i < styles.length; i++) {\n\t\tvar item = styles[i];\n\t\tvar domStyle = stylesInDom[item.id];\n\n\t\tif(domStyle) {\n\t\t\tdomStyle.refs++;\n\n\t\t\tfor(var j = 0; j < domStyle.parts.length; j++) {\n\t\t\t\tdomStyle.parts[j](item.parts[j]);\n\t\t\t}\n\n\t\t\tfor(; j < item.parts.length; j++) {\n\t\t\t\tdomStyle.parts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\t\t} else {\n\t\t\tvar parts = [];\n\n\t\t\tfor(var j = 0; j < item.parts.length; j++) {\n\t\t\t\tparts.push(addStyle(item.parts[j], options));\n\t\t\t}\n\n\t\t\tstylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};\n\t\t}\n\t}\n}\n\nfunction listToStyles (list, options) {\n\tvar styles = [];\n\tvar newStyles = {};\n\n\tfor (var i = 0; i < list.length; i++) {\n\t\tvar item = list[i];\n\t\tvar id = options.base ? item[0] + options.base : item[0];\n\t\tvar css = item[1];\n\t\tvar media = item[2];\n\t\tvar sourceMap = item[3];\n\t\tvar part = {css: css, media: media, sourceMap: sourceMap};\n\n\t\tif(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});\n\t\telse newStyles[id].parts.push(part);\n\t}\n\n\treturn styles;\n}\n\nfunction insertStyleElement (options, style) {\n\tvar target = getElement(options.insertInto)\n\n\tif (!target) {\n\t\tthrow new Error(\"Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.\");\n\t}\n\n\tvar lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];\n\n\tif (options.insertAt === \"top\") {\n\t\tif (!lastStyleElementInsertedAtTop) {\n\t\t\ttarget.insertBefore(style, target.firstChild);\n\t\t} else if (lastStyleElementInsertedAtTop.nextSibling) {\n\t\t\ttarget.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);\n\t\t} else {\n\t\t\ttarget.appendChild(style);\n\t\t}\n\t\tstylesInsertedAtTop.push(style);\n\t} else if (options.insertAt === \"bottom\") {\n\t\ttarget.appendChild(style);\n\t} else if (typeof options.insertAt === \"object\" && options.insertAt.before) {\n\t\tvar nextSibling = getElement(options.insertInto + \" \" + options.insertAt.before);\n\t\ttarget.insertBefore(style, nextSibling);\n\t} else {\n\t\tthrow new Error(\"[Style Loader]\\n\\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\\n Must be 'top', 'bottom', or Object.\\n (https://github.com/webpack-contrib/style-loader#insertat)\\n\");\n\t}\n}\n\nfunction removeStyleElement (style) {\n\tif (style.parentNode === null) return false;\n\tstyle.parentNode.removeChild(style);\n\n\tvar idx = stylesInsertedAtTop.indexOf(style);\n\tif(idx >= 0) {\n\t\tstylesInsertedAtTop.splice(idx, 1);\n\t}\n}\n\nfunction createStyleElement (options) {\n\tvar style = document.createElement(\"style\");\n\n\tif(options.attrs.type === undefined) {\n\t\toptions.attrs.type = \"text/css\";\n\t}\n\n\taddAttrs(style, options.attrs);\n\tinsertStyleElement(options, style);\n\n\treturn style;\n}\n\nfunction createLinkElement (options) {\n\tvar link = document.createElement(\"link\");\n\n\tif(options.attrs.type === undefined) {\n\t\toptions.attrs.type = \"text/css\";\n\t}\n\toptions.attrs.rel = \"stylesheet\";\n\n\taddAttrs(link, options.attrs);\n\tinsertStyleElement(options, link);\n\n\treturn link;\n}\n\nfunction addAttrs (el, attrs) {\n\tObject.keys(attrs).forEach(function (key) {\n\t\tel.setAttribute(key, attrs[key]);\n\t});\n}\n\nfunction addStyle (obj, options) {\n\tvar style, update, remove, result;\n\n\t// If a transform function was defined, run it on the css\n\tif (options.transform && obj.css) {\n\t result = options.transform(obj.css);\n\n\t if (result) {\n\t \t// If transform returns a value, use that instead of the original css.\n\t \t// This allows running runtime transformations on the css.\n\t \tobj.css = result;\n\t } else {\n\t \t// If the transform function returns a falsy value, don't add this css.\n\t \t// This allows conditional loading of css\n\t \treturn function() {\n\t \t\t// noop\n\t \t};\n\t }\n\t}\n\n\tif (options.singleton) {\n\t\tvar styleIndex = singletonCounter++;\n\n\t\tstyle = singleton || (singleton = createStyleElement(options));\n\n\t\tupdate = applyToSingletonTag.bind(null, style, styleIndex, false);\n\t\tremove = applyToSingletonTag.bind(null, style, styleIndex, true);\n\n\t} else if (\n\t\tobj.sourceMap &&\n\t\ttypeof URL === \"function\" &&\n\t\ttypeof URL.createObjectURL === \"function\" &&\n\t\ttypeof URL.revokeObjectURL === \"function\" &&\n\t\ttypeof Blob === \"function\" &&\n\t\ttypeof btoa === \"function\"\n\t) {\n\t\tstyle = createLinkElement(options);\n\t\tupdate = updateLink.bind(null, style, options);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\n\t\t\tif(style.href) URL.revokeObjectURL(style.href);\n\t\t};\n\t} else {\n\t\tstyle = createStyleElement(options);\n\t\tupdate = applyToTag.bind(null, style);\n\t\tremove = function () {\n\t\t\tremoveStyleElement(style);\n\t\t};\n\t}\n\n\tupdate(obj);\n\n\treturn function updateStyle (newObj) {\n\t\tif (newObj) {\n\t\t\tif (\n\t\t\t\tnewObj.css === obj.css &&\n\t\t\t\tnewObj.media === obj.media &&\n\t\t\t\tnewObj.sourceMap === obj.sourceMap\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tupdate(obj = newObj);\n\t\t} else {\n\t\t\tremove();\n\t\t}\n\t};\n}\n\nvar replaceText = (function () {\n\tvar textStore = [];\n\n\treturn function (index, replacement) {\n\t\ttextStore[index] = replacement;\n\n\t\treturn textStore.filter(Boolean).join('\\n');\n\t};\n})();\n\nfunction applyToSingletonTag (style, index, remove, obj) {\n\tvar css = remove ? \"\" : obj.css;\n\n\tif (style.styleSheet) {\n\t\tstyle.styleSheet.cssText = replaceText(index, css);\n\t} else {\n\t\tvar cssNode = document.createTextNode(css);\n\t\tvar childNodes = style.childNodes;\n\n\t\tif (childNodes[index]) style.removeChild(childNodes[index]);\n\n\t\tif (childNodes.length) {\n\t\t\tstyle.insertBefore(cssNode, childNodes[index]);\n\t\t} else {\n\t\t\tstyle.appendChild(cssNode);\n\t\t}\n\t}\n}\n\nfunction applyToTag (style, obj) {\n\tvar css = obj.css;\n\tvar media = obj.media;\n\n\tif(media) {\n\t\tstyle.setAttribute(\"media\", media)\n\t}\n\n\tif(style.styleSheet) {\n\t\tstyle.styleSheet.cssText = css;\n\t} else {\n\t\twhile(style.firstChild) {\n\t\t\tstyle.removeChild(style.firstChild);\n\t\t}\n\n\t\tstyle.appendChild(document.createTextNode(css));\n\t}\n}\n\nfunction updateLink (link, options, obj) {\n\tvar css = obj.css;\n\tvar sourceMap = obj.sourceMap;\n\n\t/*\n\t\tIf convertToAbsoluteUrls isn't defined, but sourcemaps are enabled\n\t\tand there is no publicPath defined then lets turn convertToAbsoluteUrls\n\t\ton by default. Otherwise default to the convertToAbsoluteUrls option\n\t\tdirectly\n\t*/\n\tvar autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;\n\n\tif (options.convertToAbsoluteUrls || autoFixUrls) {\n\t\tcss = fixUrls(css);\n\t}\n\n\tif (sourceMap) {\n\t\t// http://stackoverflow.com/a/26603875\n\t\tcss += \"\\n/*# sourceMappingURL=data:application/json;base64,\" + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + \" */\";\n\t}\n\n\tvar blob = new Blob([css], { type: \"text/css\" });\n\n\tvar oldSrc = link.href;\n\n\tlink.href = URL.createObjectURL(blob);\n\n\tif(oldSrc) URL.revokeObjectURL(oldSrc);\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/style-loader/lib/urls.js\":\n/*!***********************************************!*\\\n !*** ./node_modules/style-loader/lib/urls.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n\n/**\n * When source maps are enabled, `style-loader` uses a link element with a data-uri to\n * embed the css on the page. This breaks all relative urls because now they are relative to a\n * bundle instead of the current page.\n *\n * One solution is to only use full urls, but that may be impossible.\n *\n * Instead, this function \"fixes\" the relative urls to be absolute according to the current page location.\n *\n * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.\n *\n */\n\nmodule.exports = function (css) {\n // get current location\n var location = typeof window !== \"undefined\" && window.location;\n\n if (!location) {\n throw new Error(\"fixUrls requires window.location\");\n }\n\n\t// blank or null?\n\tif (!css || typeof css !== \"string\") {\n\t return css;\n }\n\n var baseUrl = location.protocol + \"//\" + location.host;\n var currentDir = baseUrl + location.pathname.replace(/\\/[^\\/]*$/, \"/\");\n\n\t// convert each url(...)\n\t/*\n\tThis regular expression is just a way to recursively match brackets within\n\ta string.\n\n\t /url\\s*\\( = Match on the word \"url\" with any whitespace after it and then a parens\n\t ( = Start a capturing group\n\t (?: = Start a non-capturing group\n\t [^)(] = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t (?: = Start another non-capturing groups\n\t [^)(]+ = Match anything that isn't a parentheses\n\t | = OR\n\t \\( = Match a start parentheses\n\t [^)(]* = Match anything that isn't a parentheses\n\t \\) = Match a end parentheses\n\t ) = End Group\n *\\) = Match anything and then a close parens\n ) = Close non-capturing group\n * = Match anything\n ) = Close capturing group\n\t \\) = Match a close parens\n\n\t /gi = Get all matches, not the first. Be case insensitive.\n\t */\n\tvar fixedCss = css.replace(/url\\s*\\(((?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)\\)/gi, function(fullMatch, origUrl) {\n\t\t// strip quotes (if they exist)\n\t\tvar unquotedOrigUrl = origUrl\n\t\t\t.trim()\n\t\t\t.replace(/^\"(.*)\"$/, function(o, $1){ return $1; })\n\t\t\t.replace(/^'(.*)'$/, function(o, $1){ return $1; });\n\n\t\t// already a full url? no change\n\t\tif (/^(#|data:|http:\\/\\/|https:\\/\\/|file:\\/\\/\\/|\\s*$)/i.test(unquotedOrigUrl)) {\n\t\t return fullMatch;\n\t\t}\n\n\t\t// convert the url to a full url\n\t\tvar newUrl;\n\n\t\tif (unquotedOrigUrl.indexOf(\"//\") === 0) {\n\t\t \t//TODO: should we add protocol?\n\t\t\tnewUrl = unquotedOrigUrl;\n\t\t} else if (unquotedOrigUrl.indexOf(\"/\") === 0) {\n\t\t\t// path should be relative to the base url\n\t\t\tnewUrl = baseUrl + unquotedOrigUrl; // already starts with '/'\n\t\t} else {\n\t\t\t// path should be relative to current directory\n\t\t\tnewUrl = currentDir + unquotedOrigUrl.replace(/^\\.\\//, \"\"); // Strip leading './'\n\t\t}\n\n\t\t// send back the fixed url(...)\n\t\treturn \"url(\" + JSON.stringify(newUrl) + \")\";\n\t});\n\n\t// send back the fixed css\n\treturn fixedCss;\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/webpack/buildin/global.js\":\n/*!***********************************!*\\\n !*** (webpack)/buildin/global.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\nvar g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || Function(\"return this\")() || (1, eval)(\"this\");\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n/***/ }),\n\n/***/ \"./node_modules/xmldom/dom-parser.js\":\n/*!*******************************************!*\\\n !*** ./node_modules/xmldom/dom-parser.js ***!\n \\*******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\nfunction DOMParser(options){\r\n\tthis.options = options ||{locator:{}};\r\n\t\r\n}\r\nDOMParser.prototype.parseFromString = function(source,mimeType){\r\n\tvar options = this.options;\r\n\tvar sax = new XMLReader();\r\n\tvar domBuilder = options.domBuilder || new DOMHandler();//contentHandler and LexicalHandler\r\n\tvar errorHandler = options.errorHandler;\r\n\tvar locator = options.locator;\r\n\tvar defaultNSMap = options.xmlns||{};\r\n\tvar entityMap = {'lt':'<','gt':'>','amp':'&','quot':'\"','apos':\"'\"}\r\n\tif(locator){\r\n\t\tdomBuilder.setDocumentLocator(locator)\r\n\t}\r\n\t\r\n\tsax.errorHandler = buildErrorHandler(errorHandler,domBuilder,locator);\r\n\tsax.domBuilder = options.domBuilder || domBuilder;\r\n\tif(/\\/x?html?$/.test(mimeType)){\r\n\t\tentityMap.nbsp = '\\xa0';\r\n\t\tentityMap.copy = '\\xa9';\r\n\t\tdefaultNSMap['']= 'http://www.w3.org/1999/xhtml';\r\n\t}\r\n\tdefaultNSMap.xml = defaultNSMap.xml || 'http://www.w3.org/XML/1998/namespace';\r\n\tif(source){\r\n\t\tsax.parse(source,defaultNSMap,entityMap);\r\n\t}else{\r\n\t\tsax.errorHandler.error(\"invalid doc source\");\r\n\t}\r\n\treturn domBuilder.doc;\r\n}\r\nfunction buildErrorHandler(errorImpl,domBuilder,locator){\r\n\tif(!errorImpl){\r\n\t\tif(domBuilder instanceof DOMHandler){\r\n\t\t\treturn domBuilder;\r\n\t\t}\r\n\t\terrorImpl = domBuilder ;\r\n\t}\r\n\tvar errorHandler = {}\r\n\tvar isCallback = errorImpl instanceof Function;\r\n\tlocator = locator||{}\r\n\tfunction build(key){\r\n\t\tvar fn = errorImpl[key];\r\n\t\tif(!fn && isCallback){\r\n\t\t\tfn = errorImpl.length == 2?function(msg){errorImpl(key,msg)}:errorImpl;\r\n\t\t}\r\n\t\terrorHandler[key] = fn && function(msg){\r\n\t\t\tfn('[xmldom '+key+']\\t'+msg+_locator(locator));\r\n\t\t}||function(){};\r\n\t}\r\n\tbuild('warning');\r\n\tbuild('error');\r\n\tbuild('fatalError');\r\n\treturn errorHandler;\r\n}\r\n\r\n//console.log('#\\n\\n\\n\\n\\n\\n\\n####')\r\n/**\r\n * +ContentHandler+ErrorHandler\r\n * +LexicalHandler+EntityResolver2\r\n * -DeclHandler-DTDHandler \r\n * \r\n * DefaultHandler:EntityResolver, DTDHandler, ContentHandler, ErrorHandler\r\n * DefaultHandler2:DefaultHandler,LexicalHandler, DeclHandler, EntityResolver2\r\n * @link http://www.saxproject.org/apidoc/org/xml/sax/helpers/DefaultHandler.html\r\n */\r\nfunction DOMHandler() {\r\n this.cdata = false;\r\n}\r\nfunction position(locator,node){\r\n\tnode.lineNumber = locator.lineNumber;\r\n\tnode.columnNumber = locator.columnNumber;\r\n}\r\n/**\r\n * @see org.xml.sax.ContentHandler#startDocument\r\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ContentHandler.html\r\n */ \r\nDOMHandler.prototype = {\r\n\tstartDocument : function() {\r\n \tthis.doc = new DOMImplementation().createDocument(null, null, null);\r\n \tif (this.locator) {\r\n \tthis.doc.documentURI = this.locator.systemId;\r\n \t}\r\n\t},\r\n\tstartElement:function(namespaceURI, localName, qName, attrs) {\r\n\t\tvar doc = this.doc;\r\n\t var el = doc.createElementNS(namespaceURI, qName||localName);\r\n\t var len = attrs.length;\r\n\t appendElement(this, el);\r\n\t this.currentElement = el;\r\n\t \r\n\t\tthis.locator && position(this.locator,el)\r\n\t for (var i = 0 ; i < len; i++) {\r\n\t var namespaceURI = attrs.getURI(i);\r\n\t var value = attrs.getValue(i);\r\n\t var qName = attrs.getQName(i);\r\n\t\t\tvar attr = doc.createAttributeNS(namespaceURI, qName);\r\n\t\t\tthis.locator &&position(attrs.getLocator(i),attr);\r\n\t\t\tattr.value = attr.nodeValue = value;\r\n\t\t\tel.setAttributeNode(attr)\r\n\t }\r\n\t},\r\n\tendElement:function(namespaceURI, localName, qName) {\r\n\t\tvar current = this.currentElement\r\n\t\tvar tagName = current.tagName;\r\n\t\tthis.currentElement = current.parentNode;\r\n\t},\r\n\tstartPrefixMapping:function(prefix, uri) {\r\n\t},\r\n\tendPrefixMapping:function(prefix) {\r\n\t},\r\n\tprocessingInstruction:function(target, data) {\r\n\t var ins = this.doc.createProcessingInstruction(target, data);\r\n\t this.locator && position(this.locator,ins)\r\n\t appendElement(this, ins);\r\n\t},\r\n\tignorableWhitespace:function(ch, start, length) {\r\n\t},\r\n\tcharacters:function(chars, start, length) {\r\n\t\tchars = _toString.apply(this,arguments)\r\n\t\t//console.log(chars)\r\n\t\tif(chars){\r\n\t\t\tif (this.cdata) {\r\n\t\t\t\tvar charNode = this.doc.createCDATASection(chars);\r\n\t\t\t} else {\r\n\t\t\t\tvar charNode = this.doc.createTextNode(chars);\r\n\t\t\t}\r\n\t\t\tif(this.currentElement){\r\n\t\t\t\tthis.currentElement.appendChild(charNode);\r\n\t\t\t}else if(/^\\s*$/.test(chars)){\r\n\t\t\t\tthis.doc.appendChild(charNode);\r\n\t\t\t\t//process xml\r\n\t\t\t}\r\n\t\t\tthis.locator && position(this.locator,charNode)\r\n\t\t}\r\n\t},\r\n\tskippedEntity:function(name) {\r\n\t},\r\n\tendDocument:function() {\r\n\t\tthis.doc.normalize();\r\n\t},\r\n\tsetDocumentLocator:function (locator) {\r\n\t if(this.locator = locator){// && !('lineNumber' in locator)){\r\n\t \tlocator.lineNumber = 0;\r\n\t }\r\n\t},\r\n\t//LexicalHandler\r\n\tcomment:function(chars, start, length) {\r\n\t\tchars = _toString.apply(this,arguments)\r\n\t var comm = this.doc.createComment(chars);\r\n\t this.locator && position(this.locator,comm)\r\n\t appendElement(this, comm);\r\n\t},\r\n\t\r\n\tstartCDATA:function() {\r\n\t //used in characters() methods\r\n\t this.cdata = true;\r\n\t},\r\n\tendCDATA:function() {\r\n\t this.cdata = false;\r\n\t},\r\n\t\r\n\tstartDTD:function(name, publicId, systemId) {\r\n\t\tvar impl = this.doc.implementation;\r\n\t if (impl && impl.createDocumentType) {\r\n\t var dt = impl.createDocumentType(name, publicId, systemId);\r\n\t this.locator && position(this.locator,dt)\r\n\t appendElement(this, dt);\r\n\t }\r\n\t},\r\n\t/**\r\n\t * @see org.xml.sax.ErrorHandler\r\n\t * @link http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html\r\n\t */\r\n\twarning:function(error) {\r\n\t\tconsole.warn('[xmldom warning]\\t'+error,_locator(this.locator));\r\n\t},\r\n\terror:function(error) {\r\n\t\tconsole.error('[xmldom error]\\t'+error,_locator(this.locator));\r\n\t},\r\n\tfatalError:function(error) {\r\n\t\tconsole.error('[xmldom fatalError]\\t'+error,_locator(this.locator));\r\n\t throw error;\r\n\t}\r\n}\r\nfunction _locator(l){\r\n\tif(l){\r\n\t\treturn '\\n@'+(l.systemId ||'')+'#[line:'+l.lineNumber+',col:'+l.columnNumber+']'\r\n\t}\r\n}\r\nfunction _toString(chars,start,length){\r\n\tif(typeof chars == 'string'){\r\n\t\treturn chars.substr(start,length)\r\n\t}else{//java sax connect width xmldom on rhino(what about: \"? && !(chars instanceof String)\")\r\n\t\tif(chars.length >= start+length || start){\r\n\t\t\treturn new java.lang.String(chars,start,length)+'';\r\n\t\t}\r\n\t\treturn chars;\r\n\t}\r\n}\r\n\r\n/*\r\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/LexicalHandler.html\r\n * used method of org.xml.sax.ext.LexicalHandler:\r\n * #comment(chars, start, length)\r\n * #startCDATA()\r\n * #endCDATA()\r\n * #startDTD(name, publicId, systemId)\r\n *\r\n *\r\n * IGNORED method of org.xml.sax.ext.LexicalHandler:\r\n * #endDTD()\r\n * #startEntity(name)\r\n * #endEntity(name)\r\n *\r\n *\r\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/DeclHandler.html\r\n * IGNORED method of org.xml.sax.ext.DeclHandler\r\n * \t#attributeDecl(eName, aName, type, mode, value)\r\n * #elementDecl(name, model)\r\n * #externalEntityDecl(name, publicId, systemId)\r\n * #internalEntityDecl(name, value)\r\n * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/EntityResolver2.html\r\n * IGNORED method of org.xml.sax.EntityResolver2\r\n * #resolveEntity(String name,String publicId,String baseURI,String systemId)\r\n * #resolveEntity(publicId, systemId)\r\n * #getExternalSubset(name, baseURI)\r\n * @link http://www.saxproject.org/apidoc/org/xml/sax/DTDHandler.html\r\n * IGNORED method of org.xml.sax.DTDHandler\r\n * #notationDecl(name, publicId, systemId) {};\r\n * #unparsedEntityDecl(name, publicId, systemId, notationName) {};\r\n */\r\n\"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl\".replace(/\\w+/g,function(key){\r\n\tDOMHandler.prototype[key] = function(){return null}\r\n})\r\n\r\n/* Private static helpers treated below as private instance methods, so don't need to add these to the public API; we might use a Relator to also get rid of non-standard public properties */\r\nfunction appendElement (hander,node) {\r\n if (!hander.currentElement) {\r\n hander.doc.appendChild(node);\r\n } else {\r\n hander.currentElement.appendChild(node);\r\n }\r\n}//appendChild and setAttributeNS are preformance key\r\n\r\n//if(typeof require == 'function'){\r\n\tvar XMLReader = __webpack_require__(/*! ./sax */ \"./node_modules/xmldom/sax.js\").XMLReader;\r\n\tvar DOMImplementation = exports.DOMImplementation = __webpack_require__(/*! ./dom */ \"./node_modules/xmldom/dom.js\").DOMImplementation;\r\n\texports.XMLSerializer = __webpack_require__(/*! ./dom */ \"./node_modules/xmldom/dom.js\").XMLSerializer ;\r\n\texports.DOMParser = DOMParser;\r\n//}\r\n\n\n/***/ }),\n\n/***/ \"./node_modules/xmldom/dom.js\":\n/*!************************************!*\\\n !*** ./node_modules/xmldom/dom.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n/*\n * DOM Level 2\n * Object DOMException\n * @see http://www.w3.org/TR/REC-DOM-Level-1/ecma-script-language-binding.html\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ecma-script-binding.html\n */\n\nfunction copy(src,dest){\n\tfor(var p in src){\n\t\tdest[p] = src[p];\n\t}\n}\n/**\n^\\w+\\.prototype\\.([_\\w]+)\\s*=\\s*((?:.*\\{\\s*?[\\r\\n][\\s\\S]*?^})|\\S.*?(?=[;\\r\\n]));?\n^\\w+\\.prototype\\.([_\\w]+)\\s*=\\s*(\\S.*?(?=[;\\r\\n]));?\n */\nfunction _extends(Class,Super){\n\tvar pt = Class.prototype;\n\tif(Object.create){\n\t\tvar ppt = Object.create(Super.prototype)\n\t\tpt.__proto__ = ppt;\n\t}\n\tif(!(pt instanceof Super)){\n\t\tfunction t(){};\n\t\tt.prototype = Super.prototype;\n\t\tt = new t();\n\t\tcopy(pt,t);\n\t\tClass.prototype = pt = t;\n\t}\n\tif(pt.constructor != Class){\n\t\tif(typeof Class != 'function'){\n\t\t\tconsole.error(\"unknow Class:\"+Class)\n\t\t}\n\t\tpt.constructor = Class\n\t}\n}\nvar htmlns = 'http://www.w3.org/1999/xhtml' ;\n// Node Types\nvar NodeType = {}\nvar ELEMENT_NODE = NodeType.ELEMENT_NODE = 1;\nvar ATTRIBUTE_NODE = NodeType.ATTRIBUTE_NODE = 2;\nvar TEXT_NODE = NodeType.TEXT_NODE = 3;\nvar CDATA_SECTION_NODE = NodeType.CDATA_SECTION_NODE = 4;\nvar ENTITY_REFERENCE_NODE = NodeType.ENTITY_REFERENCE_NODE = 5;\nvar ENTITY_NODE = NodeType.ENTITY_NODE = 6;\nvar PROCESSING_INSTRUCTION_NODE = NodeType.PROCESSING_INSTRUCTION_NODE = 7;\nvar COMMENT_NODE = NodeType.COMMENT_NODE = 8;\nvar DOCUMENT_NODE = NodeType.DOCUMENT_NODE = 9;\nvar DOCUMENT_TYPE_NODE = NodeType.DOCUMENT_TYPE_NODE = 10;\nvar DOCUMENT_FRAGMENT_NODE = NodeType.DOCUMENT_FRAGMENT_NODE = 11;\nvar NOTATION_NODE = NodeType.NOTATION_NODE = 12;\n\n// ExceptionCode\nvar ExceptionCode = {}\nvar ExceptionMessage = {};\nvar INDEX_SIZE_ERR = ExceptionCode.INDEX_SIZE_ERR = ((ExceptionMessage[1]=\"Index size error\"),1);\nvar DOMSTRING_SIZE_ERR = ExceptionCode.DOMSTRING_SIZE_ERR = ((ExceptionMessage[2]=\"DOMString size error\"),2);\nvar HIERARCHY_REQUEST_ERR = ExceptionCode.HIERARCHY_REQUEST_ERR = ((ExceptionMessage[3]=\"Hierarchy request error\"),3);\nvar WRONG_DOCUMENT_ERR = ExceptionCode.WRONG_DOCUMENT_ERR = ((ExceptionMessage[4]=\"Wrong document\"),4);\nvar INVALID_CHARACTER_ERR = ExceptionCode.INVALID_CHARACTER_ERR = ((ExceptionMessage[5]=\"Invalid character\"),5);\nvar NO_DATA_ALLOWED_ERR = ExceptionCode.NO_DATA_ALLOWED_ERR = ((ExceptionMessage[6]=\"No data allowed\"),6);\nvar NO_MODIFICATION_ALLOWED_ERR = ExceptionCode.NO_MODIFICATION_ALLOWED_ERR = ((ExceptionMessage[7]=\"No modification allowed\"),7);\nvar NOT_FOUND_ERR = ExceptionCode.NOT_FOUND_ERR = ((ExceptionMessage[8]=\"Not found\"),8);\nvar NOT_SUPPORTED_ERR = ExceptionCode.NOT_SUPPORTED_ERR = ((ExceptionMessage[9]=\"Not supported\"),9);\nvar INUSE_ATTRIBUTE_ERR = ExceptionCode.INUSE_ATTRIBUTE_ERR = ((ExceptionMessage[10]=\"Attribute in use\"),10);\n//level2\nvar INVALID_STATE_ERR \t= ExceptionCode.INVALID_STATE_ERR \t= ((ExceptionMessage[11]=\"Invalid state\"),11);\nvar SYNTAX_ERR \t= ExceptionCode.SYNTAX_ERR \t= ((ExceptionMessage[12]=\"Syntax error\"),12);\nvar INVALID_MODIFICATION_ERR \t= ExceptionCode.INVALID_MODIFICATION_ERR \t= ((ExceptionMessage[13]=\"Invalid modification\"),13);\nvar NAMESPACE_ERR \t= ExceptionCode.NAMESPACE_ERR \t= ((ExceptionMessage[14]=\"Invalid namespace\"),14);\nvar INVALID_ACCESS_ERR \t= ExceptionCode.INVALID_ACCESS_ERR \t= ((ExceptionMessage[15]=\"Invalid access\"),15);\n\n\nfunction DOMException(code, message) {\n\tif(message instanceof Error){\n\t\tvar error = message;\n\t}else{\n\t\terror = this;\n\t\tError.call(this, ExceptionMessage[code]);\n\t\tthis.message = ExceptionMessage[code];\n\t\tif(Error.captureStackTrace) Error.captureStackTrace(this, DOMException);\n\t}\n\terror.code = code;\n\tif(message) this.message = this.message + \": \" + message;\n\treturn error;\n};\nDOMException.prototype = Error.prototype;\ncopy(ExceptionCode,DOMException)\n/**\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177\n * The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are live.\n * The items in the NodeList are accessible via an integral index, starting from 0.\n */\nfunction NodeList() {\n};\nNodeList.prototype = {\n\t/**\n\t * The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.\n\t * @standard level1\n\t */\n\tlength:0, \n\t/**\n\t * Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.\n\t * @standard level1\n\t * @param index unsigned long \n\t * Index into the collection.\n\t * @return Node\n\t * \tThe node at the indexth position in the NodeList, or null if that is not a valid index. \n\t */\n\titem: function(index) {\n\t\treturn this[index] || null;\n\t},\n\ttoString:function(isHTML,nodeFilter){\n\t\tfor(var buf = [], i = 0;i<this.length;i++){\n\t\t\tserializeToString(this[i],buf,isHTML,nodeFilter);\n\t\t}\n\t\treturn buf.join('');\n\t}\n};\nfunction LiveNodeList(node,refresh){\n\tthis._node = node;\n\tthis._refresh = refresh\n\t_updateLiveList(this);\n}\nfunction _updateLiveList(list){\n\tvar inc = list._node._inc || list._node.ownerDocument._inc;\n\tif(list._inc != inc){\n\t\tvar ls = list._refresh(list._node);\n\t\t//console.log(ls.length)\n\t\t__set__(list,'length',ls.length);\n\t\tcopy(ls,list);\n\t\tlist._inc = inc;\n\t}\n}\nLiveNodeList.prototype.item = function(i){\n\t_updateLiveList(this);\n\treturn this[i];\n}\n\n_extends(LiveNodeList,NodeList);\n/**\n * \n * Objects implementing the NamedNodeMap interface are used to represent collections of nodes that can be accessed by name. Note that NamedNodeMap does not inherit from NodeList; NamedNodeMaps are not maintained in any particular order. Objects contained in an object implementing NamedNodeMap may also be accessed by an ordinal index, but this is simply to allow convenient enumeration of the contents of a NamedNodeMap, and does not imply that the DOM specifies an order to these Nodes.\n * NamedNodeMap objects in the DOM are live.\n * used for attributes or DocumentType entities \n */\nfunction NamedNodeMap() {\n};\n\nfunction _findNodeIndex(list,node){\n\tvar i = list.length;\n\twhile(i--){\n\t\tif(list[i] === node){return i}\n\t}\n}\n\nfunction _addNamedNode(el,list,newAttr,oldAttr){\n\tif(oldAttr){\n\t\tlist[_findNodeIndex(list,oldAttr)] = newAttr;\n\t}else{\n\t\tlist[list.length++] = newAttr;\n\t}\n\tif(el){\n\t\tnewAttr.ownerElement = el;\n\t\tvar doc = el.ownerDocument;\n\t\tif(doc){\n\t\t\toldAttr && _onRemoveAttribute(doc,el,oldAttr);\n\t\t\t_onAddAttribute(doc,el,newAttr);\n\t\t}\n\t}\n}\nfunction _removeNamedNode(el,list,attr){\n\t//console.log('remove attr:'+attr)\n\tvar i = _findNodeIndex(list,attr);\n\tif(i>=0){\n\t\tvar lastIndex = list.length-1\n\t\twhile(i<lastIndex){\n\t\t\tlist[i] = list[++i]\n\t\t}\n\t\tlist.length = lastIndex;\n\t\tif(el){\n\t\t\tvar doc = el.ownerDocument;\n\t\t\tif(doc){\n\t\t\t\t_onRemoveAttribute(doc,el,attr);\n\t\t\t\tattr.ownerElement = null;\n\t\t\t}\n\t\t}\n\t}else{\n\t\tthrow DOMException(NOT_FOUND_ERR,new Error(el.tagName+'@'+attr))\n\t}\n}\nNamedNodeMap.prototype = {\n\tlength:0,\n\titem:NodeList.prototype.item,\n\tgetNamedItem: function(key) {\n//\t\tif(key.indexOf(':')>0 || key == 'xmlns'){\n//\t\t\treturn null;\n//\t\t}\n\t\t//console.log()\n\t\tvar i = this.length;\n\t\twhile(i--){\n\t\t\tvar attr = this[i];\n\t\t\t//console.log(attr.nodeName,key)\n\t\t\tif(attr.nodeName == key){\n\t\t\t\treturn attr;\n\t\t\t}\n\t\t}\n\t},\n\tsetNamedItem: function(attr) {\n\t\tvar el = attr.ownerElement;\n\t\tif(el && el!=this._ownerElement){\n\t\t\tthrow new DOMException(INUSE_ATTRIBUTE_ERR);\n\t\t}\n\t\tvar oldAttr = this.getNamedItem(attr.nodeName);\n\t\t_addNamedNode(this._ownerElement,this,attr,oldAttr);\n\t\treturn oldAttr;\n\t},\n\t/* returns Node */\n\tsetNamedItemNS: function(attr) {// raises: WRONG_DOCUMENT_ERR,NO_MODIFICATION_ALLOWED_ERR,INUSE_ATTRIBUTE_ERR\n\t\tvar el = attr.ownerElement, oldAttr;\n\t\tif(el && el!=this._ownerElement){\n\t\t\tthrow new DOMException(INUSE_ATTRIBUTE_ERR);\n\t\t}\n\t\toldAttr = this.getNamedItemNS(attr.namespaceURI,attr.localName);\n\t\t_addNamedNode(this._ownerElement,this,attr,oldAttr);\n\t\treturn oldAttr;\n\t},\n\n\t/* returns Node */\n\tremoveNamedItem: function(key) {\n\t\tvar attr = this.getNamedItem(key);\n\t\t_removeNamedNode(this._ownerElement,this,attr);\n\t\treturn attr;\n\t\t\n\t\t\n\t},// raises: NOT_FOUND_ERR,NO_MODIFICATION_ALLOWED_ERR\n\t\n\t//for level2\n\tremoveNamedItemNS:function(namespaceURI,localName){\n\t\tvar attr = this.getNamedItemNS(namespaceURI,localName);\n\t\t_removeNamedNode(this._ownerElement,this,attr);\n\t\treturn attr;\n\t},\n\tgetNamedItemNS: function(namespaceURI, localName) {\n\t\tvar i = this.length;\n\t\twhile(i--){\n\t\t\tvar node = this[i];\n\t\t\tif(node.localName == localName && node.namespaceURI == namespaceURI){\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n};\n/**\n * @see http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-102161490\n */\nfunction DOMImplementation(/* Object */ features) {\n\tthis._features = {};\n\tif (features) {\n\t\tfor (var feature in features) {\n\t\t\t this._features = features[feature];\n\t\t}\n\t}\n};\n\nDOMImplementation.prototype = {\n\thasFeature: function(/* string */ feature, /* string */ version) {\n\t\tvar versions = this._features[feature.toLowerCase()];\n\t\tif (versions && (!version || version in versions)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t},\n\t// Introduced in DOM Level 2:\n\tcreateDocument:function(namespaceURI, qualifiedName, doctype){// raises:INVALID_CHARACTER_ERR,NAMESPACE_ERR,WRONG_DOCUMENT_ERR\n\t\tvar doc = new Document();\n\t\tdoc.implementation = this;\n\t\tdoc.childNodes = new NodeList();\n\t\tdoc.doctype = doctype;\n\t\tif(doctype){\n\t\t\tdoc.appendChild(doctype);\n\t\t}\n\t\tif(qualifiedName){\n\t\t\tvar root = doc.createElementNS(namespaceURI,qualifiedName);\n\t\t\tdoc.appendChild(root);\n\t\t}\n\t\treturn doc;\n\t},\n\t// Introduced in DOM Level 2:\n\tcreateDocumentType:function(qualifiedName, publicId, systemId){// raises:INVALID_CHARACTER_ERR,NAMESPACE_ERR\n\t\tvar node = new DocumentType();\n\t\tnode.name = qualifiedName;\n\t\tnode.nodeName = qualifiedName;\n\t\tnode.publicId = publicId;\n\t\tnode.systemId = systemId;\n\t\t// Introduced in DOM Level 2:\n\t\t//readonly attribute DOMString internalSubset;\n\t\t\n\t\t//TODO:..\n\t\t// readonly attribute NamedNodeMap entities;\n\t\t// readonly attribute NamedNodeMap notations;\n\t\treturn node;\n\t}\n};\n\n\n/**\n * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247\n */\n\nfunction Node() {\n};\n\nNode.prototype = {\n\tfirstChild : null,\n\tlastChild : null,\n\tpreviousSibling : null,\n\tnextSibling : null,\n\tattributes : null,\n\tparentNode : null,\n\tchildNodes : null,\n\townerDocument : null,\n\tnodeValue : null,\n\tnamespaceURI : null,\n\tprefix : null,\n\tlocalName : null,\n\t// Modified in DOM Level 2:\n\tinsertBefore:function(newChild, refChild){//raises \n\t\treturn _insertBefore(this,newChild,refChild);\n\t},\n\treplaceChild:function(newChild, oldChild){//raises \n\t\tthis.insertBefore(newChild,oldChild);\n\t\tif(oldChild){\n\t\t\tthis.removeChild(oldChild);\n\t\t}\n\t},\n\tremoveChild:function(oldChild){\n\t\treturn _removeChild(this,oldChild);\n\t},\n\tappendChild:function(newChild){\n\t\treturn this.insertBefore(newChild,null);\n\t},\n\thasChildNodes:function(){\n\t\treturn this.firstChild != null;\n\t},\n\tcloneNode:function(deep){\n\t\treturn cloneNode(this.ownerDocument||this,this,deep);\n\t},\n\t// Modified in DOM Level 2:\n\tnormalize:function(){\n\t\tvar child = this.firstChild;\n\t\twhile(child){\n\t\t\tvar next = child.nextSibling;\n\t\t\tif(next && next.nodeType == TEXT_NODE && child.nodeType == TEXT_NODE){\n\t\t\t\tthis.removeChild(next);\n\t\t\t\tchild.appendData(next.data);\n\t\t\t}else{\n\t\t\t\tchild.normalize();\n\t\t\t\tchild = next;\n\t\t\t}\n\t\t}\n\t},\n \t// Introduced in DOM Level 2:\n\tisSupported:function(feature, version){\n\t\treturn this.ownerDocument.implementation.hasFeature(feature,version);\n\t},\n // Introduced in DOM Level 2:\n hasAttributes:function(){\n \treturn this.attributes.length>0;\n },\n lookupPrefix:function(namespaceURI){\n \tvar el = this;\n \twhile(el){\n \t\tvar map = el._nsMap;\n \t\t//console.dir(map)\n \t\tif(map){\n \t\t\tfor(var n in map){\n \t\t\t\tif(map[n] == namespaceURI){\n \t\t\t\t\treturn n;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\tel = el.nodeType == ATTRIBUTE_NODE?el.ownerDocument : el.parentNode;\n \t}\n \treturn null;\n },\n // Introduced in DOM Level 3:\n lookupNamespaceURI:function(prefix){\n \tvar el = this;\n \twhile(el){\n \t\tvar map = el._nsMap;\n \t\t//console.dir(map)\n \t\tif(map){\n \t\t\tif(prefix in map){\n \t\t\t\treturn map[prefix] ;\n \t\t\t}\n \t\t}\n \t\tel = el.nodeType == ATTRIBUTE_NODE?el.ownerDocument : el.parentNode;\n \t}\n \treturn null;\n },\n // Introduced in DOM Level 3:\n isDefaultNamespace:function(namespaceURI){\n \tvar prefix = this.lookupPrefix(namespaceURI);\n \treturn prefix == null;\n }\n};\n\n\nfunction _xmlEncoder(c){\n\treturn c == '<' && '<' ||\n c == '>' && '>' ||\n c == '&' && '&' ||\n c == '\"' && '"' ||\n '&#'+c.charCodeAt()+';'\n}\n\n\ncopy(NodeType,Node);\ncopy(NodeType,Node.prototype);\n\n/**\n * @param callback return true for continue,false for break\n * @return boolean true: break visit;\n */\nfunction _visitNode(node,callback){\n\tif(callback(node)){\n\t\treturn true;\n\t}\n\tif(node = node.firstChild){\n\t\tdo{\n\t\t\tif(_visitNode(node,callback)){return true}\n }while(node=node.nextSibling)\n }\n}\n\n\n\nfunction Document(){\n}\nfunction _onAddAttribute(doc,el,newAttr){\n\tdoc && doc._inc++;\n\tvar ns = newAttr.namespaceURI ;\n\tif(ns == 'http://www.w3.org/2000/xmlns/'){\n\t\t//update namespace\n\t\tel._nsMap[newAttr.prefix?newAttr.localName:''] = newAttr.value\n\t}\n}\nfunction _onRemoveAttribute(doc,el,newAttr,remove){\n\tdoc && doc._inc++;\n\tvar ns = newAttr.namespaceURI ;\n\tif(ns == 'http://www.w3.org/2000/xmlns/'){\n\t\t//update namespace\n\t\tdelete el._nsMap[newAttr.prefix?newAttr.localName:'']\n\t}\n}\nfunction _onUpdateChild(doc,el,newChild){\n\tif(doc && doc._inc){\n\t\tdoc._inc++;\n\t\t//update childNodes\n\t\tvar cs = el.childNodes;\n\t\tif(newChild){\n\t\t\tcs[cs.length++] = newChild;\n\t\t}else{\n\t\t\t//console.log(1)\n\t\t\tvar child = el.firstChild;\n\t\t\tvar i = 0;\n\t\t\twhile(child){\n\t\t\t\tcs[i++] = child;\n\t\t\t\tchild =child.nextSibling;\n\t\t\t}\n\t\t\tcs.length = i;\n\t\t}\n\t}\n}\n\n/**\n * attributes;\n * children;\n * \n * writeable properties:\n * nodeValue,Attr:value,CharacterData:data\n * prefix\n */\nfunction _removeChild(parentNode,child){\n\tvar previous = child.previousSibling;\n\tvar next = child.nextSibling;\n\tif(previous){\n\t\tprevious.nextSibling = next;\n\t}else{\n\t\tparentNode.firstChild = next\n\t}\n\tif(next){\n\t\tnext.previousSibling = previous;\n\t}else{\n\t\tparentNode.lastChild = previous;\n\t}\n\t_onUpdateChild(parentNode.ownerDocument,parentNode);\n\treturn child;\n}\n/**\n * preformance key(refChild == null)\n */\nfunction _insertBefore(parentNode,newChild,nextChild){\n\tvar cp = newChild.parentNode;\n\tif(cp){\n\t\tcp.removeChild(newChild);//remove and update\n\t}\n\tif(newChild.nodeType === DOCUMENT_FRAGMENT_NODE){\n\t\tvar newFirst = newChild.firstChild;\n\t\tif (newFirst == null) {\n\t\t\treturn newChild;\n\t\t}\n\t\tvar newLast = newChild.lastChild;\n\t}else{\n\t\tnewFirst = newLast = newChild;\n\t}\n\tvar pre = nextChild ? nextChild.previousSibling : parentNode.lastChild;\n\n\tnewFirst.previousSibling = pre;\n\tnewLast.nextSibling = nextChild;\n\t\n\t\n\tif(pre){\n\t\tpre.nextSibling = newFirst;\n\t}else{\n\t\tparentNode.firstChild = newFirst;\n\t}\n\tif(nextChild == null){\n\t\tparentNode.lastChild = newLast;\n\t}else{\n\t\tnextChild.previousSibling = newLast;\n\t}\n\tdo{\n\t\tnewFirst.parentNode = parentNode;\n\t}while(newFirst !== newLast && (newFirst= newFirst.nextSibling))\n\t_onUpdateChild(parentNode.ownerDocument||parentNode,parentNode);\n\t//console.log(parentNode.lastChild.nextSibling == null)\n\tif (newChild.nodeType == DOCUMENT_FRAGMENT_NODE) {\n\t\tnewChild.firstChild = newChild.lastChild = null;\n\t}\n\treturn newChild;\n}\nfunction _appendSingleChild(parentNode,newChild){\n\tvar cp = newChild.parentNode;\n\tif(cp){\n\t\tvar pre = parentNode.lastChild;\n\t\tcp.removeChild(newChild);//remove and update\n\t\tvar pre = parentNode.lastChild;\n\t}\n\tvar pre = parentNode.lastChild;\n\tnewChild.parentNode = parentNode;\n\tnewChild.previousSibling = pre;\n\tnewChild.nextSibling = null;\n\tif(pre){\n\t\tpre.nextSibling = newChild;\n\t}else{\n\t\tparentNode.firstChild = newChild;\n\t}\n\tparentNode.lastChild = newChild;\n\t_onUpdateChild(parentNode.ownerDocument,parentNode,newChild);\n\treturn newChild;\n\t//console.log(\"__aa\",parentNode.lastChild.nextSibling == null)\n}\nDocument.prototype = {\n\t//implementation : null,\n\tnodeName : '#document',\n\tnodeType : DOCUMENT_NODE,\n\tdoctype : null,\n\tdocumentElement : null,\n\t_inc : 1,\n\t\n\tinsertBefore : function(newChild, refChild){//raises \n\t\tif(newChild.nodeType == DOCUMENT_FRAGMENT_NODE){\n\t\t\tvar child = newChild.firstChild;\n\t\t\twhile(child){\n\t\t\t\tvar next = child.nextSibling;\n\t\t\t\tthis.insertBefore(child,refChild);\n\t\t\t\tchild = next;\n\t\t\t}\n\t\t\treturn newChild;\n\t\t}\n\t\tif(this.documentElement == null && newChild.nodeType == ELEMENT_NODE){\n\t\t\tthis.documentElement = newChild;\n\t\t}\n\t\t\n\t\treturn _insertBefore(this,newChild,refChild),(newChild.ownerDocument = this),newChild;\n\t},\n\tremoveChild : function(oldChild){\n\t\tif(this.documentElement == oldChild){\n\t\t\tthis.documentElement = null;\n\t\t}\n\t\treturn _removeChild(this,oldChild);\n\t},\n\t// Introduced in DOM Level 2:\n\timportNode : function(importedNode,deep){\n\t\treturn importNode(this,importedNode,deep);\n\t},\n\t// Introduced in DOM Level 2:\n\tgetElementById :\tfunction(id){\n\t\tvar rtv = null;\n\t\t_visitNode(this.documentElement,function(node){\n\t\t\tif(node.nodeType == ELEMENT_NODE){\n\t\t\t\tif(node.getAttribute('id') == id){\n\t\t\t\t\trtv = node;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t\treturn rtv;\n\t},\n\t\n\t//document factory method:\n\tcreateElement :\tfunction(tagName){\n\t\tvar node = new Element();\n\t\tnode.ownerDocument = this;\n\t\tnode.nodeName = tagName;\n\t\tnode.tagName = tagName;\n\t\tnode.childNodes = new NodeList();\n\t\tvar attrs\t= node.attributes = new NamedNodeMap();\n\t\tattrs._ownerElement = node;\n\t\treturn node;\n\t},\n\tcreateDocumentFragment :\tfunction(){\n\t\tvar node = new DocumentFragment();\n\t\tnode.ownerDocument = this;\n\t\tnode.childNodes = new NodeList();\n\t\treturn node;\n\t},\n\tcreateTextNode :\tfunction(data){\n\t\tvar node = new Text();\n\t\tnode.ownerDocument = this;\n\t\tnode.appendData(data)\n\t\treturn node;\n\t},\n\tcreateComment :\tfunction(data){\n\t\tvar node = new Comment();\n\t\tnode.ownerDocument = this;\n\t\tnode.appendData(data)\n\t\treturn node;\n\t},\n\tcreateCDATASection :\tfunction(data){\n\t\tvar node = new CDATASection();\n\t\tnode.ownerDocument = this;\n\t\tnode.appendData(data)\n\t\treturn node;\n\t},\n\tcreateProcessingInstruction :\tfunction(target,data){\n\t\tvar node = new ProcessingInstruction();\n\t\tnode.ownerDocument = this;\n\t\tnode.tagName = node.target = target;\n\t\tnode.nodeValue= node.data = data;\n\t\treturn node;\n\t},\n\tcreateAttribute :\tfunction(name){\n\t\tvar node = new Attr();\n\t\tnode.ownerDocument\t= this;\n\t\tnode.name = name;\n\t\tnode.nodeName\t= name;\n\t\tnode.localName = name;\n\t\tnode.specified = true;\n\t\treturn node;\n\t},\n\tcreateEntityReference :\tfunction(name){\n\t\tvar node = new EntityReference();\n\t\tnode.ownerDocument\t= this;\n\t\tnode.nodeName\t= name;\n\t\treturn node;\n\t},\n\t// Introduced in DOM Level 2:\n\tcreateElementNS :\tfunction(namespaceURI,qualifiedName){\n\t\tvar node = new Element();\n\t\tvar pl = qualifiedName.split(':');\n\t\tvar attrs\t= node.attributes = new NamedNodeMap();\n\t\tnode.childNodes = new NodeList();\n\t\tnode.ownerDocument = this;\n\t\tnode.nodeName = qualifiedName;\n\t\tnode.tagName = qualifiedName;\n\t\tnode.namespaceURI = namespaceURI;\n\t\tif(pl.length == 2){\n\t\t\tnode.prefix = pl[0];\n\t\t\tnode.localName = pl[1];\n\t\t}else{\n\t\t\t//el.prefix = null;\n\t\t\tnode.localName = qualifiedName;\n\t\t}\n\t\tattrs._ownerElement = node;\n\t\treturn node;\n\t},\n\t// Introduced in DOM Level 2:\n\tcreateAttributeNS :\tfunction(namespaceURI,qualifiedName){\n\t\tvar node = new Attr();\n\t\tvar pl = qualifiedName.split(':');\n\t\tnode.ownerDocument = this;\n\t\tnode.nodeName = qualifiedName;\n\t\tnode.name = qualifiedName;\n\t\tnode.namespaceURI = namespaceURI;\n\t\tnode.specified = true;\n\t\tif(pl.length == 2){\n\t\t\tnode.prefix = pl[0];\n\t\t\tnode.localName = pl[1];\n\t\t}else{\n\t\t\t//el.prefix = null;\n\t\t\tnode.localName = qualifiedName;\n\t\t}\n\t\treturn node;\n\t}\n};\n_extends(Document,Node);\n\n\nfunction Element() {\n\tthis._nsMap = {};\n};\nElement.prototype = {\n\tnodeType : ELEMENT_NODE,\n\thasAttribute : function(name){\n\t\treturn this.getAttributeNode(name)!=null;\n\t},\n\tgetAttribute : function(name){\n\t\tvar attr = this.getAttributeNode(name);\n\t\treturn attr && attr.value || '';\n\t},\n\tgetAttributeNode : function(name){\n\t\treturn this.attributes.getNamedItem(name);\n\t},\n\tsetAttribute : function(name, value){\n\t\tvar attr = this.ownerDocument.createAttribute(name);\n\t\tattr.value = attr.nodeValue = \"\" + value;\n\t\tthis.setAttributeNode(attr)\n\t},\n\tremoveAttribute : function(name){\n\t\tvar attr = this.getAttributeNode(name)\n\t\tattr && this.removeAttributeNode(attr);\n\t},\n\t\n\t//four real opeartion method\n\tappendChild:function(newChild){\n\t\tif(newChild.nodeType === DOCUMENT_FRAGMENT_NODE){\n\t\t\treturn this.insertBefore(newChild,null);\n\t\t}else{\n\t\t\treturn _appendSingleChild(this,newChild);\n\t\t}\n\t},\n\tsetAttributeNode : function(newAttr){\n\t\treturn this.attributes.setNamedItem(newAttr);\n\t},\n\tsetAttributeNodeNS : function(newAttr){\n\t\treturn this.attributes.setNamedItemNS(newAttr);\n\t},\n\tremoveAttributeNode : function(oldAttr){\n\t\t//console.log(this == oldAttr.ownerElement)\n\t\treturn this.attributes.removeNamedItem(oldAttr.nodeName);\n\t},\n\t//get real attribute name,and remove it by removeAttributeNode\n\tremoveAttributeNS : function(namespaceURI, localName){\n\t\tvar old = this.getAttributeNodeNS(namespaceURI, localName);\n\t\told && this.removeAttributeNode(old);\n\t},\n\t\n\thasAttributeNS : function(namespaceURI, localName){\n\t\treturn this.getAttributeNodeNS(namespaceURI, localName)!=null;\n\t},\n\tgetAttributeNS : function(namespaceURI, localName){\n\t\tvar attr = this.getAttributeNodeNS(namespaceURI, localName);\n\t\treturn attr && attr.value || '';\n\t},\n\tsetAttributeNS : function(namespaceURI, qualifiedName, value){\n\t\tvar attr = this.ownerDocument.createAttributeNS(namespaceURI, qualifiedName);\n\t\tattr.value = attr.nodeValue = \"\" + value;\n\t\tthis.setAttributeNode(attr)\n\t},\n\tgetAttributeNodeNS : function(namespaceURI, localName){\n\t\treturn this.attributes.getNamedItemNS(namespaceURI, localName);\n\t},\n\t\n\tgetElementsByTagName : function(tagName){\n\t\treturn new LiveNodeList(this,function(base){\n\t\t\tvar ls = [];\n\t\t\t_visitNode(base,function(node){\n\t\t\t\tif(node !== base && node.nodeType == ELEMENT_NODE && (tagName === '*' || node.tagName == tagName)){\n\t\t\t\t\tls.push(node);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn ls;\n\t\t});\n\t},\n\tgetElementsByTagNameNS : function(namespaceURI, localName){\n\t\treturn new LiveNodeList(this,function(base){\n\t\t\tvar ls = [];\n\t\t\t_visitNode(base,function(node){\n\t\t\t\tif(node !== base && node.nodeType === ELEMENT_NODE && (namespaceURI === '*' || node.namespaceURI === namespaceURI) && (localName === '*' || node.localName == localName)){\n\t\t\t\t\tls.push(node);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn ls;\n\t\t\t\n\t\t});\n\t}\n};\nDocument.prototype.getElementsByTagName = Element.prototype.getElementsByTagName;\nDocument.prototype.getElementsByTagNameNS = Element.prototype.getElementsByTagNameNS;\n\n\n_extends(Element,Node);\nfunction Attr() {\n};\nAttr.prototype.nodeType = ATTRIBUTE_NODE;\n_extends(Attr,Node);\n\n\nfunction CharacterData() {\n};\nCharacterData.prototype = {\n\tdata : '',\n\tsubstringData : function(offset, count) {\n\t\treturn this.data.substring(offset, offset+count);\n\t},\n\tappendData: function(text) {\n\t\ttext = this.data+text;\n\t\tthis.nodeValue = this.data = text;\n\t\tthis.length = text.length;\n\t},\n\tinsertData: function(offset,text) {\n\t\tthis.replaceData(offset,0,text);\n\t\n\t},\n\tappendChild:function(newChild){\n\t\tthrow new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR])\n\t},\n\tdeleteData: function(offset, count) {\n\t\tthis.replaceData(offset,count,\"\");\n\t},\n\treplaceData: function(offset, count, text) {\n\t\tvar start = this.data.substring(0,offset);\n\t\tvar end = this.data.substring(offset+count);\n\t\ttext = start + text + end;\n\t\tthis.nodeValue = this.data = text;\n\t\tthis.length = text.length;\n\t}\n}\n_extends(CharacterData,Node);\nfunction Text() {\n};\nText.prototype = {\n\tnodeName : \"#text\",\n\tnodeType : TEXT_NODE,\n\tsplitText : function(offset) {\n\t\tvar text = this.data;\n\t\tvar newText = text.substring(offset);\n\t\ttext = text.substring(0, offset);\n\t\tthis.data = this.nodeValue = text;\n\t\tthis.length = text.length;\n\t\tvar newNode = this.ownerDocument.createTextNode(newText);\n\t\tif(this.parentNode){\n\t\t\tthis.parentNode.insertBefore(newNode, this.nextSibling);\n\t\t}\n\t\treturn newNode;\n\t}\n}\n_extends(Text,CharacterData);\nfunction Comment() {\n};\nComment.prototype = {\n\tnodeName : \"#comment\",\n\tnodeType : COMMENT_NODE\n}\n_extends(Comment,CharacterData);\n\nfunction CDATASection() {\n};\nCDATASection.prototype = {\n\tnodeName : \"#cdata-section\",\n\tnodeType : CDATA_SECTION_NODE\n}\n_extends(CDATASection,CharacterData);\n\n\nfunction DocumentType() {\n};\nDocumentType.prototype.nodeType = DOCUMENT_TYPE_NODE;\n_extends(DocumentType,Node);\n\nfunction Notation() {\n};\nNotation.prototype.nodeType = NOTATION_NODE;\n_extends(Notation,Node);\n\nfunction Entity() {\n};\nEntity.prototype.nodeType = ENTITY_NODE;\n_extends(Entity,Node);\n\nfunction EntityReference() {\n};\nEntityReference.prototype.nodeType = ENTITY_REFERENCE_NODE;\n_extends(EntityReference,Node);\n\nfunction DocumentFragment() {\n};\nDocumentFragment.prototype.nodeName =\t\"#document-fragment\";\nDocumentFragment.prototype.nodeType =\tDOCUMENT_FRAGMENT_NODE;\n_extends(DocumentFragment,Node);\n\n\nfunction ProcessingInstruction() {\n}\nProcessingInstruction.prototype.nodeType = PROCESSING_INSTRUCTION_NODE;\n_extends(ProcessingInstruction,Node);\nfunction XMLSerializer(){}\nXMLSerializer.prototype.serializeToString = function(node,isHtml,nodeFilter){\n\treturn nodeSerializeToString.call(node,isHtml,nodeFilter);\n}\nNode.prototype.toString = nodeSerializeToString;\nfunction nodeSerializeToString(isHtml,nodeFilter){\n\tvar buf = [];\n\tvar refNode = this.nodeType == 9?this.documentElement:this;\n\tvar prefix = refNode.prefix;\n\tvar uri = refNode.namespaceURI;\n\t\n\tif(uri && prefix == null){\n\t\t//console.log(prefix)\n\t\tvar prefix = refNode.lookupPrefix(uri);\n\t\tif(prefix == null){\n\t\t\t//isHTML = true;\n\t\t\tvar visibleNamespaces=[\n\t\t\t{namespace:uri,prefix:null}\n\t\t\t//{namespace:uri,prefix:''}\n\t\t\t]\n\t\t}\n\t}\n\tserializeToString(this,buf,isHtml,nodeFilter,visibleNamespaces);\n\t//console.log('###',this.nodeType,uri,prefix,buf.join(''))\n\treturn buf.join('');\n}\nfunction needNamespaceDefine(node,isHTML, visibleNamespaces) {\n\tvar prefix = node.prefix||'';\n\tvar uri = node.namespaceURI;\n\tif (!prefix && !uri){\n\t\treturn false;\n\t}\n\tif (prefix === \"xml\" && uri === \"http://www.w3.org/XML/1998/namespace\" \n\t\t|| uri == 'http://www.w3.org/2000/xmlns/'){\n\t\treturn false;\n\t}\n\t\n\tvar i = visibleNamespaces.length \n\t//console.log('@@@@',node.tagName,prefix,uri,visibleNamespaces)\n\twhile (i--) {\n\t\tvar ns = visibleNamespaces[i];\n\t\t// get namespace prefix\n\t\t//console.log(node.nodeType,node.tagName,ns.prefix,prefix)\n\t\tif (ns.prefix == prefix){\n\t\t\treturn ns.namespace != uri;\n\t\t}\n\t}\n\t//console.log(isHTML,uri,prefix=='')\n\t//if(isHTML && prefix ==null && uri == 'http://www.w3.org/1999/xhtml'){\n\t//\treturn false;\n\t//}\n\t//node.flag = '11111'\n\t//console.error(3,true,node.flag,node.prefix,node.namespaceURI)\n\treturn true;\n}\nfunction serializeToString(node,buf,isHTML,nodeFilter,visibleNamespaces){\n\tif(nodeFilter){\n\t\tnode = nodeFilter(node);\n\t\tif(node){\n\t\t\tif(typeof node == 'string'){\n\t\t\t\tbuf.push(node);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}else{\n\t\t\treturn;\n\t\t}\n\t\t//buf.sort.apply(attrs, attributeSorter);\n\t}\n\tswitch(node.nodeType){\n\tcase ELEMENT_NODE:\n\t\tif (!visibleNamespaces) visibleNamespaces = [];\n\t\tvar startVisibleNamespaces = visibleNamespaces.length;\n\t\tvar attrs = node.attributes;\n\t\tvar len = attrs.length;\n\t\tvar child = node.firstChild;\n\t\tvar nodeName = node.tagName;\n\t\t\n\t\tisHTML = (htmlns === node.namespaceURI) ||isHTML \n\t\tbuf.push('<',nodeName);\n\t\t\n\t\t\n\t\t\n\t\tfor(var i=0;i<len;i++){\n\t\t\t// add namespaces for attributes\n\t\t\tvar attr = attrs.item(i);\n\t\t\tif (attr.prefix == 'xmlns') {\n\t\t\t\tvisibleNamespaces.push({ prefix: attr.localName, namespace: attr.value });\n\t\t\t}else if(attr.nodeName == 'xmlns'){\n\t\t\t\tvisibleNamespaces.push({ prefix: '', namespace: attr.value });\n\t\t\t}\n\t\t}\n\t\tfor(var i=0;i<len;i++){\n\t\t\tvar attr = attrs.item(i);\n\t\t\tif (needNamespaceDefine(attr,isHTML, visibleNamespaces)) {\n\t\t\t\tvar prefix = attr.prefix||'';\n\t\t\t\tvar uri = attr.namespaceURI;\n\t\t\t\tvar ns = prefix ? ' xmlns:' + prefix : \" xmlns\";\n\t\t\t\tbuf.push(ns, '=\"' , uri , '\"');\n\t\t\t\tvisibleNamespaces.push({ prefix: prefix, namespace:uri });\n\t\t\t}\n\t\t\tserializeToString(attr,buf,isHTML,nodeFilter,visibleNamespaces);\n\t\t}\n\t\t// add namespace for current node\t\t\n\t\tif (needNamespaceDefine(node,isHTML, visibleNamespaces)) {\n\t\t\tvar prefix = node.prefix||'';\n\t\t\tvar uri = node.namespaceURI;\n\t\t\tvar ns = prefix ? ' xmlns:' + prefix : \" xmlns\";\n\t\t\tbuf.push(ns, '=\"' , uri , '\"');\n\t\t\tvisibleNamespaces.push({ prefix: prefix, namespace:uri });\n\t\t}\n\t\t\n\t\tif(child || isHTML && !/^(?:meta|link|img|br|hr|input)$/i.test(nodeName)){\n\t\t\tbuf.push('>');\n\t\t\t//if is cdata child node\n\t\t\tif(isHTML && /^script$/i.test(nodeName)){\n\t\t\t\twhile(child){\n\t\t\t\t\tif(child.data){\n\t\t\t\t\t\tbuf.push(child.data);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tserializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces);\n\t\t\t\t\t}\n\t\t\t\t\tchild = child.nextSibling;\n\t\t\t\t}\n\t\t\t}else\n\t\t\t{\n\t\t\t\twhile(child){\n\t\t\t\t\tserializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces);\n\t\t\t\t\tchild = child.nextSibling;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbuf.push('</',nodeName,'>');\n\t\t}else{\n\t\t\tbuf.push('/>');\n\t\t}\n\t\t// remove added visible namespaces\n\t\t//visibleNamespaces.length = startVisibleNamespaces;\n\t\treturn;\n\tcase DOCUMENT_NODE:\n\tcase DOCUMENT_FRAGMENT_NODE:\n\t\tvar child = node.firstChild;\n\t\twhile(child){\n\t\t\tserializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces);\n\t\t\tchild = child.nextSibling;\n\t\t}\n\t\treturn;\n\tcase ATTRIBUTE_NODE:\n\t\treturn buf.push(' ',node.name,'=\"',node.value.replace(/[<&\"]/g,_xmlEncoder),'\"');\n\tcase TEXT_NODE:\n\t\treturn buf.push(node.data.replace(/[<&]/g,_xmlEncoder));\n\tcase CDATA_SECTION_NODE:\n\t\treturn buf.push( '<![CDATA[',node.data,']]>');\n\tcase COMMENT_NODE:\n\t\treturn buf.push( \"<!--\",node.data,\"-->\");\n\tcase DOCUMENT_TYPE_NODE:\n\t\tvar pubid = node.publicId;\n\t\tvar sysid = node.systemId;\n\t\tbuf.push('<!DOCTYPE ',node.name);\n\t\tif(pubid){\n\t\t\tbuf.push(' PUBLIC \"',pubid);\n\t\t\tif (sysid && sysid!='.') {\n\t\t\t\tbuf.push( '\" \"',sysid);\n\t\t\t}\n\t\t\tbuf.push('\">');\n\t\t}else if(sysid && sysid!='.'){\n\t\t\tbuf.push(' SYSTEM \"',sysid,'\">');\n\t\t}else{\n\t\t\tvar sub = node.internalSubset;\n\t\t\tif(sub){\n\t\t\t\tbuf.push(\" [\",sub,\"]\");\n\t\t\t}\n\t\t\tbuf.push(\">\");\n\t\t}\n\t\treturn;\n\tcase PROCESSING_INSTRUCTION_NODE:\n\t\treturn buf.push( \"<?\",node.target,\" \",node.data,\"?>\");\n\tcase ENTITY_REFERENCE_NODE:\n\t\treturn buf.push( '&',node.nodeName,';');\n\t//case ENTITY_NODE:\n\t//case NOTATION_NODE:\n\tdefault:\n\t\tbuf.push('??',node.nodeName);\n\t}\n}\nfunction importNode(doc,node,deep){\n\tvar node2;\n\tswitch (node.nodeType) {\n\tcase ELEMENT_NODE:\n\t\tnode2 = node.cloneNode(false);\n\t\tnode2.ownerDocument = doc;\n\t\t//var attrs = node2.attributes;\n\t\t//var len = attrs.length;\n\t\t//for(var i=0;i<len;i++){\n\t\t\t//node2.setAttributeNodeNS(importNode(doc,attrs.item(i),deep));\n\t\t//}\n\tcase DOCUMENT_FRAGMENT_NODE:\n\t\tbreak;\n\tcase ATTRIBUTE_NODE:\n\t\tdeep = true;\n\t\tbreak;\n\t//case ENTITY_REFERENCE_NODE:\n\t//case PROCESSING_INSTRUCTION_NODE:\n\t////case TEXT_NODE:\n\t//case CDATA_SECTION_NODE:\n\t//case COMMENT_NODE:\n\t//\tdeep = false;\n\t//\tbreak;\n\t//case DOCUMENT_NODE:\n\t//case DOCUMENT_TYPE_NODE:\n\t//cannot be imported.\n\t//case ENTITY_NODE:\n\t//case NOTATION_NODE:\n\t//can not hit in level3\n\t//default:throw e;\n\t}\n\tif(!node2){\n\t\tnode2 = node.cloneNode(false);//false\n\t}\n\tnode2.ownerDocument = doc;\n\tnode2.parentNode = null;\n\tif(deep){\n\t\tvar child = node.firstChild;\n\t\twhile(child){\n\t\t\tnode2.appendChild(importNode(doc,child,deep));\n\t\t\tchild = child.nextSibling;\n\t\t}\n\t}\n\treturn node2;\n}\n//\n//var _relationMap = {firstChild:1,lastChild:1,previousSibling:1,nextSibling:1,\n//\t\t\t\t\tattributes:1,childNodes:1,parentNode:1,documentElement:1,doctype,};\nfunction cloneNode(doc,node,deep){\n\tvar node2 = new node.constructor();\n\tfor(var n in node){\n\t\tvar v = node[n];\n\t\tif(typeof v != 'object' ){\n\t\t\tif(v != node2[n]){\n\t\t\t\tnode2[n] = v;\n\t\t\t}\n\t\t}\n\t}\n\tif(node.childNodes){\n\t\tnode2.childNodes = new NodeList();\n\t}\n\tnode2.ownerDocument = doc;\n\tswitch (node2.nodeType) {\n\tcase ELEMENT_NODE:\n\t\tvar attrs\t= node.attributes;\n\t\tvar attrs2\t= node2.attributes = new NamedNodeMap();\n\t\tvar len = attrs.length\n\t\tattrs2._ownerElement = node2;\n\t\tfor(var i=0;i<len;i++){\n\t\t\tnode2.setAttributeNode(cloneNode(doc,attrs.item(i),true));\n\t\t}\n\t\tbreak;;\n\tcase ATTRIBUTE_NODE:\n\t\tdeep = true;\n\t}\n\tif(deep){\n\t\tvar child = node.firstChild;\n\t\twhile(child){\n\t\t\tnode2.appendChild(cloneNode(doc,child,deep));\n\t\t\tchild = child.nextSibling;\n\t\t}\n\t}\n\treturn node2;\n}\n\nfunction __set__(object,key,value){\n\tobject[key] = value\n}\n//do dynamic\ntry{\n\tif(Object.defineProperty){\n\t\tObject.defineProperty(LiveNodeList.prototype,'length',{\n\t\t\tget:function(){\n\t\t\t\t_updateLiveList(this);\n\t\t\t\treturn this.$$length;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(Node.prototype,'textContent',{\n\t\t\tget:function(){\n\t\t\t\treturn getTextContent(this);\n\t\t\t},\n\t\t\tset:function(data){\n\t\t\t\tswitch(this.nodeType){\n\t\t\t\tcase ELEMENT_NODE:\n\t\t\t\tcase DOCUMENT_FRAGMENT_NODE:\n\t\t\t\t\twhile(this.firstChild){\n\t\t\t\t\t\tthis.removeChild(this.firstChild);\n\t\t\t\t\t}\n\t\t\t\t\tif(data || String(data)){\n\t\t\t\t\t\tthis.appendChild(this.ownerDocument.createTextNode(data));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t//TODO:\n\t\t\t\t\tthis.data = data;\n\t\t\t\t\tthis.value = data;\n\t\t\t\t\tthis.nodeValue = data;\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t\t\n\t\tfunction getTextContent(node){\n\t\t\tswitch(node.nodeType){\n\t\t\tcase ELEMENT_NODE:\n\t\t\tcase DOCUMENT_FRAGMENT_NODE:\n\t\t\t\tvar buf = [];\n\t\t\t\tnode = node.firstChild;\n\t\t\t\twhile(node){\n\t\t\t\t\tif(node.nodeType!==7 && node.nodeType !==8){\n\t\t\t\t\t\tbuf.push(getTextContent(node));\n\t\t\t\t\t}\n\t\t\t\t\tnode = node.nextSibling;\n\t\t\t\t}\n\t\t\t\treturn buf.join('');\n\t\t\tdefault:\n\t\t\t\treturn node.nodeValue;\n\t\t\t}\n\t\t}\n\t\t__set__ = function(object,key,value){\n\t\t\t//console.log(value)\n\t\t\tobject['$$'+key] = value\n\t\t}\n\t}\n}catch(e){//ie8\n}\n\n//if(typeof require == 'function'){\n\texports.DOMImplementation = DOMImplementation;\n\texports.XMLSerializer = XMLSerializer;\n//}\n\n\n/***/ }),\n\n/***/ \"./node_modules/xmldom/sax.js\":\n/*!************************************!*\\\n !*** ./node_modules/xmldom/sax.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\n//[4] \tNameStartChar\t ::= \t\":\" | [A-Z] | \"_\" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]\r\n//[4a] \tNameChar\t ::= \tNameStartChar | \"-\" | \".\" | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040]\r\n//[5] \tName\t ::= \tNameStartChar (NameChar)*\r\nvar nameStartChar = /[A-Z_a-z\\xC0-\\xD6\\xD8-\\xF6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]///\\u10000-\\uEFFFF\r\nvar nameChar = new RegExp(\"[\\\\-\\\\.0-9\"+nameStartChar.source.slice(1,-1)+\"\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]\");\r\nvar tagNamePattern = new RegExp('^'+nameStartChar.source+nameChar.source+'*(?:\\:'+nameStartChar.source+nameChar.source+'*)?$');\r\n//var tagNamePattern = /^[a-zA-Z_][\\w\\-\\.]*(?:\\:[a-zA-Z_][\\w\\-\\.]*)?$/\r\n//var handlers = 'resolveEntity,getExternalSubset,characters,endDocument,endElement,endPrefixMapping,ignorableWhitespace,processingInstruction,setDocumentLocator,skippedEntity,startDocument,startElement,startPrefixMapping,notationDecl,unparsedEntityDecl,error,fatalError,warning,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,comment,endCDATA,endDTD,endEntity,startCDATA,startDTD,startEntity'.split(',')\r\n\r\n//S_TAG,\tS_ATTR,\tS_EQ,\tS_ATTR_NOQUOT_VALUE\r\n//S_ATTR_SPACE,\tS_ATTR_END,\tS_TAG_SPACE, S_TAG_CLOSE\r\nvar S_TAG = 0;//tag name offerring\r\nvar S_ATTR = 1;//attr name offerring \r\nvar S_ATTR_SPACE=2;//attr name end and space offer\r\nvar S_EQ = 3;//=space?\r\nvar S_ATTR_NOQUOT_VALUE = 4;//attr value(no quot value only)\r\nvar S_ATTR_END = 5;//attr value end and no space(quot end)\r\nvar S_TAG_SPACE = 6;//(attr value end || tag end ) && (space offer)\r\nvar S_TAG_CLOSE = 7;//closed el<el />\r\n\r\nfunction XMLReader(){\r\n\t\r\n}\r\n\r\nXMLReader.prototype = {\r\n\tparse:function(source,defaultNSMap,entityMap){\r\n\t\tvar domBuilder = this.domBuilder;\r\n\t\tdomBuilder.startDocument();\r\n\t\t_copy(defaultNSMap ,defaultNSMap = {})\r\n\t\tparse(source,defaultNSMap,entityMap,\r\n\t\t\t\tdomBuilder,this.errorHandler);\r\n\t\tdomBuilder.endDocument();\r\n\t}\r\n}\r\nfunction parse(source,defaultNSMapCopy,entityMap,domBuilder,errorHandler){\r\n\tfunction fixedFromCharCode(code) {\r\n\t\t// String.prototype.fromCharCode does not supports\r\n\t\t// > 2 bytes unicode chars directly\r\n\t\tif (code > 0xffff) {\r\n\t\t\tcode -= 0x10000;\r\n\t\t\tvar surrogate1 = 0xd800 + (code >> 10)\r\n\t\t\t\t, surrogate2 = 0xdc00 + (code & 0x3ff);\r\n\r\n\t\t\treturn String.fromCharCode(surrogate1, surrogate2);\r\n\t\t} else {\r\n\t\t\treturn String.fromCharCode(code);\r\n\t\t}\r\n\t}\r\n\tfunction entityReplacer(a){\r\n\t\tvar k = a.slice(1,-1);\r\n\t\tif(k in entityMap){\r\n\t\t\treturn entityMap[k]; \r\n\t\t}else if(k.charAt(0) === '#'){\r\n\t\t\treturn fixedFromCharCode(parseInt(k.substr(1).replace('x','0x')))\r\n\t\t}else{\r\n\t\t\terrorHandler.error('entity not found:'+a);\r\n\t\t\treturn a;\r\n\t\t}\r\n\t}\r\n\tfunction appendText(end){//has some bugs\r\n\t\tif(end>start){\r\n\t\t\tvar xt = source.substring(start,end).replace(/&#?\\w+;/g,entityReplacer);\r\n\t\t\tlocator&&position(start);\r\n\t\t\tdomBuilder.characters(xt,0,end-start);\r\n\t\t\tstart = end\r\n\t\t}\r\n\t}\r\n\tfunction position(p,m){\r\n\t\twhile(p>=lineEnd && (m = linePattern.exec(source))){\r\n\t\t\tlineStart = m.index;\r\n\t\t\tlineEnd = lineStart + m[0].length;\r\n\t\t\tlocator.lineNumber++;\r\n\t\t\t//console.log('line++:',locator,startPos,endPos)\r\n\t\t}\r\n\t\tlocator.columnNumber = p-lineStart+1;\r\n\t}\r\n\tvar lineStart = 0;\r\n\tvar lineEnd = 0;\r\n\tvar linePattern = /.*(?:\\r\\n?|\\n)|.*$/g\r\n\tvar locator = domBuilder.locator;\r\n\t\r\n\tvar parseStack = [{currentNSMap:defaultNSMapCopy}]\r\n\tvar closeMap = {};\r\n\tvar start = 0;\r\n\twhile(true){\r\n\t\ttry{\r\n\t\t\tvar tagStart = source.indexOf('<',start);\r\n\t\t\tif(tagStart<0){\r\n\t\t\t\tif(!source.substr(start).match(/^\\s*$/)){\r\n\t\t\t\t\tvar doc = domBuilder.doc;\r\n\t \t\t\tvar text = doc.createTextNode(source.substr(start));\r\n\t \t\t\tdoc.appendChild(text);\r\n\t \t\t\tdomBuilder.currentElement = text;\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(tagStart>start){\r\n\t\t\t\tappendText(tagStart);\r\n\t\t\t}\r\n\t\t\tswitch(source.charAt(tagStart+1)){\r\n\t\t\tcase '/':\r\n\t\t\t\tvar end = source.indexOf('>',tagStart+3);\r\n\t\t\t\tvar tagName = source.substring(tagStart+2,end);\r\n\t\t\t\tvar config = parseStack.pop();\r\n\t\t\t\tif(end<0){\r\n\t\t\t\t\t\r\n\t \t\ttagName = source.substring(tagStart+2).replace(/[\\s<].*/,'');\r\n\t \t\t//console.error('#@@@@@@'+tagName)\r\n\t \t\terrorHandler.error(\"end tag name: \"+tagName+' is not complete:'+config.tagName);\r\n\t \t\tend = tagStart+1+tagName.length;\r\n\t \t}else if(tagName.match(/\\s</)){\r\n\t \t\ttagName = tagName.replace(/[\\s<].*/,'');\r\n\t \t\terrorHandler.error(\"end tag name: \"+tagName+' maybe not complete');\r\n\t \t\tend = tagStart+1+tagName.length;\r\n\t\t\t\t}\r\n\t\t\t\t//console.error(parseStack.length,parseStack)\r\n\t\t\t\t//console.error(config);\r\n\t\t\t\tvar localNSMap = config.localNSMap;\r\n\t\t\t\tvar endMatch = config.tagName == tagName;\r\n\t\t\t\tvar endIgnoreCaseMach = endMatch || config.tagName&&config.tagName.toLowerCase() == tagName.toLowerCase()\r\n\t\t if(endIgnoreCaseMach){\r\n\t\t \tdomBuilder.endElement(config.uri,config.localName,tagName);\r\n\t\t\t\t\tif(localNSMap){\r\n\t\t\t\t\t\tfor(var prefix in localNSMap){\r\n\t\t\t\t\t\t\tdomBuilder.endPrefixMapping(prefix) ;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!endMatch){\r\n\t\t \terrorHandler.fatalError(\"end tag name: \"+tagName+' is not match the current start tagName:'+config.tagName );\r\n\t\t\t\t\t}\r\n\t\t }else{\r\n\t\t \tparseStack.push(config)\r\n\t\t }\r\n\t\t\t\t\r\n\t\t\t\tend++;\r\n\t\t\t\tbreak;\r\n\t\t\t\t// end elment\r\n\t\t\tcase '?':// <?...?>\r\n\t\t\t\tlocator&&position(tagStart);\r\n\t\t\t\tend = parseInstruction(source,tagStart,domBuilder);\r\n\t\t\t\tbreak;\r\n\t\t\tcase '!':// <!doctype,<![CDATA,<!--\r\n\t\t\t\tlocator&&position(tagStart);\r\n\t\t\t\tend = parseDCC(source,tagStart,domBuilder,errorHandler);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tlocator&&position(tagStart);\r\n\t\t\t\tvar el = new ElementAttributes();\r\n\t\t\t\tvar currentNSMap = parseStack[parseStack.length-1].currentNSMap;\r\n\t\t\t\t//elStartEnd\r\n\t\t\t\tvar end = parseElementStartPart(source,tagStart,el,currentNSMap,entityReplacer,errorHandler);\r\n\t\t\t\tvar len = el.length;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(!el.closed && fixSelfClosed(source,end,el.tagName,closeMap)){\r\n\t\t\t\t\tel.closed = true;\r\n\t\t\t\t\tif(!entityMap.nbsp){\r\n\t\t\t\t\t\terrorHandler.warning('unclosed xml attribute');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(locator && len){\r\n\t\t\t\t\tvar locator2 = copyLocator(locator,{});\r\n\t\t\t\t\t//try{//attribute position fixed\r\n\t\t\t\t\tfor(var i = 0;i<len;i++){\r\n\t\t\t\t\t\tvar a = el[i];\r\n\t\t\t\t\t\tposition(a.offset);\r\n\t\t\t\t\t\ta.locator = copyLocator(locator,{});\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//}catch(e){console.error('@@@@@'+e)}\r\n\t\t\t\t\tdomBuilder.locator = locator2\r\n\t\t\t\t\tif(appendElement(el,domBuilder,currentNSMap)){\r\n\t\t\t\t\t\tparseStack.push(el)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdomBuilder.locator = locator;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(appendElement(el,domBuilder,currentNSMap)){\r\n\t\t\t\t\t\tparseStack.push(el)\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(el.uri === 'http://www.w3.org/1999/xhtml' && !el.closed){\r\n\t\t\t\t\tend = parseHtmlSpecialContent(source,end,el.tagName,entityReplacer,domBuilder)\r\n\t\t\t\t}else{\r\n\t\t\t\t\tend++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(e){\r\n\t\t\terrorHandler.error('element parse error: '+e)\r\n\t\t\t//errorHandler.error('element parse error: '+e);\r\n\t\t\tend = -1;\r\n\t\t\t//throw e;\r\n\t\t}\r\n\t\tif(end>start){\r\n\t\t\tstart = end;\r\n\t\t}else{\r\n\t\t\t//TODO: 这里有可能sax回退,有位置错误风险\r\n\t\t\tappendText(Math.max(tagStart,start)+1);\r\n\t\t}\r\n\t}\r\n}\r\nfunction copyLocator(f,t){\r\n\tt.lineNumber = f.lineNumber;\r\n\tt.columnNumber = f.columnNumber;\r\n\treturn t;\r\n}\r\n\r\n/**\r\n * @see #appendElement(source,elStartEnd,el,selfClosed,entityReplacer,domBuilder,parseStack);\r\n * @return end of the elementStartPart(end of elementEndPart for selfClosed el)\r\n */\r\nfunction parseElementStartPart(source,start,el,currentNSMap,entityReplacer,errorHandler){\r\n\tvar attrName;\r\n\tvar value;\r\n\tvar p = ++start;\r\n\tvar s = S_TAG;//status\r\n\twhile(true){\r\n\t\tvar c = source.charAt(p);\r\n\t\tswitch(c){\r\n\t\tcase '=':\r\n\t\t\tif(s === S_ATTR){//attrName\r\n\t\t\t\tattrName = source.slice(start,p);\r\n\t\t\t\ts = S_EQ;\r\n\t\t\t}else if(s === S_ATTR_SPACE){\r\n\t\t\t\ts = S_EQ;\r\n\t\t\t}else{\r\n\t\t\t\t//fatalError: equal must after attrName or space after attrName\r\n\t\t\t\tthrow new Error('attribute equal must after attrName');\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase '\\'':\r\n\t\tcase '\"':\r\n\t\t\tif(s === S_EQ || s === S_ATTR //|| s == S_ATTR_SPACE\r\n\t\t\t\t){//equal\r\n\t\t\t\tif(s === S_ATTR){\r\n\t\t\t\t\terrorHandler.warning('attribute value must after \"=\"')\r\n\t\t\t\t\tattrName = source.slice(start,p)\r\n\t\t\t\t}\r\n\t\t\t\tstart = p+1;\r\n\t\t\t\tp = source.indexOf(c,start)\r\n\t\t\t\tif(p>0){\r\n\t\t\t\t\tvalue = source.slice(start,p).replace(/&#?\\w+;/g,entityReplacer);\r\n\t\t\t\t\tel.add(attrName,value,start-1);\r\n\t\t\t\t\ts = S_ATTR_END;\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//fatalError: no end quot match\r\n\t\t\t\t\tthrow new Error('attribute value no end \\''+c+'\\' match');\r\n\t\t\t\t}\r\n\t\t\t}else if(s == S_ATTR_NOQUOT_VALUE){\r\n\t\t\t\tvalue = source.slice(start,p).replace(/&#?\\w+;/g,entityReplacer);\r\n\t\t\t\t//console.log(attrName,value,start,p)\r\n\t\t\t\tel.add(attrName,value,start);\r\n\t\t\t\t//console.dir(el)\r\n\t\t\t\terrorHandler.warning('attribute \"'+attrName+'\" missed start quot('+c+')!!');\r\n\t\t\t\tstart = p+1;\r\n\t\t\t\ts = S_ATTR_END\r\n\t\t\t}else{\r\n\t\t\t\t//fatalError: no equal before\r\n\t\t\t\tthrow new Error('attribute value must after \"=\"');\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase '/':\r\n\t\t\tswitch(s){\r\n\t\t\tcase S_TAG:\r\n\t\t\t\tel.setTagName(source.slice(start,p));\r\n\t\t\tcase S_ATTR_END:\r\n\t\t\tcase S_TAG_SPACE:\r\n\t\t\tcase S_TAG_CLOSE:\r\n\t\t\t\ts =S_TAG_CLOSE;\r\n\t\t\t\tel.closed = true;\r\n\t\t\tcase S_ATTR_NOQUOT_VALUE:\r\n\t\t\tcase S_ATTR:\r\n\t\t\tcase S_ATTR_SPACE:\r\n\t\t\t\tbreak;\r\n\t\t\t//case S_EQ:\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new Error(\"attribute invalid close char('/')\")\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase ''://end document\r\n\t\t\t//throw new Error('unexpected end of input')\r\n\t\t\terrorHandler.error('unexpected end of input');\r\n\t\t\tif(s == S_TAG){\r\n\t\t\t\tel.setTagName(source.slice(start,p));\r\n\t\t\t}\r\n\t\t\treturn p;\r\n\t\tcase '>':\r\n\t\t\tswitch(s){\r\n\t\t\tcase S_TAG:\r\n\t\t\t\tel.setTagName(source.slice(start,p));\r\n\t\t\tcase S_ATTR_END:\r\n\t\t\tcase S_TAG_SPACE:\r\n\t\t\tcase S_TAG_CLOSE:\r\n\t\t\t\tbreak;//normal\r\n\t\t\tcase S_ATTR_NOQUOT_VALUE://Compatible state\r\n\t\t\tcase S_ATTR:\r\n\t\t\t\tvalue = source.slice(start,p);\r\n\t\t\t\tif(value.slice(-1) === '/'){\r\n\t\t\t\t\tel.closed = true;\r\n\t\t\t\t\tvalue = value.slice(0,-1)\r\n\t\t\t\t}\r\n\t\t\tcase S_ATTR_SPACE:\r\n\t\t\t\tif(s === S_ATTR_SPACE){\r\n\t\t\t\t\tvalue = attrName;\r\n\t\t\t\t}\r\n\t\t\t\tif(s == S_ATTR_NOQUOT_VALUE){\r\n\t\t\t\t\terrorHandler.warning('attribute \"'+value+'\" missed quot(\")!!');\r\n\t\t\t\t\tel.add(attrName,value.replace(/&#?\\w+;/g,entityReplacer),start)\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(currentNSMap[''] !== 'http://www.w3.org/1999/xhtml' || !value.match(/^(?:disabled|checked|selected)$/i)){\r\n\t\t\t\t\t\terrorHandler.warning('attribute \"'+value+'\" missed value!! \"'+value+'\" instead!!')\r\n\t\t\t\t\t}\r\n\t\t\t\t\tel.add(value,value,start)\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase S_EQ:\r\n\t\t\t\tthrow new Error('attribute value missed!!');\r\n\t\t\t}\r\n//\t\t\tconsole.log(tagName,tagNamePattern,tagNamePattern.test(tagName))\r\n\t\t\treturn p;\r\n\t\t/*xml space '\\x20' | #x9 | #xD | #xA; */\r\n\t\tcase '\\u0080':\r\n\t\t\tc = ' ';\r\n\t\tdefault:\r\n\t\t\tif(c<= ' '){//space\r\n\t\t\t\tswitch(s){\r\n\t\t\t\tcase S_TAG:\r\n\t\t\t\t\tel.setTagName(source.slice(start,p));//tagName\r\n\t\t\t\t\ts = S_TAG_SPACE;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase S_ATTR:\r\n\t\t\t\t\tattrName = source.slice(start,p)\r\n\t\t\t\t\ts = S_ATTR_SPACE;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase S_ATTR_NOQUOT_VALUE:\r\n\t\t\t\t\tvar value = source.slice(start,p).replace(/&#?\\w+;/g,entityReplacer);\r\n\t\t\t\t\terrorHandler.warning('attribute \"'+value+'\" missed quot(\")!!');\r\n\t\t\t\t\tel.add(attrName,value,start)\r\n\t\t\t\tcase S_ATTR_END:\r\n\t\t\t\t\ts = S_TAG_SPACE;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t//case S_TAG_SPACE:\r\n\t\t\t\t//case S_EQ:\r\n\t\t\t\t//case S_ATTR_SPACE:\r\n\t\t\t\t//\tvoid();break;\r\n\t\t\t\t//case S_TAG_CLOSE:\r\n\t\t\t\t\t//ignore warning\r\n\t\t\t\t}\r\n\t\t\t}else{//not space\r\n//S_TAG,\tS_ATTR,\tS_EQ,\tS_ATTR_NOQUOT_VALUE\r\n//S_ATTR_SPACE,\tS_ATTR_END,\tS_TAG_SPACE, S_TAG_CLOSE\r\n\t\t\t\tswitch(s){\r\n\t\t\t\t//case S_TAG:void();break;\r\n\t\t\t\t//case S_ATTR:void();break;\r\n\t\t\t\t//case S_ATTR_NOQUOT_VALUE:void();break;\r\n\t\t\t\tcase S_ATTR_SPACE:\r\n\t\t\t\t\tvar tagName = el.tagName;\r\n\t\t\t\t\tif(currentNSMap[''] !== 'http://www.w3.org/1999/xhtml' || !attrName.match(/^(?:disabled|checked|selected)$/i)){\r\n\t\t\t\t\t\terrorHandler.warning('attribute \"'+attrName+'\" missed value!! \"'+attrName+'\" instead2!!')\r\n\t\t\t\t\t}\r\n\t\t\t\t\tel.add(attrName,attrName,start);\r\n\t\t\t\t\tstart = p;\r\n\t\t\t\t\ts = S_ATTR;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase S_ATTR_END:\r\n\t\t\t\t\terrorHandler.warning('attribute space is required\"'+attrName+'\"!!')\r\n\t\t\t\tcase S_TAG_SPACE:\r\n\t\t\t\t\ts = S_ATTR;\r\n\t\t\t\t\tstart = p;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase S_EQ:\r\n\t\t\t\t\ts = S_ATTR_NOQUOT_VALUE;\r\n\t\t\t\t\tstart = p;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase S_TAG_CLOSE:\r\n\t\t\t\t\tthrow new Error(\"elements closed character '/' and '>' must be connected to\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}//end outer switch\r\n\t\t//console.log('p++',p)\r\n\t\tp++;\r\n\t}\r\n}\r\n/**\r\n * @return true if has new namespace define\r\n */\r\nfunction appendElement(el,domBuilder,currentNSMap){\r\n\tvar tagName = el.tagName;\r\n\tvar localNSMap = null;\r\n\t//var currentNSMap = parseStack[parseStack.length-1].currentNSMap;\r\n\tvar i = el.length;\r\n\twhile(i--){\r\n\t\tvar a = el[i];\r\n\t\tvar qName = a.qName;\r\n\t\tvar value = a.value;\r\n\t\tvar nsp = qName.indexOf(':');\r\n\t\tif(nsp>0){\r\n\t\t\tvar prefix = a.prefix = qName.slice(0,nsp);\r\n\t\t\tvar localName = qName.slice(nsp+1);\r\n\t\t\tvar nsPrefix = prefix === 'xmlns' && localName\r\n\t\t}else{\r\n\t\t\tlocalName = qName;\r\n\t\t\tprefix = null\r\n\t\t\tnsPrefix = qName === 'xmlns' && ''\r\n\t\t}\r\n\t\t//can not set prefix,because prefix !== ''\r\n\t\ta.localName = localName ;\r\n\t\t//prefix == null for no ns prefix attribute \r\n\t\tif(nsPrefix !== false){//hack!!\r\n\t\t\tif(localNSMap == null){\r\n\t\t\t\tlocalNSMap = {}\r\n\t\t\t\t//console.log(currentNSMap,0)\r\n\t\t\t\t_copy(currentNSMap,currentNSMap={})\r\n\t\t\t\t//console.log(currentNSMap,1)\r\n\t\t\t}\r\n\t\t\tcurrentNSMap[nsPrefix] = localNSMap[nsPrefix] = value;\r\n\t\t\ta.uri = 'http://www.w3.org/2000/xmlns/'\r\n\t\t\tdomBuilder.startPrefixMapping(nsPrefix, value) \r\n\t\t}\r\n\t}\r\n\tvar i = el.length;\r\n\twhile(i--){\r\n\t\ta = el[i];\r\n\t\tvar prefix = a.prefix;\r\n\t\tif(prefix){//no prefix attribute has no namespace\r\n\t\t\tif(prefix === 'xml'){\r\n\t\t\t\ta.uri = 'http://www.w3.org/XML/1998/namespace';\r\n\t\t\t}if(prefix !== 'xmlns'){\r\n\t\t\t\ta.uri = currentNSMap[prefix || '']\r\n\t\t\t\t\r\n\t\t\t\t//{console.log('###'+a.qName,domBuilder.locator.systemId+'',currentNSMap,a.uri)}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tvar nsp = tagName.indexOf(':');\r\n\tif(nsp>0){\r\n\t\tprefix = el.prefix = tagName.slice(0,nsp);\r\n\t\tlocalName = el.localName = tagName.slice(nsp+1);\r\n\t}else{\r\n\t\tprefix = null;//important!!\r\n\t\tlocalName = el.localName = tagName;\r\n\t}\r\n\t//no prefix element has default namespace\r\n\tvar ns = el.uri = currentNSMap[prefix || ''];\r\n\tdomBuilder.startElement(ns,localName,tagName,el);\r\n\t//endPrefixMapping and startPrefixMapping have not any help for dom builder\r\n\t//localNSMap = null\r\n\tif(el.closed){\r\n\t\tdomBuilder.endElement(ns,localName,tagName);\r\n\t\tif(localNSMap){\r\n\t\t\tfor(prefix in localNSMap){\r\n\t\t\t\tdomBuilder.endPrefixMapping(prefix) \r\n\t\t\t}\r\n\t\t}\r\n\t}else{\r\n\t\tel.currentNSMap = currentNSMap;\r\n\t\tel.localNSMap = localNSMap;\r\n\t\t//parseStack.push(el);\r\n\t\treturn true;\r\n\t}\r\n}\r\nfunction parseHtmlSpecialContent(source,elStartEnd,tagName,entityReplacer,domBuilder){\r\n\tif(/^(?:script|textarea)$/i.test(tagName)){\r\n\t\tvar elEndStart = source.indexOf('</'+tagName+'>',elStartEnd);\r\n\t\tvar text = source.substring(elStartEnd+1,elEndStart);\r\n\t\tif(/[&<]/.test(text)){\r\n\t\t\tif(/^script$/i.test(tagName)){\r\n\t\t\t\t//if(!/\\]\\]>/.test(text)){\r\n\t\t\t\t\t//lexHandler.startCDATA();\r\n\t\t\t\t\tdomBuilder.characters(text,0,text.length);\r\n\t\t\t\t\t//lexHandler.endCDATA();\r\n\t\t\t\t\treturn elEndStart;\r\n\t\t\t\t//}\r\n\t\t\t}//}else{//text area\r\n\t\t\t\ttext = text.replace(/&#?\\w+;/g,entityReplacer);\r\n\t\t\t\tdomBuilder.characters(text,0,text.length);\r\n\t\t\t\treturn elEndStart;\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\treturn elStartEnd+1;\r\n}\r\nfunction fixSelfClosed(source,elStartEnd,tagName,closeMap){\r\n\t//if(tagName in closeMap){\r\n\tvar pos = closeMap[tagName];\r\n\tif(pos == null){\r\n\t\t//console.log(tagName)\r\n\t\tpos = source.lastIndexOf('</'+tagName+'>')\r\n\t\tif(pos<elStartEnd){//忘记闭合\r\n\t\t\tpos = source.lastIndexOf('</'+tagName)\r\n\t\t}\r\n\t\tcloseMap[tagName] =pos\r\n\t}\r\n\treturn pos<elStartEnd;\r\n\t//} \r\n}\r\nfunction _copy(source,target){\r\n\tfor(var n in source){target[n] = source[n]}\r\n}\r\nfunction parseDCC(source,start,domBuilder,errorHandler){//sure start with '<!'\r\n\tvar next= source.charAt(start+2)\r\n\tswitch(next){\r\n\tcase '-':\r\n\t\tif(source.charAt(start + 3) === '-'){\r\n\t\t\tvar end = source.indexOf('-->',start+4);\r\n\t\t\t//append comment source.substring(4,end)//<!--\r\n\t\t\tif(end>start){\r\n\t\t\t\tdomBuilder.comment(source,start+4,end-start-4);\r\n\t\t\t\treturn end+3;\r\n\t\t\t}else{\r\n\t\t\t\terrorHandler.error(\"Unclosed comment\");\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t//error\r\n\t\t\treturn -1;\r\n\t\t}\r\n\tdefault:\r\n\t\tif(source.substr(start+3,6) == 'CDATA['){\r\n\t\t\tvar end = source.indexOf(']]>',start+9);\r\n\t\t\tdomBuilder.startCDATA();\r\n\t\t\tdomBuilder.characters(source,start+9,end-start-9);\r\n\t\t\tdomBuilder.endCDATA() \r\n\t\t\treturn end+3;\r\n\t\t}\r\n\t\t//<!DOCTYPE\r\n\t\t//startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) \r\n\t\tvar matchs = split(source,start);\r\n\t\tvar len = matchs.length;\r\n\t\tif(len>1 && /!doctype/i.test(matchs[0][0])){\r\n\t\t\tvar name = matchs[1][0];\r\n\t\t\tvar pubid = len>3 && /^public$/i.test(matchs[2][0]) && matchs[3][0]\r\n\t\t\tvar sysid = len>4 && matchs[4][0];\r\n\t\t\tvar lastMatch = matchs[len-1]\r\n\t\t\tdomBuilder.startDTD(name,pubid && pubid.replace(/^(['\"])(.*?)\\1$/,'$2'),\r\n\t\t\t\t\tsysid && sysid.replace(/^(['\"])(.*?)\\1$/,'$2'));\r\n\t\t\tdomBuilder.endDTD();\r\n\t\t\t\r\n\t\t\treturn lastMatch.index+lastMatch[0].length\r\n\t\t}\r\n\t}\r\n\treturn -1;\r\n}\r\n\r\n\r\n\r\nfunction parseInstruction(source,start,domBuilder){\r\n\tvar end = source.indexOf('?>',start);\r\n\tif(end){\r\n\t\tvar match = source.substring(start,end).match(/^<\\?(\\S*)\\s*([\\s\\S]*?)\\s*$/);\r\n\t\tif(match){\r\n\t\t\tvar len = match[0].length;\r\n\t\t\tdomBuilder.processingInstruction(match[1], match[2]) ;\r\n\t\t\treturn end+2;\r\n\t\t}else{//error\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}\r\n\treturn -1;\r\n}\r\n\r\n/**\r\n * @param source\r\n */\r\nfunction ElementAttributes(source){\r\n\t\r\n}\r\nElementAttributes.prototype = {\r\n\tsetTagName:function(tagName){\r\n\t\tif(!tagNamePattern.test(tagName)){\r\n\t\t\tthrow new Error('invalid tagName:'+tagName)\r\n\t\t}\r\n\t\tthis.tagName = tagName\r\n\t},\r\n\tadd:function(qName,value,offset){\r\n\t\tif(!tagNamePattern.test(qName)){\r\n\t\t\tthrow new Error('invalid attribute:'+qName)\r\n\t\t}\r\n\t\tthis[this.length++] = {qName:qName,value:value,offset:offset}\r\n\t},\r\n\tlength:0,\r\n\tgetLocalName:function(i){return this[i].localName},\r\n\tgetLocator:function(i){return this[i].locator},\r\n\tgetQName:function(i){return this[i].qName},\r\n\tgetURI:function(i){return this[i].uri},\r\n\tgetValue:function(i){return this[i].value}\r\n//\t,getIndex:function(uri, localName)){\r\n//\t\tif(localName){\r\n//\t\t\t\r\n//\t\t}else{\r\n//\t\t\tvar qName = uri\r\n//\t\t}\r\n//\t},\r\n//\tgetValue:function(){return this.getValue(this.getIndex.apply(this,arguments))},\r\n//\tgetType:function(uri,localName){}\r\n//\tgetType:function(i){},\r\n}\r\n\r\n\r\n\r\n\r\nfunction _set_proto_(thiz,parent){\r\n\tthiz.__proto__ = parent;\r\n\treturn thiz;\r\n}\r\nif(!(_set_proto_({},_set_proto_.prototype) instanceof _set_proto_)){\r\n\t_set_proto_ = function(thiz,parent){\r\n\t\tfunction p(){};\r\n\t\tp.prototype = parent;\r\n\t\tp = new p();\r\n\t\tfor(parent in thiz){\r\n\t\t\tp[parent] = thiz[parent];\r\n\t\t}\r\n\t\treturn p;\r\n\t}\r\n}\r\n\r\nfunction split(source,start){\r\n\tvar match;\r\n\tvar buf = [];\r\n\tvar reg = /'[^']+'|\"[^\"]+\"|[^\\s<>\\/=]+=?|(\\/?\\s*>|<)/g;\r\n\treg.lastIndex = start;\r\n\treg.exec(source);//skip <\r\n\twhile(match = reg.exec(source)){\r\n\t\tbuf.push(match);\r\n\t\tif(match[1])return buf;\r\n\t}\r\n}\r\n\r\nexports.XMLReader = XMLReader;\r\n\r\n\n\n/***/ }),\n\n/***/ \"./src/Canvas.js\":\n/*!***********************!*\\\n !*** ./src/Canvas.js ***!\n \\***********************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /**\r\n * @class draw2d.Canvas\r\n * Interactive paint area of the draw2d library.\r\n * <br>\r\n * <strong>Usage</strong>\r\n *\r\n *\r\n * $(window).load(function () {\r\n *\r\n * let canvas = new draw2d.Canvas(\"gfx_holder\");\r\n *\r\n * let figure1 = new draw2d.shape.basic.Oval();\r\n * let figure2 = new draw2d.shape.basic.Rectangle();\r\n * canvas.add(figure1,100,100);\r\n * canvas.add(figure2,120,150);\r\n * });\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n */\n\n\n_packages2.default.Canvas = Class.extend({\n NAME: \"draw2d.Canvas\",\n\n /**\r\n * @constructor\r\n * Create a new canvas with the given HTML DOM references.\r\n *\r\n * @param {String} canvasId the id of the DOM element to use a parent container\r\n */\n init: function init(canvasId, width, height) {\n var _this = this;\n\n this.setScrollArea(document.body);\n this.canvasId = canvasId;\n this.html = $(\"#\" + canvasId);\n this.html.css({ \"cursor\": \"default\" });\n if (!isNaN(parseFloat(width)) && !isNaN(parseFloat(height))) {\n this.initialWidth = width;\n this.initialHeight = height;\n } else {\n this.initialWidth = this.getWidth();\n this.initialHeight = this.getHeight();\n }\n\n // avoid the \"highlighting\" in iPad, iPhone if the user tab/touch on the canvas.\n // .... I didn't like this.\n this.html.css({ \"-webkit-tap-highlight-color\": \"rgba(0,0,0,0)\" });\n\n // Drag&Drop handling from foreign DIV into the Canvas\n // Only available in combination with jQuery-UI\n //\n // Create the droppable area for the css class \"draw2d_droppable\"\n // This can be done by a palette of toolbar or something else.\n // For more information see : http://jqueryui.com/demos/droppable/\n //\n $(this.html).droppable({\n accept: '.draw2d_droppable',\n over: function over(event, ui) {\n _this.onDragEnter(ui.draggable);\n },\n out: function out(event, ui) {\n _this.onDragLeave(ui.draggable);\n },\n drop: function drop(event, ui) {\n event = _this._getEvent(event);\n var pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.onDrop(ui.draggable, pos.getX(), pos.getY(), event.shiftKey, event.ctrlKey);\n }\n });\n\n // Create the jQuery-Draggable for the palette -> canvas drag&drop interaction\n //\n $(\".draw2d_droppable\").draggable({\n appendTo: \"body\",\n stack: \"body\",\n zIndex: 27000,\n helper: \"clone\",\n drag: function drag(event, ui) {\n event = _this._getEvent(event);\n var pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.onDrag(ui.draggable, pos.getX(), pos.getY(), event.shiftKey, event.ctrlKey);\n },\n stop: function stop(e, ui) {},\n start: function start(e, ui) {\n $(ui.helper).addClass(\"shadow\");\n }\n });\n\n // painting stuff\n //\n if (!isNaN(parseFloat(height))) {\n this.paper = Raphael(canvasId, width, height);\n } else {\n this.paper = Raphael(canvasId, this.getWidth(), this.getHeight());\n }\n this.paper.canvas.style.position = \"absolute\";\n\n // Status handling\n //\n this.zoomPolicy = null; // default ZoomEditPolicy\n this.zoomFactor = 1.0; // range [0.001..10]\n this.selection = new _packages2.default.Selection();\n this.currentDropTarget = null;\n this.currentHoverFigure = null;\n\n // installed to all added figures to avoid that a figure can be placed outside the canvas area\n // during a drag&drop operation\n this.regionDragDropConstraint = new _packages2.default.policy.figure.RegionEditPolicy(0, 0, this.getWidth(), this.getHeight());\n\n // event handling since version 5.0.0\n this.eventSubscriptions = {};\n\n this.editPolicy = new _packages2.default.util.ArrayList();\n\n // internal document with all figures, ports, ....\n //\n this.figures = new _packages2.default.util.ArrayList();\n this.lines = new _packages2.default.util.ArrayList(); // crap - why are connections not just figures. Design by accident\n this.commonPorts = new _packages2.default.util.ArrayList();\n\n // all visible resize handles which can be drag&drop around. Selection handles like AntRectangleSelectionFeedback\n // are not part of this collection. Required for hitTest only\n this.resizeHandles = new _packages2.default.util.ArrayList();\n\n // The CommandStack for undo/redo operations\n //\n this.commandStack = new _packages2.default.command.CommandStack();\n\n // INTERSECTION/CROSSING handling for connections and lines\n //\n this.linesToRepaintAfterDragDrop = new _packages2.default.util.ArrayList();\n this.lineIntersections = new _packages2.default.util.ArrayList();\n\n // alternative/legacy zoom implementation\n // this.installEditPolicy( new draw2d.policy.canvas.ZoomPolicy()); // Responsible for zooming\n this.installEditPolicy(new _packages2.default.policy.canvas.WheelZoomPolicy()); // Responsible for zooming with mouse wheel\n this.installEditPolicy(new _packages2.default.policy.canvas.DefaultKeyboardPolicy()); // Handles the keyboard interaction\n this.installEditPolicy(new _packages2.default.policy.canvas.BoundingboxSelectionPolicy()); // Responsible for selection handling\n this.installEditPolicy(new _packages2.default.policy.canvas.DropInterceptorPolicy()); // Responsible for drop operations\n this.installEditPolicy(new _packages2.default.policy.connection.ComposedConnectionCreatePolicy( // Responsible for connection creation....\n [new _packages2.default.policy.connection.DragConnectionCreatePolicy(), // ....via drag/´drop\n new _packages2.default.policy.connection.ClickConnectionCreatePolicy() // or clicking on the ports and canvas.\n ]));\n\n // Calculate all intersection between the different lines\n //\n this.commandStack.addEventListener(function (event) {\n if (event.isPostChangeEvent() === true) {\n _this.calculateConnectionIntersection();\n _this.linesToRepaintAfterDragDrop.each(function (i, line) {\n line.svgPathString = null;\n line.repaint();\n });\n _this.linesToRepaintAfterDragDrop = new _packages2.default.util.ArrayList();\n }\n });\n\n // DragDrop status handling\n //\n this.mouseDown = false;\n this.mouseDownX = 0;\n this.mouseDownY = 0;\n this.mouseDragDiffX = 0;\n this.mouseDragDiffY = 0;\n\n this.html.bind(\"mouseup touchend\", function (event) {\n if (_this.mouseDown === false) {\n return;\n }\n\n event = _this._getEvent(event);\n _this.calculateConnectionIntersection();\n\n _this.mouseDown = false;\n var pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.editPolicy.each(function (i, policy) {\n policy.onMouseUp(_this, pos.x, pos.y, event.shiftKey, event.ctrlKey);\n });\n\n _this.mouseDragDiffX = 0;\n _this.mouseDragDiffY = 0;\n });\n\n this.html.bind(\"mousemove touchmove\", function (event) {\n event = _this._getEvent(event);\n var pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n if (_this.mouseDown === false) {\n // mouseEnter/mouseLeave events for Figures. Don't use the Raphael or DOM native functions.\n // Raphael didn't work for Rectangle with transparent fill (events only fired for the border line)\n // DOM didn't work well for lines. No eclipse area - you must hit the line exact to retrieve the event.\n // In this case I implement my own stuff...again and again.\n //\n // don't break the main event loop if one element fires an error during enter/leave event.\n try {\n var hover = _this.getBestFigure(pos.x, pos.y);\n if (hover !== _this.currentHoverFigure && _this.currentHoverFigure !== null) {\n _this.currentHoverFigure.onMouseLeave(); // deprecated\n _this.currentHoverFigure.fireEvent(\"mouseleave\");\n _this.fireEvent(\"mouseleave\", { figure: _this.currentHoverFigure });\n }\n if (hover !== _this.currentHoverFigure && hover !== null) {\n hover.onMouseEnter();\n hover.fireEvent(\"mouseenter\");\n _this.fireEvent(\"mouseenter\", { figure: hover });\n }\n _this.currentHoverFigure = hover;\n } catch (exc) {\n // just write it to the console\n console.log(exc);\n }\n\n _this.editPolicy.each(function (i, policy) {\n policy.onMouseMove(_this, pos.x, pos.y, event.shiftKey, event.ctrlKey);\n });\n _this.fireEvent(\"mousemove\", {\n x: pos.x,\n y: pos.y,\n shiftKey: event.shiftKey,\n ctrlKey: event.ctrlKey,\n hoverFigure: _this.currentHoverFigure\n });\n } else {\n var diffXAbs = (event.clientX - _this.mouseDownX) * _this.zoomFactor;\n var diffYAbs = (event.clientY - _this.mouseDownY) * _this.zoomFactor;\n _this.editPolicy.each(function (i, policy) {\n policy.onMouseDrag(_this, diffXAbs, diffYAbs, diffXAbs - _this.mouseDragDiffX, diffYAbs - _this.mouseDragDiffY, event.shiftKey, event.ctrlKey);\n });\n _this.mouseDragDiffX = diffXAbs;\n _this.mouseDragDiffY = diffYAbs;\n _this.fireEvent(\"mousemove\", {\n x: pos.x,\n y: pos.y,\n shiftKey: event.shiftKey,\n ctrlKey: event.ctrlKey,\n hoverFigure: _this.currentHoverFigure\n });\n }\n });\n\n this.html.bind(\"mousedown touchstart\", function (event) {\n try {\n var pos = null;\n switch (event.which) {\n case 1: //touch pressed\n case 0:\n //Left mouse button pressed\n try {\n event.preventDefault();\n event = _this._getEvent(event);\n _this.mouseDownX = event.clientX;\n _this.mouseDownY = event.clientY;\n _this.mouseDragDiffX = 0;\n _this.mouseDragDiffY = 0;\n pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.mouseDown = true;\n _this.editPolicy.each(function (i, policy) {\n policy.onMouseDown(_this, pos.x, pos.y, event.shiftKey, event.ctrlKey);\n });\n } catch (exc) {\n console.log(exc);\n }\n break;\n case 3:\n //Right mouse button pressed\n event.preventDefault();\n if (typeof event.stopPropagation !== \"undefined\") event.stopPropagation();\n event = _this._getEvent(event);\n pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.onRightMouseDown(pos.x, pos.y, event.shiftKey, event.ctrlKey);\n return false;\n break;\n case 2:\n //Middle mouse button pressed\n break;\n default:\n //You have a strange mouse\n }\n } catch (exc) {\n console.log(exc);\n }\n });\n\n // Catch the dblclick and route them to the Canvas hook.\n //\n this.html.on(\"dblclick\", function (event) {\n event = _this._getEvent(event);\n\n _this.mouseDownX = event.clientX;\n _this.mouseDownY = event.clientY;\n var pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.onDoubleClick(pos.x, pos.y, event.shiftKey, event.ctrlKey);\n });\n\n // Catch the click event and route them to the canvas hook\n //\n this.html.on(\"click\", function (event) {\n event = _this._getEvent(event);\n\n // fire only the click event if we didn't move the mouse (drag&drop)\n //\n if (_this.mouseDownX === event.clientX || _this.mouseDownY === event.clientY) {\n var pos = _this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);\n _this.onClick(pos.x, pos.y, event.shiftKey, event.ctrlKey);\n }\n });\n\n // Important: MozMousePixelScroll is required to prevent 1px scrolling\n // in FF event if we call \"e.preventDefault()\"\n this.html.on('MozMousePixelScroll DOMMouseScroll mousewheel', function (e) {\n var event = _this._getEvent(e);\n var pos = _this.fromDocumentToCanvasCoordinate(event.originalEvent.clientX, event.originalEvent.clientY);\n\n var delta = 0;\n if (e.type == 'mousewheel') {\n delta = e.originalEvent.wheelDelta * -1;\n } else if (e.type == 'DOMMouseScroll') {\n delta = 40 * e.originalEvent.detail;\n }\n\n var returnValue = _this.onMouseWheel(delta, pos.x, pos.y, event.shiftKey, event.ctrlKey);\n\n if (returnValue === false) {\n e.preventDefault();\n }\n });\n\n // Catch the keyUp and CTRL-key and route them to the Canvas hook.\n //\n this.keyupCallback = function (event) {\n // don't initiate the delete command if the event comes from an INPUT field. In this case the user want delete\n // a character in the input field and not the related shape\n var target = $(event.target);\n if (!target.is(\"input\") && !target.is(\"textarea\")) {\n _this.editPolicy.each(function (i, policy) {\n if (policy instanceof _packages2.default.policy.canvas.KeyboardPolicy) {\n policy.onKeyUp(_this, event.keyCode, event.shiftKey, event.ctrlKey);\n }\n });\n }\n };\n $(document).bind(\"keyup\", this.keyupCallback);\n\n // Catch the keyDown and CTRL-key and route them to the Canvas hook.\n //\n this.keydownCallback = function (event) {\n // don't initiate the delete command if the event comes from an INPUT field. In this case the user want delete\n // a character in the input field and not the related shape\n var target = $(event.target);\n if (!target.is(\"input\") && !target.is(\"textarea\")) {\n _this.editPolicy.each(function (i, policy) {\n if (policy instanceof _packages2.default.policy.canvas.KeyboardPolicy) {\n policy.onKeyDown(_this, event.keyCode, event.shiftKey, event.ctrlKey);\n }\n });\n }\n };\n $(document).bind(\"keydown\", this.keydownCallback);\n },\n\n /**\r\n * @method\r\n * Call this method if you didn't need the canvas anymore. The method unregister all even handlers\r\n * and free all resources. The canvas is unusable after this call\r\n *\r\n * @since. 4.7.4\r\n */\n destroy: function destroy() {\n this.clear();\n $(document).unbind(\"keydown\", this.keydownCallback);\n $(document).unbind(\"keyup\", this.keyupCallback);\n // reset the event handlers of the canvas without any notice\n //\n this.eventSubscriptions = {};\n\n try {\n this.paper.remove();\n } catch (exc) {\n // breaks in some ie7 version....don't care about this because ie7/8 isn't a state of the art browser ;-)\n }\n },\n\n /**\r\n * @method\r\n * Reset the canvas and delete all model elements.<br>\r\n * You can now reload another model to the canvas with a {@link draw2d.io.Reader}\r\n *\r\n * @since 1.1.0\r\n */\n clear: function clear() {\n // notice all listener that the canvas will be cleared\n this.fireEvent(\"clear\");\n\n var _this = this;\n\n this.lines.clone().each(function (i, e) {\n _this.remove(e);\n });\n\n this.figures.clone().each(function (i, e) {\n _this.remove(e);\n });\n\n this.zoomFactor = 1.0;\n this.selection.clear();\n this.currentDropTarget = null;\n\n // internal document with all figures, ports, ....\n //\n this.figures = new _packages2.default.util.ArrayList();\n this.lines = new _packages2.default.util.ArrayList();\n this.commonPorts = new _packages2.default.util.ArrayList();\n\n this.commandStack.markSaveLocation();\n\n // INTERSECTION/CROSSING handling for connections and lines\n //\n this.linesToRepaintAfterDragDrop = new _packages2.default.util.ArrayList();\n this.lineIntersections = new _packages2.default.util.ArrayList();\n\n // Inform all listener that the selection has been cleanup. Normally this will be done\n // by the edit policies of the canvas..but exceptional this is done in the clear method as well -\n // Design flaw.\n this.fireEvent(\"select\", { figure: null });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Callback for any kind of image export tools to trigger the canvas to hide all unwanted\r\n * decorations. The method is called e.g. from the draw2d.io.png.Writer\r\n *\r\n * @since 4.0.0\r\n * @template\r\n */\n hideDecoration: function hideDecoration() {},\n\n /**\r\n * @method\r\n * callback method for any image export writer to reactivate the decoration\r\n * of the canvas. e.g. grids, rulers,...\r\n *\r\n *\r\n * @since 4.0.0\r\n * @template\r\n */\n showDecoration: function showDecoration() {},\n\n /**\r\n * @method\r\n * Calculate all connection intersection of the canvas.\r\n * Required for \"bridging\" or \"crossing decoration\"\r\n *\r\n * @private\r\n */\n calculateConnectionIntersection: function calculateConnectionIntersection() {\n var _this2 = this;\n\n this.lineIntersections = new _packages2.default.util.ArrayList();\n var lines = this.getLines().clone();\n\n var _loop = function _loop() {\n var l1 = lines.removeElementAt(0);\n lines.each(function (ii, l2) {\n var partInter = l1.intersection(l2);\n if (partInter.getSize() > 0) {\n _this2.lineIntersections.add({ line: l1, other: l2, intersection: partInter });\n _this2.lineIntersections.add({ line: l2, other: l1, intersection: partInter });\n }\n });\n };\n\n while (lines.getSize() > 0) {\n _loop();\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * Install a new selection and edit policy into the canvas\r\n *\r\n * @since 2.2.0\r\n * @param {draw2d.policy.EditPolicy} policy\r\n */\n installEditPolicy: function installEditPolicy(policy) {\n var _this3 = this;\n\n // a canvas can handle only one selection policy\n //\n if (policy instanceof _packages2.default.policy.canvas.SelectionPolicy) {\n // reset old selection before install new selection strategy\n this.getSelection().getAll().each(function (i, figure) {\n figure.unselect();\n });\n\n // remove existing selection policy\n this.editPolicy.grep(function (p) {\n var stay = !(p instanceof _packages2.default.policy.canvas.SelectionPolicy);\n if (stay === false) {\n p.onUninstall(_this3);\n }\n return stay;\n });\n }\n // only one zoom policy at once\n //\n else if (policy instanceof _packages2.default.policy.canvas.ZoomPolicy) {\n // remove existing zoom policy\n this.editPolicy.grep(function (p) {\n var stay = !(p instanceof _packages2.default.policy.canvas.ZoomPolicy);\n if (stay === false) {\n p.onUninstall(_this3);\n }\n return stay;\n });\n // replace the short cut handle for faster access\n this.zoomPolicy = policy;\n } else if (policy instanceof _packages2.default.policy.connection.ConnectionCreatePolicy) {\n this.editPolicy.grep(function (p) {\n var stay = !(p instanceof _packages2.default.policy.connection.ConnectionCreatePolicy);\n if (stay === false) {\n p.onUninstall(_this3);\n }\n return stay;\n });\n } else if (policy instanceof _packages2.default.policy.canvas.DropInterceptorPolicy) {\n // think about if I allow to install only one drop policy\n }\n\n policy.onInstall(this);\n this.editPolicy.add(policy);\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * UnInstall the selection and edit policy from the canvas.\r\n *\r\n * @since 2.2.0\r\n * @param {draw2d.policy.EditPolicy|String} policy\r\n */\n uninstallEditPolicy: function uninstallEditPolicy(policy) {\n if (policy === null) {\n return; //silently\n }\n\n // either remove exact the policy instance...\n //\n var removed = this.editPolicy.remove(policy);\n if (removed !== null) {\n removed.onUninstall(this);\n if (removed instanceof _packages2.default.policy.canvas.ZoomPolicy) {\n this.zoomPolicy = null;\n }\n } else {\n // ..or all of the same class if the policy isn't installed before\n // With this kind of behaviour it is possible to deinstall all policies with\n // the same class at once\n //\n var _this = this;\n var name = typeof policy === \"string\" ? policy : policy.NAME;\n this.editPolicy.grep(function (p) {\n if (p.NAME === name) {\n p.onUninstall(_this);\n // remove short cut handle to the zoom policy\n if (p instanceof _packages2.default.policy.canvas.ZoomPolicy) {\n _this.zoomPolicy = null;\n }\n return false;\n }\n return true;\n });\n }\n return this;\n },\n\n getDropInterceptorPolicies: function getDropInterceptorPolicies() {\n return this.editPolicy.clone().grep(function (p) {\n return p instanceof _packages2.default.policy.canvas.DropInterceptorPolicy;\n });\n },\n\n /**\r\n * @method\r\n * Set the new zoom factor for the canvas. The value must be between [0.01..10]\r\n *\r\n * // you can register an eventhandler if the zoom factor did change\r\n * canvas.on(\"zoom\", function(emitterFigure, zoomData){\r\n * alert(\"canvas zoomed to:\"+zoomData.factor);\r\n * });\r\n *\r\n * @param {Number} zoomFactor new zoom factor.\r\n * @param {Boolean} [animated] set it to true for smooth zoom in/out\r\n */\n setZoom: function setZoom(zoomFactor, animated) {\n // redirect this legacy method to the new CanvasEditPolicy\n //\n if (this.zoomPolicy) {\n this.zoomPolicy.setZoom(zoomFactor, animated);\n }\n },\n\n /**\r\n * @method\r\n * Return the current zoom factor of the canvas.\r\n *\r\n * @returns {Number}\r\n */\n getZoom: function getZoom() {\n return this.zoomFactor;\n },\n\n /**\r\n * @method\r\n * Return the dimension of the drawing area\r\n *\r\n * @since 4.4.0\r\n * @returns {draw2d.geo.Rectangle}\r\n */\n getDimension: function getDimension() {\n return new _packages2.default.geo.Rectangle(0, 0, this.initialWidth, this.initialHeight);\n },\n\n /**\r\n * @method\r\n * Tells the canvas to resize. If you do not specific any parameters\r\n * the canvas will attempt to determine the height and width by the enclosing bounding box\r\n * of all elements and set the dimension accordingly. If you would like to set the dimension\r\n * explicitly pass in an draw2d.geo.Rectangle or an object with <b>height</b> and <b>width</b> properties.\r\n *\r\n * @since 4.4.0\r\n * @param {draw2d.geo.Rectangle} [dim] the dimension to set or null for autodetect\r\n */\n setDimension: function setDimension(dim, height) {\n if (typeof dim === \"undefined\") {\n var widths = this.getFigures().clone().map(function (f) {\n return f.getAbsoluteX() + f.getWidth();\n });\n var heights = this.getFigures().clone().map(function (f) {\n return f.getAbsoluteY() + f.getHeight();\n });\n this.initialHeight = Math.max.apply(Math, _toConsumableArray(heights.asArray()));\n this.initialWidth = Math.max.apply(Math, _toConsumableArray(widths.asArray()));\n } else if (dim instanceof _packages2.default.geo.Rectangle) {\n this.initialWidth = dim.w;\n this.initialHeight = dim.h;\n } else if (typeof dim.width === \"number\" && typeof dim.height === \"number\") {\n this.initialWidth = dim.width;\n this.initialHeight = dim.height;\n } else if (typeof dim === \"number\" && typeof height === \"number\") {\n this.initialWidth = dim;\n this.initialHeight = height;\n }\n this.html.css({ \"width\": this.initialWidth + \"px\", \"height\": this.initialHeight + \"px\" });\n this.paper.setSize(this.initialWidth, this.initialHeight);\n this.setZoom(this.zoomFactor, false);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Transforms a document coordinate to canvas coordinate.\r\n *\r\n * @param {Number} x the x coordinate relative to the window\r\n * @param {Number} y the y coordinate relative to the window\r\n *\r\n * @returns {draw2d.geo.Point} The coordinate in relation to the canvas [0,0] position\r\n */\n fromDocumentToCanvasCoordinate: function fromDocumentToCanvasCoordinate(x, y) {\n return new _packages2.default.geo.Point((x - this.getAbsoluteX() + this.getScrollLeft()) * this.zoomFactor, (y - this.getAbsoluteY() + this.getScrollTop()) * this.zoomFactor);\n },\n\n /**\r\n * @method\r\n * Transforms a canvas coordinate to document coordinate.\r\n *\r\n * @param {Number} x the x coordinate in the canvas\r\n * @param {Number} y the y coordinate in the canvas\r\n *\r\n * @returns {draw2d.geo.Point} the coordinate in relation to the document [0,0] position\r\n */\n fromCanvasToDocumentCoordinate: function fromCanvasToDocumentCoordinate(x, y) {\n return new _packages2.default.geo.Point(x * (1 / this.zoomFactor) + this.getAbsoluteX() - this.getScrollLeft(), y * (1 / this.zoomFactor) + this.getAbsoluteY() - this.getScrollTop());\n },\n\n /**\r\n * @method\r\n * The DOM host of the canvas\r\n *\r\n * @returns {HTMLElement}\r\n */\n getHtmlContainer: function getHtmlContainer() {\n return this.html;\n },\n\n /**\r\n * @method\r\n * Return a common event object independed if we run on an iPad or desktop.\r\n *\r\n * @param event\r\n * @return\r\n * @private\r\n */\n _getEvent: function _getEvent(event) {\n // check for iPad, Android touch events\n //\n if (typeof event.originalEvent !== \"undefined\") {\n if (event.originalEvent.touches && event.originalEvent.touches.length) {\n return event.originalEvent.touches[0];\n } else if (event.originalEvent.changedTouches && event.originalEvent.changedTouches.length) {\n return event.originalEvent.changedTouches[0];\n }\n }\n return event;\n },\n\n /**\r\n * @method\r\n *\r\n * Set the area which are scrolling the canvas. This can be a jquery selector or\r\n * a jQuery node.\r\n *\r\n * @param {String/HTMLElement} elementSelector\r\n **/\n setScrollArea: function setScrollArea(elementSelector) {\n this.scrollArea = $(elementSelector);\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * return the scrolling area of the canvas. This is jQuery object\r\n *\r\n * @return {JQuery}\r\n **/\n getScrollArea: function getScrollArea() {\n return this.scrollArea;\n },\n\n /**\r\n * @method\r\n * The left scroll position.\r\n *\r\n * @return {Number} the left scroll offset of the canvas\r\n **/\n getScrollLeft: function getScrollLeft() {\n return this.getScrollArea().scrollLeft();\n },\n\n /**\r\n * @method\r\n * The top scroll position\r\n *\r\n * @return {Number} the top scroll offset of the cnavas.\r\n **/\n getScrollTop: function getScrollTop() {\n return this.getScrollArea().scrollTop();\n },\n\n /**\r\n * @method\r\n * Set left scroll position.\r\n *\r\n * @param {Number} left the left scroll offset of the canvas\r\n **/\n setScrollLeft: function setScrollLeft(left) {\n this.getScrollArea().scrollLeft();\n\n return this;\n },\n\n /**\r\n * @method\r\n * set top scroll position\r\n *\r\n * @param {Number} top the top scroll offset of the canvas.\r\n **/\n setScrollTop: function setScrollTop(top) {\n this.getScrollArea().scrollTop();\n\n return this;\n },\n\n /**\r\n * @method\r\n * set the new scroll position of the canvas\r\n *\r\n * @param {Number} top the top scroll offset of the canvas.\r\n * @param {Number} left the left scroll offset of the canvas\r\n * @since 5.8.0\r\n **/\n scrollTo: function scrollTo(top, left) {\n this.getScrollArea().scrollTop(top);\n this.getScrollArea().scrollLeft(left);\n\n return this;\n },\n\n /**\r\n * @method\r\n * The absolute document x offset.\r\n *\r\n * @return {Number}\r\n **/\n getAbsoluteX: function getAbsoluteX() {\n return this.html.offset().left;\n },\n\n /**\r\n * @method\r\n * The absolute document y offset.\r\n *\r\n * @return {Number}\r\n **/\n getAbsoluteY: function getAbsoluteY() {\n return this.html.offset().top;\n },\n\n /**\r\n * @method\r\n * Return the width of the canvas\r\n *\r\n * @return {Number}\r\n **/\n getWidth: function getWidth() {\n return this.html.width();\n },\n\n /**\r\n * @method\r\n * Return the height of the canvas.\r\n *\r\n * @return {Number}\r\n **/\n getHeight: function getHeight() {\n return this.html.height();\n },\n\n /**\r\n * @method\r\n * Add a figure at the given x/y coordinate. This method fires an event.\r\n *\r\n * Example:\r\n *\r\n * canvas.on(\"figure:add\", function(emitter, event){\r\n * alert(\"figure added:\");\r\n * });\r\n *\r\n * // or more general if you want catch all figure related events\r\n * //\r\n * canvas.on(\"figure\", function(emitter, event){\r\n * // use event.figure.getCanvas()===null to determine if the\r\n * // figure part of the canvas\r\n *\r\n * alert(\"figure added or removed:\");\r\n * });\r\n *\r\n * @param {draw2d.Figure} figure The figure to add.\r\n * @param {Number/draw2d.geo.Point} [x] The new x coordinate of the figure or the x/y coordinate if it is an draw2d.geo.Point\r\n * @param {Number} [y] The y position.\r\n **/\n add: function add(figure, x, y) {\n if (figure.getCanvas() === this) {\n return;\n }\n\n if (figure instanceof _packages2.default.shape.basic.Line) {\n this.lines.add(figure);\n this.linesToRepaintAfterDragDrop = this.lines;\n } else {\n this.figures.add(figure);\n if (typeof y !== \"undefined\") {\n figure.setPosition(x, y);\n } else if (typeof x !== \"undefined\") {\n figure.setPosition(x);\n }\n }\n figure.setCanvas(this);\n\n // to avoid drag&drop outside of this canvas\n figure.installEditPolicy(this.regionDragDropConstraint);\n\n // important inital call\n figure.getShapeElement();\n\n // init a repaint of the figure. This enforce that all properties\n // ( color, dim, stroke,...) will be set and pushed to SVG node.\n figure.repaint();\n\n // fire the figure:add event before the \"move\" event and after the figure.repaint() call!\n // - the move event can only be fired if the figure part of the canvas.\n // and in this case the notification event should be fired to the listener before\n this.fireEvent(\"figure:add\", { figure: figure, canvas: this });\n\n // fire the event that the figure is part of the canvas\n figure.fireEvent(\"added\", { figure: figure, canvas: this });\n\n // ...now we can fire the initial move event\n figure.fireEvent(\"move\", { figure: figure, dx: 0, dy: 0 });\n\n // this is only required if the used router requires the crossing information\n // of the connections\n if (figure instanceof _packages2.default.shape.basic.PolyLine) {\n this.calculateConnectionIntersection();\n this.linesToRepaintAfterDragDrop.each(function (i, line) {\n line.svgPathString = null;\n line.repaint();\n });\n this.linesToRepaintAfterDragDrop = new _packages2.default.util.ArrayList();\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove a figure or connection from the Canvas. This method fires an event\r\n * which can be catched.\r\n *\r\n * Example:\r\n *\r\n * canvas.on(\"figure:remove\", function(emitter, event){\r\n * alert(\"figure removed:\");\r\n * });\r\n *\r\n * // or more general if you want catch all figure related events\r\n * //\r\n * canvas.on(\"figure\", function(emitter, event){\r\n * // use event.figure.getCanvas()===null to determine if the\r\n * // figure part of the canvas\r\n *\r\n * alert(\"figure added or removed:\");\r\n * });\r\n *\r\n *\r\n * @param {draw2d.Figure} figure The figure to remove\r\n **/\n remove: function remove(figure) {\n // don't fire events of calll callbacks if the fire isn'T part of this canvas\n //\n if (figure.getCanvas() !== this) {\n return this;\n }\n\n // remove the figure from a selection handler as well and cleanup the\n // selection feedback\n var _this = this;\n if (this.getSelection().contains(figure)) {\n this.editPolicy.each(function (i, policy) {\n if (typeof policy.unselect === \"function\") {\n policy.unselect(_this, figure);\n }\n });\n }\n\n if (figure instanceof _packages2.default.shape.basic.Line) {\n this.lines.remove(figure);\n } else {\n this.figures.remove(figure);\n }\n\n figure.setCanvas(null);\n\n if (figure instanceof _packages2.default.Connection) {\n figure.disconnect();\n }\n\n this.fireEvent(\"figure:remove\", { figure: figure });\n\n figure.fireEvent(\"removed\", { figure: figure, canvas: this });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns all lines/connections in this workflow/canvas.<br>\r\n *\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getLines: function getLines() {\n return this.lines;\n },\n\n /**\r\n * @method\r\n * Returns the internal figures.<br>\r\n *\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getFigures: function getFigures() {\n return this.figures;\n },\n\n /**\r\n * @method\r\n * Returns the line or connection with the given id.\r\n *\r\n * @param {String} id The id of the line.\r\n *\r\n * @return {draw2d.shape.basic.Line}\r\n **/\n getLine: function getLine(id) {\n var count = this.lines.getSize();\n for (var i = 0; i < count; i++) {\n var line = this.lines.get(i);\n if (line.getId() === id) {\n return line;\n }\n }\n return null;\n },\n\n /**\r\n * @method\r\n * Returns the figure with the given id.\r\n *\r\n * @param {String} id The id of the figure.\r\n * @return {draw2d.Figure}\r\n **/\n getFigure: function getFigure(id) {\n var figure = null;\n this.figures.each(function (i, e) {\n if (e.id === id) {\n figure = e;\n return false;\n }\n });\n return figure;\n },\n\n /**\r\n * @method\r\n * Return all intersections draw2d.geo.Point between the given line and all other\r\n * lines in the canvas.\r\n *\r\n * @param {draw2d.shape.basic.Line} line the line for the intersection test\r\n * @return {draw2d.util.ArrayList}\r\n */\n getIntersection: function getIntersection(line) {\n var result = new _packages2.default.util.ArrayList();\n\n this.lineIntersections.each(function (i, entry) {\n if (entry.line === line) {\n entry.intersection.each(function (i, p) {\n result.add({ x: p.x, y: p.y, justTouching: p.justTouching, other: entry.other });\n });\n }\n });\n\n return result;\n },\n\n /**\r\n * @method\r\n * Adjust the coordinate with the installed SnapToHelper.\r\n *\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {draw2d.geo.Point} pos The position to adjust\r\n *\r\n * @return {draw2d.geo.Point} the adjusted position\r\n * @private\r\n **/\n snapToHelper: function snapToHelper(figure, pos) {\n // disable snapToPos if we have sleect more than one element\n // which are currently in Drag&Drop operation\n //\n if (this.getSelection().getSize() > 1) {\n return pos;\n }\n\n var _this = this;\n var orig = pos.clone();\n this.editPolicy.each(function (i, policy) {\n pos = policy.snap(_this, figure, pos, orig);\n });\n\n return pos;\n },\n\n /**\r\n * @method\r\n * Register a port to the canvas. This is required for other ports to find a valid drop target.\r\n *\r\n * @param {draw2d.Port} port The new port which has been added to the Canvas.\r\n **/\n registerPort: function registerPort(port) {\n // All elements have the same drop targets.\n //\n if (!this.commonPorts.contains(port)) {\n this.commonPorts.add(port);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove a port from the internal cnavas registration. Now other ports can't find the\r\n * port anymore as drop target. The port itself is still visible.\r\n *\r\n * @param {draw2d.Port} port The port to unregister as potential drop target\r\n * @private\r\n **/\n unregisterPort: function unregisterPort(port) {\n this.commonPorts.remove(port);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return all ports in the canvas\r\n *\r\n */\n getAllPorts: function getAllPorts() {\n return this.commonPorts;\n },\n\n /**\r\n * @method\r\n * Returns the command stack for the Canvas. Required for undo/redo support.\r\n *\r\n * @return {draw2d.command.CommandStack}\r\n **/\n getCommandStack: function getCommandStack() {\n return this.commandStack;\n },\n\n /**\r\n * @method\r\n * Returns the current selected figure in the Canvas.\r\n *\r\n * @return {draw2d.Figure}\r\n **/\n getPrimarySelection: function getPrimarySelection() {\n return this.selection.getPrimary();\n },\n\n /**\r\n * @method\r\n * Returns the current selection.\r\n *\r\n * @return {draw2d.Selection}\r\n **/\n getSelection: function getSelection() {\n return this.selection;\n },\n\n /**\r\n * @method\r\n * Set the current selected figure or figures in the canvas.<br>\r\n * <br>\r\n * You can hand over a draw2d.util.ArrayList since version 4.8.0 for multiple selection.\r\n *\r\n * @param {draw2d.Figure| draw2d.util.ArrayList} object The figure or list of figures to select.\r\n **/\n setCurrentSelection: function setCurrentSelection(object) {\n var _this4 = this;\n\n // deselect the current selected figures\n //\n // clone the array (getAll) before iterate and modify the initial array\n this.selection.getAll().each(function (i, e) {\n _this4.editPolicy.each(function (i, policy) {\n if (typeof policy.unselect === \"function\") {\n policy.unselect(_this4, e);\n }\n });\n });\n this.addSelection(object);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Add the current figure to the selection. If a single selection policy is installed in the\r\n * canvas the selection before is reseted and the figure is the one and only selection.\r\n *\r\n * @param {draw2d.Figure| draw2d.util.ArrayList} object The figure(s) to add to the selection\r\n * @since 4.6.0\r\n **/\n addSelection: function addSelection(object) {\n var _this = this;\n\n var add = function add(i, figure) {\n _this.editPolicy.each(function (i, policy) {\n if (typeof policy.select === \"function\") {\n policy.select(_this, figure);\n }\n });\n };\n\n if (object instanceof _packages2.default.util.ArrayList) {\n object.each(add);\n } else {\n add(0, object);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the best figure at the location [x,y]. It is a simple hit test. Keep in mind that only visible objects\r\n * are returned.\r\n *\r\n *\r\n * @param {Number} x The x position.\r\n * @param {Number} y The y position.\r\n * @param {draw2d.Figure|Array|Class} [blacklist] The figures or class which should be ignored.\r\n * @param {draw2d.Figure|Array|Class} [whitelist] The figures or class should be considered.\r\n *\r\n * @returns {draw2d.Figure}\r\n **/\n getBestFigure: function getBestFigure(x, y, blacklist, whitelist) {\n if (!Array.isArray(blacklist)) {\n if (blacklist) blacklist = [blacklist];else blacklist = [];\n }\n\n if (!Array.isArray(whitelist)) {\n if (whitelist) whitelist = [whitelist];else whitelist = [];\n }\n\n var result = null;\n var testFigure = null;\n\n var isInList = function isInList(testFigure, list) {\n for (var i = 0, len = list.length; i < len; i++) {\n var considering = list[i];\n if (typeof considering === \"function\") {\n if (testFigure instanceof considering) {\n return true;\n }\n } else if (considering === testFigure || considering.contains(testFigure)) {\n return true;\n }\n }\n return false;\n };\n var isInBlacklist = function isInBlacklist(item) {\n return isInList(item, blacklist);\n };\n // empty whitelist means that every kind of object is allowed\n var isInWhitelist = whitelist.length === 0 ? function () {\n return true;\n } : function (item) {\n return isInList(item, whitelist);\n };\n\n // tool method to check recursive a figure for hitTest\n //\n var checkRecursive = function checkRecursive(children) {\n children.each(function (i, e) {\n var c = e.figure;\n checkRecursive(c.children);\n if (result === null && c.isVisible() && c.hitTest(x, y) && !isInBlacklist(c) && isInWhitelist(c)) {\n result = c;\n }\n return result === null; // break the each-loop if we found an element\n });\n };\n\n // ResizeHandles\n //\n for (var i = 0, len = this.resizeHandles.getSize(); i < len; i++) {\n testFigure = this.resizeHandles.get(i);\n if (testFigure.isVisible() && testFigure.hitTest(x, y) && !isInBlacklist(testFigure) && isInWhitelist(testFigure)) {\n return testFigure;\n }\n }\n\n // Checking ports\n //\n for (var _i = 0, _len = this.commonPorts.getSize(); _i < _len; _i++) {\n var port = this.commonPorts.get(_i);\n // check first a children of the figure\n //\n checkRecursive(port.children);\n\n if (result === null && port.isVisible() && port.hitTest(x, y) && !isInBlacklist(port) && isInWhitelist(port)) {\n result = port;\n }\n\n if (result !== null) {\n return result;\n }\n }\n\n // Check now the common objects.\n // run reverse to aware the z-oder of the figures\n for (var _i2 = this.figures.getSize() - 1; _i2 >= 0; _i2--) {\n var figure = this.figures.get(_i2);\n // check first a children of the figure\n //\n checkRecursive(figure.children);\n\n // ...and the figure itself\n //\n if (result === null && figure.isVisible() && figure.hitTest(x, y) && !isInBlacklist(figure) && isInWhitelist(figure)) {\n result = figure;\n break;\n }\n }\n\n var figureResult = result;\n var childResult = null;\n var lineResult = null;\n result = null;\n\n // Check the children of the lines as well\n // Not selectable/draggable. But should receive onClick/onDoubleClick events\n // as well.\n var count = this.lines.getSize();\n for (var _i3 = 0; _i3 < count; _i3++) {\n var line = this.lines.get(_i3);\n // check first a children of the figure\n //\n checkRecursive(line.children);\n\n if (result !== null) {\n childResult = result;\n break;\n }\n }\n\n lineResult = this.getBestLine(x, y, blacklist, whitelist);\n\n var figureIndex = figureResult !== null ? $(figureResult.shape.node).index() : -1;\n var childIndex = childResult !== null ? $(childResult.shape.node).index() : -1;\n var lineIndex = lineResult !== null ? $(lineResult.shape.node).index() : -1;\n var array = [{ i: figureIndex, f: figureResult }, { i: childIndex, f: childResult }, { i: lineIndex, f: lineResult }];\n array = array.filter(function (e) {\n return e.i !== -1;\n });\n array = array.sort(function (a, b) {\n return b.i - a.i;\n });\n\n //console.log(array)\n if (array.length > 0) {\n result = array[0].f;\n }\n\n return result;\n },\n\n /**\r\n * @method\r\n * Return the line which match the hands over coordinate\r\n *\r\n * @param {Number} x the x-coordinate for the hit test\r\n * @param {Number} y the x-coordinate for the hit test\r\n * @param {draw2d.shape.basic.Line} [lineToIgnore] a possible line which should be ignored for the hit test\r\n *\r\n * @private\r\n * @return {draw2d.shape.basic.Line}\r\n **/\n getBestLine: function getBestLine(x, y, lineToIgnore) {\n if (!Array.isArray(lineToIgnore)) {\n if (lineToIgnore instanceof _packages2.default.Figure) {\n lineToIgnore = [lineToIgnore];\n } else {\n lineToIgnore = [];\n }\n }\n var count = this.lines.getSize();\n\n for (var i = 0; i < count; i++) {\n var line = this.lines.get(i);\n if (line.isVisible() === true && line.hitTest(x, y) === true && $.inArray(line, lineToIgnore) === -1) {\n return line;\n }\n }\n return null;\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag&drop operations.<br>\r\n * Droppable can be setup with:\r\n * <pre>\r\n * $(\".draw2d_droppable\").draggable({\r\n * appendTo:\"#container\",\r\n * stack:\"#container\",\r\n * zIndex: 27000,\r\n * helper:\"clone\",\r\n * start: function(e, ui){$(ui.helper).addClass(\"shadow\");}\r\n * });\r\n * </pre>\r\n * Graphiti use the jQuery draggable/droppable lib. Please inspect\r\n * http://jqueryui.com/demos/droppable/ for further information.\r\n *\r\n * @param {HTMLElement} draggedDomNode The DOM element which is currently dragging\r\n *\r\n * @template\r\n **/\n onDragEnter: function onDragEnter(draggedDomNode) {},\n\n /**\r\n * @method\r\n * Called if the DragDrop object is moving around.<br>\r\n * <br>\r\n * Graphiti use the jQuery draggable/droppable lib. Please inspect\r\n * http://jqueryui.com/demos/droppable/ for further information.\r\n *\r\n * @param {HTMLElement} draggedDomNode The dragged DOM element.\r\n * @param {Number} x the x coordinate of the drag\r\n * @param {Number} y the y coordinate of the drag\r\n *\r\n * @template\r\n **/\n onDrag: function onDrag(draggedDomNode, x, y) {},\n\n /**\r\n * @method\r\n * Called if the DragDrop object leaving the current hover figure.<br>\r\n * <br>\r\n * Graphiti use the jQuery draggable/droppable lib. Please inspect\r\n * http://jqueryui.com/demos/droppable/ for further information.\r\n *\r\n * @param {HTMLElement} draggedDomNode The figure which is currently dragging\r\n *\r\n * @template\r\n **/\n onDragLeave: function onDragLeave(draggedDomNode) {},\n\n /**\r\n * @method\r\n * Called if the user drop the droppedDomNode onto the canvas.<br>\r\n * <br>\r\n * Draw2D use the jQuery draggable/droppable lib. Please inspect\r\n * http://jqueryui.com/demos/droppable/ for further information.\r\n *\r\n * @param {HTMLElement} droppedDomNode The dropped DOM element.\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @template\r\n **/\n onDrop: function onDrop(droppedDomNode, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Callback method for the double click event. The x/y coordinates are relative to the top left\r\n * corner of the canvas.\r\n *\r\n * @private\r\n **/\n onDoubleClick: function onDoubleClick(x, y, shiftKey, ctrlKey) {\n // check if a line has been hit\n //\n var figure = this.getBestFigure(x, y);\n\n // or a line/connection. May we should test the line before a figure..?\n // (since 4.0.0)\n if (figure === null) {\n figure = this.getBestLine(x, y);\n }\n\n this.fireEvent(\"dblclick\", { figure: figure, x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n // forward the event to all install policies as well.\n // (since 4.0.0)\n this.editPolicy.each(function (i, policy) {\n policy.onDoubleClick(figure, x, y, shiftKey, ctrlKey);\n });\n },\n\n /**\r\n *\r\n * @param {Number} x the x coordinate of the event\r\n * @param {Number} y the y coordinate of the event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onClick: function onClick(x, y, shiftKey, ctrlKey) {\n // check if a figure has been hit\n //\n var figure = this.getBestFigure(x, y);\n\n this.fireEvent(\"click\", {\n figure: figure,\n x: x,\n y: y,\n relX: figure !== null ? x - figure.getAbsoluteX() : 0,\n relY: figure !== null ? y - figure.getAbsoluteY() : 0,\n shiftKey: shiftKey,\n ctrlKey: ctrlKey\n });\n\n // forward the event to all install policies as well.\n // (since 3.0.0)\n this.editPolicy.each(function (i, policy) {\n policy.onClick(figure, x, y, shiftKey, ctrlKey);\n });\n },\n\n /**\r\n * @method\r\n * The user has triggered a right click. Redirect them to a responsible figure.\r\n *\r\n * @param {Number} x The x-coordinate of the click\r\n * @param {Number} y The y-coordinate of the click\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @private\r\n * @since 1.1.0\r\n **/\n onRightMouseDown: function onRightMouseDown(x, y, shiftKey, ctrlKey) {\n var figure = this.getBestFigure(x, y);\n this.fireEvent(\"contextmenu\", { figure: figure, x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n if (figure !== null) {\n figure.fireEvent(\"contextmenu\", { figure: figure, x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n // @deprecated legacy call\n figure.onContextMenu(x, y);\n\n // forward the event to all installed policies of the figure\n // soft migration from onHookXYZ to Policies.\n // since 4.4.0\n figure.editPolicy.each(function (i, policy) {\n policy.onRightMouseDown(figure, x, y, shiftKey, ctrlKey);\n });\n }\n\n // forward the event to all install policies as well.\n // (since 4.4.0)\n this.editPolicy.each(function (i, policy) {\n policy.onRightMouseDown(figure, x, y, shiftKey, ctrlKey);\n });\n },\n\n /**\r\n *\r\n * @param {Number} wheelDelta the delata of the wheel rotation\r\n * @param {Number} x the x coordinate of the event\r\n * @param {Number} y the y coordinate of the event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onMouseWheel: function onMouseWheel(wheelDelta, x, y, shiftKey, ctrlKey) {\n var returnValue = true;\n this.fireEvent(\"wheel\", { wheelDelta: wheelDelta, x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n // forward the event to all install policies as well.\n // (since 3.0.0)\n this.editPolicy.each(function (i, policy) {\n returnValue = policy.onMouseWheel(wheelDelta, x, y, shiftKey, ctrlKey) && returnValue;\n });\n\n return returnValue;\n },\n\n // NEW EVENT HANDLING SINCE VERSION 5.0.0\n /**\r\n * @method\r\n * Execute all handlers and behaviors attached to the canvas for the given event type.\r\n *\r\n *\r\n * @param {String} event the event to trigger\r\n * @param {Object} [args] optional parameters for the triggered event callback\r\n *\r\n * @since 5.0.0\r\n */\n fireEvent: function fireEvent(event, args) {\n if (typeof this.eventSubscriptions[event] === 'undefined') {\n return;\n }\n\n var subscribers = this.eventSubscriptions[event];\n for (var i = 0; i < subscribers.length; i++) {\n try {\n subscribers[i](this, args);\n } catch (exc) {\n console.log(exc);\n console.log(subscribers[i]);\n debugger;\n }\n }\n },\n\n /**\r\n * @method\r\n * Attach an event handler function for one or more events to the canvas.\r\n * To remove events bound with .on(), see {@link #off}.\r\n *\r\n * possible events are:<br>\r\n * <ul>\r\n * <li>reset</li>\r\n * <li>select</li>\r\n * </ul>\r\n *\r\n * Example:\r\n *\r\n * canvas.on(\"clear\", function(emitter, event){\r\n * alert(\"canvas.clear() called.\");\r\n * });\r\n *\r\n * canvas.on(\"select\", function(emitter,event){\r\n * if(event.figure!==null){\r\n * alert(\"figure selected\");\r\n * }\r\n * else{\r\n * alert(\"selection cleared\");\r\n * }\r\n * });\r\n *\r\n * @param {String} event One or more space-separated event types\r\n * @param {Function} callback A function to execute when the event is triggered.\r\n * @param {draw2d.Canvas} callback.emitter the emitter of the event\r\n * @param {Object} [callback.obj] optional event related data\r\n *\r\n * @since 5.0.0\r\n */\n on: function on(event, callback) {\n var events = event.split(\" \");\n for (var i = 0; i < events.length; i++) {\n if (typeof this.eventSubscriptions[events[i]] === 'undefined') {\n this.eventSubscriptions[events[i]] = [];\n }\n this.eventSubscriptions[events[i]].push(callback);\n }\n return this;\n },\n\n /**\r\n * @method\r\n * The .off() method removes event handlers that were attached with {@link #on}.<br>\r\n * Calling .off() with no arguments removes all handlers attached to the canvas.<br>\r\n * <br>\r\n * If a simple event name such as \"reset\" is provided, all events of that type are removed from the canvas.\r\n *\r\n *\r\n * @param {String|Function} eventOrFunction the event name of the registerd function\r\n * @since 5.0.0\r\n */\n off: function off(eventOrFunction) {\n if (typeof eventOrFunction === \"undefined\") {\n this.eventSubscriptions = {};\n } else if (typeof eventOrFunction === 'string') {\n this.eventSubscriptions[eventOrFunction] = [];\n } else {\n for (var event in this.eventSubscriptions) {\n this.eventSubscriptions[event] = this.eventSubscriptions[event].filter(function (callback) {\n return callback !== eventOrFunction;\n });\n }\n }\n\n return this;\n }\n});\n\n/***/ }),\n\n/***/ \"./src/Configuration.js\":\n/*!******************************!*\\\n !*** ./src/Configuration.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.Configuration = {\n version: \"@VERSION@\",\n i18n: {\n command: {\n move: \"Move Shape\",\n assignShape: \"Add Shapes to Composite\",\n groupShapes: \"Group Shapes\",\n ungroupShapes: \"Ungroup Shapes\",\n deleteShape: \"Delete Shape\",\n moveShape: \"Move Shape\",\n moveLine: \"Move Line\",\n addShape: \"Add Shape\",\n moveVertex: \"Move Vertex\",\n moveVertices: \"Move Vertices\",\n deleteVertex: \"Delete Vertex\",\n resizeShape: \"Resize Shape\",\n rotateShape: \"Rotate Shape\",\n collection: \"Execute Commands\",\n addVertex: \"Add Vertex\",\n changeAttributes: \"Change Attributes\",\n connectPorts: \"Connect Ports\"\n },\n menu: {\n deleteSegment: \"Delete Segment\",\n addSegment: \"Add Segment\"\n },\n dialog: {\n filenamePrompt: \"Enter Filename:\"\n }\n },\n\n factory: {\n // all selection policies calles this method to create a ResizeHandle.\n // It is possible to replace this method with a custom implementation\n // @since 5.2.0\n createResizeHandle: function createResizeHandle(owner, type, width, height) {\n // create a custom SelectionPolicy instead\n console.log(\"deprecated call factory.createResizeHandle\");\n\n return new _packages2.default.ResizeHandle({ owner: owner, type: type, width: width, height: height });\n },\n // The commands an canvas calles this method to create a new connection.\n // all parameters are optional.\n // @since 5.3.0\n // @deprecated\n createConnection: function createConnection(sourcePort, targetPort, callback, dropTarget) {\n console.log(\"deprecated call factory.createConnection\");\n debugger;\n return new _packages2.default.Connection();\n },\n // @since 5.3.0\n createInputPort: function createInputPort(relatedFigure) {\n return new _packages2.default.InputPort();\n },\n // @since 5.3.0\n createOutputPort: function createOutputPort(relatedFigure) {\n return new _packages2.default.OutputPort();\n },\n // @since 5.3.0\n createHybridPort: function createHybridPort(relatedFigure) {\n return new _packages2.default.HybridPort();\n }\n }\n};\n\n/***/ }),\n\n/***/ \"./src/Connection.js\":\n/*!***************************!*\\\n !*** ./src/Connection.js ***!\n \\***************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.Connection\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start();\r\n * var end = new draw2d.shape.node.End();\r\n\r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * var c = new draw2d.Connection();\r\n *\r\n * // Set the endpoint decorations for the connection\r\n * //\r\n * c.setSourceDecorator(new draw2d.decoration.connection.BarDecorator());\r\n * c.setTargetDecorator(new draw2d.decoration.connection.DiamondDecorator());\r\n * // Connect the endpoints with the start and end port\r\n * //\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n * Connections figures are used to display a line between two points. The Connection interface extends\r\n * {@link draw2d.shape.basic.PolyLine PolyLine}.<br>\r\n * The source and target endpoints of a connection are each defined using a {@link draw2d.layout.anchor.ConnectionAnchor ConnectionAnchor}.\r\n * These endpoints, along with any other points on the connection, are set by the connection's {@link draw2d.layout.connection.ConnectionRouter ConnectionRouter}.\r\n * <br>\r\n * Usually every connection in a drawing has the same router instance. Connections with\r\n * common endpoints can share anchor instances as well.\r\n *\r\n * <h2>Connection Usage</h2>\r\n *\r\n * Connections are created and added just like any other figure. Unlike normal figures, you must not set the\r\n * bounds of a connection. Instead, you must provide the source and target port and let the connection router\r\n * calculate the connection's points. The connection then determines its own bounding box.<br>\r\n * <br>\r\n * A connection has a simple router by default - one that can connect the source and target anchors. But additional routers\r\n * are available and can be set on the connection. Some routers can handle constraints for the connection. Note that when\r\n * setting a routing constraint on a connection, you must first set the router which will use that constraint.<br>\r\n * <br>\r\n *\r\n * <b>TODO:<br></b>\r\n * <i>\r\n * A convenient way to share the router with all connections and to place connections above the drawing is to use a\r\n * ConnectionLayer. The layer has a connection router property which it shares with every child that's a connection.\r\n * You can update this property and easily change every connection's router at once.\r\n * </i>\r\n * <br>\r\n * <br>\r\n * <h2>Routing and Anchors</h2>\r\n * A connection always has a router and it must set at least two ports on the connection: the source and target\r\n * endpoints. By default, or when set to null, the connection's routing will be performed by an internal default router.\r\n * The ends are placed with the help of {@link draw2d.layout.anchor.ConnectionAnchor anchors}. An\r\n * {@link draw2d.layout.anchor.ConnectionAnchor anchors} is a fixed or calculated location, usually associated with some\r\n * figure. For example, the {@link draw2d.layout.anchor.ChopboxConnectionAnchor ChopboxAnchor} finds the point at which a\r\n * line going to the reference point intersects a box, such as the bounds of a figure. The reference point is either\r\n * the anchor at the opposite end, or a bendpoint or some other point nearest to the anchor.\r\n * <br>\r\n * {@img jsdoc_chopbox.gif ChopboxAnchor}\r\n * <br>\r\n * The router calculates the endpoints and any other points in the middle of the connection. It then sets the points on the\r\n * connection by calling {@link draw2d.shape.basic.PolyLine#addPoint Polyline.addPoint}. The connection's existing point list\r\n * can be reused to reduce garbage, but the points must be set on the connection anyway so that it knows about any changes made.\r\n * <br>\r\n * <h2>Adding Decorations and Children to Connections</h2>\r\n * Like most figures, Connection supports the addition of children. The children might be a label that\r\n * decorate the connection. The placement of each type of decoration can vary, so a {@link draw2d.layout.locator.ConnectionLocator ConnectionLocator}\r\n * is used to delegate to each child's constraint object, a Locator. <br>\r\n * <br>\r\n * {@link draw2d.decoration.connection.Decorator Decorator} can be used to create and render a rotatable shape at\r\n * the end or start of a connection like arrows or boxes. Examples are {@link draw2d.decoration.connection.ArrowDecorator ArrowDecorator}, {@link draw2d.decoration.connection.BarDecorator BarDecorator} or {@link draw2d.decoration.connection.CircleDecorator CircleDecorator}\r\n * <br>\r\n * <h2>Connection Layout</h2>\r\n * Connections extend the process of validation and layout to include routing. Since layout is the process of positioning children, routing must\r\n * come first. This allows a child's locator to operate on the connection's newly-routed points.<br>\r\n * Check out [Class System Guide](#!/guide/class_system) for additional reading.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.PolyLine\r\n */\n\n_packages2.default.Connection = _packages2.default.shape.basic.PolyLine.extend({\n NAME: \"draw2d.Connection\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.sourcePort = null;\n this.targetPort = null;\n\n this.oldPoint = null;\n\n this.sourceDecorator = null;\n /*:draw2d.ConnectionDecorator*/\n this.targetDecorator = null;\n /*:draw2d.ConnectionDecorator*/\n\n // decoration of the polyline\n //\n this.sourceDecoratorNode = null;\n this.targetDecoratorNode = null;\n\n // helper var to restore the initial visual representation if the user drag&drop\n // the port outside of the browser window. In this case some events get lost and\n // I can restore the initial state of the connection if the mouse comes in the browser window\n // again.\n this.isMoving = false;\n\n var _this = this;\n this.moveListener = function (figure) {\n if (figure === _this.sourcePort) {\n _this.setStartPoint(_this.sourcePort.getAbsoluteX(), _this.sourcePort.getAbsoluteY());\n } else {\n _this.setEndPoint(_this.targetPort.getAbsoluteX(), _this.targetPort.getAbsoluteY());\n }\n };\n\n this._super((0, _extend2.default)({\n color: \"#129CE4\",\n stroke: 2,\n // outlineStroke:1,\n // outlineColor:\"#ffffff\",\n radius: 3\n }, attr), (0, _extend2.default)({\n sourceDecorator: this.setSourceDecorator,\n targetDecorator: this.setTargetDecorator,\n source: this.setSource,\n target: this.setTarget\n }, setter), (0, _extend2.default)({\n sourceDecorator: this.getSourceDecorator,\n targetDecorator: this.getTargetDecorator,\n source: this.getSource,\n target: this.getTarget\n }, getter));\n },\n\n /**\r\n * @private\r\n **/\n disconnect: function disconnect() {\n if (this.sourcePort !== null) {\n this.sourcePort.off(this.moveListener);\n this.sourcePort.connections.remove(this);\n\n // fire the events to all listener\n this.sourcePort.fireEvent(\"disconnect\", { port: this.sourcePort, connection: this });\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"disconnect\", { \"port\": this.sourcePort, \"connection\": this });\n }\n this.sourcePort.onDisconnect(this);\n\n this.fireSourcePortRouteEvent();\n }\n\n if (this.targetPort !== null) {\n this.targetPort.off(this.moveListener);\n this.targetPort.connections.remove(this);\n\n // fire the events to all listener\n this.targetPort.fireEvent(\"disconnect\", { port: this.targetPort, connection: this });\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"disconnect\", { \"port\": this.targetPort, \"connection\": this });\n }\n this.targetPort.onDisconnect(this);\n\n this.fireTargetPortRouteEvent();\n }\n },\n\n /**\r\n * @private\r\n **/\n reconnect: function reconnect() {\n if (this.sourcePort !== null) {\n this.sourcePort.on(\"move\", this.moveListener);\n this.sourcePort.connections.add(this);\n\n // fire the events to all listener\n this.sourcePort.fireEvent(\"connect\", { port: this.sourcePort, connection: this });\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"connect\", { \"port\": this.sourcePort, \"connection\": this });\n }\n this.sourcePort.onConnect(this);\n\n this.fireSourcePortRouteEvent();\n }\n\n if (this.targetPort !== null) {\n this.targetPort.on(\"move\", this.moveListener);\n this.targetPort.connections.add(this);\n\n // fire the events to all listener\n this.targetPort.fireEvent(\"connect\", { port: this.targetPort, connection: this });\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"connect\", { \"port\": this.targetPort, \"connection\": this });\n }\n this.targetPort.onConnect(this);\n\n this.fireTargetPortRouteEvent();\n }\n this.routingRequired = true;\n this.repaint();\n },\n\n /**\r\n * You can't drag&drop the resize handles of a connector.\r\n * @type boolean\r\n **/\n isResizeable: function isResizeable() {\n return this.isDraggable();\n },\n\n /**\r\n * @method\r\n * Add a child figure to the Connection. The hands over figure doesn't support drag&drop\r\n * operations. It's only a decorator for the connection.<br>\r\n * Mainly for labels or other fancy decorations :-)\r\n *\r\n * @param {draw2d.Figure} child the figure to add as decoration to the connection.\r\n * @param {draw2d.layout.locator.ConnectionLocator} locator the locator for the child.\r\n * @param {Number} [index] optional index where to insert the figure\r\n **/\n add: function add(child, locator, index) {\n // just to ensure the right interface for the locator.\n // The base class needs only 'draw2d.layout.locator.Locator'.\n if (!(locator instanceof _packages2.default.layout.locator.ConnectionLocator)) {\n throw \"Locator must implement the class draw2d.layout.locator.ConnectionLocator\";\n }\n\n this._super(child, locator, index);\n },\n\n /**\r\n * @method\r\n * Set the ConnectionDecorator for this object.\r\n *\r\n * @param {draw2d.decoration.connection.Decorator} decorator the new source decorator for the connection\r\n **/\n setSourceDecorator: function setSourceDecorator(decorator) {\n this.sourceDecorator = decorator;\n this.routingRequired = true;\n if (this.sourceDecoratorNode !== null) {\n this.sourceDecoratorNode.remove();\n this.sourceDecoratorNode = null;\n }\n this.repaint();\n },\n\n /**\r\n * @method\r\n * Get the current source ConnectionDecorator for this object.\r\n *\r\n * @returns draw2d.decoration.connection.Decorator\r\n **/\n getSourceDecorator: function getSourceDecorator() {\n return this.sourceDecorator;\n },\n\n /**\r\n * @method\r\n * Set the ConnectionDecorator for this object.\r\n *\r\n * @param {draw2d.decoration.connection.Decorator} decorator the new target decorator for the connection\r\n **/\n setTargetDecorator: function setTargetDecorator(decorator) {\n this.targetDecorator = decorator;\n this.routingRequired = true;\n if (this.targetDecoratorNode !== null) {\n this.targetDecoratorNode.remove();\n this.targetDecoratorNode = null;\n }\n this.repaint();\n },\n\n /**\r\n * @method\r\n * Get the current target ConnectionDecorator for this object.\r\n *\r\n * @returns draw2d.decoration.connection.Decorator\r\n **/\n getTargetDecorator: function getTargetDecorator() {\n return this.targetDecorator;\n },\n\n /**\r\n * @method\r\n * Calculate the path of the polyline.\r\n *\r\n * @param {Object} routingHints some helper attributes for the router\r\n * @param {Boolean} routingHints.startMoved is true if just the start location has moved\r\n * @param {Boolean} routingHints.destMoved is true if the destination location has changed\r\n * @private\r\n */\n calculatePath: function calculatePath(routingHints) {\n\n if (this.sourcePort === null || this.targetPort === null) {\n return this;\n }\n\n this._super(routingHints);\n\n if (this.shape !== null) {\n var z1 = this.sourcePort.getZOrder();\n var z2 = this.targetPort.getZOrder();\n z1 < z2 ? this.toBack(this.sourcePort) : this.toBack(this.targetPort);\n }\n\n return this;\n },\n\n /**\r\n * @private\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n if (this.sourcePort === null || this.targetPort === null) {\n return;\n }\n\n this._super(attributes);\n\n // paint the decorator if any exists\n //\n if (this.targetDecorator !== null && this.targetDecoratorNode === null) {\n this.targetDecoratorNode = this.targetDecorator.paint(this.getCanvas().paper);\n }\n\n if (this.sourceDecorator !== null && this.sourceDecoratorNode === null) {\n this.sourceDecoratorNode = this.sourceDecorator.paint(this.getCanvas().paper);\n }\n\n var _this = this;\n\n // translate/transform the decorations to the end/start of the connection\n // and rotate them as well\n //\n if (this.sourceDecoratorNode !== null) {\n var start = this.getVertices().first();\n this.sourceDecoratorNode.transform(\"r\" + this.getStartAngle() + \",\" + start.x + \",\" + start.y + \" t\" + start.x + \",\" + start.y);\n // propagate the color and the opacity to the decoration as well\n this.sourceDecoratorNode.attr({ \"stroke\": \"#\" + this.lineColor.hex(), opacity: this.alpha });\n this.sourceDecoratorNode.forEach(function (shape) {\n shape.node.setAttribute(\"class\", _this.cssClass !== null ? _this.cssClass : \"\");\n });\n }\n\n if (this.targetDecoratorNode !== null) {\n var end = this.getVertices().last();\n this.targetDecoratorNode.transform(\"r\" + this.getEndAngle() + \",\" + end.x + \",\" + end.y + \" t\" + end.x + \",\" + end.y);\n this.targetDecoratorNode.attr({ \"stroke\": \"#\" + this.lineColor.hex(), opacity: this.alpha });\n this.targetDecoratorNode.forEach(function (shape) {\n shape.node.setAttribute(\"class\", _this.cssClass !== null ? _this.cssClass : \"\");\n });\n }\n },\n\n /**\r\n * @method\r\n * The x-offset related to the canvas.\r\n * Didn't provided by a connection. Return always '0'. This is required\r\n * for children position calculation. (e.g. Label decoration)\r\n *\r\n * @return {Number} the x-offset to the parent figure\r\n **/\n getAbsoluteX: function getAbsoluteX() {\n return 0;\n },\n\n /**\r\n * @method\r\n * The y-offset related to the canvas.\r\n * Didn't provided by a connection. Return always '0'. This is required\r\n * for children position calculation. (e.g. Label decoration)\r\n *\r\n * @return {Number} The y-offset to the parent figure.\r\n **/\n getAbsoluteY: function getAbsoluteY() {\n return 0;\n },\n\n postProcess: function postProcess(postProcessCache) {\n this.router.postProcess(this, this.getCanvas(), postProcessCache);\n },\n\n /**\r\n * @method\r\n * Don't call them manually. This will be done by the framework.<br>\r\n * Will be called if the object are moved via drag and drop.\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call\r\n * the super implementation via <code>this._super(dx, dy, dx2, dy2);</code>\r\n * @private\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n if (this.command === null) {\n return;\n }\n\n // Delegate the drag&drop operation to the router. The router has\n // all the meta information how to update start/end vertices\n //\n this.router.onDrag(this, dx, dy, dx2, dy2);\n\n this.command.updateVertices(this.getVertices().clone());\n\n var _this = this;\n\n // notify all installed policies\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.onDrag(_this.canvas, _this);\n }\n });\n\n this.svgPathString = null;\n this.repaint();\n\n // Update the resize handles if the user change the position of the\n // element via an API call.\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.fireEvent(\"move\", { figure: this, dx: dx, dy: dx });\n },\n\n /**\r\n * @method\r\n * Moves the element so it is the closest to the viewer’s eyes, on top of other elements. Additional\r\n * the internal model changed as well.\r\n *\r\n * Optional: Inserts current object in front of the given one.\r\n *\r\n * @param {draw2d.Figure} [figure] move current object in front of the given one.\r\n * @since 3.0.0\r\n */\n toFront: function toFront(figure) {\n this._super(figure);\n\n // ensure that the decoration is always in front of the connection\n //\n if (this.shape !== null) {\n if (this.targetDecoratorNode !== null) {\n this.targetDecoratorNode.insertAfter(this.shape);\n }\n if (this.sourceDecoratorNode !== null) {\n this.sourceDecoratorNode.insertAfter(this.shape);\n }\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Moves the element to the background. Additional\r\n * the internal model changed as well.\r\n *\r\n * @param {draw2d.Figure} [figure] move this object behind of the 'figure'.\r\n * @since 4.7.2\r\n */\n toBack: function toBack(figure) {\n this._super(figure);\n\n if (this.shape !== null) {\n if (this.targetDecoratorNode !== null) {\n this.targetDecoratorNode.insertAfter(this.shape);\n }\n if (this.sourceDecoratorNode !== null) {\n this.sourceDecoratorNode.insertAfter(this.shape);\n }\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the recalculated position of the start point with the usage of\r\n * the installed connection anchor locator.\r\n *\r\n * @return {draw2d.geo.Point}\r\n * @deprecated\r\n **/\n getStartPoint: function getStartPoint(refPoint) {\n return this.getStartPosition(refPoint);\n },\n\n getStartPosition: function getStartPosition(refPoint) {\n if (this.isMoving === false) {\n if (refPoint) {\n return this.sourcePort.getConnectionAnchorLocation(refPoint, this);\n }\n return this.sourcePort.getConnectionAnchorLocation(this.targetPort.getConnectionAnchorReferencePoint(this), this);\n }\n\n return this._super();\n },\n\n /**\r\n * @method\r\n * Return the recalculated position of the start point with the usage of\r\n * the installed connection anchor locator.\r\n *\r\n * @return {draw2d.geo.Point}\r\n * @deprecated\r\n **/\n getEndPoint: function getEndPoint(refPoint) {\n return this.getEndPosition(refPoint);\n },\n\n getEndPosition: function getEndPosition(refPoint) {\n if (this.isMoving === false) {\n if (refPoint) {\n return this.targetPort.getConnectionAnchorLocation(refPoint, this);\n }\n return this.targetPort.getConnectionAnchorLocation(this.sourcePort.getConnectionAnchorReferencePoint(this), this);\n }\n\n return this._super();\n },\n\n /**\r\n * @method\r\n * Set the new source port of this connection. This enforce a repaint of the connection.\r\n *\r\n * @param {draw2d.Port} port The new source port of this connection.\r\n *\r\n **/\n setSource: function setSource(port) {\n if (this.sourcePort !== null) {\n this.sourcePort.off(this.moveListener);\n this.sourcePort.connections.remove(this);\n this.sourcePort.fireEvent(\"disconnect\", { port: this.sourcePort, connection: this });\n // it is possible that a connection has already a port but is not assigned to\n // a canvas. In this case we must check if the canvas set correct before we fire this event\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"disconnect\", { \"port\": this.sourcePort, \"connection\": this });\n }\n this.sourcePort.onDisconnect(this);\n }\n\n this.sourcePort = port;\n if (this.sourcePort === null) {\n return;\n }\n\n this.routingRequired = true;\n this.fireSourcePortRouteEvent();\n this.sourcePort.connections.add(this);\n this.sourcePort.on(\"move\", this.moveListener);\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"connect\", { \"port\": this.sourcePort, \"connection\": this });\n }\n this.sourcePort.fireEvent(\"connect\", { port: this.sourcePort, connection: this });\n this.sourcePort.onConnect(this);\n\n this.setStartPoint(port.getAbsoluteX(), port.getAbsoluteY());\n this.fireEvent(\"connect\", { \"port\": this.sourcePort, \"connection\": this });\n },\n\n /**\r\n * @method\r\n * Returns the source port of this connection.\r\n *\r\n * @return {draw2d.Port}\r\n **/\n getSource: function getSource() {\n return this.sourcePort;\n },\n\n /**\r\n * @method\r\n * Set the target port of this connection. This enforce a repaint of the connection.\r\n *\r\n * @param {draw2d.Port} port The new target port of this connection\r\n **/\n setTarget: function setTarget(port) {\n if (this.targetPort !== null) {\n this.targetPort.off(this.moveListener);\n this.targetPort.connections.remove(this);\n this.targetPort.fireEvent(\"disconnect\", { port: this.targetPort, connection: this });\n // it is possible that a connection has already a port but is not assigned to\n // a canvas. In this case we must check if the canvas set correct before we fire this event\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"disconnect\", { \"port\": this.targetPort, \"connection\": this });\n }\n this.targetPort.onDisconnect(this);\n }\n\n this.targetPort = port;\n if (this.targetPort === null) {\n return;\n }\n\n this.routingRequired = true;\n this.fireTargetPortRouteEvent();\n this.targetPort.connections.add(this);\n this.targetPort.on(\"move\", this.moveListener);\n if (this.canvas !== null) {\n this.canvas.fireEvent(\"connect\", { \"port\": this.targetPort, \"connection\": this });\n }\n this.targetPort.fireEvent(\"connect\", { port: this.targetPort, connection: this });\n this.targetPort.onConnect(this);\n\n this.setEndPoint(port.getAbsoluteX(), port.getAbsoluteY());\n this.fireEvent(\"connect\", { \"port\": this.targetPort, \"connection\": this });\n },\n\n /**\r\n * @method\r\n * Returns the target port of this connection.\r\n *\r\n * @returns {draw2d.Port}\r\n **/\n getTarget: function getTarget() {\n return this.targetPort;\n },\n\n /**\r\n * @method\r\n * Method returns true if the connection has at least one common draw2d.Port with the given connection.\r\n *\r\n * @param {draw2d.Connection} other\r\n *\r\n * @returns {Boolean}\r\n */\n sharingPorts: function sharingPorts(other) {\n return this.sourcePort == other.sourcePort || this.sourcePort == other.targetPort || this.targetPort == other.sourcePort || this.targetPort == other.targetPort;\n },\n\n /**\r\n * @method\r\n * Set the canvas element of this figures.\r\n *\r\n * @param {draw2d.Canvas} canvas the new parent of the figure or null\r\n */\n setCanvas: function setCanvas(canvas) {\n if (this.canvas === canvas) {\n return; // nothing to do\n }\n\n var notiCanvas = this.canvas == null ? canvas : this.canvas;\n\n this._super(canvas);\n\n if (canvas !== null && _packages2.default.Connection.DROP_FILTER === null) {\n _packages2.default.Connection.DROP_FILTER = canvas.paper.createFilter();\n _packages2.default.Connection.DROP_FILTER.element.setAttribute(\"width\", \"250%\");\n _packages2.default.Connection.DROP_FILTER.element.setAttribute(\"height\", \"250%\");\n _packages2.default.Connection.DROP_FILTER.createShadow(1, 1, 2, 0.3);\n }\n\n if (this.sourceDecoratorNode !== null) {\n this.sourceDecoratorNode.remove();\n this.sourceDecoratorNode = null;\n }\n\n if (this.targetDecoratorNode !== null) {\n this.targetDecoratorNode.remove();\n this.targetDecoratorNode = null;\n }\n\n if (this.canvas === null) {\n if (this.sourcePort !== null) {\n this.sourcePort.off(this.moveListener);\n notiCanvas.fireEvent(\"disconnect\", { \"port\": this.sourcePort, \"connection\": this });\n this.sourcePort.onDisconnect(this);\n }\n if (this.targetPort !== null) {\n this.targetPort.off(this.moveListener);\n notiCanvas.fireEvent(\"disconnect\", { \"port\": this.targetPort, \"connection\": this });\n this.targetPort.onDisconnect(this);\n }\n } else {\n this.shape.items[0].filter(_packages2.default.Connection.DROP_FILTER);\n\n if (this.sourcePort !== null) {\n this.sourcePort.on(\"move\", this.moveListener);\n this.canvas.fireEvent(\"connect\", { \"port\": this.sourcePort, \"connection\": this });\n this.sourcePort.onConnect(this);\n }\n if (this.targetPort !== null) {\n this.targetPort.on(\"move\", this.moveListener);\n this.canvas.fireEvent(\"connect\", { \"port\": this.targetPort, \"connection\": this });\n this.targetPort.onConnect(this);\n }\n }\n },\n\n /**\r\n * Returns the angle of the connection at the output port (source)\r\n *\r\n **/\n getStartAngle: function getStartAngle() {\n // return a good default value if the connection is not routed at the\n // moment\n if (this.lineSegments.getSize() === 0) {\n return 0;\n }\n\n var p1 = this.lineSegments.get(0).start;\n var p2 = this.lineSegments.get(0).end;\n if (this.router instanceof _packages2.default.layout.connection.SplineConnectionRouter) {\n p2 = this.lineSegments.get(5).end;\n }\n var length = Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));\n var angle = -(180 / Math.PI) * Math.asin((p1.y - p2.y) / length);\n\n if (angle < 0) {\n if (p2.x < p1.x) {\n angle = Math.abs(angle) + 180;\n } else {\n angle = 360 - Math.abs(angle);\n }\n } else {\n if (p2.x < p1.x) {\n angle = 180 - angle;\n }\n }\n return angle;\n },\n\n getEndAngle: function getEndAngle() {\n // return a good default value if the connection is not routed at the\n // moment\n if (this.lineSegments.getSize() === 0) {\n return 90;\n }\n\n var p1 = this.lineSegments.get(this.lineSegments.getSize() - 1).end;\n var p2 = this.lineSegments.get(this.lineSegments.getSize() - 1).start;\n if (this.router instanceof _packages2.default.layout.connection.SplineConnectionRouter) {\n p2 = this.lineSegments.get(this.lineSegments.getSize() - 5).end;\n }\n var length = Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));\n var angle = -(180 / Math.PI) * Math.asin((p1.y - p2.y) / length);\n\n if (angle < 0) {\n if (p2.x < p1.x) {\n angle = Math.abs(angle) + 180;\n } else {\n angle = 360 - Math.abs(angle);\n }\n } else {\n if (p2.x < p1.x) {\n angle = 180 - angle;\n }\n }\n return angle;\n },\n\n /**\r\n * @private\r\n **/\n fireSourcePortRouteEvent: function fireSourcePortRouteEvent() {\n this.sourcePort.getConnections().each(function (i, conn) {\n conn.routingRequired = true;\n conn.repaint();\n });\n },\n\n /**\r\n * @private\r\n **/\n fireTargetPortRouteEvent: function fireTargetPortRouteEvent() {\n // enforce a repaint of all connections which are related to this port\n // this is required for a \"FanConnectionRouter\" or \"ShortesPathConnectionRouter\"\n //\n this.targetPort.getConnections().each(function (i, conn) {\n conn.routingRequired = true;\n conn.repaint();\n });\n },\n\n /**\r\n * @method\r\n * Returns the Command to perform the specified Request or null.\r\n *\r\n * @param {draw2d.command.CommandType} request describes the Command being requested\r\n *\r\n * @return {draw2d.command.Command} null or a Command\r\n **/\n createCommand: function createCommand(request) {\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE) {\n if (this.isDraggable()) {\n return new _packages2.default.command.CommandMoveVertices(this);\n }\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE_BASEPOINT) {\n // DragDrop of a connection doesn't create a undo command at this point. This will be done in\n // the onDrop method\n return new _packages2.default.command.CommandReconnect(this);\n }\n\n return this._super(request);\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n var parentNode = this.getSource().getParent();\n while (parentNode.getParent() !== null) {\n parentNode = parentNode.getParent();\n }\n memento.source = {\n node: parentNode.getId(),\n port: this.getSource().getName()\n };\n\n parentNode = this.getTarget().getParent();\n while (parentNode.getParent() !== null) {\n parentNode = parentNode.getParent();\n }\n memento.target = {\n node: parentNode.getId(),\n port: this.getTarget().getName()\n };\n\n if (this.sourceDecorator !== null) {\n memento.source.decoration = this.sourceDecorator.NAME;\n }\n\n if (this.targetDecorator !== null) {\n memento.target.decoration = this.targetDecorator.NAME;\n }\n\n return memento;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n * @returns\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n // nothing to to for the connection creation. This will be done in the draw2d.io.Reader\n // implementation\n //\n // restore your custom attributes here\n if (typeof memento.target.decoration !== \"undefined\" && memento.target.decoration != null) {\n this.setTargetDecorator(eval(\"new \" + memento.target.decoration));\n }\n\n if (typeof memento.source.decoration !== \"undefined\" && memento.source.decoration != null) {\n this.setSourceDecorator(eval(\"new \" + memento.source.decoration));\n }\n }\n});\n\n_packages2.default.Connection.DROP_FILTER = null;\n\n/***/ }),\n\n/***/ \"./src/Figure.js\":\n/*!***********************!*\\\n !*** ./src/Figure.js ***!\n \\***********************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nvar _UUID = __webpack_require__(/*! util/UUID */ \"./src/util/UUID.js\");\n\nvar _UUID2 = _interopRequireDefault(_UUID);\n\nvar _extend = __webpack_require__(/*! util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /**\r\n * @class draw2d.Figure\r\n * A lightweight graphical object. Figures are rendered to a {@link draw2d.Canvas} object.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n */\n\n_packages2.default.Figure = Class.extend({\n\n NAME: \"draw2d.Figure\",\n\n MIN_TIMER_INTERVAL: 50, // minimum timer interval in milliseconds\n\n // special attributes that should be get/set via method calls\n\n /**\r\n * @constructor\r\n * Creates a new figure element which is not assigned to any canvas.\r\n *\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n var _this2 = this;\n\n this.setterWhitelist = (0, _extend2.default)({\n /** @attr {String} id the unique id of the figure */\n id: this.setId,\n /** @attr {Number} x the x offset of the figure in relation to the parent figure or canvas */\n x: this.setX,\n /** @attr {Number} y the y offset of the figure in relation to the parent figure or canvas */\n y: this.setY,\n /** @attr {Number} width the new width of the figure. Considering the minWidth of the shape */\n width: this.setWidth,\n /** @attr {Number} height the new height of the figure. Considering the minHeight of the shape */\n height: this.setHeight,\n /** @attr {draw2d.geo.Rectangle} boundingBox set the new bounding box of the shape */\n boundingBox: this.setBoundingBox,\n /** @attr {Number} minWidth the new min width of the figure. */\n minWidth: this.setMinWidth,\n /** @attr {Number} minHeight the new min height of the figure. */\n minHeight: this.setMinHeight,\n /** @attr {String} cssClass the css class of the shape. can be used to style the shape via CSS3 (SVG only) */\n cssClass: this.setCssClass,\n /** @attr {Object} userData additional custom data which can be stored by the shape */\n userData: this.setUserData,\n /** @attr {Boolean} draggable drives the dragging behaviour of the shape */\n draggable: this.setDraggable,\n /** @attr {Boolean} resizeable drives the resizeable behaviour of the shape */\n resizeable: this.setResizeable,\n /** @attr {Boolean} selectable drives the selectable behaviour of the shape */\n selectable: this.setSelectable,\n /** @attr {Number} angle the rotation angle of the shape. At the moment only 90 degree increments are possible */\n angle: this.setRotationAngle,\n /** @attr {Number} alpha the the alpha/opacity of the shape. value must be between [0..1] */\n alpha: this.setAlpha,\n /** @attr {Number} opacity the the alpha/opacity of the shape. value must be between [0..1] */\n opacity: this.setAlpha,\n /** @attr {Boolean} glow the glow flag for the shape. The representation of the \"glow\" depends on the shape */\n glow: this.setGlow,\n /** @attr {Boolean} visible set the visibility flag of the shape */\n visible: this.setVisible,\n /** @attr {Boolean} keepAspectRatio indicate if the shape should keep the aspect ratio during resize */\n keepAspectRatio: this.setKeepAspectRatio\n\n }, setter);\n\n this.getterWhitelist = (0, _extend2.default)({\n id: this.getId,\n visible: this.isVisible,\n angle: this.getRotationAngle,\n x: this.getX,\n y: this.getY,\n width: this.getWidth,\n height: this.getHeight,\n draggable: this.isDraggable,\n resizeable: this.isResizeable,\n selectable: this.isSelectable,\n alpha: this.getAlpha,\n opacity: this.getAlpha\n }, getter);\n\n var _this = this;\n\n // all figures has an unique id. Required for figure get and persistence storage\n this.id = _UUID2.default.create();\n\n // required for the SelectionEditPolicy to indicate the type of figure\n // which the user clicks\n this.isResizeHandle = false;\n\n // for undo/redo operation. It holds the command during a drag/drop operation\n // and execute it on the CommandStack if the user drop the figure.\n this.command = null;\n\n // the assigned canvas\n this.canvas = null;\n\n // the RaphaelJS element reference\n this.shape = null;\n\n // possible decorations ( e.g. a Label) of the Connection\n // children are fixed bounded the figure. Most of the events of the child will bee\n // routed to the parent\n this.children = new _packages2.default.util.ArrayList();\n\n // behavior flags\n //\n this.selectable = true;\n this.deleteable = true;\n this.resizeable = true;\n this.draggable = true;\n this.visible = true;\n // since 4.1.0.\n this.keepAspectRatio = false;\n\n this.canSnapToHelper = true;\n this.snapToGridAnchor = new _packages2.default.geo.Point(0, 0); // hot spot for snap to grid\n this.editPolicy = new _packages2.default.util.ArrayList();\n\n // timer for animation or automatic update\n //\n this.timerId = -1;\n this.timerInterval = 0;\n\n // possible parent of the figure.\n // @see: this.children\n this.parent = null;\n\n // a figure can be part of a StrongComposite like a group, ...\n //\n this.composite = null;\n\n // generic handle for the JSON read/write of user defined data\n this.userData = null;\n\n // appearance, position and dim properties\n //\n this.x = 0;\n this.y = 0;\n this.minHeight = 5;\n this.minWidth = 5;\n this.rotationAngle = 0;\n // add the name of the class to the css attribute\n this.cssClass = this.NAME.replace(new RegExp(\"[.]\", \"g\"), \"_\");\n\n this.width = this.getMinWidth();\n this.height = this.getMinHeight();\n\n this.alpha = 1.0;\n\n // internal status flags for the Drag&Drop operation handling and other stuff\n //\n this.isInDragDrop = false;\n\n this.ox = 0;\n this.oy = 0;\n this.repaintBlocked = false;\n this.lastAppliedAttributes = {};\n this.selectionHandles = new _packages2.default.util.ArrayList();\n this.panningDelegate = null;\n\n // even handling since version 5.0.0\n this.eventSubscriptions = {};\n\n this.relocateChildrenEventCallback = function () {\n _this2.children.each(function (i, e) {\n e.locator.relocate(i, e.figure);\n });\n };\n\n // new approach to delegate selection requests.\n //\n this.defaultSelectionAdapter = this.selectionAdapter = function () {\n return _this2;\n };\n\n // install default selection handler. Can be overridden or replaced\n this.installEditPolicy(new _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy());\n\n // the new style attr call with object attributes\n this.attr(attr);\n },\n\n /**\r\n * @method\r\n * Read or set shape attributes.<br>\r\n * When no value is given, reads specified attribute from the element.<br>\r\n * When value is given, sets the attribute to that value.\r\n * Multiple attributes can be set by passing an object with name-value pairs.\r\n *\r\n * let figure = new draw2d.shape.basic.Rectangle();\r\n * figure.attr('x'); //=> read value\r\n * figure.attr('x', 30); //=> set value\r\n *\r\n * // multiple attributes:\r\n * figure.attr({\r\n * x: 30,\r\n * y: 40,\r\n * width : 200,\r\n * height: 50,\r\n * cssClass: \"red_border_figure\"\r\n * });\r\n *\r\n * // it is possible to override any method of the figure as well\r\n * // Instead of inheritance you can just override the callback methods\r\n * // like\r\n * //\r\n * figure.attr({\r\n * onClick : function(){\r\n * alert(\"click\");\r\n * }\r\n * });\r\n *\r\n * // or you can pass the attr values in the constructor\r\n * //\r\n * let clickFigure = new draw2d.shape.basic.Rectangle({\r\n * onClick : function(){\r\n * alert(\"click\");\r\n * }\r\n * });\r\n *\r\n *\r\n * Additional you can set the user defined values (userData) with this method\r\n * using the dot-notation. User defined values are always part of the exported\r\n * JSON data.\r\n *\r\n * // setting multiple attributes:\r\n * figure.attr({\r\n * \"userData.my.property.x\": 30,\r\n * \"userData.my.property.y\": 40\r\n * });\r\n *\r\n * Also set using array notation is possible for the userData:\r\n *\r\n * // dot notation and array brackets:\r\n * figure.attr({\r\n * \"userData.my.names[0]\": \"John\",\r\n * \"userData.my.names[1]\": \"Doe\"\r\n * });\r\n *\r\n *\r\n * The Object returned should be the equivalent structured object:\r\n *\r\n * let obj = figure.getUserData();\r\n *\r\n * That is, where obj is equivalent to:\r\n *\r\n * let obj = {\r\n * my:{\r\n * property:{\r\n * x: 30,\r\n * y: 40\r\n * },\r\n * names: [\"John\", \"Doe\"]\r\n * }\r\n * };\r\n *\r\n *\r\n *\r\n * @param {String/Object} name\r\n * @param {Object} [value]\r\n * @since 5.0.1\r\n * @experimental\r\n * @returns\r\n **/\n attr: function attr(name, value) {\n var _this = this;\n var orig = this.repaintBlocked;\n\n try {\n // call of attr as setter method with {name1:val1, name2:val2 } argument list\n //\n if ($.isPlainObject(name)) {\n for (var key in name) {\n // user can set the \"userData\" with path notation. In this case we\n // expand the path to a real JSON object and set the data.\n // index/brackets are allowed too.\n //\n if (key.substring(0, 9) === \"userData.\") {\n if (this.userData === null) {\n this.userData = {};\n }\n _JSONUtil2.default.set({ userData: this.userData }, key, name[key]);\n this.fireEvent(\"change:\" + key, { value: name[key] });\n } else {\n var func = this.setterWhitelist[key];\n var param = name[key];\n if (func && param !== undefined) {\n func.call(this, param);\n }\n // maybe the user adds a function as property to the attr call\n // e.g.:\n // {\n // doIt: function(){}\n // }\n //\n // in this case we assign the method to this object and wrap it with \"this\" as context\n // a very, very simple method to replace default implemenations of the object\n else if (typeof name[key] === \"function\") {\n this[key] = param.bind(this);\n }\n }\n }\n } else if (typeof name === \"string\") {\n // call attr as getter\n //\n if (typeof value === \"undefined\") {\n var getter = this.getterWhitelist[name];\n if (typeof getter === \"function\") {\n return getter.call(this);\n }\n // or it is a userData path notation like \"userData.any.path.value\"\n else if (name.substring(0, 9) === \"userData.\") {\n var data = { userData: this.userData };\n return _JSONUtil2.default.get(data, name);\n }\n return; // undefined\n }\n // call attr as simple setter with (key , value)\n //\n\n // the value can be a function. In this case we must call the value().\n if (typeof value === \"function\") {\n value = value();\n }\n if (name.substring(0, 9) === \"userData.\") {\n if (this.userData === null) {\n this.userData = {};\n }\n _JSONUtil2.default.set({ userData: this.userData }, name, value);\n this.fireEvent(\"change:\" + name, { value: value });\n } else {\n var setter = this.setterWhitelist[name];\n if (setter) {\n setter.call(this, value);\n }\n }\n }\n // may it is a array of attributes used for the getter\n //\n else if (Array.isArray(name)) {\n return Object.assign.apply(Object, [{}].concat(_toConsumableArray(Object.keys(name).map(function (k) {\n return _defineProperty({}, k, _this.attr(k));\n }))));\n }\n // generic getter of all registered attributes\n else if (typeof name === \"undefined\") {\n var result = {};\n for (var _key in this.getterWhitelist) {\n result[_key] = this.getterWhitelist[_key].call(this);\n }\n return result;\n }\n } finally {\n this.repaintBlocked = orig;\n }\n // this.repaint();\n\n return this;\n },\n\n /**\r\n * Return a copy of the object, filtered to only have values for the whitelisted keys.\r\n * @deprecated\r\n */\n pick: function pick(obj, var_keys) {\n var keys = typeof arguments[1] !== 'string' ? arguments[1] : Array.prototype.slice.call(arguments, 1);\n var out = {},\n key = void 0;\n for (key in keys) {\n if (typeof obj[key] !== \"undefined\") out[key] = obj[key];\n }\n return out;\n },\n\n /**\r\n * @method\r\n * Add the figure to the current selection and propagate this to all edit policies.\r\n *\r\n * @param {Boolean} [asPrimarySelection] true if the element should be the primary selection\r\n * @private\r\n */\n select: function select(asPrimarySelection) {\n if (typeof asPrimarySelection === \"undefined\") {\n asPrimarySelection = true;\n }\n\n // apply all EditPolicy for select Operations\n //\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionPolicy) {\n e.onSelect(_this.canvas, _this, asPrimarySelection);\n }\n });\n\n if (this.canvas !== null) {\n this.canvas.getSelection().add(this);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Unselect the figure and propagete this event to all edit policies.\r\n *\r\n * @private\r\n **/\n unselect: function unselect() {\n var _this = this;\n // apply all EditPolicy for select Operations\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionPolicy) {\n e.onUnselect(_this.canvas, _this);\n }\n });\n\n if (this.canvas !== null) {\n this.canvas.getSelection().remove(this);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns a function which returns the the figure which must handle the selection handling.\r\n *\r\n * @param {Function} [adapter] function which returns the figure which handles the selection handling\r\n */\n setSelectionAdapter: function setSelectionAdapter(adapter) {\n if (adapter == null) {\n this.selectionAdapter = this.defaultSelectionAdapter;\n } else {\n this.selectionAdapter = adapter;\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * @returns {Function}\r\n */\n getSelectionAdapter: function getSelectionAdapter() {\n return this.selectionAdapter;\n },\n\n /**\r\n * @method\r\n * Returns true if the figure part of the current canvas selection.\r\n *\r\n * @since 5.5.6\r\n *\r\n * @return {Boolean}\r\n */\n isSelected: function isSelected() {\n if (this.canvas !== null) {\n return this.canvas.getSelection().contains(this);\n }\n\n return false;\n },\n\n /**\r\n * @method\r\n * Allows a user to attach (or remove) data to an element, without needing to create a custom figure or shape.\r\n * The data must be a valid JSON object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * userData: object\r\n * });\r\n *\r\n * @since 2.7.2\r\n * @param {Object} object\r\n */\n setUserData: function setUserData(object) {\n this.userData = object;\n this.fireEvent(\"change:userData\", { value: object });\n return this;\n },\n\n /**\r\n * @method\r\n * Returns any user data set previously on the given figure by setUserData.\r\n *\r\n * @since 2.7.2\r\n * @returns {Object}\r\n */\n getUserData: function getUserData() {\n return this.userData;\n },\n\n /**\r\n * @method\r\n * Return the UUID of this element.\r\n *\r\n * @return {String}\r\n */\n getId: function getId() {\n return this.id;\n },\n\n /**\r\n * @method\r\n * Set the id of this element.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * id: newId\r\n * });\r\n *\r\n * @param {String} newId the new id for this figure\r\n */\n setId: function setId(newId) {\n this.id = newId;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the css styling class name of the element.\r\n *\r\n *\r\n * @return {String}\r\n */\n getCssClass: function getCssClass() {\n return this.cssClass;\n },\n\n /**\r\n * @method\r\n * Set the css class of the node.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * \"cssClass\": \"red_border_figure\"\r\n * });\r\n *\r\n * @param {String} cssClass the new css class name of the node\r\n * @since 2.9.0\r\n */\n setCssClass: function setCssClass(cssClass) {\n this.cssClass = cssClass === null ? null : cssClass.trim();\n\n if (this.shape === null) {\n return this;\n }\n\n if (this.cssClass === null) {\n this.shape.node.removeAttribute(\"class\");\n } else {\n this.shape.node.setAttribute(\"class\", this.cssClass);\n }\n this.fireEvent(\"change:cssClass\", { value: this.cssClass });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The method will return true if the class is assigned to the element, even if other classes also are.\r\n *\r\n * @param {String} className the class name to check\r\n * @since 2.9.0\r\n */\n hasCssClass: function hasCssClass(className) {\n if (this.cssClass === null) {\n return false;\n }\n\n return new RegExp(' ' + className.trim() + ' ').test(' ' + this.cssClass + ' ');\n },\n\n /**\r\n * @method\r\n * Add a CSS class to the figure.<br>\r\n * It's important to note that this method does not replace a class. It simply adds the class,\r\n * appending it to any which may already be assigned to the elements.\r\n *\r\n * @param {String} className\r\n * @since 2.9.0\r\n */\n addCssClass: function addCssClass(className) {\n className = className.trim();\n if (!this.hasCssClass(className)) {\n if (this.cssClass === null) {\n this.setCssClass(className);\n } else {\n this.setCssClass(this.cssClass + ' ' + className);\n }\n this.fireEvent(\"change:cssClass\", { value: this.cssClass });\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * Remove the given css class name from the figure\r\n *\r\n * @param {String} className the css class name to add\r\n */\n removeCssClass: function removeCssClass(className) {\n className = className.trim();\n var newClass = ' ' + this.cssClass.replace(/[\\t\\r\\n]/g, ' ') + ' ';\n if (this.hasCssClass(className)) {\n while (newClass.indexOf(' ' + className + ' ') >= 0) {\n newClass = newClass.replace(' ' + className + ' ', ' ');\n }\n this.setCssClass(newClass.replace(/^\\s+|\\s+$/g, ''));\n this.fireEvent(\"change:cssClass\", { value: this.cssClass });\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * Add or remove the given css class name from the figure\r\n *\r\n * @param {String} className the class name to toggle\r\n */\n toggleCssClass: function toggleCssClass(className) {\n className = className.trim();\n var newClass = ' ' + this.cssClass.replace(/[\\t\\r\\n]/g, ' ') + ' ';\n if (this.hasCssClass(className)) {\n while (newClass.indexOf(' ' + className + ' ') >= 0) {\n newClass = newClass.replace(' ' + className + ' ', ' ');\n }\n this.setCssClass(newClass.replace(/^\\s+|\\s+$/g, ''));\n } else {\n this.setCssClass(this.cssClass + ' ' + className);\n }\n this.fireEvent(\"change:cssClass\", { value: this.cssClass });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the canvas element of this figures. This can be used to determine whenever an element\r\n * is added or removed to the canvas.\r\n *\r\n * @param {draw2d.Canvas} canvas the new parent of the figure or null\r\n */\n setCanvas: function setCanvas(canvas) {\n // remove the shape if we reset the canvas and the element\n // was already drawn\n if (canvas === null && this.shape !== null) {\n if (this.isSelected()) {\n this.unselect();\n }\n this.shape.remove();\n this.shape = null;\n }\n\n this.canvas = canvas;\n\n if (this.canvas !== null) {\n this.getShapeElement();\n }\n\n // reset the attribute cache. We must start by paint all attributes\n //\n this.lastAppliedAttributes = {};\n\n if (canvas === null) {\n this.stopTimer();\n } else {\n if (this.timerInterval >= this.MIN_TIMER_INTERVAL) {\n this.startTimer(this.timerInterval);\n }\n }\n\n this.children.each(function (i, e) {\n e.figure.setCanvas(canvas);\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the current assigned canvas container.\r\n *\r\n * @return {draw2d.Canvas}\r\n */\n getCanvas: function getCanvas() {\n return this.canvas;\n },\n\n /**\r\n * @method\r\n * Start a timer which calls the onTimer method in the given interval.\r\n *\r\n * @param {Number} milliSeconds\r\n */\n startTimer: function startTimer(milliSeconds) {\n var _this3 = this;\n\n this.stopTimer();\n this.timerInterval = Math.max(this.MIN_TIMER_INTERVAL, milliSeconds);\n\n if (this.canvas !== null) {\n this.timerId = window.setInterval(function () {\n _this3.onTimer();\n _this3.fireEvent(\"timer\");\n }, this.timerInterval);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Stop the internal timer.\r\n *\r\n */\n stopTimer: function stopTimer() {\n if (this.timerId >= 0) {\n window.clearInterval(this.timerId);\n this.timerId = -1;\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Callback method for the internal timer handling<br>\r\n * Inherit classes must override this method if they want use the timer feature.\r\n *\r\n * // Alternatively you can register for this event with\r\n * figure.on(\"timer\", function(emitter){\r\n * alert(\"timer fired\");\r\n * });\r\n *\r\n * @template\r\n */\n onTimer: function onTimer() {},\n\n /**\r\n * @method\r\n * Moves the element so it is the closest to the viewer’s eyes, on top of other elements. Additional\r\n * the internal model changed as well.\r\n *\r\n * Optional: Inserts current object in front of the given one.\r\n *\r\n * @param {draw2d.Figure} [figure] move current object in front of the given one.\r\n * @since 3.0.0\r\n */\n toFront: function toFront(figure) {\n // ensure that the z-oder is still correct if the figure is assigned\n // to a StrongComposite\n //\n if (this.composite instanceof _packages2.default.shape.composite.StrongComposite && typeof figure !== \"undefined\") {\n var indexFigure = figure.getZOrder();\n var indexComposite = this.composite.getZOrder();\n if (indexFigure < indexComposite) {\n figure = this.composite;\n }\n }\n\n if (typeof figure === \"undefined\") {\n this.getShapeElement().toFront();\n\n if (this.canvas !== null) {\n var figures = this.canvas.getFigures();\n var lines = this.canvas.getLines();\n if (figures.remove(this) !== null) {\n figures.add(this);\n } else if (lines.remove(this) !== null) {\n lines.add(this);\n }\n }\n } else {\n this.getShapeElement().insertAfter(figure.getTopLevelShapeElement());\n\n if (this.canvas !== null) {\n var _figures = this.canvas.getFigures();\n var _lines = this.canvas.getLines();\n if (_figures.remove(this) !== null) {\n var index = _figures.indexOf(figure);\n _figures.insertElementAt(this, index + 1);\n } else if (_lines.remove(this) !== null) {\n _lines.add(this);\n }\n }\n }\n\n // bring all children in front of the parent\n var _this = this;\n this.children.each(function (i, child) {\n child.figure.toFront(_this);\n });\n\n // and last but not lease the ResizeHandles if any present\n //\n this.selectionHandles.each(function (i, handle) {\n handle.toFront();\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Moves the element to the background. Additional\r\n * the internal model changed as well.\r\n *\r\n * @since 4.7.2\r\n */\n toBack: function toBack(figure) {\n // it is not allowed that a figure is behind an assigned composite\n //\n if (this.composite instanceof _packages2.default.shape.composite.StrongComposite) {\n this.toFront(this.composite);\n return;\n }\n\n if (this.canvas !== null) {\n var figures = this.canvas.getFigures();\n var lines = this.canvas.getLines();\n if (figures.remove(this) !== null) {\n figures.insertElementAt(this, 0);\n } else if (lines.remove(this) !== null) {\n lines.insertElementAt(this, 0);\n }\n if (typeof figure !== \"undefined\") {\n this.getShapeElement().insertBefore(figure.getShapeElement());\n } else {\n this.getShapeElement().toBack();\n }\n }\n\n // Bring all children in front of \"this\" figure\n //\n var _this = this;\n this.children.each(function (i, child) {\n child.figure.toFront(_this);\n }, true);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Install a new edit policy to the figure. Each editpolicy is able to focus on a single editing\r\n * task or group of related tasks. This also allows editing behavior to be selectively reused across\r\n * different figure implementations. Also, behavior can change dynamically, such as when the layouts\r\n * or routing methods change.\r\n *\r\n * Example for limited DragDrop behavior can be a draw2d.layout.constraint.RegionConstriantPolicy.\r\n *\r\n * @param {draw2d.policy.EditPolicy} policy\r\n */\n installEditPolicy: function installEditPolicy(policy) {\n var _this4 = this;\n\n // it is only possible to install one SelectionFeedbackPolicy at once\n //\n if (policy instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n this.editPolicy.grep(function (p) {\n var stay = !(p instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy);\n if (!stay) {\n\n p.onUninstall(_this4);\n }\n return stay;\n });\n }\n policy.onInstall(this);\n this.editPolicy.add(policy);\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * UnInstall the edit policy from the figure. Either the instance itself if found\r\n * or all kind of the given edit policies.\r\n *\r\n *\r\n * @param {draw2d.policy.EditPolicy} policy\r\n * @since 4.81\r\n */\n uninstallEditPolicy: function uninstallEditPolicy(policy) {\n var removedPolicy = this.editPolicy.remove(policy);\n\n // we found the policy and we are happy\n //\n if (removedPolicy !== null) {\n removedPolicy.onUninstall(this);\n return;\n }\n\n // The policy isn'T part of the figure. In this case we \"think\" the user want\n // deinstall all instances of the policy\n //\n var _this = this;\n var name = typeof policy === \"string\" ? policy : policy.NAME;\n this.editPolicy.grep(function (p) {\n if (p.NAME === name) {\n p.onUninstall(_this);\n return false;\n }\n return true;\n });\n },\n\n /**\r\n * @method\r\n * Add a child figure to the figure. The hands over figure doesn't support drag&drop\r\n * operations. It's only a decorator for the connection.<br>\r\n * Mainly for labels or other decorations\r\n *\r\n *\r\n * let start = new draw2d.shape.node.Start({x:80, y:150});\r\n * start.add(new draw2d.shape.basic.Label({text:\"Test Label\"}), new draw2d.layout.locator.TopLocator());\r\n *\r\n * canvas.add( start);\r\n *\r\n * @param {draw2d.Figure} child the figure to add as decoration to the connection.\r\n * @param {draw2d.layout.locator.Locator} locator the locator for the child.\r\n * @param {Number} [index] optional index where to insert the figure\r\n **/\n add: function add(child, locator, index) {\n if (typeof locator === \"undefined\" || locator === null) {\n throw \"Second parameter 'locator' is required for method 'Figure#add'\";\n }\n\n // the child is now a slave of the parent\n //\n child.setParent(this);\n\n // inform the locator that a new child is bounded to the parent\n // The call must happen after parent assignment. Reason: the locator\n // can override some behaviours which are propagated from the parent.\n //\n locator.bind(this, child);\n\n child.on(\"resize\", this.relocateChildrenEventCallback);\n\n if (!isNaN(parseInt(index))) {\n this.children.insertElementAt({ figure: child, locator: locator }, index);\n } else {\n this.children.add({ figure: child, locator: locator });\n }\n\n if (this.canvas !== null) {\n child.setCanvas(this.canvas);\n }\n\n this.repaint();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove the child figure from this figure and the canvas\r\n *\r\n * @param {draw2d.Figure} child the figure to remove.\r\n *\r\n * @return {Object} the removed tupple of figure/locator or null if the child isn't found\r\n * @return {draw2d.Figure} return.figure The removed figure\r\n * @return {draw2d.shape.layout.Layout} return.locator The used locator of the figure\r\n *\r\n * @since 5.0.0\r\n **/\n remove: function remove(child) {\n if (typeof child === \"undefined\" || child === null) {\n debug.warn(\"The parameter child is required for Figure.remove\");\n return null;\n }\n\n var removed = null;\n this.children.grep(function (e) {\n var stay = e.figure !== child;\n if (!stay) {\n removed = e;\n }\n return stay;\n });\n\n if (removed !== null) {\n child.setParent(null);\n child.setCanvas(null);\n removed.locator.unbind(this, child);\n child.off(this.relocateChildrenEventCallback);\n\n this.repaint();\n return removed;\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Return all children/decorations of this shape which has been added with\r\n * draw2d.Figure.add\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getChildren: function getChildren() {\n return this.children.clone().map(function (e) {\n return e.figure;\n });\n },\n\n /**\r\n * @method\r\n * Remove all children/decorations of this shape\r\n *\r\n */\n resetChildren: function resetChildren() {\n this.children.each(function (i, e) {\n e.figure.setCanvas(null);\n });\n this.children = new _packages2.default.util.ArrayList();\n this.repaint();\n\n return this;\n },\n\n /**\r\n * @method\r\n * return the current SVG shape element or create it on demand.\r\n *\r\n * @protected\r\n */\n getShapeElement: function getShapeElement() {\n if (this.shape !== null) {\n return this.shape;\n }\n\n this.shape = this.createShapeElement();\n if (!this.isVisible()) {\n this.shape.hide();\n }\n\n // add CSS class to enable styling of the element with CSS rules/files\n //\n if (this.cssClass !== null) {\n this.shape.node.setAttribute(\"class\", this.cssClass);\n }\n\n return this.shape;\n },\n\n /**\r\n * @method\r\n * Get the top level shape element. May the figure has a set of SVG elements. In this case this\r\n * method must return the top level node.<br>\r\n * This method is used for the toFront/toBack method to order the nodes in the correct way.\r\n *\r\n * @since 5.0.0\r\n * @private\r\n */\n getTopLevelShapeElement: function getTopLevelShapeElement() {\n return this.getShapeElement();\n },\n\n /**\r\n * @method\r\n * Inherited classes must override this method to implement it's own draw functionality.\r\n *\r\n * @template\r\n * @abstract\r\n */\n createShapeElement: function createShapeElement() {\n throw \"Inherited class [\" + this.NAME + \"] must override the abstract method createShapeElement\";\n },\n\n /**\r\n * @method\r\n * propagate all attributes like color, stroke,... to the shape element\r\n *\r\n * @param {Object} [attributes] the style attributes for the SVG shape\r\n * @private\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return this;\n }\n var _this = this;\n attributes = attributes || {};\n\n if (this.visible === true) {\n if (this.shape.isVisible() === false) {\n if (!isNaN(parseFloat(attributes.visibleDuration))) {\n $(this.shape.node).fadeIn(attributes.visibleDuration, function () {\n _this.shape.show();\n });\n } else {\n this.shape.show();\n }\n }\n } else {\n if (this.shape.isVisible() === true) {\n if (!isNaN(parseFloat(attributes.visibleDuration))) {\n $(this.shape.node).fadeOut(attributes.visibleDuration, function () {\n _this.shape.hide();\n });\n } else {\n this.shape.hide();\n }\n }\n return this;\n }\n\n // enrich with common properties\n attributes.opacity = this.alpha;\n\n // performance improvement\n // Only apply attributes which has changed. This ends in a big performance improvement\n // because the raphael shape isn't redraw at all.\n //\n attributes = _JSONUtil2.default.flatDiff(attributes, this.lastAppliedAttributes);\n this.lastAppliedAttributes = attributes;\n\n if (Object.getOwnPropertyNames(attributes).length > 0) {\n this.shape.attr(attributes);\n }\n\n this.applyTransformation();\n\n // Relocate all children of the figure.\n // This means that the Locator can calculate the new Position of the child.\n // This is not the best place for this. Move it to dim/size/shape changing\n // methods of the figure. A \"repaint\" isn't always dimension changing the figure.\n //\n this.children.each(function (i, e) {\n e.locator.relocate(i, e.figure);\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * apply a transformation to the shape like rotation, translate,..\r\n *\r\n * @private\r\n * @template\r\n */\n applyTransformation: function applyTransformation() {\n return this;\n },\n\n /**\r\n * @method\r\n * Highlight the element or remove the highlighting\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * glow: flag\r\n * });\r\n *\r\n * @param {Boolean} flag indicates glow/noGlow\r\n * @template\r\n */\n setGlow: function setGlow(flag) {\n // do nothing in the base class.\n // Subclasses must implement this method.\n\n return this;\n },\n\n /**\r\n * @method\r\n * Allow dragging only when the cursor is over a specific part of the figure.\r\n * <br>\r\n * Override this method to specify the bounding box of an element or a draw2d.util.ArrayList\r\n * of draw2d.geo.Rectangle of bounding boxes used to drag the figure. The returned coordinates\r\n * are absolute coordinates to the canvas.\r\n * <br>\r\n * <br>\r\n * Default implementation returns <b>null</b> to indicate to use the complete figures as\r\n * drag handle.\r\n *\r\n * @since 5.6.0\r\n * @returns {draw2d.geo.Rectangle|draw2d.util.ArrayList}\r\n */\n getHandleBBox: function getHandleBBox() {\n return null;\n },\n\n /**\r\n * @method\r\n * Called if the drag and drop action begins. You can return [false] if you\r\n * want avoid that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} true if the figure accepts dragging\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n this.isInDragDrop = false;\n\n // Check whenever the figures has a drag-handle. Allow drag&drop\n // operation only if the x/y is inside this area.\n //\n // @since 5.6.0\n var bbox = this.getHandleBBox();\n if (bbox !== null && bbox.translate(this.getAbsolutePosition().scale(-1)).hitTest(x, y) === false) {\n // design failure: we must catch the figure below the mouse to forward\n // the panning event to this figure. Special handling to provide sliders\n // and other UI elements which requires the panning event. Hack.\n this.panningDelegate = this.getBestChild(this.getX() + x, this.getY() + y);\n if (this.panningDelegate !== null) {\n // transform x/y relative to the panning figure and request the dragStart event\n this.panningDelegate.onDragStart(x - this.panningDelegate.x, y - this.panningDelegate.y, shiftKey, ctrlKey);\n }\n return false;\n }\n\n this.command = this.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE));\n\n if (this.command !== null) {\n this.ox = this.getX();\n this.oy = this.getY();\n this.isInDragDrop = true;\n\n // notify all installed policies\n //\n var _this = this;\n var canStartDrag = true;\n\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n canStartDrag = canStartDrag && e.onDragStart(_this.canvas, _this, x, y, shiftKey, ctrlKey);\n }\n });\n\n if (canStartDrag) {\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragstart\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n }\n return canStartDrag;\n }\n\n return false;\n },\n\n /**\r\n * @method\r\n * Don't call them manually. This will be done by the framework.<br>\r\n * Will be called if the object are moved via drag and drop.\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call\r\n * the super implementation via <code>this._super(dx, dy, dx2, dy2);</code>\r\n *\r\n * @private\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n var _this5 = this;\n\n // apply all EditPolicy for DragDrop Operations\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n var _newPos = e.adjustPosition(_this5, _this5.ox + dx, _this5.oy + dy);\n if (_newPos) {\n dx = _newPos.x - _this5.ox;\n dy = _newPos.y - _this5.oy;\n }\n }\n });\n\n var newPos = new _packages2.default.geo.Point(this.ox + dx, this.oy + dy);\n\n // Adjust the new location if the object can snap to a helper\n // like grid, geometry, ruler,...\n //\n if (this.getCanSnapToHelper()) {\n newPos = this.getCanvas().snapToHelper(this, newPos);\n }\n\n this.setPosition(newPos);\n\n // notify all installed policies\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.onDrag(_this5.canvas, _this5);\n }\n });\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"drag\", { dx: dx, dy: dy, dx2: dx2, dy2: dy2, shiftKey: shiftKey, ctrlKey: ctrlKey });\n },\n\n /**\r\n * @method\r\n * Called by the framework if the figure returns false for the drag operation. In this\r\n * case we send a \"panning\" event - mouseDown + mouseMove. This is very useful for\r\n * UI-Widget like slider, spinner,...\r\n *\r\n * // You can alternatively register an event handler with:\r\n * figure.on(\"panning\", function(emitter, eventData){\r\n * alert(\"panning of the figure called\");\r\n * });\r\n *\r\n * @param {Number} dx the x difference between the mouse down operation and now\r\n * @param {Number} dy the y difference between the mouse down operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onPanning: function onPanning(dx, dy, dx2, dy2, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Called by the framework if the panning event of the figures ends. This happens\r\n * after the mous up event if the panning is active.\r\n *\r\n * // You can alternatively register an event handler with:\r\n * figure.on(\"panningEnd\", function(emitter){\r\n * alert(\"panning of the figure called\");\r\n * });\r\n *\r\n */\n onPanningEnd: function onPanningEnd() {},\n\n /**\r\n * @method\r\n * Will be called after a drag and drop action.<br>\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call\r\n * the super implementation via <code>this._super();</code>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @template\r\n **/\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n var _this6 = this;\n\n // Element ist zwar schon an seine Position, das Command muss aber trotzdem\n // in dem CommandStack gelegt werden damit das Undo funktioniert.\n //\n if (this.command !== null) {\n this.command.setPosition(this.x, this.y);\n this.canvas.getCommandStack().execute(this.command);\n this.command = null;\n }\n this.isInDragDrop = false;\n this.panningDelegate = null;\n\n // notify all installed policies\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.onDragEnd(_this6.canvas, _this6, x, y, shiftKey, ctrlKey);\n }\n });\n\n this.fireEvent(\"move\", { figure: this, dx: 0, dy: 0 });\n this.fireEvent(\"change:x\", { figure: this, dx: 0 });\n this.fireEvent(\"change:y\", { figure: this, dy: 0 });\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragend\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag&drop operations if the user drag a figure over this figure\r\n *\r\n * @param {draw2d.Figure} draggedFigure The figure which is currently dragging\r\n *\r\n * @return {draw2d.Figure} the figure which should receive the drop event or null if the element didn't want a drop event\r\n * @since 6.1.0\r\n * @private\r\n **/\n delegateTarget: function delegateTarget(draggedFigure) {\n var _this7 = this;\n\n var delegate = draggedFigure;\n this.getCanvas().getDropInterceptorPolicies().each(function (i, policy) {\n delegate = policy.delegateTarget(draggedFigure, _this7);\n if (delegate !== null) {\n return false; // break the loop\n }\n });\n\n return delegate;\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag&drop operations if the user drag a figure over this figure\r\n *\r\n * @param {draw2d.Figure} draggedFigure The figure which is currently dragging\r\n *\r\n * @template\r\n **/\n onDragEnter: function onDragEnter(draggedFigure) {},\n\n /**\r\n * @method\r\n * Called if the DragDrop object leaving the current hover figure.\r\n *\r\n * @param {draw2d.Figure} draggedFigure The figure which is currently dragging\r\n * @template\r\n **/\n onDragLeave: function onDragLeave(draggedFigure) {},\n\n /**\r\n * @method\r\n * Called if the user drop this element onto the dropTarget. This event is ONLY fired if the\r\n * shape return \"this\" in the {@link draw2d.Figure#onDragEnter} method.\r\n *\r\n *\r\n * @param {draw2d.Figure} dropTarget The drop target.\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n **/\n onDrop: function onDrop(dropTarget, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Called if the user dropped an figure onto this element. This event is ONLY fired if the\r\n * in the canvas installed {@link draw2d.policy.canvas.DropInterceptorPolicy} allow this.\r\n *\r\n *\r\n * @param {draw2d.Figure} droppedFigure The dropped figure.\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n * @since 4.8.0\r\n **/\n onCatch: function onCatch(droppedFigure, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Callback method for the mouse enter event. Usefull for mouse hover-effects.\r\n * Override this method for your own effects. Don't call them manually.\r\n *\r\n * @template\r\n **/\n onMouseEnter: function onMouseEnter() {},\n\n /**\r\n * @method\r\n * Callback method for the mouse leave event. Useful for mouse hover-effects.\r\n *\r\n * @template\r\n **/\n onMouseLeave: function onMouseLeave() {},\n\n /**\r\n * @method\r\n * Called when a user dbl clicks on the element\r\n *\r\n * // Alternatively you can register an event with:\r\n * //\r\n * figure.on(\"dblclick\", function(emitter, event){\r\n * alert(\"user dbl click on the figure\");\r\n * });\r\n *\r\n * @template\r\n */\n onDoubleClick: function onDoubleClick() {},\n\n /**\r\n * @method\r\n * Called when a user clicks on the element.\r\n *\r\n * // You can alternatively register an event handler with:\r\n * figure.on(\"click\", function(emitter, event){\r\n * alert(\"user click on the figure\");\r\n * });\r\n *\r\n * @template\r\n * @deprecated\r\n */\n onClick: function onClick() {},\n\n /**\r\n * @method\r\n * called by the framework if the figure should show the context menu.<br>\r\n * The strategy to show the context menu depends on the platform. Either looong press or\r\n * right click with the mouse.\r\n *\r\n * // Alternatively you register for this event with:\r\n * figure.on(\"contextmenu\", function(emitter, event){\r\n * alert(\"user press the right mouse button for a context menu\");\r\n * });\r\n *\r\n * @param {Number} x the x-coordinate to show the menu\r\n * @param {Number} y the y-coordinate to show the menu\r\n * @since 1.1.0\r\n * @template\r\n */\n onContextMenu: function onContextMenu(x, y) {},\n\n /**\r\n * @method\r\n * Set the alpha blending of this figure.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * \"alpha\": percent\r\n * });\r\n *\r\n * // ...or:\r\n * figure.attr({\r\n * \"opacity\": percent\r\n * });\r\n *\r\n * @param {Number} percent value between [0..1].\r\n * @template\r\n **/\n setAlpha: function setAlpha(percent) {\n percent = Math.min(1, Math.max(0, parseFloat(percent)));\n if (percent === this.alpha) {\n return;\n }\n\n this.alpha = percent;\n this.repaint();\n this.fireEvent(\"change:opacity\", { value: this.alpha });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the alpha blending of the figure\r\n *\r\n * @return {Number} the current alpha blending\r\n */\n getAlpha: function getAlpha() {\n return this.alpha;\n },\n\n /**\r\n * @method\r\n * Set the rotation angle in degree [0..356]<br>\r\n * <b>Only steps of 90 degree is working well</b>\r\n * <br>\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * angle: angle\r\n * });\r\n *\r\n * @param {Number} angle the rotation angle in degree\r\n */\n setRotationAngle: function setRotationAngle(angle) {\n var _this8 = this;\n\n this.rotationAngle = angle;\n\n // Update the resize handles if the user change the position of the element via an API call.\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this8.canvas, _this8);\n }\n });\n\n this.fireEvent(\"change:angle\", { value: this.rotationAngle });\n this.repaint();\n\n return this;\n },\n\n /**\r\n * @method\r\n * return the rotation angle of the figure in degree of [0..356].\r\n *\r\n * <br>\r\n * <b>NOTE: this method is pre alpha and not for production. Only steps of 90 degree is working well</b>\r\n * <br>\r\n * @returns {Number}\r\n */\n getRotationAngle: function getRotationAngle() {\n return this.rotationAngle;\n },\n\n /**\r\n * @method\r\n * Show/hide the element. The element didn't receive any mouse events (click, dblclick) if you hide the\r\n * figure.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * visible: flag\r\n * });\r\n *\r\n * @param {Boolean} flag\r\n * @param {Number} [duration] the optional number for the fadeIn /fadeOut of the figure\r\n * @since 1.1.0\r\n */\n setVisible: function setVisible(flag, duration) {\n flag = !!flag;\n if (flag === this.visible) {\n return;\n }\n this.visible = flag;\n\n this.repaint({ visibleDuration: duration });\n\n if (this.visible) {\n this.fireEvent(\"show\");\n } else {\n this.fireEvent(\"hide\");\n }\n this.fireEvent(\"change:visibility\", { value: this.visible });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return true if the figure visible.\r\n *\r\n * @return {Boolean}\r\n * @since 1.1.0\r\n */\n isVisible: function isVisible() {\n return this.visible && this.shape !== null;\n },\n\n /**\r\n * @method\r\n * Guarantee, that the figure width/height will not be distorted. Applicable before calling setDimension().\r\n * It is false by default.\r\n *\r\n * @since 4.1.0\r\n * @param {Boolean} flag boolean flag if the figure should respect the aspect ratio\r\n */\n setKeepAspectRatio: function setKeepAspectRatio(flag) {\n this.keepAspectRatio = flag;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the flag if the shape keep the aspect ratio.\r\n *\r\n * @since 4.1.0\r\n */\n getKeepAspectRatio: function getKeepAspectRatio() {\n return this.keepAspectRatio;\n },\n\n /**\r\n * @method\r\n * Return the current z-index of the element. Currently this is an expensive method. The index will be calculated\r\n * all the time. Caching is not implemented at the moment.\r\n *\r\n * @return {Number}\r\n */\n getZOrder: function getZOrder() {\n if (this.shape === null) {\n return -1;\n }\n\n var i = 0;\n var child = this.shape.node;\n while ((child = child.previousSibling) !== null) {\n i++;\n }\n return i;\n },\n\n /**\r\n * @method\r\n * Set the flag if this object can snap to grid or geometry.\r\n * A window of dialog should set this flag to false.\r\n *\r\n * @param {Boolean} flag The snap to grid/geometry enable flag.\r\n *\r\n **/\n setCanSnapToHelper: function setCanSnapToHelper(flag) {\n this.canSnapToHelper = !!flag;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns true if the figure can snap to any helper like a grid, guide, geometrie\r\n * or something else.\r\n *\r\n * @return {Boolean}\r\n **/\n getCanSnapToHelper: function getCanSnapToHelper() {\n return this.canSnapToHelper;\n },\n\n /**\r\n *\r\n * @return {draw2d.geo.Point}\r\n **/\n getSnapToGridAnchor: function getSnapToGridAnchor() {\n return this.snapToGridAnchor;\n },\n\n /**\r\n * @method\r\n * Set the hot spot for all snapTo### operations.\r\n *\r\n * @param {draw2d.geo.Point} point\r\n **/\n setSnapToGridAnchor: function setSnapToGridAnchor(point) {\n this.snapToGridAnchor = point;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the width of the figure and consider the minWidth attribute\r\n *\r\n * @param {Number} width the new width of the figure\r\n * @since 5.1.0\r\n */\n setWidth: function setWidth(width) {\n this.setDimension(parseFloat(width), this.getHeight());\n this.fireEvent(\"change:width\", { value: this.width });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The current width of the figure.\r\n *\r\n * @type {Number}\r\n **/\n getWidth: function getWidth() {\n return this.width;\n },\n\n /**\r\n * @method\r\n * Set the heigth of the figure and consider the minWidth attribute\r\n *\r\n * @param {Number} height the new height of the figure\r\n * @since 5.1.0\r\n */\n setHeight: function setHeight(height) {\n this.setDimension(this.getWidth(), parseFloat(height));\n this.fireEvent(\"change:height\", { value: this.height });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The current height of the figure.\r\n *\r\n * @return {Number}\r\n **/\n getHeight: function getHeight() {\n return this.height;\n },\n\n /**\r\n * @method\r\n * This value is relevant for the interactive resize of the figure.\r\n *\r\n * @return {Number} Returns the min. width of this object.\r\n */\n getMinWidth: function getMinWidth() {\n return this.minWidth;\n },\n\n /**\r\n * @method\r\n * Set the minimum width of this figure\r\n *\r\n * @param {Number} w\r\n */\n setMinWidth: function setMinWidth(w) {\n this.minWidth = parseFloat(w);\n this.fireEvent(\"change:minWidth\", { value: this.minWidth });\n\n // fit the width with the new constraint\n this.setWidth(this.getWidth());\n\n return this;\n },\n\n /**\r\n * @method\r\n * This value is relevant for the interactive resize of the figure.\r\n *\r\n * @return {Number} Returns the min. height of this object.\r\n */\n getMinHeight: function getMinHeight() {\n return this.minHeight;\n },\n\n /**\r\n * @method\r\n * Set the minimum height of the figure.\r\n *\r\n * @param {Number} h\r\n */\n setMinHeight: function setMinHeight(h) {\n this.minHeight = parseFloat(h);\n this.fireEvent(\"change:minHeight\", { value: this.minHeight });\n\n // fit the height with the new constraint\n this.setHeight(this.getHeight());\n\n return this;\n },\n\n /**\r\n * @method\r\n * the the x-offset related to the parent figure or canvas\r\n *\r\n * @param {Number} x the new x offset of the figure\r\n * @since 5.0.8\r\n */\n setX: function setX(x) {\n this.setPosition(parseFloat(x), this.y);\n this.fireEvent(\"change:x\", { value: this.x });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The x-offset related to the parent figure or canvas.\r\n *\r\n * @return {Number} the x-offset to the parent figure\r\n **/\n getX: function getX() {\n return this.x;\n },\n\n /**\r\n * @method\r\n * the the y-offset related to the parent figure or canvas\r\n *\r\n * @param {Number} y the new x offset of the figure\r\n * @since 5.0.8\r\n */\n setY: function setY(y) {\n this.setPosition(this.x, parseFloat(y));\n this.fireEvent(\"change:y\", { value: this.y });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The y-offset related to the parent figure or canvas.\r\n *\r\n * @return {Number} The y-offset to the parent figure.\r\n **/\n getY: function getY() {\n return this.y;\n },\n\n /**\r\n * @method\r\n * The x-offset related to the canvas.\r\n *\r\n * @return {Number} the x-offset to the canvas\r\n **/\n getAbsoluteX: function getAbsoluteX() {\n if (!this.parent) {\n return this.getX();\n }\n\n return this.getX() + this.parent.getAbsoluteX();\n },\n\n /**\r\n * @method\r\n * The y-offset related to the canvas.\r\n *\r\n * @return {Number} The y-offset to the canvas.\r\n **/\n getAbsoluteY: function getAbsoluteY() {\n if (!this.parent) {\n return this.getY();\n }\n return this.getY() + this.parent.getAbsoluteY();\n },\n\n /**\r\n * @method\r\n * Returns the absolute y-position of the port.\r\n *\r\n * @type {draw2d.geo.Point}\r\n **/\n getAbsolutePosition: function getAbsolutePosition() {\n return new _packages2.default.geo.Point(this.getAbsoluteX(), this.getAbsoluteY());\n },\n\n /**\r\n * @method\r\n * Returns the absolute y-position of the port.\r\n *\r\n * @return {draw2d.geo.Rectangle}\r\n **/\n getAbsoluteBounds: function getAbsoluteBounds() {\n return new _packages2.default.geo.Rectangle(this.getAbsoluteX(), this.getAbsoluteY(), this.getWidth(), this.getHeight());\n },\n\n /**\r\n * @method\r\n * Set the position of the object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * x: x,\r\n * y: y\r\n * });\r\n *\r\n * @param {Number|draw2d.geo.Point} x The new x coordinate of the figure or the x/y coordinate if it is an draw2d.geo.Point\r\n * @param {Number} [y] The new y coordinate of the figure\r\n **/\n setPosition: function setPosition(x, y) {\n var _this9 = this;\n\n if (typeof x === \"undefined\") {\n debugger;\n }\n\n var oldPos = { x: this.x, y: this.y };\n\n if (x instanceof _packages2.default.geo.Point) {\n this.x = x.x;\n this.y = x.y;\n } else {\n this.x = x;\n this.y = y;\n }\n\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n var newPos = e.adjustPosition(_this9, _this9.x, _this9.y);\n _this9.x = newPos.x;\n _this9.y = newPos.y;\n }\n });\n\n this.repaint();\n\n // Update the resize handles if the user change the position of the\n // element via an API call.\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this9.canvas, _this9);\n }\n });\n\n var event = { figure: this, dx: this.x - oldPos.x, dy: this.y - oldPos.y };\n this.fireEvent(\"move\", event);\n this.fireEvent(\"change:x\", event);\n this.fireEvent(\"change:y\", event);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the current position of the figure\r\n *\r\n * @return {draw2d.geo.Point}\r\n * @since 2.0.0\r\n */\n getPosition: function getPosition() {\n return new _packages2.default.geo.Point(this.getX(), this.getY());\n },\n\n /**\r\n * @method\r\n * Translate the figure with the given x/y offset.\r\n *\r\n * @param {Number} dx The x offset to translate\r\n * @param {Number} dy The y offset to translate\r\n **/\n translate: function translate(dx, dy) {\n this.setPosition(this.getX() + dx, this.getY() + dy);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the new width and height of the figure.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * width: w,\r\n * height: h\r\n * });\r\n *\r\n * @param {Number} w The new width of the figure\r\n * @param {Number} h The new height of the figure\r\n **/\n setDimension: function setDimension(w, h) {\n var _this10 = this;\n\n var old = { width: this.width, height: this.height };\n\n w = Math.max(this.getMinWidth(), w);\n h = Math.max(this.getMinHeight(), h);\n\n if (this.width === w && this.height === h) {\n // required if an inherit figure changed the w/h to a given constraint.\n // In this case the Resize handles must be informed that the shape didn't resized.\n // because the minWidth/minHeight did have a higher prio.\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this10.canvas, _this10);\n }\n });\n return this;\n }\n\n // apply all EditPolicy to adjust/modify the new dimension\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n var newDim = e.adjustDimension(_this10, w, h);\n w = newDim.w;\n h = newDim.h;\n }\n });\n\n // respect the aspect ratio if required\n //\n if (this.keepAspectRatio === true) {\n if (w >= this.getMinWidth()) {\n // scale the height to the given ratio\n h = this.getHeight() * (w / this.getWidth());\n // and apply the new dimension only if the values are in range of the given constraints\n if (h >= this.getMinHeight()) {\n this.width = w;\n this.height = h;\n }\n }\n } else {\n this.width = Math.max(this.getMinWidth(), w);\n this.height = Math.max(this.getMinHeight(), h);\n }\n\n this.repaint();\n\n this.fireEvent(\"resize\");\n this.fireEvent(\"change:dimension\", { value: { height: this.height, width: this.width, old: old } });\n\n // Update the resize handles if the user change the position of the element via an API call.\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this10.canvas, _this10);\n }\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the bounding box of the figure\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * width: w,\r\n * height: h,\r\n * x: x,\r\n * y: y\r\n * });\r\n *\r\n * // or\r\n * figure.attr({\r\n * boundingBox: {x:1, y:100, width:30, height:30}\r\n * });\r\n *\r\n * @param {draw2d.geo.Rectangle} rect\r\n * @since 4.8.0\r\n */\n setBoundingBox: function setBoundingBox(rect) {\n rect = new _packages2.default.geo.Rectangle(rect);\n\n var orig = this.repaintBlocked;\n this.repaintBlocked = true;\n this.setPosition(rect.x, rect.y);\n this.repaintBlocked = orig;\n this.setDimension(rect.w, rect.h);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the bounding box of the figure in absolute position to the canvas.\r\n *\r\n * @return {draw2d.geo.Rectangle}\r\n **/\n getBoundingBox: function getBoundingBox() {\n return new _packages2.default.geo.Rectangle(this.getAbsoluteX(), this.getAbsoluteY(), this.getWidth(), this.getHeight());\n },\n\n /**\r\n * @method\r\n * Detect whenever the hands over coordinate is inside the figure.\r\n * The default implementation is a simple bounding box test.\r\n *\r\n * @param {Number} iX\r\n * @param {Number} iY\r\n * @param {Number} [corona]\r\n *\r\n * @returns {Boolean}\r\n */\n hitTest: function hitTest(iX, iY, corona) {\n if (typeof corona === \"number\") {\n return this.getBoundingBox().scale(corona, corona).hitTest(iX, iY);\n }\n return this.getBoundingBox().hitTest(iX, iY);\n },\n\n /**\r\n * @method\r\n * Switch on/off the drag drop behaviour of this object\r\n *\r\n * @param {Boolean} flag The new drag drop indicator\r\n **/\n setDraggable: function setDraggable(flag) {\n this.draggable = !!flag;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the Drag drop enable flag\r\n *\r\n * @return {Boolean} The new drag drop indicator\r\n **/\n isDraggable: function isDraggable() {\n // delegate to the composite if given\n if (this.composite !== null) {\n return this.composite.isMemberDraggable(this, this.draggable);\n }\n\n return this.draggable;\n },\n\n /**\r\n * @method\r\n * Returns the true if the figure can be resized.\r\n *\r\n * @return {Boolean}\r\n **/\n isResizeable: function isResizeable() {\n return this.resizeable;\n },\n\n /**\r\n * @method\r\n * You can change the resizeable behaviour of this object. Hands over [false] and\r\n * the figure has no resizehandles if you select them with the mouse.<br>\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * resizeable: flag\r\n * });\r\n *\r\n * @param {Boolean} flag The resizeable flag.\r\n **/\n setResizeable: function setResizeable(flag) {\n this.resizeable = !!flag;\n this.fireEvent(\"change:resizeable\", { value: this.resizeable });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Indicates whenever the element is selectable by user interaction or API.\r\n *\r\n * @return {Boolean}\r\n **/\n isSelectable: function isSelectable() {\n // delegate to the composite if given\n if (this.composite !== null) {\n return this.composite.isMemberSelectable(this, this.selectable);\n }\n\n return this.selectable;\n },\n\n /**\r\n * @method\r\n * You can change the selectable behavior of this object. Hands over [false] and\r\n * the figure has no selection handles if you try to select them with the mouse.<br>\r\n *\r\n * @param {Boolean} flag The selectable flag.\r\n **/\n setSelectable: function setSelectable(flag) {\n this.selectable = !!flag;\n this.fireEvent(\"change:selectable\", { value: this.selectable });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return true if the object doesn't care about the aspect ratio.\r\n * You can change the height and width independent.<br>\r\n *\r\n * Replaced with \"getKeepAspectRatio\"\r\n * @return {Boolean}\r\n * @deprecated\r\n */\n isStrechable: function isStrechable() {\n return !this.getKeepAspectRatio();\n },\n\n /**\r\n * @method\r\n * Return false if you avoid that the user can delete your figure.\r\n * Sub class can override this method.\r\n *\r\n * @return {Boolean}\r\n **/\n isDeleteable: function isDeleteable() {\n return this.deleteable;\n },\n\n /**\r\n * @method\r\n * Set the flag if the shape is deleteable.\r\n *\r\n * @param {Boolean} flag enable or disable flag for the delete operation\r\n **/\n setDeleteable: function setDeleteable(flag) {\n this.deleteable = !!flag;\n this.fireEvent(\"change:deleteable\", { value: this.deleteable });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the parent of this figure.\r\n * Don't call them manually.\r\n *\r\n * @param {draw2d.Figure} parent The new parent of this figure\r\n * @private\r\n **/\n setParent: function setParent(parent) {\n this.parent = parent;\n\n if (parent !== null) {\n // inherit the selection handling impl from the parent\n this.setSelectionAdapter(parent.getSelectionAdapter());\n } else {\n // use default\n this.setSelectionAdapter(null);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the parent of this figure.\r\n *\r\n * @return {draw2d.Figure}\r\n **/\n getParent: function getParent() {\n return this.parent;\n },\n\n /**\r\n * @method\r\n * Check to see if a figure is a descendant of another figure.\r\n * <br>\r\n * The contains() method returns true if the figure provided by the argument is a descendant of this figure,\r\n * whether it is a direct child or nested more deeply. Otherwise, it returns false.\r\n *\r\n * @param {draw2d.Figure} containedFigure The figure that may be contained by (a descendant of) this figure.\r\n * @since 5.5.4\r\n */\n contains: function contains(containedFigure) {\n if (containedFigure.getParent() === this) {\n return true;\n }\n\n for (var i = 0, len = this.children.getSize(); i < len; i++) {\n var child = this.children.get(i).figure;\n if (child.contains(containedFigure)) {\n return true;\n }\n }\n return false;\n },\n\n /**\r\n * @method\r\n * Get the top most parent of this figure. This can be an layout figure or parent container\r\n *\r\n * @return {draw2d.Figure}\r\n * @since 5.0.6\r\n **/\n getRoot: function getRoot() {\n var root = this.parent;\n while (root !== null && root.parent !== null) {\n root = root.parent;\n }\n return root;\n },\n\n /**\r\n * @method\r\n * Set the assigned composite of this figure.\r\n *\r\n * @param {draw2d.shape.composite.StrongComposite} composite The assigned composite of this figure\r\n * @since 4.8.0\r\n **/\n setComposite: function setComposite(composite) {\n if (composite !== null && !(composite instanceof _packages2.default.shape.composite.StrongComposite)) {\n throw \"'composite must inherit from 'draw2d.shape.composite.StrongComposite'\";\n }\n\n this.composite = composite;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the assigned composite of this figure.\r\n *\r\n * @return {draw2d.shape.composite.StrongComposite}\r\n * @since 4.8.0\r\n **/\n getComposite: function getComposite() {\n return this.composite;\n },\n\n /**\r\n * @method\r\n * Execute all handlers and behaviors attached to the figure for the given event type.\r\n *\r\n *\r\n * @param {String} event the event to trigger\r\n * @param {Object} [args] optional parameters for the triggered event callback\r\n *\r\n * @since 5.0.0\r\n */\n fireEvent: function fireEvent(event, args) {\n try {\n if (typeof this.eventSubscriptions[event] === 'undefined') {\n return;\n }\n\n // avoid recursion\n if (this._inEvent === true) {\n return;\n }\n this._inEvent = true;\n var subscribers = this.eventSubscriptions[event];\n for (var i = 0; i < subscribers.length; i++) {\n subscribers[i](this, args);\n }\n } catch (exc) {\n console.log(exc);\n throw exc;\n } finally {\n this._inEvent = false;\n\n // fire a generic change event if an attribute has changed\n // required for some DataBinding frameworks or for the Backbone.Model compatibility\n // the event \"change\" with the corresponding attribute name as additional parameter\n if (event.substring(0, 7) === \"change:\") {\n this.fireEvent(\"change\", event.substring(7));\n }\n }\n },\n\n /**\r\n * @method\r\n * Attach an event handler function for one or more events to the figure.\r\n * To remove events bound with .on(), see {@link #off}.\r\n *\r\n * possible events are:<br>\r\n * <ul>\r\n * <li>click</li>\r\n * <li>dblclick</li>\r\n * <li>move</li>\r\n * <li>resize</li>\r\n * <li>timer</li>\r\n * <li>contextmenu</li>\r\n * <li>show</li>\r\n * <li>hide</li>\r\n * <li>added</li>\r\n * <li>removed</li>\r\n * <li>change:[attr]</li>\r\n * </ul>\r\n *\r\n * @param {String} event One or more space-separated event types\r\n * @param {Function} callback A function to execute when the event is triggered.\r\n * @param {draw2d.Figure} callback.emitter the emitter of the event\r\n * @param {Object} [callback.obj] optional event related data\r\n * @param {Object} [context] optional context of the function callback.\r\n * @since 5.0.0\r\n */\n on: function on(event, callback, context) {\n var events = event.split(\" \");\n if (typeof callback === \"undefined\") {\n debugger;\n }\n // the \"context\" param is add to be compatible with Backbone.Model.\n // The project \"backbone.ModelBinder\" requires this signature and we want to be nice.\n //\n if (context) {\n callback = callback.bind(context);\n callback.___originalCallback = callback;\n }\n\n for (var i = 0; i < events.length; i++) {\n if (typeof this.eventSubscriptions[events[i]] === 'undefined') {\n this.eventSubscriptions[events[i]] = [];\n }\n // avoid duplicate registration for the same event with the same callback method\n if (-1 !== $.inArray(callback, this.eventSubscriptions[events[i]])) {\n // debugger\n } else {\n this.eventSubscriptions[events[i]].push(callback);\n }\n }\n return this;\n },\n\n /**\r\n * @method\r\n * The .off() method removes event handlers that were attached with {@link #on}.<br>\r\n * Calling .off() with no arguments removes all handlers attached to the elements.<br>\r\n * <br>\r\n * If a simple event name such as \"move\" is provided, all events of that type are removed from the figure.\r\n *\r\n *\r\n * @param {String|Function} eventOrFunction the event name of the registerd function or the function itself\r\n * @since 5.0.0\r\n */\n off: function off(eventOrFunction) {\n if (typeof eventOrFunction === \"undefined\") {\n this.eventSubscriptions = {};\n } else if (typeof eventOrFunction === 'string') {\n this.eventSubscriptions[eventOrFunction] = [];\n } else {\n for (var event in this.eventSubscriptions) {\n this.eventSubscriptions[event] = this.eventSubscriptions[event].filter(function (callback) {\n if (typeof callback.___originalCallback !== \"undefined\") {\n return callback.___originalCallback !== eventOrFunction;\n }\n return callback !== eventOrFunction;\n });\n }\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the best figure at the location [x,y]. It is a simple hit test. Keep in mind that only visible objects\r\n * are returned.\r\n *\r\n * @param {Number} x The x position.\r\n * @param {Number} y The y position.\r\n * @param {draw2d.Figure|Array} [figureToIgnore] The figures which should be ignored.\r\n **/\n getBestChild: function getBestChild(x, y, figureToIgnore) {\n if (!Array.isArray(figureToIgnore)) {\n if (figureToIgnore instanceof _packages2.default.Figure) {\n figureToIgnore = [figureToIgnore];\n } else {\n figureToIgnore = [];\n }\n }\n\n var result = null;\n\n // tool method to check recursive a figure for hitTest\n //\n var checkRecursive = function checkRecursive(children) {\n children.each(function (i, e) {\n var c = e.figure;\n checkRecursive(c.children);\n if (result === null && c.isVisible() === true && c.hitTest(x, y) === true && $.inArray(c, figureToIgnore) === -1) {\n result = c;\n }\n return result === null; // break the each-loop if we found an element\n });\n };\n\n checkRecursive(this.children);\n\n return result;\n },\n\n /**\r\n * @method\r\n * Returns the Command to perform the specified Request or null.\r\n *\r\n * @param {draw2d.command.CommandType} request describes the Command being requested\r\n * @return {draw2d.command.Command} null or a Command\r\n * @private\r\n **/\n createCommand: function createCommand(request) {\n if (request === null) {\n return null;\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE) {\n if (!this.isDraggable()) {\n return null;\n }\n return new _packages2.default.command.CommandMove(this);\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.DELETE) {\n if (!this.isDeleteable()) {\n return null;\n }\n return new _packages2.default.command.CommandDelete(this);\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.RESIZE) {\n if (!this.isResizeable()) {\n return null;\n }\n return new _packages2.default.command.CommandResize(this);\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Clone the figure. <br>\r\n * You must override and implement the methods <b>getPersistentAttributes</b> and <b>setPersistentAttributes</b> for your custom\r\n * figures if the have special attributes.\r\n *\r\n * The clone() method performs a deep copy of the object, meaning that it copies the children, ports and decorations\r\n * per default. You can control the clone procedure with the 'cloneMetaData'.\r\n *\r\n *\r\n * @param {Object} [cloneMetaData] controls the clone procedure\r\n * @param {Boolean} [cloneMetaData.excludeChildren] set it to true if you want exclude the children.\r\n *\r\n * @since 4.1.0\r\n * @experimental\r\n */\n clone: function clone(cloneMetaData) {\n cloneMetaData = (0, _extend2.default)({ exludeChildren: false }, cloneMetaData);\n\n var clone = eval(\"new \" + this.NAME + \"();\");\n var initialId = clone.id;\n\n clone.setPersistentAttributes(this.getPersistentAttributes());\n\n clone.id = initialId;\n\n // add all decorations to the memento\n //\n if (cloneMetaData.exludeChildren === false) {\n clone.resetChildren();\n this.children.each(function (i, entry) {\n var child = entry.figure.clone();\n // we can ignore the locator if this didn't provide a \"correct\" name, this can happen in some\n // Layout shapes like VerticalLayout or Horziontal Layout. This figures injects it own kind\n // of layouter...so didn'T care about this.\n\n var locator = entry.locator.NAME ? eval(\"new \" + entry.locator.NAME + \"();\") : null;\n clone.add(child, locator);\n });\n }\n\n return clone;\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @return\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n // force deep copy of userData to avoid side effects in the clone method.\n //\n var memento = {\n type: this.NAME,\n id: this.id,\n x: this.getX(),\n y: this.getY(),\n width: this.width,\n height: this.height,\n alpha: this.alpha,\n selectable: this.selectable,\n draggable: this.draggable,\n angle: this.rotationAngle,\n userData: (0, _extend2.default)(true, {}, this.userData)\n };\n\n if (this.cssClass !== null) {\n memento.cssClass = this.cssClass;\n }\n\n if (this.composite !== null) {\n memento.composite = this.composite.getId();\n }\n\n return memento;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this.id = memento.id;\n this.setPosition(parseFloat(memento.x), parseFloat(memento.y));\n\n // width and height are optional parameter for the JSON stuff.\n // We use the defaults if the attributes not present\n if (typeof memento.width !== \"undefined\") {\n this.width = parseFloat(memento.width);\n }\n\n if (typeof memento.height !== \"undefined\") {\n this.height = parseFloat(memento.height);\n }\n\n if (typeof memento.userData !== \"undefined\") {\n this.userData = memento.userData;\n }\n\n if (typeof memento.selectable !== \"undefined\") {\n this.selectable = memento.selectable;\n }\n\n if (typeof memento.draggable !== \"undefined\") {\n this.draggable = memento.draggable;\n }\n\n if (typeof memento.cssClass !== \"undefined\") {\n this.setCssClass(memento.cssClass);\n }\n\n if (typeof memento.alpha !== \"undefined\") {\n this.setAlpha(parseFloat(memento.alpha));\n }\n\n if (typeof memento.angle !== \"undefined\") {\n this.rotationAngle = parseFloat(memento.angle);\n }\n\n return this;\n }\n});\n\n/***/ }),\n\n/***/ \"./src/HeadlessCanvas.js\":\n/*!*******************************!*\\\n !*** ./src/HeadlessCanvas.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.HeadlessCanvas = Class.extend({\n NAME: \"draw2d.HeadlessCanvas\",\n\n /**\r\n * @constructor\r\n * Create a new canvas with the given HTML DOM references.\r\n *\r\n * @param {String} canvasId the id of the DOM element to use a parent container\r\n */\n init: function init() {\n // internal document with all figures, ports, ....\n //\n this.figures = new _packages2.default.util.ArrayList();\n this.lines = new _packages2.default.util.ArrayList(); // crap - why are connections not just figures. Design by accident\n this.commonPorts = new _packages2.default.util.ArrayList();\n\n this.eventSubscriptions = {};\n\n // The CommandStack for undo/redo operations\n //\n this.commandStack = new _packages2.default.command.CommandStack();\n },\n\n /**\r\n * @method\r\n * Reset the canvas and delete all model elements.<br>\r\n * You can now reload another model to the canvas with a {@link draw2d.io.Reader}\r\n *\r\n * @since 1.1.0\r\n */\n clear: function clear() {\n // internal document with all figures, ports, ....\n //\n this.figures = new _packages2.default.util.ArrayList();\n this.lines = new _packages2.default.util.ArrayList();\n this.commonPorts = new _packages2.default.util.ArrayList();\n\n this.commandStack.markSaveLocation();\n\n return this;\n },\n\n calculateConnectionIntersection: function calculateConnectionIntersection() {},\n\n /**\r\n * @method\r\n * Callback for any kind of image export tools to trigger the canvas to hide all unwanted\r\n * decorations. The method is called e.g. from the draw2d.io.png.Writer\r\n *\r\n * @since 4.0.0\r\n * @template\r\n */\n hideDecoration: function hideDecoration() {},\n\n /**\r\n * @method\r\n * callback method for any image export writer to reactivate the decoration\r\n * of the canvas. e.g. grids, rulers,...\r\n *\r\n *\r\n * @since 4.0.0\r\n * @template\r\n */\n showDecoration: function showDecoration() {},\n\n /**\r\n * @method\r\n * Add a figure at the given x/y coordinate. This method fires an event.\r\n *\r\n * Example:\r\n *\r\n * canvas.on(\"figure:add\", function(emitter, event){\r\n * alert(\"figure added:\");\r\n * });\r\n *\r\n * // or more general if you want catch all figure related events\r\n * //\r\n * canvas.on(\"figure\", function(emitter, event){\r\n * // use event.figure.getCanvas()===null to determine if the\r\n * // figure part of the canvas\r\n *\r\n * alert(\"figure added or removed:\");\r\n * });\r\n *\r\n * @param {draw2d.Figure} figure The figure to add.\r\n * @param {Number/draw2d.geo.Point} [x] The new x coordinate of the figure or the x/y coordinate if it is an draw2d.geo.Point\r\n * @param {Number} [y] The y position.\r\n **/\n add: function add(figure, x, y) {\n if (figure.getCanvas() === this) {\n return;\n }\n\n if (figure instanceof _packages2.default.shape.basic.Line) {\n this.lines.add(figure);\n } else {\n this.figures.add(figure);\n }\n figure.canvas = this;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns all lines/connections in this workflow/canvas.<br>\r\n *\r\n * @protected\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getLines: function getLines() {\n return this.lines;\n },\n\n /**\r\n * @method\r\n * Returns the internal figures.<br>\r\n *\r\n * @protected\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getFigures: function getFigures() {\n return this.figures;\n },\n\n /**\r\n * @method\r\n * Returns the line or connection with the given id.\r\n *\r\n * @param {String} id The id of the line.\r\n *\r\n * @return {draw2d.shape.basic.Line}\r\n **/\n getLine: function getLine(id) {\n var count = this.lines.getSize();\n for (var i = 0; i < count; i++) {\n var line = this.lines.get(i);\n if (line.getId() === id) {\n return line;\n }\n }\n return null;\n },\n\n /**\r\n * @method\r\n * Returns the figure with the given id.\r\n *\r\n * @param {String} id The id of the figure.\r\n * @return {draw2d.Figure}\r\n **/\n getFigure: function getFigure(id) {\n var figure = null;\n this.figures.each(function (i, e) {\n if (e.id === id) {\n figure = e;\n return false;\n }\n });\n return figure;\n },\n\n /**\r\n * @method\r\n * Register a port to the canvas. This is required for other ports to find a valid drop target.\r\n *\r\n * @param {draw2d.Port} port The new port which has been added to the Canvas.\r\n **/\n registerPort: function registerPort(port) {\n // All elements have the same drop targets.\n //\n if (!this.commonPorts.contains(port)) {\n this.commonPorts.add(port);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return all ports in the canvas\r\n *\r\n */\n getAllPorts: function getAllPorts() {\n return this.commonPorts;\n },\n\n /**\r\n * @method\r\n * Returns the command stack for the Canvas. Required for undo/redo support.\r\n *\r\n * @return {draw2d.command.CommandStack}\r\n **/\n getCommandStack: function getCommandStack() {\n return this.commandStack;\n },\n\n // NEW EVENT HANDLING SINCE VERSION 5.0.0\n /**\r\n * @method\r\n * Execute all handlers and behaviors attached to the canvas for the given event type.\r\n *\r\n *\r\n * @param {String} event the event to trigger\r\n * @param {Object} [args] optional parameters for the triggered event callback\r\n *\r\n * @since 5.0.0\r\n */\n fireEvent: function fireEvent(event, args) {\n if (typeof this.eventSubscriptions[event] === 'undefined') {\n return;\n }\n\n var subscribers = this.eventSubscriptions[event];\n for (var i = 0; i < subscribers.length; i++) {\n try {\n subscribers[i](this, args);\n } catch (exc) {\n console.log(exc);\n console.log(subscribers[i]);\n debugger;\n }\n }\n },\n\n /**\r\n * @method\r\n * Attach an event handler function for one or more events to the canvas.\r\n * To remove events bound with .on(), see {@link #off}.\r\n *\r\n * possible events are:<br>\r\n * <ul>\r\n * <li>reset</li>\r\n * <li>select</li>\r\n * </ul>\r\n *\r\n * Example:\r\n *\r\n * canvas.on(\"clear\", function(emitter, event){\r\n * alert(\"canvas.clear() called.\");\r\n * });\r\n *\r\n * canvas.on(\"select\", function(emitter,event){\r\n * if(event.figure!==null){\r\n * alert(\"figure selected\");\r\n * }\r\n * else{\r\n * alert(\"selection cleared\");\r\n * }\r\n * });\r\n *\r\n * @param {String} event One or more space-separated event types\r\n * @param {Function} callback A function to execute when the event is triggered.\r\n * @param {draw2d.Canvas} callback.emitter the emitter of the event\r\n * @param {Object} [callback.obj] optional event related data\r\n *\r\n * @since 5.0.0\r\n */\n on: function on(event, callback) {\n var events = event.split(\" \");\n for (var i = 0; i < events.length; i++) {\n if (typeof this.eventSubscriptions[events[i]] === 'undefined') {\n this.eventSubscriptions[events[i]] = [];\n }\n this.eventSubscriptions[events[i]].push(callback);\n }\n return this;\n },\n\n /**\r\n * @method\r\n * The .off() method removes event handlers that were attached with {@link #on}.<br>\r\n * Calling .off() with no arguments removes all handlers attached to the canvas.<br>\r\n * <br>\r\n * If a simple event name such as \"reset\" is provided, all events of that type are removed from the canvas.\r\n *\r\n *\r\n * @param {String|Function} eventOrFunction the event name of the registerd function\r\n * @since 5.0.0\r\n */\n off: function off(eventOrFunction) {\n if (typeof eventOrFunction === \"undefined\") {\n this.eventSubscriptions = {};\n } else if (typeof eventOrFunction === 'string') {\n this.eventSubscriptions[eventOrFunction] = [];\n } else {\n for (var event in this.eventSubscriptions) {\n this.eventSubscriptions[event] = this.eventSubscriptions[event].filter(function (callback) {\n return callback !== eventOrFunction;\n });\n }\n }\n\n return this;\n }\n}); /**\r\n * @class draw2d.HeadlessCanvas\r\n *\r\n * Required for Node.js draw2d model read/write operations.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/HybridPort.js\":\n/*!***************************!*\\\n !*** ./src/HybridPort.js ***!\n \\***************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.HybridPort = _packages2.default.Port.extend({\n\n NAME: \"draw2d.HybridPort\",\n\n /**\r\n * @constructor\r\n * Create a new HybridPort element\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n // responsive for the arrangement of the port\n // calculates the x/y coordinates in relation to the parent node\n this.locator = new _packages2.default.layout.locator.InputPortLocator();\n },\n\n /**\r\n * @inheritdoc\r\n */\n createCommand: function createCommand(request) {\n // Connect request between two ports\n //\n if (request.getPolicy() === _packages2.default.command.CommandType.CONNECT) {\n\n if (request.source.getParent().getId() === request.target.getParent().getId()) {\n return null;\n }\n\n if (request.source instanceof _packages2.default.InputPort) {\n // This is the difference to the InputPort implementation of createCommand.\n return new _packages2.default.command.CommandConnect(request.target, request.source, request.source);\n } else if (request.source instanceof _packages2.default.OutputPort) {\n // This is the different to the OutputPort implementation of createCommand\n return new _packages2.default.command.CommandConnect(request.source, request.target, request.source);\n } else if (request.source instanceof _packages2.default.HybridPort) {\n // This is the different to the OutputPort implementation of createCommand\n return new _packages2.default.command.CommandConnect(request.target, request.source, request.source);\n }\n\n return null;\n }\n\n // ...else call the base class\n return this._super(request);\n }\n}); /**\r\n * @class draw2d.HybridPort\r\n * A HybridPort can work as Input and as Output port in the same way for a {@link draw2d.Connection}.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.Port\r\n */\n\n/***/ }),\n\n/***/ \"./src/InputPort.js\":\n/*!**************************!*\\\n !*** ./src/InputPort.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.InputPort = _packages2.default.Port.extend({\n\n NAME: \"draw2d.InputPort\",\n\n /**\r\n * @constructor\r\n * Create a new InputPort element\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n // responsive for the arrangement of the port\n // calculates the x/y coordinates in relation to the parent node\n this.locator = new _packages2.default.layout.locator.InputPortLocator();\n },\n\n /**\r\n * @inheritdoc\r\n */\n createCommand: function createCommand(request) {\n // Connect request between two ports\n //\n if (request.getPolicy() === _packages2.default.command.CommandType.CONNECT) {\n return new _packages2.default.command.CommandConnect(request.source, request.target, request.source);\n }\n\n // ...else call the base class\n return this._super(request);\n }\n}); /**\r\n * @class draw2d.InputPort\r\n * A InputPort is the start anchor for a {@link draw2d.Connection}.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.Port\r\n */\n\n/***/ }),\n\n/***/ \"./src/OutputPort.js\":\n/*!***************************!*\\\n !*** ./src/OutputPort.js ***!\n \\***************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.OutputPort = _packages2.default.Port.extend({\n\n NAME: \"draw2d.OutputPort\",\n\n /**\r\n * @constructor\r\n * Create a new OutputPort element\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n // responsive for the arrangement of the port\n // calculates the x/y coordinates in relation to the parent node\n this.locator = new _packages2.default.layout.locator.OutputPortLocator();\n },\n\n /**\r\n * @inheritdoc\r\n */\n createCommand: function createCommand(request) {\n // Connect request between two ports\n //\n if (request.getPolicy() === _packages2.default.command.CommandType.CONNECT) {\n // source and target are changed.\n return new _packages2.default.command.CommandConnect(request.target, request.source, request.source);\n }\n\n // ...else call the base class\n return this._super(request);\n }\n}); /**\r\n * @class draw2d.OutputPort\r\n * A OutputPort is the start anchor for a {@link draw2d.Connection}.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.Port\r\n */\n\n/***/ }),\n\n/***/ \"./src/Port.js\":\n/*!*********************!*\\\n !*** ./src/Port.js ***!\n \\*********************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.Port = _packages2.default.shape.basic.Circle.extend({\n NAME: \"draw2d.Port\",\n\n DEFAULT_BORDER_COLOR: new _packages2.default.util.Color(\"#1B1B1B\"),\n\n /**\r\n * @constructor\r\n * Creates a new Node element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n var _this2 = this;\n\n this.locator = null;\n this.lighterBgColor = null;\n this.name = null;\n\n this._super(extend({\n bgColor: \"#4f6870\",\n stroke: 1,\n diameter: 10,\n color: \"#1B1B1B\",\n selectable: false\n }, attr), setter, getter);\n\n // status var for user interaction\n //\n this.ox = this.x;\n this.oy = this.y;\n this.coronaWidth = 5; // the corona width for the hitTest method. Useful during drag&drop of ports. Better SnapTo behavior.\n this.corona = null; // draw2d.shape.basic.Circle\n this.useGradient = true;\n\n this.preferredConnectionDirection = null;\n\n // current attached connections\n this.connections = new _packages2.default.util.ArrayList();\n\n this.moveListener = function (emitter, event) {\n _this2.repaint();\n // Falls sich der parent bewegt hat, dann muss der Port dies seinen\n // Connections mitteilen\n _this2.fireEvent(\"move\", { figure: _this2, dx: 0, dy: 0 });\n };\n\n this.connectionAnchor = new _packages2.default.layout.anchor.ConnectionAnchor(this);\n\n // for dynamic diagrams. A Port can have a value which is set by a connector\n //\n this.value = null;\n this.maxFanOut = Number.MAX_SAFE_INTEGER;\n\n this.setCanSnapToHelper(false);\n\n // uninstall all default selection policies. This is not required for Ports\n this.editPolicy.each(function (i, policy) {\n return _this2.uninstallEditPolicy(policy);\n });\n\n this.installEditPolicy(new _packages2.default.policy.port.IntrusivePortsFeedbackPolicy());\n // this.installEditPolicy(new draw2d.policy.port.ElasticStrapFeedbackPolicy());\n\n // a port handles the selection handling always by its own regardless if\n // the port is part of an composite, node, group or whatever.\n this.portSelectionAdapter = function () {\n return _this2;\n };\n },\n\n getSelectionAdapter: function getSelectionAdapter() {\n return this.portSelectionAdapter;\n },\n\n /**\r\n * @method\r\n * set the maximal possible count of connections for this port.<br>\r\n * This method din't delete any connection if you reduce the number and a bunch of\r\n * connection are bounded already.\r\n *\r\n * @param {Number} count the maximal number of connection related to this port\r\n */\n setMaxFanOut: function setMaxFanOut(count) {\n this.maxFanOut = Math.max(1, count);\n this.fireEvent(\"change:maxFanOut\", { value: this.maxFanOut });\n\n return this;\n },\n\n /**\r\n * @method\r\n * return the maximal possible connections (in+out) for this port.\r\n *\r\n * @return {Number}\r\n */\n getMaxFanOut: function getMaxFanOut() {\n return this.maxFanOut;\n },\n\n /**\r\n * @method\r\n * Set the Anchor for this object. An anchor is responsible for the endpoint calculation\r\n * of an connection. just visible representation.\r\n *\r\n * @param {draw2d.layout.anchor.ConnectionAnchor} [anchor] the new source anchor for the connection or \"null\" to use the default anchor.\r\n **/\n setConnectionAnchor: function setConnectionAnchor(anchor) {\n // set some good defaults.\n if (typeof anchor === \"undefined\" || anchor === null) {\n anchor = new _packages2.default.layout.anchor.ConnectionAnchor();\n }\n\n this.connectionAnchor = anchor;\n this.connectionAnchor.setOwner(this);\n\n // the anchor has changed. In this case all connections needs an change event to recalculate\n // the anchor and the routing itself\n this.fireEvent(\"move\", { figure: this, dx: 0, dy: 0 });\n\n return this;\n },\n\n getConnectionAnchorLocation: function getConnectionAnchorLocation(referencePoint, inquiringConnection) {\n return this.connectionAnchor.getLocation(referencePoint, inquiringConnection);\n },\n\n getConnectionAnchorReferencePoint: function getConnectionAnchorReferencePoint(inquiringConnection) {\n return this.connectionAnchor.getReferencePoint(inquiringConnection);\n },\n\n /**\r\n * @method\r\n * Returns the **direction** for the connection in relation to the given port and it's parent.\r\n *\r\n * <p>\r\n * Possible values:\r\n * <ul>\r\n * <li>draw2d.geo.Rectangle.DIRECTION_UP</li>\r\n * <li>draw2d.geo.Rectangle.DIRECTION_RIGHT</li>\r\n * <li>draw2d.geo.Rectangle.DIRECTION_DOWN</li>\r\n * <li>draw2d.geo.Rectangle.DIRECTION_LEFT</li>\r\n * </ul>\r\n * <p>\r\n *\r\n * @param {draw2d.Port} peerPort the counterpart port\r\n *\r\n * @return {Number} the direction.\r\n */\n getConnectionDirection: function getConnectionDirection(peerPort) {\n // return the calculated connection direction if the port didn't have set any\n //\n if (typeof this.preferredConnectionDirection === \"undefined\" || this.preferredConnectionDirection === null) {\n return this.getParent().getBoundingBox().getDirection(this.getAbsolutePosition());\n }\n\n return this.preferredConnectionDirection;\n },\n\n /**\r\n * @method\r\n * Set the **direction** for the connection in relation to the given port and it's parent.\r\n *\r\n * <p>\r\n * Possible values:\r\n * <ul>\r\n * <li>up -> 0</li>\r\n * <li>right -> 1</li>\r\n * <li>down -> 2</li>\r\n * <li>left -> 3</li>\r\n * <li>calculated -> null</li>\r\n * </ul>\r\n * <p>\r\n *\r\n * @since 5.2.1\r\n * @param {Number} direction the preferred connection direction.\r\n */\n setConnectionDirection: function setConnectionDirection(direction) {\n this.preferredConnectionDirection = direction;\n\n // needs an change event to recalculate the route\n this.fireEvent(\"move\", { figure: this, dx: 0, dy: 0 });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the locator/layouter of the port. A locator is responsive for the x/y arrangement of the\r\n * port in relation to the parent node.\r\n *\r\n * @param {draw2d.layout.locator.Locator} locator\r\n */\n setLocator: function setLocator(locator) {\n this.locator = locator;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the locator/layouter of the port. A locator is responsive for the x/y arrangement of the\r\n * port in relation to the parent node.\r\n *\r\n * @since 4.2.0\r\n */\n getLocator: function getLocator() {\n return this.locator;\n },\n\n /**\r\n * @method\r\n * Set the new background color of the figure. It is possible to hands over\r\n * <code>null</code> to set the background transparent.\r\n *\r\n * @param {draw2d.util.Color|String} color The new background color of the figure\r\n **/\n setBackgroundColor: function setBackgroundColor(color) {\n this._super(color);\n this.lighterBgColor = this.bgColor.lighter(0.3).rgba();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set a value for the port. This is useful for interactive/dynamic diagrams like circuits, simulator,...\r\n *\r\n * @param {Object} value the new value for the port\r\n */\n setValue: function setValue(value) {\n\n if (value === this.value) {\n return this;\n }\n var old = this.value;\n this.value = value;\n if (this.getParent() !== null) {\n this.getParent().onPortValueChanged(this);\n }\n this.fireEvent(\"change:value\", { value: this.value, old: old });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the user defined value of the port.\r\n *\r\n * @returns {Object}\r\n */\n getValue: function getValue() {\n return this.value;\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n // a port did have the 0/0 coordinate in the center and not in the top/left corner\n //\n attributes.cx = this.getAbsoluteX();\n attributes.cy = this.getAbsoluteY();\n attributes.rx = this.width / 2;\n attributes.ry = attributes.rx;\n attributes.cursor = \"move\";\n\n if (this.getAlpha() < 0.9 || this.useGradient === false) {\n attributes.fill = this.bgColor.rgba();\n } else {\n attributes.fill = [\"90\", this.bgColor.hash(), this.lighterBgColor].join(\"-\");\n }\n\n this._super(attributes);\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n **/\n onMouseEnter: function onMouseEnter() {\n this._oldstroke = this.getStroke();\n this.setStroke(2);\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n **/\n onMouseLeave: function onMouseLeave() {\n this.setStroke(this._oldstroke);\n },\n\n /**\r\n * @method\r\n * Returns a {@link draw2d.util.ArrayList} of {@link draw2d.Connection}s of all related connections to this port.\r\n *\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getConnections: function getConnections() {\n return this.connections;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setParent: function setParent(parent) {\n if (this.parent !== null) {\n this.parent.off(this.moveListener);\n }\n\n this._super(parent);\n\n if (this.parent !== null) {\n this.parent.on(\"move\", this.moveListener);\n }\n },\n\n /**\r\n * @method\r\n * Returns the corona width of the Port. The corona width will be used during the\r\n * drag&drop of a port.\r\n *\r\n * @return {Number}\r\n **/\n getCoronaWidth: function getCoronaWidth() {\n return this.coronaWidth;\n },\n\n /**\r\n * @method\r\n * Set the corona width of the Port. The corona width will be used during the\r\n * drag&drop of a port. You can drop a port in the corona of this port to create\r\n * a connection. It is not neccessary to drop exactly on the port.\r\n *\r\n * @param {Number} width The new corona width of the port\r\n **/\n setCoronaWidth: function setCoronaWidth(width) {\n this.coronaWidth = width;\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean}\r\n * @private\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n // just allow the DragOperation if the port didn't have reached the max fanOut\n // limit.\n if (this.getConnections().getSize() >= this.maxFanOut) {\n return false;\n }\n\n var _this = this;\n\n // this.getShapeElement().insertAfter(this.parent.getShapeElement());\n // don't call the super method. This creates a command and this is not necessary for a port\n this.ox = this.x;\n this.oy = this.y;\n\n var canStartDrag = true;\n\n // notify all installed policies\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n // DragStart operation can send a veto for the dragStart\n // @since 6.1.0\n canStartDrag = canStartDrag && e.onDragStart(_this.canvas, _this, x, y, shiftKey, ctrlKey);\n }\n });\n\n return canStartDrag;\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n *\r\n * @private\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n // TODO: warum wurde diese methode überschrieben?!\n this._super(dx, dy);\n },\n\n /**\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @private\r\n **/\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n // Don't call the parent implementation. This will create an CommandMove object\n // and store them o the CommandStack for the undo operation. This makes no sense for a\n // port.\n // draw2d.shape.basic.Rectangle.prototype.onDragEnd.call(this); DON'T call the super implementation!!!\n\n this.setAlpha(1.0);\n\n // 1.) Restore the old Position of the node\n //\n this.setPosition(this.ox, this.oy);\n },\n\n /**\r\n * @method\r\n * Called if the user drop this element onto the dropTarget\r\n *\r\n * @param {draw2d.Figure} dropTarget The drop target.\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @@private\r\n **/\n onDrop: function onDrop(dropTarget, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Callback method if a new connection has created with this port\r\n *\r\n * // Alternatively you register for this event with:\r\n * port.on(\"connect\", function(emitterPort, connection){\r\n * alert(\"port connected\");\r\n * });\r\n *\r\n * @param {draw2d.Connection} connection The connection which has been created\r\n * @since 2.5.1\r\n *\r\n * @template\r\n **/\n onConnect: function onConnect(connection) {},\n\n /**\r\n * @method\r\n * Callback method if a new connection has created with this port\r\n *\r\n * // Alternatively you register for this event with:\r\n * port.on(\"connect\", function(emitterPort, connection){\r\n * alert(\"port disconnected\");\r\n * });\r\n *\r\n * @param {draw2d.Connection} connection The connection which has been deleted\r\n * @since 2.5.1\r\n *\r\n * @template\r\n **/\n onDisconnect: function onDisconnect(connection) {},\n\n /**\r\n * @method\r\n * Return the name of this port.\r\n *\r\n * @return {String}\r\n **/\n getName: function getName() {\n return this.name;\n },\n\n /**\r\n * @method\r\n * Set the name of this port. The name of the port can be referenced by the lookup of\r\n * ports in the node.\r\n *\r\n *\r\n * @param {String} name The new name of this port.\r\n **/\n setName: function setName(name) {\n this.name = name;\n },\n\n /**\r\n * @method\r\n * Hit test for ports. This method respect the corona diameter of the port for the hit test.\r\n * The corona width can be set with {@link draw2d.Port#setCoronaWidth}\r\n * @param {Number} iX\r\n * @param {Number} iY\r\n * @param {Number} [corona]\r\n * @return {Boolean}\r\n */\n hitTest: function hitTest(iX, iY, corona) {\n var x = this.getAbsoluteX() - this.coronaWidth - this.getWidth() / 2;\n var y = this.getAbsoluteY() - this.coronaWidth - this.getHeight() / 2;\n var iX2 = x + this.getWidth() + this.coronaWidth * 2;\n var iY2 = y + this.getHeight() + this.coronaWidth * 2;\n\n return iX >= x && iX <= iX2 && iY >= y && iY <= iY2;\n },\n\n /**\r\n * @method\r\n * Highlight this port\r\n *\r\n * @param {Boolean} flag indicator if the figure should glow.\r\n */\n setGlow: function setGlow(flag) {\n if (flag === true && this.corona === null) {\n this.corona = new _packages2.default.Corona();\n this.corona.setDimension(this.getWidth() + this.getCoronaWidth() * 2, this.getWidth() + this.getCoronaWidth() * 2);\n this.corona.setPosition(this.getAbsoluteX() - this.getCoronaWidth() - this.getWidth() / 2, this.getAbsoluteY() - this.getCoronaWidth() - this.getHeight() / 2);\n\n this.corona.setCanvas(this.getCanvas());\n\n // important inital\n this.corona.getShapeElement();\n this.corona.repaint();\n } else if (flag === false && this.corona !== null) {\n this.corona.setCanvas(null);\n this.corona = null;\n }\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createCommand: function createCommand(request) {\n // the port has its own implementation of the CommandMove\n //\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE) {\n if (!this.isDraggable()) {\n return null;\n }\n return new _packages2.default.command.CommandMovePort(this);\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Called from the figure itself when any position changes happens. All listener\r\n * will be informed.\r\n * <br>\r\n * DON'T fire this event if the Port is during a Drag&Drop operation. This can happen\r\n * if we try to connect two ports\r\n **/\n fireEvent: function fireEvent(event, args) {\n if (this.isInDragDrop === true && event !== \"drag\") {\n return;\n }\n\n this._super(event, args);\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @return\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n memento.maxFanOut = this.maxFanOut;\n memento.name = this.name;\n\n // defined by the locator. Don't persist\n //\n delete memento.x;\n delete memento.y;\n\n // ports didn'T have children ports. In this case we\n // delete this attribute as well to avoid confusions.\n //\n delete memento.ports;\n\n return memento;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.maxFanOut !== \"undefined\") {\n // Big bug in the past.\n // I used Number.MAX_VALUE as maxFanOut which is 1.7976931348623157e+308\n // parseInt creates \"1\" during the reading of the JSON - which is crap.\n // BIG BIG BUG!!! my fault.\n // Now check if the memento.maxFanOut is a number and take this without crappy parsing.\n if (typeof memento.maxFanOut === \"number\") {\n this.maxFanOut = memento.maxFanOut;\n } else {\n this.maxFanOut = Math.max(1, parseInt(memento.maxFanOut));\n }\n }\n if (typeof memento.name !== \"undefined\") {\n this.setName(memento.name);\n }\n\n return this;\n }\n});\n\n/**\r\n * @class draw2d.Corona\r\n * Glow effect for ports. Just for internal use.\r\n *\r\n * @extend draw2d.shape.basic.Circle\r\n */\n/**\r\n * @class draw2d.Port\r\n * A port is an object that is used to establish a connection between a node and a {@link draw2d.Connection}. The port can\r\n * be placed anywhere within a node ( see {@link draw2d.layout.locator.PortLocator} for details)\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Circle\r\n */\n\n_packages2.default.Corona = _packages2.default.shape.basic.Circle.extend({\n\n /**\r\n * @constructor\r\n * Creates a new Node element which are not assigned to any canvas.\r\n *\r\n */\n init: function init() {\n this._super();\n this.setAlpha(0.3);\n this.setBackgroundColor(new _packages2.default.util.Color(178, 225, 255));\n this.setColor(new _packages2.default.util.Color(102, 182, 252));\n },\n\n /**\r\n * @method\r\n * the the opacity of the element.\r\n *\r\n * @param {Number} percent\r\n */\n setAlpha: function setAlpha(percent) {\n this._super(Math.min(0.3, percent));\n this.setDeleteable(false);\n this.setDraggable(false);\n this.setResizeable(false);\n this.setSelectable(false);\n\n return this;\n }\n});\n\n/***/ }),\n\n/***/ \"./src/ResizeHandle.js\":\n/*!*****************************!*\\\n !*** ./src/ResizeHandle.js ***!\n \\*****************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ./util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.ResizeHandle\r\n * The Resizehandles for Figures.\r\n\r\n * <pre>\r\n * Possible Type:\r\n *\r\n * 1 2 3\r\n * O-----------O-------------O\r\n * | |\r\n * | |\r\n * 8 O + 9 O 4\r\n * | |\r\n * | |\r\n * O-----------O-------------O\r\n * 7 6 5\r\n * </pre>\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n_packages2.default.ResizeHandle = _packages2.default.shape.basic.Rectangle.extend({\n NAME: \"draw2d.ResizeHandle\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {draw2d.Figure} the owner if the resize handle\r\n * @param {Number} type the type of the ResizeHandle.\r\n */\n init: function init(attr, setter, getter) {\n var _this = this;\n\n this.zoomCallback = function () {\n _this.attr({\n width: _this.origWidth * _this.getCanvas().getZoom(),\n height: _this.origHeight * _this.getCanvas().getZoom(),\n radius: _this.origRadius * _this.getCanvas().getZoom(),\n stroke: _this.origStroke * _this.getCanvas().getZoom()\n });\n\n // size of the ResizeHandle has changed. Force a reposition of handle\n //\n if (!_this.blockEvent) _this.owner.fireEvent(\"move\", {});\n };\n\n this._super((0, _extend2.default)({\n // set some good defaults\n bgColor: \"#FDFDFD\",\n stroke: 0.5,\n width: 10,\n height: 10,\n minWidth: 0.3,\n minHeight: 0.3,\n color: \"#a0a0a0\",\n radius: 1,\n selectable: false\n // and allow to override them\n }, attr), (0, _extend2.default)({\n owner: this.setOwner,\n type: this.setType\n }, setter), (0, _extend2.default)({\n owner: this.getOwner,\n type: this.getType\n }, getter));\n\n // required in the SelectionEditPolicy to indicate the type of figure\n // which the user clicks\n this.isResizeHandle = true;\n\n this.command = null;\n this.commandMove = null;\n this.commandResize = null;\n this.useGradient = true;\n\n this.origRadius = this.radius;\n this.origWidth = this.width;\n this.origHeight = this.height;\n this.origStroke = this.stroke;\n },\n\n /**\r\n * @method\r\n * The edge of the rectangle for the snapTo mechanism.\r\n *\r\n * @return\r\n */\n getSnapToDirection: function getSnapToDirection() {\n switch (this.type) {\n case 1:\n return _packages2.default.SnapToHelper.NORTH_WEST;\n case 2:\n return _packages2.default.SnapToHelper.NORTH;\n case 3:\n return _packages2.default.SnapToHelper.NORTH_EAST;\n case 4:\n return _packages2.default.SnapToHelper.EAST;\n case 5:\n return _packages2.default.SnapToHelper.SOUTH_EAST;\n case 6:\n return _packages2.default.SnapToHelper.SOUTH;\n case 7:\n return _packages2.default.SnapToHelper.SOUTH_WEST;\n case 8:\n return _packages2.default.SnapToHelper.WEST;\n case 9:\n return _packages2.default.SnapToHelper.NSEW;\n default:\n return _packages2.default.SnapToHelper.EAST;\n }\n },\n\n /**\r\n * @inheritdoc\r\n */\n createShapeElement: function createShapeElement() {\n this.shape = this._super();\n\n this.shape.node.setAttribute(\"type\", this.type);\n this.updateCursor(this.shape);\n\n return this.shape;\n },\n\n /**\r\n * @method\r\n * Returns the current used SVG as string\r\n *\r\n * @returns {String}\r\n */\n getOwner: function getOwner() {\n return this.owner;\n },\n\n setOwner: function setOwner(owner) {\n this.owner = owner;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the current used SVG as string\r\n *\r\n * @returns {String}\r\n */\n getType: function getType() {\n return this.type;\n },\n\n setType: function setType(type) {\n this.type = type;\n\n return this;\n },\n\n /**\r\n * @method\r\n * calculate and set the cursor of the reize handle\r\n * @private\r\n */\n updateCursor: function updateCursor(shape) {\n if (shape === null) {\n return this;\n }\n\n if (this.isDraggable() === false) {\n shape.attr({ \"cursor\": \"default\" });\n return this;\n }\n\n switch (this.type) {\n case 1:\n shape.attr({ \"cursor\": \"nw-resize\" });\n break;\n case 2:\n shape.attr({ \"cursor\": \"n-resize\" });\n break;\n case 3:\n shape.attr({ \"cursor\": \"ne-resize\" });\n break;\n case 4:\n shape.attr({ \"cursor\": \"e-resize\" });\n break;\n case 5:\n shape.attr({ \"cursor\": \"se-resize\" });\n break;\n case 6:\n shape.attr({ \"cursor\": \"s-resize\" });\n break;\n case 7:\n shape.attr({ \"cursor\": \"sw-resize\" });\n break;\n case 8:\n shape.attr({ \"cursor\": \"w-resize\" });\n break;\n default:\n shape.attr({ \"cursor\": \"move\" });\n break;\n }\n return this;\n },\n\n /**\r\n * @method\r\n * Adjust the draggable flag of the resize handle and update the cursor of the shape in relation\r\n * to the type of resize handle. north, south,west,..\r\n *\r\n * @param flag\r\n * @returns\r\n */\n setDraggable: function setDraggable(flag) {\n this._super(flag);\n this.updateCursor(this.shape);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Will be called if the drag and drop action beginns. You can return [false] if you\r\n * want avoid that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} true whenever the drag drop operation is allowed.\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n // This happens if the selected figure has set the \"nonResizeable\" flag\n // In this case the ResizeHandle can't be dragged. => no resize\n //\n if (!this.isDraggable()) {\n return false;\n }\n\n this.ox = this.getAbsoluteX();\n this.oy = this.getAbsoluteY();\n\n this.commandMove = this.owner.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE));\n this.commandResize = this.owner.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.RESIZE));\n\n return true;\n },\n\n /**\r\n * @method\r\n * Called by the framework if the figure is moved by user interaction.\r\n *\r\n * @param {Number} dx the move x offset\r\n * @param {Number} dy the move y offset\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n *\r\n */\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n if (this.isDraggable() === false) {\n return;\n }\n\n var oldX = this.getAbsoluteX();\n var oldY = this.getAbsoluteY();\n\n // call the super.drag method with all snapTo### handler and adjustments\n this._super(dx, dy, dx2, dy2);\n\n var diffX = this.getAbsoluteX() - oldX;\n var diffY = this.getAbsoluteY() - oldY;\n\n var obj = this.owner;\n var objPosX = obj.getAbsoluteX();\n var objPosY = obj.getAbsoluteY();\n var objWidth = obj.getWidth();\n var objHeight = obj.getHeight();\n\n var newX = null;\n var newY = null;\n var corrPos = null;\n switch (this.type) {\n case 1:\n obj.setDimension(objWidth - diffX, objHeight - diffY);\n newX = objPosX + (objWidth - obj.getWidth());\n newY = objPosY + (objHeight - obj.getHeight());\n obj.setPosition(newX, newY);\n break;\n case 2:\n obj.setDimension(objWidth, objHeight - diffY);\n newX = objPosX;\n newY = objPosY + (objHeight - obj.getHeight());\n obj.setPosition(newX, newY);\n break;\n case 3:\n obj.setDimension(objWidth + diffX, objHeight - diffY);\n newX = objPosX;\n newY = objPosY + (objHeight - obj.getHeight());\n obj.setPosition(newX, newY);\n break;\n case 4:\n obj.setDimension(objWidth + diffX, objHeight);\n break;\n case 5:\n obj.setDimension(objWidth + diffX, objHeight + diffY);\n break;\n case 6:\n obj.setDimension(objWidth, objHeight + diffY);\n break;\n case 7:\n obj.setDimension(objWidth - diffX, objHeight + diffY);\n newX = objPosX + (objWidth - obj.getWidth());\n newY = objPosY;\n obj.setPosition(newX, newY);\n break;\n case 8:\n obj.setDimension(objWidth - diffX, objHeight);\n newX = objPosX + (objWidth - obj.getWidth());\n newY = objPosY;\n obj.setPosition(newX, newY);\n break;\n }\n\n if (newX !== null) {\n // may the setPosition has changed regarding any constraint or edit policies. In this case\n // we must adjust the dimension with the related correction\n //\n corrPos = obj.getPosition();\n if (corrPos.x !== newX || corrPos.y !== newY) {\n obj.setDimension(obj.getWidth() - (corrPos.x - newX), obj.getHeight() - (corrPos.y - newY));\n }\n }\n },\n\n /**\r\n * @method\r\n * Will be called after a drag and drop action.<br>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n if (!this.isDraggable()) {\n return;\n }\n\n // An non draggable resizeHandle doesn't create a move/resize command.\n // This happens if the selected figure has set the \"nonResizeable\" flag.\n //\n if (this.commandMove !== null) {\n this.commandMove.setPosition(this.owner.getX(), this.owner.getY());\n this.canvas.getCommandStack().execute(this.commandMove);\n this.commandMove = null;\n }\n\n if (this.commandResize !== null) {\n this.commandResize.setDimension(this.owner.getWidth(), this.owner.getHeight());\n this.canvas.getCommandStack().execute(this.commandResize);\n this.commandResize = null;\n }\n },\n\n /**\r\n * Set the position of the object.<br>\r\n * The ResizeHandle overrides the Figure.setPosition method. The base\r\n * class updates the resize handles during the update of the Dimension/Position. This\r\n * is not neccessary for the ResizeHandles. Performance issue.\r\n *\r\n * @param {Number|draw2d.geo.Point} x The new x coordinate of the figure\r\n * @param {Number} y The new y coordinate of the figure\r\n **/\n setPosition: function setPosition(x, y) {\n // don't call base implementation. Base implementation will show\n // ResizeHandles...but I'm the ResizeHandle\n if (x instanceof _packages2.default.geo.Point) {\n this.x = x.x;\n this.y = x.y;\n } else {\n this.x = x;\n this.y = y;\n }\n\n if (this.repaintBlocked === true || this.shape === null) {\n return this;\n }\n\n // performance improvement by setting the coordinates direct.\n this.shape.attr({ x: this.x, y: this.y });\n\n this.applyTransformation();\n },\n\n /**\r\n * @method\r\n * Set the new dimension of the the ResizeHandle. If you didn't pass any width/height the best default for the\r\n * platform will be used.\r\n *\r\n * Additional the \"snapTo\" anchor is re-calculated in relation to the type of ResizeHandle\r\n *\r\n * @param {Number} [width] new width of the resize handle\r\n * @param {Number} [height] new width of the resize handle\r\n */\n setDimension: function setDimension(width, height) {\n\n if (typeof height !== \"undefined\") {\n this._super(width, height);\n } else {\n if (_packages2.default.isTouchDevice) {\n this._super(15, 15);\n } else {\n this._super(8, 8);\n }\n }\n\n var offset = this.getWidth();\n var offset2 = offset / 2;\n\n switch (this.type) {\n case 1:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(offset, offset));\n break;\n case 2:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(offset2, offset));\n break;\n case 3:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(0, offset));\n break;\n case 4:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(0, offset2));\n break;\n case 5:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(0, 0));\n break;\n case 6:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(offset2, 0));\n break;\n case 7:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(offset, 0));\n break;\n case 8:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(offset, offset2));\n break;\n case 9:\n this.setSnapToGridAnchor(new _packages2.default.geo.Point(offset2, offset2));\n break;\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Show the ResizeHandle and add it to the canvas.<br>\r\n * Additional bring it in to the front of other figures if we didn't use\r\n * an overlayCanvas.\r\n *\r\n * If the ResizeHandle is place inside an overlayCanvas it is automatically on top.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to use\r\n **/\n show: function show(canvas) {\n // don't call the parent function. The parent functions delete this object\n // and a resize handle can't be deleted.\n this.setCanvas(canvas);\n\n this.canvas.resizeHandles.add(this);\n this.shape.insertAfter(this.owner.getShapeElement());\n\n try {\n this.blockEvent = true;\n this.zoomCallback();\n } finally {\n this.blockEvent = false;\n }\n this.repaint();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Hide the resize handle and remove it from the canvas.\r\n *\r\n **/\n hide: function hide() {\n // don't call the parent function. The parent functions delete this object\n // and a resize handle shouldn't be deleted.\n if (this.shape === null) {\n return;\n }\n\n this.canvas.resizeHandles.remove(this);\n this.setCanvas(null);\n\n return this;\n },\n\n setCanvas: function setCanvas(canvas) {\n\n if (this.canvas !== null) {\n this.canvas.off(this.zoomCallback);\n }\n\n this._super(canvas);\n\n if (this.canvas !== null) {\n this.canvas.on(\"zoom\", this.zoomCallback);\n }\n },\n\n /**\r\n * @method\r\n * Set the new background color of the figure. It is possible to hands over\r\n * <code>null</code> to set the background transparent.\r\n *\r\n * @param {draw2d.util.Color} color The new background color of the figure\r\n **/\n setBackgroundColor: function setBackgroundColor(color) {\n color = new _packages2.default.util.Color(color);\n\n this.bgGradient = \"90-\" + color.darker(0.2).hash() + \"-\" + color.hash();\n this._super(color);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n if (this.bgColor.hash() === \"none\") {\n attributes.fill = \"none\";\n } else if (this.getAlpha() < 0.9 || this.useGradient === false) {\n attributes.fill = this.bgColor.rgba();\n } else {\n attributes.fill = this.bgGradient;\n }\n\n this._super(attributes);\n },\n\n /**\r\n * @method\r\n * return true if the element can be used in combination with the\r\n * SnapToHelper feature.\r\n *\r\n * @return {Boolean}\r\n **/\n supportsSnapToHelper: function supportsSnapToHelper() {\n return true;\n },\n\n /**\r\n * @method\r\n * Override this method and redirect them to the cavas. A ResizeHandle didn't support\r\n * Keyboard interaction at the moment.\r\n *\r\n * @param {Number} keyCode the id of the pressed key\r\n * @param {Boolean} ctrl true if the user has pressed the CTRL/STRG key as well.\r\n **/\n onKeyDown: function onKeyDown(keyCode, ctrl) {\n // don't call the parent function. The parent functions delete this object\n // and a resize handle can't be deleted.\n this.canvas.onKeyDown(keyCode, ctrl);\n },\n\n /**\r\n * @inheritdoc\r\n */\n fireEvent: function fireEvent(event, args) {\n // A resizeHandle doesn't fire this event.\n // Normally this set the document dirty. This is not necessary for a ResizeHandle.\n }\n});\n\n/***/ }),\n\n/***/ \"./src/SVGFigure.js\":\n/*!**************************!*\\\n !*** ./src/SVGFigure.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.SVGFigure\r\n * Abstract class which can handle plain SVG content. Inherit class must override the method\r\n * <code>getSVG()</code>.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.SetFigure\r\n */\n\n_packages2.default.SVGFigure = _packages2.default.SetFigure.extend({\n\n NAME: \"draw2d.SVGFigure\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.svg = null;\n\n this._super((0, _extend2.default)({}, attr), (0, _extend2.default)({\n svg: this.setSVG\n }, setter), (0, _extend2.default)({\n svg: this.getSVG\n }, getter));\n },\n\n /**\r\n * @inheritdoc\r\n */\n createSet: function createSet() {\n // legacy behaviour. Legacy code of Draw2D didn't have the \"svg\" attribute.\n // in this case we must call the overridden method \"getSVG\" to retrieve the SVG from inherit\n // the inherit class.\n //\n if (this.svg === null) {\n this.svg = this.getSVG();\n }\n\n return this.importSVG(this.canvas, this.svg);\n },\n\n /**\r\n * @method\r\n * Returns the current used SVG as string\r\n *\r\n * @returns {String}\r\n */\n getSVG: function getSVG() {\n return this.svg;\n },\n\n /**\r\n * @method\r\n * Set the SVG of this shape\r\n *\r\n * @param {String} svg The new SVG to render as String\r\n * @param {Number} [duration] the optional duration for the change of the SVG of the figure\r\n *\r\n * @returns {draw2d.SVGFigure}\r\n */\n setSVG: function setSVG(svg, duration) {\n this.svg = svg;\n\n // SVG has changed. Update the rendering\n //\n if (this.canvas !== null && this.svgNodes !== null) {\n var newSVGNodes = this.createSet();\n if (!isNaN(parseFloat(duration))) {\n newSVGNodes.hide();\n newSVGNodes.insertAfter(this.svgNodes);\n var oldSVG = this.svgNodes;\n this.svgNodes = newSVGNodes;\n this.applyTransformation();\n oldSVG.forEach(function (shape) {\n $(shape.node).fadeOut(duration, function () {\n shape.remove();\n });\n });\n newSVGNodes.forEach(function (shape) {\n $(shape.node).fadeIn(duration);\n });\n } else {\n newSVGNodes.insertAfter(this.svgNodes);\n this.svgNodes.remove();\n this.svgNodes = newSVGNodes;\n this.applyTransformation();\n // this.repaint();\n }\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Helper method to transform the SVG string into a raphaelJS set.\r\n *\r\n * @private\r\n */\n importSVG: function importSVG(canvas, rawSVG) {\n\n var set = canvas.paper.set();\n\n try {\n if (typeof rawSVG === 'undefined') {\n throw 'No data was provided.';\n }\n\n // Override the dimension from the JSON if the SVG contains any\n //\n var svgDOM = $(rawSVG);\n\n // set the dimension of the element if the JSON import didn't provide\n // a dimension already\n //\n if (typeof this._dimensionReadFromJSON === \"undefined\") {\n if (svgDOM.attr(\"width\") && svgDOM.attr(\"height\")) {\n this.setDimension(parseFloat(svgDOM.attr(\"width\")), parseFloat(svgDOM.attr(\"height\")));\n }\n delete this._dimensionReadFromJSON;\n }\n\n var findStyle = new RegExp('([a-z0-9\\-]+) ?: ?([^ ;]+)[ ;]?', 'gi');\n\n svgDOM.children().each(function (i, element) {\n //element = $(element);\n var shape = null;\n var style = null;\n var attr = {};\n var node = element.tagName;\n\n // remove the namespace of the node if existing. This can happen in IE8\n //\n var index = node.indexOf(\":\");\n if (index != -1) node = node.substr(index + 1);\n\n // map some element to Raphael specifix attributes or ignore some unknown attributes\n //\n $(element.attributes).each(function () {\n switch (this.nodeName) {\n case 'stroke-dasharray':\n attr[this.nodeName] = '- ';\n break;\n case 'style':\n style = this.nodeValue;\n break;\n case 'id':\n case 'xml:space':\n // just to ignore\n break;\n default:\n if (this.value) {\n attr[this.nodeName] = this.value;\n } else {\n // @deprecated\n attr[this.nodeName] = this.nodeValue;\n }\n break;\n }\n });\n\n if (style !== null) {\n while (findStyle.exec(style)) {\n attr[RegExp.$1] = RegExp.$2;\n }\n }\n\n // set some good defaults if the element didn't provide a stroke-width but has a \"stroke\" attribute\n //\n if (typeof attr['stroke-width'] === 'undefined') {\n attr['stroke-width'] = typeof attr.stroke === 'undefined' ? 0 : 1.2;\n }\n\n switch (node) {\n case 'rect':\n shape = canvas.paper.rect();\n\n // transfer rx-SVG attribute to the \"r\" attribute of raphael\n if (typeof attr[\"rx\"] !== \"undefined\") {\n attr.r = parseInt(attr.rx);\n delete attr.rx;\n }\n break;\n case 'circle':\n shape = canvas.paper.circle();\n break;\n case 'ellipse':\n shape = canvas.paper.ellipse();\n break;\n case 'path':\n attr.fill = \"none\";\n shape = canvas.paper.path(attr.d);\n break;\n case 'line':\n attr.d = \"M \" + attr.x1 + \" \" + attr.y1 + \"L\" + attr.x2 + \" \" + attr.y2;\n attr.fill = \"none\";\n shape = canvas.paper.path(attr.d);\n break;\n case 'polyline':\n var path = attr.points;\n attr.d = \"M \" + path.replace(\" \", \" L\");\n shape = canvas.paper.path(attr.d);\n break;\n case 'polygon':\n shape = canvas.paper.polygon(attr.points);\n break;\n case 'image':\n shape = canvas.paper.image();\n break;\n case 'tspan':\n case 'text':\n if (element.childNodes.length > 0) {\n var child = element.firstChild;\n do {\n switch (child.nodeType) {\n case 2: //ATTRIBUTE_NODE\n case 4: //CDATA_SECTION_NODE\n case 5: //ENTITY_REFERENCE_NODE\n case 6: //ENTITY_NODE\n case 7: //PROCESSING_INSTRUCTION_NODE\n case 8: //COMMENT_NODE\n case 9: //DOCUMENT_NODE\n case 10: //DOCUMENT_TYPE_NODE\n case 11: //DOCUMENT_FRAGMENT_NODE\n case 12:\n //NOTATION_NODE\n return;\n case 3:\n //TEXT_NODE\n // redirect to the parent node if we found a simple TEXT without any attributes\n child = element;\n break;\n case 1: //ELEMENT_NODE\n }\n var subShape = canvas.paper.text(0, 0, $(child).text());\n var subAttr = { \"x\": parseFloat(child.attributes.x.value), \"y\": parseFloat(child.attributes.y.value) };\n subAttr[\"text-anchor\"] = \"start\";\n if (typeof child.attributes[\"text-anchor\"] !== \"undefined\") {\n subAttr[\"text-anchor\"] = child.attributes[\"text-anchor\"].value;\n } else if (typeof attr[\"text-anchor\"] !== \"undefined\") {\n subAttr[\"text-anchor\"] = attr[\"text-anchor\"];\n }\n\n if (typeof child.attributes[\"font-size\"] !== \"undefined\") {\n subAttr[\"font-size\"] = parseInt(child.attributes[\"font-size\"].value);\n } else if (typeof attr[\"font-size\"] !== \"undefined\") {\n // inherit the font size from the parent node\n subAttr[\"font-size\"] = parseInt(attr[\"font-size\"]);\n }\n\n if (typeof child.attributes[\"font-family\"] !== \"undefined\") {\n subAttr[\"font-family\"] = child.attributes[\"font-family\"].value;\n } else if (typeof attr[\"font-family\"] !== \"undefined\") {\n // inherit the font size from the parent node\n subAttr[\"font-family\"] = attr[\"font-family\"];\n }\n\n subAttr[\"fill\"] = \"#000000\";\n if (typeof child.attributes[\"fill\"] !== \"undefined\") {\n subAttr[\"fill\"] = child.attributes[\"fill\"].value;\n } else if (typeof attr[\"fill\"] !== \"undefined\") {\n // inherit the font size from the parent node\n subAttr[\"fill\"] = attr[\"fill\"];\n }\n\n subAttr.y = subAttr.y + subShape.getBBox().height / 2;\n\n subShape.attr(subAttr);\n set.push(subShape);\n child = child.nextSibling;\n } while (child && child.nodeType === 3); // 3= TEXT_NODE\n } else {\n shape = canvas.paper.text(0, 0, $(element).html());\n if (typeof attr[\"fill\"] === \"undefined\") attr[\"fill\"] = \"#000000\";\n if (typeof attr[\"text-anchor\"] === \"undefined\") attr[\"text-anchor\"] = \"start\";\n if (typeof attr[\"font-size\"] !== \"undefined\") attr[\"font-size\"] = parseInt(attr[\"font-size\"]);\n if (typeof attr[\"font-family\"] !== \"undefined\") attr[\"font-family\"] = parseInt(attr[\"font-family\"]);\n attr.y = parseFloat(attr.y) + shape.getBBox().height / 2;\n }\n break;\n }\n if (shape !== null) {\n shape.attr(attr);\n set.push(shape);\n }\n });\n } catch (error) {\n alert('The SVG data you entered was invalid! (' + error + ')');\n }\n\n return set;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n // keep a temp flag to indicate the we have read the dimension of the\n // element from the JSON struct. In this case we didn't care about the dimension\n // from the SVG data\n //\n if (typeof memento.width !== \"undefined\") {\n this._dimensionReadFromJSON = true;\n } else if (typeof memento.height !== \"undefined\") {\n this._dimensionReadFromJSON = true;\n }\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/Selection.js\":\n/*!**************************!*\\\n !*** ./src/Selection.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.Selection = Class.extend({\n\n NAME: \"draw2d.Selection\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n */\n init: function init() {\n this.primary = null;\n this.all = new _packages2.default.util.ArrayList();\n },\n\n /**\r\n * @method\r\n * Reset the current selection\r\n *\r\n */\n clear: function clear() {\n this.primary = null;\n this.all = new _packages2.default.util.ArrayList();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the primary selection. This can only one figure at once.\r\n *\r\n * @return {draw2d.Figure} the primary selected figure\r\n */\n getPrimary: function getPrimary() {\n return this.primary;\n },\n\n /**\r\n * @method\r\n * Set the primary selection.\r\n *\r\n * @param {draw2d.Figure} figure The new primary selection\r\n */\n setPrimary: function setPrimary(figure) {\n this.primary = figure;\n this.add(figure);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove the given figure from the selection (primary,all)\r\n *\r\n * @param {draw2d.Figure} figure\r\n */\n remove: function remove(figure) {\n this.all.remove(figure);\n if (this.primary === figure) {\n this.primary = null;\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Add a figure to the selection. No events are fired or update the selection handle. This method just\r\n * add the figure to the internal management data structure.\r\n *\r\n * @param figure\r\n * @private\r\n */\n add: function add(figure) {\n if (figure !== null && !this.all.contains(figure)) {\n this.all.add(figure);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * return true if the given figure part of the selection.\r\n *\r\n * @param {draw2d.Figure} figure The figure to check\r\n * @param {Boolean} [checkDescendant] Check if the figure provided by the argument is a descendant of the selection whether it is a direct child or nested more deeply.\r\n *\r\n * @since 2.2.0\r\n * @return {Boolean}\r\n */\n contains: function contains(figure, checkDescendant) {\n if (checkDescendant) {\n for (var i = 0; i < this.all.getSize(); i++) {\n var figureToCheck = this.all.get(i);\n if (figureToCheck === figure || figureToCheck.contains(figure)) {\n return true;\n }\n }\n return false;\n }\n return this.all.contains(figure);\n },\n\n /**\r\n * @method\r\n * Return the size of the selection\r\n *\r\n * @since 4.8.0\r\n */\n getSize: function getSize() {\n return this.all.getSize();\n },\n\n /**\r\n * @method\r\n * Return the complete selection - including the primary selection.\r\n *\r\n * @param {Boolean} [expand] expand all StrongComposite and WeakComposite to get all figures. Didn't expand any SetFigures or LayoutFigures\r\n * @return {draw2d.util.ArrayList}\r\n *\r\n */\n getAll: function getAll(expand) {\n if (expand === true) {\n var result = new _packages2.default.util.ArrayList();\n var addRecursive = function addRecursive(figures) {\n result.addAll(figures, true);\n figures.each(function (index, figure) {\n if (figure instanceof _packages2.default.shape.composite.StrongComposite) {\n addRecursive(figure.getAssignedFigures());\n }\n });\n };\n addRecursive(this.all);\n\n return result;\n }\n\n return this.all.clone();\n },\n\n /**\r\n * @method\r\n * Iterates over the current selection with <b>func</b> as callback handler.\r\n *\r\n * @param {Function} func the callback function to call for each element\r\n * @param {Number} func.i index of the element in iteration\r\n * @param {Object} func.value value of the element in iteration.\r\n * @param {Boolean} [reverse] optional parameter. Iterate the collection reverse if it set to <b>true</b>\r\n */\n each: function each(func, reverse) {\n this.all.each(func, reverse);\n\n return this;\n }\n}); /**\r\n * @class draw2d.Selection\r\n *\r\n * Represents the current selection in the canvas. The selection element is a pure passive element which\r\n * manage/store the selection.\r\n *\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/SetFigure.js\":\n/*!**************************!*\\\n !*** ./src/SetFigure.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.SetFigure\r\n *\r\n * A SetFigure is a composition of different SVG elements.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n_packages2.default.SetFigure = _packages2.default.shape.basic.Rectangle.extend({\n\n NAME: \"draw2d.SetFigure\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // collection of SVG DOM nodes\n this.svgNodes = null;\n\n this.originalWidth = null;\n this.originalHeight = null;\n\n this.scaleX = 1;\n this.scaleY = 1;\n\n this.strokeScale = true; // scale the stroke width of the children nodes if the parent resize\n\n this._super((0, _extend2.default)({ stroke: 0, bgColor: null }, attr), setter, getter);\n },\n\n /**\r\n * @method\r\n * Set/Reset the canvas for the element.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to use\r\n */\n setCanvas: function setCanvas(canvas) {\n // remove the shape if we reset the canvas and the element\n // was already drawn\n if (canvas === null && this.svgNodes !== null) {\n this.svgNodes.remove();\n this.svgNodes = null;\n }\n\n this._super(canvas);\n },\n\n /**\r\n * @method\r\n * Set the css class if the node.\r\n *\r\n * @param {String} cssClass the new css class name of the node\r\n * @since 2.9.0\r\n */\n setCssClass: function setCssClass(cssClass) {\n this._super(cssClass);\n\n if (this.svgNodes === null) {\n return this;\n }\n\n if (this.cssClass === null) {\n this.svgNodes.forEach(function (e) {\n e.node.removeAttribute(\"class\");\n });\n } else {\n this.svgNodes.forEach(function (e) {\n e.node.setAttribute(\"class\", cssClass);\n });\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * propagate all attributes like color, stroke,... to the shape element and\r\n * repaint them.\r\n *\r\n * @protected\r\n **/\n repaint: function repaint(attributes) {\n // repaint can be blocked during deserialization and if the shape\n // not part of any canvas.\n //\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n if (this.originalWidth !== null) {\n this.scaleX = this.width / this.originalWidth;\n this.scaleY = this.height / this.originalHeight;\n }\n\n attributes = attributes || {};\n\n this.applyAlpha();\n\n this._super(attributes);\n },\n\n /**\r\n * @inheritdoc\r\n */\n setVisible: function setVisible(flag, duration) {\n this._super(flag, duration);\n\n if (this.svgNodes !== null) {\n if (duration) {\n if (this.visible === true) {\n this.svgNodes.forEach(function (shape) {\n $(shape.node).fadeIn(duration, function () {\n return shape.show();\n });\n });\n } else {\n this.svgNodes.forEach(function (shape) {\n $(shape.node).fadeOut(duration, function () {\n return shape.hide();\n });\n });\n }\n } else {\n if (this.visible === true) {\n this.svgNodes.show();\n } else {\n this.svgNodes.hide();\n }\n }\n }\n },\n\n /**\r\n * @method\r\n * Apply the opacity to all child set elements. Override this if you want to avoid opacity changes.\r\n * @private\r\n *\r\n */\n applyAlpha: function applyAlpha() {\n this.svgNodes.attr({ opacity: this.alpha });\n },\n\n /**\r\n * @private\r\n */\n applyTransformation: function applyTransformation() {\n var s = \"S\" + this.scaleX + \",\" + this.scaleY + \",0,0 \" + \"R\" + this.rotationAngle + \",\" + (this.getWidth() / 2 | 0) + \",\" + (this.getHeight() / 2 | 0) + \"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY() + \"\";\n this.svgNodes.transform(s);\n if (this.rotationAngle === 90 || this.rotationAngle === 270) {\n var before = this.svgNodes.getBBox(true);\n var ratio = before.height / before.width;\n var reverseRatio = before.width / before.height;\n var rs = \"...S\" + ratio + \",\" + reverseRatio + \",\" + (this.getAbsoluteX() + this.getWidth() / 2) + \",\" + (this.getAbsoluteY() + this.getHeight() / 2);\n this.svgNodes.transform(rs);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Moves the element so it is the closest to the viewer’s eyes, on top of other elements. Additional\r\n * the internal model changed as well.\r\n *\r\n * Optional: Inserts current object in front of the given one.\r\n *\r\n * @param {draw2d.Figure} [figure] move current object in front of the given one.\r\n * @since 3.0.0\r\n */\n toFront: function toFront(figure) {\n ////////////////////////////////////////////////////////////////////\n // NOTE: the code has a complete different order of draw2d.Figure.\n // we must respect the svgNodes here\n ////////////////////////////////////////////////////////////////////\n\n // ensure that the z-oder is still correct if the figure is assigned\n // to a StrongComposite\n //\n if (this.composite instanceof _packages2.default.shape.composite.StrongComposite && typeof figure !== \"undefined\") {\n var indexFigure = figure.getZOrder();\n var indexComposite = this.composite.getZOrder();\n if (indexFigure < indexComposite) {\n figure = this.composite;\n }\n }\n\n if (typeof figure === \"undefined\") {\n // bring the outer frame in front...\n this.getShapeElement().toFront();\n\n // and all inner children\n //\n if (this.svgNodes !== null) {\n this.svgNodes.toFront();\n }\n\n if (this.canvas !== null) {\n var figures = this.canvas.getFigures();\n var lines = this.canvas.getLines();\n if (figures.remove(this) !== null) {\n figures.add(this);\n } else if (lines.remove(this) !== null) {\n lines.add(this);\n }\n }\n } else {\n // Bring the SVG shapes between the \"figure\" and the container of this shape\n //\n if (this.svgNodes !== null) {\n this.svgNodes.insertAfter(figure.getTopLevelShapeElement());\n }\n this.getShapeElement().insertAfter(figure.getTopLevelShapeElement());\n\n if (this.canvas !== null) {\n var _figures = this.canvas.getFigures();\n var _lines = this.canvas.getLines();\n if (_figures.remove(this) !== null) {\n var index = _figures.indexOf(figure);\n _figures.insertElementAt(this, index + 1);\n } else if (_lines.remove(this) !== null) {\n _lines.add(this);\n }\n }\n }\n\n // bring all children in front of the parent\n //\n this.children.each(function (i, child) {\n child.figure.toFront(figure);\n });\n\n // the ports are always on top\n //\n var _this = this;\n this.getPorts().each(function (i, port) {\n port.getConnections().each(function (i, connection) {\n connection.toFront(figure);\n });\n // a port should always be in front of the shape doesn't matter what the\n // \"figure\" parameter says.\n //\n port.toFront(_this);\n });\n\n // and last but not lease the ResizeHandles if any present\n //\n this.selectionHandles.each(function (i, handle) {\n handle.toFront();\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Moves the element to the background. Additional\r\n * the internal model changed as well.\r\n *\r\n * Optional: Inserts current object in front of the given one.\r\n *\r\n * @param {draw2d.Figure} [figure] move current object in front of the given one.\r\n * @since 4.7.2\r\n */\n toBack: function toBack(figure) {\n // it is not allowed that a figure is behind the assigned composite\n //\n if (this.composite instanceof _packages2.default.shape.composite.StrongComposite) {\n this.toFront(this.composite);\n return;\n }\n\n // sort the JSON Doc\n //\n if (this.canvas !== null) {\n var figures = this.canvas.getFigures();\n var lines = this.canvas.getLines();\n if (figures.remove(this) !== null) {\n figures.insertElementAt(this, 0);\n } else if (lines.remove(this) !== null) {\n lines.insertElementAt(this, 0);\n }\n }\n\n // bring all children figures in front of the parent\n // run reverse to the collection to care about the z-order of the children)\n this.children.each(function (i, child) {\n child.figure.toBack(figure);\n }, true);\n\n if (this.svgNodes !== null) {\n if (typeof figure !== \"undefined\") {\n this.svgNodes.insertBefore(figure.getShapeElement());\n } else {\n this.svgNodes.toBack();\n }\n }\n\n if (this.canvas !== null) {\n if (typeof figure !== \"undefined\") {\n this.getShapeElement().insertBefore(figure.getShapeElement());\n } else {\n this.getShapeElement().toBack();\n }\n }\n\n // and last but not least - the ports are always on top\n //\n var _this = this;\n this.getPorts().each(function (i, port) {\n port.getConnections().each(function (i, connection) {\n connection.toFront(_this);\n });\n // a port should always be in front of the shape doesn't matter what the\n // \"figure\" parameter says.\n //\n port.toFront(_this);\n });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getTopLevelShapeElement: function getTopLevelShapeElement() {\n if (this.svgNodes.length === 0) {\n return this.shape;\n }\n return this.svgNodes;\n },\n\n /**\r\n * @private\r\n */\n createShapeElement: function createShapeElement() {\n // NOTE: don't change the order of the two calls. This defines the z-oder in the canvas.\n // The \"set\" must always be on top.\n var shape = this.canvas.paper.rect(this.getX(), this.getY(), this.getWidth(), this.getHeight());\n this.svgNodes = this.createSet();\n\n // check if the element is a \"set\" or a simple raphael shape. otherwise we wrap them into a set\n //\n if (typeof this.svgNodes.forEach === \"undefined\") {\n var set = this.canvas.paper.set();\n set.push(this.svgNodes);\n this.svgNodes = set;\n }\n\n this.svgNodes.attr({ \"stroke-scale\": this.strokeScale });\n\n // update the visibility of the children\n this.setVisible(this.visible);\n\n // propagate the CSS style to all set elements\n this.setCssClass(this.cssClass);\n\n var bb = this.svgNodes.getBBox();\n this.originalWidth = bb.width;\n this.originalHeight = bb.height;\n\n return shape;\n },\n\n /**\r\n * @method\r\n * Override this method to add your own SVG elements. See {@link draw2d.shape.basic.Label} as example.\r\n *\r\n * @template\r\n */\n createSet: function createSet() {\n return this.canvas.paper.set(); // return empty set as default;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/VectorFigure.js\":\n/*!*****************************!*\\\n !*** ./src/VectorFigure.js ***!\n \\*****************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nvar _extend = __webpack_require__(/*! util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.VectorFigure = _packages2.default.shape.node.Node.extend({\n NAME: \"draw2d.VectorFigure\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.stroke = 1;\n this.radius = 0;\n this.bgColor = new _packages2.default.util.Color(\"#ffffff\");\n this.color = new _packages2.default.util.Color(\"#303030\");\n this.dasharray = null;\n\n // memento for the stroke if we reset the glow effect of this shape\n //\n this.strokeBeforeGlow = this.stroke;\n this.glowIsActive = false;\n\n this._super(attr, (0, _extend2.default)({\n /** @attr {String} dasharray the line pattern see {@link draw2d.shape.basic.Line#setDashArray} for more information*/\n dasharray: this.setDashArray,\n /** @attr {Number} radius the radius to render the line edges */\n radius: this.setRadius,\n /** @attr {String|draw2d.util.Color} bgColor the background color of the shape */\n bgColor: this.setBackgroundColor,\n /** @attr {String|draw2d.util.Color} color the main color of the shape */\n color: this.setColor,\n /** @attr {Number} stroke the stroke width */\n stroke: this.setStroke\n }, setter), (0, _extend2.default)({\n dasharray: this.getDashArray,\n radius: this.getRadius,\n bgColor: this.getBackgroundColor,\n color: this.getColor,\n stroke: this.getStroke\n }, getter));\n },\n\n /**\r\n * @method\r\n * Sets the corner radius or the edges.\r\n *\r\n * @param {Number} radius\r\n * @since 4.2.1\r\n */\n setRadius: function setRadius(radius) {\n this.radius = radius;\n this.repaint();\n this.fireEvent(\"change:radius\", { value: this.radius });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the corner radius of the edges.\r\n *\r\n * @return {Number}\r\n * @since 4.2.1\r\n */\n getRadius: function getRadius() {\n return this.radius;\n },\n\n /**\r\n * @method\r\n * Set the line style for this object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * dash: dashPattern\r\n * });\r\n *\r\n * @param {String} dash can be one of this [\"\", \"-\", \".\", \"-.\", \"-..\", \". \", \"- \", \"--\", \"- .\", \"--.\", \"--..\"]\r\n */\n setDashArray: function setDashArray(dashPattern) {\n this.dasharray = dashPattern;\n this.repaint();\n\n this.fireEvent(\"change:dashArray\", { value: this.dasharray });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the line style for this object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr(\"dash\");\r\n *\r\n * @since 5.1.0\r\n */\n getDashArray: function getDashArray() {\n return this.dasharray;\n },\n\n /**\r\n * @method\r\n * Highlight the element or remove the highlighting\r\n *\r\n * @param {Boolean} flag indicates glow/noGlow\r\n */\n setGlow: function setGlow(flag) {\n\n if (flag === this.glowIsActive) {\n return this;\n }\n\n this.glowIsActive = flag;\n if (flag === true) {\n this.strokeBeforeGlow = this.getStroke();\n this.setStroke(this.strokeBeforeGlow * 2.5);\n } else {\n this.setStroke(this.strokeBeforeGlow);\n }\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n attributes.x = this.getAbsoluteX();\n attributes.y = this.getAbsoluteY();\n\n if (typeof attributes.stroke === \"undefined\") {\n if (this.color === null || this.stroke === 0) {\n attributes.stroke = \"none\";\n } else {\n attributes.stroke = this.color.rgba();\n }\n }\n\n _JSONUtil2.default.ensureDefault(attributes, \"stroke-width\", this.stroke);\n _JSONUtil2.default.ensureDefault(attributes, \"fill\", this.bgColor.rgba());\n _JSONUtil2.default.ensureDefault(attributes, \"dasharray\", this.dasharray);\n\n this._super(attributes);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the new background color of the figure. It is possible to hands over\r\n * <code>null</code> to set the background transparent.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * \"bgColor\": \"#f0f0f0\"\r\n * });\r\n *\r\n * @param {String|draw2d.util.Color} color The new background color of the figure\r\n **/\n setBackgroundColor: function setBackgroundColor(color) {\n this.bgColor = new _packages2.default.util.Color(color);\n\n this.repaint();\n this.fireEvent(\"change:bgColor\", { value: this.bgColor });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The current used background color.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * var color =figure.attr(\"bgColor\");\r\n *\r\n * @return {draw2d.util.Color}\r\n */\n getBackgroundColor: function getBackgroundColor() {\n return this.bgColor;\n },\n\n /**\r\n * @method\r\n * Set the stroke to use.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * \"stroke\": 2\r\n * });\r\n *\r\n * @param {Number} w The new line width of the figure\r\n **/\n setStroke: function setStroke(w) {\n this.stroke = w;\n this.repaint();\n this.fireEvent(\"change:stroke\", { value: this.stroke });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The used line width.\r\n *\r\n * @returns {Number}\r\n **/\n getStroke: function getStroke() {\n return this.stroke;\n },\n\n /**\r\n * @method\r\n * Set the foreground color of the figure.\r\n * This method fires a <i>document dirty</i> event.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * \"color\": \"#f3f3f3\"\r\n * });\r\n *\r\n * @param {String|draw2d.util.Color} color The new color of the line.\r\n **/\n setColor: function setColor(color) {\n this.color = new _packages2.default.util.Color(color);\n this.repaint();\n this.fireEvent(\"change:color\", { value: this.color });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the current used foreground color\r\n *\r\n *\r\n * @returns {draw2d.util.Color}\r\n */\n getColor: function getColor() {\n return this.color;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n return (0, _extend2.default)(this._super(), {\n bgColor: this.bgColor.rgba(),\n color: this.color.rgba(),\n stroke: this.stroke,\n radius: this.radius,\n dasharray: this.dasharray\n });\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.radius !== \"undefined\") {\n this.setRadius(memento.radius);\n }\n\n if (typeof memento.bgColor !== \"undefined\") {\n this.setBackgroundColor(memento.bgColor);\n }\n\n if (typeof memento.color !== \"undefined\") {\n this.setColor(memento.color);\n }\n\n if (typeof memento.stroke !== \"undefined\") {\n this.setStroke(memento.stroke === null ? 0 : parseFloat(memento.stroke));\n }\n\n if (typeof memento.dasharray === \"string\") {\n this.dasharray = memento.dasharray;\n }\n\n return this;\n }\n\n});\n/**\r\n * @class draw2d.VectorFigure\r\n * The base class for all vector based figures like {@link draw2d.shape.basic.Rectangle} or {@link draw2d.shape.basic.Oval}\r\n * inside a canvas.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.node.Node\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/Command.js\":\n/*!********************************!*\\\n !*** ./src/command/Command.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.Command = Class.extend({\n\n NAME: \"draw2d.command.Command\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {String} label\r\n */\n init: function init(label) {\n this.label = label;\n },\n\n /**\r\n * @method\r\n * Returns a label of the Command. e.g. \"move figure\".\r\n *\r\n * @return {String} the label for this command\r\n **/\n getLabel: function getLabel() {\n return this.label;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean} return try if the command modify the model or make any relevant changes\r\n **/\n canExecute: function canExecute() {\n return true;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time.\r\n * Sup-classes must implement this method.\r\n *\r\n * @template\r\n **/\n execute: function execute() {},\n\n /**\r\n * @method\r\n * Will be called if the user cancel the operation.\r\n *\r\n * @template\r\n **/\n cancel: function cancel() {},\n\n /**\r\n * @method\r\n * Undo the command.\r\n * Sup-classes must implement this method.\r\n *\r\n * @template\r\n **/\n undo: function undo() {},\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command.\r\n * Sup-classes must implement this method.\r\n *\r\n * @template\r\n **/\n redo: function redo() {}\n}); /**\r\n * @class draw2d.command.Command\r\n *\r\n * Commands are passed around throughout editing. They are used to encapsulate and combine\r\n * changes to the application's model. An application has a single command stack. Commands must\r\n * be executed using the command stack rather than directly calling execute.\r\n * <br>\r\n * This is requried for a deneric support for the undo/redo concept within draw2d.<br>\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandAdd.js\":\n/*!***********************************!*\\\n !*** ./src/command/CommandAdd.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandAdd = _packages2.default.command.Command.extend({\n\n NAME: \"draw2d.command.CommandAdd\",\n\n /**\r\n * @constructor\r\n * Create a add command for the given figure.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to use\r\n * @param {draw2d.Figure} figure the figure to add\r\n * @param {Number|draw2d.geo.Point} x the x-coordinate or a complete point where to place the figure\r\n * @param {Number} [y] the y-coordinate if x is a number and not a complete point\r\n */\n init: function init(canvas, figure, x, y) {\n this._super(_packages2.default.Configuration.i18n.command.addShape);\n this.figure = figure;\n this.canvas = canvas;\n this.pos = new _packages2.default.geo.Point(x, y);\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean} return try if the command modify the model or make any relevant changes\r\n **/\n canExecute: function canExecute() {\n // we can only add the figure once to the canvas\n return this.figure.getCanvas() === null;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.canvas.add(this.figure, this.pos.x, this.pos.y);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.execute();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n this.canvas.remove(this.figure);\n }\n\n}); /**\r\n * @class draw2d.command.CommandAdd\r\n *\r\n * Command to add a figure with CommandStack support.\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandAddVertex.js\":\n/*!*****************************************!*\\\n !*** ./src/command/CommandAddVertex.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandAddVertex = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandAddVertex\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which add a vertex to a PolyLine / Polygon.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} line the related line\r\n * @param {Number} index the index where to add\r\n * @param {Number} x the x coordinate for the new vertex\r\n * @param {Number} y the y coordinate for the new vertex\r\n */\n init: function init(line, index, x, y) {\n this._super(_packages2.default.Configuration.i18n.command.addVertex);\n\n this.line = line;\n this.index = index;\n this.newPoint = new _packages2.default.geo.Point(x, y);\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return true;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.line.removeVertexAt(this.index);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.line.insertVertexAt(this.index, this.newPoint.x, this.newPoint.y);\n }\n}); /**\r\n * @class draw2d.command.CommandAddVertex\r\n *\r\n * Add a vertex to a polyline or polygon\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandAssignFigure.js\":\n/*!********************************************!*\\\n !*** ./src/command/CommandAssignFigure.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandAssignFigure = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandAssignFigure\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Figure} figure the figure to assign\r\n * @param {draw2d.Figure} composite the composite where the figure should assign\r\n */\n init: function init(figure, composite) {\n this._super(_packages2.default.Configuration.i18n.command.assignShape);\n\n this.figure = figure;\n this.composite = composite;\n this.assignedConnections = new _packages2.default.util.ArrayList();\n this.isNode = this.figure instanceof _packages2.default.shape.node.Node;\n this.oldBoundingBox = composite.getBoundingBox();\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return true;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.composite.assignFigure(this.figure);\n\n // get all connections of the shape and check if source/target node\n // part of the composite. In this case the connection will be part of\n // the composite as well\n if (this.isNode === true) {\n var connections = this.figure.getConnections();\n var _this = this;\n connections.each(function (i, connection) {\n if (connection.getSource().getParent().getComposite() === _this.composite && connection.getTarget().getParent().getComposite() === _this.composite) {\n if (connection.getComposite() !== _this.composite) {\n _this.assignedConnections.add({ oldComposite: connection.getComposite(), connection: connection });\n _this.composite.assignFigure(connection);\n }\n }\n });\n }\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.composite.unassignFigure(this.figure);\n this.assignedConnections.each(function (i, entry) {\n if (entry.oldComposite !== null) {\n entry.oldComposite.assignFigure(entry.connection);\n } else {\n entry.connection.getComposite().unassignFigure(entry.connection);\n }\n });\n this.composite.stickFigures = true;\n this.composite.setBoundingBox(this.oldBoundingBox);\n this.composite.stickFigures = false;\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n var _this2 = this;\n\n this.composite.setBoundingBox(this.oldBoundingBox);\n this.composite.assignFigure(this.figure);\n this.assignedConnections.each(function (i, entry) {\n return _this2.composite.assignFigure(entry.connection);\n });\n }\n}); /**\r\n * @class draw2d.command.CommandAssignFigure\r\n *\r\n * Assign a figure to a compiste\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n * @since 4.9.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandAttr.js\":\n/*!************************************!*\\\n !*** ./src/command/CommandAttr.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandAttr = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandAttr\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which provides undo/redo for attributes.\r\n *\r\n * @param {draw2d.Figure} figure the figure to handle\r\n * @param {Object} attributes new attributes to set\r\n */\n init: function init(figure, newAttributes) {\n var _this = this;\n\n this._super(_packages2.default.Configuration.i18n.command.changeAttributes);\n\n this.figure = figure;\n this.newAttributes = newAttributes;\n this.oldAttributes = {};\n // Get the current attributes from the shape before we modify them.\n // Required for undo/redo\n Object.keys(newAttributes).forEach(function (key) {\n _this.oldAttributes[key] = figure.attr(key);\n });\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return true;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.figure.attr(this.oldAttributes);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.figure.attr(this.newAttributes);\n }\n}); /**\r\n * @class draw2d.command.CommandAattr\r\n *\r\n *Command to change attributes of a shape with undo/redo support\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandBoundingBox.js\":\n/*!*******************************************!*\\\n !*** ./src/command/CommandBoundingBox.js ***!\n \\*******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandBoundingBox = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandResize\",\n\n /**\r\n * @constructor\r\n * Create a new resize Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Figure} figure the figure to resize\r\n * @param {draw2d.geo.Rectangle} boundingBox the new bounding box of the figure\r\n */\n init: function init(figure, boundingBox) {\n this._super(_packages2.default.Configuration.i18n.command.resizeShape);\n this.figure = figure;\n this.oldBoundingBox = this.figure.getBoundingBox();\n this.newBoundingBox = boundingBox;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return !this.oldBoundingBox.equals(this.newBoundingBox);\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n this.figure.setBoundingBox(this.oldBoundingBox);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.figure.setBoundingBox(this.newBoundingBox);\n }\n}); /**\r\n * @class draw2d.command.CommandBoundingBox\r\n * Set the bounding box of a figure with undo/redo support\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandCollection.js\":\n/*!******************************************!*\\\n !*** ./src/command/CommandCollection.js ***!\n \\******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandCollection = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandCollection\",\n\n /**\r\n * @constructor\r\n * Create a new CommandConnect objects which can be execute via the CommandStack.\r\n *\r\n * @param {String} [commandLabel] the label to show on the command stack for the undo/redo operation\r\n */\n init: function init(commandLabel) {\n this._super(typeof commandLabel === 'undefined' ? _packages2.default.Configuration.i18n.command.collection : commandLabel);\n\n this.commands = new _packages2.default.util.ArrayList();\n },\n\n /**\r\n * @method\r\n * Returns a label of the Command. e.g. \"move figure\".\r\n *\r\n * @return {String} the label for this command\r\n **/\n getLabel: function getLabel() {\n //return the label of the one and only command\n //\n if (this.commands.getSize() === 1) {\n return this.commands.first().getLabel();\n }\n\n // return a common label if all commands have the same label.\n //\n if (this.commands.getSize() > 1) {\n var labels = this.commands.clone().map(function (e) {\n return e.getLabel();\n });\n labels.unique();\n if (labels.getSize() === 1) {\n return labels.first();\n }\n }\n\n // return the all purpose label.\n return this._super();\n },\n\n /**\r\n * @method\r\n * Add a command to the collection.\r\n *\r\n * @param {draw2d.command.Command} command\r\n */\n add: function add(command) {\n this.commands.add(command);\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // We ask all cmd's if they make any changes.\n // Keep in mind: the command will be execute if at least ONE command return [true]!!!!\n // doesn't matter if the other commands return [false].\n // The method should be renamed into: modifiesTheModel()....design flaw.\n var canExec = false;\n this.commands.each(function (i, cmd) {\n canExec = canExec || cmd.canExecute();\n });\n return canExec;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.commands.each(function (i, cmd) {\n cmd.execute();\n });\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command.\r\n *\r\n **/\n redo: function redo() {\n this.commands.each(function (i, cmd) {\n cmd.redo();\n });\n },\n\n /**\r\n * @method\r\n * Undo the command.\r\n *\r\n **/\n undo: function undo() {\n // execute the undo operation in reverse direction.\n\n this.commands.reverse();\n this.commands.each(function (i, cmd) {\n cmd.undo();\n });\n this.commands.reverse();\n }\n}); /**\r\n * @class draw2d.command.CommandCollection\r\n *\r\n * A CommandCollection works as a single command. You can add more than one\r\n * Command to this CommandCollection and execute/undo them onto the CommandStack as a\r\n * single Command.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandConnect.js\":\n/*!***************************************!*\\\n !*** ./src/command/CommandConnect.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandConnect = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandConnect\",\n\n /**\r\n * @constructor\r\n * Create a new CommandConnect objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Port} source the source port for the connection to create\r\n * @param {draw2d.Port} target the target port for the connection to create\r\n * @param {draw2d.Port} [dropTarget] the port who has initiate the connection creation. mainly the drop target\r\n */\n init: function init(source, target, dropTarget) {\n this._super(_packages2.default.Configuration.i18n.command.connectPorts);\n this.canvas = target.getCanvas();\n this.source = source;\n this.target = target;\n this.connection = null;\n this.dropTarget = dropTarget; // optional\n },\n\n /**\r\n * @method\r\n * set the connection to use. called by the ConnectionCreatePolicy\r\n */\n setConnection: function setConnection(connection) {\n this.connection = connection;\n },\n\n /**\r\n * @method\r\n * Returns the fresh created connection if available. Used in the\r\n * ClickConnectionCreatePolicy to customize the router and vertices.\r\n *\r\n * @returns {null|draw2d.Connection}\r\n * @since 6.1.0\r\n */\n getConnection: function getConnection() {\n return this.connection;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n var _this = this;\n\n var optionalCallback = function optionalCallback(conn) {\n _this.connection = conn;\n _this.connection.setSource(_this.source);\n _this.connection.setTarget(_this.target);\n _this.canvas.add(_this.connection);\n };\n\n // the createConnection must return either a connection or \"undefined\". If the method return \"undefined\"\n // the asynch callback must be called. Usefull if the createConnection shows a selection dialog\n //\n if (this.connection === null) {\n // deprecated call!!!!\n //\n var result = _packages2.default.Configuration.factory.createConnection(this.source, this.target, optionalCallback, this.dropTarget);\n debugger;\n // will be handled by the optional callback\n if (typeof result === \"undefined\") {\n return;\n }\n\n this.connection = result;\n }\n\n optionalCallback(this.connection);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command.\r\n *\r\n **/\n redo: function redo() {\n this.canvas.add(this.connection);\n this.connection.reconnect();\n },\n\n /**\r\n * @method\r\n * Undo the command.\r\n *\r\n **/\n undo: function undo() {\n this.canvas.remove(this.connection);\n }\n}); /**\r\n * @class draw2d.command.CommandConnect\r\n *\r\n * Connects two ports with a connection.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandDelete.js\":\n/*!**************************************!*\\\n !*** ./src/command/CommandDelete.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandDelete = _packages2.default.command.Command.extend({\n\n NAME: \"draw2d.command.CommandDelete\",\n\n /**\r\n * @constructor\r\n * Create a delete command for the given figure.\r\n *\r\n * @param {draw2d.Figure} figure\r\n */\n init: function init(figure) {\n this._super(_packages2.default.Configuration.i18n.command.deleteShape);\n\n this.parent = figure.getParent();\n this.figure = figure;\n this.canvas = figure.getCanvas();\n this.connections = null;\n this.removedParentEntry = null; // can be null if the figure didn't have any parent shape assigned\n this.indexOfChild = -1;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean} return try if the command modify the model or make any relevant changes\r\n **/\n canExecute: function canExecute() {\n // we can only delete the figure if its part of the canvas.\n return this.figure.getCanvas() !== null;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n if (this.parent !== null) {\n this.parent.add(this.removedParentEntry.figure, this.removedParentEntry.locator, this.indexOfChild);\n this.canvas.setCurrentSelection(this.parent);\n } else {\n this.canvas.add(this.figure);\n this.canvas.setCurrentSelection(this.figure);\n }\n\n if (this.figure instanceof _packages2.default.Connection) {\n this.figure.reconnect();\n }\n\n for (var i = 0; i < this.connections.getSize(); ++i) {\n this.canvas.add(this.connections.get(i));\n this.connections.get(i).reconnect();\n }\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.canvas.setCurrentSelection(null);\n\n // Collect all connections that are bounded to the figure to delete. This connections\n // must be deleted too.\n //\n if (this.connections === null) {\n if (this.figure instanceof _packages2.default.shape.node.Node) {\n this.connections = this.figure.getConnections();\n } else {\n this.connections = new _packages2.default.util.ArrayList();\n }\n }\n\n // already done in the canvas.remove(..) method\n // if(this.figure instanceof draw2d.Connection){\n // this.figure.disconnect();\n // }\n\n\n // remove all connections\n //\n for (var i = 0; i < this.connections.getSize(); ++i) {\n this.canvas.remove(this.connections.get(i));\n }\n\n // remove this figure from the parent\n //\n if (this.parent !== null) {\n // determine the index of the child before remove\n this.indexOfChild = this.parent.getChildren().indexOf(this.figure);\n this.removedParentEntry = this.parent.remove(this.figure);\n }\n // or from the canvas\n else {\n this.canvas.remove(this.figure);\n }\n }\n}); /**\r\n * @class draw2d.command.CommandDelete\r\n * Command to remove a figure with CommandStack support.\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandDeleteGroup.js\":\n/*!*******************************************!*\\\n !*** ./src/command/CommandDeleteGroup.js ***!\n \\*******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandDeleteGroup = _packages2.default.command.Command.extend({\n\n NAME: \"draw2d.command.CommandDeleteGroup\",\n\n /**\r\n * @constructor\r\n * Create a delete command for the given figure.\r\n *\r\n * @param {draw2d.shape.composite.Group} group\r\n */\n init: function init(group) {\n this._super(_packages2.default.Configuration.i18n.command.deleteShape);\n\n this.parent = group.getParent();\n this.group = group;\n this.canvas = group.getCanvas();\n this.batchDelete = null;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean} return try if the command modify the model or make any relevant changes\r\n **/\n canExecute: function canExecute() {\n // we can only delete the shape if a children can be deleted\n //\n var children = this.group.getAssignedFigures();\n for (var i = 0; i < children.getSize(); i++) {\n if (children.get(i).isDeleteable() === false) {\n return false;\n }\n }\n\n // we can only delete the figure if its part of the canvas.\n return this.group.getCanvas() !== null;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n this.batchDelete.undo();\n this.canvas.setCurrentSelection(this.group);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n if (this.batchDelete === null) {\n this.batchDelete = new _packages2.default.command.CommandCollection();\n\n // remove the assignment of the children to the group before we delete the group\n //\n this.batchDelete.add(new _packages2.default.command.CommandUngroup(this.canvas, this.group));\n\n // add the delete command of the children to the batch\n //\n var children = this.group.getAssignedFigures();\n for (var i = 0; i < children.getSize(); i++) {\n var child = children.get(i);\n // request a delete Command from the child instead of create one by my own. May the child\n // provides its own implementation\n var cmd = child.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.DELETE));\n this.batchDelete.add(cmd);\n }\n }\n\n this.batchDelete.execute();\n }\n}); /**\r\n * @class draw2d.command.CommandDeleteGroup\r\n *\r\n * Command to remove a group with all related children.\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandGroup.js\":\n/*!*************************************!*\\\n !*** ./src/command/CommandGroup.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandGroup = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandGroup\",\n\n /**\r\n * @constructor\r\n * Create a group command for the given figure.\r\n *\r\n * @param {draw2d.util.ArrayList} figures the figures to group\r\n */\n init: function init(canvas, figures) {\n this._super(_packages2.default.Configuration.i18n.command.groupShapes);\n if (figures instanceof _packages2.default.Selection) {\n this.figures = figures.getAll();\n } else {\n this.figures = figures;\n }\n\n // figures which already part of an non \"Group\" composite will be removed from the set.\n // It is not possible to assign a figure to two different composites.\n //\n this.figures.grep(function (figure) {\n return figure.getComposite() === null;\n });\n\n this.canvas = canvas;\n this.group = new _packages2.default.shape.composite.Group();\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean} return try if the command modify the model or make any relevant changes\r\n **/\n canExecute: function canExecute() {\n return !this.figures.isEmpty();\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n var _this = this;\n this.figures.each(function (i, figure) {\n _this.group.unassignFigure(figure);\n });\n\n this.canvas.remove(this.group);\n this.canvas.setCurrentSelection(this.figures);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n var _this = this;\n this.figures.each(function (i, figure) {\n _this.group.assignFigure(figure);\n });\n\n this.canvas.add(this.group);\n this.canvas.setCurrentSelection(this.group);\n }\n}); /**\r\n * @class draw2d.command.CommandGroup\r\n * Command to group a given set of figures\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandMove.js\":\n/*!************************************!*\\\n !*** ./src/command/CommandMove.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandMove = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandMove\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Figure} figure the figure to move\r\n * @param {Number} [x] the current x position\r\n * @param {Number} [y] the current y position\r\n */\n init: function init(figure, x, y) {\n this._super(_packages2.default.Configuration.i18n.command.moveShape);\n this.figure = figure;\n if (typeof x === \"undefined\") {\n this.oldX = figure.getX();\n this.oldY = figure.getY();\n } else {\n this.oldX = x;\n this.oldY = y;\n }\n },\n\n /**\r\n * @method\r\n * Set the initial position of the element\r\n *\r\n * @param {Number} x the new initial x position\r\n * @param {Number} y the new initial y position\r\n **/\n setStartPosition: function setStartPosition(x, y) {\n this.oldX = x;\n this.oldY = y;\n },\n\n /**\r\n * @method\r\n * Set the target/final position of the figure move command.\r\n *\r\n * @param {Number} x the new x position\r\n * @param {Number} y the new y position\r\n **/\n setPosition: function setPosition(x, y) {\n this.newX = x;\n this.newY = y;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.newX !== this.oldX || this.newY !== this.oldY;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.figure.setPosition(this.oldX, this.oldY);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.figure.setPosition(this.newX, this.newY);\n }\n}); /**\r\n * @class draw2d.command.CommandMove\r\n *\r\n * Command for the movement of figures.\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandMoveConnection.js\":\n/*!**********************************************!*\\\n !*** ./src/command/CommandMoveConnection.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandMoveConnection = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandMoveConnection\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Connection} figure the connection to move\r\n */\n init: function init(figure) {\n this._super(_packages2.default.Configuration.i18n.command.moveLine);\n this.line = figure;\n this.dx = 0;\n this.dy = 0;\n },\n\n /**\r\n * @method\r\n * set the offset of the line translation\r\n *\r\n * @param {Number} dx\r\n * @param {Number} dy\r\n */\n setTranslation: function setTranslation(dx, dy) {\n this.dx = dx;\n this.dy = dy;\n },\n\n /**\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @returns {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.dx !== 0 && this.dy !== 0;\n },\n\n /**\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n var _this = this;\n this.line.getVertices().each(function (i, e) {\n e.translate(-_this.dx, -_this.dy);\n });\n this.line.svgPathString = null;\n // required to update resize handles and the painting of the line\n this.line.setPosition(this.line.getStartPosition());\n },\n\n /**\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n var _this = this;\n this.line.getVertices().each(function (i, e) {\n e.translate(_this.dx, _this.dy);\n });\n this.line.svgPathString = null;\n\n // required to update resize handles and the painting of the line\n this.line.setPosition(this.line.getStartPosition());\n }\n}); /**\r\n * @class draw2d.command.CommandMoveConnection\r\n *\r\n * Command for the movement of figures.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandMoveLine.js\":\n/*!****************************************!*\\\n !*** ./src/command/CommandMoveLine.js ***!\n \\****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandMoveLine = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandMoveLine\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.shape.basic.Line} figure the line to move\r\n */\n init: function init(figure) {\n this._super(_packages2.default.Configuration.i18n.command.moveLine);\n this.line = figure;\n this.dx = 0;\n this.dy = 0;\n },\n\n /**\r\n * @method\r\n * set the offset of the line translation\r\n *\r\n * @param {Number} dx\r\n * @param {Number} dy\r\n */\n setTranslation: function setTranslation(dx, dy) {\n this.dx = dx;\n this.dy = dy;\n },\n\n /**\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @returns {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.dx !== 0 && this.dy !== 0;\n },\n\n /**\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n var _this = this;\n this.line.getVertices().each(function (i, e) {\n e.translate(-_this.dx, -_this.dy);\n });\n this.line.svgPathString = null;\n // required to update resize handles and the painting of the line\n this.line.setPosition(this.line.getStartPosition());\n },\n\n /**\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n var _this = this;\n this.line.getVertices().each(function (i, e) {\n e.translate(_this.dx, _this.dy);\n });\n this.line.svgPathString = null;\n\n // required to update resize handles and the painting of the line\n this.line.setPosition(this.line.getStartPosition());\n }\n}); /**\r\n * @class draw2d.command.CommandMoveLine\r\n *\r\n * Command for the movement of figures.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandMoveVertex.js\":\n/*!******************************************!*\\\n !*** ./src/command/CommandMoveVertex.js ***!\n \\******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandMoveVertex = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandMoveVertex\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} line the related line\r\n */\n init: function init(line) {\n this._super(_packages2.default.Configuration.i18n.command.moveVertex);\n\n this.line = line;\n this.index = -1;\n this.newPoint = null;\n },\n\n /**\r\n * @method\r\n * Set the index of the vertex of the polyline/polygon to modify.\r\n *\r\n * @param {Number} index the related index of the vertex\r\n **/\n setIndex: function setIndex(index) {\n this.index = index;\n this.origPoint = this.line.getVertices().get(this.index).clone();\n },\n\n updatePosition: function updatePosition(x, y) {\n this.newPoint = new _packages2.default.geo.Point(x, y);\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.index !== -1 && this.newPoint !== null;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.line.setVertex(this.index, this.origPoint.x, this.origPoint.y);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.line.setVertex(this.index, this.newPoint.x, this.newPoint.y);\n }\n}); /**\r\n * @class draw2d.command.CommandMoveVertex\r\n *\r\n * Command for the vertex movement of a polyline/polygon.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandMoveVertices.js\":\n/*!********************************************!*\\\n !*** ./src/command/CommandMoveVertices.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandMoveVertices = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandMoveVertices\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} line the related line\r\n */\n init: function init(line) {\n this._super(_packages2.default.Configuration.i18n.command.moveVertices);\n\n this.line = line;\n this.oldVertices = line.getVertices().clone(true);\n this.newVertices = null;\n },\n\n updateVertices: function updateVertices(newVertices) {\n this.newVertices = newVertices;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.newVertices !== null;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.line.setVertices(this.oldVertices);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.line.setVertices(this.newVertices);\n }\n}); /**\r\n * @class draw2d.command.CommandMoveVertices\r\n *\r\n * Command for the vertices movement of a polyline/polygon.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandReconnect.js\":\n/*!*****************************************!*\\\n !*** ./src/command/CommandReconnect.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandReconnect = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandReconnect\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Connection} conn the related Connection which is currently in the drag&drop operation\r\n */\n init: function init(conn) {\n this._super(_packages2.default.Configuration.i18n.command.connectPorts);\n this.con = conn;\n this.oldSourcePort = conn.getSource();\n this.oldTargetPort = conn.getTarget();\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return true;\n },\n\n /**\r\n * @method\r\n * The new ports to use during the execute of this command.\r\n *\r\n * @param {draw2d.Port} source\r\n * @param {draw2d.Port} target\r\n */\n setNewPorts: function setNewPorts(source, target) {\n this.newSourcePort = source;\n this.newTargetPort = target;\n },\n\n setIndex: function setIndex(index) {\n // do nothing....but method is required for LineResizeHandle\n // With this common interface the ResizeHandle can handle Lines and Connections\n // with the same code\n },\n\n /**\r\n * compatibily method to the CommandMoveVertex to handle Line and Connections\r\n * transparent in the ResizeHandles\r\n *\r\n * @param x\r\n * @param y\r\n */\n updatePosition: function updatePosition(x, y) {\n // do nothing....but method is required for LineResizeHandle\n // With this common interface the ResizeHandle can handle Lines and Connections\n // with the same code\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n cancel: function cancel() {\n this.con.setSource(this.oldSourcePort);\n this.con.setTarget(this.oldTargetPort);\n\n // force a routing of the connection and DON'T set the old reouter again because this reset all manual added\n // vertices\n this.con.routingRequired = true;\n this.con.repaint();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n this.con.setSource(this.oldSourcePort);\n this.con.setTarget(this.oldTargetPort);\n // force a routing of the connection and DON'T set the old reouter again because this reset all manual added\n // vertices\n this.con.routingRequired = true;\n this.con.repaint();\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.con.setSource(this.newSourcePort);\n this.con.setTarget(this.newTargetPort);\n // force a routing of the connection and DON'T set the old reouter again because this reset all manual added\n // vertices\n this.con.routingRequired = true;\n this.con.repaint();\n }\n\n}); /**\r\n * @class draw2d.command.CommandReconnect\r\n *\r\n * Reconnects two ports. This command is used during the DragDrop operation of a draw2d.Connection.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandRemoveVertex.js\":\n/*!********************************************!*\\\n !*** ./src/command/CommandRemoveVertex.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandRemoveVertex = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandRemoveVertex\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which add a vertex to a PloyLine.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} line the related line\r\n * @param {Number} index the index where to add\r\n */\n init: function init(line, index) {\n this._super(_packages2.default.Configuration.i18n.command.deleteVertex);\n\n this.line = line;\n this.index = index;\n this.oldPoint = line.getVertices().get(index).clone();\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return true;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.line.insertVertexAt(this.index, this.oldPoint.x, this.oldPoint.y);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.line.removeVertexAt(this.index);\n }\n}); /**\r\n * @class draw2d.command.CommandRemoveVertex\r\n *\r\n * Remove a vertex from a polyline or polygon\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandReplaceVertices.js\":\n/*!***********************************************!*\\\n !*** ./src/command/CommandReplaceVertices.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandReplaceVertices = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandReplaceVertices\",\n\n /**\r\n * @constructor\r\n * Create a new Command objects which add a segment to a PolyLine / Polygon.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} line the related line\r\n * @param {draw2d.util.ArrayList} originalVertices the original vertices of the polyline\r\n * @param {draw2d.util.ArrayList} newVertices the new vertices of the polyline\r\n */\n init: function init(line, originalVertices, newVertices) {\n this._super(_packages2.default.Configuration.i18n.command.addSegment);\n\n this.line = line;\n this.originalVertices = originalVertices;\n this.newVertices = newVertices;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return true;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n *\r\n * Undo the move command\r\n *\r\n **/\n undo: function undo() {\n this.line.setVertices(this.originalVertices);\n },\n\n /**\r\n * @method\r\n *\r\n * Redo the move command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.line.setVertices(this.newVertices);\n }\n}); /**\r\n * @class draw2d.command.CommandReplaceVertices\r\n *\r\n * Replace the vertices of a polyline.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandResize.js\":\n/*!**************************************!*\\\n !*** ./src/command/CommandResize.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandResize = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandResize\",\n\n /**\r\n * @constructor\r\n * Create a new resize Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Figure} figure the figure to resize\r\n * @param {Number} [width] the current width\r\n * @param {Number} [height] the current height\r\n */\n init: function init(figure, width, height) {\n this._super(_packages2.default.Configuration.i18n.command.resizeShape);\n this.figure = figure;\n\n if (typeof width === \"undefined\") {\n this.oldWidth = figure.getWidth();\n this.oldHeight = figure.getHeight();\n } else {\n this.oldWidth = width;\n this.oldHeight = height;\n }\n },\n\n /**\r\n * @method\r\n * Set the new dimension of the element.\r\n *\r\n * @param {Number} width the new width.\r\n * @param {Number} height the new height of the element.\r\n **/\n setDimension: function setDimension(width, height) {\n this.newWidth = width | 0;\n this.newHeight = height | 0;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.newWidth !== this.oldWidth || this.newHeight !== this.oldHeight;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n this.figure.setDimension(this.oldWidth, this.oldHeight);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.figure.setDimension(this.newWidth, this.newHeight);\n }\n}); /**\r\n * @class draw2d.command.CommandResize\r\n * Resize command for figures. Can be execute/undo/redo via a CommandStack.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandRotate.js\":\n/*!**************************************!*\\\n !*** ./src/command/CommandRotate.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandRotate = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandRotate\",\n\n /**\r\n * @constructor\r\n * Create a new resize Command objects which can be execute via the CommandStack.\r\n *\r\n * @param {draw2d.Figure} figure the figure to resize\r\n * @param {Number} angle the angle to rotate\r\n */\n init: function init(figure, angle) {\n this._super(_packages2.default.Configuration.i18n.command.rotateShape);\n this.figure = figure;\n\n this.oldAngle = figure.getRotationAngle();\n this.newAngle = angle;\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modify the model. A CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. <br>\r\n * the execution of the Command doesn't modify the model.\r\n *\r\n * @return {Boolean}\r\n **/\n canExecute: function canExecute() {\n // return false if we doesn't modify the model => NOP Command\n return this.oldAngle !== this.newAngle;\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n this.rotate(this.oldAngle);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n this.rotate(this.newAngle);\n },\n\n rotate: function rotate(angle) {\n var w = this.figure.getWidth();\n var h = this.figure.getHeight();\n\n this.figure.setRotationAngle(angle);\n\n this.figure.setDimension(h, w);\n\n this.figure.portRelayoutRequired = true;\n }\n}); /**\r\n * @class draw2d.command.CommandRotate\r\n *\r\n * Set the rotation angle of the given figure\r\n *\r\n * @since 4.4.1\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandStack.js\":\n/*!*************************************!*\\\n !*** ./src/command/CommandStack.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandStack = Class.extend({\n NAME: \"draw2d.command.CommandStack\",\n\n /**\r\n * @constructor\r\n * Create a new CommandStack objects which can be execute via the CommandStack.\r\n *\r\n */\n init: function init() {\n this.undostack = [];\n this.redostack = [];\n this.maxundo = 50;\n this.transactionCommand = null;\n this.eventListeners = new _packages2.default.util.ArrayList();\n },\n\n /**\r\n * @method\r\n * Set the maximal undo stack size. Entries will be remove if the max. stack\r\n * size has been reached.\r\n *\r\n * @param {Number} count The maximal undo stack size.\r\n *\r\n **/\n setUndoLimit: function setUndoLimit(count) {\n this.maxundo = count;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove the undo / redo history. This is useful if the user has been save the\r\n * document.\r\n *\r\n **/\n markSaveLocation: function markSaveLocation() {\n this.undostack = [];\n this.redostack = [];\n\n // fire an empty command to inform all listener that the stack has been changed\n this.notifyListeners(new _packages2.default.command.Command(), _packages2.default.command.CommandStack.POST_EXECUTE);\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * Executes the specified Command if possible. Prior to executing the command, a\r\n * draw2d.command.CommandStackEvent for {@link #PRE_EXECUTE} will be fired to event listeners.\r\n * Similarly, after attempting to execute the command, an event for {@link #POST_EXECUTE}\r\n * will be fired.\r\n *\r\n * @param {draw2d.command.Command} command The command to execute.\r\n *\r\n **/\n execute: function execute(command) {\n if (typeof command === \"undefined\") throw \"Missing parameter [command] for method call CommandStack.execute\";\n\n // nothing to do\n if (command === null) return; //silently\n\n // return if the command can't execute or it doesn't change the model\n // => Empty command\n if (command.canExecute() === false) return;\n\n // A command stack transaction is open.\n // The execution will be postpone until the transaction will commit\n //\n if (this.transactionCommand !== null) {\n this.transactionCommand.add(command);\n return;\n }\n\n this.notifyListeners(command, _packages2.default.command.CommandStack.PRE_EXECUTE, \"PRE_EXECUTE\");\n\n this.undostack.push(command);\n command.execute();\n\n // cleanup the redo stack if the user execute a new command.\n // I think this will create a \"clean\" behaviour of the unde/redo mechanism.\n //\n this.redostack = [];\n\n // monitor only the max. undo stack size\n //\n if (this.undostack.length > this.maxundo) {\n this.undostack = this.undostack.slice(this.undostack.length - this.maxundo);\n }\n this.notifyListeners(command, _packages2.default.command.CommandStack.POST_EXECUTE, \"POST_EXECUTE\");\n\n return this;\n },\n\n /**\r\n * @method\r\n * Opens a transaction for further multiple commands. If you execute a command all\r\n * {@ #execute} calls will be ignored until you commit the current transaction.\r\n *\r\n * @param {String} [commandLabel] the label to show for the undo/redo operation\r\n *\r\n * @since 4.0.0\r\n */\n startTransaction: function startTransaction(commandLabel) {\n if (this.transactionCommand !== null) {\n debugger;\n throw \"CommandStack is already within transactional mode. Don't call 'startTransaction\";\n }\n\n this.transactionCommand = new _packages2.default.command.CommandCollection(commandLabel);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns true if the Command Stack has an open transaction.\r\n *\r\n *\r\n */\n isInTransaction: function isInTransaction() {\n return this.transactionCommand !== null;\n },\n\n /**\r\n * @method\r\n * Commit the running transaction. All commands between the start/end of a transaction\r\n * can be undo/redo in a single step.\r\n *\r\n * @since 4.0.0\r\n */\n commitTransaction: function commitTransaction() {\n if (this.transactionCommand === null) {\n return; //silently\n }\n\n var cmd = this.transactionCommand;\n this.transactionCommand = null;\n // we can drop the CommandCollection if the collection contains only one command.\n if (cmd.commands.getSize() === 1) {\n this.execute(cmd.commands.first());\n } else {\n this.execute(cmd);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Undo on command from the stack and store them on the redo command stack.\r\n *\r\n **/\n undo: function undo() {\n var command = this.undostack.pop();\n if (command) {\n this.notifyListeners(command, _packages2.default.command.CommandStack.PRE_UNDO);\n this.redostack.push(command);\n command.undo();\n this.notifyListeners(command, _packages2.default.command.CommandStack.POST_UNDO);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Redo a command after the user has undo a command\r\n *\r\n **/\n redo: function redo() {\n var command = this.redostack.pop();\n\n if (command) {\n this.notifyListeners(command, _packages2.default.command.CommandStack.PRE_REDO);\n this.undostack.push(command);\n command.redo();\n this.notifyListeners(command, _packages2.default.command.CommandStack.POST_REDO);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the label of the next REDO command.\r\n *\r\n * @return {String}\r\n **/\n getRedoLabel: function getRedoLabel() {\n if (this.redostack.length === 0) return \"\";\n\n var command = this.redostack[this.redostack.length - 1];\n\n if (command) {\n return command.getLabel();\n }\n return \"\";\n },\n\n /**\r\n * @method\r\n * Return the label of the next UNDO command.\r\n *\r\n * @return {String}\r\n **/\n getUndoLabel: function getUndoLabel() {\n if (this.undostack.length === 0) return \"\";\n\n var command = this.undostack[this.undostack.length - 1];\n\n if (command) {\n return command.getLabel();\n }\n return \"\";\n },\n\n /**\r\n * @method\r\n * Indicates whenever a REDO is possible.\r\n *\r\n * @return boolean <code>true</code> if it is appropriate to call {@link #redo()}.\r\n */\n canRedo: function canRedo() {\n return this.redostack.length > 0;\n },\n\n /**\r\n * @method\r\n * indicator whenever a undo is possible.\r\n *\r\n * @return {Boolean} <code>true</code> if {@link #undo()} can be called\r\n **/\n canUndo: function canUndo() {\n return this.undostack.length > 0;\n },\n\n /**\r\n * @method\r\n * Adds a listener to the command stack, which will be notified whenever a command has been processed on the stack.\r\n * @deprecated use on/off to register events\r\n * @param {draw2d.command.CommandStackEventListener|Function} listener the listener to add.\r\n */\n addEventListener: function addEventListener(listener) {\n return this.on(\"change\", listener);\n },\n /**\r\n * Adds a listener to the command stack, which will be notified whenever a command has been processed on the stack.\r\n * @param event\r\n * @param func\r\n */\n on: function on(event, listener) {\n if (event !== \"change\") throw \"only event of kind 'change' is supported\";\n\n if (listener instanceof _packages2.default.command.CommandStackEventListener) {\n this.eventListeners.add(listener);\n } else if (typeof listener.stackChanged === \"function\") {\n this.eventListeners.add(listener);\n } else if (typeof listener === \"function\") {\n this.eventListeners.add({ stackChanged: listener });\n } else {\n throw \"Object doesn't implement required callback interface [draw2d.command.CommandStackListener]\";\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Removes a listener from the command stack.\r\n *\r\n * @param {draw2d.command.CommandStackEventListener} listener the listener to remove.\r\n */\n removeEventListener: function removeEventListener(listener) {\n this.off(listener);\n },\n\n off: function off(listener) {\n this.eventListeners.grep(function (entry) {\n return entry === listener || entry.stackChanged === listener;\n });\n /*\r\n let size = this.eventListeners.getSize()\r\n for (let i = 0; i < size; i++) {\r\n let entry = this.eventListeners.get(i)\r\n if (entry === listener || entry.stackChanged === listener) {\r\n this.eventListeners.remove(entry)\r\n return\r\n }\r\n }\r\n */\n return this;\n },\n\n /**\r\n * @method\r\n * Notifies command stack event listeners that the command stack has changed to the\r\n * specified state.\r\n *\r\n * @param {draw2d.command.Command} command the command\r\n * @param {Number} state the current stack state\r\n *\r\n **/\n notifyListeners: function notifyListeners(command, state, action) {\n var event = new _packages2.default.command.CommandStackEvent(this, command, state, action);\n var size = this.eventListeners.getSize();\n\n for (var i = 0; i < size; i++) {\n this.eventListeners.get(i).stackChanged(event);\n }\n }\n});\n\n/** Constant indicating notification prior to executing a command (value is 1).*/\n/**\r\n * @class draw2d.command.CommandStack\r\n * Stack for undo/redo operations\r\n */\n_packages2.default.command.CommandStack.PRE_EXECUTE = 1;\n/** Constant indicating notification prior to redoing a command (value is 2).*/\n_packages2.default.command.CommandStack.PRE_REDO = 2;\n/** Constant indicating notification prior to undoing a command (value is 4).*/\n_packages2.default.command.CommandStack.PRE_UNDO = 4;\n/** Constant indicating notification after a command has been executed (value is 8).*/\n_packages2.default.command.CommandStack.POST_EXECUTE = 8;\n/** Constant indicating notification after a command has been redone (value is 16).*/\n_packages2.default.command.CommandStack.POST_REDO = 16;\n/** Constant indicating notification after a command has been undone (value is 32).*/\n_packages2.default.command.CommandStack.POST_UNDO = 32;\n/** Constant indicating notification after the stack has been (re)init (value is 64).*/\n_packages2.default.command.CommandStack.POST_INIT = 64;\n\n_packages2.default.command.CommandStack.POST_MASK = _packages2.default.command.CommandStack.POST_EXECUTE | _packages2.default.command.CommandStack.POST_UNDO | _packages2.default.command.CommandStack.POST_REDO;\n_packages2.default.command.CommandStack.PRE_MASK = _packages2.default.command.CommandStack.PRE_EXECUTE | _packages2.default.command.CommandStack.PRE_UNDO | _packages2.default.command.CommandStack.PRE_REDO;\n\n/***/ }),\n\n/***/ \"./src/command/CommandStackEvent.js\":\n/*!******************************************!*\\\n !*** ./src/command/CommandStackEvent.js ***!\n \\******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandStackEvent = Class.extend({\n NAME: \"draw2d.command.CommandStackEvent\",\n\n /**\r\n * @constructor\r\n * Create a new CommandStack objects which can be execute via the CommandStack.\r\n * @param {draw2d.command.Command} command the related command\r\n * @param {Number} details the current state of the command execution\r\n *\r\n */\n init: function init(stack, command, details, action) {\n this.stack = stack;\n this.command = command;\n this.details = details; // deprecated\n this.action = action;\n },\n\n /**\r\n * @method\r\n * Return the corresponding stack of the event.\r\n *\r\n * @return {draw2d.command.CommandStack}\r\n **/\n getStack: function getStack() {\n return this.stack;\n },\n\n /**\r\n * @method\r\n * Returns null or a Command if a command is relevant to the current event.\r\n *\r\n * @return {draw2d.command.Command}\r\n **/\n getCommand: function getCommand() {\n return this.command;\n },\n\n /**\r\n * @method\r\n * Returns an integer identifying the type of event which has occurred.\r\n * Defined by {@link draw2d.command.CommandStack}.\r\n *\r\n * @return {Number}\r\n **/\n getDetails: function getDetails() {\n return this.details;\n },\n\n /**\r\n * @method\r\n * Returns true if this event is fired after the stack having changed.\r\n *\r\n * @return {Boolean} true if post-change event\r\n **/\n isPostChangeEvent: function isPostChangeEvent() {\n return 0 !== (this.getDetails() & _packages2.default.command.CommandStack.POST_MASK);\n },\n\n /**\r\n * @method\r\n * Returns true if this event is fired prior to the stack changing.\r\n *\r\n * @return {Boolean} true if pre-change event\r\n **/\n isPreChangeEvent: function isPreChangeEvent() {\n return 0 !== (this.getDetails() & _packages2.default.command.CommandStack.PRE_MASK);\n }\n}); /**\r\n * @class draw2d.command.CommandStackEvent\r\n * Event class which will be fired for every CommandStack operation. Required for CommandStackListener.\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandStackEventListener.js\":\n/*!**************************************************!*\\\n !*** ./src/command/CommandStackEventListener.js ***!\n \\**************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandStackEventListener = Class.extend({\n NAME: \"draw2d.command.CommandStackEventListener\",\n\n /**\r\n * @constructor\r\n * Creates a new Listener Object\r\n *\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n * Sent when an event occurs on the command stack. draw2d.command.CommandStackEvent.getDetail()\r\n * can be used to identify the type of event which has occurred.\r\n *\r\n * @template\r\n *\r\n * @param {draw2d.command.CommandStackEvent} event\r\n **/\n stackChanged: function stackChanged(event) {}\n\n}); /**\r\n * @class draw2d.command.CommandStackEventListener\r\n *\r\n * Event class which will be fired for every CommandStack operation. Required for CommandStackListener.\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/command/CommandType.js\":\n/*!************************************!*\\\n !*** ./src/command/CommandType.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandType = Class.extend({\n\n NAME: \"draw2d.command.CommandType\",\n\n /**\r\n * @constructor\r\n * Create a new edit policy object\r\n *\r\n * @param {String} policy\r\n */\n init: function init(policy) {\n this.policy = policy;\n },\n\n /**\r\n * @method\r\n * Return the String representation of the policy\r\n *\r\n * @return {String}\r\n **/\n getPolicy: function getPolicy() {\n return this.policy;\n }\n}); /**\r\n * @class draw2d.command.CommandType\r\n *\r\n * EditPolicies should determine an Figures editing capabilities.\r\n * It is possible to implement an Figure such that it handles all editing\r\n * responsibility.<br>\r\n * However, it is much more flexible and object-oriented to use\r\n * EditPolicies. Using policies, you can pick and choose the editing behavior for\r\n * an Figure without being bound to its class hierarchy. Code reuse is increased,\r\n * and code management is easier.\r\n *\r\n * @author Andreas Herz\r\n */\n\n\n_packages2.default.command.CommandType.DELETE = \"DELETE\";\n_packages2.default.command.CommandType.MOVE = \"MOVE\";\n_packages2.default.command.CommandType.CONNECT = \"CONNECT\";\n_packages2.default.command.CommandType.MOVE_BASEPOINT = \"MOVE_BASEPOINT\";\n_packages2.default.command.CommandType.MOVE_VERTEX = \"MOVE_VERTEX\";\n_packages2.default.command.CommandType.MOVE_VERTICES = \"MOVE_VERTICES\";\n_packages2.default.command.CommandType.MOVE_GHOST_VERTEX = \"MOVE_GHOST_VERTEX\";\n_packages2.default.command.CommandType.RESIZE = \"RESIZE\";\n_packages2.default.command.CommandType.RESET = \"RESET\";\n_packages2.default.command.CommandType.ROTATE = \"ROTATE\";\n\n/***/ }),\n\n/***/ \"./src/command/CommandUngroup.js\":\n/*!***************************************!*\\\n !*** ./src/command/CommandUngroup.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.command.CommandUngroup = _packages2.default.command.Command.extend({\n NAME: \"draw2d.command.CommandUngroup\",\n\n /**\r\n * @constructor\r\n * Create a group command for the given figure.\r\n *\r\n * @param {draw2d.Canvas} canvas the responsible canvas\r\n * @param {draw2d.util.ArrayList|draw2d.Selection} group the figures to group\r\n */\n init: function init(canvas, group) {\n this._super(_packages2.default.Configuration.i18n.command.ungroupShapes);\n if (group instanceof _packages2.default.Selection) {\n this.group = group.getAll().first();\n } else {\n this.group = group;\n }\n\n this.canvas = canvas;\n this.figures = this.group.getAssignedFigures().clone();\n },\n\n /**\r\n * @method\r\n * Returns [true] if the command can be execute and the execution of the\r\n * command modifies the model. e.g.: a CommandMove with [startX,startX] == [endX,endY] should\r\n * return false. The execution of this Command doesn't modify the model.\r\n *\r\n * @return {Boolean} return try if the command modify the model or make any relevant changes\r\n **/\n canExecute: function canExecute() {\n return !this.figures.isEmpty();\n },\n\n /**\r\n * @method\r\n * Execute the command the first time\r\n *\r\n **/\n execute: function execute() {\n this.redo();\n },\n\n /**\r\n * @method\r\n * Undo the command\r\n *\r\n **/\n undo: function undo() {\n var _this = this;\n this.figures.each(function (i, figure) {\n _this.group.assignFigure(figure);\n });\n this.canvas.add(this.group);\n this.canvas.setCurrentSelection(this.group);\n },\n\n /**\r\n * @method\r\n * Redo the command after the user has undo this command\r\n *\r\n **/\n redo: function redo() {\n var _this = this;\n this.figures.each(function (i, figure) {\n _this.group.unassignFigure(figure);\n });\n\n this.canvas.setCurrentSelection(this.figures);\n this.canvas.remove(this.group);\n }\n}); /**\r\n * @class draw2d.command.CommandUngroup\r\n * Command to ungroup a given group figures\r\n *\r\n * @extends draw2d.command.Command\r\n */\n\n/***/ }),\n\n/***/ \"./src/css/contextmenu.css\":\n/*!*********************************!*\\\n !*** ./src/css/contextmenu.css ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\nvar content = __webpack_require__(/*! !../../node_modules/css-loader!./contextmenu.css */ \"./node_modules/css-loader/index.js!./src/css/contextmenu.css\");\n\nif(typeof content === 'string') content = [[module.i, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = __webpack_require__(/*! ../../node_modules/style-loader/lib/addStyles.js */ \"./node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(false) {}\n\n/***/ }),\n\n/***/ \"./src/decoration/connection/ArrowDecorator.js\":\n/*!*****************************************************!*\\\n !*** ./src/decoration/connection/ArrowDecorator.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.decoration.connection.ArrowDecorator = _packages2.default.decoration.connection.Decorator.extend({\n\n NAME: \"draw2d.decoration.connection.ArrowDecorator\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Number} [width] the width of the arrow\r\n * @param {Number} [height] the height of the arrow\r\n */\n init: function init(width, height) {\n this._super(width, height);\n },\n\n /**\r\n * Draw a filled arrow decoration.\r\n * It's not your work to rotate the arrow. The draw2d do this job for you.\r\n *\r\n * <pre>\r\n * ---+ [length , width/2]\r\n * ------- |\r\n * [3,0] -------- |\r\n * +--- |==========================\r\n * -------- |\r\n * ------- |\r\n * ---+ [lenght ,-width/2]\r\n *\r\n *</pre>\r\n * @param {Raphael} paper the raphael paper object for the paint operation\r\n **/\n paint: function paint(paper) {\n var st = paper.set();\n\n st.push(paper.path([\"M0 0\", \"L\", this.width, \" \", -this.height / 2, \"L\", this.width, \" \", this.height / 2, \"L0 0\"].join(\"\")));\n\n st.attr({ fill: this.backgroundColor.rgba(), stroke: this.color.rgba() });\n\n return st;\n }\n}); /**\r\n * @class draw2d.decoration.connection.ArrowDecorator\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start();\r\n * var end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * var c = new draw2d.Connection();\r\n *\r\n * // toggle from ManhattenRouter to DirectRouter to show the rotation of decorations\r\n * c.setRouter(new draw2d.layout.connection.DirectRouter());\r\n *\r\n * // Set the endpoint decorations for the connection\r\n * //\r\n * c.setSourceDecorator(new draw2d.decoration.connection.ArrowDecorator());\r\n * c.setTargetDecorator(new draw2d.decoration.connection.ArrowDecorator());\r\n * // Connect the endpoints with the start and end port\r\n * //\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extend draw2d.decoration.connection.Decorator\r\n */\n\n/***/ }),\n\n/***/ \"./src/decoration/connection/BarDecorator.js\":\n/*!***************************************************!*\\\n !*** ./src/decoration/connection/BarDecorator.js ***!\n \\***************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.decoration.connection.BarDecorator = _packages2.default.decoration.connection.Decorator.extend({\n\n NAME: \"draw2d.decoration.connection.BarDecorator\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Number} [width] the width of the bar\r\n * @param {Number} [height] the height of the bar\r\n */\n init: function init(width, height) {\n this._super(width, height);\n },\n\n /**\r\n * @method\r\n * Draw a bar decoration.\r\n *\r\n *\r\n * @param {Raphael} paper the raphael paper object for the paint operation\r\n **/\n paint: function paint(paper) {\n var st = paper.set();\n var path = [\"M\", this.width / 2, \" \", -this.height / 2]; // Go to the top center..\n path.push(\"L\", this.width / 2, \" \", this.height / 2); // ...bottom center...\n\n st.push(paper.path(path.join(\"\")));\n st.attr({ fill: this.backgroundColor.rgba(), stroke: this.color.rgba() });\n return st;\n }\n\n}); /**\r\n * @class draw2d.decoration.connection.BarDecorator\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start();\r\n * var end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * var c = new draw2d.Connection();\r\n *\r\n * // toggle from ManhattenRouter to DirectRouter to show the rotation of decorations\r\n * c.setRouter(new draw2d.layout.connection.DirectRouter());\r\n *\r\n * // Set the endpoint decorations for the connection\r\n * //\r\n * c.setSourceDecorator(new draw2d.decoration.connection.BarDecorator());\r\n * c.setTargetDecorator(new draw2d.decoration.connection.BarDecorator());\r\n * // Connect the endpoints with the start and end port\r\n * //\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extend draw2d.decoration.connection.Decorator\r\n */\n\n/***/ }),\n\n/***/ \"./src/decoration/connection/CircleDecorator.js\":\n/*!******************************************************!*\\\n !*** ./src/decoration/connection/CircleDecorator.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.decoration.connection.CircleDecorator = _packages2.default.decoration.connection.Decorator.extend({\n\n NAME: \"draw2d.decoration.connection.CircleDecorator\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Number} [width] the width of the arrow\r\n * @param {Number} [height] the height of the arrow\r\n */\n init: function init(width, height) {\n this._super(width, height);\n },\n\n /**\r\n * Draw a filled circle decoration.\r\n *\r\n * @param {Raphael} paper the raphael paper object for the paint operation\r\n **/\n paint: function paint(paper) {\n var st = paper.set();\n\n st.push(paper.circle(0, 0, this.width / 2));\n st.attr({ fill: this.backgroundColor.rgba(), stroke: this.color.rgba() });\n\n return st;\n }\n}); /**\r\n * @class draw2d.decoration.connection.CircleDecorator\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start();\r\n * var end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * var c = new draw2d.Connection();\r\n *\r\n * // toggle from ManhattenRouter to DirectRouter to show the rotation of decorations\r\n * c.setRouter(new draw2d.layout.connection.DirectRouter());\r\n *\r\n * // Set the endpoint decorations for the connection\r\n * //\r\n * c.setSourceDecorator(new draw2d.decoration.connection.CircleDecorator());\r\n * c.setTargetDecorator(new draw2d.decoration.connection.CircleDecorator());\r\n * // Connect the endpoints with the start and end port\r\n * //\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extend draw2d.decoration.connection.Decorator\r\n */\n\n/***/ }),\n\n/***/ \"./src/decoration/connection/Decorator.js\":\n/*!************************************************!*\\\n !*** ./src/decoration/connection/Decorator.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _Color = __webpack_require__(/*! ../../util/Color */ \"./src/util/Color.js\");\n\nvar _Color2 = _interopRequireDefault(_Color);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.decoration.connection.Decorator\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n */\n_packages2.default.decoration.connection.Decorator = Class.extend({\n\n\tNAME: \"draw2d.decoration.connection.Decorator\",\n\n\t/**\r\n * @constructor\r\n */\n\tinit: function init(width, height) {\n\n\t\tif (typeof width === \"undefined\" || width < 1) {\n\t\t\tthis.width = 20;\n\t\t} else {\n\t\t\tthis.width = width;\n\t\t}\n\n\t\tif (typeof height === \"undefined\" || height < 1) {\n\t\t\tthis.height = 15;\n\t\t} else {\n\t\t\tthis.height = height;\n\t\t}\n\n\t\tthis.color = new _Color2.default(0, 0, 0);\n\t\tthis.backgroundColor = new _Color2.default(250, 250, 250);\n\t},\n\n\t/**\r\n * @method\r\n * Paint the decoration for a connector. The Connector starts always in\r\n * [0,0] and ends in [x,0].\r\n * It is not necessary to consider any rotation of the connection. This will be done by the\r\n * framework.\r\n *\r\n * <pre>\r\n * | -Y\r\n * |\r\n * |\r\n * --------------+-----------------------------> +X\r\n * |\r\n * |\r\n * |\r\n * V +Y\r\n *\r\n *\r\n * </pre>\r\n *\r\n * See in ArrowConnectionDecorator for example implementation.\r\n * @param {Raphael} paper\r\n */\n\tpaint: function paint(paper) {\n\t\t// do nothing per default\n\t},\n\n\t/**\r\n * @method\r\n * Set the stroke color for the decoration\r\n *\r\n * @param {draw2d.util.Color|String} c\r\n */\n\tsetColor: function setColor(c) {\n\t\tthis.color = new _Color2.default(c);\n\n\t\treturn this;\n\t},\n\n\t/**\r\n * @method\r\n * Set the background color for the decoration\r\n *\r\n * @param {draw2d.util.Color|String} c\r\n */\n\tsetBackgroundColor: function setBackgroundColor(c) {\n\t\tthis.backgroundColor = new _Color2.default(c);\n\n\t\treturn this;\n\t},\n\n\t/**\r\n * @method\r\n * Change the dimension of the decoration shape\r\n *\r\n * @param {Number} width The new width of the decoration\r\n * @param {Number} height The new height of the decoration\r\n **/\n\tsetDimension: function setDimension(width, height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\n\t\treturn this;\n\t}\n\n});\n\n/***/ }),\n\n/***/ \"./src/decoration/connection/DiamondDecorator.js\":\n/*!*******************************************************!*\\\n !*** ./src/decoration/connection/DiamondDecorator.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.decoration.connection.DiamondDecorator = _packages2.default.decoration.connection.Decorator.extend({\n\n NAME: \"draw2d.decoration.connection.DiamondDecorator\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Number} [width] the width of the arrow\r\n * @param {Number} [height] the height of the arrow\r\n */\n init: function init(width, height) {\n this._super(width, height);\n },\n\n /**\r\n * Draw a filled diamond decoration.\r\n *\r\n * It's not your work to rotate the arrow. The draw2d do this job for you.\r\n *\r\n * @param {Raphael} paper the raphael paper object for the paint operation\r\n **/\n paint: function paint(paper) {\n var st = paper.set();\n\n st.push(paper.path([\"M\", this.width / 2, \" \", -this.height / 2, // Go to the top center..\n \"L\", this.width, \" \", 0, // ...draw line to the right middle\n \"L\", this.width / 2, \" \", this.height / 2, // ...bottom center...\n \"L\", 0, \" \", 0, // ...left middle...\n \"L\", this.width / 2, \" \", -this.height / 2, // and close the path\n \"Z\"].join(\"\")));\n\n st.attr({ fill: this.backgroundColor.rgba(), stroke: this.color.rgba() });\n return st;\n }\n\n}); /**\r\n * @class draw2d.decoration.connection.DiamondDecorator\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start();\r\n * var end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * var c = new draw2d.Connection();\r\n *\r\n * // toggle from ManhattenRouter to DirectRouter to show the rotation of decorations\r\n * c.setRouter(new draw2d.layout.connection.DirectRouter());\r\n *\r\n * // Set the endpoint decorations for the connection\r\n * //\r\n * c.setSourceDecorator(new draw2d.decoration.connection.DiamondDecorator());\r\n * c.setTargetDecorator(new draw2d.decoration.connection.DiamondDecorator());\r\n * // Connect the endpoints with the start and end port\r\n * //\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extend draw2d.decoration.connection.Decorator\r\n */\n\n/***/ }),\n\n/***/ \"./src/geo/Line.js\":\n/*!*************************!*\\\n !*** ./src/geo/Line.js ***!\n \\*************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.geo.Line = {\n\n /**\r\n * Returns the relative position of the point on the line between [0..1]\r\n * The point \"p\" must be part of the line!!\r\n *\r\n * 0 => given point is on the start location\r\n * ..=> given point is in between\r\n * 1 => given point is at the end\r\n *\r\n * @return {Number}\r\n */\n inverseLerp: function inverseLerp(X1, Y1, X2, Y2, px, py) {\n var nenner = Math.abs(X2 - X1);\n var zaehler = Math.abs(X2 - px);\n if (nenner === 0) {\n nenner = Math.abs(Y2 - Y1);\n zaehler = Math.abs(Y2 - py);\n if (nenner === 0) {\n return 1;\n }\n }\n\n return zaehler / nenner;\n },\n\n /**\r\n * @method\r\n * Returns the projection of the point onto the line.\r\n *\r\n * @param {Number} px the x coordinate of the test point\r\n * @param {Number} py the y coordinate of the test point\r\n * @return {draw2d.geo.Point}\r\n **/\n pointProjection: function pointProjection(X1, Y1, X2, Y2, px, py) {\n var r = new _packages2.default.geo.Point(0, 0);\n if (X1 === X2 && Y1 === Y2) X1 -= 0.00001;\n\n var U = (px - X1) * (X2 - X1) + (py - Y1) * (Y2 - Y1);\n\n var Udenom = Math.pow(X2 - X1, 2) + Math.pow(Y2 - Y1, 2);\n\n U /= Udenom;\n\n r.x = X1 + U * (X2 - X1);\n r.y = Y1 + U * (Y2 - Y1);\n\n var minx = void 0,\n maxx = void 0,\n miny = void 0,\n maxy = void 0;\n\n minx = Math.min(X1, X2);\n maxx = Math.max(X1, X2);\n\n miny = Math.min(Y1, Y2);\n maxy = Math.max(Y1, Y2);\n\n var isValid = r.x >= minx && r.x <= maxx && r.y >= miny && r.y <= maxy;\n\n return isValid ? r : null;\n },\n\n distance: function distance(X1, Y1, X2, Y2, px, py) {\n // Adjust vectors relative to X1,Y1\n // X2,Y2 becomes relative vector from X1,Y1 to end of segment\n X2 -= X1;\n Y2 -= Y1;\n // px,py becomes relative vector from X1,Y1 to test point\n px -= X1;\n py -= Y1;\n var dotprod = px * X2 + py * Y2;\n var projlenSq = void 0;\n if (dotprod <= 0.0) {\n // px,py is on the side of X1,Y1 away from X2,Y2\n // distance to segment is length of px,py vector\n // \"length of its (clipped) projection\" is now 0.0\n projlenSq = 0.0;\n } else {\n // switch to backwards vectors relative to X2,Y2\n // X2,Y2 are already the negative of X1,Y1=>X2,Y2\n // to get px,py to be the negative of px,py=>X2,Y2\n // the dot product of two negated vectors is the same\n // as the dot product of the two normal vectors\n px = X2 - px;\n py = Y2 - py;\n dotprod = px * X2 + py * Y2;\n if (dotprod <= 0.0) {\n // px,py is on the side of X2,Y2 away from X1,Y1\n // distance to segment is length of (backwards) px,py vector\n // \"length of its (clipped) projection\" is now 0.0\n projlenSq = 0.0;\n } else {\n // px,py is between X1,Y1 and X2,Y2\n // dotprod is the length of the px,py vector\n // projected on the X2,Y2=>X1,Y1 vector times the\n // length of the X2,Y2=>X1,Y1 vector\n projlenSq = dotprod * dotprod / (X2 * X2 + Y2 * Y2);\n }\n }\n // Distance to line is now the length of the relative point\n // vector minus the length of its projection onto the line\n // (which is zero if the projection falls outside the range\n // of the line segment).\n var lenSq = px * px + py * py - projlenSq;\n if (lenSq < 0) {\n lenSq = 0;\n }\n return Math.sqrt(lenSq);\n }\n}; /**\r\n * Static util function to determine the minimal distance of point(px,py) on the line(x1,y1,x2,y2)\r\n *\r\n *\r\n * @return {Number}\r\n * @static\r\n * @private\r\n * @param {Number} X1 x coordinate of the start point of the line\r\n * @param {Number} Y1 y coordinate of the start point of the line\r\n * @param {Number} X2 x coordinate of the end point of the line\r\n * @param {Number} Y2 y coordinate of the end point of the line\r\n * @param {Number} px x coordinate of the point to test\r\n * @param {Number} py y coordinate of the point to test\r\n **/\n\n/***/ }),\n\n/***/ \"./src/geo/Point.js\":\n/*!**************************!*\\\n !*** ./src/geo/Point.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.geo.Point = Class.extend({\n\n NAME: \"draw2d.geo.Point\",\n\n /**\r\n * @constructor\r\n * Creates a new Point object with the hands over coordinates.\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {Number} y\r\n */\n init: function init(x, y) {\n if (x instanceof _packages2.default.geo.Point) {\n this.x = x.x;\n this.y = x.y;\n } else if (!isNaN(parseFloat(x.x)) && !isNaN(parseFloat(x.y))) {\n this.x = x.x;\n this.y = x.y;\n } else {\n this.x = x;\n this.y = y;\n }\n\n // limit for the maxi/minimum boundary of this rectangle\n // It is not possible that the rect leave the boundary if set.\n this.bx = null;\n this.by = null;\n this.bw = null;\n this.bh = null;\n },\n\n /**\r\n * @method\r\n * Set the boundary of the rectangle. If set, the rectangle is always inside\r\n * the boundary. A setX or setY will always be adjusted.\r\n *\r\n */\n setBoundary: function setBoundary(bx, by, bw, bh) {\n if (bx instanceof _packages2.default.geo.Rectangle) {\n this.bx = bx.x;\n this.by = bx.y;\n this.bw = bx.w;\n this.bh = bx.h;\n } else {\n this.bx = bx;\n this.by = by;\n this.bw = bw;\n this.bh = bh;\n }\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * @private\r\n */\n adjustBoundary: function adjustBoundary() {\n if (this.bx === null) {\n return;\n }\n this.x = Math.min(Math.max(this.bx, this.x), this.bw);\n this.y = Math.min(Math.max(this.by, this.y), this.bh);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Moves this Rectangle horizontally by dx and vertically by dy, then returns\r\n * this Rectangle for convenience.<br>\r\n * <br>\r\n * The method return the object itself. This allows you to do command chaining, where\r\n * you can perform multiple methods on the same elements.\r\n *\r\n * @param {Number} dx Shift along X axis\r\n * @param {Number} dy Shift along Y axis\r\n *\r\n **/\n translate: function translate(dx, dy) {\n this.x += dx;\n this.y += dy;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * The X value of the point\r\n * @since 0.1\r\n * @return {Number}\r\n */\n getX: function getX() {\n return this.x;\n },\n\n /**\r\n * @method\r\n * The y value of the point\r\n *\r\n * @return {Number}\r\n */\n getY: function getY() {\n return this.y;\n },\n\n /**\r\n * @method\r\n * Set the new X value of the point\r\n *\r\n * @param {Number} x the new value\r\n */\n setX: function setX(x) {\n this.x = x;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the new Y value of the point\r\n *\r\n * @param {Number} y the new value\r\n */\n setY: function setY(y) {\n this.y = y;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the new x/y coordinates of this point\r\n *\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {Number} [y]\r\n */\n setPosition: function setPosition(x, y) {\n if (x instanceof _packages2.default.geo.Point) {\n this.x = x.x;\n this.y = x.y;\n } else {\n this.x = x;\n this.y = y;\n }\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Calculates the relative position of the specified Point to this Point.\r\n *\r\n * @param {draw2d.geo.Point} p The reference Point\r\n * @return {Number} NORTH, SOUTH, EAST, or WEST, as defined in {@link draw2d.geo.PositionConstants}\r\n */\n getPosition: function getPosition(p) {\n var dx = p.x - this.x;\n var dy = p.y - this.y;\n if (Math.abs(dx) > Math.abs(dy)) {\n if (dx < 0) return _packages2.default.geo.PositionConstants.WEST;\n return _packages2.default.geo.PositionConstants.EAST;\n }\n if (dy < 0) return _packages2.default.geo.PositionConstants.NORTH;\n return _packages2.default.geo.PositionConstants.SOUTH;\n },\n\n /**\r\n * @method\r\n * Compares two points and return [true] if x and y are equals.\r\n *\r\n * @param {draw2d.geo.Point} p the point to compare with\r\n *\r\n * @return {Boolean}\r\n */\n equals: function equals(p) {\n return this.x === p.x && this.y === p.y;\n },\n\n /**\r\n * @method\r\n * Return the distance between this point and the hands over.\r\n *\r\n * @param {draw2d.geo.Point} other the point to use\r\n * @return {Number}\r\n */\n distance: function distance(other) {\n return Math.sqrt((this.x - other.x) * (this.x - other.x) + (this.y - other.y) * (this.y - other.y));\n },\n /* @deprecated */\n getDistance: function getDistance(other) {\n return this.distance(other);\n },\n\n /**\r\n * @method\r\n * Return the th of the vector from [0,0]\r\n *\r\n * @return {Number}\r\n * @since 2.10.0\r\n */\n length: function length() {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n },\n\n /**\r\n * @method\r\n * Return a new Point translated with the x/y values of the hands over point.\r\n *\r\n * @param {draw2d.geo.Point|Number} x the x translation or the complete point to translate\r\n * @param {Number} [y] the y translation. Required if x is a simple number instead of a draw2d.geo.Point\r\n * @return {draw2d.geo.Point} The new translated point.\r\n */\n translated: function translated(x, y) {\n var other = new _packages2.default.geo.Point(x, y);\n return new _packages2.default.geo.Point(this.x + other.x, this.y + other.y);\n },\n\n /**\r\n * @method\r\n * Return a new Point scaled with the x/y values of the hands over point.\r\n *\r\n * @param {Number} factor the factor to scaled the new point.\r\n * @return {draw2d.geo.Point} The new translated point.\r\n */\n scale: function scale(factor) {\n this.x *= factor;\n this.y *= factor;\n this.adjustBoundary();\n return this;\n },\n\n /**\r\n * @method\r\n * Return a new Point scaled with the x/y values of the hands over point.\r\n *\r\n * @param {Number} factor the factor to scaled the new point.\r\n * @return {draw2d.geo.Point} The new translated point.\r\n */\n scaled: function scaled(factor) {\n return new _packages2.default.geo.Point(this.x * factor, this.y * factor);\n },\n\n /* @deprecated */\n getScaled: function getScaled(factor) {\n return this.scaled(factor);\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n return {\n x: this.x,\n y: this.y\n };\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n * @returns\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this.x = memento.x;\n this.y = memento.y;\n },\n\n /**\r\n * @method\r\n * substract the given point and return the new point.\r\n *\r\n * @param that\r\n * @returns {draw2d.geo.Point}\r\n */\n subtract: function subtract(that) {\n return new _packages2.default.geo.Point(this.x - that.x, this.y - that.y);\n },\n\n dot: function dot(that) {\n return this.x * that.x + this.y * that.y;\n },\n\n cross: function cross(that) {\n return this.x * that.y - this.y * that.x;\n },\n\n lerp: function lerp(that, t) {\n return new _packages2.default.geo.Point(this.x + (that.x - this.x) * t, this.y + (that.y - this.y) * t);\n },\n\n /**\r\n * @method\r\n * Clone the Point and return them\r\n *\r\n * @returns\r\n */\n clone: function clone() {\n return new _packages2.default.geo.Point(this.x, this.y);\n }\n\n}); /**\r\n * @class draw2d.geo.Point Util class for geometrie handling.\r\n */\n\n/***/ }),\n\n/***/ \"./src/geo/PositionConstants.js\":\n/*!**************************************!*\\\n !*** ./src/geo/PositionConstants.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.geo.PositionConstants = function () {};\n/**\r\n * @class draw2d.geo.PositionConstants\r\n * Static values for point orientation.\r\n * \r\n */\n\n\n_packages2.default.geo.PositionConstants.NORTH = 1;\n_packages2.default.geo.PositionConstants.SOUTH = 4;\n_packages2.default.geo.PositionConstants.WEST = 8;\n_packages2.default.geo.PositionConstants.EAST = 16;\n\n/***/ }),\n\n/***/ \"./src/geo/Ray.js\":\n/*!************************!*\\\n !*** ./src/geo/Ray.js ***!\n \\************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.geo.Ray = _packages2.default.geo.Point.extend({\n\n NAME: \"draw2d.geo.Ray\",\n\n /**\r\n * @constructor \r\n * Creates a ray object. \r\n * \r\n * @param {Number} x\r\n * @param {Number} y\r\n */\n init: function init(x, y) {\n this._super(x, y);\n },\n\n isHorizontal: function isHorizontal() {\n return this.x != 0;\n },\n\n similarity: function similarity(otherRay) {\n return Math.abs(this.dot(otherRay));\n },\n\n getAveraged: function getAveraged(otherRay) {\n return new _packages2.default.geo.Ray((this.x + otherRay.x) / 2, (this.y + otherRay.y) / 2);\n }\n\n});\n\n/**\r\n * @class draw2d.geo.Ray\r\n * A ray is a line starting in [0,0,] with some additional\r\n * helper functions required for some router.\r\n * \r\n * @inheritable\r\n * @extends draw2d.geo.Point\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/geo/Rectangle.js\":\n/*!******************************!*\\\n !*** ./src/geo/Rectangle.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.geo.Rectangle = _packages2.default.geo.Point.extend({\n\n NAME: \"draw2d.geo.Rectangle\",\n\n /**\r\n * @constructor \r\n * Creates a new Point object with the hands over coordinates.\r\n * <br>\r\n * The constructor consumes almost any kind of rectangel definitions\r\n * like:\r\n * var rect0 = new draw2d.geo.Rectangle({x:0,y:0,width:20,height:20});\r\n * var rect1 = new draw2d.geo.Rectangle({x:0,y:0,w:20,h:20});\r\n * var rect2 = new draw2d.geo.Rectangle($(\"#divid\")[0].getBoundingClientRect());\r\n * var rect3 = new draw2d.geo.Rectangle(rect1);\r\n *\r\n * The rectangle class is usefull for any kind of intersection, hitTest, contains,...calculation\r\n * or to set the bounding box of any shape.\r\n *\r\n * @param {Number|draw2d.geo.Rectangle} x\r\n * @param {Number} y\r\n * @param {Number} w\r\n * @param {Number} h\r\n */\n init: function init(x, y, w, h) {\n // try to consume any kind rectangle definitions\n //\n\n\n if (x instanceof _packages2.default.geo.Rectangle) {\n y = x.y;\n w = x.w;\n h = x.h;\n x = x.x;\n } else if (typeof x.x === \"number\" && typeof x.y === \"number\") {\n y = x.y;\n w = x.w | x.width;\n h = x.h | x.height;\n x = x.x;\n } else if (typeof x.top === \"number\" && typeof x.left === \"number\") {\n y = x.top;\n w = x.w | x.width;\n h = x.h | x.height;\n x = x.left;\n }\n this._super(x, y);\n this.w = w;\n this.h = h;\n },\n\n /**\r\n * @method\r\n * @private\r\n */\n adjustBoundary: function adjustBoundary() {\n if (this.bx === null) {\n return;\n }\n this.x = Math.min(Math.max(this.bx, this.x), this.bw - this.w);\n this.y = Math.min(Math.max(this.by, this.y), this.bh - this.h);\n this.w = Math.min(this.w, this.bw);\n this.h = Math.min(this.h, this.bh);\n },\n\n /**\r\n * @method\r\n * Resizes this Rectangle by the values supplied as input and returns this for \r\n * convenience. This Rectangle's width will become this.width + dw. This \r\n * Rectangle's height will become this.height + dh.\r\n * <br>\r\n * The method return the object itself. This allows you to do command chaining, where \r\n * you can perform multiple methods on the same elements.\r\n *\r\n *\r\n * @param {Number} dw Amount by which width is to be resized\r\n * @param {Number} dh Amount by which height is to be resized\r\n * \r\n * @return {draw2d.geo.Rectangle} The method return the object itself\r\n **/\n resize: function resize(dw, dh) {\n this.w += dw;\n this.h += dh;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Adds the specified padding to the rectangle's bounds. This Rectangle's width\r\n * will become this.width + dw. The Rectangle's height will become this.height + dh.\r\n * The top left corner moves -dw/2, -dh/2\r\n * <br>\r\n * The method return the object itself. This allows you to do command chaining, where \r\n * you can perform multiple methods on the same elements.\r\n *\r\n *\r\n * @param {Number} dw Amount by which width is to be resized\r\n * @param {Number} dh Amount by which height is to be resized\r\n * \r\n **/\n scale: function scale(dw, dh) {\n this.w += dw;\n this.h += dh;\n this.x -= dw / 2;\n this.y -= dh / 2;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Translate the rectangle with the given x/y coordiante.\r\n *\r\n * @param {draw2d.geo.Point|Number} x the x translation or the complete point to translate\r\n * @param {Number} [y] the y translation. Required if x is a simple number instead of a draw2d.geo.Point\r\n *\r\n *\r\n * @since 5.6.0\r\n */\n translate: function translate(x, y) {\n var other = new _packages2.default.geo.Point(x, y);\n this.x += other.x;\n this.y += other.y;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns a copy of the translated rectangle\r\n *\r\n * @param {draw2d.geo.Point|Number} x the x translation or the complete point to translate\r\n * @param {Number} [y] the y translation. Required if x is a simple number instead of a draw2d.geo.Point\r\n *\r\n * @return {draw2d.geo.Rectangle} The new translated rectangle.\r\n *\r\n * @since 5.6.0\r\n */\n translated: function translated(x, y) {\n var other = new _packages2.default.geo.Point(x, y);\n return new _packages2.default.geo.Rectangle(this.x + other.x, this.y + other.y, this.w, this.h);\n },\n\n /**\r\n * Sets the parameters of this Rectangle from the Rectangle passed in and\r\n * returns this for convenience.<br>\r\n * <br>\r\n * The method return the object itself. This allows you to do command chaining, where \r\n * you can perform multiple methods on the same elements.\r\n *\r\n * @param {draw2d.geo.Rectangle} Rectangle providing the bounding values\r\n * \r\n * @return {draw2d.geo.Rectangle} The method return the object itself\r\n */\n setBounds: function setBounds(rect) {\n this.setPosition(rect.x, rect.y);\n\n this.w = rect.w;\n this.h = rect.h;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns <code>true</code> if this Rectangle's width or height is less than or\r\n * equal to 0.\r\n * \r\n * @return {Boolean}\r\n */\n isEmpty: function isEmpty() {\n return this.w <= 0 || this.h <= 0;\n },\n\n /**\r\n * @method\r\n * The width of the dimension element.\r\n * \r\n * @return {Number}\r\n **/\n getWidth: function getWidth() {\n return this.w;\n },\n\n /**\r\n * @method\r\n * Set the new width of the rectangle.\r\n * \r\n * @param {Number} w the new width of the rectangle\r\n */\n setWidth: function setWidth(w) {\n this.w = w;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * The height of the dimension element.\r\n * \r\n * @return {Number}\r\n **/\n getHeight: function getHeight() {\n return this.h;\n },\n\n /**\r\n * @method\r\n * Set the new height of the rectangle.\r\n * \r\n * @param {Number} h the new height of the rectangle\r\n */\n setHeight: function setHeight(h) {\n this.h = h;\n this.adjustBoundary();\n\n return this;\n },\n\n /**\r\n * @method\r\n * The x coordinate of the left corner.\r\n * \r\n * @return {Number}\r\n **/\n getLeft: function getLeft() {\n return this.x;\n },\n\n /**\r\n * @method\r\n * The x coordinate of the right corner.\r\n * \r\n * @return {Number}\r\n **/\n getRight: function getRight() {\n return this.x + this.w;\n },\n\n /**\r\n * @method\r\n * The y coordinate of the top.\r\n * \r\n *@return {Number}\r\n **/\n getTop: function getTop() {\n return this.y;\n },\n\n /**\r\n * @method\r\n * The y coordinate of the bottom.\r\n * \r\n *@return {Number}\r\n **/\n getBottom: function getBottom() {\n return this.y + this.h;\n },\n\n /**\r\n * @method\r\n * The top left corner of the dimension object.\r\n * \r\n * @return {draw2d.geo.Point} a new point objects which holds the coordinates\r\n **/\n getTopLeft: function getTopLeft() {\n return new _packages2.default.geo.Point(this.x, this.y);\n },\n\n /**\r\n * @method\r\n * The top center coordinate of the dimension object.\r\n * \r\n * @return {draw2d.geo.Point} a new point objects which holds the coordinates\r\n **/\n getTopCenter: function getTopCenter() {\n return new _packages2.default.geo.Point(this.x + this.w / 2, this.y);\n },\n\n /**\r\n * @method\r\n * The top right corner of the dimension object.\r\n * \r\n * @return {draw2d.geo.Point} a new point objects which holds the coordinates\r\n **/\n getTopRight: function getTopRight() {\n return new _packages2.default.geo.Point(this.x + this.w, this.y);\n },\n\n /**\r\n * @method\r\n * The center left of the dimension object.\r\n *\r\n * @return {draw2d.geo.Point} a new point objects which holds the coordinates\r\n **/\n getCenterLeft: function getCenterLeft() {\n return new _packages2.default.geo.Point(this.x, this.y + this.h / 2);\n },\n\n /**\r\n * @method\r\n * The bottom left corner of the dimension object.\r\n * \r\n * @return {draw2d.geo.Point} a new point objects which holds the coordinates\r\n **/\n getBottomLeft: function getBottomLeft() {\n return new _packages2.default.geo.Point(this.x, this.y + this.h);\n },\n\n /**\r\n * @method\r\n * The bottom center coordinate of the dimension object.\r\n * \r\n * @return {draw2d.geo.Point} a new point objects which holds the coordinates\r\n **/\n getBottomCenter: function getBottomCenter() {\n return new _packages2.default.geo.Point(this.x + this.w / 2, this.y + this.h);\n },\n\n /**\r\n * @method\r\n * The center of the dimension object\r\n * \r\n * @return {draw2d.geo.Point} a new point which holds the center of the object\r\n **/\n getCenter: function getCenter() {\n return new _packages2.default.geo.Point(this.x + this.w / 2, this.y + this.h / 2);\n },\n\n /**\r\n * @method\r\n * Bottom right corner of the object\r\n * \r\n * @return {draw2d.geo.Point} a new point which holds the bottom right corner\r\n **/\n getBottomRight: function getBottomRight() {\n return new _packages2.default.geo.Point(this.x + this.w, this.y + this.h);\n },\n\n /**\r\n * @method\r\n * Return all points of the rectangle as array. Starting at topLeft and the\r\n * clockwise.\r\n * \r\n * @return {draw2d.util.ArrayList} the points starting at top/left and the clockwise\r\n */\n getVertices: function getVertices() {\n var result = new _packages2.default.util.ArrayList();\n // don't change the order. We expect always that the top left corner has index[0]\n // and goes clock wise\n //\n result.add(this.getTopLeft());\n result.add(this.getTopRight());\n result.add(this.getBottomRight());\n result.add(this.getBottomLeft());\n\n return result;\n },\n\n /**\r\n * @method\r\n * Return a new rectangle which fits into this rectangle. <b>ONLY</b> the x/y coordinates\r\n * will be changed. Not the dimension of the given rectangle.\r\n * \r\n * @param {draw2d.geo.Rectangle} rect the rectangle to adjust\r\n * @return the new shifted rectangle\r\n */\n moveInside: function moveInside(rect) {\n var newRect = new _packages2.default.geo.Rectangle(rect.x, rect.y, rect.w, rect.h);\n // shift the coordinate right/down if coordinate not inside the rect\n //\n newRect.x = Math.max(newRect.x, this.x);\n newRect.y = Math.max(newRect.y, this.y);\n\n // ensure that the right border is inside this rect (if possible). \n //\n if (newRect.w < this.w) {\n newRect.x = Math.min(newRect.x + newRect.w, this.x + this.w) - newRect.w;\n } else {\n newRect.x = this.x;\n }\n\n // ensure that the bottom is inside this rectangle\n //\n if (newRect.h < this.h) {\n newRect.y = Math.min(newRect.y + newRect.h, this.y + this.h) - newRect.h;\n } else {\n newRect.y = this.y;\n }\n\n return newRect;\n },\n\n /**\r\n * @method\r\n * Return the minimum distance of this rectangle to the given {@link draw2d.geo.Point} or \r\n * {link draw2d.geo.Rectangle}.\r\n * \r\n * @param {draw2d.geo.Point|draw2d.geo.Rectangle} pointOrRectangle the reference point/rectangle for the distance calculation\r\n */\n getDistance: function getDistance(pointOrRectangle) {\n var cx = this.x;\n var cy = this.y;\n var cw = this.w;\n var ch = this.h;\n\n var ox = pointOrRectangle.getX();\n var oy = pointOrRectangle.getY();\n var ow = 1;\n var oh = 1;\n\n if (pointOrRectangle instanceof _packages2.default.geo.Rectangle) {\n ow = pointOrRectangle.getWidth();\n oh = pointOrRectangle.getHeight();\n }\n var oct = 9;\n\n // Determin Octant\n //\n // 0 | 1 | 2\n // __|___|__\n // 7 | 9 | 3\n // __|___|__\n // 6 | 5 | 4\n\n if (cx + cw <= ox) {\n if (cy + ch <= oy) {\n oct = 0;\n } else if (cy >= oy + oh) {\n oct = 6;\n } else {\n oct = 7;\n }\n } else if (cx >= ox + ow) {\n if (cy + ch <= oy) {\n oct = 2;\n } else if (cy >= oy + oh) {\n oct = 4;\n } else {\n oct = 3;\n }\n } else if (cy + ch <= oy) {\n oct = 1;\n } else if (cy >= oy + oh) {\n oct = 5;\n } else {\n return 0;\n }\n\n // Determine Distance based on Quad\n //\n switch (oct) {\n case 0:\n cx = cx + cw - ox;\n cy = cy + ch - oy;\n return -(cx + cy);\n case 1:\n return -(cy + ch - oy);\n case 2:\n cx = ox + ow - cx;\n cy = cy + ch - oy;\n return -(cx + cy);\n case 3:\n return -(ox + ow - cx);\n case 4:\n cx = ox + ow - cx;\n cy = oy + oh - cy;\n return -(cx + cy);\n case 5:\n return -(oy + oh - cy);\n case 6:\n cx = cx + cw - ox;\n cy = oy + oh - cy;\n return -(cx + cy);\n case 7:\n return -(cx + cw - ox);\n }\n\n throw \"Unknown data type of parameter for distance calculation in draw2d.geo.Rectangle.getDistance(..)\";\n },\n\n /**\r\n * @method\r\n * Determin the octant of r2 in relation to this rectangle.\r\n * <pre>\r\n *\r\n * 0 | 1 | 2\r\n * __|___|__\r\n * 7 | 8 | 3\r\n * __|___|__\r\n * 6 | 5 | 4\r\n * </pre>\r\n *\r\n * @param {draw2d.geo.Rectangle} r2\r\n * \r\n */\n determineOctant: function determineOctant(r2) {\n var HISTERESE = 3; // Toleranz um diese vermieden wird, dass der Octant \"8\" zurückgegeben wird\n\n var ox = this.x + HISTERESE;\n var oy = this.y + HISTERESE;\n var ow = this.w - HISTERESE * 2;\n var oh = this.h - HISTERESE * 2;\n\n var cx = r2.x;\n var cy = r2.y;\n var cw = 2;\n var ch = 2;\n if (r2 instanceof _packages2.default.geo.Rectangle) {\n cw = r2.w;\n ch = r2.h;\n }\n\n var oct = 0;\n\n if (cx + cw <= ox) {\n if (cy + ch <= oy) {\n oct = 0;\n } else if (cy >= oy + oh) {\n oct = 6;\n } else {\n oct = 7;\n }\n } else if (cx >= ox + ow) {\n if (cy + ch <= oy) {\n oct = 2;\n } else if (cy >= oy + oh) {\n oct = 4;\n } else {\n oct = 3;\n }\n } else if (cy + ch <= oy) {\n oct = 1;\n } else if (cy >= oy + oh) {\n oct = 5;\n } else {\n oct = 8;\n }\n\n return oct;\n },\n\n /**\r\n * @method\r\n * Returns the direction the point <i>p</i> is in relation to the given rectangle.\r\n * Util method for inherit router implementations.\r\n * \r\n * <p>\r\n * Possible values:\r\n * <ul>\r\n * <li>up -> 0</li>\r\n * <li>right -> 1</li>\r\n * <li>down -> 2</li>\r\n * <li>left -> 3</li>\r\n * </ul>\r\n * <p>\r\n * \r\n * @param {draw2d.geo.Point} other the point in relation to the given rectangle\r\n * \r\n * @return {Number} the direction from <i>r</i> to <i>p</i>\r\n */\n getDirection: function getDirection(other) {\n var current = this.getTopLeft();\n switch (this.determineOctant(other)) {\n case 0:\n if (current.x - other.x < current.y - other.y) return _packages2.default.geo.Rectangle.DIRECTION_UP;\n return _packages2.default.geo.Rectangle.DIRECTION_LEFT;\n case 1:\n return _packages2.default.geo.Rectangle.DIRECTION_UP;\n case 2:\n current = this.getTopRight();\n if (other.x - current.x < current.y - other.y) return _packages2.default.geo.Rectangle.DIRECTION_UP;\n return _packages2.default.geo.Rectangle.DIRECTION_RIGHT;\n case 3:\n return _packages2.default.geo.Rectangle.DIRECTION_RIGHT;\n case 4:\n current = this.getBottomRight();\n if (other.x - current.x < other.y - current.y) return _packages2.default.geo.Rectangle.DIRECTION_DOWN;\n return _packages2.default.geo.Rectangle.DIRECTION_RIGHT;\n case 5:\n return _packages2.default.geo.Rectangle.DIRECTION_DOWN;\n case 6:\n current = this.getBottomLeft();\n if (current.x - other.x < other.y - current.y) return _packages2.default.geo.Rectangle.DIRECTION_DOWN;\n return _packages2.default.geo.Rectangle.DIRECTION_LEFT;\n case 7:\n return _packages2.default.geo.Rectangle.DIRECTION_LEFT;\n case 8:\n if (other.y > this.y) {\n return _packages2.default.geo.Rectangle.DIRECTION_DOWN;\n }\n return _packages2.default.geo.Rectangle.DIRECTION_UP;\n\n }\n return _packages2.default.geo.Rectangle.DIRECTION_UP;\n },\n\n /**\r\n * @method\r\n * Compares two rectangle objects\r\n * \r\n * @param {draw2d.geo.Rectangle} o\r\n *\r\n * @return {Boolean}\r\n **/\n equals: function equals(o) {\n return this.x == o.x && this.y == o.y && this.w == o.w && this.h == o.h;\n },\n\n /**\r\n * @method\r\n * Detect whenever the hands over coordinate is inside the rectangle.\r\n *\r\n * @param {Number/draw2d.geo.Point} iX\r\n * @param {Number} iY\r\n * @returns {Boolean}\r\n */\n hitTest: function hitTest(iX, iY) {\n if (iX instanceof _packages2.default.geo.Point) {\n iY = iX.y;\n iX = iX.x;\n }\n var iX2 = this.x + this.getWidth();\n var iY2 = this.y + this.getHeight();\n return iX >= this.x && iX <= iX2 && iY >= this.y && iY <= iY2;\n },\n\n /**\r\n * @method\r\n * return true if this rectangle inside the hand over rectangle\r\n * \r\n *\r\n * @param {draw2d.geo.Rectangle} rect\r\n * @returns {Boolean}\r\n */\n isInside: function isInside(rect) {\n return rect.hitTest(this.getTopLeft()) && rect.hitTest(this.getTopRight()) && rect.hitTest(this.getBottomLeft()) && rect.hitTest(this.getBottomRight());\n },\n\n /**\r\n * @method\r\n * return true if this rectangle contains the hand over rectangle.\r\n * \r\n *\r\n * @param {draw2d.geo.Rectangle} rect\r\n * @returns {Boolean}\r\n * @since 4.7.2\r\n */\n contains: function contains(rect) {\n return this.hitTest(rect.getTopLeft()) && this.hitTest(rect.getTopRight()) && this.hitTest(rect.getBottomLeft()) && this.hitTest(rect.getBottomRight());\n },\n\n /**\r\n * @method\r\n * checks whenever the rectangles has an intersection.\r\n * \r\n * @param {draw2d.geo.Rectangle} rect\r\n * @returns {Boolean}\r\n */\n intersects: function intersects(rect) {\n var x11 = rect.x,\n y11 = rect.y,\n x12 = rect.x + rect.w,\n y12 = rect.y + rect.h,\n x21 = this.x,\n y21 = this.y,\n x22 = this.x + this.w,\n y22 = this.y + this.h;\n\n var x_overlap = Math.max(0, Math.min(x12, x22) - Math.max(x11, x21));\n var y_overlap = Math.max(0, Math.min(y12, y22) - Math.max(y11, y21));\n\n return x_overlap * y_overlap !== 0;\n },\n\n /**\r\n * @method\r\n * Merge this rectangle with the given one.\r\n * \r\n * @param {draw2d.geo.Rectangle} rect\r\n * @since 4.8.0\r\n */\n merge: function merge(rect) {\n var r = Math.max(rect.getRight(), this.getRight());\n var b = Math.max(rect.getBottom(), this.getBottom());\n\n this.setPosition(Math.min(this.x, rect.x), Math.min(this.y, rect.y));\n\n this.w = r - this.x;\n this.h = b - this.y;\n\n return this;\n },\n\n /**\r\n * @method\r\n * returns the intersection points with the given line if any exists\r\n * \r\n * @param {draw2d.geo.Point} start\r\n * @param {draw2d.geo.Point} end\r\n */\n intersectionWithLine: function intersectionWithLine(start, end) {\n var result = new _packages2.default.util.ArrayList();\n var v = this.getVertices();\n v.add(v.first());\n var p1 = v.first();\n var p2 = null;\n for (var i = 1; i < 5; i++) {\n p2 = v.get(i);\n p1 = _packages2.default.shape.basic.Line.intersection(start, end, p1, p2);\n if (p1 !== null) {\n result.add(p1);\n }\n p1 = p2;\n }\n return result;\n },\n\n /**\r\n * @method\r\n * Returns a copy of this rectangle\r\n *\r\n *\r\n * @returns {draw2d.geo.Rectangle}\r\n * @since 5.6.0\r\n */\n clone: function clone() {\n return new _packages2.default.geo.Rectangle(this.x, this.y, this.w, this.h);\n },\n\n /**\r\n * @method\r\n * converts the rectangle to JSON representation. required for the draw2d.io.Writer\r\n * \r\n * @returns {Object}\r\n */\n toJSON: function toJSON() {\n return {\n width: this.w,\n height: this.h,\n x: this.x,\n y: this.y\n };\n }\n\n});\n\n/**\r\n * ENUM for Direction\r\n */\n/**\r\n * @class draw2d.geo.Rectangle\r\n * \r\n * Util class for geometrie handling.\r\n * \r\n * @inheritable\r\n * @author Andreas Herz\r\n * \r\n * @extends draw2d.geo.Point\r\n */\n_packages2.default.geo.Rectangle.DIRECTION_UP = 0;\n_packages2.default.geo.Rectangle.DIRECTION_RIGHT = 1;\n_packages2.default.geo.Rectangle.DIRECTION_DOWN = 2;\n_packages2.default.geo.Rectangle.DIRECTION_LEFT = 3;\n\n/***/ }),\n\n/***/ \"./src/geo/Util.js\":\n/*!*************************!*\\\n !*** ./src/geo/Util.js ***!\n \\*************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.geo.Util = {\n\n insetPoint: function insetPoint(start, end, distanceFromStart) {\n if (start.equals(end)) {\n return start;\n }\n var vx = start.x - end.x;\n var vy = start.y - end.y;\n var length = Math.sqrt(vx * vx + vy * vy);\n var localDistance = Math.min(length / 2, distanceFromStart);\n return { x: end.x + vx / length * (length - localDistance),\n y: end.y + vy / length * (length - localDistance) };\n }\n\n};\n\n/**\r\n * @class draw2d.geo.Ray\r\n * A ray is a line starting in [0,0,] with some additional\r\n * helper functions required for some router.\r\n * \r\n * @inheritable\r\n * @extends draw2d.geo.Point\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/index.js\":\n/*!**********************!*\\\n !*** ./src/index.js ***!\n \\**********************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _raphaelExec = __webpack_require__(/*! lib/raphael.exec.js */ \"./src/lib/raphael.exec.js\");\n\nvar _raphaelExec2 = _interopRequireDefault(_raphaelExec);\n\nvar _ClassExec = __webpack_require__(/*! lib/Class.exec.js */ \"./src/lib/Class.exec.js\");\n\nvar _ClassExec2 = _interopRequireDefault(_ClassExec);\n\nvar _pathfindingExec = __webpack_require__(/*! lib/pathfinding.exec.js */ \"./src/lib/pathfinding.exec.js\");\n\nvar _pathfindingExec2 = _interopRequireDefault(_pathfindingExec);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = _packages2.default;\n\n__webpack_require__(/*! ./util/raphael_ext */ \"./src/util/raphael_ext.js\");\n__webpack_require__(/*! ./util/Polyfill */ \"./src/util/Polyfill.js\");\n__webpack_require__(/*! ./util/Base64 */ \"./src/util/Base64.js\");\n__webpack_require__(/*! ./util/Debug */ \"./src/util/Debug.js\");\n// require('./util/Color');\n\n__webpack_require__(/*! ./util/ArrayList */ \"./src/util/ArrayList.js\");\n__webpack_require__(/*! ./util/SVGUtil */ \"./src/util/SVGUtil.js\");\n//require('./util/JSONUtil');\n//require('./util/UUID');\n__webpack_require__(/*! ./util/spline/Spline */ \"./src/util/spline/Spline.js\");\n__webpack_require__(/*! ./util/spline/CubicSpline */ \"./src/util/spline/CubicSpline.js\");\n__webpack_require__(/*! ./util/spline/CatmullRomSpline */ \"./src/util/spline/CatmullRomSpline.js\");\n__webpack_require__(/*! ./util/spline/BezierSpline */ \"./src/util/spline/BezierSpline.js\");\n__webpack_require__(/*! ./geo/PositionConstants */ \"./src/geo/PositionConstants.js\");\n__webpack_require__(/*! ./geo/Point */ \"./src/geo/Point.js\");\n__webpack_require__(/*! ./geo/Rectangle */ \"./src/geo/Rectangle.js\");\n__webpack_require__(/*! ./geo/Util */ \"./src/geo/Util.js\");\n__webpack_require__(/*! ./geo/Ray */ \"./src/geo/Ray.js\");\n__webpack_require__(/*! ./geo/Line */ \"./src/geo/Line.js\");\n__webpack_require__(/*! ./command/CommandType */ \"./src/command/CommandType.js\");\n__webpack_require__(/*! ./command/Command */ \"./src/command/Command.js\");\n__webpack_require__(/*! ./command/CommandCollection */ \"./src/command/CommandCollection.js\");\n__webpack_require__(/*! ./command/CommandStack */ \"./src/command/CommandStack.js\");\n__webpack_require__(/*! ./command/CommandStackEvent */ \"./src/command/CommandStackEvent.js\");\n__webpack_require__(/*! ./command/CommandStackEventListener */ \"./src/command/CommandStackEventListener.js\");\n__webpack_require__(/*! ./command/CommandMove */ \"./src/command/CommandMove.js\");\n__webpack_require__(/*! ./command/CommandAttr */ \"./src/command/CommandAttr.js\");\n__webpack_require__(/*! ./command/CommandMoveLine */ \"./src/command/CommandMoveLine.js\");\n__webpack_require__(/*! ./command/CommandMoveConnection */ \"./src/command/CommandMoveConnection.js\");\n__webpack_require__(/*! ./command/CommandMoveVertex */ \"./src/command/CommandMoveVertex.js\");\n__webpack_require__(/*! ./command/CommandMoveVertices */ \"./src/command/CommandMoveVertices.js\");\n__webpack_require__(/*! ./command/CommandResize */ \"./src/command/CommandResize.js\");\n__webpack_require__(/*! ./command/CommandRotate */ \"./src/command/CommandRotate.js\");\n__webpack_require__(/*! ./command/CommandConnect */ \"./src/command/CommandConnect.js\");\n__webpack_require__(/*! ./command/CommandReconnect */ \"./src/command/CommandReconnect.js\");\n__webpack_require__(/*! ./command/CommandDelete */ \"./src/command/CommandDelete.js\");\n__webpack_require__(/*! ./command/CommandDeleteGroup */ \"./src/command/CommandDeleteGroup.js\");\n__webpack_require__(/*! ./command/CommandAdd */ \"./src/command/CommandAdd.js\");\n__webpack_require__(/*! ./command/CommandGroup */ \"./src/command/CommandGroup.js\");\n__webpack_require__(/*! ./command/CommandUngroup */ \"./src/command/CommandUngroup.js\");\n__webpack_require__(/*! ./command/CommandAddVertex */ \"./src/command/CommandAddVertex.js\");\n__webpack_require__(/*! ./command/CommandAssignFigure */ \"./src/command/CommandAssignFigure.js\");\n__webpack_require__(/*! ./command/CommandBoundingBox */ \"./src/command/CommandBoundingBox.js\");\n__webpack_require__(/*! ./command/CommandRemoveVertex */ \"./src/command/CommandRemoveVertex.js\");\n__webpack_require__(/*! ./command/CommandReplaceVertices */ \"./src/command/CommandReplaceVertices.js\");\n__webpack_require__(/*! ./layout/connection/ConnectionRouter */ \"./src/layout/connection/ConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/DirectRouter */ \"./src/layout/connection/DirectRouter.js\");\n__webpack_require__(/*! ./layout/connection/RubberbandRouter */ \"./src/layout/connection/RubberbandRouter.js\");\n__webpack_require__(/*! ./layout/connection/VertexRouter */ \"./src/layout/connection/VertexRouter.js\");\n__webpack_require__(/*! ./layout/connection/ManhattanConnectionRouter */ \"./src/layout/connection/ManhattanConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/ManhattanBridgedConnectionRouter */ \"./src/layout/connection/ManhattanBridgedConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/InteractiveManhattanConnectionRouter */ \"./src/layout/connection/InteractiveManhattanConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/CircuitConnectionRouter */ \"./src/layout/connection/CircuitConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/SplineConnectionRouter */ \"./src/layout/connection/SplineConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/FanConnectionRouter */ \"./src/layout/connection/FanConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/MazeConnectionRouter */ \"./src/layout/connection/MazeConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/MuteableManhattanConnectionRouter */ \"./src/layout/connection/MuteableManhattanConnectionRouter.js\");\n__webpack_require__(/*! ./layout/connection/SketchConnectionRouter */ \"./src/layout/connection/SketchConnectionRouter.js\");\n__webpack_require__(/*! ./layout/mesh/MeshLayouter */ \"./src/layout/mesh/MeshLayouter.js\");\n__webpack_require__(/*! ./layout/mesh/ExplodeLayouter */ \"./src/layout/mesh/ExplodeLayouter.js\");\n__webpack_require__(/*! ./layout/mesh/ProposedMeshChange */ \"./src/layout/mesh/ProposedMeshChange.js\");\n__webpack_require__(/*! ./layout/locator/Locator */ \"./src/layout/locator/Locator.js\");\n__webpack_require__(/*! ./layout/locator/PortLocator */ \"./src/layout/locator/PortLocator.js\");\n__webpack_require__(/*! ./layout/locator/DraggableLocator */ \"./src/layout/locator/DraggableLocator.js\");\n__webpack_require__(/*! ./layout/locator/SmartDraggableLocator */ \"./src/layout/locator/SmartDraggableLocator.js\");\n__webpack_require__(/*! ./layout/locator/XYAbsPortLocator */ \"./src/layout/locator/XYAbsPortLocator.js\");\n__webpack_require__(/*! ./layout/locator/XYRelPortLocator */ \"./src/layout/locator/XYRelPortLocator.js\");\n__webpack_require__(/*! ./layout/locator/InputPortLocator */ \"./src/layout/locator/InputPortLocator.js\");\n__webpack_require__(/*! ./layout/locator/OutputPortLocator */ \"./src/layout/locator/OutputPortLocator.js\");\n__webpack_require__(/*! ./layout/locator/ConnectionLocator */ \"./src/layout/locator/ConnectionLocator.js\");\n__webpack_require__(/*! ./layout/locator/ManhattanMidpointLocator */ \"./src/layout/locator/ManhattanMidpointLocator.js\");\n__webpack_require__(/*! ./layout/locator/PolylineMidpointLocator */ \"./src/layout/locator/PolylineMidpointLocator.js\");\n__webpack_require__(/*! ./layout/locator/ParallelMidpointLocator */ \"./src/layout/locator/ParallelMidpointLocator.js\");\n__webpack_require__(/*! ./layout/locator/TopLocator */ \"./src/layout/locator/TopLocator.js\");\n__webpack_require__(/*! ./layout/locator/BottomLocator */ \"./src/layout/locator/BottomLocator.js\");\n__webpack_require__(/*! ./layout/locator/LeftLocator */ \"./src/layout/locator/LeftLocator.js\");\n__webpack_require__(/*! ./layout/locator/RightLocator */ \"./src/layout/locator/RightLocator.js\");\n__webpack_require__(/*! ./layout/locator/CenterLocator */ \"./src/layout/locator/CenterLocator.js\");\n__webpack_require__(/*! ./policy/EditPolicy */ \"./src/policy/EditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/CanvasPolicy */ \"./src/policy/canvas/CanvasPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ZoomPolicy */ \"./src/policy/canvas/ZoomPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/WheelZoomPolicy */ \"./src/policy/canvas/WheelZoomPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/KeyboardPolicy */ \"./src/policy/canvas/KeyboardPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/DefaultKeyboardPolicy */ \"./src/policy/canvas/DefaultKeyboardPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ExtendedKeyboardPolicy */ \"./src/policy/canvas/ExtendedKeyboardPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SelectionPolicy */ \"./src/policy/canvas/SelectionPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SingleSelectionPolicy */ \"./src/policy/canvas/SingleSelectionPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/GhostMoveSelectionPolicy */ \"./src/policy/canvas/GhostMoveSelectionPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/PanningSelectionPolicy */ \"./src/policy/canvas/PanningSelectionPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/BoundingboxSelectionPolicy */ \"./src/policy/canvas/BoundingboxSelectionPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ReadOnlySelectionPolicy */ \"./src/policy/canvas/ReadOnlySelectionPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/DecorationPolicy */ \"./src/policy/canvas/DecorationPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/FadeoutDecorationPolicy */ \"./src/policy/canvas/FadeoutDecorationPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/CoronaDecorationPolicy */ \"./src/policy/canvas/CoronaDecorationPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToEditPolicy */ \"./src/policy/canvas/SnapToEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ShowDimetricGridEditPolicy */ \"./src/policy/canvas/ShowDimetricGridEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToDimetricGridEditPolicy */ \"./src/policy/canvas/SnapToDimetricGridEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ShowGridEditPolicy */ \"./src/policy/canvas/ShowGridEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToGridEditPolicy */ \"./src/policy/canvas/SnapToGridEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ShowDotEditPolicy */ \"./src/policy/canvas/ShowDotEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/ShowChessboardEditPolicy */ \"./src/policy/canvas/ShowChessboardEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToGeometryEditPolicy */ \"./src/policy/canvas/SnapToGeometryEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToVerticesEditPolicy */ \"./src/policy/canvas/SnapToVerticesEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToInBetweenEditPolicy */ \"./src/policy/canvas/SnapToInBetweenEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/SnapToCenterEditPolicy */ \"./src/policy/canvas/SnapToCenterEditPolicy.js\");\n__webpack_require__(/*! ./policy/canvas/DropInterceptorPolicy */ \"./src/policy/canvas/DropInterceptorPolicy.js\");\n__webpack_require__(/*! ./policy/connection/ConnectionCreatePolicy */ \"./src/policy/connection/ConnectionCreatePolicy.js\");\n__webpack_require__(/*! ./policy/connection/ComposedConnectionCreatePolicy */ \"./src/policy/connection/ComposedConnectionCreatePolicy.js\");\n__webpack_require__(/*! ./policy/connection/ClickConnectionCreatePolicy */ \"./src/policy/connection/ClickConnectionCreatePolicy.js\");\n__webpack_require__(/*! ./policy/connection/OrthogonalConnectionCreatePolicy */ \"./src/policy/connection/OrthogonalConnectionCreatePolicy.js\");\n__webpack_require__(/*! ./policy/connection/DragConnectionCreatePolicy */ \"./src/policy/connection/DragConnectionCreatePolicy.js\");\n__webpack_require__(/*! ./policy/figure/FigureEditPolicy */ \"./src/policy/figure/FigureEditPolicy.js\");\n__webpack_require__(/*! ./policy/figure/DragDropEditPolicy */ \"./src/policy/figure/DragDropEditPolicy.js\");\n__webpack_require__(/*! ./policy/figure/RegionEditPolicy */ \"./src/policy/figure/RegionEditPolicy.js\");\n__webpack_require__(/*! ./policy/figure/HorizontalEditPolicy */ \"./src/policy/figure/HorizontalEditPolicy.js\");\n__webpack_require__(/*! ./policy/figure/VerticalEditPolicy */ \"./src/policy/figure/VerticalEditPolicy.js\");\n__webpack_require__(/*! ./policy/figure/SelectionPolicy */ \"./src/policy/figure/SelectionPolicy.js\");\n__webpack_require__(/*! ./policy/figure/SelectionFeedbackPolicy */ \"./src/policy/figure/SelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/ResizeSelectionFeedbackPolicy */ \"./src/policy/figure/ResizeSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/RectangleSelectionFeedbackPolicy */ \"./src/policy/figure/RectangleSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/BigRectangleSelectionFeedbackPolicy */ \"./src/policy/figure/BigRectangleSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/RoundRectangleSelectionFeedbackPolicy */ \"./src/policy/figure/RoundRectangleSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/BusSelectionFeedbackPolicy */ \"./src/policy/figure/BusSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/WidthSelectionFeedbackPolicy */ \"./src/policy/figure/WidthSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/VBusSelectionFeedbackPolicy */ \"./src/policy/figure/VBusSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/HBusSelectionFeedbackPolicy */ \"./src/policy/figure/HBusSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/AntSelectionFeedbackPolicy */ \"./src/policy/figure/AntSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/GlowSelectionFeedbackPolicy */ \"./src/policy/figure/GlowSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/SlimSelectionFeedbackPolicy */ \"./src/policy/figure/SlimSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/figure/VertexSelectionFeedbackPolicy */ \"./src/policy/figure/VertexSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/line/LineSelectionFeedbackPolicy */ \"./src/policy/line/LineSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/line/VertexSelectionFeedbackPolicy */ \"./src/policy/line/VertexSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/line/OrthogonalSelectionFeedbackPolicy */ \"./src/policy/line/OrthogonalSelectionFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/port/PortFeedbackPolicy */ \"./src/policy/port/PortFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/port/ElasticStrapFeedbackPolicy */ \"./src/policy/port/ElasticStrapFeedbackPolicy.js\");\n__webpack_require__(/*! ./policy/port/IntrusivePortsFeedbackPolicy */ \"./src/policy/port/IntrusivePortsFeedbackPolicy.js\");\n__webpack_require__(/*! ./Configuration */ \"./src/Configuration.js\");\n__webpack_require__(/*! ./HeadlessCanvas */ \"./src/HeadlessCanvas.js\");\n__webpack_require__(/*! ./Canvas */ \"./src/Canvas.js\");\n__webpack_require__(/*! ./Selection */ \"./src/Selection.js\");\n__webpack_require__(/*! ./Figure */ \"./src/Figure.js\");\n__webpack_require__(/*! ./shape/node/Node */ \"./src/shape/node/Node.js\");\n__webpack_require__(/*! ./VectorFigure */ \"./src/VectorFigure.js\");\n__webpack_require__(/*! ./shape/basic/Rectangle */ \"./src/shape/basic/Rectangle.js\");\n__webpack_require__(/*! ./SetFigure */ \"./src/SetFigure.js\");\n__webpack_require__(/*! ./SVGFigure */ \"./src/SVGFigure.js\");\n__webpack_require__(/*! ./shape/node/Hub */ \"./src/shape/node/Hub.js\");\n__webpack_require__(/*! ./shape/node/HorizontalBus */ \"./src/shape/node/HorizontalBus.js\");\n__webpack_require__(/*! ./shape/node/VerticalBus */ \"./src/shape/node/VerticalBus.js\");\n__webpack_require__(/*! ./shape/node/Fulcrum */ \"./src/shape/node/Fulcrum.js\");\n__webpack_require__(/*! ./shape/basic/Arc */ \"./src/shape/basic/Arc.js\");\n__webpack_require__(/*! ./shape/basic/Oval */ \"./src/shape/basic/Oval.js\");\n__webpack_require__(/*! ./shape/basic/Circle */ \"./src/shape/basic/Circle.js\");\n__webpack_require__(/*! ./shape/basic/Label */ \"./src/shape/basic/Label.js\");\n__webpack_require__(/*! ./shape/basic/Text */ \"./src/shape/basic/Text.js\");\n__webpack_require__(/*! ./shape/basic/Line */ \"./src/shape/basic/Line.js\");\n__webpack_require__(/*! ./shape/basic/PolyLine */ \"./src/shape/basic/PolyLine.js\");\n__webpack_require__(/*! ./shape/basic/Image */ \"./src/shape/basic/Image.js\");\n__webpack_require__(/*! ./shape/basic/Polygon */ \"./src/shape/basic/Polygon.js\");\n__webpack_require__(/*! ./shape/basic/Diamond */ \"./src/shape/basic/Diamond.js\");\n__webpack_require__(/*! ./shape/dimetric/Rectangle */ \"./src/shape/dimetric/Rectangle.js\");\n__webpack_require__(/*! ./shape/composite/Composite */ \"./src/shape/composite/Composite.js\");\n__webpack_require__(/*! ./shape/composite/StrongComposite */ \"./src/shape/composite/StrongComposite.js\");\n__webpack_require__(/*! ./shape/composite/Group */ \"./src/shape/composite/Group.js\");\n__webpack_require__(/*! ./shape/composite/Jailhouse */ \"./src/shape/composite/Jailhouse.js\");\n__webpack_require__(/*! ./shape/composite/WeakComposite */ \"./src/shape/composite/WeakComposite.js\");\n__webpack_require__(/*! ./shape/composite/Raft */ \"./src/shape/composite/Raft.js\");\n__webpack_require__(/*! ./Connection */ \"./src/Connection.js\");\n__webpack_require__(/*! ./VectorFigure */ \"./src/VectorFigure.js\");\n__webpack_require__(/*! ./ResizeHandle */ \"./src/ResizeHandle.js\");\n__webpack_require__(/*! ./shape/basic/LineResizeHandle */ \"./src/shape/basic/LineResizeHandle.js\");\n__webpack_require__(/*! ./shape/basic/LineStartResizeHandle */ \"./src/shape/basic/LineStartResizeHandle.js\");\n__webpack_require__(/*! ./shape/basic/LineEndResizeHandle */ \"./src/shape/basic/LineEndResizeHandle.js\");\n__webpack_require__(/*! ./shape/basic/VertexResizeHandle */ \"./src/shape/basic/VertexResizeHandle.js\");\n__webpack_require__(/*! ./shape/basic/GhostVertexResizeHandle */ \"./src/shape/basic/GhostVertexResizeHandle.js\");\n__webpack_require__(/*! ./Port */ \"./src/Port.js\");\n__webpack_require__(/*! ./InputPort */ \"./src/InputPort.js\");\n__webpack_require__(/*! ./OutputPort */ \"./src/OutputPort.js\");\n__webpack_require__(/*! ./HybridPort */ \"./src/HybridPort.js\");\n__webpack_require__(/*! ./layout/anchor/ConnectionAnchor */ \"./src/layout/anchor/ConnectionAnchor.js\");\n__webpack_require__(/*! ./layout/anchor/ChopboxConnectionAnchor */ \"./src/layout/anchor/ChopboxConnectionAnchor.js\");\n__webpack_require__(/*! ./layout/anchor/FanConnectionAnchor */ \"./src/layout/anchor/FanConnectionAnchor.js\");\n__webpack_require__(/*! ./layout/anchor/ShortesPathConnectionAnchor */ \"./src/layout/anchor/ShortesPathConnectionAnchor.js\");\n__webpack_require__(/*! ./layout/anchor/CenterEdgeConnectionAnchor */ \"./src/layout/anchor/CenterEdgeConnectionAnchor.js\");\n__webpack_require__(/*! ./shape/arrow/CalligrapherArrowLeft */ \"./src/shape/arrow/CalligrapherArrowLeft.js\");\n__webpack_require__(/*! ./shape/arrow/CalligrapherArrowDownLeft */ \"./src/shape/arrow/CalligrapherArrowDownLeft.js\");\n__webpack_require__(/*! ./shape/node/Start */ \"./src/shape/node/Start.js\");\n__webpack_require__(/*! ./shape/node/End */ \"./src/shape/node/End.js\");\n__webpack_require__(/*! ./shape/node/Between */ \"./src/shape/node/Between.js\");\n__webpack_require__(/*! ./shape/note/PostIt */ \"./src/shape/note/PostIt.js\");\n__webpack_require__(/*! ./shape/flowchart/Document */ \"./src/shape/flowchart/Document.js\");\n__webpack_require__(/*! ./shape/widget/Widget */ \"./src/shape/widget/Widget.js\");\n__webpack_require__(/*! ./shape/widget/Slider */ \"./src/shape/widget/Slider.js\");\n__webpack_require__(/*! ./shape/diagram/Diagram */ \"./src/shape/diagram/Diagram.js\");\n__webpack_require__(/*! ./shape/diagram/Pie */ \"./src/shape/diagram/Pie.js\");\n__webpack_require__(/*! ./shape/diagram/Sparkline */ \"./src/shape/diagram/Sparkline.js\");\n__webpack_require__(/*! ./shape/analog/OpAmp */ \"./src/shape/analog/OpAmp.js\");\n__webpack_require__(/*! ./shape/analog/ResistorBridge */ \"./src/shape/analog/ResistorBridge.js\");\n__webpack_require__(/*! ./shape/analog/ResistorVertical */ \"./src/shape/analog/ResistorVertical.js\");\n__webpack_require__(/*! ./shape/analog/VoltageSupplyHorizontal */ \"./src/shape/analog/VoltageSupplyHorizontal.js\");\n__webpack_require__(/*! ./shape/analog/VoltageSupplyVertical */ \"./src/shape/analog/VoltageSupplyVertical.js\");\n__webpack_require__(/*! ./shape/layout/Layout */ \"./src/shape/layout/Layout.js\");\n__webpack_require__(/*! ./shape/layout/HorizontalLayout */ \"./src/shape/layout/HorizontalLayout.js\");\n__webpack_require__(/*! ./shape/layout/VerticalLayout */ \"./src/shape/layout/VerticalLayout.js\");\n__webpack_require__(/*! ./shape/layout/TableLayout */ \"./src/shape/layout/TableLayout.js\");\n__webpack_require__(/*! ./shape/layout/FlexGridLayout */ \"./src/shape/layout/FlexGridLayout.js\");\n__webpack_require__(/*! ./shape/layout/StackLayout */ \"./src/shape/layout/StackLayout.js\");\n__webpack_require__(/*! ./shape/icon/Icon */ \"./src/shape/icon/Icon.js\");\n__webpack_require__(/*! ./shape/icon/Thunder */ \"./src/shape/icon/Thunder.js\");\n__webpack_require__(/*! ./shape/icon/Snow */ \"./src/shape/icon/Snow.js\");\n__webpack_require__(/*! ./shape/icon/Hail */ \"./src/shape/icon/Hail.js\");\n__webpack_require__(/*! ./shape/icon/Rain */ \"./src/shape/icon/Rain.js\");\n__webpack_require__(/*! ./shape/icon/Cloudy */ \"./src/shape/icon/Cloudy.js\");\n__webpack_require__(/*! ./shape/icon/Sun */ \"./src/shape/icon/Sun.js\");\n__webpack_require__(/*! ./shape/icon/Undo */ \"./src/shape/icon/Undo.js\");\n__webpack_require__(/*! ./shape/icon/Detour */ \"./src/shape/icon/Detour.js\");\n__webpack_require__(/*! ./shape/icon/Merge */ \"./src/shape/icon/Merge.js\");\n__webpack_require__(/*! ./shape/icon/Split */ \"./src/shape/icon/Split.js\");\n__webpack_require__(/*! ./shape/icon/Fork */ \"./src/shape/icon/Fork.js\");\n__webpack_require__(/*! ./shape/icon/ForkAlt */ \"./src/shape/icon/ForkAlt.js\");\n__webpack_require__(/*! ./shape/icon/Exchange */ \"./src/shape/icon/Exchange.js\");\n__webpack_require__(/*! ./shape/icon/Shuffle */ \"./src/shape/icon/Shuffle.js\");\n__webpack_require__(/*! ./shape/icon/Refresh */ \"./src/shape/icon/Refresh.js\");\n__webpack_require__(/*! ./shape/icon/Ccw */ \"./src/shape/icon/Ccw.js\");\n__webpack_require__(/*! ./shape/icon/Acw */ \"./src/shape/icon/Acw.js\");\n__webpack_require__(/*! ./shape/icon/Contract */ \"./src/shape/icon/Contract.js\");\n__webpack_require__(/*! ./shape/icon/Expand */ \"./src/shape/icon/Expand.js\");\n__webpack_require__(/*! ./shape/icon/Stop */ \"./src/shape/icon/Stop.js\");\n__webpack_require__(/*! ./shape/icon/End */ \"./src/shape/icon/End.js\");\n__webpack_require__(/*! ./shape/icon/Start */ \"./src/shape/icon/Start.js\");\n__webpack_require__(/*! ./shape/icon/Ff */ \"./src/shape/icon/Ff.js\");\n__webpack_require__(/*! ./shape/icon/Rw */ \"./src/shape/icon/Rw.js\");\n__webpack_require__(/*! ./shape/icon/ArrowRight */ \"./src/shape/icon/ArrowRight.js\");\n__webpack_require__(/*! ./shape/icon/ArrowLeft */ \"./src/shape/icon/ArrowLeft.js\");\n__webpack_require__(/*! ./shape/icon/ArrowUp */ \"./src/shape/icon/ArrowUp.js\");\n__webpack_require__(/*! ./shape/icon/ArrowDown */ \"./src/shape/icon/ArrowDown.js\");\n__webpack_require__(/*! ./shape/icon/ArrowLeft2 */ \"./src/shape/icon/ArrowLeft2.js\");\n__webpack_require__(/*! ./shape/icon/ArrowRight2 */ \"./src/shape/icon/ArrowRight2.js\");\n__webpack_require__(/*! ./shape/icon/Smile2 */ \"./src/shape/icon/Smile2.js\");\n__webpack_require__(/*! ./shape/icon/Smile */ \"./src/shape/icon/Smile.js\");\n__webpack_require__(/*! ./shape/icon/Alarm */ \"./src/shape/icon/Alarm.js\");\n__webpack_require__(/*! ./shape/icon/Clock */ \"./src/shape/icon/Clock.js\");\n__webpack_require__(/*! ./shape/icon/StopWatch */ \"./src/shape/icon/StopWatch.js\");\n__webpack_require__(/*! ./shape/icon/History */ \"./src/shape/icon/History.js\");\n__webpack_require__(/*! ./shape/icon/Future */ \"./src/shape/icon/Future.js\");\n__webpack_require__(/*! ./shape/icon/GlobeAlt2 */ \"./src/shape/icon/GlobeAlt2.js\");\n__webpack_require__(/*! ./shape/icon/GlobeAlt */ \"./src/shape/icon/GlobeAlt.js\");\n__webpack_require__(/*! ./shape/icon/Globe */ \"./src/shape/icon/Globe.js\");\n__webpack_require__(/*! ./shape/icon/Warning */ \"./src/shape/icon/Warning.js\");\n__webpack_require__(/*! ./shape/icon/Code */ \"./src/shape/icon/Code.js\");\n__webpack_require__(/*! ./shape/icon/Pensil */ \"./src/shape/icon/Pensil.js\");\n__webpack_require__(/*! ./shape/icon/Pen */ \"./src/shape/icon/Pen.js\");\n__webpack_require__(/*! ./shape/icon/Plus */ \"./src/shape/icon/Plus.js\");\n__webpack_require__(/*! ./shape/icon/Minus */ \"./src/shape/icon/Minus.js\");\n__webpack_require__(/*! ./shape/icon/TShirt */ \"./src/shape/icon/TShirt.js\");\n__webpack_require__(/*! ./shape/icon/Sticker */ \"./src/shape/icon/Sticker.js\");\n__webpack_require__(/*! ./shape/icon/Page2 */ \"./src/shape/icon/Page2.js\");\n__webpack_require__(/*! ./shape/icon/Page */ \"./src/shape/icon/Page.js\");\n__webpack_require__(/*! ./shape/icon/Landscape1 */ \"./src/shape/icon/Landscape1.js\");\n__webpack_require__(/*! ./shape/icon/Landscape2 */ \"./src/shape/icon/Landscape2.js\");\n__webpack_require__(/*! ./shape/icon/Plugin */ \"./src/shape/icon/Plugin.js\");\n__webpack_require__(/*! ./shape/icon/Bookmark */ \"./src/shape/icon/Bookmark.js\");\n__webpack_require__(/*! ./shape/icon/Hammer */ \"./src/shape/icon/Hammer.js\");\n__webpack_require__(/*! ./shape/icon/Users */ \"./src/shape/icon/Users.js\");\n__webpack_require__(/*! ./shape/icon/User */ \"./src/shape/icon/User.js\");\n__webpack_require__(/*! ./shape/icon/Customer */ \"./src/shape/icon/Customer.js\");\n__webpack_require__(/*! ./shape/icon/Employee */ \"./src/shape/icon/Employee.js\");\n__webpack_require__(/*! ./shape/icon/Anonymous */ \"./src/shape/icon/Anonymous.js\");\n__webpack_require__(/*! ./shape/icon/Skull */ \"./src/shape/icon/Skull.js\");\n__webpack_require__(/*! ./shape/icon/Mail */ \"./src/shape/icon/Mail.js\");\n__webpack_require__(/*! ./shape/icon/Picture */ \"./src/shape/icon/Picture.js\");\n__webpack_require__(/*! ./shape/icon/Bubble */ \"./src/shape/icon/Bubble.js\");\n__webpack_require__(/*! ./shape/icon/CodeTalk */ \"./src/shape/icon/CodeTalk.js\");\n__webpack_require__(/*! ./shape/icon/Talkq */ \"./src/shape/icon/Talkq.js\");\n__webpack_require__(/*! ./shape/icon/Talke */ \"./src/shape/icon/Talke.js\");\n__webpack_require__(/*! ./shape/icon/Home */ \"./src/shape/icon/Home.js\");\n__webpack_require__(/*! ./shape/icon/Lock */ \"./src/shape/icon/Lock.js\");\n__webpack_require__(/*! ./shape/icon/Clip */ \"./src/shape/icon/Clip.js\");\n__webpack_require__(/*! ./shape/icon/Star */ \"./src/shape/icon/Star.js\");\n__webpack_require__(/*! ./shape/icon/StarOff */ \"./src/shape/icon/StarOff.js\");\n__webpack_require__(/*! ./shape/icon/Star2 */ \"./src/shape/icon/Star2.js\");\n__webpack_require__(/*! ./shape/icon/Star2Off */ \"./src/shape/icon/Star2Off.js\");\n__webpack_require__(/*! ./shape/icon/Star3 */ \"./src/shape/icon/Star3.js\");\n__webpack_require__(/*! ./shape/icon/Star3Off */ \"./src/shape/icon/Star3Off.js\");\n__webpack_require__(/*! ./shape/icon/Chat */ \"./src/shape/icon/Chat.js\");\n__webpack_require__(/*! ./shape/icon/Quote */ \"./src/shape/icon/Quote.js\");\n__webpack_require__(/*! ./shape/icon/Gear2 */ \"./src/shape/icon/Gear2.js\");\n__webpack_require__(/*! ./shape/icon/Gear */ \"./src/shape/icon/Gear.js\");\n__webpack_require__(/*! ./shape/icon/Wrench */ \"./src/shape/icon/Wrench.js\");\n__webpack_require__(/*! ./shape/icon/Wrench2 */ \"./src/shape/icon/Wrench2.js\");\n__webpack_require__(/*! ./shape/icon/Wrench3 */ \"./src/shape/icon/Wrench3.js\");\n__webpack_require__(/*! ./shape/icon/ScrewDriver */ \"./src/shape/icon/ScrewDriver.js\");\n__webpack_require__(/*! ./shape/icon/HammerAndScrewDriver */ \"./src/shape/icon/HammerAndScrewDriver.js\");\n__webpack_require__(/*! ./shape/icon/Magic */ \"./src/shape/icon/Magic.js\");\n__webpack_require__(/*! ./shape/icon/Download */ \"./src/shape/icon/Download.js\");\n__webpack_require__(/*! ./shape/icon/View */ \"./src/shape/icon/View.js\");\n__webpack_require__(/*! ./shape/icon/Noview */ \"./src/shape/icon/Noview.js\");\n__webpack_require__(/*! ./shape/icon/Cloud */ \"./src/shape/icon/Cloud.js\");\n__webpack_require__(/*! ./shape/icon/Cloud2 */ \"./src/shape/icon/Cloud2.js\");\n__webpack_require__(/*! ./shape/icon/CloudDown */ \"./src/shape/icon/CloudDown.js\");\n__webpack_require__(/*! ./shape/icon/CloudUp */ \"./src/shape/icon/CloudUp.js\");\n__webpack_require__(/*! ./shape/icon/Location */ \"./src/shape/icon/Location.js\");\n__webpack_require__(/*! ./shape/icon/Volume0 */ \"./src/shape/icon/Volume0.js\");\n__webpack_require__(/*! ./shape/icon/Volume1 */ \"./src/shape/icon/Volume1.js\");\n__webpack_require__(/*! ./shape/icon/Volume2 */ \"./src/shape/icon/Volume2.js\");\n__webpack_require__(/*! ./shape/icon/Volume3 */ \"./src/shape/icon/Volume3.js\");\n__webpack_require__(/*! ./shape/icon/Key */ \"./src/shape/icon/Key.js\");\n__webpack_require__(/*! ./shape/icon/Ruler */ \"./src/shape/icon/Ruler.js\");\n__webpack_require__(/*! ./shape/icon/Power */ \"./src/shape/icon/Power.js\");\n__webpack_require__(/*! ./shape/icon/Unlock */ \"./src/shape/icon/Unlock.js\");\n__webpack_require__(/*! ./shape/icon/Flag */ \"./src/shape/icon/Flag.js\");\n__webpack_require__(/*! ./shape/icon/Tag */ \"./src/shape/icon/Tag.js\");\n__webpack_require__(/*! ./shape/icon/Search */ \"./src/shape/icon/Search.js\");\n__webpack_require__(/*! ./shape/icon/ZoomOut */ \"./src/shape/icon/ZoomOut.js\");\n__webpack_require__(/*! ./shape/icon/ZoomIn */ \"./src/shape/icon/ZoomIn.js\");\n__webpack_require__(/*! ./shape/icon/Cross */ \"./src/shape/icon/Cross.js\");\n__webpack_require__(/*! ./shape/icon/Check */ \"./src/shape/icon/Check.js\");\n__webpack_require__(/*! ./shape/icon/Settings */ \"./src/shape/icon/Settings.js\");\n__webpack_require__(/*! ./shape/icon/SettingsAlt */ \"./src/shape/icon/SettingsAlt.js\");\n__webpack_require__(/*! ./shape/icon/Feed */ \"./src/shape/icon/Feed.js\");\n__webpack_require__(/*! ./shape/icon/Bug */ \"./src/shape/icon/Bug.js\");\n__webpack_require__(/*! ./shape/icon/Link */ \"./src/shape/icon/Link.js\");\n__webpack_require__(/*! ./shape/icon/Calendar */ \"./src/shape/icon/Calendar.js\");\n__webpack_require__(/*! ./shape/icon/Picker */ \"./src/shape/icon/Picker.js\");\n__webpack_require__(/*! ./shape/icon/No */ \"./src/shape/icon/No.js\");\n__webpack_require__(/*! ./shape/icon/CommandLine */ \"./src/shape/icon/CommandLine.js\");\n__webpack_require__(/*! ./shape/icon/Photo */ \"./src/shape/icon/Photo.js\");\n__webpack_require__(/*! ./shape/icon/Printer */ \"./src/shape/icon/Printer.js\");\n__webpack_require__(/*! ./shape/icon/Export */ \"./src/shape/icon/Export.js\");\n__webpack_require__(/*! ./shape/icon/Import */ \"./src/shape/icon/Import.js\");\n__webpack_require__(/*! ./shape/icon/Run */ \"./src/shape/icon/Run.js\");\n__webpack_require__(/*! ./shape/icon/Magnet */ \"./src/shape/icon/Magnet.js\");\n__webpack_require__(/*! ./shape/icon/NoMagnet */ \"./src/shape/icon/NoMagnet.js\");\n__webpack_require__(/*! ./shape/icon/ReflectH */ \"./src/shape/icon/ReflectH.js\");\n__webpack_require__(/*! ./shape/icon/ReflectV */ \"./src/shape/icon/ReflectV.js\");\n__webpack_require__(/*! ./shape/icon/Resize2 */ \"./src/shape/icon/Resize2.js\");\n__webpack_require__(/*! ./shape/icon/Rotate */ \"./src/shape/icon/Rotate.js\");\n__webpack_require__(/*! ./shape/icon/Connect */ \"./src/shape/icon/Connect.js\");\n__webpack_require__(/*! ./shape/icon/Disconnect */ \"./src/shape/icon/Disconnect.js\");\n__webpack_require__(/*! ./shape/icon/Folder */ \"./src/shape/icon/Folder.js\");\n__webpack_require__(/*! ./shape/icon/Man */ \"./src/shape/icon/Man.js\");\n__webpack_require__(/*! ./shape/icon/Woman */ \"./src/shape/icon/Woman.js\");\n__webpack_require__(/*! ./shape/icon/People */ \"./src/shape/icon/People.js\");\n__webpack_require__(/*! ./shape/icon/Parent */ \"./src/shape/icon/Parent.js\");\n__webpack_require__(/*! ./shape/icon/Notebook */ \"./src/shape/icon/Notebook.js\");\n__webpack_require__(/*! ./shape/icon/Diagram */ \"./src/shape/icon/Diagram.js\");\n__webpack_require__(/*! ./shape/icon/BarChart */ \"./src/shape/icon/BarChart.js\");\n__webpack_require__(/*! ./shape/icon/PieChart */ \"./src/shape/icon/PieChart.js\");\n__webpack_require__(/*! ./shape/icon/LineChart */ \"./src/shape/icon/LineChart.js\");\n__webpack_require__(/*! ./shape/icon/Apps */ \"./src/shape/icon/Apps.js\");\n__webpack_require__(/*! ./shape/icon/Locked */ \"./src/shape/icon/Locked.js\");\n__webpack_require__(/*! ./shape/icon/Ppt */ \"./src/shape/icon/Ppt.js\");\n__webpack_require__(/*! ./shape/icon/Lab */ \"./src/shape/icon/Lab.js\");\n__webpack_require__(/*! ./shape/icon/Umbrella */ \"./src/shape/icon/Umbrella.js\");\n__webpack_require__(/*! ./shape/icon/Dry */ \"./src/shape/icon/Dry.js\");\n__webpack_require__(/*! ./shape/icon/Ipad */ \"./src/shape/icon/Ipad.js\");\n__webpack_require__(/*! ./shape/icon/Iphone */ \"./src/shape/icon/Iphone.js\");\n__webpack_require__(/*! ./shape/icon/Jigsaw */ \"./src/shape/icon/Jigsaw.js\");\n__webpack_require__(/*! ./shape/icon/Lamp */ \"./src/shape/icon/Lamp.js\");\n__webpack_require__(/*! ./shape/icon/Lamp_alt */ \"./src/shape/icon/Lamp_alt.js\");\n__webpack_require__(/*! ./shape/icon/Video */ \"./src/shape/icon/Video.js\");\n__webpack_require__(/*! ./shape/icon/Palm */ \"./src/shape/icon/Palm.js\");\n__webpack_require__(/*! ./shape/icon/Fave */ \"./src/shape/icon/Fave.js\");\n__webpack_require__(/*! ./shape/icon/Help */ \"./src/shape/icon/Help.js\");\n__webpack_require__(/*! ./shape/icon/Crop */ \"./src/shape/icon/Crop.js\");\n__webpack_require__(/*! ./shape/icon/BioHazard */ \"./src/shape/icon/BioHazard.js\");\n__webpack_require__(/*! ./shape/icon/WheelChair */ \"./src/shape/icon/WheelChair.js\");\n__webpack_require__(/*! ./shape/icon/Mic */ \"./src/shape/icon/Mic.js\");\n__webpack_require__(/*! ./shape/icon/MicMute */ \"./src/shape/icon/MicMute.js\");\n__webpack_require__(/*! ./shape/icon/IMac */ \"./src/shape/icon/IMac.js\");\n__webpack_require__(/*! ./shape/icon/Pc */ \"./src/shape/icon/Pc.js\");\n__webpack_require__(/*! ./shape/icon/Cube */ \"./src/shape/icon/Cube.js\");\n__webpack_require__(/*! ./shape/icon/FullCube */ \"./src/shape/icon/FullCube.js\");\n__webpack_require__(/*! ./shape/icon/Font */ \"./src/shape/icon/Font.js\");\n__webpack_require__(/*! ./shape/icon/Trash */ \"./src/shape/icon/Trash.js\");\n__webpack_require__(/*! ./shape/icon/NewWindow */ \"./src/shape/icon/NewWindow.js\");\n__webpack_require__(/*! ./shape/icon/DockRight */ \"./src/shape/icon/DockRight.js\");\n__webpack_require__(/*! ./shape/icon/DockLeft */ \"./src/shape/icon/DockLeft.js\");\n__webpack_require__(/*! ./shape/icon/DockBottom */ \"./src/shape/icon/DockBottom.js\");\n__webpack_require__(/*! ./shape/icon/DockTop */ \"./src/shape/icon/DockTop.js\");\n__webpack_require__(/*! ./shape/icon/Pallete */ \"./src/shape/icon/Pallete.js\");\n__webpack_require__(/*! ./shape/icon/Cart */ \"./src/shape/icon/Cart.js\");\n__webpack_require__(/*! ./shape/icon/Glasses */ \"./src/shape/icon/Glasses.js\");\n__webpack_require__(/*! ./shape/icon/Package */ \"./src/shape/icon/Package.js\");\n__webpack_require__(/*! ./shape/icon/Book */ \"./src/shape/icon/Book.js\");\n__webpack_require__(/*! ./shape/icon/Books */ \"./src/shape/icon/Books.js\");\n__webpack_require__(/*! ./shape/icon/Icons */ \"./src/shape/icon/Icons.js\");\n__webpack_require__(/*! ./shape/icon/List */ \"./src/shape/icon/List.js\");\n__webpack_require__(/*! ./shape/icon/Db */ \"./src/shape/icon/Db.js\");\n__webpack_require__(/*! ./shape/icon/Paper */ \"./src/shape/icon/Paper.js\");\n__webpack_require__(/*! ./shape/icon/TakeOff */ \"./src/shape/icon/TakeOff.js\");\n__webpack_require__(/*! ./shape/icon/Landing */ \"./src/shape/icon/Landing.js\");\n__webpack_require__(/*! ./shape/icon/Plane */ \"./src/shape/icon/Plane.js\");\n__webpack_require__(/*! ./shape/icon/Phone */ \"./src/shape/icon/Phone.js\");\n__webpack_require__(/*! ./shape/icon/HangUp */ \"./src/shape/icon/HangUp.js\");\n__webpack_require__(/*! ./shape/icon/SlideShare */ \"./src/shape/icon/SlideShare.js\");\n__webpack_require__(/*! ./shape/icon/Twitter */ \"./src/shape/icon/Twitter.js\");\n__webpack_require__(/*! ./shape/icon/TwitterBird */ \"./src/shape/icon/TwitterBird.js\");\n__webpack_require__(/*! ./shape/icon/Skype */ \"./src/shape/icon/Skype.js\");\n__webpack_require__(/*! ./shape/icon/Windows */ \"./src/shape/icon/Windows.js\");\n__webpack_require__(/*! ./shape/icon/Apple */ \"./src/shape/icon/Apple.js\");\n__webpack_require__(/*! ./shape/icon/Linux */ \"./src/shape/icon/Linux.js\");\n__webpack_require__(/*! ./shape/icon/NodeJs */ \"./src/shape/icon/NodeJs.js\");\n__webpack_require__(/*! ./shape/icon/JQuery */ \"./src/shape/icon/JQuery.js\");\n__webpack_require__(/*! ./shape/icon/Sencha */ \"./src/shape/icon/Sencha.js\");\n__webpack_require__(/*! ./shape/icon/Vim */ \"./src/shape/icon/Vim.js\");\n__webpack_require__(/*! ./shape/icon/InkScape */ \"./src/shape/icon/InkScape.js\");\n__webpack_require__(/*! ./shape/icon/Aumade */ \"./src/shape/icon/Aumade.js\");\n__webpack_require__(/*! ./shape/icon/Firefox */ \"./src/shape/icon/Firefox.js\");\n__webpack_require__(/*! ./shape/icon/Ie */ \"./src/shape/icon/Ie.js\");\n__webpack_require__(/*! ./shape/icon/Ie9 */ \"./src/shape/icon/Ie9.js\");\n__webpack_require__(/*! ./shape/icon/Opera */ \"./src/shape/icon/Opera.js\");\n__webpack_require__(/*! ./shape/icon/Chrome */ \"./src/shape/icon/Chrome.js\");\n__webpack_require__(/*! ./shape/icon/Safari */ \"./src/shape/icon/Safari.js\");\n__webpack_require__(/*! ./shape/icon/LinkedIn */ \"./src/shape/icon/LinkedIn.js\");\n__webpack_require__(/*! ./shape/icon/Flickr */ \"./src/shape/icon/Flickr.js\");\n__webpack_require__(/*! ./shape/icon/GitHub */ \"./src/shape/icon/GitHub.js\");\n__webpack_require__(/*! ./shape/icon/GitHubAlt */ \"./src/shape/icon/GitHubAlt.js\");\n__webpack_require__(/*! ./shape/icon/Raphael */ \"./src/shape/icon/Raphael.js\");\n__webpack_require__(/*! ./shape/icon/GRaphael */ \"./src/shape/icon/GRaphael.js\");\n__webpack_require__(/*! ./shape/icon/Svg */ \"./src/shape/icon/Svg.js\");\n__webpack_require__(/*! ./shape/icon/Usb */ \"./src/shape/icon/Usb.js\");\n__webpack_require__(/*! ./shape/icon/Ethernet */ \"./src/shape/icon/Ethernet.js\");\n__webpack_require__(/*! ./shape/pert/Activity */ \"./src/shape/pert/Activity.js\");\n__webpack_require__(/*! ./shape/pert/Start */ \"./src/shape/pert/Start.js\");\n__webpack_require__(/*! ./shape/state/Start */ \"./src/shape/state/Start.js\");\n__webpack_require__(/*! ./shape/state/End */ \"./src/shape/state/End.js\");\n__webpack_require__(/*! ./shape/state/State */ \"./src/shape/state/State.js\");\n__webpack_require__(/*! ./shape/state/Connection */ \"./src/shape/state/Connection.js\");\n__webpack_require__(/*! ./ui/LabelEditor */ \"./src/ui/LabelEditor.js\");\n__webpack_require__(/*! ./ui/LabelInplaceEditor */ \"./src/ui/LabelInplaceEditor.js\");\n__webpack_require__(/*! ./decoration/connection/Decorator */ \"./src/decoration/connection/Decorator.js\");\n__webpack_require__(/*! ./decoration/connection/ArrowDecorator */ \"./src/decoration/connection/ArrowDecorator.js\");\n__webpack_require__(/*! ./decoration/connection/DiamondDecorator */ \"./src/decoration/connection/DiamondDecorator.js\");\n__webpack_require__(/*! ./decoration/connection/CircleDecorator */ \"./src/decoration/connection/CircleDecorator.js\");\n__webpack_require__(/*! ./decoration/connection/BarDecorator */ \"./src/decoration/connection/BarDecorator.js\");\n__webpack_require__(/*! ./io/Reader */ \"./src/io/Reader.js\");\n__webpack_require__(/*! ./io/Writer */ \"./src/io/Writer.js\");\n__webpack_require__(/*! ./io/svg/Writer */ \"./src/io/svg/Writer.js\");\n__webpack_require__(/*! ./io/png/Writer */ \"./src/io/png/Writer.js\");\n__webpack_require__(/*! ./io/json/Writer */ \"./src/io/json/Writer.js\");\n__webpack_require__(/*! ./io/json/Reader */ \"./src/io/json/Reader.js\");\n\n/***/ }),\n\n/***/ \"./src/io/Reader.js\":\n/*!**************************!*\\\n !*** ./src/io/Reader.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.io.Reader = Class.extend({\n\n /**\r\n * @constructor\r\n * @private\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n *\r\n * Restore the canvas from a given String.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to restore\r\n * @param {Object} document the document to read\r\n *\r\n * @return {draw2d.util.ArrayList} the added elements\r\n * @template\r\n */\n unmarshal: function unmarshal(canvas, document) {\n // do nothing. Inherit classes must implement this method\n }\n\n});\n/**\r\n * @class draw2d.io.Reader\r\n * Template class for general import of a document into the canvas.\r\n *\r\n * @author andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/io/Writer.js\":\n/*!**************************!*\\\n !*** ./src/io/Writer.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.io.Writer = Class.extend({\n\n /**\r\n * @constructor\r\n * @private\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n * Export the content to the implemented data format. Inherit class implements\r\n * content specific writer.\r\n * <br>\r\n * <br>\r\n *\r\n * Method signature has been changed from version 2.10.1 to version 3.0.0.<br>\r\n * The parameter <b>resultCallback</b> is required and new. The method calls\r\n * the callback instead of return the result.\r\n *\r\n * @template\r\n * @since 2.10.1\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Function} resultCallback the method to call on success. The first argument is the result object, the second the base64 content of a corresponding file\r\n * @returns {Object}\r\n *\r\n */\n marshal: function marshal(canvas, resultCallback) {\n // I change the API signature from version 2.10.1 to 3.0.0. Throw an exception\n // if any application not care about this changes.\n if (typeof resultCallback !== \"function\") {\n throw \"Writer.marshal method signature has been change from version 2.10.1 to version 3.0.0. Please consult the API documentation about this issue.\";\n }\n\n resultCallback(\"\", \"\");\n },\n\n /**\r\n * @method\r\n * utility method to format a given XML string.\r\n *\r\n * @param xml\r\n * @returns {String}\r\n */\n formatXml: function formatXml(xml) {\n var formatted = '';\n var reg = new RegExp(\"(>)(<)(\\/*)\", \"g\");\n xml = xml.replace(reg, '$1\\r\\n$2$3');\n var pad = 0;\n xml.split('\\r\\n').forEach(function (node) {\n var indent = 0;\n if (node.match(new RegExp(\".+<\\/\\w[^>]*>$\"))) {\n indent = 0;\n } else if (node.match(new RegExp(\"^<\\/\\w\"))) {\n if (pad != 0) {\n pad -= 1;\n }\n } else if (node.match(new RegExp(\"^<\\w[^>]*[^\\/]>.*$\"))) {\n indent = 1;\n } else {\n indent = 0;\n }\n\n var padding = '';\n for (var i = 0; i < pad; i++) {\n padding += ' ';\n }\n\n formatted += padding + node + '\\r\\n';\n pad += indent;\n });\n\n return formatted;\n }\n});\n/**\r\n * @class draw2d.io.Writer\r\n * Serialize the canvas to an external format. This is only a template/interface class.\r\n * Inherit classes must implement the export format.\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/io/json/Reader.js\":\n/*!*******************************!*\\\n !*** ./src/io/json/Reader.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.io.json.Reader = _packages2.default.io.Reader.extend({\n\n NAME: \"draw2d.io.json.Reader\",\n\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n *\r\n * Restore the canvas from a given JSON object.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to restore\r\n * @param {Object} document the json object to load.\r\n */\n unmarshal: function unmarshal(canvas, json) {\n var _this2 = this;\n\n var _this = this;\n var result = new _packages2.default.util.ArrayList();\n\n if (typeof json === \"string\") {\n json = JSON.parse(json);\n }\n\n var node = null;\n json.forEach(function (element) {\n try {\n var o = _this.createFigureFromElement(element) || _this.createFigureFromType(element.type);\n var source = null;\n var target = null;\n for (var i in element) {\n var val = element[i];\n if (i === \"source\") {\n node = canvas.getFigure(val.node);\n if (node === null) {\n throw \"Source figure with id '\" + val.node + \"' not found\";\n }\n source = node.getPort(val.port);\n if (source === null) {\n throw \"Unable to find source port '\" + val.port + \"' at figure '\" + val.node + \"' to unmarschal '\" + element.type + \"'\";\n }\n } else if (i === \"target\") {\n node = canvas.getFigure(val.node);\n if (node === null) {\n throw \"Target figure with id '\" + val.node + \"' not found\";\n }\n target = node.getPort(val.port);\n if (target === null) {\n throw \"Unable to find target port '\" + val.port + \"' at figure '\" + val.node + \"' to unmarschal '\" + element.type + \"'\";\n }\n }\n }\n if (source !== null && target !== null) {\n // don't change the order or the source/target set.\n // TARGET must always be the second one because some applications needs the \"source\"\n // port in the \"connect\" event of the target.\n o.setSource(source);\n o.setTarget(target);\n }\n o.setPersistentAttributes(element);\n canvas.add(o);\n result.add(o);\n } catch (exc) {\n debug.error(element, \"Unable to instantiate figure type '\" + element.type + \"' with id '\" + element.id + \"' during unmarshal by \" + _this2.NAME + \". Skipping figure..\");\n debug.error(exc);\n debug.warn(element);\n }\n });\n\n // restore group assignment\n //\n json.forEach(function (element) {\n if (typeof element.composite !== \"undefined\") {\n var figure = canvas.getFigure(element.id);\n if (figure === null) {\n figure = canvas.getLine(element.id);\n }\n var group = canvas.getFigure(element.composite);\n group.assignFigure(figure);\n }\n });\n\n // recalculate all crossings and repaint the connections with\n // possible crossing decoration\n canvas.calculateConnectionIntersection();\n canvas.getLines().each(function (i, line) {\n line.svgPathString = null;\n line.repaint();\n });\n canvas.linesToRepaintAfterDragDrop = canvas.getLines().clone();\n\n canvas.showDecoration();\n\n return result;\n },\n\n /**\r\n * @method\r\n * Factory method to create an instance of the given element type.\r\n *\r\n * @param {String} type\r\n * @return {draw2d.Figure}\r\n */\n createFigureFromType: function createFigureFromType(type) {\n return eval(\"new \" + type + \"()\");\n },\n\n /**\r\n * @method\r\n * Factory method to create an instance of the given element.\r\n *\r\n * @param {Object} element\r\n * @return {draw2d.Figure}\r\n */\n createFigureFromElement: function createFigureFromElement(element) {\n return null;\n }\n});\n/**\r\n * @class draw2d.io.json.Reader\r\n * Read a JSON data and import them into the canvas. The JSON must be generated with the\r\n * {@link draw2d.io.json.Writer}.\r\n *\r\n * // Load a standard draw2d JSON object into the canvas\r\n * //\r\n * var jsonDocument =\r\n * [\r\n * {\r\n * \"type\": \"draw2d.shape.basic.Oval\",\r\n * \"id\": \"5b4c74 b0-96d1-1aa3-7eca-bbeaed5fffd7\",\r\n * \"x\": 237,\r\n * \"y\": 236,\r\n * \"width\": 93,\r\n * \"height\": 38\r\n * },\r\n * {\r\n * \"type\": \"draw2d.shape.basic.Rectangle\",\r\n * \"id\": \"354fa3b9-a834-0221-2009-abc2d6bd852a\",\r\n * \"x\": 225,\r\n * \"y\": 97,\r\n * \"width\": 201,\r\n * \"height\": 82,\r\n * \"radius\": 2\r\n * }\r\n * ];\r\n * // unmarshal the JSON document into the canvas\r\n * // (load)\r\n * var reader = new draw2d.io.json.Reader();\r\n * reader.unmarshal(canvas, jsonDocument);\r\n *\r\n *\r\n * @extends draw2d.io.Reader\r\n */\n\n/***/ }),\n\n/***/ \"./src/io/json/Writer.js\":\n/*!*******************************!*\\\n !*** ./src/io/json/Writer.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.io.json.Writer = _packages2.default.io.Writer.extend({\n\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Export the content to the implemented data format. Inherit class implements\r\n * content specific writer.\r\n * <br>\r\n * <br>\r\n * \r\n * Method signature has been changed from version 2.10.1 to version 3.0.0.<br>\r\n * The parameter <b>resultCallback</b> is required and new. The method calls\r\n * the callback instead of return the result.\r\n * \r\n * @param {draw2d.Canvas} canvas\r\n * @param {Function} resultCallback the method to call on success. The first argument is the result object, the second the base64 representation of the file content\r\n * @param {Object} resultCallback.json the canvas document as JSON object\r\n * @param {String} resultCallback.base64 the canvas document as base encoded JSON\r\n */\n marshal: function marshal(canvas, resultCallback) {\n // I change the API signature from version 2.10.1 to 3.0.0. Throw an exception\n // if any application not care about this changes.\n if (typeof resultCallback !== \"function\") {\n throw \"Writer.marshal method signature has been change from version 2.10.1 to version 3.0.0. Please consult the API documentation about this issue.\";\n }\n\n var result = [];\n\n canvas.getFigures().each(function (i, figure) {\n result.push(figure.getPersistentAttributes());\n });\n\n canvas.getLines().each(function (i, element) {\n result.push(element.getPersistentAttributes());\n });\n\n var base64Content = _packages2.default.util.Base64.encode(JSON.stringify(result, null, 2));\n\n resultCallback(result, base64Content);\n }\n});\n\n/**\r\n * @class draw2d.io.json.Writer\r\n * Serialize the canvas document into a JSON object which can be read from the corresponding\r\n * {@link draw2d.io.json.Reader}.\r\n * \r\n * // Create a JSON writer and convert it into a JSON-String representation.\r\n * //\r\n * var writer = new draw2d.io.json.Writer();\r\n * writer.marshal(canvas, function(json){\r\n * // convert the json object into string representation\r\n * var jsonTxt = JSON.stringify(json,null,2);\r\n * \r\n * // insert the json string into a DIV for preview or post\r\n * // it via ajax to the server....\r\n * $(\"#json\").text(jsonTxt);\r\n * \r\n * });\r\n * \r\n *\r\n * \r\n * @author Andreas Herz\r\n * @extends draw2d.io.Writer\r\n */\n\n/***/ }),\n\n/***/ \"./src/io/png/Writer.js\":\n/*!******************************!*\\\n !*** ./src/io/png/Writer.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar canvg = __webpack_require__(/*! canvg-browser */ \"./node_modules/canvg-browser/index.js\"); /**\r\n * @class draw2d.io.png.Writer\r\n * Convert the canvas document into a PNG Image.\r\n *\r\n * // example how to create a PNG image and set an\r\n * // image src attribute.\r\n * //\r\n * var writer = new draw2d.io.png.Writer();\r\n * writer.marshal(canvas, function(png){\r\n * $(\"#preview\").attr(\"src\",png);\r\n * });\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.io.Writer\r\n */\n\n\n_packages2.default.io.png.Writer = _packages2.default.io.Writer.extend({\n\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Export the content to a PNG image. The result can be set as <b>src=\"....\"</b> because\r\n * the result is encoded as data source url <b>data:image/png;base64....</b>\r\n * <br>\r\n * <br>\r\n *\r\n * Method signature has been changed from version 2.10.1 to version 3.0.0.<br>\r\n * The parameter <b>resultCallback</b> is required and new. The method calls\r\n * the callback instead of return the result.\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Function} resultCallback the method to call on success. The first argument is the dataUrl, the second is the base64 formated png image\r\n * @param {String} resultCallback.img The image as data source url <b>data:image/png;base64....</b>\r\n * @param {String} resultCallback.base64 the image encoded in base64\r\n * @param {draw2d.geo.Rectangle} cropBoundingBox optional cropping/clipping bounding box\r\n */\n marshal: function marshal(canvas, resultCallback, cropBoundingBox) {\n // I change the API signature from version 2.10.1 to 3.0.0. Throw an exception\n // if any application not care about this changes.\n if (typeof resultCallback !== \"function\") {\n throw \"Writer.marshal method signature has been change from version 2.10.1 to version 3.0.0. Please consult the API documentation about this issue.\";\n }\n\n var svg = \"\";\n\n // the png.Writer can create Snapshots of a singel figure too.\n // Didn't work in IE <10\n // @status beta\n // @since 5.5.0\n if (canvas instanceof _packages2.default.Figure) {\n var origPos = canvas.getPosition();\n canvas.setPosition(1, 1);\n svg = \"<svg xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" >\" + canvas.shape.node.outerHTML + \"</svg>\";\n canvas.setPosition(origPos);\n canvas.initialWidth = canvas.getWidth() + 2;\n canvas.initialHeight = canvas.getHeight() + 2;\n }\n // create a snapshot of a complete canvas\n //\n else {\n canvas.hideDecoration();\n svg = canvas.getHtmlContainer().html().replace(/>\\s+/g, \">\").replace(/\\s+</g, \"<\");\n\n // add missing namespace for images in SVG if missing\n // depends on raphaelJS version\n if (svg.indexOf(\"http://www.w3.org/1999/xlink\") === -1) {\n svg = svg.replace(\"<svg \", \"<svg xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" \");\n }\n }\n\n // required for IE9 support.\n // The following table contains ready-to-use conditions to detec IE Browser versions\n //\n // IE versions Condition to check for\n // ------------------------------------------------------------\n // 10 or older document.all\n // 9 or older document.all && !window.atob\n // 8 or older document.all && !document.addEventListener\n // 7 or older document.all && !document.querySelector\n // 6 or older document.all && !window.XMLHttpRequest\n // 5.x document.all && !document.compatMode\n if (document.all) {\n svg = svg.replace(/xmlns=\\\"http:\\/\\/www\\.w3\\.org\\/2000\\/svg\\\"/, '');\n }\n\n var canvasDomNode = $('<canvas id=\"canvas_png_export_for_draw2d\" style=\"display:none\"></canvas>');\n $('body').append(canvasDomNode);\n var fullSizeCanvas = $(\"#canvas_png_export_for_draw2d\")[0];\n fullSizeCanvas.width = canvas.initialWidth;\n fullSizeCanvas.height = canvas.initialHeight;\n\n canvg(\"canvas_png_export_for_draw2d\", svg, {\n ignoreMouse: true,\n ignoreAnimation: true,\n renderCallback: function renderCallback() {\n try {\n if (canvas instanceof _packages2.default.Canvas) canvas.showDecoration();\n\n if (typeof cropBoundingBox !== \"undefined\") {\n var sourceX = cropBoundingBox.x;\n var sourceY = cropBoundingBox.y;\n var sourceWidth = cropBoundingBox.w;\n var sourceHeight = cropBoundingBox.h;\n\n var croppedCanvas = document.createElement('canvas');\n croppedCanvas.width = sourceWidth;\n croppedCanvas.height = sourceHeight;\n\n croppedCanvas.getContext(\"2d\").drawImage(fullSizeCanvas, sourceX, sourceY, sourceWidth, sourceHeight, 0, 0, sourceWidth, sourceHeight);\n\n var dataUrl = croppedCanvas.toDataURL(\"image/png\");\n var base64Image = dataUrl.replace(\"data:image/png;base64,\", \"\");\n resultCallback(dataUrl, base64Image);\n } else {\n var img = fullSizeCanvas.toDataURL(\"image/png\");\n resultCallback(img, img.replace(\"data:image/png;base64,\", \"\"));\n }\n } finally {\n canvasDomNode.remove();\n }\n }\n });\n }\n});\n\n/***/ }),\n\n/***/ \"./src/io/svg/Writer.js\":\n/*!******************************!*\\\n !*** ./src/io/svg/Writer.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.io.svg.Writer = _packages2.default.io.Writer.extend({\n\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Export the content of the canvas into SVG. The SVG document can be loaded with Inkscape or any other SVG Editor.\r\n * <br>\r\n * <br>\r\n * \r\n * Method signature has been changed from version 2.10.1 to version 3.0.0.<br>\r\n * The parameter <b>resultCallback</b> is required and new. The method calls\r\n * the callback instead of return the result.\r\n * \r\n * \r\n * @param {draw2d.Canvas} canvas the canvas to marshal\r\n * @param {Function} callback the method to call on success. The first argument is the SVG document\r\n * @param {String} callback.svg the SVG document\r\n * @param {String} callback.base64 the SVG document encoded in base64\r\n */\n marshal: function marshal(canvas, callback) {\n // I change the API signature from version 2.10.1 to 3.0.0. Throw an exception\n // if any application not care about this changes.\n if (typeof callback !== \"function\") {\n throw \"Writer.marshal method signature has been change from version 2.10.1 to version 3.0.0. Please consult the API documentation about this issue.\";\n }\n\n var s = canvas.getPrimarySelection();\n canvas.setCurrentSelection(null);\n var svg = canvas.getHtmlContainer().html().replace(/>\\s+/g, \">\").replace(/\\s+</g, \"<\");\n svg = this.formatXml(svg);\n svg = svg.replace(/<desc>.*<\\/desc>/g, \"<desc>Create with draw2d JS graph library and RaphaelJS</desc>\");\n\n canvas.setCurrentSelection(s);\n\n var base64Content = _packages2.default.util.Base64.encode(svg);\n callback(svg, base64Content);\n }\n});\n\n/**\r\n * @class draw2d.io.svg.Writer\r\n * \r\n * Serialize the canvas document into a SVG document.\r\n * \r\n * // Create a SVG writer and convert the canvas into a SVG document.\r\n * //\r\n * var writer = new draw2d.io.svg.Writer();\r\n * writer.marshal(canvas, function(svg){\r\n * // insert the svg string into a DIV for preview or post\r\n * // it via ajax to the server....\r\n * $(\"#svg\").text(svg);\r\n * });\r\n * \r\n *\r\n * \r\n * @author Andreas Herz\r\n * @extends draw2d.io.Writer\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/anchor/CenterEdgeConnectionAnchor.js\":\n/*!*********************************************************!*\\\n !*** ./src/layout/anchor/CenterEdgeConnectionAnchor.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.anchor.CenterEdgeConnectionAnchor = _packages2.default.layout.anchor.ConnectionAnchor.extend({\n\n NAME: \"draw2d.layout.anchor.CenterEdgeConnectionAnchor\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {draw2d.Figure} [owner] the figure to use for the anchor calculation\r\n */\n init: function init(owner) {\n this._super(owner);\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the location where the Connection should be anchored in\r\n * absolute coordinates. The anchor may use the given reference\r\n * Point to calculate this location.\r\n *\r\n * @param {draw2d.geo.Point} ref The reference Point in absolute coordinates\r\n * @param {draw2d.Connection} [inquiringConnection] the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The anchor's location\r\n */\n getLocation: function getLocation(ref, inquiringConnection) {\n var r = this.getOwner().getParent().getBoundingBox();\n\n var dir = r.getDirection(ref);\n var center = r.getCenter();\n\n switch (dir) {\n case 0:\n center.y = r.y;\n break;\n case 1:\n center.x = r.x + r.w;\n break;\n case 2:\n center.y = r.y + r.h;\n break;\n case 3:\n center.x = r.x;\n }\n\n return center;\n },\n\n /**\r\n * Returns the bounds of this Anchor's owner. Subclasses can\r\n * override this method to adjust the box. Maybe you return the box\r\n * of the port parent (the parent figure)\r\n *\r\n * @return {draw2d.geo.Rectangle} The bounds of this Anchor's owner\r\n */\n getBox: function getBox() {\n return this.getOwner().getParent().getBoundingBox();\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the bounds of this Anchor's owner. Subclasses can\r\n * override this method to adjust the box. Maybe you return the box\r\n * of the port parent (the parent figure)\r\n *\r\n * @param {draw2d.Connection} [inquiringConnection] the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The bounds of this Anchor's owner\r\n */\n getReferencePoint: function getReferencePoint(inquiringConnection) {\n return this.getBox().getCenter();\n }\n}); /**\r\n * @class draw2d.layout.anchor.CenterEdgeConnectionAnchor\r\n *\r\n * The CenterEdgeConnectionAnchor's location is found by calculating the intersection of a\r\n * line drawn from the center point of its owner's box (the parent of the\r\n * connection port) to a reference point on that box. A Connection using the\r\n * ChopBoxAnchor will be oriented such that they point to their port owner's\r\n * center.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.anchor.ConnectionAnchor\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/anchor/ChopboxConnectionAnchor.js\":\n/*!******************************************************!*\\\n !*** ./src/layout/anchor/ChopboxConnectionAnchor.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.anchor.ChopboxConnectionAnchor = _packages2.default.layout.anchor.ConnectionAnchor.extend({\n\n NAME: \"draw2d.layout.anchor.ChopboxConnectionAnchor\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {draw2d.Figure} owner the figure to use for the anchor calculation\r\n */\n init: function init(owner) {\n this._super(owner);\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the location where the Connection should be anchored in\r\n * absolute coordinates. The anchor may use the given reference\r\n * Point to calculate this location.\r\n *\r\n * @param {draw2d.geo.Point} reference The reference Point in absolute coordinates\r\n * @param {draw2d.Connection} [inquiringConnection] the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The anchor's location\r\n */\n getLocation: function getLocation(reference, inquiringConnection) {\n var r = new _packages2.default.geo.Rectangle(0, 0);\n r.setBounds(this.getBox());\n r.translate(-1, -1);\n r.resize(1, 1);\n\n var center = r.getCenter();\n\n if (r.isEmpty() || reference.x === center.x && reference.y === center.y) {\n return center; // This avoids divide-by-zero\n }\n\n var dx = reference.x - center.x;\n var dy = reference.y - center.y;\n\n // r.width, r.height, dx, and dy are guaranteed to be non-zero.\n var scale = 0.5 / Math.max(Math.abs(dx) / r.w, Math.abs(dy) / r.h);\n\n dx *= scale;\n dy *= scale;\n center.translate(dx, dy);\n\n return center;\n },\n\n /**\r\n * Returns the bounds of this Anchor's owner. Subclasses can\r\n * override this method to adjust the box. Maybe you return the box\r\n * of the port parent (the parent figure)\r\n *\r\n * @return {draw2d.geo.Rectangle} The bounds of this Anchor's owner\r\n */\n getBox: function getBox() {\n return this.getOwner().getParent().getBoundingBox();\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the reference point for this anchor in absolute coordinates. This might be used\r\n * by another anchor to determine its own location.\r\n *\r\n * @param {draw2d.Connection} [inquiringConnection] the connection who ask for the location.\r\n * @return {draw2d.geo.Point} The bounds of this Anchor's owner\r\n */\n getReferencePoint: function getReferencePoint(inquiringConnection) {\n return this.getBox().getCenter();\n }\n}); /**\r\n * @class draw2d.layout.anchor.ChopboxConnectionAnchor\r\n *\r\n * The ChopboxAnchor's location is found by calculating the intersection of a\r\n * line drawn from the center point of its owner's box (the parent of the\r\n * connection port) to a reference point on that box. A Connection using the\r\n * ChopBoxAnchor will be oriented such that they point to their port owner's\r\n * center.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.layout.anchor.ConnectionAnchor\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/anchor/ConnectionAnchor.js\":\n/*!***********************************************!*\\\n !*** ./src/layout/anchor/ConnectionAnchor.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.anchor.ConnectionAnchor = Class.extend({\n NAME: \"draw2d.layout.anchor.ConnectionAnchor\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {draw2d.Figure} owner the figure to use for the anchor calculation\r\n */\n init: function init(owner) {\n this.owner = owner;\n },\n\n /**\r\n * @method\r\n * Returns the location where the Connection should be anchored in absolute coordinates.\r\n * The anchor may use the given reference Point to calculate this location.\r\n *\r\n * @param {draw2d.geo.Point} reference the opposite reference point\r\n * @param {draw2d.Connection} inquiringConnection the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point}\r\n */\n getLocation: function getLocation(reference, inquiringConnection) {\n // return the center of the owner/port.\n return this.getReferencePoint(inquiringConnection);\n },\n\n /**\r\n * @method\r\n * Returns the Figure that contains this ConnectionAnchor.\r\n *\r\n * @return {draw2d.Figure} The Figure that contains this ConnectionAnchor\r\n */\n getOwner: function getOwner() {\n return this.owner;\n },\n\n /**\r\n * @method\r\n * Set the owner of the Anchor.\r\n *\r\n * @param {draw2d.Figure} owner the new owner of the anchor locator\r\n */\n setOwner: function setOwner(owner) {\n if (typeof owner === \"undefined\") {\n throw \"Missing parameter for 'owner' in ConnectionAnchor.setOwner\";\n }\n this.owner = owner;\n },\n\n /**\r\n * @method\r\n * Returns the bounds of this Anchor's owner. Subclasses can override this method\r\n * to adjust the box. Maybe you return the box of the port parent (the parent figure)\r\n *\r\n * @return {draw2d.geo.Rectangle} The bounds of this Anchor's owner\r\n */\n getBox: function getBox() {\n return this.getOwner().getAbsoluteBounds();\n },\n\n /**\r\n * @method\r\n * Returns the reference point for this anchor in absolute coordinates. This might be used\r\n * by another anchor to determine its own location.\r\n *\r\n * @param {draw2d.Connection} [inquiringConnection] the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The reference Point\r\n */\n getReferencePoint: function getReferencePoint(inquiringConnection) {\n return this.getOwner().getAbsolutePosition();\n }\n}); /**\r\n * @class draw2d.layout.anchor.ConnectionAnchor\r\n * An object to which a {@link draw2d.Connection} will be anchored.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/anchor/FanConnectionAnchor.js\":\n/*!**************************************************!*\\\n !*** ./src/layout/anchor/FanConnectionAnchor.js ***!\n \\**************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.anchor.FanConnectionAnchor = _packages2.default.layout.anchor.ConnectionAnchor.extend({\n\n NAME: \"draw2d.layout.anchor.FanConnectionAnchor\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {draw2d.Figure} owner the figure to use for the anchor calculation\r\n * @param {Number} [separation] the separation or fan distance between the concurrent/conflicting anchors\r\n */\n init: function init(owner, separation) {\n this._super(owner);\n\n if (separation) {\n this.separation = parseInt(separation);\n } else {\n this.separation = 10;\n }\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the location where the Connection should be anchored in\r\n * absolute coordinates. The anchor may use the given reference\r\n * Point to calculate this location.\r\n *\r\n * @param {draw2d.geo.Point} reference The reference Point in absolute coordinates\r\n * @param {draw2d.Connection} inquiringConnection the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The anchor's location\r\n */\n getLocation: function getLocation(reference, inquiringConnection) {\n\n var r = new _packages2.default.geo.Rectangle(0, 0);\n r.setBounds(this.getBox());\n r.translate(-1, -1);\n r.resize(1, 1);\n\n var center = r.getCenter();\n\n if (r.isEmpty() || reference.x === center.x && reference.y === center.y) {\n return center; // This avoids divide-by-zero\n }\n\n // translate the center if required\n //\n var s = inquiringConnection.getSource();\n var t = inquiringConnection.getTarget();\n var lines = this.getOwner().getConnections().clone();\n lines.grep(function (other) {\n return other.getTarget() === t && other.getSource() === s || other.getTarget() === s && other.getSource() === t;\n });\n var index = lines.indexOf(inquiringConnection) + 1;\n var position = center.getPosition(reference);\n var ray = void 0;\n if (position === _packages2.default.geo.PositionConstants.SOUTH || position === _packages2.default.geo.PositionConstants.EAST) {\n ray = new _packages2.default.geo.Point(reference.x - center.x, reference.y - center.y);\n } else {\n ray = new _packages2.default.geo.Point(center.x - reference.x, center.y - reference.y);\n }\n var length = Math.sqrt(ray.x * ray.x + ray.y * ray.y);\n if (index <= 2) {\n length *= 1.5;\n }\n var xSeparation = this.separation * ray.x / length;\n var ySeparation = this.separation * ray.y / length;\n if (index % 2 === 0) {\n center = new _packages2.default.geo.Point(center.x + index / 2 * (-1 * ySeparation), center.y + index / 2 * xSeparation);\n } else {\n center = new _packages2.default.geo.Point(center.x + index / 2 * ySeparation, center.y + index / 2 * (-1 * xSeparation));\n }\n\n var intersections = this.getBox().intersectionWithLine(center, reference);\n // perfect - one intersection mean that the shifted center point is inside the bounding box and has only one intersection with it.\n //\n switch (intersections.getSize()) {\n case 0:\n // calculate the edge of the bounding box which is nearest to the reference point\n //\n var v = this.getBox().getVertices();\n var first = v.first();\n first.distance = reference.distance(first);\n return v.asArray().reduce(function (previous, current) {\n current.distance = reference.distance(current);\n return current.distance < previous.distance ? current : previous;\n });\n case 1:\n return intersections.get(0);\n case 2:\n // get the nearest of these points\n var p0 = intersections.get(0);\n var p1 = intersections.get(1);\n var p0diff = reference.distance(p0);\n var p1diff = reference.distance(p1);\n if (p0diff < p1diff) {\n return p0;\n }\n return p1;\n }\n\n // we have 0 or 2 intersections with the bounding box. This means the shifted\n // calculate the intersection if the new \"center\" with the bounding box of the\n // shape (if any exists)\n },\n\n /**\r\n * Returns the bounds of this Anchor's owner. Subclasses can\r\n * override this method to adjust the box. Maybe you return the box\r\n * of the port parent (the parent figure)\r\n *\r\n * @return {draw2d.geo.Rectangle} The bounds of this Anchor's owner\r\n */\n getBox: function getBox() {\n return this.getOwner().getParent().getBoundingBox();\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the reference point for this anchor in absolute coordinates. This might be used\r\n * by another anchor to determine its own location.\r\n *\r\n * @param {draw2d.Connection} inquiringConnection the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The bounds of this Anchor's owner\r\n */\n getReferencePoint: function getReferencePoint(inquiringConnection) {\n return this.getBox().getCenter();\n }\n}); /**\r\n * @class draw2d.layout.anchor.FanConnectionAnchor\r\n *\r\n * The FanConnectionAnchor's location is found by calculating the intersection of a\r\n * line drawn from the center point of its owner's box (the parent of the\r\n * connection port) to a reference point on that box.\r\n * Additional the anchor resolves conflicts by spread the anchor if more than one\r\n * connection has the same reference point. <br>\r\n * In a case of a DirectRouter parallel connections are the result.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @since 4.6.0\r\n * @extends draw2d.layout.anchor.ConnectionAnchor\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/anchor/ShortesPathConnectionAnchor.js\":\n/*!**********************************************************!*\\\n !*** ./src/layout/anchor/ShortesPathConnectionAnchor.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.anchor.ShortesPathConnectionAnchor = _packages2.default.layout.anchor.ConnectionAnchor.extend({\n\n NAME: \"draw2d.layout.anchor.ShortesPathConnectionAnchor\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {draw2d.Figure} [owner] the figure to use for the anchor calculation\r\n */\n init: function init(owner) {\n this._super(owner);\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the location where the Connection should be anchored in\r\n * absolute coordinates. The anchor may use the given reference\r\n * Point to calculate this location.\r\n *\r\n * @param {draw2d.geo.Point} ref The reference Point in absolute coordinates\r\n * @param {draw2d.Connection} inquiringConnection the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The anchor's location\r\n */\n getLocation: function getLocation(ref, inquiringConnection) {\n var r = this.getOwner().getParent().getBoundingBox();\n var center = r.getCenter();\n\n // check if we can calculate with a circle/line intersection\n //\n if (this.getOwner().getParent() instanceof _packages2.default.shape.basic.Oval) {\n var result = this.getOwner().getParent().intersectionWithLine(ref, center);\n if (result.getSize() === 1) {\n return result.get(0);\n }\n }\n\n /* 0 | 1 | 2\r\n * __|___|__\r\n * 7 | 8 | 3\r\n * __|___|__\r\n * 6 | 5 | 4\r\n */\n var octant = r.determineOctant(new _packages2.default.geo.Rectangle(ref.x, ref.y, 2, 2));\n\n switch (octant) {\n case 0:\n return r.getTopLeft();\n case 1:\n return new _packages2.default.geo.Point(ref.x, r.getTop());\n case 2:\n return r.getTopRight();\n case 3:\n return new _packages2.default.geo.Point(r.getRight(), ref.y);\n case 4:\n return r.getBottomRight();\n case 5:\n return new _packages2.default.geo.Point(ref.x, r.getBottom());\n case 6:\n return r.getBottomLeft();\n case 7:\n return new _packages2.default.geo.Point(r.getLeft(), ref.y);\n }\n\n return r.getTopLeft();\n },\n\n /**\r\n * Returns the bounds of this Anchor's owner. Subclasses can\r\n * override this method to adjust the box. Maybe you return the box\r\n * of the port parent (the parent figure)\r\n *\r\n * @return {draw2d.geo.Rectangle} The bounds of this Anchor's owner\r\n */\n getBox: function getBox() {\n return this.getOwner().getParent().getBoundingBox();\n },\n\n /**\r\n * @method\r\n *\r\n * Returns the bounds of this Anchor's owner. Subclasses can\r\n * override this method to adjust the box. Maybe you return the box\r\n * of the port parent (the parent figure)\r\n *\r\n * @param {draw2d.Connection} inquiringConnection the connection who ask for the location.\r\n *\r\n * @return {draw2d.geo.Point} The bounds of this Anchor's owner\r\n */\n getReferencePoint: function getReferencePoint(inquiringConnection) {\n return this.getBox().getCenter();\n }\n}); /**\r\n * @class draw2d.layout.anchor.ShortesPathConnectionAnchor\r\n *\r\n * The ChopboxAnchor's location is found by calculating the intersection of a\r\n * line drawn from the center point of its owner's box (the parent of the\r\n * connection port) to a reference point on that box. A Connection using the\r\n * ChopBoxAnchor will be oriented such that they point to their port owner's\r\n * center.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.layout.anchor.ConnectionAnchor\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/CircuitConnectionRouter.js\":\n/*!**********************************************************!*\\\n !*** ./src/layout/connection/CircuitConnectionRouter.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.CircuitConnectionRouter = _packages2.default.layout.connection.ManhattanConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.CircuitConnectionRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n\n this.setBridgeRadius(4);\n this.setVertexRadius(2);\n\n // experimental\n this.abortRoutingOnFirstVertexNode = false;\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been removed from the connection. In the case of the CircuitRouter\r\n * all vertex nodes will be removed from the canvas.\r\n *\r\n * @param {draw2d.Connection} connection The related connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onUninstall: function onUninstall(connection) {\n if (typeof connection.vertexNodes !== \"undefined\" && connection.vertexNodes !== null) {\n connection.vertexNodes.remove();\n connection.vertexNodes = null;\n }\n },\n\n /**\r\n * @method\r\n * Set the radius of the vertex circle.\r\n *\r\n * @param {Number} radius\r\n */\n setVertexRadius: function setVertexRadius(radius) {\n this.vertexRadius = radius;\n\n return this;\n },\n /** deprecated\r\n * @private\r\n * **/\n setJunctionRadius: function setJunctionRadius(radius) {\n this.vertexRadius = radius;\n },\n\n /**\r\n * @method\r\n * Set the radius or span of the bridge. A bridge will be drawn if two connections are crossing and didn't have any\r\n * common port.\r\n *\r\n * @param {Number} radius\r\n */\n setBridgeRadius: function setBridgeRadius(radius) {\n this.bridgeRadius = radius;\n this.bridge_LR = [\" r\", 0.5, -0.5, radius - radius / 2, -(radius - radius / 4), radius, -radius, radius + radius / 2, -(radius - radius / 4), radius * 2, \"0 \"].join(\" \");\n this.bridge_RL = [\" r\", -0.5, -0.5, -(radius - radius / 2), -(radius - radius / 4), -radius, -radius, -(radius + radius / 2), -(radius - radius / 4), -radius * 2, \"0 \"].join(\" \");\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(conn, routingHints) {\n var _this = this;\n\n var fromPt = conn.getStartPoint();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPoint();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n // calculate the lines between the two points with the standard ManhattanRouter.\n //\n this._route(conn, toPt, toDir, fromPt, fromDir);\n\n // get the intersections to the other connections\n //\n var intersectionsASC = conn.getCanvas().getIntersection(conn).sort(\"x\");\n var intersectionsDESC = intersectionsASC.clone().reverse();\n\n var intersectionForCalc = intersectionsASC;\n\n // add a ArrayList of all added vertex nodes to the connection\n //\n if (typeof conn.vertexNodes !== \"undefined\" && conn.vertexNodes !== null) {\n conn.vertexNodes.remove();\n }\n conn.vertexNodes = conn.canvas.paper.set();\n\n // ATTENTION: we cast all x/y coordinates to integer and add 0.5 to avoid subpixel rendering of\n // the connection. The 1px or 2px lines look much clearer than before.\n //\n var ps = conn.getVertices();\n var p = ps.get(0);\n var path = [\"M\", (p.x | 0) + 0.5, \" \", (p.y | 0) + 0.5];\n\n var oldP = p;\n var bridgeWidth = null;\n var bridgeCode = null;\n\n var lastVertexNode = null;\n\n for (var i = 1; i < ps.getSize(); i++) {\n p = ps.get(i);\n\n // line goes from right->left.\n if (oldP.x > p.x) {\n intersectionForCalc = intersectionsDESC;\n bridgeCode = this.bridge_RL;\n bridgeWidth = -this.bridgeRadius;\n }\n // line goes from left->right\n else {\n intersectionForCalc = intersectionsASC;\n bridgeCode = this.bridge_LR;\n bridgeWidth = this.bridgeRadius;\n }\n\n // add a bridge or a vertex node depending to the intersection connection\n //\n // bridge => the connections didn't have a common port\n // vertex => the connections did have a common source or target port\n //\n intersectionForCalc.each(function (ii, interP) {\n if (_packages2.default.shape.basic.Line.hit(1, oldP.x, oldP.y, p.x, p.y, interP.x, interP.y) === true) {\n\n // It is a vertex node..\n //\n if (conn.sharingPorts(interP.other)) {\n var other = interP.other;\n var otherZ = other.getZOrder();\n var connZ = conn.getZOrder();\n if (connZ < otherZ) {\n var vertexNode = conn.canvas.paper.ellipse(interP.x, interP.y, _this.vertexRadius, _this.vertexRadius).attr({ fill: conn.lineColor.rgba() });\n conn.vertexNodes.push(vertexNode);\n // we found a vertex node. In this case an already existing connection did draw the connection.\n //\n if (_this.abortRoutingOnFirstVertexNode === true) {\n if (conn.getSource() === other.getSource() || conn.getSource() === other.getTarget()) {\n path = [\"M\", (interP.x | 0) + 0.5, \" \", (interP.y | 0) + 0.5];\n if (lastVertexNode !== null) {\n lastVertexNode.remove();\n conn.vertexNodes.exclude(lastVerteNode);\n }\n }\n lastVertexNode = vertexNode;\n }\n }\n }\n // ..or a bridge. We draw only horizontal bridges. Just a design decision\n //\n else if (p.y === interP.y) {\n path.push(\" L\", (interP.x - bridgeWidth | 0) + 0.5, \" \", (interP.y | 0) + 0.5);\n path.push(bridgeCode);\n }\n }\n });\n\n path.push(\" L\", (p.x | 0) + 0.5, \" \", (p.y | 0) + 0.5);\n oldP = p;\n }\n conn.svgPathString = path.join(\"\");\n }\n}); /**\r\n * @class draw2d.layout.connection.CircuitConnectionRouter\r\n *\r\n * Provides a {@link draw2d.Connection} with an orthogonal route between the Connection's source\r\n * and target anchors.\r\n * <br>\r\n * Additional a <b>bridge</b> is added to each connection which didn't have a common source or target\r\n * port.<br>\r\n * A <b>dot</b> is added at the crossing if the two connections have a common spurce or target port.\r\n *\r\n * <br>\r\n *\r\n * @example preview small frame\r\n *\r\n * let createConnection=function(){\r\n * let con = new draw2d.Connection();\r\n * con.setRouter(new draw2d.layout.connection.CircuitConnectionRouter());\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let f1 = new draw2d.shape.analog.OpAmp({x:10, y:10});\r\n * let f2 = new draw2d.shape.analog.ResistorVertical({angle:90, height:20, x:300, y:150});\r\n * let f3 = new draw2d.shape.analog.ResistorVertical({x:250, y:70});\r\n * let f4 = new draw2d.shape.analog.ResistorVertical({x:10, y:90});\r\n *\r\n * // ...add it to the canvas\r\n * //\r\n * canvas.add( f1);\r\n * canvas.add( f2);\r\n * canvas.add( f3);\r\n * canvas.add( f4);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(f1.getOutputPort(0));\r\n * c.setTarget(f2.getHybridPort(0));\r\n * canvas.add(c);\r\n *\r\n * // second Connection between the other resistors\r\n * //\r\n * c = createConnection();\r\n * c.setSource(f3.getHybridPort(1));\r\n * c.setTarget(f4.getHybridPort(0));\r\n * canvas.add(c);\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ManhattanConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/ConnectionRouter.js\":\n/*!***************************************************!*\\\n !*** ./src/layout/connection/ConnectionRouter.js ***!\n \\***************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.ConnectionRouter = Class.extend({\n NAME: \"draw2d.layout.connection.ConnectionRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n * Routes the Connection.\r\n *\r\n * @param {draw2d.Connection} connection The Connection to route\r\n * @param {Object} [routingHints] some helper attributes for the router\r\n * @param {Boolean} [routingHints.startMoved] is true if just the start location has moved\r\n * @param {Boolean} [routingHints.endMoved] is true if the destination location has changed\r\n * @param {draw2d.util.ArrayList} [routingHints.oldVertices] the vertices before the reroute has been triggered\r\n *\r\n * @template\r\n */\n route: function route(connection, routingHints) {\n throw \"subclasses must implement the method [ConnectionRouter.route]\";\n },\n\n _paint: function _paint(conn) {\n // calculate the path string for the SVG rendering\n // Important: to avoid subpixel error rendering we add 0.5 to each coordinate\n // With this offset the canvas can paint the line on a \"full pixel\" instead\n // of subpixel rendering.\n // let adjust = val => (val| 0) +0.5\n var adjust = function adjust(val) {\n return val;\n };\n\n var ps = conn.getVertices();\n var p = ps.get(0);\n var radius = conn.getRadius();\n var path = [\"M\", adjust(p.x), \" \", adjust(p.y)];\n var i = 1;\n var length = void 0,\n inset = void 0,\n p2 = void 0;\n if (radius > 0) {\n var lastP = p;\n length = ps.getSize() - 1;\n for (; i < length; i++) {\n p = ps.get(i);\n inset = _packages2.default.geo.Util.insetPoint(p, lastP, radius);\n path.push(\"L\", adjust(inset.x), \",\", adjust(inset.y));\n\n p2 = ps.get(i + 1);\n inset = _packages2.default.geo.Util.insetPoint(p, p2, radius);\n\n path.push(\"Q\", p.x, \",\", p.y, \" \", adjust(inset.x), \", \", adjust(inset.y));\n lastP = p;\n }\n p = ps.get(i);\n path.push(\"L\", adjust(p.x), \",\", adjust(p.y));\n } else {\n length = ps.getSize();\n for (; i < length; i++) {\n p = ps.get(i);\n path.push(\"L\", adjust(p.x), \",\", adjust(p.y));\n }\n }\n conn.svgPathString = path.join(\"\");\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {},\n\n /**\r\n * @method\r\n * Callback method if the router has been removed from the connection.\r\n *\r\n * @param {draw2d.shape.basic.PolyLine} connection The related connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onUninstall: function onUninstall(connection) {},\n\n /**\r\n * @method\r\n * Callback method for the PolyLine or Connection to check if it possible to remove a vertex from\r\n * the list. The router can send an veto for this.\r\n * Per default it is not possible to remove any vertex from the PolyLine exceptional if any interactive\r\n * router is installed.\r\n *\r\n * @param {Number} index\r\n * @since 4.2.3\r\n */\n canRemoveVertexAt: function canRemoveVertexAt(index) {\n return false;\n },\n\n /**\r\n * Callback method for the PolyLine or Connection to verify that a segment is deletable.\r\n *\r\n * @param {Number} index\r\n * @returns {Boolean}\r\n * @since 4.2.3\r\n */\n canRemoveSegmentAt: function canRemoveSegmentAt(index) {\n return false;\n },\n\n /**\r\n * @method\r\n * Tweak or enrich the polyline persistence data with routing information\r\n *\r\n * @since 2.10.0\r\n * @param {draw2d.shape.basic.PolyLine} line\r\n * @param {Object} memento The memento data of the polyline\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes(line, memento) {\n return memento;\n },\n\n /**\r\n * @method\r\n * set the attributes for the polyline with routing information\r\n *\r\n * @since 2.10.0\r\n * @param {draw2d.shape.basic.Line} line\r\n * @param {Object} memento the JSON data to read\r\n */\n setPersistentAttributes: function setPersistentAttributes(line, memento) {},\n\n /**\r\n * @method\r\n *\r\n * The draw2d.Connection delegates the drag operation to the router. The router can\r\n * handle the different constraints of the connection.\r\n *\r\n * @param {draw2d.shape.basic.Line} line\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n */\n onDrag: function onDrag(line, dx, dy, dx2, dy2) {},\n\n /**\r\n * @method\r\n * Called by the connection if the vertices set outside.\r\n * This enforce the router to avoid full autoroute. E.g. InteractiveManhattanRouter\r\n *\r\n * @protected\r\n * @param {draw2d.shape.basic.Line} line\r\n */\n verticesSet: function verticesSet(line) {}\n\n}); /**\r\n * @class draw2d.layout.connection.ConnectionRouter\r\n * Routes a {@link draw2d.Connection}, possibly using a constraint.\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/DirectRouter.js\":\n/*!***********************************************!*\\\n !*** ./src/layout/connection/DirectRouter.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.DirectRouter = _packages2.default.layout.connection.ConnectionRouter.extend({\n\n NAME: \"draw2d.layout.connection.DirectRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * Invalidates the given Connection\r\n */\n invalidate: function invalidate() {},\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(connection, routingHints) {\n var start = connection.getStartPosition();\n var end = connection.getEndPosition();\n\n // required for hit tests\n //\n connection.addPoint(start);\n connection.addPoint(end);\n\n // calculate the path\n var path = [\"M\", start.x, \" \", start.y];\n path.push(\"L\", end.x, \" \", end.y);\n\n connection.svgPathString = path.join(\"\");\n }\n}); /**\r\n * @class draw2d.layout.connection.DirectRouter\r\n *\r\n * Router for direct connections between two ports. Beeline\r\n * <br>\r\n * <br>\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let createConnection=function(){\r\n * let con = new draw2d.Connection();\r\n * con.setRouter(new draw2d.layout.connection.DirectRouter());\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * let end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/FanConnectionRouter.js\":\n/*!******************************************************!*\\\n !*** ./src/layout/connection/FanConnectionRouter.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.FanConnectionRouter = _packages2.default.layout.connection.DirectRouter.extend({\n NAME: \"draw2d.layout.connection.FanConnectionRouter\",\n\n /**\r\n * @constructor Creates a new Router object.\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * Layout the hands over connection in a manhattan like layout\r\n *\r\n * @param {draw2d.Connection} conn\r\n * @param {draw2d.util.ArrayList} oldVertices old/existing vertices of the Connection\r\n * @param {Object} routingHints some helper attributes for the router\r\n * @param {Boolean} routingHints.startMoved is true if just the start location has moved\r\n * @param {Boolean} routingHints.destMoved is true if the destination location has changed\r\n */\n route: function route(conn, routingHints) {\n var lines = conn.getSource().getConnections().clone();\n lines.grep(function (other) {\n return other.getTarget() === conn.getTarget() || other.getSource() === conn.getTarget();\n });\n\n if (lines.getSize() > 1) {\n this.routeCollision(conn, lines.indexOf(conn));\n } else {\n this._super(conn, routingHints);\n }\n },\n\n /**\r\n * @method\r\n * route the connection if connections overlap. Two connections overlap if the combination\r\n * of source and target anchors are equal.\r\n *\r\n * @param {draw2d.Connection} conn\r\n * @param {Number} index\r\n */\n routeCollision: function routeCollision(conn, index) {\n index = index + 1;\n var start = conn.getStartPoint();\n var end = conn.getEndPoint();\n\n var separation = 15;\n\n var midPoint = new _packages2.default.geo.Point((end.x + start.x) / 2, (end.y + start.y) / 2);\n var position = end.getPosition(start);\n var ray = void 0;\n if (position === _packages2.default.geo.PositionConstants.SOUTH || position === _packages2.default.geo.PositionConstants.EAST) {\n ray = new _packages2.default.geo.Point(end.x - start.x, end.y - start.y);\n } else {\n ray = new _packages2.default.geo.Point(start.x - end.x, start.y - end.y);\n }\n\n var length = Math.sqrt(ray.x * ray.x + ray.y * ray.y);\n\n var xSeparation = separation * ray.x / length;\n var ySeparation = separation * ray.y / length;\n\n var bendPoint = void 0;\n\n if (index % 2 === 0) {\n bendPoint = new _packages2.default.geo.Point(midPoint.x + index / 2 * (-1 * ySeparation), midPoint.y + index / 2 * xSeparation);\n } else {\n bendPoint = new _packages2.default.geo.Point(midPoint.x + index / 2 * ySeparation, midPoint.y + index / 2 * (-1 * xSeparation));\n }\n\n // required for hit tests\n conn.addPoint(start);\n conn.addPoint(bendPoint);\n conn.addPoint(end);\n\n // calculate the path string for the SVG rendering\n //\n this._paint(conn);\n }\n\n}); /**\r\n * @class draw2d.layout.connection.FanConnectionRouter\r\n *\r\n * Automatic router that spreads its {@link draw2d.Connection Connections} in a fan-like fashion upon collision.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let createConnection=function(){\r\n * // return my special kind of connection\r\n * let con = new draw2d.Connection({\r\n * radius: 14,\r\n * router: new draw2d.layout.connection.FanConnectionRouter()\r\n * });\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * let end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n * // second Connection\r\n * //\r\n * c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n * // third Connection\r\n * //\r\n * c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.DirectRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/InteractiveManhattanConnectionRouter.js\":\n/*!***********************************************************************!*\\\n !*** ./src/layout/connection/InteractiveManhattanConnectionRouter.js ***!\n \\***********************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.layout.connection.InteractiveManhattanConnectionRouter\r\n * Route the connection in an Manhattan style and add resize handles to all vertex for interactive alignment of the\r\n * routing.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let createConnection=function(){\r\n * // return my special kind of connection\r\n * let con = new draw2d.Connection({\r\n * radius: 4,\r\n * router: new draw2d.layout.connection.InteractiveManhattanConnectionRouter()\r\n * });\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * let end = new draw2d.shape.node.End();\r\n\r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n * // select the connection to show the selection handles\r\n * //\r\n * c.select();\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @since 4.0.2\r\n * @extends draw2d.layout.connection.ManhattanConnectionRouter\r\n */\n_packages2.default.layout.connection.InteractiveManhattanConnectionRouter = _packages2.default.layout.connection.ManhattanConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.InteractiveManhattanConnectionRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n onInstall: function onInstall(conn) {\n conn.installEditPolicy(new _packages2.default.policy.line.OrthogonalSelectionFeedbackPolicy());\n if (!conn._routingMetaData) {\n conn._routingMetaData = {\n routedByUserInteraction: false,\n fromDir: -1,\n toDir: -1\n };\n }\n },\n\n onUninstall: function onUninstall(conn) {\n delete conn._routingMetaData;\n },\n\n /**\r\n * @inheritDoc\r\n */\n route: function route(conn, routingHints) {\n if (!routingHints.oldVertices) {\n debugger;\n }\n if (routingHints.oldVertices.getSize() === 0 || conn._routingMetaData.routedByUserInteraction === false) {\n this._super(conn, routingHints);\n conn._routingMetaData.fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n conn._routingMetaData.toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n } else {\n this.halfRoute(conn, routingHints);\n this._paint(conn);\n }\n },\n\n /**\r\n * @method\r\n * The routing algorithm if the user has changed at least on of the vertices manually.\r\n * This kind of routing just align the start and end vertices to the new source/target port\r\n * location.\r\n * The vertices between keep untouched. Modification of this vertices are done by the\r\n * draw2d.policy.line.OrthogonalSelectionFeedbackPolicy\r\n *\r\n * @param {draw2d.Connection} conn the connection to route\r\n * @param {Object} routingHints some helper attributes for the router\r\n * @param {Boolean} routingHints.startMoved is true if just the start location has moved\r\n * @param {Boolean} routingHints.endMoved is true if the destination location has changed\r\n */\n halfRoute: function halfRoute(conn, routingHints) {\n var MINDIST = this.MINDIST;\n var max = Math.max;\n var min = Math.min;\n\n routingHints = routingHints || { oldVertices: new _packages2.default.util.ArrayList() };\n var oldVertices = routingHints.oldVertices;\n var vertexCount = oldVertices.getSize();\n\n var fromPt = conn.getStartPosition();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPosition();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n // the port orientation has been changed. This can happen if the node rotates. In this case\n // we must recalculate the routing.\n if (conn._routingMetaData.fromDir !== fromDir || conn._routingMetaData.toDir !== toDir) {\n conn._routingMetaData.routedByUserInteraction = false;\n this.route(conn, routingHints);\n }\n\n // TODO: detection for switch back to autoroute isn't good enough.\n // Add more logic. e.g. if the fromDir!==1. This happens if\n // The ports are at bottom and top.\n // The code below covers only the classic workflow configuration left->right\n //\n // go back to the default if no routing is possible anymore\n //\n if (fromDir === _packages2.default.geo.Rectangle.DIRECTION_RIGHT && toDir === _packages2.default.geo.Rectangle.DIRECTION_LEFT && fromPt.x > toPt.x && vertexCount <= 4) {\n\n conn._routingMetaData.routedByUserInteraction = false;\n this.route(conn, routingHints);\n }\n // it makes no sense to have just 2 vertices and manual routing for Manhattan-style routing\n else if (conn.getVertices().getSize() === 2 && conn._routingMetaData.routedByUserInteraction === true) {\n conn._routingMetaData.routedByUserInteraction = false;\n this.route(conn, routingHints);\n }\n\n // transfer the old vertices into the connection\n //\n oldVertices.each(function (i, vertex) {\n conn.addPoint(vertex);\n });\n\n // all points are adjusted with the drag&drop operation. There is no need to move\n // start/end points twice\n if (conn.isInDragDrop) {\n return;\n }\n\n // The SOURCE port (labeled with p0) has been moved/changed.\n //\n if (routingHints.startMoved || !fromPt.equals(oldVertices.get(0))) {\n var p1 = oldVertices.get(1);\n var p2 = oldVertices.get(2);\n conn.setVertex(0, fromPt);\n switch (fromDir) {\n // .\n // p0 . p1\n // x------+\n // .\n // .\n //\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n conn.setVertex(1, max(fromPt.x + MINDIST, p1.x), fromPt.y); // p1\n conn.setVertex(2, max(fromPt.x + MINDIST, p1.x), p2.y); // p2\n break;\n // .\n // . p1 p0\n // +------x\n // .\n // .\n //\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n conn.setVertex(1, min(fromPt.x - MINDIST, p1.x), fromPt.y); // p1\n conn.setVertex(2, min(fromPt.x - MINDIST, p1.x), p2.y); // p2\n break;\n // ...+....\n // p1 |\n // |\n // |\n // p0 x\n //\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n conn.setVertex(1, fromPt.x, min(fromPt.y - MINDIST, p1.y)); // p1\n conn.setVertex(2, p2.x, min(fromPt.y - MINDIST, p1.y)); // p2\n break;\n // x\n // p0 |\n // |\n // p1 |\n // ....+....\n //\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n conn.setVertex(1, fromPt.x, max(fromPt.y + MINDIST, p1.y)); // p1\n conn.setVertex(2, p2.x, max(fromPt.y + MINDIST, p1.y)); // p2\n break;\n }\n }\n //////////////////////////////////////////////////////////////////\n // the TARGET port (labeled with p0) has moved\n //\n if (routingHints.endMoved || !toPt.equals(oldVertices.get(vertexCount - 1))) {\n var _p = oldVertices.get(vertexCount - 2);\n var _p2 = oldVertices.get(vertexCount - 3);\n conn.setVertex(vertexCount - 1, toPt); // p0\n\n switch (toDir) {\n // .\n // p0 . p1\n // x----------+\n // .\n // .\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n conn.setVertex(vertexCount - 2, max(toPt.x + MINDIST, _p.x), toPt.y); // p1\n conn.setVertex(vertexCount - 3, max(toPt.x + MINDIST, _p.x), _p2.y); // p2\n break;\n\n // .\n // .\n // . p1 p0\n // +----------x\n // .\n // .\n //\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n conn.setVertex(vertexCount - 2, min(toPt.x - MINDIST, _p.x), toPt.y); // p1\n conn.setVertex(vertexCount - 3, min(toPt.x - MINDIST, _p.x), _p2.y); // p2\n break;\n\n // ...+....\n // p1 |\n // |\n // |\n // p0 x\n //\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n conn.setVertex(vertexCount - 2, toPt.x, min(toPt.y - MINDIST, _p.y)); // p1\n conn.setVertex(vertexCount - 3, _p2.x, min(toPt.y - MINDIST, _p.y)); // p2\n break;\n\n // +\n // p0 |\n // |\n // p1 |\n // ...+...\n //\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n conn.setVertex(vertexCount - 2, toPt.x, max(toPt.y + MINDIST, _p.y)); // p1\n conn.setVertex(vertexCount - 3, _p2.x, max(toPt.y + MINDIST, _p.y)); // p2\n break;\n }\n }\n },\n\n /**\r\n * Callback method for the PolyLine or Connection to verify that a segment is deletable.\r\n * @param {draw2d.Connection} conn\r\n * @param {Number} index\r\n *\r\n * @returns {Boolean}\r\n * @since 4.2.3\r\n */\n canRemoveSegmentAt: function canRemoveSegmentAt(conn, index) {\n\n var segmentCount = conn.getVertices().getSize() - 1; // segmentCount is one less than vertex count\n\n // The first and last segment isn't deletable\n //\n if (index <= 0 || index + 1 >= segmentCount) {\n return false;\n }\n\n // a connection need at least three strokes\n //\n if (segmentCount < 4) {\n return false;\n }\n\n var fromPt = conn.getStartPosition();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPosition();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n if (segmentCount <= 5) {\n // ___\n // | | From\n // | 1 |-----+\n // |___| |\n // |\n // +----------+\n // |\n // | ___\n // | | |\n // +---| 2 | To\n // |___|\n // the connection needs at least 5 segments if the routing is like this\n //\n if (fromDir === _packages2.default.geo.Rectangle.DIRECTION_RIGHT && toDir === _packages2.default.geo.Rectangle.DIRECTION_LEFT && fromPt.x >= toPt.x) {\n return false;\n }\n\n // ___\n // | | To\n // | 2 |-----+\n // |___| |\n // |\n // +----------+\n // |\n // | ___\n // | | |\n // +---| 1 | From\n // |___|\n // the connection needs at least 5 segments if the routing is like this\n //\n if (fromDir == _packages2.default.geo.Rectangle.DIRECTION_LEFT & toDir == _packages2.default.geo.Rectangle.DIRECTION_RIGHT && fromPt.x <= toPt.x) {\n return false;\n }\n\n // ___\n // +_______ | |\n // | from | | 2 |\n // _+_ | |___|\n // | | | To +\n // | 1 | |____________|\n // |___|\n // the connection needs at least 5 segments if the routing is like this\n //\n if (fromDir == _packages2.default.geo.Rectangle.DIRECTION_UP & toDir == _packages2.default.geo.Rectangle.DIRECTION_DOWN && fromPt.y <= toPt.y) {\n return false;\n }\n\n // ___\n // +_______ | |\n // | to | | 1 |\n // _+_ | |___|\n // | | | from +\n // | 2 | |____________|\n // |___|\n // the connection needs at least 5 segments if the routing is like this\n //\n if (fromDir == _packages2.default.geo.Rectangle.DIRECTION_DOWN & toDir == _packages2.default.geo.Rectangle.DIRECTION_UP && fromPt.y >= toPt.y) {\n return false;\n }\n\n // unable to make the decision on the easy way. calculate the route again with an\n // temporary connection and check if the segment count of the new routed connection\n // allows a removal\n //\n var tmpConn = new _packages2.default.Connection();\n tmpConn.lineSegments = new _packages2.default.util.ArrayList();\n tmpConn.vertices = new _packages2.default.util.ArrayList();\n tmpConn.sourcePort = conn.sourcePort;\n tmpConn.targetPort = conn.targetPort;\n tmpConn._routingMetaData = { routedByUserInteraction: false, fromDir: -1, toDir: -1 };\n this.route(tmpConn, { oldVertices: new _packages2.default.util.ArrayList() });\n var curSegmentCount = conn.getVertices().getSize() - 1;\n var minSegmentCount = tmpConn.getVertices().getSize() - 1;\n if (curSegmentCount <= minSegmentCount) {\n return false;\n }\n }\n\n return true;\n },\n\n /**\r\n * @method\r\n *\r\n * The draw2d.Connection delegates the drag operation to the router. The router can\r\n * handle the different constraints of the connection and just drag&drop a single segment\r\n * instead of the complete connection.\r\n *\r\n * @param {draw2d.shape.basic.Line} line the related line to handle\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n *\r\n * @since 6.1.0\r\n */\n onDrag: function onDrag(line, dx, dy, dx2, dy2) {\n var i = 0;\n // Connection is dragged by source and origin port movement\n // or MultiSelection in this case we drag the complete\n // connection\n if (line.draggedSegment === null) {\n var count = line.getVertices().getSize() - 1;\n for (i = 1; i < count; i++) {\n line.getVertex(i).translate(dx2, dy2);\n }\n return;\n }\n\n // don't drag start/end segments. This segments are bounded to the related\n // ports.\n if (line.draggedSegment.index === 0 || line.draggedSegment.index === line.getSegments().getSize() - 1) {\n return;\n }\n\n line._routingMetaData.routedByUserInteraction = true;\n\n var p0 = line.draggedSegment.start;\n var p1 = line.draggedSegment.end;\n i = line.draggedSegment.index;\n var lp0 = line.getVertices().first();\n var lp1 = line.getVertices().last();\n\n // horizontal segment movement\n // x Py\n // .\n // P0 .\n // +---------------------------+ P1\n // .\n // .\n // x Px\n //\n var distance = 0;\n if (p0.y === p1.y) {\n // ensure that the segment is the min distance away from the source/target port\n // (Px is endpoints of the connection and bounded to a port)\n if (i === 1) distance = p0.y - lp0.y;\n // (Py is endpoints of the connection and bounded to a port)\n if (i === line.getSegments().getSize() - 2) distance = p1.y - lp1.y;\n\n if (distance < 0 && dy2 > 0) {\n dy2 = Math.min(dy2, -distance - this.MINDIST);\n } else if (distance > 0 && dy2 < 0) {\n dy2 = -Math.min(-dy2, distance - this.MINDIST);\n }\n\n line.getVertex(i).translate(0, dy2);\n line.getVertex(i + 1).translate(0, dy2);\n }\n // vertical segment movement\n //\n else if (p0.x === p1.x) {\n // ensure that the segment is the min distance away from the source/target port\n //\n if (i === 1) {\n distance = p0.x - lp0.x;\n if (distance < 0 && dx2 > 0) {\n dx2 = Math.min(dx2, -distance - this.MINDIST);\n } else if (distance > 0 && dx2 < 0) {\n dx2 = -Math.min(-dx2, distance - this.MINDIST);\n }\n }\n\n // we need this additional test too. No \"else if\" because the special\n // case of \"index===1\". In this case the segment can be the last AND first\n // segment if the connection has only three segments at all.\n //\n if (i === line.getSegments().getSize() - 2) {\n distance = p1.x - lp1.x;\n if (distance < 0 && dx2 > 0) {\n dx2 = Math.min(dx2, -distance - this.MINDIST);\n } else if (distance > 0 && dx2 < 0) {\n dx2 = -Math.min(-dx2, distance - this.MINDIST);\n }\n }\n\n line.getVertex(i).translate(dx2, 0);\n line.getVertex(i + 1).translate(dx2, 0);\n }\n },\n\n /**\r\n * @method\r\n * Called by the connection if the vertices set outside.\r\n * This enforce the router to avoid full autoroute. E.g. InteractiveManhattanRouter\r\n *\r\n * @protected\r\n */\n verticesSet: function verticesSet(conn) {\n conn._routingMetaData.routedByUserInteraction = true;\n if (conn.getSource() !== null && conn.getTarget() !== null) {\n conn._routingMetaData.fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n conn._routingMetaData.toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n }\n },\n\n /**\r\n * @method\r\n * Tweak or enrich the polyline persistence data with routing information\r\n *\r\n * @since 2.10.0\r\n * @param {draw2d.shape.basic.PolyLine} line\r\n * @param {Object} memento The memento data of the polyline\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes(line, memento) {\n memento.vertex = [];\n\n line.getVertices().each(function (i, e) {\n memento.vertex.push({ x: e.x, y: e.y });\n });\n memento.routingMetaData = (0, _extend2.default)({}, line._routingMetaData);\n\n return memento;\n },\n\n /**\r\n * @method\r\n * set the attributes for the polyline with routing information of the interactive manhattan router.\r\n *\r\n * @since 4..0.0\r\n * @param {Object} memento\r\n */\n setPersistentAttributes: function setPersistentAttributes(line, memento) {\n // restore the points from the JSON data and add them to the polyline\n //\n if (Array.isArray(memento.vertex)) {\n\n line.oldPoint = null;\n line.lineSegments = new _packages2.default.util.ArrayList();\n\n line.setVertices(memento.vertex);\n\n /*\r\n line.vertices = new draw2d.util.ArrayList();\r\n $.each(memento.vertex, function(i,e){\r\n line.addPoint(e.x, e.y);\r\n });\r\n */\n }\n\n if (typeof memento.routingMetaData !== \"undefined\") {\n line._routingMetaData = (0, _extend2.default)({}, memento.routingMetaData);\n }\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/layout/connection/ManhattanBridgedConnectionRouter.js\":\n/*!*******************************************************************!*\\\n !*** ./src/layout/connection/ManhattanBridgedConnectionRouter.js ***!\n \\*******************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.ManhattanBridgedConnectionRouter = _packages2.default.layout.connection.ManhattanConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.ManhattanBridgedConnectionRouter\",\n\n BRIDGE_HORIZONTAL_LR: \" r 0 0 3 -4 7 -4 10 0 13 0 \", // Left to right\n BRIDGE_HORIZONTAL_RL: \" r 0 0 -3 -4 -7 -4 -10 0 -13 0 \", // right to left\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(conn, routingHints) {\n var _this = this;\n\n var fromPt = conn.getStartPoint();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPoint();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n // calculate the lines between the two points.\n //\n this._route(conn, toPt, toDir, fromPt, fromDir);\n\n // calculate the path string for the SVG rendering\n //\n var intersectionsASC = conn.getCanvas().getIntersection(conn).sort(\"x\");\n var intersectionsDESC = intersectionsASC.clone().reverse();\n\n var intersectionForCalc = intersectionsASC;\n\n // ATTENTION: we cast all x/y coordinates to int and add 0.5 to avoid subpixel rendering of\n // the connection. The 1px or 2px lines look much clearer than before.\n //\n var ps = conn.getVertices();\n var p = ps.get(0);\n var path = [\"M\", (p.x | 0) + 0.5, \" \", (p.y | 0) + 0.5];\n var oldP = p;\n\n var _loop = function _loop(i) {\n p = ps.get(i);\n\n // check for intersection and paint a bridge if required\n // line goes from left to right\n //\n var bridgeWidth = 5;\n var bridgeCode = _this.BRIDGE_HORIZONTAL_LR;\n\n // line goes from right->left. Inverse the bridge and the bridgeWidth\n //\n if (oldP.x > p.x) {\n intersectionForCalc = intersectionsDESC;\n bridgeCode = _this.BRIDGE_HORIZONTAL_RL;\n bridgeWidth = -bridgeWidth;\n }\n\n intersectionForCalc.each(function (ii, interP) {\n if (interP.justTouching === false && _packages2.default.shape.basic.Line.hit(1, oldP.x, oldP.y, p.x, p.y, interP.x, interP.y) === true) {\n // we draw only horizontal bridges. Just a design decision\n //\n if (p.y === interP.y) {\n path.push(\" L\", (interP.x - bridgeWidth | 0) + 0.5, \" \", (interP.y | 0) + 0.5);\n path.push(bridgeCode);\n }\n }\n });\n\n path.push(\" L\", (p.x | 0) + 0.5, \" \", (p.y | 0) + 0.5);\n oldP = p;\n };\n\n for (var i = 1; i < ps.getSize(); i++) {\n _loop(i);\n }\n conn.svgPathString = path.join(\"\");\n }\n\n}); /**\r\n * @class draw2d.layout.connection.ManhattanBridgedConnectionRouter\r\n * Provides a {@link draw2d.Connection} with an orthogonal route between the Connection's source\r\n * and target anchors.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ManhattanConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/ManhattanConnectionRouter.js\":\n/*!************************************************************!*\\\n !*** ./src/layout/connection/ManhattanConnectionRouter.js ***!\n \\************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.ManhattanConnectionRouter = _packages2.default.layout.connection.ConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.ManhattanConnectionRouter\",\n\n MINDIST: 20,\n TOL: 0.1,\n TOLxTOL: 0.01,\n TOGGLE_DIST: 20,\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(conn, routingHints) {\n var fromPt = conn.getStartPosition();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPosition();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n // calculate the lines between the two points.\n //\n this._route(conn, toPt, toDir, fromPt, fromDir);\n this._paint(conn);\n },\n\n /**\r\n * @method\r\n * Internal routing algorithm.\r\n *\r\n * @private\r\n * @param {draw2d.Connection} conn\r\n * @param {draw2d.geo.Point} fromPt\r\n * @param {Number} fromDir\r\n * @param {draw2d.geo.Point} toPt\r\n * @param {Number} toDir\r\n */\n _route: function _route(conn, fromPt, fromDir, toPt, toDir) {\n // fromPt is an x,y to start from.\n // fromDir is an angle that the first link must\n //\n var UP = _packages2.default.geo.Rectangle.DIRECTION_UP;\n var RIGHT = _packages2.default.geo.Rectangle.DIRECTION_RIGHT;\n var DOWN = _packages2.default.geo.Rectangle.DIRECTION_DOWN;\n var LEFT = _packages2.default.geo.Rectangle.DIRECTION_LEFT;\n\n var xDiff = fromPt.x - toPt.x;\n var yDiff = fromPt.y - toPt.y;\n var point = void 0;\n var dir = void 0;\n var pos = void 0;\n\n if (xDiff * xDiff < this.TOLxTOL && yDiff * yDiff < this.TOLxTOL) {\n conn.addPoint(new _packages2.default.geo.Point(toPt.x, toPt.y));\n return;\n }\n\n if (fromDir === LEFT) {\n if (xDiff > 0 && yDiff * yDiff < this.TOL && toDir === RIGHT) {\n point = toPt;\n dir = toDir;\n } else {\n if (xDiff < 0) {\n point = new _packages2.default.geo.Point(fromPt.x - this.MINDIST, fromPt.y);\n } else if (yDiff > 0 && toDir === DOWN || yDiff < 0 && toDir === UP) {\n point = new _packages2.default.geo.Point(toPt.x, fromPt.y);\n } else if (fromDir === toDir) {\n pos = Math.min(fromPt.x, toPt.x) - this.MINDIST;\n point = new _packages2.default.geo.Point(pos, fromPt.y);\n } else {\n point = new _packages2.default.geo.Point(fromPt.x - xDiff / 2, fromPt.y);\n }\n\n if (yDiff > 0) {\n dir = UP;\n } else {\n dir = DOWN;\n }\n }\n } else if (fromDir === RIGHT) {\n if (xDiff < 0 && yDiff * yDiff < this.TOL && toDir === LEFT) {\n point = toPt;\n dir = toDir;\n } else {\n if (xDiff > 0) {\n point = new _packages2.default.geo.Point(fromPt.x + this.MINDIST, fromPt.y);\n } else if (yDiff > 0 && toDir === DOWN || yDiff < 0 && toDir === UP) {\n point = new _packages2.default.geo.Point(toPt.x, fromPt.y);\n } else if (fromDir === toDir) {\n pos = Math.max(fromPt.x, toPt.x) + this.MINDIST;\n point = new _packages2.default.geo.Point(pos, fromPt.y);\n } else {\n point = new _packages2.default.geo.Point(fromPt.x - xDiff / 2, fromPt.y);\n }\n\n if (yDiff > 0) {\n dir = UP;\n } else {\n dir = DOWN;\n }\n }\n } else if (fromDir === DOWN) {\n if (xDiff * xDiff < this.TOL && yDiff < 0 && toDir === UP) {\n point = toPt;\n dir = toDir;\n } else {\n if (yDiff > 0) {\n point = new _packages2.default.geo.Point(fromPt.x, fromPt.y + this.MINDIST);\n } else if (xDiff > 0 && toDir === RIGHT || xDiff < 0 && toDir === LEFT) {\n point = new _packages2.default.geo.Point(fromPt.x, toPt.y);\n } else if (fromDir === toDir) {\n pos = Math.max(fromPt.y, toPt.y) + this.MINDIST;\n point = new _packages2.default.geo.Point(fromPt.x, pos);\n } else {\n point = new _packages2.default.geo.Point(fromPt.x, fromPt.y - yDiff / 2);\n }\n\n if (xDiff > 0) {\n dir = LEFT;\n } else {\n dir = RIGHT;\n }\n }\n } else if (fromDir === UP) {\n if (xDiff * xDiff < this.TOL && yDiff > 0 && toDir === DOWN) {\n point = toPt;\n dir = toDir;\n } else {\n if (yDiff < 0) {\n point = new _packages2.default.geo.Point(fromPt.x, fromPt.y - this.MINDIST);\n } else if (xDiff > 0 && toDir === RIGHT || xDiff < 0 && toDir === LEFT) {\n point = new _packages2.default.geo.Point(fromPt.x, toPt.y);\n } else if (fromDir === toDir) {\n pos = Math.min(fromPt.y, toPt.y) - this.MINDIST;\n point = new _packages2.default.geo.Point(fromPt.x, pos);\n } else {\n point = new _packages2.default.geo.Point(fromPt.x, fromPt.y - yDiff / 2);\n }\n\n if (xDiff > 0) {\n dir = LEFT;\n } else {\n dir = RIGHT;\n }\n }\n }\n this._route(conn, point, dir, toPt, toDir);\n conn.addPoint(fromPt);\n }\n\n}); /**\r\n * @class draw2d.layout.connection.ManhattanConnectionRouter\r\n * Provides a {@link draw2d.Connection} with an orthogonal route between the Connection's source\r\n * and target anchors.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // Override the default connection type. This is used during drag&drop operations of ports.\r\n * //\r\n * let createConnection=function(sourcePort, targetPort){\r\n * // return my special kind of connection\r\n * let con = new draw2d.Connection();\r\n * con.setRouter(new draw2d.layout.connection.ManhattanConnectionRouter());\r\n * return con;\r\n * };\r\n *\r\n * // Install a special policy into the canvas to use my own implementation of connection\r\n * // if we drag&drop a port\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * let end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/MazeConnectionRouter.js\":\n/*!*******************************************************!*\\\n !*** ./src/layout/connection/MazeConnectionRouter.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; /**\r\n * @class draw2d.layout.connection.MazeConnectionRouter\r\n * <b>BETA VERSION. Not for production!!!<br></b>\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ConnectionRouter\r\n */\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar ROUTER_RECTS = null;\n\n_packages2.default.layout.connection.MazeConnectionRouter = _packages2.default.layout.connection.ConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.MazeConnectionRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n\n this.useSpline = false;\n this.useSimplify = true;\n this.useSimplifyValue = 2;\n this.useDebug = false;\n this.useShift = 4;\n this.portOutletOffset = 15;\n\n // \tthis.finder = new PF.AStarFinder();\n // this.finder = new PF.AStarFinder({ allowDiagonal: true, dontCrossCorners: true});\n // this.finder = new PF.AStarFinder({ allowDiagonal: false});\n // this.finder = new PF.BiBreadthFirstFinder({ allowDiagonal: false});\n // this.finder = new PF.BreadthFirstFinder({ allowDiagonal: false});\n this.finder = new PF.JumpPointFinder({ allowDiagonal: false, dontCrossCorners: true });\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(conn, routingHints) {\n var fromPt = conn.getStartPoint();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPoint();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n // calculate the lines between the two points.\n //\n this._route(conn, toPt, toDir, fromPt, fromDir);\n this._paint(conn);\n },\n\n /**\r\n * @method\r\n * Internal routing algorithm.\r\n * * <p>\r\n * Possible values:\r\n * <ul>\r\n * <li>up -> 0</li>\r\n * <li>right -> 1</li>\r\n * <li>down -> 2</li>\r\n * <li>left -> 3</li>\r\n * </ul>\r\n * <p>\r\n * @private\r\n * @param {draw2d.Connection} conn\r\n * @param {draw2d.geo.Point} fromPt\r\n * @param {Number} fromDir\r\n * @param {draw2d.geo.Point} toPt\r\n * @param {Number} toDir\r\n */\n _route: function _route(conn, fromPt, fromDir, toPt, toDir) {\n var shift = this.useShift;\n\n var oldToPt = toPt;\n var oldFromPt = fromPt;\n\n // move the points with an offset in the prefered routing direction of the ports\n // to avoid that the routed connection is sticking on one side of the figure.\n //\n fromPt = this.getAdjustedPoint(fromPt, fromDir, this.portOutletOffset);\n toPt = this.getAdjustedPoint(toPt, toDir, this.portOutletOffset);\n\n var grid = this.generateNoGoGrid(conn, fromPt, fromDir, toPt, toDir);\n\n // 4. Calculate the shortest path from source to target based on the grid\n //\n var path = this.finder.findPath(fromPt.x >> shift, fromPt.y >> shift, toPt.x >> shift, toPt.y >> shift, grid);\n\n // transfer the path from the grid based coordinates back to the real coordinates\n //\n path.forEach(function (e) {\n e.x = e[0] = e[0] << shift;\n e.y = e[1] = e[1] << shift;\n });\n\n // 5. paint the \"no go\" area in read if we are in debug mode\n //\n if (this.useDebug) {\n if (ROUTER_RECTS !== null) {\n ROUTER_RECTS.remove();\n }\n ROUTER_RECTS = conn.canvas.paper.set();\n\n for (var i = 0; i < grid.width; i++) {\n for (var j = 0; j < grid.height; j++) {\n if (!grid.isWalkableAt(i, j)) ROUTER_RECTS.push(conn.canvas.paper.rect(i << shift, j << shift, 1 << shift, 1 << shift).attr({\n \"fill\": \"red\",\n \"opacity\": \"0.1\"\n }));\n }\n }\n ROUTER_RECTS.push(conn.canvas.paper.rect(fromPt.x - 3, fromPt.y - 3, 6, 6).attr({\n \"fill\": \"#ff0000\",\n \"opacity\": \"0.8\"\n }));\n ROUTER_RECTS.push(conn.canvas.paper.rect(toPt.x - 3, toPt.y - 3, 6, 6).attr({\n \"fill\": \"#ff0000\",\n \"opacity\": \"0.8\"\n }));\n\n // paint the original calculated path without any simplification in BLUE\n path.forEach(function (e) {\n ROUTER_RECTS.push(conn.canvas.paper.rect(e.x - 3, e.y - 3, 6, 6).attr({ \"fill\": \"#0000ff\", \"opacity\": \"0.8\" }));\n });\n var p = path[0];\n var svgPathBefore = [\"M\", p.x, \" \", p.y];\n for (var _i = 1; _i < path.length; _i++) {\n p = path[_i];\n svgPathBefore.push(\"L\", p.x, \" \", p.y);\n }\n svgPathBefore = svgPathBefore.join(\"\");\n ROUTER_RECTS.push(conn.canvas.paper.path(svgPathBefore).attr({ \"stroke\": \"#0000ff\" }));\n }\n\n this.adjustPath(fromPt, path, fromDir);\n path.reverse();\n this.adjustPath(toPt, path, toDir);\n path.reverse();\n\n path.forEach(function (e) {\n e.x = e[0];\n e.y = e[1];\n });\n\n if (this.useSpline) {\n var _p = new _packages2.default.util.ArrayList();\n _p.add(oldFromPt);\n path.forEach(function (e) {\n _p.add(new _packages2.default.geo.Point(e[0], e[1]));\n });\n _p.add(oldToPt);\n\n if (this.useDebug) {\n path.forEach(function (e) {\n ROUTER_RECTS.push(conn.canvas.paper.rect(e.x - 3, e.y - 3, 6, 6).attr({ \"fill\": \"#00ff00\", \"opacity\": \"0.8\" }));\n });\n var pt = path[0];\n var _svgPathBefore = [\"M\", pt.x, \" \", pt.y];\n for (var _i2 = 1; _i2 < path.length; _i2++) {\n pt = path[_i2];\n _svgPathBefore.push(\"L\", pt.x, \" \", pt.y);\n }\n _svgPathBefore = _svgPathBefore.join(\"\");\n ROUTER_RECTS.push(conn.canvas.paper.path(_svgPathBefore).attr({ \"stroke\": \"#00ff00\" }));\n }\n\n this.spline = new _packages2.default.util.spline.CubicSpline();\n var splinePoints = this.spline.generate(_p, 8);\n\n if (this.useSimplify) {\n path = [];\n splinePoints.each(function (i, e) {\n path.push({ x: e.x, y: e.y });\n });\n path = this.simplify(path, this.useSimplifyValue, true);\n\n path.forEach(function (e) {\n conn.addPoint(e.x, e.y);\n });\n } else {\n splinePoints.each(function (i, e) {\n conn.addPoint(e);\n });\n }\n } else {\n if (this.useSimplify) {\n path = this.simplify(path, this.useSimplifyValue, true);\n }\n\n if (this.useDebug) {\n path.forEach(function (e) {\n ROUTER_RECTS.push(conn.canvas.paper.rect(e.x - 3, e.y - 3, 6, 6).attr({ \"fill\": \"#00ff00\", \"opacity\": \"0.8\" }));\n });\n var _p2 = path[0];\n var _svgPathBefore2 = [\"M\", _p2.x, \" \", _p2.y];\n for (var _i3 = 1; _i3 < path.length; _i3++) {\n _p2 = path[_i3];\n _svgPathBefore2.push(\"L\", _p2.x, \" \", _p2.y);\n }\n _svgPathBefore2 = _svgPathBefore2.join(\"\");\n ROUTER_RECTS.push(conn.canvas.paper.path(_svgPathBefore2).attr({ \"stroke\": \"#00ff00\" }));\n }\n\n conn.addPoint(oldFromPt);\n path.forEach(function (e) {\n conn.addPoint(e[0], e[1]);\n });\n conn.addPoint(oldToPt);\n }\n },\n\n /**\r\n * @method\r\n * Generate a grid base no go map required for the path finding algorithm\r\n *\r\n * @param conn\r\n * @returns {PF.Grid}\r\n */\n generateNoGoGrid: function generateNoGoGrid(conn, fromPt, fromDir, toPt, toDir) {\n var shift = this.useShift;\n var oneShift2 = (1 << shift) / 2;\n\n // 1. generate a map with all \"no go\" areas. The bounding box of the shapes defines\n // the no go areas.\n //\n var canvasWidth = conn.getCanvas().paper.width >> shift;\n var canvasHeight = conn.getCanvas().paper.height >> shift;\n var grid = new PF.Grid(canvasWidth, canvasHeight);\n var figures = conn.getCanvas().getFigures();\n figures.each(function (i, e) {\n var box = e.getBoundingBox();\n // remove shapes which are hit by the input or output ports. It is not possible to route\n // out from a not walkable area\n if (box.hitTest(fromPt.x, fromPt.y) === true || box.hitTest(toPt.x, toPt.y)) {\n return;\n }\n\n var x = box.x >> shift;\n var y = box.y >> shift;\n if (x < 1 || y < 1) {\n return;\n }\n var r_orig = box.x + box.w + oneShift2 >> shift;\n var b_orig = box.y + box.h + oneShift2 >> shift;\n for (var _i4 = x; _i4 <= r_orig; _i4++) {\n for (var j = y; j <= b_orig; j++) {\n grid.setWalkableAt(_i4, j, false);\n }\n }\n });\n\n // 3. make the are walkable on the edge of the port side. Otherwise we a\n // an enclosed area around the port if we are very close to another shape\n //\n var box = conn.getSource().getParent().getBoundingBox();\n if (toDir === 1 || toDir === 3) {\n var y = box.y >> shift;\n if (y > 0) {\n var b_orig = box.y + box.h;\n var i = toPt.x >> shift;\n\n for (var j = y - 1; j << shift <= b_orig; j++) {\n grid.setWalkableAt(i, j, true);\n }\n }\n } else {\n var x = box.x >> shift;\n if (x > 0) {\n var r_orig = box.x + box.w;\n var _j = toPt.x >> shift;\n for (var _i5 = x - 1; _i5 << shift <= r_orig; _i5++) {\n grid.setWalkableAt(_i5, _j, true);\n }\n }\n }\n\n box = conn.getTarget().getParent().getBoundingBox();\n if (fromDir === 1 || fromDir === 3) {\n var _y = box.y >> shift;\n if (_y > 0) {\n var _b_orig = box.y + box.h;\n var _i6 = fromPt.x >> shift;\n for (var _j2 = _y - 1; _j2 << shift <= _b_orig; _j2++) {\n grid.setWalkableAt(_i6, _j2, true);\n }\n }\n } else {\n var _x = box.x >> shift;\n if (_x > 0) {\n var _r_orig = box.x + box.w;\n var _j3 = fromPt.x >> shift;\n for (var _i7 = _x - 1; _i7 << shift <= _r_orig; _i7++) {\n grid.setWalkableAt(_i7, _j3, true);\n }\n }\n }\n\n return grid;\n },\n\n /**\r\n * @method\r\n * move the point in the given direction with the given offset\r\n *\r\n * @param {draw2d.geo.Point} pt\r\n * @param {Number} direction\r\n * @param {Number} adjustment\r\n *\r\n * @returns {draw2d.geo.Point}\r\n */\n getAdjustedPoint: function getAdjustedPoint(pt, direction, adjustment) {\n\n switch (direction) {\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n return new _packages2.default.geo.Point(pt.x, pt.y - adjustment);\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n return new _packages2.default.geo.Point(pt.x + adjustment, pt.y);\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n return new _packages2.default.geo.Point(pt.x, pt.y + adjustment);\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n return new _packages2.default.geo.Point(pt.x - adjustment, pt.y);\n }\n },\n\n adjustPath: function adjustPath(pt, path, direction) {\n var shift = this.useShift;\n var x = pt.x >> shift;\n var y = pt.y >> shift;\n path.forEach(function (e) {\n if (y === e[1] >> shift) {\n e[1] = pt.y;\n } else {\n return false;\n }\n });\n path.forEach(function (e) {\n if (x === e[0] >> shift) {\n e[0] = pt.x;\n } else {\n return false;\n }\n });\n },\n\n getSquareDistance: function getSquareDistance(p1, p2) {\n // square distance between 2 points\n\n var dx = p1.x - p2.x,\n dy = p1.y - p2.y;\n\n return dx * dx + dy * dy;\n },\n\n getSquareSegmentDistance: function getSquareSegmentDistance(p, p1, p2) {\n // square distance from a point to a segment\n\n var x = p1.x,\n y = p1.y,\n dx = p2.x - x,\n dy = p2.y - y,\n t = void 0;\n\n if (dx !== 0 || dy !== 0) {\n\n t = ((p.x - x) * dx + (p.y - y) * dy) / (dx * dx + dy * dy);\n\n if (t > 1) {\n x = p2.x;\n y = p2.y;\n } else if (t > 0) {\n x += dx * t;\n y += dy * t;\n }\n }\n\n dx = p.x - x;\n dy = p.y - y;\n\n return dx * dx + dy * dy;\n },\n\n simplifyRadialDistance: function simplifyRadialDistance(points, sqTolerance) {\n // distance-based simplification\n\n var i = void 0,\n len = points.length,\n point = null,\n prevPoint = points[0],\n newPoints = [prevPoint];\n\n for (i = 1; i < len; i++) {\n point = points[i];\n\n if (this.getSquareDistance(point, prevPoint) > sqTolerance) {\n newPoints.push(point);\n prevPoint = point;\n }\n }\n\n if (prevPoint !== point) {\n newPoints.push(point);\n }\n\n return newPoints;\n },\n\n // simplification using optimized Douglas-Peucker algorithm with recursion elimination\n\n simplifyDouglasPeucker: function simplifyDouglasPeucker(points, sqTolerance) {\n\n var len = points.length,\n MarkerArray = (typeof Uint8Array === \"undefined\" ? \"undefined\" : _typeof(Uint8Array)) !== undefined + '' ? Uint8Array : Array,\n markers = new MarkerArray(len),\n first = 0,\n last = len - 1,\n i = void 0,\n maxSqDist = void 0,\n sqDist = void 0,\n index = void 0,\n firstStack = [],\n lastStack = [],\n newPoints = [];\n\n markers[first] = markers[last] = 1;\n\n while (last) {\n\n maxSqDist = 0;\n\n for (i = first + 1; i < last; i++) {\n sqDist = this.getSquareSegmentDistance(points[i], points[first], points[last]);\n\n if (sqDist > maxSqDist) {\n index = i;\n maxSqDist = sqDist;\n }\n }\n\n if (maxSqDist > sqTolerance) {\n markers[index] = 1;\n\n firstStack.push(first);\n lastStack.push(index);\n\n firstStack.push(index);\n lastStack.push(last);\n }\n\n first = firstStack.pop();\n last = lastStack.pop();\n }\n\n for (i = 0; i < len; i++) {\n if (markers[i]) {\n newPoints.push(points[i]);\n }\n }\n\n return newPoints;\n },\n\n simplify: function simplify(points, tolerance, highestQuality) {\n\n var sqTolerance = tolerance !== undefined ? tolerance * tolerance : 1;\n\n if (!highestQuality) {\n points = this.simplifyRadialDistance(points, sqTolerance);\n }\n points = this.simplifyDouglasPeucker(points, sqTolerance);\n\n return points;\n }\n});\n\n/***/ }),\n\n/***/ \"./src/layout/connection/MuteableManhattanConnectionRouter.js\":\n/*!********************************************************************!*\\\n !*** ./src/layout/connection/MuteableManhattanConnectionRouter.js ***!\n \\********************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.MuteableManhattanConnectionRouter = _packages2.default.layout.connection.ManhattanConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.MuteableManhattanConnectionRouter\",\n\n UP: new _packages2.default.geo.Ray(0, -1),\n DOWN: new _packages2.default.geo.Ray(0, 1),\n LEFT: new _packages2.default.geo.Ray(-1, 0),\n RIGHT: new _packages2.default.geo.Ray(1, 0),\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n\n this.rowsUsed = {}; //new HashMap<Integer, Integer>();\n this.colsUsed = {}; //new HashMap<Integer, Integer>();\n this.constraints = {}; //new HashMap<Connection, Object>();\n this.reservedInfo = {}; //new HashMap<Connection, ReservedInfo>();\n },\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(conn, routingHints) {\n this.rowsUsed = {}; //new HashMap<Integer, Integer>();\n this.colsUsed = {}; //new HashMap<Integer, Integer>();\n this.constraints = {}; //new HashMap<Connection, Object>();\n this.reservedInfo = {}; //new HashMap<Connection, ReservedInfo>();\n\n var canvas = conn.getCanvas();\n var i = void 0;\n\n var startPoint = conn.getStartPoint();\n var endPoint = conn.getEndPoint();\n\n var start = new _packages2.default.geo.Ray(startPoint);\n var end = new _packages2.default.geo.Ray(endPoint);\n var average = new _packages2.default.geo.Ray((start.x + end.x) / 2, (start.y + end.y) / 2);\n\n var direction = new _packages2.default.geo.Ray(end.x - start.x, end.y - start.y);\n var startNormal = this.getStartDirection(conn);\n var endNormal = this.getEndDirection(conn);\n\n var positions = new _packages2.default.util.ArrayList();\n var horizontal = startNormal.isHorizontal();\n\n if (horizontal) {\n positions.add(start.y);\n } else {\n positions.add(start.x);\n }\n\n horizontal = !horizontal;\n\n // dot product is zero if the vector orthogonal (90°)\n if (startNormal.dot(endNormal) === 0) {\n if (startNormal.dot(direction) >= 0 && endNormal.dot(direction) <= 0) {\n // 0\n } else {\n\n // 2\n if (startNormal.dot(direction) < 0) i = startNormal.similarity(start.translated(startNormal.scaled(10)));else {\n if (horizontal) i = average.y;else i = average.x;\n }\n\n positions.add(i);\n horizontal = !horizontal;\n\n if (endNormal.dot(direction) > 0) {\n i = endNormal.similarity(end.translated(endNormal.scaled(10)));\n } else {\n if (horizontal) {\n i = average.y;\n } else {\n i = average.x;\n }\n }\n positions.add(i);\n horizontal = !horizontal;\n }\n } else {\n if (startNormal.dot(endNormal) > 0) {\n //1\n if (startNormal.dot(direction) >= 0) i = startNormal.similarity(start.translated(startNormal.scaled(10)));else i = endNormal.similarity(end.translated(endNormal.scaled(10)));\n positions.add(i);\n horizontal = !horizontal;\n } else {\n //3 or 1\n if (startNormal.dot(direction) < 0) {\n i = startNormal.similarity(start.translated(startNormal.scaled(10)));\n positions.add(i);\n horizontal = !horizontal;\n }\n\n // my tweak to route SCA wires starts\n if (this.isCycle(conn)) {\n if (horizontal) i = conn.getSource().getParent().getBoundingBox().getTop() - 10; // * index;\n else i = conn.getSource().getParent().getBoundingBox().getRight() + 10; // * index;\n } else {\n if (horizontal) {\n var j = average.y;\n\n var next = endNormal.similarity(end.translated(endNormal.scaled(10)));\n\n var trial = new _packages2.default.geo.Ray(positions.get(positions.getSize() - 1), j);\n var figure = this.findFirstFigureAtStraightLine(canvas, trial, this.LEFT, _packages2.default.util.ArrayList.EMPTY_LIST);\n\n while (figure != null && figure.getBoundingBox().x + figure.getBoundingBox().width > next) {\n j = figure.getBoundingBox().y + figure.getBoundingBox().height + 5;\n trial.y = j;\n figure = this.findFirstFigureAtStraightLine(canvas, trial, this.LEFT, _packages2.default.util.ArrayList.EMPTY_LIST);\n }\n\n i = j;\n } else {\n var _figure = this.findFirstFigureAtStraightLine(canvas, start, this.RIGHT, this.getExcludingFigures(conn));\n if (_figure == null) i = average.x;else {\n i = Math.min(average.x, start.translated(new _packages2.default.geo.Ray(3 * (_figure.getBoundingBox().x - start.x) / 4, 0)).x);\n i = Math.max(start.x, i);\n }\n i = this.adjust(conn, i);\n }\n }\n // my tweak to route SCA wires ends\n positions.add(i);\n horizontal = !horizontal;\n }\n }\n if (horizontal) positions.add(end.y);else positions.add(end.x);\n\n this.processPositions(start, end, positions, startNormal.isHorizontal(), conn);\n\n this._paint(conn);\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Connection} connection\r\n * @param {Number} r\r\n * @param {Number} n\r\n * @param {Number} x\r\n *\r\n * @private\r\n */\n getColumnNear: function getColumnNear(connection, r, n, x) {\n var min = Math.min(n, x);\n var max = Math.max(n, x);\n\n if (min > r) {\n max = min;\n min = r - (min - r);\n }\n if (max < r) {\n min = max;\n max = r + (r - max);\n }\n\n var proximity = 0;\n var direction = -1;\n if (r % 6 !== 0) {\n r = r - r % 6;\n }\n\n var i = void 0;\n while (proximity < r) {\n i = parseInt(r + proximity * direction);\n if (!(i in this.colsUsed)) {\n this.colsUsed[i] = i;\n this.reserveColumn(connection, i);\n return i;\n }\n\n if (i <= min) {\n return i + 6;\n }\n\n if (i >= max) {\n return i - 6;\n }\n\n if (direction === 1) {\n direction = -1;\n } else {\n direction = 1;\n proximity += 6;\n }\n }\n return r;\n },\n\n getRowNear: function getRowNear(connection, r, n, x) {\n var min = Math.min(n, x);\n var max = Math.max(n, x);\n\n if (min > r) {\n max = min;\n min = r - (min - r);\n }\n if (max < r) {\n min = max;\n max = r + (r - max);\n }\n\n var proximity = 0;\n var direction = -1;\n if (r % 6 !== 0) {\n r = r - r % 6;\n }\n\n var i = void 0;\n while (proximity < r) {\n i = parseInt(r + proximity * direction);\n if (!(i in this.rowsUsed)) {\n this.rowsUsed[i] = i;\n this.reserveRow(connection, i);\n return i;\n }\n if (i <= min) return i + 6;\n if (i >= max) return i - 6;\n if (direction === 1) direction = -1;else {\n direction = 1;\n proximity += 6;\n }\n }\n return r;\n },\n\n /**\r\n * <li>up -> 0</li>\r\n * <li>right -> 1</li>\r\n * <li>down -> 2</li>\r\n * <li>left -> 3</li>\r\n **/\n getEndDirection: function getEndDirection(conn) {\n var p = conn.getEndPoint();\n var rect = conn.getTarget().getParent().getBoundingBox();\n return this.getDirection(rect, p);\n },\n\n /**\r\n * <li>up -> 0</li>\r\n * <li>right -> 1</li>\r\n * <li>down -> 2</li>\r\n * <li>left -> 3</li>\r\n **/\n getStartDirection: function getStartDirection(conn) {\n var p = conn.getStartPoint();\n var rect = conn.getSource().getParent().getBoundingBox();\n return this.getDirection(rect, p);\n },\n\n /**\r\n * Returns the direction the point <i>p</i> is in relation to the given rectangle.\r\n * Possible values are LEFT (-1,0), RIGHT (1,0), UP (0,-1) and DOWN (0,1).\r\n *\r\n * @param r the rectangle\r\n * @param p the point\r\n * @return the direction from <i>r</i> to <i>p</i>\r\n */\n getDirection: function getDirection(r, p) {\n var i = Math.abs(r.y - p.y);\n var distance = Math.abs(r.x - p.x);\n var direction = this.LEFT;\n\n if (i <= distance) {\n distance = i;\n direction = this.UP;\n }\n\n i = Math.abs(r.getBottom() - p.y);\n if (i <= distance) {\n distance = i;\n direction = this.DOWN;\n }\n\n i = Math.abs(r.getRight() - p.x);\n if (i < distance) {\n direction = this.RIGHT;\n }\n\n return direction;\n },\n\n processPositions: function processPositions( /*Ray*/start, /*Ray*/end, /*List*/positions, /*boolean*/horizontal, /*Connection*/conn) {\n this.removeReservedLines(conn);\n\n var pos = [];\n if (horizontal) pos.push(start.x);else pos.push(start.y);\n var i = void 0;\n for (i = 0; i < positions.getSize(); i++) {\n pos.push(positions.get(i));\n }\n\n if (horizontal === (positions.getSize() % 2 === 1)) {\n pos.push(end.x);\n } else {\n pos.push(end.y);\n }\n\n conn.addPoint(new _packages2.default.geo.Point(start.x, start.y));\n var p = void 0;\n var current = void 0,\n prev = void 0,\n min = void 0,\n max = void 0;\n var adjust = void 0;\n for (i = 2; i < pos.length - 1; i++) {\n horizontal = !horizontal;\n prev = pos[i - 1];\n current = pos[i];\n\n adjust = i !== pos.length - 2;\n if (horizontal) {\n if (adjust) {\n min = pos[i - 2];\n max = pos[i + 2];\n pos[i] = current = this.getRowNear(conn, current, min, max);\n }\n p = new _packages2.default.geo.Point(prev, current);\n } else {\n if (adjust) {\n min = pos[i - 2];\n max = pos[i + 2];\n pos[i] = current = this.getColumnNear(conn, current, min, max);\n }\n p = new _packages2.default.geo.Point(current, prev);\n }\n conn.addPoint(p);\n }\n conn.addPoint(new _packages2.default.geo.Point(end.x, end.y));\n },\n\n removeReservedLines: function removeReservedLines(connection) {\n var rInfo = this.reservedInfo[connection];\n if (typeof rInfo === \"undefined\" || rInfo === null) return;\n\n for (var i = 0; i < rInfo.reservedRows.getSize(); i++) {\n delete this.rowsUsed[rInfo.reservedRows.get(i)];\n }\n for (var _i = 0; _i < rInfo.reservedCols.getSize(); _i++) {\n delete this.colsUsed[rInfo.reservedCols.get(_i)];\n }\n delete this.reservedInfo[connection];\n },\n\n reserveColumn: function reserveColumn(connection, column) {\n var info = this.reservedInfo[connection];\n if (typeof info === \"undefined\" || info === null) {\n info = { reservedCols: new _packages2.default.util.ArrayList(), reservedRows: new _packages2.default.util.ArrayList() };\n this.reservedInfo[connection] = info;\n }\n info.reservedCols.add(column);\n },\n\n reserveRow: function reserveRow(connection, row) {\n var info = this.reservedInfo[connection];\n if (typeof info === \"undefined\" || info === null) {\n info = { reservedCols: new _packages2.default.util.ArrayList(), reservedRows: new _packages2.default.util.ArrayList() };\n this.reservedInfo[connection] = info;\n }\n info.reservedRows.add(row);\n },\n\n getConstraint: function getConstraint(connection) {\n return this.constraints[connection];\n },\n\n setConstraint: function setConstraint(connection, constraint) {\n this.constraints[connection] = constraint;\n },\n\n isCycle: function isCycle(conn) {\n var source = conn.getSource().getParent();\n var target = conn.getTarget().getParent();\n\n return source.id === target.id;\n },\n\n getExcludingFigures: function getExcludingFigures(conn) {\n var excluding = new _packages2.default.util.ArrayList();\n\n excluding.add(conn.getSource().getParent());\n excluding.add(conn.getTarget().getParent());\n\n return excluding;\n },\n\n findFirstFigureAtStraightLine: function findFirstFigureAtStraightLine(canvas, /*Ray*/start, /*Ray*/direction, /*List*/excluding) {\n var figure = null;\n\n var figures = canvas.getFigures();\n var _this = this;\n figures.each(function (i, child) {\n try {\n if (!excluding.contains(child)) {\n var rect = child.getBoundingBox();\n if (_this.LEFT.equals(direction)) {\n if (start.x > rect.x && start.y >= rect.y && start.y <= rect.y + rect.h) {\n if (figure === null || rect.x > figure.getBoundingBox().x) figure = child;\n }\n } else if (_this.RIGHT.equals(direction)) {\n if (start.x < rect.x + rect.w && start.y >= rect.y && start.y <= rect.y + rect.h) {\n if (figure == null || rect.x < figure.getBoundingBox().x) figure = child;\n }\n } else if (_this.UP.equals(direction)) {\n if (start.y > rect.y && start.x >= rect.x && start.x <= rect.x + rect.w) {\n if (figure === null || rect.y > figure.getBoundingBox().y) figure = child;\n }\n } else if (_this.DOWN.equals(direction)) {\n if (start.y < rect.y + rect.h && start.x >= rect.x && start.x <= rect.x + rect.w) {\n if (figure === null || rect.y < figure.getBoundingBox().y) figure = child;\n }\n }\n }\n } catch (exc) {\n console.log(exc);\n debugger;\n }\n });\n return figure;\n },\n\n adjust: function adjust(connection, col) {\n var column = col;\n\n var start = connection.getSource().getPosition();\n\n var connections = connection.getCanvas().getLines();\n connections.each(function (i, conn) {\n try {\n if (conn === connection) return;\n\n var end = conn.getTarget().getPosition();\n if (start.x < end.x && start.y === end.y) {\n if (conn.getVertices().getMidpoint().x <= col) column = conn.getVertices().getMidpoint().x - 5;\n }\n } catch (exc) {\n console.log(exc);\n debugger;\n }\n });\n return column;\n }\n\n}); /**\r\n * @class draw2d.layout.connection.MuteableManhattanConnectionRouter\r\n *\r\n * JUST FOR RESEARCH AT THE MOMENT!!!!!!\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ManhattanConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/RubberbandRouter.js\":\n/*!***************************************************!*\\\n !*** ./src/layout/connection/RubberbandRouter.js ***!\n \\***************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.RubberbandRouter = _packages2.default.layout.connection.ConnectionRouter.extend({\n\n NAME: \"draw2d.layout.connection.RubberbandRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * Invalidates the given Connection\r\n */\n invalidate: function invalidate() {},\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(connection, routingHints) {\n var thickness = 10;\n\n var start = connection.getStartPoint();\n var end = connection.getEndPoint();\n\n // 1. Calculate the vector AB→ by subtracting the coordinates of A from the coordinates of B.\n // Let's say you get (u,v) as the vector components.\n //\n // 2. normalize the vector (u,v,) to a length of |1|\n //\n // 3. The vector (−v,u) is AB→ rotated by 90 degrees counterclockwise. (Why? Look up \"rotation matrix\").\n //\n // 4. Add (−v,u) to A to get C. Also add (−v,u) to B to get D.\n\n var uv = end.subtract(start);\n var uv2 = uv.clone();\n var length = uv.length();\n\n var strength = 1 - Math.min(0.75, 1 / 500 * length);\n var first = start.lerp(end, 0.25 * strength); // go closer to the start point if the strength grows\n var second = start.lerp(end, 0.5);\n var third = start.lerp(end, 1 - 0.25 * strength); // go closer to the end point if the strengths grows\n\n thickness = Math.max(5, thickness * strength);\n\n uv.x = uv.x / length * thickness;\n uv.y = uv.y / length * thickness;\n\n uv2.x = uv2.x / length * (thickness * strength);\n uv2.y = uv2.y / length * (thickness * strength);\n\n // anchor points for the 180 arc at the start point of the connection\n //\n var start90 = new _packages2.default.geo.Point(-uv.y + start.x, uv.x + start.y);\n var start270 = new _packages2.default.geo.Point(uv.y + start.x, -uv.x + start.y);\n\n // anchor point in the first segment ( on the upside/downside) of the connection\n //\n var first90 = new _packages2.default.geo.Point(-uv2.y + first.x, uv2.x + first.y);\n var first270 = new _packages2.default.geo.Point(uv2.y + first.x, -uv2.x + first.y);\n\n // center upside/downside anchor point of the connection\n //\n var second90 = new _packages2.default.geo.Point(-uv2.y + second.x, uv2.x + second.y);\n var second270 = new _packages2.default.geo.Point(uv2.y + second.x, -uv2.x + second.y);\n\n // anchor point in the third segment of the connection\n //\n var third90 = new _packages2.default.geo.Point(-uv2.y + third.x, uv2.x + third.y);\n var third270 = new _packages2.default.geo.Point(uv2.y + third.x, -uv2.x + third.y);\n\n // anchor point for the 180 arc at the end\n //\n var end90 = new _packages2.default.geo.Point(-uv.y + end.x, uv.x + end.y);\n var end270 = new _packages2.default.geo.Point(uv.y + end.x, -uv.x + end.y);\n\n // required for hit tests\n //\n connection.addPoint(start);\n connection.addPoint(end);\n\n // calculate the path\n var path = [\"M\", start90.x, \",\", start90.y];\n path.push(\"A\", thickness, \",\", thickness, \"0 0 1 \", start270.x, \",\", start270.y);\n path.push(\"C\", start270.x, \",\", start270.y, first270.x, \",\", first270.y, second270.x, \",\", second270.y);\n path.push(\"C\", second270.x, \",\", second270.y, third270.x, \",\", third270.y, end270.x, \",\", end270.y);\n path.push(\"A\", thickness, \",\", thickness, \"0 0 1\", end90.x, \",\", end90.y);\n path.push(\"C\", end90.x, \",\", end90.y, third90.x, \",\", third90.y, second90.x, \",\", second90.y);\n path.push(\"C\", second90.x, \",\", second90.y, first90.x, \",\", first90.y, start90.x, \",\", start90.y);\n\n connection.svgPathString = path.join(\" \");\n }\n}); /**\r\n * @class draw2d.layout.connection.RubberbandRouter\r\n * Router for direct connections between two ports with a rubber band effect\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let RubberConnection= draw2d.Connection.extend({\r\n * NAME: \"RubberConnection\",\r\n *\r\n * init:function(attr, setter, getter)\r\n * {\r\n * this._super(extend({\r\n * color: \"#33691e\",\r\n * stroke:1,\r\n * outlineStroke:0,\r\n * outlineColor:null\r\n * },attr),\r\n * setter,\r\n * getter);\r\n *\r\n *\r\n * this.setRouter(new draw2d.layout.connection.RubberbandRouter());\r\n * },\r\n *\r\n * repaint:function(attributes)\r\n * {\r\n * if (this.repaintBlocked===true || this.shape === null){\r\n * return;\r\n * }\r\n * attributes= attributes || {};\r\n * // enrich the rendering with a \"fill\" attribute\r\n * if(typeof attributes.fill === \"undefined\"){\r\n * \t attributes.fill = \"#aed581\";\r\n * }\r\n * this._super(attributes);\r\n * }\r\n * });\r\n *\r\n * let createConnection=function(){\r\n * let con = new RubberConnection();\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * let end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/SketchConnectionRouter.js\":\n/*!*********************************************************!*\\\n !*** ./src/layout/connection/SketchConnectionRouter.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.SketchConnectionRouter = _packages2.default.layout.connection.MazeConnectionRouter.extend({\n NAME: \"draw2d.layout.connection.SketchConnectionRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object.\r\n *\r\n */\n init: function init() {\n this._super();\n\n this.useSpline = true;\n this.useShift = 5;\n this.useSimplifyValue = 0.2;\n this.finder = new PF.JumpPointFinder({ allowDiagonal: false, dontCrossCorners: true });\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n }\n\n}); /**\r\n * @class draw2d.layout.connection.SketchConnectionRouter\r\n *\r\n * Provide a router which routes the connection in a hand drawn manner.\r\n *\r\n * @example preview small frame\r\n *\r\n * let createConnection=function(){\r\n * let con = new draw2d.Connection();\r\n * con.setRouter(new draw2d.layout.connection.SketchConnectionRouter());\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let f1 = new draw2d.shape.analog.OpAmp({x:10, y:10});\r\n * let f2 = new draw2d.shape.analog.ResistorVertical({angle:90, height:20, x:300, y:150});\r\n *\r\n * // ...add it to the canvas\r\n * //\r\n * canvas.add( f1);\r\n * canvas.add( f2);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(f1.getOutputPort(0));\r\n * c.setTarget(f2.getHybridPort(0));\r\n * canvas.add(c);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @since 2.7.2\r\n * @extends draw2d.layout.connection.MazeConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/SplineConnectionRouter.js\":\n/*!*********************************************************!*\\\n !*** ./src/layout/connection/SplineConnectionRouter.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.SplineConnectionRouter = _packages2.default.layout.connection.ManhattanConnectionRouter.extend({\n\n NAME: \"draw2d.layout.connection.SplineConnectionRouter\",\n\n /**\r\n * @constructor Creates a new Router object\r\n */\n init: function init() {\n this._super();\n\n // this.spline = new draw2d.util.spline.CatmullRomSpline();\n this.spline = new _packages2.default.util.spline.CubicSpline();\n // this.spline = new draw2d.util.spline.BezierSpline();\n\n this.MINDIST = 50;\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(conn, routingHints) {\n var i = void 0;\n var fromPt = conn.getStartPoint();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPoint();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n // calculate the manhatten bend points between start/end.\n //\n this._route(conn, toPt, toDir, fromPt, fromDir);\n\n var ps = conn.getVertices();\n\n conn.oldPoint = null;\n conn.lineSegments = new _packages2.default.util.ArrayList();\n conn.vertices = new _packages2.default.util.ArrayList();\n\n var splinePoints = this.spline.generate(ps, 8);\n splinePoints.each(function (i, e) {\n conn.addPoint(e);\n });\n\n // calculate the path string for the SVG rendering\n //\n ps = conn.getVertices();\n var length = ps.getSize();\n var p = ps.get(0);\n var path = [\"M\", p.x, \" \", p.y];\n for (i = 1; i < length; i++) {\n p = ps.get(i);\n path.push(\"L\", p.x, \" \", p.y);\n }\n conn.svgPathString = path.join(\"\");\n }\n}); /**\r\n * @class draw2d.layout.connection.SplineConnectionRouter\r\n *\r\n * A ManhattanConnectionRouter with an spline interpolation between the bend points.\r\n *\r\n * @example preview small frame\r\n *\r\n * let createConnection=function(){\r\n * let con = new draw2d.Connection();\r\n * con.setRouter(new draw2d.layout.connection.SplineConnectionRouter());\r\n * return con;\r\n * };\r\n *\r\n * // install a custom connection create policy\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let f1 = new draw2d.shape.analog.OpAmp({x:10, y:10});\r\n * let f2 = new draw2d.shape.analog.ResistorVertical({angle:90, height:20, x:300, y:150});\r\n *\r\n * // ...add it to the canvas\r\n * //\r\n * canvas.add( f1);\r\n * canvas.add( f2);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(f1.getOutputPort(0));\r\n * c.setTarget(f2.getHybridPort(0));\r\n * canvas.add(c);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.layout.connection.ManhattanConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/connection/VertexRouter.js\":\n/*!***********************************************!*\\\n !*** ./src/layout/connection/VertexRouter.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.connection.VertexRouter = _packages2.default.layout.connection.ConnectionRouter.extend({\n\n NAME: \"draw2d.layout.connection.VertexRouter\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback method if the router has been assigned to a connection.\r\n *\r\n * @param {draw2d.Connection} connection The assigned connection\r\n * @template\r\n * @since 2.7.2\r\n */\n onInstall: function onInstall(connection) {\n connection.installEditPolicy(new _packages2.default.policy.line.VertexSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * Invalidates the given Connection\r\n */\n invalidate: function invalidate() {},\n\n /**\r\n * @inheritdoc\r\n */\n route: function route(connection, routingHints) {\n // reuse all existing vertex points\n //\n var count = routingHints.oldVertices.getSize();\n for (var i = 0; i < count; i++) {\n connection.addPoint(routingHints.oldVertices.get(i));\n }\n\n var ps = connection.getVertices();\n\n // respect the calculated anchor position if the start/end port has set any Anchor impl.\n var startAnchor = connection.getStartPosition(ps.get(1));\n var endAnchor = connection.getEndPosition(ps.get(ps.getSize() - 2));\n ps.first().setPosition(startAnchor);\n ps.last().setPosition(endAnchor);\n\n this._paint(connection);\n },\n\n /**\r\n * @method\r\n * Callback method for the PolyLine or Connection to check if it possible to remove a vertex from\r\n * the list. The router can send an veto for this.\r\n * Per default it is not possible to remove any vertex from the PolyLine exceptional if any interactive\r\n * router is installed.\r\n *\r\n * @param {draw2d.Connection} conn\r\n * @param {Number} index\r\n *\r\n * @since 4.2.3\r\n */\n canRemoveVertexAt: function canRemoveVertexAt(conn, index) {\n return false;\n },\n\n /**\r\n * Callback method for the PolyLine or Connection to verify that a segment is deletable.\r\n *\r\n * @param {draw2d.Connection} conn\r\n * @param {Number} index\r\n *\r\n * @returns {Boolean}\r\n * @since 4.2.3\r\n */\n canRemoveSegmentAt: function canRemoveSegmentAt(conn, index) {\n\n var segmentCount = conn.getVertices().getSize() - 1; // segmentCount is one less than vertex count\n\n // The first and last segment isn't deletable\n //\n if (index <= 0 || index >= segmentCount) {\n return false;\n }\n\n // a connection need at least one strokes\n //\n return segmentCount >= 2;\n },\n\n /**\r\n * @method\r\n * Tweak or enrich the polyline persistence data with routing information\r\n *\r\n * @since 2.10.0\r\n * @param {draw2d.shape.basic.PolyLine} line\r\n * @param {Object} memento The memento data of the polyline\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes(line, memento) {\n memento.vertex = [];\n\n line.getVertices().each(function (i, e) {\n memento.vertex.push({ x: e.x, y: e.y });\n });\n\n return memento;\n },\n\n /**\r\n * @method\r\n * set the attributes for the polyline with routing information\r\n *\r\n * @since 2.10.0\r\n * @param {Object} memento\r\n */\n setPersistentAttributes: function setPersistentAttributes(line, memento) {\n // restore the points from the JSON data and add them to the polyline\n //\n if (Array.isArray(memento.vertex) && memento.vertex.length > 1) {\n\n line.oldPoint = null;\n line.lineSegments = new _packages2.default.util.ArrayList();\n\n line.setVertices(memento.vertex);\n }\n },\n\n /**\r\n * @method\r\n *\r\n * The draw2d.Connection delegates the drag operation to the router. The router can\r\n * handle the different constraints of the connection and just drag&drop a single segment\r\n * instead of the complete connection.\r\n *\r\n * @param {draw2d.shape.basic.Line} line the related line to handle\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n *\r\n * @since 6.1.0\r\n */\n onDrag: function onDrag(line, dx, dy, dx2, dy2) {\n var count = line.getVertices().getSize() - 1;\n for (var i = 1; i < count; i++) {\n line.getVertex(i).translate(dx2, dy2);\n }\n }\n\n}); /**\r\n * @class draw2d.layout.connection.VertexRouter\r\n *\r\n * A Router with unlimited vertices.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // Override the default connection type. This is used during drag&drop operations of ports.\r\n * //\r\n * let createConnection=function(){\r\n * // return my special kind of connection\r\n * let con = new draw2d.Connection();\r\n * con.setRouter(new draw2d.layout.connection.VertexRouter());\r\n * return con;\r\n * };\r\n *\r\n * // Install a special policy into the canvas to use my own implementation of connection\r\n * // if we drag&drop a port\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy({\r\n * createConnection: createConnection\r\n * }));\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * let end = new draw2d.shape.node.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,80);\r\n *\r\n * // first Connection\r\n * //\r\n * let c = createConnection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.layout.connection.ConnectionRouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/BottomLocator.js\":\n/*!*********************************************!*\\\n !*** ./src/layout/locator/BottomLocator.js ***!\n \\*********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.BottomLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.BottomLocator\",\n\n /**\r\n * @constructor\r\n *\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var parent = target.getParent();\n var boundingBox = parent.getBoundingBox();\n // I made a wrong decision in the port handling: anchor point\n // is in the center and not topLeft. Now I must correct this flaw here, and there, and...\n // shit happens.\n var offset = parent instanceof _packages2.default.Port ? boundingBox.w / 2 : 0;\n\n var targetBoundingBox = target.getBoundingBox();\n if (target instanceof _packages2.default.Port) {\n target.setPosition(boundingBox.w / 2 - offset, boundingBox.h);\n } else {\n target.setPosition(boundingBox.w / 2 - targetBoundingBox.w / 2 - offset, 2 + boundingBox.h);\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.BottomLocator\r\n *\r\n * A bottomLocator is used to place figures at the bottom of a parent shape.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // create a basic figure and add a Label/child via API call\r\n * //\r\n * var circle = new draw2d.shape.basic.Circle({\r\n * x:100,\r\n * y:50,\r\n * diameter:100,\r\n * stroke: 3,\r\n * color:\"#A63343\",\r\n * bgColor:\"#E65159\"\r\n * });\r\n *\r\n * circle.add(new draw2d.shape.basic.Label({text:\"Bottom Label\"}), new draw2d.layout.locator.BottomLocator());\r\n * canvas.add( circle);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/CenterLocator.js\":\n/*!*********************************************!*\\\n !*** ./src/layout/locator/CenterLocator.js ***!\n \\*********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.CenterLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.CenterLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a locator with associated parent.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var parent = target.getParent();\n var boundingBox = parent.getBoundingBox();\n\n // TODO: instanceof is always a HACK. ugly. Redirect the call to the figure instead of \n // determine the position with a miracle.\n //\n if (target instanceof _packages2.default.Port) {\n target.setPosition(boundingBox.w / 2, boundingBox.h / 2);\n } else {\n var targetBoundingBox = target.getBoundingBox();\n target.setPosition((boundingBox.w / 2 - targetBoundingBox.w / 2 | 0) + 0.5, (boundingBox.h / 2 - targetBoundingBox.h / 2 | 0) + 0.5);\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.CenterLocator\r\n *\r\n * A CenterLocator is used to place figures in the center of a parent shape.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // create a basic figure and add a Label/child via API call\r\n * //\r\n * let circle = new draw2d.shape.basic.Circle({diameter:120});\r\n * circle.setStroke(3);\r\n * circle.setColor(\"#A63343\");\r\n * circle.setBackgroundColor(\"#E65159\");\r\n * circle.add(new draw2d.shape.basic.Label({text:\"Center Label\"}), new draw2d.layout.locator.CenterLocator());\r\n * canvas.add( circle, 100,50);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/ConnectionLocator.js\":\n/*!*************************************************!*\\\n !*** ./src/layout/locator/ConnectionLocator.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.ConnectionLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.ConnectionLocator\",\n\n /**\r\n * @constructor\r\n * Default constructor for a Locator which can layout a figure in context of a\r\n * {@link draw2d.Connector}\r\n */\n init: function init() {\n this._super();\n }\n\n}); /**\r\n * @class draw2d.layout.locator.ConnectionLocator\r\n *\r\n * Repositions a Figure attached to a Connection when the\r\n * Connection is moved. Provides for alignment at the start\r\n * (source), middle, or end (target) of the Connection.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/DraggableLocator.js\":\n/*!************************************************!*\\\n !*** ./src/layout/locator/DraggableLocator.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.DraggableLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.DraggableLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a locator with associated parent.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n bind: function bind(parent, child) {\n // override the parent implementation to avoid\n // that the child is \"!selectable\" and \"!draggable\"\n\n // Don't redirect the selection handling to the parent\n // Using the DraggableLocator provides the ability to the children\n // that they are selectable and draggable. Remove the SelectionAdapter from the parent\n // assignment.\n child.setSelectionAdapter(function () {\n return child;\n });\n },\n\n unbind: function unbind(parent, child) {\n // use default\n child.setSelectionAdapter(null);\n }\n}); /**\r\n * @class draw2d.layout.locator.DraggableLocator\r\n *\r\n * A DraggableLocator is used to place figures relative to the parent top left corner. It is\r\n * possible to move a child node via drag&drop.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/InputPortLocator.js\":\n/*!************************************************!*\\\n !*** ./src/layout/locator/InputPortLocator.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.InputPortLocator = _packages2.default.layout.locator.PortLocator.extend({\n NAME: \"draw2d.layout.locator.InputPortLocator\",\n\n /**\r\n * @constructor\r\n * Default constructor for a Locator which can layout a port in context of a\r\n * {@link draw2d.shape.node.Node}\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Controls the location of an {@link draw2d.Figure}\r\n *\r\n * @param {Number} index port index of the figure\r\n * @param {draw2d.Figure} figure the figure to control\r\n *\r\n * @template\r\n **/\n relocate: function relocate(index, figure) {\n var node = figure.getParent();\n\n var dividerFactor = 1;\n var thisNAME = this.NAME;\n var portIndex = 1;\n node.getPorts().each(function (i, p) {\n portIndex = p === figure ? dividerFactor : portIndex;\n dividerFactor += p.getLocator().NAME === thisNAME ? 1 : 0;\n });\n this.applyConsiderRotation(figure, 0, node.getHeight() / dividerFactor * portIndex);\n }\n\n}); /**\r\n * @class draw2d.layout.locator.InputPortLocator\r\n *\r\n * Repositions a Figure attached to a Connection when the\r\n * Connection is moved. Provides for alignment at the start\r\n * (source), middle, or end (target) of the Connection.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.PortLocator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/LeftLocator.js\":\n/*!*******************************************!*\\\n !*** ./src/layout/locator/LeftLocator.js ***!\n \\*******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.LeftLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.LeftLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a locator with associated parent.\r\n *\r\n * @param attr\r\n */\n init: function init(attr) {\n this._super();\n\n this.margin = attr && \"margin\" in attr ? attr.margin : 5;\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var parent = target.getParent();\n var boundingBox = parent.getBoundingBox();\n\n // I made a wrong decision in the port handling: anchor point\n // is in the center and not topLeft. Now I must correct this flaw here, and there, and...\n // shit happens.\n var offset = parent instanceof _packages2.default.Port ? boundingBox.h / 2 : 0;\n\n if (target instanceof _packages2.default.Port) {\n target.setPosition(0, boundingBox.h / 2 - offset);\n } else {\n var targetBoundingBox = target.getBoundingBox();\n target.setPosition(-targetBoundingBox.w - this.margin, boundingBox.h / 2 - targetBoundingBox.h / 2 - offset);\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.LeftLocator\r\n *\r\n * A LeftLocator is used to place figures to the left of a parent shape.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // create a basic figure and add a Label/child via API call\r\n * //\r\n * let start = new draw2d.shape.node.Start();\r\n * start.add(new draw2d.shape.basic.Label({text:\"Left Label\"}), new draw2d.layout.locator.LeftLocator({\r\n * margin:10 // distance to the parent shape\r\n * }));\r\n * canvas.add( start, 100,50);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/Locator.js\":\n/*!***************************************!*\\\n !*** ./src/layout/locator/Locator.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.Locator = Class.extend({\n NAME: \"draw2d.layout.locator.Locator\",\n\n /**\r\n * @constructor\r\n * Initial Constructor\r\n *\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n * Callback method if a child is bounded to a parent. This is\r\n * the perfect moment to prepare the child node with some basic\r\n * behaviour which are forced by the <code>Locator</code>\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {draw2d.Figure} child\r\n */\n bind: function bind(figure, child) {\n // default behaviour of an Locator. The child isn't draggable and\n // the locator defines the position of the child.\n //\n child.setDraggable(false);\n child.setSelectable(false);\n },\n\n /**\r\n * @method\r\n * Callback method if a child is unbounded to the locator.\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {draw2d.Figure} child\r\n */\n unbind: function unbind(figure, child) {},\n\n /**\r\n * @method\r\n * Controls the location of an I{@link draw2d.Figure}\r\n *\r\n * @param {Number} index child index of the figure\r\n * @param {draw2d.Figure} figure the figure to control\r\n *\r\n * @template\r\n **/\n relocate: function relocate(index, figure) {\n // just repaint the child to update the SVG related to the new location\n // of the parent.\n figure.repaint();\n },\n\n /**\r\n * @method\r\n * Return a clone of the locator object\r\n *\r\n * @returns\r\n */\n clone: function clone() {\n return eval(\"new \" + this.NAME + \"()\");\n }\n}); /**\r\n * @class draw2d.layout.locator.Locator\r\n *\r\n * Controls the location of an IFigure.\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/ManhattanMidpointLocator.js\":\n/*!********************************************************!*\\\n !*** ./src/layout/locator/ManhattanMidpointLocator.js ***!\n \\********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.ManhattanMidpointLocator = _packages2.default.layout.locator.ConnectionLocator.extend({\n NAME: \"draw2d.layout.locator.ManhattanMidpointLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a ManhattanMidpointLocator with associated Connection c.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure always in the center of an edge.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var conn = target.getParent();\n var points = conn.getVertices();\n\n var segmentIndex = Math.floor((points.getSize() - 2) / 2);\n if (points.getSize() <= segmentIndex + 1) return;\n\n var p1 = points.get(segmentIndex);\n var p2 = points.get(segmentIndex + 1);\n\n target.setPosition((p2.x - p1.x) / 2 + p1.x - target.getWidth() / 2 | 0, (p2.y - p1.y) / 2 + p1.y - target.getHeight() / 2 | 0);\n }\n}); /**\r\n * @class draw2d.layout.locator.ManhattanMidpointLocator\r\n *\r\n * A ManhattanMidpointLocator that is used to place figures at the midpoint of a Manhatten routed\r\n * connection. The midpoint is always in the center of an edge.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * //create and add two Node which contains Ports (In and OUT)\r\n * let start = new draw2d.shape.node.Start({x:50,y:50});\r\n * let end = new draw2d.shape.node.End({x:230,y:100});\r\n *\r\n * canvas.add( start);\r\n * canvas.add( end);\r\n *\r\n * // Create a Connection and connect he Start and End node\r\n * //\r\n * let c = new draw2d.Connection();\r\n * c.setSource(start.getOutputPort(0));\r\n * c.setTarget(end.getInputPort(0));\r\n * canvas.add(c);\r\n *\r\n * // create a label which should attach to the connection\r\n * //\r\n * let label = new draw2d.shape.basic.Label({text:\"I'm a Label\"});\r\n * label.setColor(\"#0d0d0d\");\r\n * label.setFontColor(\"#0d0d0d\");\r\n * label.setBackgroundColor(\"#f0f0f0\");\r\n *\r\n * // add the decoration to the connection with a ManhattanMidpointLocator.\r\n * //\r\n * c.add(label, new draw2d.layout.locator.ManhattanMidpointLocator());\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.ConnectionLocator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/OutputPortLocator.js\":\n/*!*************************************************!*\\\n !*** ./src/layout/locator/OutputPortLocator.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.OutputPortLocator = _packages2.default.layout.locator.PortLocator.extend({\n NAME: \"draw2d.layout.locator.OutputPortLocator\",\n\n /**\r\n * @constructor\r\n * Default constructor for a Locator which can layout a port in context of a\r\n * {@link draw2d.shape.node.Node}\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Controls the location of an I{@link draw2d.Figure}\r\n *\r\n * @param {Number} index child index of the figure\r\n * @param {draw2d.Figure} figure the figure to control\r\n *\r\n * @template\r\n **/\n relocate: function relocate(index, figure) {\n var node = figure.getParent();\n var dividerFactor = 1;\n var thisNAME = this.NAME;\n var portIndex = 1;\n node.getPorts().each(function (i, p) {\n portIndex = p === figure ? dividerFactor : portIndex;\n dividerFactor += p.getLocator().NAME === thisNAME ? 1 : 0;\n });\n this.applyConsiderRotation(figure, node.getWidth(), node.getHeight() / dividerFactor * portIndex);\n }\n\n}); /**\r\n * @class draw2d.layout.locator.OutputPortLocator\r\n *\r\n * Repositions a Figure attached to a Connection when the\r\n * Connection is moved. Provides for alignment at the start\r\n * (source), middle, or end (target) of the Connection.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.PortLocator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/ParallelMidpointLocator.js\":\n/*!*******************************************************!*\\\n !*** ./src/layout/locator/ParallelMidpointLocator.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.ParallelMidpointLocator = _packages2.default.layout.locator.ConnectionLocator.extend({\n NAME: \"draw2d.layout.locator.ParallelMidpointLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a ParallelMidpointLocator with optional padding to the connection.\r\n *\r\n * if the parameter <b>distanceFromConnection</b> is less than zero the label is\r\n * placed above of the connection. Else the label is below the connection.\r\n *\r\n * @param {Number} distanceFromConnection the distance of the label to the connection.\r\n */\n init: function init(distanceFromConnection) {\n this._super();\n\n if (typeof distanceFromConnection !== \"undefined\") {\n this.distanceFromConnection = parseFloat(distanceFromConnection);\n } else {\n this.distanceFromConnection = -5;\n }\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure always in the center of an edge.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var conn = target.getParent();\n var points = conn.getVertices();\n\n var segmentIndex = Math.floor((points.getSize() - 2) / 2);\n if (points.getSize() <= segmentIndex + 1) {\n return;\n }\n\n var p1 = points.get(segmentIndex);\n var p2 = points.get(segmentIndex + 1);\n\n // calculate the distance of the label (above or below the connection)\n var distance = this.distanceFromConnection <= 0 ? this.distanceFromConnection - target.getHeight() : this.distanceFromConnection;\n\n // get the angle of the segment\n var nx = p1.x - p2.x;\n var ny = p1.y - p2.y;\n var length = Math.sqrt(nx * nx + ny * ny);\n var radian = -Math.asin(ny / length);\n var angle = 180 / Math.PI * radian;\n if (radian < 0) {\n if (p2.x < p1.x) {\n radian = Math.abs(radian) + Math.PI;\n angle = 360 - angle;\n distance = -distance - target.getHeight();\n } else {\n radian = Math.PI * 2 - Math.abs(radian);\n angle = 360 + angle;\n }\n } else {\n if (p2.x < p1.x) {\n radian = Math.PI - radian;\n angle = 360 - angle;\n distance = -distance - target.getHeight();\n }\n }\n\n var rotAnchor = this.rotate(length / 2 - target.getWidth() / 2, distance, 0, 0, radian);\n\n // rotate the x/y coordinate with the calculated angle around \"p1\"\n //\n var rotCenterOfLabel = this.rotate(0, 0, target.getWidth() / 2, target.getHeight() / 2, radian);\n\n target.setRotationAngle(angle);\n target.setPosition(rotAnchor.x - rotCenterOfLabel.x + p1.x, rotAnchor.y - rotCenterOfLabel.y + p1.y);\n },\n\n rotate: function rotate(x, y, xm, ym, radian) {\n var cos = Math.cos,\n sin = Math.sin;\n\n // Subtract midpoints, so that midpoint is translated to origin\n // and add it in the end again\n return {\n x: (x - xm) * cos(radian) - (y - ym) * sin(radian) + xm,\n y: (x - xm) * sin(radian) + (y - ym) * cos(radian) + ym\n };\n }\n\n}); /**\r\n * @class draw2d.layout.locator.ParallelMidpointLocator\r\n *\r\n * A ParallelMidpointLocator that is used to place label at the midpoint of a routed\r\n * connection. The midpoint is always in the center of an edge.\r\n * The label is aligned to the connection angle at the calculated conection segment.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.ConnectionLocator\r\n * @since 4.4.4\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/PolylineMidpointLocator.js\":\n/*!*******************************************************!*\\\n !*** ./src/layout/locator/PolylineMidpointLocator.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.PolylineMidpointLocator = _packages2.default.layout.locator.ManhattanMidpointLocator.extend({\n NAME: \"draw2d.layout.locator.PolylineMidpointLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a ManhattanMidpointLocator with associated Connection c.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var conn = target.getParent();\n var points = conn.getVertices();\n\n // it has an event count of points -> use the manhattan algorithm...this is working\n // well in this case\n if (points.getSize() % 2 === 0) {\n this._super(index, target);\n }\n // odd count of points. take the center point as fulcrum\n else {\n var index = Math.floor(points.getSize() / 2);\n var p1 = points.get(index);\n target.setPosition(p1.x - target.getWidth() / 2, p1.y - target.getHeight() / 2);\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.PolylineMidpointLocator\r\n *\r\n * A PolylineMidpointLocator is used to place figures at the midpoint of a routed\r\n * connection. <br>\r\n * If the connection did have an odd count of points the figure is located in the center vertex of the polyline.<br>\r\n * On an even count of junction point, the figure will be center on the middle segment of the ploy line.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.ManhattanMidpointLocator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/PortLocator.js\":\n/*!*******************************************!*\\\n !*** ./src/layout/locator/PortLocator.js ***!\n \\*******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.PortLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.PortLocator\",\n\n /**\r\n * @constructor\r\n * Default constructor for a Locator which can layout a port in context of a\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n applyConsiderRotation: function applyConsiderRotation(port, x, y) {\n var parent = port.getParent();\n\n // determine the width/height before manipulate the \n // matrix of the shape\n var halfW = parent.getWidth() / 2;\n var halfH = parent.getHeight() / 2;\n\n var rotAngle = parent.getRotationAngle();\n var m = Raphael.matrix();\n m.rotate(rotAngle, halfW, halfH);\n if (rotAngle === 90 || rotAngle === 270) {\n var ratio = parent.getHeight() / parent.getWidth();\n m.scale(ratio, 1 / ratio, halfW, halfH);\n }\n\n port.setPosition(m.x(x, y), m.y(x, y));\n }\n}); /**\r\n * @class draw2d.layout.locator.PortLocator\r\n *\r\n * The port locator calculates the position of an port. All ports MUST have a locator\r\n * if you add them as child to a node.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/RightLocator.js\":\n/*!********************************************!*\\\n !*** ./src/layout/locator/RightLocator.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.RightLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.RightLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a locator with associated parent.\r\n *\r\n */\n init: function init(attr) {\n this._super();\n\n this.margin = attr && \"margin\" in attr ? attr.margin : 5;\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var parent = target.getParent();\n var boundingBox = parent.getBoundingBox();\n\n // I made a wrong decision in the port handling: anchor point\n // is in the center and not topLeft. Now I must correct this flaw here, and there, and...\n // shit happens.\n var offset = parent instanceof _packages2.default.Port ? boundingBox.h / 2 : 0;\n\n if (target instanceof _packages2.default.Port) {\n target.setPosition(boundingBox.w, boundingBox.h / 2 - offset);\n } else {\n var targetBoundingBox = target.getBoundingBox();\n target.setPosition(boundingBox.w + this.margin, boundingBox.h / 2 - targetBoundingBox.h / 2 - offset);\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.RightLocator\r\n *\r\n * A RightLocator is used to place figures to the right of a parent shape.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // create a basic figure and add a Label/child via API call\r\n * //\r\n * var end = new draw2d.shape.node.End();\r\n * end.add(new draw2d.shape.basic.Label({text:\"Right Label\"}), new draw2d.layout.locator.RightLocator({\r\n * margin: 10 // distance to the parent shape\r\n * }));\r\n * canvas.add( end, 50,50);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/SmartDraggableLocator.js\":\n/*!*****************************************************!*\\\n !*** ./src/layout/locator/SmartDraggableLocator.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.SmartDraggableLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.SmartDraggableLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a locator with associated parent.\r\n *\r\n */\n init: function init() {\n this._super();\n\n // description see \"bind\" method\n this.boundedCorners = {\n init: false,\n parent: 0,\n child: 0,\n dist: Number.MAX_SAFE_INTEGER,\n xOffset: 0,\n yOffset: 0\n };\n },\n\n bind: function bind(parent, child) {\n var _this = this;\n // determine the best corner of the parent/child node and stick to the calculated corner\n // In the example below it is R1.2 in combination with R2.0\n //\n // 0 1\n // +-----------+\n // | |\n // | R1 |\n // +-----------+\n // 3 2\n //\n // 0 1\n // +-----------+\n // | |\n // | R2 |\n // +-----------+\n // 3 2\n //\n var calcBoundingCorner = function calcBoundingCorner() {\n _this.boundedCorners = {\n init: false,\n parent: 0,\n child: 0,\n dist: Number.MAX_SAFE_INTEGER,\n xOffset: 0,\n yOffset: 0\n };\n var parentVertices = child.getParent().getBoundingBox().getVertices();\n var childVertices = child.getBoundingBox().getVertices();\n var i_parent = void 0,\n i_child = void 0;\n var p1 = void 0,\n p2 = void 0,\n distance = void 0;\n for (i_parent = 0; i_parent < parentVertices.getSize(); i_parent++) {\n for (i_child = 0; i_child < childVertices.getSize(); i_child++) {\n p1 = parentVertices.get(i_parent);\n p2 = childVertices.get(i_child);\n distance = Math.abs(p1.distance(p2));\n if (distance < _this.boundedCorners.dist) {\n _this.boundedCorners = {\n parent: i_parent,\n child: i_child,\n dist: distance,\n xOffset: p1.x - p2.x,\n yOffset: p1.y - p2.y\n };\n }\n }\n }\n _this.boundedCorners.init = true;\n };\n\n // override the parent implementation to avoid\n // that the child is \"!selectable\" and \"!draggable\"\n\n // Don't redirect the selection handling to the parent\n // Using the DraggableLocator provides the ability to the children\n // that they are selectable and draggable. Remove the SelectionAdapter from the parent\n // assignment.\n child.setSelectionAdapter(function () {\n return child;\n });\n\n child.getParent().on(\"added\", calcBoundingCorner);\n child.on(\"dragend\", calcBoundingCorner);\n },\n\n unbind: function unbind(parent, child) {\n // use default\n child.setSelectionAdapter(null);\n },\n\n /**\r\n * @method\r\n * Controls the location of an I{@link draw2d.Figure}\r\n *\r\n * @param {Number} index child index of the figure\r\n * @param {draw2d.Figure} figure the figure to control\r\n *\r\n * @template\r\n **/\n relocate: function relocate(index, figure) {\n this._super(index, figure);\n if (this.boundedCorners.init === true) {\n var parentVertices = figure.getParent().getBoundingBox().getVertices();\n var childVertices = figure.getBoundingBox().getVertices();\n var p1 = parentVertices.get(this.boundedCorners.parent);\n var p2 = childVertices.get(this.boundedCorners.child);\n\n var xOffset = p1.x - p2.x;\n var yOffset = p1.y - p2.y;\n // restore the initial distance from the corner by adding the new offset\n // to the position of the child\n figure.translate(xOffset - this.boundedCorners.xOffset, yOffset - this.boundedCorners.yOffset);\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.DraggableLocator\r\n *\r\n * A DraggableLocator is used to place figures relative to the parent nearest corner. It is\r\n * possible to move a child node via drag&drop.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/TopLocator.js\":\n/*!******************************************!*\\\n !*** ./src/layout/locator/TopLocator.js ***!\n \\******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.TopLocator = _packages2.default.layout.locator.Locator.extend({\n NAME: \"draw2d.layout.locator.TopLocator\",\n\n /**\r\n * @constructor\r\n * Constructs a ManhattanMidpointLocator with associated Connection c.\r\n *\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Relocates the given Figure.\r\n *\r\n * @param {Number} index child index of the target\r\n * @param {draw2d.Figure} target The figure to relocate\r\n **/\n relocate: function relocate(index, target) {\n var parent = target.getParent();\n var boundingBox = parent.getBoundingBox();\n\n // I made a wrong decision in the port handling: anchor point\n // is in the center and not topLeft. Now I must correct this flaw here, and there, and...\n // shit happens.\n var offset = parent instanceof _packages2.default.Port ? boundingBox.w / 2 : 0;\n\n var targetBoundingBox = target.getBoundingBox();\n if (target instanceof _packages2.default.Port) {\n target.setPosition(boundingBox.w / 2 - offset, 0);\n } else {\n target.setPosition(boundingBox.w / 2 - targetBoundingBox.w / 2 - offset, -(targetBoundingBox.h + 2));\n }\n }\n}); /**\r\n * @class draw2d.layout.locator.TopLocator\r\n *\r\n * A TopLocator is used to place figures at the top/center of a parent shape.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // create a basic figure and add a Label/child via API call\r\n * //\r\n * let circle = new draw2d.shape.basic.Circle({\r\n * x:100,\r\n * y:70,\r\n * diameter:80,\r\n * stroke: 3,\r\n * color:\"#A63343\",\r\n * bgColor:\"#E65159\"\r\n * });\r\n *\r\n * circle.add(new draw2d.shape.basic.Label({text:\"Top Label\"}), new draw2d.layout.locator.TopLocator());\r\n * canvas.add( circle);\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.Locator\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/XYAbsPortLocator.js\":\n/*!************************************************!*\\\n !*** ./src/layout/locator/XYAbsPortLocator.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.XYAbsPortLocator = _packages2.default.layout.locator.PortLocator.extend({\n NAME: \"draw2d.layout.locator.XYAbsPortLocator\",\n\n /**\r\n * @constructor\r\n *\r\n * {@link draw2d.shape.node.Node}\r\n *\r\n * @param {Number} x the x coordinate of the port relative to the left of the parent\r\n * @param {Number} y the y coordinate of the port relative to the top of the parent\r\n */\n init: function init(x, y) {\n this._super();\n\n this.x = x;\n this.y = y;\n },\n\n /**\r\n * @method\r\n * Controls the location of an {@link draw2d.Figure}\r\n *\r\n * @param {Number} index child index of the figure\r\n * @param {draw2d.Figure} figure the figure to control\r\n *\r\n * @template\r\n **/\n relocate: function relocate(index, figure) {\n this.applyConsiderRotation(figure, this.x, this.y);\n }\n\n}); /**\r\n * @class draw2d.layout.locator.XYAbsPortLocator\r\n *\r\n * Create a locator for fixed x/y coordinate position. The port in the example below is\r\n * always 20px below of the top border.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * var figure = new draw2d.shape.basic.Rectangle({x:130,y:30,width:100,height:60});\r\n * figure.createPort(\"input\", new draw2d.layout.locator.XYAbsPortLocator(0,20));\r\n *\r\n * canvas.add(figure);\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.PortLocator\r\n * @since 4.0.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/locator/XYRelPortLocator.js\":\n/*!************************************************!*\\\n !*** ./src/layout/locator/XYRelPortLocator.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.locator.XYRelPortLocator = _packages2.default.layout.locator.PortLocator.extend({\n NAME: \"draw2d.layout.locator.XYRelPortLocator\",\n\n /**\r\n * @constructor\r\n *\r\n *\r\n * @param {Number} xPercentage the x coordinate in percent of the port relative to the left of the parent\r\n * @param {Number} yPercentage the y coordinate in percent of the port relative to the top of the parent\r\n */\n init: function init(xPercentage, yPercentage) {\n this._super();\n\n this.x = xPercentage;\n this.y = yPercentage;\n },\n\n /**\r\n * @method\r\n * Controls the location of an I{@link draw2d.Figure}\r\n *\r\n * @param {Number} index child index of the figure\r\n * @param {draw2d.Figure} figure the figure to control\r\n *\r\n * @template\r\n **/\n relocate: function relocate(index, figure) {\n var parent = figure.getParent();\n\n this.applyConsiderRotation(figure, parent.getWidth() / 100 * this.x, parent.getHeight() / 100 * this.y);\n }\n\n}); /**\r\n * @class draw2d.layout.locator.XYRelPortLocator\r\n *\r\n * Create a locator for a relative x/y coordinate position. The coordinates are named in percentage [0..100%]\r\n * relative to the top/left corner of the parent node.<br>\r\n * <br>\r\n * <br>\r\n * Resize the shape in the example to see what happens. The port top position is always 20% of the shape height.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.basic.Rectangle({x:130,y:30,width:100,height:60});\r\n * figure.createPort(\"input\", new draw2d.layout.locator.XYRelPortLocator(0,20));\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.locator.PortLocator\r\n * @since 4.0.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/mesh/ExplodeLayouter.js\":\n/*!********************************************!*\\\n !*** ./src/layout/mesh/ExplodeLayouter.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.mesh.ExplodeLayouter = _packages2.default.layout.mesh.MeshLayouter.extend({\n\n MIN_MARGIN: 40,\n\n /**\r\n * @constructor \r\n * Creates a new layouter object.\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n * Return a changes list for an existing mesh/canvas to ensure that the element to insert \r\n * did have enough space.\r\n * \r\n * @param {draw2d.Canvas} canvas the canvas to use for the analytic\r\n * @param {draw2d.Figure} figure The figure to add to the exising canvas\r\n * @param {Number} x requested x-position for the figure\r\n * @param {Number} y requested y-position for the figure\r\n * \r\n * \r\n * @return {draw2d.util.ArrayList} a list of changes to apply if the user want to insert he figure.\r\n */\n add: function add(canvas, figureToAdd) {\n // changes for the different octant areas\n var changes = [];\n changes[0] = { x: 0, y: 0 };\n changes[1] = { x: 0, y: 0 };\n changes[2] = { x: 0, y: 0 };\n changes[3] = { x: 0, y: 0 };\n changes[4] = { x: 0, y: 0 };\n changes[5] = { x: 0, y: 0 };\n changes[6] = { x: 0, y: 0 };\n changes[7] = { x: 0, y: 0 };\n changes[8] = { x: 0, y: 0 };\n\n var boundingBox = figureToAdd.getBoundingBox();\n\n var figures = canvas.getFigures();\n var figure = null;\n\n var dis = 0;\n var oct = 0;\n var currentOctChanges = null;\n var i = 0;\n for (i = 0; i < figures.getSize(); i++) {\n\n figure = figures.get(i);\n\n // calculate the distance of all corners in relation to the requested x/y coordinate\n //\n if (figure !== figureToAdd) {\n dis = figure.getBoundingBox().getDistance(boundingBox);\n // other figure is to close\n //\n if (dis < this.MIN_MARGIN) {\n // determine the octant of the figure\n oct = this.determineOctant(boundingBox, figure.getBoundingBox());\n\n // all other relevant segments must be arranged too!!\n //\n switch (oct) {\n case 2:\n changes[2].x = Math.max(changes[2].x, this.MIN_MARGIN - dis);\n changes[3].x = Math.max(changes[3].x, this.MIN_MARGIN - dis);\n changes[4].x = Math.max(changes[4].x, this.MIN_MARGIN - dis);\n break;\n case 3:\n changes[2].x = Math.max(changes[2].x, this.MIN_MARGIN - dis);\n changes[3].x = Math.max(changes[3].x, this.MIN_MARGIN - dis);\n changes[4].x = Math.max(changes[4].x, this.MIN_MARGIN - dis);\n break;\n case 4:\n changes[2].x = Math.max(changes[2].x, this.MIN_MARGIN - dis);\n changes[3].x = Math.max(changes[3].x, this.MIN_MARGIN - dis);\n changes[4].x = Math.max(changes[4].x, this.MIN_MARGIN - dis);\n changes[4].y = Math.max(changes[4].y, this.MIN_MARGIN - dis);\n changes[5].y = Math.max(changes[5].y, this.MIN_MARGIN - dis);\n changes[6].y = Math.max(changes[6].y, this.MIN_MARGIN - dis);\n break;\n case 5:\n changes[4].y = Math.max(changes[4].y, this.MIN_MARGIN - dis);\n changes[5].y = Math.max(changes[5].y, this.MIN_MARGIN - dis);\n changes[6].y = Math.max(changes[6].y, this.MIN_MARGIN - dis);\n break;\n case 6:\n changes[4].y = Math.max(changes[4].y, this.MIN_MARGIN - dis);\n changes[5].y = Math.max(changes[5].y, this.MIN_MARGIN - dis);\n changes[6].y = Math.max(changes[6].y, this.MIN_MARGIN - dis);\n break;\n case 8:\n // overlapping\n // we must determine the new distance with the border of the figures\n dis = boundingBox.getBottomRight().getDistance(figure.getBoundingBox().getTopLeft()) | 0;\n\n changes[2].x = Math.max(changes[2].x, this.MIN_MARGIN + dis);\n changes[3].x = Math.max(changes[3].x, this.MIN_MARGIN + dis);\n changes[4].x = Math.max(changes[4].x, this.MIN_MARGIN + dis);\n changes[4].y = Math.max(changes[4].y, this.MIN_MARGIN + dis);\n changes[5].y = Math.max(changes[5].y, this.MIN_MARGIN + dis);\n changes[6].y = Math.max(changes[6].y, this.MIN_MARGIN + dis);\n changes[8].x = Math.max(changes[8].x, this.MIN_MARGIN + dis);\n // \t\t\t\tchanges[8].y = Math.max(changes[8].y,this.MIN_MARGIN+dis);\n }\n }\n }\n // Falls die minimale Distance zu den Objecten kleiner 80 ist, muss ein layout erfolgen\n }\n\n // calculate the adjustment for each figure\n //\n var result = new _packages2.default.util.ArrayList();\n for (i = 0; i < figures.getSize(); i++) {\n figure = figures.get(i);\n if (figure !== figureToAdd) {\n oct = this.determineOctant(boundingBox, figure.getBoundingBox());\n currentOctChanges = changes[oct];\n if (currentOctChanges.x !== 0 || currentOctChanges.y !== 0) {\n result.add(new _packages2.default.layout.mesh.ProposedMeshChange(figure, currentOctChanges.x, currentOctChanges.y));\n }\n }\n }\n\n return result;\n },\n\n /**\r\n * @method\r\n * Determin Octant\r\n *\r\n * 0 | 1 | 2\r\n * __|___|__\r\n * 7 | 8 | 3\r\n * __|___|__\r\n * 6 | 5 | 4\r\n *\r\n * @returns {Number}\r\n */\n determineOctant: function determineOctant(r1, r2) {\n var ox = r1.x;\n var oy = r1.y;\n var ow = r1.w;\n var oh = r1.h;\n\n var cx = r2.x;\n var cy = r2.y;\n var cw = r2.w;\n var ch = r2.h;\n var oct = 0;\n\n if (cx + cw <= ox) {\n if (cy + ch <= oy) {\n oct = 0;\n } else if (cy >= oy + oh) {\n oct = 6;\n } else {\n oct = 7;\n }\n } else if (cx >= ox + ow) {\n if (cy + ch <= oy) {\n oct = 2;\n } else if (cy >= oy + oh) {\n oct = 4;\n } else {\n oct = 3;\n }\n } else if (cy + ch <= oy) {\n oct = 1;\n } else if (cy >= oy + oh) {\n oct = 5;\n } else {\n oct = 8;\n }\n\n return oct;\n }\n});\n/**\r\n * @class draw2d.layout.mesh.ExplodeLayouter\r\n * Routes a {@link draw2d.Connection}, possibly using a constraint.\r\n *\r\n * @author Andreas Herz\r\n * @extend draw2d.layout.mesh.MeshLayouter\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/mesh/MeshLayouter.js\":\n/*!*****************************************!*\\\n !*** ./src/layout/mesh/MeshLayouter.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.mesh.MeshLayouter = Class.extend({\n\n /**\r\n * @constructor\r\n * Creates a new layouter object.\r\n */\n init: function init() {},\n\n /**\r\n * @method\r\n * Return a changes list for an existing mesh/canvas to ensure that the element to insert\r\n * did have enough space.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to use for the analytic\r\n * @param {draw2d.Figure} figure The figure to add to the exising canvas\r\n *\r\n *\r\n * @return {draw2d.util.ArrayList} a list of changes to apply if the user want to insert he figure.\r\n */\n add: function add(canvas, figure) {\n return new _packages2.default.util.ArrayList();\n }\n});\n/**\r\n * @class draw2d.layout.mesh.MeshLayouter\r\n * Layouter for a mesh or grid.\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/layout/mesh/ProposedMeshChange.js\":\n/*!***********************************************!*\\\n !*** ./src/layout/mesh/ProposedMeshChange.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.layout.mesh.ProposedMeshChange = Class.extend({\n\n /**\r\n * @constructor\r\n * Creates change object.\r\n */\n init: function init(figure, x, y) {\n this.figure = figure;\n this.x = x;\n this.y = y;\n },\n\n /**\r\n * @method\r\n * Return the related figure.\r\n *\r\n * @return {draw2d.Figure} the figure to the related change proposal\r\n */\n getFigure: function getFigure() {\n return this.figure;\n },\n\n /**\r\n * @method\r\n * The proposed x-coordinate.\r\n *\r\n * @return {Number}\r\n */\n getX: function getX() {\n return this.x;\n },\n\n /**\r\n * @method\r\n * The proposed y-coordinate\r\n *\r\n * @return {Number}\r\n */\n getY: function getY() {\n return this.y;\n }\n\n});\n/**\r\n * @class draw2d.layout.mesh.ProposedMeshChange\r\n * Change proposal for grid/mesh layout changes.\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/lib/Class.exec.js\":\n/*!*******************************!*\\\n !*** ./src/lib/Class.exec.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(/*! !./node_modules/script-loader/addScript.js */ \"./node_modules/script-loader/addScript.js\")(__webpack_require__(/*! !./node_modules/raw-loader!./src/lib/Class.exec.js */ \"./node_modules/raw-loader/index.js!./src/lib/Class.exec.js\"));\n\n/***/ }),\n\n/***/ \"./src/lib/jquery.autoresize.js\":\n/*!**************************************!*\\\n !*** ./src/lib/jquery.autoresize.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/*\r\n * jQuery.fn.autoResize 1.14\r\n * --\r\n * https://github.com/padolsey/jQuery.fn.autoResize\r\n * --\r\n * This program is free software. It comes without any warranty, to\r\n * the extent permitted by applicable law. You can redistribute it\r\n * and/or modify it under the terms of the Do What The Fuck You Want\r\n * To Public License, Version 2, as published by Sam Hocevar. See\r\n * http://sam.zoy.org/wtfpl/COPYING for more details. */\n\n(function ($) {\n\n\tvar uid = 'ar' + +new Date(),\n\t defaults = autoResize.defaults = {\n\t\tonResize: function onResize() {},\n\t\tonBeforeResize: function onBeforeResize() {\n\t\t\treturn 123;\n\t\t},\n\t\tonAfterResize: function onAfterResize() {\n\t\t\treturn 555;\n\t\t},\n\t\tanimate: {\n\t\t\tduration: 200,\n\t\t\tcomplete: function complete() {}\n\t\t},\n\t\textraSpace: 50,\n\t\tminHeight: 'original',\n\t\tmaxHeight: 500,\n\t\tminWidth: 'original',\n\t\tmaxWidth: 500\n\t};\n\n\tautoResize.cloneCSSProperties = ['lineHeight', 'textDecoration', 'letterSpacing', 'fontSize', 'fontFamily', 'fontStyle', 'fontWeight', 'textTransform', 'textAlign', 'direction', 'wordSpacing', 'fontSizeAdjust', 'paddingTop', 'paddingLeft', 'paddingBottom', 'paddingRight', 'width'];\n\n\tautoResize.cloneCSSValues = {\n\t\tposition: 'absolute',\n\t\ttop: -9999,\n\t\tleft: -9999,\n\t\topacity: 0,\n\t\toverflow: 'hidden'\n\t};\n\n\tautoResize.resizableFilterSelector = ['textarea:not(textarea.' + uid + ')', 'input:not(input[type])', 'input[type=text]', 'input[type=password]', 'input[type=email]', 'input[type=url]'].join(',');\n\n\tautoResize.AutoResizer = AutoResizer;\n\n\t$.fn.autoResize = autoResize;\n\n\tfunction autoResize(config) {\n\t\tthis.filter(autoResize.resizableFilterSelector).each(function () {\n\t\t\tnew AutoResizer($(this), config);\n\t\t});\n\t\treturn this;\n\t}\n\n\tfunction AutoResizer(el, config) {\n\n\t\tif (el.data('AutoResizer')) {\n\t\t\tel.data('AutoResizer').destroy();\n\t\t}\n\n\t\tconfig = this.config = $.extend({}, autoResize.defaults, config);\n\t\tthis.el = el;\n\n\t\tthis.nodeName = el[0].nodeName.toLowerCase();\n\n\t\tthis.originalHeight = el.height();\n\t\tthis.previousScrollTop = null;\n\n\t\tthis.value = el.val();\n\n\t\tif (config.maxWidth === 'original') config.maxWidth = el.width();\n\t\tif (config.minWidth === 'original') config.minWidth = el.width();\n\t\tif (config.maxHeight === 'original') config.maxHeight = el.height();\n\t\tif (config.minHeight === 'original') config.minHeight = el.height();\n\n\t\tif (this.nodeName === 'textarea') {\n\t\t\tel.css({\n\t\t\t\tresize: 'none',\n\t\t\t\toverflowY: 'hidden'\n\t\t\t});\n\t\t}\n\n\t\tel.data('AutoResizer', this);\n\n\t\t// Make sure onAfterResize is called upon animation completion\n\t\tconfig.animate.complete = function (f) {\n\t\t\treturn function () {\n\t\t\t\tconfig.onAfterResize.call(el);\n\t\t\t\treturn f.apply(this, arguments);\n\t\t\t};\n\t\t}(config.animate.complete);\n\n\t\tthis.bind();\n\t}\n\n\tAutoResizer.prototype = {\n\n\t\tbind: function bind() {\n\n\t\t\tvar check = $.proxy(function () {\n\t\t\t\tthis.check();\n\t\t\t\treturn true;\n\t\t\t}, this);\n\n\t\t\tthis.unbind();\n\n\t\t\tthis.el.bind('keyup.autoResize', check)\n\t\t\t//.bind('keydown.autoResize', check)\n\t\t\t.bind('change.autoResize', check).bind('paste.autoResize', function () {\n\t\t\t\tsetTimeout(function () {\n\t\t\t\t\tcheck();\n\t\t\t\t}, 0);\n\t\t\t});\n\n\t\t\tif (!this.el.is(':hidden')) {\n\t\t\t\tthis.check(null, true);\n\t\t\t}\n\t\t},\n\n\t\tunbind: function unbind() {\n\t\t\tthis.el.unbind('.autoResize');\n\t\t},\n\n\t\tcreateClone: function createClone() {\n\n\t\t\tvar el = this.el,\n\t\t\t clone = this.nodeName === 'textarea' ? el.clone() : $('<span/>');\n\n\t\t\tthis.clone = clone;\n\n\t\t\t$.each(autoResize.cloneCSSProperties, function (i, p) {\n\t\t\t\tclone[0].style[p] = el.css(p);\n\t\t\t});\n\n\t\t\tclone.removeAttr('name').removeAttr('id').addClass(uid).attr('tabIndex', -1).css(autoResize.cloneCSSValues);\n\n\t\t\tif (this.nodeName === 'textarea') {\n\t\t\t\tclone.height('auto');\n\t\t\t} else {\n\t\t\t\tclone.width('auto').css({\n\t\t\t\t\twhiteSpace: 'nowrap'\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\tcheck: function check(e, immediate) {\n\n\t\t\tif (!this.clone) {\n\t\t\t\tthis.createClone();\n\t\t\t\tthis.injectClone();\n\t\t\t}\n\n\t\t\tvar config = this.config,\n\t\t\t clone = this.clone,\n\t\t\t el = this.el,\n\t\t\t value = el.val();\n\n\t\t\t// Do nothing if value hasn't changed\n\t\t\tif (value === this.prevValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tthis.prevValue = value;\n\n\t\t\tif (this.nodeName === 'input') {\n\n\t\t\t\tclone.text(value);\n\n\t\t\t\t// Calculate new width + whether to change\n\t\t\t\tvar cloneWidth = clone.width(),\n\t\t\t\t newWidth = cloneWidth + config.extraSpace >= config.minWidth ? cloneWidth + config.extraSpace : config.minWidth,\n\t\t\t\t currentWidth = el.width();\n\n\t\t\t\tnewWidth = Math.min(newWidth, config.maxWidth);\n\n\t\t\t\tif (newWidth < currentWidth && newWidth >= config.minWidth || newWidth >= config.minWidth && newWidth <= config.maxWidth) {\n\n\t\t\t\t\tconfig.onBeforeResize.call(el);\n\t\t\t\t\tconfig.onResize.call(el);\n\n\t\t\t\t\tel.scrollLeft(0);\n\n\t\t\t\t\tif (config.animate && !immediate) {\n\t\t\t\t\t\tel.stop(1, 1).animate({\n\t\t\t\t\t\t\twidth: newWidth\n\t\t\t\t\t\t}, config.animate);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tel.width(newWidth);\n\t\t\t\t\t\tconfig.onAfterResize.call(el);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// TEXTAREA\n\n\t\t\tclone.width(el.width()).height(0).val(value).scrollTop(10000);\n\n\t\t\tvar scrollTop = clone[0].scrollTop;\n\n\t\t\tif (!value) {\n\t\t\t\t// empty textarea should be exactly minHeight\n\t\t\t\tscrollTop = config.minHeight;\n\t\t\t\tthis.previousScrollTop = null; // reset state\n\t\t\t} else {\n\t\t\t\t// Don't do anything if scrollTop hasen't changed:\n\t\t\t\tif (this.previousScrollTop === scrollTop) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.previousScrollTop = scrollTop;\n\n\t\t\t\tif (scrollTop + config.extraSpace >= config.maxHeight) {\n\t\t\t\t\tel.css('overflowY', '');\n\t\t\t\t\tscrollTop = config.maxHeight;\n\t\t\t\t\timmediate = true;\n\t\t\t\t} else if (scrollTop + config.extraSpace <= config.minHeight) {\n\t\t\t\t\t// include extraSpace in calculations so the code works correctly\n\t\t\t\t\t// when there are few lines\n\t\t\t\t\tscrollTop = config.minHeight;\n\t\t\t\t} else {\n\t\t\t\t\tel.css('overflowY', 'hidden');\n\t\t\t\t\tscrollTop += config.extraSpace;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconfig.onBeforeResize.call(el);\n\t\t\tconfig.onResize.call(el);\n\n\t\t\t// Either animate or directly apply height:\n\t\t\tif (config.animate && !immediate) {\n\t\t\t\tel.stop(1, 1).animate({\n\t\t\t\t\theight: scrollTop\n\t\t\t\t}, config.animate);\n\t\t\t} else {\n\t\t\t\tel.height(scrollTop);\n\t\t\t\tconfig.onAfterResize.call(el);\n\t\t\t}\n\t\t},\n\n\t\tdestroy: function destroy() {\n\t\t\tthis.unbind();\n\t\t\tthis.el.removeData('AutoResizer');\n\t\t\tthis.clone.remove();\n\t\t\tdelete this.el;\n\t\t\tdelete this.clone;\n\t\t},\n\n\t\tinjectClone: function injectClone() {\n\t\t\t(autoResize.cloneContainer || (autoResize.cloneContainer = $('<arclones/>').appendTo('body'))).append(this.clone);\n\t\t}\n\n\t};\n})(jQuery);\n\n/***/ }),\n\n/***/ \"./src/lib/jquery.contextmenu.js\":\n/*!***************************************!*\\\n !*** ./src/lib/jquery.contextmenu.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/*!\r\n * jQuery contextMenu - Plugin for simple contextMenu handling\r\n *\r\n * Version: 1.6.5\r\n *\r\n * Authors: Rodney Rehm, Addy Osmani (patches for FF)\r\n * Web: http://medialize.github.com/jQuery-contextMenu/\r\n *\r\n * Licensed under\r\n * MIT License http://www.opensource.org/licenses/mit-license\r\n * GPL v3 http://opensource.org/licenses/GPL-3.0\r\n *\r\n */\n\n(function ($, undefined) {\n\n // TODO: -\n // ARIA stuff: menuitem, menuitemcheckbox und menuitemradio\n // create <menu> structure if $.support[htmlCommand || htmlMenuitem] and !opt.disableNative\n\n // determine html5 compatibility\n $.support.htmlMenuitem = 'HTMLMenuItemElement' in window;\n $.support.htmlCommand = 'HTMLCommandElement' in window;\n $.support.eventSelectstart = \"onselectstart\" in document.documentElement;\n /* // should the need arise, test for css user-select\r\n $.support.cssUserSelect = (function(){\r\n var t = false,\r\n e = document.createElement('div');\r\n \r\n $.each('Moz|Webkit|Khtml|O|ms|Icab|'.split('|'), function(i, prefix) {\r\n var propCC = prefix + (prefix ? 'U' : 'u') + 'serSelect',\r\n prop = (prefix ? ('-' + prefix.toLowerCase() + '-') : '') + 'user-select';\r\n \r\n e.style.cssText = prop + ': text;';\r\n if (e.style[propCC] == 'text') {\r\n t = true;\r\n return false;\r\n }\r\n \r\n return true;\r\n });\r\n \r\n return t;\r\n })();\r\n */\n\n if (!$.ui || !$.ui.widget) {\n // duck punch $.cleanData like jQueryUI does to get that remove event\n // https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.widget.js#L16-24\n var _cleanData = $.cleanData;\n $.cleanData = function (elems) {\n for (var i = 0, elem; (elem = elems[i]) != null; i++) {\n try {\n $(elem).triggerHandler(\"remove\");\n // http://bugs.jquery.com/ticket/8235\n } catch (e) {}\n }\n _cleanData(elems);\n };\n }\n\n var // currently active contextMenu trigger\n $currentTrigger = null,\n\n // is contextMenu initialized with at least one menu?\n initialized = false,\n\n // window handle\n $win = $(window),\n\n // number of registered menus\n counter = 0,\n\n // mapping selector to namespace\n namespaces = {},\n\n // mapping namespace to options\n menus = {},\n\n // custom command type handlers\n types = {},\n\n // default values\n defaults = {\n // selector of contextMenu trigger\n selector: null,\n // where to append the menu to\n appendTo: null,\n // method to trigger context menu [\"right\", \"left\", \"hover\"]\n trigger: \"right\",\n // hide menu when mouse leaves trigger / menu elements\n autoHide: false,\n // ms to wait before showing a hover-triggered context menu\n delay: 200,\n // flag denoting if a second trigger should simply move (true) or rebuild (false) an open menu\n // as long as the trigger happened on one of the trigger-element's child nodes\n reposition: false,\n // determine position to show menu at\n determinePosition: function determinePosition($menu) {\n // position to the lower middle of the trigger element\n if ($.ui && $.ui.position) {\n // .position() is provided as a jQuery UI utility\n // (...and it won't work on hidden elements)\n $menu.css('display', 'block').position({\n my: \"center top\",\n at: \"center bottom\",\n of: this,\n offset: \"0 5\",\n collision: \"fit\"\n }).css('display', 'none');\n } else {\n // determine contextMenu position\n var offset = this.offset();\n offset.top += this.outerHeight();\n offset.left += this.outerWidth() / 2 - $menu.outerWidth() / 2;\n $menu.css(offset);\n }\n },\n // position menu\n position: function position(opt, x, y) {\n var $this = this,\n offset;\n // determine contextMenu position\n if (!x && !y) {\n opt.determinePosition.call(this, opt.$menu);\n return;\n } else if (x === \"maintain\" && y === \"maintain\") {\n // x and y must not be changed (after re-show on command click)\n offset = opt.$menu.position();\n } else {\n // x and y are given (by mouse event)\n offset = { top: y, left: x };\n }\n\n // correct offset if viewport demands it\n var bottom = $win.scrollTop() + $win.height(),\n right = $win.scrollLeft() + $win.width(),\n height = opt.$menu.height(),\n width = opt.$menu.width();\n\n if (offset.top + height > bottom) {\n offset.top -= height;\n }\n\n if (offset.left + width > right) {\n offset.left -= width;\n }\n\n opt.$menu.css(offset);\n },\n // position the sub-menu\n positionSubmenu: function positionSubmenu($menu) {\n if ($.ui && $.ui.position) {\n // .position() is provided as a jQuery UI utility\n // (...and it won't work on hidden elements)\n $menu.css('display', 'block').position({\n my: \"left top\",\n at: \"right top\",\n of: this,\n collision: \"flipfit fit\"\n }).css('display', '');\n } else {\n // determine contextMenu position\n var offset = {\n top: 0,\n left: this.outerWidth()\n };\n $menu.css(offset);\n }\n },\n // offset to add to zIndex\n zIndex: 1,\n // show hide animation settings\n animation: {\n duration: 50,\n show: 'slideDown',\n hide: 'slideUp'\n },\n // events\n events: {\n show: $.noop,\n hide: $.noop\n },\n // default callback\n callback: null,\n // list of contextMenu items\n items: {}\n },\n\n // mouse position for hover activation\n hoveract = {\n timer: null,\n pageX: null,\n pageY: null\n },\n\n // determine zIndex\n zindex = function zindex($t) {\n var zin = 0,\n $tt = $t;\n\n while (true) {\n zin = Math.max(zin, parseInt($tt.css('z-index'), 10) || 0);\n $tt = $tt.parent();\n if (!$tt || !$tt.length || \"html body\".indexOf($tt.prop('nodeName').toLowerCase()) > -1) {\n break;\n }\n }\n\n return zin;\n },\n\n // event handlers\n handle = {\n // abort anything\n abortevent: function abortevent(e) {\n e.preventDefault();\n e.stopImmediatePropagation();\n },\n\n // contextmenu show dispatcher\n contextmenu: function contextmenu(e) {\n var $this = $(this);\n\n // disable actual context-menu\n e.preventDefault();\n e.stopImmediatePropagation();\n\n // abort native-triggered events unless we're triggering on right click\n if (e.data.trigger != 'right' && e.originalEvent) {\n return;\n }\n\n // abort event if menu is visible for this trigger\n if ($this.hasClass('context-menu-active')) {\n return;\n }\n\n if (!$this.hasClass('context-menu-disabled')) {\n // theoretically need to fire a show event at <menu>\n // http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#context-menus\n // var evt = jQuery.Event(\"show\", { data: data, pageX: e.pageX, pageY: e.pageY, relatedTarget: this });\n // e.data.$menu.trigger(evt);\n\n $currentTrigger = $this;\n if (e.data.build) {\n var built = e.data.build($currentTrigger, e);\n // abort if build() returned false\n if (built === false) {\n return;\n }\n\n // dynamically build menu on invocation\n e.data = $.extend(true, {}, defaults, e.data, built || {});\n\n // abort if there are no items to display\n if (!e.data.items || $.isEmptyObject(e.data.items)) {\n // Note: jQuery captures and ignores errors from event handlers\n if (window.console) {\n (console.error || console.log)(\"No items specified to show in contextMenu\");\n }\n\n throw new Error('No Items sepcified');\n }\n\n // backreference for custom command type creation\n e.data.$trigger = $currentTrigger;\n\n op.create(e.data);\n }\n // show menu\n op.show.call($this, e.data, e.pageX, e.pageY);\n }\n },\n // contextMenu left-click trigger\n click: function click(e) {\n e.preventDefault();\n e.stopImmediatePropagation();\n $(this).trigger($.Event(\"contextmenu\", { data: e.data, pageX: e.pageX, pageY: e.pageY }));\n },\n // contextMenu right-click trigger\n mousedown: function mousedown(e) {\n // register mouse down\n var $this = $(this);\n\n // hide any previous menus\n if ($currentTrigger && $currentTrigger.length && !$currentTrigger.is($this)) {\n $currentTrigger.data('contextMenu').$menu.trigger('contextmenu:hide');\n }\n\n // activate on right click\n if (e.button == 2) {\n $currentTrigger = $this.data('contextMenuActive', true);\n }\n },\n // contextMenu right-click trigger\n mouseup: function mouseup(e) {\n // show menu\n var $this = $(this);\n if ($this.data('contextMenuActive') && $currentTrigger && $currentTrigger.length && $currentTrigger.is($this) && !$this.hasClass('context-menu-disabled')) {\n e.preventDefault();\n e.stopImmediatePropagation();\n $currentTrigger = $this;\n $this.trigger($.Event(\"contextmenu\", { data: e.data, pageX: e.pageX, pageY: e.pageY }));\n }\n\n $this.removeData('contextMenuActive');\n },\n // contextMenu hover trigger\n mouseenter: function mouseenter(e) {\n var $this = $(this),\n $related = $(e.relatedTarget),\n $document = $(document);\n\n // abort if we're coming from a menu\n if ($related.is('.context-menu-list') || $related.closest('.context-menu-list').length) {\n return;\n }\n\n // abort if a menu is shown\n if ($currentTrigger && $currentTrigger.length) {\n return;\n }\n\n hoveract.pageX = e.pageX;\n hoveract.pageY = e.pageY;\n hoveract.data = e.data;\n $document.on('mousemove.contextMenuShow', handle.mousemove);\n hoveract.timer = setTimeout(function () {\n hoveract.timer = null;\n $document.off('mousemove.contextMenuShow');\n $currentTrigger = $this;\n $this.trigger($.Event(\"contextmenu\", { data: hoveract.data, pageX: hoveract.pageX, pageY: hoveract.pageY }));\n }, e.data.delay);\n },\n // contextMenu hover trigger\n mousemove: function mousemove(e) {\n hoveract.pageX = e.pageX;\n hoveract.pageY = e.pageY;\n },\n // contextMenu hover trigger\n mouseleave: function mouseleave(e) {\n // abort if we're leaving for a menu\n var $related = $(e.relatedTarget);\n if ($related.is('.context-menu-list') || $related.closest('.context-menu-list').length) {\n return;\n }\n\n try {\n clearTimeout(hoveract.timer);\n } catch (e) {}\n\n hoveract.timer = null;\n },\n\n // click on layer to hide contextMenu\n layerClick: function layerClick(e) {\n var $this = $(this),\n root = $this.data('contextMenuRoot'),\n mouseup = false,\n button = e.button,\n x = e.pageX,\n y = e.pageY,\n target,\n offset,\n selectors;\n\n e.preventDefault();\n e.stopImmediatePropagation();\n\n setTimeout(function () {\n var $window, hideshow, possibleTarget;\n var triggerAction = root.trigger == 'left' && button === 0 || root.trigger == 'right' && button === 2;\n\n // find the element that would've been clicked, wasn't the layer in the way\n if (document.elementFromPoint) {\n root.$layer.hide();\n target = document.elementFromPoint(x - $win.scrollLeft(), y - $win.scrollTop());\n root.$layer.show();\n }\n\n if (root.reposition && triggerAction) {\n if (document.elementFromPoint) {\n if (root.$trigger.is(target) || root.$trigger.has(target).length) {\n root.position.call(root.$trigger, root, x, y);\n return;\n }\n } else {\n offset = root.$trigger.offset();\n $window = $(window);\n // while this looks kinda awful, it's the best way to avoid\n // unnecessarily calculating any positions\n offset.top += $window.scrollTop();\n if (offset.top <= e.pageY) {\n offset.left += $window.scrollLeft();\n if (offset.left <= e.pageX) {\n offset.bottom = offset.top + root.$trigger.outerHeight();\n if (offset.bottom >= e.pageY) {\n offset.right = offset.left + root.$trigger.outerWidth();\n if (offset.right >= e.pageX) {\n // reposition\n root.position.call(root.$trigger, root, x, y);\n return;\n }\n }\n }\n }\n }\n }\n\n if (target && triggerAction) {\n root.$trigger.one('contextmenu:hidden', function () {\n $(target).contextMenu({ x: x, y: y });\n });\n }\n\n root.$menu.trigger('contextmenu:hide');\n }, 50);\n },\n // key handled :hover\n keyStop: function keyStop(e, opt) {\n if (!opt.isInput) {\n e.preventDefault();\n }\n\n e.stopPropagation();\n },\n key: function key(e) {\n var opt = $currentTrigger.data('contextMenu') || {};\n\n switch (e.keyCode) {\n case 9:\n case 38:\n // up\n handle.keyStop(e, opt);\n // if keyCode is [38 (up)] or [9 (tab) with shift]\n if (opt.isInput) {\n if (e.keyCode == 9 && e.shiftKey) {\n e.preventDefault();\n opt.$selected && opt.$selected.find('input, textarea, select').blur();\n opt.$menu.trigger('prevcommand');\n return;\n } else if (e.keyCode == 38 && opt.$selected.find('input, textarea, select').prop('type') == 'checkbox') {\n // checkboxes don't capture this key\n e.preventDefault();\n return;\n }\n } else if (e.keyCode != 9 || e.shiftKey) {\n opt.$menu.trigger('prevcommand');\n return;\n }\n // omitting break;\n\n // case 9: // tab - reached through omitted break;\n case 40:\n // down\n handle.keyStop(e, opt);\n if (opt.isInput) {\n if (e.keyCode == 9) {\n e.preventDefault();\n opt.$selected && opt.$selected.find('input, textarea, select').blur();\n opt.$menu.trigger('nextcommand');\n return;\n } else if (e.keyCode == 40 && opt.$selected.find('input, textarea, select').prop('type') == 'checkbox') {\n // checkboxes don't capture this key\n e.preventDefault();\n return;\n }\n } else {\n opt.$menu.trigger('nextcommand');\n return;\n }\n break;\n\n case 37:\n // left\n handle.keyStop(e, opt);\n if (opt.isInput || !opt.$selected || !opt.$selected.length) {\n break;\n }\n\n if (!opt.$selected.parent().hasClass('context-menu-root')) {\n var $parent = opt.$selected.parent().parent();\n opt.$selected.trigger('contextmenu:blur');\n opt.$selected = $parent;\n return;\n }\n break;\n\n case 39:\n // right\n handle.keyStop(e, opt);\n if (opt.isInput || !opt.$selected || !opt.$selected.length) {\n break;\n }\n\n var itemdata = opt.$selected.data('contextMenu') || {};\n if (itemdata.$menu && opt.$selected.hasClass('context-menu-submenu')) {\n opt.$selected = null;\n itemdata.$selected = null;\n itemdata.$menu.trigger('nextcommand');\n return;\n }\n break;\n\n case 35: // end\n case 36:\n // home\n if (opt.$selected && opt.$selected.find('input, textarea, select').length) {\n return;\n } else {\n (opt.$selected && opt.$selected.parent() || opt.$menu).children(':not(.disabled, .not-selectable)')[e.keyCode == 36 ? 'first' : 'last']().trigger('contextmenu:focus');\n e.preventDefault();\n return;\n }\n break;\n\n case 13:\n // enter\n handle.keyStop(e, opt);\n if (opt.isInput) {\n if (opt.$selected && !opt.$selected.is('textarea, select')) {\n e.preventDefault();\n return;\n }\n break;\n }\n opt.$selected && opt.$selected.trigger('mouseup');\n return;\n\n case 32: // space\n case 33: // page up\n case 34:\n // page down\n // prevent browser from scrolling down while menu is visible\n handle.keyStop(e, opt);\n return;\n\n case 27:\n // esc\n handle.keyStop(e, opt);\n opt.$menu.trigger('contextmenu:hide');\n return;\n\n default:\n // 0-9, a-z\n var k = String.fromCharCode(e.keyCode).toUpperCase();\n if (opt.accesskeys[k]) {\n // according to the specs accesskeys must be invoked immediately\n opt.accesskeys[k].$node.trigger(opt.accesskeys[k].$menu ? 'contextmenu:focus' : 'mouseup');\n return;\n }\n break;\n }\n // pass event to selected item,\n // stop propagation to avoid endless recursion\n e.stopPropagation();\n opt.$selected && opt.$selected.trigger(e);\n },\n\n // select previous possible command in menu\n prevItem: function prevItem(e) {\n e.stopPropagation();\n var opt = $(this).data('contextMenu') || {};\n\n // obtain currently selected menu\n if (opt.$selected) {\n var $s = opt.$selected;\n opt = opt.$selected.parent().data('contextMenu') || {};\n opt.$selected = $s;\n }\n\n var $children = opt.$menu.children(),\n $prev = !opt.$selected || !opt.$selected.prev().length ? $children.last() : opt.$selected.prev(),\n $round = $prev;\n\n // skip disabled\n while ($prev.hasClass('disabled') || $prev.hasClass('not-selectable')) {\n if ($prev.prev().length) {\n $prev = $prev.prev();\n } else {\n $prev = $children.last();\n }\n if ($prev.is($round)) {\n // break endless loop\n return;\n }\n }\n\n // leave current\n if (opt.$selected) {\n handle.itemMouseleave.call(opt.$selected.get(0), e);\n }\n\n // activate next\n handle.itemMouseenter.call($prev.get(0), e);\n\n // focus input\n var $input = $prev.find('input, textarea, select');\n if ($input.length) {\n $input.focus();\n }\n },\n // select next possible command in menu\n nextItem: function nextItem(e) {\n e.stopPropagation();\n var opt = $(this).data('contextMenu') || {};\n\n // obtain currently selected menu\n if (opt.$selected) {\n var $s = opt.$selected;\n opt = opt.$selected.parent().data('contextMenu') || {};\n opt.$selected = $s;\n }\n\n var $children = opt.$menu.children(),\n $next = !opt.$selected || !opt.$selected.next().length ? $children.first() : opt.$selected.next(),\n $round = $next;\n\n // skip disabled\n while ($next.hasClass('disabled') || $next.hasClass('not-selectable')) {\n if ($next.next().length) {\n $next = $next.next();\n } else {\n $next = $children.first();\n }\n if ($next.is($round)) {\n // break endless loop\n return;\n }\n }\n\n // leave current\n if (opt.$selected) {\n handle.itemMouseleave.call(opt.$selected.get(0), e);\n }\n\n // activate next\n handle.itemMouseenter.call($next.get(0), e);\n\n // focus input\n var $input = $next.find('input, textarea, select');\n if ($input.length) {\n $input.focus();\n }\n },\n\n // flag that we're inside an input so the key handler can act accordingly\n focusInput: function focusInput(e) {\n var $this = $(this).closest('.context-menu-item'),\n data = $this.data(),\n opt = data.contextMenu,\n root = data.contextMenuRoot;\n\n root.$selected = opt.$selected = $this;\n root.isInput = opt.isInput = true;\n },\n // flag that we're inside an input so the key handler can act accordingly\n blurInput: function blurInput(e) {\n var $this = $(this).closest('.context-menu-item'),\n data = $this.data(),\n opt = data.contextMenu,\n root = data.contextMenuRoot;\n\n root.isInput = opt.isInput = false;\n },\n\n // :hover on menu\n menuMouseenter: function menuMouseenter(e) {\n var root = $(this).data().contextMenuRoot;\n if (root) root.hovering = true;\n },\n // :hover on menu\n menuMouseleave: function menuMouseleave(e) {\n var root = $(this).data().contextMenuRoot;\n if (root && root.$layer && root.$layer.is(e.relatedTarget)) {\n root.hovering = false;\n }\n },\n\n // :hover done manually so key handling is possible\n itemMouseenter: function itemMouseenter(e) {\n var $this = $(this),\n data = $this.data(),\n opt = data.contextMenu,\n root = data.contextMenuRoot;\n\n if (!root) return;\n\n root.hovering = true;\n\n // abort if we're re-entering\n if (e && root.$layer && root.$layer.is(e.relatedTarget)) {\n e.preventDefault();\n e.stopImmediatePropagation();\n }\n\n // make sure only one item is selected\n (opt.$menu ? opt : root).$menu.children('.hover').trigger('contextmenu:blur');\n\n if ($this.hasClass('disabled') || $this.hasClass('not-selectable')) {\n opt.$selected = null;\n return;\n }\n\n $this.trigger('contextmenu:focus');\n },\n // :hover done manually so key handling is possible\n itemMouseleave: function itemMouseleave(e) {\n var $this = $(this),\n data = $this.data(),\n opt = data.contextMenu,\n root = data.contextMenuRoot;\n\n if (root && root !== opt && root.$layer && root.$layer.is(e.relatedTarget)) {\n root.$selected && root.$selected.trigger('contextmenu:blur');\n e.preventDefault();\n e.stopImmediatePropagation();\n root.$selected = opt.$selected = opt.$node;\n return;\n }\n\n $this.trigger('contextmenu:blur');\n },\n // contextMenu item click\n itemClick: function itemClick(e) {\n var $this = $(this),\n data = $this.data(),\n opt = data.contextMenu,\n root = data.contextMenuRoot,\n key = data.contextMenuKey,\n callback;\n\n // abort if the key is unknown or disabled or is a menu\n if (!opt.items[key] || $this.is('.disabled, .context-menu-submenu, .context-menu-separator, .not-selectable')) {\n return;\n }\n\n e.preventDefault();\n e.stopImmediatePropagation();\n\n if ($.isFunction(root.callbacks[key]) && Object.prototype.hasOwnProperty.call(root.callbacks, key)) {\n // item-specific callback\n callback = root.callbacks[key];\n } else if ($.isFunction(root.callback)) {\n // default callback\n callback = root.callback;\n } else {\n // no callback, no action\n return;\n }\n\n // hide menu if callback doesn't stop that\n if (callback.call(root.$trigger, key, root) !== false) {\n root.$menu.trigger('contextmenu:hide');\n } else if (root.$menu.parent().length) {\n op.update.call(root.$trigger, root);\n }\n },\n // ignore click events on input elements\n inputClick: function inputClick(e) {\n e.stopImmediatePropagation();\n },\n\n // hide <menu>\n hideMenu: function hideMenu(e, data) {\n var root = $(this).data('contextMenuRoot');\n op.hide.call(root.$trigger, root, data && data.force);\n },\n // focus <command>\n focusItem: function focusItem(e) {\n e.stopPropagation();\n var $this = $(this),\n data = $this.data(),\n opt = data.contextMenu,\n root = data.contextMenuRoot;\n\n $this.addClass('hover').siblings('.hover').trigger('contextmenu:blur');\n\n // remember selected\n opt.$selected = root.$selected = $this;\n\n // position sub-menu - do after show so dumb $.ui.position can keep up\n if (opt.$node) {\n root.positionSubmenu.call(opt.$node, opt.$menu);\n }\n },\n // blur <command>\n blurItem: function blurItem(e) {\n e.stopPropagation();\n var $this = $(this),\n data = $this.data(),\n opt = data.contextMenu;\n\n $this.removeClass('hover');\n if (opt) opt.$selected = null;\n }\n },\n\n // operations\n op = {\n show: function show(opt, x, y) {\n var $trigger = $(this),\n offset,\n css = {};\n\n // hide any open menus\n $('#context-menu-layer').trigger('mousedown');\n\n // backreference for callbacks\n opt.$trigger = $trigger;\n\n // show event\n if (opt.events.show.call($trigger, opt) === false) {\n $currentTrigger = null;\n return;\n }\n\n // create or update context menu\n op.update.call($trigger, opt);\n\n // position menu\n opt.position.call($trigger, opt, x, y);\n\n // make sure we're in front\n if (opt.zIndex) {\n css.zIndex = zindex($trigger) + opt.zIndex;\n }\n\n // add layer\n op.layer.call(opt.$menu, opt, css.zIndex);\n\n // adjust sub-menu zIndexes\n opt.$menu.find('ul').css('zIndex', css.zIndex + 1);\n\n // position and show context menu\n opt.$menu.css(css)[opt.animation.show](opt.animation.duration, function () {\n $trigger.trigger('contextmenu:visible');\n });\n // make options available and set state\n $trigger.data('contextMenu', opt).addClass(\"context-menu-active\");\n\n // register key handler\n $(document).off('keydown.contextMenu').on('keydown.contextMenu', handle.key);\n // register autoHide handler\n if (opt.autoHide) {\n // mouse position handler\n $(document).on('mousemove.contextMenuAutoHide', function (e) {\n // need to capture the offset on mousemove,\n // since the page might've been scrolled since activation\n var pos = $trigger.offset();\n pos.right = pos.left + $trigger.outerWidth();\n pos.bottom = pos.top + $trigger.outerHeight();\n\n if (opt.$layer && !opt.hovering && (!(e.pageX >= pos.left && e.pageX <= pos.right) || !(e.pageY >= pos.top && e.pageY <= pos.bottom))) {\n // if mouse in menu...\n opt.$menu.trigger('contextmenu:hide');\n }\n });\n }\n },\n hide: function hide(opt, force) {\n var $trigger = $(this);\n if (!opt) {\n opt = $trigger.data('contextMenu') || {};\n }\n\n // hide event\n if (!force && opt.events && opt.events.hide.call($trigger, opt) === false) {\n return;\n }\n\n // remove options and revert state\n $trigger.removeData('contextMenu').removeClass(\"context-menu-active\");\n\n if (opt.$layer) {\n // keep layer for a bit so the contextmenu event can be aborted properly by opera\n setTimeout(function ($layer) {\n return function () {\n $layer.remove();\n };\n }(opt.$layer), 10);\n\n try {\n delete opt.$layer;\n } catch (e) {\n opt.$layer = null;\n }\n }\n\n // remove handle\n $currentTrigger = null;\n // remove selected\n opt.$menu.find('.hover').trigger('contextmenu:blur');\n opt.$selected = null;\n // unregister key and mouse handlers\n //$(document).off('.contextMenuAutoHide keydown.contextMenu'); // http://bugs.jquery.com/ticket/10705\n $(document).off('.contextMenuAutoHide').off('keydown.contextMenu');\n // hide menu\n opt.$menu && opt.$menu[opt.animation.hide](opt.animation.duration, function () {\n // tear down dynamically built menu after animation is completed.\n if (opt.build) {\n opt.$menu.remove();\n $.each(opt, function (key, value) {\n switch (key) {\n case 'ns':\n case 'selector':\n case 'build':\n case 'trigger':\n return true;\n\n default:\n opt[key] = undefined;\n try {\n delete opt[key];\n } catch (e) {}\n return true;\n }\n });\n }\n\n setTimeout(function () {\n $trigger.trigger('contextmenu:hidden');\n }, 10);\n });\n },\n create: function create(opt, root) {\n if (root === undefined) {\n root = opt;\n }\n // create contextMenu\n opt.$menu = $('<ul class=\"context-menu-list\"></ul>').addClass(opt.className || \"\").data({\n 'contextMenu': opt,\n 'contextMenuRoot': root\n });\n\n $.each(['callbacks', 'commands', 'inputs'], function (i, k) {\n opt[k] = {};\n if (!root[k]) {\n root[k] = {};\n }\n });\n\n root.accesskeys || (root.accesskeys = {});\n\n // create contextMenu items\n $.each(opt.items, function (key, item) {\n var $t = $('<li class=\"context-menu-item\"></li>').addClass(item.className || \"\"),\n $label = null,\n $input = null;\n\n // iOS needs to see a click-event bound to an element to actually\n // have the TouchEvents infrastructure trigger the click event\n $t.on('click', $.noop);\n\n if (typeof item !== \"string\") {\n item.$node = $t.data({\n 'contextMenu': opt,\n 'contextMenuRoot': root,\n 'contextMenuKey': key\n });\n }\n\n // register accesskey\n // NOTE: the accesskey attribute should be applicable to any element, but Safari5 and Chrome13 still can't do that\n if (item.accesskey) {\n var aks = splitAccesskey(item.accesskey);\n for (var i = 0, ak; ak = aks[i]; i++) {\n if (!root.accesskeys[ak]) {\n root.accesskeys[ak] = item;\n item._name = item.name.replace(new RegExp('(' + ak + ')', 'i'), '<span class=\"context-menu-accesskey\">$1</span>');\n break;\n }\n }\n }\n\n if (typeof item == \"string\") {\n $t.addClass('context-menu-separator not-selectable');\n } else if (item.type && types[item.type]) {\n // run custom type handler\n types[item.type].call($t, item, opt, root);\n // register commands\n $.each([opt, root], function (i, k) {\n k.commands[key] = item;\n if ($.isFunction(item.callback)) {\n k.callbacks[key] = item.callback;\n }\n });\n } else {\n // add label for input\n if (item.type == 'html') {\n $t.addClass('context-menu-html not-selectable');\n } else if (item.type) {\n $label = $('<label></label>').appendTo($t);\n $('<span></span>').html(item._name || item.name).appendTo($label);\n $t.addClass('context-menu-input');\n opt.hasTypes = true;\n $.each([opt, root], function (i, k) {\n k.commands[key] = item;\n k.inputs[key] = item;\n });\n } else if (item.items) {\n item.type = 'sub';\n }\n\n switch (item.type) {\n case 'text':\n $input = $('<input type=\"text\" value=\"1\" name=\"\" value=\"\">').attr('name', 'context-menu-input-' + key).val(item.value || \"\").appendTo($label);\n break;\n\n case 'textarea':\n $input = $('<textarea name=\"\"></textarea>').attr('name', 'context-menu-input-' + key).val(item.value || \"\").appendTo($label);\n\n if (item.height) {\n $input.height(item.height);\n }\n break;\n\n case 'checkbox':\n $input = $('<input type=\"checkbox\" value=\"1\" name=\"\" value=\"\">').attr('name', 'context-menu-input-' + key).val(item.value || \"\").prop(\"checked\", !!item.selected).prependTo($label);\n break;\n\n case 'radio':\n $input = $('<input type=\"radio\" value=\"1\" name=\"\" value=\"\">').attr('name', 'context-menu-input-' + item.radio).val(item.value || \"\").prop(\"checked\", !!item.selected).prependTo($label);\n break;\n\n case 'select':\n $input = $('<select name=\"\">').attr('name', 'context-menu-input-' + key).appendTo($label);\n if (item.options) {\n $.each(item.options, function (value, text) {\n $('<option></option>').val(value).text(text).appendTo($input);\n });\n $input.val(item.selected);\n }\n break;\n\n case 'sub':\n // FIXME: shouldn't this .html() be a .text()?\n $('<span></span>').html(item._name || item.name).appendTo($t);\n item.appendTo = item.$node;\n op.create(item, root);\n $t.data('contextMenu', item).addClass('context-menu-submenu');\n item.callback = null;\n break;\n\n case 'html':\n $(item.html).appendTo($t);\n break;\n\n default:\n $.each([opt, root], function (i, k) {\n k.commands[key] = item;\n if ($.isFunction(item.callback)) {\n k.callbacks[key] = item.callback;\n }\n });\n // FIXME: shouldn't this .html() be a .text()?\n $('<span></span>').html(item._name || item.name || \"\").appendTo($t);\n break;\n }\n\n // disable key listener in <input>\n if (item.type && item.type != 'sub' && item.type != 'html') {\n $input.on('focus', handle.focusInput).on('blur', handle.blurInput);\n\n if (item.events) {\n $input.on(item.events, opt);\n }\n }\n\n // add icons\n if (item.icon) {\n $t.addClass(\"icon icon-\" + item.icon);\n }\n }\n\n // cache contained elements\n if (typeof item !== \"string\") {\n item.$input = $input;\n item.$label = $label;\n }\n\n // attach item to menu\n $t.appendTo(opt.$menu);\n\n // Disable text selection\n if (!opt.hasTypes && $.support.eventSelectstart) {\n // browsers support user-select: none,\n // IE has a special event for text-selection\n // browsers supporting neither will not be preventing text-selection\n $t.on('selectstart.disableTextSelect', handle.abortevent);\n }\n });\n // attach contextMenu to <body> (to bypass any possible overflow:hidden issues on parents of the trigger element)\n if (!opt.$node) {\n opt.$menu.css('display', 'none').addClass('context-menu-root');\n }\n opt.$menu.appendTo(opt.appendTo || document.body);\n },\n resize: function resize($menu, nested) {\n // determine widths of submenus, as CSS won't grow them automatically\n // position:absolute within position:absolute; min-width:100; max-width:200; results in width: 100;\n // kinda sucks hard...\n\n // determine width of absolutely positioned element\n $menu.css({ position: 'absolute', display: 'block' });\n // don't apply yet, because that would break nested elements' widths\n // add a pixel to circumvent word-break issue in IE9 - #80\n $menu.data('width', Math.ceil($menu.width()) + 1);\n // reset styles so they allow nested elements to grow/shrink naturally\n $menu.css({\n position: 'static',\n minWidth: '0px',\n maxWidth: '100000px'\n });\n // identify width of nested menus\n $menu.find('> li > ul').each(function () {\n op.resize($(this), true);\n });\n // reset and apply changes in the end because nested\n // elements' widths wouldn't be calculatable otherwise\n if (!nested) {\n $menu.find('ul').andSelf().css({\n position: '',\n display: '',\n minWidth: '',\n maxWidth: ''\n }).width(function () {\n return $(this).data('width');\n });\n }\n },\n update: function update(opt, root) {\n var $trigger = this;\n if (root === undefined) {\n root = opt;\n op.resize(opt.$menu);\n }\n // re-check disabled for each item\n opt.$menu.children().each(function () {\n var $item = $(this),\n key = $item.data('contextMenuKey'),\n item = opt.items[key],\n disabled = item === undefined || typeof item === \"string\" || $.isFunction(item.disabled) && item.disabled.call($trigger, key, root) || item.disabled === true;\n\n // dis- / enable item\n $item[disabled ? 'addClass' : 'removeClass']('disabled');\n\n if (item && item.type) {\n // dis- / enable input elements\n $item.find('input, select, textarea').prop('disabled', disabled);\n\n // update input states\n switch (item.type) {\n case 'text':\n case 'textarea':\n item.$input.val(item.value || \"\");\n break;\n\n case 'checkbox':\n case 'radio':\n item.$input.val(item.value || \"\").prop('checked', !!item.selected);\n break;\n\n case 'select':\n item.$input.val(item.selected || \"\");\n break;\n }\n }\n\n if (item && item.$menu) {\n // update sub-menu\n op.update.call($trigger, item, root);\n }\n });\n },\n layer: function layer(opt, zIndex) {\n // add transparent layer for click area\n // filter and background for Internet Explorer, Issue #23\n var $layer = opt.$layer = $('<div id=\"context-menu-layer\" style=\"position:fixed; z-index:' + zIndex + '; top:0; left:0; opacity: 0; filter: alpha(opacity=0); background-color: #000;\"></div>').css({ height: $win.height(), width: $win.width(), display: 'block' }).data('contextMenuRoot', opt).insertBefore(this).on('contextmenu', handle.abortevent).on('mousedown', handle.layerClick);\n\n // IE6 doesn't know position:fixed;\n if (!$.support.fixedPosition) {\n $layer.css({\n 'position': 'absolute',\n 'height': $(document).height()\n });\n }\n\n return $layer;\n }\n };\n\n // split accesskey according to http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#assigned-access-key\n function splitAccesskey(val) {\n var t = val.split(/\\s+/),\n keys = [];\n\n for (var i = 0, k; k = t[i]; i++) {\n k = k[0].toUpperCase(); // first character only\n // theoretically non-accessible characters should be ignored, but different systems, different keyboard layouts, ... screw it.\n // a map to look up already used access keys would be nice\n keys.push(k);\n }\n\n return keys;\n }\n\n // handle contextMenu triggers\n $.fn.contextMenu = function (operation) {\n if (operation === undefined) {\n this.first().trigger('contextmenu');\n } else if (operation.x && operation.y) {\n this.first().trigger($.Event(\"contextmenu\", { pageX: operation.x, pageY: operation.y }));\n } else if (operation === \"hide\") {\n var $menu = this.data('contextMenu').$menu;\n $menu && $menu.trigger('contextmenu:hide');\n } else if (operation === \"destroy\") {\n $.contextMenu(\"destroy\", { context: this });\n } else if ($.isPlainObject(operation)) {\n operation.context = this;\n $.contextMenu(\"create\", operation);\n } else if (operation) {\n this.removeClass('context-menu-disabled');\n } else if (!operation) {\n this.addClass('context-menu-disabled');\n }\n\n return this;\n };\n\n // manage contextMenu instances\n $.contextMenu = function (operation, options) {\n if (typeof operation != 'string') {\n options = operation;\n operation = 'create';\n }\n\n if (typeof options == 'string') {\n options = { selector: options };\n } else if (options === undefined) {\n options = {};\n }\n\n // merge with default options\n var o = $.extend(true, {}, defaults, options || {});\n var $document = $(document);\n var $context = $document;\n var _hasContext = false;\n\n if (!o.context || !o.context.length) {\n o.context = document;\n } else {\n // you never know what they throw at you...\n $context = $(o.context).first();\n o.context = $context.get(0);\n _hasContext = o.context !== document;\n }\n\n switch (operation) {\n case 'create':\n // no selector no joy\n if (!o.selector) {\n throw new Error('No selector specified');\n }\n // make sure internal classes are not bound to\n if (o.selector.match(/.context-menu-(list|item|input)($|\\s)/)) {\n throw new Error('Cannot bind to selector \"' + o.selector + '\" as it contains a reserved className');\n }\n if (!o.build && (!o.items || $.isEmptyObject(o.items))) {\n throw new Error('No Items sepcified');\n }\n counter++;\n o.ns = '.contextMenu' + counter;\n if (!_hasContext) {\n namespaces[o.selector] = o.ns;\n }\n menus[o.ns] = o;\n\n // default to right click\n if (!o.trigger) {\n o.trigger = 'right';\n }\n\n if (!initialized) {\n // make sure item click is registered first\n $document.on({\n 'contextmenu:hide.contextMenu': handle.hideMenu,\n 'prevcommand.contextMenu': handle.prevItem,\n 'nextcommand.contextMenu': handle.nextItem,\n 'contextmenu.contextMenu': handle.abortevent,\n 'mouseenter.contextMenu': handle.menuMouseenter,\n 'mouseleave.contextMenu': handle.menuMouseleave\n }, '.context-menu-list').on('mouseup.contextMenu', '.context-menu-input', handle.inputClick).on({\n 'mouseup.contextMenu': handle.itemClick,\n 'contextmenu:focus.contextMenu': handle.focusItem,\n 'contextmenu:blur.contextMenu': handle.blurItem,\n 'contextmenu.contextMenu': handle.abortevent,\n 'mouseenter.contextMenu': handle.itemMouseenter,\n 'mouseleave.contextMenu': handle.itemMouseleave\n }, '.context-menu-item');\n\n initialized = true;\n }\n\n // engage native contextmenu event\n $context.on('contextmenu' + o.ns, o.selector, o, handle.contextmenu);\n\n if (_hasContext) {\n // add remove hook, just in case\n $context.on('remove' + o.ns, function () {\n $(this).contextMenu(\"destroy\");\n });\n }\n\n switch (o.trigger) {\n case 'hover':\n $context.on('mouseenter' + o.ns, o.selector, o, handle.mouseenter).on('mouseleave' + o.ns, o.selector, o, handle.mouseleave);\n break;\n\n case 'left':\n $context.on('click' + o.ns, o.selector, o, handle.click);\n break;\n /*\r\n default:\r\n // http://www.quirksmode.org/dom/events/contextmenu.html\r\n $document\r\n .on('mousedown' + o.ns, o.selector, o, handle.mousedown)\r\n .on('mouseup' + o.ns, o.selector, o, handle.mouseup);\r\n break;\r\n */\n }\n\n // create menu\n if (!o.build) {\n op.create(o);\n }\n break;\n\n case 'destroy':\n var $visibleMenu;\n if (_hasContext) {\n // get proper options\n var context = o.context;\n $.each(menus, function (ns, o) {\n if (o.context !== context) {\n return true;\n }\n\n $visibleMenu = $('.context-menu-list').filter(':visible');\n if ($visibleMenu.length && $visibleMenu.data().contextMenuRoot.$trigger.is($(o.context).find(o.selector))) {\n $visibleMenu.trigger('contextmenu:hide', { force: true });\n }\n\n try {\n if (menus[o.ns].$menu) {\n menus[o.ns].$menu.remove();\n }\n\n delete menus[o.ns];\n } catch (e) {\n menus[o.ns] = null;\n }\n\n $(o.context).off(o.ns);\n\n return true;\n });\n } else if (!o.selector) {\n $document.off('.contextMenu .contextMenuAutoHide');\n $.each(menus, function (ns, o) {\n $(o.context).off(o.ns);\n });\n\n namespaces = {};\n menus = {};\n counter = 0;\n initialized = false;\n\n $('#context-menu-layer, .context-menu-list').remove();\n } else if (namespaces[o.selector]) {\n $visibleMenu = $('.context-menu-list').filter(':visible');\n if ($visibleMenu.length && $visibleMenu.data().contextMenuRoot.$trigger.is(o.selector)) {\n $visibleMenu.trigger('contextmenu:hide', { force: true });\n }\n\n try {\n if (menus[namespaces[o.selector]].$menu) {\n menus[namespaces[o.selector]].$menu.remove();\n }\n\n delete menus[namespaces[o.selector]];\n } catch (e) {\n menus[namespaces[o.selector]] = null;\n }\n\n $document.off(namespaces[o.selector]);\n }\n break;\n\n case 'html5':\n // if <command> or <menuitem> are not handled by the browser,\n // or options was a bool true,\n // initialize $.contextMenu for them\n if (!$.support.htmlCommand && !$.support.htmlMenuitem || typeof options == \"boolean\" && options) {\n $('menu[type=\"context\"]').each(function () {\n if (this.id) {\n $.contextMenu({\n selector: '[contextmenu=' + this.id + ']',\n items: $.contextMenu.fromMenu(this)\n });\n }\n }).css('display', 'none');\n }\n break;\n\n default:\n throw new Error('Unknown operation \"' + operation + '\"');\n }\n\n return this;\n };\n\n // import values into <input> commands\n $.contextMenu.setInputValues = function (opt, data) {\n if (data === undefined) {\n data = {};\n }\n\n $.each(opt.inputs, function (key, item) {\n switch (item.type) {\n case 'text':\n case 'textarea':\n item.value = data[key] || \"\";\n break;\n\n case 'checkbox':\n item.selected = data[key] ? true : false;\n break;\n\n case 'radio':\n item.selected = (data[item.radio] || \"\") == item.value ? true : false;\n break;\n\n case 'select':\n item.selected = data[key] || \"\";\n break;\n }\n });\n };\n\n // export values from <input> commands\n $.contextMenu.getInputValues = function (opt, data) {\n if (data === undefined) {\n data = {};\n }\n\n $.each(opt.inputs, function (key, item) {\n switch (item.type) {\n case 'text':\n case 'textarea':\n case 'select':\n data[key] = item.$input.val();\n break;\n\n case 'checkbox':\n data[key] = item.$input.prop('checked');\n break;\n\n case 'radio':\n if (item.$input.prop('checked')) {\n data[item.radio] = item.value;\n }\n break;\n }\n });\n\n return data;\n };\n\n // find <label for=\"xyz\">\n function inputLabel(node) {\n return node.id && $('label[for=\"' + node.id + '\"]').val() || node.name;\n }\n\n // convert <menu> to items object\n function menuChildren(items, $children, counter) {\n if (!counter) {\n counter = 0;\n }\n\n $children.each(function () {\n var $node = $(this),\n node = this,\n nodeName = this.nodeName.toLowerCase(),\n label,\n item;\n\n // extract <label><input>\n if (nodeName == 'label' && $node.find('input, textarea, select').length) {\n label = $node.text();\n $node = $node.children().first();\n node = $node.get(0);\n nodeName = node.nodeName.toLowerCase();\n }\n\n /*\r\n * <menu> accepts flow-content as children. that means <embed>, <canvas> and such are valid menu items.\r\n * Not being the sadistic kind, $.contextMenu only accepts:\r\n * <command>, <menuitem>, <hr>, <span>, <p> <input [text, radio, checkbox]>, <textarea>, <select> and of course <menu>.\r\n * Everything else will be imported as an html node, which is not interfaced with contextMenu.\r\n */\n\n // http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#concept-command\n switch (nodeName) {\n // http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#the-menu-element\n case 'menu':\n item = { name: $node.attr('label'), items: {} };\n counter = menuChildren(item.items, $node.children(), counter);\n break;\n\n // http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#using-the-a-element-to-define-a-command\n case 'a':\n // http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#using-the-button-element-to-define-a-command\n case 'button':\n item = {\n name: $node.text(),\n disabled: !!$node.attr('disabled'),\n callback: function () {\n return function () {\n $node.click();\n };\n }()\n };\n break;\n\n // http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#using-the-command-element-to-define-a-command\n\n case 'menuitem':\n case 'command':\n switch ($node.attr('type')) {\n case undefined:\n case 'command':\n case 'menuitem':\n item = {\n name: $node.attr('label'),\n disabled: !!$node.attr('disabled'),\n callback: function () {\n return function () {\n $node.click();\n };\n }()\n };\n break;\n\n case 'checkbox':\n item = {\n type: 'checkbox',\n disabled: !!$node.attr('disabled'),\n name: $node.attr('label'),\n selected: !!$node.attr('checked')\n };\n break;\n\n case 'radio':\n item = {\n type: 'radio',\n disabled: !!$node.attr('disabled'),\n name: $node.attr('label'),\n radio: $node.attr('radiogroup'),\n value: $node.attr('id'),\n selected: !!$node.attr('checked')\n };\n break;\n\n default:\n item = undefined;\n }\n break;\n\n case 'hr':\n item = '-------';\n break;\n\n case 'input':\n switch ($node.attr('type')) {\n case 'text':\n item = {\n type: 'text',\n name: label || inputLabel(node),\n disabled: !!$node.attr('disabled'),\n value: $node.val()\n };\n break;\n\n case 'checkbox':\n item = {\n type: 'checkbox',\n name: label || inputLabel(node),\n disabled: !!$node.attr('disabled'),\n selected: !!$node.attr('checked')\n };\n break;\n\n case 'radio':\n item = {\n type: 'radio',\n name: label || inputLabel(node),\n disabled: !!$node.attr('disabled'),\n radio: !!$node.attr('name'),\n value: $node.val(),\n selected: !!$node.attr('checked')\n };\n break;\n\n default:\n item = undefined;\n break;\n }\n break;\n\n case 'select':\n item = {\n type: 'select',\n name: label || inputLabel(node),\n disabled: !!$node.attr('disabled'),\n selected: $node.val(),\n options: {}\n };\n $node.children().each(function () {\n item.options[this.value] = $(this).text();\n });\n break;\n\n case 'textarea':\n item = {\n type: 'textarea',\n name: label || inputLabel(node),\n disabled: !!$node.attr('disabled'),\n value: $node.val()\n };\n break;\n\n case 'label':\n break;\n\n default:\n item = { type: 'html', html: $node.clone(true) };\n break;\n }\n\n if (item) {\n counter++;\n items['key' + counter] = item;\n }\n });\n\n return counter;\n }\n\n // convert html5 menu\n $.contextMenu.fromMenu = function (element) {\n var $this = $(element),\n items = {};\n\n menuChildren(items, $this.children());\n\n return items;\n };\n\n // make defaults accessible\n $.contextMenu.defaults = defaults;\n $.contextMenu.types = types;\n // export internal functions - undocumented, for hacking only!\n $.contextMenu.handle = handle;\n $.contextMenu.op = op;\n $.contextMenu.menus = menus;\n})(jQuery);\n\n/***/ }),\n\n/***/ \"./src/lib/pathfinding.exec.js\":\n/*!*************************************!*\\\n !*** ./src/lib/pathfinding.exec.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(/*! !./node_modules/script-loader/addScript.js */ \"./node_modules/script-loader/addScript.js\")(__webpack_require__(/*! !./node_modules/raw-loader!./src/lib/pathfinding.exec.js */ \"./node_modules/raw-loader/index.js!./src/lib/pathfinding.exec.js\"));\n\n/***/ }),\n\n/***/ \"./src/lib/raphael.exec.js\":\n/*!*********************************!*\\\n !*** ./src/lib/raphael.exec.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(/*! !./node_modules/script-loader/addScript.js */ \"./node_modules/script-loader/addScript.js\")(__webpack_require__(/*! !./node_modules/raw-loader!./src/lib/raphael.exec.js */ \"./node_modules/raw-loader/index.js!./src/lib/raphael.exec.js\"));\n\n/***/ }),\n\n/***/ \"./src/packages.js\":\n/*!*************************!*\\\n !*** ./src/packages.js ***!\n \\*************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/**\r\n *\r\n * @private\r\n */\nexports.default = {\n\n geo: {},\n\n io: {\n json: {},\n png: {},\n svg: {}\n },\n\n storage: {},\n\n util: {\n spline: {}\n },\n\n shape: {\n basic: {},\n dimetric: {},\n composite: {},\n arrow: {},\n node: {},\n note: {},\n diagram: {},\n flowchart: {},\n analog: {},\n icon: {},\n layout: {},\n pert: {},\n state: {},\n widget: {}\n },\n\n policy: {\n canvas: {},\n connection: {},\n line: {},\n port: {},\n figure: {}\n },\n\n command: {},\n\n decoration: {\n connection: {}\n },\n\n layout: {\n connection: {},\n anchor: {},\n mesh: {},\n locator: {}\n },\n\n ui: {},\n\n isTouchDevice:\n //Detect iPhone\n navigator.platform.indexOf(\"iPhone\") != -1 ||\n //Detect iPod\n navigator.platform.indexOf(\"iPod\") != -1 ||\n //Detect iPad\n navigator.platform.indexOf(\"iPad\") != -1\n\n};\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n\n/***/ \"./src/policy/EditPolicy.js\":\n/*!**********************************!*\\\n !*** ./src/policy/EditPolicy.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.policy.EditPolicy\r\n *\r\n * A plugable contribution implementing a portion of an behavior.\r\n *\r\n *\r\n * EditPolicies should determine an Canvas or figure editing capabilities. It is possible to implement\r\n * an figure such that it handles all editing responsibility. However, it is much more flexible\r\n * and object-oriented to use EditPolicies. Using policies, you can pick and choose the editing\r\n * behavior for an figure/canvas without being bound to its class hierarchy. Code management is easier.\r\n *\r\n *\r\n * This interface is not intended to be implemented by clients. Clients should inherit from {@link draw2d.policy.figure.SelectionFeedbackPolicy}\r\n * or {@link draw2d.policy.canvas.SelectionPolicy}.\r\n *\r\n * @author Andreas Herz\r\n */\n_packages2.default.policy.EditPolicy = Class.extend({\n\n NAME: \"draw2d.policy.EditPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this.setterWhitelist = (0, _extend2.default)({}, setter);\n\n this.getterWhitelist = (0, _extend2.default)({}, getter);\n\n this.attr(attr);\n },\n\n /**\r\n * @method\r\n * Read or set object attributes.<br>\r\n * When no value is given, reads specified attribute from the element.<br>\r\n * When value is given, sets the attribute to that value.\r\n * Multiple attributes can be set by passing an object with name-value pairs.\r\n *\r\n * @param {String/Object} name\r\n * @param {Object} [value]\r\n * @since 5.3.2\r\n * @returns\r\n **/\n attr: function attr(name, value) {\n // call of attr as setter method with {name1:val1, name2:val2 } argument list\n //\n if ($.isPlainObject(name)) {\n for (var _key in name) {\n var func = this.setterWhitelist[_key];\n // call the assigned method if given\n if (func) {\n func.call(this, name[_key]);\n }\n // maby the ussser adds a function as property to the attr call\n // e.g.:\n // {\n // doIt: function(){}\n // }\n //\n // in this case we assign the method to this object and wrap it with \"this\" as context\n // a very, very simple method to replace default implemenations of the object\n else if (typeof name[_key] === \"function\") {\n this[_key] = name[_key].bind(this);\n }\n }\n } else if (typeof name === \"string\") {\n // call attr as getter\n //\n if (typeof value === \"undefined\") {\n var getter = this.getterWhitelist[name];\n if (typeof getter === \"function\") {\n return getter.call(this);\n }\n return; // undefined\n }\n // call attr as simple setter with (key , value)\n //\n\n // the value can be a function. In this case we must call the value().\n if (typeof value === \"function\") {\n value = value();\n }\n var setter = this.setterWhitelist[name];\n if (setter) {\n setter.call(this, value);\n }\n }\n // generic getter of all registered attributes\n else if (typeof name === \"undefined\") {\n var result = {};\n for (key in this.getterWhitelist) {\n result[key] = this.getterWhitelist[key].call(this);\n }\n return result;\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been installed.\r\n *\r\n * @param {draw2d.Canvas|draw2d.Figure} host\r\n */\n onInstall: function onInstall(host) {},\n\n /**\r\n * @method\r\n * Called by the host if the policy has been uninstalled.\r\n *\r\n * @param {draw2d.Canvas|draw2d.Figure} host\r\n */\n onUninstall: function onUninstall(host) {}\n});\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/BoundingboxSelectionPolicy.js\":\n/*!*********************************************************!*\\\n !*** ./src/policy/canvas/BoundingboxSelectionPolicy.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.BoundingboxSelectionPolicy = _packages2.default.policy.canvas.SingleSelectionPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.BoundingboxSelectionPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new selection policy for a canvas.\r\n */\n init: function init() {\n this.isInsideMode = function (rect1, rect2) {\n return rect1.isInside(rect2);\n };\n this.intersectsMode = function (rect1, rect2) {\n return rect1.intersects(rect2);\n };\n\n this.decision = this.isInsideMode;\n\n this._super();\n\n this.boundingBoxFigure1 = null;\n this.boundingBoxFigure2 = null;\n this.x = 0;\n this.y = 0;\n\n // falls ein Port getroffen wird, dann darf keine BoundingBox gezeichnet werden.\n //\n this.canDrawBoundingBox = false;\n },\n\n /**\r\n * @inheritdoc\r\n */\n select: function select(canvas, figure) {\n var _this = this;\n\n if (canvas.getSelection().contains(figure)) {\n return; // nothing to to\n }\n\n var oldSelection = canvas.getSelection().getPrimary();\n\n if (figure !== null) {\n figure.select(true); // primary selection\n }\n\n if (oldSelection !== figure) {\n canvas.getSelection().setPrimary(figure);\n\n // inform all selection listeners about the new selection.\n //\n canvas.fireEvent(\"select\", { figure: figure, selection: canvas.getSelection() });\n }\n\n // adding connections to the selection of the source and target port part of the current selection\n //\n var selection = canvas.getSelection();\n canvas.getLines().each(function (i, line) {\n if (line instanceof _packages2.default.Connection) {\n if (selection.contains(line.getSource().getRoot()) && selection.contains(line.getTarget().getRoot())) {\n _this.select(canvas, line, false);\n }\n }\n });\n },\n\n /**\r\n * @method\r\n * Set the selection handling mode to <b>intersection</b> or to <b>isInside</b>.\r\n * <ul>\r\n * <li>true = intersection, shapes must only touch the selection bounding box </li>\r\n * <li>false = isInside, shapes must complete inside the selection bounding box (default)</li>\r\n * </ul>\r\n *\r\n * @param {Boolean} useIntersectionMode set true if the selection handle should use the alternative selection approach\r\n * @since 4.9.0\r\n */\n setDecisionMode: function setDecisionMode(useIntersectionMode) {\n if (useIntersectionMode === true) {\n this.decision = this.intersectsMode;\n } else {\n this.decision = this.isInsideMode;\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseDown: function onMouseDown(canvas, x, y, shiftKey, ctrlKey) {\n var _this2 = this;\n\n try {\n this.x = x;\n this.y = y;\n\n var currentSelection = canvas.getSelection().getAll();\n\n // COPY_PARENT\n // this code part is copied from the parent implementation. The main problem is, that\n // the sequence of unselect/select of elements is broken if we call the base implementation\n // in this case wrong events are fired if we select a figure if already a figure is selected!\n // WRONG: selectNewFigure -> unselectOldFigure\n // RIGHT: unselectOldFigure -> selectNewFigure\n // To ensure this I must copy the parent code and postbound the event propagation\n //\n this.mouseMovedDuringMouseDown = false;\n var canDragStart = true;\n\n this.canDrawBoundingBox = false;\n\n var figure = canvas.getBestFigure(x, y);\n\n // may the figure is assigned to a composite. In this case the composite can\n // override the event receiver\n while (figure !== null) {\n var delegated = figure.getSelectionAdapter()();\n if (delegated === figure) {\n break;\n }\n figure = delegated;\n }\n\n // ignore ports since version 6.1.0. This is handled by the ConnectionCreatePolicy\n //\n if (figure instanceof _packages2.default.Port) {\n return; // silently\n }\n\n if (figure !== null && figure.isSelectable() === false && figure.isDraggable() === false) {\n figure = null;\n }\n\n this.canDrawBoundingBox = true;\n\n if (figure !== null && figure.isDraggable()) {\n canDragStart = figure.onDragStart(x - figure.getAbsoluteX(), y - figure.getAbsoluteY(), shiftKey, ctrlKey);\n // Element send a veto about the drag&drop operation\n this.mouseDraggingElement = canDragStart === false ? null : figure;\n }\n\n this.mouseDownElement = figure;\n\n if (this.mouseDownElement !== null) {\n this.mouseDownElement.fireEvent(\"mousedown\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n }\n\n // we click on an element which are not part of the current selection\n // => reset the \"old\" current selection if we didn't press the shift key\n if (shiftKey === false) {\n if (this.mouseDownElement !== null && this.mouseDownElement.isResizeHandle === false && !currentSelection.contains(this.mouseDownElement)) {\n currentSelection.each(function (i, figure) {\n _this2.unselect(canvas, figure);\n });\n }\n }\n\n if (figure !== canvas.getSelection().getPrimary() && figure !== null && figure.isSelectable() === true) {\n this.select(canvas, figure);\n\n // its a line\n if (figure instanceof _packages2.default.shape.basic.Line) {\n // you can move a line with Drag&Drop...but not a connection.\n // A Connection is fixed linked with the corresponding ports.\n //\n if (!(figure instanceof _packages2.default.Connection)) {\n canvas.draggingLineCommand = figure.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE));\n if (canvas.draggingLineCommand !== null) {\n canvas.draggingLine = figure;\n }\n }\n } else if (canDragStart === false) {\n figure.unselect();\n }\n }\n // END_COPY FROM PARENT\n\n\n // inform all figures that they have a new ox/oy position for the relative\n // drag/drop operation\n if (this.mouseDownElement !== null && this.mouseDownElement.isResizeHandle === false) {\n currentSelection = canvas.getSelection().getAll();\n currentSelection.each(function (i, figure) {\n var fakeDragX = 1;\n var fakeDragY = 1;\n\n var handleRect = figure.getHandleBBox();\n if (handleRect !== null) {\n handleRect.translate(figure.getAbsolutePosition().scale(-1));\n fakeDragX = handleRect.x + 1;\n fakeDragY = handleRect.y + 1;\n }\n\n var canDragStart = figure.onDragStart(fakeDragX, fakeDragY, shiftKey, ctrlKey, true /*fakeFlag*/);\n // its a line\n if (figure instanceof _packages2.default.shape.basic.Line) {\n // no special handling\n } else if (canDragStart === false) {\n _this2.unselect(canvas, figure);\n }\n });\n }\n } catch (exc) {\n console.log(exc);\n throw exc;\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n // don't drag a selection box if we drag&drop a port\n //\n if (this.canDrawBoundingBox === false) {\n return;\n }\n\n try {\n this._super(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey);\n\n if (this.mouseDraggingElement === null && this.mouseDownElement === null && this.boundingBoxFigure1 === null) {\n this.boundingBoxFigure1 = new _packages2.default.shape.basic.Rectangle({\n width: 1,\n height: 1,\n x: this.x,\n y: this.y,\n bgColor: \"#d4d1d4\",\n alpha: 0.1\n });\n this.boundingBoxFigure1.setCanvas(canvas);\n\n this.boundingBoxFigure2 = new _packages2.default.shape.basic.Rectangle({\n width: 1,\n height: 1,\n x: this.x,\n y: this.y,\n dash: \"--..\",\n stroke: 0.5,\n color: \"#37a8ff\",\n bgColor: null\n });\n this.boundingBoxFigure2.setCanvas(canvas);\n }\n var abs = Math.abs;\n if (this.boundingBoxFigure1 !== null) {\n this.boundingBoxFigure1.setDimension(abs(dx), abs(dy));\n this.boundingBoxFigure1.setPosition(this.x + Math.min(0, dx), this.y + Math.min(0, dy));\n this.boundingBoxFigure2.setDimension(abs(dx), abs(dy));\n this.boundingBoxFigure2.setPosition(this.x + Math.min(0, dx), this.y + Math.min(0, dy));\n }\n } catch (exc) {\n console.log(exc);\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(canvas, x, y, shiftKey, ctrlKey) {\n var _this3 = this;\n\n try {\n // delete the current selection if you have clicked in the empty\n // canvas.\n if (this.mouseDownElement === null) {\n canvas.getSelection().getAll().each(function (i, figure) {\n _this3.unselect(canvas, figure);\n });\n } else if (this.mouseDownElement instanceof _packages2.default.ResizeHandle || this.mouseDownElement instanceof _packages2.default.shape.basic.LineResizeHandle) {}\n // Do nothing\n // A click on a resize handle didn't change the selection of the canvas\n //\n\n // delete the current selection if you click on another figure than the current\n // selection and you didn't drag the complete selection.\n else if (this.mouseDownElement !== null && this.mouseMovedDuringMouseDown === false) {\n var sel = canvas.getSelection().getAll();\n if (!sel.contains(this.mouseDownElement)) {\n canvas.getSelection().getAll().each(function (i, figure) {\n _this3.unselect(canvas, figure);\n });\n }\n }\n this._super(canvas, x, y, shiftKey, ctrlKey);\n\n if (this.boundingBoxFigure1 !== null) {\n // retrieve all figures which are inside the bounding box and select all of them\n //\n var selectionRect = this.boundingBoxFigure1.getBoundingBox();\n canvas.getFigures().each(function (i, figure) {\n if (figure.isSelectable() === true && _this3.decision(figure.getBoundingBox(), selectionRect)) {\n var fakeDragX = 1;\n var fakeDragY = 1;\n\n var handleRect = figure.getHandleBBox();\n if (handleRect !== null) {\n handleRect.translate(figure.getAbsolutePosition().scale(-1));\n fakeDragX = handleRect.x + 1;\n fakeDragY = handleRect.y + 1;\n }\n var canDragStart = figure.onDragStart(fakeDragX, fakeDragY, shiftKey, ctrlKey);\n if (canDragStart === true) {\n _this3.select(canvas, figure);\n }\n }\n });\n\n this.boundingBoxFigure1.setCanvas(null);\n this.boundingBoxFigure1 = null;\n this.boundingBoxFigure2.setCanvas(null);\n this.boundingBoxFigure2 = null;\n }\n } catch (exc) {\n console.log(exc);\n debugger;\n }\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.BoundingboxSelectionPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.SelectionPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/CanvasPolicy.js\":\n/*!*******************************************!*\\\n !*** ./src/policy/canvas/CanvasPolicy.js ***!\n \\*******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _Color = __webpack_require__(/*! ../../util/Color */ \"./src/util/Color.js\");\n\nvar _Color2 = _interopRequireDefault(_Color);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.policy.canvas.CanvasPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.EditPolicy\r\n */\n_packages2.default.policy.canvas.CanvasPolicy = _packages2.default.policy.EditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.CanvasPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this.canvas = null;\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called if the policy is installed into the canvas.\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n */\n onInstall: function onInstall(canvas) {\n this.canvas = canvas;\n },\n\n /**\r\n * @method\r\n * Called if the policy is deinstalled from the canvas\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n */\n onUninstall: function onUninstall(canvas) {\n this.canvas = null;\n },\n\n /**\r\n * @method\r\n * Called by the canvas if the user click on a figure.\r\n *\r\n * @param {draw2d.Figure} the figure under the click event. Can be null\r\n * @param {Number} mouseX the x coordinate of the mouse during the click event\r\n * @param {Number} mouseY the y coordinate of the mouse during the click event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @since 3.0.0\r\n *\r\n * @template\r\n */\n onClick: function onClick(figure, mouseX, mouseY, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseMove: function onMouseMove(canvas, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Called by the canvas if the user double click on a figure.\r\n *\r\n * @param {draw2d.Figure} the figure under the double click event. Can be null\r\n * @param {Number} mouseX the x coordinate of the mouse during the click event\r\n * @param {Number} mouseY the y coordinate of the mouse during the click event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @since 4.1.0\r\n *\r\n * @template\r\n */\n onDoubleClick: function onDoubleClick(figure, mouseX, mouseY, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseDown: function onMouseDown(canvas, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the shape below the mouse or null\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseUp: function onMouseUp(figure, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Called if the user press the right mouse in the canvas.\r\n *\r\n * @param {draw2d.Figure|draw2d.shape.basic.Line} figure the figure below the mouse\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n * @since 4.4.0\r\n */\n onRightMouseDown: function onRightMouseDown(figure, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * called if the user uses the mouse wheel.\r\n *\r\n *\r\n * @param {Number} wheelDelta\r\n * @param {Number} x the x coordinate of the event\r\n * @param {Number} y the y coordinate of the event\r\n * @param shiftKey\r\n * @param ctrlKey\r\n * @since 5.8.0\r\n * @template\r\n *\r\n * @return {Boolean} return <b>false</b> to preven tthe default event operation (e.g. scrolling)\r\n */\n onMouseWheel: function onMouseWheel(wheelDelta, x, y, shiftKey, ctrlKey) {\n // return \"false\" to prevent the default event operation\n return true;\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the given constraint.\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n return modifiedPos;\n },\n\n /**\r\n * @method\r\n * Helper method to make an monochrome GIF image WxH pixels big, first create a properly sized array: var pixels = new Array(W*H);.\r\n * Then, for each pixel X,Y that should be opaque, store a 1 at the proper location: pixels[X+Y*W] = 1;.\r\n * Finally, create the image: var my_glif = createGif(W, H, pixels, color);\r\n * \"0\" pixels are transparent.\r\n * The <b>color</b> defines the foreground color.\r\n *\r\n * Now, you can specify this image as the SRC attribute of an IMG tag: document.write(\"<IMG SRC=\\\"\" + my_glif + \"\\\">\");\r\n * or for the canvas as background-image css attribute.\r\n *\r\n *\r\n * @param w\r\n * @param h\r\n * @param d\r\n * @param color\r\n * @returns {String}\r\n *\r\n * @private\r\n */\n createMonochromGif: function createMonochromGif(w, h, d, color) {\n color = new _Color2.default(color);\n var r = String.fromCharCode(w % 256) + String.fromCharCode(w / 256) + String.fromCharCode(h % 256) + String.fromCharCode(h / 256);\n\n var gif = \"GIF89a\" + r + \"\\xf0\\0\\0\\xff\\xff\\xff\" + String.fromCharCode(color.red) + String.fromCharCode(color.green) + String.fromCharCode(color.blue) + '!\\xF9\\x04\\x01\\0\\0\\0,\\0\\0\\0\\0' + r + '\\0\\x02';\n\n // help method to generate uncompressed in memory GIF data structur without the usage of a canvas or any other\n // heavy weight stuff.\n var b = {\n bit: 1,\n byte_: 0,\n data: \"\",\n\n writeBit: function writeBit(b) {\n if (b) this.byte_ |= this.bit;\n this.bit <<= 1;\n if (this.bit == 256) {\n this.bit = 1;\n this.data += String.fromCharCode(this.byte_);\n this.byte_ = 0;\n }\n },\n\n get: function get() {\n var result = \"\";\n var data = this.data;\n if (this.bit != 1) {\n data += String.fromCharCode(this.byte_);\n }\n for (var i = 0; i < data.length + 1; i += 255) {\n var chunklen = data.length - i;\n if (chunklen < 0) chunklen = 0;\n if (chunklen > 255) chunklen = 255;\n result += String.fromCharCode(chunklen) + data.substring(i, i + 255);\n }\n return result + \"\\0\";\n }\n };\n\n for (var y = 0; y < h; y++) {\n for (var x = 0; x < w; x++) {\n b.writeBit(d[x + w * y]);\n b.writeBit(0);\n b.writeBit(0);\n b.writeBit(0);\n b.writeBit(0);\n b.writeBit(1);\n }\n }\n gif += b.get() + \";\";\n\n return \"data:image/gif;base64,\" + _packages2.default.util.Base64.encode(gif);\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/CoronaDecorationPolicy.js\":\n/*!*****************************************************!*\\\n !*** ./src/policy/canvas/CoronaDecorationPolicy.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.policy.canvas.CoronaDecorationPolicy\r\n * This decorations hides draw2d.Ports which are to far from the current cursor position.\r\n * This makes the canvas more clean if you have a lot of nodes on it.<br>\r\n * You didn't see a bunch of ports.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // install the policy to the canvas\r\n *\r\n * // add some demo figure to the canvas\r\n * canvas.add(new draw2d.shape.node.Start({x: 10, y: 30}));\r\n * canvas.add(new draw2d.shape.node.End({x: 90, y: 90}));\r\n * canvas.add(new draw2d.shape.node.Between({ x: 310, y: 30}));\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"move the mouse and you see that ports are hidden if the mouse far from it\"}),5,5);\r\n *\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.CoronaDecorationPolicy());\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.DecorationPolicy\r\n */\n_packages2.default.policy.canvas.CoronaDecorationPolicy = _packages2.default.policy.canvas.DecorationPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.CoronaDecorationPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n\n this.startDragX = 0;\n this.startDragY = 0;\n this.diameterToBeFullVisible = 0;\n this.diameterToBeVisible = 0;\n this.sumDiameter = 0;\n\n this._super((0, _extend2.default)({ diameterToBeVisible: 200, diameterToBeFullVisible: 20 }, attr), (0, _extend2.default)({\n diameterToBeVisible: this.setDiameterToBeVisible,\n diameterToBeFullVisible: this.setDiameterToBeFullVisible\n }, setter), (0, _extend2.default)({\n diameterToBeVisible: this.getDiameterToBeVisible,\n diameterToBeFullVisible: this.getDiameterToBeFullVisible\n }, getter));\n },\n\n setDiameterToBeVisible: function setDiameterToBeVisible(diameter) {\n this.diameterToBeVisible = diameter;\n this.sumDiameter = this.diameterToBeFullVisible + this.diameterToBeVisible;\n },\n\n getDiameterToBeVisible: function getDiameterToBeVisible() {\n return this.diameterToBeVisible;\n },\n\n setDiameterToBeFullVisible: function setDiameterToBeFullVisible(diameter) {\n this.diameterToBeFullVisible = diameter;\n this.sumDiameter = this.diameterToBeFullVisible + this.diameterToBeVisible;\n },\n\n getDiameterToBeFullVisible: function getDiameterToBeFullVisible() {\n return this.diameterToBeFullVisible;\n },\n\n /**\r\n * @inheritdoc\r\n */\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n canvas.getFigures().each(function (i, figure) {\n figure.getPorts().each(function (i, p) {\n return p.setVisible(false);\n });\n });\n },\n\n /**\r\n * @inheritdoc\r\n */\n onUninstall: function onUninstall(canvas) {\n this._super(canvas);\n\n canvas.getFigures().each(function (i, figure) {\n figure.getPorts().each(function (i, p) {\n if (p.__origAlpha) {\n p.setAlpha(p.__origAlpha);\n delete p.__origAlpha;\n }\n p.setVisible(true);\n });\n });\n },\n\n /**\r\n * @inheritdoc\r\n */\n onMouseDown: function onMouseDown(canvas, x, y, shiftKey, ctrlKey) {\n this.startDragX = x;\n this.startDragY = y;\n },\n\n /**\r\n * @inheritdoc\r\n */\n onMouseMove: function onMouseMove(canvas, x, y, shiftKey, ctrlKey) {\n this.updatePorts(canvas, x, y);\n },\n\n /**\r\n * @inheritdoc\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n this.updatePorts(canvas, this.startDragX + dx, this.startDragY + dy);\n },\n\n /**\r\n * @method\r\n * Update all ports with the new calculated opacity in relation to the distance to the current\r\n * mouse position\r\n *\r\n * @param canvas\r\n * @param x\r\n * @param y\r\n * @private\r\n */\n updatePorts: function updatePorts(canvas, x, y) {\n var _this = this;\n\n canvas.getFigures().each(function (i, figure) {\n if (figure instanceof _packages2.default.shape.node.Node) {\n if (figure.isVisible() === true && figure.hitTest(x, y, _this.sumDiameter) === true) {\n figure.getPorts().each(function (i, p) {\n if (p.isVisible() === false) {\n p.__origAlpha = figure.getAlpha();\n }\n var dist = figure.getBoundingBox().getDistance(new _packages2.default.geo.Point(x, y));\n var alpha = 1 - 100 / (_this.diameterToBeVisible - _this.diameterToBeFullVisible) * dist / 100.0;\n p.setAlpha(alpha);\n p.setVisible(true);\n });\n } else {\n figure.getPorts().each(function (i, p) {\n if (p.__origAlpha) {\n p.setAlpha(p.__origAlpha);\n delete p.__origAlpha;\n }\n p.setVisible(false);\n });\n }\n }\n });\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/DecorationPolicy.js\":\n/*!***********************************************!*\\\n !*** ./src/policy/canvas/DecorationPolicy.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.DecorationPolicy = _packages2.default.policy.canvas.CanvasPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.DecorationPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.DecorationPolicy\r\n * The base class for any canvas decoration like grid, chessboard, graph paper or\r\n * other.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/DefaultKeyboardPolicy.js\":\n/*!****************************************************!*\\\n !*** ./src/policy/canvas/DefaultKeyboardPolicy.js ***!\n \\****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.DefaultKeyboardPolicy = _packages2.default.policy.canvas.KeyboardPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.DefaultKeyboardPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback if the user press a key.<br>\r\n * This implementation checks only if the <b>DEL</b> has been pressed and creates an\r\n * CommandDelete if this happens.\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {Number} keyCode the pressed key\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onKeyDown: function onKeyDown(canvas, keyCode, shiftKey, ctrlKey) {\n //\n if (keyCode === 46 && canvas.getPrimarySelection() !== null) {\n // create a single undo/redo transaction if the user delete more than one element. \n // This happens with command stack transactions.\n //\n canvas.getCommandStack().startTransaction(_packages2.default.Configuration.i18n.command.deleteShape);\n var selection = canvas.getSelection();\n selection.each(function (index, figure) {\n // don't delete a connection if the source or target figure is part of the selection.\n // In this case the connection is deleted by the DeleteCommand itself and it is not allowed to\n // delete a figure twice.\n //\n if (figure instanceof _packages2.default.Connection) {\n if (selection.contains(figure.getSource(), true)) {\n return;\n }\n if (selection.contains(figure.getTarget(), true)) {\n return;\n }\n }\n var cmd = figure.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.DELETE));\n if (cmd !== null) {\n canvas.getCommandStack().execute(cmd);\n }\n });\n // execute all single commands at once.\n canvas.getCommandStack().commitTransaction();\n } else {\n this._super(canvas, keyCode, shiftKey, ctrlKey);\n }\n }\n}); /**\r\n * @class draw2d.policy.canvas.DefaultKeyboardPolicy\r\n * Standard keyboard policy. This is the standard installed keyboard policy.\r\n * <br>\r\n * <br>\r\n * Keyboard commands\r\n * <ul>\r\n * <li>DEL - delete selection</li>\r\n * </ul>\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.KeyboardPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/DropInterceptorPolicy.js\":\n/*!****************************************************!*\\\n !*** ./src/policy/canvas/DropInterceptorPolicy.js ***!\n \\****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.DropInterceptorPolicy = _packages2.default.policy.canvas.CanvasPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.DropInterceptorPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called if the user want connect a port with any kind draw2d.Figure.<br>\r\n * Return a non <b>null</b> value if the interceptor accept the connect event.<br>\r\n * <br>\r\n * It is possible to delegate the drop event to another figure if the policy\r\n * returns another figure. This is usefull if a figure want to accept a port\r\n * drop event and delegates this drop event to another port.<br>\r\n *\r\n *\r\n * @param {draw2d.Figure} connectInquirer the figure who wants connect\r\n * @param {draw2d.Figure} connectIntent the potential connect target\r\n *\r\n * @return {draw2d.Figure} the calculated connect intent or <b>null</b> if the interceptor uses the veto right\r\n */\n delegateTarget: function delegateTarget(connectInquirer, connectIntent) {\n // a composite accept any kind of figures exceptional ports\n //\n if (!(connectInquirer instanceof _packages2.default.Port) && connectIntent instanceof _packages2.default.shape.composite.StrongComposite) {\n return connectIntent;\n }\n\n // Ports accepts only Ports as DropTarget\n //\n if (!(connectIntent instanceof _packages2.default.Port) || !(connectInquirer instanceof _packages2.default.Port)) {\n return null;\n }\n\n // consider the max possible connections for this port\n //\n if (connectIntent.getConnections().getSize() >= connectIntent.getMaxFanOut()) {\n return null;\n }\n\n // It is not allowed to connect two output ports\n if (connectInquirer instanceof _packages2.default.OutputPort && connectIntent instanceof _packages2.default.OutputPort) {\n return null;\n }\n\n // It is not allowed to connect two input ports\n if (connectInquirer instanceof _packages2.default.InputPort && connectIntent instanceof _packages2.default.InputPort) {\n return null;\n }\n\n // It is not possible to create a loop back connection at the moment.\n // Reason: no connection router implemented for this case\n if (connectInquirer instanceof _packages2.default.Port && connectIntent instanceof _packages2.default.Port) {\n if (connectInquirer.getParent() === connectIntent.getParent()) {\n return null;\n }\n }\n\n // redirect the dragEnter handling to the hybrid port\n //\n if (connectInquirer instanceof _packages2.default.Port && connectIntent instanceof _packages2.default.shape.node.Hub) {\n return connectIntent.getHybridPort(0);\n }\n\n // return the connectTarget determined by the framework or delegate it to another\n // figure.\n return connectIntent;\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.DropInterceptorPolicy\r\n *\r\n * Drop interceptors are basically event handlers from which you can return a value\r\n * that tells draw2d to abort what it is that it was doing.<br>\r\n * <br>\r\n * Interceptors can be registered via the registerEditPolicy method on the draw2d canvas just like any other\r\n * edit policies.<br>\r\n * <br>\r\n * The <b>delegateTarget</b> method is responsible for all drop event especially to all connection and port handling.\r\n *\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n * @since 5.0.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ExtendedKeyboardPolicy.js\":\n/*!*****************************************************!*\\\n !*** ./src/policy/canvas/ExtendedKeyboardPolicy.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.ExtendedKeyboardPolicy = _packages2.default.policy.canvas.KeyboardPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ExtendedKeyboardPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n * Callback if the user press a key\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {Number} keyCode the pressed key\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onKeyDown: function onKeyDown(canvas, keyCode, shiftKey, ctrlKey) {\n if (canvas.getPrimarySelection() !== null && ctrlKey === true) {\n switch (keyCode) {\n\n case 71:\n // G\n if (canvas.getPrimarySelection() instanceof _packages2.default.shape.composite.Group && canvas.getSelection().getSize() === 1) {\n canvas.getCommandStack().execute(new _packages2.default.command.CommandUngroup(canvas, canvas.getPrimarySelection()));\n } else {\n canvas.getCommandStack().execute(new _packages2.default.command.CommandGroup(canvas, canvas.getSelection()));\n }\n break;\n case 66:\n // B\n canvas.getPrimarySelection().toBack();\n break;\n case 70:\n // F\n canvas.getPrimarySelection().toFront();\n }\n } else {\n this._super(canvas, keyCode, shiftKey, ctrlKey);\n }\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.ExtendedKeyboardPolicy\r\n * Extended keyboard policy to <b>delete</b> and <b>group</b> figures in the canvas.\r\n * <br>\r\n * Keyboard commands\r\n * <ul>\r\n * <li>DEL - delete selection</li>\r\n * <li>Ctrl+G - group/ungroup selection</li>\r\n * <li>Ctrl+B - send current selection in the background (toBack)</li>\r\n * <li>Ctrl+F - send current selection in the foreground (toFront)</li>\r\n * </ul>\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.KeyboardPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/FadeoutDecorationPolicy.js\":\n/*!******************************************************!*\\\n !*** ./src/policy/canvas/FadeoutDecorationPolicy.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.FadeoutDecorationPolicy = _packages2.default.policy.canvas.DecorationPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.FadeoutDecorationPolicy\",\n\n DEFAULT_FADEOUT_DURATION: 60,\n DEFAULT_ALPHA_DECREMENT: 0.05,\n\n /**\r\n * @constructor\r\n * Creates a new fade out policy. Don't forget to install them into the canvas.\r\n *\r\n */\n init: function init() {\n this._super();\n this.alpha = 1.0;\n this.alphaDec = this.DEFAULT_ALPHA_DECREMENT;\n this.hidePortsCounter = this.DEFAULT_FADEOUT_DURATION;\n this.portDragging = false;\n },\n\n /**\r\n * @inheritDoc\r\n **/\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n this.timerId = window.setInterval(this.onTimer.bind(this), 50);\n\n // initial hide all decorations after install of this policy\n //\n this.hidePortsCounter = 1;\n this.alpha = 0.1;\n },\n\n /**\r\n * @inheritDoc\r\n **/\n onUninstall: function onUninstall(canvas) {\n window.clearInterval(this.timerId);\n this.canvas.getAllPorts().each(function (i, port) {\n port.setAlpha(1.0);\n });\n\n this._super(canvas);\n },\n\n /**\r\n * @method\r\n *\r\n * Timerfucntion to show/hide the related ports\r\n * @private\r\n **/\n onTimer: function onTimer() {\n this.hidePortsCounter--;\n var _this = this;\n if (this.hidePortsCounter <= 0 && this.alpha > 0) {\n this.alpha = Math.max(0, this.alpha - this.alphaDec);\n\n this.canvas.getAllPorts().each(function (i, port) {\n port.setAlpha(_this.alpha);\n });\n\n this.canvas.getSelection().getAll().each(function (i, figure) {\n figure.selectionHandles.each(function (i, handle) {\n handle.setAlpha(_this.alpha);\n });\n });\n } else if (this.hidePortsCounter > 0 && this.alpha !== 1.0) {\n this.alpha = 1; // Math.min(1,this.alpha+0.1);\n this.alphaDec = this.DEFAULT_ALPHA_DECREMENT;\n this.duringHide = false;\n this.canvas.getAllPorts().each(function (i, port) {\n port.setAlpha(_this.alpha);\n });\n this.canvas.getSelection().getAll().each(function (i, figure) {\n figure.selectionHandles.each(function (i, handle) {\n handle.setAlpha(_this.alpha);\n });\n });\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseDown: function onMouseDown(canvas, x, y, shiftKey, ctrlKey) {\n this.hidePortsCounter = this.DEFAULT_FADEOUT_DURATION;\n this.portDragging = canvas.getBestFigure(x, y) instanceof _packages2.default.Port;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseMove: function onMouseMove(canvas, x, y, shiftKey, ctrlKey) {\n this.hidePortsCounter = this.DEFAULT_FADEOUT_DURATION;\n this.portDragging = false;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n if (this.portDragging === false) {\n this.hidePortsCounter = 0;\n this.alphaDec = 0.1;\n this.onTimer();\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(figure, x, y, shiftKey, ctrlKey) {\n this.hidePortsCounter = this.DEFAULT_FADEOUT_DURATION;\n this.portDragging = false;\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.FadeoutDecorationPolicy\r\n *\r\n * Install this edit policy in a canvas if you want fadeout all decorations like ports, resize handles\r\n * if the user didn't move the mouse. This is good for a clean representation of your diagram.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.DecorationPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/GhostMoveSelectionPolicy.js\":\n/*!*******************************************************!*\\\n !*** ./src/policy/canvas/GhostMoveSelectionPolicy.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.GhostMoveSelectionPolicy = _packages2.default.policy.canvas.SingleSelectionPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.GhostMoveSelectionPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this.clone = null;\n this.ghostRectangle1 = null;\n this.ghostRectangle2 = null;\n\n this._super();\n },\n\n /**\r\n * @inheritdoc\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n this.mouseMovedDuringMouseDown = true;\n if (this.mouseDraggingElement !== null) {\n\n // if the figure not part of the selection it must be a ResizeHandle...\n var sel = canvas.getSelection().getAll();\n if (!sel.contains(this.mouseDraggingElement)) {\n this.mouseDraggingElement.onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n }\n // it is a normal draw2d.Figure\n else {\n // create the ghost handles for the figure to move and update the position\n //\n if (this.ghostRectangle1 === null) {\n this.ghostRectangle1 = new _packages2.default.shape.basic.Rectangle(); // new API with version 5.0.0\n // old API\n this.ghostRectangle1.setBackgroundColor(\"#303030\");\n this.ghostRectangle1.setAlpha(0.1);\n\n this.ghostRectangle2 = new _packages2.default.shape.basic.Rectangle();\n this.ghostRectangle2.setDashArray(\"- \");\n this.ghostRectangle2.setStroke(1);\n this.ghostRectangle2.setColor(\"#5497DC\");\n this.ghostRectangle2.setBackgroundColor(null);\n\n this.ghostRectangle1.setBoundingBox(this.mouseDraggingElement.getBoundingBox());\n this.ghostRectangle2.setBoundingBox(this.mouseDraggingElement.getBoundingBox());\n\n this.ghostRectangle1.setCanvas(canvas);\n this.ghostRectangle1.toFront();\n\n this.ghostRectangle2.setCanvas(canvas);\n this.ghostRectangle2.toFront();\n\n this.clone = this.mouseDraggingElement.clone();\n if (this.clone instanceof _packages2.default.shape.node.Node) {\n this.clone.resetPorts();\n }\n this.clone.setCanvas(canvas);\n this.clone.getShapeElement();\n this.clone.setAlpha(0.4);\n this.clone.repaint();\n } else {\n this.ghostRectangle1.translate(dx2, dy2);\n this.ghostRectangle2.translate(dx2, dy2);\n this.clone.translate(dx2, dy2);\n }\n\n sel.each(function (i, figure) {\n // store the new location in a tmp var.\n figure._newPos = new _packages2.default.geo.Point(figure.ox + dx, figure.oy + dy);\n\n // don't move the figure. This will be done in the MouseUp event\n //figure.onDrag(dx, dy, dx2, dy2);\n });\n }\n\n var p = canvas.fromDocumentToCanvasCoordinate(canvas.mouseDownX + dx / canvas.zoomFactor, canvas.mouseDownY + dy / canvas.zoomFactor);\n var target = canvas.getBestFigure(p.x, p.y, this.mouseDraggingElement);\n\n if (target !== canvas.currentDropTarget) {\n if (canvas.currentDropTarget !== null) {\n canvas.currentDropTarget.onDragLeave(this.mouseDraggingElement);\n canvas.currentDropTarget.fireEvent(\"dragLeave\", { draggingElement: this.draggingElement });\n canvas.currentDropTarget = null;\n }\n if (target !== null) {\n canvas.currentDropTarget = target.delegateTarget(this.mouseDraggingElement);\n // inform all listener that the element has accept a dropEnter event\n if (canvas.currentDropTarget !== null) {\n canvas.currentDropTarget.onDragEnter(this.mouseDraggingElement); // legacy\n canvas.currentDropTarget.fireEvent(\"dragEnter\", { draggingElement: this.draggingElement });\n }\n }\n }\n }\n // Connection didn't support panning at the moment. There is no special reason for that. Just an interaction\n // decision.\n //\n else if (this.mouseDownElement !== null && !(this.mouseDownElement instanceof _packages2.default.Connection)) {\n if (this.mouseDownElement.panningDelegate !== null) {\n this.mouseDownElement.panningDelegate.fireEvent(\"panning\", {\n dx: dx,\n dy: dy,\n dx2: dx2,\n dy2: dy2,\n shiftKey: shiftKey,\n ctrlKey: ctrlKey\n });\n this.mouseDownElement.panningDelegate.onPanning(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n } else {\n this.mouseDownElement.fireEvent(\"panning\", {\n dx: dx,\n dy: dy,\n dx2: dx2,\n dy2: dy2,\n shiftKey: shiftKey,\n ctrlKey: ctrlKey\n });\n this.mouseDownElement.onPanning(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n }\n }\n },\n\n /**\r\n * @inheritdoc\r\n */\n onMouseUp: function onMouseUp(canvas, x, y, shiftKey, ctrlKey) {\n\n if (this.ghostRectangle1 !== null) {\n this.ghostRectangle1.setCanvas(null);\n this.ghostRectangle1 = null;\n this.ghostRectangle2.setCanvas(null);\n this.ghostRectangle2 = null;\n this.clone.setCanvas(null);\n this.clone = null;\n }\n\n if (this.mouseDraggingElement !== null) {\n var redrawConnection = new _packages2.default.util.ArrayList();\n if (this.mouseDraggingElement instanceof _packages2.default.shape.node.Node) {\n canvas.lineIntersections.each(function (i, inter) {\n if (!redrawConnection.contains(inter.line)) redrawConnection.add(inter.line);\n if (!redrawConnection.contains(inter.other)) redrawConnection.add(inter.other);\n });\n }\n\n // start CommandStack transaction\n // Trigger an update of the connections if we have move a draw2d.shape.node.Node figure.\n // (only \"nodes\" can have ports and connections)\n //\n canvas.getCommandStack().startTransaction();\n\n var sel = canvas.getSelection().getAll();\n // We move a resize handle...\n //\n if (!sel.contains(this.mouseDraggingElement)) {\n this.mouseDraggingElement.onDragEnd(x, y, shiftKey, ctrlKey);\n }\n // ... or a real figure.\n //\n else {\n canvas.getSelection().getAll().each(function (i, figure) {\n // set position and cleanup tmp variable\n if (figure._newPos) {\n figure.setPosition(figure._newPos);\n delete figure._newPos;\n }\n // done\n figure.onDragEnd(x, y, shiftKey, ctrlKey);\n });\n }\n\n // May we drop the figure onto another shape..handle this here\n //\n if (canvas.currentDropTarget !== null && !this.mouseDraggingElement.isResizeHandle) {\n this.mouseDraggingElement.onDrop(canvas.currentDropTarget, x, y, shiftKey, ctrlKey);\n canvas.currentDropTarget.onDragLeave(this.mouseDraggingElement);\n canvas.currentDropTarget.onCatch(this.mouseDraggingElement, x, y, shiftKey, ctrlKey);\n canvas.currentDropTarget = null;\n }\n\n // end command stack trans\n canvas.getCommandStack().commitTransaction();\n\n if (this.mouseDraggingElement instanceof _packages2.default.shape.node.Node) {\n canvas.lineIntersections.each(function (i, inter) {\n if (!redrawConnection.contains(inter.line)) redrawConnection.add(inter.line);\n if (!redrawConnection.contains(inter.other)) redrawConnection.add(inter.other);\n });\n redrawConnection.each(function (i, line) {\n line.svgPathString = null;\n line.repaint();\n });\n }\n\n this.mouseDraggingElement = null;\n }\n\n // Reset the current selection if the user click in the blank canvas.\n // Don't reset the selection if the user is panning the canvas\n //\n if (this.mouseDownElement === null && this.mouseMovedDuringMouseDown === false) {\n this.select(canvas, null);\n }\n\n this.mouseDownElement = null;\n this.mouseMovedDuringMouseDown = false;\n }\n}); /**\r\n * @class draw2d.policy.canvas.GhostMoveSelectionPolicy\r\n *\r\n * A drag&Drop feedback handler for the canvas. The policy didn't move the\r\n * shapes in real time rather it shows a ghost rectangle as feedback. <br>\r\n * <br>\r\n * The shapes are updated after the drag&drop operation.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // install the policy to the canvas\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.GhostMoveSelectionPolicy());\r\n *\r\n * // add some demo figure to the canvas\r\n * canvas.add(new draw2d.shape.basic.Circle({diameter: 50, x: 10, y: 30}));\r\n * canvas.add(new draw2d.shape.basic.Circle({diameter: 30, x: 90, y: 50}));\r\n * canvas.add(new draw2d.shape.basic.Circle({diameter: 60, x: 110, y: 30}));\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"move the circle to see the drag&drop feedback\"}),5,5);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.SingleSelectionPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/KeyboardPolicy.js\":\n/*!*********************************************!*\\\n !*** ./src/policy/canvas/KeyboardPolicy.js ***!\n \\*********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.KeyboardPolicy = _packages2.default.policy.canvas.CanvasPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.KeyboardPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Callback if the user release a key\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {Number} keyCode the pressed key\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onKeyUp: function onKeyUp(canvas, keyCode, shiftKey, ctrlKey) {\n // do nothing per default\n },\n\n /**\r\n * @method\r\n * Callback if the user press a key down\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {Number} keyCode the pressed key\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onKeyDown: function onKeyDown(canvas, keyCode, shiftKey, ctrlKey) {\n // do nothing per default\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.KeyboardPolicy\r\n * Default interface for keyboard interaction with the canvas.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/PanningSelectionPolicy.js\":\n/*!*****************************************************!*\\\n !*** ./src/policy/canvas/PanningSelectionPolicy.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.PanningSelectionPolicy = _packages2.default.policy.canvas.SingleSelectionPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.PanningSelectionPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n this._super(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey);\n\n if (this.mouseDraggingElement === null && this.mouseDownElement === null) {\n\n // check if we are dragging a port. This isn't reported by the selection handler anymore\n //\n var p = canvas.fromDocumentToCanvasCoordinate(canvas.mouseDownX + dx / canvas.zoomFactor, canvas.mouseDownY + dy / canvas.zoomFactor);\n var figure = canvas.getBestFigure(p.x, p.y);\n\n if (figure === null) {\n var area = canvas.getScrollArea();\n area.scrollTop(area.scrollTop() - dy2);\n area.scrollLeft(area.scrollLeft() - dx2);\n }\n }\n }\n}); /**\r\n * @class draw2d.policy.canvas.PanningSelectionPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.SingleSelectionPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ReadOnlySelectionPolicy.js\":\n/*!******************************************************!*\\\n !*** ./src/policy/canvas/ReadOnlySelectionPolicy.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.ReadOnlySelectionPolicy = _packages2.default.policy.canvas.SelectionPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ReadOnlySelectionPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been installed.\r\n *\r\n * @param {draw2d.Canvas/draw2d.Canvas} canvas\r\n */\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n canvas.getAllPorts().each(function (i, port) {\n port.setVisible(false);\n });\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been uninstalled.\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n */\n onUninstall: function onUninstall(canvas) {\n canvas.getAllPorts().each(function (i, port) {\n port.setVisible(true);\n });\n\n this._super(canvas);\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n var area = canvas.getScrollArea();\n area.scrollTop(area.scrollTop() - dy2);\n area.scrollLeft(area.scrollLeft() - dx2);\n }\n}); /**\r\n * @class draw2d.policy.canvas.ReadOnlySelectionPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.SelectionPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SelectionPolicy.js\":\n/*!**********************************************!*\\\n !*** ./src/policy/canvas/SelectionPolicy.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SelectionPolicy = _packages2.default.policy.canvas.CanvasPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SelectionPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new selection policy\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Selects the given figure within the canvas. The policy must unselect already selected\r\n * figures or show any decorations.\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {draw2d.Figure} figure\r\n *\r\n */\n select: function select(canvas, figure) {},\n\n /**\r\n * @method\r\n * Unselect the given figure in the canvas and remove all resize handles\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {draw2d.Figure} figure\r\n */\n unselect: function unselect(canvas, figure) {\n canvas.getSelection().remove(figure);\n\n figure.unselect();\n\n // @since 6.1.42\n canvas.fireEvent(\"unselect\", { figure: figure });\n }\n}); /**\r\n * @class draw2d.policy.canvas.SelectionPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ShowChessboardEditPolicy.js\":\n/*!*******************************************************!*\\\n !*** ./src/policy/canvas/ShowChessboardEditPolicy.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.ShowChessboardEditPolicy = _packages2.default.policy.canvas.DecorationPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ShowChessboardEditPolicy\",\n\n GRID_COLOR: \"#e0e0e0\",\n GRID_WIDTH: 20,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to grid\r\n *\r\n * @param {Number} grid the grid width of the canvas\r\n */\n init: function init(grid) {\n this._super();\n this.cells = null;\n if (grid) {\n this.grid = grid;\n } else {\n this.grid = this.GRID_WIDTH;\n }\n },\n\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n this.showGrid();\n },\n\n onUninstall: function onUninstall(canvas) {\n this.cells.remove();\n this._super(canvas);\n },\n\n /**\r\n * @method\r\n * paint the grid into the canvas\r\n *\r\n * @private\r\n * @since 2.3.0\r\n */\n showGrid: function showGrid() {\n // vertical lines\n var w = this.canvas.initialWidth;\n var h = this.canvas.initialHeight;\n this.cells = this.canvas.paper.set();\n\n var even = false;\n var xEven = even;\n for (var x = 0; x < w; x += this.grid) {\n for (var y = 0; y < h; y += this.grid) {\n if (even) {\n var crect = this.canvas.paper.rect(x, y, this.grid, this.grid);\n crect.attr({ fill: this.GRID_COLOR, \"stroke-width\": 0 });\n this.cells.push(crect);\n }\n even = !even;\n }\n xEven = !xEven;\n even = xEven;\n }\n\n this.cells.toBack();\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.ShowChessboardEditPolicy\r\n *\r\n * Just to paint a grid in the background.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.ShowChessboardEditPolicy());\r\n * var shape = new draw2d.shape.basic.Text({text:\"This is a simple text in a canvas with chessboard background.\"});\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.DecorationPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ShowDimetricGridEditPolicy.js\":\n/*!*********************************************************!*\\\n !*** ./src/policy/canvas/ShowDimetricGridEditPolicy.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.ShowDimetricGridEditPolicy = _packages2.default.policy.canvas.DecorationPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ShowDimetricGridEditPolicy\",\n\n GRID_COLOR: \"#f0f0f0\",\n GRID_WIDTH: 30,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to grid\r\n *\r\n * @param {Number} [grid] the grid width of the canvas\r\n */\n init: function init(grid) {\n this.color = new _packages2.default.util.Color(this.GRID_COLOR);\n this.zoom = 1;\n this.shapes = null;\n\n this._super();\n\n if (typeof grid === \"number\") {\n this.grid = grid;\n } else {\n this.grid = this.GRID_WIDTH;\n }\n },\n\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n this.zoom = canvas.getZoom();\n this.setGrid(this.grid);\n },\n\n onUninstall: function onUninstall(canvas) {\n this._super(canvas);\n if (this.shapes !== null) {\n this.shapes.remove();\n }\n },\n\n /**\r\n * @method\r\n * Set the grid color\r\n *\r\n * @param {draw2d.util.Color|String} color a color object or the CSS string declaration for a color\r\n * @since 5.0.3\r\n */\n setGridColor: function setGridColor(color) {\n this.color = new _packages2.default.util.Color(color);\n this.setGrid(this.grid);\n },\n\n /**\r\n * @method\r\n * Set a new grid width/height\r\n *\r\n * @param {Number} grid\r\n * @since 5.0.3\r\n */\n setGrid: function setGrid(grid) {\n this.grid = grid;\n\n if (this.canvas != null) {\n if (this.shapes !== null) {\n this.shapes.remove();\n }\n\n var r = this.canvas.paper;\n var d = this.grid,\n i = void 0;\n var w = r.width;\n var h = r.height;\n var props = { stroke: this.color.rgba() };\n\n var max = Math.sqrt(w * w + h * h);\n var angle26 = Math.atan(.5);\n var angle153 = Math.PI - angle26;\n var cos30 = Math.cos(angle26);\n var sin30 = Math.sin(angle26);\n var cos150 = Math.cos(angle153);\n var sin150 = Math.sin(angle153);\n\n r.setStart();\n // horizontal\n for (i = 0; i <= w; i += d * 2) {\n r.path([[\"M\", i, 0], [\"L\", i + cos30 * max, sin30 * max]]).attr(props);\n r.path([[\"M\", i, 0], [\"L\", i + cos150 * max, sin150 * max]]).attr(props);\n }\n for (i = d; i <= h; i += d) {\n r.path([[\"M\", 0, i], [\"L\", cos30 * max, i + sin30 * max]]).attr(props);\n r.path([[\"M\", w, i], [\"L\", w + cos150 * max, i + sin150 * max]]).attr(props);\n }\n // vertical\n this.shapes = r.setFinish();\n\n this.shapes.toBack();\n }\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.ShowDimetricGridEditPolicy\r\n *\r\n * A canvas decoration which paints a dimetric in the background.\r\n * <br>\r\n * <br>\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.ShowDimetricGridEditPolicy());\r\n * let shape = new draw2d.shape.basic.Text({text:\"This is a simple text in a canvas with grid background.\"});\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.DecorationPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ShowDotEditPolicy.js\":\n/*!************************************************!*\\\n !*** ./src/policy/canvas/ShowDotEditPolicy.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.ShowDotEditPolicy = _packages2.default.policy.canvas.DecorationPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ShowDotEditPolicy\",\n\n DOT_COLOR: \"#999999\",\n DOT_RADIUS: 1,\n DOT_DISTANCE: 20,\n\n /**\r\n * @constructor\r\n * show a dot grid in the canvas for decoration.\r\n *\r\n * @param {Number} [dotDistance] the distance or grid width between the dots.\r\n * @param {Number} [dotRadius] the radius of the dots.\r\n * @param {draw2d.util.Color|String} [dotColor] the color for the dots.\r\n */\n init: function init(dotDistance, dotRadius, dotColor) {\n this._super();\n\n this.dotDistance = dotDistance ? dotDistance : this.DOT_DISTANCE;\n this.dotRadius = dotRadius ? dotRadius : this.DOT_RADIUS;\n this.dotColor = new _packages2.default.util.Color(dotColor ? dotColor : this.DOT_COLOR);\n\n // generate the background pattern with an data URL GIF image. This is much faster than draw\n // the pattern via the canvas and the raphael.circle method\n //\n var mypixels = Array(this.dotDistance * this.dotDistance);\n // set the pixel at the coordinate [0,0] as opaque.\n mypixels[0] = 1;\n this.imageDataURL = this.createMonochromGif(this.dotDistance, this.dotDistance, mypixels, this.dotColor);\n },\n\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n this.oldBg = this.canvas.html.css(\"background-image\");\n $(canvas.paper.canvas).css({ \"background-image\": \"url('\" + this.imageDataURL + \"')\" });\n },\n\n onUninstall: function onUninstall(canvas) {\n this._super(canvas);\n $(canvas.paper.canvas).css({ \"background-image\": this.oldBg });\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.ShowDotEditPolicy\r\n *\r\n * Paint a dotted pattern in the background of the canvas.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.ShowDotEditPolicy());\r\n * var shape = new draw2d.shape.basic.Text({text:\"This is a simple text in a canvas with dotted background.\"});\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.DecorationPolicy\r\n * @since 4.0.1\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ShowGridEditPolicy.js\":\n/*!*************************************************!*\\\n !*** ./src/policy/canvas/ShowGridEditPolicy.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.ShowGridEditPolicy = _packages2.default.policy.canvas.DecorationPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ShowGridEditPolicy\",\n\n GRID_COLOR: \"#f0f0f0\",\n GRID_WIDTH: 20,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to grid\r\n *\r\n * @param {Number} [grid] the grid width of the canvas\r\n */\n init: function init(grid) {\n this.color = new _packages2.default.util.Color(this.GRID_COLOR);\n this.zoom = 1;\n this.svg = null;\n\n this._super();\n\n if (typeof grid === \"number\") {\n this.grid = grid;\n } else {\n this.grid = this.GRID_WIDTH;\n }\n },\n\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n this.zoom = canvas.getZoom();\n this.setGrid(this.grid);\n },\n\n onUninstall: function onUninstall(canvas) {\n this._super(canvas);\n if (this.svg !== null) {\n this.svg.remove();\n }\n },\n\n /**\r\n * @method\r\n * Set the grid color\r\n *\r\n * @param {draw2d.util.Color|String} color a color object or the CSS string declaration for a color\r\n * @since 5.0.3\r\n */\n setGridColor: function setGridColor(color) {\n this.color = new _packages2.default.util.Color(color);\n this.setGrid(this.grid);\n },\n\n /**\r\n * @method\r\n * Set a new grid width/height\r\n *\r\n * @param {Number} grid\r\n * @since 5.0.3\r\n */\n setGrid: function setGrid(grid) {\n this.grid = grid;\n\n if (this.canvas != null) {\n if (this.svg !== null) {\n this.svg.remove();\n }\n\n var r = this.canvas.paper;\n var d = this.grid,\n i;\n var w = r.width;\n var h = r.height;\n var props = { stroke: this.color.rgba() };\n r.setStart();\n // horizontal\n for (var _i = d + 0.5; _i < h; _i += d) {\n r.path([[\"M\", 0, _i], [\"L\", w, _i]]).attr(props);\n }\n // vertical\n for (var _i2 = d + 0.5; _i2 < w; _i2 += d) {\n r.path([[\"M\", _i2, 0], [\"L\", _i2, h]]).attr(props);\n }\n this.svg = r.setFinish();\n\n this.svg.toBack();\n }\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.ShowGridEditPolicy\r\n *\r\n * A cavas decoration which paints a grid in the background.\r\n * <br>\r\n * <br>\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.ShowGridEditPolicy());\r\n * var shape = new draw2d.shape.basic.Text({text:\"This is a simple text in a canvas with grid background.\"});\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.DecorationPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SingleSelectionPolicy.js\":\n/*!****************************************************!*\\\n !*** ./src/policy/canvas/SingleSelectionPolicy.js ***!\n \\****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SingleSelectionPolicy = _packages2.default.policy.canvas.SelectionPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SingleSelectionPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init() {\n this._super();\n this.mouseMovedDuringMouseDown = false;\n this.mouseDraggingElement = null;\n this.mouseDownElement = null;\n },\n\n /**\r\n * @inheritdoc\r\n */\n select: function select(canvas, figure) {\n if (canvas.getSelection().contains(figure)) {\n return; // nothing to to\n }\n\n var oldSelection = canvas.getSelection().getPrimary();\n if (canvas.getSelection().getPrimary() !== null) {\n this.unselect(canvas, canvas.getSelection().getPrimary());\n }\n\n if (figure !== null) {\n figure.select(true); // primary selection\n }\n\n canvas.getSelection().setPrimary(figure);\n\n // inform all selection listeners about the new selection.\n //\n if (oldSelection !== figure) {\n canvas.fireEvent(\"select\", { figure: figure, selection: canvas.getSelection() });\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseDown: function onMouseDown(canvas, x, y, shiftKey, ctrlKey) {\n this.mouseMovedDuringMouseDown = false;\n var canDragStart = true;\n\n // ignore ports since version 6.1.0. This is handled by the ConnectionCreatePolicy\n //\n var figure = canvas.getBestFigure(x, y);\n\n // may the figure is assigned to a composite. In this case the composite can\n // override the event receiver\n while (figure !== null) {\n var delegate = figure.getSelectionAdapter()();\n if (delegate === figure) {\n break;\n }\n figure = delegate;\n }\n\n // ignore ports since version 6.1.0. This is handled by the ConnectionCreatePolicy\n //\n if (figure instanceof _packages2.default.Port) {\n return; // silently\n }\n\n if (figure !== null && figure.isDraggable()) {\n canDragStart = figure.onDragStart(x - figure.getAbsoluteX(), y - figure.getAbsoluteY(), shiftKey, ctrlKey);\n // Element send a veto about the drag&drop operation\n this.mouseDraggingElement = canDragStart === false ? null : figure;\n }\n\n this.mouseDownElement = figure;\n if (this.mouseDownElement !== null) {\n this.mouseDownElement.fireEvent(\"mousedown\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n }\n\n if (figure !== canvas.getSelection().getPrimary() && figure !== null && figure.isSelectable() === true) {\n this.select(canvas, figure);\n\n // it's a line\n if (figure instanceof _packages2.default.shape.basic.Line) {\n // you can move a line with Drag&Drop...but not a connection.\n // A Connection is fixed linked with the corresponding ports.\n //\n if (!(figure instanceof _packages2.default.Connection)) {\n canvas.draggingLineCommand = figure.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE));\n if (canvas.draggingLineCommand !== null) {\n canvas.draggingLine = figure;\n }\n }\n } else if (canDragStart === false) {\n figure.unselect();\n }\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n this.mouseMovedDuringMouseDown = true;\n if (this.mouseDraggingElement !== null) {\n // Can be a ResizeHandle or a normal Figure\n //\n var sel = canvas.getSelection();\n if (!sel.contains(this.mouseDraggingElement)) {\n this.mouseDraggingElement.onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n } else {\n sel.each(function (i, figure) {\n figure.onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n });\n }\n\n var p = canvas.fromDocumentToCanvasCoordinate(canvas.mouseDownX + dx / canvas.zoomFactor, canvas.mouseDownY + dy / canvas.zoomFactor);\n var target = canvas.getBestFigure(p.x, p.y, this.mouseDraggingElement);\n\n if (target !== canvas.currentDropTarget) {\n if (canvas.currentDropTarget !== null) {\n canvas.currentDropTarget.onDragLeave(this.mouseDraggingElement);\n canvas.currentDropTarget.fireEvent(\"dragLeave\", { draggingElement: this.mouseDraggingElement });\n canvas.currentDropTarget = null;\n }\n if (target !== null) {\n canvas.currentDropTarget = target.delegateTarget(this.mouseDraggingElement);\n // inform all listener that the element has accept the dragEnter event\n //\n if (canvas.currentDropTarget !== null) {\n canvas.currentDropTarget.onDragEnter(this.mouseDraggingElement); // legacy\n canvas.currentDropTarget.fireEvent(\"dragEnter\", { draggingElement: this.mouseDraggingElement });\n }\n }\n }\n }\n // Connection didn't support panning at the moment. There is no special reason for that. Just an interaction\n // decision.\n //\n else if (this.mouseDownElement !== null && !(this.mouseDownElement instanceof _packages2.default.Connection)) {\n if (this.mouseDownElement.panningDelegate !== null) {\n this.mouseDownElement.panningDelegate.fireEvent(\"panning\", {\n dx: dx,\n dy: dy,\n dx2: dx2,\n dy2: dy2,\n shiftKey: shiftKey,\n ctrlKey: ctrlKey\n });\n this.mouseDownElement.panningDelegate.onPanning(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n } else {\n this.mouseDownElement.fireEvent(\"panning\", {\n dx: dx,\n dy: dy,\n dx2: dx2,\n dy2: dy2,\n shiftKey: shiftKey,\n ctrlKey: ctrlKey\n });\n this.mouseDownElement.onPanning(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n }\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the shape below the mouse or null\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(canvas, x, y, shiftKey, ctrlKey) {\n if (this.mouseDraggingElement !== null) {\n var redrawConnection = new _packages2.default.util.ArrayList();\n if (this.mouseDraggingElement instanceof _packages2.default.shape.node.Node) {\n // TODO: don't add the connections with to check if a repaint is required\n // may a moved connection didn't have an intersection with the named lines.\n // in this case a redraw is useless\n canvas.lineIntersections.each(function (i, inter) {\n if (!redrawConnection.contains(inter.line)) redrawConnection.add(inter.line);\n if (!redrawConnection.contains(inter.other)) redrawConnection.add(inter.other);\n });\n }\n\n // start CommandStack transaction\n canvas.getCommandStack().startTransaction();\n\n var sel = canvas.getSelection().getAll();\n if (!sel.contains(this.mouseDraggingElement)) {\n this.mouseDraggingElement.onDragEnd(x, y, shiftKey, ctrlKey);\n } else {\n canvas.getSelection().getAll().each(function (i, figure) {\n figure.onDragEnd(x, y, shiftKey, ctrlKey);\n });\n }\n\n if (canvas.currentDropTarget !== null && !this.mouseDraggingElement.isResizeHandle) {\n this.mouseDraggingElement.onDrop(canvas.currentDropTarget, x, y, shiftKey, ctrlKey);\n canvas.currentDropTarget.onDragLeave(this.mouseDraggingElement);\n canvas.currentDropTarget.fireEvent(\"dragLeave\", { draggingElement: this.mouseDraggingElement });\n canvas.currentDropTarget.onCatch(this.mouseDraggingElement, x, y, shiftKey, ctrlKey);\n canvas.currentDropTarget = null;\n }\n\n // end command stack trans\n canvas.getCommandStack().commitTransaction();\n\n if (this.mouseDraggingElement instanceof _packages2.default.shape.node.Node) {\n canvas.lineIntersections.each(function (i, inter) {\n if (!redrawConnection.contains(inter.line)) redrawConnection.add(inter.line);\n if (!redrawConnection.contains(inter.other)) redrawConnection.add(inter.other);\n });\n redrawConnection.each(function (i, line) {\n line.svgPathString = null;\n line.repaint();\n });\n }\n\n this.mouseDraggingElement = null;\n }\n // Connection didn't support panning at the moment. There is no special reason for that. Just an interaction\n // decision.\n //\n else if (this.mouseDownElement !== null && !(this.mouseDownElement instanceof _packages2.default.Connection)) {\n if (this.mouseDownElement.panningDelegate !== null) {\n this.mouseDownElement.panningDelegate.fireEvent(\"panningEnd\");\n this.mouseDownElement.panningDelegate.onPanningEnd();\n } else {\n this.mouseDownElement.fireEvent(\"panningEnd\");\n this.mouseDownElement.onPanningEnd();\n }\n }\n\n // Reset the current selection if the user click in the blank canvas.\n // Don't reset the selection if the user pan the canvas\n //\n if (this.mouseDownElement === null && this.mouseMovedDuringMouseDown === false) {\n this.select(canvas, null);\n }\n\n if (this.mouseDownElement !== null) {\n this.mouseDownElement.fireEvent(\"mouseup\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n }\n\n this.mouseDownElement = null;\n this.mouseMovedDuringMouseDown = false;\n },\n\n /**\r\n * @method\r\n * Called by the canvas if the user click on a figure.\r\n *\r\n * @param {draw2d.Figure} the figure under the click event. Can be null\r\n * @param {Number} mouseX the x coordinate of the mouse during the click event\r\n * @param {Number} mouseY the y coordinate of the mouse during the click event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @since 3.0.0\r\n */\n onClick: function onClick(figure, mouseX, mouseY, shiftKey, ctrlKey) {\n if (figure !== null) {\n figure.fireEvent(\"click\", {\n figure: figure,\n x: mouseX,\n y: mouseY,\n relX: mouseX - figure.getAbsoluteX(),\n relY: mouseY - figure.getAbsoluteY(),\n shiftKey: shiftKey,\n ctrlKey: ctrlKey\n });\n\n figure.onClick();\n }\n },\n\n /**\r\n * @method\r\n * Called by the canvas if the user double click on a figure.\r\n *\r\n * @param {draw2d.Figure} the figure under the double click event. Can be null\r\n * @param {Number} mouseX the x coordinate of the mouse during the click event\r\n * @param {Number} mouseY the y coordinate of the mouse during the click event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @since 4.1.0\r\n */\n onDoubleClick: function onDoubleClick(figure, mouseX, mouseY, shiftKey, ctrlKey) {\n if (figure !== null) {\n figure.fireEvent(\"dblclick\", { x: mouseX, y: mouseY, shiftKey: shiftKey, ctrlKey: ctrlKey });\n figure.onDoubleClick();\n }\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.SingleSelectionPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.SelectionPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToCenterEditPolicy.js\":\n/*!*****************************************************!*\\\n !*** ./src/policy/canvas/SnapToCenterEditPolicy.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SnapToCenterEditPolicy = _packages2.default.policy.canvas.SnapToEditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToCenterEditPolicy\",\n\n SNAP_THRESHOLD: 5,\n FADEOUT_DURATION: 500,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to geometry\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.centers = null;\n\n this.horizontalGuideLines = null;\n this.verticalGuideLines = null;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the shape below the mouse or null\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(figure, x, y, shiftKey, ctrlKey) {\n this.centers = null;\n this.hideHorizontalGuides(false);\n this.hideVerticalGuides(false);\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the canvas neighbours\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n // do nothing for resize handles\n if (figure instanceof _packages2.default.ResizeHandle) {\n return modifiedPos;\n }\n\n // do nothing for lines\n if (figure instanceof _packages2.default.shape.basic.Line) {\n return modifiedPos;\n }\n\n var allowXChanges = modifiedPos.x === originalPos.x;\n var allowYChanges = modifiedPos.y === originalPos.y;\n\n var inputBounds = new _packages2.default.geo.Rectangle(modifiedPos.x, modifiedPos.y, figure.getWidth(), figure.getHeight());\n var inputCenter = inputBounds.getCenter();\n\n modifiedPos = modifiedPos.clone();\n\n if (allowXChanges === true) {\n var horizontal = this.snapHorizontal(inputCenter);\n\n // Show a horizontal line if the snapper has modified the inputPoint\n //\n if (horizontal.snapped) {\n // show the snap lines..\n this.showHorizontalGuides(figure, horizontal);\n\n // and snap the x coordinate\n modifiedPos.y += horizontal.diff;\n } else {\n this.hideHorizontalGuides(true);\n }\n } else {\n this.hideHorizontalGuides(true);\n }\n\n if (allowYChanges === true) {\n var vertical = this.snapVertical(inputCenter);\n\n // Show a vertical guides if the snapper has modified the inputPoint\n //\n if (vertical.snapped) {\n // show the snap lines..\n this.showVerticalGuides(figure, vertical);\n\n // and snap the x coordinate\n modifiedPos.x += vertical.diff;\n } else {\n this.hideVerticalGuides(true);\n }\n } else {\n this.hideVerticalGuides(true);\n }\n\n return modifiedPos;\n },\n\n snapVertical: function snapVertical(center) {\n var _this = this;\n if (this.centers === null) {\n this.populateCenters();\n }\n\n var result = {\n point: center,\n snapped: false,\n diff: 0\n };\n\n var candidates = [];\n this.centers.forEach(function (point) {\n if (Math.abs(point.x - center.x) < _this.SNAP_THRESHOLD) {\n candidates.push(point);\n }\n });\n\n // we can abort if we didn't find an intersection on the right hand side\n if (candidates.length === 0) {\n return result;\n }\n\n // sort the intersection point and get the closest point to the tested inputPoint\n // In this case it is the point with the greatest X coordinate\n //\n candidates.sort(function (a, b) {\n return a.x - b.x;\n });\n\n var diff = candidates[0].x - center.x;\n var snappedPoint = center.clone();\n snappedPoint.x += diff;\n return { snapped: true, diff: diff, point: candidates[0], snappedPoint: snappedPoint };\n },\n\n snapHorizontal: function snapHorizontal(center) {\n var _this = this;\n if (this.centers === null) {\n this.populateCenters();\n }\n\n var result = {\n point: center,\n snapped: false,\n diff: 0\n };\n\n var candidates = [];\n this.centers.forEach(function (point) {\n if (Math.abs(point.y - center.y) < _this.SNAP_THRESHOLD) {\n candidates.push(point);\n }\n });\n\n // we can abort if we didn't find an intersection on the right hand side\n if (candidates.length === 0) {\n return result;\n }\n\n // sort the intersection point and get the closest point to the tested inputPoint\n // In this case it is the point with the greatest X coordinate\n //\n candidates.sort(function (a, b) {\n return a.y - b.y;\n });\n\n var diff = candidates[0].y - center.y;\n var snappedPoint = center.clone();\n snappedPoint.y += diff;\n return { snapped: true, diff: diff, point: candidates[0], snappedPoint: snappedPoint };\n },\n\n populateCenters: function populateCenters() {\n var selection = this.canvas.getSelection().getAll(true);\n var centers = this.centers = [];\n\n var figures = this.canvas.getFigures();\n figures.each(function (index, figure) {\n if (!selection.contains(figure)) {\n centers.push(figure.getBoundingBox().getCenter());\n }\n });\n },\n\n showHorizontalGuides: function showHorizontalGuides(causedFigure, constraint) {\n if (this.horizontalGuideLines !== null) {\n this.horizontalGuideLines.stop();\n this.horizontalGuideLines.remove();\n }\n\n var start = constraint.point;\n var end = constraint.snappedPoint;\n\n this.canvas.paper.setStart();\n\n // horizontal lines\n //\n this.canvas.paper.path(\"M \" + start.x + \" \" + ((start.y | 0) + 0.5) + \" L \" + end.x + \" \" + ((end.y | 0) + 0.5)).attr({\n \"stroke\": this.lineColor.rgba(),\n \"stroke-width\": 1\n });\n\n this.horizontalGuideLines = this.canvas.paper.setFinish();\n this.horizontalGuideLines.toFront();\n },\n\n /**\r\n * @method\r\n * Hide the horizontal snapping guides\r\n *\r\n * @param {Boolean} fast\r\n */\n hideHorizontalGuides: function hideHorizontalGuides(fast) {\n var _this2 = this;\n\n if (this.horizontalGuideLines === null) {\n return;\n }\n if (fast === true) {\n if (this.horizontalGuideLines !== null) {\n this.horizontalGuideLines.remove();\n this.horizontalGuideLines = null;\n }\n } else {\n this.horizontalGuideLines.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this2.horizontalGuideLines !== null) {\n _this2.horizontalGuideLines.remove();\n _this2.horizontalGuideLines = null;\n }\n });\n }\n },\n\n showVerticalGuides: function showVerticalGuides(causedFigure, constraint) {\n if (this.verticalGuideLines !== null) {\n this.verticalGuideLines.stop();\n this.verticalGuideLines.remove();\n }\n\n var start = constraint.point;\n var end = constraint.snappedPoint;\n\n this.canvas.paper.setStart();\n\n // horizontal lines\n //\n this.canvas.paper.path(\"M \" + ((start.x | 0) + 0.5) + \" \" + start.y + \" L \" + ((end.x | 0) + 0.5) + \" \" + end.y).attr({\n \"stroke\": this.lineColor.rgba(),\n \"stroke-width\": 1\n });\n\n this.verticalGuideLines = this.canvas.paper.setFinish();\n this.verticalGuideLines.toFront();\n },\n\n /**\r\n * @method\r\n * Hide the horizontal snapüing guides\r\n *\r\n * @param soft\r\n */\n hideVerticalGuides: function hideVerticalGuides(fast) {\n var _this3 = this;\n\n if (this.verticalGuideLines === null) {\n return;\n }\n if (fast === true) {\n if (this.verticalGuideLines !== null) {\n this.verticalGuideLines.remove();\n this.verticalGuideLines = null;\n }\n } else {\n this.verticalGuideLines.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this3.verticalGuideLines !== null) {\n _this3.verticalGuideLines.remove();\n _this3.verticalGuideLines = null;\n }\n });\n }\n }\n}); /**\r\n * @class draw2d.policy.canvas.SnapToCenterEditPolicy\r\n *\r\n * Snapping is based on the existing children of a container. When snapping a shape,\r\n * the center of the bounding box will snap to the center of other figures of the given canvas.\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.SnapToEditPolicy\r\n * @since 5.6.4\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToDimetricGridEditPolicy.js\":\n/*!***********************************************************!*\\\n !*** ./src/policy/canvas/SnapToDimetricGridEditPolicy.js ***!\n \\***********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SnapToDimetricGridEditPolicy = _packages2.default.policy.canvas.ShowDimetricGridEditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToDimetricGridEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to grid\r\n *\r\n * @param {Number} grid the grid width of the canvas\r\n */\n init: function init(grid) {\n this._super(grid);\n },\n\n /**\r\n * @method\r\n * Applies a snapping correction to the given result.\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n * @since 2.3.0\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n // do nothing for lines\n if (figure instanceof _packages2.default.shape.basic.Line) {\n return modifiedPos;\n }\n\n var snapPoint = figure.getSnapToGridAnchor();\n\n modifiedPos.x = modifiedPos.x + snapPoint.x;\n modifiedPos.y = modifiedPos.y + snapPoint.y;\n\n var g = this.grid / 5;\n\n modifiedPos.x = g * Math.floor((modifiedPos.x + g / 2.0) / g);\n modifiedPos.y = g * Math.floor((modifiedPos.y + g / 2.0) / g);\n\n modifiedPos.x = modifiedPos.x - snapPoint.x;\n modifiedPos.y = modifiedPos.y - snapPoint.y;\n\n return modifiedPos;\n }\n}); /**\r\n * @class draw2d.policy.canvas.SnapToDimetricGridEditPolicy\r\n *\r\n * A helper used to perform snapping to a grid, which is specified on the canvas via the various\r\n * properties defined in this class.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.ShowDimetricGridEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToEditPolicy.js\":\n/*!***********************************************!*\\\n !*** ./src/policy/canvas/SnapToEditPolicy.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.SnapToHelper = {};\n\n_packages2.default.SnapToHelper.NORTH = 1;\n_packages2.default.SnapToHelper.SOUTH = 4;\n_packages2.default.SnapToHelper.WEST = 8;\n_packages2.default.SnapToHelper.EAST = 16;\n_packages2.default.SnapToHelper.CENTER_H = 32;\n_packages2.default.SnapToHelper.CENTER_V = 642;\n\n_packages2.default.SnapToHelper.NORTH_EAST = _packages2.default.SnapToHelper.NORTH | _packages2.default.SnapToHelper.EAST;\n_packages2.default.SnapToHelper.NORTH_WEST = _packages2.default.SnapToHelper.NORTH | _packages2.default.SnapToHelper.WEST;\n_packages2.default.SnapToHelper.SOUTH_EAST = _packages2.default.SnapToHelper.SOUTH | _packages2.default.SnapToHelper.EAST;\n_packages2.default.SnapToHelper.SOUTH_WEST = _packages2.default.SnapToHelper.SOUTH | _packages2.default.SnapToHelper.WEST;\n_packages2.default.SnapToHelper.NORTH_SOUTH = _packages2.default.SnapToHelper.NORTH | _packages2.default.SnapToHelper.SOUTH;\n_packages2.default.SnapToHelper.EAST_WEST = _packages2.default.SnapToHelper.EAST | _packages2.default.SnapToHelper.WEST;\n_packages2.default.SnapToHelper.NSEW = _packages2.default.SnapToHelper.NORTH_SOUTH | _packages2.default.SnapToHelper.EAST_WEST;\n\n/**\r\n * @class draw2d.policy.canvas.SnapToEditPolicy\r\n *\r\n * A helper used by Tools for snapping certain mouse interactions.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n */\n_packages2.default.policy.canvas.SnapToEditPolicy = _packages2.default.policy.canvas.CanvasPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to grid\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this.lineColor = null;\n\n this._super((0, _extend2.default)({\n lineColor: \"#51C1FC\"\n }, attr), (0, _extend2.default)({\n /** @attr {draw2d.util.Color} color the line color of the snapTo lines */\n lineColor: this.setLineColor\n }, setter), (0, _extend2.default)({\n lineColor: this.getLineColor\n }, getter));\n },\n\n /**\r\n * @method\r\n * Set the color of the snap line.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * policy.attr({\r\n * lineColor: color\r\n * });\r\n *\r\n * @param {draw2d.util.Color|String} color The new color of the line.\r\n **/\n setLineColor: function setLineColor(color) {\n this.lineColor = new _packages2.default.util.Color(color);\n return this;\n },\n\n /**\r\n * @method\r\n * Return the current paint color.\r\n *\r\n * @return {draw2d.util.Color} The paint color of the line.\r\n * @since 5.6.1\r\n **/\n getLineColor: function getLineColor() {\n return this.lineColor;\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the given constraint of the policy.\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n return modifiedPos;\n }\n});\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToGeometryEditPolicy.js\":\n/*!*******************************************************!*\\\n !*** ./src/policy/canvas/SnapToGeometryEditPolicy.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SnapToGeometryEditPolicy = _packages2.default.policy.canvas.SnapToEditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToGeometryEditPolicy\",\n\n SNAP_THRESHOLD: 3,\n FADEOUT_DURATION: 300,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to geometry\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.rows = null;\n this.cols = null;\n this.vline = null;\n this.hline = null;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the shape below the mouse or null\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(figure, x, y, shiftKey, ctrlKey) {\n this.rows = null;\n this.cols = null;\n this.hideVerticalLine();\n this.hideHorizontalLine();\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the canvas neighbours\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n // do nothing for lines\n if (figure instanceof _packages2.default.shape.basic.Line) {\n return modifiedPos;\n }\n\n var result = void 0;\n var allowXChanges = modifiedPos.x === originalPos.x;\n var allowYChanges = modifiedPos.y === originalPos.y;\n\n // Coordinates already snapped to an x/y coordinate.\n // Don't change them and in this case no further calculation is requried.\n //\n if (!allowXChanges && !allowYChanges) {\n return modifiedPos;\n }\n\n if (figure instanceof _packages2.default.ResizeHandle) {\n var snapPoint = figure.getSnapToGridAnchor();\n modifiedPos.x += snapPoint.x;\n modifiedPos.y += snapPoint.y;\n\n var snapDirections = figure.getSnapToDirection();\n result = this.snapPoint(snapDirections, modifiedPos);\n\n // Show a vertical line if the snapper has modified the inputPoint\n //\n if (allowXChanges && snapDirections & _packages2.default.SnapToHelper.EAST_WEST && !(result.edge & _packages2.default.SnapToHelper.EAST_WEST)) {\n this.showVerticalLine(figure, _packages2.default.SnapToHelper.WEST, result.point.x);\n } else {\n this.hideVerticalLine();\n }\n\n // Show a horizontal line if the snapper has modified the inputPoint\n //\n if (allowYChanges && snapDirections & _packages2.default.SnapToHelper.NORTH_SOUTH && !(result.edge & _packages2.default.SnapToHelper.NORTH_SOUTH)) {\n this.showHorizontalLine(figure, _packages2.default.SnapToHelper.NORTH, result.point.y);\n } else {\n this.hideHorizontalLine();\n }\n\n // restore the original pos coordinate if x or y coordinate already snapped to any axis\n // or subtract the added snapOffset\n //\n result.point.x = allowXChanges ? result.point.x - snapPoint.x : modifiedPos.x;\n result.point.y = allowYChanges ? result.point.y - snapPoint.y : modifiedPos.y;\n\n return result.point;\n }\n\n // The user drag&drop a normal figure\n var inputBounds = new _packages2.default.geo.Rectangle(modifiedPos.x, modifiedPos.y, figure.getWidth(), figure.getHeight());\n\n result = this.snapRectangle(inputBounds);\n\n if (!allowXChanges) {\n result.bounds.x = modifiedPos.x;\n }\n\n if (!allowYChanges) {\n result.bounds.y = modifiedPos.y;\n }\n\n // Show a vertical line if the snapper has modified the inputPoint\n //\n if (allowXChanges && !(result.edge & _packages2.default.SnapToHelper.WEST)) {\n this.showVerticalLine(figure, _packages2.default.SnapToHelper.WEST, result.bounds.x);\n } else if (allowXChanges && !(result.edge & _packages2.default.SnapToHelper.EAST)) {\n this.showVerticalLine(figure, _packages2.default.SnapToHelper.EAST, result.bounds.x + result.bounds.getWidth());\n } else {\n this.hideVerticalLine();\n }\n\n // Show a horizontal line if the snapper has modified the inputPoint\n //\n if (allowYChanges && !(result.edge & _packages2.default.SnapToHelper.NORTH)) {\n this.showHorizontalLine(figure, _packages2.default.SnapToHelper.NORTH, result.bounds.y);\n } else if (allowYChanges && !(result.edge & _packages2.default.SnapToHelper.SOUTH)) {\n this.showHorizontalLine(figure, _packages2.default.SnapToHelper.SOUTH, result.bounds.y + result.bounds.getHeight());\n } else {\n this.hideHorizontalLine();\n }\n\n return result.bounds.getTopLeft();\n },\n\n /**\r\n * @method\r\n * calculates the snapped position of the rectangle.\r\n *\r\n * @param {draw2d.geo.Rectangle} inputBounds\r\n *\r\n * @returns {Object}\r\n */\n snapRectangle: function snapRectangle(inputBounds) {\n var resultBounds = inputBounds.clone();\n\n var topLeft = this.snapPoint(_packages2.default.SnapToHelper.NORTH_WEST, inputBounds.getTopLeft());\n resultBounds.x = topLeft.point.x;\n resultBounds.y = topLeft.point.y;\n\n var bottomRight = this.snapPoint(_packages2.default.SnapToHelper.SOUTH_EAST, inputBounds.getBottomRight());\n\n // The first test (topLeft) has not modified the point. so we can modify them with the bottomRight adjustment\n //\n if (topLeft.edge & _packages2.default.SnapToHelper.WEST) {\n resultBounds.x = bottomRight.point.x - inputBounds.getWidth();\n }\n\n // The first test (topLeft) has not modified the point. so we can modify them with the bottomRight adjustment\n //\n if (topLeft.edge & _packages2.default.SnapToHelper.NORTH) {\n resultBounds.y = bottomRight.point.y - inputBounds.getHeight();\n }\n\n return { edge: topLeft.edge | bottomRight.edge, bounds: resultBounds };\n },\n\n snapPoint: function snapPoint( /*:int*/snapOrientation, /*:draw2d.Point*/inputPoint) {\n var resultPoint = inputPoint.clone();\n\n if (this.rows === null || this.cols === null) this.populateRowsAndCols();\n\n if ((snapOrientation & _packages2.default.SnapToHelper.EAST) !== 0) {\n var rightCorrection = this.getCorrectionFor(this.cols, inputPoint.x + 1, 1);\n if (rightCorrection !== this.SNAP_THRESHOLD) {\n snapOrientation &= ~_packages2.default.SnapToHelper.EAST;\n resultPoint.x += rightCorrection;\n }\n }\n\n if ((snapOrientation & _packages2.default.SnapToHelper.WEST) !== 0) {\n var leftCorrection = this.getCorrectionFor(this.cols, inputPoint.x, -1);\n if (leftCorrection !== this.SNAP_THRESHOLD) {\n snapOrientation &= ~_packages2.default.SnapToHelper.WEST;\n resultPoint.x += leftCorrection;\n }\n }\n\n if ((snapOrientation & _packages2.default.SnapToHelper.SOUTH) !== 0) {\n var bottomCorrection = this.getCorrectionFor(this.rows, inputPoint.y + 1, 1);\n if (bottomCorrection !== this.SNAP_THRESHOLD) {\n snapOrientation &= ~_packages2.default.SnapToHelper.SOUTH;\n resultPoint.y += bottomCorrection;\n }\n }\n\n if ((snapOrientation & _packages2.default.SnapToHelper.NORTH) !== 0) {\n var topCorrection = this.getCorrectionFor(this.rows, inputPoint.y, -1);\n if (topCorrection !== this.SNAP_THRESHOLD) {\n snapOrientation &= ~_packages2.default.SnapToHelper.NORTH;\n resultPoint.y += topCorrection;\n }\n }\n\n return { edge: snapOrientation, point: resultPoint };\n },\n\n populateRowsAndCols: function populateRowsAndCols() {\n var selection = this.canvas.getSelection();\n this.rows = [];\n this.cols = [];\n\n var figures = this.canvas.getFigures();\n for (var i = 0; i < figures.getSize(); i++) {\n var figure = figures.get(i);\n if (!selection.contains(figure, true)) {\n var bounds = figure.getBoundingBox();\n this.cols.push({ type: -1, location: bounds.x });\n this.cols.push({ type: 0, location: bounds.x + (bounds.w - 1) / 2 });\n this.cols.push({ type: 1, location: bounds.getRight() + 1 });\n this.rows.push({ type: -1, location: bounds.y });\n this.rows.push({ type: 0, location: bounds.y + (bounds.h - 1) / 2 });\n this.rows.push({ type: 1, location: bounds.getBottom() + 1 });\n }\n }\n\n // TODO: remove duplicate entries in the rows/cols array\n },\n\n getCorrectionFor: function getCorrectionFor( /*:Array*/entries, /*:double*/value, /*:int*/side) {\n var resultMag = this.SNAP_THRESHOLD;\n var result = this.SNAP_THRESHOLD;\n\n for (var i = 0; i < entries.length; i++) {\n var entry = entries[i];\n var magnitude = void 0;\n\n if (entry.type === -1 && side !== 0) {\n magnitude = Math.abs(value - entry.location);\n if (magnitude < resultMag) {\n resultMag = magnitude;\n result = entry.location - value;\n }\n } else if (entry.type === 0 && side === 0) {\n magnitude = Math.abs(value - entry.location);\n if (magnitude < resultMag) {\n resultMag = magnitude;\n result = entry.location - value;\n }\n } else if (entry.type === 1 && side !== 0) {\n magnitude = Math.abs(value - entry.location);\n if (magnitude < resultMag) {\n resultMag = magnitude;\n result = entry.location - value;\n }\n }\n }\n return result;\n },\n\n showVerticalLine: function showVerticalLine(causedFigure, edge, x) {\n if (this.vline != null) {\n this.vline.stop();\n this.vline.remove();\n }\n\n var figures = this.canvas.getFigures().clone();\n figures.removeAll(this.canvas.getSelection().getAll(true));\n figures.map(function (figure) {\n return figure.getBoundingBox();\n });\n figures.grep(function (bbox) {\n return Math.abs(bbox.x - x) <= 1 || Math.abs(bbox.getRight() - x) <= 1;\n });\n\n // return silently if no figure bounding box is left\n //\n if (figures.getSize() === 0) {\n return;\n }\n\n // figure to align is above the current shape\n //\n var causedBox = causedFigure.getBoundingBox();\n var causedCenter = causedBox.getCenter();\n figures.sort(function (a, b) {\n var d_a = a.getCenter().distance(causedCenter);\n var d_b = b.getCenter().distance(causedCenter);\n return d_a - d_b;\n });\n var fromY = 0;\n var maxLength = this.canvas.getHeight() * Math.max(1, this.canvas.getZoom());\n var yLength = maxLength;\n var snappedBox = figures.get(0);\n if (causedBox.y < snappedBox.y) {\n fromY = causedBox.y;\n yLength = snappedBox.getBottom() - causedBox.y;\n } else {\n fromY = snappedBox.y;\n yLength = causedBox.getBottom() - snappedBox.y;\n }\n\n x = (x | 0) + 0.5; // force a .5 number to avoid subpixel rendering. Blurry lines...\n this.canvas.paper.setStart();\n this.canvas.paper.path(\"M \" + x + \" 0 l 0 \" + maxLength).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + x + \" \" + fromY + \" l 0 \" + yLength).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.vline = this.canvas.paper.setFinish();\n this.vline.toBack();\n },\n\n hideVerticalLine: function hideVerticalLine() {\n var _this = this;\n\n if (this.vline == null) {\n return;\n }\n this.vline.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this.vline !== null) {\n _this.vline.remove();\n _this.vline = null;\n }\n });\n },\n\n showHorizontalLine: function showHorizontalLine(causedFigure, edge, y) {\n if (this.hline != null) {\n this.hline.stop();\n this.hline.remove();\n }\n\n var figures = this.canvas.getFigures().clone();\n figures.removeAll(this.canvas.getSelection().getAll(true));\n figures.map(function (figure) {\n return figure.getBoundingBox();\n });\n figures.grep(function (bbox) {\n return Math.abs(bbox.y - y) <= 1 || Math.abs(bbox.getBottom() - y) <= 1;\n });\n\n // return silently if no figure bounding box is left\n //\n if (figures.getSize() === 0) {\n return;\n }\n\n // figure to align is above the current shape\n //\n var causedBox = causedFigure.getBoundingBox();\n var causedCenter = causedBox.getCenter();\n figures.sort(function (a, b) {\n var d_a = a.getCenter().distance(causedCenter);\n var d_b = b.getCenter().distance(causedCenter);\n return d_a - d_b;\n });\n var fromX = 0;\n var maxLength = void 0;\n var xLength = maxLength = this.canvas.getWidth() * Math.max(1, this.canvas.getZoom());\n var snappedBox = figures.get(0);\n if (causedBox.x < snappedBox.x) {\n fromX = causedBox.x;\n xLength = snappedBox.getRight() - causedBox.x;\n } else {\n fromX = snappedBox.x;\n xLength = causedBox.getRight() - snappedBox.x;\n }\n\n y = (y | 0) + 0.5; // force a .5 number to avoid subpixel rendering. Blurry lines...\n\n this.canvas.paper.setStart();\n this.canvas.paper.path(\"M 0 \" + y + \" l \" + maxLength + \" 0\").attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + fromX + \" \" + y + \" l \" + xLength + \" 0\").attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.hline = this.canvas.paper.setFinish();\n this.hline.toBack();\n },\n\n hideHorizontalLine: function hideHorizontalLine() {\n var _this2 = this;\n\n if (this.hline === null) {\n return; //silently\n }\n this.hline.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this2.hline !== null) {\n _this2.hline.remove();\n _this2.hline = null;\n }\n });\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.SnapToGeometryEditPolicy\r\n *\r\n * Snapping is based on the existing children of a container. When snapping a shape,\r\n * the edges of the bounding box will snap to edges of other rectangles generated\r\n * from the children of the given canvas.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.SnapToEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToGridEditPolicy.js\":\n/*!***************************************************!*\\\n !*** ./src/policy/canvas/SnapToGridEditPolicy.js ***!\n \\***************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SnapToGridEditPolicy = _packages2.default.policy.canvas.ShowGridEditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToGridEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to grid\r\n *\r\n * @param {Number} grid the grid width of the canvas\r\n */\n init: function init(grid) {\n this._super(grid);\n },\n\n /**\r\n * @method\r\n * Applies a snapping correction to the given result.\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n * @since 2.3.0\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n // do nothing for lines\n if (figure instanceof _packages2.default.shape.basic.Line) {\n return modifiedPos;\n }\n\n var snapPoint = figure.getSnapToGridAnchor();\n\n modifiedPos.x = modifiedPos.x + snapPoint.x;\n modifiedPos.y = modifiedPos.y + snapPoint.y;\n\n modifiedPos.x = this.grid * Math.floor((modifiedPos.x + this.grid / 2.0) / this.grid);\n modifiedPos.y = this.grid * Math.floor((modifiedPos.y + this.grid / 2.0) / this.grid);\n\n modifiedPos.x = modifiedPos.x - snapPoint.x;\n modifiedPos.y = modifiedPos.y - snapPoint.y;\n\n return modifiedPos;\n }\n}); /**\r\n * @class draw2d.policy.canvas.SnapToGridEditPolicy\r\n *\r\n * A helper used to perform snapping to a grid, which is specified on the canvas via the various\r\n * properties defined in this class.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.ShowGridEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToInBetweenEditPolicy.js\":\n/*!********************************************************!*\\\n !*** ./src/policy/canvas/SnapToInBetweenEditPolicy.js ***!\n \\********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SnapToInBetweenEditPolicy = _packages2.default.policy.canvas.SnapToEditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToInBetweenEditPolicy\",\n\n SNAP_THRESHOLD: 5,\n FADEOUT_DURATION: 500,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to geometry\r\n *\r\n */\n init: function init(attr, setter, getter) {\n\n this._super(attr, setter, getter);\n\n this.bounds = null;\n\n this.horizontalGuideLines = null;\n this.verticalGuideLines = null;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseUp: function onMouseUp(figure, x, y, shiftKey, ctrlKey) {\n this.bounds = null;\n this.hideHorizontalGuides(false);\n this.hideVerticalGuides(false);\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the canvas neighbours\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n // do nothing for resize handles\n if (figure instanceof _packages2.default.ResizeHandle) {\n return modifiedPos;\n }\n // do nothing for lines\n if (figure instanceof _packages2.default.shape.basic.Line) {\n return modifiedPos;\n }\n\n var allowXChanges = modifiedPos.x === originalPos.x;\n var allowYChanges = modifiedPos.y === originalPos.y;\n\n var inputBounds = new _packages2.default.geo.Rectangle(modifiedPos.x, modifiedPos.y, figure.getWidth(), figure.getHeight());\n\n modifiedPos = modifiedPos.clone();\n\n if (allowXChanges === true) {\n var horizontal = this.snapHorizontal(inputBounds);\n\n // Show a horizontal line if the snapper has modified the inputPoint\n //\n if (horizontal.snapped) {\n // show the snap lines..\n this.showHorizontalGuides(figure, horizontal);\n\n // and snap the x coordinate\n modifiedPos.x += horizontal.diff;\n } else {\n this.hideHorizontalGuides(true);\n }\n } else {\n this.hideHorizontalGuides(true);\n }\n\n if (allowYChanges === true) {\n var vertical = this.snapVertical(inputBounds);\n\n // Show a vertical guides if the snapper has modified the inputPoint\n //\n if (vertical.snapped) {\n // show the snap lines..\n this.showVerticalGuides(figure, vertical);\n\n // and snap the x coordinate\n modifiedPos.y += vertical.diff;\n } else {\n this.hideVerticalGuides(true);\n }\n } else {\n this.hideVerticalGuides(true);\n }\n\n return modifiedPos;\n },\n\n snapHorizontal: function snapHorizontal(boundingBox) {\n var center = boundingBox.getCenter();\n if (this.bounds === null) this.populateBounds();\n\n var result = {\n point: center,\n snapped: false,\n snappedBox: boundingBox.clone()\n };\n\n var intersectionPoint = null;\n\n // Calculate the intersections points p(i) of all left side edges of the bounding boxes\n // and the ray from the center of the drag&drop object to the left edge of the canva\n //\n // BBox of Drag&Drop\n // any Figure Figure\n //\n // ....+ ........\n // | . .\n // . |p(i) . .\n // . X<------------->+ .\n // . | . .\n // ....+ . .\n // ........\n //\n //\n var leftIntersections = [];\n var leftInputPoint = center.clone();\n leftInputPoint.x = 0;\n this.bounds.forEach(function (bbox, index) {\n intersectionPoint = _packages2.default.shape.basic.Line.intersection(bbox.getTopRight(), bbox.getBottomRight(), center, leftInputPoint);\n if (intersectionPoint !== null) {\n intersectionPoint.causedBBox = bbox;\n leftIntersections.push(intersectionPoint);\n }\n });\n // we can abort if we didn't find an intersection on the left hand side\n if (leftIntersections.length === 0) {\n return result;\n }\n\n // sort the intersection point and get the closest point to the tested inputPoint\n // In this case it is the point with the greates X coordinate\n //\n leftIntersections.sort(function (a, b) {\n return b.x - a.x;\n });\n\n // Calculate the intersections points p(i) of all right hand side edges of the\n // bounding boxes and the ray from the center of the drag&drop object to the\n // left edge of the canvas\n //\n // Drag&Drop bbox of any\n // Figure figure\n //\n // ........\n // . .\n // . . ...........\n // . +<-------------->X |\n // . . p(i)| |\n // . . | |\n // ........ | |\n // ...........\n //\n var rightIntersections = [];\n var rightInputPoint = center.clone();\n rightInputPoint.x = Number.MAX_SAFE_INTEGER;\n this.bounds.forEach(function (bbox, index) {\n intersectionPoint = _packages2.default.shape.basic.Line.intersection(bbox.getTopLeft(), bbox.getBottomLeft(), center, rightInputPoint);\n if (intersectionPoint !== null) {\n intersectionPoint.causedBBox = bbox;\n rightIntersections.push(intersectionPoint);\n }\n });\n // we can abort if we didn't find an intersection on the right hand side\n if (rightIntersections.length === 0) {\n return result;\n }\n\n // sort the intersection point and get the closest point to the tested inputPoint\n // In this case it is the point with the greates X coordinate\n //\n rightIntersections.sort(function (a, b) {\n return a.x - b.x;\n });\n\n // Snap the point (S) between the two founded intersections\n // p(i1) and p(i2)\n //\n // BBox FigureA Drag&Drop BBox of FigureB\n // Figure\n //\n // ....+ ........\n // | . .\n // . |p(i1) . S . ...........\n // . X<------------->X<-------------->X |\n // . | . . p(i2)| |\n // ....+ . . | |\n // ........ | |\n // ...........\n //\n var snappedRect = boundingBox.clone();\n var diff = (leftIntersections[0].x + rightIntersections[0].x) / 2 - center.x;\n\n snappedRect.x += diff;\n\n return {\n snapped: Math.abs(diff) < this.SNAP_THRESHOLD,\n snappedRect: snappedRect,\n diff: diff,\n leftSide: leftIntersections[0],\n rightSide: rightIntersections[0]\n };\n },\n\n snapVertical: function snapVertical(boundingBox) {\n var center = boundingBox.getCenter();\n\n if (this.bounds === null) {\n this.populateBounds();\n }\n\n var result = {\n point: center,\n snapped: false,\n snappedBox: boundingBox.clone()\n };\n\n var intersectionPoint = null;\n\n // Calculate the intersections points p(i) of all left side edges of the bounding boxes\n // and the ray from the center of the drag&drop object to the left edge of the canva\n //\n // BBox of Drag&Drop\n // any Figure Figure\n //\n // ....+ ........\n // | . .\n // . |p(i) . .\n // . X<------------->+ .\n // . | . .\n // ....+ . .\n // ........\n //\n //\n var topIntersections = [];\n var topInputPoint = center.clone();\n topInputPoint.y = 0;\n this.bounds.forEach(function (bbox) {\n intersectionPoint = _packages2.default.shape.basic.Line.intersection(bbox.getBottomLeft(), bbox.getBottomRight(), center, topInputPoint);\n if (intersectionPoint !== null) {\n intersectionPoint.causedBBox = bbox;\n topIntersections.push(intersectionPoint);\n }\n });\n // we can abort if we didn't find an intersection on the left hand side\n if (topIntersections.length === 0) {\n return result;\n }\n\n // sort the intersection point and get the closest point to the tested inputPoint\n // In this case it is the point with the greates X coordinate\n //\n topIntersections.sort(function (a, b) {\n return b.y - a.y;\n });\n\n // Calculate the intersections points p(i) of all right hand side edges of the\n // bounding boxes and the ray from the center of the drag&drop object to the\n // left edge of the canvas\n //\n // Drag&Drop bbox of any\n // Figure figure\n //\n // ........\n // . .\n // . . ...........\n // . +<-------------->X |\n // . . p(i)| |\n // . . | |\n // ........ | |\n // ...........\n //\n var bottomIntersections = [];\n var bottomInputPoint = center.clone();\n bottomInputPoint.y = Number.MAX_SAFE_INTEGER;\n this.bounds.forEach(function (bbox) {\n intersectionPoint = _packages2.default.shape.basic.Line.intersection(bbox.getTopLeft(), bbox.getTopRight(), center, bottomInputPoint);\n if (intersectionPoint !== null) {\n intersectionPoint.causedBBox = bbox;\n bottomIntersections.push(intersectionPoint);\n }\n });\n // we can abort if we didn't find an intersection on the right hand side\n if (bottomIntersections.length === 0) {\n return result;\n }\n\n // sort the intersection point and get the closest point to the tested inputPoint\n // In this case it is the point with the greates X coordinate\n //\n bottomIntersections.sort(function (a, b) {\n return a.y - b.y;\n });\n\n // Snap the point (S) between the two founded intersections\n // p(i1) and p(i2)\n //\n // BBox FigureA Drag&Drop BBox of FigureB\n // Figure\n //\n // ....+ ........\n // | . .\n // . |p(i1) . S . ...........\n // . X<------------->X<-------------->X |\n // . | . . p(i2)| |\n // ....+ . . | |\n // ........ | |\n // ...........\n //\n var snappedRect = boundingBox.clone();\n var diff = (topIntersections[0].y + bottomIntersections[0].y) / 2 - center.y;\n\n snappedRect.y += diff;\n\n return {\n snapped: Math.abs(diff) < this.SNAP_THRESHOLD,\n snappedRect: snappedRect,\n diff: diff,\n topSide: topIntersections[0],\n bottomSide: bottomIntersections[0]\n };\n },\n\n populateBounds: function populateBounds() {\n var selection = this.canvas.getSelection().getAll(true);\n var bounds = this.bounds = [];\n\n var figures = this.canvas.getFigures();\n figures.each(function (index, figure) {\n if (!selection.contains(figure)) {\n bounds.push(figure.getBoundingBox());\n }\n });\n },\n\n showHorizontalGuides: function showHorizontalGuides(causedFigure, constraint) {\n if (this.horizontalGuideLines != null) {\n this.horizontalGuideLines.stop();\n this.horizontalGuideLines.remove();\n }\n\n var snapTopLeft = constraint.snappedRect.getTopLeft();\n var snapTopRight = constraint.snappedRect.getTopRight();\n var y = (Math.min(constraint.leftSide.causedBBox.getTopRight().y, Math.min(constraint.rightSide.causedBBox.y, causedFigure.getY())) - 50 | 0) + 0.5;\n\n this.canvas.paper.setStart();\n\n // Vertical lines from left to the right order\n //\n this.canvas.paper.path(\"M \" + ((constraint.leftSide.x | 0) + 0.5) + \" \" + y + \" L \" + ((constraint.leftSide.x | 0) + 0.5) + \" \" + constraint.leftSide.y).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n\n this.canvas.paper.path(\"M \" + ((snapTopLeft.x | 0) + 0.5) + \" \" + y + \" L \" + ((snapTopLeft.x | 0) + 0.5) + \" \" + snapTopLeft.y).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n\n this.canvas.paper.path(\"M \" + ((snapTopRight.x | 0) + 0.5) + \" \" + y + \" L \" + ((snapTopRight.x | 0) + 0.5) + \" \" + snapTopRight.y).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n\n this.canvas.paper.path(\"M \" + ((constraint.rightSide.x | 0) + 0.5) + \" \" + y + \" L \" + ((constraint.rightSide.x | 0) + 0.5) + \" \" + constraint.rightSide.y).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n\n // horizontal lines\n //\n this.canvas.paper.path(\"M \" + constraint.leftSide.x + \" \" + (y + 5) + \" L \" + snapTopLeft.x + \" \" + (y + 5)).attr({\n \"stroke\": this.lineColor.rgba(),\n \"stroke-width\": 1\n });\n this.canvas.paper.path(\"M \" + constraint.rightSide.x + \" \" + (y + 5) + \" L \" + snapTopRight.x + \" \" + (y + 5)).attr({\n \"stroke\": this.lineColor.rgba(),\n \"stroke-width\": 1\n });\n\n // 4 arrow heads starting on the left side and add one by one\n //\n this.canvas.paper.path(\" M \" + (constraint.leftSide.x + 5) + \" \" + y + \" L \" + constraint.leftSide.x + \" \" + (y + 5) + \" L \" + (constraint.leftSide.x + 5) + \" \" + (y + 10)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.canvas.paper.path(\" M \" + (snapTopLeft.x - 5) + \" \" + y + \" L \" + snapTopLeft.x + \" \" + (y + 5) + \" L \" + (snapTopLeft.x - 5) + \" \" + (y + 10)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.canvas.paper.path(\" M \" + (snapTopRight.x + 5) + \" \" + y + \" L \" + snapTopRight.x + \" \" + (y + 5) + \" L \" + (snapTopRight.x + 5) + \" \" + (y + 10)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.canvas.paper.path(\" M \" + (constraint.rightSide.x - 5) + \" \" + y + \" L \" + constraint.rightSide.x + \" \" + (y + 5) + \" L \" + (constraint.rightSide.x - 5) + \" \" + (y + 10)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.horizontalGuideLines = this.canvas.paper.setFinish();\n this.horizontalGuideLines.toFront();\n },\n\n /**\r\n * @method\r\n * Hide the horizontal snaping guides\r\n *\r\n * @param {Boolean} fast\r\n */\n hideHorizontalGuides: function hideHorizontalGuides(fast) {\n var _this = this;\n\n if (this.horizontalGuideLines == null) {\n return;\n }\n\n if (fast === true) {\n if (this.horizontalGuideLines !== null) {\n this.horizontalGuideLines.remove();\n this.horizontalGuideLines = null;\n }\n } else {\n this.horizontalGuideLines.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this.horizontalGuideLines !== null) {\n _this.horizontalGuideLines.remove();\n _this.horizontalGuideLines = null;\n }\n });\n }\n },\n\n showVerticalGuides: function showVerticalGuides(causedFigure, constraint) {\n if (this.verticalGuideLines != null) {\n this.verticalGuideLines.stop();\n this.verticalGuideLines.remove();\n }\n\n var snapTopRight = constraint.snappedRect.getTopRight();\n var snapBottomRight = constraint.snappedRect.getBottomRight();\n var x = (Math.max(constraint.topSide.causedBBox.getRight(), Math.max(constraint.bottomSide.causedBBox.getRight(), causedFigure.getX())) + 40 | 0) + 0.5;\n\n this.canvas.paper.setStart();\n\n // Vertical lines from left to the right order\n //\n this.canvas.paper.path(\"M \" + x + \" \" + ((constraint.topSide.y | 0) + 0.5) + \" L \" + ((constraint.topSide.x | 0) + 0.5) + \" \" + ((constraint.topSide.y | 0) + 0.5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + x + \" \" + ((snapTopRight.y | 0) + 0.5) + \" L \" + ((snapTopRight.x | 0) + 0.5) + \" \" + ((snapTopRight.y | 0) + 0.5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + x + \" \" + ((snapBottomRight.y | 0) + 0.5) + \" L \" + ((snapBottomRight.x | 0) + 0.5) + \" \" + ((snapBottomRight.y | 0) + 0.5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + x + \" \" + ((constraint.bottomSide.y | 0) + 0.5) + \" L \" + ((constraint.bottomSide.x | 0) + 0.5) + \" \" + ((constraint.bottomSide.y | 0) + 0.5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n\n // horizontal lines\n //\n this.canvas.paper.path(\"M \" + (x - 5) + \" \" + ((constraint.topSide.y | 0) + 0.5) + \" L \" + (x - 5) + \" \" + ((snapTopRight.y | 0) + 0.5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n this.canvas.paper.path(\"M \" + (x - 5) + \" \" + ((constraint.bottomSide.y | 0) + 0.5) + \" L \" + (x - 5) + \" \" + ((snapBottomRight.y | 0) + 0.5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n // 4 arrow heads starting on the left side and add one by one\n //\n this.canvas.paper.path(\" M \" + (x - 10) + \" \" + (constraint.topSide.y + 5) + \" L \" + (x - 5) + \" \" + constraint.topSide.y + \" L \" + x + \" \" + (constraint.topSide.y + 5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.canvas.paper.path(\" M \" + (x - 10) + \" \" + (snapTopRight.y - 5) + \" L \" + (x - 5) + \" \" + snapTopRight.y + \" L \" + x + \" \" + (snapTopRight.y - 5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.canvas.paper.path(\" M \" + (x - 10) + \" \" + (snapBottomRight.y + 5) + \" L \" + (x - 5) + \" \" + snapBottomRight.y + \" L \" + x + \" \" + (snapBottomRight.y + 5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.canvas.paper.path(\" M \" + (x - 10) + \" \" + (constraint.bottomSide.y - 5) + \" L \" + (x - 5) + \" \" + constraint.bottomSide.y + \" L \" + x + \" \" + (constraint.bottomSide.y - 5)).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.verticalGuideLines = this.canvas.paper.setFinish();\n this.verticalGuideLines.toFront();\n },\n\n hideVerticalGuides: function hideVerticalGuides() {\n var _this2 = this;\n\n if (this.verticalGuideLines == null) {\n return; //silently\n }\n\n this.verticalGuideLines.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this2.verticalGuideLines !== null) {\n _this2.verticalGuideLines.remove();\n _this2.verticalGuideLines = null;\n }\n });\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.SnapToInBetweenEditPolicy\r\n *\r\n * Snapping is based on the existing children of a container. When snapping a shape,\r\n * the edges of the bounding box will snap to edges of other rectangles generated\r\n * from the children of the given canvas.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.SnapToEditPolicy\r\n * @since 5.6.4\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/SnapToVerticesEditPolicy.js\":\n/*!*******************************************************!*\\\n !*** ./src/policy/canvas/SnapToVerticesEditPolicy.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.canvas.SnapToVerticesEditPolicy = _packages2.default.policy.canvas.SnapToEditPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.SnapToVerticesEditPolicy\",\n\n SNAP_THRESHOLD: 3,\n FADEOUT_DURATION: 300,\n\n /**\r\n * @constructor\r\n * Creates a new constraint policy for snap to geometry\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.constraints = null;\n this.vline = null;\n this.hline = null;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the shape below the mouse or null\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(figure, x, y, shiftKey, ctrlKey) {\n this.constraints = null;\n this.hideVerticalLine();\n this.hideHorizontalLine();\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the canvas neighbours\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the figure to snap\r\n * @param {draw2d.geo.Point} modifiedPos the already modified position of the figure (e.g. from an another Policy)\r\n * @param {draw2d.geo.Point} originalPos the original requested position of the figure\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n snap: function snap(canvas, figure, modifiedPos, originalPos) {\n // can only handle PolyLies at the moment\n //\n if (!(figure instanceof _packages2.default.shape.basic.VertexResizeHandle)) {\n return modifiedPos;\n }\n\n var allowXChanges = modifiedPos.x === originalPos.x;\n var allowYChanges = modifiedPos.y === originalPos.y;\n\n // Coordinates already snapped to an x/y coordinate.\n // Don't change them and in this case no further calculation is required.\n //\n if (!allowXChanges && !allowYChanges) {\n return modifiedPos;\n }\n\n var result = modifiedPos.clone();\n var correction = this.getCorrectionFor(figure, originalPos);\n\n if (allowXChanges && correction.vertical.x !== Number.MAX_SAFE_INTEGER) {\n result.x = correction.vertical.x;\n this.showVerticalLine(originalPos, correction.vertical);\n } else {\n this.hideVerticalLine();\n }\n\n if (allowYChanges && correction.horizontal.y !== Number.MAX_SAFE_INTEGER) {\n result.y = correction.horizontal.y;\n this.showHorizontalLine(originalPos, correction.horizontal);\n } else {\n this.hideHorizontalLine();\n }\n\n return result;\n },\n\n getCorrectionFor: function getCorrectionFor(vertexResizeHandle, point) {\n var _this = this;\n if (this.constraints === null) {\n this.constraints = [];\n\n var lines = this.canvas.getLines();\n lines.each(function (i, line) {\n line.getVertices().each(function (ii, vertex) {\n if (vertexResizeHandle.index !== ii || vertexResizeHandle.owner !== line) _this.constraints.push(vertex);\n });\n });\n }\n\n var SNAP = this.SNAP_THRESHOLD;\n var vertical = { x: Number.MAX_SAFE_INTEGER, y: Number.MAX_SAFE_INTEGER, diffy: Number.MAX_SAFE_INTEGER };\n var horizontal = { x: Number.MAX_SAFE_INTEGER, y: Number.MAX_SAFE_INTEGER, diffx: Number.MAX_SAFE_INTEGER };\n var diffx, diffy;\n\n for (var i = 0; i < this.constraints.length; i++) {\n var entry = this.constraints[i];\n\n diffx = Math.abs(point.x - entry.x);\n diffy = Math.abs(point.y - entry.y);\n // we found a possible candidate for the vertical snap line\n //\n if (diffx < SNAP) {\n if (diffy < vertical.diffy) {\n vertical = { x: entry.x, y: entry.y, diffy: diffy };\n }\n }\n\n if (diffy < SNAP) {\n if (diffx < horizontal.diffx) {\n horizontal = { x: entry.x, y: entry.y, diffx: diffx };\n }\n }\n }\n return { vertical: vertical, horizontal: horizontal };\n },\n\n showVerticalLine: function showVerticalLine(originalPos, snappedPos) {\n if (this.vline != null) {\n this.vline.stop();\n this.vline.remove();\n }\n\n var maxLength = this.canvas.getHeight();\n var x = (snappedPos.x | 0) + 0.5; // force a .5 number to avoid subpixel rendering. Blurry lines...\n this.canvas.paper.setStart();\n this.canvas.paper.path(\"M \" + x + \" 0 l 0 \" + maxLength).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + x + \" \" + originalPos.y + \" L \" + x + \" \" + snappedPos.y).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.vline = this.canvas.paper.setFinish();\n this.vline.toBack();\n },\n\n hideVerticalLine: function hideVerticalLine() {\n var _this2 = this;\n\n if (this.vline == null) {\n return;\n }\n this.vline.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this2.vline !== null) {\n _this2.vline.remove();\n _this2.vline = null;\n }\n });\n },\n\n showHorizontalLine: function showHorizontalLine(originalPos, snappedPos) {\n if (this.hline != null) {\n this.hline.stop();\n this.hline.remove();\n }\n\n var maxLength = this.canvas.getWidth();\n var y = (snappedPos.y | 0) + 0.5; // force a .5 number to avoid subpixel rendering. Blurry lines...\n\n this.canvas.paper.setStart();\n this.canvas.paper.path(\"M 0 \" + y + \" l \" + maxLength + \" 0\").attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1, \"stroke-dasharray\": \". \" });\n this.canvas.paper.path(\"M \" + originalPos.x + \" \" + y + \" L \" + snappedPos.x + \" \" + y).attr({ \"stroke\": this.lineColor.rgba(), \"stroke-width\": 1 });\n\n this.hline = this.canvas.paper.setFinish();\n this.hline.toBack();\n },\n\n hideHorizontalLine: function hideHorizontalLine() {\n var _this3 = this;\n\n if (this.hline === null) {\n return; //silently\n }\n this.hline.animate({ opacity: 0.1 }, this.FADEOUT_DURATION, function () {\n if (_this3.hline !== null) {\n _this3.hline.remove();\n _this3.hline = null;\n }\n });\n }\n\n}); /**\r\n * @class draw2d.policy.canvas.SnapToVerticesEditPolicy\r\n *\r\n * Snapping is based on the existing children of a container. When snapping a shape,\r\n * the edges of the bounding box will snap to edges of other rectangles generated\r\n * from the children of the given canvas.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.SnapToEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/WheelZoomPolicy.js\":\n/*!**********************************************!*\\\n !*** ./src/policy/canvas/WheelZoomPolicy.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _shifty = __webpack_require__(/*! shifty */ \"./node_modules/shifty/dist/shifty.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.policy.canvas.WheelZoomPolicy\r\n * Zoom support for a canvas. Use the mouse wheel and the shift key to zoom in/out.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.installEditPolicy(new draw2d.policy.canvas.WheelZoomPolicy());\r\n * let shape = new draw2d.shape.basic.Text({text:\"Use the mouse wheel + SHIFT to zoom\"});\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n * @since 5.8.0\r\n */\n_packages2.default.policy.canvas.WheelZoomPolicy = _packages2.default.policy.canvas.ZoomPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.WheelZoomPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n var _this = this;\n\n this._super();\n\n this.center = null;\n this.debouncedZoomedCallback = this._debounce(function () {\n var canvas = _this.canvas;\n if (canvas !== null) {\n canvas.fireEvent(\"zoomed\", { value: canvas.zoomFactor });\n }\n _this.center = null;\n }, 200);\n },\n\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n canvas.setZoom(1);\n canvas.__wheelZoom = 1;\n },\n\n onUninstall: function onUninstall(canvas) {\n this._super(canvas);\n\n // cleanup the canvas object and remove custom properties\n //\n delete canvas.__wheelZoom;\n },\n\n /**\r\n * @method\r\n * called if the user uses the mouse wheel.\r\n *\r\n *\r\n * @param wheelDelta\r\n * @param {Number} x the x coordinate of the event\r\n * @param {Number} y the y coordinate of the event\r\n * @param shiftKey\r\n * @param ctrlKey\r\n * @since 5.8.0\r\n * @template\r\n * @return {Boolean} return <b>false</b> to preven tthe default event operation (e.g. scrolling)\r\n */\n onMouseWheel: function onMouseWheel(wheelDelta, x, y, shiftKey, ctrlKey) {\n // mouse wheel is only supported if the user presses the shift key.\n // normally the canvas scrolls during mouseWheel usage.\n //\n if (shiftKey === false) {\n return true;\n }\n\n wheelDelta = wheelDelta / 1024;\n\n var newZoom = (Math.min(5, Math.max(0.1, this.canvas.zoomFactor + wheelDelta)) * 10000 | 0) / 10000;\n if (this.center === null) {\n var client = this.canvas.fromCanvasToDocumentCoordinate(x, y);\n\n this.center = {\n x: x,\n y: y,\n clientX: client.x,\n clientY: client.y\n };\n }\n this._zoom(newZoom, this.center);\n this.debouncedZoomedCallback();\n\n return false;\n },\n\n /**\r\n * @method\r\n * Set the new zoom level of the canvas.\r\n *\r\n * @param zoomFactor\r\n * @param animated\r\n */\n setZoom: function setZoom(zoomFactor, animated) {\n var _this2 = this;\n\n // determine the center of the current canvas. We try to keep the\n // current center during zoom operation\n //\n var scrollTop = this.canvas.getScrollTop();\n var scrollLeft = this.canvas.getScrollLeft();\n var scrollWidth = this.canvas.getScrollArea().width();\n var scrollHeight = this.canvas.getScrollArea().width();\n var centerY = scrollTop + scrollHeight / 2 * this.canvas.zoomFactor;\n var centerX = scrollLeft + scrollWidth / 2 * this.canvas.zoomFactor;\n\n if (animated) {\n var myTweenable = new _shifty.Tweenable();\n myTweenable.tween({\n from: { 'x': this.canvas.zoomFactor },\n to: { 'x': zoomFactor },\n duration: 300,\n easing: \"easeOutSine\",\n step: function step(params) {\n _this2._zoom(params.x, centerX, centerY);\n },\n finish: function finish(state) {\n _this2.debouncedZoomedCallback();\n }\n });\n } else {\n this._zoom(zoomFactor, { x: centerX, y: centerY });\n this.debouncedZoomedCallback();\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {Number} zoom\r\n * @param {draw2d.geo.Point} center\r\n * @private\r\n */\n _zoom: function _zoom(zoom, center) {\n var canvas = this.canvas;\n\n if (zoom === canvas.zoomFactor) {\n return;\n }\n\n canvas.zoomFactor = zoom;\n\n canvas.paper.setViewBox(0, 0, canvas.initialWidth, canvas.initialHeight);\n // Change the width and the height attributes manually through DOM\n // unfortunately the raphaelJS 'setSize' method changes the viewBox as well and this is unwanted in this case\n //\n canvas.html.find(\"svg\").attr({\n 'width': canvas.initialWidth / zoom,\n 'height': canvas.initialHeight / zoom\n });\n\n // try to keep the document position to the given client position\n //\n if (center.clientX) {\n var coordsAfter = canvas.fromCanvasToDocumentCoordinate(center.x, center.y);\n canvas.scrollTo(this.canvas.getScrollTop() - (center.clientY - coordsAfter.y), canvas.getScrollLeft() - (center.clientX - coordsAfter.x));\n }\n\n canvas.fireEvent(\"zoom\", { value: canvas.zoomFactor });\n },\n\n // Returns a function, that, as long as it continues to be invoked, will not\n // be triggered. The function will be called after it stops being called for\n // N milliseconds. If `immediate` is passed, trigger the function on the\n // leading edge, instead of the trailing.\n _debounce: function _debounce(func, wait, immediate) {\n var _this3 = this,\n _arguments = arguments;\n\n var timeout = void 0;\n return function () {\n var context = _this3,\n args = _arguments;\n var later = function later() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n }\n});\n\n/***/ }),\n\n/***/ \"./src/policy/canvas/ZoomPolicy.js\":\n/*!*****************************************!*\\\n !*** ./src/policy/canvas/ZoomPolicy.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _shifty = __webpack_require__(/*! shifty */ \"./node_modules/shifty/dist/shifty.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.policy.canvas.ZoomPolicy\r\n * Generic zoom policy installable into a canvas object.\r\n * This is the legacy implementation of the very first zooming in\r\n * Draw2D. You can use this implementation if you want backward compatible.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.canvas.CanvasPolicy\r\n * @since 5.8.0\r\n */\n_packages2.default.policy.canvas.ZoomPolicy = _packages2.default.policy.canvas.CanvasPolicy.extend({\n\n NAME: \"draw2d.policy.canvas.ZoomPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this._super();\n },\n\n onInstall: function onInstall(canvas) {\n this._super(canvas);\n canvas.setZoom(1);\n },\n\n onUninstall: function onUninstall(canvas) {\n this._super(canvas);\n },\n\n /** @method\r\n * Set the new zoom factor for the canvas. The value must be between [0.01..10]\r\n *\r\n * // you can register an eventhandler to listen to the zoom factor of the canvas.\r\n * //\r\n * canvas.on(\"zoom\", function(emitterFigure, zoomData){\r\n * alert(\"canvas zoomed to:\"+zoomData.factor);\r\n * });\r\n *\r\n * @param {Number} zoomFactor new zoom factor.\r\n * @param {Boolean} [animated] set it to true for smooth zoom in/out\r\n **/\n setZoom: function setZoom(zoomFactor, animated) {\n var canvas = this.canvas;\n\n var _zoom = function _zoom(z) {\n canvas.zoomFactor = Math.min(Math.max(0.01, z), 10);\n\n var viewBoxWidth = canvas.initialWidth * canvas.zoomFactor | 0;\n var viewBoxHeight = canvas.initialHeight * canvas.zoomFactor | 0;\n\n canvas.paper.setViewBox(0, 0, viewBoxWidth, viewBoxHeight);\n\n canvas.fireEvent(\"zoom\", { value: canvas.zoomFactor });\n };\n\n if (animated) {\n var myTweenable = new _shifty.Tweenable();\n myTweenable.tween({\n from: { 'x': canvas.zoomFactor },\n to: { 'x': zoomFactor },\n duration: 300,\n easing: \"easeOutSine\",\n step: function step(params) {\n return _zoom(params.x);\n },\n finish: function finish(state) {\n return canvas.fireEvent(\"zoomed\", { value: canvas.zoomFactor });\n }\n });\n } else {\n _zoom(zoomFactor);\n canvas.fireEvent(\"zoomed\", { value: canvas.zoomFactor });\n }\n }\n});\n\n/***/ }),\n\n/***/ \"./src/policy/connection/ClickConnectionCreatePolicy.js\":\n/*!**************************************************************!*\\\n !*** ./src/policy/connection/ClickConnectionCreatePolicy.js ***!\n \\**************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.connection.ClickConnectionCreatePolicy = _packages2.default.policy.connection.ConnectionCreatePolicy.extend({\n\n NAME: \"draw2d.policy.connection.ClickConnectionCreatePolicy\",\n\n /**\r\n * @constructor\r\n *\r\n * Creates a new connection create policy instance\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.port1 = null;\n this.beeline = null;\n this.pulse = null;\n this.tempConnection = null;\n\n this.vertices = [];\n },\n\n /**\r\n * @method\r\n * Called by the canvas if the user click on a figure.\r\n *\r\n * @param {draw2d.Figure} the figure under the click event. Can be null\r\n * @param {Number} x the x coordinate of the mouse during the click event\r\n * @param {Number} y the y coordinate of the mouse during the click event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @since 6.1.0\r\n */\n onClick: function onClick(figure, x, y, shiftKey, ctrlKey) {\n var _this = this;\n var port = figure;\n\n if (port === null && this.port1 === null) {\n return;\n }\n\n // nothing found at all\n //\n if (port === null) {\n this.vertices.push(new _packages2.default.geo.Point(x, y));\n this.beeline.setStartPosition(x, y);\n this.tempConnection.setVertices(this.vertices);\n if (this.pulse !== null) {\n this.pulse.remove();\n this.pulse = null;\n }\n this.ripple(x, y, 0);\n return;\n }\n\n //just consider ports\n //\n if (!(port instanceof _packages2.default.Port)) {\n return;\n }\n\n // start connection create by selection the start port\n //\n if (this.port1 === null) {\n var canvas = port.getCanvas();\n this.port1 = port;\n this.vertices.push(port.getAbsolutePosition());\n this.beeline = new _packages2.default.shape.basic.Line({\n start: this.port1.getAbsolutePosition(),\n end: this.port1.getAbsolutePosition(),\n dasharray: \"- \",\n color: \"#2C70FF\"\n });\n\n this.beeline.hide = function () {\n _this.beeline.setCanvas(null);\n };\n\n this.beeline.show = function (canvas) {\n _this.beeline.setCanvas(canvas);\n _this.beeline.shape.toFront();\n };\n this.beeline.show(canvas);\n\n this.tempConnection = new _packages2.default.shape.basic.PolyLine({\n start: this.port1.getAbsolutePosition(),\n end: this.port1.getAbsolutePosition(),\n stroke: 2,\n color: \"#2C70FF\"\n });\n\n this.tempConnection.hide = function () {\n _this.tempConnection.setCanvas(null);\n };\n\n this.tempConnection.show = function (canvas) {\n _this.tempConnection.setCanvas(canvas);\n _this.tempConnection.shape.toFront();\n };\n this.tempConnection.show(canvas);\n this.tempConnection.setVertices([this.port1.getAbsolutePosition(), this.port1.getAbsolutePosition()]);\n\n var a = function a() {\n _this.tempConnection.shape.animate({ \"stroke-width\": 2 }, 800, b);\n };\n var b = function b() {\n _this.tempConnection.shape.animate({ \"stroke-width\": 1 }, 800, a);\n };\n a();\n\n var pos = port.getAbsolutePosition();\n this.pulse = this.ripple(pos.x, pos.y, 1);\n return;\n }\n\n var possibleTarget = port.delegateTarget(this.port1);\n\n if (!(possibleTarget instanceof _packages2.default.Port)) {\n return; // silently\n }\n\n var request = new _packages2.default.command.CommandType(_packages2.default.command.CommandType.CONNECT);\n request.source = this.port1;\n request.target = port;\n\n var command = null;\n if (this.port1 instanceof _packages2.default.InputPort) {\n command = this.port1.createCommand(request);\n } else {\n command = port.createCommand(request);\n }\n\n if (command !== null) {\n this.vertices.push(port.getPosition());\n command.setConnection(this.createConnection());\n figure.getCanvas().getCommandStack().execute(command);\n this.beeline.hide();\n this.tempConnection.hide();\n if (this.pulse !== null) {\n this.pulse.remove();\n this.pulse = null;\n }\n this.beeline = null;\n this.port1 = null;\n this.vertices = [];\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseMove: function onMouseMove(canvas, x, y, shiftKey, ctrlKey) {\n if (this.beeline !== null) {\n this.beeline.setEndPosition(x, y);\n }\n },\n\n /**\r\n * @method\r\n * Callback if the user press a key down\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {Number} keyCode the pressed key\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n **/\n onKeyDown: function onKeyDown(canvas, keyCode, shiftKey, ctrlKey) {\n var KEYCODE_ENTER = 13;\n var KEYCODE_ESC = 27;\n if (keyCode === KEYCODE_ESC && this.beeline !== null) {\n this.beeline.hide();\n this.tempConnection.hide();\n this.beeline = null;\n this.port1 = null;\n this.vertices = [];\n if (this.pulse != null) {\n this.pulse.remove();\n this.pulse = null;\n }\n }\n },\n\n createConnection: function createConnection() {\n var connection = this._super();\n if (this.vertices.length === 2) {\n connection.setRouter(new _packages2.default.layout.connection.DirectRouter());\n } else {\n connection.setRouter(new _packages2.default.layout.connection.VertexRouter());\n connection.setVertices(this.vertices);\n }\n connection.setRadius(10);\n return connection;\n }\n\n});\n/**\r\n * @class draw2d.policy.connection.ClickConnectionCreatePolicy\r\n *\r\n * The ClickConnectionCreatePolicy can be installed into the canvas to override the\r\n * default connection crate behaviour. Normally you can create connections by drag&drop a port.\r\n *\r\n * With this policy you can route the connection during creation.\r\n *\r\n * Creates a connection by clicking on a port.\r\n * <ul>\r\n * <li> click on the first port</li>\r\n * <li> click within the canvas to add additional vertices</li>\r\n * <li> click on the target port to draw the connection</li>\r\n * <li> press ESC to abort the operation (didn't work within this JSDoc)</li>\r\n * </ul>\r\n * <br>\r\n * <br>\r\n * <b>The generated connections didn't have any orthogonal constraints nor any other restrictions or guidance.</b>\r\n * <br>\r\n * <br>\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // Override the default connection creation.\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.ClickConnectionCreatePolicy());\r\n *\r\n * // create and add two Node which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start({x:50, y:50});\r\n * var endNode = new draw2d.shape.node.End({x:200, y:70});\r\n *\r\n * // add the two nodes to the canvas\r\n * //\r\n * canvas.add( start);\r\n * canvas.add( endNode);\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.connection.ConnectionCreatePolicy\r\n * @since 6.1.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/connection/ComposedConnectionCreatePolicy.js\":\n/*!*****************************************************************!*\\\n !*** ./src/policy/connection/ComposedConnectionCreatePolicy.js ***!\n \\*****************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.connection.ComposedConnectionCreatePolicy = _packages2.default.policy.connection.ConnectionCreatePolicy.extend({\n\n NAME: \"draw2d.policy.connection.ComposedConnectionCreatePolicy\",\n\n /**\r\n * @constructor\r\n *\r\n * Creates a new connection create policy instance\r\n *\r\n * @param {array} policies the policies to use\r\n */\n init: function init(policies) {\n this.policies = policies;\n this._super();\n },\n\n onMouseDown: function onMouseDown() {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onMouseDown.apply(p, _arg);\n });\n },\n onMouseDrag: function onMouseDrag() {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onMouseDrag.apply(p, _arg);\n });\n },\n\n onMouseUp: function onMouseUp() {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onMouseUp.apply(p, _arg);\n });\n },\n\n onClick: function onClick() {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onClick.apply(p, _arg);\n });\n },\n onMouseMove: function onMouseMove() {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onMouseMove.apply(p, _arg);\n });\n },\n\n /**\r\n * @inheritDoc\r\n **/\n onKeyUp: function onKeyUp(canvas, keyCode, shiftKey, ctrlKey) {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onKeyUp.apply(p, _arg);\n });\n },\n\n /**\r\n * @inheritDoc\r\n **/\n onKeyDown: function onKeyDown(canvas, keyCode, shiftKey, ctrlKey) {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onKeyDown.apply(p, _arg);\n });\n },\n\n /**\r\n * @method\r\n * Called if the policy is installed into the canvas.\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n */\n onInstall: function onInstall(canvas) {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onInstall.apply(p, _arg);\n });\n },\n\n /**\r\n * @method\r\n * Called if the policy is deinstalled from the canvas\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n */\n onUninstall: function onUninstall(canvas) {\n var _arg = arguments;\n this.policies.forEach(function (p) {\n p.onUninstall.apply(p, _arg);\n });\n }\n\n});\n/**\r\n * @class draw2d.policy.connection.ComposedConnectionCreatePolicy\r\n * A composed connection create policy. Use this to install more than one\r\n * ConnectionCreatePolicy into the canvas. Normally it is not allowed to install\r\n * more than one policy from the same type.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.connection.ConnectionCreatePolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/connection/ConnectionCreatePolicy.js\":\n/*!*********************************************************!*\\\n !*** ./src/policy/connection/ConnectionCreatePolicy.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.connection.ConnectionCreatePolicy = _packages2.default.policy.canvas.KeyboardPolicy.extend({\n\n NAME: \"draw2d.policy.connection.ConnectionCreatePolicy\",\n\n /**\r\n * @constructor\r\n *\r\n * Creates a new connection create policy instance\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Factory method to create the connection to insert.\r\n *\r\n * @return {draw2d.Connection}\r\n * @template\r\n */\n createConnection: function createConnection() {\n return new _packages2.default.Connection({\n router: new _packages2.default.layout.connection.DirectRouter()\n });\n },\n\n ripple: function ripple(x, y, type) {\n switch (type) {\n case 0:\n var circle = this.canvas.paper.circle(x, y, 3, 3).attr({ fill: null, stroke: \"#d0d0ff\" });\n var anim = Raphael.animation({ transform: \"s6\", opacity: 0.0, \"stroke-width\": 3 }, 500, \"linear\", function () {\n circle.remove();\n });\n circle.animate(anim);\n // return an emmpty raphael.set. The circle removes itself after animation is done\n //\n return this.canvas.paper.set();\n break;\n case 1:\n var circle1 = this.canvas.paper.circle(x, y, 3, 3).attr({ fill: null, stroke: \"#3f72bf\" });\n var circle2 = this.canvas.paper.circle(x, y, 3, 3).attr({ fill: null, stroke: \"#ff0000\" });\n var anim1 = Raphael.animation({ transform: \"s6\", opacity: 0.0, \"stroke-width\": 1 }, 1200, \"linear\").repeat(Infinity);\n circle1.animate(anim1);\n var anim2 = Raphael.animation({ transform: \"s12\", opacity: 0.0, \"stroke-width\": 4 }, 500, \"linear\", function () {\n circle2.remove();\n });\n circle2.animate(anim2);\n\n // return the \"circle1\". This shape must be remove by the caller\n // \"circle2\" is removed automaticly\n //\n return circle1;\n break;\n }\n }\n\n});\n/**\r\n * @class draw2d.policy.connection.ConnectionCreatePolicy\r\n * Base class for connection creation by user interaction.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.canvas.KeyboardPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/connection/DragConnectionCreatePolicy.js\":\n/*!*************************************************************!*\\\n !*** ./src/policy/connection/DragConnectionCreatePolicy.js ***!\n \\*************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.connection.DragConnectionCreatePolicy = _packages2.default.policy.connection.ConnectionCreatePolicy.extend({\n\n NAME: \"draw2d.policy.connection.DragConnectionCreatePolicy\",\n\n /**\r\n * @constructor\r\n *\r\n * Creates a new connection create policy instance\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.mouseDraggingElement = null;\n this.currentDropTarget = null;\n this.currentTarget = null;\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseDown: function onMouseDown(canvas, x, y, shiftKey, ctrlKey) {\n //just consider ports\n //\n var port = canvas.getBestFigure(x, y);\n\n // nothing found at all\n //\n if (port === null) {\n return;\n }\n\n // may there is a resize handle below the port or another figure\n // in this case the ResizeHandle has prio. and handled by another\n // Policy\n if (!(port instanceof _packages2.default.Port)) {\n return;\n }\n\n // this can happen if the user release the mouse button outside the window during a drag&drop\n // operation. In this case we must fire the \"onDragEnd\" event postpond.\n //\n if (port.isInDragDrop === true) {\n port.onDragEnd(x, y, shiftKey, ctrlKey);\n port.isInDragDrop = false;\n }\n\n // introspect the port only if it is draggable at all\n //\n if (port.isDraggable()) {\n var canDragStart = port.onDragStart(x - port.getAbsoluteX(), y - port.getAbsoluteY(), shiftKey, ctrlKey);\n if (canDragStart) {\n port.fireEvent(\"dragstart\", { x: x - port.getAbsoluteX(), y: y - port.getAbsoluteY(), shiftKey: shiftKey, ctrlKey: ctrlKey });\n }\n\n // Element send a veto about the drag&drop operation\n this.mouseDraggingElement = canDragStart === false ? null : port;\n this.mouseDownElement = port;\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} dx The x diff between start of dragging and this event\r\n * @param {Number} dy The y diff between start of dragging and this event\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @template\r\n */\n onMouseDrag: function onMouseDrag(canvas, dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n try {\n if (this.mouseDraggingElement !== null) {\n var de = this.mouseDraggingElement;\n var ct = this.currentTarget;\n\n de.isInDragDrop = true;\n de.onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey);\n\n var target = canvas.getBestFigure(de.getAbsoluteX(), de.getAbsoluteY(), de);\n\n // the hovering element has been changed\n if (target !== ct) {\n if (ct !== null) {\n ct.onDragLeave(de);\n ct.fireEvent(\"dragLeave\", { draggingElement: de });\n de.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.port.PortFeedbackPolicy) {\n e.onHoverLeave(canvas, de, ct);\n }\n });\n }\n\n // possible hoverEnter event\n //\n if (target !== null) {\n this.currentTarget = ct = target.delegateTarget(de);\n if (ct !== null) {\n ct.onDragEnter(de); // legacy\n ct.fireEvent(\"dragEnter\", { draggingElement: de });\n de.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.port.PortFeedbackPolicy) {\n e.onHoverEnter(canvas, de, ct);\n }\n });\n }\n } else {\n this.currentTarget = null;\n }\n }\n\n var p = canvas.fromDocumentToCanvasCoordinate(canvas.mouseDownX + dx / canvas.zoomFactor, canvas.mouseDownY + dy / canvas.zoomFactor);\n var target = canvas.getBestFigure(p.x, p.y, this.mouseDraggingElement);\n\n if (target !== this.currentDropTarget) {\n if (this.currentDropTarget !== null) {\n this.currentDropTarget.onDragLeave(this.mouseDraggingElement);\n this.currentDropTarget.fireEvent(\"dragLeave\", { draggingElement: this.mouseDraggingElement });\n this.currentDropTarget = null;\n }\n if (target !== null) {\n this.currentDropTarget = target.delegateTarget(this.mouseDraggingElement);\n // inform all listener that the element has accept the dragEnter event\n //\n if (this.currentDropTarget !== null) {\n this.currentDropTarget.onDragEnter(this.mouseDraggingElement); // legacy\n this.currentDropTarget.fireEvent(\"dragEnter\", { draggingElement: this.mouseDraggingElement });\n }\n }\n }\n }\n } catch (exc) {\n console.log(exc);\n debugger;\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the shape below the mouse or null\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onMouseUp: function onMouseUp(canvas, x, y, shiftKey, ctrlKey) {\n if (this.mouseDraggingElement !== null) {\n\n var de = this.mouseDraggingElement;\n var ct = this.currentTarget;\n // start CommandStack transaction\n canvas.getCommandStack().startTransaction();\n\n de.onDragEnd(x, y, shiftKey, ctrlKey);\n // notify all installed policies\n //\n if (ct) {\n de.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.port.PortFeedbackPolicy) {\n e.onHoverLeave(canvas, de, ct);\n }\n });\n }\n\n de.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.onDragEnd(canvas, de, x, y, shiftKey, ctrlKey);\n }\n });\n\n // Reset the drag&drop flyover information\n //\n this.currentTarget = null;\n de.isInDragDrop = false;\n\n // fire an event\n // @since 5.3.3\n de.fireEvent(\"dragend\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n // check if we drop the port onto a valid\n // drop target and create a connection if possible\n //\n if (this.currentDropTarget !== null) {\n this.mouseDraggingElement.onDrop(this.currentDropTarget, x, y, shiftKey, ctrlKey);\n\n this.currentDropTarget.onDragLeave(this.mouseDraggingElement);\n this.currentDropTarget.fireEvent(\"dragLeave\", { draggingElement: this.mouseDraggingElement });\n\n // Ports accepts only Ports as DropTarget\n //\n if (this.currentDropTarget instanceof _packages2.default.Port) {\n var request = new _packages2.default.command.CommandType(_packages2.default.command.CommandType.CONNECT);\n request.source = this.currentDropTarget;\n request.target = this.mouseDraggingElement;\n var command = this.mouseDraggingElement.createCommand(request);\n\n if (command !== null) {\n command.setConnection(this.createConnection());\n canvas.getCommandStack().execute(command);\n this.currentDropTarget.onCatch(this.mouseDraggingElement, x, y, shiftKey, ctrlKey);\n }\n }\n }\n\n // end command stack trans\n canvas.getCommandStack().commitTransaction();\n this.currentDropTarget = null;\n this.mouseDraggingElement = null;\n }\n },\n\n createConnection: function createConnection() {\n var connection = this._super();\n connection.setRouter(new _packages2.default.layout.connection.DirectRouter());\n\n return connection;\n }\n\n});\n/**\r\n * @class draw2d.policy.connection.DragConnectionCreatePolicy\r\n *\r\n * The DragConnectionCreatePolicy is the default configuration for connection creation.\r\n * You must drag a port and drop them onto another port to create connection.\r\n *\r\n * Creates a connection by drag&drop on a port.\r\n * <ul>\r\n * <li> click on the first port</li>\r\n * <li> drag it to the target port</li>\r\n * <li> drop it onto the target</li>\r\n * </ul>\r\n * <br>\r\n * <br>\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // Override the default connection creation.\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.DragConnectionCreatePolicy());\r\n *\r\n * // create and add two Node which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start({x:50, y:50});\r\n * var endNode = new draw2d.shape.node.End({x:200, y:70});\r\n *\r\n * // add the two nodes to the canvas\r\n * //\r\n * canvas.add( start);\r\n * canvas.add( endNode);\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.connection.ConnectionCreatePolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/connection/OrthogonalConnectionCreatePolicy.js\":\n/*!*******************************************************************!*\\\n !*** ./src/policy/connection/OrthogonalConnectionCreatePolicy.js ***!\n \\*******************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.connection.OrthogonalConnectionCreatePolicy = _packages2.default.policy.connection.ConnectionCreatePolicy.extend({\n\n NAME: \"draw2d.policy.connection.ClickConnectionCreatePolicy\",\n\n /**\r\n * @constructor\r\n *\r\n * Creates a new connection create policy instance\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.port1 = null;\n this.beeline = null;\n this.pulse = null;\n this.tempConnection = null;\n\n this.vertices = new _packages2.default.util.ArrayList();\n },\n\n /**\r\n * @method\r\n * Called by the canvas if the user click on a figure.\r\n *\r\n * @param {draw2d.Figure} the figure under the click event. Can be null\r\n * @param {Number} x the x coordinate of the mouse during the click event\r\n * @param {Number} y the y coordinate of the mouse during the click event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @since 6.1.0\r\n *\r\n * @template\r\n */\n onClick: function onClick(figure, x, y, shiftKey, ctrlKey) {\n var UP = _packages2.default.geo.Rectangle.DIRECTION_UP;\n var RIGHT = _packages2.default.geo.Rectangle.DIRECTION_RIGHT;\n var DOWN = _packages2.default.geo.Rectangle.DIRECTION_DOWN;\n var LEFT = _packages2.default.geo.Rectangle.DIRECTION_LEFT;\n\n var _this = this;\n var port = figure; // .getCanvas().getBestFigure(x, y);\n\n // nothing to do\n if (port === null && this.port1 === null) {\n return;\n }\n\n // nothing found at all\n //\n if (port === null) {\n var canvas = this.port1.getCanvas();\n var newPos = this.beeline.getEndPosition();\n this.vertices.add(newPos);\n this.beeline.setStartPosition(this.beeline.getEndPosition());\n this.tempConnection.setVertices(this.vertices);\n if (this.pulse !== null) {\n this.pulse.remove();\n this.pulse = null;\n }\n this.ripple(newPos.x, newPos.y, 0);\n return;\n }\n\n // we just considering ports\n //\n if (!(port instanceof _packages2.default.Port)) {\n return;\n }\n\n // start connection create by selection the start port\n //\n if (this.port1 === null) {\n var canvas = port.getCanvas();\n this.port1 = port;\n this.vertices.add(port.getAbsolutePosition());\n this.beeline = new _packages2.default.shape.basic.Line({\n start: this.port1.getAbsolutePosition(),\n end: this.port1.getAbsolutePosition(),\n dasharray: \"- \",\n color: \"#2C70FF\"\n });\n\n this.beeline.hide = function () {\n _this.beeline.setCanvas(null);\n };\n\n this.beeline.show = function (canvas) {\n _this.beeline.setCanvas(canvas);\n _this.beeline.shape.toFront();\n };\n this.beeline.show(canvas);\n\n this.tempConnection = new _packages2.default.shape.basic.PolyLine({\n start: this.port1.getAbsolutePosition(),\n end: this.port1.getAbsolutePosition(),\n stroke: 2,\n color: \"#2C70FF\"\n });\n\n this.tempConnection.hide = function () {\n _this.tempConnection.setCanvas(null);\n };\n\n this.tempConnection.show = function (canvas) {\n _this.tempConnection.setCanvas(canvas);\n _this.tempConnection.shape.toFront();\n };\n this.tempConnection.show(canvas);\n this.tempConnection.setVertices([this.port1.getAbsolutePosition(), this.port1.getAbsolutePosition()]);\n\n var a = function a() {\n _this.tempConnection.shape.animate({ \"stroke-width\": 2 }, 800, b);\n };\n var b = function b() {\n _this.tempConnection.shape.animate({ \"stroke-width\": 1 }, 800, a);\n };\n a();\n\n canvas.paper.setStart();\n\n // delete the previews puls if the user press twice on the starting port\n //\n if (this.pulse !== null) {\n this.pulse.remove();\n this.pulse = null;\n }\n\n var pos = port.getAbsolutePosition();\n this.ripple(pos.x, pos.y, 1);\n this.pulse = canvas.paper.setFinish();\n } else {\n var possibleTarget = port.delegateTarget(this.port1);\n\n if (!(possibleTarget instanceof _packages2.default.Port)) {\n return; // silently\n }\n\n // check whenever the target port allows a connection\n //\n var request = new _packages2.default.command.CommandType(_packages2.default.command.CommandType.CONNECT);\n request.source = this.port1;\n request.target = port;\n var command = null;\n if (this.port1 instanceof _packages2.default.InputPort) {\n command = this.port1.createCommand(request);\n } else {\n command = port.createCommand(request);\n }\n\n if (command !== null) {\n var connection = this.createConnection();\n command.setConnection(connection);\n port.getCanvas().getCommandStack().execute(command);\n\n this.beeline.hide();\n this.tempConnection.hide();\n if (this.pulse !== null) {\n this.pulse.remove();\n this.pulse = null;\n }\n this.beeline = null;\n this.port1 = null;\n\n // use the default routing if the user didn't add some\n // vertices\n if (this.vertices.getSize() <= 2) {\n return;\n }\n\n var MINDIST = command.getConnection().getRouter().MINDIST;\n var beforeVertex = this.vertices.get(this.vertices.getSize() - 2);\n var lastVertex = this.vertices.last();\n var portPos = port.getAbsolutePosition();\n var lastSegmentDir = UP;\n if (lastVertex.x === beforeVertex.x) {\n lastSegmentDir = lastVertex.y < beforeVertex.y ? UP : DOWN;\n } else {\n lastSegmentDir = lastVertex.x < beforeVertex.x ? LEFT : RIGHT;\n }\n\n // CALCULATE THE LAST MILE OF THE CONNECTION\n //\n // ensure that we have a valid \"manhattan style\" connection.\n // We must add or adjust some points or segments.\n //\n // The code below creates and adjust the points in that way that the\n // DOTTED line is the calculated part to the user defined vertices.\n // ==================================\n //\n switch (port.getConnectionDirection(this.port1)) {\n case UP:\n switch (lastSegmentDir) {\n case UP:\n // o..................o lastVertex\n // | . |\n // | . |\n // | +----O----+ |\n // ------o | portPos | o------------\n // | | beforeVertex\n // +---------+\n //\n if (lastVertex.y < portPos.y - MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, lastVertex.y));\n this.vertices.add(portPos);\n }\n // ...................\n // . . .\n // . +----O----+ .\n // o | portPos | o lastVertex\n // | | | |\n // | +---------+ |\n // -------o o------------\n // beforeVertex\n //\n else {\n lastVertex.y = portPos.y - MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, lastVertex.y));\n this.vertices.add(portPos);\n }\n break;\n case RIGHT:\n // ..............................\n // . . .\n // . . .\n // o------->o +----O----+ o---------------->O\n // | | portPos | | beforeVertex lastVertex\n // | | | |\n // | +---------+\n if (lastVertex.y > portPos.y - MINDIST) {\n beforeVertex.y = portPos.y - MINDIST;\n lastVertex.x = portPos.x;\n lastVertex.y = beforeVertex.y;\n this.vertices.add(portPos);\n }\n //\n // beforeVertex lastVertex\n // o---------->o..................o------------->O\n // | . |\n // | +----O----+ |\n // | | portPos | |\n // | | | |\n // +---------+\n else {\n lastVertex.x = portPos.x;\n this.vertices.add(portPos);\n }\n break;\n case DOWN:\n // beforeVertex\n // ------o..................o------------\n // | . |\n // | . |\n // V +----O----+ V\n // o | portPos | o lastVertex\n // | |\n // +---------+\n //\n if (lastVertex.y < portPos.y - MINDIST) {\n beforeVertex.x = portPos.x;\n lastVertex.setPosition(portPos);\n }\n // ...................\n // . . .\n // . +----O----+ . beforeVertex\n // -------o | portPos | o------------\n // | | | |\n // V +---------+ V\n // o o\n // lastVertex\n //\n else {\n lastVertex.y = portPos.y - MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, lastVertex.y));\n this.vertices.add(portPos);\n }\n break;\n case LEFT:\n // ..................................\n // . . .\n // . . .\n // o<--------o +----O----+ o<-------------O beforeVertex\n // | | portPos | lastVertex |\n // | | | |\n // +---------+\n if (lastVertex.y > portPos.y - MINDIST) {\n beforeVertex.y = portPos.y - MINDIST;\n lastVertex.x = portPos.x;\n lastVertex.y = beforeVertex.y;\n this.vertices.add(portPos);\n }\n // | |\n // | |\n // o<--------o................o<-------------O\n // . lastVertex beforeVertex\n // +----O----+\n // | portPos |\n // | |\n // +---------+\n else {\n lastVertex.x = portPos.x;\n this.vertices.add(portPos);\n }\n break;\n }\n break;\n case RIGHT:\n switch (lastSegmentDir) {\n case UP:\n // o lastVertex\n // |\n // |\n // ------------------o beforeVertex\n // .\n // +----------+ .\n // | | .\n // | portPos O.......\n // | | .\n // +----------+ .\n // o lastVertex\n // |\n // |\n // -----------------o beforeVertex\n //\n if (lastVertex.x > portPos.x + MINDIST) {\n lastVertex.y = portPos.y;\n this.vertices.add(portPos);\n }\n // lastVertex\n // o...............\n // | .\n // | .\n // ----o beforeVertex .\n // .\n // +----------+ .\n // | | .\n // | portPos O........\n // | | .\n // +----------+ .\n // o...............\n // | lastVertex\n // |\n //------o\n // beforeVertex\n //\n //\n else {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x + MINDIST, lastVertex.y));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x + MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n case RIGHT:\n // beforeVertex lastVertex\n // o-------------->o\n // .\n // +----------+ .\n // | | .\n // | portPos O.......\n // | | .\n // +----------+ .\n // .\n // o-------------->o\n // beforeVertex lastVertex\n //\n if (lastVertex.x > portPos.x + MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n // beforeVertex lastVertex\n // o------------>o.........\n // .\n // +----------+ .\n // | | .\n // | portPos O.......\n // | | .\n // +----------+ .\n // .\n // o----------->o..........\n // beforeVertex lastVertex\n //\n else {\n lastVertex.x = portPos.x + MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n case DOWN:\n // ----------------o beforeVertex\n // |\n // |\n // o lastVertex\n // .\n // +----------+ .\n // | | .\n // | portPos O.......\n // | | .\n // +----------+ .\n // .\n // --------------o beforeVertex\n // |\n // |\n // o lastVertex\n //\n if (lastVertex.x > portPos.x + MINDIST) {\n lastVertex.y = portPos.y;\n this.vertices.add(portPos);\n }\n // -----o beforeVertex\n // |\n // | lastVertex\n // o...........\n // .\n // +----------+ .\n // | | .\n // | portPos O.......\n // | | .\n // +----------+ .\n // .\n // ----o beforeVertex .\n // | .\n // | lastVertex .\n // o...............\n //\n else {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x + MINDIST, lastVertex.y));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x + MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n case LEFT:\n // lastVertex beforeVertex\n // o<--------------o\n // .\n // +----------+ .\n // | | .\n // | portPos O..\n // | | .\n // +----------+ .\n // .\n // o<--------------o\n // lastVertex beforeVertex\n //\n if (lastVertex.x > portPos.x + MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n // lastVertex beforeVertex\n // o<-----------------------o\n // .\n // +----------+ .\n // | | .\n // | portPos O....\n // | | .\n // +----------+ .\n // .\n // o<----------------------o\n // lastVertex beforeVertex\n //\n else {\n lastVertex.x = portPos.x + MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n }\n break;\n case DOWN:\n switch (lastSegmentDir) {\n case UP:\n // o o lastVertex\n // | |\n // | |\n // | +---------+ |\n // ------o | | o------------\n // . | portPos | . beforeVertex\n // . +----O----+ .\n // . . .\n // ....................\n //\n if (lastVertex.y < portPos.y + MINDIST) {\n lastVertex.y = portPos.y + MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, lastVertex.y));\n this.vertices.add(portPos);\n }\n // +---------+\n // | |\n // | portPos |\n // +----O----+\n // .\n // o.................o lastVertex\n // | |\n // | |\n // -------o o------------\n // beforeVertex\n //\n else {\n lastVertex.x = portPos.x;\n lastVertex.y = portPos.y;\n beforeVertex.x = portPos.x;\n }\n break;\n case RIGHT:\n // +---------+\n // | |\n // | portPos |\n // o------->o +----O----+ o--------------->O\n // | . . | beforeVertex . lastVertex\n // | .....................|.................\n // |\n //\n //\n if (lastVertex.y < portPos.y + MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y + MINDIST));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, portPos.y + MINDIST));\n this.vertices.add(portPos);\n }\n // +---------+\n // | |\n // | portPos |\n // +----O----+\n // .\n // ...................................\n // . beforeVertex . lastVertex\n // o---------->o o------------->O\n // | |\n // | |\n //\n else {\n lastVertex.x = portPos.x;\n this.vertices.add(portPos);\n }\n break;\n case DOWN:\n // beforeVertex\n // ------o o------------\n // | |\n // | |\n // V +---------+ V\n // o | | o lastVertex\n // . | portPos | .\n // . +----O----+ .\n // . . .\n // ....................\n //\n if (lastVertex.y < portPos.y + MINDIST) {\n lastVertex.y = portPos.y + MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, lastVertex.y));\n this.vertices.add(portPos);\n }\n //\n // +---------+ beforeVertex\n // -------o | portPos | o------------\n // | | | |\n // V +----O----+ V\n // o . o\n // .................. lastVertex\n //\n else {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x, lastVertex.y));\n this.vertices.add(portPos);\n }\n break;\n case LEFT:\n //\n // o<--------o +---------+ o<-------------O beforeVertex\n // . | | | . lastVertex |\n // . | | portPos | . |\n // . +----O----+ .\n // . . .\n // ..............................\n //\n if (lastVertex.y < portPos.y - MINDIST) {\n beforeVertex.y = portPos.y - MINDIST;\n lastVertex.x = portPos.x;\n lastVertex.y = beforeVertex.y;\n this.vertices.add(portPos);\n }\n //\n // +---------+\n // | | | |\n // | | portPos | |\n // | +----O----+ |\n // | . |\n // o<--------o...................o<---------o\n //\n else {\n lastVertex.x = portPos.x;\n this.vertices.add(portPos);\n }\n break;\n }\n break;\n case LEFT:\n switch (lastSegmentDir) {\n case UP:\n // ................o lastVertex\n // . |\n // . |\n // --.---------------o beforeVertex\n // .\n // . +----------+\n // . | |\n // ....o portPos |\n // . | |\n // . +----------+\n // .\n // ................o lastVertex\n // |\n // |\n // -----------------o beforeVertex\n //\n if (lastVertex.x >= portPos.x - MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, lastVertex.y));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n //\n // +----------+\n // | |\n // ......o portPos |\n // . | |\n // . +----------+\n // o\n // | lastVertex\n // |\n //------o\n // beforeVertex\n //\n //\n else if (lastVertex.y > portPos.y && lastVertex.x < portPos.x - MINDIST) {\n lastVertex.y = portPos.y;\n this.vertices.add(portPos);\n }\n // lastVertex\n // o..\n // | .\n // | .\n // ----o . beforeVertex\n // .\n // . +----------+\n // . | |\n // ....o portPos |\n // | |\n // +----------+\n //\n else {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, lastVertex.y));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n case RIGHT:\n // beforeVertex lastVertex\n // o-------------->o\n // .\n // ....................\n // .\n // . +----------+\n // . | |\n // .......o portPos |\n // | |\n // +----------+\n //\n if (lastVertex.y < portPos.y && lastVertex.x > portPos.x - MINDIST) {\n var center = portPos.y - (portPos.y - lastVertex.y) / 2;\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, center));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, center));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n // +----------+\n // | |\n // .......o portPos |\n // . | |\n // . +----------+\n // .\n // ....................\n // .\n // o-------------->o\n // beforeVertex lastVertex\n //\n else if (lastVertex.y > portPos.y && lastVertex.x > portPos.x - MINDIST) {\n var center = portPos.y + (lastVertex.y - portPos.y) / 2;\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, center));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, center));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n // beforeVertex lastVertex\n // o------------>o\n // .\n // . +----------+\n // . | |\n // ....o portPos |\n // . | |\n // . +----------+\n // .\n // o----------->o\n // beforeVertex lastVertex\n //\n else {\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n case DOWN:\n // -----------o beforeVertex\n // |\n // |\n // V\n // ................o lastVertex\n // .\n // . +----------+\n // . | |\n // ........o portPos |\n // . | |\n // . +----------+\n // .\n // . --------o beforeVertex\n // . |\n // . |\n // . V\n // .................o lastVertex\n //\n if (lastVertex.x >= portPos.x - MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, lastVertex.y));\n this.vertices.add(new _packages2.default.geo.Point(portPos.x - MINDIST, portPos.y));\n this.vertices.add(portPos);\n }\n // -----o beforeVertex\n // |\n // |\n // o lastVertex\n // .\n // . +----------+\n // . | |\n // ........o portPos |\n // . | |\n // . +----------+\n // beforeVertex.\n // ------------o\n // |\n // |\n // lastVertex o\n //\n else {\n lastVertex.y = portPos.y;\n this.vertices.add(portPos);\n }\n break;\n case LEFT:\n // lastVertex beforeVertex\n // o<--------------o\n // .\n // . +----------+\n // . | |\n // ....... o portPos |\n // . | |\n // . +----------+\n // .\n // o<--------------o\n // lastVertex beforeVertex\n //\n if (lastVertex.x < portPos.x - MINDIST) {\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n // lastVertex beforeVertex\n // .......o<-----------------------o\n // .\n // . +----------+\n // . | |\n // .....o portPos |\n // . | |\n // . +----------+\n // .\n // ........o<----------------------o\n // lastVertex beforeVertex\n //\n else {\n lastVertex.x = portPos.x - MINDIST;\n this.vertices.add(new _packages2.default.geo.Point(lastVertex.x, portPos.y));\n this.vertices.add(portPos);\n }\n break;\n }\n break;\n }\n\n if (this.vertices.getSize() > 3) {\n connection._routingMetaData.routedByUserInteraction = true;\n connection.setVertices(this.vertices);\n }\n this.vertices.clear();\n }\n }\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onMouseMove: function onMouseMove(canvas, x, y, shiftKey, ctrlKey) {\n if (this.beeline !== null) {\n this.beeline.setEndPosition(this.orthogonal(this.vertices.last(), { x: x, y: y }));\n }\n },\n\n /**\r\n * @method\r\n * Callback if the user press a key down\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {Number} keyCode the pressed key\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onKeyDown: function onKeyDown(canvas, keyCode, shiftKey, ctrlKey) {\n var KEYCODE_ENTER = 13;\n var KEYCODE_ESC = 27;\n if (keyCode === KEYCODE_ESC && this.beeline !== null) {\n this.beeline.hide();\n this.tempConnection.hide();\n this.beeline = null;\n this.port1 = null;\n this.vertices.clear();\n if (this.pulse != null) {\n this.pulse.remove();\n this.pulse = null;\n }\n }\n },\n\n orthogonal: function orthogonal(anchor, p) {\n // calculate vertical line distance\n //\n var xDiff = Math.abs(anchor.x - p.x) + 10;\n var xDist = _packages2.default.geo.Line.distance(anchor.x - xDiff, anchor.y, anchor.x + xDiff, anchor.y, p.x, p.y);\n\n // calculate horizontal line distance\n //\n var yDiff = Math.abs(anchor.y - p.y) + 10;\n var yDist = _packages2.default.geo.Line.distance(anchor.x, anchor.y - yDiff, anchor.x, anchor.y + yDiff, p.x, p.y);\n\n return yDist > xDist ? { x: p.x, y: anchor.y } : { x: anchor.x, y: p.y };\n },\n\n createConnection: function createConnection() {\n var connection = this._super();\n connection.attr({ radius: 7, stroke: 3 });\n connection.setRouter(new _packages2.default.layout.connection.InteractiveManhattanConnectionRouter());\n return connection;\n }\n\n});\n/**\r\n * @class draw2d.policy.connection.OrthogonalConnectionCreatePolicy\r\n *\r\n * The OrthogonalConnectionCreatePolicy can be installed into the canvas to override the\r\n * default connection crate behaviour. Normaly you can create connections by drag&drop a port.\r\n *\r\n * With this policy you can route the connection during creation.\r\n *\r\n * Creates a connection by clicking on a port.\r\n * <ul>\r\n * <li> click on the first port</li>\r\n * <li> click within the canvas to add additional vertices</li>\r\n * <li> click on the target port to draw the connection</li>\r\n * <li> press ESC to abort the operation (didn't work within this JSDoc)</li>\r\n * </ul>\r\n * <br>\r\n * <br>\r\n * <b>The generated connection has always perpendicular segments.</b>\r\n * <br>\r\n * <br>\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // Override the default connection creation.\r\n * //\r\n * canvas.installEditPolicy( new draw2d.policy.connection.OrthogonalConnectionCreatePolicy());\r\n *\r\n * // create and add two Node which contains Ports (In and OUT)\r\n * //\r\n * var start = new draw2d.shape.node.Start({x:50, y:50});\r\n * var endNode = new draw2d.shape.node.End({x:200, y:70});\r\n *\r\n * // add the two nodes to the canvas\r\n * //\r\n * canvas.add( start);\r\n * canvas.add( endNode);\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.connection.ConnectionCreatePolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/AntSelectionFeedbackPolicy.js\":\n/*!*********************************************************!*\\\n !*** ./src/policy/figure/AntSelectionFeedbackPolicy.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.AntSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.AntSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the framework of the Policy should show a resize handle for the given shape\r\n *\r\n * @param {draw2d.Canvas} canvas the responsible canvas\r\n * @param {draw2d.Figure} figure the figure to decorate with a selection feedback\r\n * @param {Boolean} [isPrimarySelection]\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n if (figure.selectionHandles.isEmpty()) {\n var box = new _packages2.default.shape.basic.Rectangle({ bgColor: null, dasharray: \"- \", color: \"#2C70FF\" });\n box.hide = function () {\n // IMPORTANT\n // don't add/remove this rectangle to the canvas resizeHandles. This rect isn't responsible for any hitTest or\n // dragDrop operation\n //canvas.resizeHandles.remove(box);\n box.setCanvas(null);\n };\n box.show = function (canvas) {\n box.setCanvas(canvas);\n // IMPORTANT\n // don't add/remove this rectangle to the canvas resizeHandles. This rect isn't responsible for any hitTest or\n // dragDrop operation\n //canvas.resizeHandles.remove(box);\n //canvas.resizeHandles.add(box);\n box.shape.toFront();\n };\n box.show(canvas);\n figure.selectionHandles.add(box);\n\n // add a bee line to the parent if a parent is given and if the bounding box\n // of the parent and the figure didn't have intersections\n if (figure.getParent() !== null) {\n var line = new _packages2.default.shape.basic.Line({ opacity: 0.5, bgColor: null, dasharray: \"- \", color: \"#2C70FF\" });\n //line.setStartPosition(figure.getBoundingBox().getCenter());\n //line.setEndPosition(figure.getParent().getBoundingBox().getCenter());\n line.show = function (canvas) {\n return line.setCanvas(canvas);\n };\n line.hide = function () {\n return line.setCanvas(null);\n };\n line.show(canvas);\n figure.selectionHandles.add(line);\n this._updateBeeLine(line, figure);\n }\n }\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved\r\n *\r\n * @param figure\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n\n var margin = 2;\n var box = figure.selectionHandles.first();\n box.setPosition(figure.getAbsolutePosition().translate(-margin, -margin));\n box.setDimension(figure.getWidth() + margin * 2, figure.getHeight() + margin * 2);\n box.setRotationAngle(figure.getRotationAngle());\n\n if (figure.selectionHandles.getSize() > 1) {\n this._updateBeeLine(figure.selectionHandles.get(1), figure);\n }\n },\n\n /**\r\n *\r\n * @param {draw2d.shape.basic.Line} line\r\n * @param {draw2d.Figure} figure\r\n * @private\r\n */\n _updateBeeLine: function _updateBeeLine(line, figure) {\n var parent = figure.getParent();\n\n if (parent === null) {\n return;\n }\n\n if (parent instanceof _packages2.default.shape.basic.Line) {\n var center = figure.getBoundingBox().getCenter();\n var projection = parent.pointProjection(center);\n if (projection === null) {\n var p1 = line.getStartPosition();\n var p2 = line.getEndPosition();\n var d1 = center.distance(p1);\n var d2 = center.distance(p1);\n projection = d1 < d2 ? p1 : p2;\n }\n var intersection = figure.getBoundingBox().intersectionWithLine(center, projection);\n if (intersection.getSize() > 0) {\n line.setStartPosition(figure.getBoundingBox().intersectionWithLine(center, projection).get(0)).setEndPosition(projection);\n } else {\n line.setStartPosition(figure.getBoundingBox().getCenter()).setEndPosition(projection);\n }\n } else {\n var rect1 = figure.getBoundingBox(),\n rect2 = parent.getBoundingBox();\n\n var center1 = rect1.getCenter();\n var center2 = rect2.getCenter();\n // the rectangle overlaps -> return the center of booth\n if (rect1.intersects(rect2)) {\n line.setStartPosition(center1).setEndPosition(center2);\n }\n // one rect is inside the other rect\n //\n else if (rect1.hitTest(center2) || rect2.hitTest(center1)) {\n line.setStartPosition(center1).setEndPosition(center2);\n } else {\n rect1.scale(3, 3);\n rect2.scale(3, 3);\n\n line.setStartPosition(rect1.intersectionWithLine(center1, center2).get(0)).setEndPosition(rect2.intersectionWithLine(center1, center2).get(0));\n }\n }\n }\n}); /**\r\n * @class draw2d.policy.figure.AntSelectionFeedbackPolicy\r\n *\r\n * Provide support for selecting and positioning a non-resizable figure.\r\n * Selection is indicated via rectangular handle that outlines the figure with a 1-pixel black\r\n * dotted line.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle({diameter:50, x:90, y:50});\r\n * circle.installEditPolicy(new draw2d.policy.figure.AntSelectionFeedbackPolicy());\r\n * canvas.add(circle);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"Click on the circle to see the selection feedback\"}),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/BigRectangleSelectionFeedbackPolicy.js\":\n/*!******************************************************************!*\\\n !*** ./src/policy/figure/BigRectangleSelectionFeedbackPolicy.js ***!\n \\******************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.BigRectangleSelectionFeedbackPolicy = _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.BigRectangleSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n createResizeHandle: function createResizeHandle(owner, type) {\n return new _packages2.default.ResizeHandle({ owner: owner, type: type, width: 15, height: 15 });\n }\n\n}); /**\r\n * @class draw2d.policy.figure.BigRectangleSelectionFeedbackPolicy\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle();\r\n * circle.installEditPolicy(new draw2d.policy.figure.BigRectangleSelectionFeedbackPolicy());\r\n * canvas.add(circle,90,50);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"Click on the circle to see the selection feedback\"}),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/BusSelectionFeedbackPolicy.js\":\n/*!*********************************************************!*\\\n !*** ./src/policy/figure/BusSelectionFeedbackPolicy.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.BusSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.BusSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the framework of the Policy should show a resize handle for the given shape\r\n *\r\n * @param {Boolean} isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n if (figure.selectionHandles.isEmpty()) {\n var r2 = _packages2.default.Configuration.factory.createResizeHandle(figure, 2); // 2 = CENTER_TOP\n var r4 = _packages2.default.Configuration.factory.createResizeHandle(figure, 4); // 4 = RIGHT_MIDDLE\n var r6 = _packages2.default.Configuration.factory.createResizeHandle(figure, 6); // 6 = CENTER_BOTTOM\n var r8 = _packages2.default.Configuration.factory.createResizeHandle(figure, 8); // 8 = LEFT_MIDDLE\n\n figure.selectionHandles.add(r2, r4, r6, r8);\n\n r2.setDraggable(figure.isResizeable());\n r4.setDraggable(figure.isResizeable());\n r6.setDraggable(figure.isResizeable());\n r8.setDraggable(figure.isResizeable());\n\n r2.show(canvas);\n r4.show(canvas);\n r6.show(canvas);\n r8.show(canvas);\n }\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved\r\n *\r\n * @param figure\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n var r2 = figure.selectionHandles.find(function (handle) {\n return handle.type === 2;\n });\n var r4 = figure.selectionHandles.find(function (handle) {\n return handle.type === 4;\n });\n var r6 = figure.selectionHandles.find(function (handle) {\n return handle.type === 6;\n });\n var r8 = figure.selectionHandles.find(function (handle) {\n return handle.type === 8;\n });\n\n var objHeight = figure.getHeight();\n var objWidth = figure.getWidth();\n\n var xPos = figure.getX();\n var yPos = figure.getY();\n r2.setPosition(xPos + objWidth / 2 - r2.getWidth() / 2, yPos - r2.getHeight());\n r4.setPosition(xPos + objWidth, yPos + objHeight / 2 - r4.getHeight() / 2);\n r6.setPosition(xPos + objWidth / 2 - r6.getWidth() / 2, yPos + objHeight);\n r8.setPosition(xPos - r8.getWidth(), yPos + objHeight / 2 - r8.getHeight() / 2);\n }\n\n}); /**\r\n * @class draw2d.policy.figure.BusSelectionFeedbackPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/DragDropEditPolicy.js\":\n/*!*************************************************!*\\\n !*** ./src/policy/figure/DragDropEditPolicy.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.DragDropEditPolicy = _packages2.default.policy.figure.FigureEditPolicy.extend({\n\n NAME: \"draw2d.policy.figure.DragDropEditPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init(attr, setter, getter) {\n var _this = this;\n\n this._super(attr, setter, getter);\n this.moveCallback = function (emitter, event) {\n _this.moved(emitter.getCanvas(), emitter);\n };\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been installed.\r\n *\r\n * @param {draw2d.Canvas|draw2d.Figure} host\r\n */\n onInstall: function onInstall(host) {\n this._super(host);\n host.on(\"move\", this.moveCallback);\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been uninstalled.\r\n *\r\n * @param {draw2d.Canvas|draw2d.Figure} host\r\n */\n onUninstall: function onUninstall(host) {\n this._super(host);\n host.off(this.moveCallback);\n },\n\n /**\r\n * @method\r\n * Called by the framework if the related shape has init a drag&drop\r\n * operation\r\n *\r\n * The Policy can send a veto to prevent the DragDrop operation\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} return <b>false</b> to send a veto to the drag operation\r\n */\n onDragStart: function onDragStart(canvas, figure, x, y, shiftKey, ctrlKey) {\n figure.shape.attr({ cursor: \"move\" });\n\n // this happens if you drag&drop the shape outside of the screen and\n // release the mouse button outside the window. We restore the alpha\n // with the next drag&drop operation\n if (figure.isMoving === true) {\n figure.setAlpha(figure.originalAlpha);\n }\n\n figure.originalAlpha = figure.getAlpha();\n figure.isMoving = false;\n\n // return value since 6.1.0\n return true;\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag a figure.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @template\r\n */\n onDrag: function onDrag(canvas, figure) {\n // enable the alpha blending of the first real move of the object\n //\n if (figure.isMoving === false) {\n figure.isMoving = true;\n figure.setAlpha(figure.originalAlpha * 0.4);\n }\n },\n\n /**\r\n * @method\r\n * Called by the framework if the drag drop operation ends.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onDragEnd: function onDragEnd(canvas, figure, x, y, shiftKey, ctrlKey) {\n figure.shape.attr({ cursor: \"default\" });\n figure.isMoving = false;\n figure.setAlpha(figure.originalAlpha);\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the rectangle/region of this constraint.\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {Number} [y]\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n *\r\n * @template\r\n */\n adjustPosition: function adjustPosition(figure, x, y) {\n // do nothing per default implementation\n if (x instanceof _packages2.default.geo.Point) {\n return x;\n }\n\n return new _packages2.default.geo.Point(x, y);\n },\n\n /**\r\n * @method\r\n * ensure that the dimension didn't goes outside the given restrictions\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {Number} w\r\n * @param {number} h\r\n * @returns {draw2d.geo.Rectangle} the constraint position of the figure\r\n */\n adjustDimension: function adjustDimension(figure, w, h) {\n return new _packages2.default.geo.Rectangle(0, 0, w, h);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has moved\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {}\n}); /**\r\n * @class draw2d.policy.figure.DragDropEditPolicy\r\n *\r\n * Called by the framework if the user edit the position of a figure with a drag drop operation.\r\n * Sub class like SelectionEditPolicy or RegionEditPolicy can adjust the position of the figure or the selections handles.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.FigureEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/FigureEditPolicy.js\":\n/*!***********************************************!*\\\n !*** ./src/policy/figure/FigureEditPolicy.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.FigureEditPolicy = _packages2.default.policy.EditPolicy.extend({\n\n NAME: \"draw2d.policy.figure.FigureEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called if the user press the right mouse on the figure.<br>\r\n * You can either override the \"onContextMenu\" method of the figure or install an editor policy and override this method.\r\n * Booth is valid and possible.\r\n *\r\n * @param {draw2d.Figure|draw2d.shape.basic.Line} figure the figure below the mouse\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n * @since 4.4.0\r\n */\n onRightMouseDown: function onRightMouseDown(figure, x, y, shiftKey, ctrlKey) {}\n}); /**\r\n * @class draw2d.policy.figure.FigureEditPolicy\r\n *\r\n * Called by the framework if the user edit the position of a figure with a drag drop operation.\r\n * Sub class like SelectionEditPolicy or RegionEditPolicy can adjust the position of the figure\r\n * or the selections handles.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.EditPolicy\r\n * @since 4.4.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/GlowSelectionFeedbackPolicy.js\":\n/*!**********************************************************!*\\\n !*** ./src/policy/figure/GlowSelectionFeedbackPolicy.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.GlowSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.GlowSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the framework of the Policy should show a resize handle for the given shape\r\n *\r\n * @param {Boolean} isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n figure.setGlow(true);\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the unselected figure\r\n */\n onUnselect: function onUnselect(canvas, figure) {\n this._super(canvas, figure);\n figure.setGlow(false);\n }\n\n}); /**\r\n * @class draw2d.policy.figure.GlowSelectionFeedbackPolicy\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle();\r\n * circle.installEditPolicy(new draw2d.policy.figure.GlowSelectionFeedbackPolicy());\r\n * canvas.add(circle,90,50);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label(\"Click on the circle to see the selection feedback\"),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/HBusSelectionFeedbackPolicy.js\":\n/*!**********************************************************!*\\\n !*** ./src/policy/figure/HBusSelectionFeedbackPolicy.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.HBusSelectionFeedbackPolicy = _packages2.default.policy.figure.BusSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.HBusSelectionFeedbackPolicy\",\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved\r\n *\r\n * @param figure\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n var r4 = figure.selectionHandles.find(function (handle) {\n return handle.type === 4;\n });\n var r8 = figure.selectionHandles.find(function (handle) {\n return handle.type === 8;\n });\n\n r4.setDimension(r4.getWidth(), figure.getHeight());\n r8.setDimension(r4.getWidth(), figure.getHeight());\n\n this._super(canvas, figure);\n }\n\n});\n/**\r\n * @class draw2d.policy.figure.HBusSelectionFeedbackPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.BusSelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/HorizontalEditPolicy.js\":\n/*!***************************************************!*\\\n !*** ./src/policy/figure/HorizontalEditPolicy.js ***!\n \\***************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.HorizontalEditPolicy = _packages2.default.policy.figure.DragDropEditPolicy.extend({\n\n NAME: \"draw2d.policy.figure.HorizontalEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new constraint object\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * It is only possible to drag&drop the element in a horizontal line\r\n *\r\n * @param figure\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {number} [y]\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n adjustPosition: function adjustPosition(figure, x, y) {\n return new _packages2.default.geo.Point(x, figure.getY());\n }\n\n}); /**\r\n * @class draw2d.policy.figure.HorizontalEditPolicy\r\n *\r\n * An EditPolicy for use with Figures. With this edit policy you can move the shape only in a horizontal manner.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // add some demo figure to the canvas\r\n * var circle =new draw2d.shape.basic.Circle({diameter:50, x:10, y:30});\r\n * canvas.add(circle);\r\n *\r\n * // add the edit policy to the shape. At this point you can move the shape only\r\n * // horizontal\r\n * circle.installEditPolicy(new draw2d.policy.figure.HorizontalEditPolicy());\r\n *\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/RectangleSelectionFeedbackPolicy.js\":\n/*!***************************************************************!*\\\n !*** ./src/policy/figure/RectangleSelectionFeedbackPolicy.js ***!\n \\***************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.RectangleSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.RectangleSelectionFeedbackPolicy\",\n /**\r\n * @constructor\r\n * Creates a selection feedback for a shape.\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @inheritdoc\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n if (figure.selectionHandles.isEmpty()) {\n // Add a dotted line rectangle to the figure. Override the show/hide method of the standard\n // figure to avoid adding these element to the hit test of the canvas. In this case the element\n // is just visible but not part of the model or responsible for any drag/drop operation\n // #2C70FF #2096fc\n var box = new _packages2.default.shape.basic.Rectangle({ bgColor: null, dashArray: \"- \", color: \"#2C70FF\", stroke: 0.5 });\n box.hide = function () {\n // IMPORTANT\n // don't add/remove this rectangle to the canvas resizeHandles. This rect isn't responsible for any hitTest or\n // dragDrop operation\n //canvas.resizeHandles.remove(box);\n box.setCanvas(null);\n };\n box.show = function (canvas) {\n box.setCanvas(canvas);\n // IMPORTANT\n // don't add/remove this rectangle to the canvas resizeHandles. This rect isn't responsible for any hitTest or\n // dragDrop operation\n //canvas.resizeHandles.remove(box);\n //canvas.resizeHandles.add(box);\n box.toFront(figure);\n };\n\n // create standard Resize handles for the figure\n //\n var r1 = this.createResizeHandle(figure, 1); // 1 = LEFT TOP\n var r3 = this.createResizeHandle(figure, 3); // 3 = RIGHT_TOP\n var r5 = this.createResizeHandle(figure, 5); // 5 = RIGHT_BOTTOM\n var r7 = this.createResizeHandle(figure, 7); // 7 = LEFT_BOTTOM\n figure.selectionHandles.add(r1, r3, r5, r7);\n r1.show(canvas);\n r3.show(canvas);\n r5.show(canvas);\n r7.show(canvas);\n\n // change the look&feel of the corner resizehandles if the\n // figure isn't resizeable\n //\n if (figure.isResizeable() === false) {\n var attr = { bgColor: null, draggable: false };\n r1.attr(attr);\n r3.attr(attr);\n r5.attr(attr);\n r7.attr(attr);\n r1.setDraggable(false);\n r3.setDraggable(false);\n r5.setDraggable(false);\n r7.setDraggable(false);\n }\n\n // show only the additional resizehandles if the figure is resizeable and didn't care about\n // the aspect ration\n //\n if (!figure.getKeepAspectRatio() && figure.isResizeable()) {\n var r2 = this.createResizeHandle(figure, 2); // 2 = CENTER_TOP\n var r4 = this.createResizeHandle(figure, 4); // 4 = RIGHT_MIDDLE\n var r6 = this.createResizeHandle(figure, 6); // 6 = CENTER_BOTTOM\n var r8 = this.createResizeHandle(figure, 8); // 8 = LEFT_MIDDLE\n figure.selectionHandles.add(r2, r4, r6, r8);\n r2.show(canvas);\n r4.show(canvas);\n r6.show(canvas);\n r8.show(canvas);\n }\n\n // add the reference of the \"ant box\" to the figure as well. But wee add them\n // to the end of the array because inherit classes expect the resizehandles\n // on index 0-7.\n //\n figure.selectionHandles.add(box);\n\n // call the box.show() at last to ensure that the resize handles are above the\n // rectangle. The rectangle did a toFront(parentShape);\n box.show(canvas);\n }\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved. In this case we must update the position of the\r\n * resize handles and the \"ant\" box.\r\n *\r\n * @param figure\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {\n\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n\n var margin = 3 * canvas.getZoom();\n var objHeight = figure.getHeight();\n var objWidth = figure.getWidth();\n var xPos = figure.getAbsoluteX();\n var yPos = figure.getAbsoluteY();\n\n var r1 = figure.selectionHandles.find(function (handle) {\n return handle.type === 1;\n });\n var r3 = figure.selectionHandles.find(function (handle) {\n return handle.type === 3;\n });\n var r5 = figure.selectionHandles.find(function (handle) {\n return handle.type === 5;\n });\n var r7 = figure.selectionHandles.find(function (handle) {\n return handle.type === 7;\n });\n\n r1.setPosition(xPos - r1.getWidth(), yPos - r1.getHeight());\n r3.setPosition(xPos + objWidth, yPos - r3.getHeight());\n r5.setPosition(xPos + objWidth, yPos + objHeight);\n r7.setPosition(xPos - r7.getWidth(), yPos + objHeight);\n\n if (!figure.getKeepAspectRatio() && figure.isResizeable()) {\n var r2 = figure.selectionHandles.find(function (handle) {\n return handle.type === 2;\n });\n var r4 = figure.selectionHandles.find(function (handle) {\n return handle.type === 4;\n });\n var r6 = figure.selectionHandles.find(function (handle) {\n return handle.type === 6;\n });\n var r8 = figure.selectionHandles.find(function (handle) {\n return handle.type === 8;\n });\n\n r2.setPosition(xPos + objWidth / 2 - r2.getWidth() / 2, yPos - r2.getHeight());\n r4.setPosition(xPos + objWidth, yPos + objHeight / 2 - r4.getHeight() / 2);\n r6.setPosition(xPos + objWidth / 2 - r6.getWidth() / 2, yPos + objHeight);\n r8.setPosition(xPos - r8.getWidth(), yPos + objHeight / 2 - r8.getHeight() / 2);\n }\n var box = figure.selectionHandles.last();\n box.attr({\n x: xPos - margin,\n y: yPos - margin,\n width: objWidth + margin * 2,\n height: objHeight + margin * 2,\n stroke: canvas.getZoom()\n });\n\n box.setRotationAngle(figure.getRotationAngle());\n },\n\n createResizeHandle: function createResizeHandle(owner, type) {\n return new _packages2.default.ResizeHandle({ owner: owner, type: type, width: 10, height: 10 });\n }\n}); /**\r\n * @class draw2d.policy.figure.RectangleSelectionFeedbackPolicy\r\n *\r\n * A SelectionFeedbackPolicy with resize handles (rectangles) on each side and corner of the shape\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle({diameter:50});\r\n * circle.installEditPolicy(new draw2d.policy.RectangleSelectionFeedbackPolicy());\r\n * canvas.add(circle,90,50);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"Click on the circle to see the selection feedback\"}),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/RegionEditPolicy.js\":\n/*!***********************************************!*\\\n !*** ./src/policy/figure/RegionEditPolicy.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.RegionEditPolicy = _packages2.default.policy.figure.DragDropEditPolicy.extend({\n\n NAME: \"draw2d.policy.figure.RegionEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new constraint object\r\n *\r\n * @param {Number|draw2d.geo.Rectangle} x x coordinate or a rectangle as constraint for the assigned figure.\r\n * @param {Number} y\r\n * @param {Number} w\r\n * @param {Number} h\r\n */\n init: function init(x, y, w, h) {\n this._super();\n if (x instanceof _packages2.default.geo.Rectangle) {\n this.constRect = x;\n } else if (typeof h === \"number\") {\n this.constRect = new _packages2.default.geo.Rectangle(x, y, w, h);\n } else {\n throw \"Invalid parameter. RegionEditPolicy need a rectangle as parameter in the constructor\";\n }\n },\n\n /**\r\n * @method\r\n * Update the constraint bounding box for the policy.\r\n *\r\n * @param {draw2d.geo.Rectangle} boundingBox the constraint rectangle\r\n * @since 4.8.2\r\n */\n setBoundingBox: function setBoundingBox(boundingBox) {\n this.constRect = boundingBox;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Adjust the coordinates to the rectangle/region of this constraint.\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {Number} [y]\r\n *\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n adjustPosition: function adjustPosition(figure, x, y) {\n var r = null;\n if (x instanceof _packages2.default.geo.Point) {\n r = new _packages2.default.geo.Rectangle(x.x, x.y, figure.getWidth(), figure.getHeight());\n } else {\n r = new _packages2.default.geo.Rectangle(x, y, figure.getWidth(), figure.getHeight());\n }\n r = this.constRect.moveInside(r);\n return r.getTopLeft();\n },\n\n /**\r\n * @method\r\n * Adjust the dimension of the rectangle to fit into the region of the policy\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {Number} w\r\n * @param {Number} h\r\n *\r\n * @private\r\n */\n adjustDimension: function adjustDimension(figure, w, h) {\n var diffW = figure.getAbsoluteX() + w - this.constRect.getRight();\n var diffH = figure.getAbsoluteY() + h - this.constRect.getBottom();\n\n if (diffW > 0) {\n w = w - diffW;\n }\n if (diffH > 0) {\n h = h - diffH;\n }\n\n return { w: w, h: h };\n }\n}); /**\r\n * @class draw2d.policy.figure.RegionConstraintPolicy\r\n *\r\n * An EditPolicy for use with Figures. The constraint for RegionEditPolicy is a Rectangle. It is\r\n * not possible to move the related figure outside this constrained area.\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/ResizeSelectionFeedbackPolicy.js\":\n/*!************************************************************!*\\\n !*** ./src/policy/figure/ResizeSelectionFeedbackPolicy.js ***!\n \\************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.ResizeSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.ResizeSelectionFeedbackPolicy\",\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the framework of the Policy should show a resize handle for the given shape\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the selected figure\r\n * @param {Boolean} [isPrimarySelection]\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n\n if (figure.selectionHandles.isEmpty()) {\n // create standard Resize handles for the figure\n //\n var r1 = _packages2.default.Configuration.factory.createResizeHandle(figure, 1); // 1 = LEFT TOP\n var r3 = _packages2.default.Configuration.factory.createResizeHandle(figure, 3); // 3 = RIGHT_TOP\n var r5 = _packages2.default.Configuration.factory.createResizeHandle(figure, 5); // 5 = RIGHT_BOTTOM\n var r7 = _packages2.default.Configuration.factory.createResizeHandle(figure, 7); // 7 = LEFT_BOTTOM\n figure.selectionHandles.add(r1, r3, r5, r7);\n r1.show(canvas);\n r3.show(canvas);\n r5.show(canvas);\n r7.show(canvas);\n\n // The corner ResizeHandles are only draggable fi the figure is\n // resizeable. But the Resize handles are visible\n //\n\n // change the look&feel of the corner resizehandles if the\n // figure isn't resizeable\n //\n if (figure.isResizeable() === false) {\n r1.setBackgroundColor(null);\n r3.setBackgroundColor(null);\n r5.setBackgroundColor(null);\n r7.setBackgroundColor(null);\n r1.setDraggable(false);\n r3.setDraggable(false);\n r5.setDraggable(false);\n r7.setDraggable(false);\n }\n\n // show only the additional resizehandles if the figure is resizeable\n //\n if (!figure.getKeepAspectRatio() && figure.isResizeable()) {\n var r2 = _packages2.default.Configuration.factory.createResizeHandle(figure, 2); // 2 = CENTER_TOP\n var r4 = _packages2.default.Configuration.factory.createResizeHandle(figure, 4); // 4 = RIGHT_MIDDLE\n var r6 = _packages2.default.Configuration.factory.createResizeHandle(figure, 6); // 6 = CENTER_BOTTOM\n var r8 = _packages2.default.Configuration.factory.createResizeHandle(figure, 8); // 8 = LEFT_MIDDLE\n figure.selectionHandles.add(r2, r4, r6, r8);\n r2.show(canvas);\n r4.show(canvas);\n r6.show(canvas);\n r8.show(canvas);\n }\n }\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved. In this case we must update the position of the\r\n * resize handles.\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Figure} figure the moved figure\r\n *\r\n */\n moved: function moved(canvas, figure) {\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n\n var objHeight = figure.getHeight();\n var objWidth = figure.getWidth();\n var xPos = figure.getX();\n var yPos = figure.getY();\n\n var r1 = figure.selectionHandles.find(function (handle) {\n return handle.type === 1;\n });\n var r3 = figure.selectionHandles.find(function (handle) {\n return handle.type === 3;\n });\n var r5 = figure.selectionHandles.find(function (handle) {\n return handle.type === 5;\n });\n var r7 = figure.selectionHandles.find(function (handle) {\n return handle.type === 7;\n });\n r1.setPosition(xPos - r1.getWidth(), yPos - r1.getHeight());\n r3.setPosition(xPos + objWidth, yPos - r3.getHeight());\n r5.setPosition(xPos + objWidth, yPos + objHeight);\n r7.setPosition(xPos - r7.getWidth(), yPos + objHeight);\n\n if (!figure.getKeepAspectRatio()) {\n var r2 = figure.selectionHandles.find(function (handle) {\n return handle.type === 2;\n });\n var r4 = figure.selectionHandles.find(function (handle) {\n return handle.type === 4;\n });\n var r6 = figure.selectionHandles.find(function (handle) {\n return handle.type === 6;\n });\n var r8 = figure.selectionHandles.find(function (handle) {\n return handle.type === 8;\n });\n\n r2.setPosition(xPos + objWidth / 2 - r2.getWidth() / 2, yPos - r2.getHeight());\n r4.setPosition(xPos + objWidth, yPos + objHeight / 2 - r4.getHeight() / 2);\n r6.setPosition(xPos + objWidth / 2 - r6.getWidth() / 2, yPos + objHeight);\n r8.setPosition(xPos - r8.getWidth(), yPos + objHeight / 2 - r8.getHeight() / 2);\n }\n }\n\n}); /**\r\n * @class draw2d.policy.figure.ResizeSelectionFeedbackPolicy\r\n *\r\n * Selection feedback policy without \"marching ant lines\" or any other rectangle highlight. Just\r\n * some resize handles at each corner of the shape.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle();\r\n * circle.installEditPolicy(new draw2d.policy.ResizeSelectionFeedbackPolicy());\r\n * canvas.add(circle,90,50);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"Click on the circle to see the selection feedback\"}),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @since 4.0.0\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n *\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/RoundRectangleSelectionFeedbackPolicy.js\":\n/*!********************************************************************!*\\\n !*** ./src/policy/figure/RoundRectangleSelectionFeedbackPolicy.js ***!\n \\********************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.RoundRectangleSelectionFeedbackPolicy = _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.RoundRectangleSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n createResizeHandle: function createResizeHandle(owner, type) {\n return new _packages2.default.ResizeHandle({ owner: owner, type: type, width: 12, height: 12, radius: 4 });\n }\n}); /**\r\n * @class draw2d.policy.figure.RoundRectangleSelectionFeedbackPolicy\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle();\r\n * circle.installEditPolicy(new draw2d.policy.RoundRectangleSelectionFeedbackPolicy());\r\n * canvas.add(circle,90,50);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"Click on the circle to see the selection feedback\"}),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.RectangleSelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/SelectionFeedbackPolicy.js\":\n/*!******************************************************!*\\\n !*** ./src/policy/figure/SelectionFeedbackPolicy.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.SelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionPolicy.extend({\n\n NAME: \"draw2d.policy.figure.SelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the unselected figure\r\n */\n onUnselect: function onUnselect(canvas, figure) {\n this._super(canvas, figure);\n\n figure.selectionHandles.each(function (i, e) {\n return e.hide();\n });\n figure.selectionHandles = new _packages2.default.util.ArrayList();\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been installed.\r\n *\r\n * @param {draw2d.Figure} figure\r\n */\n onInstall: function onInstall(figure) {\n this._super(figure);\n\n var canvas = figure.getCanvas();\n if (canvas !== null) {\n if (canvas.getSelection().contains(figure)) {\n this.onSelect(canvas, figure, true);\n }\n }\n },\n\n /**\r\n * @method\r\n * Called by the host if the policy has been uninstalled.\r\n *\r\n * @param {draw2d.Figure} figure\r\n */\n onUninstall: function onUninstall(figure) {\n this._super(figure);\n\n figure.selectionHandles.each(function (i, e) {\n return e.hide();\n });\n figure.selectionHandles = new _packages2.default.util.ArrayList();\n }\n\n}); /**\r\n * @class draw2d.policy.figure.SelectionFeedbackPolicy\r\n *\r\n * A {@link draw2d.policy.SelectionFeedbackPolicy} that is sensitive to the canvas selection. Subclasses will typically\r\n * decorate the {@link draw2d.Figure figure} with things like selection handles and/or focus feedback.\r\n * <br>\r\n * If you want to change the handle visibility for a figure, then you should use SelectionFeedbackPolicy to do that.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/SelectionPolicy.js\":\n/*!**********************************************!*\\\n !*** ./src/policy/figure/SelectionPolicy.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.SelectionPolicy = _packages2.default.policy.figure.DragDropEditPolicy.extend({\n\n NAME: \"draw2d.policy.figure.SelectionPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n *\r\n * @template\r\n * @param figure\r\n * @param isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {},\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Figure} figure the unselected figure\r\n */\n onUnselect: function onUnselect(canvas, figure) {}\n\n}); /**\r\n * @class draw2d.policy.figure.SelectionFeedbackPolicy\r\n *\r\n * A {@link draw2d.policy.SelectionFeedbackPolicy} that is sensitive to the canvas selection. Subclasses will typically\r\n * decorate the {@link draw2d.Figure figure} with things like selection handles and/or focus feedback.\r\n * <br>\r\n * If you want to change the handle visibility for a figure, then you should use SelectionFeedbackPolicy to do that.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/SlimSelectionFeedbackPolicy.js\":\n/*!**********************************************************!*\\\n !*** ./src/policy/figure/SlimSelectionFeedbackPolicy.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.SlimSelectionFeedbackPolicy = _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.SlimSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n createResizeHandle: function createResizeHandle(owner, type) {\n return new _packages2.default.ResizeHandle({ owner: owner, type: type, width: 6, height: 6, radius: 0 });\n }\n}); /**\r\n * @class draw2d.policy.figure.SlimSelectionFeedbackPolicy\r\n * Add only very small resize handles to the figure.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * circle =new draw2d.shape.basic.Circle();\r\n * circle.installEditPolicy(new draw2d.policy.SlimSelectionFeedbackPolicy());\r\n * canvas.add(circle,90,50);\r\n *\r\n * canvas.add(new draw2d.shape.basic.Label({text:\"Click on the circle to see the selection feedback\"}),20,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.RectangleSelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/VBusSelectionFeedbackPolicy.js\":\n/*!**********************************************************!*\\\n !*** ./src/policy/figure/VBusSelectionFeedbackPolicy.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.VBusSelectionFeedbackPolicy = _packages2.default.policy.figure.BusSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.VBusSelectionFeedbackPolicy\",\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n *\r\n **/\n moved: function moved(canvas, figure) {\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n\n var r2 = figure.selectionHandles.find(function (handle) {\n return handle.type === 2;\n });\n var r6 = figure.selectionHandles.find(function (handle) {\n return handle.type === 6;\n });\n\n var objWidth = figure.getWidth();\n // adjust the resize handles on the left/right to the new dimension of the shape\n //\n r2.setDimension(objWidth, r2.getHeight());\n r6.setDimension(objWidth, r6.getHeight());\n\n this._super(canvas, figure);\n }\n\n});\n/**\r\n * @class draw2d.policy.figure.VBusSelectionFeedbackPolicy\r\n *\r\n * Selection feedback policy for vertical bus figures.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.BusSelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/VertexSelectionFeedbackPolicy.js\":\n/*!************************************************************!*\\\n !*** ./src/policy/figure/VertexSelectionFeedbackPolicy.js ***!\n \\************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.VertexSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.VertexSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Connection} connection the selected figure\r\n * @param {Boolean} isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, connection, isPrimarySelection) {\n // \tthis._super(canvas, connection, isPrimarySelection);\n\n var points = connection.getVertices();\n for (var i = 0; i < points.getSize(); i++) {\n var handle = new _packages2.default.shape.basic.VertexResizeHandle(connection, i);\n connection.selectionHandles.add(handle);\n handle.setDraggable(connection.isResizeable());\n handle.show(canvas);\n\n if (i !== 0) {\n var _handle = new _packages2.default.shape.basic.GhostVertexResizeHandle(connection, i - 1);\n connection.selectionHandles.add(_handle);\n _handle.setDraggable(connection.isResizeable());\n _handle.show(canvas);\n }\n }\n\n this.moved(canvas, connection);\n },\n\n /**\r\n * @method\r\n * Callback method if the figure has been moved.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n */\n moved: function moved(canvas, figure) {\n figure.selectionHandles.each(function (i, e) {\n return e.relocate();\n });\n }\n\n}); /**\r\n * @class draw2d.policy.figure.VertexSelectionFeedbackPolicy\r\n *\r\n * Called by the framework if the user edit the position of a figure with a drag drop operation.\r\n * Sub class like SelectionEditPolicy or RegionEditPolicy cam adjust th e position of the figure or the selections handles.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/VerticalEditPolicy.js\":\n/*!*************************************************!*\\\n !*** ./src/policy/figure/VerticalEditPolicy.js ***!\n \\*************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.VerticalEditPolicy = _packages2.default.policy.figure.DragDropEditPolicy.extend({\n\n NAME: \"draw2d.policy.figure.VerticalEditPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new constraint object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * It is only possible to drag&drop the element in a vertical line\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {number} [y]\r\n * @returns {draw2d.geo.Point} the constraint position of the figure\r\n */\n adjustPosition: function adjustPosition(figure, x, y) {\n return new _packages2.default.geo.Point(figure.getX(), y);\n }\n\n});\n/**\r\n * @class draw2d.policy.figure.VerticalEditPolicy\r\n *\r\n * An EditPolicy for use with Figures. With this edit policy you can move the shape only in a vertical manner.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // add some demo figure to the canvas\r\n * var circle =new draw2d.shape.basic.Circle({diameter:50, x:10, y:30});\r\n * canvas.add(circle);\r\n *\r\n * // add the edit policy to the shape. At this point you can move the shape only\r\n * // horizontal\r\n * circle.installEditPolicy(new draw2d.policy.figure.VerticalEditPolicy());\r\n *\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/figure/WidthSelectionFeedbackPolicy.js\":\n/*!***********************************************************!*\\\n !*** ./src/policy/figure/WidthSelectionFeedbackPolicy.js ***!\n \\***********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.figure.WidthSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.figure.BusSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the framework of the Policy should show a resize handle for the given shape\r\n *\r\n * @param {draw2d.Canvas} canvas the host of the diagram\r\n * @param {draw2d.Figure} figure the figure to select\r\n * @param {Boolean} isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n if (figure.selectionHandles.isEmpty()) {\n var r4 = new _packages2.default.ResizeHandle({ owner: figure, type: 4 }); // 4 = RIGHT_MIDDLE\n var r8 = new _packages2.default.ResizeHandle({ owner: figure, type: 8 }); // 8 = LEFT_MIDDLE\n\n r4.installEditPolicy(new _packages2.default.policy.figure.HorizontalEditPolicy());\n r8.installEditPolicy(new _packages2.default.policy.figure.HorizontalEditPolicy());\n figure.selectionHandles.add(r4, r8);\n\n r4.setDraggable(figure.isResizeable());\n r8.setDraggable(figure.isResizeable());\n\n r4.show(canvas);\n r8.show(canvas);\n }\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Callback if the figure has been moved\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {\n if (figure.selectionHandles.isEmpty()) {\n return; // silently\n }\n var r4 = figure.selectionHandles.find(function (handle) {\n return handle.type === 4;\n });\n var r8 = figure.selectionHandles.find(function (handle) {\n return handle.type === 8;\n });\n\n var objWidth = figure.getWidth();\n\n var xPos = figure.getX();\n var yPos = figure.getY();\n r4.setDimension(r4.getWidth(), figure.getHeight());\n r8.setDimension(r8.getWidth(), figure.getHeight());\n r4.setPosition(xPos + objWidth, yPos);\n r8.setPosition(xPos - r8.getWidth(), yPos);\n }\n}); /**\r\n * @class draw2d.policy.figure.WidthSelectionFeedbackPolicy\r\n * This selection shows only selection handles for the width. It is only possible to change the width\r\n * of an shaped. The height stays always the same or is recalculated by the figure itself.\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * // add some demo figure to the canvas\r\n * //\r\n * let shape =new draw2d.shape.basic.Rectangle({width:50, height:100, x:10, y:30});\r\n * canvas.add(shape);\r\n *\r\n * // At this point you can only change the width of the shape\r\n * //\r\n * shape.installEditPolicy(new draw2d.policy.figure.WidthSelectionFeedbackPolicy());\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/line/LineSelectionFeedbackPolicy.js\":\n/*!********************************************************!*\\\n !*** ./src/policy/line/LineSelectionFeedbackPolicy.js ***!\n \\********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.line.LineSelectionFeedbackPolicy = _packages2.default.policy.figure.SelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.line.LineSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new selection feedback policy for a line or connection\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called by the framework of the Policy should show a resize handle for the given shape\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {Boolean} [isPrimarySelection]\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n if (figure.selectionHandles.isEmpty()) {\n figure.selectionHandles.add(new _packages2.default.shape.basic.LineStartResizeHandle(figure));\n figure.selectionHandles.add(new _packages2.default.shape.basic.LineEndResizeHandle(figure));\n\n figure.selectionHandles.each(function (i, e) {\n e.setDraggable(figure.isResizeable());\n e.show(canvas);\n });\n }\n this.moved(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Callback method if the figure has been moved.\r\n *\r\n * @template\r\n */\n moved: function moved(canvas, figure) {\n figure.selectionHandles.each(function (i, e) {\n return e.relocate();\n });\n }\n\n}); /**\r\n * @class draw2d.policy.line.LineSelectionFeedbackPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.SelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/line/OrthogonalSelectionFeedbackPolicy.js\":\n/*!**************************************************************!*\\\n !*** ./src/policy/line/OrthogonalSelectionFeedbackPolicy.js ***!\n \\**************************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _jquery = __webpack_require__(/*! lib/jquery.contextmenu */ \"./src/lib/jquery.contextmenu.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _contextmenu = __webpack_require__(/*! css/contextmenu.css */ \"./src/css/contextmenu.css\");\n\nvar _contextmenu2 = _interopRequireDefault(_contextmenu);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// do not delete them\n_packages2.default.policy.line.OrthogonalSelectionFeedbackPolicy = _packages2.default.policy.line.LineSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.line.OrthogonalSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n // The ResizeHandle for the Policy. This is inline to avoid that a user want to use them without\n // the right installed policy.\n //\n this.ResizeHandle = _packages2.default.ResizeHandle.extend({\n NAME: \"draw2d.policy.line.OrthogonalSelectionFeedbackPolicy.ResizeHandle\",\n\n init: function init(owner, index) {\n this._super({ owner: owner });\n this.index = index;\n },\n\n /**\r\n * @method\r\n * Called if a drag&drop operation starts.<br>\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @private\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n this._super(x, y, shiftKey, ctrlKey);\n this.command = this.getCanvas().getPrimarySelection().createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE_VERTICES));\n\n // Vertex is a reference and not a copy of the point\n this.vertex = this.owner.getVertex(this.index).clone();\n },\n\n /**\r\n * @method\r\n * Called from the framework during a drag&drop operation of the ResizeHandles\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n *\r\n * @return {Boolean}\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n if (this.command == null) {\n return false;\n }\n\n var MINDIST = this.owner.getRouter().MINDIST || 10;\n\n var fromDir = this.owner.getSource().getConnectionDirection(this.owner.getTarget());\n var toDir = this.owner.getTarget().getConnectionDirection(this.owner.getSource());\n\n this.vertex.translate(dx2, dy2);\n\n var vertices = this.owner.getVertices();\n var count = vertices.getSize();\n //shortcut for math operations\n var max = Math.max;\n var min = Math.min;\n\n // Keep in mind: \"p1\" is always the dragged handle in the coding below\n // marked with an '*' in the diagram\n //\n\n // FIRST handle of the connection\n //\n if (this.index === 1) {\n var p0 = vertices.get(this.index - 1); // first vertex of the connection\n var p1 = vertices.get(this.index); // dragged vertex\n var p2 = vertices.get(this.index + 1); // additional neighbor\n\n // vertex alignment to handle:\n //\n // p0 +-----* p1 p1 *------+ p0\n // | |\n // | |\n // + p2 p2 +\n if (p1.x === p2.x && p0.y === p1.y) {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n // p0 is on the left of p1\n //\n this.owner.setVertex(1, max(p0.x + MINDIST, this.vertex.x), p1.y); // p1\n this.owner.setVertex(2, max(p0.x + MINDIST, this.vertex.x), p2.y); // p2\n break;\n // p0 is on the right of p2\n //\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n this.owner.setVertex(1, min(p0.x - MINDIST, this.vertex.x), p1.y); // p1\n this.owner.setVertex(2, min(p0.x - MINDIST, this.vertex.x), p2.y); // p2\n break;\n }\n }\n\n // vertices alignment to handle:\n //\n // p0 + p1 *--------+ p2\n // | |\n // | |\n // p1 *-----+ p2 p0 +\n else {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n // p0 is below of p1\n //\n this.owner.setVertex(1, p1.x, min(p0.y - MINDIST, this.vertex.y)); // p1\n this.owner.setVertex(2, p2.x, min(p0.y - MINDIST, this.vertex.y)); // p2\n break;\n // p0 is above of p2\n //\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n this.owner.setVertex(1, p1.x, max(p0.y + MINDIST, this.vertex.y)); // p1\n this.owner.setVertex(2, p2.x, max(p0.y + MINDIST, this.vertex.y)); // p2\n break;\n }\n }\n }\n\n // LAST handle: Only the left hand side sibling can be changed\n //\n else if (this.index === count - 2) {\n var _p = vertices.get(this.index - 1); // neighbor of the dragged vertex\n var _p2 = vertices.get(this.index); // dragged vertex\n var _p3 = vertices.get(this.index + 1); // last vertex of the connection\n\n // vertices with this alignment.\n //\n // p2 +-----* p1 + p0\n // | |\n // | |\n // + p0 p2 +--------* p1\n if (_p3.x === _p2.x && _p.y === _p2.y) {\n switch (toDir) {\n // p0 is below of p1\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n this.owner.setVertex(count - 2, _p2.x, min(_p3.y - MINDIST, this.vertex.y)); // p1\n this.owner.setVertex(count - 3, _p.x, min(_p3.y - MINDIST, this.vertex.y)); // p2\n break;\n // p0 is above p2\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n this.owner.setVertex(count - 2, _p2.x, max(_p3.y + MINDIST, this.vertex.y)); // p1\n this.owner.setVertex(count - 3, _p.x, max(_p3.y + MINDIST, this.vertex.y)); // p2\n break;\n }\n }\n\n // vertices with this alignment.\n //\n // p2 + p0 +--------* p1\n // | |\n // | |\n // p1 *-----+ p0 p2 +\n else {\n switch (toDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n // p0 is on the left of p1\n //\n this.owner.setVertex(count - 2, max(_p3.x + MINDIST, this.vertex.x), _p2.y); // p1\n this.owner.setVertex(count - 3, max(_p3.x + MINDIST, this.vertex.x), _p.y); // p2\n break;\n // p0 is on the right of p2\n //\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n this.owner.setVertex(count - 2, min(_p3.x - MINDIST, this.vertex.x), _p2.y); // p1\n this.owner.setVertex(count - 3, min(_p3.x - MINDIST, this.vertex.x), _p.y); // p2\n break;\n }\n }\n }\n // The resize handle is in the middle of the connection.\n // -> In this case the connection MUST HAVE at least 5 vertices\n //\n else {\n var p_m1 = vertices.get(this.index - 2);\n var _p4 = vertices.get(this.index - 1);\n var _p5 = vertices.get(this.index); // selected DragHandle\n var _p6 = vertices.get(this.index + 1);\n var p3 = vertices.get(this.index + 2);\n\n // vertices alignment to handle\n //\n // . .\n // . .\n // p1 *------->+ p0 p0 +<---------* p1\n // | . . |\n // | . . |\n // p2 | | p2\n // ...+... ......+.....\n //\n if (_p5.x === _p6.x && _p5.y === _p4.y) {\n // Exception handling if the dragged handle (p1) is near by the start of the connection\n // p_m1 is the start of the connection\n // p0 must be the immediate neighbor of p_m1\n //\n if (this.index - 2 === 0) {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n this.owner.setVertex(this.index - 1, _p4.x, max(this.vertex.y, p_m1.y - MINDIST)); // p0\n this.owner.setVertex(this.index, this.vertex.x, max(this.vertex.y, p_m1.y - MINDIST)); // p1\n this.owner.setVertex(this.index + 1, this.vertex.x, _p6.y); // p2\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n this.owner.setVertex(this.index - 1, _p4.x, min(this.vertex.y, p_m1.y + MINDIST)); // p0\n this.owner.setVertex(this.index, this.vertex.x, this.vertex.y); // p1\n this.owner.setVertex(this.index + 1, this.vertex.x, _p6.y); // p2\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n this.owner.setVertex(this.index - 1, _p4.x, min(this.vertex.y, p_m1.y - MINDIST)); // p0\n this.owner.setVertex(this.index, this.vertex.x, min(this.vertex.y, p_m1.y - MINDIST)); // p1\n this.owner.setVertex(this.index + 1, this.vertex.x, _p6.y); // p2\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n this.owner.setVertex(this.index - 1, _p4.x, max(this.vertex.y, p_m1.y + MINDIST)); // p0\n this.owner.setVertex(this.index, this.vertex.x, max(this.vertex.y, p_m1.y + MINDIST)); // p1\n this.owner.setVertex(this.index + 1, this.vertex.x, _p6.y); // p2\n break;\n }\n }\n // Exception handling if the dragged handle (p1L) near by the end of the connection\n // p3 is the end of the connection\n //\n else if (this.index - count + 3 === 0) {\n switch (toDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n this.owner.setVertex(this.index - 1, _p4.x, this.vertex.y); // p0\n this.owner.setVertex(this.index, max(this.vertex.x, p3.x + MINDIST), this.vertex.y); // p1\n this.owner.setVertex(this.index + 1, max(this.vertex.x, p3.x + MINDIST), _p6.y); // p2\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n this.owner.setVertex(this.index - 1, _p4.x, this.vertex.y); // p0\n this.owner.setVertex(this.index, min(this.vertex.x, p3.x - MINDIST), this.vertex.y); // p1\n this.owner.setVertex(this.index + 1, min(this.vertex.x, p3.x - MINDIST), _p6.y); // p2\n break;\n }\n } else {\n this.owner.setVertex(this.index - 1, _p4.x, this.vertex.y); // p0\n this.owner.setVertex(this.index, this.vertex); // p1\n this.owner.setVertex(this.index + 1, this.vertex.x, _p6.y); // p2\n }\n }\n // vertices alignment to handle\n //\n // ...+... ...+...\n // p0 | . | p0\n // | . . |\n // | . . |\n // p1 *----------+ p2 p2 +---------* p1\n // . .\n // . .\n else if (_p4.x === _p5.x && _p5.y === _p6.y) {\n // p_m1 is the start of the analyzed segment\n // p0 must be the immediate neighbor of p_m1\n //\n if (this.index - 2 === 0) {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n this.owner.setVertex(this.index - 1, max(this.vertex.x, p_m1.x + MINDIST), _p4.y); // p0\n this.owner.setVertex(this.index, max(this.vertex.x, p_m1.x + MINDIST), this.vertex.y); // p1\n this.owner.setVertex(this.index + 1, _p6.x, this.vertex.y); // p2\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n this.owner.setVertex(this.index - 1, min(this.vertex.x, p_m1.x - MINDIST), _p4.y); // p0\n this.owner.setVertex(this.index, min(this.vertex.x, p_m1.x - MINDIST), this.vertex.y); // p1\n this.owner.setVertex(this.index + 1, _p6.x, this.vertex.y); // p2\n break;\n }\n }\n // p3 is the end point\n //\n else if (this.index - count + 3 === 0) {\n switch (toDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n this.owner.setVertex(this.index - 1, this.vertex.x, max(this.vertex.y, _p4.y)); // p0\n this.owner.setVertex(this.index, this.vertex.x, min(this.vertex.y, p3.y - MINDIST)); // p1\n this.owner.setVertex(this.index + 1, _p6.x, min(this.vertex.y, p3.y - MINDIST)); // p2\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n this.owner.setVertex(this.index - 1, this.vertex.x, _p4.y); // p0\n this.owner.setVertex(this.index, this.vertex.x, max(this.vertex.y, p3.y + MINDIST)); // p1\n this.owner.setVertex(this.index + 1, _p6.x, max(this.vertex.y, p3.y + MINDIST)); // p2\n break;\n }\n }\n // just any element in the middle of the connection\n //\n else {\n this.owner.setVertex(this.index - 1, this.vertex.x, _p4.y); // p0\n this.owner.setVertex(this.index, this.vertex); // p1\n this.owner.setVertex(this.index + 1, _p6.x, this.vertex.y); // p2\n }\n }\n }\n\n this.relocate();\n\n // update the command for the undo/redo stuff\n //\n if (this.command !== null) {\n this.command.updateVertices(this.owner.getVertices().clone());\n }\n\n // note that the user has changed the routing manually.\n // This skips the automatic routing.\n this.owner._routingMetaData.routedByUserInteraction = true;\n return true;\n },\n\n /**\r\n * @method Called after a drag and drop action.<br>\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call the super implementation via <code>this._super();</code>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean}\r\n */\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n var stack = this.getCanvas().getCommandStack();\n\n stack.execute(this.command);\n this.command = null;\n return true;\n },\n\n /**\r\n * @method\r\n * Controls the location of the resize handle\r\n *\r\n * @template\r\n **/\n relocate: function relocate() {\n\n var resizeWidthHalf = this.getWidth() / 2;\n var resizeHeightHalf = this.getHeight() / 2;\n\n var anchor = this.owner.getVertices().get(this.index);\n if (anchor) this.setPosition(anchor.x - resizeWidthHalf, anchor.y - resizeHeightHalf);\n }\n\n });\n },\n\n /**\r\n * @method\r\n *\r\n * @template\r\n * @param {draw2d.Connection} connection the selected figure\r\n * @param {Boolean} isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, connection, isPrimarySelection) {\n this._super(canvas, connection, isPrimarySelection);\n\n var points = connection.getVertices();\n var i = 1;\n for (; i < points.getSize() - 1; i++) {\n var handle = new this.ResizeHandle(connection, i);\n connection.selectionHandles.add(handle);\n handle.setDraggable(connection.isResizeable());\n handle.show(canvas);\n }\n\n this.moved(canvas, connection);\n },\n\n /**\r\n * @method\r\n * remove the segment with the given index.\r\n * You must check if it possible to remove the segment before. The method didn'T do any consistency checks.\r\n *\r\n * @param conn\r\n * @param segmentIndex\r\n */\n removeSegment: function removeSegment(conn, segmentIndex) {\n var PADDING = 10;\n\n var segmentCount = conn.getVertices().getSize() - 1;\n\n var fromPt = conn.getStartPoint();\n var fromDir = conn.getSource().getConnectionDirection(conn.getTarget());\n\n var toPt = conn.getEndPoint();\n var toDir = conn.getTarget().getConnectionDirection(conn.getSource());\n\n var p0 = conn.getVertex(segmentIndex - 1);\n var p1 = conn.getVertex(segmentIndex);\n var p2 = conn.getVertex(segmentIndex + 1);\n var p3 = conn.getVertex(segmentIndex + 2);\n\n // p0 .\n // Es wird ein Horizontales Segment .\n // geloescht. Es muessen somit die Punkte .\n // p0 und p3 neu gesetzt werden. p1 +------*-----+ p2\n // Ihre neue X-Koordinate ist somit in der ^ .\n // Mitte des geloeschten Segmentes newX .\n // . p3\n //\n if (p1.y === p2.y) {\n var _newX = (p1.x + p2.x) / 2;\n // Die neue X-Koordinate muss auf jeden Falls zwischen p-1 und p4 liegen\n //\n if (segmentIndex === 1) {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n _newX = Math.max(_newX, fromPt.x + PADDING);\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n _newX = Math.min(_newX, fromPt.x - PADDING);\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n _newX = fromPt.x;\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n _newX = fromPt.x;\n break;\n }\n }\n\n if (segmentIndex === segmentCount - 2) {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n _newX = Math.max(_newX, toPt.x + PADDING);\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n _newX = Math.min(_newX, toPt.x - PADDING);\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n _newX = toPt.x;\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n _newX = toPt.x;\n break;\n }\n }\n\n conn.setVertex(segmentIndex - 1, new _packages2.default.geo.Point(_newX, p0.y));\n conn.setVertex(segmentIndex + 2, new _packages2.default.geo.Point(_newX, p3.y));\n\n conn.removeVertexAt(segmentIndex);\n conn.removeVertexAt(segmentIndex);\n conn._routingMetaData.routedByUserInteraction = true;\n }\n\n // p2 p3\n // Es wird ein vertikales Segment +..........+\n // geloescht. Es muessen somit die Punkte |\n // p0 und p3 neu gesetzt werden. |\n // Ihre neue Y-Koordinate ist somit in der |\n // Mitte des geloeschten Segmentes p0 | p1\n // +........+\n //\n else if (p1.x === p2.x) {\n var newY = (p1.y + p2.y) / 2;\n // Die neue Y-Koordinate muss auf jeden Falls zwischen p-1 und p4 liegen\n //\n if (segmentIndex === 1) {\n switch (fromDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n newY = fromPt.y;\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n debugger; // newX is newer read....why did I calculate them?!\n newX = fromPt.x;\n break;\n }\n }\n if (segmentIndex === segmentCount - 2) {\n switch (toDir) {\n case _packages2.default.geo.Rectangle.DIRECTION_RIGHT:\n case _packages2.default.geo.Rectangle.DIRECTION_LEFT:\n newY = toPt.y;\n break;\n case _packages2.default.geo.Rectangle.DIRECTION_UP:\n case _packages2.default.geo.Rectangle.DIRECTION_DOWN:\n debugger; // newX is newer read....why did I calculate them?!\n newX = toPt.x;\n break;\n }\n }\n\n conn.setVertex(segmentIndex - 1, new _packages2.default.geo.Point(p0.x, newY));\n conn.setVertex(segmentIndex + 2, new _packages2.default.geo.Point(p3.x, newY));\n\n conn.removeVertexAt(segmentIndex);\n conn.removeVertexAt(segmentIndex);\n conn._routingMetaData.routedByUserInteraction = true;\n }\n },\n\n /**\r\n * @method\r\n * split the segment with the given index and insert a new segment.\r\n *\r\n * @param conn\r\n * @param segmentIndex\r\n */\n splitSegment: function splitSegment(conn, segmentIndex, x, y) {\n var segmentCount = conn.getVertices().getSize() - 1;\n var p1 = conn.getVertex(segmentIndex);\n var p2 = conn.getVertex(segmentIndex + 1);\n var length = 40;\n\n // the selected segment is vertical\n //\n if (p1.x === p2.x) {\n conn._routingMetaData.routedByUserInteraction = true;\n // edge case of an ManhattanRouter: One segment. This happens if the source/target on the same x - coordinate\n //\n if (segmentCount === 1) {\n // + p1\n // |\n // np1 +-----+ np2\n // |\n // |\n // np3 +-----+ np3\n // |\n // |\n // + p2\n //\n var newSegLength = p1.getDistance(p2) / 4 / 2;\n var np1 = new _packages2.default.geo.Point(p1.x, y - newSegLength);\n var np2 = new _packages2.default.geo.Point(p2.x + length, y - newSegLength);\n var np3 = new _packages2.default.geo.Point(p2.x + length, y + newSegLength);\n var np4 = new _packages2.default.geo.Point(p2.x, y + newSegLength);\n\n conn.insertVertexAt(segmentIndex + 1, np1);\n conn.insertVertexAt(segmentIndex + 2, np2);\n conn.insertVertexAt(segmentIndex + 3, np3);\n conn.insertVertexAt(segmentIndex + 4, np4);\n } else {\n var _np = new _packages2.default.geo.Point(0, 0);\n var _np2 = new _packages2.default.geo.Point(0, 0);\n // p2 +\n // .\n // np1 +----+ np2\n // .\n // .\n // + p1\n // p1 ist der Startpunkt und darf somit nicht verschoben werden\n //\n if (segmentIndex === 0) {\n _np.y = y;\n _np.x = p1.x;\n _np2.y = y;\n _np2.x = p2.x + length;\n conn.setVertex(segmentIndex + 1, new _packages2.default.geo.Point(_np2.x, p2.y));\n }\n // p2 ist der Schlusspunkt und darf somit nicht veaendert werden\n //\n else if (segmentIndex === segmentCount - 1) {\n _np.y = y;\n _np.x = p1.x - length;\n _np2.y = y;\n _np2.x = p2.x;\n conn.setVertex(segmentIndex, new _packages2.default.geo.Point(_np.x, p1.y));\n } else {\n _np.y = y;\n _np.x = p1.x - length / 2;\n _np2.y = y;\n _np2.x = p2.x + length / 2;\n conn.setVertex(segmentIndex, new _packages2.default.geo.Point(_np.x, p1.y));\n conn.setVertex(segmentIndex + 1, new _packages2.default.geo.Point(_np2.x, p2.y));\n }\n\n conn.insertVertexAt(segmentIndex + 1, _np);\n conn.insertVertexAt(segmentIndex + 2, _np2);\n }\n }\n // the selected segment is horizontal\n //\n else if (p1.y == p2.y) {\n conn._routingMetaData.routedByUserInteraction = true;\n // edge case of an ManhattanRouter: One segment. This happens if the source/target on the same y - coordinate\n //\n if (segmentCount === 1) {\n // np2 +---------+ np3\n // | |\n // --------+np1 np4+--------\n //\n var _newSegLength = p1.getDistance(p2) / 4 / 2;\n var _np3 = new _packages2.default.geo.Point(x - _newSegLength, p1.y);\n var _np4 = new _packages2.default.geo.Point(x - _newSegLength, p1.y - length);\n var _np5 = new _packages2.default.geo.Point(x + _newSegLength, p1.y - length);\n var _np6 = new _packages2.default.geo.Point(x + _newSegLength, p1.y);\n\n conn.insertVertexAt(segmentIndex + 1, _np3);\n conn.insertVertexAt(segmentIndex + 2, _np4);\n conn.insertVertexAt(segmentIndex + 3, _np5);\n conn.insertVertexAt(segmentIndex + 4, _np6);\n } else {\n // p1 np1\n // +.........+\n // |\n // |\n // | np2 p2\n // +.........+\n var _np7 = new _packages2.default.geo.Point(0, 0);\n var _np8 = new _packages2.default.geo.Point(0, 0);\n\n // p1 ist der Startpunkt und darf somit nicht verschoben werden\n //\n if (segmentIndex === 0) {\n _np7.x = x;\n _np7.y = p1.y;\n _np8.x = x;\n _np8.y = p2.y + length;\n conn.setVertex(segmentIndex + 1, new _packages2.default.geo.Point(p2.x, _np8.y));\n }\n // p2 ist der Schlusspunkt und darf somit nicht veaendert werden\n //\n else if (segmentIndex === segmentCount - 1) {\n _np7.x = x;\n _np7.y = p1.y - length;\n _np8.x = x;\n _np8.y = p2.y;\n conn.setVertex(segmentIndex, new _packages2.default.geo.Point(p1.x, _np7.y));\n } else {\n _np7.x = x;\n _np7.y = p1.y - length / 2;\n _np8.x = x;\n _np8.y = p2.y + length / 2;\n conn.setVertex(segmentIndex, new _packages2.default.geo.Point(p1.x, _np7.y));\n conn.setVertex(segmentIndex + 1, new _packages2.default.geo.Point(p2.x, _np8.y));\n }\n conn.insertVertexAt(segmentIndex + 1, _np7);\n conn.insertVertexAt(segmentIndex + 2, _np8);\n }\n }\n },\n\n /**\r\n * @method\r\n * Called if the user press the right mouse on the figure.<br>\r\n * You can either override the \"onContextMenu\" method of the figure or install an editor policy and override this method.\r\n * Booth is valid and possible.\r\n *\r\n * @param {draw2d.shape.basic.Line} conn the polyline below the mouse\r\n * @param {Number} x the x-coordinate of the mouse down event\r\n * @param {Number} y the y-coordinate of the mouse down event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n * @since 4.4.0\r\n */\n onRightMouseDown: function onRightMouseDown(conn, x, y, shiftKey, ctrlKey) {\n var _this = this;\n\n var segment = conn.hitSegment(x, y);\n var items = { \"split\": { name: _packages2.default.Configuration.i18n.menu.addSegment } };\n\n if (segment === null) {\n return;\n }\n\n if (conn.getRouter().canRemoveSegmentAt(conn, segment.index)) {\n items.remove = { name: _packages2.default.Configuration.i18n.menu.deleteSegment };\n }\n\n $.contextMenu({\n selector: 'body',\n events: {\n hide: function hide() {\n $.contextMenu('destroy');\n }\n },\n callback: function callback(key, options) {\n switch (key) {\n case \"remove\":\n {\n // deep copy of the vertices of the connection for the command stack to avoid side effects\n var originalVertices = conn.getVertices().clone(true);\n _this.removeSegment(conn, segment.index);\n var newVertices = conn.getVertices().clone(true);\n conn.getCanvas().getCommandStack().execute(new _packages2.default.command.CommandReplaceVertices(conn, originalVertices, newVertices));\n }\n break;\n case \"split\":\n {\n // deep copy of the vertices of the connection for the command stack to avoid side effects\n var _originalVertices = conn.getVertices().clone(true);\n _this.splitSegment(conn, segment.index, x, y);\n var _newVertices = conn.getVertices().clone(true);\n conn.getCanvas().getCommandStack().execute(new _packages2.default.command.CommandReplaceVertices(conn, _originalVertices, _newVertices));\n }\n break;\n default:\n break;\n }\n },\n x: x,\n y: y,\n items: items\n });\n }\n}); /**\r\n * @class draw2d.policy.line.OrthogonalSelectionFeedbackPolicy\r\n *\r\n * Feedback and edit policy for the InteractiveManhattanRouter.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.line.LineSelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/line/VertexSelectionFeedbackPolicy.js\":\n/*!**********************************************************!*\\\n !*** ./src/policy/line/VertexSelectionFeedbackPolicy.js ***!\n \\**********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.line.VertexSelectionFeedbackPolicy = _packages2.default.policy.line.LineSelectionFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.line.VertexSelectionFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n *\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n *\r\n * @param {draw2d.Canvas} canvas the related canvas\r\n * @param {draw2d.Connection} figure the selected figure\r\n * @param {Boolean} isPrimarySelection\r\n */\n onSelect: function onSelect(canvas, figure, isPrimarySelection) {\n var startHandle = new _packages2.default.shape.basic.LineStartResizeHandle(figure);\n var endHandle = new _packages2.default.shape.basic.LineEndResizeHandle(figure);\n figure.selectionHandles.add(startHandle);\n figure.selectionHandles.add(endHandle);\n\n var points = figure.getVertices();\n var count = points.getSize() - 1;\n var i = 1;\n for (; i < count; i++) {\n figure.selectionHandles.add(new _packages2.default.shape.basic.VertexResizeHandle(figure, i));\n figure.selectionHandles.add(new _packages2.default.shape.basic.GhostVertexResizeHandle(figure, i - 1));\n }\n\n figure.selectionHandles.add(new _packages2.default.shape.basic.GhostVertexResizeHandle(figure, i - 1));\n\n figure.selectionHandles.each(function (i, e) {\n e.setDraggable(figure.isResizeable());\n e.show(canvas);\n });\n\n this.moved(canvas, figure);\n }\n\n}); /**\r\n * @class draw2d.policy.line.VertexSelectionFeedbackPolicy\r\n *\r\n * Feedback and edit policy for the VertexRouter.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.line.LineSelectionFeedbackPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/port/ElasticStrapFeedbackPolicy.js\":\n/*!*******************************************************!*\\\n !*** ./src/policy/port/ElasticStrapFeedbackPolicy.js ***!\n \\*******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.port.ElasticStrapFeedbackPolicy = _packages2.default.policy.port.PortFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.port.ElasticStrapFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n * Creates a new Router object\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n this.connectionLine = null;\n },\n\n /**\r\n * @method\r\n * Called by the framework if the related shape has init a drag&drop\r\n * operation\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onDragStart: function onDragStart(canvas, figure, x, y, shiftKey, ctrlKey) {\n this.connectionLine = new _packages2.default.shape.basic.Line();\n this.connectionLine.setCanvas(canvas);\n this.connectionLine.getShapeElement();\n\n this.onDrag(canvas, figure);\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag a figure.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n */\n onDrag: function onDrag(canvas, figure) {\n var x1 = figure.ox + figure.getParent().getAbsoluteX();\n var y1 = figure.oy + figure.getParent().getAbsoluteY();\n\n this.connectionLine.setStartPosition(x1, y1);\n this.connectionLine.setEndPosition(figure.getAbsoluteX(), figure.getAbsoluteY());\n },\n\n /**\r\n * @method\r\n * Called by the framework if the drag drop operation ends.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n */\n onDragEnd: function onDragEnd(canvas, figure, x, y, shiftKey, ctrlKey) {\n this.connectionLine.setCanvas(null);\n this.connectionLine = null;\n },\n\n onHoverEnter: function onHoverEnter(canvas, draggedFigure, hoverFiger) {\n this.connectionLine.setGlow(true);\n hoverFiger.setGlow(true);\n },\n\n onHoverLeave: function onHoverLeave(canvas, draggedFigure, hoverFiger) {\n hoverFiger.setGlow(false);\n this.connectionLine.setGlow(false);\n }\n\n}); /**\r\n * @class draw2d.policy.port.ElasticStrapFeedbackPolicy\r\n *\r\n * A draw2d.policy.SelectionFeedbackPolicy that is sensitive to the canvas selection. Subclasses will typically\r\n * decorate the {@link draw2d.Figure figure} with things like selection handles and/or focus feedback.\r\n * <br>\r\n * If you want to change the handle visibility for a figure, then you should use SelectionFeedbackPolicy to do that.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/policy/port/IntrusivePortsFeedbackPolicy.js\":\n/*!*********************************************************!*\\\n !*** ./src/policy/port/IntrusivePortsFeedbackPolicy.js ***!\n \\*********************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _shifty = __webpack_require__(/*! shifty */ \"./node_modules/shifty/dist/shifty.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.policy.port.IntrusivePortsFeedbackPolicy\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n_packages2.default.policy.port.IntrusivePortsFeedbackPolicy = _packages2.default.policy.port.PortFeedbackPolicy.extend({\n\n NAME: \"draw2d.policy.port.IntrusivePortsFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n this.connectionLine = null;\n this.tweenable = null;\n },\n\n /**\r\n * @method\r\n * Called by the framework if the related shape has init a drag&drop\r\n * operation\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onDragStart: function onDragStart(canvas, figure, x, y, shiftKey, ctrlKey) {\n var start = 0;\n var allPorts = canvas.getAllPorts().clone();\n allPorts.each(function (i, element) {\n if (typeof element.__beforeInflate === \"undefined\") {\n element.__beforeInflate = element.getWidth();\n }\n start = element.__beforeInflate;\n });\n\n // animate the resize of the ports\n //\n allPorts.grep(function (p) {\n return p.NAME != figure.NAME && p.parent !== figure.parent || p instanceof _packages2.default.HybridPort || figure instanceof _packages2.default.HybridPort;\n });\n this.tweenable = new _shifty.Tweenable();\n this.tweenable.tween({\n from: { 'size': start / 2 },\n to: { 'size': start },\n duration: 200,\n easing: \"easeOutSine\",\n step: function step(params) {\n allPorts.each(function (i, element) {\n // IMPORTANT shortcut to avoid rendering errors!!\n // performance shortcut to avoid a lot of events and recalculate/routing of all related connections\n // for each setDimension call. Additional the connection is following a port during Drag&Drop operation\n element.shape.attr({ rx: params.size, ry: params.size });\n element.width = element.height = params.size * 2;\n });\n }\n });\n\n this.connectionLine = new _packages2.default.shape.basic.Line();\n this.connectionLine.setCanvas(canvas);\n this.connectionLine.getShapeElement();\n this.connectionLine.setDashArray(\"- \");\n this.connectionLine.setColor(\"#30c48a\");\n\n this.onDrag(canvas, figure);\n\n return true;\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag a figure.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @template\r\n */\n onDrag: function onDrag(canvas, figure) {\n var x1 = figure.ox + figure.getParent().getAbsoluteX();\n var y1 = figure.oy + figure.getParent().getAbsoluteY();\n\n this.connectionLine.setStartPosition(x1, y1);\n this.connectionLine.setEndPosition(figure.getAbsoluteX(), figure.getAbsoluteY());\n },\n\n /**\r\n * @method\r\n * Called by the framework if the drag drop operation ends.\r\n *\r\n * @param {draw2d.Canvas} canvas The host canvas\r\n * @param {draw2d.Figure} figure The related figure\r\n * @template\r\n */\n onDragEnd: function onDragEnd(canvas, figure, x, y, shiftKey, ctrlKey) {\n if (this.tweenable) {\n this.tweenable.stop(true);\n this.tweenable.dispose();\n this.tweenable = null;\n }\n canvas.getAllPorts().each(function (i, element) {\n // IMPORTANT shortcut to avoid rendering errors!!\n // performance shortcut to avoid a lot of events and recalculate/routing of all related connections\n // for each setDimension call. Additional the connection is following a port during Drag&Drop operation\n element.shape.attr({ rx: element.__beforeInflate / 2, ry: element.__beforeInflate / 2 });\n element.width = element.height = element.__beforeInflate;\n delete element.__beforeInflate;\n });\n this.connectionLine.setCanvas(null);\n this.connectionLine = null;\n },\n\n onHoverEnter: function onHoverEnter(canvas, draggedFigure, hoverFiger) {\n this.connectionLine.setGlow(true);\n hoverFiger.setGlow(true);\n },\n\n onHoverLeave: function onHoverLeave(canvas, draggedFigure, hoverFiger) {\n hoverFiger.setGlow(false);\n if (this.connectionLine === null) {\n debugger;\n }\n this.connectionLine.setGlow(false);\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/policy/port/PortFeedbackPolicy.js\":\n/*!***********************************************!*\\\n !*** ./src/policy/port/PortFeedbackPolicy.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.policy.port.PortFeedbackPolicy = _packages2.default.policy.figure.DragDropEditPolicy.extend({\n\n NAME: \"draw2d.policy.port.PortFeedbackPolicy\",\n\n /**\r\n * @constructor\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Called if the dragged port hove another port\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {draw2d.Port} draggedFigure\r\n * @param {draw2d.Figure} hoverFigure\r\n */\n onHoverEnter: function onHoverEnter(canvas, draggedFigure, hoverFigure) {},\n\n /**\r\n * @method\r\n * Fired if the dragged figures leaves the hover figure\r\n *\r\n * @param {draw2d.Canvas} canvas\r\n * @param {draw2d.Port} draggedFigure\r\n * @param {draw2d.Figure} hoverFigure\r\n */\n onHoverLeave: function onHoverLeave(canvas, draggedFigure, hoverFigure) {}\n}); /**\r\n * @class draw2d.policy.port.PortFeedbackPolicy\r\n *\r\n * Base class for all port feedback policies. Used for grow, highlight or\r\n * other decorations during drag&drop and connecting of ports.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.policy.figure.DragDropEditPolicy\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/analog/OpAmp.js\":\n/*!***********************************!*\\\n !*** ./src/shape/analog/OpAmp.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.analog.OpAmp = _packages2.default.SVGFigure.extend({\n\n NAME: \"draw2d.shape.analog.OpAmp\",\n\n // custom locator for the special design of the OpAmp Input area\n MyInputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, port) {\n var parent = port.getParent();\n var calcY = (8 + 18.5 * index) * parent.scaleY;\n this.applyConsiderRotation(port, 1, calcY);\n }\n }),\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ stroke: 0, bgColor: \"#f0f0ff\" }, attr), setter, getter);\n\n this.inputLocator = new this.MyInputPortLocator();\n\n this.createPort(\"input\", this.inputLocator);\n this.createPort(\"input\", this.inputLocator);\n\n this.createPort(\"output\");\n },\n\n /**\r\n * @inheritdoc\r\n */\n getSVG: function getSVG() {\n return '<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"50\" height=\"50\">' + '<path d=\"m8.2627,0l0,35.36035l31.23926,-17.76025l-31.23926,-17.60011l0,0l0,0.00001zm2.27832,27.36719l4.08105,0m-2.10449,-2.20703l0,4.27979m2.26367,-21.35938l-4.15918,0\" stroke=\"#1B1B1B\" fill=\"none\"/>' + '<line x1=\"0.53516\" y1=\"8\" x2=\"8.21191\" y2=\"8\" stroke=\"#010101\"/>' + '<line x1=\"39.14941\" y1=\"18\" x2=\"45.81055\" y2=\"18\" stroke=\"#010101\" />' + '<line x1=\"0.53516\" y1=\"27\" x2=\"8.21191\" y2=\"27\" stroke=\"#010101\" />' + '</svg>';\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n // redirect the backgroundColor to an internal SVG node.\n // In this case only a small part of the shape are filled with the background color\n // and not the complete rectangle/bounding box\n //\n attributes[\"fill\"] = \"none\";\n if (this.bgColor != null) {\n this.svgNodes[0].attr({ fill: this.bgColor.rgba() });\n }\n\n this._super(attributes);\n\n return this;\n }\n\n}); /**\r\n * @class draw2d.shape.analog.OpAmp\r\n * Hand drawn arrow which points down left\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.analog.OpAmp({x:10, y:10});\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/analog/ResistorBridge.js\":\n/*!********************************************!*\\\n !*** ./src/shape/analog/ResistorBridge.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.analog.ResistorBridge = _packages2.default.SVGFigure.extend({\n\n NAME: \"draw2d.shape.analog.ResistorBridge\",\n\n // custom locator for the special design of the ResistorBridge Input area\n MyInputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n var h = figure.getParent().getHeight();\n this.applyConsiderRotation(figure, w / 2 + 1, h * index);\n }\n }),\n\n // custom locator for the special design of the ResistorBridge Input area\n MyOutputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n var h = figure.getParent().getHeight();\n\n this.applyConsiderRotation(figure, w * (index - 2), h / 2);\n }\n }),\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n\n this.inputLocator = new this.MyInputPortLocator();\n this.outputLocator = new this.MyOutputPortLocator();\n\n this.createPort(\"hybrid\", this.inputLocator);\n this.createPort(\"hybrid\", this.inputLocator);\n\n this.createPort(\"hybrid\", this.outputLocator);\n this.createPort(\"hybrid\", this.outputLocator);\n },\n\n /**\r\n * @inheritdoc\r\n */\n getSVG: function getSVG() {\n return '<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">' + '<path fill=\"#010101\" stroke=\"#010101\" stroke-miterlimit=\"14.3\" id=\"path12322\" d=\"m47.62207,22.71094l0,0c0.73145,0.73242 0.71777,1.93359 -0.03027,2.68164c-0.74805,0.74951 -1.94922,0.76123 -2.68073,0.0293c-0.73138,-0.73242 -0.71967,-1.93211 0.03033,-2.68115c0.74707,-0.74803 1.94727,-0.76219 2.68066,-0.02979l0,0z\"/>' + '<path fill=\"#010101\" stroke=\"#010101\" stroke-miterlimit=\"14.3\" id=\"path12324\" d=\"m25.84082,0.93115l0,0c0.73145,0.73096 0.71875,1.93359 -0.02832,2.68066c-0.75,0.74951 -1.94922,0.76123 -2.68164,0.0293c-0.73242,-0.73241 -0.71973,-1.93164 0.0293,-2.68065c0.74805,-0.74756 1.94922,-0.76172 2.68066,-0.0293l0,0l0,-0.00002z\"/>' + '<path fill=\"#010101\" stroke=\"#010101\" stroke-miterlimit=\"14.3\" id=\"path12326\" d=\"m25.75098,44.58203l0,0c0.73145,0.73193 0.71875,1.93311 -0.02832,2.68115c-0.75,0.74902 -1.94922,0.76074 -2.68262,0.0293c-0.73145,-0.73193 -0.71973,-1.93262 0.03033,-2.68164c0.74707,-0.74756 1.94922,-0.76123 2.68066,-0.02879l0,0l-0.00006,-0.00002z\"/>' + '<path fill=\"#010101\" stroke=\"#010101\" stroke-miterlimit=\"14.3\" id=\"path12328\" d=\"m3.9707,22.80127l0,0c0.73242,0.73193 0.71777,1.93359 -0.0293,2.68115c-0.74902,0.74951 -1.94922,0.76172 -2.68164,0.0293c-0.73145,-0.73242 -0.71973,-1.93164 0.03027,-2.68115c0.74707,-0.74707 1.94922,-0.76074 2.68066,-0.0293l0,0z\"/>' + '<polyline fill=\"none\" stroke=\"#010101\" id=\"polyline12334\" points=\"24.908203125,45.49267578125 31.71875,38.68310546875 31.2119140625,36.98876953125 34.892578125,37.95703125 33.953125,34.22265625 37.6650390625,35.18359375 36.6767578125,31.52490234375 40.3759765625,32.47314453125 39.873046875,30.52783203125 45.884765625,24.51708984375 \" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"#010101\" id=\"polyline12338\" points=\"36.3408203125,23.98876953125 38.146484375,29.55810546875 33.630859375,29.55810546875 35.435546875,23.98779296875 \"/>' + '<line fill=\"none\" stroke=\"#010101\" id=\"line12340\" y2=\"28.90967\" x2=\"35.8877\" y1=\"41.13428\" x1=\"35.88867\" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"none\" stroke=\"#010101\" id=\"polyline12346\" points=\"3.2109375,23.79248046875 10.01953125,16.98388671875 9.513671875,15.2890625 13.193359375,16.25732421875 12.251953125,12.5234375 15.9658203125,13.48486328125 14.9775390625,9.82568359375 18.6767578125,10.7734375 18.173828125,8.82958984375 24.185546875,2.81787109375 \" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"#010101\" id=\"polyline12350\" points=\"13.126953125,23.80419921875 11.3212890625,18.236328125 15.8369140625,18.236328125 14.0322265625,23.806640625 \"/>' + '<line fill=\"none\" stroke=\"#010101\" id=\"line12352\" y2=\"18.8833\" x2=\"13.58008\" y1=\"6.65967\" x1=\"13.5791\" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"none\" stroke=\"#010101\" id=\"polyline12358\" points=\"46.65625,24.33642578125 39.84765625,17.52783203125 38.154296875,18.033203125 39.1220703125,14.353515625 35.3876953125,15.29345703125 36.34765625,11.58056640625 32.689453125,12.56884765625 33.6376953125,8.86865234375 31.6923828125,9.373046875 24.322265625,2.00341796875 \" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"#010101\" id=\"polyline12362\" points=\"36.578125,1.87109375 38.3828125,7.439453125 33.8681640625,7.439453125 35.6728515625,1.869140625 \"/>' + '<line fill=\"none\" stroke=\"#010101\" id=\"line12364\" y2=\"6.7915\" x2=\"36.125\" y1=\"19.01758\" x1=\"36.125\" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"none\" stroke=\"#010101\" id=\"polyline12370\" points=\"24.494140625,46.49951171875 17.685546875,39.69091796875 15.9921875,40.1953125 16.958984375,36.515625 13.2265625,37.45556640625 14.185546875,33.7421875 10.52734375,34.73193359375 11.474609375,31.03125 9.529296875,31.53515625 2.1611328125,24.166015625 \" stroke-miterlimit=\"14.3\"/>' + '<polyline fill=\"#010101\" id=\"polyline12374\" points=\"12.150390625,44.80029296875 10.34765625,39.23193359375 14.861328125,39.23095703125 13.0556640625,44.80224609375 \"/>' + '<line fill=\"none\" stroke=\"#010101\" id=\"line12376\" y2=\"39.87891\" x2=\"12.60352\" y1=\"27.6543\" x1=\"12.60352\" stroke-miterlimit=\"14.3\"/>' + '</svg>';\n }\n}); /**\r\n * @class draw2d.shape.analog.ResistorBridge\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.analog.ResistorBridge({x:10, y:10});\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/analog/ResistorVertical.js\":\n/*!**********************************************!*\\\n !*** ./src/shape/analog/ResistorVertical.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.analog.ResistorVertical = _packages2.default.SetFigure.extend({\n\n NAME: \"draw2d.shape.analog.ResistorVertical\",\n\n // custom locator for the special design of the Input area\n MyInputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n var h = figure.getParent().getHeight();\n this.applyConsiderRotation(figure, w / 2, h);\n }\n }),\n\n // custom locator for the special design of the Output area\n MyOutputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n this.applyConsiderRotation(figure, w / 2, 0);\n }\n }),\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n\n this._super(extend({ width: 30, height: 50, bgColor: null }, attr), setter, getter);\n\n this.inputLocator = new this.MyInputPortLocator();\n this.outputLocator = new this.MyOutputPortLocator();\n\n this.createPort(\"hybrid\", this.inputLocator);\n this.createPort(\"hybrid\", this.outputLocator);\n },\n\n /**\r\n * @inheritdoc\r\n */\n createSet: function createSet() {\n var set = this._super();\n\n set.push(this.canvas.paper.path(\"M15,0 L15,5 L0,7.5 L30,10 L0,15 L30,20 L0,25 L30,30 L15,32.5 L15,40\"));\n\n return set;\n }\n}); /**\r\n * @class draw2d.shape.analog.ResistorVertical\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.analog.ResistorVertical({x:10, y:10});\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/analog/VoltageSupplyHorizontal.js\":\n/*!*****************************************************!*\\\n !*** ./src/shape/analog/VoltageSupplyHorizontal.js ***!\n \\*****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.analog.VoltageSupplyHorizontal = _packages2.default.SVGFigure.extend({\n\n NAME: \"draw2d.shape.analog.VoltageSupplyHorizontal\",\n\n // custom locator for the special design of the Input area\n MyInputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var h = figure.getParent().getHeight();\n this.applyConsiderRotation(figure, 0, h / 2);\n }\n }),\n\n // custom locator for the special design of the Output area\n MyOutputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n var h = figure.getParent().getHeight();\n this.applyConsiderRotation(figure, w, h / 2);\n }\n }),\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 30 }, attr), setter, getter);\n\n this.createPort(\"hybrid\", new this.MyInputPortLocator()); // GND\n this.createPort(\"hybrid\", new this.MyOutputPortLocator()); // VCC\n },\n\n /**\r\n * @inheritdoc\r\n */\n getSVG: function getSVG() {\n return '<svg width=\"49\" height=\"28\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">' + '<path d=\"m24.99933,18.95592l0,-9.54576m-5.78374,-9.40907l0,28.35939m-5.78718,-9.40457l0,-9.54576m-5.78374,-9.40907l0,28.35939\" id=\"path10566\" stroke-miterlimit=\"14.3\" stroke=\"#010101\" fill=\"none\"/>' + '<path d=\"m26.79878,14.13039l6.90583,0m-33.22691,0l6.90583,0\" id=\"path10568\" stroke-miterlimit=\"14.3\" stroke-linecap=\"square\" stroke=\"#010101\" fill=\"none\"/>' + '</svg>';\n }\n}); /**\r\n * @class draw2d.shape.analog.VoltageSupplyHorizontal\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.analog.VoltageSupplyHorizontal({x:10, y:10});\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/analog/VoltageSupplyVertical.js\":\n/*!***************************************************!*\\\n !*** ./src/shape/analog/VoltageSupplyVertical.js ***!\n \\***************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.analog.VoltageSupplyVertical = _packages2.default.SVGFigure.extend({\n\n NAME: \"draw2d.shape.analog.VoltageSupplyVertical\",\n\n // custom locator for the special design of the Input area\n MyInputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n var h = figure.getParent().getHeight();\n this.applyConsiderRotation(figure, w / 2, h);\n }\n }),\n\n // custom locator for the special design of the Output area\n MyOutputPortLocator: _packages2.default.layout.locator.PortLocator.extend({\n init: function init() {\n this._super();\n },\n relocate: function relocate(index, figure) {\n var w = figure.getParent().getWidth();\n this.applyConsiderRotation(figure, w / 2, 0);\n }\n }),\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 30, height: 50 }, attr), setter, getter);\n\n this.inputLocator = new this.MyInputPortLocator();\n this.outputLocator = new this.MyOutputPortLocator();\n\n this.createPort(\"hybrid\", this.inputLocator); // GND\n this.createPort(\"hybrid\", this.outputLocator); // VCC\n },\n\n /**\r\n * @inheritdoc\r\n */\n getSVG: function getSVG() {\n return '<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">' + '<path d=\"m19.62398,12.37594l-9.87926,0m-9.74355,8.22145l29.36289,0m-9.74007,8.22469l-9.87927,0m-9.74355,8.22145l29.36289,0\" id=\"path10560\" stroke-miterlimit=\"14.3\" stroke=\"#010101\" fill=\"none\"/>' + '<path d=\"m14.63157,9.81646l0,-9.81646m0,47.2328l0,-9.81646\" id=\"path10562\" stroke-miterlimit=\"14.3\" stroke-linecap=\"square\" stroke=\"#010101\" fill=\"none\"/>' + '</svg>';\n }\n}); /**\r\n * @class draw2d.shape.analog.VoltageSupplyVertical\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.analog.VoltageSupplyVertical({x:10, y:10});\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/arrow/CalligrapherArrowDownLeft.js\":\n/*!******************************************************!*\\\n !*** ./src/shape/arrow/CalligrapherArrowDownLeft.js ***!\n \\******************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.arrow.CalligrapherArrowDownLeft = _packages2.default.SVGFigure.extend({\n\n NAME: \"draw2d.shape.arrow.CalligrapherArrowDownLeft\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr);\n },\n\n getSVG: function getSVG() {\n return '<svg width=\"180\" height=\"300\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">' + ' <path style=\"fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none\" id=\"path3084\" d=\"m 159.63578,17.846597 c 0.43137,9.44641 -0.0636,18.88035 -0.8284,28.30165 c -1.73211,18.38336 -4.05381,36.71698 -6.08253,55.075313 c -1.61738,13.7075 -3.03402,27.43467 -3.97611,41.19113 c -1.09101,11.16584 -1.31019,22.36559 -1.28541,33.56466 c -0.1328,4.82188 0.3218,9.6468 0.14332,14.46812 c -0.0888,2.39977 -0.28315,3.73625 -0.55012,6.12095 c -0.85848,4.73147 -2.27416,9.40019 -4.7769,13.68272 c -1.47003,2.51544 -3.78493,5.6647 -5.47739,8.05048 c -5.02888,6.66256 -11.08555,12.65652 -18.10552,17.75963 c -4.23302,3.07716 -7.74942,5.12065 -12.22081,7.86298 c -13.253319,6.72606 -25.889792,15.11686 -40.84124,18.60576 c -3.016829,0.7039 -4.431417,0.8157 -7.450859,1.2076 c -6.983246,0.5774 -14.009174,0.3375 -21.010676,0.2509 c -3.278795,-0.033 -6.55749,0.01 -9.835897,0.045 c 0,0 20.838833,-13.2364 20.838833,-13.2364 l 0,0 c 3.147056,0.093 6.294483,0.1852 9.443646,0.2007 c 6.966697,0.011 13.971433,0.1301 20.897176,-0.6344 c 3.732439,-0.5577 7.321215,-1.2431 10.881203,-2.4145 c 1.517208,-0.4992 5.830867,-2.43339 4.487902,-1.6386 c -6.098183,3.6088 -25.104875,12.8748 -9.52514,5.223 c 4.40875,-2.5927 8.262057,-4.7459 12.425175,-7.65986 c 6.839117,-4.78709 12.633657,-10.50427 17.500607,-16.86761 c 2.53518,-3.56692 5.24684,-7.12748 7.07617,-11.03446 c 1.42357,-3.0404 2.21532,-6.28727 2.91146,-9.50152 c 0.91919,-6.88822 1.03991,-13.81392 1.25118,-20.74151 c 0.47683,-11.27871 0.96259,-22.55877 1.61689,-33.83062 c 1.21127,-14.03392 3.64191,-27.94339 5.46543,-41.92167 c 2.26899,-18.186603 4.6835,-36.384373 5.4487,-54.679643 c 0.0788,-2.46092 0.23808,-4.92087 0.23618,-7.38276 c -0.005,-6.45916 -0.62194,-13.00218 -2.13821,-19.32664 c 0,0 23.48134,-10.73998 23.48134,-10.73998 z\" inkscape:connector-curvature=\"0\" />' + ' <path style=\"fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none\" id=\"path3086\" d=\"m 41.271518,252.40239 c 2.465518,-0.7264 4.879503,-1.7726 7.145328,-2.9859 c 0.955597,-0.5117 3.736822,-2.1986 2.791991,-1.6673 c -5.218817,2.9348 -10.409826,5.9187 -15.61474,8.878 c 5.366557,-3.4898 10.227818,-7.6685 14.119927,-12.75576 c 3.507157,-5.09382 4.097613,-11.17122 4.301158,-17.17644 c 0.02635,-3.95844 -0.31227,-7.90612 -0.635377,-11.84752 c 0,0 19.920693,-10.3059 19.920693,-10.3059 l 0,0 c 0.171761,4.05015 0.409899,8.09777 0.50079,12.15101 c -0.185739,6.23619 -0.347804,12.66862 -3.492579,18.24747 c -0.503375,0.75197 -0.961922,1.53596 -1.510126,2.25591 c -3.478528,4.56826 -8.226837,8.04586 -12.757403,11.47443 c -7.345206,4.3297 -14.671333,8.692 -22.035619,12.9891 c -3.551305,2.0723 -7.368692,3.8726 -11.394645,4.7773 c 0,0 18.660602,-14.0344 18.660602,-14.0344 z\" inkscape:connector-curvature=\"0\" />' + ' <path style=\"fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none\" id=\"path3088\" d=\"m 37.815923,255.49919 c 3.41111,0.1581 6.814569,0.2213 10.182693,0.8184 c 6.92998,2.6928 13.533527,6.2357 20.043462,9.8162 c 3.912139,2.1362 7.91195,4.4644 10.690321,8.0298 c 1.039962,1.2802 1.510411,2.7604 1.893523,4.3313 c 0,0 -20.370847,10.9259 -20.370847,10.9259 l 0,0 c -0.225419,-1.2711 -0.55067,-2.4558 -1.329618,-3.5184 c -2.332229,-3.3633 -5.869056,-5.6279 -9.247191,-7.8233 c -6.335066,-3.7106 -12.98611,-7.1834 -20.232784,-8.6836 c -3.497247,-0.3814 -7.011372,-0.4307 -10.521829,-0.1703 c 0,0 18.89227,-13.726 18.89227,-13.726 z\" inkscape:connector-curvature=\"0\" />' + '</svg>';\n },\n\n /**\r\n * @method\r\n * propagate all attributes like color, stroke,... to the shape element\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n if (this.svgNodes !== null) {\n this.svgNodes.attr({ fill: this.color.rgba() });\n }\n\n this._super(attributes);\n }\n\n}); /**\r\n * @class draw2d.shape.arrow.CalligrapherArrowDownLeft\r\n * Hand drawn arrow which points down left\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.arrow.CalligrapherArrowDownLeft({x:10,y:10, color:\"#3d3d3d\"});\r\n *\r\n * canvas.add(figure);\r\n *\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/arrow/CalligrapherArrowLeft.js\":\n/*!**************************************************!*\\\n !*** ./src/shape/arrow/CalligrapherArrowLeft.js ***!\n \\**************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.arrow.CalligrapherArrowLeft = _packages2.default.SVGFigure.extend({\n\n NAME: \"draw2d.shape.arrow.CalligrapherArrowLeft\",\n\n /**\r\n * @constructor\r\n * Creates a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr);\n },\n\n getSVG: function getSVG() {\n return '<svg width=\"230\" height=\"60\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">' + ' <path style=\"fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none\" id=\"path3024\" d=\"m 218.87943,27.464763 c -1.21088,-0.0563 -2.42064,-0.14616 -3.63262,-0.16893 c -5.82495,-0.10948 -18.61676,-0.0226 -22.97385,0.0122 c -7.12848,0.057 -14.25673,0.14021 -21.38495,0.22333 c -9.03765,0.10539 -18.07511,0.22813 -27.11266,0.3422 c -10.2269,0.11878 -20.4538,0.23756 -30.6807,0.35634 c -35.488759,0.4089 -70.975849,0.82793 -106.4669238,0.95195 c 0,0 7.9718628,-5.70244 7.9718628,-5.70244 l 0,0 c 6.374241,0.28694 12.745594,0.64561 19.122722,0.86083 c 28.09499,0.94816 56.21338,0.92473 84.315959,0.32205 c 10.51273,-0.32805 21.0288,-0.56402 31.53819,-0.98412 c 27.47361,-1.09824 54.91405,-2.91665 82.28177,-5.53697 c 0,0 -12.9788,9.32351 -12.9788,9.32351 z\" inkscape:connector-curvature=\"0\" />' + ' <path style=\"fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none\" id=\"path3026\" d=\"m 100.75066,1.6309831 c -7.165239,3.9571 -14.284929,7.47866 -22.036659,10.2707299 c -5.00195,1.80163 -10.10374,3.31886 -15.2402,4.79424 c -8.25878,2.37815 -16.55626,4.65805 -24.9012,6.79479 c -2.89107,0.71593 -5.74687,1.56407 -8.66266,2.20424 c -3.211679,0.70512 -6.49468,1.17333 -9.752959,1.6747 c -5.447101,0.92112 -10.9044008,1.81762 -16.3983488,2.50082 c -1.608931,0.0814 -0.850754,0.10697 -2.275834,-0.0365 C 20.004071,21.041553 19.256899,21.517873 32.515691,19.216243 c 6.21537,-1.05913 12.34875,-2.37668 18.3945,-4.03234 c 8.12719,-2.02803 16.23765,-4.1157 24.26421,-6.4321199 c 5.23574,-1.55053 10.41682,-3.15473 15.46857,-5.12875 c 1.38953,-0.54295 2.7579,-1.12682 4.12253,-1.71603 c 0.98421,-0.42496 3.86537,-1.81801999 2.92296,-1.32600999 C 93.642191,2.6934931 89.529511,4.7073031 85.450031,6.7704531 l 15.300629,-5.1394 z\" inkscape:connector-curvature=\"0\" sodipodi:nodetypes=\"csccsccccccsssccc\" />' + ' <path style=\"fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none\" id=\"path3028\" d=\"m 80.764281,58.068863 c -2.45498,-3.50762 -6.58178,-6.10525 -10.40324,-8.66732 c -4.30614,-2.72676 -7.93958,-6.28283 -12.6021,-8.28702 c -7.39912,-4.50257 -11.70055,-7.85592 -20.85866,-9.23429 c -4.9257,-0.85706 -17.294247,-1.32043 -22.226462,-2.15427 c -3.445882,-0.42869 -6.2035918,0.70541 -9.6845138,0.57715 c -1.496337,-0.0586 -2.99355,-0.0965 -4.491229,-0.12472 l 13.9525278,-6.24562 l 3.25,-1.17153 c 1.441459,0.0813 -1.116338,0.15309 0.325505,0.23016 c 3.574557,0.17902 7.211864,0.0695 10.712655,0.73822 c 4.723107,1.08097 9.443947,2.1624 14.234177,3.05317 c 2.76739,0.64203 3.92627,0.87082 6.64127,1.66289 c 4.42146,1.28993 8.60075,3.01513 12.86503,4.58129 c 1.90199,0.73446 5.05193,1.93181 6.89302,2.7216 c 4.92005,2.11061 9.5916,4.57045 13.9716,7.31023 c 4.16708,2.62011 8.48023,5.20033 11.72012,8.56863 z\" inkscape:connector-curvature=\"0\" sodipodi:nodetypes=\"ccccccccccccscsccc\" />' + '</svg>';\n },\n\n /**\r\n * @method\r\n * propagate all attributes like color, stroke,... to the shape element\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n if (this.svgNodes !== null) {\n this.svgNodes.attr({ fill: this.color.rgba() });\n }\n\n this._super(attributes);\n }\n\n}); /**\r\n * @class draw2d.shape.arrow.CalligrapherArrowLeft\r\n * Hand drawn arrow to the left.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.arrow.CalligrapherArrowLeft({x:10, y:10, color:\"#3d3d3d\"});\r\n *\r\n * canvas.add(figure);\r\n *\r\n * @extends draw2d.SVGFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Arc.js\":\n/*!********************************!*\\\n !*** ./src/shape/basic/Arc.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.basic.Arc\r\n * Oval figure.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let arc = new draw2d.shape.basic.Arc({diameter:150, x:50, y:10, startAngle:0, endAngle:45});\r\n *\r\n * canvas.add(arc);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.VectorFigure\r\n */\n_packages2.default.shape.basic.Arc = _packages2.default.SetFigure.extend({\n NAME: \"draw2d.shape.basic.Arc\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.startAngle = 180;\n this.endAngle = 360;\n\n this._super((0, _extend2.default)({ width: 80, height: 50, bgColor: null, color: \"#1B1B1B\" }, attr), setter, getter);\n this.strokeScale = false; // scale the stroke width of the children nodes if the parent resize\n },\n\n /**\r\n * @template\r\n **/\n createSet: function createSet() {\n this.canvas.paper.setStart();\n\n var flag = this.endAngle - this.startAngle > 180;\n var a1 = this.startAngle % 360 * Math.PI / 180;\n var a2 = this.endAngle % 360 * Math.PI / 180;\n\n var w2 = this.getWidth() / 2;\n var h2 = this.getHeight() / 2;\n\n this.canvas.paper.path([[\"M\", w2, h2, \"l\", w2 * Math.cos(a1), h2 * Math.sin(a1), \"A\", w2, h2, 0, +flag, 1, w2 + w2 * Math.cos(a2), h2 + h2 * Math.sin(a2), \"z\"]].join(\"\")).attr({ \"fill\": \"#fff0f0\" });\n\n return this.canvas.paper.setFinish();\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Circle.js\":\n/*!***********************************!*\\\n !*** ./src/shape/basic/Circle.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.basic.Circle\r\n * A circle figure with basic background and stroke API. <br>\r\n * A circle can not be streched. <strong>The aspect ration is always 1:1</strong>.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let shape = new draw2d.shape.basic.Circle({x:40,y:10, stroke:3, color:\"#3d3d3d\", bgColor:\"#3dff3d\"});\r\n *\r\n * canvas.add(shape);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Oval\r\n */\n_packages2.default.shape.basic.Circle = _packages2.default.shape.basic.Oval.extend({\n\n NAME: \"draw2d.shape.basic.Circle\",\n\n /**\r\n * @constructor\r\n * Create a new circle figure.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, (0, _extend2.default)({\n /** @attr {Number} diameter the diameter of the circle */\n diameter: this.setDiameter,\n /** @attr {Number} radius the radius of the circle */\n radius: this.setRadius\n }, setter), (0, _extend2.default)({\n diameter: this.getDiameter,\n radius: this.getRadius\n }, getter));\n\n this.setKeepAspectRatio(true);\n },\n\n /**\r\n * @method\r\n * Set the diameter of the circle. The center of the circle will be retained.\r\n *\r\n * @param {Number} d The new diameter of the circle.\r\n * @since 4.0.0\r\n **/\n setDiameter: function setDiameter(d) {\n var center = this.getCenter();\n this.setDimension(d, d);\n this.setCenter(center);\n this.fireEvent(\"change:diameter\", { value: d });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the diameter of the circle.\r\n *\r\n * @since 4.0.0\r\n **/\n getDiameter: function getDiameter() {\n return this.getWidth();\n },\n\n /**\r\n * @method\r\n * Set the radius of the circle. The center of the circle will be retained.\r\n *\r\n * @param {Number} d The new radius of the circle.\r\n * @since 4.0.0\r\n **/\n setRadius: function setRadius(r) {\n this.setDiameter(r * 2);\n this.fireEvent(\"change:radius\", { value: r });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n // delete the radius attribute of the parent. Because the \"radius\" is the corner radius\n // of the shape and not the \"radius\" of the circle. Design flaw. :-/\n delete memento.radius;\n\n return memento;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Diamond.js\":\n/*!************************************!*\\\n !*** ./src/shape/basic/Diamond.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.Diamond = _packages2.default.shape.basic.Polygon.extend({\n NAME: \"draw2d.shape.basic.Diamond\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ bgColor: \"#00a3f6\", color: \"#1B1B1B\" }, attr), setter, getter);\n\n var pos = this.getPosition();\n\n this.resetVertices();\n\n var box = this.getBoundingBox();\n this.addVertex(box.w / 2, 0); // Go to the top center..\n this.addVertex(box.w, box.h / 2); // ...draw line to the right middle\n this.addVertex(box.w / 2, box.h); // ...bottom center...\n this.addVertex(0, box.h / 2); // ...left middle...\n\n // override the selection handler from the polygon. Because the vertices of\n // the diamond are not selectable and modifiable\n //\n this.installEditPolicy(new _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy());\n\n this.setPosition(pos);\n }\n\n}); /**\r\n * @class draw2d.shape.basic.Diamond\r\n * A Diamond Figure.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let d1 = new draw2d.shape.basic.Diamond({x:10,y:10});\r\n * let d2 = new draw2d.shape.basic.Diamond({x:100,y:10, bgColor:\"#f0f000\", alpha:0.7, width:100, height:60});\r\n *\r\n * canvas.add(d1);\r\n * canvas.add(d2);\r\n *\r\n * canvas.setCurrentSelection(d2);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.VectorFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/GhostVertexResizeHandle.js\":\n/*!****************************************************!*\\\n !*** ./src/shape/basic/GhostVertexResizeHandle.js ***!\n \\****************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.GhostVertexResizeHandle = _packages2.default.shape.basic.LineResizeHandle.extend({\n NAME: \"draw2d.shape.basic.GhostVertexResizeHandle\",\n\n init: function init(owner, precursorIndex) {\n this.maxOpacity = 0.35;\n this.precursorIndex = precursorIndex;\n\n this._super({ owner: owner, opacity: this.maxOpacity });\n },\n\n createShapeElement: function createShapeElement() {\n var shape = this._super();\n\n shape.attr({ \"cursor\": \"pointer\" });\n\n return shape;\n },\n\n /**\r\n * @method\r\n * Set the alpha blending of this figure.\r\n *\r\n * @param {Number} percent Value between [0..1].\r\n * @template\r\n **/\n setAlpha: function setAlpha(percent) {\n this._super(Math.min(this.maxOpacity, Math.max(0, parseFloat(percent))));\n\n return this;\n },\n\n /**\r\n * @method\r\n * Called when a user clicks on the element\r\n *\r\n * @template\r\n */\n onClick: function onClick() {\n var cmd = new _packages2.default.command.CommandAddVertex(this.owner, this.precursorIndex + 1, this.getAbsoluteX() + this.getWidth() / 2, this.getAbsoluteY() + this.getHeight() / 2);\n this.getCanvas().getCommandStack().execute(cmd);\n },\n\n /**\r\n * Called if the drag and drop action begins. You can return [false] if you\r\n * want avoid the that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @type {Boolean}\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n return true;\n },\n\n /**\r\n * @method\r\n * Called from the framework during a drag&drop operation\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @return {Boolean}\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n return true;\n },\n\n /**\r\n * @method Called after a drag and drop action.<br>\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call the super implementation via <code>this._super();</code>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean}\r\n */\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragend\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n return true;\n },\n\n /**\r\n * @method\r\n * Controls the location of the resize handle\r\n *\r\n * @template\r\n **/\n relocate: function relocate() {\n var p1 = this.owner.getVertices().get(this.precursorIndex);\n var p2 = this.owner.getVertices().get(this.precursorIndex + 1);\n\n this.setPosition((p2.x - p1.x) / 2 + p1.x - this.getWidth() / 2, (p2.y - p1.y) / 2 + p1.y - this.getHeight() / 2);\n }\n\n}); /**\r\n * @class draw2d.shape.basic.GhostVertexResizeHandle\r\n * ResizeHandle for a vertex edit policy. Click of this kind of resize handles\r\n * adds a new vertex to the polyline or polygon.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.LineResizeHandle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Image.js\":\n/*!**********************************!*\\\n !*** ./src/shape/basic/Image.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.basic.Image\r\n * Simple Image shape.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.node.Node\r\n */\n_packages2.default.shape.basic.Image = _packages2.default.shape.node.Node.extend({\n NAME: \"draw2d.shape.basic.Image\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, (0, _extend2.default)({\n /** @attr {String} path the image path (absolute or relative) of the shape */\n path: this.setPath\n }, setter), (0, _extend2.default)({\n path: this.getPath\n }, getter));\n },\n\n /**\r\n * @method\r\n * Set the image path attribute of the Image shape and repaint them.\r\n * The path can be relative or absolute\r\n *\r\n * @param path\r\n * @since 2.8.0\r\n */\n setPath: function setPath(path) {\n this.path = path;\n\n if (this.shape !== null) {\n this.shape.attr({ src: this.path });\n }\n this.fireEvent(\"change:path\", { value: this.path });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the image path attribute of the shape.\r\n *\r\n * @returns {String}\r\n * @since 2.8.0\r\n */\n getPath: function getPath() {\n return this.path;\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return this;\n }\n\n attributes = attributes || {};\n\n attributes.x = this.getAbsoluteX();\n attributes.y = this.getAbsoluteY();\n attributes.width = this.getWidth();\n attributes.height = this.getHeight();\n attributes.src = this.path;\n\n // propagate the width/height and the display:inline-block as CSS attribute as well because Chrome\n // did some \"flickering\" in some versions and sometimes the image disappear complete\n $(this.shape.node).css({ display: \"inline-block\", \"width\": attributes.width, \"height\": attributes.height });\n\n this._super(attributes);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createShapeElement: function createShapeElement() {\n return this.canvas.paper.image(this.path, this.getX(), this.getY(), this.getWidth(), this.getHeight());\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n return (0, _extend2.default)(this._super(), {\n path: this.path\n });\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n if (typeof memento.path !== \"undefined\") {\n this.setPath(memento.path);\n }\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Label.js\":\n/*!**********************************!*\\\n !*** ./src/shape/basic/Label.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! ../../util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.Label = _packages2.default.SetFigure.extend({\n\n NAME: \"draw2d.shape.basic.Label\",\n\n FONT_FALLBACK: {\n 'Georgia': 'Georgia, serif',\n 'Palatino Linotype': '\"Palatino Linotype\", \"Book Antiqua\", Palatino, serif',\n 'Times New Roman': '\"Times New Roman\", Times, serif',\n 'Arial': 'Arial, Helvetica, sans-serif',\n 'Arial Black': '\"Arial Black\", Gadget, sans-serif',\n 'Comic Sans MS': '\"Comic Sans MS\", cursive, sans-serif',\n 'Impact': 'Impact, Charcoal, sans-serif',\n 'Lucida Sans Unicode': '\"Lucida Sans Unicode\", \"Lucida Grande\", sans-serif',\n 'Tahoma, Geneva': 'Tahoma, Geneva, sans-seri',\n 'Trebuchet MS': '\"Trebuchet MS\", Helvetica, sans-serif',\n 'Verdana': 'Verdana, Geneva, sans-serif',\n 'Courier New': '\"Courier New\", Courier, monospace',\n 'Lucida Console': '\"Lucida Console\", Monaco, monospace'\n },\n\n /**\r\n * @constructor\r\n * Creates a new text element.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n\n this.text = \"\";\n // for performance reasons\n //\n this.cachedWidth = null;\n this.cachedHeight = null;\n this.cachedMinWidth = null;\n this.cachedMinHeight = null;\n\n // appearance of the shape\n //\n this.fontSize = 12;\n this.fontColor = new _packages2.default.util.Color(\"#080808\");\n this.fontFamily = null;\n this.padding = { top: 4, right: 4, bottom: 4, left: 4 };\n\n this.outlineStroke = 0;\n this.outlineColor = new _packages2.default.util.Color(null);\n\n this.bold = false;\n\n // behavior of the shape\n //\n this.editor = null;\n\n this._super((0, _extend2.default)({ stroke: 1, width: 1, height: 1, resizeable: false }, attr), (0, _extend2.default)({\n /** @attr {String} text the text to show */\n text: this.setText,\n /** @attr {String} set the editor to use see {@link draw2d.ui.LabelEditor} */\n editor: this.installEditor,\n /** @attr {Number} outlineStroke the line width of the text to draw. Fill color and outline of the text can be different. */\n outlineStroke: this.setOutlineStroke,\n /** @attr {String|draw2d.util.Color} outlineColor the outline color of the text */\n outlineColor: this.setOutlineColor,\n /** @attr {String} fontFamily the font to use*/\n fontFamily: this.setFontFamily,\n /** @attr {Number} fontSize the font size to use */\n fontSize: this.setFontSize,\n /** @attr {String|draw2d.util.Color} fontColor the font color */\n fontColor: this.setFontColor,\n /** @attr {Number} padding the padding in pixel around the text */\n padding: this.setPadding,\n /** @attr {Boolean} bold indicator if bold text should be used*/\n bold: this.setBold\n }, setter), (0, _extend2.default)({\n text: this.getText,\n outlineStroke: this.getOutlineStroke,\n outlineColor: this.getOutlineColor,\n fontFamily: this.getFontFamily,\n fontSize: this.getFontSize,\n fontColor: this.getFontColor,\n padding: this.getPadding,\n bold: this.isBold\n }, getter));\n\n this.installEditPolicy(new _packages2.default.policy.figure.AntSelectionFeedbackPolicy());\n\n // some performance improvements\n this.lastAppliedLabelRotation = \"\";\n this.lastAppliedTextAttributes = {};\n },\n\n /**\r\n * @method\r\n * Creates the shape object for a text node.\r\n *\r\n * @template\r\n **/\n createSet: function createSet() {\n return this.canvas.paper.text(0, 0, this.text);\n },\n\n /**\r\n * @method\r\n * Set the canvas element of this figures.\r\n *\r\n * @param {draw2d.Canvas} canvas the new parent of the figure or null\r\n */\n setCanvas: function setCanvas(canvas) {\n this.clearCache();\n this._super(canvas);\n this.clearCache();\n },\n\n /**\r\n * @method\r\n * Trigger the repaint of the element and transport all style properties to the visual representation.<br>\r\n * Called by the framework.\r\n *\r\n * @template\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null || this.parent && this.parent.repaintBlocked === true) {\n return;\n }\n\n // style the label\n var lattr = this.calculateTextAttr();\n lattr.text = this.text;\n\n var attrDiff = _JSONUtil2.default.flatDiff(lattr, this.lastAppliedTextAttributes);\n this.lastAppliedTextAttributes = lattr;\n\n // the two \"attr\" calls takes 2/3 of the complete method call (chrome performance check).\n // now we check if any changes happens and call this method only if neccessary.\n if (Object.getOwnPropertyNames(attrDiff).length > 0) {\n this.svgNodes.attr(lattr);\n // set of the x/y must be done AFTER the font-size and bold has been set.\n // Reason: the getBBox method needs the font attributes for calculation\n this.svgNodes.attr({\n x: this.padding.left + this.stroke,\n y: this.svgNodes.getBBox(true).height / 2 + this.padding.top + this.getStroke()\n });\n }\n this._super(attributes);\n },\n\n /**\r\n *\r\n * @protected\r\n */\n calculateTextAttr: function calculateTextAttr() {\n var lattr = {\n \"text-anchor\": \"start\",\n \"font-size\": this.fontSize,\n \"font-weight\": this.bold === true ? \"bold\" : \"normal\",\n fill: this.fontColor.rgba(),\n stroke: this.outlineColor.rgba(),\n \"stroke-width\": this.outlineStroke\n };\n if (this.fontFamily !== null) {\n lattr[\"font-family\"] = this.fontFamily;\n }\n return lattr;\n },\n\n /**\r\n * @private\r\n */\n applyTransformation: function applyTransformation() {\n var ts = \"R\" + this.rotationAngle;\n // if(ts!==this.lastAppliedLabelRotation){\n this.shape.transform(ts);\n this.lastAppliedLabelRotation = ts;\n // }\n\n this.svgNodes.transform(\"R\" + this.rotationAngle + \"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the new font size in [pt].\r\n *\r\n * @param {Number} size The new font size in <code>pt</code>\r\n **/\n setFontSize: function setFontSize(size) {\n this.clearCache();\n this.fontSize = size;\n\n this.repaint();\n\n this.fireEvent(\"change:fontSize\", { value: this.fontSize });\n this.fireEvent(\"resize\");\n\n // Update the resize handles if the user change the position of the element via an API call.\n //\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the current used font size in px.\r\n *\r\n * @returns {Number}\r\n * @since 4.0.1\r\n */\n getFontSize: function getFontSize() {\n return this.fontSize;\n },\n\n /**\r\n * @method\r\n * Set the label to <b>bold</b> or <b>normal</b> font weight.\r\n *\r\n * @param {Boolean} bold The bold flag for the label\r\n * @since 2.4.1\r\n **/\n setBold: function setBold(bold) {\n this.clearCache();\n this.bold = bold;\n this.repaint();\n\n this.fireEvent(\"change:bold\", { value: this.bold });\n this.fireEvent(\"resize\");\n\n // Update the resize handles if the user change the position of the element via an API call.\n //\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the \"bold\" attribute of the label\r\n *\r\n * @since 5.0.0\r\n * @returns {Boolean}\r\n */\n isBold: function isBold() {\n return this.bold;\n },\n\n /**\r\n * @method\r\n * Set the outline color of the font.\r\n *\r\n * @param {draw2d.util.Color/String} color The new color of the line.\r\n * @since 4.2.1\r\n **/\n setOutlineColor: function setOutlineColor(color) {\n this.outlineColor = new _packages2.default.util.Color(color);\n this.repaint();\n this.fireEvent(\"change:outlineColor\", { value: this.outlineColor });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The outlien color of the text\r\n *\r\n * @returns {draw2d.util.Color}\r\n * @since 4.2.1\r\n */\n getOutlineColor: function getOutlineColor() {\n return this.outlineColor;\n },\n\n /**\r\n * @method\r\n * Set the stroke of the text to use.\r\n *\r\n * @param {Number} w The new line width of the figure\r\n * @since 4.2.1\r\n **/\n setOutlineStroke: function setOutlineStroke(w) {\n this.outlineStroke = w;\n this.repaint();\n this.fireEvent(\"change:outlineStroke\", { value: this.outlineStroke });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The used outline line width.\r\n *\r\n * @type {Number}\r\n * @since 4.2.1\r\n **/\n getOutlineStroke: function getOutlineStroke() {\n return this.outlineStroke;\n },\n\n /**\r\n * @method\r\n * Set the color of the font.\r\n *\r\n * @param {draw2d.util.Color|String} color The new color of the line.\r\n **/\n setFontColor: function setFontColor(color) {\n this.fontColor = new _packages2.default.util.Color(color);\n this.repaint();\n this.fireEvent(\"change:fontColor\", { value: this.fontColor });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The current used font color\r\n *\r\n * @returns {draw2d.util.Color}\r\n */\n getFontColor: function getFontColor() {\n return this.fontColor;\n },\n\n /**\r\n * @method\r\n * Set the padding of the element\r\n *\r\n * // Alternatively you can use the attr method:\r\n * //\r\n * // set the padding for top,left,bottom,right in one call\r\n * figure.attr({\r\n * padding: 3\r\n * });\r\n *\r\n * // update the padding left and top\r\n * figure.attr({\r\n * padding: {left:3, top:30}\r\n * });\r\n *\r\n * @param {Number|Object} padding The new padding\r\n **/\n setPadding: function setPadding(padding) {\n this.clearCache();\n if (typeof padding === \"number\") {\n this.padding = { top: padding, right: padding, bottom: padding, left: padding };\n } else {\n this.padding = (0, _extend2.default)(this.padding, padding);\n }\n this.repaint();\n this.fireEvent(\"change:padding\", { value: this.padding });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the padding of the element.\r\n *\r\n * @since 4.0.1\r\n **/\n getPadding: function getPadding() {\n return this.padding;\n },\n\n /**\r\n * @method\r\n * Set the font family to use. If you use the shown font names the typical fallback\r\n * font are installed as well.\r\n *\r\n * <b>Serif Fonts</b>\r\n * <ul>\r\n * <li><span style=\"font-family:'Georgia'\">Georgia</span></li>\r\n * <li><span style=\"font-family:'Palatino Linotype'\">Palatino Linotype</span></li>\r\n * <li><span style=\"font-family:'Times New Roman'\">Times New Roman</span></li>\r\n * </ul>\r\n *\r\n * <b>Sans-Serif Fonts</b>\r\n * <ul>\r\n * <li><span style=\"font-family:'Arial'\">Arial</span></li>\r\n * <li><span style=\"font-family:'Arial Black'\">Arial Black</span></li>\r\n * <li><span style=\"font-family:'Comic Sans MS'\">Comic Sans MS</span></li>\r\n * <li><span style=\"font-family:'Impact, Charcoal'\">Impact, Charcoal</span></li>\r\n * <li><span style=\"font-family:'Lucida Sans Unicode'\">Lucida Sans Unicode</span></li>\r\n * <li><span style=\"font-family:'Tahoma, Geneva'\">Tahoma, Geneva</span></li>\r\n * <li><span style=\"font-family:'Trebuchet MS'\">Trebuchet MS</span> </li>\r\n * <li><span style=\"font-family:'Verdana'\">Verdana</span></li>\r\n * </ul>\r\n *\r\n * <b>Monospace Fonts</b>\r\n * <ul>\r\n * <li><span style=\"font-family:'Courier New'\">Courier New</span></li>\r\n * <li><span style=\"font-family:'Lucida Console'\">Lucida Console</span></li>\r\n * </ul>\r\n *\r\n * @param {String} font The font to use\r\n **/\n setFontFamily: function setFontFamily(font) {\n this.clearCache();\n\n // check for fallback\n //\n if (typeof font !== \"undefined\" && font !== null && typeof this.FONT_FALLBACK[font] !== \"undefined\") {\n font = this.FONT_FALLBACK[font];\n }\n\n this.fontFamily = font;\n this.repaint();\n this.fireEvent(\"change:fontFamily\", { value: this.fontFamily });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the used font family of the label.\r\n *\r\n * @returns {String}\r\n */\n getFontFamily: function getFontFamily() {\n return this.fontFamily;\n },\n\n /**\r\n * @method\r\n * A Label did have \"autosize\". Do nothing at all.\r\n *\r\n **/\n setDimension: function setDimension(w, h) {\n this.clearCache();\n\n this._super(w, h);\n\n return this;\n },\n\n /**\r\n * @method\r\n * clear the internal cache for width/height precalculation\r\n * @private\r\n */\n clearCache: function clearCache() {\n this.portRelayoutRequired = true;\n this.cachedMinWidth = null;\n this.cachedMinHeight = null;\n this.cachedWidth = null;\n this.cachedHeight = null;\n this.lastAppliedTextAttributes = {};\n\n return this;\n },\n\n /**\r\n * @method\r\n * This value is relevant for the interactive resize of the figure.\r\n *\r\n * @return {Number} Returns the min. width of this object.\r\n */\n getMinWidth: function getMinWidth() {\n if (this.shape === null) {\n return 0;\n }\n\n if (this.cachedMinWidth === null) {\n this.cachedMinWidth = this.svgNodes.getBBox(true).width + this.padding.left + this.padding.right + 2 * this.getStroke();\n }\n\n return this.cachedMinWidth;\n },\n\n /**\r\n * @method\r\n * This value is relevant for the interactive resize of the figure.\r\n *\r\n * @return {Number} Returns the min. width of this object.\r\n */\n getMinHeight: function getMinHeight() {\n if (this.shape === null) {\n return 0;\n }\n\n if (this.cachedMinHeight === null) {\n this.cachedMinHeight = this.svgNodes.getBBox(true).height + this.padding.top + this.padding.bottom + 2 * this.getStroke();\n }\n\n return this.cachedMinHeight;\n },\n\n /**\r\n * @method\r\n * Return the calculate width of the set. This calculates the bounding box of all elements.\r\n *\r\n * @return {Number} the calculated width of the label\r\n **/\n getWidth: function getWidth() {\n if (this.shape === null) {\n return 0;\n }\n\n if (this.cachedWidth === null) {\n if (this.resizeable === true) {\n this.cachedWidth = Math.max(this.width, this.getMinWidth());\n } else {\n this.cachedWidth = this.getMinWidth();\n }\n }\n\n return this.cachedWidth;\n },\n\n /**\r\n * @method\r\n * Return the calculated height of the set. This calculates the bounding box of all elements.\r\n *\r\n * @return {Number} the calculated height of the label\r\n */\n getHeight: function getHeight() {\n if (this.shape === null) {\n return 0;\n }\n\n if (this.cachedHeight === null) {\n this.cachedHeight = Math.max(this.height, this.getMinHeight());\n }\n\n return this.cachedHeight;\n },\n\n /**\r\n * @method\r\n * Set an editor for the label. This can be a dialog or inplace editor for the\r\n * Text.<br>\r\n * The editor will be activated if you doubleClick on the label.\r\n *\r\n * @param {draw2d.ui.LabelEditor|String} editor\r\n */\n installEditor: function installEditor(editor) {\n if (typeof editor === \"string\") {\n editor = eval(\"new \" + editor + \"()\");\n }\n this.editor = editor;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Called when a user dbl clicks on the element\r\n *\r\n */\n onDoubleClick: function onDoubleClick() {\n if (this.editor !== null) {\n this.editor.start(this);\n }\n },\n\n /**\r\n * @method\r\n * Returns the current text of the label.\r\n *\r\n * @returns the current display text of the label\r\n * @type {String}\r\n **/\n getText: function getText() {\n return this.text;\n },\n\n /**\r\n * @method\r\n * Set the text for the label. Use \\n for multiline text.\r\n *\r\n * @param {String} text The new text for the label.\r\n **/\n setText: function setText(text) {\n this.clearCache();\n this.text = text;\n\n this.repaint();\n // Update the resize handles if the user change the position of the element via an API call.\n //\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.fireEvent(\"resize\");\n this.fireEvent(\"change:text\", { value: this.text });\n\n if (this.parent !== null) {\n this.parent.repaint();\n }\n\n return this;\n },\n\n hitTest: function hitTest(x, y) {\n // apply a simple bounding box test if the label isn'T rotated\n //\n if (this.rotationAngle === 0) {\n return this._super(x, y);\n }\n\n // rotate the box with the current matrix of the\n // shape\n var matrix = this.shape.matrix;\n var points = this.getBoundingBox().getVertices();\n points.each(function (i, point) {\n var x = matrix.x(point.x, point.y);\n var y = matrix.y(point.x, point.y);\n point.x = x;\n point.y = y;\n });\n\n var polySides = 4;\n\n var j = polySides - 1;\n var oddNodes = false;\n\n for (var i = 0; i < polySides; i++) {\n var pi = points.get(i);\n var pj = points.get(j);\n if ((pi.y < y && pj.y >= y || pj.y < y && pi.y >= y) && (pi.x <= x || pj.x <= x)) {\n if (pi.x + (y - pi.y) / (pj.y - pi.y) * (pj.x - pi.x) < x) {\n oddNodes = !oddNodes;\n }\n }\n j = i;\n }\n return oddNodes;\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n memento.text = this.text;\n memento.outlineStroke = this.outlineStroke;\n memento.outlineColor = this.outlineColor.rgba();\n memento.fontSize = this.fontSize;\n memento.fontColor = this.fontColor.rgba();\n memento.fontFamily = this.fontFamily;\n\n if (this.editor !== null) {\n memento.editor = this.editor.NAME;\n }\n return memento;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n * @returns\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n if (typeof memento.text !== \"undefined\") {\n this.setText(memento.text);\n }\n if (typeof memento.outlineStroke !== \"undefined\") {\n this.setOutlineStroke(memento.outlineStroke);\n }\n if (typeof memento.outlineColor !== \"undefined\") {\n this.setOutlineColor(memento.outlineColor);\n }\n if (typeof memento.fontFamily !== \"undefined\") {\n this.setFontFamily(memento.fontFamily);\n }\n if (typeof memento.fontSize !== \"undefined\") {\n this.setFontSize(memento.fontSize);\n }\n if (typeof memento.fontColor !== \"undefined\") {\n this.setFontColor(memento.fontColor);\n }\n\n if (typeof memento.editor === \"string\") {\n this.installEditor(eval(\"new \" + memento.editor + \"()\"));\n }\n }\n\n}); /**\r\n * @class draw2d.shape.basic.Label\r\n * Implements a simple text label.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let shape = new draw2d.shape.basic.Label({text:\"This is a simple label\", x:40, y:10});\r\n *\r\n * canvas.add(shape);\r\n *\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.SetFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Line.js\":\n/*!*********************************!*\\\n !*** ./src/shape/basic/Line.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! ../../util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /**\r\n * @class draw2d.shape.basic.Line\r\n * The base class for all visible elements inside a canvas.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // Create the line and modify the start/end after inserting them into\r\n * // the canvas\r\n * let line1 = new draw2d.shape.basic.Line({startX:30, startY:30, endX:100, endY:80});\r\n *\r\n * canvas.add(line1);\r\n *\r\n * // Create the line with a given start/end coordinate in the constructor\r\n * //\r\n * let line2 = new draw2d.shape.basic.Line({\r\n * startX:20,\r\n * startY:80,\r\n * endX:200,\r\n * endY:150,\r\n * stroke:3,\r\n * color:\"#1d1dff\"\r\n * });\r\n * canvas.add(line2);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.Figure\r\n */\n\n\n_packages2.default.shape.basic.Line = _packages2.default.Figure.extend({\n NAME: \"draw2d.shape.basic.Line\",\n\n DEFAULT_COLOR: new _packages2.default.util.Color(0, 0, 0),\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas witht he given start and\r\n * end coordinate.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // click area for the line hit test\n this.corona = 10;\n this.isGlowing = false;\n this.lineColor = this.DEFAULT_COLOR;\n this.stroke = 1;\n this.outlineStroke = 0;\n this.outlineColor = new _packages2.default.util.Color(null);\n this.outlineVisible = false;\n\n this.draggedSegment = null;\n\n this.dasharray = null;\n\n this.start = new _packages2.default.geo.Point(30, 30);\n this.end = new _packages2.default.geo.Point(100, 100);\n\n this.vertices = new _packages2.default.util.ArrayList();\n this.vertices.add(this.start.clone());\n this.vertices.add(this.end.clone());\n\n this._super((0, _extend2.default)({\n deleteable: false,\n selectable: true\n }, attr), (0, _extend2.default)({}, {\n /** @attr {Number} start the coordinates of the start point */\n start: this.setStartPosition,\n /** @attr {Number} startX the x coordinate of the start point */\n startX: this.setStartX,\n /** @attr {Number} startY the y coordinate of the start point */\n startY: this.setStartY,\n /** @attr {Number} end the coordinates of the end point */\n end: this.setEndPosition,\n /** @attr {Number} endX the x coordinate of the end */\n endX: this.setEndX,\n /** @attr {Number} endY the y coordinate of the end */\n endY: this.setEndY,\n /** @attr {Number} vertices the x coordinate of the start point */\n vertices: this.setVertices,\n /** @attr {String | draw2d.util.Color} outlineColor the outline color of the line */\n outlineColor: this.setOutlineColor,\n /** @attr {Number} outlineStroke the line width of the outline */\n outlineStroke: this.setOutlineStroke,\n /** @attr {String|draw2d.util.Color} color the color of the line */\n color: this.setColor,\n /** @attr {Number} stroke the line width of the color */\n stroke: this.setStroke,\n /** @attr {String} dasharray the line pattern see {@link draw2d.shape.basic.Line#setDashArray} for more information*/\n dasharray: this.setDashArray,\n /** @attr {Boolean} glow the glow flag for the shape. The representation of the \"glow\" depends on the shape */\n glow: this.setGlow\n }, setter), (0, _extend2.default)({}, {\n start: this.getStartPosition,\n end: this.getEndPosition,\n outlineColor: this.getOutlineColor,\n outlineStroke: this.getOutlineStroke,\n stroke: this.getStroke,\n color: this.getColor,\n dasharray: this.getDashArray,\n vertices: this.getVertices\n }, getter));\n\n // some router installs a edit policy. In this case we want delete them\n //\n if (this.editPolicy.getSize() === 0) {\n this.installEditPolicy(new _packages2.default.policy.line.LineSelectionFeedbackPolicy());\n }\n },\n\n /**\r\n * @method\r\n * Set the outline color of the line.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * outlineColor: color\r\n * });\r\n *\r\n * @param {draw2d.util.Color/String} color The new color of the line.\r\n * @since 4.2.1\r\n **/\n setOutlineColor: function setOutlineColor(color) {\n this.outlineColor = new _packages2.default.util.Color(color);\n this.repaint();\n this.fireEvent(\"change:outlineColor\", { value: this.outlineColor });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The outline color of the text\r\n *\r\n * @returns {draw2d.util.Color}\r\n * @since 4.2.1\r\n */\n getOutlineColor: function getOutlineColor() {\n return this.outlineColor;\n },\n\n /**\r\n * @method\r\n * Set the outline stroke of the line to use.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * outlineStroke: w\r\n * });\r\n *\r\n * @param {Number} w The new outline width of the line\r\n * @since 4.2.1\r\n **/\n setOutlineStroke: function setOutlineStroke(w) {\n this.outlineStroke = w;\n this.repaint();\n this.fireEvent(\"change:outlineStroke\", { value: this.outlineStroke });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The used outline line width.\r\n *\r\n * @returns {Number}\r\n * @since 4.2.1\r\n **/\n getOutlineStroke: function getOutlineStroke() {\n return this.outlineStroke;\n },\n\n /**\r\n * @method\r\n * Called if the drag and drop action begins. You can return [false] if you\r\n * want avoid that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} true if the figure accepts dragging\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey, isFaked) {\n var result = this._super(x, y, shiftKey, ctrlKey);\n\n if (result === true && isFaked !== true) {\n this.draggedSegment = { index: 0, start: this.start, end: this.end };\n }\n return result;\n },\n\n /**\r\n * @method\r\n * Don't call them manually. This will be done by the framework.<br>\r\n * Will be called if the object are moved via drag and drop.\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call\r\n * the super implementation via <code>this._super(dx, dy, dx2, dy2);</code>\r\n * @private\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n if (this.command === null) {\n return;\n }\n\n this.vertices.each(function (i, e) {\n e.translate(dx2, dy2);\n });\n this.command.updateVertices(this.vertices.clone());\n\n // start/end are separate draw2d.geo.Point objects. Required for routing and determining if a node is dragged away\n // from the connection. In this case we must modify the start/end by hand\n this.start.translate(dx2, dy2);\n this.end.translate(dx2, dy2);\n\n this.svgPathString = null;\n this._super(dx, dy, dx2, dy2);\n },\n\n /**\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n var _this2 = this;\n\n // Element ist zwar schon an seine Position, das Command muss aber trotzdem\n // in dem CommandStack gelegt werden damit das Undo funktioniert.\n //\n this.isInDragDrop = false;\n this.draggedSegment = null;\n\n if (this.command === null) {\n return;\n }\n\n this.canvas.getCommandStack().execute(this.command);\n this.command = null;\n this.isMoving = false;\n\n // notify all installed policies\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.onDragEnd(_this2.canvas, _this2, x, y, shiftKey, ctrlKey);\n }\n });\n\n // inform all other listener\n this.fireEvent(\"move\", { figure: this, dx: 0, dy: 0 });\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragend\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n },\n\n /**\r\n * @method\r\n * Called when a user clicks on the element.\r\n *\r\n * // Alternatively you can register for this event with\r\n * figure.on(\"click\", function(emitterFigure){\r\n * alert(\"clicked\");\r\n * });\r\n *\r\n * @template\r\n * @since 4.0.0\r\n */\n onClick: function onClick() {},\n\n /**\r\n * @method\r\n * Set the line style for this object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * dasharray: dashPattern\r\n * });\r\n *\r\n * @param {String} dashPattern Can be one of this [\"\", \"-\", \".\", \"-.\", \"-..\", \". \", \"- \", \"--\", \"- .\", \"--.\", \"--..\"]\r\n */\n setDashArray: function setDashArray(dashPattern) {\n this.dasharray = dashPattern;\n this.repaint();\n\n this.fireEvent(\"change:dashArray\", { value: this.dasharray });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the line style for this object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr(\"dasharray\");\r\n *\r\n * @since 5.1.0\r\n */\n getDashArray: function getDashArray() {\n return this.dasharray;\n },\n\n /**\r\n * @method\r\n * Set the width for the click hit test of this line.\r\n *\r\n * @param {Number} width the width of the line hit test.\r\n **/\n setCoronaWidth: function setCoronaWidth(width) {\n this.corona = width;\n\n return this;\n },\n\n /**\r\n * @method\r\n * Called by the framework. Don't call them manually.\r\n *\r\n * @private\r\n **/\n createShapeElement: function createShapeElement() {\n var set = this.canvas.paper.set();\n\n // the drop shadow or border line\n set.push(this.canvas.paper.path(\"M\" + this.start.x + \" \" + this.start.y + \"L\" + this.end.x + \" \" + this.end.y));\n // the main path\n set.push(this.canvas.paper.path(\"M\" + this.start.x + \" \" + this.start.y + \"L\" + this.end.x + \" \" + this.end.y));\n set.node = set.items[1].node;\n\n // indicate that the outline is visible at the moment\n // the repaint update the status correct and set the attributes for\n // the first time\n this.outlineVisible = true; //this.outlineStroke>0;\n\n return set;\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n // don't override existing values\n //\n if (typeof attributes === \"undefined\") {\n attributes = {\n \"stroke\": this.lineColor.rgba(),\n \"stroke-width\": this.stroke,\n \"path\": [\"M\", this.start.x, this.start.y, \"L\", this.end.x, this.end.y].join(\" \")\n };\n } else {\n // may a router has calculate another path. don't override them.\n if (typeof attributes.path === \"undefined\") {\n attributes.path = [\"M\", this.start.x, this.start.y, \"L\", this.end.x, this.end.y].join(\" \");\n }\n _JSONUtil2.default.ensureDefault(attributes, \"stroke\", this.lineColor.rgba());\n _JSONUtil2.default.ensureDefault(attributes, \"stroke-width\", this.stroke);\n }\n\n _JSONUtil2.default.ensureDefault(attributes, \"stroke-dasharray\", this.dasharray);\n this._super(attributes);\n\n if (this.outlineStroke > 0) {\n this.shape.items[0].attr({\n \"stroke-width\": this.outlineStroke + this.stroke,\n \"stroke\": this.outlineColor.rgba()\n });\n if (this.outlineVisible === false) this.shape.items[0].show();\n this.outlineVisible = true;\n } else if (this.outlineVisible === true) {\n // reset them once\n this.shape.items[0].attr({ \"stroke-width\": 0, \"stroke\": \"none\" });\n this.shape.items[0].hide();\n this.outlineVisible = false;\n }\n },\n\n /**\r\n * @method\r\n * Moves the element to the background. Additional\r\n * the internal model changed as well.\r\n *\r\n * @since 4.7.2\r\n */\n toBack: function toBack(figure) {\n this._super(figure);\n\n if (this.outlineVisible === true) {\n this.shape.items[0].insertBefore(this.shape.items[1]);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Highlight the element or remove the highlighting\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * glow: flag\r\n * });\r\n *\r\n * @param {Boolean} flag indicates glow/noGlow\r\n * @template\r\n */\n setGlow: function setGlow(flag) {\n if (this.isGlowing === flag) {\n return;\n }\n\n if (flag === true) {\n // store old values for restore\n this._lineColor = this.lineColor;\n this._stroke = this.stroke;\n\n this.setColor(new _packages2.default.util.Color(\"#3f72bf\"));\n this.setStroke(this.stroke * 4 | 0);\n } else {\n this.setColor(this._lineColor);\n this.setStroke(this._stroke);\n }\n\n this.isGlowing = flag;\n\n return this;\n },\n\n /**\r\n * You can't drag&drop the resize handles if the line not resizeable.\r\n * @returns boolean\r\n **/\n isResizeable: function isResizeable() {\n return true;\n },\n\n /**\r\n * Set the line width. This enforce a repaint of the line.\r\n * This method fires a <i>document dirty</i> event.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * stroke: w\r\n * });\r\n *\r\n * @param {Number} w The new line width of the figure.\r\n **/\n setStroke: function setStroke(w) {\n this.stroke = parseFloat(w);\n\n this.repaint();\n this.fireEvent(\"change:stroke\", { value: this.stroke });\n\n return this;\n },\n\n /**\r\n * @method\r\n * The used line width.\r\n *\r\n * @returns {Number}\r\n **/\n getStroke: function getStroke() {\n return this.stroke;\n },\n\n /**\r\n * @method\r\n * Set the color of the line.\r\n * This method fires a <i>document dirty</i> event.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * color: color\r\n * });\r\n *\r\n * @param {draw2d.util.Color|String} color The new color of the line.\r\n **/\n setColor: function setColor(color) {\n this.lineColor = new _packages2.default.util.Color(color);\n this.repaint();\n this.fireEvent(\"change:color\", { value: this.lineColor });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the current paint color.\r\n *\r\n * @return {draw2d.util.Color} The paint color of the line.\r\n **/\n getColor: function getColor() {\n return this.lineColor;\n },\n\n /**\r\n * @method\r\n * Translate the line with the given x/y offset.\r\n *\r\n * @param {Number} dx The new x translate offset\r\n * @param {Number} dy The new y translate offset\r\n * @since 4.1.0\r\n **/\n translate: function translate(dx, dy) {\n this.vertices.each(function (i, e) {\n e.translate(dx, dy);\n });\n\n // update start/end if the first or last vertex has been changed\n //\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.svgPathString = null;\n this.repaint();\n\n return this;\n },\n\n /**\r\n * @method\r\n * return the bounding box of the line or polygon\r\n *\r\n * TODO: precalculate or cache this values\r\n *\r\n * @returns {draw2d.geo.Rectangle}\r\n * @since 4.8.2\r\n */\n getBoundingBox: function getBoundingBox() {\n var minX = Math.min.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.x;\n })));\n var minY = Math.min.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.y;\n })));\n var maxX = Math.max.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.x;\n })));\n var maxY = Math.max.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.y;\n })));\n var width = maxX - minX;\n var height = maxY - minY;\n\n return new _packages2.default.geo.Rectangle(minX, minY, width, height);\n },\n\n /**\r\n * @method\r\n * Set the start point of the line.\r\n * This method fires a <i>document dirty</i> event.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * startX: x,\r\n * startY: y\r\n * });\r\n *\r\n * @param {Number|draw2d.geo.Point} x the x coordinate of the start point\r\n * @param {Number} [y] the y coordinate of the start point\r\n **/\n setStartPosition: function setStartPosition(x, y) {\n var pos = new _packages2.default.geo.Point(x, y);\n if (this.start.equals(pos)) {\n return this;\n }\n\n this.start.setPosition(pos);\n this.vertices.first().setPosition(pos);\n this.repaint();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n this.fireEvent(\"change:start\", { value: this.start });\n\n return this;\n },\n /** @deprecated */\n setStartPoint: function setStartPoint(x, y) {\n return this.setStartPosition(x, y);\n },\n\n setStartX: function setStartX(x) {\n this.setStartPosition(x, this.start.y);\n },\n\n setStartY: function setStartY(y) {\n this.setStartPosition(this.start.x, y);\n },\n\n setEndX: function setEndX(x) {\n this.setEndPosition(x, this.end.y);\n },\n\n setEndY: function setEndY(y) {\n this.setEndPosition(this.end.x, y);\n },\n\n /**\r\n * Set the end point of the line.\r\n * This method fires a <i>document dirty</i> event.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * endX: 3,\r\n * endY: 10\r\n * });\r\n *\r\n * // or\r\n * figure.attr({\r\n * end: {x:3, y:10}\r\n * });\r\n * @param {Number|draw2d.geo.Point} x the x coordinate or a draw2d.geo.Point of the end point\r\n * @param {Number} [y] the y coordinate of the end point\r\n **/\n setEndPosition: function setEndPosition(x, y) {\n var pos = new _packages2.default.geo.Point(x, y);\n if (this.end.equals(pos)) {\n return this;\n }\n\n this.end.setPosition(pos);\n this.vertices.last().setPosition(pos);\n this.repaint();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.fireEvent(\"change:end\", { value: this.end });\n\n return this;\n },\n /** @deprecated **/\n setEndPoint: function setEndPoint(x, y) {\n return this.setEndPosition(x, y);\n },\n\n /**\r\n * @method\r\n * Return the x coordinate of the start.\r\n * @return {Number}\r\n **/\n getStartX: function getStartX() {\n return this.start.x;\n },\n\n /**\r\n * @method\r\n * Return the y coordinate of the start.\r\n *\r\n * @return {Number}\r\n **/\n getStartY: function getStartY() {\n return this.start.y;\n },\n\n /**\r\n * @method\r\n * Return the start point.\r\n *\r\n * @return {draw2d.geo.Point}\r\n **/\n getStartPosition: function getStartPosition() {\n return this.start.clone();\n },\n /** @deprecated **/\n getStartPoint: function getStartPoint() {\n return this.getStartPosition();\n },\n\n /**\r\n * @method\r\n * Return the x coordinate of the end point\r\n *\r\n * @return {Number}\r\n **/\n getEndX: function getEndX() {\n return this.end.x;\n },\n\n /**\r\n * @method\r\n * Return the y coordinate of the end point.\r\n *\r\n * @return {Number}\r\n **/\n getEndY: function getEndY() {\n return this.end.y;\n },\n\n /**\r\n * @method\r\n * Return the end point.\r\n *\r\n * @return {draw2d.geo.Point}\r\n **/\n getEndPosition: function getEndPosition() {\n return this.end.clone();\n },\n /** @deprecated **/\n getEndPoint: function getEndPoint() {\n return this.getEndPosition();\n },\n\n /**\r\n * @method\r\n * The x-offset related to the parent figure or canvas.\r\n *\r\n * @return {Number} the x-offset to the parent figure\r\n **/\n getX: function getX() {\n return this.getBoundingBox().x;\n },\n\n /**\r\n * @method\r\n * The x-offset related to the parent figure or canvas.\r\n *\r\n * @return {Number} the x-offset to the parent figure\r\n **/\n getY: function getY() {\n return this.getBoundingBox().y;\n },\n\n /**\r\n * @method\r\n * Return the Vertex with the given index.\r\n *\r\n * @param {Number} index the index of the vertex to return\r\n */\n getVertex: function getVertex(index) {\n return this.vertices.get(index);\n },\n\n /**\r\n * @method\r\n * Update the vertex at the give position with the new coordinate\r\n *\r\n * @param {Number} index the index of the vertex to update\r\n * @param {Number|draw2d.geo.Point} x the x coordinate or the draw2d.geo.Point object\r\n * @param {Number} [y] the y coordinate or undefined of the second argument is a point\r\n *\r\n * @since 4.0.0\r\n */\n setVertex: function setVertex(index, x, y) {\n if (x instanceof _packages2.default.geo.Point) {\n y = x.y;\n x = x.x;\n }\n\n var vertex = this.vertices.get(index);\n\n // invalid point or nothing to do\n //\n if (vertex === null || vertex.x === x && vertex.y === y) {\n return;\n }\n\n vertex.x = parseFloat(x);\n vertex.y = parseFloat(y);\n\n // update start/end if the first or last vertex has been changed\n //\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n\n this.svgPathString = null;\n this.routingRequired = true;\n this.repaint();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the vertices of the connection\r\n *\r\n * @return {draw2d.util.ArrayList} an draw2d.util.ArrayList of type draw2d.Point\r\n **/\n getVertices: function getVertices() {\n return this.vertices;\n },\n\n /**\r\n * @method\r\n * Update the vertices of the object. The given array is copied and assigned.\r\n *\r\n * @param {draw2d.util.ArrayList|Array} vertices the new vertices of the polyline.\r\n *\r\n * @since 4.0.1\r\n */\n setVertices: function setVertices(vertices) {\n var _this3 = this;\n\n var _this = this;\n // convert json document/array to draw2d ArrayList\n //\n if (Array.isArray(vertices)) {\n this.vertices = new _packages2.default.util.ArrayList();\n vertices.forEach(function (element) {\n _this3.vertices.add(new _packages2.default.geo.Point(element));\n });\n }\n // use the given ArrayList\n //\n else if (vertices instanceof _packages2.default.util.ArrayList) {\n this.vertices = vertices.clone(true);\n } else {\n throw \"invalid argument for Line.setVertices\";\n }\n\n // can happen if the given vertices array is empty\n //\n if (this.vertices.getSize() > 1) {\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n }\n\n // update the UI and the segment parts\n this.svgPathString = null;\n this.repaint();\n\n // align the SelectionHandles to the new situation\n // This is a Hack....normally this should be done below and the Line shouldn't know\n // something about this issue....this is complete a \"EditPolicy\" domain to handle this.\n if (!this.selectionHandles.isEmpty()) {\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n e.onUnselect(_this.canvas, _this);\n e.onSelect(_this.canvas, _this);\n }\n });\n }\n\n // notify the listener about the changes\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the segments of the line with {start:s, end: e} JSON array list\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getSegments: function getSegments() {\n var result = new _packages2.default.util.ArrayList();\n result.add({ start: this.getStartPosition(), end: this.getEndPosition() });\n\n return result;\n },\n\n /**\r\n * @method\r\n * Returns the length of the line.\r\n *\r\n * @return {Number}\r\n **/\n getLength: function getLength() {\n return Math.sqrt((this.start.x - this.end.x) * (this.start.x - this.end.x) + (this.start.y - this.end.y) * (this.start.y - this.end.y));\n },\n\n /**\r\n * @method\r\n * Returns the angle of the line in degree.\r\n *\r\n * <pre>\r\n * 270°\r\n * |\r\n * |\r\n * |\r\n * |\r\n * 180° -------------------------+------------------------> +X\r\n * | 0°\r\n * |\r\n * |\r\n * |\r\n * V +Y\r\n * 90°\r\n * </pre>\r\n * @return {Number}\r\n **/\n getAngle: function getAngle() {\n var length = this.getLength();\n var angle = -(180 / Math.PI) * Math.asin((this.start.y - this.end.y) / length);\n\n if (angle < 0) {\n if (this.end.x < this.start.x) {\n angle = Math.abs(angle) + 180;\n } else {\n angle = 360 - Math.abs(angle);\n }\n } else {\n if (this.end.x < this.start.x) {\n angle = 180 - angle;\n }\n }\n return angle;\n },\n\n /**\r\n * @method\r\n * Returns the Command to perform the specified Request or null if the shape want cancel the\r\n * operation or it can't operate the command.\r\n *\r\n * @param {draw2d.command.CommandType} request describes the Command being requested\r\n * @return {draw2d.command.Command} null or a Command\r\n * @private\r\n **/\n createCommand: function createCommand(request) {\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE) {\n if (this.isDraggable()) {\n return new _packages2.default.command.CommandMoveVertices(this);\n }\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.DELETE) {\n if (this.isDeleteable()) {\n return new _packages2.default.command.CommandDelete(this);\n }\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE_BASEPOINT) {\n if (this.isDraggable()) {\n return new _packages2.default.command.CommandMoveVertex(this);\n }\n }\n\n return null;\n },\n\n installEditPolicy: function installEditPolicy(policy) {\n if (!(policy instanceof _packages2.default.policy.line.LineSelectionFeedbackPolicy) && policy instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n return; // silently\n }\n\n this._super(policy);\n },\n\n /**\r\n * @method\r\n * Checks if the hands over coordinate close to the line. The 'corona' is considered\r\n * for this test. This means the point isn't direct on the line. Is it only close to the\r\n * line!\r\n *\r\n * @param {Number} px the x coordinate of the test point\r\n * @param {Number} py the y coordinate of the test point\r\n * @return {Boolean}\r\n **/\n hitTest: function hitTest(px, py) {\n return _packages2.default.shape.basic.Line.hit(this.corona + this.stroke, this.start.x, this.start.y, this.end.x, this.end.y, px, py);\n },\n\n /**\r\n * @method\r\n * Returns the projection of the point on the line.\r\n *\r\n * @param {Number} px the x coordinate of the test point\r\n * @param {Number} py the y coordinate of the test point\r\n * @return {draw2d.geo.Point}\r\n **/\n pointProjection: function pointProjection(px, py) {\n var pt = new _packages2.default.geo.Point(px, py);\n var p1 = this.getStartPosition();\n var p2 = this.getEndPosition();\n return _packages2.default.geo.Line.pointProjection(p1.x, p1.y, p2.x, p2.y, pt.x, pt.y);\n },\n\n /**\r\n * @method\r\n * Returns the point onto the line which has the 'percentage' position onto the line.\r\n *\r\n * @param {Number} percentage value between [0..1]\r\n * @returns {*}\r\n */\n lerp: function lerp(percentage) {\n var p1 = this.getStartPosition();\n var p2 = this.getEndPosition();\n percentage = Math.min(1, Math.max(0, percentage));\n return new _packages2.default.geo.Point(p1.x + (p2.x - p1.x) * percentage, p1.y + (p2.y - p1.y) * percentage);\n },\n\n /**\r\n * @method\r\n * Return all intersection points between the given Line.\r\n *\r\n * @param {draw2d.shape.basic.Line} other\r\n * @returns {draw2d.util.ArrayList}\r\n */\n intersection: function intersection(other) {\n var result = new _packages2.default.util.ArrayList();\n\n // empty result. the lines are equal...infinit array\n if (other === this) {\n return result;\n }\n\n var segments1 = this.getSegments();\n var segments2 = other.getSegments();\n\n segments1.each(function (i, s1) {\n segments2.each(function (j, s2) {\n var p = _packages2.default.shape.basic.Line.intersection(s1.start, s1.end, s2.start, s2.end);\n if (p !== null) {\n result.add(p);\n }\n });\n });\n return result;\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n delete memento.x;\n delete memento.y;\n delete memento.width;\n delete memento.height;\n\n memento.stroke = this.stroke;\n memento.color = this.getColor().rgba();\n memento.outlineStroke = this.outlineStroke;\n memento.outlineColor = this.outlineColor.rgba();\n if (this.dasharray !== null) {\n memento.dasharray = this.dasharray;\n }\n\n if (this.editPolicy.getSize() > 0) {\n memento.policy = this.editPolicy.first().NAME;\n }\n\n // the attribute \"vertex\" will be overridden by a router if the element is a\n // \"PolyLine\" instance and has the correct router. Connections mainly ignore this\n // attribute because the start/end is defined by the ports and the vertices in between are\n // calculated by a router.\n memento.vertex = [];\n this.getVertices().each(function (i, e) {\n memento.vertex.push({ x: e.x, y: e.y });\n });\n\n return memento;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n * @returns\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.dasharray === \"string\") {\n this.dasharray = memento.dasharray;\n }\n if (typeof memento.stroke !== \"undefined\") {\n this.setStroke(parseFloat(memento.stroke));\n }\n if (typeof memento.color !== \"undefined\") {\n this.setColor(memento.color);\n }\n if (typeof memento.outlineStroke !== \"undefined\") {\n this.setOutlineStroke(memento.outlineStroke);\n }\n if (typeof memento.outlineColor !== \"undefined\") {\n this.setOutlineColor(memento.outlineColor);\n }\n if (typeof memento.policy !== \"undefined\") {\n try {\n this.installEditPolicy(eval(\"new \" + memento.policy + \"()\"));\n } catch (exc) {\n debug.warn(\"Unable to install edit policy '\" + memento.policy + \"' forced by \" + this.NAME + \".setPersistentAttributes. Using default.\");\n }\n }\n\n // restore the vertex of the connection/line if any are given\n //\n // it makes no sense to restore vertices with only zero or one vertex. This\n // isn't a \"line\" at all.\n if (Array.isArray(memento.vertex) && memento.vertex.length > 1) {\n this.setVertices(memento.vertex);\n }\n }\n});\n\n/**\r\n * see: http://en.wikipedia.org/wiki/Line-line_intersection\r\n *\r\n * @param {draw2d.geo.Point} a1\r\n * @param {draw2d.geo.Point} a2\r\n * @param {draw2d.geo.Point} b1\r\n * @param {draw2d.geo.Point} b2\r\n *\r\n * @static\r\n * @private\r\n * @returns {draw2d.geo.Point}\r\n */\n_packages2.default.shape.basic.Line.intersection = function (a1, a2, b1, b2) {\n var result = null;\n\n var ua_t = (b2.x - b1.x) * (a1.y - b1.y) - (b2.y - b1.y) * (a1.x - b1.x);\n var ub_t = (a2.x - a1.x) * (a1.y - b1.y) - (a2.y - a1.y) * (a1.x - b1.x);\n var u_b = (b2.y - b1.y) * (a2.x - a1.x) - (b2.x - b1.x) * (a2.y - a1.y);\n\n if (u_b !== 0) {\n var ua = ua_t / u_b;\n var ub = ub_t / u_b;\n\n if (0 <= ua && ua <= 1 && 0 <= ub && ub <= 1) {\n result = new _packages2.default.geo.Point(a1.x + ua * (a2.x - a1.x) | 0, a1.y + ua * (a2.y - a1.y) | 0);\n\n // determine if the lines are crossing or just touching\n //\n result.justTouching = 0 === ua || ua === 1 || 0 === ub || ub === 1;\n }\n }\n\n return result;\n};\n\n/**\r\n * Static util function to determine is a point(px,py) on the line(x1,y1,x2,y2)\r\n * A simple hit test.\r\n *\r\n * @return {Boolean}\r\n * @static\r\n * @private\r\n * @param {Number} coronaWidth the accepted corona for the hit test\r\n * @param {Number} X1 x coordinate of the start point of the line\r\n * @param {Number} Y1 y coordinate of the start point of the line\r\n * @param {Number} X2 x coordinate of the end point of the line\r\n * @param {Number} Y2 y coordinate of the end point of the line\r\n * @param {Number} px x coordinate of the point to test\r\n * @param {Number} py y coordinate of the point to test\r\n **/\n_packages2.default.shape.basic.Line.hit = function (coronaWidth, X1, Y1, X2, Y2, px, py) {\n return _packages2.default.geo.Line.distance(X1, Y1, X2, Y2, px, py) < coronaWidth;\n};\n\n/***/ }),\n\n/***/ \"./src/shape/basic/LineEndResizeHandle.js\":\n/*!************************************************!*\\\n !*** ./src/shape/basic/LineEndResizeHandle.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.LineEndResizeHandle = _packages2.default.shape.basic.LineResizeHandle.extend({\n NAME: \"draw2d.shape.basic.LineEndResizeHandle\",\n\n init: function init(figure) {\n this._super({ owner: figure, index: figure.getVertices().getSize() - 1 });\n },\n\n /**\r\n * @method\r\n * Return the Port assigned to this ResizeHandle if the line is an instance of draw2d.Connection\r\n *\r\n * @return {draw2d.Port}\r\n */\n getRelatedPort: function getRelatedPort() {\n if (this.owner instanceof _packages2.default.Connection) {\n return this.owner.getTarget();\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Return the peer Port assigned to this ResizeHandle if the line is an instance of draw2d.Connection\r\n *\r\n * @returns {draw2d.Port}\r\n */\n getOppositePort: function getOppositePort() {\n if (this.owner instanceof _packages2.default.Connection) {\n return this.owner.getSource();\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Called from the framework during a drag&drop operation\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @return {Boolean}\r\n * @private\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n this._super(dx, dy, dx2, dy2);\n\n var objPos = this.owner.getEndPoint().clone();\n objPos.translate(dx2, dy2);\n\n if (this.command !== null) {\n this.command.updatePosition(objPos);\n }\n\n this.owner.setEndPoint(objPos);\n\n this.owner.isMoving = true;\n\n return true;\n },\n\n /**\r\n * @method\r\n * Resizehandle has been drop on a InputPort/OutputPort.\r\n *\r\n * @param {draw2d.Figure} dropTarget\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onDrop: function onDrop(dropTarget, x, y, shiftKey, ctrlKey) {\n this.owner.isMoving = false;\n\n if (this.owner instanceof _packages2.default.Connection && this.command !== null) {\n this.command.setNewPorts(this.owner.getSource(), dropTarget);\n this.getCanvas().getCommandStack().execute(this.command);\n }\n this.command = null;\n },\n\n /**\r\n * @method\r\n * Controls the location of the resize handle\r\n *\r\n **/\n relocate: function relocate() {\n\n var resizeWidthHalf = this.getWidth() / 2;\n var resizeHeightHalf = this.getHeight() / 2;\n\n var anchor = this.owner.getEndPoint();\n\n this.setPosition(anchor.x - resizeWidthHalf, anchor.y - resizeHeightHalf);\n\n return this;\n }\n}); /**\r\n * @class draw2d.shape.basic.LineEndResizeHandle\r\n *\r\n * Selection handle for connections and normal lines.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.LineResizeHandle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/LineResizeHandle.js\":\n/*!*********************************************!*\\\n !*** ./src/shape/basic/LineResizeHandle.js ***!\n \\*********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.basic.LineResizeHandle\r\n * Base class for selection handle for connections and normal lines.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Circle\r\n */\n_packages2.default.shape.basic.LineResizeHandle = _packages2.default.shape.basic.Circle.extend({\n NAME: \"draw2d.shape.basic.LineResizeHandle\",\n\n init: function init(attr, setter, getter) {\n var _this = this;\n\n this.zoomCallback = function () {\n _this.attr({\n width: _this.origWidth * _this.getCanvas().getZoom(),\n height: _this.origHeight * _this.getCanvas().getZoom(),\n stroke: _this.origStroke * _this.getCanvas().getZoom()\n });\n // size of the ResizeHandle has changed. Force a reposition of handle\n //\n if (!_this.blockEvent) _this.owner.fireEvent(\"move\", {});\n };\n\n this._super((0, _extend2.default)({\n bgColor: \"#5bcaff\",\n stroke: 1,\n width: 10,\n height: 10,\n minWidth: 0.3,\n minHeight: 0.3,\n selectable: false\n }, attr), (0, _extend2.default)({\n owner: this.setOwner,\n index: this.setIndex\n }, setter), (0, _extend2.default)({\n owner: this.getOwner,\n index: this.getIndex\n }, getter));\n\n // required in the SelectionEditPolicy to indicate the type of figure\n // which the user clicks\n this.isResizeHandle = true;\n this.currentTarget = null;\n\n this.origWidth = this.width;\n this.origHeight = this.height;\n this.origStroke = this.stroke;\n },\n\n /**\r\n * @method\r\n * Returns the current used SVG as string\r\n *\r\n * @returns {String}\r\n */\n getOwner: function getOwner() {\n return this.owner;\n },\n\n setOwner: function setOwner(owner) {\n this.owner = owner;\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the index of the selection. In case of a PlyLine the count is dynamic.\r\n *\r\n * @returns {Number}\r\n */\n getIndex: function getIndex() {\n return this.index;\n },\n\n setIndex: function setIndex(index) {\n this.index = index;\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createShapeElement: function createShapeElement() {\n var shape = this._super();\n\n shape.attr({ \"cursor\": \"move\" });\n return shape;\n },\n\n /**\r\n * @inheritdoc\r\n **/\n setBackgroundColor: function setBackgroundColor(color) {\n color = new _packages2.default.util.Color(color);\n\n this.bgGradient = \"r(.4,.3)\" + color.hash() + \"-\" + color.darker(0.1).hash() + \":60-\" + color.darker(0.2).hash();\n this._super(color);\n this.setColor(color.darker(0.3));\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the port below the ResizeHandle.\r\n *\r\n * @template\r\n * @return {draw2d.Port}\r\n */\n getRelatedPort: function getRelatedPort() {\n return null;\n },\n\n /**\r\n * @method\r\n * Return the port of the other side of the related connection.\r\n *\r\n * @template\r\n * @return {draw2d.Port}\r\n */\n getOppositePort: function getOppositePort() {\n return null;\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n if (this.bgColor.hash() === \"none\") {\n attributes.fill = this.bgColor.rgba();\n } else if (this.getAlpha() < 0.9) {\n attributes.fill = this.bgColor.rgba();\n } else {\n attributes.fill = this.bgGradient;\n }\n\n this._super(attributes);\n },\n\n /**\r\n * Called if the drag and drop action begins. You can return [false] if you\r\n * want avoid the that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @type {Boolean}\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n this.command = this.owner.createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE_BASEPOINT));\n // no drag&drop allowed if we didn'T have a valid command.\n // This is one way to send a veto for Connection reconnect\n if (this.command !== null) {\n this.command.setIndex(this.index);\n }\n\n this.setAlpha(0.2);\n this.shape.attr({ \"cursor\": \"crosshair\" });\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragstart\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n return true;\n },\n\n /**\r\n * @method\r\n * Called from the framework during a drag&drop operation\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @return {Boolean}\r\n * @private\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n this.setPosition(this.x + dx2, this.y + dy2);\n\n var port = this.getOppositePort();\n\n var target = port !== null ? port.getCanvas().getBestFigure(this.getX(), this.getY(), [this, this.owner]) : null;\n\n // the hovering element has been changed\n if (target !== this.currentTarget) {\n\n if (this.currentTarget !== null) {\n this.currentTarget.onDragLeave(port);\n this.currentTarget.setGlow(false);\n this.currentTarget.fireEvent(\"dragLeave\", { draggingElement: port });\n }\n\n if (target !== null) {\n this.currentTarget = target.delegateTarget(port);\n if (this.currentTarget !== null) {\n this.currentTarget.setGlow(true);\n this.currentTarget.onDragEnter(port); // legacy\n this.currentTarget.fireEvent(\"dragEnter\", { draggingElement: port });\n }\n }\n }\n\n return true;\n },\n\n /**\r\n * @method Called after a drag and drop action.<br>\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call the super implementation via <code>this._super();</code>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean}\r\n */\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n if (!this.isDraggable()) {\n return false;\n }\n\n this.shape.attr({ \"cursor\": \"move\" });\n\n var port = this.getOppositePort();\n if (port !== null) {\n if (this.currentTarget !== null) {\n\n this.onDrop(this.currentTarget, x, y, shiftKey, ctrlKey);\n this.currentTarget.onDragLeave(port);\n this.currentTarget.setGlow(false);\n this.currentTarget.fireEvent(\"dragLeave\", { draggingElement: port });\n this.currentTarget.onCatch(this, x, y, shiftKey, ctrlKey);\n this.currentTarget = null;\n }\n }\n\n this.owner.isMoving = false;\n // A Connection is stuck to the corresponding ports. So we must reset the position\n // to the origin port if we doesn't drop the ResizeHandle on a other port.\n //\n if (this.owner instanceof _packages2.default.Connection) {\n if (this.command !== null) {\n this.command.cancel();\n }\n }\n //\n else {\n // An non draggable resizeHandle doesn't create a move/resize command.\n // This happens if the selected figure has set \"isResizeable=false\".\n //\n if (this.command !== null) {\n this.getCanvas().getCommandStack().execute(this.command);\n }\n }\n this.command = null;\n\n this.setAlpha(1);\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragend\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n },\n\n /**\r\n * @method\r\n * Controls the position of the ResizeHandle\r\n * Called by the framework.\r\n *\r\n **/\n relocate: function relocate() {\n\n return this;\n },\n\n /**\r\n * @method\r\n * The LineResizeHandle didn't support the SnapToHelper feature if the\r\n * corresponding object is an Connection. A Connection is always bounded to\r\n * Port. In this case it makes no sense to use a Grid or Geometry for snapping.\r\n *\r\n * @return {Boolean} return false if the corresponding object didn't support snapTo\r\n **/\n supportsSnapToHelper: function supportsSnapToHelper() {\n if (this.owner instanceof _packages2.default.Connection) {\n return false;\n }\n\n return true;\n },\n\n /**\r\n * @method\r\n * Show the ResizeHandle and add it to the canvas.<br>\r\n * Additional bring it in to the front of other figures.\r\n *\r\n * @param {draw2d.Canvas} canvas the canvas to use\r\n * @param {Number} x the x-position\r\n * @param {Number} y the y-position\r\n **/\n show: function show(canvas, x, y) {\n if (x) debugger;\n // don't call the parent function. The parent functions make this object selectable/deleteable\n // and a resize handle can't be deleted.\n this.setCanvas(canvas);\n try {\n this.blockEvent = true;\n this.zoomCallback();\n } finally {\n this.blockEvent = false;\n }\n\n // this.setPosition(x,y);\n this.shape.toFront();\n this.canvas.resizeHandles.add(this);\n },\n\n /**\r\n * @method\r\n * Hide the resize handle and remove it from the canvas.\r\n *\r\n **/\n hide: function hide() {\n // don't call the parent function. The parent functions delete this object\n // and a resize handle shouldn't be deleted.\n if (this.shape === null) {\n return;\n }\n\n this.canvas.resizeHandles.remove(this);\n this.setCanvas(null);\n },\n\n setCanvas: function setCanvas(canvas) {\n\n if (this.canvas !== null) {\n this.canvas.off(this.zoomCallback);\n }\n\n this._super(canvas);\n\n if (this.canvas !== null) {\n this.canvas.on(\"zoom\", this.zoomCallback);\n }\n },\n\n /**\r\n * @method\r\n * Override this method and redirect them to the canvas. A ResizeHandle didn't support\r\n * Keyboard interaction at the moment.\r\n *\r\n * @param {Number} keyCode the id of the pressed key\r\n * @param {Boolean} ctrl true if the user has pressed the CTRL/STRG key as well.\r\n **/\n onKeyDown: function onKeyDown(keyCode, ctrl) {\n // don't call the parent function. The parent functions delete this object\n // and a resize handle can't be deleted.\n this.canvas.onKeyDown(keyCode, ctrl);\n }\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/LineStartResizeHandle.js\":\n/*!**************************************************!*\\\n !*** ./src/shape/basic/LineStartResizeHandle.js ***!\n \\**************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.LineStartResizeHandle = _packages2.default.shape.basic.LineResizeHandle.extend({\n NAME: \"draw2d.shape.basic.LineStartResizeHandle\",\n\n init: function init(figure) {\n this._super({ owner: figure, index: 0 });\n },\n\n /**\r\n * @method\r\n * Return the Port below the ResizeHandle\r\n *\r\n * @return {draw2d.Port}\r\n */\n getRelatedPort: function getRelatedPort() {\n if (this.owner instanceof _packages2.default.Connection) return this.owner.getSource();\n\n return null;\n },\n\n /**\r\n * @method\r\n * Return the Port on the opposite side of the ResizeHandle\r\n *\r\n * @returns\r\n */\n getOppositePort: function getOppositePort() {\n if (this.owner instanceof _packages2.default.Connection) return this.owner.getTarget();\n\n return null;\n },\n\n /**\r\n * @method\r\n * Called from the framework during a drag&drop operation\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n * @return {Boolean}\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n this._super(dx, dy, dx2, dy2);\n\n var objPos = this.owner.getStartPoint();\n objPos.translate(dx2, dy2);\n\n if (this.command !== null) {\n this.command.updatePosition(objPos);\n }\n this.owner.setStartPoint(objPos);\n\n this.owner.isMoving = true;\n\n return true;\n },\n\n /**\r\n * @method\r\n * Resize handle has been drop on a InputPort/OutputPort.\r\n *\r\n * @param {draw2d.Port} dropTarget\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n **/\n onDrop: function onDrop(dropTarget, x, y, shiftKey, ctrlKey) {\n this.owner.isMoving = false;\n\n // The ResizeHandle of a Connection has been dropped on a Port\n // This will enforce a ReconnectCommand\n if (this.owner instanceof _packages2.default.Connection && this.command !== null) {\n this.command.setNewPorts(dropTarget, this.owner.getTarget());\n this.getCanvas().getCommandStack().execute(this.command);\n }\n this.command = null;\n },\n\n /**\r\n * @method\r\n * Controls the location of the resize handle\r\n **/\n relocate: function relocate() {\n var resizeWidthHalf = this.getWidth() / 2;\n var resizeHeightHalf = this.getHeight() / 2;\n\n var anchor = this.owner.getStartPoint();\n\n this.setPosition(anchor.x - resizeWidthHalf, anchor.y - resizeHeightHalf);\n\n return this;\n }\n}); /**\r\n * @class draw2d.shape.basic.LineStartResizeHandle\r\n * Selection handle for connections and normal lines.\r\n *\r\n * TODO: Split the LineEndResizeHandle to ConnectionEndResizeHandle and LineEndResizeHandle!!!!\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.LineResizeHandle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Oval.js\":\n/*!*********************************!*\\\n !*** ./src/shape/basic/Oval.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.basic.Oval\r\n * Oval figure.\r\n *\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let oval = new draw2d.shape.basic.Oval({width:150, height:100, x:50, y:10});\r\n *\r\n * canvas.add(oval);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.VectorFigure\r\n */\n_packages2.default.shape.basic.Oval = _packages2.default.VectorFigure.extend({\n NAME: \"draw2d.shape.basic.Oval\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super((0, _extend2.default)({\n bgColor: \"#C02B1D\",\n color: \"#1B1B1B\"\n }, attr), (0, _extend2.default)({\n center: this.setCenter\n }, setter), getter);\n },\n\n /**\r\n * @template\r\n **/\n createShapeElement: function createShapeElement() {\n var halfW = this.getWidth() / 2;\n var halfH = this.getHeight() / 2;\n\n return this.canvas.paper.ellipse(this.getAbsoluteX() + halfW, this.getAbsoluteY() + halfH, halfW, halfH);\n },\n\n /**\r\n * @method\r\n * Get the center of the figure\r\n *\r\n */\n getCenter: function getCenter() {\n var w2 = this.getWidth() / 2;\n var h2 = this.getHeight() / 2;\n\n return this.getPosition().translate(w2, h2);\n },\n\n /**\r\n * @method\r\n * Set the center of the figure.\r\n *\r\n * @param {Number|draw2d.geo.Point} x the new x coordinate of the center or a draw2d.geo.Point object with the center\r\n * @param {Number} [y] the y coordinate of the new center of the first argument isn't a draw2d.geo.Point object\r\n */\n setCenter: function setCenter(x, y) {\n var pos = new _packages2.default.geo.Point(x, y);\n var w2 = this.getWidth() / 2;\n var h2 = this.getHeight() / 2;\n\n pos.translate(-w2, -h2);\n this.setPosition(pos);\n\n this.fireEvent(\"change:center\", { value: { x: x, y: y } });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n * @template\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n // don't override cx/cy if inherited class has set the center already.\n if (typeof attributes.rx === \"undefined\") {\n attributes.rx = this.width / 2;\n attributes.ry = this.height / 2;\n }\n\n // don't override cx/cy if inherited class has set the center already.\n if (typeof attributes.cx === \"undefined\") {\n attributes.cx = this.getAbsoluteX() + attributes.rx;\n attributes.cy = this.getAbsoluteY() + attributes.ry;\n }\n\n this._super(attributes);\n },\n\n /**\r\n * @method\r\n *\r\n * NOTE: Rotation will need to be added to this function\r\n *\r\n **/\n intersectionWithLine: function intersectionWithLine(a1, a2) {\n var rx = this.getWidth() / 2;\n var ry = this.getHeight() / 2;\n\n var result = new _packages2.default.util.ArrayList();\n\n var origin = new _packages2.default.geo.Point(a1.x, a1.y);\n var dir = a2.subtract(a1);\n var center = new _packages2.default.geo.Point(this.getAbsoluteX() + rx, this.getAbsoluteY() + ry);\n var diff = origin.subtract(center);\n var mDir = new _packages2.default.geo.Point(dir.x / (rx * rx), dir.y / (ry * ry));\n var mDiff = new _packages2.default.geo.Point(diff.x / (rx * rx), diff.y / (ry * ry));\n\n var a = dir.dot(mDir);\n var b = dir.dot(mDiff);\n var c = diff.dot(mDiff) - 1.0;\n var d = b * b - a * c;\n\n if (d < 0) {\n // \"Outside\"\n } else if (d > 0) {\n var root = Math.sqrt(d);\n var t_a = (-b - root) / a;\n var t_b = (-b + root) / a;\n\n if ((t_a < 0 || 1 < t_a) && (t_b < 0 || 1 < t_b)) {\n if (t_a < 0 && t_b < 0 || t_a > 1 && t_b > 1) {\n //\"Outside\";\n } else {\n //\"Inside\";\n }\n } else {\n if (0 <= t_a && t_a <= 1) result.add(a1.lerp(a2, t_a));\n if (0 <= t_b && t_b <= 1) result.add(a1.lerp(a2, t_b));\n }\n } else {\n var t = -b / a;\n if (0 <= t && t <= 1) {\n result.add(a1.lerp(a2, t));\n } else {\n //\"Outside\";\n }\n }\n\n return result;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/PolyLine.js\":\n/*!*************************************!*\\\n !*** ./src/shape/basic/PolyLine.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! ../../util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.PolyLine = _packages2.default.shape.basic.Line.extend({\n\n NAME: \"draw2d.shape.basic.PolyLine\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // internal status handling for performance reasons\n //\n this.svgPathString = null;\n this.oldPoint = null;\n\n this.router = null;\n this.routingRequired = true;\n this.lineSegments = new _packages2.default.util.ArrayList();\n\n this.radius = \"\";\n\n this._super((0, _extend2.default)({\n router: new _packages2.default.layout.connection.VertexRouter()\n }, attr), (0, _extend2.default)({}, {\n /** @attr {draw2d.layout.connection.ConnectionRouter} the router to use to layout the polyline */\n router: this.setRouter,\n /** @attr {Number} radius the radius to render the line edges */\n radius: this.setRadius\n }, setter), (0, _extend2.default)({}, {\n router: this.getRouter,\n radius: this.getRadius\n }, getter));\n },\n\n /**\r\n * @method\r\n * Sets the corner radius of the edges.\r\n *\r\n * @param {Number} radius the corner radius\r\n * @since 4.2.1\r\n */\n setRadius: function setRadius(radius) {\n this.radius = radius;\n this.svgPathString = null;\n this.repaint();\n this.fireEvent(\"change:radius\", { value: this.radius });\n\n return this;\n },\n\n setOutlineStroke: function setOutlineStroke(w) {\n if (this.outlineStroke !== w) {\n this.svgPathString = null;\n this.routingRequired = true;\n }\n this._super(w);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the corner radius of the edges.\r\n *\r\n * @return {Number}\r\n * @since 4.2.1\r\n */\n getRadius: function getRadius() {\n return this.radius;\n },\n\n /**\r\n * @method\r\n * Set the start point of the line.\r\n *\r\n * @param {Number} x the x coordinate of the start point\r\n * @param {Number} y the y coordinate of the start point\r\n **/\n setStartPoint: function setStartPoint(x, y) {\n if (this.vertices.getSize() > 0) {\n this.vertices.first().setPosition(x, y);\n } else {\n this.vertices.add(new _packages2.default.geo.Point(x, y));\n }\n this.start = this.vertices.first().clone();\n // if(this.isInDragDrop===false)\n this.calculatePath({ startMoved: true, endMoved: false });\n\n this.repaint();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.fireEvent(\"change:start\", { value: this.start });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the end point of the line.\r\n *\r\n * @param {Number} x the x coordinate of the end point\r\n * @param {Number} y the y coordinate of the end point\r\n */\n setEndPoint: function setEndPoint(x, y) {\n if (this.vertices.getSize() > 1) {\n this.vertices.last().setPosition(x, y);\n } else {\n this.vertices.add(new _packages2.default.geo.Point(x, y));\n }\n this.end = this.vertices.last().clone();\n\n if (this.isInDragDrop === false) this.calculatePath({ startMoved: false, endMoved: true });\n\n this.repaint();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n this.fireEvent(\"change:end\", { value: this.end });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Inserts the draw2d.geo.Point object into the vertex list of the polyline just after the object with the given index.\r\n *\r\n * @param {Number|draw2d.geo.Point} x the x coordinate or the draw2d.geo.Point object\r\n * @param {Number} [y] the y coordinate or undefined of the second argument is a point\r\n *\r\n * @since 4.0.0\r\n */\n addVertex: function addVertex(x, y) {\n this.vertices.add(new _packages2.default.geo.Point(x, y));\n\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n\n this.svgPathString = null;\n this.repaint();\n\n if (!this.selectionHandles.isEmpty()) {\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n e.onUnselect(_this.canvas, _this);\n e.onSelect(_this.canvas, _this);\n }\n });\n }\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Inserts the draw2d.geo.Point object into the vertex list of the polyline just after the object with the given index.\r\n *\r\n * @param {Number} index the insert index\r\n * @param {Number|draw2d.geo.Point} x the x coordinate or the draw2d.geo.Point object\r\n * @param {Number} [y] the y coordinate or undefined of the second argument is a point\r\n *\r\n * @since 4.0.0\r\n */\n insertVertexAt: function insertVertexAt(index, x, y) {\n var vertex = new _packages2.default.geo.Point(x, y);\n\n this.vertices.insertElementAt(vertex, index);\n\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n\n this.svgPathString = null;\n this.repaint();\n\n if (!this.selectionHandles.isEmpty()) {\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n e.onUnselect(_this.canvas, _this);\n e.onSelect(_this.canvas, _this);\n }\n });\n }\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove a vertex from the polyline and return the removed point. The current installed connection router\r\n * can send an veto for this operation.\r\n *\r\n * @param index\r\n * @returns {draw2d.geo.Point} the removed point or null of the current router decline this operation\r\n * @since 4.0.0\r\n */\n removeVertexAt: function removeVertexAt(index) {\n var removedPoint = this.vertices.removeElementAt(index);\n\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n\n this.svgPathString = null;\n this.repaint();\n\n if (!this.selectionHandles.isEmpty()) {\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n e.onUnselect(_this.canvas, _this);\n e.onSelect(_this.canvas, _this);\n }\n });\n }\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return removedPoint;\n },\n\n /**\r\n * @method\r\n * Set the router for this connection.\r\n *\r\n * @param {draw2d.layout.connection.ConnectionRouter} [router] the new router for this connection or null if the connection should use the default routing\r\n **/\n setRouter: function setRouter(router) {\n if (this.router !== null) {\n this.router.onUninstall(this);\n }\n\n if (typeof router === \"undefined\" || router === null) {\n this.router = new _packages2.default.layout.connection.DirectRouter();\n } else {\n this.router = router;\n }\n\n this.router.onInstall(this);\n\n this.routingRequired = true;\n\n // repaint the connection with the new router\n this.repaint();\n\n this.fireEvent(\"change:router\", { value: this.router });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the current active router of this connection.\r\n *\r\n * @return draw2d.layout.connection.ConnectionRouter\r\n **/\n getRouter: function getRouter() {\n return this.router;\n },\n\n /**\r\n * @method\r\n * Calculate the path of the polyline\r\n *\r\n * @param {Object} [routingHints] some helper attributes for the router\r\n * @param {Boolean} routingHints.startMoved is true if just the start location has moved\r\n * @param {Boolean} routingHints.endMoved is true if the destination location has changed\r\n * @param {Boolean} routingHints.oldVertices store old vertices for after processing\r\n *\r\n * @private\r\n */\n calculatePath: function calculatePath(routingHints) {\n routingHints = routingHints || {};\n\n if (this.shape === null) {\n return;\n }\n\n this.svgPathString = null;\n\n routingHints.oldVertices = this.vertices;\n\n // cleanup the routing cache\n //\n this.oldPoint = null;\n this.lineSegments = new _packages2.default.util.ArrayList();\n this.vertices = new _packages2.default.util.ArrayList();\n\n // Use the internal router\n //\n this.router.route(this, routingHints);\n this.routingRequired = false;\n this.fireEvent(\"routed\");\n this.fireEvent(\"change:route\", {});\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return this;\n }\n\n if (this.svgPathString === null || this.routingRequired === true) {\n this.calculatePath();\n }\n\n if (typeof attributes === \"undefined\") {\n attributes = {};\n }\n attributes.path = this.svgPathString;\n _JSONUtil2.default.ensureDefault(attributes, \"stroke-linecap\", \"round\");\n _JSONUtil2.default.ensureDefault(attributes, \"stroke-linejoin\", \"round\");\n\n return this._super(attributes);\n },\n\n /**\r\n * @method\r\n * Return all line segments of the polyline.\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getSegments: function getSegments() {\n return this.lineSegments;\n },\n\n /**\r\n * @method\r\n * used for the router to add the calculated points\r\n *\r\n * @protected\r\n *\r\n **/\n addPoint: function addPoint( /*:draw2d.geo.Point*/p, y) {\n if (typeof y !== \"undefined\") {\n p = new _packages2.default.geo.Point(p, y);\n }\n this.vertices.add(p);\n\n if (this.oldPoint !== null) {\n // store the painted line segment for the \"mouse selection test\"\n // (required for user interaction)\n this.lineSegments.add({\n start: this.oldPoint,\n end: p\n });\n }\n this.svgPathString = null;\n this.oldPoint = p;\n },\n\n /**\r\n * @method\r\n * Called if the drag and drop action begins. You can return [false] if you\r\n * want avoid that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} true if the figure accepts dragging\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey, isFaked) {\n var result = this._super(x, y, shiftKey, ctrlKey, isFaked);\n\n if (result === true && isFaked !== true) {\n this.draggedSegment = this.hitSegment(x, y);\n }\n return result;\n },\n\n /**\r\n * @method\r\n * Returns the length of the polyline.\r\n *\r\n * @return {Number}\r\n * @since 6.1.43\r\n **/\n getLength: function getLength() {\n var result = 0;\n for (var i = 0; i < this.lineSegments.getSize(); i++) {\n var segment = this.lineSegments.get(i);\n var p1 = segment.start;\n var p2 = segment.end;\n result += Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));\n }\n return result;\n },\n\n setVertices: function setVertices(vertices) {\n // inform the router tha the vertices has set outside. This switch some\n // router from full autoroute to half autoroute\n this.router.verticesSet(this);\n\n this._super(vertices);\n },\n\n /**\r\n * @method\r\n * Returns the projection of the point on the line.\r\n *\r\n * @param {Number} px the x coordinate of the test point\r\n * @param {Number} py the y coordinate of the test point\r\n * @return {draw2d.geo.Point}\r\n **/\n pointProjection: function pointProjection(px, py) {\n var result = null,\n projection = null,\n p1 = null,\n p2 = null,\n segment = null;\n var lastDist = Number.MAX_SAFE_INTEGER;\n var pt = new _packages2.default.geo.Point(px, py);\n for (var i = 0; i < this.lineSegments.getSize(); i++) {\n segment = this.lineSegments.get(i);\n p1 = segment.start;\n p2 = segment.end;\n projection = _packages2.default.geo.Line.pointProjection(p1.x, p1.y, p2.x, p2.y, pt.x, pt.y);\n if (projection !== null) {\n var dist = projection.distance(pt);\n if (result == null || dist < lastDist) {\n result = projection;\n result.index = i;\n lastDist = dist;\n }\n }\n }\n\n if (result !== null) {\n var length = 0;\n var _segment = void 0;\n for (var _i = 0; _i < result.index; _i++) {\n _segment = this.lineSegments.get(_i);\n length += _segment.start.distance(_segment.end);\n }\n _segment = this.lineSegments.get(result.index);\n p1 = _segment.start;\n p2 = _segment.end;\n length += p1.distance(p2) * _packages2.default.geo.Line.inverseLerp(p2.x, p2.y, p1.x, p1.y, result.x, result.y);\n result.percentage = 1.0 / this.getLength() * length;\n }\n return result;\n },\n\n /**\r\n * @method\r\n * Returns the point onto the line which has the relative 'percentage' position onto the line.\r\n *\r\n * @param {Number} percentage the relative position between [0..1]\r\n * @returns {draw2d.geo.Point}\r\n */\n lerp: function lerp(percentage) {\n var length = this.getLength() * percentage;\n var lastValidLength = length;\n var segment = null,\n p1 = null,\n p2 = null;\n for (var i = 0; i < this.lineSegments.getSize(); i++) {\n segment = this.lineSegments.get(i);\n p1 = segment.start;\n p2 = segment.end;\n length = length - p1.distance(p2);\n if (length <= 0) {\n percentage = 1.0 / p1.distance(p2) * lastValidLength;\n return new _packages2.default.geo.Point(p1.x + (p2.x - p1.x) * percentage, p1.y + (p2.y - p1.y) * percentage);\n }\n lastValidLength = length;\n }\n return p2;\n },\n\n /**\r\n * @method\r\n * get the best segment of the line which is below the given coordinate or null if\r\n * all segment are not below the coordinate. <br>\r\n * The 'corona' property of the polyline is considered for this test. This means\r\n * the point isn't direct on the line. Is it only close to the line!\r\n *\r\n * @param {Number} px the x coordinate of the test point\r\n * @param {Number} py the y coordinate of the test point\r\n * @return {Object}\r\n * @since 4.4.0\r\n **/\n hitSegment: function hitSegment(px, py) {\n for (var i = 0; i < this.lineSegments.getSize(); i++) {\n var segment = this.lineSegments.get(i);\n if (_packages2.default.shape.basic.Line.hit(this.corona + this.stroke, segment.start.x, segment.start.y, segment.end.x, segment.end.y, px, py)) {\n return { index: i, start: segment.start, end: segment.end };\n }\n }\n return null;\n },\n\n /**\r\n * @method\r\n * Checks if the hands over coordinate close to the line. The 'corona' property of the polyline\r\n * is considered for this test. This means the point isn't direct on the line. Is it only close to the\r\n * line!\r\n *\r\n * @param {Number} px the x coordinate of the test point\r\n * @param {Number} py the y coordinate of the test point\r\n * @return {Boolean}\r\n **/\n hitTest: function hitTest(px, py) {\n return this.hitSegment(px, py) !== null;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createCommand: function createCommand(request) {\n\n if (request.getPolicy() === _packages2.default.command.CommandType.DELETE) {\n if (this.isDeleteable() === true) {\n return new _packages2.default.command.CommandDelete(this);\n }\n } else if (request.getPolicy() === _packages2.default.command.CommandType.MOVE_VERTEX) {\n if (this.isResizeable() === true) {\n return new _packages2.default.command.CommandMoveVertex(this);\n }\n } else if (request.getPolicy() === _packages2.default.command.CommandType.MOVE_VERTICES) {\n if (this.isResizeable() === true) {\n return new _packages2.default.command.CommandMoveVertices(this);\n }\n }\n\n return this._super(request);\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = (0, _extend2.default)(this._super(), {\n router: this.router.NAME,\n radius: this.radius\n });\n\n memento = this.router.getPersistentAttributes(this, memento);\n\n return memento;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.router !== \"undefined\") {\n try {\n this.setRouter(eval(\"new \" + memento.router + \"()\"));\n } catch (exc) {\n debug.warn(\"Unable to install router '\" + memento.router + \"' forced by \" + this.NAME + \".setPersistentAttributes. Using default\");\n }\n }\n\n if (typeof memento.radius !== \"undefined\") {\n this.setRadius(memento.radius);\n }\n\n this.router.setPersistentAttributes(this, memento);\n\n if (this.vertices.getSize() > 1) {\n this.start = this.vertices.first().clone();\n this.end = this.vertices.last().clone();\n }\n }\n}); /**\r\n * @class draw2d.shape.basic.PolyLine\r\n *\r\n * A PolyLine is a line with more than 2 points.\r\n *\r\n *\r\n * @example preview small frame\r\n *\r\n * let line = new draw2d.shape.basic.PolyLine();\r\n * line.setVertices([{x:10,y:10},{x:80,y:70},{x:100,y:110}]);\r\n * canvas.add(line);\r\n *\r\n *\r\n * canvas.setCurrentSelection(line);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Line\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Polygon.js\":\n/*!************************************!*\\\n !*** ./src/shape/basic/Polygon.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! ../../util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /**\r\n * @class draw2d.shape.basic.Polygon\r\n * A Polygon figure.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let p1 = new draw2d.shape.basic.Polygon({width:100, height:100});\r\n * let p2 = new draw2d.shape.basic.Polygon({width:100, height:60});\r\n *\r\n * canvas.add(p1,10,10);\r\n * canvas.add(p2,100,10);\r\n *\r\n * p2.attr({color:\"#f0f000\", alpha:0.7});\r\n *\r\n * canvas.setCurrentSelection(p2);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.VectorFigure\r\n */\n\n_packages2.default.shape.basic.Polygon = _packages2.default.VectorFigure.extend({\n\n NAME: \"draw2d.shape.basic.Polygon\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.minX = 0;\n this.minY = 0;\n this.maxX = 0;\n this.maxY = 0;\n this.vertices = new _packages2.default.util.ArrayList();\n\n this._super(attr, setter, getter);\n\n // we must cache the initial width/height because the width/height of the shape\n // is recalculated in the addVertex method. After the first call this values are 0/0\n if (this.vertices.getSize() === 0) {\n var w = this.width;\n var h = this.height;\n var pos = this.getPosition();\n this.addVertex(new _packages2.default.geo.Point(0, 0));\n this.addVertex(new _packages2.default.geo.Point(w, 0));\n this.addVertex(new _packages2.default.geo.Point(w, h));\n\n this.setPosition(pos);\n }\n\n this.svgPathString = null;\n\n this.installEditPolicy(new _packages2.default.policy.figure.VertexSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n setRadius: function setRadius(radius) {\n this.svgPathString = null;\n\n this._super(radius);\n this.fireEvent(\"change:radius\", { value: radius });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createShapeElement: function createShapeElement() {\n // return some good default...\n return this.canvas.paper.path(\"M0 10L100 100\");\n },\n\n /**\r\n * @method\r\n * calculate the path of the polygon\r\n *\r\n */\n calculatePath: function calculatePath() {\n var radius = this.getRadius();\n var path = [];\n // hard corners\n //\n if (radius === 0) {\n var _length = this.vertices.getSize();\n var p = this.vertices.get(0);\n path.push(\"M\", p.x, \" \", p.y);\n for (var i = 1; i < _length; i++) {\n p = this.vertices.get(i);\n path.push(\"L\", p.x, \" \", p.y);\n }\n path.push(\"Z\");\n }\n // soften/round corners\n //\n else {\n length = this.vertices.getSize();\n var start = this.vertices.first();\n var end = this.vertices.last();\n if (start.equals(end)) {\n length = length - 1;\n end = this.vertices.get(length - 1);\n }\n var begin = _packages2.default.geo.Util.insetPoint(start, end, radius);\n path.push(\"M\", begin.x, \",\", begin.y);\n for (var _i = 0; _i < length; _i++) {\n start = this.vertices.get(_i);\n end = this.vertices.get((_i + 1) % length);\n var modStart = _packages2.default.geo.Util.insetPoint(start, end, radius);\n var modEnd = _packages2.default.geo.Util.insetPoint(end, start, radius);\n path.push(\"Q\", start.x, \",\", start.y, \" \", modStart.x, \", \", modStart.y);\n path.push(\"L\", modEnd.x, \",\", modEnd.y);\n }\n }\n this.svgPathString = path.join(\"\");\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n if (this.svgPathString === null) {\n this.calculatePath();\n }\n\n attributes = attributes || {};\n\n _JSONUtil2.default.ensureDefault(attributes, \"path\", this.svgPathString);\n\n this._super(attributes);\n },\n\n /**\r\n * @method\r\n * Translate the figure with the given x/y offset. This method modifies all\r\n * vertices and the bounding box.\r\n *\r\n * @param {Number} dx The new x translate offset\r\n * @param {Number} dy The new y translate offset\r\n **/\n translate: function translate(dx, dy) {\n var _this = this;\n\n // TODO: This is not good. If the polygon part of an \"Composite\" I should call\n // the adjustPosition. IF we DragDrap the composition the figures inside should follow\n // without modify the dx/dy.\n //\n dx = this.x + dx;\n dy = this.y + dy;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n var newPos = e.adjustPosition(_this, dx, dy);\n dx = newPos.x;\n dy = newPos.y;\n }\n });\n dx = dx - this.x;\n dy = dy - this.y;\n\n this.vertices.each(function (i, e) {\n e.translate(dx, dy);\n });\n this.svgPathString = null;\n this.updateBoundingBox();\n\n this.repaint();\n\n // Update the resize handles if the user change the position of the\n // element via an API call.\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.fireEvent(\"move\", { figure: this, dx: dx, dy: dy });\n this.fireEvent(\"change:x\", { value: this.x });\n this.fireEvent(\"change:y\", { value: this.y });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Change the position of the polygon. This method updates all vertices.\r\n *\r\n * @param {Number|draw2d.geo.Point} x\r\n * @param {Number} [y]\r\n */\n setPosition: function setPosition(x, y) {\n if (x instanceof _packages2.default.geo.Point) {\n y = x.y;\n x = x.x;\n }\n this.svgPathString = null;\n\n var dx = x - this.minX;\n var dy = y - this.minY;\n\n this.translate(dx, dy);\n\n this.x = x;\n this.y = y;\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n var oldWidth = this.width;\n var oldHeight = this.height;\n\n this._super(w, h);\n\n var fracWidth = 1 / oldWidth * this.width;\n var fracHeight = 1 / oldHeight * this.height;\n\n var thisX = this.x;\n var thisY = this.y;\n this.vertices.each(function (i, e) {\n // calculate difference between point and figure origin\n var diffX = (e.getX() - thisX) * fracWidth;\n var diffY = (e.getY() - thisY) * fracHeight;\n e.setPosition(thisX + diffX, thisY + diffY);\n });\n\n this.svgPathString = null;\n this.repaint();\n this.fireEvent(\"change:dimension\", { value: { width: this.width, height: this.height } });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return all vertices of the polygon.\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getVertices: function getVertices() {\n return this.vertices;\n },\n\n /**\r\n * @method\r\n * Return the Vertex with the given index.\r\n *\r\n * @param {Number} index the index of the vertex to return\r\n * @since 5.0.2\r\n */\n getVertex: function getVertex(index) {\n return this.vertices.get(index);\n },\n\n resetVertices: function resetVertices() {\n var _this2 = this;\n\n this.vertices = new _packages2.default.util.ArrayList();\n\n this.svgPathString = null;\n this.repaint();\n\n this.updateBoundingBox();\n\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this2.canvas, _this2);\n }\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Update the vertex at the given index. The method call didn't have any effect\r\n * if the vertex didn't exists.\r\n *\r\n * @param {Number} index\r\n * @param {Number} x\r\n * @param {Number} y\r\n */\n setVertex: function setVertex(index, x, y) {\n var vertex = this.vertices.get(index);\n\n // invalid point or nothing to do\n //\n if (vertex === null || vertex.x === x && vertex.y === y) {\n return this;\n }\n\n vertex.x = parseFloat(x);\n vertex.y = parseFloat(y);\n\n this.svgPathString = null;\n this.repaint();\n\n this.updateBoundingBox();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Append a new vertex to the polygon.\r\n *\r\n * @param {Number | draw2d.geo.Point} x\r\n * @param {Number} [y]\r\n */\n addVertex: function addVertex(x, y) {\n this.vertices.add(new _packages2.default.geo.Point(x, y));\n\n this.svgPathString = null;\n this.repaint();\n\n this.updateBoundingBox();\n\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Insert a new vertex at the given index. All vertices will be shifted to\r\n * free the requested index.\r\n *\r\n * @param {Number} index\r\n * @param {Number} x\r\n * @param {Number} y\r\n */\n insertVertexAt: function insertVertexAt(index, x, y) {\n this.vertices.insertElementAt(new _packages2.default.geo.Point(x, y), index);\n\n this.svgPathString = null;\n this.repaint();\n\n this.updateBoundingBox();\n\n if (!this.selectionHandles.isEmpty()) {\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n e.onUnselect(_this.canvas, _this);\n e.onSelect(_this.canvas, _this);\n }\n });\n }\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Remove a vertex from the polygon and return the removed point.\r\n *\r\n * @param {Number} index\r\n *\r\n * @returns {draw2d.geo.Point} the removed vertex\r\n */\n removeVertexAt: function removeVertexAt(index) {\n // a polygon need at least 3 vertices\n //\n if (this.vertices.getSize() <= 3) {\n return null;\n }\n\n var vertex = this.vertices.removeElementAt(index);\n\n this.svgPathString = null;\n this.repaint();\n\n this.updateBoundingBox();\n\n if (!this.selectionHandles.isEmpty()) {\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.SelectionFeedbackPolicy) {\n e.onUnselect(_this.canvas, _this);\n e.onSelect(_this.canvas, _this);\n }\n });\n }\n this.fireEvent(\"change:vertices\", { value: this.vertices });\n\n return vertex;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setRotationAngle: function setRotationAngle(angle) {\n this.rotationAngle = 360 % angle;\n\n // The different to the other figures is, the the vertices must rotated instead of\n // transform the shape with SVG matrix.\n //\n // Reason: the vertices are selectable and in this case the coordinates must transform\n // and not only the resulting SVG shape.\n //\n var radian = angle / (180 / Math.PI);\n var center = this.getBoundingBox().getCenter();\n var rotate = function rotate(x, y, xm, ym, radian) {\n var cos = Math.cos,\n sin = Math.sin;\n return {\n x: (x - xm) * cos(radian) - (y - ym) * sin(radian) + xm,\n y: (x - xm) * sin(radian) + (y - ym) * cos(radian) + ym\n };\n };\n\n this.vertices.each(function (i, e) {\n var rot = rotate(e.x, e.y, center.x, center.y, radian);\n e.setPosition(rot.x, rot.y);\n });\n\n this.updateBoundingBox();\n\n // Update the resize handles if the user change the position of the element via an API call.\n //\n var _this = this;\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.moved(_this.canvas, _this);\n }\n });\n\n this.repaint();\n this.fireEvent(\"change:angle\", { value: this.rotationAngle });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Calculate the bounding box of the shape and store them in an internal\r\n * variable for fast access.\r\n *\r\n * @private\r\n */\n updateBoundingBox: function updateBoundingBox() {\n if (this.vertices.isEmpty()) {\n this.minX = this.x;\n this.minY = this.y;\n this.maxX = this.x + this.width;\n this.maxY = this.y + this.height;\n } else {\n this.minX = this.x = Math.min.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.x;\n })));\n this.minY = this.y = Math.min.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.y;\n })));\n this.maxX = Math.max.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.x;\n })));\n this.maxY = Math.max.apply(Math, _toConsumableArray(this.vertices.asArray().map(function (n) {\n return n.y;\n })));\n this.width = this.maxX - this.minX;\n this.height = this.maxY - this.minY;\n }\n },\n\n /**\r\n * @inheritdoc\r\n */\n createCommand: function createCommand(request) {\n\n if (request.getPolicy() === _packages2.default.command.CommandType.MOVE_VERTEX) {\n if (this.isResizeable() === true) {\n return new _packages2.default.command.CommandMoveVertex(this);\n }\n }\n\n return this._super(request);\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n memento.vertices = [];\n\n this.vertices.each(function (i, e) {\n memento.vertices.push({ x: e.x, y: e.y });\n });\n\n return memento;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n var _this3 = this;\n\n this._super(memento);\n\n // restore the points from the JSON data and add them to the polyline\n //\n if (typeof memento.vertices !== \"undefined\") {\n this.vertices = new _packages2.default.util.ArrayList();\n memento.vertices.forEach(function (point) {\n _this3.addVertex(point);\n });\n }\n }\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Rectangle.js\":\n/*!**************************************!*\\\n !*** ./src/shape/basic/Rectangle.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.basic.Rectangle\r\n * A Rectangle Figure.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let rect1 = new draw2d.shape.basic.Rectangle({\r\n * \tx:10,\r\n * y:10\r\n * });\r\n *\r\n * let rect2 = new draw2d.shape.basic.Rectangle({\r\n * x: 100,\r\n * y: 10,\r\n * bgColor: \"#f0f000\",\r\n * alpha : 0.7,\r\n * width: 100,\r\n * height: 60,\r\n * radius: 10\r\n * });\r\n *\r\n * canvas.add(rect1);\r\n * canvas.add(rect2);\r\n *\r\n * canvas.setCurrentSelection(rect2);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.VectorFigure\r\n */\n_packages2.default.shape.basic.Rectangle = _packages2.default.VectorFigure.extend({\n NAME: \"draw2d.shape.basic.Rectangle\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.dasharray = null;\n\n this._super((0, _extend2.default)({ bgColor: \"#a0a0a0\", color: \"#1B1B1B\" }, attr), (0, _extend2.default)({}, {\n /** @attr {String} dash The dot/dash pattern for the line style. Valid values: [\"\", \"-\", \".\", \"-.\", \"-..\", \". \", \"- \", \"--\", \"- .\", \"--.\", \"--..\"]*/\n dash: this.setDashArray,\n /** @attr {String} dasharray The dot/dash pattern for the line style. Valid values: [\"\", \"-\", \".\", \"-.\", \"-..\", \". \", \"- \", \"--\", \"- .\", \"--.\", \"--..\"]*/\n dasharray: this.setDashArray\n }, setter), (0, _extend2.default)({}, {\n dash: this.getDashArray,\n dasharray: this.getDashArray\n }, getter));\n },\n\n /**\r\n * @inheritdoc\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = (0, _extend2.default)({}, {\n width: this.getWidth(),\n height: this.getHeight(),\n r: this.getRadius()\n }, attributes);\n\n if (this.dasharray !== null) {\n attributes[\"stroke-dasharray\"] = this.dasharray;\n }\n\n this._super(attributes);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n applyTransformation: function applyTransformation() {\n var ts = \"R\" + this.rotationAngle;\n\n if (this.getRotationAngle() === 90 || this.getRotationAngle() === 270) {\n var ratio = this.getHeight() / this.getWidth();\n ts = ts + \"S\" + ratio + \",\" + 1 / ratio + \",\" + (this.getAbsoluteX() + this.getWidth() / 2) + \",\" + (this.getAbsoluteY() + this.getHeight() / 2);\n }\n\n this.shape.transform(ts);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createShapeElement: function createShapeElement() {\n return this.canvas.paper.rect(this.getAbsoluteX(), this.getAbsoluteY(), this.getWidth(), this.getHeight());\n },\n\n /**\r\n * @method\r\n * Set the line style for dot/dash styling. Possible values are\r\n * [\"\", \"-\", \".\", \"-.\", \"-..\", \". \", \"- \", \"--\", \"- .\", \"--.\", \"--..\"]\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * dash: pattern\r\n * });\r\n *\r\n * @param {String} pattern the string with the dot/dash pattern. valid values: [\"\", \"-\", \".\", \"-.\", \"-..\", \". \", \"- \", \"--\", \"- .\", \"--.\", \"--..\"]\r\n */\n setDashArray: function setDashArray(pattern) {\n this.dasharray = pattern;\n this.repaint();\n this.fireEvent(\"change:dashArray\", { value: this.dasharray });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the line style for this object.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr(\"dash\");\r\n *\r\n * @since 5.1.0\r\n */\n getDashArray: function getDashArray() {\n return this.dasharray;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n if (this.dasharray !== null) {\n memento.dasharray = this.dasharray;\n }\n\n return memento;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.dasharray === \"string\") {\n this.dasharray = memento.dasharray;\n }\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/basic/Text.js\":\n/*!*********************************!*\\\n !*** ./src/shape/basic/Text.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.Text = _packages2.default.shape.basic.Label.extend({\n\n NAME: \"draw2d.shape.basic.Text\",\n\n /**\r\n * @constructor\r\n * Creates a new text element.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.cachedWrappedAttr = null;\n\n this._super(extend({ width: 100, height: 50, resizeable: true }, attr), setter, getter);\n\n this.installEditPolicy(new _packages2.default.policy.figure.WidthSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n // style the label\n this.svgNodes.attr(extend({}, this.calculateTextAttr(), this.wrappedTextAttr(this.text, this.getWidth() - this.padding.left - this.padding.right)));\n\n // set of the x/y must be done AFTER the font-size and bold has been set.\n // Reason: the getHeight method needs the font-size for calculation because\n // it redirects the calculation to the SVG element.\n this.svgNodes.attr({ x: this.padding.left, y: this.getHeight() / 2 });\n\n // this is an exception call. Don't call the super method (Label) to avoid\n // the calculation in this method.\n _packages2.default.SetFigure.prototype.repaint.call(this, attributes);\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this.clearCache();\n var attr = this.wrappedTextAttr(this.text, w);\n\n this.cachedMinWidth = Math.max(w, attr.width);\n this.cachedMinHeight = attr.height;\n\n _packages2.default.shape.node.Node.prototype.setDimension.call(this, this.cachedMinWidth, this.cachedMinHeight);\n // this._super(Math.min(w,attr.width),attr.height);\n this.fireEvent(\"change:dimension\", { value: { width: this.cachedMinWidth, height: this.cachedMinHeight } });\n\n return this;\n },\n\n /**\r\n * @method\r\n * clear the internal cache for width/height precalculation\r\n * @private\r\n */\n clearCache: function clearCache() {\n this._super();\n this.cachedWrappedAttr = null;\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinWidth: function getMinWidth() {\n if (this.shape === null) {\n return 0;\n }\n\n if (this.cachedMinWidth === null) {\n // get the longest word in the text\n //\n var longestWord = this.text.split(\" \").reduce(function (arg1, arg2) {\n return arg1.length > arg2.length ? arg1 : arg2;\n });\n var svgText = this.canvas.paper.text(0, 0, longestWord).attr(extend({}, this.calculateTextAttr(), { text: longestWord }));\n this.cachedMinWidth = svgText.getBBox(true).width + this.padding.left + this.padding.right + 2 * this.getStroke();\n svgText.remove();\n }\n\n return this.cachedMinWidth;\n },\n\n /**\r\n * @method\r\n * calculates the attributes (wrapped text and width, height) with the given parameter\r\n *\r\n * @private\r\n */\n wrappedTextAttr: function wrappedTextAttr(text, width) {\n var words = text.split(\" \");\n if (this.canvas === null || words.length === 0) {\n return { text: text, width: width, height: 20 };\n }\n\n if (this.cachedWrappedAttr === null) {\n var abc = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n var svgText = this.canvas.paper.text(0, 0, \"\").attr(extend({}, this.calculateTextAttr(), { text: abc }));\n\n // get a good estimation of a letter width...not correct but this is working for the very first draft implementation\n var letterWidth = svgText.getBBox(true).width / abc.length;\n\n var s = [words[0]],\n x = s[0].length * letterWidth;\n var w = null;\n for (var i = 1; i < words.length; i++) {\n w = words[i];\n var l = w.length * letterWidth;\n if (x + l > width) {\n s.push(\"\\n\");\n x = l;\n } else {\n s.push(\" \");\n x += l;\n }\n s.push(w);\n }\n // set the wrapped text and get the resulted boudning box\n //\n svgText.attr({ text: s.join(\"\") });\n var bbox = svgText.getBBox(true);\n svgText.remove();\n this.cachedWrappedAttr = {\n text: s.join(\"\"),\n width: Math.max(width, bbox.width) + this.padding.left + this.padding.right,\n height: bbox.height + this.padding.top + this.padding.bottom\n };\n }\n return this.cachedWrappedAttr;\n }\n\n}); /**\r\n * @class draw2d.shape.basic.Text\r\n * Implements a simple text with word wrapping.<br>The height of the element is automatic calculated. The widht of\r\n * the element is changeable by the user and respect the minWidth constraint.\r\n * <br>\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let shape = new draw2d.shape.basic.Text({text:\"This is a simple text with some loooooong word in.\"});\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n * @author Andreas Herz\r\n * @since 4.2.3\r\n * @extends draw2d.shape.basic.Label\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/basic/VertexResizeHandle.js\":\n/*!***********************************************!*\\\n !*** ./src/shape/basic/VertexResizeHandle.js ***!\n \\***********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.basic.VertexResizeHandle = _packages2.default.ResizeHandle.extend({\n NAME: \"draw2d.shape.basic.VertexResizeHandle\",\n\n SNAP_THRESHOLD: 3,\n LINE_COLOR: \"#1387E6\",\n FADEOUT_DURATION: 300,\n\n init: function init(owner, index) {\n this._super({ owner: owner });\n this.index = index;\n this.isDead = false;\n },\n\n /**\r\n * @method\r\n * Called when a user double clicks on the element\r\n *\r\n * @template\r\n */\n onDoubleClick: function onDoubleClick() {\n var cmd = new _packages2.default.command.CommandRemoveVertex(this.owner, this.index);\n this.getCanvas().getCommandStack().execute(cmd);\n\n this.isDead = true;\n },\n\n /**\r\n * @method\r\n * Called if a drag&drop operation starts.<br>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @private\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n if (this.isDead === true) {\n return;\n }\n\n this._super();\n this.command = this.getCanvas().getPrimarySelection().createCommand(new _packages2.default.command.CommandType(_packages2.default.command.CommandType.MOVE_VERTEX));\n if (this.command != null) {\n this.command.setIndex(this.index);\n this.setAlpha(0.2);\n this.shape.attr({ \"cursor\": \"crosshair\" });\n }\n\n // Vertex is a reference and not a copy of the point\n this.vertex = this.owner.getVertex(this.index).clone();\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragstart\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n\n return true;\n },\n\n /**\r\n * @method\r\n * Called from the framework during a drag&drop operation\r\n *\r\n * @param {Number} dx the x difference between the start of the drag drop operation and now\r\n * @param {Number} dy the y difference between the start of the drag drop operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n **/\n onDrag: function onDrag(dx, dy, dx2, dy2) {\n if (this.isDead === true || this.command == null) {\n return;\n }\n\n this.setPosition(this.x + dx2, this.y + dy2);\n\n // update the polyline for immediately drag&drop feedback\n //\n this.vertex.translate(dx2, dy2);\n var newPos = this.vertex.clone();\n // Adjust the new location if the object can snap to a helper\n // like grid, geometry, ruler,...\n //\n if (this.getCanSnapToHelper()) {\n newPos = this.getCanvas().snapToHelper(this, newPos);\n }\n\n this.owner.setVertex(this.index, newPos.x, newPos.y);\n\n // update the command for the undo/redo stuff\n //\n this.command.updatePosition(this.vertex.x, this.vertex.y);\n },\n\n /**\r\n * @method Called after a drag and drop action.<br>\r\n * Sub classes can override this method to implement additional stuff. Don't forget to call the super implementation via <code>this._super();</code>\r\n *\r\n * @param {Number} x the x-coordinate of the mouse event\r\n * @param {Number} y the y-coordinate of the mouse event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n */\n onDragEnd: function onDragEnd(x, y, shiftKey, ctrlKey) {\n if (this.isDead === true || this.command === null) {\n return;\n }\n\n this.shape.attr({ \"cursor\": \"move\" });\n\n var stack = this.getCanvas().getCommandStack();\n\n var transactionCommand = new _packages2.default.command.CommandCollection();\n\n try {\n transactionCommand.add(this.command);\n this.command = null;\n if (this.getEnclosingAngle() > 178) {\n transactionCommand.add(new _packages2.default.command.CommandRemoveVertex(this.owner, this.index));\n }\n } finally {\n stack.execute(transactionCommand);\n }\n\n this.setAlpha(1);\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"dragend\", { x: x, y: y, shiftKey: shiftKey, ctrlKey: ctrlKey });\n },\n\n /**\r\n * @method\r\n * Controls the location of the resize handle\r\n *\r\n * @template\r\n **/\n relocate: function relocate() {\n var resizeWidthHalf = this.getWidth() / 2;\n var resizeHeightHalf = this.getHeight() / 2;\n\n var anchor = this.owner.getVertex(this.index);\n\n this.setPosition(anchor.x - resizeWidthHalf, anchor.y - resizeHeightHalf);\n },\n\n /**\r\n * @method\r\n * Calculates the angle between the siblings\r\n *\r\n * @returns {Number}\r\n */\n getEnclosingAngle: function getEnclosingAngle() {\n // calculate the angle between the siblings\n var points = this.owner.getVertices();\n var trans = this.vertex.getScaled(-1);\n var size = points.getSize();\n var left = points.get((this.index - 1 + size) % size).translated(trans); // % is just to ensure the [0, size] interval\n var right = points.get((this.index + 1) % size).translated(trans); // % is just to ensure the [0, size] interval\n\n var dot = left.dot(right);\n\n var acos = Math.acos(dot / (left.length() * right.length()));\n return acos * 180 / Math.PI;\n }\n\n}); /**\r\n * @class draw2d.shape.basic.VertexResizeHandle\r\n *\r\n * Selection handle for polyline vertices.\r\n *\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.ResizeHandle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/composite/Composite.js\":\n/*!******************************************!*\\\n !*** ./src/shape/composite/Composite.js ***!\n \\******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.composite.Composite = _packages2.default.SetFigure.extend({\n NAME: \"draw2d.shape.composite.Composite\",\n\n /**\r\n * @constructor\r\n * Creates a new composite element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ stroke: 1, \"color\": \"#f0f0f0\" }, attr), setter, getter);\n },\n\n /**\r\n * @method\r\n * Called when a user dbl clicks on the element\r\n *\r\n * @template\r\n */\n onDoubleClick: function onDoubleClick() {\n // do nothing per default. no rotation of the shape.\n },\n\n /**\r\n * @method\r\n * Delegate method to calculate if a figure is selectable. A composite has the right to override the\r\n * initial selectable flag of the figure.\r\n *\r\n * @param {draw2d.Figure} figure the figure to test\r\n * @param {Boolean} selectable the initial selectable flag of the figure\r\n * @returns\r\n *\r\n */\n isMemberSelectable: function isMemberSelectable(figure, selectable) {\n return selectable;\n },\n\n /**\r\n * @method\r\n * Delegate method to calculate if a figure is draggable. A composite has the right to override the\r\n * initial draggable flag of the figure.\r\n *\r\n * @param {draw2d.Figure} figure the figure to test\r\n * @param {Boolean} draggable the initial draggable flag of the figure\r\n * @returns\r\n *\r\n */\n isMemberDraggable: function isMemberDraggable(figure, draggable) {\n return draggable;\n },\n\n /**\r\n * @method\r\n * Set the canvas element of this figures. This can be used to determine whenever an element\r\n * is added or removed to the canvas.\r\n *\r\n * @param {draw2d.Canvas} canvas the new parent of the figure or null\r\n */\n setCanvas: function setCanvas(canvas) {\n this._super(canvas);\n\n // an composite shape goes always in the background\n //\n if (canvas !== null) {\n this.toBack();\n }\n }\n\n}); /**\r\n * @class draw2d.shape.composite.Composite\r\n * Base interface for the compiste shapes\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Rectangle\r\n * @since 4.7.2\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/composite/Group.js\":\n/*!**************************************!*\\\n !*** ./src/shape/composite/Group.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.composite.Group = _packages2.default.shape.composite.StrongComposite.extend({\n NAME: \"draw2d.shape.composite.Group\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ bgColor: null, color: null, resizeable: false }, attr), setter, getter);\n\n // used during figure assignment/unassignment. The Group resizes during figure assignment\n // and we want avoid that already assigned figures are moving during this resize.\n //\n this.stickFigures = false;\n },\n\n /**\r\n * @method\r\n * Delegate method to calculate if a figure is selectable. A composite has the right to override the\r\n * initial selectable flag of the figure.\r\n *\r\n * @param {draw2d.Figure} figure the figure to test\r\n * @param {Boolean} selectable the initial selectable flag of the figure\r\n * @returns\r\n *\r\n */\n isMemberSelectable: function isMemberSelectable(figure, selectable) {\n return false;\n },\n\n /**\r\n * @method\r\n * Delegate method to calculate if a figure is draggable. A composite has the right to override the\r\n * initial draggable flag of the figure.\r\n * <br>\r\n * Returns false because only the complete group is draggable\r\n *\r\n * @param {draw2d.Figure} figure the figure to test\r\n * @param {Boolean} draggable the initial draggable flag of the figure\r\n * @returns\r\n *\r\n */\n isMemberDraggable: function isMemberDraggable(figure, draggable) {\n return false;\n },\n\n /**\r\n * @method\r\n * Set the position of the object.\r\n *\r\n * @param {Number/draw2d.geo.Point} x The new x coordinate of the figure\r\n * @param {Number} [y] The new y coordinate of the figure\r\n **/\n setPosition: function setPosition(x, y) {\n var oldX = this.x;\n var oldY = this.y;\n\n this._super(x, y);\n\n var dx = this.x - oldX;\n var dy = this.y - oldY;\n\n if (dx === 0 && dy === 0) {\n return this;\n }\n\n if (this.stickFigures === false) {\n this.assignedFigures.each(function (i, figure) {\n figure.translate(dx, dy);\n });\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Assign a figure to the given group.\r\n * The bounding box of the group is recalculated and the union of the current bounding box with the\r\n * figure bounding box.\r\n *\r\n * @param {draw2d.Figure} figure\r\n */\n assignFigure: function assignFigure(figure) {\n if (!this.assignedFigures.contains(figure)) {\n var _this = this;\n this.stickFigures = true;\n if (this.assignedFigures.isEmpty() === true) {\n this.setBoundingBox(figure.getBoundingBox());\n } else {\n this.setBoundingBox(this.getBoundingBox().merge(figure.getBoundingBox()));\n }\n this.assignedFigures.add(figure);\n figure.setComposite(this);\n // the selection adapter defines which figure should be selected if the user clicks on\n // \"figure\". The \"group\" redirects to the group instead to allowing select the child.\n figure.setSelectionAdapter(function () {\n return _this;\n });\n this.stickFigures = false;\n }\n return this;\n },\n\n /**\r\n * @method\r\n * Remove the given figure from the group assignment\r\n *\r\n * @param {draw2d.Figure} figure the figure to remove\r\n *\r\n */\n unassignFigure: function unassignFigure(figure) {\n if (this.assignedFigures.contains(figure)) {\n this.stickFigures = true;\n figure.setComposite(null);\n figure.setSelectionAdapter(null);\n this.assignedFigures.remove(figure);\n if (!this.assignedFigures.isEmpty()) {\n var box = this.assignedFigures.first().getBoundingBox();\n this.assignedFigures.each(function (i, figure) {\n box.merge(figure.getBoundingBox());\n });\n this.setBoundingBox(box);\n }\n this.stickFigures = false;\n }\n\n return this;\n },\n\n /**\r\n * @inheritDoc\r\n */\n createCommand: function createCommand(request) {\n if (request === null) {\n return null;\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.DELETE) {\n if (!this.isDeleteable()) {\n return null;\n }\n return new _packages2.default.command.CommandDeleteGroup(this);\n }\n\n return this._super(request);\n }\n\n}); /**\r\n * @class draw2d.shape.composite.Group\r\n *\r\n * A group is a figure that acts as a transparent container for other figures. A group\r\n * is a StrongComposite node that controls a set of child figures. The bounding rectangle of\r\n * a group is the union of the bounds of its children. Child nodes cannot be selected or\r\n * manipulated individually.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.composite.StrongComposite\r\n * @since 4.8.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/composite/Jailhouse.js\":\n/*!******************************************!*\\\n !*** ./src/shape/composite/Jailhouse.js ***!\n \\******************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.composite.Jailhouse = _packages2.default.shape.composite.StrongComposite.extend({\n NAME: \"draw2d.shape.composite.Jailhouse\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.policy = new _packages2.default.policy.figure.RegionEditPolicy(0, 0, 10, 10);\n this._super(extend({ bgColor: \"#f0f0f0\", color: \"#333333\" }, attr), setter, getter);\n\n this.stickFigures = false;\n },\n\n /**\r\n * @method\r\n * Set the new width and height of the figure and update the constraint policy for the assigned\r\n * figures..\r\n *\r\n * @param {Number} w The new width of the figure\r\n * @param {Number} h The new height of the figure\r\n **/\n setDimension: function setDimension(w, h) {\n this._super(w, h);\n this.policy.setBoundingBox(this.getAbsoluteBounds());\n },\n\n /**\r\n * @method\r\n * Set the position of the object.\r\n *\r\n * @param {Number/draw2d.geo.Point} x The new x coordinate of the figure\r\n * @param {Number} [y] The new y coordinate of the figure\r\n **/\n setPosition: function setPosition(x, y) {\n var oldX = this.x;\n var oldY = this.y;\n\n this._super(x, y);\n\n var dx = this.x - oldX;\n var dy = this.y - oldY;\n\n if (dx === 0 && dy === 0) {\n return this;\n }\n this.policy.setBoundingBox(this.getAbsoluteBounds());\n\n if (this.stickFigures === false) {\n this.assignedFigures.each(function (i, figure) {\n figure.translate(dx, dy);\n });\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Assign a figure to the given group.\r\n * The bounding box of the group is recalculated and the union of the current bounding box with the\r\n * figure bounding box.\r\n *\r\n * @param {draw2d.Figure} figure\r\n */\n assignFigure: function assignFigure(figure) {\n if (!this.assignedFigures.contains(figure) && figure !== this) {\n this.stickFigures = true;\n this.setBoundingBox(this.getBoundingBox().merge(figure.getBoundingBox()));\n this.assignedFigures.add(figure);\n figure.setComposite(this);\n figure.installEditPolicy(this.policy);\n figure.toFront(this);\n this.stickFigures = false;\n }\n return this;\n },\n\n /**\r\n * @method\r\n * Remove the given figure from the group assignment\r\n *\r\n * @param {draw2d.Figure} figure the figure to remove\r\n *\r\n */\n unassignFigure: function unassignFigure(figure) {\n if (this.assignedFigures.contains(figure)) {\n this.stickFigures = true;\n figure.setComposite(null);\n figure.uninstallEditPolicy(this.policy);\n this.assignedFigures.remove(figure);\n if (!this.assignedFigures.isEmpty()) {\n var box = this.assignedFigures.first().getBoundingBox();\n this.assignedFigures.each(function (i, figure) {\n box.merge(figure.getBoundingBox());\n });\n this.setBoundingBox(box);\n }\n this.stickFigures = false;\n }\n\n return this;\n },\n\n onCatch: function onCatch(droppedFigure, x, y, shiftKey, ctrlKey) {\n this.getCanvas().getCommandStack().execute(new _packages2.default.command.CommandAssignFigure(droppedFigure, this));\n },\n\n /**\r\n * @method\r\n * Return the minWidth of the jailhouse. The minWidth is calculated by care the assigned figures.\r\n *\r\n *\r\n * @private\r\n * @returns\r\n */\n getMinWidth: function getMinWidth() {\n var width = 0;\n this.assignedFigures.each(function (i, figure) {\n width = Math.max(width, figure.getBoundingBox().getRight());\n });\n return width - this.getAbsoluteX();\n },\n\n /**\r\n * @method\r\n *\r\n * @private\r\n * @returns\r\n */\n getMinHeight: function getMinHeight() {\n var height = 0;\n this.assignedFigures.each(function (i, figure) {\n height = Math.max(height, figure.getBoundingBox().getBottom());\n });\n return height - this.getAbsoluteY();\n }\n}); /**\r\n * @class draw2d.shape.composite.Jailhouse\r\n *\r\n * A Jailhouse is a figure that acts as a container for other figures. A Jailhouse\r\n * is a StrongComposite node that controls a set of child figures. Child nodes can't\r\n * moved outside of the composite.<br>\r\n * Objects in a jailhouse have the same Z-order, which can be relatively controlled with\r\n * respect to other figures.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.composite.StrongComposite\r\n * @since 4.8.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/composite/Raft.js\":\n/*!*************************************!*\\\n !*** ./src/shape/composite/Raft.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.composite.Raft = _packages2.default.shape.composite.WeakComposite.extend({\n NAME: \"draw2d.shape.composite.Raft\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n\n this.aboardFigures = new _packages2.default.util.ArrayList();\n\n this._super(extend({ bgColor: \"#f0f0f0\", color: \"#1B1B1B\" }, attr), setter, getter);\n },\n\n /**\r\n * @method\r\n * Will be called if the drag and drop action begins. You can return [false] if you\r\n * want avoid that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} true if the figure accepts dragging\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n this._super(x, y, shiftKey, ctrlKey);\n\n this.aboardFigures = new _packages2.default.util.ArrayList();\n // force the recalculation of the aboard figures if the shape is in a drag&drop operation\n this.getAboardFigures(this.isInDragDrop);\n\n return true;\n },\n\n /**\r\n * @method\r\n * Set the position of the object.\r\n *\r\n * @param {Number/draw2d.geo.Point} x The new x coordinate of the figure\r\n * @param {Number} [y] The new y coordinate of the figure\r\n * @param {boolean} [dontApplyToChildren] don't move the children if this flag is set.\r\n **/\n setPosition: function setPosition(x, y, dontApplyToChildren) {\n var oldX = this.x;\n var oldY = this.y;\n\n // we need the figures before the composite has moved. Otherwise some figures are fall out of the raft\n //\n var aboardedFigures = dontApplyToChildren ? _packages2.default.util.ArrayList.EMPTY_LIST : this.getAboardFigures(this.isInDragDrop === false);\n\n this._super(x, y);\n\n var dx = this.x - oldX;\n var dy = this.y - oldY;\n\n if (dx === 0 && dy === 0) {\n return this;\n }\n\n // we must move circuits with \"user routed\" elements as well if the start/target is withing\n // the raft. Some segments stay still because some coordinates has a fixed position\n //\n if (this.canvas !== null) {\n aboardedFigures = aboardedFigures.clone();\n this.canvas.getLines().each(function (i, line) {\n if (line instanceof _packages2.default.Connection) {\n if (aboardedFigures.contains(line.getSource().getRoot()) && aboardedFigures.contains(line.getTarget().getRoot())) {\n aboardedFigures.add(line);\n }\n }\n });\n }\n\n aboardedFigures.each(function (i, figure) {\n figure.translate(dx, dy);\n });\n\n return this;\n },\n\n onDrag: function onDrag(dx, dy, dx2, dy2, shiftKey, ctrlKey) {\n var _this = this;\n\n // apply all EditPolicy for DragDrop Operations\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n var _newPos = e.adjustPosition(_this, _this.ox + dx, _this.oy + dy);\n if (_newPos) {\n dx = _newPos.x - _this.ox;\n dy = _newPos.y - _this.oy;\n }\n }\n });\n\n var newPos = new _packages2.default.geo.Point(this.ox + dx, this.oy + dy);\n\n // Adjust the new location if the object can snap to a helper\n // like grid, geometry, ruler,...\n //\n if (this.getCanSnapToHelper()) {\n newPos = this.getCanvas().snapToHelper(this, newPos);\n }\n\n // push the shiftKey to the setPosition method and avoid to move the children objects\n // if the user press the shift key\n this.setPosition(newPos.x, newPos.y, shiftKey);\n\n // notify all installed policies\n //\n this.editPolicy.each(function (i, e) {\n if (e instanceof _packages2.default.policy.figure.DragDropEditPolicy) {\n e.onDrag(_this.canvas, _this);\n }\n });\n\n // fire an event\n // @since 5.3.3\n this.fireEvent(\"drag\", { dx: dx, dy: dy, dx2: dx2, dy2: dy2, shiftKey: shiftKey, ctrlKey: ctrlKey });\n },\n\n /**\r\n * @method\r\n * Return all figures which are aboard of this shape. These shapes are moved as well if the raft\r\n * is moving.\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getAboardFigures: function getAboardFigures(recalculate) {\n if (recalculate === true && this.canvas !== null) {\n var raftBoundingBox = this.getBoundingBox();\n var zIndex = this.getZOrder();\n this.aboardFigures = new _packages2.default.util.ArrayList();\n\n var _this = this;\n this.getCanvas().getFigures().each(function (i, figure) {\n if (figure !== _this && figure.isSelectable() === true && figure.getBoundingBox().isInside(raftBoundingBox)) {\n // Don't add the figure if it is already catched by another composite with a higher z-index\n //\n if (_this.getNextComposite(figure) !== _this) {\n return;\n }\n // only add the shape if it is in front of the raft\n if (figure.getZOrder() > zIndex) {\n _this.aboardFigures.add(figure);\n }\n }\n });\n }\n return this.aboardFigures;\n },\n\n /**\r\n * @method\r\n * return the next potential composite parent figure\r\n *\r\n * @param {draw2d.Figure} figureToTest\r\n * @returns {draw2d.Figure}\r\n */\n getNextComposite: function getNextComposite(figureToTest) {\n var nextComposite = null;\n this.getCanvas().getFigures().each(function (i, figure) {\n if (figureToTest === figure) {\n return;\n }\n if (figure instanceof _packages2.default.shape.composite.Composite) {\n if (nextComposite !== null && nextComposite.getZOrder() > figure.getZOrder()) {\n return;\n }\n\n if (figure.getBoundingBox().contains(figureToTest.getBoundingBox())) {\n nextComposite = figure;\n }\n }\n });\n\n return nextComposite;\n }\n}); /**\r\n * @class draw2d.shape.composite.Raft\r\n * Raft figures are shapes, which aggregate multiple figures. It works like a real raft. Aboard figures are\r\n * moved if the raft figures moves.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let rect1 = new draw2d.shape.composite.Raft({width:200, height:100});\r\n * let rect2 = new draw2d.shape.basic.Rectangle({width:50, height:50});\r\n *\r\n * canvas.add(rect1,10,10);\r\n * canvas.add(rect2,20,20);\r\n *\r\n * rect2.attr({bgColor:\"#f0f000\", width:50, height:50, radius:10});\r\n *\r\n * canvas.setCurrentSelection(rect1);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.composite.WeakComposite\r\n * @since 4.7.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/composite/StrongComposite.js\":\n/*!************************************************!*\\\n !*** ./src/shape/composite/StrongComposite.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.composite.StrongComposite = _packages2.default.shape.composite.Composite.extend({\n NAME: \"draw2d.shape.composite.StrongComposite\",\n\n /**\r\n * @constructor\r\n * Creates a new strong composite element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.assignedFigures = new _packages2.default.util.ArrayList();\n\n this._super(attr, setter, getter);\n },\n\n /**\r\n * @method\r\n * Check to see if a figure is a descendant of another figure.\r\n * <br>\r\n * The contains() method returns true if the figure provided by the argument is a descendant of this figure,\r\n * whether it is a direct child or nested more deeply. Otherwise, it returns false.\r\n *\r\n * @param {draw2d.Figure} containedFigure The figure that may be contained by (a descendant of) this figure.\r\n * @since 5.5.4\r\n */\n contains: function contains(containedFigure) {\n for (var i = 0, len = this.assignedFigures.getSize(); i < len; i++) {\n var child = this.assignedFigures.get(i);\n if (child === containedFigure || child.contains(containedFigure)) {\n return true;\n }\n }\n return this._super(containedFigure);\n },\n\n /**\r\n * @method\r\n * Assign a figure to the composite.\r\n *\r\n * @param {draw2d.Figure} figure\r\n * @template\r\n */\n assignFigure: function assignFigure(figure) {\n return this;\n },\n\n /**\r\n * @method\r\n * Remove the given figure from the group assignment\r\n *\r\n * @param {draw2d.Figure} figure the figure to remove\r\n * @template\r\n */\n unassignFigure: function unassignFigure(figure) {\n return this;\n },\n\n /**\r\n * @method\r\n * Return all assigned figures of the composite\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getAssignedFigures: function getAssignedFigures() {\n return this.assignedFigures;\n },\n\n /**\r\n * @method\r\n * Called if the user drop this element onto the dropTarget. This event is ONLY fired if the\r\n * shape return \"this\" in the onDragEnter method.\r\n *\r\n *\r\n * @param {draw2d.Figure} dropTarget The drop target.\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n * @since 4.7.4\r\n **/\n onDrop: function onDrop(dropTarget, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Called if the user dropped an figure onto this element. This event is ONLY fired if the\r\n * shape return \"this\" in the onDragEnter method.\r\n *\r\n *\r\n * @param {draw2d.Figure} droppedFigure The dropped figure.\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n * @template\r\n * @since 4.7.4\r\n **/\n onCatch: function onCatch(droppedFigure, x, y, shiftKey, ctrlKey) {},\n\n /**\r\n * @method\r\n * Moves the element so it is the closest to the viewer’s eyes, on top of other elements. Additional\r\n * the internal model changed as well.\r\n *\r\n * Optional: Inserts current object in front of the given one.\r\n *\r\n * @param {draw2d.Figure} [figure] move current object in front of the given one.\r\n */\n toFront: function toFront(figure) {\n this._super(figure);\n // ensure that all assigned figures are in front of the composite\n //\n var figures = this.getAssignedFigures().clone();\n figures.sort(function (a, b) {\n // return 1 if a before b\n // return -1 if b before a\n return a.getZOrder() > b.getZOrder() ? -1 : 1;\n });\n var _this = this;\n figures.each(function (i, f) {\n f.toFront(_this);\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Moves the element to the background. Additional\r\n * the internal model changed as well.\r\n *\r\n * @since 4.7.2\r\n */\n toBack: function toBack(figure) {\n this._super(figure);\n // ensure that all assigned figures are in front of the composite\n //\n var figures = this.getAssignedFigures().clone();\n figures.sort(function (a, b) {\n // return 1 if a before b\n // return -1 if b before a\n return a.getZOrder() > b.getZOrder() ? -1 : 1;\n });\n\n var _this = this;\n figures.each(function (i, f) {\n f.toBack(_this);\n });\n\n return this;\n }\n}); /**\r\n * @class draw2d.shape.composite.StrongComposite\r\n * A StrongComposite is a composite figure with strong assignment of the children and the composite.\r\n * The child knows everything about the assigned composite and receives events about assignment to a\r\n * composite.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.composite.Composite\r\n * @since 4.8.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/composite/WeakComposite.js\":\n/*!**********************************************!*\\\n !*** ./src/shape/composite/WeakComposite.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.composite.WeakComposite = _packages2.default.shape.composite.Composite.extend({\n NAME: \"draw2d.shape.composite.WeakComposite\",\n\n /**\r\n * @constructor\r\n * Creates a new weak composite element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n }\n}); /**\r\n * @class draw2d.shape.composite.WeakComposite\r\n * A WeakComposite is a composite figure with loose coupling of the children and the composite.\r\n * The child didn't know anything about the assigned composite nor did they receive any events\r\n * about assignment to a composite.\r\n *\r\n * Assignment without obligation.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.composite.Composite\r\n * @since 4.8.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/diagram/Diagram.js\":\n/*!**************************************!*\\\n !*** ./src/shape/diagram/Diagram.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nvar _JSONUtil = __webpack_require__(/*! ../../util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.diagram.Diagram = _packages2.default.SetFigure.extend({\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.data = [];\n this.cache = {};\n\n this._super((0, _extend2.default)({ data: [], bgColor: \"#8dabf2\", stroke: 1, color: \"#f0f0f0\", radius: 2, resizeable: true }, attr), (0, _extend2.default)({}, {\n /** @attr {Array} data the data to display in the diagram */\n data: this.setData\n }, setter), (0, _extend2.default)({}, {\n data: this.getData\n }, getter));\n },\n\n /**\r\n * @method\r\n * Set the data for the chart/diagram element\r\n *\r\n * @param {Array} data\r\n *\r\n */\n setData: function setData(data) {\n this.data = data;\n this.cache = {};\n\n if (this.svgNodes !== null) {\n this.svgNodes.remove();\n this.svgNodes = this.createSet();\n }\n\n this.repaint();\n this.fireEvent(\"change:data\", { value: data });\n },\n\n /**\r\n * @method\r\n * Return the data of the diagram\r\n *\r\n * @since 5.0.0\r\n */\n getData: function getData() {\n return this.data;\n },\n\n /**\r\n * @method\r\n * Set the dimension of the diagram and reset the cached calculation\r\n *\r\n * @since 5.0.0\r\n */\n setDimension: function setDimension(w, h) {\n this.cache = {};\n this._super(w, h);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the calculate width of the set. This calculates the bounding box of all elements.\r\n *\r\n * @return {Number} the calculated width of the label\r\n **/\n getWidth: function getWidth() {\n return this.width;\n },\n\n /**\r\n * @method\r\n * Return the calculated height of the set. This calculates the bounding box of all elements.\r\n *\r\n * @return {Number} the calculated height of the label\r\n */\n getHeight: function getHeight() {\n return this.height;\n },\n\n /**\r\n *\r\n * @param attributes\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape == null) {\n return this;\n }\n\n attributes = attributes || {};\n\n _JSONUtil2.default.ensureDefault(attributes, \"fill\", \"none\");\n\n return this._super(attributes);\n },\n\n applyTransformation: function applyTransformation() {\n if (this.isResizeable() === true) {\n this.svgNodes.transform(\"S\" + this.scaleX + \",\" + this.scaleY + \",\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY() + \"t\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n } else {\n this.svgNodes.transform(\"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n }\n\n return this;\n }\n\n}); /**\r\n * @class draw2d.shape.diagram.Diagram\r\n *\r\n * Base class for all diagrams.\r\n *\r\n * @extends draw2d.SetFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/diagram/Pie.js\":\n/*!**********************************!*\\\n !*** ./src/shape/diagram/Pie.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.diagram.Pie\r\n *\r\n * Small data pie chart.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let pie = new draw2d.shape.diagram.Pie({\r\n * diameter:80,\r\n * data:[30,60,122,4],\r\n * x:100,\r\n * y:60\r\n * });\r\n *\r\n * canvas.add( pie);\r\n *\r\n * @extends draw2d.shape.diagram.Diagram\r\n */\n_packages2.default.shape.diagram.Pie = _packages2.default.shape.diagram.Diagram.extend({\n\n COLORS: ['#00A8F0', '#b9dd69', '#f3546a', '#4DA74D', '#9440ED'],\n TWO_PI: Math.PI * 2,\n\n /**\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n\n this._super((0, _extend2.default)({ stroke: 0 }, attr), (0, _extend2.default)({\n /** @attr {Number} diameter the diameter of the pie chart */\n diameter: this.setDiameter,\n /** @attr {Number} radius the radius of the pie chart */\n radius: this.setRadius\n }, setter), (0, _extend2.default)({\n diameter: this.getDiameter,\n radius: this.getRadius\n }, getter));\n },\n\n /**\r\n * @method\r\n * Set the diameter of the circle. The center of the circle will be retained.\r\n *\r\n * @param {Number} d The new diameter of the circle.\r\n * @since 4.0.0\r\n **/\n setDiameter: function setDiameter(d) {\n var center = this.getCenter();\n this.setDimension(d, d);\n this.setCenter(center);\n this.fireEvent(\"change:diameter\", { value: this.width });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the diameter of the circle.\r\n *\r\n * @since 4.0.0\r\n **/\n getDiameter: function getDiameter() {\n return this.getWidth();\n },\n\n /**\r\n * @method\r\n * Set the radius of the circle. The center of the circle will be retained.\r\n *\r\n * @param {Number} r The new radius of the circle.\r\n * @since 4.0.0\r\n **/\n setRadius: function setRadius(r) {\n this.setDiameter(r * 2);\n this.fireEvent(\"change:radius\", { value: this.width / 2 });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the center of the circle\r\n *\r\n */\n getCenter: function getCenter() {\n var d2 = this.getDiameter() / 2;\n return this.getPosition().translate(d2, d2);\n },\n\n /**\r\n * @method\r\n * Set the center of the circle.\r\n *\r\n * @param {Number|draw2d.geo.Point} x the new x coordinate of the center or a draw2d.geo.Point object with the center\r\n * @param {Number} y the y coordinate of the new center of the first argument isn't a draw2d.geo.Point object\r\n */\n setCenter: function setCenter(x, y) {\n var pos = new _packages2.default.geo.Point(x, y);\n var d2 = this.getDiameter() / 2;\n pos.translate(-d2, -d2);\n this.setPosition(pos);\n this.fireEvent(\"change:center\", { value: { x: x, y: y } });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setData: function setData(data) {\n var _this = this;\n\n // Normalize the Data.\n // The SUM must be == 1.\n this.sum = 0;\n data.forEach(function (val) {\n _this.sum += val;\n });\n var _sum = 1 / this.sum;\n data.forEach(function (val, i) {\n data[i] = _sum * val;\n });\n\n // pass the normalize data to the base implementation\n //\n this._super(data);\n this.fireEvent(\"change:data\", { value: data });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createSet: function createSet() {\n var radius = this.getWidth() / 2;\n var length = this.data.length;\n\n var pie = this.canvas.paper.set();\n\n var offsetAngle = 0;\n\n for (var i = 0; i < length; i++) {\n // angle is percent of TWO_PI\n var angle = this.TWO_PI * this.data[i];\n var color = this.COLORS[i % length];\n var seg = this.drawSegment(radius, angle, offsetAngle, 0.1);\n seg.attr({ stroke: this.color.rgba(), fill: color });\n pie.push(seg);\n offsetAngle += angle;\n }\n return pie;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n // keep the aspect ration\n //\n if (w > h) {\n this._super(w, w);\n } else {\n this._super(h, h);\n }\n\n // we must recreate the diagram if we change the size.\n // low performance. Better: transfor/scale the set. Can be done in the next release\n //\n if (this.svgNodes !== null) {\n this.svgNodes.remove();\n this.svgNodes = this.createSet();\n }\n\n this.repaint();\n\n return this;\n },\n\n polarPath: function polarPath(radius, theta, rotation) {\n var x = void 0,\n y = void 0;\n x = radius * Math.cos(theta + rotation) + radius;\n y = radius * Math.sin(theta + rotation) + radius;\n return \"L \" + x + \" \" + y + \" \";\n },\n\n drawSegment: function drawSegment(radius, value, rotation, resolution) {\n var path = \"M \" + radius + \" \" + radius;\n\n for (var i = 0; i < value; i += resolution) {\n path += this.polarPath(radius, i, rotation);\n }\n path += this.polarPath(radius, value, rotation);\n\n path += \"L \" + radius + \" \" + radius;\n return this.getCanvas().paper.path(path);\n },\n\n /**\r\n * @inheritdoc\r\n */\n applyTransformation: function applyTransformation() {\n this.svgNodes.transform(\"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/diagram/Sparkline.js\":\n/*!****************************************!*\\\n !*** ./src/shape/diagram/Sparkline.js ***!\n \\****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /**\r\n * @class draw2d.shape.diagram.Sparkline\r\n *\r\n * Small data line diagram.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let testData = [];\r\n * for(let i=0;i<100;i++) {\r\n * testData.push(Math.floor(Math.random() * 100));\r\n * }\r\n *\r\n * let sparkline = new draw2d.shape.diagram.Sparkline({\r\n * \tdata: testData,\r\n * width:150,\r\n * height:50,\r\n * x:100,\r\n * y:60\r\n * });\r\n *\r\n * canvas.add( sparkline);\r\n *\r\n * @extends draw2d.shape.diagram.Diagram\r\n */\n\n\n_packages2.default.shape.diagram.Sparkline = _packages2.default.shape.diagram.Diagram.extend({\n\n /**\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.min = 0;\n this.max = 10;\n this.padding = 4;\n\n this._super((0, _extend2.default)({ width: 180, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @inheritdoc\r\n */\n setData: function setData(data) {\n if (data.length > 0) {\n // get the min/max from an array and not only from two elements..\n this.min = Math.min.apply(Math, _toConsumableArray(data));\n this.max = Math.max.apply(Math, _toConsumableArray(data));\n } else {\n this.min = 0;\n this.max = 1;\n }\n\n if (this.max == this.min) {\n this.max = this.min + 1;\n }\n\n this._super(data);\n this.fireEvent(\"change:data\", { value: data });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M0 0 l0 0\");\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n var _this = this;\n\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n attributes.fill = \"90-#000:5-#4d4d4d:95\";\n\n var padding = this.padding;\n var width = this.getWidth() - 2 * padding;\n var height = this.getHeight() - 2 * padding;\n var length = this.data.length;\n var min = this.min;\n var max = this.max;\n var toCoords = function toCoords(value, idx) {\n var step = 1;\n // avoid divisionByZero\n if (length > 1) {\n step = width / (length - 1);\n }\n\n return {\n y: -((value - min) / (max - min) * height) + height + padding,\n x: padding + idx * step\n };\n };\n\n if (this.svgNodes !== null && typeof this.cache.pathString === \"undefined\") {\n var prev_pt = null;\n this.data.forEach(function (item, idx) {\n var pt = toCoords(item, idx);\n if (prev_pt === null) {\n _this.cache.pathString = [\"M\", pt.x, pt.y].join(\" \");\n } else {\n _this.cache.pathString = [_this.cache.pathString, \"L\", pt.x, pt.y].join(\" \");\n }\n prev_pt = pt;\n });\n\n this.svgNodes.attr({ path: this.cache.pathString, stroke: \"#f0f0f0\" });\n }\n this._super(attributes);\n\n return this;\n }\n});\n\n/***/ }),\n\n/***/ \"./src/shape/dimetric/Rectangle.js\":\n/*!*****************************************!*\\\n !*** ./src/shape/dimetric/Rectangle.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.dimetric.Rectangle = _packages2.default.shape.basic.Polygon.extend({\n NAME: \"draw2d.shape.dimetric.Rectangle\",\n\n /**\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ bgColor: \"#00a3f6\", color: \"#1B1B1B\" }, attr), setter, getter);\n\n var pos = this.getPosition();\n\n this.resetVertices();\n\n var angle26 = Math.atan(.5);\n var cos30 = Math.cos(angle26);\n var sin30 = Math.sin(angle26);\n\n var box = this.getBoundingBox();\n var w = box.w;\n var h = box.h;\n\n this.addVertex(0, 0); // topLeft\n this.addVertex(cos30 * w, sin30 * w); // topRight\n this.addVertex(cos30 * w - cos30 * h, sin30 * w + sin30 * h); // bottomRight\n this.addVertex(-cos30 * h, sin30 * h); // bottomLeft\n\n // override the selection handler from the polygon. Because the vertices of\n // the diamond are not selectable and modifiable\n //\n this.installEditPolicy(new _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy());\n\n this.setPosition(pos);\n }\n}); /**\r\n * @class draw2d.shape.dimetric.Rectangle\r\n * A Rectangle Figure in a dimetric perspective.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let d1 = new draw2d.shape.dimetric.Rectangle({x:10,y:10});\r\n * let d2 = new draw2d.shape.dimetric.Rectangle({x:100,y:10, bgColor:\"#f0f000\", alpha:0.7, width:100, height:60});\r\n *\r\n * canvas.add(d1);\r\n * canvas.add(d2);\r\n *\r\n * canvas.setCurrentSelection(d2);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Polygon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/flowchart/Document.js\":\n/*!*****************************************!*\\\n !*** ./src/shape/flowchart/Document.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.flowchart.Document = _packages2.default.VectorFigure.extend({\n NAME: \"draw2d.shape.flowchart.Document\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.amplitude = 0.08; // percentage of height\n\n this._super(extend({\n width: 80,\n height: 50,\n bgColor: \"#2196f3\",\n color: \"#1B1B1B\",\n stroke: 1\n }, attr), setter, getter);\n },\n\n /**\r\n * @inheritdoc\r\n */\n createShapeElement: function createShapeElement() {\n return this.canvas.paper.path(this.calcPath());\n },\n\n calcPath: function calcPath() {\n var w = this.getWidth();\n var h = this.getHeight();\n var w2 = w / 2;\n var w4 = w / 4;\n var h2 = h * this.amplitude | 0;\n\n return [\"M\", this.getAbsoluteX(), \",\", this.getAbsoluteY(), \"l\", w, \",\", 0, \"l\", 0, \",\", h - h2, \"q\", -w4, \",\", -h2, -w2, \",\", 0, \"q\", -w4, \",\", h2, -w2, \",\", 0, \"z\"].join(\" \");\n },\n\n /**\r\n * @inheritdoc\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = extend({}, {\n path: this.calcPath()\n }, attributes);\n\n this._super(attributes);\n\n return this;\n }\n /*\r\n function draw_curve(Ax, Ay, Bx, By, M) {\r\n // Find midpoint J\r\n let Jx = Ax + (Bx - Ax) / 2\r\n let Jy = Ay + (By - Ay) / 2\r\n // We need a and b to find theta, and we need to know the sign of each to make sure that the orientation is correct.\r\n let a = Bx - Ax\r\n let asign = (a < 0 ? -1 : 1)\r\n let b = By - Ay\r\n let bsign = (b < 0 ? -1 : 1)\r\n let theta = Math.atan(b / a)\r\n // Find the point that's perpendicular to J on side\r\n let costheta = asign * Math.cos(theta)\r\n let sintheta = asign * Math.sin(theta)\r\n // Find c and d\r\n let c = M * sintheta\r\n let d = M * costheta\r\n // Use c and d to find Kx and Ky\r\n let Kx = Jx - c\r\n let Ky = Jy + d\r\n return \"M\" + Ax + \",\" + Ay +\r\n \"Q\" + Kx + \",\" + Ky +\r\n \" \" + Bx + \",\" + By\r\n }*/\n}); /**\r\n * @class draw2d.shape.flowchart.Document\r\n *\r\n * Typical flowchart <b>Document</b> shape\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.flowchart.Document({\r\n * x:100,\r\n * y:60\r\n * });\r\n *\r\n * canvas.add( figure);\r\n *\r\n * @extends draw2d.VectorFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Acw.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Acw.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Acw = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Acw\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M19.275,3.849l1.695,8.56l1.875-1.642c2.311,3.59,1.72,8.415-1.584,11.317c-2.24,1.96-5.186,2.57-7.875,1.908l-0.84,3.396c3.75,0.931,7.891,0.066,11.02-2.672c4.768-4.173,5.521-11.219,1.94-16.279l2.028-1.775L19.275,3.849zM8.154,20.232c-2.312-3.589-1.721-8.416,1.582-11.317c2.239-1.959,5.186-2.572,7.875-1.909l0.842-3.398c-3.752-0.93-7.893-0.067-11.022,2.672c-4.765,4.174-5.519,11.223-1.939,16.283l-2.026,1.772l8.26,2.812l-1.693-8.559L8.154,20.232z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Acw\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Acw();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Alarm.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Alarm.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Alarm = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Alarm\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M8.179,20.115c-0.478,0.277-0.642,0.889-0.365,1.366c0.275,0.479,0.889,0.642,1.365,0.366c0.479-0.275,0.643-0.888,0.367-1.367C9.27,20.004,8.658,19.84,8.179,20.115zM9.18,12.239c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,13.126,9.657,12.516,9.18,12.239zM8.625,17.043c-0.001-0.552-0.448-0.999-1.001-1c-0.553,0-1,0.448-1,1c0,0.553,0.449,1,1,1C8.176,18.043,8.624,17.596,8.625,17.043zM16.312,3.957V3.031h1c0.275,0,0.5-0.225,0.5-0.5v-0.5c0-0.275-0.225-0.5-0.5-0.5h-3.625c-0.275,0-0.5,0.225-0.5,0.5v0.5c0,0.275,0.225,0.5,0.5,0.5h1v0.926C7.819,4.381,2.376,10.068,2.374,17.042C2.376,24.291,8.251,30.166,15.5,30.169c7.249-0.003,13.124-5.878,13.125-13.127C28.624,10.067,23.181,4.38,16.312,3.957zM15.5,27.166C9.909,27.157,5.385,22.633,5.375,17.042C5.385,11.451,9.909,6.927,15.5,6.917c5.59,0.01,10.115,4.535,10.124,10.125C25.615,22.633,21.091,27.157,15.5,27.166zM12.062,22.998c-0.478-0.275-1.089-0.111-1.366,0.367c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.277,1.091,0.111,1.365-0.365C12.704,23.887,12.54,23.275,12.062,22.998zM12.062,11.088c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,11.2,11.584,11.364,12.062,11.088zM22.822,13.971c0.478-0.275,0.643-0.888,0.366-1.366c-0.275-0.478-0.89-0.642-1.366-0.366c-0.479,0.278-0.642,0.89-0.366,1.367C21.732,14.083,22.344,14.247,22.822,13.971zM15.501,23.92c-0.552,0-1,0.447-1,1c0,0.552,0.448,1,1,1s1-0.448,1-1C16.501,24.367,16.053,23.92,15.501,23.92zM19.938,9.355c-0.477-0.276-1.091-0.111-1.365,0.366c-0.275,0.48-0.111,1.091,0.366,1.367s1.089,0.112,1.366-0.366C20.581,10.245,20.418,9.632,19.938,9.355zM23.378,16.042c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1c0.551,0,1-0.447,1-1C24.378,16.492,23.929,16.042,23.378,16.042zM22.823,20.115c-0.48-0.275-1.092-0.111-1.367,0.365c-0.275,0.479-0.112,1.091,0.367,1.367c0.477,0.275,1.089,0.112,1.365-0.366C23.464,21.004,23.3,20.391,22.823,20.115zM15.501,8.167c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.889-0.365,1.366c0.275,0.479,0.889,0.642,1.365,0.366l3.305-1.676c0.055,0.006,0.109,0.017,0.166,0.017c0.828,0,1.5-0.672,1.5-1.5l-0.5-7.876C16.501,8.614,16.053,8.167,15.501,8.167zM18.939,22.998c-0.479,0.276-0.643,0.888-0.366,1.367c0.275,0.477,0.888,0.642,1.366,0.365c0.478-0.276,0.642-0.889,0.366-1.365C20.028,22.886,19.417,22.723,18.939,22.998zM11.197,3.593c-0.836-1.04-2.103-1.718-3.541-1.718c-2.52,0-4.562,2.042-4.562,4.562c0,0.957,0.297,1.843,0.8,2.576C5.649,6.484,8.206,4.553,11.197,3.593zM27.106,9.014c0.503-0.733,0.8-1.619,0.8-2.576c0-2.52-2.043-4.562-4.562-4.562c-1.438,0-2.704,0.678-3.541,1.717C22.794,4.553,25.351,6.484,27.106,9.014z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Alarm\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Alarm();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Anonymous.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/Anonymous.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Anonymous = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Anonymous\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.523,23.813c-0.518-0.51-6.795-2.938-7.934-3.396c-1.132-0.451-1.584-1.697-1.584-1.697s-0.51,0.282-0.51-0.51c0-0.793,0.51,0.51,1.021-2.548c0,0,1.414-0.397,1.133-3.68l-0.338,0.001c0,0,0.85-3.511,0-4.699c-0.854-1.188-1.188-1.981-3.062-2.548c-1.869-0.567-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.793-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.32s0.283,3.059,0.566,3.624l-0.337,0.112c-0.283,3.283,1.132,3.681,1.132,3.681c0.509,3.058,1.019,1.755,1.019,2.548c0,0.792-0.51,0.51-0.51,0.51s-0.452,1.246-1.584,1.697c-1.132,0.453-7.416,2.887-7.927,3.396c-0.511,0.521-0.453,2.896-0.453,2.896h26.954C28.977,26.709,29.039,24.332,28.523,23.813zM16.618,13.693c-0.398-0.251-0.783-1.211-0.783-1.64c0-0.133,0-0.236,0-0.236c-0.105-0.106-0.574-0.096-0.67,0c0,0,0,0.104,0,0.236c0,0.429-0.385,1.389-0.783,1.64c-0.399,0.251-1.611,0.237-2.084-0.236c-0.473-0.473-0.524-1.663-0.643-1.78c-0.118-0.119-0.185-0.185-0.185-0.185l0.029-0.414c0,0,0.842-0.207,1.699-0.207s1.803,0.502,1.803,0.502c0.231-0.074,0.784-0.083,0.996,0c0,0,0.945-0.502,1.803-0.502s1.699,0.207,1.699,0.207l0.029,0.414c0,0-0.066,0.066-0.185,0.185c-0.118,0.118-0.169,1.308-0.643,1.78C18.229,13.93,17.018,13.944,16.618,13.693z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Anonymous\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Anonymous();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Apple.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Apple.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Apple = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Apple\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.32,10.85c-1.743,1.233-2.615,2.719-2.615,4.455c0,2.079,1.078,3.673,3.232,4.786c-0.578,1.677-1.416,3.134-2.514,4.375c-1.097,1.241-2.098,1.862-3.004,1.862c-0.427,0-1.009-0.143-1.748-0.423l-0.354-0.138c-0.725-0.281-1.363-0.423-1.92-0.423c-0.525,0-1.1,0.11-1.725,0.331l-0.445,0.16l-0.56,0.229c-0.441,0.176-0.888,0.264-1.337,0.264c-1.059,0-2.228-0.872-3.507-2.616c-1.843-2.498-2.764-5.221-2.764-8.167c0-2.095,0.574-3.781,1.725-5.061c1.149-1.279,2.673-1.92,4.568-1.92c0.709,0,1.371,0.13,1.988,0.389l0.423,0.172l0.445,0.183c0.396,0.167,0.716,0.251,0.959,0.251c0.312,0,0.659-0.072,1.04-0.217l0.582-0.229l0.435-0.16c0.693-0.251,1.459-0.377,2.297-0.377C21.512,8.576,23.109,9.334,24.32,10.85zM19.615,3.287c0.021,0.267,0.033,0.473,0.033,0.617c0,1.317-0.479,2.473-1.438,3.467s-2.075,1.49-3.347,1.49c-0.038-0.297-0.058-0.51-0.058-0.639c0-1.12,0.445-2.171,1.337-3.153c0.891-0.982,1.922-1.558,3.096-1.725C19.32,3.329,19.447,3.311,19.615,3.287z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Apple\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Apple();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Apps.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Apps.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Apps = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Apps\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.359,18.424l-2.326,1.215c0.708,1.174,1.384,2.281,1.844,3.033l2.043-1.066C25.538,20.822,24.966,19.652,24.359,18.424zM19.143,14.688c0.445,0.84,1.342,2.367,2.274,3.926l2.414-1.261c-0.872-1.769-1.72-3.458-2.087-4.122c-0.896-1.621-1.982-3.108-3.454-5.417c-1.673-2.625-3.462-5.492-4.052-4.947c-1.194,0.384,1.237,4.094,1.876,5.715C16.73,10.147,17.991,12.512,19.143,14.688zM26.457,22.673l-1.961,1.022l1.982,4.598c0,0,0.811,0.684,1.92,0.213c1.104-0.469,0.81-1.706,0.81-1.706L26.457,22.673zM24.35,15.711c0.168,0.339,2.924,5.93,2.924,5.93h1.983v-5.93H24.35zM18.34,15.704h-4.726l-3.424,5.935h11.66C21.559,21.159,18.771,16.479,18.34,15.704zM3.231,21.613l3.437-5.902H2.083v5.93h1.133L3.231,21.613zM15.048,10.145c0-0.93-0.754-1.685-1.685-1.685c-0.661,0-1.231,0.381-1.507,0.936l2.976,1.572C14.97,10.725,15.048,10.444,15.048,10.145zM14.343,12.06l-3.188-1.684L9.62,13.012l3.197,1.689L14.343,12.06zM3.192,26.886l-0.384,1.108v0.299l0.298-0.128l0.725-0.896l2.997-2.354l-3.137-1.651L3.192,26.886zM9.02,14.044l-4.757,8.17l3.23,1.706l4.728-8.186L9.02,14.044z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Apps\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Apps();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ArrowDown.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/ArrowDown.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ArrowDown = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ArrowDown\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M5.318,6.684L15.5,24.316L25.682,6.684H5.318z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ArrowDown\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ArrowDown();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ArrowLeft.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/ArrowLeft.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ArrowLeft = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ArrowLeft\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.316,5.318L6.684,15.5l17.632,10.182V5.318L24.316,5.318z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ArrowLeft\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ArrowLeft();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ArrowLeft2.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/ArrowLeft2.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ArrowLeft2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ArrowLeft2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.871,9.814 15.684,16.001 21.871,22.188 18.335,25.725 8.612,16.001 18.335,6.276z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ArrowLeft2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ArrowLeft2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ArrowRight.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/ArrowRight.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ArrowRight = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ArrowRight\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ArrowRight\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ArrowRight();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ArrowRight2.js\":\n/*!***************************************!*\\\n !*** ./src/shape/icon/ArrowRight2.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ArrowRight2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ArrowRight2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M10.129,22.186 16.316,15.999 10.129,9.812 13.665,6.276 23.389,15.999 13.665,25.725z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ArrowRight2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ArrowRight2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ArrowUp.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/ArrowUp.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ArrowUp = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ArrowUp\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.682,24.316L15.5,6.684L5.318,24.316H25.682z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ArrowUp\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ArrowUp();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Aumade.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Aumade.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Aumade = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Aumade\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.513,24.52c-0.131-0.217-0.14-0.481-0.022-0.711l1.987-3.844l0,0c0.186-0.357,0.625-0.497,0.981-0.312c0.357,0.188,0.498,0.625,0.312,0.982l-1.801,3.48l2.228,3.699h12.269l-14.8-25.631L6.433,18.178c0.434,0.242,0.909,0.479,1.391,0.654c0.571,0.211,1.148,0.342,1.658,0.342c0.276,0,0.579-0.078,0.916-0.238c0.337-0.158,0.7-0.396,1.073-0.688c0.749-0.582,1.527-1.354,2.334-2.021c0.539-0.442,1.091-0.844,1.706-1.099c0.352-0.145,0.729-0.239,1.128-0.239c0.622,0,1.174,0.214,1.622,0.5c0.449,0.287,0.813,0.646,1.11,0.995c0.59,0.697,0.902,1.359,0.924,1.394l0,0c0.18,0.361,0.021,0.801-0.341,0.977c-0.356,0.176-0.798,0.021-0.978-0.34c0-0.002-0.002-0.004-0.004-0.007c-0.002-0.011-0.008-0.021-0.018-0.034c-0.018-0.033-0.043-0.082-0.078-0.146c-0.07-0.125-0.179-0.305-0.312-0.496c-0.271-0.391-0.668-0.845-1.092-1.104c-0.281-0.178-0.561-0.272-0.844-0.272c-0.216,0-0.479,0.069-0.788,0.229c-0.309,0.153-0.653,0.396-1.016,0.688c-0.727,0.584-1.511,1.362-2.351,2.033c-0.562,0.445-1.15,0.853-1.809,1.103c-0.375,0.143-0.776,0.229-1.195,0.229c-0.749,0-1.48-0.181-2.164-0.433c-0.58-0.219-1.125-0.482-1.613-0.764L0.86,27.816h15.63L14.513,24.52zM18.214,22.242c0.222-0.557,0.537-1.217,0.963-1.848c0.427-0.627,0.957-1.232,1.646-1.646c0.379-0.229,0.812-0.391,1.282-0.438l-0.604-0.934l0,0c-0.22-0.339-0.123-0.789,0.215-1.009c0.341-0.219,0.789-0.123,1.013,0.216l1.545,2.391c0.184,0.274,0.147,0.646-0.075,0.893c-0.228,0.247-0.591,0.305-0.886,0.145c-0.354-0.191-0.646-0.258-0.901-0.258c-0.291,0-0.562,0.084-0.845,0.25c-0.277,0.164-0.562,0.414-0.813,0.719c-0.519,0.607-0.937,1.422-1.185,2.055c-0.111,0.285-0.387,0.466-0.678,0.466c-0.092,0-0.183-0.021-0.271-0.056C18.249,23.039,18.064,22.615,18.214,22.242z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Aumade\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Aumade();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/BarChart.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/BarChart.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.BarChart = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.BarChart\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.25,8.375V28h6.5V8.375H21.25zM12.25,28h6.5V4.125h-6.5V28zM3.25,28h6.5V12.625h-6.5V28z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.BarChart\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.BarChart();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/BioHazard.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/BioHazard.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.BioHazard = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.BioHazard\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.154,13.988c-0.96-0.554-1.982-0.892-3.019-1.032c0.396-0.966,0.616-2.023,0.616-3.131c0-4.399-3.438-8.001-7.772-8.264c3.245,0.258,5.803,2.979,5.803,6.292c0,3.373-2.653,6.123-5.983,6.294v1.292c0.908,0.144,1.605,0.934,1.605,1.883c0,0.232-0.043,0.454-0.118,0.66l1.181,0.683c1.826-2.758,5.509-3.658,8.41-1.981c2.896,1.672,3.965,5.299,2.506,8.254C31.386,21.038,29.992,16.204,26.154,13.988zM4.122,16.587c2.92-1.686,6.628-0.764,8.442,2.034l1.141-0.657c-0.072-0.2-0.109-0.417-0.109-0.642c0-0.909,0.638-1.67,1.489-1.859v-1.319c-3.3-0.202-5.92-2.94-5.92-6.292c0-3.297,2.532-6.007,5.757-6.286c-4.312,0.285-7.729,3.875-7.729,8.258c0,1.078,0.206,2.106,0.581,3.05c-1.004,0.147-1.999,0.481-2.931,1.02c-3.812,2.201-5.209,6.985-3.264,10.87C0.174,21.823,1.251,18.244,4.122,16.587zM11.15,11.452c0.114,0.139,0.235,0.271,0.362,0.398c0.126,0.126,0.259,0.247,0.397,0.361c0.102,0.084,0.211,0.16,0.318,0.236c0.93-0.611,2.045-0.969,3.244-0.969c1.201,0,2.312,0.357,3.242,0.969c0.107-0.077,0.217-0.152,0.318-0.236c0.139-0.114,0.271-0.235,0.397-0.361c0.127-0.127,0.248-0.259,0.362-0.398c0.113-0.138,0.222-0.283,0.323-0.431c-1.307-0.956-2.908-1.528-4.643-1.528c-0.042,0-0.083-0.001-0.124,0c-0.019,0-0.04-0.001-0.06,0c-1.666,0.038-3.201,0.605-4.462,1.528C10.929,11.17,11.037,11.314,11.15,11.452zM9.269,16.787c-0.168-0.062-0.338-0.117-0.512-0.164c-0.173-0.047-0.348-0.083-0.525-0.113c-0.177-0.03-0.355-0.053-0.535-0.065c-0.175,1.609,0.13,3.282,0.998,4.786c0.868,1.503,2.164,2.606,3.645,3.259c0.079-0.162,0.15-0.328,0.212-0.496c0.063-0.169,0.118-0.338,0.164-0.512c0.047-0.173,0.087-0.349,0.115-0.525c0.022-0.13,0.034-0.262,0.046-0.394c-0.993-0.5-1.86-1.286-2.461-2.325c-0.6-1.04-0.847-2.182-0.783-3.294C9.512,16.889,9.392,16.833,9.269,16.787zM18.122,22.657c0.014,0.132,0.024,0.263,0.046,0.394c0.03,0.177,0.067,0.352,0.113,0.524c0.047,0.174,0.102,0.346,0.165,0.514c0.062,0.169,0.132,0.333,0.212,0.495c1.48-0.653,2.777-1.755,3.644-3.257c0.868-1.504,1.176-3.179,1.001-4.788c-0.18,0.013-0.358,0.035-0.535,0.065c-0.177,0.029-0.353,0.067-0.525,0.113s-0.345,0.101-0.513,0.163c-0.124,0.047-0.241,0.105-0.362,0.16c0.063,1.11-0.183,2.253-0.784,3.292C19.984,21.373,19.116,22.157,18.122,22.657zM20.569,27.611c-2.92-1.687-3.977-5.358-2.46-8.329l-1.192-0.689c-0.349,0.389-0.854,0.634-1.417,0.634c-0.571,0-1.086-0.254-1.436-0.653l-1.146,0.666c1.475,2.96,0.414,6.598-2.488,8.272c-2.888,1.668-6.552,0.791-8.386-1.935c2.38,3.667,7.249,4.87,11.079,2.658c0.929-0.535,1.711-1.227,2.339-2.018c0.64,0.832,1.45,1.554,2.416,2.112c3.835,2.213,8.709,1.006,11.086-2.671C27.132,28.396,23.463,29.282,20.569,27.611z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.BioHazard\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.BioHazard();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Book.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Book.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Book = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Book\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.754,4.626c-0.233-0.161-0.536-0.198-0.802-0.097L12.16,9.409c-0.557,0.213-1.253,0.316-1.968,0.316c-0.997,0.002-2.029-0.202-2.747-0.48C7.188,9.148,6.972,9.04,6.821,8.943c0.056-0.024,0.12-0.05,0.193-0.075L18.648,4.43l1.733,0.654V3.172c0-0.284-0.14-0.554-0.374-0.714c-0.233-0.161-0.538-0.198-0.802-0.097L6.414,7.241c-0.395,0.142-0.732,0.312-1.02,0.564C5.111,8.049,4.868,8.45,4.872,8.896c0,0.012,0.004,0.031,0.004,0.031v17.186c0,0.008-0.003,0.015-0.003,0.021c0,0.006,0.003,0.01,0.003,0.016v0.017h0.002c0.028,0.601,0.371,0.983,0.699,1.255c1.034,0.803,2.769,1.252,4.614,1.274c0.874,0,1.761-0.116,2.583-0.427l12.796-4.881c0.337-0.128,0.558-0.448,0.558-0.809V5.341C26.128,5.057,25.988,4.787,25.754,4.626zM5.672,11.736c0.035,0.086,0.064,0.176,0.069,0.273l0.004,0.054c0.016,0.264,0.13,0.406,0.363,0.611c0.783,0.626,2.382,1.08,4.083,1.093c0.669,0,1.326-0.083,1.931-0.264v1.791c-0.647,0.143-1.301,0.206-1.942,0.206c-1.674-0.026-3.266-0.353-4.509-1.053V11.736zM10.181,24.588c-1.674-0.028-3.266-0.354-4.508-1.055v-2.712c0.035,0.086,0.065,0.176,0.07,0.275l0.002,0.053c0.018,0.267,0.13,0.408,0.364,0.613c0.783,0.625,2.381,1.079,4.083,1.091c0.67,0,1.327-0.082,1.932-0.262v1.789C11.476,24.525,10.821,24.588,10.181,24.588z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Book\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Book();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Bookmark.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Bookmark.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Bookmark = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Bookmark\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M17.396,1.841L6.076,25.986l7.341-4.566l1.186,8.564l11.32-24.146L17.396,1.841zM19.131,9.234c-0.562-0.264-0.805-0.933-0.541-1.495c0.265-0.562,0.934-0.805,1.496-0.541s0.805,0.934,0.541,1.496S19.694,9.498,19.131,9.234z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Bookmark\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Bookmark();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Books.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Books.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Books = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Books\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.679,7.858c-0.176-0.138-0.404-0.17-0.606-0.083l-9.66,4.183c-0.42,0.183-0.946,0.271-1.486,0.271c-0.753,0.002-1.532-0.173-2.075-0.412c-0.194-0.083-0.356-0.176-0.471-0.259c0.042-0.021,0.09-0.042,0.146-0.064l8.786-3.804l1.31,0.561V6.612c0-0.244-0.106-0.475-0.283-0.612c-0.176-0.138-0.406-0.17-0.605-0.083l-9.66,4.183c-0.298,0.121-0.554,0.268-0.771,0.483c-0.213,0.208-0.397,0.552-0.394,0.934c0,0.01,0.003,0.027,0.003,0.027v14.73c0,0.006-0.002,0.012-0.002,0.019c0,0.005,0.002,0.007,0.002,0.012v0.015h0.002c0.021,0.515,0.28,0.843,0.528,1.075c0.781,0.688,2.091,1.073,3.484,1.093c0.66,0,1.33-0.1,1.951-0.366l9.662-4.184c0.255-0.109,0.422-0.383,0.422-0.692V8.471C26.961,8.227,26.855,7.996,26.679,7.858zM20.553,5.058c-0.017-0.221-0.108-0.429-0.271-0.556c-0.176-0.138-0.404-0.17-0.606-0.083l-9.66,4.183C9.596,8.784,9.069,8.873,8.53,8.873C7.777,8.874,6.998,8.699,6.455,8.46C6.262,8.378,6.099,8.285,5.984,8.202C6.026,8.181,6.075,8.16,6.13,8.138l8.787-3.804l1.309,0.561V3.256c0-0.244-0.106-0.475-0.283-0.612c-0.176-0.138-0.407-0.17-0.606-0.083l-9.66,4.183C5.379,6.864,5.124,7.011,4.907,7.227C4.693,7.435,4.51,7.779,4.513,8.161c0,0.011,0.003,0.027,0.003,0.027v14.73c0,0.006-0.001,0.013-0.001,0.019c0,0.005,0.001,0.007,0.001,0.012v0.016h0.002c0.021,0.515,0.28,0.843,0.528,1.075c0.781,0.688,2.091,1.072,3.485,1.092c0.376,0,0.754-0.045,1.126-0.122V11.544c-0.01-0.7,0.27-1.372,0.762-1.856c0.319-0.315,0.708-0.564,1.19-0.756L20.553,5.058z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Books\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Books();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Bubble.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Bubble.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Bubble = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Bubble\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,5.333c-7.732,0-14,4.701-14,10.5c0,1.982,0.741,3.833,2.016,5.414L2,25.667l5.613-1.441c2.339,1.317,5.237,2.107,8.387,2.107c7.732,0,14-4.701,14-10.5C30,10.034,23.732,5.333,16,5.333z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Bubble\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Bubble();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Bug.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Bug.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Bug = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Bug\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.589,10.903l-5.828,1.612c-0.534-1.419-1.338-2.649-2.311-3.628l3.082-5.44c0.271-0.48,0.104-1.092-0.38-1.365c-0.479-0.271-1.09-0.102-1.36,0.377l-2.924,5.162c-0.604-0.383-1.24-0.689-1.9-0.896c-0.416-1.437-1.652-2.411-3.058-2.562c-0.001-0.004-0.002-0.008-0.003-0.012c-0.061-0.242-0.093-0.46-0.098-0.65c-0.005-0.189,0.012-0.351,0.046-0.479c0.037-0.13,0.079-0.235,0.125-0.317c0.146-0.26,0.34-0.43,0.577-0.509c0.023,0.281,0.142,0.482,0.352,0.601c0.155,0.088,0.336,0.115,0.546,0.086c0.211-0.031,0.376-0.152,0.496-0.363c0.105-0.186,0.127-0.389,0.064-0.607c-0.064-0.219-0.203-0.388-0.414-0.507c-0.154-0.087-0.314-0.131-0.482-0.129c-0.167,0.001-0.327,0.034-0.481,0.097c-0.153,0.063-0.296,0.16-0.429,0.289c-0.132,0.129-0.241,0.271-0.33,0.426c-0.132,0.234-0.216,0.496-0.25,0.783c-0.033,0.286-0.037,0.565-0.009,0.84c0.017,0.16,0.061,0.301,0.094,0.449c-0.375-0.021-0.758,0.002-1.14,0.108c-0.482,0.133-0.913,0.36-1.28,0.653c-0.052-0.172-0.098-0.344-0.18-0.518c-0.116-0.249-0.263-0.486-0.438-0.716c-0.178-0.229-0.384-0.41-0.618-0.543C9.904,3.059,9.737,2.994,9.557,2.951c-0.18-0.043-0.352-0.052-0.516-0.027s-0.318,0.08-0.463,0.164C8.432,3.172,8.318,3.293,8.23,3.445C8.111,3.656,8.08,3.873,8.136,4.092c0.058,0.221,0.181,0.384,0.367,0.49c0.21,0.119,0.415,0.138,0.611,0.056C9.31,4.556,9.451,4.439,9.539,4.283c0.119-0.21,0.118-0.443-0.007-0.695c0.244-0.055,0.497-0.008,0.757,0.141c0.081,0.045,0.171,0.115,0.27,0.208c0.097,0.092,0.193,0.222,0.286,0.388c0.094,0.166,0.179,0.368,0.251,0.608c0.013,0.044,0.023,0.098,0.035,0.146c-0.911,0.828-1.357,2.088-1.098,3.357c-0.582,0.584-1.072,1.27-1.457,2.035l-5.16-2.926c-0.48-0.271-1.092-0.102-1.364,0.377C1.781,8.404,1.95,9.016,2.43,9.289l5.441,3.082c-0.331,1.34-0.387,2.807-0.117,4.297l-5.828,1.613c-0.534,0.147-0.846,0.699-0.698,1.231c0.147,0.53,0.697,0.843,1.231,0.694l5.879-1.627c0.503,1.057,1.363,2.28,2.371,3.443l-3.194,5.639c-0.272,0.481-0.104,1.092,0.378,1.363c0.239,0.137,0.512,0.162,0.758,0.094c0.248-0.068,0.469-0.229,0.604-0.471l2.895-5.109c2.7,2.594,5.684,4.123,5.778,1.053c1.598,2.56,3.451-0.338,4.502-3.976l5.203,2.947c0.24,0.138,0.514,0.162,0.762,0.094c0.246-0.067,0.467-0.229,0.603-0.471c0.272-0.479,0.104-1.091-0.377-1.362l-5.701-3.229c0.291-1.505,0.422-2.983,0.319-4.138l5.886-1.627c0.53-0.147,0.847-0.697,0.696-1.229C29.673,11.068,29.121,10.756,28.589,10.903z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Bug\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Bug();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Calendar.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Calendar.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Calendar = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Calendar\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M11.758,15.318c0.312-0.3,0.408-0.492,0.408-0.492h0.024c0,0-0.012,0.264-0.012,0.528v5.469h-1.871v1.031h4.87v-1.031H13.33v-7.436h-1.055l-2.027,1.967l0.719,0.744L11.758,15.318zM16.163,21.207c0,0.205,0.024,0.42,0.06,0.647h5.457v-1.031h-4.197c0.023-1.931,4.065-2.362,4.065-5.146c0-1.463-1.114-2.436-2.674-2.436c-1.907,0-2.675,1.607-2.675,1.607l0.875,0.587c0,0,0.6-1.08,1.716-1.08c0.887,0,1.522,0.563,1.522,1.403C20.312,17.754,16.163,18.186,16.163,21.207zM12,3.604h-2v3.335h2V3.604zM23,4.77v3.17h-4V4.77h-6v3.168H9.002V4.77H6.583v21.669h18.833V4.77H23zM24.417,25.438H7.584V10.522h16.833V25.438zM22,3.604h-2v3.335h2V3.604z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Calendar\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Calendar();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Cart.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Cart.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Cart = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Cart\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M29.02,11.754L8.416,9.473L7.16,4.716C7.071,4.389,6.772,4.158,6.433,4.158H3.341C3.114,3.866,2.775,3.667,2.377,3.667c-0.686,0-1.242,0.556-1.242,1.242c0,0.686,0.556,1.242,1.242,1.242c0.399,0,0.738-0.201,0.965-0.493h2.512l5.23,19.8c-0.548,0.589-0.891,1.373-0.891,2.242c0,1.821,1.473,3.293,3.293,3.293c1.82,0,3.294-1.472,3.297-3.293c0-0.257-0.036-0.504-0.093-0.743h5.533c-0.056,0.239-0.092,0.486-0.092,0.743c0,1.821,1.475,3.293,3.295,3.293s3.295-1.472,3.295-3.293c0-1.82-1.473-3.295-3.295-3.297c-0.951,0.001-1.801,0.409-2.402,1.053h-7.136c-0.601-0.644-1.451-1.052-2.402-1.053c-0.379,0-0.738,0.078-1.077,0.196l-0.181-0.685H26.81c1.157-0.027,2.138-0.83,2.391-1.959l1.574-7.799c0.028-0.145,0.041-0.282,0.039-0.414C30.823,12.733,30.051,11.86,29.02,11.754zM25.428,27.994c-0.163,0-0.295-0.132-0.297-0.295c0.002-0.165,0.134-0.297,0.297-0.297s0.295,0.132,0.297,0.297C25.723,27.862,25.591,27.994,25.428,27.994zM27.208,20.499l0.948-0.948l-0.318,1.578L27.208,20.499zM12.755,11.463l1.036,1.036l-1.292,1.292l-1.292-1.292l1.087-1.087L12.755,11.463zM17.253,11.961l0.538,0.538l-1.292,1.292l-1.292-1.292l0.688-0.688L17.253,11.961zM9.631,14.075l0.868-0.868l1.292,1.292l-1.292,1.292l-0.564-0.564L9.631,14.075zM9.335,12.956l-0.328-1.24L9.792,12.5L9.335,12.956zM21.791,16.499l-1.292,1.292l-1.292-1.292l1.292-1.292L21.791,16.499zM21.207,14.5l1.292-1.292l1.292,1.292l-1.292,1.292L21.207,14.5zM18.5,15.791l-1.293-1.292l1.292-1.292l1.292,1.292L18.5,15.791zM17.791,16.499L16.5,17.791l-1.292-1.292l1.292-1.292L17.791,16.499zM14.499,15.791l-1.292-1.292l1.292-1.292l1.292,1.292L14.499,15.791zM13.791,16.499l-1.292,1.291l-1.292-1.291l1.292-1.292L13.791,16.499zM10.499,17.207l1.292,1.292l-0.785,0.784l-0.54-2.044L10.499,17.207zM11.302,20.404l1.197-1.197l1.292,1.292L12.5,21.791l-1.131-1.13L11.302,20.404zM13.208,18.499l1.291-1.292l1.292,1.292L14.5,19.791L13.208,18.499zM16.5,19.207l1.292,1.292L16.5,21.79l-1.292-1.291L16.5,19.207zM17.208,18.499l1.292-1.292l1.291,1.292L18.5,19.79L17.208,18.499zM20.499,19.207l1.292,1.292L20.5,21.79l-1.292-1.292L20.499,19.207zM21.207,18.499l1.292-1.292l1.292,1.292l-1.292,1.292L21.207,18.499zM23.207,16.499l1.292-1.292l1.292,1.292l-1.292,1.292L23.207,16.499zM25.207,14.499l1.292-1.292L27.79,14.5l-1.291,1.292L25.207,14.499zM24.499,13.792l-1.156-1.156l2.082,0.23L24.499,13.792zM21.791,12.5l-1.292,1.292L19.207,12.5l0.29-0.29l2.253,0.25L21.791,12.5zM14.5,11.791l-0.152-0.152l0.273,0.03L14.5,11.791zM10.5,11.792l-0.65-0.65l1.171,0.129L10.5,11.792zM14.5,21.207l1.205,1.205h-2.409L14.5,21.207zM18.499,21.207l1.206,1.206h-2.412L18.499,21.207zM22.499,21.207l1.208,1.207l-2.414-0.001L22.499,21.207zM23.207,20.499l1.292-1.292l1.292,1.292l-1.292,1.292L23.207,20.499zM25.207,18.499l1.292-1.291l1.291,1.291l-1.291,1.292L25.207,18.499zM28.499,17.791l-1.291-1.292l1.291-1.291l0.444,0.444l-0.429,2.124L28.499,17.791zM29.001,13.289l-0.502,0.502l-0.658-0.658l1.016,0.112C28.911,13.253,28.956,13.271,29.001,13.289zM13.487,27.994c-0.161,0-0.295-0.132-0.295-0.295c0-0.165,0.134-0.297,0.295-0.297c0.163,0,0.296,0.132,0.296,0.297C13.783,27.862,13.651,27.994,13.487,27.994zM26.81,22.414h-1.517l1.207-1.207l0.93,0.93C27.243,22.306,27.007,22.428,26.81,22.414z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Cart\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Cart();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ccw.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Ccw.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ccw = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ccw\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.249,15.499c-0.009,4.832-3.918,8.741-8.75,8.75c-2.515,0-4.768-1.064-6.365-2.763l2.068-1.442l-7.901-3.703l0.744,8.694l2.193-1.529c2.244,2.594,5.562,4.242,9.26,4.242c6.767,0,12.249-5.482,12.249-12.249H24.249zM15.499,6.75c2.516,0,4.769,1.065,6.367,2.764l-2.068,1.443l7.901,3.701l-0.746-8.693l-2.192,1.529c-2.245-2.594-5.562-4.245-9.262-4.245C8.734,3.25,3.25,8.734,3.249,15.499H6.75C6.758,10.668,10.668,6.758,15.499,6.75z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ccw\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ccw();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Chat.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Chat.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Chat = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Chat\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.985,5.972c-7.563,0-13.695,4.077-13.695,9.106c0,2.877,2.013,5.44,5.147,7.108c-0.446,1.479-1.336,3.117-3.056,4.566c0,0,4.015-0.266,6.851-3.143c0.163,0.04,0.332,0.07,0.497,0.107c-0.155-0.462-0.246-0.943-0.246-1.443c0-3.393,3.776-6.05,8.599-6.05c3.464,0,6.379,1.376,7.751,3.406c1.168-1.34,1.847-2.892,1.847-4.552C29.68,10.049,23.548,5.972,15.985,5.972zM27.68,22.274c0-2.79-3.401-5.053-7.599-5.053c-4.196,0-7.599,2.263-7.599,5.053c0,2.791,3.403,5.053,7.599,5.053c0.929,0,1.814-0.116,2.637-0.319c1.573,1.597,3.801,1.744,3.801,1.744c-0.954-0.804-1.447-1.713-1.695-2.534C26.562,25.293,27.68,23.871,27.68,22.274z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Chat\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Chat();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Check.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Check.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Check = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Check\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M2.379,14.729 5.208,11.899 12.958,19.648 25.877,6.733 28.707,9.561 12.958,25.308z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Check\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Check();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Chrome.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Chrome.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Chrome = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Chrome\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.318,7.677c0.071-0.029,0.148-0.046,0.229-0.046h11.949c-2.533-3.915-6.938-6.506-11.949-6.506c-5.017,0-9.428,2.598-11.959,6.522l4.291,7.431C8.018,11.041,11.274,7.796,15.318,7.677zM28.196,8.84h-8.579c2.165,1.357,3.605,3.763,3.605,6.506c0,1.321-0.334,2.564-0.921,3.649c-0.012,0.071-0.035,0.142-0.073,0.209l-5.973,10.347c7.526-0.368,13.514-6.587,13.514-14.205C29.77,13.002,29.201,10.791,28.196,8.84zM15.547,23.022c-2.761,0-5.181-1.458-6.533-3.646c-0.058-0.046-0.109-0.103-0.149-0.171L2.89,8.855c-1,1.946-1.565,4.153-1.565,6.492c0,7.624,5.999,13.846,13.534,14.205l4.287-7.425C18.073,22.698,16.848,23.022,15.547,23.022zM9.08,15.347c0,1.788,0.723,3.401,1.894,4.573c1.172,1.172,2.785,1.895,4.573,1.895c1.788,0,3.401-0.723,4.573-1.895s1.895-2.785,1.895-4.573c0-1.788-0.723-3.4-1.895-4.573c-1.172-1.171-2.785-1.894-4.573-1.894c-1.788,0-3.401,0.723-4.573,1.894C9.803,11.946,9.081,13.559,9.08,15.347z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Chrome\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Chrome();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Clip.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Clip.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Clip = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Clip\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.898,6.135c-1.571-1.125-3.758-0.764-4.884,0.808l-8.832,12.331c-0.804,1.122-0.546,2.684,0.577,3.488c1.123,0.803,2.684,0.545,3.488-0.578l6.236-8.706l-0.813-0.583l-6.235,8.707h0c-0.483,0.672-1.42,0.828-2.092,0.347c-0.673-0.481-0.827-1.419-0.345-2.093h0l8.831-12.33l0.001-0.001l-0.002-0.001c0.803-1.119,2.369-1.378,3.489-0.576c1.12,0.803,1.379,2.369,0.577,3.489v-0.001l-9.68,13.516l0.001,0.001c-1.124,1.569-3.316,1.931-4.885,0.808c-1.569-1.125-1.93-3.315-0.807-4.885l7.035-9.822l-0.813-0.582l-7.035,9.822c-1.447,2.02-0.982,4.83,1.039,6.277c2.021,1.448,4.831,0.982,6.278-1.037l9.68-13.516C25.83,9.447,25.47,7.261,23.898,6.135z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Clip\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Clip();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Clock.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Clock.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Clock = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Clock\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,2.374C8.251,2.375,2.376,8.251,2.374,15.5C2.376,22.748,8.251,28.623,15.5,28.627c7.249-0.004,13.124-5.879,13.125-13.127C28.624,8.251,22.749,2.375,15.5,2.374zM15.5,25.623C9.909,25.615,5.385,21.09,5.375,15.5C5.385,9.909,9.909,5.384,15.5,5.374c5.59,0.01,10.115,4.535,10.124,10.125C25.615,21.09,21.091,25.615,15.5,25.623zM8.625,15.5c-0.001-0.552-0.448-0.999-1.001-1c-0.553,0-1,0.448-1,1c0,0.553,0.449,1,1,1C8.176,16.5,8.624,16.053,8.625,15.5zM8.179,18.572c-0.478,0.277-0.642,0.889-0.365,1.367c0.275,0.479,0.889,0.641,1.365,0.365c0.479-0.275,0.643-0.887,0.367-1.367C9.27,18.461,8.658,18.297,8.179,18.572zM9.18,10.696c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,11.584,9.657,10.973,9.18,10.696zM22.822,12.428c0.478-0.275,0.643-0.888,0.366-1.366c-0.275-0.478-0.89-0.642-1.366-0.366c-0.479,0.278-0.642,0.89-0.366,1.367C21.732,12.54,22.344,12.705,22.822,12.428zM12.062,21.455c-0.478-0.275-1.089-0.111-1.366,0.367c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.277,1.091,0.111,1.365-0.365C12.704,22.344,12.54,21.732,12.062,21.455zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM22.823,18.572c-0.48-0.275-1.092-0.111-1.367,0.365c-0.275,0.479-0.112,1.092,0.367,1.367c0.477,0.275,1.089,0.113,1.365-0.365C23.464,19.461,23.3,18.848,22.823,18.572zM19.938,7.813c-0.477-0.276-1.091-0.111-1.365,0.366c-0.275,0.48-0.111,1.091,0.366,1.367s1.089,0.112,1.366-0.366C20.581,8.702,20.418,8.089,19.938,7.813zM23.378,14.5c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1c0.551,0,1-0.447,1-1C24.378,14.949,23.929,14.5,23.378,14.5zM15.501,6.624c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.889-0.365,1.365c0.275,0.479,0.889,0.643,1.365,0.367l3.305-1.676C15.39,16.99,15.444,17,15.501,17c0.828,0,1.5-0.671,1.5-1.5l-0.5-7.876C16.501,7.072,16.053,6.624,15.501,6.624zM15.501,22.377c-0.552,0-1,0.447-1,1s0.448,1,1,1s1-0.447,1-1S16.053,22.377,15.501,22.377zM18.939,21.455c-0.479,0.277-0.643,0.889-0.366,1.367c0.275,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.889,0.366-1.365C20.028,21.344,19.417,21.18,18.939,21.455z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Clock\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Clock();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Cloud.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Cloud.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Cloud = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Cloud\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.345,13.904c0.019-0.195,0.03-0.392,0.03-0.591c0-3.452-2.798-6.25-6.25-6.25c-2.679,0-4.958,1.689-5.847,4.059c-0.589-0.646-1.429-1.059-2.372-1.059c-1.778,0-3.219,1.441-3.219,3.219c0,0.21,0.023,0.415,0.062,0.613c-2.372,0.391-4.187,2.436-4.187,4.918c0,2.762,2.239,5,5,5h15.875c2.762,0,5-2.238,5-5C28.438,16.362,26.672,14.332,24.345,13.904z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Cloud\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Cloud();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Cloud2.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Cloud2.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Cloud2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Cloud2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M7.562,24.812c-3.313,0-6-2.687-6-6l0,0c0.002-2.659,1.734-4.899,4.127-5.684l0,0c0.083-2.26,1.937-4.064,4.216-4.066l0,0c0.73,0,1.415,0.19,2.01,0.517l0,0c1.266-2.105,3.57-3.516,6.208-3.517l0,0c3.947,0.002,7.157,3.155,7.248,7.079l0,0c2.362,0.804,4.062,3.034,4.064,5.671l0,0c0,3.313-2.687,6-6,6l0,0H7.562L7.562,24.812zM24.163,14.887c-0.511-0.095-0.864-0.562-0.815-1.079l0,0c0.017-0.171,0.027-0.336,0.027-0.497l0,0c-0.007-2.899-2.352-5.245-5.251-5.249l0,0c-2.249-0.002-4.162,1.418-4.911,3.41l0,0c-0.122,0.323-0.406,0.564-0.748,0.63l0,0c-0.34,0.066-0.694-0.052-0.927-0.309l0,0c-0.416-0.453-0.986-0.731-1.633-0.731l0,0c-1.225,0.002-2.216,0.993-2.22,2.218l0,0c0,0.136,0.017,0.276,0.045,0.424l0,0c0.049,0.266-0.008,0.54-0.163,0.762l0,0c-0.155,0.223-0.392,0.371-0.657,0.414l0,0c-1.9,0.313-3.352,1.949-3.35,3.931l0,0c0.004,2.209,1.792,3.995,4.001,4.001l0,0h15.874c2.209-0.006,3.994-1.792,3.999-4.001l0,0C27.438,16.854,26.024,15.231,24.163,14.887L24.163,14.887\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Cloud2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Cloud2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/CloudDown.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/CloudDown.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.CloudDown = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.CloudDown\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.345,13.904c0.019-0.195,0.03-0.392,0.03-0.591c0-3.452-2.798-6.25-6.25-6.25c-2.679,0-4.958,1.689-5.847,4.059c-0.589-0.646-1.429-1.059-2.372-1.059c-1.778,0-3.219,1.441-3.219,3.219c0,0.21,0.023,0.415,0.062,0.613c-2.372,0.391-4.187,2.436-4.187,4.918c0,2.762,2.239,5,5,5h3.404l-0.707-0.707c-0.377-0.377-0.585-0.879-0.585-1.413c0-0.533,0.208-1.035,0.585-1.412l0.556-0.557c0.4-0.399,0.937-0.628,1.471-0.628c0.027,0,0.054,0,0.08,0.002v-0.472c0-1.104,0.898-2.002,2-2.002h3.266c1.103,0,2,0.898,2,2.002v0.472c0.027-0.002,0.054-0.002,0.081-0.002c0.533,0,1.07,0.229,1.47,0.63l0.557,0.552c0.78,0.781,0.78,2.05,0,2.828l-0.706,0.707h2.403c2.762,0,5-2.238,5-5C28.438,16.362,26.672,14.332,24.345,13.904z M21.033,20.986l-0.556-0.555c-0.39-0.389-0.964-0.45-1.276-0.137c-0.312,0.312-0.568,0.118-0.568-0.432v-1.238c0-0.55-0.451-1-1-1h-3.265c-0.55,0-1,0.45-1,1v1.238c0,0.55-0.256,0.744-0.569,0.432c-0.312-0.313-0.887-0.252-1.276,0.137l-0.556,0.555c-0.39,0.389-0.39,1.024-0.001,1.413l4.328,4.331c0.194,0.194,0.451,0.291,0.707,0.291s0.512-0.097,0.707-0.291l4.327-4.331C21.424,22.011,21.423,21.375,21.033,20.986z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.CloudDown\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.CloudDown();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/CloudUp.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/CloudUp.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.CloudUp = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.CloudUp\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.345,13.904c0.019-0.195,0.03-0.392,0.03-0.591c0-3.452-2.798-6.25-6.25-6.25c-2.679,0-4.958,1.689-5.847,4.059c-0.589-0.646-1.429-1.059-2.372-1.059c-1.778,0-3.219,1.441-3.219,3.219c0,0.21,0.023,0.415,0.062,0.613c-2.372,0.391-4.187,2.436-4.187,4.918c0,2.762,2.239,5,5,5h2.312c-0.126-0.266-0.2-0.556-0.2-0.859c0-0.535,0.208-1.04,0.587-1.415l4.325-4.329c0.375-0.377,0.877-0.585,1.413-0.585c0.54,0,1.042,0.21,1.417,0.587l4.323,4.329c0.377,0.373,0.585,0.878,0.585,1.413c0,0.304-0.073,0.594-0.2,0.859h1.312c2.762,0,5-2.238,5-5C28.438,16.362,26.672,14.332,24.345,13.904z M16.706,17.916c-0.193-0.195-0.45-0.291-0.706-0.291s-0.512,0.096-0.707,0.291l-4.327,4.33c-0.39,0.389-0.389,1.025,0.001,1.414l0.556,0.555c0.39,0.389,0.964,0.449,1.276,0.137s0.568-0.119,0.568,0.432v1.238c0,0.549,0.451,1,1,1h3.265c0.551,0,1-0.451,1-1v-1.238c0-0.551,0.256-0.744,0.569-0.432c0.312,0.312,0.887,0.252,1.276-0.137l0.556-0.555c0.39-0.389,0.39-1.025,0.001-1.414L16.706,17.916z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.CloudUp\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.CloudUp();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Cloudy.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Cloudy.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Cloudy = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Cloudy\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.378,6.781c0.41,0.988,1.938,0.346,1.524-0.648C15.708,5.667,15.515,5.2,15.32,4.734c-0.289-0.695-0.875-3.233-2.042-2.747c-1.03,0.433-0.128,1.846,0.142,2.494C13.739,5.248,14.059,6.015,14.378,6.781M20.8,7.223c1.094,0.453,1.538-1.551,1.813-2.216c0.281-0.677,1.478-2.565,0.357-3.029c-1.092-0.453-1.537,1.548-1.813,2.216C20.876,4.872,19.68,6.757,20.8,7.223M18.137,6.692c1.183,0,0.829-2.019,0.829-2.742c0-0.732,0.383-2.935-0.829-2.935c-1.183,0-0.828,2.019-0.828,2.742C17.309,4.49,16.926,6.692,18.137,6.692M23.058,8.729c0.852,0.85,2.142-0.972,2.659-1.49c0.512-0.513,2.187-1.687,1.352-2.524c-0.834-0.836-2.013,0.843-2.522,1.353C24.028,6.585,22.198,7.874,23.058,8.729M24.565,10.986c0.448,1.091,2.183-0.01,2.849-0.286c0.676-0.28,2.858-0.771,2.394-1.89c-0.455-1.091-2.181,0.008-2.849,0.285C26.281,9.377,24.102,9.866,24.565,10.986M12.036,8.742c0.752,0.75,1.932-0.415,1.17-1.173c-0.253-0.347-0.646-0.645-0.949-0.946c-0.541-0.539-2.162-2.799-3.068-1.889c-0.79,0.791,0.586,1.755,1.083,2.25C10.859,7.57,11.447,8.156,12.036,8.742M29.365,17.397c-0.768-0.317-1.534-0.635-2.302-0.952c-0.646-0.268-2.07-1.169-2.495-0.135c-0.481,1.168,2.054,1.747,2.751,2.035c0.455,0.188,0.911,0.377,1.367,0.565C29.7,19.331,30.379,17.816,29.365,17.397M29.942,12.817c-0.83,0-1.66,0-2.49,0c-0.701,0-2.357-0.288-2.355,0.83c0,1.262,2.567,0.827,3.319,0.827c0.493,0,0.986,0,1.479-0.001C30.99,14.473,31.043,12.815,29.942,12.817M24.234,18.568c-0.673-0.673-1.773,0.189-1.281,1.007c-0.295-0.264-0.614-0.499-0.961-0.69c3.894-2.866,3.328-9.006-1.021-11.107c-2.024-0.978-4.481-0.828-6.368,0.394c-0.871,0.564-1.603,1.336-2.119,2.236c-0.262,0.456-0.468,0.943-0.612,1.449c-0.074,0.258-0.131,0.521-0.172,0.786c-0.083,0.534-0.109,0.553-0.553,0.871c-0.182-0.957-1.64-0.675-2.326-0.674c-0.815,0.001-1.963-0.217-2.752,0.046c-0.867,0.289-0.652,1.615,0.263,1.613c0.324,0.052,0.701-0.001,1.028-0.001c0.904-0.001,1.809-0.002,2.713-0.003c-0.308,0.352-0.496,0.969-0.94,0.77c-0.467-0.209-0.978-0.319-1.49-0.319c-0.951,0-1.877,0.375-2.561,1.036c-0.681,0.658-1.088,1.569-1.123,2.516c-0.944,0.31-1.791,0.891-2.421,1.658c-2.756,3.354-0.265,8.554,4.058,8.554v-0.002c3.597,0,7.194,0,10.792,0c1.341,0,2.843,0.167,4.168-0.113c3.652-0.772,5.361-5.21,3.133-8.229c0.548,0.547,1.096,1.094,1.644,1.641c0.183,0.183,0.364,0.424,0.575,0.574c0.552,0.552,1.524,0.066,1.403-0.713c-0.097-0.622-1.042-1.267-1.448-1.673C25.319,19.652,24.776,19.11,24.234,18.568M18.137,8.787c4.559,0.009,6.576,5.979,2.912,8.734c-0.637-3.505-4.161-5.824-7.629-5.03C13.943,10.367,15.852,8.792,18.137,8.787M22.895,24.08c-0.633,3.346-4.149,2.879-6.68,2.879c-3.017,0-6.033,0-9.049,0c-0.767,0-1.62,0.084-2.373-0.095c-2.274-0.538-3.416-3.242-2.172-5.235c0.678-1.087,1.568-1.19,2.626-1.67c0.604-0.273,0.456-0.807,0.456-1.331c0.002-0.597,0.284-1.169,0.756-1.533c0.787-0.608,1.943-0.497,2.611,0.234c1.098,1.205,1.96-1.346,2.507-1.893c2.025-2.025,5.475-1.708,7.068,0.684c0.344,0.516,0.581,1.102,0.693,1.712c0.097,0.529-0.115,1.341,0.188,1.796c0.291,0.47,0.943,0.463,1.397,0.68c0.508,0.23,0.963,0.591,1.304,1.034C22.834,22.125,23.064,23.107,22.895,24.08M6.906,9.917c0.881,0.364,1.763,0.727,2.644,1.091c0.353,0.146,0.707,0.292,1.06,0.437c0.997,0.412,1.637-1.119,0.642-1.526C10.47,9.441,9.456,9.177,8.609,8.828c-0.354-0.146-0.707-0.292-1.06-0.437C6.554,7.98,5.912,9.505,6.906,9.917\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Cloudy\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Cloudy();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Code.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Code.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Code = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Code\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M8.982,7.107L0.322,15.77l8.661,8.662l3.15-3.15L6.621,15.77l5.511-5.511L8.982,7.107zM21.657,7.107l-3.148,3.151l5.511,5.511l-5.511,5.511l3.148,3.15l8.662-8.662L21.657,7.107z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Code\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Code();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/CodeTalk.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/CodeTalk.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.CodeTalk = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.CodeTalk\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,4.938c-7.732,0-14,4.701-14,10.5c0,1.981,0.741,3.833,2.016,5.414L2,25.272l5.613-1.44c2.339,1.316,5.237,2.106,8.387,2.106c7.732,0,14-4.701,14-10.5S23.732,4.938,16,4.938zM13.704,19.47l-2.338,2.336l-6.43-6.431l6.429-6.432l2.339,2.341l-4.091,4.091L13.704,19.47zM20.775,21.803l-2.337-2.339l4.092-4.09l-4.092-4.092l2.337-2.339l6.43,6.426L20.775,21.803z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.CodeTalk\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.CodeTalk();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/CommandLine.js\":\n/*!***************************************!*\\\n !*** ./src/shape/icon/CommandLine.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.CommandLine = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.CommandLine\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M2.021,9.748L2.021,9.748V9.746V9.748zM2.022,9.746l5.771,5.773l-5.772,5.771l2.122,2.123l7.894-7.895L4.143,7.623L2.022,9.746zM12.248,23.269h14.419V20.27H12.248V23.269zM16.583,17.019h10.084V14.02H16.583V17.019zM12.248,7.769v3.001h14.419V7.769H12.248z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.CommandLine\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.CommandLine();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Connect.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Connect.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Connect = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Connect\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.06,13.719c-0.944-5.172-5.461-9.094-10.903-9.094v4c3.917,0.006,7.085,3.176,7.094,7.094c-0.009,3.917-3.177,7.085-7.094,7.093v4.002c5.442-0.004,9.959-3.926,10.903-9.096h4.69v-3.999H25.06zM20.375,15.719c0-3.435-2.784-6.219-6.219-6.219c-2.733,0-5.05,1.766-5.884,4.218H1.438v4.001h6.834c0.833,2.452,3.15,4.219,5.884,4.219C17.591,21.938,20.375,19.153,20.375,15.719z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Connect\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Connect();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Contract.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Contract.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Contract = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Contract\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.083,18.895l-8.428-2.259l2.258,8.428l1.838-1.837l7.053,7.053l2.476-2.476l-7.053-7.053L25.083,18.895zM5.542,11.731l8.428,2.258l-2.258-8.428L9.874,7.398L3.196,0.72L0.72,3.196l6.678,6.678L5.542,11.731zM7.589,20.935l-6.87,6.869l2.476,2.476l6.869-6.869l1.858,1.857l2.258-8.428l-8.428,2.258L7.589,20.935zM23.412,10.064l6.867-6.87l-2.476-2.476l-6.868,6.869l-1.856-1.856l-2.258,8.428l8.428-2.259L23.412,10.064z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Contract\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Contract();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Crop.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Crop.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Crop = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Crop\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.303,21.707V8.275l4.48-4.421l-2.021-2.048l-4.126,4.07H8.761V2.083H5.882v3.793H1.8v2.877h4.083v15.832h15.542v4.609h2.878v-4.609H29.2v-2.878H24.303zM19.72,8.753L8.761,19.565V8.753H19.72zM10.688,21.706l10.735-10.591l0.001,10.592L10.688,21.706z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Crop\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Crop();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Cross.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Cross.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Cross = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Cross\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Cross\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Cross();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Cube.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Cube.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Cube = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Cube\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,3.029l-10.8,6.235L4.7,21.735L15.5,27.971l10.8-6.235V9.265L15.5,3.029zM24.988,10.599L16,15.789v10.378c0,0.275-0.225,0.5-0.5,0.5s-0.5-0.225-0.5-0.5V15.786l-8.987-5.188c-0.239-0.138-0.321-0.444-0.183-0.683c0.138-0.238,0.444-0.321,0.683-0.183l8.988,5.189l8.988-5.189c0.238-0.138,0.545-0.055,0.684,0.184C25.309,10.155,25.227,10.461,24.988,10.599z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Cube\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Cube();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Customer.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Customer.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Customer = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Customer\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.523,23.813c-0.518-0.51-6.795-2.938-7.934-3.396c-1.132-0.451-1.584-1.697-1.584-1.697s-0.51,0.282-0.51-0.51c0-0.793,0.51,0.51,1.021-2.548c0,0,1.414-0.397,1.133-3.68l-0.338,0.001c0,0,0.85-3.511,0-4.699c-0.854-1.188-1.188-1.981-3.062-2.548c-1.869-0.567-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.793-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.32s0.283,3.059,0.566,3.624l-0.337,0.112c-0.283,3.283,1.132,3.681,1.132,3.681c0.509,3.058,1.019,1.755,1.019,2.548c0,0.792-0.51,0.51-0.51,0.51s-0.452,1.246-1.584,1.697c-1.132,0.453-7.416,2.887-7.927,3.396c-0.511,0.521-0.453,2.896-0.453,2.896h12.036l0.878-3.459l-0.781-0.781l1.344-1.344l1.344,1.344l-0.781,0.781l0.879,3.459h12.035C28.977,26.709,29.039,24.332,28.523,23.813z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Customer\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Customer();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Db.js\":\n/*!******************************!*\\\n !*** ./src/shape/icon/Db.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Db = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Db\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.499,23.438c-3.846,0-7.708-0.987-9.534-3.117c-0.054,0.236-0.09,0.48-0.09,0.737v3.877c0,3.435,4.988,4.998,9.625,4.998s9.625-1.563,9.625-4.998v-3.877c0-0.258-0.036-0.501-0.09-0.737C23.209,22.451,19.347,23.438,15.499,23.438zM15.499,15.943c-3.846,0-7.708-0.987-9.533-3.117c-0.054,0.236-0.091,0.479-0.091,0.736v3.877c0,3.435,4.988,4.998,9.625,4.998s9.625-1.563,9.625-4.998v-3.877c0-0.257-0.036-0.501-0.09-0.737C23.209,14.956,19.347,15.943,15.499,15.943zM15.5,1.066c-4.637,0-9.625,1.565-9.625,5.001v3.876c0,3.435,4.988,4.998,9.625,4.998s9.625-1.563,9.625-4.998V6.067C25.125,2.632,20.137,1.066,15.5,1.066zM15.5,9.066c-4.211,0-7.625-1.343-7.625-3c0-1.656,3.414-3,7.625-3s7.625,1.344,7.625,3C23.125,7.724,19.711,9.066,15.5,9.066z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Db\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Db();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Detour.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Detour.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Detour = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Detour\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M29.342,15.5l-7.556-4.363v2.614H18.75c-1.441-0.004-2.423,1.002-2.875,1.784c-0.735,1.222-1.056,2.561-1.441,3.522c-0.135,0.361-0.278,0.655-0.376,0.817c-1.626,0-0.998,0-2.768,0c-0.213-0.398-0.571-1.557-0.923-2.692c-0.237-0.676-0.5-1.381-1.013-2.071C8.878,14.43,7.89,13.726,6.75,13.75H2.812v3.499c0,0,0.358,0,1.031,0h2.741c0.008,0.013,0.018,0.028,0.029,0.046c0.291,0.401,0.634,1.663,1.031,2.888c0.218,0.623,0.455,1.262,0.92,1.897c0.417,0.614,1.319,1.293,2.383,1.293H11c2.25,0,1.249,0,3.374,0c0.696,0.01,1.371-0.286,1.809-0.657c1.439-1.338,1.608-2.886,2.13-4.127c0.218-0.608,0.453-1.115,0.605-1.314c0.006-0.01,0.012-0.018,0.018-0.025h2.85v2.614L29.342,15.5zM10.173,14.539c0.568,0.76,0.874,1.559,1.137,2.311c0.04,0.128,0.082,0.264,0.125,0.399h2.58c0.246-0.697,0.553-1.479,1.005-2.228c0.252-0.438,0.621-0.887,1.08-1.272H9.43C9.735,14.003,9.99,14.277,10.173,14.539z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Detour\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Detour();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Diagram.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Diagram.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.icon.Diagram\r\n\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Diagram();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n_packages2.default.shape.icon.Diagram = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Diagram\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super((0, _extend2.default)({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M6.812,17.202l7.396-3.665v-2.164h-0.834c-0.414,0-0.808-0.084-1.167-0.237v1.159l-7.396,3.667v2.912h2V17.202zM26.561,18.875v-2.913l-7.396-3.666v-1.158c-0.358,0.152-0.753,0.236-1.166,0.236h-0.832l-0.001,2.164l7.396,3.666v1.672H26.561zM16.688,18.875v-7.501h-2v7.501H16.688zM27.875,19.875H23.25c-1.104,0-2,0.896-2,2V26.5c0,1.104,0.896,2,2,2h4.625c1.104,0,2-0.896,2-2v-4.625C29.875,20.771,28.979,19.875,27.875,19.875zM8.125,19.875H3.5c-1.104,0-2,0.896-2,2V26.5c0,1.104,0.896,2,2,2h4.625c1.104,0,2-0.896,2-2v-4.625C10.125,20.771,9.229,19.875,8.125,19.875zM13.375,10.375H18c1.104,0,2-0.896,2-2V3.75c0-1.104-0.896-2-2-2h-4.625c-1.104,0-2,0.896-2,2v4.625C11.375,9.479,12.271,10.375,13.375,10.375zM18,19.875h-4.625c-1.104,0-2,0.896-2,2V26.5c0,1.104,0.896,2,2,2H18c1.104,0,2-0.896,2-2v-4.625C20,20.771,19.104,19.875,18,19.875z\");\n }\n});\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Disconnect.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/Disconnect.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Disconnect = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Disconnect\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M9.219,9.5c-2.733,0-5.05,1.766-5.884,4.218H1.438v4.001h1.897c0.833,2.452,3.15,4.219,5.884,4.219c3.435,0,6.219-2.784,6.219-6.219S12.653,9.5,9.219,9.5zM27.685,13.719c-0.944-5.172-5.461-9.094-10.903-9.094v4c3.917,0.006,7.085,3.176,7.094,7.094c-0.009,3.917-3.177,7.085-7.094,7.093v4.002c5.442-0.004,9.959-3.926,10.903-9.096h2.065v-3.999H27.685z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Disconnect\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Disconnect();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/DockBottom.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/DockBottom.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.DockBottom = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.DockBottom\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M3.083,7.333v16.334h24.833V7.333H3.083zM24.915,16.833H6.083v-6.501h18.833L24.915,16.833L24.915,16.833z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.DockBottom\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.DockBottom();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/DockLeft.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/DockLeft.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.DockLeft = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.DockLeft\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M3.084,7.333v16.334h24.832V7.333H3.084z M11.667,10.332h13.251v10.336H11.667V10.332z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.DockLeft\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.DockLeft();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/DockRight.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/DockRight.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.DockRight = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.DockRight\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M3.083,7.333v16.334h24.833V7.333H3.083z M19.333,20.668H6.083V10.332h13.25V20.668z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.DockRight\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.DockRight();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/DockTop.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/DockTop.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.DockTop = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.DockTop\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.916,23.667V7.333H3.083v16.334H27.916zM24.915,20.668H6.083v-6.501h18.833L24.915,20.668L24.915,20.668z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.DockTop\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.DockTop();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Download.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Download.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Download = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Download\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM16,28.792c-1.549,0-2.806-1.256-2.806-2.806s1.256-2.806,2.806-2.806c1.55,0,2.806,1.256,2.806,2.806S17.55,28.792,16,28.792zM16,21.087l-7.858-6.562h3.469V5.747h8.779v8.778h3.468L16,21.087z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Download\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Download();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Dry.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Dry.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Dry = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Dry\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.784,26.991c0,1.238-1.329,1.696-1.835,1.696c-0.504,0-1.536-0.413-1.65-1.812c0-0.354-0.288-0.642-0.644-0.642c-0.354,0-0.641,0.287-0.641,0.642c0.045,1.056,0.756,3.052,2.935,3.052c2.432,0,3.166-1.882,3.166-3.144v-8.176l-1.328-0.024C14.787,18.584,14.784,25.889,14.784,26.991zM15.584,9.804c-6.807,0-11.084,4.859-11.587,8.326c0.636-0.913,1.694-1.51,2.89-1.51c1.197,0,2.22,0.582,2.855,1.495c0.638-0.904,1.69-1.495,2.88-1.495c1.2,0,2.26,0.6,2.896,1.517c0.635-0.917,1.83-1.517,3.03-1.517c1.19,0,2.241,0.591,2.879,1.495c0.636-0.913,1.659-1.495,2.855-1.495c1.197,0,2.254,0.597,2.89,1.51C26.669,14.663,22.393,9.804,15.584,9.804zM14.733,7.125v2.081h1.323V7.125c0-0.365-0.296-0.661-0.661-0.661C15.029,6.464,14.733,6.76,14.733,7.125zM7.562,6.015c0.54,0.312,1.229,0.128,1.54-0.412c0.109-0.189,0.157-0.398,0.15-0.602L9.251,3.09L7.59,4.047c-0.178,0.095-0.333,0.24-0.441,0.428C6.837,5.015,7.022,5.703,7.562,6.015zM5.572,11.717c0.109-0.19,0.158-0.398,0.151-0.602L5.721,9.203l-1.66,0.957c-0.178,0.096-0.333,0.241-0.441,0.429c-0.311,0.539-0.127,1.229,0.413,1.539C4.571,12.44,5.26,12.256,5.572,11.717zM10.523,9.355c0.539,0.312,1.229,0.126,1.541-0.412c0.109-0.189,0.156-0.398,0.15-0.603L12.214,6.43l-1.662,0.956c-0.177,0.097-0.332,0.241-0.441,0.43C9.799,8.354,9.984,9.044,10.523,9.355zM15.251,3.998c0.539,0.312,1.229,0.126,1.54-0.412c0.11-0.19,0.157-0.398,0.15-0.603L16.94,1.072l-1.661,0.956c-0.178,0.097-0.332,0.242-0.441,0.43C14.526,2.998,14.711,3.687,15.251,3.998zM19.348,8.914c0.539,0.312,1.228,0.128,1.541-0.412c0.109-0.189,0.156-0.398,0.149-0.602h-0.001V5.988l-1.661,0.957c-0.178,0.096-0.332,0.241-0.441,0.429C18.623,7.914,18.809,8.603,19.348,8.914zM23.633,5.196c0.54,0.312,1.23,0.126,1.542-0.413c0.109-0.189,0.156-0.398,0.149-0.602h-0.001V2.27l-1.662,0.957c-0.177,0.096-0.331,0.24-0.44,0.43C22.909,4.195,23.094,4.885,23.633,5.196zM27.528,8.51l-1.659,0.956c-0.18,0.097-0.334,0.242-0.443,0.43c-0.312,0.539-0.127,1.229,0.413,1.54c0.539,0.312,1.229,0.127,1.541-0.412c0.109-0.19,0.158-0.398,0.151-0.603L27.528,8.51z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Dry\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Dry();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Employee.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Employee.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Employee = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Employee\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.523,23.813c-0.518-0.51-6.795-2.938-7.934-3.396c-1.132-0.451-1.584-1.697-1.584-1.697s-0.51,0.282-0.51-0.51c0-0.793,0.51,0.51,1.021-2.548c0,0,1.414-0.397,1.133-3.68l-0.338,0.001c0,0,0.85-3.511,0-4.699c-0.854-1.188-1.188-1.981-3.062-2.548c-1.869-0.567-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.793-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.32s0.283,3.059,0.566,3.624l-0.337,0.112c-0.283,3.283,1.132,3.681,1.132,3.681c0.509,3.058,1.019,1.755,1.019,2.548c0,0.792-0.51,0.51-0.51,0.51s-0.452,1.246-1.584,1.697c-1.132,0.453-7.416,2.887-7.927,3.396c-0.511,0.521-0.453,2.896-0.453,2.896h26.954C28.977,26.709,29.039,24.332,28.523,23.813zM22.188,26.062h-4.562v-1.25h4.562V26.062z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Employee\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Employee();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/End.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/End.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.End = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.End\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.167,5.5,21.167,13.681,6.684,5.318,6.684,25.682,21.167,17.318,21.167,25.5,25.5,25.5,25.5,5.5z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.End\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.End();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ethernet.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Ethernet.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ethernet = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ethernet\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.5,8.5v3.168l3.832,3.832L22.5,19.332V22.5l7-7L22.5,8.5zM8.5,22.5v-3.168L4.667,15.5L8.5,11.668V8.5l-7,7L8.5,22.5zM15.5,14.101c-0.928,0-1.68,0.751-1.68,1.68c0,0.927,0.752,1.681,1.68,1.681c0.927,0,1.68-0.754,1.68-1.681C17.18,14.852,16.427,14.101,15.5,14.101zM10.46,14.101c-0.928,0-1.68,0.751-1.68,1.68c0,0.927,0.752,1.681,1.68,1.681s1.68-0.754,1.68-1.681C12.14,14.852,11.388,14.101,10.46,14.101zM20.541,14.101c-0.928,0-1.682,0.751-1.682,1.68c0,0.927,0.754,1.681,1.682,1.681s1.68-0.754,1.68-1.681C22.221,14.852,21.469,14.101,20.541,14.101z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ethernet\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ethernet();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Exchange.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Exchange.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Exchange = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Exchange\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.786,12.876l7.556-4.363l-7.556-4.363v2.598H2.813v3.5h18.973V12.876zM10.368,18.124l-7.556,4.362l7.556,4.362V24.25h18.974v-3.501H10.368V18.124z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Exchange\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Exchange();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Expand.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Expand.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Expand = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Expand\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.545,23.328,17.918,15.623,25.534,8.007,27.391,9.864,29.649,1.436,21.222,3.694,23.058,5.53,15.455,13.134,7.942,5.543,9.809,3.696,1.393,1.394,3.608,9.833,5.456,8.005,12.98,15.608,5.465,23.123,3.609,21.268,1.351,29.695,9.779,27.438,7.941,25.6,15.443,18.098,23.057,25.791,21.19,27.638,29.606,29.939,27.393,21.5z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Expand\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Expand();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Export.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Export.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Export = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Export\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.086,20.904c-1.805,3.113-5.163,5.212-9.023,5.219c-5.766-0.01-10.427-4.672-10.438-10.435C4.636,9.922,9.297,5.261,15.063,5.25c3.859,0.007,7.216,2.105,9.022,5.218l3.962,2.284l0.143,0.082C26.879,6.784,21.504,2.25,15.063,2.248C7.64,2.25,1.625,8.265,1.624,15.688c0.002,7.42,6.017,13.435,13.439,13.437c6.442-0.002,11.819-4.538,13.127-10.589l-0.141,0.081L24.086,20.904zM28.4,15.688l-7.15-4.129v2.297H10.275v3.661H21.25v2.297L28.4,15.688z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Export\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Export();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Fave.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Fave.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Fave = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Fave\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.132,7.971c-2.203-2.205-5.916-2.098-8.25,0.235L15.5,8.588l-0.382-0.382c-2.334-2.333-6.047-2.44-8.25-0.235c-2.204,2.203-2.098,5.916,0.235,8.249l8.396,8.396l8.396-8.396C26.229,13.887,26.336,10.174,24.132,7.971z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Fave\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Fave();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Feed.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Feed.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Feed = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Feed\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.135,16.762c3.078,0,5.972,1.205,8.146,3.391c2.179,2.187,3.377,5.101,3.377,8.202h4.745c0-9.008-7.299-16.335-16.269-16.335V16.762zM4.141,8.354c10.973,0,19.898,8.975,19.898,20.006h4.743c0-13.646-11.054-24.749-24.642-24.749V8.354zM10.701,25.045c0,1.815-1.471,3.287-3.285,3.287s-3.285-1.472-3.285-3.287c0-1.813,1.471-3.285,3.285-3.285S10.701,23.231,10.701,25.045z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Feed\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Feed();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ff.js\":\n/*!******************************!*\\\n !*** ./src/shape/icon/Ff.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ff = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ff\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.5,15.5,15.2,9.552,15.2,15.153,5.5,9.552,5.5,21.447,15.2,15.847,15.2,21.447z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ff\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ff();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Firefox.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Firefox.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Firefox = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Firefox\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.4,22.469c0.479-0.964,0.851-1.991,1.095-3.066c0.953-3.661,0.666-6.854,0.666-6.854l-0.327,2.104c0,0-0.469-3.896-1.044-5.353c-0.881-2.231-1.273-2.214-1.274-2.21c0.542,1.379,0.494,2.169,0.483,2.288c-0.01-0.016-0.019-0.032-0.027-0.047c-0.131-0.324-0.797-1.819-2.225-2.878c-2.502-2.481-5.943-4.014-9.745-4.015c-4.056,0-7.705,1.745-10.238,4.525C5.444,6.5,5.183,5.938,5.159,5.317c0,0-0.002,0.002-0.006,0.005c0-0.011-0.003-0.021-0.003-0.031c0,0-1.61,1.247-1.436,4.612c-0.299,0.574-0.56,1.172-0.777,1.791c-0.375,0.817-0.75,2.004-1.059,3.746c0,0,0.133-0.422,0.399-0.988c-0.064,0.482-0.103,0.971-0.116,1.467c-0.09,0.845-0.118,1.865-0.039,3.088c0,0,0.032-0.406,0.136-1.021c0.834,6.854,6.667,12.165,13.743,12.165l0,0c1.86,0,3.636-0.37,5.256-1.036C24.938,27.771,27.116,25.196,28.4,22.469zM16.002,3.356c2.446,0,4.73,0.68,6.68,1.86c-2.274-0.528-3.433-0.261-3.423-0.248c0.013,0.015,3.384,0.589,3.981,1.411c0,0-1.431,0-2.856,0.41c-0.065,0.019,5.242,0.663,6.327,5.966c0,0-0.582-1.213-1.301-1.42c0.473,1.439,0.351,4.17-0.1,5.528c-0.058,0.174-0.118-0.755-1.004-1.155c0.284,2.037-0.018,5.268-1.432,6.158c-0.109,0.07,0.887-3.189,0.201-1.93c-4.093,6.276-8.959,2.539-10.934,1.208c1.585,0.388,3.267,0.108,4.242-0.559c0.982-0.672,1.564-1.162,2.087-1.047c0.522,0.117,0.87-0.407,0.464-0.872c-0.405-0.466-1.392-1.105-2.725-0.757c-0.94,0.247-2.107,1.287-3.886,0.233c-1.518-0.899-1.507-1.63-1.507-2.095c0-0.366,0.257-0.88,0.734-1.028c0.58,0.062,1.044,0.214,1.537,0.466c0.005-0.135,0.006-0.315-0.001-0.519c0.039-0.077,0.015-0.311-0.047-0.596c-0.036-0.287-0.097-0.582-0.19-0.851c0.01-0.002,0.017-0.007,0.021-0.021c0.076-0.344,2.147-1.544,2.299-1.659c0.153-0.114,0.55-0.378,0.506-1.183c-0.015-0.265-0.058-0.294-2.232-0.286c-0.917,0.003-1.425-0.894-1.589-1.245c0.222-1.231,0.863-2.11,1.919-2.704c0.02-0.011,0.015-0.021-0.008-0.027c0.219-0.127-2.524-0.006-3.76,1.604C9.674,8.045,9.219,7.95,8.71,7.95c-0.638,0-1.139,0.07-1.603,0.187c-0.05,0.013-0.122,0.011-0.208-0.001C6.769,8.04,6.575,7.88,6.365,7.672c0.161-0.18,0.324-0.356,0.495-0.526C9.201,4.804,12.43,3.357,16.002,3.356z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Firefox\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Firefox();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Flag.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Flag.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Flag = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Flag\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.04,9.508c0.138-0.533,0.15-1.407,0.028-1.943l-0.404-1.771c-0.122-0.536-0.665-1.052-1.207-1.146l-3.723-0.643c-0.542-0.094-1.429-0.091-1.97,0.007l-4.033,0.726c-0.542,0.098-1.429,0.108-1.973,0.023L8.812,4.146C8.817,4.165,8.826,4.182,8.83,4.201l2.701,12.831l1.236,0.214c0.542,0.094,1.428,0.09,1.97-0.007l4.032-0.727c0.541-0.097,1.429-0.107,1.973-0.022l4.329,0.675c0.544,0.085,0.906-0.288,0.807-0.829l-0.485-2.625c-0.1-0.541-0.069-1.419,0.068-1.952L26.04,9.508zM6.667,3.636C6.126,3.75,5.78,4.279,5.894,4.819l5.763,27.378H13.7L7.852,4.409C7.736,3.867,7.207,3.521,6.667,3.636z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Flag\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Flag();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Flickr.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Flickr.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Flickr = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Flickr\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.77,8.895c-2.379,0-4.479,1.174-5.77,2.969c-1.289-1.795-3.39-2.969-5.77-2.969c-3.924,0-7.105,3.181-7.105,7.105c0,3.924,3.181,7.105,7.105,7.105c2.379,0,4.48-1.175,5.77-2.97c1.29,1.795,3.391,2.97,5.77,2.97c3.925,0,7.105-3.182,7.105-7.105C28.875,12.075,25.694,8.895,21.77,8.895zM21.769,21.822c-3.211,0-5.821-2.61-5.821-5.821c0-3.213,2.61-5.824,5.821-5.824c3.213,0,5.824,2.611,5.824,5.824C27.593,19.212,24.981,21.822,21.769,21.822z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Flickr\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Flickr();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Folder.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Folder.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Folder = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Folder\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.625,26.75h-26.5V8.375h1.124c1.751,0,0.748-3.125,3-3.125c3.215,0,1.912,0,5.126,0c2.251,0,1.251,3.125,3.001,3.125h14.25V26.75z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Folder\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Folder();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Font.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Font.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Font = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Font\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.255,19.327l-1.017,0.131c-0.609,0.081-1.067,0.208-1.375,0.382c-0.521,0.293-0.779,0.76-0.779,1.398c0,0.484,0.178,0.867,0.532,1.146c0.354,0.28,0.774,0.421,1.262,0.421c0.593,0,1.164-0.138,1.72-0.412c0.938-0.453,1.4-1.188,1.4-2.229v-1.354c-0.205,0.131-0.469,0.229-0.792,0.328C22.883,19.229,22.564,19.29,22.255,19.327zM8.036,18.273h4.309l-2.113-6.063L8.036,18.273zM28.167,7.75H3.168c-0.552,0-1,0.448-1,1v16.583c0,0.553,0.448,1,1,1h24.999c0.554,0,1-0.447,1-1V8.75C29.167,8.198,28.721,7.75,28.167,7.75zM14.305,23.896l-1.433-4.109H7.488L6,23.896H4.094L9.262,10.17h2.099l4.981,13.727H14.305L14.305,23.896zM26.792,23.943c-0.263,0.074-0.461,0.121-0.599,0.141c-0.137,0.02-0.323,0.027-0.562,0.027c-0.579,0-0.999-0.204-1.261-0.615c-0.138-0.219-0.231-0.525-0.29-0.926c-0.344,0.449-0.834,0.839-1.477,1.169c-0.646,0.329-1.354,0.493-2.121,0.493c-0.928,0-1.688-0.28-2.273-0.844c-0.589-0.562-0.884-1.271-0.884-2.113c0-0.928,0.29-1.646,0.868-2.155c0.578-0.511,1.34-0.824,2.279-0.942l2.682-0.336c0.388-0.05,0.646-0.211,0.775-0.484c0.063-0.146,0.104-0.354,0.104-0.646c0-0.575-0.203-0.993-0.604-1.252c-0.408-0.26-0.99-0.389-1.748-0.389c-0.877,0-1.5,0.238-1.865,0.713c-0.205,0.263-0.34,0.654-0.399,1.174H17.85c0.031-1.237,0.438-2.097,1.199-2.582c0.77-0.484,1.659-0.726,2.674-0.726c1.176,0,2.131,0.225,2.864,0.673c0.729,0.448,1.093,1.146,1.093,2.093v5.766c0,0.176,0.035,0.313,0.106,0.422c0.071,0.104,0.223,0.156,0.452,0.156c0.076,0,0.16-0.005,0.254-0.015c0.093-0.011,0.191-0.021,0.299-0.041L26.792,23.943L26.792,23.943z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Font\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Font();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Fork.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Fork.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Fork = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Fork\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M13.741,10.249h8.045v2.627l7.556-4.363l-7.556-4.363v2.598H9.826C11.369,7.612,12.616,8.922,13.741,10.249zM21.786,20.654c-0.618-0.195-1.407-0.703-2.291-1.587c-1.79-1.756-3.712-4.675-5.731-7.227c-2.049-2.486-4.159-4.972-7.451-5.091h-3.5v3.5h3.5c0.656-0.027,1.683,0.486,2.879,1.683c1.788,1.753,3.712,4.674,5.731,7.226c1.921,2.331,3.907,4.639,6.863,5.016v2.702l7.556-4.362l-7.556-4.362V20.654z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Fork\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Fork();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ForkAlt.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/ForkAlt.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ForkAlt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ForkAlt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.786,12.873l7.556-4.361l-7.556-4.362v2.701c-2.929,0.374-4.905,2.64-6.809,4.952c0.545,0.703,1.08,1.418,1.604,2.127c0.192,0.26,0.383,0.514,0.573,0.77c0.802-1.043,1.584-1.999,2.341-2.74c0.884-0.885,1.673-1.393,2.291-1.588V12.873zM17.661,17.006c-1.893-2.371-3.815-5.354-6.009-7.537c-1.461-1.428-3.155-2.664-5.34-2.693h-3.5v3.5h3.5c0.971-0.119,2.845,1.333,4.712,3.771c1.895,2.371,3.815,5.354,6.011,7.537c1.326,1.297,2.847,2.426,4.751,2.645v2.646l7.556-4.363l-7.556-4.362v2.535C20.746,20.346,19.205,19.022,17.661,17.006z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ForkAlt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ForkAlt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/FullCube.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/FullCube.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.FullCube = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.FullCube\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,3.029l-10.8,6.235L4.7,21.735L15.5,27.971l10.8-6.235V9.265L15.5,3.029zM15.5,7.029l6.327,3.652L15.5,14.334l-6.326-3.652L15.5,7.029zM24.988,10.599L16,15.789v10.378c0,0.275-0.225,0.5-0.5,0.5s-0.5-0.225-0.5-0.5V15.786l-8.987-5.188c-0.239-0.138-0.321-0.444-0.183-0.683c0.138-0.238,0.444-0.321,0.683-0.183l8.988,5.189l8.988-5.189c0.238-0.138,0.545-0.055,0.684,0.184C25.309,10.155,25.227,10.461,24.988,10.599z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.FullCube\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.FullCube();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Future.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Future.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Future = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Future\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M17.001,15.5l-0.5-7.876c0-0.552-0.448-1-1-1c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.89-0.365,1.365c0.275,0.479,0.889,0.644,1.365,0.367l3.305-1.677C15.39,16.99,15.444,17,15.501,17C16.329,17,17.001,16.329,17.001,15.5zM18.939,21.455c-0.479,0.277-0.644,0.889-0.366,1.367c0.274,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.89,0.365-1.365C20.027,21.344,19.417,21.18,18.939,21.455zM19.938,7.813c-0.477-0.276-1.09-0.111-1.364,0.366c-0.275,0.48-0.111,1.091,0.366,1.367c0.477,0.276,1.088,0.112,1.365-0.366C20.581,8.702,20.418,8.089,19.938,7.813zM21.823,20.305c0.477,0.274,1.089,0.112,1.364-0.365c0.276-0.479,0.112-1.092-0.364-1.367c-0.48-0.275-1.093-0.111-1.367,0.365C21.182,19.416,21.344,20.029,21.823,20.305zM22.822,12.428c0.478-0.275,0.643-0.888,0.365-1.366c-0.274-0.478-0.89-0.642-1.365-0.366c-0.479,0.278-0.643,0.89-0.366,1.367S22.344,12.705,22.822,12.428zM24.378,15.5c0-0.551-0.448-1-1-1c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1C23.93,16.5,24.378,16.053,24.378,15.5zM9.546,12.062c0.275-0.478,0.111-1.089-0.366-1.366c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366C8.658,12.704,9.269,12.541,9.546,12.062zM6.624,15.5c0,0.553,0.449,1,1,1c0.552,0,1-0.447,1.001-1c-0.001-0.552-0.448-0.999-1.001-1C7.071,14.5,6.624,14.948,6.624,15.5zM9.179,20.305c0.479-0.275,0.643-0.888,0.367-1.367c-0.276-0.477-0.888-0.641-1.367-0.365c-0.478,0.277-0.642,0.889-0.365,1.367C8.089,20.418,8.703,20.58,9.179,20.305zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM14.501,23.377c0,0.553,0.448,1,1,1c0.552,0,1-0.447,1-1s-0.448-1-1-1C14.949,22.377,14.501,22.824,14.501,23.377zM10.696,21.822c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.276,1.091,0.11,1.365-0.365c0.277-0.479,0.113-1.09-0.365-1.367C11.584,21.18,10.973,21.344,10.696,21.822zM28.674,14.087l-3.27-1.186c0.291,1.105,0.41,2.274,0.309,3.478c-0.492,5.639-5.449,9.809-11.091,9.333c-5.639-0.495-9.809-5.45-9.333-11.09c0.494-5.641,5.449-9.812,11.089-9.335c2.428,0.212,4.567,1.266,6.194,2.833l-1.637,1.377l7.031,2.548l-1.309-7.364l-1.771,1.492c-2.133-2.151-4.996-3.597-8.25-3.877C9.346,1.67,2.926,7.072,2.297,14.364c-0.625,7.291,4.777,13.71,12.066,14.339c7.293,0.625,13.713-4.776,14.342-12.066C28.779,15.771,28.762,14.919,28.674,14.087z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Future\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Future();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/GRaphael.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/GRaphael.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.GRaphael = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.GRaphael\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.833,15.709c0-1.477-0.574-2.862-1.617-3.904l-7.002-7.001l-0.003,0.002c-1.027-1.03-2.445-1.62-3.9-1.62c-1.455,0-2.871,0.59-3.9,1.621l-0.002-0.002l-7,7C4.376,12.836,3.79,14.25,3.79,15.709s0.586,2.873,1.619,3.902l6.312,6.312c0.253,0.285,0.519,0.556,0.8,0.8c1.049,0.989,2.463,1.534,3.908,1.51c1.417-0.021,2.783-0.604,3.785-1.604l6.812-6.812c0.021-0.021,0.035-0.029,0.062-0.062l0.143-0.146c0.271-0.271,0.484-0.562,0.725-0.86l-0.012-0.002C28.516,17.85,28.833,16.805,28.833,15.709zM18.77,25.17c-1.121,1.119-2.917,1.336-4.271,0.514l0.002-0.002c-0.213-0.145-0.414-0.303-0.61-0.471c-0.016-0.016-7.04-7.041-7.04-7.041c-1.34-1.34-1.342-3.584,0-4.92l7-6.998c1.121-1.121,2.908-1.338,4.259-0.512v0.002c0.213,0.141,0.414,0.299,0.604,0.467c0.021,0.016,7.053,7.043,7.053,7.043c0.396,0.388,0.655,0.852,0.818,1.348l-2.607,0.006c-0.537-3.754-3.769-6.641-7.667-6.641c-4.277,0-7.744,3.468-7.745,7.746c0.001,4.277,3.468,7.744,7.745,7.744c3.917,0,7.156-2.91,7.668-6.688l2.638-0.021c-0.16,0.521-0.441,1.02-0.849,1.412L18.77,25.17zM16.312,16.789c0.002,0,0.002,0,0.004,0l5.476-0.02c-0.5,2.562-2.76,4.518-5.48,4.521c-3.084-0.004-5.578-2.5-5.584-5.582c0.006-3.084,2.5-5.58,5.584-5.584c2.708,0.004,4.959,1.929,5.472,4.484l-5.476,0.018c-0.596,0.002-1.078,0.488-1.076,1.084C15.233,16.308,15.715,16.789,16.312,16.789z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.GRaphael\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.GRaphael();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Gear.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Gear.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Gear = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Gear\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.974,16.514l3.765-1.991c-0.074-0.738-0.217-1.454-0.396-2.157l-4.182-0.579c-0.362-0.872-0.84-1.681-1.402-2.423l1.594-3.921c-0.524-0.511-1.09-0.977-1.686-1.406l-3.551,2.229c-0.833-0.438-1.73-0.77-2.672-0.984l-1.283-3.976c-0.364-0.027-0.728-0.056-1.099-0.056s-0.734,0.028-1.099,0.056l-1.271,3.941c-0.967,0.207-1.884,0.543-2.738,0.986L7.458,4.037C6.863,4.466,6.297,4.932,5.773,5.443l1.55,3.812c-0.604,0.775-1.11,1.629-1.49,2.55l-4.05,0.56c-0.178,0.703-0.322,1.418-0.395,2.157l3.635,1.923c0.041,1.013,0.209,1.994,0.506,2.918l-2.742,3.032c0.319,0.661,0.674,1.303,1.085,1.905l4.037-0.867c0.662,0.72,1.416,1.351,2.248,1.873l-0.153,4.131c0.663,0.299,1.352,0.549,2.062,0.749l2.554-3.283C15.073,26.961,15.532,27,16,27c0.507,0,1.003-0.046,1.491-0.113l2.567,3.301c0.711-0.2,1.399-0.45,2.062-0.749l-0.156-4.205c0.793-0.513,1.512-1.127,2.146-1.821l4.142,0.889c0.411-0.602,0.766-1.243,1.085-1.905l-2.831-3.131C26.778,18.391,26.93,17.467,26.974,16.514zM20.717,21.297l-1.785,1.162l-1.098-1.687c-0.571,0.22-1.186,0.353-1.834,0.353c-2.831,0-5.125-2.295-5.125-5.125c0-2.831,2.294-5.125,5.125-5.125c2.83,0,5.125,2.294,5.125,5.125c0,1.414-0.573,2.693-1.499,3.621L20.717,21.297z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Gear\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Gear();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Gear2.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Gear2.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Gear2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Gear2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M17.047,27.945c-0.34,0.032-0.688,0.054-1.046,0.054l0,0c-0.32,0-0.631-0.017-0.934-0.043l0,0l-2.626,3.375l-0.646-0.183c-0.758-0.213-1.494-0.48-2.202-0.8l0,0L8.979,30.07l0.158-4.24c-0.558-0.39-1.079-0.825-1.561-1.302l0,0L3.424,25.42l-0.379-0.557c-0.445-0.654-0.824-1.339-1.16-2.032l0,0l-0.292-0.605l2.819-3.12c-0.176-0.661-0.293-1.343-0.353-2.038l0,0l-3.736-1.975l0.068-0.669c0.08-0.801,0.235-1.567,0.42-2.303l0,0l0.165-0.653l4.167-0.577c0.297-0.627,0.647-1.221,1.041-1.78l0,0l-1.59-3.914l0.48-0.47c0.564-0.55,1.168-1.048,1.798-1.503l0,0l0.546-0.394l3.597,2.259c0.606-0.279,1.24-0.509,1.897-0.685l0,0l1.304-4.046l0.672-0.051c0.362-0.027,0.751-0.058,1.174-0.058l0,0c0.422,0,0.81,0.031,1.172,0.058l0,0l0.672,0.051l1.318,4.088c0.632,0.176,1.244,0.401,1.831,0.674l0,0l3.647-2.291l0.548,0.394c0.63,0.455,1.235,0.954,1.798,1.501l0,0l0.482,0.47l-1.639,4.031c0.357,0.519,0.679,1.068,0.954,1.646l0,0l4.297,0.595l0.167,0.653c0.188,0.735,0.342,1.501,0.42,2.303l0,0l0.068,0.669l-3.866,2.044c-0.058,0.634-0.161,1.258-0.315,1.866l0,0l2.913,3.218l-0.293,0.608c-0.335,0.695-0.712,1.382-1.159,2.034l0,0l-0.379,0.555l-4.255-0.912c-0.451,0.451-0.939,0.866-1.461,1.241l0,0l0.162,4.323l-0.615,0.278c-0.709,0.319-1.444,0.587-2.202,0.8l0,0l-0.648,0.183L17.047,27.945L17.047,27.945zM20.424,29.028c0.227-0.076,0.45-0.157,0.671-0.244l0,0l-0.152-4.083l0.479-0.307c0.717-0.466,1.37-1.024,1.95-1.658l0,0l0.386-0.423l4.026,0.862c0.121-0.202,0.238-0.409,0.351-0.62l0,0l-2.754-3.045l0.171-0.544c0.243-0.783,0.381-1.623,0.422-2.5l0,0l0.025-0.571l3.658-1.933c-0.038-0.234-0.082-0.467-0.132-0.7l0,0l-4.07-0.563l-0.219-0.527c-0.327-0.787-0.76-1.524-1.277-2.204l0,0l-0.342-0.453l1.548-3.808c-0.179-0.157-0.363-0.31-0.552-0.458l0,0l-3.455,2.169L20.649,7.15c-0.754-0.397-1.569-0.698-2.429-0.894l0,0l-0.556-0.127l-1.248-3.87c-0.121-0.006-0.239-0.009-0.354-0.009l0,0c-0.117,0-0.235,0.003-0.357,0.009l0,0l-1.239,3.845l-0.564,0.12c-0.875,0.188-1.709,0.494-2.486,0.896l0,0l-0.508,0.264L7.509,5.249c-0.188,0.148-0.372,0.301-0.55,0.458l0,0l1.507,3.708L8.112,9.869c-0.552,0.709-1.011,1.485-1.355,2.319l0,0l-0.218,0.529l-3.939,0.545c-0.05,0.233-0.094,0.466-0.131,0.7l0,0l3.531,1.867l0.022,0.575c0.037,0.929,0.192,1.82,0.459,2.653l0,0l0.175,0.548l-2.667,2.95c0.112,0.212,0.229,0.419,0.351,0.621l0,0l3.916-0.843l0.39,0.423c0.601,0.657,1.287,1.229,2.043,1.703l0,0l0.488,0.305l-0.149,4.02c0.221,0.087,0.445,0.168,0.672,0.244l0,0l2.479-3.188l0.566,0.07c0.427,0.054,0.843,0.089,1.257,0.089l0,0c0.445,0,0.894-0.039,1.353-0.104l0,0l0.571-0.08L20.424,29.028L20.424,29.028zM21.554,20.75l0.546,0.839l-3.463,2.253l-1.229-1.891l0,0c-0.447,0.109-0.917,0.173-1.406,0.173l0,0c-3.384,0-6.126-2.743-6.126-6.123l0,0c0-3.384,2.742-6.126,6.126-6.126l0,0c3.38,0,6.123,2.742,6.123,6.126l0,0c0,1.389-0.467,2.676-1.25,3.704l0,0L21.554,20.75M19.224,21.073l0.108-0.069l-0.987-1.519l0.572-0.572c0.748-0.75,1.207-1.773,1.207-2.912l0,0c-0.004-2.278-1.848-4.122-4.123-4.126l0,0c-2.28,0.004-4.122,1.846-4.126,4.126l0,0c0.004,2.275,1.848,4.119,4.126,4.123l0,0c0.509,0,0.999-0.104,1.473-0.286l0,0l0.756-0.29L19.224,21.073L19.224,21.073z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Gear2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Gear2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/GitHub.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/GitHub.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.GitHub = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.GitHub\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.436,15.099c-1.201-0.202-2.451-0.335-3.466-0.371l-0.179-0.006c0.041-0.09,0.072-0.151,0.082-0.16c0.022-0.018,0.04-0.094,0.042-0.168c0-0.041,0.018-0.174,0.046-0.35c0.275,0.01,0.64,0.018,1.038,0.021c1.537,0.012,3.145,0.136,4.248,0.331c0.657,0.116,0.874,0.112,0.389-0.006c-0.491-0.119-1.947-0.294-3.107-0.37c-0.779-0.053-1.896-0.073-2.554-0.062c0.019-0.114,0.041-0.241,0.064-0.371c0.093-0.503,0.124-1.009,0.126-2.016c0.002-1.562-0.082-1.992-0.591-3.025c-0.207-0.422-0.441-0.78-0.724-1.104c0.247-0.729,0.241-1.858-0.015-2.848c-0.211-0.812-0.285-0.864-1.021-0.708C22.19,4.019,21.69,4.2,21.049,4.523c-0.303,0.153-0.721,0.391-1.024,0.578c-0.79-0.278-1.607-0.462-2.479-0.561c-0.884-0.1-3.051-0.044-3.82,0.098c-0.752,0.139-1.429,0.309-2.042,0.511c-0.306-0.189-0.75-0.444-1.067-0.604C9.973,4.221,9.473,4.041,8.847,3.908c-0.734-0.157-0.81-0.104-1.02,0.708c-0.26,1.003-0.262,2.151-0.005,2.878C7.852,7.577,7.87,7.636,7.877,7.682c-1.042,1.312-1.382,2.78-1.156,4.829c0.059,0.534,0.15,1.024,0.277,1.473c-0.665-0.004-1.611,0.02-2.294,0.064c-1.162,0.077-2.618,0.25-3.109,0.369c-0.484,0.118-0.269,0.122,0.389,0.007c1.103-0.194,2.712-0.32,4.248-0.331c0.29-0.001,0.561-0.007,0.794-0.013c0.07,0.237,0.15,0.463,0.241,0.678L7.26,14.759c-1.015,0.035-2.264,0.168-3.465,0.37c-0.901,0.151-2.231,0.453-2.386,0.54c-0.163,0.091-0.03,0.071,0.668-0.106c1.273-0.322,2.928-0.569,4.978-0.741l0.229-0.02c0.44,1.022,1.118,1.802,2.076,2.41c0.586,0.373,1.525,0.756,1.998,0.816c0.13,0.016,0.508,0.094,0.84,0.172c0.333,0.078,0.984,0.195,1.446,0.262h0.011c-0.009,0.006-0.017,0.01-0.025,0.016c-0.56,0.291-0.924,0.744-1.169,1.457c-0.11,0.033-0.247,0.078-0.395,0.129c-0.529,0.18-0.735,0.217-1.271,0.221c-0.556,0.004-0.688-0.02-1.02-0.176c-0.483-0.225-0.933-0.639-1.233-1.133c-0.501-0.826-1.367-1.41-2.089-1.41c-0.617,0-0.734,0.25-0.288,0.615c0.672,0.549,1.174,1.109,1.38,1.537c0.116,0.24,0.294,0.611,0.397,0.824c0.109,0.227,0.342,0.535,0.564,0.748c0.522,0.498,1.026,0.736,1.778,0.848c0.504,0.074,0.628,0.074,1.223-0.002c0.287-0.035,0.529-0.076,0.746-0.127c0,0.244,0,0.525,0,0.855c0,1.766-0.021,2.334-0.091,2.5c-0.132,0.316-0.428,0.641-0.716,0.787c-0.287,0.146-0.376,0.307-0.255,0.455c0.067,0.08,0.196,0.094,0.629,0.066c0.822-0.051,1.403-0.355,1.699-0.891c0.095-0.172,0.117-0.518,0.147-2.318c0.032-1.953,0.046-2.141,0.173-2.42c0.077-0.166,0.188-0.346,0.25-0.395c0.104-0.086,0.111,0.084,0.111,2.42c-0.001,2.578-0.027,2.889-0.285,3.385c-0.058,0.113-0.168,0.26-0.245,0.33c-0.135,0.123-0.192,0.438-0.098,0.533c0.155,0.154,0.932-0.088,1.356-0.422c0.722-0.572,0.808-1.045,0.814-4.461l0.003-2.004l0.219,0.021l0.219,0.02l0.036,2.621c0.041,2.951,0.047,2.994,0.549,3.564c0.285,0.322,0.572,0.5,1.039,0.639c0.625,0.188,0.813-0.102,0.393-0.605c-0.457-0.547-0.479-0.756-0.454-3.994c0.017-2.076,0.017-2.076,0.151-1.955c0.282,0.256,0.336,0.676,0.336,2.623c0,2.418,0.069,2.648,0.923,3.07c0.399,0.195,0.511,0.219,1.022,0.221c0.544,0.002,0.577-0.006,0.597-0.148c0.017-0.115-0.05-0.193-0.304-0.348c-0.333-0.205-0.564-0.467-0.709-0.797c-0.055-0.127-0.092-0.959-0.117-2.672c-0.036-2.393-0.044-2.502-0.193-2.877c-0.201-0.504-0.508-0.902-0.897-1.166c-0.101-0.066-0.202-0.121-0.333-0.162c0.161-0.016,0.317-0.033,0.468-0.055c1.572-0.209,2.403-0.383,3.07-0.641c1.411-0.543,2.365-1.445,2.882-2.724c0.046-0.114,0.092-0.222,0.131-0.309l0.398,0.033c2.051,0.173,3.706,0.42,4.979,0.743c0.698,0.177,0.831,0.198,0.668,0.105C30.666,15.551,29.336,15.25,28.436,15.099zM22.422,15.068c-0.233,0.512-0.883,1.17-1.408,1.428c-0.518,0.256-1.33,0.451-2.25,0.544c-0.629,0.064-4.137,0.083-4.716,0.026c-1.917-0.188-2.991-0.557-3.783-1.296c-0.75-0.702-1.1-1.655-1.039-2.828c0.039-0.734,0.216-1.195,0.679-1.755c0.421-0.51,0.864-0.825,1.386-0.985c0.437-0.134,1.778-0.146,3.581-0.03c0.797,0.051,1.456,0.051,2.252,0c1.886-0.119,3.145-0.106,3.61,0.038c0.731,0.226,1.397,0.834,1.797,1.644c0.18,0.362,0.215,0.516,0.241,1.075C22.808,13.699,22.675,14.517,22.422,15.068zM12.912,11.762c-1.073-0.188-1.686,1.649-0.863,2.587c0.391,0.445,0.738,0.518,1.172,0.248c0.402-0.251,0.62-0.72,0.62-1.328C13.841,12.458,13.472,11.862,12.912,11.762zM19.425,11.872c-1.073-0.188-1.687,1.647-0.864,2.586c0.392,0.445,0.738,0.519,1.173,0.247c0.401-0.25,0.62-0.72,0.62-1.328C20.354,12.569,19.985,11.971,19.425,11.872zM16.539,15.484c-0.023,0.074-0.135,0.184-0.248,0.243c-0.286,0.147-0.492,0.096-0.794-0.179c-0.187-0.169-0.272-0.258-0.329-0.081c-0.053,0.164,0.28,0.493,0.537,0.594c0.236,0.094,0.405,0.097,0.661-0.01c0.254-0.106,0.476-0.391,0.476-0.576C16.842,15.303,16.595,15.311,16.539,15.484zM16.222,14.909c0.163-0.144,0.2-0.44,0.044-0.597s-0.473-0.133-0.597,0.043c-0.144,0.206-0.067,0.363,0.036,0.53C15.865,15.009,16.08,15.034,16.222,14.909z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.GitHub\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.GitHub();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/GitHubAlt.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/GitHubAlt.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.GitHubAlt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.GitHubAlt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.356,17.485c-0.004,0.007-0.007,0.013-0.01,0.021l0.162,0.005c0.107,0.004,0.218,0.01,0.33,0.016c-0.046-0.004-0.09-0.009-0.136-0.013L23.356,17.485zM15.5,1.249C7.629,1.25,1.25,7.629,1.249,15.5C1.25,23.371,7.629,29.75,15.5,29.751c7.871-0.001,14.25-6.38,14.251-14.251C29.75,7.629,23.371,1.25,15.5,1.249zM3.771,17.093c0.849-0.092,1.833-0.148,2.791-0.156c0.262,0,0.507-0.006,0.717-0.012c0.063,0.213,0.136,0.419,0.219,0.613H7.492c-0.918,0.031-2.047,0.152-3.134,0.335c-0.138,0.023-0.288,0.051-0.441,0.08C3.857,17.67,3.81,17.383,3.771,17.093zM12.196,22.224c-0.1,0.028-0.224,0.07-0.357,0.117c-0.479,0.169-0.665,0.206-1.15,0.206c-0.502,0.015-0.621-0.019-0.921-0.17C9.33,22.171,8.923,21.8,8.651,21.353c-0.453-0.746-1.236-1.275-1.889-1.275c-0.559,0-0.664,0.227-0.261,0.557c0.608,0.496,1.062,0.998,1.248,1.385c0.105,0.215,0.266,0.546,0.358,0.744c0.099,0.206,0.311,0.474,0.511,0.676c0.472,0.441,0.928,0.659,1.608,0.772c0.455,0.06,0.567,0.06,1.105-0.004c0.26-0.03,0.479-0.067,0.675-0.118v0.771c0,1.049-0.008,1.628-0.031,1.945c-1.852-0.576-3.507-1.595-4.848-2.934c-1.576-1.578-2.706-3.592-3.195-5.848c0.952-0.176,2.073-0.32,3.373-0.43l0.208-0.018c0.398,0.925,1.011,1.631,1.876,2.179c0.53,0.337,1.38,0.685,1.808,0.733c0.118,0.02,0.46,0.09,0.76,0.16c0.302,0.066,0.89,0.172,1.309,0.236h0.009c-0.007,0.018-0.014,0.02-0.022,0.02C12.747,21.169,12.418,21.579,12.196,22.224zM13.732,27.207c-0.168-0.025-0.335-0.056-0.5-0.087c0.024-0.286,0.038-0.785,0.054-1.723c0.028-1.767,0.041-1.94,0.156-2.189c0.069-0.15,0.17-0.32,0.226-0.357c0.095-0.078,0.101,0.076,0.101,2.188C13.769,26.143,13.763,26.786,13.732,27.207zM15.5,27.339c-0.148,0-0.296-0.006-0.443-0.012c0.086-0.562,0.104-1.428,0.106-2.871l0.003-1.82l0.197,0.019l0.199,0.02l0.032,2.365c0.017,1.21,0.027,1.878,0.075,2.296C15.613,27.335,15.558,27.339,15.5,27.339zM17.006,27.24c-0.039-0.485-0.037-1.243-0.027-2.553c0.019-1.866,0.019-1.866,0.131-1.769c0.246,0.246,0.305,0.623,0.305,2.373c0,0.928,0.011,1.497,0.082,1.876C17.334,27.196,17.17,27.22,17.006,27.24zM27.089,17.927c-0.155-0.029-0.307-0.057-0.446-0.08c-0.96-0.162-1.953-0.275-2.804-0.32c1.25,0.108,2.327,0.248,3.246,0.418c-0.479,2.289-1.618,4.33-3.214,5.928c-1.402,1.4-3.15,2.448-5.106,3.008c-0.034-0.335-0.058-1.048-0.066-2.212c-0.03-2.167-0.039-2.263-0.17-2.602c-0.181-0.458-0.47-0.811-0.811-1.055c-0.094-0.057-0.181-0.103-0.301-0.14c0.145-0.02,0.282-0.021,0.427-0.057c1.418-0.188,2.168-0.357,2.772-0.584c1.263-0.492,2.129-1.301,2.606-2.468c0.044-0.103,0.088-0.2,0.123-0.279l0.011,0.001c0.032-0.07,0.057-0.118,0.064-0.125c0.02-0.017,0.036-0.085,0.038-0.151c0-0.037,0.017-0.157,0.041-0.317c0.249,0.01,0.58,0.018,0.938,0.02c0.959,0.008,1.945,0.064,2.794,0.156C27.194,17.356,27.148,17.644,27.089,17.927zM25.823,16.87c-0.697-0.049-1.715-0.064-2.311-0.057c0.02-0.103,0.037-0.218,0.059-0.336c0.083-0.454,0.111-0.912,0.113-1.823c0.002-1.413-0.074-1.801-0.534-2.735c-0.188-0.381-0.399-0.705-0.655-0.998c0.225-0.659,0.207-1.68-0.02-2.575c-0.19-0.734-0.258-0.781-0.924-0.64c-0.563,0.12-1.016,0.283-1.598,0.576c-0.274,0.138-0.652,0.354-0.923,0.522c-0.715-0.251-1.451-0.419-2.242-0.508c-0.799-0.092-2.759-0.04-3.454,0.089c-0.681,0.126-1.293,0.28-1.848,0.462c-0.276-0.171-0.678-0.4-0.964-0.547C9.944,8.008,9.491,7.846,8.925,7.727c-0.664-0.144-0.732-0.095-0.922,0.64c-0.235,0.907-0.237,1.945-0.004,2.603c0.026,0.075,0.043,0.129,0.05,0.17c-0.942,1.187-1.25,2.515-1.046,4.367c0.053,0.482,0.136,0.926,0.251,1.333c-0.602-0.004-1.457,0.018-2.074,0.057c-0.454,0.031-0.957,0.076-1.418,0.129c-0.063-0.5-0.101-1.008-0.101-1.524c0-3.273,1.323-6.225,3.468-8.372c2.146-2.144,5.099-3.467,8.371-3.467c3.273,0,6.226,1.323,8.371,3.467c2.145,2.147,3.468,5.099,3.468,8.372c0,0.508-0.036,1.008-0.098,1.499C26.78,16.946,26.276,16.899,25.823,16.87z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.GitHubAlt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.GitHubAlt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Glasses.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Glasses.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Glasses = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Glasses\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.075,9.531c0,0-2.705-1.438-5.158-1.438c-2.453,0-4.862,0.593-4.862,0.593L3.971,9.869c0,0,0.19,0.19,0.528,0.53c0.338,0.336,0.486,3.741,1.838,5.094c1.353,1.354,4.82,1.396,5.963,0.676c1.14-0.718,2.241-3.466,2.241-4.693c0-0.38,0-0.676,0-0.676c0.274-0.275,1.615-0.303,1.917,0c0,0,0,0.296,0,0.676c0,1.227,1.101,3.975,2.241,4.693c1.144,0.72,4.611,0.678,5.963-0.676c1.355-1.353,1.501-4.757,1.839-5.094c0.338-0.34,0.528-0.53,0.528-0.53l-0.084-1.183c0,0-2.408-0.593-4.862-0.593c-2.453,0-5.158,1.438-5.158,1.438C16.319,9.292,14.737,9.32,14.075,9.531z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Glasses\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Glasses();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Globe.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Globe.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Globe = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Globe\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM19.158,23.269c-0.079,0.064-0.183,0.13-0.105,0.207c0.078,0.078-0.09,0.131-0.09,0.17s0.104,0.246,0.052,0.336c-0.052,0.092-0.091,0.223-0.13,0.301c-0.039,0.077-0.131,0.155-0.104,0.272c0.025,0.116-0.104,0.077-0.104,0.194c0,0.116,0.116,0.065,0.09,0.208c-0.025,0.144-0.09,0.183-0.09,0.285c0,0.104,0.064,0.247,0.064,0.286s-0.064,0.17-0.155,0.272c-0.092,0.104-0.155,0.17-0.144,0.233c0.014,0.065,0.104,0.144,0.091,0.184c-0.013,0.037-0.129,0.168-0.116,0.259c0.014,0.09,0.129,0.053,0.155,0.116c0.026,0.065-0.155,0.118-0.078,0.183c0.078,0.064,0.183,0.051,0.156,0.208c-0.019,0.112,0.064,0.163,0.126,0.198c-0.891,0.221-1.818,0.352-2.777,0.352C9.639,27.533,4.466,22.36,4.466,16c0-2.073,0.557-4.015,1.518-5.697c0.079-0.042,0.137-0.069,0.171-0.062c0.065,0.013,0.079,0.104,0.183,0.13c0.104,0.026,0.195-0.078,0.26-0.117c0.064-0.039,0.116-0.195,0.051-0.182c-0.065,0.013-0.234,0-0.234,0s0.183-0.104,0.183-0.169s0.025-0.169,0.129-0.208C6.83,9.655,6.83,9.681,6.765,9.837C6.7,9.993,6.896,9.928,6.973,9.863s0.13-0.013,0.272-0.104c0.143-0.091,0.143-0.143,0.221-0.143c0.078,0,0.221,0.143,0.299,0.091c0.077-0.052,0.299,0.065,0.429,0.065c0.129,0,0.545,0.169,0.624,0.169c0.078,0,0.312,0.09,0.325,0.259c0.013,0.169,0.09,0.156,0.168,0.156s0.26,0.065,0.26,0.13c0,0.065-0.052,0.325,0.078,0.39c0.129,0.064,0.247,0.169,0.299,0.143c0.052-0.026,0-0.233-0.064-0.26c-0.065-0.026-0.027-0.117-0.052-0.169c-0.026-0.051,0.078-0.051,0.117,0.039c0.039,0.091,0.143,0.26,0.208,0.26c0.064,0,0.208,0.156,0.168,0.247c-0.039,0.091,0.039,0.221,0.156,0.221c0.116,0,0.26,0.182,0.312,0.195c0.052,0.013,0.117,0.078,0.117,0.117c0,0.04,0.065,0.26,0.065,0.351c0,0.09-0.04,0.454-0.053,0.597s0.104,0.39,0.234,0.52c0.129,0.13,0.246,0.377,0.324,0.429c0.079,0.052,0.13,0.195,0.247,0.182c0.117-0.013,0.195,0.078,0.299,0.26c0.104,0.182,0.208,0.48,0.286,0.506c0.078,0.026,0.208,0.117,0.142,0.182c-0.064,0.064-0.168,0.208-0.051,0.208c0.117,0,0.156-0.065,0.247,0.053c0.09,0.116,0.208,0.181,0.194,0.26c-0.013,0.077,0.104,0.103,0.156,0.116c0.052,0.013,0.169,0.247,0.286,0.143c0.117-0.104-0.155-0.259-0.234-0.326c-0.078-0.064,0-0.207-0.182-0.35c-0.182-0.143-0.156-0.247-0.286-0.351c-0.13-0.104-0.233-0.195-0.104-0.286c0.13-0.091,0.143,0.091,0.195,0.208c0.052,0.116,0.324,0.351,0.441,0.454c0.117,0.104,0.326,0.468,0.39,0.468s0.247,0.208,0.247,0.208s0.103,0.168,0.064,0.22c-0.039,0.052,0.053,0.247,0.144,0.299c0.09,0.052,0.455,0.22,0.507,0.247c0.052,0.027,0.155,0.221,0.299,0.221c0.142,0,0.247,0.014,0.286,0.053c0.039,0.038,0.155,0.194,0.234,0.104c0.078-0.092,0.09-0.131,0.208-0.131c0.117,0,0.168,0.091,0.233,0.156c0.065,0.065,0.247,0.235,0.338,0.222c0.091-0.013,0.208,0.104,0.273,0.064s0.169,0.025,0.22,0.052c0.054,0.026,0.234,0.118,0.222,0.272c-0.013,0.157,0.103,0.195,0.182,0.234c0.078,0.039,0.182,0.13,0.248,0.195c0.064,0.063,0.206,0.077,0.246,0.116c0.039,0.039,0.065,0.117,0.182,0.052c0.116-0.064,0.092-0.181,0.092-0.181s0.129-0.026,0.194,0.026c0.064,0.05,0.104,0.22,0.144,0.246c0.038,0.026,0.115,0.221,0.063,0.362c-0.051,0.145-0.038,0.286-0.091,0.286c-0.052,0-0.116,0.17-0.195,0.209c-0.076,0.039-0.285,0.221-0.272,0.286c0.013,0.063,0.131,0.258,0.104,0.35c-0.025,0.091-0.194,0.195-0.154,0.338c0.038,0.144,0.312,0.183,0.323,0.312c0.014,0.131,0.209,0.417,0.235,0.546c0.025,0.13,0.246,0.272,0.246,0.453c0,0.184,0.312,0.3,0.377,0.312c0.063,0.013,0.182,0.131,0.272,0.17s0.169,0.116,0.233,0.221s0.053,0.261,0.053,0.299c0,0.039-0.039,0.44-0.078,0.674C19.145,23.021,19.235,23.203,19.158,23.269zM10.766,11.188c0.039,0.013,0.117,0.091,0.156,0.091c0.04,0,0.234,0.156,0.286,0.208c0.053,0.052,0.053,0.195-0.013,0.208s-0.104-0.143-0.117-0.208c-0.013-0.065-0.143-0.065-0.208-0.104C10.805,11.344,10.66,11.152,10.766,11.188zM27.51,16.41c-0.144,0.182-0.13,0.272-0.195,0.286c-0.064,0.013,0.065,0.065,0.09,0.194c0.022,0.112-0.065,0.224,0.063,0.327c-0.486,4.619-3.71,8.434-8.016,9.787c-0.007-0.011-0.019-0.025-0.021-0.034c-0.027-0.078-0.027-0.233,0.064-0.285c0.091-0.053,0.312-0.233,0.363-0.272c0.052-0.04,0.13-0.221,0.091-0.247c-0.038-0.026-0.232,0-0.26-0.039c-0.026-0.039-0.026-0.092,0.104-0.182c0.13-0.091,0.195-0.222,0.247-0.26c0.052-0.039,0.155-0.117,0.195-0.209c0.038-0.09-0.041-0.039-0.118-0.039s-0.117-0.142-0.117-0.207s0.195,0.026,0.339,0.052c0.143,0.024,0.077-0.065,0.064-0.142c-0.013-0.078,0.026-0.209,0.105-0.17c0.076,0.039,0.479-0.013,0.531-0.026c0.052-0.013,0.194-0.246,0.246-0.312c0.053-0.065,0.064-0.129,0-0.168c-0.065-0.04-0.143-0.184-0.168-0.221c-0.026-0.041-0.039-0.274-0.013-0.34c0.025-0.063,0,0.377,0.181,0.43c0.183,0.052,0.286,0.078,0.455-0.078c0.169-0.155,0.298-0.26,0.312-0.363c0.013-0.104,0.052-0.209,0.117-0.246c0.065-0.039,0.104,0.103,0.182-0.065c0.078-0.17,0.156-0.157,0.234-0.299c0.077-0.144-0.13-0.325,0.024-0.43c0.157-0.103,0.43-0.233,0.43-0.233s0.078-0.039,0.234-0.078c0.155-0.038,0.324-0.014,0.376-0.09c0.052-0.079,0.104-0.247,0.182-0.338c0.079-0.092,0.169-0.234,0.13-0.299c-0.039-0.065,0.104-0.352,0.091-0.429c-0.013-0.078-0.13-0.261,0.065-0.416s0.402-0.391,0.416-0.454c0.012-0.065,0.169-0.338,0.154-0.469c-0.012-0.129-0.154-0.285-0.245-0.325c-0.092-0.037-0.286-0.05-0.364-0.154s-0.299-0.208-0.377-0.182c-0.077,0.026-0.208,0.051-0.312-0.015c-0.104-0.063-0.272-0.143-0.337-0.194c-0.066-0.051-0.234-0.09-0.312-0.09s-0.065-0.053-0.182,0.103c-0.117,0.157,0,0.209-0.208,0.182c-0.209-0.024,0.025-0.038,0.144-0.194c0.115-0.155-0.014-0.247-0.144-0.207c-0.13,0.039-0.039,0.117-0.247,0.156c-0.207,0.038-0.207-0.092-0.077-0.117c0.13-0.026,0.363-0.143,0.363-0.194c0-0.053-0.026-0.196-0.13-0.196s-0.078-0.129-0.233-0.297c-0.156-0.17-0.351-0.274-0.508-0.249c-0.154,0.026-0.272,0.065-0.35-0.076c-0.078-0.144-0.169-0.17-0.222-0.247c-0.051-0.078-0.182,0-0.221-0.039s-0.039-0.039-0.039-0.039s-0.169,0.039-0.077-0.078c0.09-0.117,0.129-0.338,0.09-0.325c-0.038,0.013-0.104,0.196-0.168,0.183c-0.064-0.013-0.014-0.04-0.144-0.117c-0.13-0.078-0.337-0.013-0.337,0.052c0,0.065-0.065,0.117-0.065,0.117s-0.039-0.038-0.078-0.117c-0.039-0.078-0.221-0.091-0.312-0.013c-0.09,0.078-0.142-0.196-0.207-0.196s-0.194,0.065-0.26,0.184c-0.064,0.116-0.038,0.285-0.092,0.272c-0.05-0.013-0.063-0.233-0.05-0.312c0.012-0.079,0.155-0.208,0.05-0.234c-0.103-0.026-0.259,0.13-0.323,0.143c-0.065,0.013-0.195,0.104-0.273,0.209c-0.077,0.103-0.116,0.168-0.195,0.207c-0.077,0.039-0.193,0-0.167-0.039c0.025-0.039-0.222-0.181-0.261-0.13c-0.04,0.052-0.155,0.091-0.272,0.144c-0.117,0.052-0.222-0.065-0.247-0.117s-0.079-0.064-0.091-0.234c-0.013-0.168,0.027-0.351,0.065-0.454c0.038-0.104-0.195-0.312-0.286-0.3c-0.091,0.015-0.182,0.105-0.272,0.091c-0.092-0.012-0.052-0.038-0.195-0.038c-0.143,0-0.026-0.025,0-0.143c0.025-0.116-0.052-0.273,0.092-0.377c0.142-0.104,0.091-0.351,0-0.363c-0.092-0.014-0.261,0.039-0.377,0.026c-0.116-0.014-0.208,0.091-0.169,0.207c0.039,0.117-0.065,0.195-0.104,0.183c-0.039-0.013-0.09-0.078-0.234,0.026c-0.142,0.103-0.194,0.064-0.337-0.052c-0.143-0.118-0.299-0.234-0.325-0.416c-0.026-0.182-0.04-0.364,0.013-0.468c0.051-0.104,0.051-0.285-0.026-0.312c-0.078-0.025,0.09-0.155,0.181-0.181c0.092-0.026,0.234-0.143,0.26-0.195c0.026-0.052,0.156-0.04,0.298-0.04c0.143,0,0.169,0,0.312,0.078c0.143,0.078,0.169-0.039,0.169-0.078c0-0.039,0.052-0.117,0.208-0.104c0.156,0.013,0.376-0.052,0.416-0.013s0.116,0.195,0.194,0.143c0.079-0.051,0.104-0.143,0.131,0.014c0.025,0.155,0.09,0.39,0.208,0.429c0.116,0.039,0.052,0.194,0.168,0.207c0.115,0.013,0.17-0.246,0.131-0.337c-0.04-0.09-0.118-0.363-0.183-0.428c-0.064-0.065-0.064-0.234,0.064-0.286c0.13-0.052,0.442-0.312,0.532-0.389c0.092-0.079,0.338-0.144,0.261-0.248c-0.078-0.104-0.104-0.168-0.104-0.247s0.078-0.052,0.117,0s0.194-0.078,0.155-0.143c-0.038-0.064-0.026-0.155,0.065-0.143c0.091,0.013,0.116-0.065,0.078-0.117c-0.039-0.052,0.091-0.117,0.182-0.091c0.092,0.026,0.325-0.013,0.364-0.065c0.038-0.052-0.078-0.104-0.078-0.208c0-0.104,0.155-0.195,0.247-0.208c0.091-0.013,0.207,0,0.221-0.039c0.012-0.039,0.143-0.143,0.155-0.052c0.014,0.091,0,0.247,0.104,0.247c0.104,0,0.232-0.117,0.272-0.129c0.038-0.013,0.286-0.065,0.338-0.078c0.052-0.013,0.363-0.039,0.325-0.13c-0.039-0.09-0.078-0.181-0.118-0.22c-0.039-0.039-0.077,0.013-0.13,0.078c-0.051,0.065-0.143,0.065-0.168,0.013c-0.026-0.051,0.012-0.207-0.078-0.156c-0.092,0.052-0.104,0.104-0.157,0.078c-0.052-0.026-0.103-0.117-0.103-0.117s0.129-0.064,0.038-0.182c-0.09-0.117-0.221-0.091-0.35-0.025c-0.13,0.064-0.118,0.051-0.273,0.09s-0.234,0.078-0.234,0.078s0.209-0.129,0.299-0.208c0.091-0.078,0.209-0.117,0.286-0.195c0.078-0.078,0.285,0.039,0.285,0.039s0.105-0.104,0.105-0.039s-0.027,0.234,0.051,0.234c0.079,0,0.299-0.104,0.21-0.131c-0.093-0.026,0.129,0,0.219-0.065c0.092-0.065,0.194-0.065,0.247-0.09c0.052-0.026,0.092-0.143,0.182-0.143c0.092,0,0.13,0.117,0,0.195s-0.143,0.273-0.208,0.325c-0.064,0.052-0.026,0.117,0.078,0.104c0.104-0.013,0.194,0.013,0.286-0.013s0.143,0.026,0.168,0.065c0.026,0.039,0.104-0.039,0.104-0.039s0.169-0.039,0.221,0.026c0.053,0.064,0.092-0.039,0.053-0.104c-0.039-0.064-0.092-0.129-0.13-0.208c-0.039-0.078-0.091-0.104-0.194-0.078c-0.104,0.026-0.13-0.026-0.195-0.064c-0.065-0.04-0.118,0.052-0.065-0.04c0.053-0.09,0.078-0.117,0.117-0.195c0.039-0.078,0.209-0.221,0.039-0.259c-0.169-0.04-0.222-0.065-0.247-0.143c-0.026-0.078-0.221-0.221-0.272-0.221c-0.053,0-0.233,0-0.247-0.065c-0.013-0.065-0.143-0.208-0.208-0.273c-0.064-0.065-0.312-0.351-0.351-0.377c-0.039-0.026-0.091-0.013-0.208,0.143c-0.116,0.157-0.22,0.183-0.312,0.144c-0.091-0.039-0.104-0.026-0.193-0.13c-0.093-0.104,0.09-0.117,0.051-0.182c-0.04-0.064-0.247-0.091-0.377-0.104c-0.13-0.013-0.221-0.156-0.416-0.169c-0.194-0.013-0.428,0.026-0.493,0.026c-0.064,0-0.064,0.091-0.09,0.234c-0.027,0.143,0.09,0.182-0.027,0.208c-0.116,0.026-0.169,0.039-0.052,0.091c0.117,0.052,0.273,0.26,0.273,0.26s0,0.117-0.092,0.182c-0.09,0.065-0.182,0.13-0.233,0.053c-0.053-0.079-0.195-0.065-0.155,0.013c0.038,0.078,0.116,0.117,0.116,0.195c0,0.077,0.117,0.272,0.039,0.337c-0.078,0.065-0.168,0.014-0.233,0.026s-0.131-0.104-0.078-0.13c0.051-0.026-0.014-0.221-0.014-0.221s-0.155,0.221-0.143,0.104c0.014-0.117-0.064-0.13-0.064-0.221c0-0.091-0.079-0.13-0.194-0.104c-0.118,0.026-0.26-0.04-0.482-0.079c-0.22-0.039-0.311-0.064-0.493-0.156c-0.182-0.091-0.247-0.026-0.338-0.013c-0.091,0.013-0.052-0.182-0.169-0.207c-0.116-0.027-0.181,0.025-0.207-0.144c-0.026-0.168,0.039-0.208,0.324-0.39c0.286-0.182,0.247-0.26,0.468-0.286c0.22-0.026,0.325,0.026,0.325-0.039s0.052-0.325,0.052-0.195S16.95,9.109,16.832,9.2c-0.116,0.091-0.052,0.104,0.04,0.104c0.091,0,0.259-0.091,0.259-0.091s0.208-0.091,0.26-0.013c0.053,0.078,0.053,0.156,0.144,0.156s0.285-0.104,0.116-0.195c-0.168-0.091-0.272-0.078-0.376-0.182s-0.078-0.065-0.195-0.039c-0.116,0.026-0.116-0.039-0.156-0.039s-0.104,0.026-0.13-0.026c-0.025-0.052,0.014-0.065,0.145-0.065c0.129,0,0.285,0.039,0.285,0.039s0.155-0.052,0.194-0.065c0.039-0.013,0.247-0.039,0.208-0.155c-0.04-0.117-0.169-0.117-0.208-0.156s0.078-0.09,0.143-0.117c0.065-0.026,0.247,0,0.247,0s0.117,0.013,0.117-0.039S17.897,8.2,17.976,8.239s0,0.156,0.117,0.13c0.116-0.026,0.143,0,0.207,0.039c0.065,0.039-0.013,0.195-0.077,0.221c-0.065,0.025-0.169,0.077-0.026,0.09c0.144,0.014,0.246,0.014,0.246,0.014s0.092-0.091,0.131-0.169c0.038-0.078,0.104-0.026,0.155,0c0.052,0.025,0.247,0.065,0.065,0.117c-0.183,0.052-0.221,0.117-0.26,0.182c-0.038,0.065-0.053,0.104-0.221,0.065c-0.17-0.039-0.26-0.026-0.299,0.039c-0.039,0.064-0.013,0.273,0.053,0.247c0.063-0.026,0.129-0.026,0.207-0.052c0.078-0.026,0.39,0.026,0.467,0.013c0.078-0.013,0.209,0.13,0.248,0.104c0.039-0.026,0.117,0.052,0.194,0.104c0.078,0.052,0.052-0.117,0.194-0.013c0.144,0.104,0.065,0.104,0.144,0.104c0.076,0,0.246,0.013,0.246,0.013s0.014-0.129,0.144-0.104c0.13,0.026,0.245,0.169,0.232,0.064c-0.012-0.103,0.013-0.181-0.09-0.259c-0.104-0.078-0.272-0.13-0.299-0.169c-0.026-0.039-0.052-0.091-0.013-0.117c0.039-0.025,0.221,0.013,0.324,0.079c0.104,0.065,0.195,0.13,0.273,0.078c0.077-0.052,0.17-0.078,0.208-0.117c0.038-0.04,0.13-0.156,0.13-0.156s-0.391-0.051-0.441-0.117c-0.053-0.065-0.235-0.156-0.287-0.156s-0.194,0.091-0.246-0.039s-0.052-0.286-0.105-0.299c-0.05-0.013-0.597-0.091-0.674-0.13c-0.078-0.039-0.39-0.13-0.507-0.195s-0.286-0.156-0.389-0.156c-0.104,0-0.533,0.052-0.611,0.039c-0.078-0.013-0.312,0.026-0.403,0.039c-0.091,0.013,0.117,0.182-0.077,0.221c-0.195,0.039-0.169,0.065-0.13-0.13c0.038-0.195-0.131-0.247-0.299-0.169c-0.169,0.078-0.442,0.13-0.377,0.221c0.065,0.091-0.012,0.157,0.117,0.247c0.13,0.091,0.183,0.117,0.35,0.104c0.17-0.013,0.339,0.025,0.339,0.025s0,0.157-0.064,0.182c-0.065,0.026-0.169,0.026-0.196,0.104c-0.025,0.078-0.155,0.117-0.155,0.078s0.065-0.169-0.026-0.234c-0.09-0.065-0.117-0.078-0.221-0.013c-0.104,0.065-0.116,0.091-0.169-0.013C16.053,8.291,15.897,8.2,15.897,8.2s-0.104-0.129-0.182-0.194c-0.077-0.065-0.22-0.052-0.234,0.013c-0.013,0.064,0.026,0.129,0.078,0.247c0.052,0.117,0.104,0.337,0.013,0.351c-0.091,0.013-0.104,0.026-0.195,0.052c-0.091,0.026-0.13-0.039-0.13-0.143s-0.04-0.195-0.013-0.234c0.026-0.039-0.104,0.027-0.234,0c-0.13-0.025-0.233,0.052-0.104,0.092c0.13,0.039,0.157,0.194,0.039,0.233c-0.117,0.039-0.559,0-0.702,0s-0.35,0.039-0.39-0.039c-0.039-0.078,0.118-0.129,0.208-0.129c0.091,0,0.363,0.012,0.467-0.13c0.104-0.143-0.13-0.169-0.233-0.169c-0.104,0-0.183-0.039-0.299-0.155c-0.118-0.117,0.078-0.195,0.052-0.247c-0.026-0.052-0.156-0.014-0.272-0.014c-0.117,0-0.299-0.09-0.299,0.014c0,0.104,0.143,0.402,0.052,0.337c-0.091-0.064-0.078-0.156-0.143-0.234c-0.065-0.078-0.168-0.065-0.299-0.052c-0.129,0.013-0.35,0.052-0.415,0.039c-0.064-0.013-0.013-0.013-0.156-0.078c-0.142-0.065-0.208-0.052-0.312-0.117C12.091,7.576,12.182,7.551,12,7.538c-0.181-0.013-0.168,0.09-0.35,0.065c-0.182-0.026-0.234,0.013-0.416,0c-0.182-0.013-0.272-0.026-0.299,0.065c-0.025,0.091-0.078,0.247-0.156,0.247c-0.077,0-0.169,0.091,0.078,0.104c0.247,0.013,0.105,0.129,0.325,0.117c0.221-0.013,0.416-0.013,0.468-0.117c0.052-0.104,0.091-0.104,0.117-0.065c0.025,0.039,0.22,0.272,0.22,0.272s0.131,0.104,0.183,0.13c0.051,0.026-0.052,0.143-0.156,0.078c-0.104-0.065-0.299-0.051-0.377-0.116c-0.078-0.065-0.429-0.065-0.52-0.052c-0.09,0.013-0.247-0.039-0.299-0.039c-0.051,0-0.221,0.13-0.221,0.13S10.532,8.252,10.494,8.2c-0.039-0.052-0.104,0.052-0.156,0.065c-0.052,0.013-0.208-0.104-0.364-0.052C9.818,8.265,9.87,8.317,9.649,8.304s-0.272-0.052-0.35-0.039C9.22,8.278,9.22,8.278,9.22,8.278S9.233,8.33,9.143,8.382C9.052,8.434,8.986,8.499,8.921,8.421C8.857,8.343,8.818,8.343,8.779,8.33c-0.04-0.013-0.118-0.078-0.286-0.04C8.324,8.33,8.064,8.239,8.013,8.239c-0.04,0-0.313-0.015-0.491-0.033c2.109-2.292,5.124-3.74,8.478-3.74c2.128,0,4.117,0.589,5.83,1.598c-0.117,0.072-0.319,0.06-0.388,0.023c-0.078-0.043-0.158-0.078-0.475-0.061c-0.317,0.018-0.665,0.122-0.595,0.226c0.072,0.104-0.142,0.165-0.197,0.113c-0.055-0.052-0.309,0.06-0.293,0.165c0.016,0.104-0.039,0.225-0.175,0.199c-0.134-0.027-0.229,0.06-0.237,0.146c-0.007,0.087-0.309,0.147-0.332,0.147c-0.024,0-0.412-0.008-0.27,0.095c0.097,0.069,0.15,0.027,0.27,0.052c0.119,0.026,0.214,0.217,0.277,0.243c0.062,0.026,0.15,0,0.189-0.052c0.04-0.052,0.095-0.234,0.095-0.234s0,0.173,0.097,0.208c0.095,0.035,0.331-0.026,0.395-0.017c0.064,0.008,0.437,0.061,0.538,0.112c0.104,0.052,0.356,0.087,0.428,0.199c0.071,0.113,0.08,0.503,0.119,0.546c0.04,0.043,0.174-0.139,0.205-0.182c0.031-0.044,0.198-0.018,0.254,0.042c0.056,0.061,0.182,0.208,0.175,0.269C21.9,8.365,21.877,8.459,21.83,8.425c-0.048-0.034-0.127-0.025-0.096-0.095c0.032-0.069,0.048-0.217-0.015-0.217c-0.064,0-0.119,0-0.119,0s-0.12-0.035-0.199,0.095s-0.015,0.26,0.04,0.26s0.184,0,0.184,0.034c0,0.035-0.136,0.139-0.128,0.2c0.009,0.061,0.11,0.268,0.144,0.312c0.031,0.043,0.197,0.086,0.244,0.096c0.049,0.008-0.111,0.017-0.07,0.077c0.04,0.061,0.102,0.208,0.189,0.243c0.087,0.035,0.333,0.19,0.363,0.26c0.032,0.069,0.222-0.052,0.262-0.061c0.04-0.008,0.032,0.182,0.143,0.191c0.11,0.008,0.15-0.018,0.245-0.096s0.072-0.182,0.079-0.26c0.009-0.078,0-0.138,0.104-0.113c0.104,0.026,0.158-0.018,0.15-0.104c-0.008-0.087-0.095-0.191,0.07-0.217c0.167-0.026,0.254-0.138,0.357-0.138c0.103,0,0.389,0.043,0.419,0c0.032-0.043,0.167-0.243,0.254-0.251c0.067-0.007,0.224-0.021,0.385-0.042c1.582,1.885,2.561,4.284,2.673,6.905c-0.118,0.159-0.012,0.305,0.021,0.408c0.001,0.03,0.005,0.058,0.005,0.088c0,0.136-0.016,0.269-0.021,0.404C27.512,16.406,27.512,16.408,27.51,16.41zM17.794,12.084c-0.064,0.013-0.169-0.052-0.169-0.143s-0.091,0.169-0.04,0.247c0.053,0.078-0.104,0.169-0.155,0.169s-0.091-0.116-0.078-0.233c0.014-0.117-0.077-0.221-0.221-0.208c-0.143,0.014-0.208,0.13-0.259,0.169c-0.053,0.039-0.053,0.259-0.04,0.312s0.013,0.235-0.116,0.221c-0.118-0.013-0.092-0.233-0.079-0.312c0.014-0.078-0.039-0.273,0.014-0.376c0.053-0.104,0.207-0.143,0.312-0.156s0.324,0.065,0.363,0.052c0.04-0.014,0.222-0.014,0.312,0C17.729,11.837,17.858,12.071,17.794,12.084zM18.027,12.123c0.04,0.026,0.311-0.039,0.364,0.026c0.051,0.065-0.054,0.078-0.183,0.13c-0.129,0.052-0.169,0.039-0.221,0.104s-0.221,0.09-0.299,0.168c-0.078,0.079-0.217,0.125-0.246,0.065c-0.04-0.078,0.013-0.039,0.025-0.078c0.013-0.039,0.245-0.129,0.245-0.129S17.988,12.097,18.027,12.123zM16.988,11.668c-0.038,0.013-0.182-0.026-0.3-0.026c-0.116,0-0.091-0.078-0.143-0.064c-0.051,0.013-0.168,0.039-0.247,0.078c-0.078,0.039-0.208,0.03-0.208-0.04c0-0.104,0.052-0.078,0.221-0.143c0.169-0.065,0.352-0.247,0.429-0.169c0.078,0.078,0.221,0.169,0.312,0.182C17.144,11.5,17.026,11.655,16.988,11.668zM15.659,7.637c-0.079,0.026-0.347,0.139-0.321,0.199c0.01,0.023,0.078,0.069,0.19,0.052c0.113-0.018,0.276-0.035,0.355-0.043c0.078-0.009,0.095-0.139,0.009-0.147C15.805,7.689,15.736,7.611,15.659,7.637zM14.698,7.741c-0.061,0.026-0.243-0.043-0.338,0.018c-0.061,0.038-0.026,0.164,0.07,0.172c0.095,0.009,0.259-0.06,0.276-0.008c0.018,0.052,0.078,0.286,0.234,0.208c0.156-0.078,0.147-0.147,0.19-0.156c0.043-0.009-0.008-0.199-0.078-0.243C14.983,7.689,14.758,7.715,14.698,7.741zM14.385,7.005c0.017,0.044-0.008,0.078,0.113,0.095c0.121,0.018,0.173,0.035,0.243,0.035c0.069,0,0.042-0.113-0.018-0.19c-0.061-0.078-0.043-0.069-0.199-0.113c-0.156-0.043-0.312-0.043-0.416-0.035c-0.104,0.009-0.217-0.017-0.243,0.104c-0.013,0.062,0.07,0.112,0.174,0.112S14.368,6.962,14.385,7.005zM14.611,7.481c0.043,0.095,0.043,0.051,0.165,0.061C14.896,7.551,14.991,7.421,15,7.378c0.009-0.044-0.061-0.13-0.225-0.113c-0.165,0.017-0.667-0.026-0.736,0.034c-0.066,0.058,0,0.233-0.026,0.251c-0.026,0.017,0.009,0.095,0.077,0.078c0.069-0.017,0.104-0.182,0.157-0.182C14.299,7.447,14.568,7.386,14.611,7.481zM12.982,7.126c0.052,0.043,0.183,0.008,0.173-0.035c-0.008-0.043,0.053-0.217-0.051-0.225C13,6.858,12.854,6.962,12.697,7.014c-0.101,0.033-0.078,0.13-0.009,0.13S12.931,7.083,12.982,7.126zM13.72,7.282c-0.087,0.043-0.114,0.069-0.191,0.052c-0.078-0.017-0.078-0.156-0.217-0.13c-0.138,0.026-0.164,0.104-0.207,0.139s-0.139,0.061-0.173,0.043c-0.034-0.017-0.234-0.129-0.234-0.129s-0.416-0.018-0.433-0.07c-0.017-0.052-0.086-0.138-0.277-0.121s-0.52,0.13-0.572,0.13c-0.052,0,0.062,0.104-0.009,0.104c-0.069,0-0.155-0.008-0.181,0.069c-0.018,0.053,0.078,0.052,0.189,0.052c0.112,0,0.295,0,0.347-0.026c0.052-0.026,0.312-0.087,0.303-0.009c-0.009,0.079,0.104,0.199,0.164,0.182c0.061-0.017,0.183-0.13,0.243-0.086c0.061,0.043,0.07,0.146,0.13,0.173c0.061,0.025,0.226,0.025,0.304,0c0.077-0.027,0.294-0.027,0.389-0.009c0.095,0.018,0.373,0.069,0.399,0.018c0.026-0.053,0.104-0.061,0.112-0.113s0.051-0.216,0.051-0.216S13.806,7.239,13.72,7.282zM18.105,16.239c-0.119,0.021-0.091,0.252,0.052,0.21C18.3,16.407,18.223,16.217,18.105,16.239zM19.235,15.929c-0.104-0.026-0.221,0-0.299,0.013c-0.078,0.013-0.299,0.208-0.299,0.208s0.143,0.026,0.233,0.026c0.092,0,0.144,0.051,0.221,0.09c0.078,0.04,0.221-0.052,0.272-0.052c0.053,0,0.118,0.156,0.131-0.013C19.508,16.032,19.339,15.955,19.235,15.929zM15.616,7.507c-0.043-0.104-0.259-0.139-0.304-0.035C15.274,7.563,15.659,7.611,15.616,7.507zM18.093,15.292c0.143-0.026,0.064-0.144-0.053-0.13C17.922,15.175,17.949,15.318,18.093,15.292zM19.82,16.095c-0.119,0.022-0.092,0.253,0.051,0.211C20.015,16.264,19.937,16.074,19.82,16.095zM18.247,15.708c-0.09,0.013-0.285-0.09-0.389-0.182c-0.104-0.091-0.299-0.091-0.377-0.091c-0.077,0-0.39,0.091-0.39,0.091c-0.013,0.13,0.117,0.091,0.273,0.091s0.429-0.026,0.479,0.039c0.053,0.064,0.286,0.168,0.352,0.221c0.064,0.052,0.272,0.065,0.285,0.013S18.338,15.695,18.247,15.708zM16.698,7.412c-0.13-0.009-0.295-0.009-0.399,0c-0.104,0.008-0.182-0.069-0.26-0.113c-0.077-0.043-0.251-0.182-0.354-0.199c-0.104-0.017-0.086-0.017-0.303-0.069c-0.11-0.027-0.294-0.061-0.294-0.086c0-0.026-0.052,0.121,0.043,0.165c0.095,0.043,0.251,0.121,0.363,0.164c0.114,0.043,0.329,0.052,0.399,0.139c0.069,0.086,0.303,0.156,0.303,0.156l0.277,0.026c0,0,0.191-0.043,0.39-0.026c0.199,0.017,0.493,0.043,0.659,0.035c0.163-0.008,0.189-0.061,0.208-0.095c0.016-0.035-0.304-0.104-0.383-0.095C17.271,7.42,16.827,7.42,16.698,7.412zM17.182,9.404c-0.034,0.039,0.157,0.095,0.191,0.043C17.407,9.396,17.271,9.309,17.182,9.404zM17.764,9.585c0.086-0.035,0.043-0.139-0.079-0.104C17.547,9.521,17.676,9.62,17.764,9.585z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Globe\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Globe();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/GlobeAlt.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/GlobeAlt.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.GlobeAlt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.GlobeAlt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM27.436,17.39c0.001,0.002,0.004,0.002,0.005,0.004c-0.022,0.187-0.054,0.37-0.085,0.554c-0.015-0.012-0.034-0.025-0.047-0.036c-0.103-0.09-0.254-0.128-0.318-0.115c-0.157,0.032,0.229,0.305,0.267,0.342c0.009,0.009,0.031,0.03,0.062,0.058c-1.029,5.312-5.709,9.338-11.319,9.338c-4.123,0-7.736-2.18-9.776-5.441c0.123-0.016,0.24-0.016,0.28-0.076c0.051-0.077,0.102-0.241,0.178-0.331c0.077-0.089,0.165-0.229,0.127-0.292c-0.039-0.064,0.101-0.344,0.088-0.419c-0.013-0.076-0.127-0.256,0.064-0.407s0.394-0.382,0.407-0.444c0.012-0.063,0.166-0.331,0.152-0.458c-0.012-0.127-0.152-0.28-0.24-0.318c-0.09-0.037-0.28-0.05-0.356-0.151c-0.077-0.103-0.292-0.203-0.368-0.178c-0.076,0.025-0.204,0.05-0.305-0.015c-0.102-0.062-0.267-0.139-0.33-0.189c-0.065-0.05-0.229-0.088-0.305-0.088c-0.077,0-0.065-0.052-0.178,0.101c-0.114,0.153,0,0.204-0.204,0.177c-0.204-0.023,0.025-0.036,0.141-0.189c0.113-0.152-0.013-0.242-0.141-0.203c-0.126,0.038-0.038,0.115-0.241,0.153c-0.203,0.036-0.203-0.09-0.076-0.115s0.355-0.139,0.355-0.19c0-0.051-0.025-0.191-0.127-0.191s-0.077-0.126-0.229-0.291c-0.092-0.101-0.196-0.164-0.299-0.204c-0.09-0.579-0.15-1.167-0.15-1.771c0-2.844,1.039-5.446,2.751-7.458c0.024-0.02,0.048-0.034,0.069-0.036c0.084-0.009,0.31-0.025,0.51-0.059c0.202-0.034,0.418-0.161,0.489-0.153c0.069,0.008,0.241,0.008,0.186-0.042C8.417,8.2,8.339,8.082,8.223,8.082S8.215,7.896,8.246,7.896c0.03,0,0.186,0.025,0.178,0.11C8.417,8.091,8.471,8.2,8.625,8.167c0.156-0.034,0.132-0.162,0.102-0.195C8.695,7.938,8.672,7.853,8.642,7.794c-0.031-0.06-0.023-0.136,0.14-0.153C8.944,7.625,9.168,7.708,9.16,7.573s0-0.28,0.046-0.356C9.253,7.142,9.354,7.09,9.299,7.065C9.246,7.04,9.176,7.099,9.121,6.972c-0.054-0.127,0.047-0.22,0.108-0.271c0.02-0.015,0.067-0.06,0.124-0.112C11.234,5.257,13.524,4.466,16,4.466c3.213,0,6.122,1.323,8.214,3.45c-0.008,0.022-0.01,0.052-0.031,0.056c-0.077,0.013-0.166,0.063-0.179-0.051c-0.013-0.114-0.013-0.331-0.102-0.203c-0.089,0.127-0.127,0.127-0.127,0.191c0,0.063,0.076,0.127,0.051,0.241C23.8,8.264,23.8,8.341,23.84,8.341c0.036,0,0.126-0.115,0.239-0.141c0.116-0.025,0.319-0.088,0.332,0.026c0.013,0.115,0.139,0.152,0.013,0.203c-0.128,0.051-0.267,0.026-0.293-0.051c-0.025-0.077-0.114-0.077-0.203-0.013c-0.088,0.063-0.279,0.292-0.279,0.292s-0.306,0.139-0.343,0.114c-0.04-0.025,0.101-0.165,0.203-0.228c0.102-0.064,0.178-0.204,0.14-0.242c-0.038-0.038-0.088-0.279-0.063-0.343c0.025-0.063,0.139-0.152,0.013-0.216c-0.127-0.063-0.217-0.14-0.318-0.178s-0.216,0.152-0.305,0.204c-0.089,0.051-0.076,0.114-0.191,0.127c-0.114,0.013-0.189,0.165,0,0.254c0.191,0.089,0.255,0.152,0.204,0.204c-0.051,0.051-0.267-0.025-0.267-0.025s-0.165-0.076-0.268-0.076c-0.101,0-0.229-0.063-0.33-0.076c-0.102-0.013-0.306-0.013-0.355,0.038c-0.051,0.051-0.179,0.203-0.28,0.152c-0.101-0.051-0.101-0.102-0.241-0.051c-0.14,0.051-0.279-0.038-0.355,0.038c-0.077,0.076-0.013,0.076-0.255,0c-0.241-0.076-0.189,0.051-0.419,0.089s-0.368-0.038-0.432,0.038c-0.064,0.077-0.153,0.217-0.19,0.127c-0.038-0.088,0.126-0.241,0.062-0.292c-0.062-0.051-0.33-0.025-0.367,0.013c-0.039,0.038-0.014,0.178,0.011,0.229c0.026,0.05,0.064,0.254-0.011,0.216c-0.077-0.038-0.064-0.166-0.141-0.152c-0.076,0.013-0.165,0.051-0.203,0.077c-0.038,0.025-0.191,0.025-0.229,0.076c-0.037,0.051,0.014,0.191-0.051,0.203c-0.063,0.013-0.114,0.064-0.254-0.025c-0.14-0.089-0.14-0.038-0.178-0.012c-0.038,0.025-0.216,0.127-0.229,0.012c-0.013-0.114,0.025-0.152-0.089-0.229c-0.115-0.076-0.026-0.076,0.127-0.025c0.152,0.05,0.343,0.075,0.622-0.013c0.28-0.089,0.395-0.127,0.28-0.178c-0.115-0.05-0.229-0.101-0.406-0.127c-0.179-0.025-0.42-0.025-0.7-0.127c-0.279-0.102-0.343-0.14-0.457-0.165c-0.115-0.026-0.813-0.14-1.132-0.089c-0.317,0.051-1.193,0.28-1.245,0.318s-0.128,0.19-0.292,0.318c-0.165,0.127-0.47,0.419-0.712,0.47c-0.241,0.051-0.521,0.254-0.521,0.305c0,0.051,0.101,0.242,0.076,0.28c-0.025,0.038,0.05,0.229,0.191,0.28c0.139,0.05,0.381,0.038,0.393-0.039c0.014-0.076,0.204-0.241,0.217-0.127c0.013,0.115,0.14,0.292,0.114,0.368c-0.025,0.077,0,0.153,0.09,0.14c0.088-0.012,0.559-0.114,0.559-0.114s0.153-0.064,0.127-0.166c-0.026-0.101,0.166-0.241,0.203-0.279c0.038-0.038,0.178-0.191,0.014-0.241c-0.167-0.051-0.293-0.064-0.115-0.216s0.292,0,0.521-0.229c0.229-0.229-0.051-0.292,0.191-0.305c0.241-0.013,0.496-0.025,0.444,0.051c-0.05,0.076-0.342,0.242-0.508,0.318c-0.166,0.077-0.14,0.216-0.076,0.292c0.063,0.076,0.09,0.254,0.204,0.229c0.113-0.025,0.254-0.114,0.38-0.101c0.128,0.012,0.383-0.013,0.42-0.013c0.039,0,0.216,0.178,0.114,0.203c-0.101,0.025-0.229,0.013-0.445,0.025c-0.215,0.013-0.456,0.013-0.456,0.051c0,0.039,0.292,0.127,0.19,0.191c-0.102,0.063-0.203-0.013-0.331-0.026c-0.127-0.012-0.203,0.166-0.241,0.267c-0.039,0.102,0.063,0.28-0.127,0.216c-0.191-0.063-0.331-0.063-0.381-0.038c-0.051,0.025-0.203,0.076-0.331,0.114c-0.126,0.038-0.076-0.063-0.242-0.063c-0.164,0-0.164,0-0.164,0l-0.103,0.013c0,0-0.101-0.063-0.114-0.165c-0.013-0.102,0.05-0.216-0.013-0.241c-0.064-0.026-0.292,0.012-0.33,0.088c-0.038,0.076-0.077,0.216-0.026,0.28c0.052,0.063,0.204,0.19,0.064,0.152c-0.14-0.038-0.317-0.051-0.419,0.026c-0.101,0.076-0.279,0.241-0.279,0.241s-0.318,0.025-0.318,0.102c0,0.077,0,0.178-0.114,0.191c-0.115,0.013-0.268,0.05-0.42,0.076c-0.153,0.025-0.139,0.088-0.317,0.102s-0.204,0.089-0.038,0.114c0.165,0.025,0.418,0.127,0.431,0.241c0.014,0.114-0.013,0.242-0.076,0.356c-0.043,0.079-0.305,0.026-0.458,0.026c-0.152,0-0.456-0.051-0.584,0c-0.127,0.051-0.102,0.305-0.064,0.419c0.039,0.114-0.012,0.178-0.063,0.216c-0.051,0.038-0.065,0.152,0,0.204c0.063,0.051,0.114,0.165,0.166,0.178c0.051,0.013,0.215-0.038,0.279,0.025c0.064,0.064,0.127,0.216,0.165,0.178c0.039-0.038,0.089-0.203,0.153-0.166c0.064,0.039,0.216-0.012,0.331-0.025s0.177-0.14,0.292-0.204c0.114-0.063,0.05-0.063,0.013-0.14c-0.038-0.076,0.114-0.165,0.204-0.254c0.088-0.089,0.253-0.013,0.292-0.115c0.038-0.102,0.051-0.279,0.151-0.267c0.103,0.013,0.243,0.076,0.331,0.076c0.089,0,0.279-0.14,0.332-0.165c0.05-0.025,0.241-0.013,0.267,0.102c0.025,0.114,0.241,0.254,0.292,0.279c0.051,0.025,0.381,0.127,0.433,0.165c0.05,0.038,0.126,0.153,0.152,0.254c0.025,0.102,0.114,0.102,0.128,0.013c0.012-0.089-0.065-0.254,0.025-0.242c0.088,0.013,0.191-0.026,0.191-0.026s-0.243-0.165-0.331-0.203c-0.088-0.038-0.255-0.114-0.331-0.241c-0.076-0.127-0.267-0.153-0.254-0.279c0.013-0.127,0.191-0.051,0.292,0.051c0.102,0.102,0.356,0.241,0.445,0.33c0.088,0.089,0.229,0.127,0.267,0.242c0.039,0.114,0.152,0.241,0.19,0.292c0.038,0.051,0.165,0.331,0.204,0.394c0.038,0.063,0.165-0.012,0.229-0.063c0.063-0.051,0.179-0.076,0.191-0.178c0.013-0.102-0.153-0.178-0.203-0.216c-0.051-0.038,0.127-0.076,0.191-0.127c0.063-0.05,0.177-0.14,0.228-0.063c0.051,0.077,0.026,0.381,0.051,0.432c0.025,0.051,0.279,0.127,0.331,0.191c0.05,0.063,0.267,0.089,0.304,0.051c0.039-0.038,0.242,0.026,0.294,0.038c0.049,0.013,0.202-0.025,0.304-0.05c0.103-0.025,0.204-0.102,0.191,0.063c-0.013,0.165-0.051,0.419-0.179,0.546c-0.127,0.127-0.076,0.191-0.202,0.191c-0.06,0-0.113,0-0.156,0.021c-0.041-0.065-0.098-0.117-0.175-0.097c-0.152,0.038-0.344,0.038-0.47,0.19c-0.128,0.153-0.178,0.165-0.204,0.114c-0.025-0.051,0.369-0.267,0.317-0.331c-0.05-0.063-0.355-0.038-0.521-0.038c-0.166,0-0.305-0.102-0.433-0.127c-0.126-0.025-0.292,0.127-0.418,0.254c-0.128,0.127-0.216,0.038-0.331,0.038c-0.115,0-0.331-0.165-0.331-0.165s-0.216-0.089-0.305-0.089c-0.088,0-0.267-0.165-0.318-0.165c-0.05,0-0.19-0.115-0.088-0.166c0.101-0.05,0.202,0.051,0.101-0.229c-0.101-0.279-0.33-0.216-0.419-0.178c-0.088,0.039-0.724,0.025-0.775,0.025c-0.051,0-0.419,0.127-0.533,0.178c-0.116,0.051-0.318,0.115-0.369,0.14c-0.051,0.025-0.318-0.051-0.433,0.013c-0.151,0.084-0.291,0.216-0.33,0.216c-0.038,0-0.153,0.089-0.229,0.28c-0.077,0.19,0.013,0.355-0.128,0.419c-0.139,0.063-0.394,0.204-0.495,0.305c-0.102,0.101-0.229,0.458-0.355,0.623c-0.127,0.165,0,0.317,0.025,0.419c0.025,0.101,0.114,0.292-0.025,0.471c-0.14,0.178-0.127,0.266-0.191,0.279c-0.063,0.013,0.063,0.063,0.088,0.19c0.025,0.128-0.114,0.255,0.128,0.369c0.241,0.113,0.355,0.217,0.418,0.367c0.064,0.153,0.382,0.407,0.382,0.407s0.229,0.205,0.344,0.293c0.114,0.089,0.152,0.038,0.177-0.05c0.025-0.09,0.178-0.104,0.355-0.104c0.178,0,0.305,0.04,0.483,0.014c0.178-0.025,0.356-0.141,0.42-0.166c0.063-0.025,0.279-0.164,0.443-0.063c0.166,0.103,0.141,0.241,0.23,0.332c0.088,0.088,0.24,0.037,0.355-0.051c0.114-0.09,0.064-0.052,0.203,0.025c0.14,0.075,0.204,0.151,0.077,0.267c-0.128,0.113-0.051,0.293-0.128,0.47c-0.076,0.178-0.063,0.203,0.077,0.278c0.14,0.076,0.394,0.548,0.47,0.638c0.077,0.088-0.025,0.342,0.064,0.495c0.089,0.151,0.178,0.254,0.077,0.331c-0.103,0.075-0.28,0.216-0.292,0.47s0.051,0.431,0.102,0.521s0.177,0.331,0.241,0.419c0.064,0.089,0.14,0.305,0.152,0.445c0.013,0.14-0.024,0.306,0.039,0.381c0.064,0.076,0.102,0.191,0.216,0.292c0.115,0.103,0.152,0.318,0.152,0.318s0.039,0.089,0.051,0.229c0.012,0.14,0.025,0.228,0.152,0.292c0.126,0.063,0.215,0.076,0.28,0.013c0.063-0.063,0.381-0.077,0.546-0.063c0.165,0.013,0.355-0.075,0.521-0.19s0.407-0.419,0.496-0.508c0.089-0.09,0.292-0.255,0.268-0.356c-0.025-0.101-0.077-0.203,0.024-0.254c0.102-0.052,0.344-0.152,0.356-0.229c0.013-0.077-0.09-0.395-0.115-0.457c-0.024-0.064,0.064-0.18,0.165-0.306c0.103-0.128,0.421-0.216,0.471-0.267c0.051-0.053,0.191-0.267,0.217-0.433c0.024-0.167-0.051-0.369,0-0.457c0.05-0.09,0.013-0.165-0.103-0.268c-0.114-0.102-0.089-0.407-0.127-0.457c-0.037-0.051-0.013-0.319,0.063-0.345c0.076-0.023,0.242-0.279,0.344-0.393c0.102-0.114,0.394-0.47,0.534-0.496c0.139-0.025,0.355-0.229,0.368-0.343c0.013-0.115,0.38-0.547,0.394-0.635c0.013-0.09,0.166-0.42,0.102-0.497c-0.062-0.076-0.559,0.115-0.622,0.141c-0.064,0.025-0.241,0.127-0.446,0.113c-0.202-0.013-0.114-0.177-0.127-0.254c-0.012-0.076-0.228-0.368-0.279-0.381c-0.051-0.012-0.203-0.166-0.267-0.317c-0.063-0.153-0.152-0.343-0.254-0.458c-0.102-0.114-0.165-0.38-0.268-0.559c-0.101-0.178-0.189-0.407-0.279-0.572c-0.021-0.041-0.045-0.079-0.067-0.117c0.118-0.029,0.289-0.082,0.31-0.009c0.024,0.088,0.165,0.279,0.19,0.419s0.165,0.089,0.178,0.216c0.014,0.128,0.14,0.433,0.19,0.47c0.052,0.038,0.28,0.242,0.318,0.318c0.038,0.076,0.089,0.178,0.127,0.369c0.038,0.19,0.076,0.444,0.179,0.482c0.102,0.038,0.444-0.064,0.508-0.102s0.482-0.242,0.635-0.255c0.153-0.012,0.179-0.115,0.368-0.152c0.191-0.038,0.331-0.177,0.458-0.28c0.127-0.101,0.28-0.355,0.33-0.444c0.052-0.088,0.179-0.152,0.115-0.253c-0.063-0.103-0.331-0.254-0.433-0.268c-0.102-0.012-0.089-0.178-0.152-0.178s-0.051,0.088-0.178,0.153c-0.127,0.063-0.255,0.19-0.344,0.165s0.026-0.089-0.113-0.203s-0.192-0.14-0.192-0.228c0-0.089-0.278-0.255-0.304-0.382c-0.026-0.127,0.19-0.305,0.254-0.19c0.063,0.114,0.115,0.292,0.279,0.368c0.165,0.076,0.318,0.204,0.395,0.229c0.076,0.025,0.267-0.14,0.33-0.114c0.063,0.024,0.191,0.253,0.306,0.292c0.113,0.038,0.495,0.051,0.559,0.051s0.33,0.013,0.381-0.063c0.051-0.076,0.089-0.076,0.153-0.076c0.062,0,0.177,0.229,0.267,0.254c0.089,0.025,0.254,0.013,0.241,0.179c-0.012,0.164,0.076,0.305,0.165,0.317c0.09,0.012,0.293-0.191,0.293-0.191s0,0.318-0.012,0.433c-0.014,0.113,0.139,0.534,0.139,0.534s0.19,0.393,0.241,0.482s0.267,0.355,0.267,0.47c0,0.115,0.025,0.293,0.103,0.293c0.076,0,0.152-0.203,0.24-0.331c0.091-0.126,0.116-0.305,0.153-0.432c0.038-0.127,0.038-0.356,0.038-0.444c0-0.09,0.075-0.166,0.255-0.242c0.178-0.076,0.304-0.292,0.456-0.407c0.153-0.115,0.141-0.305,0.446-0.305c0.305,0,0.278,0,0.355-0.077c0.076-0.076,0.151-0.127,0.19,0.013c0.038,0.14,0.254,0.343,0.292,0.394c0.038,0.052,0.114,0.191,0.103,0.344c-0.013,0.152,0.012,0.33,0.075,0.33s0.191-0.216,0.191-0.216s0.279-0.189,0.267,0.013c-0.014,0.203,0.025,0.419,0.025,0.545c0,0.053,0.042,0.135,0.088,0.21c-0.005,0.059-0.004,0.119-0.009,0.178C27.388,17.153,27.387,17.327,27.436,17.39zM20.382,12.064c0.076,0.05,0.102,0.127,0.152,0.203c0.052,0.076,0.14,0.05,0.203,0.114c0.063,0.064-0.178,0.14-0.075,0.216c0.101,0.077,0.151,0.381,0.165,0.458c0.013,0.076-0.279,0.114-0.369,0.102c-0.089-0.013-0.354-0.102-0.445-0.127c-0.089-0.026-0.139-0.343-0.025-0.331c0.116,0.013,0.141-0.025,0.267-0.139c0.128-0.115-0.189-0.166-0.278-0.191c-0.089-0.025-0.268-0.305-0.331-0.394c-0.062-0.089-0.014-0.228,0.141-0.331c0.076-0.051,0.279,0.063,0.381,0c0.101-0.063,0.203-0.14,0.241-0.165c0.039-0.025,0.293,0.038,0.33,0.114c0.039,0.076,0.191,0.191,0.141,0.229c-0.052,0.038-0.281,0.076-0.356,0c-0.075-0.077-0.255,0.012-0.268,0.152C20.242,12.115,20.307,12.013,20.382,12.064zM16.875,12.28c-0.077-0.025,0.025-0.178,0.102-0.229c0.075-0.051,0.164-0.178,0.241-0.305c0.076-0.127,0.178-0.14,0.241-0.127c0.063,0.013,0.203,0.241,0.241,0.318c0.038,0.076,0.165-0.026,0.217-0.051c0.05-0.025,0.127-0.102,0.14-0.165s0.127-0.102,0.254-0.102s0.013,0.102-0.076,0.127c-0.09,0.025-0.038,0.077,0.113,0.127c0.153,0.051,0.293,0.191,0.459,0.279c0.165,0.089,0.19,0.267,0.088,0.292c-0.101,0.025-0.406,0.051-0.521,0.038c-0.114-0.013-0.254-0.127-0.419-0.153c-0.165-0.025-0.369-0.013-0.433,0.077s-0.292,0.05-0.395,0.05c-0.102,0-0.228,0.127-0.253,0.077C16.875,12.534,16.951,12.306,16.875,12.28zM17.307,9.458c0.063-0.178,0.419,0.038,0.355,0.127C17.599,9.675,17.264,9.579,17.307,9.458zM17.802,18.584c0.063,0.102-0.14,0.431-0.254,0.407c-0.113-0.027-0.076-0.318-0.038-0.382C17.548,18.545,17.769,18.529,17.802,18.584zM13.189,12.674c0.025-0.051-0.039-0.153-0.127-0.013C13.032,12.71,13.164,12.725,13.189,12.674zM20.813,8.035c0.141,0.076,0.339,0.107,0.433,0.013c0.076-0.076,0.013-0.204-0.05-0.216c-0.064-0.013-0.104-0.115,0.062-0.203c0.165-0.089,0.343-0.204,0.534-0.229c0.19-0.025,0.622-0.038,0.774,0c0.152,0.039,0.382-0.166,0.445-0.254s-0.203-0.152-0.279-0.051c-0.077,0.102-0.444,0.076-0.521,0.051c-0.076-0.025-0.686,0.102-0.812,0.102c-0.128,0-0.179,0.152-0.356,0.229c-0.179,0.076-0.42,0.191-0.509,0.229c-0.088,0.038-0.177,0.19-0.101,0.216C20.509,7.947,20.674,7.959,20.813,8.035zM14.142,12.674c0.064-0.089-0.051-0.217-0.114-0.217c-0.12,0-0.178,0.191-0.103,0.254C14.002,12.776,14.078,12.763,14.142,12.674zM14.714,13.017c0.064,0.025,0.114,0.102,0.165,0.114c0.052,0.013,0.217,0,0.167-0.127s-0.167-0.127-0.204-0.127c-0.038,0-0.203-0.038-0.267,0C14.528,12.905,14.65,12.992,14.714,13.017zM11.308,10.958c0.101,0.013,0.217-0.063,0.305-0.101c0.088-0.038,0.216-0.114,0.216-0.229c0-0.114-0.025-0.216-0.077-0.267c-0.051-0.051-0.14-0.064-0.216-0.051c-0.115,0.02-0.127,0.14-0.203,0.14c-0.076,0-0.165,0.025-0.14,0.114s0.077,0.152,0,0.19C11.117,10.793,11.205,10.946,11.308,10.958zM11.931,10.412c0.127,0.051,0.394,0.102,0.292,0.153c-0.102,0.051-0.28,0.19-0.305,0.267s0.216,0.153,0.216,0.153s-0.077,0.089-0.013,0.114c0.063,0.025,0.102-0.089,0.203-0.089c0.101,0,0.304,0.063,0.406,0.063c0.103,0,0.267-0.14,0.254-0.229c-0.013-0.089-0.14-0.229-0.254-0.28c-0.113-0.051-0.241-0.28-0.317-0.331c-0.076-0.051,0.076-0.178-0.013-0.267c-0.09-0.089-0.153-0.076-0.255-0.14c-0.102-0.063-0.191,0.013-0.254,0.089c-0.063,0.076-0.14-0.013-0.217,0.012c-0.102,0.035-0.063,0.166-0.012,0.229C11.714,10.221,11.804,10.361,11.931,10.412zM24.729,17.198c-0.083,0.037-0.153,0.47,0,0.521c0.152,0.052,0.241-0.202,0.191-0.267C24.868,17.39,24.843,17.147,24.729,17.198zM20.114,20.464c-0.159-0.045-0.177,0.166-0.304,0.306c-0.128,0.141-0.267,0.254-0.317,0.241c-0.052-0.013-0.331,0.089-0.242,0.279c0.089,0.191,0.076,0.382-0.013,0.472c-0.089,0.088,0.076,0.342,0.052,0.482c-0.026,0.139,0.037,0.229,0.215,0.229s0.242-0.064,0.318-0.229c0.076-0.166,0.088-0.331,0.164-0.47c0.077-0.141,0.141-0.434,0.179-0.51c0.038-0.075,0.114-0.316,0.102-0.457C20.254,20.669,20.204,20.489,20.114,20.464zM10.391,8.802c-0.069-0.06-0.229-0.102-0.306-0.11c-0.076-0.008-0.152,0.06-0.321,0.06c-0.168,0-0.279,0.067-0.347,0C9.349,8.684,9.068,8.65,9.042,8.692C9.008,8.749,8.941,8.751,9.008,8.87c0.069,0.118,0.12,0.186,0.179,0.178s0.262-0.017,0.288,0.051C9.5,9.167,9.569,9.226,9.712,9.184c0.145-0.042,0.263-0.068,0.296-0.119c0.033-0.051,0.263-0.059,0.263-0.059S10.458,8.861,10.391,8.802z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.GlobeAlt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.GlobeAlt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/GlobeAlt2.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/GlobeAlt2.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.GlobeAlt2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.GlobeAlt2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM8.251,7.48c0.122,0.055,0.255,0.104,0.28,0.137C8.57,7.668,8.621,7.823,8.557,7.861C8.492,7.9,8.39,7.887,8.376,7.771c-0.013-0.115-0.026-0.128-0.18-0.18c-0.022-0.007-0.035-0.01-0.051-0.015C8.18,7.544,8.216,7.512,8.251,7.48zM7.733,7.974c0.031,0.087,0.113,0.125,0,0.17C7.673,8.168,7.611,8.172,7.559,8.165C7.617,8.102,7.672,8.035,7.733,7.974zM16,27.533C9.639,27.533,4.466,22.36,4.466,16c0-0.085,0.011-0.168,0.013-0.254c0.004-0.003,0.008-0.006,0.012-0.009c0.129-0.102,0.283-0.359,0.334-0.45c0.052-0.089,0.181-0.154,0.116-0.256c-0.059-0.096-0.292-0.23-0.407-0.261c0.01-0.099,0.032-0.195,0.045-0.294c0.063,0.077,0.137,0.17,0.208,0.194c0.115,0.038,0.501,0.052,0.566,0.052c0.063,0,0.334,0.014,0.386-0.064c0.051-0.077,0.09-0.077,0.154-0.077c0.064,0,0.18,0.231,0.271,0.257c0.089,0.026,0.257,0.013,0.244,0.181c-0.012,0.166,0.077,0.309,0.167,0.321c0.09,0.013,0.296-0.194,0.296-0.194s0,0.322-0.012,0.438C6.846,15.698,7,16.124,7,16.124s0.193,0.397,0.244,0.488c0.052,0.09,0.27,0.36,0.27,0.476c0,0.117,0.026,0.297,0.104,0.297s0.155-0.206,0.244-0.335c0.091-0.128,0.117-0.31,0.155-0.438c0.039-0.129,0.039-0.36,0.039-0.45c0-0.091,0.076-0.168,0.257-0.245c0.181-0.077,0.309-0.296,0.463-0.412c0.155-0.116,0.142-0.309,0.452-0.309c0.308,0,0.282,0,0.36-0.078c0.077-0.077,0.154-0.128,0.192,0.013c0.039,0.142,0.257,0.347,0.296,0.399c0.039,0.052,0.116,0.193,0.104,0.348c-0.013,0.153,0.012,0.334,0.077,0.334c0.064,0,0.193-0.219,0.193-0.219s0.283-0.192,0.27,0.014c-0.014,0.205,0.025,0.425,0.025,0.552c0,0.13,0.232,0.438,0.232,0.362c0-0.079,0.103-0.296,0.103-0.413c0-0.114,0.064-0.063,0.231,0.051c0.167,0.116,0.283,0.349,0.283,0.349s0.168,0.154,0.193,0.219c0.026,0.064,0.206-0.025,0.244-0.104c0.039-0.076,0.065-0.115,0.167-0.141c0.104-0.026,0.231-0.026,0.271-0.168c0.039-0.142,0.154-0.308,0-0.502c-0.154-0.193-0.232-0.321-0.347-0.412c-0.117-0.09-0.206-0.322-0.206-0.322s0.244-0.218,0.321-0.296c0.079-0.077,0.193-0.025,0.207,0.064c0.013,0.091-0.115,0.168-0.141,0.361c-0.026,0.192,0.154,0.257,0.206,0.192c0.051-0.065,0.18-0.219,0.18-0.257c0-0.039-0.089-0.026-0.102-0.167c-0.013-0.142,0.166-0.245,0.23-0.207c0.066,0.039,0.477-0.051,0.67-0.154s0.308-0.322,0.425-0.412c0.116-0.089,0.515-0.386,0.489-0.527c-0.026-0.142,0.012-0.334-0.09-0.515c-0.103-0.18-0.232-0.295-0.283-0.373c-0.051-0.077,0.219-0.09,0.347-0.206c0.129-0.116,0-0.219-0.064-0.206c-0.064,0.013-0.232,0.052-0.296,0.039c-0.064-0.013-0.103-0.077-0.206-0.155c-0.102-0.077,0.026-0.192,0.091-0.179c0.064,0.013,0.23-0.129,0.308-0.193c0.077-0.064,0.193-0.115,0.154-0.051c-0.038,0.064-0.128,0.296-0.026,0.309c0.104,0.013,0.348-0.193,0.388-0.18c0.038,0.013,0.102,0.18,0.064,0.257c-0.039,0.077-0.039,0.206,0.013,0.193c0.051-0.013,0.154-0.129,0.18-0.09c0.027,0.039,0.154,0.116,0.09,0.257c-0.063,0.142-0.193,0.193-0.039,0.284c0.154,0.089,0.206,0.012,0.322-0.052c0.115-0.064,0.193-0.347,0.128-0.438c-0.064-0.09-0.218-0.27-0.218-0.334c0-0.064,0.257-0.064,0.257-0.167s0.09-0.18,0.18-0.219c0.091-0.039,0.206-0.206,0.244-0.154c0.039,0.052,0.271,0.116,0.334,0.039c0.064-0.077,0.4-0.36,0.605-0.515c0.206-0.154,0.283-0.334,0.336-0.515c0.051-0.18,0.128-0.296,0.102-0.437v0c0.077,0.18,0.09,0.309,0.077,0.45c-0.013,0.142,0,0.438,0.026,0.476c0.025,0.039,0.129,0.128,0.192,0.103c0.064-0.025-0.025-0.283-0.025-0.334c0-0.052,0.09-0.129,0.142-0.142c0.052-0.013,0-0.231-0.065-0.322c-0.063-0.09-0.154-0.142-0.102-0.154c0.051-0.013,0.115-0.116,0.077-0.142c-0.039-0.025-0.014-0.116-0.103-0.09c-0.065,0.019-0.241-0.015-0.235,0.095c-0.037-0.11-0.116-0.183-0.216-0.172c-0.116,0.013-0.181,0.077-0.296,0.077s-0.025-0.18-0.077-0.18c-0.051,0-0.168,0.167-0.231,0.077c-0.064-0.09,0.18-0.206,0.373-0.27c0.192-0.064,0.514-0.438,0.644-0.451c0.128-0.013,0.45,0.026,0.733,0.013c0.283-0.013,0.373-0.129,0.463-0.064s0.283,0.142,0.399,0.129c0.116-0.014,0.064,0,0.244-0.129c0.18-0.129,0.348-0.193,0.438-0.296c0.09-0.103,0.335-0.18,0.348-0.077c0.014,0.103-0.026,0.206,0.077,0.206s0.258-0.103,0.386-0.154c0.129-0.051,0.231-0.116,0.231-0.116s-0.527,0.36-0.655,0.438c-0.129,0.077-0.438,0.129-0.567,0.283c-0.128,0.155-0.205,0.206-0.192,0.374c0.014,0.167,0.231,0.386,0.128,0.54c-0.103,0.154-0.141,0.373-0.141,0.373s0.154-0.219,0.373-0.36s0.348-0.334,0.425-0.412s0.309-0.091,0.309-0.181s0.064-0.206,0.104-0.309c0.038-0.103-0.077-0.078,0-0.206c0.076-0.129,0.064-0.232,0.45-0.232s0.257,0.026,0.566,0.013c0.309-0.013,0.424-0.167,0.72-0.245c0.296-0.077,0.527-0.128,0.618-0.089c0.09,0.038,0.232,0.012,0.141-0.078c-0.089-0.09-0.295-0.219-0.193-0.245c0.104-0.026,0.207-0.039,0.246-0.142c0.039-0.103-0.142-0.283-0.039-0.386c0.104-0.103-0.077-0.231-0.207-0.257c-0.128-0.025-0.63,0.026-0.731-0.025c-0.104-0.052-0.271-0.116-0.322-0.078c-0.052,0.039-0.168,0.245-0.168,0.245s-0.09,0.025-0.168-0.09c-0.076-0.116-0.5-0.103-0.629-0.103s-0.271,0.025-0.413,0.039c-0.141,0.013-0.219,0.052-0.322-0.039c-0.102-0.09-0.243-0.129-0.296-0.167c-0.051-0.039-0.334-0.039-0.553-0.012c-0.218,0.025-0.438,0.025-0.438,0.025s-0.104-0.039-0.257-0.129c-0.154-0.09-0.309-0.154-0.361-0.154c-0.051,0-0.449,0.064-0.539,0c-0.091-0.064-0.181-0.103-0.245-0.103s-0.115-0.103-0.038-0.103s0.437-0.103,0.437-0.103s-0.103-0.142-0.231-0.142c-0.128,0-0.359-0.064-0.424-0.064s-0.014,0.064-0.142,0.039c-0.13-0.026-0.258-0.078-0.335-0.026c-0.076,0.051-0.258,0.128-0.064,0.18c0.193,0.052,0.373,0,0.425,0.078c0.052,0.077,0,0.115,0,0.167s-0.103,0.193-0.167,0.219c-0.064,0.025-0.143-0.039-0.27,0.025c-0.129,0.064-0.451,0.013-0.49,0.052c-0.038,0.039-0.115-0.103-0.18-0.077c-0.064,0.025-0.232,0.193-0.322,0.18c-0.089-0.013-0.206-0.103-0.206-0.206s-0.038-0.232-0.077-0.258c-0.038-0.025-0.322-0.039-0.425-0.025c-0.103,0.013-0.424,0.038-0.477,0.09c-0.052,0.052-0.193,0.09-0.283,0.09s-0.167-0.09-0.36-0.116c-0.192-0.026-0.617-0.039-0.669-0.026s-0.218-0.025-0.155-0.077c0.065-0.051,0.257-0.219,0.143-0.295c-0.117-0.078-0.375-0.078-0.489-0.09c-0.117-0.013-0.232-0.039-0.413-0.013c-0.181,0.026-0.219,0.116-0.296,0.039c-0.077-0.077,0.193,0.039-0.077-0.077c-0.27-0.116-0.399-0.103-0.477-0.064c-0.077,0.039,0.013,0.025-0.192,0.103c-0.206,0.078-0.322,0.116-0.374,0.129c-0.051,0.012-0.372-0.065-0.411-0.091c-0.038-0.025-0.181,0.013-0.309,0.064S9.895,7.025,9.767,7C9.638,6.973,9.432,6.973,9.303,7.025C9.174,7.076,9.084,7.076,8.956,7.166c-0.13,0.09-0.373,0.142-0.373,0.142S8.522,7.305,8.448,7.301C10.474,5.541,13.111,4.466,16,4.466c6.361,0,11.534,5.173,11.534,11.534S22.36,27.533,16,27.533zM14.888,19.92c0,0,0.207-0.026,0.207-0.117c0-0.089-0.207-0.205-0.282-0.102c-0.078,0.102-0.219,0.205-0.207,0.296C14.625,20.138,14.888,19.92,14.888,19.92zM14.875,17.023c-0.181,0.233-0.167,0.182-0.296,0.128c-0.128-0.05-0.334,0.116-0.296,0.182c0.039,0.064,0.322-0.014,0.386,0.102c0.065,0.116,0.065,0.129,0.193,0.104c0.128-0.026,0.257-0.205,0.219-0.295C15.043,17.151,14.875,17.023,14.875,17.023zM14.837,18.245c-0.051,0-0.412,0.064-0.451,0.079c-0.039,0.013-0.27-0.025-0.27-0.025c-0.09,0.089-0.026,0.179,0.116,0.166s0.438-0.052,0.502-0.052C14.799,18.413,14.888,18.245,14.837,18.245zM14.284,14.668c-0.19,0.03-0.308,0.438-0.155,0.425C14.284,15.081,14.451,14.643,14.284,14.668zM14.734,16.959c-0.052-0.064-0.181-0.271-0.323-0.219c-0.042,0.017-0.153,0.245-0.012,0.245C14.541,16.985,14.786,17.023,14.734,16.959zM14.85,16.805c0.232-0.013,0.167-0.245-0.013-0.257C14.786,16.544,14.618,16.818,14.85,16.805zM17.591,18.928c-0.193-0.039-0.244-0.102-0.45-0.205c-0.207-0.103-0.67-0.103-0.682-0.039c-0.014,0.064,0,0-0.155-0.05c-0.153-0.054-0.271,0-0.309-0.091c-0.038-0.091-0.128-0.117-0.244-0.002c-0.097,0.097-0.142,0.104,0.078,0.143c0.218,0.039,0.283,0.039,0.192,0.141c-0.09,0.104-0.154,0.233-0.077,0.244c0.077,0.015,0.309-0.05,0.334,0c0.026,0.054-0.051,0.064,0.207,0.105c0.258,0.037,0.309,0.128,0.359,0.178c0.051,0.052,0.206,0.22,0.104,0.22c-0.104,0-0.219,0.128-0.142,0.143c0.077,0.013,0.309-0.039,0.321,0c0.014,0.037,0.143,0.283,0.271,0.271c0.129-0.013,0.206-0.244,0.27-0.31c0.065-0.064,0.322-0.104,0.349,0.012c0.026,0.116,0.104,0.233,0.257,0.311c0.154,0.076,0.335,0.154,0.348,0.089c0.013-0.064-0.077-0.309-0.181-0.346c-0.103-0.041-0.282-0.259-0.282-0.348c0-0.091-0.155-0.117-0.232-0.182C17.849,19.147,17.784,18.967,17.591,18.928zM8.042,17.023c-0.084,0.037-0.155,0.476,0,0.527c0.154,0.052,0.244-0.205,0.193-0.271C8.183,17.218,8.158,16.973,8.042,17.023zM15.429,18.117c-0.118-0.05-0.335,0.424-0.181,0.463C15.403,18.62,15.518,18.156,15.429,18.117zM15.687,13.703c0.077,0,0.18-0.051,0.18-0.193c0-0.142,0.18,0,0.27-0.013s0.141-0.103,0.18-0.206c0.005-0.013,0.008-0.021,0.009-0.027c-0.003,0.024-0.001,0.093,0.095,0.117c0.154,0.038,0.205-0.064,0.205-0.103s0.283-0.103,0.336-0.142c0.051-0.038,0.258-0.103,0.27-0.154c0.013-0.051,0-0.348,0.064-0.373c0.064-0.026,0.154-0.026,0.052-0.206c-0.104-0.181-0.104-0.348-0.232-0.271c-0.095,0.057-0.038,0.284-0.115,0.438s-0.142,0.296-0.193,0.296s-0.321,0.103-0.399,0.18c-0.076,0.077-0.45-0.064-0.501,0c-0.052,0.064-0.154,0.141-0.219,0.193c-0.065,0.051-0.245,0.013-0.207,0.167C15.518,13.562,15.609,13.703,15.687,13.703zM17.449,12.056c0.18-0.013,0.348-0.064,0.348-0.064s0.271,0.013,0.232-0.116c-0.04-0.128-0.322-0.141-0.375-0.128c-0.051,0.013-0.142-0.142-0.244-0.116c-0.096,0.023-0.128,0.155-0.128,0.193c0,0.039-0.36,0.115-0.245,0.219C17.153,12.146,17.27,12.069,17.449,12.056zM13.91,19.058c0.104,0.064,0.296-0.219,0.349-0.13c0.051,0.091-0.013,0.13,0.076,0.246c0.091,0.114,0.258,0.102,0.258,0.102s-0.013-0.309-0.155-0.387c-0.142-0.077-0.232-0.166-0.064-0.141c0.167,0.026,0.257-0.039,0.219-0.114c-0.039-0.078-0.283-0.039-0.361-0.026s-0.193-0.052-0.193-0.052c-0.077,0.024-0.063,0.089-0.09,0.219C13.923,18.902,13.807,18.992,13.91,19.058zM20.924,21.618c-0.231-0.052-0.077,0.039,0,0.154c0.077,0.116,0.232,0.176,0.258,0.05C21.193,21.759,21.155,21.67,20.924,21.618zM21.915,24.744c-0.077,0.064,0,0.091-0.219,0.22c-0.22,0.13-0.49,0.271-0.541,0.386c-0.052,0.116,0.051,0.181,0.258,0.192c0.206,0.013,0.154,0.053,0.296-0.103s0.271-0.244,0.438-0.373c0.168-0.128,0.168-0.322,0.168-0.322s-0.181-0.178-0.193-0.141C22.1,24.665,21.992,24.681,21.915,24.744zM18.504,21.618c0.014-0.116-0.219-0.116-0.334-0.207c-0.116-0.089-0.128-0.359-0.193-0.515c-0.064-0.153-0.192-0.257-0.322-0.397c-0.128-0.143-0.192-0.465-0.23-0.438c-0.039,0.025-0.154,0.399-0.064,0.515c0.09,0.116-0.039,0.348-0.103,0.503c-0.065,0.153-0.22-0.026-0.349-0.104c-0.129-0.078-0.308-0.128-0.398-0.219c-0.09-0.091,0.155-0.335,0.091-0.426c-0.065-0.09-0.412-0.013-0.45-0.013c-0.039,0-0.116-0.128-0.194-0.128c-0.077,0-0.064,0.258-0.064,0.258s-0.078-0.091-0.193-0.207c-0.117-0.115,0.012,0.077-0.103,0.193c-0.117,0.117-0.079,0.078-0.129,0.206c-0.051,0.129-0.167,0.077-0.283-0.052c-0.116-0.128-0.179-0.037-0.258,0c-0.077,0.039-0.141,0.259-0.18,0.309c-0.039,0.052-0.309,0.117-0.374,0.182c-0.064,0.062-0.09,0.27-0.09,0.322c0,0.05-0.271,0.023-0.361,0.089c-0.09,0.064-0.23,0.025-0.321,0.025c-0.09,0-0.399,0.244-0.502,0.308c-0.103,0.066-0.103,0.298-0.051,0.362c0.051,0.063,0.154,0.219,0.09,0.244c-0.064,0.026-0.104,0.206,0.051,0.359c0.154,0.155,0.103,0.194,0.115,0.271c0.014,0.077,0.078,0.104,0.181,0.232c0.102,0.128-0.181,0.231-0.219,0.31c-0.039,0.076,0.091,0.192,0.167,0.257c0.077,0.063,0.271,0.026,0.386-0.013c0.117-0.039,0.245-0.143,0.321-0.155c0.079-0.013,0.438-0.026,0.438-0.026s0.129-0.192,0.219-0.296c0.089-0.102,0.372-0.013,0.372-0.013s0.117-0.076,0.426-0.141c0.309-0.065,0.179,0.064,0.296,0.104c0.115,0.037,0.27,0.062,0.359,0.128c0.09,0.064,0,0.218-0.012,0.283c-0.014,0.064,0.219,0.038,0.23-0.026c0.014-0.064,0.077-0.128,0.207-0.205c0.128-0.078,0.025,0.114,0.076,0.231c0.052,0.116,0.129-0.157,0.129-0.026c0,0.039,0.039,0.078,0.051,0.116c0.014,0.039,0.181,0.052,0.181,0.18c0,0.13,0,0.207,0.039,0.231c0.038,0.026,0.244,0,0.335,0.155c0.089,0.154,0.154,0.013,0.205-0.052c0.052-0.064,0.231,0.026,0.283,0.078c0.052,0.05,0.193-0.104,0.387-0.155c0.192-0.051,0.167-0.039,0.219-0.115c0.051-0.078,0.09-0.283,0.205-0.438c0.115-0.153,0.271-0.424,0.271-0.631c0-0.206-0.014-0.682-0.155-0.899C18.761,21.953,18.492,21.733,18.504,21.618zM18.029,24.77c-0.065-0.013-0.207-0.062-0.207-0.062c-0.142,0.141,0.142,0.141,0.104,0.283c-0.039,0.141,0.193,0.089,0.257,0.064c0.063-0.027,0.22-0.323,0.193-0.399C18.351,24.577,18.093,24.783,18.029,24.77zM22.803,24.178c-0.052,0-0.077,0.064-0.192,0c-0.117-0.063-0.091-0.037-0.168-0.167c-0.077-0.127-0.091-0.296-0.219-0.23c-0.051,0.025,0,0.168,0.051,0.218c0.053,0.052,0.077,0.231,0.064,0.283c-0.012,0.052-0.231,0.116-0.129,0.18c0.104,0.064,0.297,0,0.271,0.078c-0.025,0.077-0.129,0.179-0.013,0.205c0.115,0.025,0.154-0.089,0.207-0.178c0.051-0.093,0.089-0.169,0.179-0.221C22.944,24.294,22.854,24.178,22.803,24.178zM22.815,21.18c0.168,0.064,0.464-0.231,0.347-0.27C23.047,20.871,22.815,21.18,22.815,21.18zM13.923,19.906c-0.029,0.115,0.193,0.167,0.206,0.039C14.141,19.816,13.949,19.803,13.923,19.906zM14.27,16.47c-0.064,0.065-0.257,0.193-0.283,0.31c-0.025,0.115,0.309-0.182,0.399-0.296c0.091-0.117,0.27-0.052,0.308-0.117c0.04-0.063,0.04-0.063,0.04-0.063s-0.142-0.025-0.257-0.063c-0.117-0.039-0.258,0.102-0.193-0.104c0.064-0.206,0.257-0.167,0.219-0.322c-0.039-0.154-0.168-0.193-0.207-0.193c-0.09,0,0.013,0.141-0.116,0.231c-0.128,0.09-0.271,0.128-0.193,0.283C14.064,16.29,14.334,16.405,14.27,16.47zM13.254,19.751c0.013-0.076-0.142-0.192-0.206-0.192c-0.065,0-0.386-0.077-0.386-0.077c-0.058,0.023-0.135,0.045-0.158,0.077c-0.007-0.011-0.022-0.024-0.049-0.039c-0.142-0.075-0.309,0-0.361-0.102c-0.05-0.104-0.127-0.104-0.179-0.039c-0.094,0.117,0.025,0.206,0.063,0.231c0.038,0.024,0.181,0.052,0.309,0.039c0.08-0.008,0.181-0.027,0.21-0.059c0.004,0.014,0.016,0.027,0.035,0.044c0.103,0.092,0.167,0.13,0.321,0.116C13.009,19.74,13.241,19.829,13.254,19.751zM12.881,18.992c0.065,0,0.193,0,0.283,0.026c0.09,0.025,0.386,0.05,0.373-0.064c-0.013-0.115-0.038-0.297,0.089-0.411c0.13-0.117,0.257-0.18,0.193-0.348c-0.063-0.167-0.193-0.271-0.103-0.349c0.09-0.076,0.192-0.102,0.192-0.166c0-0.065-0.217,0.18-0.244-0.246c-0.005-0.091-0.206,0.025-0.219,0.116c-0.012,0.091,0.142,0.167-0.103,0.167c-0.245,0-0.257,0.194-0.309,0.232c-0.052,0.039-0.103,0.051-0.207,0.076c-0.102,0.026-0.127,0.13-0.153,0.194c-0.025,0.063-0.206-0.116-0.257-0.064c-0.051,0.052-0.013,0.296,0.077,0.501C12.585,18.863,12.816,18.992,12.881,18.992zM11.979,18.928c0.065-0.077,0.038-0.192-0.063-0.18c-0.103,0.013-0.193-0.168-0.36-0.283c-0.168-0.114-0.296-0.194-0.451-0.36c-0.154-0.167-0.347-0.271-0.45-0.359c-0.104-0.091-0.257-0.13-0.322-0.116c-0.159,0.032,0.231,0.309,0.271,0.346c0.039,0.041,0.387,0.335,0.387,0.478s0.231,0.476,0.296,0.527c0.064,0.052,0.385,0.244,0.437,0.348c0.052,0.103,0.167,0.13,0.167-0.013C11.89,19.174,11.916,19.006,11.979,18.928zM11.002,17.474c0.064,0.232,0.193,0.464,0.244,0.555c0.052,0.089,0.271,0.217,0.348,0.281c0.077,0.064,0.192-0.024,0.143-0.102c-0.052-0.078-0.155-0.192-0.167-0.283c-0.013-0.091-0.078-0.233-0.181-0.387c-0.102-0.153-0.192-0.192-0.257-0.295c-0.064-0.104-0.296-0.297-0.296-0.297c-0.102,0.013-0.102,0.205-0.051,0.271C10.834,17.28,10.938,17.243,11.002,17.474z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.GlobeAlt2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.GlobeAlt2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Hail.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Hail.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Hail = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Hail\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.372,6.912c-0.093-3.925-3.302-7.078-7.248-7.08c-2.638,0.002-4.942,1.412-6.208,3.518c-0.595-0.327-1.28-0.518-2.01-0.518C7.627,2.834,5.773,4.639,5.69,6.898c-2.393,0.786-4.125,3.025-4.127,5.686c0,3.312,2.687,6,6,6v-0.002h15.875c3.312,0,6-2.688,6-6C29.434,9.944,27.732,7.715,25.372,6.912zM23.436,16.584H7.562c-2.209-0.006-3.997-1.793-4.001-4c-0.002-1.983,1.45-3.619,3.35-3.933c0.265-0.043,0.502-0.19,0.657-0.414C7.723,8.015,7.78,7.74,7.731,7.475C7.703,7.326,7.686,7.187,7.686,7.051c0.004-1.225,0.995-2.217,2.22-2.219c0.647,0,1.217,0.278,1.633,0.731c0.233,0.257,0.587,0.375,0.927,0.31c0.342-0.066,0.626-0.308,0.748-0.631c0.749-1.992,2.662-3.412,4.911-3.41c2.898,0.004,5.244,2.351,5.251,5.25c0,0.16-0.009,0.325-0.026,0.496c-0.05,0.518,0.305,0.984,0.814,1.079c1.859,0.345,3.273,1.966,3.271,3.923C27.43,14.791,25.645,16.578,23.436,16.584zM11.503,23.709c-0.784-0.002-1.418-0.636-1.418-1.416c0-0.785,0.634-1.416,1.418-1.418c0.78,0.002,1.413,0.633,1.416,1.418C12.917,23.073,12.284,23.707,11.503,23.709zM19.002,23.709c-0.783-0.002-1.418-0.636-1.418-1.416c0-0.785,0.635-1.416,1.418-1.418c0.779,0.002,1.414,0.633,1.414,1.418C20.417,23.073,19.784,23.707,19.002,23.709zM7.503,28.771c-0.783-0.002-1.417-0.637-1.417-1.418s0.634-1.414,1.417-1.416c0.78,0.002,1.415,0.635,1.415,1.416C8.917,28.135,8.284,28.77,7.503,28.771zM15.001,28.771c-0.782-0.002-1.417-0.637-1.417-1.418s0.634-1.414,1.417-1.416c0.78,0.002,1.413,0.635,1.415,1.416C16.415,28.135,15.784,28.77,15.001,28.771zM22.5,28.771c-0.782-0.002-1.416-0.634-1.416-1.416c0-0.785,0.634-1.418,1.416-1.42c0.781,0.002,1.414,0.635,1.418,1.42C23.915,28.138,23.282,28.77,22.5,28.771z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Hail\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Hail();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Hammer.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Hammer.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Hammer = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Hammer\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M7.831,29.354c0.685,0.353,1.62,1.178,2.344,0.876c0.475-0.195,0.753-1.301,1.048-1.883c2.221-4.376,4.635-9.353,6.392-13.611c0-0.19,0.101-0.337-0.049-0.595c0.983-1.6,1.65-3.358,2.724-5.138c0.34-0.566,0.686-1.351,1.163-1.577l0.881-0.368c1.12-0.288,1.938-0.278,2.719,0.473c0.396,0.383,0.578,1.015,0.961,1.395c0.259,0.26,1.246,0.899,1.613,0.8c0.285-0.077,0.52-0.364,0.72-0.728l0.696-1.286c0.195-0.366,0.306-0.718,0.215-0.999c-0.117-0.362-1.192-0.84-1.552-0.915c-0.528-0.113-1.154,0.081-1.692-0.041c-1.057-0.243-1.513-0.922-1.883-2.02c-2.608-1.533-6.119-2.53-10.207-1.244c-1.109,0.349-2.172,0.614-2.901,1.323c-0.146,0.412,0.143,0.494,0.446,0.489c-0.237,0.216-0.62,0.341-0.399,0.848c2.495-1.146,7.34-1.542,7.669,0.804c0.072,0.522-0.395,1.241-0.682,1.835c-0.905,1.874-2.011,3.394-2.813,5.091c-0.298,0.017-0.366,0.18-0.525,0.287c-2.604,3.8-5.451,8.541-7.9,12.794c-0.326,0.566-1.098,1.402-1.002,1.906C5.961,28.641,7.146,29,7.831,29.354z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Hammer\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Hammer();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/HammerAndScrewDriver.js\":\n/*!************************************************!*\\\n !*** ./src/shape/icon/HammerAndScrewDriver.js ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.HammerAndScrewDriver = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.HammerAndScrewDriver\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.537,9.859c-0.473-0.259-1.127-0.252-1.609-0.523c-0.943-0.534-1.186-1.316-1.226-2.475c-2.059-2.215-5.138-4.176-9.424-4.114c-1.162,0.017-2.256-0.035-3.158,0.435c-0.258,0.354-0.004,0.516,0.288,0.599c-0.29,0.138-0.692,0.147-0.626,0.697c2.72-0.383,7.475,0.624,7.116,2.966c-0.08,0.521-0.735,1.076-1.179,1.563c-1.263,1.382-2.599,2.45-3.761,3.667l0.336,0.336c0.742-0.521,1.446-0.785,2.104-0.785c0.707,0,1.121,0.297,1.276,0.433c0.575-0.618,1.166-1.244,1.839-1.853c0.488-0.444,1.047-1.099,1.566-1.178l0.949-0.101c1.156,0.047,1.937,0.29,2.471,1.232c0.27,0.481,0.262,1.139,0.521,1.613c0.175,0.324,0.937,1.218,1.316,1.228c0.294,0.009,0.603-0.199,0.899-0.49l1.033-1.034c0.291-0.294,0.501-0.6,0.492-0.896C29.754,10.801,28.861,10.035,28.537,9.859zM13.021,15.353l-0.741-0.741c-3.139,2.643-6.52,5.738-9.531,8.589c-0.473,0.443-1.452,1.021-1.506,1.539c-0.083,0.781,0.95,1.465,1.506,2c0.556,0.533,1.212,1.602,1.994,1.51c0.509-0.043,1.095-1.029,1.544-1.502c2.255-2.374,4.664-4.976,6.883-7.509c-0.312-0.371-0.498-0.596-0.498-0.596C12.535,18.451,11.779,17.272,13.021,15.353zM20.64,15.643c-0.366-0.318-1.466,0.143-1.777-0.122c-0.311-0.266,0.171-1.259-0.061-1.455c-0.482-0.406-0.77-0.646-0.77-0.646s-0.862-0.829-2.812,0.928L7.44,6.569C7.045,6.173,7.203,4.746,7.203,4.746L3.517,2.646L2.623,3.541l2.1,3.686c0,0,1.428-0.158,1.824,0.237l7.792,7.793c-1.548,1.831-0.895,2.752-0.895,2.752s0.238,0.288,0.646,0.771c0.196,0.23,1.188-0.249,1.455,0.061c0.264,0.312-0.196,1.41,0.12,1.777c2.666,3.064,6.926,7.736,8.125,7.736c0.892,0,2.021-0.724,2.948-1.64c0.925-0.917,1.639-2.055,1.639-2.947C28.377,22.567,23.704,18.309,20.64,15.643z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.HammerAndScrewDriver\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.HammerAndScrewDriver();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/HangUp.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/HangUp.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.HangUp = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.HangUp\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.563,10.494c-7.35-7.349-19.265-7.348-26.612,0.001c-1.796,1.796-0.247,6.84-0.247,6.84c0.135,0.443,0.616,0.72,1.067,0.614l6.898-1.604c0.451-0.105,0.82-0.57,0.82-1.033l0.001-3.685c0-0.463,0.379-0.842,0.842-0.842h8.285c0.464,0,0.843,0.379,0.843,0.842l-0.001,3.471c0.001,0.462,0.375,0.907,0.83,0.986l7.635,1.316c0.456,0.08,0.873-0.232,0.926-0.692C29.851,16.708,30.359,12.29,28.563,10.494zM17.264,14.072h-3.501v4.39h-2.625l4.363,7.556l4.363-7.556h-2.6V14.072z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.HangUp\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.HangUp();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Help.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Help.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Help = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Help\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.834,4.834L4.833,4.833c-5.889,5.892-5.89,15.443,0.001,21.334s15.44,5.888,21.33-0.002c5.891-5.891,5.893-15.44,0.002-21.33C20.275-1.056,10.725-1.056,4.834,4.834zM25.459,5.542c0.833,0.836,1.523,1.757,2.104,2.726l-4.08,4.08c-0.418-1.062-1.053-2.06-1.912-2.918c-0.859-0.859-1.857-1.494-2.92-1.913l4.08-4.08C23.7,4.018,24.622,4.709,25.459,5.542zM10.139,20.862c-2.958-2.968-2.959-7.758-0.001-10.725c2.966-2.957,7.756-2.957,10.725,0c2.954,2.965,2.955,7.757-0.001,10.724C17.896,23.819,13.104,23.817,10.139,20.862zM5.542,25.459c-0.833-0.837-1.524-1.759-2.105-2.728l4.081-4.081c0.418,1.063,1.055,2.06,1.914,2.919c0.858,0.859,1.855,1.494,2.917,1.913l-4.081,4.081C7.299,26.982,6.379,26.292,5.542,25.459zM8.268,3.435l4.082,4.082C11.288,7.935,10.29,8.571,9.43,9.43c-0.858,0.859-1.494,1.855-1.912,2.918L3.436,8.267c0.58-0.969,1.271-1.89,2.105-2.727C6.377,4.707,7.299,4.016,8.268,3.435zM22.732,27.563l-4.082-4.082c1.062-0.418,2.061-1.053,2.919-1.912c0.859-0.859,1.495-1.857,1.913-2.92l4.082,4.082c-0.58,0.969-1.271,1.891-2.105,2.728C24.623,26.292,23.701,26.983,22.732,27.563z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Help\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Help();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/History.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/History.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.History = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.History\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M10.666,18.292c0.275,0.479,0.889,0.644,1.365,0.367l3.305-1.677C15.39,16.99,15.444,17,15.501,17c0.828,0,1.5-0.671,1.5-1.5l-0.5-7.876c0-0.552-0.448-1-1-1c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96C10.553,17.204,10.389,17.816,10.666,18.292zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM8.179,18.572c-0.478,0.277-0.642,0.889-0.365,1.367c0.275,0.479,0.889,0.641,1.365,0.365c0.479-0.275,0.643-0.888,0.367-1.367C9.27,18.461,8.658,18.297,8.179,18.572zM9.18,10.696c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,11.584,9.657,10.973,9.18,10.696zM6.624,15.5c0,0.553,0.449,1,1,1c0.552,0,1-0.447,1.001-1c-0.001-0.552-0.448-0.999-1.001-1C7.071,14.5,6.624,14.948,6.624,15.5zM14.501,23.377c0,0.553,0.448,1,1,1c0.552,0,1-0.447,1-1s-0.448-1-1-1C14.949,22.377,14.501,22.824,14.501,23.377zM10.696,21.822c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.276,1.091,0.11,1.365-0.365c0.277-0.479,0.113-1.09-0.365-1.367C11.584,21.18,10.973,21.344,10.696,21.822zM21.822,10.696c-0.479,0.278-0.643,0.89-0.366,1.367s0.888,0.642,1.366,0.365c0.478-0.275,0.643-0.888,0.365-1.366C22.913,10.584,22.298,10.42,21.822,10.696zM21.456,18.938c-0.274,0.479-0.112,1.092,0.367,1.367c0.477,0.274,1.089,0.112,1.364-0.365c0.276-0.479,0.112-1.092-0.364-1.367C22.343,18.297,21.73,18.461,21.456,18.938zM24.378,15.5c0-0.551-0.448-1-1-1c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1C23.93,16.5,24.378,16.053,24.378,15.5zM18.573,22.822c0.274,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.89,0.365-1.365c-0.277-0.479-0.888-0.643-1.365-0.367C18.46,21.732,18.296,22.344,18.573,22.822zM18.939,9.546c0.477,0.276,1.088,0.112,1.365-0.366c0.276-0.478,0.113-1.091-0.367-1.367c-0.477-0.276-1.09-0.111-1.364,0.366C18.298,8.659,18.462,9.27,18.939,9.546zM28.703,14.364C28.074,7.072,21.654,1.67,14.364,2.295c-3.254,0.281-6.118,1.726-8.25,3.877L4.341,4.681l-1.309,7.364l7.031-2.548L8.427,8.12c1.627-1.567,3.767-2.621,6.194-2.833c5.64-0.477,10.595,3.694,11.089,9.335c0.477,5.64-3.693,10.595-9.333,11.09c-5.643,0.476-10.599-3.694-11.092-9.333c-0.102-1.204,0.019-2.373,0.31-3.478l-3.27,1.186c-0.089,0.832-0.106,1.684-0.031,2.55c0.629,7.29,7.048,12.691,14.341,12.066C23.926,28.074,29.328,21.655,28.703,14.364z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.History\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.History();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Home.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Home.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Home = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Home\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.812,16l-3.062-3.062V5.625h-2.625v4.688L16,4.188L4.188,16L7,15.933v11.942h17.875V16H27.812zM16,26.167h-5.833v-7H16V26.167zM21.667,23.167h-3.833v-4.042h3.833V23.167z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Home\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Home();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/IMac.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/IMac.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.IMac = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.IMac\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.936,2.099H2.046c-0.506,0-0.919,0.414-0.919,0.92v21.097c0,0.506,0.413,0.919,0.919,0.919h17.062v-0.003h9.828c0.506,0,0.92-0.413,0.92-0.921V3.019C29.854,2.513,29.439,2.099,28.936,2.099zM28.562,20.062c0,0.412-0.338,0.75-0.75,0.75H3.062c-0.413,0-0.75-0.338-0.75-0.75v-16c0-0.413,0.337-0.75,0.75-0.75h24.75c0.412,0,0.75,0.337,0.75,0.75V20.062zM20.518,28.4c-0.033-0.035-0.062-0.055-0.068-0.062l-0.01-0.004l-0.008-0.004c0,0-0.046-0.021-0.119-0.062c-0.108-0.056-0.283-0.144-0.445-0.237c-0.162-0.097-0.32-0.199-0.393-0.271c-0.008-0.014-0.035-0.079-0.058-0.17c-0.083-0.32-0.161-0.95-0.22-1.539h-7.5c-0.023,0.23-0.048,0.467-0.076,0.691c-0.035,0.272-0.073,0.524-0.113,0.716c-0.02,0.096-0.039,0.175-0.059,0.23c-0.009,0.025-0.018,0.05-0.024,0.062c-0.003,0.006-0.005,0.01-0.007,0.013c-0.094,0.096-0.34,0.246-0.553,0.36c-0.107,0.062-0.209,0.11-0.283,0.146c-0.074,0.037-0.119,0.062-0.119,0.062l-0.007,0.004l-0.008,0.004c-0.01,0.009-0.038,0.022-0.07,0.062c-0.031,0.037-0.067,0.103-0.067,0.185c0.002,0.002-0.004,0.037-0.006,0.088c0,0.043,0.007,0.118,0.068,0.185c0.061,0.062,0.143,0.08,0.217,0.08h9.716c0.073,0,0.153-0.021,0.215-0.08c0.062-0.063,0.068-0.142,0.068-0.185c-0.001-0.051-0.008-0.086-0.007-0.088C20.583,28.503,20.548,28.439,20.518,28.4z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.IMac\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.IMac();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Icon.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Icon.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Icon = _packages2.default.SetFigure.extend({\n NAME: \"draw2d.shape.icon.Icon\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new figure element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n this.setBackgroundColor(\"#333333\");\n this.keepAspectRatio = false;\n },\n\n /**\r\n * @method\r\n * propagate all attributes like color, stroke,... to the shape element\r\n **/\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n // redirect the bgColor to the inner set and not to the outer container\n //\n attributes.fill = \"none\";\n if (this.svgNodes !== null) {\n this.svgNodes.attr({ fill: this.bgColor.rgba(), stroke: \"none\" });\n }\n\n this._super(attributes);\n },\n\n applyTransformation: function applyTransformation() {\n var trans = [];\n\n if (this.rotationAngle !== 0) {\n trans.push(\"R\" + this.rotationAngle);\n }\n\n if (this.getRotationAngle() === 90 || this.getRotationAngle() === 270) {\n var ratio = this.getHeight() / this.getWidth();\n trans.push(\"T\" + -this.offsetY + \",\" + -this.offsetX);\n trans.push(\"S\" + ratio + \",\" + 1 / ratio + \",0,0\");\n } else {\n trans.push(\"T\" + -this.offsetX + \",\" + -this.offsetY);\n }\n if (this.isResizeable() === true) {\n trans.push(\"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY() + \"S\" + this.scaleX + \",\" + this.scaleY + \",\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n } else {\n trans.push(\"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n }\n\n this.svgNodes.transform(trans.join(\" \"));\n\n return this;\n },\n\n /**\r\n * @private\r\n */\n createShapeElement: function createShapeElement() {\n var shape = this._super();\n\n var bb = this.svgNodes.getBBox();\n\n this.offsetX = bb.x;\n this.offsetY = bb.y;\n\n return shape;\n }\n}); /**\r\n * @class draw2d.shape.icon.Icon\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.SetFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Icons.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Icons.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Icons = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Icons\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.083,14H14V4.083H4.083V14zM17,4.083V14h9.917V4.083H17zM17,26.917h9.917v-9.918H17V26.917zM4.083,26.917H14v-9.918H4.083V26.917z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Icons\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Icons();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ie.js\":\n/*!******************************!*\\\n !*** ./src/shape/icon/Ie.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ie = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ie\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.998,2.266c-2.12-1.91-6.925,0.382-9.575,1.93c-0.76-0.12-1.557-0.185-2.388-0.185c-3.349,0-6.052,0.985-8.106,2.843c-2.336,2.139-3.631,4.94-3.631,8.177c0,0.028,0.001,0.056,0.001,0.084c3.287-5.15,8.342-7.79,9.682-8.487c0.212-0.099,0.338,0.155,0.141,0.253c-0.015,0.042-0.015,0,0,0c-2.254,1.35-6.434,5.259-9.146,10.886l-0.003-0.007c-1.717,3.547-3.167,8.529-0.267,10.358c2.197,1.382,6.13-0.248,9.295-2.318c0.764,0.108,1.567,0.165,2.415,0.165c5.84,0,9.937-3.223,11.399-7.924l-8.022-0.014c-0.337,1.661-1.464,2.548-3.223,2.548c-2.21,0-3.729-1.211-3.828-4.012l15.228-0.014c0.028-0.578-0.042-0.985-0.042-1.436c0-5.251-3.143-9.355-8.255-10.663c2.081-1.294,5.974-3.209,7.848-1.681c1.407,1.14,0.633,3.533,0.295,4.518c-0.056,0.254,0.24,0.296,0.296,0.057C28.814,5.573,29.026,3.194,27.998,2.266zM13.272,25.676c-2.469,1.475-5.873,2.539-7.539,1.289c-1.243-0.935-0.696-3.468,0.398-5.938c0.664,0.992,1.495,1.886,2.473,2.63C9.926,24.651,11.479,25.324,13.272,25.676zM12.714,13.046c0.042-2.435,1.787-3.49,3.617-3.49c1.928,0,3.49,1.112,3.49,3.49H12.714z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ie\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ie();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ie9.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Ie9.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ie9 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ie9\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.751,17.887c0.054-0.434,0.081-0.876,0.081-1.324c0-1.744-0.413-3.393-1.146-4.854c1.133-2.885,1.155-5.369-0.201-6.777c-1.756-1.822-5.391-1.406-9.433,0.721c-0.069-0.001-0.138-0.003-0.206-0.003c-6.069,0-10.988,4.888-10.988,10.917c0,0.183,0.005,0.354,0.014,0.529c-2.688,4.071-3.491,7.967-1.688,9.838c1.557,1.613,4.691,1.344,8.2-0.392c1.363,0.604,2.873,0.938,4.462,0.938c4.793,0,8.867-3.049,10.369-7.299H21.26c-0.814,1.483-2.438,2.504-4.307,2.504c-2.688,0-4.867-2.104-4.867-4.688c0-0.036,0.002-0.071,0.003-0.106h15.662V17.887zM26.337,6.099c0.903,0.937,0.806,2.684-0.087,4.818c-1.27-2.083-3.221-3.71-5.546-4.576C23.244,5.217,25.324,5.047,26.337,6.099zM16.917,10.372c2.522,0,4.585,1.991,4.748,4.509h-9.496C12.333,12.363,14.396,10.372,16.917,10.372zM5.687,26.501c-1.103-1.146-0.712-3.502,0.799-6.298c0.907,2.546,2.736,4.658,5.09,5.938C8.92,27.368,6.733,27.587,5.687,26.501z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ie9\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ie9();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Import.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Import.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Import = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Import\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.067,2.25c-5.979,0-11.035,3.91-12.778,9.309h3.213c1.602-3.705,5.271-6.301,9.565-6.309c5.764,0.01,10.428,4.674,10.437,10.437c-0.009,5.764-4.673,10.428-10.437,10.438c-4.294-0.007-7.964-2.605-9.566-6.311H2.289c1.744,5.399,6.799,9.31,12.779,9.312c7.419-0.002,13.437-6.016,13.438-13.438C28.504,8.265,22.486,2.252,15.067,2.25zM10.918,19.813l7.15-4.126l-7.15-4.129v2.297H-0.057v3.661h10.975V19.813z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Import\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Import();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/InkScape.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/InkScape.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.InkScape = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.InkScape\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.402,17.626c0.84-0.772,2.468-0.381,5.979-1.853c1.716-0.72,1.572-1.265,1.566-1.928c-0.001-0.014,0-0.027,0-0.041h-0.005c-0.012-0.667-0.291-1.332-0.846-1.845L17.049,2.684c-0.566-0.522-1.304-0.782-2.042-0.782V1.898c-0.738,0-1.475,0.261-2.04,0.783l-10.05,9.276c-0.554,0.512-0.832,1.176-0.843,1.844H2.07c0,0,0.003,0.011,0.004,0.011c0,0.012-0.004,0.024-0.004,0.034h0.017c0.193,0.676,5.164,1.536,5.718,2.049c0.838,0.774-3.211,1.339-2.374,2.114c0.838,0.773,5.062,1.496,5.898,2.271c0.838,0.771-1.711,1.596-0.874,2.366c0.837,0.773,3.651-0.191,3.142,1.822c1.13,1.045,3.49,0.547,5.071-0.498c0.837-0.771-1.607-0.703-0.77-1.477c0.836-0.774,2.949-0.777,4.73-2.627C21.913,18.838,19.566,18.398,20.402,17.626zM10.973,16.868l-0.42-0.504c1.497,0.358,3.162,0.827,4.498,0.837l0.058,0.554C13.964,17.646,11.544,17.137,10.973,16.868zM18.161,8.58l-1.396-0.74L14.53,9.594l-1.067-3.192l-1.177,2.545L8.998,9.25l0.036-1.352c0-0.324,1.895-2.596,3.05-3.136l2.112-1.401c0.312-0.186,0.53-0.261,0.727-0.257c0.327,0.011,0.593,0.239,1.112,0.55l4.748,3.25c0.357,0.215,0.619,0.522,0.626,0.898l-2.813-1.254L18.161,8.58zM26.434,19.594c-0.313-0.07-1.688-0.691-2.035,0.165c0.968,0.981,2.645,2.181,3.316,1.482C28.391,20.543,27.102,19.745,26.434,19.594zM4.663,21.566c-0.315,0.074-1.842,0.115-1.719,1.021c1.351,0.451,3.438,0.792,3.684-0.113C6.873,21.566,5.33,21.414,4.663,21.566zM17.877,26.396c-0.232,0.209-1.53,0.953-0.929,1.681c1.413-0.236,3.403-0.914,3.12-1.812C19.786,25.369,18.37,25.953,17.877,26.396z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.InkScape\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.InkScape();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ipad.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Ipad.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ipad = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ipad\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.221,1.417H6.11c-0.865,0-1.566,0.702-1.566,1.566v25.313c0,0.865,0.701,1.565,1.566,1.565h19.111c0.865,0,1.565-0.7,1.565-1.565V2.984C26.787,2.119,26.087,1.417,25.221,1.417zM15.666,29.299c-0.346,0-0.626-0.279-0.626-0.625s0.281-0.627,0.626-0.627c0.346,0,0.627,0.281,0.627,0.627S16.012,29.299,15.666,29.299zM24.376,26.855c0,0.174-0.142,0.312-0.313,0.312H7.27c-0.173,0-0.313-0.142-0.313-0.312V4.3c0-0.173,0.14-0.313,0.313-0.313h16.792c0.172,0,0.312,0.14,0.312,0.313L24.376,26.855L24.376,26.855z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ipad\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ipad();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Iphone.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Iphone.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Iphone = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Iphone\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.755,1H10.62C9.484,1,8.562,1.921,8.562,3.058v24.385c0,1.136,0.921,2.058,2.058,2.058h10.135c1.136,0,2.058-0.922,2.058-2.058V3.058C22.812,1.921,21.891,1,20.755,1zM14.659,3.264h2.057c0.101,0,0.183,0.081,0.183,0.18c0,0.1-0.082,0.18-0.183,0.18h-2.057c-0.1,0-0.181-0.081-0.181-0.18C14.478,3.344,14.559,3.264,14.659,3.264zM13.225,3.058c0.199,0,0.359,0.162,0.359,0.36c0,0.198-0.161,0.36-0.359,0.36c-0.2,0-0.36-0.161-0.36-0.36S13.025,3.058,13.225,3.058zM15.688,28.473c-0.796,0-1.44-0.646-1.44-1.438c0-0.799,0.645-1.439,1.44-1.439s1.44,0.646,1.44,1.439S16.483,28.473,15.688,28.473zM22.041,24.355c0,0.17-0.139,0.309-0.309,0.309H9.642c-0.17,0-0.308-0.139-0.308-0.309V6.042c0-0.17,0.138-0.309,0.308-0.309h12.09c0.17,0,0.309,0.138,0.309,0.309V24.355z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Iphone\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Iphone();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/JQuery.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/JQuery.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.JQuery = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.JQuery\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M10.322,23.041C4.579,18.723,2.777,11.07,5.494,4.583c-0.254,0.291-0.502,0.59-0.739,0.904c-5.177,6.887-4.008,16.505,2.613,21.482c6.62,4.979,16.184,3.432,21.362-3.455c0.237-0.314,0.454-0.635,0.663-0.959C23.915,26.963,16.064,27.357,10.322,23.041zM13.662,18.598c4.765,3.582,11.604,2.564,15.567-2.198c-3.609,2.641-9.09,2.475-13.361-0.736S9.916,7.231,11.451,3.03C7.976,8.161,8.897,15.015,13.662,18.598zM18.642,11.976c3.254,2.447,8.146,1.438,10.967-2.242c-2.604,1.921-6.341,1.955-9.157-0.164c-2.819-2.118-3.826-5.718-2.701-8.754C14.998,4.549,15.387,9.528,18.642,11.976z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.JQuery\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.JQuery();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Jigsaw.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Jigsaw.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Jigsaw = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Jigsaw\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M3.739,13.619c0,0,3.516-4.669,5.592-3.642c2.077,1.027-0.414,2.795,1.598,3.719c2.011,0.924,5.048-0.229,4.376-2.899c-0.672-2.67-1.866-0.776-2.798-2.208c-0.934-1.432,4.586-4.59,4.586-4.59s3.361,6.651,4.316,4.911c1.157-2.105,3.193-4.265,5.305-1.025c0,0,1.814,2.412,0.246,3.434s-2.917,0.443-3.506,1.553c-0.586,1.112,3.784,4.093,3.784,4.093s-2.987,4.81-4.926,3.548c-1.939-1.262,0.356-3.364-2.599-3.989c-1.288-0.23-3.438,0.538-3.818,2.34c-0.13,2.709,1.604,2.016,2.797,3.475c1.191,1.457-4.484,4.522-4.484,4.522s-1.584-3.923-3.811-4.657c-2.227-0.735-0.893,2.135-2.917,2.531c-2.024,0.396-4.816-2.399-3.46-4.789c1.358-2.391,3.275-0.044,3.441-1.951C7.629,16.087,3.739,13.619,3.739,13.619z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Jigsaw\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Jigsaw();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Key.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Key.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Key = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Key\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M18.386,16.009l0.009-0.006l-0.58-0.912c1.654-2.226,1.876-5.319,0.3-7.8c-2.043-3.213-6.303-4.161-9.516-2.118c-3.212,2.042-4.163,6.302-2.12,9.517c1.528,2.402,4.3,3.537,6.944,3.102l0.424,0.669l0.206,0.045l0.779-0.447l-0.305,1.377l2.483,0.552l-0.296,1.325l1.903,0.424l-0.68,3.06l1.406,0.313l-0.424,1.906l4.135,0.918l0.758-3.392L18.386,16.009z M10.996,8.944c-0.685,0.436-1.593,0.233-2.029-0.452C8.532,7.807,8.733,6.898,9.418,6.463s1.594-0.233,2.028,0.452C11.883,7.6,11.68,8.509,10.996,8.944z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Key\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Key();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Lab.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Lab.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Lab = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Lab\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.121,24.438l-3.362-7.847c-0.329-0.769-0.599-2.081-0.599-2.917s0.513-1.521,1.14-1.521s1.141-0.513,1.141-1.14s-0.685-1.14-1.521-1.14h-6.84c-0.836,0-1.52,0.513-1.52,1.14s0.513,1.14,1.14,1.14s1.14,0.685,1.14,1.521s-0.269,2.148-0.599,2.917l-3.362,7.847C8.55,25.206,8.28,26.177,8.28,26.595s0.342,1.103,0.76,1.521s1.444,0.76,2.28,0.76h8.359c0.836,0,1.862-0.342,2.28-0.76s0.76-1.103,0.76-1.521S22.45,25.206,22.121,24.438zM16.582,7.625c0,0.599,0.484,1.083,1.083,1.083s1.083-0.484,1.083-1.083s-0.484-1.084-1.083-1.084S16.582,7.026,16.582,7.625zM13.667,7.792c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5s-0.5,0.224-0.5,0.5S13.391,7.792,13.667,7.792zM15.584,5.292c0.874,0,1.583-0.709,1.583-1.583c0-0.875-0.709-1.584-1.583-1.584C14.709,2.125,14,2.834,14,3.709C14,4.583,14.709,5.292,15.584,5.292z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Lab\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Lab();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Lamp.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Lamp.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Lamp = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Lamp\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,2.833c-3.866,0-7,3.134-7,7c0,3.859,3.945,4.937,4.223,9.499h5.553c0.278-4.562,4.224-5.639,4.224-9.499C22.5,5.968,19.366,2.833,15.5,2.833zM15.5,28.166c1.894,0,2.483-1.027,2.667-1.666h-5.334C13.017,27.139,13.606,28.166,15.5,28.166zM12.75,25.498h5.5v-5.164h-5.5V25.498z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Lamp\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Lamp();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Lamp_alt.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Lamp_alt.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Lamp_alt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Lamp_alt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M12.75,25.498h5.5v-5.164h-5.5V25.498zM15.5,28.166c1.894,0,2.483-1.027,2.667-1.666h-5.334C13.017,27.139,13.606,28.166,15.5,28.166zM15.5,2.833c-3.866,0-7,3.134-7,7c0,3.859,3.945,4.937,4.223,9.499h1.271c-0.009-0.025-0.024-0.049-0.029-0.078L11.965,8.256c-0.043-0.245,0.099-0.485,0.335-0.563c0.237-0.078,0.494,0.026,0.605,0.25l0.553,1.106l0.553-1.106c0.084-0.17,0.257-0.277,0.446-0.277c0.189,0,0.362,0.107,0.446,0.277l0.553,1.106l0.553-1.106c0.084-0.17,0.257-0.277,0.448-0.277c0.189,0,0.36,0.107,0.446,0.277l0.554,1.106l0.553-1.106c0.111-0.224,0.368-0.329,0.604-0.25s0.377,0.318,0.333,0.563l-1.999,10.998c-0.005,0.029-0.02,0.053-0.029,0.078h1.356c0.278-4.562,4.224-5.639,4.224-9.499C22.5,5.968,19.366,2.833,15.5,2.833zM17.458,10.666c-0.191,0-0.364-0.107-0.446-0.275l-0.554-1.106l-0.553,1.106c-0.086,0.168-0.257,0.275-0.446,0.275c-0.191,0-0.364-0.107-0.449-0.275l-0.553-1.106l-0.553,1.106c-0.084,0.168-0.257,0.275-0.446,0.275c-0.012,0-0.025,0-0.037-0.001l1.454,8.001h1.167l1.454-8.001C17.482,10.666,17.47,10.666,17.458,10.666z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Lamp_alt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Lamp_alt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Landing.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Landing.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Landing = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Landing\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.322,19.491c0,0,1.903,0.342,0.299-1.869c-1.353-1.866-5.261-3.104-5.261-3.104l-4.213-8.229l-2.47-0.394l0.973,5.449L9.241,10.11L8.772,7.273L7.008,6.302c0,0-0.496,2.742-0.149,5.271C6.859,11.573,13.965,17.999,23.322,19.491zM3.251,23.106v1.998h24.498v-1.998H3.251zM14,17.94c0,0.414,0.336,0.75,0.75,0.75s0.75-0.336,0.75-0.75s-0.336-0.75-0.75-0.75S14,17.526,14,17.94z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Landing\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Landing();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Landscape1.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/Landscape1.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Landscape1 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Landscape1\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M19.883,5.71H2.746c-0.163,0-0.319,0.071-0.435,0.188c-0.118,0.117-0.18,0.272-0.18,0.435v18.364c0,0.164,0.063,0.318,0.18,0.436c0.123,0.117,0.287,0.18,0.435,0.18h25.75c0.164,0,0.324-0.066,0.438-0.18c0.118-0.114,0.182-0.273,0.182-0.436V14.551c-0.002-0.102-0.01-0.188-0.021-0.271c-0.186-1.543-1.543-3.424-3.236-5.168C24.039,7.31,21.869,5.753,19.883,5.71zM26.914,12.314c-0.008-0.005-0.019-0.007-0.029-0.01c-1.092-0.293-2.33-0.355-3.199-0.355c-0.162,0-0.312,0.002-0.445,0.004c-0.037-0.604-0.129-1.604-0.356-2.625c-0.11-0.461-0.246-0.94-0.433-1.42c0.857,0.541,1.748,1.264,2.535,2.068C25.74,10.718,26.41,11.551,26.914,12.314zM3.365,6.947h16.517c0.058,0,0.12,0,0.183,0.004c0.694,0.105,1.307,1.221,1.616,2.646c0.335,1.484,0.354,2.997,0.354,3l0.007,0.656l0.651-0.051c0,0,0.398-0.027,0.99-0.025c0.809,0,1.977,0.062,2.871,0.312c0.939,0.275,1.352,0.635,1.326,1.051h0.002v9.542H3.365V6.951V6.947z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Landscape1\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Landscape1();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Landscape2.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/Landscape2.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Landscape2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Landscape2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M19.883,5.71H2.746c-0.163,0-0.319,0.071-0.435,0.188c-0.118,0.117-0.18,0.272-0.18,0.435v18.364c0,0.164,0.063,0.318,0.18,0.436c0.123,0.117,0.287,0.18,0.435,0.18h25.75c0.164,0,0.324-0.066,0.438-0.18c0.118-0.114,0.182-0.273,0.182-0.436V14.551c-0.002-0.102-0.01-0.188-0.021-0.271c-0.186-1.543-1.543-3.424-3.236-5.168C24.039,7.31,21.869,5.753,19.883,5.71zM3.365,6.947h16.517c0.058,0,0.12,0,0.183,0.004c0.694,0.105,1.307,1.221,1.616,2.646c0.335,1.484,0.354,2.997,0.354,3l0.007,0.656l0.651-0.051c0,0,0.398-0.027,0.99-0.025c0.809,0,1.977,0.062,2.871,0.312c0.939,0.275,1.352,0.635,1.326,1.051h0.002v9.542H3.365V6.951V6.947z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Landscape2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Landscape2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/LineChart.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/LineChart.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.LineChart = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.LineChart\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M3.625,25.062c-0.539-0.115-0.885-0.646-0.77-1.187l0,0L6.51,6.584l2.267,9.259l1.923-5.188l3.581,3.741l3.883-13.103l2.934,11.734l1.96-1.509l5.271,11.74c0.226,0.504,0,1.095-0.505,1.321l0,0c-0.505,0.227-1.096,0-1.322-0.504l0,0l-4.23-9.428l-2.374,1.826l-1.896-7.596l-2.783,9.393l-3.754-3.924L8.386,22.66l-1.731-7.083l-1.843,8.711c-0.101,0.472-0.515,0.794-0.979,0.794l0,0C3.765,25.083,3.695,25.076,3.625,25.062L3.625,25.062z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.LineChart\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.LineChart();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Link.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Link.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Link = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Link\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16.45,18.085l-2.47,2.471c0.054,1.023-0.297,2.062-1.078,2.846c-1.465,1.459-3.837,1.459-5.302-0.002c-1.461-1.465-1.46-3.836-0.001-5.301c0.783-0.781,1.824-1.131,2.847-1.078l2.469-2.469c-2.463-1.057-5.425-0.586-7.438,1.426c-2.634,2.637-2.636,6.907,0,9.545c2.638,2.637,6.909,2.635,9.545,0l0.001,0.002C17.033,23.511,17.506,20.548,16.45,18.085zM14.552,12.915l2.467-2.469c-0.053-1.023,0.297-2.062,1.078-2.848C19.564,6.139,21.934,6.137,23.4,7.6c1.462,1.465,1.462,3.837,0,5.301c-0.783,0.783-1.822,1.132-2.846,1.079l-2.469,2.468c2.463,1.057,5.424,0.584,7.438-1.424c2.634-2.639,2.633-6.91,0-9.546c-2.639-2.636-6.91-2.637-9.545-0.001C13.967,7.489,13.495,10.451,14.552,12.915zM18.152,10.727l-7.424,7.426c-0.585,0.584-0.587,1.535,0,2.121c0.585,0.584,1.536,0.584,2.121-0.002l7.425-7.424c0.584-0.586,0.584-1.535,0-2.121C19.687,10.141,18.736,10.142,18.152,10.727z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Link\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Link();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/LinkedIn.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/LinkedIn.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.LinkedIn = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.LinkedIn\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.25,3.125h-22c-1.104,0-2,0.896-2,2v22c0,1.104,0.896,2,2,2h22c1.104,0,2-0.896,2-2v-22C29.25,4.021,28.354,3.125,27.25,3.125zM11.219,26.781h-4v-14h4V26.781zM9.219,11.281c-1.383,0-2.5-1.119-2.5-2.5s1.117-2.5,2.5-2.5s2.5,1.119,2.5,2.5S10.602,11.281,9.219,11.281zM25.219,26.781h-4v-8.5c0-0.4-0.403-1.055-0.687-1.213c-0.375-0.211-1.261-0.229-1.665-0.034l-1.648,0.793v8.954h-4v-14h4v0.614c1.583-0.723,3.78-0.652,5.27,0.184c1.582,0.886,2.73,2.864,2.73,4.702V26.781z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.LinkedIn\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.LinkedIn();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Linux.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Linux.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Linux = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Linux\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M11.791,25.229c1.027-0.104,1.162-1.191,0.68-1.666c-0.398-0.392-2.598-2.022-3.171-2.664C9.033,20.6,8.673,20.454,8.52,20.12c-0.352-0.771-0.598-1.869-0.151-2.658c0.081-0.144,0.133-0.078,0.071,0.22c-0.351,1.684,0.746,3.059,0.986,2.354c0.167-0.487,0.013-1.358,0.102-2.051c0.158-1.226,1.273-3.577,1.763-3.712c-0.755-1.398,0.886-2.494,0.866-3.723c-0.014-0.798,0.701,0.982,1.419,1.359c0.802,0.422,1.684-0.794,2.936-1.41c0.354-0.176,0.809-0.376,0.776-0.524c-0.146-0.718-1.644,0.886-2.979,0.939c-0.61,0.024-0.837-0.12-1.072-0.347c-0.712-0.689,0.073-0.115,1.132-0.307c0.471-0.085,0.629-0.163,1.128-0.365c0.5-0.201,1.069-0.5,1.636-0.654c0.395-0.106,0.361-0.402,0.208-0.491c-0.088-0.051-0.219-0.046-0.321,0.133c-0.244,0.419-1.383,0.661-1.74,0.771c-0.457,0.14-0.962,0.271-1.634,0.243c-1.021-0.042-0.782-0.509-1.513-0.928c-0.213-0.122-0.156-0.444,0.129-0.729c0.148-0.148,0.557-0.232,0.76-0.572c0.028-0.047,0.289-0.32,0.494-0.461c0.07-0.049,0.076-1.295-0.562-1.32c-0.543-0.021-0.697,0.398-0.675,0.818c0.022,0.419,0.245,0.765,0.393,0.764c0.285-0.004,0.019,0.311-0.138,0.361c-0.237,0.078-0.562-0.934-0.525-1.418c0.039-0.506,0.303-1.4,0.942-1.383c0.576,0.016,0.993,0.737,0.973,1.983c-0.003,0.211,0.935-0.101,1.247,0.229c0.224,0.236-0.767-2.207,1.438-2.375c0.582,0.111,1.14,0.305,1.371,1.641c-0.086,0.139,0.146,1.07-0.215,1.182c-0.438,0.135-0.707-0.02-0.453-0.438c0.172-0.418,0.004-1.483-0.882-1.42c-0.887,0.064-0.769,1.637-0.526,1.668c0.243,0.031,0.854,0.465,1.282,0.549c1.401,0.271,0.371,1.075,0.555,2.048c0.205,1.099,0.929,0.809,1.578,3.717c0.137,0.177,0.676,0.345,1.199,2.579c0.473,2.011-0.195,3.473,0.938,3.353c0.256-0.026,0.629-0.1,0.792-0.668c0.425-1.489-0.213-3.263-0.855-4.46c-0.375-0.698-0.729-1.174-0.916-1.337c0.738,0.436,1.683,1.829,1.898,2.862c0.286,1.358,0.49,1.934,0.059,3.37c0.25,0.125,0.871,0.39,0.871,0.685c-0.647-0.53-2.629-0.625-2.68,0.646c-0.338,0.008-0.594,0.034-0.811,0.293c-0.797,0.944-0.059,2.842-0.139,3.859c-0.07,0.896-0.318,1.783-0.46,2.683c-0.474-0.019-0.428-0.364-0.274-0.852c0.135-0.431,0.351-0.968,0.365-1.484c0.012-0.467-0.039-0.759-0.156-0.831c-0.118-0.072-0.303,0.074-0.559,0.485c-0.543,0.875-1.722,1.261-2.821,1.397c-1.099,0.138-2.123,0.028-2.664-0.578c-0.186-0.207-0.492,0.058-0.529,0.111c-0.049,0.074,0.18,0.219,0.352,0.533c0.251,0.461,0.49,1.159-0.105,1.479C12.83,26.314,12.316,26.221,11.791,25.229L11.791,25.229zM11.398,25.188c0.395,0.621,1.783,3.232-0.652,3.571c-0.814,0.114-2.125-0.474-3.396-0.784c-1.142-0.279-2.301-0.444-2.949-0.627c-0.391-0.108-0.554-0.25-0.588-0.414c-0.091-0.434,0.474-1.041,0.503-1.555c0.028-0.514-0.188-0.779-0.364-1.199c-0.177-0.42-0.224-0.734-0.081-0.914c0.109-0.141,0.334-0.199,0.698-0.164c0.462,0.047,1.02-0.049,1.319-0.23c0.505-0.309,0.742-0.939,0.516-1.699c0,0.744-0.244,1.025-0.855,1.366c-0.577,0.319-1.467,0.062-1.875,0.416c-0.492,0.427,0.175,1.528,0.12,2.338c-0.042,0.622-0.69,1.322-0.401,1.946c0.291,0.627,1.648,0.695,3.064,0.99c2.012,0.422,3.184,1.153,4.113,1.188c1.356,0.05,1.564-1.342,3.693-1.36c0.621-0.033,1.229-0.052,1.835-0.06c0.688-0.009,1.375-0.003,2.079,0.014c1.417,0.034,0.931,0.773,1.851,1.246c0.774,0.397,2.17,0.241,2.504-0.077c0.451-0.431,1.662-1.467,2.592-1.935c1.156-0.583,3.876-1.588,1.902-2.812c-0.461-0.285-1.547-0.588-1.639-2.676c-0.412,0.366-0.365,2.312,0.784,2.697c1.283,0.431,2.085,1.152-0.301,1.969c-1.58,0.54-1.849,0.706-3.099,1.747c-1.267,1.054-3.145,0.636-2.815-1.582c0.171-1.155,0.269-2.11-0.019-3.114c-0.142-0.49-0.211-1.119-0.114-1.562c0.187-0.858,0.651-1.117,1.106-0.293c0.285,0.519,0.385,1.122,1.408,1.171c1.607,0.077,1.926-1.553,2.439-1.627c0.343-0.05,0.686-1.02,0.425-2.589c-0.28-1.681-1.269-4.332-2.536-5.677c-1.053-1.118-1.717-2.098-2.135-3.497c-0.352-1.175-0.547-2.318-0.475-3.412c0.094-1.417-0.691-3.389-1.943-4.316c-0.782-0.581-2.011-0.893-3.122-0.88c-0.623,0.007-1.21,0.099-1.661,0.343c-1.855,1.008-2.113,2.445-2.086,4.088c0.025,1.543,0.078,3.303,0.254,4.977c-0.208,0.77-1.288,2.227-1.979,3.114C8.59,14.233,8.121,16.01,7.52,17.561c-0.321,0.828-0.862,1.2-0.908,2.265C6.6,20.122,6.61,20.891,6.894,20.672C7.98,19.829,9.343,21.95,11.398,25.188L11.398,25.188zM17.044,2.953c-0.06,0.176-0.3,0.321-0.146,0.443c0.152,0.123,0.24-0.171,0.549-0.281c0.08-0.028,0.449,0.012,0.519-0.164c0.03-0.077-0.19-0.164-0.321-0.291c-0.133-0.125-0.262-0.236-0.386-0.229C16.938,2.451,17.096,2.798,17.044,2.953L17.044,2.953zM18.934,9.35c0.115-0.121,0.174,0.207,0.483,0.402c0.244,0.154,0.481,0.04,0.545,0.354c0.044,0.225-0.097,0.467-0.284,0.436C19.35,10.486,18.596,9.705,18.934,9.35L18.934,9.35zM13.832,7.375c-0.508-0.037-0.543,0.33-0.375,0.324C13.629,7.693,13.523,7.408,13.832,7.375L13.832,7.375zM12.96,6.436c0.06-0.013,0.146,0.09,0.119,0.233c-0.037,0.199-0.021,0.324,0.117,0.325c0.022,0,0.048-0.005,0.056-0.057c0.066-0.396-0.14-0.688-0.225-0.711C12.834,6.178,12.857,6.458,12.96,6.436L12.96,6.436zM16.663,6.268c0.129,0.039,0.253,0.262,0.28,0.504c0.002,0.021,0.168-0.035,0.17-0.088c0.011-0.389-0.321-0.571-0.408-0.562C16.506,6.139,16.562,6.238,16.663,6.268L16.663,6.268zM14.765,7.423c0.463-0.214,0.625,0.118,0.465,0.171C15.066,7.648,15.065,7.345,14.765,7.423L14.765,7.423zM9.178,15.304c-0.219-0.026,0.063-0.19,0.184-0.397c0.131-0.227,0.105-0.511,0.244-0.469s0.061,0.2-0.033,0.461C9.491,15.121,9.258,15.313,9.178,15.304L9.178,15.304z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Linux\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Linux();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/List.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/List.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.List = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.List\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.082,4.083v2.999h22.835V4.083H4.082zM4.082,20.306h22.835v-2.999H4.082V20.306zM4.082,13.694h22.835v-2.999H4.082V13.694zM4.082,26.917h22.835v-2.999H4.082V26.917z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.List\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.List();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Location.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Location.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Location = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Location\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,3.5c-4.142,0-7.5,3.358-7.5,7.5c0,4.143,7.5,18.121,7.5,18.121S23.5,15.143,23.5,11C23.5,6.858,20.143,3.5,16,3.5z M16,14.584c-1.979,0-3.584-1.604-3.584-3.584S14.021,7.416,16,7.416S19.584,9.021,19.584,11S17.979,14.584,16,14.584z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Location\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Location();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Lock.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Lock.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Lock = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Lock\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.335,12.833V9.999h-0.001C22.333,6.501,19.498,3.666,16,3.666S9.666,6.502,9.666,10h0v2.833H7.375V25h17.25V12.833H22.335zM11.667,10C11.667,10,11.667,10,11.667,10c0-2.39,1.944-4.334,4.333-4.334c2.391,0,4.335,1.944,4.335,4.333c0,0,0,0,0,0v2.834h-8.668V10z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Lock\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Lock();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Locked.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Locked.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Locked = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Locked\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.711,14.085L16.914,4.29c-0.778-0.778-2.051-0.778-2.829,0L4.29,14.086c-0.778,0.778-0.778,2.05,0,2.829l9.796,9.796c0.778,0.777,2.051,0.777,2.829,0l9.797-9.797C27.488,16.136,27.488,14.863,26.711,14.085zM8.218,16.424c-0.4-0.153-0.687-0.533-0.687-0.987s0.287-0.834,0.687-0.987V16.424zM8.969,16.424v-1.974c0.4,0.152,0.687,0.533,0.687,0.987S9.369,16.272,8.969,16.424zM13.5,19.188l1.203-3.609c-0.689-0.306-1.172-0.994-1.172-1.797c0-1.087,0.881-1.969,1.969-1.969c1.087,0,1.969,0.881,1.969,1.969c0,0.803-0.482,1.491-1.172,1.797l1.203,3.609H13.5zM22.03,16.549c-0.399-0.152-0.687-0.533-0.687-0.986s0.287-0.834,0.687-0.987V16.549zM22.781,16.549v-1.973c0.4,0.152,0.688,0.533,0.688,0.987S23.182,16.397,22.781,16.549z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Locked\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Locked();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Magic.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Magic.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Magic = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Magic\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.043,4.649l-0.404-2.312l-1.59,1.727l-2.323-0.33l1.151,2.045l-1.032,2.108l2.302-0.463l1.686,1.633l0.271-2.332l2.074-1.099L23.043,4.649zM26.217,18.198l-0.182-1.25l-0.882,0.905l-1.245-0.214l0.588,1.118l-0.588,1.118l1.245-0.214l0.882,0.905l0.182-1.25l1.133-0.56L26.217,18.198zM4.92,7.672L5.868,7.3l0.844,0.569L6.65,6.853l0.802-0.627L6.467,5.97L6.118,5.013L5.571,5.872L4.553,5.908l0.647,0.786L4.92,7.672zM10.439,10.505l1.021-1.096l1.481,0.219l-0.727-1.31l0.667-1.341l-1.47,0.287l-1.069-1.048L10.16,7.703L8.832,8.396l1.358,0.632L10.439,10.505zM17.234,12.721c-0.588-0.368-1.172-0.618-1.692-0.729c-0.492-0.089-1.039-0.149-1.425,0.374L2.562,30.788h6.68l9.669-15.416c0.303-0.576,0.012-1.041-0.283-1.447C18.303,13.508,17.822,13.09,17.234,12.721zM13.613,21.936c-0.254-0.396-0.74-0.857-1.373-1.254c-0.632-0.396-1.258-0.634-1.726-0.69l4.421-7.052c0.064-0.013,0.262-0.021,0.543,0.066c0.346,0.092,0.785,0.285,1.225,0.562c0.504,0.313,0.908,0.677,1.133,0.97c0.113,0.145,0.178,0.271,0.195,0.335c0.002,0.006,0.004,0.011,0.004,0.015L13.613,21.936z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Magic\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Magic();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Magnet.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Magnet.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Magnet = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Magnet\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.812,19.5h5.002v-6.867c-0.028-1.706-0.61-3.807-2.172-5.841c-1.539-2.014-4.315-3.72-7.939-3.687C12.076,3.073,9.3,4.779,7.762,6.792C6.2,8.826,5.617,10.928,5.588,12.634V19.5h5v-6.866c-0.027-0.377,0.303-1.789,1.099-2.748c0.819-0.979,1.848-1.747,4.014-1.778c2.165,0.032,3.195,0.799,4.013,1.778c0.798,0.959,1.126,2.372,1.099,2.748V19.5L20.812,19.5zM25.814,25.579c0,0,0-2.354,0-5.079h-5.002c0,2.727,0,5.08,0,5.08l5.004-0.001H25.814zM5.588,25.58h5c0,0,0-2.354,0-5.08h-5C5.588,23.227,5.588,25.58,5.588,25.58z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Magnet\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Magnet();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Mail.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Mail.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Mail = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Mail\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.516,7.167H3.482l12.517,7.108L28.516,7.167zM16.74,17.303C16.51,17.434,16.255,17.5,16,17.5s-0.51-0.066-0.741-0.197L2.5,10.06v14.773h27V10.06L16.74,17.303z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Mail\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Mail();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Man.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Man.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Man = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Man\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.021,16.349c-0.611-1.104-1.359-1.998-2.109-2.623c-0.875,0.641-1.941,1.031-3.103,1.031c-1.164,0-2.231-0.391-3.105-1.031c-0.75,0.625-1.498,1.519-2.111,2.623c-1.422,2.563-1.578,5.192-0.35,5.874c0.55,0.307,1.127,0.078,1.723-0.496c-0.105,0.582-0.166,1.213-0.166,1.873c0,2.932,1.139,5.307,2.543,5.307c0.846,0,1.265-0.865,1.466-2.189c0.201,1.324,0.62,2.189,1.463,2.189c1.406,0,2.545-2.375,2.545-5.307c0-0.66-0.061-1.291-0.168-1.873c0.598,0.574,1.174,0.803,1.725,0.496C22.602,21.541,22.443,18.912,21.021,16.349zM15.808,13.757c2.362,0,4.278-1.916,4.278-4.279s-1.916-4.279-4.278-4.279c-2.363,0-4.28,1.916-4.28,4.279S13.445,13.757,15.808,13.757z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Man\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Man();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Merge.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Merge.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Merge = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Merge\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M29.342,15.5l-7.556-4.363v2.613h-1.411c-0.788-0.01-1.331-0.241-2.019-0.743c-1.021-0.745-2.094-2.181-3.551-3.568C13.367,8.06,11.291,6.73,8.5,6.749H2.812v3.5H8.5c2.231,0.012,3.441,1.185,5.07,2.934c0.697,0.753,1.428,1.58,2.324,2.323c-1.396,1.165-2.412,2.516-3.484,3.501c-1.183,1.081-2.202,1.723-3.912,1.741H2.813v3.5h5.716c3.752,0.001,6.035-2.319,7.619-4.066c0.817-0.895,1.537-1.691,2.209-2.191c0.686-0.502,1.23-0.732,2.017-0.742h1.412v2.614L29.342,15.5z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Merge\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Merge();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Mic.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Mic.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Mic = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Mic\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,21.125c2.682,0,4.875-2.25,4.875-5V5.875c0-2.75-2.193-5-4.875-5s-4.875,2.25-4.875,5v10.25C10.625,18.875,12.818,21.125,15.5,21.125zM21.376,11v5.125c0,3.308-2.636,6-5.876,6s-5.875-2.691-5.875-6V11H6.626v5.125c0,4.443,3.194,8.132,7.372,8.861v2.139h-3.372v3h9.749v-3h-3.376v-2.139c4.181-0.727,7.375-4.418,7.375-8.861V11H21.376z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Mic\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Mic();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/MicMute.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/MicMute.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.MicMute = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.MicMute\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M10.121,18.529c-0.317-0.736-0.496-1.549-0.496-2.404V11H6.626v5.125c0,1.693,0.466,3.275,1.272,4.627L10.121,18.529zM20.375,8.276V5.875c0-2.75-2.193-5-4.875-5s-4.875,2.25-4.875,5v10.25c0,0.568,0.113,1.105,0.285,1.615L20.375,8.276zM21.376,12.931v3.195c0,3.308-2.636,6-5.876,6c-0.958,0-1.861-0.24-2.661-0.657l-2.179,2.179c0.995,0.659,2.123,1.128,3.338,1.34v2.139h-3.372v3h9.749v-3h-3.376v-2.139c4.181-0.727,7.375-4.418,7.375-8.861V11h-1.068L21.376,12.931zM20.375,16.125v-2.194l-6.788,6.788c0.588,0.26,1.234,0.405,1.913,0.405C18.182,21.125,20.375,18.875,20.375,16.125zM25.542,4.522L4.855,25.209l1.415,1.416L26.956,5.937L25.542,4.522z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.MicMute\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.MicMute();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Minus.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Minus.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Minus = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Minus\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.979,12.896,5.979,12.896,5.979,19.562,25.979,19.562z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Minus\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Minus();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/NewWindow.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/NewWindow.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.NewWindow = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.NewWindow\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M5.896,5.333V21.25h23.417V5.333H5.896zM26.312,18.25H8.896V8.334h17.417V18.25L26.312,18.25zM4.896,9.542H1.687v15.917h23.417V22.25H4.896V9.542z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.NewWindow\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.NewWindow();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/No.js\":\n/*!******************************!*\\\n !*** ./src/shape/icon/No.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.No = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.No\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,2.939C9.006,2.942,3.338,8.61,3.335,15.605C3.335,22.6,9.005,28.268,16,28.27c6.994-0.002,12.662-5.67,12.664-12.664C28.663,8.61,22.995,2.939,16,2.939zM25.663,15.605c-0.003,1.943-0.583,3.748-1.569,5.264L10.736,7.513c1.515-0.988,3.32-1.569,5.265-1.573C21.337,5.951,25.654,10.269,25.663,15.605zM6.335,15.605c0.004-1.943,0.584-3.75,1.573-5.266l13.355,13.357c-1.516,0.986-3.32,1.566-5.264,1.569C10.664,25.26,6.346,20.941,6.335,15.605z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.No\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.No();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/NoMagnet.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/NoMagnet.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.NoMagnet = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.NoMagnet\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M10.59,17.857v-5.225c-0.027-0.376,0.303-1.789,1.099-2.748c0.819-0.979,1.849-1.748,4.014-1.778c1.704,0.026,2.699,0.508,3.447,1.189l3.539-3.539c-1.616-1.526-4.01-2.679-6.986-2.652C12.077,3.073,9.3,4.779,7.762,6.793C6.2,8.826,5.617,10.928,5.59,12.634V19.5h3.357L10.59,17.857zM5.59,20.5v2.357L7.947,20.5H5.59zM20.812,13.29v6.21h5.002v-6.866c-0.021-1.064-0.252-2.283-0.803-3.542L20.812,13.29zM25.339,4.522L4.652,25.209l1.415,1.416L26.753,5.937L25.339,4.522zM20.812,25.58h5.002c0,0,0-2.354,0-5.08h-5.002C20.812,23.227,20.812,25.58,20.812,25.58zM10.59,25.58c0,0,0-0.827,0-2.064L8.525,25.58H10.59z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.NoMagnet\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.NoMagnet();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/NodeJs.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/NodeJs.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.NodeJs = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.NodeJs\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.783,4.458L2.59,3.196C2.553,3.174,2.511,3.163,2.469,3.161H2.447C2.405,3.163,2.363,3.174,2.326,3.196L0.133,4.458C0.051,4.505,0,4.593,0,4.688l0.005,3.398c0,0.047,0.024,0.092,0.066,0.114c0.041,0.024,0.091,0.024,0.132,0l1.303-0.746c0.083-0.049,0.132-0.136,0.132-0.229V5.637c0-0.095,0.05-0.183,0.132-0.229l0.555-0.32c0.041-0.023,0.086-0.035,0.132-0.035c0.045,0,0.092,0.012,0.132,0.035l0.555,0.32c0.082,0.047,0.133,0.135,0.133,0.229v1.588c0,0.094,0.051,0.182,0.132,0.229l1.303,0.746c0.041,0.024,0.092,0.024,0.132,0c0.041-0.022,0.066-0.067,0.066-0.114l0.004-3.398C4.915,4.593,4.865,4.505,4.783,4.458zM17.93,0.745l-1.305-0.729c-0.042-0.023-0.091-0.022-0.132,0.001c-0.041,0.024-0.065,0.067-0.065,0.114v3.365c0,0.033-0.018,0.064-0.046,0.081s-0.064,0.017-0.093,0l-0.549-0.316c-0.082-0.047-0.183-0.047-0.265,0l-2.193,1.266c-0.082,0.047-0.133,0.135-0.133,0.229V7.29c0,0.095,0.051,0.182,0.132,0.229l2.194,1.267c0.082,0.048,0.183,0.048,0.265,0l2.194-1.267c0.082-0.048,0.133-0.135,0.133-0.229V0.977C18.066,0.88,18.014,0.792,17.93,0.745zM16.421,6.458c0,0.023-0.013,0.045-0.033,0.057l-0.753,0.435c-0.021,0.012-0.045,0.012-0.066,0l-0.753-0.435c-0.021-0.012-0.033-0.034-0.033-0.057v-0.87c0-0.023,0.013-0.045,0.033-0.058l0.753-0.435c0.021-0.012,0.045-0.012,0.066,0l0.753,0.435c0.021,0.012,0.033,0.034,0.033,0.058V6.458zM24.473,4.493l-2.18-1.266c-0.082-0.047-0.183-0.048-0.265,0l-2.193,1.266c-0.082,0.047-0.132,0.135-0.132,0.229v2.532c0,0.096,0.051,0.184,0.133,0.23l2.18,1.242c0.08,0.045,0.179,0.046,0.26,0.001l1.318-0.732c0.042-0.023,0.067-0.067,0.068-0.115c0-0.048-0.025-0.092-0.066-0.116l-2.207-1.266c-0.041-0.023-0.066-0.067-0.066-0.115V5.59c0-0.047,0.025-0.091,0.065-0.115l0.688-0.396c0.041-0.024,0.091-0.024,0.132,0l0.688,0.396c0.041,0.023,0.066,0.067,0.066,0.115v0.625c0,0.047,0.025,0.091,0.066,0.114c0.041,0.024,0.092,0.024,0.132,0l1.314-0.764c0.081-0.047,0.132-0.135,0.132-0.229V4.722C24.605,4.628,24.555,4.541,24.473,4.493zM11.363,4.48L9.169,3.214c-0.082-0.047-0.183-0.047-0.265,0L6.711,4.48C6.629,4.527,6.579,4.615,6.579,4.709v2.534c0,0.095,0.051,0.182,0.133,0.229l2.193,1.267c0.082,0.048,0.183,0.048,0.265,0l2.193-1.267c0.082-0.048,0.132-0.135,0.132-0.229V4.709C11.495,4.615,11.445,4.527,11.363,4.48zM31.019,4.382L28.95,3.187c-0.13-0.074-0.304-0.074-0.435,0l-2.068,1.195c-0.135,0.077-0.218,0.222-0.218,0.377v2.386c0,0.156,0.083,0.301,0.218,0.378l0.542,0.312c0.263,0.13,0.356,0.13,0.477,0.13c0.389,0,0.612-0.236,0.612-0.646V4.962c0-0.033-0.027-0.06-0.06-0.06h-0.263c-0.033,0-0.061,0.026-0.061,0.06v2.356c0,0.182-0.188,0.363-0.495,0.209l-0.566-0.326c-0.021-0.012-0.033-0.033-0.033-0.057V4.759c0-0.023,0.013-0.045,0.033-0.057l2.067-1.193c0.019-0.011,0.044-0.011,0.063,0l2.067,1.193c0.02,0.012,0.032,0.034,0.032,0.057v2.386c0,0.023-0.013,0.046-0.032,0.057l-2.068,1.193c-0.018,0.012-0.045,0.012-0.063,0l-0.53-0.314c-0.017-0.01-0.036-0.013-0.052-0.004c-0.146,0.083-0.175,0.094-0.312,0.143c-0.034,0.012-0.084,0.031,0.019,0.09l0.691,0.408c0.065,0.038,0.141,0.059,0.217,0.059s0.151-0.021,0.218-0.059l2.068-1.194c0.134-0.078,0.217-0.222,0.217-0.378V4.759C31.235,4.604,31.152,4.459,31.019,4.382zM29.371,6.768c-0.548,0-0.668-0.138-0.708-0.41c-0.005-0.029-0.029-0.051-0.06-0.051h-0.268c-0.033,0-0.06,0.026-0.06,0.06c0,0.349,0.189,0.765,1.095,0.765c0.655,0,1.031-0.259,1.031-0.709c0-0.447-0.302-0.566-0.938-0.65c-0.643-0.085-0.708-0.128-0.708-0.279c0-0.125,0.056-0.29,0.531-0.29c0.425,0,0.581,0.091,0.646,0.378c0.006,0.027,0.03,0.047,0.059,0.047h0.269c0.017,0,0.032-0.007,0.044-0.019c0.011-0.013,0.017-0.029,0.016-0.046c-0.042-0.493-0.37-0.723-1.032-0.723c-0.59,0-0.941,0.249-0.941,0.666c0,0.453,0.35,0.578,0.916,0.634c0.677,0.066,0.729,0.166,0.729,0.298C29.992,6.669,29.807,6.768,29.371,6.768zM22.128,5.446l-0.42,0.243c-0.016,0.009-0.025,0.026-0.025,0.044v0.486c0,0.019,0.01,0.035,0.025,0.044l0.42,0.243c0.016,0.009,0.035,0.009,0.052,0l0.421-0.243c0.016-0.009,0.025-0.025,0.025-0.044V5.733c0-0.018-0.01-0.035-0.025-0.044L22.18,5.446C22.163,5.438,22.144,5.438,22.128,5.446z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.NodeJs\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.NodeJs();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Notebook.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Notebook.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Notebook = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Notebook\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.875,1.375H8c-1.033,0-1.874,0.787-1.979,1.792h1.604c1.102,0,2,0.898,2,2c0,1.102-0.898,2-2,2H6v0.999h1.625c1.104,0,2.002,0.898,2.002,2.002c0,1.104-0.898,2.001-2.002,2.001H6v0.997h1.625c1.102,0,2,0.898,2,2c0,1.104-0.898,2.004-2,2.004H6v0.994h1.625c1.102,0,2,0.898,2,2.002s-0.898,2.002-2,2.002H6v0.997h1.624c1.104,0,2.002,0.897,2.002,2.001c0,1.104-0.898,2.002-2.002,2.002H6.004C6.027,28.252,6.91,29.125,8,29.125h16.875c1.104,0,2-0.896,2-2V3.375C26.875,2.271,25.979,1.375,24.875,1.375zM25.25,8.375c0,0.552-0.447,1-1,1H14c-0.553,0-1-0.448-1-1V4c0-0.552,0.447-1,1-1h10.25c0.553,0,1,0.448,1,1V8.375zM8.625,25.166c0-0.554-0.449-1.001-1-1.001h-3.25c-0.552,0-1,0.447-1,1.001c0,0.552,0.449,1,1,1h3.25C8.176,26.166,8.625,25.718,8.625,25.166zM4.375,6.166h3.251c0.551,0,0.999-0.448,0.999-0.999c0-0.555-0.448-1-0.999-1H4.375c-0.553,0-1,0.445-1,1C3.374,5.718,3.822,6.166,4.375,6.166zM4.375,11.167h3.25c0.553,0,1-0.448,1-1s-0.448-1-1-1h-3.25c-0.553,0-1,0.448-1,1S3.822,11.167,4.375,11.167zM4.375,16.167h3.25c0.551,0,1-0.448,1-1.001s-0.448-0.999-1-0.999h-3.25c-0.553,0-1.001,0.446-1.001,0.999S3.822,16.167,4.375,16.167zM3.375,20.165c0,0.553,0.446,1.002,1,1.002h3.25c0.551,0,1-0.449,1-1.002c0-0.552-0.448-1-1-1h-3.25C3.821,19.165,3.375,19.613,3.375,20.165z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Notebook\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Notebook();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Noview.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Noview.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Noview = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Noview\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M11.478,17.568c-0.172-0.494-0.285-1.017-0.285-1.568c0-2.65,2.158-4.807,4.807-4.807c0.552,0,1.074,0.113,1.568,0.285l2.283-2.283C18.541,8.647,17.227,8.286,16,8.286C8.454,8.286,2.5,16,2.5,16s2.167,2.791,5.53,5.017L11.478,17.568zM23.518,11.185l-3.056,3.056c0.217,0.546,0.345,1.138,0.345,1.76c0,2.648-2.158,4.807-4.807,4.807c-0.622,0-1.213-0.128-1.76-0.345l-2.469,2.47c1.327,0.479,2.745,0.783,4.229,0.783c5.771,0,13.5-7.715,13.5-7.715S26.859,13.374,23.518,11.185zM25.542,4.917L4.855,25.604L6.27,27.02L26.956,6.332L25.542,4.917z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Noview\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Noview();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Opera.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Opera.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Opera = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Opera\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.954,2.046c-7.489,0-12.872,5.432-12.872,13.581c0,7.25,5.234,13.835,12.873,13.835c7.712,0,12.974-6.583,12.974-13.835C28.929,7.413,23.375,2.046,15.954,2.046zM15.952,26.548L15.952,26.548c-2.289,0-3.49-1.611-4.121-3.796c-0.284-1.037-0.458-2.185-0.563-3.341c-0.114-1.374-0.129-2.773-0.129-4.028c0-0.993,0.018-1.979,0.074-2.926c0.124-1.728,0.386-3.431,0.89-4.833c0.694-1.718,1.871-2.822,3.849-2.822c2.5,0,3.763,1.782,4.385,4.322c0.429,1.894,0.56,4.124,0.56,6.274c0,2.299-0.103,5.153-0.763,7.442C19.473,24.979,18.242,26.548,15.952,26.548z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Opera\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Opera();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Package.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Package.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Package = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Package\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M17.078,22.004l-1.758-4.129l-2.007,4.752l-7.519-3.289l0.174,3.905l9.437,4.374l10.909-5.365l-0.149-4.989L17.078,22.004zM29.454,6.619L18.521,3.383l-3.006,2.671l-3.091-2.359L1.546,8.199l3.795,3.048l-3.433,5.302l10.879,4.757l2.53-5.998l2.257,5.308l11.393-5.942l-3.105-4.709L29.454,6.619zM15.277,14.579l-9.059-3.83l9.275-4.101l9.608,3.255L15.277,14.579z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Package\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Package();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Page.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Page.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Page = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Page\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.024,5.673c-1.744-1.694-3.625-3.051-5.168-3.236c-0.084-0.012-0.171-0.019-0.263-0.021H7.438c-0.162,0-0.322,0.063-0.436,0.18C6.889,2.71,6.822,2.87,6.822,3.033v25.75c0,0.162,0.063,0.317,0.18,0.435c0.117,0.116,0.271,0.179,0.436,0.179h18.364c0.162,0,0.317-0.062,0.434-0.179c0.117-0.117,0.182-0.272,0.182-0.435V11.648C26.382,9.659,24.824,7.49,23.024,5.673zM25.184,28.164H8.052V3.646h9.542v0.002c0.416-0.025,0.775,0.386,1.05,1.326c0.25,0.895,0.313,2.062,0.312,2.871c0.002,0.593-0.027,0.991-0.027,0.991l-0.049,0.652l0.656,0.007c0.003,0,1.516,0.018,3,0.355c1.426,0.308,2.541,0.922,2.645,1.617c0.004,0.062,0.005,0.124,0.004,0.182V28.164z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Page\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Page();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Page2.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Page2.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Page2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Page2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.024,5.673c-1.744-1.694-3.625-3.051-5.168-3.236c-0.084-0.012-0.171-0.019-0.263-0.021H7.438c-0.162,0-0.322,0.063-0.436,0.18C6.889,2.71,6.822,2.87,6.822,3.033v25.75c0,0.162,0.063,0.317,0.18,0.435c0.117,0.116,0.271,0.179,0.436,0.179h18.364c0.162,0,0.317-0.062,0.434-0.179c0.117-0.117,0.182-0.272,0.182-0.435V11.648C26.382,9.659,24.824,7.49,23.024,5.673zM22.157,6.545c0.805,0.786,1.529,1.676,2.069,2.534c-0.468-0.185-0.959-0.322-1.42-0.431c-1.015-0.228-2.008-0.32-2.625-0.357c0.003-0.133,0.004-0.283,0.004-0.446c0-0.869-0.055-2.108-0.356-3.2c-0.003-0.01-0.005-0.02-0.009-0.03C20.584,5.119,21.416,5.788,22.157,6.545zM25.184,28.164H8.052V3.646h9.542v0.002c0.416-0.025,0.775,0.386,1.05,1.326c0.25,0.895,0.313,2.062,0.312,2.871c0.002,0.593-0.027,0.991-0.027,0.991l-0.049,0.652l0.656,0.007c0.003,0,1.516,0.018,3,0.355c1.426,0.308,2.541,0.922,2.645,1.617c0.004,0.062,0.005,0.124,0.004,0.182V28.164z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Page2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Page2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Pallete.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Pallete.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Pallete = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Pallete\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.653,7.25c-3.417,0-8.577,0.983-8.577,3.282c0,1.91,2.704,3.229,1.691,3.889c-1.02,0.666-2.684-1.848-4.048-1.848c-1.653,0-2.815,1.434-2.815,2.926c0,4.558,6.326,8.25,13.749,8.25c7.424,0,13.443-3.692,13.443-8.25C29.096,10.944,23.077,7.25,15.653,7.25zM10.308,13.521c0-0.645,0.887-1.166,1.98-1.166c1.093,0,1.979,0.521,1.979,1.166c0,0.644-0.886,1.166-1.979,1.166C11.195,14.687,10.308,14.164,10.308,13.521zM14.289,22.299c-1.058,0-1.914-0.68-1.914-1.518s0.856-1.518,1.914-1.518c1.057,0,1.914,0.68,1.914,1.518S15.346,22.299,14.289,22.299zM19.611,21.771c-1.057,0-1.913-0.681-1.913-1.519c0-0.84,0.856-1.521,1.913-1.521c1.059,0,1.914,0.681,1.914,1.521C21.525,21.092,20.67,21.771,19.611,21.771zM20.075,10.66c0-0.838,0.856-1.518,1.914-1.518s1.913,0.68,1.913,1.518c0,0.839-0.855,1.518-1.913,1.518C20.934,12.178,20.075,11.499,20.075,10.66zM24.275,19.482c-1.057,0-1.914-0.681-1.914-1.519s0.857-1.518,1.914-1.518c1.059,0,1.914,0.68,1.914,1.518S25.334,19.482,24.275,19.482zM25.286,15.475c-1.058,0-1.914-0.68-1.914-1.519c0-0.838,0.856-1.518,1.914-1.518c1.057,0,1.913,0.68,1.913,1.518C27.199,14.795,26.343,15.475,25.286,15.475z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Pallete\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Pallete();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Palm.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Palm.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Palm = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Palm\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.296,27.885v-2.013c0,0-0.402-1.408-1.073-2.013c-0.671-0.604-1.274-1.274-1.409-1.61c0,0-0.268,0.135-0.737-0.335s-1.812-2.616-1.812-2.616l-0.671-0.872c0,0-0.47-0.671-1.275-1.342c-0.805-0.672-0.938-0.067-1.476-0.738s0.604-1.275,1.006-1.409c0.403-0.134,1.946,0.134,2.684,0.872c0.738,0.738,0.738,0.738,0.738,0.738l1.073,1.141l0.537,0.201l0.671-1.073l-0.269-2.281c0,0-0.604-2.55-0.737-4.764c-0.135-2.214-0.47-5.703,1.006-5.837s1.007,2.55,1.073,3.489c0.067,0.938,0.806,5.232,1.208,5.568c0.402,0.335,0.671,0.066,0.671,0.066l0.402-7.514c0,0-0.479-2.438,1.073-2.549c0.939-0.067,0.872,1.543,0.872,2.147c0,0.604,0.269,7.514,0.269,7.514l0.537,0.135c0,0,0.402-2.214,0.604-3.153s0.604-2.416,0.537-3.087c-0.067-0.671-0.135-2.348,1.006-2.348s0.872,1.812,0.939,2.415s-0.134,3.153-0.134,3.757c0,0.604-0.738,3.623-0.537,3.824s2.08-2.817,2.349-3.958c0.268-1.141,0.201-3.02,1.408-2.885c1.208,0.134,0.47,2.817,0.402,3.086c-0.066,0.269-0.671,2.349-0.872,2.952s-0.805,1.476-1.006,2.013s0.402,2.349,0,4.629c-0.402,2.281-1.61,5.166-1.61,5.166l0.604,2.08c0,0-1.744,0.671-3.824,0.805C16.443,28.221,14.296,27.885,14.296,27.885z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Palm\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Palm();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Paper.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Paper.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Paper = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Paper\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.916,8.009L15.953,1.888c-0.251-0.119-0.548-0.115-0.798,0.008c-0.25,0.125-0.433,0.357-0.491,0.629c-0.002,0.01-1.04,4.83-2.578,9.636c-0.526,1.646-1.114,3.274-1.728,4.704l1.665,0.786c2-4.643,3.584-11.052,4.181-13.614l11.264,5.316c-0.346,1.513-1.233,5.223-2.42,8.927c-0.767,2.399-1.665,4.797-2.585,6.532c-0.889,1.79-1.958,2.669-2.197,2.552c-1.419,0.03-2.418-1.262-3.09-2.918c-0.32-0.803-0.53-1.63-0.657-2.246c-0.127-0.618-0.166-1.006-0.168-1.006c-0.034-0.317-0.232-0.597-0.52-0.731l-12.962-6.12c-0.301-0.142-0.654-0.11-0.925,0.081c-0.27,0.193-0.416,0.518-0.38,0.847c0.008,0.045,0.195,1.848,0.947,3.736c0.521,1.321,1.406,2.818,2.845,3.575l12.956,6.131l0.006-0.013c0.562,0.295,1.201,0.487,1.947,0.496c1.797-0.117,2.777-1.668,3.818-3.525c3-5.69,5.32-16.602,5.338-16.642C29.512,8.615,29.302,8.19,28.916,8.009z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Paper\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Paper();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Parent.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Parent.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Parent = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Parent\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.423,12.17c-0.875,0.641-1.941,1.031-3.102,1.031c-1.164,0-2.231-0.391-3.104-1.031c-0.75,0.625-1.498,1.519-2.111,2.623c-1.422,2.563-1.578,5.192-0.35,5.874c0.549,0.312,1.127,0.078,1.723-0.496c-0.105,0.582-0.166,1.213-0.166,1.873c0,2.938,1.139,5.312,2.543,5.312c0.846,0,1.265-0.865,1.466-2.188c0.2,1.314,0.62,2.188,1.461,2.188c1.396,0,2.545-2.375,2.545-5.312c0-0.66-0.062-1.291-0.168-1.873c0.6,0.574,1.176,0.812,1.726,0.496c1.227-0.682,1.068-3.311-0.354-5.874C15.921,13.689,15.173,12.795,14.423,12.17zM11.32,12.201c2.361,0,4.277-1.916,4.277-4.279s-1.916-4.279-4.277-4.279c-2.363,0-4.28,1.916-4.28,4.279S8.957,12.201,11.32,12.201zM21.987,17.671c1.508,0,2.732-1.225,2.732-2.735c0-1.51-1.225-2.735-2.732-2.735c-1.511,0-2.736,1.225-2.736,2.735C19.251,16.446,20.477,17.671,21.987,17.671zM25.318,19.327c-0.391-0.705-0.869-1.277-1.349-1.677c-0.56,0.41-1.24,0.659-1.982,0.659c-0.744,0-1.426-0.25-1.983-0.659c-0.479,0.399-0.958,0.972-1.35,1.677c-0.909,1.638-1.009,3.318-0.224,3.754c0.351,0.2,0.721,0.05,1.101-0.317c-0.067,0.372-0.105,0.775-0.105,1.197c0,1.878,0.728,3.396,1.625,3.396c0.54,0,0.808-0.553,0.937-1.398c0.128,0.841,0.396,1.398,0.934,1.398c0.893,0,1.627-1.518,1.627-3.396c0-0.422-0.04-0.825-0.107-1.197c0.383,0.367,0.752,0.52,1.104,0.317C26.328,22.646,26.227,20.965,25.318,19.327z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Parent\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Parent();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Pc.js\":\n/*!******************************!*\\\n !*** ./src/shape/icon/Pc.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Pc = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Pc\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M29.249,3.14h-9.188l-0.459,0.459v18.225l0.33,2.389H19.57v0.245h-0.307v-0.306h-0.611v0.244h-0.311v-0.367h-0.486v0.307h-1.104l-2.022-0.367v-0.92h0.858l0.302-1.47h2.728c0.188,0,0.339-0.152,0.339-0.339V7.828c0-0.187-0.149-0.338-0.339-0.338H1.591c-0.187,0-0.339,0.152-0.339,0.338V21.24c0,0.187,0.152,0.339,0.339,0.339h3.016l0.199,1.47h1.409l-3.4,3.4L2.11,27.951c0,0,2.941,1.102,6.678,1.102c3.737,0,9.679-0.857,10.476-0.857s4.84,0,4.84,0v-1.225l-0.137-1.068h1.744c-0.2,0.106-0.322,0.244-0.322,0.396v0.979c0,0.341,0.604,0.613,1.352,0.613c0.742,0,1.348-0.272,1.348-0.613v-0.979c0-0.339-0.604-0.611-1.348-0.611c-0.188,0-0.364,0.019-0.525,0.049v-0.17h-2.29l-0.055-0.432h5.382L29.249,3.14L29.249,3.14zM2.478,20.17V8.714h15.07V20.17H2.478z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Pc\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Pc();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Pen.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Pen.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Pen = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Pen\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M13.587,12.074c-0.049-0.074-0.11-0.147-0.188-0.202c-0.333-0.243-0.803-0.169-1.047,0.166c-0.244,0.336-0.167,0.805,0.167,1.048c0.303,0.22,0.708,0.167,0.966-0.091l-7.086,9.768l-2.203,7.997l6.917-4.577L26.865,4.468l-4.716-3.42l-1.52,2.096c-0.087-0.349-0.281-0.676-0.596-0.907c-0.73-0.529-1.751-0.369-2.28,0.363C14.721,6.782,16.402,7.896,13.587,12.074zM10.118,25.148L6.56,27.503l1.133-4.117L10.118,25.148zM14.309,11.861c2.183-3.225,1.975-4.099,3.843-6.962c0.309,0.212,0.664,0.287,1.012,0.269L14.309,11.861z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Pen\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Pen();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Pensil.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Pensil.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Pensil = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Pensil\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.31,2.872l-3.384-2.127c-0.854-0.536-1.979-0.278-2.517,0.576l-1.334,2.123l6.474,4.066l1.335-2.122C26.42,4.533,26.164,3.407,25.31,2.872zM6.555,21.786l6.474,4.066L23.581,9.054l-6.477-4.067L6.555,21.786zM5.566,26.952l-0.143,3.819l3.379-1.787l3.14-1.658l-6.246-3.925L5.566,26.952z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Pensil\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Pensil();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/People.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/People.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.People = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.People\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.066,20.667c1.227-0.682,1.068-3.311-0.354-5.874c-0.611-1.104-1.359-1.998-2.109-2.623c-0.875,0.641-1.941,1.031-3.102,1.031c-1.164,0-2.231-0.391-3.104-1.031c-0.75,0.625-1.498,1.519-2.111,2.623c-1.422,2.563-1.578,5.192-0.35,5.874c0.549,0.312,1.127,0.078,1.723-0.496c-0.105,0.582-0.166,1.213-0.166,1.873c0,2.938,1.139,5.312,2.543,5.312c0.846,0,1.265-0.865,1.466-2.188c0.2,1.314,0.62,2.188,1.461,2.188c1.396,0,2.545-2.375,2.545-5.312c0-0.66-0.062-1.291-0.168-1.873C19.939,20.745,20.516,20.983,21.066,20.667zM15.5,12.201c2.361,0,4.277-1.916,4.277-4.279S17.861,3.644,15.5,3.644c-2.363,0-4.28,1.916-4.28,4.279S13.137,12.201,15.5,12.201zM24.094,14.914c1.938,0,3.512-1.573,3.512-3.513c0-1.939-1.573-3.513-3.512-3.513c-1.94,0-3.513,1.573-3.513,3.513C20.581,13.341,22.153,14.914,24.094,14.914zM28.374,17.043c-0.502-0.907-1.116-1.641-1.732-2.154c-0.718,0.526-1.594,0.846-2.546,0.846c-0.756,0-1.459-0.207-2.076-0.55c0.496,1.093,0.803,2.2,0.861,3.19c0.093,1.516-0.381,2.641-1.329,3.165c-0.204,0.117-0.426,0.183-0.653,0.224c-0.056,0.392-0.095,0.801-0.095,1.231c0,2.412,0.935,4.361,2.088,4.361c0.694,0,1.039-0.71,1.204-1.796c0.163,1.079,0.508,1.796,1.199,1.796c1.146,0,2.09-1.95,2.09-4.361c0-0.542-0.052-1.06-0.139-1.538c0.492,0.472,0.966,0.667,1.418,0.407C29.671,21.305,29.541,19.146,28.374,17.043zM6.906,14.914c1.939,0,3.512-1.573,3.512-3.513c0-1.939-1.573-3.513-3.512-3.513c-1.94,0-3.514,1.573-3.514,3.513C3.392,13.341,4.966,14.914,6.906,14.914zM9.441,21.536c-1.593-0.885-1.739-3.524-0.457-6.354c-0.619,0.346-1.322,0.553-2.078,0.553c-0.956,0-1.832-0.321-2.549-0.846c-0.616,0.513-1.229,1.247-1.733,2.154c-1.167,2.104-1.295,4.262-0.287,4.821c0.451,0.257,0.925,0.064,1.414-0.407c-0.086,0.479-0.136,0.996-0.136,1.538c0,2.412,0.935,4.361,2.088,4.361c0.694,0,1.039-0.71,1.204-1.796c0.165,1.079,0.509,1.796,1.201,1.796c1.146,0,2.089-1.95,2.089-4.361c0-0.432-0.04-0.841-0.097-1.233C9.874,21.721,9.651,21.656,9.441,21.536z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.People\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.People();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Phone.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Phone.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Phone = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Phone\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.065,18.53c-0.467-0.29-1.167-0.21-1.556,0.179l-3.093,3.092c-0.389,0.389-1.025,0.389-1.414,0L9.05,14.848c-0.389-0.389-0.389-1.025,0-1.414l2.913-2.912c0.389-0.389,0.447-1.075,0.131-1.524L6.792,1.485C6.476,1.036,5.863,0.948,5.433,1.29c0,0-4.134,3.281-4.134,6.295c0,12.335,10,22.334,22.334,22.334c3.015,0,5.948-5.533,5.948-5.533c0.258-0.486,0.087-1.122-0.38-1.412L22.065,18.53z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Phone\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Phone();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Photo.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Photo.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Photo = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Photo\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.25,10.25H20.5v-1.5h-9.375v1.5h-3.75c-1.104,0-2,0.896-2,2v10.375c0,1.104,0.896,2,2,2H24.25c1.104,0,2-0.896,2-2V12.25C26.25,11.146,25.354,10.25,24.25,10.25zM15.812,23.499c-3.342,0-6.06-2.719-6.06-6.061c0-3.342,2.718-6.062,6.06-6.062s6.062,2.72,6.062,6.062C21.874,20.78,19.153,23.499,15.812,23.499zM15.812,13.375c-2.244,0-4.062,1.819-4.062,4.062c0,2.244,1.819,4.062,4.062,4.062c2.244,0,4.062-1.818,4.062-4.062C19.875,15.194,18.057,13.375,15.812,13.375z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Photo\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Photo();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Picker.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Picker.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Picker = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Picker\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.221,10.853c-0.111-0.414-0.261-0.412,0.221-1.539l1.66-3.519c0.021-0.051,0.2-0.412,0.192-0.946c0.015-0.529-0.313-1.289-1.119-1.642c-1.172-0.555-1.17-0.557-2.344-1.107c-0.784-0.396-1.581-0.171-1.979,0.179c-0.42,0.333-0.584,0.7-0.609,0.75L16.58,6.545c-0.564,1.084-0.655,0.97-1.048,1.147c-0.469,0.129-1.244,0.558-1.785,1.815c-1.108,2.346-1.108,2.346-1.108,2.346l-0.276,0.586l1.17,0.553l-3.599,7.623c-0.38,0.828-0.166,1.436-0.166,2.032c0.01,0.627-0.077,1.509-0.876,3.21l-0.276,0.586l3.517,1.661l0.276-0.585c0.808-1.699,1.431-2.326,1.922-2.717c0.46-0.381,1.066-0.6,1.465-1.42l3.599-7.618l1.172,0.554l0.279-0.589c0,0,0,0,1.105-2.345C22.578,12.166,22.419,11.301,22.221,10.853zM14.623,22.83c-0.156,0.353-0.413,0.439-1.091,0.955c-0.577,0.448-1.264,1.172-2.009,2.6l-1.191-0.562c0.628-1.48,0.75-2.474,0.73-3.203c-0.031-0.851-0.128-1.104,0.045-1.449l3.599-7.621l3.517,1.662L14.623,22.83z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Picker\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Picker();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Picture.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Picture.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Picture = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Picture\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M2.5,4.833v22.334h27V4.833H2.5zM25.25,25.25H6.75V6.75h18.5V25.25zM11.25,14c1.426,0,2.583-1.157,2.583-2.583c0-1.427-1.157-2.583-2.583-2.583c-1.427,0-2.583,1.157-2.583,2.583C8.667,12.843,9.823,14,11.25,14zM24.251,16.25l-4.917-4.917l-6.917,6.917L10.5,16.333l-2.752,2.752v5.165h16.503V16.25z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Picture\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Picture();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/PieChart.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/PieChart.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.PieChart = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.PieChart\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.583,15.917l1.648-10.779C16.692,5.056,16.145,5,15.583,5C9.554,5,4.666,9.888,4.666,15.917c0,6.029,4.888,10.917,10.917,10.917S26.5,21.946,26.5,15.917c0-0.256-0.021-0.507-0.038-0.759L15.583,15.917zM19.437,3.127l-1.648,10.779l10.879-0.759C28.313,8.026,24.436,3.886,19.437,3.127z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.PieChart\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.PieChart();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Plane.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Plane.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Plane = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Plane\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M19.671,8.11l-2.777,2.777l-3.837-0.861c0.362-0.505,0.916-1.683,0.464-2.135c-0.518-0.517-1.979,0.278-2.305,0.604l-0.913,0.913L7.614,8.804l-2.021,2.021l2.232,1.061l-0.082,0.082l1.701,1.701l0.688-0.687l3.164,1.504L9.571,18.21H6.413l-1.137,1.138l3.6,0.948l1.83,1.83l0.947,3.598l1.137-1.137V21.43l3.725-3.725l1.504,3.164l-0.687,0.687l1.702,1.701l0.081-0.081l1.062,2.231l2.02-2.02l-0.604-2.689l0.912-0.912c0.326-0.326,1.121-1.789,0.604-2.306c-0.452-0.452-1.63,0.101-2.135,0.464l-0.861-3.838l2.777-2.777c0.947-0.947,3.599-4.862,2.62-5.839C24.533,4.512,20.618,7.163,19.671,8.11z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Plane\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Plane();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Plugin.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Plugin.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Plugin = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Plugin\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.33,15.836l-3.893-1.545l3.136-7.9c0.28-0.705-0.064-1.505-0.771-1.785c-0.707-0.28-1.506,0.065-1.785,0.771l-3.136,7.9l-4.88-1.937l3.135-7.9c0.281-0.706-0.064-1.506-0.77-1.786c-0.706-0.279-1.506,0.065-1.785,0.771l-3.136,7.9L8.554,8.781l-1.614,4.066l2.15,0.854l-2.537,6.391c-0.61,1.54,0.143,3.283,1.683,3.895l1.626,0.646L8.985,26.84c-0.407,1.025,0.095,2.188,1.122,2.596l0.93,0.369c1.026,0.408,2.188-0.095,2.596-1.121l0.877-2.207l1.858,0.737c1.54,0.611,3.284-0.142,3.896-1.682l2.535-6.391l1.918,0.761L26.33,15.836z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Plugin\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Plugin();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Plus.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Plus.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Plus = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Plus\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.979,12.896 19.312,12.896 19.312,6.229 12.647,6.229 12.647,12.896 5.979,12.896 5.979,19.562 12.647,19.562 12.647,26.229 19.312,26.229 19.312,19.562 25.979,19.562z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Plus\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Plus();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Power.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Power.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Power = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Power\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.542,8.354c-1.47-1.766-2.896-2.617-3.025-2.695c-0.954-0.565-2.181-0.241-2.739,0.724c-0.556,0.961-0.24,2.194,0.705,2.763c0,0,0.001,0,0.002,0.001c0.001,0,0.002,0.001,0.003,0.002c0.001,0,0.003,0.001,0.004,0.001c0.102,0.062,1.124,0.729,2.08,1.925c1.003,1.261,1.933,3.017,1.937,5.438c-0.001,2.519-1.005,4.783-2.64,6.438c-1.637,1.652-3.877,2.668-6.368,2.669c-2.491-0.001-4.731-1.017-6.369-2.669c-1.635-1.654-2.639-3.919-2.64-6.438c0.005-2.499,0.995-4.292,2.035-5.558c0.517-0.625,1.043-1.098,1.425-1.401c0.191-0.152,0.346-0.263,0.445-0.329c0.049-0.034,0.085-0.058,0.104-0.069c0.005-0.004,0.009-0.006,0.012-0.008s0.004-0.002,0.004-0.002l0,0c0.946-0.567,1.262-1.802,0.705-2.763c-0.559-0.965-1.785-1.288-2.739-0.724c-0.128,0.079-1.555,0.93-3.024,2.696c-1.462,1.751-2.974,4.511-2.97,8.157C2.49,23.775,8.315,29.664,15.5,29.667c7.186-0.003,13.01-5.892,13.012-13.155C28.516,12.864,27.005,10.105,25.542,8.354zM15.5,17.523c1.105,0,2.002-0.907,2.002-2.023h-0.001V3.357c0-1.118-0.896-2.024-2.001-2.024s-2.002,0.906-2.002,2.024V15.5C13.498,16.616,14.395,17.523,15.5,17.523z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Power\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Power();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ppt.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Ppt.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ppt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ppt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16.604,1.914c0-0.575-0.466-1.041-1.041-1.041s-1.041,0.466-1.041,1.041v1.04h2.082V1.914zM16.604,22.717h-2.082v3.207c0,0.574-4.225,4.031-4.225,4.031l2.468-0.003l2.807-2.673l3.013,2.693l2.272-0.039l-4.254-4.011V22.717L16.604,22.717zM28.566,7.113c0.86,0,1.56-0.698,1.56-1.56c0-0.861-0.698-1.56-1.56-1.56H2.561c-0.861,0-1.56,0.699-1.56,1.56c0,0.862,0.699,1.56,1.56,1.56h1.583v12.505l-0.932-0.022c-0.861,0-1.213,0.467-1.213,1.04c0,0.576,0.352,1.041,1.213,1.041h24.597c0.86,0,1.299-0.465,1.299-1.041c0-1.094-1.299-1.04-1.299-1.04l-0.804,0.109V7.113H28.566zM11.435,17.516c-3.771,0-4.194-4.191-4.194-4.191c0-4.096,4.162-4.161,4.162-4.161v4.161h4.193C15.596,17.516,11.435,17.516,11.435,17.516zM18.716,13.388h-1.071v-1.073h1.071V13.388zM18.716,10.267h-1.071V9.194h1.071V10.267zM23.314,13.388H20.26c-0.296,0-0.535-0.24-0.535-0.536c0-0.297,0.239-0.537,0.535-0.537h3.057c0.297,0,0.535,0.24,0.535,0.537C23.852,13.147,23.611,13.388,23.314,13.388zM23.314,10.267H20.26c-0.296,0-0.535-0.239-0.535-0.535c0-0.297,0.239-0.537,0.535-0.537h3.057c0.297,0,0.535,0.24,0.535,0.537C23.852,10.027,23.611,10.267,23.314,10.267z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ppt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ppt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Printer.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Printer.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Printer = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Printer\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.569,12.125h-2.12c-0.207-1.34-1.247-2.759-2.444-3.967c-1.277-1.24-2.654-2.234-3.784-2.37c-0.062-0.008-0.124-0.014-0.198-0.015H8.594c-0.119,0-0.235,0.047-0.319,0.132c-0.083,0.083-0.132,0.2-0.132,0.32v5.9H6.069c-1.104,0-2,0.896-2,2V23h4.074v2.079c0,0.118,0.046,0.23,0.132,0.318c0.086,0.085,0.199,0.131,0.319,0.131h13.445c0.118,0,0.232-0.046,0.318-0.131s0.138-0.199,0.138-0.318V23h4.074v-8.875C26.569,13.021,25.674,12.125,24.569,12.125zM21.589,24.626H9.043V21.5h12.546V24.626zM21.589,13.921c0-0.03,0-0.063-0.003-0.096c-0.015-0.068-0.062-0.135-0.124-0.2H9.043v-6.95h6.987v0.001c0.305-0.019,0.567,0.282,0.769,0.971c0.183,0.655,0.229,1.509,0.229,2.102c0.001,0.433-0.019,0.725-0.019,0.725l-0.037,0.478l0.48,0.005c0.002,0,1.109,0.014,2.196,0.26c1.044,0.226,1.86,0.675,1.938,1.184c0.003,0.045,0.003,0.091,0.003,0.133V13.921z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Printer\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Printer();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Quote.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Quote.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Quote = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Quote\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.505,5.873c-3.937,2.52-5.904,5.556-5.904,9.108c0,1.104,0.192,1.656,0.576,1.656l0.396-0.107c0.312-0.12,0.563-0.18,0.756-0.18c1.128,0,2.07,0.411,2.826,1.229c0.756,0.82,1.134,1.832,1.134,3.037c0,1.157-0.408,2.14-1.224,2.947c-0.816,0.807-1.801,1.211-2.952,1.211c-1.608,0-2.935-0.661-3.979-1.984c-1.044-1.321-1.565-2.98-1.565-4.977c0-2.259,0.443-4.327,1.332-6.203c0.888-1.875,2.243-3.57,4.067-5.085c1.824-1.514,2.988-2.272,3.492-2.272c0.336,0,0.612,0.162,0.828,0.486c0.216,0.324,0.324,0.606,0.324,0.846L14.505,5.873zM27.465,5.873c-3.937,2.52-5.904,5.556-5.904,9.108c0,1.104,0.192,1.656,0.576,1.656l0.396-0.107c0.312-0.12,0.563-0.18,0.756-0.18c1.104,0,2.04,0.411,2.808,1.229c0.769,0.82,1.152,1.832,1.152,3.037c0,1.157-0.408,2.14-1.224,2.947c-0.816,0.807-1.801,1.211-2.952,1.211c-1.608,0-2.935-0.661-3.979-1.984c-1.044-1.321-1.565-2.98-1.565-4.977c0-2.284,0.449-4.369,1.35-6.256c0.9-1.887,2.256-3.577,4.068-5.067c1.812-1.49,2.97-2.236,3.474-2.236c0.336,0,0.612,0.162,0.828,0.486c0.216,0.324,0.324,0.606,0.324,0.846L27.465,5.873z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Quote\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Quote();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Rain.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Rain.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Rain = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Rain\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.371,7.306c-0.092-3.924-3.301-7.077-7.248-7.079c-2.638,0.001-4.942,1.412-6.208,3.517c-0.595-0.327-1.28-0.517-2.01-0.517C7.626,3.229,5.772,5.033,5.689,7.293c-2.393,0.786-4.125,3.025-4.127,5.686c0,3.312,2.687,6,6,6v-0.002h15.874c3.312,0,6-2.688,6-6C29.434,10.34,27.732,8.11,25.371,7.306zM23.436,16.979H7.561c-2.209-0.006-3.997-1.792-4.001-4.001c-0.002-1.982,1.45-3.618,3.35-3.931c0.265-0.043,0.502-0.191,0.657-0.414C7.722,8.41,7.779,8.136,7.73,7.87C7.702,7.722,7.685,7.582,7.685,7.446C7.689,6.221,8.68,5.23,9.905,5.228c0.647,0,1.217,0.278,1.633,0.731c0.233,0.257,0.587,0.375,0.927,0.309c0.342-0.066,0.626-0.307,0.748-0.63c0.749-1.992,2.662-3.412,4.911-3.41c2.899,0.004,5.244,2.35,5.251,5.249c0,0.161-0.009,0.326-0.027,0.497c-0.049,0.517,0.305,0.984,0.815,1.079c1.86,0.344,3.274,1.966,3.271,3.923C27.43,15.186,25.645,16.973,23.436,16.979zM9.029,26.682c0-1.115,0.021-5.425,0.021-5.432c0.002-0.409-0.247-0.779-0.628-0.932c-0.38-0.152-0.815-0.059-1.099,0.24c-0.006,0.008-1.037,1.098-2.081,2.342c-0.523,0.627-1.048,1.287-1.463,1.896c-0.399,0.648-0.753,1.066-0.811,1.885C2.971,28.355,4.324,29.711,6,29.714C7.672,29.71,9.029,28.354,9.029,26.682zM4.971,26.727c0.091-0.349,1.081-1.719,1.993-2.764c0.025-0.029,0.051-0.061,0.076-0.089c-0.005,1.124-0.01,2.294-0.01,2.808c0,0.567-0.461,1.028-1.029,1.03C5.447,27.71,4.997,27.273,4.971,26.727zM16.425,26.682c0-1.115,0.021-5.424,0.021-5.43c0.002-0.41-0.247-0.779-0.628-0.934c-0.381-0.152-0.814-0.058-1.1,0.242c-0.006,0.008-1.035,1.094-2.08,2.342c-0.522,0.623-1.047,1.285-1.463,1.894c-0.399,0.649-0.753,1.068-0.809,1.888c0,1.672,1.354,3.028,3.029,3.028C15.068,29.711,16.425,28.354,16.425,26.682zM12.365,26.729c0.092-0.349,1.081-1.72,1.993-2.765c0.025-0.03,0.05-0.06,0.075-0.089c-0.005,1.123-0.011,2.294-0.011,2.807c-0.002,0.568-0.461,1.027-1.028,1.029C12.84,27.709,12.392,27.273,12.365,26.729zM23.271,20.317c-0.38-0.153-0.816-0.06-1.099,0.24c-0.009,0.008-1.037,1.097-2.08,2.342c-0.523,0.625-1.049,1.285-1.462,1.896c-0.402,0.649-0.754,1.067-0.812,1.886c0,1.672,1.354,3.029,3.03,3.029c1.673,0,3.027-1.357,3.027-3.029c0-1.115,0.022-5.425,0.022-5.431C23.9,20.84,23.651,20.47,23.271,20.317zM21.879,26.681c-0.004,0.568-0.463,1.027-1.031,1.029c-0.553-0.002-1.002-0.438-1.028-0.982c0.092-0.349,1.081-1.72,1.993-2.765c0.025-0.028,0.05-0.059,0.074-0.088C21.883,24.998,21.879,26.167,21.879,26.681z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Rain\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Rain();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Raphael.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Raphael.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Raphael = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Raphael\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.777,18.941c0.584-0.881,0.896-1.914,0.896-2.998c0-1.457-0.567-2.826-1.598-3.854l-6.91-6.911l-0.003,0.002c-0.985-0.988-2.35-1.6-3.851-1.6c-1.502,0-2.864,0.612-3.85,1.6H12.46l-6.911,6.911c-1.031,1.029-1.598,2.398-1.598,3.854c0,1.457,0.567,2.826,1.598,3.854l6.231,6.229c0.25,0.281,0.512,0.544,0.789,0.785c1.016,0.961,2.338,1.49,3.743,1.49c1.456,0,2.825-0.565,3.854-1.598l6.723-6.725c0.021-0.019,0.034-0.032,0.051-0.051l0.14-0.138c0.26-0.26,0.487-0.54,0.688-0.838c0.004-0.008,0.01-0.015,0.014-0.021L27.777,18.941zM26.658,15.946c0,0.678-0.197,1.326-0.561,1.879c-0.222,0.298-0.447,0.559-0.684,0.784L25.4,18.625c-1.105,1.052-2.354,1.35-3.414,1.35c-0.584,0-1.109-0.09-1.523-0.195c-2.422-0.608-5.056-2.692-6.261-5.732c0.649,0.274,1.362,0.426,2.11,0.426c2.811,0,5.129-2.141,5.415-4.877l3.924,3.925C26.301,14.167,26.658,15.029,26.658,15.946zM16.312,5.6c1.89,0,3.426,1.538,3.426,3.427c0,1.89-1.536,3.427-3.426,3.427c-1.889,0-3.426-1.537-3.426-3.427C12.886,7.138,14.423,5.6,16.312,5.6zM6.974,18.375c-0.649-0.648-1.007-1.512-1.007-2.429c0-0.917,0.357-1.78,1.007-2.428l2.655-2.656c-0.693,2.359-0.991,4.842-0.831,7.221c0.057,0.854,0.175,1.677,0.345,2.46L6.974,18.375zM11.514,11.592c0.583,4.562,4.195,9.066,8.455,10.143c0.693,0.179,1.375,0.265,2.033,0.265c0.01,0,0.02,0,0.027,0l-3.289,3.289c-0.648,0.646-1.512,1.006-2.428,1.006c-0.638,0-1.248-0.177-1.779-0.5l0.001-0.002c-0.209-0.142-0.408-0.295-0.603-0.461c-0.015-0.019-0.031-0.026-0.046-0.043l-0.665-0.664c-1.367-1.567-2.227-3.903-2.412-6.671C10.669,15.856,10.921,13.673,11.514,11.592\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Raphael\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Raphael();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ReflectH.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/ReflectH.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ReflectH = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ReflectH\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.57,20.273h0.854v-1.705H15.57V20.273zM15.57,23.686h0.854V21.98H15.57V23.686zM15.57,27.096h0.854v-1.705H15.57V27.096zM15.57,29.689h0.854V28.8H15.57V29.689zM15.57,16.865h0.854V15.16H15.57V16.865zM15.57,3.225h0.854V1.52H15.57V3.225zM15.57,6.635h0.854V4.93H15.57V6.635zM15.57,10.045h0.854V8.34H15.57V10.045zM15.57,13.455h0.854V11.75H15.57V13.455zM18.41,3.327V25.46h12.015L18.41,3.327zM19.264,6.68l9.729,17.93h-9.729V6.68zM13.535,25.46V3.327L1.521,25.46H13.535z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ReflectH\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ReflectH();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ReflectV.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/ReflectV.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ReflectV = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ReflectV\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.643,16.008v-0.854h-1.705v0.854H20.643zM24.053,16.008v-0.854h-1.705v0.854H24.053zM27.463,16.008v-0.854h-1.705v0.854H27.463zM30.059,16.008v-0.854h-0.891v0.854H30.059zM17.232,16.008v-0.854h-1.709v0.854H17.232zM3.593,16.008v-0.854H1.888v0.854H3.593zM7.003,16.008v-0.854H5.298v0.854H7.003zM10.414,16.008v-0.854H8.709v0.854H10.414zM13.824,16.008v-0.854h-1.705v0.854H13.824zM3.694,13.167h22.134V1.152L3.694,13.167zM7.048,12.314l17.929-9.729v9.729H7.048zM25.828,18.042H3.694l22.134,12.015V18.042z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ReflectV\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ReflectV();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Refresh.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Refresh.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Refresh = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Refresh\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.083,15.5c-0.009,4.739-3.844,8.574-8.583,8.583c-4.741-0.009-8.577-3.844-8.585-8.583c0.008-4.741,3.844-8.577,8.585-8.585c1.913,0,3.665,0.629,5.09,1.686l-1.782,1.783l8.429,2.256l-2.26-8.427l-1.89,1.89c-2.072-1.677-4.717-2.688-7.587-2.688C8.826,3.418,3.418,8.826,3.416,15.5C3.418,22.175,8.826,27.583,15.5,27.583S27.583,22.175,27.583,15.5H24.083z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Refresh\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Refresh();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Resize2.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Resize2.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Resize2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Resize2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M1.999,2.332v26.499H28.5V2.332H1.999zM26.499,26.832H4V12.5h8.167V4.332h14.332V26.832zM15.631,17.649l5.468,5.469l-1.208,1.206l5.482,1.469l-1.47-5.481l-1.195,1.195l-5.467-5.466l1.209-1.208l-5.482-1.469l1.468,5.48L15.631,17.649z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Resize2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Resize2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Rotate.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Rotate.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Rotate = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Rotate\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,5.27c1.914,0,3.666,0.629,5.089,1.686l-1.781,1.783l8.428,2.256l-2.26-8.427l-1.889,1.89C21.016,2.781,18.371,1.77,15.5,1.77C8.827,1.773,3.418,7.181,3.417,13.855c0.001,4.063,2.012,7.647,5.084,9.838v-4.887c-0.993-1.4-1.583-3.105-1.585-4.952C6.923,9.114,10.759,5.278,15.5,5.27zM9.5,29.23h12V12.355h-12V29.23z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Rotate\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Rotate();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Ruler.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Ruler.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Ruler = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Ruler\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M6.63,21.796l-5.122,5.121h25.743V1.175L6.63,21.796zM18.702,10.48c0.186-0.183,0.48-0.183,0.664,0l1.16,1.159c0.184,0.183,0.186,0.48,0.002,0.663c-0.092,0.091-0.213,0.137-0.332,0.137c-0.121,0-0.24-0.046-0.33-0.137l-1.164-1.159C18.519,10.96,18.519,10.664,18.702,10.48zM17.101,12.084c0.184-0.183,0.48-0.183,0.662,0l2.156,2.154c0.184,0.183,0.184,0.48,0.002,0.661c-0.092,0.092-0.213,0.139-0.334,0.139s-0.24-0.046-0.33-0.137l-2.156-2.154C16.917,12.564,16.917,12.267,17.101,12.084zM15.497,13.685c0.184-0.183,0.48-0.183,0.664,0l1.16,1.161c0.184,0.183,0.182,0.48-0.002,0.663c-0.092,0.092-0.211,0.138-0.33,0.138c-0.121,0-0.24-0.046-0.332-0.138l-1.16-1.16C15.314,14.166,15.314,13.868,15.497,13.685zM13.896,15.288c0.184-0.183,0.48-0.181,0.664,0.002l1.158,1.159c0.183,0.184,0.183,0.48,0,0.663c-0.092,0.092-0.212,0.138-0.332,0.138c-0.119,0-0.24-0.046-0.332-0.138l-1.158-1.161C13.713,15.767,13.713,15.471,13.896,15.288zM12.293,16.892c0.183-0.184,0.479-0.184,0.663,0l2.154,2.153c0.184,0.184,0.184,0.481,0,0.665c-0.092,0.092-0.211,0.138-0.33,0.138c-0.121,0-0.242-0.046-0.334-0.138l-2.153-2.155C12.11,17.371,12.11,17.075,12.293,16.892zM10.302,24.515c-0.091,0.093-0.212,0.139-0.332,0.139c-0.119,0-0.238-0.045-0.33-0.137l-2.154-2.153c-0.184-0.183-0.184-0.479,0-0.663s0.479-0.184,0.662,0l2.154,2.153C10.485,24.036,10.485,24.332,10.302,24.515zM10.912,21.918c-0.093,0.093-0.214,0.139-0.333,0.139c-0.12,0-0.24-0.045-0.33-0.137l-1.162-1.161c-0.184-0.183-0.184-0.479,0-0.66c0.184-0.185,0.48-0.187,0.664-0.003l1.161,1.162C11.095,21.438,11.095,21.735,10.912,21.918zM12.513,20.316c-0.092,0.092-0.211,0.138-0.332,0.138c-0.119,0-0.239-0.046-0.331-0.138l-1.159-1.16c-0.184-0.184-0.184-0.48,0-0.664s0.48-0.182,0.663,0.002l1.159,1.161C12.696,19.838,12.696,20.135,12.513,20.316zM22.25,21.917h-8.67l8.67-8.67V21.917zM22.13,10.7c-0.09,0.092-0.211,0.138-0.33,0.138c-0.121,0-0.242-0.046-0.334-0.138l-1.16-1.159c-0.184-0.183-0.184-0.479,0-0.663c0.182-0.183,0.479-0.183,0.662,0l1.16,1.159C22.312,10.221,22.313,10.517,22.13,10.7zM24.726,10.092c-0.092,0.092-0.213,0.137-0.332,0.137s-0.24-0.045-0.33-0.137l-2.154-2.154c-0.184-0.183-0.184-0.481,0-0.664s0.482-0.181,0.664,0.002l2.154,2.154C24.911,9.613,24.909,9.91,24.726,10.092z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Ruler\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Ruler();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Run.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Run.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Run = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Run\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M17.41,20.395l-0.778-2.723c0.228-0.2,0.442-0.414,0.644-0.643l2.721,0.778c0.287-0.418,0.534-0.862,0.755-1.323l-2.025-1.96c0.097-0.288,0.181-0.581,0.241-0.883l2.729-0.684c0.02-0.252,0.039-0.505,0.039-0.763s-0.02-0.51-0.039-0.762l-2.729-0.684c-0.061-0.302-0.145-0.595-0.241-0.883l2.026-1.96c-0.222-0.46-0.469-0.905-0.756-1.323l-2.721,0.777c-0.201-0.228-0.416-0.442-0.644-0.643l0.778-2.722c-0.418-0.286-0.863-0.534-1.324-0.755l-1.96,2.026c-0.287-0.097-0.581-0.18-0.883-0.241l-0.683-2.73c-0.253-0.019-0.505-0.039-0.763-0.039s-0.51,0.02-0.762,0.039l-0.684,2.73c-0.302,0.061-0.595,0.144-0.883,0.241l-1.96-2.026C7.048,3.463,6.604,3.71,6.186,3.997l0.778,2.722C6.736,6.919,6.521,7.134,6.321,7.361L3.599,6.583C3.312,7.001,3.065,7.446,2.844,7.907l2.026,1.96c-0.096,0.288-0.18,0.581-0.241,0.883l-2.73,0.684c-0.019,0.252-0.039,0.505-0.039,0.762s0.02,0.51,0.039,0.763l2.73,0.684c0.061,0.302,0.145,0.595,0.241,0.883l-2.026,1.96c0.221,0.46,0.468,0.905,0.755,1.323l2.722-0.778c0.2,0.229,0.415,0.442,0.643,0.643l-0.778,2.723c0.418,0.286,0.863,0.533,1.323,0.755l1.96-2.026c0.288,0.097,0.581,0.181,0.883,0.241l0.684,2.729c0.252,0.02,0.505,0.039,0.763,0.039s0.51-0.02,0.763-0.039l0.683-2.729c0.302-0.061,0.596-0.145,0.883-0.241l1.96,2.026C16.547,20.928,16.992,20.681,17.41,20.395zM11.798,15.594c-1.877,0-3.399-1.522-3.399-3.399s1.522-3.398,3.399-3.398s3.398,1.521,3.398,3.398S13.675,15.594,11.798,15.594zM27.29,22.699c0.019-0.547-0.06-1.104-0.23-1.654l1.244-1.773c-0.188-0.35-0.4-0.682-0.641-0.984l-2.122,0.445c-0.428-0.364-0.915-0.648-1.436-0.851l-0.611-2.079c-0.386-0.068-0.777-0.105-1.173-0.106l-0.974,1.936c-0.279,0.054-0.558,0.128-0.832,0.233c-0.257,0.098-0.497,0.22-0.727,0.353L17.782,17.4c-0.297,0.262-0.568,0.545-0.813,0.852l0.907,1.968c-0.259,0.495-0.437,1.028-0.519,1.585l-1.891,1.06c0.019,0.388,0.076,0.776,0.164,1.165l2.104,0.519c0.231,0.524,0.541,0.993,0.916,1.393l-0.352,2.138c0.32,0.23,0.66,0.428,1.013,0.6l1.715-1.32c0.536,0.141,1.097,0.195,1.662,0.15l1.452,1.607c0.2-0.057,0.399-0.118,0.596-0.193c0.175-0.066,0.34-0.144,0.505-0.223l0.037-2.165c0.455-0.339,0.843-0.747,1.152-1.206l2.161-0.134c0.152-0.359,0.279-0.732,0.368-1.115L27.29,22.699zM23.127,24.706c-1.201,0.458-2.545-0.144-3.004-1.345s0.143-2.546,1.344-3.005c1.201-0.458,2.547,0.144,3.006,1.345C24.931,22.902,24.328,24.247,23.127,24.706z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Run\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Run();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Rw.js\":\n/*!******************************!*\\\n !*** ./src/shape/icon/Rw.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Rw = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Rw\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M5.5,15.499,15.8,21.447,15.8,15.846,25.5,21.447,25.5,9.552,15.8,15.152,15.8,9.552z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Rw\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Rw();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Safari.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Safari.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Safari = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Safari\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16.154,5.135c-0.504,0-1,0.031-1.488,0.089l-0.036-0.18c-0.021-0.104-0.06-0.198-0.112-0.283c0.381-0.308,0.625-0.778,0.625-1.306c0-0.927-0.751-1.678-1.678-1.678s-1.678,0.751-1.678,1.678c0,0.745,0.485,1.376,1.157,1.595c-0.021,0.105-0.021,0.216,0,0.328l0.033,0.167C7.645,6.95,3.712,11.804,3.712,17.578c0,6.871,5.571,12.441,12.442,12.441c6.871,0,12.441-5.57,12.441-12.441C28.596,10.706,23.025,5.135,16.154,5.135zM16.369,8.1c4.455,0,8.183,3.116,9.123,7.287l-0.576,0.234c-0.148-0.681-0.755-1.191-1.48-1.191c-0.837,0-1.516,0.679-1.516,1.516c0,0.075,0.008,0.148,0.018,0.221l-2.771-0.028c-0.054-0.115-0.114-0.226-0.182-0.333l3.399-5.11l0.055-0.083l-4.766,4.059c-0.352-0.157-0.74-0.248-1.148-0.256l0.086-0.018l-1.177-2.585c0.64-0.177,1.111-0.763,1.111-1.459c0-0.837-0.678-1.515-1.516-1.515c-0.075,0-0.147,0.007-0.219,0.018l0.058-0.634C15.357,8.141,15.858,8.1,16.369,8.1zM12.146,3.455c0-0.727,0.591-1.318,1.318-1.318c0.727,0,1.318,0.591,1.318,1.318c0,0.425-0.203,0.802-0.516,1.043c-0.183-0.123-0.413-0.176-0.647-0.13c-0.226,0.045-0.413,0.174-0.535,0.349C12.542,4.553,12.146,4.049,12.146,3.455zM7.017,17.452c0-4.443,3.098-8.163,7.252-9.116l0.297,0.573c-0.61,0.196-1.051,0.768-1.051,1.442c0,0.837,0.678,1.516,1.515,1.516c0.068,0,0.135-0.006,0.2-0.015l-0.058,2.845l0.052-0.011c-0.442,0.204-0.824,0.513-1.116,0.895l0.093-0.147l-1.574-0.603l1.172,1.239l0.026-0.042c-0.19,0.371-0.306,0.788-0.324,1.229l-0.003-0.016l-2.623,1.209c-0.199-0.604-0.767-1.041-1.438-1.041c-0.837,0-1.516,0.678-1.516,1.516c0,0.064,0.005,0.128,0.013,0.191l-0.783-0.076C7.063,18.524,7.017,17.994,7.017,17.452zM16.369,26.805c-4.429,0-8.138-3.078-9.106-7.211l0.691-0.353c0.146,0.686,0.753,1.2,1.482,1.2c0.837,0,1.515-0.679,1.515-1.516c0-0.105-0.011-0.207-0.031-0.307l2.858,0.03c0.045,0.095,0.096,0.187,0.15,0.276l-3.45,5.277l0.227-0.195l4.529-3.92c0.336,0.153,0.705,0.248,1.094,0.266l-0.019,0.004l1.226,2.627c-0.655,0.166-1.142,0.76-1.142,1.468c0,0.837,0.678,1.515,1.516,1.515c0.076,0,0.151-0.007,0.225-0.018l0.004,0.688C17.566,26.746,16.975,26.805,16.369,26.805zM18.662,26.521l-0.389-0.6c0.661-0.164,1.152-0.759,1.152-1.47c0-0.837-0.68-1.516-1.516-1.516c-0.066,0-0.13,0.005-0.193,0.014v-2.86l-0.025,0.004c0.409-0.185,0.77-0.459,1.055-0.798l1.516,0.659l-1.104-1.304c0.158-0.335,0.256-0.704,0.278-1.095l2.552-1.164c0.19,0.618,0.766,1.068,1.447,1.068c0.838,0,1.516-0.679,1.516-1.516c0-0.069-0.006-0.137-0.016-0.204l0.65,0.12c0.089,0.517,0.136,1.049,0.136,1.591C25.722,21.826,22.719,25.499,18.662,26.521z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Safari\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Safari();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ScrewDriver.js\":\n/*!***************************************!*\\\n !*** ./src/shape/icon/ScrewDriver.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ScrewDriver = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ScrewDriver\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M19.387,14.373c2.119-2.619,5.322-6.77,5.149-7.75c-0.128-0.729-0.882-1.547-1.763-2.171c-0.883-0.625-1.916-1.044-2.645-0.915c-0.98,0.173-3.786,4.603-5.521,7.49c-0.208,0.344,0.328,1.177,0.156,1.468c-0.172,0.292-1.052,0.042-1.18,0.261c-0.263,0.451-0.417,0.722-0.417,0.722s-0.553,0.823,1.163,2.163l-5.233,7.473c-0.267,0.381-1.456,0.459-1.456,0.459l-1.184,3.312l0.859,0.602l2.708-2.246c0,0-0.334-1.143-0.068-1.523l5.242-7.489c1.719,1,2.377,0.336,2.377,0.336s0.201-0.238,0.536-0.639c0.161-0.194-0.374-0.936-0.159-1.197C18.169,14.467,19.133,14.685,19.387,14.373z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ScrewDriver\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ScrewDriver();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Search.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Search.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Search = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Search\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Search\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Search();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Sencha.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Sencha.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Sencha = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Sencha\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M18.265,22.734c1.365,0.662,2.309,2.062,2.309,3.682c0,1.566-0.881,2.928-2.176,3.615l1.922-0.98c3.16-1.58,5.332-4.846,5.332-8.617c0-3.719-2.109-6.945-5.195-8.547l-6.272-3.144c-1.366-0.662-2.308-2.062-2.308-3.682c0-1.567,0.881-2.928,2.175-3.614L12.13,2.428c-3.161,1.578-5.332,4.843-5.332,8.616c0,3.718,2.108,6.944,5.195,8.546L18.265,22.734z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Sencha\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Sencha();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Settings.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Settings.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Settings = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Settings\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16.015,12.03c-2.156,0-3.903,1.747-3.903,3.903c0,2.155,1.747,3.903,3.903,3.903c0.494,0,0.962-0.102,1.397-0.27l0.836,1.285l1.359-0.885l-0.831-1.276c0.705-0.706,1.142-1.681,1.142-2.757C19.918,13.777,18.171,12.03,16.015,12.03zM16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM26.174,20.809c-0.241,0.504-0.513,0.99-0.826,1.45L22.19,21.58c-0.481,0.526-1.029,0.994-1.634,1.385l0.119,3.202c-0.507,0.23-1.028,0.421-1.569,0.57l-1.955-2.514c-0.372,0.051-0.75,0.086-1.136,0.086c-0.356,0-0.706-0.029-1.051-0.074l-1.945,2.5c-0.541-0.151-1.065-0.342-1.57-0.569l0.117-3.146c-0.634-0.398-1.208-0.88-1.712-1.427L6.78,22.251c-0.313-0.456-0.583-0.944-0.826-1.448l2.088-2.309c-0.226-0.703-0.354-1.451-0.385-2.223l-2.768-1.464c0.055-0.563,0.165-1.107,0.301-1.643l3.084-0.427c0.29-0.702,0.675-1.352,1.135-1.942L8.227,7.894c0.399-0.389,0.83-0.744,1.283-1.07l2.663,1.672c0.65-0.337,1.349-0.593,2.085-0.75l0.968-3.001c0.278-0.021,0.555-0.042,0.837-0.042c0.282,0,0.56,0.022,0.837,0.042l0.976,3.028c0.72,0.163,1.401,0.416,2.036,0.75l2.704-1.697c0.455,0.326,0.887,0.681,1.285,1.07l-1.216,2.986c0.428,0.564,0.793,1.181,1.068,1.845l3.185,0.441c0.135,0.535,0.247,1.081,0.302,1.643l-2.867,1.516c-0.034,0.726-0.15,1.43-0.355,2.1L26.174,20.809z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Settings\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Settings();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/SettingsAlt.js\":\n/*!***************************************!*\\\n !*** ./src/shape/icon/SettingsAlt.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.SettingsAlt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.SettingsAlt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM24.386,14.968c-1.451,1.669-3.706,2.221-5.685,1.586l-7.188,8.266c-0.766,0.88-2.099,0.97-2.979,0.205s-0.973-2.099-0.208-2.979l7.198-8.275c-0.893-1.865-0.657-4.164,0.787-5.824c1.367-1.575,3.453-2.151,5.348-1.674l-2.754,3.212l0.901,2.621l2.722,0.529l2.761-3.22C26.037,11.229,25.762,13.387,24.386,14.968z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.SettingsAlt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.SettingsAlt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Shuffle.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Shuffle.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Shuffle = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Shuffle\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.786,20.654c-0.618-0.195-1.407-0.703-2.291-1.587c-0.757-0.742-1.539-1.698-2.34-2.741c-0.191,0.256-0.382,0.51-0.574,0.77c-0.524,0.709-1.059,1.424-1.604,2.127c1.904,2.31,3.88,4.578,6.809,4.952v2.701l7.556-4.362l-7.556-4.362V20.654zM9.192,11.933c0.756,0.741,1.538,1.697,2.339,2.739c0.195-0.262,0.39-0.521,0.587-0.788c0.52-0.703,1.051-1.412,1.592-2.11c-2.032-2.463-4.133-4.907-7.396-5.025h-3.5v3.5h3.5C6.969,10.223,7.996,10.735,9.192,11.933zM21.786,10.341v2.535l7.556-4.363l-7.556-4.363v2.647c-1.904,0.219-3.425,1.348-4.751,2.644c-2.196,2.183-4.116,5.167-6.011,7.538c-1.867,2.438-3.741,3.888-4.712,3.771h-3.5v3.5h3.5c2.185-0.029,3.879-1.266,5.34-2.693c2.194-2.184,4.116-5.167,6.009-7.538C19.205,12.003,20.746,10.679,21.786,10.341z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Shuffle\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Shuffle();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Skull.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Skull.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Skull = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Skull\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.947,11.14c0-5.174-3.979-9.406-10.613-9.406c-6.633,0-10.282,4.232-10.282,9.406c0,5.174,1.459,4.511,1.459,7.43c0,1.095-1.061,0.564-1.061,2.919c0,2.587,3.615,2.223,4.677,3.283c1.061,1.062,0.961,3.019,0.961,3.019s0.199,0.796,0.564,0.563c0,0,0.232,0.564,0.498,0.232c0,0,0.265,0.563,0.531,0.1c0,0,0.265,0.631,0.696,0.166c0,0,0.431,0.63,0.929,0.133c0,0,0.564,0.53,1.194,0.133c0.63,0.397,1.194-0.133,1.194-0.133c0.497,0.497,0.929-0.133,0.929-0.133c0.432,0.465,0.695-0.166,0.695-0.166c0.268,0.464,0.531-0.1,0.531-0.1c0.266,0.332,0.498-0.232,0.498-0.232c0.365,0.232,0.564-0.563,0.564-0.563s-0.1-1.957,0.961-3.019c1.062-1.061,4.676-0.696,4.676-3.283c0-2.354-1.061-1.824-1.061-2.919C24.488,15.651,25.947,16.314,25.947,11.14zM10.333,20.992c-1.783,0.285-2.59-0.215-2.785-1.492c-0.508-3.328,2.555-3.866,4.079-3.683c0.731,0.088,1.99,0.862,1.99,1.825C13.617,20.229,11.992,20.727,10.333,20.992zM16.461,25.303c-0.331,0-0.862-0.431-0.895-1.227c-0.033,0.796-0.63,1.227-0.961,1.227c-0.332,0-0.83-0.331-0.863-1.127c-0.033-0.796,1.028-4.013,1.792-4.013c0.762,0,1.824,3.217,1.791,4.013S16.794,25.303,16.461,25.303zM23.361,19.5c-0.195,1.277-1.004,1.777-2.787,1.492c-1.658-0.266-3.283-0.763-3.283-3.35c0-0.963,1.258-1.737,1.99-1.825C20.805,15.634,23.869,16.172,23.361,19.5z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Skull\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Skull();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Skype.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Skype.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Skype = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Skype\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.777,18.438c0.209-0.948,0.318-1.934,0.318-2.944c0-7.578-6.144-13.722-13.724-13.722c-0.799,0-1.584,0.069-2.346,0.2C11.801,1.199,10.35,0.75,8.793,0.75c-4.395,0-7.958,3.562-7.958,7.958c0,1.47,0.399,2.845,1.094,4.024c-0.183,0.893-0.277,1.814-0.277,2.76c0,7.58,6.144,13.723,13.722,13.723c0.859,0,1.699-0.078,2.515-0.23c1.119,0.604,2.399,0.945,3.762,0.945c4.395,0,7.957-3.562,7.957-7.959C29.605,20.701,29.309,19.502,28.777,18.438zM22.412,22.051c-0.635,0.898-1.573,1.609-2.789,2.115c-1.203,0.5-2.646,0.754-4.287,0.754c-1.971,0-3.624-0.346-4.914-1.031C9.5,23.391,8.74,22.717,8.163,21.885c-0.583-0.842-0.879-1.676-0.879-2.479c0-0.503,0.192-0.939,0.573-1.296c0.375-0.354,0.857-0.532,1.432-0.532c0.471,0,0.878,0.141,1.209,0.422c0.315,0.269,0.586,0.662,0.805,1.174c0.242,0.558,0.508,1.027,0.788,1.397c0.269,0.355,0.656,0.656,1.151,0.89c0.497,0.235,1.168,0.354,1.992,0.354c1.135,0,2.064-0.241,2.764-0.721c0.684-0.465,1.016-1.025,1.016-1.711c0-0.543-0.173-0.969-0.529-1.303c-0.373-0.348-0.865-0.621-1.465-0.807c-0.623-0.195-1.47-0.404-2.518-0.623c-1.424-0.306-2.634-0.668-3.596-1.076c-0.984-0.419-1.777-1-2.357-1.727c-0.59-0.736-0.889-1.662-0.889-2.75c0-1.036,0.314-1.971,0.933-2.776c0.613-0.8,1.51-1.423,2.663-1.849c1.139-0.422,2.494-0.635,4.027-0.635c1.225,0,2.303,0.141,3.201,0.421c0.904,0.282,1.668,0.662,2.267,1.13c0.604,0.472,1.054,0.977,1.335,1.5c0.284,0.529,0.43,1.057,0.43,1.565c0,0.49-0.189,0.937-0.563,1.324c-0.375,0.391-0.851,0.589-1.408,0.589c-0.509,0-0.905-0.124-1.183-0.369c-0.258-0.227-0.523-0.58-0.819-1.09c-0.342-0.65-0.756-1.162-1.229-1.523c-0.463-0.351-1.232-0.529-2.292-0.529c-0.984,0-1.784,0.197-2.379,0.588c-0.572,0.375-0.85,0.805-0.85,1.314c0,0.312,0.09,0.574,0.273,0.799c0.195,0.238,0.471,0.447,0.818,0.621c0.36,0.182,0.732,0.326,1.104,0.429c0.382,0.106,1.021,0.263,1.899,0.466c1.11,0.238,2.131,0.506,3.034,0.793c0.913,0.293,1.703,0.654,2.348,1.072c0.656,0.429,1.178,0.979,1.547,1.635c0.369,0.658,0.558,1.471,0.558,2.416C23.371,20.119,23.049,21.148,22.412,22.051z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Skype\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Skype();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/SlideShare.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/SlideShare.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.SlideShare = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.SlideShare\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.952,12.795c-0.956,1.062-5.073,2.409-5.604,2.409h-4.513c-0.749,0-1.877,0.147-2.408,0.484c0.061,0.054,0.122,0.108,0.181,0.163c0.408,0.379,1.362,0.913,2.206,0.913c0.397,0,0.723-0.115,1-0.354c1.178-1.007,1.79-1.125,2.145-1.125c0.421,0,0.783,0.193,0.996,0.531c0.4,0.626,0.106,1.445-0.194,2.087c-0.718,1.524-3.058,3.171-5.595,3.171c-0.002,0-0.002,0-0.004,0c-0.354,0-0.701-0.033-1.033-0.099v3.251c0,0.742,1.033,2.533,4.167,2.533s3.955-3.701,3.955-4.338v-4.512c2.23-1.169,4.512-1.805,5.604-3.895C30.882,12.05,29.907,11.733,28.952,12.795zM21.942,17.521c0.796-1.699-0.053-1.699-1.54-0.425s-3.665,0.105-4.408-0.585c-0.743-0.689-1.486-1.22-2.814-1.167c-1.328,0.053-4.46-0.161-6.267-0.585c-1.805-0.425-4.895-3-5.15-2.335c-0.266,0.69,0.211,1.168,1.168,2.335c0.955,1.169,5.075,2.778,5.075,2.778s0,3.453,0,4.886c0,1.435,2.973,3.61,4.512,3.61s2.708-1.062,2.708-1.806v-4.512C17.775,21.045,21.146,19.221,21.942,17.521zM20.342,13.73c1.744,0,3.159-1.414,3.159-3.158c0-1.745-1.415-3.159-3.159-3.159s-3.158,1.414-3.158,3.159C17.184,12.316,18.598,13.73,20.342,13.73zM12.019,13.73c1.744,0,3.158-1.414,3.158-3.158c0-1.745-1.414-3.159-3.158-3.159c-1.745,0-3.159,1.414-3.159,3.159C8.86,12.316,10.273,13.73,12.019,13.73z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.SlideShare\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.SlideShare();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Smile.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Smile.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Smile = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Smile\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM20.729,7.375c0.934,0,1.688,1.483,1.688,3.312S21.661,14,20.729,14c-0.932,0-1.688-1.483-1.688-3.312S19.798,7.375,20.729,7.375zM11.104,7.375c0.932,0,1.688,1.483,1.688,3.312S12.037,14,11.104,14s-1.688-1.483-1.688-3.312S10.172,7.375,11.104,7.375zM16.021,26c-2.873,0-5.563-1.757-7.879-4.811c2.397,1.564,5.021,2.436,7.774,2.436c2.923,0,5.701-0.98,8.215-2.734C21.766,24.132,18.99,26,16.021,26z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Smile\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Smile();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Smile2.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Smile2.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Smile2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Smile2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466zM16,29.534C8.539,29.534,2.466,23.462,2.466,16C2.466,8.539,8.539,2.466,16,2.466c7.462,0,13.535,6.072,13.535,13.533C29.534,23.462,23.462,29.534,16,29.534zM11.104,14c0.932,0,1.688-1.483,1.688-3.312s-0.755-3.312-1.688-3.312s-1.688,1.483-1.688,3.312S10.172,14,11.104,14zM20.729,14c0.934,0,1.688-1.483,1.688-3.312s-0.756-3.312-1.688-3.312c-0.932,0-1.688,1.483-1.688,3.312S19.798,14,20.729,14zM8.143,21.189C10.458,24.243,13.148,26,16.021,26c2.969,0,5.745-1.868,8.11-5.109c-2.515,1.754-5.292,2.734-8.215,2.734C13.164,23.625,10.54,22.756,8.143,21.189z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Smile2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Smile2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Snow.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Snow.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Snow = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Snow\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.372,6.912c-0.093-3.925-3.302-7.078-7.248-7.08c-2.638,0.002-4.942,1.412-6.208,3.518c-0.595-0.327-1.28-0.518-2.01-0.518C7.627,2.834,5.773,4.639,5.69,6.898c-2.393,0.786-4.125,3.025-4.127,5.686c0,3.312,2.687,6,6,6v-0.002h15.875c3.312,0,6-2.688,6-6C29.434,9.944,27.732,7.715,25.372,6.912zM23.436,16.584H7.562c-2.209-0.006-3.997-1.793-4.001-4c-0.002-1.983,1.45-3.619,3.35-3.933c0.265-0.043,0.502-0.19,0.657-0.414C7.723,8.015,7.78,7.74,7.731,7.475C7.703,7.326,7.686,7.187,7.686,7.051c0.004-1.225,0.995-2.217,2.22-2.219c0.647,0,1.217,0.278,1.633,0.731c0.233,0.257,0.587,0.375,0.927,0.31c0.342-0.066,0.626-0.308,0.748-0.631c0.749-1.992,2.662-3.412,4.911-3.41c2.898,0.004,5.244,2.351,5.251,5.25c0,0.16-0.009,0.325-0.026,0.496c-0.05,0.518,0.305,0.984,0.814,1.079c1.859,0.345,3.273,1.966,3.271,3.923C27.43,14.791,25.645,16.578,23.436,16.584zM16.667,24.09l1.119-1.119c0.389-0.391,0.389-1.025,0-1.416c-0.392-0.391-1.025-0.391-1.415,0l-1.119,1.119l-1.119-1.119c-0.391-0.391-1.025-0.391-1.415,0c-0.391,0.391-0.391,1.025,0,1.416l1.118,1.117l-1.12,1.121c-0.389,0.393-0.389,1.021,0,1.414c0.195,0.188,0.451,0.293,0.707,0.293c0.256,0,0.512-0.104,0.708-0.293l1.12-1.119l1.12,1.119c0.195,0.188,0.451,0.293,0.708,0.293c0.256,0,0.512-0.104,0.707-0.293c0.391-0.396,0.391-1.021,0-1.414L16.667,24.09zM25.119,21.817c-0.393-0.392-1.025-0.392-1.415,0l-1.12,1.121l-1.12-1.121c-0.391-0.392-1.022-0.392-1.414,0c-0.39,0.392-0.39,1.022,0,1.416l1.119,1.119l-1.119,1.119c-0.39,0.391-0.39,1.022,0,1.413c0.195,0.195,0.451,0.294,0.707,0.294c0.257,0,0.513-0.099,0.707-0.294l1.12-1.118l1.12,1.118c0.194,0.195,0.45,0.294,0.707,0.294c0.256,0,0.513-0.099,0.708-0.294c0.389-0.391,0.389-1.022,0-1.413l-1.12-1.119l1.12-1.119C25.507,22.842,25.507,22.209,25.119,21.817zM9.334,23.953l1.119-1.119c0.389-0.394,0.389-1.021,0-1.414c-0.391-0.394-1.025-0.394-1.415,0l-1.119,1.119l-1.12-1.121c-0.391-0.39-1.023-0.39-1.415,0c-0.391,0.396-0.391,1.024,0,1.418l1.119,1.117l-1.12,1.118c-0.391,0.394-0.391,1.025,0,1.414c0.196,0.195,0.452,0.293,0.708,0.293c0.256,0,0.511-0.098,0.707-0.293l1.12-1.119l1.121,1.121c0.195,0.195,0.451,0.293,0.707,0.293s0.513-0.098,0.708-0.293c0.389-0.391,0.389-1.022,0-1.416L9.334,23.953z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Snow\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Snow();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Split.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Split.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Split = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Split\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.786,20.698c-1.792-0.237-2.912-1.331-4.358-2.886c-0.697-0.751-1.428-1.577-2.324-2.319c1.396-1.165,2.411-2.519,3.483-3.503c1.01-0.92,1.901-1.519,3.199-1.688v2.574l7.556-4.363L21.786,4.15v2.652c-3.34,0.266-5.45,2.378-6.934,4.013c-0.819,0.896-1.537,1.692-2.212,2.192c-0.685,0.501-1.227,0.731-2.013,0.742c-0.001,0-0.002,0-0.003,0H2.812v3.5h0.001v0.001c0,0,0.046-0.001,0.136-0.001h7.677c0.786,0.011,1.33,0.241,2.017,0.743c1.021,0.743,2.095,2.181,3.552,3.568c1.312,1.258,3.162,2.46,5.592,2.649v2.664l7.556-4.36l-7.556-4.361V20.698z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Split\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Split();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Star.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Star.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Star = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Star\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,22.375L7.116,28.83l3.396-10.438l-8.883-6.458l10.979,0.002L16.002,1.5l3.391,10.434h10.981l-8.886,6.457l3.396,10.439L16,22.375L16,22.375z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Star\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Star();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Star2.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Star2.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Star2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Star2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.615,4.928c0.487-0.986,1.284-0.986,1.771,0l2.249,4.554c0.486,0.986,1.775,1.923,2.864,2.081l5.024,0.73c1.089,0.158,1.335,0.916,0.547,1.684l-3.636,3.544c-0.788,0.769-1.28,2.283-1.095,3.368l0.859,5.004c0.186,1.085-0.459,1.553-1.433,1.041l-4.495-2.363c-0.974-0.512-2.567-0.512-3.541,0l-4.495,2.363c-0.974,0.512-1.618,0.044-1.432-1.041l0.858-5.004c0.186-1.085-0.307-2.6-1.094-3.368L3.93,13.977c-0.788-0.768-0.542-1.525,0.547-1.684l5.026-0.73c1.088-0.158,2.377-1.095,2.864-2.081L14.615,4.928z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Star2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Star2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Star2Off.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Star2Off.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Star2Off = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Star2Off\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.522,12.293l-5.024-0.73c-1.089-0.158-2.378-1.095-2.864-2.081l-2.249-4.554c-0.487-0.986-1.284-0.986-1.771,0l-2.247,4.554c-0.487,0.986-1.776,1.923-2.864,2.081l-5.026,0.73c-1.088,0.158-1.334,0.916-0.547,1.684l3.637,3.544c0.788,0.769,1.28,2.283,1.094,3.368l-0.858,5.004c-0.186,1.085,0.458,1.553,1.432,1.041l4.495-2.363c0.974-0.512,2.566-0.512,3.541,0l4.495,2.363c0.974,0.512,1.618,0.044,1.433-1.041l-0.859-5.004c-0.186-1.085,0.307-2.6,1.095-3.368l3.636-3.544C27.857,13.209,27.611,12.452,26.522,12.293zM22.037,16.089c-1.266,1.232-1.966,3.394-1.67,5.137l0.514,2.984l-2.679-1.409c-0.757-0.396-1.715-0.612-2.702-0.612s-1.945,0.216-2.7,0.61l-2.679,1.409l0.511-2.982c0.297-1.743-0.404-3.905-1.671-5.137l-2.166-2.112l2.995-0.435c1.754-0.255,3.592-1.591,4.373-3.175L15.5,7.652l1.342,2.716c0.781,1.583,2.617,2.92,4.369,3.173l2.992,0.435L22.037,16.089z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Star2Off\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Star2Off();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Star3.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Star3.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Star3 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Star3\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.441,28.181c-0.419,0-0.835-0.132-1.189-0.392l-5.751-4.247L9.75,27.789c-0.354,0.26-0.771,0.392-1.189,0.392c-0.412,0-0.824-0.128-1.175-0.384c-0.707-0.511-1-1.422-0.723-2.25l2.26-6.783l-5.815-4.158c-0.71-0.509-1.009-1.416-0.74-2.246c0.268-0.826,1.037-1.382,1.904-1.382c0.004,0,0.01,0,0.014,0l7.15,0.056l2.157-6.816c0.262-0.831,1.035-1.397,1.906-1.397s1.645,0.566,1.906,1.397l2.155,6.816l7.15-0.056c0.004,0,0.01,0,0.015,0c0.867,0,1.636,0.556,1.903,1.382c0.271,0.831-0.028,1.737-0.739,2.246l-5.815,4.158l2.263,6.783c0.276,0.826-0.017,1.737-0.721,2.25C23.268,28.053,22.854,28.181,22.441,28.181L22.441,28.181z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Star3\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Star3();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Star3Off.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Star3Off.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Star3Off = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Star3Off\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M28.631,12.359c-0.268-0.826-1.036-1.382-1.903-1.382h-0.015l-7.15,0.056l-2.155-6.816c-0.262-0.831-1.035-1.397-1.906-1.397s-1.645,0.566-1.906,1.397l-2.157,6.816l-7.15-0.056H4.273c-0.868,0-1.636,0.556-1.904,1.382c-0.27,0.831,0.029,1.737,0.74,2.246l5.815,4.158l-2.26,6.783c-0.276,0.828,0.017,1.739,0.723,2.25c0.351,0.256,0.763,0.384,1.175,0.384c0.418,0,0.834-0.132,1.189-0.392l5.751-4.247l5.751,4.247c0.354,0.26,0.771,0.392,1.189,0.392c0.412,0,0.826-0.128,1.177-0.384c0.704-0.513,0.997-1.424,0.721-2.25l-2.263-6.783l5.815-4.158C28.603,14.097,28.901,13.19,28.631,12.359zM19.712,17.996l2.729,8.184l-6.94-5.125L8.56,26.18l2.729-8.184l-7.019-5.018l8.627,0.066L15.5,4.82l2.603,8.225l8.627-0.066L19.712,17.996z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Star3Off\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Star3Off();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/StarOff.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/StarOff.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.StarOff = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.StarOff\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,22.375L7.116,28.83l3.396-10.438l-8.883-6.458l10.979,0.002L16.002,1.5l3.391,10.434h10.981l-8.886,6.457l3.396,10.439L16,22.375L16,22.375zM22.979,26.209l-2.664-8.205l6.979-5.062h-8.627L16,4.729l-2.666,8.206H4.708l6.979,5.07l-2.666,8.203L16,21.146L22.979,26.209L22.979,26.209z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.StarOff\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.StarOff();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Start.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Start.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Start = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Start\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.316,5.318,9.833,13.682,9.833,5.5,5.5,5.5,5.5,25.5,9.833,25.5,9.833,17.318,24.316,25.682z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Start\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Start();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Sticker.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Sticker.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Sticker = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Sticker\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,1.999c-1.042,0-1.916,0.377-2.57,1.088L2.895,13.138C2.302,13.784,1.999,14.58,1.999,15.5C1.999,22.943,8.057,29,15.5,29S29,22.943,29,15.5S22.943,1.999,15.5,1.999zM15.5,28C8.596,28,3,22.404,3,15.5c0-3.452,5.239-2.737,7.501-4.999C12.762,8.239,12.048,3,15.5,3C22.404,3,28,8.597,28,15.5S22.404,28,15.5,28z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Sticker\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Sticker();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Stop.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Stop.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Stop = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Stop\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M5.5,5.5h20v20h-20z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Stop\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Stop();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/StopWatch.js\":\n/*!*************************************!*\\\n !*** ./src/shape/icon/StopWatch.js ***!\n \\*************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.StopWatch = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.StopWatch\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.216,18.533c0-3.636-1.655-6.883-4.253-9.032l0.733-0.998l0.482,0.354c0.198,0.146,0.481,0.104,0.628-0.097l0.442-0.604c0.146-0.198,0.103-0.482-0.097-0.628l-2.052-1.506c-0.199-0.146-0.481-0.103-0.628,0.097L22.03,6.724c-0.146,0.199-0.104,0.482,0.096,0.628l0.483,0.354l-0.736,1.003c-1.28-0.834-2.734-1.419-4.296-1.699c0.847-0.635,1.402-1.638,1.403-2.778h-0.002c0-1.922-1.557-3.48-3.479-3.48c-1.925,0-3.48,1.559-3.48,3.48c0,1.141,0.556,2.144,1.401,2.778c-1.549,0.277-2.99,0.857-4.265,1.68L8.424,7.684l0.484-0.353c0.198-0.145,0.245-0.428,0.098-0.628l-0.44-0.604C8.42,5.899,8.136,5.855,7.937,6.001L5.881,7.5c-0.2,0.146-0.243,0.428-0.099,0.628l0.442,0.604c0.145,0.2,0.428,0.244,0.627,0.099l0.483-0.354l0.729,0.999c-2.615,2.149-4.282,5.407-4.282,9.057c0,6.471,5.245,11.716,11.718,11.716c6.47,0,11.716-5.243,11.718-11.716H27.216zM12.918,4.231c0.002-1.425,1.155-2.58,2.582-2.582c1.426,0.002,2.579,1.157,2.581,2.582c-0.002,1.192-0.812,2.184-1.908,2.482v-1.77h0.6c0.246,0,0.449-0.203,0.449-0.449V3.746c0-0.247-0.203-0.449-0.449-0.449h-2.545c-0.247,0-0.449,0.202-0.449,0.449v0.749c0,0.246,0.202,0.449,0.449,0.449h0.599v1.77C13.729,6.415,12.919,5.424,12.918,4.231zM15.5,27.554c-4.983-0.008-9.015-4.038-9.022-9.021c0.008-4.982,4.039-9.013,9.022-9.022c4.981,0.01,9.013,4.04,9.021,9.022C24.513,23.514,20.481,27.546,15.5,27.554zM15.5,12.138c0.476,0,0.861-0.385,0.861-0.86s-0.386-0.861-0.861-0.861s-0.861,0.386-0.861,0.861S15.024,12.138,15.5,12.138zM15.5,24.927c-0.476,0-0.861,0.386-0.861,0.861s0.386,0.861,0.861,0.861s0.861-0.386,0.861-0.861S15.976,24.927,15.5,24.927zM12.618,11.818c-0.237-0.412-0.764-0.553-1.176-0.315c-0.412,0.238-0.554,0.765-0.315,1.177l2.867,6.722c0.481,0.831,1.543,1.116,2.375,0.637c0.829-0.479,1.114-1.543,0.635-2.374L12.618,11.818zM18.698,24.07c-0.412,0.237-0.555,0.765-0.316,1.176c0.237,0.412,0.764,0.554,1.176,0.315c0.413-0.238,0.553-0.765,0.316-1.176C19.635,23.974,19.108,23.832,18.698,24.07zM8.787,15.65c0.412,0.238,0.938,0.097,1.176-0.315c0.237-0.413,0.097-0.938-0.314-1.176c-0.412-0.239-0.938-0.098-1.177,0.313C8.234,14.886,8.375,15.412,8.787,15.65zM22.215,21.413c-0.412-0.236-0.938-0.096-1.176,0.316c-0.238,0.412-0.099,0.938,0.314,1.176c0.41,0.238,0.937,0.098,1.176-0.314C22.768,22.178,22.625,21.652,22.215,21.413zM9.107,18.531c-0.002-0.476-0.387-0.86-0.861-0.86c-0.477,0-0.862,0.385-0.862,0.86c0.001,0.476,0.386,0.86,0.861,0.861C8.722,19.393,9.106,19.008,9.107,18.531zM21.896,18.531c0,0.477,0.384,0.862,0.859,0.86c0.476,0.002,0.862-0.382,0.862-0.859s-0.387-0.86-0.862-0.862C22.279,17.671,21.896,18.056,21.896,18.531zM8.787,21.413c-0.412,0.238-0.554,0.765-0.316,1.176c0.239,0.412,0.765,0.553,1.177,0.316c0.413-0.239,0.553-0.765,0.315-1.178C9.725,21.317,9.198,21.176,8.787,21.413zM21.352,14.157c-0.411,0.238-0.551,0.764-0.312,1.176c0.237,0.413,0.764,0.555,1.174,0.315c0.412-0.236,0.555-0.762,0.316-1.176C22.29,14.06,21.766,13.921,21.352,14.157zM12.304,24.067c-0.413-0.235-0.939-0.096-1.176,0.315c-0.238,0.413-0.098,0.939,0.312,1.178c0.413,0.236,0.939,0.096,1.178-0.315C12.857,24.832,12.715,24.308,12.304,24.067zM18.698,12.992c0.41,0.238,0.938,0.099,1.174-0.313c0.238-0.411,0.1-0.938-0.314-1.177c-0.414-0.238-0.937-0.097-1.177,0.315C18.144,12.229,18.286,12.755,18.698,12.992z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.StopWatch\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.StopWatch();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Sun.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Sun.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Sun = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Sun\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.502,7.504c-4.35,0-7.873,3.523-7.873,7.873c0,4.347,3.523,7.872,7.873,7.872c4.346,0,7.871-3.525,7.871-7.872C23.374,11.027,19.85,7.504,15.502,7.504zM15.502,21.25c-3.244-0.008-5.866-2.63-5.874-5.872c0.007-3.243,2.63-5.866,5.874-5.874c3.242,0.008,5.864,2.631,5.871,5.874C21.366,18.62,18.744,21.242,15.502,21.25zM15.502,6.977c0.553,0,1-0.448,1-1.001V1.125c-0.002-0.553-0.448-1-1-1c-0.553,0-1.001,0.449-1,1.002v4.85C14.502,6.528,14.949,6.977,15.502,6.977zM18.715,7.615c0.125,0.053,0.255,0.076,0.382,0.077c0.394,0,0.765-0.233,0.925-0.618l1.856-4.483c0.21-0.511-0.031-1.095-0.541-1.306c-0.511-0.211-1.096,0.031-1.308,0.541L18.174,6.31C17.963,6.82,18.205,7.405,18.715,7.615zM21.44,9.436c0.195,0.194,0.451,0.293,0.707,0.293s0.512-0.098,0.707-0.293l3.43-3.433c0.391-0.39,0.39-1.023,0-1.415c-0.392-0.39-1.025-0.39-1.415,0.002L21.44,8.021C21.049,8.412,21.049,9.045,21.44,9.436zM23.263,12.16c0.158,0.385,0.531,0.617,0.923,0.617c0.127,0,0.257-0.025,0.383-0.078l4.48-1.857c0.511-0.211,0.753-0.797,0.541-1.307s-0.796-0.752-1.307-0.54l-4.481,1.857C23.292,11.064,23.051,11.65,23.263,12.16zM29.752,14.371l-4.851,0.001c-0.552,0-1,0.448-0.998,1.001c0,0.553,0.447,0.999,0.998,0.999l4.852-0.002c0.553,0,0.999-0.449,0.999-1C30.752,14.817,30.304,14.369,29.752,14.371zM29.054,19.899l-4.482-1.854c-0.512-0.212-1.097,0.03-1.307,0.541c-0.211,0.511,0.031,1.096,0.541,1.308l4.482,1.854c0.126,0.051,0.256,0.075,0.383,0.075c0.393,0,0.765-0.232,0.925-0.617C29.806,20.695,29.563,20.109,29.054,19.899zM22.86,21.312c-0.391-0.391-1.023-0.391-1.414,0.001c-0.391,0.39-0.39,1.022,0,1.413l3.434,3.429c0.195,0.195,0.45,0.293,0.706,0.293s0.513-0.098,0.708-0.293c0.391-0.392,0.389-1.025,0-1.415L22.86,21.312zM20.029,23.675c-0.211-0.511-0.796-0.752-1.307-0.541c-0.51,0.212-0.752,0.797-0.54,1.308l1.86,4.48c0.159,0.385,0.531,0.617,0.925,0.617c0.128,0,0.258-0.024,0.383-0.076c0.511-0.211,0.752-0.797,0.54-1.309L20.029,23.675zM15.512,23.778c-0.553,0-1,0.448-1,1l0.004,4.851c0,0.553,0.449,0.999,1,0.999c0.553,0,1-0.448,0.998-1l-0.003-4.852C16.511,24.226,16.062,23.777,15.512,23.778zM12.296,23.142c-0.51-0.21-1.094,0.031-1.306,0.543l-1.852,4.483c-0.21,0.511,0.033,1.096,0.543,1.307c0.125,0.052,0.254,0.076,0.382,0.076c0.392,0,0.765-0.234,0.924-0.619l1.853-4.485C13.051,23.937,12.807,23.353,12.296,23.142zM9.57,21.325c-0.392-0.391-1.025-0.389-1.415,0.002L4.729,24.76c-0.391,0.392-0.389,1.023,0.002,1.415c0.195,0.194,0.45,0.292,0.706,0.292c0.257,0,0.513-0.098,0.708-0.293l3.427-3.434C9.961,22.349,9.961,21.716,9.57,21.325zM7.746,18.604c-0.213-0.509-0.797-0.751-1.307-0.54L1.96,19.925c-0.511,0.212-0.752,0.798-0.54,1.308c0.16,0.385,0.531,0.616,0.924,0.616c0.127,0,0.258-0.024,0.383-0.076l4.479-1.861C7.715,19.698,7.957,19.113,7.746,18.604zM7.1,15.392c0-0.553-0.447-0.999-1-0.999l-4.851,0.006c-0.553,0-1.001,0.448-0.999,1.001c0.001,0.551,0.449,1,1,0.998l4.852-0.006C6.654,16.392,7.102,15.942,7.1,15.392zM1.944,10.869l4.485,1.85c0.125,0.053,0.254,0.076,0.381,0.076c0.393,0,0.766-0.232,0.925-0.618c0.212-0.511-0.032-1.097-0.544-1.306L2.708,9.021c-0.511-0.21-1.095,0.032-1.306,0.542C1.19,10.074,1.435,10.657,1.944,10.869zM8.137,9.451c0.195,0.193,0.449,0.291,0.705,0.291s0.513-0.098,0.709-0.295c0.391-0.389,0.389-1.023-0.004-1.414L6.113,4.609C5.723,4.219,5.088,4.221,4.699,4.612c-0.391,0.39-0.389,1.024,0.002,1.414L8.137,9.451zM10.964,7.084c0.16,0.384,0.532,0.615,0.923,0.615c0.128,0,0.258-0.025,0.384-0.077c0.51-0.212,0.753-0.798,0.54-1.307l-1.864-4.479c-0.212-0.51-0.798-0.751-1.308-0.539C9.129,1.51,8.888,2.096,9.1,2.605L10.964,7.084z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Sun\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Sun();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Svg.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Svg.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Svg = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Svg\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M31.274,15.989c0-2.473-2.005-4.478-4.478-4.478l0,0c0.81-0.811,1.312-1.93,1.312-3.167c0-2.474-2.005-4.479-4.479-4.479c-1.236,0-2.356,0.501-3.167,1.312c0-2.473-2.005-4.478-4.478-4.478c-2.474,0-4.479,2.005-4.479,4.478c-0.811-0.81-1.93-1.312-3.167-1.312c-2.474,0-4.479,2.005-4.479,4.479c0,1.236,0.501,2.356,1.312,3.166c-2.474,0-4.479,2.005-4.479,4.479c0,2.474,2.005,4.479,4.479,4.479c-0.811,0.81-1.312,1.93-1.312,3.167c0,2.473,2.005,4.478,4.479,4.478c1.236,0,2.356-0.501,3.167-1.312c0,2.473,2.005,4.479,4.479,4.479c2.473,0,4.478-2.006,4.478-4.479l0,0c0.811,0.811,1.931,1.312,3.167,1.312c2.474,0,4.478-2.005,4.478-4.478c0-1.237-0.501-2.357-1.312-3.168c0.001,0,0.001,0,0.001,0C29.27,20.467,31.274,18.463,31.274,15.989zM23.583,21.211c0.016,0,0.031-0.001,0.047-0.001c1.339,0,2.424,1.085,2.424,2.425c0,1.338-1.085,2.424-2.424,2.424s-2.424-1.086-2.424-2.424c0-0.017,0.001-0.031,0.001-0.047l-3.541-3.542v5.009c0.457,0.44,0.743,1.06,0.743,1.746c0,1.339-1.086,2.424-2.424,2.424c-1.339,0-2.425-1.085-2.425-2.424c0-0.687,0.286-1.306,0.743-1.746v-5.009l-3.541,3.542c0,0.016,0.001,0.031,0.001,0.047c0,1.338-1.085,2.424-2.424,2.424s-2.424-1.086-2.424-2.424c0-1.34,1.085-2.425,2.424-2.425c0.015,0,0.031,0.001,0.046,0.001l3.542-3.541H6.919c-0.44,0.458-1.06,0.743-1.746,0.743c-1.339,0-2.424-1.085-2.424-2.424s1.085-2.424,2.424-2.424c0.686,0,1.305,0.285,1.746,0.744h5.008l-3.542-3.542c-0.015,0-0.031,0.001-0.046,0.001c-1.339,0-2.424-1.085-2.424-2.424S7.001,5.92,8.34,5.92s2.424,1.085,2.424,2.424c0,0.015-0.001,0.031-0.001,0.046l3.541,3.542V6.924c-0.457-0.441-0.743-1.06-0.743-1.746c0-1.339,1.086-2.425,2.425-2.425c1.338,0,2.424,1.085,2.424,2.425c0,0.686-0.286,1.305-0.743,1.746v5.008l3.541-3.542c0-0.015-0.001-0.031-0.001-0.046c0-1.339,1.085-2.424,2.424-2.424s2.424,1.085,2.424,2.424c0,1.339-1.085,2.424-2.424,2.424c-0.016,0-0.031-0.001-0.047-0.001l-3.541,3.542h5.008c0.441-0.458,1.061-0.744,1.747-0.744c1.338,0,2.423,1.085,2.423,2.424s-1.085,2.424-2.423,2.424c-0.687,0-1.306-0.285-1.747-0.743h-5.008L23.583,21.211z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Svg\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Svg();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/TShirt.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/TShirt.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.TShirt = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.TShirt\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.1,4.039c-0.681,1.677-2.32,2.862-4.24,2.862c-1.921,0-3.56-1.185-4.24-2.862L1.238,8.442l2.921,6.884l3.208-1.361V28h17.099V14.015l3.093,1.312l2.922-6.884L20.1,4.039z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.TShirt\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.TShirt();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Tag.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Tag.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Tag = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Tag\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.263,2.826H7.904L2.702,8.028v6.359L18.405,30.09l11.561-11.562L14.263,2.826zM6.495,8.859c-0.619-0.619-0.619-1.622,0-2.24C7.114,6,8.117,6,8.736,6.619c0.62,0.62,0.619,1.621,0,2.241C8.117,9.479,7.114,9.479,6.495,8.859z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Tag\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Tag();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/TakeOff.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/TakeOff.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.TakeOff = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.TakeOff\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M10.27,19.267c0,0,9.375-1.981,16.074-8.681c0,0,1.395-1.339-1.338-1.339c-2.305,0-5.6,2.438-5.6,2.438l-9.137-1.42l-1.769,1.769l4.983,2.411l-3.001,2.035l-2.571-1.285L6.09,16.052C6.09,16.052,8.02,18.062,10.27,19.267zM3.251,23.106v1.998h24.498v-1.998H3.251z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.TakeOff\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.TakeOff();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Talke.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Talke.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Talke = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Talke\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,4.938c-7.732,0-14,4.701-14,10.5c0,1.981,0.741,3.833,2.016,5.414L2,25.272l5.613-1.44c2.339,1.316,5.237,2.106,8.387,2.106c7.732,0,14-4.701,14-10.5S23.732,4.938,16,4.938zM16.982,21.375h-1.969v-1.889h1.969V21.375zM16.982,17.469v0.625h-1.969v-0.769c0-2.321,2.641-2.689,2.641-4.337c0-0.752-0.672-1.329-1.553-1.329c-0.912,0-1.713,0.672-1.713,0.672l-1.12-1.393c0,0,1.104-1.153,3.009-1.153c1.81,0,3.49,1.121,3.49,3.009C19.768,15.437,16.982,15.741,16.982,17.469z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Talke\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Talke();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Talkq.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Talkq.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Talkq = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Talkq\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,4.938c-7.732,0-14,4.701-14,10.5c0,1.981,0.741,3.833,2.016,5.414L2,25.272l5.613-1.44c2.339,1.316,5.237,2.106,8.387,2.106c7.732,0,14-4.701,14-10.5S23.732,4.938,16,4.938zM16.868,21.375h-1.969v-1.889h1.969V21.375zM16.772,18.094h-1.777l-0.176-8.083h2.113L16.772,18.094z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Talkq\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Talkq();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Thunder.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Thunder.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Thunder = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Thunder\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.371,7.306c-0.092-3.924-3.301-7.077-7.248-7.079c-2.638,0.001-4.942,1.412-6.208,3.517c-0.595-0.327-1.28-0.517-2.01-0.517C7.626,3.229,5.772,5.033,5.689,7.293c-2.393,0.786-4.125,3.025-4.127,5.686c0,3.312,2.687,6,6,6v-0.002h5.271l-2.166,3.398l1.977-0.411L10,30.875l9.138-10.102L17,21l2.167-2.023h4.269c3.312,0,6-2.688,6-6C29.434,10.34,27.732,8.11,25.371,7.306zM23.436,16.979H7.561c-2.209-0.006-3.997-1.792-4.001-4.001c-0.002-1.982,1.45-3.618,3.35-3.931c0.265-0.043,0.502-0.191,0.657-0.414C7.722,8.41,7.779,8.136,7.73,7.87C7.702,7.722,7.685,7.582,7.685,7.446C7.689,6.221,8.68,5.23,9.905,5.228c0.647,0,1.217,0.278,1.633,0.731c0.233,0.257,0.587,0.375,0.927,0.309c0.342-0.066,0.626-0.307,0.748-0.63c0.749-1.992,2.662-3.412,4.911-3.41c2.899,0.004,5.244,2.35,5.251,5.249c0,0.161-0.009,0.326-0.027,0.497c-0.049,0.517,0.305,0.984,0.815,1.079c1.86,0.344,3.274,1.966,3.271,3.923C27.43,15.186,25.645,16.973,23.436,16.979z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Thunder\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Thunder();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Trash.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Trash.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Trash = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Trash\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.826,5.75l0.396,1.188c1.54,0.575,2.589,1.44,2.589,2.626c0,2.405-4.308,3.498-8.312,3.498c-4.003,0-8.311-1.093-8.311-3.498c0-1.272,1.21-2.174,2.938-2.746l0.388-1.165c-2.443,0.648-4.327,1.876-4.327,3.91v2.264c0,1.224,0.685,2.155,1.759,2.845l0.396,9.265c0,1.381,3.274,2.5,7.312,2.5c4.038,0,7.313-1.119,7.313-2.5l0.405-9.493c0.885-0.664,1.438-1.521,1.438-2.617V9.562C24.812,7.625,23.101,6.42,20.826,5.75zM11.093,24.127c-0.476-0.286-1.022-0.846-1.166-1.237c-1.007-2.76-0.73-4.921-0.529-7.509c0.747,0.28,1.58,0.491,2.45,0.642c-0.216,2.658-0.43,4.923,0.003,7.828C11.916,24.278,11.567,24.411,11.093,24.127zM17.219,24.329c-0.019,0.445-0.691,0.856-1.517,0.856c-0.828,0-1.498-0.413-1.517-0.858c-0.126-2.996-0.032-5.322,0.068-8.039c0.418,0.022,0.835,0.037,1.246,0.037c0.543,0,1.097-0.02,1.651-0.059C17.251,18.994,17.346,21.325,17.219,24.329zM21.476,22.892c-0.143,0.392-0.69,0.95-1.165,1.235c-0.474,0.284-0.817,0.151-0.754-0.276c0.437-2.93,0.214-5.209-0.005-7.897c0.881-0.174,1.708-0.417,2.44-0.731C22.194,17.883,22.503,20.076,21.476,22.892zM11.338,9.512c0.525,0.173,1.092-0.109,1.268-0.633h-0.002l0.771-2.316h4.56l0.771,2.316c0.14,0.419,0.53,0.685,0.949,0.685c0.104,0,0.211-0.017,0.316-0.052c0.524-0.175,0.808-0.742,0.633-1.265l-1.002-3.001c-0.136-0.407-0.518-0.683-0.945-0.683h-6.002c-0.428,0-0.812,0.275-0.948,0.683l-1,2.999C10.532,8.77,10.815,9.337,11.338,9.512z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Trash\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Trash();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Twitter.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Twitter.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Twitter = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Twitter\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M23.295,22.567h-7.213c-2.125,0-4.103-2.215-4.103-4.736v-1.829h11.232c1.817,0,3.291-1.469,3.291-3.281c0-1.813-1.474-3.282-3.291-3.282H11.979V6.198c0-1.835-1.375-3.323-3.192-3.323c-1.816,0-3.29,1.488-3.29,3.323v11.633c0,6.23,4.685,11.274,10.476,11.274h7.211c1.818,0,3.318-1.463,3.318-3.298S25.112,22.567,23.295,22.567z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Twitter\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Twitter();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/TwitterBird.js\":\n/*!***************************************!*\\\n !*** ./src/shape/icon/TwitterBird.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.TwitterBird = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.TwitterBird\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.605,13.11c0.913-2.851,2.029-4.698,3.313-6.038c0.959-1,1.453-1.316,0.891-0.216c0.25-0.199,0.606-0.464,0.885-0.605c1.555-0.733,1.442-0.119,0.373,0.54c2.923-1.045,2.82,0.286-0.271,0.949c2.527,0.047,5.214,1.656,5.987,5.077c0.105,0.474-0.021,0.428,0.464,0.514c1.047,0.186,2.03,0.174,2.991-0.13c-0.104,0.708-1.039,1.167-2.497,1.471c-0.541,0.112-0.651,0.083-0.005,0.229c0.799,0.179,1.69,0.226,2.634,0.182c-0.734,0.846-1.905,1.278-3.354,1.296c-0.904,3.309-2.976,5.678-5.596,7.164c-6.152,3.492-15.108,2.984-19.599-3.359c2.947,2.312,7.312,2.821,10.555-0.401c-2.125,0-2.674-1.591-0.99-2.449c-1.595-0.017-2.608-0.521-3.203-1.434c-0.226-0.347-0.229-0.374,0.14-0.64c0.405-0.293,0.958-0.423,1.528-0.467c-1.651-0.473-2.66-1.335-3.009-2.491c-0.116-0.382-0.134-0.363,0.256-0.462c0.38-0.097,0.87-0.148,1.309-0.17C6.11,10.88,5.336,9.917,5.139,8.852c-0.186-1.006,0.005-0.748,0.758-0.46C9.263,9.68,12.619,11.062,14.605,13.11L14.605,13.11z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.TwitterBird\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.TwitterBird();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Umbrella.js\":\n/*!************************************!*\\\n !*** ./src/shape/icon/Umbrella.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Umbrella = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Umbrella\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M14.784,26.991c0,1.238-1.329,1.696-1.835,1.696c-0.504,0-1.536-0.413-1.65-1.812c0-0.354-0.288-0.642-0.644-0.642c-0.354,0-0.641,0.287-0.641,0.642c0.045,1.056,0.756,3.052,2.935,3.052c2.432,0,3.166-1.882,3.166-3.144v-8.176l-1.328-0.024C14.787,18.584,14.784,25.889,14.784,26.991zM15.584,9.804c-6.807,0-11.084,4.859-11.587,8.326c0.636-0.913,1.694-1.51,2.89-1.51c1.197,0,2.22,0.582,2.855,1.495c0.638-0.904,1.69-1.495,2.88-1.495c1.2,0,2.26,0.6,2.896,1.517c0.635-0.917,1.83-1.517,3.03-1.517c1.19,0,2.241,0.591,2.879,1.495c0.636-0.913,1.659-1.495,2.855-1.495c1.197,0,2.254,0.597,2.89,1.51C26.669,14.663,22.393,9.804,15.584,9.804zM14.733,7.125v2.081h1.323V7.125c0-0.365-0.296-0.661-0.661-0.661C15.029,6.464,14.733,6.76,14.733,7.125z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Umbrella\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Umbrella();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Undo.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/Undo.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Undo = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Undo\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M12.981,9.073V6.817l-12.106,6.99l12.106,6.99v-2.422c3.285-0.002,9.052,0.28,9.052,2.269c0,2.78-6.023,4.263-6.023,4.263v2.132c0,0,13.53,0.463,13.53-9.823C29.54,9.134,17.952,8.831,12.981,9.073z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Undo\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Undo();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Unlock.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Unlock.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Unlock = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Unlock\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.375,12.833h-2.209V10c0,0,0,0,0-0.001c0-2.389,1.945-4.333,4.334-4.333c2.391,0,4.335,1.944,4.335,4.333c0,0,0,0,0,0v2.834h2V9.999h-0.001c-0.001-3.498-2.836-6.333-6.334-6.333S16.166,6.502,16.166,10v2.833H3.125V25h17.25V12.833z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Unlock\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Unlock();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Usb.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Usb.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Usb = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Usb\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M15.5,1.667L13.745,4.74h1.252v15.709L11.8,17.391c-0.205-0.26-0.351-0.601-0.358-0.952c0-1.417-0.001-2.258-0.001-2.568c0.592-0.21,1.02-0.774,1.02-1.444c0-0.849-0.682-1.538-1.521-1.538c-0.84,0-1.521,0.689-1.521,1.538c0,0.67,0.427,1.234,1.019,1.444l-0.001,2.539c0,0.688,0.373,1.409,0.812,1.868c-0.013-0.013-0.027-0.025,0,0c0.011,0.01,3.392,3.245,3.392,3.245c0.205,0.26,0.35,0.6,0.357,0.951v1.776c-1.161,0.236-2.036,1.272-2.036,2.517c0,1.418,1.137,2.566,2.539,2.566c1.403,0,2.54-1.148,2.54-2.566c0-1.244-0.875-2.28-2.038-2.517v-1.746c0-0.005,0-0.009,0-0.014v-3.861c0.008-0.35,0.152-0.689,0.358-0.949c0,0,3.38-3.234,3.392-3.245c0.027-0.026,0.012-0.013,0,0c0.438-0.459,0.811-1.181,0.811-1.869V10.12h1.02V7.046h-3.041v3.075h1.018c0,0-0.002,0.644-0.002,2.476c-0.008,0.351-0.152,0.692-0.357,0.952l-3.198,3.06V4.74h1.254L15.5,1.667z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Usb\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Usb();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/User.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/User.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.User = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.User\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.771,12.364c0,0,0.849-3.51,0-4.699c-0.85-1.189-1.189-1.981-3.058-2.548s-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.792-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.321s0.283,3.058,0.566,3.624l-0.337,0.113c-0.283,3.283,1.132,3.68,1.132,3.68c0.509,3.058,1.019,1.756,1.019,2.548s-0.51,0.51-0.51,0.51s-0.452,1.245-1.584,1.698c-1.132,0.452-7.416,2.886-7.927,3.396c-0.511,0.511-0.453,2.888-0.453,2.888h26.947c0,0,0.059-2.377-0.452-2.888c-0.512-0.511-6.796-2.944-7.928-3.396c-1.132-0.453-1.584-1.698-1.584-1.698s-0.51,0.282-0.51-0.51s0.51,0.51,1.02-2.548c0,0,1.414-0.397,1.132-3.68H20.771z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.User\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.User();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Users.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Users.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Users = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Users\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.053,20.8c-1.132-0.453-1.584-1.698-1.584-1.698s-0.51,0.282-0.51-0.51s0.51,0.51,1.02-2.548c0,0,1.414-0.397,1.132-3.68h-0.34c0,0,0.849-3.51,0-4.699c-0.85-1.189-1.189-1.981-3.058-2.548s-1.188-0.454-2.547-0.396c-1.359,0.057-2.492,0.792-2.492,1.188c0,0-0.849,0.057-1.188,0.397c-0.34,0.34-0.906,1.924-0.906,2.321s0.283,3.058,0.566,3.624l-0.337,0.113c-0.283,3.283,1.132,3.68,1.132,3.68c0.509,3.058,1.019,1.756,1.019,2.548s-0.51,0.51-0.51,0.51s-0.452,1.245-1.584,1.698c-1.132,0.452-7.416,2.886-7.927,3.396c-0.511,0.511-0.453,2.888-0.453,2.888h26.947c0,0,0.059-2.377-0.452-2.888C28.469,23.686,22.185,21.252,21.053,20.8zM8.583,20.628c-0.099-0.18-0.148-0.31-0.148-0.31s-0.432,0.239-0.432-0.432s0.432,0.432,0.864-2.159c0,0,1.199-0.336,0.959-3.119H9.538c0,0,0.143-0.591,0.237-1.334c-0.004-0.308,0.006-0.636,0.037-0.996l0.038-0.426c-0.021-0.492-0.107-0.939-0.312-1.226C8.818,9.619,8.53,8.947,6.947,8.467c-1.583-0.48-1.008-0.385-2.159-0.336C3.636,8.179,2.676,8.802,2.676,9.139c0,0-0.72,0.048-1.008,0.336c-0.271,0.271-0.705,1.462-0.757,1.885v0.281c0.047,0.653,0.258,2.449,0.469,2.872l-0.286,0.096c-0.239,2.783,0.959,3.119,0.959,3.119c0.432,2.591,0.864,1.488,0.864,2.159s-0.432,0.432-0.432,0.432s-0.383,1.057-1.343,1.439c-0.061,0.024-0.139,0.056-0.232,0.092v5.234h0.575c-0.029-1.278,0.077-2.927,0.746-3.594C2.587,23.135,3.754,22.551,8.583,20.628zM30.913,11.572c-0.04-0.378-0.127-0.715-0.292-0.946c-0.719-1.008-1.008-1.679-2.59-2.159c-1.584-0.48-1.008-0.385-2.16-0.336C24.72,8.179,23.76,8.802,23.76,9.139c0,0-0.719,0.048-1.008,0.336c-0.271,0.272-0.709,1.472-0.758,1.891h0.033l0.08,0.913c0.02,0.231,0.022,0.436,0.027,0.645c0.09,0.666,0.21,1.35,0.33,1.589l-0.286,0.096c-0.239,2.783,0.96,3.119,0.96,3.119c0.432,2.591,0.863,1.488,0.863,2.159s-0.432,0.432-0.432,0.432s-0.053,0.142-0.163,0.338c4.77,1.9,5.927,2.48,6.279,2.834c0.67,0.667,0.775,2.315,0.746,3.594h0.48v-5.306c-0.016-0.006-0.038-0.015-0.052-0.021c-0.959-0.383-1.343-1.439-1.343-1.439s-0.433,0.239-0.433-0.432s0.433,0.432,0.864-2.159c0,0,0.804-0.229,0.963-1.841v-1.227c-0.001-0.018-0.001-0.033-0.003-0.051h-0.289c0,0,0.215-0.89,0.292-1.861V11.572z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Users\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Users();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Video.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Video.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Video = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Video\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.188,4.875v1.094h-4.5V4.875H8.062v1.094h-4.5V4.875h-1v21.25h1v-1.094h4.5v1.094h14.625v-1.094h4.5v1.094h1.25V4.875H27.188zM8.062,23.719h-4.5v-3.125h4.5V23.719zM8.062,19.281h-4.5v-3.125h4.5V19.281zM8.062,14.844h-4.5v-3.125h4.5V14.844zM8.062,10.406h-4.5V7.281h4.5V10.406zM11.247,20.59V9.754l9.382,5.418L11.247,20.59zM27.188,23.719h-4.5v-3.125h4.5V23.719zM27.188,19.281h-4.5v-3.125h4.5V19.281zM27.188,14.844h-4.5v-3.125h4.5V14.844zM27.188,10.406h-4.5V7.281h4.5V10.406z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Video\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Video();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/View.js\":\n/*!********************************!*\\\n !*** ./src/shape/icon/View.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.View = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.View\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M16,8.286C8.454,8.286,2.5,16,2.5,16s5.954,7.715,13.5,7.715c5.771,0,13.5-7.715,13.5-7.715S21.771,8.286,16,8.286zM16,20.807c-2.649,0-4.807-2.157-4.807-4.807s2.158-4.807,4.807-4.807s4.807,2.158,4.807,4.807S18.649,20.807,16,20.807zM16,13.194c-1.549,0-2.806,1.256-2.806,2.806c0,1.55,1.256,2.806,2.806,2.806c1.55,0,2.806-1.256,2.806-2.806C18.806,14.451,17.55,13.194,16,13.194z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.View\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.View();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Vim.js\":\n/*!*******************************!*\\\n !*** ./src/shape/icon/Vim.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Vim = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Vim\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M25.012,10.44l4.571-4.645c0.11-0.113,0.173-0.264,0.173-0.423V3.134c0-0.159-0.064-0.314-0.177-0.427l-0.604-0.602c-0.111-0.112-0.261-0.176-0.42-0.177l-9.646-0.086C18.71,1.84,18.523,1.935,18.41,2.099L17.807,2.96c-0.033,0.047-0.059,0.099-0.076,0.154l-2.144-2.156l0,0l-1.646,1.666l-0.447-0.497c-0.112-0.125-0.27-0.197-0.438-0.199L3.324,1.756c-0.163-0.003-0.322,0.06-0.437,0.176L2.284,2.535C2.171,2.647,2.107,2.803,2.107,2.962v2.325c0,0.164,0.066,0.32,0.183,0.434l0.657,0.635C3.056,6.461,3.2,6.521,3.352,6.525l0.285,0.007l0.007,6.512l-2.527,2.557l2.533,2.533l0.008,8.084c0,0.159,0.065,0.314,0.177,0.427l0.861,0.861c0.112,0.111,0.268,0.176,0.427,0.176h2.67c0.161,0,0.317-0.064,0.43-0.181l2.378-2.417l4.9,4.9l14.47-14.558L25.012,10.44zM9.747,24.232l-2.208,2.242H5.372l-0.509-0.509L4.856,19.34l-0.008-7.515L4.842,5.943c0-0.328-0.261-0.594-0.588-0.603L3.617,5.326L3.313,5.031v-1.82l0.245-0.245l9.215,0.163l0.319,0.354l0.126,0.141v1.419l-0.352,0.362H12.26c-0.331,0-0.6,0.266-0.603,0.597l-0.076,7.203c-0.002,0.244,0.141,0.463,0.365,0.56c0.224,0.096,0.482,0.049,0.657-0.12l7.495-7.235c0.174-0.171,0.23-0.432,0.139-0.66c-0.09-0.228-0.312-0.377-0.56-0.377h-0.479l-0.296-0.379V3.496l0.312-0.445l9.083,0.081l0.252,0.252v1.743l-4.388,4.458L9.747,24.232z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Vim\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Vim();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Volume0.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Volume0.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Volume0 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Volume0\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.998,12.127v7.896h4.495l6.729,5.526l0.004-18.948l-6.73,5.526H4.998z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Volume0\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Volume0();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Volume1.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Volume1.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Volume1 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Volume1\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.998,12.127v7.896h4.495l6.729,5.526l0.004-18.948l-6.73,5.526H4.998z M18.806,11.219c-0.393-0.389-1.024-0.389-1.415,0.002c-0.39,0.391-0.39,1.024,0.002,1.416v-0.002c0.863,0.864,1.395,2.049,1.395,3.366c0,1.316-0.531,2.497-1.393,3.361c-0.394,0.389-0.394,1.022-0.002,1.415c0.195,0.195,0.451,0.293,0.707,0.293c0.257,0,0.513-0.098,0.708-0.293c1.222-1.22,1.98-2.915,1.979-4.776C20.788,14.136,20.027,12.439,18.806,11.219z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Volume1\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Volume1();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Volume2.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Volume2.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Volume2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Volume2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.998,12.127v7.896h4.495l6.729,5.526l0.004-18.948l-6.73,5.526H4.998z M18.806,11.219c-0.393-0.389-1.024-0.389-1.415,0.002c-0.39,0.391-0.39,1.024,0.002,1.416v-0.002c0.863,0.864,1.395,2.049,1.395,3.366c0,1.316-0.531,2.497-1.393,3.361c-0.394,0.389-0.394,1.022-0.002,1.415c0.195,0.195,0.451,0.293,0.707,0.293c0.257,0,0.513-0.098,0.708-0.293c1.222-1.22,1.98-2.915,1.979-4.776C20.788,14.136,20.027,12.439,18.806,11.219z M21.101,8.925c-0.393-0.391-1.024-0.391-1.413,0c-0.392,0.391-0.392,1.025,0,1.414c1.45,1.451,2.344,3.447,2.344,5.661c0,2.212-0.894,4.207-2.342,5.659c-0.392,0.39-0.392,1.023,0,1.414c0.195,0.195,0.451,0.293,0.708,0.293c0.256,0,0.512-0.098,0.707-0.293c1.808-1.809,2.929-4.315,2.927-7.073C24.033,13.24,22.912,10.732,21.101,8.925z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Volume2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Volume2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Volume3.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Volume3.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Volume3 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Volume3\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M4.998,12.127v7.896h4.495l6.729,5.526l0.004-18.948l-6.73,5.526H4.998z M18.806,11.219c-0.393-0.389-1.024-0.389-1.415,0.002c-0.39,0.391-0.39,1.024,0.002,1.416v-0.002c0.863,0.864,1.395,2.049,1.395,3.366c0,1.316-0.531,2.497-1.393,3.361c-0.394,0.389-0.394,1.022-0.002,1.415c0.195,0.195,0.451,0.293,0.707,0.293c0.257,0,0.513-0.098,0.708-0.293c1.222-1.22,1.98-2.915,1.979-4.776C20.788,14.136,20.027,12.439,18.806,11.219z M21.101,8.925c-0.393-0.391-1.024-0.391-1.413,0c-0.392,0.391-0.392,1.025,0,1.414c1.45,1.451,2.344,3.447,2.344,5.661c0,2.212-0.894,4.207-2.342,5.659c-0.392,0.39-0.392,1.023,0,1.414c0.195,0.195,0.451,0.293,0.708,0.293c0.256,0,0.512-0.098,0.707-0.293c1.808-1.809,2.929-4.315,2.927-7.073C24.033,13.24,22.912,10.732,21.101,8.925z M23.28,6.746c-0.393-0.391-1.025-0.389-1.414,0.002c-0.391,0.389-0.391,1.023,0.002,1.413h-0.002c2.009,2.009,3.248,4.773,3.248,7.839c0,3.063-1.239,5.828-3.246,7.838c-0.391,0.39-0.391,1.023,0.002,1.415c0.194,0.194,0.45,0.291,0.706,0.291s0.513-0.098,0.708-0.293c2.363-2.366,3.831-5.643,3.829-9.251C27.115,12.389,25.647,9.111,23.28,6.746z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Volume3\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Volume3();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Warning.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Warning.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Warning = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Warning\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M29.225,23.567l-3.778-6.542c-1.139-1.972-3.002-5.2-4.141-7.172l-3.778-6.542c-1.14-1.973-3.003-1.973-4.142,0L9.609,9.853c-1.139,1.972-3.003,5.201-4.142,7.172L1.69,23.567c-1.139,1.974-0.207,3.587,2.071,3.587h23.391C29.432,27.154,30.363,25.541,29.225,23.567zM16.536,24.58h-2.241v-2.151h2.241V24.58zM16.428,20.844h-2.023l-0.201-9.204h2.407L16.428,20.844z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Warning\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Warning();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/WheelChair.js\":\n/*!**************************************!*\\\n !*** ./src/shape/icon/WheelChair.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.WheelChair = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.WheelChair\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.373,19.85c0,4.079-3.318,7.397-7.398,7.397c-4.079,0-7.398-3.318-7.398-7.397c0-2.466,1.213-4.652,3.073-5.997l-0.251-2.21c-2.875,1.609-4.825,4.684-4.825,8.207c0,5.184,4.217,9.4,9.401,9.4c4.395,0,8.093-3.031,9.117-7.111L20.37,19.73C20.37,19.771,20.373,19.81,20.373,19.85zM11.768,6.534c1.321,0,2.392-1.071,2.392-2.392c0-1.321-1.071-2.392-2.392-2.392c-1.321,0-2.392,1.071-2.392,2.392C9.375,5.463,10.446,6.534,11.768,6.534zM27.188,22.677l-5.367-7.505c-0.28-0.393-0.749-0.579-1.226-0.538c-0.035-0.003-0.071-0.006-0.106-0.006h-6.132l-0.152-1.335h4.557c0.53,0,0.96-0.429,0.96-0.959c0-0.53-0.43-0.959-0.96-0.959h-4.776l-0.25-2.192c-0.146-1.282-1.303-2.203-2.585-2.057C9.869,7.271,8.948,8.428,9.094,9.71l0.705,6.19c0.136,1.197,1.154,2.078,2.332,2.071c0.004,0,0.007,0.001,0.012,0.001h8.023l4.603,6.436c0.439,0.615,1.338,0.727,2.007,0.248C27.442,24.178,27.628,23.292,27.188,22.677z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.WheelChair\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.WheelChair();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Windows.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Windows.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Windows = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Windows\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M20.023,17.484c-1.732-0.205-3.022-0.908-4.212-1.701l0,0l-0.559,0.279l-2.578,8.924l0,0c1.217,0.805,2.905,1.707,4.682,1.914c2.686,0.312,5.56-0.744,6.391-1.195l2.617-9.061l-0.559-0.279C25.805,16.365,23.193,17.857,20.023,17.484zM14.424,14.825c-1.267-0.87-2.578-1.652-4.375-1.816c-0.318-0.029-0.627-0.042-0.925-0.042c-3.011,0-4.948,1.347-4.948,1.347l-2.565,8.877l0,0l0.526,0.281c0.981-0.476,2.78-1.145,5.09-0.984c1.665,0.113,2.92,0.781,4.117,1.531l0.507-0.26l0,0L14.424,14.825zM10.201,12.094c1.664,0.114,2.921,0.78,4.117,1.533l0.509-0.26l0,0L17.4,4.431c-1.27-0.87-2.579-1.653-4.377-1.816c-0.318-0.029-0.626-0.042-0.924-0.042C9.088,2.573,7.15,3.92,7.15,3.92l-2.566,8.878L5.11,13.08C6.092,12.604,7.891,11.936,10.201,12.094zM28.779,5.971L28.779,5.971c0,0.001-2.609,1.492-5.779,1.119c-1.734-0.204-3.023-0.907-4.213-1.701L18.227,5.67l-2.576,8.923l0,0c1.215,0.803,2.906,1.709,4.68,1.915c2.687,0.312,5.558-0.745,6.392-1.197l2.615-9.059L28.779,5.971z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Windows\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Windows();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Woman.js\":\n/*!*********************************!*\\\n !*** ./src/shape/icon/Woman.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Woman = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Woman\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M21.022,16.349c-0.611-1.104-1.359-1.998-2.109-2.623c-0.875,0.641-1.941,1.031-3.104,1.031c-1.164,0-2.231-0.391-3.105-1.031c-0.75,0.625-1.498,1.519-2.111,2.623c-1.422,2.563-1.579,5.192-0.351,5.874c0.55,0.307,1.127,0.078,1.723-0.496c-0.105,0.582-0.167,1.213-0.167,1.873c0,2.932,1.139,5.307,2.543,5.307c0.846,0,1.265-0.865,1.466-2.189c0.201,1.324,0.62,2.189,1.464,2.189c1.406,0,2.545-2.375,2.545-5.307c0-0.66-0.061-1.291-0.168-1.873c0.598,0.574,1.174,0.803,1.725,0.496C22.603,21.541,22.444,18.912,21.022,16.349zM15.808,13.757c2.363,0,4.279-1.916,4.279-4.279s-1.916-4.279-4.279-4.279c-2.363,0-4.28,1.916-4.28,4.279S13.445,13.757,15.808,13.757zM18.731,4.974c1.235,0.455,0.492-0.725,0.492-1.531s0.762-1.792-0.492-1.391c-1.316,0.422-2.383,0.654-2.383,1.461S17.415,4.489,18.731,4.974zM15.816,4.4c0.782,0,0.345-0.396,0.345-0.884c0-0.488,0.438-0.883-0.345-0.883s-0.374,0.396-0.374,0.883C15.442,4.005,15.034,4.4,15.816,4.4zM12.884,4.974c1.316-0.484,2.383-0.654,2.383-1.461S14.2,2.474,12.884,2.052c-1.254-0.402-0.492,0.584-0.492,1.391S11.648,5.428,12.884,4.974z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Woman\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Woman();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Wrench.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/Wrench.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Wrench = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Wrench\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M26.834,14.693c1.816-2.088,2.181-4.938,1.193-7.334l-3.646,4.252l-3.594-0.699L19.596,7.45l3.637-4.242c-2.502-0.63-5.258,0.13-7.066,2.21c-1.907,2.193-2.219,5.229-1.039,7.693L5.624,24.04c-1.011,1.162-0.888,2.924,0.274,3.935c1.162,1.01,2.924,0.888,3.935-0.274l9.493-10.918C21.939,17.625,24.918,16.896,26.834,14.693z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Wrench\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Wrench();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Wrench2.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Wrench2.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Wrench2 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Wrench2\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M24.946,9.721l-2.872-0.768l-0.771-2.874l3.188-3.231c-1.992-0.653-4.268-0.192-5.848,1.391c-1.668,1.668-2.095,4.111-1.279,6.172l-3.476,3.478l-3.478,3.478c-2.062-0.816-4.504-0.391-6.173,1.277c-1.583,1.581-2.043,3.856-1.39,5.849l3.231-3.188l2.874,0.77l0.769,2.872l-3.239,3.197c1.998,0.665,4.288,0.207,5.876-1.384c1.678-1.678,2.1-4.133,1.271-6.202l3.463-3.464l3.464-3.463c2.069,0.828,4.523,0.406,6.202-1.272c1.592-1.589,2.049-3.878,1.384-5.876L24.946,9.721z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Wrench2\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Wrench2();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/Wrench3.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/Wrench3.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.Wrench3 = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.Wrench3\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M27.839,6.775l-3.197,3.239L21.77,9.246l-0.771-2.874l3.188-3.231c-1.992-0.653-4.268-0.192-5.848,1.391c-1.668,1.668-2.095,4.111-1.279,6.172L7.42,20.344c-0.204-0.032-0.408-0.062-0.621-0.062c-2.173,0-3.933,1.759-3.933,3.933c0,2.173,1.76,3.933,3.933,3.933c2.171,0,3.931-1.76,3.933-3.933c0-0.24-0.03-0.473-0.071-0.7l9.592-9.59c2.069,0.828,4.523,0.406,6.202-1.272C28.047,11.062,28.504,8.772,27.839,6.775zM6.799,25.146c-0.517,0-0.933-0.418-0.935-0.933c0.002-0.515,0.418-0.933,0.935-0.933c0.514,0,0.932,0.418,0.932,0.933S7.313,25.146,6.799,25.146z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.Wrench3\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.Wrench3();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ZoomIn.js\":\n/*!**********************************!*\\\n !*** ./src/shape/icon/ZoomIn.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ZoomIn = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ZoomIn\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.646,19.307c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127l3.535-3.537L22.646,19.307zM13.688,20.369c-3.582-0.008-6.478-2.904-6.484-6.484c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486C20.165,17.465,17.267,20.361,13.688,20.369zM15.687,9.051h-4v2.833H8.854v4.001h2.833v2.833h4v-2.834h2.832v-3.999h-2.833V9.051z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ZoomIn\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ZoomIn();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/icon/ZoomOut.js\":\n/*!***********************************!*\\\n !*** ./src/shape/icon/ZoomOut.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.icon.ZoomOut = _packages2.default.shape.icon.Icon.extend({\n NAME: \"draw2d.shape.icon.ZoomOut\",\n\n /**\r\n *\r\n * @constructor\r\n * Creates a new icon element which are not assigned to any canvas.\r\n *\r\n * @param {Object} attr the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 50, height: 50 }, attr), setter, getter);\n },\n\n /**\r\n * @private\r\n * @returns\r\n */\n createSet: function createSet() {\n return this.canvas.paper.path(\"M22.646,19.307c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127l3.535-3.537L22.646,19.307zM13.688,20.369c-3.582-0.008-6.478-2.904-6.484-6.484c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486C20.165,17.465,17.267,20.361,13.688,20.369zM8.854,11.884v4.001l9.665-0.001v-3.999L8.854,11.884z\");\n }\n}); /**\r\n * @class draw2d.shape.icon.ZoomOut\r\n \r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let icon = new draw2d.shape.icon.ZoomOut();\r\n *\r\n * canvas.add(icon,50,10);\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.icon.Icon\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/layout/FlexGridLayout.js\":\n/*!********************************************!*\\\n !*** ./src/shape/layout/FlexGridLayout.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.layout.FlexGridLayout\r\n *\r\n * FlexGridLayout is a powerful, flexible and precise layout manager that aligns components vertically and\r\n * horizontally in a dynamic rectangular grid of cells, with each component occupying in one or more cell.\r\n * To define a form layout you specify the form's columns, rows. Everyhing that applies to columns applies\r\n * to rows too - just with a different orientation. FlexGridLayout uses the same API, algorithms and implementation\r\n * for column and rows.\r\n *\r\n * FlexGridLayout focuses on form-oriented panels much like the 'Segment' panel. Nevertheless, it is a general purpose\r\n * layout system that can be used for the vast majority of rectangular layouts.\r\n *\r\n * Define your layout with:\r\n * <ul>\r\n * <li>[number]px</li>\r\n * <li>grow</li>\r\n * <li>pref</li>\r\n * </ul>\r\n *\r\n * e.g. we want build a shape with a border on the left and right and a label in the\r\n * center. We allow the center to grow, the shape is resizeable.\r\n *\r\n * <pre>\r\n * 10px grow 10px\r\n *\r\n * -----+------------------+-----\r\n * | | [LABEL] | |\r\n * | | | |\r\n * | | | | grow\r\n * | | | |\r\n * | | | |\r\n * -----+------------------+-----\r\n * </pre>\r\n *\r\n * The number forces the exact width or height of the cell. <b>grow</b> respect the minimum width of the\r\n * element and allows to resize the shape. The row/col with the <b>grow</b> declaration will be resized.\r\n * The <b>pref</b> declaration forces the cell to the minimum width/height of the embedded figure.\r\n *\r\n * Example Implementation of a shape:\r\n *\r\n * @example preview small frame\r\n * let PredefinedProcess = draw2d.shape.layout.FlexGridLayout.extend({\r\n *\r\n *\r\n * // 10px grow 10px\r\n * //\r\n * // -----+------------------+-----\r\n * // | | [LABEL] | |\r\n * // | | | |\r\n * // | | | | grow\r\n * // | | | |\r\n * // | | | |\r\n * // -----+------------------+-----\r\n * //\r\n * // @param attr\r\n * //\r\n * init: function(attr, setter, getter)\r\n * {\r\n * this._super(extend({\r\n * columns:\"10px, grow, 10px\",\r\n * rows: \"grow\",\r\n * bgColor:\"#FFFFFF\",\r\n * stroke:2\r\n * },attr),\r\n * setter,\r\n * getter);\r\n *\r\n *\r\n * this.label = new draw2d.shape.basic.Label({text:\"Process Name\", resizeable:true, stroke:2});\r\n * this.label.installEditor(new draw2d.ui.LabelInplaceEditor());\r\n * this.add(this.label, {row:0, col:1});\r\n *\r\n * this.setDimension(120,80);\r\n * }\r\n * });\r\n * let shape = new PredefinedProcess();\r\n * canvas.add(shape,10,10);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.layout.Layout\r\n * @since 2.5.1\r\n */\n_packages2.default.shape.layout.FlexGridLayout = _packages2.default.shape.layout.Layout.extend({\n\n NAME: \"draw2d.shape.layout.FlexGridLayout\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n var _this = this;\n this.cellLocator = {\n relocate: function relocate(index, figure) {\n if (_this.gridDef.layoutRequired === true) {\n _this._layout();\n }\n var cell = figure.__cellConstraint;\n var x = cell.x;\n var y = cell.y;\n\n // stretch the figure to fill the complete cell\n //\n if (figure.isResizeable()) {\n figure.setDimension(Math.max(figure.getMinWidth(), cell.width), Math.max(figure.getMinHeight(), cell.height));\n }\n // else apply the valign and align property\n //\n else {\n // apply vertical alignment\n //\n switch (cell.valign) {\n case \"middle\":\n y = y + (cell.height - figure.getHeight()) / 2;\n break;\n case \"bottom\":\n y = y + (cell.height - figure.getHeight());\n break;\n }\n\n // apply horizontal alignment\n //\n switch (cell.align) {\n case \"center\":\n x = x + (cell.width - figure.getWidth()) / 2;\n break;\n case \"right\":\n x = x + (cell.width - figure.getWidth());\n break;\n }\n }\n figure.setPosition(x, y);\n },\n bind: function bind() {},\n unbind: function unbind() {},\n translate: function translate(figure, diff) {\n figure.setPosition(figure.x + diff.x, figure.y + diff.y);\n }\n };\n\n this.debug = false;\n this.gridDef = {\n debugLines: [],\n def_cols: [],\n def_rows: [],\n min_height: [],\n min_width: [],\n minGridWidth: 10,\n minGridHeight: 10,\n hResizeable: false,\n vResizeable: false,\n layoutRequired: true\n };\n\n this._super((0, _extend2.default)({ stroke: 2 }, attr), (0, _extend2.default)({}, setter), (0, _extend2.default)({}, getter));\n\n this.resizeListener = function (figure) {\n _this.gridDef.layoutRequired = true;\n // propagate the event to the parent or other listener if existing\n //\n if (_this.getParent() instanceof _packages2.default.shape.layout.Layout) {\n _this.fireEvent(\"resize\");\n }\n // or we are the parent and must consume it self\n else {\n _this.setDimension(_this.gridDef.hResizeable === true ? _this.getWidth() : 1, _this.gridDef.vResizeable === true ? _this.getHeight() : 1);\n }\n };\n\n var rows = attr.rows.split(\",\");\n var columns = attr.columns.split(\",\");\n for (var i = 0; i < columns.length; i++) {\n this.gridDef.def_cols[i] = this.cellWidthFromDef(columns[i]);\n }\n\n for (var _i = 0; _i < rows.length; _i++) {\n this.gridDef.def_rows[_i] = this.cellWidthFromDef(rows[_i]);\n }\n\n this.installEditPolicy(new _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy());\n },\n\n add: function add(figure, cellConstraint) {\n\n figure.__cellConstraint = (0, _extend2.default)({}, {\n row: 0,\n col: 0,\n rowspan: 1,\n colspan: 1,\n align: \"left\",\n valign: \"top\",\n width: 1,\n height: 1\n }, cellConstraint);\n this.gridDef.layoutRequired = true;\n this._super(figure, this.cellLocator);\n this._layout();\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinWidth: function getMinWidth() {\n return this.gridDef.minGridWidth;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinHeight: function getMinHeight() {\n return this.gridDef.minGridHeight;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setCanvas: function setCanvas(canvas) {\n // layout must be recalculated if the shape will be assigned\n // to a canvas. \"Text\" elements can now calculate correct with the right font settings.\n //\n this.gridDef.layoutRequired = true;\n this._super(canvas);\n\n return this;\n },\n\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return this;\n }\n this._super(attributes);\n if (this.debug) {\n this.paintDebugGrid();\n }\n\n return this;\n },\n\n setDimension: function setDimension(w, h) {\n // we need the calculated layout to determine the min width/height of the figure\n //\n if (this.gridDef.layoutRequired === true) {\n this._layout();\n }\n // set the new dimension\n this._super(w, h);\n\n // after setting the new dimension a recalculation of the layout is required. May the shape\n // has grown up\n this.gridDef.layoutRequired = true;\n this.repaint();\n\n return this;\n },\n\n _layout: function _layout() {\n this.gridDef.layoutRequired = false;\n\n var figures = this.getChildren();\n\n // copy the initial requested width/heights\n //\n this.gridDef.min_height = this.gridDef.def_rows.slice(0);\n this.gridDef.min_width = this.gridDef.def_cols.slice(0);\n\n // Calculate the basic width/height of the elements without considering the \"span\" and \"grow\"\n //\n for (var i = 0; i < figures.getSize(); i++) {\n var figure = figures.get(i);\n var cell = figure.__cellConstraint;\n // ermitteln der derzeitig zur verfügung stehenden weite\n this.gridDef.min_width[cell.col] = Math.max(this.gridDef.min_width[cell.col], figure.getMinWidth());\n\n // Falls das Elemente eine y_span hat, dann versuchen ob es auf die ganze\n // höhe rein passt. Wenn nicht wird der Teil der 'grow' angegeben hat verändert.\n // Wenn kein Element 'grow' angegeben hat, dann wird das letzte Element verändert\n if (cell.rowspan > 1) {\n var eHeight = figure.getMinHeight();\n var cHeight = this.cellHeight(cell.row, cell.row + cell.rowspan);\n if (cHeight < eHeight) {\n var diff = eHeight - cHeight;\n this.gridDef.min_height[cell.row + cell.rowspan - 1] = this.gridDef.min_height[cell.row + cell.rowspan - 1] + diff;\n }\n } else {\n this.gridDef.min_height[cell.row] = Math.max(this.gridDef.min_height[cell.row], figure.getMinHeight());\n }\n }\n this.gridDef.minGridWidth = this._getGridWidth();\n this.gridDef.minGridHeight = this._getGridHeight();\n\n // Resize the grid height if at least one row supports \"grow\"\n //\n var gridHeight = this._getGridHeight();\n for (var _i2 = 0; _i2 < this.gridDef.def_rows.length; _i2++) {\n // row found which can grow\n if (this.gridDef.def_rows[_i2] === -1) {\n this.gridDef.min_height[_i2] = this.gridDef.min_height[_i2] + Math.max(0, this.getHeight() - gridHeight);\n this.gridDef.vResizeable = true;\n break;\n }\n }\n\n // Resize the grid if at least one column supports \"grow\"\n //\n var gridWidth = this._getGridWidth();\n for (var _i3 = 0; _i3 < this.gridDef.def_cols.length; _i3++) {\n // column found which can grow\n if (this.gridDef.def_cols[_i3] === -1) {\n this.gridDef.min_width[_i3] = this.gridDef.min_width[_i3] + Math.max(0, this.getWidth() - gridWidth);\n this.gridDef.hResizeable = true;\n break;\n }\n }\n\n // apply the cell constraints to the elements\n //\n for (var _i4 = 0; _i4 < figures.getSize(); _i4++) {\n var _cell = figures.get(_i4).__cellConstraint;\n _cell.width = this.cellWidth(_cell.col, _cell.col + _cell.colspan);\n _cell.height = this.cellHeight(_cell.row, _cell.row + _cell.rowspan);\n _cell.x = this.cellX(_cell.col);\n _cell.y = this.cellY(_cell.row);\n }\n\n return this;\n },\n\n cellX: function cellX(col) {\n var r = 0;\n for (var i = 0; i < col; i++) {\n r = r + this.gridDef.min_width[i];\n }\n\n return r;\n },\n\n cellY: function cellY(row) {\n var r = 0;\n for (var i = 0; i < row; i++) {\n r = r + this.gridDef.min_height[i];\n }\n\n return r;\n },\n\n cellWidth: function cellWidth(from, to) {\n var r = 0;\n for (var i = from; i < to; i++) {\n r = r + this.gridDef.min_width[i];\n }\n\n return r;\n },\n\n cellHeight: function cellHeight(from, to) {\n var r = 0;\n for (var i = from; i < to; i++) {\n r = r + this.gridDef.min_height[i];\n }\n\n return r;\n },\n\n paintDebugGrid: function paintDebugGrid() {\n // alte Linien erstmal entfernen bevor man neue zeichnet\n //\n for (var i = 0; i < this.gridDef.debugLines.length; i++) {\n this.gridDef.debugLines[i].remove();\n }this.gridDef.debugLines = [];\n\n var gridHeight = this._getGridHeight();\n var gridWidth = this._getGridWidth();\n var posX = this.getAbsoluteX();\n var posY = this.getAbsoluteY();\n\n // draw the cols first\n var x = posX;\n for (var _i5 = 0; _i5 <= this.gridDef.min_width.length; _i5++) {\n var newLine = this.canvas.paper.path(\"M \" + x + \" \" + posY + \" l 0 \" + gridHeight).attr({\n \"stroke\": \"#FF0000\",\n \"stroke-width\": 1\n });\n this.gridDef.debugLines.push(newLine);\n if (_i5 < this.gridDef.min_width.length) x = x + this.gridDef.min_width[_i5];\n }\n\n var y = posY;\n for (var _i6 = 0; _i6 <= this.gridDef.min_height.length; _i6++) {\n var _newLine = this.canvas.paper.path(\"M \" + posX + \" \" + y + \" l \" + gridWidth + \" 0\").attr({\n \"stroke\": \"#FF0000\",\n \"stroke-width\": 1\n });\n this.gridDef.debugLines.push(_newLine);\n if (_i6 < this.gridDef.min_height.length) y = y + this.gridDef.min_height[_i6];\n }\n },\n\n _getGridWidth: function _getGridWidth() {\n var gridWidth = 0;\n for (var i = 0; i < this.gridDef.min_width.length; i++) {\n gridWidth = gridWidth + this.gridDef.min_width[i];\n }\n\n return gridWidth;\n },\n\n _getGridHeight: function _getGridHeight() {\n var gridHeight = 0;\n for (var i = 0; i < this.gridDef.min_height.length; i++) {\n gridHeight = gridHeight + this.gridDef.min_height[i];\n }\n\n return gridHeight;\n },\n\n cellWidthFromDef: function cellWidthFromDef(def) {\n var pattern = new RegExp(\"(\\\\d+)(?:px)?\");\n var match = def.match(pattern);\n\n if (match != null) {\n return parseInt(match[1]);\n }\n\n pattern = new RegExp(\"p(?:ref)?\");\n match = def.match(pattern);\n if (match != null) {\n return 0;\n }\n\n pattern = new RegExp(\"g(?:row)?\");\n match = def.match(pattern);\n if (match != null) {\n this.autoResize = false;\n return -1;\n }\n\n return 0;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/layout/HorizontalLayout.js\":\n/*!**********************************************!*\\\n !*** ./src/shape/layout/HorizontalLayout.js ***!\n \\**********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.layout.HorizontalLayout\r\n * The HorizontalLayout class arranges the layout elements in a horizontal sequence,\r\n * left to right, with optional gaps between the elements.\r\n *\r\n * During the execution of the setDimension() method, the minimum width of the container is calculated\r\n * by accumulating the minimum sizes of the elements, including stroke, gaps and padding.\r\n *\r\n *\r\n * See the example below with and without gap and border settings\r\n *\r\n *\r\n * @example preview small frame\r\n *\r\n * // first container without any gap and a border of the parent\r\n * // container\r\n * let label1 = new draw2d.shape.basic.Label({text:\"Label 1\"});\r\n * let label2 = new draw2d.shape.basic.Label({text:\"Label 2\"});\r\n * let label3 = new draw2d.shape.basic.Label({text:\"Label 3\"});\r\n *\r\n * let container1 = new draw2d.shape.layout.HorizontalLayout();\r\n *\r\n * container1.add(label1);\r\n * container1.add(label2);\r\n * container1.add(label3);\r\n * container1.setGap(10);\r\n * container1.setStroke(2);\r\n * canvas.add(container1,50,10);\r\n *\r\n * // second container without any gab or border\r\n * //\r\n * let label11 = new draw2d.shape.basic.Label({text:\"Label 1\"});\r\n * let label12 = new draw2d.shape.basic.Label({text:\"Label 2\"});\r\n * let label13 = new draw2d.shape.basic.Label({text:\"Label 3\"});\r\n *\r\n * let container2 = new draw2d.shape.layout.HorizontalLayout();\r\n *\r\n * container2.add(label11);\r\n * container2.add(label12);\r\n * container2.add(label13);\r\n *\r\n * canvas.add(container2,50,90);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.layout.Layout\r\n * @since 2.5.1\r\n */\n_packages2.default.shape.layout.HorizontalLayout = _packages2.default.shape.layout.Layout.extend({\n\n NAME: \"draw2d.shape.layout.HorizontalLayout\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.gap = 0;\n var _this = this;\n this.locator = {\n translate: function translate(figure, diff) {\n figure.setPosition(figure.x + diff.x, figure.y + diff.y);\n },\n bind: function bind() {},\n unbind: function unbind() {},\n relocate: function relocate(index, target) {\n var stroke = _this.getStroke();\n var yPos = stroke + _this.padding.top;\n var xPos = stroke + _this.padding.left; // respect the border and padding of the parent\n for (var i = 0; i < index; i++) {\n var child = _this.children.get(i).figure;\n if (child.isVisible()) {\n xPos += child.getWidth() + _this.gap;\n }\n }\n\n target.setPosition(xPos, yPos);\n }\n };\n\n this._super((0, _extend2.default)({ width: 1, height: 1, gap: 0 }, attr), (0, _extend2.default)({\n /** @attr {Number} gap the gap between the children shapes */\n gap: this.setGap\n }, setter), (0, _extend2.default)({\n gap: this.getGap\n }, getter));\n },\n\n /**\r\n * @inheritdoc\r\n */\n add: function add(child, locator, index) {\n this._super(child, this.locator, index);\n\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the gap width between child components within this layout.\r\n * This will only affect the space between components, not the space around all the components in the layout.\r\n *\r\n * @param {Number} gap The space, in pixels, between items.\r\n * @since 2.5.1\r\n */\n setGap: function setGap(gap) {\n this.gap = gap;\n // this forces a relayout of the element\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the gap between the children shapes\r\n *\r\n * @since 5.0.0\r\n *\r\n */\n getGap: function getGap() {\n return this.gap;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinWidth: function getMinWidth() {\n var _this = this;\n var width = this.stroke * 2 + this.padding.left + this.padding.right;\n var gap = 0;\n\n this.children.each(function (i, e) {\n if (e.figure.isVisible()) {\n width += e.figure.isResizeable() ? e.figure.getMinWidth() : e.figure.getWidth() + gap;\n gap = _this.gap;\n }\n });\n\n return width;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinHeight: function getMinHeight() {\n var markup = this.stroke * 2 + this.padding.top + this.padding.bottom;\n var height = 0;\n\n this.children.each(function (i, e) {\n height = Math.max(height, e.figure.isResizeable() ? e.figure.getMinHeight() : e.figure.getHeight());\n });\n\n return height + markup;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this._super(w, h);\n\n var diff = this.width - this.getMinWidth();\n if (diff > 0) {\n diff = diff / this.children.getSize() | 0;\n this.children.each(function (i, e) {\n if (e.figure.isResizeable() === true) {\n e.figure.setDimension(e.figure.getMinWidth() + diff, e.figure.getHeight());\n }\n });\n } else {\n var minHeight = this.getMinHeight();\n this.children.each(function (i, e) {\n // The layout respect the \"resizeable\" flag because a layout is a kind of layouter and\n // any kind of autolayouter must respect this flag\n if (e.figure.isResizeable() === true) {\n // reset the shape to the minimum width/height. see setMinWidth/setMinHeight\n e.figure.setDimension(1, minHeight);\n }\n });\n }\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n memento.gap = this.gap;\n\n return memento;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.gap === \"number\") {\n this.gap = memento.gap;\n }\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/layout/Layout.js\":\n/*!************************************!*\\\n !*** ./src/shape/layout/Layout.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.layout.Layout\r\n *\r\n * A base class for positioning child figures and determining the ideal size for\r\n * a figure with children.\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n_packages2.default.shape.layout.Layout = _packages2.default.shape.basic.Rectangle.extend({\n\n NAME: \"draw2d.shape.layout.Layout\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // @since 4.3.3\n this.padding = { top: 0, right: 0, bottom: 0, left: 0 };\n\n this._super((0, _extend2.default)({ bgColor: null, radius: 0, stroke: 0 }, attr), (0, _extend2.default)({\n /** @attr {Number} padding the padding in pixel around the text */\n padding: this.setPadding\n }, setter), (0, _extend2.default)({\n padding: this.getPadding\n }, getter));\n\n var _this = this;\n this.resizeListener = function (figure) {\n // propagate the event to the parent or other listener if existing\n //\n if (_this.getParent() instanceof _packages2.default.shape.layout.Layout) {\n _this.fireEvent(\"resize\");\n }\n // or we are the parent and must consume it self\n else {\n _this.setDimension(1, 1);\n _this.fireEvent(\"resize\");\n }\n };\n\n this.installEditPolicy(new _packages2.default.policy.figure.AntSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n add: function add(child, locator, index) {\n this._super(child, locator, index);\n\n child.on(\"resize\", this.resizeListener);\n child.on(\"change:visibility\", this.resizeListener);\n\n // don't use the getter/setter. This considers the canvas assignment and\n // the child is always invisible. BIG BUG. The example shape_db will break if you change this.\n // child.setVisible(this.isVisible());\n // respect the \"visible\" flag of the child as well\n child.visible = child.visible && this.visible;\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n remove: function remove(child) {\n var r = this._super(child);\n child.off(this.resizeListener);\n this.setDimension(1, 1);\n\n return r;\n },\n\n /**\r\n * @method\r\n * Set the padding of the element\r\n *\r\n * // Alternatively you can use the attr method:\r\n * //\r\n * // set the padding for top,left,bottom,right in one call\r\n * figure.attr({\r\n * padding: 3\r\n * });\r\n *\r\n * // update the padding left and top\r\n * figure.attr({\r\n * padding: {left:3, top:30}\r\n * });\r\n *\r\n * @param {Number|Object} padding The new padding\r\n * @since 4.3.3\r\n **/\n setPadding: function setPadding(padding) {\n if (typeof padding === \"number\") {\n this.padding = { top: padding, right: padding, bottom: padding, left: padding };\n } else {\n this.padding = (0, _extend2.default)(this.padding, padding);\n }\n this.fireEvent(\"change:padding\", { value: this.padding });\n\n // force a relayout of the figure\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the padding of the element.\r\n *\r\n * @since 4.3.3\r\n **/\n getPadding: function getPadding() {\n return this.padding;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setVisible: function setVisible(flag) {\n // propagate the visibility to all children too.\n //\n this.children.each(function (i, e) {\n e.figure.setVisible(flag);\n });\n\n this._super(flag);\n\n // force a relayout of the shape because the dimension has been changed\n // by enable/disable of child shapes\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the Command to perform the specified Request or null.\r\n *\r\n * @param {draw2d.command.CommandType} request describes the Command being requested\r\n * @return {draw2d.command.Command} null or a Command\r\n * @private\r\n **/\n createCommand: function createCommand(request) {\n // it is not possible to rate a layout object\n // ..at the moment\n if (request.getPolicy() === _packages2.default.command.CommandType.ROTATE) {\n return null;\n }\n\n return this._super(request);\n }\n});\n\n/***/ }),\n\n/***/ \"./src/shape/layout/StackLayout.js\":\n/*!*****************************************!*\\\n !*** ./src/shape/layout/StackLayout.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.layout.StackLayout\r\n * Using the StackLayout as their layout shape have their children placed on top of one another.\r\n * Order of placement is determined by the order in which the children were added, first child\r\n * added placed on the bottom. Only one child is visible at once.\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.layout.Layout\r\n */\n_packages2.default.shape.layout.StackLayout = _packages2.default.shape.layout.Layout.extend({\n\n NAME: \"draw2d.shape.layout.StackLayout\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.visibleLayer = 0;\n this.locator = new _packages2.default.layout.locator.XYAbsPortLocator(0, 0);\n\n this._super((0, _extend2.default)({ resizeable: true, width: 10, height: 10 }, attr), (0, _extend2.default)({}, setter), (0, _extend2.default)({}, getter));\n\n this.resizeListener = function (figure) {};\n // install default selection handler. Can be overridden or replaced\n this.installEditPolicy(new _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * Set the current visible layer of the stack layout\r\n *\r\n * @param {Number} visibleLayer\r\n */\n setVisibleLayer: function setVisibleLayer(visibleLayer, duration) {\n this.getChildren().get(this.visibleLayer).setVisible(false, duration);\n this.visibleLayer = Math.min(this.getChildren().getSize() - 1, Math.max(0, visibleLayer));\n\n this.getChildren().get(this.visibleLayer).setVisible(true, duration);\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the current visible layer\r\n *\r\n * @returns {Number}\r\n */\n getVisibleLayer: function getVisibleLayer() {\n return this.visibleLayer;\n },\n\n /**\r\n * @inheritdoc\r\n */\n add: function add(child, locator, index) {\n // the child didn'T care about events...at the moment\n //\n child.hitTest = function () {\n return false;\n };\n\n // make all existing shapes invisible\n //\n this.getChildren().each(function (i, c) {\n c.setVisible(false);\n });\n this.visibleLayer = this.getChildren().getSize();\n\n // ignore the parameter \"locator\" and use the locator for the stack layout instead\n return this._super(child, this.locator, index);\n },\n\n /**\r\n * @inheritdoc\r\n */\n setVisible: function setVisible(flag) {\n _packages2.default.shape.basic.Rectangle.prototype.setVisible.call(this, flag);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinWidth: function getMinWidth() {\n var markup = this.stroke * 2 + this.padding.left + this.padding.right;\n var width = 10;\n this.children.each(function (i, e) {\n width = Math.max(width, e.figure.isResizeable() ? e.figure.getMinWidth() : e.figure.getWidth());\n });\n return width + markup;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinHeight: function getMinHeight() {\n var markup = this.stroke * 2 + this.padding.top + this.padding.bottom;\n var height = 10;\n this.children.each(function (i, e) {\n height = Math.max(height, e.figure.isResizeable() ? e.figure.getMinHeight() : e.figure.getHeight());\n });\n return height + markup;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this._super(w, h);\n\n var width = this.width - this.padding.left - this.padding.right;\n var height = this.height - this.padding.top - this.padding.bottom;\n if (width === this._recursiveWidth && height === this._recursiveHeight) {\n return this;\n }\n this._recursiveHeight = height;\n this._recursiveWidth = width;\n\n this.children.each(function (i, e) {\n if (e.figure.isResizeable()) {\n e.figure.setDimension(width, height);\n }\n });\n\n delete this._recursiveHeight;\n delete this._recursiveWidth;\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/layout/TableLayout.js\":\n/*!*****************************************!*\\\n !*** ./src/shape/layout/TableLayout.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.layout.TableLayout = _packages2.default.shape.layout.Layout.extend({\n\n NAME: \"draw2d.shape.layout.TableLayout\",\n\n DUMMY_CELL: {\n getMinHeight: function getMinHeight() {\n return 1;\n },\n getMinWidth: function getMinWidth() {\n return 1;\n },\n off: function off() {}\n },\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n var _this = this;\n this.cellLocator = {\n relocate: function relocate(index, figure) {\n if (_this.repaintBlocked === true) {\n return;\n }\n var cell = figure.__cell;\n var layout = _this.getCellLayout(cell.row, cell.column);\n var outerWidth = _this.getWidth();\n var minWidth = _this.getMinWidth();\n var widthOffset = 0;\n if (outerWidth != minWidth) {\n widthOffset = (outerWidth - minWidth) / _this.layoutInfos[0].length * cell.column;\n }\n\n var width = figure.getWidth();\n var height = figure.getHeight();\n var x = layout.x + _this.padding.left + layout.padding.left + widthOffset;\n var y = layout.y + _this.padding.top + layout.padding.top;\n\n // stretch the figure to fill the complete cell\n //\n if (figure.isResizeable()) {\n var w = Math.max(figure.getMinWidth(), layout.w - (layout.padding.left + layout.padding.right) + widthOffset);\n var h = Math.max(figure.getMinHeight(), layout.h - (layout.padding.top + layout.padding.bottom));\n figure.setDimension(w, h);\n }\n // else apply the valign and align property\n //\n else {\n // apply vertical alignment\n //\n switch (layout.valign) {\n case \"middle\":\n y = y + (layout.h - (height + layout.padding.top + layout.padding.bottom)) / 2;\n break;\n case \"bottom\":\n y = y + (layout.h - (height + layout.padding.top + layout.padding.bottom));\n break;\n }\n\n // apply horizontal alignment\n //\n switch (layout.align) {\n case \"center\":\n x = x + (layout.w - (width + layout.padding.left + layout.padding.right)) / 2 + widthOffset / 2;\n break;\n case \"right\":\n x = x + (layout.w - (width + layout.padding.left + layout.padding.right)) + widthOffset;\n break;\n }\n }\n figure.setPosition(x, y);\n },\n bind: function bind() {},\n unbind: function unbind() {},\n translate: function translate(figure, diff) {\n figure.setPosition(figure.x + diff.x, figure.y + diff.y);\n }\n };\n\n this.padding = { top: 4, right: 4, bottom: 4, left: 4 };\n\n this.grid = [];\n this.layoutInfos = [];\n this.layoutInfos[0] = [];\n this.layoutInfos[0][0] = { x: 0, y: 0, w: 1, h: 1, valign: \"top\", align: \"left\" };\n\n this._super(extend({ stroke: 1, resizeable: false }, attr), extend({\n /** @attr {Number} padding the padding in pixel around the text */\n padding: this.setPadding\n }, setter), extend({\n padding: this.getPadding\n }, getter));\n },\n\n /**\r\n * @method\r\n * Set the padding of the given cell.\r\n *\r\n *\r\n * @param {Number|Object} padding The new padding\r\n **/\n setCellPadding: function setCellPadding(row, column, padding) {\n var layout = this.getCellLayout(row, column);\n if (layout === null) {\n return this;\n }\n\n if (typeof padding === \"number\") {\n layout.padding = { top: padding, right: padding, bottom: padding, left: padding };\n } else {\n extend(layout.padding, padding);\n }\n\n this.calculateLayout();\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the padding of the outer grid.\r\n *\r\n **/\n getCellPadding: function getCellPadding(row, column) {\n\n var layout = this.getCellLayout(row, column);\n if (layout === null || typeof layout.padding === \"undefined\") {\n return { top: 0, right: 0, bottom: 0, left: 0 };\n }\n return layout.padding;\n },\n\n /**\r\n * @method\r\n * Set the padding of the outer grid.\r\n *\r\n * // Alternatively you can use the attr method:\r\n * //\r\n * // set the padding for top,left,bottom,right in one call\r\n * figure.attr({\r\n * padding: 3\r\n * });\r\n *\r\n * // update the padding left and top\r\n * figure.attr({\r\n * padding: {left:3, top:30}\r\n * });\r\n *\r\n * @param {Number|Object} padding The new padding\r\n **/\n setPadding: function setPadding(padding) {\n if (typeof padding === \"number\") {\n this.padding = { top: padding, right: padding, bottom: padding, left: padding };\n } else {\n this.padding = extend(this.padding, padding);\n }\n this.calculateLayout();\n this.setDimension(1, 1);\n this.fireEvent(\"change:padding\", { value: this.padding });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the padding of the outer grid.\r\n *\r\n **/\n getPadding: function getPadding() {\n return this.padding;\n },\n\n setCanvas: function setCanvas(canvas) {\n this._super(canvas);\n this.calculateLayout();\n this.setDimension(2, 2);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n add: function add(child, locator, index) {\n this._super(child, locator, index);\n\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n *\r\n * @method\r\n * Removes the row from the TableLayout\r\n *\r\n * @returns the removed row\r\n */\n removeRow: function removeRow(index) {\n var _this = this;\n var removedRow = this.grid.splice(index, 1);\n removedRow[0].forEach(function (figure) {\n _this.remove(figure);\n });\n\n this.calculateLayout();\n this.setDimension(2, 2);\n\n return removedRow;\n },\n\n /**\r\n * @method\r\n * Add a row to the table grid.\r\n * This method has a variable argument list. All arguments are added in one row.\r\n *\r\n * @param {Array} figures variable count of figures to add as one row\r\n */\n addRow: function addRow() {\n var figuresToAdd = [];\n var _this = this;\n var args = Array.prototype.slice.call(arguments); // sometimes js is stupid...\n\n var rowCount = this.grid.length + 1;\n var columnCount = this.grid.length > 0 ? Math.max(this.grid[0].length, args.length) : args.length;\n\n var row = [];\n\n args.forEach(function (figure, index) {\n if (typeof figure === \"string\") {\n figure = new _packages2.default.shape.basic.Label({ text: figure });\n }\n row.push(figure);\n figuresToAdd.push(figure);\n });\n this.grid.push(row);\n\n // adjust the columns. All rows must have the same column count. Add empty cells\n // if required.\n //\n this.grid.forEach(function (row, index) {\n var missingColumns = columnCount - row.length;\n for (var i = 0; i < missingColumns; i++) {\n row.push(_this.DUMMY_CELL);\n }\n });\n\n var orig = this.repaintBlocked;\n this.repaintBlocked = true;\n figuresToAdd.forEach(function (figure) {\n _this.add(figure, _this.cellLocator);\n });\n this.repaintBlocked = orig;\n\n this.calculateLayout();\n this.setDimension(1, 1);\n\n return this;\n },\n\n getMinWidth: function getMinWidth() {\n // return some good default if we are not part of the canvas.\n // A real width/height calculation isn'T possible if the canvas not set\n if (this.canvas === null || this.layoutInfos.length === 0) {\n return 10;\n }\n\n var bottom = this.layoutInfos[this.layoutInfos.length - 1];\n var layout = bottom[bottom.length - 1];\n\n return layout.w + layout.x + this.padding.left + this.padding.right;\n },\n\n getMinHeight: function getMinHeight() {\n // return some good default if we are not part of the canvas.\n // A real width/height calculation isn'T possible if the canvas not set\n if (this.canvas === null || this.layoutInfos.length === 0) {\n return 10;\n }\n\n var bottom = this.layoutInfos[this.layoutInfos.length - 1];\n var layout = bottom[bottom.length - 1];\n\n return layout.h + layout.y + this.padding.top + this.padding.bottom;\n },\n\n /**\r\n * @method\r\n * Set the vertical alignment of a cell. Possible values are\r\n * <ul>\r\n * <li>top</li>\r\n * <li>middle</li>\r\n * <li>bottom</li>\r\n * </ul>\r\n *\r\n * @param {Number} row The row index of the cell. Starting by 0\r\n * @param {Number} column The column index of the cell. Starting by 0\r\n * @param {String} align The vertical alignment of the cell\r\n */\n setCellVerticalAlign: function setCellVerticalAlign(row, column, valign) {\n var layout = this.getCellLayout(row, column);\n if (layout === null) {\n return; // silently\n }\n\n switch (valign) {\n case \"top\":\n case \"middle\":\n case \"bottom\":\n layout.valign = valign;\n this.calculateLayout();\n this.setDimension(1, 1);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the vertical alignment of a cell. Possible values are\r\n * <ul>\r\n * <li>top</li>\r\n * <li>middle</li>\r\n * <li>bottom</li>\r\n * </ul>\r\n *\r\n * @param {Number} row The row index of the cell. Starting by 0\r\n * @param {Number} column The column index of the cell. Starting by 0\r\n * @returns {String} The vertical alignment of the cell\r\n */\n getCellVerticalAlign: function getCellVerticalAlign(row, column) {\n var layout = this.getCellLayout(row, column);\n if (layout === null) {\n return \"top\";\n }\n\n return layout.valign;\n },\n\n /**\r\n * @method\r\n * Set the alignment of a cell. Possible values are\r\n * <ul>\r\n * <li>left</li>\r\n * <li>center</li>\r\n * <li>right</li>\r\n * </ul>\r\n *\r\n *\r\n * @param {Number} row The row index of the cell. Starting by 0\r\n * @param {Number} column The column index of the cell. Starting by 0\r\n * @param {String} align The horizontal alignment of the cell\r\n */\n setCellAlign: function setCellAlign(row, column, align) {\n\n var layout = this.getCellLayout(row, column);\n if (layout === null) {\n return; // silently\n }\n\n switch (align) {\n case \"left\":\n case \"center\":\n case \"right\":\n layout.align = align;\n this.calculateLayout();\n this.setDimension(1, 1);\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the alignment of a cell. Possible values are\r\n * <ul>\r\n * <li>left</li>\r\n * <li>center</li>\r\n * <li>right</li>\r\n * </ul>\r\n *\r\n *\r\n * @param {Number} row The row index of the cell. Starting by 0\r\n * @param {Number} column The column index of the cell. Starting by 0\r\n * return {String} The horizontal alignment of the cell\r\n */\n getCellAlign: function getCellAlign(row, column) {\n\n var layout = this.getCellLayout(row, column);\n if (layout === null) {\n return \"left\";\n }\n return layout.align;\n },\n\n /**\r\n * @method\r\n * Return the layout information for the given row/column or <b>null</b>\r\n * if the row/column index is out of range.\r\n *\r\n * @private\r\n */\n getCellLayout: function getCellLayout(row, column) {\n if (row < 0 || column < 0) {\n return null; // silently\n }\n\n if (row >= this.layoutInfos.length) {\n return null; // silently\n }\n\n var layouts = this.layoutInfos[row];\n if (column >= layouts.length) {\n return null; // silently\n }\n\n return layouts[column];\n },\n\n /**\r\n * @method\r\n * Recalculate the layout of the table\r\n *\r\n * @private\r\n */\n calculateLayout: function calculateLayout() {\n var _this = this;\n var rowCount = this.grid.length;\n var columnCount = this.grid.length > 0 ? this.grid[0].length : 0;\n\n var newLayoutInfos = [];\n for (var row = 0; row < rowCount; row++) {\n newLayoutInfos[row] = [];\n for (var column = 0; column < columnCount; column++) {\n newLayoutInfos[row][column] = {\n width: 0,\n height: 0,\n x: 0,\n y: 0,\n valign: this.getCellVerticalAlign(row, column),\n align: this.getCellAlign(row, column),\n padding: this.getCellPadding(row, column)\n };\n }\n }\n\n // determine the heights/widths of the grid\n //\n var layoutWidths = new Array(columnCount + 1).join('0').split('').map(parseFloat);\n var layoutHeights = new Array(rowCount + 1).join('0').split('').map(parseFloat);\n this.grid.forEach(function (figures, row) {\n for (var _column = 0; _column < columnCount; _column++) {\n var layout = newLayoutInfos[row][_column];\n var figure = figures[_column];\n figure.__cell = { row: row, column: _column };\n layoutHeights[row] = Math.max(layoutHeights[row], figure.getMinHeight() + layout.padding.top + layout.padding.bottom);\n layoutWidths[_column] = Math.max(layoutWidths[_column], figure.getMinWidth() + layout.padding.left + layout.padding.right);\n }\n });\n\n var x = 0,\n y = 0;\n for (var _row = 0; _row < rowCount; _row++) {\n for (var _column2 = 0; _column2 < columnCount; _column2++) {\n var layout = newLayoutInfos[_row][_column2];\n layout.w = layoutWidths[_column2];\n layout.h = layoutHeights[_row];\n layout.x = x;\n layout.y = y;\n x = x + layout.w;\n }\n y = y + layoutHeights[_row];\n x = 0;\n }\n\n this.layoutInfos = newLayoutInfos;\n\n return this;\n }\n}); /**\r\n * @class draw2d.shape.layout.TableLayout\r\n *\r\n * The TableLayout class arranges the children in a row/column order. Each cell can be styled\r\n * with valign, align and padding.\r\n *\r\n *\r\n * See the example below with and without padding or alignment settings\r\n *\r\n *\r\n * @example preview small frame\r\n *\r\n * let label1 = new draw2d.shape.basic.Label({text:\"[0,1] with long long long long label\", fontColor:\"#00AF00\"});\r\n * let label2 = new draw2d.shape.basic.Label({text:\"[1,1] padding:10\", fontColor:\"#00AF00\"});\r\n * let label3 = new draw2d.shape.basic.Label({text:\"[2,1] align:right\", fontColor:\"#00AF00\"});\r\n * let label4 = new draw2d.shape.basic.Label({text:\"[3,1] resize:true\",resizeable:true, fontColor:\"#00AF00\"});\r\n *\r\n * let container = new draw2d.shape.layout.TableLayout();\r\n *\r\n * container.addRow(\"[0,0]\", label1 ,\"[0,2] align:center\");\r\n * container.addRow(\"[1,0] valign:bottom\", label2,\"[1,2] long long long label\");\r\n * container.addRow(\"[2,0]\", label3,\"[2,2]\");\r\n * container.addRow(\"[3,0]\", label4,\"[3,2]\");\r\n *\r\n * container.setPadding(0);\r\n * container.setCellPadding(1,1, 10);\r\n *\r\n * container.setCellAlign(0,2, \"center\");\r\n * container.setCellAlign(2,1, \"right\");\r\n *\r\n * container.setCellVerticalAlign(1, 0, \"bottom\");\r\n * canvas.add(container,10,10);\r\n *\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.layout.Layout\r\n * @since 5.3.0\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/layout/VerticalLayout.js\":\n/*!********************************************!*\\\n !*** ./src/shape/layout/VerticalLayout.js ***!\n \\********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.layout.VerticalLayout = _packages2.default.shape.layout.Layout.extend({\n\n NAME: \"draw2d.shape.layout.VerticalLayout\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // some layout parameter\n //\n this.gap = 0;\n\n // \"this\" shortcut to avoid $.proxy\n var _this = this;\n\n this.locator = {\n translate: function translate(figure, diff) {\n figure.setPosition(figure.x + diff.x, figure.y + diff.y);\n },\n bind: function bind() {},\n unbind: function unbind() {},\n relocate: function relocate(index, target) {\n var stroke = _this.getStroke();\n var yPos = stroke + _this.padding.top; // respect the border and padding of the shape\n var xPos = _this.padding.left;\n\n for (var i = 0; i < index; i++) {\n var child = _this.children.get(i).figure;\n if (child.isVisible()) {\n yPos += child.getHeight() + _this.gap;\n }\n }\n\n target.setPosition(xPos, yPos);\n }\n };\n\n this._super(extend({ width: 10, height: 10 }, attr), extend({\n /** @attr {Number} gap the gap between the children shapes */\n gap: this.setGap\n }, setter), extend({\n gap: this.getGap\n }, getter));\n },\n\n /**\r\n * @inheritdoc\r\n */\n add: function add(child, locator, index) {\n this._super(child, this.locator, index);\n\n this.setDimension(1, 1);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Set the gap width between child components within this layout.\r\n * This will only affect the space between components, not the space around all the components in the layout.\r\n *\r\n * @param {Number} gap The space, in pixels, between items.\r\n */\n setGap: function setGap(gap) {\n this.gap = gap;\n // this forces a relayout of the element\n this.setDimension(1, 1);\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinWidth: function getMinWidth() {\n var markup = this.stroke * 2 + this.padding.left + this.padding.right;\n var width = 10;\n this.children.each(function (i, e) {\n if (e.figure.isVisible()) width = Math.max(width, e.figure.isResizeable() ? e.figure.getMinWidth() : e.figure.getWidth());\n });\n return width + markup;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinHeight: function getMinHeight() {\n var _this = this;\n var gap = 0;\n var markup = this.stroke * 2 + this.padding.top + this.padding.bottom;\n var height = 0;\n\n this.children.each(function (i, e) {\n if (e.figure.isVisible()) {\n height += (e.figure.isResizeable() ? e.figure.getMinHeight() : e.figure.getHeight()) + gap;\n // first element is iterated. Now we must add the gap to all next elements\n gap = _this.gap;\n }\n });\n\n return height + markup;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this._super(w, h);\n\n var width = this.width - this.padding.left - this.padding.right;\n if (width === this._recursiveWidth) {\n return this;\n }\n this._recursiveWidth = width;\n\n this.children.each(function (i, e) {\n if (e.figure.isResizeable() && e.figure.isVisible()) {\n e.figure.setDimension(width, e.figure.getMinHeight());\n }\n });\n\n delete this._recursiveWidth;\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n memento.gap = this.gap;\n\n return memento;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.gap === \"number\") {\n this.gap = memento.gap;\n }\n\n return this;\n }\n\n}); /**\r\n * @class draw2d.shape.layout.VerticalLayout\r\n * The VerticalLayout class arranges the layout elements in a vertical sequence,\r\n * left to right, with optional gaps between the elements.\r\n *\r\n * During the execution of the setDimension() method, the minimum height of the container is calculated\r\n * by accumulating the minimum sizes of the elements, including stroke, gaps and padding.\r\n *\r\n * See the example below with and without gap and border settings\r\n *\r\n *\r\n * @example preview small frame\r\n *\r\n * // first container without any gap and a border of the parent\r\n * // container\r\n * let label1 = new draw2d.shape.basic.Label({text:\"Label 1\"});\r\n * let label2 = new draw2d.shape.basic.Label({text:\"Label 2\"});\r\n * let label3 = new draw2d.shape.basic.Label({text:\"Label 3\"});\r\n *\r\n * let container1 = new draw2d.shape.layout.VerticalLayout();\r\n *\r\n * container1.add(label1);\r\n * container1.add(label2);\r\n * container1.add(label3);\r\n * container1.setGap(10);\r\n * container1.setStroke(2);\r\n * canvas.add(container1,50,10);\r\n *\r\n * // second container without any gab or border\r\n * //\r\n * let label11 = new draw2d.shape.basic.Label({text:\"Label 1\"});\r\n * let label12 = new draw2d.shape.basic.Label({text:\"Label 2\"});\r\n * let label13 = new draw2d.shape.basic.Label({text:\"Label 3\"});\r\n *\r\n * let container2 = new draw2d.shape.layout.VerticalLayout();\r\n *\r\n * container2.add(label11);\r\n * container2.add(label12);\r\n * container2.add(label13);\r\n *\r\n * canvas.add(container2,150,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.layout.Layout\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/node/Between.js\":\n/*!***********************************!*\\\n !*** ./src/shape/node/Between.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.node.Between = _packages2.default.shape.basic.Rectangle.extend({\n\n NAME: \"draw2d.shape.node.Between\",\n\n DEFAULT_COLOR: new _packages2.default.util.Color(\"#4D90FE\"),\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({\n bgColor: this.DEFAULT_COLOR,\n color: this.DEFAULT_COLOR.darker(),\n width: 50,\n height: 50\n }, attr), setter, getter);\n\n this.createPort(\"output\");\n this.createPort(\"input\");\n }\n}); /**\r\n * @class draw2d.shape.node.Between\r\n * A simple Node which has a InputPort and OutputPort. Mainly used for demo and examples.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.node.Between({color: \"#3d3d3d\"});\r\n *\r\n * canvas.add(figure,50,10);\r\n *\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/node/End.js\":\n/*!*******************************!*\\\n !*** ./src/shape/node/End.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.node.End = _packages2.default.shape.basic.Rectangle.extend({\n\n NAME: \"draw2d.shape.node.End\",\n\n DEFAULT_COLOR: new _packages2.default.util.Color(\"#4D90FE\"),\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({\n bgColor: this.DEFAULT_COLOR,\n color: this.DEFAULT_COLOR.darker(),\n width: 50,\n height: 50\n }, attr), setter, getter);\n\n this.createPort(\"input\");\n }\n\n}); /**\r\n * @class draw2d.shape.node.End\r\n * A simple Node which has a InputPort. Mainly used for demo and examples.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.node.End({color: \"#3d3d3d\"});\r\n *\r\n * canvas.add(figure,50,10);\r\n *\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/node/Fulcrum.js\":\n/*!***********************************!*\\\n !*** ./src/shape/node/Fulcrum.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _JSONUtil = __webpack_require__(/*! ../../util/JSONUtil */ \"./src/util/JSONUtil.js\");\n\nvar _JSONUtil2 = _interopRequireDefault(_JSONUtil);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.node.Fulcrum\r\n *\r\n * A horizontal bus shape with a special kind of port handling. The hole figure is a hybrid port.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.add( new draw2d.shape.node.Fulcrum(),50,10);\r\n * canvas.add( new draw2d.shape.node.Fulcrum(),80,100);\r\n * canvas.add( new draw2d.shape.node.Fulcrum(),150,50);\r\n *\r\n * @extends draw2d.shape.node.Hub\r\n */\n_packages2.default.shape.node.Fulcrum = _packages2.default.shape.node.Hub.extend({\n\n NAME: \"draw2d.shape.node.Fulcrum\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({ width: 40, height: 40 }, attr), setter, getter);\n\n this.port.setConnectionAnchor(new _packages2.default.layout.anchor.ConnectionAnchor(this.port));\n this.port.setVisible(true);\n this.port.hitTest = this.port._orig_hitTest;\n\n this.setConnectionDirStrategy(0);\n this.setColor(null);\n this.setRadius(10);\n this.setBackgroundColor(null);\n this.setStroke(0);\n this.installEditPolicy(new _packages2.default.policy.figure.AntSelectionFeedbackPolicy());\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return this;\n }\n\n attributes = attributes || {};\n\n // set some good defaults if the parent didn't\n _JSONUtil2.default.ensureDefault(attributes, \"fill\", this.bgColor.rgba());\n\n return this._super(attributes);\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/node/HorizontalBus.js\":\n/*!*****************************************!*\\\n !*** ./src/shape/node/HorizontalBus.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.node.HorizontalBus = _packages2.default.shape.node.Hub.extend({\n\n NAME: \"draw2d.shape.node.HorizontalBus\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.setConnectionDirStrategy(1);\n\n this.installEditPolicy(new _packages2.default.policy.figure.HBusSelectionFeedbackPolicy());\n }\n\n}); /**\r\n * @class draw2d.shape.node.HorizontalBus\r\n *\r\n * A horizontal bus shape with a special kind of port handling. The hole figure is a hybrid port.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.node.HorizontalBus({width:300, height:20, text:\"Horizontal Bus\"});\r\n *\r\n * canvas.add(figure,50,10);\r\n *\r\n * @extends draw2d.shape.node.Hub\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/node/Hub.js\":\n/*!*******************************!*\\\n !*** ./src/shape/node/Hub.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _Color = __webpack_require__(/*! ../../util/Color */ \"./src/util/Color.js\");\n\nvar _Color2 = _interopRequireDefault(_Color);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.node.Hub\r\n *\r\n * A hub is a shape with a special kind of port handling. The hole figure is a hybrid port. You can drag&drop a Port directly on\r\n * the figure.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n *\r\n * canvas.add(new draw2d.shape.node.Start({x:50, y:50}));\r\n * canvas.add(new draw2d.shape.node.Hub({x:150, y:50}));\r\n *\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n_packages2.default.shape.node.Hub = _packages2.default.shape.basic.Rectangle.extend({\n\n NAME: \"draw2d.shape.node.Hub\",\n\n DEFAULT_COLOR: new _Color2.default(\"#4DF0FE\"),\n BACKGROUND_COLOR: new _Color2.default(\"#29AA77\"),\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.label = null;\n\n this._super(extend({ color: this.DEFAULT_COLOR.darker(), bgColor: this.BACKGROUND_COLOR }, attr), extend({\n // deprecated\n label: this.setLabel,\n /** @attr {String} text the text to display in the center of the hub */\n text: this.setLabel\n }, setter), extend({\n label: this.getLabel,\n text: this.getLabel\n }, getter));\n\n var _port = this.port = this.createPort(\"hybrid\", new _packages2.default.layout.locator.CenterLocator());\n\n var r = _packages2.default.geo.Rectangle;\n this.CONNECTION_DIR_STRATEGY = [function (peerPort) {\n return _port.getParent().getBoundingBox().getDirection(peerPort.getAbsolutePosition());\n }, function (peerPort) {\n return _port.getAbsoluteY() > peerPort.getAbsoluteY() ? r.DIRECTION_UP : r.DIRECTION_DOWN;\n }, function (peerPort) {\n return _port.getAbsoluteX() > peerPort.getAbsoluteX() ? r.DIRECTION_LEFT : r.DIRECTION_RIGHT;\n }];\n\n // redirect the glow effect and the hitTest for the port to the parent node\n //\n this.port.setGlow = this.setGlow.bind(this);\n this.port._orig_hitTest = this.port.hitTest;\n this.port.hitTest = this.hitTest.bind(this);\n\n // provide a special connection anchor for this port. We use the bounding box of the\n // parent as connection border\n //\n this.port.setConnectionAnchor(new _packages2.default.layout.anchor.ShortesPathConnectionAnchor(this.port));\n this.port.setVisible(false);\n this.port.setVisible = function () {};\n\n this.setConnectionDirStrategy(0);\n },\n\n /**\r\n * @method\r\n * Called by the framework during drag&drop operations if the user drag a figure over this figure\r\n *\r\n * @param {draw2d.Figure} draggedFigure The figure which is currently dragging\r\n *\r\n * @return {draw2d.Figure} the figure which should receive the drop event or null if the element didn't want a drop event\r\n **/\n delegateTarget: function delegateTarget(draggedFigure) {\n // redirect the dragEnter handling to the hybrid port\n //\n return this.getHybridPort(0).delegateTarget(draggedFigure);\n },\n\n /**\r\n * @method\r\n * This value is relevant for the interactive resize of the figure.\r\n *\r\n * @return {Number} Returns the min. width of this object.\r\n */\n getMinWidth: function getMinWidth() {\n if (this.label !== null) {\n return Math.max(this.label.getMinWidth(), this._super());\n }\n return this._super();\n },\n\n /**\r\n * @inheritdoc\r\n *\r\n * @private\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n // set some good defaults if the parent didn't\n if (typeof attributes.fill === \"undefined\") {\n if (this.bgColor !== null) {\n attributes.fill = \"90-\" + this.bgColor.hash() + \":5-\" + this.bgColor.lighter(0.3).hash() + \":95\";\n } else {\n attributes.fill = \"none\";\n }\n }\n\n this._super(attributes);\n },\n\n /**\r\n * @method\r\n * Set the label for the Hub\r\n *\r\n * // Alternatively you can use the attr method:\r\n * figure.attr({\r\n * text: label\r\n * });\r\n *\r\n *\r\n * @param {String} label\r\n * @since 3.0.4\r\n */\n setLabel: function setLabel(label) {\n // Create any Draw2D figure as decoration for the connection\n //\n if (this.label === null) {\n var _this = this;\n\n this.label = new _packages2.default.shape.basic.Label({ text: label, color: \"#0d0d0d\", fontColor: \"#0d0d0d\", stroke: 0 });\n // add the new decoration to the connection with a position locator.\n //\n this.add(this.label, new _packages2.default.layout.locator.CenterLocator());\n this.label.setSelectionAdapter(function () {\n return _this;\n });\n this.label.delegateTarget = function () {\n return _this.port;\n };\n } else {\n this.label.setText(label);\n }\n },\n\n /**\r\n * @method\r\n * Set the strategy for the connection direction calculation.<br>\r\n * <br>\r\n *\r\n * <ul>\r\n * <li>0 - Use the best/shortest direction (UP/RIGHT/DOWN/LEFT) for the connection routing (default)</li>\r\n * <li>1 - Use UP/DOWN for the connection direction</li>\r\n * <li>2 - Use LEFT/RIGHT</li>\r\n * </ul>\r\n * @param {Number} strategy the connection routing strategy to use\r\n * @since 2.4.3\r\n */\n setConnectionDirStrategy: function setConnectionDirStrategy(strategy) {\n switch (strategy) {\n case 0:\n case 1:\n case 2:\n this.port.getConnectionDirection = this.CONNECTION_DIR_STRATEGY[strategy];\n break;\n }\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n memento.dirStrategy = this.CONNECTION_DIR_STRATEGY.indexOf(this.port.getConnectionDirection);\n if (this.label !== null) {\n memento.label = this.label.getText();\n }\n\n return memento;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.dirStrategy === \"number\") {\n this.setConnectionDirStrategy(memento.dirStrategy);\n }\n\n if (typeof memento.label !== \"undefined\") {\n this.setLabel(memento.label);\n }\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/node/Node.js\":\n/*!********************************!*\\\n !*** ./src/shape/node/Node.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _extend = __webpack_require__(/*! ../../util/extend */ \"./src/util/extend.js\");\n\nvar _extend2 = _interopRequireDefault(_extend);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.node.Node\r\n *\r\n * A Node is the base class for all figures which can have {@link draw2d.Port}s. A {@link draw2d.Port} is the\r\n * anchor for a {@link draw2d.Connection} line.<br><br>A {@link draw2d.Port} is a green dot which can\r\n * be dragged and dropped over another port.<br>\r\n * @inheritable\r\n * @author Andreas Herz\r\n * @extends draw2d.Figure\r\n */\n_packages2.default.shape.node.Node = _packages2.default.Figure.extend({\n\n NAME: \"draw2d.shape.node.Node\",\n\n /**\r\n * @constructor\r\n * Creates a new Node element which are not assigned to any canvas.\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this.inputPorts = new _packages2.default.util.ArrayList();\n this.outputPorts = new _packages2.default.util.ArrayList();\n this.hybridPorts = new _packages2.default.util.ArrayList();\n\n // flag which indicates if the figure should read/write ports to\n // JSON\n this.persistPorts = true;\n\n // Flags just for performance reasons\n //\n this.portRelayoutRequired = true;\n\n // just for performance reasons\n //\n this.cachedPorts = null;\n\n this._super((0, _extend2.default)({ width: 50, height: 50 }, attr), (0, _extend2.default)({\n /** @attr {Number} indicate whenever you want persists the ports too */\n persistPorts: this.setPersistPorts\n }, setter), (0, _extend2.default)({\n persistPorts: this.getPersistPorts\n }, getter));\n },\n\n /**\r\n * @method\r\n * Indicates if the node should read/write the ports via the draw2d.Figure.getPersistenAttributes\r\n * to the JSON object\r\n *\r\n * @param {Boolean} flag\r\n * @since 5.0.4\r\n */\n setPersistPorts: function setPersistPorts(flag) {\n this.persistPorts = flag;\n this.fireEvent(\"change:persistPorts\", { value: this.persistPorts });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Indicates if the figure writes the ports to the JSON structore too.\r\n * Default is \"false\"\r\n *\r\n * @returns {Boolean}\r\n */\n getPersistPorts: function getPersistPorts() {\n return this.persistPorts;\n },\n\n /**\r\n * @inheritdoc\r\n */\n toFront: function toFront(figure) {\n var _this = this;\n\n this._super(figure);\n\n this.getPorts().each(function (i, port) {\n port.getConnections().each(function (i, connection) {\n return connection.toFront(figure);\n });\n port.toFront(_this);\n });\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n toBack: function toBack(figure) {\n\n this.getPorts().each(function (i, port) {\n port.getConnections().each(function (i, connection) {\n return connection.toBack(figure);\n });\n port.toBack(figure);\n });\n\n this._super(figure);\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setVisible: function setVisible(flag, duration) {\n // adjust the visibility of the ports to the parent state\n //\n if (!flag) {\n this.getPorts().each(function (i, port) {\n port.__initialVisibilityState = port.isVisible();\n port.setVisible(false, duration);\n });\n } else {\n this.getPorts().each(function (i, port) {\n if (typeof port.__initialVisibilityState !== \"undefined\") {\n port.setVisible(port.__initialVisibilityState, duration);\n } else {\n port.setVisible(true, duration);\n }\n delete port.__initialVisibilityState;\n });\n }\n this._super(flag, duration);\n },\n\n /**\r\n * @method\r\n * Return all ports of the node. The results contains\r\n * all ports of the children too per default. Set <b>recursive</b>\r\n * to false to retrieve direct assigned ports only.\r\n *\r\n * @param {Boolean} [recursive] indicates if the method should return children ports too. Default is <b>true</b>\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getPorts: function getPorts(recursive) {\n var _this2 = this;\n\n if (typeof recursive === \"boolean\" && recursive === false) {\n var ports = new _packages2.default.util.ArrayList();\n ports.addAll(this.inputPorts);\n ports.addAll(this.outputPorts);\n ports.addAll(this.hybridPorts);\n return ports;\n }\n\n if (this.cachedPorts === null) {\n this.cachedPorts = new _packages2.default.util.ArrayList();\n this.cachedPorts.addAll(this.inputPorts);\n this.cachedPorts.addAll(this.outputPorts);\n this.cachedPorts.addAll(this.hybridPorts);\n\n this.children.each(function (i, e) {\n _this2.cachedPorts.addAll(e.figure.getPorts());\n });\n }\n return this.cachedPorts;\n },\n\n /**\r\n * @method\r\n * Return all input ports of the node.\r\n *\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getInputPorts: function getInputPorts() {\n return this.inputPorts.clone().addAll(this.hybridPorts);\n },\n\n /**\r\n * @method\r\n * Return all output ports of the node.\r\n *\r\n * @return {draw2d.util.ArrayList}\r\n **/\n getOutputPorts: function getOutputPorts() {\n return this.outputPorts.clone().addAll(this.hybridPorts);\n },\n\n /**\r\n * @method\r\n * Clone the figure. <br>\r\n * You must override and implement the methods <b>getPersistentAttributes</b> and <b>setPersistentAttributes</b> for your custom\r\n * figures if the have special attributes.\r\n *\r\n * The clone() method performs a deep copy of the object, meaning that it copies the children, ports and decorations\r\n * per default. You can control the clone procedure with the 'cloneMetaData'.\r\n *\r\n *\r\n * @param {Object} [cloneMetaData] controls the clone procedure\r\n * @param {Boolean} [cloneMetaData.excludeChildren] set it to true if you want exclude the children.\r\n * @param {Boolean} [cloneMetaData.excludePorts] set it to true if you want exclude the ports of the node.\r\n *\r\n * @since 4.1.0\r\n * @experimental\r\n */\n clone: function clone(cloneMetaData) {\n cloneMetaData = (0, _extend2.default)({ excludePorts: false }, cloneMetaData);\n\n var clone = this._super(cloneMetaData);\n\n // remove all ports of the clone. the \"init\" method can have create some. but this must\n // removed because we want a clone of an existing figure\n //\n if (cloneMetaData.excludePorts === false) {\n clone.resetPorts();\n var ports = this.getPorts(false);\n\n ports.each(function (i, port) {\n var clonePort = port.clone();\n var locator = port.getLocator().clone();\n clone.addPort(clonePort, locator);\n });\n }\n\n return clone;\n },\n\n /**\r\n * @method\r\n * Return the port with the corresponding name.\r\n *\r\n *\r\n * @param {String} portName The name of the port to return.\r\n * @return {draw2d.Port} Returns the port with the hands over name or null.\r\n **/\n getPort: function getPort(portName) {\n return this.getPorts().find(function (e) {\n return e.getName() === portName;\n });\n },\n\n /**\r\n * @method\r\n * Return the input port with the corresponding name.\r\n *\r\n *\r\n * @param {String/Number} portNameOrIndex The name or numeric index of the port to return.\r\n * @return {draw2d.InputPort} Returns the port with the hands over name or null.\r\n **/\n getInputPort: function getInputPort(portNameOrIndex) {\n if (typeof portNameOrIndex === \"number\") {\n return this.inputPorts.get(portNameOrIndex);\n }\n\n for (var i = 0; i < this.inputPorts.getSize(); i++) {\n var port = this.inputPorts.get(i);\n if (port.getName() === portNameOrIndex) {\n return port;\n }\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Return the output port with the corresponding name.\r\n *\r\n * @param {String/Number} portNameOrIndex The name or the numeric index of the port to return.\r\n * @return {draw2d.OutputPort} Returns the port with the hands over name or null.\r\n **/\n getOutputPort: function getOutputPort(portNameOrIndex) {\n if (typeof portNameOrIndex === \"number\") {\n return this.outputPorts.get(portNameOrIndex);\n }\n\n for (var i = 0; i < this.outputPorts.getSize(); i++) {\n var port = this.outputPorts.get(i);\n if (port.getName() === portNameOrIndex) {\n return port;\n }\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Return the input port with the corresponding name.\r\n *\r\n *\r\n * @param {String/Number} portNameOrIndex The name or numeric index of the port to return.\r\n * @return {draw2d.InputPort} Returns the port with the hands over name or null.\r\n **/\n getHybridPort: function getHybridPort(portNameOrIndex) {\n if (typeof portNameOrIndex === \"number\") {\n return this.hybridPorts.get(portNameOrIndex);\n }\n\n for (var i = 0; i < this.hybridPorts.getSize(); i++) {\n var port = this.hybridPorts.get(i);\n if (port.getName() === portNameOrIndex) {\n return port;\n }\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Add a port to this node at the given position.<br>\r\n *\r\n * @param {draw2d.Port} port The new port to add.\r\n * @param {draw2d.layout.locator.Locator} locator The layout for the port.\r\n **/\n addPort: function addPort(port, locator) {\n if (!(port instanceof _packages2.default.Port)) {\n throw \"Argument is not typeof 'draw2d.Port'. \\nFunction: draw2d.shape.node.Node#addPort\";\n }\n\n // add to the internal cache if already build\n if (this.cachedPorts !== null) {\n this.cachedPorts.add(port);\n }\n\n this.portRelayoutRequired = true;\n\n if (port instanceof _packages2.default.InputPort) {\n this.inputPorts.add(port);\n } else if (port instanceof _packages2.default.OutputPort) {\n this.outputPorts.add(port);\n } else if (port instanceof _packages2.default.HybridPort) {\n this.hybridPorts.add(port);\n }\n\n if (typeof locator !== \"undefined\" && locator instanceof _packages2.default.layout.locator.Locator) {\n port.setLocator(locator);\n }\n\n port.setParent(this);\n port.setCanvas(this.canvas);\n\n // You can't delete a port with the [DEL] key if a port is a child of a node\n port.setDeleteable(false);\n\n if (this.canvas !== null) {\n port.getShapeElement();\n this.canvas.registerPort(port);\n }\n\n return port;\n },\n\n /**\r\n * @method\r\n * Remove all ports of this node\r\n *\r\n * @since 5.0.0\r\n */\n resetPorts: function resetPorts() {\n var _this3 = this;\n\n this.getPorts().each(function (i, port) {\n return _this3.removePort(port);\n });\n return this;\n },\n\n /**\r\n * @method\r\n * Removes a port and all related connections from this node.<br>\r\n *\r\n * @param {draw2d.Port} port The port to remove.\r\n **/\n removePort: function removePort(port) {\n this.portRelayoutRequired = true;\n\n this.cachedPorts = null;\n this.inputPorts.remove(port);\n this.outputPorts.remove(port);\n this.hybridPorts.remove(port);\n\n if (port.getCanvas() !== null) {\n port.getCanvas().unregisterPort(port);\n // remove the related connections of the port too.\n var connections = port.getConnections();\n for (var i = 0; i < connections.getSize(); ++i) {\n port.getCanvas().remove(connections.get(i));\n }\n }\n\n port.setCanvas(null);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Create a standard Port for this element. Inherited class can override this\r\n * method to create its own type of ports.\r\n *\r\n * @param {String} type the type of the requested port. possible [\"input\", \"output\"]\r\n * @param {draw2d.layout.locator.Locator} [locator] the layouter to use for this port\r\n * @template\r\n */\n createPort: function createPort(type, locator) {\n var newPort = null;\n var count = 0;\n\n switch (type) {\n case \"input\":\n newPort = _packages2.default.Configuration.factory.createInputPort(this);\n count = this.inputPorts.getSize();\n break;\n case \"output\":\n newPort = _packages2.default.Configuration.factory.createOutputPort(this);\n count = this.outputPorts.getSize();\n break;\n case \"hybrid\":\n newPort = _packages2.default.Configuration.factory.createHybridPort(this);\n count = this.hybridPorts.getSize();\n break;\n default:\n throw \"Unknown type [\" + type + \"] of port requested\";\n }\n\n newPort.setName(type + count);\n\n this.addPort(newPort, locator);\n // relayout the ports\n this.setDimension(this.width, this.height);\n\n return newPort;\n },\n\n /**\r\n * @method\r\n * Return all connections related to this node.\r\n *\r\n * @returns {draw2d.util.ArrayList}\r\n */\n getConnections: function getConnections() {\n var connections = new _packages2.default.util.ArrayList();\n var ports = this.getPorts();\n for (var i = 0; i < ports.getSize(); i++) {\n var port = ports.get(i);\n // Do NOT add twice the same connection if it is linking ports from the same node\n for (var c = 0, c_size = port.getConnections().getSize(); c < c_size; c++) {\n if (!connections.contains(port.getConnections().get(c))) {\n connections.add(port.getConnections().get(c));\n }\n }\n }\n return connections;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setCanvas: function setCanvas(canvas) {\n var oldCanvas = this.canvas;\n this._super(canvas);\n\n var ports = this.getPorts();\n if (oldCanvas !== null) {\n ports.each(function (i, port) {\n return oldCanvas.unregisterPort(port);\n });\n }\n\n if (canvas !== null) {\n ports.each(function (i, port) {\n port.setCanvas(canvas);\n canvas.registerPort(port);\n });\n // relayout the ports\n this.setDimension(this.width, this.height);\n } else {\n ports.each(function (i, port) {\n return port.setCanvas(null);\n });\n }\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setRotationAngle: function setRotationAngle(angle) {\n this.portRelayoutRequired = true;\n this._super(angle);\n\n this.layoutPorts();\n\n return this;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this.portRelayoutRequired = true;\n this._super(w, h);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Called if the value of any port has been changed\r\n *\r\n * @param {draw2d.Port} relatedPort\r\n * @template\r\n */\n onPortValueChanged: function onPortValueChanged(relatedPort) {},\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n this._super(attributes);\n this.layoutPorts();\n },\n\n /**\r\n * @method\r\n *\r\n * @private\r\n */\n layoutPorts: function layoutPorts() {\n if (this.portRelayoutRequired === false) {\n return; //silently\n }\n this.portRelayoutRequired = false;\n\n // layout the ports\n //\n this.outputPorts.each(function (i, port) {\n return port.locator.relocate(i, port);\n });\n this.inputPorts.each(function (i, port) {\n return port.locator.relocate(i, port);\n });\n this.hybridPorts.each(function (i, port) {\n return port.locator.relocate(i, port);\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the Command to perform the specified Request or null.\r\n *\r\n * @param {draw2d.command.CommandType} request describes the Command being requested\r\n * @return {draw2d.command.Command} null or a Command\r\n * @private\r\n **/\n createCommand: function createCommand(request) {\n if (request === null) {\n return null;\n }\n\n if (request.getPolicy() === _packages2.default.command.CommandType.ROTATE) {\n return new _packages2.default.command.CommandRotate(this, (this.getRotationAngle() + 90) % 360);\n }\n\n return this._super(request);\n },\n\n /**\r\n * @method\r\n * Return an objects with all important attributes for XML or JSON serialization\r\n *\r\n * @returns {Object}\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n var memento = this._super();\n\n // write all ports to the JSON\n //\n if (this.persistPorts === true) {\n memento.ports = [];\n this.getPorts().each(function (i, port) {\n memento.ports.push((0, _extend2.default)(port.getPersistentAttributes(), {\n name: port.getName(),\n port: port.NAME,\n locator: port.getLocator().NAME\n }));\n });\n }\n\n return memento;\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n * @returns\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n var _this4 = this;\n\n this._super(memento);\n\n if (typeof memento.ports !== \"undefined\") {\n // we read the ports from the JSON and now we save it to the JSON too.\n this.persistPorts = true;\n\n // remove all ports created in the init method\n //\n this.resetPorts();\n\n // and restore all ports of the JSON document instead.\n //\n memento.ports.forEach(function (e) {\n var port = eval(\"new \" + e.port + \"()\");\n var locator = eval(\"new \" + e.locator + \"()\");\n port.setPersistentAttributes(e);\n _this4.addPort(port, locator);\n port.setName(e.name);\n });\n }\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/node/Start.js\":\n/*!*********************************!*\\\n !*** ./src/shape/node/Start.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.node.Start = _packages2.default.shape.basic.Rectangle.extend({\n\n NAME: \"draw2d.shape.node.Start\",\n DEFAULT_COLOR: new _packages2.default.util.Color(\"#4D90FE\"),\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(extend({\n bgColor: this.DEFAULT_COLOR,\n color: this.DEFAULT_COLOR.darker(),\n width: 50,\n height: 50\n }, attr), setter, getter);\n this.createPort(\"output\");\n this.installEditPolicy(new _packages2.default.policy.figure.RectangleSelectionFeedbackPolicy());\n this.createPort(\"output\");\n }\n\n}); /**\r\n * @class draw2d.shape.node.Start\r\n *\r\n * A generic Node which has an OutputPort. Mainly used for demo and examples.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.node.Start({color: \"#3d3d3d\"});\r\n *\r\n * canvas.add(figure,50,10);\r\n *\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/node/VerticalBus.js\":\n/*!***************************************!*\\\n !*** ./src/shape/node/VerticalBus.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.node.VerticalBus = _packages2.default.shape.node.Hub.extend({\n\n NAME: \"draw2d.shape.node.VerticalBus\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.setConnectionDirStrategy(2);\n this.installEditPolicy(new _packages2.default.policy.figure.VBusSelectionFeedbackPolicy());\n },\n\n /**\r\n * @method\r\n * set the label for the Hub\r\n *\r\n * @param {String} labelString\r\n * @since 3.0.4\r\n */\n setLabel: function setLabel(labelString) {\n var mustAdjustTheAngel = this.label === null;\n\n this._super(labelString);\n\n if (mustAdjustTheAngel === true && this.label !== null) {\n this.label.setRotationAngle(90);\n }\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinHeight: function getMinHeight() {\n if (this.shape === null && this.label === null) {\n return 0;\n }\n\n if (this.label !== null) {\n return this.label.getMinWidth();\n }\n\n return this._super();\n },\n\n /**\r\n * @inheritdoc\r\n */\n getMinWidth: function getMinWidth() {\n if (this.shape === null && this.label === null) {\n return 0;\n }\n\n if (this.label !== null) {\n return this.label.getMinHeight();\n }\n\n return this._super();\n }\n\n}); /**\r\n * @class draw2d.shape.node.VerticalBus\r\n *\r\n * A horizontal bus shape with a special kind of port handling. The hole figure is a hybrid port.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.node.VerticalBus({width:40, height:300, text:\"Vertical Bus\"});\r\n *\r\n * canvas.add(figure,50,10);\r\n *\r\n * @extends draw2d.shape.node.Hub\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/note/PostIt.js\":\n/*!**********************************!*\\\n !*** ./src/shape/note/PostIt.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.note.PostIt = _packages2.default.shape.basic.Label.extend({\n\n NAME: \"draw2d.shape.note.PostIt\",\n\n /**\r\n * @constructor\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.setStroke(1);\n this.setBackgroundColor(\"#5b5b5b\");\n this.setColor(\"#FFFFFF\");\n this.setFontColor(\"#ffffff\");\n this.setFontSize(14);\n this.setPadding(5);\n this.setRadius(5);\n }\n}); /**\r\n * @class draw2d.shape.note.PostIt\r\n *\r\n * Simple Post-it like figure with text. Can be used for annotations or documentation.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let shape = new draw2d.shape.note.PostIt({\r\n * text:\"This is a simple sticky note\",\r\n * color:\"#000000\",\r\n * padding:20\r\n * });\r\n *\r\n * canvas.add(shape,40,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.shape.basic.Label\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/pert/Activity.js\":\n/*!************************************!*\\\n !*** ./src/shape/pert/Activity.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.pert.Activity = _packages2.default.shape.layout.VerticalLayout.extend({\n\n NAME: \"draw2d.shape.pert.Activity\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // shortcut for some callback methods to avoid $.proxy wrapper\n var _this = this;\n\n // persistence values for the activity\n // will be stored/read in the JSON\n this.mementoValues = {\n duration: null\n\n // just some color attributes for the rendering/gradient\n };this.bgColor = new _packages2.default.util.Color(\"#f3f3f3\");\n this.lighterBgColor = this.bgColor.lighter(0.2).rgba();\n this.darkerBgColor = this.bgColor.darker(0.2).rgba();\n\n this._super(extend({ bgColor: this.bgColor, stroke: 2, radius: 2, color: this.darkerBgColor }, attr), setter, getter);\n\n // Compose the top row of the shape\n //\n var top = new _packages2.default.shape.layout.HorizontalLayout({ stroke: 0 });\n\n this.earlyStartLabel = this.createLabel(\"Early Start\").setStroke(0);\n\n this.durationLabel = new _packages2.default.shape.basic.Label({\n text: \"Duration\",\n stroke: 1,\n color: this.darkerBgColor,\n radius: 0,\n bgColor: null,\n padding: 5\n });\n // duration label has a inplaceEditor for the value\n this.durationLabel.installEditor(new _packages2.default.ui.LabelEditor({\n onCommit: function onCommit(value) {\n _this.setDuration(parseFloat(value));\n }\n }));\n\n this.earlyEndLabel = this.createLabel({ text: \"Early End\", stroke: 0 });\n\n top.add(this.earlyStartLabel);\n top.add(this.durationLabel);\n top.add(this.earlyEndLabel);\n\n // the middle part of the shape\n // This part contains the ports for the connection\n //\n this.activityLabel = new _packages2.default.shape.basic.Label({\n text: \"Activity Name\",\n radius: 0,\n padding: 10,\n color: this.darkerBgColor,\n bgColor: null\n });\n // direct editor for the label\n this.activityLabel.installEditor(new _packages2.default.ui.LabelInplaceEditor());\n\n this.inputPort = this.activityLabel.createPort(\"input\");\n this.inputPort.getActivity = function () {\n return _this;\n };\n this.inputPort.onConnect = function () {\n _this.setDuration(_this.mementoValues.duration);\n };\n this.inputPort.onDisconnect = function () {\n _this.setDuration(_this.mementoValues.duration);\n };\n this.inputPort.setValue = function (anyValue) {\n _this.setDuration(_this.mementoValues.duration);\n };\n\n this.outputPort = this.activityLabel.createPort(\"output\");\n this.outputPort.getActivity = function () {\n return _this;\n };\n this.outputPort.onConnect = function () {\n _this.setDuration(_this.mementoValues.duration);\n };\n this.outputPort.onDisconnect = function () {\n _this.setDuration(_this.mementoValues.duration);\n };\n\n // the bottom of the activity shape\n //\n var bottom = new _packages2.default.shape.layout.HorizontalLayout({ stroke: 0 });\n\n this.lateStartLabel = this.createLabel(\"Late Start\").setStroke(0);\n this.stackLabel = this.createLabel(\"Stack\");\n this.lateEndLabel = this.createLabel(\"Late End\").setStroke(0);\n\n bottom.add(this.lateStartLabel);\n bottom.add(this.stackLabel);\n bottom.add(this.lateEndLabel);\n\n // finally compose the shape with top/middle/bottom in VerticalLayout\n //\n this.add(top);\n this.add(this.activityLabel);\n this.add(bottom);\n\n // set some good default value for the activity\n //\n this.setDuration(1);\n },\n\n /**\r\n * @method\r\n * Set the duration for the activity. This triggers a complete recalculation of the complete\r\n * diagram. No further calls are required\r\n *\r\n * @param {Number} duration the new Duration for the activity\r\n */\n setDuration: function setDuration(duration) {\n\n if (this.mementoValues.duration !== duration) {\n // store the new value\n this.mementoValues.duration = duration;\n\n // update the labels for duration\n this.durationLabel.setText(this.mementoValues.duration);\n }\n\n // calculate the earlyStart and latestEnd and set the labels\n //\n var start = this.getEarlyStart();\n\n this.earlyStartLabel.setText(start);\n this.earlyEndLabel.setText(start + this.mementoValues.duration);\n\n // notify all children that a parent value has been changed\n // Just knock on the inputPort...\n //\n var connections = this.outputPort.getConnections();\n connections.each(function (i, conn) {\n var targetPort = conn.getTarget();\n targetPort.setValue();\n });\n\n // propagate the lateFinish up to all parent nodes if we are a leaf\n //\n if (connections.getSize() === 0) {\n var lateFinish = parseFloat(this.earlyEndLabel.getText());\n this.setLateFinish(lateFinish);\n }\n },\n\n getEarlyEnd: function getEarlyEnd() {\n return this.getEarlyStart() + this.mementoValues.duration;\n },\n\n getEarlyStart: function getEarlyStart() {\n var latestEarlyEnd = 0;\n\n // retrieve the greatest \"earlyStart\" from all parent activities\n this.inputPort.getConnections().each(function (i, conn) {\n var parentActivity = conn.getSource().getActivity();\n latestEarlyEnd = Math.max(latestEarlyEnd, parentActivity.getEarlyEnd());\n });\n\n return latestEarlyEnd;\n },\n\n setLateFinish: function setLateFinish(value) {\n var lateStart = value - this.mementoValues.duration;\n\n this.lateEndLabel.setText(value);\n this.lateStartLabel.setText(lateStart);\n this.stackLabel.setText(lateStart - parseFloat(this.earlyStartLabel.getText()));\n\n var connections = this.inputPort.getConnections();\n connections.each(function (i, conn) {\n var sourcePort = conn.getSource();\n sourcePort.getActivity().setLateFinish(lateStart);\n });\n },\n\n /**\r\n * @method\r\n * help method to create some labels\r\n *\r\n * @param {String} txt the label to display\r\n * @returns {draw2d.shape.basic.Label}\r\n */\n createLabel: function createLabel(txt) {\n var label = new _packages2.default.shape.basic.Label({ text: txt });\n label.setStroke(1);\n label.setColor(this.darkerBgColor);\n label.setRadius(0);\n label.setBackgroundColor(null);\n label.setPadding(5);\n label.setColor(this.bgColor.darker(0.2));\n label.onDoubleClick = function (angle) {/* ignore them for the layout elements*/\n };\n\n return label;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setBackgroundColor: function setBackgroundColor(color) {\n this._super(color);\n\n // calculate the new lighter and darker colors for the gradient\n //\n this.lighterBgColor = this.bgColor.lighter(0.2).rgba();\n this.darkerBgColor = this.bgColor.darker(0.2).rgba();\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n\n // repaint can be blocked during deserialization and if the shape\n // not part of any canvas.\n //\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n if (this.getAlpha() < 0.9) {\n attributes.fill = this.bgColor.rgba();\n } else {\n attributes.fill = [\"90\", this.bgColor.hash(), this.lighterBgColor].join(\"-\");\n }\n\n this._super(attributes);\n }\n}); /**\r\n * @class draw2d.shape.pert.Activity\r\n *\r\n * NOT FOR PRODUCTIVE\r\n *\r\n * Checkout [Wikipedia PERT][1] for more information.\r\n *\r\n * Double click on the Task name or the top middle number to change the value.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.add( new draw2d.shape.pert.Start(),10,10);\r\n * canvas.add( new draw2d.shape.pert.Activity(),80,130);\r\n * canvas.add( new draw2d.shape.pert.Activity(),180,50);\r\n *\r\n * [1] http://en.wikipedia.org/wiki/Program_Evaluation_and_Review_Technique\r\n *\r\n * @extends draw2d.shape.layout.VerticalLayout\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/pert/Start.js\":\n/*!*********************************!*\\\n !*** ./src/shape/pert/Start.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.pert.Start = _packages2.default.shape.layout.VerticalLayout.extend({\n\n NAME: \"draw2d.shape.pert.Start\",\n\n /**\r\n * @constructor\r\n * Create a new instance\r\n *\r\n * @param {Object} [attr] the configuration of the shape\r\n */\n init: function init(attr, setter, getter) {\n // shortcut for some callback methods to avoid $.proxy wrapper\n var _this = this;\n\n // persistence values for the activity\n // will be stored/read in the JSON\n this.mementoValues = {\n duration: null\n\n // just some color attributes for the rendering/gradient\n };this.bgColor = new _packages2.default.util.Color(\"#f3f3f3\");\n this.lighterBgColor = this.bgColor.lighter(0.2).rgba();\n this.darkerBgColor = this.bgColor.darker(0.2).rgba();\n\n this._super(extend({ bgColor: this.bgColor, stroke: 2, radius: 2, color: this.darkerBgColor }, attr), setter, getter);\n\n // Compose the top row of the shape\n //\n var top = new _packages2.default.shape.layout.HorizontalLayout({ stroke: 0 });\n\n this.durationLabel = new _packages2.default.shape.basic.Label({\n text: \"Duration\",\n stroke: 1,\n color: this.darkerBgColor,\n radius: 0,\n bgColor: null,\n padding: 5\n });\n // duration label has a inplaceEditor for the value\n this.durationLabel.installEditor(new _packages2.default.ui.LabelEditor({\n text: \"Enter new duration\",\n onCommit: function onCommit(value) {\n _this.setDuration(parseFloat(value));\n }\n }));\n\n this.earlyEndLabel = this.createLabel({ text: \"Early End\", stroke: 0 });\n\n top.add(this.durationLabel);\n top.add(this.earlyEndLabel);\n\n // the middle part of the shape\n // This part contains the ports for the connection\n //\n this.activityLabel = new _packages2.default.shape.basic.Label({\n text: \"Start\",\n radius: 0,\n padding: 10,\n color: this.darkerBgColor,\n bgColor: null\n });\n // direct editor for the label\n this.activityLabel.installEditor(new _packages2.default.ui.LabelInplaceEditor());\n\n this.outputPort = this.activityLabel.createPort(\"output\");\n this.outputPort.getActivity = function () {\n return _this;\n };\n this.outputPort.onConnect = function () {\n _this.setDuration(_this.mementoValues.duration);\n };\n this.outputPort.onDisconnect = function () {\n _this.setDuration(_this.mementoValues.duration);\n };\n\n // the bottom of the activity shape\n //\n var bottom = this.createLabel(\" \");\n bottom.setPadding(10);\n bottom.setStroke(0);\n this.lateEndLabel = bottom;\n\n // finally compose the shape with top/middle/bottom in VerticalLayout\n //\n this.add(top);\n this.add(this.activityLabel);\n this.add(bottom);\n\n // set some good default value for the activity\n //\n this.setDuration(1);\n },\n\n /**\r\n * @method\r\n * Set the duration for the activity. This triggers a complete recalculation of the complete\r\n * diagram. No further calls are required\r\n *\r\n * @param {Number} duration the new Duration for the activity\r\n */\n setDuration: function setDuration(duration) {\n\n if (this.mementoValues.duration !== duration) {\n // store the new value\n this.mementoValues.duration = duration;\n\n // update the labels for duration\n this.durationLabel.setText(this.mementoValues.duration);\n }\n\n this.earlyEndLabel.setText(this.mementoValues.duration);\n\n // notify all children that a parent value has been changed\n // Just knock on the inputPort...\n //\n var connections = this.outputPort.getConnections();\n connections.each(function (i, conn) {\n var targetPort = conn.getTarget();\n targetPort.setValue();\n });\n\n // propagate the lateFinish up to all parent nodes if we are a leaf\n //\n if (connections.getSize() === 0) {\n var lateFinish = parseFloat(this.earlyEndLabel.getText());\n this.setLateFinish(lateFinish);\n }\n },\n\n getEarlyEnd: function getEarlyEnd() {\n return this.mementoValues.duration;\n },\n\n setLateFinish: function setLateFinish(value) {\n var lateStart = value - this.mementoValues.duration;\n\n this.lateEndLabel.setText(value);\n },\n\n /**\r\n * @method\r\n * help method to create some labels\r\n *\r\n * @param {String} txt the label to display\r\n * @returns {draw2d.shape.basic.Label}\r\n */\n createLabel: function createLabel(txt) {\n var label = new _packages2.default.shape.basic.Label({ text: txt });\n label.setStroke(1);\n label.setColor(this.darkerBgColor);\n label.setRadius(0);\n label.setBackgroundColor(null);\n label.setPadding(5);\n label.setColor(this.bgColor.darker(0.2));\n label.onDoubleClick = function (angle) {/* ignore them for the layout elements*/\n };\n\n return label;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setBackgroundColor: function setBackgroundColor(color) {\n this._super(color);\n\n // calculate the new lighter and darker colors for the gradient\n //\n this.lighterBgColor = this.bgColor.lighter(0.2).rgba();\n this.darkerBgColor = this.bgColor.darker(0.2).rgba();\n },\n\n /**\r\n * @inheritdoc\r\n */\n repaint: function repaint(attributes) {\n\n // repaint can be blocked during deserialization and if the shape\n // not part of any canvas.\n //\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n if (this.getAlpha() < 0.9) {\n attributes.fill = this.bgColor.rgba();\n } else {\n attributes.fill = [\"90\", this.bgColor.hash(), this.lighterBgColor].join(\"-\");\n }\n\n this._super(attributes);\n }\n}); /**\r\n * @class draw2d.shape.pert.Start\r\n *\r\n * NOT FOR PRODUCTIVE\r\n *\r\n * Checkout [Wikipedia PERT][1] for more information.\r\n *\r\n * Double click on the Task name or the top middle number to change the value.\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * canvas.add( new draw2d.shape.pert.Start(),10,10);\r\n * canvas.add( new draw2d.shape.pert.Activity(),80,130);\r\n * canvas.add( new draw2d.shape.pert.Activity(),180,50);\r\n *\r\n * [1] http://en.wikipedia.org/wiki/Program_Evaluation_and_Review_Technique\r\n *\r\n * @extends draw2d.shape.layout.VerticalLayout\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/state/Connection.js\":\n/*!***************************************!*\\\n !*** ./src/shape/state/Connection.js ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.state.Connection = _packages2.default.Connection.extend({\n\n NAME: \"draw2d.shape.state.Connection\",\n\n DEFAULT_COLOR: new _packages2.default.util.Color(\"#4D90FE\"),\n\n init: function init(attr, setter, getter) {\n this._super(extend({ router: null, stroke: 2 }, attr), setter, getter);\n\n this.setTargetDecorator(new _packages2.default.decoration.connection.ArrowDecorator(17, 8));\n\n this.label = new _packages2.default.shape.basic.Label({ text: \"label\" });\n this.label.setStroke(1);\n this.label.setPadding(2);\n this.label.setBackgroundColor(\"#f0f0f0\");\n this.add(this.label, new _packages2.default.layout.locator.ParallelMidpointLocator());\n },\n /**\r\n * @method\r\n * Set the text to show if the state shape\r\n *\r\n * @param {String} text\r\n */\n setLabel: function setLabel(text) {\n this.label.setText(text);\n\n // hide the label if no text available\n this.label.setVisible(!(text === null || text === \"\"));\n this.fireEvent(\"change:label\", { value: text });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the label of the shape\r\n *\r\n */\n getLabel: function getLabel() {\n return this.label.getText();\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n return extend(this._super(), {\n label: this.getLabel()\n });\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.label !== \"undefined\") {\n this.setLabel(memento.label);\n }\n }\n\n}); /**\r\n * @class draw2d.shape.state.Connection\r\n *\r\n * Connection designed for a state diagram with arrow decoration at the\r\n * target of the connection and a label\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.state.Start();\r\n * let end = new draw2d.shape.state.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( end, 230,180);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * let c = new draw2d.shape.state.Connection({\r\n * \t source : start.getOutputPort(0),\r\n * target : end.getInputPort(0)\r\n * });\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n *\r\n * @extends draw2d.Connection\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/state/End.js\":\n/*!********************************!*\\\n !*** ./src/shape/state/End.js ***!\n \\********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.state.End = _packages2.default.shape.basic.Circle.extend({\n\n NAME: \"draw2d.shape.state.End\",\n\n DEFAULT_COLOR: new _packages2.default.util.Color(\"#4D90FE\"),\n\n init: function init(attr, setter, getter) {\n this.innerCircle = new _packages2.default.shape.basic.Circle(20);\n\n this._super(attr, setter, getter);\n\n this.port = this.createPort(\"input\", new _packages2.default.layout.locator.TopLocator());\n this.port.setConnectionAnchor(new _packages2.default.layout.anchor.ShortesPathConnectionAnchor(this.port));\n\n this.setDimension(50, 50);\n this.setBackgroundColor(this.DEFAULT_COLOR);\n this.installEditPolicy(new _packages2.default.policy.figure.AntSelectionFeedbackPolicy());\n\n this.innerCircle.setStroke(2);\n this.innerCircle.setBackgroundColor(null);\n this.add(this.innerCircle, new _packages2.default.layout.locator.CenterLocator());\n\n this.setStroke(0);\n //this.setColor(this.DEFAULT_COLOR.darker());\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this._super(w, h);\n this.innerCircle.setDimension(this.getWidth() - 10, this.getHeight() - 10);\n }\n}); /**\r\n * @class draw2d.shape.state.End\r\n *\r\n * The end node for a state diagram\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n * let end = new draw2d.shape.state.End();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( end, 230,80);\r\n *\r\n * @extends draw2d.shape.basic.Circle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/state/Start.js\":\n/*!**********************************!*\\\n !*** ./src/shape/state/Start.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.state.Start = _packages2.default.shape.basic.Circle.extend({\n\n NAME: \"draw2d.shape.state.Start\",\n\n DEFAULT_COLOR: new _packages2.default.util.Color(\"#3369E8\"),\n\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.port = this.createPort(\"output\", new _packages2.default.layout.locator.BottomLocator());\n this.port.setConnectionAnchor(new _packages2.default.layout.anchor.ShortesPathConnectionAnchor(this.port));\n\n this.setDimension(50, 50);\n this.setBackgroundColor(this.DEFAULT_COLOR);\n this.installEditPolicy(new _packages2.default.policy.figure.AntSelectionFeedbackPolicy());\n\n this.setStroke(0);\n //this.setColor(this.DEFAULT_COLOR.darker());\n\n var label = new _packages2.default.shape.basic.Label({ text: \"START\" });\n label.setStroke(0);\n label.setFontColor(\"#ffffff\");\n label.setFontFamily('\"Open Sans\",sans-serif');\n this.add(label, new _packages2.default.layout.locator.CenterLocator());\n }\n}); /**\r\n * @class draw2d.shape.state.Start\r\n *\r\n * The start node for a state diagram\r\n *\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let figure = new draw2d.shape.state.Start({color:\"#3d3d3d\"});\r\n *\r\n * canvas.add(figure,50,10);\r\n *\r\n * @extends draw2d.shape.basic.Rectangle\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/state/State.js\":\n/*!**********************************!*\\\n !*** ./src/shape/state/State.js ***!\n \\**********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.state.State = _packages2.default.shape.layout.VerticalLayout.extend({\n\n NAME: \"draw2d.shape.state.State\",\n\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n\n this.port = this.createPort(\"hybrid\", new _packages2.default.layout.locator.BottomLocator());\n this.port.setConnectionAnchor(new _packages2.default.layout.anchor.ChopboxConnectionAnchor(this.port));\n\n this.setBackgroundColor(\"#f3f3f3\");\n\n // UI representation\n this.setStroke(1);\n this.setColor(\"#e0e0e0\");\n this.setRadius(5);\n\n // Compose the top row of the shape\n //\n var top = this.createLabel(\"State\").setStroke(0);\n this.label = top;\n\n // the middle part of the shape\n // This part contains the ports for the connection\n //\n var center = new _packages2.default.shape.basic.Rectangle();\n center.getHeight = function () {\n return 1;\n };\n center.setMinWidth(90);\n center.setColor(\"#e0e0e0\");\n\n // the bottom of the activity shape\n //\n var bottom = new _packages2.default.shape.basic.Rectangle();\n bottom.setMinHeight(30);\n bottom.setStroke(0);\n bottom.setBackgroundColor(null);\n\n // finally compose the shape with top/middle/bottom in VerticalLayout\n //\n this.add(top);\n this.add(center);\n this.add(bottom);\n },\n\n /**\r\n * @method\r\n * Set the text to show if the state shape\r\n *\r\n * @param {String} text\r\n */\n setLabel: function setLabel(text) {\n this.label.setText(text);\n this.fireEvent(\"change:label\", { value: text });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the label of the shape\r\n *\r\n */\n getLabel: function getLabel() {\n return this.label.getText();\n },\n\n /**\r\n * @method\r\n * helper method to create some labels\r\n *\r\n * @param {String} txt the label to display\r\n * @returns {draw2d.shape.basic.Label}\r\n * @private\r\n */\n createLabel: function createLabel(txt) {\n var label = new _packages2.default.shape.basic.Label(txt);\n label.setStroke(1);\n label.setColor(this.darkerBgColor);\n label.setRadius(0);\n label.setBackgroundColor(null);\n label.setPadding(5);\n label.setColor(this.bgColor.darker(0.2));\n label.onDoubleClick = function (angle) {/* ignore them for the layout elements*/\n };\n\n return label;\n },\n\n /**\r\n * @inheritdoc\r\n */\n getPersistentAttributes: function getPersistentAttributes() {\n return extend(this._super(), {\n label: this.getLabel()\n });\n },\n\n /**\r\n * @inheritdoc\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this._super(memento);\n\n if (typeof memento.label !== \"undefined\") {\n this.setLabel(memento.label);\n }\n }\n}); /**\r\n * @class draw2d.shape.state.State\r\n *\r\n * a state shape for a state diagram\r\n *\r\n * @example preview small frame\r\n * // create and add two nodes which contains Ports (In and OUT)\r\n * //\r\n * let start = new draw2d.shape.state.Start();\r\n * let state = new draw2d.shape.state.State();\r\n \r\n * // ...add it to the canvas\r\n * canvas.add( start, 50,50);\r\n * canvas.add( state, 230,180);\r\n *\r\n * // Create a Connection and connect the Start and End node\r\n * //\r\n * let c = new draw2d.shape.state.Connection({\r\n * \t\tsource : start.getOutputPort(0),\r\n * target : state.getInputPort(0)\r\n * });\r\n *\r\n *\r\n * // and finally add the connection to the canvas\r\n * canvas.add(c);\r\n *\r\n * @extends draw2d.shape.layout.VerticalLayout\r\n */\n\n/***/ }),\n\n/***/ \"./src/shape/widget/Slider.js\":\n/*!************************************!*\\\n !*** ./src/shape/widget/Slider.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _shifty = __webpack_require__(/*! shifty */ \"./node_modules/shifty/dist/shifty.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.shape.widget.Slider\r\n * See the example:\r\n *\r\n * @example preview small frame\r\n *\r\n * let slider = new draw2d.shape.widget.Slider({width:120, height:20});\r\n * canvas.add( slider,100,60);\r\n *\r\n * @extends draw2d.shape.widget.Widget\r\n */\n_packages2.default.shape.widget.Slider = _packages2.default.shape.widget.Widget.extend({\n\n NAME: \"draw2d.shape.widget.Slider\",\n\n DEFAULT_COLOR_THUMB: new _packages2.default.util.Color(\"#bddf69\"),\n DEFAULT_COLOR_BG: new _packages2.default.util.Color(\"#d3d3d3\"),\n\n init: function init(attr, setter, getter) {\n this.currentValue = 0; // [0..100]\n this.slideBoundingBox = new _packages2.default.geo.Rectangle(0, 0, 10, 20);\n this.padding = { top: 4, right: 4, bottom: 4, left: 4 };\n this.panning = false;\n this.thumbGrow = 0;\n\n this._super(extend({\n width: 150,\n height: 15,\n stroke: 1,\n radius: 4,\n resizeable: true,\n color: this.DEFAULT_COLOR_THUMB,\n bgColor: this.DEFAULT_COLOR_BG,\n value: 50\n }, attr), extend({\n /** @attr {Number} padding the padding in pixel around the text */\n padding: this.setPadding,\n /** @attr {Number} value the new value of the slider. values must be in range of [0..100] */\n value: this.setValue\n }, setter), extend({\n padding: this.getPadding,\n value: this.getValue\n }, getter));\n\n this.setMinHeight(15);\n this.setMinWidth(80);\n },\n\n /**\r\n * @method\r\n * Create the additional elements for the figure\r\n *\r\n */\n createSet: function createSet() {\n var result = this.canvas.paper.set();\n var thumb = this.canvas.paper.rect(0, 0, 10, 20);\n thumb.node.style.cursor = \"col-resize\";\n result.push(thumb);\n\n return result;\n },\n\n /**\r\n * @inheritdoc\r\n */\n setDimension: function setDimension(w, h) {\n this._super(w, h);\n this.slideBoundingBox.setBoundary(this.padding.left, 0, this.getWidth() - this.padding.right, this.getHeight());\n this.slideBoundingBox.setHeight(this.getHeight() + 1);\n\n // TODO: and repaint again.....two repaints for one \"setDimension\"....BAD\n //\n this.repaint();\n },\n\n /**\r\n * @method\r\n * Set the padding of the element\r\n *\r\n * // Alternatively you can use the attr method:\r\n * //\r\n * // set the padding for top,left,bottom,right in one call\r\n * figure.attr({\r\n * padding: 3\r\n * });\r\n *\r\n * // update the padding left and top\r\n * figure.attr({\r\n * padding: {left:3, top:30}\r\n * });\r\n *\r\n * @param {Number|Object} padding The new padding\r\n * @since 5.6.0\r\n **/\n setPadding: function setPadding(padding) {\n this.clearCache();\n if (typeof padding === \"number\") {\n this.padding = { top: padding, right: padding, bottom: padding, left: padding };\n } else {\n this.padding = extend(this.padding, padding);\n }\n this.repaint();\n this.fireEvent(\"change:padding\", { value: this.padding });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Get the padding of the element.\r\n *\r\n * @since 5.6.0\r\n **/\n getPadding: function getPadding() {\n return this.padding;\n },\n\n /**\r\n * @method\r\n * Called if the value of the slider has been changed.\r\n *\r\n * @param {Number} value The new value of the slider in percentage [0..100]\r\n * @template\r\n */\n onValueChange: function onValueChange(value) {},\n\n /**\r\n * @method\r\n * Will be called if the drag and drop action begins. You can return [false] if you\r\n * want avoid that the figure can be move.\r\n *\r\n * @param {Number} x the x-coordinate of the mouse up event\r\n * @param {Number} y the y-coordinate of the mouse up event\r\n * @param {Boolean} shiftKey true if the shift key has been pressed during this event\r\n * @param {Boolean} ctrlKey true if the ctrl key has been pressed during the event\r\n *\r\n * @return {Boolean} true if the figure accepts dragging\r\n **/\n onDragStart: function onDragStart(x, y, shiftKey, ctrlKey) {\n // check if the use has been clicked on the thumb.\n // Return \"false\" to prevent drag&drop operation.\n //\n if (this.slideBoundingBox.hitTest(x, y)) {\n\n this.panningX = x;\n this.panningY = y;\n this.panning = true;\n var tweenable = new _shifty.Tweenable();\n tweenable.tween({\n from: { grow: this.thumbGrow },\n to: { grow: 10 },\n duration: 500,\n easing: 'easeOutQuart',\n step: function (state) {\n this.thumbGrow = state.grow;\n this.repaint();\n }.bind(this),\n finish: function finish() {\n tweenable.dispose();\n }\n });\n return false;\n }\n\n return this._super(x, y, shiftKey, ctrlKey);\n },\n\n /**\r\n * @method\r\n * Called by the framework if the figure returns false for the drag operation. In this\r\n * case we send a \"panning\" event - mouseDown + mouseMove. This is very useful for\r\n * UI-Widget like slider, spinner,...\r\n *\r\n * @param {Number} dx the x difference between the mouse down operation and now\r\n * @param {Number} dy the y difference between the mouse down operation and now\r\n * @param {Number} dx2 The x diff since the last call of this dragging operation\r\n * @param {Number} dy2 The y diff since the last call of this dragging operation\r\n */\n onPanning: function onPanning(dx, dy, dx2, dy2) {\n // calculate the current position of the mouse pos\n //\n var thumbW2 = this.slideBoundingBox.w / 2;\n var width = this.getWidth();\n var sliderWidth = width - this.padding.left - this.padding.right;\n\n var figurePos = Math.min(width, Math.max(0, this.panningX + dx));\n var sliderPos = Math.min(width - this.padding.left - this.padding.right, figurePos - this.padding.left) - thumbW2;\n\n this.setValue(100 / sliderWidth * sliderPos);\n },\n\n /**\r\n * @inheritdoc\r\n */\n onPanningEnd: function onPanningEnd() {\n this.panning = false;\n\n var tweenable = new _shifty.Tweenable();\n tweenable.tween({\n from: { grow: this.thumbGrow },\n to: { grow: 0 },\n duration: 300,\n easing: 'easeOutQuart',\n step: function (state) {\n this.thumbGrow = state.grow;\n this.repaint();\n }.bind(this),\n finish: function finish() {\n tweenable.dispose();\n }\n });\n this.thumbGrow = 0;\n this.repaint();\n },\n\n /**\r\n * @method\r\n * Set the current value of the slider. Valid values are [0..100]\r\n *\r\n * @param {Number} value values between [0..100]\r\n */\n setValue: function setValue(value) {\n this.currentValue = Math.min(Math.max(0, value | 0), 100);\n this.repaint();\n this.onValueChange(this.currentValue);\n this.fireEvent(\"change:value\", { value: this.currentValue });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Returns the current value of the slider\r\n *\r\n * @since 5.6.0\r\n *\r\n * @returns {Number}\r\n */\n getValue: function getValue() {\n return this.currentValue;\n },\n\n /**\r\n *\r\n * @param attributes\r\n */\n repaint: function repaint(attributes) {\n if (this.repaintBlocked === true || this.shape === null) {\n return;\n }\n\n attributes = attributes || {};\n\n // adjust the slider to the current value and the new dimension of the widget\n //\n var thumbX = (this.getWidth() - this.padding.left - this.padding.right) / 100 * this.currentValue + this.padding.left | 0;\n this.slideBoundingBox.setX(thumbX);\n\n // update slider\n //\n if (this.svgNodes !== null) {\n var attr = this.slideBoundingBox.toJSON();\n attr.y -= this.thumbGrow / 2;\n attr.height += this.thumbGrow;\n attr.fill = this.getColor().rgba();\n attr.stroke = this.getColor().darker(0.2).rgba();\n attr.r = 4;\n this.svgNodes.attr(attr);\n }\n\n attributes.fill = \"90-\" + this.bgColor.hash() + \":5-\" + this.bgColor.lighter(0.3).hash() + \":95\";\n attributes.stroke = this.bgColor.darker(0.1).rgba();\n\n this._super(attributes);\n },\n\n applyTransformation: function applyTransformation() {\n this.svgNodes.transform(\"T\" + this.getAbsoluteX() + \",\" + this.getAbsoluteY());\n\n return this;\n }\n\n});\n\n/***/ }),\n\n/***/ \"./src/shape/widget/Widget.js\":\n/*!************************************!*\\\n !*** ./src/shape/widget/Widget.js ***!\n \\************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.shape.widget.Widget = _packages2.default.SetFigure.extend({\n\n init: function init(attr, setter, getter) {\n this._super(attr, setter, getter);\n }\n}); /**\r\n * @class draw2d.shape.widget.Widget\r\n * Base class for all diagrams.\r\n *\r\n * @extends draw2d.SetFigure\r\n */\n\n/***/ }),\n\n/***/ \"./src/ui/LabelEditor.js\":\n/*!*******************************!*\\\n !*** ./src/ui/LabelEditor.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.ui.LabelEditor = Class.extend({\n\n NAME: \"draw2d.ui.LabelEditor\",\n\n /**\r\n * @constructor\r\n * Create an label editor with a dedicated callback listener\r\n *\r\n */\n init: function init(listener) {\n // register some default listener and override this with the handover one\n this.configuration = extend({\n onCommit: function onCommit() {},\n onCancel: function onCancel() {},\n onStart: function onStart() {},\n text: \"Value\"\n }, listener);\n },\n\n /**\r\n * @method\r\n * Trigger the edit of the label text.\r\n *\r\n * @param {draw2d.shape.basic.Label} label the label to edit\r\n */\n start: function start(label) {\n this.configuration.onStart();\n var newText = prompt(this.configuration.text, label.getText());\n if (newText) {\n var cmd = new _packages2.default.command.CommandAttr(label, { text: newText });\n label.getCanvas().getCommandStack().execute(cmd);\n\n this.configuration.onCommit(label.getText());\n } else {\n this.configuration.onCancel();\n }\n }\n\n}); /**\r\n * @class draw2d.ui.LabelEditor\r\n * Base class for all draw2d.shape.basic.Label editors. The default implementation is to open\r\n * a simple javascript prompt dialog.<br>\r\n * Use LabelInplaceEditor or your own implementation if you need more comfort.\r\n *\r\n * @example preview small frame\r\n *\r\n * var label = new draw2d.shape.basic.Label({text:\"Double Click on me\"});\r\n *\r\n * label.installEditor(new draw2d.ui.LabelEditor({\r\n * // called after the value has been set to the LabelFigure\r\n * onCommit: $.proxy(function(value){\r\n * alert(\"new value set to:\"+value);\r\n * },this),\r\n * // called if the user abort the operation\r\n * onCancel: function(){\r\n * }\r\n * }));\r\n *\r\n * canvas.add(label,50,10);\r\n *\r\n *\r\n * @author Andreas Herz\r\n */\n\n/***/ }),\n\n/***/ \"./src/ui/LabelInplaceEditor.js\":\n/*!**************************************!*\\\n !*** ./src/ui/LabelInplaceEditor.js ***!\n \\**************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nvar _jquery = __webpack_require__(/*! lib/jquery.autoresize */ \"./src/lib/jquery.autoresize.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.ui.LabelInplaceEditor\r\n *\r\n * Inplace editor for draw2d.shape.base.Label\r\n *\r\n * @example preview small frame\r\n *\r\n * var label = new draw2d.shape.basic.Label({text:\"Double Click on me\"});\r\n *\r\n * label.installEditor(new draw2d.ui.LabelInplaceEditor({\r\n * // called after the value has been set to the LabelFigure\r\n * onCommit: $.proxy(function(value){\r\n * alert(\"new value set to:\"+value);\r\n * },this),\r\n * // called if the user abort the operation\r\n * onCancel: function(){\r\n * }\r\n * }));\r\n *\r\n * canvas.add(label,50,10);\r\n *\r\n * @author Andreas Herz\r\n * @extends draw2d.ui.LabelEditor\r\n*/\n_packages2.default.ui.LabelInplaceEditor = _packages2.default.ui.LabelEditor.extend({\n\n NAME: \"draw2d.ui.LabelInplaceEditor\",\n\n /**\r\n * @constructor\r\n * @private\r\n */\n init: function init(listener) {\n this._super();\n\n // register some default listener and override this with the handover one\n this.listener = extend({\n onCommit: function onCommit() {},\n onCancel: function onCancel() {},\n onStart: function onStart() {}\n }, listener);\n },\n\n /**\r\n * @method\r\n * Trigger the edit of the label text.\r\n *\r\n * @param {draw2d.shape.basic.Label} label the label to edit\r\n */\n start: function start(label) {\n var _this = this;\n\n this.label = label;\n\n this.commitCallback = this.commit.bind(this);\n\n // commit the editor if the user clicks anywhere in the document\n //\n $(\"body\").bind(\"click\", this.commitCallback);\n\n // append the input field to the document and register\n // the ENTER and ESC key to commit /cancel the operation\n //\n this.html = $('<input id=\"inplaceeditor\">');\n this.html.val(label.getText());\n this.html.hide();\n\n $(\"body\").append(this.html);\n\n this.html.autoResize();\n\n this.html.bind(\"keyup\", function (e) {\n switch (e.which) {\n case 13:\n this.commit();\n break;\n case 27:\n this.cancel();\n break;\n }\n }.bind(this));\n\n this.html.bind(\"blur\", this.commitCallback);\n\n // avoid commit of the operation if we click inside the editor\n //\n this.html.bind(\"click\", function (e) {\n e.stopPropagation();\n e.preventDefault();\n });\n\n // Position the INPUT and init the autoresize of the element\n //\n var canvas = this.label.getCanvas();\n var bb = this.label.getBoundingBox();\n\n bb.setPosition(canvas.fromCanvasToDocumentCoordinate(bb.x, bb.y));\n\n // remove the scroll from the body if we add the canvas directly into the body\n var scrollDiv = canvas.getScrollArea();\n if (scrollDiv.is($(\"body\"))) {\n bb.translate(canvas.getScrollLeft(), canvas.getScrollTop());\n }\n\n bb.translate(-1, -1);\n bb.resize(2, 2);\n\n this.html.css({ position: \"absolute\", \"top\": bb.y, \"left\": bb.x, \"min-width\": bb.w * (1 / canvas.getZoom()), \"height\": Math.max(25, bb.h * (1 / canvas.getZoom())) });\n this.html.fadeIn(function () {\n _this.html.focus();\n _this.listener.onStart();\n });\n },\n\n /**\r\n * @method\r\n * Transfer the data from the editor into the label.<br>\r\n * Remove the editor.<br>\r\n *\r\n * @private\r\n */\n commit: function commit() {\n var _this2 = this;\n\n this.html.unbind(\"blur\", this.commitCallback);\n $(\"body\").unbind(\"click\", this.commitCallback);\n var label = this.html.val();\n var cmd = new _packages2.default.command.CommandAttr(this.label, { text: label });\n this.label.getCanvas().getCommandStack().execute(cmd);\n this.html.fadeOut(function () {\n _this2.html.remove();\n _this2.html = null;\n _this2.listener.onCommit(_this2.label.getText());\n });\n },\n\n /**\r\n * @method\r\n * Transfer the data from the editor into the label.<br>\r\n * Remove the editor.<br>\r\n * @private\r\n */\n cancel: function cancel() {\n var _this3 = this;\n\n this.html.unbind(\"blur\", this.commitCallback);\n $(\"body\").unbind(\"click\", this.commitCallback);\n this.html.fadeOut(function () {\n _this3.html.remove();\n _this3.html = null;\n _this3.listener.onCancel();\n });\n }\n});\n\n/***/ }),\n\n/***/ \"./src/util/ArrayList.js\":\n/*!*******************************!*\\\n !*** ./src/util/ArrayList.js ***!\n \\*******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.util.ArrayList\r\n *\r\n * <Disclaimer> Writing my own class for arrays was one of my worst ideas...\r\n *\r\n * An ArrayList stores a variable number of objects. This is similar to making an array of\r\n * objects, but with an ArrayList, items can be easily added and removed from the ArrayList\r\n * and it is resized dynamically. This can be very convenient, but it's slower than making\r\n * an array of objects when using many elements.\r\n */\n_packages2.default.util.ArrayList = Class.extend({\n\n /**\r\n * @constructor\r\n * Initializes a new instance of the ArrayList class that is empty and has\r\n * the default initial capacity.\r\n *\r\n */\n init: function init(a) {\n if (Array.isArray(a)) {\n this.data = a;\n } else {\n this.data = [];\n }\n },\n\n /**\r\n * @method\r\n * Clears the array\r\n *\r\n * @since 6.1.0\r\n */\n clear: function clear() {\n this.data = [];\n\n return this;\n },\n\n /**\r\n * @method\r\n * Reverses the order of the elements in the ArrayList. The array will be modified!\r\n *\r\n */\n reverse: function reverse() {\n this.data.reverse();\n\n return this;\n },\n\n /**\r\n * @method\r\n * The size/count of the stored objects.\r\n *\r\n * @return {Number}\r\n */\n getSize: function getSize() {\n return this.data.length;\n },\n\n /**\r\n * @method\r\n * checks to see if the Vector has any elements.\r\n *\r\n * @return {Boolean} true if the list is empty\r\n **/\n isEmpty: function isEmpty() {\n return this.getSize() === 0;\n },\n\n /**\r\n * @method\r\n * return the last element.\r\n *\r\n * @return {Object}\r\n */\n last: function last() {\n return this.data[this.data.length - 1];\n },\n\n /**\r\n * @method\r\n * Return a reference to the internal javascript native array.\r\n *\r\n * @return {Array}\r\n */\n asArray: function asArray() {\n return this.data;\n },\n\n /**\r\n * @method\r\n * returns the first element\r\n *\r\n * @return {Object}\r\n */\n first: function first() {\n if (this.data.length > 0) {\n return this.data[0];\n }\n return null;\n },\n\n /**\r\n * @method\r\n * returns an element at a specified index\r\n *\r\n * @param {Number} i\r\n * @return {Object}\r\n */\n get: function get(i) {\n return this.data[i];\n },\n\n /**\r\n * @method\r\n * Adds a element at the end of the Vector.\r\n *\r\n * @param {Object} obj the object to add\r\n */\n add: function add() {\n var _data;\n\n (_data = this.data).push.apply(_data, arguments);\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * The method removes items from an array as necessary so that all remaining items pass a\r\n * provided test. The test is a function that is passed an array item and the index of the\r\n * item within the array. Only if the test returns true will the item stay in the array.\r\n *\r\n * @param {Function} func the filter function(element,index)\r\n * @param {Object} func.value value of the element in iteration.\r\n * @since 2.0.0\r\n */\n grep: function grep(func) {\n this.data = this.data.filter(func);\n\n return this;\n },\n\n /**\r\n * @method\r\n *\r\n * Return ONE element which matches by the given function or <b>null</b>\r\n * if no element is found.\r\n *\r\n * var r1= figures.find(function(figure){\r\n * return figure.id===123456\r\n * });\r\n *\r\n * @param {Function} func the filter function\r\n * @param {Object} func.value value of the element in iteration.\r\n * @param {Object} func.index index of the element in collection.\r\n * @since 2.0.0\r\n */\n find: function find(func) {\n var result = this.data.filter(func);\n if (result.length === 0) {\n return null;\n }\n return result[0];\n },\n\n /**\r\n * @method\r\n * Translate all items in the array into new items. The array list is modified after this call.\r\n * You must clone the array before if you want avoid this.\r\n *\r\n * var labels = this.commands.clone().map(function(e){\r\n * return e.getLabel();\r\n * });\r\n *\r\n * @param {Function} func The function to process each item against. The first argument to the function is the value; the second argument is the index or key of the array or object property.\r\n * @param {Object} func.value value of the element in iteration.\r\n * @param {Number} func.i index of the element in iteration\r\n *\r\n * @since 4.0.0\r\n */\n map: function map(func) {\n this.data = this.data.map(func);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Removes any duplicate elements from the array. The array is modified after this call. You\r\n * must clone the array before if you want avoid this\r\n *\r\n * @since 4.0.0\r\n */\n unique: function unique() {\n this.data = this.data.filter(function (value, index, self) {\n return self.indexOf(value) === index;\n });\n\n return this;\n },\n\n /**\r\n * @method\r\n * Add all elements into this array.\r\n *\r\n * @param {draw2d.util.ArrayList} list\r\n * @param {Boolean} [avoidDuplicates] checks whenever the new elements exists before insert if the parameter is to [true]\r\n *\r\n */\n addAll: function addAll(list, avoidDuplicates) {\n if (!(list instanceof _packages2.default.util.ArrayList)) {\n throw \"Unable to handle unknown object type in ArrayList.addAll\";\n }\n\n this.data = this.data.concat(list.data);\n if (avoidDuplicates) {\n this.unique();\n }\n return this;\n },\n\n /**\r\n * @method\r\n * You can use the Array list as Stack as well. this is the pop method to remove one element\r\n * at the end of the stack.\r\n *\r\n * @returns\r\n */\n pop: function pop() {\n return this.removeElementAt(this.data.length - 1);\n },\n\n /**\r\n * @method\r\n * Push one element at the top of the stack/array\r\n *\r\n * @param path\r\n */\n push: function push(value) {\n this.add(value);\n },\n\n /**\r\n * @method\r\n * Remove the element from the list\r\n *\r\n * @param {Object} obj the object to remove\r\n *\r\n * @return {Object} the removed object or null\r\n */\n remove: function remove(obj) {\n var index = this.indexOf(obj);\n if (index >= 0) {\n return this.removeElementAt(index);\n }\n\n return null;\n },\n\n /**\r\n * @method\r\n * Inserts an element at a given position. Existing elements will be shifted\r\n * to the right.\r\n *\r\n * @param {Object} obj the object to insert.\r\n * @param {Number} index the insert position.\r\n *\r\n */\n insertElementAt: function insertElementAt(obj, index) {\n this.data.splice(index, 0, obj);\n\n return this;\n },\n\n /**\r\n * @method\r\n * Removes an element at a specific index.\r\n *\r\n * @param {Number} index the index of the element to remove\r\n * @return {Object} the removed object\r\n */\n removeElementAt: function removeElementAt(index) {\n var element = this.data[index];\n\n this.data.splice(index, 1);\n\n return element;\n },\n\n /**\r\n * @method\r\n * removes all given elements in the ArrayList\r\n *\r\n * @param {draw2d.util.ArrayList} elements The elements to remove\r\n */\n removeAll: function removeAll(elements) {\n var _this = this;\n\n if (elements instanceof _packages2.default.util.ArrayList) {\n elements = elements.data;\n }\n\n if (Array.isArray(elements)) {\n elements.forEach(function (e) {\n _this.remove(e);\n });\n }\n\n return this;\n },\n\n /**\r\n * @method\r\n * Return the zero based index of the given element or -1 if the element\r\n * not in the list.\r\n *\r\n * @param {Object} obj the element to check\r\n *\r\n * @return {Number} the index of the element or -1\r\n */\n indexOf: function indexOf(obj) {\n return this.data.indexOf(obj);\n },\n\n /**\r\n * @method\r\n * returns true if the element is in the Vector, otherwise false.\r\n *\r\n * @param {Object} obj the object to check\r\n *\r\n * @return {Boolean}\r\n */\n contains: function contains(obj) {\n return this.indexOf(obj) !== -1;\n },\n\n /**\r\n * @method\r\n * Sorts the collection based on a field name or sort a function. See on http://www.w3schools.com/jsref/jsref_sort.asp\r\n * if you use a sort function.\r\n *\r\n * @param {String|Function} f the field name for the sorting or a sort function\r\n *\r\n * @return {draw2d.util.ArrayList} self\r\n */\n sort: function sort(f) {\n if (typeof f === \"function\") {\n this.data.sort(f);\n } else {\n this.data.sort(function (a, b) {\n if (a[f] < b[f]) return -1;\n if (a[f] > b[f]) return 1;\n return 0;\n });\n }\n return this;\n },\n\n /**\r\n * @method\r\n * Copies the contents of a Vector to another Vector returning the new Vector.\r\n *\r\n * @param {Boolean} [deep] call \"clone\" of each elements and add the clone to the new ArrayList\r\n *\r\n * @returns {draw2d.util.ArrayList} the new ArrayList\r\n */\n clone: function clone(deep) {\n var newVector = new _packages2.default.util.ArrayList();\n\n if (deep) {\n for (var i = 0; i < this.data.length; i++) {\n newVector.data.push(this.data[i].clone());\n }\n } else {\n newVector.data = this.data.slice(0);\n }\n\n return newVector;\n },\n\n /**\r\n * @method\r\n * Iterates over the list of elements, yielding each in turn to an iterator\r\n * function.\r\n * Each invocation of iterator is called with two arguments: (index, element).\r\n *\r\n * @param {Function} func the callback function to call for each element\r\n * @param {Number} func.i index of the element in iteration\r\n * @param {Object} func.value value of the element in iteration.\r\n * @param {Boolean} [reverse] optional parameter. Iterate the collection reverse if it set to <b>true</b>\r\n *\r\n */\n each: function each(func, reverse) {\n if (typeof reverse !== \"undefined\" && reverse === true) {\n for (var i = this.data.length - 1; i >= 0; i--) {\n if (func(i, this.data[i]) === false) break;\n }\n } else {\n for (var _i = 0; _i < this.data.length; _i++) {\n if (func(_i, this.data[_i]) === false) break;\n }\n }\n\n return this;\n },\n\n // overwriteElementAt() - overwrites the element with an object at the specific index.\n overwriteElementAt: function overwriteElementAt(obj, index) {\n this.data[index] = obj;\n\n return this;\n },\n\n getPersistentAttributes: function getPersistentAttributes() {\n return { data: this.data };\n },\n\n /**\r\n * @method\r\n * Read all attributes from the serialized properties and transfer them into the shape.\r\n *\r\n * @param {Object} memento\r\n * @returns\r\n */\n setPersistentAttributes: function setPersistentAttributes(memento) {\n this.data = memento.data;\n }\n\n});\n\n_packages2.default.util.ArrayList.EMPTY_LIST = new _packages2.default.util.ArrayList();\n\n/***/ }),\n\n/***/ \"./src/util/Base64.js\":\n/*!****************************!*\\\n !*** ./src/util/Base64.js ***!\n \\****************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.Base64 = {\n\n /**\r\n * Maps bytes to characters.\r\n * @type {Object}\r\n * @private\r\n */\n byteToCharMap_: null,\n\n /**\r\n * Maps characters to bytes.\r\n * @type {Object}\r\n * @private\r\n */\n charToByteMap_: null,\n\n /**\r\n * Maps bytes to websafe characters.\r\n * @type {Object}\r\n * @private\r\n */\n byteToCharMapWebSafe_: null,\n\n /**\r\n * Maps websafe characters to bytes.\r\n * @type {Object}\r\n * @private\r\n */\n charToByteMapWebSafe_: null,\n\n /**\r\n * Our default alphabet, shared between\r\n * ENCODED_VALS and ENCODED_VALS_WEBSAFE\r\n * @type {string}\r\n */\n ENCODED_VALS_BASE: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',\n\n /**\r\n * Our default alphabet. Value 64 (=) is special; it means \"nothing.\"\r\n * @type {string}\r\n */\n ENCODED_VALS: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' + '+/=',\n\n /**\r\n * Our websafe alphabet.\r\n * @type {string}\r\n */\n ENCODED_VALS_WEBSAFE: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' + '-_.',\n\n encodeByteArray: function encodeByteArray(input, opt_webSafe) {\n _packages2.default.util.Base64.init();\n\n var byteToCharMap = opt_webSafe ? _packages2.default.util.Base64.byteToCharMapWebSafe_ : _packages2.default.util.Base64.byteToCharMap_;\n\n var output = [];\n\n for (var i = 0; i < input.length; i += 3) {\n var byte1 = input[i];\n var haveByte2 = i + 1 < input.length;\n var byte2 = haveByte2 ? input[i + 1] : 0;\n var haveByte3 = i + 2 < input.length;\n var byte3 = haveByte3 ? input[i + 2] : 0;\n\n var outByte1 = byte1 >> 2;\n var outByte2 = (byte1 & 0x03) << 4 | byte2 >> 4;\n var outByte3 = (byte2 & 0x0F) << 2 | byte3 >> 6;\n var outByte4 = byte3 & 0x3F;\n\n if (!haveByte3) {\n outByte4 = 64;\n\n if (!haveByte2) {\n outByte3 = 64;\n }\n }\n\n output.push(byteToCharMap[outByte1], byteToCharMap[outByte2], byteToCharMap[outByte3], byteToCharMap[outByte4]);\n }\n\n return output.join('');\n },\n\n /**\r\n * @method\r\n * Base64-encode a string.\r\n *\r\n * @param {string} input A string to encode.\r\n * @param {boolean=} opt_webSafe If true, we should use the alternative alphabet.\r\n * @return {string} The base64 encoded string.\r\n */\n encode: function encode(input, opt_webSafe) {\n return _packages2.default.util.Base64.encodeByteArray(_packages2.default.util.Base64.stringToByteArray(input), opt_webSafe);\n },\n\n /**\r\n * @method\r\n * Base64-decode a string.\r\n *\r\n * @param {String} input to decode (length not required to be a multiple of 4).\r\n * @param {boolean=} opt_webSafe True if we should use the\r\n * alternative alphabet.\r\n * @return {Array} bytes representing the decoded value.\r\n */\n decode: function decode(input, opt_webSafe) {\n _packages2.default.util.Base64.init();\n\n var charToByteMap = opt_webSafe ? _packages2.default.util.Base64.charToByteMapWebSafe_ : _packages2.default.util.Base64.charToByteMap_;\n\n var output = [];\n\n for (var i = 0; i < input.length;) {\n var byte1 = charToByteMap[input.charAt(i++)];\n\n var haveByte2 = i < input.length;\n var byte2 = haveByte2 ? charToByteMap[input.charAt(i)] : 0;\n ++i;\n\n var haveByte3 = i < input.length;\n var byte3 = haveByte3 ? charToByteMap[input.charAt(i)] : 0;\n ++i;\n\n var haveByte4 = i < input.length;\n var byte4 = haveByte4 ? charToByteMap[input.charAt(i)] : 0;\n ++i;\n\n if (byte1 == null || byte2 == null || byte3 == null || byte4 == null) {\n throw Error();\n }\n\n var outByte1 = byte1 << 2 | byte2 >> 4;\n output.push(outByte1);\n\n if (byte3 != 64) {\n var outByte2 = byte2 << 4 & 0xF0 | byte3 >> 2;\n output.push(outByte2);\n\n if (byte4 != 64) {\n var outByte3 = byte3 << 6 & 0xC0 | byte4;\n output.push(outByte3);\n }\n }\n }\n\n return output;\n },\n\n /**\r\n * Turns a string into an array of bytes; a \"byte\" being a JS number in the\r\n * range 0-255.\r\n * @param {string} str String value to arrify.\r\n * @return {!Array.<number>} Array of numbers corresponding to the\r\n * UCS character codes of each character in str.\r\n */\n stringToByteArray: function stringToByteArray(str) {\n var output = [],\n p = 0;\n for (var i = 0; i < str.length; i++) {\n var c = str.charCodeAt(i);\n while (c > 0xff) {\n output[p++] = c & 0xff;\n c >>= 8;\n }\n output[p++] = c;\n }\n return output;\n },\n\n init: function init() {\n if (!_packages2.default.util.Base64.byteToCharMap_) {\n _packages2.default.util.Base64.byteToCharMap_ = {};\n _packages2.default.util.Base64.charToByteMap_ = {};\n _packages2.default.util.Base64.byteToCharMapWebSafe_ = {};\n _packages2.default.util.Base64.charToByteMapWebSafe_ = {};\n\n // We want quick mappings back and forth, so we precompute two maps.\n for (var i = 0; i < _packages2.default.util.Base64.ENCODED_VALS.length; i++) {\n _packages2.default.util.Base64.byteToCharMap_[i] = _packages2.default.util.Base64.ENCODED_VALS.charAt(i);\n _packages2.default.util.Base64.charToByteMap_[_packages2.default.util.Base64.byteToCharMap_[i]] = i;\n _packages2.default.util.Base64.byteToCharMapWebSafe_[i] = _packages2.default.util.Base64.ENCODED_VALS_WEBSAFE.charAt(i);\n _packages2.default.util.Base64.charToByteMapWebSafe_[_packages2.default.util.Base64.byteToCharMapWebSafe_[i]] = i;\n }\n }\n }\n};\n\n/***/ }),\n\n/***/ \"./src/util/Color.js\":\n/*!***************************!*\\\n !*** ./src/util/Color.js ***!\n \\***************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; /**\r\n * @class\r\n * Util class to handle colors in the draw2d enviroment.\r\n *\r\n * // Create a new Color with RGB values\r\n * var color = new draw2d.util.Color(127,0,0);\r\n *\r\n * // of from a hex string\r\n * var color2 = new draw2d.util.Color(\"#f00000\");\r\n *\r\n * // Create a little bit darker color\r\n * var darkerColor = color.darker(0.2); // 20% darker\r\n *\r\n * // create a optimal text color if 'color' the background color\r\n * // (best in meaning of contrast and readability)\r\n * var fontColor = color.getIdealTextColor();\r\n *\r\n */\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.Color = Class.extend({\n\n /**\r\n * @constructor\r\n * Create a new Color object\r\n *\r\n * @param {Number|String|draw2d.util.Color|Array} red\r\n * @param {Number} green\r\n * @param {Number} blue\r\n * @param {Number} [alpha]\r\n */\n init: function init(red, green, blue, alpha) {\n\n this.hashString = null;\n\n if (typeof red === \"undefined\" || red === null) {\n this.hashString = \"none\";\n } else if (red instanceof _packages2.default.util.Color) {\n if (red.hashString === \"none\") {\n this.hashString = \"none\";\n } else {\n this.red = red.red;\n this.green = red.green;\n this.blue = red.blue;\n this.alpha = red.alpha;\n }\n } else if (typeof red === \"string\") {\n if (red === \"none\") {\n this.hashString = \"none\";\n } else {\n var rgba = this.hex2rgb(red);\n this.red = rgba[0];\n this.green = rgba[1];\n this.blue = rgba[2];\n this.alpha = rgba[3];\n }\n }\n // JSON struct of {red:###, green:###, blue:### }\n else if ((typeof red === \"undefined\" ? \"undefined\" : _typeof(red)) === \"object\" && typeof red.red === \"number\") {\n this.red = red.red;\n this.green = red.green;\n this.blue = red.blue;\n this.alpha = red.alpha;\n }\n // array detection 1\n else if (red instanceof Array && red.length === 3) {\n this.red = red[0];\n this.green = red[1];\n this.blue = red[2];\n this.alpha = red[3];\n }\n // array detection 2\n else if ((typeof red === \"undefined\" ? \"undefined\" : _typeof(red)) === \"object\" && typeof red.length === \"number\" && red.length === 3) {\n this.red = red[0];\n this.green = red[1];\n this.blue = red[2];\n this.alpha = red[3];\n } else {\n this.red = parseInt(red);\n this.green = parseInt(green);\n this.blue = parseInt(blue);\n this.alpha = typeof alpha === 'undefined' ? 1 : parseFloat(alpha);\n }\n },\n\n /**\r\n * @method\r\n * Convert the color object into a HTML CSS representation\r\n * @return {String} the color in rgb(##,##,##) representation\r\n **/\n getHTMLStyle: function getHTMLStyle() {\n if (typeof this.red === \"undefined\") return \"rgba(0,0,0,0)\";\n\n return \"rgba(\" + this.red + \",\" + this.green + \",\" + this.blue + \",\" + this.alpha + \")\";\n },\n\n /**\r\n * @method\r\n * The red part of the color.\r\n *\r\n * @return {Number} the [red] part of the color.\r\n **/\n getRed: function getRed() {\n return this.red;\n },\n\n /**\r\n * @method\r\n * The green part of the color.\r\n *\r\n * @return {Number} the [green] part of the color.\r\n **/\n getGreen: function getGreen() {\n return this.green;\n },\n\n /**\r\n * @method\r\n * The blue part of the color\r\n *\r\n * @return {Number} the [blue] part of the color.\r\n **/\n getBlue: function getBlue() {\n return this.blue;\n },\n\n /**\r\n * @method\r\n * The alpha part of the color\r\n *\r\n * @return {Number} the [alpha] part of the color.\r\n **/\n getAlpha: function getAlpha() {\n return this.alpha;\n },\n\n /**\r\n * @method\r\n * Returns the ideal Text Color. Useful for font color selection by a given background color.\r\n *\r\n * @return {draw2d.util.Color} The <i>ideal</i> inverse color.\r\n **/\n getIdealTextColor: function getIdealTextColor() {\n var nThreshold = 105;\n var bgDelta = this.red * 0.299 + this.green * 0.587 + this.blue * 0.114;\n return 255 - bgDelta < nThreshold ? new _packages2.default.util.Color(0, 0, 0) : new _packages2.default.util.Color(255, 255, 255);\n },\n\n /**\r\n * return array of [r,g,b,a] from any valid color. if failed returns [0,0,0,1]\r\n *\r\n * @param hexcolor\r\n * @returns {*}\r\n */\n hex2rgb: function hex2rgb(color) {\n if (!color) {\n return [0, 0, 0, 1];\n }\n\n if (color.toLowerCase() === 'transparent') {\n return [0, 0, 0, 0];\n }\n\n if (color[0] === '#') {\n if (color.length < 7) {\n // convert #RGB and #RGBA to #RRGGBB and #RRGGBBAA\n color = '#' + color[1] + color[1] + color[2] + color[2] + color[3] + color[3] + (color.length > 4 ? color[4] + color[4] : '');\n }\n return [parseInt(color.substr(1, 2), 16), parseInt(color.substr(3, 2), 16), parseInt(color.substr(5, 2), 16), color.length > 7 ? parseInt(color.substr(7, 2), 16) / 255 : 1];\n }\n\n if (color.indexOf('rgb') === -1) {\n // convert named colors\n var temp_elem = document.body.appendChild(document.createElement('fictum')); // intentionally use unknown tag to lower chances of css rule override with !important\n var flag = 'rgb(1, 2, 3)'; // this flag tested on chrome 59, ff 53, ie9, ie10, ie11, edge 14\n temp_elem.style.color = flag;\n if (temp_elem.style.color !== flag) {\n return [0, 0, 0, 1]; // color set failed - some monstrous css rule is probably taking over the color of our object\n }\n temp_elem.style.color = color;\n\n if (temp_elem.style.color === flag || temp_elem.style.color === '') {\n return [0, 0, 0, 1]; // color parse failed\n }\n color = getComputedStyle(temp_elem).color;\n document.body.removeChild(temp_elem);\n }\n\n if (color.indexOf('rgb') === 0) {\n if (color.indexOf('rgba') === -1) {\n color += ',1'; // convert 'rgb(R,G,B)' to 'rgb(R,G,B)A' which looks awful but will pass the regxep below\n }\n return color.match(/[\\.\\d]+/g).map(function (a) {\n return +a;\n });\n }\n },\n\n /**\r\n *\r\n **/\n hex: function hex() {\n return this.int2hex(this.red) + this.int2hex(this.green) + this.int2hex(this.blue)\n // breaks raphaelJS...so don'T use it right now\n //(this.alpha * 255).toString(16).substring(0,2).toUpperCase()\n ;\n },\n\n /**\r\n * @method\r\n * Convert the color object into a HTML CSS representation\r\n * @return {String} the color in rgb(##,##,##) representation\r\n **/\n rgba: function rgba() {\n return this.getHTMLStyle();\n },\n\n /**\r\n * @method\r\n * Convert the color object into a HTML CSS representation\r\n * @return {String} the color in #RRGGBB representation\r\n **/\n hash: function hash() {\n if (this.hashString === null) {\n this.hashString = \"#\" + this.hex();\n }\n return this.hashString;\n },\n\n /**\r\n * @private\r\n */\n int2hex: function int2hex(v) {\n v = Math.round(Math.min(Math.max(0, v), 255));\n return \"0123456789ABCDEF\".charAt((v - v % 16) / 16) + \"0123456789ABCDEF\".charAt(v % 16);\n },\n\n /**\r\n * @method\r\n * Returns a darker color of the given one. The original color is unchanged.\r\n *\r\n * @param {Number} fraction Darkness fraction between [0..1].\r\n * @return{draw2d.util.Color} Darker color.\r\n */\n darker: function darker(fraction) {\n // we can't \"darker\" a undefined color. In this case we return the undefnied color itself\n //\n if (this.hashString === \"none\") return this;\n\n fraction = typeof fraction === 'undefined' ? 0.1 : fraction;\n\n var red = parseInt(Math.round(this.getRed() * (1.0 - fraction)));\n var green = parseInt(Math.round(this.getGreen() * (1.0 - fraction)));\n var blue = parseInt(Math.round(this.getBlue() * (1.0 - fraction)));\n\n if (red < 0) red = 0;else if (red > 255) red = 255;\n if (green < 0) green = 0;else if (green > 255) green = 255;\n if (blue < 0) blue = 0;else if (blue > 255) blue = 255;\n\n return new _packages2.default.util.Color(red, green, blue, this.alpha);\n },\n\n /**\r\n * @method\r\n * Make a color lighter. The original color is unchanged.\r\n *\r\n * @param {Number} fraction lighter fraction between [0..1].\r\n * @return {draw2d.util.Color} Lighter color.\r\n */\n lighter: function lighter(fraction) {\n // we can't \"lighter\" a undefined color. In this case we return the undefined color itself\n //\n if (this.hashString === \"none\") return this;\n\n fraction = typeof fraction === 'undefined' ? 0.1 : fraction;\n\n var red = parseInt(Math.round(this.getRed() * (1.0 + fraction)));\n var green = parseInt(Math.round(this.getGreen() * (1.0 + fraction)));\n var blue = parseInt(Math.round(this.getBlue() * (1.0 + fraction)));\n\n if (red < 0) red = 0;else if (red > 255) red = 255;\n if (green < 0) green = 0;else if (green > 255) green = 255;\n if (blue < 0) blue = 0;else if (blue > 255) blue = 255;\n\n return new _packages2.default.util.Color(red, green, blue, this.alpha);\n },\n\n /**\r\n * @method\r\n * Return a new color wich is faded to the given color.\r\n * @param {draw2d.util.Color} color\r\n * @param {Number} pc the fade percentage in [0..1]\r\n * @returns {draw2d.util.Color}\r\n *\r\n * @since 2.1.0\r\n */\n fadeTo: function fadeTo(color, pc) {\n\n var r = Math.floor(this.red + pc * (color.red - this.red) + .5);\n var g = Math.floor(this.green + pc * (color.green - this.green) + .5);\n var b = Math.floor(this.blue + pc * (color.blue - this.blue) + .5);\n var a = Math.floor(this.alpha + pc * (color.alpha - this.alpha) + .5);\n\n return new _packages2.default.util.Color(r, g, b, a);\n },\n\n /**\r\n * @method\r\n * Compares two color objects\r\n *\r\n * @param {draw2d.util.Color} o\r\n * @return {Boolean}\r\n **/\n equals: function equals(o) {\n if (!(o instanceof _packages2.default.util.Color)) {\n return false;\n }\n return this.rgba() === o.rgba();\n }\n\n});\n\nmodule.exports = _packages2.default.util.Color;\n\n/***/ }),\n\n/***/ \"./src/util/Debug.js\":\n/*!***************************!*\\\n !*** ./src/util/Debug.js ***!\n \\***************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/*!\r\n * JavaScript Debug - v0.4 - 6/22/2010\r\n * http://benalman.com/projects/javascript-debug-console-log/\r\n *\r\n * Copyright (c) 2010 \"Cowboy\" Ben Alman\r\n * Dual licensed under the MIT and GPL licenses.\r\n * http://benalman.com/about/license/\r\n *\r\n * With lots of help from Paul Irish!\r\n * http://paulirish.com/\r\n */\n\n// Script: JavaScript Debug: A simple wrapper for console.log\n//\n// *Version: 0.4, Last Updated: 6/22/2010*\n//\n// Tested with Internet Explorer 6-8, Firefox 3-3.6, Safari 3-4, Chrome 3-5, Opera 9.6-10.5\n//\n// Home - http://benalman.com/projects/javascript-debug-console-log/\n// GitHub - http://github.com/cowboy/javascript-debug/\n// Source - http://github.com/cowboy/javascript-debug/raw/master/ba-debug.js\n// (Minified) - http://github.com/cowboy/javascript-debug/raw/master/ba-debug.min.js (1.1kb)\n//\n// About: License\n//\n// Copyright (c) 2010 \"Cowboy\" Ben Alman,\n// Dual licensed under the MIT and GPL licenses.\n// http://benalman.com/about/license/\n//\n// About: Support and Testing\n//\n// Information about what browsers this code has been tested in.\n//\n// Browsers Tested - Internet Explorer 6-8, Firefox 3-3.6, Safari 3-4, Chrome\n// 3-5, Opera 9.6-10.5\n//\n// About: Examples\n//\n// These working examples, complete with fully commented code, illustrate a few\n// ways in which this plugin can be used.\n//\n// Examples - http://benalman.com/code/projects/javascript-debug/examples/debug/\n//\n// About: Revision History\n//\n// 0.4 - (6/22/2010) Added missing passthrough methods: exception,\n// groupCollapsed, table\n// 0.3 - (6/8/2009) Initial release\n//\n// Topic: Pass-through console methods\n//\n// assert, clear, count, dir, dirxml, exception, group, groupCollapsed,\n// groupEnd, profile, profileEnd, table, time, timeEnd, trace\n//\n// These console methods are passed through (but only if both the console and\n// the method exists), so use them without fear of reprisal. Note that these\n// methods will not be passed through if the logging level is set to 0 via\n// <debug.setLevel>.\n\nwindow.debug = function () {\n var window = this,\n\n\n // Some convenient shortcuts.\n aps = Array.prototype.slice,\n con = console,\n\n\n // Public object to be returned.\n that = {},\n callback_func,\n callback_force,\n\n\n // Default logging level, show everything.\n log_level = 9,\n\n\n // Logging methods, in \"priority order\". Not all console implementations\n // will utilize these, but they will be used in the callback passed to\n // setCallback.\n log_methods = ['error', 'warn', 'info', 'debug', 'log'],\n\n\n // Pass these methods through to the console if they exist, otherwise just\n // fail gracefully. These methods are provided for convenience.\n pass_methods = 'assert clear count dir dirxml exception group groupCollapsed groupEnd profile profileEnd table time timeEnd trace'.split(' '),\n idx = pass_methods.length,\n\n\n // Logs are stored here so that they can be recalled as necessary.\n logs = [];\n\n while (--idx >= 0) {\n (function (method) {\n\n // Generate pass-through methods. These methods will be called, if they\n // exist, as long as the logging level is non-zero.\n that[method] = function () {\n log_level !== 0 && con && con[method] && con[method].apply(con, arguments);\n };\n })(pass_methods[idx]);\n }\n\n idx = log_methods.length;\n while (--idx >= 0) {\n (function (idx, level) {\n\n // Method: debug.log\n //\n // Call the console.log method if available. Adds an entry into the logs\n // array for a callback specified via <debug.setCallback>.\n //\n // Usage:\n //\n // debug.log( object [, object, ...] ); - -\n //\n // Arguments:\n //\n // object - (Object) Any valid JavaScript object.\n\n // Method: debug.debug\n //\n // Call the console.debug method if available, otherwise call console.log.\n // Adds an entry into the logs array for a callback specified via\n // <debug.setCallback>.\n //\n // Usage:\n //\n // debug.debug( object [, object, ...] ); - -\n //\n // Arguments:\n //\n // object - (Object) Any valid JavaScript object.\n\n // Method: debug.info\n //\n // Call the console.info method if available, otherwise call console.log.\n // Adds an entry into the logs array for a callback specified via\n // <debug.setCallback>.\n //\n // Usage:\n //\n // debug.info( object [, object, ...] ); - -\n //\n // Arguments:\n //\n // object - (Object) Any valid JavaScript object.\n\n // Method: debug.warn\n //\n // Call the console.warn method if available, otherwise call console.log.\n // Adds an entry into the logs array for a callback specified via\n // <debug.setCallback>.\n //\n // Usage:\n //\n // debug.warn( object [, object, ...] ); - -\n //\n // Arguments:\n //\n // object - (Object) Any valid JavaScript object.\n\n // Method: debug.error\n //\n // Call the console.error method if available, otherwise call console.log.\n // Adds an entry into the logs array for a callback specified via\n // <debug.setCallback>.\n //\n // Usage:\n //\n // debug.error( object [, object, ...] ); - -\n //\n // Arguments:\n //\n // object - (Object) Any valid JavaScript object.\n\n that[level] = function () {\n var args = aps.call(arguments),\n log_arr = [level].concat(args);\n\n logs.push(log_arr);\n exec_callback(log_arr);\n\n if (!con || !is_level(idx)) {\n return;\n }\n\n con.firebug ? con[level].apply(window, args) : con[level] ? con[level](args) : con.log(args);\n };\n })(idx, log_methods[idx]);\n }\n\n // Execute the callback function if set.\n function exec_callback(args) {\n if (callback_func && (callback_force || !con || !con.log)) {\n callback_func.apply(window, args);\n }\n };\n\n // Method: debug.setLevel\n //\n // Set a minimum or maximum logging level for the console. Doesn't affect\n // the <debug.setCallback> callback function, but if set to 0 to disable\n // logging, <Pass-through console methods> will be disabled as well.\n //\n // Usage:\n //\n // debug.setLevel( [ level ] ) - -\n //\n // Arguments:\n //\n // level - (Number) If 0, disables logging. If negative, shows N lowest\n // priority levels of log messages. If positive, shows N highest priority\n // levels of log messages.\n //\n // Priority levels:\n //\n // log (1) < debug (2) < info (3) < warn (4) < error (5)\n\n that.setLevel = function (level) {\n log_level = typeof level === 'number' ? level : 9;\n };\n\n // Determine if the level is visible given the current log_level.\n function is_level(level) {\n return log_level > 0 ? log_level > level : log_methods.length + log_level <= level;\n };\n\n // Method: debug.setCallback\n //\n // Set a callback to be used if logging isn't possible due to console.log\n // not existing. If unlogged logs exist when callback is set, they will all\n // be logged immediately unless a limit is specified.\n //\n // Usage:\n //\n // debug.setCallback( callback [, force ] [, limit ] )\n //\n // Arguments:\n //\n // callback - (Function) The aforementioned callback function. The first\n // argument is the logging level, and all subsequent arguments are those\n // passed to the initial debug logging method.\n // force - (Boolean) If false, log to console.log if available, otherwise\n // callback. If true, log to both console.log and callback.\n // limit - (Number) If specified, number of lines to limit initial scrollback\n // to.\n\n that.setCallback = function () {\n var args = aps.call(arguments),\n max = logs.length,\n i = max;\n\n callback_func = args.shift() || null;\n callback_force = typeof args[0] === 'boolean' ? args.shift() : false;\n\n i -= typeof args[0] === 'number' ? args.shift() : max;\n\n while (i < max) {\n exec_callback(logs[i++]);\n }\n };\n\n return that;\n}();\n\n/***/ }),\n\n/***/ \"./src/util/JSONUtil.js\":\n/*!******************************!*\\\n !*** ./src/util/JSONUtil.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.JSON = {\n\n /**\r\n * @method\r\n * Given a dot deliminated string set will create an object\r\n * based on the structure of the string with the desired value\r\n *\r\n * @param {Object} data the json object to modify\r\n * @param {String} path path indicating where value should be placed\r\n * @param {Object} value the value desired to be set at the location determined by path\r\n */\n set: function set(data, path, value) {\n if (!path || path === '') {\n return;\n }\n\n var re = /[\\w-]+|\\[\\]|([^\\[[\\w]\\]]|[\"'](.*?)['\"])/g;\n // parse path on dots, and brackets\n var pathList = path.match(re);\n var parent = data;\n var parentKey = void 0;\n var grandParent = null;\n var grandParentKey = null;\n\n var addObj = function addObj(obj, key, data) {\n if (key === '[]') {\n obj.push(data);\n } else {\n obj[key] = data;\n }\n };\n\n while (pathList.length > 0) {\n parentKey = pathList.shift().replace(/[\"']/g, '');\n\n // Number, treat it as an array\n if (!isNaN(+parentKey) || parentKey === \"[]\") {\n if (parent.constructor !== Array) {\n parent = [];\n addObj(grandParent, grandParentKey, parent);\n }\n // String, treat it as a key\n } else if (typeof parentKey === \"string\") {\n if (!$.isPlainObject(parent)) {\n parent = {};\n addObj(grandParent, grandParentKey, parent);\n }\n }\n // Next\n grandParent = parent;\n grandParentKey = parentKey;\n parent = parent[parentKey];\n }\n\n addObj(grandParent, grandParentKey, value);\n },\n\n /**\r\n * @method\r\n * Returns the value defined by the path passed in\r\n *\r\n * @param {Object} data the JSON data object\r\n * @param {String} path string leading to a desired value\r\n */\n get: function get(data, path) {\n var regex = /[\\w-]+|\\[\\]|([^\\[[\\w]\\]]|[\"'](.*?)['\"])/g;\n //check if path is truthy\n if (!path) {\n return undefined;\n }\n //parse path on dots and brackets\n var paths = path.match(regex);\n //step through data object until all keys in path have been processed\n while (data !== null && paths.length > 0) {\n if (data.propertyIsEnumerable(paths[0].replace(/\"/g, ''))) {\n data = data[paths.shift().replace(/\"/g, '')];\n } else {\n return undefined;\n }\n }\n return data;\n },\n\n /**\r\n * @method\r\n * calculates the diff between the given json objects\r\n *\r\n */\n diff: function diff(obj1, obj2) {\n var result = {};\n for (var key in obj1) {\n var v1 = obj1[key];\n var v2 = obj2[key];\n if (v1 !== v2) {\n if (v1.equals) {\n if (!v1.equals(v2)) {\n result[key] = obj1[key];\n }\n } else {\n result[key] = obj1[key];\n }\n }\n }\n return result;\n },\n\n flatDiff: function flatDiff(obj1, obj2) {\n var result = {};\n for (var key in obj1) {\n if (obj1[key] !== obj2[key]) {\n result[key] = obj1[key];\n }\n }\n return result;\n },\n\n ensureDefault: function ensureDefault(json, attribute, value) {\n if (!json.hasOwnProperty(attribute)) {\n json[attribute] = value;\n }\n }\n};\n\nmodule.exports = _packages2.default.util.JSON;\n\n/***/ }),\n\n/***/ \"./src/util/Polyfill.js\":\n/*!******************************!*\\\n !*** ./src/util/Polyfill.js ***!\n \\******************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n// avoid iPad bounce effect during DragDrop\n//\ndocument.ontouchmove = function (e) {\n e.preventDefault();\n};\n\nMath.sign = function () {\n if (this < 0) {\n return -1;\n }\n return 1;\n};\n\n/***/ }),\n\n/***/ \"./src/util/SVGUtil.js\":\n/*!*****************************!*\\\n !*** ./src/util/SVGUtil.js ***!\n \\*****************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n// extending raphael with a polygon function\nRaphael.fn.polygon = function (pointString) {\n var poly = ['M'];\n var point = pointString.split(' ');\n\n for (var i = 0; i < point.length; i++) {\n var c = point[i].split(',');\n for (var j = 0; j < c.length; j++) {\n var d = parseFloat(c[j]);\n if (!isNaN(d)) poly.push(d);\n };\n if (i == 0) poly.push('L');\n }\n poly.push('Z');\n\n return this.path(poly);\n};\n\n/***/ }),\n\n/***/ \"./src/util/UUID.js\":\n/*!**************************!*\\\n !*** ./src/util/UUID.js ***!\n \\**************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\r\n * @class draw2d.util.UUID\r\n * Generates a (pseudo) UUID's\r\n *\r\n * // a UUID in the format\r\n * // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12)\r\n * var id = draw2d.util.UUID.create();\r\n *\r\n * @author Andreas Herz\r\n * @constructor\r\n * @private\r\n */\n_packages2.default.util.UUID = function () {};\n\n/**\r\n * @method\r\n * Generates a unique id.<br>\r\n * But just for the correctness: <strong>this is no Global Unique Identifier</strong>, it is just a random generator\r\n * with the output that looks like a GUID. <br>\r\n * But may be also useful.\r\n *\r\n * @returns {String} the UUID in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12)\r\n **/\n_packages2.default.util.UUID.create = function () {\n var segment = function segment() {\n return ((1 + Math.random()) * 0x10000 | 0).toString(16).substring(1);\n };\n return segment() + segment() + \"-\" + segment() + \"-\" + segment() + \"-\" + segment() + \"-\" + segment() + segment() + segment();\n};\n\nmodule.exports = _packages2.default.util.UUID;\n\n/***/ }),\n\n/***/ \"./src/util/extend.js\":\n/*!****************************!*\\\n !*** ./src/util/extend.js ***!\n \\****************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(global) {\n\n// Pass in the objects to merge as arguments.\n// For a deep extend, set the first argument to `true`.\nvar fn = function fn() {\n\n // Variables\n var extended = {};\n var deep = false;\n var i = 0;\n var length = arguments.length;\n\n // Check if a deep merge\n if (Object.prototype.toString.call(arguments[0]) === '[object Boolean]') {\n deep = arguments[0];\n i++;\n }\n\n // Merge the object into the extended object\n var merge = function merge(obj) {\n for (var prop in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, prop)) {\n // If deep merge and property is an object, merge properties\n if (deep && Object.prototype.toString.call(obj[prop]) === '[object Object]') {\n extended[prop] = extend(true, extended[prop], obj[prop]);\n } else {\n extended[prop] = obj[prop];\n }\n }\n }\n };\n\n // Loop through each object and conduct a merge\n for (; i < length; i++) {\n var obj = arguments[i];\n merge(obj);\n }\n\n return extended;\n};\nmodule.exports = fn;\nglobal.extend = fn;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n/***/ }),\n\n/***/ \"./src/util/raphael_ext.js\":\n/*!*********************************!*\\\n !*** ./src/util/raphael_ext.js ***!\n \\*********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n// hacking RaphaelJS to support groups of elements\n//\n(function () {\n Raphael.fn.group = function (f, g) {\n var enabled = document.getElementsByTagName(\"svg\").length > 0;\n if (!enabled) {\n // return a stub for VML compatibility\n return {\n add: function add() {\n // intentionally left blank\n }\n };\n }\n var i;\n this.svg = \"http://www.w3.org/2000/svg\";\n this.defs = document.getElementsByTagName(\"defs\")[f];\n this.svgcanv = document.getElementsByTagName(\"svg\")[f];\n this.group = document.createElementNS(this.svg, \"g\");\n for (i = 0; i < g.length; i++) {\n this.group.appendChild(g[i].node);\n }\n this.svgcanv.appendChild(this.group);\n this.group.translate = function (c, a) {\n this.setAttribute(\"transform\", \"translate(\" + c + \",\" + a + \") scale(\" + this.getAttr(\"scale\").x + \",\" + this.getAttr(\"scale\").y + \")\");\n };\n this.group.rotate = function (c, a, e) {\n this.setAttribute(\"transform\", \"translate(\" + this.getAttr(\"translate\").x + \",\" + this.getAttr(\"translate\").y + \") scale(\" + this.getAttr(\"scale\").x + \",\" + this.getAttr(\"scale\").y + \") rotate(\" + c + \",\" + a + \",\" + e + \")\");\n };\n this.group.scale = function (c, a) {\n this.setAttribute(\"transform\", \"scale(\" + c + \",\" + a + \") translate(\" + this.getAttr(\"translate\").x + \",\" + this.getAttr(\"translate\").y + \")\");\n };\n this.group.push = function (c) {\n this.appendChild(c.node);\n };\n this.group.getAttr = function (c) {\n this.previous = this.getAttribute(\"transform\") ? this.getAttribute(\"transform\") : \"\";\n var a = [],\n e,\n h,\n j;\n a = this.previous.split(\" \");\n for (i = 0; i < a.length; i++) {\n if (a[i].substring(0, 1) == \"t\") {\n var d = a[i],\n b = [];\n b = d.split(\"(\");\n d = b[1].substring(0, b[1].length - 1);\n b = [];\n b = d.split(\",\");\n e = b.length === 0 ? { x: 0, y: 0 } : { x: b[0], y: b[1] };\n } else {\n if (a[i].substring(0, 1) === \"r\") {\n d = a[i];\n b = d.split(\"(\");\n d = b[1].substring(0, b[1].length - 1);\n b = d.split(\",\");\n h = b.length === 0 ? { x: 0, y: 0, z: 0 } : { x: b[0], y: b[1], z: b[2] };\n } else {\n if (a[i].substring(0, 1) === \"s\") {\n d = a[i];\n b = d.split(\"(\");\n d = b[1].substring(0, b[1].length - 1);\n b = d.split(\",\");\n j = b.length === 0 ? { x: 1, y: 1 } : { x: b[0], y: b[1] };\n }\n }\n }\n }\n if (typeof e === \"undefined\") {\n e = { x: 0, y: 0 };\n }\n if (typeof h === \"undefined\") {\n h = { x: 0, y: 0, z: 0 };\n }\n if (typeof j === \"undefined\") {\n j = { x: 1, y: 1 };\n }\n\n if (c == \"translate\") {\n var k = e;\n } else {\n if (c == \"rotate\") {\n k = h;\n } else {\n if (c == \"scale\") {\n k = j;\n }\n }\n }\n return k;\n };\n this.group.copy = function (el) {\n this.copy = el.node.cloneNode(true);\n this.appendChild(this.copy);\n };\n return this.group;\n };\n})();\n\n/**\r\n * adding support method to check if the node is already visible\r\n **/\n(function () {\n Raphael.el.isVisible = function () {\n return this.node.style.display !== \"none\";\n };\n})();\n\n/***/ }),\n\n/***/ \"./src/util/spline/BezierSpline.js\":\n/*!*****************************************!*\\\n !*** ./src/util/spline/BezierSpline.js ***!\n \\*****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.spline.BezierSpline = _packages2.default.util.spline.Spline.extend({\n NAME: \"draw2d.util.spline.BezierSpline\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * Create a spline based on the given control points.\r\n * The generated curve starts in the first control point and ends\r\n * in the last control point.\r\n *\r\n * @param {Array} controlPoints Control points of spline (x0,y0,z0,x1,y1,z1,...).\r\n * @param {Number} parts Number of parts to divide each leg into.\r\n *\r\n * @returns {Array} the new generated array with new draw2d.geo.Point\r\n */\n generate: function generate(controlPoints, parts) {\n var n = controlPoints.getSize();\n var spline = new _packages2.default.util.ArrayList();\n\n spline.add(this.p(0, 0, controlPoints));\n\n for (var i = 0; i < n - 3; i += 3) {\n for (var j = 1; j <= parts; j++) {\n spline.add(this.p(i, j / parts, controlPoints));\n }\n }\n\n // spline.add(controlPoints.get(controlPoints.getSize()-1));\n\n return spline;\n },\n\n p: function p(i, t, cp) {\n var x = 0.0;\n var y = 0.0;\n\n var k = i;\n for (var j = 0; j <= 3; j++) {\n var b = this.blend(j, t);\n var p = cp.get(k++);\n x += b * p.x;\n y += b * p.y;\n }\n\n return new _packages2.default.geo.Point(x, y);\n },\n\n blend: function blend(i, t) {\n if (i == 0) return (1 - t) * (1 - t) * (1 - t);else if (i == 1) return 3 * t * (1 - t) * (1 - t);else if (i == 2) return 3 * t * t * (1 - t);else return t * t * t;\n }\n}); /**\r\n * @class draw2d.util.spline.BezierSpline\r\n *\r\n * A bezier spline object.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.util.spline.Spline\r\n */\n\n/***/ }),\n\n/***/ \"./src/util/spline/CatmullRomSpline.js\":\n/*!*********************************************!*\\\n !*** ./src/util/spline/CatmullRomSpline.js ***!\n \\*********************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.spline.CatmullRomSpline = _packages2.default.util.spline.CubicSpline.extend({\n NAME: \"draw2d.util.spline.CatmullRomSpline\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this._super();\n },\n\n blend: function blend(i, t) {\n if (i == -2) return ((-t + 2) * t - 1) * t / 2;else if (i == -1) return ((3 * t - 5) * t * t + 2) / 2;else if (i == 0) return ((-3 * t + 4) * t + 1) * t / 2;else return (t - 1) * t * t / 2;\n }\n\n}); /**\r\n * @class draw2d.util.spline.CatmullRomSpline\r\n *\r\n * A catmull-rom spline object.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.util.spline.CubicSpline\r\n */\n\n/***/ }),\n\n/***/ \"./src/util/spline/CubicSpline.js\":\n/*!****************************************!*\\\n !*** ./src/util/spline/CubicSpline.js ***!\n \\****************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.spline.CubicSpline = _packages2.default.util.spline.Spline.extend({\n NAME: \"draw2d.util.spline.CubicSpline\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {\n this._super();\n },\n\n /**\r\n * Create a spline based on the given control points.\r\n * The generated curve starts in the first control point and ends\r\n * in the last control point.\r\n *\r\n * @param {Array} controlPoints Control points of spline (x0,y0,z0,x1,y1,z1,...).\r\n * @param {Number} parts Number of parts to divide each leg into.\r\n *\r\n * @returns {Array} the new generated array with new draw2d.geo.Point\r\n */\n generate: function generate(controlPoints, parts) {\n // Endpoints are added twice to get them include in the\n // generated array\n var cp = new _packages2.default.util.ArrayList();\n cp.add(controlPoints.get(0));\n cp.addAll(controlPoints);\n cp.add(controlPoints.get(controlPoints.getSize() - 1));\n\n var n = cp.getSize();\n var spline = new _packages2.default.util.ArrayList();\n spline.add(controlPoints.get(0));\n spline.add(this.p(1, 0, cp));\n\n for (var i = 1; i < n - 2; i++) {\n for (var j = 1; j <= parts; j++) {\n spline.add(this.p(i, j / parts, cp));\n }\n }\n spline.add(controlPoints.get(controlPoints.getSize() - 1));\n\n return spline;\n },\n\n p: function p(i, t, cp) {\n var x = 0.0;\n var y = 0.0;\n\n var k = i - 1;\n for (var j = -2; j <= 1; j++) {\n var b = this.blend(j, t);\n var p = cp.get(k++);\n x += b * p.x;\n y += b * p.y;\n }\n\n return new _packages2.default.geo.Point(x, y);\n },\n\n blend: function blend(i, t) {\n if (i === -2) return (((-t + 3) * t - 3) * t + 1) / 6;else if (i === -1) return ((3 * t - 6) * t * t + 4) / 6;else if (i === 0) return (((-3 * t + 3) * t + 3) * t + 1) / 6;\n\n return t * t * t / 6;\n }\n\n}); /**\r\n * @class draw2d.util.spline.CubicSpline\r\n *\r\n * A cubic spline object.\r\n *\r\n * @inheritable\r\n * @author Andreas Herz\r\n *\r\n * @extends draw2d.util.spline.Spline\r\n */\n\n/***/ }),\n\n/***/ \"./src/util/spline/Spline.js\":\n/*!***********************************!*\\\n !*** ./src/util/spline/Spline.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _packages = __webpack_require__(/*! ../../packages */ \"./src/packages.js\");\n\nvar _packages2 = _interopRequireDefault(_packages);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_packages2.default.util.spline.Spline = Class.extend({\n\n NAME: \"draw2d.util.spline.Spline\",\n\n /**\r\n * @constructor\r\n */\n init: function init() {},\n\n /**\r\n * Create a spline based on the given control points.\r\n * The generated curve starts in the first control point and ends\r\n * in the last control point.\r\n *\r\n * @param {Array} controlPoints Control points of spline (x0,y0,z0,x1,y1,z1,...).\r\n * @param {Number} parts Number of parts to divide each leg into.\r\n **/\n generate: function generate(controlPoints, parts) {\n throw \"inherit classes must implement the method 'draw2d.util.spline.Spline.generate()'\";\n }\n\n});\n/**\r\n * @class draw2d.util.spline.Spline\r\n *\r\n * An abstract class defining a general spline object.\r\n */\n\n/***/ })\n\n/******/ });\n});\n//# sourceMappingURL=draw2d.js.map"],"sourceRoot":""} \ No newline at end of file diff --git a/lib/App.js b/lib/App.js index 56f5f18..2cfa8a3 100644 --- a/lib/App.js +++ b/lib/App.js @@ -3,7 +3,7 @@ import elements from '../lib/elements' export default function createApp( canvasContainerId, width, height ) { const canvas = new draw2d.Canvas( canvasContainerId, width, height ) - + canvas.setScrollArea('#'+canvasContainerId) return { canvas, elements, diff --git a/lib/demo.ejs b/lib/demo.ejs index 075c447..cc330a5 100644 --- a/lib/demo.ejs +++ b/lib/demo.ejs @@ -12,16 +12,20 @@ background-color: #eee; margin: 0; padding: 0; + overflow: hidden; } .quickMock__toolbar { border-bottom: 1px solid grey; padding: 16px; + height: 40px; } .quickMock__canvas { width: 1000px; height: 1000px; + position: absolute; + overflow: scroll; } </style> </head> @@ -31,12 +35,14 @@ <script type="text/javascript"> window.onload = function () { const { canvas, elements, draw2d } = LibQMock.createApp('canvas', 1000, 1000) + const win = elements.createWindow({ title: "I'm window", width: 400, height: 400 }) const win2 = elements.createWindow({ title: "I'm inside window", width: 200, height: 200 }) canvas.add(win2, 200, 200) canvas.add(win, 100, 100) canvas.add(new draw2d.shape.basic.Label({ text: "I'm inside inner window", bgColor: 'grey'}), 230, 230) + window.addEventListener('keyup', (e) => { switch(e.key) { case 'y':