diff --git a/Photopea-git.DJP b/Photopea-git.DJP new file mode 100644 index 0000000..b17f763 --- /dev/null +++ b/Photopea-git.DJP @@ -0,0 +1,78 @@ + + + 1.0 + 1617847170074 + + Photopea-git + 71 + 500 + true + https://www.photopea.com/ + + 0 + 3 + true + C:\Users\School\Downloads\Git Repos\Photopea-Offline + true + + + -1 + https://www.photopea.com/ + .*photopea.com + .* + https://www.photopea.com/code/FNTS.js + https://github.com/photopea/photopea/issues + https://fonts.googleapis.com/css?family=Open+Sans:400%2C400i%2C700%2C700i + https://www.photopea.com/promo/icon512.png + https://www.reddit.com/r/photopea/ + https://www.photopea.com/manifest.json + https://www.photopea.com/ads.js + https://www.photopea.com/code/external/ext.js + https://blog.photopea.com/introduction.html + https://chrome.google.com/webstore/detail/fmophgdjdipcbfjiopifpngdjmemonko + https://www.photopea.com/code/DBS.js + https://www.photopea.com/promo/thumb256.png + https://www.photopea.com/code/PIMG.js + https://www.photopea.com/g;m.parentNode.insertBefore(a%2Cm) + https://www.photopea.com/img/lrs/eye.png + https://www.photopea.com/code/pp.js + https://www.facebook.com/photopea/ + https://www.photopea.com/ + https://www.photopea.com/code/LNG2.js + https://www.photopea.com/style/all.css + https://apis.google.com/js/client.js + https://www.photopea.com/rsrc/fonts/fonts.png + false + false + + + -1 + + + HttpRetrieverConfiguration + + 2 + true + + false + + + false + + + + Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1944.0 Safari/537.36 + + + + JobManagerConfiguration + + true + false + + + + 10 + + + diff --git a/blog.photopea.com/color-fonts-in-photopea.html b/blog.photopea.com/color-fonts-in-photopea.html deleted file mode 100644 index 529a6d4..0000000 --- a/blog.photopea.com/color-fonts-in-photopea.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - Color Fonts in Photopea - - - - - - - -
-
-
- -
- January 19, 2018 -

Color Fonts in Photopea

-
- -

Starting today, Photopea supports color fonts!

- - -

We imagine a font as a set of shapes. The font gives each logical character some graphic representation. Text editors let us choose the color of our text, i.e. set the solid color to one or more characters. The shape of a character may be very complex, but we are still restricted to a single color for the whole character.

- -

The new standard for Color Fonts allows using multiple colors inside one character (more details at ColorFonts.wtf). There are already many fonts in this format. They can be used in Photoshop, Pixelmator, Sketch and other commercial programs. Starting today, you can load and use such fonts in Photopea. PP is probably the first free editor having this capability.

- -

Try Color Fonts in Photopea Now!

- -

All our effort is available to the public in our open-source library Typr.js.

- - - - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/compress-textures-with-photopea.html b/blog.photopea.com/compress-textures-with-photopea.html deleted file mode 100644 index 9de02e1..0000000 --- a/blog.photopea.com/compress-textures-with-photopea.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - Compress textures with Photopea - - - - - - - -
-
-
- -
- November 19, 2017 -

Compress textures with Photopea

-
- -

Today, we are adding a new feature into Photopea: the support for DDS textures.

- - -

Modern video games are accelerated with technologies such as OpenGL, DirectX or Vulkan. The view of the game is rendered "in parallel" by hundreds of small processing units. Each unit may need to access a specific part (pixel) of some texture (e.g. the bottom left pixel).

- -

In modern image formats (such as PNG or JPG), it is not possible to view a specific part of the image. We must decompress the whole image first. Thus, JPG and PNG files can not be directly used with OpenGL. But with many large textures, some kind of texture compression would be really handy.

- - - -

In past years, new techniques have been developed (such as S3TC), which can make textures even eight times smaller (than uncompressed), while still appropriate for OpenGL (easy to access by processing units). The image is divided into small parts: 4x4 pixels. Each such part is compressed independently. - When a processing unit needs to read some pixel, we first check, in which 4x4 part the pixel is located. Then, we decompress that part (all 16 pixels), read the pixel in concern, and throw away the information about other 15 pixels.

- -

Textures, compressed this way, are usually stored in DDS or similar files. Starting today, Photopea can open these DDS files. It can also export textures in DDS format using File - Export - DDS. Try to download this DDS file and open it in Photopea!

- -

This is a next step in our journey to make Photopea open any image format. We released our compression methods in an open-source library UTEX.js. We believe it can have many applications besides Phtopea editor.

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/creating-photopea.html b/blog.photopea.com/creating-photopea.html deleted file mode 100644 index 1823286..0000000 --- a/blog.photopea.com/creating-photopea.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - Creating Photopea - - - - - - - -
-
-
- -
- December 14, 2017 -

Creating Photopea

-
- -

Photopea is an advanced image editor, which evolved for more than four years. In terms of complexity, it can be placed next to Adobe Photoshop or GNU GIMP.

- - - -

It was built around three ideas: make advanced editing accessible to everyone (in terms of cost and device requirements), remove borders between programs (support all existing file formats instead of inventing a new format) and make designers less dependent on their software (if it suddenly stops working, you should still have a chance to use your files somehow).

- - - -

Now, an the end of 2017, there is a web-based editor Photopea, that runs on every device. It has an excellent support for PSD and Sketch files. It can be used by anybody for free and has been visited by more than 2.5 millions of people, who spent 120 000 hours using it.

- - -

The Development

- -

My name is Ivan Kutskir and I am the only developer of Photopea. I am 27 years old graduate of the Charles University in Prague. I live in Prague, Czech Republic, but I was born in Ukraine.

- - - -

I did things such as programming, creating icons for tools, or writing all posts on this blog. I even designed the logo. Working on PP was my hobby and I truly enjoyed it (most of the time).

- -

At the beginning, I had no hopes of making anything useful, I was just playing around. The idea of creating an advanced image editor on my own seemed stupid, and making it a webapp seemed like a complete joke.

- -

After some time, my toy editor started to become more and more powerful. The response from users was very positive, so I decided to keep working on it as long as I can. I have solved 400 bugs and feature requests from users. I also produced several libraries, that are free to use for everybody (open-source under the MIT licence).

- -

The Future

- -

Photopea already offers advanced image editing tools and can even replace commercial editors to a large extent. - It is also a platform, which allows adding new state-of-the-art features much faster than the competition. When somebody suggests a new kick-ass feature, it can appear in Photopea the next day. All users always use the latest version of the software.

- -

I don't plan to keep doing everything myself. I want to create a team of developers as soon as it is possible. I believe we can fully catch up with our competitors and even get beyond. We will keep moving towards the most advanced and the most accessible image editor in the world.

- -

You can hep me achieve it by using Photopea, recommending it to your friends, making tutorials, or just sharing the info on social networks (many of you already do). Follow us on Facebook or Twitter.

- - Thank You,
Ivan
- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/even-better-png-minification.html b/blog.photopea.com/even-better-png-minification.html deleted file mode 100644 index 42012cc..0000000 --- a/blog.photopea.com/even-better-png-minification.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - Even better PNG minification - - - - - - - -
-
-
- -
- November 22, 2017 -

Even better PNG minification

-
- -

We introduced a PNG minifier inside Photopea half a year ago. - Today, we are glad to announce, that it is even better!

- - -

The previous minifier was fast and generated really small files, while keeping a decent quality. But it had problems in some cases, e.g. - when there were large gradients.

- -

We improved our PNG minifier by implementing a completely different quantization algorithm, based on k-D trees. It generates much better palettes and it is also 6x faster than the previous algorithm.

- -

In the following example, we wanted to make an original PNG (18 kB - the first image) four times smaller. You can see an output of an old minifier, and an output of a new minifier, which looks significantly better.

- - - - - - - - - - - - - - - -
Original - 18.7 kBOld minifier - 4.8 kBNew minifier - 4.8 kB
- -

Our new minifier is already available in Photopea. It is also available in our open-source library UPNG.js and at upng.Photopea.com.

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/gifs/nyanCat.gif b/blog.photopea.com/gifs/nyanCat.gif deleted file mode 100644 index c66c236..0000000 Binary files a/blog.photopea.com/gifs/nyanCat.gif and /dev/null differ diff --git a/blog.photopea.com/gifs/nyanCat.png b/blog.photopea.com/gifs/nyanCat.png deleted file mode 100644 index 26d86b0..0000000 Binary files a/blog.photopea.com/gifs/nyanCat.png and /dev/null differ diff --git a/blog.photopea.com/gifs/nyanCat_pp.gif b/blog.photopea.com/gifs/nyanCat_pp.gif deleted file mode 100644 index e25f208..0000000 Binary files a/blog.photopea.com/gifs/nyanCat_pp.gif and /dev/null differ diff --git a/blog.photopea.com/index.html b/blog.photopea.com/index.html deleted file mode 100644 index 2b9ff57..0000000 --- a/blog.photopea.com/index.html +++ /dev/null @@ -1,352 +0,0 @@ - - - - Photopea Blog - - - - - - - -
-
-
- -
- January 12, 2021 - Photopea 5.0 – open Illustrator files! -

A new release of Photopea is here! It has 98 893 lines of code. Play with it at the main site.

- -
- -
- August 24, 2020 - Photopea 4.9 – New tools and formats! -

A new release of Photopea is here! It has 93 064 lines of code. Play with it at the main site.

- -
- -
- June 11, 2020 - Photopea 4.8 – Shadows/Highlights -

A new release of Photopea is here! It has 91 049 lines of code. Play with it at the main site.

- -
- -
- March 1, 2020 - Photopea 4.7 – Puppet Warp -

A new release of Photopea is here! It has 87 368 lines of code. Play with it at the main site.

- -
- -
- January 27, 2020 - Photopea 4.6 – Open Figma Files! -

New release of Photopea is here! It has 84 837 lines of code. Play with it at the main site.

- -
- -
- November 6, 2019 - Photopea 4.5 – Smarter Selections! -

New release of Photopea is here! It has 82 676 lines of code. Play with it at the main site.

- -
- -
- October 13, 2019 - Photopea 4.4 – Text on a Curve and more! -

New release of Photopea is here! It has 81 140 lines of code. Play with it at the main site.

- -
- -
- July 2, 2019 - Photopea 4.3 – Slices and more! - New release of Photopea is here! It has 76 553 lines of code. Play with it at the main site. - -
- -
- May 3, 2019 - Photopea 4.2 – try Local Storage! -

New release of Photopea is here! It has 74 109 lines of code. Play with it at the main site.

-
- -
- February 26, 2019 - Photopea 4.1 – Actions and new Filters! -

New release of Photopea is here! It has 72 317 lines of code. Play with it at the main site.

-
- -
- January 4, 2019 - Photopea 4.0 – NEF, CR2 and ARW support! -

New release of Photopea is here! It has 68 161 lines of code. Play with it at the main site.

-
- -
- December 4, 2018 - Photopea 3.9 – Simple Templates! -

New release of Photopea is here! It has 66 263 lines of code. Play with it at the main site.

-
- -
- October 21, 2018 - Photopea 3.8 – Live Shapes and new filters! -

New release of Photopea is here! It has 64 545 lines of code. Play with it at the main site.

-
- -
- September 26, 2018 - Photopea 3.7 – WMF and EMF support -

New release of Photopea is here! It has 63 342 lines of code. Play with it at the main site.

-
- -
- August 13, 2018 - Photopea 3.6 – Edit presets -

New release of Photopea is here! It has 62 371 lines of code. Play with it at the main site.

-
- -
- June 14, 2018 - Photopea 3.5 – XD support -

New release of Photopea is here! It has 59 924 lines of code. Play with it at the main site.

-
- -
- April 30, 2018 - Photopea 3.4 – Refine Edges -

New release of Photopea is here! It has 57 722 lines of code. Play with it at the main site.

-
- -
- February 22, 2018 - Vectorize bitmaps in Photopea! -

We just launched a new feature: bitmap to vector conversion. See how it works!

-
- -
- February 3, 2018 - Photopea 3.3: PDF import and export -

New release of Photopea is here! It has 53 249 lines of code. Play with it at the main site.

-
- -
- January 19, 2018 - Color Fonts in Photopea -

Starting today, Photopea supports color fonts!

-
- -
- December 16, 2017 - Photopea 3.2: Advanced selecting -

New release of Photopea is here! It has 52 146 lines of code. Play with it at the main site.

-
- -
- December 14, 2017 - Creating Photopea -

Photopea is an advanced image editor, which evolved for more than four years. In terms of complexity, it can be placed next to Adobe Photoshop or GNU GIMP.

- -
- -
- November 22, 2017 - Even better PNG minification -

We introduced a PNG minifier inside Photopea half a year ago. - Today, we are glad to announce, that it is even better!

-
- -
- November 19, 2017 - Compress textures with Photopea -

Today, we are adding a new feature into Photopea: the support for DDS textures.

-
- -
- October 8, 2017 - RAW support in Photopea -

Today, we are adding a new feature into Photopea: the support for RAW images.

-
- -
- September 26, 2017 - Photopea 3.1 brings Aniamtions! -

New release of Photopea is here! It has 48 384 lines of code. Play with it at the main site.

-
- -
- August 14, 2017 - Photopea 3.0: SVG support -

New release of Photopea is here with Scripting and a better support for Sketch files! It has 47 362 lines of code. Play with it at the main site.

-
- -
- July 23, 2017 - Photopea 2.9: Scripts are here! -

New release of Photopea is here with Scripting and a better support for Sketch files! It has 45 814 lines of code. Play with it at the main site.

-
- -
- July 6, 2017 - Photopea 2.8 with more text options! -

New release of Photopea is here with vector editing capabilities! It has 44 779 lines of code. Play with it at the main site.

-
- -
- June 1, 2017 - Photopea 2.7 with vector editing! -

New release of Photopea is here with vector editing capabilities! It has 43 123 lines of code. Play with it at the main site.

-
- -
- May 9, 2017 - PNG minifier inside Photopea -

We have added a new feature to Photopea, which can significantly minify PNG images.

-
- -
- April 25, 2017 - Photopea 2.6 can open Sketch! -

New release of Photopea is out! It has 40 722 lines of code. Play with it at the main site.

-
- -
- March 23, 2017 - Photopea 2.5 -

New release of Photopea is out! It has 38 857 lines of code. Play with it at the main site.

-
- -
- March 2, 2017 - Photopea 2.4 -

New release of Photopea is out! It has 38 810 lines of code. Play with it at the main site.

-
- -
- February 5, 2017 - Photopea 2.3 – six new tools! -

New release of Photopea is out! It has 37 400 lines of code. Play with it at the main site.

-
- -
- January 25, 2017 - Patterns and Fill Layers -

In this little update, we present the full support for Patterns and Fill Layers.

-
- -
- January 16, 2017 - Photopea 2.2 -

New release of Photopea is out! It has 36 906 lines of code. Play with it at the main site.

-
- -
- September 20, 2016 - Surface Blur and Median -

Today, Photopea gets two new professional filters: Surface Blur filter and Median filter! Moreover, Photopea performs them much faster, than Photoshop and GIMP do, as you can see in the last section. See it in action at the main site. Our images come from Shell And Slate.

-
- -
- September 17, 2016 - Photopea Premium -

Starting today, you can upgrade your account to a Premium account. It does not give you any extra features, but it helps us improve Photopea for you.

-
- -
- September 9, 2016 - Photopea 2.1 -

New release of Photopea is out! It has 34 982 lines of code. Play with it at the main site.

-
- -
- August 24, 2016 - Photopea 2.0 -

New release of Photopea is out! It has 33 593 lines of code. Play with it at the main site.

-
- -
- August 3, 2016 - Photopea 1.9 -

New release of Photopea is out! It has 32 156 lines of code. Play with it at the main site.

-
- -
- June 28, 2016 - Photopea 1.8 -

New release of Photopea is out! It has 30 533 lines of code. Play with it at the main site.

-
- -
- May 2, 2016 - Photopea 1.7 -

New release of Photopea is out! It has 32 200 lines of code. Play with it at the main site.

-
- -
- March 31, 2016 - Photopea 1.6 meets Google Drive -

New release of Photopea is out! It has 31 595 lines of code. Play with it at the main site.

-
- -
- February 21, 2016 - Photopea 1.5 -

New release of Photopea is out! It has 31 023 lines of code. Play with it at the main site.

-
- -
- November 19, 2015 - Photopea 1.4 -

New release of Photopea is out! It has 29 970 lines of code. Play with it at the main site.

-
- -
- August 26, 2015 - Photopea 1.3 -

New release of Photopea is out! It has 27 587 lines of code. Play with it at the main site.

-
- -
- July 26, 2015 - Photopea 1.2 -

New release of Photopea is out! It has 26 383 lines of code. Play with it at the main site.

-
- -
- February 27, 2015 - Photopea 1.1 -

New release of Photopea is out! It has 24 163 lines of code. Play with it at the main site.

-
- - -
-
- - -
- - \ No newline at end of file diff --git a/blog.photopea.com/introduction.html b/blog.photopea.com/introduction.html deleted file mode 100644 index ff05f73..0000000 --- a/blog.photopea.com/introduction.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - Introduction - - - - - - - -
-
-
- -
- September 14, 2013 -

Introduction

-
- -

What is Photo Pea, why it was made, and what should it be used for.

- - - -

A little story

- -

- In September 2012, I had two courses of computer graphics behind me and had a lot of spare time. - So I got an idea to make a simple web-based photo editor. I was working on it for 3 months in 2012 and 2 months during this summer, and I really enjoyed it! :) - I learned many new things and realised, that it is not going to be as easy as I expected. -

- -

Just another photo editor?

- -

- Modern photo editors (GNU Gimp, Adobe Photoshop, Zoner Photo Studio) are usually native apps, which have to be downloaded and installed on the device. - It takes pretty long time to turn them on and off. It may bother you, e.g. when you just want to resize a photo. - Adobe Photoshop, which is very often used by many professionals, is also quite expensive. -

-

- Because photo editors are native apps, it is hard to find any good editor for some minority operating systems. - Some users may even buy some specific operating system just to be able to run the photo editor. - Photo Pea should remove all these problems. -

- -

Main features of Photo Pea

- -

Photo Pea should be an advanced editor, so it can be used by professionals. It must have:

- -
    -
  • Layers - to split images into several parts
  • -
  • Layer masks - just generally useful
  • -
  • Blend modes - specifying, how layers "combine" with each other
  • -
  • Brush - there must be a way to change the color of pixels
  • -
  • Selections - choosing, which pixels of layer you want to edit
  • -
  • Procedural adjustments - changing brightness, hue, saturation, convolutions (blur, sharpening ...) etc.
  • -
- -

File formats

- -

I wanted Photo Pea to cooperate with currently used programs and implement their formats. I decided to implement the parser for PSD and XCF.

- -

Well, you know the goals! Follow this blog to see how am I doing :)

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/merry-christmas.html b/blog.photopea.com/merry-christmas.html deleted file mode 100644 index 0750a36..0000000 --- a/blog.photopea.com/merry-christmas.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - Merry Christmas! - - - - - - - -
-
-
- -
- December 24, 2013 -

Merry Christmas!

-
- -

Merry Christmas and Happy New Year to all Photo Pea users and fans!

- -

I am not releasing a new version of Photopea this month, since I am currently too busy with my exams at a college. But new release will be here in February and you will get your Christmas presents (new features) a month later :) .

- -

If I will be able to keep my tempo, Photopea may evolve into pretty decent tool during the year 2014. Wish me luck!

- -

Merry Christmas and Happy New Year 2014!

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/page/2 b/blog.photopea.com/page/2 deleted file mode 100644 index c3fb2b4..0000000 --- a/blog.photopea.com/page/2 +++ /dev/null @@ -1,127 +0,0 @@ - - - - Photopea Blog - - - - - - - -
-
-
- -
- December 31, 2014 - Photopea 1.0 -

New release of Photopea is out! It has 22 931 lines of code. Play with it at the main site.

-
- -
- November 30, 2014 - Photopea API -

Connect your webapps and services with Photopea using our first API.

-
- -
- October 26, 2014 - Photopea 0.9 -

The ninth release of Photopea is out! It has 20 942 lines of code. Play with it at the main site.

-
- -
- June 29, 2014 - Will it work? -

When creating a webapp or webpage, you have a very important dilemma.

-
- -
- May 27, 2014 - Photopea 0.8 -

The eighth release of Photopea is out! It has 16 689 lines of code. Play with it at the main site.

-
- -
- April 20, 2014 - Photopea 0.7 -

The seventh release of Photopea is out! It has 15 984 lines of code. Play with it at the main site.

-
- -
- March 27, 2014 - Photopea 0.6 -

The sixth release of Photopea is out! It has 13 756 lines of code. Play with it at the main site.

-
- -
- February 28, 2014 - Photopea 0.5 -

The fifth release of Photopea is out! It has 12 551 lines of code. Play with it at the main site.

-
- -
- December 24, 2013 - Merry Christmas! -

Merry Christmas and Happy New Year to all Photo Pea users and fans!

-
- -
- November 21, 2013 - Photo Pea 0.4 -

The fourth release of Photo Pea is out! It has 10 988 lines of code. Play with it at the main site.

-
- -
- October 27, 2013 - Photo Pea 0.3 -

The third release of Photo Pea is out! It has 9 039 lines of code. Play with it at the main site.

-
- -
- September 25, 2013 - Photo Pea 0.2 -

The second release of Photo Pea is out! It has 6 982 lines of code. Play with it at the main site.

-
- -
- September 14, 2013 - Photo Pea 0.1 -

Description of the first Photo Pea release. Check it out at the main site.

-
- -
- September 14, 2013 - Introduction -

What is Photo Pea, why it was made, and what should it be used for.

- -
- - -
-
- - -
- - \ No newline at end of file diff --git a/blog.photopea.com/patterns-and-fill-layers.html b/blog.photopea.com/patterns-and-fill-layers.html deleted file mode 100644 index 7809c1c..0000000 --- a/blog.photopea.com/patterns-and-fill-layers.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - Patterns and Fill Layers - - - - - - - -
-
-
- -
- January 25, 2017 -

Patterns and Fill Layers

-
- -

In this little update, we present the full support for Patterns and Fill Layers.

- - -

Patterns

- -

Patterns are an important part of every image editor. In PSD files, patterns can be used either in Pattern Fill Layers, or in Layer Styles - Pattern overlay.

- -

Since this release, Photopea contains a Pattern selection button, which is present in properties of a Fill Layer, or in properties of a Pattern Overlay. When you start Photopea, several basic patterns are loaded. You can also open your own patterns (using File - Open or just by dragging and dropping them into Photopea). Patterns should be in a .PAT format, which is the same as for Adobe Photoshop (you can find lots of free patterns on the internet).

- - PattButton - -

Fill Layers

- -

PSD files may contain so-called Fill Layers, their content is generated automatically. Fill layer can contain either a Solid Color, a Gradient or a Pattern (with additional parameters such as the size of the pattern, the angle of the gradient, etc.). You can not draw anything into fill layers, but they may have raster or vector masks attached.

- -

Since this release, you can create new Fill Layers using Layer - New Fill Layer. You can also edit the parameters of an existing Fill Layer by double-clicking the thumbnail of the layer.

- - GradientFill - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photo-pea-0-1.html b/blog.photopea.com/photo-pea-0-1.html deleted file mode 100644 index 3b9d18a..0000000 --- a/blog.photopea.com/photo-pea-0-1.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - Photo Pea 0.1 - - - - - - - -
-
-
- -
- September 14, 2013 -

Photo Pea 0.1

-
- -

Description of the first Photo Pea release. Check it out at the main site.

- -

Features

- -
    -
  • Parsing and basic rendering of PSD files (see below)
  • -
  • Zoom tool
  • -
  • Hand tool (to move the canvas)
  • -
  • Move tool (for moving layers, masks etc)
  • -
  • History panel + navigation Backward / Forward
  • -
- -

PSD format

- -

The first release of Photo Pea contains PSD parser. PSD format comes from Adobe Photoshop and is well documented at Adobe's webpage. My parser is very simple, it parses only 8-bit RGBA image channels (no grayscale, HDR etc.). It also parses several layer properties, raster and vector masks, folder structure and layer effects.

- -

After making such parser, my next goal was to "draw" the image. User will probably want his project to look exactly like in Photoshop. - And there was the first big problem. Adobe says, how to get each integer, float and string out of their file, but they don't say how to interpret all that data. Some properties are obvious (layer dimensions, position, opacity), but others are not.

- -

When making a rasterizer, the first necessary thing was to implement blending with different blend modes. Fortunatelly, blend modes are used across differnt applications. In my implementation, blending should work exactly the same, as in Adobe Photoshop, and probably many other programs.

- -

Another hard and still unfinished feature are layer effects. I had no clue, how they work in Adobe Photoshop, so I could only guess. Usually, it was some combination of blurying, colorizing and combining with current layer. But - for example - Bevel and Emboss effect - I still have no idea how it works. If you know, how Bevel and Emboss effect work, let me know in comments below.

- -

Speed

- -

All current Photo Pea code is Javascript and is executed by browser on the CPU. Blending can take several seconds, when you blend large project (several megapixels) with many layers and layer effects. If you look into browser console, you can see some information about parsing and blending time. When you edit something, the project is completely reblended. There is no caching of pre-blended data now.

- -

Modern native editors usually use GPU through OpenGL or OpenCL. It will be also necessary in Photo Pea for having some decent performance. The WebGL standard is already present in all main browsers, but WebCL, which is more appropriate, is not :(

- - Screenshot on iPad - -

Drag and Drop your PSD files to PP window and see how it works by yourself :)

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photo-pea-0-2.html b/blog.photopea.com/photo-pea-0-2.html deleted file mode 100644 index 21f3b14..0000000 --- a/blog.photopea.com/photo-pea-0-2.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - Photo Pea 0.2 - - - - - - - -
-
-
- -
- September 25, 2013 -

Photo Pea 0.2

-
- -

The second release of Photo Pea is out! It has 6 982 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • Saving to PSD format (File - Save as PSD)
  • -
  • Pattern Overlay layer effect implemented
  • -
  • Several bugs removed
  • -
  • Several memory optimizations
  • -
- -

Saving to PSD

- -

PSD format uses several types of channel compression. It saves raw data, RLE (PackBits), ZIP with and without prediction. Adobe Photoshop uses RLE by default. At the beginning, I implemented saving raw data. But output files were about 5 times larger, than original from Photoshop, so I decided to implement RLE. My RLE implementation is probably not as good as one from Adobe, because output files are still about 10 to 60 percent larger than original file.

- -

Now you can easily convert any JPG/PNG/WEBP to PSD inside a browser.

- -

The input and output works well. I would like to focus on some editing tools in future releases.

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photo-pea-0-4.html b/blog.photopea.com/photo-pea-0-4.html deleted file mode 100644 index 6945e2c..0000000 --- a/blog.photopea.com/photo-pea-0-4.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - Photo Pea 0.4 - - - - - - - -
-
-
- -
- November 21, 2013 -

Photo Pea 0.4

-
- -

The fourth release of Photo Pea is out! It has 10 988 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • Clone Stamp Tool and Eraser Tool
  • -
  • Brush, Clone and Eraser work with raster masks too
  • -
  • First procedural adjustment: Hue/Saturation
  • -
  • Selections: Rectangle select, Ellipse select, Classic and Polygonal Lasso
  • -
  • Magic Wand tool for selecting "similar" pixels
  • -
  • 5 set operations to combine selections
  • -
  • Select -> All, Inverse, Expand, Contract and Feather commands
  • - -
  • Several keyboard shortcuts added
  • -
- - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-0-3.html b/blog.photopea.com/photopea-0-3.html deleted file mode 100644 index 5392506..0000000 --- a/blog.photopea.com/photopea-0-3.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - Photo Pea 0.3 - - - - - - - -
-
-
- -
- October 27, 2013 -

Photo Pea 0.3

-
- -

The third release of Photo Pea is out! It has 9 039 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • Editing layer tree (drag'n'drop items, new layer/folder/mask, delete layer, rename)
  • -
  • New options: Save for web, New project
  • -
  • Brush tool - support for .ABR brushes
  • -
  • Color Picker
  • -
  • Several bugs removed
  • -
- -

ABR brushes

- -

I was thinking about some good format for storing brushes externally. I found out, that there are tons of brushes in ABR, which is the brush format for Adobe Photoshop. Sadly, this format is not publicly documented. I had to play with it for a long time, until I finally finished the parser (maybe it is called reverse engineering, I am not sure).

- -

Image Export

- -

I added 3 formats into Save for web menu: PNG, JPG and WEBP. All existing libraries for encoding were too slow, so I decided to use Canvas.toDataUrl(...). The size and quality of exported files may vary in different browsers.

- -

Usage scenarios

- -

In current state, PhotoPea can be used for resizing images (Drag'n'drop a file, File->Save for web, enter dimension, Save). It can also be used as a simple drawing tool with layers and PSD export (and blend modes).

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-0-5.html b/blog.photopea.com/photopea-0-5.html deleted file mode 100644 index c7dc830..0000000 --- a/blog.photopea.com/photopea-0-5.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - Photopea 0.5 - - - - - - - -
-
-
- -
- February 28, 2014 -

Photopea 0.5

-
- -

The fifth release of Photopea is out! It has 12 551 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • Crop Tool
  • -
  • Gradient Tool
  • -
  • Loading and parsing Adobe Gradients (.GRD) format
  • -
  • Partial Layer Style editor (double click on lyer)
  • -
  • Several bugs removed
  • -
  • Changing product name from "Photo Pea" to "Photopea"
  • -
- -

Layer styles

- -

Automatic layer styles (drop shadow, stroke etc.) are very useful features of every image editor. Currently there exist millions of PSD files, which use layer styles of Adobe Photoshop, so we decided to adopt them as the basic set of styles into Photopea. In future versions, I plan to add new styles or extend current ones by new features.

- -

Note, that Photopea is only simulating styles from Adobe Photoshop. PSD files contain many numbers (parameters) for each style and Adobe does not say, how to transform those numbers into an actual image, so I implemented them as "how I thing they might work". I still have no idea how Bevel and Emboss work, if you know it, please tell me that in comments.

- -

GRD files

- -

Drawing gradients is also a very useful feature of image editor. Currently there are thousands of GRD files available for free on the internet, so I decided to add support for them. To use your GRD file, just drag and drop that file into Photopea.

- - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-0-6.html b/blog.photopea.com/photopea-0-6.html deleted file mode 100644 index 371320d..0000000 --- a/blog.photopea.com/photopea-0-6.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - Photopea 0.6 - - - - - - - -
-
-
- -
- March 27, 2014 -

Photopea 0.6

-
- -

The sixth release of Photopea is out! It has 13 756 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • Gradient Editor
  • -
  • Move Tool can move and duplicate sub-area now
  • -
  • Vector Masks rebuilt - shapes are combined correctly
  • -
  • Layer menu - New, Delete, Raster Mask, Vector Mask
  • -
  • More features editable in Layer Style Editor (including gradient)
  • -
  • Rendering the project is 12 % faster now
  • -
  • Several bugs fixed
  • -
  • We have a brand new Twitter account and Facebook page. Become a follower!
  • -
-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-0-7.html b/blog.photopea.com/photopea-0-7.html deleted file mode 100644 index 77a1cc5..0000000 --- a/blog.photopea.com/photopea-0-7.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - Photopea 0.7 - - - - - - - -
-
-
- -
- April 20, 2014 -

Photopea 0.7

-
- -

The seventh release of Photopea is out! It has 15 984 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • Levels tool (Ctrl+L) and Curves tool (Ctrl+M)
  • -
  • Free Transform added (Edit -> Free Transform)
  • -
  • Magnetic Lasso
  • -
  • Copy / Paste of selected area, works between multiple projects
  • -
  • System clipboard support - you can paste any copied (or PrintScreened) image using Ctrl+V
  • -
  • (These two parts will be "merged" after some browser implements the new Clipobard API)
  • -
  • Satin layer style implemented
  • -
  • Nicer alert message panel
  • -
- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-0-8.html b/blog.photopea.com/photopea-0-8.html deleted file mode 100644 index 64967b7..0000000 --- a/blog.photopea.com/photopea-0-8.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - Photopea 0.8 - - - - - - - -
-
-
- -
- May 27, 2014 -

Photopea 0.8

-
- -

The eighth release of Photopea is out! It has 16 689 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • Layer Fill editing
  • -
  • Selection from layer's alpha channel (Ctrl + click on layer)
  • -
  • Blending optimized (15 % faster)
  • -
  • First two filters in Photopea! Gaussian Blur and Box Blur
  • -
  • Text data parser
  • -
  • We started to examine our options with Type Tool
  • -
- -

Type Tool

- -

Native programs can access the list of fonts available at the device. They can read the actual files, parse curves, transform them etc. But there is no API for webapps to access current user's fonts or even checking, if some font is available. The "context2D" API of Canvas element has "fillText" method, which allows us to rasterize simple text. But PSD text may be "Faux" Bold / Italic, or have Warp effects on it. So we need to work with curves.

- -

Photopea could use its own fonts and don't care about user's fonts. But some users may want to edit their PSDs, where they use some special font. Even basic fonts like Arial or Times new Roman are licenced and Photopea can not use them for free. So we need an option for users to use their own font files.

- -

We are facing so many obstacles with Type Tool. It should work correctly, while being simple to use. If you have any ideas or suggestions to help us move Photopea forward, write them in the comments below.

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-0-9.html b/blog.photopea.com/photopea-0-9.html deleted file mode 100644 index d4be458..0000000 --- a/blog.photopea.com/photopea-0-9.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - Photopea 0.9 - - - - - - - -
-
-
- -
- October 26, 2014 -

Photopea 0.9

-
- -

The ninth release of Photopea is out! It has 20 942 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • Type Tool
  • -
  • Support for TTF fonts (drag'n'drop font file into PP)
  • -
  • Several bugs fixed
  • -
- -

Type Tool

- -

Type Tool was probably the hardest tool I had to implement. Not because of complexity of programming, but because of compatibility with PSD format. The problem was finally solved and Photopea can edit text layers of PSD created by Photoshop, and Photoshop can edit text layers of PSD created by Photopea.

- -

There may be a slight difference in text layers rendered by Photoshop and Photopea. While Photoshop rounds text coordinates to whole pixels, Photopea keeps the coordinates as floating point nubmers, so spaces between lines or between words may be slightly different.

- -

Fonts

-

Photopea has its own fonts, stored at the web server. Additional fonts must be Drag'n'dropped by user. Photopea can not access local fonts (e.g. C:\Windows\Fonts on Windows) automatically.

- -

Whenever you edit text layer with missing font, it is rendered by substitute font. Feel free to edit such text layer and save it, Photopea keeps the information about original font, so you can re-render it later (in Photopea or Photoshop, when font is available).

- - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-1-0.html b/blog.photopea.com/photopea-1-0.html deleted file mode 100644 index cfd0f50..0000000 --- a/blog.photopea.com/photopea-1-0.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - Photopea 1.0 - - - - - - - -
-
-
- -
- December 31, 2014 -

Photopea 1.0

-
- -

New release of Photopea is out! It has 22 931 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • Support for Smart Objects
  • -
  • New Brush engine, that supports many features of ABR brushes
  • -
  • Brush panel, that edits many features of ABR brushes
  • -
  • Support for XCF format (Gimp)
  • -
  • Touch support
  • -
  • Support for HiDPI displays
  • -
  • Support for PSB files
  • -
  • Gradients are rendered 3x faster
  • -
  • Several bugs fixed
  • -
- -

Smart Objects

- -

New version of PP supports Smart Objects, contained in PSD files. Smart objects are decoded from PSD file. They can be transformed (Free Transform) without loosing quality. Smart Objects are saved back into PSD file.

- -

XCF files

- -

XCF files can be opened in PP since this version. PP reads layer structure including folders (groups), layer masks, opacities, blend modes etc. XCF can be saved into PSD, JPG, PNG and other formats, supported by PP.

- -

Happy New Year 2015!

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-1-1.html b/blog.photopea.com/photopea-1-1.html deleted file mode 100644 index d5fd3ec..0000000 --- a/blog.photopea.com/photopea-1-1.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - Photopea 1.1 - - - - - - - -
-
-
- -
- February 27, 2015 -

Photopea 1.1

-
- -

New release of Photopea is out! It has 24 163 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • New and correct Hue - Saturation - Lightness editor
  • -
  • Bevel and Emboss style
  • -
  • Contour editor (you can use your own .SHC contours)
  • -
  • 15% faster rendering of layer styles
  • -
  • Caching layer styles (smoother workflow)
  • -
  • Blending layers as RGBA format (20% faster)
  • -
- -

Bevel and Emboss

- -

When I was implementing first layer styles (year and a half ago), Bevel and Emboss seemed too complicated and I didn't know how exactly each parameter works. I decided not to do anything else (with PP), until I solve this. It took me one Friday + weekend to figure it out.

- -

The effect does not look 100% the same, as in Adobe Photoshop, but it is very similar. Computation is quite hard, it may take about 150 ms for 500x500px layer. Most of this time PP is computing distance transform.

- -

Last two features

- -

Last two features improve the "smoothness" of Photopea dramatically. Previously, when you edited a project (e.g. moved a layer or entered a new character into text field), PP used to redraw the whole project, recompute each drop shadow or stroke of each layer, and blend it all together. Starting from this version, layer style is re-rendered ony when it is changed, or layers pixels are changed (or global angle is changed etc.). Working with Photopea is much smoother now.

- -

But smoothness was not the main reason of these two features. Thanks to "thrifty" rendering of styles and keeping pixels in RGBA format (instead of each channel in separate array), PP is ready to move to WebGL-accelerated rendering of layers. Each layer and layer style would have its copy in WebGL memory. Composing layers would be blazing fast, allowing you to smoothly edit large projects with lots of layers. Or, at least, that's what I expect :)

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-1-2.html b/blog.photopea.com/photopea-1-2.html deleted file mode 100644 index 1666d96..0000000 --- a/blog.photopea.com/photopea-1-2.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - Photopea 1.2 - - - - - - - -
-
-
- -
- July 26, 2015 -

Photopea 1.2

-
- -

New release of Photopea is out! It has 26 383 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • More than 1000 new fonts
  • -
  • Character window
  • -
  • Paragraph window
  • -
  • Stack-style of warnings
  • -
- -

New fonts

- -

Using services like Google Fonts and Font Squirrel, I gathered a set of more than 1000 free fonts. All these fonts are available to you in PP now. If you are using some free font in your project, it is probalby already present in Photopea. And if not, you can still drag'n'drop your own TTF font into PP.

- -

To help you navigate through such a large amount of fonts, they are alphabetically sorted. You can display only specific categories of fonts, or filter out unwanted fonts using restrictions (e.g. displaying only fonts containing Cyrillic characters, etc.).

- -

Text and paragraph style editing

- -

Now, you can edit almost all properties of text, that are stored in PSD file (leading, vertical scale, baseline shift, superscript, underline etc.). Controls are separated into Character and Paragraph windows, similar to Adobe Photoshop.

- - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-1-3.html b/blog.photopea.com/photopea-1-3.html deleted file mode 100644 index 792205e..0000000 --- a/blog.photopea.com/photopea-1-3.html +++ /dev/null @@ -1,87 +0,0 @@ - - - - Photopea 1.3 - - - - - - - -
-
-
- -
- August 26, 2015 -

Photopea 1.3

-
- -

New release of Photopea is out! It has 27 587 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • WebGL acceleration
  • -
  • Eyedropper tool
  • -
  • Faster rasterization of layer styles
  • -
  • Several bugs removed
  • -
- -

WebGL acceleration

- -

Most of modern native image editors use GPU acceleration, usually through OpenGL interface. Since this release, Photopea is also accelerated, thanks to WebGL interface. Acceleration can be enabled or disabled at any time during work, using a checkbox at the top of the editor.

- -

Pixel data of each layer are stored in WebGL memory. WebGL is used for blending (for all blend modes), weighted average (used in masking and layer styles) and for user interface (applying zoom on project, combining with background grid, highlighting selection area etc). We plan to use hadrware acceleration also for other operations in the future.

- -

Redrawing a project with resolution 2048x1152 pixels, with 10 full-size layers and 3 layer effects takes 850 ms without WebGL acceleration, and 55 ms with acceleration. Try it by yourself on your own device in this demo. Feel free to download PSD and open it in Photoshop or Gimp for comparison. In my case, Photopea seems even a little smoother.

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-1-4.html b/blog.photopea.com/photopea-1-4.html deleted file mode 100644 index b9a64cc..0000000 --- a/blog.photopea.com/photopea-1-4.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - Photopea 1.4 - - - - - - - -
-
-
- -
- November 19, 2015 -

Photopea 1.4

-
- -

New release of Photopea is out! It has 29 970 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • Adjustment layers
  • -
  • Blend modes and layer styles on folders
  • -
  • Clear and Fill operation on layers and masks
  • -
  • Several bugs removed
  • -
- -

Adjustment layers

- -

Adjustment layers can be present in PSD files since Adobe Photoshop 4.0. Photopea can load these layers from PSD, display them in Layers panel and save them back into PSD file. Brightness/Contrast, Levels, Curves, Exposure, Vibrance, Hue/Saturation layers have full support (new adjustment layers can be created, edited, and rendered by Photopea). And of course, they are processed by the GPU in WebGL mode. New types of adjustments will be implemented in the future.

- -

Parameters of adjustment layer can be edited in a new panel Properties, which is the similar way they are edited in Adobe Photoshop.

- -

Blending folders

- -

Folder of layers can have its own blend mode and layer style. Instead of a single layer, layer style is applied to a whole content of a folder. For example, if you want to stroke the layer 10 times, you can put it into 10 nested folders and give layer effect to each one of them.

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-1-5.html b/blog.photopea.com/photopea-1-5.html deleted file mode 100644 index df79660..0000000 --- a/blog.photopea.com/photopea-1-5.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - Photopea 1.5 - - - - - - - -
-
-
- -
- February 21, 2016 -

Photopea 1.5

-
- -

New release of Photopea is out! It has 31 023 lines of code. Play with it at the main site.

- -

New features

- -
    -
  • Custom cursors for some tools
  • -
  • Context menu (right-click) in Layers panel
  • -
  • Layer and style rasterization
  • -
  • Merging layers
  • -
  • Layer duplication, duplication between projects
  • -
  • Creating and editing smart objects (doubleclick on thumbnail)
  • - -
  • Several bugs removed
  • -
- -

Custom cursors

- -

Since this version, Photopea uses custom cursors for some tools. We have hand cursor for Hand tool, plus and minus cursor for Zoom tool - and arrow cursors for resizing rectangles (Free Transform, Crop, Type tool). Brush-like tools (Brush, Eraser, Clone Stamp) have cursor as a contour of current brush.

- -

Smart objects

- -

Unlike classic layer, which has a constant pixel data, smart layer has fixed source (JPG file, PSD file ...) and pixel data can be regenerated at any time from that source. After transforming layer to be 10x smaller and then transforming it back, making it 10x bigger, classic layer loses precission, becomes pixelized. Smart layer does not, because its content is regenerated from original source file.

- -

Another advantage of smart layer is, that we can have multiple smart layers with a same source (e.g same snowflake at different positions and sizes). After editing a source (doubleclick, editing, File - Save Smart Object), all smart layers that use it are updated.

- - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-1-6-meets-google-drive.html b/blog.photopea.com/photopea-1-6-meets-google-drive.html deleted file mode 100644 index 1227215..0000000 --- a/blog.photopea.com/photopea-1-6-meets-google-drive.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - Photopea 1.6 meets Google Drive - - - - - - - -
-
-
- -
- March 31, 2016 -

Photopea 1.6 meets Google Drive

-
- -

New release of Photopea is out! It has 31 595 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Available through Google Drive
  • -
  • Support for BMP and ICO formats (both opening and export)
  • -
  • Improved interface (tabbable input elements, highlighting text input after clicking on the label)
  • -
- -

Google Drive

- -

To make Photopea available inside your Google Drive, install it from Photopea at Chrome Webstore (you don't need the Chrome browser, but you must have a Google account). You can also install it to Google Drive through Settings - App management - Add a new app and searching for Photopea.

- -

After installation, doubleclick any PSD file (in Google Drive) to open it using Photopea. You can also open other files (JPG, PNG, ...) using right click - Open with - Photopea. Feel free open multiple files at the same time. When you're done, simply press Ctrl+S to save it back to Google Drive in the original format. You can also create a new PSD inside Google Drive, just click Create - More - Photopea.

- - - -

There is a new Save button (available through Ctrl+S), which can save the project to its "origin". The origin can be Google Drive, distant server (when you are using Photopea API), or another PSD, when you are editing a Smart Object.

- -

Photopea is limited to updating a file, which already existed in the GD (or was created from the GD). In the future, you will be able to navigate through your Drive structure from Photopea, save a project to multiple locations in multiple formats, etc.

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-1-7.html b/blog.photopea.com/photopea-1-7.html deleted file mode 100644 index ccfe1ac..0000000 --- a/blog.photopea.com/photopea-1-7.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - Photopea 1.7 - - - - - - - -
-
-
- -
- May 2, 2016 -

Photopea 1.7

-
- -

New release of Photopea is out! It has 32 200 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Support for GIF format (import just a single frame, export as a one-frame GIF)
  • -
  • Guides (moving, adding, deleting)
  • -
  • Rulers (View - Rulers)
  • -
  • Drawing straight lines when holding Shift
  • -
  • Rotating 15 degrees when holding Shift
  • -
  • Grouping Layers (Ctrl+G)
  • -
  • View - Zoom In / Out (Ctrl and +/-)
  • -
  • Drag-n-Dropped images are added into a current project as new layers
  • -
  • Warning mesage before closing PP, when there are unsaved changes
  • -
- -

Guides

- -

Guides are horizontal or vertical lines, which can help us with aligning elements inside a project. To create a guideline, enable Rulers first (View - Rulers or Ctrl+R). You can edit guides using Move tool only. Now you can click on horizontal ruler an drag down a new guide from it. Any guide can be moved also using Move tool. In order to remove a guide, click on it and drag it back onto horizontal ruler. You can work with vertical guides in the same way, using the vertical ruler.

- -

When you save your project as PSD, rulers are included into PSD file and will be available after opening that file in Adobe Photoshop or other programs with PSD support.

- - - - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-1-8.html b/blog.photopea.com/photopea-1-8.html deleted file mode 100644 index 4f29b53..0000000 --- a/blog.photopea.com/photopea-1-8.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - Photopea 1.8 - - - - - - - -
-
-
- -
- June 28, 2016 -

Photopea 1.8

-
- -

New release of Photopea is out! It has 30 533 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Clipping masks
  • -
  • Scrolling with a mouse wheel
  • -
  • Choosing an object under a cursor with the Move tool (hold Ctrl)
  • -
  • Toy / Experiment: File - Take a picture, File - Save Online
  • -
  • Image navigation in Save For Web
  • -
  • Keyboard shortcuts for tools (B: brush, V: move, ...)
  • -
  • Switching to HTTPS, several bugs removed, ...
  • -
- -

Clipping masks

- -

Clipping masks is another very popular property in PSD files. When a layer is set to be a clipping mask, it is applied only to the layer beneath it (the bottom layer "clips" the clipping mask layer). When there is a "chain" of clipping masks, all of them are applied to the first layer beneath them, which is not a clipping mask.

- -

To make a layer a clipping mask, you can right-click it and select Enable Clipping Mask / Disable Clipping Mask.

- - - -

Take a photo

- -

Would you like to show your new haircut to a friend? Simply go to Photopea.com, choose File - Take a photo, take a picture into a new project, choose File - Save Online (to Imgur), share a link with your friend, done!

- -

I have added these new functions (Take a photo and Save online) mainly because of myself. Sometimes, I need to take a picture quickly and it would take too long to do it through a phone. There are many webapps, which can take a picture using a webcam, but they have low resolution, they are full of ads and use Flash. With Photopea, it takes just 2 clicks now.

- -

Saving a file online temporarily is quite useful, when I need to share a printscreen with my friend. I can insert it straight into Imgur (or similar service), but I usually need to crop it, highlight something etc. before sharing. It also can be used to quickly share a preview of your work with a friend or a client.

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-1-9.html b/blog.photopea.com/photopea-1-9.html deleted file mode 100644 index 23a2f73..0000000 --- a/blog.photopea.com/photopea-1-9.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - Photopea 1.9 - - - - - - - -
-
-
- -
- August 3, 2016 -

Photopea 1.9

-
- -

New release of Photopea is out! It has 32 156 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Brand new font parser Typr.js!
  • -
  • Support for OTF fonts
  • -
  • Warping of type layers
  • -
  • 1000 new fonts in the database
  • -
  • Keeping aspect ratio when saving for web
  • -
  • Several bugs fixed
  • -
- -

Typr.js

- -

Photopea was using opentype.js library for parsing and drawing fonts. Because of bugs, OTF fonts were rendered incorrectly. Several free TTF fonts were impossible to parse and had to be excluded from our database.

- -

We made a brand new library Typr.js, which renders OTF fonts correctly and supports even old TTF files. We released it as open-source, available to everybody for free.

- -

Text Warping

- -

Type layers in a PSD file may have warp parameters attached to them. Warping parameters bend the text in some way. Starting with this release, warped layers are rendered correctly. You can also change warping parameters of existing layers and add warping to the new layers.

- - - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-2-0.html b/blog.photopea.com/photopea-2-0.html deleted file mode 100644 index ae9ab29..0000000 --- a/blog.photopea.com/photopea-2-0.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - Photopea 2.0 - - - - - - - -
-
-
- -
- August 24, 2016 -

Photopea 2.0

-
- -

New release of Photopea is out! It has 33 593 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Ready for Localization!
  • -
  • Preserving settings
  • -
  • Simple user accounts
  • -
  • Paint Bucket tool
  • -
  • Colors of layers
  • -
  • Several bugs fixed
  • -
- -

Localization

- -

Starting with this release, Photopea is prepared for localization to other languages. Right now, you can choose between the English and the Czech language, which was added as a proof of concept.

- -

We don't have the capacity to translate Photopea, so we would like to ask you, our users, to do it. We have prepared a Translation App, where you can easily translate Photopea to your language. Share a link with your friend and translate it together. As soon as any language gets 50 - 70 % translated, it will be added to Photopea.com :)

- -

For such purposes, we have created a special OpenWord format, which is free to implement by anybody. The future localization files will also be shared with the open source community.

- - languages - -

Preserving settings

- -

During your work with Photopea, you may change the settings of the environment (enable rulers, change the foreground or background color, change the language, more settings are coming in the future). Since this release, Photopea remembers these settings, so you get back to the same environment the next time you open Photopea.

- -

We have made a simple user database. You can log in with your Google or Facebook account. When you are logged in, your settings are stored on the server, in case you lose your computer or need to work from another device.

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-2-1.html b/blog.photopea.com/photopea-2-1.html deleted file mode 100644 index b8a1dab..0000000 --- a/blog.photopea.com/photopea-2-1.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - Photopea 2.1 - - - - - - - -
-
-
- -
- September 9, 2016 -

Photopea 2.1

-
- -

New release of Photopea is out! It has 34 982 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Filters and Smart Filters!
  • -
  • Converting text to vector mask
  • -
  • Edit - Transform - Rotate, Flip ...
  • -
  • Rotation in Crop tool
  • -
  • Support for PSDs with zipped image data
  • -
  • Several bugs fixed
  • -
- -

Filters and Smart Filters

- -

Image filters are a very common tool in many image editors. When you apply a filter to an image, the original pixels are replaced with new, filtered pixels. Photopea has the same behavior, when you apply filters to a classic layer.

- -

In a PSD format, instances of a smart object may have a list of filters attached to them (called Smart Filters). When a smart object is changed, filters are re-applied. Such filters can be reconfigured, enabled or disabled at any time in the future. The original image is still preserved inside a smart object. Smart filters can have their own mask, which hides the filtered image, revealing the original image.

- - - -

In order to let users work with PSDs containing smart filters, Photopea probably has to support a HUGE amout of filters. It is not clear how many, because there is no list of filters in the official specification.

- -

In version 2.1, Photopea supports following filters: Average, Blur, Blur More, Box Blur, Gaussian Blur, Add Noise, Clouds, Sharpen, Sharpen More and Find Edges. Which filters do you use the most? Let us know and we will add them in the future!

- -

P.S. With each new version of Photopea, there are new phrases, that need translation to other languages. Even when the previous version of Photopea was fully translated to some language, the translation becomes incomplete with a new version. You can help us translate Photopea to your language at photopea.com/translate.

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-2-2.html b/blog.photopea.com/photopea-2-2.html deleted file mode 100644 index 872d1b5..0000000 --- a/blog.photopea.com/photopea-2-2.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - Photopea 2.2 - - - - - - - -
-
-
- -
- January 16, 2017 -

Photopea 2.2

-
- -

New release of Photopea is out! It has 36 906 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Distortion transform
  • -
  • Warp transform
  • -
  • Info panel
  • -
  • Several bugs fixed
  • -
- -

PSD files may contain Smart Objects, which have different transformations applied to them. In order to let our users edit these transformations, we decided to add them into Photopea. They work in a similar way as in Adobe Photoshop and probably other photo editors.

- -

Distortion

- -

Free Transform (Edit - Free Transform) is a part of Photopea for a long time. It allows us to scale, rotate and skew layers in many ways. However, it is not possible to make a "3D transformation" with it. Since now, we can use Distortion transform in Photopea. When the Free Transform is on, press and hold the Control button. Now, you can move each corner of an image independently on other corners.

- - distort - -

Warp

- -

Distortion may let us do a 3D transformation of an image, but it is still not enough in some cases. Sometimes, we may want to place an image on the surface, which is not flat (a cylinder or a sphere). In these cases, we would like to "bend" the image into a more interesting shape.

- -

Warp allows us to bend the rectangular area using 16 control points. There are four control points for the location of corners, each corner has two control points for the direction of edges near that corner (8 more points) and there are four control points for the center of an image. There are also several predefined shapes, such as Arch or Flag, so you don't have to move points manually.

- -

When Free Transform is on, there will be a "Warp" button in the top panel. Click it to switch between a standard editing mode and a warp editing mode.

- - warp - -

Both distortion and warping are applicable to standard layers, smart objects, raster masks and vector masks (shapes). When transforming smart objects, transformation parameters are loaded from a PSD file and they will be stored back into a PSD file.

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-2-3-six-new-tools.html b/blog.photopea.com/photopea-2-3-six-new-tools.html deleted file mode 100644 index ff3958a..0000000 --- a/blog.photopea.com/photopea-2-3-six-new-tools.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - Photopea 2.3 – six new tools! - - - - - - - -
-
-
- -
- February 5, 2017 -

Photopea 2.3 – six new tools!

-
- -

New release of Photopea is out! It has 37 400 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Blur Tool, Sharpen Tool, Smudge Tool
  • -
  • Dodge Tool, Burn Tool, Sponge Tool
  • -
  • Flow parameter added to Brush, Eraser and Clone Stamp tools
  • -
  • Offset filter (Filter - Other - Offset)
  • -
  • Several bugs fixed
  • -
- -

Six new tools for image editing have been added to Photopea today. You may already know these tools from other editors (Adobe Photoshop, Gimp, Pixlr, ...). While there are six separate tools in Photoshop and Pixlr (and Photopea), in Gimp, Blur and Sharpen are connected into a single tool, as well as Dodge and Burn.

- -

All these tools behave like brushes. You can choose a specific diameter and a hardness of the tip, as well as many other parameters of brushes (in the Brush window). All of them can be applied to raster masks, too.

- -

Blur, Sharpen, Smudge

- -

The Blur Tool can be used for bluring specific areas of an image, same for the Sharpen tool. The Smudge tool is probably the most advanced of them all. It is the analogy of moving your finger across the wet paint on the painting. You can spread colors to other areas, make object longer or shorter, or move the border between two objects.

- - distort - -

Dodge, Burn, Sponge

- -

Dodge and Burn tools can be used to make image lighter or darker. As in other editors, you can choose, whether you want to dodge shadows, midtones or highlights. Use Sponge tool to saturate or desaturate specific areas of an image.

- -

Right now, these tools are located in two separate tool groups, just as in Adobe Photoshop. Let us know, if you would prefer other locations of these tools.

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-2-4.html b/blog.photopea.com/photopea-2-4.html deleted file mode 100644 index 2afde3f..0000000 --- a/blog.photopea.com/photopea-2-4.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - Photopea 2.4 - - - - - - - -
-
-
- -
- March 2, 2017 -

Photopea 2.4

-
- -

New release of Photopea is out! It has 38 810 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Spot Healing Brush
  • -
  • Healing Brush
  • -
  • Patch Tool
  • -
  • Several bugs fixed
  • -
- - - -

Spot Healing Brush

- -

This tool is present in Adobe Photoshop, Pixlr, Affinity Photo and many other editors. It usually has the name Spot Healing Brush, Inpainting tool, Retouch tool etc.

-

Spot Healing brush lets you remove objects and unwanted artifacts from pictures. Simply draw over an unwanted area, just like you do with a Brush tool, and release the mouse. After that, the area, that you drew over, will be "forgotten" and replaced with some appropriate content, that surrounds the area.

- -

For example, when you have a sandy beach and there is a stone in the middle, you draw over that stone and it will be replaced with sand. If you have a field with yellow flowers and a single red flower, you draw over the red flower and it will be replaced by a yellow flower. You can "heal" the skin, remove scratches from old photographs etc.

- -

You would have to use Clone Stamp for several minutes to achieve a similar result. Spot Healing Brush usually takes 1 to 5 seconds. In extreme cases, it may take up to 30 seconds to fill the area (when the area, that is being healed, is more than 50% of the whole image area).

- -

Below, you can see the original image, the spot, that is being healed, a result from Photopea and a result from Adobe Photoshop. We believe, that Photopea produces better results, than Adobe Photoshop (but it also takes more time).

- - - - - - - - - -

Also, when some part of the image is missing (e.g. corners after rotating the photo), you can use Spot Healing Brush as a "content-aware fill".

- -

Healing Brush and Patch tool

- -

These tools are also very popular in image editors. They perform an advanced cloning, which adapts the new content to its surrounding.

- -

Using a Healing brush is the same as using Clone Stamp. The only difference is, that the cloned content is adapted after releasing the mouse. With a patch tool, you first have to create a selection over an area that you want to be replaced. Then, you can drag that selection to another place, to choose the source of cloning. And again, the area is adapted after releasing the mouse.

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-2-5.html b/blog.photopea.com/photopea-2-5.html deleted file mode 100644 index a54d68a..0000000 --- a/blog.photopea.com/photopea-2-5.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - Photopea 2.5 - - - - - - - -
-
-
- -
- March 23, 2017 -

Photopea 2.5

-
- -

New release of Photopea is out! It has 38 857 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Enhancing Layer Styles
  • -
  • Enhancing Adjustment layers
  • -
  • Folders with layer styles improved
  • -
  • Several bugs fixed
  • -
- -

Enhancing layer styles

- -

We have updated the rendering of layer styles in this release. Stroke style has a Fill Type: Color, Gradient or Pattern. Bevel and Emboss may have an additional Contour or a Texture.

- -

Styles are much smoother, you can use even complex combinations of style parameters. Try the gold text effect.

- - - - -

Enhancing Adjustment layers

- -

Adjustment layers are perfect for tweaking the look of several layers without actually changing their content. Previously, adjustment layers could have their own opacity and mask. Now, they can aditionally have their own blend mode and layer styles.

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-2-6-can-open-sketch.html b/blog.photopea.com/photopea-2-6-can-open-sketch.html deleted file mode 100644 index 3eefbbc..0000000 --- a/blog.photopea.com/photopea-2-6-can-open-sketch.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - Photopea 2.6 can open Sketch! - - - - - - - -
-
-
- -
- April 25, 2017 -

Photopea 2.6 can open Sketch!

-
- -

New release of Photopea is out! It has 40 722 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Reading Sketch files
  • -
  • Artboards support
  • -
  • Masks can have additional Density and Feather
  • -
  • Support for multiple shadows / fills in Layer Styles
  • -
- -

Sketch file support

- -

Sketch is a very popular program for creating vector graphics, used by many designers. Sadly, the program is available for Mac OS only and it is quite expensive.

- -

Since the version 2.6, Photopea can read Sketch files. You can use it to render Sketch files, export them as PNGs, view the layer structure and more. - Sketch elements are converted into corresponding Photopea elements. You can edit colors, gradients, visibility, blend modes, text inside text layers and so on. And since Photopea can save files as PSD, you can use it as a Sketch to PSD converter.

- -

Here are several examples of Sketch files.

- - - - - - - - - - - - - - - - - -
Code Editor: SketchViewerPhotopea
Miranda Kerr: SketchViewerPhotopea
Milk Page: SketchViewerPhotopea
The Martian: SketchViewerPhotopea
- -

Sketch designers often use free fonts. Thousands of free fonts are available in Photopea. If you can not open some Sketch file with a Sketch App because of a missing font, there is a big chance, that Photopea will open it with correct fonts without any problems.

- - - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-2-7-with-vector-editing.html b/blog.photopea.com/photopea-2-7-with-vector-editing.html deleted file mode 100644 index 0ffb0f9..0000000 --- a/blog.photopea.com/photopea-2-7-with-vector-editing.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - Photopea 2.7 with vector editing! - - - - - - - -
-
-
- -
- June 1, 2017 -

Photopea 2.7 with vector editing!

-
- -

New release of Photopea is here with vector editing capabilities! It has 43 123 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Path Selection and Direct Selection
  • -
  • Pen and Free Pen tool
  • -
  • geometric shapes, Custom Shape tool
  • -
  • support for CSH vector symbol collections
  • -
  • starting photopea.com/learn
  • -
- -

Vector Drawing

- -

We have added vector editing tools in this version of Photopea. You can either edit an existing vector content from PSD or Sketch files, or create new content with special tools.

- - - -

To describe how vector graphics work in Photopea, we have written a description of vector tools in Photopea. You can learn there, how to use all the new tools and other features.

- - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-2-8-with-more-text-options.html b/blog.photopea.com/photopea-2-8-with-more-text-options.html deleted file mode 100644 index 9dad43f..0000000 --- a/blog.photopea.com/photopea-2-8-with-more-text-options.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - Photopea 2.8 with more text options! - - - - - - - -
-
-
- -
- July 6, 2017 -

Photopea 2.8 with more text options!

-
- -

New release of Photopea is here with vector editing capabilities! It has 44 779 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Right-to-left writing direction
  • -
  • The correct rendering of arabic, hebrew and many asian writing styles
  • -
  • Font search
  • -
  • Grid and Snapping
  • -
  • Parametric Vector Shape tool
  • -
  • Several bugs fixed
  • -
- -

More writing styles

- -

Rendering bidirectional text is much more than just drawing letters in an opposite order. - When arabic or hebrew text contains latin words or numbers, they have to be rendered in a left-to-right order. - Also, some characters have to be "mirrored", e.g. when you write (A < B) inside arabic text, reordering will give you )B < A(., which is incorrect. In some languages, the same character may have to be drawn differently, depending on characters around it.

- -

Since this release, Photopea supports many writing styles, including Hebrew and Arabic. Also, we have updated our open-source library Typr.js and wrote a lesson about text editing in Photopea.

- - - -

Every user of PP knows, that there are many, maybe too many fonts. It may be hard to find a specific font in a huge list of fonts. - Since now, there is a new field, where you can enter the name of the font (or some part of it). As you type, the list of fonts - will be filtered, and only those which contain your phrase in their name will remain. Clear this field to get a full list of fonts again.

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-2-9-scripts-are-here.html b/blog.photopea.com/photopea-2-9-scripts-are-here.html deleted file mode 100644 index df2f7da..0000000 --- a/blog.photopea.com/photopea-2-9-scripts-are-here.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - Photopea 2.9: Scripts are here! - - - - - - - -
-
-
- -
- July 23, 2017 -

Photopea 2.9: Scripts are here!

-
- -

New release of Photopea is here with Scripting and a better support for Sketch files! It has 45 814 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Support for Scripts
  • -
  • Better Sketch support
  • -
  • Showing distances for the Move tool
  • -
  • Several bugs fixed
  • -
- -

Scripts

- -

Since this release, Photopea can execute scripts (written in Javascript) and perform image manipulation automatically. - You can find more details at photopea.com/learn/scripts. - Scripts can be executed either directly (from Photopea), or through the api.

- - - -

Sketch files

- -

We improved the support for Sketch files in two ways. First, borders are converted into vector shape strokes (instead of Stroke layer effects). - Such new borders look more precise. They can be used even with no fill (i.e. lines in a Sketch file are converted into lines in a PSD). - We made several other improvements, which dramatically reduced possible differences between generated PSDs and original Sketch files.

- -

Second, we improved the loading time and memory requirements for Sketch files. Sketch files are now loaded 20% faster - and they use about 40% less RAM. Even the work with large files is smooth and responsive.

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-3-0-with-svg.html b/blog.photopea.com/photopea-3-0-with-svg.html deleted file mode 100644 index 7a1aa42..0000000 --- a/blog.photopea.com/photopea-3-0-with-svg.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - Photopea 3.0: SVG support - - - - - - - -
-
-
- -
- August 14, 2017 -

Photopea 3.0: SVG support

-
- -

New release of Photopea is here with Scripting and a better support for Sketch files! It has 47 362 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • SVG import and export
  • -
  • Improved touch-screen experience
  • -
  • Premium accounts for teams
  • -
  • Several bugs fixed
  • -
- -

SVG

- -

SVG is a very popular format for storing vector graphics, and it is probably the only truly "web format" for this purpose. - Unlike PDF, SVG can be crated with a text editor (just like HTML), you can use CSS to style it, and Javascript to make it interactive. - Even comlex vector graphics can be stored in SVG, such as this Lamborghini (zoom in to see, that everything really is vector graphics).

- -

Starting today, you can load SVG files into Photopea, and export SVG files from it. You can use it as a PSD to SVG converter, Sketch to SVG converter, SVG to PSD converter etc.

- -

Load the Lamborghini now and see, that all the vector shapes and their properties are preserved. Now, you can save it as a PSD, or export back to SVG (File - Export As - SVG).

- - - -

There are several options of SVG export. You can choose to export raster layers, rasterize text layers and more. When you export a PSD to SVG and then convert the PSD back to SVG, it almost always preserves the same structure.

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-3-1-brings-aniamtions.html b/blog.photopea.com/photopea-3-1-brings-aniamtions.html deleted file mode 100644 index 680b68b..0000000 --- a/blog.photopea.com/photopea-3-1-brings-aniamtions.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - Photopea 3.1 brings Aniamtions! - - - - - - - -
-
-
- -
- September 26, 2017 -

Photopea 3.1 brings Aniamtions!

-
- -

New release of Photopea is here! It has 48 384 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Working with animations
  • -
  • Support for APNG (animated PNG) format
  • -
  • CSS panel
  • -
  • Selective Color adjustment
  • -
  • Several bugs fixed
  • -
- -

Animations

- -

Animated images (GIF, APNG) are very popualr on the internet. Since today, Photopea offers you a simple and comfortable way to work with them. Let's start with a few basic things you can do:

-
    -
  • When you open an animated GIF or PNG in Photopea, each frame is in a separate layer
  • -
  • When you save such document back into GIF or PNG, it generates the same animation (with the same timing etc.)
  • -
  • If you remove or reorder layers (frames), add new ones etc., Photopea will generate the corresponding animation
  • -
- -

You can also create new animations from scratch, or change the timing of each frame. - Animation is controlled by the special format of layer names. Find more at Learn Animations.

- -

After loadeing this 32kB GIF into Photopea, we were able to export it as this 26kB GIF and also as this 8kB APNG. - Feel free to try it in Photopea!

- - - -

Animated PNG is a new format, which usually generates smaller files than GIF. It also supports any number of colors (GIF can have only 256 colors) and partially transparent pixels. Photopea is one of first editors, that support APNG.

- -

CSS panel

- -

In this version, we added a new CSS panel. As you select different layers, Photopea tries to deduce a style of the layer, and shows it in the CSS format. It takes into account layer styles, shape properties and parameters of a Type layer. -

- - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-3-2-advanced-selecting.html b/blog.photopea.com/photopea-3-2-advanced-selecting.html deleted file mode 100644 index df211ac..0000000 --- a/blog.photopea.com/photopea-3-2-advanced-selecting.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - Photopea 3.2: Advanced selecting - - - - - - - -
-
-
- -
- December 16, 2017 -

Photopea 3.2: Advanced selecting

-
- -

New release of Photopea is here! It has 52 146 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Quick Selection Tool
  • -
  • Ruler Tool
  • -
  • Improving the script support
  • -
  • Faster loading of photopea.com
  • -
  • Each vector tool can change the vector style
  • -
  • Many bugs fixed
  • -
- -

Quick Selection

- -

Quick Selection tool is the most advanced of all current selection tools. Yes, it is more advanced than the Magic Wand and the Magnetic Lasso. Once you learn how to use it, you will probably never want to use any other selection tool.

- -

Quick Selection works like a Brush, it selects each stroke that you draw. In addition, it expands each stroke to the surrounding area, and selects all related areas (similarly to the Magic Wand). You can learn more at photopea.com/learn.

- -

Similar tools are present in many advanced photo editors, such as Photoshop or Pixelmator. Photopea is probably the first editor, which offers this tool for free. Try it yourself here (press W to enable Quick Selection, increase the diameter and draw over the image).

- - - - - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-3-3-pdf-import-and-export.html b/blog.photopea.com/photopea-3-3-pdf-import-and-export.html deleted file mode 100644 index 3c6fc1e..0000000 --- a/blog.photopea.com/photopea-3-3-pdf-import-and-export.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - Photopea 3.3: PDF import and export - - - - - - - -
-
-
- -
- February 3, 2018 -

Photopea 3.3: PDF import and export

-
- -

New release of Photopea is here! It has 53 249 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • PDF support
  • -
  • PS / EPS import
  • -
  • Improving scripting
  • -
  • Improved zooming (smaller steps)
  • -
  • HSB values in the Color Picker
  • -
  • Several bugs fixed
  • -
- -

PDF support

- -

In this release, we introduce the support for PDF files. It is does not make Photopea a full PDF editor, but more like an advanced PDF to PSD converter, and PSD to PDF converter. And since Photopea already supports SVG, you can use it to convert between PDF and SVG.

- - - -

Go to Photopea.com and try to open your PDF files. Photopea can load vector graphics (including color or gradient fills, correct stroke style etc.), raster graphics (both compressed and uncompressed) and text information. Each page will become a new artboard, and each graphic element will be in a separate layer.

- - - -

We made our PDF tools open-source as a library PDFI.js.

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-3-4-refine-edges.html b/blog.photopea.com/photopea-3-4-refine-edges.html deleted file mode 100644 index 2177fd0..0000000 --- a/blog.photopea.com/photopea-3-4-refine-edges.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - Photopea 3.4 – Refine Edges - - - - - - - -
-
-
- -
- April 30, 2018 -

Photopea 3.4 – Refine Edges

-
- -

New release of Photopea is here! It has 57 722 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Refine Edge tool
  • -
  • Pencil Tool, Image - Trim
  • -
  • Improved Sketch support (Symbol Master overriding)
  • -
  • Pixel Grid (zoom a lot to see it)
  • -
  • Vector tools snap to pixels
  • -
  • Many bugs fixed
  • -
- -

Refine Edge

- -

Refine Edge is a tool for creating precise selections. It helps you select complex objects such as hair or fur. - Similar tools are available in many other programs, and our version is one of the best. In a couple of seconds, you can create selections, that would take minutes or hours otherwise.

- -

The goal is to paint a trimap over the image: Foreground with White, background with Black, and uncertain areas with Gray. Then, Photopea deduces the transparency of the Gray area. You can find more at /learn/refine-edge.

- -

Try it yourself! Go here to see a photo of a dog. Press Select - Refine Edge. Choose a large brush and paint with Gray to cover the whole dog (don't worry about painting over parts of grass). Now, choose a White color, make strokes inside the dog, and see how the preview changes.

- - - - - - - - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-3-5-xd-support.html b/blog.photopea.com/photopea-3-5-xd-support.html deleted file mode 100644 index 9379e75..0000000 --- a/blog.photopea.com/photopea-3-5-xd-support.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - Photopea 3.5 – XD support - - - - - - - -
-
-
- -
- June 14, 2018 -

Photopea 3.5 – XD support

-
- -

New release of Photopea is here! It has 59 924 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • XD format support
  • -
  • Support for files from the new GIMP
  • -
  • Many tiny improvements (e.g. reverse option for GIF export)
  • -
  • Several bugs fixed
  • -
- -

XD format

- -

Adobe XD is a software for designing user interfaces, websites and other similar environments. It is very similar to Sketch App, and stores its files with an .xd extension. Sadly, Adobe XD is available only for Windows 10, or for MacOS 10.11 and later.

- -

Starting now, you can open XD files in Photopea, inspect them, save them as PSD, or export their parts (e.g. as PNG or SVG). Photopea is the only XD to PSD convertor today. It is also the only way to work with XD files on Linux and other systems, unsupported by Adobe XD.

- -

Try it yourself! XD file, Opened in Photopea.

- - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-3-6-edit-presets.html b/blog.photopea.com/photopea-3-6-edit-presets.html deleted file mode 100644 index 06b2e34..0000000 --- a/blog.photopea.com/photopea-3-6-edit-presets.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - Photopea 3.6 – Edit presets - - - - - - - -
-
-
- -
- August 13, 2018 -

Photopea 3.6 – Edit presets

-
- -

New release of Photopea is here! It has 62 371 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Load and save Layer Styles (.ASL), Gradients (.GRD), Patterns (.PAT), Contours (.SHC) and Shapes (.CSH)
  • -
  • Layer Style preview
  • -
  • Liquify filter
  • -
  • Improved XD support
  • -
  • Improved PDF support
  • -
  • Several bugs fixed
  • -
- -

Preview Layer Styles

- -

Layer Style window contains a preview of the current layer style.

- - - -

You can define the new style from a current style, and add it into a style gallery. Style gallery can be loaded or saved as .ASL file.

- - - -

You can load and save Gradients, Patterns, Contours and Shapes in the same way.

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-3-7-wmf-and-emf-support.html b/blog.photopea.com/photopea-3-7-wmf-and-emf-support.html deleted file mode 100644 index 6d961eb..0000000 --- a/blog.photopea.com/photopea-3-7-wmf-and-emf-support.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - Photopea 3.7 – WMF and EMF support - - - - - - - -
-
-
- -
- September 26, 2018 -

Photopea 3.7 – WMF and EMF support

-
- -

New release of Photopea is here! It has 63 342 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Load WMF and EMF files, export EMF files
  • -
  • History in a Liquify filter
  • -
  • Push Left tool in a Liquify filter
  • -
  • New fonts added
  • -
  • Many bugs fixed
  • -
- -

WMF and EMF files

- -

Windows Metafile is an image format, very similar to a PDF or SVG format. It can contain both raster and vector graphics. EMF has a better geometric precision (16 bits in WMF vs. 32 bits in EMF). EMF is also more advanced, as it allows using Bézier curves (only lines and polygons are allowed in WMF).

- -

WMF and EMF files consist of commands for a rendering device, very similar to PDF. They were used in Microsoft products (e.g. Microsof Paint, or Microsoft Office), but became supported in other software, too (e.g. Libre Office or Inkscape). Starting today, you can open them in Photopea.

- -

We made our WMF and EMF libraries open-source under the project UDOC.js.

- - Examples: - - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-3-8-live-shapes-and-new-filters.html b/blog.photopea.com/photopea-3-8-live-shapes-and-new-filters.html deleted file mode 100644 index d1db274..0000000 --- a/blog.photopea.com/photopea-3-8-live-shapes-and-new-filters.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - Photopea 3.8 – Live Shapes and new filters! - - - - - - - -
-
-
- -
- October 21, 2018 -

Photopea 3.8 – Live Shapes and new filters!

-
- -

New release of Photopea is here! It has 64 545 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Live Shapes
  • -
  • New Distortion filters
  • -
  • Difference Clouds filter
  • -
  • Patch Tool 30x faster
  • -
  • Rename a document by double-clicking the Tab
  • -
  • Thousands of new fonts
  • -
  • Many bugs fixed
  • -
- -

Live Shapes

- -

PSD files can store vector graphics, either as Vector Masks, or Shape Layers (more info here). These shapes are stored as Bézier curves. We can move Bézier knots, or transform the curves using a Free Transform, but there is no way to make a Rounded Rectangle 2x wider, while preserving the corner radius.

- -

The PSD format lets us store the Vector Origination Data. These data contain the shape parameters (Type: Rectangle, Ellipse, Line... Width, Height, Corner Radius, etc.). Starting today, Photopea lets you edit these Origination data, and re-generate the vector shape according to them. These data can be edited in the Properties panel, under Live Shapes.

- - - -

All new Ellipses and Rectangles become Live Shapes. Also, when you open a Sketch file, Photopea converts appropriate shapes into Live shapes. Note, that if you move a knot of a live shape, or rotate it a bit, the origination data are lost, and it becomes just a regular shape.

- -

Distortion Filters

- -

We added several new PSD filters. They all can be used as Smart Filters on Smart Objects. You can also edit corresponding Smart filters in existing PSD files.

- -

Distortion filters let us bend the image in an irregular way. They are similar to the Liquify filter, but instead of "bending" an image by hand, it is bent automatically according to some parameters (Pinch, Ripple, Shear, Spherize, Twirl).

- -

The Displace filter can bend an image according to a map (another image). You have to choose a size and a direction of the displacement. A bright place in the map will cause a large displacement (of the corresponding spot in the image), while a dark place will move the image just a little.

- -

The video below shows how it works in Adobe Photoshop. In Photopea, you don't choose the map as an external file, but you choose it from existing Smart Objects of the current document.

- - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-3-9-templates.html b/blog.photopea.com/photopea-3-9-templates.html deleted file mode 100644 index f8a0fca..0000000 --- a/blog.photopea.com/photopea-3-9-templates.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - Photopea 3.9 – Simple Templates! - - - - - - - -
-
-
- -
- December 4, 2018 -

Photopea 3.9 – Simple Templates!

-
- -

New release of Photopea is here! It has 66 263 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Simple Templates
  • -
  • Lens Correction filter
  • -
  • Improved loading of Sketch, XD and PDF
  • -
  • Levels and Curves are 3x faster
  • -
  • Adjustments are computed on the GPU
  • -
  • Many bugs fixed
  • -
- -

Templates

- -

When you start an empty document in Photopea, you can choose from several standard sizes. Today, we added simple auto-generated templates, that can speed-up the creation of your design. Just click the template you like to open it as a new document.

- - - -

Templates always adjust to the current document size, that you entered at the left part of the window. The Font Filter lets you restrict fonts, that can be used in templates (e.g. only fonts, that are "Handwritten" and support Greek letters).

- -

Standard templates are combinations of several colors, shapes, and a text. You can enable Photo templates, so all templates will contain a photo (a royalty-free photo from Pixabay.com). You can specify your own keywords for photos (e.g. "cats" or "Ferrari").

- - - -

Scroll down to see more templates, or press Randomize to create brand new templates. After you open any template, you can edit or remove existing elements, or add your own elements.

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-4-0-nef-cr2-arw-support.html b/blog.photopea.com/photopea-4-0-nef-cr2-arw-support.html deleted file mode 100644 index f66432c..0000000 --- a/blog.photopea.com/photopea-4-0-nef-cr2-arw-support.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - Photopea 4.0 – NEF, CR2 and ARW support! - - - - - - - -
-
-
- -
- January 4, 2019 -

Photopea 4.0 – NEF, CR2 and ARW support!

-
- -

New release of Photopea is here! It has 68 161 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Support for Nikon .NEF format
  • -
  • Support for Canon .CR2 format
  • -
  • Support for Sony .ARW format
  • -
  • Step back with Ctrl+Z (holding Shift is optional)
  • -
  • Improved API - better integration with an outer environment
  • -
  • Several bugs fixed
  • -
- -

RAW formats

- -

Many modern digital cameras allow storing a picture in a so-called raw format. We introduced the support of the open DNG raw format in Photopea more than a year ago.

- -

We can think of the DNG format as a "JPG for raw images". A lot of progress has been made in camera technology, we have bigger resolutions, improved color quality and better photos in general. But both the old and the new cameras store images in the versatile JPG format, which is widely supported by many kinds of devices and software. We can be sure, that our 20-year-old JPG photo will work well in modern programs, and our todays photos will work in programs of the future.

- -

The DNG format was designed to be equally versatile format for raw images. It is an open format, that can be adapted by any manufacturer for free. By using DNG, we can guarantee, that any raw image will work in any raw software, even if they were created in different decades (as it is true for JPG). The DNG format has been adapted by Leica, Hasselblad, Ricoh, Pentax, Casio and some smartphones (Samsung, LG, Motorola, Sony, OnePlus).

- - - -

However, currently the biggest camera makers - Nikon, Canon and Sony - use their own "secret" formats instead. E.g. the Canon's CR2 format is not publicly described anywhere, so only Canon can guarantee, that their software will process CR2 files correctly. They probably do so to keep users dependent on their software, and prevent them from using any alternatives. One needs Canon software to view photos from Canon cameras, Nikons software to view photos from Nikon, Olympus software to view photos from Olympus, etc.

- -

The open-source community has done a big effort to understand the meaning of Ones and Zeros in CR2 and NEF files. Today, programs like Darktable and Rawtherapee can open many CR2, NEF and ARW files.

- -

Starting today, Photopea can open CR2, NEF and ARW files, too. It can probably open 95% of such files, and it will take some time to get to 100%. Try it out and if your file does not work, send it to us! :)

- - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-4-1-actions-new-filters.html b/blog.photopea.com/photopea-4-1-actions-new-filters.html deleted file mode 100644 index 4155c7c..0000000 --- a/blog.photopea.com/photopea-4-1-actions-new-filters.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - Photopea 4.1 – Actions and new Filters! - - - - - - - -
-
-
- -
- February 26, 2019 -

Photopea 4.1 – Actions and new Filters!

-
- -

New release of Photopea is here! It has 72 317 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Support for Actions and .ATN files
  • -
  • New Adjustment: Replace Color
  • -
  • Filter Gallery with two new filters
  • -
  • New Filters: Distort - Wave, Pixelate - Mezzotint, Sharpen - Smart Sharpen
  • -
  • Several bugs fixed
  • -
- -

Actions

- -

Actions allow us to record our work, and apply it later to other documents. Photopea can load and store actions as ATN files. - Not all actions can be recorded / applied at the moment, but we implemented dozens of basic actions (including all adjustments and filters) and we will gradually extend our work!

- -

Try to load and run your own ATN actions! You can learn more about actions at our manual page.

- - - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-4-2-with-local-storage.html b/blog.photopea.com/photopea-4-2-with-local-storage.html deleted file mode 100644 index 7f302ae..0000000 --- a/blog.photopea.com/photopea-4-2-with-local-storage.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - Photopea 4.2 – try Local Storage! - - - - - - - -
-
-
- -
- May 3, 2019 -

Photopea 4.2 – try Local Storage!

-
- -

New release of Photopea is here! It has 74 109 lines of code. Play with it at the main site.

- - -

New features

- -
    -
  • Storing resources in Local Storage
  • -
  • Extending support for Actions
  • -
  • New filters: Crystallize, Pontillize, Stained Glass
  • -
  • Even faster start of Photopea
  • -
  • 300 new fonts
  • -
  • Several bugs fixed
  • -
- -

Local Storage

- -

You can load your own fonts, brushes, gradients, layer styles and other files into Photopea. These resources can be used right after loading. But once you close Photopea, they disappear, and the next time you use Photopea, you have to load them manually again.

- -

Starting today, Photopea can remember your fonts and other resources (that you loaded manually into PP), and load them automatically the next time you use Photopea.

- -

Photopea has a set of files, that are permanently stored on your computer (using IndexedDB). Whenever you load a new font or a brush set, you will have an option to store that file into the set. After you close Photopea and open it again, the set of files is automatically loaded and processed.

- -

This set of permament files can be managed using Edit - Local Storage. Here, you can see a list of all files. Select a file and choose Delete to remove it from the list. The list is also deleted when you clear the website data through the browser settings.

- - - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-4-3-slices-and-more.html b/blog.photopea.com/photopea-4-3-slices-and-more.html deleted file mode 100644 index e084c5e..0000000 --- a/blog.photopea.com/photopea-4-3-slices-and-more.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - Photopea 4.3 – Slices and more! - - - - - - - -
-
-
- -
- July 2, 2019 -

Photopea 4.3 – Slices and more!

-
- - New release of Photopea is here! It has 76 553 lines of code. Play with it at the main site. - - - -

New features

-
    -
  • Support for Slices
  • -
  • Tool Presets
  • -
  • New panels: Color and Tool Presets
  • -
  • Support for TGA format
  • -
  • Many bugs fixed
  • -
-

Slices

- Slices define rectangular areas on top of our document. We can export such document with a single click, and each slice becomes a separate image file, such as PNG or JPG. You can learn more about them at Photopea.com/learn/slices. - - -

Tool Presets

- Each tool can have many settings in the top bar. For the Move tool, there is "Auto-Select", "Transform Controls", and more. - For a Brush tool, there is a Brush itself, a Blend Mode, an Opacity, a Flow, etc. - - Tool Presets let us save the current settings of a tool, to load them back later with a single click. Right now, they are possible for a Brush tool, a Pencil tool, and an Eraser tool. Photopea also saves the Foreground color for the Brush and the Pencil. - - - - Tool Presets are popular in Adobe Photoshop, and can be used in Photopea in a similar way. You can switch Tool Presets by clicking the icon of a tool at the beginning of a top bar, and selecting a preset from the menu. Press a tiny arrow - Define New, to define a new preset from the current settings. - - Tool presets can be saved or loaded as .TPL files. Together with the Local Storage, you can have your Tool Presets in place every time you open Photopea. -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-4-4-text-on-a-curve-and-more.html b/blog.photopea.com/photopea-4-4-text-on-a-curve-and-more.html deleted file mode 100644 index 1a1c506..0000000 --- a/blog.photopea.com/photopea-4-4-text-on-a-curve-and-more.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - Photopea 4.4 – Text on a Curve and more! - - - - - - - -
-
-
- -
- October 13, 2019 -

Photopea 4.4 – Text on a Curve and more!

-
- -

New release of Photopea is here! It has 81 140 lines of code. Play with it at the main site.

- - - -

New features

-
    -
  • Text on a curve
  • -
  • Text inside a curve
  • -
  • Support for Paths and Channels
  • -
  • Improved Sketch and PDF parser
  • -
  • Improved Export Layers feature
  • -
  • Many bugs fixed
  • -
-

Text on a curve

- -

A new version of Photopea lets you add text on a curve, or inside a curve. Such text can be stored in PSD files, and loaded back from a PSD file. To learn how to use it, read an article in our manual.

- - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-4-5-smarter-selections.html b/blog.photopea.com/photopea-4-5-smarter-selections.html deleted file mode 100644 index cc247b6..0000000 --- a/blog.photopea.com/photopea-4-5-smarter-selections.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - Photopea 4.5 – Smarter Selections! - - - - - - - -
-
-
- -
- November 6, 2019 -

Photopea 4.5 – Smarter Selections!

-
- -

New release of Photopea is here! It has 82 676 lines of code. Play with it at the main site.

- - - -

New features

-
    -
  • Updated Quick Selection tool
  • -
  • New Object Selection tool
  • -
  • Background Eraser tool
  • -
  • Support for TGA files (open and save)
  • -
- -

Smart Selections

- -

We introduced a Quick Selectin tool almost two years ago. However, it was quite slow, and selections were not perfect. We were looking for a new method to perform smart selections.

- -

We built a new method, which has amazing results. It requires some pixels to be marked as a foreground and some as a background. First, it analyzes the image (it can analyze 4,000,000 pixels per second). Then, it deduces the foreground / background according to the marked pixels.

- -

Now, Quick Selection tool uses the new method. Your painting defines the forground, a top left and a top right pixels are marked as a background. It often gives the right result with one click.

- - - -

Object Selection Tool

- -

Recently, Adobe announced a new Object Selection tool in Adobe Photoshop. Our method lets us provide a tool with the same user interface (drawing a rectangle over the image). We just mark the area outside the rectangle as a Background, and a small cross in the middle as a Foreground.

- -

Adobe did not release the feature yet. But it would be very interesting to compare them side-by-side. Photopea is probably the only program offering these two tools for free.

- - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-4-6-open-figma-files.html b/blog.photopea.com/photopea-4-6-open-figma-files.html deleted file mode 100644 index 5faf1cd..0000000 --- a/blog.photopea.com/photopea-4-6-open-figma-files.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - Photopea 4.6 – Open Figma Files! - - - - - - - -
-
-
- -
- January 27, 2020 -

Photopea 4.6 – Open Figma Files!

-
- -

New release of Photopea is here! It has 84 837 lines of code. Play with it at the main site.

- - - -

New features

-
    -
  • Support for opening .FIG files (Figma)
  • -
  • Read, edit and save metadata (File - File Info)
  • -
  • Import and expor of .RAW images
  • -
  • Improved compression for saving TGA
  • -
- -

Figma files

- -

Figma is a popular vector graphics editor focused at digital design, similar to Sketch App and Adobe XD. Up until now, Figma was the only tool, that could open .FIG design files.

- -

Since this release, Photopea can open .FIG files. You can browse a whole design structure, each separate element, its style, etc. You can also save every design as a PSD file.

- -

Comparison

-

Below, you can see the same design opened in Figma and Photopea.

- - - - - - - - - - - - - - - -
FigmaPhotopea
Christmas.figChristmas.fig
DS.figDS.fig
GEE! MEGEE! ME
- - - - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-4-7-puppet-warp.html b/blog.photopea.com/photopea-4-7-puppet-warp.html deleted file mode 100644 index 05b52cd..0000000 --- a/blog.photopea.com/photopea-4-7-puppet-warp.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - Photopea 4.7 – Puppet Warp - - - - - - - -
-
-
- -
- March 1, 2020 -

Photopea 4.7 – Puppet Warp

-
- -

A new release of Photopea is here! It has 87 368 lines of code. Play with it at the main site.

- - - -

New features

-
    -
  • Puppet Warp tool
  • -
  • Oil Paint filter
  • -
  • Normal Map filter
  • -
  • Many bugs fixed
  • -
- -

Puppet Warp tool

- -

A Puppet Warp tool is a very popular feature for "bending" objects. Similar tool is available in Adobe Photoshop, Gimp, Krita and other programs.

- -

Start the tool by pressing Edit - Puppet Warp. Click into the image to place several anchor points. Then, drag these points to new locations. Each point will stretch the part of the object to a new location.

- - - -

Photopea supports PSD files, and it can process the Puppet Warp transform, that might be stored with a Smart Object as a smart filter. You can also create a new Puppet Warp for a Smart Object.

- -

The parameters of Puppet Warp in Photopea correspond to the parameters of the smart filter in a PSD file. You can show or hide a triangular mesh, change its density or expand it outside the edge of an object. You can move anchor points in a way, such that one part of the object covers another part. Photopea allows you to set the depth of each anchor, to decide, which part should be in front and which one should be in the back.

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-4-8-shadowshighlights.html b/blog.photopea.com/photopea-4-8-shadowshighlights.html deleted file mode 100644 index 5af34f1..0000000 --- a/blog.photopea.com/photopea-4-8-shadowshighlights.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - Photopea 4.8 – Shadows/Highlights - - - - - - - -
-
-
- -
- June 11, 2020 -

Photopea 4.8 – Shadows/Highlights

-
- -

A new release of Photopea is here! It has 91 049 lines of code. Play with it at the main site.

- - - -

New features

-
    -
  • Shadows/Highlights adjustment
  • -
  • Support for .VTF (Valve Texture Format)
  • -
  • Improved support for Figma files
  • -
  • Optimized Brush tool (when the Size is dynamic, e.g. depends on the pressure)
  • -
  • Smart Object - Stack Mode
  • -
  • Many bugs fixed
  • -
- -

Shadows/Highlights

- -

The Shadows/Highlights adjustment is known from Adobe Photoshop. It can be stored in PSD files as a Smart filter. Now, you can also use it in Photopea.

- -

This adjustment allows you to lighten the shadows, or to darken the highlights of an image. It is an advanced tool, which can not be achieved with Levels or Curves.

- - - - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-4-9-new-tools-and-formats.html b/blog.photopea.com/photopea-4-9-new-tools-and-formats.html deleted file mode 100644 index eb7f497..0000000 --- a/blog.photopea.com/photopea-4-9-new-tools-and-formats.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - Photopea 4.9 – New tools and formats! - - - - - - - -
-
-
- -
- August 24, 2020 -

Photopea 4.9 – New tools and formats!

-
- -

A new release of Photopea is here! It has 93 064 lines of code. Play with it at the main site.

- - - -

New features

-
    -
  • Content-Aware Move Tool
  • -
  • Content-Aware Scale
  • -
  • Support for EXR format
  • -
  • Support for DXF format (AutoCAD)
  • -
  • Several bugs fixed
  • -
- -

Content-Aware move tool

- -

The Content-Aware move tool allows you to move an object from one place to another. After it "cuts out" the object, the old location ("the hole") is filled with a content-aware fill, and the object is adapted to the surrounding area at the new location.

- - - -

Content-Aware Scale

- -

This tool is available under Edit - Content-Aware Scale. It works very similarly to the Free Transform, while trying not to distort the objects of the scene (such as people houses, trees, etc).

- -

Take a look at the examples below. The original image is in the middle, a "squeezed" version on the left, and the "stretched" version on the right. It is done with a Free transform on the top, and with a Content-Aware scale at the bottom.

- - - - - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-5-0-open-illustrator-files.html b/blog.photopea.com/photopea-5-0-open-illustrator-files.html deleted file mode 100644 index 395f61a..0000000 --- a/blog.photopea.com/photopea-5-0-open-illustrator-files.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - Photopea 5.0 – open Illustrator files! - - - - - - - -
-
-
- -
- January 12, 2021 -

Photopea 5.0 – open Illustrator files!

-
- -

A new release of Photopea is here! It has 98 893 lines of code. Play with it at the main site.

- - - -

New features

-
    -
  • Support for Adobe Illustrator files
  • -
  • Support for Adobe Fireworks files
  • -
  • Faster rendering of vector graphics
  • -
  • New filters in the Filter Gallery
  • -
  • Several bugs fixed
  • -
- -

Adobe Illustrator files (.AI)

- -

Adobe Illustrator is a popular tool for creating vector graphics. Starting today, you can open .AI files in Photopea.

- -

The structure of a document (paths, groups, clip groups), layer properties (opacity, blend modes) and other features are preserved. Raster images are preserved as Smart Objects. Text layers remain editable, text properties are preserved.

- - - -

Vector Patterns do not have any analogy in the PSD format. For now, a shape with a vector pattern is converted into a Smart Object with a vector mask.

- -

Gradient Meshes also do not have an analogy in the PSD format. For now, Photopea finds the brightest spot and the darkest spot in a Mesh, and draws a linear gradient between them.

- - - -

Photopea is not a professional vector editor and it can not fully replace Adobe Illustrator. However, it allows you to work with .AI files in a "PSD way", or convert AI files to PSD, SVG, PDF and other formats.

- -

Adobe Fireworks files (.PNG)

- -

Adobe Fireworks was a popular raster and vector editor, similar to Sketch App or Adobe XD. Its development stopped in 2012. It stored the work in .PNG files. These .PNG files could be opened in regular image viewers (and you could see a regular raster image). However, these PNG files contain additional data, and if you opened them in Adobe Fireworks, you could see many kinds of layers, folders, color and gradient fills, etc.

- -

Starting today, you can open such PNG files in Photopea (and see layers and other features), and convert them into the PSD format.

- -

Faster rendering of vector graphics

- -

We made the rendering of vector graphics about 2x faster. Thanks to this improvement, vector files (AI, SVG, PDF, Sketch, XD, Figma) are opened 15 to 30 % faster.

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-api.html b/blog.photopea.com/photopea-api.html deleted file mode 100644 index 3cb5537..0000000 --- a/blog.photopea.com/photopea-api.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - Photopea API - - - - - - - -
-
-
- -
- November 30, 2014 -

Photopea API

-
- -

Connect your webapps and services with Photopea using our first API.

- -

Features of API

- -

New API has two kinds of features:

-
    -
  • Passing data to Photopea - tell PP, which images you want to open, which additional brushes or fonts you want to use, etc.
  • -
  • Retrieving data from Photopea - when user is finished, the new image can be easily sent back to your server using File - Save to server
  • -
- -

See full documentation to find out more. We also have online test, where an entire folder of images becomes editable in Photopea by anyone using few lines of PHP code.

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/photopea-premium.html b/blog.photopea.com/photopea-premium.html deleted file mode 100644 index eac4182..0000000 --- a/blog.photopea.com/photopea-premium.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - Photopea Premium - - - - - - - -
-
-
- -
- September 17, 2016 -

Photopea Premium

-
- -

Starting today, you can upgrade your account to a Premium account. It does not give you any extra features, but it helps us improve Photopea for you.

- - -

Premium accounts

-

After logging into Photopea, you can open open the Account window with details about your account. There is an option to upgrade to Premium for 5 USD per month. After upgrading to Premium, your Account button becomes green and you can start being proud of yourself. You just helped Photopea get financing for the future development.

- -

Upgrading to Premium is completely voluntary. It is up to you, when and how often you upgrade. In the future, you may get access to beta features or extra themes, but right now, there is absolutely no difference.

- - account - - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/png-minifier-inside-photopea.html b/blog.photopea.com/png-minifier-inside-photopea.html deleted file mode 100644 index 9eedbda..0000000 --- a/blog.photopea.com/png-minifier-inside-photopea.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - PNG minifier inside Photopea - - - - - - - -
-
-
- -
- May 9, 2017 -

PNG minifier inside Photopea

-
- -

We have added a new feature to Photopea, which can significantly minify PNG images.

- - - Update!!! A separate app at UPNG.photopea.com. - -

PNG minification

- -

It is very popular to minify PNG images on the web to reduce the network traffic and make websites load faster. There are many free and commercial tools for it, which usually allow reducing the size of PNG files by 50 to 80 percent. TinyPNG is a very pupular service for PNG minification. The same company also offers a plugin for Adobe Photoshop for $50.

- -

Starting today, there is a PNG minification service built right into Photopea, anybody can use it for free. We decided to publish our efforts in an open-source library UPNG.js, which is also availabe to everybody for free.

- -

When minifying PNGs with such methods, there is a tiny loss in the quality. To use PNG minification, go to Photopea editor and open a file (or create a new one). Then, choose File - Save for web - PNG format. You can either leave the quality at 100% for a lossless PNG, or decrease it for minification. You can also see a preview of the result and the size of the new file.

- -

Examples

- -

Here are several examples of PNG minification. Click on the thumbnails to see an actual file.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
OriginalTinyPNGPhotopea: UPNG.js
31 638 B 12 409 B 11 102 B
75 628 B 21 212 B 17 522 B
105 035 B 37 192 B 33 885 B
62 896 B 18 413 B 14 715 B
23 262 B 7 275 B 5 251 B
-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/pngs/logo-pp.png b/blog.photopea.com/pngs/logo-pp.png deleted file mode 100644 index 5ef173a..0000000 Binary files a/blog.photopea.com/pngs/logo-pp.png and /dev/null differ diff --git a/blog.photopea.com/pngs/logo-t.png b/blog.photopea.com/pngs/logo-t.png deleted file mode 100644 index 903687c..0000000 Binary files a/blog.photopea.com/pngs/logo-t.png and /dev/null differ diff --git a/blog.photopea.com/pngs/logo.png b/blog.photopea.com/pngs/logo.png deleted file mode 100644 index d8afed9..0000000 Binary files a/blog.photopea.com/pngs/logo.png and /dev/null differ diff --git a/blog.photopea.com/pngs/mbike-pp.png b/blog.photopea.com/pngs/mbike-pp.png deleted file mode 100644 index 7492887..0000000 Binary files a/blog.photopea.com/pngs/mbike-pp.png and /dev/null differ diff --git a/blog.photopea.com/pngs/mbike-t.png b/blog.photopea.com/pngs/mbike-t.png deleted file mode 100644 index e1b6f52..0000000 Binary files a/blog.photopea.com/pngs/mbike-t.png and /dev/null differ diff --git a/blog.photopea.com/pngs/mbike.png b/blog.photopea.com/pngs/mbike.png deleted file mode 100644 index 399066b..0000000 Binary files a/blog.photopea.com/pngs/mbike.png and /dev/null differ diff --git a/blog.photopea.com/pngs/mouse-pp.png b/blog.photopea.com/pngs/mouse-pp.png deleted file mode 100644 index 2ed0b50..0000000 Binary files a/blog.photopea.com/pngs/mouse-pp.png and /dev/null differ diff --git a/blog.photopea.com/pngs/mouse-t.png b/blog.photopea.com/pngs/mouse-t.png deleted file mode 100644 index ee9811d..0000000 Binary files a/blog.photopea.com/pngs/mouse-t.png and /dev/null differ diff --git a/blog.photopea.com/pngs/mouse.png b/blog.photopea.com/pngs/mouse.png deleted file mode 100644 index f657748..0000000 Binary files a/blog.photopea.com/pngs/mouse.png and /dev/null differ diff --git a/blog.photopea.com/pngs/pea_new.png b/blog.photopea.com/pngs/pea_new.png deleted file mode 100644 index 61cbd4d..0000000 Binary files a/blog.photopea.com/pngs/pea_new.png and /dev/null differ diff --git a/blog.photopea.com/pngs/pea_old.png b/blog.photopea.com/pngs/pea_old.png deleted file mode 100644 index 2cf14fb..0000000 Binary files a/blog.photopea.com/pngs/pea_old.png and /dev/null differ diff --git a/blog.photopea.com/pngs/pea_orig.png b/blog.photopea.com/pngs/pea_orig.png deleted file mode 100644 index b413dbb..0000000 Binary files a/blog.photopea.com/pngs/pea_orig.png and /dev/null differ diff --git a/blog.photopea.com/pngs/pea_tiny.png b/blog.photopea.com/pngs/pea_tiny.png deleted file mode 100644 index 2e2b13d..0000000 Binary files a/blog.photopea.com/pngs/pea_tiny.png and /dev/null differ diff --git a/blog.photopea.com/pngs/pug-pp.png b/blog.photopea.com/pngs/pug-pp.png deleted file mode 100644 index 7cf0034..0000000 Binary files a/blog.photopea.com/pngs/pug-pp.png and /dev/null differ diff --git a/blog.photopea.com/pngs/pug-t.png b/blog.photopea.com/pngs/pug-t.png deleted file mode 100644 index a88beb2..0000000 Binary files a/blog.photopea.com/pngs/pug-t.png and /dev/null differ diff --git a/blog.photopea.com/pngs/pug.png b/blog.photopea.com/pngs/pug.png deleted file mode 100644 index 5857f1f..0000000 Binary files a/blog.photopea.com/pngs/pug.png and /dev/null differ diff --git a/blog.photopea.com/pngs/rose-icon-pp.png b/blog.photopea.com/pngs/rose-icon-pp.png deleted file mode 100644 index 4960614..0000000 Binary files a/blog.photopea.com/pngs/rose-icon-pp.png and /dev/null differ diff --git a/blog.photopea.com/pngs/rose-icon-t.png b/blog.photopea.com/pngs/rose-icon-t.png deleted file mode 100644 index 52458fb..0000000 Binary files a/blog.photopea.com/pngs/rose-icon-t.png and /dev/null differ diff --git a/blog.photopea.com/pngs/rose-icon.png b/blog.photopea.com/pngs/rose-icon.png deleted file mode 100644 index a97f207..0000000 Binary files a/blog.photopea.com/pngs/rose-icon.png and /dev/null differ diff --git a/blog.photopea.com/raw-support-in-photopea.html b/blog.photopea.com/raw-support-in-photopea.html deleted file mode 100644 index 72aa3a5..0000000 --- a/blog.photopea.com/raw-support-in-photopea.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - RAW support in Photopea - - - - - - - -
-
-
- -
- October 8, 2017 -

RAW support in Photopea

-
- -

Today, we are adding a new feature into Photopea: the support for RAW images.

- - -

RAW images are very popular among photographers. Unlike regular "web images" (like JPG or PNG), they contain raw information from the camera sensor. Such information can be processed in many ways, to generate many different regular images.

- -

Photopea supports the DNG format of raw images. When you open such file, you will see the Raw Photopea window. Here you can change some additional parameters. After you hit OK, Photopea will generate a regular image out of your raw file, and will open it as a new PSD document.

- - -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/surface-blur-and-median.html b/blog.photopea.com/surface-blur-and-median.html deleted file mode 100644 index f6e017b..0000000 --- a/blog.photopea.com/surface-blur-and-median.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - Surface Blur and Median - - - - - - - -
-
-
- -
- September 20, 2016 -

Surface Blur and Median

-
- -

Today, Photopea gets two new professional filters: Surface Blur filter and Median filter! Moreover, Photopea performs them much faster, than Photoshop and GIMP do, as you can see in the last section. See it in action at the main site. Our images come from Shell And Slate.

- - -

Surface Blur

- -

Surface Blur filter, which is known as Surface Blur in Adobe Photoshop and as Selective Gaussian Blur in Gimp, is an advanced image filter. It can denoise images, while preserving edges. You can use it to fix noisy photos or smooth out areas with a similar color.

- -

Try it now! (Filter - Blur - Surface Blur).

- - - -

Median Filter

- -

Median filter is another very common filter, which reduces noise and preserves edges. It can fix pixels or even small areas with damaged or missing color.

- -

Try it now! (Filter - Noise - Median).

- - - -

Performance and speed

- -

TL;DR: Photopea uses a more advanced algorithm, which allows it to run faster, even though it is written in Javascript.

- -

As a performance test, we tried to measure the time of computing Surface Blur with the Radius = 100 and the Threshold = 100 on a woman.jpg image (the previous example). Here are the results:

- - - - - - -
Image EditorTime
GIMP55 s
Photoshop2 s
Photopea0.6 s
- -

Let's analyze it with science! The reason of such performance is the computational complexity of a method, that is used by each program. Each program has to work with an image having N pixels and compute the filter for a radius of R pixels. GIMP perfroms N × R × R steps to compute the filter, while Photoshop performs N × R steps only. When you increase the radius twice, Photoshop computation takes twice more time, but GIMP takes four times more time.

- -

Photopea has two methods of computing the Surface Blur (or Median). First method performs N × R steps and another one performs N × 10 steps (the time remains the same for any radius). When radius is at most 10, it performs the first method, otherwise it performs the second method. The computation time can be expressed by a following chart.

- - - -

You can see, that for a radus of 10 pixels, Photopea is a lot slower than Photoshop, while both of them use the same method, that takes N × R steps. The reason of such speed is, that Photoshop has a parallel, multi-threaded implementation, while Photopea runs in a single thread now.

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/vectorize-bitmaps-in-photopea.html b/blog.photopea.com/vectorize-bitmaps-in-photopea.html deleted file mode 100644 index e4eab9e..0000000 --- a/blog.photopea.com/vectorize-bitmaps-in-photopea.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - Vectorize bitmaps in Photopea! - - - - - - - -
-
-
- -
- February 22, 2018 -

Vectorize bitmaps in Photopea!

-
- -

We just launched a new feature: bitmap to vector conversion. See how it works!

- - -

Raster-to-vector conversion (or bitmap tracing) is a common feature in many image editors. It is quite complex task and each program produces quite different results. Some free bitmap tracers are available in Vectorizer.io or in Inkscape.

- -

We just added such feature into Photopea and we are glad to announce, that it has better results, than Vectorizer.io and Inkscape. After we open our raster image (or select the right layer in a layered image), press Image - Vectorize Bitmap. We will see a special Vectorizer window.

- - - - -

We can see the original image on the left and the vector image on the right. We can move both images or zoom in / out. - We can also set two parameters: -

    -
  • Number of colors
  • -
  • Noise reduction
  • -
- The need of the noise reduction is detected automatically for each image and we recommend to keep that setting. - Once we are satisfied with the vector output, hit OK. Our original raster layer will be replaced with corresponding vector layers, ready for an additional vector editing, or for an export as SVG or PDF (File - Export As - ...).

- -

Try it yourself in the following demo with multiple images! (press Image - Vectorize Bitmap)

- -

Vectorize images in Photopea!

- -
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/will-it-work.html b/blog.photopea.com/will-it-work.html deleted file mode 100644 index 4e6396d..0000000 --- a/blog.photopea.com/will-it-work.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - Will it work? - - - - - - - -
-
-
- -
- June 29, 2014 -

Will it work?

-
- -

When creating a webapp or webpage, you have a very important dilemma.

- - -

You can use the latest technologies and offer a very good performance / appearance / interactivity, but your product will work only for small percentage of users, those with newest browsers. Or you can give up performance and focus on support and stability.

- -

While creating Photopea, I have had many such dilemmas. To make you aware of my decissions and capabilities of your browser, I have created a WillItWork page.

- -

You can see there, which browser features are required by current version of Photopea, and if they are supported in your browser. If you don't have some required feature in your browser, you can ask your browser vendor to add it, or search the internet for more details about that topic.

- -

WillItWork page is not perfect yet. I don't have an opportunity to test Photopea on all OSs and browsers. If the answer you see ("Yes" / "No") is not correct for your browser, let me know in the comments and I will extend the test, so it is more precise.

-
-
- -
- -
- - - - -
-
-
- - - - - -
- - \ No newline at end of file diff --git a/blog.photopea.com/wp-content/themes/simplex/style.css b/blog.photopea.com/wp-content/themes/simplex/style.css deleted file mode 100644 index b34f7ca..0000000 --- a/blog.photopea.com/wp-content/themes/simplex/style.css +++ /dev/null @@ -1,185 +0,0 @@ -* { - margin: 0; - padding: 0; -} - -#header { - background-image: linear-gradient(rgb(84, 180, 235), rgb(47, 164, 231)); - font-size: 1.1em; - color:#ffffff; - padding: 1.5em 0; - text-align: center; - border-bottom: 1.5em solid #ceedf4; - text-shadow: 8px 8px 16px rgba(0,0,0, 0.5); -} - -#header .title{ - display:block; - font-size: 3.5em; - margin-bottom:0.25em; -} - -#header a{ - text-decoration:none; - color: #ffffff; - font-weight:bold; -} -#header .curr{ - color: #ffff88; -} - -#header img{ - margin-bottom:-3px; - filter: drop-shadow(8px 8px 8px rgba(0,0,0, 0.5)); -} - -.post { - min-height:100px; -} - -.post img, .post video -{ - display:block; - margin:0px auto 15px auto; -} -.post .fullw { /* images in posts */ - width : 100%; - margin-bottom: 1.2em; -} -.post .inline { /* Tool images at /learn */ - display:inline; - height:40px; - margin:0 0.5em 0 0; -} - -#footer { - text-align: center; - padding: 2em; - background: #252525; - color: #aaa; -} - -.entry { - line-height: 1.5em; - margin-top: 10px; -} - -.post p, .post ul { - line-height: 1.5em; - margin: 1em 0; -} - -body { - font-family: "Open Sans", sans-serif; - font-size:1.05em; - color: rgba(0,0,0,0.8); - background-color:rgb(253,253,253); -} -a { - color: rgb(41, 153, 240); -} -.date { - font-size: 0.9em; - color: rgb(158, 171, 179); -} - -#main { /* SimpleX addition to center as well as make header footer 100% */ - min-height: 30em; - position:relative; - - display: flex; - flex-wrap: wrap; - } -#main, #disqus_thread { - max-width: 46em; - margin: 15px auto 30px auto; - padding: 0 20px; -} -#content ul { - margin-left: 4em; - line-height: 1.7em; -} - -h1, h2, h3 { - font-weight:bold; - letter-spacing: -.02em; - text-indent: -2px; - margin-bottom:0.7em; -} - -h1 { - font-size: 2.5em; - margin-top: 0.0em; -} -h2 { - font-size:1.9em; - margin-top: 1.2em; -} -h3 { - font-size: 1.4em; - margin-top: 1.2em; -} -h4 { - font-size: 1.15em; - margin-top: 1.2em; -} - -.postlink { /* Blog : links to articles */ - font-weight:bold; - font-size: 1.8em; - display:block; - color: inherit; -} - -#sidebar { - margin-top: 0.7em; -} -#sidebar h3 { /* /learn Topics */ - font-size: 2em; - margin-bottom: 0.7em; - margin-top: 0; -} -#sidebar ul li { - list-style-type: none; - list-style-image: none; - margin: 0 0 0.45em 0; -} -#sidebar ul .lvl0 { - margin-top: 1.2em; -} -#sidebar ul .lvl1 { - margin-left: 1.5em; - font-size: 0.92em; -} -#sidebar ul .active { - color: rgb(84, 180, 235); -} -#sidebar ul a { - text-decoration: none; - color: inherit; - font-weight:bold; -} - - -table{ - border-collapse: collapse; - margin: 0px auto 20px auto; -} -td, th{ - padding:4px 8px; - border: 1px solid #777; - margin:0; -} - -pre, code { /* for code in API spec. */ - background-color: #f1f1f1; - padding: 0.2em 0.5em; -} -pre { - padding: 0.5em 1em; - margin: 1em 0; - line-height:1.4em; - white-space: pre-wrap; /* break too long lines for small screens */ - overflow: hidden; -} - diff --git a/blog.photopea.com/wp-content/uploads/2013/09/916FD094-7E37-4143-9FEC-64FC0A1BBA1E.jpg b/blog.photopea.com/wp-content/uploads/2013/09/916FD094-7E37-4143-9FEC-64FC0A1BBA1E.jpg deleted file mode 100644 index de30407..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2013/09/916FD094-7E37-4143-9FEC-64FC0A1BBA1E.jpg and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2013/11/pp_0.4.png b/blog.photopea.com/wp-content/uploads/2013/11/pp_0.4.png deleted file mode 100644 index cddff10..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2013/11/pp_0.4.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2014/02/pp_0.5.png b/blog.photopea.com/wp-content/uploads/2014/02/pp_0.5.png deleted file mode 100644 index a9d688e..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2014/02/pp_0.5.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2016/02/smart_object1.png b/blog.photopea.com/wp-content/uploads/2016/02/smart_object1.png deleted file mode 100644 index f3d178d..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2016/02/smart_object1.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2016/05/pea.png b/blog.photopea.com/wp-content/uploads/2016/05/pea.png deleted file mode 100644 index b33d8d6..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2016/05/pea.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2016/06/clipping.png b/blog.photopea.com/wp-content/uploads/2016/06/clipping.png deleted file mode 100644 index 127b89e..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2016/06/clipping.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2016/08/languages.png b/blog.photopea.com/wp-content/uploads/2016/08/languages.png deleted file mode 100644 index 0072f75..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2016/08/languages.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2016/08/warp.png b/blog.photopea.com/wp-content/uploads/2016/08/warp.png deleted file mode 100644 index 578f7a9..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2016/08/warp.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2016/09/account1.png b/blog.photopea.com/wp-content/uploads/2016/09/account1.png deleted file mode 100644 index 7dc1fa0..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2016/09/account1.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2016/09/head.jpg b/blog.photopea.com/wp-content/uploads/2016/09/head.jpg deleted file mode 100644 index fb2267b..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2016/09/head.jpg and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2016/09/image.png b/blog.photopea.com/wp-content/uploads/2016/09/image.png deleted file mode 100644 index ba65c88..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2016/09/image.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2016/09/smart_filters.png b/blog.photopea.com/wp-content/uploads/2016/09/smart_filters.png deleted file mode 100644 index 59b1a64..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2016/09/smart_filters.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2016/09/woman-sb.jpg b/blog.photopea.com/wp-content/uploads/2016/09/woman-sb.jpg deleted file mode 100644 index 414f9c8..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2016/09/woman-sb.jpg and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/01/GradientFill.png b/blog.photopea.com/wp-content/uploads/2017/01/GradientFill.png deleted file mode 100644 index e677cbb..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/01/GradientFill.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/01/PattButton.png b/blog.photopea.com/wp-content/uploads/2017/01/PattButton.png deleted file mode 100644 index ec395dc..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/01/PattButton.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/01/distort.jpg b/blog.photopea.com/wp-content/uploads/2017/01/distort.jpg deleted file mode 100644 index b5cf018..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/01/distort.jpg and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/01/warp.jpg b/blog.photopea.com/wp-content/uploads/2017/01/warp.jpg deleted file mode 100644 index 9c27276..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/01/warp.jpg and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/02/smudge.png b/blog.photopea.com/wp-content/uploads/2017/02/smudge.png deleted file mode 100644 index 2ff82fd..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/02/smudge.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/03/asia.jpg b/blog.photopea.com/wp-content/uploads/2017/03/asia.jpg deleted file mode 100644 index 427cc09..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/03/asia.jpg and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/03/beach.jpg b/blog.photopea.com/wp-content/uploads/2017/03/beach.jpg deleted file mode 100644 index a825874..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/03/beach.jpg and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/03/cow.jpg b/blog.photopea.com/wp-content/uploads/2017/03/cow.jpg deleted file mode 100644 index 6ad5584..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/03/cow.jpg and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/03/healing_tools.png b/blog.photopea.com/wp-content/uploads/2017/03/healing_tools.png deleted file mode 100644 index d60039a..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/03/healing_tools.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/03/pp_gold.jpg b/blog.photopea.com/wp-content/uploads/2017/03/pp_gold.jpg deleted file mode 100644 index c209fee..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/03/pp_gold.jpg and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/04/sketch.png b/blog.photopea.com/wp-content/uploads/2017/04/sketch.png deleted file mode 100644 index 79bed03..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/04/sketch.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/06/picture_narrow.jpg b/blog.photopea.com/wp-content/uploads/2017/06/picture_narrow.jpg deleted file mode 100644 index ba602a7..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/06/picture_narrow.jpg and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/09/css_panel.png b/blog.photopea.com/wp-content/uploads/2017/09/css_panel.png deleted file mode 100644 index a8c2489..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/09/css_panel.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/10/rawpp.jpg b/blog.photopea.com/wp-content/uploads/2017/10/rawpp.jpg deleted file mode 100644 index fd974d1..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/10/rawpp.jpg and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2017/12/pp_quick_select.mp4 b/blog.photopea.com/wp-content/uploads/2017/12/pp_quick_select.mp4 deleted file mode 100644 index be6d3f7..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2017/12/pp_quick_select.mp4 and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2018/01/fnt_preview.png b/blog.photopea.com/wp-content/uploads/2018/01/fnt_preview.png deleted file mode 100644 index 006baba..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2018/01/fnt_preview.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2018/02/Adobe_PDF.png b/blog.photopea.com/wp-content/uploads/2018/02/Adobe_PDF.png deleted file mode 100644 index eaab172..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2018/02/Adobe_PDF.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2018/02/vectorize.png b/blog.photopea.com/wp-content/uploads/2018/02/vectorize.png deleted file mode 100644 index 76f06c0..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2018/02/vectorize.png and /dev/null differ diff --git a/blog.photopea.com/wp-content/uploads/2018/04/redge.jpg b/blog.photopea.com/wp-content/uploads/2018/04/redge.jpg deleted file mode 100644 index c470c70..0000000 Binary files a/blog.photopea.com/wp-content/uploads/2018/04/redge.jpg and /dev/null differ diff --git a/upng.photopea.com/bunny.png b/upng.photopea.com/bunny.png deleted file mode 100644 index 71d762d..0000000 Binary files a/upng.photopea.com/bunny.png and /dev/null differ diff --git a/upng.photopea.com/grass.png b/upng.photopea.com/grass.png deleted file mode 100644 index 6165b0e..0000000 Binary files a/upng.photopea.com/grass.png and /dev/null differ diff --git a/upng.photopea.com/grid.png b/upng.photopea.com/grid.png deleted file mode 100644 index 657af90..0000000 Binary files a/upng.photopea.com/grid.png and /dev/null differ diff --git a/upng.photopea.com/index.html b/upng.photopea.com/index.html deleted file mode 100644 index 26d8d09..0000000 --- a/upng.photopea.com/index.html +++ /dev/null @@ -1,285 +0,0 @@ - - - - - - - - - - - UPNG: fast PNG minifier - - - - - - - - - - - - - - - - - -
-

UPNG
fast PNG minifier by Photopea

- - - - Check out UPNG.js - - - Follow @photopeacom - -
- -
-
-
-
-

Shrink and optimize images. - Set the ideal balance between the quality and the size.

-
-

Comparison with TinyPNG.com

-

- - Drag and drop your PNG files! - -
-
-
-
- -
- -
- -
- - - diff --git a/upng.photopea.com/js/UPNG.js b/upng.photopea.com/js/UPNG.js deleted file mode 100644 index 8812ea1..0000000 --- a/upng.photopea.com/js/UPNG.js +++ /dev/null @@ -1,899 +0,0 @@ - -;(function(){ -var UPNG = {}; - -// Make available for import by `require()` -var pako; -if (typeof module == "object") {module.exports = UPNG;} else {window.UPNG = UPNG;} -if (typeof require == "function") {pako = require("pako");} else {pako = window.pako;} -function log() { if (typeof process=="undefined" || process.env.NODE_ENV=="development") console.log.apply(console, arguments); } -(function(UPNG, pako){ - - - - -UPNG.toRGBA8 = function(out) -{ - var w = out.width, h = out.height; - if(out.tabs.acTL==null) return [UPNG.toRGBA8.decodeImage(out.data, w, h, out).buffer]; - - var frms = []; - if(out.frames[0].data==null) out.frames[0].data = out.data; - - var img, empty = new Uint8Array(w*h*4); - for(var i=0; i>3)]>>(7-((i&7)<<0)))& 1), cj=3*j; bf[qi]=p[cj]; bf[qi+1]=p[cj+1]; bf[qi+2]=p[cj+2]; bf[qi+3]=(j>2)]>>(6-((i&3)<<1)))& 3), cj=3*j; bf[qi]=p[cj]; bf[qi+1]=p[cj+1]; bf[qi+2]=p[cj+2]; bf[qi+3]=(j>1)]>>(4-((i&1)<<2)))&15), cj=3*j; bf[qi]=p[cj]; bf[qi+1]=p[cj+1]; bf[qi+2]=p[cj+2]; bf[qi+3]=(j>3]>>(7 -((i&7) )))& 1), al=(gr==tr*255)?0:255; bf32[i]=(al<<24)|(gr<<16)|(gr<<8)|gr; } - if(depth== 2) for(var i=0; i>2]>>(6 -((i&3)<<1)))& 3), al=(gr==tr* 85)?0:255; bf32[i]=(al<<24)|(gr<<16)|(gr<<8)|gr; } - if(depth== 4) for(var i=0; i>1]>>(4 -((i&1)<<2)))&15), al=(gr==tr* 17)?0:255; bf32[i]=(al<<24)|(gr<<16)|(gr<<8)|gr; } - if(depth== 8) for(var i=0; i>3, bpl = Math.ceil(w*bpp/8); - var img = new Uint8Array( h * bpl ); - var di = 0; - - var starting_row = [ 0, 0, 4, 0, 2, 0, 1 ]; - var starting_col = [ 0, 4, 0, 2, 0, 1, 0 ]; - var row_increment = [ 8, 8, 8, 4, 4, 2, 2 ]; - var col_increment = [ 8, 8, 4, 4, 2, 2, 1 ]; - - var pass=0; - while(pass<7) - { - var ri = row_increment[pass], ci = col_increment[pass]; - var sw = 0, sh = 0; - var cr = starting_row[pass]; while(cr>3]; val = (val>>(7-(cdi&7)))&1; - img[row*bpl + (col>>3)] |= (val << (7-((col&3)<<0))); - } - if(bpp==2) { - var val = data[cdi>>3]; val = (val>>(6-(cdi&7)))&3; - img[row*bpl + (col>>2)] |= (val << (6-((col&3)<<1))); - } - if(bpp==4) { - var val = data[cdi>>3]; val = (val>>(4-(cdi&7)))&15; - img[row*bpl + (col>>1)] |= (val << (4-((col&1)<<2))); - } - if(bpp>=8) { - var ii = row*bpl+col*cbpp; - for(var j=0; j>3)+j]; - } - cdi+=bpp; col+=ci; - } - y++; row += ri; - } - if(sw*sh!=0) di += sh * (1 + bpll); - pass = pass + 1; - } - return img; -} - -UPNG.decode._getBPP = function(out) { - var noc = [1,null,3,1,2,null,4][out.ctype]; - return noc * out.depth; -} - -UPNG.decode._filterZero = function(data, out, off, w, h) -{ - var bpp = UPNG.decode._getBPP(out), bpl = Math.ceil(w*bpp/8), paeth = UPNG.decode._paeth; - bpp = Math.ceil(bpp/8); - - for(var y=0; y>1) )&255; - if(type==4) for(var x=bpp; x>1))&255; - for(var x=bpp; x>1) )&255; } - - if(type==4) { for(var x= 0; x>8)&255; buff[p+1] = n&255; }, - readUint : function(buff,p) { return (buff[p]*(256*256*256)) + ((buff[p+1]<<16) | (buff[p+2]<< 8) | buff[p+3]); }, - writeUint : function(buff,p,n){ buff[p]=(n>>24)&255; buff[p+1]=(n>>16)&255; buff[p+2]=(n>>8)&255; buff[p+3]=n&255; }, - readASCII : function(buff,p,l){ var s = ""; for(var i=0; i=0 && yoff>=0) { si = (y*sw+x)<<2; ti = (( yoff+y)*tw+xoff+x)<<2; } - else { si = ((-yoff+y)*sw-xoff+x)<<2; ti = (y*tw+x)<<2; } - - if (mode==0) { tb[ti] = sb[si]; tb[ti+1] = sb[si+1]; tb[ti+2] = sb[si+2]; tb[ti+3] = sb[si+3]; } - else if(mode==1) { - var fa = sb[si+3]*(1/255), fr=sb[si]*fa, fg=sb[si+1]*fa, fb=sb[si+2]*fa; - var ba = tb[ti+3]*(1/255), br=tb[ti]*ba, bg=tb[ti+1]*ba, bb=tb[ti+2]*ba; - - var ifa=1-fa, oa = fa+ba*ifa, ioa = (oa==0?0:1/oa); - tb[ti+3] = 255*oa; - tb[ti+0] = (fr+br*ifa)*ioa; - tb[ti+1] = (fg+bg*ifa)*ioa; - tb[ti+2] = (fb+bb*ifa)*ioa; - } - else if(mode==2){ // copy only differences, otherwise zero - var fa = sb[si+3], fr=sb[si], fg=sb[si+1], fb=sb[si+2]; - var ba = tb[ti+3], br=tb[ti], bg=tb[ti+1], bb=tb[ti+2]; - if(fa==ba && fr==br && fg==bg && fb==bb) { tb[ti]=0; tb[ti+1]=0; tb[ti+2]=0; tb[ti+3]=0; } - else { tb[ti]=fr; tb[ti+1]=fg; tb[ti+2]=fb; tb[ti+3]=fa; } - } - else if(mode==3){ // check if can be blended - var fa = sb[si+3], fr=sb[si], fg=sb[si+1], fb=sb[si+2]; - var ba = tb[ti+3], br=tb[ti], bg=tb[ti+1], bb=tb[ti+2]; - if(fa==ba && fr==br && fg==bg && fb==bb) continue; - //if(fa!=255 && ba!=0) return false; - if(fa<220 && ba>20) return false; - } - } - return true; -} - - - - - -UPNG.encode = function(bufs, w, h, ps, dels, forbidPlte) -{ - if(ps==null) ps=0; - if(forbidPlte==null) forbidPlte = false; - - var nimg = UPNG.encode.compress(bufs, w, h, ps, false, forbidPlte); - UPNG.encode.compressPNG(nimg, -1); - - return UPNG.encode._main(nimg, w, h, dels); -} - -UPNG.encodeLL = function(bufs, w, h, cc, ac, depth, dels) { - var nimg = { ctype: 0 + (cc==1 ? 0 : 2) + (ac==0 ? 0 : 4), depth: depth, frames: [] }; - - var bipp = (cc+ac)*depth, bipl = bipp * w; - for(var i=0; i1, pltAlpha = false; - - var leng = 8 + (16+5+4) /*+ (9+4)*/ + (anim ? 20 : 0); - if(nimg.ctype==3) { - var dl = nimg.plte.length; - for(var i=0; i>>24)!=255) pltAlpha = true; - leng += (8 + dl*3 + 4) + (pltAlpha ? (8 + dl*1 + 4) : 0); - } - for(var j=0; j>>8)&255, b=(c>>>16)&255; - data[offset+ti+0]=r; data[offset+ti+1]=g; data[offset+ti+2]=b; - } - offset+=dl*3; - wUi(data,offset,crc(data,offset-dl*3-4,dl*3+4)); offset+=4; // crc - - if(pltAlpha) { - wUi(data,offset, dl); offset+=4; - wAs(data,offset,"tRNS"); offset+=4; - for(var i=0; i>>24)&255; - offset+=dl; - wUi(data,offset,crc(data,offset-dl-4,dl+4)); offset+=4; // crc - } - } - - var fi = 0; - for(var j=0; j>2, bln>>2)); - for(var j=0; jnw && c==img32[i-nw]) ind[i]=ind[i-nw]; - else { - var cmc = cmap[c]; - if(cmc==null) { cmap[c]=cmc=plte.length; plte.push(c); if(plte.length>=300) break; } - ind[i]=cmc; - } - } - } - //console.log("make palette", Date.now()-time); time = Date.now(); - } - - var cc=plte.length; //console.log("colors:",cc); - if(cc<=256 && forbidPlte==false) { - if(cc<= 2) depth=1; else if(cc<= 4) depth=2; else if(cc<=16) depth=4; else depth=8; - if(forGIF) depth=8; - } - - for(var j=0; j>1)] |= (inj[ii+x]<<(4-(x&1)*4)); - else if(depth==2) for(var x=0; x>2)] |= (inj[ii+x]<<(6-(x&3)*2)); - else if(depth==1) for(var x=0; x>3)] |= (inj[ii+x]<<(7-(x&7)*1)); - } - cimg=nimg; ctype=3; bpp=1; - } - else if(gotAlpha==false && frms.length==1) { // some next "reduced" frames may contain alpha for blending - var nimg = new Uint8Array(nw*nh*3), area=nw*nh; - for(var i=0; i palette indices", Date.now()-time); time = Date.now(); - - return {ctype:ctype, depth:depth, plte:plte, frames:frms }; -} -UPNG.encode.framize = function(bufs,w,h,forGIF,brute) { - var frms = []; - for(var j=0; jmax) max=x; - if(ymay) may=y; - } - } - var sarea = (max==-1) ? 1 : (max-mix+1)*(may-miy+1); - if(sarea500000 && (t==2 || t==3 || t==4)) continue; - for(var y=0; y>1) +256)&255; - if(type==4) for(var x=bpp; x>1))&255; - for(var x=bpp; x>1))&255; } - if(type==4) { for(var x= 0; x>> 1); - else c = c >>> 1; - } - tab[n] = c; } - return tab; })(), - update : function(c, buf, off, len) { - for (var i=0; i>> 8); - return c; - }, - crc : function(b,o,l) { return UPNG.crc.update(0xffffffff,b,o,l) ^ 0xffffffff; } -} - - -UPNG.quantize = function(abuf, ps) -{ - var oimg = new Uint8Array(abuf), nimg = oimg.slice(0), nimg32 = new Uint32Array(nimg.buffer); - - var KD = UPNG.quantize.getKDtree(nimg, ps); - var root = KD[0], leafs = KD[1]; - - var planeDst = UPNG.quantize.planeDst; - var sb = oimg, tb = nimg32, len=sb.length; - - var inds = new Uint8Array(oimg.length>>2); - for(var i=0; i>2] = nd.ind; - tb[i>>2] = nd.est.rgba; - } - return { abuf:nimg.buffer, inds:inds, plte:leafs }; -} - -UPNG.quantize.getKDtree = function(nimg, ps, err) { - if(err==null) err = 0.0001; - var nimg32 = new Uint32Array(nimg.buffer); - - var root = {i0:0, i1:nimg.length, bst:null, est:null, tdst:0, left:null, right:null }; // basic statistic, extra statistic - root.bst = UPNG.quantize.stats( nimg,root.i0, root.i1 ); root.est = UPNG.quantize.estats( root.bst ); - var leafs = [root]; - - while(leafs.length maxL) { maxL=leafs[i].est.L; mi=i; } - if(maxL=s0 || node.i1<=s0); - //console.log(maxL, leafs.length, mi); - if(s0wrong) { node.est.L=0; continue; } - - - var ln = {i0:node.i0, i1:s0, bst:null, est:null, tdst:0, left:null, right:null }; ln.bst = UPNG.quantize.stats( nimg, ln.i0, ln.i1 ); - ln.est = UPNG.quantize.estats( ln.bst ); - var rn = {i0:s0, i1:node.i1, bst:null, est:null, tdst:0, left:null, right:null }; rn.bst = {R:[], m:[], N:node.bst.N-ln.bst.N}; - for(var i=0; i<16; i++) rn.bst.R[i] = node.bst.R[i]-ln.bst.R[i]; - for(var i=0; i< 4; i++) rn.bst.m[i] = node.bst.m[i]-ln.bst.m[i]; - rn.est = UPNG.quantize.estats( rn.bst ); - - node.left = ln; node.right = rn; - leafs[mi]=ln; leafs.push(rn); - } - leafs.sort(function(a,b) { return b.bst.N-a.bst.N; }); - for(var i=0; i0) { node0=nd.right; node1=nd.left; } - - var ln = UPNG.quantize.getNearest(node0, r,g,b,a); - if(ln.tdst<=planeDst*planeDst) return ln; - var rn = UPNG.quantize.getNearest(node1, r,g,b,a); - return rn.tdst eMq) i1-=4; - if(i0>=i1) break; - - var t = nimg32[i0>>2]; nimg32[i0>>2] = nimg32[i1>>2]; nimg32[i1>>2]=t; - - i0+=4; i1-=4; - } - while(vecDot(nimg, i0, e)>eMq) i0-=4; - return i0+4; -} -UPNG.quantize.vecDot = function(nimg, i, e) -{ - return nimg[i]*e[0] + nimg[i+1]*e[1] + nimg[i+2]*e[2] + nimg[i+3]*e[3]; -} -UPNG.quantize.stats = function(nimg, i0, i1){ - var R = [0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0]; - var m = [0,0,0,0]; - var N = (i1-i0)>>2; - for(var i=i0; i>>0) }; -} -UPNG.M4 = { - multVec : function(m,v) { - return [ - m[ 0]*v[0] + m[ 1]*v[1] + m[ 2]*v[2] + m[ 3]*v[3], - m[ 4]*v[0] + m[ 5]*v[1] + m[ 6]*v[2] + m[ 7]*v[3], - m[ 8]*v[0] + m[ 9]*v[1] + m[10]*v[2] + m[11]*v[3], - m[12]*v[0] + m[13]*v[1] + m[14]*v[2] + m[15]*v[3] - ]; - }, - dot : function(x,y) { return x[0]*y[0]+x[1]*y[1]+x[2]*y[2]+x[3]*y[3]; }, - sml : function(a,y) { return [a*y[0],a*y[1],a*y[2],a*y[3]]; } -} - -UPNG.encode.concatRGBA = function(bufs, roundAlpha) { - var tlen = 0; - for(var i=0; i>> 1); - else c = c >>> 1; - } - tab[n] = c; } - return tab; })(), - update : function(c, buf, off, len) { - for (var i=0; i>> 8); - return c; - }, - crc : function(b,o,l) { return UPNG.crc.update(0xffffffff,b,o,l) ^ 0xffffffff; } -} - -UZIP.bin = { - readUshort : function(buff,p) { return (buff[p]) | (buff[p+1]<<8); }, - writeUshort: function(buff,p,n){ buff[p] = (n)&255; buff[p+1] = (n>>8)&255; }, - readUint : function(buff,p) { return (buff[p+3]*(256*256*256)) + ((buff[p+2]<<16) | (buff[p+1]<< 8) | buff[p]); }, - writeUint : function(buff,p,n){ buff[p+3]=(n>>24)&255; buff[p+2]=(n>>16)&255; buff[p+1]=(n>>8)&255; buff[p]=n&255; }, - readASCII : function(buff,p,l){ var s = ""; for(var i=0; i0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var a=o.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==b)throw new Error(d[a]);if(e.header&&o.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?h.string2buf(e.dictionary):"[object ArrayBuffer]"===_.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=o.deflateSetDictionary(this.strm,n),a!==b)throw new Error(d[a]);this._dict_set=!0}}function n(t,e){var a=new i(e);if(a.push(t,!0),a.err)throw a.msg||d[a.err];return a.result}function r(t,e){return e=e||{},e.raw=!0,n(t,e)}function s(t,e){return e=e||{},e.gzip=!0,n(t,e)}var o=t("./zlib/deflate"),l=t("./utils/common"),h=t("./utils/strings"),d=t("./zlib/messages"),f=t("./zlib/zstream"),_=Object.prototype.toString,u=0,c=4,b=0,g=1,m=2,w=-1,p=0,v=8;i.prototype.push=function(t,e){var a,i,n=this.strm,r=this.options.chunkSize;if(this.ended)return!1;i=e===~~e?e:e===!0?c:u,"string"==typeof t?n.input=h.string2buf(t):"[object ArrayBuffer]"===_.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;do{if(0===n.avail_out&&(n.output=new l.Buf8(r),n.next_out=0,n.avail_out=r),a=o.deflate(n,i),a!==g&&a!==b)return this.onEnd(a),this.ended=!0,!1;0!==n.avail_out&&(0!==n.avail_in||i!==c&&i!==m)||("string"===this.options.to?this.onData(h.buf2binstring(l.shrinkBuf(n.output,n.next_out))):this.onData(l.shrinkBuf(n.output,n.next_out)))}while((n.avail_in>0||0===n.avail_out)&&a!==g);return i===c?(a=o.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===b):i!==m||(this.onEnd(b),n.avail_out=0,!0)},i.prototype.onData=function(t){this.chunks.push(t)},i.prototype.onEnd=function(t){t===b&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},a.Deflate=i,a.deflate=n,a.deflateRaw=r,a.gzip=s},{"./utils/common":3,"./utils/strings":4,"./zlib/deflate":8,"./zlib/messages":13,"./zlib/zstream":15}],2:[function(t,e,a){"use strict";function i(t){if(!(this instanceof i))return new i(t);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0===(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var a=s.inflateInit2(this.strm,e.windowBits);if(a!==h.Z_OK)throw new Error(d[a]);this.header=new _,s.inflateGetHeader(this.strm,this.header)}function n(t,e){var a=new i(e);if(a.push(t,!0),a.err)throw a.msg||d[a.err];return a.result}function r(t,e){return e=e||{},e.raw=!0,n(t,e)}var s=t("./zlib/inflate"),o=t("./utils/common"),l=t("./utils/strings"),h=t("./zlib/constants"),d=t("./zlib/messages"),f=t("./zlib/zstream"),_=t("./zlib/gzheader"),u=Object.prototype.toString;i.prototype.push=function(t,e){var a,i,n,r,d,f,_=this.strm,c=this.options.chunkSize,b=this.options.dictionary,g=!1;if(this.ended)return!1;i=e===~~e?e:e===!0?h.Z_FINISH:h.Z_NO_FLUSH,"string"==typeof t?_.input=l.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?_.input=new Uint8Array(t):_.input=t,_.next_in=0,_.avail_in=_.input.length;do{if(0===_.avail_out&&(_.output=new o.Buf8(c),_.next_out=0,_.avail_out=c),a=s.inflate(_,h.Z_NO_FLUSH),a===h.Z_NEED_DICT&&b&&(f="string"==typeof b?l.string2buf(b):"[object ArrayBuffer]"===u.call(b)?new Uint8Array(b):b,a=s.inflateSetDictionary(this.strm,f)),a===h.Z_BUF_ERROR&&g===!0&&(a=h.Z_OK,g=!1),a!==h.Z_STREAM_END&&a!==h.Z_OK)return this.onEnd(a),this.ended=!0,!1;_.next_out&&(0!==_.avail_out&&a!==h.Z_STREAM_END&&(0!==_.avail_in||i!==h.Z_FINISH&&i!==h.Z_SYNC_FLUSH)||("string"===this.options.to?(n=l.utf8border(_.output,_.next_out),r=_.next_out-n,d=l.buf2string(_.output,n),_.next_out=r,_.avail_out=c-r,r&&o.arraySet(_.output,_.output,n,r,0),this.onData(d)):this.onData(o.shrinkBuf(_.output,_.next_out)))),0===_.avail_in&&0===_.avail_out&&(g=!0)}while((_.avail_in>0||0===_.avail_out)&&a!==h.Z_STREAM_END);return a===h.Z_STREAM_END&&(i=h.Z_FINISH),i===h.Z_FINISH?(a=s.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===h.Z_OK):i!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),_.avail_out=0,!0)},i.prototype.onData=function(t){this.chunks.push(t)},i.prototype.onEnd=function(t){t===h.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},a.Inflate=i,a.inflate=n,a.inflateRaw=r,a.ungzip=n},{"./utils/common":3,"./utils/strings":4,"./zlib/constants":6,"./zlib/gzheader":9,"./zlib/inflate":11,"./zlib/messages":13,"./zlib/zstream":15}],3:[function(t,e,a){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;a.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var i in a)a.hasOwnProperty(i)&&(t[i]=a[i])}}return t},a.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,a,i,n){if(e.subarray&&t.subarray)return void t.set(e.subarray(a,a+i),n);for(var r=0;r=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;o[254]=o[254]=1,a.string2buf=function(t){var e,a,i,r,s,o=t.length,l=0;for(r=0;r>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},a.buf2binstring=function(t){return i(t,t.length)},a.binstring2buf=function(t){for(var e=new n.Buf8(t.length),a=0,i=e.length;a4)h[n++]=65533,a+=s-1;else{for(r&=2===s?31:3===s?15:7;s>1&&a1?h[n++]=65533:r<65536?h[n++]=r:(r-=65536,h[n++]=55296|r>>10&1023,h[n++]=56320|1023&r)}return i(h,n)},a.utf8border=function(t,e){var a;for(e=e||t.length,e>t.length&&(e=t.length),a=e-1;a>=0&&128===(192&t[a]);)a--;return a<0?e:0===a?e:a+o[t[a]]>e?a:e}},{"./common":3}],5:[function(t,e,a){"use strict";function i(t,e,a,i){for(var n=65535&t|0,r=t>>>16&65535|0,s=0;0!==a;){s=a>2e3?2e3:a,a-=s;do n=n+e[i++]|0,r=r+n|0;while(--s);n%=65521,r%=65521}return n|r<<16|0}e.exports=i},{}],6:[function(t,e,a){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],7:[function(t,e,a){"use strict";function i(){for(var t,e=[],a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}function n(t,e,a,i){var n=r,s=i+a;t^=-1;for(var o=i;o>>8^n[255&(t^e[o])];return t^-1}var r=i();e.exports=n},{}],8:[function(t,e,a){"use strict";function i(t,e){return t.msg=D[e],e}function n(t){return(t<<1)-(t>4?9:0)}function r(t){for(var e=t.length;--e>=0;)t[e]=0}function s(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(R.arraySet(t.output,e.pending_buf,e.pending_out,a,t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function o(t,e){C._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,s(t.strm)}function l(t,e){t.pending_buf[t.pending++]=e}function h(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function d(t,e,a,i){var n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,R.arraySet(e,t.input,t.next_in,n,a),1===t.state.wrap?t.adler=N(t.adler,e,n,a):2===t.state.wrap&&(t.adler=O(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)}function f(t,e){var a,i,n=t.max_chain_length,r=t.strstart,s=t.prev_length,o=t.nice_match,l=t.strstart>t.w_size-ft?t.strstart-(t.w_size-ft):0,h=t.window,d=t.w_mask,f=t.prev,_=t.strstart+dt,u=h[r+s-1],c=h[r+s];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do if(a=e,h[a+s]===c&&h[a+s-1]===u&&h[a]===h[r]&&h[++a]===h[r+1]){r+=2,a++;do;while(h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&r<_);if(i=dt-(_-r),r=_-dt,i>s){if(t.match_start=e,s=i,i>=o)break;u=h[r+s-1],c=h[r+s]}}while((e=f[e&d])>l&&0!==--n);return s<=t.lookahead?s:t.lookahead}function _(t){var e,a,i,n,r,s=t.w_size;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-ft)){R.arraySet(t.window,t.window,s,s,0),t.match_start-=s,t.strstart-=s,t.block_start-=s,a=t.hash_size,e=a;do i=t.head[--e],t.head[e]=i>=s?i-s:0;while(--a);a=s,e=a;do i=t.prev[--e],t.prev[e]=i>=s?i-s:0;while(--a);n+=s}if(0===t.strm.avail_in)break;if(a=d(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=a,t.lookahead+t.insert>=ht)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=(t.ins_h<t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(_(t),0===t.lookahead&&e===I)return vt;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+a;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,o(t,!1),0===t.strm.avail_out))return vt;if(t.strstart-t.block_start>=t.w_size-ft&&(o(t,!1),0===t.strm.avail_out))return vt}return t.insert=0,e===F?(o(t,!0),0===t.strm.avail_out?yt:xt):t.strstart>t.block_start&&(o(t,!1),0===t.strm.avail_out)?vt:vt}function c(t,e){for(var a,i;;){if(t.lookahead=ht&&(t.ins_h=(t.ins_h<=ht)if(i=C._tr_tally(t,t.strstart-t.match_start,t.match_length-ht),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=ht){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<=ht&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=ht-1)),t.prev_length>=ht&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-ht,i=C._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-ht),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=n&&(t.ins_h=(t.ins_h<=ht&&t.strstart>0&&(n=t.strstart-1,i=s[n],i===s[++n]&&i===s[++n]&&i===s[++n])){r=t.strstart+dt;do;while(i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&nt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=ht?(a=C._tr_tally(t,1,t.match_length-ht),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=C._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(o(t,!1),0===t.strm.avail_out))return vt}return t.insert=0,e===F?(o(t,!0),0===t.strm.avail_out?yt:xt):t.last_lit&&(o(t,!1),0===t.strm.avail_out)?vt:kt}function m(t,e){for(var a;;){if(0===t.lookahead&&(_(t),0===t.lookahead)){if(e===I)return vt;break}if(t.match_length=0,a=C._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(o(t,!1),0===t.strm.avail_out))return vt}return t.insert=0,e===F?(o(t,!0),0===t.strm.avail_out?yt:xt):t.last_lit&&(o(t,!1),0===t.strm.avail_out)?vt:kt}function w(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}function p(t){t.window_size=2*t.w_size,r(t.head),t.max_lazy_match=Z[t.level].max_lazy,t.good_match=Z[t.level].good_length,t.nice_match=Z[t.level].nice_length,t.max_chain_length=Z[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=ht-1,t.match_available=0,t.ins_h=0}function v(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=V,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new R.Buf16(2*ot),this.dyn_dtree=new R.Buf16(2*(2*rt+1)),this.bl_tree=new R.Buf16(2*(2*st+1)),r(this.dyn_ltree),r(this.dyn_dtree),r(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new R.Buf16(lt+1),this.heap=new R.Buf16(2*nt+1),r(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new R.Buf16(2*nt+1),r(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function k(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=Q,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?ut:wt,t.adler=2===e.wrap?0:1,e.last_flush=I,C._tr_init(e),H):i(t,K)}function y(t){var e=k(t);return e===H&&p(t.state),e}function x(t,e){return t&&t.state?2!==t.state.wrap?K:(t.state.gzhead=e,H):K}function z(t,e,a,n,r,s){if(!t)return K;var o=1;if(e===Y&&(e=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),r<1||r>$||a!==V||n<8||n>15||e<0||e>9||s<0||s>W)return i(t,K);8===n&&(n=9);var l=new v;return t.state=l,l.strm=t,l.wrap=o,l.gzhead=null,l.w_bits=n,l.w_size=1<L||e<0)return t?i(t,K):K;if(o=t.state,!t.output||!t.input&&0!==t.avail_in||o.status===pt&&e!==F)return i(t,0===t.avail_out?P:K);if(o.strm=t,a=o.last_flush,o.last_flush=e,o.status===ut)if(2===o.wrap)t.adler=0,l(o,31),l(o,139),l(o,8),o.gzhead?(l(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),l(o,255&o.gzhead.time),l(o,o.gzhead.time>>8&255),l(o,o.gzhead.time>>16&255),l(o,o.gzhead.time>>24&255),l(o,9===o.level?2:o.strategy>=G||o.level<2?4:0),l(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(l(o,255&o.gzhead.extra.length),l(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(t.adler=O(t.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=ct):(l(o,0),l(o,0),l(o,0),l(o,0),l(o,0),l(o,9===o.level?2:o.strategy>=G||o.level<2?4:0),l(o,zt),o.status=wt);else{var _=V+(o.w_bits-8<<4)<<8,u=-1;u=o.strategy>=G||o.level<2?0:o.level<6?1:6===o.level?2:3,_|=u<<6,0!==o.strstart&&(_|=_t),_+=31-_%31,o.status=wt,h(o,_),0!==o.strstart&&(h(o,t.adler>>>16),h(o,65535&t.adler)),t.adler=1}if(o.status===ct)if(o.gzhead.extra){for(d=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>d&&(t.adler=O(t.adler,o.pending_buf,o.pending-d,d)),s(t),d=o.pending,o.pending!==o.pending_buf_size));)l(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>d&&(t.adler=O(t.adler,o.pending_buf,o.pending-d,d)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=bt)}else o.status=bt;if(o.status===bt)if(o.gzhead.name){d=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>d&&(t.adler=O(t.adler,o.pending_buf,o.pending-d,d)),s(t),d=o.pending,o.pending===o.pending_buf_size)){f=1;break}f=o.gzindexd&&(t.adler=O(t.adler,o.pending_buf,o.pending-d,d)),0===f&&(o.gzindex=0,o.status=gt)}else o.status=gt;if(o.status===gt)if(o.gzhead.comment){d=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>d&&(t.adler=O(t.adler,o.pending_buf,o.pending-d,d)),s(t),d=o.pending,o.pending===o.pending_buf_size)){f=1;break}f=o.gzindexd&&(t.adler=O(t.adler,o.pending_buf,o.pending-d,d)),0===f&&(o.status=mt)}else o.status=mt;if(o.status===mt&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&s(t),o.pending+2<=o.pending_buf_size&&(l(o,255&t.adler),l(o,t.adler>>8&255),t.adler=0,o.status=wt)):o.status=wt),0!==o.pending){if(s(t),0===t.avail_out)return o.last_flush=-1,H}else if(0===t.avail_in&&n(e)<=n(a)&&e!==F)return i(t,P);if(o.status===pt&&0!==t.avail_in)return i(t,P);if(0!==t.avail_in||0!==o.lookahead||e!==I&&o.status!==pt){var c=o.strategy===G?m(o,e):o.strategy===X?g(o,e):Z[o.level].func(o,e);if(c!==yt&&c!==xt||(o.status=pt),c===vt||c===yt)return 0===t.avail_out&&(o.last_flush=-1),H;if(c===kt&&(e===U?C._tr_align(o):e!==L&&(C._tr_stored_block(o,0,0,!1),e===T&&(r(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),s(t),0===t.avail_out))return o.last_flush=-1,H}return e!==F?H:o.wrap<=0?j:(2===o.wrap?(l(o,255&t.adler),l(o,t.adler>>8&255),l(o,t.adler>>16&255),l(o,t.adler>>24&255),l(o,255&t.total_in),l(o,t.total_in>>8&255),l(o,t.total_in>>16&255),l(o,t.total_in>>24&255)):(h(o,t.adler>>>16),h(o,65535&t.adler)),s(t),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?H:j)}function E(t){var e;return t&&t.state?(e=t.state.status,e!==ut&&e!==ct&&e!==bt&&e!==gt&&e!==mt&&e!==wt&&e!==pt?i(t,K):(t.state=null,e===wt?i(t,M):H)):K}function A(t,e){var a,i,n,s,o,l,h,d,f=e.length;if(!t||!t.state)return K;if(a=t.state,s=a.wrap,2===s||1===s&&a.status!==ut||a.lookahead)return K;for(1===s&&(t.adler=N(t.adler,e,f,0)),a.wrap=0,f>=a.w_size&&(0===s&&(r(a.head),a.strstart=0,a.block_start=0,a.insert=0),d=new R.Buf8(a.w_size),R.arraySet(d,e,f-a.w_size,a.w_size,0),e=d,f=a.w_size),o=t.avail_in,l=t.next_in,h=t.input,t.avail_in=f,t.next_in=0,t.input=e,_(a);a.lookahead>=ht;){i=a.strstart,n=a.lookahead-(ht-1);do a.ins_h=(a.ins_h<>>24,b>>>=y,g-=y,y=k>>>16&255,0===y)A[o++]=65535&k;else{if(!(16&y)){if(0===(64&y)){k=m[(65535&k)+(b&(1<>>=y,g-=y),g<15&&(b+=E[r++]<>>24,b>>>=y,g-=y,y=k>>>16&255,!(16&y)){if(0===(64&y)){k=w[(65535&k)+(b&(1<d){t.msg="invalid distance too far back",a.mode=i;break t}if(b>>>=y,g-=y,y=o-l,z>y){if(y=z-y,y>_&&a.sane){t.msg="invalid distance too far back",a.mode=i;break t}if(B=0,S=c,0===u){if(B+=f-y,y2;)A[o++]=S[B++],A[o++]=S[B++],A[o++]=S[B++],x-=3;x&&(A[o++]=S[B++],x>1&&(A[o++]=S[B++]))}else{B=o-z;do A[o++]=A[B++],A[o++]=A[B++],A[o++]=A[B++],x-=3;while(x>2);x&&(A[o++]=A[B++],x>1&&(A[o++]=A[B++]))}break}}break}}while(r>3,r-=x,g-=x<<3,b&=(1<>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function n(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new w.Buf16(320),this.work=new w.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function r(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=T,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new w.Buf32(bt),e.distcode=e.distdyn=new w.Buf32(gt),e.sane=1,e.back=-1,Z):N}function s(t){var e;return t&&t.state?(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,r(t)):N}function o(t,e){var a,i;return t&&t.state?(i=t.state,e<0?(a=0,e=-e):(a=(e>>4)+1,e<48&&(e&=15)),e&&(e<8||e>15)?N:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,s(t))):N}function l(t,e){var a,i;return t?(i=new n,t.state=i,i.window=null,a=o(t,e),a!==Z&&(t.state=null),a):N}function h(t){return l(t,wt)}function d(t){if(pt){var e;for(g=new w.Buf32(512),m=new w.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(y(z,t.lens,0,288,g,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;y(B,t.lens,0,32,m,0,t.work,{bits:5}),pt=!1}t.lencode=g,t.lenbits=9,t.distcode=m,t.distbits=5}function f(t,e,a,i){var n,r=t.state;return null===r.window&&(r.wsize=1<=r.wsize?(w.arraySet(r.window,e,a-r.wsize,r.wsize,0),r.wnext=0,r.whave=r.wsize):(n=r.wsize-r.wnext,n>i&&(n=i),w.arraySet(r.window,e,a-i,n,r.wnext),i-=n,i?(w.arraySet(r.window,e,a-i,i,0),r.wnext=i,r.whave=r.wsize):(r.wnext+=n,r.wnext===r.wsize&&(r.wnext=0),r.whave>>8&255,a.check=v(a.check,Et,2,0),_=0,u=0,a.mode=F;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&_)<<8)+(_>>8))%31){t.msg="incorrect header check",a.mode=_t;break}if((15&_)!==U){t.msg="unknown compression method",a.mode=_t;break}if(_>>>=4,u-=4,yt=(15&_)+8,0===a.wbits)a.wbits=yt;else if(yt>a.wbits){t.msg="invalid window size",a.mode=_t;break}a.dmax=1<>8&1),512&a.flags&&(Et[0]=255&_,Et[1]=_>>>8&255,a.check=v(a.check,Et,2,0)),_=0,u=0,a.mode=L;case L:for(;u<32;){if(0===l)break t;l--,_+=n[s++]<>>8&255,Et[2]=_>>>16&255,Et[3]=_>>>24&255,a.check=v(a.check,Et,4,0)),_=0,u=0,a.mode=H;case H:for(;u<16;){if(0===l)break t;l--,_+=n[s++]<>8),512&a.flags&&(Et[0]=255&_,Et[1]=_>>>8&255,a.check=v(a.check,Et,2,0)),_=0,u=0,a.mode=j;case j:if(1024&a.flags){for(;u<16;){if(0===l)break t;l--,_+=n[s++]<>>8&255,a.check=v(a.check,Et,2,0)),_=0,u=0}else a.head&&(a.head.extra=null);a.mode=K;case K:if(1024&a.flags&&(g=a.length,g>l&&(g=l),g&&(a.head&&(yt=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Array(a.head.extra_len)),w.arraySet(a.head.extra,n,s,g,yt)),512&a.flags&&(a.check=v(a.check,n,g,s)),l-=g,s+=g,a.length-=g),a.length))break t;a.length=0,a.mode=M;case M:if(2048&a.flags){if(0===l)break t;g=0;do yt=n[s+g++],a.head&&yt&&a.length<65536&&(a.head.name+=String.fromCharCode(yt));while(yt&&g>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=X;break;case q:for(;u<32;){if(0===l)break t;l--,_+=n[s++]<>>=7&u,u-=7&u,a.mode=ht;break}for(;u<3;){if(0===l)break t;l--,_+=n[s++]<>>=1,u-=1,3&_){case 0:a.mode=J;break;case 1:if(d(a),a.mode=at,e===A){_>>>=2,u-=2;break t}break;case 2:a.mode=$;break;case 3:t.msg="invalid block type",a.mode=_t}_>>>=2,u-=2;break;case J:for(_>>>=7&u,u-=7&u;u<32;){if(0===l)break t;l--,_+=n[s++]<>>16^65535)){t.msg="invalid stored block lengths",a.mode=_t;break}if(a.length=65535&_,_=0,u=0,a.mode=Q,e===A)break t;case Q:a.mode=V;case V:if(g=a.length){if(g>l&&(g=l),g>h&&(g=h),0===g)break t;w.arraySet(r,n,s,g,o),l-=g,s+=g,h-=g,o+=g,a.length-=g;break}a.mode=X;break;case $: -for(;u<14;){if(0===l)break t;l--,_+=n[s++]<>>=5,u-=5,a.ndist=(31&_)+1,_>>>=5,u-=5,a.ncode=(15&_)+4,_>>>=4,u-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=_t;break}a.have=0,a.mode=tt;case tt:for(;a.have>>=3,u-=3}for(;a.have<19;)a.lens[At[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,zt={bits:a.lenbits},xt=y(x,a.lens,0,19,a.lencode,0,a.work,zt),a.lenbits=zt.bits,xt){t.msg="invalid code lengths set",a.mode=_t;break}a.have=0,a.mode=et;case et:for(;a.have>>24,mt=St>>>16&255,wt=65535&St,!(gt<=u);){if(0===l)break t;l--,_+=n[s++]<>>=gt,u-=gt,a.lens[a.have++]=wt;else{if(16===wt){for(Bt=gt+2;u>>=gt,u-=gt,0===a.have){t.msg="invalid bit length repeat",a.mode=_t;break}yt=a.lens[a.have-1],g=3+(3&_),_>>>=2,u-=2}else if(17===wt){for(Bt=gt+3;u>>=gt,u-=gt,yt=0,g=3+(7&_),_>>>=3,u-=3}else{for(Bt=gt+7;u>>=gt,u-=gt,yt=0,g=11+(127&_),_>>>=7,u-=7}if(a.have+g>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=_t;break}for(;g--;)a.lens[a.have++]=yt}}if(a.mode===_t)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=_t;break}if(a.lenbits=9,zt={bits:a.lenbits},xt=y(z,a.lens,0,a.nlen,a.lencode,0,a.work,zt),a.lenbits=zt.bits,xt){t.msg="invalid literal/lengths set",a.mode=_t;break}if(a.distbits=6,a.distcode=a.distdyn,zt={bits:a.distbits},xt=y(B,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,zt),a.distbits=zt.bits,xt){t.msg="invalid distances set",a.mode=_t;break}if(a.mode=at,e===A)break t;case at:a.mode=it;case it:if(l>=6&&h>=258){t.next_out=o,t.avail_out=h,t.next_in=s,t.avail_in=l,a.hold=_,a.bits=u,k(t,b),o=t.next_out,r=t.output,h=t.avail_out,s=t.next_in,n=t.input,l=t.avail_in,_=a.hold,u=a.bits,a.mode===X&&(a.back=-1);break}for(a.back=0;St=a.lencode[_&(1<>>24,mt=St>>>16&255,wt=65535&St,!(gt<=u);){if(0===l)break t;l--,_+=n[s++]<>pt)],gt=St>>>24,mt=St>>>16&255,wt=65535&St,!(pt+gt<=u);){if(0===l)break t;l--,_+=n[s++]<>>=pt,u-=pt,a.back+=pt}if(_>>>=gt,u-=gt,a.back+=gt,a.length=wt,0===mt){a.mode=lt;break}if(32&mt){a.back=-1,a.mode=X;break}if(64&mt){t.msg="invalid literal/length code",a.mode=_t;break}a.extra=15&mt,a.mode=nt;case nt:if(a.extra){for(Bt=a.extra;u>>=a.extra,u-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=rt;case rt:for(;St=a.distcode[_&(1<>>24,mt=St>>>16&255,wt=65535&St,!(gt<=u);){if(0===l)break t;l--,_+=n[s++]<>pt)],gt=St>>>24,mt=St>>>16&255,wt=65535&St,!(pt+gt<=u);){if(0===l)break t;l--,_+=n[s++]<>>=pt,u-=pt,a.back+=pt}if(_>>>=gt,u-=gt,a.back+=gt,64&mt){t.msg="invalid distance code",a.mode=_t;break}a.offset=wt,a.extra=15&mt,a.mode=st;case st:if(a.extra){for(Bt=a.extra;u>>=a.extra,u-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=_t;break}a.mode=ot;case ot:if(0===h)break t;if(g=b-h,a.offset>g){if(g=a.offset-g,g>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=_t;break}g>a.wnext?(g-=a.wnext,m=a.wsize-g):m=a.wnext-g,g>a.length&&(g=a.length),bt=a.window}else bt=r,m=o-a.offset,g=a.length;g>h&&(g=h),h-=g,a.length-=g;do r[o++]=bt[m++];while(--g);0===a.length&&(a.mode=it);break;case lt:if(0===h)break t;r[o++]=a.length,h--,a.mode=it;break;case ht:if(a.wrap){for(;u<32;){if(0===l)break t;l--,_|=n[s++]<=1&&0===j[N];N--);if(O>N&&(O=N),0===N)return b[g++]=20971520,b[g++]=20971520,w.bits=1,0;for(C=1;C0&&(t===o||1!==N))return-1;for(K[1]=0,Z=1;Zr||t===h&&T>s)return 1;for(;;){B=Z-I,m[R]z?(S=M[P+m[R]],E=L[H+m[R]]):(S=96,E=0),p=1<>I)+v]=B<<24|S<<16|E|0;while(0!==v);for(p=1<>=1;if(0!==p?(F&=p-1,F+=p):F=0,R++,0===--j[Z]){if(Z===N)break;Z=e[a+m[R]]}if(Z>O&&(F&y)!==k){for(0===I&&(I=O),x+=C,D=Z-I,U=1<r||t===h&&T>s)return 1;k=F&y,b[k]=O<<24|D<<16|x-g|0}}return 0!==F&&(b[x+F]=Z-I<<24|64<<16|0),w.bits=O,0}},{"../utils/common":3}],13:[function(t,e,a){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],14:[function(t,e,a){"use strict";function i(t){for(var e=t.length;--e>=0;)t[e]=0}function n(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}function r(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function s(t){return t<256?lt[t]:lt[256+(t>>>7)]}function o(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function l(t,e,a){t.bi_valid>W-a?(t.bi_buf|=e<>W-t.bi_valid,t.bi_valid+=a-W):(t.bi_buf|=e<>>=1,a<<=1;while(--e>0);return a>>>1}function f(t){16===t.bi_valid?(o(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}function _(t,e){var a,i,n,r,s,o,l=e.dyn_tree,h=e.max_code,d=e.stat_desc.static_tree,f=e.stat_desc.has_stree,_=e.stat_desc.extra_bits,u=e.stat_desc.extra_base,c=e.stat_desc.max_length,b=0;for(r=0;r<=X;r++)t.bl_count[r]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;ac&&(r=c,b++),l[2*i+1]=r,i>h||(t.bl_count[r]++,s=0,i>=u&&(s=_[i-u]),o=l[2*i],t.opt_len+=o*(r+s),f&&(t.static_len+=o*(d[2*i+1]+s)));if(0!==b){do{for(r=c-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[c]--,b-=2}while(b>0);for(r=c;0!==r;r--)for(i=t.bl_count[r];0!==i;)n=t.heap[--a],n>h||(l[2*n+1]!==r&&(t.opt_len+=(r-l[2*n+1])*l[2*n],l[2*n+1]=r),i--)}}function u(t,e,a){var i,n,r=new Array(X+1),s=0;for(i=1;i<=X;i++)r[i]=s=s+a[i-1]<<1;for(n=0;n<=e;n++){var o=t[2*n+1];0!==o&&(t[2*n]=d(r[o]++,o))}}function c(){var t,e,a,i,r,s=new Array(X+1);for(a=0,i=0;i>=7;i8?o(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function m(t,e,a,i){g(t),i&&(o(t,a),o(t,~a)),N.arraySet(t.pending_buf,t.window,e,a,t.pending),t.pending+=a}function w(t,e,a,i){var n=2*e,r=2*a;return t[n]>1;a>=1;a--)p(t,r,a);n=l;do a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],p(t,r,1),i=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=i,r[2*n]=r[2*a]+r[2*i],t.depth[n]=(t.depth[a]>=t.depth[i]?t.depth[a]:t.depth[i])+1,r[2*a+1]=r[2*i+1]=n,t.heap[1]=n++,p(t,r,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],_(t,e),u(r,h,t.bl_count)}function y(t,e,a){var i,n,r=-1,s=e[1],o=0,l=7,h=4;for(0===s&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=s,s=e[2*(i+1)+1],++o=3&&0===t.bl_tree[2*nt[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}function B(t,e,a,i){var n;for(l(t,e-257,5),l(t,a-1,5),l(t,i-4,4),n=0;n>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return D;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return I;for(e=32;e0?(t.strm.data_type===U&&(t.strm.data_type=S(t)),k(t,t.l_desc),k(t,t.d_desc),s=z(t),n=t.opt_len+3+7>>>3,r=t.static_len+3+7>>>3,r<=n&&(n=r)):n=r=a+5,a+4<=n&&e!==-1?A(t,e,a,i):t.strategy===O||r===n?(l(t,(F<<1)+(i?1:0),3),v(t,st,ot)):(l(t,(L<<1)+(i?1:0),3),B(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),v(t,t.dyn_ltree,t.dyn_dtree)),b(t),i&&g(t)}function C(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(ht[a]+M+1)]++,t.dyn_dtree[2*s(e)]++),t.last_lit===t.lit_bufsize-1}var N=t("../utils/common"),O=4,D=0,I=1,U=2,T=0,F=1,L=2,H=3,j=258,K=29,M=256,P=M+1+K,Y=30,q=19,G=2*P+1,X=15,W=16,J=7,Q=256,V=16,$=17,tt=18,et=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],at=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],it=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],nt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rt=512,st=new Array(2*(P+2));i(st);var ot=new Array(2*Y);i(ot);var lt=new Array(rt);i(lt);var ht=new Array(j-H+1);i(ht);var dt=new Array(K);i(dt);var ft=new Array(Y);i(ft);var _t,ut,ct,bt=!1;a._tr_init=E,a._tr_stored_block=A,a._tr_flush_block=R,a._tr_tally=C,a._tr_align=Z},{"../utils/common":3}],15:[function(t,e,a){"use strict";function i(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}e.exports=i},{}],"/":[function(t,e,a){"use strict";var i=t("./lib/utils/common").assign,n=t("./lib/deflate"),r=t("./lib/inflate"),s=t("./lib/zlib/constants"),o={};i(o,n,r,s),e.exports=o},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")}); diff --git a/upng.photopea.com/style.css b/upng.photopea.com/style.css deleted file mode 100644 index 344da4d..0000000 --- a/upng.photopea.com/style.css +++ /dev/null @@ -1,127 +0,0 @@ - - * { margin:0; padding:0; - font-family: "Open Sans", sans-serif; - } - - body { - color:#3a3a3a; - background-color:#f6f8fa; - user-select: none; - } - - h1 { - font-size: 2em; - padding-top: 0.3em; - padding-bottom: 0.5em; - } - - - header { - color: white; - height:170px; - text-align:center; - background: linear-gradient(#4fa0eb, #9656d9); - } - header a { - color: white; - font-weight:bold; - margin-right:14px; - } - header iframe { vertical-align:middle; } - - .foot { - /*background-image:url(grass.png);*/ - background-repeat: repeat-x; - background-position: center bottom; - background-size: 200px 50px; - padding: 0.5em 0 1.1em 0; - } - - footer { - font-size:1.5em; - height:50px; - width:660px; - padding: 0.3em 1em 0 1em; - background-color:#f6f8fa; - box-shadow: 0px 3px 9px rgba(0,0,0,0.55); - border-radius:1em; - margin: 0 auto; - } - - canvas { - float:left; - position:absolute; - background-image:url(grid.png); - } - - button { - font-size: 1em; - background-color: #9656d9; - color: white; - border: none; - padding: 0.2em 0.7em; - margin-left: 1em; - font-weight:bold; - cursor:pointer; - border-radius: 0.3em; - } - - #main { - margin:0 auto; - overflow-x:visible; - } - - #lcont { - width: 500px; - float:left; - } - #list { - overflow-y:scroll; - } - #list::-webkit-scrollbar { - width: 10px; - background: rgba(0,0,0,0); - } - #list::-webkit-scrollbar-thumb { - background: rgba(0,0,0, 0.2 ); - margin:2px; - } - - .item { - padding: 0.5em; - cursor:pointer; - } - - .active { - background-color: rgba(0,100,190,0.15); - } - - .item .fname { - display:inline-block; - width:8.5em; - } - .item span { - display:inline-block; - width:4.5em; - text-align:right; - } - - #bunny { - transition: transform .2s ease-out; - filter: drop-shadow(5px 7px 5px rgba(0,0,0,0.4)); - - position: absolute; width:94px; top:20px; margin-left:500px; cursor:pointer; - } - #bunny:hover { - transform: translate(0, -10px); - } - - - - - - - - - - \ No newline at end of file diff --git a/www.photopea.com/code/DBS.js b/www.photopea.com/code/DBS.js index 55de60a..7013263 100644 --- a/www.photopea.com/code/DBS.js +++ b/www.photopea.com/code/DBS.js @@ -147,7 +147,7 @@ "prsO" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAMAAAC8EZcfAAAAYFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD6T+iNAAAAIHRSTlMA4ewH1Ro9uxAk9MstR/ujXHgzxE5qsXGAjpWHnKpVYyj9Yl4AAANQSURBVHic7ZrZmqIwEEZZtGVAUVzbkeX937KD0N1CKklViHMz/3mC81VqSyCKAAAAAAAAAAAAAAAAAAAAAAAAgCdpmmXrnj8DW8Wx56Nn13NWtG17UHRdd1HcFFVVfSoej8dd8VdR1/Ve0TTNtWfTc1IUPauBeGR12le7lGU36H0Lbp2CHUOwmQieCMGkJ653dr3syUTQHcFRsOJH0CioKCyKo59U8PIrWA2CDzKCG5Zgnu/XDj/pEV+0CI6CtfiIn4J5TAYxTWcBfI3gVhNsbUWiC14FEVRcaMGUEjREsB0NySKhj9hexRPB/Eb6SQStbUYX5BfJIFjOY/jityQHjUUiFsx3ut9CwZsmKCqSeCpYJmujIFEkdA4aq/hOFslMsLALlhvNb264OAd928xo2GmC5BGHadTSCPaCcWYI4PIITkddo/XBghBM5kdclp9hBfUIGnOQ6oNaDqo6mYdQIiicJPIq7rnQguxJImjU0iIZBFecI/YpkmmbaTyrWHHkHrG+LJx/Z7GxSER9kIpgeffPQeHC6peD8zMOVsWuCDLbjGIdMIJvKJKybANGMOg++C34sIziYJPEY6P+MbyGmCTGa2dtujQxJ4miCLEsdNo+yKpiVpHE3usWvQ8aBd0bNR3BJLDggqcPOoIlJRhsoxYJciIoycGW0QdF61YyCeE0B1NbBC1V3PJHnfhWR1axNAddF3f/lwV7H2TlIGcWB2jUD+qIPfdBwUbNr+JD4EnCvNXxBbfuNmNZWN+/zdB9mjhiqyD3XmzPQbIP7m1F7NMHrQurR5EcuC8L3AdM6714JshYFvIsclexexYbi2RxBJsFF3f60sR8WbDl4Ouo+6DvxdKN2pWDjbawMqu4mL/NSBq1dR9k9UHD69aL4TniHLFokgQddaeIJRju+U2yUecvGagbciPoevpYNknu0WJB4RFLNuq8XGWRbmg8Yr8vTUtyMNlGkW64uA9KXrfsgm00Z3GROB+PJBf3TvMjviZ6VDHzdcsVwUSP32D4vgiKnj7iI+ln+KAtEgzyMbExfdCmfwn410Wycfy1oP1UIWrUkhdW6ojj+sOq9+MoatT6uuXzusX8LQUAAAAAAAAAAAAAAAAAAAAAAAAAAID/gS9w473uUmHmvgAAAABJRU5ErkJggg==", "zoomIn" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAACwBAMAAABdmfltAAAAElBMVEUAAAAAAAAAAAAAAAAAAAAAAADgKxmiAAAABnRSTlMA/+UUmE52sBY+AAAE+UlEQVR4nNWb21bqMBCGu6w8AAXvkY33Knof3HgPW3z/V9lARfPPIZmcWMu56+nr9M80mTaTrrNY/7ndLpf3w3K53X4+mi6xUA9v91PPhtV7DXZ/WE6ZLYvR/eGeY89ul6Ff32TsyVYf+dwXxd0vp/9mYvt/IezJHrLk6AMyfMuRQbZwc8g2bjrZyk0l27mJ5Gg8+PZg576kcKdTczxPgu8Ft2Fn4/abNO50OrfJnCTwaCaZEwUezSBznyjwaENcjAwhThYV4zbL4aO5iBDJEXGxSGRktdxowfbLa7nRgu33rF61ff9YP/br18NWvfefdIchkTimGckuyw6vmHovMlp1WXRYTCDkdEN1WXJYG+PFzEBxWYrhQc1KXgWyEsu3wpmBnnYi+OHEM/mJ4R5cGA/mtvNiI4NAlq5gTRfPzXgLCs3HY80wLLA+Vog41nSWfIHnH46ds08UeDQm8x27Nz3DmCzQfpZpQZUwjuj8raLNR5Sw5iBcDKIFVSIhHyORQbQgStgd5i47OEqUSHCYuQxaECVSHGYugxZEiSSHmcvOO4T9RJrDzGU/4DAYxc4vZHvtciKxUwmKoZKeyOoBzy5HpWOqYyixPCSGwCoAJZabLgieyCLjkyhNFwSja99aosRKchAGoxZO3KsEcRiMWlx82xuUiIBRi0t3ARJrmV0EDE89jPt6UZ9EMGoxygltp2aMETBGluNPwUZZIxgb6g/ftcgF33D3oEHVHjMGBpHPoQXq6N8RMXDHMHArVeI4GBQ9PTgEhf5JFQVDDLiOqO7yweDg4rjjiT5CJhjes1mH2gzqZXEwtN6prfxoCwyjcTAF+TealYB9TQcSxosSsB8Fx0CGMHYlYAiLHYIDKVAcTFz07xP6lxEHg6gOlAnlVnFwh61VEbwB8JO3pXdBJvDeQ83IVhEYffTBizLwDYA39cB+gM0B7K4BnhrNBN6Vgf1Xbw5RXRE8XAf8WAb2B6ffCPZPKgTDNZ3lpCxwRSn8a35j410FXPXNa9YJXQXsOt0EELUrjSB7b2tRD9xwlH7ytirmFTNymyIwPnyz3O22HhjTWHgPa+bHjTL6Hb1PAZh+G7T5auqwLat9553CYE+2s8G+h3cd+6DMB9NPXPitUOvrf9GRD0qXD2YcCL9af1hOTw6BXOmf0PgKb9ieLLDv35zdqtJ/t/HBQZxFLhiCa2wqaM46/zbdeRcEYJ2/sV+CCn9ok8Eg8eUFhqeo8cf7TtpZ4x/9xTmcrqgwq+C+9qLw5fMgPwEAz1E+c/NDsMywBMHy/IptTigIlmeEqMiGSjBi+vUb5Y5Gwyf2G+lZPWIy9MuXkkwfl83yOu8QmfQsmpfGJtrjsZKZdOx4S6bSAxPpRZP/oan/rqRcgThMQyq7wIKWV9D3lpaE5Naw8NeWaBEq5PONVt3wwZiW3WTWCTn+TPSUrMomqQNjRV45tViSgBN6Uk71mKgfK6RLr3eT+0Ve+pdcoefEE4VixRBZqCnUgl8or0yrgtRiXyoITanb1AdLsSLUXmmqv6xy0e3qnbkr1saGRnelTNhWzRvqXdTCZkP9cTgdaVWK3a54XKq8tZkLc9sV6LdbUtBsEUS7ZRsZkWHNqJOXxpgX3bRazNNu+VG7BVPNlni1W5TWbhldu4V/7ZYqds0WV3btloO2W8DaKUtuy7Ejuski4bOt/WXNa9Ml/wE5YCpbayJoEAAAAABJRU5ErkJggg==", "zoomOut" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAACwBAMAAABdmfltAAAAElBMVEUAAAAAAAAAAAAAAAAAAAAAAADgKxmiAAAABnRSTlMA/90TkEkQ3c9eAAAEwElEQVR4nNVbSVbjMBDVw+kD2IG9CbAPBPaCDvu4O7n/VRrHhKgGOTVIr1/+ztNX6VdpsFQKQYLmsP1Yrdp2tXrcHtaiTySs+4/7NkH3+FmCu9kD1m9uNzVLW4D67YOnHfH4186bM/dktJG2+TNHO+LJJEczI8OPHAZmCa+FuXmX8LbtrZJZyqtllulgUONiPKR4kvO+anjb9reUdzHbLii6KONtlLxfzDKZVQJPEMmsFHiCQGa9ECMEYhiEGHFRjIWNt23jBSHETRnjQtM2eW7CrP9snpsw67+X7Ffbz8Nm3WwO+2227Ae9wWAi8TXNUJvMG0wHzcwgmzWZN5gbMflxNmsyZ3CXcfYrZ0TGZM7gLjsreePe5k1mGl23y/GG8IthjuybtNHN8bLMt+x7Sl6WmfuCuu5iJ0s7AMZ91HWCYYFEHeM+4jrJTIR2hpG8MygFnkBkviNl4zdmupQU2DNEixuDEEeDsBjYIPw8ynhplKJQxkoo5mMoMpAWKCZknvs2GdkUwdPBbDAxGcQFUkJjMDEZaIGUUBlMTI7JIxSNKoNJYKQBB4ON7fzmkP28yddFBKTkOvNAOI1OgHx/Nuw5q5EQ0EfngIMaKV03ArrvR2RYE7XrqGknLaHEBiWwFpG9a1ACa3GybXArgbQ4ee+eK00JUOuOq0a0EUM/7eg9feuYACMr0lqQUVYK4KgHequ3Et9Q84BDTcE2AnjqGFpAHavEAcbWkYYWZQOpOAgKYxSPADEQA1I92omBgX1AnbHZd0jSZYDR1tl5offGeEtFd/iOEqUFLT3EqaYdGqF7DzGIgjXUPHqIQVjs8KUDyMSU2NGgAxI1AmVc0QbDoAfErmiD8daDIDH38hOGhGqJrlyANqbEvY/4BhC/1yG+BcTRR7wQEbdCZInT4Nv5iNOm11058dpHnHYW10fcAgInMfgmSF4yEReUohrxdUfFNTbptNssSPwfOno38ZBc9T5iOJhWI35OrgrOK5aoGBdg5avN3cA01kectrWK82MwDy83o9/hchwAPx1rPA93AP8bpL4s9p83xteArs1ILbwL5IfSDvyLC34oS/399wE5M9qJCQ8oqdQKy1hzsNhUaE1oasL0jgnUvqGI94CiU/8LxOmtxCC4JlctaFkGgHpHWokyq7HfgjIrtGrAtWKuFiVWvO+4myXW6E/GccvgSvDL8VD4AvsgPwEA6uHfuTkzPHu1gEqc24J7T4jfEcIbhe79vOR7uLkVswwZwBqnTnrJPhEB2pVKiTY9fbu8MXmERHLtS0MXDfCZZycddryerfSZjXTX5v/c1n8giRv2/AocUjjVJHIcrMHoQ9xucUqINYeFNtvhQskZ4KwbOhjjBCRjnlCkdcKvmDKbuA6MJHlZcrE4AWlamiF7jNWPJGzp8934fpGm/qkz9CL7IpOsqMwpzI09THqlLgsyF/tsfqUibzM/WLIprPJM03xj5XNYpbmxc6N7Jk1Yls0717tkE5sF+cfz05Faqdj1kserpbvXS9Cvd6Sg2iGIesc26h000R+NER+6qXWYp97xo3oHpqod8VIcSlP/FcrU0PPWO/hX76hiqHa4MtQ7DlrvAGuO2k87UVc5JHzEJj3WvBF98g8n+QTj6NOXVAAAAABJRU5ErkJggg==", - "intro" : "data:image/svg+xml;base64," + btoa('') + "intro" : "data:image/svg+xml;base64," + btoa('') }; var FNTS = { "subsetNames": [ diff --git a/www.photopea.com/code/external/ext.js b/www.photopea.com/code/external/ext.js index 360ba2e..d2cfdc2 100644 --- a/www.photopea.com/code/external/ext.js +++ b/www.photopea.com/code/external/ext.js @@ -7688,266 +7688,276 @@ exports.invert = function invert(A) { return exports; })(); -var Typr=function(){var Y={};Y.parse=function(e){var D=function(x,r,_,Q){var E=Y.B,v=Y.T,L={cmap:v._,head:v.head,hhea:v.au,maxp:v.aw,hmtx:v.a6,name:v.name,"OS/2":v.d,post:v.a5,loca:v.ao,kern:v.K,glyf:v.V,"CFF ":v.g,CBLC:v.aO,CBDT:v.aD,"SVG ":v.a3,COLR:v.b3,CPAL:v.a$},s={_data:x,_index:r,_offset:_}; -for(var I in L){var i=Y.findTable(x,I,_);if(i){var l=i[0],n=Q[l];if(n==null)n=L[I].l(x,l,i[1],s);s[I]=Q[l]=n}}return s},E=Y.B,x=new Uint8Array(e),Q={},p=E.O(x,0,4); -if(p=="ttcf"){var _=4,j=E.q(x,_);_+=2;var V=E.q(x,_);_+=2;var U=E.k(x,_);_+=4;var O=[];for(var S=0;S>8&255; -e[D+1]=E&255},aZ:function(e,D,E){var x=[];for(var Q=0;Q>24&255; -e[D+1]=E>>16&255;e[D+2]=E>>8&255;e[D+3]=E>>0&255},B:function(e,D){return Y.B.k(e,D)*(4294967295+1)+Y.B.k(e,D+4)},O:function(e,D,E){var x=""; -for(var Q=0;Q255)return-1; -return Y.T.g.aq(e,Y.T.g.aY[D])},aH:function(e,D,E){var x=Y.B,Q=[".notdef"],p=e[D];D++;if(p==0){for(var _=0; -_>4,I=L&15;if(s!=15)v.push(s);if(I!=15)v.push(I);if(I==15)break}var i=[0,1,2,3,4,5,6,7,8,9,".","e","e-","reserved","-","endOfNumber"]; -for(var l=0;l>>1;E.aU=Q(e,D);D+=2;E.an=Q(e,D);D+=2; -E.ax=Q(e,D);D+=2;E.ar=p(e,D,O);D+=O*2;D+=2;E.aT=p(e,D,O);D+=O*2;E.aa=[];for(var S=0;S>>1);return E},a0:function(e,D,E){var x=Y.B,Q=D;D+=2;var p=x.q(e,D); -D+=2;var _=x.q(e,D);D+=2;E.b7=x.q(e,D);D+=2;var j=x.q(e,D);D+=2;E.G=[];for(var V=0;V=j.ac||j.a7>=j.af)return null;if(j.n>0){j.L=[];for(var V=0; -V>>8;S&=15;if(S==0)D=p.P(e,D,V)}return V},aJ:function(e,D,E,x){var Q=Y.B,p=Y.T.K,_=Q.u(e,D),j=Q.k(e,D+4); -D+=8;var V={a:[],r:[]};for(var U=0;U65535)p++;Q.push(Y.U.codeToGlyph(e,_))}var V=[]; -for(var p=0;p>>1);if(p[o*_]<=V)O=o;else S=o}return O*_}var D=[9,10,11,12,13,32,133,160,5760,6158,8232,8233,8239,8288,12288,65279],E={}; -for(var x=0;x=S.map.length)r=0;else r=S.map[_]}else if(o==4){var v=S.ar; -r=0;if(_<=v[v.length-1]){var L=e(v,1,_);if(v[L]<_)L++;if(_>=S.aT[L]){var s=0;if(S.F[L]!=0)s=S.G[_-S.aT[L]+(S.F[L]>>1)-(S.F.length-L)]; -else s=_+S.aa[L];r=s&65535}}}else if(o==6){var I=_-S.b7,y=S.G;if(I<0||I>=y.length)r=0;else r=y[I]}else if(o==12){var i=S.ag; -r=0;if(_<=i[i.length-2]){var x=e(i,3,_);if(i[x]<=_&&_<=i[x+1]){r=i[x+2]+(_-i[x])}}}else throw"unknown cmap table format "+S.ab; -var l=p["SVG "],n=p.loca;if(r!=0&&p["CFF "]==null&&(l==null||l.entries[r]==null)&&n&&n[r]==n[r+1]&&E[_]==null)r=0; -return r}return Q}(),glyphToPath:function(e,D){var E={i:[],X:[]},x=e["SVG "],Q=e["CFF "],p=e.COLR,_=e.CBLC,j=e.CBDT,V=window.UPNG,U=Y.U,O=null; -if(_&&V)for(var S=0;S<_.length;S++)if(_[S][0]<=D&&D<=_[S][1])O=_[S];if(O){if(O[2]!=17)throw"not a PNG"; -var o=O[3][D-O[0]]+5,r=j.slice(o).buffer,v=V.decode(r),L=v.width,s=v.height,r=new Uint8Array(V.toRGBA8(v)[0]),I=new Uint32Array(r.buffer),y=2,i=0; -for(var l=0;l1){function w(F){var P=F.toString(16);return(P.length==1?"0":"")+P}var R=e.CPAL,b=p[0]["g"+D]; -for(var S=0;S-1)Y.U._simpleGlyph(x,E);else Y.U._compoGlyph(x,D,E)}},_simpleGlyph:function(e,D){var E=Y.U.P; -for(var x=0;x>1;p.length=0;j=!0}else if(w=="o3"||w=="o23"){var R;R=p.length%2!==0; -if(R&&!j){V=p.shift()+f}_+=p.length>>1;p.length=0;j=!0}else if(w=="o4"){if(p.length>1&&!j){V=p.shift()+f; -j=!0}if(U)Z.C(Q);o+=p.pop();Z.v(Q,S,o);U=!0}else if(w=="o5"){while(p.length>0){S+=p.shift();o+=p.shift(); -Z.R(Q,S,o)}}else if(w=="o6"||w=="o7"){var b=p.length,z=w=="o6";for(var m=0;mMath.abs(n-o)){S=l+p.shift()}else{o=n+p.shift()}Z.Q(Q,r,L,s,I,N,M); -Z.Q(Q,y,i,l,n,S,o)}}else if(w=="o14"){if(p.length>0&&p.length!=4&&!j){V=p.shift()+E.nominalWidthX;j=!0}if(p.length==4){var ab=0,g=p.shift(),q=p.shift(),F=p.shift(),P=p.shift(),at=k.I(E,F),au=k.I(E,P); -Y.U._drawCFF(E.CharStrings[at],D,E,x,Q);D.x=g;D.y=q;Y.U._drawCFF(E.CharStrings[au],D,E,x,Q)}if(U){Z.C(Q); -U=!1}}else if(w=="o19"||w=="o20"){var R;R=p.length%2!==0;if(R&&!j){V=p.shift()+f}_+=p.length>>1;p.length=0; -j=!0;O+=_+7>>3}else if(w=="o21"){if(p.length>2&&!j){V=p.shift()+f;j=!0}o+=p.pop();S+=p.pop();if(U)Z.C(Q); -Z.v(Q,S,o);U=!0}else if(w=="o22"){if(p.length>1&&!j){V=p.shift()+f;j=!0}S+=p.pop();if(U)Z.C(Q);Z.v(Q,S,o); -U=!0}else if(w=="o25"){while(p.length>6){S+=p.shift();o+=p.shift();Z.R(Q,S,o)}r=S+p.shift();L=o+p.shift(); -s=r+p.shift();I=L+p.shift();S=s+p.shift();o=I+p.shift();Z.Q(Q,r,L,s,I,S,o)}else if(w=="o26"){if(p.length%2){S+=p.shift()}while(p.length>0){r=S; -L=o+p.shift();s=r+p.shift();I=L+p.shift();S=s;o=I+p.shift();Z.Q(Q,r,L,s,I,S,o)}}else if(w=="o27"){if(p.length%2){o+=p.shift()}while(p.length>0){r=S+p.shift(); -L=o;s=r+p.shift();I=L+p.shift();S=s+p.shift();o=I;Z.Q(Q,r,L,s,I,S,o)}}else if(w=="o10"||w=="o29"){var as=w=="o10"?x:E; -if(p.length==0){console.log("error: empty stack")}else{var T=p.pop(),W=as.Subrs[T+as.Bias];D.x=S;D.y=o; -D.b=_;D.w=j;D.width=V;D.open=U;Y.U._drawCFF(W,D,E,x,Q);S=D.x;o=D.y;_=D.b;j=D.w;V=D.width;U=D.open}}else if(w=="o30"||w=="o31"){var b,A=p.length,u=0,c=w=="o31"; -b=A&~2;u+=A-b;while(u0&&S[v-1]!="e"){S=S.slice(0,v)+" "+S.slice(v); -v++;r=!0}}S=S.split(/\s*[\s,]\s*/).map(parseFloat);if(!1){}else if(O=="translate"){if(S.length==1)e.translate(o,S[0],0); -else e.translate(o,S[0],S[1])}else if(O=="scale"){if(S.length==1)e.scale(o,S[0],S[0]);else e.scale(o,S[0],S[1])}else if(O=="rotate"){var s=0,I=0; -if(S.length!=1){s=S[1];I=S[2]}e.translate(o,-s,-I);e.rotate(o,-Math.PI*S[0]/180);e.translate(o,s,I)}else if(O=="matrix")o=S; -else console.log("unknown transform: ",O);return o}function p(O){var S={i:[],X:[]};if(O==null)return S; -var o=new DOMParser,r=o.parseFromString(O,"image/svg+xml"),v=r.getElementsByTagName("svg")[0],L=v.getAttribute("viewBox"); -if(L)L=L.trim().split(" ").map(parseFloat);else L=[0,0,1e3,1e3];_(v.children,S);for(var s=0;s=0?1:-1)*Math.acos(Math.max(-1,Math.min(1,al)))},ai=(A-a4)/q,ah=(c-ao)/K,ap=aa(1,0,ai,ah),ar=aa(ai,ah,(-A-a4)/q,(-c-ao)/K); -ar=ar%(2*Math.PI);var a8=function(a9,v,L,C,h,$,a){var a5=function(X,t){var ae=Math.sin(t),B=Math.cos(t),t=X[0],ac=X[1],ad=X[2],O=X[3]; -X[0]=t*B+ac*ae;X[1]=-t*ae+ac*B;X[2]=ad*B+O*ae;X[3]=-ad*ae+O*B},af=function(X,t){for(var f=0;fh)$-=2*Math.PI;else while($>>2,l=Q.hb_buffer_get_glyph_positions(s,0)>>>2; -for(var n=0;n>>16)+4)}_=new Uint8Array(p.buffer);j=new Uint32Array(p.buffer);V=new Int32Array(p.buffer); -if(U!=l){if(O!=null){Q.hb_blob_destroy(O);Q.free(S);Q.hb_face_destroy(o);Q.hb_font_destroy(r)}S=Q.malloc(i.byteLength); -_.set(i,S);O=Q.hb_blob_create(S,i.byteLength,2,0,0);o=Q.hb_face_create(O,0);r=Q.hb_font_create(o);U=l}if(window.TextEncoder==null){alert("Your browser is too old. Please, update it."); -return}if(L==null)L=new window.TextEncoder("utf8");var d=Q.hb_buffer_create(),N=L.encode(I),M=N.length,k=Q.malloc(M); -_.set(N,k);Q.hb_buffer_add_utf8(d,k,M,0,M);Q.free(k);Q.hb_buffer_set_direction(d,y?4:5);Q.hb_buffer_guess_segment_properties(d); -Q.hb_shape(r,d,0,0);var Z=v(d);Q.hb_buffer_destroy(d);var f=Z.slice(0);if(!y)f.reverse();for(var R=1; -R>8&255; +s[e+1]=F&255},aa:function(s,e,F){var N=[];for(var k=0;k>24&255; +s[e+1]=F>>16&255;s[e+2]=F>>8&255;s[e+3]=F>>0&255},R:function(s,e){return W.B.i(s,e)*(4294967295+1)+W.B.i(s,e+4)},D:function(s,e,F){var N=""; +for(var k=0;k255)return-1; +return W.T.s.aV(s,W.T.s.ai[e])},aB:function(s,e,F){var N=W.B,k=[".notdef"],t=s[e];e++;if(t==0){for(var i=0; +i>4,p=h&15;if(r!=15)B.push(r);if(p!=15)B.push(p);if(p==15)break}var H=[0,1,2,3,4,5,6,7,8,9,".","e","e-","reserved","-","endOfNumber"]; +for(var c=0;c>>1;F.b2=k(s,e);e+=2;F.ah=k(s,e);e+=2; +F.a3=k(s,e);e+=2;F.ag=t(s,e,O);e+=O*2;e+=2;F.aw=t(s,e,O);e+=O*2;F.af=[];for(var D=0;D>>1);return F},a2:function(s,e,F){var N=W.B,k=e;e+=2;var t=N.f(s,e); +e+=2;var i=N.f(s,e);e+=2;F.aG=N.f(s,e);e+=2;var w=N.f(s,e);e+=2;F.a=[];for(var $=0;$=w.aO||w.aI>=w.az)return null;if(w.U>0){w.z=[];for(var $=0; +$>>8;D&=15;if(D==0)e=t.Y(s,e,$)}return $},as:function(s,e,F,N){var k=W.B,t=W.T.X,i=k.Q(s,e),w=k.i(s,e+4); +e+=8;var $={k:[],l:[]};for(var X=0;X65535)t++;k.push(W.U.codeToGlyph(s,i))}var $=[]; +for(var t=0;t>>1);if(t[G*i]<=$)O=G;else D=G}return O*i}var e=[9,10,11,12,13,32,133,160,5760,6158,8232,8233,8239,8288,12288,65279],F={}; +for(var N=0;N=D.map.length)L=0;else L=D.map[i]}else if(G==4){var B=D.ag; +L=0;if(i<=B[B.length-1]){var h=s(B,1,i);if(B[h]=D.aw[h]){var r=0;if(D.Z[h]!=0)r=D.a[i-D.aw[h]+(D.Z[h]>>1)-(D.Z.length-h)]; +else r=i+D.af[h];L=r&65535}}}else if(G==6){var p=i-D.aG,Q=D.a;if(p<0||p>=Q.length)L=0;else L=Q[p]}else if(G==12){var H=D.a9; +L=0;if(i<=H[H.length-2]){var N=s(H,3,i);if(H[N]<=i&&i<=H[N+1]){L=H[N+2]+(i-H[N])}}}else throw"unknown cmap table format "+D.b0; +var c=t["SVG "],z=t.loca;if(L!=0&&t["CFF "]==null&&(c==null||c.entries[L]==null)&&z&&z[L]==z[L+1]&&F[i]==null)L=0; +return L}return k}(),glyphToPath:function(s,e){var F={W:[],e:[]},N=s["SVG "],k=s["CFF "],t=s.COLR,i=s.CBLC,w=s.CBDT,$=s.sbix,X=window.UPNG,O=W.U,D=null; +if(i&&X)for(var G=0;G1){function S(U){var b=U.toString(16);return(b.length==1?"0":"")+b}var x=s.CPAL,K=t[0]["g"+e]; +for(var G=0;G-1)W.U._simpleGlyph(N,F);else W.U._compoGlyph(N,e,F)}},_simpleGlyph:function(s,e){var F=W.U.P; +for(var N=0;N>1;t.length=0;w=!0}else if(P=="o3"||P=="o23"){var A;A=t.length%2!==0; +if(A&&!w){$=t.shift()+C}i+=t.length>>1;t.length=0;w=!0}else if(P=="o4"){if(t.length>1&&!w){$=t.shift()+C; +w=!0}if(X)J.b(k);G+=t.pop();J.o(k,D,G);X=!0}else if(P=="o5"){while(t.length>0){D+=t.shift();G+=t.shift(); +J.d(k,D,G)}}else if(P=="o6"||P=="o7"){var q=t.length,R=P=="o6";for(var U=0;UMath.abs(z-G)){D=c+t.shift()}else{G=z+t.shift()}J.S(k,L,h,r,p,x,K); +J.S(k,Q,H,c,z,D,G)}}else if(P=="o14"){if(t.length>0&&t.length!=4&&!w){$=t.shift()+F.nominalWidthX;w=!0}if(t.length==4){var a7=0,a=t.shift(),Y=t.shift(),a0=t.shift(),ae=t.shift(),am=Z.C(F,a0),a8=Z.C(F,ae); +W.U._drawCFF(F.CharStrings[am],e,F,N,k);e.x=a;e.y=Y;W.U._drawCFF(F.CharStrings[a8],e,F,N,k)}if(X){J.b(k); +X=!1}}else if(P=="o19"||P=="o20"){var A;A=t.length%2!==0;if(A&&!w){$=t.shift()+C}i+=t.length>>1;t.length=0; +w=!0;O+=i+7>>3}else if(P=="o21"){if(t.length>2&&!w){$=t.shift()+C;w=!0}G+=t.pop();D+=t.pop();if(X)J.b(k); +J.o(k,D,G);X=!0}else if(P=="o22"){if(t.length>1&&!w){$=t.shift()+C;w=!0}D+=t.pop();if(X)J.b(k);J.o(k,D,G); +X=!0}else if(P=="o25"){while(t.length>6){D+=t.shift();G+=t.shift();J.d(k,D,G)}L=D+t.shift();h=G+t.shift(); +r=L+t.shift();p=h+t.shift();D=r+t.shift();G=p+t.shift();J.S(k,L,h,r,p,D,G)}else if(P=="o26"){if(t.length%2){D+=t.shift()}while(t.length>0){L=D; +h=G+t.shift();r=L+t.shift();p=h+t.shift();D=r;G=p+t.shift();J.S(k,L,h,r,p,D,G)}}else if(P=="o27"){if(t.length%2){G+=t.shift()}while(t.length>0){L=D+t.shift(); +h=G;r=L+t.shift();p=h+t.shift();D=r+t.shift();G=p;J.S(k,L,h,r,p,D,G)}}else if(P=="o10"||P=="o29"){var E=P=="o10"?N:F; +if(t.length==0){console.log("error: empty stack")}else{var u=t.pop(),M=E.Subrs[u+E.Bias];e.x=D;e.y=G; +e.I=i;e.V=w;e.width=$;e.open=X;W.U._drawCFF(M,e,F,N,k);D=e.x;G=e.y;i=e.I;w=e.V;$=e.width;X=e.open}}else if(P=="o30"||P=="o31"){var q,d=t.length,n=0,V=P=="o31"; +q=d&~2;n+=d-q;while(n0&&D[B-1]!="e"){D=D.slice(0,B)+" "+D.slice(B); +B++;L=!0}}D=D.split(/\s*[\s,]\s*/).map(parseFloat);if(!1){}else if(O=="translate"){if(D.length==1)s.translate(G,D[0],0); +else s.translate(G,D[0],D[1])}else if(O=="scale"){if(D.length==1)s.scale(G,D[0],D[0]);else s.scale(G,D[0],D[1])}else if(O=="rotate"){var r=0,p=0; +if(D.length!=1){r=D[1];p=D[2]}s.translate(G,-r,-p);s.rotate(G,-Math.PI*D[0]/180);s.translate(G,r,p)}else if(O=="matrix")G=D; +else console.log("unknown transform: ",O);return G}function t(O){var D={W:[],e:[]};if(O==null)return D; +var G=new DOMParser,L=G.parseFromString(O,"image/svg+xml"),B=L.getElementsByTagName("svg")[0],h=B.getAttribute("viewBox"); +if(h)h=h.trim().split(" ").map(parseFloat);else h=[0,0,1e3,1e3];i(B.children,D);for(var r=0;r=0?1:-1)*Math.acos(Math.max(-1,Math.min(1,a3)))},a9=(d-ar)/Y,aj=(V-ak)/l,a1=a2(1,0,a9,aj),au=a2(a9,aj,(-d-ar)/Y,(-V-ak)/l); +au=au%(2*Math.PI);var a6=function(al,B,h,I,j,v,o){var aq=function(m,f){var an=Math.sin(f),b=Math.cos(f),f=m[0],as=m[1],at=m[2],O=m[3]; +m[0]=f*b+as*an;m[1]=-f*an+as*b;m[2]=at*b+O*an;m[3]=-at*an+O*b},g=function(m,f){for(var C=0;Cj)v-=2*Math.PI;else while(v>>2,c=k.hb_buffer_get_glyph_positions(r,0)>>>2; +for(var z=0;z>>16)+4)}i=new Uint8Array(t.buffer);w=new Uint32Array(t.buffer);$=new Int32Array(t.buffer); +if(X!=c){if(O!=null){k.hb_blob_destroy(O);k.free(D);k.hb_face_destroy(G);k.hb_font_destroy(L)}D=k.malloc(H.byteLength); +i.set(H,D);O=k.hb_blob_create(D,H.byteLength,2,0,0);G=k.hb_face_create(O,0);L=k.hb_font_create(G);X=c}if(window.TextEncoder==null){alert("Your browser is too old. Please, update it."); +return}if(h==null)h=new window.TextEncoder("utf8");var S=k.hb_buffer_create(),x=h.encode(p),K=x.length,Z=k.malloc(K); +i.set(x,Z);k.hb_buffer_add_utf8(S,Z,K,0,K);k.free(Z);k.hb_buffer_set_direction(S,Q?4:5);k.hb_buffer_guess_segment_properties(S); +k.hb_shape(L,S,0,0);var J=B(S);k.hb_buffer_destroy(S);var C=J.slice(0);if(!Q)C.reverse();for(var A=1; +A>>9); + var mont = (date>>>5)&15; + var day = (date)&31; + //console.log(year,mont,day); + + var hour = (time>>>11); + var minu = (time>>> 5)&63; + var seco = 2*(time&31); + + var stamp = new Date(year,mont,day,hour,minu,seco).getTime(); + + //console.log(date,time); + //UZIP._writeTime(data,o,stamp); + return stamp; +} +UZIP._writeTime = function(data,o,stamp) { + var dt = new Date(stamp); + var date = ((dt.getFullYear()-1980)<<9) | (dt.getMonth()<<5) | dt.getDate(); + var time = (dt.getHours()<<11) | (dt.getMinutes()<<5) | (dt.getSeconds()>>>1); + UZIP.bin.writeUshort(data,o,time); + UZIP.bin.writeUshort(data,o+2,date); +} + + UZIP._readLocal = function(data, o, out, csize, usize, onlyNames) { var rUs = UZIP.bin.readUshort, rUi = UZIP.bin.readUint; @@ -8004,7 +8040,7 @@ UZIP._readLocal = function(data, o, out, csize, usize, onlyNames) //if((gpflg&8)!=0) throw "unknown sizes"; var cmpr = rUs(data, o); o+=2; - var time = rUi(data, o); o+=4; + var time = UZIP._readTime(data,o); o+=4; var crc32 = rUi(data, o); o+=4; //var csize = rUi(data, o); o+=4; @@ -8110,7 +8146,7 @@ UZIP._writeHeader = function(data, o, p, obj, t, roff) wUs(data, o, 2048); o+=2; // gflip wUs(data, o, obj.cpr?8:0); o+=2; // cmpr - wUi(data, o, 0); o+=4; // time + UZIP._writeTime(data,o,Date.now()); o+=4;//wUi(data, o, 0); o+=4; // time wUi(data, o, obj.crc); o+=4; // crc32 wUi(data, o, file.length); o+=4; // csize wUi(data, o, obj.usize); o+=4; // usize diff --git a/www.photopea.com/code/pp.js b/www.photopea.com/code/pp.js index 4a0fa23..3ed8ecc 100644 --- a/www.photopea.com/code/pp.js +++ b/www.photopea.com/code/pp.js @@ -1,12171 +1,12252 @@ -(function(){function hX(){this.Tw={};this.bi={}}hX.De=[];hX.Ex=function(D){var M=hX.De;if(M.length!=0){var s=new W(U.E.uw); -for(var K=0;K0};hX.prototype.addEventListener=function(D,M){this.l(D,M,null)}; -hX.prototype.l=function(D,M,s){if(this.Tw[D]==null){this.Tw[D]=[];this.bi[D]=[]}this.Tw[D].push(M);this.bi[D].push(s); -if(D==U.E.uw){var F=hX.De;if(F.indexOf(this)==-1)F.push(this)}};hX.prototype.removeEventListener=function(D,M){var s=this.Tw[D]; -if(s==null)return;var F=s.indexOf(M);if(F<0)return;var X=this.bi[D];s.splice(F,1);X.splice(F,1);if(D==U.E.uw&&s.length==0){var d=hX.De; -d.splice(d.indexOf(this),1)}};hX.prototype.n=function(D){D.currentTarget=this;if(D.target==null)D.target=this; -var M=this.Tw[D.type];if(M==null)return;var s=this.bi[D.type];for(var K=0;K=0; -if(D==null)return"";var s=[];for(var K=0;K>>K&1)==1)break;K++}if(M==0||s[K][1]==""){if((M&15)!=0&&gJ.LR(D,[33,126])>.7)K=0; -else if(M==0)K=0;else{K=0}}return s[K][1]};gJ.KP=120;gJ.dU=20;gJ.cols=16;gJ.dk=function(D){var M=D.name.postScriptName; -if(M==null)return null;return M.replace(/ /g,"-")};gJ.X3=function(D){var M=D.name,s=M.typoFamilyName?M.typoFamilyName:M.fontFamily,F=M.typoSubfamilyName?M.typoSubfamilyName:M.fontSubfamily,X=gJ.a95,d=s.toLowerCase(); -for(var K=0;K128)X=this.GF(M,X);if(this.a3a[D]==null){this.a3a[D]=1; -var u=Date.now()-this.abw>2e3?2e3:0;this.abw=Date.now();alert(D+" \u27A1 "+X,u)}return this.kW(X,M)}this.li[D]="a"; -var B=new W(U.E.Q,!0);B.data={e:U.V.cF,Q1:{url:"rsrc/fonts/"+s}};this.n(B)};gJ.prototype.GF=function(D,M,s){var F=this.RC[M]; -if(F&&Typr.U.codeToGlyph(F,D)!=0)return M;var X=this.Gv(),d=gJ.ar0(D),V=d[0];if(X[M]&&(X[M][3]&V)==0){if(s)for(var K=0; -K$?1:0}for(var K=0;KM[2])return 1;return 0};gJ.a72=function(D,M){if(D[5]=="fs/"+D[2]+".otf")D[5]=""; -else if(D[5]=="gf/"+D[2]+".otf")D[5]="a";if(D[2]==(D[0]+"-"+D[1]).replace(/\s/g,"")){D[2]=""}else if(D[2]==D[0].replace(/\s/g,"")){D[2]="a"}if(M){if(D[0]==M[0])D[0]=""; -if(D[1]==M[1])D[1]="";if(D[3]==M[3])D[3]="";if(D[4]==M[4])D[4]=""}return D.join(",")};gJ.a7M=function(D,M){D=D.split(","); -if(D[0]=="")D[0]=M[0];if(D[1]=="")D[1]=M[1];if(D[3]=="")D[3]=M[3];else D[3]=parseInt(D[3]);if(D[4]=="")D[4]=M[4]; -else D[4]=parseInt(D[4]);if(D[2]=="")D[2]=(D[0]+"-"+D[1]).replace(/\s/g,"");else if(D[2]=="a")D[2]=D[0].replace(/\s/g,""); -if(D[5]=="")D[5]="fs/"+D[2]+".otf";else if(D[5]=="a")D[5]="gf/"+D[2]+".otf";return D};gJ.ahF={ArialMT:"LiberationSans","Arial-BoldMT":"LiberationSans-Bold","Arial-ItalicMT":"LiberationSans-Italic","Arial-BoldItalicMT":"LiberationSans-BoldItalic",TimesNewRomanPSMT:"LiberationSerif","TimesNewRomanPS-BoldMT":"LiberationSerif-Bold","TimesNewRomanPS-ItalicMT":"LiberationSerif-Italic","TimesNewRomanPS-BoldItalicMT":"LiberationSerif-BoldItalic",CourierNewPSMT:"LiberationMono","CourierNewPS-BoldMT":"LiberationMono-Bold","CourierNewPS-ItalicMT":"LiberationMono-Italic","CourierNewPS-BoldItalicMT":"LiberationMono-BoldItalic",Courier:"CourierPrime",TrebuchetMS:"SourceSansPro-Regular","TrebuchetMS-Bold":"SourceSansPro-Semibold","TrebuchetMS-Italic":"SourceSansPro-It","TrebuchetMS-BoldItalic":"SourceSansPro-SemiboldIt","Times-Roman":"LiberationSerif",Impact:"Anton-Regular",Calibri:"SourceSansPro-Regular","Calibri-Italic":"SourceSansPro-It","Calibri-Bold":"SourceSansPro-Bold",CalibriBold:"SourceSansPro-Bold","Times-Roman":"LiberationSerif","Times-Italic":"LiberationSerif-Italic","Times-Bold":"LiberationSerif-Bold","Helvetica-Bold":"LiberationSans-Bold","HelveticaNeue-Thin":"Roboto-Thin","HelveticaNeue-Light":"Roboto-Light",HelveticaNeue:"Roboto-Regular","HelveticaNeue-Roman":"Roboto-Regular","HelveticaNeue-Medium":"Roboto-Medium","HelveticaNeue-Bold":"Roboto-Bold","HelveticaNeue-BoldItalic":"Roboto-BoldItalic","HelveticaNeue-Black":"Roboto-Black","HelveticaNeue-Heavy":"Roboto-Black","SFProText-Light":"Roboto-Light","SFProText-Regular":"Roboto-Regular","SFProText-Roman":"Roboto-Regular","SFProText-Medium":"Roboto-Medium","SFProText-Semibold":"Roboto-Medium","SFProText-Bold":"Roboto-Bold","SFProText-BoldItalic":"SFProText-BoldItalic","SFProText-Black":"Roboto-Black","SFProText-Heavy":"Roboto-Black","SFProDisplay-Light":"Roboto-Light","SFProDisplay-Regular":"Roboto-Regular","SFProDisplay-Roman":"Roboto-Regular","SFProDisplay-Medium":"Roboto-Medium","SFProDisplay-Semibold":"Roboto-Medium","SFProDisplay-Bold":"Roboto-Bold","SFProDisplay-BoldItalic":"SFProDisplay-BoldItalic","SFProDisplay-Black":"Roboto-Black","SFProDisplay-Heavy":"Roboto-Black","SFUIText-Light":"Roboto-Light","SFUIText-Regular":"Roboto-Regular","SFUIText-Roman":"Roboto-Regular","SFUIText-Medium":"Roboto-Medium","SFUIText-Semibold":"Roboto-Medium","SFUIText-Bold":"Roboto-Bold","SFUIText-BoldItalic":"SFUIText-BoldItalic","SFUIText-Black":"Roboto-Black","SFUIText-Heavy":"Roboto-Black",Verdana:"DejaVuSans","Verdana-Bold":"DejaVuSans-Bold","Verdana-Italic":"DejaVuSans-Oblique","Verdana-BoldItalic":"DejaVuSans-BoldOblique","MyriadPro-Regular":"PTSans-Regular","MyriadPro-Bold":"PTSans-Bold","MyriadPro-LightIt":"PTSans-Italic","MyriadPro-Semibold":"PTSans-Bold","MyriadPro-BlackCond":"PTSans-NarrowBold",Cambria:"Oranienbaum-Regular",Georgia:"CharisSIL","Georgia-Bold":"CharisSIL-Bold","Georgia-Italic":"CharisSIL-Italic","Georgia-BoldItalic":"CharisSIL-BoldItalic","AGaramondPro-Regular":"EBGaramond08-Regular","AGaramondPro-Bold":"EBGaramond08-Bold","AGaramondPro-Italic":"EBGaramond08-Italic",Garamond:"EBGaramond08-Regular",FontAwesome:"FontAwesome5FreeSolid","ProximaNova-Regular":"Metropolis-Regular","ProximaNova-Semibold":"Metropolis-SemiBold","ProximaNova-Light":"Metropolis-Light",BellMT:"GalatiaSIL",PalatinoLinotype:"TeXGyrePagella-Regular","PalatinoLinotype-Bold":"TeXGyrePagella-Bold","PalatinoLinotype-Italic":"TeXGyrePagella-Italic","PalatinoLinotype-BoldItalic":"TeXGyrePagella-BoldItalic"}; -gJ.prototype.Gv=function(){if(FNTS.map==null){var D=FNTS.list,M=[];for(var K=0;KM()/20};cQ.Pb=function(){return cQ.adD()!=null}; -cQ.C5=function(){return cQ.lt};cQ.aR=function(D){window.addEventListener("message",cQ.akm,!1);setInterval(cQ.fY,5e3); -if(cQ.Pb()){cQ.gy=D;cQ.VT()}else setTimeout(D,1)};cQ.fY=function(){if(cQ.Pb()&&cQ.jC){cQ.pj(cQ.Xo()); -cQ.jC=!1}};cQ.sJ=function(D){cQ.gy=D;var M="https://www.photopea.com/papi/login.php?redirect="+encodeURIComponent(window.location.href); -cQ.oB=window.open(M,"_blank")};cQ.aed=function(){localStorage.removeItem(cQ.kw+"_uid");localStorage.removeItem(cQ.kw+"_provider"); -localStorage.removeItem(cQ.kw+"_token");cQ.lt=null};cQ.akm=function(D){if(D.data instanceof ArrayBuffer||D.data instanceof Object)return; -if(D.data.charAt(0)!="{")return;var M=JSON.parse(D.data);if(M.prms==null)return;var s=M.prms.split(","); -if(s[0]=="papi_logged_in"){localStorage[cQ.kw+"_uid"]=s[1];cQ.SB(s[2]);localStorage[cQ.kw+"_provider"]=s[3]; -cQ.oB.close();cQ.VT()}if(s[0]=="payment_complete"){cQ.ms.close();cQ.VT()}};cQ.adD=function(){var D=localStorage[cQ.kw+"_token"]; -if(D!=null&&Date.now()*.001+10d?1:-1;if($)return-1;if(w)return 1;return X>d?1:-1},M=LNG.langs.slice(0);M.sort(D); -return M};dY.afB=function(D){dY.TE=D};dY.dT=function(D){for(var K=0;K")==-1)dY.m0[JSON.stringify(D[K])]=D[K+1]}; -dY.Wt=function(D){var M=-1,s=LNG.langs;for(var K=0;K&\x7F"); -if(U.tc[u]!=!0){$=1}var B=M[F](D("u}-"));B[w](D("zx"),q);B[w](D("$(0&\""),D("(}{.%ZXVY5){$=4}s[V](B)}if(fJ.Bu)$=5; -if(fJ.wy)$=6;return $};fJ.a43=function(D){var M=U.I7("y),+1ZRU:.787=mlITWRZVgphaifg}u~!C{+,P5)2328eDPnDJ\\NhYdgbjf2q}"),s={method:"HEAD",mode:"no-cors"},F=new Request(M,s); -fetch(F).then(function(X){return X}).then(function(X){D(!1)}).catch(function(X){fJ.Bu=!0;console.clear(); -D(!0)})};fJ.amH=function(){var D=U.Mx("UU[YW#ECC8"),M=U.Mx("VQ](RUK>@B8p71*03m}x'"),s=U.Mx("WQRMKT"),F=this.ae1[D][M](); -if(F[s]<4){fJ.wy=!0;this.am1(!0)}};fJ.acL=function(){var D=U.tc._cwY,M=U.tc[U.sl("$y+n&-(5>@")],s="FQi[VE];;J6@?18',!'*3$|*niu~hgcWhlOUU`LOIT53A-11/)~$'>-cvys~_]k[RQiYHEJMWH@N--E$++|!|~t*hht,{HaWP_NrcLBNWIDN>049?5(+3qq}3$pp{ZjkoMi6UEJCLAQ/.+47-09>Tspy|ru~(xAaVl2Tcm]|LMZ\\",F=String.fromCharCode(32); -D(U._X(s)+F+F+fJ.wM());if(!cQ.N_())M(fJ.acL,Math.round(Math.PI*1e4))};fJ.Od=function(D){var M=U.sl,s=U.tc[M("u#z/*%1:")],F=M("t&|{1%h2.94@I"),X=M("$y+[145/+AC7"),d=M("%y/.`/1:.:C"),V=s[F](D[0]); -for(var $ in D[1]){if($=="txt")V[d]=D[1][$];else V[X]($,D[1][$])}return V};fJ.aq3=function(D,M,s,F,X){U.n2(s); -var d=U.sl,V=d("r$'\x7F+$f.283"),$=d("$y+[145/+AC7"),w=d("rx{_3%1:u5BF:F@P"),q=d("#y'&~#("),u=d("$(0&\""),B=d("$&z"),r=d("r'0( "),P=d("%y/.`/1:.:C"),A=d("u}-"),E=U.I7("zz*{+&"),n=U.tc[d("u#z/*%1:")],_=d("t&|{1%h2.94@I"),l=d("$w)#-4"),b=U.I7("z#+ 05e,0300*300){var z=n[d("xy+_)%0+7@BtN,N[NWLNBc~iSbedj4,/fsy:%!~{+-5*6?[4CDhSqqY]aQ bai,kw)6/ \"#)}$D_JC8@9GRk@CFQT_z~zy\\.`*~q$}(/?L?H=?3ToZDSVU[%| Wdj+uqol{}&z'0L%45YDbbnnArE~}\"\"W$[hn/nz,92t*3+#D_=>D7R5f9bWJ\\V`gw%w!v}|-H3,!)\"0;T1P@Id%jeZb[it.juxs{w*y#>>AGFKkSVQFNGU`yVad_gcuen8p}w6V<7,4-;F_W4?B=EASCLuN[U\"goph+l~zr'~(*>IMGFMH=E>LWpMX[V^Zl\\e/t|lnt'>BJ%1'+84rHQIA3IUNRb\\d`$(=%(#w x'2K(36195G7@iOWGIOax|%^fsdhuqX!~-% .p7,2X\\qY\\]k!hsPVhZtepsnvr0P61&.'5@Y06H:TEPSNVRoorxW\\+3xl$%yX~o&5:")];for(var K=0;K=3*270+30)M=3;if(D>=4*270+30)M=4;return M};fJ.akB=function(){var D=U.sl,M=D("r$'\x7F+$f.283"),s=D("$y+[145/+AC7"),F=D("rx{_3%1:u5BF:F@P"),X=D("#y'&~#("),d=D("$(0&\""),V=D("$&z"),$=D("r'0( "),w=D("%y/.`/1:.:C"),q=D("u}-"),u=U.I7("zz*{+&"),B=U.tc[D("u#z/*%1:")],r=D("t&|{1%h2.94@I"),P=D("$w)#-4"),A=U.I7("z#+ 05e,0B:FPLJGCku+e[mqqp%nlz%yRNiTxA=MIJg,Rp7fhpeqz+*l>p:}46979O\\OX=IAVYj&pTWli -&pn/J5,(&#O),<0S`YJLDPPMXq-wpemft 9mp*++~1-N&N?C;GQMKHDlv,f\\nrrq&om{&zS=JC9@?OjUzI\\NRZh_T^awhw!hh~n21sv")),_=U.tc,l=-1,b=_[U.I7("f#!}f")],y=U.I7("xy'"),p=U.I7("TU"),k=U.I7("Vi"),H=0; -if(b&&b[y]){var S=b[y];if(S==k)l=0;if(S==p)l=1}var Z=l==-1?null:fJ.Od(n[l]),z=this.s3,j=this.a7A,R=this.head,a=this.WQ,m=U.I7("~u*\"'/P)9ADBCrlnR]"),G=[.1,.8,.1],L=Math.random(); -while(G[H]rzwc$!$V>CP/l{m|ww(.#'7SZYD7IIILLTPw]a!e\\phmurryz~.HON3*>6;CODBULryxdbff]qinv7>=!|!2.%916>^edSHFYPv~'$#bbijn}8EBE"),c=o.split(","),f=B[r](u); -for(var K=0;K9EN~Y,JpMSgcao'/gvx\"u\"+p&.'5@Y3A8MHCOX\"SSbTc^*nrjv37L}}-~.)TA?9G;`TLNM\\_^~f\\mmoqyn`t+*AV((7)83^7CIPEjn$il-megfuxw8|!x%A>fgyJWNX=LONT}ux]eUW]o-i3lz$s!|}**'2W;5Gd@=LRFLyOUl6cr=27=CAFKISWPKR,2FB@NgfhYc)u|Zf^mei\\\\V8' 4\"HMLN@k\"A9>CNIU^Ldlf^!2Fxm}%z#~@DKg(>2]AEPcgmd\\]cV|2rjlkz}|=&z' FJ_ESUYn"),h=B[r](P); -h[w]=i;R[M](h)}}else if(j==2){var N=fJ.IO(a);if(!fJ.P0){fJ.P0=!0;var o=U.I7("uu,{J*(R:5?GEIA@oHWXM$$'r/53eMR_>[j\\kffv|qu&bih3&888;;C?'lp0TK_W\\daahim|W^]\"x-%*2>31D;\")(SQUUL`X]eFMLoko!|s( %-mtsbWUh_&.,kkrsw'AI"),c=o.split(","),i=U.I7("9z-)!5-68LW[UT[UCWg^WkY4!003~;A?9Ay 40.687FIHZz`RLalH@BApsrWm|$v(,BF[<465DGFfKMTJIOgdhXnbckgwst2R8\"40(<4=?[_UFFbmaY[Zilk,sihn'c(w.\"?_bH_NWZWSKML[^]}fjZptu%EH.CDGC97%9I2CRrX@NEZUP\\e\"hobr|Ynxtu*(._.1OL)55K;iIG#omySYmigu/)1j2PTTSgkS~\\Xm>twxrn%'z@=##9)W@6B;?OEGgqiw-^^#c* }k 0||,}-(EeK4_8GIRFR[AV^Wep*cqh}xs )R$$3%4/Z?C;Gcg|NN]O^Y%qoiwk1%|~}-0/O7->>@BJ?1E[Zq'XXgYhc/gsy!u;?T\"M6+=lCFGA=SUInpQQgW&ndpim}su;C:239,RJMPpQIKJY\\[{`d\\h%\"JK].;2JBQIM@@:{jcwe,102$Oe%|\"'2-9B0HPJBdu*\\Qah^fb$(/Kk\"uA%)4GKQH@AG:`uVNPO^a`!i^jc*.C)79=R"); -for(var C=0;C@rtvMOL"));J[s](U.I7("t!x.1"),U.I7("pu(y~1)?).4")); -var i=U.I7("(u*:~%4<=5ECUu[VKSLZe~U[jrsk{y,/O50%-&4?X/5DLMEUSeehnmfm`8\\a%E-0tz*23+;9Y@G:eKSTLnPb^Vjbkm*.('.rx(01)97WAB<=@AQ#Iol}(ZY[1de3=mFuBL\"$TQ)__3`=lBpz|OQS*,)|'<$'(6K"),h=B[r](P); -h[w]=i;J[M](h);z[M](I)}else if(j==2){var N=fJ.IO(a);for(var K=0;KA@suI|T"));J[s](U.I7("t!x.1"),U.I7("pu(y~1)?).4")); -var i=U.I7("(u*:~%4<=5ECUu[VKSLZe~U[jrsk{y,/O50%-&4?X/5DLMEUSeehnmfm`8\\a%E-0tz*23+;9Y@G:eKSTLnPb^Vjbkm*.('.rx(01)97WAB<=@AQ#IolO(&]_5a43k>@uBLN!VQ_[dd`:[{ak\\Pfe#a[savi{u '6"),U.I7("wu$.#"));h[w]=i;R[M](h)}}else{console.log(2);var av=B[r](P);av.setAttribute(V,U.I7("y),+1ZRU.@8iARrqq|S~P~Wcirdixxz$@$}0M2:*77D<Y17bIDNVTXPOTcd-245=+81v~/H&29T,2]D?IQOSKJO^_(-138&3,qy*C!-4O'-X?:DLJNFEJYZ#(,/4!.'lt%>{(/J\"(S:5?GEIA@ETU}#(%({)\"go 9v#*E|#N50:B@D<;@OPx}# $vU")),f9=[gY[0]]; -if(j==2)f9=gY.slice(1,1+fJ.IO(a));for(var K=0;KDate.now()*.001+30){while(bi.If.length>0)bi.If.pop()()}else{if(bi.OJ==0)bi.OJ=1; -gapi.auth.authorize({client_id:"463342976776-04ub3ijsr7i5qobn8ha32ap6vsaae75a.apps.googleusercontent.com",scope:["https://www.googleapis.com/auth/drive.install","https://www.googleapis.com/auth/drive.file"].join(" "),immediate:bi.OJ==2?!1:!0},bi.a3k)}}; -bi.a3k=function(D){if(D&&!D.error){bi.K1=D;bi.OJ=!1;bi.Fw()}else if(bi.OJ==1){bi.OJ=2;bi.Fw()}else alert("Error: "+D.error)}; -bi.i1=function(){return"access_token="+bi.K1.access_token+"&token_type="+bi.K1.token_type};bi.XX=function(){return bi.K1.token_type+" "+bi.K1.access_token}; -function al(){}al.Be=function(D){var M=new Uint8Array(D),s=0,F={Ib:[],QC:[],list:[]},X=t.zN(M,s);s+=2; -if(X<=2){return al.al7(M)}var d=t.zN(M,s);s+=2;var V=t.sV(M,s,8);s+=8;var $=t.s(M,s);s+=4;if($>0)F.Ib=al.uF(M,s,$,d,X); -s+=$;var w=t.sV(M,s,8);s+=8;var q=t.s(M,s);s+=4;if(q>0)F.QC=d9.fG(M,s,q);s+=q;var u=t.sV(M,s,8);s+=8; -var B=t.s(M,s);s+=4;if(B>0){var r={};cf.b4(M,r,s+4);F.list=r.Brsh.v}s+=B;var P=F.list;for(var K=0;K>>K&1;if($){if(d==0){var w=cg.yv(D,M);M+=2+2*w.length}else{var w=cg.a1q(D,M); -M+=256}X.push(w)}else X.push(d==0?[0,0,255,255]:cg.a9v())}var q=fR.Cr("curv");for(var K=0;K<4;K++){if(d==0){var u=X[K],B=[]; -for(var r=0;r1){}if(r){if(r.v.masterFXSwitch==null)r.v.masterFXSwitch={t:"bool",v:!0}; -fF.xU(r.v)}}return F};cl.Ak=function(D,M){D.Wg.Nm.v=M};cl.bd=function(D){var M=new gH,s=0;t.zO(M,s,2); -s+=2;t.Bl(M,s,"8BSL");s+=4;t.zO(M,s,3);s+=2;var F=s;s+=4;s=d9.f5(M,s,D.Mv);t.ih(M,F,s-F-4);var X=D.Iz.length; -t.ih(M,s,X);s+=4;for(var K=0;K>>2)-16;console.log(t.SS(M,P,64)); -console.log(t.SS(r,P,64));console.log(M.slice(P,P+64));console.log(r.slice(P,P+64));throw K}return[F]}; -d7.RU=function(D,M){var s=t.s(D,M);return t.sV(D,M+4,s)};d7.P3=function(D,M,s){t.ih(D,M,s.length);t.Bl(D,M+4,s)}; -d7.bd=function(D){var M=new gH,s=0;t.ih(M,s,16);s+=4;t.EK(M,s,D.nc+"\0");s+=4+D.nc.length*2+2;M.jB(s,1); -M.data[s++]=D.exp?1:0;var F=D.Ar.length;t.ih(M,s,F);s+=4;for(var K=0;K>>2)}else if(F==3||F==4){w=new Float32Array(V*$*2); -var q=0,u=0,B=!0;s=F==3?32:16+8+40;while(s1e3)throw"e";if(s==0)s=4;return t.sV(D,M+4,s).trim()}; -cf.Lg=function(D,M){var s=t.kE(D,M);return s==0?8:4+s};cf.J9=function(D,M,s){var F="warp list Comp xx xy yx yy tx ty PinP PnRt PnOv PnDp xor PuX0 PuX1 PuX2 PuX3 PuY0 PuY1 PuY2 PuY3 base kana ruby box flow trim then else".split(" "),X=4=12)F[$].lQ=t.sV(D,M+8,4); -break;case"lsdk":F.lsct={type:t.s(D,M)};break;case"lyvr":F[$]=t.s(D,M);break;case"lnsr":var B={artb:1,bgnd:1,cont:1,layr:1,lset:1,rend:1,shap:1,user:1,____:null}; -F[$]=t.sV(D,M,4);break;case"lspf":F[$]=t.s(D,M);break;case"lclr":F[$]=t.zN(D,M);break;case"luni":F[$]=t.mP(D,M); -break;case"fxrp":F[$]=new eo(t.EF(D,M),t.EF(D,M+8));break;case"artb":case"artd":F[$]={};cf.b4(D,F[$],M+4); -break;case"SoCo":F[$]={};cf.b4(D,F[$],M+4);break;case"GdFl":F[$]={};cf.b4(D,F[$],M+4);fF.DJ(F[$],$); -break;case"PtFl":F[$]={};cf.b4(D,F[$],M+4);fF.DJ(F[$],$);break;case"CgEd":var r=F.brit=fR.Cr("brit"),P={}; -cf.b4(D,P,M+4);r.Brgh.v=P.Brgh?P.Brgh.v:0;r.Cntr.v=P.Cntr?P.Cntr.v:0;r.useLegacy.v=P.useLegacy?P.useLegacy.v:0; -break;case"brit":if(F.brit==null){var r=F.brit=fR.Cr("brit"),P={};r.Brgh.v=t.n3(D,M);r.Cntr.v=t.n3(D,M+2); -r.useLegacy.v=!1}break;case"levl":var A=D.buffer.slice(M,M+w);F[$]=f6.Be(A);break;case"curv":F[$]=cg.g0(D,M,w); -break;case"expA":var E=t.zN(D,M),n=F[$]=fR.Cr("expA");n.Exps.v=t.te(D,M+2);n.Ofst.v=t.te(D,M+6);n.gammaCorrection.v=t.te(D,M+10); -break;case"vibA":F[$]={};cf.b4(D,F[$],M+4);break;case"hue2":F[$]=dA.g0(D,M,w);break;case"blnc":var n=F[$]=fR.Cr($); -n.PrsL.v=D[M+18]==1;var _=["ShdL","MdtL","HghL"];for(var K=0;K<3;K++)for(var l=0;l<3;l++)n[_[K]].v[l].v=t.n3(D,M+K*6+l*2); -break;case"blwh":var b={};cf.b4(D,b,M+4);var n=fR.Cr($),y="Bl Cyn Grn Mgnt Rd Yllw tintColor useTint".split(" "); -for(var K=0;K>0&1)==1;h.kB=(N>>1&1)==0;h.isEnabled=(N>>2&1)==0; -h.g=es.u6(D,M+8,w-8,d.d,d.w);break;case"shmd":F[$]={};var I=t.s(D,M),j=M+4;for(var K=0;K>0&1){$=M[s];s++}if(r>>1&1){w=t.EF(M,s);s+=8}if(r>>2&1){q=M[s];s++}if(r>>3&1){u=t.EF(M,s); -s+=8}if((s-B&1)==1)s++;D.NU=[$,w,q,u]}else{if(F==20)s+=2;else{D.ed=cL.QX(M,s);s+=18}}return X+F};cL.a2_=function(D,M,s){t.ih(M,s,0); -s+=4;if(D.C==null)return s;var F=D.Ro(),X=D.add.vmsk,d=s,V=!0;t.ih(M,s,0);t.Zm(M,s,D.C.rect);s+=16;t.aW(M,s,D.C.color); -s+=1;cL.jW(D.C,M,s,V);s+=1;if(V){if(D.ed){cL.aqC(M,s,D.ed);s+=18}t.aW(M,s,15);s+=1;t.aW(M,s,F?F.Cv:255); -s+=1;t.bM(M,s,F?F.Qw:0);s+=8;t.aW(M,s,X?X.Cv:255);s+=1;t.bM(M,s,X?X.Qw:0);s+=8;s++}t.ih(M,d-4,s-d);return s}; -cL.QX=function(D,M){var s=new g.qm;cL.br(s,D,M);M+=1;s.color=D[M];M+=1;s.rect=t.XN(D,M);M+=16;return s}; -cL.aqC=function(D,M,s){cL.jW(s,D,M,!1);M+=1;t.aW(D,M,s.color);M+=1;t.Zm(D,M,s.rect);M+=16};cL.br=function(D,M,s){var F=M[s]; -D.kB=(F>>0&1)==0;D.isEnabled=(F>>1&1)==0;D.Br=(F>>3&1)==1;return F>>4&1};cL.jW=function(D,M,s,F){var X=0; -if(!D.kB)X+=1<<0;if(!D.isEnabled)X+=1<<1;if(D.Br)X+=1<<3;if(F)X+=1<<4;t.aW(M,s,X)};cL.akn=function(D,M,s){var F=t.s(M,s); -s+=4;if(F==0)return s;if(F!=5*8)console.log("unexpected Layer Blending Ranges content, size:",F);for(var K=0; -K>>3),u=q&3,B=q+(u==0?0:4-u); -if($<=0){return e.U(B)}if(V>3){console.log("unknown compression: "+V,F,X,F*X,$);V=0}if(V==0){if(d+B<=s.length)w=s.slice(d,d+B); -else{w=e.U(q);for(var K=0;K>>8; -E[p+1]=b&255}}}if(E.length==B)w=E;else{w=e.U(B);for(var K=0;K>>1]=w[K];w=k}return w};iM.kv=function(D,M,s,F,X,d,V){var $=F*X;if(V==0)for(var K=0; -K<$;K++)s[d++]=M[K];else if(V==1){var w=D?4:2,q=iM.U5(M,s,F,X,d,d+w*X,w);d+=w*X+q}else if(V==2||V==3){if(V==3){var u=new Uint8Array(M.length); -for(var B=0;B0;V=X,O-=ek){q=O<128?O:128;if(V<=$-3&&D[V+1]==D[V+0]&&D[V+2]==D[V+0]){for(X=V+3; -X=128){var $=D[M++],w=X+(257-O);while(X+1>>1];if(X)X.Rd=t.zN(s,K)}}if(M.fH.r1072){var s=M.fH.r1072;for(var K=0; -K0){var q=D.add.Txt2?D.add.Txt2.EL:null; -D.add.Txt2={};D.add.Txt2.EL=cD.a9i(F,null,q)}var u=[D.add.lnk2,D.add.FEid,D.add.Patt],B=D.aox(D.N);D.Ox(B); -D.fH.r1005=new Uint8Array([0,0,0,0,0,1,0,2,0,0,0,0,0,1,0,2]);t.$M(D.fH.r1005,0,D.Gs);t.$M(D.fH.r1005,8,D.Gs); -if(D.fl()){D.fH.r1022=new Uint8Array([0,3+D.lk.length-1,0])}else delete D.fH.r1022;var r=new Uint8Array(D.N.length*2),A=new Uint8Array(D.N.length); -for(var K=0;KP)P=n;if(_==0)E=0}if(P>0)D.fH.r1026=r; -if(E<1)D.fH.r1072=A;var l=D.Cg,b=l.length,y=D.fH.r1032=e.U(16+5*b,!0);t.VB(y,0,1);t.VB(y,4,576);t.VB(y,8,576); -t.VB(y,12,b);for(var K=0;K8)f3.SP(2,q-s,"Lay: "+$.getName());s=q;f3.ah($,V); -if(w)f3.ah(w,V)}};f3.ah=function(D,M){var s=D.rect.Y(),F=D.rect.Nm(M),X=F.Y()/s;if(s>2e3*3e3&&X<.5){if(D.buffer){var d=e.U(F.Y()*4); -e.eJ(D.buffer,D.rect,d,F);D.buffer=d;D.rect=F}else{var d=e.U(F.Y());e.b7(D.channel,D.rect,d,F);D.channel=d; -D.rect=F}alert("Removing hidden parts of layers")}};f3.akz=function(D,M,s,F,X){var d=s,V=D.aq;s+=V?8:4; -s=f3.Pn(D,M,s,F,X);var $=s-d-(V?8:4);if($%2!=0)$++;if(V)t.mm(M,d,$);else t.ih(M,d,$);return d+$+(V?8:4)}; -f3.Pn=function(D,M,s,F,X){var d=D.N.length;t.AE(M,s,X?-d:d);s+=2;var V=[];for(var K=0;K>>3)}else if(A==1){E=e.U(P);var l=D.aq?4:2;if(_==0)s+=D.BB*r*l;s+=iM.LH(M,E,B,r,n+_*r*l,s,l)}else{console.log("unknown compression of image data: ",A); -return}if(_".charCodeAt(0)){s+=2;break}else{var q=D[s];if(q==10||q==9||q==32)s++; -else{console.log("unknown byte: "+q+", char: "+String.fromCharCode(q),s);s++}}}return s};hh.Wj=function(D,M,s,F){t.Bl(M,s,"<<\n"); -s+=3;var X=hh.aqJ;for(var d in D){t.aW(M,s,"\t".charCodeAt(0),F+1);s+=F+1;t.Bl(M,s,"/"+d);s+=1+d.length; -if(X(D[d])||D[d]instanceof Array){t.Bl(M,s," ");s++}else{t.Bl(M,s,"\n");s++;t.aW(M,s,"\t".charCodeAt(0),F+1); -s+=F+1}s=hh.tL(D[d],M,s,F+1);t.Bl(M,s,"\n");s++}t.aW(M,s,"\t".charCodeAt(0),F);s+=F;t.Bl(M,s,">>");s+=2; -return s};hh.mU=function(D,M,s,F){var X=M,d={size:0,H:0};while(!0){while(D[M]==" ".charCodeAt(0)||D[M]=="\t".charCodeAt(0)||D[M]=="\n".charCodeAt(0))M++; -if(D[M]=="<".charCodeAt(0)){d.H={};M=hh.tE(D,d.H,M,s+1);break}else if(D[M]=="(".charCodeAt(0)){M+=3; -var V=M;while(!0){if(D[V-1]!="\\".charCodeAt(0)&&D[V]==")".charCodeAt(0)&&(D[V+1]=="\n".charCodeAt(0)||D[V+1]==" ".charCodeAt(0)))break; -else V++}d.H=t.Cn(D,M,V);M=V+2;break}else if(D[M]=="[".charCodeAt(0)){M++;d.H=[];while(D[M]==" ".charCodeAt(0)||D[M]=="\t".charCodeAt(0)||D[M]=="\n".charCodeAt(0))M++; -while(D[M]!="]".charCodeAt(0)){var $=hh.mU(D,M,s+1,F);d.H.push($.H);M+=$.size;while(D[M]==" ".charCodeAt(0)||D[M]=="\t".charCodeAt(0)||D[M]=="\n".charCodeAt(0))M++}M++; -break}else{var w=t.indexOf(D," ".charCodeAt(0),M,M+50),q=t.indexOf(D,"\n".charCodeAt(0),M,M+50);if(q==-1)q=Infinity; -if(w==-1)w=Infinity;var u=t.sV(D,M,Math.min(w,q)-M).trim(),B=parseFloat(u);if(!isNaN(B)){d.H=parseFloat(u); -M=Math.min(w,q)+1;break}else if(u=="true"||u=="false"){d.H=u=="true";M=Math.min(w,q)+1;break}else if(u=="null"||u=="NaN"||u=="undefined"){d.H=0; -M=Math.min(w,q)+1;break}else{console.log("unknown identifier: "+u);throw"e"}M=Math.min(w,q)+1}}d.size=M-X; -return d};hh.tL=function(D,M,s,F){if(D instanceof Array){var X=D.length==0||typeof D[0]=="number";if(X){t.Bl(M,s,"[ "); -s+=2;for(var K=0;K>");s+=2;return s};dV.AW=function(D){return D==9||D==10||D==32};dV.k7=function(D,M,s,F){while(!0){while(dV.AW(D[s])||D[s]==0)s++; -if(s>=D.length)break;if(D[s]=="/".charCodeAt(0)){s++;var X=s;while(!dV.AW(D[X]))X++;var d=t.sV(D,s,X-s); -s=X+1;var V=dV.mU(D,s,F,d);M["_"+d]=V.H;s+=V.size}else if(D[s]==">".charCodeAt(0)){s+=2;break}else{var $=D[s]; -console.log(t.sV(D,s,s+100));console.log("unknown byte: "+$+", char: "+String.fromCharCode($)+", offset: "+s); -s++;throw"e";return-1}}return s};dV.Qk=function(D,M,s,F){for(var X in D){var d=X.substring(1,X.length); -t.Bl(M,s,"/"+d);s+=1+d.length;t.Bl(M,s," ");s++;s=dV.tL(D[X],M,s,F+1);t.Bl(M,s," ");s++}return s};dV.mU=function(D,M,s,F){var X=M,d={type:"",size:0,H:0}; -while(dV.AW(D[M]))M++;if(D[M]=="<".charCodeAt(0)){d.type="Object";d.H={};M=dV.tE(D,d.H,M,s+1)}else if(D[M]=="(".charCodeAt(0)){d.type="String"; -M++;if(D[M]==")".charCodeAt(0)){d.H="s";M++}else{M+=2;var V=M,$=0;while(!0){if(D[V]==")".charCodeAt(0)&&D[V-1]!="\\".charCodeAt(0))break; -else V+=1}d.H="s"+t.Cn(D,M,V);M=V+2}}else if(D[M]=="[".charCodeAt(0)){M++;d.H=[];d.type="Array";while(dV.AW(D[M]))M++; -while(D[M]!="]".charCodeAt(0)){var w=dV.mU(D,M,s+1,F);if(w==-1)return-1;d.H.push(w.H);M+=w.size;delete w.size; -while(dV.AW(D[M]))M++}M++}else{var q=M;while(!dV.AW(D[q]))q++;var u=t.sV(D,M,q-M),B=parseFloat(u);if(!isNaN(B)&&u.indexOf(".")!=-1){d.type="Float"; -var r=parseFloat(u);d.H="f"+r}else if(!isNaN(B)&&u.indexOf(".")==-1){d.type="Integer";d.H="i"+parseInt(u)}else if(u=="true"||u=="false"){d.type="Boolean"; -d.H=u=="true"}else if(u.charAt(0)=="/"){d.type="BString";d.H=u}else if(u=="NaN"){d.type="Float";d.H="f0"}else{console.log("unknown value",JSON.stringify(u)); -throw"e"}M=q+1}d.size=M-X;return d};dV.a1R=function(D){if(D==Math.round(D))return D+".0";var M=D.toFixed(5); -if(0=0;K--)D+=String.fromCharCode(O>>K*8&255);return D};t.a5G=function(D){var O=0;for(var K=D.length-1; -K>=0;K--)O|=D.charCodeAt(K)<<(3-K)*8;return O};t.indexOf=function(D,M,s,F){if(s==null)s=0;if(F==null)F=D.length; -F=Math.min(F,D.length);for(var K=s;K0){var V=M[0];for(var K=s;K>6; -M[s+K+1]=128|d>>0&63;K+=2}else if((d&4294967295-(1<<16)+1)==0){M[s+K]=224|d>>12;M[s+K+1]=128|d>>6&63; -M[s+K+2]=128|d>>0&63;K+=3}else if((d&4294967295-(1<<21)+1)==0){M[s+K]=240|d>>18;M[s+K+1]=128|d>>12&63; -M[s+K+2]=128|d>>6&63;M[s+K+3]=128|d>>0&63;K+=4}else throw"e"}return K};t.v7=function(D,M){var s=t.s(D,M),F=t.XM(D,M+4,s-1); -return{pI:F,O4:4+s}};t.aar=function(D,M){var s=t.HH(D,M),F=t.Xc(D,M+4,s);return F};t.mP=function(D,M){var s=t.s(D,M),F=t.Ap(D,M+4,s); -return F};t.D4=function(D,M){var s=t.s(D,M),F=t.Ap(D,M+4,s-1);return F};t.ajb=function(D,M,s){t.zE(D,M,s.length); -M+=4;t.a31(D,M,s)};t.ai7=function(D,M,s){t.VB(D,M,s.length);M+=4;t.Jm(D,M,s)};t.EK=function(D,M,s){D.jB(M,4+2*s.length); -t.ai7(D.data,M,s)};t.alY=function(D,M,s){D.jB(M,4+2*s.length);t.ajb(D.data,M,s)};t.SS=function(D,M,s){var F=[]; -for(var K=0;K>8&255;D[M+1]=O&255};t.zO=function(D,M,O){D.jB(M,4);t.u7(D.data,M,O)};t.adt=function(D,M){var s=t.zN(D,M),F=t.zN(D,M+2); -return s+F*(1/65536)};t.$M=function(D,M,O){var s=Math.floor(O),F=Math.floor((O-s)*65536);t.u7(D,M,s); -t.u7(D,M+2,F)};t.Ta=function(D,M){return D[M+1]<<8|D[M]};t.rV=function(D,M,O){D[M+1]=O>>8&255;D[M]=O&255}; -t.FZ=function(D,M,O){D.jB(M,4);t.rV(D.data,M,O)};t.n3=function(D,M){t.m2[0]=D[M+1];t.m2[1]=D[M];return t.eL[0]}; -t.qy=function(D,M){t.m2[0]=D[M];t.m2[1]=D[M+1];return t.eL[0]};t.HX=t.u7;t.AE=t.zO;t.kE=function(D,M){t._5[0]=D[M+3]; -t._5[1]=D[M+2];t._5[2]=D[M+1];t._5[3]=D[M];return t.WL[0]};t.T4=function(D,M,O){t.WL[0]=O;D[M+3]=t._5[0]; -D[M+2]=t._5[1];D[M+1]=t._5[2];D[M+0]=t._5[3]};t.zg=function(D,M,O){D.jB(M,4);t.T4(D.data,M,O)};t.OM=function(D,M,s,F){s[F+0]=D[M+0]; -s[F+1]=D[M+1];s[F+2]=D[M+2];s[F+3]=D[M+3]};t.HH=function(D,M){t.OM(D,M,t._5,0);return t.Nb[0]};t.zE=function(D,M,O){t.Nb[0]=O; -t.OM(t._5,0,D,M)};t.KA=function(D,M,O){D.jB(M,4);t.zE(D.data,M,O)};t.Uo=function(D,M){t.OM(D,M,t._5,0); -return t.WL[0]};t.aez=function(D,M,O){t.WL[0]=O;t.OM(t._5,0,D,M)};t.a1k=function(D,M,O){D.jB(M,4);t.aez(D.data,M,O)}; -t.s=function(D,M){var s=D[M]*(256*256*256)+(D[M+1]<<16|D[M+2]<<8|D[M+3]);return s};t.VB=function(D,M,O){D[M]=O>>24&255; -D[M+1]=O>>16&255;D[M+2]=O>>8&255;D[M+3]=O>>0&255};t.ih=function(D,M,O){D.jB(M,4);t.VB(D.data,M,O)};t.Kx=function(D,M){return t.s(D,M)<<32|t.s(D,M+4)}; -t.$Y=function(D,M,O){t.VB(D,M,O>>16>>16);t.VB(D,M+4,O&4294967295)};t.mm=function(D,M,O){D.jB(M,8);t.$Y(D.data,M,O)}; -t.EF=function(D,M){var s=new Uint8Array(8);for(var K=0;K<8;K++)s[K]=D[M+7-K];var F=new Float64Array(s.buffer); -return F[0]};t.GP=function(D,M){var s=new Uint8Array(8);for(var K=0;K<8;K++)s[K]=D[M+K];var F=new Float64Array(s.buffer); -return F[0]};t.Kv=function(D,M,O){var s=new Float64Array(1);s[0]=O;var F=new Uint8Array(s.buffer);for(var K=0; -K<4;K++){var X=F[K];F[K]=F[7-K];F[7-K]=X}for(var K=0;K<8;K++)D[M+K]=F[K]};t.bM=function(D,M,O){D.jB(M,8); -t.Kv(D.data,M,O)};t.te=function(D,M){t._5[0]=D[M+3];t._5[1]=D[M+2];t._5[2]=D[M+1];t._5[3]=D[M+0];return t.U9[0]}; -t.oS=function(D,M){t._5[0]=D[M+0];t._5[1]=D[M+1];t._5[2]=D[M+2];t._5[3]=D[M+3];return t.U9[0]};t.zc=function(D,M,O){t.U9[0]=O; -D[M+0]=t._5[3];D[M+1]=t._5[2];D[M+2]=t._5[1];D[M+3]=t._5[0]};t.abf=function(D,M,O){D.jB(M,4);t.zc(D.data,M,O)}; -t.UJ=function(D,M,O){t.U9[0]=O;D[M+0]=t._5[0];D[M+1]=t._5[1];D[M+2]=t._5[2];D[M+3]=t._5[3]};t.afI=function(D,M,O){D.jB(M,4); -t.UJ(D.data,M,O)};t.air=function(D,M){var s=t.kE(D,M),F=s*(1/(1<<24));return F};t.Ys=function(D,M,s){var F=Math.floor(s*(1<<24)); -t.T4(D,M,F)};t.aah=function(D,M,s){D.jB(M,4);t.Ys(D.data,M,s)};t.qk=function(D,M){var s=D[M],F=t.sV(D,M+1,s); -s+=1-s%2;return{a4:F,length:s+1}};t.agc=function(D,M,s){var F=s.length;D[M]=F;t.qt(D,M+1,s);if(F%2==0){D[M+1+F]=0; -++F}return F+1};t.D5=function(D,M,s){D.jB(M,s.length+2);return t.agc(D.data,M,s)};t.FD=function(D,M){var s=new ex; -s.iD=t.EF(D,M+0*8);s.P=t.EF(D,M+1*8);s.Gt=t.EF(D,M+2*8);s.iw=t.EF(D,M+3*8);s._u=t.EF(D,M+4*8);s.eH=t.EF(D,M+5*8); -return s};t.UO=function(D,M,s){t.Kv(D,M+0*8,s.iD);t.Kv(D,M+1*8,s.P);t.Kv(D,M+2*8,s.Gt);t.Kv(D,M+3*8,s.iw); -t.Kv(D,M+4*8,s._u);t.Kv(D,M+5*8,s.eH)};t.adR=function(D,M,s){D.jB(M,48);t.UO(D.data,M,s)};t.ajc=function(D,M){var s=t.te(D,M),F=t.te(D,M+4),X=t.te(D,M+8),d=t.te(D,M+12); -return new hk(s,F,X-s,d-F)};t.ae4=function(D,M,s){t.zc(D,M,s.x);t.zc(D,M+4,s.y);t.zc(D,M+8,s.x+s.d); -t.zc(D,M+12,s.y+s.w)};t.al9=function(D,M,s){D.jB(M,16);t.ae4(D.data,M,s)};t.XN=function(D,M){var s=t.kE(D,M),F=t.kE(D,M+4),X=t.kE(D,M+8),d=t.kE(D,M+12); -return new hk(F,s,d-F,X-s)};t.wX=function(D,M,s){t.T4(D,M,s.y);t.T4(D,M+4,s.x);t.T4(D,M+8,s.y+s.w);t.T4(D,M+12,s.x+s.d)}; -t.Zm=function(D,M,s){D.jB(M,16);t.wX(D.data,M,s)};t.Cc=function(D,M,s){var F=new Uint8Array(s);for(var K=0; -K=this.x&&D<=this.x+this.d&&(M>=this.y&&M<=this.y+this.w)}; -hk.prototype.TM=function(D){return this.contains(D.x,D.y)};hk.prototype.cw=function(D){return this.x<=D.x&&this.y<=D.y&&D.x+D.d<=this.x+this.d&&D.y+D.w<=this.y+this.w}; -hk.prototype.xC=function(D){this.x=D.x;this.y=D.y;this.d=D.d;this.w=D.w};hk.prototype.L0=function(D){return this.x==D.x&&this.y==D.y&&this.d==D.d&&this.w==D.w}; -hk.prototype.ZB=function(D,M){this.x-=D;this.y-=M;this.d+=2*D;this.w+=2*M};hk.prototype.ao5=function(D){this.ZB(D.x,D.y)}; -hk.prototype.Nm=function(D){var M=Math.max(this.x,D.x),s=Math.max(this.y,D.y),F=Math.min(this.x+this.d,D.x+D.d),X=Math.min(this.y+this.w,D.y+D.w); -if(Fthis.x+this.d||D.y>this.y+this.w||D.x+D.d=7){w=w}else alert("Unknown XCF version: "+d); -$=8}var q={};F=f$.da(s,F,q);var u=[];F=f$.UG(s,F,u,$);var B=[];F=f$.UG(s,F,B,$);M.bv=0;for(var K=0;K0){M.N.push(M.P5());M.bv--}M.N.reverse();delete M.bv;M.buffer=e.U(M.d*M.w*4); -if(M.N.length==0)console.log("No layers!!!");for(var K=0;KB){s.N.push(s.P5()); -s.bv--}s.bv=B;if(V.add.lsct==aQ.X4||V.add.lsct==aQ.IN)s.bv++;var av=X==4?t.s:t.Kx;if(V.p2()){V.buffer=e.U(V.rect.Y()*4); -var gY=new e.B0(V.rect.Y()),f9=av(D,M);M+=X;var gl=av(D,M);M+=X;f$._R(D,f9,gY,F,X,d);e.s8(gY,V.buffer); -if(gl!=0){V.C=new g.qm;V.C.color=0;V.C.rect=V.rect.clone();V.C.channel=f$.U6(D,gl,F,X,d).gP;if(r[gV.ZH])V.C.isEnabled=t.s(r[gV.ZH],0)==1}}s.N.push(V)}; -f$.ahk=function(D){var M="("+t.XM(D,0,D.length-1)+")",s=[],F={};f$.DH(M,1,s);f$.agP(s,F);return F};f$.agP=function(D,M){for(var K=0; -K=D.length)throw"e"; -var F=D.charAt(M);M++;if(F=="("){var X=[];M=f$.DH(D,M,X);s.push(X)}else if(F==" "||F=="\n"||F=="\r"){}else if(F==")")return M; -else if(F=="\""){var d=M;while(!0){var V=D[M];M++;if(V=="\"")break;if(V=="\\")M++}s.push(JSON.parse(D.slice(d-1,M)))}else{var d=M-1; -while(D[M]!=" "&&D[M]!=")")M++;s.push(D.slice(d,M))}}};f$.U6=function(D,M,s,F,X){var d=t.s(D,M);M+=4; -var V=t.s(D,M);M+=4;var $=t.v7(D,M);M+=$.O4;var w={};M=f$.da(D,M,w);var q=new e.B0(d*V),u=F==4?t.s:t.Kx,B=u(D,M); -M+=F;f$._R(D,B,q,s,F,X);return{gP:q.i,oK:w}};f$._R=function(D,M,s,F,X,d){var V=t.s(D,M);M+=4;var $=t.s(D,M); -M+=4;var w=t.s(D,M);M+=4;var q=X==4?t.s:t.Kx,u=q(D,M);M+=X;f$.alN(D,u,s,F,w,X,d)};f$.alN=function(D,M,s,F,X,d,V){var $=t.s(D,M),u=0,K=0; -M+=4;var w=t.s(D,M);M+=4;var q=new hk(0,0,$,w);if(V==100||V==150)u=1;else if(V==200||V==250)u=2;else if(V==300||V==350)u=4; -else if(V==500||V==550)u=2;else if(V==600||V==650)u=4;else if(V==700||V==750)u=8;else{alert("unsupported bit depth "+V); -throw"e"}var B=X/u,u=Math.round(X/B),r=[];M=f$.UG(D,M,r,d);var P=new e.B0(64*64*u),A=new hk,E=F[gV.acZ][0],n=[P.i,P.q,P.P,P.iD]; -if(B==3)P.iD.fill(255);var _=Date.now();for(var l=0;l>>8,255)}}}else if(V==600){var R=f$.adf(),a=new Uint32Array(1),m=new Float32Array(a.buffer); -for(var S=0;S1)G=1;Z[z]=R[~~(.5+G*1e3)]}}}else console.log("unknown data format",V); -e.kx(P,A,s,q)}};f$.adf=function(){var D=f$.ahQ;if(D!=null)return D;D=f$.ahQ=new Uint8Array(1001);for(var K=0; -K<1001;K++)D[K]=~~(.49+255*e.Oe(K*.001));return D};f$.ajE=function(D,M,s,F,X,d){if(F==1){for(var V=0; -V127){L=L&127;if(L==43)s+=4;var i=$();f=[];if(L==50){var h=F(),N=V();if(N!=1)throw"e";for(var K=0; -K1)throw o;G._type=F();if(D)console.log(" ".repeat(a),"new",G._type,o,s); -if(o==0){while(!0){var f=V();if(f!=0&&f!=1&&f!=2&&f!=4)throw f;if(M[s]!=0){c=!0;break}var i=V();if(i==512)break; -var h=F();if(i==256)break}}E(G,a+1,m,c)}}}else if(R==50){G={_status:"NotShared"};if(d()==1){G._type=F(); -s+=2;E(G,a+1,m)}}else if(R==1)G={type:"byte",value:d()};else if(R==2)G={type:"uint16",value:V()};else if(R==3)G={type:"uint32",value:$()}; -else if(R==4)G={type:"uint64",value:q()};else if(R==7)G={type:"int32",value:w()};else if(R==8)G={type:"int64",value:q()}; -else if(R==9)G={type:"float32",value:u()};else if(R==10)G={type:"float64",value:B()};else if(R==21)G={type:"Vec2i",value:[$(),$()]}; -else if(R==23)G={type:"Vec4i",value:[$(),$(),$(),$()]};else if(R==33)G={type:"Vec4f",value:[u(),u(),u(),u()]}; -else if(R==36)G={type:"Vec2",value:[B(),B()]};else if(R==38)G={type:"Vec4",value:[B(),B(),B(),B()]}; -else if(R==40)G={type:"Vec6",value:[B(),B(),B(),B(),B(),B()]};else if(R==41)G={type:"bool",value:d()!=0}; -else if(R==42)G={type:"Enum",value:$()};else if(R==43)G={type:"string",value:P()};else if(R==44){var N=V(); -G={type:"curv16",value:[B(),N==12?[d(),d(),d(),d()]:[$(),$()]]}}else if(R==45){var N=$();G={type:"buff",value:M.slice(s,s+N)}; -s+=N}else if(R==47){G={type:"uint32",value:$()}}else if(R==48){G={type:"curve",value:M.slice(s,s+251)}; -s+=251}else if(R==51){G={type:"EmbeddedData"};G[F()]=P()}else if(R==52)G={type:"uint32",value:$()};else if(R==56)G={type:"Color32",value:[d(),d(),d(),d()]}; -else if(R==68)G={type:"ColorRGBA",value:[u(),u(),u(),u()]};else if(R==72)G={type:"ColorCMYK",value:[u(),u(),u(),u(),u()]}; -else{throw R}return R==49||R==50||R==51?G:G.value}function l(R){var a=0;for(var K=0;K>>5&1,gl=gY&3,Y=gY&192; -switch(Y){case 64:Y=1;f9=0;break;case 128:Y=2;break;case 192:Y=3;break;default:Y=0;f9=0}if(gl==0)Q=M.slice(s,s+av[2]); -else if(gl==1)Q=pako.inflate(M.slice(s,s+av[2]));else if(gl==2)Q=bo.Pd.FT(M.slice(s,s+av[2]));else throw gl; -if(f9==0){if(Y==1)l(Q);if(Y==2)throw"e"}else throw f9;C[av[4]]=Q}var hF=M;M=C["doc.dat"];s=16;var I=Date.now(),hv={}; -E(hv,0,[]);M=hF;var bV=hv.DocR,gu=bV.DfSz,dg=bV.Chld;if(dg.length!=1)throw"e";var bG=dg[0],gS=bG.SprB; -dg=bG.Chld;a.d=gS[2];a.w=gS[3];a.buffer=e.U(a.d*a.w*4);for(var K=0;K=H){c=0;f+=256;if(f>=o)break}}}function z(R,a,m,G,L,H){var o=a+G*H;for(;a1)console.log(F.pages.length,"pages"); -var X=[],V=new hk;for(var $=0;$8e3*8e3||u.d>3e4||u.w>3e4){s.fi(q,!0); -var B=s.Pe(q,$);if(B.Y()>=u.Y())s.fi(q,!1)}u=s.Pe(q,$);for(var P=0;PM||Math.max(Math.round(D.d/s),Math.round(D.w/s))>3e4)s++; -if(s!=1&&!window.confirm("Your image is quite large ("+D.d+" x "+D.w+" px).\n"+"Press OK to scale it down "+s+"x, or Cancel to keep the size."))s=1; -return s};gD.Pe=function(D,M){var s=[],F=gD;for(var X=0;X3e4&&w.d<=3e4||$.w>3e4&&w.w<=3e4){alert("Re-arranging artboards"); -for(var X=0;X1&&z.image!=null)Z=!0}if(u.shouldBreakMaskChain){while(w.length!=0)$.nr(w.pop(),M)}if(n){p.add.lsct=u.layerListExpandedType==2?aQ.X4:aQ.IN; -p.lQ="pass";p.Jw=24;p.wW(u.isVisible);M.N.push(M.P5());if(A=="artboard"){var j=B.clone(),R=P.qw();j.x=-Math.floor(P._u/R); -j.y=-Math.floor(P.eH/R);j.d=Math.floor(j.d/R);j.w=Math.floor(j.w/R);p.mt(j);var a=u.backgroundColor,m=a?{i:255*a.red,q:255*a.green,P:255*a.blue}:{i:255,q:255,P:255}; -p.add.artb.Clr={t:"Objc",v:e.h.zQ(m)};p.add.artb.artboardBackgroundType={t:"long",v:4}}$.jg(u.layers,M,P,F,X,d,V)}else if(E&&!Z){p.add.vmsk=new g.YL; -p.add.vstk=JSON.parse(JSON.stringify(aX.us.default));p.add.vstk.strokeEnabled.v=!1;p.add.vogk=[];var G=S!=null&&S.frameFXMulti.v.length==1,L=r?r.fills:null,H=r?$.Gu(F,L,B,P,p.getName(),M,$.fc(V,u.do_objectID+"_image")):[]; -if(H.length==0){if(G)p.add.vstk.fillEnabled.v=!1;else p.add.iOpa=0;p.add.SoCo={classID:"null",Clr:{t:"Objc",v:e.h.zQ({i:0,q:0,P:0})}}}else{var o=H[0],c=null,f=null; -if(o.type=="SoFi"){c="SoCo";f=aX.gk}if(o.type=="GrFl"){c="GdFl";f=aX.D_}if(o.type=="patternFill"){c="PtFl"; -f=aX.iE}if(c!=null){p.add[c]={classID:"null"};for(var K=0;K0)gu/=2;var gS=hv.v.Fltr.v; -gS.Brgh.v=Math.round(bV*255);gS.Cntr.v=Math.round(gu*255);gS.useLegacy.v=!0;L.push(hv)}}}if(Z){var dc=gl.patternFillType; -if(dc==3){var bj=p.rect.d/p.rect.w,iJ=B.d/B.w;if(bjd5.length){aO[aO.length-2]--; -fs--;if(aO[aO.length-2]==0){aO.pop();aO.pop()}}aO[aO.length-2]+=d5.length-fs}d5=d5.replace(/\u2028/g,"\n"); -d5=d5.replace(/\u2029/g,"\n");d5=d5.replace(/\r/g,"\n");var ds=p.add.TySh.t6;fU.Dq(ds,0,d5);if(d5!=""){var gE=u.textBehaviour,af=r.textStyle,cq=af?af.verticalAlignment:0,hr=$.ahZ(ds,aO,eg,d5),R=gz.qw(),eA=fU.RR(ds,0,1),aZ=0; -if(eA.aO.Font){var is=eA.Vj[eA.aO.Font].Name;if(is=="FontAwesome"||is=="Ionicons")hr*=.87}var a4=eA.aO.AutoLeading?0:eA.aO.Leading*.6,iC=Math.max(hr,a4)*R,cy=B.d,fT=B.w; -if(gE==0){fU.SE(ds,0);var bC=fU._1(eA.om);if(bC==1)aZ=cy*R;if(bC==2)aZ=cy*R*.5;if(cq==0)iC*=1;else iC*=.9}else{fU.SE(ds,1); -fU.Kj(ds,[0,0,Math.round(cy),Math.round(fT)]);if(gE==2&&cq==0)iC=iC*.2;else if(gE==2&&cq==1){iC=R*.5*(fT-eA.aO.FontSize)}else if(gE==1&&cq==0)iC=iC*.2; -else iC=iC*.35}p.add.TySh.t.translate(aZ,iC)}}else if(A=="symbolInstance"||A=="symbolMaster"){var hU=u.symbolID; -if(d[u.do_objectID])hU=d[u.do_objectID].symbolID;var de=$.fc(V,u.do_objectID+"_symbolID");if(de)hU=de.value; -if(hU=="")continue;var f2={};for(var i in d)f2[i]=d[i];if(u.overrides)for(var i in u.overrides)f2[i]=u.overrides[i]; -var bm=V.slice(0);if(u.overrideValues)bm=bm.concat(u.overrideValues);var hA=X[hU];if(hA==null){console.log("Unknown master master",u.symbolID); -continue}var i8=gD.XN(hA.XI.frame),aV=i8.d/B.d,he=i8.w/B.w,ev=P.clone();ev.scale(aV,he);p.add.lsct=aQ.IN; -p.lQ="pass";p.Jw=24;p.wW(u.isVisible);M.N.push(M.P5());var iO=hA.XI;if(M.sZ.indexOf(iO)==-1){M.sZ.push(iO); -$.jg(iO.layers,M,ev,F,X,f2,bm);M.sZ.pop()}}else if(A=="slice"){console.log("slice layers are ignored by now"); -continue}else{console.log("unknown layer type: "+A,u);continue}if(r&&r.contextSettings){var cR=r.contextSettings,c4=cR.blendMode; -if(c4<$.iZ.length){p.lQ=eF.HU[eF.w4.indexOf($.iZ[c4])];if(n&&p.lQ=="norm")p.lQ="pass"}p.opacity=Math.round(p.opacity*cR.opacity)}if(S!=null){p.add.lmfx=S}M.N.push(p); -if(u.hasClippingMask&&D.length>1){w.push(p);M.N.push(M.P5())}}while(w.length!=0)$.nr(w.pop(),M)};gD.fc=function(D,M){for(var K=0; -K127){X+=128*(D[s]-1);s++;if(D[s-1]>127){X+=128*(D[s]-1);s++}}var d=D[s];s++;F.push(X,d)}return F}; -gD.ahZ=function(D,M,s,F){var X=gD,d=0,u=0,B=0;for(var K=0;KF.length/2;for(var K=0;K0; -var j=A.NSStrikethrough;if(j==null)j=A.strikethroughStyle;if(j!=null)E.aO.Strikethrough=j>0;if(A.MSAttributedStringTextTransformAttribute==1)E.aO.FontCaps=2; -var R=A.NSParagraphStyle;if(R==null)R=A.paragraphStyle;if(R){var a=R.paragraphSpacing;if(a!=null){E.om.SpaceAfter=a}var m=R.NSAlignment; -if(m==null)m=R.alignment;if(m!=null){var G=0;if(!1){}else if(m==1)G=1;else if(m==2)G=2;else if(m==4)G=0; -else{G=m;console.log("unknown align",m)}if(q&&G<2)G=1-G;E.om.Justification=G}var L=R.NSMinLineHeight; -if(L==null)L=R.minimumLineHeight;if(L!=null){E.aO.AutoLeading=!1;E.aO.Leading=L}}E.om._Direction=q?1:0; -fU.bZ(D,u,u+r,E);u+=r}return B};gD.a7$=function(D,M,s,F,X,d,V){var $=gD,w=JSON.parse(aX.default),q=!1; -for(var K=0;K1e6; -if(S.type!="text"&&!z){if(Z){var u=V.FD(S.transform);u.Iy();var j=B.clone();j.concat(u);r.add.vmsk=new g.YL; -r.add.vmsk.g=V.ym(Z);j=j.clone();j.Iy();e.A.VR(r.add.vmsk.g,j);r.M8(M)}}else if(!z)alert("Clipping by text has been ignored")}r.add.lsct=aQ.X4; -r.lQ="pass";r.Jw=24;if(D.visible!=null)r.wW(D.visible);M.N.push(M.P5());var R=w.children,a=n;if(a)a=a.color; -if(a)a=a.value;if(n){if($=="artboard"&&_=="solid"){r.mt(new hk(0,0,10,10));r.add.artb.Clr={t:"Objc",v:e.h.zQ({i:a.r,q:a.g,P:a.b})}; -r.add.artb.artboardBackgroundType={t:"long",v:4}}else{var m=M.lX();m.Nt("BACKGROUND");m.Jw|=16;m.add.vstk=JSON.parse(JSON.stringify(aX.us.default)); -m.add.vmsk=new g.YL;m.add.vmsk.g=V.ym({type:"rect",x:d.x,y:d.y,width:d.d,height:d.w});V.KV(n,_,B,d,d,m,M,F,X); -m.M8(M);M.N.push(m)}}for(var K=0;K>>16&255)/255,(c5>>>8&255)/255,(c5>>>0&255)/255]}}fU.bZ(gS,gz,gz+aO,bj); -gz+=aO}if(gu.type=="area"||gu.type=="autoHeight"){var fs=gu.width,ds=gu.height;fU.SE(gS,1);fU.Kj(gS,[0,0,fs,ds!=null?ds:fs*2])}}else console.log($,D); -M.N.push(r)};fv.ym=function(D){var M=D.type,s=[{type:6},{type:8,all:0}];if(M=="rect"){var F=D.r,X=D.x,d=D.y,V=D.width,$=D.height; -if(F==null)s=e.A.R5.Rect(X,d,V,$,0);else{var w=e.A.Ft([X,d,X+V,d,X+V,d+$,X,d+$],F,!1);s.push({type:0,AY:1,length:w.length,wp:0,k2:0,As:1}); -s=s.concat(w)}}else if(M=="circle"){var F=D.r;s=e.A.R5.Ip(D.cx-F,D.cy-F,2*F,2*F)}else if(M=="ellipse"){var q=D.rx,u=D.ry; -s=e.A.R5.Ip(D.cx-q,D.cy-u,2*q,2*u)}else if(M=="path"||M=="compound"){var B=Typr.U.SVGToPath(D.path); -s=e.O.L8({K:B.cmds,I:B.crds},!1)}else if(M=="line"){var r=D.x1,P=D.x2,A=D.y1,E=D.y2;s=s.concat([{type:0,AY:1,length:2,wp:0,k2:0,As:1}]).concat(e.A.Ft([r,A,P,E],0,!0))}else if(M=="polygon"){var n=D.points,w=[]; -for(var K=0;K8192)P*=.5;M.o_=!0;M.d=~~(w.d*P);M.w=~~(w.w*P);M.buffer=e.U(M.d*M.w*4); -var A=new ex(P,0,0,P,-w.x*P,-w.y*P),E={Eh:eC.pG($),a3I:V};eC.qe(d,$.children,M,A,E,new ex,0);if(M.N.length==0){var n=M.lX(); -n.Nt("Layer");M.N.push(n)}};eC.fh=function(D){var M=" ";if(D.indexOf(",")!=-1)M=",";return D.split(M).map(parseFloat)}; -eC.qe=function(D,M,s,F,X,d,V){var $=eC,w=["display","opacity","fill-opacity"];for(var q=0;q0){if(B=="text")d=$.GM(u,d); -var o=u.getAttribute("viewBox"),c=u.getAttribute("width"),f=u.getAttribute("height");if(o&&c&&f){var i=eC.fh(o),h=$.GM(u),N=new ex; -N.translate(-i[0],-i[1]);N.scale(parseFloat(c)/i[2],parseFloat(f)/i[3]);N.translate(h._u,h.eH);N.concat(n); -n=N}var C=u.children.length,I=X.Eh;X.Eh=P;var J=B!="text"&&B!="textPath"||C>1;if(J){var av=b.T7();b.add.lsct=V<2&&av&&(r==null||!r.endsWith(":::"))?aQ.X4:aQ.IN; -b.lQ="pass";b.Jw=24;b.wW(av);s.N.push(s.P5())}$.qe(D,u.children,s,n,X,d,V+1);if(J)s.N.push(b);else{var gY=s.N[s.N.length-1]; -gY.opacity=b.opacity;gY.lQ=b.lQ}X.Eh=I}else if(B=="use"){var N=$.GM(u);N.concat(n);var f9=$.WJ(u),gl=D.getElementById(f9.slice(1)),I=X.Eh; -X.Eh=P;$.qe(D,[gl],s,N,X,d,V+1);X.Eh=I}else if(B=="path"||B=="rect"||B=="circle"||B=="ellipse"||B=="polygon"||B=="polyline"||B=="line"){b.Jw|=16; -b.add.vmsk=new g.YL;b.add.vstk=JSON.parse(JSON.stringify(aX.us.default));b.add.vstk.strokeEnabled.v=!1; -var Y=b.add.vstk,a=b.add.vmsk,Q=P.fill,hF=Q=="none"||P["fill-opacity"]&&parseFloat(P["fill-opacity"])==0; -a.g=$.ym(D,u,P["fill-rule"]=="evenodd",hF);e.A.VR(a.g,n);var hv=e.A._j(a.g),bV=P.stroke,gu=P["stroke-width"],dg=P["stroke-dasharray"],bG=P["stroke-linejoin"],gS=P["stroke-linecap"],dc=P["paint-order"]; -if(bV==null||bV=="none"||bV=="null"){}else{var bj=$.xu(D,bV,n,hv),iJ=["SoFi","GrFl","patternFill"].indexOf(bj.type),hO=bj.H.v.Opct.v,eg=1; -if(hO.val!=100){b.opacity=Math.round(b.opacity*hO.val/100);hO.val=100}var gz=[aX.gk,aX.D_,aX.iE][iJ],aO=Y.strokeStyleContent.v={classID:aX.us.hB[iJ]}; -for(var K=0;K0){var fs=$.pG(u.children[0],X.a3I);for(var A in fs)if(w.indexOf(A)==-1)P[A]=fs[A]}var ds=P["xml:space"],gE=u.textContent; -if(ds=="preserve")gE=gE.replace(/\t/g," ").replace(/\n/g," ");if(r==null)b.Nt(gE);b.add.lnsr="rend"; -b.add.TySh=fU.Zb(0,0);b.add.TySh.JX=new hk(0,0,100,100);b.add.TySh.t=N.clone();var af=b.add.TySh.t6; -fU.Dq(af,0,gE);var Q=P.fill,cq=P["font-weight"],hr=P["font-family"],eA=P["text-decoration"],bV=P.stroke,gu=P["stroke-width"],is=P["dominant-baseline"]; -if(is=="text-before-edge")a4=E;else if(is=="middle")a4=E/2;else if(is=="hanging")a4=E;if(a4!=0)b.add.TySh.t.translate(0,a4); -var aZ=fU.RR(af,0,1);if(Q&&Q!="none"){var iC=CSS.MR(Q);aZ.aO.FillColor={Type:1,Values:[1,iC.i/255,iC.q/255,iC.P/255]}}if(eA=="underline")aZ.aO.Underline=!0; -aZ.aO.FontSize=Math.round(E);fU.Xd(aZ,"LiberationSans");if(cq=="bold")fU.Xd(aZ,"LiberationSans-Bold"); -if(hr){hr=hr.split(",")[0].trim();if(hr[0]=="\"")hr=hr.slice(1);if(hr[hr.length-1]=="\"")hr=hr.slice(0,hr.length-1); -var cy=hr+":"+(cq?cq:"normal"),fT={"'DejaVu Sans':normal":"DejaVuSans","'DejaVu Sans':bold":"DejaVuSans-Bold","'Nimbus Sans L':normal":"NimbusSanL-Reg","'Nimbus Sans L':bold":"NimbusSanL-Bol","Libre Franklin:300":"LibreFranklin-Light","Libre Franklin:400":"LibreFranklin-Regular","Libre Franklin:500":"LibreFranklin-Medium","Libre Franklin:600":"LibreFranklin-SemiBold","Libre Franklin:700":"LibreFranklin-Bold"}; -if(fT[cy])fU.Xd(aZ,fT[cy]);else fU.Xd(aZ,hr)}if(P["text-anchor"])aZ.om.Justification=["start","end","middle"].indexOf(P["text-anchor"]); -fU.bZ(af,0,gE.length,aZ);if(bV==null||bV=="none"){}else{var bC=JSON.parse(aX.ft[aX.order.indexOf("FrFX")]); -bC.Clr.v=e.h.zQ(CSS.MR(bV));bC.Sz.v.val=Math.round(parseFloat(gu)*T.m.qw(N));var hU=JSON.parse(aX.default); -for(var K=0;K"); -var $={W8:[],Ar:[],dG:0,VO:0,WE:0,qT:{},pf:{},EX:0,Iz:{},W1:{},bJ:0,gd:[]};eC.Pn(D,$,D.root.children,1,M,s); -if($.W8.length!=0){F.push(X.Mn(1)+"");F=F.concat($.W8);F.push(X.Mn(1)+"")}F.push(X.Mn(1)+"");F=F.concat($.Ar);F.push("");F=F.join(M.aoP?"\n":"");var q=e.U(Math.round(F.length*1.5)),u=t.lh(F,q,0); -if(X.o$){console.log(X.o$);var B="SVGParser.gen.db = [\n";for(var K=0;K");V.Pn(D,M,k,F+1,X,d); -M.Ar.push(V.Mn(F)+"")}}else if(w.yt()&&u==null){var S=new hk(0,0,D.d,D.w);V.ns(P,w.add,M,S);if(P.length!=0)_.push("style=\""+P.join(";")+"\""); -M.Ar.push(V.Mn(F)+"")}else if(u&&w.add.SoLd==null){var S=e.A._j(u.g,null,!0),Z=e.A.Sh(u.g); -if(Z.pq!=0){_.push("fill-rule=\"evenodd\"")}var z=Z.a3N;V.ns(P,w.add,M,S);if(P.length!=0){var j=P.join(";"),R=M.W1[j]; -if(R==null){R="shp"+M.bJ;M.bJ++;M.W1[j]=R;M.Iz[R]=j}l.push(R)}M.Ar.push(V.Mn(F)+""); -if(V.o$&&V.o$[V.o$.length-1]){var a=e.O.TD(u.g);a.I=a.I.map(Math.round);var m=V.o$[V.o$.length-1];m.hy+=JSON.stringify(a).length; -m.SL.push([P[0].split("#").pop(),a])}}else if(r&&X.afs){var G=r.t6,L=new ep(G,d);if(p)_.push("fill=\""+CSS.qM(p.Clr.v)+"\""); -var H=cF.x0(L,r),o=e.O.ni(H);for(var f in o){if(p==null)_.push("fill=\""+f+"\"");var i=o[f],z=Typr.U.pathToSVG({crds:i.I,cmds:i.K},2); -M.Ar.push(V.Mn(F)+"");if(p==null)_.pop()}}else if(r&&!X.aaK){var G=r.t6,h=r.t.clone(),Q=0,hF=0; -if(fU.So(G)==1){var N=fU.RR(G,0,0).om.Justification,C=0,I=fU.vM(G)[2];if(N==2)C=I/2;if(N==1)C=I;h.translate(C,0)}P.push("transform: "+V.UO(h)); -var J=fU.NN(G),av=G.EngineDict.ParagraphRun,gY=av.RunArray,f9=av.RunLengthArray;if(P.length!=0)_.push("style=\""+P.join(";")+"\""); -M.Ar.push(V.Mn(F)+"");var gl=w.add.lmfx;if(gl)gl=gl.frameFXMulti.v[0];if(gl)gl=gl.v; -var Y=p?CSS.qM(p.Clr.v):null;for(var K=0;K"+V.a4(gu)+"")}Q+=bV}M.Ar.push(V.Mn(F)+"")}else if(w.add.SoLd&&X.sC){var hO=w.add.SoLd,gz=hO.Idnt.v,aO=0,eg=hO.Crop?hO.Crop.v:null; -if(M.pf[gz]!=null)aO=M.pf[gz];else{M.EX++;aO=M.EX;M.pf[gz]=M.EX;var iQ=D.Xp(gz,eg),c5="";if(iQ==null)return; -var d5=iQ.wu,da=bo.H8(iQ.raw.buffer);if(da=="pdf"){var fs=new iT("h");bo.GD("PDF").QK(iQ.raw.buffer,fs); -fs.$p();fs.dI();fs.T();fs.bc();if(hO.Crop&&hO.Crop.v==1){T.I4.EE(fs,fs.root.$a(fs,!0))}var ds=bo.GD("SVG").qc(fs,fs.d,fs.w,null,{gd:d}); -c5="data:image/svg+xml;base64,"+bo.Co(ds)}else if(da=="jpg"||da=="png"||da=="gif"||da=="svg"){var gE={jpg:"image/jpg",png:"image/png",jpg:"image/jpg",svg:"image/svg+xml"}; -c5="data:"+gE[da]+";base64,"+bo.Co(iQ.raw.buffer)}else{c5=bo.YN(d5[0].buffer,d5[1].d,d5[1].w)}M.W8.push(V.Mn(2)+"")}var af=e.X.$B(hO),cq=[]; -eC.V1(w,u,M,cq);if(cq.length!=0)M.Ar.push(V.Mn(F)+"");if(P.length!=0)_.push("style=\""+P.join(";")+"\""); -var hr=V.Kt(_,l);M.Ar.push(V.Mn(F)+"");if(cq.length!=0)M.Ar.push(V.Mn(F)+"")}else if(!w.rect.qj()&&(X.sC||r)){if(P.length!=0)_.push("style=\""+P.join(";")+"\""); -var hr=V.Kt(_,l),eA=w.buffer;if(p)eA=dm.Ud(eA,p,w.rect);var is=w.rect;M.EX++;var c5=bo.YN(eA.buffer,is.d,is.w,"png",null,!0); -M.W8.push(V.Mn(2)+""); -M.Ar.push(V.Mn(F)+"")}}};eC.Z1=function(D){if(D==null)return""; -var M=D.t6,s=fU.NN(M);s=s.slice(0,s.length-1).replace(/"/g,""");return"aria-label=\""+s+"\" "}; -eC.Kt=function(D,M){if(M.length!=0)D.push("class=\""+M.join(" ")+"\"");return D.join(" ")};eC.a4=function(D){return String(D).replace(/&/g,"&").replace(//g,">").replace(/\u0022/g,""")}; -eC.UO=function(D){var M=[D.iD,D.P,D.Gt,D.iw,D._u,D.eH].map(eC.Zh);return"matrix("+M.join(",")+")"};eC.V1=function(D,M,s,F){var X=eC; -if(M||D.add.artb){var d;if(M)d=e.A.Sh(M.g).a3N;else{var V=D.En(),$=e.O.l5(V);d=Typr.U.pathToSVG({crds:$.I,cmds:$.K},2)}s.WE++; -F.push("clip-path=\"url(#cp"+s.WE+")\"");s.W8.push(X.Mn(2)+""); -s.W8.push(X.Mn(3)+"");s.W8.push(X.Mn(2)+"")}};eC.ns=function(D,M,s,F){var X=eC,d=M.vstk,V=M.vmsk,$=M.lmfx; -if(V&&V.Qw!=0){var w=X.Zh(V.Qw);if(s.qT[w]==null){s.VO++;s.qT[w]=s.VO;s.W8.push(X.Mn(2)+" ")}D.push("filter: url(#flt"+s.qT[w]+")")}var q=dm.Io($,M),u=q[0],B=q[1]; -if(d&&!d.fillEnabled.v)D.push("fill: none");else if(u){var r=CSS.qM(u.Clr.v);D.push("fill: "+r)}else if(B){X._n(B,s,F); -D.push("fill: url(#grd"+s.dG+")")}if(d==null||!d.strokeEnabled.v)d=dm.j_($);if(d&&d.strokeEnabled.v){var P=d.strokeStyleContent.v,A=P.classID; -if(A=="solidColorLayer")D.push("stroke: "+CSS.qM(P.Clr.v));else{X._n(P,s,F);D.push("stroke: url(#grd"+s.dG+")")}var E=aX.us.fu.indexOf(d.strokeStyleLineCapType.v.strokeStyleLineCapType),n=aX.us.join.indexOf(d.strokeStyleLineJoinType.v.strokeStyleLineJoinType),_=d.strokeStyleOpacity.v.val/100,l=d.strokeStyleLineWidth.v.val,b=aX.us.MW.indexOf(d.strokeStyleLineAlignment.v.strokeStyleLineAlignment); -if(b==2){l*=2;D.push("paint-order:stroke fill markers")}var y=d.strokeStyleLineDashSet.v,p=[];for(var K=0; -K"); -if(q==1)M.W8.push(r+" cx=\""+F.Zh(B[0].x)+"\" cy=\""+F.Zh(B[0].y)+"\" r=\""+F.Zh(eo.cQ(B[0],B[1]))+"\">"); -if(w=="Rflc"){for(var P=0;P<2;P++){var A=P==0?d:V;for(var K=A.length-1;K>=0;K--){var E=A[K];E.v.Lctn.v=2048+(E.v.Lctn.v>>>1); -var n=JSON.parse(JSON.stringify(E));n.v.Lctn.v=4096-n.v.Lctn.v;A.push(n)}A.sort(function(p,k){return p.v.Lctn.v-k.v.Lctn.v})}}var _=D.Rvrs.v; -if(_){d.reverse();V.reverse()}for(var K=0;K")}M.W8.push(F.Mn(2)+"")}; -eC.R5=function(D,M,s,F,X){var d=[],V=eC.R5,$=!1,w={wS:D,WQ:M,hk:[!0,!0,!0],FG:!1,jH:s,a1N:0};w.E$=Math.round(Math.max(D,M)*(.02+V.HM(w)*.03)); -w.FQ=V.acl(w);w.C_=V.adp(w.FQ,(V.HM(w)<.5?-1:1)*(.2+V.HM(w)*.3));if(V.HM(w)<.5){var q=w.FQ;w.FQ=w.C_; -w.C_=q}w.anN=V.HM(w)<.4&&V.abB(w.C_,{i:1,q:1,P:1})>.3;w.al1=V.HM(w)<.5?0:1;d.push(""); -w.Ep=F[Math.floor(V.BH(w)*F.length)];w.Ma=F[Math.floor(V.BH(w)*F.length)];d.push(""); -var u=[0,0,D,M],B=u;if(X==null)d.push(""); -else{w.FG=!0;V.Hh(w,u,d,X)}if(V.HM(w)<.25&&!w.FG){w.hk[0]=w.hk[2]=!1;V.ano(u,w,d);B=u}else if(V.HM(w)<.25||w.FG)B=u; -else{var r=.52+V.HM(w)*.2;if(V.HM(w)<.5)r=1-r;var P=u.slice(0),A=u.slice(0);if(V.HM(w)<.5)P[2]=A[0]=Math.round(r*D); -else P[3]=A[1]=Math.round(r*M);if(V.HM(w)<.5){var q=P;P=A;A=q}B=P;V.a89(w,A,d,X)}V.amj(w,B,d);d.push(""); -d=d.join("\n");var E=e.U(Math.round(d.length*1.5)),n=t.lh(d,E,0);return[E.buffer.slice(0,n),w.to]};eC.R5.ano=function(D,M,s){var F=eC.R5,X=D[2]-D[0],d=D[3]-D[1]; -if(F.HM(M)<.5){s.push("")}else if(F.HM(M)<-.4){F.a5w(M,D,s)}else{var V=F.HM(M)<.5?0:1,$=(V==0?d:X)/4,w=F.ob(M,V,D,s,$,!0),w=F.ob(M,V+2,D,s,$,!0,w)}}; -eC.R5.amj=function(D,M,s){var F=eC.R5,X="Hello World!-What a beautiful day.-What Is Love?-Baby, don't hurt me.-Is This a Real Life?-Is this a fantasy?-Wake Me Up!-Before you go go.-I Saw The Sign.-And it opened up my mind!".split("-"),d=2*Math.floor(F.HM(D)*X.length/2),V=M[2]-M[0],$=M[3]-M[1],q=0,B=0; -D.Fi=(D.wS+V)*.5*(.04+F.HM(D)*.05);D.Fi=Math.min(D.Fi,$*.4,V*.12);D.Fi=Math.round(D.Fi);var w=Math.min(D.Fi*X[d].length*(.35+.3*F.HM(D)),V*.9),u=(M[1]+M[3])/2,r=e.FA(D.FQ)<.85?{i:1,q:1,P:1}:{i:.1,q:.1,P:.1}; -if(F.HM(D)<.25&&D.hk[0]){B=0;q=M[0]+D.E$}else if(F.HM(D)<.33&&D.hk[2]){B=2;q=M[2]-D.E$}else{B=1;q=(M[0]+M[2])/2}var P=r.i==1?"0,0,0":"255,255,255",A=D.FG&&F.HM(D)<1; -if(A){var E=M[0],n=V,_=u-D.Fi*1.1,l=D.Fi*2.2,b=.7;if(B==1&&F.HM(D)<.5){E=_=.2*Math.min(V,$);n=V-2*_; -l=$-_-_}else if(F.HM(D)<.7){E=_=0;n=V;l=$;b=.25}s.push("")}if(F.HM(D)<.4){var y=D.Fi*.07; -y*=1.5+F.HM(D)*1;if(B==-1&&V/$<3&&!A){s.push(""); -s.push("")}if(B!=1){s.push(""); -q+=(B==0?1:-1)*D.Fi/3}}var p=D.Fi*.4;s.push(F.hl(X[d+1],q,u+p*1.6,p,r,B,D.Ma));s.push(F.hl(X[d],q,u+D.Fi*.04,D.Fi,r,B,D.Ep))}; -eC.R5.a89=function(D,M,s,F){var X=M[2]-M[0],d=M[3]-M[1],V=Math.max(X,d),$=Math.min(X,d),w=eC.R5;if(V/$<5&&!D.FG&&!1){w.Hh(D,M,s,F)}else if(w.HM(D)<0)s.push(""); -else{var q=0;if(M[3]!=D.WQ)q=0;if(M[2]!=D.wS)q=3;if(M[0]!=0)q=1;if(M[1]!=0)q=2;var u=q+2&3;if(V/$<3){var B=w.amt(u),r=B[Math.round(w.HM(D)*(B.length-1))],P=r.jv.slice(0,4),A=P.indexOf(1); -r=JSON.parse(JSON.stringify(r));var E=-1;if(P!="0000"){var n=new ex;if(r.jv[5]=="0"){if(A==3&&q==1){E=1; -n.scale(-1,1)}else E=A}else{var _=u;while(_==u)_=Math.floor(w.HM(D)*4)&3;n.rotate((-A+_)*Math.PI/2)}w.t(r,n)}var l=w.Pe(r),b=X-2*D.E$,y=d-2*D.E$; -if(E!=-1){if((E&1)==0)y-=D.E$;else b-=D.E$}var p=Math.min(b/l.d,y/l.w),k=new ex;k.translate(-l.x,-l.y); -k.scale(p,p);var S=(X-l.d*p)/2,Z=(d-l.w*p)/2;if(E!=-1){if(E==3)S=0;if(E==0)Z=0;if(E==1)S=X-l.d*p;if(E==2)Z=d-l.w*p}k.translate(M[0]+S,M[1]+Z); -w.Qg(D,r,k,D.C_,s)}else{w.ob(D,q,M,s,1e9)}}};eC.R5.Hh=function(D,M,s,F){var X=M[2]-M[0],d=M[3]-M[1],V=Math.max(X,d),$=Math.min(X,d),w=eC.R5,q=w.BH(D),u,B,r,P=F[0]instanceof ArrayBuffer; -if(P){u="data:image/jpg;base64,"+cH.Wv(F[0]);B=F[1];r=F[2]}else{var A=Math.floor(q*F.length),E=F[A]; -D.to=E;u=E.webformatURL;B=E.webformatWidth;r=E.webformatHeight}var n=M[0],_=M[1],l=X,b=d;if(X/d>B/r){b=l*r/B; -_=_-(b-d)/2}else{l=b*B/r;n=n-(l-X)/2}if(P){s.push("");s.push(""); -s.push("");var y=l/B;s.push("")}else{var p="cp"+Math.random(); -s.push("");s.push(""); -s.push("");s.push("")}}; -eC.R5.hl=function(D,M,s,F,X,d,V){var $=eC.R5;return""+D+""}; -eC.R5.Qg=function(D,M,s,F,X){var d=eC.R5,V=[];for(var K=0;K"); -for(var K=0;K")}X.push("")}; -eC.R5.a5w=function(D,M,s){var F=eC.R5,X=eC.R5.MP,d=[];for(var K=0;K0){_.w+=_.y; -_.y=0}if((M&1)==0){b=E;l=n}else{l=E;b=n}var y=Math.min(Math.min(.5+.5*w.HM(D))*Math.min(n,E),X)/_.w,p=Math.ceil(l/(1e3*y)),k=new ex,S=new ex; -S.scale(y,y);if(M==0||M==2){S.translate(-(n/2),-(E/2));S.rotate(-M*Math.PI/2);S.translate(n/2+s[0],E/2+s[1])}else{S.rotate(Math.PI/2); -S.scale(1,-1);S.translate(s[0],s[1]);if(M==1){S.scale(-1,1);S.translate(n,0)}}F.push(""); -for(var K=0;K"); -return P};eC.R5.Rect=function(D,M,s,F){return Typr.U.pathToSVG({crds:[D,M,D+s,M,D+s,M+F,D,M+F],cmds:["M","L","L","L","Z"]})}; -eC.R5.ab2=function(D,M,s,F,X){var d=[D,M,D+s,M,D+s,M+F,D,M+F];D+=X;M+=X;s-=2*X;F-=2*X;d.push(D,M,D,M+F,D+s,M+F,D+s,M); -return Typr.U.pathToSVG({crds:d,cmds:"M L L L Z M L L L Z".split(" ")})};eC.R5.adp=function(D,M){var s=e.k$(D.i,D.q,D.P); -s.O4=Math.max(.1,Math.min(.9,s.O4+M));return e.kq(s.WQ,s.pI,s.O4)};eC.R5.a4j=function(D,M){var s=e.k$(D.i,D.q,D.P); -s.WQ+=M;return e.kq(s.WQ,s.pI,s.O4)};eC.R5.aew=function(D){var M=e.k$(D.i,D.q,D.P);M.O4=1-M.O4;return e.kq(M.WQ,M.pI,M.O4)}; -eC.R5.abB=function(D,M){var s=D.i-M.i,F=D.q-M.q,X=D.P-M.P;return Math.sqrt(s*s+F*F+X*X)};eC.R5.acl=function(D){var M=eC.R5; -return{i:M.HM(D),q:M.HM(D),P:M.HM(D)}};eC.R5.Lq=function(D){return CSS.Yi({i:D.i*255,q:D.q*255,P:D.P*255})}; -eC.R5.Pe=function(D){var M=D.SL,s=new hk;for(var K=0;K>>8*M&255;return s*(.99999999/255)};eC.R5.BH=function(D){var M=eC.R5._e(D.jH); -D.jH=eC.R5._e(M);return M*(1/4294967295)};eC.R5._e=function(D){D=(D^61^D>>>16)>>>0;D=D+(D<<3)>>>0;D=(D^D>>>4)>>>0; -D=D*668265261>>>0;D=(D^D>>>15)>>>0;return D};eC.R5.MP=[{jv:"0001-0-bird",SL:[["4b3c34",{K:"M C L C C L Z M C C L C C L Z M C L C L Z M C L C C L Z".split(" "),I:[208,16,253,5,247,86,228,104,218,108,253,60,235,12,211,18,210,18,209,17,208,16,208,16,187,140,238,125,326,133,319,189,318,198,307,210,299,207,297,205,307,208,316,195,317,188,320,126,208,137,174,149,187,140,137,75,156,79,177,94,164,157,173,147,177,101,165,79,142,75,137,75,368,59,165,59,182,233,0,210,0,225,161,250,194,61,364,63,367,61,368,59,368,59,368,59]}],["3c7040",{K:"M C C C C C L Z M C C C C L Z M C C C C L Z M C C C C L Z M C C C C C L Z M C C C C L Z M C C C C Z".split(" "),I:[345,123,324,113,331,70,284,80,287,79,310,89,314,103,314,104,306,90,284,82,281,81,270,85,268,86,274,117,335,119,345,123,345,123,270,0,283,29,282,58,244,66,258,62,265,40,269,27,265,37,256,56,249,58,242,31,263,18,270,0,270,0,89,100,81,136,47,182,101,196,90,189,92,157,91,145,94,160,93,191,109,195,148,158,96,129,89,100,89,100,230,187,201,240,160,226,133,198,150,191,172,197,187,198,166,193,153,190,134,193,159,162,207,194,230,187,230,187,126,177,131,159,129,150,119,139,122,122,145,112,147,97,166,128,164,155,134,168,139,154,146,142,145,131,143,145,133,159,126,177,126,177,209,86,195,86,166,91,173,109,177,102,181,97,191,96,180,99,174,113,175,113,194,114,200,96,209,86,209,86,278,175,254,167,235,168,231,143,245,143,248,151,256,158,252,147,243,144,240,142,276,147,265,171,278,175]}],["b588c1",{K:"M C C C C C C C C C C C C L Z".split(" "),I:[189,40,188,42,186,44,184,47,184,52,183,55,181,59,175,70,160,78,147,79,142,79,131,78,127,75,118,74,95,71,93,70,89,70,88,70,69,72,74,66,82,68,93,65,78,64,83,62,95,59,128,50,128,33,155,29,162,16,180,13,189,31,193,31,196,34,198,37,197,37,193,39,189,40,189,40]}]]},{jv:"0001-0-bird2",SL:[["ff7f2a",{K:"M L L L Z M L L L Z".split(" "),I:[296,0,296,62,335,62,296,0,357,0,357,62,318,62,357,0]}],["b588c1",{K:"M C C C C C C C C C C C L Z".split(" "),I:[321,48,344,48,379,67,396,121,408,176,396,230,337,255,303,265,265,268,217,235,191,217,170,188,186,180,195,177,199,187,205,192,203,185,199,178,207,172,217,165,224,178,225,182,227,196,231,203,250,206,273,205,290,196,292,165,289,133,269,118,268,101,267,77,288,49,321,48,321,48]}],["74439e",{K:"M C C C C C C L Z M C C Z".split(" "),I:[337,187,329,202,317,204,304,204,293,204,284,205,293,224,286,216,278,209,268,214,257,220,262,237,269,243,284,258,310,256,323,243,337,227,339,208,337,187,337,187,340,77,310,78,287,81,315,96,269,83,309,75,340,77]}],["000000",{K:"M L L L Z M L L L Z".split(" "),I:[326,258,334,315,323,316,326,258,298,262,296,318,286,317,298,262]}],["4b3c34",{K:"M L C C C C C C C C L Z".split(" "),I:[0,272,0,336,63,296,119,296,175,320,205,330,229,339,278,338,322,337,354,322,405,325,443,329,482,332,501,377,501,366,502,348,474,328,464,320,440,312,384,309,296,309,300,333,186,293,118,264,54,250,0,272,0,272]}],["3c7040",{K:"M C C C Z M C C C Z M C C C L Z M C C C L Z M C C C L Z M C C C Z".split(" "),I:[58,260,44,247,27,239,20,208,15,188,32,182,43,198,59,227,56,242,58,260,181,323,167,336,150,345,143,375,138,396,155,401,166,385,182,356,179,342,181,323,60,260,79,249,100,243,113,214,122,194,102,186,86,200,62,227,65,242,60,260,60,260,499,378,479,377,462,372,435,388,417,399,425,415,444,411,476,403,484,390,499,378,499,378,501,379,494,397,482,411,488,442,491,463,511,461,514,442,520,410,508,397,501,379,501,379,503,378,513,390,516,402,531,413,546,421,557,412,548,401,534,382,519,379,503,378]}]]},{jv:"0000-1-flower",SL:[["7a59a2",{K:"M C C C C C C C Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z".split(" "),I:[468,470,411,473,371,480,351,495,332,509,322,536,325,581,325,601,328,621,325,637,346,634,371,638,397,637,427,636,456,626,465,611,478,596,485,553,489,490,477,489,470,483,468,470,445,563,435,583,425,591,415,590,401,588,401,572,410,549,388,558,375,557,369,546,366,533,374,524,390,517,416,506,441,498,465,495,463,519,455,542,445,563,445,563,489,450,486,392,480,352,465,332,451,313,425,302,380,305,360,305,340,307,324,304,327,324,322,350,323,376,323,406,332,435,347,444,362,457,405,465,468,470,469,458,476,451,489,450,489,450,395,424,376,415,368,405,369,394,371,380,387,380,410,390,402,368,403,355,414,349,427,346,436,355,443,370,454,397,460,422,463,446,439,443,417,435,395,424,395,424,508,470,566,468,606,462,626,447,645,433,656,407,654,362,654,342,652,322,655,306,634,309,609,304,583,305,553,305,524,314,514,329,501,344,493,387,488,449,500,451,507,457,508,470,508,470,534,377,544,357,554,350,564,351,578,353,578,369,568,392,590,384,604,385,609,396,612,409,603,418,588,425,561,435,536,442,512,445,515,421,523,399,534,377,534,377,488,490,492,547,499,587,514,607,528,626,554,636,600,633,619,632,640,630,656,633,652,612,656,587,655,560,655,531,645,502,629,493,614,480,571,473,508,469,507,481,501,488,488,490,488,490,582,513,602,523,610,533,609,543,607,557,591,557,568,548,577,570,576,583,565,589,552,592,542,584,535,568,524,542,517,517,514,493,538,495,560,503,582,513,582,513]}]]},{jv:"0000-1-flower",SL:[["d13777",{K:"M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z".split(" "),I:[474,503,457,528,452,530,450,528,450,523,469,498,464,493,388,522,332,552,314,585,297,628,322,660,372,639,361,698,421,709,450,665,467,649,477,596,482,505,474,503,474,503,439,563,431,563,424,556,424,548,424,539,431,532,439,532,447,532,454,539,454,548,454,556,447,563,439,563,462,475,432,467,429,463,430,460,435,458,465,469,468,463,417,399,371,356,335,348,288,345,265,379,300,420,241,428,249,488,301,503,321,513,374,507,462,483,462,475,462,475,394,460,391,452,396,444,404,441,412,438,420,443,423,451,426,459,421,467,413,470,405,473,396,468,394,460,484,455,483,424,486,419,489,420,492,424,492,456,498,457,543,389,570,332,566,294,554,249,515,238,487,284,461,231,406,256,408,310,405,333,427,381,477,458,484,455,484,455,477,385,484,380,494,382,499,389,504,396,502,405,496,410,489,415,479,414,474,407,469,400,471,390,477,385,511,470,539,459,545,461,545,463,542,467,512,477,513,483,592,505,654,513,688,497,728,472,726,432,674,419,717,378,675,334,625,353,602,356,563,393,506,464,511,470,511,470,575,442,581,447,583,456,578,463,573,470,563,472,557,467,550,462,548,452,553,445,558,438,568,437,575,442,505,499,524,523,524,529,521,531,517,529,498,503,492,506,496,588,508,650,533,677,570,707,607,693,603,639,656,667,685,614,651,572,641,551,594,525,509,493,505,499,505,499,551,552,548,560,540,564,532,561,524,559,519,550,522,542,524,534,533,530,541,532,549,535,554,543,551,552]}]]},{jv:"0000-1-flower",SL:[["ffac42",{K:"M C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C Z M C C C C Z".split(" "),I:[646,471,646,446,626,426,601,426,599,426,597,426,595,427,596,426,598,424,599,423,616,406,616,378,599,360,581,343,553,343,536,360,534,361,533,363,532,364,532,363,532,361,532,359,532,335,512,315,488,315,463,315,443,335,443,359,443,361,443,363,443,365,442,364,441,363,440,362,422,344,394,344,377,362,359,379,359,407,377,425,378,426,380,427,381,429,379,428,378,428,376,428,351,428,331,448,331,473,331,498,351,518,376,518,378,518,380,517,382,517,381,518,379,519,378,521,361,538,361,566,378,584,396,601,424,601,441,584,443,582,444,581,445,579,445,581,445,583,445,584,445,609,465,629,490,629,514,629,534,609,534,584,534,582,534,580,534,579,535,580,536,581,537,582,555,600,583,600,600,582,618,565,618,537,600,519,599,518,597,516,596,515,598,515,599,516,601,516,626,516,646,496,646,471,489,552,444,552,409,516,409,472,409,428,444,392,489,392,533,392,569,428,569,472,569,516,533,552,489,552]}]]},{jv:"0000-1-flower",SL:[["d04040",{K:"M C C L L C C C C L L C C L L C C C C L C C C C L Z M C C C Z M C C C L Z M C C C L Z".split(" "),I:[691,424,690,369,680,330,660,303,634,320,601,361,568,406,568,406,568,327,578,326,585,317,585,306,585,294,576,284,564,284,552,284,542,294,542,306,542,317,550,326,560,327,560,406,559,406,540,359,522,311,501,291,475,319,453,360,433,407,431,406,431,327,441,326,448,317,448,306,448,294,439,284,427,284,415,284,405,294,405,306,405,317,412,326,423,327,423,404,390,363,360,326,341,308,296,401,299,489,360,567,396,613,443,639,500,638,624,636,694,524,692,424,691,424,389,543,370,514,379,498,399,504,439,518,470,564,488,613,455,600,414,580,389,543,481,480,488,445,505,441,515,459,533,497,524,552,501,599,487,567,472,523,481,480,481,480,624,523,610,563,565,595,515,613,528,580,548,538,585,514,614,494,629,503,624,523,624,523]}]]},{jv:"0000-1-flower",SL:[["ec7272",{K:"M C C C C Z M C C C C Z M C C C C L Z M C C C C L Z M C C C C Z M C C C C L Z".split(" "),I:[447,475,452,450,452,438,437,423,422,407,407,412,390,383,398,418,421,415,433,434,445,453,446,474,447,475,495,446,520,439,529,433,535,412,542,390,529,380,546,351,520,376,533,394,523,414,513,434,495,445,495,446,545,473,564,490,574,495,595,490,617,485,620,469,653,468,619,459,610,479,587,480,565,482,546,472,545,473,545,473,549,533,543,558,543,569,559,585,574,601,589,596,606,624,597,590,575,592,563,573,551,555,550,534,549,533,549,533,504,562,480,570,470,575,464,596,458,618,470,628,454,657,479,632,466,614,476,594,486,575,504,563,504,562,459,536,440,519,430,513,409,518,387,524,384,539,351,540,385,549,394,529,417,528,439,527,457,536,459,536,459,536]}],["333333",{K:"M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z".split(" "),I:[534,455,584,415,579,358,577,335,574,315,585,304,585,304,585,304,568,308,561,312,554,316,520,333,500,363,479,392,493,437,486,456,479,476,452,485,452,485,452,485,471,474,475,454,479,434,460,402,482,365,505,328,565,292,597,294,612,295,591,298,587,316,583,333,593,373,584,404,574,440,533,456,534,455,534,455,559,506,619,530,666,497,685,483,701,471,716,475,716,475,716,475,704,463,697,459,690,454,657,434,622,431,587,428,554,462,534,465,513,469,492,451,492,451,492,451,511,461,530,455,549,448,568,416,611,417,654,418,716,452,730,481,737,495,724,478,706,483,689,489,660,516,628,524,592,534,558,506,559,506,559,506,524,552,534,615,586,640,607,649,625,657,629,672,629,672,629,672,634,655,634,647,634,639,636,601,621,569,606,537,560,525,547,509,534,494,539,466,539,466,539,466,539,488,554,501,569,514,607,514,627,552,648,590,650,660,632,687,623,700,631,680,617,667,605,656,566,644,543,621,517,594,524,551,524,552,524,552,467,546,417,585,421,643,424,665,426,686,415,697,415,697,415,697,432,693,439,689,446,684,481,667,501,638,521,609,508,563,515,544,522,524,548,515,548,515,548,515,530,527,526,546,522,566,540,598,518,635,496,672,436,709,404,706,388,705,409,702,413,684,417,667,408,628,417,596,426,561,467,544,467,546,467,546,442,495,383,472,336,504,317,518,301,530,286,526,286,526,286,526,298,539,305,543,312,547,344,568,380,571,415,574,448,539,468,536,488,532,510,551,510,551,510,551,490,540,471,547,452,553,434,585,391,584,348,583,286,550,272,521,265,507,278,524,296,518,313,513,342,485,373,477,409,468,444,495,442,495,442,495,476,449,467,386,415,361,394,352,375,344,371,329,371,329,371,329,366,346,366,354,366,362,364,400,379,433,394,465,440,476,453,492,467,508,462,535,462,535,462,535,461,513,446,500,431,487,394,487,373,449,352,411,350,341,368,314,377,301,369,321,383,334,396,345,434,357,457,380,483,407,477,450,476,449,476,449]}]]},{jv:"0000-0-hearts",SL:[["d17070",{K:"M C C C C C C C C C L Z".split(" "),I:[415,584,413,585,411,586,409,587,392,596,389,620,395,633,401,647,414,663,450,668,485,674,487,681,494,690,491,679,487,673,507,643,527,613,524,593,518,579,512,566,493,552,475,558,467,561,451,566,448,586,435,578,423,581,415,584,415,584]}],["6bcc6b",{K:"M C C C C C C C C C L Z".split(" "),I:[595,451,593,449,590,448,588,448,563,439,537,457,529,475,521,493,516,520,542,560,568,601,563,609,559,623,568,611,571,602,618,595,666,589,684,567,692,550,700,532,697,501,674,488,665,482,645,472,622,486,619,465,606,456,595,451,595,451]}],["5c5cc2",{K:"M C C C C C C C C C L Z".split(" "),I:[341,362,338,364,335,366,332,368,304,385,301,424,312,446,323,468,345,494,405,501,465,508,468,520,480,534,475,516,468,506,499,455,531,404,524,370,514,348,503,325,470,304,440,315,427,320,401,331,397,364,374,351,355,356,341,362,341,362]}]]},{jv:"0000-0-anchor",SL:[["2a3b66",{K:"M C C C C L Z M C C C C C C C C C C C C C C L C C C C C C C C C C C C C L C C C C C C C C C C C C C L Z".split(" "),I:[495,315,490,315,488,318,489,323,491,328,502,326,502,320,502,317,501,316,497,315,496,315,496,315,495,315,495,315,496,303,509,303,521,320,514,327,511,330,513,345,517,348,519,350,531,352,546,354,570,357,572,357,578,354,588,347,592,351,592,369,592,385,588,390,580,385,576,383,570,383,552,384,524,387,519,389,517,397,515,404,517,515,520,554,522,583,525,599,530,606,534,610,555,617,565,617,584,616,607,602,635,572,639,568,641,566,644,563,633,559,616,557,616,557,675,533,675,533,671,605,669,609,667,611,664,591,658,577,657,579,657,580,656,582,628,638,603,660,565,664,545,666,521,672,514,675,512,677,507,682,504,688,501,693,497,698,496,698,494,698,490,693,487,688,484,682,480,677,477,675,471,672,447,666,427,664,391,660,367,640,340,591,335,604,332,621,331,619,329,615,325,544,325,544,384,568,384,568,368,569,357,573,385,602,408,616,426,617,437,617,458,610,461,606,466,599,470,583,472,554,474,515,476,404,475,397,473,389,468,387,440,384,422,383,416,383,412,385,403,390,400,385,400,369,400,351,403,347,414,354,419,357,421,357,446,354,460,352,473,350,475,348,478,345,481,330,478,327,470,320,483,303,496,303,496,303]}]]},{jv:"0000-1-leaf",SL:[["fbb600",{K:"M L L L L L L C L L C L C L C C C C C L C C C C C C C C C L C C C C C C C C C C C C C L L L L Z".split(" "),I:[642,726,633,723,632,707,591,631,570,582,526,521,537,547,535,579,517,598,501,619,486,602,414,634,412,606,379,609,346,611,394,557,406,547,401,539,386,532,319,519,337,508,332,493,320,478,326,464,302,450,287,436,303,436,324,441,330,432,346,434,359,434,359,415,377,428,397,431,417,432,442,440,437,418,417,416,406,372,401,370,395,367,389,355,417,363,408,339,406,323,416,312,427,303,417,276,433,295,444,297,452,294,479,321,490,313,496,294,503,322,510,329,517,338,522,353,530,371,530,379,546,402,551,389,555,378,578,333,606,333,628,304,652,280,646,306,644,327,657,329,649,356,658,374,679,384,666,392,656,415,645,432,627,457,653,451,661,457,692,460,698,473,715,481,697,485,678,488,669,509,656,523,655,533,666,539,659,537,659,542,643,531,630,535,613,543,608,539,598,535,594,542,590,553,590,566,594,564,596,569,568,575,551,543,531,519,575,577,597,628,639,708,642,726]}]]},{jv:"0000-1-acorn",SL:[["a05a2c",{K:"M C C C C C C C L Z".split(" "),I:[506,453,450,426,413,422,398,444,374,480,374,533,384,573,391,602,407,625,430,645,451,658,487,654,509,647,554,633,587,605,612,565,635,527,591,500,565,482,557,476,515,457,506,453,506,453]}],["502d16",{K:"M C C C C C C C C C C C Z".split(" "),I:[640,524,639,539,623,540,623,540,627,522,607,504,583,488,547,465,507,445,470,434,439,426,412,417,400,437,400,437,391,424,400,414,434,370,498,356,551,376,555,349,583,317,597,321,612,326,621,346,620,350,619,354,594,352,584,368,580,375,577,382,575,387,619,412,649,460,640,524]}]]},{jv:"0000-0-skull",SL:[["808080",{K:"M C L C C L C L C C C C C C C L C L C C C C C C C C L C C L C L C C C C C C C L C L C L C C C C C C Z M C C C C Z M C C C C Z M L L L Z".split(" "),I:[396,410,398,415,398,420,398,424,420,437,433,404,465,382,501,382,538,382,569,404,582,435,602,424,602,419,603,415,604,410,604,410,609,392,622,379,633,382,643,384,648,402,643,420,643,421,642,421,642,422,643,422,643,422,644,422,662,427,675,440,672,450,669,461,652,465,633,460,628,459,624,457,620,455,589,473,588,491,582,507,572,520,607,540,611,538,615,536,620,535,639,530,656,535,659,545,662,556,649,568,630,573,630,574,629,574,629,574,629,574,629,575,629,575,634,594,630,611,619,614,609,617,596,604,591,585,590,580,589,576,589,571,565,557,564,592,536,619,501,619,466,619,438,591,437,557,412,572,411,576,411,580,410,585,410,585,405,604,392,617,381,614,371,611,366,593,371,575,371,574,371,574,372,574,371,573,371,573,370,573,352,568,339,556,342,545,345,534,362,530,381,535,385,536,390,538,394,540,430,519,421,507,415,491,414,475,380,455,376,457,372,459,367,460,367,460,349,465,331,461,328,450,326,440,338,427,357,422,357,422,358,422,358,422,358,421,358,421,358,420,353,402,357,384,368,381,379,379,391,391,396,410,463,439,445,439,431,453,431,470,431,488,445,502,463,502,480,502,494,488,494,470,494,453,480,439,463,439,540,439,522,439,508,453,508,470,508,488,522,502,540,502,557,502,571,488,571,470,571,453,557,439,540,439,483,528,518,528,500,503,483,528]}]]},{jv:"0000-0-ghost",SL:[["e6e6e6",{K:"M C C C C C C C C C C L Z M C C C C C C C C Z M C C Z".split(" "),I:[653,486,653,574,689,597,689,638,689,661,640,644,620,656,601,666,609,682,583,692,563,700,538,666,512,666,490,666,451,695,433,686,415,677,416,646,388,644,367,641,313,671,313,648,313,619,346,588,346,486,346,388,415,308,500,308,584,308,653,388,653,486,653,486,449,396,428,396,412,415,412,439,412,462,428,482,449,482,465,482,478,470,484,454,489,470,503,482,519,482,539,482,556,462,556,439,556,415,539,396,519,396,503,396,489,407,484,423,478,407,465,396,449,396,482,505,441,505,465,560,482,560,503,560,524,505,482,505]}],["000000",{K:"M C C C C Z M C C C C Z".split(" "),I:[526,446,526,455,519,462,510,462,501,462,494,455,494,446,494,437,501,430,510,430,519,430,526,437,526,446,475,446,475,455,468,462,459,462,450,462,442,455,442,446,442,437,450,430,459,430,468,430,475,437,475,446]}]]},{jv:"1001-1-rose",SL:[["9e1460",{K:"M C C C C C C C C C Z M C C C C C C C C C Z".split(" "),I:[568,83,558,83,548,88,539,96,538,98,536,99,535,101,522,115,513,134,517,149,522,172,561,200,592,207,604,210,611,215,615,221,622,234,611,258,611,258,613,260,615,264,618,264,627,266,638,241,640,236,660,188,614,83,568,83,526,125,527,97,567,68,593,75,616,81,642,121,649,152,651,165,656,172,662,176,675,183,698,173,698,173,698,173,698,173,698,173,704,176,705,179,705,180,706,189,681,199,678,200,678,200,677,201,677,201,627,220,524,170,526,125]}],["020304",{K:"M C C C C C Z M C C C C C Z M C C C C C Z M C C C C Z".split(" "),I:[60,151,60,151,37,125,60,98,83,72,95,91,115,66,134,42,117,26,120,30,123,34,146,83,132,114,114,154,60,151,60,151,280,70,280,70,258,97,283,122,308,147,318,127,339,150,361,173,344,190,347,186,350,182,370,132,354,101,333,62,280,70,280,70,61,150,61,150,27,143,30,108,33,73,54,81,55,50,57,19,33,16,38,17,43,19,91,44,98,78,107,121,61,150,61,150,-27,185,184,158,222,43,352,32,444,24,538,97,538,97,538,97,453,45,354,48,241,51,185,170,-27,185]}]]},{jv:"1001-1-curls",SL:[["53a7ab",{K:"M C C C C C C C C C C C C C C C C L Z M C C C C C C C C C C C C C C C C L Z M C C C C C C C C C C C C C C C C C C C C C L Z".split(" "),I:[68,114,121,103,159,110,183,135,212,169,211,204,189,237,162,277,124,291,86,276,52,263,38,236,47,202,55,168,79,151,121,156,147,162,165,177,160,205,155,228,135,241,113,237,97,234,92,221,96,205,98,195,105,194,115,200,124,205,133,204,135,197,139,183,122,167,95,171,68,176,54,193,68,220,84,252,131,261,165,238,201,202,199,164,158,136,118,113,52,122,-23,151,2,134,33,122,68,114,68,114,71,83,119,75,163,79,198,107,226,129,247,174,271,207,291,229,316,241,342,232,370,222,394,206,418,209,443,212,461,238,485,258,500,272,522,276,543,271,543,271,524,279,518,281,500,287,483,277,466,256,453,243,441,230,427,223,413,217,392,220,372,229,372,230,371,230,370,230,354,241,337,251,315,250,283,248,253,222,229,172,209,133,178,106,137,94,103,84,52,94,-30,133,-3,108,30,91,71,83,71,83,83,54,122,46,166,49,195,67,219,82,250,122,290,168,308,186,330,194,355,192,393,183,400,145,383,118,372,101,355,91,328,91,313,92,303,98,300,109,298,116,299,125,304,131,315,147,327,152,340,149,349,149,354,132,343,131,330,131,326,129,328,120,332,97,355,100,365,114,381,137,367,165,343,168,321,170,289,150,288,117,290,77,319,58,352,64,388,74,405,104,404,141,403,177,382,202,345,207,312,211,284,191,260,161,245,141,229,122,213,106,196,84,166,73,129,67,80,62,28,79,-26,108,10,79,46,63,83,54,83,54]}],["bbdc54",{K:"M C C C C C L Z M C C C C C L Z M C C C C L Z M C C C C L Z M C C C C C C C C C L Z M C C C C C C C C C C C C C C C C C C C C C C C C C C C C C L Z".split(" "),I:[321,315,287,324,252,312,211,219,217,284,239,326,279,341,324,352,362,329,398,291,316,305,258,269,217,196,238,284,274,319,321,315,321,315,211,261,223,300,234,345,252,374,220,378,194,367,193,324,194,306,198,288,206,270,197,315,204,340,221,351,206,327,202,297,211,261,211,261,206,246,193,301,170,317,138,297,162,281,184,254,205,222,201,246,191,267,174,283,186,279,197,267,206,246,206,246,378,233,370,286,337,299,294,270,312,277,330,276,347,267,294,278,259,252,234,203,280,259,327,278,378,233,378,233,626,217,604,273,555,313,511,315,484,316,438,289,432,232,450,253,488,296,511,291,532,286,551,277,566,261,527,269,498,263,480,243,478,241,478,237,480,235,486,230,504,220,519,226,537,233,551,242,567,241,591,236,611,228,626,217,626,217,411,192,432,183,439,166,420,136,443,144,460,158,466,182,470,165,456,149,430,133,459,136,485,145,505,165,503,143,463,133,434,128,486,127,526,124,539,118,505,123,470,124,435,122,461,111,483,96,500,76,475,95,450,110,424,118,450,96,465,72,466,48,458,75,440,98,419,112,424,106,428,99,428,91,429,68,413,57,393,51,419,70,426,92,411,110,408,77,385,58,343,52,383,26,422,25,445,62,458,47,465,29,467,8,477,27,479,51,475,76,497,64,515,49,528,29,524,57,515,82,496,103,521,113,549,111,579,99,560,122,535,136,502,137,518,149,521,173,514,205,505,181,492,166,476,158,483,188,470,205,447,216,456,183,451,166,438,157,444,193,426,211,379,207,403,193,416,172,416,140,434,156,428,173,411,192,411,192]}]]},{jv:"0111-0-pines",SL:[["e9e9e9",{K:"M C C C C C C C C L L L Z".split(" "),I:[0,946,0,946,54,960,99,944,149,927,182,954,205,956,245,960,298,940,382,974,435,995,478,957,538,956,571,955,597,969,631,968,663,967,701,938,749,944,805,950,851,960,893,946,950,928,1e3,946,1e3,946,1e3,1e3,0,1e3,0,946]}],["437a26",{K:"M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z".split(" "),I:[119,801,120,801,148,859,148,859,137,853,137,853,155,890,155,891,156,892,138,887,140,888,141,888,171,925,171,925,126,924,125,943,125,943,105,944,106,944,107,944,106,924,106,924,61,925,93,886,77,891,100,854,89,860,89,860,119,801,119,801,286,871,286,871,303,905,303,905,296,902,296,902,307,924,307,924,307,925,297,922,297,922,298,922,316,944,316,944,289,944,289,955,289,955,277,956,278,956,278,956,278,944,278,944,251,944,270,921,260,924,274,902,268,906,268,906,285,871,286,871,526,863,526,863,546,903,546,903,538,899,538,899,550,924,550,925,550,926,539,922,540,922,540,922,561,948,561,948,530,947,529,960,529,960,516,961,517,961,518,961,517,947,517,947,486,948,508,921,497,925,513,899,505,903,505,903,526,863,526,863,731,841,731,841,752,883,752,883,744,879,744,879,757,907,757,908,758,908,745,905,746,905,747,905,769,932,769,932,736,932,735,946,735,946,721,946,721,946,722,947,721,932,721,932,688,932,712,903,700,908,717,880,709,884,709,884,731,841,731,841,889,826,889,826,914,876,914,876,904,871,904,871,920,904,920,905,920,906,906,901,907,902,908,902,934,934,934,934,894,933,894,950,894,950,877,951,878,951,879,951,878,933,878,933,838,934,866,900,852,905,872,872,862,877,862,877,889,826,889,826]}]]},{jv:"0111-0-flowers",SL:[["8cae40",{K:"M C L C C C L C C L C C C L C C C L C C L C C L Z M C L C C C L C C L C C C L C C C L C C L C C L Z M C L C C C L C C L C C C L C C C L C C L C C L Z M C L C C C L C C L C C C L C C C L C C L C C L Z".split(" "),I:[182,866,160,879,146,903,135,929,135,844,177,842,228,831,230,796,231,770,207,765,182,779,160,792,146,816,135,843,135,713,135,711,134,710,132,710,130,710,128,711,128,713,128,841,117,815,103,791,82,779,57,764,33,769,34,795,36,830,86,841,128,844,128,930,117,903,103,880,82,867,57,853,33,858,34,884,36,919,86,930,128,932,128,1009,128,1010,130,1012,132,1012,134,1012,135,1010,135,1009,135,931,177,928,228,918,230,882,231,856,207,851,182,866,182,866,447,904,430,898,412,904,394,916,394,861,413,873,431,879,447,873,458,868,458,852,447,848,430,841,412,848,394,859,394,788,394,787,393,786,391,786,389,786,388,787,388,788,388,859,370,847,352,841,336,848,325,852,325,868,336,873,352,879,370,873,388,862,388,915,370,904,352,898,336,904,325,909,325,925,336,929,352,936,370,930,388,918,388,1009,388,1010,389,1011,391,1011,393,1011,394,1010,394,1009,394,918,413,930,431,936,447,929,458,925,458,909,447,904,447,904,662,943,650,954,641,972,634,993,634,914,659,907,680,895,692,873,707,846,686,836,662,859,650,870,641,888,634,909,634,818,634,816,632,815,631,815,629,815,628,816,628,818,628,908,621,887,612,870,600,859,576,836,555,846,570,873,582,895,603,907,628,914,628,992,621,971,612,954,600,943,576,920,555,930,570,957,582,978,603,990,628,998,628,1009,628,1010,629,1011,631,1011,632,1011,634,1010,634,1009,634,998,659,991,680,978,692,957,707,930,686,920,662,943,662,943,892,842,875,857,862,882,850,912,850,822,874,817,896,805,908,778,919,755,896,751,877,769,866,779,857,796,850,815,850,737,850,736,848,735,847,735,845,735,844,736,844,737,844,815,836,795,828,779,817,769,798,751,775,755,785,777,797,804,820,817,844,822,844,912,832,882,818,857,801,842,772,816,737,822,753,854,772,894,806,911,844,918,844,1009,844,1010,845,1011,847,1011,848,1011,850,1010,850,1009,850,918,887,911,922,894,941,854,957,822,922,816,892,842,892,842]}],["d13777",{K:"M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M C C C C C C C Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C Z M C C C C Z M C C L L C C C C L L C C L L C C C C L C C C C L Z M C C C Z M C C C L Z M C C C L Z".split(" "),I:[125,603,115,617,112,619,110,618,111,615,122,600,119,597,75,614,43,631,32,650,22,675,36,694,65,682,59,716,94,722,111,696,120,687,126,657,129,604,125,603,125,603,104,638,99,638,95,634,95,629,95,624,99,620,104,620,109,620,113,624,113,629,113,634,109,638,104,638,117,587,100,582,98,579,99,578,102,577,119,583,121,580,92,543,65,517,44,513,17,512,4,531,24,555,-10,560,-6,594,24,603,36,609,67,605,118,591,118,587,117,587,78,578,77,573,79,568,84,567,88,565,93,568,95,573,96,577,94,582,89,584,85,585,80,583,78,578,130,575,130,557,131,554,133,555,135,557,135,575,138,576,164,537,180,504,177,482,171,456,148,449,132,476,117,445,85,460,86,491,84,504,97,532,126,577,130,575,130,575,126,535,130,532,136,533,139,537,142,541,141,546,137,549,133,552,127,551,125,547,122,543,122,538,126,535,146,584,162,577,165,578,166,580,164,582,146,588,147,591,193,604,229,609,249,600,271,585,271,562,240,554,265,530,241,505,212,516,199,518,176,539,143,580,146,584,146,584,183,567,187,570,187,576,185,580,182,584,176,585,172,582,168,579,167,573,170,569,173,565,179,565,183,567,142,601,153,615,153,618,152,619,149,618,138,603,135,605,137,652,144,688,159,704,180,721,202,713,199,681,230,698,246,667,227,643,221,631,194,616,145,597,142,601,142,601,169,631,167,636,162,638,158,637,153,635,151,630,152,625,154,621,159,618,163,620,168,621,170,626,169,631,376,691,343,693,320,697,309,706,297,714,291,729,294,756,294,767,295,779,294,788,305,786,320,788,335,788,353,787,369,782,375,773,382,764,386,739,388,703,381,702,377,699,376,691,363,745,357,757,351,761,345,761,337,760,337,751,343,737,330,742,322,742,319,735,317,728,322,723,331,718,346,712,360,708,374,706,373,720,369,733,363,745,363,745,388,680,387,646,383,623,375,612,366,600,351,594,325,596,314,596,302,597,293,595,295,607,292,622,292,637,292,654,298,671,306,676,315,684,340,689,376,692,377,684,381,680,388,680,388,680,334,665,323,659,318,654,319,648,320,639,329,640,343,645,338,632,339,625,345,621,352,620,358,625,362,634,368,649,372,664,373,677,360,676,347,671,334,665,334,665,399,691,433,690,456,686,467,678,479,670,485,655,484,629,484,617,482,606,484,597,472,598,458,595,442,596,425,596,409,601,403,610,395,618,391,643,388,679,395,680,399,684,399,691,399,691,414,638,420,626,426,622,432,622,440,624,440,633,434,646,447,641,455,642,458,648,459,656,454,661,445,665,430,671,416,675,402,677,403,663,408,650,414,638,414,638,388,703,390,736,394,759,403,770,411,782,426,788,452,785,464,785,475,784,485,785,483,774,485,759,485,744,484,726,479,710,470,704,461,697,436,693,400,691,399,698,395,702,388,703,388,703,442,716,453,722,458,728,458,734,456,742,447,742,434,736,439,749,438,757,432,760,425,762,419,757,415,748,409,733,404,719,403,705,416,706,429,710,442,716,442,716,722,716,722,701,710,690,696,690,695,690,694,690,693,690,693,689,694,689,695,688,705,678,705,662,695,651,685,641,668,641,658,651,658,652,657,653,656,654,656,653,656,652,656,651,656,637,645,625,630,625,616,625,605,637,605,651,605,652,605,653,605,654,604,654,604,653,603,652,593,642,576,642,566,652,556,662,556,679,566,689,567,690,568,690,569,691,568,691,567,691,566,691,552,691,540,702,540,717,540,731,552,743,566,743,567,743,568,743,569,742,569,743,568,744,567,744,557,754,557,771,567,781,577,791,594,791,604,781,605,780,605,779,606,778,606,779,606,780,606,781,606,795,617,807,632,807,646,807,657,795,657,781,657,780,657,779,657,778,658,779,658,779,659,780,669,790,686,790,696,780,706,770,706,754,696,743,695,743,694,742,693,741,694,741,695,741,696,741,710,741,722,730,722,716,631,762,605,762,585,742,585,716,585,691,605,670,631,670,657,670,677,691,677,716,677,742,657,762,631,762,958,602,957,570,951,547,940,532,925,541,905,565,887,591,886,591,886,546,892,545,897,540,897,533,897,527,891,521,884,521,877,521,872,527,872,533,872,540,876,545,882,546,882,591,882,591,870,564,860,536,848,525,833,541,820,565,808,592,807,592,807,546,813,545,817,540,817,533,817,527,812,521,805,521,798,521,792,527,792,533,792,540,797,545,802,546,802,590,784,567,766,545,755,534,729,588,731,639,766,684,787,711,814,726,847,725,919,724,960,659,958,602,958,602,783,671,772,653,777,645,789,648,812,656,830,682,840,711,821,704,797,692,783,671,836,634,840,614,850,612,856,622,867,644,861,676,848,703,840,684,831,659,836,634,836,634,919,659,911,682,885,701,856,711,863,692,875,668,896,654,913,642,922,647,919,659,919,659]}]]},{jv:"1101-1-confetti",SL:[["e789ff",{K:"M C C C C C Z M C C C C C C C Z M C C C C C C C Z M C C C C C Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[170,439,169,438,59,370,108,300,152,238,298,276,318,337,338,398,265,380,285,358,312,328,185,247,121,307,72,353,171,440,170,439,318,338,336,399,262,408,184,346,138,309,73,237,112,174,167,88,345,115,377,222,393,276,296,260,335,236,375,212,236,111,155,183,73,254,265,380,285,358,312,328,318,338,318,338,377,222,394,276,318,288,243,236,187,197,146,120,201,56,254,-5,365,26,407,68,407,68,414,94,378,71,344,50,258,31,221,89,178,154,297,260,336,235,374,211,377,222,377,222,406,70,452,115,432,189,324,115,214,39,323,-85,322,-85,320,-85,229,38,331,100,439,166,413,95,377,72,343,51,364,28,406,70,346,405,369,418,356,441,333,428,346,405,513,298,536,311,523,334,500,321,513,298,891,91,914,104,901,127,878,114,891,91,24,123,47,136,34,159,11,146,24,123,664,33,687,46,674,69,651,56,664,33,910,482,933,495,920,518,897,505,910,482]}],["666666",{K:"M C C C C C Z M C C C C C C C Z M C C C C C C C Z M C C C C C Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[919,442,917,443,802,510,764,432,730,364,837,250,901,261,965,272,913,329,903,301,889,262,755,338,777,424,794,490,920,442,919,442,901,261,964,274,936,345,842,386,787,410,690,435,654,370,604,279,716,132,827,153,883,164,821,244,819,197,817,150,659,228,682,335,706,443,913,329,903,301,889,262,901,261,901,261,827,153,884,163,857,238,774,281,711,313,622,313,593,233,564,157,647,71,705,54,705,54,732,60,694,82,658,102,599,170,632,231,669,301,822,244,819,197,816,150,827,153,827,153,706,54,769,34,825,87,706,149,583,213,527,56,526,57,526,59,590,200,696,137,807,70,732,60,694,82,658,102,648,73,706,54,362,328,383,340,371,361,350,349,362,328,52,189,73,201,61,222,40,210,52,189,509,119,530,131,517,152,496,140,509,119,912,16,933,28,921,49,900,37,912,16,629,380,650,392,638,413,617,401,629,380,77,414,98,426,86,447,65,435,77,414,240,76,261,88,249,109,228,97,240,76]}]]},{jv:"1101-1-branch",SL:[["7f500b",{K:"M C C C L C C Z M C C C L C C Z M C C C L C C Z M C C C L C C Z M C C C L C C Z M C C C L C C Z".split(" "),I:[144,-14,144,-14,149,-12,150,-12,150,-12,106,22,86,75,63,137,93,193,69,238,64,236,89,174,53,146,80,72,99,19,144,-14,144,-14,280,-18,281,-18,276,-20,276,-20,276,-20,282,23,264,64,244,113,196,129,185,168,189,170,209,120,244,123,269,66,288,25,280,-18,280,-18,429,-5,429,-5,434,-4,434,-4,435,-4,405,28,396,72,386,124,415,164,402,203,398,202,410,150,379,132,391,70,399,26,429,-5,429,-5,514,-7,514,-7,519,-12,519,-12,520,-12,532,50,577,96,630,151,703,150,738,197,733,201,681,144,635,166,571,101,526,54,514,-7,514,-7,666,-67,666,-68,663,-65,662,-64,662,-64,704,-52,734,-18,768,22,763,72,793,99,796,96,760,57,778,26,737,-22,708,-56,666,-67,666,-67,936,-8,936,-8,932,-9,931,-9,931,-9,947,32,938,76,927,127,884,154,881,194,886,195,895,142,930,138,943,76,952,32,936,-8,936,-8]}],["5c7f0b",{K:"M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z".split(" "),I:[119,6,121,16,113,31,81,33,58,34,27,27,27,27,27,27,53,5,70,-1,93,-9,117,-4,119,6,124,8,132,1,151,12,165,33,179,54,180,87,180,87,180,87,153,75,139,60,122,41,115,14,124,8,78,74,82,83,76,97,48,103,27,108,-2,105,-2,105,-2,105,19,81,33,74,53,64,75,65,78,74,83,75,90,68,108,76,124,93,139,110,144,140,144,140,144,140,117,132,104,121,85,105,76,83,83,75,72,152,75,159,72,172,48,179,30,185,6,185,6,185,6,185,22,163,33,156,49,145,68,145,72,152,76,153,81,146,98,151,112,165,126,178,133,203,133,203,133,203,110,199,97,190,80,178,70,160,76,153,73,206,75,213,71,224,49,228,34,232,12,230,12,230,12,230,28,212,39,206,53,199,70,200,73,206,76,207,81,202,95,207,107,220,118,233,122,255,122,255,122,255,102,250,92,241,78,230,71,213,76,207,70,232,78,236,76,252,66,269,56,286,33,297,33,297,33,297,33,274,39,260,46,241,62,228,70,232,285,3,278,8,274,21,291,39,304,52,325,63,325,63,325,63,323,36,316,24,308,7,291,-2,285,3,281,1,280,-7,263,-10,244,-5,224,1,205,20,205,20,205,20,228,27,244,25,264,22,283,10,281,1,270,65,264,69,259,80,272,99,281,112,299,125,299,125,299,125,300,100,296,88,290,72,277,61,270,65,267,64,267,56,252,51,234,53,216,56,197,71,197,71,197,71,216,80,230,80,249,80,267,72,267,64,231,116,225,119,220,128,230,145,237,157,251,170,251,170,251,170,254,148,251,138,248,123,237,113,231,116,228,114,229,108,217,102,201,103,186,103,168,115,168,115,168,115,184,124,196,126,212,127,228,121,228,114,201,148,196,151,192,160,202,174,209,184,222,194,222,194,222,194,223,175,220,166,216,154,206,145,201,148,198,147,198,141,187,137,174,139,160,141,145,152,145,152,145,152,160,159,171,159,185,160,198,153,198,147,188,165,182,163,173,174,170,190,167,205,173,224,173,224,173,224,186,210,191,198,197,183,195,166,188,165,415,10,417,18,413,31,389,36,371,39,347,37,347,37,347,37,364,16,377,9,393,0,412,2,415,10,418,11,424,4,440,11,453,27,466,43,470,69,470,69,470,69,448,62,436,52,420,38,412,17,418,11,391,69,394,76,392,89,371,96,355,102,333,103,333,103,333,103,346,81,357,74,371,64,388,63,391,69,395,70,399,63,414,68,428,80,441,92,448,116,448,116,448,116,427,113,415,105,400,94,390,77,395,70,395,133,398,139,397,150,379,158,367,164,348,167,348,167,348,167,358,148,366,140,377,130,391,128,395,133,398,134,401,128,414,130,427,140,439,149,447,169,447,169,447,169,429,167,418,162,404,154,394,140,398,134,401,177,404,182,402,192,386,198,374,202,358,203,358,203,358,203,368,187,375,181,386,173,399,172,401,177,404,178,408,173,419,176,429,185,439,194,445,212,445,212,445,212,429,210,420,204,408,196,401,183,404,178,402,198,408,201,409,214,403,229,397,244,381,255,381,255,381,255,378,236,381,224,385,208,396,196,402,198,519,23,531,26,543,42,528,75,518,99,495,125,495,125,495,125,485,87,487,67,490,40,508,19,519,23,523,19,521,7,542,-6,571,-8,600,-10,636,6,636,6,636,6,609,27,586,32,557,39,526,32,523,19,570,100,581,102,594,115,585,147,579,170,562,197,562,197,562,197,548,163,547,145,547,120,560,98,570,100,574,97,570,86,587,72,613,66,639,60,673,71,673,71,673,71,652,93,632,101,607,110,578,107,574,97,649,149,659,150,670,160,666,188,662,208,650,232,650,232,650,232,635,205,633,189,631,168,640,149,649,149,652,146,648,137,662,123,683,116,705,109,734,116,734,116,734,116,718,137,702,145,681,155,657,155,652,146,707,178,715,179,724,189,718,213,714,230,701,250,701,250,701,250,690,225,690,211,689,193,699,177,707,178,710,175,707,167,720,156,739,151,759,147,784,155,784,155,784,155,768,172,753,177,734,185,713,183,710,175,732,194,740,189,757,199,770,218,782,237,783,266,783,266,783,266,758,254,746,240,730,223,724,199,732,194,687,-62,688,-54,699,-45,722,-53,739,-59,759,-73,759,-73,759,-73,733,-82,719,-82,701,-81,685,-71,687,-62,684,-60,676,-62,666,-48,662,-28,659,-9,669,17,669,17,669,17,684,-1,689,-16,696,-35,692,-57,684,-60,737,-23,738,-15,746,-5,768,-9,784,-12,804,-23,804,-23,804,-23,782,-34,769,-36,752,-38,736,-30,737,-23,734,-20,727,-24,716,-13,711,5,705,22,711,46,711,46,711,46,727,33,734,20,742,3,742,-17,734,-20,766,35,766,41,772,50,792,48,806,47,823,40,823,40,823,40,805,28,795,26,780,23,766,28,766,35,763,37,758,33,747,42,741,56,735,70,738,91,738,91,738,91,753,81,760,71,768,57,769,40,763,37,782,76,783,82,789,89,806,86,818,84,832,76,832,76,832,76,816,67,806,66,794,65,782,70,782,76,780,78,775,75,766,84,762,97,758,110,762,128,762,128,762,128,775,118,779,108,786,95,785,80,780,78,792,94,788,100,794,112,807,122,819,131,839,133,839,133,839,133,832,116,823,107,812,95,796,89,792,94,945,11,939,18,938,31,959,45,974,55,997,62,997,62,997,62,989,36,980,25,968,11,950,5,945,11,941,11,938,3,921,3,903,13,885,22,871,45,871,45,871,45,894,47,909,42,929,35,944,19,941,11,944,75,938,80,935,93,952,108,964,119,984,128,984,128,984,128,980,104,974,93,965,78,949,70,944,75,940,75,938,67,923,65,906,71,889,77,873,96,873,96,873,96,894,101,908,99,926,95,942,82,940,75,916,133,911,137,907,147,920,162,930,172,946,182,946,182,946,182,944,160,940,151,933,137,921,129,916,133,913,132,912,125,899,123,884,127,869,130,854,145,854,145,854,145,871,151,883,150,899,148,913,139,913,132,893,171,888,175,887,184,899,196,908,204,923,211,923,211,923,211,920,193,915,184,909,173,897,167,893,171,890,170,889,165,877,163,864,168,851,172,839,187,839,187,839,187,855,190,865,188,879,186,891,176,890,170,884,190,877,190,871,202,871,218,871,234,881,251,881,251,881,251,891,234,893,222,896,206,890,190,884,190]}]]},{jv:"1101-1-sticks",SL:[["ec7272",{K:"M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[260,148,297,180,286,192,249,160,260,148,114,31,161,47,155,63,109,47,114,31,931,91,902,52,915,42,945,81,931,91,711,19,746,-15,758,-3,723,31,711,19,812,161,782,122,795,112,825,151,812,161,389,34,424,0,436,12,401,46,389,34,431,209,465,175,477,186,442,221,431,209,282,90,282,41,299,41,299,90,282,90,58,233,29,194,42,184,72,223,58,233,574,58,621,74,615,90,569,74,574,58]}],["0000ff",{K:"M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[722,208,733,161,717,157,706,205,722,208,843,12,797,28,802,44,849,28,843,12,31,74,60,35,47,25,18,64,31,74,220,21,185,-13,173,-1,208,33,220,21,140,166,170,127,157,117,127,156,140,166,558,148,523,114,511,126,546,160,558,148,562,9,516,25,521,41,568,25,562,9,697,105,726,66,713,56,684,95,697,105,961,180,990,141,977,131,948,170,961,180,399,97,353,113,358,129,405,113,399,97]}]]},{jv:"1101-1-dots",SL:[["ec7272",{K:"M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z".split(" "),I:[154,47,144,47,136,39,136,29,136,19,144,11,154,11,164,11,172,19,172,29,172,39,164,47,154,47,272,164,262,164,254,156,254,146,254,136,262,128,272,128,282,128,290,136,290,146,290,156,282,164,272,164,529,48,519,48,511,40,511,30,511,20,519,12,529,12,539,12,547,20,547,30,547,40,539,48,529,48,696,101,686,101,678,93,678,83,678,73,686,65,696,65,706,65,714,73,714,83,714,93,706,101,696,101,929,91,919,91,911,83,911,73,911,63,919,55,929,55,939,55,947,63,947,73,947,83,939,91,929,91]}],["0000ff",{K:"M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z".split(" "),I:[66,122,56,122,48,114,48,104,48,94,56,86,66,86,76,86,84,94,84,104,84,114,76,122,66,122,309,55,299,55,291,47,291,37,291,27,299,19,309,19,319,19,327,27,327,37,327,47,319,55,309,55,785,180,775,180,767,172,767,162,767,152,775,144,785,144,795,144,803,152,803,162,803,172,795,180,785,180,459,147,449,147,441,139,441,129,441,119,449,111,459,111,469,111,477,119,477,129,477,139,469,147,459,147,811,48,801,48,793,40,793,30,793,20,801,12,811,12,821,12,829,20,829,30,829,40,821,48,811,48]}],["88a500",{K:["M","C","C","Z"],I:[389,224,389,224,410,230,410,230,410,230,389,224,389,224]}]]},{jv:"1101-1-strips",SL:[["ffc88c",{K:"M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[-40,0,44,0,137,99,53,99,-40,0,296,0,380,0,473,99,389,99,296,0,632,0,716,0,809,99,725,99,632,0]}],["88a500",{K:"M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[128,0,212,0,305,99,221,99,128,0,464,0,548,0,641,99,557,99,464,0,800,0,884,0,977,99,893,99,800,0]}],["88a500",{K:["M","C","C","Z"],I:[407,217,407,217,428,223,428,223,428,223,407,217,407,217]}]]},{jv:"1101-1-circs",SL:[["ec7272",{K:"M C C C C Z M C C C C Z".split(" "),I:[61,209,27,209,0,181,0,147,0,113,27,86,61,86,96,86,123,113,123,147,123,181,96,209,61,209,551,209,517,209,489,181,489,147,489,113,517,86,551,86,585,86,612,113,612,147,612,181,585,209,551,209]}],["217995",{K:"M C C C C Z M C C C C Z".split(" "),I:[303,209,269,209,241,181,241,147,241,113,269,86,303,86,337,86,364,113,364,147,364,181,337,209,303,209,799,209,765,209,738,181,738,147,738,113,765,86,799,86,834,86,861,113,861,147,861,181,834,209,799,209]}],["88a500",{K:["M","C","C","Z"],I:[530,273,530,273,551,279,551,279,551,279,530,273,530,273]}]]},{jv:"1101-1-squares",SL:[["014ea7",{K:"M L L L L Z M L L L L Z".split(" "),I:[0,120,124,120,124,244,0,244,0,120,497,120,621,120,621,244,497,244,497,120]}],["fc54ff",{K:"M L L L L Z M L L L L Z".split(" "),I:[249,120,373,120,373,244,249,244,249,120,746,120,870,120,870,244,746,244,746,120]}],["88a500",{K:["M","C","C","Z"],I:[389,354,389,354,410,360,410,360,410,360,389,354,389,354]}]]},{jv:"1101-0-christmas",SL:[["014ea7",{K:"M C C C C Z M C C C C Z M L L L L Z".split(" "),I:[255,480,178,480,116,418,116,341,116,264,178,202,255,202,332,202,394,264,394,341,394,418,332,480,255,480,255,232,236,232,221,217,221,198,221,179,236,164,255,164,274,164,289,179,289,198,289,217,274,232,255,232,251,-152,260,-152,260,248,251,248,251,-152]}],["ff9518",{K:"M C C C C Z M C C C C Z M L L L L Z".split(" "),I:[746,623,669,623,607,561,607,484,607,407,669,345,746,345,823,345,885,407,885,484,885,561,823,623,746,623,747,376,728,376,713,361,713,342,713,323,728,308,747,308,766,308,781,323,781,342,781,361,766,376,747,376,742,-8,751,-8,751,392,742,392,742,-8]}]]}]; -var iw={};iw.parse=function(D){var M=new Uint8Array(D),s=null;if(M[0]==80&&M[1]==75){var F=Date.now(),X=UZIP.parse(M.buffer),s=X["document.json"]; -s=JSON.parse(t.XM(s,0,s.length));iw.Ff(s,X)}else{var d=gC.parse(D);s=iw.iq(d[2][0][1])}return s};iw.Ff=function(D,M){var s=typeof D; -if(s=="string"||s=="number"||s=="boolean")return D;if(D instanceof Array){for(var K=0;K0){var b=Math.min(100,_);l.push(b,0);_-=b}A=new Uint8Array(l)}E=P.NSAttributes instanceof Array?P.NSAttributes:[P.NSAttributes]; -var y={$class:"NSAttributedString",NSString:n,NSAttributes:E};r.attributedString={_class:"MSAttributedString",archivedAttributedString:y}; -y.NSAttributeInfo={$class:"NSMutableData","NS.data":A};delete r.storage}return F};iw.qv={zN:function(D,M){return D[M+1]<<8|D[M]},s:function(D,M){return D[M+3]<<24|D[M+2]<<16|D[M+1]<<8|D[M]},sV:function(D,M,s){var F=""; -for(var K=0;K>4,B=q&15,P=null; -w+=1;if([4,5,6,10,12,13].indexOf(u)!=-1&&B==15){var r=$.kE(D,w);w+=r.hy;B=r.H}if(!1){}else if(u==0)P=B==8?!1:B==9?!0:null; -else if(u==1)P=$.kE(D,w-1).H;else if(u==2)P=1<=12&&(V&1)==0){var $=V-13>>1,w=new Uint8Array($); -gC.f8(D,s,w,0,$);d.push(w);s+=$}else if(V>=13&&(V&1)==1){var $=V-12>>1;d.push(gC.XM(D,s,$));s+=$}else throw"unknonw type "+V}return d},vi:function(D){if(!(D[18]==1&&D[19]==1&&D[20]==0&&D[21]==64&&D[22]==32&&D[23]==32))throw"unexpected SQL3 header"; -var M={r7:gC.sV(D,0,15),rd:gC.zN(D,16),apY:gC.s(D,24),size:gC.s(D,28),a8q:gC.s(D,32),aju:gC.s(D,36),apa:gC.s(D,40),a4d:gC.s(D,44),ahC:gC.s(D,48),aj3:gC.s(D,52),aaA:gC.s(D,56),a6U:gC.s(D,60),aak:gC.s(D,64)!=0,a0c:gC.s(D,68),amV:gC.s(D,92),ahs:gC.s(D,96)}; -if(M.rd==1)M.rd=65536;if(M.aaA!=1)throw"unsupported text encoding "+M.aaA;return M},aj9:function(D,M){return D[M]<<16|D[M+1]<<8|D[M+2]},aeU:function(D,M){var s=gC.aj9(D,M),F=s&8388608; -return F?-(16777215-s+1):s},aem:function(D,M){gC.RW[0]=D[M];return gC.abM[0]},kE:function(D,M){var s=gC.RW; -for(var K=0;K<4;K++)s[K]=D[M+3-K];return gC.a7d[0]},n3:function(D,M){var s=gC.RW;s[0]=D[M+1];s[1]=D[M]; -return gC.ac4[0]},zN:function(D,M){return D[M]<<8|D[M+1]},s:function(D,M){return D[M]<<24|D[M+1]<<16|D[M+2]<<8|D[M+3]},a9N:function(D,M){var s=gC.RW; -for(var K=0;K<8;K++)s[K]=D[M+7-K];return gC.acz[0]},KF:function(D,M){var s=M,O=0;while(!0){var F=D[M]; -M++;O=O*128+(F&127);if(F<128)break}return{ok:O,hy:M-s}},sV:function(D,M,s){var F="";for(var K=0;K2*8192*8192)$++;d.scale(1/$,1/$);this.aiL=[D,M,s,F];var $=d.qw();D=Math.round(D*$); -M=Math.round(M*$);s=Math.round(s*$);F=Math.round(F*$);var q=this.pW,u=this.mL;if(u==null){d._u=-D}else{var B=u[2]-u[0]+30,r=Math.round(s-D)+30; -if(this.Jo.x+B+r>8192){d._u=-D;this.Jo.x=0;this.Jo.y+=this.PZ+120;this.PZ=0}else{d._u+=B;this.Jo.x+=B}}d.eH=this.Jo.y+(this.acU?F:-M); -this.PZ=Math.max(this.PZ,Math.round(F-M));this.mL=[D,M,s,F];q.N.push(q.P5())};go.prototype.Sc=function(){var D=this.pW,M=D.N[D.N.length-1]; -return M};go.prototype.n6=function(){var D=JSON.parse(JSON.stringify(aX.us.default));D.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter"; -D.strokeEnabled.v=!1;D.fillEnabled.v=!1;return D};go.prototype.hg=function(){var D=this.pW,M=D.lX(); -M.Nt("Path "+D.N.length);this.pW.N.push(M);M.Jw|=16;M.add.SoCo={classID:"null",Clr:{t:"Objc",v:e.h.zQ({i:0,q:0,P:0})}}; -M.add.vmsk=new g.YL;M.add.vstk=this.n6();return M};go.prototype.sS=function(D){var M={I:D.crds,K:D.cmds},s=e.O.L8(M,!1); -e.A.VR(s,this.DG);return s};go.anD=function(D,M){for(var K=0;KF.Y()*2){var q=X.Nm(F),u=q.x,B=q.y,r=u+q.d,P=B+q.w;d={cmds:["M","L","L","L","Z"],crds:[u,B,r,B,r,P,u,P]}}else if(this.Ow==null&&UDOC.G.isBox(d,[X.x,X.y,X.x+X.d,X.y+X.w])&&X.cw(F)){d=$}else this.sR(D); -var A=this.sS(d),E=e.O.l5(X);e.O.t(E.I,this.DG,E.I);X=e.O.Pe(E.I);var n=go.RA(D.colr,this.DG,X),_=this.Sc(),l=_!=null&&_.opacity==Math.round(255*D.ca)&&_.add.vstk!=null&&!_.add.vstk.strokeEnabled.v&&_.add.SoCo&&n.type=="SoFi"&&JSON.stringify(_.add.SoCo.Clr.v)==JSON.stringify(n.H.v.Clr.v); -if(l){var b=!1;for(var K=0;K=0&&D.N[K].add.lsct!=aQ.RE)K--;var F=this.GB;if(F){var X=new hk,d=M;while(d>K){X=D.N[d].NR(this.pW,!1,!0); -d--}s=F.cw(X)}if(s){this.PE.splice(K,1);D.N.splice(K,1)}else{D.N.push(this.a2B)}this.Ow=null}};go.RA=function(D,M,s){var F,X; -if(D.length!=null){F="SoFi";var d=JSON.parse(aX.ft[aX.order.indexOf("SoFi")]);X={t:"Objc",v:d};X.v.Clr.v=go.ZL(D)}else{var V=go.a2Q(D,M,s); -F="GrFl";X={t:"Objc",v:V}}return{type:F,H:X}};go.a2Q=function(D,M,s){var F=JSON.parse(aX.ft[aX.order.indexOf("GrFl")]),X=F.Grad.v; -X.Intr.v=0;var d=go.L_(D.mat);d.concat(M);var V=new eo(0,0),$=new eo(s.d,0),w=D.crds;if(D.typ=="rad"){F.Type.v.GrdT="Rdl"; -var q=.7;V.x=(1-q)*w[0]+q*w[3];V.y=(1-q)*w[1]+q*w[4];$.x=V.x;$.y=V.y;$.x+=Math.max(w[2],w[5])}else{F.Type.v.GrdT="Lnr"; -V.x=w[0];V.y=w[1];$.x=w[2];$.y=w[3];V.x=$.x+.5*(V.x-$.x);V.y=$.y+.5*(V.y-$.y)}V=d.j1(V);$=d.j1($);e.h.bR(V,$,s,F); -var u=D.grad;e.h.xz(u,X);return F};go.prototype.PutText=function(D,M,s,F){var X=M.charCodeAt(0),r=null; -if(this.rA!=-1&&this.rA!=this.nt)return;if(M.length==0||M.length==1&&(X==0||X==8203))return;this.sR(D); -var d=this.pW,V=D.font,$=go.L_(D.ctm);$.concat(this.DG);var w=go.L_(V.Tm);w.concat($);var q=T.m.qw(w),u=new ex(1/q,0,0,-1/q,0,0); -u.concat(w);var B=V.Tfs*q;if(V.Th!=100||V.Trise!=0){console.log(V)}var P=d.N.length-1;while(P>=0&&d.N[P].add.TySh==null)P--; -if(u.P*u.P+u.Gt*u.Gt<.001&&F==null&&P>=0&&d.N[P].add.TySh&&d.N[P].opacity==Math.round(255*D.ca)){var A=d.N[P],E=this.PE[P],n=A.add.TySh.t,_=(n._u+E.Ql-u._u)/B,l=Math.abs(_),b=M.indexOf(" ")==-1,y=n.iD==u.iD&&n.P==u.P&&n.Gt==u.Gt&&n.iw==u.iw,p=y&&Math.abs(E.ZD-u.eH)<1e-5&&l<.6,k=u.eH-E.ZD; -if(p){r=A;E.Ql=u._u-n._u;if(_>.2&&b&&[".",",","?",":","!"].indexOf(M)==-1)M=" "+M}else if(y&&Math.abs(u._u-n._u)<1e-5&&0>3]>>7-(K&7)&1)*255; -X[V]=$;X[V+1]=$;X[V+2]=$;X[V+3]=255}D=X}return D};go.prototype.fn=function(D,M,s,F,X){if(D.length!=M*s*4){var d=bo.H8(D.buffer),V=bo.GD(d); -if(V==null||d=="tga")V=bo.GD("jpg");D=new Uint8Array(V.QK(D,F,X)[0].data)}return D};go.prototype.ShowPage=function(){var D=this.pW; -this.nt++;var M=this.mL;this.ll();var s=D.lX();D.N.push(s);var F=new hk(Math.round(this.Jo.x),Math.round(this.Jo.y),Math.round(M[2]-M[0]),Math.round(M[3]-M[1])); -this.Mh=this.Mh.bk(F);s.mt(F);s.add.artb.artboardBackgroundType.v=3;s.Nt("Page "+this.nt);s.add.lsct=aQ.IN; -s.lQ="pass";s.Jw=24};go.prototype.Print=function(D){console.log("Print:",D)};go.prototype.Done=function(){var D=this.pW; -if(this.nt==1)D.N[D.N.length-1].add.lsct=aQ.X4;D.F0(this.nt);for(var K=0;K32767)d=!0}if(d){D.N.splice(K,1); -K--;continue}}M.M8(D);if(F&&X.lK.length!=0){this.X8(X);var w=F.t6,q=X.lK.length,u=X.lK[0],B=0,r=0;for(var V=0; -VA.length/2){P[V]=A.split("").reverse().join(""); -var l=w.EngineDict.ParagraphRun.RunArray[V].ParagraphSheet.Properties;l._Direction=1;l.Justification=fU._1(l)}}fU.nq(w,P.join("\n"))}}D.o_=!0; -D.d=this.Mh.d;D.w=this.Mh.w;D.buffer=e.U(this.Mh.Y()*4)};var i4={};i4.bd=function(D,M,s,F){var X=!1,d=[D.root],V=D.root.children; -if(D.add.artd){X=!0;for(var K=0;Kd.length){w.splice(K,1);K--}var P=72/D.Gs;for(var K=0; -K>>16&255)/255,(gl>>>8&255)/255,(gl&255)/255]; -var Y=f9[J];e.O.t(Y.I,X,Y.I);Y=e.O.a2V(Y);s.pth={cmds:Y.K,crds:Y.I};F.Fill(s)}}else if(r&&d[3]==!1){var av=r.t6,Q=r.t.clone(),hF=new ex(1,0,0,-1,0,0); -hF.concat(Q);hF.concat(X);var hv=fU.NN(av),gY=new ep(av,V);for(var K=0;K=0;K--){var P=aX.order[K];if(P=="GrFl"||P=="SoFi")continue;if(D.add.vmsk&&P=="FrFX")continue; -var A=F[P],E=K>7||P=="FrFX";if(E!=w)continue;for(var n=0;nD.length)throw"e";if(d){X.sub=[];M+=12;var V=X.L+X.size; -while(MD.length)throw"e";if(d.sK=="RIFF"||d.sK=="LIST"&&(d.hB!="cmpr"&&d.hB!="stlt")){d.sub=[]; -M+=12;var V=d.L+d.size;while(MD.length)throw"e";if(d){X.sub=[];M+=12;var V=X.L+X.size; -while(M=0;K--)d8.rr(r[K],M,s,F)}else if(d=="obj "&&q.H&&q.H.path){B.Nt("Object "+s.N.length); -var P=M.GK[q.H.a88],A=M.eK[q.H.amD],E=B.getName(),n=P&&P.type!=0,_=n&&P.H!=null?P.H:[0,0,0];B.Jw|=16; -B.add.vstk=JSON.parse(JSON.stringify(aX.us.default));var l=B.add.vstk;l.strokeEnabled.v=!1;B.add.vmsk=new g.YL; -if(A&&A.acp!=1){l.strokeEnabled.v=!0;l.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter"; -l.strokeStyleLineWidth.v.val=A.lineWidth*F.qw();var b=A.color;l.strokeStyleContent.v.Clr.v=e.h.zQ({i:b[0]*255,q:b[1]*255,P:b[2]*255})}var y=q.H.path; -B.add.vmsk.g=e.O.L8(y,!1);e.A.VR(B.add.vmsk.g,u);go.KV(_,B,u,e.A._j(B.add.vmsk.g));l.fillEnabled.v=n; -B._T();B.M8(s)}else if(d=="obj "&&$){var p=q.H.a0p,k=q.H.ajJ,z="";B.add.TySh=fU.Zb(0,0);var S=u.qw(); -B.add.TySh.t.translate(u._u,u.eH);var Z=B.add.TySh.t6,j=$.H.aek;for(var K=0;K=K.data.length)throw"e";var D=0;while(K.data[K.L+D]!=0)D++; -var M=t.sV(K.data,K.L,D);K.L+=D+1;return M};d8.agq=function(D){if(D.Jz<600)return Math.PI*d8.nk(D)/1800; -return Math.PI*d8.Uk(D)/18e7};d8.a5_=function(D){if(D.Jz<1500)return d8.ya(D);else return d8.EF(D)/254e3}; -d8.ya=function(D){if(D.Jz<600)return d8.nk(D)/1e3;else return d8.Uk(D)/254e3};d8.ai6=function(D){if(D.Jz<600)return CRDParser.P9(D); -else return d8.Jv(D)};d8.ao6=function(D){if(D.Jz<600)return CRDParser.nk(D);else return d8.Uk(D)};d8.jn=function(D,M,s,F){var X=d8,d=X.a93,V=X.P9,$=X.Jv,w=X.ahn,q=X.nk,u=X.Uk,B=X.EF,r=X.ya,P=X.a5_,A=X.agq,E=X.ai6,n=X.ao6; -for(var _=0;_=1300);b.H.aaV=d8.WN(D);b.H.ajg={};var f=$(D);for(var K=0;K1300)D.L+=4;if(l>=1300){if($(D))D.L+=68;else D.L+=12}else{D.L+=20;if(l>=1e3)D.L+=8;if($(D))D.L+=8; -D.L+=8}}var f9=$(D);b.H.a0U={};for(var K=0;K=1300)hF+=4;D.L+=hF*Q;var hv=$(D);D.L+=28*hv;if(l>800){var bV=$(D); -D.L+=12*bV}b.H.Rf={};for(var K=0;K=1200)gS*=2; -D.L+=gS;bG.a3x=$(D);bG.ahr=$(D);if(gu>1){bG.adG=$(D);bG.afp=$(D);bG.a6d=$(D);bG.a0u=$(D);if(l>800)bG.akj=$(D)}if(gu>2){bG.ajU=$(D); -bG.a6s=$(D);bG.apU=$(D);bG.apQ=$(D);bG.anB=$(D)}b.H.Rf[dg]=bG}}else if(b.sK=="LIST")d8.jn(D,b.sub,s,F+1); -else if(b.sK=="txsm"){b.H={};if(l<600)throw"e";if(l<700)throw"e";if(l>=1600)throw"e";if(l>=1500)D.L+=37; -else D.L+=36;if($(D)){if(l<800)D.L+=32}if(l<800)D.L+=4;b.H.ae6=$(D);b.H.aek=[];D.L+=48;if(l>=800){if($(D)){D.L+=32; -if(l>=1300)D.L+=8}}if(l>=1500)D.L+=12;var gu=$(D),dc=1,bj=!1;if(!gu){if(l>=800)D.L+=4;if(l>800)D.L+=2; -if(l>=1400)D.L+=2;D.L+=24;if(l<800)D.L+=8;dc=$(D)}for(var m=0;m=1300&&gu)D.L++; -D.L++;var c=$(D),hO=[];for(K=0;K=800)eg=d(D);var bG={}; -if(aO&1){bG.anH=V(D);var iQ=V(D);if(iQ)bG.aku=iQ}if(aO&2)D.L+=4;if(aO&4)bG.ab9=r(D);if(aO&8)D.L+=4;if(aO&16)D.L+=4; -if(aO&32)D.L+=4;if(aO&64){bG.a3x=$(D);if(l>=1500)D.L+=48}if(aO&128){bG.ahr=$(D)}if(eg&8){if(l>=1300){var d5=$(D); -if(D.L+d5*2>=D.data.length){bj=!0;break}D.L+=d5*2}else D.L+=4}if(eg&32){var da=d(D);if(da)D.L+=52}if(gz==2)if(l>=1300)D.L+=48; -hO.push(bG)}if(bj){break}var c5=$(D);if(D.L+c5*4>D.data.length)break;var fs=[];for(K=0;K=1200)ds=w(D)&4294967295;else ds=$(D);fs[K]=ds>>16|ds&1}var gE=c5;if(l>=1200)gE=$(D);var af=d8.RU(D); -b.H.aek.push({a9n:iJ,text:af,Rf:hO})}}else if(b.sK=="font"){var cq=V(D),hr=V(D);D.L+=14;var eA=d8.RU(D); -b.H={id:cq,a2J:hr,name:eA}}else if(["IKEY","ICMT","pfrd","bcfg"].indexOf(b.sK)!=-1){}else if(b.sK=="flgs")b.H=$(D); -else if(b.sK=="bbox"){var is=r(D),a4=r(D),aZ=r(D),iC=r(D);b.H=new hk(is,a4,aZ-is,iC-a4)}else if(b.sK=="fild"){var cy=$(D),fT=0,hU; -if(l>=1300){D.L+=4;fT=V(D);D.L+=2}var bC=V(D);if(bC==0){}else if(bC==1){D.L+=l>=1300?13:2;hU=d8.MR(D)}else if(bC==2){D.L+=l>=1300?8:2; -var de=d(D),f2=0;if(l>=1300){D.L+=17;f2=q(D)}else if(l>=600){D.L+=19;f2=u(D)}else{D.L+=11;f2=q(D)}var bm=A(D),hA=.5+n(D),i8=.5+n(D)-.5; -if(l>=600)D.L+=2;var aV=E(D)&255,he=d(D)/100;D.L++;var ev=E(D)&65535;if(l>=1300)D.L+=3;var iO=[];for(var K=0; -K=1300){if(fT==158||l>=1600&&fT==150)D.L+=26;else D.L+=5}var c4=E(D)/100; -if(l>=1300)D.L+=3;iO.push([c4,cR])}hU={typ:de==1?"lin":"rad",crds:[hA-Math.cos(bm)/2,i8-Math.sin(bm)/2,hA,i8],grad:iO,mat:[1,0,0,1,0,0]}}else console.log("Unknown fill type",bC); -b.H={id:cy,type:bC,H:hU}}else if(b.sK=="outl"){var j0=$(D);if(l>=1300){var cG=0,h6=0;while(cG!=1){D.L+=h6; -cG=$(D);h6=$(D)}}var hq=V(D),gG=V(D),iB=V(D);if(l<1300&&l>=600)D.L+=2;var bl=r(D),eh=V(D)/100;if(l>=600)D.L+=2; -var gy=A(D);if(l>=1300)D.L+=46;else if(l>=600)D.L+=52;var hU=d8.MR(D,j0==270963208||j0==276198e3,j0); -b.H={id:j0,acp:hq,ap6:gG,a9V:iB,lineWidth:bl,color:hU}}else if(b.sK=="mcfg"){if(1300<=l)D.L+=12;else if(900<=l)D.L+=4; -else if(600<=l&&l<700)D.L+=28;var hy=0,fy=0;if(l<400)throw"e";else{hy=r(D);fy=r(D)}b.H={ajs:new eo(hy,fy)}}else if(b.sK=="loda"){var o=D.L,gf=E(D),c8=E(D),hw=E(D),eE=E(D),ei=E(D),ff=[],eP=[]; -D.L=o+hw;for(var K=0;K=0;K--)eP[K]=E(D);b.H={};for(var K=0; -K=1300)D.L+=8; -var bL=V(D);if(bL==8){var d3,aN,is,cX,dt,a4;if(l>=600)D.L+=6;if(l>=500){d3=B(D);aN=B(D);is=B(D)/(l<600?1e3:254e3); -cX=B(D);dt=B(D);a4=B(D)/(l<600?1e3:254e3)}else throw"e";b.B7=new ex(d3,cX,aN,dt,is,a4)}else console.log(bL)}}else if(!1){console.log(b); -var aj=Math.min(b.size,32);console.log(t.SS(data,b.L,aj));console.log(t.afQ(data,b.L,aj))}}};d8.WN=function(D,M){var s=d8.Jv,F={},X=s(D); -for(var K=0;K=500){V=F(D);if(V==1&&d>=1300)V=25;if(V==25||V==30){var w=0;if(V==30){V=25;w=30}else{w=F(D);D.L+=4}var q=F(D),u=F(D)}else if(V==14)throw"e"; -else{D.L+=6;$=X(D)}}else throw"e";var B=[];if(V==2||V==9||V==17){var r=[$>>>0&255,$>>>8&255,$>>>16&255,$>>>24&255]; -if(V==2)for(var K=0;K<4;K++)r[K]=Math.round(255*r[K]/100);for(var K=0;K<4;K++)r[K]/=255;B=UDOC.C.cmykToRgb(r)}else if(V==1||V==5){B=[$>>>0&255,$>>>8&255,$>>>16&255]; -for(var K=0;K<3;K++)B[K]=B[K]/255}else console.log("Unknown color model "+V,$,$.toString(16));return B}; -var fq=function(){var D,M,s=new ArrayBuffer(4),F=new Uint8Array(s),X=new Uint32Array(s),d=new Float32Array(s); -function V(r,P){for(var A=0;A>>0}function w(r,P,A,E,n){D=r;M=P;var _=E[0]=="mesg",l=E[2],b={},y=1,p=_?1e9:l.length; -while(y<=p){var k=y;if(_){k=$();if(k==0)break}var S=V(l,k),Z=S[2],z=S[1]==1,j=z?$():1,R=new Array(j); -if(Z==3){if(!z)throw"e";R=D.slice(M,M+j);M+=j}else for(var K=0;K>>1):m>>>1}else if(Z==7)a=$();else if(Z==9){if(D[M]==0){a=0; -M++}else{F[0]=D[M];F[1]=D[M+1];F[2]=D[M+2];F[3]=D[M+3];var G=X[0];X[0]=G<<23|G>>>9;a=d[0];M+=4}}else if(Z==11){var L=q(D,M); -a=L[0];M+=L[1]+1}else throw Z}else{var H=A[Z>>>1];if(H[0]=="enum"){var o=D[M++];if(o>127)throw"e";a=H[2][o]}else{var c=w(D,M,A,H,n+1); -a=c[0];M=c[1]}}R[K]=a}b[S[3]]=z?R:R[0];y++}return[b,M]}function q(r,P){var A=P;while(r[A]!=0)A++;return[t.XM(r,P,A-P),A-P]}function u(r,P){var A=P; -while(r[A]!=0)A++;for(var K=P;K127)throw"e";return t.sV(r,P,A-P)}function B(r){D=r;M=1; -var P=[];while(M2)throw"e";var l=$(),b=[]; -for(var K=0;KF?1:-1};gI.jQ=function(D){for(var K=1;K1.999*Math.PI)B=e.A.R5.Ip(0,0,w,q,0);else B=e.A.R5.aco(w/2,q/2,q/2,A,E);if(n!=0&&n!=1){var _=g.YL.ig(B).slice(3); -_.reverse();for(var K=0;K<_.length;K++){var l=_[K],b=l.j9;l.j9=l.Gd;l.Gd=b}var y=new ex;y.translate(-w/2,-q/2); -y.scale(n,n);y.translate(w/2,q/2);e.A.VR(_,y);B=B.concat(_);B[2].length*=2}}else if(X=="LINE"){B=e.A.R5.Rect(0,0,w,q,0); -B.pop();B.pop();B[2].length=2}else if(X=="REGULAR_POLYGON"){B=e.A.R5.ER(.5,.5,.5,Math.PI/2,D.count,0); -var p=new ex;p.scale(w,q);e.A.VR(B,p)}else if(X=="BOOLEAN_OPERATION"){B=[{type:6},{type:8,all:0}];var k=D.children,S=["XOR","UNION","SUBTRACT","INTERSECT"].indexOf(D.booleanOperation); -if(S==-1)throw D;if(k==null)k=[];for(var K=0;K>>24&255)/255,(P>>>16&255)/255,(P>>>8&255)/255,(P>>>0&255)/255]}function X(P,A){var E=A&4278190080|(A&255)<<16|(A>>>8&255)<<8|A>>>16&255; -new Uint32Array(P.buffer).fill(E)}function d(P,A){var E=P.TSZ,n=P.WPX,_=P.HPX,l=P.TIL,b=new hk(0,0,n,_),y=e.U(n*_*4),p=0; -for(var k=0;k<_;k+=E)for(var S=0;S>>24!=0){var av=e.h.zQ({i:h>>>16&255,q:h>>>8&255,P:h>>>0&255});C.add.artb.Clr={t:"Objc",v:av}; -J=4}C.add.artb.artboardBackgroundType.v=J;C.Nt(o.PGN?o.PGN:"Page "+(c+1));C.add.lsct=aQ.IN;C.lQ="pass"; -C.Jw=24}}function $(P,A,E){var n=P[A];return n instanceof Array?n[E]:n}function w(P,A,E,n,_){var l=A.lX(); -if(P.VIS!=null)l.wW(P.VIS);if(P.VIF!=null)l.wW(P.VIF.VIS);if(P.OPA!=null)l.opacity=Math.round(255*P.OPA/1e3); -l.lQ=P.CLL||E=="GRP"?"pass":"norm";if(P.BLD!=null){var b=P.BLD,y={"0":"norm","2":"mul ","4":"over","5":"scrn","7":"diss","9":"dark","10":"lite","37":"idiv","30":"norm","39":"lbrn","41":"vLit"}[b+""]; -if(y==null)console.log(P.OBN,b);else l.lQ=y;if(b==30)l.opacity>>>=1}if(P.CLL){l.Nt(P.LNM);A.N.push(A.P5()); -var p=P.CLL.CEL.ELM;for(var K=p.length-1;K>=0;K--)w(p[K][1],A,p[K][0],n,_);l.add.lsct=P.DIS?aQ.X4:aQ.IN; -l.Jw|=24}else if(E=="GRP"){var k=l.add.lmfx=u(P.EFL),S;A.N.push(A.P5());var p=P.ELM;if(P.MNA){S=p[0][1]; -p=p.slice(1)}l.Nt("Group: "+p.length+" objects");for(var K=p.length-1;K>=0;K--)w(p[K][1],A,p[K][0],n,_); -if(S){if(P.MRX){var Z=d(S,n),z=l.C=new g.qm;z.rect=Z[1].clone();z.rect.x=S.XLC;z.rect.y=S.YLC+_.eH;z.channel=e.U(z.rect.Y()); -e.FK(Z[0],z.channel,0);e.Iy(z.channel)}else{q(l,S,_);l.M8(A)}}l.add.lsct=aQ.IN;l.Jw|=24}else if(E=="IMG"){l.Nt(P.OBN?P.OBN:"Bitmap"); -var Z=d(P,n);l.rect=Z[1].clone();l.rect.x=P.XLC;l.rect.y=P.YLC+_.eH;l.buffer=Z[0]}else if(E=="TXT"){var j=P.TFS,R=j.TRN instanceof Array?j.TRN.length:1,L=""; -l.add.lnsr="rend";l.add.TySh=fU.Zb(0,0);l.add.TySh.JX=new hk(0,0,100,100);var a=new ex(1,0,0,1,P.LFT,P.TOP); -if(P.MTX){var m=P.MTX,z=new ex(m.M00,m.M01,m.M10,m.M11,m.M20,m.M21);a.concat(z)}a.concat(_);l.add.TySh.t=a; -var G=l.add.TySh.t6;for(var K=0;K6e3)hF*=.5;z.d=Math.round(z.d*hF);z.w=Math.round(z.w*hF);z.Gs=Math.round(72*hF); -z.buffer=e.U(z.d*z.w*4);for(var K=0;K<6;K++)i[K]*=hF;for(var hv=0;hv>>3)]>>>7-(de&7)&1); -else throw cy}else if(aZ==3)for(var K=0;K",0,0); -Z.N.push(aV);aV.lQ=f;aV.opacity=Math.round(255*i);aV.wW(gu==0);var j=new ex;j.scale(1,-1);j.concat($(Q.slice(1))); -j.concat($(c.ctm));var he=aV.rect.clone();he.x=he.y=0;var hO=e.O.l5(he).I;e.O.t(hO,j,hO);aV.add.SoLd.Trnf=T.m.hp(hO); -aV.add.SoLd.nonAffineTransform=T.m.hp(hO);aV.CQ(Z,!1)}else if(gz=="Ln"){G=X(dc)}else if(gz=="u"||gz=="q"||gz=="Lb"){dg.push(bV==1); -bG.push((gz=="Lb"?1-eg[0]:gu)==0);if(I)continue;Z.N.push(Z.P5())}else if(gz=="U"||gz=="Q"||gz=="LB"){if(dg.length==0||bG.length==0)throw gS; -var ev=dg.pop(),iO=bG.pop();if(gz=="LB")ev=hv==1;if(I)continue;var aV=Z.lX();aV.Nt((gz=="U"?"":"")+H); -if(gz=="LB")aV.Nt(G);if(gz=="Q"&&av.length!=0){var cR=av.pop(),c4=UDOC.G.isBox(cR,[0,0,Z.d,Z.w]);if(!c4)q(aV,cR,Z)}aV.add.lsct=ev?aQ.X4:aQ.IN; -aV.lQ="pass";aV.Jw=24;aV.wW(iO);Z.N.push(aV)}else if(gz=="Bb"||gz=="Bh"||gz=="BB"){}else if(gz=="Bg"){var j0=R.Setup.Gradient[X(dc)]; -h="GdFl";N=F(j0.IL,j0.amw)}else if(gz=="Bm"||gz=="Xm"){var cG=N.Type.v.GrdT;if(cG=="Lnr"&&gz!="Xm"||cG=="Rdl"&&gz!="Bm")continue; -var h6=e.O.Pe(c.pth.crds),hq=new eo(0,0),gG=new eo(1,0),iB=new ex;iB.concat($(eg));iB.concat($(c.ctm)); -hq=iB.j1(hq);gG=iB.j1(gG);if(cG=="Lnr"){hq.x=(hq.x+gG.x)/2;hq.y=(hq.y+gG.y)/2}e.h.bR(hq,gG,h6,N)}else if(gz=="p"){var bl=X(dc),eh=R.Setup.Pattern[bl]; -if(eh.raw==null){var h6=eh.fz,cq=Math.round(h6[2]-h6[0]),hr=Math.round(h6[3]-h6[1]),bj=new iT;bj.d=cq; -bj.w=hr;bj.buffer=e.U(cq*hr*4);M(bj,eh.lK,[1,0,0,-1,-eh.fz[0],hr+eh.fz[1]],R,a,m);eh.raw=new Uint8Array(bo.GD("PSD").qc(bj))}var gy=dc.slice(dc.indexOf(")")+2),hy=gy.slice(0,gy.indexOf("[")-1).split(" ").map(parseFloat),fy=gy.slice(gy.indexOf("[")+1,gy.indexOf("]")).split(" ").map(parseFloat); -h="patt";N=[bl,hy,fy]}else if(gz=="J"||gz=="j"||gz=="w"||gz=="M"||gz=="d"){for(var K=1;K",0,0);var he=aV.rect.clone();he.x=he.y=0;var hO=e.O.l5(he).I,fy=$(N[2]);fy._u=fy.eH=0; -e.O.t(hO,fy,hO);aV.add.SoLd.Trnf=T.m.hp(hO);aV.add.SoLd.nonAffineTransform=T.m.hp(hO);aV.CQ(Z,!1)}else{aV=Z.lX(); -aV.Jw|=16;var ic=aV.add.vstk=JSON.parse(JSON.stringify(aX.us.default));ic.strokeEnabled.v=ic.fillEnabled.v=!1; -if(h=="SoCo"){aV.add.SoCo=JSON.parse(aX.ft[aX.order.indexOf("SoFi")]);var aT=aV.add.SoCo.Clr.v;d(aT,N)}if(h=="GdFl")aV.add.GdFl=N; -if(aO=="f"||aO=="b"||gz=="*U"&&J&1)ic.fillEnabled.v=!0;if(aO=="s"||aO=="b"||gz=="*U"&&J&2)go.wv(ic,c,1,go.ZL(C))}aV.Nt("<"+(gz=="*U"?"Compound ":"")+"Path>"+H); -aV.lQ=f;aV.opacity=Math.round(255*i);aV.wW(gu==0);q(aV,c.pth,Z);Z.N.push(aV);o.newPath(c)}else if(gz==","&&hO[1]=="/StoryIndex"){var cU=R.Setup.TextDocument,bL=null; -if(!(cU instanceof Array))cU=R.Setup.TextDocument=r(cU,m);var cr=cU[0],ac=cU[2];if(cr._DocumentResources)cr=cU[0]=cc.a5j(cr); -else cc.$0(cr);var aV=Z.lX();aV.add.lnsr="rend";aV.add.TySh=fU.Zb(0,0);var h3=cD.ahG(cr),cm=aV.add.TySh.t6=h3[eg[0]]; -if(cm==null){console.log("text not found");continue}aV.Nt(fU.NN(cm).slice(0,50));aV.lQ=f;aV.opacity=Math.round(255*i); -aV.wW(gu==0);var fo=cr._1._1[eg[0]]._1._0[0]._0;fo=parseInt(fo.slice(1));var eH=cr._0._8._0,hC=eH[fo]._0; -if(hC._0)bL=V(hC._0);else if(hC._1)bL=V(hC._1._0);else bL=V(hC._2._2).slice(3);if(bL.length!=2){var h6=e.O.Pe(bL); -bL=[h6.x,h6.y];if(h6.Y()!=0){fU.SE(cm,1);fU.Kj(cm,[0,0,Math.round(h6.d),Math.round(h6.w)])}}var d3=new ex,aN=new ex(1,0,0,1,bL[0],bL[1]),cX=new ex(1,0,0,1,-ac[0],-ac[1]),dt=$(c.ctm),aj=new ex; -if(hC._2&&hC._2._2){var j=V(hC._2._2);aj=new ex(j[0],j[1],j[2],j[3],j[4],j[5])}d3.concat(aN);d3.concat(aj); -d3.concat(cX);d3.scale(1,-1);d3.concat(dt);aV.add.TySh.t=d3;Z.N.push(aV);Z.o_=!0}}}function s(Z,z,j){var R=UDOC.G,a=[],m=[],G="/DeviceGray",L,H=[],o=1,da=0,c5=0,fs=0; -for(var c=0;c");var d5=iQ.add.vstk=JSON.parse(JSON.stringify(aX.us.default));d5.strokeEnabled.v=!1; -for(var K=0;Kfs){fs=eA;da=K;c5=hO}}var is=m[da],a4=m[c5],aZ=iQ.add.GdFl=F(0,[[0,is[0]],[1,a4[0]]]),iC=$(z.ctm),cy=iC.j1(new eo(is[1],is[2])),fT=iC.j1(new eo(a4[1],a4[2])),bC=e.O.Pe(z.pth.crds); -cy.x=(cy.x+fT.x)/2;cy.y=(cy.y+fT.y)/2;e.h.bR(cy,fT,bC,aZ);q(iQ,z.pth,j);j.N.push(iQ);R.newPath(z)}function F(Z,z){var j=JSON.parse(aX.ft[aX.order.indexOf("GrFl")]),R=j.Grad.v; -R.Intr.v=0;j.Type.v.GrdT=["Lnr","Rdl"][Z];e.h.xz(z,R);return j}function X(Z){return Z.slice(Z.indexOf("(")+1,Z.indexOf(")"))}function d(Z,z){Z.Rd.v=z[0]*255; -Z.Grn.v=z[1]*255;Z.Bl.v=z[2]*255}function V(Z){var z=[];for(var K=0;KH)L=H;j.push(L,H);a-=H-L}}j.push(z._end);var o=new Uint8Array(a); -for(var K=0;K>",G),H=t.sV(R,G+2,L-G-2).split("/"),o=[];for(var K=0;K")){var o=t.wO(a.join("")),c=FromPS.F.ASCII85Decode({off:0,buff:o}); -z.push(c);j.push(!1);top++;a=null}}else if(m!=null){if(L=="X+"){z.push(m);j.push(!1);top++;m=null}else m.push(L)}else if(L=="/Binary : /ASCII85Decode ,"){a=[]}else if(L=="X=")m=[]; -else if(L=="/SVGFilter :"||L=="; /Def ;")continue;else if(L.startsWith("/")&&L[1].toUpperCase()!=L[1].toLowerCase()){if(L.startsWith("/XMLUID")){var f=p(L); -if(j[top])throw"e";z[top][f[4]]=f[2]}if(L.startsWith("/GObjRef")){var f=p(L);if(!j[top])throw"e";z[top].push(f[2])}else{var i=L.startsWith("/Array")||L.startsWith("/Document"); -z.push(i?[]:{});j.push(i);top++}}else if(L.endsWith(",")){var h,N,f=p(L);f.pop();if(f[0]==";"||f.length==1){N=z.pop(); -j.pop();top--;h=j[top]?null:f.pop()}else{h=j[top]?null:f.pop();var C=f.pop(),I=f[0];if(C=="/Int")N=parseInt(I); -else if(C=="/Real")N=parseFloat(I);else if(C=="/Bool")N=I=="1";else if(C=="/String"||C=="/UnicodeString")N=f.join(""); -else if(C=="/RealMatrix"||C=="/RealPoint"||C=="/RealPointRelToROrigin")N=f.map(parseFloat);else throw C}if(j[top])z[top].push(N); -else z[top][h]=N}else if(L==";"){}else if(L==""){}else{if(L.indexOf("/RealPoint")!=-1){}else if(L.startsWith("(")&&L.endsWith(")")){}else if(L.endsWith("/RealMatrix")){}else throw L; -R=R?R+L:L}}return z}function p(Z){var z=0,j=[];while(z>>16)+1)};bo.Jy={a1F:function(D,M){fetch(D).then(function(s){return s.arrayBuffer()}).then(function(s){var F=new Uint8Array(s),X=0,w=""; -if(M){X=F.length;var d={level:9},V=pako.deflateRaw(F,d),$=UZIP.deflateRaw(F,d);console.log(X,V.length,$.length); -F=V.length<$.length?V:$}for(var K=0;K")!=-1)F="icc";else F="svg"}if(s(M,[60,115,118,103],X))F="svg"; -if(s(M,[60,33,100,111],X)||s(M,[60,33,68,79],X)){if(t.s6(M," \t\t \t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t",V=" "+d+""; -if(D==1)V+=""+""+""; -V+=""+""+""; -var $=new Uint8Array(V.length);t.lh(V,$,0);var w="data:image/svg+xml;base64,"+bo.Co($.buffer);return{to:w,S:new hk(0,0,128,128),ha:new eo(64,64)}}; -bo.Co=function(D){var M=new Uint8Array(D),s="";for(var K=0;K>3)]; -S=S>>7-(K&7)&1;var Z=y*u+k<<2;A[Z]=A[Z+1]=A[Z+2]=(1-S)*255;A[Z+3]=255}}if(F=="P5")for(var K=0;K15e7||w==0||w==2){var q=new PDFJS.JpegImage;q.parse(D);var u=q.getData({width:X,height:d,forceRGB:!0,isSourcePDF:s}),$=e.U(V*4); -for(var K=0;K1&&y<20)_=e.raw.Qj(y,X,d)}if(F.xmp){n=du.XT(F.xmp,n)}var p=M[237],k=[],S=[]; -if(p){var Z=new Uint8Array(65536),z=0,j=0;for(var K=0;KZ.length){var L=new Uint8Array(Z.length*2); -L.set(Z);Z=L}var H=new Uint8Array(D.buffer,j,G);Z.set(H,z);z+=G}j=0;D=Z;while(j>>1)*X+ds>>>1),af=gu[gE],cq=gu[gE+(V>>>2)]; -hF[B]=hF[B+1]=hF[B+2]=af;hF[B+3]=255;c5[B]=c5[B+1]=c5[B+2]=cq;c5[B+3]=255}gY.push({Bi:new hk(0,0,X,d),data:hF.buffer},{Bi:new hk(0,0,X,d),data:c5.buffer})}else if(dg=="edof"){var y=gu[8+7]; -console.log(y.toString(16));var j=8+16,hr=t.Ta(gu,j),eA=t.Ta(gu,j+2),V=hr*eA;j+=4;j+=32+16;var is=e.U(V*4); -for(var K=0;K1){var iC=gY[0].Bi; -gY[0].xn="Main";for(var K=1;K>>3)]>>>7-(b&7)&1,p=y*255; -n[u]=p;n[u+1]=p;n[u+2]=p;n[u+3]=255}}return[{Bi:new hk(0,0,V,d),data:n.buffer}]}else{var P=new PDFJS.JpxImage; -P.parse(D);var V=P.width,d=P.height,k=P.tiles,S=P.componentsCount,Z=new Uint8Array(V*d*4),z=new hk(0,0,V,d); -for(var P=0;P>>1,P.y>>>1,P.width-1,P.height-1,D[K][1]]; -for(var E=0;E<5;E++)V($,w+3*E,A[E]);w+=15;$.jB(w,1);$.data[w]=1-r.blend<<1|r.dispose;w++;var n=new Uint8Array(bo.d0(r.img.buffer,P.width,P.height,"webp",1)),_=b$.Be(n.buffer).sub,l=t.sV(n,12,4); -if(l!="VP8L"&&l!="VP8 "&&l!="VP8X")throw"e";var b=l=="VP8 "?0:l=="VP8L"?12:30,y=n.length-b;$.jB(w,y); -for(var E=0;E>>14&(1<<14)-1)+1}else throw"e"; -var P=[s(F,D,{L:0,size:M.length},u,B)];return P}var A=q.L,u=1+(t.HH(M,A+4)&16777215),B=1+(t.HH(M,A+7)&16777215),E=[],n=new hk(0,0,u,B),_=e.U(u*B*4); -for(var K=0;K>>1==0)e.z.cz("norm",Z,p,_,n,p,1);else e.eJ(Z,p,_,n);E.push({xn:"_a_"+E.length+","+k,Bi:n.clone(),data:_.buffer.slice(0)}); -if((z&1)==1){e.BK(Z,0);e.eJ(Z,p,_,n)}}return E};bo.II.a2D=function(D,M,s,F,X){var d=bo.II.exp,V=d.memory,$=5e6+2*s.size+F*X*10; -bo.ON(d,$);var w=new Uint8Array(V.buffer),q=d.malloc(s.size);w.set(new Uint8Array(M,s.L,s.size),q);var u=d.malloc(8),B=d.WebPDecodeARGB(q,s.size,u,u+4),r=t.HH(w,u),P=t.HH(w,u+4),A=r*P*4,E=e.U(A); -for(var K=0;K256){P=null; -break}}}if(P){n=1;while(1<>>16,j=P[K]>>>8&255,R=P[K]&255;S[Z]=z;S[Z+1]=j;S[Z+2]=R}k+=p}y.jB(k,b*q); -if(n==24)for(var a=0;a>>1)]|=H<<4-(G&1)*4}}else if(n==1)for(var a=0; -a>>3)]|=H<<7-(G&7)}}k+=b*q+2; -return y.data.slice(0,k).buffer}function M($){$=new Uint8Array($);if(t.HH($,0)==40)return[s($.buffer,0)]; -var w=0,q=t.sV($,w,2);w+=2;if(q!="BM"){alert("Unsupported BMP format: "+q);return}var u=t.HH($,w);w+=4; -w+=4;var B=t.HH($,w);w+=4;return[s($.buffer,w,B)]}function s($,w,q){$=new Uint8Array($);var u=t.HH($,w),B=d($,w+4); -if(B.KB!=1)alert("unsupported number of color planes: "+B.KB);if(B.HO!=0&&B.HO!=1&&B.HO!=2&&B.HO!=3){alert("Unsupported BMP compression: "+B.HO); -return}w+=u;var r=w,P=$;if(q==null)q=w;if(B.HO==1||B.HO==2){var A=X($,q,B);B.HP=8;$=A;q=0}var E=4*Math.floor((B.HP*B.wS+31)/32),n=B.wS,_=Math.abs(B.WQ),l=new Uint8Array(n*_*4); -l.fill(255);if(B.HP==32)for(var b=0;b<_;b++){var y=q+(_-1-b)*E;for(var p=0;p>>11)*(255/31); -l[k+1]=(S>>>5&63)*(255/63);l[k+2]=(S&31)*(255/31)}}else if(B.HP==8)for(var b=0;b<_;b++){var y=q+(_-1-b)*E; -for(var p=0;p>1)];Z=Z>>4-4*(p&1);Z=Z&15; -l[k]=P[r+4*Z+2];l[k+1]=P[r+4*Z+1];l[k+2]=P[r+4*Z+0]}}else if(B.HP==1)for(var b=0;b<_;b++){var y=q+(_-1-b)*E; -for(var p=0;p>3)];z=z>>7-(p&7);z=z&1;l[k]=P[r+4*z+2];l[k+1]=P[r+4*z+1]; -l[k+2]=P[r+4*z+0]}}else throw"Unknown bit depth "+B.HP;if(B.WQ<0){var j=new Uint32Array(l.buffer),R=_>>>1; -for(var b=0;b>>4-((K&1)<<2)&15}function X($,w,q){var u=q.wS,B=Math.abs(q.WQ),r=new Uint8Array(u*B),P=0,A=0,K=0; -while(A0){if(q.HP==4)for(K=0;K>>1)],K)}l=Math.ceil(n/2)}else{for(K=0; -K127?255:0;if(q==0)w[K]=w[K+1]=w[K+2]=0}X.push(w.buffer); -d.push(D[$][1])}var u=Math.round(2+254*F[0]/100),B=UPNG.encode.compress(X,M,s,u,[!0,!1,!1,8,!1]),r=B.plte,P=new Uint8Array(4),A=new Uint32Array(P.buffer); -for(var K=0;K256||s>256){alert("Maximum ICO size is 256x256 px. Will be cropped.",4e3); -var X=Math.min(M,256),d=Math.min(s,256),V=new hk(0,0,X,d),$=e.U(V.Y()*4),w=new hk(0,0,M,s),q=new Uint8Array(D[0][0]); -e.eJ(q,w,$,V);D[0][0]=$.buffer;M=X;s=d}var u=new gH,B=0,r=F&&F[0]==!0;t.FZ(u,B,0);B+=2;t.FZ(u,B,r?2:1); -B+=2;t.FZ(u,B,1);B+=2;var P=new Uint8Array(bo.GD("png").qc(D,M,s));u.jB(B,16);u.data[B]=M==256?0:M;B++; -u.data[B]=s==256?0:s;B++;B+=2;t.FZ(u,B,r?Math.round(M/2):1);B+=2;t.FZ(u,B,r?Math.round(s/2):32);B+=2; -t.KA(u,B,P.length);B+=4;t.KA(u,B,6+16);B+=4;u.jB(B,P.length);for(var K=0;KP)P=l;A+=l;E++}}r=1/256*65535/(.5*P+.5*(2*A/E))}var b=[]; -for(var K=0;K3){A=t.kE(s,u);u+=4}w.opacity=Math.round(255*s[u]/100);u++;var E=s[u]; -u++;w.wW(E!=0);w.lQ="norm,lddg,norm,dark,diff,norm,hLit,norm,norm,lite,mul ,over,scrn,fsub".split(",")[s[u]]; -u++;var n=s[u];u++;if(n)w.add.lspf=1<<31;if(F>3){var _=t.zN(s,u);u+=2;if(_!=0){var l=JSON.parse(t.XM(s,u,_)); -u+=_;var b=l.text,y=l.textSettings,p=y.font,k=y.size,S=y.padding,Z=parseInt(y.color.slice(1),16);w.add.lnsr="rend"; -w.add.TySh=fU.Zb(0,0);w.add.TySh.JX=new hk(0,0,100,100);var z=w.add.TySh.t=new ex,j=w.rect.d/2,R=w.rect.w/2; -z.translate(-j,-R);z.rotate(-A*Math.PI/180);z.translate(j,R);z.translate(w.rect.x+S,w.rect.y+S);var a=w.add.TySh.t6; -fU.SE(a,1);fU.Kj(a,[0,0,w.rect.d-S*2,w.rect.w]);fU.Dq(a,0,b);var m=fU.RR(a,0,1);m.aO.FontSize=k;m.aO.FillColor={Type:1,Values:[1,(Z>>>16&255)/255,(Z>>>8&255)/255,(Z>>>0&255)/255]}; -if(y.bold)p+="-Bold";fU.Xd(m,p);m.om.Justification=["left","right","center"].indexOf(y.align);fU.bZ(a,0,b.length,m)}}var G=t.s(s,u); -u+=4;if(G!=w.rect.Y()*4){for(var K=w.rect.d;K>w.rect.d/2;K--){var L=G/(K*4);if(L==Math.round(L)){w.rect.d=K; -w.rect.w=L;break}}}w.buffer=e.U(w.rect.Y()*4);if(F>3){H=0;o=1;f=2;i=3}for(var K=0;K3){d+=q; -continue}var N=s[u];u++;var C=t.zN(s,u);u+=2;if(h!=0){w.C=new g.qm;w.C.rect=w.rect.clone();w.C.channel=e.U(w.rect.Y()); -for(var K=0;K>>2]=s[u+K+1];u+=h}if(N!=0){var I=JSON.parse(aX.default);w.add.lmfx=I; -for(var K=0;K>>4<<1,S=u+B,Z=e.U(k*$*S),a,m,G;iM.q8(F,X,b.size,Z,0,Z.length); -var z=u-2,j=(1<>>3]>>>7-(o&7)&1;L|=c<>>u,L=L&(1<>>z!=0){var h=L>>>z,N=(L&j)*R;if(h==1)G=N;else if(h==2)a=N;else if(h==3)m=N}else{var N=P+L*3; -a=F[N+0];m=F[N+1];G=F[N+2]}}else{a=L>>>0&255;m=L>>>8&255;G=L>>>16&255}d[i+0]=a;d[i+1]=m;d[i+2]=G;d[i+3]=255}}}return[{Bi:new hk(0,0,V,$),data:d.buffer}]}; -bo.RP={};bo.RP.r9=!1;bo.RP.qc=function(D,M,s,F){var X=D[0][4],d=new Uint8Array(D[0][0]),V=2,$=X?!0:!1,w=$?4:3,q=new Uint8Array(M*s*w); -for(var u=0;u>>4,n=t.sV(M,18,F),_=e.U(B*r*4),s=18+F+($*w>>>3),l=new Uint8Array(M.buffer,s); -if(d>3){var b=0,y=M,p=new Uint8Array(B*r*P>>>3),k=s,S=0,Z=M.length,z=P>>>3;while(S>>3;var R=new Uint8Array(4),a=bo.RP.ajy; -for(var m=0;m>>3; -if(d==1){var N=0;if(P==8)N=l[h];else throw"e";a(M,18+F+V+(N*w>>>3),w,R);o=R[0];c=R[1];f=R[2];i=R[3]}else if(d==2){a(l,h,P,R); -o=R[0];c=R[1];f=R[2];i=R[3]}else if(d==3){if(P==8)o=c=f=l[h];else throw"e"}var C=H*4;_[C]=o;_[C+1]=c; -_[C+2]=f;_[C+3]=i}var R={Bi:new hk(0,0,B,r),data:_.buffer,xn:n};if(e.J7(_)){var I=e.U(B*r);e.FK(_,I,3); -e.BK(_,4278190080,16777215);R.lk=[I]}return[R]};bo.RP.ajy=function(D,M,s,F){var X,d,V,$=255;if(s==24||s==32){V=D[M]; -d=D[M+1];X=D[M+2];if(s==32)$=D[M+3]}else if(s==16){var w=D[M+1]<<8|D[M+0];X=w>>>10&31;d=w>>>5&31;V=w>>>0&31; -X=Math.round(X*(255/31));d=Math.round(d*(255/31));V=Math.round(V*(255/31))}else throw"e";F[0]=X;F[1]=d; -F[2]=V;F[3]=$};bo.a01=function(){var D,M=[],s=!1;function F(V,$,w,q){D=w;M.push(V,q);X()}function X(){if(s||M.length==0)return; -s=!0;bo.apf(M.shift(),"image/avif",d)}function d(V){D(null,[V],M.shift());s=!1;X()}return{r9:!1,sI:!0,QK:F}}(); -bo.a7o=function(){var D,M=[],s=!1,F,X,d,V,$,w;function q(P,A,E,n){D=E;M.push(P,n);u()}function u(){if(s||M.length==0)return; -s=!0;F=document.createElement("canvas");X=F.getContext("2d");d=document.createElement("video");var P="data:"+"video/mp4"+";base64,"+bo.Co(M.shift()); -d.src=P;d.muted=!0;d.currentTime=0;d.addEventListener("canplay",B,!1);d.addEventListener("timeupdate",r,!1)}function B(P){d.removeEventListener("canplay",B); -V=F.width=d.videoWidth;$=F.height=d.videoHeight;w=[];d.play()}function r(P){var A=10;X.drawImage(d,0,0); -w.push({xn:"_a_"+w.length+","+Math.round(1e3/A),Bi:new hk(0,0,V,$),data:X.getImageData(0,0,V,$).data.buffer}); -var E=d.currentTime+1/A;if(E0)q.push(s+P);s+=P+B}var A=new DOMParser,E=A.parseFromString(w,"image/svg+xml").firstChild.firstChild,n=[]; -bo.EN.O_(E,M,q,n);return n};bo.EN.O_=function(D,M,s,F){var X=D.firstChild.firstChild;if(X.tagName=="Image"){var d=X.getElementsByTagName("ImageDescription")[0],V=d.children[0].children,$=d.children[1].children,w=s.shift(),q=[]; -for(var K=0;K<$.length;K++)q.push(parseInt($[K].getAttribute("NumberOfElements")));while(q.length>3)q[2]*=q.pop(); -var u=V.length,B=q[0],r=q[1],P=q[2],A=parseInt($[0].getAttribute("BytesInc"));for(var E=0;E>>2);else throw A; -if(_!=3)e.Te(l,n,_);if(u==1){e.Te(l,n,1);e.Te(l,n,2)}w+=B*r*A}F.push({Bi:new hk(0,0,B,r),data:n.buffer})}}else{var y=D.children,p=0; -while(p>>2); -for(var K=0;KB)B=_}var l=e.U(w*4),b=1/B;for(var y=0;y<$;y++)for(var p=0;p>>7)}else if(S==305){var z=Math.round(Math.sqrt(Z)),j=[]; -for(var R=0;R>>3; -gY[Y]|=gl>>>16;gY[Y+1]|=gl>>>8;gY[Y+2]|=gl}var C=P*8/(_*l);if(C==16)for(var K=0;K>>12|(J&4095)<<12; -H[K]=J>>>16&255;H[K+1]=J>>>8&255;H[K+2]=J&255}if(L)H=bo.XP.agO(H,_,l);var av=L?2:1;_*=av;n.t256=[_]; -n.t257=[l];n.t258=[o];n.t50719=[y[1],y[0]*av];n.t50720=[y[3],y[2]*av];n.width=_;n.height=l;n.data=new Uint8Array(H.buffer); -return[n]};bo.XP.agO=function(D,M,s){D=new Uint16Array(D.buffer);var F=new Uint16Array(M*s*2);for(var X=0; -X>>1)+d&1)==0){F[$]=w; -F[$+2*M+1]=D[V+1]}else{F[$]=D[V-1];F[$+2*M+1]=w}}return F};bo.Mb={};bo.Mb.YA=!0;bo.Mb.qc=function(D,M,s,F){var X=new Uint8Array(D[0][0]),d=M*s,V=[1,3,4][F[0]],$=8+8*F[1],w=F[2]; -if(V==1){var q=new Uint8Array(M*s);e.FK(X,q,0);X=q}if(V==3){var q=new Uint8Array(M*s*3);for(var K=0; -K>>8;q[K*2+1-w]=P&255}X=q}return X.buffer}; -bo.Ld={};bo.Ld.QK=function(D,M){function s(w){return~~(.5+e.Oe(Math.max(0,Math.min(1,w)))*255)}var F=EXRLoader.parse(D),X=F.width,d=F.height,V=e.U(X*d*4); -for(var $=0;$>>31==1){_=_&16777215}if(K>>31==1){l=l&268435455;y=X(V,$,$+l,p,u)}else{var k=M(V,$+l),S=M(V,$+l+4),Z=M(V,$+l+8),z=M(V,$+l+12); -if(z!=0)throw"e";if(ku[0]+u[1])throw"e";var j=u[2]+k-u[0];y=V.slice(j,j+S);var R=bo.H8(y.buffer); -if(R&&["bmp","png","ico"].indexOf(R)!=-1){var a=bo.GD(R);if(!a.r9){var m=null;try{m=a.QK(y.buffer)}catch(dY){}if(m){m[0].xn=p[1]; -F.push(m[0])}}}else if(R)console.log(R)}n[b]=y;w+=8}return n}function d(V){F=[];var $=new Uint8Array(V),w=0,q=D($,w); -w+=2;w+=58;var u=M($,w);w+=4;w=u;var B=s($,w,4);w+=4;var r=D($,w);w+=2;var P=D($,w);w+=2;var A=M($,w); -w+=4;var E=M($,w);w+=4;var n=M($,w);w+=4;var _=D($,w);w+=2;var l=D($,w);w+=2;w+=_;var b={};for(var K=0; -K0){if(n["o"+h]!=null)throw"e";n["o"+h]=f}return f}function G(c,n){if(c instanceof Array){for(var K=0; -KF[K].canvas.width)K++;if(K==F.length){s=F[0];var d=s.canvas;d.width=D;d.height=M}else{s=F[K]; -s.clearRect(0,0,D,M)}return s};e.$S=function(D,M,s){var F={},X=0,d=0,V=new Uint32Array(D.buffer),$=V.length,w=Date.now(); -for(var q=1;q>>24<230)d++;if(F[r]==null){F[r]=!0; -X++}}if(d!=0||X<20)return!1;return!0};e.wE=function(D,M,s,F,X,d){if(X==null)X=d=0;F=Math.log(F)/Math.log(2); -F=Math.round(F);for(var K=0;K>>M)+(D>>>M)&1)*51};e.Gw=function(D){var M=D.toString(16); -while(M.length<6)M="0"+M;return M};e.JH=function(D){return parseInt(D,16)};e.FA=function(D){return.3*D.i+.59*D.q+.11*D.P}; -e.Na=function(D){return Math.max(D.i,D.q,D.P)-Math.min(D.i,D.q,D.P)};e.jq=function(D,M,s){return.3*D+.59*M+.11*s}; -e.aki=function(D,M,s){return Math.max(D,M,s)-Math.min(D,M,s)};e.bE=function(D,M){var s=M-D,F=Math.abs(s),X=s-1,d=s+1; -if(Math.abs(X).5?w/(2-(F+X)):w/(F+X);switch(F){case D:d=(M-s)/w+(M1)s-=1;if(s<1/6)return D+(M-D)*6*s;if(s<1/2)return M;if(s<2/3)return D+(M-D)*(2/3-s)*6;return D}; -e.DK=function(D,M,s){var F=Math.max(D,M,s),X=Math.min(D,M,s),d,V,$=F,w=F-X;V=F==0?0:w/F;if(F==X)d=0; -else{switch(F){case D:d=(M-s)/w+(M.008856?Math.pow(s,1/3):(903.3*s+16)*(1/116)}return[D,M]}(); -e.g$=function(D,M,s){var F=e.yn[0],X=e.yn[1];D=F[~~(D*(1e3/255))];M=F[~~(M*(1e3/255))];s=F[~~(s*(1e3/255))]; -var d=e.UY.a2Y,V=d[0]*D+d[1]*M+d[2]*s,$=d[4]*D+d[5]*M+d[6]*s,w=d[8]*D+d[9]*M+d[10]*s;V=V*(100/96.72); -$=$*(100/100);w=w*(100/81.427);return e.Pp(V,$,w)};e.Pp=function(D,M,s){var F=e.yn[1],X=F[~~(D*1e3)],d=F[~~(M*1e3)],V=F[~~(s*1e3)]; -return{nM:116*d-16,iD:500*(X-d),P:200*(d-V)}};e.pN=function(D,M,s){var F=903.3,X=.008856,d=(D+16)/116,V=d*d*d,$=d-s/200,w=$*$*$,q=M/500+d,u=q*q*q,B=w>X?w:(116*$-16)/F,r=V>X?V:(116*d-16)/F,P=u>X?u:(116*q-16)/F,A=P*96.72,E=r*100,n=B*81.427,_=e.UY.A4(e.UY.VH,[A/100,E/100,n/100,0]); -for(var K=0;K<4;K++)_[K]=Math.max(0,Math.min(255,e.Oe(_[K])*255));return{i:_[0],q:_[1],P:_[2]}};e.p_=function(D,M,s,F,X){var d=D.nM,V=D.iD,$=D.P,w=(d>2]=~~(D[K+0]*X+D[K+1]*d+D[K+2]*V+.5)};e.a_=function(D,M){var s=M.length; -for(var K=0;K>>2];M[K]=F;M[K+1]=F;M[K+2]=F}};e.s8=function(D,M){var s=D.iD,F=D.i,X=D.q,d=D.P,V=Math.min(D.iD.length,M.buffer.byteLength>>>2),$=4*Math.floor(V/4),w=new Uint32Array(M.buffer),q=new Uint32Array(s.buffer),u=new Uint32Array(F.buffer),B=new Uint32Array(X.buffer),r=new Uint32Array(d.buffer); -for(var K=0;K<$;K+=4){var P=q[K>>2],A=r[K>>2],E=B[K>>2],n=u[K>>2];w[K]=P<<24|(A&255)<<16|(E&255)<<8|n&255; -w[K+1]=(P&65280)<<16|(A&65280)<<8|E&65280|(n&65280)>>>8;w[K+2]=(P&16711680)<<8|A&16711680|(E&16711680)>>>8|(n&16711680)>>>16; -w[K+3]=P&4278190080|(A&4278190080)>>>8|(E&4278190080)>>>16|(n&4278190080)>>>24}for(var K=$;K>>2),$=4*Math.floor(V/4),w=new Uint32Array(D.buffer),q=new Uint32Array(s.buffer),u=new Uint32Array(F.buffer),B=new Uint32Array(X.buffer),r=new Uint32Array(d.buffer); -for(var K=0;K<$;K+=4){var P=w[K],A=w[K+1],E=w[K+2],n=w[K+3];u[K>>2]=P&255|(A&255)<<8|(E&255)<<16|n<<24; -B[K>>2]=(P&65280)>>8|A&65280|(E&65280)<<8|(n&65280)<<16;r[K>>2]=(P&16711680)>>16|(A&16711680)>>8|E&16711680|(n&16711680)<<8; -q[K>>2]=P>>>24|A>>>24<<8|E>>>24<<16|n&4278190080}for(var K=$;K>0&255;X[K]=_>>8&255; -d[K]=_>>16&255;s[K]=_>>24&255}};e.FK=function(D,M,s){var F=new Uint8Array(D.buffer),X=Math.min(F.length/4,M.length); -for(var K=0;K>>2];F[(K<<2)+s]=V&255;F[(K<<2)+s+4]=V>>>8&255;F[(K<<2)+s+8]=V>>>16&255;F[(K<<2)+s+12]=V>>>24; -K+=4}while(K>>2,D=new Uint32Array(D.buffer,0,F),M=new Uint32Array(M.buffer,0,F); -M.set(D)};e.L0=function(D,M){var s=D.buffer.byteLength,F=M.buffer.byteLength,X=new Uint32Array(D.buffer,0,s>>2),d=new Uint32Array(M.buffer,0,F>>2); -if(s!=F)return!1;var V=X.length;for(var K=0;K=2&&F.w>=2){var X=e.t4(s,F); -D.push(X.dP,X.rect);s=X.dP;F=X.rect}};e.q9=function(D){var M=D.length,s=D[M-2],F=D[M-1];while(F.d>=2&&F.w>=2){var X=e.Dt(s,F); -D.push(X.dP,X.rect);s=X.dP;F=X.rect}};e.t4=function(D,M,s){var F=M.d,X=M.w,d=F>>1,V=X>>1,$=new hk(M.x,M.y,d,V),w=s&&s.length==d*V*4?s:e.U(d*V*4),q=new Uint32Array(D.buffer),u=new Uint32Array(w.buffer); -for(var B=0;B>>24,y=n>>>24,p=_>>>24,k=l>>>24,S=b+y+p+k; -if(S==1020){var Z=(E>>>0&255)+(n>>>0&255)+(_>>>0&255)+(l>>>0&255)+2>>>2,z=(E>>>8&255)+(n>>>8&255)+(_>>>8&255)+(l>>>8&255)+2>>>2,j=(E>>>16&255)+(n>>>16&255)+(_>>>16&255)+(l>>>16&255)+2>>>2; -u[P]=255<<24|j<<16|z<<8|Z}else if(S==0)u[P]=0;else{var Z=(E>>>0&255)*b+(n>>>0&255)*y+(_>>>0&255)*p+(l>>>0&255)*k,z=(E>>>8&255)*b+(n>>>8&255)*y+(_>>>8&255)*p+(l>>>8&255)*k,j=(E>>>16&255)*b+(n>>>16&255)*y+(_>>>16&255)*p+(l>>>16&255)*k,R=1/S; -Z=~~(Z*R+.5);z=~~(z*R+.5);j=~~(j*R+.5);u[P]=S+2>>>2<<24|j<<16|z<<8|Z}}return{rect:$,dP:w}};e.S7=function(D,M,s){var F=M.d,X=M.w,d=F>>1,V=X>>1,$=new hk(M.x,M.y,d,V),w=s&&s.length==d*V*4?s:e.U(d*V*4),q=new Uint32Array(D.buffer),u=new Uint32Array(w.buffer); -for(var B=0;B>>0&255)+(n>>>0&255)+(_>>>0&255)+(l>>>0&255)>>>2,y=2+(E>>>8&255)+(n>>>8&255)+(_>>>8&255)+(l>>>8&255)>>>2,p=2+(E>>>16&255)+(n>>>16&255)+(_>>>16&255)+(l>>>16&255)>>>2,k=2+(E>>>24&255)+(n>>>24&255)+(_>>>24&255)+(l>>>24&255)>>>2; -u[P]=k<<24|p<<16|y<<8|b}return{rect:$,dP:w}};e.am9=function(D,M,s){var F=M.d,X=M.w,d=2*Math.floor(F/3),V=2*Math.floor(X/3),$=new hk(M.x,M.y,d,V),w=s&&s.length==d*V*4?s:e.U(d*V*4),q=new Uint32Array(D.buffer),u=new Uint32Array(w.buffer); -for(var B=0;B>>1)*F+(r*3>>>1),E=q[A],n=q[A+1],_=q[A+2],l=q[A+F],b=q[A+1+F],y=q[A+2+F],p=q[A+F+F],k=q[A+1+F+F],S=q[A+2+F+F],Z=E>>>24<<2,z=(E>>>16&255)*Z,j=(E>>>8&255)*Z,R=(E&255)*Z,a=n>>>24<<1,m=(n>>>16&255)*a,G=(n>>>8&255)*a,L=(n&255)*a,H=_>>>24<<2,o=(_>>>16&255)*H,c=(_>>>8&255)*H,f=(_&255)*H,i=l>>>24<<1,h=(l>>>16&255)*i,N=(l>>>8&255)*i,C=(l&255)*i,I=b>>>24,J=(b>>>16&255)*I,av=(b>>>8&255)*I,gY=(b&255)*I,f9=y>>>24<<1,gl=(y>>>16&255)*f9,Y=(y>>>8&255)*f9,Q=(y&255)*f9,hF=p>>>24<<2,hv=(p>>>16&255)*hF,bV=(p>>>8&255)*hF,gu=(p&255)*hF,dg=k>>>24<<1,bG=(k>>>16&255)*dg,gS=(k>>>8&255)*dg,dc=(k&255)*dg,bj=S>>>24<<2,iJ=(S>>>16&255)*bj,hO=(S>>>8&255)*bj,gz=(S&255)*bj,aO=Z+a+i+I,eg=H+a+f9+I,iQ=hF+dg+i+I,d5=bj+dg+f9+I,da=aO==0?0:1/aO,c5=eg==0?0:1/eg,fs=iQ==0?0:1/iQ,ds=d5==0?0:1/d5,gE=0,af=0,cq=0,hr=0; -gE=~~(.5+(R+L+C+gY)*da);af=~~(.5+(j+G+N+av)*da);cq=~~(.5+(z+m+h+J)*da);hr=~~(.5+aO*(1/9));u[P]=hr<<24|cq<<16|af<<8|gE; -gE=~~(.5+(f+L+Q+gY)*c5);af=~~(.5+(c+G+Y+av)*c5);cq=~~(.5+(o+m+gl+J)*c5);hr=~~(.5+eg*(1/9));u[P+1]=hr<<24|cq<<16|af<<8|gE; -gE=~~(.5+(gu+dc+C+gY)*fs);af=~~(.5+(bV+gS+N+av)*fs);cq=~~(.5+(hv+bG+h+J)*fs);hr=~~(.5+iQ*(1/9));u[P+d]=hr<<24|cq<<16|af<<8|gE; -gE=~~(.5+(gz+dc+Q+gY)*ds);af=~~(.5+(hO+gS+Y+av)*ds);cq=~~(.5+(iJ+bG+gl+J)*ds);hr=~~(.5+d5*(1/9));u[P+d+1]=hr<<24|cq<<16|af<<8|gE}return{rect:$,dP:w}}; -e.agG=function(D,M,s){var F=M.d,X=M.w,d=2*Math.floor(F/3),V=2*Math.floor(X/3),$=new hk(M.x,M.y,d,V),w=s&&s.length==d*V*4?s:e.U(d*V*4),q=new Uint32Array(D.buffer),u=new Uint32Array(w.buffer); -for(var B=0;B>>1)*F+(r*3>>>1),E=q[A],n=q[A+1],_=q[A+2],l=q[A+F],b=q[A+1+F],y=q[A+2+F],p=q[A+F+F],k=q[A+1+F+F],S=q[A+2+F+F],Z=(E>>>16&255)<<2,z=(E>>>8&255)<<2,j=(E&255)<<2,R=(n>>>16&255)<<1,a=(n>>>8&255)<<1,m=(n&255)<<1,G=(_>>>16&255)<<2,L=(_>>>8&255)<<2,H=(_&255)<<2,o=(l>>>16&255)<<1,c=(l>>>8&255)<<1,f=(l&255)<<1,i=b>>>16&255,h=b>>>8&255,N=b&255,C=(y>>>16&255)<<1,I=(y>>>8&255)<<1,J=(y&255)<<1,av=(p>>>16&255)<<2,gY=(p>>>8&255)<<2,f9=(p&255)<<2,gl=(k>>>16&255)<<1,Y=(k>>>8&255)<<1,Q=(k&255)<<1,hF=(S>>>16&255)<<2,hv=(S>>>8&255)<<2,bV=(S&255)<<2,gu=0,dg=0,bG=0; -gu=~~(.5+(j+m+f+N)*(1/9));dg=~~(.5+(z+a+c+h)*(1/9));bG=~~(.5+(Z+R+o+i)*(1/9));u[P]=255<<24|bG<<16|dg<<8|gu; -gu=~~(.5+(H+m+J+N)*(1/9));dg=~~(.5+(L+a+I+h)*(1/9));bG=~~(.5+(G+R+C+i)*(1/9));u[P+1]=255<<24|bG<<16|dg<<8|gu; -gu=~~(.5+(f9+Q+f+N)*(1/9));dg=~~(.5+(gY+Y+c+h)*(1/9));bG=~~(.5+(av+gl+o+i)*(1/9));u[P+d]=255<<24|bG<<16|dg<<8|gu; -gu=~~(.5+(bV+Q+J+N)*(1/9));dg=~~(.5+(hv+Y+I+h)*(1/9));bG=~~(.5+(hF+gl+C+i)*(1/9));u[P+d+1]=255<<24|bG<<16|dg<<8|gu}return{rect:$,dP:w}}; -e.J7=function(D){var M=255,s=D.length;s-=s&31;for(var K=3;K>1,V=X>>1,$=new hk(M.x,M.y,d,V); -if(D==null)return{rect:$};var w=s&&s.length>=d*V?s:e.U(d*V);for(var q=0;q>>2}}return{rect:$,dP:w}};e.Au=function(D,M,s){var F=M.d,X=M.w,d=2*Math.floor(F/3),V=2*Math.floor(X/3),$=new hk(M.x,M.y,d,V); -if(D==null)return{rect:$};var w=s&&s.length>=d*V?s:e.U(d*V);for(var q=0;q>>1)*F+(u*3>>>1),P=D[r]<<2,A=D[r+1]<<1,E=D[r+2]<<2,n=D[r+F]<<1,_=D[r+1+F],l=D[r+2+F]<<1,b=D[r+F+F]<<2,y=D[r+1+F+F]<<1,p=D[r+2+F+F]<<2; -w[B]=~~(.5+(P+A+n+_)*(1/9));w[B+1]=~~(.5+(E+A+l+_)*(1/9));w[B+d]=~~(.5+(b+y+n+_)*(1/9));w[B+d+1]=~~(.5+(p+y+l+_)*(1/9))}return{rect:$,dP:w}}; -e.b7=function(D,M,s,F,X){var d=M.Nm(F);if(X)d=d.Nm(X);var V=Math.max(0,d.x-M.x),$=Math.max(0,d.x-F.x),w=Math.max(0,d.y-M.y),q=Math.max(0,d.y-F.y),u=d.d,B=d.w; -for(var K=0;K>>8)>>>8};e.round=function(D,M){if(M==null)M=128;var s=D.length;for(var K=0; -K>>24)*(V>>>24))<<24|e.ua((d>>>16&255)*(V>>>16&255))<<16|e.ua((d>>>8&255)*(V>>>8&255))<<8|e.ua((d&255)*(V&255))}}; -e.vs=function(D,M){var s=D.length;for(var K=0;K>>2,V/255]};e.G_=function(D,M){var s=new Uint32Array(D.buffer),F=s.length; -for(var K=0;K>8&255,$=X>>16&255,w=X>>24&255;s[K]=M[d]|M[V]<<8|M[$]<<16|M[w]<<24}}; -e.aij=function(D,M,s,F,X,d,V){var $=new Uint32Array(D.buffer),w=new Uint32Array(M.buffer),q=$.length,u=0; -while(256<>>8&255)<>>16&255)<>>8&255)<>>16&255)<b){var y=(l-b)/(255-b);E+=y*(255-E);n+=y*(255-n);_+=y*(255-_)}else if(b==0)E=n=_=0;else{var y=l/b; -E=y*E;n=y*n;_=y*_}}w[K]=E|n<<8|_<<16|B&4278190080}};e.t8=function(D,M){var s=M.d,F=M.w,top=0,X=0,d=0,V=0,$=0; -$=0;for(var w=0;w=0;w--){var q=w*s;for(var K=0;K=0;K--){for(var w=top; -w=0;r--){var P=r*d;for(var K=0;K=0;K--){for(var r=0;r>2); -e.FK(D.buffer,M,3);var s=e.t8(M,D.rect);if(s.L0(D.rect))return;var F=new e.U(s.Y()*4);e.eJ(D.buffer,D.rect,F,s); -D.buffer=F;D.rect=s};e.extend=function(D,M,s){if(D.rect.cw(M))return;var F=D.rect.bk(M),X=e.U(F.Y()); -if(s!=null)X.fill(s);e.b7(D.channel,D.rect,X,F);D.rect=F;D.channel=X};e.ad6=function(D,M){if(M.qj()||D.rect.cw(M))return; -var s=D.rect.bk(M),F=e.U(s.Y()*4);e.eJ(D.buffer,D.rect,F,s);D.rect=s;D.buffer=F};e.Za=function(D,M,s){if(!s.TM(D))return!1; -var F=Math.floor(D.x)-s.x,X=Math.floor(D.y)-s.y,K=X*s.d+F;return M[K]>128};e.ag_=function(D,M,s){if(!s.TM(D))return!1; -var F=Math.floor(D.x)-s.x,X=Math.floor(D.y)-s.y,K=X*s.d+F;return M[4*K+3]>128};e.dc=function(D){if(e.PS.length>1,u=e.j.R; -u.aR(M,s);var B=u.bp(1),r=u.bp(1),P=u.bp(1);u.lq(D,F,w,w,q);u.Gi(F);u.tb(F,B);u.bV(B,r,d,d,1);u.bV(B,P,d,d,d*d); -u.sub(P,r);u.Mk(r,$);(V<25?u.sub:u.add)(B,r);u.nO(r,F);u.Eb(F)};e.j.a7I=function(D,M,s,F,X){var d=e.j.R; -d.aR(M,s);var V=X[0]*2.55,$=X[1],w=$>>1,q=X[2]*.25,u=d.bp(4),B=d.bp(1),r=d.bp(1);d.vw(D,u,$,1,!0,w); -d.vw(D,F,$,1,!1,w);d.Ob(D,B);d.v6(B,V);d.cK(B,r,3);d.GI(F,r,u);d.Vt(u,F,q)};e.j.a0E=function(D,M,s,F,X){var d=e.j.R; -d.aR(M,s);d.jH(X[3]);var V=X[0]*-3+80,$=X[1]*-3+80,w=X[2]/2+.5,q=X[4],u=X[5],B=d.bp(1),r=d.bp(1),P=d.bp(1),A=d.bp(1),E=d.bp(4),n=d.bp(4); -d.Ob(D,B);d.f8(B,r);d.xc(B,$,5);d.SO(B,.4,0);d.cK(B,P,3);d.zv(P,B,9,3,!0,27);d.f8(r,P);d.Iy(P);var _=d.eY(V,5,P); -for(var K=0;K3?(X[1]-3)*10:0;var w=~~(X[2]*.73)+50,q=Math.min(w+$,128),u=q-w,B=-255*w; -for(var K=0;K<256;K++){var r=K*65;V[K]=d.sn(B/u);B+=255}var P=d.bp(1),A=d.bp(1),E=d.bp(1);d.Ob(D,P); -d.f8(P,E);d.cK(P,A,2*X[0]+1);d.sub(A,P);d.Mk(P,65);d.zv(P,A,9,3,!0,20);for(var K=0;K0?~~((_*n+(255-_)*128)/255):128}d.cK(P,A,3);d.zv(A,P,15,2,!0,16);d.zv(A,E,15,2,!1,15);d.d5(P,E); -d.$X(E,A,2);d.E7(A,V);d.cK(A,P,2);d.Wr(P,F)};e.j.a4S=function(D,M,s,F,X){var d=e.j.R;d.aR(M,s);var V=2*X[0]+1,$=d.It[X[1]],w=X[2]*5.1,q=X[3],u=d.bp(1),B=d.bp(1),r=d.bp(4),P=d.bp(4); -d.zU(r,q);d.Gi(r,F);d.Lo(u,w);d.nO(u,F);d.Eb(F,r);d.Ob(D,B);d.cK(B,u,V);d.sub(u,B);d.Mk(B,$);d.zv(B,u,9,3,!0,20); -d.GI(D,u,r);d.Cp(r,F,3);d.vw(F,r,15,2,!0,16);d.vw(F,P,15,2,!1,16);d.d5(r,P);d.Vt(P,F,2)};e.j.adQ=function(D,M,s,F,X){var d=e.j.R; -d.aR(M,s);var V=(15-X[0])/4+1,$=(15-X[1])/4+1,w=X[2],q=X[3],u=d.W6(X[4]),B=X[5]+1,r=X[6],P=X[7],A=X[8],E=d.bp(1),n=d.bp(1),_=d.bp(1),l=d.bp(1),b=d.bp(4),y=d.bp(4); -d.b5(_,w,q,r);d.Ob(D,n);d.cK(n,E,5);d.KM(_,E,l,B,u);d.Mk(l,V);d.US(l,2);d.Iy(E);d.KM(_,E,n,B,u);d.Mk(n,$); -d.US(n,2);d.zU(b,2155905279);d.zU(y,P);d.zU(F,A);d.GI(b,n,y);d.GI(y,l,F)};e.j.ari=function(D,M,s,F,X){var d=e.j.R; -d.aR(M,s);d.jH(X[3]);var V=X[0],$=X[1]/10,w=X[2]/10,q=d.bp(1),u=d.bp(1),B=d.bp(1),r=d.aP(),P=d.aP(),A=d.aP(); -d.ap(q);d.cK(q,u,11);d.cK(u,q,11);d.xF(q,r);d.fU(D,q);d.f8(q,B);d.cK(q,u,9);d.cK(u,q,9);d.xF(q,P);d.mD(P,A,5); -d.mD(A,P,5);d.n4(r,.8);d.a3S(r,P,.8,.9);d.Fa(P,q,V);d.bV(q,u,2,2,1);d.bV(u,q,2,2,3);d.bV(q,u,2,2,3); -d.bV(B,q,5,5,13);d.I2(u,q,u,$);d.QU(q,u,u,w);d.KM(u,u,q,5,1);d.Gi(D,F);d.nO(q,F);d.Eb(F)};e.j.aq8=function(D,M,s,F,X){var d=e.j.R; -d.aR(M,s);var V=X[0],$=X[1]/2,w=X[2],q=V/2,u=d.bp(4),B=d.bp(4);d.f8(D,F);for(var r=0;r>1,n=2*w-100,_=+(q==9),l=+(q==7),b=[4,1][_],y=[3,2][_],p=[1,2][l],k=[2,1][l],S=[50,75][_],Z=q<4?u:(u>>1)+50,z=d.I5(S,Z),j=d.Cj(B),R=d.Cj(r),a=d.bp(4),m=d.bp(4),G=d.bp(1),L=d.bp(1); -function H(F,z){if(Z!=50){d.Li(F,z)}}function o(D,gl){for(var K=0;K=s||m>=M){return}var k=A[G],L=B-k,H=V.random(),o=H/_+l; -if(E==0||Math.abs(S-k)>b){n=o<=L?Z:j;E=~~(V.random()*q)}else if(.1=M)break;R(p,y-k)}E=0}for(K=1;K=s||p>=M)break; -R(k,y-p)}E=0}}else if(r==1){for(K=0;K=M)break;R(p,k)}E=0}for(K=1;K=s||p>=M)break; -R(k,p)}E=0}}else{for(K=0;K=0){d.Iy(B)}d.f8(B,P);d.cK(B,A,$);d.cK(A,B,$);d.Mk(B,q);d.f8(B,r);d.cK(B,A,w);d.cK(A,B,w); -d.Mk(B,u);d.zU(_,X[2]);d.zU(l,X[3]);d.zU(b,X[4]);d.GI(_,B,l,E);d.GI(b,r,E,n);d.GI(l,P,n,F);d.tb(D,P,3); -d.nO(P,F,3)};e.j.aer=function(D,M,s,F,X){var d=e.j.R;d.aR(M,s);d.jH(X[5]);var V=X[0]*5.1,$=X[1]/100,w=d.UZ[X[2]],q=d.bp(1),u=d.bp(1),B=d.bp(1); -d.Ob(D,q);d.Lo(u,255);d.ap(B);d.v6(q,V);d.tT(u,q,.7);d.tT(B,q,$);d.KM(q,q,u,5,w);d.f8(D,F);d.a76(F,V,X[4],X[3]); -d.Gi(F);d.nO(u,F);d.Eb(F)};e.j.aow=function(D,M,s,F,X){var d=e.j.R;d.aR(M,s);var V=X[0],$=4-X[1],w=11-X[2],q=d.bp(1),u=d.bp(1),B=d.bp(4); -d.fU(D,u);for(var K=0;K<$;K++){d.f8(u,q);d.mn(q,u,V,V)}d.Cp(D,B,V);d.Gi(B,B);d.nO(u,B);d.Eb(B,B);(w<11?d.a1j:d.f8)(B,F,w)}; -e.j.alW=function(D,M,s,F,X){var d=e.j.R;d.aR(M,s);d.jH(X[2]);var V=X[0]+5,$=~~(V/5+1),w=~~(V/2)+1,q=w*w,u=~~(V/3),B=d.UZ[X[1]],r=new Array(256); -for(var K=0;K<256;K++){r[K]=~~(.2*(K-128))}var P=d.bp(1),A=d.bp(1);d.aiG(D,F,V);d.Gi(F);d.tb(F,P);d.ap(A); -d.yq(P,A,r);d.a46(A,V,V,$,$);d.I2(P,A,P,1);d.cK(P,A,u);d.cK(A,P,u);d.bV(P,A,w,w,q);d.KM(A,A,P,5,B);d.nO(P,F); -d.Eb(F)};e.j.a6e=function(D,M,s,F,X){var d=e.j.R;d.aR(M,s);var V=d.bp(1),$=d.bp(1),w=d.bp(1),q=d.aP(),u=d.aP(); -d.Ob(D,V);d.cK(V,$,X[2]);d.v6($,X[0]*5.1);d.bV($,V,2,2,4);d.cK(V,$,3);d.cK($,V,3);d.f8(V,w);d.cK(V,$,5); -d.cK($,V,5);d.xF(V,q);d.mD(q,u,5);d.mD(u,q,5);d.aq0(q,$,X[1]);d.Iy($);d.I2(w,$,w,1);d.Wr(w,F)};e.j.a1H=function(D,M,s,F,X){var d=e.j.R; -d.aR(M,s);var V=1<<7-X[2],$=d.bp(1),w=d.bp(1),q=d.bp(1);d.fU(D,w);d.cK(w,$,3);d.f8($,w);d.cK($,q,X[0]+5); -d.sub(q,w);d.xc(w,1,X[1]);d.Mk($,1/V);d.Mk($,V);d.sub($,w);d.Gi(D,F);d.nO(w,F);d.Eb(F)};e.j.aaG=function(D,M,s,F,X){var d=e.j.R; -d.aR(M,s);d.jH(X[3]);var V=d.bp(1),$=d.bp(1),w=d.bp(1);d.Ob(D,V);d.aoh($,X[0]/50);d.cK($,w,3);d.bV(V,$,9,9,41); -d.xc($,X[1],X[2]);d.I2($,w,w,.75);d.QU($,w,$,.5);d.f8($,V);d.bV(V,w,3,3,8);d.I2(w,$,w,.75);d.Mk(w,1.2); -d.$X(w,V,1);d.cK(V,w,2);d.$X(w,V,2);d.Mk(V,1.2);d.cK(V,w,2);d.Wr(w,F)};e.j.a0C=function(D,M,s,F,X){var d=e.j.R; -d.aR(M,s);var V=X[0]+9,$=X[1]/2,w=X[2],q=X[3],u=d.W6(X[4]),B=X[5]+1,r=X[6],P=d.bp(1),A=d.bp(1),E=d.bp(4),n=d.bp(4); -d.b5(A,w,q,r);d.rN(D,F,V,1,1);d.rN(F,E,V,1,1);d.afn(E,E,n,7,$);d.Mk(n,1.2);d.US(n,1.2);d.KM(A,P,P,B,u); -d.Mk(P,3);d.f8(D,F);d.GI(n,P,F)};e.j.a3s=function(D,M,s,F,X){var d=e.j.R;d.aR(M,s);d.jH(X[3]);var V=X[0]+4,$=V*2/5+(V%5|0); -V--;var w=X[1]*-2.75+60,q=65-w,u=X[2]/10,B=d.bp(1),r=d.bp(1);d.ap(B);d.fU(D,r);var P=d.eY(w,q,r);d.Gi(D,F); -d.tb(F,r);d.tT(r,B,.8);d.E7(r,P);d.Mk(r,u);d.add(B,r);d.zv(r,B,V,3,!1,$);d.nO(B,F);d.Eb(F)};e.j.a9A=function(D,M,s,F,X){var d=e.j.R; -d.aR(M,s);d.jH(X[3]);var V=X[0]+5,$=(V*V>>1)+V%2,w=X[1]/10,q=X[2],u=(q*q>>1)+q%2,B=d.bp(1),r=d.bp(1),P=d.bp(1),A=d.bp(4),E=d.bp(4),n=d.bp(4); -d.ap(P);d.Gi(D,n);d.tb(n,B);d.tT(B,P,.8);d.cK(P,B,3);d.$X(B,P,w);d.nO(P,n);d.Eb(n,n);d.Ob(n,P);d.bV(P,B,V,V,$); -d.cK(P,r,V);d.sub(B,r);d.v6(r,1);d.lq(n,A,7,7,40);d.lq(n,E,7,7,10);d.GI(A,r,E);d.lq(E,F,q,q,u)};e.j.a9w=function(D,M,s,F,X){var d=e.j.R,$=255,K,q; -d.aR(M,s);var V=X[0];if(V<2)$=V;else if(V<12)$=5*V-5;else if(V<47)$=2*V+28;else if(V<50){K=V-47;$=125+12.5*K+12.5*K*K}var w=new Uint8Array(256); -for(K=75,q=15;K<256;K++,q+=24)w[K]=Math.min(255,q);var u=d.bp(1),B=d.bp(1),r=d.bp(1);d.Ob(D,u);d.cK(u,B,11); -d.cK(B,r,11);d.sub(r,u);d.Mk(u,8);d.sub(r,u);d.v6(u,$);d.Iy(u);d.cK(u,B,5);d.v6(B,51);d.cK(B,u,X[1]); -d.cK(u,B,X[1]);d.Iy(B);d.E7(B,w);d.Wr(B,F)};e.j.anG=function(D,M,s,F,X){var d=e.j.R;d.aR(M,s);var V=d.It[X[1]],$=X[2],w=$*1.5,q=d.bp(1),u=d.bp(1),B=d.bp(1); -d.fU(D,q);d.zv(q,u,15,2,!0,15);d.f8(u,B);d.xc(B,$,w);d.cK(B,q,3);d.cK(u,B,X[0]);d.sub(B,u);d.Mk(u,V); -d.sub(q,u);d.cK(u,q,3);d.zv(q,u,3,1,!1,1);d.Cp(D,F,15);d.Gi(F);d.nO(u,F);d.Eb(F)};e.j.a1y=function(D,M,s,F,X){var d=e.j.R; -d.aR(M,s);d.jH(X[3]);var V=X[0]*5.1,$=16-X[1],w=[1,1,1.05,1.1,1.15,1.2,1.25,1.3,1.35,1.4,1.45,1.5,1.6,1.7,1.8,2,2.25,2.5,2.75,3,3.5,4,5,6,8,10][X[2]],q=d.bp(1),u=d.bp(1),B=d.bp(1); -d.Ob(D,q);d.v6(q,V);d.cK(q,u,$);d.cK(u,q,$);d.ap(B);d.QU(q,B,B,1);d.I2(q,B,q,.75);d.Mk(q,w);d.US(q,w); -d.bV(q,u,2,2,2);d.Wr(u,F)};e.j.a3_=function(D,M,s,F,X){var d=e.j.R;d.aR(M,s);var V=X[0]+9,$=X[1]+9,w=X[2],q=X[3],u=d.W6(X[4]),B=X[5]+1,r=X[6],P=d.bp(1),A=d.bp(1),E=d.bp(1),n=d.bp(1),_=d.bp(1),l=d.bp(4); -d.fU(D,P);d.mn(P,E,V,V);d.cK(E,P,$);d.f8(E,_);d.f8(P,n);d.sub(_,n);d.sub(P,_);d.add(_,n);d.Mk(n,10); -d.b5(A,w,q,r);d.KM(A,P,_,B,u);d.VE(_,n,E,.8);d.Cp(D,l,9);d.Cp(l,F,9);d.Gi(F);d.nO(E,F);d.Eb(F)};e.j.a8K=function(D,M,s,F,X){var d=e.j.R; -d.aR(M,s);var V=16-X[0],$=X[1]*8,w=1-(3-X[2])/10,q=~~(V*V*w-1),u=~~(V*V*(1-w));if(u==0)u=1;var B=d.bp(1),r=d.bp(1),P=d.bp(1),A=d.bp(4); -d.Ob(D,P);d.bV(P,B,7,7,25);d.cK(P,r,7);d.sub(B,r);d.v6(r,1);d.lq(D,A,V,V,q);d.lq(D,F,V,V,u);d.GI(A,r,F); -d.Gi(F);d.tb(F,B);d.bV(B,P,3,3,1);d.bV(B,r,3,3,9);d.sub(r,P);d.f8(P,r);d.sub(B,P);d.sub(P,r);d.bV(r,B,3,3,8); -d.xc(B,$,1);d.nO(B,F);d.Eb(F)};e.j.a4a=function(D,M,s,F,X){var d=e.j.R;d.aR(M,s);d.jH(X[3]);var V=X[0],$=X[1],w=X[2],q=V>>1,u=Math.max(~~(V/5),1),B=Math.max(~~(V*2/3),1),r=d.I5($,w),P=d.bp(1),A=d.bp(1),E=d.bp(1),n=d.bp(1),_=d.bp(4); -d.fU(D,P);d.$d(2147483647,4,2,2,0,255,A);d.$d(4,2147483647,2,2,0,255,n);d.ap(E);d.QU(A,E,A,1);d.QU(n,E,n,1); -d.QU(A,P,A,1);d.QU(n,P,n,1);d.Cp(D,_,q);d.Cp(_,F,q);d.bV(A,P,1,V,u);d.bV(P,A,3,V,B);d.bV(n,P,V,1,u); -d.bV(P,n,V,3,B);d.d5(A,n);d.Gi(F);d.nO(n,F);d.Eb(F);d.Li(F,r)};e.j.R={};e.j.R.wS=0;e.j.R.WQ=0;e.j.R.hy=0; -e.j.R._I=0;e.j.R.ML=0;e.j.R.aR=function(D,M){var s=D*M,self=e.j.R;self.wS=D;self.WQ=M;self.hy=s;self._I=s<<1; -self.ML=s<<2};e.j.R.jH=function(D){e.j.R.random=function(){var M=D+=1831565813;M=Math.imul(M^M>>>15,M|1); -M^=M+Math.imul(M^M>>>7,M|61);return((M^M>>>14)>>>0)/4294967296}};e.j.R.bp=function(D){var M=e.j.R;return new Uint8Array([-1,M.hy,M._I,-1,M.ML][D])}; -e.j.R.aP=function(){return new Int32Array(e.j.R._I)};e.j.R.cK=function(D,M,s,F){if(F==null)F=s;var self=e.j.R,X=self.wS,d=self.WQ; -e.Qn.V6(D,M,new hk(0,0,X,d),s>>>1);return};e.j.R.mD=function(D,M,s,F){var self=e.j.R,X=new Int32Array(self.hy),d=new Int32Array(self.hy); -for(var K=0;K<2;K++){self.tb(D,X,K,2);self.cK(X,d,s,F);self.nO(d,M,K,2)}};e.j.R.Cp=function(D,M,s,F){var self=e.j.R,X=self.bp(1),d=self.bp(1); -for(var K=0;K<4;K++){self.tb(D,X,K);if(K<3)self.cK(X,d,s,F);else d=X;self.nO(d,M,K)}};e.j.R.rN=function(D,M,s,F,X){var self=e.j.R,d=self.wS,V=self.WQ,$=s+F-1,w=s>>1,q=$>>1,u=0,B=s*F,r=new Int32Array(s); -for(var K=0;K=d)y=d-1;if(p<0)p=0;else if(p>=V)p=V-1;var k=d*p+y<<2;P+=D[k];A+=D[k+1]; -E+=D[k+2]}}M[u++]=~~(P/B);M[u++]=~~(A/B);M[u++]=~~(E/B);M[u]=D[u];u++;for(var S=1;S=V)p=V-1;if(Z<0)Z=0;else if(Z>=d)Z=d-1; -if(z<0)z=0;else if(z>=d)z=d-1;var j=p*d+Z<<2,R=p*d+z<<2;P=P+D[R]-D[j];A=A+D[R+1]-D[j+1];E=E+D[R+2]-D[j+2]}M[u++]=~~(P/B); -M[u++]=~~(A/B);M[u++]=~~(E/B);M[u]=D[u];u++}}};e.j.R.zv=function(D,M,s,F,X,d){var self=e.j.R,V=self.wS,$=self.WQ,w=s+F-1,q=s>>1,u=w>>1,B=0,r=new Int32Array(s),P=new Int32Array(256),A=new Int32Array(16); -for(var K=0;K<$;K++){P.fill(0);A.fill(0);for(var E=0;E=V)b=V-1;if(y<0)y=0;else if(y>=$)y=$-1; -P[D[y*V+b]]++;A[D[y*V+b]>>>4]++}}M[B++]=e.j.R.t2(A,P,d);for(var p=1;p=$)y=$-1;if(k<0)k=0;else if(k>=V)k=V-1;if(S<0)S=0;else if(S>=V)S=V-1; -var Z=D[y*V+k],z=D[y*V+S];P[Z]--;P[z]++;A[Z>>>4]--;A[z>>>4]++}M[B++]=e.j.R.t2(A,P,d)}}};e.j.R.vw=function(D,M,s,F,X,d){var self=e.j.R,V=self.bp(1),$=self.bp(1); -for(var K=0;K<4;K++){self.tb(D,V,K);if(K<3)self.zv(V,$,s,F,X,d);else $=V;self.nO($,M,K)}};e.j.R.bV=function(D,M,s,F,X){X=Math.min(F*s,X); -var self=e.j.R,d=self.wS,V=self.WQ,$=F>>1,w=s>>1,q=0,u=new Int32Array(F),B=new Int32Array(256),r=new Int32Array(16); -for(var K=0;K=d)n=d-1;if(_<0)_=0;else if(_>=V)_=V-1;B[D[_*d+n]]++;r[D[_*d+n]>>>4]++}}M[q++]=e.j.R.t2(r,B,X); -for(var l=1;l=V)_=V-1; -if(y<0)y=0;else if(y>=d)y=d-1;if(p<0)p=0;else if(p>=d)p=d-1;var k=D[_*d+y],S=D[_*d+p];B[k]--;B[S]++; -r[k>>>4]--;r[S>>>4]++}M[q++]=e.j.R.t2(r,B,X)}}};e.j.R.t2=function(D,M,s){var F=0,X=0;while(F+D[X>>>4]>>4]; -X+=16}for(;X<256;X++){F+=M[X];if(F>=s)break}return X};e.j.R.lq=function(D,M,s,F,X){var self=e.j.R,d=self.bp(1),V=self.bp(1); -for(var K=0;K<4;K++){self.tb(D,d,K);if(K<3)self.bV(d,V,s,F,X);else V=d;self.nO(V,M,K)}};e.j.R.$X=function(D,M,s){var self=e.j.R,F=self.wS,X=self.WQ,d=0; -for(var K=0;K=X)w=V;for(var q=0;q=F)B=q;var r=V+u,P=V+B,A=$+q,E=w+q,n=V+q,_=D[r],l=D[P],b=D[A],y=D[E],p=D[n],k=p+(p*4*s+.5); -k=k-((_+l+y+b)*s+.5);M[d++]=self.sn(k)}}};e.j.R.Vt=function(D,M,s){var self=e.j.R,F=self.bp(1),X=self.bp(1); -for(var K=0;K<4;K++){self.tb(D,F,K);if(K<3)self.$X(F,X,s);else X=F;self.nO(X,M,K)}};e.j.R.a1j=function(D,M,s){var self=e.j.R,F=self.wS,X=self.WQ,d=0,V=s+4; -for(var K=0;K=X)q=$;for(var u=0;u=F)r=u;var P=$+B<<2,A=$+r<<2,E=w+u<<2,n=q+u<<2,_=$+u<<2;for(var l=0;l<3;l++){var b=D[P+l],y=D[A+l],p=D[E+l],k=D[n+l],S=D[_+l]; -M[d++]=(S*s+b+y+k+p)/V}M[d]=D[d];d++}}};e.j.R.mn=function(D,M,s,F){var self=e.j.R,X=self.wS,d=self.WQ,V=s>>1,$=F>>1,w=0,q=new Int32Array(s),u=new Int32Array(256); -for(var K=0;K=X)A=X-1;if(E<0)E=0;else if(E>=d)E=d-1;u[D[E*X+A]]++}}var n=0,_=0;for(var l=0;l<256;l++){if(n=d)E=d-1;if(p<0)p=0;else if(p>=X)p=X-1;if(k<0)k=0;else if(k>=X)k=X-1;u[D[E*X+p]]--; -u[D[E*X+k]]++}n=0;_=0;for(var l=0;l<256;l++){if(n0?K-1:0)*$,u=K*$,B=(K0?r-1:0,A=rX)X=d;if(V>X)X=V;M[K]=X}};e.j.R.Gi=function(D,M){if(M==null)M=D; -var s=D.length;for(var F=0;FV){X=V}}else{w=2;q=V}var u=q-X;if(u!=0){if(w==0){B=~~(43*(d-V)/u)}else if(w==1){B=~~(43*(V+2*u-$)/u)}else{B=43*($+4*u-d)/u}if(B<0){B=255&B-1}M[F]=B; -M[F+1]=~~(255*u/q)}else{M[F]=u;M[F+1]=u}M[F+2]=q;M[F+3]=D[F+3]}};e.j.R.Eb=function(D,M){if(M==null)M=D; -var s=D.length;for(var F=0;F>1}}; -e.j.R.f8=function(D,M){var s=D.length;for(var K=0;KF)V=X;if(d>F)V=d;var $=M[V];if($){D[K]=~~($*F/V);D[K+1]=~~($*X/V);D[K+2]=~~($*d/V)}else{D[K]=$; -D[K+1]=$;D[K+2]=$}}};e.j.R.Mk=function(D,M){for(var K=0,s=D.length;K=M?F:s}};e.j.R.Cj=function(D){return[D>>24&255,D>>16&255,D>>8&255,D&255]}; -e.j.R.a76=function(D,M,s,F){if(s==null)s=255;if(F==null)F=4278190335;var X=e.j.R,d=X.ML,V=X.Cj(s),$=X.Cj(F); -for(var K=0;K=M){D[K]=V[0];D[K+1]=V[1];D[K+2]=V[2]}else{D[K]=$[0]; -D[K+1]=$[1];D[K+2]=$[2]}}};e.j.R.zU=function(D,M){var s=e.j.R,F=s.ML,X=s.Cj(M);for(var K=0;K5?(100-Math.max(4,D))/100:.95;M=M!=100?Math.max(4,M)/100:.9995;var s=new Uint8Array(256),F=M>.5?.5/(1-M):M*2,X=~~(F*256),d=~~((.5-D*F)*256)<<8; -for(var K=0;K<256;K++){s[K]=e.j.R.sn(d>>8);d+=X}return s};e.j.R.ap=function(D){for(var K=0,M=e.j.R,s=D.length; -K255){u=255;q=254}var B=255/(u-q),r=-q; -for(var K=0;K<256;K++){d[K]=self.sn(B*r+.5);r++}return d};e.j.R.xc=function(D,M,s){var F=e.j.R;F.E7(D,F.eY(M,s,D))}; -e.j.R.amr=function(D,M){var self=e.j.R,s=self.K4(D),F=self.hy*M/100,X=0,d=-1;do{X+=s[++d]}while(X<=F); -return d};e.j.R.xF=function(D,M){var s=0,self=e.j.R,F=self.wS,X=self.WQ,d=1/Math.PI,V=d*255;for(var K=0; -K=2&&w%s>=2?255:0}}};e.j.R.$d=function(D,M,s,F,X,d,V){var self=e.j.R,$=self.wS,w=self.WQ,q=0,u=0,B=0; -for(var K=0;K40?[1.25,1.5,1.75,2,2.5,3,4,5,7.5,10][D-41]:D/40}; -e.j.R.aiG=function(D,M,s){var self=e.j.R,F=self.wS,X=self.WQ,d=s,V=s>>1,$=V-1,w=d*d,q=0;for(var K=0; -K=F)_=F-1; -if(l>=X)l=X-1;u+=D[l*F+_<<2];B+=D[(l*F+_<<2)+1];r+=D[(l*F+_<<2)+2]}}var b=~~(u/w),y=~~(B/w),p=~~(r/w); -M[q]=b;M[q+1]=y;M[q+2]=p;M[q+3]=D[q+3];q+=4;for(var k=1;k=F)Z=F-1;if(l>=X)l=X-1;var z=l*F,j=z+Z<<2,R=z+S<<2;u+=D[j]-D[R];B+=D[j+1]-D[R+1];r+=D[j+2]-D[R+2]}if(k%s==0){b=~~(u/w); -y=~~(B/w);p=~~(r/w)}M[q]=b;M[q+1]=y;M[q+2]=p;M[q+3]=D[q+3];q+=4}}};e.j.R.a46=function(D,M,s,F,X){var self=e.j.R,d=self.wS,V=self.WQ,$=0,w=0,q=0,u=0; -for(var K=u;K=F||K=X||r>8)&255;M[K]=M[_]=l;l=l%8;s[K]=s[_]=X[l]; -F[K]=F[_]=d[l]}}function q(_){return _*_*_*(_*(_*6-15)+10)}function u(_,l,b){return(1-b)*_+b*l}function B(_,l){return _&l}function r(_,l){return _%l}function P(_,l,b,y,p){var k=Math.floor(_),S=Math.floor(l),V,Z,z,j,R,a; -_=_-k;l=l-S;k=k&255;S=S&255;V=k+M[S];j=s[V]*_+F[V]*l;V=k+M[p(S+1,y)];z=s[V]*_+F[V]*(l-1);V=p(k+1,b)+M[S]; -R=s[V]*(_-1)+F[V]*l;V=p(k+1,b)+M[p(S+1,y)];a=s[V]*(_-1)+F[V]*(l-1);Z=q(_);return u(u(j,R,Z),u(z,a,Z),q(l))}function E(_,V,l){_[V]=l}function n(_,l,b,y,p){var k=Math.min(Math.min(l,256),Math.min(256,b)),S=k==256||k<8,Z=8,z=new Uint32Array(Z),j=new Uint32Array(Z),R=new Float32Array(Z),a=new Float32Array(Z),m=1,G=1,L=S?B:r,H=E,o; -for(var K=0;K>>2),V=new Uint8Array(M.length>>>2),$=new Uint8Array(M.length); -for(var K=0;K>>2]=w;$[K]=M[K];$[K+1]=M[K+1]; -$[K+2]=M[K+2]}e.M6.Tm(V,d,s,F);e.M6.pY(M,X,s,F,e.M6.i2[1],0,!0);for(var K=0;K>>2]}for(var K=0,q=M.length; -K>>8&255,n=P>>>16&255,_=P>>>24&255,l=~~(Math.random()*8),b=l%3,y=0,p=0; -if(l<3){p--}else if(l>4){p++}if(b==0){y--}else if(b==2){y++}var k=r+y,S=K+p;if(k<0)k=0;else if(k>V-1)k=V-1; -if(S<0)S=0;else if(S>$-1)S=$-1;var P=u[S*V+k],Z=P&255,z=P>>>8&255,j=P>>>16&255,R=P>>>24&255;w[B]=q(A,Z); -w[B+1]=q(E,z);w[B+2]=q(n,j);w[B+3]=q(_,R)}}}function M(d,V){return V}function s(d,V){return d>V?V:d}function F(d,V){return d>>2;X[$+1]=B+2>>>2;X[$+2]=r+2>>>2;X[$+3]=P+2>>>2}}}return D}(); -e.j.ahp=function(){function D(M,s,F,X){var d=new Uint8Array(M.length),V=new Uint8Array(M.length>>>2),$=new Uint8Array(M.length>>>2); -e.M6.pY(M,d,s,F,e.M6.i2[2],0,!0);for(var K=0;K>>2]=w;X[K+0]=M[K+0];X[K+1]=M[K+1];X[K+2]=M[K+2];X[K+3]=M[K+3]}e.M6.Tm(V,$,s,F);for(var K=0;K>>2]-50)*(255/205))}for(var K=0,q=M.length;K.5)return 0;if(l>.25)return 1;if(l>.1)return 2;if(l>.02143)return 3;if(l>.00445)return 4;if(l>65e-5)return 5; -if(l>415e-6)return 6;if(l>55e-6)return 7;return 8}function $(l,b,y,p,k,S){l[b]=y[p]+(k[S]-y[p]>>1);l[b+1]=y[p+1]+(k[S+1]-y[p+1]>>1); -l[b+2]=y[p+2]+(k[S+2]-y[p+2]>>1);l[b+3]=y[p+3]+(k[S+3]-y[p+3]>>1)}function w(l,b,y,p,k,S){l[b]=k[S]+y[p]>>1; -l[b+1]=k[S+1]+y[p+1]>>1;l[b+2]=k[S+2]+y[p+2]>>1;l[b+3]=k[S+3]+y[p+3]>>1}function q(l,b,y,p,k,S,Z,z,j){var R=0,a=0,m=0,K,G=k[S],L; -$(z,0,l,b,l,y);for(K=0;K0&&p[S-1]0){q(p,Z-4,Z,k,R,G,a,m,4)}Z+=4}k[b]=k[0];R[b]=R[0];if(k[b-1]0){q(p,Z,z,k,R,b,a,m,4)}}d(p)}function B(){var l=Math.random(); -if(l>.659755)return 0;if(l>.1625)return 10;if(l>.06)return 20;if(l>.01)return 30;if(l>.0035)return 40; -if(l>65e-5)return 50;if(l>415e-6)return 60;if(l>55e-6)return 70;return 80}function r(l,b,y,p,k,S){var Z=B()+1,z=p[k]; -for(var K=1;Kk)break;if(p[k-K]y[K]){s(l,m-S,R,0);y[K-1]=j;a=!1;break}s(l,m-S,l,m);y[K-1]=y[K];m+=S}if(a){s(l,m-S,R,0); -y[k-1]=j}Z++;p--;b-=S}}function E(l,b,y,p,k){var S=0,Z=0,z=b*4;for(var K=0;K>16}V=X[0];var r=X[1],P=(r+2)/2,A=d.random()*255,E=d.bp(1); -for(var K=0;K>>1; -while(s!=0&&D[K][0]>>1}},aaW:function(D){if(D.length==2)return D.pop(); -var top=D[1],K=1;D[1]=D.pop();var M=D.length;while(!0){var s=K<<1,F=s+1,X=K;if(ss){console.log(K);throw"e"}s=F;M=M>>>1}}}}; -e.z={};e.z.wP=new Float64Array(256);e.z.TO=new Uint8Array(256*256);e.z.Ki=new Uint8Array(256*256);(function(){for(var K=0; -K<256;K++)e.z.wP[K]=255/K;for(var K=0;K<256;K++)for(var D=0;D<256;D++)e.z.TO[K*256+D]=K==0?0:Math.round(D*255/K); -for(var K=0;K<256;K++)for(var D=0;D<256;D++)e.z.Ki[K*256+D]=Math.round(K*(255-D)/255)}());e.z.cz=function(D,M,s,F,X,d,V,$){if($==null)$=dm.aQ(); -if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(D)==-1){V=V*$.fill;$.fill=1;$.style=!1}var w="norm,dark,mul ,idiv,lbrn,lite,scrn,div ,lddg,over,sLit,hLit,vLit,lLit,pLit,hMix,diff,smud,fsub,fdiv".split(","),q="dkCl,lgCl,hue ,sat ,colr,lum ".split(","),u=e.z[D+"F"]; -if($.GW==null&&D=="norm")e.z.aoL(M,s,F,X,d,V,u,$.Sf?1:0);else if(D=="diss")e.z.al4(M,s,F,X,d,V,u,$.Sf?1:0); -else if(w.indexOf(D)!=-1)e.z.ai_(M,s,F,X,d,V,u,$);else if(q.indexOf(D)!=-1)e.z.acA(M,s,F,X,d,V,u,$)}; -e.z.ad$=function(D,M,s){var F=D*s+1-s;return F<.001?0:1-Math.min(1,(1-M)/F)};e.z.ad0=function(D,M,s){return D*s==1?1:Math.min(1,M/(1-D*s))}; -e.z.au=function(D){return D<=.25?((16*D-12)*D+4)*D:Math.sqrt(D)};e.z.normF=function(D,M,s){return D}; -e.z.darkF=function(D,M,s){return Math.min(D,M)};e.z["mul F"]=function(D,M,s){return D*M};e.z.idivF=function(D,M,s){var F=D*s+1-s; -return M==1?1:1-M>=F?0:1-(1-M)/F};e.z.lbrnF=function(D,M,s){return Math.max(0,D*s+M-s)};e.z.dkClF=function(D,M,s){var F=e.FA(D)=1-D?1:M/(1-D)};e.z.lddgF=function(D,M,s){D*=s;return Math.min(1,D+M)}; -e.z.lgClF=function(D,M,s){var F=e.FA(D)>e.FA(M)?D:M;s.i=F.i;s.q=F.q;s.P=F.P;return s};e.z.overF=function(D,M,s){return e.z.hLitF(M,D,s)}; -e.z.sLitF=function(D,M,s){return D<=.5?M-(1-2*D)*M*(1-M):M+(2*D-1)*(e.z.au(M)-M)};e.z.hLitF=function(D,M,s){return D<=.5?e.z["mul F"](2*D,M,s):e.z.scrnF(2*D-1,M,s)}; -e.z.vLitF=function(D,M,s){return D<=.5?e.z.ad$(2*D,M,s):e.z.ad0(2*D-1,M,s)};e.z.lLitF=function(D,M,s){return D<=.5?e.z.lbrnF(2*D,M,s):e.z.lddgF(2*D-1,M,s)}; -e.z.pLitF=function(D,M,s){return D<=.5?e.z.darkF(2*D,M,s):e.z.liteF(2*D-1,M,s)};e.z.hMixF=function(D,M,s){if(s>.99)return D+M<1?0:1; -return Math.min(1,Math.max(0,(M+D*s-s)/(1-s+1e-6)))};e.z.diffF=function(D,M,s){D*=s;return Math.abs(D-M)}; -e.z.smudF=function(D,M,s){return D+M-2*D*M};e.z.fsubF=function(D,M,s){return Math.max(M-D,0)};e.z.fdivF=function(D,M,s){return Math.min(M/D,1)}; -e.z["hue F"]=function(D,M,s){e.z.Sv(D,e.Na(M),s);e.z.vG(s,e.FA(M),s)};e.z["sat F"]=function(D,M,s){e.z.Sv(M,e.Na(D),s); -e.z.vG(s,e.FA(M),s)};e.z.colrF=function(D,M,s){e.z.vG(D,e.FA(M),s)};e.z["lum F"]=function(D,M,s){e.z.vG(M,e.FA(D),s)}; -e.z.vG=function(D,M,s){var F=M-e.FA(D);s.i=D.i+F;s.q=D.q+F;s.P=D.P+F;e.z.al$(s)};e.z.al$=function(D){var M=D.i,s=D.q,F=D.P,X=e.jq(M,s,F),O=Math.min(M,s,F),d=Math.max(M,s,F); -if(O<0){var V=X/(X-O);M=X+(M-X)*V;s=X+(s-X)*V;F=X+(F-X)*V}if(d>1){var V=(1-X)/(d-X);M=X+(M-X)*V;s=X+(s-X)*V; -F=X+(F-X)*V}D.i=M;D.q=s;D.P=F};e.z.Sv=function(D,M,s){var F=e.z.a2S,X=D.i,d=D.q,V=D.P;if(X==d&&d==V){s.i=s.q=s.P=0}else if(X>d){if(X>V){if(d>V){s.i=M; -s.q=F(X,d,V,M);s.P=0}else{s.i=M;s.P=F(X,V,d,M);s.q=0}}else{s.P=M;s.i=F(V,X,d,M);s.q=0}}else{if(XV){s.q=M; -s.P=F(d,V,X,M);s.i=0}else{s.P=M;s.q=F(V,d,X,M);s.i=0}}else{s.q=M;s.i=F(d,X,V,M);s.P=0}}};e.z.a2S=function(D,M,s,F){return(M-s)*F/(D-s)}; -e.z.aoL=function(D,M,s,F,X,d,V,$){var w=M.Nm(F).Nm(X),q=Math.max(0,w.x-M.x),u=Math.max(0,w.x-F.x),B=Math.max(0,w.y-M.y),r=Math.max(0,w.y-F.y),P=w.d,A=w.w,E=M.d,n=F.d,_=e.z.TO,l=e.z.Ki,b=new Uint32Array(D.buffer),y=new Uint32Array(s.buffer); -for(var K=0;K>>24==0)continue; -if(Z>>>24==255&&d==1&&$==0){y[k+S]=b[p+S];continue}var z=y[k+S],j=255*d&255;if($==0){j=(Z>>>24)*d&255; -R=z>>>24}var a=l[R<<8|j],m=j+a,G=Z&255,L=Z>>>8&255,H=Z>>>16&255,o=z&255,c=z>>>8&255,f=z>>>16&255;y[k+S]=$*(z>>>24)+(1-$)*m<<24|_[m<<8|e.ua(H*j+f*a)]<<16|_[m<<8|e.ua(L*j+c*a)]<<8|_[m<<8|e.ua(G*j+o*a)]}}}; -e.z.a3D=function(D,M,s,F,X,d){var V=M.Nm(F).Nm(X),$=Math.max(0,V.x-M.x),w=Math.max(0,V.x-F.x),q=Math.max(0,V.y-M.y),u=Math.max(0,V.y-F.y),B=V.d,r=V.w,P=M.d,A=F.d,E=e.z.TO,n=e.z.Ki,_=new Uint32Array(D.buffer),l=new Uint32Array(s.buffer),b=Math.floor(Math.random()*16777215),y=0; -for(var K=0;K>>24==0)continue; -if(Z>>24==255&&d==1){l[k+S]=Z;continue}var z=l[k+S],j=(Z>>>24)*d*(1/255),R=(z>>>24)*(1/255),a=R*(1-j),m=j+a,G=Z&255,L=Z>>>8&255,H=Z>>>16&255,o=z&255,c=z>>>8&255,f=z>>>16&255; -y>>>=8;if((S&3)==0)y=e.z._e(k+S+b);var i=m==0?0:1/m,h=Math.floor(m*(256*255))+(y&255)>>>8,N=Math.floor((H*j+f*a)*i+.5),C=Math.floor((L*j+c*a)*i+.5),I=Math.floor((G*j+o*a)*i+.5); -l[k+S]=h<<24|N<<16|C<<8|I}}};e.z.MI=function(D,M,s,F,X,d,V,$){var w=e.jq(D,M,s),q=e.jq(F,X,d),u=Math.min,B=e.z.ak2,r=B(w,$,0); -r=u(r,B(D,$,8));r=u(r,B(M,$,16));r=u(r,B(s,$,24));var P=B(q,$,4);P=u(P,B(F,$,12));P=u(P,B(X,$,20));P=u(P,B(d,$,28)); -P=Math.max(P,1-V);var A=Math.min(r,P);return A<0?0:A>1?1:A};e.z.ak2=function(D,M,K){return Math.min((D-M[K])*M[K+1],(D-M[K+3])*M[K+2])}; -e.z.ai_=function(D,M,s,F,X,d,V,$){var w=1/255,q=w*d,u=$.Sf?1:0,B=$.fill,r=$.style,P=M.Nm(F).Nm(X),A=Math.max(0,P.x-M.x),E=Math.max(0,P.x-F.x),n=Math.max(0,P.y-M.y),_=Math.max(0,P.y-F.y),l=P.d,b=P.w,y=M.d,p=F.d,k=new Uint32Array(D.buffer),S=new Uint32Array(s.buffer); -for(var K=0;K>>24==0)continue; -var a=S[z],m=(R&255)*w,G=(R>>>8&255)*w,L=(R>>>16&255)*w,H=(a&255)*w,o=(a>>>8&255)*w,c=(a>>>16&255)*w,f=d; -if(u==0){f=(R>>>24)*q;i=(a>>>24)*w}if($.GW)f*=e.z.MI(m,G,L,H,o,c,i,$.GW);var h=i*(1-f),N=f+h,C=N==0?0:255/N,I=r?1:f,J=((1-i)*f*m+(1-I)*i*H+I*i*V(m,H,(1+f-I)*B))*C,av=((1-i)*f*G+(1-I)*i*o+I*i*V(G,o,(1+f-I)*B))*C,gY=((1-i)*f*L+(1-I)*i*c+I*i*V(L,c,(1+f-I)*B))*C; -N=f*B+i*(1-f*B);var f9=~~(N*255+.5);S[z]=u*(a>>>24)+(1-u)*f9<<24|gY<<16|av<<8|J}}};e.z.acA=function(D,M,s,F,X,d,V,$){var w=1/255,q=w*d,u=$.Sf?1:0,B=M.Nm(F).Nm(X),r=Math.max(0,B.x-M.x),P=Math.max(0,B.x-F.x),A=Math.max(0,B.y-M.y),E=Math.max(0,B.y-F.y),n=B.d,_=B.w,l=new Uint32Array(D.buffer),b=new Uint32Array(s.buffer),y={i:0,q:0,P:0},p={i:0,q:0,P:0},k={i:0,q:0,P:0}; -for(var K=0;K<_;K++){var S=(A+K)*M.d+r,Z=(E+K)*F.d+P;for(var z=0;z>>8&255)*w,G=(j>>>16&255)*w,L=(R&255)*w,H=(R>>>8&255)*w,o=(R>>>16&255)*w,c=d,f=1; -if(u==0){c=(j>>>24)*q;f=(R>>>24)*w}if($.GW)c*=e.z.MI(a,m,G,L,H,o,f,$.GW);var i=f*(1-c),h=c+i,N=255/h; -y.i=a;y.q=m;y.P=G;p.i=L;p.q=H;p.P=o;V(y,p,k);var C=(((1-f)*a+f*k.i)*c+L*i)*N,I=(((1-f)*m+f*k.q)*c+H*i)*N,J=(((1-f)*G+f*k.P)*c+o*i)*N,av=u*(R>>>24)+(1-u)*Math.round(h*255); -b[Z]=av<<24|J<<16|I<<8|C}}};e.z.Hk=function(D){D=D^61^D>>>16;D=D+(D<<3);D=D^D>>>4;D=D*668265261;D=D^D>>15; -return(D&16777215)*(1/16777215)};e.z._e=function(D){D=D^61^D>>>16;D=D+(D<<3);D=D^D>>>4;D=D*668265261; -D=D^D>>>15;return D};e.z.bg=function(D){this.jH=D};e.z.bg.prototype.get=function(){var D=this.jH=e.z._e(this.jH); -return(D&16777215)*(1/16777215)};e.z.al4=function(D,M,s,F,X,d,V,$){var w=1/255,q=w*d,u=Math.round(d*(256*256*256/255)),B=M.Nm(F).Nm(X),r=Math.max(0,B.x-M.x),P=Math.max(0,B.x-F.x),A=Math.max(0,B.y-M.y),E=Math.max(0,B.y-F.y),n=B.d,_=B.w,l=new Uint32Array(D.buffer),b=new Uint32Array(s.buffer); -for(var K=0;K<_;K++){var y=(A+K)*M.d+r,p=(E+K)*F.d+P;for(var k=0;k>>24); -if((e.z._e(y)&16777215)>=z*u)continue;b[p]=S&16777215|$*(Z>>>24)+(1-$)*255<<24}}};e.z.ap9=function(D,M,s){for(var K=0; -K>>2];if(F==0)continue;var X=F*(1/255),d=1/X,V=M[K],$=M[K+1],w=M[K+2],q=D[K],u=D[K+1],B=D[K+2]; -M[K]=Math.min(255,Math.max(0,Math.round((V-(1-X)*q)*d)));M[K+1]=Math.min(255,Math.max(0,Math.round(($-(1-X)*u)*d))); -M[K+2]=Math.min(255,Math.max(0,Math.round((w-(1-X)*B)*d)));M[K+3]=255}};e.z.c0=function(D,M,s,F,X,d,V,$,w,q,u){if(q==null)q=!1; -if(u==null)u=[1,1,1];var B=255<<24|u[2]*16711680|u[1]*65280|u[0]*255,r=~B;if(X&&!M.L0(d)){var P=e.U(M.Y()*4); -P.fill(V);e.b7(X,d,P,M);X=P;d=M}if(q){if(X==null)e.z.ajm(D,M,s,F,X,$,w,B,r);else e.z.apr(D,M,s,F,X,$,w)}else{if(X==null)e.z.aaj(D,M,s,F,X,$,w,B,r); -else e.z.aa0(D,M,s,F,X,$,w)}};e.z.aaj=function(D,M,s,F,X,d,V,$,w){var q=1/255,u=M.Nm(F).Nm(d),B=Math.max(0,u.x-M.x),r=Math.max(0,u.x-F.x),P=Math.max(0,u.y-M.y),A=Math.max(0,u.y-F.y),E=u.d,n=u.w,_=new Uint32Array(D.buffer),l=new Uint32Array(s.buffer),b=e.z.TO,y=V*255&255; -for(var K=0;K>>24,R=z>>>24,a=e.ua(y*j+(255-y)*R),m=e.ua(j*y),G=e.ua(R*(255-y)),L=Z&255,H=Z>>>8&255,o=Z>>>16&255,c=z&255,f=z>>>8&255,i=z>>>16&255,h=m*L+c*G,N=m*H+f*G,C=m*o+i*G; -h=b[a<<8|e.ua(h)];N=b[a<<8|e.ua(N)];C=b[a<<8|e.ua(C)];var I=a<<24|C<<16|N<<8|h;l[k]=w&z|$&I}}};e.z.ajm=function(D,M,s,F,X,d,V,$,w){var q=1/255,u=M.Nm(F).Nm(d),B=Math.max(0,u.x-M.x),r=Math.max(0,u.x-F.x),P=Math.max(0,u.y-M.y),A=Math.max(0,u.y-F.y),E=u.d,n=u.w,_=new Uint32Array(D.buffer),l=new Uint32Array(s.buffer),b=e.z.TO,y=V*16777215&16777215; -for(var K=0;K>>24,z=S>>>24,j=e.ua(p*Z+(255-p)*z),R=e.ua(Z*p),a=e.ua(z*(255-p)),m=k&255,G=k>>>8&255,L=k>>>16&255,H=S&255,o=S>>>8&255,c=S>>>16&255,f=_[j<<8|e.ua(R*m+H*a)],i=_[j<<8|e.ua(R*G+o*a)],h=_[j<<8|e.ua(R*L+c*a)]; -n[b]=j<<24|h<<16|i<<8|f}}};e.z.apr=function(D,M,s,F,X,d,V){var $=1/255,w=M.Nm(F).Nm(d),q=Math.max(0,w.x-M.x),u=Math.max(0,w.x-F.x),B=Math.max(0,w.y-M.y),r=Math.max(0,w.y-F.y),P=w.d,A=w.w,E=new Uint32Array(D.buffer),n=new Uint32Array(s.buffer),_=e.z.TO,l=Math.round(V*257); -for(var K=0;K>>24,j=Z>>>24,R=z*k*(1/255),a=j*(255-k)*(1/255),m=S&255,G=S>>>8&255,L=S>>>16&255,H=Z&255,o=Z>>>8&255,c=Z>>>16&255,f=e.z._e(y+p+_),i=Math.floor((R+a)*256+.5)+(f>>>0&255)>>>8,h=i==0?0:256/(R+a),N=m*R+H*a,C=G*R+o*a,I=L*R+c*a,J=Math.floor(N*h+.5)+(f>>>8&255)>>>8,av=Math.floor(C*h+.5)+(f>>>16&255)>>>8,gY=Math.floor(I*h+.5)+(f>>>21&248)>>>8; -n[y+p]=i<<24|gY<<16|av<<8|J}}};e.z.a20=function(D){return Math.floor(D+Math.random())};e.z.rF=function(D,M,s,F,X,d,V){var $=1/255,w=M.Nm(F).Nm(d),q=Math.max(0,w.x-M.x),u=Math.max(0,w.x-F.x),B=Math.max(0,w.y-M.y),r=Math.max(0,w.y-F.y),P=w.d,A=w.w; -for(var K=0;K1+$){m=e.sM.rY(r,a,N,C);c=Math.sqrt(m);i--;h++}else{m=L=o=1e9;for(var K=0;K=j)continue;var f9=e.sM.rY(r,gY,N,C);if(f9>1);e.Qn.gp(M,V,s,F,d[1]-1>>1);e.Qn.gp(M,V,s,F,d[2]-1>>1)};e.Qn.a0m=function(D,M,s,F,X){var d=e.Qn.pU(X,2),V=e.Qn.la(s*F); -e.f8(D,M);e.Qn.gp(M,V,s,F,d[0]-1>>1);e.Qn.gp(M,V,s,F,d[1]-1>>1)};e.Qn.agy=function(D,M,s,F){var X=e.Qn.pU(F,3),d=e.Qn.la(M*s*4); -e.Qn.hf(D,d,M,s,X[0]-1>>1);e.Qn.hf(D,d,M,s,X[1]-1>>1);e.Qn.hf(D,d,M,s,X[2]-1>>1)};e.Qn.a1W=function(D,M,s,F,X,d){if(d==null)d=3; -var V=e.Qn.pU(X,d),$=e.Qn.X$(s*F);e.f8(D,M);for(var K=0;Kd||D*s<0&&Vd||D*F<0&&Vd||D*X<0&&Vd?1:0}; -e.yr.aov=function(D,M,s,F){var X=new Float32Array(F),d=0;new Uint32Array(F).fill(0);for(var V=0;Vd)d=B}var P=M*s,A=d==0?0:1/d; -for(var K=0;K0&&$>0)X[d+0]=-D-1;if(V>0)X[d+1]=-D;if(V>0&&$0)X[d+6]=D-1;if($>0)X[d+7]=-1;K++;d+=8}return F}; -e.M6={};e.M6.jX=function(D){var M=D.slice(0),s=0;for(var K=0;K>>1,u=new Uint32Array(D.buffer),M=new Uint8ClampedArray(M.buffer); -for(var K=0;Ks-1)b=s-1;if(y<0)y=0;else if(y>F-1)y=F-1;if($&&u[y*s+b]>>>24==0){y=K; -b=B}var p=u[y*s+b];r+=(p&255)*l;P+=(p>>>8&255)*l;A+=(p>>>16&255)*l;E+=(p>>>24&255)*l}if(V){if(r<0)r=-r; -if(P<0)P=-P;if(A<0)A=-A;if(E<0)E=-E}if($){r=Math.max(0,Math.min(255,r));P=Math.max(0,Math.min(255,P)); -A=Math.max(0,Math.min(255,A));E=Math.max(0,Math.min(255,E))}var k=K*s+B<<2;M[k]=~~(.5+r);M[k+1]=~~(.5+P); -M[k+2]=~~(.5+A);M[k+3]=255-d&M[k+3]|d&~~(.5+E)}};e.M6.Uz=function(D,M,s,F){var X=D.length,d=new Uint8Array(X); -e.M6.pY(D,M,s,F,e.M6.i2[4],0,!0);e.M6.pY(D,d,s,F,e.M6.i2[5],0,!0);for(var K=0;K>>1,l=new Array(n),b=new Array(n); -for(var K=0;Kw-u-n-1){k.fill(0);var Z=Math.max(S-u,0),z=Math.min(w,S+u+1),j=z-Z; -for(var R=0;R=0)F(k,V,a*w+Z,a*w+z,-1);var G=R*w+S<<2;P=k[300];if(P!=0)for(var K=0;K<3;K++)$[G+K]=y(E[K],V[G+K],P,r)}}else{for(var K=0; -K=0)s(b,V,a*w+Z,a*w+z,-1,_);if(m>>4]+=q}return D}();e.pt.v1=function(){function D(B,r,P,A,E,n,_){if(E==0){r.set(B); -return}if(E<=80)M(B,r,P,A,E,n,_);else d(B,r,P,A,E,n,_)}function M(B,r,P,A,E,n,_){var l=0,b=new Int32Array(512),y=1+2*Math.round(Math.sqrt(E)),p=y>>>1,k=new Array(y); -for(var K=0;KP-E-y-1){b.fill(0); -l=0;var j=Math.max(z-E,0),R=Math.min(P,z+E+1),a=R-j;for(var m=0;m=0){l-=a;F(b,B,G*P+j,G*P+R,-1)}if(L=0){l-=a;s(k,B,G*P+j,G*P+R,-1,p)}if(L>>4]+=A}function d(B,r,P,A,E,n,_){var l=0,b=new Int32Array(512),y=new Int32Array(1*P),p=new Int32Array(512*P),k=Math.min(E,P),S=Math.min(E,A),Z=n[0]; -for(var z=0;z=0)V(p,y,B,P,z-E-1,-1); -b.fill(0);l=0;for(var j=0;j=0&&y[R]!=0){l-=y[R]; -w(b,p,R)}if(a0)K--; -K=(K<<4)+15;while(D[K]==0&&K>0)K--;return K},function(D,M,s,F,X){var K=15;while(D[256|K]+M[256|K]==0&&K>0)K--; -K=(K<<4)+15;while(D[K]+M[K]==0&&K>0)K--;return K}];e.pt.yD=[function(D,M,s,F){var K=0;while(D[256|K]==0&&K<15)K++; -K=K<<4;while(D[K]==0&&K<255)K++;return K},function(D,M,s,F,X){var K=0;while(D[256|K]+M[256|K]==0&&K<15)K++; -K=K<<4;while(D[K]+M[K]==0&&K<255)K++;return K}];e.pt.eQ=.5;e.pt.U8=[function(D,M,s,F){var X=~~(.5+e.pt.eQ*s),d=0,K=256; -while(d+D[K]<=X)d+=D[K++];K=K-256<<4;while(d<=X)d+=D[K++];return K-1},function(D,M,s,F,X){var d=~~(.5+e.pt.eQ*F),V=0,K=256; -while(V+D[K]+M[K]<=d){V+=D[K]+M[K];K++}K=K-256<<4;while(V<=d){V+=D[K]+M[K];K++}return K-1}];e.pt.px=[function(D,M,s,F){var X=F[0],d=0,V=0,K=Math.max(0,M-X),$=Math.min(256,M+X+1); -while(K<$){var w=D[K];d+=K*w;V+=w;K++}return V==0?0:d/V},function(D,M,s,F,X){var d=X[0],V=0,$=0,K=Math.max(0,s-d),w=Math.min(256,s+d+1); -while(K1e-9)u=!1}var A=e.X.NF(D),E=e.X.xt(D)&&A,n=E?1:0; -if(V||u&&B==s+F&&A){e.X.apn(q,M,s,F,X,d,$,A,w);return}var _=d.d,l=d.w,b=new Float64Array(2);X=new Uint32Array(X.buffer); -M=new Uint32Array(M.buffer);for(var y=0;ys+1||H<-1||H>F+1; -if($){L=Math.max(.001,Math.min(s-1,L));H=Math.max(.001,Math.min(F-1,H))}else if(o)continue;var c=r;if(!A){var f=0,i=0; -z=D;S=m+1/s;Z=G;j=1/(z[6]*S+z[7]*Z+1);f=(z[0]*S+z[1]*Z+z[2])*j-R;i=(z[3]*S+z[4]*Z+z[5])*j-a;var h=f*f+i*i; -S=m;Z=G+1/F;j=1/(z[6]*S+z[7]*Z+1);f=(z[0]*S+z[1]*Z+z[2])*j-R;i=(z[3]*S+z[4]*Z+z[5])*j-a;var N=f*f+i*i; -c=1/Math.sqrt(Math.max(h,N))}if(c<1.1){e.X.JP(L,H,M,s,F,X,k,n);continue}var C=Math.round(c*2.3);if(!$&&(L<.6||L>s-.6||H<.6||H>F-.6)){C=Math.max(C,5)}if($&&o)C=1; -var I=1/C,gl=d.x+p,Y=d.y+y;z=q;for(var K=0;K=1||H<0||H>=1)continue; -L=Math.floor(L*s);H=Math.floor(H*F);var hF=H*s+L,hv=M[hF],bV=hv>>>24;J+=(hv&255)*bV;av+=(hv>>>8&255)*bV; -gY+=(hv>>>16&255)*bV;f9+=bV}if(f9!=0){var gu=1/f9;J=~~(J*gu+.5);av=~~(av*gu+.5);gY=~~(gY*gu+.5);f9=~~(f9*I*I+.5); -X[k]=f9<<24|gY<<16|av<<8|J}}};e.X.apn=function(D,M,s,F,X,d,V,$,w){if($&&!V&&d.Y()>4e6&&w){e.X.ae5(D,M,s,F,X,d,V,$,w); -return}var q=d.x+d.d,u=d.y+d.w,B=0,r=new Uint32Array(X.buffer),P=new Uint32Array(M.buffer),A=D[0]*s,E=D[1]*s,n=D[2]*s,_=D[3]*F,l=D[4]*F,b=D[5]*F,y=D[6],p=D[7]; -if($&&!V)for(var k=d.y+.5;k>>2<<2)-1e-9,z=-.1+(y>>>1<<1)-1e-9,j=~~s,R=B==0?0:1/B,a=A==0?0:1/A; -for(var m=0;m0){H=Math.max(H,-G*R); -o=Math.min(o,(s-G)*R)}else{o=Math.min(o,-G*R);H=Math.max(H,(s-G)*R)}if(A==0){}else if(a>0){H=Math.max(H,-L*a); -o=Math.min(o,(F-L)*a)}else{o=Math.min(o,-L*a);H=Math.max(H,(F-L)*a)}if(o<0)o=0;if(H>o)H=o;H=Math.ceil(H); -o=~~o;p=~~(m*b);for(var c=0;c=0&&u=0&&u+1=0&&B=0&&B+1F-1?F-1:u,p=u<-1?0:u>F-2?F-1:u+1,k=B<0?0:B>X-1?X-1:B,S=B<-1?0:B>X-2?X-1:B+1; -r=s[k*F+y];P=s[k*F+p];A=s[S*F+y];E=s[S*F+p]}else{var y=(u+50*F)%F,p=(u+50*F)%F,k=(B+50*X)%X,S=(B+50*X)%X; -r=s[k*F+y];P=s[k*F+p];A=s[S*F+y];E=s[S*F+p]}var Z=D-u,z=M-B,j=(1-z)*(1-Z)*(r>>>24),R=(1-z)*Z*(P>>>24),a=z*(1-Z)*(A>>>24),m=z*Z*(E>>>24),G=j+R+a+m,L=j*(r&255)+R*(P&255)+a*(A&255)+m*(E&255),H=j*(r>>>8&255)+R*(P>>>8&255)+a*(A>>>8&255)+m*(E>>>8&255),o=j*(r>>>16&255)+R*(P>>>16&255)+a*(A>>>16&255)+m*(E>>>16&255); -if(G==0)d[V]=0;else{var c=1/G;L=~~(L*c+.5);H=~~(H*c+.5);o=~~(o*c+.5);G=~~(G+.5);d[V]=G<<24|o<<16|H<<8|L}}; -e.X.MC=function(D,M,s,F,X,d){var V=D-.499999,$=M-.499999,w=~~V,q=~~$,u=V-w,B=$-q,r=(1-B)*(1-u),P=(1-B)*u,A=B*(1-u),E=B*u,n=q*F+w<<2,_=(q+1)*F+w<<2,l=r*s[n]+P*s[n+4]+A*s[_]+E*s[_+4],b=r*s[n+1]+P*s[n+5]+A*s[_+1]+E*s[_+5],y=r*s[n+2]+P*s[n+6]+A*s[_+2]+E*s[_+6],p=r*s[n+3]+P*s[n+7]+A*s[_+3]+E*s[_+7]; -d[0]=l;d[1]=b;d[2]=y;d[3]=p};e.X.iG=function(D,M,s,F,X){D-=.499999;M-=.499999;var d=Math.floor(D),V=Math.floor(M),$=D-d,w=M-V,q=(1-w)*(1-$),u=(1-w)*$,B=w*(1-$),r=w*$,P=(d+50*F)%F,A=(d+1+50*F)%F,E=(V+50*X)%X,n=(V+1+50*X)%X,_=s[E*F+P],l=s[E*F+A],b=s[n*F+P],y=s[n*F+A]; -if(_==null||y==null)throw"e";return q*_+u*l+B*b+r*y};e.X.ld=function(D,M,s,F,X,d,V,$,w,q,u,B){var r=new Uint32Array(D.buffer),P=new Uint32Array(F.buffer),A=(1+2*q)/X,E=[],n=[]; -for(var _=0;_M-1?M-1:p)),Z=~~(.5+(k<0?0:k>s-1?s-1:k)); -P[b*X+_]=r[Z*M+S]}}};e.X.Gc=function(D,M,s,F,X,d,V,$,w,q,u,B){var r=new Uint32Array(D.buffer),P=new Uint32Array(F.buffer),A=1/B,E=[],n=s*4,_=1/n; -for(var l=0;lM?M:s},aev:function(D,M,s,F,X,d,V,$){var w=s[0],q=s[1],u=s[2],B=s[3],r=F.d,P=F.w,A=new Float64Array(r*4+8),E=new Float64Array(r*4+8); -for(var n=0,K=0;n>1,S=u.Fn.w-s.w>>1,Z=u.Fn.d,z=-.6*p,j=(-.6+.4)*p,R=(-.6+2*.4)*p,a=(-.6+3*.4)*p; -for(var m=0,K=0;m=1){h=(i<=0?0:P)<<2;M[K]=_[h];M[K+1]=_[h+1];M[K+2]=_[h+2];M[K+3]=_[h+3];continue}h=Math.max(0,Math.min(P-1,Math.round((i+z)*P)))<<2; -H+=_[h];o+=_[h+1];c+=_[h+2];L+=_[h+3];h=Math.max(0,Math.min(P-1,Math.round((i+j)*P)))<<2;H+=_[h];o+=_[h+1]; -c+=_[h+2];L+=_[h+3];h=Math.max(0,Math.min(P-1,Math.round((i+R)*P)))<<2;H+=_[h];o+=_[h+1];c+=_[h+2];L+=_[h+3]; -h=Math.max(0,Math.min(P-1,Math.round((i+a)*P)))<<2;H+=_[h];o+=_[h+1];c+=_[h+2];L+=_[h+3];M[K]=H>>>2; -M[K+1]=o>>>2;M[K+2]=c>>>2;M[K+3]=L>>>2}}};e.h.Z8=function(D,M,s){var F=[];for(var K=0;K>16&255,q:M>>8&255,P:M&255};else if(D[K].v.Type.v.Clry=="BckC")X={i:s>>16&255,q:s>>8&255,P:s&255}; -else X=e.h.KO(D[K].v.Clr.v);F.push(X)}return F};e.h.KO=function(D){var M,s=D.classID;if(s=="RGBC"){if(D.Rd)M={i:D.Rd.v,q:D.Grn.v,P:D.Bl.v}; -else M={i:D.redFloat.v*255,q:D.greenFloat.v*255,P:D.blueFloat.v*255}}else if(s=="HSBC"){M=e.NW(D.H.v.val/360,D.Strt.v/100,D.Brgh.v/100); -M.i*=255;M.q*=255;M.P*=255}else if(s=="CMYC"){var F=100-D.Cyn.v,X=100-D.Mgnt.v,d=100-D.Ylw.v,V=100-D.Blck.v,$=255*F*V*1e-4,w=255*(.2*F+.8*X)*V*1e-4,q=255*(.2*X+.8*d)*V*1e-4; -M={i:$,q:w,P:q}}else if(s=="Grsc")M={i:255-D.Gry.v,q:255-D.Gry.v,P:255-D.Gry.v};else if(s=="LbCl"){M=e.pN(D.Lmnc.v,D.A.v,D.B.v)}else console.log(D); -if(isNaN(M.i))M.i=M.q=M.P=0;return M};e.h.zQ=function(D){return{classID:"RGBC",Rd:{t:"doub",v:D.i},Grn:{t:"doub",v:D.q},Bl:{t:"doub",v:D.P}}}; -e.h.a2n=function(D,M,s,F){var X=[],d=1/(s-0);for(var K=0;KZ)gz[K]=255-(255-Y)*d5}}if(n)console.log("init",Date.now()-E);E=Date.now();if(X*_>0){aO.set(hO); -e.Qn.XZ(aO,hO,new hk(0,0,s,F),_)}if($*l>0){aO.set(gz);e.Qn.XZ(aO,gz,new hk(0,0,s,F),l)}if(n)console.log("blur",Date.now()-E); -E=Date.now();var c5=e.U(256),fs=e.U(256);for(var K=0;K<256;K++){var ds=K*(1/255),gE=0;gE=(1-Math.pow(1-ds,z))*255; -c5[K]=Math.max(0,Math.min(255,~~(gE+.5)));gE=Math.pow(ds,j)*255;fs[K]=Math.max(0,Math.min(255,~~(gE+.5)))}var af=new Uint8ClampedArray(M.buffer),cq=new Float32Array(32768); -for(var K=0;K<32768;K++){iJ=Math.sqrt(K)*(1/128);if(bj>1)iJ=(1-iJ)*(bj-1)+1;else iJ=iJ*(bj-1)+1;cq[K]=iJ}for(P=0; -P400)A++;var E=D,n=M,_=w,l=Math.floor(n.d/A),b=Math.floor(n.w/A); -D=e.U(l*b*4);e.scale.eA(E,n.d,n.w,D,l,b,1/A);w=e.U(l*b);e.scale.jm(_,n.d,n.w,w,l,b,1/A);e.round(w,1); -var y=e.t8(w,new hk(0,0,l,b));if(y.qj())return 1;var p=Math.round((y.d+y.w)/2/15),k=Date.now(),S=e.U(l*b*4); -e.ag9(D,S);var Z=Int16Array,z=new Z(l*b*24),j=new Z(64),R=new Z(64),a=new Z(64),m=new Z(64);for(var H=3; -H0){var H=Math.floor(K*gu),o=K-H*2*l; -bV.push({x:o-l,y:H-b,H:N[K],Tk:-1})}}bV.sort(function(eA,is){return is.H-eA.H});var dg=new Int32Array(l*b),bG=[]; -for(var K=0;K>2]=fs+1}if(d)console.log(Date.now()-k,"copied back"); -k=Date.now();e.C1.xJ(gz,aO,V,null,1e3);if(d)console.log(Date.now()-k,"poisson smooth");k=Date.now(); -e.eJ(gz,V,F,X);return 0};e.sQ.D3=function(D,M,s,F,X,d){return e.sQ.cO(D+X.x,M+X.y,s,F)&&d[(M+X.y)*s+(D+X.x)]==-1?0:1e9}; -e.sQ.ac8=function(D,M,s,F,top,X,d,V){var $=Date.now(),w=[-1,0,0,-1,1,0,0,1],q=1e99,u=[],B=[],r=2*(V*2*3+V*2),P=null,A=0,E=0,n=0,_=1e99; -while(!0&&Date.now()<$+12e3){n++;var l=null,b=q;for(var y=0;y1){if(D[K]==D[c]){var f=0; -f+=e.sQ.qx(z+R.x,j+R.y,z+p.x,j+p.y,s,F,M,X);f+=e.sQ.qx(H+R.x,o+R.y,H+p.x,o+p.y,s,F,M,X);u[k]=K;u[k+1]=c; -B[k]=f;B[k+1]=f;k+=2}else{var i=top[D[c]],h=S,N=0,C=0,I=0;S++;N+=e.sQ.qx(z+R.x,j+R.y,z+p.x,j+p.y,s,F,M,X); -N+=e.sQ.qx(H+R.x,o+R.y,H+p.x,o+p.y,s,F,M,X);C+=e.sQ.qx(z+i.x,j+i.y,z+p.x,j+p.y,s,F,M,X);C+=e.sQ.qx(H+i.x,o+i.y,H+p.x,o+p.y,s,F,M,X); -I+=e.sQ.qx(z+i.x,j+i.y,z+R.x,j+R.y,s,F,M,X);I+=e.sQ.qx(H+i.x,o+i.y,H+R.x,o+R.y,s,F,M,X);u[k]=K;u[k+1]=h; -B[k]=N;B[k+1]=N;k+=2;u[k]=c;u[k+1]=h;B[k]=C;B[k+1]=C;k+=2;u[k]=h;u[k+1]=V+1;B[k]=I;B[k+1]=0;k+=2}}}u[k]=V; -u[k+1]=K;B[k]=a;B[k+1]=0;k+=2;u[k]=K;u[k+1]=V+1;B[k]=m;B[k+1]=0;k+=2;Z+=Math.min(a,m)}if(Z>b)continue; -var J=e.Jg.Zt(S,k,V,V+1,u,B,b);if(J.ZC=q){break}q=b; -D=l;if((n&3)==0){if(b*1.03>=_)break;_=b}if((n&3)==0){var gY=0*top.length;for(var K=0;KgY; -K++){if(D.indexOf(K)!=-1)continue;top.splice(K,1);for(var c=0;cK)D[c]--;K--}}}return D}; -e.sQ.a1D=function(D,M,s,F,X,d){for(var K=0;K>1)};e.sQ.a4h=function(D,M,s,F,X,d){var top=[]; -for(var K=0;K<60;K++){var V=e.sQ.ai(top,25,s,F,X,D,M);if(V==null)break;else top.push(V)}if(top.length==0)return null; -var $=[];for(var K=0;K100){var V;V=e.sQ.ai(top,0,s,F,X,D,M,w,q); -if(V==null)return null;top.push(V);B=0}}$.push(u)}return{top:top,xS:$}};e.sQ.qx=function(D,M,s,F,X,d,V,$){if(D==s&&M==F)return 0; -if(D<0||M<0||D>=X||M>=d||s<0||F<0||s>=X||F>=d||$[M*X+D]!=-1||$[F*X+s]!=-1)return 1e7;var w=M*X+D<<2,q=F*X+s<<2,u=V[w]-V[q],B=V[w+1]-V[q+1],r=V[w+2]-V[q+2]; -return 1+(u*u+B*B+r*r)};e.sQ.cO=function(D,M,s,F){return D>=0&&D=0&&M=F)return X+1}return X};e.sQ._M=function(D,M,s,F,X){var d=16,r=0;if(M-D<=d){s.push(99,D,M); -return}e.sQ.Pe(D,M,F,X);var V=-1,$=-1;for(var K=4;K<24;K++){var w=X[2*K+1]-X[2*K];if(w>$){$=w;V=K}}var q=D+M>>1,u=e.sQ.ar5(q,D,M,F,V),B=-1; -for(var K=D;K<=M;K++)if(F[24*K+V]==u){if(B==-1)B=K;r=K}if(D+8M-r)q=B;else if(r+1w)F[(d<<1)+1]=V}}}; -e.sQ.OG=function(D,M,s){var F=0,K=0;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F; -K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F; -K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F; -K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F; -K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F; -K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F; -K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F; -K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F; -K++;F=s[D+K];s[D+K]=s[M+K];s[M+K]=F;K++};e.sQ.nj=function(D,M,s,F){var X=s+F>>>1,d=D[24*X+M];while(s<=F){while(D[24*s+M]d)F--;if(s<=F){if(D[24*s+M]!=D[24*F+M])e.sQ.OG(s*24,F*24,D);s++;F--}}return s};e.sQ.ar5=function(D,M,s,F,X){var d=0; -while(M!=s){d=e.sQ.nj(F,X,M,s);if(D>1; -K>0;K>>=1,X--){for(d=0;d>X&1)!=0;if(V){D+=s+"["+d+"] = "+M+"["+(-K+d)+"] - "+M+"["+d+"]; "}else{D+=s+"["+d+"] = "+M+"["+(K+d)+"] + "+M+"["+d+"]; "}}F=M; -M=s;s=F;D+="\n"}console.log(D)};e.sQ.aqa=function(O,D,M){var s=D,F=M,X=s,d=0,K,$,w;while(O>>d!=2)d++; -var V=d;for(K=O>>1;K>0;K>>=1,d--){for($=0;$>d&1)!=0;if(w)F[$]=s[-K+$]-s[$];else F[$]=s[K+$]+s[$]}X=s; -s=F;F=X}if((V&1)==1)for(K=0;Ks)s=d;if(VX)X=V}return[M,F,s,X]};e.abt=function(D,M,s,F,X){function d(Y,Q,hF,hv){return Math.sqrt((Y-hF)*(Y-hF)+(Q-hv)*(Q-hv))}function V(Y,Q){return Y>=0&&Y=0&&Q=M)return M-1;return Y}function w(Y){if(Y<0)return 0;if(Y>=s)return s-1;return Y}function q(K,Y){var Q=Y[3]*(1/255),hF=F[K]+Y[0]*Q; -if(hF>255)hF=255;F[K]=hF;hF=F[K+1]+Y[1]*Q;if(hF>255)hF=255;F[K+1]=hF;hF=F[K+2]+Y[2]*Q;if(hF>255)hF=255; -F[K+2]=hF}function u(Y,Q,hF){if(!h(Y,Q))return;if(hF[3]<0)hF[3]=0;q((Q*M+Y)*4,hF)}function B(Y){var Q=Y.slice(0,3); -Q[3]=0;return Q}var r=M/800;function P(Y){return Math.round(Y*r)}function A(){for(var K=0;K<=300;K++){C[K]=E(K)}}function E(s){var Y=.8,Q=.2,hF=Y*Q,hv=s/60%2-1,bV=hF*(1-hv*hv),gu=Q-hF,dg; -if(s<60){dg=[hF+gu,bV,0]}else if(s<120){dg=[bV,hF,0]}else if(s<180){dg=[0,hF,bV]}else if(s<240){dg=[0,bV,hF]}else if(s<300){dg=[bV,0,hF]}else{dg=[hF,0,bV]}return[(dg[0]+gu)*255,(dg[1]+gu)*255,(dg[2]+gu)*255]}function n(s){return C[~~s]}function _(Y){return 1-l(Y)}function l(Y){return Y-~~Y}function b(Y,Q,hF,hv){f(Y,Q,hF,0,Q+1,1,hv)}function y(Y,Q,hF,hv,bV,gu){f(Y,Q,hF,0,hv,1,bV,gu)}function p(Y){for(var K=0; -KQ||ds<=Q-bV)break;var gE=(ds-Q+bV)/bV;iJ[3]=hO-hv*(gu==1?gE:Math.pow(gE,gu)); -q((fs*M+eg)*4,iJ)}da=w(bj+d5);for(var fs=da;fs>c5;fs--){var ds=d(eg,fs,dc,bj);if(ds>Q||ds<=Q-bV)break; -var gE=(ds-Q+bV)/bV;iJ[3]=hO-hv*(gu==1?gE:Math.pow(gE,gu));q((fs*M+eg)*4,iJ)}}if(dg>0){f(Y,Q+dg,iJ,iJ[3],dg,1,0,0,!0)}if(bG>0){f(Y,Q-bV,N(hF),-hF[3],bG,1,0,0,!0)}}function Z(Y,Q,hF,hv,bV,gu){f(Y,Q,hF,hF[3],Q+1,1,hv,bV,gu)}function z(Y,Q,hF,hv,bV){if(bV==null)bV=!1; -var gu=Y.x,dg=Y.y;hv*=J;if(!bV){Q=i(Q);hF=i(hF)}var bG=$(gu-Q),gS=$(gu+Q);for(var dc=bG;dcQ||eg<=Q-hF)break;var iQ=(Q-eg)/hF,d5=n(300*iQ); -d5[3]=hv;q((aO*M+dc)*4,d5)}hO=w(dg+iJ);for(var aO=hO;aO>gz;aO--){var eg=d(dc,aO,gu,dg);if(eg>Q||eg<=Q-hF)break; -var iQ=(Q-eg)/hF,d5=n(300*iQ);d5[3]=hv;q((aO*M+dc)*4,d5)}}}function j(I,Y){var Q=I.Jk,hF=I.Ul,hv=Y.slice(0),bV=Y[3]*J,gu=Math.abs(hF.y-Q.y)>Math.abs(hF.x-Q.x); -if(gu){var dg=Q.x;Q.x=Q.y;Q.y=dg;dg=hF.x;hF.x=hF.y;hF.y=dg}if(Q.x>hF.x){var dg=Q;Q=hF;hF=dg}var bG=hF.x-Q.x,gS=hF.y-Q.y,dc=bG==0?1:gS/bG,bj=Math.round(Q.x),iJ=Q.y+dc*(bj-Q.x),hO=_(Q.x+.5),gz=bj,aO=~~iJ; -if(gu){hv[3]=bV*_(iJ)*hO;u(aO,gz,hv);hv[3]=bV*l(iJ)*hO;u(aO+1,gz,hv)}else{hv[3]=bV*_(iJ)*hO;u(gz,aO,hv); -hv[3]=bV*l(iJ)*hO;u(gz,aO+1,hv)}var eg=iJ-dc;bj=Math.round(hF.x);iJ=hF.y+dc*(bj-hF.x);hO=l(hF.x+.5); -var iQ=bj,d5=~~iJ;if(gu){hv[3]=bV*_(iJ)*hO;u(d5,iQ,hv);hv[3]=bV*l(iJ)*hO;u(d5+1,iQ,hv)}else{hv[3]=bV*_(iJ)*hO; -u(iQ,d5,hv);hv[3]=bV*l(iJ)*hO;u(iQ,d5+1,hv)}if(gu){for(var da=gz+1;da<=iQ-1;da++){hv[3]=bV*_(eg);u(~~eg,da,hv); -hv[3]=bV*l(eg);u(~~eg+1,da,hv);eg+=dc}}else{for(var da=gz+1;da<=iQ-1;da++){hv[3]=bV*_(eg);u(da,~~eg,hv); -hv[3]=bV*l(eg);u(da,~~eg+1,hv);eg+=dc}}}function R(Y,Q,hF,hv){for(var K=0;K<4;K++){var bV=Y.Vr(Q+1.3*K,hF); -j(bV,hv,1)}}function eo(Y,Q){this.x=Math.round(Y);this.y=Math.round(Q)}var a=Math.PI/180;eo.prototype.Vr=function(Y,Q){Y=Y*a; -var hF=this.x+Q*Math.cos(Y),hv=this.y+Q*Math.sin(Y);return new m(this.x,this.y,hF,hv)};eo.prototype.a5X=function(Y,Q){Y=Y*a; -var hF=this.V9+Q*Math.cos(Y),hv=this.ams+Q*Math.sin(Y);return new eo(hF,hv)};function m(Y,Q,hF,hv){this.Jk=new eo(Y,Q); -this.Ul=new eo(hF,hv)}m.prototype.r0=function(Y){var Q=Y*this.Jk.x+(1-Y)*this.Ul.x,hF=Y*this.Jk.y+(1-Y)*this.Ul.y; -return new eo(Q,hF)};var G=k,L=Z,H=b,o=y,c=z,f=S,i=P,h=V,N=B,C=[];A();for(var K=0;Kd){X=K;d=Math.abs(D[K][F])}e.B7.aqE(D,F,X);for(var K=F+1;K=0;K--){if(D[K][K]==0)return 1;var w=D[K][s]/D[K][K];M[K]=w;for(var $=K-1;$>=0;$--){D[$][s]-=D[$][K]*w; -D[$][K]=0}}return 0};e.B7.aqE=function(D,M,s){var F=D[M];D[M]=D[s];D[s]=F};e.B7.ahy=function(D){var M=D.length,s=e.B7.Q2(M,M); -for(var K=0;K255?255:M};e.UY.transform=function(D,M,s){var F=e.UY.Lc,X=D.i.length;for(var K=0;K>1]=r;w[$+1]=V[u];V[u]=$+1;$+=4;w[$]=u;q[$+2>>1]=P;w[$+1]=V[B];V[B]=$+1;$+=4}return{gB:w,aca:q,acN:V}}; -e.Jg.Zt=function(D,M,s,F,X,d,V){var $=1,w=e.Jg.lx(D,M,s,F,X,d),q=w.gB,u=w.aca,B=w.acN,r=new Uint32Array(D),P=new e.Jg.FU(D),E=1,y=0; -P.push(s);P.push(F);var A=new e.Jg.FU(D),n=new Uint8Array(D),_=new Uint32Array(D);n[s]=1;n[F]=2;var l=new Uint32Array(D),b=new Uint32Array(D); -b[s]=b[F]=0;l[s]=l[F]=1;while(!0){var p=-1,a=0,H=1e30;while(!P.RF()&&p==-1){var k=P.top(),S=n[k],Z=B[k]-1; -while(Z!=-1){var z=q[Z],j=n[z],R=Z^S-1<<2;if(u[R+2>>1]!=0){if(j==0){e.Jg.Yq(k,Z,z,n,_,b,l);P.push(z)}else if(j==S&&l[z]<=l[k]&&b[z]>b[k])e.Jg.Yq(k,Z,z,n,_,b,l); -else if(j!=S){p=R}}Z=q[Z+1]-1}if(p!=-1)break;P.pop()}if(p==-1){break}E++;var m=p;while(m!=-1){r[a]=m; -a++;m=_[q[m^4]]-1}var G=a>>1;for(var K=0;K>1]);y+=H;if(y>=V)return{Kh:null,ZC:y};for(var K=0; -K>1]-=H;u[c+2>>1]+=H;if(u[o+2>>1]==0&&n[k]==n[z]){if(n[k]==1){_[z]=0; -A.push(z)}if(n[k]==2){_[k]=0;A.push(k)}}}while(!A.RF()){var k=A.pop(),S=n[k],Z=B[k]-1,f=S==1?4:0,i=0,h=0,N=1e9; -while(Z!=-1){var z=q[Z],C=Z^4,R=Z^f;if(n[z]==S&&u[R+2>>1]>0&&e.Jg.apF(z,s,F,_,q,E,l,b)+1>1]>0){P.push(z)}if(_[z]==Z+1){_[z]=0;A.push(z)}}Z=q[Z+1]-1}n[k]=0;P.remove(k)}}var I=[]; -for(var K=0;K>1)}if(n[z]==1&&n[k]!=1){I.push(M+K>>1)}}return{Kh:I,ZC:y}}; -e.Jg.Yq=function(D,M,s,F,X,d,V){F[s]=F[D];X[s]=M+1;d[s]=d[D]+1;V[s]=V[D]};e.Jg.apF=function(D,M,s,F,X,d,V,$){var w=D,q=F[D]-1,u=0; -while(q!=-1&&V[D]!=d){D=X[q^4];q=F[D]-1;u++}if(q==-1&&D!=M&&D!=s)return 1e9;var B=$[D]+u;u=0;q=F[w]-1; -while(w!=D){$[w]=B-u;u++;V[w]=d;w=X[q^4];q=F[w]-1}return B};e.Jg.a0t=function(D,M,s,F,X,d){var V=e.Jg.lx(D,M,s,F,X,d),$=V.gB,w=V.aca,q=V.acN,u=0,B=0,r=new Uint32Array(D*2),P=new e.Jg.yO(D),A=0; -while(!0){P.reset();P.push(s);for(var K=0;K>1]>0&&A!=s){r[A<<1]=E+1;r[(A<<1)+1]=n;P.push(A)}n=$[n+1]-1}if(r[F<<1]!=0){break}}if(r[F<<1]==0){break}var _=1e30; -A=F;while(!0){var l=r[A<<1]-1;if(l==-1)break;var b=r[(A<<1)+1];_=Math.min(_,w[b+2>>1]);A=l}A=F;while(!0){var l=r[A<<1]-1; -if(l==-1)break;var b=r[(A<<1)+1],y=b^4;w[b+2>>1]-=_;w[y+2>>1]+=_;A=l}u+=_}var p=[];for(var K=0;K>1)}if((r[A<<1]!=0||A==s)&&r[l<<1]==0&&l!=s){p.push(M+K>>1)}}return{Kh:p,ZC:u}}; -e.Jg.yO=function(D){D|=D>>1;D|=D>>2;D|=D>>4;D|=D>>8;D|=D>>16;this.Ne=new Uint32Array(D+1);this.as=D; -this.D1=0;this.ml=0};e.Jg.yO.prototype={push:function(D){var M=this.ml;this.Ne[M]=D;this.ml=M+1&this.as},pop:function(){var D=this.D1,M=this.Ne[D]; -this.D1=D+1&this.as;return M},RF:function(){return this.D1==this.ml},reset:function(){this.D1=0;this.ml=0}}; -e.Jg.FU=function(D){D|=D>>1;D|=D>>2;D|=D>>4;D|=D>>8;D|=D>>16;this.Ne=new Uint32Array(D+1);this.Ec=new Uint32Array(D+1); -this.as=D;this.D1=0;this.ml=0};e.Jg.FU.prototype={top:function(){return this.Ne[this.D1]},alc:function(){return this.Ne[this.ml]},push:function(D){if(this.Ec[D]!=0)return; -this.Ec[D]=this.ml+1;var M=this.ml;this.Ne[M]=D;this.ml=M+1&this.as},pop:function(){var D=this.D1,M=this.Ne[D]; -this.Ec[M]=0;this.D1=D+1&this.as;return M},RF:function(){return this.D1==this.ml},remove:function(D){var M=this.Ec[D]-1; -if(M==-1)return;this.Ec[D]=0;if(M==this.D1){this.pop();return}var s=this.pop();this.Ne[M]=s;this.Ec[s]=M+1},pO:function(K){return K+this.as+1&this.as}}; -e.Jg.iR=function(D,M,s){var F=e.Jg.nj(D,M,s);if(M>>1]; -while(M<=s){while(D[M]F)s--;if(M<=s){e.Jg.OG(D,M,s);M++;s--}}return M};e.Jg.OG=function(D,M,s){var F=D[M]; -D[M]=D[s];D[s]=F};e.nU={};e.nU.aoA=function(D){for(var K=0;K.01){e.nU.Mw(D,K); -continue}var B=e.nU.tV(w);e.X.t(M,B);e.nU.FV(w,[Math.min(B[0],B[2]),Math.min(B[1],B[3]),Math.max(B[0],B[2]),Math.max(B[1],B[3])]); -if(u==2){var r=e.nU.Nu(w),P=new ex(M[0],M[1],M[3],M[4],0,0);P.Ag();if(P.iD==0){r.push(r.shift());P.rotate(Math.PI/2); -P.Ag()}if(P.iD<0){var A=r[0];r[0]=r[1];r[1]=A;A=r[2];r[2]=r[3];r[3]=A}if(P.iw<0){var A=r[0];r[0]=r[3]; -r[3]=A;A=r[1];r[1]=r[2];r[2]=A}if(F)for(var E=0;E<4;E++)r[E]=r[E]*V;e.nU.Ru(w,r)}if(u==4){w.keyOriginLineWeight.v*=V; -var n=e.nU.yk(w);e.X.t(M,n);e.nU.af4(w,n)}}};e.nU.eh=function(D,M){var s=M.g;for(var K=0;K=0}; -e.O.ni=function(D){var M={},s=null,F=0,X={M:2,L:2,Q:4,C:6};for(var K=0;K5||C.type==0||C.type==3)continue;var I=C.j9.L0(C.W)||C.Gd.L0(C.Gd);if(!I){var m=C.j9.x*(C.W.y-C.Gd.y)+C.W.x*(C.Gd.y-C.j9.y)+C.Gd.x*(C.j9.y-C.W.y); -if(Math.abs(m)<1e-6)I=!0}if(I)C.type--}return H};e.O.TD=function(){function D(F,X,d,V){if(!V&&F.Gd.L0(F.W)&&X.j9.L0(X.W)){d.I.push(X.W.x,X.W.y); -d.K.push("L")}else{d.I.push(F.Gd.x,F.Gd.y,X.j9.x,X.j9.y,X.W.x,X.W.y);d.K.push("C")}}function M(F,X,K,d,V,$){var w=X[K]; -F.I.push(w.W.x,w.W.y);F.K.push("M");for(var q=K;q5)continue;var V=F[K].length;if(V==0)continue; -if(K==F.length-1)break;var $=F[K].type==3;M(d,F,K+1,V,$,X);if(!$)d.K.push("Z");K+=V}return d}return s}(); -e.O.a4x=function(D){var M=D.I,s=[],F,X=0;for(var K=0;K>>1}}return X=3||P)d[K]=1}var E=[];for(var $=1;$>>1); -E.push([n,_]);e.O.Xy(X,M,s,w,$)}}return E};e.O.Xy=function(D,M,s,F,X){var d=[X*M+F],V=D[X*M+F];D[X*M+F]=65535; -while(d.length!=0){var K=d.pop();D[K]=0;if(D[K+M]==V){d.push(K+M);D[K+M]=65535}if(D[K-M]==V){d.push(K-M); -D[K-M]=65535}if(D[K-1]==V){d.push(K-1);D[K-1]=65535}if(D[K+1]==V){d.push(K+1);D[K+1]=65535}}};e.O.agU=function(D,M,s,F,X){var d=[0,-1,1,0,0,1,-1,0],u=1; -function V(r,P,u){var K=q*M+w,A=0;if(u==0)A=K-M;else if(u==1)A=K;else if(u==2)A=K-1;else if(u==3)A=K-M-1; -return D[A]}var $=[],w=F,q=X,B=V(w,q,u);do{$.push(w,q);w+=d[u*2];q+=d[u*2+1];if(V(w,q,u)!=B)u=u+1&3; -else if(V(w,q,u+3&3)!=B)u=u;else if(V(w,q,u+2&3)!=B)u=u+3&3}while(w!=F||q!=X);return $};e.O.jd=function(D,M,s){var F=D.length-2; -if(s&&s.length!=0){var X=s[0]*2,d=s[s.length-1]*2,V=X==0?F:X-2,$=D.slice(d);for(var K=0;Kr||_==r&&n>P){r=_; -B=K;P=n}}if(r=0},M=function(F,X,d,V,$,w,q,u){var B=q-d,r=u-V,P=$-d,A=w-V,E=F-d,n=X-V,_=B*B+r*r,l=B*P+r*A,b=B*E+r*n,y=P*P+A*A,p=P*E+A*n,k=1/(_*y-l*l),S=(y*b-l*p)*k,Z=(_*p-l*b)*k; -return S>=0&&Z>=0&&S+Z<1},s=function(F){var O=F.length>>>1,K=0;if(O<3)return[];var X=[],d=[];for(var K=0; -K3){var $=d[(K+0)%V],w=d[(K+1)%V],q=d[(K+2)%V],u=F[2*$],B=F[2*$+1],r=F[2*w],P=F[2*w+1],A=F[2*q],E=F[2*q+1],n=!1; -if(D(u,B,r,P,A,E)){n=!0;for(var _=0;_3*V)break}X.push(d[0],d[1],d[2]); -return X};return s}();e.O.al5=function(D,M){var s={},F={K:[],I:[]};for(var K=0;Ks){var d=s; -s=M;M=d}if(X[M+","+s])return;X[M+","+s]=!0;F.K.push("M","L");F.I.push(D[M],D[M+1],D[s],D[s+1])};e.O.mA=function(D,M){var s=[],F=D.length; -for(var K=0;K=0;K--){var V=Math.pow(10,K);if(5*V*D<=d){F=5*V; -X=10;break}if(2*V*D<=d){F=2*V;X=4;break}if(1*V*D<=d){F=1*V;X=10;break}}if(F==0){F=1;X=10}var $=Math.ceil(F*D),w=e.U($*e.fk.fg*4); -e.BK(w,4278190080|s);for(var K=0;K1||F==1&&$>20)for(var K=1;K>16&255;D[M+1]=s>>8&255;D[M+2]=s&255}; -e.fk.a7k=function(D,M,s,F,X){var d=D.Ar.d,V=D.Ar.w,$=e.fk.fg,w=M&255,q=M>>8&255,u=M>>16&255,k,S,Z,z; -M=Math.round(w*.6)<<16|Math.round(q*.6)<<8|Math.round(u*.6);e.fk.aik(Math.round(w*.8)<<16|Math.round(q*.8)<<8|Math.round(u*.8),s); -var B=this.apR(D.$,M,s),r=D.wT(0,0),P=D.wT(d,V),A=Math.floor(r.x/B.step)*B.step,E=Math.ceil(P.x/B.step)*B.step,n=Math.floor(r.y/B.step)*B.step,_=Math.ceil(P.y/B.step)*B.step,l=D.gU(A,n),b=D.gU(E,n),y=B.step*D.$,p=Math.ceil(y); -k=D.cG.data;S=new hk(0,0,d,$);Z=new hk(0,0,p,$);z=new hk(0,Math.round($*.08),e.fk.Nx,e.fk.Nx);for(var K=0; -K<(E-A)/B.step;K++){Z.x=Math.round(l.x+K*y);e.eJ(B.to,Z,k,S,Z);var j=(A+K*B.step).toString(10);for(var R=0; -R>>24;A+=k;E+=k*(p>>>16&255);n+=k*(p>>>8&255); -_+=k*(p&255)}if(A!=0){var S=1/A;F[r*X+P]=A/(l*b)<<24|E*S<<16|n*S<<8|_*S}else F[r*X+P]=0}};e.Z={};e.Z.a0b=function(D,M,s){var F=128,K=0,X=s.d,d=s.w; -for(var V=0;V=F&&($==0||D[K-1]>>2]}}}; -e.Z.akq=function(D,M,s,F,X,d){var V=s.d,$=s.w,w=0,q=0,u=V,B=$;if(F){w=F.x-s.x;q=F.y-s.y;u=w+F.d;B=q+F.w}var r=new Uint8Array(M.buffer),P=new Uint32Array(M.buffer); -for(var A=q;A>>1<<24|255;else P[K]=255<<24|(n<<16|n<<8|n)}}; -e.e8={};e.e8.uh=function(D,M,s){var F,X;if(s=="front"){F=D.rect.clone();X=e.e8.adl}if(s=="union"){F=D.rect.bk(M.rect); -X=e.e8.bk}if(s=="difference"){F=M.rect.clone();X=e.e8.aoD}if(s=="intersection"){F=D.rect.Nm(M.rect); -X=e.e8.Nm}if(s=="xor"){F=D.rect.bk(M.rect);X=e.e8.a3z}if(F.qj())return null;var d=e.U(F.Y());e.b7(M.channel,M.rect,d,F); -var V=e.U(F.Y());e.b7(D.channel,D.rect,V,F);X(V,d,d);var $=e.t8(d,F);if($.qj())return null;if(!$.L0(F)){var w=e.U($.Y()); -e.b7(d,F,w,$);d=w;F=$}return{channel:d,rect:F}};e.e8.adl=function(D,M,s){for(var K=0;KX+F)break}}; -e.am.prototype.a5c=function(D,M,s,F){var X=Date.now(),d=1.96,$=0;if(s==null)s=5e-5;if(F==null)F=1e9; -var V=1-d,O=this.rows,w=this.ws,q=this.Ml,u=this.si,B=this.LK;while(!0){var r=0;for(var K=0;KX+F)break}};e.b3={};e.b3.gI=function(D,M,s){return{t:"Objc",v:{classID:"CrPt",Hrzn:{t:"doub",v:D},Vrtc:{t:"doub",v:M},Cnty:{t:"bool",v:s}}}}; -e.b3.t=function(D,M){for(var K=0;K=M[M.length-1])return s[M.length-1];var K=1;while(M[K]=M[M.length-1])return s[M.length-1]; -var K=1;while(M[K]100)X[1]=.4*X[1];if(X[2]>150)X[1]=.7*X[2]}return X};e.b3.lW=function(D,M){var s=new Uint8Array(D.length); -for(var K=0;KE){var _=n;n=E;E=_}M[K]=r+e.style.a8x(E,n,P)}};e.style.a8x=function(D,M,s){return(.5-s)*D};e.style._g=function(D,M,s,F){var X=new Int16Array(M*s*2); -e.style.a5C(D,X,M,s,128);return X};e.style.afr=function(D,M,s,F){var X=s*F;for(var K=0;K=0;V--)e.style.sx(M,D,s,K+V<<1,1)}for(var d=F-2; -d>=0;d--){var K=d*s;for(var V=0;V<=s-1;V++)e.style._P(M,D,s,K+V<<1,1);for(var V=1;V<=s-1;V++)e.style.sx(M,D,s,K+V<<1,-1); -for(var V=s-2;V>=0;V--)e.style.sx(M,D,s,K+V<<1,1)}};e.style.sx=function(D,M,s,F,X){var d=(F>>>1)+X<<1,V=D[F],$=D[F+1],w=D[d]+X,q=D[d+1],u=w*w+q*q,B=V*V+$*$; -if(q!=16383&&(V==16383||Math.sqrt(u)+(.5-M[(F>>>1)+q*s+w]*(1/255))>>1)+$*s+V]*(1/255)))){D[F]=w; -D[F+1]=q}};e.style._P=function(D,M,s,F,X){var d=(F>>>1)+X*s<<1,V=D[F],$=D[F+1],w=D[d],q=D[d+1]+X,u=w*w+q*q,B=V*V+$*$; -if(w!=16383&&(V==16383||Math.sqrt(u)+(.5-M[(F>>>1)+q*s+w]*(1/255))>>1)+$*s+V]*(1/255)))){D[F]=w; -D[F+1]=q}};e.style.anz=function(D,M,s,F){var X=s*F;for(var K=0;K=0;V--)e.style.mG(M,D,s,K+V<<1,1)}for(var d=F-2;d>=0;d--){var K=d*s;for(var V=0;V<=s-1; -V++)e.style.Rs(M,D,s,K+V<<1,1);for(var V=1;V<=s-1;V++)e.style.mG(M,D,s,K+V<<1,-1);for(var V=s-2;V>=0; -V--)e.style.mG(M,D,s,K+V<<1,1)}};e.style.mG=function(D,M,s,F,X){var d=(F>>>1)+X<<1,V=D[F],$=D[F+1],w=D[d]+X,q=D[d+1],u=w*w+q*q,B=V*V+$*$; -if(q!=16383&&(V==16383||u>>1)+X*s<<1,V=D[F],$=D[F+1],w=D[d],q=D[d+1]+X,u=w*w+q*q,B=V*V+$*$; -if(w!=16383&&(V==16383||u=0;$--)M[$+d-s]=Math.min(M[$+d-s],M[$+d-s+1]);for(var w=F-2;w>=0;w--){var K=w*s+s-1;M[K]=Math.min(M[K],Math.min(M[K+s]+1,M[K+s-1]+Math.SQRT2)); -for(var $=s-2;$>=1;$--){var q=M[--K],u=Math.min(M[K+1]+1,Math.min(M[K+s-1]+Math.SQRT2,Math.min(M[K+s]+1,M[K+s+1]+Math.SQRT2))); -if(u=0;w--){if(D[w*s+V]>X)$=0;else $++;d[w]=$}$=s+F;for(var w=0; -wX)$=0;else $++;M[w*s+V]=$0)D[K]=Math.max(0,Math.min(255,F+M*2*(e.style.Hk(K)-128)))}else for(var K=0; -K0)D[K]=Math.max(0,Math.min(255,F+Math.min(F*3,M*2*(e.style.Hk(K)-128))))}}; -e.style.Hk=function(D){D=D^61^D>>16;D=D+(D<<3);D=D^D>>4;D=D*668265261;D=D^D>>15;return D&255};e.Dn={}; -e.Dn.tD=function(D,M,s){var F=D.canvas,X=U.F(),d=Math.floor;if(F.width!=d(M*X)||F.height!=d(s*X))U.ts(F,M,s,D)}; -e.Dn.g3=function(D,M,s,F,X,d){e.Dn.tD(D,M,s);if(d==null)d=!1;var V=X.channel,$=X.rect,w=!X.isEnabled; -M=Math.floor(M*U.F());s=Math.floor(s*U.F());if(M*s==0)return;var q=D.createImageData(M,s),u=q.data,B=1/M,r=1/s; -for(var K=0;K=$.x+$.d||_<$.y||_>=$.y+$.w)l=X.color;else l=V[(_-$.y)*$.d+(n-$.x)];l=255*(255-X.Cv)+l*X.Cv>>>8; -if(d)l=170+Math.round(.4*(l-170));u[E]=l;u[E+1]=l;u[E+2]=l;u[E+3]=255}D.putImageData(q,0,0);if(w)e.Dn.iA(D,M,s)}; -e.Dn.NH=[];e.Dn.a6k=function(D,M,s,F){var X,d,V,$=U.F();M=Math.floor($*M);s=Math.floor($*s);X=Math.ceil(Math.max(M,s)*.35); -d=M-X;V=s-X;var w=e.Dn.NH[X];if(w==null){var q=U.p("canvas"),u=q.getContext("2d");q.width=q.height=X; -u.fillStyle="#eeeeee";u.fillRect(0,0,X,X);var B=Math.round(X*.27),r=u.lineWidth=Math.max(1,Math.round(X*.12)),P=r/2; -u.strokeRect(1+P,1+P,X-r-2,X-r-2);u.strokeRect(B+P,B+P,X-B-B-r,X-B-B-r);w=e.Dn.NH[X]=u.getImageData(0,0,X,X)}D.putImageData(w,d,V)}; -e.Dn.AC=[];e.Dn.ak8=function(D,M,s){var F,X,d,V=U.F();M=Math.floor(V*M);s=Math.floor(V*s);F=Math.ceil(Math.max(M,s)*.35); -X=M-F;d=s-F;var $=e.Dn.AC[F];if($==null){var w=U.p("canvas"),q=w.getContext("2d");w.width=w.height=F; -q.fillStyle="#eeeeee";q.fillRect(0,0,F,F);q.lineWidth=1;q.strokeRect(2.5,2.5,F-5,F-5);var u=q.createImageData(3,3); -e.BK(u.data,4278190080);u.data[4*4]=u.data[4*4+1]=u.data[4*4+2]=238;q.putImageData(u,1,1);q.putImageData(u,F-4,1); -q.putImageData(u,1,F-4);q.putImageData(u,F-4,F-4);$=e.Dn.AC[F]=q.getImageData(0,0,F,F)}D.putImageData($,X,d)}; -e.Dn.aor=function(D,M,s,F,X){e.Dn.tD(D,M,s);M=Math.floor(M*U.F());s=Math.floor(s*U.F());var d=M/F.d; -if(M*s==0)return;D.fillStyle="#999999";D.setTransform(1,0,0,1,0,0);D.clearRect(0,0,M,s);var V=e.Dn.ES; -if(V==null){V=e.Dn.ES=JSON.parse(JSON.stringify(aX.us.default));V.strokeEnabled.v=!0}V.strokeStyleLineWidth.v.val=1*U.F()/d; -D.fillStyle="#ffffff";D.scale(d,d);e.A.jU(X.g,D,0,0);e.A.jU(X.g,D,0,0,V)};e.Dn.iz=null;e.Dn.LC=function(D,M,s,F,X,d,V,$){e.Dn.tD(D,M,s); -M=Math.floor(M*U.F());s=Math.floor(s*U.F());if(M*s==0)return;var w=Math.max(M,s),q=e.Dn.iz;if(q==null||q.width=A||p=n){u[b]=k;u[b+1]=k;u[b+2]=k;u[b+3]=255}else{var S=(p-d.y)*d.d+(y-d.x)<<2,Z=X[S+3]*(1/255); -u[b]=X[S+0]*Z+k*(1-Z);u[b+1]=X[S+1]*Z+k*(1-Z);u[b+2]=X[S+2]*Z+k*(1-Z);u[b+3]=255}}if($!=null)for(var K=0; -K5||d.type==0||d.type==3)continue;if(M!=null&&M.indexOf(X)==-1)continue; -if(s!=null&&s.indexOf(K)==-1)continue;F.push(d.j9.x);F.push(d.j9.y);F.push(d.W.x);F.push(d.W.y);F.push(d.Gd.x); -F.push(d.Gd.y)}return F};e.A._J=function(D,M,s,F){var X=0,d=-1;for(var K=0;K5||V.type==0||V.type==3)continue;if(s!=null&&s.indexOf(d)==-1)continue; -if(F!=null&&F.indexOf(K)==-1)continue;V.j9.SG(D[X],D[X+1]);V.W.SG(D[X+2],D[X+3]);V.Gd.SG(D[X+4],D[X+5]); -X+=6}};e.A.VR=function(D,M,s,F){var X=e.A.mT(D,s,F);e.O.t(X,M,X);e.A._J(X,D,s,F)};e.A.abU=function(D,M,s,F){var X=e.A.mT(D,s,F); -e.X.t(M,X);e.A._J(X,D,s,F)};e.A.a4r=function(D,M,s,F){if(s==null&&F==null){var X=e.A.agm(D,40);for(var K=0; -K5){s.push(JSON.parse(JSON.stringify(F)));continue}var X=e.A.ap2(D,K+1,F.length); -X=e.O.QL(X,M);var d=e.A.af9(X);K+=F.length;F=JSON.parse(JSON.stringify(F));F.length=d.length;s.push(F); -for(var V=0;V5)continue;var M=D[K].length;if(!(M==4||M==6||M==8)){K+=M; -continue}for(var s=0;s5)continue; -if(($.type==0||$.type==3)&&$.AY!=-1)d++;if(M!=null&&M.indexOf(d)==-1)continue;if(K==D.length-1)break; -var w=$.type==3,q=$.length,u=$.AY,B=e.A.aos(D,K+1,q,w);if(X==null)X=B;else if(s)X=F(X,B);else if(V){if(M!=null||u==0||u==-1||u==2)X=F(X,B); -else if(u==1)X=X;else if(u==3){X=B;V=!1}}else{if(M!=null||u==0||u==-1||u==1)X=F(X,B);else if(u==2)X=X; -else if(u==3)X=X.Nm(B)}K+=q}if(X==null||X.d<0||X.w<0)X=new hk(0,0,0,0);return X};e.A.amg=new Float64Array(4); -e.A.aos=function(D,K,M,s){var F=e.A.amg;F[0]=1e30;F[1]=1e30;F[2]=-1e30;F[3]=-1e30;var X=D[K+M-1];if(!s)e.A.B5(X.W.x,X.W.y,X.Gd.x,X.Gd.y,D[K].j9.x,D[K].j9.y,D[K].W.x,D[K].W.y,F); -for(var d=K;dB)B=k;if(Sr)r=S}if(qw[2])w[2]=B; -if(r>w[3])w[3]=r};e.A.DN=function(D,M){var s=D.length-3,F=M%s,X=Math.floor(F);if(M<0||X>=s)return null; -var d=D[3+X],V=D[3+(X+1)%s],$=d.W,w=d.Gd,q=V.j9,u=V.W,B=F-X,r=1-B,P=r*r*r*$.x+3*r*r*B*w.x+3*r*B*B*q.x+B*B*B*u.x,A=r*r*r*$.y+3*r*r*B*w.y+3*r*B*B*q.y+B*B*B*u.y; -return new eo(P,A)};e.A.Sh=function(D){var M=2,s=e.A.KK(D),F=!1;for(var K=2;K1)D=e.A.op(D);var d=e.O.TD(D);return{a3N:Typr.U.pathToSVG({crds:d.I,cmds:d.K},M),pq:F?1:0}}; -e.A.op=function(D){e.A.Ce();var M,s=e.A.X5(D),F=[];for(var K=0;K=0;K--){var $=V[K][0],w=$.hitTest(d,X);if(w!=null)return{zl:K,wg:s?w.location.index:null}}return{zl:-1}}; -e.A.Tu=function(D,M,s){var F=[[],[],[]];for(var K=0;K5||X.type==0||X.type==3)continue; -var d=s==null?!0:s.indexOf(K)!=-1;if(M.TM(X.W))F[0].push(K);if(M.TM(X.j9)&&d)F[1].push(K);if(M.TM(X.Gd)&&d)F[2].push(K)}return F}; -e.A.a40=function(D,M,s){var F=s.slice(0),X=[null,null],d=-1,$=null;for(var K=2;K=M)return F; -F++}return F};e.A.uY=function(D,M){var s=-1,F=0;for(var K=0;K180?360-A:A; -if(E5)continue; -var d=D[K].length,V;if(K==D.length-1)break;var $=D[K].type==3;if(K==2){if(!e.A.RN(D))V="subtract";else V="unite"}else{if(D[K].AY==0)V="exclude"; -if(D[K].AY==1)V="unite";if(D[K].AY==2)V="subtract";if(D[K].AY==3)V="intersect"}if(D[K].AY!=-1){s=new paper.CompoundPath; -M.push([s,V]);s.fillRule="evenodd";s.fillColor=F}var w=[];for(var q=0;qe.A.At){e.A.At=X}var d=s.d,V=s.w;if(F==null&&e.A.Rk(D)){var $=!0; -for(var K=2;K0)V=!0}if(!d&&$<20)D=e.A.op(D)}for(var K=0; -K5)continue;var q=D[K].length;if(q==0)continue;if(K==D.length-1)break;var u=D[K].type==3,w=D[K].AY; -if(w!=-1&&X==null){var B=["xor","source-over","destination-out","source-in"][w];M.globalCompositeOperation=B}if(D[K].AY!=-1){M.beginPath(); -if(X){var r=X.strokeStyleLineWidth.v.val,P=X.strokeStyleLineAlignment.v.strokeStyleLineAlignment,A=X.strokeStyleLineCapType.v.strokeStyleLineCapType,E=X.strokeStyleLineJoinType.v.strokeStyleLineJoinType,n=X.strokeStyleMiterLimit.v,_=[],l=X.strokeStyleLineDashSet.v; -for(var b=0;b1||Math.abs(d[K*4]-d[K*4+V])>1)s=!0}return!s}else return D.warpValue.v==0&&D.warpPerspective.v==0&&D.warpPerspectiveOther.v==0}; -e.aJ.U=function(D){var M={classID:"warp",warpStyle:{t:"enum",v:{warpStyle:"warpNone"}},warpValue:{t:"doub",v:0},warpPerspective:{t:"doub",v:0},warpPerspectiveOther:{t:"doub",v:0},warpRotate:{t:"enum",v:{Ornt:"Hrzn"}}}; -if(D){M.bounds={t:"Objc",v:{classID:"Rctn",Top:{t:"UntF",v:{type:"#Pxl",val:D.y}},Left:{t:"UntF",v:{type:"#Pxl",val:D.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:D.y+D.w}},Rght:{t:"UntF",v:{type:"#Pxl",val:D.x+D.d}}}}; -M.uOrder={t:"long",v:4};M.vOrder={t:"long",v:4}}return M};e.aJ.aeY=function(D,M,s,F){for(var K=0;K0)u=u-H*u*F; -else B=B+H*B*F}else if(K==1||K==2)u=u-H*u*F;else if(V==1||V==2)B=B+H*B*F}if(s=="warpTwist"){if((K==1||K==2)&&(V==1||V==2)){var o=F*Math.PI/2,y=1+Math.abs(F)*2,c=u*Math.cos(o)-B*Math.sin(o),f=u*Math.sin(o)+B*Math.cos(o); -u=c*y;B=f*y}}if(s=="warpShellLower"||s=="warpShellUpper"){if(s=="warpShellUpper"){K=3-K;B=-B}if(K>2||K==2&&(V==0||V==3)){if(F>0){var i=S+K/3*2*P; -u=Math.sin(k)*i;B=-b*r-P+Math.cos(k)*i;if(V==1||V==2){u=V==1?-a*i:a*i;B=-b*r-P+R*i}}else{if((V==1||V==2)&&K==3){u=V==1?-a*S:a*S; -B=b*r-R*S+P}else if(K==2){B=P-P*(2/3)*Math.cos(k);u=u+P*(2/3)*Math.sin(k)}}}if(s=="warpShellUpper"){K=3-K; -B=-B}}u+=r;B+=P}w=u,q=B;D[$]=w+M.x;D[$+1]=q+M.y}}};e.aJ.akA=function(D,M,s){var F=[];for(var X=0;X<4; -X++)F.push(1-s+X/3*2*s);var d=[];for(var X=0;X<4;X++)d.push(1-M+X/3*2*M);var V=[0,0,0,0],$=[0,0,0,0]; -for(var K=0;K<4;K++)for(var X=0;X<4;X++){var w=2*(4*K+X),q=D[w],u=D[w+1];V[X]+=q/4;$[X]+=u/4}for(var K=0; -K<4;K++)for(var X=0;X<4;X++){var B=F[X],w=2*(4*K+X),q=D[w],u=D[w+1],r=V[X],P=$[X];D[w]=r+B*(q-r);D[w+1]=P+B*(u-P)}var A=D.slice(0); -for(var K=0;K<4;K++)for(var X=1;X<3;X++){var w=2*(4*K+X),q=D[w],u=D[w+1],E=w+(X==1?-2:2),n=D[E],_=D[E+1]; -D[w]=q-n;D[w+1]=u-_}var l=D[0],b=D[1],y=D[8],p=D[9],k=D[16],S=D[17],Z=D[24],z=D[25],j=D[6],R=D[7],a=D[14],m=D[15],G=D[22],L=D[23],H=D[30],o=D[31],c=j-l,f=R-b,i=a-y,h=m-p,N=G-k,C=L-S,I=H-Z,J=o-z; -for(var K=0;K<4;K++){var av=2*K*4,gY=0,f9=0,gl=K==1?.33:.66,Y=1-gl;if(K==0){gY=c;f9=f}if(K==1){gY=Y*c+gl*-I; -f9=Y*f+gl*-J}if(K==2){gY=Y*c+gl*-I;f9=Y*f+gl*-J}if(K==3){gY=-I;f9=-J}D[av]=D[av]+gY/2;D[av+1]=D[av+1]+f9/2; -D[av+6]=D[av+6]-gY/2;D[av+7]=D[av+7]-f9/2}for(var K=0;K<4;K++)for(var X=1;X<3;X++){var w=2*(4*K+X),q=D[w],u=D[w+1],E=w+(X==1?-2:2),n=D[E],_=D[E+1],B=2*K/3; -D[w]=n+B*q;D[w+1]=_+B*u}for(var K=1;K<3;K++)for(var X=1;X<3;X++){var w=2*(4*K+X),q=D[w],u=D[w+1],Q=K==1?-8:-16,hF=K==1?16:8,hv=D[w+Q],bV=D[w+Q+1],gu=D[w+hF],dg=D[w+hF+1],B=K/3; -q=(1-B)*hv+B*gu;u=(1-B)*bV+B*dg;D[w]=q;D[w+1]=u}e.O.gz(A,D,D,M)};e.aJ.aix=function(D,M){return(4-D)*(1/3)}; -e.aJ.a5m=function(D,M){return(1-D)*(3-D)/(3*M)};e.TJ={};e.TJ.afY=function(D,M,s,F,X,d,V,$,w,q){for(var u=0; -u<$;u++)for(var B=0;B>>1; -D[M]=D[M+3]=D[s]=D[s+3]=V;D[M+1]=u;D[M+4]=$;D[s+1]=w;D[s+4]=u;D[M+2]=D[M+5]=D[s+2]=D[s+5]=q};e.TJ.a4K=function(D,M,s,F,X,d){var V=d*3; -for(var K=0;K>2;if(l==E)return $*3+d+V-w>>2;if(l==n)return d*3+$+V-X>>2;return q*3+F+V-u>>2}; -e.TJ._h=function(D,M,s,F,X){if(DM&&M>s)return~~(.5+F+(X-F)*(M-D)/(s-D));else return(F+X>>1)+(M+M-D-s>>2)}; -e.TJ.PJ=function(D,M,K,s){var F=M[K-s-1],X=M[K-s+1],d=M[K],V=M[K+s-1],$=M[K+s+1],w=D[K-s-1],q=D[K-s+1],u=D[K],B=D[K+s-1],r=D[K+s+1],P=Math.abs(q-B)+Math.abs(D[K-s-s+2]-u)+Math.abs(u-D[K+s+s-2])+Math.abs(X-d)+Math.abs(d-V),A=Math.abs(w-r)+Math.abs(D[K-s-s-2]-u)+Math.abs(u-D[K+s+s+2])+Math.abs(F-d)+Math.abs(d-$); -if(P>1<<1; -V+=u[1]>>1<<1}if(D.t50720){var B=D.t50720;$=d+B[0];w=V+B[1]}var r=$-d,P=w-V,A=new Float32Array(r*P*3); -if(D.t277[0]==1){var E=D.t33421;if(E==null){e.TJ.afY(X,M,s,A,d,V,r,P)}else if(E.length!=2||E[0]!=2||E[1]!=2){console.log("Unknown CFA pattern size",E); -e.TJ.jm(X,M,s,A,d,V,r,P,E[0],D.t33422)}else{var n=D.t33422.join(","),_=0;if(n=="0,1,1,2")_=0;else if(n=="1,0,2,1")_=1; -else if(n=="2,1,1,0")_=2;else if(n=="1,2,0,1")_=3;else throw"Unknown CFA pattern "+n;if((r&1)!=0||(P&1)!=0)throw"e"; -e.TJ.alq(X,M,s,A,d,V,r,P,_)}}else{for(var l=0;l=.92){var y=Math.min(_,b);if(y==_){l=Math.max(l,B[0]*_); -b=Math.max(b,B[1]*_)}else{_=Math.max(_,B[4]*b);l=Math.max(l,B[5]*b)}}var p=w[0]*_+w[1]*l+w[2]*b,k=w[4]*_+w[5]*l+w[6]*b,S=w[8]*_+w[9]*l+w[10]*b; -if(p<0)p=0;else if(p>1)p=1;if(k<0)k=0;else if(k>1)k=1;if(S<0)S=0;else if(S>1)S=1;p=r[~~(p*999)];k=r[~~(k*999)]; -S=r[~~(S*999)];M[E]=~~(.5+p*255);M[E+1]=~~(.5+k*255);M[E+2]=~~(.5+S*255)}};e.raw.Fi={a2h:function(D,M){var s=.5-.5*Math.cos(D*3.2),F=0; -if(M>0){var X=D*.2;F=X*D+(1-X)*s}else{var d=Math.pow(D,.33);F=(1-d)*d+d*(D+(D-s)*.63)}var V=Math.abs(M); -return V*F+(1-V)*D},a63:function(D,M){var s=0;if(M>0){var F=D*1.47,X=Math.pow(D,2.4);s=Math.min(1,X*D+(1-X)*F)}else{var F=D*.68,X=Math.pow(D,3); -s=X*D*.5+(1-X)*F}var d=Math.abs(M);return d*s+(1-d)*D},abx:function(D,M){var s=0;if(M>0){var F=Math.pow(D,.3),X=D; -s=(1-D)*F+D*X}else{var F=Math.pow(D,2.5),d=D,X=D;s=Math.min(1,(1-d)*F+d*X)}var V=Math.abs(M);return V*s+(1-V)*D}}; -e.raw.ao2=function(D){var M=D.width,s=D.height,F=M*s*D.t277,X=new Uint16Array(F),d=null,V=0;e.raw.a0i(D,X); -e.raw.ZR(1,D,X,M,s);if(D.t50712){d=D.t50712;V=d.length-1;if(d[V]>65535)throw"too big values"}var $=e.raw.vf(D),w=e.raw.l1(D); -if(d==null)for(var K=0;KV)q=V; -q=d[q];X[K]=Math.max(0,q-$)}return X};e.raw.vf=function(D){var M=D.t50714,s=M?M[0]:0,F=D.t50715,X=D.t50716; -if(F)s+=F[0][0]/F[0][1];if(X)s+=X[0][0]/X[0][1];return Math.round(s)};e.raw.l1=function(D){var M=null,s=0; -if(D.t50712){M=D.t50712;s=M.length-1}var F=D.t50717?D.t50717[0]:(1<>>3,u=F[q]<<24|F[q+1]<<16|F[q+2]<<8|F[q+3];if((w&7)==0){V=u>>>18; -$=u>>>4&16383}else{V=u>>>14&16383;$=u&16383}}else if(X==12){d=K+(K>>>1);V=F[d]<<4|F[d+1]>>4;$=(F[d+1]&15)<<8|F[d+2]}else if(X==10){var w=K*10,q=w>>>3; -if((w&7)==0){V=(F[q]<<2|F[q+1]>>6)&1023;$=(F[q+1]<<4|F[q+2]>>4)&1023}else{V=(F[q]<<6|F[q+1]>>2)&1023; -$=(F[q+1]<<8|F[q+2]>>0)&1023}}else if(X==8){d=K;V=F[d];$=F[d+1]}M[K]=V;M[K+1]=$}};e.raw.ZR=function(D,M,s,F,X){var d=M["t"+[51008,51009,51022][D-1]],u=0; -if(d==null)return;var V=F*X,$=t.s,w=t.EF,q=new Uint8Array(d),fZ=t.s(q,u);u+=4;for(var B=0;B>1}else if(r==5&&D==1){var n=u,bG=$(q,n);n+=4; -var gS=$(q,n);n+=4;var dc=$(q,n);n+=4;for(var K=0;K>1}}else if(r==7&&D==1){var n=u,hO=t.XN(q,n);n+=16;var gz=$(q,n);n+=4;var aO=$(q,n); -n+=4;var eg=$(q,n),iQ=$(q,n+4);n+=8;var d5=$(q,n);n+=4;var da=new Uint16Array(d5);for(var K=0;K1e-7); -return s};e.raw.gZ=function(D,M){var s=fW.vg(M),F=e.raw.a8O,X=D.t50778?D.t50778[0]:0,d=D.t50779?D.t50779[0]:0,V=F(D.t50721,D.t50722,X,d,s.nf),$=F(D.t50723,D.t50724,X,d,s.nf); -V=V||[1,0,0,0,1,0,0,0,1];$=$||[1,0,0,0,1,0,0,0,1];var w=D.t50727?[D.t50727[0],0,0,0,D.t50727[1],0,0,0,D.t50727[2]]:[1,0,0,0,1,0,0,0,1]; -return e.UY.multiply(e.UY.mJ(w),e.UY.multiply(e.UY.mJ($),e.UY.mJ(V)))};e.raw.a8O=function(D,M,s,F,X){if(!D&&!M){return null}else if(D&&!M){return D}else if(XF){return M}else{var d=(1/X-1/F)/(1/s-1/F),V=1-d,$=[]; -for(var K=0;K<9;K++)$[K]=D[K]*d+M[K]*V;return $}};var fW={};fW.aoR={x:.34567,y:.3585};fW.Ja=[{i:0,Xs:.18006,ok:.26352,Rh:-.24341},{i:10,Xs:.18066,ok:.26589,Rh:-.25479},{i:20,Xs:.18133,ok:.26846,Rh:-.26876},{i:30,Xs:.18208,ok:.27119,Rh:-.28539},{i:40,Xs:.18293,ok:.27407,Rh:-.3047},{i:50,Xs:.18388,ok:.27709,Rh:-.32675},{i:60,Xs:.18494,ok:.28021,Rh:-.35156},{i:70,Xs:.18611,ok:.28342,Rh:-.37915},{i:80,Xs:.1874,ok:.28668,Rh:-.40955},{i:90,Xs:.1888,ok:.28997,Rh:-.44278},{i:100,Xs:.19032,ok:.29326,Rh:-.47888},{i:125,Xs:.19462,ok:.30141,Rh:-.58204},{i:150,Xs:.19962,ok:.30921,Rh:-.70471},{i:175,Xs:.20525,ok:.31647,Rh:-.84901},{i:200,Xs:.21142,ok:.32312,Rh:-1.0182},{i:225,Xs:.21807,ok:.32909,Rh:-1.2168},{i:250,Xs:.22511,ok:.33439,Rh:-1.4512},{i:275,Xs:.23247,ok:.33904,Rh:-1.7298},{i:300,Xs:.2401,ok:.34308,Rh:-2.0637},{i:325,Xs:.24792,ok:.34655,Rh:-2.4681},{i:350,Xs:.25591,ok:.34951,Rh:-2.9641},{i:375,Xs:.264,ok:.352,Rh:-3.5814},{i:400,Xs:.27218,ok:.35407,Rh:-4.3633},{i:425,Xs:.28039,ok:.35577,Rh:-5.3762},{i:450,Xs:.28863,ok:.35714,Rh:-6.7262},{i:475,Xs:.29685,ok:.35823,Rh:-8.5955},{i:500,Xs:.30505,ok:.35907,Rh:-11.324},{i:525,Xs:.3132,ok:.35968,Rh:-15.628},{i:550,Xs:.32129,ok:.36011,Rh:-23.325},{i:575,Xs:.32931,ok:.36038,Rh:-40.77},{i:600,Xs:.33724,ok:.36051,Rh:-116.45}]; -fW.vg=function(D){var M=fW.Ja,s=2*D.x/(1.5-D.x+6*D.y),F=3*D.y/(1.5-D.x+6*D.y),X=0,d=0,V=0;for(;V<31; -V++){X=F-M[V].ok-M[V].Rh*(s-M[V].Xs);if(V>0&&X<0){break}d=X}while(V>=M.length)V--;X/=Math.sqrt(1+M[V].Rh*M[V].Rh); -d/=Math.sqrt(1+M[V-1].Rh*M[V-1].Rh);var $=d/(d-X),w=1e6/((M[V].i-M[V-1].i)*$+M[V-1].i),q=s-((M[V].Xs-M[V-1].Xs)*$+M[V-1].Xs),u=F-((M[V].ok-M[V-1].ok)*$+M[V-1].ok),B=Math.sqrt(1+M[V].Rh*M[V].Rh),r=1/B,P=M[V].Rh/B,A=Math.sqrt(1+M[V-1].Rh*M[V-1].Rh),E=1/A,n=M[V-1].Rh/A,_=(r-E)*$+E,l=(P-n)*$+n,b=Math.sqrt(_*_+l*l); -_/=b;l/=b;var y=(q*_+u*l)*-3e3;return{nf:w,vl:y}};fW.a3u=function(D,M){var s=fW.Ja,F=1e6/D,X=1;for(; -X<31;X++){if(F>>2;P[K+1]=E;if(E>4095)throw"e"}for(var K=0; -K<16385;K++)A[K]=K;for(var K=0;K<5;K++)for(var n=P[K]+1;n<=P[K+1];n++)A[n]=A[n-1]+(1<>>2); -e.raw.a8$(S,Z,p>>>2,k);var z=new Uint8Array(y+p);z.set(new Uint8Array(Z.buffer),y);var j=[];UTIF._readIFD(B,z,y,j,0,!1); -var R=j.pop(),a=R.t29458;D.t50728=[a[1]/a[0],1,a[1]/a[3]];D.t50730=[.5];var m=R.t29891;D.t50829=[m[1],m[0],m[3],m[2]]}else if(d.makerNote&&d.makerNote.t8208){var b=d.makerNote,G=b.t8208,L=G.length,H=0,o=new Uint8Array(256); -for(var K=249;K<256;K++)o[K]=K;for(var K=0;K<249;K++)o[K*K*K%249]=K;for(var K=0;K>>2;D.t50714=[u,u,u,u];D.t50717=[w[3]>>>2]}}else if(D.t271[0].startsWith("Canon")){var M=D.data,c=M.slice(0),f=D.t50752,i=[],N=0; -if(f==null||f[0]==0&&f[1]==0)i.push(D.width);else{for(var K=0;K>1)*av*2; -for(var K=0;K>>1,gY=D.height-aO>>>1;D.t50829=[gY,N,gY+aO,N+gz]}if(b.t12){var c5=e.raw.wR(b.t12); -da=[1/c5[0],1,1/c5[1]]}else if(b.t151){var fs=e.raw.aeI(b,151),ds=fs[0],ek=fs[1],gE=fs[2];if(ds=="0100"&&ek>=80)throw"e"; -else if(ds=="0102"){var af=[];for(var K=0;K<4;K++)af.push(bG(gE,6+K*2));da=[af[1]/af[0],1,af[1]/af[3]]}else if(ds=="0103"&&ek>=26){var af=[]; -for(var K=0;K<4;K++)af.push(bG(gE,16+K*2));da=[af[1]/af[0],1,af[3]/af[2]]}else if(ds=="0204"&&ek>=564||ds=="0205"&&ek>=284){var y=ds=="0204"?6:14,af=[]; -for(var K=0;K<4;K++)af.push(bG(gE,y+K*2));da=[af[1]/af[0],1,af[1]/af[3]]}else throw"e"}else console.log("no white balance info"); -if(V=="NIKON D1")da=[1,1,1];if(da)D.t50728=da;var cq=b.t150?b.t150:b.t140;if(cq){var eA=cq[hr++],is=cq[hr++],iC; -if(eA==73||is==88)hr+=2110;hr+=8;var a4=1<1)iC=Math.floor(a4/(aZ-1)); -if(eA==68&&is==32&&iC>0){for(K=0;K>>0)*3125+1>>>0;X[3]=X[3]<<1|(X[0]^X[2])>>>31;for(var V=4;V<127; -V++)X[V]=(X[V-4]^X[V-2])<<1|(X[V-3]^X[V-1])>>>31;for(var V=0;V<127;V++)X[V]=t.s(d,V*4);for(;s>0;s--){X[V&127]=X[V+1&127]^X[V+1+64&127]; -var q=X[V&127],u=D[$];u^=q;M[w]=u;$++;w++;V++}};e.raw.a7O=function(D,M){var s=t.sV(M,0,4),F=e.raw.apX; -for(var K=0;K>>(K<<3)&255;var $=M[X&255],w=s[V&255];return[$,w,96]};e.raw.aeI=function(D,M){var s=D["t"+M],ek=s.length,F=e.raw.a7O(M,s),X=t.sV(s,0,4),d,V=F[4]; -if(V==null)d=s.slice(4);else{d=new Uint8Array(ek-V);var $=e.raw.aa9(D),w=$[0],q=$[1],u=$[2];for(var K=0; -K1)gl++;for(var Y=0;Y=250?hr:av)<<2;cq[eA]=M[a4];cq[eA+1]=M[a4+1]; -cq[eA+2]=M[a4+2]}e.Te(gE,cq,3);if(u)console.log(Date.now()-q);q=Date.now();return cq};e.sb.ZC=function(D,M,s,F,X,d,V,$,w){var q=D>>>16,u=D&65535,B=q-(s>>>16),r=u-(s&65535),P=q-(X>>>16),A=u-(X&65535),E=Math.sqrt(B*B+r*r)*V,n=Math.sqrt(P*P+A*A)*$; -if(E+n>=w)return 1e9;var _=e.sb.a71(M,F,d);return _+E+n};e.sb.a71=function(D,M,s){var F=D>>>16,X=D>>>8&255,d=D&255,V=M>>>16,$=M>>>8&255,w=M&255,q=s>>>16,u=s>>>8&255,B=s&255,r=e.sb.alpha(D,M,s),P=F-(r*V+(1-r)*q),A=X-(r*$+(1-r)*u),E=d-(r*w+(1-r)*B); -return Math.sqrt(P*P+A*A+E*E)};e.sb.alpha=function(D,M,s){var F=D>>>16,X=D>>>8&255,d=D&255,V=M>>>16,$=M>>>8&255,w=M&255,q=s>>>16,u=s>>>8&255,B=s&255,r=V-q,P=$-u,A=w-B,E=F-q,n=X-u,_=d-B,l=r*r+P*P+A*A,b=l==0?.5:(E*r+n*P+_*A)/l; -return Math.max(0,Math.min(1,b))};e.sb.aoX=function(D){};e.sb.JM=function(D,M,s,F,X){var d=[],V=M-1,$=s-1; -for(var w=1;w<$;w++)for(var q=1;q>>2;console.log(B,A);r=e.U(B.Y()); -e.FK(u.dP,r,0);e.Te(M,q,0);u=e.t4(q,s);u=e.t4(u.dP,u.rect);P=e.U(B.Y());e.FK(u.dP,P,0);var E=e.o2.adC(r,P,B,A,X),n=E[0],_=E[1],l=new hk(0,0,B.d*2,B.w*2); -n=w(n,B,l,!0);n=w(n,l,s,!0);_=w(_,B,l,!0);_=w(_,l,s,!0);var b=e.U($);for(var K=0;K<$;K++)b[K]=Math.max(0,Math.min(255,Math.floor(.5+(n[K]*M[K]+255*_[K])))); -return b};e.o2.L3=function(D,M,s,F){var X=s.d,d=s.w,V=M.d,$=M.w,w=e.o2.JP,q=new Float32Array(X*d);for(var u=0; -u<$;u++){var B=(u+u)*X;for(var r=0;r>>2,V>>>2);A=F>>>2;r=e.o2.abg(D,d,V);P=e.o2.anp(M,d,V);if(u)console.log(Date.now()-q); -q=Date.now();var E=e.o2.ahV(r,P,B,A,X),n=E[0],_=E[1],l=E[2],b=E[3];if(u)console.log(Date.now()-q);q=Date.now(); -var y=e.U($);for(var p=0;p>>2)*(d>>>2)+(k>>>2),Z=K<<2,z=n[S]*M[Z]+_[S]*M[Z+1]+l[S]*M[Z+2]+b[S]*255; -y[K]=Math.max(0,Math.min(255,~~(.5+z)))}if(u)console.log(Date.now()-q);q=Date.now();return y};e.o2.abg=function(D,M,s){var F=M>>>2,X=s>>>2,d=e.U(M*s); -for(var V=0;V>>2,X=s>>>2,d=e.U(M*s*4); -for(var V=0;VM-$-1||u>s-$-1){var K=u*M+B,r=K<<2,P=0;if(u<$)P=4; -else if(B>M-$-1)P=8;w[P]+=D[r];w[P+1]+=D[r+1];w[P+2]+=D[r+2];w[P+3]++;X[K]=255}}for(var K=0;K<12;K+=4)for(var A=0; -A<3;A++)q[K+A]=w[K+A]/w[K+3];var E=new Float32Array(F);for(var K=0;K>>1,V=s>>>1,j=1/Math.sqrt(z*z+V*V); -for(var u=0;u=0;V--)e.po.SF(X*d-X+V,1,D,M,s,F);for(var $=d-2;$>=0;$--){e.po.SF($*X+X-1,X,D,M,s,F);for(var V=X-2; -V>=0;V--){var K=$*X+V;e.po.SF(K,1,D,M,s,F);e.po.SF(K,X,D,M,s,F)}}};e.po.SF=function(K,D,M,s,F,X){var d=K+D,V=M[K],$=s[d],w=F[d]; -if($0){var B=w;w=q;q=B}var r=d[q+"-"+w],P=d[w+"-"+$],A=d[$+"-"+q],E=[q,r,V,null],n=[w,P,V,E],_=[$,A,V,n]; -E[3]=_;if(r)r[1]=E;if(P)P[1]=n;if(A)A[1]=_;d[q+"-"+$]=_;d[$+"-"+w]=n;d[w+"-"+q]=E;s[$]=n;X[K]=n;s[w]=E; -X[K+1]=E;s[q]=_;X[K+2]=_;F[V]=n}return{MJ:s,bL:F,UM:X}};e.TN.a80=function(D){var M=[],s=D.bL;for(var K=0; -KA[2]&&A[3]==0&&e.TN.kU(D,P,u,r)<0&&e.TN.kU(D,r,B,P)<0; -if(_){s[0]=r;F[0]=P;s[3]=d;d[3]=V;V[3]=s;F[3]=$;$[3]=X;X[3]=F;X[2]=q;V[2]=w;M.bL[q]=$;M.bL[w]=d;M.MJ[B]=V; -M.MJ[u]=X}return _};e.TN.amc=function(D,M,s){var F=D[M*2]-D[s*2],X=D[M*2+1]-D[s*2+1];return Math.sqrt(F*F+X*X)}; -e.TN.ae_=function(D,M,s){var F=s[1],X=s[3],d=X[3],V,$,w=s[2],q,u=s[0],B=d[0],r=X[0],P;if(F){V=F[3];$=V[3]; -q=F[2];P=V[0]}var A=D.length>>>1;D[2*A]=(D[2*B]+D[2*u])*.5;D[2*A+1]=(D[2*B+1]+D[2*u+1])*.5;if(!0){var E=w,n=s,_=M.bL.length,l=[A,null,E,n],b=[r,l,_,d]; -l[1]=b;var y=[A,null,_,b];X[3]=l;d[3]=y;d[2]=_;M.bL[E]=X;M.bL[_]=y;M.MJ[u]=X;M.MJ[r]=d;M.UM.push(l,b,y)}if(F){var p=q,k=F,S=_+1; -y[1]=k,k[1]=y;var Z=[A,null,p,k],z=[P,Z,S,$];Z[1]=z;var j=[A,n,S,z];n[1]=j;V[3]=Z;$[3]=j;$[2]=S;M.bL[p]=V; -M.bL[S]=$;M.MJ[B]=V;M.MJ[P]=$;M.UM.push(Z,z,j)}M.MJ[A]=n};e.TN.B8=function(D,M){var s=0;while(!0){var F=s; -for(var K=0;KV){d=w;V=q}}if(V>s){e.TN.ae_(D,M,d); -X++}}return X!=0};e.TN.adk=function(D,M){var s=[],r=0;for(var K=0;K>>1,A=M.MJ[P],F=A,E=!0; -do{if(F[1]==null){E=!1;break}F=F[1][3]}while(F!=A);if(E){var n=.02;D[K]+=n*s[K];D[K+1]+=n*s[K+1];r+=n*(s[K]*s[K]+s[K+1]*s[K+1])}}return r}; -e.TN.a0q=function(D,M,s){var F=e.O.Pe(D),X=e.TN.M4(D,M);e.TN.B8(D,X);for(var d=0;d<300;d++){var V=!1,$=!1; -V=e.TN.afJ(D,X,s,5);if(V)$=e.TN.B8(D,X);var w=e.TN.adk(D,X);if(!V&&!$&&w<1e-4){break}}return e.TN.a80(X)}; -e.ql={};e.ql.Qh=function(D){var M=D.Eq,s=D.Ko,F=D.yA,X=D.tR,d=D.gr,V=D.TV,$=D.Bd,w=e.B7.B4,l,b,y=0;function q(O){var hv=new Array(O); -for(var K=0;K>>1,B=q(M.UP*2),r=q(M.UP),P=q(M.UP),A=Date.now(); -for(var K=0;KS)continue;var j=s[k*2],R=s[k*2+1],a=s[S*2],m=s[S*2+1],G=X[k*2],L=X[k*2+1],H=X[S*2],o=X[S*2+1],f=X[Z*2],i=X[Z*2+1],h=X[z*2],N=X[z*2+1],I=[G,L,H,o,f,i]; -if(p[1])I.push(h,N);var J=w(M.ahl[y],I),av=J[0],gY=J[1],f9=1/Math.sqrt(av*av+gY*gY);av*=f9;gY*=f9;var gl=a-j,Y=m-R; -r[y]=av*gl+gY*Y;P[y]=-gY*gl+av*Y;y++}var Q=new Array(u),hF=new Array(u);for(var K=0;K>>1,w=0,A=0,gY=1e3; -for(var K=0;Kb)continue; -var k=M[l*2],S=M[l*2+1],Z=M[b*2],z=M[b*2+1],j=M[y*2],R=M[y*2+1],a=M[p*2],m=M[p*2+1],G=[[k,S,1,0],[S,-k,0,1],[Z,z,1,0],[z,-Z,0,1],[j,R,1,0],[R,-j,0,1]]; -if(_[1])G.push([a,m,1,0],[m,-a,0,1]);var L=e.B7.I0(G),H=X(linear.invert(X(L,G)),L);H.pop();H.pop();u.push(H); -var o=Z-k,f=z-S,i=P[_[1]?1:0];i=e.B7.AF(i,X([[o,f],[f,-o]],H));var h=[l*2,l*2+1,b*2,b*2+1,y*2,y*2+1,p*2,p*2+1],N=_[1]?8:6,I=[]; -for(var J=0;J>>1,V=new Array(d); -if(s.length==0){V.fill(0);return V}var $=new Array(d),w=new Array(d);for(var K=0;K=0&&I>=0&&C+I<=1){var J=1-C-I,av=y*J+p*C+k*I,gY=S*J+Z*C+z*I; -e.X.MC(av,gY,d,V,$,P);e.ql.aoO(P,w,f*q+i<<2)}}};e.ql.aoO=function(D,M,s){var F=M[s],X=M[s+1],d=M[s+2],V=M[s+3],$=1-D[3]*(1/255); -M[s]=~~(.5+D[0]+F*$);M[s+1]=~~(.5+D[1]+X*$);M[s+2]=~~(.5+D[2]+d*$);M[s+3]=~~(.5+D[3]+V*$)};e.ql.uA=function(){var D=function(s,F,X,d){var V=d[0],$=d[1],w=d[2],q=s[V+0],u=s[V+1],B=s[$+0],r=s[$+1],P=s[w+0],A=s[w+1],E=B-q,n=r-u,_=P-q,l=A-u,b=F-q,y=X-u,p=E*l-_*n,k=1/(p+1e-9),S=(b*l-_*y)*k,Z=(E*y-b*n)*k; -if(S>=0&&Z>=0&&S+Z<=1){d[3]=1-S-Z;d[4]=S;d[5]=Z;return 1}return 0},M=function(s,F,X,d){var V=[0,0,0,0,0,0]; -for(var K=0;K=0;B--){var n=B*M;for(var u=0;u=2){var K=n+r,Z=y[p+r-1]+l(p+r-1,K-1),z=y[p+r-2]+l(p+r-1,K-2)+l(p+r-2,K-1); -if(y[p+r]==Z){b[K-M]=1;r-=1}else{b[K-M]=0;b[K-M-1]=2;r-=2}}var K=n;if(r==0){b[K-M]=1}else{if(y[p+1]==k){b[K+1-M]=1; -b[K-M]=1}else{b[K+1-M]=0;b[K-M]=2}}n+=$;p+=$}e.kH.a1M(B,M,b,d,P,A,!0,X)}if(F){console.log(Date.now()-X,"Matching"); -X=Date.now()}var j=d;return[UZIP.adler(D,0,D.length),D,M,s,V,q,w,P,A,b,j]};e.kH.Bo=function(D,M,s,F){var X=D.slice(0),d=X.shift(),V=X.shift(),$=X.shift(),w=X.shift(),q=X.shift(),u=X.shift(),B=X.shift(),r=X.shift(),P=X.shift().slice(0),A=X.shift(),E=X.shift(),n=Date.now(),_=Math.abs($-M),l=Math.floor(_/q),b=new Uint32Array(q),p=0,k=1e9,Z=0,z=0,j=0; -for(var y=0;y=65280){E[K+i]--;S++;f(c*M+S,c*$+i)}}}}if(F){console.log(Date.now()-n,"Shifting image pixels"); -n=Date.now()}};e.kH.a1M=function(D,M,s,F,X,d){var V=0,K=D*M;while(VF*F||k<0||S<0||k>=l||S>=l)continue; -var Z=_[S*l+k];A+=p*Z;E+=y*Z}P.yI=Math.atan2(E,A)}}function w(u,B,r,P,A){var E=~~(u+.5),n=~~(B+.5);return s(r,P,E-X,E+X,n-X,n+X)}function q(u,B,r,P,A){D=P; -M=A;if(V.length==0){var E=new e.z.bg(16200817),b=8,y=0;function n(Q){var j=Q[0]-Q[2],R=Q[1]-Q[3];return j*j+R*R}function _(){var Q=0,hF=0; -while(Q===0)Q=E.get();while(hF===0)hF=E.get();return Math.sqrt(-2*Math.log(Q))*Math.cos(2*Math.PI*hF)}var l=_,p=[]; -while(y!=d){var k=Math.max(-F,Math.min(F,l()*b)),S=Math.max(-F,Math.min(F,l()*b)),Z=Math.max(-F,Math.min(F,l()*b)),z=Math.max(-F,Math.min(F,l()*b)),j=k-Z,R=S-z,a=Math.sqrt(j*j+R*R); -if(a<3||a>12)continue;V.push(k,S,Z,z);y++}}var m=20;for(var G=0;G>>3); -L.k_=C;for(var K=0;K>>3]|=(gl>>1,b=l>>>1,y=Math.round(_/3); -if(y!=_/3)throw"e";var p=1/(_*_),k=1.2*(_/9);for(var Z=l+1;Z=i||E[K+S]>=i)continue;if(E[K-c-S]>=i||E[K-c]>=i||E[K-c+S]>=i)continue;if(E[K+c-S]>=i||E[K+c]>=i||E[K+c+S]>=i)continue; -q.push({x:~~(z*B.pT+.5),y:~~(Z*B.pT+.5),apL:z,aq$:Z,o7:u,H:i,a4G:n[K],pI:k})}}if(V!=null){q.sort(function(f9,gl){return gl.H-f9.H}); -q=q.slice(0,V)}return q;var h=[];for(var K=0;KC.H&&(J.o7==C.o7+1||J.o7==C.o7-1)){var av=C.x-J.x,gY=C.y-J.y;if(av*av+gY*gY<5){N=!1; -break}}}if(N)h.push(C)}console.log(q.length,h.length);return h}return{ahj:X}}();e.u0={};e.u0.ajY=function(D){var M=D.length,s=e.u0.hD(D,!1),X=0,d=1; -throw"e";var F=[];for(var K=0;K>>1);if(u.length<10)return null;var B=e.u0.a3C(d[K],d[$],u,2);q.push([K,$,u,B])}q.sort(function(z,j){return j[2].length-z[2].length}); -if(F)console.log("Matches found",Date.now()-X);X=Date.now();var r=[],P=new UnionFind(s);for(var K=0; -K>>1][1]}var Z=e.X.Iy(_[M]); -for(var K=0;KV||G==V&&L<$){d=m;V=G; -$=L}}return d};var fZ=new Uint8Array(256);for(var K=0;K<256;K++){var ek=0,O=K;while(O!=0){O=O&O-1;ek++}fZ[K]=ek}e.u0.aoC=function(D,M,s){var F=0,X=D.length; -for(var K=0;K>>1;E=n-1}else{E=n=F>>>1}for(var K=0;K>>1;else M[K]=(K&3)==3?A[F-1]:A[F-1]-A[0]}}else console.log(s)};e.R6={}; -e.R6.a3Z=function(D,M,s,F){var X=Date.now(),d=new Uint32Array(M*s),V=new Uint8Array(M*s),$=[],P=0;for(var w=0; -wF)continue;for(var _=0;_n){E=p;n=k}}if(n==0)throw"e";e.R6.a11(D,M,s,B,$[E],V,d);P++}};e.R6.a11=function(D,M,s,F,X,d,V){e.R6.aeL(D,M,s,F[1],F[2],X[5],d,V,X[0]); -X[3]+=F[3];F[3]=0;var $=F[4],w=X[4];for(var q=0;q<$.length;q++)w.push($[q]);e.R6.aeu(d,M,s,F[1],F[2])}; -e.R6.aeu=function(D,M,s,F,X){var d=[F,X];D[X*M+F]=2;while(d.length!=0){var V=d.pop(),$=d.pop(),K=V*M+$; -D[K]=0;if(V!=s-1&&D[K+M]==1){d.push($,V+1);D[K+M]=2}if(V!=0&&D[K-M]==1){d.push($,V-1);D[K-M]=2}if(V!=M-1&&D[K+1]==1){d.push($+1,V); -D[K+1]=2}if(V!=0&&D[K-1]==1){d.push($-1,V);D[K-1]=2}}};e.R6.aeL=function(D,M,s,F,X,d,V,$,w){var q=[F,X],u=D[X*M+F],B=$[X*M+F]; -V[X*M+F]=1;while(q.length!=0){var r=q.pop(),P=q.pop(),K=r*M+P;D[K]=d;$[K]=w;if(r!=s-1&&V[K+M]==0&&$[K+M]==B){q.push(P,r+1); -V[K+M]=1}if(r!=0&&V[K-M]==0&&$[K-M]==B){q.push(P,r-1);V[K-M]=1}if(r!=M-1&&V[K+1]==0&&$[K+1]==B){q.push(P+1,r); -V[K+1]=1}if(r!=0&&V[K-1]==0&&$[K-1]==B){q.push(P-1,r);V[K-1]=1}}};e.R6.Xy=function(D,M,s,F,X,d,V,$){var w=[F,X],q=D[X*M+F],u=0,B=[]; -d[X*M+F]=1;while(w.length!=0){var r=w.pop(),P=w.pop(),K=r*M+P;V[K]=$;u++;if(r!=s-1)if(D[K+M]==q){if(d[K+M]==0){w.push(P,r+1); -d[K+M]=1}}else B.push(P,r+1);if(r!=0)if(D[K-M]==q){if(d[K-M]==0){w.push(P,r-1);d[K-M]=1}}else B.push(P,r-1); -if(P!=M-1)if(D[K+1]==q){if(d[K+1]==0){w.push(P+1,r);d[K+1]=1}}else B.push(P+1,r);if(P!=0)if(D[K-1]==q){if(d[K-1]==0){w.push(P-1,r); -d[K-1]=1}}else B.push(P-1,r)}return[u,B]};e.R6.ao7=function(D,M,s,F,X){var d=e.R6.Q8(D.buffer,M,s).ls,V=Date.now(),$=[]; -for(var K=0;K>2]=k.ind}return{yA:A,ls:r[1]}};e.R6.Q8=function(D,M,s){var F=[],X={},d=M-1,V=s-1,$=0,w=new Uint32Array(D),q=[-M-1,-M,-M+1,-1,1,M-1,M,M+1,M+M,2,-M-M,-2,M+M-1,M+M+1,M+2,-M+2,-M-M+1,-M-M-1,-M-2,M-2,M+M+2,-M-M+2-M-M-2,M+M-2]; -for(var u=1;u>>2;for(var R=0;R>>1;if(m>65535)throw m;var G=[];for(var K=0; -K<1e3+b;K++)G.push([]);var L=[0,1,0,-1,-1,0,1,0],c=Math.min(j,5),f=new Uint32Array(m*6);for(var i=0; -i>>o)}var av=Math.min(b,h*S);if(i+c>=j)av=b;while(X!=0){V(G);var gY=G[F].pop(),f9=G[F].pop(),gl=f9>>>16,Y=f9&65535,K=gl*l+Y; -if(R[K]==65535){var Q=gY*6,hF=K<<2;R[K]=gY;f[Q]+=_[hF];f[Q+1]+=_[hF+1];f[Q+2]+=_[hF+2];f[Q+3]+=Y;f[Q+4]+=gl; -f[Q+5]++;var hv=gl>>>o;if(gl!=av-1&&R[K+l]==65535)d(G,gl+1<<16|Y,gY,w(_,l,Z,Y,gl+1,f,Q)+hv);if(gl!=0&&R[K-l]==65535)d(G,gl-1<<16|Y,gY,w(_,l,Z,Y,gl-1,f,Q)+hv); -if(Y!=0&&R[K-1]==65535)d(G,gl<<16|Y-1,gY,w(_,l,Z,Y-1,gl,f,Q)+hv);if(Y!=l-1&&R[K+1]==65535)d(G,gl<<16|Y+1,gY,w(_,l,Z,Y+1,gl,f,Q)+hv)}}if(av!=gl){var bV=(i+c)*z; -f.fill(0,bV*6,(bV+z)*6);for(var gl=(i+c-2)*S;gl=bV){R[K]=65535}}}}return{yA:R,tQ:m,ev:f}}e.R6.oV=function(_,l,b,y,p){var k=_.tQ,S=l*b,Z=_.ev,z=_.yA,j=P(y,z,k,S),R=new UnionFind(k),o=0; -for(var a=1;a>>7);p[z]=S=p[z]|j}}return S!=3};function w(_,l,b,y,p,k,S){var Z=(p*l+y)*4,z=k[S+5],j=1/z,R=_[Z]*z-k[S],a=_[Z+1]*z-k[S+1],m=_[Z+2]*z-k[S+2],G=y*z-k[S+3],L=p*z-k[S+4],H=Math.sqrt(R*R+a*a+m*m),o=Math.sqrt(G*G+L*L); -return~~((H+b*o)*j+.5)}function q(_,l,b,y){var p=1/_[b+5],k=1/_[y+5],S=_[b]*p-_[y]*k,Z=_[b+1]*p-_[y+1]*k,z=_[b+2]*p-_[y+2]*k,j=_[b+3]*p-_[y+3]*k,R=_[b+4]*p-_[y+4]*k,a=Math.sqrt(S*S+Z*Z+z*z),m=Math.sqrt(j*j+R*R); -return~~(a+l*m+.5)}function u(_,l,b){var y=e.S7(_,new hk(0,0,l,b)),p=y.rect.d,k=y.rect.w,S=$(y.dP,p,k),Z=S.yA,z=Date.now(),j=new Uint16Array(l*b); -j.fill(65535);for(var R=0;R>>4,m=_[z+1]>>>4,G=_[z+2]>>>4; -k[j*4400+(a<<8|m<<4|G)]++;k[j*4400+4096]++;k[j*4400+4100+(a<<4|m)]++;k[j*4400+4360+a]++;if(Z!=0&&(R=y[K-1])!=j&&B(M[j],R)==-1){M[j].push(R,0); -M[R].push(j,0)}if(S!=0&&(R=y[K-l])!=j&&B(M[j],R)==-1){M[j].push(R,0);M[R].push(j,0)}}for(var K=0;K>>7)}return p}e.R6.aaH=function(_,l,b,y,p,k,S){var Z=l*b,z=S[0],M=S[1],j=new UnionFind(y),R=P(p,_,y,Z),a=-1,m=!0,G=0; -for(var K=0;Kb){b=k; -l=p}}return _[l]}function E(M,_,l,b){var y=M[l],p=M[b];r(y,B(y,b));r(p,B(p,l));for(var K=0;K0)return 1; -else if(Z<0)return 0}return 0}function B(S,A){var E=new D,n=S,_=A,Z=0,z=1,j;E.color=X[A*d+S];E.sign=w(S,A,X,d)==E.color?"+":"-"; -while(1){E.BU.push(n,_);if(n>E.rW)E.rW=n;if(nE.Bf)E.Bf=_;if(_>1),_+(z-Z-1>>1),X,d)==E.color,a=w(n+(Z-z-1>>1),_+(z+Z-1>>1),X,d)==E.color; -if(a&&!R){if($.TP=="right"||$.TP=="black"&&E.sign=="+"||$.TP=="white"&&E.sign=="-"||$.TP=="majority"&&u(n,_,E.color)||$.TP=="minority"&&!u(n,_,E.color)){j=Z; -Z=-z;z=j}else{j=Z;Z=z;z=-j}}else if(a){j=Z;Z=-z;z=j}else if(!R){j=Z;Z=z;z=-j}}return E}var r=0,P=[]; -while(!0){var r=q(r);if(r==-1)break;var A=Math.floor(r/d),E=B(r-A*d,A);for(var K=0;K$.ac5)P.push(E)}for(var K=0;K=0;p--){var k=P[p]; -if(y.zKk.rW||y.v5k.Bf)continue;if(!cK.ab6(k.BU,y.BU[0]+.5,y.BU[1]+.5))continue; -y.parent=p;break}}return P}function F(X,d){function V(Z,z,j,R,a){this.x=Z;this.y=z;this.ce=j;this.ug=R; -this.Qb=a}function $(Z,O){return(O+Z)%O}function w(Z,z,j,R){return Z*R-j*z}function q(Z,z,j,R){return Z*j+z*R}function u(Z,z,j){if(Z<=j)return Z<=z&&z=0&&I<=1)return I;else if(J>=0&&J<=1)return J; -else return-1}function _(S){var K,Z,z;S.XR=S.BU[0];S.a6I=S.BU[1];S.jy=[];var j=S.jy;j.push(new V(0,0,0,0,0)); -for(K=0;K=0;K--){if(Z[K<<1]!=Z[Y<<1]&&Z[(K<<1)+1]!=Z[(Y<<1)+1])Y=K+1;R[K]=Y}for(K=O-1; -K>=0;K--){var Q=$(K+1,O)<<1;a[0]=a[1]=a[2]=a[3]=0;z=(3+3*(Z[Q]-Z[K<<1])+(Z[Q+1]-Z[(K<<1)+1]))/2;a[z]++; -m=0;G=0;L=0;H=0;Y=R[K];J=K;while(1){C=0;z=(3+3*Math.sign(Z[Y*2]-Z[J*2])+Math.sign(Z[Y*2+1]-Z[J*2+1]))/2; -a[z]++;if(a[0]&&a[1]&&a[2]&&a[3]){j[K]=J;C=1;break}h=Z[Y*2]-Z[K*2];N=Z[Y*2+1]-Z[K*2+1];if(w(m,G,h,N)<0||w(L,H,h,N)>0){break}if(Math.abs(h)<=1&&Math.abs(N)<=1){}else{o=h+(N>=0&&(N>0||h<0)?1:-1); -c=N+(h<=0&&(h<0||N<0)?1:-1);if(w(m,G,o,c)>=0){m=o;G=c}o=h+(N<=0&&(N<0||h<0)?1:-1);c=N+(h>=0&&(h>0||N<0)?1:-1); -if(w(L,H,o,c)<=0){L=o;H=c}}J=Y;Y=R[J];if(!u(Y,K,J)){break}}if(C==0){f=Math.sign(Z[Y*2]-Z[J*2]);i=Math.sign(Z[Y*2+1]-Z[J*2+1]); -h=Z[J*2]-Z[K*2];N=Z[J*2+1]-Z[K*2+1];av=w(m,G,h,N);gY=w(m,G,f,i);f9=w(L,H,h,N);gl=w(L,H,f,i);I=1e7;if(gY<0){I=Math.floor(av/-gY)}if(gl>0){I=Math.min(I,Math.floor(-f9/gl))}j[K]=$(J+I,O)}}I=j[O-1]; -S.$y[O-1]=I;for(K=O-2;K>=0;K--){if(u(K+1,j[K],I)){I=j[K]}S.$y[K]=I}for(K=O-1;u($(K+1,O),I,S.$y[K]);K--){S.$y[K]=I}}function b(S){function Z(S,K,z){var O=S.hy,h=S.BU,N=S.jy,C,I,J,av,gY,R,f9,gl,i,Y,Q,hF,hv,bV,gu=0; -if(z>=O){z-=O;gu=1}if(gu==0){C=N[z+1].x-N[K].x;I=N[z+1].y-N[K].y;av=N[z+1].ug-N[K].ug;J=N[z+1].ce-N[K].ce; -gY=N[z+1].Qb-N[K].Qb;R=z+1-K}else{C=N[z+1].x-N[K].x+N[O].x;I=N[z+1].y-N[K].y+N[O].y;av=N[z+1].ug-N[K].ug+N[O].ug; -J=N[z+1].ce-N[K].ce+N[O].ce;gY=N[z+1].Qb-N[K].Qb+N[O].Qb;R=z+1-K+O}Q=(h[K<<1]+h[z<<1])/2-h[0];hF=(h[(K<<1)+1]+h[(z<<1)+1])/2-h[1]; -bV=h[z<<1]-h[K<<1];hv=-(h[(z<<1)+1]-h[(K<<1)+1]);f9=(av-2*C*Q)/R+Q*Q;gl=(J-C*hF-I*Q)/R+Q*hF;i=(gY-2*I*hF)/R+hF*hF; -Y=hv*hv*f9+2*hv*bV*gl+bV*bV*i;return Math.sqrt(Y)}var K,z,j,R,O=S.hy,a=new Array(O+1),m=new Array(O+1),G=new Array(O),L=new Array(O+1),H=new Array(O+1),o=new Array(O+1),c,f,i; -for(K=0;K0;z--){o[z]=K; -K=L[K]}o[0]=0;a[0]=0;for(z=1;z<=j;z++){for(K=o[z];K<=H[z];K++){f=-1;for(R=H[z-1];R>=L[K];R--){c=Z(S,R,K)+a[R]; -if(f<0||c0;z--){K=m[K];S.aqX[z]=K}}function y(S){function Z(S,K,c,G,L,dg){var O=S.hy,bG=S.jy,gS=0,i; -while(c>=O){c-=O;gS+=1}while(K>=O){K-=O;gS-=1}while(c<0){c+=O;gS-=1}while(K<0){K+=O;gS+=1}var dc=bG[c+1].x-bG[K].x+gS*bG[O].x,bj=bG[c+1].y-bG[K].y+gS*bG[O].y,iJ=bG[c+1].ug-bG[K].ug+gS*bG[O].ug,hO=bG[c+1].ce-bG[K].ce+gS*bG[O].ce,gz=bG[c+1].Qb-bG[K].Qb+gS*bG[O].Qb,f=c+1-K+gS*O; -G[dg]=dc/f;G[dg+1]=bj/f;var aO=(iJ-dc*dc/f)/f,eg=(hO-dc*bj/f)/f,iQ=(gz-bj*bj/f)/f,d5=(aO+iQ+Math.sqrt((aO-iQ)*(aO-iQ)+4*eg*eg))/2; -aO-=d5;iQ-=d5;if(Math.abs(aO)>=Math.abs(iQ)){i=Math.sqrt(aO*aO+eg*eg);if(i!=0){L[dg]=-eg/i;L[dg+1]=aO/i}}else{i=Math.sqrt(iQ*iQ+eg*eg); -if(i!=0){L[dg]=-iQ/i;L[dg+1]=eg/i}}if(i==0){L[dg]=L[dg+1]=0}}var z=S.q7,j=S.aqX,O=S.hy,R=S.BU,a=S.XR,m=S.a6I,G=new Array(z*2),L=new Array(z*2),H=new Array(z),o=new Array(3),K,c,f,i,I,J,av,gY,f9,gl,Y; -S.lZ=new M(z);for(K=0;KC[4]){o[0]=-C[1];o[1]=C[0]}else if(C[4]){o[0]=-C[4];o[1]=C[3]}else{o[0]=1; -o[1]=0}var h=o[0]*o[0]+o[1]*o[1],N=1/h;o[2]=-o[1]*hF-o[0]*Q;for(i=0;i<3;i++){C[i*3+0]+=o[i]*o[0]*N;C[i*3+1]+=o[i]*o[1]*N; -C[i*3+2]+=o[i]*o[2]*N}}I=Math.abs(hv-Q);J=Math.abs(bV-hF);if(I<=.5&&J<=.5){S.lZ.Vm[K<<1]=hv+a;S.lZ.Vm[(K<<1)+1]=bV+m; -continue}av=B(C,Q,hF);f9=Q;gl=hF;if(C[0]!=0){for(Y=0;Y<2;Y++){bV=hF-.5+Y;hv=-(C[1]*bV+C[2])/C[0];I=Math.abs(hv-Q); -gY=B(C,hv,bV);if(I<=.5&&gY1?1-1/a:0;G=G*(1/.75)}else{G=4/3}z.py[j]=G; -var av=3*j<<1;if(G>=d.anT){z.Z5[j]=0;z.Gt[av+0]=z.Gt[av+1]=0;z.Gt[av+2]=N;z.Gt[av+3]=C;z.Gt[av+4]=I; -z.Gt[av+5]=J}else{if(G<.55){G=.55}else if(G>1){G=1}var gY=.5+.5*G;z.Z5[j]=1;z.Gt[av]=r(gY,c,N);z.Gt[av+1]=r(gY,f,C); -z.Gt[av+2]=r(gY,i,N);z.Gt[av+3]=r(gY,h,C);z.Gt[av+4]=I;z.Gt[av+5]=J}z.alpha[j]=G;z.R$[j]=.5}z.agn=1}function k(S){function Z(){this.jc=0; -this.ww=0;this.h3=0;this.tA=0;this.rD=0;this.Rh=0;this.pI=0;this.alpha=0}function z(S,K,c,c5,fs,f9,gl){var R=S.lZ.KZ,ds=S.lZ.Gt,gE=S.lZ.Vm; -if(K==c)return 1;var af=K,N=$(K+1,R),cq=$(af+1,R),hO=gE[K<<1],gz=gE[(K<<1)+1],hr=gE[N<<1],eA=gE[(N<<1)+1],is=f9[cq]; -if(is==0)return 1;var a4=A(hO-hr,gz-eA);for(af=cq;af!=c;af=cq){var cq=$(af+1,R),aZ=$(af+2,R),iC=gE[cq<<1],cy=gE[(cq<<1)+1],fT=gE[aZ<<1],bC=gE[(aZ<<1)+1]; -if(f9[cq]!=is)return 1;if(Math.sign(w(hr-hO,eA-gz,fT-iC,bC-cy))!=is)return 1;if(q(hr-hO,eA-gz,fT-iC,bC-cy)=c){C+=gl[R]}var j0=hA-dg,cG=i8-bG,h6=aV-dg,hq=he-bG,gG=ev-dg,iB=iO-bG,bl=w(j0,cG,h6,hq),eh=w(j0,cG,gG,iB),gy=w(h6,hq,gG,iB),hy=bl+gy-eh; -if(eh==bl)return 1;var gY=gy/(gy-hy),av=eh/(eh-bl),fy=eh*gY/2;if(fy==0)return 1;var gf=C/fy,I=2-Math.sqrt(4-gf/.3); -c5.ww=r(gY*I,dg,hA);c5.h3=r(gY*I,bG,i8);c5.tA=r(av*I,ev,aV);c5.rD=r(av*I,iO,he);c5.alpha=I;c5.Rh=gY; -c5.pI=av;hA=c5.ww;i8=c5.h3;aV=c5.tA;he=c5.rD;c5.jc=0;for(af=$(K+1,R);af!=c;af=cq){cq=$(af+1,R);var c8=gE[af<<1],hw=gE[(af<<1)+1],iC=gE[cq<<1],cy=gE[(cq<<1)+1]; -gY=n(hA-dg,i8-bG,aV-hA,he-i8,ev-aV,iO-he,iC-c8,cy-hw);if(gY<-.5)return 1;var eE=E(gY,dg,hA,aV,ev),ei=E(gY,bG,i8,he,iO),a4=A(iC-c8,cy-hw); -if(a4==0)return 1;var ff=w(iC-c8,cy-hw,eE-c8,ei-hw)/a4;if(Math.abs(ff)>fs)return 1;if(q(iC-c8,cy-hw,eE-c8,ei-hw)<0||q(c8-iC,hw-cy,eE-iC,ei-cy)<0){return 1}c5.jc+=ff*ff}for(af=K; -af!=c;af=cq){cq=$(af+1,R);var hU=af*3+2<<1,de=cq*3+2<<1,eP=ds[hU],fo=ds[hU+1],ic=ds[de],hV=ds[de+1]; -gY=n(hA-dg,i8-bG,aV-hA,he-i8,ev-aV,iO-he,ic-eP,hV-fo);if(gY<-.5)return 1;var eE=E(gY,dg,hA,aV,ev),ei=E(gY,bG,i8,he,iO),a4=A(ic-eP,hV-fo); -if(a4==0)return 1;var ff=w(ic-eP,hV-fo,eE-eP,ei-fo)/a4,aT=w(ic-eP,hV-fo,gE[cq<<1]-eP,gE[(cq<<1)+1]-fo)/a4; -aT*=.75*S.lZ.alpha[cq];if(aT<0){ff=-ff;aT=-aT}if(ff=0;K--){f=z(S,K,$(c,R),i,d.al_,f9,gl); -if(f){break}if(L[c]>L[K]+1||L[c]==L[K]+1&&G[c]>G[K]+i.jc){m[c]=K;G[c]=G[K]+i.jc;L[c]=L[K]+1;H[c]=i;i=new Z}}}o=L[R]; -J=new M(o);av=new Array(o);gY=new Array(o);c=R;for(K=o-1;K>=0;K--){var iQ=$(c,R),d5=K*3+0<<1,da=iQ*3+0<<1; -if(m[c]==c-1){J.Z5[K]=j.Z5[iQ];J.Gt[d5]=j.Gt[da];J.Gt[d5+1]=j.Gt[da+1];J.Gt[d5+2]=j.Gt[da+2];J.Gt[d5+3]=j.Gt[da+3]; -J.Gt[d5+4]=j.Gt[da+4];J.Gt[d5+5]=j.Gt[da+5];J.Vm[K<<1]=j.Vm[iQ<<1];J.Vm[(K<<1)+1]=j.Vm[(iQ<<1)+1];J.alpha[K]=j.alpha[iQ]; -J.py[K]=j.py[iQ];J.R$[K]=j.R$[iQ];av[K]=gY[K]=1}else{J.Z5[K]="CURVE";J.Gt[d5]=H[c].ww;J.Gt[d5+1]=H[c].h3; -J.Gt[d5+2]=H[c].tA;J.Gt[d5+3]=H[c].rD;J.Gt[d5+4]=j.Gt[da+4];J.Gt[d5+5]=j.Gt[da+5];J.Vm[K<<1]=r(H[c].pI,j.Gt[da+4],a[iQ<<1]); -J.Vm[(K<<1)+1]=r(H[c].pI,j.Gt[da+5],a[(iQ<<1)+1]);J.alpha[K]=H[c].alpha;J.py[K]=H[c].alpha;av[K]=H[c].pI; -gY[K]=H[c].Rh}c=m[c]}for(K=0;K"; -for(var K=0;K>>24&255)==0)continue;w+=">0&255,r=q>>8&255,P=q>>16&255,q="rgb("+B+","+r+","+P+")";w+="\" fill=\""+q+"\" fill-rule=\"evenodd\"/>"}w+=""; -return w};cK.ab6=function(D,M,s){var O=D.length>>1,F,X=D[2*O-3]-s,d=D[2*O-2]-M,V=D[2*O-1]-s,$=V>X,w=0; -for(var K=0;KX}for(var K=0;K0&&V>0)continue;if(F<0&&d<0)continue;if(X==V&&Math.min(F,d)<=0)return!0; -if(X==V)continue;var q=F+(d-F)*-X/(V-X);if(q==0)return!0;if(q>0)w++;if(X==0&&$&&V>X)w--;if(X==0&&!$&&VX}return(w&1)==1};cK.fill=function(D,M,s,F){var X=M[D],d=[D],V=0;while(VM.getParameter(M.MAX_TEXTURE_SIZE)){v.s2=!1;alert("Disabling WebGL")}}; -v.BS=function(D,M){return new Float32Array([(D.x-M.x)/M.d,(D.y-M.y)/M.w,D.d/M.d,D.w/M.w])};v.va=function(){return this.Bb}; -v.Zg=function(D,M){var s=v.nL;s.bindFramebuffer(s.FRAMEBUFFER,v.a6);s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_2D,D.Np,0); -s.viewport(0,0,D.d,D.w);if(M){s.enable(s.SCISSOR_TEST);s.scissor(M.x,M.y,M.d,M.w)}else s.disable(s.SCISSOR_TEST)}; -v.be=function(D,M,s){if(s)throw"error";var F=v.nL;F.disable(F.SCISSOR_TEST);F.bindFramebuffer(F.FRAMEBUFFER,null); -F.viewport(0,0,D,M);if(s){F.enable(F.SCISSOR_TEST);F.scissor(s.x,s.y,Math.round(s.d),Math.round(s.w))}else F.disable(F.SCISSOR_TEST)}; -v.clear=function(){var D=v.nL;D.clearColor(0,0,0,0);D.clear(D.COLOR_BUFFER_BIT)};v.cS=function(D,M){if(M==null)M=0; -var s=(M>>>0&255)==0,F=(M>>>8&255)==0,X=(M>>>16&255)==0,d=(M>>>24&255)==0,V=(D>>>0&255)*(1/255),$=(D>>>8&255)*(1/255),w=(D>>>16&255)*(1/255),q=(D>>>24&255)*(1/255),u=v.nL; -u.colorMask(s,F,X,d);u.clearColor(V,$,w,q);u.clear(u.COLOR_BUFFER_BIT);u.colorMask(!0,!0,!0,!0)};v.kx=function(D,M,s,F,X){var d=M.Nm(F); -if(X)d=d.Nm(X);if(d.qj())return;var V=v.nL;v.Zg(D);V.bindTexture(V.TEXTURE_2D,s.Np);V.copyTexSubImage2D(V.TEXTURE_2D,0,d.x-F.x,d.y-F.y,d.x-M.x,d.y-M.y,d.d,d.w)}; -v.ln=function(K,D,M){var s=v.eC[K];if(s==null||s.d!=D||s.w!=M){if(s)s.delete();s=new v.B0(D,M)}v.eC[K]=s; -return s};v.eC=[];v.lM=function(){this.yo=null;this.Ye=null};v.lM.MT=null;v.lM.prototype.Xr=function(D){if(this.Ye)return; -this.Ye={};var M=v.nL,s=this.yo,F=this.Ye;for(var K=0;K>>1); -M.activeTexture(M["TEXTURE"+(K>>>1)]);M.bindTexture(M.TEXTURE_2D,D[K+1])}M.activeTexture(M.TEXTURE0)}; -v.lM.prototype.aR=function(D,M){var s=v.nL,F=s.createShader(s.FRAGMENT_SHADER);s.shaderSource(F,D);s.compileShader(F); -if(!s.getShaderParameter(F,s.COMPILE_STATUS))console.log(s.getShaderInfoLog(F));var X=s.createShader(s.VERTEX_SHADER); -s.shaderSource(X,M);s.compileShader(X);if(!s.getShaderParameter(X,s.COMPILE_STATUS))console.log(s.getShaderInfoLog(X)); -var d=s.createProgram();s.attachShader(d,X);s.attachShader(d,F);s.linkProgram(d);if(!s.getProgramParameter(d,s.LINK_STATUS))console.log("Could not initialise shaders"); -this.yo=d};v.lM.prototype.ZE=function(){if(v.lM.MT!=this){v.nL.useProgram(this.yo);v.lM.MT=this}};v.bW=function(D,M){v.ph++; -v.xR+=D*M;if(v._$)console.log("GL.Channels instances: "+v.ph+", memory: "+v.xR);var s=v.nL;this.d=D; -this.w=M;this.Np=s.createTexture();this.G6=null;this.Bp(this.Np,D,M)};v.bW.prototype.Bp=function(D,M,s){var F=v.nL; -F.bindTexture(F.TEXTURE_2D,D);F.texParameteri(F.TEXTURE_2D,F.TEXTURE_MIN_FILTER,F.NEAREST);F.texParameteri(F.TEXTURE_2D,F.TEXTURE_MAG_FILTER,F.NEAREST); -F.texParameteri(F.TEXTURE_2D,F.TEXTURE_WRAP_S,F.CLAMP_TO_EDGE);F.texParameteri(F.TEXTURE_2D,F.TEXTURE_WRAP_T,F.CLAMP_TO_EDGE); -F.texImage2D(F.TEXTURE_2D,0,F.ALPHA,M,s,0,F.ALPHA,F.UNSIGNED_BYTE,null)};v.bW.prototype.set=function(D){var M=v.nL; -M.bindTexture(M.TEXTURE_2D,this.Np);M.pixelStorei(M.UNPACK_ALIGNMENT,1);M.texImage2D(M.TEXTURE_2D,0,M.ALPHA,this.d,this.w,0,M.ALPHA,M.UNSIGNED_BYTE,D); -M.pixelStorei(M.UNPACK_ALIGNMENT,4)};v.bW.prototype.delete=function(){var D=v.nL;if(this.Np){D.deleteTexture(this.Np); -v.ph--;v.xR-=this.d*this.w}if(v._$)if(v._$)console.log("GL.Channels instances: "+v.ph+", memory: "+v.xR*4)}; -v.ph=0;v.B0=function(D,M,s){if(s==null)s=!1;v.ph++;v.xR+=D*M*4;if(v._$)console.log("GL.Channels instances: "+v.ph+", memory: "+v.xR); -var F=v.nL;this.amN=s;this.d=D;this.w=M;this.Np=F.createTexture();this.G6=null;this.Bp(this.Np,D,M)}; -v.B0.prototype.set=function(D,M){var s=v.nL;s.disable(s.SCISSOR_TEST);s.bindTexture(s.TEXTURE_2D,this.Np); -if(D==null||D instanceof Uint8Array){var F=this.d*this.w;if(M==null||M.Y()*10>F)s.texImage2D(s.TEXTURE_2D,0,s.RGBA,this.d,this.w,0,s.RGBA,s.UNSIGNED_BYTE,D); -else{var X=e.U(M.Y()*4);e.eJ(D,new hk(0,0,this.d,this.w),X,M);s.texSubImage2D(s.TEXTURE_2D,0,M.x,M.y,M.d,M.w,s.RGBA,s.UNSIGNED_BYTE,X)}}else s.texImage2D(s.TEXTURE_2D,0,s.RGBA,s.RGBA,s.UNSIGNED_BYTE,D)}; -v.B0.prototype.get=function(D){var M=v.nL;v.Zg(this);M.readPixels(0,0,this.d,this.w,M.RGBA,M.UNSIGNED_BYTE,D)}; -v.B0.prototype.Ts=function(D){if(D.qj())return;var M=v.nL;if(this.G6==null){this.G6=M.createTexture(); -this.Bp(this.G6,this.d,this.w);v.ph++;v.xR+=this.d*this.w*4}M.bindFramebuffer(M.FRAMEBUFFER,v.a6);M.bindTexture(M.TEXTURE_2D,this.G6); -if(D){var s=Math.max(D.x,0),F=Math.max(D.y,0);M.copyTexSubImage2D(M.TEXTURE_2D,0,s,F,s,F,D.d,D.w)}else M.copyTexImage2D(M.TEXTURE_2D,0,M.RGBA,0,0,this.d,this.w,0)}; -v.B0.prototype.Bp=function(D,M,s){var F=v.nL;F.bindTexture(F.TEXTURE_2D,D);F.texParameteri(F.TEXTURE_2D,F.TEXTURE_MIN_FILTER,this.amN?F.LINEAR:F.NEAREST); -F.texParameteri(F.TEXTURE_2D,F.TEXTURE_MAG_FILTER,F.NEAREST);F.texParameteri(F.TEXTURE_2D,F.TEXTURE_WRAP_S,F.CLAMP_TO_EDGE); -F.texParameteri(F.TEXTURE_2D,F.TEXTURE_WRAP_T,F.CLAMP_TO_EDGE);F.texImage2D(F.TEXTURE_2D,0,F.RGBA,M,s,0,F.RGBA,F.UNSIGNED_BYTE,null)}; -v.B0.prototype.delete=function(){var D=v.nL;if(this.Np){D.deleteTexture(this.Np);v.ph--;v.xR-=this.d*this.w*4}if(this.G6){D.deleteTexture(this.G6); -v.ph--;v.xR-=this.d*this.w*4}if(v._$)if(v._$)console.log("GL.Channels instances: "+v.ph+", memory: "+v.xR)}; -v.B0.prototype.clone=function(){var D=v.nL,M=new v.B0(this.d,this.w);v.Zg(this);D.bindTexture(D.TEXTURE_2D,M.Np); -D.copyTexImage2D(D.TEXTURE_2D,0,D.RGBA,0,0,this.d,this.w,0);return M};v.c$={apz:" vec3 ocbrn(vec3 a, vec3 b, float f) { vec3 d = (a*vec3(f)+ONE3-vec3(f)); return mix(ONE3 - min(ONE3,(ONE3-b)/d), ZERO3, vec3(vec3(greaterThan(vec3(0.001),d))) ); } ",a81:" vec3 ocddg(vec3 a, vec3 b, float f) { return mix( min(ONE3, b/(ONE3 - a*f)) , ONE3 , vec3(equal(a*f,ONE3 )) ); } ",Sn:"const vec3 ZERO3 = vec3(0.0,0.0,0.0) ;\t\t\tconst vec3 QUAR3 = vec3(0.25,0.25,0.25) ;\t\t\tconst vec3 HALF3 = vec3(0.5,0.5,0.5) ;\t\t\tconst vec3 ONE3 = vec3(1.0,1.0,1.0) ;",bE:" float hueDiff(float shue, float hue) { \t\t\t\tfloat df = hue-shue, adf=abs(df), df0 = df-1.0, df1 = df+1.0; \t\t\t\tif(abs(df0) < adf) df = df0; \t\t\t\telse if(abs(df1) < adf) df = df1; \t\t\t\treturn df; \t\t\t}",dZ:" float hueCF(float hueS, float hue0) { \t\t\t\tfloat df = hueDiff(hue0, hueS)*6.0; \t\t\t\treturn max(0.0, min(1.0, (df<0.0) ? 1.0+df : 1.0-df )); } ",Na:"float sat(vec3 c) { return max(c.x,max(c.y,c.z)) - min(c.x,min(c.y,c.z)); }",FA:"float lum(vec3 c) { return dot(c, vec3(0.3,0.59,0.11)); } ",au:"vec3 D (vec3 x) { return mix( sqrt(x), ((16.0*x-12.0)*x+4.0)*x , vec3(lessThanEqual(x,QUAR3)) ); }",aiQ:"float midSat (vec3 v, float s) { return ((v.y-v.z)*s)/(v.x-v.z); }",Sv:"vec3 setSat (vec3 c, float s) \t\t\t{\t\t\t\tvec3 o;\t\t\t\tif(c.r==c.g && c.g==c.b) o = ZERO3;\t\t\t\telse if(c.r>c.g) {\t\t\t\t\tif(c.r>c.b) {\t\t\t\t\t\tif(c.g>c.b)\to = vec3(s, midSat(c.rgb,s), 0.0); \t\t\t\t\t\telse\to = vec3(s, 0.0, midSat(c.rbg,s)); \t\t\t\t\t}\t\t\t\t\telse\t\to = vec3(midSat(c.brg,s), 0.0, s); \t\t\t\t} else {\t\t\t\t\tif(c.rc.b)\to = vec3(0.0, s, midSat(c.gbr,s)); \t\t\t\t\t\telse\t o = vec3(0.0, midSat(c.bgr,s), s); \t\t\t\t\t}\t\t\t\t\telse\t\t o = vec3(midSat(c.grb,s), s, 0.0);\t\t\t\t}\t\t\t\treturn o;\t\t\t}",aaJ:"vec3 clipCol(vec3 c) \t\t\t{ \t\t\t\tvec3 o = c; float l = lum(c); \t\t\t\tfloat n = min(c.r,min(c.g,c.b)); \t\t\t\tfloat x = max(c.r,max(c.g,c.b)); \t\t\t\tif(n<0.0) o = l + (o-l)*(l/(l-n));\t\t\t\tif(x>1.0) o = l + (o-l)*(1.0-l)/(x-l);\t\t\t\treturn o;\t\t\t}",vG:"vec3 setLum (vec3 c, float l) { return clipCol(c+l-lum(c)); } ",fd:"bool in01(vec2 c) { return (0.0<=c.x) && (c.x<=1.0) && (0.0<=c.y) && (c.y<=1.0); }",hash:"float hash(vec2 v) { return fract(sin(dot(v ,vec2(12.9898,78.233))) * 43758.5453); }",k$:"vec3 rgbToHsl (vec3 rgb) {\t\t\t\tfloat r = rgb.r, g = rgb.g, b = rgb.b; \t\t\t\tfloat mx = max(r, max(g, b)), mn = min(r, min(g, b)); \t\t\t\tfloat h, s, l = (mx + mn) * 0.5;\t\t\t\t\t\t\t\tif(mx == mn) h = s = 0.0; \t\t\t\telse{ \t\t\t\t\tfloat d = mx - mn; \t\t\t\t\ts = l > 0.5 ? d / (2.0 - mx - mn) : d / (mx + mn); \t\t\t\t\t\t\t\t\t\tif(mx==r) h = (g - b) / d + (g < b ? 6.0 : 0.0); \t\t\t\t\telse if(mx==g) h = (b - r) / d + 2.0; \t\t\t\t\telse if(mx==b) h = (r - g) / d + 4.0; \t\t\t\t\t\t\t\t\t\th /= 6.0; \t\t\t\t} \t\t\t\treturn vec3(h,s,l); }",kq:"vec3 hslToRgb (float h, float s, float l){\t\t\t\tfloat r, g, b;\t\t\t\t\t\t\t\tif(s == 0.0) r = g = b = l; \t\t\t\telse{ \t\t\t\t\tfloat q = l < 0.5 ? l * (1.0 + s) : l + s - l * s; \t\t\t\t\tfloat p = 2.0 * l - q; \t\t\t\t\tr = hue2rgb(p, q, h + 1.0/3.0); \t\t\t\t\tg = hue2rgb(p, q, h); \t\t\t\t\tb = hue2rgb(p, q, h - 1.0/3.0); \t\t\t\t} \t\t\t\treturn vec3(r,g,b); } ",L4:"float hue2rgb(float p, float q, float t){ \t\t\t\tif(t < 0.0) t += 1.0;\t\t\t\tif(t > 1.0) t -= 1.0;\t\t\t\tif(t < 1.0/6.0) return p + (q - p) * 6.0 * t; \t\t\t\tif(t < 1.0/2.0) return q; \t\t\t\tif(t < 2.0/3.0) return p + (q - p) * (2.0/3.0 - t) * 6.0; \t\t\t\treturn p;\t}",DK:"vec3 rgbToHsv(vec3 rgb){\t\t\t\t\tfloat r = rgb.r, g = rgb.g, b = rgb.b; \t\t\t\tfloat mx = max(r, max(g, b)), mn = min(r, min(g, b)); \t\t\t\tfloat h, s, v = mx; \t\t\t\t\t\t\t\tfloat d = mx - mn; \t\t\t\ts = mx == 0.0 ? 0.0 : d / mx; \t\t\t\t\t\t\t\tif(mx == mn) h = 0.0; \t\t\t\telse if(mx==r) h = (g - b) / d + (g < b ? 6.0 : 0.0); \t\t\t\telse if(mx==g) h = (b - r) / d + 2.0; \t\t\t\telse if(mx==b) h = (r - g) / d + 4.0; \t\t\t\t\t\t\t\th /= 6.0; \t\t\t\treturn vec3(h,s,v); }",NW:"vec3 hsvToRgb(float h, float s, float v) { \t\t\t\tfloat r, g, b, f, p, q, t, i; \t\t\t\ti = floor(h * 6.0); \t\t\t\tf = h * 6.0 - i; \t\t\t\tp = v * (1.0 - s); \t\t\t\tq = v * (1.0 - f * s); \t\t\t\tt = v * (1.0 - (1.0 - f) * s); \t\t\t\t\t\t\t\tif (i==0.0) { r = v, g = t, b = p; }\t\t\t\telse if(i==1.0) { r = q, g = v, b = p; }\t\t\t\telse if(i==2.0) { r = p, g = v, b = t; }\t\t\t\telse if(i==3.0) { r = p, g = q, b = v; }\t\t\t\telse if(i==4.0) { r = t, g = p, b = v; }\t\t\t\telse if(i==5.0) { r = v, g = p, b = q; }\t\t\t\t\t\t\t\treturn vec3(r,g,b); }",g$:"\t\tfloat srgbUngamma(float x) {\t\t\treturn (x<0.04045) ? (x / 12.92) : pow( ( x + 0.055 ) / 1.055, 2.4);\t\t}\t\tfloat xyzScale(float x) {\t\t\treturn (x>0.008856) ? pow(x,1.0/3.0) : (903.3*x+16.0)*(1.0/116.0); \t\t}\t\tvec3 rgbToLab(vec3 rgb) {\t\t\tbool ok = true;\t\t\trgb.r = srgbUngamma(rgb.r); \t\t\trgb.g = srgbUngamma(rgb.g); \t\t\trgb.b = srgbUngamma(rgb.b); \t\t\tok = ok && 0.0318<=rgb.r && rgb.r<=0.0319; \t\t\tok = ok && 0.127 <=rgb.g && rgb.g<=0.128 ; \t\t\tok = ok && 0.3047<=rgb.b && rgb.b<=0.305; \t\t\t\t\t\tmat3 srgb2xyz = mat3(0.4360747164307918, 0.222504478679176, 0.013932173981751634, 0.3850649153329662, 0.7168786002139355, 0.09710452396580642, 0.14308038098632878, 0.06061692340677909, 0.7141732835334675); \t\t\t\t\t\tvec3 xyz = srgb2xyz*rgb; \t\t\tok = ok && 0.106<=xyz[0] && xyz[0]<=0.107; \t\t\t\t\t\txyz=xyz*vec3(100.0/96.72, 100.0/100.0, 100.0/81.427); \t\t\txyz.x = xyzScale(xyz.x); \t\t\txyz.y = xyzScale(xyz.y); \t\t\txyz.z = xyzScale(xyz.z); \t\t\t\t\t\treturn vec3(116.0*xyz.y-16.0, 500.0*(xyz.x-xyz.y), 200.0*(xyz.y-xyz.z)); \t\t} \t\tfloat labSimilar(vec3 lab, vec3 mnm, vec3 mxm, float lim) {\t\t\tfloat L=lab.x, a=lab.y, b=lab.z; \t\t\tfloat dl = ((L1.0?1.0:mi);\t\t}"}; -v.tg={wz:{},tk:"\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 sCoord;\t\t\tvoid main(void) {\t\t\t\tsCoord = verPos;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}"}; -v.tg.W_=function(D,M){var s=iA.GZ,F=[s.ec,s.hW,s.Tp,s.D7,s.mO,s.zD,s.n5,s.ET].indexOf(D.type),X=v.tg.wz[D.type]; -if(X==null)X=v.tg.wz[D.type]=new v.wz[F];X.ZE();X.AO(M,D);v.nL.drawArrays(v.nL.TRIANGLES,0,6)};v.wz=[]; -v.wz[0]=function(){v.lM.call(this);this.ju={};var D="\t\t\tprecision mediump float;\t\t\t"+v.c$.FA+"\t\t\t"+v.c$.Sn+"\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D map;\t\t\tuniform float toGray;\t\t\tuniform float presLum;\t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tfloat olum = lum(src.rgb); \t\t\t\tsrc.rgb = toGray * vec3(olum) + (1.0-toGray)*src.rgb; \t\t\t\tfloat r = texture2D(map, vec2(src.r, 0)).r;\t\t\t\tfloat g = texture2D(map, vec2(src.g, 0)).g;\t\t\t\tfloat b = texture2D(map, vec2(src.b, 0)).b;\t\t\t\tvec3 col = vec3(r,g,b); \t\t\t\tif(presLum==1.0) { \t\t\t\t\tfloat nlum = lum(col); \t\t\t\t\tif(olum>nlum) col += (olum-nlum)/(1.0-nlum)*(ONE3-col); \t\t\t\t\telse if(nlum==0.0) col = ZERO3; \t\t\t\t\telse col = (olum/nlum) * col; \t\t\t\t}\t\t\t\tgl_FragColor = vec4(col,src.w);\t\t\t\t\t\t\t}"; -this.aR(D,v.tg.tk)};v.wz[0].prototype=new v.lM;v.wz[0].prototype.AO=function(D,M){var s={i:M.ay,q:M.AN,P:M.cZ,iD:e.U(M.ay.length)},F=s.i.length; -if(this.ju["m"+F]==null){this.ju["m"+F]={anf:new v.B0(F,1),dP:e.U(F*4)}}var X=this.ju["m"+F];e.s8(s,X.dP,0); -var d=X.anf;d.set(X.dP);this.Xr(["source","map","toGray","presLum"]);var V=v.nL,$=this.Ye;V.uniform1f($.toGray,M.Z4?1:0); -V.uniform1f($.presLum,M.bY?1:0);this.Bx([$.source,D,$.map,d.Np])};v.wz[1]=function(){v.lM.call(this); -this.a1T=new v.B0(256,1);this.anS=e.U(256*4);var D="\t\t\t\tprecision mediump float;\t\t\t\t"+v.c$.L4+"\t\t\t\t"+v.c$.k$+"\t\t\t\t"+v.c$.kq+"\t\t\t\t\t\t\t\tuniform sampler2D source;\t\t\t\tuniform sampler2D map;\t\t\t\tuniform float cfa; \t\t\t\tuniform float cfb; \t\t\t\tuniform int colorize; \t\t\t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\t\t\tvoid main(void) { \t\t\t\t\tvec4 src = texture2D(source, sCoord);\t\t\t\t\tvec3 rgb = src.rgb;\t\t\t\t\tfloat mn=min(rgb.r,min(rgb.g,rgb.b)), mx = max(rgb.r,max(rgb.g,rgb.b));\t\t\t\t\t\t\t\t\t\tvec3 hsl = rgbToHsl(rgb); \t\t\t\t\tfloat h = hsl.r, s = hsl.g, l = hsl.b; \t\t\t\t\t\t\t\t\t\tvec4 mapv = texture2D(map, vec2(h, 0));\t\t\t\t\tfloat nh = mapv.r; \t\t\t\t\tfloat sc = mapv.g*2.0-1.0; \t\t\t\t\tfloat lc = mapv.b*2.0-1.0; \t\t\t\t\t\t\t\t\t\tfloat cf = -lc, tv=mn;\t\t\t\t\tif(0.00.0) sc = pow(tan((3.14159265359/2.0)*sc),1.3);\t\t\t\t\t\tns = min(s * (1.0 + sc), 1.0); \t\t\t\t\t} \t\t\t\t\t\t\t\t\t\tgl_FragColor = vec4(hslToRgb(nh,ns,l),src.w); \t\t\t\t\t\t\t\t\t}"; -this.aR(D,v.tg.tk)};v.wz[1].prototype=new v.lM;v.wz[1].prototype.AO=function(D,M){e.s8({i:M.a2F,q:M.SC,P:M.a4u,iD:e.U(256)},this.anS); -this.a1T.set(this.anS);this.Xr(["source","map","cfa","cfb","colorize"]);var s=v.nL,F=this.Ye;s.uniform1f(F.cfa,M.a32); -s.uniform1f(F.cfb,M.im);s.uniform1i(F.colorize,M.ajf);this.Bx([F.source,D,F.map,this.a1T.Np])};v.wz[2]=function(){v.lM.call(this); -var D="\t\t\tprecision mediump float;\t\t\t"+v.c$.L4+"\t\t\t"+v.c$.DK+"\t\t\t"+v.c$.NW+"\t\t\t"+v.c$.k$+"\t\t\t"+v.c$.kq+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform float vib; \t\t\tuniform float sat; \t\t\tconst float PI = 3.141592653; \t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) { \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tvec3 hsl = rgbToHsv(src.rgb); \t\t\t\tfloat h=hsl.r, s=hsl.g, l=hsl.b; \t\t\t\t\t\t\t\tfloat sk0 = 0.0, sk1 = 45.0/360.0; \t\t\t\tfloat skin = (h2OI;5g7:@5nVPLIGeVMX`|njge-'&-$V&)/$BbHB4D%GNx`KSI=_f_menp%E+%vwKB4&'XQY``edhootpjxp&%*'vhxY{#>5HINMDXX]YnVW",$W:0,rM:1,VL:2,NM:3}; -v.filter.W_=function(D,M){var s=v.filter,F=[s.$W,s.rM,s.VL,s.NM].indexOf(D.type),X=v.filter.fb[D.type]; -if(X==null)X=v.filter.fb[D.type]=new v.fb[F];X.ZE();X.AO(M,D);v.nL.drawArrays(v.nL.TRIANGLES,0,6)};v.fb=[0,0,0,0,0,0,0]; -v.fb[3]=function(){v.lM.call(this);var D="1%* !*709;O@;=ETOUgQZ`Uk5rnllx~|2)y)/.*:\\qPGFOOCH!^ZXXdjh}wij<-y+~T2.,,8>{wuu\"(&;5'(ZJ<@=JtRNLLX^\\qbYo2!tvv'@N,(&&286K<3IkZNPP`z(fThremi%~pqC4+]-06+d/?BBXEM2TTdugYZ.|v,\" qrF5)X,#=OAWACCSlkYoY[[k&!6pfx||{0!w2D-$>P<\\J`HhWioTKewc$s(o0|14JNDEJX>:,-_OE7G@qi[MN!pdo&|vhi<, ,>42$%WG=/H*8FySLTp\\g{&))4:;7CC;$0CSRPXZ_cg]Wd]quw~$}'-/50=wm $$#7-~8y(6L\\RRiYLP^}gZfo.z/Dr{\"v-;1#)d/3AH?cORDJ$UUygY_~>45:6,*{|O?6;6f5>D9O]T[$yz ~ubjb?66;Iw$*B$-3(>LIob).\"|^$(>C72s(+,\"rzrOFFKK+3+e77[PuiRDJehh0gY_'!gvx\"y\",~W&28P2;A6LZV}p7<0+k26LQE@!6KCBGC9'06+AO6NuTiKSK&WW{o6*rdj&)(P(y GA(79B:BL?wIImiU]Bddt&wij>5s,B3H2$*T[\\a]`c]DSU^V^h[4rde9(nz$Q, 6599/^sZIHQQEJsja4cfla+ykl>7u.D5GK.?3Vk:CI>TbIM)PTh obft4my#A.BW&/5*@N3K?wmnvpMYb!h$,-7>2nz$B~EMNTWS0>CC /#KO,8A_G?=]kcM\\Pyi[\\/'9384Iw!'{2@49>iW6:t@DRYPj-p{~^bpwn6os;D|!/6-PJgP[:>y|rsx+~ %2#ae1ko}%{?H $KNc2;A6LZAX!ww||chm7ry0En&L(-(H]'>S04}M?H'VV\\b0i\\hq=#"; -this.aR(U.I7(D),U.I7(v.filter.tk))};v.fb[3].prototype=new v.lM;v.fb[3].prototype.AO=function(D,M){this.Xr("source iwh tdep rrad spec nois poly0 poly1".split(" ")); -var s=v.nL,F=this.Ye;s.uniform2fv(F.iwh,M.Xj);s.uniform1f(F.tdep,M.acj);s.uniform1f(F.rrad,M.a2$);s.uniform2fv(F.spec,M.ahJ); -s.uniform3fv(F.nois,M.ao8);s.uniformMatrix4fv(F.poly0,!1,M.abV);s.uniformMatrix4fv(F.poly1,!1,M.a6L); -this.Bx([F.source,D]);var X=s.LINEAR;s.activeTexture(s.TEXTURE0);s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,X); -s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,X);s.activeTexture(s.TEXTURE0)};v.fb[0]=function(){v.lM.call(this); -var D="1%* !*709;O@;=ETOUgQZ`Uk5|uqoo{\" 5,|,21-=_tSJIRRFK$kd`^^jpn$}opB3 1%ZB;755AGEZTFGyiYT.unjhhtzx.w!'{2@7/3;5mUO=Q[NVRmgYZ,|sFux~sM5~(.#9G23E'?;AOZm_QR$th$}|$mv|q(62M?_E=1GFJJ@o%kZYbbV[%{o-{mn@9AHHMLCVW\\X\\?PDgo\\#jT]cXn|x5&F,$w.-11'VkRA@II=BkbVsbTU' z//43*=>C?C&7+NVCiQ;DJ?Uc`zl-rj^tswwm=R9('00$)RI=ZI;^DWXd\\S;Sn_ epe!~n)$9!zlm@0\"6V<.286-;;O=bTFGyqyTk(#`x31(8r*DA~7ROF.E_\\:Rlgj g]Seiih|drz1xs>$AV>?D>:75SD;FNj\\XUSztszdmsh~-({6V5g7:@5\\`QEzbc"; -this.aR(U.I7(D),U.I7(v.filter.tk))};v.fb[0].prototype=new v.lM;v.fb[0].prototype.AO=function(D,M){this.Xr(["source","iwh","ld","shine"]); -var s=v.nL,F=this.Ye;s.uniform2fv(F.iwh,M.Xj);s.uniform3fv(F.ld,M.a9O);s.uniform1f(F.shine,M.a1V);this.Bx([F.source,D,F.tang,M.EY])}; -v.fb[1]=function(){v.lM.call(this);var D="1%* !*709;O@;=ETOUgQZ`Uk5|uqoo{\" 5,|,21-=_tSJIRRFK$kd`^^jpn$}opB3 1%ZB;755AGEZDMSH^lYfY4{tpnnz!~4}'-\"8F,?9FJEAya[I]gZb^ysef8) R\"%+ YA+4:/ES?;PHjLU[Pfths*!jsyn%3'3E?>E/8>3IWM?X:HVl-ribj'r}2PpV@IORXp\\w-tn`a3$u|]0P6*I.3`H2;A6LZQqt$]V^z'**/+@(\"stF7}M@`F-LlRLXf^DWQ^b]Yv$|hdyq4r\")@,L:MQ>^a_:IPgSsbtxe&)$9!vl~##\"6,0,7OP\\\\acjhmi~fglfb_]{lcnv3%!}{C=& qrF5{++AaG?3IHLLBq'm\\[ddX]'}tGvy t?D>:75SD;FNj\\XUSztszdmsh~-x+S-&'0'S?89B9u]GPVKaofmx9~338F.(yzN=494IiOG;QPTTJy/udcll`e/&|O~\"(|DYA;-._P:GYy_tsxuvfZpossi9N5%t%!H?6h8;A6]eSWmZLM~w#$.(/0:14I1+|}O@(FfL6CpXBNTlQYbp]4*8 lB;G/{@CD>=D>01bSGYy_V)X[aV0wams,mv|q(6,YOPUcKAmfgjmns\"i_z}~xw~xjk=.~x7W=RQVSTD8NMQQGv,rbRb^&|p,4\"&<)z{MFQR\\V]^h_bw_LLpP^f|e_*e-C:;@<65<-'bU93lTUZB`!fWQ+rfx'<\"rl5w)|R:$-3(>LGRrXSDKLP_uc|2ypup&4I/*?-!76::0_t[JIRRFKtk_z0wnu,A~E-yy>,Z\\+=QK1D:9Fx`afN*|Yf4{|\"ltjT$u~]--39IiOFKFefrrwyah|2yz"; -this.aR(U.I7(D),U.I7(v.filter.tk))};v.fb[2].prototype=new v.lM;v.fb[2].prototype.AO=function(D,M){this.Xr(["source","tang","iwh","sigma","expo"]); -var s=v.nL,F=this.Ye;s.uniform2fv(F.iwh,M.Xj);s.uniform1f(F.sigma,M.am0);s.uniform1f(F.expo,M.alU);this.Bx([F.source,D,F.tang,M.EY]); -var X=s.LINEAR;s.activeTexture(s.TEXTURE0);s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,X);s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,X); -s.activeTexture(s.TEXTURE0)};v.z={};v.z.m8={};v.z.BX=null;v.z.nw=null;v.z.S_=null;v.z.vD=function(D,M,s,F,X,d,V,$){if($==null)$=dm.aQ(); -if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(D)==-1){V=V*$.fill;$.fill=1;$.style=!1}var w=D+($.GW?"1":""); -if(v.z.m8[w]==null)v.z.m8[w]=new v.z.E3(D,$.GW!=null);var q=v.z.m8[w],u=s.Nm(X).Nm(d);u.offset(-X.x,-X.y); -if(u.qj())return;var B=v.nL;v.Zg(F,u);F.Ts(u);q.ZE();q.AO(M.Np,F.G6,v.BS(s,X),V,$.fill,$.style?1:0,$.Sf?1:0,$.GW?new Float32Array($.GW):null); -B.drawArrays(B.TRIANGLES,0,6)};v.z.ZP=function(D,M,s,F,X,d,V,$,w,q,u){if(v.z.BX==null)v.z.BX=new v.z.yl(!0,!0); -if(v.z.nw==null)v.z.nw=new v.z.yl(!0,!1);if(v.z.S_==null)v.z.S_=new v.z.yl(!1,!0);var B=q?1:0,r=D?X?v.z.BX:v.z.nw:v.z.S_,P=new Float32Array(u?[u[0],u[1],u[2],1]:[1,1,1,1]),A=M?M.Nm(F).Nm($):F.Nm($); -if(A.qj())return;A.offset(-F.x,-F.y);var E=v.nL;v.Zg(s,A);s.Ts(A);r.ZE();if(D==null)r.AO(null,s.G6,X.Np,v.BS(F,F),v.BS(d,F),V/255,w,B,P); -else if(X)r.AO(D.Np,s.G6,X.Np,v.BS(M,F),v.BS(d,F),V/255,w,B,P);else r.AO(D.Np,s.G6,null,v.BS(M,F),null,V/255,w,B,P); -E.drawArrays(E.TRIANGLES,0,6)};v.z.a1E=function(D,M,s){if(v.z.ab$==null)v.z.ab$=new v.z.N0;var F=v.z.ab$,X=new hk(0,0,D.d,D.w),d=v.nL; -v.Zg(M);M.Ts(X);F.ZE();F.AO(X,D.Np,M.G6,s.Np);d.drawArrays(d.TRIANGLES,0,6)};v.z.Fi={norm:"return a;",diss:"return a;",dark:"return min(a,b);","mul ":"return a*b;",idiv:" vec3 d = (a*vec3(f)+ONE3-vec3(f)); return mix(mix(ONE3-((ONE3-b)/max(d,vec3(1e-6))), ZERO3, vec3(greaterThanEqual(ONE3-b,d)) ), ONE3 , vec3(equal(b,ONE3) )); ",lbrn:"return max(ZERO3, a*f+b-f);",dkCl:"return ( lum(a)lum(b) ? a : b );",over:"return mix( a+(2.0*b -1.0)-a*(2.0*b-1.0) , 2.0*b*a , step(-HALF3,-b) );",sLit:"return mix( b+(2.0*a -1.0)*(D(b)-b) , b-(1.0-2.0*a)*b*(1.0-b) , step(-HALF3,-a) );",hLit:"return mix( b+(2.0*a -1.0)-b*(2.0*a-1.0) , 2.0*a*b , step(-HALF3,-a) );",vLit:" return mix( ocddg(2.0*a-1.0,b,f) , ocbrn(2.0*a,b,f) , vec3(greaterThanEqual(HALF3,a))); ",lLit:"return mix( min(ONE3, (2.0*a-1.0)*f+b) , max(ZERO3, 2.0*a*f+b-f) , step(-HALF3,-a));",pLit:"return mix( max(2.0*a-1.0,b) , min(2.0*a, b) , step(-HALF3,-a) );",hMix:"if(f>0.99) return vec3(greaterThanEqual(a+b,ONE3)); return min( ONE3, max(ZERO3, (b+a*f-f)/(1.0-f+1e-6) )) ; ",diff:"return abs(a*f-b);",smud:"return a+b-2.0*a*b;",fsub:"return max(b-a, ZERO3);",fdiv:"return min(b/a, ONE3);","hue ":"return setLum( setSat(a, sat(b)) , lum(b) ); ","sat ":"return setLum( setSat(b, sat(a)) , lum(b) ); ",colr:"return setLum( a, lum(b) ); ","lum ":"return setLum( b, lum(a) ); "}; -v.z.E3=function(D,M){v.lM.call(this);var s="\t\t\tprecision mediump float;\t\t\t"+v.c$.Sn+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D target;\t\t\tuniform float alpha;\t\t\tuniform float fill;\t\t\tuniform float style;\t\t\tuniform float keepBGA;\t\t\t"+(M?"uniform vec4 blIf[10];":"")+"\t\t\t\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\t\t\t\t\t\t\t"+v.c$.Na+"\t\t\t"+v.c$.FA+"\t\t\t"+v.c$.au+"\t\t\t"+v.c$.apz+"\t\t\t"+v.c$.a81+"\t\t\t"+v.c$.aiQ+"\t\t\t"+v.c$.Sv+"\t\t\t"+v.c$.aaJ+"\t\t\t"+v.c$.vG+"\t\t\t"+v.c$.hash+"\t\t\t"+(M?v.c$.MI:"")+"\t\t\t\t\t\tvec3 BB(vec3 a, vec3 b, float f) { "+v.z.Fi[D]+" } \t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = texture2D(source, sCoord);",F="\t\t\tattribute vec2 verPos;\t\t\tuniform vec4 srct;\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvoid main(void) {\t\t\t\ttCoord = verPos;\t\t\t\tsCoord = (verPos-srct.xy)/srct.zw;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}"; -if(D=="diss")s+="\t\t\t\t\tgl_FragColor = (hash(tCoord) >= (keepBGA + (1.0-keepBGA)*src.w)*alpha ? tgt : vec4(src.xyz, keepBGA*tgt.w + (1.0-keepBGA))); }"; -else s+=" \t\t\t\t\tfloat as = (keepBGA + (1.0-keepBGA)*src.w) * alpha, at = keepBGA + (1.0-keepBGA)*tgt.w; \t\t\t\t\t"+(M?" as*=blendIf(src,tgt,blIf); ":"")+"\t\t\t\t\tfloat ats = at * (1.0-as), ao = as + ats, iao = (ao==0.0) ? 0.0 : (1.0/ao); \t\t\t\t\tfloat ccf = (style==1.0) ? 1.0 : as; \t\t\t\t\tvec3 ncl = ( (1.0-at)*as*src.xyz + (1.0-ccf)*at*tgt.xyz + ccf*at*BB(src.xyz, tgt.xyz, (1.0+as-ccf)*fill) ) * iao;\t\t\t\t\tgl_FragColor = vec4(ncl, keepBGA*tgt.w + (1.0-keepBGA)*(as*fill + at*(1.0-as*fill)));\t\t\t\t\t\t\t}"; -this.aR(s,F)};v.z.E3.prototype=new v.lM;v.z.E3.prototype.AO=function(D,M,s,F,X,d,V,$){this.Xr("srct alpha source target fill style keepBGA blIf".split(" ")); -var w=v.nL,q=this.Ye;w.uniform4fv(q.srct,s);w.uniform1f(q.alpha,F);w.uniform1f(q.fill,X);w.uniform1f(q.style,d); -w.uniform1f(q.keepBGA,V);if($)w.uniform4fv(q.blIf,$);this.Bx([q.source,D,q.target,M])};v.z.yl=function(D,M){v.lM.call(this); -this.a4Y=D;this.MH=M;var s="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D target;\t\t\tuniform sampler2D weight;\t\t\tuniform vec4 cswitch;\t\t\tuniform float wcolor;\t\t\tuniform float awg; /* additional weight */\t\t\tuniform float dissv;\t\t\t\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvarying vec2 wCoord;\t\t\t\t\t\t"+v.c$.fd+"\t\t\t"+v.c$.hash+"\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = "+(D?"texture2D(source, sCoord)":"vec4(0.0)")+"; \t\t\t\tfloat wg = awg "+(M?"* (in01(wCoord) ? texture2D(weight, wCoord).w : wcolor)":"")+";\t\t\t\t"+(D?"":"wg = 1.0-wg;")+"\t\t\t\tfloat hwg = hash(tCoord)>=wg ? 0.0 : 1.0; wg = dissv*hwg + (1.0-dissv)*wg; \t\t\t\tfloat as = wg*src.w, at = (1.0-wg)*tgt.w, ao = as+at;\t\t\t\t\t\t\t\tvec4 nc = vec4( (as*src.xyz + at*tgt.xyz)/ao, ao ); \t\t\t\tgl_FragColor = "+(M?"nc":"cswitch*nc + (1.0- cswitch)*tgt")+"; \t\t\t}",F="\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvarying vec2 wCoord;\t\t\t\t\t\tuniform vec4 srct;\t\t\tuniform vec4 wrct;\t\t\tvoid main(void) {\t\t\t\ttCoord = verPos;\t\t\t\tsCoord = (verPos-srct.xy)/srct.zw;\t\t\t\twCoord = (verPos-wrct.xy)/wrct.zw;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}"; -this.aR(s,F)};v.z.yl.prototype=new v.lM;v.z.yl.prototype.AO=function(D,M,s,F,X,d,V,$,w){if(this.MH)this.Xr("srct wrct wcolor awg dissv source target weight cswitch".split(" ")); -else this.Xr("srct awg dissv source target cswitch".split(" "));var q=v.nL,u=this.Ye;q.uniform4fv(u.srct,F); -if(this.MH){q.uniform4fv(u.wrct,X);q.uniform1f(u.wcolor,d)}else{q.uniform4fv(u.cswitch,w)}q.uniform1f(u.awg,V); -q.uniform1f(u.dissv,$);var B=[u.source,D,u.target,M];if(this.MH)B.push(u.weight,s);this.Bx(B)};v.z.N0=function(){v.lM.call(this); -var D="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D prev;\t\t\tuniform sampler2D next;\t\t\tuniform sampler2D alpha;\t\t\t\t\t\tvarying vec2 coord;\t\t\t\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec3 or = texture2D(prev , coord).rgb;\t\t\t\tvec3 ir = texture2D(next , coord).rgb; \t\t\t\tfloat al = texture2D(alpha, coord).w; \t\t\t\tgl_FragColor = vec4( (ir-(1.0-al)*or)*(1.0/al) ,1.0 ); \t\t\t}",M="\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 coord;\t\t\t\t\t\tuniform vec4 rct;\t\t\tvoid main(void) {\t\t\t\tcoord = verPos;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}"; -this.aR(D,M)};v.z.N0.prototype=new v.lM;v.z.N0.prototype.AO=function(D,M,s,F){this.Xr(["rct","prev","next","alpha"]); -var X=v.nL,d=this.Ye;X.uniform4fv(d.rct,[0,0,1,1]);this.Bx([d.prev,M,d.next,s,d.alpha,F])};var T={}; -T.p4=function(D,M,s){this.name=D;this.id=M;this.Pm=null;if(s!=null)this.mS=s};T.p4.prototype.t$=function(D,M,s,F,X){}; -T.p4.prototype.enable=function(D,M,s,F,X,d){var V=new W(U.E.Q,!0);V.data={e:U.V.tp,BA:"default"};M.n(V)}; -T.p4.prototype.disable=function(D,M,s,F,X){};T.p4.prototype.hi=function(D,M,s,F,X){return!1};T.p4.prototype.Ed=function(D,M,s,F,X){}; -T.p4.prototype.km=function(D,M,s,F,X){};T.p4.prototype.Hi=function(D,M,s,F,X){};T.p4.prototype.q_=function(D,M,s,F,X){}; -T.p4.prototype.Sx=function(D,M,s,F,X){};T.p4.prototype.sW=function(D,M,s,F){};T.p4.prototype.OD=function(D,M,s,F){}; -T.p4.prototype.i5=function(D,M){};T.p4.prototype.L9=function(D,M){};T.p4.prototype.yJ=function(D,M,s,F,X){}; -T.p4.prototype.mj=function(D,M){};T.p4.prototype.LB=function(D,M){return!1};T.p4.prototype.D8=function(D,M){return!1}; -T.p4.prototype.lo=function(){return!1};T.p4.prototype.o9=function(D,M){return!0};T.p4.prototype.Oq=function(){return null}; -T.p4.prototype.nl=function(D,M,s){};T.p4.prototype.N3=function(){return!1};T.p4.prototype.h9=function(D,M,s,F){}; -T.p4.prototype.track=function(D){var M=new W(U.E.qZ,!0);M.data=D;D.BT=!0;this.Pm.n(M)};T.p4.Dd=function(D,M,s,F,X){T.p4.c5(D,M,[dY.get([12,41]).charAt(0)+": "+e.fk.vc(s.d,F.Gs,X,F.d,!0),dY.get([12,42]).charAt(0)+": "+e.fk.vc(s.w,F.Gs,X,F.w,!0)],F)}; -T.p4.c5=function(D,M,s,F){var X=14,d=130,V=s.length*17+8,$=new hk(D,M-V,d,V),w=T.p4.TU;if(w==null)w=T.p4.TU=document.createElement("canvas"); -w.width=d;w.height=V;var q=w.getContext("2d");q.fillStyle="rgba(0,0,1,1)";q.fillRect(0,0,d,V);q.font=X+"px monospace"; -q.fillStyle="rgba(255,255,255,1)";for(var K=0;KMath.abs(V); -if(q&&F[2]){var u=Math.round(2*d/X);$+=u;s.x-=d-.5*u*X}if(!q&&!F[2]&&w!=-1){var u=Math.round(.25*V); -w+=u;s.y-=V-4*u}$=Math.max(1,$);w=F[1]==-1?-1:Math.max(0,Math.min(100,w));var B=F[3];B.Brsh.v.Dmtr.v.val=$; -if(w!=-1)B.Brsh.v.Hrdn.v.val=w;this.I$=[$,w,q,B,s];var r=hW.dq(B,M.t_.Ib,X),P=r[1];P.x=Math.round(this.Hu.x-P.d/2); -P.y=Math.round(this.Hu.y-P.w/2);D.J.Ej=[r];var A=D.a.wT(this.Hu.x,this.Hu.y);D.J.zk={ud:[],X6:[A.x-$/2,A.y,A.x+$/2,A.y]}; -if(w!=-1)D.J.zk.X6.push(A.x+50/X,A.y-w/2,A.x+50/X,A.y+w/2);D.dm=!0};T.NL.prototype.Sx=function(D,M,s,F,X){if(this.id==T.eN)return; -if(this.Hu){this.Hu=null;this.K2(JSON.parse(JSON.stringify(this.I$[3])));D.J.Ej=[];D.J.zk=null;D.dm=!0; -return}var d=new W(U.E.Q,!0);d.data={e:U.V.TS,G:this.id,an6:"showBrushOpts",ru:new eo(X.dO+4,X.AS)}; -M.n(d)};T.NL.prototype.K2=function(D){var M=new W(U.E.Q,!0);M.data={e:U.V.uW,Q1:bd.kd,rk:D};this.caller.n(M)}; -T.NL.sh=function(D,M,s,F,X){if(D==null)D="FrgC";if(M==null)M="norm";if(s==null)s=1;if(X==null)X=!1;var d={classID:"Fl",Usng:{t:"enum",v:{FlCn:D}},Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(s*100)}},PrsT:{t:"bool",v:X},Md:{t:"enum",v:{BlnM:eF.rm(M)}}}; -if(D=="Clr")d.Clr={t:"Objc",v:F};if(D=="contentAware")d.contentAwareColorAdaptationFill={t:"bool",v:!0}; -return{FX:"fill",k_:d}};T.NL.prototype.t$=function(D,M,s,F,X){this.Pm=M;var d=s.nz.length;if(d==0&&!s.CH())return; -var V=d!=0?-1-s.nz[0]:s.D[0],$=s.N[V];if(D.e=="fromAction"){var w=D.ZU,q=w.k_;if(w.FX=="fill"){var u=q.PrsT?q.PrsT.v:!1,B=$.add.lspf,E; -if(u){$.add.lspf=B==null?1:B|1}var r=(q.Opct?q.Opct.v.val:100)/100,P=q.Md?eF.Eo(q.Md.v.BlnM):"norm",A=q.Usng.v.FlCn; -if(A=="contentAware"){if(s.Z==null){alert("Select an area to heal first.");return}if(!s.CH())return; -this.TB(s);this.dv(s,0);var n=s.Z,_=e.U(n.rect.Y()*4);e.Te(n.channel,_,3);this.kg(s,"sheal",_,n.rect,n.rect); -this.T(s,n.rect);this.finish(s,n.rect)}else{if(A=="FrgC")E=X.Yr;else if(A=="BckC")E=X.hE;else if(A=="Blck")E=0; -else if(A=="Wht")E=16777215;else if(A=="Gry")E=8421504;else if(A=="Clr"){var l=e.h.KO(q.Clr.v);E=l.i<<16|l.q<<8|l.P}var b=E>>16&255,y=E>>8&255,p=E>>0&255; -this.qq(s,$,s.Z,b,y,p,Math.round(255*r),P,[2,3])}if(u){$.add.lspf=B==null?0:B}}else if(w.FX=="delete"){var k=V<0?1:$.eu,n=s.Z,R; -if(n==null)return;var S=V<0?s.lk[-V-1]:k<=0?null:k==1?$.Ro():$.DI(s).C,Z=k<=0?$.rect:S.rect,z=k<=0?n.rect.Nm(Z):n.rect.clone(); -if(z.qj())return;var j=z.Y();if(k<=0){R=e.U(j*4);e.eJ($.buffer,$.rect,R,z)}else{R=e.U(j);S.extend(z); -e.b7(S.channel,S.rect,R,z)}if(0<=V&&$.qR(s,n)){if(k<=0){e.BK(R,0);e.eJ($.Uc.fz,$.Uc.J3,R,z)}else{R.fill(255); -e.b7($.Uc.fz,$.Uc.J3,R,z)}}else{if(k<=0){var a=e.U(R.length>>2);e.FK(R,a,3);e.z.rF(e.k5(n.rect.Y()),n.rect,a,z,n.channel,z,1); -e.Te(a,R,3)}else{var m=e.U(n.rect.Y()),b=X.hE>>>16&255,y=X.hE>>8&255,p=X.hE>>0&255;m.fill(Math.round(e.jq(b,y,p))); -e.z.rF(m,n.rect,R,z,n.channel,z,1)}}this.ul(s,!0,[2,2],V,k,z,R)}}if(D.e=="stroke"){var G=D.afy,n=s.Z; -if(n==null){n={rect:$.rect.clone(),channel:e.U($.rect.Y())};e.FK($.buffer,n.channel,3)}var L=dm.yX(G),H=T.nv.WP(n,Math.ceil(L[0]),Math.ceil(L[1])),E=e.h.KO(G.Clr.v),b=Math.round(E.i),y=Math.round(E.q),p=Math.round(E.P); -this.qq(s,$,H,b,y,p,Math.round(255*G.Opct.v.val/100),eF.Eo(G.Md.v.BlnM),[14,9])}if(D.e=="fillBMP"){this.xx(s,$,s.Z,D.HN,D.cZ,D.nc)}if(D.e=="draw"){var o=D.MA,c=o.rect; -this.TB(s);var f=s.N[s.D[0]];if(D.alj&&f&&f.eu<=0&&s.nz.length==0){c=aG.u$.Wc(o,s);f.buffer=o.buffer.slice(0); -f.rect=c.clone()}else{var i=this.FO.bmode;this.FO.bmode="norm";this.kg(s,"draw",o.buffer,c,c.Nm(new hk(0,0,s.d,s.w))); -this.FO.bmode=i}this.T(s,c);s.$E=!0;this.finish(s,c,D.nc,D.alj)}};T.NL.prototype.qq=function(D,M,s,F,X,d,V,$,w){var q=s==null?new hk(0,0,D.d,D.w):s.rect,u=V<<24|d<<16|X<<8|F<<0,B=e.U(q.Y()*4); -e.BK(B,u);this.xx(D,M,s,B,$,w)};T.NL.prototype.xx=function(D,M,s,F,X,d){var V=D.nz.length!=0?-1-D.nz[0]:D.D[0],$=V<0?1:M.eu,w=V<0?D.lk[-1-V]:$<=0?null:$==1?M.Ro():M.DI(D).C,q=$<=0?M.rect:w.rect,u=s==null?new hk(0,0,D.d,D.w):s.rect,B=s==null?e.dc(D.d*D.w):s.channel,r=u.Y(),P,A=null; -if($<=0){P=e.U(r*4);e.eJ(M.buffer,M.rect,P,u)}else{P=e.U(r);w.extend(u);e.b7(w.channel,w.rect,P,u)}if(s!=null)e.vs(B,F); -if($>0){A=e.U(r);e.Xt(F,A)}if(0<=V&&s&&M.qR(D,s)){var E=M.Uc.Lv,n=M.Uc.Lv.slice(0);if($<=0)e.f8(F,n); -else e.f8(A,n);var _=new iu([2,3],this);_.data={e:"drawtemp",c:D.D[0],hm:$,adx:E,alg:n};D.D0(_);this.i5(_.data,D)}else{if($<=0){var l; -if(M.CG(0)){l=e.U(u.Y());e.FK(P,l,3)}e.z.cz(X,F,u,P,u,u,1);if(M.CG(0))e.Te(l,P,3)}else e.z.rF(A,u,P,u,B,u,1); -this.ul(D,!0,d,V,$,u,P)}};T.NL.prototype.LB=function(D){if(hn.OC.indexOf(D)!=-1)return!0;return!1};T.NL.prototype.sW=function(D,M,s,F){var X=this.FO.brush,d=F.B(hn.CC),V=d!=this.eP,$=T.NL.h2(X,F); -if($!=null)this.K2($);if(!F.B(hn.hQ)&&F.A8()!=-1){var w=U.hY(Math.round(this.FO.opacity*100),F.A8())/100; -this.QB({opacity:w},M)}if(this.id==T._p&&V&&D!=null){var q=this.FO.qsmode;if(q==2)q=D.Z==null?0:1;else q=2; -this.QB({qsmode:q},M)}this.eP=d;if(V){if(D)this.RB=D.a.$;this.m$(s,F)}};T.NL.h2=function(D,M){var s=D.Brsh.v.Dmtr.v.val,F=D.Brsh.v.Hrdn!=null?D.Brsh.v.Hrdn.v.val:-1,X=s,d=F,V=M.B(hn.Mr); -if(M.B(hn.NP)){if(V)F=25*Math.floor((F-1)/25);else{if(s<=10)s--;else if(s<=50)s=5*Math.floor((s-1)/5); -else if(s<=100)s=10*Math.floor((s-1)/10);else if(s<=200)s=25*Math.floor((s-1)/25);else if(s<=400)s=50*Math.floor((s-1)/50); -else s=100*Math.floor((s-1)/100)}}if(M.B(hn.HQ)){if(V)F=25*Math.ceil((F+1)/25);else{if(s<10)s++;else if(s<50)s=5*Math.ceil((s+1)/5); -else if(s<100)s=10*Math.ceil((s+1)/10);else if(s<200)s=25*Math.ceil((s+1)/25);else if(s<400)s=50*Math.ceil((s+1)/50); -else s=100*Math.ceil((s+1)/100)}}s=Math.max(1,s);F=Math.max(0,Math.min(100,F));if(d==-1)F=-1;if(s!=X||F!=d){var $=JSON.parse(JSON.stringify(D)); -$.Brsh.v.Dmtr.v.val=s;if(d!=-1)$.Brsh.v.Hrdn.v.val=F;return $}return null};T.NL.prototype.m$=function(D,M,s,F){if(D.t_.list.length==0)return; -var X=this.id,d;if((X==T.Ew||X==T.nP||X==T.oH||X==T.GH)&&(M!=null&&M.B(hn.CC)||this.FO.alt[0]))d="crosshair"; -else{var V=this.RB,$=this.FO.brush;if((X==T.Ew||X==T.nP)&&s&&this.Ey&&this.Ey.length==this.lu.Y()*4){var w=s.a.wT(F.x,F.y),q=this.yG(w),u=this.Ey,B=this.lu,r=new hk(B.x+q.x,B.y+q.y,B.d,B.w),P=hW.dq($,D.t_.Ib,V),A=P[0],E=P[1],n=Math.ceil(E.d/V),_=new hk(Math.round(w.x-n/2),Math.round(w.y-n/2),n,n),l=e.U(_.Y()*4),b,y; -e.eJ(u,r,l,_);if(V==1){b=l;y=_}else{var p=new ex(V,0,0,V,0,0),k=T.m.hT([l,_],p,!0);y=E.clone();y.x=k.rect.x; -y.y=k.rect.y;if(y.L0(k.rect))b=k.buffer;else{b=e.U(y.Y()*4);e.eJ(k.buffer,k.rect,b,y)}}var S=this.FO.opacity/255; -for(var K=0;K>>1,u=new hk(Math.round($.x)-q,Math.round($.y)-q,w,w),B=e.U(u.Y()*4); -e.BK(16777215);for(var K=0;K0){q=e.U(d.Y()*4);T.NL.jS(V,d,0,q,d)}var u=new iu(s,this);u.data=[{c:F,hm:X,S:d,AX:q}];if($)u.data.ao=[D.Z,null]; -if(w)u.data.ao=[this.ZM,D.Z];D.D0(u);if(M)this.i5(u.data,D);else if($)D.Z=null;aG.J0.GX(D,u.data)};T.NL.prototype.L9=function(D,M){this.ej(D,M,!1)}; -T.NL.prototype.i5=function(D,M){this.ej(D,M,!0)};T.NL.prototype.ej=function(D,M,s){if(D.e=="drawtemp"){var F=s?D.alg:D.adx,X=M.N[D.c]; -X.Uc.Lv=F;X.Uq(M,0,0,M.Z);X.T();M.$E=!0}else{aG.J0.Qx(M,D);if(D.ao){M.Z=D.ao[s?1:0];M.O8=!0}}M.T()}; -T.NL.prototype.XF=function(D){this.kg(D,this.$c,this.H1.dE(),this.H1.$a(),this.H1.G4());this.T(D)};T.NL.prototype.kg=function(D,M,s,F,X){var d=this.FO,V=D.N[D.D[0]],$=D.nz.length!=0?D.lk[D.nz[0]]:V.eu<=0?null:V.eu==1?V.Ro():V.DI(D).C,w=e.U(X.Y()*4),q,u=V.CG(0); -if($==null){if(this.id==T.BW&&M=="heal")e.eJ(V.buffer,V.rect,w,X);else e.eJ(this.IQ,this.Ei,w,X);if(u){q=e.U(X.Y()); -e.FK(w,q,3)}}else{T.NL.jS(this.IQ,this.Ei,$.color,w,X)}if(D.Z&&M!="qselect"){var B=X.Nm(D.Z.rect),r=e.U(B.Y()*4); -if(M=="copy"){var P=e.U(B.Y());e.b7(D.Z.channel,D.Z.rect,P,B);e.eJ(w,X,r,B);e.z.c0(s,F,r,B,P,B,0,B,1,!1)}else{e.eJ(s,F,r,B); -e.rs(D.Z.channel,D.Z.rect,r,B)}s=r;F=B}function A(_,dc){var iJ=Math.max(dc.x,Math.min(dc.x+dc.d-1,_.x)),hO=Math.max(dc.y,Math.min(dc.y+dc.w-1,_.y)); -return new eo(iJ,hO)}if(M=="idraw"||M=="ierase"){if(this.Pg==null)this.Pg=e.U(this.Ei.Y());var E=this.FO.samp,n=this.kL.hE,_=A(this.cc,X),l=E==0?_:this.NG,b=l.x,y=l.y,p=T.c4.CV(this.IQ,this.Ei,[l,new eo(b-2,y),new eo(b+2,y),new eo(b,y-2),new eo(b,y+2)]); -if(E==2)p=[[n>>>16&255,n>>>8&255,n>>>0&255,255]];var k=T.c4.WZ(w,X,_,p,this.FO.wconf),S=e.U(X.Y());e.b7(this.Pg,this.Ei,S,X); -e.e8.bk(k,S,S);e.b7(S,X,this.Pg,this.Ei);e.rs(S,X,s,F);M=M.slice(1)}if(M=="erase"&&(aG.J0.ht(D)!=16777215||$))M="draw"; -if(M=="draw")e.z.cz(d.bmode,s,F,w,X,X,d.opacity);else if(M=="erase"){var Z=e.U(X.Y()*4);e.eJ(s,F,Z,X); -if($==null){var z=e.U(X.Y());e.FK(Z,z,3);e.Fs(z,d.opacity);e.Iy(z);e.rs(z,X,w,X)}else{e.BK(Z,0,4278190080); -e.z.cz("norm",Z,X,w,X,X,d.opacity)}}else if(M=="clone"||M=="heal"){var j=this.KH(),R=this.lu.clone(); -R.offset(j.x,j.y);var a=X.clone();a.ZB(1,1);var m=e.U(a.Y()*4),G=e.U(a.Y());e.eJ(s,F,m,a);e.FK(m,G,3); -e.BK(m,0);if($==null){e.eJ(this.Ey,R,m,a);var L=e.U(a.Y());e.FK(m,L,3);e.Mk(L,G)}else T.NL.jS(this.Ey,R,$.color,m,a); -if(M=="clone"){e.Te(G,m,3);e.z.cz(d.bmode,m,a,w,X,X,d.opacity)}if(M=="heal"){var H=G.slice(0);e.round(H,20); -var o=e.U(a.Y()*4);if($==null)e.eJ(this.IQ,this.Ei,o,a);else T.NL.jS(this.IQ,this.Ei,$.color,o,a);e.z.c0(m,a,o,a,H,a,0,a,1,!1); -e.C1.xJ(o,H,a);e.z.c0(o,a,w,X,G,a,0,X,1,!1)}}else if(M=="dodge"||M=="burn"){var m=e.U(X.Y()*4),i=1,h=0,N=0,C=0; -e.eJ(s,F,m,X);var c=X.Y()*4,f=T.NL.KG;if(this.eP){if(M=="dodge")M="burn";else M="dodge"}var I=d.rng; -if(M=="dodge"){h=[1-i/2,1,1+i][I];N=[1,1/(1+i),1][I];C=[i/2,0,0][I]}if(M=="burn"){h=[1/(1-i/2),1,1-i/2][I]; -N=[1,1+i,1][I];C=[-(i/2)/(1-i/2),0,0][I]}for(var K=0;K>>1)*hv]=G[(bV>>>1)*hv+hv-1]=0;T.N4.nH(bG,!0);D.Z={rect:hF,channel:bG.Z.slice(0)};D.O8=!0}if($==null){if(u)e.Te(q,w,3); -e.eJ(w,X,V.buffer,V.rect)}else T.NL.u3(w,X,$)};T.NL.KH=function(){return null};T.NL.KG=function(D,M,s,F,X){var d=D*(1/255),V=F+M*Math.pow(d,s),$=Math.round(V*X+d*(255-X)); -return Math.max(0,Math.min(255,$))};T.NL.jS=function(D,M,s,F,X){var d=e.U(X.Y());d.fill(s);e.b7(D,M,d,X); -F.fill(255);e.a_(d,F)};T.NL.u3=function(D,M,s){var F=e.U(M.Y());e.Xt(D,F);e.b7(F,M,s.channel,s.rect)}; -T.nv=function(D,M,s){T.p4.call(this,D,M,s);this.RG={op:"front",feat:0,cstr:{Rh:0,x:3,y:2},wconf:[16,!0,!0],anta:!0}; -this.vL=new eo(-1,-1);this.e$=new eo(-1,-1);this.GN="default";this.Pm=null;this.afa=!0;this.OQ=!1;this.$q=!1; -this.eP=!1;this.mY=0;this.fO=0;this.CX=!1;this.lf=null;this.Y0=null;this.Pa=!1};T.nv.prototype=new T.p4; -T.nv.prototype.a1Y=function(){var D=this.RG,M=[{front:0,union:1,difference:2,intersection:3}[D.op],D.feat]; -if(this.id==T.bK)M.push(D.wconf);return M};T.nv.prototype.a6n=function(D,M,s){var F=this.RG;F.op=["front","union","difference","intersection"][D[0]]; -F.feat=D[1];F.wconf=D[2];var X=new W(U.E.Q,!0);X.data={e:U.V.TS,G:this.id,RG:F};s.n(X)};T.nv.sr={key:""}; -T.nv.WM=function(D,M,s){var F={FX:D,k_:{classID:"setd",null:{t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]}}}; -if(M)F.k_.T=M;if(s!=null)F.k_.AntA={t:"bool",v:s};return F};T.nv.Xu=function(D,M,s){return T.nv.WM("set",{t:"Objc",v:{classID:D,Top:{t:"UntF",v:{type:"#Pxl",val:M.y}},Left:{t:"UntF",v:{type:"#Pxl",val:M.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:M.y+M.w}},Rght:{t:"UntF",v:{type:"#Pxl",val:M.x+M.d}}}},s)}; -T.nv.wm=function(D,M,s){var F=[],X=[],V="set";for(var K=0;K>>1)),f=j.y-a.y,i=f+j.w-1,h=Math.max(f,Math.min(i,f+i>>>1)),N=Math.max(H,0),C=Math.min(o,G),I=Math.max(f,0),J=Math.min(i,L); -m.fill(128);if(0<=f)for(var av=N;av>>2);e.FK(cq,hr,3);V={channel:hr,rect:af.clone()}}else{if(gE.C==null)gE.M8(s);var eA=gS==1?gE.Ro():gE.C; -V=T.nv.mx(eA,w)}this.track(T.nv.Lp(Z,["Trsp","Msk"][gS],gE.getName()))}else if(d=="frompath"){var is=s.aZ(),a4=is[1],is=is[0]; -if(ds==null)if(is.length==0||a4.length==0)return;var aZ=is[a4[0]];if(ds!=null)for(var K=0;K1||this.fO>1?M:null; -var F=this.vL,X=this.e$;if(s){F.x=Math.max(0,Math.min(D.d,F.x));F.y=Math.max(0,Math.min(D.w,F.y));X.x=Math.max(0,Math.min(D.d,X.x)); -X.y=Math.max(0,Math.min(D.w,X.y))}var d=T.Qg.FE(F,X,M,!0,this.RG.cstr),V=d[0].x,$=d[0].y;return new hk(V,$,d[1].x-V,d[1].y-$)}; -T.nv.prototype.Ed=function(D,M,s,F,X){if(this.rq())return;this.Pm=M;this.OQ=!1;this.$q=F.B(hn.Mr);this.eP=F.B(hn.CC); -this.mY=this.$q?0:1;this.fO=this.eP?0:1;this.vL=D.a.wT(X.x,X.y);this.vL=T.UT.A0(D,this.vL,s);if(this.yp(D,this.vL,F)){this.CX=!0; -this.lf=D.Z.rect.clone();return}this.Qs(D,s,F,X);D.a.qr=new hk};T.nv.prototype.yp=function(D,M,s){var F=s.B(hn.Mr),X=s.B(hn.CC); -if(D.Z&&!F&&!X&&this.RG.op=="front")return e.Za(M,D.Z.channel,D.Z.rect);return!1};T.nv.prototype.Hi=function(D,M,s,F,X){this.Pm=M; -if(this.Pa)return;var d=D.a.wT(X.x,X.y);if(eo.cQ(this.vL,d)*D.a.$>5)this.OQ=!0;if(F.B(hn.Xq)){if(this.Y0==null)this.Y0=new eo(d.x-this.vL.x,d.y-this.vL.y); -this.vL.x=d.x-this.Y0.x;this.vL.y=d.y-this.Y0.y}else this.Y0=null;this.e$=d;if(!this.CX)this.e$=T.UT.A0(D,this.e$,s); -if(this.yp(D,this.e$,F))this.lE(M,"move");else this.lE(M,this.GN);if(this.CX){var V=this.lf.clone(); -V.x+=this.e$.x-this.vL.x;V.y+=this.e$.y-this.vL.y;var $=T.UT.Ui(D,V,s);D.Z.rect.x=Math.round(this.e$.x-this.vL.x+this.lf.x+$[0]); -D.Z.rect.y=Math.round(this.e$.y-this.vL.y+this.lf.y+$[1]);D.O8=!0;T.UT.vW(D,V,$);return}this.it(D,s,F,X); -if(D.a.qr)D.a.qr=this.$a(D,F)};T.nv.prototype.rq=function(){return!1};T.nv.prototype.q_=function(D,M,s,F,X){D.a.qr=null; -this.e$=D.a.wT(X.x,X.y);this.e$=T.UT.A0(D,this.e$,s);if(this.CX){this.CX=!1;if(this.e$.L0(this.vL)&&this.YP()=="front"){this.rn(M,U.E.qZ,T.nv.fo()); -return}this.E0(D,this.lf,D.Z.rect.clone());if(D!=null&&D.J.TR){D.J.TR=null;D.dm=!0}return}this.h5(D,s,F,X); -T.nv._8(M,s)};T.nv.prototype.E0=function(D,M,s){var F=D.yd();if(F!=null&&F.G==this&&F.data.e=="movesel"){}else{F=new iu([7,7],this); -F.data={e:"movesel",eU:M};D.D0(F)}F.data.XV=s;this.i5(F.data,D)};T.nv.prototype.km=function(D,M,s,F,X){this.Pa=!0}; -T.nv.prototype.Sx=function(D,M,s,F,X){var d=new W(U.E.Q,!0);d.data={e:U.V.TS,G:this.id,NE:X,pW:D,ji:s}; -M.n(d);this.Pa=!1};T.nv.prototype.sW=function(D,M,s,F){var X=F.B(hn.Mr),d=F.B(hn.CC);if(this.OQ){if(this.mY==0&&!X)this.mY++; -if(this.mY==1&&X)this.mY++;if(this.fO==0&&!d)this.fO++;if(this.fO==1&&d)this.fO++}if(D!=null&&D.Z!=null){var V=F.J_(); -if(V.x!=0||V.y!=0){var $=D.Z.rect.clone();$.x+=V.x;$.y+=V.y;this.E0(D,D.Z.rect.clone(),$)}}var w=T.nv.kS(this.RG.op,X,d),q=new W(U.E.Q,!0); -q.data={e:U.V.TS,G:this.id,ZA:w};M.n(q)};T.nv.prototype.finish=function(D,M,s,F){var X=D.Z,d=this.getSelection(D,M,s,F); -if(d==null)d=T.nv.fo();else{var V=this.RG.feat,$=this.YP();if(V!=0)d.k_.Fthr={t:"UntF",v:{type:"#Pxl",val:V}}; -if($!="front"&&$!="xor")d.FX={union:"addTo",difference:"subtractFrom",intersection:"interfaceWhite"}[$]}this.rn(this.Pm,U.E.qZ,d); -this.vL.SG(-1,-1);this.e$.SG(-1,-1)};T.nv.prototype.YP=function(){return T.nv.kS(this.RG.op,this.$q,this.eP)}; -T.nv.kS=function(D,M,s){if(M)D="union";if(s)D="difference";if(M&&s)D="intersection";return D};T.nv.prototype.getSelection=function(D,M,s,F){return null}; -T.nv.prototype.Qs=function(D,M,s,F){};T.nv.prototype.it=function(D,M,s,F){};T.nv.prototype.h5=function(D,M,s,F){}; -T.nv.prototype.L9=function(D,M){var s=D.e;if(s=="changesel")M.Z=D.ZM;if(s=="movesel")M.Z.rect=D.eU;if(D.fl){if(D.adw){M.nz=[M.lk.length]; -M.lk.push(D.adw)}else{M.lk.pop();M.nz=[]}}if(D.pF){M.xr=JSON.parse(D.pF[0]);M.v2=JSON.parse(D.pF[1])}M.O8=!0}; -T.nv.prototype.i5=function(D,M){var s=D.e;if(s=="changesel")M.Z=D.WT;if(s=="movesel")M.Z.rect=D.XV;if(D.fl){if(D.acV){M.nz=[M.lk.length]; -M.lk.push(D.acV)}else{M.lk.pop();M.nz=[]}}if(D.pF){M.xr=JSON.parse(D.als[0]);M.v2=JSON.parse(D.als[1])}M.O8=!0}; -T.nv.prototype.yJ=function(D){this.RG=D.RG};T.nv.prototype.z2=function(D){var M=e.O.Df(D.I);if(M.qj())return null; -var s=U.p("canvas","");s.width=M.d;s.height=M.w;var F=s.getContext("2d");F.beginPath();F.translate(-M.x,-M.y); -Typr.U.pathToContext({cmds:D.K,crds:D.I},F);F.closePath();F.fill();var X=e.U(M.Y()),d=F.getImageData(0,0,s.width,s.height); -e.FK(d.data,X,3);return{rect:M,channel:X}};T.nv.jM=function(D,M,s,F,X){if(s)M=Math.round(M*.7);var d=Math.ceil(2.6*M),V=D.rect.clone(); -V.ZB(d,d);if(F&&!X)V=V.Nm(F);var $=e.U(V.Y()),w=e.U($.length);e.b7(D.channel,D.rect,w,V);e.Qn.nC(w,$,V,M); -if(s){var q=$.length;for(var K=0;K1e-9||!B||d||$)r=this.hC(D,M,!0,u,1,F);var A=new iu(this.name,this),E=new hk(0,0,D.d,D.w); -A.data={eU:E,XV:X,Jr:r,ME:u,er:D.a.L.clone(),gG:T.I4.CJ(D,X,E,!1)};D.D0(A);this.i5(A.data,D);this.track(T.I4.k3([F.x,F.y,F.d,F.w],null,$))}; -T.I4.prototype.a2t=function(D,M){var s=e.X.ye(M),F=e.X.kc(s),X=e.X.Sj(s),d=X._u,V=X.eH,$=Math.atan2(X.P,X.iD); -X.rotate($);var w=new hk(d,V,X.iD,X.iw);if(!F){function q(b,K,y){var p=b[K]-b[y],k=b[K+1]-b[y+1];return Math.sqrt(p*p+k*k)}var u=q(M,0,2),B=q(M,4,6),r=Math.max(u,B),P=q(M,2,4),A=q(M,6,0),E=Math.max(P,A),n=T.I4.agp(M,D.d/2,D.w/2),_,l; -if(isNaN(n)||n==Infinity||n==-Infinity||Math.min(n,1/n)<.1)n=(u+B)/(P+A);if(r/E>n){_=r*1;l=_/n}else{l=E*1; -_=l*n}w.d=_;w.w=l}w.x=Math.round(w.x);w.y=Math.round(w.y);w.d=Math.round(w.d);w.w=Math.round(w.w);return w}; -T.I4.agp=function(D,M,s){var F=D[0]-M,X=D[1]-s,d=D[2]-M,V=D[3]-s,$=D[6]-M,w=D[7]-s,q=D[4]-M,u=D[5]-s,B=((X-u)*$-(F-q)*w+F*u-X*q)/((V-u)*$-(d-q)*w+d*u-V*q),r=((X-u)*d-(F-q)*V+F*u-X*q)/((w-u)*d-($-q)*V+$*u-w*q),P=-((r*w-X)*(B*V-X)+(r*$-F)*(B*d-F))/((r-1)*(B-1)); -function A(n){return n*n}var E=Math.sqrt((A(B-1)+A(B*V-X)/P+A(B*d-F)/P)/(A(r-1)+A(r*w-X)/P+A(r*$-F)/P)); -if(B==1&&r==1)E=Math.sqrt((A(V-X)+A(d-F))/(A(w-X)+A($-F)));return E};T.I4.prototype.disable=function(D,M,s,F){if(D==null)return; -if(this.a7)this.a7.clear(D);this.a7=null;this.rn(M,U.E.Q,{e:U.V.TS,G:this.id,wh:!1})};T.I4.prototype.rn=function(D,M,s,F){var X=new W(M,!0); -X.data=s;if(F)X.G=F;D.n(X)};T.rU=function(){T.I4.call(this,[10,2],T.nX,"tools/rcrop")};T.rU.prototype=new T.I4; -T.Us=function(){T.I4.call(this,[10,39],T.oJ,"tools/pcrop")};T.Us.prototype=new T.I4;T.Z6=function(){T.NL.call(this,[10,21],T.HZ,"tools/dodge"); -this.$c="dodge"};T.Z6.prototype=new T.NL;T.Z6.prototype.Ed=function(D,M,s,F,X){this.rO(D,s,F,X,this.FO.expo/Math.PI); -if(this.H1==null)return;this.XF(D)};T.Z6.prototype.Hi=function(D,M,s,F,X){this.Mq(D,M,s);if(this.Hu)this.L5(D,s,X); -if(this.H1==null)return;if(!X.eg)return;this.cn(D,s,F,X);this.XF(D)};T.HB=function(){T.NL.call(this,[10,3],T.xy,"tools/eraser"); -this.$c="erase"};T.HB.prototype=new T.NL;T.HB.prototype.Ed=function(D,M,s,F,X){this.rO(D,s,F,X,this.FO.flow); -if(this.H1==null)return;this.XF(D)};T.HB.prototype.Hi=function(D,M,s,F,X){this.Mq(D,M,s);if(this.Hu)this.L5(D,s,X); -if(this.H1==null)return;if(!X.eg)return;var d=this.cn(D,s,F,X);this.XF(D)};T.wi=function(){T.NL.call(this,[10,45],T.ab1,"tools/beraser"); -this.$c="ierase"};T.wi.prototype=new T.NL;T.wi.prototype.Ed=function(D,M,s,F,X){if(this.jb(F,M,X))return; -this.rO(D,s,F,X,this.FO.flow);if(this.H1==null)return;this.XF(D)};T.wi.prototype.Hi=function(D,M,s,F,X){this.Mq(D,M,s); -if(this.Hu)this.L5(D,s,X);if(this.H1==null)return;if(!X.eg)return;this.cn(D,s,F,X);this.XF(D)};T.w5=function(){T.nv.call(this,[10,15],T.Px,"tools/rselect"); -this.GN="crosshair"};T.w5.prototype=new T.nv;T.w5.prototype.it=function(D,M,s,F){if(!F.eg||!this.OQ)return; -var X=this.$a(D,s,!0);D.J.h6=e.O.l5(X);D.dm=!0;T.p4.Dd(F.x+10,F.y-10,X,D,M)};T.w5.prototype.h5=function(D,M,s,F){D.J.h6=null; -D.J.Tn=[];D.dm=!0;this.finish(D,M,s,F)};T.w5.prototype.getSelection=function(D,M,s,F){if(this.vL.L0(this.e$)||!this.OQ)return null; -var X=this.$a(D,s,!0);if(X.qj())return null;return T.nv.Xu("Rctn",X,this.RG.anta)};T.XS=function(){T.nv.call(this,[10,4],T.ahI,"tools/eselect"); -this.GN="crosshair"};T.XS.prototype=new T.nv;T.XS.prototype.it=function(D,M,s,F){if(!F.eg||!this.OQ)return; -var X=this.$a(D,s);D.J.h6=T.XS.c2(X);D.dm=!0;T.p4.Dd(F.x+10,F.y-10,X,D,M)};T.XS.prototype.h5=function(D,M,s,F){D.J.h6=null; -D.J.Tn=[];D.dm=!0;this.finish(D,M,s,F)};T.XS.prototype.getSelection=function(D,M,s,F){if(this.vL.L0(this.e$)||!this.OQ)return null; -var X=this.$a(D,s);if(!X.$U(new hk(0,0,D.d,D.w)))return null;return T.nv.Xu("Elps",X,this.RG.anta)}; -T.XS.c2=function(D){var M=D.x,s=D.y,F=D.x+D.d,X=D.y+D.w,d=(M+F)/2,V=(s+X)/2,$=(M-F)/2,w=(s-X)/2,q=.5522848,u={I:[d,V-w],K:["M","C","C","C","C"]}; -u.I.push(d+q*$,V-w,d+$,V-q*w,d+$,V);u.I.push(d+$,V+q*w,d+q*$,V+w,d,V+w);u.I.push(d-q*$,V+w,d-$,V+q*w,d-$,V); -u.I.push(d-$,V-q*w,d-q*$,V-w,d,V-w);return u};T.N5=function(){T.p4.call(this,[10,5],T.Vi,"tools/eyedropper"); -this.n9=!1;this.oi=1};T.N5.prototype=new T.p4;T.N5.prototype.D8=function(D){return D.eg};T.N5.prototype.t$=function(D,M,s,F,X){if(D.e=="pickhere")this.hR(s,M,X,F,D.alQ)}; -T.N5.prototype.Ed=function(D,M,s,F,X){this.n9=!0;this.hR(D,M,s,F,X)};T.N5.prototype.Hi=function(D,M,s,F,X){if(this.n9)this.hR(D,M,s,F,X)}; -T.N5.prototype.q_=function(D,M,s,F,X){this.n9=!1};T.N5.prototype.hR=function(D,M,s,F,X){var d=T.N5.Ss(D,X,this.oi),V=new W(U.E.Q); -V.data={e:U.V.uW,Q1:bd.s7,Si:0,H:d};M.n(V)};T.N5.Ss=function(D,M,s){var F=D.a.wT(M.x,M.y),X=Math.floor(F.x),d=Math.floor(F.y),V=(s-1)/2,$=Math.max(0,X-V),w=Math.max(0,d-V),q=Math.min(D.d,X+V+1),u=Math.min(D.w,d+V+1),B=(q-$)*(u-w),r=D.tn(),P=0,A=0,E=0; -for(var X=$;X2){var P;if(D.Z)P=D.Z.rect;else P=new hk(0,0,D.d,D.w);var A=e.U(P.Y()*4),E=this.FO,n=E.Eh;if(n!="Lnr"){u*=2; -w=this.U3}e.h.Je(E.h,A,P,[r*1/u,B*1/u,-B*1/u,r*1/u],w.x,w.y,E.sO,aX.h.types.indexOf(n),s.Yr,s.hE,null,E.ahA); -var _=Math.round(E.EA*256),l=A.length;if(_!=256)for(var K=0;K>>8;var b=new W(U.E.u); -b.G=T.xy;b.data={e:"fillBMP",HN:A,cZ:E.ags,nc:this.name};M.n(b)}D.J.h6=null;D.J.PM=[];D.dm=!0;this.df=!1}; -T.sj.Op=function(D,M){if(D.L0(M))return D;var s=M.x-D.x,F=M.y-D.y,X=Math.abs(s),d=Math.abs(F);if(X>d)d=X/2>d?0:X; -if(d>X)X=d/2>X?0:d;X=s>0?X:-X;d=F>0?d:-d;var V=Math.sqrt(s*s+F*F)/Math.sqrt(X*X+d*d);return new eo(D.x+X*V,D.y+d*V)}; -T.sj.s5=function(D,M,s,F,X,d,V){if(V==null)V=U.p("canvas","");var $=V.getContext("2d");V.width=M;V.height=s; -var w=new hk(0,0,M,s),q=e.U(M*s*4);e.wE(q,M,s,4);var u=Math.sin(F),B=Math.cos(F),r=e.U(M*s*4);e.h.Je(D,r,w,[B*1/M,u*1/M,-u*1/s,B*1/s],M/2,s/2,!1,0,X,d); -e.z.cz("norm",r,w,q,w,w,1);var P=$.getImageData(0,0,M,s);e.f8(q,P.data);$.putImageData(P,0,0);return V.toDataURL()}; -T.sj.a1o=function(D,M,s){var F=JSON.parse(JSON.stringify(D));for(var K=0;K>16&255,q:V>>8&255,P:V&255})}}return F}; -T.K$=function(){T.p4.call(this,[10,7],T.WI,"tools/hand");this.xG=new eo(0,0);this.Lr=null;this.yB=0}; -T.K$.prototype=new T.p4;T.K$.prototype.t$=function(D,M,s,F,X){var d=D.e;if(d=="setcls"){s.a.hU=D.hU; -s.dm=!0;s.wc=!0}if(d=="scroll"&&!F.B(hn.CC)){if(F.B(hn.hQ))T.K$._x(s,s.a.L.x-D.Of.y,s.a.L.y-D.Of.x); -else T.K$._x(s,s.a.L.x-D.Of.x,s.a.L.y-D.Of.y)}};T.K$.prototype.enable=function(D,M,s,F){this.Lr=null; -var X=new W(U.E.Q,!0);X.data={e:U.V.tp,BA:"grab"};M.n(X);if(D&&Date.now()-this.yB<300){X.type=U.E.u; -X.G=T.SM;X.data={e:"adapt",H:"fitscr"};M.n(X)}this.yB=Date.now()};T.K$.prototype.Ed=function(D,M,s,F,X){this.Lr=D.a.L.clone(); -this.xG.SG(X.x,X.y)};T.K$.prototype.Hi=function(D,M,s,F,X){if(!X.eg)return;if(this.Lr==null)this.Ed(D,M,s,F,X); -T.K$._x(D,this.Lr.x+(X.x-this.xG.x),this.Lr.y+(X.y-this.xG.y))};T.K$.prototype.q_=function(D,M,s,F,X){this.Lr=null}; -T.K$._x=function(D,M,s){var F=D.a.$,X=D.a.Ar,d=X.d,V=X.w,$=D.d*F,w=D.w*F,q=$=0;K--){var s=D.N[K];if(s.add.TySh&&s.rect.TM(M)&&D.WA(K)){var F=s.CG(2)||s.CG(31); -return F?-2:K}}return-1};T.aa.prototype.Ed=function(D,M,s,F,X){this.Ab=D;this.ji=s;this.caller=M;var d=D.a.wT(X.x,X.y),V=this.yf==null; -if(V){var $=T.aa.Ka(D,d);if($==-2){alert(dY.get([6,57,0]));return}if($>=0){if(!cF.sG(D.N[$].add.TySh,s.gd)){alert("Fonts not loaded yet"); -return}this.Qu(D,M,s,[$])}else{this.EG=!0;this.Kg=X;return}}var w=V?-1:fU.So(this.yf.add.TySh.t6),q=this.w6?this.w6:this.a7; -if(q&&q.Ed(D,s,F,d)&&e.aJ.Rq(this.yf.add.TySh.zt)||!V&&e.O.pZ(d,this.yf.rect)>20/D.a.$&&(w==0||w==1)){this.aI=!0; -this.Jt=d;this.aoz=this.yf.add.TySh.t.clone();if(this.$e==-1&&this.dS==-1)this.$e=this.dS=this.LJ(d)}else{if(this.Fu==null){alert("Fonts not loaded yet"); -return}this.$b=!0;this.$e=this.dS=this.LJ(d);var u=Date.now();if(u-this.a2d>300)this.hd=0;this.hd++; -this.a2d=u;if(this.hd==2)this.an8();if(this.hd==3)this.a8B();if(this.hd>1){this.$b=!1}}this.Ih();this.Q7(D)}; -T.aa.prototype.Qu=function(D,M,s,F){var X=D.N[F[0]];this.yf=X;this.rn(M,U.E.Q,{e:U.V.TS,G:this.id,Nl:"showactive"}); -this.MZ=F;D.D=F.slice(0);D.zi();D.xW=!0;this.BC=this.A2(D,F);this.rw(X.add.TySh);this.tr(D,s)};T.aa.prototype.rw=function(D){if(fU.So(D.t6)!=1)return; -var M=fU.vM(D.t6);M=new hk(0,0,M[2]-M[0],M[3]-M[1]);var s=[M.x,M.y,M.x+M.d,M.y,M.x+M.d,M.y+M.w,M.x,M.y+M.w]; -e.O.t(s,D.t,s);this.a7=new i5(s,!1,!1,!1,!0)};T.aa.prototype.an8=function(){var D=fU.NN(this.yf.add.TySh.t6); -this.$e=this.__(D,this.$e);this.dS=this.Zu(D,this.$e)};T.aa.prototype.__=function(D,M){var s=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",F=[]; -for(var K=0;K=0;K--)if(F.indexOf(D.charAt(K))!=-1==X)return K+1; -return 0};T.aa.prototype.Zu=function(D,M){var s=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",F=[];for(var K=0; -K20/D.a.$)$="move";else if(T.aa.Ka(D,d)>=0)$="text"; -if($!=this.JW){this.JW=$;this.m$(M)}}var B=this.Kg;if(this.EG&&Math.min(X.x-B.x,X.y-B.y)>4/D.a.$){this.EG=!1; -this.BM(D,M,s,F,X);V=this.yf;this.aI=!0;this.a7=new i5(null,!1,!1,!1,!0);var r=D.a.wT(this.Kg.x,this.Kg.y); -r.x=Math.round(r.x);r.y=Math.round(r.y);this.a7.Ed(D,s,F,r)}if(this.aI){var P=V.add.TySh;if(this.w6){this.w6.Hi(D,s,F,d); -var A=e.X.Sj(e.X.ye(this.w6.VK(),this.a4B));P.t=A;this.tr(D,s);fU.LG(P)}else if(this.a7){this.a7.Hi(D,s,F,d); -var E=P.t.clone(),n=Math.atan2(E.P,E.iD);E.rotate(n);var A=e.X.Sj(e.X.ye(this.a7.VK())),_=Math.atan2(A.P,A.iD); -A.rotate(_);if(!isNaN(A.iD)&&A.iD*A.iw-A.P*A.Gt!=0){var l=new hk(0,0,A.iD/E.iD,A.iw/E.iw),b=Math.round(l.d),y=Math.round(l.w),p=P.t6.Curve; -if(p){var k=fU.vM(P.t6),S=new ex(b/k[2],0,0,y/k[3],0,0);e.O.t(p.Points,S,p.Points);fU.LG(P)}fU.Kj(P.t6,[0,0,b,y]); -P.t=e.X.Sj(e.X.ye(this.a7.VK(),l));this.tr(D,s);fU.LG(P)}}else{var Z=d.x-this.Jt.x,z=d.y-this.Jt.y;P.t=this.aoz.clone(); -var j=new eo(P.t._u+Z,P.t.eH+z);j=T.UT.A0(D,j,s);P.t._u=j.x;P.t.eH=j.y;this.tr(D,s)}}if(this.$b)this.dS=this.LJ(d); -if(this.aI||this.$b)this.Q7(D)};T.aa.prototype.BM=function(D,M,s,F,X){var d=D.aZ(),V=d[0],$=d[1],w=D.lX(); -w.add.lnsr="rend";var q=D.N.slice(0);w.Nt("Text layer "+q.length);this.yf=w;var u=D.D.length==0?D.N.length-1:D.D[D.D.length-1],B=u+1; -if(q[u].add.lsct==aQ.X4)B--;this.BC={s1:q.slice(0),ZM:D.D.slice(0)};q.splice(B,0,w);D.D=[B];this.$e=this.dS=0; -D.DF(q);this.BC.ep=q.slice(0);this.BC.WT=D.D.slice(0);this.rn(M,U.E.Q,{e:U.V.TS,G:this.id,Nl:"showactive"}); -var r=D.a.wT(X.x,X.y),P=s.Rv;console.log(P);if(this.id==T.Tf){P=JSON.parse(JSON.stringify(P));P.aO.BaselineDirection=1}w.add.TySh=fU.Zb(r.x,r.y,P); -var A=w.add.TySh,E=A.t6;if(this.id==T.Tf)E._LineOrientation=2;fU.yF(A,this.bw);if(X.eg)fU.SE(E,1);else{fU.SE(E,0); -var n=V[$.pop()],_=n?n.add.vmsk:null;if(_){_=_.clone();var l=_.g,y,p;for(var K=0;K0&&F.charAt(this.$e-1)!=X.charAt(this.$e-1))this.$e--}var $=F.substring(0,this.$e),w=F.substring(this.dS,F.length),q=X.substring(this.$e,X.length-w.length); -fU.we(s.t6,this.$e,this.dS);fU.Dq(s.t6,this.$e,q);var u=this.x6(this.ji,s),r=-1,P=Array.from(q);for(var K=0; -K128&&u.aO.Font!=null){var A=u.Vj[u.aO.Font].Name,E=this.ji.gd.GF(r,A,u.Vj); -if(A!=E){fU.Xd(u,E);B=!0}}if(this.r2!=null&&q==this.r2){var n=JSON.parse(this.af$);u.aO=n.aO;u.Vj=n.Vj; -B=!0}fU.bZ(s.t6,this.$e,this.$e+q.length-1,u);this.$e=this.dS=$.length+q.length;var _=this.Ab,l=this.tr(_,this.ji,!0); -if(l)this.Q7(_,!0);if(B)this.Ih()};T.aa.prototype.a4p=function(D){if(this.yf==null||this.EZ)return;if(this.yf==null)return; -var M=hn,s=0,F=0,_=!1;if(M.Fe(D.code,M.dn))s=1;if(M.Fe(D.code,M.d4))s=-1;if(M.Fe(D.code,M.Ct))F=-1;if(M.Fe(D.code,M.g_))F=1; -var X=D.ctrlKey||D.metaKey,d=M.Fe(D.code,hn.aic),V=M.Fe(D.code,hn.a6a);if(M.Fe(D.code,hn.UK)&&X){this.wo(this.Ab,this.caller); -return}if(M.Fe(D.code,hn.JT)){D.preventDefault();var $=this.jL,w=$.value,q=$.selectionStart,u=$.selectionEnd; -$.value=w.substring(0,q)+"\t"+w.substring(u);$.selectionStart=$.selectionEnd=q+1;this.d6(null);return}if((M.Fe(D.code,M.oN)||M.Fe(D.code,M.V9))&&X){var B=this.$e,r=this.dS; -if(B>r){var P=B;B=r;r=P}var A=this.yf.add.TySh,E=fU.NN(A.t6);if(B!=r){this.r2=E.slice(B,r);this.af$=JSON.stringify(this.ji.Rv)}}var n=fU.NN(this.yf.add.TySh.t6); -if(s!=0||F!=0||d||V){D.preventDefault();var l=this.$e;if(s!=0){if(X&&s==-1)l=this.__(n,this.$e-1);else if(X&&s==1)l=this.Zu(n,this.$e); -else{var $=this.jL,w=$.value;l=this.$e+s;if(l!=0&&w.codePointAt(l-1)>65535)l+=s}}else if(F!=0){var b=this.Fu.XL(this.$e); -if(F==-1&&b.o0==0)l=0;else if(F==1&&b.o0==this.Fu.alF()-1)l=99999999999;else l=this.Fu.gg(new eo(b.S.x+b.S.d/2,0),b.o0+F)}else if(d){var y=this.$e-1; -while(y>0&&n.charCodeAt(y)!=10)y--;l=y==0?0:y+1}else if(V){var y=this.$e;while(y1&&s.B(hn.CC)){X.I.pop(); -X.I.pop();X.I.push(this.e$.x,this.e$.y);D.J.h6=X;D.dm=!0}return}X.K.push("L");X.I.push(this.e$.x,this.e$.y); -this.J$=this.e$;if(this.OQ){D.J.h6=X;D.dm=!0}};T.U4.prototype.lo=function(){return this.PO!=null};T.U4.prototype.rq=function(){return this.PO!=null}; -T.U4.prototype.sW=function(D,M,s,F){T.nv.prototype.sW.call(this,D,M,s,F);if(this.PO&&this.fO>1&&this.Jt&&!this.Jt.eg&&!F.B(hn.CC))this.o3(D,s,F)}; -T.U4.prototype.h5=function(D,M,s,F){this.Jt=F;var X=this.PO;if(X==null)return;if(this.fO>1&&s.B(hn.CC)){X.K.push("L"); -X.I.push(this.e$.x,this.e$.y);return}this.o3(D,M,s)};T.U4.prototype.o3=function(D,M,s){this.finish(D,M,s,this.Jt); -this.PO=null;D.J.h6=null;D.dm=!0};T.U4.prototype.getSelection=function(D,M,s,F){if(this.vL.L0(this.e$)||!this.OQ)return null; -return T.nv.wm(this.PO.I,null,this.RG.anta)};T.UT=function(){T.p4.call(this,[10,11],T.Jb,"tools/move"); -this.qK=new eo(0,0);this._i=new eo(0,0);this.aF=null;this.zu=null;this.fE=new eo(0,0);this.n0=null;this.kL=null; -this.Pm=null;this.yB=0;this.nb=null;this.Ng=[];this.JD=null;this.df=!1;this.e=0;this.Rp=null;this.jf=null; -this.Gy=null;this.mf=!1;this.FO={BJ:!1,Vg:!1,zk:!1};this.aau=!1;this.any=!1;this.a7=null;this.KT=null; -this.a5b=null;var D=[];for(var K=0;Kr?[23,3]:[23,4]; -if(r==0)u=[11,15,0]}else if(d=="gidsFromLayer"){var P=[],A=[],E=s.sT();for(var K=0;K")Z++;var z=s.root.YG(Z),j=z; -while(z.parent!=null){z=z.parent;if(b.indexOf(z.index)!=-1)j=z}var R=k.indexOf(j.index);if(R==-1){R=k.length; -k.push(j.index)}p[K]=R}var a=[],m=[],G=[];for(var K=0;KX.y)d.push(w,X.y,w,F.y); -if($X.x)d.push(X.x,q,F.x,q);if(V128}if(!w&&(!this.mf&&this.FO.BJ||this.mf&&this.FO.BJ&&(s.B(hn.Mr)||D.D.length<2))){var _=this.afw(D,$,s); -if(!_){D.D=[];D.v2=null;D.$E=D.PD=!0;this.e=3;this.Rp=new hk;this.df=!0;return}}if(s.B(hn.CC)&&!w){var l=new W(U.E.u); -l.G=T.HG;l.data={e:g.mh,a4c:!0};M.n(l)}}if(D.nz.length!=0){this.e=4;this.JD=D.lk[D.nz[0]].rect.clone(); -this.df=!0;return}this.nb=D.$i(d==null,d,null,!0);for(var K=0;K>2);e.FK(y.Uc.Lv,z,3)}else z=D.Z.channel.slice(0); -var j={rect:y.Uc.pq.clone(),channel:z};this.Gy=new iu(p?[12,53]:[12,54],this);this.Gy.data={e:1,c:D.D[0],Uc:y.Uc,_4:S,sL:Z,ZM:D.Z,WT:j,iw:new eo(0,0)}; -D.D0(this.Gy);D.Z=j;D.O8=!0}}this.df=!0;this.JD=T.m.$a(D)};T.UT.prototype.afw=function(D,M,s){var F=D.root.Za(new eo(Math.floor(M.x),Math.floor(M.y))); -if(F){if(F.c.add.vmsk)D.dm=!0;var X=D.N.indexOf(F.c);if(s.B(hn.Mr)){var d=D.D.indexOf(X);if(d==-1)D.D.push(X); -else if(D.D.length>1)D.D.splice(d,1)}else if(D.D.indexOf(X)==-1){this.BR(D,X)}}return F!=null};T.UT.prototype.BR=function(D,M){D.N[M].eu=0; -D.D=[M];D.v2=null;D.zi();D.xW=!0;D.$E=!0};T.UT.prototype.Hi=function(D,M,s,F,X){this.aF=X;var d=D.a.wT(X.x,X.y),r,P; -if(this.zu&&this.e<2)d=this.zu.zh(d,F);if(!this.df){if(s.xo&&s.u8.Cg){var V=this.g5(D,d),$="default"; -if(V!=null)$=["col-resize","row-resize"][D.Cg[V][0]];else if(this.a7){var w=this.a7.rl(d,D.a.$);if(w)$=w}this.m$($,M)}this.cR(D,d); -return}var q=this._i,u=Math.round(d.x-q.x)-this.fE.x,B=Math.round(d.y-q.y)-this.fE.y;if(this.JD){if(this.e==2){d=T.UT.A0(D,d,s,[!1,D.Z?D.Z.rect:this.JD,!0])}else{P=this.JD.clone(); -P.offset(this.fE.x+u,this.fE.y+B);r=T.UT.Ui(D,P,s);u+=Math.round(r[0]);B+=Math.round(r[1])}}this.fE.x+=u; -this.fE.y+=B;this.eo(D,u,B,d,null,F.B(hn.Mr));this.cR(D,d);if(r)T.UT.vW(D,P,r)};T.UT.prototype.g5=function(D,M){M=[M.x,M.y]; -var s=D.C8(),F=D.sT();for(var K=0;K=0){var V=new W(U.E.u,!0);V.G=T.$l;V.data={e:"editCurr",ca:d};M.n(V)}else if(T.UT.mI(s,X,D.a,!0)){var $=new W(U.E.Q); -if(X.y>D.a.Ar.w-20){$.data={e:U.V.Aq,VM:"doczoom",NT:D.a.$*100,b0:{o:U.E.u,G:T.SM,r:{e:"pzoom"}}}}else{$.data={e:U.V.Aq,VM:"preferences"}}M.n($)}}this.yB=Date.now(); -T.I4.gY(D)};T.UT.prototype.iI=function(D,M,s,F,X){if(!this.df)return;this.df=!1;if(this.e==0){if(F){this.vJ(D,null,F,X)}else{if(this.fE.x==0&&this.fE.y==0)return; -this.vJ(D,this.fE.clone())}D.wc=!0}else if(this.e==2){var d=0;M=[M.x,M.y];var V=this.nb,$=D.Cg[V],fZ=this.jf[0].length,w=D.Cg.length; -if(s.V7&&M[$[0]]0){var p=q.add.GdFl;if(p==null)p=q.add.PtFl;if(q.yt()&&!q.MQ()&&q.add.vmsk!=null&&e.A.RN(q.add.vmsk.g)&&q.add.vmsk.Cv==255&&(p==null||p.Algn&&p.Algn.v)){q.rect.offset($,w)}else q.M8(D); -var k=D.root.nA(q.NR(D),D,M[K]);d=d.bk(k);k.offset(-$,-w);d=d.bk(k);if(q.add.SoCo||q.add.GdFl||q.add.PtFl||iA.get(q.add)!=null)d=d.bk(V); -q.Uf()}}D.T(d)};T.UT.alR=function(D,M){var s=[];for(var K=0;K>>1; -if(Math.abs(r.x-M)>>1; -if(Math.abs(r.y-M)>>1),r.y+(E>>>1),r.x+P,r.y+E]; -for(var K=0;K<6;K+=2)if(Math.abs(R[K+F]-M)>>1,E>>>1,P,E]; -for(var K=0;K<6;K+=2)if(Math.abs(R[K+F]-M)D.d||M.y<0||M.y>D.w)return null; -var V=new hk(0,0,D.d,D.w);if(X==null&&V.L0(F.rect))d=F.buffer;else{d=e.U(V.Y()*4);if(X==null)e.eJ(F.buffer,F.rect,d,V); -else T.NL.jS(X.channel,X.rect,X.color,d,V)}var $=T.c4.WZ(d,V,M,null,s),w=e.t8($,V),q=e.U(w.Y());e.b7($,V,q,w); -return{rect:w,channel:q}};T.c4.CV=function(D,M,s){var F=M.d,X=M.w,V=0,$=0,w=0,q=0;D=new Uint32Array(D.buffer); -var d=[],u=s.length;for(var K=0;K>8&255,E>>16&255,E>>>24])}return d}; -T.c4.WZ=function(D,M,s,F,X){D=new Uint32Array(D.buffer);var d=M.d,V=M.w,$=d*V;if(F==null)F=T.c4.CV(D,M,[s]); -var w=Math.round(s.x-.5-M.x),q=Math.round(s.y-.5-M.y),u=q*d+w,B=Date.now(),r=e.U(d*V),P=X[0],A=1/P,E=X[1]&&P>0?255:0; -if(X[2]){var n=e.U(r.length),_=new Uint32Array($),l=1;_[0]=w<<16|q;n[u]=1;while(l>0){var b=_[l-1];l--; -var y=b>>>16,p=b&65535,K=p*d+y,k=T.c4.uN(D[K],F);if(k>P){var S=E*(1-Math.max(0,Math.min(1,(k-P)*A))); -r[K]=~~S}else{r[K]=255;if(p!=V-1&&n[K+d]==0){_[l++]=y<<16|p+1;n[K+d]=1}if(p!=0&&n[K-d]==0){_[l++]=y<<16|p-1; -n[K-d]=1}if(y!=d-1&&n[K+1]==0){_[l++]=y+1<<16|p;n[K+1]=1}if(y!=0&&n[K-1]==0){_[l++]=y-1<<16|p;n[K-1]=1}}}}else{for(var K=0; -K<$;K++){var k=T.c4.uN(D[K],F);if(k<=P)r[K]=255}for(var p=0;p0&&(r[K-1]==255||p>0&&r[K-d-1]==255||p0&&r[K-d+1]==255||p0&&r[K-d]==255||p>>8&255,X=D>>>16&255,d=D>>>24&255;if(M[3]==0)return d<5?0:255; -var V=Math.max(Math.abs(s-M[0]),Math.max(Math.abs(F-M[1]),Math.abs(X-M[2])));return d==0?255:V};T._f=function(D,M){if(M)T.NL.call(this); -else if(D)T.NL.call(this,[10,49],T.BW,"tools/camove");else T.NL.call(this,[10,26],T.eN,"tools/patch"); -this.J$=null;this.PO=null;this.L=null;this.bs=null;this.tm=new eo;this.dr=null;this.lU=null};T._f.prototype=new T.NL; -T._f.prototype.Ed=function(D,M,s,F,X){var d=D.a.wT(X.x,X.y);if(D.Z&&e.Za(d,D.Z.channel,D.Z.rect)){var V=new hk(0,0,D.d,D.w),$=V.Nm(D.Z.rect); -if(!D.CH()||$.qj())return;if(!0){var w=e.U($.Y());e.b7(D.Z.channel,D.Z.rect,w,$);D.Z={channel:w,rect:$}}this.TB(D); -this.dv(D);this.bs=d;this.tm=new eo(d.x-D.Z.rect.x,d.y-D.Z.rect.y);this.lU=e.U(D.Z.rect.Y()*4);this.lU.fill(255); -if(this.FO.patch==1){var q=D.N[D.D[0]];q.fq(D,D.Z,!0);if(q.Uc==null)this.bs=null}this.dr=D.Z.rect.clone()}else{this.PO={I:[d.x,d.y],K:["M"]}; -this.J$=d}};T._f.prototype.Hi=function(D,M,s,F,X){var d=D.a.wT(X.x,X.y);if(this.bs){if(this.FO.patch==1){if(D.nz.length==0){var V=D.N[D.D[0]].Uc,$=d.x-this.tm.x,w=d.y-this.tm.y; -T.UT.uH(D,D.D[0],Math.round($-V.pq.x),Math.round(w-V.pq.y))}}else this.em(D,d,"clone")}if(this.J$){this.PO.K.push("L"); -this.PO.I.push(d.x,d.y);this.J$=d;D.J.h6=this.PO;D.dm=!0}};T._f.prototype.q_=function(D,M,s,F,X){var d=D.a.wT(X.x,X.y); -if(this.bs){var V=D.Z.rect.clone();if(this.id==T.BW){var $=D.N[D.D[0]];$.yw(D,$.Uc);D.Z.rect=this.dr.clone(); -var w=e.U(D.Z.rect.Y()*4);e.Te(D.Z.channel,w,3);this.kg(D,"sheal",w,D.Z.rect,D.Z.rect);D.Z.rect=V;V=V.bk(this.dr)}this.em(D,d,"heal"); -this.finish(D,V,null,null,!0);D.T(V);this.bs=null}if(this.J$){var q=T.nv.kS(this.FO.setop,F.B(hn.Mr),F.B(hn.CC)),u=new W(U.E.qZ,!0); -if(this.PO.I.length<=4)u.data=T.nv.fo();else u.data=T.nv.wm(this.PO.I,q);M.n(u);this.J$=null;D.J.h6=null; -D.dm=!0}};T._f.prototype.KH=function(){return this.L};T._f.prototype.yJ=function(D,M,s,F,X){T.NL.prototype.yJ.call(this,D,M,s,F,X); -this.m$(X,F)};T._f.prototype.m$=function(D,M){var s="auto;";if(M!=null&&M.B(hn.Mr)&&!M.B(hn.CC)||this.FO.setop=="union")s="copy"; -var F=new W(U.E.Q,!0);F.data={e:U.V.tp,BA:s};if(this.caller)this.caller.n(F)};T._f.prototype.em=function(D,M,s){var F=new eo(Math.round(this.bs.x-M.x),Math.round(this.bs.y-M.y)); -if(this.FO.patch==1)F.SG(-F.x,-F.y);this.L=F;this.kg(D,s,this.lU,D.Z.rect,D.Z.rect);this.T(D,D.Z.rect)}; -T.f6=function(){T._f.call(this,!0);this.FO.patch=1};T.f6.prototype=new T._f(!0,!0);T.hr=function(){T.NL.call(this,[10,13],T.amo,"tools/pbucket")}; -T.hr.prototype=new T.NL;T.hr.prototype.enable=function(D,M,s,F){var X=new W(U.E.Q,!0);X.data={e:U.V.tp,BA:"default"}; -M.n(X)};T.hr.prototype.mj=function(D,M){};T.hr.prototype.q_=function(D,M,s,F,X){if(this.jb(F,M,X))return; -if(!D.CH())return;var d=D.a.wT(X.x,X.y),V=T.c4.XO(D,d,this.FO.wconf);if(V==null)return;var $=e.U(V.rect.Y()*4); -e.BK($,(s.Yr&255)<<16|(s.Yr>>8&255)<<8|(s.Yr>>16&255)<<0);e.Te(V.channel,$,3);this.TB(D);this.kg(D,"draw",$,V.rect,V.rect); -this.T(D,V.rect);this.finish(D,V.rect)};T.JG=function(){T.nv.call(this,[10,14],T.adh,"tools/plasso"); -this.GN="crosshair";this.mv=[];this.f$=null;this.PO=null;this.aeD=0};T.JG.prototype=new T.nv;T.JG.prototype.disable=function(D,M,s,F){this.Vw(D)}; -T.JG.prototype.Qs=function(D,M,s,F){this.mv=[hn.l2,hn.zw]};T.JG.prototype.LB=function(D){return this.mv.indexOf(D)!=-1}; -T.JG.prototype.D8=function(D){return this.PO!=null};T.JG.prototype.rq=function(){return this.PO!=null}; -T.JG.prototype.lo=function(){return this.PO!=null};T.JG.prototype.it=function(D,M,s,F){if(this.PO==null)return; -var X=this.PO,d=X.I,V=d.length-2,$=this.e$;if(this.fO>1&&s.B(hn.CC)&&F.eg){d.push(0,0);X.K.push("L"); -V+=2}else if(s.B(hn.Mr))$=T.sj.Op(new eo(d[V-2],d[V-1]),$);d[V]=$.x;d[V+1]=$.y;D.J.h6=X;D.dm=!0};T.JG.prototype.h5=function(D,M,s,F){var X=Date.now(); -if(this.PO==null)this.PO={I:[this.e$.x,this.e$.y,this.e$.x,this.e$.y],K:["M","L"]};else{this.it(D,M,s,F); -if(X-this.aeD<250||eo.cQ(this.e$,new eo(this.PO.I[0],this.PO.I[1]))<5*U.F()/D.a.$){this.f$=this.PO;this.finish(D,M,s,F); -this.Vw(D);return}this.PO.K.push("L");this.PO.I.push(this.e$.x,this.e$.y)}this.aeD=X;D.J.h6=this.PO}; -T.JG.prototype.Vw=function(D){this.PO=null;this.mv=[];if(D!=null){D.J.h6=null;D.dm=!0}};T.JG.prototype.sW=function(D,M,s,F){T.nv.prototype.sW.call(this,D,M,s,F); -if(F.B(hn.Qd)&&this.PO==null&&this.f$&&D.Z!=null){var X=new W(U.E.u);X.G=T.BV;X.data={e:"h_stepbck"}; -M.n(X);this.Qs(D,s,F,null);this.PO=this.f$;return}if(this.PO==null)return;if(F.B(hn.l2)||F.B(hn.zw)){this.PO.I.pop(); -this.PO.I.pop();this.PO.K.pop();this.it(D,s,F)}if(F.B(hn.UK)){if(this.PO.I.length>4){this.f$=this.PO; -this.finish(D,s,F)}this.PO=null}if(F.B(hn.Qd)){this.PO=null}D.J.h6=this.PO;D.dm=!0};T.JG.prototype.getSelection=function(D,M,s,F){return T.nv.wm(this.PO.I,null,this.RG.anta)}; -T.Ir=function(){T.nv.call(this,[10,10],T.a3v,"tools/mlasso");this.GN="crosshair";this.mv=[];this.g=[]; -this.pk=[];this.L7=[];this.tj=null;this.ow=null;this.Hw=null;this.yB=0;this.Qo=0};T.Ir.prototype=new T.nv; -T.Ir.prototype.disable=function(D,M,s,F){this.clear(D)};T.Ir.prototype.D8=function(D){return this.g.length!=0}; -T.Ir.prototype.lo=function(){return this.g.length!=0};T.Ir.prototype.LB=function(D){return this.mv.indexOf(D)!=-1}; -T.Ir.prototype.Qs=function(D,M,s,F){this.mv=[hn.l2,hn.zw];var X=this.Hn(this.vL,D);if(this.g.length!=0&&(eo.cQ(X,this.g[0])<4*U.F()/D.a.$||Date.now()-this.yB<300)){this.pd(D,this.g[0]); -this.finish(D,M,s);this.clear(D);return}this.yB=Date.now();if(this.g.length!=0)X=this.rJ(X,D);else{var d=D.d,V=D.w,$=e.U(d*V),w=D.tn(),q=d*V*4; -for(var K=0;K>>2]=~~(.5+e.jq(w[K],w[K+1],w[K+2])*(w[K+3]*(1/255)));this.tj=e.yr.aaI($,d,V); -this.Hw=new Uint16Array($.length)}this.pd(D,X);this.Qo=s.B(hn.CC)?1:0;this.Xm(D)};T.Ir.prototype.pd=function(D,M){var s=this.g; -this.pk[s.length]=this.L7.length;if(s.length!=0){e.yr.Q$(this.ow,M.y*D.d+M.x);var F=this.aS(D,M);F.reverse(); -var X=T.Ir.eG(D,F);this.L7=this.L7.concat(X)}s.push(M);this.ZV(D)};T.Ir.prototype.ZV=function(D){var M=this.g[this.g.length-1],s=M.y*D.d+M.x; -this.ow=e.yr.a0y(this.tj.Bn,this.tj.O4,s);this.Hw.fill(0)};T.Ir.prototype.Hn=function(D,M){return new eo(Math.floor(Math.max(0,Math.min(M.d-1,D.x))),Math.floor(Math.max(0,Math.min(M.w-1,D.y))))}; -T.Ir.prototype.clear=function(D){this.L7=[];this.g=[];this.pk=[];this.tj=null;this.ow=null;this.Hw=null; -if(D!=null){D.J.h6=null;D.J.PM=[];D.dm=!0}this.mv=[]};T.Ir.prototype.it=function(D,M,s,F){var X=this.g,d=X.length; -if(d==0)return;var V=this.rJ(this.Hn(this.e$,D),D),$=this.aS(D,V);for(var K=0;K<$.length;K++){var w=$[K],q=new eo(w%D.d,Math.floor(w/D.d)); -if(this.Hw[w]>30&&eo.cQ(q,X[d-1])>20){this.pd(D,q);return}this.Hw[w]++}if(this.Qo==1&&F.eg)this.pd(D,V); -this.Xm(D)};T.Ir.prototype.Xm=function(D){var M=this.g;if(M.length!=0){var s=this.rJ(this.Hn(this.e$,D),D),F=this.aS(D,s); -F.reverse();var X=T.Ir.eG(D,F),d=this.L7.concat(X),V=D.J.h6={I:d,K:["M"]};for(var K=2;K5e3){console.log(d); -throw"e"}}return d};T.Ir.eG=function(D,M){var s=[],F=D.d;for(var K=0;K=s||u<0||u>=F)continue; -e.yr.Q$(this.ow,u*s+q);if(this.ow.ZC[u*s+q]1){var w=$.x-this.Rn.x,q=$.y-this.Rn.y;for(var K=0; -K2){s.push(M[2].x,M[2].y); -F.push("L")}D.J.h6={K:F,I:s};D.J.PM=s}D.dm=!0};T.aY.prototype.Vw=function(D){D.J.h6=null;D.J.PM=[]}; -T.aY.a9W=function(D,M,s){var F=M.x-D.x,X=M.y-D.y,d=Math.abs(X*s.x-F*s.y+M.x*D.y-M.y*D.x),V=Math.sqrt(F*F+X*X); -return V==0?0:d/V};T.qa=function(){T.NL.call(this,[10,19],T.wq,"tools/sharpen");this.$c="copy"};T.qa.prototype=new T.NL; -T.qa.prototype.Ed=function(D,M,s,F,X){var d=this.FO.pdetail?hW.gT:hW.wq;if(F.B(hn.CC))d=hW.Da;this.rO(D,s,F,X,this.FO.strn,d); -if(this.H1==null)return;this.XF(D)};T.qa.prototype.Hi=function(D,M,s,F,X){this.Mq(D,M,s);if(this.Hu)this.L5(D,s,X); -if(this.H1==null)return;if(!X.eg)return;this.cn(D,s,F,X);this.XF(D)};T.PB=function(){T.NL.call(this,[10,24],T.nQ,"tools/shbrush"); -this.$c="draw";this.FO.opacity=.5};T.PB.prototype=new T.NL;T.PB.prototype.Ed=function(D,M,s,F,X){this.rO(D,s,F,X,1); -if(this.H1==null)return;this.dv(D);this.XF(D)};T.PB.prototype.Hi=function(D,M,s,F,X){this.Mq(D,M,s); -if(this.Hu)this.L5(D,s,X);if(this.H1==null)return;if(!X.eg)return;this.cn(D,s,F,X);this.XF(D)};T.PB.prototype.q_=function(D,M,s,F,X){if(this.H1==null)return; -this.kg(D,"sheal",this.H1.dE(),this.H1.$a(),this.H1.NI(),null);this.T(D,this.H1.NI());T.NL.prototype.q_.call(this,D,M,s,F,X)}; -T.Ph=function(){T.NL.call(this,[10,20],T.an,"tools/smudge");this.$c="copy"};T.Ph.prototype=new T.NL; -T.Ph.prototype.Ed=function(D,M,s,F,X){this.rO(D,s,F,X,this.FO.strn,hW.an);if(this.H1==null)return;this.XF(D)}; -T.Ph.prototype.Hi=function(D,M,s,F,X){this.Mq(D,M,s);if(this.Hu)this.L5(D,s,X);if(this.H1==null)return; -if(!X.eg)return;this.cn(D,s,F,X);this.XF(D)};T.C4=function(){T.NL.call(this,[10,23],T.sU,"tools/sponge"); -this.$c="sponge"};T.C4.prototype=new T.NL;T.C4.prototype.Ed=function(D,M,s,F,X){this.rO(D,s,F,X,this.FO.flow); -if(this.H1==null)return;this.XF(D)};T.C4.prototype.Hi=function(D,M,s,F,X){this.Mq(D,M,s);if(this.Hu)this.L5(D,s,X); -if(this.H1==null)return;if(!X.eg)return;this.cn(D,s,F,X);this.XF(D)};T.Ig=function(){T.p4.call(this,[10,17],T.SM,"tools/zoom"); -this.Iy=!1;this.Bj=!0;this.E9=0;this.dW=null;this.U3=null;this.Hj=0;this.er=null;this.aG=0;this.p6=new hb([{name:[8,0],Sb:"Ctrl + +"},{name:[8,1],Sb:"Ctrl + -",TX:!0},{name:[20,3],Sb:"Ctrl + 0"},{name:["VAR0: 100%",[20,2]],Sb:"Ctrl + 1"}],[{o:U.E.u,G:T.SM,r:{e:"zoom",Bj:!0}},{o:U.E.u,G:T.SM,r:{e:"zoom",Bj:!1}},{o:U.E.u,G:T.SM,r:{e:"adapt",H:"fitscr"}},{o:U.E.u,G:T.SM,r:{e:"adapt",H:"pixel"}}])}; -T.Ig.prototype=new T.p4;T.Ig.prototype.Sx=function(D,M,s,F,X){var d=this.p6;d._();d.parent=M;d.update(D,s); -var V=new W(U.E.Q,!0);V.data={e:U.V.Rr,JI:d,x:X.dO+2,y:X.AS+1};M.n(V)};T.Ig.prototype.enable=function(D,M,s,F){this.sp(M,F); -if(D&&Date.now()-this.E9<300)this.t$({e:"adapt",H:"pixel"},M,D,F,s);this.E9=Date.now()};T.Ig.prototype.Ed=function(D,M,s,F,X){this.U3=new eo(X.x,X.y); -this.Hj=D.a.$;this.er=D.a.L.clone()};T.Ig.prototype.Hi=function(D,M,s,F,X){if(this.U3==null)return;var d=Math.exp(Math.log(this.Hj)+(X.x-this.U3.x)/64); -d=Math.max(.02,Math.min(32,d));D.a.$=this.Hj;D.a.L=this.er.clone();this.t$({e:"zoom",$:d,aF:this.U3},M,D,F,s)}; -T.Ig.prototype.q_=function(D,M,s,F,X){if(eo.cQ(this.U3,X)<4){var d=this.m5(F);this.t$({e:"zoom",Bj:d,aF:X},M,D,F,s)}this.U3=null}; -T.Ig._U=[32,16,12,8,6,5,4,3,2,1,2/3,1/2,1/2*(2/3),1/4,1/4*(2/3),1/8,1/8*(2/3),1/16,1/16*(2/3),1/32,1/32*(2/3),1/64]; -T.Ig.a1=function(D,M,s,F){var X=1;while(D*X*1/2>s||M*X*1/2>F)X*=1/2;if(D*X*2/3>s||M*X*2/3>F)X*=1/2;else if(D*X>s||M*X>F)X*=2/3; -return X};T.Ig.uX=function(D,M){var s=T.Ig.kM(D);if(M&&s==0)return D;if(!M&&s==T.Ig._U.length-1)return D; -return T.Ig._U[M?s-1:s+1]};T.Ig.kM=function(D){var M=0;while(T.Ig._U[M]>D)M++;return M};T.Ig.l9=function(D,M,s,F){var X=D.Ab; -if(F==0||F==null){F=T.Ig.uX(D.$,s);if(F==D.$)return}var d=D.wT(M.x,M.y);if(X.d*F<=D.Ar.d&&X.w*F<=D.Ar.w){D.L.SG(0,0); -D.$=F}else{var V=D.VN(),$=D.$/F;V.translate(-d.x,-d.y);V.scale($,$);V.translate(d.x,d.y);D.Qi(V)}};T.Ig.prototype.t$=function(D,M,s,F,X){if(D.e=="pzoom"){if(typeof D.H=="string")return; -D={e:"zoom",$:D.H/100}}var d=0,V=!1,$=null;if(D.e=="adapt"){var w=0;if(D.H=="pixel")w=1;if(D.H=="fitscr"){var w=0,q=s.a.Ar.d,u=s.a.Ar.w; -w=Math.min((q-14)/s.d,(u-14)/s.w)}$=new eo(Math.round(s.a.Ar.d/2),Math.round(s.a.Ar.w/2));d=w;T.Ig.l9(s.a,$,V,d); -s.wc=!0}if(D.e.startsWith("multi")){function B(z){var j=z[0].x-z[1].x,R=z[0].y-z[1].y;return Math.sqrt(j*j+R*R)}function r(z){return new eo((z[0].x+z[1].x)/2,(z[0].y+z[1].y)/2)}var P=D.bI,A=r(P); -if(D.e=="multidown"){this.dW=[P,s.a.$,s.a.wT(A.x,A.y)]}else{d=this.dW[1]*B(P)/B(this.dW[0]);if(d>=1)d=Math.min(32,Math.round(d)); -else{var E=0,n=1e9,_=T.Ig._U;for(var K=0;K<_.length;K++){var l=Math.abs(1-d/_[K]);if(lk){V=!1; -this.aG=Math.min(this.aG-k,k-1)}else return;T.Ig.l9(s.a,$,V,d);s.wc=!0}if(D.e=="zoom"){$=D.aF?D.aF:new eo(Math.round(s.a.Ar.d/2),Math.round(s.a.Ar.w/2)); -if(D.$!=null)d=D.$;else V=D.Bj;T.Ig.l9(s.a,$,V,d);s.wc=!0}if(D.e=="mskView"){var S=s.N[s.D[0]],Z=S.eu==3?S.DI(s).C:S.Ro(); -if(D.H==0){s.a.hU=[1,1,1];Z.GC=!1}if(D.H==1){s.a.hU=[1,1,1];Z.GC=!0}if(D.H==2){s.a.hU=[0,0,0];Z.GC=!0}for(var K=0; -K>>16&255,q:D>>>8&255,P:D>>>0&255}); -this.Pm.n(M)}};T.l7.prototype.t$=function(D,M,s,F,X){this.Pm=M;if(D.e=="newfill"){if(D.IL==0){var d=new W(U.E.Q,!0); -d.data={e:U.V.Aq,VM:"colorpicker",qi:X.Yr,yC:this.apm.bind(this)};M.n(d)}}else if(D.e=="pathedit"){var V=D.Si,$="",w=s.Hx.slice(0),q=s.xr.slice(0),u=s.Hx.slice(0),B=s.xr.slice(0); -if(V=="rnm"){var r=-1-D.zl,P=w[r],A=iT.K0(D.name,P.add);if(r!=0)u[r]=A;else{B=[u.length];u.push(A);u[0]=iT.K0("Work Path")}$="Rename"}else if(V=="new"){u.push(iT.K0("Path "+w.length)); -B=[u.length-1];$="New"}else if(V=="del"){if(B.length==0)return;B.sort(function(z,f){return z-f});if(B[0]==0){u[0]=iT.K0(w[0].name); -B=B.slice(1)}var E=0;while(B.length!=0){u.splice(B[0]-E,1);B=B.slice(1);E++}$="Delete"}else if(V=="fromsel"){var n=u[0]=iT.K0("Work Path"); -B=[0];if(s.Z==null)return;var _=s.Z.channel.slice(0);for(var K=0;K<_.length;K++)_[K]=_[K]>128?2:1;var l=s.Z.rect.clone(); -l.ZB(1,1);var b=e.U(l.Y());e.b7(_,s.Z.rect,b,l);var y=cK.Ua(b,l.d,l.w,Math.round(l.Y()*5e-4)),p=cK.aZ(y),k=new ex(1,0,0,1,-1+s.Z.rect.x,-1+s.Z.rect.y); -for(var K=0;K=c){H.D.splice(K,1);K--}H.mw=[];j="Delete Anchors"}else{if(H.D.length==0)return;var E=0; -for(var K=0;K0){var d=["SoCo","GdFl","PtFl"][X-1]; -for(var K=0;K<3;K++)delete D.add[["SoCo","GdFl","PtFl"][K]];D.add[d]=M.UF}};T.Qg=function(D,M,s,F){T.l7.call(this,D,M,s); -this.FO={tmode:0,shape:es.Cr(),pshape:0,binop:0,crad:0,irad:40,length:4,sides:5,width:5,tolr:5,tsiz:300,cstr:{Rh:0},anta:!0}; -this.amu=F;this.Fx=null;this.uo=null;this.Rm=null};T.Qg.prototype=new T.l7;T.Qg.prototype.D8=function(D){return D.eg&&this.id!=T._Y}; -T.Qg.prototype.enable=function(D,M,s,F,X){this.kL=s;var d=new W(U.E.Q,!0);d.data={e:U.V.tp,BA:"crosshair"}; -M.n(d)};T.Qg.prototype.js=function(D,M,s,F){};T.Qg.prototype.Ed=function(D,M,s,F,X){var d=this.FO.tmode; -if(d!=2)this.UH(M,s);if(d==2&&!D.CH())return;var V=D.a.wT(X.x,X.y);V=T.UT.A0(D,V,s);this.Rm=[V.x,V.y]; -this.Fx=V;this.uo=new eo(0,0)};T.Qg.prototype.Yp=function(D,M,s){var F=[this.Fx.clone(),M.clone()];if(this.amu)F=T.Qg.FE(F[0],F[1],s,!0,this.FO.cstr); -if(D)D.a.qr=new hk(F[0].x,F[0].y,F[1].x-F[0].x,F[1].y-F[0].y);return this.js(F[0],F[1],s.B(hn.Mr),this.Rm)}; -T.Qg.prototype.v3=function(D,M,s){var F=D.a.wT(M.x,M.y),X=this.FO.cstr;if(X.Rh==2){var d=new hk(F.x-X.x,F.y-X.y,X.x,X.y),V=T.UT.Ui(D,d,s); -F.x+=V[0];F.y+=V[1];T.UT.vW(D,d,V)}else F=T.UT.A0(D,F,s);return F};T.Qg.prototype.Hi=function(D,M,s,F,X){if(this.Fx==null)return; -var d=this.Rm,V=d.length,$=X?this.v3(D,X,s):new eo(d[V-2],d[V-1]);if(F.B(hn.Xq))this.Fx=$.AF(this.uo); -else this.uo=$.AF(this.Fx);d.push($.x,$.y);if(this.FO.shape==null)this.FO.shape=s.dl[0];var w=this.Yp(D,$,F)[0],q=e.O.TD(w); -D.J.h6=q;if(this.id!=T._Y&&this.id!=T.kR&&this.id!=T.uM)T.p4.Dd(X.x+10,X.y-10,D.a.qr,D,s);D.dm=!0};T.Qg.prototype.ae2=function(D,M,s,F){var X=D[4].clone(); -if(F){X.x-=M/2;X.y-=s/2}var d=this.js(X,new eo(X.x+M,X.y+s),!1,this.Rm);this.OX(D[0],D[1],D[2],d)};T.Qg.prototype.OX=function(D,M,s,F){var X=new W(U.E.qZ,!0); -X.data=T.Qg.bf(F[1],s);M.n(X);if(F[1].v.classID=="customShape"&&F[1].v.Nm.v.startsWith("--")){var d=D.aZ(),V=d[0],$=d[1],w=V[$.pop()],q=w.add.vmsk,u=w.add.vogk,B=q.clone(); -B.g=F[0];this.V2(D,w.zl,B,u)}};T.Qg.prototype.q_=function(D,M,s,F,X){if(this.Fx==null)return;var d=this.v3(D,X,s),V=this.FO.binop,$=this.FO.tmode,w=this.Rm,q=w.length; -if(this.id==T._Y&&q<=4){}else if(q<=4){d.x=Math.round(d.x);d.y=Math.round(d.y);var u=new W(U.E.Q);u.data={e:U.V.Aq,VM:"createshape",acH:this.ae2.bind(this),a3Y:this.name,a6g:[D,M,s,F,d]}; -M.n(u)}else if(q!=2){var B=this.Yp(D,d,F),r=B[0];if($==1&&r.length>2){r[2].AY=[1,2,3,0][V];var P=D.aZ(!0),A=P[0],E=P[1],n=A[E.pop()],_=n.add.vmsk,l=n.add.vogk,b=_.clone(),y=_.clone(),p=JSON.stringify(l); -y.g=y.g.concat(r.slice(2));y.D=[e.A.KK(y.g)-1];var k=e.nU.t9(B[1]);l.push(k?k:e.nU.k5());this.V2(D,n.zl,y,l); -this.pQ(D,this.name,n.zl,b,y,null,p,JSON.stringify(l))}else if($==0){this.OX(D,M,s,B)}else if($==2){var y=new g.YL; -y.g=y.g.concat(r.slice(2));var S=y.Ro();if(!this.FO.anta)e.round(S.channel);var Z=e.U(S.rect.Y()*4); -e.BK(Z,(s.Yr&255)<<16|(s.Yr>>8&255)<<8|(s.Yr>>16&255)<<0);e.Te(S.channel,Z,3);var z=new W(U.E.u,!0); -z.G=T.oH;z.data={e:"draw",MA:{buffer:Z,rect:S.rect.clone()},nc:this.name};M.n(z)}}this.Fx=null;D.J.h6=null; -D.J.TR=null;D.J.Tn=[];D.a.qr=null;D.dm=!0};T.Qg.prototype.yJ=function(D,M,s,F,X){for(var s in D)this.FO[s]=D[s]}; -T.Qg.FE=function(D,M,s,F,X){var d=D.x,V=D.y,$=M.x,w=M.y;if(X&&X.Rh==2){if(F){$=Math.round($);w=Math.round(w)}d=$-X.x; -V=w-X.y}else{var q=0;if(X&&X.Rh==1)q=X.y/X.x;else if(s&&s.B(hn.Mr))q=1;if(q!=0){if(F){if(d<$)d=Math.floor(d); -else d=Math.ceil(d);if(Vd?d+r:d-r;w=w>V?V+r*q:V-r*q}if(s&&s.B(hn.CC)){d-=$-d;V-=w-V}}var D=new eo(d,V),M=new eo($,w); -if(F)T.Qg.a52(D,M);return[D,M]};T.Qg.a52=function(D,M){if(D.x>M.x){var s=D.x;D.x=M.x;M.x=s}if(D.y>M.y){var s=D.y; -D.y=M.y;M.y=s}D.x=Math.floor(D.x);D.y=Math.floor(D.y);M.x=Math.ceil(M.x);M.y=Math.ceil(M.y)};T.Qg.agA=function(){return{classID:"Mk",null:{t:"obj ",v:[{t:"Clss",v:{classID:"contentLayer"}}]},Usng:{t:"Objc",v:{classID:"contentLayer",Type:{t:"Objc",v:{}}}}}}; -T.Qg.sh=function(D,M){var s=T.Qg.agA();if(M==null)M=JSON.parse(JSON.stringify(aX.tI[D]));aG.u$.DP(M,s.Usng.v.Type.v,D); -return{FX:"make",k_:s}};T.Qg.bf=function(D,M){var s=M.nR,F=JSON.parse(JSON.stringify(M.rC));if(s.Ij==0)F.fillEnabled.v=!1; -var X=T.Qg.sh(Math.max(0,s.Ij-1),s.UF);X.k_.Usng.v.Shp=D;X.k_.Usng.v.strokeStyle={t:"Objc",v:F};return X}; -T.Ri=function(){T.l7.call(this,[10,29],T.aN,"tools/pen");this.oj=null;this.qG=null;this.By=null;this.Ot=0; -this.acJ=0;this.zG=null;this.tM=!1;this.ds=!1;this.DL=!1};T.Ri.prototype=new T.l7;T.Ri.prototype.D8=function(D){return this.qG!=null}; -T.Ri.prototype.sW=function(D,M,s,F){T.l7.prototype.sW.call(this,D,M,s,F);if(!F.B(hn.CC))this.DL=!1}; -T.Ri.prototype.Ed=function(D,M,s,F,X){this.oj=X;this.UH(M,s);var d=D.a.wT(X.x,X.y),P,A;d.x=Math.round(d.x); -d.y=Math.round(d.y);var V=T.UT.A0(D,d,s),$=D.aZ(this.Ot==1),w=$[0],q=$[1],u=w[q.pop()],B=u?u.add.vmsk:null,r=4*U.F()/D.a.$; -if(B)P=e.A.Za(B.g,d,!0,r);var E=F.B(hn.CC);if(this.Ot==0&&(B==null||B.mw.length==0&&P.zl==-1)){var n=new W(U.E.qZ,!0),_=e.nU.Ku("customShape",[0,0,1,1],null,null,null,"--"); -n.data=T.Qg.bf(_,s);M.n(n);$=D.aZ(!0);w=$[0];q=$[1];u=w[q.pop()];B=u.add.vmsk;B.g=B.g.slice(0,2)}var l=u.add.vogk; -this.qG=B.clone();this.By=JSON.stringify(l);var b=B.g,y=e.A.KK(b);A=e.A.Tu(B.g,new hk(d.x-r,d.y-r,r*2,r*2),B.mw); -P=e.A.Za(B.g,d,!0,r);var p=A[0].length+A[1].length+A[2].length;if(P.zl!=-1&&A[0].length==0){var k=e.A.iC(b,P.zl); -while(b[k].length<=P.wg){P.wg-=b[k].length;k+=b[k].length+1}b[k].length++;b.splice(k+2+P.wg,0,{type:4,j9:V.clone(),W:V.clone(),Gd:V.clone()}); -B.mw=[k+2+P.wg]}else if(p!=0&&E){var S=0;for(var K=0;K<3;K++)if(A[K].length!=0){S=A[K][0];this.ds=K==1; -break}if(A[0].length!=0){var Z=B.g.length-1,z=B.g[S];z.Gd=z.W.clone();var j=z.type>=3?3:0;if(S!=Z){z.j9=z.W.clone(); -z.type=j+1;this.DL=!0}else z.type=j+2}B.mw=[S]}else if(A[0].length==1&&b[A[0][0]-1]&&b[A[0][0]-1].AY==null){var S=A[0][0],k=e.A.i4(b,S); -k=e.A.iC(b,k);var R=k+b[k].length;if(S!=R){b[k].length--;b.splice(S,1);R--}B.mw=[R]}else{var a=0;if(B.mw.length!=1){B.D=[y]; -b.push({type:3,length:1,AY:[1,2,3,0][this.acJ],As:0,wp:0,k2:0});a=b.length;l.push(e.nU.k5())}else{var m=B.mw[0],G=e.A.i4(b,m),k=e.A.iC(b,G); -m=k+b[k].length;if(eo.cQ(d,b[k+1].W)0}else{var n=this.JD.clone(),_=n.x,l=n.y;n.offset(d.x-this.yQ.x,d.y-this.yQ.y); -n.x=Math.round(n.x);n.y=Math.round(n.y);var b=T.UT.Ui(D,n,s),y=new ex(1,0,0,1,n.x-_+b[0],n.y-l+b[1]); -e.A.VR($.g,y,$.D);e.nU.t(w,e.X.HA(y),$.D);T.UT.vW(D,n,b)}this.V2(D,V.zl,$,w)}else{var p=this.yQ;D.J.h6=e.O.l5(new hk(p.x,p.y,d.x-p.x,d.y-p.y)); -D.dm=!0}};T.vR.prototype.q_=function(D,M,s,F,X){if(this.yQ==null)return;var d=D.a.wT(X.x,X.y),V=this.PO,$=V?V.add.vmsk:null; -if(this.$G){var w=JSON.stringify(V.add.vogk);if(!this.yQ.L0(d))this.pQ(D,"Move Paths",V.zl,this.qG,$,null,this.By,w); -if(D!=null&&D.J.TR){D.J.TR=null;D.dm=!0}}else{if($){var q=this.yQ,u=new hk(q.x,q.y,d.x-q.x,d.y-q.y),B=e.A.ana($.g,u); -if(F.B(hn.Mr)){for(var K=0;Kq+u)d[P]+=B}this.T9(F,X);F.mw=[]}this.V2(this.Dz,this.PO.zl,F,X); -if(D=="cancel")this.Vw()};T.ae.prototype.disable=function(D,M,s,F){this.io(D)};T.ae.prototype.Ed=function(D,M,s,F,X){this.io(D); -var d=D.a.wT(X.x,X.y),B,r,P;this.zI=d.clone();var V=D.aZ(),$=V[0],w=V[1];if(w.length==0)return;var q=4*U.F()/D.a.$,u=new hk(d.x-q,d.y-q,q*2,q*2); -for(var A=0;A>>1);D.J.eb.push(j.x,j.y); -D.dm=!0}}}};T.ae.prototype.io=function(D){if(D&&D.J.eb.length!=0){D.J.eb=[];D.J.mq=[];D.dm=!0}};T.ae.prototype.q_=function(D,M,s,F,X){var d=D.a.wT(X.x,X.y),V=this.PO,$=V?V.add.vmsk:null,w=V?V.add.vogk:null; -if(this.LX!=-1){if(Date.now()-this.yB<300){var q=$.g[this.LX],u=this.qo,B=null;if(u==0){var r=q.j9.L0(q.W),P=q.Gd.L0(q.W); -if(!r&&!P){B="Anchor Type";if(q.type==1||q.type==4)q.type++;else{q.type--;q.Gd=q.W.add(q.W.AF(q.j9))}}else{B="Add Handles"; -if(r&&P){q.j9.x-=30;q.Gd.x+=30}else if(r)q.j9=q.W.add(q.W.AF(q.Gd));else if(P)q.Gd=q.W.add(q.W.AF(q.j9))}}else{B="Remove Handle"; -if(u==1)q.j9.xC(q.W);else q.Gd.xC(q.W)}this.T9($,w);this.V2(D,V.zl,$,w);this.pQ(D,B,V.zl,this.qG,$,null,this.By,JSON.stringify(w))}else if(!this.zI.L0(d)){this.pQ(D,"Drag Anchors",V.zl,this.qG,$,null,this.By,JSON.stringify(w))}this.yB=Date.now()}else if(this.yQ!=null){var A=this.yQ,E=new hk(A.x,A.y,d.x-A.x,d.y-A.y); -if(E.d<0)E.x+=E.d;if(E.w<0)E.y+=E.w;E.d=Math.abs(E.d);E.w=Math.abs(E.w);var n=e.A.Tu($.g,E);$.mw=n[0].concat(F.B(hn.Mr)?$.mw:[]); -D.J.h6=null}this.Vw();D.dm=!0};T.ae.prototype.Vw=function(){this.PO=null;this.qG=null;this.yQ=null;this.LX=this.qo=-1; -this.zu=null};T.ae.prototype.T9=function(D,M){for(var K=0;K2)F.push(-1-D.xr[K]); -var X=[],d=D.a.hU;if(d[0]+d[1]+d[2]==3)if(s!=null||F.length==0||D.v2!=null&&D.v2.length!=0)X=D.$i(M,s,null,!0); -X=X.concat(F);for(var K=0;K=0&&!V.rect.qj()){this.gL=1;this.ZM=D.Z; -this._4=V.Uc;this.sL=!1;if(!V.qR(D,D.Z)){this.sL=!0;V.fq(D,D.Z,!1)}this.Gg={AX:V.Uc.Lv,S:V.Uc.pq}}else{this.gL=0; -this.d8=T.m.cD(D,this.N,null,s);for(var K=0;K=0)F=D.Z.rect.clone();else for(var K=0;K0&&V.add.artb)X=X.bk(V.En())}return!X.qj()?X:F};T.m.prototype.rn=function(D,M,s,F){var X=new W(M,!0); -X.data=s;if(F)X.G=F;D.n(X)};T.m.cD=function(D,M,s,F){var X=[];for(var K=0;K=0){V=D.N[d];$=V.n1(D,s,F)}else if(d>-1e3){V=D.Hx[-1-d];$=[2]}else{X.push([null,null,null,null,null,null,null,D.lk[-1e3-d].clone()]); -continue}var w=[];if($.indexOf(0)!=-1){var q={cb:[V.buffer.slice(0),V.rect.clone()]};w.push(q);if(V.Y2()){var u=V.DI(D); -q.alB=u.buffer.slice(0);q.a4$=u.rect.clone()}}else w.push(null);if($.indexOf(1)!=-1)w.push(V.Ro().clone()); -else w.push(null);if($.indexOf(2)!=-1)w.push({Zd:V.add.vmsk.clone(),us:V.add.vstk?JSON.parse(JSON.stringify(V.add.vstk)):null,UF:V.add.vstk?T.l7.tv(D,d):null,nU:V.add.vogk?JSON.parse(JSON.stringify(V.add.vogk)):null}); -else w.push(null);if(V.add.TySh&&w[0]){fU.P4(V.add.TySh);w.push(V.add.TySh.t.clone())}else w.push(null); -if(V.add.SoLd&&w[0])w.push(JSON.parse(JSON.stringify(V.add.SoLd)));else w.push(null);if($.indexOf(3)!=-1)w.push(V.DI(D).C.clone()); -else w.push(null);if(V.add.lmfx)w.push(JSON.stringify(V.add.lmfx));else w.push(null);X.push(w)}return X}; -T.m.Xk=function(D,M,s){for(var K=0;K1; -if(j)z=!1;var R=z?Z.D:null,a=j?Z.mw:null;if(S){var m=e.aJ.y_(V);e.X.t(B,m);e.A.a4r(Z.g,m,R,a)}else e.A.abU(Z.g,B,R,a); -if(E.add.vstk&&$){E.add.vstk.strokeStyleLineWidth.v.val=n[2].us.strokeStyleLineWidth.v.val*P;var G=n[2].UF; -if(G&&G.Ij==3){G=JSON.parse(JSON.stringify(G));var L=G.UF.phase.v;G.UF.Scl.v.val=Math.round(G.UF.Scl.v.val*P); -L.Hrzn.v=Math.round(L.Hrzn.v*P);L.Vrtc.v=Math.round(L.Vrtc.v*P);T.l7.r8(E,G)}}if(E.add.vogk){E.add.vogk=JSON.parse(JSON.stringify(n[2].nU)); -if(S||j)e.nU.aoA(E.add.vogk);else e.nU.t(E.add.vogk,B,s.length>1?[]:Z.D,$)}Z.Qw*=P;E.add.vmsk=Z;if(E.add.vogk)e.nU.eh(E.add.vogk,E.add.vmsk)}if(n[3]){var H=n[3].clone(); -H.concat(r);E.add.TySh.t=H;fU.LG(E.add.TySh);var o=new ep(E.add.TySh.t6,M.gd),c=cF.bT(o,E.add.TySh); -E.rect=c.S;E.buffer=c.dP}if(n[4]){var f=E.add.SoLd,i=T.m.FB(n[4].nonAffineTransform);e.X.t(B,i);var h=e.O.Df(i); -if(i5.yz(i)){if(V){var N=e.O.Pe(e.aJ.y_(n[4].warp.v)),k=e.X.ye(i,N),C=e.O.Pe(e.aJ.y_(V));i=[C.x,C.y,C.x+C.d,C.y,C.x+C.d,C.y+C.w,C.x,C.y+C.w]; -e.X.t(k,i);f.warp.v=V}var I=e.X.ye(i),J=i;if(!e.X.kc(I)){I[6]=I[7]=0;J=[0,0,1,0,1,1,0,1];e.X.t(I,J)}f.Trnf=T.m.hp(J); -f.nonAffineTransform=T.m.hp(i);if(f.filterFX)f.filterFX=JSON.parse(JSON.stringify(n[4].filterFX));T.m.q4(f,r); -E.CQ(D,X==0)}}if(n[5])T.m.xY(D,n[5],E.DI(D).C,X,B,V);if(n[7])T.m.xY(D,n[7],E,X,B,V);if(0<=A){if(X!=0)E.M2(); -E.M8(D);E.T()}}D.T()};T.m.hT=function(D,M,s,F,X,d){if(s==null)s=!1;return T.m.LP(D,s?0:1,e.X.HA(M),null,F,X,d,s)}; -T.m.LP=function(D,M,s,F,X,d,V,$){if($==null)$=!1;if($&&V)throw"e";var w={},r=0,P=.3;if(F&&!e.aJ.Rq(F)){var q=e.aJ.y_(F); -e.X.t(s,q);w.rect=e.O.Df(q);w.buffer=e.U(w.rect.Y()*4);e.MD.drawImage(q,D[0],D[1].d,D[1].w,w.buffer,w.rect,M==0); -return w}e.CP(D);var u=D[0],B=D[1],A=B.Y()*T.m.qw(e.X.Sj(s));if($&&A>4e6)P=A>8e6?2.2:1.2;while(r+316&&e.X.kc(s)&&T.m.qw(e.X.Sj(s))1e5||w.rect.w>1e5||w.rect.Y()>3e4*3e4)return null; -var p=w.rect.Y()*4;if(X&&X.byteLength>=p&&p>=X.byteLength>>2){w.buffer=new Uint8Array(X)}else{w.buffer=e.U(p)}e.X.drawImage(b,u,B.d,B.w,w.buffer,w.rect,M==0,d,$); -if(M==2&&w.buffer){var k=w.rect.d,S=w.rect.w,Z;Z=[0,-1,0,-1,16,-1,0,-1,0];Z=e.M6.jX(Z);var z=w.buffer.slice(0); -e.M6.pY(z,w.buffer,k,S,Z,255,!1,!0)}if(w.buffer)return w};T.m.xY=function(D,M,s,F,X,d){if(M.color==255)e.Iy(M.channel); -var V=M.rect,$=e.U(V.Y()*4);e.Te(M.channel,$,3);var w=T.m.LP([$,V],F,X,d);if(w){s.rect=w.rect;s.channel=e.U(w.rect.Y()); -e.FK(w.buffer,s.channel,3);s.wV=!0}if(M.color==255){e.Iy(M.channel);if(w)e.Iy(s.channel)}};T.m.q4=function(D,M){var s=D.filterFX; -if(s)s=s.v.filterFXList;if(s)s=s.v;if(s)for(var F=0;F>>1)+F.D[X]);D.J.eb=D.J.eb.concat(F.TV);if(this.HC[3])e.O.concat(D.J.h6,e.O.al5(F.gr,F.yA))}D.dm=!0}; -T.rj.tS=function(D,M,s){var F=D.buffer,X=D.rect,d=D.a1G,V=fR.Cr("rigidTransform");if(d)for(var K=0;K<4; -K++){V["PuX"+K].v=d[K*2];V["PuY"+K].v=d[K*2+1]}var $=V.puppetShapeList.v,w=e.ql.agb(F,X.d,X.w,M[1],M[2]),q=[]; -for(var u=0;u>>1)+l.D[b]); -for(var b=0;b=w[2]||w[1]>=w[3]){D.splice(K,1); -K--;continue}T.pe.RM(D,K,w)}};T.pe.$b=function(D,M){var s=D.Iq;for(var K=0;K1e6,V=new W(U.E.Q,!0);V.data={e:U.V.fw,mF:d};if(X)s.n(V);setTimeout(function(){var $=T.N4.MB(D); -for(var w in $)M[w]=$[w];var V=new W(U.E.Q,!0);V.data={e:U.V.Gl,mF:d};if(X)s.n(V)},30)}};T.N4.RH=function(D){var M=D.D[0],s=D.N[M],F=s.rect,X=F.d,d=F.w,V=X*d,$=s.buffer; -return[M,F.x,F.y,X,d,$[0],$[1],$[2],$[3]].join(",")};T.N4.MB=function(D){var M=D.D[0],s=D.N[M],F=s.rect,X=F.d,d=F.w,V=X*d,$=s.buffer,w=Date.now(),q=e.U(V); -q.fill(128);var u=e.R6.Yh($,X,d);console.log(Date.now()-w);var B={key:T.N4.RH(D),KW:$,rect:F.clone(),wS:X,WQ:d,MY:12,arg:!1,YR:q,LF:u,Z:e.U(V),ls:null,Wx:null,wb:null}; -T.N4.nH(B);return B};T.N4.nH=function(D,M){var s=D.wS,F=D.WQ,X=0,d=0,V=Date.now(),$=D.ls!=null&&e.R6.anI(D.LF.yA,D.ls.yA,D.ls.tQ,D.YR); -X=Date.now()-V;V=Date.now();if(!$&&!D.arg){D.ls=e.R6.oV(D.LF,s,F,D.YR,D.MY);if(!e.R6.anI(D.LF.yA,D.ls.yA,D.ls.tQ,D.YR)){D.arg=!0; -console.log("conflict")}D.Wx=e.R6.akp(D.KW,s,F,D.ls.yA,D.ls.tQ);D.wb=[D.Wx[0].slice(0),[]];d=Date.now()-V; -V=Date.now()}var V=Date.now();if(M){D.wb[0].set(D.Wx[0]);var w=D.Wx[1],q=D.wb[1];for(var u=0;u20)this.I6(D,r,M);D.J.h6=null;D.dm=!0;this.cL=null;D.J.Tn=[]}};T.uK.prototype.Sp=function(D,M,s,F){var X=this.cL,d=T.UT.A0(D,M,F),V=T.Qg.FE(X,d,s,!0); -X=V[0];d=V[1];return e.O.Df([X.x,X.y,d.x,d.y])};function i5(D,M,s,F,X,d,V,$){this.H3=null;this.SL=D?D.slice(0):null; -this.S6=4;this.e$=null;this._q=null;this.iv=null;this.Bh=-1;this.Qe=null;this.afc=!1;this.aoU=[];for(var K=0; -K<8;K++)this.aoU.push(bo.a55(0,PIMG.rotate,-.5,-.5,-45-K*45));this.a1C=M;this.a2l=s;this.a0L=F;this.aaP=X; -this.aoI=d;this.wI=V;this.alM=$==null?1:$}i5.prototype.y9=function(){return this.Bh!=-1};i5.prototype.VK=function(){return this.SL.slice(0)}; -i5.prototype.XY=function(D){this.SL=D};i5.prototype.a90=function(){return this.WU(this.SL)};i5.prototype.acy=function(){return this.S6}; -i5.prototype.amC=function(D){this.S6=D};i5.prototype.Wd=function(D){if(D==null)D=this.SL;if(this.S6==9)return this.e$; -else return this.WU(D)[this.S6]};i5.prototype.agh=function(D){if(this.S6==9)this.e$=D.clone();else{var M=this.Wd(),s=new ex(1,0,0,1,D.x-M.x,D.y-M.y); -e.O.t(this.SL,s,this.SL)}};i5.prototype.rl=function(D,M,s){var F=this.rp(null,D,M),X;if(F==9)return"default"; -if(F==10){if(s)return null;return!this.a1C?"move":null}if(F==-1||F==4)return null;if(F==11){var d=this.Wd().AF(D); -X=90-Math.atan2(d.y,d.x)*180/Math.PI;var V=Math.round(8*(X/360));V=(V+8)%8;return this.aoU[V]}else{var $=this.Fc(D,this.SL); -X=[135,90,45,180,0,0,225,270,315][F];var w=e.X.ye(this.SL);X+=Math.atan2(-w[3],w[0])*180/Math.PI;var q="ew nesw ns nwse ew nesw ns nwse".split(" "),V=Math.round(8*(X/360)); -V=(V+8)%8;return q[V]+"-resize"}};i5.prototype.Fc=function(D,M){var s=e.X.Iy(e.X.ye(M)),F=new Float64Array(2); -e.X.nB(D.x,D.y,s,F);return new eo(F[0],F[1])};i5.prototype.Zl=function(D){var M=this.Fc(D,this.SL);return 0<=M.x&&M.x<=1&&0<=M.y&&M.y<=1}; -i5.prototype.Ed=function(D,M,s,F,X,d){this.afc=d;this.Qe=F;var V=D.a.$,$;if(this.SL==null)F=T.UT.A0(D,F,M); -this.iv=F.clone();if(this.SL==null){this.iv.offset(1,1);var w=X==null?1:1/X;this.SL=[F.x,F.y,F.x+1,F.y,F.x+1,F.y+w,F.x,F.y+w]; -$=8}else{$=this.rp(s,F,V);if(0<=$&&$<=8)this.iv=this.WU(this.SL)[$];if($==9){this.S6=9;this.e$=F.clone()}}this.H3=this.SL.slice(0); -this.Bh=$;this.dt(D,M);this._q=this.Wd();return $!=-1};i5.prototype.rp=function(D,M,s){var F=-1,X=this.WU(),d=6*U.F()/s; -if(F==-1)if(eo.cQ(this.Wd(),M)=1)f9=(r.x-I)/av;if(Math.abs(gY)>=1)gl=(r.y-J)/gY;if(X)f9=gl=(f9+gl)/2;var Y=new ex; -Y.translate(-I,-J);Y.scale(f9,gl);Y.translate(I,J);z=j.slice(0);e.O.t(z,Y,z)}else{if(this.dM()){r.x=Math.round(r.x); -r.y=Math.round(r.y)}var Q=[0,1,2,5,8,7,6,3],hF=Q[(Q.indexOf(q)+4)%8],hv=[];for(var K=0;K<3;K++)for(var a=0; -a<3;a++)hv.push(new eo(a/2,K/2));var b=this._q,bV=this.Fc(r,j),gu=this.Fc(w,j),dg=d&&(this.S6==4||this.S6==9)?this.Fc(b,j):hv[hF],bG=new ex,gS=new ex,f9=(bV.x-dg.x)/(gu.x-dg.x); -if(f9==0)f9=1e-4;var gl=(bV.y-dg.y)/(gu.y-dg.y);if(gl==0)gl=1e-4;if(this.aaP){f9=Math.max(f9,0);gl=Math.max(gl,0)}if(q==0||q==2||q==6||q==8){if(X||this.aoI)bG.scale(f9,f9); -else bG.scale(f9,gl)}if(q==1||q==3||q==5||q==7){var dc=this.aoI;if(q==1||q==7)bG.scale(dc?gl:1,gl);else bG.scale(f9,dc?f9:1); -if(this.a2l&&V){if(q==1||q==7)gS.Gt=(bV.x-dg.x)/(bV.y-dg.y);else gS.P=(bV.y-dg.y)/(bV.x-dg.x)}}var Y=new ex; -Y.translate(-dg.x,-dg.y);Y.concat(bG);Y.concat(gS);Y.translate(dg.x,dg.y);z=[0,0,1,0,1,1,0,1];e.O.t(z,Y,z); -var f=e.X.ye(j);e.X.t(f,z)}if(i5.yz(z))this.SL=z}this.dt(D,M);if(P)T.UT.vW(D,A,P)};i5.ak=function(D,M,s,F,X,d){var V=s-D,$=F-M,w=X-D,q=d-M,u=V*V+$*$,B=w*V+q*$,r=B/u,P=D+r*V,A=M+r*$,E=X-P,n=d-A; -return[P,A,Math.sqrt(E*E+n*n)]};i5.prototype.dM=function(){var D=this.SL;return Math.abs(D[1]-D[3])<1e-6&&Math.abs(D[2]-D[4])<1e-6||Math.abs(D[0]-D[2])<1e-6&&Math.abs(D[3]-D[5])<1e-6}; -i5.yz=function(D){return e.O.vB(D)||e.O.vB([D[6],D[7],D[4],D[5],D[2],D[3],D[0],D[1]])};i5.prototype.q_=function(D,M,s,F){this.Bh=-1; -this.Qe=null;D.J.TR=null;D.J.Tn=[];D.dm=!0};i5.prototype.sW=function(D,M,s){var F=s.J_();if(F.x||F.y){var X=new ex(1,0,0,1,F.x,F.y); -e.O.t(this.SL,X,this.SL);this.dt(D,M);return!0}return!1};i5.prototype.WU=function(D){if(D==null)D=this.SL; -var M=D[6]-D[0],s=D[7]-D[1],F=D[4]-D[2],X=D[5]-D[3],d=[D[0],D[1],D[2],D[3],D[0]+M/2,D[1]+s/2,D[2]+F/2,D[3]+X/2,D[6],D[7],D[4],D[5]],V=[]; -for(var K=0;K<3;K++){var $=K*4,w=d[$+0],q=d[$+1],u=d[$+2],B=d[$+3];V.push(new eo(w,q));V.push(new eo(w+(u-w)/2,q+(B-q)/2)); -V.push(new eo(u,B))}return V};i5.prototype.dt=function(D,M,s){if(s==null)s=!1;var F=this.WU(),X=F[0],d=F[2],V=F[6],$=F[8]; -D.J.h6={K:[],I:[]};D.J.h6.K.push("M","L","L","L","Z");D.J.h6.I.push(X.x,X.y,d.x,d.y,$.x,$.y,V.x,V.y); -var w=this.alM;if(w>1){var q=d.AF(X),u=V.AF(X),B=$.AF(d),r=$.AF(V);for(var K=1;KD.index;K--)this._9(s);if(D.index>s.Ah)for(var K=s.Ah; -K1)s.D.splice(C,1);s.D.sort(function(q,dr){return q-dr});n.k_.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelection"}}; -i=V}else if(F.B(hn.Mr)&&!w&&D.ZX>0){d=D.ZX==1?g.pL:D.ZX==2?g.Et:g.bu;escape=!0}else if((F.B(hn.Mr)||D.amT==1)&&s.D.length>0){var I=Math.min(V,s.D[0]),J=Math.max(V,s.D[s.D.length-1]); -s.D=[];for(var K=I;K<=J;K++)if(s.N[K].add.lsct!=aQ.RE)s.D.push(K);n.k_.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelectionContinuous"}}; -i=V}else{i=V;var o=s.N[V];if(o&&o.Pq()&&D.ac7)o.add.lsct=aQ.X4;else if(s.D.length==1&&s.D[0]==V&&D.ZX==o.eu){return}s.D=[V]; -s.zi()}if(i!=null&&i")ev++;this.track({FX:"delete",k_:{classID:"Dlt",null:iy.ko("Lyr",!0)}}); -var q=new iu([6,31],this);q.data={e:g.pl,s1:s.N.slice(0),ep:he,Ut:s.D.slice(0),xQ:[ev]};s.D0(q);this.i5(q.data,s)}if(d==g.Vn){if(!F.B(hn.Mr))return; -var q=new iu("Switch Layer Link",this);q.data={e:d,c:D.c};s.D0(q);this.i5(q.data,s)}if(d==g.Pu){var H=D.agg?D.agg:s.D,iO=0,j0=!1; -if(H.length==0)return;if(H.length==1&&s.N[H[0]].Rd==0){alert(dY.get([15,7,5]));return}var cR=[];for(var K=0; -K0){if(gf.add.lnk2==null)gf.add.lnk2=[]; -for(var K=0;K7;for(var d3=0;d3=0;K--)if(iC[K]>=he.length)iC.splice(K,1);var q=new iu([6,40],this);q.data={e:g.pl,s1:s.N.slice(0),ep:he,Ut:s.D.slice(0),xQ:iC}; -s.D0(q);this.i5(q.data,s)}if(d==g.R8){var aK=s.D.length;if(aK<2){alert("Select two or more layers."); -return}if(!s.wx())return;var Q=s.N[s.D[0]].clone(),he=[];for(var K=0;K2e6){alert("Blended areas are too large."); -return}for(var K=1;K1&&d1!=-1){console.log("separating an open path into a new layer");o=o.clone();ec=o.add.vmsk; -dB=ec.g;var r=dB[d1].length,a_=o.clone();a_.add.lyid=s.YQ();ec.g=dB.slice(0,2).concat(dB.slice(d1,d1+r+1)); -ec.D=[];o.M8(s);o.T();var bE=a_.add.vmsk.g;a_.add.vmsk.g=bE.slice(0,d1).concat(bE.slice(d1+r+1,bE.length)); -a_.add.vmsk.D=[];a_.M8(s);he[K]=o;he.splice(K+1,0,a_);for(var d3=0;d3K)a4[d3]++; -var g2=a4.indexOf(K);if(g2!=-1){a4.splice(g2+1,0,K+1)}}}}if(he.length!=s.N.length){var q=new iu("Splitting open paths",this); -q.data={e:g.pl,s1:s.N.slice(0),ep:he,Ut:s.D.slice(0),xQ:a4};s.D0(q);this.i5(q.data,s)}}if(d==g.Fq){this.t$({e:g.UR},M,s,F,X); -var aZ=s.D.slice(0),gm=s.N.slice(0),aT=s.$i();if(aT.length==0)return;s.xk(aT,!1,D.G3);var q=new iu([6,36,0],this); -q.data={e:g.pl,s1:gm,ep:s.N.slice(),Ut:aZ,xQ:s.D.slice(0)};s.D0(q);this.i5(q.data,s)}if(d==g.dN){var iJ=$.add.SoLd; -if(iJ==null)return;var cy=iJ.Idnt.v,gP=s.uQ(cy);gP.tn(!1);var fr=gP.wu[0],a3=gP.wu[1];if(e.J7(fr)){alert("The smart object contains transparency."); -return}var el=bo.GD("jpg").qc([[fr.buffer]],a3.d,a3.w,[90]);this.t$({e:g.YM,Ab:s,data:new Uint8Array(el),id:cy,G3:"jpg"},M,s,F,X); -console.log(s.add);return}if(d==g.YM){var eE=D.Ab.uQ(D.id),bl=eE.clone();bl.raw=D.data;if(D.m3)bl.m3=D.m3; -if(D.G3){bl.IY=" ";bl.Ij=" ";bl.m3=bl.m3+"."+D.G3}else{bl.IY="8BIM";bl.Ij="8BPB";bl.m3=bl.m3+".psd"}bl.tn(!1); -eE.tn(!1);var q=new iu([6,36,1],this);q.data={e:g.YM,id:D.id,LM:eE,VP:bl};D.Ab.D0(q);this.i5(q.data,D.Ab)}if(d==g.K5){var q=new iu([6,36,4],this); -q.data={e:d,c:V,NT:$.add.SoLd.Impr.v.classID,bx:D.bx};s.D0(q);this.i5(q.data,s)}if(d==g.tw){var hZ,aY; -if(D.VY){hZ=D.Ab;aY=D.VY}else{D.Ab.$p();D.Ab.dI();D.Ab.T();D.Ab.bc();D.Ab.tn();hZ=bo.GD("PSD").qc(D.Ab,0,0,[!0,!0]); -aY=D.Ab.name}if(!(hZ instanceof ArrayBuffer))throw"e";hZ=new Uint8Array(hZ);var C=D.ca!=null?D.ca:s.D[s.D.length-1]+1,fH=s.v4(hZ,aY,0,0,!0),he=s.N.slice(0); -he.splice(C,0,fH);var q=new iu([6,36,2],this);q.data={e:g.pl,s1:s.N.slice(),ep:he,Ut:s.D.slice(0),xQ:[he.indexOf(fH)]}; -s.D0(q);this.i5(q.data,s)}if(d==g.aU&&D.Si=="merge"){var bN=[],e5=s.root.children,ee=0;for(var K=0;K=2)bN=cb;if(bN.length<2){alert("At least two animation folders needed (whose layers start with \"_a_\").",3500); -return}var gM=[];for(var K=0;K1){var eq=parseInt(ez.pop());if(!isNaN(eq)&&eq!=0)gZ=eq}cq[0].push(o);cq[1].push(gZ);cq[2]+=gZ}}hC.sort(function(q,dr){return dr[2]-q[2]}); -var dp=hC[0],iD=dp[2];for(var gt=1;gt>>1;if(ay<17){var p=eb.length-1;if(K==0)eb[1]+=ay; -else if(K==eb.length-1)eb[p-1]+=ay;else{eb[K-1]+=dR;eb[K+1]+=ay-dR}eb.splice(K,1);K--}}var aj=[],cX=new hk(0,0,s.d,s.w); -for(var K=0;K.5}else if(D.target!=null){iL=D.target; -aa=!0;s.xW=!0}else{var eO=D.Si;aa=eO>1;if(eO==0){iL=s.N.length-1}if(eO==1){iL=bI[bI.length-1]+1;var r=s.L6(iL); -if(r.indexOf(fY)==-1)iL+=r.length-1}if(eO==2){iL=bI[0]-1;var r=s.L6(iL);if(r.indexOf(fY)==-1)iL-=r.length-1}if(eO==3){iL=0}if(iL<0||iL>s.N.length-1)return; -s.xW=!0}if(bI.indexOf(iL)!=-1&&!ck)return;var e7=s.N[iL],he=[];if(ck)he=s.N.slice(0);else for(var K=0; -K.8)dG-=s.L6(iL).length-1; -var ed=[],c6=ck?s.B9(f1?null:fY):null;for(var K=0;K0){var fT=q.data.k_={classID:"setd",null:iy.ko("contentLayer",!0),T:{t:"Objc",v:{}}},b1=["SoCo","GdFl","PtFl"][dd.Ij-1]; -aG.u$.DP(dd.UF,fT.T.v,dd.Ij-1);this.track({FX:"set",k_:fT})}}if(D.mR&&dd.Ij==3)s.Ra(dm.Ni(dd.UF.Ptrn.v,X.iM)); -if(!D.mR){var cv=dd.strokeStyleContent.v;if(cv.classID==aX.us.hB[2])s.Ra(dm.Ni(cv.Ptrn.v,X.iM))}this.i5(q.data,s)}}; -aG.u$.DP=function(D,M,s){var F=[aX.gk,aX.D_,aX.iE][s];if(M.classID==null)M.classID=["solidColorLayer","gradientLayer","patternLayer"][s]; -for(var K=0;K=0?M.N[_]:M.Hx[-1-_];$.add.vogk=JSON.parse(n[K+1]);e.nU.eh($.add.vogk,$.add.vmsk); -if(_>=0)$.M8(M)}M.T()}if(s==g.mK){F.add.artb=JSON.parse(D.a3r);M.T();T.I4.gY(M)}if(s==g.cC){M.Z=D.ZM; -M.lk=D.vA.slice(0);M.nz=D.J2.slice(0);M.dm=M.wc=!0}if(s==g.Vn){F.QH=!F.QH}if(s==g.Pu){var l=D.ahb;for(var K=0; -K=0?M.N[_]:M.Hx[-1-_];$.add.vogk=JSON.parse(n[K+1]);e.nU.eh($.add.vogk,$.add.vmsk); -if(_>=0)$.M8(M)}M.T()}if(s==g.mK){F.add.artb=JSON.parse(D.ss);M.T();T.I4.gY(M)}if(s==g.cC){M.Z=D.WT; -M.lk=D.dz.slice(0);M.nz=D.Mi.slice(0);M.dm=M.wc=!0}if(s==g.Vn){F.QH=!F.QH}if(s==g.Pu){var l=D.al8;for(var K=0; -K>A;if((E&1)==1)E--; -else E++;P.capturedInfo.v=(E<255)q=255-Math.round((V-255)*255/(V-X))}return[Math.max(X,0),Math.min(V,255),w,q,100]};aG.J0.prototype.t$=function(D,M,s,F,X){var d=D.e; -if(d=="auto"){var V=D.CY,$=aG.J0.getData(s);for(var K=0;K<$.length;K++){var w=$[K],q;if(V<3){}else{var u=fR.Cr("hue2"); -dA.Sq(u,0,[0,-100,0]);q=iA.IC("hue2",u)}iA.ea(q,w.AX,w.FP,w.S)}aG.J0.wK(s,$);aG.J0.fC(s,$,V<3?[4,16,V]:[19,7,0],this); -s.T()}if(d=="edit_layer")this.ak$(D,M,s,F);if(d=="edit"||d=="confirm"||d=="cancel")this.Ca(D,M,s,X,!0); -if(d=="start"){if(s.D.length==0)return;var B=s.N[s.D[0]];if(B.add.SoLd&&B.eu<=0){var r=new W(U.E.u,!0); -r.G=T.ex;r.data={e:"start",Z5:D.tg,ok:D.ok};M.n(r);return}if(!s.wx(M,null,!0))return;if(x[D.tg]&&D.ok==null){if(s.D.length!=1)alert("Will be applied to "+s.D.length+" layers."); -var r=new W(U.E.Q,!0);r.data={e:U.V.Aq,VM:"afw_"+D.tg};M.n(r)}else{this.Ca({e:"edit",ok:D.ok,Z5:D.tg},M,s,X); -this.Ca({e:"confirm",Z5:D.tg},M,s,X)}}};aG.J0.prototype.ak$=function(D,M,s,F){var X=D.e,d=s.D[0],V=s.N[d],$=iA.get(V.add),w=JSON.parse(JSON.stringify(D.H)),B; -for(var q in iA.vT)if(iA.vT[q]==$)w.classID=q;var u=s.history[s.Ah];if(u&&u.G==this&&u.data.NT!=null&&u.data.c==d)B=u; -else{var r=new W(U.E.qZ,!0),P={classID:"setd",null:iy.ko("AdjL",!0),T:{t:"Objc",v:w}};r.data={BT:!0,FX:"set",k_:P}; -M.n(r);var B=new iu([6,39],this);B.data={c:d,NT:V.add[$],bx:D.H,iS:P};s.D0(B)}B.data.bx=D.H;B.data.iS.T.v=w; -this.i5(B.data,s)};aG.J0.getData=function(D,M,s){var F=[],X=new hk(0,0,D.d,D.w),d=D.nz.length!=0?[-1-D.nz[0]]:D.D; -for(var K=0;K>>2,V=e.ZY(s),$=.001*X; -if(F==0||F==2)d=[[0,255,0,255,100],aG.J0.kG(V[1],$,X,F==2),aG.J0.kG(V[2],$,X,F==2),aG.J0.kG(V[3],$,X,F==2)]; -if(F==1)d=[aG.J0.kG(V[0],$*.33,X,!1),[0,255,0,255,100],[0,255,0,255,100],[0,255,0,255,100]];var w=fR.Cr("levl"); -for(var K=0;K<4;K++)f6.Sq(w,K,d[K]);return w};aG.J0.prototype.Ca=function(D,M,s,F){if(this.HJ==null){if(D.Z5=="aply")s.N[s.D[0]].extend(new hk(0,0,s.d,s.w)); -this.HJ=aG.J0.getData(s,null,D.Z5=="fade"?s.yd().data:null);if(D.Z5=="aply")this.HJ[0].to=s.tn()}if(D.e=="edit"){this.MT=[D.Z5,D.ok]; -var X=this.HJ[0],d=aG.J0.apW(D.Z5,D.ok,X.AX),V=iA.IC(D.Z5,d);if(D.Z5=="fade"||D.Z5=="aply")V=D.ok;if(V!=null){for(var K=0; -K>>16,q:D>>>8&255,P:D&255}}; -aG.bz.prototype.aob=function(D,M,s,F){if(this.HJ==null){var X=fR.ZK(D.Z5,D.ok);this.HJ=aG.J0.getData(s,X.x!=0||X.y!=0)}if(D.e=="edit"){var d=JSON.stringify(D.ok); -if((D.ok==null||d!=this.Yb)&&D.YA!=!0)for(var K=0;K1)w=1+Math.tan(Math.PI/2*d/101);var q=(1-w)/2,u=e.UY.zJ($,$,$),B=[w,0,0,q,0,w,0,q,0,0,w,q,0,0,0,1],r=e.UY.multiply(u,B),P=new e.B0(256); -for(var K=0;K<256;K++)P.i[K]=K;e.UY.transform(P,P,r);F={type:s.ec,ay:P.i,AN:P.i,cZ:P.i,Z4:!1,bY:!1}}else{var A=1024,E=-30+60*(d+100)/200,n=[]; -for(var K=0;K<4;K++)n.push(e.b3.gI(K/3*255,K/3*255,!0));n[1].v.Hrzn.v=64;n[1].v.Vrtc.v=64-E;n[2].v.Hrzn.v=128+64; -n[2].v.Vrtc.v=128+64+E;n.sort(function(dt,aj){return dt.v.Hrzn.v-aj.v.Hrzn.v});var _=e.b3.sf(n,A);function l(dt,A){var n=[],O=3; -for(var K=0;Kk&&S>1)S--;y[K]=S*p}b=y}var Z=new Uint8Array(A);for(var K=0; -K0){M=Math.max(hv/Math.E,M); -M=M*Math.exp(hv/1.75+Q/Math.PI);M=(1-gu)*M+gu*1}else{M=M*Math.exp(-hv*1.75+Q/Math.PI);M=M+-gu*1.14}M=Math.pow(M,1/bV); -M=Math.max(0,Math.min(1,M));Z[K]=Math.round(M*255)}F={type:s.ec,ay:Z,AN:Z,cZ:Z,Z4:!1,bY:!1}}if(D=="vibA"){F={type:s.Tp,Q1:[M.vibrance?M.vibrance.v:0,M.Strt?M.Strt.v:0]}}if(D=="hue2"){var dg=[],bG=[],gS=[],dc=M.Clrz?M.Clrz.v:!1; -for(var K=0;K<256;K++){dg[K]=K/255;bG[K]=0;gS[K]=0}var bj=dA.Gm(M,0),iJ=iA.Ii(bj[1]/100);if(dc){var hO=bj[0]/360; -for(var K=0;K<256;K++){dg[K]=hO;bG[K]=iJ}}else{for(var K=0;K<256;K++){var gz=dg[K],aO=bG[K];dg[K]+=bj[0]/360; -for(var S=0;S<6;S++){var eg=dA.Gm(M,S+1),iQ=eg.rG,d5=eg.ST,gu=0;for(var da=1;da<4;da++)if(d5[da]1)aZ--;if(aZ<0)aZ++;iC=iA.a4b(iC);iC=(1+iC)*.5; -cy=(1+cy)*.5;eA[K]=Math.round(255*aZ);is[K]=Math.round(255*iC);a4[K]=Math.round(255*cy)}var fT=bj[2]/100,bC=fT<0?-fT:fT,hU=fT<0?0:1; -F={type:s.hW,a2F:eA,SC:is,a4u:a4,a32:bC*hU,im:1-bC,ad8:bj[2]/100,ajf:dc?1:0}}if(D=="nvrt"){var Z=new Uint8Array(256); -for(var K=0;K<256;K++)Z[K]=255-K;F={type:s.ec,ay:Z,AN:Z,cZ:Z,Z4:!1,bY:!1}}if(D=="post"){var de=M.Lvls.v,Z=new Uint8Array(256),gu=de/255.001,f2=255/(de-1); -for(var K=0;K<256;K++)Z[K]=Math.floor(K*gu)*f2;F={type:s.ec,ay:Z,AN:Z,cZ:Z,Z4:!1,bY:!1}}if(D=="grdm"){var bm=M.Grad.v,hA=M.Rvrs,i8=e.h.Z8(bm.Clrs.v,0,0),A=1024,aV=e.h.h_(bm,i8,A,hA?hA.v:!1),he=e.U(A),ev=e.U(A),iO=e.U(A); -e.FK(aV,he,0);e.FK(aV,ev,1);e.FK(aV,iO,2);F={type:s.ec,ay:he,AN:ev,cZ:iO,Z4:!0,bY:!1}}if(D=="selc"){var cR=new Float32Array(9*3*2),c4=M.lY,j0=M.Mthd?M.Mthd.v.CrcM=="Absl":!1; -for(var S=0;S<9;S++){var cG=S*6,h6=g9.Gm(M,S),hq=h6[0]/100,gG=h6[1]/100,iB=h6[2]/100,bl=h6[3]/100;if(j0){cR[cG]=cR[cG+1]=cR[cG+2]=1; -cR[cG+3]=hq*(1+bl)+bl;cR[cG+4]=gG*(1+bl)+bl;cR[cG+5]=iB*(1+bl)+bl}else{cR[cG+0]=(1+hq)*(1+bl);cR[cG+1]=(1+gG)*(1+bl); -cR[cG+2]=(1+iB)*(1+bl)}}F={type:s.zD,a8u:cR}}if(D=="blwh"){var eh="Rd Yllw Grn Cyn Bl Mgnt".split(" "),F=[],c8=0,hw=0; -for(var K=0;K<6;K++)F.push(M[eh[K]].v);F.push(M.useTint.v,M.tintColor.v);var gy=[];for(var K=0;K<6;K++)gy.push((F[K]-50)/50); -var hy=e.h.KO(F[7]);hy.i/=255;hy.q/=255;hy.P/=255;var fy=e.DK(hy.i,hy.q,hy.P),cy=e.FA(e.kq(fy.WQ,1,.5)),gf=fy.pI*fy.ok; -if(cy==.5)c8=hw=.5;else{c8=gf*(.5-cy)/(.5/cy-1);hw=1-gf*(.5-cy)-1/(2*(1-cy));hw/=1-1/(2*(1-cy))}F={type:s.n5,am6:gy,vl:F[6]?1:0,ajv:fy.WQ,FA:cy,af0:gf,XR:c8,a3L:hw}}if(D=="blnc"){console.log(M); -var j=[],eE=["ShdL","MdtL","HghL"];for(var K=0;K<3;K++){if(M[eE[K]]==null){j[K]=[0,0,0];continue}var de=M[eE[K]].v,ei=de[0].v/100,ff=de[1].v/100,eP=de[2].v/100,fo=M.PrsL==null||M.PrsL.v?(Math.min(ei,ff,eP)+Math.max(ei,ff,eP))/2:0; -j[K]=[ei-fo,ff-fo,eP-fo]}var N=[e.U(256),e.U(256),e.U(256)];for(var S=0;S<3;S++)for(var K=0;K<256;K++){var k=K*(1/255),ic=0,E=0,hV=0; -E=j[2][S];hV=Math.abs(E);if(E<0)ic=Math.pow(k,Math.SQRT2);else ic=1.63*(Math.pow(k+.04,.5)-.2);k=hV*ic+(1-hV)*k; -E=j[1][S];hV=Math.abs(E);if(E<0)ic=Math.pow(k,2);else ic=Math.min(2.35*(Math.pow(k+.09,.5)-.3),Math.pow(k,1/2)); -k=hV*ic+(1-hV)*k;E=j[0][S];hV=Math.abs(E);if(E<0)ic=k<.4?0:Math.pow((k-.4)/.6,Math.SQRT2);else ic=Math.pow(k,Math.SQRT2/2); -k=hV*ic+(1-hV)*k;k=Math.max(0,Math.min(1,k));N[S][K]=Math.round(k*255)}F={type:s.ec,ay:N[0],AN:N[1],cZ:N[2],Z4:!1,bY:!1}}if(D=="phfl"){var aT=e.h.KO(M.Clr.v),cU=[aT.i/255,aT.q/255,aT.P/255],cr=M.Dnst.v/100,N=[e.U(256),e.U(256),e.U(256)]; -for(var S=0;S<3;S++)for(var K=0;K<256;K++){var k=K*(1/255),ac=k*cU[S];ac=Math.max(0,Math.min(1,ac)); -k=cr*ac+(1-cr)*k;N[S][K]=Math.round(k*255)}F={type:s.ec,ay:N[0],AN:N[1],cZ:N[2],Z4:!1,bY:M.PrsL.v}}if(D=="thrs"){var Z=e.U(256); -for(var K=M.Lvl.v;K<256;K++)Z[K]=255;F={type:s.ec,ay:Z,AN:Z,cZ:Z,Z4:!0,bY:!1}}if(D=="mixr"){var h3=iA.bO(M),r=[]; -for(var K=0;K300*300&&D.type!=X.ec&&D.type!=X.ET){F=F.clone();F.x=F.y=0;var V=v.ln(0,F.d,F.w);V.set(M); -v.Zg(V,F);V.Ts(F);iA.W_(D,V.G6,F);V.get(s);return}if(D.type==X.ET){var $=D.a9S,w=D.Bn;ICC.U.applyLUT($,w,M,s); -var q=M.length;for(var K=0;K>>8&255)*(1/255),E=(I>>>16&255)*(1/255),J=I>>>24,av=Math.min(F,A,E),gY=Math.max(F,A,E),f9=0,gl=0,Y=0; -f9=e.k$(F,A,E).WQ;var Q=~~(f9*255+.5),hF=D.a2F[Q]*(1/255),hv=D.SC[Q]*(1/255)*2-1,bV=D.a4u[Q]*(1/255)*2-1,_=-bV,gu=av; -if(0.5?gS/(2-(gY+av)):gS/(gY+av)}var dc=hv; -if(D.ajf==0){hv=C[Math.floor((1+hv)*127.5)];dc=Math.min(gl*(1+hv),1)}var p=e.kq(hF,dc,Y);F=p.i;A=p.q; -E=p.P;N[K]=J<<24|E*255<<16|A*255<<8|F*255}}if(D.type==X.mO){e.f8(M,s);var h=new Uint32Array(M.buffer),N=new Uint32Array(s.buffer),q=h.length,bj=D.MY,iJ=1/bj,hO={nM:D.y3[0],iD:D.y3[1],P:D.y3[2]},gz={nM:D.EJ[0],iD:D.EJ[1],P:D.EJ[2]}; -for(var K=0;K>>8&255,iQ=I>>>16&255,F=aO*(1/255),A=eg*(1/255),E=iQ*(1/255),J=I>>>24,d5=e.g$(aO,eg,iQ),da=e.p_(d5,hO,gz,bj,iJ); -if(da==0)continue;var n=e.k$(F,A,E),hF=2+n.WQ+D.shift[0];n.WQ=hF-~~hF;n.pI=Math.max(0,Math.min(1,n.pI+D.shift[1])); -n.O4=Math.max(0,Math.min(1,n.O4+D.shift[2]));var p=e.kq(n.WQ,n.pI,n.O4);F=(1-da)*F+da*p.i;A=(1-da)*A+da*p.q; -E=(1-da)*E+da*p.P;N[K]=J<<24|E*255<<16|A*255<<8|F*255}}if(D.type==X.Tp){var h=new Uint32Array(M.buffer),N=new Uint32Array(s.buffer),q=h.length,c5=D.Q1[0]/100,fs=D.Q1[1]/100; -for(var K=0;K>>8&255)*(1/255),E=(I>>>16&255)*(1/255),J=I>>>24,n=e.DK(F,A,E),f9=n.WQ,gl=n.pI,Y=n.ok,ds=0,gE=45/360,af=f916777215?t.agT(M):D.Fltr.v.classID};fR.MU=[{UF:"GEfc"},{UF:"LnCr"},{UF:"LqFy",TX:!0},{aD:"3D",ny:["lightFilterGradient"]},{aD:[24,2],ny:"Avrg,Blr ,BlrM,boxblur,GsnB,Bokh,MtnB,RdlB,surfaceBlur".split(",")},{aD:[24,4],ny:"Dspl,Pnch,Plr ,Rple,Shr ,Sphr,Twrl,Wave,ZgZg".split(",")},{aD:[24,6],ny:["AdNs","Dspc","DstS","Mdn "]},{aD:[24,8],ny:"ClrH,Crst,Frgm,Mztn,Msc ,Pntl".split(",")},{aD:[24,10],ny:["Clds","DfrC","Fbrs","LnsF"]},{aD:[24,12],ny:["Shrp","ShrE","ShrM","smartSharpen","UnsM"]},{aD:[24,14],ny:"Dfs ,Embs,FndE,oilPaint,Slrz,TrcC,Wnd ".split(",")},{aD:[24,16],ny:"HghP,Mxm ,Mnm ,Ofst,Rept,Ctoa".split(",")},{aD:"Fourier",ny:["dDFT","iDFT"]}]; -fR.Gq={LqFy:"LqFy",Avrg:"Avrg","Blr ":"blurEvent",BlrM:"blurMethod",boxblur:"boxblur",GsnB:"gaussianBlur",MtnB:"motionBlur",RdlB:"radialBlur",surfaceBlur:"surfaceBlur",lightFilterGradient:"lightFilterGradient",adaptCorrect:"adaptCorrect",Pnch:"pinch","Plr ":"polar",Rple:"ripple","Shr ":"shear",Sphr:"spherize",Twrl:"twirl",Wave:"wave",AdNs:"addNoise",DstS:"dustAndScratches","Mdn ":"median",ClrH:"colorHalftone",Crst:"",Frgm:"",Mztn:"mezzotint","Msc ":"mosaic",Pntl:"",Clds:"clouds",DfrC:"differenceClouds",LnsF:"LnsF",Shrp:"sharpen",ShrM:"sharpenMore",smartSharpen:"smartSharpen",UnsM:"unsharpMask",FndE:"findEdges",oilPaint:"oilPaint",HghP:"highPass","Mxm ":"maximum","Mnm ":"minimum",Ofst:"offset"}; -fR.hq={AddNoise:"AdNs",Average:"Avrg",Blur:"Blr ",BlurMore:"BlrM",Clouds:"Clds",DifferenceClouds:"DfrC",DustAndScratches:"DstS",GaussianBlur:"GsnB",HighPass:"HghP",Maximum:"Mxm ",Minimum:"Mnm ",MotionBlur:"MtnB",Offset:"Ofst",Pinch:"Pnch",PolarCoordinates:"Plr ",Ripple:"Rple",Sharpen:"Shrp",SharpenMore:"ShrM",Twirl:"Twrl",UnsharpMask:"UnsM"}; -fR.R={rigidTransform:T.Cb};fR.names={lightFilterGradient:"Normal Map",rigidTransform:[10,46],LnCr:[24,1,1,0],LqFy:[24,1,0,0],GEfc:[24,0],Avrg:[24,3,0],"Blr ":[24,3,1],BlrM:[24,3,2],boxblur:[24,3,3],GsnB:[24,3,4],Bokh:[24,3,5],MtnB:[24,3,6],RdlB:[24,3,7],surfaceBlur:[24,3,10],Dspl:[24,5,0],Pnch:[24,5,1],"Plr ":[24,5,2],Rple:[24,5,3],"Shr ":[24,5,4],Sphr:[24,5,5],Twrl:[24,1,0,1,3],Wave:[24,5,6],ZgZg:"ZigZag",AdNs:[24,7,0],Dspc:[24,7,1],DstS:[24,7,2],"Mdn ":[24,7,3],ClrH:[24,9,0],Crst:[24,9,1],Frgm:[24,9,3],Mztn:[24,9,4],"Msc ":[24,9,5],Pntl:[24,9,6],Clds:[24,11,0],DfrC:[24,11,1],Fbrs:"Fibers",LnsF:[24,11,2],Shrp:[24,13,0],ShrE:[24,13,1],ShrM:[24,13,2],smartSharpen:[24,13,3],UnsM:[24,13,4],"Dfs ":[24,15,0],Embs:[24,15,1],FndE:[24,15,3],oilPaint:[24,15,4],Slrz:"Solarize",TrcC:"Trace Contour","Wnd ":"Wind",HghP:[24,17,1],"Mxm ":[24,17,2],"Mnm ":[24,17,3],Ofst:[24,17,4],Rept:[24,17,5],Ctoa:"Color to Alpha",dDFT:"Fourier Transform",iDFT:"Inverse Fourier Transform",adaptCorrect:["VAR0/VAR1",[19,6,0],[19,6,2]]}; -fR.Cr=function(D){var M=null;if(D=="GEfc")M={__name:"Filter Gallery",classID:"GEfc",GEfs:{t:"VlLs",v:[{t:"Objc",v:bT.Cr("GlwE")}]}}; -if(D=="LqFy"){var s={wS:5,WQ:5,map:new Float32Array(5*5*2)},F=new Uint8Array(a$.Ol(s)),X=[];for(var K=0; -KM.x)M.x=d.x;if(d.y>M.y)M.y=d.y}return M};fR.ZK=function(D,M){var s=0,F=0; -if(["GsnB","boxblur","smartSharpen","UnsM","HghP"].indexOf(D)!=-1){var X=M.Rds.v.val;s=F=X*2.57}if(D=="MtnB")s=F=M.Dstn.v.val; -if("Ofst,Rept,LqFy,Dspl,Pnch,Rple,Shr ,Sphr,Twrl,ZgZg,Wave,RdlB,Clds,DfrC,Plr ,LnCr,Wnd ,lightFilterGradient,rigidTransform,Frgm".split(",").indexOf(D)!=-1){s=F=1e4}if(D=="GEfc")return bT.ZK(M); -return new eo(Math.ceil(s),Math.ceil(F))};fR.dj=function(){return{t:"Objc",v:{classID:"filterFXStyle",enab:{t:"bool",v:!0},validAtPosition:{t:"bool",v:!0},filterMaskEnable:{t:"bool",v:!0},filterMaskLinked:{t:"bool",v:!0},filterMaskExtendWithWhite:{t:"bool",v:!0},filterFXList:{t:"VlLs",v:[]}}}}; -fR.Yx=function(D,M){var s={i:M.Yr>>16,q:M.Yr>>8&255,P:M.Yr&255},F={i:M.hE>>16,q:M.hE>>8&255,P:M.hE&255},X=fR.names[D]; -if(X==null)X=iA.names[D];var d=D;for(var V in iA.SK)if(iA.SK[V]==D)d=V;var $={t:"Objc",v:{classID:"filterFX",Nm:{t:"TEXT",v:dY.get(X)},blendOptions:{t:"Objc",v:{classID:"blendOptions",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Md:{t:"enum",v:{BlnM:"Nrml"}}}},enab:{t:"bool",v:!0},hasoptions:{t:"bool",v:!0},FrgC:{t:"Objc",v:e.h.zQ(s)},BckC:{t:"Objc",v:e.h.zQ(F)},filterID:{t:"long",v:d.length==4?t.a5G(d):777}}},w=fR.Cr(D); -if(w)$.v.Fltr={t:"Objc",v:w};return $};fR.Ue=function(D,M,s,F){e.W5(s);if(D<1){var X=Math.round(D*5),d=[1,2,1,2,[40,26,13,6,4,2][X],2,1,2,1]; -d=e.M6.jX(d);var V=s.slice(0);e.M6.pY(V,s,F.d,F.w,d,255)}else M(s,F,D);e.Q5(s)};fR.a9F=function(D,M,s,F){for(var K=0; -K>>1,d=16384,V=128,w=100;while(V>>1,d=16384,V=128;while(V>>1:0;if(D=="GEfc"){var w=[];if(s.GEfs){var q=s.GEfs.v; -for(var K=0;K=G&&cX=G)o[hE]=0}function N(dH,hE){var f8=H[dH],cX=H[hE]; -if(f8>G&&cX<=G)o[hE]=0;if(f8<=G&&cX>G)o[dH]=0}if(L)for(var C=1;CgS)bG[K]=255-bG[K]; -if(bG[K+1]>gS)bG[K+1]=255-bG[K+1];if(bG[K+2]>gS)bG[K+2]=255-bG[K+2]}}if(D=="Wnd "){var r=M.rect,P=r.d,A=r.w,dc=["Wnd","Blst","Stgr"],bj=s.WndM.v.WndM; -e.j.VM(M.buffer,P,A,d.buffer,[dc.indexOf(bj),s.Drct.v.Drct!="Left"])}if(D=="Bokh"){var r=M.rect,P=r.d,A=r.w,E=P*A,n=E*4,iJ=M.buffer.slice(0),hO=s.BkDi.v.BtDi,gz=s.BkDc,aO=s.BkDp.v/255; -if(hO=="BeIn")aO=0;var eg=57*(.3+.7*((P+A)/2)/1750)*(s.BkIb.v/100)*(1+.2*Math.pow(aO,.1)),O=parseInt(s.BkIs.v.BtIs.slice(3)),iQ=-s.BkIr.v*Math.PI/180,d5=[]; -for(var K=0;K<8;K++){var da=iQ+K*(Math.PI*2/O),c5=iQ+(K+1)*(Math.PI*2/O),fs=Math.cos(da),ds=Math.sin(da),gE=Math.cos(c5),af=Math.sin(c5),cq=[0,0,0]; -e.B7.Zt([[fs,ds,1,0],[gE,af,1,0],[1,1,1,1]],cq);if(cq[2]>0){cq[0]*=-1;cq[1]*=-1;cq[2]*=-1}d5.push(cq[0],cq[1],cq[2],0)}if(hO=="BeIn"){e.BK(iJ,0,16777215); -aO=1}else if(hO=="BeIt"&&gz.v.BtDc=="BeCt"){}else{var hr;if(hO=="BeIt"&&gz.v.BtDc=="BeCm")hr=V[1];else if(hO=="BeIa")hr=V[2][gz.v]; -if(hr==null){e.BK(iJ,0,16777215)}else{var eA;if(hr.rect.L0(r))eA=hr.channel;else eA=hr.Jf(r);e.Te(eA,iJ,3)}}if(v.s2){var is=iJ,a4=P,aZ=A,iC=1,cy=(s.BkSb.v==0||s.BkSt.v==255)&&hO=="BeIn"; -if(!cy){var fT=0;for(var K=0;K2e3){alert("too large radius");return}}while(cy&&3*(eg/iC)*(eg/iC)*P*A>500*2e3*2e3){var hU=e.S7(iJ,new hk(0,0,a4,aZ)); -iJ=hU.dP;a4=hU.rect.d;aZ=hU.rect.w;iC*=2}var de=Date.now(),f2=v.ln(0,a4,aZ);f2.set(iJ);var bm=v.ln(1,P,A); -v.Zg(bm);v.filter.W_({type:v.filter.NM,Xj:new Float32Array([1/a4,1/aZ]),acj:aO,a2$:eg/iC,ahJ:new Float32Array([s.BkSb.v/100,s.BkSt.v/255]),ao8:new Float32Array([s.BkNa.v/100,s.BkNt.v.BtNt=="BeNu"?0:1,s.BkNm.v?1:0]),abV:new Float32Array(d5.slice(0,16)),a6L:new Float32Array(d5.slice(16))},f2.Np); -bm.get(d.buffer);var hA=d.buffer;for(var K=0;K>>2,eh=h6.indexArray.v.length>>>2,gy=new Float32Array(i8(h6.originalVertexArray.v)); -for(var K=0;K>>1;j0+=~~(eh/3)}var ei=M.rect,P=ei.d,A=ei.w;e.ql.bT(f2,P,A,d.buffer,P,A,he,ev,cR,iO); -e.Q5(d.buffer)}if(D=="lightFilterGradient"){function ff(gm){var f8=1/Math.sqrt(gm[0]*gm[0]+gm[1]*gm[1]+gm[2]*gm[2]); -gm[0]*=f8;gm[1]*=f8;gm[2]*=f8}var P=M.rect.d,A=M.rect.w,E=P*A,de=Date.now(),eP=e.U(E),cX=.3,dt=.7;e.Xt(d.buffer,eP); -var fo=e.U(E);e.Qn.nC(eP,fo,d.rect,16);var ic=e.U(E);e.Qn.nC(eP,ic,d.rect,8);var hV=eP,aT=new Float32Array(E),cU=s.Dtl.v,cr=cU[2].v,ac=cU[1].v,h3=cU[0].v,cm=s.Scl.v*40*s.textureScale.v/(cr+ac+h3); -cr*=cm;ac*=cm;h3*=cm;for(var K=0;K>1;O|=O>>2;O|=O>>4;O|=O>>8;O|=O>>16;return O+1}var P=M.rect.d,A=M.rect.w,dr=a3(Math.max(P,A)),dW=dr>>>1,ec=new hk(0,0,dr,dr),dB=new hk(0,0,P,A); -dB.y=dr-A>>>1;var cM=P>>>1,d1=new hk(0,dB.y,cM,A),a_=new e.B0(P*A);e.$r(M.buffer,a_);var bE=new Float64Array(dr*dr),g2=new Float64Array(dr*dr),eA=e.U(dr*dr); -FFT.init(dr);var gP=[a_.i,a_.q,a_.P];for(var K=0;K<3;K++){var fr=gP[K];eA.fill(0);if(D=="dDFT"){e.b7(fr,dB,eA,ec); -fR.a9F(eA,dr,bE,g2);e.b7(eA,ec,fr,dB,d1);d1.x+=cM;ec.x-=dW-cM;e.b7(eA,ec,fr,dB,d1);d1.x-=cM;ec.x+=dW-cM}else{e.b7(fr,dB,eA,ec,d1); -d1.x+=dW;dB.x+=dW-cM;e.b7(fr,dB,eA,ec,d1);d1.x-=dW;dB.x-=dW-cM;fR.alG(eA,dr,bE,g2);e.b7(eA,ec,fr,dB)}}e.s8(a_,d.buffer)}if(D=="Avrg"){var el=0,hZ=0,aY=0,fH=0,bN=1; -for(var K=0;K0)ez=Math.max(0,ez-gM);else ez=Math.min(0,ez+gM);d.buffer[K]=Math.max(0,Math.min(255,b9+ez))}}if(D=="HghP")for(var K=0; -Kbz?0:255}}}e.s8(a_,d.buffer)}if(D=="Msc "){var ca=s.ClSz.v.val,P=M.rect.d,A=M.rect.w,hB=Math.ceil(P/ca),h9=Math.ceil(A/ca),aM=e.U(hB*h9*4); -e.scale.eA(M.buffer,P,A,aM,hB,h9,1/ca);e.scale.eA(aM,hB,h9,d.buffer,P,A,ca)}if(D=="Clds"||D=="DfrC"){var P=d.rect.d,A=d.rect.w,E=P*A,io=e.U(E); -if(D=="Clds")e.BK(d.buffer,4278190080);var hM=e.U(256*4);for(var K=0;K<256;K++){var J=K<<2,co=K/255,fy=1-co; -hM[J]=Math.round(co*F.i+fy*X.i);hM[J+1]=Math.round(co*F.q+fy*X.q);hM[J+2]=Math.round(co*F.P+fy*X.P)}e.j.a3j(M.buffer,P,A,io); -var bJ=d.buffer;for(var K=0;K1,P=M.rect.d,A=M.rect.w,eD=e.M6.i2[bY],fx=M.buffer.slice(0); -if(!hz)e.W5(fx);e.M6.pY(fx,d.buffer,P,A,eD,255,!1,hz);if(!hz)e.Q5(d.buffer)}if(D=="MtnB"){var d_=-s.Angl.v*Math.PI/180,bx=s.Dstn.v.val/2,de=Date.now(),P=M.rect.d,A=M.rect.w,r=M.rect.clone(); -r.x=r.y=0;if(v.s2){var de=Date.now(),gv=d.buffer;gv.set(M.buffer);e.W5(gv);var gn=v.ln(0,P,A);gn.set(gv); -var H=e.U(4);H[0]=Math.round(128+127*Math.cos(d_));H[1]=Math.round(128+127*Math.sin(d_));new Uint32Array(gv.buffer).fill(new Uint32Array(H.buffer)[0]); -var h2=v.ln(1,P,A);h2.set(gv);v.Zg(gn,r);gn.Ts(r);v.filter.W_({type:v.filter.VL,EY:h2.Np,Xj:new Float32Array([1/P,1/A]),am0:bx/2,alU:1},gn.G6); -gn.get(gv);e.Q5(gv)}else{var gc=new ex;gc.rotate(d_);var hF=T.m.hT([M.buffer,M.rect],gc,!1,null,!0); -fR.Ue(bx,e.Qn.I8,hF.buffer,hF.rect);gc.Iy();hF=T.m.hT([hF.buffer,hF.rect],gc,!1,d.buffer.buffer,!0,d.rect)}console.log(Date.now()-de)}if(D=="RdlB"){var P=M.rect.d,A=M.rect.w,f9=s.Amnt.v,b1=s.BlrM.v.BlrM=="Zm",b6=s.Cntr.v,g6=b6.Hrzn.v,bt=b6.Vrtc.v,gl=Math.max(g6,1-g6)*P,Y=Math.max(bt,1-bt)*A,dN=Math.sqrt(gl*gl+Y*Y),az=2*Math.PI*dN*1.5,gU=Math.round(az),b2=Math.round(dN),d1=new hk(0,0,gU,b2),hL=e.U(gU*b2*4),g$=b1?4:1,by=b1?.6:8*((P+A)/2)/1400,aE=.1,iC=1,fY=1; -e.X.ld(M.buffer,P,A,hL,gU,b2,g6,bt,g$,aE,iC,fY);var iL=b1?e.U(gU*b2*4):null;if(b1){e.X.I0(hL,iL,gU,b2); -var aa=iL;iL=hL;hL=aa;d1.d=b2;d1.w=gU}fR.Ue(by*f9,e.Qn.I8,hL,d1);if(b1){e.X.I0(hL,iL,b2,gU);var aa=iL; -iL=hL;hL=aa;d1.d=gU;d1.w=b2}e.X.Gc(hL,gU,b2,d.buffer,P,A,g6,bt,g$,aE,iC,fY)}if(D=="Plr "){var P=M.rect.d,A=M.rect.w; -if(s.Cnvr.v.Cnvr=="RctP")e.X.Gc(M.buffer,P,A,d.buffer,P,A,.5,.5,1,0,2,P/A);else e.X.ld(M.buffer,P,A,d.buffer,P,A,.5,.5,1,0,2,P/A)}if(D=="FndE"){var P=M.rect.d,A=M.rect.w; -e.M6.Uz(M.buffer,d.buffer,P,A)}if(D=="oilPaint"){var av=s.LghD.v*Math.PI/180,f1=[Math.cos(av),Math.sin(av),.001],a=[s.stylization.v,s.cleanliness.v,s.brushScale.v,s.microBrush.v,s.lightingOn.v,s.specularity.v,f1],r=M.rect.clone(); -r.x=r.y=0;e.UX.filter(M.buffer,r,d.buffer,a)}if(D=="Ofst"){var P=M.rect.d,A=M.rect.w,bI=new Uint32Array(M.buffer.buffer),eO=new Uint32Array(d.buffer.buffer),dR=s.Hrzn.v,gd=s.Vrtc.v,e7=s.Fl.v.FlMd; -e.BK(eO,0);if(e7=="Bckg"||e7=="Rpt"){var d1=M.rect.clone();d1.offset(dR,gd);e.eJ(bI,d1,eO,d.rect)}if(e7=="Rpt"){var fs,ds,gE,af,dG; -dR=Math.max(-P,Math.min(P,dR));gd=Math.max(-A,Math.min(A,gd));fs=dR>0?dR:0;gE=dR>0?P:P+dR;ds=gd>0?0:gd+A; -af=gd>0?gd:A;dG=gd>0?0:P*(A-1);for(var C=ds;C0?0:P+dR; -gE=dR>0?dR:P;ds=gd>0?gd:0;af=gd>0?A:A+gd;dG=dR>0?0:P-1;for(var C=ds;C=0&&gd>=0){fs=0;gE=dR;ds=0;af=gd;dG=0}if(dR>=0&&gd<0){fs=0;gE=dR;ds=A+gd;af=A;dG=P*(A-1)}if(dR<0&&gd>=0){fs=P+dR; -gE=P;ds=0;af=gd;dG=P-1}if(dR<0&&gd<0){fs=P+dR;gE=P;ds=A+gd;af=A;dG=P*A-1}for(var C=ds;C0?hx/ei:ei/hx,fY=g6+cs*fB*gl,e2=bt+cs*fB*Y,K=C*er.wS+I<<1; -er.map[K]=fY-I;er.map[K+1]=e2-C}}}else if(D=="Dspl"&&cv.length!=0){a6=s.UndA.v.UndA=="WrpA"?2:1;var gF=s.DspF.v.pth,fu; -for(var K=0;K>>1:0;function r(c5){return c5.i<<24|c5.q<<16|c5.P<<8|255}if(D=="ClrP")e.j.a4S(M.buffer,w,q,d.buffer,[s.Pncl.v,s.StrP.v,s.PprB.v]); -if(D=="DryB")e.j.a8G(M.buffer,w,q,d.buffer,[s.BrsS.v,s.BrsD.v,s.Txtr.v]);if(D=="FlmG")e.j.aqR(M.buffer,w,q,d.buffer,[s.Grn.v,s.HghA.v,s.Intn.v,B]); -if(D=="Frsc")e.j.a3h(M.buffer,w,q,d.buffer,[s.BrsS.v,s.BrsD.v,s.Txtr.v]);if(D=="NGlw")e.j.a1A(M.buffer,w,q,d.buffer,[s.Sz.v,s.Brgh.v,r(e.h.KO(s.Clr.v)),r(F),r(X)]); -if(D=="PltK")e.j.aow(M.buffer,w,q,d.buffer,[s.StrS.v,s.StDt.v,s.Sftn.v]);if(D=="PstE")e.j.a1H(M.buffer,w,q,d.buffer,[s.EdgT.v,s.EdgI.v,s.Pstr.v]); -if(D=="RghP")e.j.a0C(M.buffer,w,q,d.buffer,[s.StrL.v,s.StDt.v,bT.Pi.indexOf(s.TxtT.v.TxtT),s.Scln.v,s.Rlf.v,bT.af.indexOf(s.LghD.v.LghD),s.InvT.v]); -if(D=="SmdS")e.j.a3s(M.buffer,w,q,d.buffer,[s.StrL.v,s.HghA.v,s.Intn.v,s.FlRs.v,B]);if(D=="Spng")e.j.a9A(M.buffer,w,q,d.buffer,[s.BrsS.v,s.Dfnt.v,s.Smth.v,s.FlRs.v,B]); -if(D=="Undr")e.j.a3_(M.buffer,w,q,d.buffer,[s.BrsS.v,s.TxtC.v,bT.Pi.indexOf(s.TxtT.v.TxtT),s.Scln.v,s.Rlf.v,bT.af.indexOf(s.LghD.v.LghD),s.InvT.v]); -if(D=="Wtrc")e.j.a8K(M.buffer,w,q,d.buffer,[s.BrsD.v,s.ShdI.v,s.Txtr.v]);if(D=="AccE")e.j.aeG(M.buffer,w,q,d.buffer,[s.EdgW.v,s.EdgB.v,s.Smth.v]); -if(D=="AngS")e.j.a7I(M.buffer,w,q,d.buffer,[s.DrcB.v,s.StrL.v,s.Shrp.v]);if(D=="Crsh")e.j.aq8(M.buffer,w,q,d.buffer,[s.StrL.v,s.Shrp.v,s.Strg.v]); -if(D=="DrkS")e.j.aj5(M.buffer,w,q,d.buffer,[s.Blnc.v,s.BlcI.v,s.WhtI.v]);if(D=="InkO")e.j.a5B(M.buffer,w,q,d.buffer,[s.StrL.v,s.DrkI.v,s.LghI.v]); -if(D=="Smie")e.j.anG(M.buffer,w,q,d.buffer,[s.StrW.v,s.StrP.v,s.Cntr.v]);if(D=="DfsG")e.j.a8R(M.buffer,w,q,d.buffer,[s.Grns.v,s.GlwA.v,s.ClrA.v,r(X),B]); -if(D=="CntC")e.j.adQ(M.buffer,w,q,d.buffer,[s.FrgL.v,s.BckL.v,bT.Pi.indexOf(s.TxtT.v.TxtT),s.Scln.v,s.Rlf.v,bT.af.indexOf(s.LghD.v.LghD),s.InvT.v,r(X),r(F)]); -if(D=="ChlC")e.j.a0E(M.buffer,w,q,d.buffer,[s.ChrA.v,s.ChlA.v,s.StrP.v,B,r(X),r(F)]);var P=D=="GraP"||D=="Chrc"||D=="Plst"||D=="Rtcl"||D=="Stmp"||D=="TrnE"; -if(P){var A=e.U(w*q);if(D=="GraP")e.j.a33(M.buffer,w,q,d.buffer,[s.StrL.v,s.LgDr.v,bT.Os.indexOf(s.SDir.v.StrD),B]); -if(D=="Chrc")e.j.ahO(M.buffer,w,q,d.buffer,[s.ChAm.v,s.Dtl.v,s.LgDr.v]);if(D=="Plst")e.j.a6e(M.buffer,w,q,d.buffer,[s.ImgB.v,bT.rT.indexOf(s.LghP.v.LghP),s.Smth.v]); -if(D=="Rtcl")e.j.aaG(M.buffer,w,q,d.buffer,[s.Dnst.v,s.BlcL.v,s.WhtL.v,B]);if(D=="Stmp")e.j.a9w(M.buffer,w,q,d.buffer,[s.LgDr.v,s.Smth.v]); -if(D=="TrnE")e.j.a1y(M.buffer,w,q,d.buffer,[s.ImgB.v,s.Smth.v,s.Cntr.v,B]);e.FK(d.buffer,A,0);bT.ZN(A,d.buffer,F,X)}if(D=="NtPr")e.j.aer(M.buffer,w,q,d.buffer,[s.ImgB.v,s.Grns.v,s.Rlf.v,r(F),r(X),B]); -if(D=="WtrP")e.j.a4a(M.buffer,w,q,d.buffer,[s.FbrL.v,s.Brgh.v,s.Cntr.v,B>>>1]);if(D=="Crql")e.j.ari(M.buffer,w,q,d.buffer,[s.CrcS.v,s.CrcD.v,s.CrcB.v,B]); -if(D=="Grn")e.j.a9f(M.buffer,w,q,d.buffer,[s.Intn.v,bT.wr.indexOf(s.Grnt.v.Grnt),s.Cntr.v,r(F),r(X),B]); -if(D=="MscT")e.j.a41(M.buffer,w,q,d.buffer,[s.TlSz.v,s.GrtW.v,s.LghG.v,B]);if(D=="Ptch")e.j.alW(M.buffer,w,q,d.buffer,[s.SqrS.v,s.Rlf.v,B]); -if(D=="Phtc"){function E(af,cq,$,eh){e.Qn.XZ(af,cq,$,eh);for(var K=0;K>>1,c=o==0?2:1;bT.ef(p.map,L,w,q,c);bT.U2(L,p.map,w,q,c); -if(o!=0){var f=bT.Os.indexOf(s.SDir.v.StrD),i=[1,1,1,0][f],h=[-1,0,1,1][f],N=2*o+1,C=1/N;for(var a=0; -a1)bT.Ue(gu,dg,bG,$,hF-1);if(D=="PlsW"){var aO=new Uint8Array(gu.buffer);for(var K=0;K>>1,gE=q>>>1; -for(var K=0;K>>1,gy,[]);e.M6.Uz(c8,d.buffer,w,q);e.f8(d.buffer,c8); -e.Iy(c8);e.BK(c8,4278190080,16777215);e.pt.O3(c8,d.buffer,w,q,s.EdgW.v>>>1,e.pt.Dy,[]);var hw=s.EdgB.v/10; -for(var K=0;K>>1))*cr;ac[m]=hA*hA;I[m]=Math.cos(hA);var i=m<<1;h3[i]=Math.sin(i*(1/4.5)); -h3[i+1]=Math.sin((i+1)*(1/4.5))}for(var a=0;a>>1))*cr,J=Math.cos(bm),hC=bm*bm;for(var m=0; -m46)e.round(hV); -bT.ZN(hV,d.buffer,F,X)}for(var K=0;K=s?s-1:P,E=(w*s+A)*2,n=d[K];B+=n*D[E];r+=n*D[E+1]}M[u]=B; -M[u+1]=r}};bT.U2=function(D,M,s,F,X){var d=bT.zZ(X),V=6,$=13;for(var w=0;w=F?F-1:P,E=(A*s+q)*2,n=d[K];B+=n*D[E];r+=n*D[E+1]}M[u]=B; -M[u+1]=r}};function eF(){}eF.$k=[2,5,5,7,4,4];eF.HU="norm,diss,dark,mul ,idiv,lbrn,dkCl,lite,scrn,div ,lddg,lgCl,over,sLit,hLit,vLit,lLit,pLit,hMix,diff,smud,fsub,fdiv,hue ,sat ,colr,lum ".split(","); -eF.w4="Nrml Dslv Drkn Mltp CBrn linearBurn darkerColor Lghn Scrn CDdg linearDodge lighterColor Ovrl SftL HrdL vividLight linearLight pinLight hardMix Dfrn Xclu blendSubtraction blendDivide H Strt Clr Lmns".split(" "); -eF.jo=[[15,10,0],[15,10,1],[15,10,2],[15,10,3],[15,10,4],[15,10,5],[15,10,6],[15,10,7],[15,10,8],[15,10,9],[15,10,10],[15,10,11],[15,10,12],[15,10,13],[15,10,14],[15,10,15],[15,10,16],[15,10,17],[15,10,18],[15,10,19],[15,10,20],[15,10,21],[15,10,22],[15,10,23],[15,10,24],[15,10,25],[15,10,26]]; -eF.IR=["normal",null,"darken","multiply","color-burn",null,null,"lighten","screen","color-dodge",null,null,"overlay","soft-light","hard-light",null,null,null,null,"difference","exclusion",null,null,"hue","saturation","color","luminosity"]; -eF.Eo=function(D){if(D=="passThrough")return"pass";return eF.HU[eF.w4.indexOf(D)]};eF.rm=function(D){if(D=="pass")return"passThrough"; -return eF.w4[eF.HU.indexOf(D)]};eF.getName=function(D){return eF.jo[eF.HU.indexOf(D)]};function g(){this.rect=null; -this.lQ="norm";this.opacity=255;this.Ym=!1;this.Jw=0;this.Rd=0;this.QH=!0;this.ag=[];for(var K=0;K<10; -K++)this.ag.push(0,0,255,255);this.name=null;this.add={};this.buffer=null;this.du=null;this.NU=null; -this.C=null;this.ed=null;this.a0o=30;this.Zy=g.aC();this.a60=g.aC();this.acP=g.aC();this.a8z=g.aC(); -this.eu=0;this.Yj=!1;this.Uc=null;this.bU=new g.ZS}g.aC=function(){var D=U.p("canvas");D.width=D.height=30; -return D.getContext("2d")};g.ZS=function(){this.sy=!0;this.wL=!0;this.OT=e.U(0);this.a8h=e.U(0);this.v_=null; -this.Rf={};this.amF=null;this.GY=null;this.U1=null;this._S=null;this.W3=null;this.os=null;this.mg=null; -this.nN=null;this.SX=null;this.Zk=null;this.Ax=null;this.Dl=null;this.o4=!1};g.ZS.prototype.m1=function(){this.sy=!1; -this.wL=!1;this.v_=null;this.o4=v.s2};g.ZS.prototype.anC=function(){dm.yx(this.Rf);this.OT=e.U(0);this.a8h=e.U(0); -if(this._S)this._S.delete();if(this.W3)this.W3.delete();this._S=null;this.W3=null;var D=[this.os,this.mg,this.nN,this.SX,this.Zk,this.Ax]; -for(var K=0;K<6;K++)if(D[K]!=null&&D[K]instanceof v.B0)D[K].delete();this.os=null;this.mg=null;this.nN=null; -this.SX=null;this.Zk=null;this.Ax=null};g.prototype.T=function(D){if(D==null)D=this.rect.clone();if(this.bU.v_==null)this.bU.v_=D; -else this.bU.v_=this.bU.v_.bk(D)};g.prototype.Pq=function(){return this.add.lsct==aQ.X4||this.add.lsct==aQ.IN}; -g.prototype.yt=function(){var D=this.add;return D.SoCo!=null||D.GdFl!=null||D.PtFl!=null};g.prototype.Uf=function(){var D=this.add.lmfx; -if(D==null)return;var M=["GrFl","patternFill"];for(var K=0;K>2);e.FK(d.Lv,$,3);if(!e.L0(M.channel,$))return!1; -var w=e.U(V.d*V.w*4);e.eJ(d.fz,d.J3,w,V);e.z.cz("norm",d.Lv,d.pq,w,V,V,1);return e.L0(w,this.buffer)}if(d.eu==1||d.eu==3){var q=d.eu==1?this.Ro():this.DI(D).C; -if(!V.L0(q.rect))return!1;var u=e.U(V.Y());u.fill(q.color);e.b7(d.fz,d.J3,u,V);e.z.rF(d.Lv,d.pq,u,V,M.channel,V,1); -return e.L0(u,q.channel)}};g.prototype.Uq=function(D,M,s,F){var X=this.Uc;X.pq.offset(M,s);var d=X.J3.bk(X.pq); -if(X.eu<=0){var V=e.U(d.Y()*4);e.eJ(X.fz,X.J3,V,d);e.z.cz("norm",X.Lv,X.pq,V,d,d,1);this.buffer=V;this.rect=d; -this.T()}else{var $=this.eu==1?this.Ro():this.DI(D).C,w=e.U(d.Y());w.fill($.color);e.b7(X.fz,X.J3,w,d); -e.z.rF(X.Lv,X.pq,w,d,F.channel,d,1);$.channel=w;$.rect=d.clone();if(this.eu==1){$.wV=!0;this.M8(D)}if(this.eu==3)this.T()}}; -g.prototype.j4=function(){var D=[-1,0,1,2];if(this.C)D.push(-2);if(this.ed)D.push(-3);return D};g.prototype.getName=function(){return this.add.luni?this.add.luni:this.name}; -g.prototype.Nt=function(O){this.add.luni=this.name=O};g.prototype.Af=function(D){var M=this.add.lnsr,s=this.add.TySh; -if(M=="rend"&&s)this.Nt(fU.NN(s.t6).replace(/(?:\r\n|\r|\n)/g," ").slice(0,32))};g.prototype.T7=function(){return(this.Jw&1<<1)==0}; -g.prototype.p2=function(){return(this.Jw&1<<4)==0};g.prototype.VX=function(){return(this.Jw&1<<5)!=0}; -g.prototype.a6u=function(){var D=this;if(D.add.lnsr!="bgnd"){D.add.lnsr="bgnd";D.Nt("Background");D.add.lspf=1<<2}}; -g.prototype.anc=function(){var D=this;if(D.add.lnsr=="bgnd"){delete D.add.lnsr;D.Nt("Layer 0");D.add.lspf=0}}; -g.prototype.CG=function(D){var M=this.add.lspf;return M==null?!1:(M>>D&1)!=0};g.prototype.wW=function(D){if(D&&!this.T7())this.Jw-=2; -if(!D&&this.T7())this.Jw+=2};g.prototype.lD=function(){var D=this.add.lmfx;if(D==null)return!1;for(var M in D){if(M=="masterFXSwitch")continue; -if(M=="Scl")continue;if(M=="classID")continue;if(D[M].v.length>0)return!0}return!1};g.prototype.Y2=function(){return this.add.SoLd!=null&&this.add.SoLd.filterFX!=null}; -g.prototype.EU=function(){var D=this.add.lmfx;if(D==null)return!1;if(!D.masterFXSwitch.v)return!1;for(var M in D){if(M=="masterFXSwitch")continue; -if(M=="Scl")continue;if(M=="classID")continue;var s=D[M].v;for(var K=0;K1){var w=e.A.mT(V.g,null,V.mw); -$=e.O.Pe(w)}else $=e.A._j(V.g,V.D.length!=0?V.D:null)}else $=e.A._j(V.g);X=X.bk($)}if(d.indexOf(3)!=-1)X=X.bk(this.DI(D).C.$a()); -if(d.length==0&&this.yt())X=new hk(0,0,D.d,D.w);return X};g.prototype.a0=function(){var D=this.add.artb,M=D.artboardBackgroundType.v,s=0; -if(M==1)s=4294967295;else if(M==2)s=4278190080;else if(M==3)s=0;else if(M==4){s=D.Clr.v;s=255<<24|s.Bl.v<<16|s.Grn.v<<8|s.Rd.v}else throw M; -return s};g.prototype.En=function(){var D=this.add.artb.artboardRect.v,M=D.Btom.v,s=D.Left.v,F=D.Rght.v,top=D.Top.v; -return new hk(s,top,F-s,M-top)};g.prototype.mt=function(D){var M=g._y(D);if(this.add.artb==null)this.add.artb={classID:"artboard",artboardRect:{t:"Objc",v:null},artboardBackgroundType:{t:"long",v:1}}; -this.add.artb.artboardRect.v=M};g._y=function(D){var M={classID:"classFloatRect",Top:{t:"doub",v:0},Left:{t:"doub",v:0},Btom:{t:"doub",v:0},Rght:{t:"doub",v:0}}; -M.Btom.v=D.y+D.w;M.Left.v=D.x;M.Rght.v=D.x+D.d;M.Top.v=D.y;return M};g.prototype.n1=function(D,M,s){var F=[],X=this,d=this.Yj; -if(!M&&X.Yj&&s){F.push(2)}else if(X.eu<=0||M){if(X.p2())if(!this.rect.qj())F.push(0);if(X.Ro()&&!X.Ro().rect.qj())if(X.Ro().kB||M)F.push(1); -if(X.add.vmsk)if(X.add.vmsk.kB||M)F.push(2);if(X.Y2()&&X.DI(D).C&&!X.DI(D).C.rect.qj())F.push(3)}else if(X.eu==1){F.push(1); -if(X.Ro().kB&&!X.Ro().rect.qj()){if(X.p2())if(!this.rect.qj())F.push(0);if(X.add.vmsk)if(X.add.vmsk.kB)F.push(2)}}else if(X.eu==3&&!X.DI(D).C.rect.qj())F.push(3); -if(X.add.artb&&F.indexOf(0)==-1)F.push(0);F.sort();return F};g.prototype.Ro=function(){var D=this;return D.ed?D.ed:D.add.vmsk&&D.add.vmsk.isEnabled?null:D.C}; -g.prototype.DI=function(D){var M=this.add.SoLd.placed.v,s=D.add.FEid;if(s==null)return null;for(var K=0; -K3e4*3e4)M=new hk(0,0,100,100); -if(D&&D[s].v[s]!="strokeStyleAlignInside"){var X=1;if(D[F].v[F]=="strokeStyleMiterJoin"){var d=e.A.a6E(this.g),V=d/2,$=Math.sin(V),w=Math.cos(V); -w/=$;$=1;var X=Math.sqrt(w*w+$*$);if(isNaN(X)||X<1)X=1}X*=D[s].v[s]=="strokeStyleAlignOutside"?1:.5; -var q=Math.ceil(D.strokeStyleLineWidth.v.val*X);q=Math.min(q,600);M.ZB(q,q)}M=e.O.CA(M);var u=new g.qm; -u.color=e.A.RN(this.g)?0:255;u.kB=this.kB;u.isEnabled=this.isEnabled;u.Br=!0;u.rect=M;u.Cv=this.Cv;u.Qw=this.Qw; -u.channel=e.U(u.rect.Y());if(!M.qj())e.A.a7N(this.g,u.channel,u.rect,D);if(D==null){this.ed=u;this.wV=!1}return u}; -g.YL.prototype.clone=function(){var D=new g.YL;D.kB=this.kB;D.isEnabled=this.isEnabled;D.Cv=this.Cv; -D.Qw=this.Qw;D.g=g.YL.ig(this.g);D.SL=this.SL.slice(0);D.sO=this.sO;D.D=this.D.slice(0);D.mw=this.mw.slice(0); -return D};g.YL.prototype.concat=function(D){var M=D.g.slice(2);if(M.length==0)return;M[0].AY=3;this.g=this.g.concat(M)}; -g.YL.ig=function(D){var M=[];for(var K=0;K5||s.type==0||s.type==3)M.push(JSON.parse(JSON.stringify(s))); -else M.push({type:s.type,j9:s.j9.clone(),W:s.W.clone(),Gd:s.Gd.clone()})}return M};g.YL.a18=function(D,M,s){if(D.length!=M.length)return!1; -for(var K=2;KM.ok.length)M.ok=D.slice(0); -if(this.depth!=0)D.pop()};dE.prototype.ab0=function(){var D=0;if(this.c.Pq()){for(var K=0;K=0;K--){var O=this.children[K],F=O.Za(D,M);if(F&&M==null)return F}return null}else if(s.add.TySh&&s.rect.TM(D)||e.ag_(D,s.buffer,s.rect)){if(M==null)return this; -else M.push(this.index)}return null};dE.prototype.ag6=function(D){var M=this.c;if(!M.T7()||M.CG(2)||M.CG(31))return null; -var s=M.add.vmsk;if(s&&s.isEnabled){var F=e.A.Za(s.g,D).zl;if(F!=-1)return{a7J:this,a87:F}}if(M.Pq()){if(M.add.artb&&!M.En().TM(D))return null; -for(var K=this.children.length-1;K>=0;K--){var O=this.children[K],X=O.ag6(D);if(X)return X}return null}return null}; -dE.prototype.HS=function(D,M){D.push(this.index);if(this.c.Pq()){D.push(this.vZ);if(M)if(this.c.eu==1&&this.c.Ro().kB==!1)return; -for(var K=0;KM.w){X=s;d=Math.floor(s*(M.w/M.d))}else{X=Math.floor(s*(M.d/M.w)); -d=s}if(F.yt()&&F.add.vmsk==null||F.add.TySh)X=d=Math.max(d,16);else{X=Math.max(X,6);d=Math.max(d,6)}var V=d,$=F.yt()&&F.add.vmsk; -if($){var w=F.rect.clone(),B,r;if(w.qj())w=new hk(0,0,20,20);var q=w.d,u=w.w;if(q>u){B=s;r=Math.floor(s*(u/q))}else{B=Math.floor(s*(q/u)); -r=s}if(B*r==0)B=r=16;e.Dn.LC(F.Zy,B,r,w,F.buffer,F.rect,!1);e.Dn.ak8(F.Zy,B,r);V=r}else if(F.add.TySh){e.Dn.a2j(F.Zy,V,V,F.add.TySh)}else if(F.add.SoCo){V=Math.max(16,Math.min(X,d)); -e.Dn.agI(F.Zy,V,V,F.add.SoCo)}else if(F.add.GdFl){e.Dn.amA(F.Zy,V,V,F.add.GdFl)}else if(F.add.PtFl){e.Dn.ais(F.Zy,V,V,F.add.PtFl,D)}else if(iA.get(F.add)!=null){e.Dn.ar3(F.Zy,V,V,F.add)}else if(F.add.SoLd){e.Dn.LC(F.Zy,X,d,M,F.buffer,F.rect,!1); -e.Dn.a6k(F.Zy,X,d,F.add.SoLd)}else if(F.Pq()){V=16}else{if(F.p2())e.Dn.LC(F.Zy,X,d,M,F.buffer,F.rect,!1); -else{e.Dn.a5i(F.Zy,V,V)}}var P=F.Ro();if(P)e.Dn.g3(F.a60,X,d,M,P);if(F.Y2()&&F.DI(D)&&F.DI(D).C){var A=F.DI(D).C; -e.Dn.g3(F.a8z,X,d,M,A)}if(!$&&F.add.vmsk){e.Dn.g3(F.acP,X,d,M,F.add.vmsk.Ro(),!0)}if(F.add.vmsk||P)V=Math.max(V,d); -F.a0o=Math.max(V,16);if(F.Pq()&&F.add.lsct==aQ.X4)for(var K=0;K0||V.fill!=1||d.EU())){this.oO(D,M,s,F); -return}var w=d.Pq()&&d.lQ=="pass"&&(X.length>0||V.fill!=1||d.EU()),q=d.rect,u=d.buffer;if(d.Pq()){q=this.$a(F,!1); -var r=e.U(q.Y()*4);B=e.U(q.Y());this.oO(r,q,s,F);e.FK(r,B,3)}else if($){q=M.clone();B=e.U(q.Y());B.fill(255)}else{q=d.rect; -B=e.U(q.Y());e.FK(u,B,3)}if(d.MQ()){var P=d.C.Jf(q);e.Mk(P,B)}if(d.EU())A=dm.Y3(d.add.lmfx,d.add.fxrp,B,q,F); -if(d.EU())dm.VD(d.add.lmfx,A,q,D,M,s);if(d.Pq()){u=e.U(q.Y()*4);if(d.lQ=="pass")e.eJ(D,M,u,q);if(w){var r=e.U(q.Y()*4); -this.oO(r,q,s,F);var E=e.U(q.Y());e.FK(r,E,3);e.rs(E,q,u,q)}this.oO(u,q,s,F)}if($){u=D.slice(0);e.BK(u,4278190080,16777215); -var n=iA.get(d.add),_=iA.IC(n,d.add[n]);iA.ea(_,u,u,q)}var l=u.slice(0);e.BK(l,4278190080,16777215); -for(var K=0;Kp.pu.d)p=y[K]; -var k=e.U(p.pu.d*p.pu.w*4);e.eJ(D,M,k,p.pu)}dm.Nc(d.add.lmfx,A,q,D,M,s,b,k,p?p.pu:null)}e.z.c0(b,q,D,M,B,q,0,s,1,d.lQ=="diss")}; -dE.prototype.oO=function(D,M,s,F){var X=this.children;for(var K=0;Kd||!V&&d.indexOf(this.index)==-1)){return}var $=this.c,w=dm.nu($),q=dE.Ye,u=$.yt()?$.Ro():$.C; -if(!$.T7())return;if($.MQ()&&u.rect.qj()){return}if($.add.vstk==null&&this.$a(F,!1).qj()){return}var B=this.$a(F,!0).Nm(s); -if(!M.L0(s)&&!s.$U(B))return;if($.Pq()&&$.add.artb){var r=$.En();s=s.Nm(r)}var P=dE.Zc($,X,w);if(!P){this.BG(D,M,s,F,X,d); -return}$.bU.os=q.YB($.bU.os,B.d,B.w);q.b7(D,M,$.bU.os,B,s);this.BG($.bU.os,B,s,F,X,d);q.c0($.bU.os,B,D,M,null,null,0,s,$.opacity/255,$.lQ=="diss",w.pH)}; -dE.Zc=function(D,M,s){if(s.pH[0]*s.pH[1]*s.pH[2]==0)return!0;return D.opacity!=255&&(M.length!=0||D.Pq()||D.EU())}; -dE.aal={bU:{}};dE.prototype.BG=function(D,M,s,F,X,d){var V=this.c,$=dm.nu(V),w=iA.get(V.add)!=null,q=dE.Ye,u=dE.Zc(V,X,$),B=u?1:V.opacity/255,r=V.yt()?V.Ro():V.C,P=V.Pq()&&V.lQ=="pass"&&!(X.length>0||$.fill!=1||V.EU()),A=!V.Pq()&&!w&&!V.EU()&&X.length==0,E=w&&!V.EU()&&X.length==0,p=null,k=null,S=null,R; -if(P||A||E){var n=D,_=M;if(V.MQ()){_=this.$a(F,!1);n=V.bU.SX=q.YB(V.bU.SX,_.d,_.w);q.b7(D,M,V.bU.SX,_)}if(P)this.um(n,_,s,F,d); -if(A)q.cz(V.lQ,V.IP(F),V.rect,n,_,s,B,$);if(E){var l=V.MQ()&&r.KO()==0?r.$a().clone():_.clone(),b=V.bU; -if(l.L0(new hk(0,0,F.d,F.w)))b=dE.aal;b.nN=this.IW(n,_,b.nN,l,V.add);$.Sf=!0;q.cz(V.lQ,b.nN,l,n,_,s,B,$)}if(V.MQ())q.c0(n,_,D,M,V.$z(),r.$a(),r.KO(),s,1,V.lQ=="diss"); -V.bU.m1();return}var y=V.Pq()&&V.lQ=="pass"&&(X.length>0||$.fill!=1||V.EU()),l=V.rect;if(V.Pq()){l=this.$a(F,!1); -S=V.bU.nN=q.YB(V.bU.nN,l.d,l.w);q.BK(S,0);this.um(S,l,l,F,d);k=q.YB(V.bU.mg,l.d,l.w);q.b7(S,l,k,l)}else if(w){l=V.MQ()&&r.KO()==0?r.$a().clone():M.clone(); -k=q.YB(V.bU.mg,l.d,l.w);q.BK(k,4294967295)}else{l=V.rect;p=V.IP(F);k=q.YB(V.bU.mg,l.d,l.w);q.b7(p,l,k,l)}V.bU.mg=k; -if(V.MQ())q.aaw(V.$z(),r.$a(),r.KO(),k,l);if(V.EU())if(V.bU.v_||V.bU.wL||V.bU.o4!=v.s2||V.bU.sy||V.Pq()){var Z=e.U(l.d*l.w); -if(dm.dK(V.add.lmfx)){if(v.s2){if(!V.Pq()&&V.Ro()==null&&V.rect.L0(l)&&V.add.vmsk==null)e.FK(V.buffer,Z,3); -else{var z=e.U(l.d*l.w*4);k.get(z);e.FK(z,Z,3)}}else e.FK(k,Z,3)}if(V.bU.wL||V.bU.o4!=v.s2||!e.L0(Z,V.bU.OT)){var j=null; -if(V.yt()&&V.add.vmsk&&V.add.vmsk.isEnabled&&V.add.vmsk.Ro().color==0)j=V.add.vmsk.Ro().rect;dm.ad5(V.bU.Rf,Z,l,V.add.lmfx,V.add.fxrp,F,j); -V.bU.OT=Z;V.bU.a4M=l}}if(V.EU())dm.VD(V.add.lmfx,V.bU.Rf,l,D,M,s);if(V.Pq()){p=q.YB(V.bU.SX,l.d,l.w); -q.BK(p,0);if(V.lQ=="pass")q.b7(D,M,p,l);if(y)q.N$(S,l,p,l);this.um(p,l,s,F,d);V.bU.SX=p}if(w){p=V.bU.SX=this.IW(D,M,V.bU.SX,l,V.add)}if(V.Pq()||w)R=p; -else{R=q.YB(V.bU.SX,l.d,l.w);q.b7(p,l,R,l,s);V.bU.SX=R}q.BK(R,4278190080,16777215);for(var K=0;KG.pu.d)G=m[K]; -V.bU.Ax=q.YB(V.bU.Ax,G.pu.d,G.pu.w);q.b7(D,M,V.bU.Ax,G.pu,s);V.bU.Dl=q.YB(V.bU.Dl,G.pu.d,G.pu.w)}dm.Nc(V.add.lmfx,V.bU.Rf,l,D,M,s,a,V.bU.Ax,V.bU.Dl,G?G.pu:null)}if(!v.s2){var L=e.U(l.Y()); -e.FK(k,L,3);k=L}q.c0(a,l,D,M,k,l,0,s,1,V.lQ=="diss");V.bU.m1()};dE.prototype.IW=function(D,M,s,F,X){var d=iA.get(X),V; -if(d)V=iA.IC(d,X[d]);var $=dE.Ye;s=$.YB(s,F.d,F.w);if(!(v.s2&&M.L0(F)))$.b7(D,M,s,F);if(V){if(v.s2){var w=F.clone(); -w.x=w.y=0;if(M.L0(F)){v.Zg(s,w);iA.W_(V,D.Np,w)}else{v.Zg(s,F);s.Ts(F);iA.W_(V,s.G6,w)}}else iA.ea(V,s,s,F)}return s}; -dE.prototype.um=function(D,M,s,F,X){var d=this.children;for(var K=0;K1.0001; -if(B){r.d=Math.round(r.d/P);r.w=Math.round(r.w/P);r.x=Math.round((this.d-r.d)/2);r.y=Math.round((this.w-r.w)/2)}else if(X&&bo.H8(D.buffer)=="pdf"&&this.Gs!=144){var P=144/this.Gs; -r.d=Math.round(r.d/P);r.w=Math.round(r.w/P);B=!0}u.buffer=e.U(u.rect.Y()*4);if(!B)e.f8(w.wu[0],u.buffer)}u.add.SoLd={classID:"null",Idnt:{t:"TEXT",v:d},Impr:{t:"Objc",v:{__name:"None",classID:"none"}},placed:{t:"TEXT",v:q},PgNm:{t:"long",v:1},totalPages:{t:"long",v:1},frameStep:{t:"Objc",v:{classID:"null",numerator:{t:"long",v:0},denominator:{t:"long",v:600}}},duration:{t:"Objc",v:{classID:"null",numerator:{t:"long",v:0},denominator:{t:"long",v:600}}},frameCount:{t:"long",v:1},Annt:{t:"long",v:16},Type:{t:"long",v:2},Trnf:null,nonAffineTransform:null,warp:{t:"Objc",v:e.aJ.U(w?w.wu[1]:u.rect)},Sz:{t:"Objc",v:{classID:"Pnt",Wdth:{t:"doub",v:u.rect.d},Hght:{t:"doub",v:u.rect.w}}},Rslt:{t:"UntF",v:{type:"#Rsl",val:72}}}; -var A=e.O.l5(u.rect).I;u.add.SoLd.Trnf=T.m.hp(A);u.add.SoLd.nonAffineTransform=T.m.hp(A);if(B)u.CQ(this,!1); -return u};iT.prototype.tn=function(D){if(D!=null){this.T();this.bc(D);var M=this.buffer;if(v.s2)this.e7.get(M); -else M=M.slice(0);this.T();this.bc();return M}if(this.v_){this.bc();this.v_=null}if(v.s2&&this.Hy){this.e7.get(this.buffer); -this.Hy=null;this.wc=!0}return this.buffer};iT.prototype.Jl=function(){for(var K=0;K");M.add.lsct=aQ.RE;M.Jw=24;return M};iT.prototype.tP=function(){return this.Ah!=this.q1}; -iT.prototype.D0=function(D){while(this.history.length>this.Ah+1)this.history.pop();if(this.q1>this.Ah)this.q1=-1; -if(D.G.id!=T.PU){this.z1=!0;if(this.sc.lastAppliedComp){delete this.sc.lastAppliedComp;this.wc=!0}}this.history.push(D); -this.Ah++;this.wc=!0;var M=cQ.N_()?60:30,s=0;for(var K=this.history.length-1;K>=0;K--){var F=this.history[K]; -if(F.oh)continue;s++;if(s==M){this.Ah-=K;this.history=this.history.slice(K);break}}};iT.prototype.yd=function(){if(this.Ah!=this.history.length-1)return null; -return this.history[this.history.length-1]};iT.prototype.$i=function(D,M,s,F){if(D==null)D=!1;var X=M!=null?[M]:this.D.slice(0); -if(F){var d=[];for(var K=0;K2){var X=F.Hx[0];X.zl=-1; -M.push(X);if(F.xr.indexOf(0)!=-1)s.push(M.length-1)}var V=F.v2==null;if(V)F.v2=[];for(var K=F.D.length-1; -K>=0;K--){var $=F.N[F.D[K]],w=$.add.TySh;if($.add.vmsk!=null&&($.Yj||$.yt())){var X=iT.K0("\""+$.getName()+"\" Shape Path",$.add); -X.zl=F.D[K];M.push(X);if(V)F.v2.push(d);if(F.v2.indexOf(d)!=-1)s.push(M.length-1);d++}if(D!=!0&&w&&w.add&&e.aJ.Rq(w.zt)){var X=iT.K0("\""+$.getName().slice(0,10)+"..\" Text Path",w.add); -X.zl=1e6+F.D[K];M.push(X);s.push(M.length-1);d++}}if(s.length==0&&D){F.Hx[0].zl=-1;F.xr=[0];s.push(M.length); -M.push(F.Hx[0])}return[M,s]};iT.prototype.L6=function(K,D){var M=[],O=this.root.YG(K);if(O)O.HS(M,D); -return M};iT.prototype.dI=function(){this.root.s5(this,new hk(0,0,this.d,this.w),32)};iT.prototype.DF=function(D){for(var K=0; -K1e3){var M=this.root.children; -for(var K=0;K>>8&255)<<8|B>>>16;u.rect=new hk(0,0,s,F);u.buffer=e.U(s*F*4); -e.BK(u.buffer,{Wht:4294967295,Blck:4278190080,BckC:255<<24|B}[w])}}$.buffer=e.U(s*F*4);return $};function aw(D){this.Ab=D; -this.$=0;this.hn=1;this.L=new eo(0,0);this.yc=new eo(0,0);this.jF=0;this.hU=[1,1,1];this.Ar=new hk(0,0,1,1); -this.aqt=new hk(0,0,D.d,D.w);this.qr=null;this.uJ=null;this.zC=new Uint32Array(0);this.cG=null;this.Fh=null; -this.Sk=e.U(0);this.oo=null;this.Wp=null}aw.prototype.VN=function(D){var M=new ex,s=this.Ar,F=this.Ab,X=D?this.hn:this.$,d=D?this.yc:this.L,V=Math.round((s.d-F.d*X)/2+d.x),$=Math.round((s.w-F.w*X)/2+d.y); -M.translate(-V,-$);M.scale(1/X,1/X);var w=F.d/2,q=F.w/2;M.translate(-w,-q);M.rotate(this.jF);M.translate(w,q); -return M};aw.prototype.Qi=function(D){var M=this.Ar,s=this.Ab,F=Math.atan2(-D.P,D.iD),X=s.d/2,d=s.w/2; -D.translate(-X,-d);D.rotate(-F);D.translate(X,d);var V=1/D.qw();D.scale(V,V);var $=-D._u,w=-D.eH,q=Math.round($-(M.d-s.d*V)/2),u=Math.round(w-(M.w-s.w*V)/2); -if(Math.abs(V-Math.round(V))<1e-6)V=Math.round(V);this.jF=F;this.$=V;this.L=new eo(q,u)};aw.prototype.wT=function(D,M){var s=this.VN(); -return s.j1(new eo(D,M))};aw.prototype.gU=function(D,M){var s=this.VN();s.Iy();return s.j1(new eo(D,M))}; -function aX(){}aX.order="ebbl FrFX IrSh IrGl ChFX SoFi GrFl patternFill OrGl DrSh".split(" ");aX.c3="ebblMulti frameFXMulti innerShadowMulti IrGlMulti ChFXMulti solidFillMulti gradientFillMulti patternFillMulti OrGlMulti dropShadowMulti".split(" "); -aX.names=[[14,4],[14,9],[14,1],[14,3],[14,8],[14,5],[14,6],[14,7],[14,2],[14,0]];aX.Zv=["DrSh","IrSh","SoFi","GrFl","FrFX"]; -aX.gk=["Clr"];aX.D_="Grad Rvrs Type Algn Angl Dthr Scl Ofst".split(" ");aX.iE=["Ptrn","Scl","Algn","phase"]; -aX.zd={wB:"{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}}}",tJ:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Grdn\",\"Nm\":{\"v\":\"Two Color\",\"t\":\"TEXT\"},\"GrdF\":{\"v\":{\"GrdF\":\"CstS\"},\"t\":\"enum\"},\"Intr\":{\"v\":4096,\"t\":\"doub\"},\"Clrs\":{\"v\":[{\"v\":{\"classID\":\"Clrt\",\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":0,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},\"Type\":{\"v\":{\"Clry\":\"UsrS\"},\"t\":\"enum\"},\"Lctn\":{\"v\":0,\"t\":\"long\"},\"Mdpn\":{\"v\":50,\"t\":\"long\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"Clrt\",\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":255,\"t\":\"doub\"},\"Bl\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"},\"Type\":{\"v\":{\"Clry\":\"UsrS\"},\"t\":\"enum\"},\"Lctn\":{\"v\":4096,\"t\":\"long\"},\"Mdpn\":{\"v\":50,\"t\":\"long\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"},\"Trns\":{\"v\":[{\"v\":{\"classID\":\"TrnS\",\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Lctn\":{\"v\":0,\"t\":\"long\"},\"Mdpn\":{\"v\":50,\"t\":\"long\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"TrnS\",\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Lctn\":{\"v\":4096,\"t\":\"long\"},\"Mdpn\":{\"v\":50,\"t\":\"long\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}}}",G1:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Grdn\",\"Nm\":{\"v\":\"Foreground to Background\",\"t\":\"TEXT\"},\"GrdF\":{\"t\":\"enum\",\"v\":{\"GrdF\":\"CstS\"}},\"Intr\":{\"t\":\"doub\",\"v\":4096},\"Clrs\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"Objc\",\"v\":{\"classID\":\"Clrt\",\"Type\":{\"t\":\"enum\",\"v\":{\"Clry\":\"FrgC\"}},\"Lctn\":{\"t\":\"long\",\"v\":0},\"Mdpn\":{\"t\":\"long\",\"v\":50}}},{\"t\":\"Objc\",\"v\":{\"classID\":\"Clrt\",\"Type\":{\"t\":\"enum\",\"v\":{\"Clry\":\"BckC\"}},\"Lctn\":{\"t\":\"long\",\"v\":4096},\"Mdpn\":{\"t\":\"long\",\"v\":50}}}]},\"Trns\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"Objc\",\"v\":{\"classID\":\"TrnS\",\"Opct\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"Lctn\":{\"t\":\"long\",\"v\":0},\"Mdpn\":{\"t\":\"long\",\"v\":50}}},{\"t\":\"Objc\",\"v\":{\"classID\":\"TrnS\",\"Opct\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"Lctn\":{\"t\":\"long\",\"v\":4096},\"Mdpn\":{\"t\":\"long\",\"v\":50}}}]}}}",Ve:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Ptrn\",\"Nm\":{\"v\":\"orangeslices\",\"t\":\"TEXT\"},\"Idnt\":{\"v\":\"c7acb22a-47a6-11de-919a-bf574370eaaf\",\"t\":\"TEXT\"}}}"}; -aX.zd.wB="\"Clr\": "+aX.zd.wB;aX.zd.h="\"Grad\":"+aX.zd.tJ+",\"Rvrs\":{\"v\":false,\"t\":\"bool\"},\"Type\":{\"v\":{\"GrdT\":\"Lnr\"},\"t\":\"enum\"},\"Algn\":{\"v\":true,\"t\":\"bool\"},\"Angl\":{\"v\":{\"type\":\"#Ang\",\"val\":90},\"t\":\"UntF\"},\"Scl\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Ofst\":{\"v\":{\"classID\":\"Pnt\",\"Hrzn\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"Vrtc\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"}},\"t\":\"Objc\"},\"Dthr\":{\"v\":false,\"t\":\"bool\"}"; -aX.zd.Ve="\"Ptrn\":"+aX.zd.Ve+",\"Scl\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Algn\":{\"v\":true,\"t\":\"bool\"},\"phase\":{\"v\":{\"classID\":\"Pnt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"}"; +(function(){function eS(){this.Er={};this.U4={}}eS.T4=[];eS.hy=function(a){var F=eS.T4;if(F.length!=0){var y=new u(z.E.wx); +for(var G=0;G0};eS.prototype.addEventListener=function(a,F){this.l(a,F,null)}; +eS.prototype.l=function(a,F,y){if(this.Er[a]==null){this.Er[a]=[];this.U4[a]=[]}this.Er[a].push(F);this.U4[a].push(y); +if(a==z.E.wx){var c=eS.T4;if(c.indexOf(this)==-1)c.push(this)}};eS.prototype.removeEventListener=function(a,F){var y=this.Er[a]; +if(y==null)return;var c=y.indexOf(F);if(c<0)return;var Q=this.U4[a];y.splice(c,1);Q.splice(c,1);if(a==z.E.wx&&y.length==0){var S=eS.T4; +S.splice(S.indexOf(this),1)}};eS.prototype.n=function(a){a.currentTarget=this;if(a.target==null)a.target=this; +var F=this.Er[a.type];if(F==null)return;var y=this.U4[a.type];for(var G=0;G=0; +if(a==null)return"";var y=[];for(var G=0;G>>G&1)==1)break;G++}if(F==0||y[G][1]==""){if((F&15)!=0&&cc.II(a,[33,126])>.7)G=0; +else if(F==0)G=0;else{G=0}}return y[G][1]};cc.LR=120;cc.RA=20;cc.cols=16;cc.vt=function(a){var F=a.name.postScriptName; +if(F==null)return null;return F.replace(/ /g,"-")};cc.Xu=function(a){var F=a.name,y=F.typoFamilyName?F.typoFamilyName:F.fontFamily,c=F.typoSubfamilyName?F.typoSubfamilyName:F.fontSubfamily,Q=cc.ak8,S=y.toLowerCase(); +for(var G=0;G128)Q=this.wY(F,Q);if(this.a60[a]==null){this.a60[a]=1; +var J=Date.now()-this.ae0>2e3?2e3:0;this.ae0=Date.now();alert(a+" \u27A1 "+Q,J)}return this.ki(Q,F)}this.JZ[a]="a"; +var A=new u(z.E.Q,!0);A.data={e:z.h.vL,kd:{url:"rsrc/fonts/"+y}};this.n(A)};cc.prototype.wY=function(a,F,y){var c=this.Sd[F]; +if(c&&Typr.U.codeToGlyph(c,a)!=0)return F;var Q=this.Qm(),S=cc.a0u(a),h=S[0];if(Q[F]&&(Q[F][3]&h)==0){if(y)for(var G=0; +Gd?1:0}for(var G=0;GF[2])return 1;return 0};cc.aa8=function(a,F){if(a[5]=="fs/"+a[2]+".otf")a[5]=""; +else if(a[5]=="gf/"+a[2]+".otf")a[5]="a";if(a[2]==(a[0]+"-"+a[1]).replace(/\s/g,"")){a[2]=""}else if(a[2]==a[0].replace(/\s/g,"")){a[2]="a"}if(F){if(a[0]==F[0])a[0]=""; +if(a[1]==F[1])a[1]="";if(a[3]==F[3])a[3]="";if(a[4]==F[4])a[4]=""}return a.join(",")};cc.a5S=function(a,F){a=a.split(","); +if(a[0]=="")a[0]=F[0];if(a[1]=="")a[1]=F[1];if(a[3]=="")a[3]=F[3];else a[3]=parseInt(a[3]);if(a[4]=="")a[4]=F[4]; +else a[4]=parseInt(a[4]);if(a[2]=="")a[2]=(a[0]+"-"+a[1]).replace(/\s/g,"");else if(a[2]=="a")a[2]=a[0].replace(/\s/g,""); +if(a[5]=="")a[5]="fs/"+a[2]+".otf";else if(a[5]=="a")a[5]="gf/"+a[2]+".otf";return a};cc.af1={ArialMT:"LiberationSans","Arial-BoldMT":"LiberationSans-Bold","Arial-ItalicMT":"LiberationSans-Italic","Arial-BoldItalicMT":"LiberationSans-BoldItalic",TimesNewRomanPSMT:"LiberationSerif","TimesNewRomanPS-BoldMT":"LiberationSerif-Bold","TimesNewRomanPS-ItalicMT":"LiberationSerif-Italic","TimesNewRomanPS-BoldItalicMT":"LiberationSerif-BoldItalic",CourierNewPSMT:"LiberationMono","CourierNewPS-BoldMT":"LiberationMono-Bold","CourierNewPS-ItalicMT":"LiberationMono-Italic","CourierNewPS-BoldItalicMT":"LiberationMono-BoldItalic",Courier:"CourierPrime",TrebuchetMS:"SourceSansPro-Regular","TrebuchetMS-Bold":"SourceSansPro-Semibold","TrebuchetMS-Italic":"SourceSansPro-It","TrebuchetMS-BoldItalic":"SourceSansPro-SemiboldIt","Times-Roman":"LiberationSerif",Impact:"Anton-Regular",Calibri:"SourceSansPro-Regular","Calibri-Italic":"SourceSansPro-It","Calibri-Bold":"SourceSansPro-Bold",CalibriBold:"SourceSansPro-Bold","Times-Roman":"LiberationSerif","Times-Italic":"LiberationSerif-Italic","Times-Bold":"LiberationSerif-Bold","Helvetica-Bold":"LiberationSans-Bold","HelveticaNeue-Thin":"Roboto-Thin","HelveticaNeue-Light":"Roboto-Light",HelveticaNeue:"Roboto-Regular","HelveticaNeue-Roman":"Roboto-Regular","HelveticaNeue-Medium":"Roboto-Medium","HelveticaNeue-Bold":"Roboto-Bold","HelveticaNeue-BoldItalic":"Roboto-BoldItalic","HelveticaNeue-Black":"Roboto-Black","HelveticaNeue-Heavy":"Roboto-Black","SFProText-Light":"Roboto-Light","SFProText-Regular":"Roboto-Regular","SFProText-Roman":"Roboto-Regular","SFProText-Medium":"Roboto-Medium","SFProText-Semibold":"Roboto-Medium","SFProText-Bold":"Roboto-Bold","SFProText-BoldItalic":"SFProText-BoldItalic","SFProText-Black":"Roboto-Black","SFProText-Heavy":"Roboto-Black","SFProDisplay-Light":"Roboto-Light","SFProDisplay-Regular":"Roboto-Regular","SFProDisplay-Roman":"Roboto-Regular","SFProDisplay-Medium":"Roboto-Medium","SFProDisplay-Semibold":"Roboto-Medium","SFProDisplay-Bold":"Roboto-Bold","SFProDisplay-BoldItalic":"SFProDisplay-BoldItalic","SFProDisplay-Black":"Roboto-Black","SFProDisplay-Heavy":"Roboto-Black","SFUIText-Light":"Roboto-Light","SFUIText-Regular":"Roboto-Regular","SFUIText-Roman":"Roboto-Regular","SFUIText-Medium":"Roboto-Medium","SFUIText-Semibold":"Roboto-Medium","SFUIText-Bold":"Roboto-Bold","SFUIText-BoldItalic":"SFUIText-BoldItalic","SFUIText-Black":"Roboto-Black","SFUIText-Heavy":"Roboto-Black",Verdana:"DejaVuSans","Verdana-Bold":"DejaVuSans-Bold","Verdana-Italic":"DejaVuSans-Oblique","Verdana-BoldItalic":"DejaVuSans-BoldOblique","MyriadPro-Regular":"PTSans-Regular","MyriadPro-Bold":"PTSans-Bold","MyriadPro-LightIt":"PTSans-Italic","MyriadPro-Semibold":"PTSans-Bold","MyriadPro-BlackCond":"PTSans-NarrowBold",Cambria:"Oranienbaum-Regular",Georgia:"CharisSIL","Georgia-Bold":"CharisSIL-Bold","Georgia-Italic":"CharisSIL-Italic","Georgia-BoldItalic":"CharisSIL-BoldItalic","AGaramondPro-Regular":"EBGaramond08-Regular","AGaramondPro-Bold":"EBGaramond08-Bold","AGaramondPro-Italic":"EBGaramond08-Italic",Garamond:"EBGaramond08-Regular",FontAwesome:"FontAwesome5FreeSolid","ProximaNova-Regular":"Metropolis-Regular","ProximaNova-Semibold":"Metropolis-SemiBold","ProximaNova-Light":"Metropolis-Light",BellMT:"GalatiaSIL",PalatinoLinotype:"TeXGyrePagella-Regular","PalatinoLinotype-Bold":"TeXGyrePagella-Bold","PalatinoLinotype-Italic":"TeXGyrePagella-Italic","PalatinoLinotype-BoldItalic":"TeXGyrePagella-BoldItalic"}; +cc.prototype.Qm=function(){if(FNTS.map==null){var a=FNTS.list,F=[];for(var G=0;GF()/20};c2.TT=function(){return c2.anb()!=null}; +c2.iq=function(){return c2.CU};c2.d3=function(a){window.addEventListener("message",c2.abS,!1);setInterval(c2.MS,5e3); +if(c2.TT()){c2.UB=a;c2.Cq()}else setTimeout(a,1)};c2.MS=function(){if(c2.TT()&&c2.Ag){c2.w$(c2.UM()); +c2.Ag=!1}};c2.jR=function(a){c2.UB=a;var F="https://www.photopea.com/papi/login.php?redirect="+encodeURIComponent(window.location.href); +c2.uz=window.open(F,"_blank")};c2.a44=function(){localStorage.removeItem(c2.s3+"_uid");localStorage.removeItem(c2.s3+"_provider"); +localStorage.removeItem(c2.s3+"_token");c2.CU=null};c2.abS=function(a){if(a.data instanceof ArrayBuffer||a.data instanceof Object)return; +if(a.data.charAt(0)!="{")return;var F=JSON.parse(a.data);if(F.prms==null)return;var y=F.prms.split(","); +if(y[0]=="papi_logged_in"){localStorage[c2.s3+"_uid"]=y[1];c2.m1(y[2]);localStorage[c2.s3+"_provider"]=y[3]; +c2.uz.close();c2.Cq()}if(y[0]=="payment_complete"){c2.mL.close();c2.Cq()}};c2.anb=function(){var a=localStorage[c2.s3+"_token"]; +if(a!=null&&Date.now()*.001+10S?1:-1;if(d)return-1;if(W)return 1;return Q>S?1:-1},F=LNG.langs.slice(0);F.sort(a); +return F};aT.acK=function(a){aT.fd=a};aT.R3=function(a){for(var G=0;G")==-1)aT.Y2[JSON.stringify(a[G])]=a[G+1]}; +aT.OB=function(a){var F=-1,y=LNG.langs;for(var G=0;G&\x7F"); +if(z.em[J]!=!0){d=1}var A=F[c](a("u}-"));A[W](a("zx"),w);A[W](a("$(0&\""),a("(}{.%ZXVY5){d=4}y[h](A)}if(df.Ko)d=5; +if(df.L3)d=6;return d};df.a93=function(a){var F=z.a9("y),+1ZRU:.787=mlITWRZVgphaifg}u~!C{+,P5)2328eDPnDJ\\NhYdgbjf2q}"),y={method:"HEAD",mode:"no-cors"},c=new Request(F,y); +fetch(c).then(function(Q){return Q}).then(function(Q){a(!1)}).catch(function(Q){df.Ko=!0;console.clear(); +a(!0)})};df.aps=function(){var a=z._m("UU[YW#ECC8"),F=z._m("VQ](RUK>@B8p71*03m}x'"),y=z._m("WQRMKT"),c=this.arw[a][F](); +if(c[y]<4){df.L3=!0;this.ah6(!0)}};df.a7k=function(){var a=z.em._cwY,F=z.em[z.nX("$y+n&-(5>@")],y="FQi[VE];;J6@?18',!'*3$|*niu~hgcWhlOUU`LOIT53A-11/)~$'>-cvys~_]k[RQiYHEJMWH@N--E$++|!|~t*hht,{HaWP_NrcLBNWIDN>049?5(+3qq}3$pp{ZjkoMi6UEJCLAQ/.+47-09>Tspy|ru~(xAaVl2Tcm]|LMZ\\",c=String.fromCharCode(32); +a(z.ll(y)+c+c+df.L8());if(!c2.Sw())F(df.a7k,Math.round(Math.PI*1e4))};df.KH=function(a){var F=z.nX,y=z.em[F("u#z/*%1:")],c=F("t&|{1%h2.94@I"),Q=F("$y+[145/+AC7"),S=F("%y/.`/1:.:C"),h=y[c](a[0]); +for(var d in a[1]){if(d=="txt")h[S]=a[1][d];else h[Q](d,a[1][d])}return h};df.acm=function(a,F,y,c,Q){z.pP(y); +var S=z.nX,h=S("r$'\x7F+$f.283"),d=S("$y+[145/+AC7"),W=S("rx{_3%1:u5BF:F@P"),w=S("#y'&~#("),J=S("$(0&\""),A=S("$&z"),T=S("r'0( "),o=S("%y/.`/1:.:C"),v=S("u}-"),i=z.a9("zz*{+&"),N=z.em[S("u#z/*%1:")],b=S("t&|{1%h2.94@I"),q=S("$w)#-4"),O=z.a9("z#+ 05e,0300*300){var _=N[S("xy+_)%0+7@BtN,N[NWLNBc~iSbedj4,/fsy:%!~{+-5*6?[4CDhSqqY]aQ bai,kw)6/ \"#)}$D_JC8@9GRk@CFQT_z~zy\\.`*~q$}(/?L?H=?3ToZDSVU[%| Wdj+uqol{}&z'0L%45YDbbnnArE~}\"\"W$[hn/nz,92t*3+#D_=>D7R5f9bWJ\\V`gw%w!v}|-H3,!)\"0;T1P@Id%jeZb[it.juxs{w*y#>>AGFKkSVQFNGU`yVad_gcuen8p}w6V<7,4-;F_W4?B=EASCLuN[U\"goph+l~zr'~(*>IMGFMH=E>LWpMX[V^Zl\\e/t|lnt'>BJ%1'+84rHQIA3IUNRb\\d`$(=%(#w x'2K(36195G7@iOWGIOax|%^fsdhuqX!~-% .p7,2X\\qY\\]k!hsPVhZtepsnvr0P61&.'5@Y06H:TEPSNVRoorxW\\+3xl$%yX~o&5:")];for(var G=0;G=3*270+30)F=3;if(a>=4*270+30)F=4;return F};df.aiv=function(){var a=z.nX,F=a("r$'\x7F+$f.283"),y=a("$y+[145/+AC7"),c=a("rx{_3%1:u5BF:F@P"),Q=a("#y'&~#("),S=a("$(0&\""),h=a("$&z"),d=a("r'0( "),W=a("%y/.`/1:.:C"),w=a("u}-"),J=z.a9("zz*{+&"),A=z.em[a("u#z/*%1:")],T=a("t&|{1%h2.94@I"),o=a("$w)#-4"),v=z.a9("z#+ 05e,0B:FPLJGCku+e[mqqp%nlz%yRNiTxA=MIJg,Rp7fhpeqz+*l>p:}46979O\\OX=IAVYj&pTWli -&pn/J5,(&#O),<0S`YJLDPPMXq-wpemft 9mp*++~1-N&N?C;GQMKHDlv,f\\nrrq&om{&zS=JC9@?OjUzI\\NRZh_T^awhw!hh~n21sv")),b=z.em,q=-1,O=b[z.a9("f#!}f")],R=z.a9("xy'"),k=z.a9("TU"),L=z.a9("Vi"),P=0; +if(O&&O[R]){var C=O[R];if(C==L)q=0;if(C==k)q=1}var t=q==-1?null:df.KH(N[q]),_=this.jj,M=this.aqQ,I=this.head,j=this.ml,r=z.a9("~u*\"'/P)9ADBCrlnR]"),s=[.1,.1,.8],e=Math.random(); +while(s[P]rzwc$!$V>CP/l{m|ww(.#'7SZYD7IIILLTPw]a!e\\phmurryz~.HON3*>6;CODBULryxdbff]qinv7>=!|!2.%916>^edSHFYPv~'$#bbijn}8EBE"),x=l.split(","),E=A[T](J); +for(var G=0;G9EN~Y,JpMSgcao'/gvx\"u\"+p&.'5@Y3A8MHCOX\"SSbTc^*nrjv37L}}-~.)TA?9G;`TLNM\\_^~f\\mmoqyn`t+*AV((7)83^7CIPEjn$il-megfuxw8|!x%A>fgyJWNX=LONT}ux]eUW]o-i3lz$s!|}**'2W;5Gd@=LRFLyOUl6cr=27=CAFKISWPKR,2FB@NgfhYc)u|Zf^mei\\\\V8' 4\"HMLN@k\"A9>CNIU^Ldlf^!2Fxm}%z#~@DKg(>2]AEPcgmd\\]cV|2rjlkz}|=&z' FJ_ESUYn"),f=A[T](o); +f[W]=p;I[F](f)}}else if(M==2){var H=df.I4(j);if(!df.tS){df.tS=!0;var l=z.a9("uu,{J*(R:5?GEIA@oHWXM$$'r/53eMR_>[j\\kffv|qu&bih3&888;;C?'lp0TK_W\\daahim|W^]\"x-%*2>31D;\")(SQUUL`X]eFMLoko!|s( %-mtsbWUh_&.,kkrsw'AI"),x=l.split(","),p=z.a9("9z-)!5-68LW[UT[UCWg^WkY4!003~;A?9Ay 40.687FIHZz`RLalH@BApsrWm|$v(,BF[<465DGFfKMTJIOgdhXnbckgwst2R8\"40(<4=?[_UFFbmaY[Zilk,sihn'c(w.\"?_bH_NWZWSKML[^]}fjZptu%EH.CDGC97%9I2CRrX@NEZUP\\e\"hobr|Ynxtu*(._.1OL)55K;iIG#omySYmigu/)1j2PTTSgkS~\\Xm>twxrn%'z@=##9)W@6B;?OEGgqiw-^^#c* }k 0||,}-(EeK4_8GIRFR[AV^Wep*cqh}xs )R$$3%4/Z?C;Gcg|NN]O^Y%qoiwk1%|~}-0/O7->>@BJ?1E[Zq'XXgYhc/gsy!u;?T\"M6+=lCFGA=SUInpQQgW&ndpim}su;C:239,RJMPpQIKJY\\[{`d\\h%\"JK].;2JBQIM@@:{jcwe,102$Oe%|\"'2-9B0HPJBdu*\\Qah^fb$(/Kk\"uA%)4GKQH@AG:`uVNPO^a`!i^jc*.C)79=R"); +for(var g=0;g@rtvMOL"));U[y](z.a9("t!x.1"),z.a9("pu(y~1)?).4")); +var p=z.a9("(u*:~%4<=5ECUu[VKSLZe~U[jrsk{y,/O50%-&4?X/5DLMEUSeehnmfm`8\\a%E-0tz*23+;9Y@G:eKSTLnPb^Vjbkm*.('.rx(01)97WAB<=@AQ#Iol}(ZY[1de3=mFuBL\"$TQ)__3`=lBpz|OQS*,)|'<$'(6K"),f=A[T](o); +f[W]=p;U[F](f);_[F](B)}else if(M==2){var H=df.I4(j);for(var G=0;GA@suI|T"));U[y](z.a9("t!x.1"),z.a9("pu(y~1)?).4")); +var p=z.a9("(u*:~%4<=5ECUu[VKSLZe~U[jrsk{y,/O50%-&4?X/5DLMEUSeehnmfm`8\\a%E-0tz*23+;9Y@G:eKSTLnPb^Vjbkm*.('.rx(01)97WAB<=@AQ#IolO(&]_5a43k>@uBLN!VQ_[dd`:[{ak\\Pfe#a[savi{u '6"),z.a9("wu$.#"));f[W]=p;I[F](f)}}else{console.log(2);var Z=A[T](o);Z.setAttribute(h,z.a9("y),+1ZRU.@8iARrqq|S~P~Wcirdixxz$@$}0M2:*77D<Y17bIDNVTXPOTcd-245=+81v~/H&29T,2]D?IQOSKJO^_(-138&3,qy*C!-4O'-X?:DLJNFEJYZ#(,/4!.'lt%>{(/J\"(S:5?GEIA@ETU}#(%({)\"go 9v#*E|#N50:B@D<;@OPx}# $vU")),hY=[aR[0]]; +if(M==2)hY=aR.slice(1,1+df.I4(j));for(var G=0;GDate.now()*.001+30){while(g2.GB.length>0)g2.GB.pop()()}else{if(g2.bk==0)g2.bk=1; +gapi.auth.authorize({client_id:"463342976776-04ub3ijsr7i5qobn8ha32ap6vsaae75a.apps.googleusercontent.com",scope:["https://www.googleapis.com/auth/drive.install","https://www.googleapis.com/auth/drive.file"].join(" "),immediate:g2.bk==2?!1:!0},g2.ad3)}}; +g2.ad3=function(a){if(a&&!a.error){g2.zJ=a;g2.bk=!1;g2.dJ()}else if(g2.bk==1){g2.bk=2;g2.dJ()}else alert("Error: "+a.error)}; +g2.sZ=function(){return"access_token="+g2.zJ.access_token+"&token_type="+g2.zJ.token_type};g2.Jp=function(){return g2.zJ.token_type+" "+g2.zJ.access_token}; +function cy(){}cy.Dh=function(a){var F=new Uint8Array(a),y=0,c={nz:[],vn:[],list:[]},Q=n.hd(F,y);y+=2; +if(Q<=2){return cy.ao6(F)}var S=n.hd(F,y);y+=2;var h=n.Os(F,y,8);y+=8;var d=n.s(F,y);y+=4;if(d>0)c.nz=cy.Ix(F,y,d,S,Q); +y+=d;var W=n.Os(F,y,8);y+=8;var w=n.s(F,y);y+=4;if(w>0)c.vn=eE.WG(F,y,w);y+=w;var J=n.Os(F,y,8);y+=8; +var A=n.s(F,y);y+=4;if(A>0){var T={};gz.RL(F,T,y+4);c.list=T.Brsh.v}y+=A;var o=c.list;for(var G=0;G>>G&1;if(d){if(S==0){var W=aW.zH(a,F);F+=2+2*W.length}else{var W=aW.al_(a,F); +F+=256}Q.push(W)}else Q.push(S==0?[0,0,255,255]:aW.a0X())}var w=i1.de("curv");for(var G=0;G<4;G++){if(S==0){var J=Q[G],A=[]; +for(var T=0;T1){}if(T){if(T.v.masterFXSwitch==null)T.v.masterFXSwitch={t:"bool",v:!0}; +hX.Et(T.v)}}return c};bb.yA=function(a,F){a.oe.Nm.v=F};bb.zD=function(a){var F=new ie,y=0;n.rL(F,y,2); +y+=2;n.Bf(F,y,"8BSL");y+=4;n.rL(F,y,3);y+=2;var c=y;y+=4;y=eE.b8(F,y,a.qH);n.Aq(F,c,y-c-4);var Q=a._5.length; +n.Aq(F,y,Q);y+=4;for(var G=0;G>>2)-16;console.log(n.dS(F,o,64)); +console.log(n.dS(T,o,64));console.log(F.slice(o,o+64));console.log(T.slice(o,o+64));throw G}return[c]}; +a5.l9=function(a,F){var y=n.s(a,F);return n.Os(a,F+4,y)};a5.M1=function(a,F,y){n.Aq(a,F,y.length);n.Bf(a,F+4,y)}; +a5.zD=function(a){var F=new ie,y=0;n.Aq(F,y,16);y+=4;n.Gs(F,y,a.J7+"\0");y+=4+a.J7.length*2+2;F.HF(y,1); +F.data[y++]=a.exp?1:0;var c=a.Ed.length;n.Aq(F,y,c);y+=4;for(var G=0;G>>2)}else if(c==3||c==4){W=new Float32Array(h*d*2); +var w=0,J=0,A=!0;y=c==3?32:16+8+40;while(y1e3)throw"e";if(y==0)y=4;return n.Os(a,F+4,y).trim()}; +gz.Zj=function(a,F){var y=n.Ad(a,F);return y==0?8:4+y};gz.MC=function(a,F,y){var c="warp list Comp xx xy yx yy tx ty PinP PnRt PnOv PnDp xor PuX0 PuX1 PuX2 PuX3 PuY0 PuY1 PuY2 PuY3 base kana ruby box flow trim then else".split(" "),Q=4=12)c[d].X0=n.Os(a,F+8,4); +break;case"lsdk":c.lsct={type:n.s(a,F)};break;case"lyvr":c[d]=n.s(a,F);break;case"lnsr":var A={artb:1,bgnd:1,cont:1,layr:1,lset:1,rend:1,shap:1,user:1,____:null}; +c[d]=n.Os(a,F,4);break;case"lspf":c[d]=n.s(a,F);break;case"lclr":c[d]=n.hd(a,F);break;case"luni":c[d]=n.SO(a,F); +break;case"fxrp":c[d]=new iS(n.Nt(a,F),n.Nt(a,F+8));break;case"artb":case"artd":c[d]={};gz.RL(a,c[d],F+4); +break;case"SoCo":c[d]={};gz.RL(a,c[d],F+4);break;case"GdFl":c[d]={};gz.RL(a,c[d],F+4);hX.L7(c[d],d); +break;case"PtFl":c[d]={};gz.RL(a,c[d],F+4);hX.L7(c[d],d);break;case"CgEd":var T=c.brit=i1.de("brit"),o={}; +gz.RL(a,o,F+4);T.Brgh.v=o.Brgh?o.Brgh.v:0;T.Cntr.v=o.Cntr?o.Cntr.v:0;T.useLegacy.v=o.useLegacy?o.useLegacy.v:0; +break;case"brit":if(c.brit==null){var T=c.brit=i1.de("brit"),o={};T.Brgh.v=n.Ob(a,F);T.Cntr.v=n.Ob(a,F+2); +T.useLegacy.v=!1}break;case"levl":var v=a.buffer.slice(F,F+W);c[d]=gM.Dh(v);break;case"curv":c[d]=aW.r4(a,F,W); +break;case"expA":var i=n.hd(a,F),N=c[d]=i1.de("expA");N.Exps.v=n.RS(a,F+2);N.Ofst.v=n.RS(a,F+6);N.gammaCorrection.v=n.RS(a,F+10); +break;case"vibA":c[d]={};gz.RL(a,c[d],F+4);break;case"hue2":c[d]=hJ.r4(a,F,W);break;case"blnc":var N=c[d]=i1.de(d); +N.PrsL.v=a[F+18]==1;var b=["ShdL","MdtL","HghL"];for(var G=0;G<3;G++)for(var q=0;q<3;q++)N[b[G]].v[q].v=n.Ob(a,F+G*6+q*2); +break;case"blwh":var O={};gz.RL(a,O,F+4);var N=i1.de(d),R="Bl Cyn Grn Mgnt Rd Yllw tintColor useTint".split(" "); +for(var G=0;G>0&1)==1;f.QN=(H>>1&1)==0;f.isEnabled=(H>>2&1)==0; +f.g=dE.lE(a,F+8,W-8,S.t,S.w);break;case"shmd":c[d]={};var B=n.s(a,F),M=F+4;for(var G=0;G>0&1){d=F[y];y++}if(T>>1&1){W=n.Nt(F,y);y+=8}if(T>>2&1){w=F[y];y++}if(T>>3&1){J=n.Nt(F,y); +y+=8}if((y-A&1)==1)y++;a.St=[d,W,w,J]}else{if(c==20)y+=2;else{a.Mq=f3.g1(F,y);y+=18}}return Q+c};f3.a45=function(a,F,y){n.Aq(F,y,0); +y+=4;if(a.N==null)return y;var c=a.QH(),Q=a.add.vmsk,S=y,h=!0;n.Aq(F,y,0);n.RT(F,y,a.N.rect);y+=16;n.GQ(F,y,a.N.color); +y+=1;f3.rS(a.N,F,y,h);y+=1;if(h){if(a.Mq){f3.a6s(F,y,a.Mq);y+=18}n.GQ(F,y,15);y+=1;n.GQ(F,y,c?c.Dt:255); +y+=1;n.$M(F,y,c?c.on:0);y+=8;n.GQ(F,y,Q?Q.Dt:255);y+=1;n.$M(F,y,Q?Q.on:0);y+=8;y++}n.Aq(F,S-4,y-S);return y}; +f3.g1=function(a,F){var y=new Y.Sh;f3._o(y,a,F);F+=1;y.color=a[F];F+=1;y.rect=n.u5(a,F);F+=16;return y}; +f3.a6s=function(a,F,y){f3.rS(y,a,F,!1);F+=1;n.GQ(a,F,y.color);F+=1;n.RT(a,F,y.rect);F+=16};f3._o=function(a,F,y){var c=F[y]; +a.QN=(c>>0&1)==0;a.isEnabled=(c>>1&1)==0;a.Sn=(c>>3&1)==1;return c>>4&1};f3.rS=function(a,F,y,c){var Q=0; +if(!a.QN)Q+=1<<0;if(!a.isEnabled)Q+=1<<1;if(a.Sn)Q+=1<<3;if(c)Q+=1<<4;n.GQ(F,y,Q)};f3.aos=function(a,F,y){var c=n.s(F,y); +y+=4;if(c==0)return y;if(c!=5*8)console.log("unexpected Layer Blending Ranges content, size:",c);for(var G=0; +G>>3),J=w&3,A=w+(J==0?0:4-J); +if(d<=0){return D.G(A)}if(h>3){console.log("unknown compression: "+h,c,Q,c*Q,d);h=0}if(h==0){if(S+A<=y.length)W=y.slice(S,S+A); +else{W=D.G(w);for(var G=0;G>>8; +i[k+1]=O&255}}}if(i.length==A)W=i;else{W=D.G(A);for(var G=0;G>>1]=W[G];W=L}return W};dY.Wi=function(a,F,y,c,Q,S,h){var d=c*Q;if(h==0)for(var G=0; +G0;h=Q,$-=dK){w=$<128?$:128;if(h<=d-3&&a[h+1]==a[h+0]&&a[h+2]==a[h+0]){for(Q=h+3; +Q=128){var d=a[F++],W=Q+(257-$);while(Q+1>>1];if(Q)Q.sW=n.hd(y,G)}}if(F.f7.r1072){var y=F.f7.r1072;for(var G=0; +G0){var w=a.add.Txt2?a.add.Txt2.UY:null; +a.add.Txt2={};a.add.Txt2.UY=il.acn(c,null,w)}var J=[a.add.lnk2,a.add.FEid,a.add.Patt],A=a.aif(a.u);a.i5(A); +a.f7.r1005=new Uint8Array([0,0,0,0,0,1,0,2,0,0,0,0,0,1,0,2]);n.Pb(a.f7.r1005,0,a.BD);n.Pb(a.f7.r1005,8,a.BD); +if(a.Vf()){a.f7.r1022=new Uint8Array([0,3+a.v6.length-1,0])}else delete a.f7.r1022;var T=new Uint8Array(a.u.length*2),v=new Uint8Array(a.u.length); +for(var G=0;Go)o=N;if(b==0)i=0}if(o>0)a.f7.r1026=T; +if(i<1)a.f7.r1072=v;var q=a.SQ,O=q.length,R=a.f7.r1032=D.G(16+5*O,!0);n.rP(R,0,1);n.rP(R,4,576);n.rP(R,8,576); +n.rP(R,12,O);for(var G=0;G8)aw._F(2,w-y,"Lay: "+d.getName());y=w;aw.CT(d,h); +if(W)aw.CT(W,h)}};aw.CT=function(a,F){var y=a.rect.L(),c=a.rect.Df(F),Q=c.L()/y;if(y>2e3*3e3&&Q<.5){if(a.buffer){var S=D.G(c.L()*4); +D.vD(a.buffer,a.rect,S,c);a.buffer=S;a.rect=c}else{var S=D.G(c.L());D.oR(a.channel,a.rect,S,c);a.channel=S; +a.rect=c}alert("Removing hidden parts of layers")}};aw.a1Y=function(a,F,y,c,Q){var S=y,h=a.T7;y+=h?8:4; +y=aw.hb(a,F,y,c,Q);var d=y-S-(h?8:4);if(d%2!=0)d++;if(h)n.CH(F,S,d);else n.Aq(F,S,d);return S+d+(h?8:4)}; +aw.hb=function(a,F,y,c,Q){var S=a.u.length;n.No(F,y,Q?-S:S);y+=2;var h=[];for(var G=0;G>>3)}else if(v==1){i=D.G(o);var q=a.T7?4:2;if(b==0)y+=a.QL*T*q;y+=dY.O0(F,i,A,T,N+b*T*q,y,q)}else{console.log("unknown compression of image data: ",v); +return}if(b".charCodeAt(0)){y+=2;break}else{var w=a[y];if(w==10||w==9||w==32)y++; +else{console.log("unknown byte: "+w+", char: "+String.fromCharCode(w),y);y++}}}return y};hy.yW=function(a,F,y,c){n.Bf(F,y,"<<\n"); +y+=3;var Q=hy.aoC;for(var S in a){n.GQ(F,y,"\t".charCodeAt(0),c+1);y+=c+1;n.Bf(F,y,"/"+S);y+=1+S.length; +if(Q(a[S])||a[S]instanceof Array){n.Bf(F,y," ");y++}else{n.Bf(F,y,"\n");y++;n.GQ(F,y,"\t".charCodeAt(0),c+1); +y+=c+1}y=hy.m$(a[S],F,y,c+1);n.Bf(F,y,"\n");y++}n.GQ(F,y,"\t".charCodeAt(0),c);y+=c;n.Bf(F,y,">>");y+=2; +return y};hy.zt=function(a,F,y,c){var Q=F,S={size:0,H:0};while(!0){while(a[F]==" ".charCodeAt(0)||a[F]=="\t".charCodeAt(0)||a[F]=="\n".charCodeAt(0))F++; +if(a[F]=="<".charCodeAt(0)){S.H={};F=hy.Vg(a,S.H,F,y+1);break}else if(a[F]=="(".charCodeAt(0)){F+=3; +var h=F;while(!0){if(a[h-1]!="\\".charCodeAt(0)&&a[h]==")".charCodeAt(0)&&(a[h+1]=="\n".charCodeAt(0)||a[h+1]==" ".charCodeAt(0)))break; +else h++}S.H=n.Jv(a,F,h);F=h+2;break}else if(a[F]=="[".charCodeAt(0)){F++;S.H=[];while(a[F]==" ".charCodeAt(0)||a[F]=="\t".charCodeAt(0)||a[F]=="\n".charCodeAt(0))F++; +while(a[F]!="]".charCodeAt(0)){var d=hy.zt(a,F,y+1,c);S.H.push(d.H);F+=d.size;while(a[F]==" ".charCodeAt(0)||a[F]=="\t".charCodeAt(0)||a[F]=="\n".charCodeAt(0))F++}F++; +break}else{var W=n.indexOf(a," ".charCodeAt(0),F,F+50),w=n.indexOf(a,"\n".charCodeAt(0),F,F+50);if(w==-1)w=Infinity; +if(W==-1)W=Infinity;var J=n.Os(a,F,Math.min(W,w)-F).trim(),A=parseFloat(J);if(!isNaN(A)){S.H=parseFloat(J); +F=Math.min(W,w)+1;break}else if(J=="true"||J=="false"){S.H=J=="true";F=Math.min(W,w)+1;break}else if(J=="null"||J=="NaN"||J=="undefined"){S.H=0; +F=Math.min(W,w)+1;break}else{console.log("unknown identifier: "+J);throw"e"}F=Math.min(W,w)+1}}S.size=F-Q; +return S};hy.m$=function(a,F,y,c){if(a instanceof Array){var Q=a.length==0||typeof a[0]=="number";if(Q){n.Bf(F,y,"[ "); +y+=2;for(var G=0;G>");y+=2;return y};ax.RH=function(a){return a==9||a==10||a==32};ax.eE=function(a,F,y,c){while(!0){while(ax.RH(a[y])||a[y]==0)y++; +if(y>=a.length)break;if(a[y]=="/".charCodeAt(0)){y++;var Q=y;while(!ax.RH(a[Q]))Q++;var S=n.Os(a,y,Q-y); +y=Q+1;var h=ax.zt(a,y,c,S);F["_"+S]=h.H;y+=h.size}else if(a[y]==">".charCodeAt(0)){y+=2;break}else{var d=a[y]; +console.log(n.Os(a,y,y+100));console.log("unknown byte: "+d+", char: "+String.fromCharCode(d)+", offset: "+y); +y++;throw"e";return-1}}return y};ax.tO=function(a,F,y,c){for(var Q in a){var S=Q.substring(1,Q.length); +n.Bf(F,y,"/"+S);y+=1+S.length;n.Bf(F,y," ");y++;y=ax.m$(a[Q],F,y,c+1);n.Bf(F,y," ");y++}return y};ax.zt=function(a,F,y,c){var Q=F,S={type:"",size:0,H:0}; +while(ax.RH(a[F]))F++;if(a[F]=="<".charCodeAt(0)){S.type="Object";S.H={};F=ax.Vg(a,S.H,F,y+1)}else if(a[F]=="(".charCodeAt(0)){S.type="String"; +F++;if(a[F]==")".charCodeAt(0)){S.H="s";F++}else{F+=2;var h=F,d=0;while(!0){if(a[h]==")".charCodeAt(0)&&a[h-1]!="\\".charCodeAt(0))break; +else h+=1}S.H="s"+n.Jv(a,F,h);F=h+2}}else if(a[F]=="[".charCodeAt(0)){F++;S.H=[];S.type="Array";while(ax.RH(a[F]))F++; +while(a[F]!="]".charCodeAt(0)){var W=ax.zt(a,F,y+1,c);if(W==-1)return-1;S.H.push(W.H);F+=W.size;delete W.size; +while(ax.RH(a[F]))F++}F++}else{var w=F;while(!ax.RH(a[w]))w++;var J=n.Os(a,F,w-F),A=parseFloat(J);if(!isNaN(A)&&J.indexOf(".")!=-1){S.type="Float"; +var T=parseFloat(J);S.H="f"+T}else if(!isNaN(A)&&J.indexOf(".")==-1){S.type="Integer";S.H="i"+parseInt(J)}else if(J=="true"||J=="false"){S.type="Boolean"; +S.H=J=="true"}else if(J.charAt(0)=="/"){S.type="BString";S.H=J}else if(J=="NaN"){S.type="Float";S.H="f0"}else{console.log("unknown value",JSON.stringify(J)); +throw"e"}F=w+1}S.size=F-Q;return S};ax.a4_=function(a){if(a==Math.round(a))return a+".0";var F=a.toFixed(5); +if(0=0;G--)a+=String.fromCharCode($>>G*8&255);return a};n.akq=function(a){var $=0;for(var G=a.length-1; +G>=0;G--)$|=a.charCodeAt(G)<<(3-G)*8;return $};n.indexOf=function(a,F,y,c){if(y==null)y=0;if(c==null)c=a.length; +c=Math.min(c,a.length);for(var G=y;G0){var h=F[0];for(var G=y;G>6; +F[y+G+1]=128|S>>0&63;G+=2}else if((S&4294967295-(1<<16)+1)==0){F[y+G]=224|S>>12;F[y+G+1]=128|S>>6&63; +F[y+G+2]=128|S>>0&63;G+=3}else if((S&4294967295-(1<<21)+1)==0){F[y+G]=240|S>>18;F[y+G+1]=128|S>>12&63; +F[y+G+2]=128|S>>6&63;F[y+G+3]=128|S>>0&63;G+=4}else throw"e"}return G};n.N6=function(a,F){var y=n.s(a,F),c=n.fz(a,F+4,y-1); +return{H2:c,QP:4+y}};n.abP=function(a,F){var y=n.Le(a,F),c=n.Fn(a,F+4,y);return c};n.SO=function(a,F){var y=n.s(a,F),c=n.MO(a,F+4,y); +return c};n.GJ=function(a,F){var y=n.s(a,F),c=n.MO(a,F+4,y-1);return c};n.aeo=function(a,F,y){n.P0(a,F,y.length); +F+=4;n.ac_(a,F,y)};n.a9u=function(a,F,y){n.rP(a,F,y.length);F+=4;n.RO(a,F,y)};n.Gs=function(a,F,y){a.HF(F,4+2*y.length); +n.a9u(a.data,F,y)};n.a1v=function(a,F,y){a.HF(F,4+2*y.length);n.aeo(a.data,F,y)};n.dS=function(a,F,y){var c=[]; +for(var G=0;G>8&255;a[F+1]=$&255};n.rL=function(a,F,$){a.HF(F,4);n.FB(a.data,F,$)};n.akA=function(a,F){var y=n.hd(a,F),c=n.hd(a,F+2); +return y+c*(1/65536)};n.Pb=function(a,F,$){var y=Math.floor($),c=Math.floor(($-y)*65536);n.FB(a,F,y); +n.FB(a,F+2,c)};n.HH=function(a,F){return a[F+1]<<8|a[F]};n.dj=function(a,F,$){a[F+1]=$>>8&255;a[F]=$&255}; +n.OZ=function(a,F,$){a.HF(F,4);n.dj(a.data,F,$)};n.Ob=function(a,F){n.Bh[0]=a[F+1];n.Bh[1]=a[F];return n.Xp[0]}; +n.L0=function(a,F){n.Bh[0]=a[F];n.Bh[1]=a[F+1];return n.Xp[0]};n.z0=n.FB;n.No=n.rL;n.Ad=function(a,F){n.Rt[0]=a[F+3]; +n.Rt[1]=a[F+2];n.Rt[2]=a[F+1];n.Rt[3]=a[F];return n.kg[0]};n.sx=function(a,F,$){n.kg[0]=$;a[F+3]=n.Rt[0]; +a[F+2]=n.Rt[1];a[F+1]=n.Rt[2];a[F+0]=n.Rt[3]};n.e2=function(a,F,$){a.HF(F,4);n.sx(a.data,F,$)};n.Tq=function(a,F,y,c){y[c+0]=a[F+0]; +y[c+1]=a[F+1];y[c+2]=a[F+2];y[c+3]=a[F+3]};n.Le=function(a,F){n.Tq(a,F,n.Rt,0);return n.Rv[0]};n.P0=function(a,F,$){n.Rv[0]=$; +n.Tq(n.Rt,0,a,F)};n.gj=function(a,F,$){a.HF(F,4);n.P0(a.data,F,$)};n.ri=function(a,F){n.Tq(a,F,n.Rt,0); +return n.kg[0]};n.aoX=function(a,F,$){n.kg[0]=$;n.Tq(n.Rt,0,a,F)};n.a9O=function(a,F,$){a.HF(F,4);n.aoX(a.data,F,$)}; +n.s=function(a,F){var y=a[F]*(256*256*256)+(a[F+1]<<16|a[F+2]<<8|a[F+3]);return y};n.rP=function(a,F,$){a[F]=$>>24&255; +a[F+1]=$>>16&255;a[F+2]=$>>8&255;a[F+3]=$>>0&255};n.Aq=function(a,F,$){a.HF(F,4);n.rP(a.data,F,$)};n.yX=function(a,F){return n.s(a,F)<<32|n.s(a,F+4)}; +n.a2=function(a,F,$){n.rP(a,F,$>>16>>16);n.rP(a,F+4,$&4294967295)};n.CH=function(a,F,$){a.HF(F,8);n.a2(a.data,F,$)}; +n.Nt=function(a,F){var y=new Uint8Array(8);for(var G=0;G<8;G++)y[G]=a[F+7-G];var c=new Float64Array(y.buffer); +return c[0]};n.l7=function(a,F){var y=new Uint8Array(8);for(var G=0;G<8;G++)y[G]=a[F+G];var c=new Float64Array(y.buffer); +return c[0]};n.fl=function(a,F,$){var y=new Float64Array(1);y[0]=$;var c=new Uint8Array(y.buffer);for(var G=0; +G<4;G++){var Q=c[G];c[G]=c[7-G];c[7-G]=Q}for(var G=0;G<8;G++)a[F+G]=c[G]};n.$M=function(a,F,$){a.HF(F,8); +n.fl(a.data,F,$)};n.RS=function(a,F){n.Rt[0]=a[F+3];n.Rt[1]=a[F+2];n.Rt[2]=a[F+1];n.Rt[3]=a[F+0];return n.xr[0]}; +n.RX=function(a,F){n.Rt[0]=a[F+0];n.Rt[1]=a[F+1];n.Rt[2]=a[F+2];n.Rt[3]=a[F+3];return n.xr[0]};n.UO=function(a,F,$){n.xr[0]=$; +a[F+0]=n.Rt[3];a[F+1]=n.Rt[2];a[F+2]=n.Rt[1];a[F+3]=n.Rt[0]};n.apq=function(a,F,$){a.HF(F,4);n.UO(a.data,F,$)}; +n.LQ=function(a,F,$){n.xr[0]=$;a[F+0]=n.Rt[0];a[F+1]=n.Rt[1];a[F+2]=n.Rt[2];a[F+3]=n.Rt[3]};n.a3Z=function(a,F,$){a.HF(F,4); +n.LQ(a.data,F,$)};n.a4z=function(a,F){var y=n.Ad(a,F),c=y*(1/(1<<24));return c};n.ls=function(a,F,y){var c=Math.floor(y*(1<<24)); +n.sx(a,F,c)};n.a0K=function(a,F,y){a.HF(F,4);n.ls(a.data,F,y)};n.Rk=function(a,F){var y=a[F],c=n.Os(a,F+1,y); +y+=1-y%2;return{cu:c,length:y+1}};n.a9L=function(a,F,y){var c=y.length;a[F]=c;n.y4(a,F+1,y);if(c%2==0){a[F+1+c]=0; +++c}return c+1};n.r8=function(a,F,y){a.HF(F,y.length+2);return n.a9L(a.data,F,y)};n.vr=function(a,F){var y=new hg; +y.re=n.Nt(a,F+0*8);y.d=n.Nt(a,F+1*8);y.Xa=n.Nt(a,F+2*8);y.XL=n.Nt(a,F+3*8);y.iU=n.Nt(a,F+4*8);y.ma=n.Nt(a,F+5*8); +return y};n.ZH=function(a,F,y){n.fl(a,F+0*8,y.re);n.fl(a,F+1*8,y.d);n.fl(a,F+2*8,y.Xa);n.fl(a,F+3*8,y.XL); +n.fl(a,F+4*8,y.iU);n.fl(a,F+5*8,y.ma)};n.and=function(a,F,y){a.HF(F,48);n.ZH(a.data,F,y)};n.a2n=function(a,F){var y=n.RS(a,F),c=n.RS(a,F+4),Q=n.RS(a,F+8),S=n.RS(a,F+12); +return new cJ(y,c,Q-y,S-c)};n.aqf=function(a,F,y){n.UO(a,F,y.x);n.UO(a,F+4,y.y);n.UO(a,F+8,y.x+y.t); +n.UO(a,F+12,y.y+y.w)};n.afa=function(a,F,y){a.HF(F,16);n.aqf(a.data,F,y)};n.u5=function(a,F){var y=n.Ad(a,F),c=n.Ad(a,F+4),Q=n.Ad(a,F+8),S=n.Ad(a,F+12); +return new cJ(c,y,S-c,Q-y)};n.Kj=function(a,F,y){n.sx(a,F,y.y);n.sx(a,F+4,y.x);n.sx(a,F+8,y.y+y.w);n.sx(a,F+12,y.x+y.t)}; +n.RT=function(a,F,y){a.HF(F,16);n.Kj(a.data,F,y)};n.j0=function(a,F,y){var c=new Uint8Array(y);for(var G=0; +G=this.x&&a<=this.x+this.t&&(F>=this.y&&F<=this.y+this.w)}; +cJ.prototype.t$=function(a){return this.contains(a.x,a.y)};cJ.prototype.pE=function(a){return this.x<=a.x&&this.y<=a.y&&a.x+a.t<=this.x+this.t&&a.y+a.w<=this.y+this.w}; +cJ.prototype.Nv=function(a){this.x=a.x;this.y=a.y;this.t=a.t;this.w=a.w};cJ.prototype.pI=function(a){return this.x==a.x&&this.y==a.y&&this.t==a.t&&this.w==a.w}; +cJ.prototype.Pl=function(a,F){this.x-=a;this.y-=F;this.t+=2*a;this.w+=2*F};cJ.prototype.ahV=function(a){this.Pl(a.x,a.y)}; +cJ.prototype.Df=function(a){var F=Math.max(this.x,a.x),y=Math.max(this.y,a.y),c=Math.min(this.x+this.t,a.x+a.t),Q=Math.min(this.y+this.w,a.y+a.w); +if(cthis.x+this.t||a.y>this.y+this.w||a.x+a.t=7){W=W}else alert("Unknown XCF version: "+S); +d=8}var w={};c=fS.L4(y,c,w);var J=[];c=fS.hx(y,c,J,d);var A=[];c=fS.hx(y,c,A,d);F.il=0;for(var G=0;G0){F.u.push(F.Lc());F.il--}F.u.reverse();delete F.il;F.buffer=D.G(F.t*F.w*4); +if(F.u.length==0)console.log("No layers!!!");for(var G=0;GA){y.u.push(y.Lc()); +y.il--}y.il=A;if(h.add.lsct==fc.bc||h.add.lsct==fc.$K)y.il++;var Z=Q==4?n.s:n.yX;if(h.bV()){h.buffer=D.G(h.rect.L()*4); +var aR=new D.xY(h.rect.L()),hY=Z(a,F);F+=Q;var j3=Z(a,F);F+=Q;fS.P8(a,hY,aR,c,Q,S);D.Xy(aR,h.buffer); +if(j3!=0){h.N=new Y.Sh;h.N.color=0;h.N.rect=h.rect.clone();h.N.channel=fS.Lr(a,j3,c,Q,S).SS;if(T[e4.QB])h.N.isEnabled=n.s(T[e4.QB],0)==1}}y.u.push(h)}; +fS.a6B=function(a){var F="("+n.fz(a,0,a.length-1)+")",y=[],c={};fS.RD(F,1,y);fS.apj(y,c);return c};fS.apj=function(a,F){for(var G=0; +G=a.length)throw"e"; +var c=a.charAt(F);F++;if(c=="("){var Q=[];F=fS.RD(a,F,Q);y.push(Q)}else if(c==" "||c=="\n"||c=="\r"){}else if(c==")")return F; +else if(c=="\""){var S=F;while(!0){var h=a[F];F++;if(h=="\"")break;if(h=="\\")F++}y.push(JSON.parse(a.slice(S-1,F)))}else{var S=F-1; +while(a[F]!=" "&&a[F]!=")")F++;y.push(a.slice(S,F))}}};fS.Lr=function(a,F,y,c,Q){var S=n.s(a,F);F+=4; +var h=n.s(a,F);F+=4;var d=n.N6(a,F);F+=d.QP;var W={};F=fS.L4(a,F,W);var w=new D.xY(S*h),J=c==4?n.s:n.yX,A=J(a,F); +F+=c;fS.P8(a,A,w,y,c,Q);return{SS:w.i,je:W}};fS.P8=function(a,F,y,c,Q,S){var h=n.s(a,F);F+=4;var d=n.s(a,F); +F+=4;var W=n.s(a,F);F+=4;var w=Q==4?n.s:n.yX,J=w(a,F);F+=Q;fS.ae1(a,J,y,c,W,Q,S)};fS.ae1=function(a,F,y,c,Q,S,h){var d=n.s(a,F),J=0,G=0; +F+=4;var W=n.s(a,F);F+=4;var w=new cJ(0,0,d,W);if(h==100||h==150)J=1;else if(h==200||h==250)J=2;else if(h==300||h==350)J=4; +else if(h==500||h==550)J=2;else if(h==600||h==650)J=4;else if(h==700||h==750)J=8;else{alert("unsupported bit depth "+h); +throw"e"}var A=Q/J,J=Math.round(Q/A),T=[];F=fS.hx(a,F,T,S);var o=new D.xY(64*64*J),v=new cJ,i=c[e4.a9N][0],N=[o.i,o.m,o.d,o.re]; +if(A==3)o.re.fill(255);var b=Date.now();for(var q=0;q>>8,255)}}}else if(h==600){var I=fS.aeG(),j=new Uint32Array(1),r=new Float32Array(j.buffer); +for(var C=0;C1)s=1;t[_]=I[~~(.5+s*1e3)]}}}else console.log("unknown data format",h); +D.rv(o,v,y,w)}};fS.aeG=function(){var a=fS.aiM;if(a!=null)return a;a=fS.aiM=new Uint8Array(1001);for(var G=0; +G<1001;G++)a[G]=~~(.49+255*D.iL(G*.001));return a};fS.a0t=function(a,F,y,c,Q,S){if(c==1){for(var h=0; +h127)r=N(_,L,C);else r=b(_,L,C);k[j]=r}}function N(k,L,C){var t=[];k=k&127;if(k==43)y+=4;var _=d(); +if(k==50){var M=c(),I=h();if(I!=1)throw"e";for(var G=0;G<_;G++){var j={_status:"NotShared",_type:M}; +t.push(j);var r=S();if(r!=1)throw r;i(j,L+1,C)}}else for(var G=0;G<_;G++){t.push(b(k,L,C));if(k==42)k=2}return t}function b(k,L,C){var t=null; +if(k==49){t={};var _=S();if(_!=0){var M=d();if(C==null){t._id=M;t._status=["Shared","Link"][_-1]}if(C&&_==2)t=C[M]; +if(_==1){if(C)C[M]=t;var I=S(),j=!1;if(I>1)throw I;t._type=c();if(a)console.log(" ".repeat(L),"new",t._type,I,y); +if(I==0){while(!0){var r=h();if(r!=0&&r!=1&&r!=2&&r!=4)throw r;if(F[y]!=0){j=!0;break}var s=h();if(s==512)break; +var e=c();if(s==256)break}}i(t,L+1,C,j)}}}else if(k==50){t={_status:"NotShared"};if(S()==1){t._type=c(); +y+=2;i(t,L+1,C)}}else if(k==1)t={type:"byte",value:S()};else if(k==2)t={type:"uint16",value:h()};else if(k==3)t={type:"uint32",value:d()}; +else if(k==4)t={type:"uint64",value:w()};else if(k==7)t={type:"int32",value:W()};else if(k==8)t={type:"int64",value:w()}; +else if(k==9)t={type:"float32",value:J()};else if(k==10)t={type:"float64",value:A()};else if(k==21)t={type:"Vec2i",value:[d(),d()]}; +else if(k==23)t={type:"Vec4i",value:[d(),d(),d(),d()]};else if(k==33)t={type:"Vec4f",value:[J(),J(),J(),J()]}; +else if(k==36)t={type:"Vec2",value:[A(),A()]};else if(k==38)t={type:"Vec4",value:[A(),A(),A(),A()]}; +else if(k==40)t={type:"Vec6",value:[A(),A(),A(),A(),A(),A()]};else if(k==41)t={type:"bool",value:S()!=0}; +else if(k==42)t={type:"Enum",value:d()};else if(k==43)t={type:"string",value:o()};else if(k==44){var P=h(); +t={type:"curv16",value:[A(),P==12?[S(),S(),S(),S()]:[d(),d()]]}}else if(k==45){var P=d();t={type:"buff",value:F.slice(y,y+P)}; +y+=P}else if(k==47){t={type:"uint32",value:d()}}else if(k==48){var l=[],x=h();if(x!=1)throw x;if(F[y]==135){var E=N(S(),L+1,C),p=N(S(),L+1,C),f=N(S(),L+1,C); +l=[E,p,f]}else{var H=1;if(F[y]==3){S();H=d()}for(var G=0;G2e3)throw g;for(var Z=0;Z>>5&1,H=p&3,g=p&192; +switch(g){case 64:g=1;f=0;break;case 128:g=2;break;case 192:g=3;break;default:g=0;f=0}var B=new Uint8Array(F.buffer,y,E[2]); +if(H==0)U=B;else if(H==1)U=pako.inflate(B);else if(H==2)U=f$.A3.ej(B,E[1]);else throw H;if(f==0){if(g==1)q(U); +if(g==2)throw"e"}else throw f;P[E[4]]=U}return P}function R(k){var L=O(new Uint8Array(k));F=L["doc.dat"]; +y=16;var C={};i(C,0,[]);return[L,C]}return{ahF:R}}();function gE(){}gE.Dh=function(){function a(T,o){var v=Date.now(),i=h3.ahF(T),N=i[0],b=i[1],q=b.DocR,O=q.DfSz,R=q.Chld; +if(R.length!=1)throw"e";var k=R[0],L=k.SprB;R=k.Chld;o.t=~~L[2];o.w=~~L[3];o.buffer=D.G(o.t*o.w*4);var C=[0,{}]; +for(var G=0;G>>8,R=b>>>8; +for(var k=0;k1)console.log(c.pages.length,"pages");var Q=[],h=new cJ;for(var d=0;d8e3*8e3||J.t>3e4||J.w>3e4){y.j5(w,!0);var A=y.zO(w,d); +if(A.L()>=J.L())y.j5(w,!1)}J=y.zO(w,d);for(var o=0;oF||Math.max(Math.round(a.t/y),Math.round(a.w/y))>3e4)y++; +if(y!=1&&!window.confirm("Your image is quite large ("+a.t+" x "+a.w+" px).\n"+"Press OK to scale it down "+y+"x, or Cancel to keep the size."))y=1; +return y};fR.zO=function(a,F){var y=[],c=fR;for(var Q=0;Q3e4&&W.t<=3e4||d.w>3e4&&W.w<=3e4){alert("Re-arranging artboards"); +for(var Q=0;Q1&&_.image!=null)t=!0}if(J.shouldBreakMaskChain){while(W.length!=0)d.U_(W.pop(),F)}if(N){k.add.lsct=J.layerListExpandedType==2?fc.bc:fc.$K; +k.X0="pass";k._8=24;k.Ig(J.isVisible);F.u.push(F.Lc());if(v=="artboard"){var M=A.clone(),I=o.Ms();M.x=-Math.floor(o.iU/I); +M.y=-Math.floor(o.ma/I);M.t=Math.floor(M.t/I);M.w=Math.floor(M.w/I);k.GF(M);var j=J.backgroundColor,r=j?{i:255*j.red,m:255*j.green,d:255*j.blue}:{i:255,m:255,d:255}; +k.add.artb.Clr={t:"Objc",v:D.V.HT(r)};k.add.artb.artboardBackgroundType={t:"long",v:4}}d.AM(J.layers,F,o,c,Q,S,h)}else if(i&&!t){k.add.vmsk=new Y.G2; +k.add.vstk=JSON.parse(JSON.stringify(aX.ln.default));k.add.vstk.strokeEnabled.v=!1;k.add.vogk=[];var s=C!=null&&C.frameFXMulti.v.length==1,e=T?T.fills:null,P=T?d.xh(c,e,A,o,k.getName(),F,d.z1(h,J.do_objectID+"_image")):[]; +if(P.length==0){if(s)k.add.vstk.fillEnabled.v=!1;else k.add.iOpa=0;k.add.SoCo={classID:"null",Clr:{t:"Objc",v:D.V.HT({i:0,m:0,d:0})}}}else{var l=P[0],x=null,E=null; +if(l.type=="SoFi"){x="SoCo";E=aX.HN}if(l.type=="GrFl"){x="GdFl";E=aX.pX}if(l.type=="patternFill"){x="PtFl"; +E=aX.BZ}if(x!=null){k.add[x]={classID:"null"};for(var G=0;G0)e7/=2;var eB=cY.v.Fltr.v; +eB.Brgh.v=Math.round(ho*255);eB.Cntr.v=Math.round(e7*255);eB.useLegacy.v=!0;e.push(cY)}}}if(t){var et=j3.patternFillType; +if(et==3){var ao=k.rect.t/k.rect.w,eM=A.t/A.w;if(aobe.length){a2[a2.length-2]--; +iz--;if(a2[a2.length-2]==0){a2.pop();a2.pop()}}a2[a2.length-2]+=be.length-iz}be=be.replace(/\u2028/g,"\n"); +be=be.replace(/\u2029/g,"\n");be=be.replace(/\r/g,"\n");var aL=k.add.TySh.KU;eA.fg(aL,0,be);if(be!=""){var az=J.textBehaviour,hu=T.textStyle,aV=hu?hu.verticalAlignment:0,bQ=d.any(aL,a2,hA,be),I=cQ.Ms(),dN=eA.ot(aL,0,1),dQ=0; +if(dN.kM.Font){var h0=dN.yH[dN.kM.Font].Name;if(h0=="FontAwesome"||h0=="Ionicons")bQ*=.87}var gl=dN.kM.AutoLeading?0:dN.kM.Leading*.6,di=Math.max(bQ,gl)*I,c4=A.t,dp=A.w; +if(az==0){eA.yK(aL,0);var eI=eA.wO(dN.$0);if(eI==1)dQ=c4*I;if(eI==2)dQ=c4*I*.5;if(aV==0)di*=1;else di*=.9}else{eA.yK(aL,1); +eA.wM(aL,[0,0,Math.round(c4),Math.round(dp)]);if(az==2&&aV==0)di=di*.2;else if(az==2&&aV==1){di=I*.5*(dp-dN.kM.FontSize)}else if(az==1&&aV==0)di=di*.2; +else di=di*.35}k.add.TySh.q.translate(dQ,di)}}else if(v=="symbolInstance"||v=="symbolMaster"){var g8=J.symbolID; +if(S[J.do_objectID])g8=S[J.do_objectID].symbolID;var gp=d.z1(h,J.do_objectID+"_symbolID");if(gp)g8=gp.value; +if(g8=="")continue;var iI={};for(var p in S)iI[p]=S[p];if(J.overrides)for(var p in J.overrides)iI[p]=J.overrides[p]; +var cS=h.slice(0);if(J.overrideValues)cS=cS.concat(J.overrideValues);var bp=Q[g8];if(bp==null){console.log("Unknown master master",J.symbolID); +continue}var dU=fR.u5(bp.vs.frame),dh=dU.t/A.t,e0=dU.w/A.w,eq=o.clone();eq.scale(dh,e0);k.add.lsct=fc.$K; +k.X0="pass";k._8=24;k.Ig(J.isVisible);F.u.push(F.Lc());var gO=bp.vs;if(F.Qk.indexOf(gO)==-1){F.Qk.push(gO); +d.AM(gO.layers,F,eq,c,Q,iI,cS);F.Qk.pop()}}else if(v=="slice"){console.log("slice layers are ignored by now"); +continue}else{console.log("unknown layer type: "+v,J);continue}if(T&&T.contextSettings){var ef=T.contextSettings,aF=ef.blendMode; +if(aF1){W.push(k);F.u.push(F.Lc())}}while(W.length!=0)d.U_(W.pop(),F)};fR.z1=function(a,F){for(var G=0; +G127){Q+=128*(a[y]-1);y++;if(a[y-1]>127){Q+=128*(a[y]-1);y++}}var S=a[y];y++;c.push(Q,S)}return c}; +fR.any=function(a,F,y,c){var Q=fR,S=0,J=0,A=0;for(var G=0;Gc.length/2;for(var G=0;G0; +var M=v.NSStrikethrough;if(M==null)M=v.strikethroughStyle;if(M!=null)i.kM.Strikethrough=M>0;if(v.MSAttributedStringTextTransformAttribute==1)i.kM.FontCaps=2; +var I=v.NSParagraphStyle;if(I==null)I=v.paragraphStyle;if(I){var j=I.paragraphSpacing;if(j!=null){i.$0.SpaceAfter=j}var r=I.NSAlignment; +if(r==null)r=I.alignment;if(r!=null){var s=0;if(!1){}else if(r==1)s=1;else if(r==2)s=2;else if(r==4)s=0; +else{s=r;console.log("unknown align",r)}if(w&&s<2)s=1-s;i.$0.Justification=s}var e=I.NSMinLineHeight; +if(e==null)e=I.minimumLineHeight;if(e!=null){i.kM.AutoLeading=!1;i.kM.Leading=e}}i.$0._Direction=w?1:0; +eA.wC(a,J,J+T,i);J+=T}return A};fR.ajN=function(a,F,y,c,Q,S,h){var d=fR,W=JSON.parse(aX.default),w=!1; +for(var G=0;G1e6; +if(C.type!="text"&&!_){if(t){var J=h.vr(C.transform);J.kW();var M=A.clone();M.concat(J);T.add.vmsk=new Y.G2; +T.add.vmsk.g=h.TF(t);M=M.clone();M.kW();D.A.dc(T.add.vmsk.g,M);T.Ja(F)}}else if(!_)alert("Clipping by text has been ignored")}T.add.lsct=fc.bc; +T.X0="pass";T._8=24;if(a.visible!=null)T.Ig(a.visible);F.u.push(F.Lc());var I=W.children,j=N;if(j)j=j.color; +if(j)j=j.value;if(N){if(d=="artboard"&&b=="solid"){T.GF(new cJ(0,0,10,10));T.add.artb.Clr={t:"Objc",v:D.V.HT({i:j.r,m:j.g,d:j.b})}; +T.add.artb.artboardBackgroundType={t:"long",v:4}}else{var r=F.kD();r.k0("BACKGROUND");r._8|=16;r.add.vstk=JSON.parse(JSON.stringify(aX.ln.default)); +r.add.vmsk=new Y.G2;r.add.vmsk.g=h.TF({type:"rect",x:S.x,y:S.y,width:S.t,height:S.w});h.Bu(N,b,A,S,S,r,F,c,Q); +r.Ja(F);F.u.push(r)}}for(var G=0;G>>16&255)/255,(i5>>>8&255)/255,(i5>>>0&255)/255]}}eA.wC(eB,cQ,cQ+a2,ao); +cQ+=a2}if(e7.type=="area"||e7.type=="autoHeight"){var iz=e7.width,aL=e7.height;eA.yK(eB,1);eA.wM(eB,[0,0,iz,aL!=null?aL:iz*2])}}else console.log(d,a); +F.u.push(T)};ce.TF=function(a){var F=a.type,y=[{type:6},{type:8,all:0}];if(F=="rect"){var c=a.r,Q=a.x,S=a.y,h=a.width,d=a.height; +if(c==null)y=D.A.yP.Rect(Q,S,h,d,0);else{var W=D.A.FD([Q,S,Q+h,S,Q+h,S+d,Q,S+d],c,!1);y.push({type:0,oa:1,length:W.length,XY:0,BA:0,hU:1}); +y=y.concat(W)}}else if(F=="circle"){var c=a.r;y=D.A.yP.KJ(a.cx-c,a.cy-c,2*c,2*c)}else if(F=="ellipse"){var w=a.rx,J=a.ry; +y=D.A.yP.KJ(a.cx-w,a.cy-J,2*w,2*J)}else if(F=="path"||F=="compound"){var A=Typr.U.SVGToPath(a.path); +y=D.M.nM({F:A.cmds,I:A.crds},!1)}else if(F=="line"){var T=a.x1,o=a.x2,v=a.y1,i=a.y2;y=y.concat([{type:0,oa:1,length:2,XY:0,BA:0,hU:1}]).concat(D.A.FD([T,v,o,i],0,!0))}else if(F=="polygon"){var N=a.points,W=[]; +for(var G=0;G8192)o*=.5;F.uy=!0;F.t=~~(W.t*o);F.w=~~(W.w*o);F.buffer=D.G(F.t*F.w*4); +var v=new hg(o,0,0,o,-W.x*o,-W.y*o),i={aN:dD.yL(d),a3z:h};dD.gF(S,d.children,F,v,i,new hg,0);if(F.u.length==0){var N=F.kD(); +N.k0("Layer");F.u.push(N)}};dD.Y$=function(a){var F=" ";if(a.indexOf(",")!=-1)F=",";return a.split(F).map(parseFloat)}; +dD.gF=function(a,F,y,c,Q,S,h){var d=dD,W=["display","opacity","fill-opacity"];for(var w=0;w0){if(A=="text")S=d.DV(J,S); +var l=J.getAttribute("viewBox"),x=J.getAttribute("width"),E=J.getAttribute("height");if(l&&x&&E){var p=dD.Y$(l),f=d.DV(J),H=new hg; +H.translate(-p[0],-p[1]);H.scale(parseFloat(x)/p[2],parseFloat(E)/p[3]);H.translate(f.iU,f.ma);H.concat(N); +N=H}var g=J.children.length,B=Q.aN;Q.aN=o;var U=A!="text"&&A!="textPath"||g>1;if(U){var Z=O.xg();O.add.lsct=h<2&&Z&&(T==null||!T.endsWith(":::"))?fc.bc:fc.$K; +O.X0="pass";O._8=24;O.Ig(Z);y.u.push(y.Lc())}d.gF(a,J.children,y,N,Q,S,h+1);if(U)y.u.push(O);else{var aR=y.u[y.u.length-1]; +aR.opacity=O.opacity;aR.X0=O.X0}Q.aN=B}else if(A=="use"){var H=d.DV(J);H.concat(N);var hY=d.zY(J),j3=a.getElementById(hY.slice(1)),B=Q.aN; +Q.aN=o;d.gF(a,[j3],y,H,Q,S,h+1);Q.aN=B}else if(A=="path"||A=="rect"||A=="circle"||A=="ellipse"||A=="polygon"||A=="polyline"||A=="line"){O._8|=16; +O.add.vmsk=new Y.G2;O.add.vstk=JSON.parse(JSON.stringify(aX.ln.default));O.add.vstk.strokeEnabled.v=!1; +var X=O.add.vstk,j=O.add.vmsk,c9=o.fill,hW=c9=="none"||o["fill-opacity"]&&parseFloat(o["fill-opacity"])==0; +j.g=d.TF(a,J,o["fill-rule"]=="evenodd",hW);D.A.dc(j.g,N);var cY=D.A.WL(j.g),ho=o.stroke,e7=o["stroke-width"],b2=o["stroke-dasharray"],aB=o["stroke-linejoin"],eB=o["stroke-linecap"],et=o["paint-order"]; +if(ho==null||ho=="none"||ho=="null"){}else{var ao=d.i1(a,ho,N,cY),eM=["SoFi","GrFl","patternFill"].indexOf(ao.type),eT=ao.H.v.Opct.v,hA=1; +if(eT.val!=100){O.opacity=Math.round(O.opacity*eT.val/100);eT.val=100}var cQ=[aX.HN,aX.pX,aX.BZ][eM],a2=X.strokeStyleContent.v={classID:aX.ln.PD[eM]}; +for(var G=0;G0){var iz=d.yL(J.children[0],Q.a3z);for(var v in iz)if(W.indexOf(v)==-1)o[v]=iz[v]}var aL=o["xml:space"],az=J.textContent; +if(aL=="preserve")az=az.replace(/\t/g," ").replace(/\n/g," ");if(T==null)O.k0(az);O.add.lnsr="rend"; +O.add.TySh=eA.X9(0,0);O.add.TySh.pA=new cJ(0,0,100,100);O.add.TySh.q=H.clone();var hu=O.add.TySh.KU; +eA.fg(hu,0,az);var c9=o.fill,aV=o["font-weight"],bQ=o["font-family"],dN=o["text-decoration"],ho=o.stroke,e7=o["stroke-width"],h0=o["dominant-baseline"]; +if(h0=="text-before-edge")gl=i;else if(h0=="middle")gl=i/2;else if(h0=="hanging")gl=i;if(gl!=0)O.add.TySh.q.translate(0,gl); +var dQ=eA.ot(hu,0,1);if(c9&&c9!="none"){var di=CSS.x7(c9);dQ.kM.FillColor={Type:1,Values:[1,di.i/255,di.m/255,di.d/255]}}if(dN=="underline")dQ.kM.Underline=!0; +dQ.kM.FontSize=Math.round(i);eA.BW(dQ,"LiberationSans");if(aV=="bold")eA.BW(dQ,"LiberationSans-Bold"); +if(bQ){bQ=bQ.split(",")[0].trim();if(bQ[0]=="\"")bQ=bQ.slice(1);if(bQ[bQ.length-1]=="\"")bQ=bQ.slice(0,bQ.length-1); +var c4=bQ+":"+(aV?aV:"normal"),dp={"'DejaVu Sans':normal":"DejaVuSans","'DejaVu Sans':bold":"DejaVuSans-Bold","'Nimbus Sans L':normal":"NimbusSanL-Reg","'Nimbus Sans L':bold":"NimbusSanL-Bol","Libre Franklin:300":"LibreFranklin-Light","Libre Franklin:400":"LibreFranklin-Regular","Libre Franklin:500":"LibreFranklin-Medium","Libre Franklin:600":"LibreFranklin-SemiBold","Libre Franklin:700":"LibreFranklin-Bold"}; +if(dp[c4])eA.BW(dQ,dp[c4]);else eA.BW(dQ,bQ)}if(o["text-anchor"])dQ.$0.Justification=["start","end","middle"].indexOf(o["text-anchor"]); +eA.wC(hu,0,az.length,dQ);if(ho==null||ho=="none"){}else{var eI=JSON.parse(aX._O[aX.order.indexOf("FrFX")]); +eI.Clr.v=D.V.HT(CSS.x7(ho));eI.Sz.v.val=Math.round(parseFloat(e7)*m.p.Ms(H));var g8=JSON.parse(aX.default); +for(var G=0;G"); +var d={ES:[],Ed:[],Gh:0,qL:0,m_:0,D0:{},Qf:{},SI:0,_5:{},kJ:{},oL:0,G6:[]};dD.hb(a,d,a.root.children,1,F,y); +if(d.ES.length!=0){c.push(Q.dD(1)+"");c=c.concat(d.ES);c.push(Q.dD(1)+"")}c.push(Q.dD(1)+"");c=c.concat(d.Ed);c.push("");c=c.join(F.aky?"\n":"");if(Q._0){console.log(Q._0); +var w="SVGParser.gen.db = [\n";for(var G=0;G");h.hb(a,F,M,c+1,Q,S); +F.Ed.push(h.dD(c)+"")}}else if(J.V6()&&T==null){var I=new cJ(0,0,a.t,a.w);h.$i(i,J.add,F,I);if(i.length!=0)O.push("style=\""+i.join(";")+"\""); +F.Ed.push(h.dD(c)+"")}else if(T&&J.add.SoLd==null){var I=D.A.WL(T.g,null,!0),j=D.A.cH(T.g); +if(j.sb!=0){O.push("fill-rule=\"evenodd\"")}var r=j.amM;h.$i(i,J.add,F,I);if(i.length!=0){var s=i.join(";"),e=F.kJ[s]; +if(e==null){e="shp"+F.oL;F.oL++;F.kJ[s]=e;F._5[e]=s}R.push(e)}F.Ed.push(h.dD(c)+""); +if(h._0&&h._0[h._0.length-1]){var P=D.M.A8(T.g);P.I=P.I.map(Math.round);var l=h._0[h._0.length-1];l.xW+=JSON.stringify(P).length; +l.E8.push([i[0].split("#").pop(),P])}}else if(v&&Q.a2v){var x=v.KU,E=new fD(x,S),p=null;if(t)p=CSS.Ok(t.Clr.v); +if(_){var I=J.rect.clone();h.mz(_,F,I);p=" url(#grd"+F.Gh+")"}if(p)O.push("fill=\""+p+"\"");W(J,i);if(i.length!=0)O.push("style=\""+i.join(";")+"\""); +var f=a4.Rp(E,v),H=D.M.PH(f);for(var g in H){if(p==null)O.push("fill=\""+g+"\"");var B=H[g],r=Typr.U.pathToSVG({crds:B.I,cmds:B.F},2); +F.Ed.push(h.dD(c)+"");if(p==null)O.pop()}}else if(v&&!Q.a3p){var x=v.KU,U=v.q.clone(),p=null,cY=0,ho=0; +if(eA.Lv(x)==1){var Z=eA.ot(x,0,0).$0.Justification,aR=0,hY=eA.x0(x)[2];if(Z==2)aR=hY/2;if(Z==1)aR=hY; +U.translate(aR,0)}i.push("transform: "+h.ZH(U));var j3=eA.AC(x),X=x.EngineDict.ParagraphRun,c9=X.RunArray,hW=X.RunLengthArray; +W(J,i);if(i.length!=0)O.push("style=\""+i.join(";")+"\"");F.Ed.push(h.dD(c)+""); +if(t)p=CSS.Ok(t.Clr.v);if(_){var I=J.rect.clone();I.x-=U.iU;I.y-=U.ma;h.mz(_,F,I);p=" url(#grd"+F.Gh+")"}for(var G=0; +G"+h.cu(aB)+"")}cY+=b2}F.Ed.push(h.dD(c)+"")}else if(J.add.SoLd&&Q.Ks){var a2=J.add.SoLd,hA=a2.Idnt.v,gH=0,be=a2.Crop?a2.Crop.v:null; +if(F.Qf[hA]!=null)gH=F.Qf[hA];else{F.SI++;gH=F.SI;F.Qf[hA]=F.SI;var e5=a.Vw(hA,be),aL="";if(e5==null)return; +var i5=e5.n4,iz=f$.vl(e5.raw.buffer);if(iz=="pdf"){var az=new iO("h");f$.QS("PDF").YP(e5.raw.buffer,az); +az.h4();az.Wa();az.T();az.P9();if(a2.Crop&&a2.Crop.v==1){m.tN.Bp(az,az.root.pl(az,!0))}var hu=f$.QS("SVG").lQ(az,az.t,az.w,null,{G6:S}); +aL="data:image/svg+xml;base64,"+f$.YD(hu)}else if(iz=="jpg"||iz=="png"||iz=="gif"||iz=="svg"){var aV={jpg:"image/jpg",png:"image/png",jpg:"image/jpg",svg:"image/svg+xml"}; +aL="data:"+aV[iz]+";base64,"+f$.YD(e5.raw.buffer)}else{aL=f$.m9(i5[0].buffer,i5[1].t,i5[1].w)}F.ES.push(h.dD(2)+"")}var bQ=D.o.xi(a2),dN=[]; +dD.yi(J,T,F,dN);if(dN.length!=0)F.Ed.push(h.dD(c)+"");if(i.length!=0)O.push("style=\""+i.join(";")+"\""); +var h0=h.yB(O,R);F.Ed.push(h.dD(c)+"");if(dN.length!=0)F.Ed.push(h.dD(c)+"")}else if(!J.rect.ur()&&(Q.Ks||v)){if(i.length!=0)O.push("style=\""+i.join(";")+"\""); +var h0=h.yB(O,R),gl=J.buffer;if(t)gl=hN.wd(gl,t,J.rect);var dQ=J.rect;F.SI++;var aL=f$.m9(gl.buffer,dQ.t,dQ.w,"png",null,!0); +F.ES.push(h.dD(2)+""); +F.Ed.push(h.dD(c)+"")}}};dD.j2=function(a){if(a==null)return""; +var F=a.KU,y=eA.AC(F);y=y.slice(0,y.length-1).replace(/"/g,""");return"aria-label=\""+y+"\" "}; +dD.yB=function(a,F){if(F.length!=0)a.push("class=\""+F.join(" ")+"\"");return a.join(" ")};dD.cu=function(a){return String(a).replace(/&/g,"&").replace(//g,">").replace(/\u0022/g,""")}; +dD.ZH=function(a){var F=[a.re,a.d,a.Xa,a.XL,a.iU,a.ma].map(dD.Sx);return"matrix("+F.join(",")+")"};dD.yi=function(a,F,y,c){var Q=dD; +if(F||a.add.artb){var S;if(F)S=D.A.cH(F.g).amM;else{var h=a.Hu(),d=D.M.Fx(h);S=Typr.U.pathToSVG({crds:d.I,cmds:d.F},2)}y.m_++; +c.push("clip-path=\"url(#cp"+y.m_+")\"");y.ES.push(Q.dD(2)+""); +y.ES.push(Q.dD(3)+"");y.ES.push(Q.dD(2)+"")}};dD.$i=function(a,F,y,c){var Q=dD,S=F.vstk,h=F.vmsk,d=F.lmfx; +if(h&&h.on!=0){var W=Q.Sx(h.on);if(y.D0[W]==null){y.qL++;y.D0[W]=y.qL;y.ES.push(Q.dD(2)+" ")}a.push("filter: url(#flt"+y.D0[W]+")")}var w=hN.u2(d,F),J=w[0],A=w[1]; +if(S&&!S.fillEnabled.v)a.push("fill: none");else if(J){var T=CSS.Ok(J.Clr.v);a.push("fill: "+T)}else if(A){Q.mz(A,y,c); +a.push("fill: url(#grd"+y.Gh+")")}if(S==null||!S.strokeEnabled.v)S=hN.Xj(d);if(S&&S.strokeEnabled.v){var o=S.strokeStyleContent.v,v=o.classID; +if(v=="solidColorLayer")a.push("stroke: "+CSS.Ok(o.Clr.v));else{Q.mz(o,y,c);a.push("stroke: url(#grd"+y.Gh+")")}var i=aX.ln.HS.indexOf(S.strokeStyleLineCapType.v.strokeStyleLineCapType),N=aX.ln.join.indexOf(S.strokeStyleLineJoinType.v.strokeStyleLineJoinType),b=S.strokeStyleOpacity.v.val/100,q=S.strokeStyleLineWidth.v.val,O=aX.ln.u4.indexOf(S.strokeStyleLineAlignment.v.strokeStyleLineAlignment); +if(O==2){q*=2;a.push("paint-order:stroke fill markers")}var R=S.strokeStyleLineDashSet.v,k=[];for(var G=0; +G"); +if(w==1)F.ES.push(T+" cx=\""+c.Sx(A[0].x)+"\" cy=\""+c.Sx(A[0].y)+"\" r=\""+c.Sx(iS.Uy(A[0],A[1]))+"\">"); +if(W=="Rflc"){for(var o=0;o<2;o++){var v=o==0?S:h;for(var G=v.length-1;G>=0;G--){var i=v[G];i.v.Lctn.v=2048+(i.v.Lctn.v>>>1); +var N=JSON.parse(JSON.stringify(i));N.v.Lctn.v=4096-N.v.Lctn.v;v.push(N)}v.sort(function(k,L){return k.v.Lctn.v-L.v.Lctn.v})}}var b=a.Rvrs.v; +if(b){S.reverse();h.reverse()}for(var G=0;G")}F.ES.push(c.dD(2)+"")}; +dD.yP=function(a,F,y,c,Q){var S=[],h=dD.yP,d=!1,W={cA:a,ml:F,sN:[!0,!0,!0],lN:!1,nU:y,apb:0};W.EG=Math.round(Math.max(a,F)*(.02+h.Aw(W)*.03)); +W.wt=h.aec(W);W.LM=h.a51(W.wt,(h.Aw(W)<.5?-1:1)*(.2+h.Aw(W)*.3));if(h.Aw(W)<.5){var w=W.wt;W.wt=W.LM; +W.LM=w}W.ajF=h.Aw(W)<.4&&h.amw(W.LM,{i:1,m:1,d:1})>.3;W.a9q=h.Aw(W)<.5?0:1;S.push(""); +W.dy=c[Math.floor(h.fB(W)*c.length)];W.AK=c[Math.floor(h.fB(W)*c.length)];S.push(""); +var J=[0,0,a,F],A=J;if(Q==null)S.push(""); +else{W.lN=!0;h.eP(W,J,S,Q)}if(h.Aw(W)<.25&&!W.lN){W.sN[0]=W.sN[2]=!1;h.acE(J,W,S);A=J}else if(h.Aw(W)<.25||W.lN)A=J; +else{var T=.52+h.Aw(W)*.2;if(h.Aw(W)<.5)T=1-T;var o=J.slice(0),v=J.slice(0);if(h.Aw(W)<.5)o[2]=v[0]=Math.round(T*a); +else o[3]=v[1]=Math.round(T*F);if(h.Aw(W)<.5){var w=o;o=v;v=w}A=o;h.a5B(W,v,S,Q)}h.akb(W,A,S);S.push(""); +S=S.join("\n");var i=D.G(Math.round(S.length*1.5)),N=n.jQ(S,i,0);return[i.buffer.slice(0,N),W.oM]};dD.yP.acE=function(a,F,y){var c=dD.yP,Q=a[2]-a[0],S=a[3]-a[1]; +if(c.Aw(F)<.5){y.push("")}else if(c.Aw(F)<-.4){c.aqa(F,a,y)}else{var h=c.Aw(F)<.5?0:1,d=(h==0?S:Q)/4,W=c.zp(F,h,a,y,d,!0),W=c.zp(F,h+2,a,y,d,!0,W)}}; +dD.yP.akb=function(a,F,y){var c=dD.yP,Q="Hello World!-What a beautiful day.-What Is Love?-Baby, don't hurt me.-Is This a Real Life?-Is this a fantasy?-Wake Me Up!-Before you go go.-I Saw The Sign.-And it opened up my mind!".split("-"),S=2*Math.floor(c.Aw(a)*Q.length/2),h=F[2]-F[0],d=F[3]-F[1],w=0,A=0; +a.h8=(a.cA+h)*.5*(.04+c.Aw(a)*.05);a.h8=Math.min(a.h8,d*.4,h*.12);a.h8=Math.round(a.h8);var W=Math.min(a.h8*Q[S].length*(.35+.3*c.Aw(a)),h*.9),J=(F[1]+F[3])/2,T=D.b6(a.wt)<.85?{i:1,m:1,d:1}:{i:.1,m:.1,d:.1}; +if(c.Aw(a)<.25&&a.sN[0]){A=0;w=F[0]+a.EG}else if(c.Aw(a)<.33&&a.sN[2]){A=2;w=F[2]-a.EG}else{A=1;w=(F[0]+F[2])/2}var o=T.i==1?"0,0,0":"255,255,255",v=a.lN&&c.Aw(a)<1; +if(v){var i=F[0],N=h,b=J-a.h8*1.1,q=a.h8*2.2,O=.7;if(A==1&&c.Aw(a)<.5){i=b=.2*Math.min(h,d);N=h-2*b; +q=d-b-b}else if(c.Aw(a)<.7){i=b=0;N=h;q=d;O=.25}y.push("")}if(c.Aw(a)<.4){var R=a.h8*.07; +R*=1.5+c.Aw(a)*1;if(A==-1&&h/d<3&&!v){y.push(""); +y.push("")}if(A!=1){y.push(""); +w+=(A==0?1:-1)*a.h8/3}}var k=a.h8*.4;y.push(c.O_(Q[S+1],w,J+k*1.6,k,T,A,a.AK));y.push(c.O_(Q[S],w,J+a.h8*.04,a.h8,T,A,a.dy))}; +dD.yP.a5B=function(a,F,y,c){var Q=F[2]-F[0],S=F[3]-F[1],h=Math.max(Q,S),d=Math.min(Q,S),W=dD.yP;if(h/d<5&&!a.lN&&!1){W.eP(a,F,y,c)}else if(W.Aw(a)<0)y.push(""); +else{var w=0;if(F[3]!=a.ml)w=0;if(F[2]!=a.cA)w=3;if(F[0]!=0)w=1;if(F[1]!=0)w=2;var J=w+2&3;if(h/d<3){var A=W.acf(J),T=A[Math.round(W.Aw(a)*(A.length-1))],o=T.WX.slice(0,4),v=o.indexOf(1); +T=JSON.parse(JSON.stringify(T));var i=-1;if(o!="0000"){var N=new hg;if(T.WX[5]=="0"){if(v==3&&w==1){i=1; +N.scale(-1,1)}else i=v}else{var b=J;while(b==J)b=Math.floor(W.Aw(a)*4)&3;N.rotate((-v+b)*Math.PI/2)}W.q(T,N)}var q=W.zO(T),O=Q-2*a.EG,R=S-2*a.EG; +if(i!=-1){if((i&1)==0)R-=a.EG;else O-=a.EG}var k=Math.min(O/q.t,R/q.w),L=new hg;L.translate(-q.x,-q.y); +L.scale(k,k);var C=(Q-q.t*k)/2,t=(S-q.w*k)/2;if(i!=-1){if(i==3)C=0;if(i==0)t=0;if(i==1)C=Q-q.t*k;if(i==2)t=S-q.w*k}L.translate(F[0]+C,F[1]+t); +W.MG(a,T,L,a.LM,y)}else{W.zp(a,w,F,y,1e9)}}};dD.yP.eP=function(a,F,y,c){var Q=F[2]-F[0],S=F[3]-F[1],h=Math.max(Q,S),d=Math.min(Q,S),W=dD.yP,w=W.fB(a),J,A,T,o=c[0]instanceof ArrayBuffer; +if(o){J="data:image/jpg;base64,"+h2.K3(c[0]);A=c[1];T=c[2]}else{var v=Math.floor(w*c.length),i=c[v]; +a.oM=i;J=i.webformatURL;A=i.webformatWidth;T=i.webformatHeight}var N=F[0],b=F[1],q=Q,O=S;if(Q/S>A/T){O=q*T/A; +b=b-(O-S)/2}else{q=O*A/T;N=N-(q-Q)/2}if(o){y.push("");y.push(""); +y.push("");var R=q/A;y.push("")}else{var k="cp"+Math.random(); +y.push("");y.push(""); +y.push("");y.push("")}}; +dD.yP.O_=function(a,F,y,c,Q,S,h){var d=dD.yP;return""+a+""}; +dD.yP.MG=function(a,F,y,c,Q){var S=dD.yP,h=[];for(var G=0;G"); +for(var G=0;G")}Q.push("")}; +dD.yP.aqa=function(a,F,y){var c=dD.yP,Q=dD.yP.NX,S=[];for(var G=0;G0){b.w+=b.y; +b.y=0}if((F&1)==0){O=i;q=N}else{q=i;O=N}var R=Math.min(Math.min(.5+.5*W.Aw(a))*Math.min(N,i),Q)/b.w,k=Math.ceil(q/(1e3*R)),L=new hg,C=new hg; +C.scale(R,R);if(F==0||F==2){C.translate(-(N/2),-(i/2));C.rotate(-F*Math.PI/2);C.translate(N/2+y[0],i/2+y[1])}else{C.rotate(Math.PI/2); +C.scale(1,-1);C.translate(y[0],y[1]);if(F==1){C.scale(-1,1);C.translate(N,0)}}c.push(""); +for(var G=0;G"); +return o};dD.yP.Rect=function(a,F,y,c){return Typr.U.pathToSVG({crds:[a,F,a+y,F,a+y,F+c,a,F+c],cmds:["M","L","L","L","Z"]})}; +dD.yP.afm=function(a,F,y,c,Q){var S=[a,F,a+y,F,a+y,F+c,a,F+c];a+=Q;F+=Q;y-=2*Q;c-=2*Q;S.push(a,F,a,F+c,a+y,F+c,a+y,F); +return Typr.U.pathToSVG({crds:S,cmds:"M L L L Z M L L L Z".split(" ")})};dD.yP.a51=function(a,F){var y=D.ux(a.i,a.m,a.d); +y.QP=Math.max(.1,Math.min(.9,y.QP+F));return D.ae(y.ml,y.H2,y.QP)};dD.yP.a8q=function(a,F){var y=D.ux(a.i,a.m,a.d); +y.ml+=F;return D.ae(y.ml,y.H2,y.QP)};dD.yP.art=function(a){var F=D.ux(a.i,a.m,a.d);F.QP=1-F.QP;return D.ae(F.ml,F.H2,F.QP)}; +dD.yP.amw=function(a,F){var y=a.i-F.i,c=a.m-F.m,Q=a.d-F.d;return Math.sqrt(y*y+c*c+Q*Q)};dD.yP.aec=function(a){var F=dD.yP; +return{i:F.Aw(a),m:F.Aw(a),d:F.Aw(a)}};dD.yP.qk=function(a){return CSS.S_({i:a.i*255,m:a.m*255,d:a.d*255})}; +dD.yP.zO=function(a){var F=a.E8,y=new cJ;for(var G=0;G>>8*F&255;return y*(.99999999/255)};dD.yP.fB=function(a){var F=dD.yP.S7(a.nU); +a.nU=dD.yP.S7(F);return F*(1/4294967295)};dD.yP.S7=function(a){a=(a^61^a>>>16)>>>0;a=a+(a<<3)>>>0;a=(a^a>>>4)>>>0; +a=a*668265261>>>0;a=(a^a>>>15)>>>0;return a};dD.yP.NX=[{WX:"0001-0-bird",E8:[["4b3c34",{F:"M C L C C L Z M C C L C C L Z M C L C L Z M C L C C L Z".split(" "),I:[208,16,253,5,247,86,228,104,218,108,253,60,235,12,211,18,210,18,209,17,208,16,208,16,187,140,238,125,326,133,319,189,318,198,307,210,299,207,297,205,307,208,316,195,317,188,320,126,208,137,174,149,187,140,137,75,156,79,177,94,164,157,173,147,177,101,165,79,142,75,137,75,368,59,165,59,182,233,0,210,0,225,161,250,194,61,364,63,367,61,368,59,368,59,368,59]}],["3c7040",{F:"M C C C C C L Z M C C C C L Z M C C C C L Z M C C C C L Z M C C C C C L Z M C C C C L Z M C C C C Z".split(" "),I:[345,123,324,113,331,70,284,80,287,79,310,89,314,103,314,104,306,90,284,82,281,81,270,85,268,86,274,117,335,119,345,123,345,123,270,0,283,29,282,58,244,66,258,62,265,40,269,27,265,37,256,56,249,58,242,31,263,18,270,0,270,0,89,100,81,136,47,182,101,196,90,189,92,157,91,145,94,160,93,191,109,195,148,158,96,129,89,100,89,100,230,187,201,240,160,226,133,198,150,191,172,197,187,198,166,193,153,190,134,193,159,162,207,194,230,187,230,187,126,177,131,159,129,150,119,139,122,122,145,112,147,97,166,128,164,155,134,168,139,154,146,142,145,131,143,145,133,159,126,177,126,177,209,86,195,86,166,91,173,109,177,102,181,97,191,96,180,99,174,113,175,113,194,114,200,96,209,86,209,86,278,175,254,167,235,168,231,143,245,143,248,151,256,158,252,147,243,144,240,142,276,147,265,171,278,175]}],["b588c1",{F:"M C C C C C C C C C C C C L Z".split(" "),I:[189,40,188,42,186,44,184,47,184,52,183,55,181,59,175,70,160,78,147,79,142,79,131,78,127,75,118,74,95,71,93,70,89,70,88,70,69,72,74,66,82,68,93,65,78,64,83,62,95,59,128,50,128,33,155,29,162,16,180,13,189,31,193,31,196,34,198,37,197,37,193,39,189,40,189,40]}]]},{WX:"0001-0-bird2",E8:[["ff7f2a",{F:"M L L L Z M L L L Z".split(" "),I:[296,0,296,62,335,62,296,0,357,0,357,62,318,62,357,0]}],["b588c1",{F:"M C C C C C C C C C C C L Z".split(" "),I:[321,48,344,48,379,67,396,121,408,176,396,230,337,255,303,265,265,268,217,235,191,217,170,188,186,180,195,177,199,187,205,192,203,185,199,178,207,172,217,165,224,178,225,182,227,196,231,203,250,206,273,205,290,196,292,165,289,133,269,118,268,101,267,77,288,49,321,48,321,48]}],["74439e",{F:"M C C C C C C L Z M C C Z".split(" "),I:[337,187,329,202,317,204,304,204,293,204,284,205,293,224,286,216,278,209,268,214,257,220,262,237,269,243,284,258,310,256,323,243,337,227,339,208,337,187,337,187,340,77,310,78,287,81,315,96,269,83,309,75,340,77]}],["000000",{F:"M L L L Z M L L L Z".split(" "),I:[326,258,334,315,323,316,326,258,298,262,296,318,286,317,298,262]}],["4b3c34",{F:"M L C C C C C C C C L Z".split(" "),I:[0,272,0,336,63,296,119,296,175,320,205,330,229,339,278,338,322,337,354,322,405,325,443,329,482,332,501,377,501,366,502,348,474,328,464,320,440,312,384,309,296,309,300,333,186,293,118,264,54,250,0,272,0,272]}],["3c7040",{F:"M C C C Z M C C C Z M C C C L Z M C C C L Z M C C C L Z M C C C Z".split(" "),I:[58,260,44,247,27,239,20,208,15,188,32,182,43,198,59,227,56,242,58,260,181,323,167,336,150,345,143,375,138,396,155,401,166,385,182,356,179,342,181,323,60,260,79,249,100,243,113,214,122,194,102,186,86,200,62,227,65,242,60,260,60,260,499,378,479,377,462,372,435,388,417,399,425,415,444,411,476,403,484,390,499,378,499,378,501,379,494,397,482,411,488,442,491,463,511,461,514,442,520,410,508,397,501,379,501,379,503,378,513,390,516,402,531,413,546,421,557,412,548,401,534,382,519,379,503,378]}]]},{WX:"0000-1-flower",E8:[["7a59a2",{F:"M C C C C C C C Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z".split(" "),I:[468,470,411,473,371,480,351,495,332,509,322,536,325,581,325,601,328,621,325,637,346,634,371,638,397,637,427,636,456,626,465,611,478,596,485,553,489,490,477,489,470,483,468,470,445,563,435,583,425,591,415,590,401,588,401,572,410,549,388,558,375,557,369,546,366,533,374,524,390,517,416,506,441,498,465,495,463,519,455,542,445,563,445,563,489,450,486,392,480,352,465,332,451,313,425,302,380,305,360,305,340,307,324,304,327,324,322,350,323,376,323,406,332,435,347,444,362,457,405,465,468,470,469,458,476,451,489,450,489,450,395,424,376,415,368,405,369,394,371,380,387,380,410,390,402,368,403,355,414,349,427,346,436,355,443,370,454,397,460,422,463,446,439,443,417,435,395,424,395,424,508,470,566,468,606,462,626,447,645,433,656,407,654,362,654,342,652,322,655,306,634,309,609,304,583,305,553,305,524,314,514,329,501,344,493,387,488,449,500,451,507,457,508,470,508,470,534,377,544,357,554,350,564,351,578,353,578,369,568,392,590,384,604,385,609,396,612,409,603,418,588,425,561,435,536,442,512,445,515,421,523,399,534,377,534,377,488,490,492,547,499,587,514,607,528,626,554,636,600,633,619,632,640,630,656,633,652,612,656,587,655,560,655,531,645,502,629,493,614,480,571,473,508,469,507,481,501,488,488,490,488,490,582,513,602,523,610,533,609,543,607,557,591,557,568,548,577,570,576,583,565,589,552,592,542,584,535,568,524,542,517,517,514,493,538,495,560,503,582,513,582,513]}]]},{WX:"0000-1-flower",E8:[["d13777",{F:"M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z".split(" "),I:[474,503,457,528,452,530,450,528,450,523,469,498,464,493,388,522,332,552,314,585,297,628,322,660,372,639,361,698,421,709,450,665,467,649,477,596,482,505,474,503,474,503,439,563,431,563,424,556,424,548,424,539,431,532,439,532,447,532,454,539,454,548,454,556,447,563,439,563,462,475,432,467,429,463,430,460,435,458,465,469,468,463,417,399,371,356,335,348,288,345,265,379,300,420,241,428,249,488,301,503,321,513,374,507,462,483,462,475,462,475,394,460,391,452,396,444,404,441,412,438,420,443,423,451,426,459,421,467,413,470,405,473,396,468,394,460,484,455,483,424,486,419,489,420,492,424,492,456,498,457,543,389,570,332,566,294,554,249,515,238,487,284,461,231,406,256,408,310,405,333,427,381,477,458,484,455,484,455,477,385,484,380,494,382,499,389,504,396,502,405,496,410,489,415,479,414,474,407,469,400,471,390,477,385,511,470,539,459,545,461,545,463,542,467,512,477,513,483,592,505,654,513,688,497,728,472,726,432,674,419,717,378,675,334,625,353,602,356,563,393,506,464,511,470,511,470,575,442,581,447,583,456,578,463,573,470,563,472,557,467,550,462,548,452,553,445,558,438,568,437,575,442,505,499,524,523,524,529,521,531,517,529,498,503,492,506,496,588,508,650,533,677,570,707,607,693,603,639,656,667,685,614,651,572,641,551,594,525,509,493,505,499,505,499,551,552,548,560,540,564,532,561,524,559,519,550,522,542,524,534,533,530,541,532,549,535,554,543,551,552]}]]},{WX:"0000-1-flower",E8:[["ffac42",{F:"M C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C Z M C C C C Z".split(" "),I:[646,471,646,446,626,426,601,426,599,426,597,426,595,427,596,426,598,424,599,423,616,406,616,378,599,360,581,343,553,343,536,360,534,361,533,363,532,364,532,363,532,361,532,359,532,335,512,315,488,315,463,315,443,335,443,359,443,361,443,363,443,365,442,364,441,363,440,362,422,344,394,344,377,362,359,379,359,407,377,425,378,426,380,427,381,429,379,428,378,428,376,428,351,428,331,448,331,473,331,498,351,518,376,518,378,518,380,517,382,517,381,518,379,519,378,521,361,538,361,566,378,584,396,601,424,601,441,584,443,582,444,581,445,579,445,581,445,583,445,584,445,609,465,629,490,629,514,629,534,609,534,584,534,582,534,580,534,579,535,580,536,581,537,582,555,600,583,600,600,582,618,565,618,537,600,519,599,518,597,516,596,515,598,515,599,516,601,516,626,516,646,496,646,471,489,552,444,552,409,516,409,472,409,428,444,392,489,392,533,392,569,428,569,472,569,516,533,552,489,552]}]]},{WX:"0000-1-flower",E8:[["d04040",{F:"M C C L L C C C C L L C C L L C C C C L C C C C L Z M C C C Z M C C C L Z M C C C L Z".split(" "),I:[691,424,690,369,680,330,660,303,634,320,601,361,568,406,568,406,568,327,578,326,585,317,585,306,585,294,576,284,564,284,552,284,542,294,542,306,542,317,550,326,560,327,560,406,559,406,540,359,522,311,501,291,475,319,453,360,433,407,431,406,431,327,441,326,448,317,448,306,448,294,439,284,427,284,415,284,405,294,405,306,405,317,412,326,423,327,423,404,390,363,360,326,341,308,296,401,299,489,360,567,396,613,443,639,500,638,624,636,694,524,692,424,691,424,389,543,370,514,379,498,399,504,439,518,470,564,488,613,455,600,414,580,389,543,481,480,488,445,505,441,515,459,533,497,524,552,501,599,487,567,472,523,481,480,481,480,624,523,610,563,565,595,515,613,528,580,548,538,585,514,614,494,629,503,624,523,624,523]}]]},{WX:"0000-1-flower",E8:[["ec7272",{F:"M C C C C Z M C C C C Z M C C C C L Z M C C C C L Z M C C C C Z M C C C C L Z".split(" "),I:[447,475,452,450,452,438,437,423,422,407,407,412,390,383,398,418,421,415,433,434,445,453,446,474,447,475,495,446,520,439,529,433,535,412,542,390,529,380,546,351,520,376,533,394,523,414,513,434,495,445,495,446,545,473,564,490,574,495,595,490,617,485,620,469,653,468,619,459,610,479,587,480,565,482,546,472,545,473,545,473,549,533,543,558,543,569,559,585,574,601,589,596,606,624,597,590,575,592,563,573,551,555,550,534,549,533,549,533,504,562,480,570,470,575,464,596,458,618,470,628,454,657,479,632,466,614,476,594,486,575,504,563,504,562,459,536,440,519,430,513,409,518,387,524,384,539,351,540,385,549,394,529,417,528,439,527,457,536,459,536,459,536]}],["333333",{F:"M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z".split(" "),I:[534,455,584,415,579,358,577,335,574,315,585,304,585,304,585,304,568,308,561,312,554,316,520,333,500,363,479,392,493,437,486,456,479,476,452,485,452,485,452,485,471,474,475,454,479,434,460,402,482,365,505,328,565,292,597,294,612,295,591,298,587,316,583,333,593,373,584,404,574,440,533,456,534,455,534,455,559,506,619,530,666,497,685,483,701,471,716,475,716,475,716,475,704,463,697,459,690,454,657,434,622,431,587,428,554,462,534,465,513,469,492,451,492,451,492,451,511,461,530,455,549,448,568,416,611,417,654,418,716,452,730,481,737,495,724,478,706,483,689,489,660,516,628,524,592,534,558,506,559,506,559,506,524,552,534,615,586,640,607,649,625,657,629,672,629,672,629,672,634,655,634,647,634,639,636,601,621,569,606,537,560,525,547,509,534,494,539,466,539,466,539,466,539,488,554,501,569,514,607,514,627,552,648,590,650,660,632,687,623,700,631,680,617,667,605,656,566,644,543,621,517,594,524,551,524,552,524,552,467,546,417,585,421,643,424,665,426,686,415,697,415,697,415,697,432,693,439,689,446,684,481,667,501,638,521,609,508,563,515,544,522,524,548,515,548,515,548,515,530,527,526,546,522,566,540,598,518,635,496,672,436,709,404,706,388,705,409,702,413,684,417,667,408,628,417,596,426,561,467,544,467,546,467,546,442,495,383,472,336,504,317,518,301,530,286,526,286,526,286,526,298,539,305,543,312,547,344,568,380,571,415,574,448,539,468,536,488,532,510,551,510,551,510,551,490,540,471,547,452,553,434,585,391,584,348,583,286,550,272,521,265,507,278,524,296,518,313,513,342,485,373,477,409,468,444,495,442,495,442,495,476,449,467,386,415,361,394,352,375,344,371,329,371,329,371,329,366,346,366,354,366,362,364,400,379,433,394,465,440,476,453,492,467,508,462,535,462,535,462,535,461,513,446,500,431,487,394,487,373,449,352,411,350,341,368,314,377,301,369,321,383,334,396,345,434,357,457,380,483,407,477,450,476,449,476,449]}]]},{WX:"0000-0-hearts",E8:[["d17070",{F:"M C C C C C C C C C L Z".split(" "),I:[415,584,413,585,411,586,409,587,392,596,389,620,395,633,401,647,414,663,450,668,485,674,487,681,494,690,491,679,487,673,507,643,527,613,524,593,518,579,512,566,493,552,475,558,467,561,451,566,448,586,435,578,423,581,415,584,415,584]}],["6bcc6b",{F:"M C C C C C C C C C L Z".split(" "),I:[595,451,593,449,590,448,588,448,563,439,537,457,529,475,521,493,516,520,542,560,568,601,563,609,559,623,568,611,571,602,618,595,666,589,684,567,692,550,700,532,697,501,674,488,665,482,645,472,622,486,619,465,606,456,595,451,595,451]}],["5c5cc2",{F:"M C C C C C C C C C L Z".split(" "),I:[341,362,338,364,335,366,332,368,304,385,301,424,312,446,323,468,345,494,405,501,465,508,468,520,480,534,475,516,468,506,499,455,531,404,524,370,514,348,503,325,470,304,440,315,427,320,401,331,397,364,374,351,355,356,341,362,341,362]}]]},{WX:"0000-0-anchor",E8:[["2a3b66",{F:"M C C C C L Z M C C C C C C C C C C C C C C L C C C C C C C C C C C C C L C C C C C C C C C C C C C L Z".split(" "),I:[495,315,490,315,488,318,489,323,491,328,502,326,502,320,502,317,501,316,497,315,496,315,496,315,495,315,495,315,496,303,509,303,521,320,514,327,511,330,513,345,517,348,519,350,531,352,546,354,570,357,572,357,578,354,588,347,592,351,592,369,592,385,588,390,580,385,576,383,570,383,552,384,524,387,519,389,517,397,515,404,517,515,520,554,522,583,525,599,530,606,534,610,555,617,565,617,584,616,607,602,635,572,639,568,641,566,644,563,633,559,616,557,616,557,675,533,675,533,671,605,669,609,667,611,664,591,658,577,657,579,657,580,656,582,628,638,603,660,565,664,545,666,521,672,514,675,512,677,507,682,504,688,501,693,497,698,496,698,494,698,490,693,487,688,484,682,480,677,477,675,471,672,447,666,427,664,391,660,367,640,340,591,335,604,332,621,331,619,329,615,325,544,325,544,384,568,384,568,368,569,357,573,385,602,408,616,426,617,437,617,458,610,461,606,466,599,470,583,472,554,474,515,476,404,475,397,473,389,468,387,440,384,422,383,416,383,412,385,403,390,400,385,400,369,400,351,403,347,414,354,419,357,421,357,446,354,460,352,473,350,475,348,478,345,481,330,478,327,470,320,483,303,496,303,496,303]}]]},{WX:"0000-1-leaf",E8:[["fbb600",{F:"M L L L L L L C L L C L C L C C C C C L C C C C C C C C C L C C C C C C C C C C C C C L L L L Z".split(" "),I:[642,726,633,723,632,707,591,631,570,582,526,521,537,547,535,579,517,598,501,619,486,602,414,634,412,606,379,609,346,611,394,557,406,547,401,539,386,532,319,519,337,508,332,493,320,478,326,464,302,450,287,436,303,436,324,441,330,432,346,434,359,434,359,415,377,428,397,431,417,432,442,440,437,418,417,416,406,372,401,370,395,367,389,355,417,363,408,339,406,323,416,312,427,303,417,276,433,295,444,297,452,294,479,321,490,313,496,294,503,322,510,329,517,338,522,353,530,371,530,379,546,402,551,389,555,378,578,333,606,333,628,304,652,280,646,306,644,327,657,329,649,356,658,374,679,384,666,392,656,415,645,432,627,457,653,451,661,457,692,460,698,473,715,481,697,485,678,488,669,509,656,523,655,533,666,539,659,537,659,542,643,531,630,535,613,543,608,539,598,535,594,542,590,553,590,566,594,564,596,569,568,575,551,543,531,519,575,577,597,628,639,708,642,726]}]]},{WX:"0000-1-acorn",E8:[["a05a2c",{F:"M C C C C C C C L Z".split(" "),I:[506,453,450,426,413,422,398,444,374,480,374,533,384,573,391,602,407,625,430,645,451,658,487,654,509,647,554,633,587,605,612,565,635,527,591,500,565,482,557,476,515,457,506,453,506,453]}],["502d16",{F:"M C C C C C C C C C C C Z".split(" "),I:[640,524,639,539,623,540,623,540,627,522,607,504,583,488,547,465,507,445,470,434,439,426,412,417,400,437,400,437,391,424,400,414,434,370,498,356,551,376,555,349,583,317,597,321,612,326,621,346,620,350,619,354,594,352,584,368,580,375,577,382,575,387,619,412,649,460,640,524]}]]},{WX:"0000-0-skull",E8:[["808080",{F:"M C L C C L C L C C C C C C C L C L C C C C C C C C L C C L C L C C C C C C C L C L C L C C C C C C Z M C C C C Z M C C C C Z M L L L Z".split(" "),I:[396,410,398,415,398,420,398,424,420,437,433,404,465,382,501,382,538,382,569,404,582,435,602,424,602,419,603,415,604,410,604,410,609,392,622,379,633,382,643,384,648,402,643,420,643,421,642,421,642,422,643,422,643,422,644,422,662,427,675,440,672,450,669,461,652,465,633,460,628,459,624,457,620,455,589,473,588,491,582,507,572,520,607,540,611,538,615,536,620,535,639,530,656,535,659,545,662,556,649,568,630,573,630,574,629,574,629,574,629,574,629,575,629,575,634,594,630,611,619,614,609,617,596,604,591,585,590,580,589,576,589,571,565,557,564,592,536,619,501,619,466,619,438,591,437,557,412,572,411,576,411,580,410,585,410,585,405,604,392,617,381,614,371,611,366,593,371,575,371,574,371,574,372,574,371,573,371,573,370,573,352,568,339,556,342,545,345,534,362,530,381,535,385,536,390,538,394,540,430,519,421,507,415,491,414,475,380,455,376,457,372,459,367,460,367,460,349,465,331,461,328,450,326,440,338,427,357,422,357,422,358,422,358,422,358,421,358,421,358,420,353,402,357,384,368,381,379,379,391,391,396,410,463,439,445,439,431,453,431,470,431,488,445,502,463,502,480,502,494,488,494,470,494,453,480,439,463,439,540,439,522,439,508,453,508,470,508,488,522,502,540,502,557,502,571,488,571,470,571,453,557,439,540,439,483,528,518,528,500,503,483,528]}]]},{WX:"0000-0-ghost",E8:[["e6e6e6",{F:"M C C C C C C C C C C L Z M C C C C C C C C Z M C C Z".split(" "),I:[653,486,653,574,689,597,689,638,689,661,640,644,620,656,601,666,609,682,583,692,563,700,538,666,512,666,490,666,451,695,433,686,415,677,416,646,388,644,367,641,313,671,313,648,313,619,346,588,346,486,346,388,415,308,500,308,584,308,653,388,653,486,653,486,449,396,428,396,412,415,412,439,412,462,428,482,449,482,465,482,478,470,484,454,489,470,503,482,519,482,539,482,556,462,556,439,556,415,539,396,519,396,503,396,489,407,484,423,478,407,465,396,449,396,482,505,441,505,465,560,482,560,503,560,524,505,482,505]}],["000000",{F:"M C C C C Z M C C C C Z".split(" "),I:[526,446,526,455,519,462,510,462,501,462,494,455,494,446,494,437,501,430,510,430,519,430,526,437,526,446,475,446,475,455,468,462,459,462,450,462,442,455,442,446,442,437,450,430,459,430,468,430,475,437,475,446]}]]},{WX:"1001-1-rose",E8:[["9e1460",{F:"M C C C C C C C C C Z M C C C C C C C C C Z".split(" "),I:[568,83,558,83,548,88,539,96,538,98,536,99,535,101,522,115,513,134,517,149,522,172,561,200,592,207,604,210,611,215,615,221,622,234,611,258,611,258,613,260,615,264,618,264,627,266,638,241,640,236,660,188,614,83,568,83,526,125,527,97,567,68,593,75,616,81,642,121,649,152,651,165,656,172,662,176,675,183,698,173,698,173,698,173,698,173,698,173,704,176,705,179,705,180,706,189,681,199,678,200,678,200,677,201,677,201,627,220,524,170,526,125]}],["020304",{F:"M C C C C C Z M C C C C C Z M C C C C C Z M C C C C Z".split(" "),I:[60,151,60,151,37,125,60,98,83,72,95,91,115,66,134,42,117,26,120,30,123,34,146,83,132,114,114,154,60,151,60,151,280,70,280,70,258,97,283,122,308,147,318,127,339,150,361,173,344,190,347,186,350,182,370,132,354,101,333,62,280,70,280,70,61,150,61,150,27,143,30,108,33,73,54,81,55,50,57,19,33,16,38,17,43,19,91,44,98,78,107,121,61,150,61,150,-27,185,184,158,222,43,352,32,444,24,538,97,538,97,538,97,453,45,354,48,241,51,185,170,-27,185]}]]},{WX:"1001-1-curls",E8:[["53a7ab",{F:"M C C C C C C C C C C C C C C C C L Z M C C C C C C C C C C C C C C C C L Z M C C C C C C C C C C C C C C C C C C C C C L Z".split(" "),I:[68,114,121,103,159,110,183,135,212,169,211,204,189,237,162,277,124,291,86,276,52,263,38,236,47,202,55,168,79,151,121,156,147,162,165,177,160,205,155,228,135,241,113,237,97,234,92,221,96,205,98,195,105,194,115,200,124,205,133,204,135,197,139,183,122,167,95,171,68,176,54,193,68,220,84,252,131,261,165,238,201,202,199,164,158,136,118,113,52,122,-23,151,2,134,33,122,68,114,68,114,71,83,119,75,163,79,198,107,226,129,247,174,271,207,291,229,316,241,342,232,370,222,394,206,418,209,443,212,461,238,485,258,500,272,522,276,543,271,543,271,524,279,518,281,500,287,483,277,466,256,453,243,441,230,427,223,413,217,392,220,372,229,372,230,371,230,370,230,354,241,337,251,315,250,283,248,253,222,229,172,209,133,178,106,137,94,103,84,52,94,-30,133,-3,108,30,91,71,83,71,83,83,54,122,46,166,49,195,67,219,82,250,122,290,168,308,186,330,194,355,192,393,183,400,145,383,118,372,101,355,91,328,91,313,92,303,98,300,109,298,116,299,125,304,131,315,147,327,152,340,149,349,149,354,132,343,131,330,131,326,129,328,120,332,97,355,100,365,114,381,137,367,165,343,168,321,170,289,150,288,117,290,77,319,58,352,64,388,74,405,104,404,141,403,177,382,202,345,207,312,211,284,191,260,161,245,141,229,122,213,106,196,84,166,73,129,67,80,62,28,79,-26,108,10,79,46,63,83,54,83,54]}],["bbdc54",{F:"M C C C C C L Z M C C C C C L Z M C C C C L Z M C C C C L Z M C C C C C C C C C L Z M C C C C C C C C C C C C C C C C C C C C C C C C C C C C C L Z".split(" "),I:[321,315,287,324,252,312,211,219,217,284,239,326,279,341,324,352,362,329,398,291,316,305,258,269,217,196,238,284,274,319,321,315,321,315,211,261,223,300,234,345,252,374,220,378,194,367,193,324,194,306,198,288,206,270,197,315,204,340,221,351,206,327,202,297,211,261,211,261,206,246,193,301,170,317,138,297,162,281,184,254,205,222,201,246,191,267,174,283,186,279,197,267,206,246,206,246,378,233,370,286,337,299,294,270,312,277,330,276,347,267,294,278,259,252,234,203,280,259,327,278,378,233,378,233,626,217,604,273,555,313,511,315,484,316,438,289,432,232,450,253,488,296,511,291,532,286,551,277,566,261,527,269,498,263,480,243,478,241,478,237,480,235,486,230,504,220,519,226,537,233,551,242,567,241,591,236,611,228,626,217,626,217,411,192,432,183,439,166,420,136,443,144,460,158,466,182,470,165,456,149,430,133,459,136,485,145,505,165,503,143,463,133,434,128,486,127,526,124,539,118,505,123,470,124,435,122,461,111,483,96,500,76,475,95,450,110,424,118,450,96,465,72,466,48,458,75,440,98,419,112,424,106,428,99,428,91,429,68,413,57,393,51,419,70,426,92,411,110,408,77,385,58,343,52,383,26,422,25,445,62,458,47,465,29,467,8,477,27,479,51,475,76,497,64,515,49,528,29,524,57,515,82,496,103,521,113,549,111,579,99,560,122,535,136,502,137,518,149,521,173,514,205,505,181,492,166,476,158,483,188,470,205,447,216,456,183,451,166,438,157,444,193,426,211,379,207,403,193,416,172,416,140,434,156,428,173,411,192,411,192]}]]},{WX:"0111-0-pines",E8:[["e9e9e9",{F:"M C C C C C C C C L L L Z".split(" "),I:[0,946,0,946,54,960,99,944,149,927,182,954,205,956,245,960,298,940,382,974,435,995,478,957,538,956,571,955,597,969,631,968,663,967,701,938,749,944,805,950,851,960,893,946,950,928,1e3,946,1e3,946,1e3,1e3,0,1e3,0,946]}],["437a26",{F:"M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z".split(" "),I:[119,801,120,801,148,859,148,859,137,853,137,853,155,890,155,891,156,892,138,887,140,888,141,888,171,925,171,925,126,924,125,943,125,943,105,944,106,944,107,944,106,924,106,924,61,925,93,886,77,891,100,854,89,860,89,860,119,801,119,801,286,871,286,871,303,905,303,905,296,902,296,902,307,924,307,924,307,925,297,922,297,922,298,922,316,944,316,944,289,944,289,955,289,955,277,956,278,956,278,956,278,944,278,944,251,944,270,921,260,924,274,902,268,906,268,906,285,871,286,871,526,863,526,863,546,903,546,903,538,899,538,899,550,924,550,925,550,926,539,922,540,922,540,922,561,948,561,948,530,947,529,960,529,960,516,961,517,961,518,961,517,947,517,947,486,948,508,921,497,925,513,899,505,903,505,903,526,863,526,863,731,841,731,841,752,883,752,883,744,879,744,879,757,907,757,908,758,908,745,905,746,905,747,905,769,932,769,932,736,932,735,946,735,946,721,946,721,946,722,947,721,932,721,932,688,932,712,903,700,908,717,880,709,884,709,884,731,841,731,841,889,826,889,826,914,876,914,876,904,871,904,871,920,904,920,905,920,906,906,901,907,902,908,902,934,934,934,934,894,933,894,950,894,950,877,951,878,951,879,951,878,933,878,933,838,934,866,900,852,905,872,872,862,877,862,877,889,826,889,826]}]]},{WX:"0111-0-flowers",E8:[["8cae40",{F:"M C L C C C L C C L C C C L C C C L C C L C C L Z M C L C C C L C C L C C C L C C C L C C L C C L Z M C L C C C L C C L C C C L C C C L C C L C C L Z M C L C C C L C C L C C C L C C C L C C L C C L Z".split(" "),I:[182,866,160,879,146,903,135,929,135,844,177,842,228,831,230,796,231,770,207,765,182,779,160,792,146,816,135,843,135,713,135,711,134,710,132,710,130,710,128,711,128,713,128,841,117,815,103,791,82,779,57,764,33,769,34,795,36,830,86,841,128,844,128,930,117,903,103,880,82,867,57,853,33,858,34,884,36,919,86,930,128,932,128,1009,128,1010,130,1012,132,1012,134,1012,135,1010,135,1009,135,931,177,928,228,918,230,882,231,856,207,851,182,866,182,866,447,904,430,898,412,904,394,916,394,861,413,873,431,879,447,873,458,868,458,852,447,848,430,841,412,848,394,859,394,788,394,787,393,786,391,786,389,786,388,787,388,788,388,859,370,847,352,841,336,848,325,852,325,868,336,873,352,879,370,873,388,862,388,915,370,904,352,898,336,904,325,909,325,925,336,929,352,936,370,930,388,918,388,1009,388,1010,389,1011,391,1011,393,1011,394,1010,394,1009,394,918,413,930,431,936,447,929,458,925,458,909,447,904,447,904,662,943,650,954,641,972,634,993,634,914,659,907,680,895,692,873,707,846,686,836,662,859,650,870,641,888,634,909,634,818,634,816,632,815,631,815,629,815,628,816,628,818,628,908,621,887,612,870,600,859,576,836,555,846,570,873,582,895,603,907,628,914,628,992,621,971,612,954,600,943,576,920,555,930,570,957,582,978,603,990,628,998,628,1009,628,1010,629,1011,631,1011,632,1011,634,1010,634,1009,634,998,659,991,680,978,692,957,707,930,686,920,662,943,662,943,892,842,875,857,862,882,850,912,850,822,874,817,896,805,908,778,919,755,896,751,877,769,866,779,857,796,850,815,850,737,850,736,848,735,847,735,845,735,844,736,844,737,844,815,836,795,828,779,817,769,798,751,775,755,785,777,797,804,820,817,844,822,844,912,832,882,818,857,801,842,772,816,737,822,753,854,772,894,806,911,844,918,844,1009,844,1010,845,1011,847,1011,848,1011,850,1010,850,1009,850,918,887,911,922,894,941,854,957,822,922,816,892,842,892,842]}],["d13777",{F:"M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M C C C C C C C Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C Z M C C C C Z M C C L L C C C C L L C C L L C C C C L C C C C L Z M C C C Z M C C C L Z M C C C L Z".split(" "),I:[125,603,115,617,112,619,110,618,111,615,122,600,119,597,75,614,43,631,32,650,22,675,36,694,65,682,59,716,94,722,111,696,120,687,126,657,129,604,125,603,125,603,104,638,99,638,95,634,95,629,95,624,99,620,104,620,109,620,113,624,113,629,113,634,109,638,104,638,117,587,100,582,98,579,99,578,102,577,119,583,121,580,92,543,65,517,44,513,17,512,4,531,24,555,-10,560,-6,594,24,603,36,609,67,605,118,591,118,587,117,587,78,578,77,573,79,568,84,567,88,565,93,568,95,573,96,577,94,582,89,584,85,585,80,583,78,578,130,575,130,557,131,554,133,555,135,557,135,575,138,576,164,537,180,504,177,482,171,456,148,449,132,476,117,445,85,460,86,491,84,504,97,532,126,577,130,575,130,575,126,535,130,532,136,533,139,537,142,541,141,546,137,549,133,552,127,551,125,547,122,543,122,538,126,535,146,584,162,577,165,578,166,580,164,582,146,588,147,591,193,604,229,609,249,600,271,585,271,562,240,554,265,530,241,505,212,516,199,518,176,539,143,580,146,584,146,584,183,567,187,570,187,576,185,580,182,584,176,585,172,582,168,579,167,573,170,569,173,565,179,565,183,567,142,601,153,615,153,618,152,619,149,618,138,603,135,605,137,652,144,688,159,704,180,721,202,713,199,681,230,698,246,667,227,643,221,631,194,616,145,597,142,601,142,601,169,631,167,636,162,638,158,637,153,635,151,630,152,625,154,621,159,618,163,620,168,621,170,626,169,631,376,691,343,693,320,697,309,706,297,714,291,729,294,756,294,767,295,779,294,788,305,786,320,788,335,788,353,787,369,782,375,773,382,764,386,739,388,703,381,702,377,699,376,691,363,745,357,757,351,761,345,761,337,760,337,751,343,737,330,742,322,742,319,735,317,728,322,723,331,718,346,712,360,708,374,706,373,720,369,733,363,745,363,745,388,680,387,646,383,623,375,612,366,600,351,594,325,596,314,596,302,597,293,595,295,607,292,622,292,637,292,654,298,671,306,676,315,684,340,689,376,692,377,684,381,680,388,680,388,680,334,665,323,659,318,654,319,648,320,639,329,640,343,645,338,632,339,625,345,621,352,620,358,625,362,634,368,649,372,664,373,677,360,676,347,671,334,665,334,665,399,691,433,690,456,686,467,678,479,670,485,655,484,629,484,617,482,606,484,597,472,598,458,595,442,596,425,596,409,601,403,610,395,618,391,643,388,679,395,680,399,684,399,691,399,691,414,638,420,626,426,622,432,622,440,624,440,633,434,646,447,641,455,642,458,648,459,656,454,661,445,665,430,671,416,675,402,677,403,663,408,650,414,638,414,638,388,703,390,736,394,759,403,770,411,782,426,788,452,785,464,785,475,784,485,785,483,774,485,759,485,744,484,726,479,710,470,704,461,697,436,693,400,691,399,698,395,702,388,703,388,703,442,716,453,722,458,728,458,734,456,742,447,742,434,736,439,749,438,757,432,760,425,762,419,757,415,748,409,733,404,719,403,705,416,706,429,710,442,716,442,716,722,716,722,701,710,690,696,690,695,690,694,690,693,690,693,689,694,689,695,688,705,678,705,662,695,651,685,641,668,641,658,651,658,652,657,653,656,654,656,653,656,652,656,651,656,637,645,625,630,625,616,625,605,637,605,651,605,652,605,653,605,654,604,654,604,653,603,652,593,642,576,642,566,652,556,662,556,679,566,689,567,690,568,690,569,691,568,691,567,691,566,691,552,691,540,702,540,717,540,731,552,743,566,743,567,743,568,743,569,742,569,743,568,744,567,744,557,754,557,771,567,781,577,791,594,791,604,781,605,780,605,779,606,778,606,779,606,780,606,781,606,795,617,807,632,807,646,807,657,795,657,781,657,780,657,779,657,778,658,779,658,779,659,780,669,790,686,790,696,780,706,770,706,754,696,743,695,743,694,742,693,741,694,741,695,741,696,741,710,741,722,730,722,716,631,762,605,762,585,742,585,716,585,691,605,670,631,670,657,670,677,691,677,716,677,742,657,762,631,762,958,602,957,570,951,547,940,532,925,541,905,565,887,591,886,591,886,546,892,545,897,540,897,533,897,527,891,521,884,521,877,521,872,527,872,533,872,540,876,545,882,546,882,591,882,591,870,564,860,536,848,525,833,541,820,565,808,592,807,592,807,546,813,545,817,540,817,533,817,527,812,521,805,521,798,521,792,527,792,533,792,540,797,545,802,546,802,590,784,567,766,545,755,534,729,588,731,639,766,684,787,711,814,726,847,725,919,724,960,659,958,602,958,602,783,671,772,653,777,645,789,648,812,656,830,682,840,711,821,704,797,692,783,671,836,634,840,614,850,612,856,622,867,644,861,676,848,703,840,684,831,659,836,634,836,634,919,659,911,682,885,701,856,711,863,692,875,668,896,654,913,642,922,647,919,659,919,659]}]]},{WX:"1101-1-confetti",E8:[["e789ff",{F:"M C C C C C Z M C C C C C C C Z M C C C C C C C Z M C C C C C Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[170,439,169,438,59,370,108,300,152,238,298,276,318,337,338,398,265,380,285,358,312,328,185,247,121,307,72,353,171,440,170,439,318,338,336,399,262,408,184,346,138,309,73,237,112,174,167,88,345,115,377,222,393,276,296,260,335,236,375,212,236,111,155,183,73,254,265,380,285,358,312,328,318,338,318,338,377,222,394,276,318,288,243,236,187,197,146,120,201,56,254,-5,365,26,407,68,407,68,414,94,378,71,344,50,258,31,221,89,178,154,297,260,336,235,374,211,377,222,377,222,406,70,452,115,432,189,324,115,214,39,323,-85,322,-85,320,-85,229,38,331,100,439,166,413,95,377,72,343,51,364,28,406,70,346,405,369,418,356,441,333,428,346,405,513,298,536,311,523,334,500,321,513,298,891,91,914,104,901,127,878,114,891,91,24,123,47,136,34,159,11,146,24,123,664,33,687,46,674,69,651,56,664,33,910,482,933,495,920,518,897,505,910,482]}],["666666",{F:"M C C C C C Z M C C C C C C C Z M C C C C C C C Z M C C C C C Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[919,442,917,443,802,510,764,432,730,364,837,250,901,261,965,272,913,329,903,301,889,262,755,338,777,424,794,490,920,442,919,442,901,261,964,274,936,345,842,386,787,410,690,435,654,370,604,279,716,132,827,153,883,164,821,244,819,197,817,150,659,228,682,335,706,443,913,329,903,301,889,262,901,261,901,261,827,153,884,163,857,238,774,281,711,313,622,313,593,233,564,157,647,71,705,54,705,54,732,60,694,82,658,102,599,170,632,231,669,301,822,244,819,197,816,150,827,153,827,153,706,54,769,34,825,87,706,149,583,213,527,56,526,57,526,59,590,200,696,137,807,70,732,60,694,82,658,102,648,73,706,54,362,328,383,340,371,361,350,349,362,328,52,189,73,201,61,222,40,210,52,189,509,119,530,131,517,152,496,140,509,119,912,16,933,28,921,49,900,37,912,16,629,380,650,392,638,413,617,401,629,380,77,414,98,426,86,447,65,435,77,414,240,76,261,88,249,109,228,97,240,76]}]]},{WX:"1101-1-branch",E8:[["7f500b",{F:"M C C C L C C Z M C C C L C C Z M C C C L C C Z M C C C L C C Z M C C C L C C Z M C C C L C C Z".split(" "),I:[144,-14,144,-14,149,-12,150,-12,150,-12,106,22,86,75,63,137,93,193,69,238,64,236,89,174,53,146,80,72,99,19,144,-14,144,-14,280,-18,281,-18,276,-20,276,-20,276,-20,282,23,264,64,244,113,196,129,185,168,189,170,209,120,244,123,269,66,288,25,280,-18,280,-18,429,-5,429,-5,434,-4,434,-4,435,-4,405,28,396,72,386,124,415,164,402,203,398,202,410,150,379,132,391,70,399,26,429,-5,429,-5,514,-7,514,-7,519,-12,519,-12,520,-12,532,50,577,96,630,151,703,150,738,197,733,201,681,144,635,166,571,101,526,54,514,-7,514,-7,666,-67,666,-68,663,-65,662,-64,662,-64,704,-52,734,-18,768,22,763,72,793,99,796,96,760,57,778,26,737,-22,708,-56,666,-67,666,-67,936,-8,936,-8,932,-9,931,-9,931,-9,947,32,938,76,927,127,884,154,881,194,886,195,895,142,930,138,943,76,952,32,936,-8,936,-8]}],["5c7f0b",{F:"M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z".split(" "),I:[119,6,121,16,113,31,81,33,58,34,27,27,27,27,27,27,53,5,70,-1,93,-9,117,-4,119,6,124,8,132,1,151,12,165,33,179,54,180,87,180,87,180,87,153,75,139,60,122,41,115,14,124,8,78,74,82,83,76,97,48,103,27,108,-2,105,-2,105,-2,105,19,81,33,74,53,64,75,65,78,74,83,75,90,68,108,76,124,93,139,110,144,140,144,140,144,140,117,132,104,121,85,105,76,83,83,75,72,152,75,159,72,172,48,179,30,185,6,185,6,185,6,185,22,163,33,156,49,145,68,145,72,152,76,153,81,146,98,151,112,165,126,178,133,203,133,203,133,203,110,199,97,190,80,178,70,160,76,153,73,206,75,213,71,224,49,228,34,232,12,230,12,230,12,230,28,212,39,206,53,199,70,200,73,206,76,207,81,202,95,207,107,220,118,233,122,255,122,255,122,255,102,250,92,241,78,230,71,213,76,207,70,232,78,236,76,252,66,269,56,286,33,297,33,297,33,297,33,274,39,260,46,241,62,228,70,232,285,3,278,8,274,21,291,39,304,52,325,63,325,63,325,63,323,36,316,24,308,7,291,-2,285,3,281,1,280,-7,263,-10,244,-5,224,1,205,20,205,20,205,20,228,27,244,25,264,22,283,10,281,1,270,65,264,69,259,80,272,99,281,112,299,125,299,125,299,125,300,100,296,88,290,72,277,61,270,65,267,64,267,56,252,51,234,53,216,56,197,71,197,71,197,71,216,80,230,80,249,80,267,72,267,64,231,116,225,119,220,128,230,145,237,157,251,170,251,170,251,170,254,148,251,138,248,123,237,113,231,116,228,114,229,108,217,102,201,103,186,103,168,115,168,115,168,115,184,124,196,126,212,127,228,121,228,114,201,148,196,151,192,160,202,174,209,184,222,194,222,194,222,194,223,175,220,166,216,154,206,145,201,148,198,147,198,141,187,137,174,139,160,141,145,152,145,152,145,152,160,159,171,159,185,160,198,153,198,147,188,165,182,163,173,174,170,190,167,205,173,224,173,224,173,224,186,210,191,198,197,183,195,166,188,165,415,10,417,18,413,31,389,36,371,39,347,37,347,37,347,37,364,16,377,9,393,0,412,2,415,10,418,11,424,4,440,11,453,27,466,43,470,69,470,69,470,69,448,62,436,52,420,38,412,17,418,11,391,69,394,76,392,89,371,96,355,102,333,103,333,103,333,103,346,81,357,74,371,64,388,63,391,69,395,70,399,63,414,68,428,80,441,92,448,116,448,116,448,116,427,113,415,105,400,94,390,77,395,70,395,133,398,139,397,150,379,158,367,164,348,167,348,167,348,167,358,148,366,140,377,130,391,128,395,133,398,134,401,128,414,130,427,140,439,149,447,169,447,169,447,169,429,167,418,162,404,154,394,140,398,134,401,177,404,182,402,192,386,198,374,202,358,203,358,203,358,203,368,187,375,181,386,173,399,172,401,177,404,178,408,173,419,176,429,185,439,194,445,212,445,212,445,212,429,210,420,204,408,196,401,183,404,178,402,198,408,201,409,214,403,229,397,244,381,255,381,255,381,255,378,236,381,224,385,208,396,196,402,198,519,23,531,26,543,42,528,75,518,99,495,125,495,125,495,125,485,87,487,67,490,40,508,19,519,23,523,19,521,7,542,-6,571,-8,600,-10,636,6,636,6,636,6,609,27,586,32,557,39,526,32,523,19,570,100,581,102,594,115,585,147,579,170,562,197,562,197,562,197,548,163,547,145,547,120,560,98,570,100,574,97,570,86,587,72,613,66,639,60,673,71,673,71,673,71,652,93,632,101,607,110,578,107,574,97,649,149,659,150,670,160,666,188,662,208,650,232,650,232,650,232,635,205,633,189,631,168,640,149,649,149,652,146,648,137,662,123,683,116,705,109,734,116,734,116,734,116,718,137,702,145,681,155,657,155,652,146,707,178,715,179,724,189,718,213,714,230,701,250,701,250,701,250,690,225,690,211,689,193,699,177,707,178,710,175,707,167,720,156,739,151,759,147,784,155,784,155,784,155,768,172,753,177,734,185,713,183,710,175,732,194,740,189,757,199,770,218,782,237,783,266,783,266,783,266,758,254,746,240,730,223,724,199,732,194,687,-62,688,-54,699,-45,722,-53,739,-59,759,-73,759,-73,759,-73,733,-82,719,-82,701,-81,685,-71,687,-62,684,-60,676,-62,666,-48,662,-28,659,-9,669,17,669,17,669,17,684,-1,689,-16,696,-35,692,-57,684,-60,737,-23,738,-15,746,-5,768,-9,784,-12,804,-23,804,-23,804,-23,782,-34,769,-36,752,-38,736,-30,737,-23,734,-20,727,-24,716,-13,711,5,705,22,711,46,711,46,711,46,727,33,734,20,742,3,742,-17,734,-20,766,35,766,41,772,50,792,48,806,47,823,40,823,40,823,40,805,28,795,26,780,23,766,28,766,35,763,37,758,33,747,42,741,56,735,70,738,91,738,91,738,91,753,81,760,71,768,57,769,40,763,37,782,76,783,82,789,89,806,86,818,84,832,76,832,76,832,76,816,67,806,66,794,65,782,70,782,76,780,78,775,75,766,84,762,97,758,110,762,128,762,128,762,128,775,118,779,108,786,95,785,80,780,78,792,94,788,100,794,112,807,122,819,131,839,133,839,133,839,133,832,116,823,107,812,95,796,89,792,94,945,11,939,18,938,31,959,45,974,55,997,62,997,62,997,62,989,36,980,25,968,11,950,5,945,11,941,11,938,3,921,3,903,13,885,22,871,45,871,45,871,45,894,47,909,42,929,35,944,19,941,11,944,75,938,80,935,93,952,108,964,119,984,128,984,128,984,128,980,104,974,93,965,78,949,70,944,75,940,75,938,67,923,65,906,71,889,77,873,96,873,96,873,96,894,101,908,99,926,95,942,82,940,75,916,133,911,137,907,147,920,162,930,172,946,182,946,182,946,182,944,160,940,151,933,137,921,129,916,133,913,132,912,125,899,123,884,127,869,130,854,145,854,145,854,145,871,151,883,150,899,148,913,139,913,132,893,171,888,175,887,184,899,196,908,204,923,211,923,211,923,211,920,193,915,184,909,173,897,167,893,171,890,170,889,165,877,163,864,168,851,172,839,187,839,187,839,187,855,190,865,188,879,186,891,176,890,170,884,190,877,190,871,202,871,218,871,234,881,251,881,251,881,251,891,234,893,222,896,206,890,190,884,190]}]]},{WX:"1101-1-sticks",E8:[["ec7272",{F:"M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[260,148,297,180,286,192,249,160,260,148,114,31,161,47,155,63,109,47,114,31,931,91,902,52,915,42,945,81,931,91,711,19,746,-15,758,-3,723,31,711,19,812,161,782,122,795,112,825,151,812,161,389,34,424,0,436,12,401,46,389,34,431,209,465,175,477,186,442,221,431,209,282,90,282,41,299,41,299,90,282,90,58,233,29,194,42,184,72,223,58,233,574,58,621,74,615,90,569,74,574,58]}],["0000ff",{F:"M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[722,208,733,161,717,157,706,205,722,208,843,12,797,28,802,44,849,28,843,12,31,74,60,35,47,25,18,64,31,74,220,21,185,-13,173,-1,208,33,220,21,140,166,170,127,157,117,127,156,140,166,558,148,523,114,511,126,546,160,558,148,562,9,516,25,521,41,568,25,562,9,697,105,726,66,713,56,684,95,697,105,961,180,990,141,977,131,948,170,961,180,399,97,353,113,358,129,405,113,399,97]}]]},{WX:"1101-1-dots",E8:[["ec7272",{F:"M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z".split(" "),I:[154,47,144,47,136,39,136,29,136,19,144,11,154,11,164,11,172,19,172,29,172,39,164,47,154,47,272,164,262,164,254,156,254,146,254,136,262,128,272,128,282,128,290,136,290,146,290,156,282,164,272,164,529,48,519,48,511,40,511,30,511,20,519,12,529,12,539,12,547,20,547,30,547,40,539,48,529,48,696,101,686,101,678,93,678,83,678,73,686,65,696,65,706,65,714,73,714,83,714,93,706,101,696,101,929,91,919,91,911,83,911,73,911,63,919,55,929,55,939,55,947,63,947,73,947,83,939,91,929,91]}],["0000ff",{F:"M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z".split(" "),I:[66,122,56,122,48,114,48,104,48,94,56,86,66,86,76,86,84,94,84,104,84,114,76,122,66,122,309,55,299,55,291,47,291,37,291,27,299,19,309,19,319,19,327,27,327,37,327,47,319,55,309,55,785,180,775,180,767,172,767,162,767,152,775,144,785,144,795,144,803,152,803,162,803,172,795,180,785,180,459,147,449,147,441,139,441,129,441,119,449,111,459,111,469,111,477,119,477,129,477,139,469,147,459,147,811,48,801,48,793,40,793,30,793,20,801,12,811,12,821,12,829,20,829,30,829,40,821,48,811,48]}],["88a500",{F:["M","C","C","Z"],I:[389,224,389,224,410,230,410,230,410,230,389,224,389,224]}]]},{WX:"1101-1-strips",E8:[["ffc88c",{F:"M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[-40,0,44,0,137,99,53,99,-40,0,296,0,380,0,473,99,389,99,296,0,632,0,716,0,809,99,725,99,632,0]}],["88a500",{F:"M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[128,0,212,0,305,99,221,99,128,0,464,0,548,0,641,99,557,99,464,0,800,0,884,0,977,99,893,99,800,0]}],["88a500",{F:["M","C","C","Z"],I:[407,217,407,217,428,223,428,223,428,223,407,217,407,217]}]]},{WX:"1101-1-circs",E8:[["ec7272",{F:"M C C C C Z M C C C C Z".split(" "),I:[61,209,27,209,0,181,0,147,0,113,27,86,61,86,96,86,123,113,123,147,123,181,96,209,61,209,551,209,517,209,489,181,489,147,489,113,517,86,551,86,585,86,612,113,612,147,612,181,585,209,551,209]}],["217995",{F:"M C C C C Z M C C C C Z".split(" "),I:[303,209,269,209,241,181,241,147,241,113,269,86,303,86,337,86,364,113,364,147,364,181,337,209,303,209,799,209,765,209,738,181,738,147,738,113,765,86,799,86,834,86,861,113,861,147,861,181,834,209,799,209]}],["88a500",{F:["M","C","C","Z"],I:[530,273,530,273,551,279,551,279,551,279,530,273,530,273]}]]},{WX:"1101-1-squares",E8:[["014ea7",{F:"M L L L L Z M L L L L Z".split(" "),I:[0,120,124,120,124,244,0,244,0,120,497,120,621,120,621,244,497,244,497,120]}],["fc54ff",{F:"M L L L L Z M L L L L Z".split(" "),I:[249,120,373,120,373,244,249,244,249,120,746,120,870,120,870,244,746,244,746,120]}],["88a500",{F:["M","C","C","Z"],I:[389,354,389,354,410,360,410,360,410,360,389,354,389,354]}]]},{WX:"1101-0-christmas",E8:[["014ea7",{F:"M C C C C Z M C C C C Z M L L L L Z".split(" "),I:[255,480,178,480,116,418,116,341,116,264,178,202,255,202,332,202,394,264,394,341,394,418,332,480,255,480,255,232,236,232,221,217,221,198,221,179,236,164,255,164,274,164,289,179,289,198,289,217,274,232,255,232,251,-152,260,-152,260,248,251,248,251,-152]}],["ff9518",{F:"M C C C C Z M C C C C Z M L L L L Z".split(" "),I:[746,623,669,623,607,561,607,484,607,407,669,345,746,345,823,345,885,407,885,484,885,561,823,623,746,623,747,376,728,376,713,361,713,342,713,323,728,308,747,308,766,308,781,323,781,342,781,361,766,376,747,376,742,-8,751,-8,751,392,742,392,742,-8]}]]}]; +var hr={};hr.parse=function(a){var F=new Uint8Array(a),y=null;if(F[0]==80&&F[1]==75){var c=Date.now(),Q=UZIP.parse(F.buffer),y=Q["document.json"]; +y=JSON.parse(n.fz(y,0,y.length));hr.i6(y,Q)}else{var S=gg.parse(a);y=hr.I8(S[2][0][1])}return y};hr.i6=function(a,F){var y=typeof a; +if(y=="string"||y=="number"||y=="boolean")return a;if(a instanceof Array){for(var G=0;G0){var O=Math.min(100,b);q.push(O,0);b-=O}v=new Uint8Array(q)}i=o.NSAttributes instanceof Array?o.NSAttributes:[o.NSAttributes]; +var R={$class:"NSAttributedString",NSString:N,NSAttributes:i};T.attributedString={_class:"MSAttributedString",archivedAttributedString:R}; +R.NSAttributeInfo={$class:"NSMutableData","NS.data":v};delete T.storage}return c};hr.P6={hd:function(a,F){return a[F+1]<<8|a[F]},s:function(a,F){return a[F+3]<<24|a[F+2]<<16|a[F+1]<<8|a[F]},Os:function(a,F,y){var c=""; +for(var G=0;G>4,A=w&15,o=null; +W+=1;if([4,5,6,10,12,13].indexOf(J)!=-1&&A==15){var T=d.Ad(a,W);W+=T.xW;A=T.H}if(!1){}else if(J==0)o=A==8?!1:A==9?!0:null; +else if(J==1)o=d.Ad(a,W-1).H;else if(J==2)o=1<=12&&(h&1)==0){var d=h-13>>1,W=new Uint8Array(d); +gg.YR(a,y,W,0,d);S.push(W);y+=d}else if(h>=13&&(h&1)==1){var d=h-12>>1;S.push(gg.fz(a,y,d));y+=d}else throw"unknonw type "+h}return S},Qq:function(a){if(!(a[18]==1&&a[19]==1&&a[20]==0&&a[21]==64&&a[22]==32&&a[23]==32))throw"unexpected SQL3 header"; +var F={rR:gg.Os(a,0,15),Uh:gg.hd(a,16),a1w:gg.s(a,24),size:gg.s(a,28),a2o:gg.s(a,32),a5w:gg.s(a,36),afZ:gg.s(a,40),a2a:gg.s(a,44),a56:gg.s(a,48),alF:gg.s(a,52),a6I:gg.s(a,56),abl:gg.s(a,60),a2R:gg.s(a,64)!=0,acO:gg.s(a,68),agn:gg.s(a,92),app:gg.s(a,96)}; +if(F.Uh==1)F.Uh=65536;if(F.a6I!=1)throw"unsupported text encoding "+F.a6I;return F},a4X:function(a,F){return a[F]<<16|a[F+1]<<8|a[F+2]},afs:function(a,F){var y=gg.a4X(a,F),c=y&8388608; +return c?-(16777215-y+1):y},a01:function(a,F){gg.in[0]=a[F];return gg.amj[0]},Ad:function(a,F){var y=gg.in; +for(var G=0;G<4;G++)y[G]=a[F+3-G];return gg.a6E[0]},Ob:function(a,F){var y=gg.in;y[0]=a[F+1];y[1]=a[F]; +return gg.aaB[0]},hd:function(a,F){return a[F]<<8|a[F+1]},s:function(a,F){return a[F]<<24|a[F+1]<<16|a[F+2]<<8|a[F+3]},ajv:function(a,F){var y=gg.in; +for(var G=0;G<8;G++)y[G]=a[F+7-G];return gg.akR[0]},J2:function(a,F){var y=F,$=0;while(!0){var c=a[F]; +F++;$=$*128+(c&127);if(c<128)break}return{VO:$,xW:F-y}},Os:function(a,F,y){var c="";for(var G=0;G2*8192*8192)d++;S.scale(1/d,1/d);this.arI=[a,F,y,c];var d=S.Ms();a=Math.round(a*d); +F=Math.round(F*d);y=Math.round(y*d);c=Math.round(c*d);var w=this.W0,J=this.Wu;if(J==null){S.iU=-a}else{var A=J[2]-J[0]+30,T=Math.round(y-a)+30; +if(this.dp.x+A+T>8192){S.iU=-a;this.dp.x=0;this.dp.y+=this.rF+120;this.rF=0}else{S.iU+=A;this.dp.x+=A}}S.ma=this.dp.y+(this.ajm?c:-F); +this.rF=Math.max(this.rF,Math.round(c-F));this.Wu=[a,F,y,c];w.u.push(w.Lc())};ir.prototype.f9=function(){var a=this.W0,F=a.u[a.u.length-1]; +return F};ir.prototype.yb=function(){var a=JSON.parse(JSON.stringify(aX.ln.default));a.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter"; +a.strokeEnabled.v=!1;a.fillEnabled.v=!1;return a};ir.prototype.vE=function(){var a=this.W0,F=a.kD(); +F.k0("Path "+a.u.length);this.W0.u.push(F);F._8|=16;F.add.SoCo={classID:"null",Clr:{t:"Objc",v:D.V.HT({i:0,m:0,d:0})}}; +F.add.vmsk=new Y.G2;F.add.vstk=this.yb();return F};ir.prototype.Xn=function(a){var F={I:a.crds,F:a.cmds},y=D.M.nM(F,!1); +D.A.dc(y,this.hE);return y};ir.a7q=function(a,F){for(var G=0;Gc.L()*2){var w=Q.Df(c),J=w.x,A=w.y,T=J+w.t,o=A+w.w;S={cmds:["M","L","L","L","Z"],crds:[J,A,T,A,T,o,J,o]}}else if(this.O8==null&&UDOC.G.isBox(S,[Q.x,Q.y,Q.x+Q.t,Q.y+Q.w])&&Q.pE(c)){S=d}else this.xf(a); +var v=this.Xn(S),i=D.M.Fx(Q);D.M.q(i.I,this.hE,i.I);Q=D.M.zO(i.I);var N=ir.pR(a.colr,this.hE,Q),b=this.f9(),q=b!=null&&b.opacity==Math.round(255*a.ca)&&b.add.vstk!=null&&!b.add.vstk.strokeEnabled.v&&b.add.SoCo&&N.type=="SoFi"&&JSON.stringify(b.add.SoCo.Clr.v)==JSON.stringify(N.H.v.Clr.v); +if(q){var O=!1;for(var G=0;G=0&&a.u[G].add.lsct!=fc.xD)G--;var c=this.W1;if(c){var Q=new cJ,S=F;while(S>G){Q=a.u[S].IT(this.W0,!1,!0); +S--}y=c.pE(Q)}if(y){this.IN.splice(G,1);a.u.splice(G,1)}else{a.u.push(this.akd)}this.O8=null}};ir.pR=function(a,F,y){var c,Q; +if(a.length!=null){c="SoFi";var S=JSON.parse(aX._O[aX.order.indexOf("SoFi")]);Q={t:"Objc",v:S};Q.v.Clr.v=ir.Hk(a)}else{var h=ir.ae4(a,F,y); +c="GrFl";Q={t:"Objc",v:h}}return{type:c,H:Q}};ir.ae4=function(a,F,y){var c=JSON.parse(aX._O[aX.order.indexOf("GrFl")]),Q=c.Grad.v; +Q.Intr.v=0;var S=ir.PY(a.mat);S.concat(F);var h=new iS(0,0),d=new iS(y.t,0),W=a.crds;if(a.typ=="rad"){c.Type.v.GrdT="Rdl"; +var w=.7;h.x=(1-w)*W[0]+w*W[3];h.y=(1-w)*W[1]+w*W[4];d.x=h.x;d.y=h.y;d.x+=Math.max(W[2],W[5])}else{c.Type.v.GrdT="Lnr"; +h.x=W[0];h.y=W[1];d.x=W[2];d.y=W[3];h.x=d.x+.5*(h.x-d.x);h.y=d.y+.5*(h.y-d.y)}h=S.NE(h);d=S.NE(d);D.V.Y9(h,d,y,c); +var J=a.grad;D.V.TQ(J,Q);return c};ir.prototype.PutText=function(a,F,y,c){var Q=F.charCodeAt(0),T=null; +if(this.Vx!=-1&&this.Vx!=this.Hc)return;if(F.length==0||F.length==1&&(Q==0||Q==8203))return;this.xf(a); +var S=this.W0,h=a.font,d=ir.PY(a.ctm);d.concat(this.hE);var W=ir.PY(h.Tm);W.concat(d);var w=m.p.Ms(W),J=new hg(1/w,0,0,-1/w,0,0); +J.concat(W);var A=h.Tfs*w;if(h.Th!=100||h.Trise!=0){console.log(h)}var o=S.u.length-1;while(o>=0&&S.u[o].add.TySh==null)o--; +if(J.d*J.d+J.Xa*J.Xa<.001&&c==null&&o>=0&&S.u[o].add.TySh&&S.u[o].opacity==Math.round(255*a.ca)){var v=S.u[o],i=this.IN[o],N=v.add.TySh.q,b=(N.iU+i.I2-J.iU)/A,q=Math.abs(b),O=F.indexOf(" ")==-1,R=N.re==J.re&&N.d==J.d&&N.Xa==J.Xa&&N.XL==J.XL,k=R&&Math.abs(i.NL-J.ma)<1e-5&&q<.6,L=J.ma-i.NL; +if(k){T=v;i.I2=J.iU-N.iU;if(b>.2&&O&&[".",",","?",":","!"].indexOf(F)==-1)F=" "+F}else if(R&&Math.abs(J.iU-N.iU)<1e-5&&0>3]>>7-(G&7)&1)*255; +Q[h]=d;Q[h+1]=d;Q[h+2]=d;Q[h+3]=255}a=Q}return a};ir.prototype.Kx=function(a,F,y,c,Q){if(a.length!=F*y*4){var S=f$.vl(a.buffer),h=f$.QS(S); +if(h==null||S=="tga")h=f$.QS("jpg");a=new Uint8Array(h.YP(a,c,Q)[0].data)}return a};ir.prototype.ShowPage=function(){var a=this.W0; +this.Hc++;var F=this.Wu;this.UJ();var y=a.kD();a.u.push(y);var c=new cJ(Math.round(this.dp.x),Math.round(this.dp.y),Math.round(F[2]-F[0]),Math.round(F[3]-F[1])); +this.Hv=this.Hv.jD(c);y.GF(c);y.add.artb.artboardBackgroundType.v=3;y.k0("Page "+this.Hc);y.add.lsct=fc.$K; +y.X0="pass";y._8=24};ir.prototype.Print=function(a){console.log("Print:",a)};ir.prototype.Done=function(){var a=this.W0; +if(this.Hc==1)a.u[a.u.length-1].add.lsct=fc.bc;a.WI(this.Hc);for(var G=0;G32767)S=!0}if(S){a.u.splice(G,1); +G--;continue}}F.Ja(a);if(c&&Q.Ue.length!=0){this.Jn(Q);var W=c.KU,w=Q.Ue.length,J=Q.Ue[0],A=0,T=0;for(var h=0; +hv.length/2){o[h]=v.split("").reverse().join(""); +var q=W.EngineDict.ParagraphRun.RunArray[h].ParagraphSheet.Properties;q._Direction=1;q.Justification=eA.wO(q)}}eA.Lg(W,o.join("\n"))}}a.uy=!0; +a.t=this.Hv.t;a.w=this.Hv.w;a.buffer=D.G(this.Hv.L()*4)};var ae={};ae.zD=function(a,F,y,c,Q,S){if(Q==null)Q=a.t; +if(S==null)S=a.w;var h=!1,d=[a.root],W=a.root.children;if(a.add.artd){h=!0;for(var G=0;Gd.length){J.splice(G,1); +G--}var i=Q/a.t,N=S/a.w,b=i*72/a.BD,q=N*72/a.BD,O=72*F[5],R=72*F[5];for(var G=0;G>>16&255)/255,(j3>>>8&255)/255,(j3&255)/255]; +var X=hY[U];D.M.q(X.I,Q,X.I);X=D.M.ao8(X);y.pth={cmds:X.F,crds:X.I};c.Fill(y)}}else if(T&&S[3]==!1){var Z=T.KU,c9=T.q.clone(),hW=new hg(1,0,0,-1,0,0); +hW.concat(c9);hW.concat(Q);var cY=eA.AC(Z),aR=new fD(Z,h);for(var G=0;G=0;G--){var o=aX.order[G];if(o=="GrFl"||o=="SoFi")continue;if(a.add.vmsk&&o=="FrFX")continue; +var v=c[o],i=G>7||o=="FrFX";if(i!=W)continue;for(var N=0;Na.length)throw"e";if(S){Q.sub=[];F+=12;var h=Q.B+Q.size; +while(Fa.length)throw"e";if(S.h2=="RIFF"||S.h2=="LIST"&&(S.PD!="cmpr"&&S.PD!="stlt")){S.sub=[]; +F+=12;var h=S.B+S.size;while(Fa.length)throw"e";if(S){Q.sub=[];F+=12;var h=Q.B+Q.size; +while(F=0;G--)dZ.ry(T[G],F,y,c)}else if(S=="obj "&&w.H&&w.H.path){A.k0("Object "+y.u.length); +var o=F.Va[w.H.ahh],v=F._L[w.H.ajg],i=A.getName(),N=o&&o.type!=0,b=N&&o.H!=null?o.H:[0,0,0];A._8|=16; +A.add.vstk=JSON.parse(JSON.stringify(aX.ln.default));var q=A.add.vstk;q.strokeEnabled.v=!1;A.add.vmsk=new Y.G2; +if(v&&v.a2s!=1){q.strokeEnabled.v=!0;q.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter"; +q.strokeStyleLineWidth.v.val=v.lineWidth*c.Ms();var O=v.color;q.strokeStyleContent.v.Clr.v=D.V.HT({i:O[0]*255,m:O[1]*255,d:O[2]*255})}var R=w.H.path; +A.add.vmsk.g=D.M.nM(R,!1);D.A.dc(A.add.vmsk.g,J);ir.Bu(b,A,J,D.A.WL(A.add.vmsk.g));q.fillEnabled.v=N; +A.Al();A.Ja(y)}else if(S=="obj "&&d){var k=w.H.abi,L=w.H.a6k,_="";A.add.TySh=eA.X9(0,0);var C=J.Ms(); +A.add.TySh.q.translate(J.iU,J.ma);var t=A.add.TySh.KU,M=d.H.agu;for(var G=0;G=G.data.length)throw"e";var a=0;while(G.data[G.B+a]!=0)a++; +var F=n.Os(G.data,G.B,a);G.B+=a+1;return F};dZ.adY=function(a){if(a.vI<600)return Math.PI*dZ.gm(a)/1800; +return Math.PI*dZ.ee(a)/18e7};dZ.akS=function(a){if(a.vI<1500)return dZ.Bc(a);else return dZ.Nt(a)/254e3}; +dZ.Bc=function(a){if(a.vI<600)return dZ.gm(a)/1e3;else return dZ.ee(a)/254e3};dZ.a1k=function(a){if(a.vI<600)return CRDParser.t2(a); +else return dZ.y7(a)};dZ.agg=function(a){if(a.vI<600)return CRDParser.gm(a);else return dZ.ee(a)};dZ.qt=function(a,F,y,c){var Q=dZ,S=Q.a8n,h=Q.t2,d=Q.y7,W=Q.apA,w=Q.gm,J=Q.ee,A=Q.Nt,T=Q.Bc,o=Q.akS,v=Q.adY,i=Q.a1k,N=Q.agg; +for(var b=0;b=1300);O.H.abh=dZ.im(a);O.H.a6g={};var E=d(a);for(var G=0;G1300)a.B+=4;if(q>=1300){if(d(a))a.B+=68;else a.B+=12}else{a.B+=20;if(q>=1e3)a.B+=8;if(d(a))a.B+=8; +a.B+=8}}var hY=d(a);O.H.ai1={};for(var G=0;G=1300)hW+=4;a.B+=hW*c9;var cY=d(a);a.B+=28*cY;if(q>800){var ho=d(a); +a.B+=12*ho}O.H.XK={};for(var G=0;G=1200)eB*=2; +a.B+=eB;aB.a4W=d(a);aB.amn=d(a);if(e7>1){aB.aa1=d(a);aB.ahG=d(a);aB.a21=d(a);aB.a83=d(a);if(q>800)aB.alV=d(a)}if(e7>2){aB.a11=d(a); +aB.apy=d(a);aB.a7$=d(a);aB.a2b=d(a);aB.a14=d(a)}O.H.XK[b2]=aB}}else if(O.h2=="LIST")dZ.qt(a,O.sub,y,c+1); +else if(O.h2=="txsm"){O.H={};if(q<600)throw"e";if(q<700)throw"e";if(q>=1600)throw"e";if(q>=1500)a.B+=37; +else a.B+=36;if(d(a)){if(q<800)a.B+=32}if(q<800)a.B+=4;O.H.a1l=d(a);O.H.agu=[];a.B+=48;if(q>=800){if(d(a)){a.B+=32; +if(q>=1300)a.B+=8}}if(q>=1500)a.B+=12;var e7=d(a),et=1,ao=!1;if(!e7){if(q>=800)a.B+=4;if(q>800)a.B+=2; +if(q>=1400)a.B+=2;a.B+=24;if(q<800)a.B+=8;et=d(a)}for(var r=0;r=1300&&e7)a.B++; +a.B++;var x=d(a),eT=[];for(G=0;G=800)hA=S(a);var aB={}; +if(a2&1){aB.arC=h(a);var gH=h(a);if(gH)aB.a02=gH}if(a2&2)a.B+=4;if(a2&4)aB.aiC=T(a);if(a2&8)a.B+=4;if(a2&16)a.B+=4; +if(a2&32)a.B+=4;if(a2&64){aB.a4W=d(a);if(q>=1500)a.B+=48}if(a2&128){aB.amn=d(a)}if(hA&8){if(q>=1300){var be=d(a); +if(a.B+be*2>=a.data.length){ao=!0;break}a.B+=be*2}else a.B+=4}if(hA&32){var e5=S(a);if(e5)a.B+=52}if(cQ==2)if(q>=1300)a.B+=48; +eT.push(aB)}if(ao){break}var i5=d(a);if(a.B+i5*4>a.data.length)break;var iz=[];for(G=0;G=1200)aL=W(a)&4294967295;else aL=d(a);iz[G]=aL>>16|aL&1}var az=i5;if(q>=1200)az=d(a);var hu=dZ.l9(a); +O.H.agu.push({aoq:eM,text:hu,XK:eT})}}else if(O.h2=="font"){var aV=h(a),bQ=h(a);a.B+=14;var dN=dZ.l9(a); +O.H={id:aV,a0c:bQ,name:dN}}else if(["IKEY","ICMT","pfrd","bcfg"].indexOf(O.h2)!=-1){}else if(O.h2=="flgs")O.H=d(a); +else if(O.h2=="bbox"){var h0=T(a),gl=T(a),dQ=T(a),di=T(a);O.H=new cJ(h0,gl,dQ-h0,di-gl)}else if(O.h2=="fild"){var c4=d(a),dp=0,g8; +if(q>=1300){a.B+=4;dp=h(a);a.B+=2}var eI=h(a);if(eI==0){}else if(eI==1){a.B+=q>=1300?13:2;g8=dZ.x7(a)}else if(eI==2){a.B+=q>=1300?8:2; +var gp=S(a),iI=0;if(q>=1300){a.B+=17;iI=w(a)}else if(q>=600){a.B+=19;iI=J(a)}else{a.B+=11;iI=w(a)}var cS=v(a),bp=.5+N(a),dU=.5+N(a)-.5; +if(q>=600)a.B+=2;var dh=i(a)&255,e0=S(a)/100;a.B++;var eq=i(a)&65535;if(q>=1300)a.B+=3;var gO=[];for(var G=0; +G=1300){if(dp==158||q>=1600&&dp==150)a.B+=26;else a.B+=5}var aF=i(a)/100; +if(q>=1300)a.B+=3;gO.push([aF,ef])}g8={typ:gp==1?"lin":"rad",crds:[bp-Math.cos(cS)/2,dU-Math.sin(cS)/2,bp,dU],grad:gO,mat:[1,0,0,1,0,0]}}else console.log("Unknown fill type",eI); +O.H={id:c4,type:eI,H:g8}}else if(O.h2=="outl"){var c$=d(a);if(q>=1300){var bk=0,dr=0;while(bk!=1){a.B+=dr; +bk=d(a);dr=d(a)}}var gj=h(a),d0=h(a),b1=h(a);if(q<1300&&q>=600)a.B+=2;var g7=T(a),al=h(a)/100;if(q>=600)a.B+=2; +var i6=v(a);if(q>=1300)a.B+=46;else if(q>=600)a.B+=52;var g8=dZ.x7(a,c$==270963208||c$==276198e3,c$); +O.H={id:c$,a2s:gj,ahM:d0,a3b:b1,lineWidth:g7,color:g8}}else if(O.h2=="mcfg"){if(1300<=q)a.B+=12;else if(900<=q)a.B+=4; +else if(600<=q&&q<700)a.B+=28;var e8=0,af=0;if(q<400)throw"e";else{e8=T(a);af=T(a)}O.H={amX:new iS(e8,af)}}else if(O.h2=="loda"){var l=a.B,fI=i(a),g$=i(a),gW=i(a),eK=i(a),eg=i(a),d6=[],a_=[]; +a.B=l+gW;for(var G=0;G=0;G--)a_[G]=i(a);O.H={};for(var G=0; +G=1300)a.B+=8; +var hG=h(a);if(hG==8){var ct,bN,h0,fJ,fh,gl;if(q>=600)a.B+=6;if(q>=500){ct=A(a);bN=A(a);h0=A(a)/(q<600?1e3:254e3); +fJ=A(a);fh=A(a);gl=A(a)/(q<600?1e3:254e3)}else throw"e";O.D3=new hg(ct,fJ,bN,fh,h0,gl)}else console.log(hG)}}else if(!1){console.log(O); +var hM=Math.min(O.size,32);console.log(n.dS(data,O.B,hM));console.log(n.a2K(data,O.B,hM))}}};dZ.im=function(a,F){var y=dZ.y7,c={},Q=y(a); +for(var G=0;G=500){h=c(a);if(h==1&&S>=1300)h=25;if(h==25||h==30){var W=0;if(h==30){h=25;W=30}else{W=c(a);a.B+=4}var w=c(a),J=c(a)}else if(h==14)throw"e"; +else{a.B+=6;d=Q(a)}}else throw"e";var A=[];if(h==2||h==9||h==17){var T=[d>>>0&255,d>>>8&255,d>>>16&255,d>>>24&255]; +if(h==2)for(var G=0;G<4;G++)T[G]=Math.round(255*T[G]/100);for(var G=0;G<4;G++)T[G]/=255;A=UDOC.C.cmykToRgb(T)}else if(h==1||h==5){A=[d>>>0&255,d>>>8&255,d>>>16&255]; +for(var G=0;G<3;G++)A[G]=A[G]/255}else console.log("Unknown color model "+h,d,d.toString(16));return A}; +var f1=function(){var a,F,y=new ArrayBuffer(4),c=new Uint8Array(y),Q=new Uint32Array(y),S=new Float32Array(y); +function h(T,o){for(var v=0;v>>0}function W(T,o,v,i,N){a=T;F=o;var b=i[0]=="mesg",q=i[2],O={},R=1,k=b?1e9:q.length; +while(R<=k){var L=R;if(b){L=d();if(L==0)break}var C=h(q,L),t=C[2],_=C[1]==1,M=_?d():1,I=new Array(M); +if(t==3){if(!_)throw"e";I=a.slice(F,F+M);F+=M}else for(var G=0;G>>1):r>>>1}else if(t==7)j=d();else if(t==9){if(a[F]==0){j=0; +F++}else{c[0]=a[F];c[1]=a[F+1];c[2]=a[F+2];c[3]=a[F+3];var s=Q[0];Q[0]=s<<23|s>>>9;j=S[0];F+=4}}else if(t==11){var e=w(a,F); +j=e[0];F+=e[1]+1}else throw t}else{var P=v[t>>>1];if(P[0]=="enum"){var l=a[F++];if(l>127)throw"e";j=P[2][l]}else{var x=W(a,F,v,P,N+1); +j=x[0];F=x[1]}}I[G]=j}O[C[3]]=_?I:I[0];R++}return[O,F]}function w(T,o){var v=o;while(T[v]!=0)v++;return[n.fz(T,o,v-o),v-o]}function J(T,o){var v=o; +while(T[v]!=0)v++;for(var G=o;G127)throw"e";return n.Os(T,o,v-o)}function A(T){a=T;F=1; +var o=[];while(F2)throw"e";var q=d(),O=[]; +for(var G=0;Gc?1:-1};eJ.E7=function(a){for(var G=1;G1.999*Math.PI)A=D.A.yP.KJ(0,0,W,w,0);else A=D.A.yP.ahC(W/2,w/2,w/2,v,i);if(N!=0&&N!=1){var b=Y.G2.xj(A).slice(3); +b.reverse();for(var G=0;G>>24&255)/255,(o>>>16&255)/255,(o>>>8&255)/255,(o>>>0&255)/255]}function Q(o,v){var i=v&4278190080|(v&255)<<16|(v>>>8&255)<<8|v>>>16&255; +new Uint32Array(o.buffer).fill(i)}function S(o,v){var i=o.TSZ,N=o.WPX,b=o.HPX,q=o.TIL,O=new cJ(0,0,N,b),R=D.G(N*b*4),k=0; +for(var L=0;L>>24!=0){var Z=D.V.HT({i:f>>>16&255,m:f>>>8&255,d:f>>>0&255});g.add.artb.Clr={t:"Objc",v:Z}; +U=4}g.add.artb.artboardBackgroundType.v=U;g.k0(l.PGN?l.PGN:"Page "+(x+1));g.add.lsct=fc.$K;g.X0="pass"; +g._8=24}}function d(o,v,i){var N=o[v];return N instanceof Array?N[i]:N}function W(o,v,i,N,b){var q=v.kD(); +if(o.VIS!=null)q.Ig(o.VIS);if(o.VIF!=null)q.Ig(o.VIF.VIS);if(o.OPA!=null)q.opacity=Math.round(255*o.OPA/1e3); +q.X0=o.CLL||i=="GRP"?"pass":"norm";if(o.BLD!=null){var O=o.BLD,R={"0":"norm","2":"mul ","4":"over","5":"scrn","7":"diss","9":"dark","10":"lite","37":"idiv","30":"norm","39":"lbrn","41":"vLit"}[O+""]; +if(R==null)console.log(o.OBN,O);else q.X0=R;if(O==30)q.opacity>>>=1}if(o.CLL){q.k0(o.LNM);v.u.push(v.Lc()); +var k=o.CLL.CEL.ELM;for(var G=k.length-1;G>=0;G--)W(k[G][1],v,k[G][0],N,b);q.add.lsct=o.DIS?fc.bc:fc.$K; +q._8|=24}else if(i=="GRP"){var L=q.add.lmfx=J(o.EFL),C;v.u.push(v.Lc());var k=o.ELM;if(o.MNA){C=k[0][1]; +k=k.slice(1)}q.k0("Group: "+k.length+" objects");for(var G=k.length-1;G>=0;G--)W(k[G][1],v,k[G][0],N,b); +if(C){if(o.MRX){var t=S(C,N),_=q.N=new Y.Sh;_.rect=t[1].clone();_.rect.x=C.XLC;_.rect.y=C.YLC+b.ma;_.channel=D.G(_.rect.L()); +D.ie(t[0],_.channel,0);D.kW(_.channel)}else{w(q,C,b);q.Ja(v)}}q.add.lsct=fc.$K;q._8|=24}else if(i=="IMG"){q.k0(o.OBN?o.OBN:"Bitmap"); +var t=S(o,N);q.rect=t[1].clone();q.rect.x=o.XLC;q.rect.y=o.YLC+b.ma;q.buffer=t[0]}else if(i=="TXT"){var M=o.TFS,I=M.TRN instanceof Array?M.TRN.length:1,e=""; +q.add.lnsr="rend";q.add.TySh=eA.X9(0,0);q.add.TySh.pA=new cJ(0,0,100,100);var j=new hg(1,0,0,1,o.LFT,o.TOP); +if(o.MTX){var r=o.MTX,_=new hg(r.M00,r.M01,r.M10,r.M11,r.M20,r.M21);j.concat(_)}j.concat(b);q.add.TySh.q=j; +var s=q.add.TySh.KU;for(var G=0;G6e3)hW*=.5;_.t=Math.round(_.t*hW);_.w=Math.round(_.w*hW);_.BD=Math.round(72*hW); +_.buffer=D.G(_.t*_.w*4);for(var G=0;G<6;G++)p[G]*=hW;for(var cY=0;cY>>3)]>>>7-(gp&7)&1); +else throw c4}else if(dQ==3)for(var G=0;G",0,0); +t.u.push(dh);dh.X0=E;dh.opacity=Math.round(255*p);dh.Ig(e7==0);var M=new hg;M.scale(1,-1);M.concat(d(c9.slice(1))); +M.concat(d(x.ctm));var e0=dh.rect.clone();e0.x=e0.y=0;var eT=D.M.Fx(e0).I;D.M.q(eT,M,eT);dh.add.SoLd.Trnf=m.p.w8(eT); +dh.add.SoLd.nonAffineTransform=m.p.w8(eT);dh.et(t,!1)}else if(cQ=="Ln"){s=Q(et)}else if(cQ=="u"||cQ=="q"||cQ=="Lb"){b2.push(ho==1); +aB.push((cQ=="Lb"?1-hA[0]:e7)==0);if(B)continue;t.u.push(t.Lc())}else if(cQ=="U"||cQ=="Q"||cQ=="LB"){if(b2.length==0||aB.length==0)throw eB; +var eq=b2.pop(),gO=aB.pop();if(cQ=="LB")eq=cY==1;if(B)continue;var dh=t.kD();dh.k0((cQ=="U"?"":"")+P); +if(cQ=="LB")dh.k0(s);if(cQ=="Q"&&Z.length!=0){var ef=Z.pop(),aF=UDOC.G.isBox(ef,[0,0,t.t,t.w]);if(!aF)w(dh,ef,t)}dh.add.lsct=eq?fc.bc:fc.$K; +dh.X0="pass";dh._8=24;dh.Ig(gO);t.u.push(dh)}else if(cQ=="Bb"||cQ=="Bh"||cQ=="BB"){}else if(cQ=="Bg"){var c$=I.Setup.Gradient[Q(et)]; +f="GdFl";H=c(c$.$B,c$.a9z)}else if(cQ=="Bm"||cQ=="Xm"){var bk=H.Type.v.GrdT;if(bk=="Lnr"&&cQ!="Xm"||bk=="Rdl"&&cQ!="Bm")continue; +var dr=D.M.zO(x.pth.crds),gj=new iS(0,0),d0=new iS(1,0),b1=new hg;b1.concat(d(hA));b1.concat(d(x.ctm)); +gj=b1.NE(gj);d0=b1.NE(d0);if(bk=="Lnr"){gj.x=(gj.x+d0.x)/2;gj.y=(gj.y+d0.y)/2}D.V.Y9(gj,d0,dr,H)}else if(cQ=="p"){var g7=Q(et),al=I.Setup.Pattern[g7]; +if(al.raw==null){var dr=al.Z5,aV=Math.round(dr[2]-dr[0]),bQ=Math.round(dr[3]-dr[1]),ao=new iO;ao.t=aV; +ao.w=bQ;ao.buffer=D.G(aV*bQ*4);F(ao,al.Ue,[1,0,0,-1,-al.Z5[0],bQ+al.Z5[1]],I,j,r);al.raw=new Uint8Array(f$.QS("PSD").lQ(ao))}var i6=et.slice(et.indexOf(")")+2),e8=i6.slice(0,i6.indexOf("[")-1).split(" ").map(parseFloat),af=i6.slice(i6.indexOf("[")+1,i6.indexOf("]")).split(" ").map(parseFloat); +f="patt";H=[g7,e8,af]}else if(cQ=="J"||cQ=="j"||cQ=="w"||cQ=="M"||cQ=="d"){for(var G=1;G",0,0);var e0=dh.rect.clone();e0.x=e0.y=0;var eT=D.M.Fx(e0).I,af=d(H[2]);af.iU=af.ma=0; +D.M.q(eT,af,eT);dh.add.SoLd.Trnf=m.p.w8(eT);dh.add.SoLd.nonAffineTransform=m.p.w8(eT);dh.et(t,!1)}else{dh=t.kD(); +dh._8|=16;var hv=dh.add.vstk=JSON.parse(JSON.stringify(aX.ln.default));hv.strokeEnabled.v=hv.fillEnabled.v=!1; +if(f=="SoCo"){dh.add.SoCo=JSON.parse(aX._O[aX.order.indexOf("SoFi")]);var gx=dh.add.SoCo.Clr.v;S(gx,H)}if(f=="GdFl")dh.add.GdFl=H; +if(a2=="f"||a2=="b"||cQ=="*U"&&U&1)hv.fillEnabled.v=!0;if(a2=="s"||a2=="b"||cQ=="*U"&&U&2)ir.U7(hv,x,1,ir.Hk(g))}dh.k0("<"+(cQ=="*U"?"Compound ":"")+"Path>"+P); +dh.X0=E;dh.opacity=Math.round(255*p);dh.Ig(e7==0);w(dh,x.pth,t);t.u.push(dh);l.newPath(x)}else if(cQ==","&&eT[1]=="/StoryIndex"){var aU=I.Setup.TextDocument,hG=null; +if(!(aU instanceof Array))aU=I.Setup.TextDocument=T(aU,r);var hB=aU[0],gK=aU[2];if(hB._DocumentResources)hB=aU[0]=cC.ahu(hB); +else cC.EK(hB);var dh=t.kD();dh.add.lnsr="rend";dh.add.TySh=eA.X9(0,0);var ev=il.am4(hB),c6=dh.add.TySh.KU=ev[hA[0]]; +if(c6==null){console.log("text not found");continue}dh.k0(eA.AC(c6).slice(0,50));dh.X0=E;dh.opacity=Math.round(255*p); +dh.Ig(e7==0);var aP=hB._1._1[hA[0]]._1._0[0]._0;aP=parseInt(aP.slice(1));var g6=hB._0._8._0,fx=g6[aP]._0; +if(fx._0)hG=h(fx._0);else if(fx._1)hG=h(fx._1._0);else hG=h(fx._2._2).slice(3);if(hG.length!=2){var dr=D.M.zO(hG); +hG=[dr.x,dr.y];if(dr.L()!=0){eA.yK(c6,1);eA.wM(c6,[0,0,Math.round(dr.t),Math.round(dr.w)])}}var ct=new hg,bN=new hg(1,0,0,1,hG[0],hG[1]),fJ=new hg(1,0,0,1,-gK[0],-gK[1]),fh=d(x.ctm),hM=new hg; +if(fx._2&&fx._2._2){var M=h(fx._2._2);hM=new hg(M[0],M[1],M[2],M[3],M[4],M[5])}ct.concat(bN);ct.concat(hM); +ct.concat(fJ);ct.scale(1,-1);ct.concat(fh);dh.add.TySh.q=ct;t.u.push(dh);t.uy=!0}}}function y(t,_,M){var I=UDOC.G,j=[],r=[],s="/DeviceGray",e,P=[],l=1,e5=0,i5=0,iz=0; +for(var x=0;x");var be=gH.add.vstk=JSON.parse(JSON.stringify(aX.ln.default));be.strokeEnabled.v=!1; +for(var G=0;Giz){iz=dN;e5=G;i5=eT}}var h0=r[e5],gl=r[i5],dQ=gH.add.GdFl=c(0,[[0,h0[0]],[1,gl[0]]]),di=d(_.ctm),c4=di.NE(new iS(h0[1],h0[2])),dp=di.NE(new iS(gl[1],gl[2])),eI=D.M.zO(_.pth.crds); +c4.x=(c4.x+dp.x)/2;c4.y=(c4.y+dp.y)/2;D.V.Y9(c4,dp,eI,dQ);w(gH,_.pth,M);M.u.push(gH);I.newPath(_)}function c(t,_){var M=JSON.parse(aX._O[aX.order.indexOf("GrFl")]),I=M.Grad.v; +I.Intr.v=0;M.Type.v.GrdT=["Lnr","Rdl"][t];D.V.TQ(_,I);return M}function Q(t){return t.slice(t.indexOf("(")+1,t.indexOf(")"))}function S(t,_){t.Rd.v=_[0]*255; +t.Grn.v=_[1]*255;t.Bl.v=_[2]*255}function h(t){var _=[];for(var G=0;GP)e=P;M.push(e,P);j-=P-e}}M.push(_._end);var l=new Uint8Array(j); +for(var G=0;G>",s),P=n.Os(I,s+2,e-s-2).split("/"),l=[];for(var G=0;G")){var l=n.rX(j.join("")),x=FromPS.F.ASCII85Decode({off:0,buff:l}); +_.push(x);M.push(!1);top++;j=null}}else if(r!=null){if(e=="X+"){_.push(r);M.push(!1);top++;r=null}else r.push(e)}else if(e=="/Binary : /ASCII85Decode ,"){j=[]}else if(e=="X=")r=[]; +else if(e=="/SVGFilter :"||e=="; /Def ;")continue;else if(e.startsWith("/")&&e[1].toUpperCase()!=e[1].toLowerCase()){if(e.startsWith("/XMLUID")){var E=k(e); +if(M[top])throw"e";_[top][E[4]]=E[2]}if(e.startsWith("/GObjRef")){var E=k(e);if(!M[top])throw"e";_[top].push(E[2])}else{var p=e.startsWith("/Array")||e.startsWith("/Document"); +_.push(p?[]:{});M.push(p);top++}}else if(e.endsWith(",")){var f,H,E=k(e);E.pop();if(E[0]==";"||E.length==1){H=_.pop(); +M.pop();top--;f=M[top]?null:E.pop()}else{f=M[top]?null:E.pop();var g=E.pop(),B=E[0];if(g=="/Int")H=parseInt(B); +else if(g=="/Real")H=parseFloat(B);else if(g=="/Bool")H=B=="1";else if(g=="/String"||g=="/UnicodeString")H=E.join(""); +else if(g=="/RealMatrix"||g=="/RealPoint"||g=="/RealPointRelToROrigin")H=E.map(parseFloat);else throw g}if(M[top])_[top].push(H); +else _[top][f]=H}else if(e==";"){}else if(e==""){}else{if(e.indexOf("/RealPoint")!=-1){}else if(e.startsWith("(")&&e.endsWith(")")){}else if(e.endsWith("/RealMatrix")){}else throw e; +I=I?I+e:e}}return _}function k(t){var _=0,M=[];while(_>>16)+1)};f$.zw={aoY:function(a,F){fetch(a).then(function(y){return y.arrayBuffer()}).then(function(y){var c=new Uint8Array(y),Q=0,W=""; +if(F){Q=c.length;var S={level:9},h=pako.deflateRaw(c,S),d=UZIP.deflateRaw(c,S);console.log(Q,h.length,d.length); +c=h.length")!=-1)c="icc";else c="svg"}if(y(F,[60,115,118,103],Q))c="svg"; +if(y(F,[60,33,100,111],Q)||y(F,[60,33,68,79],Q)){if(n.ho(F," \t\t \t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t",h=" "+S+""; +if(a==1)h+=""+""+""; +h+=""+""+""; +var d=new Uint8Array(h.length);n.jQ(h,d,0);var W="data:image/svg+xml;base64,"+f$.YD(d.buffer);return{oM:W,a_:new cJ(0,0,128,128),J1:new iS(64,64)}}; +f$.YD=function(a){var F=new Uint8Array(a),y="";for(var G=0;G>3)]; +C=C>>7-(G&7)&1;var t=R*J+L<<2;v[t]=v[t+1]=v[t+2]=(1-C)*255;v[t+3]=255}}if(c=="P5")for(var G=0;G15e7||W==0||W==2){var w=new PDFJS.JpegImage;w.parse(a);var J=w.getData({width:Q,height:S,forceRGB:!0,isSourcePDF:y}),d=D.G(h*4); +for(var G=0;G1&&R<20)b=D.raw.Tb(R,Q,S)}if(c.xmp){N=bt.Np(c.xmp,N)}var k=F[237],L=[],C=[]; +if(k){var t=new Uint8Array(65536),_=0,M=0;for(var G=0;Gt.length){var e=new Uint8Array(t.length*2); +e.set(t);t=e}var P=new Uint8Array(a.buffer,M,s);t.set(P,_);_+=s}M=0;a=t;while(M<_){var l=n.Os(a,M,4); +M+=4;var x=n.hd(a,M);M+=2;var E=a[M++],p=n.Os(a,M,E);M+=E;if((E&1)==0)M++;var f=n.s(a,M);M+=4;var v=M+f+(f&1); +if(x==1028){while(M+4>>1)*Q+aL>>>1),hu=e7[az],aV=e7[az+(h>>>2)]; +hW[A]=hW[A+1]=hW[A+2]=hu;hW[A+3]=255;i5[A]=i5[A+1]=i5[A+2]=aV;i5[A+3]=255}aR.push({vH:new cJ(0,0,Q,S),data:hW.buffer},{vH:new cJ(0,0,Q,S),data:i5.buffer})}else if(b2=="edof"){var R=e7[8+7]; +console.log(R.toString(16));var M=8+16,bQ=n.HH(e7,M),dN=n.HH(e7,M+2),h=bQ*dN;M+=4;M+=32+16;var h0=D.G(h*4); +for(var G=0;G1){var di=aR[0].vH; +aR[0].eJ="Main";for(var G=1;G>>3)]>>>7-(O&7)&1,k=R*255; +N[J]=k;N[J+1]=k;N[J+2]=k;N[J+3]=255}}return[{vH:new cJ(0,0,h,S),data:N.buffer}]}else{var o=new PDFJS.JpxImage; +o.parse(a);var h=o.width,S=o.height,L=o.tiles,C=o.componentsCount,t=new Uint8Array(h*S*4),_=new cJ(0,0,h,S); +for(var o=0;o>>1,o.y>>>1,o.width-1,o.height-1,a[G][1]]; +for(var i=0;i<5;i++)h(d,W+3*i,v[i]);W+=15;d.HF(W,1);d.data[W]=1-T.blend<<1|T.dispose;W++;var N=new Uint8Array(f$.gV(T.img.buffer,o.width,o.height,"webp",1)),b=ab.Dh(N.buffer).sub,q=n.Os(N,12,4); +if(q!="VP8L"&&q!="VP8 "&&q!="VP8X")throw"e";var O=q=="VP8 "?0:q=="VP8L"?12:30,R=N.length-O;d.HF(W,R); +for(var i=0;i>>14&(1<<14)-1)+1}else throw"e"; +var o=[y(c,a,{B:0,size:F.length},J,A)];return o}var v=w.B,J=1+(n.Le(F,v+4)&16777215),A=1+(n.Le(F,v+7)&16777215),i=[],N=new cJ(0,0,J,A),b=D.G(J*A*4); +for(var G=0;G>>1==0)D.R.jU("norm",t,k,b,N,k,1);else D.vD(t,k,b,N);i.push({eJ:"_a_"+i.length+","+L,vH:N.clone(),data:b.buffer.slice(0)}); +if((_&1)==1){D.Jx(t,0);D.vD(t,k,b,N)}}return i};f$.qz.a90=function(a,F,y,c,Q){var S=f$.qz.exp,h=S.memory,d=5e6+2*y.size+c*Q*10; +f$.Zb(S,d);var W=new Uint8Array(h.buffer),w=S.malloc(y.size);W.set(new Uint8Array(F,y.B,y.size),w);var J=S.malloc(8),A=S.WebPDecodeARGB(w,y.size,J,J+4),T=n.Le(W,J),o=n.Le(W,J+4),v=T*o*4,i=D.G(v); +for(var G=0;G256){o=null; +break}}}if(o){N=1;while(1<>>16,M=o[G]>>>8&255,I=o[G]&255;C[t]=_;C[t+1]=M;C[t+2]=I}L+=k}R.HF(L,O*w); +if(N==24)for(var j=0;j>>1)]|=P<<4-(s&1)*4}}else if(N==1)for(var j=0; +j>>3)]|=P<<7-(s&7)}}L+=O*w+2; +return R.data.slice(0,L).buffer}function F(d){d=new Uint8Array(d);if(n.Le(d,0)==40)return[y(d.buffer,0)]; +var W=0,w=n.Os(d,W,2);W+=2;if(w!="BM"){alert("Unsupported BMP format: "+w);return}var J=n.Le(d,W);W+=4; +W+=4;var A=n.Le(d,W);W+=4;return[y(d.buffer,W,A)]}function y(d,W,w){d=new Uint8Array(d);var J=n.Le(d,W),A=S(d,W+4); +if(A.BQ!=1)alert("unsupported number of color planes: "+A.BQ);if(A.Dy!=0&&A.Dy!=1&&A.Dy!=2&&A.Dy!=3){alert("Unsupported BMP compression: "+A.Dy); +return}W+=J;var T=W,o=d;if(w==null)w=W;if(A.Dy==1||A.Dy==2){var v=Q(d,w,A);A.pT=8;d=v;w=0}var i=4*Math.floor((A.pT*A.cA+31)/32),N=A.cA,b=Math.abs(A.ml),q=new Uint8Array(N*b*4); +q.fill(255);if(A.pT==32)for(var O=0;O>>11)*(255/31); +q[L+1]=(C>>>5&63)*(255/63);q[L+2]=(C&31)*(255/31)}}else if(A.pT==8)for(var O=0;O>1)];t=t>>4-4*(k&1);t=t&15; +q[L]=o[T+4*t+2];q[L+1]=o[T+4*t+1];q[L+2]=o[T+4*t+0]}}else if(A.pT==1)for(var O=0;O>3)];_=_>>7-(k&7);_=_&1;q[L]=o[T+4*_+2];q[L+1]=o[T+4*_+1]; +q[L+2]=o[T+4*_+0]}}else throw"Unknown bit depth "+A.pT;if(A.ml<0){var M=new Uint32Array(q.buffer),I=b>>>1; +for(var O=0;O>>4-((G&1)<<2)&15}function Q(d,W,w){var J=w.cA,A=Math.abs(w.ml),T=new Uint8Array(J*A),o=0,v=0,G=0; +while(v0){if(w.pT==4)for(G=0;G>>1)],G)}q=Math.ceil(N/2)}else{for(G=0; +G127?255:0;if(w==0)W[G]=W[G+1]=W[G+2]=0}Q.push(W.buffer); +S.push(a[d][1])}var J=Math.round(2+254*c[0]/100),A=UPNG.encode.compress(Q,F,y,J,[!0,!1,!1,8,!1]),T=A.plte,o=new Uint8Array(4),v=new Uint32Array(o.buffer); +for(var G=0;G256||y>256){alert("Maximum ICO size is 256x256 px. Will be cropped.",4e3); +var Q=Math.min(F,256),S=Math.min(y,256),h=new cJ(0,0,Q,S),d=D.G(h.L()*4),W=new cJ(0,0,F,y),w=new Uint8Array(a[0][0]); +D.vD(w,W,d,h);a[0][0]=d.buffer;F=Q;y=S}var J=new ie,A=0,T=c&&c[0]==!0;n.OZ(J,A,0);A+=2;n.OZ(J,A,T?2:1); +A+=2;n.OZ(J,A,1);A+=2;var o=new Uint8Array(f$.QS("png").lQ(a,F,y));J.HF(A,16);J.data[A]=F==256?0:F;A++; +J.data[A]=y==256?0:y;A++;A+=2;n.OZ(J,A,T?Math.round(F/2):1);A+=2;n.OZ(J,A,T?Math.round(y/2):32);A+=2; +n.gj(J,A,o.length);A+=4;n.gj(J,A,6+16);A+=4;J.HF(A,o.length);for(var G=0;Go)o=q;v+=q;i++}}T=1/256*65535/(.5*o+.5*(2*v/i))}var O=[]; +for(var G=0;G3){v=n.Ad(y,J);J+=4}W.opacity=Math.round(255*y[J]/100);J++;var i=y[J]; +J++;W.Ig(i!=0);W.X0="norm,lddg,norm,dark,diff,norm,hLit,norm,norm,lite,mul ,over,scrn,fsub".split(",")[y[J]]; +J++;var N=y[J];J++;if(N)W.add.lspf=1<<31;if(c>3){var b=n.hd(y,J);J+=2;if(b!=0){var q=JSON.parse(n.fz(y,J,b)); +J+=b;var O=q.text,R=q.textSettings,k=R.font,L=R.size,C=R.padding,t=parseInt(R.color.slice(1),16);W.add.lnsr="rend"; +W.add.TySh=eA.X9(0,0);W.add.TySh.pA=new cJ(0,0,100,100);var _=W.add.TySh.q=new hg,M=W.rect.t/2,I=W.rect.w/2; +_.translate(-M,-I);_.rotate(-v*Math.PI/180);_.translate(M,I);_.translate(W.rect.x+C,W.rect.y+C);var j=W.add.TySh.KU; +eA.yK(j,1);eA.wM(j,[0,0,W.rect.t-C*2,W.rect.w]);eA.fg(j,0,O);var r=eA.ot(j,0,1);r.kM.FontSize=L;r.kM.FillColor={Type:1,Values:[1,(t>>>16&255)/255,(t>>>8&255)/255,(t>>>0&255)/255]}; +if(R.bold)k+="-Bold";eA.BW(r,k);r.$0.Justification=["left","right","center"].indexOf(R.align);eA.wC(j,0,O.length,r)}}var s=n.s(y,J); +J+=4;if(s!=W.rect.L()*4){for(var G=W.rect.t;G>W.rect.t/2;G--){var e=s/(G*4);if(e==Math.round(e)){W.rect.t=G; +W.rect.w=e;break}}}W.buffer=D.G(W.rect.L()*4);if(c>3){l=0;x=1;E=2;p=3}for(var G=0;G3){S+=w; +continue}var H=y[J];J++;var g=n.hd(y,J);J+=2;if(f!=0){W.N=new Y.Sh;W.N.rect=W.rect.clone();W.N.channel=D.G(W.rect.L()); +for(var G=0;G>>2]=y[J+G+1];J+=f}if(H!=0){var B=JSON.parse(aX.default);W.add.lmfx=B; +for(var G=0;G>>4<<1,C=J+A,t=D.G(L*d*C),j,r,s;dY.NZ(c,Q,O.size,t,0,t.length); +var _=J-2,M=(1<<_)-1,I=Math.round(255/M);for(var w=0;w>>3]>>>7-(l&7)&1;e|=x<>>J,e=e&(1<>>_!=0){var f=e>>>_,H=(e&M)*I;if(f==1)s=H;else if(f==2)j=H;else if(f==3)r=H}else{var H=o+e*3; +j=c[H+0];r=c[H+1];s=c[H+2]}}else{j=e>>>0&255;r=e>>>8&255;s=e>>>16&255}S[p+0]=j;S[p+1]=r;S[p+2]=s;S[p+3]=255}}}return[{vH:new cJ(0,0,h,d),data:S.buffer}]}; +f$.Oe={};f$.Oe.eB=!1;f$.Oe.lQ=function(a,F,y,c){var Q=a[0][4],S=new Uint8Array(a[0][0]),h=2,d=Q?!0:!1,W=d?4:3,w=new Uint8Array(F*y*W); +for(var J=0;J>>4,N=n.Os(F,18,c),b=D.G(A*T*4),y=18+c+(d*W>>>3),q=new Uint8Array(F.buffer,y); +if(S>3){var O=0,R=F,k=new Uint8Array(A*T*o>>>3),L=y,C=0,t=F.length,_=o>>>3;while(C>>3;var I=new Uint8Array(4),j=f$.Oe.a3N; +for(var r=0;r>>3; +if(S==1){var H=0;if(o==8)H=q[f];else throw"e";j(F,18+c+h+(H*W>>>3),W,I);l=I[0];x=I[1];E=I[2];p=I[3]}else if(S==2){j(q,f,o,I); +l=I[0];x=I[1];E=I[2];p=I[3]}else if(S==3){if(o==8)l=x=E=q[f];else throw"e"}var g=P*4;b[g]=l;b[g+1]=x; +b[g+2]=E;b[g+3]=p}var I={vH:new cJ(0,0,A,T),data:b.buffer,eJ:N};if(D.Ku(b)){var B=D.G(A*T);D.ie(b,B,3); +D.Jx(b,4278190080,16777215);I.v6=[B]}return[I]};f$.Oe.a3N=function(a,F,y,c){var Q,S,h,d=255;if(y==24||y==32){h=a[F]; +S=a[F+1];Q=a[F+2];if(y==32)d=a[F+3]}else if(y==16){var W=a[F+1]<<8|a[F+0];Q=W>>>10&31;S=W>>>5&31;h=W>>>0&31; +Q=Math.round(Q*(255/31));S=Math.round(S*(255/31));h=Math.round(h*(255/31))}else throw"e";c[0]=Q;c[1]=S; +c[2]=h;c[3]=d};f$.a2x=function(){var a,F=[],y=!1;function c(h,d,W,w){a=W;F.push(h,w);Q()}function Q(){if(y||F.length==0)return; +y=!0;f$.aij(F.shift(),"image/avif",S)}function S(h){a(null,[h],F.shift());y=!1;Q()}return{eB:!1,gO:!0,YP:c}}(); +f$.anF=function(){var a,F=[],y=!1,c,Q,S,h,d,W;function w(o,v,i,N){a=i;F.push(o,N);J()}function J(){if(y||F.length==0)return; +y=!0;c=document.createElement("canvas");Q=c.getContext("2d");S=document.createElement("video");var o="data:"+"video/mp4"+";base64,"+f$.YD(F.shift()); +S.src=o;S.muted=!0;S.currentTime=0;S.addEventListener("canplay",A,!1);S.addEventListener("timeupdate",T,!1)}function A(o){S.removeEventListener("canplay",A); +h=c.width=S.videoWidth;d=c.height=S.videoHeight;W=[];S.play()}function T(o){var v=10;Q.drawImage(S,0,0); +W.push({eJ:"_a_"+W.length+","+Math.round(1e3/v),vH:new cJ(0,0,h,d),data:Q.getImageData(0,0,h,d).data.buffer}); +var i=S.currentTime+1/v;if(i0)w.push(y+o);y+=o+A}var v=new DOMParser,i=v.parseFromString(W,"image/svg+xml").firstChild.firstChild,N=[]; +f$.HL.Fz(i,F,w,N);return N};f$.HL.Fz=function(a,F,y,c){var Q=a.firstChild.firstChild;if(Q.tagName=="Image"){var S=Q.getElementsByTagName("ImageDescription")[0],h=S.children[0].children,d=S.children[1].children,W=y.shift(),w=[]; +for(var G=0;G3)w[2]*=w.pop(); +var J=h.length,A=w[0],T=w[1],o=w[2],v=parseInt(d[0].getAttribute("BytesInc"));for(var i=0;i>>2);else throw v; +if(b!=3)D.Iy(q,N,b);if(J==1){D.Iy(q,N,1);D.Iy(q,N,2)}W+=A*T*v}c.push({vH:new cJ(0,0,A,T),data:N.buffer})}}else{var R=a.children,k=0; +while(k>>2); +for(var G=0;GA)A=b}var q=D.G(W*4),O=1/A;for(var R=0;R>>7)}else if(C==305){var _=Math.round(Math.sqrt(t)),M=[]; +for(var I=0;I>>3; +aR[X]|=j3>>>16;aR[X+1]|=j3>>>8;aR[X+2]|=j3}var g=o*8/(b*q);if(g==16)for(var G=0;G>>12|(U&4095)<<12; +P[G]=U>>>16&255;P[G+1]=U>>>8&255;P[G+2]=U&255}if(e)P=f$.xb.apT(P,b,q);var Z=e?2:1;b*=Z;N.t256=[b];N.t257=[q]; +N.t258=[l];N.t50719=[R[1],R[0]*Z];N.t50720=[R[3],R[2]*Z];N.width=b;N.height=q;N.data=new Uint8Array(P.buffer); +return[N]};f$.xb.apT=function(a,F,y){a=new Uint16Array(a.buffer);var c=new Uint16Array(F*y*2);for(var Q=0; +Q>>1)+S&1)==0){c[d]=W; +c[d+2*F+1]=a[h+1]}else{c[d]=a[h-1];c[d+2*F+1]=W}}return c};f$.Jd={};f$.Jd.Cl=!0;f$.Jd.lQ=function(a,F,y,c){var Q=new Uint8Array(a[0][0]),S=F*y,h=[1,3,4][c[0]],d=8+8*c[1],W=c[2]; +if(h==1){var w=new Uint8Array(F*y);D.ie(Q,w,0);Q=w}if(h==3){var w=new Uint8Array(F*y*3);for(var G=0; +G>>8;w[G*2+1-W]=o&255}Q=w}return Q.buffer}; +f$.Me={};f$.Me.YP=function(a,F){function y(W){return~~(.5+D.iL(Math.max(0,Math.min(1,W)))*255)}var c=EXRLoader.parse(a),Q=c.width,S=c.height,h=D.G(Q*S*4); +for(var d=0;d>>31==1){b=b&16777215}if(G>>31==1){q=q&268435455;R=Q(h,d,d+q,k,J)}else{var L=F(h,d+q),C=F(h,d+q+4),t=F(h,d+q+8),_=F(h,d+q+12); +if(_!=0)throw"e";if(LJ[0]+J[1])throw"e";var M=J[2]+L-J[0];R=h.slice(M,M+C);var I=f$.vl(R.buffer); +if(I&&["bmp","png","ico"].indexOf(I)!=-1){var j=f$.QS(I);if(!j.eB){var r=null;try{r=j.YP(R.buffer)}catch(aT){}if(r){r[0].eJ=k[1]; +c.push(r[0])}}}else if(I)console.log(I)}N[O]=R;W+=8}return N}function S(h){c=[];var d=new Uint8Array(h),W=0,w=a(d,W); +W+=2;W+=58;var J=F(d,W);W+=4;W=J;var A=y(d,W,4);W+=4;var T=a(d,W);W+=2;var o=a(d,W);W+=2;var v=F(d,W); +W+=4;var i=F(d,W);W+=4;var N=F(d,W);W+=4;var b=a(d,W);W+=2;var q=a(d,W);W+=2;W+=b;var O={};for(var G=0; +G0){if(N["o"+f]!=null)throw"e";N["o"+f]=E}return E}function s(x,N){if(x instanceof Array){for(var G=0; +Gc[G].canvas.width)G++;if(G==c.length){y=c[0];var S=y.canvas;S.width=a;S.height=F}else{y=c[G]; +y.clearRect(0,0,a,F)}return y};D.qZ=function(a,F,y){var c={},Q=0,S=0,h=new Uint32Array(a.buffer),d=h.length,W=Date.now(); +for(var w=1;w>>24<230)S++;if(c[T]==null){c[T]=!0; +Q++}}if(S!=0||Q<20)return!1;return!0};D.Pf=function(a,F,y,c,Q,S){if(Q==null)Q=S=0;c=Math.log(c)/Math.log(2); +c=Math.round(c);for(var G=0;G>>F)+(a>>>F)&1)*51};D.C5=function(a){var F=a.toString(16); +while(F.length<6)F="0"+F;return F};D.PJ=function(a){return parseInt(a,16)};D.b6=function(a){return.3*a.i+.59*a.m+.11*a.d}; +D.pt=function(a){return Math.max(a.i,a.m,a.d)-Math.min(a.i,a.m,a.d)};D.aJ=function(a,F,y){return.3*a+.59*F+.11*y}; +D.aan=function(a,F,y){return Math.max(a,F,y)-Math.min(a,F,y)};D.Rw=function(a,F){var y=F-a,c=Math.abs(y),Q=y-1,S=y+1; +if(Math.abs(Q).5?W/(2-(c+Q)):W/(c+Q);switch(c){case a:S=(F-y)/W+(F1)y-=1;if(y<1/6)return a+(F-a)*6*y;if(y<1/2)return F;if(y<2/3)return a+(F-a)*(2/3-y)*6;return a}; +D.dL=function(a,F,y){var c=Math.max(a,F,y),Q=Math.min(a,F,y),S,h,d=c,W=c-Q;h=c==0?0:W/c;if(c==Q)S=0; +else{switch(c){case a:S=(F-y)/W+(F.008856?Math.pow(y,1/3):(903.3*y+16)*(1/116)}return[a,F]}(); +D.B3=function(a,F,y){var c=D.v8[0],Q=D.v8[1];a=c[~~(a*(1e3/255))];F=c[~~(F*(1e3/255))];y=c[~~(y*(1e3/255))]; +var S=D.Ux.a62,h=S[0]*a+S[1]*F+S[2]*y,d=S[4]*a+S[5]*F+S[6]*y,W=S[8]*a+S[9]*F+S[10]*y;h=h*(100/96.72); +d=d*(100/100);W=W*(100/81.427);return D.nt(h,d,W)};D.nt=function(a,F,y){var c=D.v8[1],Q=c[~~(a*1e3)],S=c[~~(F*1e3)],h=c[~~(y*1e3)]; +return{oP:116*S-16,re:500*(Q-S),d:200*(S-h)}};D.Yt=function(a,F,y){var c=903.3,Q=.008856,S=(a+16)/116,h=S*S*S,d=S-y/200,W=d*d*d,w=F/500+S,J=w*w*w,A=W>Q?W:(116*d-16)/c,T=h>Q?h:(116*S-16)/c,o=J>Q?J:(116*w-16)/c,v=o*96.72,i=T*100,N=A*81.427,b=D.Ux.oO(D.Ux._t,[v/100,i/100,N/100,0]); +for(var G=0;G<4;G++)b[G]=Math.max(0,Math.min(255,D.iL(b[G])*255));return{i:b[0],m:b[1],d:b[2]}};D.GL=function(a,F,y,c,Q){var S=a.oP,h=a.re,d=a.d,W=(S>2]=~~(a[G+0]*Q+a[G+1]*S+a[G+2]*h+.5)};D.oA=function(a,F){var y=F.length; +for(var G=0;G>>2];F[G]=c;F[G+1]=c;F[G+2]=c}};D.Xy=function(a,F){var y=a.re,c=a.i,Q=a.m,S=a.d,h=Math.min(a.re.length,F.buffer.byteLength>>>2),d=4*Math.floor(h/4),W=new Uint32Array(F.buffer),w=new Uint32Array(y.buffer),J=new Uint32Array(c.buffer),A=new Uint32Array(Q.buffer),T=new Uint32Array(S.buffer); +for(var G=0;G>2],v=T[G>>2],i=A[G>>2],N=J[G>>2];W[G]=o<<24|(v&255)<<16|(i&255)<<8|N&255; +W[G+1]=(o&65280)<<16|(v&65280)<<8|i&65280|(N&65280)>>>8;W[G+2]=(o&16711680)<<8|v&16711680|(i&16711680)>>>8|(N&16711680)>>>16; +W[G+3]=o&4278190080|(v&4278190080)>>>8|(i&4278190080)>>>16|(N&4278190080)>>>24}for(var G=d;G>>2),d=4*Math.floor(h/4),W=new Uint32Array(a.buffer),w=new Uint32Array(y.buffer),J=new Uint32Array(c.buffer),A=new Uint32Array(Q.buffer),T=new Uint32Array(S.buffer); +for(var G=0;G>2]=o&255|(v&255)<<8|(i&255)<<16|N<<24; +A[G>>2]=(o&65280)>>8|v&65280|(i&65280)<<8|(N&65280)<<16;T[G>>2]=(o&16711680)>>16|(v&16711680)>>8|i&16711680|(N&16711680)<<8; +w[G>>2]=o>>>24|v>>>24<<8|i>>>24<<16|N&4278190080}for(var G=d;G>0&255;Q[G]=b>>8&255; +S[G]=b>>16&255;y[G]=b>>24&255}};D.ie=function(a,F,y){var c=new Uint8Array(a.buffer),Q=Math.min(c.length/4,F.length); +for(var G=0;G>>2];c[(G<<2)+y]=h&255;c[(G<<2)+y+4]=h>>>8&255;c[(G<<2)+y+8]=h>>>16&255;c[(G<<2)+y+12]=h>>>24; +G+=4}while(G>>2,a=new Uint32Array(a.buffer,0,c),F=new Uint32Array(F.buffer,0,c); +F.set(a)};D.pI=function(a,F){var y=a.buffer.byteLength,c=F.buffer.byteLength,Q=new Uint32Array(a.buffer,0,y>>2),S=new Uint32Array(F.buffer,0,c>>2); +if(y!=c)return!1;var h=Q.length;for(var G=0;G=2&&c.w>=2){var Q=D.e4(y,c); +a.push(Q.BN,Q.rect);y=Q.BN;c=Q.rect}};D.R9=function(a){var F=a.length,y=a[F-2],c=a[F-1];while(c.t>=2&&c.w>=2){var Q=D.Gg(y,c); +a.push(Q.BN,Q.rect);y=Q.BN;c=Q.rect}};D.e4=function(a,F,y){var c=F.t,Q=F.w,S=c>>1,h=Q>>1,d=new cJ(F.x,F.y,S,h),W=y&&y.length==S*h*4?y:D.G(S*h*4),w=new Uint32Array(a.buffer),J=new Uint32Array(W.buffer); +for(var A=0;A>>24,R=N>>>24,k=b>>>24,L=q>>>24,C=O+R+k+L; +if(C==1020){var t=(i>>>0&255)+(N>>>0&255)+(b>>>0&255)+(q>>>0&255)+2>>>2,_=(i>>>8&255)+(N>>>8&255)+(b>>>8&255)+(q>>>8&255)+2>>>2,M=(i>>>16&255)+(N>>>16&255)+(b>>>16&255)+(q>>>16&255)+2>>>2; +J[o]=255<<24|M<<16|_<<8|t}else if(C==0)J[o]=0;else{var t=(i>>>0&255)*O+(N>>>0&255)*R+(b>>>0&255)*k+(q>>>0&255)*L,_=(i>>>8&255)*O+(N>>>8&255)*R+(b>>>8&255)*k+(q>>>8&255)*L,M=(i>>>16&255)*O+(N>>>16&255)*R+(b>>>16&255)*k+(q>>>16&255)*L,I=1/C; +t=~~(t*I+.5);_=~~(_*I+.5);M=~~(M*I+.5);J[o]=C+2>>>2<<24|M<<16|_<<8|t}}return{rect:d,BN:W}};D._3=function(a,F,y){var c=F.t,Q=F.w,S=c>>1,h=Q>>1,d=new cJ(F.x,F.y,S,h),W=y&&y.length==S*h*4?y:D.G(S*h*4),w=new Uint32Array(a.buffer),J=new Uint32Array(W.buffer); +for(var A=0;A>>0&255)+(N>>>0&255)+(b>>>0&255)+(q>>>0&255)>>>2,R=2+(i>>>8&255)+(N>>>8&255)+(b>>>8&255)+(q>>>8&255)>>>2,k=2+(i>>>16&255)+(N>>>16&255)+(b>>>16&255)+(q>>>16&255)>>>2,L=2+(i>>>24&255)+(N>>>24&255)+(b>>>24&255)+(q>>>24&255)>>>2; +J[o]=L<<24|k<<16|R<<8|O}return{rect:d,BN:W}};D.a2k=function(a,F,y){var c=F.t,Q=F.w,S=2*Math.floor(c/3),h=2*Math.floor(Q/3),d=new cJ(F.x,F.y,S,h),W=y&&y.length==S*h*4?y:D.G(S*h*4),w=new Uint32Array(a.buffer),J=new Uint32Array(W.buffer); +for(var A=0;A>>1)*c+(T*3>>>1),i=w[v],N=w[v+1],b=w[v+2],q=w[v+c],O=w[v+1+c],R=w[v+2+c],k=w[v+c+c],L=w[v+1+c+c],C=w[v+2+c+c],t=i>>>24<<2,_=(i>>>16&255)*t,M=(i>>>8&255)*t,I=(i&255)*t,j=N>>>24<<1,r=(N>>>16&255)*j,s=(N>>>8&255)*j,e=(N&255)*j,P=b>>>24<<2,l=(b>>>16&255)*P,x=(b>>>8&255)*P,E=(b&255)*P,p=q>>>24<<1,f=(q>>>16&255)*p,H=(q>>>8&255)*p,g=(q&255)*p,B=O>>>24,U=(O>>>16&255)*B,Z=(O>>>8&255)*B,aR=(O&255)*B,hY=R>>>24<<1,j3=(R>>>16&255)*hY,X=(R>>>8&255)*hY,c9=(R&255)*hY,hW=k>>>24<<2,cY=(k>>>16&255)*hW,ho=(k>>>8&255)*hW,e7=(k&255)*hW,b2=L>>>24<<1,aB=(L>>>16&255)*b2,eB=(L>>>8&255)*b2,et=(L&255)*b2,ao=C>>>24<<2,eM=(C>>>16&255)*ao,eT=(C>>>8&255)*ao,cQ=(C&255)*ao,a2=t+j+p+B,hA=P+j+hY+B,gH=hW+b2+p+B,be=ao+b2+hY+B,e5=a2==0?0:1/a2,i5=hA==0?0:1/hA,iz=gH==0?0:1/gH,aL=be==0?0:1/be,az=0,hu=0,aV=0,bQ=0; +az=~~(.5+(I+e+g+aR)*e5);hu=~~(.5+(M+s+H+Z)*e5);aV=~~(.5+(_+r+f+U)*e5);bQ=~~(.5+a2*(1/9));J[o]=bQ<<24|aV<<16|hu<<8|az; +az=~~(.5+(E+e+c9+aR)*i5);hu=~~(.5+(x+s+X+Z)*i5);aV=~~(.5+(l+r+j3+U)*i5);bQ=~~(.5+hA*(1/9));J[o+1]=bQ<<24|aV<<16|hu<<8|az; +az=~~(.5+(e7+et+g+aR)*iz);hu=~~(.5+(ho+eB+H+Z)*iz);aV=~~(.5+(cY+aB+f+U)*iz);bQ=~~(.5+gH*(1/9));J[o+S]=bQ<<24|aV<<16|hu<<8|az; +az=~~(.5+(cQ+et+c9+aR)*aL);hu=~~(.5+(eT+eB+X+Z)*aL);aV=~~(.5+(eM+aB+j3+U)*aL);bQ=~~(.5+be*(1/9));J[o+S+1]=bQ<<24|aV<<16|hu<<8|az}return{rect:d,BN:W}}; +D.a9m=function(a,F,y){var c=F.t,Q=F.w,S=2*Math.floor(c/3),h=2*Math.floor(Q/3),d=new cJ(F.x,F.y,S,h),W=y&&y.length==S*h*4?y:D.G(S*h*4),w=new Uint32Array(a.buffer),J=new Uint32Array(W.buffer); +for(var A=0;A>>1)*c+(T*3>>>1),i=w[v],N=w[v+1],b=w[v+2],q=w[v+c],O=w[v+1+c],R=w[v+2+c],k=w[v+c+c],L=w[v+1+c+c],C=w[v+2+c+c],t=(i>>>16&255)<<2,_=(i>>>8&255)<<2,M=(i&255)<<2,I=(N>>>16&255)<<1,j=(N>>>8&255)<<1,r=(N&255)<<1,s=(b>>>16&255)<<2,e=(b>>>8&255)<<2,P=(b&255)<<2,l=(q>>>16&255)<<1,x=(q>>>8&255)<<1,E=(q&255)<<1,p=O>>>16&255,f=O>>>8&255,H=O&255,g=(R>>>16&255)<<1,B=(R>>>8&255)<<1,U=(R&255)<<1,Z=(k>>>16&255)<<2,aR=(k>>>8&255)<<2,hY=(k&255)<<2,j3=(L>>>16&255)<<1,X=(L>>>8&255)<<1,c9=(L&255)<<1,hW=(C>>>16&255)<<2,cY=(C>>>8&255)<<2,ho=(C&255)<<2,e7=0,b2=0,aB=0; +e7=~~(.5+(M+r+E+H)*(1/9));b2=~~(.5+(_+j+x+f)*(1/9));aB=~~(.5+(t+I+l+p)*(1/9));J[o]=255<<24|aB<<16|b2<<8|e7; +e7=~~(.5+(P+r+U+H)*(1/9));b2=~~(.5+(e+j+B+f)*(1/9));aB=~~(.5+(s+I+g+p)*(1/9));J[o+1]=255<<24|aB<<16|b2<<8|e7; +e7=~~(.5+(hY+c9+E+H)*(1/9));b2=~~(.5+(aR+X+x+f)*(1/9));aB=~~(.5+(Z+j3+l+p)*(1/9));J[o+S]=255<<24|aB<<16|b2<<8|e7; +e7=~~(.5+(ho+c9+U+H)*(1/9));b2=~~(.5+(cY+X+B+f)*(1/9));aB=~~(.5+(hW+j3+g+p)*(1/9));J[o+S+1]=255<<24|aB<<16|b2<<8|e7}return{rect:d,BN:W}}; +D.Ku=function(a){var F=255,y=a.length;y-=y&31;for(var G=3;G>1,h=Q>>1,d=new cJ(F.x,F.y,S,h); +if(a==null)return{rect:d};var W=y&&y.length>=S*h?y:D.G(S*h);for(var w=0;w>>2}}return{rect:d,BN:W}};D.YI=function(a,F,y){var c=F.t,Q=F.w,S=2*Math.floor(c/3),h=2*Math.floor(Q/3),d=new cJ(F.x,F.y,S,h); +if(a==null)return{rect:d};var W=y&&y.length>=S*h?y:D.G(S*h);for(var w=0;w>>1)*c+(J*3>>>1),o=a[T]<<2,v=a[T+1]<<1,i=a[T+2]<<2,N=a[T+c]<<1,b=a[T+1+c],q=a[T+2+c]<<1,O=a[T+c+c]<<2,R=a[T+1+c+c]<<1,k=a[T+2+c+c]<<2; +W[A]=~~(.5+(o+v+N+b)*(1/9));W[A+1]=~~(.5+(i+v+q+b)*(1/9));W[A+S]=~~(.5+(O+R+N+b)*(1/9));W[A+S+1]=~~(.5+(k+R+q+b)*(1/9))}return{rect:d,BN:W}}; +D.oR=function(a,F,y,c,Q){var S=F.Df(c);if(Q)S=S.Df(Q);var h=Math.max(0,S.x-F.x),d=Math.max(0,S.x-c.x),W=Math.max(0,S.y-F.y),w=Math.max(0,S.y-c.y),J=S.t,A=S.w; +for(var G=0;G>>8)>>>8};D.round=function(a,F){if(F==null)F=128;var y=a.length;for(var G=0; +G>>24)*(h>>>24))<<24|D.IB((S>>>16&255)*(h>>>16&255))<<16|D.IB((S>>>8&255)*(h>>>8&255))<<8|D.IB((S&255)*(h&255))}}; +D.wv=function(a,F){var y=a.length;for(var G=0;G>>2,h/255]};D.nd=function(a,F){var y=new Uint32Array(a.buffer),c=y.length; +for(var G=0;G>8&255,d=Q>>16&255,W=Q>>24&255;y[G]=F[S]|F[h]<<8|F[d]<<16|F[W]<<24}}; +D.a89=function(a,F,y,c,Q,S,h){var d=new Uint32Array(a.buffer),W=new Uint32Array(F.buffer),w=d.length,J=0; +while(256<>>8&255)<>>16&255)<>>8&255)<>>16&255)<O){var R=(q-O)/(255-O);i+=R*(255-i);N+=R*(255-N);b+=R*(255-b)}else if(O==0)i=N=b=0;else{var R=q/O; +i=R*i;N=R*N;b=R*b}}W[G]=i|N<<8|b<<16|A&4278190080}};D.As=function(a,F){var y=F.t,c=F.w,top=0,Q=0,S=0,h=0,d=0; +d=0;for(var W=0;W=0;W--){var w=W*y;for(var G=0;G=0;G--){for(var W=top; +W=0;T--){var o=T*S;for(var G=0;G=0;G--){for(var T=0;T>2); +D.ie(a.buffer,F,3);var y=D.As(F,a.rect);if(y.pI(a.rect))return;var c=new D.G(y.L()*4);D.vD(a.buffer,a.rect,c,y); +a.buffer=c;a.rect=y};D.extend=function(a,F,y){if(a.rect.pE(F))return;var c=a.rect.jD(F),Q=D.G(c.L()); +if(y!=null)Q.fill(y);D.oR(a.channel,a.rect,Q,c);a.rect=c;a.channel=Q};D.amF=function(a,F){if(F.ur()||a.rect.pE(F))return; +var y=a.rect.jD(F),c=D.G(y.L()*4);D.vD(a.buffer,a.rect,c,y);a.rect=y;a.buffer=c};D.ZG=function(a,F,y){if(!y.t$(a))return!1; +var c=Math.floor(a.x)-y.x,Q=Math.floor(a.y)-y.y,G=Q*y.t+c;return F[G]>128};D.an0=function(a,F,y){if(!y.t$(a))return!1; +var c=Math.floor(a.x)-y.x,Q=Math.floor(a.y)-y.y,G=Q*y.t+c;return F[4*G+3]>128};D.xF=function(a){if(D.pb.length>1,J=D.j.P; +J.d3(F,y);var A=J.S(1),T=J.S(1),o=J.S(1);J.h1(a,c,W,W,w);J.cV(c);J.cK(c,A);J.Yb(A,T,S,S,1);J.Yb(A,o,S,S,S*S); +J.sub(o,T);J.L9(T,d);(h<25?J.sub:J.add)(A,T);J.wU(T,c);J.Bd(c)};D.j.a46=function(a,F,y,c,Q){var S=D.j.P; +S.d3(F,y);var h=Q[0]*2.55,d=Q[1],W=d>>1,w=Q[2]*.25,J=S.S(4),A=S.S(1),T=S.S(1);S.cX(a,J,d,1,!0,W);S.cX(a,c,d,1,!1,W); +S.sC(a,A);S.Q8(A,h);S.bH(A,T,3);S.Oh(c,T,J);S.zS(J,c,w)};D.j.acU=function(a,F,y,c,Q){var S=D.j.P;S.d3(F,y); +S.nU(Q[3]);var h=Q[0]*-3+80,d=Q[1]*-3+80,W=Q[2]/2+.5,w=Q[4],J=Q[5],A=S.S(1),T=S.S(1),o=S.S(1),v=S.S(1),i=S.S(4),N=S.S(4); +S.sC(a,A);S.YR(A,T);S.Fs(A,d,5);S.P_(A,.4,0);S.bH(A,o,3);S.UG(o,A,9,3,!0,27);S.YR(T,o);S.kW(o);var b=S.Z8(h,5,o); +for(var G=0;G3?(Q[1]-3)*10:0;var W=~~(Q[2]*.73)+50,w=Math.min(W+d,128),J=w-W,A=-255*W; +for(var G=0;G<256;G++){var T=G*65;h[G]=S.UN(A/J);A+=255}var o=S.S(1),v=S.S(1),i=S.S(1);S.sC(a,o);S.YR(o,i); +S.bH(o,v,2*Q[0]+1);S.sub(v,o);S.L9(o,65);S.UG(o,v,9,3,!0,20);for(var G=0;G0?~~((b*N+(255-b)*128)/255):128}S.bH(o,v,3);S.UG(v,o,15,2,!0,16);S.UG(v,i,15,2,!1,15);S.ZW(o,i); +S.mc(i,v,2);S.kP(v,h);S.bH(v,o,2);S.KC(o,c)};D.j.a0S=function(a,F,y,c,Q){var S=D.j.P;S.d3(F,y);var h=2*Q[0]+1,d=S.iz[Q[1]],W=Q[2]*5.1,w=Q[3],J=S.S(1),A=S.S(1),T=S.S(4),o=S.S(4); +S.hu(T,w);S.cV(T,c);S.qP(J,W);S.wU(J,c);S.Bd(c,T);S.sC(a,A);S.bH(A,J,h);S.sub(J,A);S.L9(A,d);S.UG(A,J,9,3,!0,20); +S.Oh(a,J,T);S.pH(T,c,3);S.cX(c,T,15,2,!0,16);S.cX(c,o,15,2,!1,16);S.ZW(T,o);S.zS(o,c,2)};D.j.aou=function(a,F,y,c,Q){var S=D.j.P; +S.d3(F,y);var h=(15-Q[0])/4+1,d=(15-Q[1])/4+1,W=Q[2],w=Q[3],J=S.FJ(Q[4]),A=Q[5]+1,T=Q[6],o=Q[7],v=Q[8],i=S.S(1),N=S.S(1),b=S.S(1),q=S.S(1),O=S.S(4),R=S.S(4); +S.Bz(b,W,w,T);S.sC(a,N);S.bH(N,i,5);S.X4(b,i,q,A,J);S.L9(q,h);S.bD(q,2);S.kW(i);S.X4(b,i,N,A,J);S.L9(N,d); +S.bD(N,2);S.hu(O,2155905279);S.hu(R,o);S.hu(c,v);S.Oh(O,N,R);S.Oh(R,q,c)};D.j.ahL=function(a,F,y,c,Q){var S=D.j.P; +S.d3(F,y);S.nU(Q[3]);var h=Q[0],d=Q[1]/10,W=Q[2]/10,w=S.S(1),J=S.S(1),A=S.S(1),T=S.Lp(),o=S.Lp(),v=S.Lp(); +S.a8(w);S.bH(w,J,11);S.bH(J,w,11);S.bg(w,T);S.IF(a,w);S.YR(w,A);S.bH(w,J,9);S.bH(J,w,9);S.bg(w,o);S.fX(o,v,5); +S.fX(v,o,5);S.uh(T,.8);S.abd(T,o,.8,.9);S.cy(o,w,h);S.Yb(w,J,2,2,1);S.Yb(J,w,2,2,3);S.Yb(w,J,2,2,3); +S.Yb(A,w,5,5,13);S.TL(J,w,J,d);S.$c(w,J,J,W);S.X4(J,J,w,5,1);S.cV(a,c);S.wU(w,c);S.Bd(c)};D.j.acZ=function(a,F,y,c,Q){var S=D.j.P; +S.d3(F,y);var h=Q[0],d=Q[1]/2,W=Q[2],w=h/2,J=S.S(4),A=S.S(4);S.YR(a,c);for(var T=0;T>1,N=2*W-100,b=+(w==9),q=+(w==7),O=[4,1][b],R=[3,2][b],k=[1,2][q],L=[2,1][q],C=[50,75][b],t=w<4?J:(J>>1)+50,_=S.V1(C,t),M=S.bv(A),I=S.bv(T),j=S.S(4),r=S.S(4),s=S.S(1),e=S.S(1); +function P(c,_){if(t!=50){S._e(c,_)}}function l(a,j3){for(var G=0;G=y||r>=F){return}var L=v[s],e=A-L,P=h.random(),l=P/b+q; +if(i==0||Math.abs(C-L)>O){N=l<=e?t:M;i=~~(h.random()*w)}else if(.1=F)break;I(k,R-L)}i=0}for(G=1;G=y||k>=F)break; +I(L,R-k)}i=0}}else if(T==1){for(G=0;G=F)break;I(k,L)}i=0}for(G=1;G=y||k>=F)break; +I(L,k)}i=0}}else{for(G=0;G=0){S.kW(A)}S.YR(A,o);S.bH(A,v,d);S.bH(v,A,d);S.L9(A,w);S.YR(A,T);S.bH(A,v,W);S.bH(v,A,W); +S.L9(A,J);S.hu(b,Q[2]);S.hu(q,Q[3]);S.hu(O,Q[4]);S.Oh(b,A,q,i);S.Oh(O,T,i,N);S.Oh(q,o,N,c);S.cK(a,o,3); +S.wU(o,c,3)};D.j.aqX=function(a,F,y,c,Q){var S=D.j.P;S.d3(F,y);S.nU(Q[5]);var h=Q[0]*5.1,d=Q[1]/100,W=S.h7[Q[2]],w=S.S(1),J=S.S(1),A=S.S(1); +S.sC(a,w);S.qP(J,255);S.a8(A);S.Q8(w,h);S.av(J,w,.7);S.av(A,w,d);S.X4(w,w,J,5,W);S.YR(a,c);S.a4P(c,h,Q[4],Q[3]); +S.cV(c);S.wU(J,c);S.Bd(c)};D.j.abT=function(a,F,y,c,Q){var S=D.j.P;S.d3(F,y);var h=Q[0],d=4-Q[1],W=11-Q[2],w=S.S(1),J=S.S(1),A=S.S(4); +S.IF(a,J);for(var G=0;G>1)+h%2,W=Q[1]/10,w=Q[2],J=(w*w>>1)+w%2,A=S.S(1),T=S.S(1),o=S.S(1),v=S.S(4),i=S.S(4),N=S.S(4); +S.a8(o);S.cV(a,N);S.cK(N,A);S.av(A,o,.8);S.bH(o,A,3);S.mc(A,o,W);S.wU(o,N);S.Bd(N,N);S.sC(N,o);S.Yb(o,A,h,h,d); +S.bH(o,T,h);S.sub(A,T);S.Q8(T,1);S.h1(N,v,7,7,40);S.h1(N,i,7,7,10);S.Oh(v,T,i);S.h1(i,c,w,w,J)};D.j.ama=function(a,F,y,c,Q){var S=D.j.P,d=255,G,w; +S.d3(F,y);var h=Q[0];if(h<2)d=h;else if(h<12)d=5*h-5;else if(h<47)d=2*h+28;else if(h<50){G=h-47;d=125+12.5*G+12.5*G*G}var W=new Uint8Array(256); +for(G=75,w=15;G<256;G++,w+=24)W[G]=Math.min(255,w);var J=S.S(1),A=S.S(1),T=S.S(1);S.sC(a,J);S.bH(J,A,11); +S.bH(A,T,11);S.sub(T,J);S.L9(J,8);S.sub(T,J);S.Q8(J,d);S.kW(J);S.bH(J,A,5);S.Q8(A,51);S.bH(A,J,Q[1]); +S.bH(J,A,Q[1]);S.kW(A);S.kP(A,W);S.KC(A,c)};D.j.aeF=function(a,F,y,c,Q){var S=D.j.P;S.d3(F,y);var h=S.iz[Q[1]],d=Q[2],W=d*1.5,w=S.S(1),J=S.S(1),A=S.S(1); +S.IF(a,w);S.UG(w,J,15,2,!0,15);S.YR(J,A);S.Fs(A,d,W);S.bH(A,w,3);S.bH(J,A,Q[0]);S.sub(A,J);S.L9(J,h); +S.sub(w,J);S.bH(J,w,3);S.UG(w,J,3,1,!1,1);S.pH(a,c,15);S.cV(c);S.wU(J,c);S.Bd(c)};D.j.a15=function(a,F,y,c,Q){var S=D.j.P; +S.d3(F,y);S.nU(Q[3]);var h=Q[0]*5.1,d=16-Q[1],W=[1,1,1.05,1.1,1.15,1.2,1.25,1.3,1.35,1.4,1.45,1.5,1.6,1.7,1.8,2,2.25,2.5,2.75,3,3.5,4,5,6,8,10][Q[2]],w=S.S(1),J=S.S(1),A=S.S(1); +S.sC(a,w);S.Q8(w,h);S.bH(w,J,d);S.bH(J,w,d);S.a8(A);S.$c(w,A,A,1);S.TL(w,A,w,.75);S.L9(w,W);S.bD(w,W); +S.Yb(w,J,2,2,2);S.KC(J,c)};D.j.a99=function(a,F,y,c,Q){var S=D.j.P;S.d3(F,y);var h=Q[0]+9,d=Q[1]+9,W=Q[2],w=Q[3],J=S.FJ(Q[4]),A=Q[5]+1,T=Q[6],o=S.S(1),v=S.S(1),i=S.S(1),N=S.S(1),b=S.S(1),q=S.S(4); +S.IF(a,o);S.ax(o,i,h,h);S.bH(i,o,d);S.YR(i,b);S.YR(o,N);S.sub(b,N);S.sub(o,b);S.add(b,N);S.L9(N,10); +S.Bz(v,W,w,T);S.X4(v,o,b,A,J);S.Wz(b,N,i,.8);S.pH(a,q,9);S.pH(q,c,9);S.cV(c);S.wU(i,c);S.Bd(c)};D.j.acb=function(a,F,y,c,Q){var S=D.j.P; +S.d3(F,y);var h=16-Q[0],d=Q[1]*8,W=1-(3-Q[2])/10,w=~~(h*h*W-1),J=~~(h*h*(1-W));if(J==0)J=1;var A=S.S(1),T=S.S(1),o=S.S(1),v=S.S(4); +S.sC(a,o);S.Yb(o,A,7,7,25);S.bH(o,T,7);S.sub(A,T);S.Q8(T,1);S.h1(a,v,h,h,w);S.h1(a,c,h,h,J);S.Oh(v,T,c); +S.cV(c);S.cK(c,A);S.Yb(A,o,3,3,1);S.Yb(A,T,3,3,9);S.sub(T,o);S.YR(o,T);S.sub(A,o);S.sub(o,T);S.Yb(T,A,3,3,8); +S.Fs(A,d,1);S.wU(A,c);S.Bd(c)};D.j.a2r=function(a,F,y,c,Q){var S=D.j.P;S.d3(F,y);S.nU(Q[3]);var h=Q[0],d=Q[1],W=Q[2],w=h>>1,J=Math.max(~~(h/5),1),A=Math.max(~~(h*2/3),1),T=S.V1(d,W),o=S.S(1),v=S.S(1),i=S.S(1),N=S.S(1),b=S.S(4); +S.IF(a,o);S.E2(2147483647,4,2,2,0,255,v);S.E2(4,2147483647,2,2,0,255,N);S.a8(i);S.$c(v,i,v,1);S.$c(N,i,N,1); +S.$c(v,o,v,1);S.$c(N,o,N,1);S.pH(a,b,w);S.pH(b,c,w);S.Yb(v,o,1,h,J);S.Yb(o,v,3,h,A);S.Yb(N,o,h,1,J); +S.Yb(o,N,h,3,A);S.ZW(v,N);S.cV(c);S.wU(N,c);S.Bd(c);S._e(c,T)};D.j.P={};D.j.P.cA=0;D.j.P.ml=0;D.j.P.xW=0; +D.j.P.xJ=0;D.j.P.Bv=0;D.j.P.d3=function(a,F){var y=a*F,self=D.j.P;self.cA=a;self.ml=F;self.xW=y;self.xJ=y<<1; +self.Bv=y<<2};D.j.P.nU=function(a){D.j.P.random=function(){var F=a+=1831565813;F=Math.imul(F^F>>>15,F|1); +F^=F+Math.imul(F^F>>>7,F|61);return((F^F>>>14)>>>0)/4294967296}};D.j.P.S=function(a){var F=D.j.P;return new Uint8Array([-1,F.xW,F.xJ,-1,F.Bv][a])}; +D.j.P.Lp=function(){return new Int32Array(D.j.P.xJ)};D.j.P.bH=function(a,F,y,c){if(c==null)c=y;var self=D.j.P,Q=self.cA,S=self.ml; +D.AX.Fl(a,F,new cJ(0,0,Q,S),y>>>1);return};D.j.P.fX=function(a,F,y,c){var self=D.j.P,Q=new Int32Array(self.xW),S=new Int32Array(self.xW); +for(var G=0;G<2;G++){self.cK(a,Q,G,2);self.bH(Q,S,y,c);self.wU(S,F,G,2)}};D.j.P.pH=function(a,F,y,c){var self=D.j.P,Q=self.S(1),S=self.S(1); +for(var G=0;G<4;G++){self.cK(a,Q,G);if(G<3)self.bH(Q,S,y,c);else S=Q;self.wU(S,F,G)}};D.j.P.FL=function(a,F,y,c,Q){var self=D.j.P,S=self.cA,h=self.ml,d=y+c-1,W=y>>1,w=d>>1,J=0,A=y*c,T=new Int32Array(y); +for(var G=0;G=S)R=S-1;if(k<0)k=0;else if(k>=h)k=h-1;var L=S*k+R<<2;o+=a[L];v+=a[L+1]; +i+=a[L+2]}}F[J++]=~~(o/A);F[J++]=~~(v/A);F[J++]=~~(i/A);F[J]=a[J];J++;for(var C=1;C=h)k=h-1;if(t<0)t=0;else if(t>=S)t=S-1; +if(_<0)_=0;else if(_>=S)_=S-1;var M=k*S+t<<2,I=k*S+_<<2;o=o+a[I]-a[M];v=v+a[I+1]-a[M+1];i=i+a[I+2]-a[M+2]}F[J++]=~~(o/A); +F[J++]=~~(v/A);F[J++]=~~(i/A);F[J]=a[J];J++}}};D.j.P.UG=function(a,F,y,c,Q,S){var self=D.j.P,h=self.cA,d=self.ml,W=y+c-1,w=y>>1,J=W>>1,A=0,T=new Int32Array(y),o=new Int32Array(256),v=new Int32Array(16); +for(var G=0;G=h)O=h-1;if(R<0)R=0;else if(R>=d)R=d-1; +o[a[R*h+O]]++;v[a[R*h+O]>>>4]++}}F[A++]=D.j.P.K_(v,o,S);for(var k=1;k=d)R=d-1;if(L<0)L=0;else if(L>=h)L=h-1;if(C<0)C=0;else if(C>=h)C=h-1; +var t=a[R*h+L],_=a[R*h+C];o[t]--;o[_]++;v[t>>>4]--;v[_>>>4]++}F[A++]=D.j.P.K_(v,o,S)}}};D.j.P.cX=function(a,F,y,c,Q,S){var self=D.j.P,h=self.S(1),d=self.S(1); +for(var G=0;G<4;G++){self.cK(a,h,G);if(G<3)self.UG(h,d,y,c,Q,S);else d=h;self.wU(d,F,G)}};D.j.P.Yb=function(a,F,y,c,Q){Q=Math.min(c*y,Q); +var self=D.j.P,S=self.cA,h=self.ml,d=c>>1,W=y>>1,w=0,J=new Int32Array(c),A=new Int32Array(256),T=new Int32Array(16); +for(var G=0;G=S)N=S-1;if(b<0)b=0;else if(b>=h)b=h-1;A[a[b*S+N]]++;T[a[b*S+N]>>>4]++}}F[w++]=D.j.P.K_(T,A,Q); +for(var q=1;q=h)b=h-1; +if(R<0)R=0;else if(R>=S)R=S-1;if(k<0)k=0;else if(k>=S)k=S-1;var L=a[b*S+R],C=a[b*S+k];A[L]--;A[C]++; +T[L>>>4]--;T[C>>>4]++}F[w++]=D.j.P.K_(T,A,Q)}}};D.j.P.K_=function(a,F,y){var c=0,Q=0;while(c+a[Q>>>4]>>4]; +Q+=16}for(;Q<256;Q++){c+=F[Q];if(c>=y)break}return Q};D.j.P.h1=function(a,F,y,c,Q){var self=D.j.P,S=self.S(1),h=self.S(1); +for(var G=0;G<4;G++){self.cK(a,S,G);if(G<3)self.Yb(S,h,y,c,Q);else h=S;self.wU(h,F,G)}};D.j.P.mc=function(a,F,y){var self=D.j.P,c=self.cA,Q=self.ml,S=0; +for(var G=0;G=Q)W=h;for(var w=0;w=c)A=w;var T=h+J,o=h+A,v=d+w,i=W+w,N=h+w,b=a[T],q=a[o],O=a[v],R=a[i],k=a[N],L=k+(k*4*y+.5); +L=L-((b+q+R+O)*y+.5);F[S++]=self.UN(L)}}};D.j.P.zS=function(a,F,y){var self=D.j.P,c=self.S(1),Q=self.S(1); +for(var G=0;G<4;G++){self.cK(a,c,G);if(G<3)self.mc(c,Q,y);else Q=c;self.wU(Q,F,G)}};D.j.P.a97=function(a,F,y){var self=D.j.P,c=self.cA,Q=self.ml,S=0,h=y+4; +for(var G=0;G=Q)w=d;for(var J=0;J=c)T=J;var o=d+A<<2,v=d+T<<2,i=W+J<<2,N=w+J<<2,b=d+J<<2;for(var q=0;q<3;q++){var O=a[o+q],R=a[v+q],k=a[i+q],L=a[N+q],C=a[b+q]; +F[S++]=(C*y+O+R+L+k)/h}F[S]=a[S];S++}}};D.j.P.ax=function(a,F,y,c){var self=D.j.P,Q=self.cA,S=self.ml,h=y>>1,d=c>>1,W=0,w=new Int32Array(y),J=new Int32Array(256); +for(var G=0;G=Q)v=Q-1;if(i<0)i=0;else if(i>=S)i=S-1;J[a[i*Q+v]]++}}var N=0,b=0;for(var q=0;q<256;q++){if(N=S)i=S-1;if(k<0)k=0;else if(k>=Q)k=Q-1;if(L<0)L=0;else if(L>=Q)L=Q-1;J[a[i*Q+k]]--; +J[a[i*Q+L]]++}N=0;b=0;for(var q=0;q<256;q++){if(N0?G-1:0)*d,J=G*d,A=(G0?T-1:0,v=TQ)Q=S;if(h>Q)Q=h;F[G]=Q}};D.j.P.cV=function(a,F){if(F==null)F=a; +var y=a.length;for(var c=0;ch){Q=h}}else{W=2;w=h}var J=w-Q;if(J!=0){if(W==0){A=~~(43*(S-h)/J)}else if(W==1){A=~~(43*(h+2*J-d)/J)}else{A=43*(d+4*J-S)/J}if(A<0){A=255&A-1}F[c]=A; +F[c+1]=~~(255*J/w)}else{F[c]=J;F[c+1]=J}F[c+2]=w;F[c+3]=a[c+3]}};D.j.P.Bd=function(a,F){if(F==null)F=a; +var y=a.length;for(var c=0;c>1}}; +D.j.P.YR=function(a,F){var y=a.length;for(var G=0;Gc)h=Q;if(S>c)h=S;var d=F[h];if(d){a[G]=~~(d*c/h);a[G+1]=~~(d*Q/h);a[G+2]=~~(d*S/h)}else{a[G]=d; +a[G+1]=d;a[G+2]=d}}};D.j.P.L9=function(a,F){for(var G=0,y=a.length;G=F?c:y}};D.j.P.bv=function(a){return[a>>24&255,a>>16&255,a>>8&255,a&255]}; +D.j.P.a4P=function(a,F,y,c){if(y==null)y=255;if(c==null)c=4278190335;var Q=D.j.P,S=Q.Bv,h=Q.bv(y),d=Q.bv(c); +for(var G=0;G=F){a[G]=h[0];a[G+1]=h[1];a[G+2]=h[2]}else{a[G]=d[0]; +a[G+1]=d[1];a[G+2]=d[2]}}};D.j.P.hu=function(a,F){var y=D.j.P,c=y.Bv,Q=y.bv(F);for(var G=0;G5?(100-Math.max(4,a))/100:.95;F=F!=100?Math.max(4,F)/100:.9995;var y=new Uint8Array(256),c=F>.5?.5/(1-F):F*2,Q=~~(c*256),S=~~((.5-a*c)*256)<<8; +for(var G=0;G<256;G++){y[G]=D.j.P.UN(S>>8);S+=Q}return y};D.j.P.a8=function(a){for(var G=0,F=D.j.P,y=a.length; +G255){J=255;w=254}var A=255/(J-w),T=-w; +for(var G=0;G<256;G++){S[G]=self.UN(A*T+.5);T++}return S};D.j.P.Fs=function(a,F,y){var c=D.j.P;c.kP(a,c.Z8(F,y,a))}; +D.j.P.aiY=function(a,F){var self=D.j.P,y=self.iW(a),c=self.xW*F/100,Q=0,S=-1;do{Q+=y[++S]}while(Q<=c); +return S};D.j.P.bg=function(a,F){var y=0,self=D.j.P,c=self.cA,Q=self.ml,S=1/Math.PI,h=S*255;for(var G=0; +G=2&&W%y>=2?255:0}}};D.j.P.E2=function(a,F,y,c,Q,S,h){var self=D.j.P,d=self.cA,W=self.ml,w=0,J=0,A=0; +for(var G=0;G40?[1.25,1.5,1.75,2,2.5,3,4,5,7.5,10][a-41]:a/40}; +D.j.P.afq=function(a,F,y){var self=D.j.P,c=self.cA,Q=self.ml,S=y,h=y>>1,d=h-1,W=S*S,w=0;for(var G=0; +G=c)b=c-1; +if(q>=Q)q=Q-1;J+=a[q*c+b<<2];A+=a[(q*c+b<<2)+1];T+=a[(q*c+b<<2)+2]}}var O=~~(J/W),R=~~(A/W),k=~~(T/W); +F[w]=O;F[w+1]=R;F[w+2]=k;F[w+3]=a[w+3];w+=4;for(var L=1;L=c)t=c-1;if(q>=Q)q=Q-1;var _=q*c,M=_+t<<2,I=_+C<<2;J+=a[M]-a[I];A+=a[M+1]-a[I+1];T+=a[M+2]-a[I+2]}if(L%y==0){O=~~(J/W); +R=~~(A/W);k=~~(T/W)}F[w]=O;F[w+1]=R;F[w+2]=k;F[w+3]=a[w+3];w+=4}}};D.j.P.a0R=function(a,F,y,c,Q){var self=D.j.P,S=self.cA,h=self.ml,d=0,W=0,w=0,J=0; +for(var G=J;G=c||G=Q||T>8)&255;F[G]=F[b]=q;q=q%8;y[G]=y[b]=Q[q]; +c[G]=c[b]=S[q]}}function w(b){return b*b*b*(b*(b*6-15)+10)}function J(b,q,O){return(1-O)*b+O*q}function A(b,q){return b&q}function T(b,q){return b%q}function o(b,q,O,R,k){var L=Math.floor(b),C=Math.floor(q),h,t,_,M,I,j; +b=b-L;q=q-C;L=L&255;C=C&255;h=L+F[C];M=y[h]*b+c[h]*q;h=L+F[k(C+1,R)];_=y[h]*b+c[h]*(q-1);h=k(L+1,O)+F[C]; +I=y[h]*(b-1)+c[h]*q;h=k(L+1,O)+F[k(C+1,R)];j=y[h]*(b-1)+c[h]*(q-1);t=w(b);return J(J(M,I,t),J(_,j,t),w(q))}function i(b,h,q){b[h]=q}function N(b,q,O,R,k){var L=Math.min(Math.min(q,256),Math.min(256,O)),C=L==256||L<8,t=8,_=new Uint32Array(t),M=new Uint32Array(t),I=new Float32Array(t),j=new Float32Array(t),r=1,s=1,e=C?A:T,P=i,l; +for(var G=0;G>>2),h=new Uint8Array(F.length>>>2),d=new Uint8Array(F.length); +for(var G=0;G>>2]=W;d[G]=F[G];d[G+1]=F[G+1]; +d[G+2]=F[G+2]}D.G5.qm(h,S,y,c);D.G5.rn(F,Q,y,c,D.G5.S$[1],0,!0);for(var G=0;G>>2]}for(var G=0,w=F.length; +G>>8&255,N=o>>>16&255,b=o>>>24&255,q=~~(Math.random()*8),O=q%3,R=0,k=0; +if(q<3){k--}else if(q>4){k++}if(O==0){R--}else if(O==2){R++}var L=T+R,C=G+k;if(L<0)L=0;else if(L>h-1)L=h-1; +if(C<0)C=0;else if(C>d-1)C=d-1;var o=J[C*h+L],t=o&255,_=o>>>8&255,M=o>>>16&255,I=o>>>24&255;W[A]=w(v,t); +W[A+1]=w(i,_);W[A+2]=w(N,M);W[A+3]=w(b,I)}}}function F(S,h){return h}function y(S,h){return S>h?h:S}function c(S,h){return S>>2;Q[d+1]=A+2>>>2;Q[d+2]=T+2>>>2;Q[d+3]=o+2>>>2}}}return a}(); +D.j.am5=function(){function a(F,y,c,Q){var S=new Uint8Array(F.length),h=new Uint8Array(F.length>>>2),d=new Uint8Array(F.length>>>2); +D.G5.rn(F,S,y,c,D.G5.S$[2],0,!0);for(var G=0;G>>2]=W;Q[G+0]=F[G+0];Q[G+1]=F[G+1];Q[G+2]=F[G+2];Q[G+3]=F[G+3]}D.G5.qm(h,d,y,c);for(var G=0;G>>2]-50)*(255/205))}for(var G=0,w=F.length;G.5)return 0;if(q>.25)return 1;if(q>.1)return 2;if(q>.02143)return 3;if(q>.00445)return 4;if(q>65e-5)return 5; +if(q>415e-6)return 6;if(q>55e-6)return 7;return 8}function d(q,O,R,k,L,C){q[O]=R[k]+(L[C]-R[k]>>1);q[O+1]=R[k+1]+(L[C+1]-R[k+1]>>1); +q[O+2]=R[k+2]+(L[C+2]-R[k+2]>>1);q[O+3]=R[k+3]+(L[C+3]-R[k+3]>>1)}function W(q,O,R,k,L,C){q[O]=L[C]+R[k]>>1; +q[O+1]=L[C+1]+R[k+1]>>1;q[O+2]=L[C+2]+R[k+2]>>1;q[O+3]=L[C+3]+R[k+3]>>1}function w(q,O,R,k,L,C,t,_,M){var I=0,j=0,r=0,G,s=L[C],e; +d(_,0,q,O,q,R);for(G=0;G0&&k[C-1]0){w(k,t-4,t,L,I,s,j,r,4)}t+=4}L[O]=L[0];I[O]=I[0];if(L[O-1]0){w(k,t,_,L,I,O,j,r,4)}}S(k)}function A(){var q=Math.random(); +if(q>.659755)return 0;if(q>.1625)return 10;if(q>.06)return 20;if(q>.01)return 30;if(q>.0035)return 40; +if(q>65e-5)return 50;if(q>415e-6)return 60;if(q>55e-6)return 70;return 80}function T(q,O,R,k,L,C){var t=A()+1,_=k[L]; +for(var G=1;GL)break;if(k[L-G]<_){c(q,O,R)}else{break}O+=C}}function o(q,O,R,k,L){var C=O*4,t=0; +for(var G=0;GR[G]){y(q,r-C,I,0);R[G-1]=M;j=!1;break}y(q,r-C,q,r);R[G-1]=R[G];r+=C}if(j){y(q,r-C,I,0); +R[L-1]=M}t++;k--;O-=C}}function i(q,O,R,k,L){var C=0,t=0,_=O*4;for(var G=0;G>16}h=Q[0];var T=Q[1],o=(T+2)/2,v=S.random()*255,i=S.S(1); +for(var G=0;G>>1; +while(y!=0&&a[G][0]>>1}},ahN:function(a){if(a.length==2)return a.pop(); +var top=a[1],G=1;a[1]=a.pop();var F=a.length;while(!0){var y=G<<1,c=y+1,Q=G;if(yy){console.log(G);throw"e"}y=c;F=F>>>1}}}}; +D.R={};D.R.FE=new Float64Array(256);D.R.nq=new Uint8Array(256*256);D.R.kj=new Uint8Array(256*256);(function(){for(var G=0; +G<256;G++)D.R.FE[G]=255/G;for(var G=0;G<256;G++)for(var a=0;a<256;a++)D.R.nq[G*256+a]=G==0?0:Math.round(a*255/G); +for(var G=0;G<256;G++)for(var a=0;a<256;a++)D.R.kj[G*256+a]=Math.round(G*(255-a)/255)}());D.R.jU=function(a,F,y,c,Q,S,h,d){if(d==null)d=hN.$E(); +if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(a)==-1){h=h*d.fill;d.fill=1;d.style=!1}var W="norm,dark,mul ,idiv,lbrn,lite,scrn,div ,lddg,over,sLit,hLit,vLit,lLit,pLit,hMix,diff,smud,fsub,fdiv".split(","),w="dkCl,lgCl,hue ,sat ,colr,lum ".split(","),J=D.R[a+"F"]; +if(d.Sk==null&&a=="norm")D.R.aae(F,y,c,Q,S,h,J,d.Zl?1:0);else if(a=="diss")D.R.a7P(F,y,c,Q,S,h,J,d.Zl?1:0); +else if(W.indexOf(a)!=-1)D.R.aoh(F,y,c,Q,S,h,J,d);else if(w.indexOf(a)!=-1)D.R.agU(F,y,c,Q,S,h,J,d)}; +D.R.acH=function(a,F,y){var c=a*y+1-y;return c<.001?0:1-Math.min(1,(1-F)/c)};D.R.a7g=function(a,F,y){return a*y==1?1:Math.min(1,F/(1-a*y))}; +D.R.sY=function(a){return a<=.25?((16*a-12)*a+4)*a:Math.sqrt(a)};D.R.normF=function(a,F,y){return a}; +D.R.darkF=function(a,F,y){return Math.min(a,F)};D.R["mul F"]=function(a,F,y){return a*F};D.R.idivF=function(a,F,y){var c=a*y+1-y; +return F==1?1:1-F>=c?0:1-(1-F)/c};D.R.lbrnF=function(a,F,y){return Math.max(0,a*y+F-y)};D.R.dkClF=function(a,F,y){var c=D.b6(a)=1-a?1:F/(1-a)};D.R.lddgF=function(a,F,y){a*=y;return Math.min(1,a+F)}; +D.R.lgClF=function(a,F,y){var c=D.b6(a)>D.b6(F)?a:F;y.i=c.i;y.m=c.m;y.d=c.d;return y};D.R.overF=function(a,F,y){return D.R.hLitF(F,a,y)}; +D.R.sLitF=function(a,F,y){return a<=.5?F-(1-2*a)*F*(1-F):F+(2*a-1)*(D.R.sY(F)-F)};D.R.hLitF=function(a,F,y){return a<=.5?D.R["mul F"](2*a,F,y):D.R.scrnF(2*a-1,F,y)}; +D.R.vLitF=function(a,F,y){return a<=.5?D.R.acH(2*a,F,y):D.R.a7g(2*a-1,F,y)};D.R.lLitF=function(a,F,y){return a<=.5?D.R.lbrnF(2*a,F,y):D.R.lddgF(2*a-1,F,y)}; +D.R.pLitF=function(a,F,y){return a<=.5?D.R.darkF(2*a,F,y):D.R.liteF(2*a-1,F,y)};D.R.hMixF=function(a,F,y){if(y>.99)return a+F<1?0:1; +return Math.min(1,Math.max(0,(F+a*y-y)/(1-y+1e-6)))};D.R.diffF=function(a,F,y){a*=y;return Math.abs(a-F)}; +D.R.smudF=function(a,F,y){return a+F-2*a*F};D.R.fsubF=function(a,F,y){return Math.max(F-a,0)};D.R.fdivF=function(a,F,y){return Math.min(F/a,1)}; +D.R["hue F"]=function(a,F,y){D.R.Jc(a,D.pt(F),y);D.R.jH(y,D.b6(F),y)};D.R["sat F"]=function(a,F,y){D.R.Jc(F,D.pt(a),y); +D.R.jH(y,D.b6(F),y)};D.R.colrF=function(a,F,y){D.R.jH(a,D.b6(F),y)};D.R["lum F"]=function(a,F,y){D.R.jH(F,D.b6(a),y)}; +D.R.jH=function(a,F,y){var c=F-D.b6(a);y.i=a.i+c;y.m=a.m+c;y.d=a.d+c;D.R.akM(y)};D.R.akM=function(a){var F=a.i,y=a.m,c=a.d,Q=D.aJ(F,y,c),$=Math.min(F,y,c),S=Math.max(F,y,c); +if($<0){var h=Q/(Q-$);F=Q+(F-Q)*h;y=Q+(y-Q)*h;c=Q+(c-Q)*h}if(S>1){var h=(1-Q)/(S-Q);F=Q+(F-Q)*h;y=Q+(y-Q)*h; +c=Q+(c-Q)*h}a.i=F;a.m=y;a.d=c};D.R.Jc=function(a,F,y){var c=D.R.acc,Q=a.i,S=a.m,h=a.d;if(Q==S&&S==h){y.i=y.m=y.d=0}else if(Q>S){if(Q>h){if(S>h){y.i=F; +y.m=c(Q,S,h,F);y.d=0}else{y.i=F;y.d=c(Q,h,S,F);y.m=0}}else{y.d=F;y.i=c(h,Q,S,F);y.m=0}}else{if(Qh){y.m=F; +y.d=c(S,h,Q,F);y.i=0}else{y.d=F;y.m=c(h,S,Q,F);y.i=0}}else{y.m=F;y.i=c(S,Q,h,F);y.d=0}}};D.R.acc=function(a,F,y,c){return(F-y)*c/(a-y)}; +D.R.aae=function(a,F,y,c,Q,S,h,d){var W=F.Df(c).Df(Q),w=Math.max(0,W.x-F.x),J=Math.max(0,W.x-c.x),A=Math.max(0,W.y-F.y),T=Math.max(0,W.y-c.y),o=W.t,v=W.w,i=F.t,N=c.t,b=D.R.nq,q=D.R.kj,O=new Uint32Array(a.buffer),R=new Uint32Array(y.buffer); +for(var G=0;G>>24==0)continue; +if(t>>>24==255&&S==1&&d==0){R[L+C]=O[k+C];continue}var _=R[L+C],M=255*S&255;if(d==0){M=(t>>>24)*S&255; +I=_>>>24}var j=q[I<<8|M],r=M+j,s=t&255,e=t>>>8&255,P=t>>>16&255,l=_&255,x=_>>>8&255,E=_>>>16&255;R[L+C]=d*(_>>>24)+(1-d)*r<<24|b[r<<8|D.IB(P*M+E*j)]<<16|b[r<<8|D.IB(e*M+x*j)]<<8|b[r<<8|D.IB(s*M+l*j)]}}}; +D.R.adi=function(a,F,y,c,Q,S){var h=F.Df(c).Df(Q),d=Math.max(0,h.x-F.x),W=Math.max(0,h.x-c.x),w=Math.max(0,h.y-F.y),J=Math.max(0,h.y-c.y),A=h.t,T=h.w,o=F.t,v=c.t,i=D.R.nq,N=D.R.kj,b=new Uint32Array(a.buffer),q=new Uint32Array(y.buffer),O=Math.floor(Math.random()*16777215),R=0; +for(var G=0;G>>24==0)continue; +if(t>>24==255&&S==1){q[L+C]=t;continue}var _=q[L+C],M=(t>>>24)*S*(1/255),I=(_>>>24)*(1/255),j=I*(1-M),r=M+j,s=t&255,e=t>>>8&255,P=t>>>16&255,l=_&255,x=_>>>8&255,E=_>>>16&255; +R>>>=8;if((C&3)==0)R=D.R.S7(L+C+O);var p=r==0?0:1/r,f=Math.floor(r*(256*255))+(R&255)>>>8,H=Math.floor((P*M+E*j)*p+.5),g=Math.floor((e*M+x*j)*p+.5),B=Math.floor((s*M+l*j)*p+.5); +q[L+C]=f<<24|H<<16|g<<8|B}}};D.R._M=function(a,F,y,c,Q,S,h,d){var W=D.aJ(a,F,y),w=D.aJ(c,Q,S),J=Math.min,A=D.R.aet,T=A(W,d,0); +T=J(T,A(a,d,8));T=J(T,A(F,d,16));T=J(T,A(y,d,24));var o=A(w,d,4);o=J(o,A(c,d,12));o=J(o,A(Q,d,20));o=J(o,A(S,d,28)); +o=Math.max(o,1-h);var v=Math.min(T,o);return v<0?0:v>1?1:v};D.R.aet=function(a,F,G){return Math.min((a-F[G])*F[G+1],(a-F[G+3])*F[G+2])}; +D.R.aoh=function(a,F,y,c,Q,S,h,d){var W=1/255,w=W*S,J=d.Zl?1:0,A=d.fill,T=d.style,o=F.Df(c).Df(Q),v=Math.max(0,o.x-F.x),i=Math.max(0,o.x-c.x),N=Math.max(0,o.y-F.y),b=Math.max(0,o.y-c.y),q=o.t,O=o.w,R=F.t,k=c.t,L=new Uint32Array(a.buffer),C=new Uint32Array(y.buffer); +for(var G=0;G>>24==0)continue; +var j=C[_],r=(I&255)*W,s=(I>>>8&255)*W,e=(I>>>16&255)*W,P=(j&255)*W,l=(j>>>8&255)*W,x=(j>>>16&255)*W,E=S; +if(J==0){E=(I>>>24)*w;p=(j>>>24)*W}if(d.Sk)E*=D.R._M(r,s,e,P,l,x,p,d.Sk);var f=p*(1-E),H=E+f,g=H==0?0:255/H,B=T?1:E,U=((1-p)*E*r+(1-B)*p*P+B*p*h(r,P,(1+E-B)*A))*g,Z=((1-p)*E*s+(1-B)*p*l+B*p*h(s,l,(1+E-B)*A))*g,aR=((1-p)*E*e+(1-B)*p*x+B*p*h(e,x,(1+E-B)*A))*g; +H=E*A+p*(1-E*A);var hY=~~(H*255+.5);C[_]=J*(j>>>24)+(1-J)*hY<<24|aR<<16|Z<<8|U}}};D.R.agU=function(a,F,y,c,Q,S,h,d){var W=1/255,w=W*S,J=d.Zl?1:0,A=F.Df(c).Df(Q),T=Math.max(0,A.x-F.x),o=Math.max(0,A.x-c.x),v=Math.max(0,A.y-F.y),i=Math.max(0,A.y-c.y),N=A.t,b=A.w,q=new Uint32Array(a.buffer),O=new Uint32Array(y.buffer),R={i:0,m:0,d:0},k={i:0,m:0,d:0},L={i:0,m:0,d:0}; +for(var G=0;G>>8&255)*W,s=(M>>>16&255)*W,e=(I&255)*W,P=(I>>>8&255)*W,l=(I>>>16&255)*W,x=S,E=1; +if(J==0){x=(M>>>24)*w;E=(I>>>24)*W}if(d.Sk)x*=D.R._M(j,r,s,e,P,l,E,d.Sk);var p=E*(1-x),f=x+p,H=255/f; +R.i=j;R.m=r;R.d=s;k.i=e;k.m=P;k.d=l;h(R,k,L);var g=(((1-E)*j+E*L.i)*x+e*p)*H,B=(((1-E)*r+E*L.m)*x+P*p)*H,U=(((1-E)*s+E*L.d)*x+l*p)*H,Z=J*(I>>>24)+(1-J)*Math.round(f*255); +O[t]=Z<<24|U<<16|B<<8|g}}};D.R.lv=function(a){a=a^61^a>>>16;a=a+(a<<3);a=a^a>>>4;a=a*668265261;a=a^a>>15; +return(a&16777215)*(1/16777215)};D.R.S7=function(a){a=a^61^a>>>16;a=a+(a<<3);a=a^a>>>4;a=a*668265261; +a=a^a>>>15;return a};D.R.pw=function(a){this.nU=a};D.R.pw.prototype.get=function(){var a=this.nU=D.R.S7(this.nU); +return(a&16777215)*(1/16777215)};D.R.a7P=function(a,F,y,c,Q,S,h,d){var W=1/255,w=W*S,J=Math.round(S*(256*256*256/255)),A=F.Df(c).Df(Q),T=Math.max(0,A.x-F.x),o=Math.max(0,A.x-c.x),v=Math.max(0,A.y-F.y),i=Math.max(0,A.y-c.y),N=A.t,b=A.w,q=new Uint32Array(a.buffer),O=new Uint32Array(y.buffer); +for(var G=0;G>>24); +if((D.R.S7(R)&16777215)>=_*J)continue;O[k]=C&16777215|d*(t>>>24)+(1-d)*255<<24}}};D.R.ab$=function(a,F,y){for(var G=0; +G>>2];if(c==0)continue;var Q=c*(1/255),S=1/Q,h=F[G],d=F[G+1],W=F[G+2],w=a[G],J=a[G+1],A=a[G+2]; +F[G]=Math.min(255,Math.max(0,Math.round((h-(1-Q)*w)*S)));F[G+1]=Math.min(255,Math.max(0,Math.round((d-(1-Q)*J)*S))); +F[G+2]=Math.min(255,Math.max(0,Math.round((W-(1-Q)*A)*S)));F[G+3]=255}};D.R.g5=function(a,F,y,c,Q,S,h,d,W,w,J){if(w==null)w=!1; +if(J==null)J=[1,1,1];var A=255<<24|J[2]*16711680|J[1]*65280|J[0]*255,T=~A;if(Q&&!F.pI(S)){var o=D.G(F.L()*4); +o.fill(h);D.oR(Q,S,o,F);Q=o;S=F}if(w){if(Q==null)D.R.a8W(a,F,y,c,Q,d,W,A,T);else D.R.akf(a,F,y,c,Q,d,W)}else{if(Q==null)D.R.acj(a,F,y,c,Q,d,W,A,T); +else D.R.a9k(a,F,y,c,Q,d,W)}};D.R.acj=function(a,F,y,c,Q,S,h,d,W){var w=1/255,J=F.Df(c).Df(S),A=Math.max(0,J.x-F.x),T=Math.max(0,J.x-c.x),o=Math.max(0,J.y-F.y),v=Math.max(0,J.y-c.y),i=J.t,N=J.w,b=new Uint32Array(a.buffer),q=new Uint32Array(y.buffer),O=D.R.nq,R=h*255&255; +for(var G=0;G>>24,I=_>>>24,j=D.IB(R*M+(255-R)*I),r=D.IB(M*R),s=D.IB(I*(255-R)),e=t&255,P=t>>>8&255,l=t>>>16&255,x=_&255,E=_>>>8&255,p=_>>>16&255,f=r*e+x*s,H=r*P+E*s,g=r*l+p*s; +f=O[j<<8|D.IB(f)];H=O[j<<8|D.IB(H)];g=O[j<<8|D.IB(g)];var B=j<<24|g<<16|H<<8|f;q[L]=W&_|d&B}}};D.R.a8W=function(a,F,y,c,Q,S,h,d,W){var w=1/255,J=F.Df(c).Df(S),A=Math.max(0,J.x-F.x),T=Math.max(0,J.x-c.x),o=Math.max(0,J.y-F.y),v=Math.max(0,J.y-c.y),i=J.t,N=J.w,b=new Uint32Array(a.buffer),q=new Uint32Array(y.buffer),O=D.R.nq,R=h*16777215&16777215; +for(var G=0;G>>24,_=C>>>24,M=D.IB(k*t+(255-k)*_),I=D.IB(t*k),j=D.IB(_*(255-k)),r=L&255,s=L>>>8&255,e=L>>>16&255,P=C&255,l=C>>>8&255,x=C>>>16&255,E=b[M<<8|D.IB(I*r+P*j)],p=b[M<<8|D.IB(I*s+l*j)],f=b[M<<8|D.IB(I*e+x*j)]; +N[O]=M<<24|f<<16|p<<8|E}}};D.R.akf=function(a,F,y,c,Q,S,h){var d=1/255,W=F.Df(c).Df(S),w=Math.max(0,W.x-F.x),J=Math.max(0,W.x-c.x),A=Math.max(0,W.y-F.y),T=Math.max(0,W.y-c.y),o=W.t,v=W.w,i=new Uint32Array(a.buffer),N=new Uint32Array(y.buffer),b=D.R.nq,q=Math.round(h*257); +for(var G=0;G>>24,M=t>>>24,I=_*L*(1/255),j=M*(255-L)*(1/255),r=C&255,s=C>>>8&255,e=C>>>16&255,P=t&255,l=t>>>8&255,x=t>>>16&255,E=D.R.S7(R+k+b),p=Math.floor((I+j)*256+.5)+(E>>>0&255)>>>8,f=p==0?0:256/(I+j),H=r*I+P*j,g=s*I+l*j,B=e*I+x*j,U=Math.floor(H*f+.5)+(E>>>8&255)>>>8,Z=Math.floor(g*f+.5)+(E>>>16&255)>>>8,aR=Math.floor(B*f+.5)+(E>>>21&248)>>>8; +N[R+k]=p<<24|aR<<16|Z<<8|U}}};D.R.a16=function(a){return Math.floor(a+Math.random())};D.R.tr=function(a,F,y,c,Q,S,h){var d=1/255,W=F.Df(c).Df(S),w=Math.max(0,W.x-F.x),J=Math.max(0,W.x-c.x),A=Math.max(0,W.y-F.y),T=Math.max(0,W.y-c.y),o=W.t,v=W.w; +for(var G=0;G1+d){r=D.O7.cM(T,j,H,g);x=Math.sqrt(r);p--;f++}else{r=e=l=1e9;for(var G=0;G=M)continue;var hY=D.O7.cM(T,aR,H,g);if(hY>1);D.AX.Ia(F,h,y,c,S[1]-1>>1);D.AX.Ia(F,h,y,c,S[2]-1>>1)};D.AX.a0m=function(a,F,y,c,Q){var S=D.AX.EH(Q,2),h=D.AX._D(y*c); +D.YR(a,F);D.AX.Ia(F,h,y,c,S[0]-1>>1);D.AX.Ia(F,h,y,c,S[1]-1>>1)};D.AX.acT=function(a,F,y,c){var Q=D.AX.EH(c,3),S=D.AX._D(F*y*4); +D.AX.Zc(a,S,F,y,Q[0]-1>>1);D.AX.Zc(a,S,F,y,Q[1]-1>>1);D.AX.Zc(a,S,F,y,Q[2]-1>>1)};D.AX.aqk=function(a,F,y,c,Q,S){if(S==null)S=3; +var h=D.AX.EH(Q,S),d=D.AX._y(y*c);D.YR(a,F);for(var G=0;GS||a*y<0&&hS||a*c<0&&hS||a*Q<0&&hS?1:0}; +D.Pa.a75=function(a,F,y,c){var Q=new Float32Array(c),S=0;new Uint32Array(c).fill(0);for(var h=0;hS)S=A}var o=F*y,v=S==0?0:1/S; +for(var G=0;G0&&d>0)Q[S+0]=-a-1;if(h>0)Q[S+1]=-a;if(h>0&&d0)Q[S+6]=a-1;if(d>0)Q[S+7]=-1;G++;S+=8}return c}; +D.G5={};D.G5.jL=function(a){var F=a.slice(0),y=0;for(var G=0;G>>1,J=new Uint32Array(a.buffer),F=new Uint8ClampedArray(F.buffer); +for(var G=0;Gy-1)O=y-1;if(R<0)R=0;else if(R>c-1)R=c-1;if(d&&J[R*y+O]>>>24==0){R=G; +O=A}var k=J[R*y+O];T+=(k&255)*q;o+=(k>>>8&255)*q;v+=(k>>>16&255)*q;i+=(k>>>24&255)*q}if(h){if(T<0)T=-T; +if(o<0)o=-o;if(v<0)v=-v;if(i<0)i=-i}if(d){T=Math.max(0,Math.min(255,T));o=Math.max(0,Math.min(255,o)); +v=Math.max(0,Math.min(255,v));i=Math.max(0,Math.min(255,i))}var L=G*y+A<<2;F[L]=~~(.5+T);F[L+1]=~~(.5+o); +F[L+2]=~~(.5+v);F[L+3]=255-S&F[L+3]|S&~~(.5+i)}};D.G5.up=function(a,F,y,c){var Q=a.length,S=new Uint8Array(Q); +D.G5.rn(a,F,y,c,D.G5.S$[4],0,!0);D.G5.rn(a,S,y,c,D.G5.S$[5],0,!0);for(var G=0;G>>1,q=new Array(N),O=new Array(N); +for(var G=0;GW-J-N-1){L.fill(0);var t=Math.max(C-J,0),_=Math.min(W,C+J+1),M=_-t; +for(var I=0;I=0)c(L,h,j*W+t,j*W+_,-1);var s=I*W+C<<2;o=L[300];if(o!=0)for(var G=0;G<3;G++)d[s+G]=R(i[G],h[s+G],o,T)}}else{for(var G=0; +G=0)y(O,h,j*W+t,j*W+_,-1,b);if(r>>4]+=w}return a}();D.a$.QR=function(){function a(A,T,o,v,i,N,b){if(i==0){T.set(A); +return}if(i<=80)F(A,T,o,v,i,N,b);else S(A,T,o,v,i,N,b)}function F(A,T,o,v,i,N,b){var q=0,O=new Int32Array(512),R=1+2*Math.round(Math.sqrt(i)),k=R>>>1,L=new Array(R); +for(var G=0;Go-i-R-1){O.fill(0); +q=0;var M=Math.max(_-i,0),I=Math.min(o,_+i+1),j=I-M;for(var r=0;r=0){q-=j;c(O,A,s*o+M,s*o+I,-1)}if(e=0){q-=j;y(L,A,s*o+M,s*o+I,-1,k)}if(e>>4]+=v}function S(A,T,o,v,i,N,b){var q=0,O=new Int32Array(512),R=new Int32Array(1*o),k=new Int32Array(512*o),L=Math.min(i,o),C=Math.min(i,v),t=N[0]; +for(var _=0;_=0)h(k,R,A,o,_-i-1,-1); +O.fill(0);q=0;for(var M=0;M=0&&R[I]!=0){q-=R[I]; +W(O,k,I)}if(j0)G--; +G=(G<<4)+15;while(a[G]==0&&G>0)G--;return G},function(a,F,y,c,Q){var G=15;while(a[256|G]+F[256|G]==0&&G>0)G--; +G=(G<<4)+15;while(a[G]+F[G]==0&&G>0)G--;return G}];D.a$.Fj=[function(a,F,y,c){var G=0;while(a[256|G]==0&&G<15)G++; +G=G<<4;while(a[G]==0&&G<255)G++;return G},function(a,F,y,c,Q){var G=0;while(a[256|G]+F[256|G]==0&&G<15)G++; +G=G<<4;while(a[G]+F[G]==0&&G<255)G++;return G}];D.a$.cY=.5;D.a$.S9=[function(a,F,y,c){var Q=~~(.5+D.a$.cY*y),S=0,G=256; +while(S+a[G]<=Q)S+=a[G++];G=G-256<<4;while(S<=Q)S+=a[G++];return G-1},function(a,F,y,c,Q){var S=~~(.5+D.a$.cY*c),h=0,G=256; +while(h+a[G]+F[G]<=S){h+=a[G]+F[G];G++}G=G-256<<4;while(h<=S){h+=a[G]+F[G];G++}return G-1}];D.a$.ev=[function(a,F,y,c){var Q=c[0],S=0,h=0,G=Math.max(0,F-Q),d=Math.min(256,F+Q+1); +while(G1e-9)J=!1}var v=D.o.w1(a),i=D.o.J3(a)&&v,N=i?1:0; +if(h||J&&A==y+c&&v){D.o.aoU(w,F,y,c,Q,S,d,v,W);return}var b=S.t,q=S.w,O=new Float64Array(2);Q=new Uint32Array(Q.buffer); +F=new Uint32Array(F.buffer);for(var R=0;Ry+1||P<-1||P>c+1; +if(d){e=Math.max(.001,Math.min(y-1,e));P=Math.max(.001,Math.min(c-1,P))}else if(l)continue;var x=T;if(!v){var E=0,p=0; +_=a;C=r+1/y;t=s;M=1/(_[6]*C+_[7]*t+1);E=(_[0]*C+_[1]*t+_[2])*M-I;p=(_[3]*C+_[4]*t+_[5])*M-j;var f=E*E+p*p; +C=r;t=s+1/c;M=1/(_[6]*C+_[7]*t+1);E=(_[0]*C+_[1]*t+_[2])*M-I;p=(_[3]*C+_[4]*t+_[5])*M-j;var H=E*E+p*p; +x=1/Math.sqrt(Math.max(f,H))}if(x<1.1){D.o.Jj(e,P,F,y,c,Q,L,N);continue}var g=Math.round(x*2.3);if(!d&&(e<.6||e>y-.6||P<.6||P>c-.6)){g=Math.max(g,5)}if(d&&l)g=1; +var B=1/g,j3=S.x+k,X=S.y+R;_=w;for(var G=0;G=1||P<0||P>=1)continue;e=Math.floor(e*y);P=Math.floor(P*c); +var hW=P*y+e,cY=F[hW],ho=cY>>>24;U+=(cY&255)*ho;Z+=(cY>>>8&255)*ho;aR+=(cY>>>16&255)*ho;hY+=ho}if(hY!=0){var e7=1/hY; +U=~~(U*e7+.5);Z=~~(Z*e7+.5);aR=~~(aR*e7+.5);hY=~~(hY*B*B+.5);Q[L]=hY<<24|aR<<16|Z<<8|U}}};D.o.aoU=function(a,F,y,c,Q,S,h,d,W){if(d&&!h&&S.L()>4e6&&W){D.o.aoH(a,F,y,c,Q,S,h,d,W); +return}var w=S.x+S.t,J=S.y+S.w,A=0,T=new Uint32Array(Q.buffer),o=new Uint32Array(F.buffer),v=a[0]*y,i=a[1]*y,N=a[2]*y,b=a[3]*c,q=a[4]*c,O=a[5]*c,R=a[6],k=a[7]; +if(d&&!h)for(var L=S.y+.5;L>>2<<2)-1e-9,_=-.1+(R>>>1<<1)-1e-9,M=~~y,I=A==0?0:1/A,j=v==0?0:1/v; +for(var r=0;r0){P=Math.max(P,-s*I); +l=Math.min(l,(y-s)*I)}else{l=Math.min(l,-s*I);P=Math.max(P,(y-s)*I)}if(v==0){}else if(j>0){P=Math.max(P,-e*j); +l=Math.min(l,(c-e)*j)}else{l=Math.min(l,-e*j);P=Math.max(P,(c-e)*j)}if(l<0)l=0;if(P>l)P=l;P=Math.ceil(P); +l=~~l;k=~~(r*O);for(var x=0;x=0&&J=0&&J+1=0&&A=0&&A+1c-1?c-1:J,k=J<-1?0:J>c-2?c-1:J+1,L=A<0?0:A>Q-1?Q-1:A,C=A<-1?0:A>Q-2?Q-1:A+1; +T=y[L*c+R];o=y[L*c+k];v=y[C*c+R];i=y[C*c+k]}else{var R=(J+50*c)%c,k=(J+50*c)%c,L=(A+50*Q)%Q,C=(A+50*Q)%Q; +T=y[L*c+R];o=y[L*c+k];v=y[C*c+R];i=y[C*c+k]}var t=a-J,_=F-A,M=(1-_)*(1-t)*(T>>>24),I=(1-_)*t*(o>>>24),j=_*(1-t)*(v>>>24),r=_*t*(i>>>24),s=M+I+j+r,e=M*(T&255)+I*(o&255)+j*(v&255)+r*(i&255),P=M*(T>>>8&255)+I*(o>>>8&255)+j*(v>>>8&255)+r*(i>>>8&255),l=M*(T>>>16&255)+I*(o>>>16&255)+j*(v>>>16&255)+r*(i>>>16&255); +if(s==0)S[h]=0;else{var x=1/s;e=~~(e*x+.5);P=~~(P*x+.5);l=~~(l*x+.5);s=~~(s+.5);S[h]=s<<24|l<<16|P<<8|e}}; +D.o.am=function(a,F,y,c,Q,S){var h=a-.499999,d=F-.499999,W=~~h,w=~~d,J=h-W,A=d-w,T=(1-A)*(1-J),o=(1-A)*J,v=A*(1-J),i=A*J,N=w*c+W<<2,b=(w+1)*c+W<<2,q=T*y[N]+o*y[N+4]+v*y[b]+i*y[b+4],O=T*y[N+1]+o*y[N+5]+v*y[b+1]+i*y[b+5],R=T*y[N+2]+o*y[N+6]+v*y[b+2]+i*y[b+6],k=T*y[N+3]+o*y[N+7]+v*y[b+3]+i*y[b+7]; +S[0]=q;S[1]=O;S[2]=R;S[3]=k};D.o.nk=function(a,F,y,c,Q){a-=.499999;F-=.499999;var S=Math.floor(a),h=Math.floor(F),d=a-S,W=F-h,w=(1-W)*(1-d),J=(1-W)*d,A=W*(1-d),T=W*d,o=(S+50*c)%c,v=(S+1+50*c)%c,i=(h+50*Q)%Q,N=(h+1+50*Q)%Q,b=y[i*c+o],q=y[i*c+v],O=y[N*c+o],R=y[N*c+v]; +if(b==null||R==null)throw"e";return w*b+J*q+A*O+T*R};D.o.CM=function(a,F,y,c,Q,S,h,d,W,w,J,A){var T=new Uint32Array(a.buffer),o=new Uint32Array(c.buffer),v=(1+2*w)/Q,i=[],N=[]; +for(var b=0;bF-1?F-1:k)),t=~~(.5+(L<0?0:L>y-1?y-1:L)); +o[O*Q+b]=T[t*F+C]}}};D.o.hF=function(a,F,y,c,Q,S,h,d,W,w,J,A){var T=new Uint32Array(a.buffer),o=new Uint32Array(c.buffer),v=1/A,i=[],N=y*4,b=1/N; +for(var q=0;qF?F:y},a1q:function(a,F,y,c,Q,S,h,d){var W=y[0],w=y[1],J=y[2],A=y[3],T=c.t,o=c.w,v=new Float64Array(T*4+8),i=new Float64Array(T*4+8); +for(var N=0,G=0;N>1,C=J.wQ.w-y.w>>1,t=J.wQ.t,_=-.6*k,M=(-.6+.4)*k,I=(-.6+2*.4)*k,j=(-.6+3*.4)*k; +for(var r=0,G=0;r=1){f=(p<=0?0:o)<<2;F[G]=b[f];F[G+1]=b[f+1];F[G+2]=b[f+2];F[G+3]=b[f+3];continue}f=Math.max(0,Math.min(o-1,Math.round((p+_)*o)))<<2; +P+=b[f];l+=b[f+1];x+=b[f+2];e+=b[f+3];f=Math.max(0,Math.min(o-1,Math.round((p+M)*o)))<<2;P+=b[f];l+=b[f+1]; +x+=b[f+2];e+=b[f+3];f=Math.max(0,Math.min(o-1,Math.round((p+I)*o)))<<2;P+=b[f];l+=b[f+1];x+=b[f+2];e+=b[f+3]; +f=Math.max(0,Math.min(o-1,Math.round((p+j)*o)))<<2;P+=b[f];l+=b[f+1];x+=b[f+2];e+=b[f+3];F[G]=P>>>2; +F[G+1]=l>>>2;F[G+2]=x>>>2;F[G+3]=e>>>2}}};D.V.qg=function(a,F,y){var c=[];for(var G=0;G>16&255,m:F>>8&255,d:F&255};else if(a[G].v.Type.v.Clry=="BckC")Q={i:y>>16&255,m:y>>8&255,d:y&255}; +else Q=D.V.$j(a[G].v.Clr.v);c.push(Q)}return c};D.V.$j=function(a){var F,y=a.classID;if(y=="RGBC"){if(a.Rd)F={i:a.Rd.v,m:a.Grn.v,d:a.Bl.v}; +else F={i:a.redFloat.v*255,m:a.greenFloat.v*255,d:a.blueFloat.v*255}}else if(y=="HSBC"){F=D.By(a.H.v.val/360,a.Strt.v/100,a.Brgh.v/100); +F.i*=255;F.m*=255;F.d*=255}else if(y=="CMYC"){var c=100-a.Cyn.v,Q=100-a.Mgnt.v,S=100-a.Ylw.v,h=100-a.Blck.v,d=255*c*h*1e-4,W=255*(.2*c+.8*Q)*h*1e-4,w=255*(.2*Q+.8*S)*h*1e-4; +F={i:d,m:W,d:w}}else if(y=="Grsc")F={i:255-a.Gry.v,m:255-a.Gry.v,d:255-a.Gry.v};else if(y=="LbCl"){F=D.Yt(a.Lmnc.v,a.A.v,a.B.v)}else console.log(a); +if(isNaN(F.i))F.i=F.m=F.d=0;return F};D.V.HT=function(a){return{classID:"RGBC",Rd:{t:"doub",v:a.i},Grn:{t:"doub",v:a.m},Bl:{t:"doub",v:a.d}}}; +D.V.ahX=function(a,F,y,c){var Q=[],S=1/(y-0);for(var G=0;Gt)cQ[G]=255-(255-X)*be}}if(N)console.log("init",Date.now()-i);i=Date.now();if(Q*b>0){a2.set(eT); +D.AX.kS(a2,eT,new cJ(0,0,y,c),b)}if(d*q>0){a2.set(cQ);D.AX.kS(a2,cQ,new cJ(0,0,y,c),q)}if(N)console.log("blur",Date.now()-i); +i=Date.now();var i5=D.G(256),iz=D.G(256);for(var G=0;G<256;G++){var aL=G*(1/255),az=0;az=(1-Math.pow(1-aL,_))*255; +i5[G]=Math.max(0,Math.min(255,~~(az+.5)));az=Math.pow(aL,M)*255;iz[G]=Math.max(0,Math.min(255,~~(az+.5)))}var hu=new Uint8ClampedArray(F.buffer),aV=new Float32Array(32768); +for(var G=0;G<32768;G++){eM=Math.sqrt(G)*(1/128);if(ao>1)eM=(1-eM)*(ao-1)+1;else eM=eM*(ao-1)+1;aV[G]=eM}for(o=0; +o400)v++;var i=a,N=F,b=W,q=Math.floor(N.t/v),O=Math.floor(N.w/v); +a=D.G(q*O*4);D.scale.zh(i,N.t,N.w,a,q,O,1/v);W=D.G(q*O);D.scale.Ac(b,N.t,N.w,W,q,O,1/v);D.round(W,1); +var R=D.As(W,new cJ(0,0,q,O));if(R.ur())return 1;var k=Math.round((R.t+R.w)/2/15),L=Date.now(),C=D.G(q*O*4); +D.amz(a,C);var t=Int16Array,_=new t(q*O*24),M=new t(64),I=new t(64),j=new t(64),r=new t(64);for(var P=3; +P0){var P=Math.floor(G*e7),l=G-P*2*q; +ho.push({x:l-q,y:P-O,H:H[G],Vh:-1})}}ho.sort(function(dN,h0){return h0.H-dN.H});var eB=new Int32Array(q*O),et=[]; +for(var G=0;G>2]=iz+1}if(S)console.log(Date.now()-L,"copied back"); +L=Date.now();D.LK.pM(cQ,a2,h,null,1e3);if(S)console.log(Date.now()-L,"poisson smooth");L=Date.now(); +D.vD(cQ,h,c,Q);return 0};D.pq.O6=function(a,F,y,c,Q,S){return D.pq.vx(a+Q.x,F+Q.y,y,c)&&S[(F+Q.y)*y+(a+Q.x)]==-1?0:1e9}; +D.pq.a2G=function(a,F,y,c,top,Q,S,h){var d=Date.now(),W=[-1,0,0,-1,1,0,0,1],w=1e99,J=[],A=[],T=2*(h*2*3+h*2),o=null,v=0,i=0,N=0,b=1e99; +while(!0&&Date.now()1){if(a[G]==a[x]){var E=0; +E+=D.pq.if(_+I.x,M+I.y,_+k.x,M+k.y,y,c,F,Q);E+=D.pq.if(P+I.x,l+I.y,P+k.x,l+k.y,y,c,F,Q);J[L]=G;J[L+1]=x; +A[L]=E;A[L+1]=E;L+=2}else{var p=top[a[x]],f=C,H=0,g=0,B=0;C++;H+=D.pq.if(_+I.x,M+I.y,_+k.x,M+k.y,y,c,F,Q); +H+=D.pq.if(P+I.x,l+I.y,P+k.x,l+k.y,y,c,F,Q);g+=D.pq.if(_+p.x,M+p.y,_+k.x,M+k.y,y,c,F,Q);g+=D.pq.if(P+p.x,l+p.y,P+k.x,l+k.y,y,c,F,Q); +B+=D.pq.if(_+p.x,M+p.y,_+I.x,M+I.y,y,c,F,Q);B+=D.pq.if(P+p.x,l+p.y,P+I.x,l+I.y,y,c,F,Q);J[L]=G;J[L+1]=f; +A[L]=H;A[L+1]=H;L+=2;J[L]=x;J[L+1]=f;A[L]=g;A[L+1]=g;L+=2;J[L]=f;J[L+1]=h+1;A[L]=B;A[L+1]=0;L+=2}}}J[L]=h; +J[L+1]=G;A[L]=j;A[L+1]=0;L+=2;J[L]=G;J[L+1]=h+1;A[L]=r;A[L+1]=0;L+=2;t+=Math.min(j,r)}if(t>O)continue; +var U=D.Lm.Qw(C,L,h,h+1,J,A,O);if(U.hK=w){break}w=O; +a=q;if((N&3)==0){if(O*1.03>=b)break;b=O}if((N&3)==0){var aR=0*top.length;for(var G=0;GaR; +G++){if(a.indexOf(G)!=-1)continue;top.splice(G,1);for(var x=0;xG)a[x]--;G--}}}return a}; +D.pq.a5z=function(a,F,y,c,Q,S){for(var G=0;G>1)};D.pq.alG=function(a,F,y,c,Q,S){var top=[]; +for(var G=0;G<60;G++){var h=D.pq.d6(top,25,y,c,Q,a,F);if(h==null)break;else top.push(h)}if(top.length==0)return null; +var d=[];for(var G=0;G100){var h;h=D.pq.d6(top,0,y,c,Q,a,F,W,w); +if(h==null)return null;top.push(h);A=0}}d.push(J)}return{top:top,FF:d}};D.pq.if=function(a,F,y,c,Q,S,h,d){if(a==y&&F==c)return 0; +if(a<0||F<0||a>=Q||F>=S||y<0||c<0||y>=Q||c>=S||d[F*Q+a]!=-1||d[c*Q+y]!=-1)return 1e7;var W=F*Q+a<<2,w=c*Q+y<<2,J=h[W]-h[w],A=h[W+1]-h[w+1],T=h[W+2]-h[w+2]; +return 1+(J*J+A*A+T*T)};D.pq.vx=function(a,F,y,c){return a>=0&&a=0&&F=c)return Q+1}return Q};D.pq.cc=function(a,F,y,c,Q){var S=16,T=0;if(F-a<=S){y.push(99,a,F); +return}D.pq.zO(a,F,c,Q);var h=-1,d=-1;for(var G=4;G<24;G++){var W=Q[2*G+1]-Q[2*G];if(W>d){d=W;h=G}}var w=a+F>>1,J=D.pq.ao3(w,a,F,c,h),A=-1; +for(var G=a;G<=F;G++)if(c[24*G+h]==J){if(A==-1)A=G;T=G}if(a+8F-T)w=A;else if(T+1W)c[(S<<1)+1]=h}}}; +D.pq.MH=function(a,F,y){var c=0,G=0;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c; +G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c; +G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c; +G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c; +G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c; +G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c; +G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c; +G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c; +G++;c=y[a+G];y[a+G]=y[F+G];y[F+G]=c;G++};D.pq.jq=function(a,F,y,c){var Q=y+c>>>1,S=a[24*Q+F];while(y<=c){while(a[24*y+F]S)c--;if(y<=c){if(a[24*y+F]!=a[24*c+F])D.pq.MH(y*24,c*24,a);y++;c--}}return y};D.pq.ao3=function(a,F,y,c,Q){var S=0; +while(F!=y){S=D.pq.jq(c,Q,F,y);if(a>1; +G>0;G>>=1,Q--){for(S=0;S<$;S++){h=(S>>Q&1)!=0;if(h){a+=y+"["+S+"] = "+F+"["+(-G+S)+"] - "+F+"["+S+"]; "}else{a+=y+"["+S+"] = "+F+"["+(G+S)+"] + "+F+"["+S+"]; "}}c=F; +F=y;y=c;a+="\n"}console.log(a)};D.pq.adg=function($,a,F){var y=a,c=F,Q=y,S=0,G,d,W;while($>>S!=2)S++; +var h=S;for(G=$>>1;G>0;G>>=1,S--){for(d=0;d<$;d++){W=(d>>S&1)!=0;if(W)c[d]=y[-G+d]-y[d];else c[d]=y[G+d]+y[d]}Q=y; +y=c;c=Q}if((h&1)==1)for(G=0;G<$;G++)F[G]=y[G]};D.Mf={};D.Mf.nJ=function(a,F,y,c,Q,S,h,d,W){var w=Date.now(),J=new Uint32Array(a.buffer),A=new Uint32Array(F.buffer),T=h/y,o=d/c,v=1/T,i=1/o,N=new Float64Array(2),b=3,q=1/b,O=1/(b*b),R=0,k=0,L=y,C=c; +if(Q){R=Q.x;k=Q.y;L=Q.t;C=Q.w}for(var t=0;ty)y=S;if(hQ)Q=h}return[F,c,y,Q]};D.a9R=function(a,F,y,c,Q){function S(X,c9,hW,cY){return Math.sqrt((X-hW)*(X-hW)+(c9-cY)*(c9-cY))}function h(X,c9){return X>=0&&X=0&&c9=F)return F-1;return X}function W(X){if(X<0)return 0;if(X>=y)return y-1;return X}function w(G,X){var c9=X[3]*(1/255),hW=c[G]+X[0]*c9; +if(hW>255)hW=255;c[G]=hW;hW=c[G+1]+X[1]*c9;if(hW>255)hW=255;c[G+1]=hW;hW=c[G+2]+X[2]*c9;if(hW>255)hW=255; +c[G+2]=hW}function J(X,c9,hW){if(!f(X,c9))return;if(hW[3]<0)hW[3]=0;w((c9*F+X)*4,hW)}function A(X){var c9=X.slice(0,3); +c9[3]=0;return c9}var T=F/800;function o(X){return Math.round(X*T)}function v(){for(var G=0;G<=300;G++){g[G]=i(G)}}function i(y){var X=.8,c9=.2,hW=X*c9,cY=y/60%2-1,ho=hW*(1-cY*cY),e7=c9-hW,b2; +if(y<60){b2=[hW+e7,ho,0]}else if(y<120){b2=[ho,hW,0]}else if(y<180){b2=[0,hW,ho]}else if(y<240){b2=[0,ho,hW]}else if(y<300){b2=[ho,0,hW]}else{b2=[hW,0,ho]}return[(b2[0]+e7)*255,(b2[1]+e7)*255,(b2[2]+e7)*255]}function N(y){return g[~~y]}function b(X){return 1-q(X)}function q(X){return X-~~X}function O(X,c9,hW,cY){E(X,c9,hW,0,c9+1,1,cY)}function R(X,c9,hW,cY,ho,e7){E(X,c9,hW,0,cY,1,ho,e7)}function k(X){for(var G=0; +Gc9||aL<=c9-ho)break;var az=(aL-c9+ho)/ho;eM[3]=eT-cY*(e7==1?az:Math.pow(az,e7));w((iz*F+hA)*4,eM)}e5=W(ao+be); +for(var iz=e5;iz>i5;iz--){var aL=S(hA,iz,et,ao);if(aL>c9||aL<=c9-ho)break;var az=(aL-c9+ho)/ho;eM[3]=eT-cY*(e7==1?az:Math.pow(az,e7)); +w((iz*F+hA)*4,eM)}}if(b2>0){E(X,c9+b2,eM,eM[3],b2,1,0,0,!0)}if(aB>0){E(X,c9-ho,H(hW),-hW[3],aB,1,0,0,!0)}}function t(X,c9,hW,cY,ho,e7){E(X,c9,hW,hW[3],c9+1,1,cY,ho,e7)}function _(X,c9,hW,cY,ho){if(ho==null)ho=!1; +var e7=X.x,b2=X.y;cY*=U;if(!ho){c9=p(c9);hW=p(hW)}var aB=d(e7-c9),eB=d(e7+c9);for(var et=aB;etc9||hA<=c9-hW)break;var gH=(c9-hA)/hW,be=N(300*gH); +be[3]=cY;w((a2*F+et)*4,be)}eT=W(b2+eM);for(var a2=eT;a2>cQ;a2--){var hA=S(et,a2,e7,b2);if(hA>c9||hA<=c9-hW)break; +var gH=(c9-hA)/hW,be=N(300*gH);be[3]=cY;w((a2*F+et)*4,be)}}}function M(B,X){var c9=B.fU,hW=B.Xc,cY=X.slice(0),ho=X[3]*U,e7=Math.abs(hW.y-c9.y)>Math.abs(hW.x-c9.x); +if(e7){var b2=c9.x;c9.x=c9.y;c9.y=b2;b2=hW.x;hW.x=hW.y;hW.y=b2}if(c9.x>hW.x){var b2=c9;c9=hW;hW=b2}var aB=hW.x-c9.x,eB=hW.y-c9.y,et=aB==0?1:eB/aB,ao=Math.round(c9.x),eM=c9.y+et*(ao-c9.x),eT=b(c9.x+.5),cQ=ao,a2=~~eM; +if(e7){cY[3]=ho*b(eM)*eT;J(a2,cQ,cY);cY[3]=ho*q(eM)*eT;J(a2+1,cQ,cY)}else{cY[3]=ho*b(eM)*eT;J(cQ,a2,cY); +cY[3]=ho*q(eM)*eT;J(cQ,a2+1,cY)}var hA=eM-et;ao=Math.round(hW.x);eM=hW.y+et*(ao-hW.x);eT=q(hW.x+.5); +var gH=ao,be=~~eM;if(e7){cY[3]=ho*b(eM)*eT;J(be,gH,cY);cY[3]=ho*q(eM)*eT;J(be+1,gH,cY)}else{cY[3]=ho*b(eM)*eT; +J(gH,be,cY);cY[3]=ho*q(eM)*eT;J(gH,be+1,cY)}if(e7){for(var e5=cQ+1;e5<=gH-1;e5++){cY[3]=ho*b(hA);J(~~hA,e5,cY); +cY[3]=ho*q(hA);J(~~hA+1,e5,cY);hA+=et}}else{for(var e5=cQ+1;e5<=gH-1;e5++){cY[3]=ho*b(hA);J(e5,~~hA,cY); +cY[3]=ho*q(hA);J(e5,~~hA+1,cY);hA+=et}}}function I(X,c9,hW,cY){for(var G=0;G<4;G++){var ho=X.J8(c9+1.3*G,hW); +M(ho,cY,1)}}function iS(X,c9){this.x=Math.round(X);this.y=Math.round(c9)}var j=Math.PI/180;iS.prototype.J8=function(X,c9){X=X*j; +var hW=this.x+c9*Math.cos(X),cY=this.y+c9*Math.sin(X);return new r(this.x,this.y,hW,cY)};iS.prototype.ac9=function(X,c9){X=X*j; +var hW=this.CZ+c9*Math.cos(X),cY=this.aov+c9*Math.sin(X);return new iS(hW,cY)};function r(X,c9,hW,cY){this.fU=new iS(X,c9); +this.Xc=new iS(hW,cY)}r.prototype.zu=function(X){var c9=X*this.fU.x+(1-X)*this.Xc.x,hW=X*this.fU.y+(1-X)*this.Xc.y; +return new iS(c9,hW)};var s=L,e=t,P=O,l=R,x=_,E=C,p=o,f=h,H=A,g=[];v();for(var G=0;GS){Q=G;S=Math.abs(a[G][c])}D.D3.ajG(a,c,Q);for(var G=c+1;G=0;G--){if(a[G][G]==0)return 1;var W=a[G][y]/a[G][G];F[G]=W;for(var d=G-1;d>=0;d--){a[d][y]-=a[d][G]*W; +a[d][G]=0}}return 0};D.D3.ajG=function(a,F,y){var c=a[F];a[F]=a[y];a[y]=c};D.D3.amb=function(a){var F=a.length,y=D.D3.jG(F,F); +for(var G=0;G255?255:F};D.Ux.transform=function(a,F,y){var c=D.Ux.k3,Q=a.i.length;for(var G=0;G>1]=T;W[d+1]=h[J];h[J]=d+1;d+=4;W[d]=J;w[d+2>>1]=o;W[d+1]=h[A];h[A]=d+1;d+=4}return{NQ:W,a0q:w,aoF:h}}; +D.Lm.Qw=function(a,F,y,c,Q,S,h){var d=1,W=D.Lm.dP(a,F,y,c,Q,S),w=W.NQ,J=W.a0q,A=W.aoF,T=new Uint32Array(a),o=new D.Lm.GA(a),i=1,R=0; +o.push(y);o.push(c);var v=new D.Lm.GA(a),N=new Uint8Array(a),b=new Uint32Array(a);N[y]=1;N[c]=2;var q=new Uint32Array(a),O=new Uint32Array(a); +O[y]=O[c]=0;q[y]=q[c]=1;while(!0){var k=-1,j=0,P=1e30;while(!o.uW()&&k==-1){var L=o.top(),C=N[L],t=A[L]-1; +while(t!=-1){var _=w[t],M=N[_],I=t^C-1<<2;if(J[I+2>>1]!=0){if(M==0){D.Lm.Ox(L,t,_,N,b,O,q);o.push(_)}else if(M==C&&q[_]<=q[L]&&O[_]>O[L])D.Lm.Ox(L,t,_,N,b,O,q); +else if(M!=C){k=I}}t=w[t+1]-1}if(k!=-1)break;o.pop()}if(k==-1){break}i++;var r=k;while(r!=-1){T[j]=r; +j++;r=b[w[r^4]]-1}var s=j>>1;for(var G=0;G>1]);R+=P;if(R>=h)return{Th:null,hK:R};for(var G=0; +G>1]-=P;J[x+2>>1]+=P;if(J[l+2>>1]==0&&N[L]==N[_]){if(N[L]==1){b[_]=0; +v.push(_)}if(N[L]==2){b[L]=0;v.push(L)}}}while(!v.uW()){var L=v.pop(),C=N[L],t=A[L]-1,E=C==1?4:0,p=0,f=0,H=1e9; +while(t!=-1){var _=w[t],g=t^4,I=t^E;if(N[_]==C&&J[I+2>>1]>0&&D.Lm.abc(_,y,c,b,w,i,q,O)+1>1]>0){o.push(_)}if(b[_]==t+1){b[_]=0;v.push(_)}}t=w[t+1]-1}N[L]=0;o.remove(L)}}var B=[]; +for(var G=0;G>1)}if(N[_]==1&&N[L]!=1){B.push(F+G>>1)}}return{Th:B,hK:R}}; +D.Lm.Ox=function(a,F,y,c,Q,S,h){c[y]=c[a];Q[y]=F+1;S[y]=S[a]+1;h[y]=h[a]};D.Lm.abc=function(a,F,y,c,Q,S,h,d){var W=a,w=c[a]-1,J=0; +while(w!=-1&&h[a]!=S){a=Q[w^4];w=c[a]-1;J++}if(w==-1&&a!=F&&a!=y)return 1e9;var A=d[a]+J;J=0;w=c[W]-1; +while(W!=a){d[W]=A-J;J++;h[W]=S;W=Q[w^4];w=c[W]-1}return A};D.Lm.a8j=function(a,F,y,c,Q,S){var h=D.Lm.dP(a,F,y,c,Q,S),d=h.NQ,W=h.a0q,w=h.aoF,J=0,A=0,T=new Uint32Array(a*2),o=new D.Lm.SJ(a),v=0; +while(!0){o.reset();o.push(y);for(var G=0;G>1]>0&&v!=y){T[v<<1]=i+1;T[(v<<1)+1]=N;o.push(v)}N=d[N+1]-1}if(T[c<<1]!=0){break}}if(T[c<<1]==0){break}var b=1e30; +v=c;while(!0){var q=T[v<<1]-1;if(q==-1)break;var O=T[(v<<1)+1];b=Math.min(b,W[O+2>>1]);v=q}v=c;while(!0){var q=T[v<<1]-1; +if(q==-1)break;var O=T[(v<<1)+1],R=O^4;W[O+2>>1]-=b;W[R+2>>1]+=b;v=q}J+=b}var k=[];for(var G=0;G>1)}if((T[v<<1]!=0||v==y)&&T[q<<1]==0&&q!=y){k.push(F+G>>1)}}return{Th:k,hK:J}}; +D.Lm.SJ=function(a){a|=a>>1;a|=a>>2;a|=a>>4;a|=a>>8;a|=a>>16;this.Qy=new Uint32Array(a+1);this.cD=a; +this.n6=0;this.zG=0};D.Lm.SJ.prototype={push:function(a){var F=this.zG;this.Qy[F]=a;this.zG=F+1&this.cD},pop:function(){var a=this.n6,F=this.Qy[a]; +this.n6=a+1&this.cD;return F},uW:function(){return this.n6==this.zG},reset:function(){this.n6=0;this.zG=0}}; +D.Lm.GA=function(a){a|=a>>1;a|=a>>2;a|=a>>4;a|=a>>8;a|=a>>16;this.Qy=new Uint32Array(a+1);this.SK=new Uint32Array(a+1); +this.cD=a;this.n6=0;this.zG=0};D.Lm.GA.prototype={top:function(){return this.Qy[this.n6]},a4A:function(){return this.Qy[this.zG]},push:function(a){if(this.SK[a]!=0)return; +this.SK[a]=this.zG+1;var F=this.zG;this.Qy[F]=a;this.zG=F+1&this.cD},pop:function(){var a=this.n6,F=this.Qy[a]; +this.SK[F]=0;this.n6=a+1&this.cD;return F},uW:function(){return this.n6==this.zG},remove:function(a){var F=this.SK[a]-1; +if(F==-1)return;this.SK[a]=0;if(F==this.n6){this.pop();return}var y=this.pop();this.Qy[F]=y;this.SK[y]=F+1},sH:function(G){return G+this.cD+1&this.cD}}; +D.Lm.Go=function(a,F,y){var c=D.Lm.jq(a,F,y);if(F>>1]; +while(F<=y){while(a[F]c)y--;if(F<=y){D.Lm.MH(a,F,y);F++;y--}}return F};D.Lm.MH=function(a,F,y){var c=a[F]; +a[F]=a[y];a[y]=c};D.Km={};D.Km.a3X=function(a){for(var G=0;G.01){D.Km.Vj(a,G); +continue}var A=D.Km._s(W);D.o.q(F,A);D.Km.Vn(W,[Math.min(A[0],A[2]),Math.min(A[1],A[3]),Math.max(A[0],A[2]),Math.max(A[1],A[3])]); +if(J==2){var T=D.Km.J9(W),o=new hg(F[0],F[1],F[3],F[4],0,0);o.p0();if(o.re==0){T.push(T.shift());o.rotate(Math.PI/2); +o.p0()}if(o.re<0){var v=T[0];T[0]=T[1];T[1]=v;v=T[2];T[2]=T[3];T[3]=v}if(o.XL<0){var v=T[0];T[0]=T[3]; +T[3]=v;v=T[1];T[1]=T[2];T[2]=v}if(c)for(var i=0;i<4;i++)T[i]=T[i]*h;D.Km.Z_(W,T)}if(J==4){W.keyOriginLineWeight.v*=h; +var N=D.Km.Nj(W);D.o.q(F,N);D.Km.a3g(W,N)}}};D.Km.X7=function(a,F){var y=F.g;for(var G=0;G=0}; +D.M.PH=function(a){var F={},y=null,c=0,Q={M:2,L:2,Q:4,C:6};for(var G=0;G5||g.type==0||g.type==3)continue;var B=g.yp.pI(g.W)||g.tT.pI(g.tT);if(!B){var r=g.yp.x*(g.W.y-g.tT.y)+g.W.x*(g.tT.y-g.yp.y)+g.tT.x*(g.yp.y-g.W.y); +if(Math.abs(r)<1e-6)B=!0}if(B)g.type--}return P};D.M.A8=function(){function a(c,Q,S,h){if(!h&&c.tT.pI(c.W)&&Q.yp.pI(Q.W)){S.I.push(Q.W.x,Q.W.y); +S.F.push("L")}else{S.I.push(c.tT.x,c.tT.y,Q.yp.x,Q.yp.y,Q.W.x,Q.W.y);S.F.push("C")}}function F(c,Q,G,S,h,d){var W=Q[G]; +c.I.push(W.W.x,W.W.y);c.F.push("M");for(var w=G;w5)continue;var h=c[G].length;if(h==0)continue; +if(G==c.length-1)break;var d=c[G].type==3;F(S,c,G+1,h,d,Q);if(!d)S.F.push("Z");G+=h}return S}return y}(); +D.M.a66=function(a){var F=a.I,y=[],c,Q=0;for(var G=0;G>>1}}return Q8)w=D.M.qG(w,c,W[1]);if(w.length<=4)continue;for(var T=2;T=0;T--)if(d[T].Z5.pE(o)){d[G].parent=T; +break}}if(Q){console.log("checking parents",Date.now()-S);S=Date.now()}return d};D.M.apX=function(a,F,y){var c=F*y,Q=new Uint16Array(F*y),h=0; +for(var G=0;G=3||o)S[G]=1}var i=[];for(var d=1;d>>1); +i.push([N,b]);D.M.Pp(Q,F,y,W,d)}}return i};D.M.Pp=function(a,F,y,c,Q){var S=[Q*F+c],h=a[Q*F+c];a[Q*F+c]=65535; +while(S.length!=0){var G=S.pop();a[G]=0;if(a[G+F]==h){S.push(G+F);a[G+F]=65535}if(a[G-F]==h){S.push(G-F); +a[G-F]=65535}if(a[G-1]==h){S.push(G-1);a[G-1]=65535}if(a[G+1]==h){S.push(G+1);a[G+1]=65535}}};D.M.ab6=function(a,F,y,c,Q){var S=[0,-1,1,0,0,1,-1,0],J=1; +function h(T,o,J){var G=w*F+W,v=0;if(J==0)v=G-F;else if(J==1)v=G;else if(J==2)v=G-1;else if(J==3)v=G-F-1; +return a[v]}var d=[],W=c,w=Q,A=h(W,w,J);do{d.push(W,w);W+=S[J*2];w+=S[J*2+1];if(h(W,w,J)!=A)J=J+1&3; +else if(h(W,w,J+3&3)!=A)J=J;else if(h(W,w,J+2&3)!=A)J=J+3&3}while(W!=c||w!=Q);return d};D.M.qG=function(a,F,y){var c=a.length-2; +if(y&&y.length!=0){var Q=y[0]*2,S=y[y.length-1]*2,h=Q==0?c:Q-2,d=a.slice(S);for(var G=0;GT||b==T&&N>o){T=b; +A=G;o=N}}if(T=0},F=function(c,Q,S,h,d,W,w,J){var A=w-S,T=J-h,o=d-S,v=W-h,i=c-S,N=Q-h,b=A*A+T*T,q=A*o+T*v,O=A*i+T*N,R=o*o+v*v,k=o*i+v*N,L=1/(b*R-q*q),C=(R*O-q*k)*L,t=(b*k-q*O)*L; +return C>=0&&t>=0&&C+t<1},y=function(c){var $=c.length>>>1,G=0;if($<3)return[];var Q=[],S=[];for(var G=0; +G<$;G++)S.push(G);var h=$;while(h>3){var d=S[(G+0)%h],W=S[(G+1)%h],w=S[(G+2)%h],J=c[2*d],A=c[2*d+1],T=c[2*W],o=c[2*W+1],v=c[2*w],i=c[2*w+1],N=!1; +if(a(J,A,T,o,v,i)){N=!0;for(var b=0;b3*h)break}Q.push(S[0],S[1],S[2]); +return Q};return y}();D.M.akE=function(a,F){var y={},c={F:[],I:[]};for(var G=0;Gy){var S=y; +y=F;F=S}if(Q[F+","+y])return;Q[F+","+y]=!0;c.F.push("M","L");c.I.push(a[F],a[F+1],a[y],a[y+1])};D.M.gU=function(a,F){var y=[],c=a.length; +for(var G=0;G=0;G--){var h=Math.pow(10,G);if(5*h*a<=S){c=5*h; +Q=10;break}if(2*h*a<=S){c=2*h;Q=4;break}if(1*h*a<=S){c=1*h;Q=10;break}}if(c==0){c=1;Q=10}var d=Math.ceil(c*a),W=D.G(d*D.Eu._c*4); +D.Jx(W,4278190080|y);for(var G=0;G1||c==1&&d>20)for(var G=1;G>16&255;a[F+1]=y>>8&255;a[F+2]=y&255}; +D.Eu.aau=function(a,F,y,c,Q,S,h){var d=a.Ed.t,W=a.Ed.w,w=D.Eu._c,J=F&255,A=F>>8&255,T=F>>16&255;F=Math.round(J*.6)<<16|Math.round(A*.6)<<8|Math.round(T*.6); +D.Eu.aes(Math.round(J*.8)<<16|Math.round(A*.8)<<8|Math.round(T*.8),y);var o=a.X,v=a.B,i=a.JX;for(var N=0; +N<2;N++){var b=N==0?S:h;a.X=b[0];a.B=b[1];a.JX=0;var q=this.a3U(a.X,F,y),O=a.Mz(0,0),R=a.Mz(d,W),k=Math.floor(O.x/q.step)*q.step,L=Math.ceil(R.x/q.step)*q.step,C=Math.floor(O.y/q.step)*q.step,t=Math.ceil(R.y/q.step)*q.step,_=a.Dz(k,C),M=a.Dz(L,C),I=q.step*a.X,j=Math.ceil(I); +if(N==1){var r=q.oM;q.oM=D.G(r.length*4);D.o.Cd(r,q.oM,j,w)}var s=N==0?a.df.data:a.nP.data,e=new cJ(0,0,[d,w][N],[w,W][N]),P=new cJ(0,0,[j,w][N],[w,j][N]),l=new cJ([0,Math.round(w*.2)][N],[Math.round(w*.08),0][N],D.Eu.YZ,D.Eu.YZ),x=(N==0?L-k:t-C)/q.step; +for(var G=0;G>>24;v+=L;i+=L*(k>>>16&255);N+=L*(k>>>8&255); +b+=L*(k&255)}if(v!=0){var C=1/v;c[T*Q+o]=v/(q*O)<<24|i*C<<16|N*C<<8|b*C}else c[T*Q+o]=0}};D.Z={};D.Z.a3q=function(a,F,y){var c=128,G=0,Q=y.t,S=y.w; +for(var h=0;h=c&&(d==0||a[G-1]>>2]}}}; +D.Z.akT=function(a,F,y,c,Q,S){var h=y.t,d=y.w,W=0,w=0,J=h,A=d;if(c){W=c.x-y.x;w=c.y-y.y;J=W+c.t;A=w+c.w}var T=new Uint8Array(F.buffer),o=new Uint32Array(F.buffer); +for(var v=w;v>>1<<24|255;else o[G]=255<<24|(N<<16|N<<8|N)}}; +D.RU={};D.RU.k4=function(a,F,y){var c,Q;if(y=="front"){c=a.rect.clone();Q=D.RU.aed}if(y=="union"){c=a.rect.jD(F.rect); +Q=D.RU.jD}if(y=="difference"){c=F.rect.clone();Q=D.RU.apo}if(y=="intersection"){c=a.rect.Df(F.rect); +Q=D.RU.Df}if(y=="xor"){c=a.rect.jD(F.rect);Q=D.RU.a6R}if(c.ur())return null;var S=D.G(c.L());D.oR(F.channel,F.rect,S,c); +var h=D.G(c.L());D.oR(a.channel,a.rect,h,c);Q(h,S,S);var d=D.As(S,c);if(d.ur())return null;if(!d.pI(c)){var W=D.G(d.L()); +D.oR(S,c,W,d);S=W;c=d}return{channel:S,rect:c}};D.RU.aed=function(a,F,y){for(var G=0;GQ+c)break}}; +D.vP.prototype.a8s=function(a,F,y,c){var Q=Date.now(),S=1.96,d=0;if(y==null)y=5e-5;if(c==null)c=1e9; +var h=1-S,$=this.rows,W=this.v$,w=this.we,J=this.Ci,A=this.wR;while(!0){var T=0;for(var G=0;G<$;G++){var o=G*3,v=F[o],i=F[o+1],N=F[o+2],b=w[G],q=w[G+1]; +for(var O=b;OQ+c)break}};D.H1={};D.H1.Ka=function(a,F,y){return{t:"Objc",v:{classID:"CrPt",Hrzn:{t:"doub",v:a},Vrtc:{t:"doub",v:F},Cnty:{t:"bool",v:y}}}}; +D.H1.q=function(a,F){for(var G=0;G=F[F.length-1])return y[F.length-1];var G=1;while(F[G]=F[F.length-1])return y[F.length-1]; +var G=1;while(F[G]100)Q[1]=.4*Q[1];if(Q[2]>150)Q[1]=.7*Q[2]}return Q};D.H1.fn=function(a,F){var y=new Uint8Array(a.length); +for(var G=0;Gi){var b=N;N=i;i=b}F[G]=T+D.style.aoA(i,N,o)}};D.style.aoA=function(a,F,y){return(.5-y)*a};D.style.Dr=function(a,F,y,c){var Q=new Int16Array(F*y*2); +D.style.afj(a,Q,F,y,128);return Q};D.style.ady=function(a,F,y,c){var Q=y*c;for(var G=0;G=0;h--)D.style.g8(F,a,y,G+h<<1,1)}for(var S=c-2; +S>=0;S--){var G=S*y;for(var h=0;h<=y-1;h++)D.style.wJ(F,a,y,G+h<<1,1);for(var h=1;h<=y-1;h++)D.style.g8(F,a,y,G+h<<1,-1); +for(var h=y-2;h>=0;h--)D.style.g8(F,a,y,G+h<<1,1)}};D.style.g8=function(a,F,y,c,Q){var S=(c>>>1)+Q<<1,h=a[c],d=a[c+1],W=a[S]+Q,w=a[S+1],J=W*W+w*w,A=h*h+d*d; +if(w!=16383&&(h==16383||Math.sqrt(J)+(.5-F[(c>>>1)+w*y+W]*(1/255))>>1)+d*y+h]*(1/255)))){a[c]=W; +a[c+1]=w}};D.style.wJ=function(a,F,y,c,Q){var S=(c>>>1)+Q*y<<1,h=a[c],d=a[c+1],W=a[S],w=a[S+1]+Q,J=W*W+w*w,A=h*h+d*d; +if(W!=16383&&(h==16383||Math.sqrt(J)+(.5-F[(c>>>1)+w*y+W]*(1/255))>>1)+d*y+h]*(1/255)))){a[c]=W; +a[c+1]=w}};D.style.alA=function(a,F,y,c){var Q=y*c;for(var G=0;G=0;h--)D.style.ck(F,a,y,G+h<<1,1)}for(var S=c-2;S>=0;S--){var G=S*y;for(var h=0;h<=y-1; +h++)D.style.jo(F,a,y,G+h<<1,1);for(var h=1;h<=y-1;h++)D.style.ck(F,a,y,G+h<<1,-1);for(var h=y-2;h>=0; +h--)D.style.ck(F,a,y,G+h<<1,1)}};D.style.ck=function(a,F,y,c,Q){var S=(c>>>1)+Q<<1,h=a[c],d=a[c+1],W=a[S]+Q,w=a[S+1],J=W*W+w*w,A=h*h+d*d; +if(w!=16383&&(h==16383||J>>1)+Q*y<<1,h=a[c],d=a[c+1],W=a[S],w=a[S+1]+Q,J=W*W+w*w,A=h*h+d*d; +if(W!=16383&&(h==16383||J=0;d--)F[d+S-y]=Math.min(F[d+S-y],F[d+S-y+1]);for(var W=c-2;W>=0;W--){var G=W*y+y-1;F[G]=Math.min(F[G],Math.min(F[G+y]+1,F[G+y-1]+Math.SQRT2)); +for(var d=y-2;d>=1;d--){var w=F[--G],J=Math.min(F[G+1]+1,Math.min(F[G+y-1]+Math.SQRT2,Math.min(F[G+y]+1,F[G+y+1]+Math.SQRT2))); +if(J=0;W--){if(a[W*y+h]>Q)d=0;else d++;S[W]=d}d=y+c;for(var W=0; +WQ)d=0;else d++;F[W*y+h]=d0)a[G]=Math.max(0,Math.min(255,c+F*2*(D.style.lv(G)-128)))}else for(var G=0; +G0)a[G]=Math.max(0,Math.min(255,c+Math.min(c*3,F*2*(D.style.lv(G)-128))))}}; +D.style.lv=function(a){a=a^61^a>>16;a=a+(a<<3);a=a^a>>4;a=a*668265261;a=a^a>>15;return a&255};D.I$={}; +D.I$.EP=function(a,F,y){var c=a.canvas,Q=z.K(),S=Math.floor;if(c.width!=S(F*Q)||c.height!=S(y*Q))z.Kb(c,F,y,a)}; +D.I$.R7=function(a,F,y,c,Q,S){D.I$.EP(a,F,y);if(S==null)S=!1;var h=Q.channel,d=Q.rect,W=!Q.isEnabled; +F=Math.floor(F*z.K());y=Math.floor(y*z.K());if(F*y==0)return;var w=a.createImageData(F,y),J=w.data,A=1/F,T=1/y; +for(var G=0;G=d.x+d.t||b=d.y+d.w)q=Q.color;else q=h[(b-d.y)*d.t+(N-d.x)];q=255*(255-Q.Dt)+q*Q.Dt>>>8; +if(S)q=170+Math.round(.4*(q-170));J[i]=q;J[i+1]=q;J[i+2]=q;J[i+3]=255}a.putImageData(w,0,0);if(W)D.I$.sg(a,F,y)}; +D.I$.x4=[];D.I$.aq4=function(a,F,y,c){var Q,S,h,d=z.K();F=Math.floor(d*F);y=Math.floor(d*y);Q=Math.ceil(Math.max(F,y)*.35); +S=F-Q;h=y-Q;var W=D.I$.x4[Q];if(W==null){var w=z.z("canvas"),J=w.getContext("2d");w.width=w.height=Q; +J.fillStyle="#eeeeee";J.fillRect(0,0,Q,Q);var A=Math.round(Q*.27),T=J.lineWidth=Math.max(1,Math.round(Q*.12)),o=T/2; +J.strokeRect(1+o,1+o,Q-T-2,Q-T-2);J.strokeRect(A+o,A+o,Q-A-A-T,Q-A-A-T);W=D.I$.x4[Q]=J.getImageData(0,0,Q,Q)}a.putImageData(W,S,h)}; +D.I$.Ah=[];D.I$.agN=function(a,F,y){var c,Q,S,h=z.K();F=Math.floor(h*F);y=Math.floor(h*y);c=Math.ceil(Math.max(F,y)*.35); +Q=F-c;S=y-c;var d=D.I$.Ah[c];if(d==null){var W=z.z("canvas"),w=W.getContext("2d");W.width=W.height=c; +w.fillStyle="#eeeeee";w.fillRect(0,0,c,c);w.lineWidth=1;w.strokeRect(2.5,2.5,c-5,c-5);var J=w.createImageData(3,3); +D.Jx(J.data,4278190080);J.data[4*4]=J.data[4*4+1]=J.data[4*4+2]=238;w.putImageData(J,1,1);w.putImageData(J,c-4,1); +w.putImageData(J,1,c-4);w.putImageData(J,c-4,c-4);d=D.I$.Ah[c]=w.getImageData(0,0,c,c)}a.putImageData(d,Q,S)}; +D.I$.akc=function(a,F,y,c,Q){D.I$.EP(a,F,y);F=Math.floor(F*z.K());y=Math.floor(y*z.K());var S=F/c.t; +if(F*y==0)return;a.fillStyle="#999999";a.setTransform(1,0,0,1,0,0);a.clearRect(0,0,F,y);var h=D.I$.uT; +if(h==null){h=D.I$.uT=JSON.parse(JSON.stringify(aX.ln.default));h.strokeEnabled.v=!0}h.strokeStyleLineWidth.v.val=1*z.K()/S; +a.fillStyle="#ffffff";a.scale(S,S);D.A.i9(Q.g,a,0,0);D.A.i9(Q.g,a,0,0,h)};D.I$.z8=null;D.I$.CG=function(a,F,y,c,Q,S,h,d){D.I$.EP(a,F,y); +F=Math.floor(F*z.K());y=Math.floor(y*z.K());if(F*y==0)return;var W=Math.max(F,y),w=D.I$.z8;if(w==null||w.width=v||k=N){J[O]=L;J[O+1]=L;J[O+2]=L;J[O+3]=255}else{var C=(k-S.y)*S.t+(R-S.x)<<2,t=Q[C+3]*(1/255); +J[O]=Q[C+0]*t+L*(1-t);J[O+1]=Q[C+1]*t+L*(1-t);J[O+2]=Q[C+2]*t+L*(1-t);J[O+3]=255}}if(d!=null)for(var G=0; +G5||S.type==0||S.type==3)continue;if(F!=null&&F.indexOf(Q)==-1)continue; +if(y!=null&&y.indexOf(G)==-1)continue;c.push(S.yp.x);c.push(S.yp.y);c.push(S.W.x);c.push(S.W.y);c.push(S.tT.x); +c.push(S.tT.y)}return c};D.A.dE=function(a,F,y,c){var Q=0,S=-1;for(var G=0;G5||h.type==0||h.type==3)continue;if(y!=null&&y.indexOf(S)==-1)continue; +if(c!=null&&c.indexOf(G)==-1)continue;h.yp.Xo(a[Q],a[Q+1]);h.W.Xo(a[Q+2],a[Q+3]);h.tT.Xo(a[Q+4],a[Q+5]); +Q+=6}};D.A.dc=function(a,F,y,c){var Q=D.A.t3(a,y,c);D.M.q(Q,F,Q);D.A.dE(Q,a,y,c)};D.A.apH=function(a,F,y,c){var Q=D.A.t3(a,y,c); +D.o.q(F,Q);D.A.dE(Q,a,y,c)};D.A.a38=function(a,F,y,c){if(y==null&&c==null){var Q=D.A.aa9(a,40);for(var G=0; +G5){y.push(JSON.parse(JSON.stringify(c)));continue}var Q=D.A.a13(a,G+1,c.length); +Q=D.M.ru(Q,F);var S=D.A.a5p(Q);G+=c.length;c=JSON.parse(JSON.stringify(c));c.length=S.length;y.push(c); +for(var h=0;h5)continue;var F=a[G].length;if(!(F==4||F==6||F==8)){G+=F; +continue}for(var y=0;y5)continue; +if((d.type==0||d.type==3)&&d.oa!=-1)S++;if(F!=null&&F.indexOf(S)==-1)continue;if(G==a.length-1)break; +var W=d.type==3,w=d.length,J=d.oa,A=D.A.ag1(a,G+1,w,W);if(Q==null)Q=A;else if(y)Q=c(Q,A);else if(h){if(F!=null||J==0||J==-1||J==2)Q=c(Q,A); +else if(J==1)Q=Q;else if(J==3){Q=A;h=!1}}else{if(F!=null||J==0||J==-1||J==1)Q=c(Q,A);else if(J==2)Q=Q; +else if(J==3)Q=Q.Df(A)}G+=w}if(Q==null||Q.t<0||Q.w<0)Q=new cJ(0,0,0,0);return Q};D.A.a0v=new Float64Array(4); +D.A.ag1=function(a,G,F,y){var c=D.A.a0v;c[0]=1e30;c[1]=1e30;c[2]=-1e30;c[3]=-1e30;var Q=a[G+F-1];if(!y)D.A.M2(Q.W.x,Q.W.y,Q.tT.x,Q.tT.y,a[G].yp.x,a[G].yp.y,a[G].W.x,a[G].W.y,c); +for(var S=G;SA)A=L;if(CT)T=C}if(wW[2])W[2]=A; +if(T>W[3])W[3]=T};D.A.Mx=function(a,F){var y=a.length-3,c=F%y,Q=Math.floor(c);if(F<0||Q>=y)return null; +var S=a[3+Q],h=a[3+(Q+1)%y],d=S.W,W=S.tT,w=h.yp,J=h.W,A=c-Q,T=1-A,o=T*T*T*d.x+3*T*T*A*W.x+3*T*A*A*w.x+A*A*A*J.x,v=T*T*T*d.y+3*T*T*A*W.y+3*T*A*A*w.y+A*A*A*J.y; +return new iS(o,v)};D.A.cH=function(a){var F=2,y=D.A.N_(a),c=!1;for(var G=2;G1)a=D.A.iV(a);var S=D.M.A8(a);return{amM:Typr.U.pathToSVG({crds:S.I,cmds:S.F},F),sb:c?1:0}}; +D.A.iV=function(a){D.A.YC();var F,y=D.A.rm(a),c=[];for(var G=0;G=0;G--){var d=h[G][0],W=d.hitTest(S,Q);if(W!=null)return{VS:G,YB:y?W.location.index:null}}return{VS:-1}}; +D.A.u1=function(a,F,y){var c=[[],[],[]];for(var G=0;G5||Q.type==0||Q.type==3)continue; +var S=y==null?!0:y.indexOf(G)!=-1;if(F.t$(Q.W))c[0].push(G);if(F.t$(Q.yp)&&S)c[1].push(G);if(F.t$(Q.tT)&&S)c[2].push(G)}return c}; +D.A.afP=function(a,F,y){var c=y.slice(0),Q=[null,null],S=-1,d=null;for(var G=2;G=F)return c; +c++}return c};D.A.Wx=function(a,F){var y=-1,c=0;for(var G=0;G180?360-v:v; +if(i5)continue; +var S=a[G].length,h;if(G==a.length-1)break;var d=a[G].type==3;if(G==2){if(!D.A.wn(a))h="subtract";else h="unite"}else{if(a[G].oa==0)h="exclude"; +if(a[G].oa==1)h="unite";if(a[G].oa==2)h="subtract";if(a[G].oa==3)h="intersect"}if(a[G].oa!=-1){y=new paper.CompoundPath; +F.push([y,h]);y.fillRule="evenodd";y.fillColor=c}var W=[];for(var w=0;wD.A.Pm){D.A.Pm=Q}var S=y.t,h=y.w;if(c==null&&D.A.fE(a)){var d=!0; +for(var G=2;G0)h=!0}if(!S&&d<20)a=D.A.iV(a)}for(var G=0; +G5)continue;var w=a[G].length;if(w==0)continue;if(G==a.length-1)break;var J=a[G].type==3,W=a[G].oa; +if(W!=-1&&Q==null){var A=["xor","source-over","destination-out","source-in"][W];F.globalCompositeOperation=A}if(a[G].oa!=-1){F.beginPath(); +if(Q){var T=Q.strokeStyleLineWidth.v.val,o=Q.strokeStyleLineAlignment.v.strokeStyleLineAlignment,v=Q.strokeStyleLineCapType.v.strokeStyleLineCapType,i=Q.strokeStyleLineJoinType.v.strokeStyleLineJoinType,N=Q.strokeStyleMiterLimit.v,b=[],q=Q.strokeStyleLineDashSet.v; +for(var O=0;O1||Math.abs(S[G*4]-S[G*4+h])>1)y=!0}return!y}else return a.warpValue.v==0&&a.warpPerspective.v==0&&a.warpPerspectiveOther.v==0}; +D.be.G=function(a){var F={classID:"warp",warpStyle:{t:"enum",v:{warpStyle:"warpNone"}},warpValue:{t:"doub",v:0},warpPerspective:{t:"doub",v:0},warpPerspectiveOther:{t:"doub",v:0},warpRotate:{t:"enum",v:{Ornt:"Hrzn"}}}; +if(a){F.bounds={t:"Objc",v:{classID:"Rctn",Top:{t:"UntF",v:{type:"#Pxl",val:a.y}},Left:{t:"UntF",v:{type:"#Pxl",val:a.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:a.y+a.w}},Rght:{t:"UntF",v:{type:"#Pxl",val:a.x+a.t}}}}; +F.uOrder={t:"long",v:4};F.vOrder={t:"long",v:4}}return F};D.be.a1D=function(a,F,y,c){for(var G=0;G0)J=J-P*J*c; +else A=A+P*A*c}else if(G==1||G==2)J=J-P*J*c;else if(h==1||h==2)A=A+P*A*c}if(y=="warpTwist"){if((G==1||G==2)&&(h==1||h==2)){var l=c*Math.PI/2,R=1+Math.abs(c)*2,x=J*Math.cos(l)-A*Math.sin(l),E=J*Math.sin(l)+A*Math.cos(l); +J=x*R;A=E*R}}if(y=="warpShellLower"||y=="warpShellUpper"){if(y=="warpShellUpper"){G=3-G;A=-A}if(G>2||G==2&&(h==0||h==3)){if(c>0){var p=C+G/3*2*o; +J=Math.sin(L)*p;A=-O*T-o+Math.cos(L)*p;if(h==1||h==2){J=h==1?-j*p:j*p;A=-O*T-o+I*p}}else{if((h==1||h==2)&&G==3){J=h==1?-j*C:j*C; +A=O*T-I*C+o}else if(G==2){A=o-o*(2/3)*Math.cos(L);J=J+o*(2/3)*Math.sin(L)}}}if(y=="warpShellUpper"){G=3-G; +A=-A}}J+=T;A+=o}W=J,w=A;a[d]=W+F.x;a[d+1]=w+F.y}}};D.be.aop=function(a,F,y){var c=[];for(var Q=0;Q<4; +Q++)c.push(1-y+Q/3*2*y);var S=[];for(var Q=0;Q<4;Q++)S.push(1-F+Q/3*2*F);var h=[0,0,0,0],d=[0,0,0,0]; +for(var G=0;G<4;G++)for(var Q=0;Q<4;Q++){var W=2*(4*G+Q),w=a[W],J=a[W+1];h[Q]+=w/4;d[Q]+=J/4}for(var G=0; +G<4;G++)for(var Q=0;Q<4;Q++){var A=c[Q],W=2*(4*G+Q),w=a[W],J=a[W+1],T=h[Q],o=d[Q];a[W]=T+A*(w-T);a[W+1]=o+A*(J-o)}var v=a.slice(0); +for(var G=0;G<4;G++)for(var Q=1;Q<3;Q++){var W=2*(4*G+Q),w=a[W],J=a[W+1],i=W+(Q==1?-2:2),N=a[i],b=a[i+1]; +a[W]=w-N;a[W+1]=J-b}var q=a[0],O=a[1],R=a[8],k=a[9],L=a[16],C=a[17],t=a[24],_=a[25],M=a[6],I=a[7],j=a[14],r=a[15],s=a[22],e=a[23],P=a[30],l=a[31],x=M-q,E=I-O,p=j-R,f=r-k,H=s-L,g=e-C,B=P-t,U=l-_; +for(var G=0;G<4;G++){var Z=2*G*4,aR=0,hY=0,j3=G==1?.33:.66,X=1-j3;if(G==0){aR=x;hY=E}if(G==1){aR=X*x+j3*-B; +hY=X*E+j3*-U}if(G==2){aR=X*x+j3*-B;hY=X*E+j3*-U}if(G==3){aR=-B;hY=-U}a[Z]=a[Z]+aR/2;a[Z+1]=a[Z+1]+hY/2; +a[Z+6]=a[Z+6]-aR/2;a[Z+7]=a[Z+7]-hY/2}for(var G=0;G<4;G++)for(var Q=1;Q<3;Q++){var W=2*(4*G+Q),w=a[W],J=a[W+1],i=W+(Q==1?-2:2),N=a[i],b=a[i+1],A=2*G/3; +a[W]=N+A*w;a[W+1]=b+A*J}for(var G=1;G<3;G++)for(var Q=1;Q<3;Q++){var W=2*(4*G+Q),w=a[W],J=a[W+1],c9=G==1?-8:-16,hW=G==1?16:8,cY=a[W+c9],ho=a[W+c9+1],e7=a[W+hW],b2=a[W+hW+1],A=G/3; +w=(1-A)*cY+A*e7;J=(1-A)*ho+A*b2;a[W]=w;a[W+1]=J}D.M.$d(v,a,a,F)};D.be.akw=function(a,F){return(4-a)*(1/3)}; +D.be.a1y=function(a,F){return(1-a)*(3-a)/(3*F)};D.fs={};D.fs.ahH=function(a,F,y,c,Q,S,h,d,W,w){for(var J=0; +J>>1; +a[F]=a[F+3]=a[y]=a[y+3]=h;a[F+1]=J;a[F+4]=d;a[y+1]=W;a[y+4]=J;a[F+2]=a[F+5]=a[y+2]=a[y+5]=w};D.fs.a5m=function(a,F,y,c,Q,S){var h=S*3; +for(var G=0;G>2;if(q==i)return d*3+S+h-W>>2;if(q==N)return S*3+d+h-Q>>2;return w*3+c+h-J>>2}; +D.fs.KO=function(a,F,y,c,Q){if(aF&&F>y)return~~(.5+c+(Q-c)*(F-a)/(y-a));else return(c+Q>>1)+(F+F-a-y>>2)}; +D.fs.Hd=function(a,F,G,y){var c=F[G-y-1],Q=F[G-y+1],S=F[G],h=F[G+y-1],d=F[G+y+1],W=a[G-y-1],w=a[G-y+1],J=a[G],A=a[G+y-1],T=a[G+y+1],o=Math.abs(w-A)+Math.abs(a[G-y-y+2]-J)+Math.abs(J-a[G+y+y-2])+Math.abs(Q-S)+Math.abs(S-h),v=Math.abs(W-T)+Math.abs(a[G-y-y-2]-J)+Math.abs(J-a[G+y+y+2])+Math.abs(c-S)+Math.abs(S-d); +if(o>1<<1; +h+=J[1]>>1<<1}if(a.t50720){var A=a.t50720;d=S+A[0];W=h+A[1]}var T=d-S,o=W-h,v=new Float32Array(T*o*3); +if(a.t277[0]==1){var i=a.t33421;if(i==null){D.fs.ahH(Q,F,y,v,S,h,T,o)}else if(i.length!=2||i[0]!=2||i[1]!=2){console.log("Unknown CFA pattern size",i); +D.fs.Ac(Q,F,y,v,S,h,T,o,i[0],a.t33422)}else{var N=a.t33422.join(","),b=0;if(N=="0,1,1,2")b=0;else if(N=="1,0,2,1")b=1; +else if(N=="2,1,1,0")b=2;else if(N=="1,2,0,1")b=3;else throw"Unknown CFA pattern "+N;if((T&1)!=0||(o&1)!=0)throw"e"; +D.fs.aqO(Q,F,y,v,S,h,T,o,b)}}else{for(var q=0;q=.92){var R=Math.min(b,O);if(R==b){q=Math.max(q,A[0]*b); +O=Math.max(O,A[1]*b)}else{b=Math.max(b,A[4]*O);q=Math.max(q,A[5]*O)}}var k=W[0]*b+W[1]*q+W[2]*O,L=W[4]*b+W[5]*q+W[6]*O,C=W[8]*b+W[9]*q+W[10]*O; +if(k<0)k=0;else if(k>1)k=1;if(L<0)L=0;else if(L>1)L=1;if(C<0)C=0;else if(C>1)C=1;k=T[~~(k*999)];L=T[~~(L*999)]; +C=T[~~(C*999)];F[i]=~~(.5+k*255);F[i+1]=~~(.5+L*255);F[i+2]=~~(.5+C*255)}};D.raw.h8={a9V:function(a,F){var y=.5-.5*Math.cos(a*3.2),c=0; +if(F>0){var Q=a*.2;c=Q*a+(1-Q)*y}else{var S=Math.pow(a,.33);c=(1-S)*S+S*(a+(a-y)*.63)}var h=Math.abs(F); +return h*c+(1-h)*a},a8Z:function(a,F){var y=0;if(F>0){var c=a*1.47,Q=Math.pow(a,2.4);y=Math.min(1,Q*a+(1-Q)*c)}else{var c=a*.68,Q=Math.pow(a,3); +y=Q*a*.5+(1-Q)*c}var S=Math.abs(F);return S*y+(1-S)*a},aib:function(a,F){var y=0;if(F>0){var c=Math.pow(a,.3),Q=a; +y=(1-a)*c+a*Q}else{var c=Math.pow(a,2.5),S=a,Q=a;y=Math.min(1,(1-S)*c+S*Q)}var h=Math.abs(F);return h*y+(1-h)*a}}; +D.raw.amV=function(a){var F=a.width,y=a.height,c=F*y*a.t277,Q=new Uint16Array(c),S=null,h=0;D.raw.a7X(a,Q); +D.raw.FQ(1,a,Q,F,y);if(a.t50712){S=a.t50712;h=S.length-1;if(S[h]>65535)throw"too big values"}var d=D.raw.CP(a),W=D.raw.Fy(a); +if(S==null)for(var G=0;Gh)w=h; +w=S[w];Q[G]=Math.max(0,w-d)}return Q};D.raw.CP=function(a){var F=a.t50714,y=F?F[0]:0,c=a.t50715,Q=a.t50716; +if(c)y+=c[0][0]/c[0][1];if(Q)y+=Q[0][0]/Q[0][1];return Math.round(y)};D.raw.Fy=function(a){var F=null,y=0; +if(a.t50712){F=a.t50712;y=F.length-1}var c=a.t50717?a.t50717[0]:(1<>>3,J=c[w]<<24|c[w+1]<<16|c[w+2]<<8|c[w+3];if((W&7)==0){h=J>>>18; +d=J>>>4&16383}else{h=J>>>14&16383;d=J&16383}}else if(Q==12){S=G+(G>>>1);h=c[S]<<4|c[S+1]>>4;d=(c[S+1]&15)<<8|c[S+2]}else if(Q==10){var W=G*10,w=W>>>3; +if((W&7)==0){h=(c[w]<<2|c[w+1]>>6)&1023;d=(c[w+1]<<4|c[w+2]>>4)&1023}else{h=(c[w]<<6|c[w+1]>>2)&1023; +d=(c[w+1]<<8|c[w+2]>>0)&1023}}else if(Q==8){S=G;h=c[S];d=c[S+1]}F[G]=h;F[G+1]=d}};D.raw.FQ=function(a,F,y,c,Q){var S=F["t"+[51008,51009,51022][a-1]],J=0; +if(S==null)return;var h=c*Q,d=n.s,W=n.Nt,w=new Uint8Array(S),bJ=n.s(w,J);J+=4;for(var A=0;A>1}else if(T==5&&a==1){var N=J,aB=d(w,N);N+=4; +var eB=d(w,N);N+=4;var et=d(w,N);N+=4;for(var G=0;G>1}}else if(T==7&&a==1){var N=J,eT=n.u5(w,N);N+=16;var cQ=d(w,N);N+=4;var a2=d(w,N); +N+=4;var hA=d(w,N),gH=d(w,N+4);N+=8;var be=d(w,N);N+=4;var e5=new Uint16Array(be);for(var G=0;G1e-7); +return y};D.raw.Xb=function(a,F){var y=c5.u$(F),c=D.raw.aiT,Q=a.t50778?a.t50778[0]:0,S=a.t50779?a.t50779[0]:0,h=c(a.t50721,a.t50722,Q,S,y.kf),d=c(a.t50723,a.t50724,Q,S,y.kf); +h=h||[1,0,0,0,1,0,0,0,1];d=d||[1,0,0,0,1,0,0,0,1];var W=a.t50727?[a.t50727[0],0,0,0,a.t50727[1],0,0,0,a.t50727[2]]:[1,0,0,0,1,0,0,0,1]; +return D.Ux.multiply(D.Ux.c9(W),D.Ux.multiply(D.Ux.c9(d),D.Ux.c9(h)))};D.raw.aiT=function(a,F,y,c,Q){if(!a&&!F){return null}else if(a&&!F){return a}else if(Qc){return F}else{var S=(1/Q-1/c)/(1/y-1/c),h=1-S,d=[]; +for(var G=0;G<9;G++)d[G]=a[G]*S+F[G]*h;return d}};var c5={};c5.aqy={x:.34567,y:.3585};c5.an=[{i:0,KY:.18006,VO:.26352,yc:-.24341},{i:10,KY:.18066,VO:.26589,yc:-.25479},{i:20,KY:.18133,VO:.26846,yc:-.26876},{i:30,KY:.18208,VO:.27119,yc:-.28539},{i:40,KY:.18293,VO:.27407,yc:-.3047},{i:50,KY:.18388,VO:.27709,yc:-.32675},{i:60,KY:.18494,VO:.28021,yc:-.35156},{i:70,KY:.18611,VO:.28342,yc:-.37915},{i:80,KY:.1874,VO:.28668,yc:-.40955},{i:90,KY:.1888,VO:.28997,yc:-.44278},{i:100,KY:.19032,VO:.29326,yc:-.47888},{i:125,KY:.19462,VO:.30141,yc:-.58204},{i:150,KY:.19962,VO:.30921,yc:-.70471},{i:175,KY:.20525,VO:.31647,yc:-.84901},{i:200,KY:.21142,VO:.32312,yc:-1.0182},{i:225,KY:.21807,VO:.32909,yc:-1.2168},{i:250,KY:.22511,VO:.33439,yc:-1.4512},{i:275,KY:.23247,VO:.33904,yc:-1.7298},{i:300,KY:.2401,VO:.34308,yc:-2.0637},{i:325,KY:.24792,VO:.34655,yc:-2.4681},{i:350,KY:.25591,VO:.34951,yc:-2.9641},{i:375,KY:.264,VO:.352,yc:-3.5814},{i:400,KY:.27218,VO:.35407,yc:-4.3633},{i:425,KY:.28039,VO:.35577,yc:-5.3762},{i:450,KY:.28863,VO:.35714,yc:-6.7262},{i:475,KY:.29685,VO:.35823,yc:-8.5955},{i:500,KY:.30505,VO:.35907,yc:-11.324},{i:525,KY:.3132,VO:.35968,yc:-15.628},{i:550,KY:.32129,VO:.36011,yc:-23.325},{i:575,KY:.32931,VO:.36038,yc:-40.77},{i:600,KY:.33724,VO:.36051,yc:-116.45}]; +c5.u$=function(a){var F=c5.an,y=2*a.x/(1.5-a.x+6*a.y),c=3*a.y/(1.5-a.x+6*a.y),Q=0,S=0,h=0;for(;h<31; +h++){Q=c-F[h].VO-F[h].yc*(y-F[h].KY);if(h>0&&Q<0){break}S=Q}while(h>=F.length)h--;Q/=Math.sqrt(1+F[h].yc*F[h].yc); +S/=Math.sqrt(1+F[h-1].yc*F[h-1].yc);var d=S/(S-Q),W=1e6/((F[h].i-F[h-1].i)*d+F[h-1].i),w=y-((F[h].KY-F[h-1].KY)*d+F[h-1].KY),J=c-((F[h].VO-F[h-1].VO)*d+F[h-1].VO),A=Math.sqrt(1+F[h].yc*F[h].yc),T=1/A,o=F[h].yc/A,v=Math.sqrt(1+F[h-1].yc*F[h-1].yc),i=1/v,N=F[h-1].yc/v,b=(T-i)*d+i,q=(o-N)*d+N,O=Math.sqrt(b*b+q*q); +b/=O;q/=O;var R=(w*b+J*q)*-3e3;return{kf:W,HY:R}};c5.ad2=function(a,F){var y=c5.an,c=1e6/a,Q=1;for(; +Q<31;Q++){if(c>>2;o[G+1]=i;if(i>4095)throw"e"}for(var G=0; +G<16385;G++)v[G]=G;for(var G=0;G<5;G++)for(var N=o[G]+1;N<=o[G+1];N++)v[N]=v[N-1]+(1<>>2); +D.raw.afy(C,t,k>>>2,L);var _=new Uint8Array(R+k);_.set(new Uint8Array(t.buffer),R);var M=[];UTIF._readIFD(A,_,R,M,0,!1); +var I=M.pop(),j=I.t29458;a.t50728=[j[1]/j[0],1,j[1]/j[3]];a.t50730=[.5];var r=I.t29891;a.t50829=[r[1],r[0],r[3],r[2]]}else if(S.makerNote&&S.makerNote.t8208){var O=S.makerNote,s=O.t8208,e=s.length,P=0,l=new Uint8Array(256); +for(var G=249;G<256;G++)l[G]=G;for(var G=0;G<249;G++)l[G*G*G%249]=G;for(var G=0;G>>2;a.t50714=[J,J,J,J];a.t50717=[W[3]>>>2]}}else if(a.t271[0].startsWith("Canon")){var F=a.data,x=F.slice(0),E=a.t50752,p=[],H=0; +if(E==null||E[0]==0&&E[1]==0)p.push(a.width);else{for(var G=0;G>1)*Z*2; +for(var G=0;G>>1,aR=a.height-a2>>>1;a.t50829=[aR,H,aR+a2,H+cQ]}if(O.t12){var i5=D.raw.KN(O.t12); +e5=[1/i5[0],1,1/i5[1]]}else if(O.t151){var iz=D.raw.aad(O,151),aL=iz[0],dK=iz[1],az=iz[2];if(aL=="0100"&&dK>=80)throw"e"; +else if(aL=="0102"){var hu=[];for(var G=0;G<4;G++)hu.push(aB(az,6+G*2));e5=[hu[1]/hu[0],1,hu[1]/hu[3]]}else if(aL=="0103"&&dK>=26){var hu=[]; +for(var G=0;G<4;G++)hu.push(aB(az,16+G*2));e5=[hu[1]/hu[0],1,hu[3]/hu[2]]}else if(aL=="0204"&&dK>=564||aL=="0205"&&dK>=284){var R=aL=="0204"?6:14,hu=[]; +for(var G=0;G<4;G++)hu.push(aB(az,R+G*2));e5=[hu[1]/hu[0],1,hu[1]/hu[3]]}else throw"e"}else console.log("no white balance info"); +if(h=="NIKON D1")e5=[1,1,1];if(e5)a.t50728=e5;var aV=O.t150?O.t150:O.t140;if(aV){var dN=aV[bQ++],h0=aV[bQ++],di; +if(dN==73||h0==88)bQ+=2110;bQ+=8;var gl=1<1)di=Math.floor(gl/(dQ-1)); +if(dN==68&&h0==32&&di>0){for(G=0;G>>0)*3125+1>>>0;Q[3]=Q[3]<<1|(Q[0]^Q[2])>>>31;for(var h=4;h<127; +h++)Q[h]=(Q[h-4]^Q[h-2])<<1|(Q[h-3]^Q[h-1])>>>31;for(var h=0;h<127;h++)Q[h]=n.s(S,h*4);for(;y>0;y--){Q[h&127]=Q[h+1&127]^Q[h+1+64&127]; +var w=Q[h&127],J=a[d];J^=w;F[W]=J;d++;W++;h++}};D.raw.agC=function(a,F){var y=n.Os(F,0,4),c=D.raw.abA; +for(var G=0;G>>(G<<3)&255;var d=F[Q&255],W=y[h&255];return[d,W,96]};D.raw.aad=function(a,F){var y=a["t"+F],dK=y.length,c=D.raw.agC(F,y),Q=n.Os(y,0,4),S,h=c[4]; +if(h==null)S=y.slice(4);else{S=new Uint8Array(dK-h);var d=D.raw.am0(a),W=d[0],w=d[1],J=d[2];for(var G=0; +G1)j3++;for(var X=0;X=250?bQ:Z)<<2;aV[dN]=F[gl];aV[dN+1]=F[gl+1]; +aV[dN+2]=F[gl+2]}D.Iy(az,aV,3);if(J)console.log(Date.now()-w);w=Date.now();return aV};D.nf.hK=function(a,F,y,c,Q,S,h,d,W){var w=a>>>16,J=a&65535,A=w-(y>>>16),T=J-(y&65535),o=w-(Q>>>16),v=J-(Q&65535),i=Math.sqrt(A*A+T*T)*h,N=Math.sqrt(o*o+v*v)*d; +if(i+N>=W)return 1e9;var b=D.nf.ad7(F,c,S);return b+i+N};D.nf.ad7=function(a,F,y){var c=a>>>16,Q=a>>>8&255,S=a&255,h=F>>>16,d=F>>>8&255,W=F&255,w=y>>>16,J=y>>>8&255,A=y&255,T=D.nf.alpha(a,F,y),o=c-(T*h+(1-T)*w),v=Q-(T*d+(1-T)*J),i=S-(T*W+(1-T)*A); +return Math.sqrt(o*o+v*v+i*i)};D.nf.alpha=function(a,F,y){var c=a>>>16,Q=a>>>8&255,S=a&255,h=F>>>16,d=F>>>8&255,W=F&255,w=y>>>16,J=y>>>8&255,A=y&255,T=h-w,o=d-J,v=W-A,i=c-w,N=Q-J,b=S-A,q=T*T+o*o+v*v,O=q==0?.5:(i*T+N*o+b*v)/q; +return Math.max(0,Math.min(1,O))};D.nf.ajf=function(a){};D.nf.VJ=function(a,F,y,c,Q){var S=[],h=F-1,d=y-1; +for(var W=1;W>>2;console.log(A,v);T=D.G(A.L()); +D.ie(J.BN,T,0);D.Iy(F,w,0);J=D.e4(w,y);J=D.e4(J.BN,J.rect);o=D.G(A.L());D.ie(J.BN,o,0);var i=D.Ly.ahk(T,o,A,v,Q),N=i[0],b=i[1],q=new cJ(0,0,A.t*2,A.w*2); +N=W(N,A,q,!0);N=W(N,q,y,!0);b=W(b,A,q,!0);b=W(b,q,y,!0);var O=D.G(d);for(var G=0;G>>2,h>>>2);v=c>>>2;T=D.Ly.ap8(a,S,h);o=D.Ly.a6H(F,S,h);if(J)console.log(Date.now()-w); +w=Date.now();var i=D.Ly.afX(T,o,A,v,Q),N=i[0],b=i[1],q=i[2],O=i[3];if(J)console.log(Date.now()-w);w=Date.now(); +var R=D.G(d);for(var k=0;k>>2)*(S>>>2)+(L>>>2),t=G<<2,_=N[C]*F[t]+b[C]*F[t+1]+q[C]*F[t+2]+O[C]*255; +R[G]=Math.max(0,Math.min(255,~~(.5+_)))}if(J)console.log(Date.now()-w);w=Date.now();return R};D.Ly.ap8=function(a,F,y){var c=F>>>2,Q=y>>>2,S=D.G(F*y); +for(var h=0;h>>2,Q=y>>>2,S=D.G(F*y*4); +for(var h=0;hF-d-1||J>y-d-1){var G=J*F+A,T=G<<2,o=0;if(JF-d-1)o=8;W[o]+=a[T];W[o+1]+=a[T+1];W[o+2]+=a[T+2];W[o+3]++;Q[G]=255}}for(var G=0;G<12;G+=4)for(var v=0; +v<3;v++)w[G+v]=W[G+v]/W[G+3];var i=new Float32Array(c);for(var G=0;G>>1,h=y>>>1,M=1/Math.sqrt(_*_+h*h); +for(var J=0;J=0;h--)D.L6.r0(Q*S-Q+h,1,a,F,y,c);for(var d=S-2;d>=0;d--){D.L6.r0(d*Q+Q-1,Q,a,F,y,c);for(var h=Q-2; +h>=0;h--){var G=d*Q+h;D.L6.r0(G,1,a,F,y,c);D.L6.r0(G,Q,a,F,y,c)}}};D.L6.r0=function(G,a,F,y,c,Q){var S=G+a,h=F[G],d=y[S],W=c[S]; +if(d0){var A=W;W=w;w=A}var T=S[w+"-"+W],o=S[W+"-"+d],v=S[d+"-"+w],i=[w,T,h,null],N=[W,o,h,i],b=[d,v,h,N]; +i[3]=b;if(T)T[1]=i;if(o)o[1]=N;if(v)v[1]=b;S[w+"-"+d]=b;S[d+"-"+W]=N;S[W+"-"+w]=i;y[d]=N;Q[G]=N;y[W]=i; +Q[G+1]=i;y[w]=b;Q[G+2]=b;c[h]=N}return{zj:y,Ew:c,UI:Q}};D.gC.ajK=function(a){var F=[],y=a.Ew;for(var G=0; +Gv[2]&&v[3]==0&&D.gC.oW(a,o,J,T)<0&&D.gC.oW(a,T,A,o)<0; +if(b){y[0]=T;c[0]=o;y[3]=S;S[3]=h;h[3]=y;c[3]=d;d[3]=Q;Q[3]=c;Q[2]=w;h[2]=W;F.Ew[w]=d;F.Ew[W]=S;F.zj[A]=h; +F.zj[J]=Q}return b};D.gC.anM=function(a,F,y){var c=a[F*2]-a[y*2],Q=a[F*2+1]-a[y*2+1];return Math.sqrt(c*c+Q*Q)}; +D.gC.am8=function(a,F,y){var c=y[1],Q=y[3],S=Q[3],h,d,W=y[2],w,J=y[0],A=S[0],T=Q[0],o;if(c){h=c[3];d=h[3]; +w=c[2];o=h[0]}var v=a.length>>>1;a[2*v]=(a[2*A]+a[2*J])*.5;a[2*v+1]=(a[2*A+1]+a[2*J+1])*.5;if(!0){var i=W,N=y,b=F.Ew.length,q=[v,null,i,N],O=[T,q,b,S]; +q[1]=O;var R=[v,null,b,O];Q[3]=q;S[3]=R;S[2]=b;F.Ew[i]=Q;F.Ew[b]=R;F.zj[J]=Q;F.zj[T]=S;F.UI.push(q,O,R)}if(c){var k=w,L=c,C=b+1; +R[1]=L,L[1]=R;var t=[v,null,k,L],_=[o,t,C,d];t[1]=_;var M=[v,N,C,_];N[1]=M;h[3]=t;d[3]=M;d[2]=C;F.Ew[k]=h; +F.Ew[C]=d;F.zj[A]=h;F.zj[o]=d;F.UI.push(t,_,M)}F.zj[v]=N};D.gC.n0=function(a,F){var y=0;while(!0){var c=y; +for(var G=0;Gh){S=W;h=w}}if(h>y){D.gC.am8(a,F,S); +Q++}}return Q!=0};D.gC.arx=function(a,F){var y=[],T=0;for(var G=0;G>>1,v=F.zj[o],c=v,i=!0; +do{if(c[1]==null){i=!1;break}c=c[1][3]}while(c!=v);if(i){var N=.02;a[G]+=N*y[G];a[G+1]+=N*y[G+1];T+=N*(y[G]*y[G]+y[G+1]*y[G+1])}}return T}; +D.gC.aoe=function(a,F,y){var c=D.M.zO(a),Q=D.gC.ko(a,F);D.gC.n0(a,Q);for(var S=0;S<300;S++){var h=!1,d=!1; +h=D.gC.arH(a,Q,y,5);if(h)d=D.gC.n0(a,Q);var W=D.gC.arx(a,Q);if(!h&&!d&&W<1e-4){break}}return D.gC.ajK(Q)}; +D.qV={};D.qV.Pi=function(a){var F=a.IE,y=a.ey,c=a.wA,Q=a.OO,S=a.YV,h=a.GD,d=a.KB,W=D.D3.Xk,q,O,R=0;function w($){var cY=new Array($); +for(var G=0;G<$;G++)cY[G]=0;return cY}var J=y.length>>>1,A=w(F.uO*2),T=w(F.uO),o=w(F.uO),v=Date.now(); +for(var G=0;GC)continue;var M=y[L*2],I=y[L*2+1],j=y[C*2],r=y[C*2+1],s=Q[L*2],e=Q[L*2+1],l=Q[C*2],x=Q[C*2+1],E=Q[t*2],p=Q[t*2+1],H=Q[_*2],g=Q[_*2+1],B=[s,e,l,x,E,p]; +if(k[1])B.push(H,g);var U=W(F.arb[R],B),Z=U[0],aR=U[1],hY=1/Math.sqrt(Z*Z+aR*aR);Z*=hY;aR*=hY;var j3=j-M,X=r-I; +T[R]=Z*j3+aR*X;o[R]=-aR*j3+Z*X;R++}var c9=new Array(J),hW=new Array(J);for(var G=0;G>>1,W=0,v=0,aR=1e3; +for(var G=0;GO)continue; +var L=F[q*2],C=F[q*2+1],t=F[O*2],_=F[O*2+1],M=F[R*2],I=F[R*2+1],j=F[k*2],r=F[k*2+1],s=[[L,C,1,0],[C,-L,0,1],[t,_,1,0],[_,-t,0,1],[M,I,1,0],[I,-M,0,1]]; +if(b[1])s.push([j,r,1,0],[r,-j,0,1]);var e=D.D3.Cd(s),l=Q(linear.invert(Q(e,s)),e);l.pop();l.pop();J.push(l); +var x=t-L,E=_-C,p=o[b[1]?1:0];p=D.D3.VU(p,Q([[x,E],[E,-x]],l));var H=[q*2,q*2+1,O*2,O*2+1,R*2,R*2+1,k*2,k*2+1],g=b[1]?8:6,B=[]; +for(var U=0;U>>1,h=new Array(S); +if(y.length==0){h.fill(0);return h}var d=new Array(S),W=new Array(S);for(var G=0;G=0&&B>=0&&g+B<=1){var U=1-g-B,Z=R*U+k*g+L*B,aR=C*U+t*g+_*B; +D.o.am(Z,aR,S,h,d,o);D.qV.ag9(o,W,E*w+p<<2)}}};D.qV.ag9=function(a,F,y){var c=F[y],Q=F[y+1],S=F[y+2],h=F[y+3],d=1-a[3]*(1/255); +F[y]=~~(.5+a[0]+c*d);F[y+1]=~~(.5+a[1]+Q*d);F[y+2]=~~(.5+a[2]+S*d);F[y+3]=~~(.5+a[3]+h*d)};D.qV.XU=function(){var a=function(y,c,Q,S){var h=S[0],d=S[1],W=S[2],w=y[h+0],J=y[h+1],A=y[d+0],T=y[d+1],o=y[W+0],v=y[W+1],i=A-w,N=T-J,b=o-w,q=v-J,O=c-w,R=Q-J,k=i*q-b*N,L=1/(k+1e-9),C=(O*q-b*R)*L,t=(i*R-O*N)*L; +if(C>=0&&t>=0&&C+t<=1){S[3]=1-C-t;S[4]=C;S[5]=t;return 1}return 0},F=function(y,c,Q,S){var h=[0,0,0,0,0,0]; +for(var G=0;G=0;A--){var N=A*F;for(var J=0;J=2){var G=N+T,t=R[k+T-1]+q(k+T-1,G-1),_=R[k+T-2]+q(k+T-1,G-2)+q(k+T-2,G-1); +if(R[k+T]==t){O[G-F]=1;T-=1}else{O[G-F]=0;O[G-F-1]=2;T-=2}}var G=N;if(T==0){O[G-F]=1}else{if(R[k+1]==L){O[G+1-F]=1; +O[G-F]=1}else{O[G+1-F]=0;O[G-F]=2}}N+=d;k+=d}D.aF.a5J(A,F,O,S,o,v,!0,Q)}if(c){console.log(Date.now()-Q,"Matching"); +Q=Date.now()}var M=S;return[UZIP.adler(a,0,a.length),a,F,y,h,w,W,o,v,O,M]};D.aF.rp=function(a,F,y,c){var Q=a.slice(0),S=Q.shift(),h=Q.shift(),d=Q.shift(),W=Q.shift(),w=Q.shift(),J=Q.shift(),A=Q.shift(),T=Q.shift(),o=Q.shift().slice(0),v=Q.shift(),i=Q.shift(),N=Date.now(),b=Math.abs(d-F),q=Math.floor(b/w),O=new Uint32Array(w),k=0,L=1e9,t=0,_=0,M=0; +for(var R=0;R=65280){i[G+p]--;C++;E(x*F+C,x*d+p)}}}}if(c){console.log(Date.now()-N,"Shifting image pixels"); +N=Date.now()}};D.aF.a5J=function(a,F,y,c,Q,S){var h=0,G=a*F;while(hc*c||L<0||C<0||L>=q||C>=q)continue; +var t=b[C*q+L];v+=k*t;i+=R*t}o.vy=Math.atan2(i,v)}}function W(J,A,T,o,v){var i=~~(J+.5),N=~~(A+.5);return y(T,o,i-Q,i+Q,N-Q,N+Q)}function w(J,A,T,o,v){a=o; +F=v;if(h.length==0){var i=new D.R.pw(16200817),O=8,R=0;function N(c9){var M=c9[0]-c9[2],I=c9[1]-c9[3]; +return M*M+I*I}function b(){var c9=0,hW=0;while(c9===0)c9=i.get();while(hW===0)hW=i.get();return Math.sqrt(-2*Math.log(c9))*Math.cos(2*Math.PI*hW)}var q=b,k=[]; +while(R!=S){var L=Math.max(-c,Math.min(c,q()*O)),C=Math.max(-c,Math.min(c,q()*O)),t=Math.max(-c,Math.min(c,q()*O)),_=Math.max(-c,Math.min(c,q()*O)),M=L-t,I=C-_,j=Math.sqrt(M*M+I*I); +if(j<3||j>12)continue;h.push(L,C,t,_);R++}}var r=20;for(var s=0;s>>3); +e.nn=g;for(var G=0;G>>3]|=(j3>>1,O=q>>>1,R=Math.round(b/3); +if(R!=b/3)throw"e";var k=1/(b*b),L=1.2*(b/9);for(var t=q+1;t=p||i[G+C]>=p)continue;if(i[G-x-C]>=p||i[G-x]>=p||i[G-x+C]>=p)continue;if(i[G+x-C]>=p||i[G+x]>=p||i[G+x+C]>=p)continue; +w.push({x:~~(_*A.MQ+.5),y:~~(t*A.MQ+.5),a6v:_,ahQ:t,hZ:J,H:p,aai:N[G],H2:L})}}if(h!=null){w.sort(function(hY,j3){return j3.H-hY.H}); +w=w.slice(0,h)}return w;var f=[];for(var G=0;Gg.H&&(U.hZ==g.hZ+1||U.hZ==g.hZ-1)){var Z=g.x-U.x,aR=g.y-U.y;if(Z*Z+aR*aR<5){H=!1; +break}}}if(H)f.push(g)}console.log(w.length,f.length);return f}return{a0h:Q}}();D.ps={};D.ps.a5o=function(a){var F=a.length,y=D.ps.W7(a,!1),Q=0,S=1; +throw"e";var c=[];for(var G=0;G>>1);if(J.length<10)return null;var A=D.ps.ar3(S[G],S[d],J,2);w.push([G,d,J,A])}w.sort(function(_,M){return M[2].length-_[2].length}); +if(c)console.log("Matches found",Date.now()-Q);Q=Date.now();var T=[],o=new UnionFind(y);for(var G=0; +G>>1][1]}var t=D.o.kW(b[F]); +for(var G=0;Gh||s==h&&e>>1;i=N-1}else{i=N=c>>>1}for(var G=0;G>>1;else F[G]=(G&3)==3?v[c-1]:v[c-1]-v[0]}}else console.log(y)};D.l3={}; +D.l3.Ls=function(a,F,y,c){var Q=Date.now(),S=new Uint32Array(F*y),h=new Uint8Array(F*y),d=[],o=0;for(var W=0; +Wc)continue;for(var b=0;bN){i=k;N=L}}if(N==0)throw"e";D.l3.ah$(a,F,y,A,d[i],h,S);o++}};D.l3.ah$=function(a,F,y,c,Q,S,h){D.l3.ae9(a,F,y,c[1],c[2],Q[5],S,h,Q[0]); +Q[3]+=c[3];c[3]=0;var d=c[4],W=Q[4];for(var w=0;w>2]=L.ind}return{wA:v,Lz:T[1]}};D.l3.NR=function(a,F,y){var c=[],Q={},S=F-1,h=y-1,d=0,W=new Uint32Array(a),w=[-F-1,-F,-F+1,-1,1,F-1,F,F+1,F+F,2,-F-F,-2,F+F-1,F+F+1,F+2,-F+2,-F-F+1,-F-F-1,-F-2,F-2,F+F+2,-F-F+2-F-F-2,F+F-2]; +for(var J=1;J>>2;for(var I=0;I>>1;if(r>65535)throw r;var s=[];for(var G=0; +G<1e3+O;G++)s.push([]);var e=[0,1,0,-1,-1,0,1,0],x=Math.min(M,5),E=new Uint32Array(r*6);for(var p=0; +p>>l)}var Z=Math.min(O,f*C);if(p+x>=M)Z=O;while(Q!=0){h(s);var aR=s[c].pop(),hY=s[c].pop(),j3=hY>>>16,X=hY&65535,G=j3*q+X; +if(I[G]==65535){var c9=aR*6,hW=G<<2;I[G]=aR;E[c9]+=b[hW];E[c9+1]+=b[hW+1];E[c9+2]+=b[hW+2];E[c9+3]+=X; +E[c9+4]+=j3;E[c9+5]++;var cY=j3>>>l;if(j3!=Z-1&&I[G+q]==65535)S(s,j3+1<<16|X,aR,W(b,q,t,X,j3+1,E,c9)+cY); +if(j3!=0&&I[G-q]==65535)S(s,j3-1<<16|X,aR,W(b,q,t,X,j3-1,E,c9)+cY);if(X!=0&&I[G-1]==65535)S(s,j3<<16|X-1,aR,W(b,q,t,X-1,j3,E,c9)+cY); +if(X!=q-1&&I[G+1]==65535)S(s,j3<<16|X+1,aR,W(b,q,t,X+1,j3,E,c9)+cY)}}if(Z!=j3){var ho=(p+x)*_;E.fill(0,ho*6,(ho+_)*6); +for(var j3=(p+x-2)*C;j3=ho){I[G]=65535}}}}return{wA:I,tH:r,F0:E}}D.l3.qr=function(b,q,O,R,k){var L=b.tH,C=q*O,t=b.F0,_=b.wA,M=o(R,_,L,C),I=new UnionFind(L),l=0; +for(var j=1;j>>7);k[_]=C=k[_]|M}}return C!=3};function W(b,q,O,R,k,L,C){var t=(k*q+R)*4,_=L[C+5],M=1/_,I=b[t]*_-L[C],j=b[t+1]*_-L[C+1],r=b[t+2]*_-L[C+2],s=R*_-L[C+3],e=k*_-L[C+4],P=Math.sqrt(I*I+j*j+r*r),l=Math.sqrt(s*s+e*e); +return~~((P+O*l)*M+.5)}function w(b,q,O,R){var k=1/b[O+5],L=1/b[R+5],C=b[O]*k-b[R]*L,t=b[O+1]*k-b[R+1]*L,_=b[O+2]*k-b[R+2]*L,M=b[O+3]*k-b[R+3]*L,I=b[O+4]*k-b[R+4]*L,j=Math.sqrt(C*C+t*t+_*_),r=Math.sqrt(M*M+I*I); +return~~(j+q*r+.5)}function J(b,q,O){var R=D._3(b,new cJ(0,0,q,O)),k=R.rect.t,L=R.rect.w,C=d(R.BN,k,L),t=C.wA,_=Date.now(),M=new Uint16Array(q*O); +M.fill(65535);for(var I=0;I>>4,r=b[_+1]>>>4,s=b[_+2]>>>4; +L[M*4400+(j<<8|r<<4|s)]++;L[M*4400+4096]++;L[M*4400+4100+(j<<4|r)]++;L[M*4400+4360+j]++;if(t!=0&&(I=R[G-1])!=M&&A(F[M],I)==-1){F[M].push(I,0); +F[I].push(M,0)}if(C!=0&&(I=R[G-q])!=M&&A(F[M],I)==-1){F[M].push(I,0);F[I].push(M,0)}}for(var G=0;G>>7)}return k}D.l3.ag0=function(b,q,O,R,k,L,C){var t=q*O,_=C[0],F=C[1],M=new UnionFind(R),I=o(k,b,R,t),j=-1,r=!0,s=0; +for(var G=0;GO){O=L; +q=k}}return b[q]}function i(F,b,q,O){var R=F[q],k=F[O];T(R,A(R,O));T(k,A(k,q));for(var G=0;G0)return 1; +else if(t<0)return 0}return 0}function A(C,v){var i=new a,N=C,b=v,t=0,_=1,M;i.color=Q[v*S+C];i.sign=W(C,v,Q,S)==i.color?"+":"-"; +while(1){i._Y.push(N,b);if(N>i.uM)i.uM=N;if(Ni.BI)i.BI=b;if(b>1),b+(_-t-1>>1),Q,S)==i.color,j=W(N+(t-_-1>>1),b+(_+t-1>>1),Q,S)==i.color; +if(j&&!I){if(d.pW=="right"||d.pW=="black"&&i.sign=="+"||d.pW=="white"&&i.sign=="-"||d.pW=="majority"&&J(N,b,i.color)||d.pW=="minority"&&!J(N,b,i.color)){M=t; +t=-_;_=M}else{M=t;t=_;_=-M}}else if(j){M=t;t=-_;_=M}else if(!I){M=t;t=_;_=-M}}return i}var T=0,o=[]; +while(!0){var T=w(T);if(T==-1)break;var v=Math.floor(T/S),i=A(T-v*S,v);for(var G=0;Gd.agf)o.push(i)}for(var G=0;G=0;k--){var L=o[k]; +if(R.a4L.uM||R.oKL.BI)continue;if(!ds.a9C(L._Y,R._Y[0]+.5,R._Y[1]+.5))continue; +R.parent=k;break}}return o}function c(Q,S){function h(t,_,M,I,j){this.x=t;this.y=_;this.IK=M;this.SP=I; +this.cT=j}function d(t,$){return($+t)%$}function W(t,_,M,I){return t*I-M*_}function w(t,_,M,I){return t*M+_*I}function J(t,_,M){if(t<=M)return t<=_&&_=0&&B<=1)return B;else if(U>=0&&U<=1)return U; +else return-1}function b(C){var G,t,_;C.BX=C._Y[0];C.amE=C._Y[1];C.Rb=[];var M=C.Rb;M.push(new h(0,0,0,0,0)); +for(G=0;G=0;G--){if(t[G<<1]!=t[X<<1]&&t[(G<<1)+1]!=t[(X<<1)+1])X=G+1;I[G]=X}for(G=$-1; +G>=0;G--){var c9=d(G+1,$)<<1;j[0]=j[1]=j[2]=j[3]=0;_=(3+3*(t[c9]-t[G<<1])+(t[c9+1]-t[(G<<1)+1]))/2;j[_]++; +r=0;s=0;e=0;P=0;X=I[G];U=G;while(1){g=0;_=(3+3*Math.sign(t[X*2]-t[U*2])+Math.sign(t[X*2+1]-t[U*2+1]))/2; +j[_]++;if(j[0]&&j[1]&&j[2]&&j[3]){M[G]=U;g=1;break}f=t[X*2]-t[G*2];H=t[X*2+1]-t[G*2+1];if(W(r,s,f,H)<0||W(e,P,f,H)>0){break}if(Math.abs(f)<=1&&Math.abs(H)<=1){}else{l=f+(H>=0&&(H>0||f<0)?1:-1); +x=H+(f<=0&&(f<0||H<0)?1:-1);if(W(r,s,l,x)>=0){r=l;s=x}l=f+(H<=0&&(H<0||f<0)?1:-1);x=H+(f>=0&&(f>0||H<0)?1:-1); +if(W(e,P,l,x)<=0){e=l;P=x}}U=X;X=I[U];if(!J(X,G,U)){break}}if(g==0){E=Math.sign(t[X*2]-t[U*2]);p=Math.sign(t[X*2+1]-t[U*2+1]); +f=t[U*2]-t[G*2];H=t[U*2+1]-t[G*2+1];Z=W(r,s,f,H);aR=W(r,s,E,p);hY=W(e,P,f,H);j3=W(e,P,E,p);B=1e7;if(aR<0){B=Math.floor(Z/-aR)}if(j3>0){B=Math.min(B,Math.floor(-hY/j3))}M[G]=d(U+B,$)}}B=M[$-1]; +C.DQ[$-1]=B;for(G=$-2;G>=0;G--){if(J(G+1,M[G],B)){B=M[G]}C.DQ[G]=B}for(G=$-1;J(d(G+1,$),B,C.DQ[G]);G--){C.DQ[G]=B}}function O(C){function t(C,G,_){var $=C.xW,f=C._Y,H=C.Rb,g,B,U,Z,aR,I,hY,j3,p,X,c9,hW,cY,ho,e7=0; +if(_>=$){_-=$;e7=1}if(e7==0){g=H[_+1].x-H[G].x;B=H[_+1].y-H[G].y;Z=H[_+1].SP-H[G].SP;U=H[_+1].IK-H[G].IK; +aR=H[_+1].cT-H[G].cT;I=_+1-G}else{g=H[_+1].x-H[G].x+H[$].x;B=H[_+1].y-H[G].y+H[$].y;Z=H[_+1].SP-H[G].SP+H[$].SP; +U=H[_+1].IK-H[G].IK+H[$].IK;aR=H[_+1].cT-H[G].cT+H[$].cT;I=_+1-G+$}c9=(f[G<<1]+f[_<<1])/2-f[0];hW=(f[(G<<1)+1]+f[(_<<1)+1])/2-f[1]; +ho=f[_<<1]-f[G<<1];cY=-(f[(_<<1)+1]-f[(G<<1)+1]);hY=(Z-2*g*c9)/I+c9*c9;j3=(U-g*hW-B*c9)/I+c9*hW;p=(aR-2*B*hW)/I+hW*hW; +X=cY*cY*hY+2*cY*ho*j3+ho*ho*p;return Math.sqrt(X)}var G,_,M,I,$=C.xW,j=new Array($+1),r=new Array($+1),s=new Array($),e=new Array($+1),P=new Array($+1),l=new Array($+1),x,E,p; +for(G=0;G<$;G++){p=d(C.DQ[d(G-1,$)]-1,$);if(p==G){p=d(G+1,$)}if(p0;_--){l[_]=G; +G=e[G]}l[0]=0;j[0]=0;for(_=1;_<=M;_++){for(G=l[_];G<=P[_];G++){E=-1;for(I=P[_-1];I>=e[G];I--){x=t(C,I,G)+j[I]; +if(E<0||x0;_--){G=r[G];C.alb[_]=G}}function R(C){function t(C,G,x,s,e,b2){var $=C.xW,aB=C.Rb,eB=0,p; +while(x>=$){x-=$;eB+=1}while(G>=$){G-=$;eB-=1}while(x<0){x+=$;eB-=1}while(G<0){G+=$;eB+=1}var et=aB[x+1].x-aB[G].x+eB*aB[$].x,ao=aB[x+1].y-aB[G].y+eB*aB[$].y,eM=aB[x+1].SP-aB[G].SP+eB*aB[$].SP,eT=aB[x+1].IK-aB[G].IK+eB*aB[$].IK,cQ=aB[x+1].cT-aB[G].cT+eB*aB[$].cT,E=x+1-G+eB*$; +s[b2]=et/E;s[b2+1]=ao/E;var a2=(eM-et*et/E)/E,hA=(eT-et*ao/E)/E,gH=(cQ-ao*ao/E)/E,be=(a2+gH+Math.sqrt((a2-gH)*(a2-gH)+4*hA*hA))/2; +a2-=be;gH-=be;if(Math.abs(a2)>=Math.abs(gH)){p=Math.sqrt(a2*a2+hA*hA);if(p!=0){e[b2]=-hA/p;e[b2+1]=a2/p}}else{p=Math.sqrt(gH*gH+hA*hA); +if(p!=0){e[b2]=-gH/p;e[b2+1]=hA/p}}if(p==0){e[b2]=e[b2+1]=0}}var _=C.Yd,M=C.alb,$=C.xW,I=C._Y,j=C.BX,r=C.amE,s=new Array(_*2),e=new Array(_*2),P=new Array(_),l=new Array(3),G,x,E,p,B,U,Z,aR,hY,j3,X; +C.w2=new F(_);for(G=0;G<_;G++){x=M[d(G+1,_)];x=d(x-M[G],$)+M[G];s[G<<1]=0;s[(G<<1)+1]=0;e[G<<1]=0;e[(G<<1)+1]=0; +t(C,M[G],x,s,e,G<<1)}for(G=0;G<_;G++){P[G]=[0,0,0,0,0,0,0,0,0];var f=e[G<<1]*e[G<<1]+e[(G<<1)+1]*e[(G<<1)+1],H=1/f; +if(f!=0){l[0]=e[(G<<1)+1];l[1]=-e[G<<1];l[2]=-l[1]*s[(G<<1)+1]-l[0]*s[G<<1];for(p=0;p<3;p++){P[G][p*3+0]=l[p]*l[0]*H; +P[G][p*3+1]=l[p]*l[1]*H;P[G][p*3+2]=l[p]*l[2]*H}}}var g=[0,0,0,0,0,0,0,0,0];for(G=0;G<_;G++){g[0]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=0; +var c9=I[M[G]<<1]-j,hW=I[(M[G]<<1)+1]-r,cY=0,ho=0;x=d(G-1,_);for(p=0;p<9;p+=3){g[p+0]=P[x][p+0]+P[G][p+0]; +g[p+1]=P[x][p+1]+P[G][p+1];g[p+2]=P[x][p+2]+P[G][p+2]}while(1){var e7=g[0]*g[4]-g[1]*g[3];if(e7!=0){cY=(-g[2]*g[4]+g[5]*g[0])/e7; +ho=(g[2]*g[3]-g[5]*g[0])/e7;break}if(g[0]>g[4]){l[0]=-g[1];l[1]=g[0]}else if(g[4]){l[0]=-g[4];l[1]=g[3]}else{l[0]=1; +l[1]=0}var f=l[0]*l[0]+l[1]*l[1],H=1/f;l[2]=-l[1]*hW-l[0]*c9;for(p=0;p<3;p++){g[p*3+0]+=l[p]*l[0]*H; +g[p*3+1]+=l[p]*l[1]*H;g[p*3+2]+=l[p]*l[2]*H}}B=Math.abs(cY-c9);U=Math.abs(ho-hW);if(B<=.5&&U<=.5){C.w2.Mn[G<<1]=cY+j; +C.w2.Mn[(G<<1)+1]=ho+r;continue}Z=A(g,c9,hW);hY=c9;j3=hW;if(g[0]!=0){for(X=0;X<2;X++){ho=hW-.5+X;cY=-(g[1]*ho+g[2])/g[0]; +B=Math.abs(cY-c9);aR=A(g,cY,ho);if(B<=.5&&aR1?1-1/j:0;s=s*(1/.75)}else{s=4/3}_.U3[M]=s; +var Z=3*M<<1;if(s>=S.a6d){_.du[M]=0;_.Xa[Z+0]=_.Xa[Z+1]=0;_.Xa[Z+2]=H;_.Xa[Z+3]=g;_.Xa[Z+4]=B;_.Xa[Z+5]=U}else{if(s<.55){s=.55}else if(s>1){s=1}var aR=.5+.5*s; +_.du[M]=1;_.Xa[Z]=T(aR,x,H);_.Xa[Z+1]=T(aR,E,g);_.Xa[Z+2]=T(aR,p,H);_.Xa[Z+3]=T(aR,f,g);_.Xa[Z+4]=B; +_.Xa[Z+5]=U}_.alpha[M]=s;_.Wf[M]=.5}_.aeO=1}function L(C){function t(){this.mY=0;this.n5=0;this.aC=0; +this.qC=0;this.Ap=0;this.yc=0;this.H2=0;this.alpha=0}function _(C,G,x,i5,iz,hY,j3){var I=C.w2.rZ,aL=C.w2.Xa,az=C.w2.Mn; +if(G==x)return 1;var hu=G,H=d(G+1,I),aV=d(hu+1,I),eT=az[G<<1],cQ=az[(G<<1)+1],bQ=az[H<<1],dN=az[(H<<1)+1],h0=hY[aV]; +if(h0==0)return 1;var gl=v(eT-bQ,cQ-dN);for(hu=aV;hu!=x;hu=aV){var aV=d(hu+1,I),dQ=d(hu+2,I),di=az[aV<<1],c4=az[(aV<<1)+1],dp=az[dQ<<1],eI=az[(dQ<<1)+1]; +if(hY[aV]!=h0)return 1;if(Math.sign(W(bQ-eT,dN-cQ,dp-di,eI-c4))!=h0)return 1;if(w(bQ-eT,dN-cQ,dp-di,eI-c4)=x){g+=j3[I]}var c$=bp-b2,bk=dU-aB,dr=dh-b2,gj=e0-aB,d0=eq-b2,b1=gO-aB,g7=W(c$,bk,dr,gj),al=W(c$,bk,d0,b1),i6=W(dr,gj,d0,b1),e8=g7+i6-al; +if(al==g7)return 1;var aR=i6/(i6-e8),Z=al/(al-g7),af=al*aR/2;if(af==0)return 1;var fI=g/af,B=2-Math.sqrt(4-fI/.3); +i5.n5=T(aR*B,b2,bp);i5.aC=T(aR*B,aB,dU);i5.qC=T(Z*B,eq,dh);i5.Ap=T(Z*B,gO,e0);i5.alpha=B;i5.yc=aR;i5.H2=Z; +bp=i5.n5;dU=i5.aC;dh=i5.qC;e0=i5.Ap;i5.mY=0;for(hu=d(G+1,I);hu!=x;hu=aV){aV=d(hu+1,I);var g$=az[hu<<1],gW=az[(hu<<1)+1],di=az[aV<<1],c4=az[(aV<<1)+1]; +aR=N(bp-b2,dU-aB,dh-bp,e0-dU,eq-dh,gO-e0,di-g$,c4-gW);if(aR<-.5)return 1;var eK=i(aR,b2,bp,dh,eq),eg=i(aR,aB,dU,e0,gO),gl=v(di-g$,c4-gW); +if(gl==0)return 1;var d6=W(di-g$,c4-gW,eK-g$,eg-gW)/gl;if(Math.abs(d6)>iz)return 1;if(w(di-g$,c4-gW,eK-g$,eg-gW)<0||w(g$-di,gW-c4,eK-di,eg-c4)<0){return 1}i5.mY+=d6*d6}for(hu=G; +hu!=x;hu=aV){aV=d(hu+1,I);var g8=hu*3+2<<1,gp=aV*3+2<<1,a_=aL[g8],ip=aL[g8+1],aP=aL[gp],hv=aL[gp+1]; +aR=N(bp-b2,dU-aB,dh-bp,e0-dU,eq-dh,gO-e0,aP-a_,hv-ip);if(aR<-.5)return 1;var eK=i(aR,b2,bp,dh,eq),eg=i(aR,aB,dU,e0,gO),gl=v(aP-a_,hv-ip); +if(gl==0)return 1;var d6=W(aP-a_,hv-ip,eK-a_,eg-ip)/gl,gx=W(aP-a_,hv-ip,az[aV<<1]-a_,az[(aV<<1)+1]-ip)/gl; +gx*=.75*C.w2.alpha[aV];if(gx<0){d6=-d6;gx=-gx}if(d6=0;G--){E=_(C,G,d(x,I),p,S.ani,hY,j3); +if(E){break}if(e[x]>e[G]+1||e[x]==e[G]+1&&s[x]>s[G]+p.mY){r[x]=G;s[x]=s[G]+p.mY;e[x]=e[G]+1;P[x]=p;p=new t}}}l=e[I]; +U=new F(l);Z=new Array(l);aR=new Array(l);x=I;for(G=l-1;G>=0;G--){var gH=d(x,I),be=G*3+0<<1,e5=gH*3+0<<1; +if(r[x]==x-1){U.du[G]=M.du[gH];U.Xa[be]=M.Xa[e5];U.Xa[be+1]=M.Xa[e5+1];U.Xa[be+2]=M.Xa[e5+2];U.Xa[be+3]=M.Xa[e5+3]; +U.Xa[be+4]=M.Xa[e5+4];U.Xa[be+5]=M.Xa[e5+5];U.Mn[G<<1]=M.Mn[gH<<1];U.Mn[(G<<1)+1]=M.Mn[(gH<<1)+1];U.alpha[G]=M.alpha[gH]; +U.U3[G]=M.U3[gH];U.Wf[G]=M.Wf[gH];Z[G]=aR[G]=1}else{U.du[G]="CURVE";U.Xa[be]=P[x].n5;U.Xa[be+1]=P[x].aC; +U.Xa[be+2]=P[x].qC;U.Xa[be+3]=P[x].Ap;U.Xa[be+4]=M.Xa[e5+4];U.Xa[be+5]=M.Xa[e5+5];U.Mn[G<<1]=T(P[x].H2,M.Xa[e5+4],j[gH<<1]); +U.Mn[(G<<1)+1]=T(P[x].H2,M.Xa[e5+5],j[(gH<<1)+1]);U.alpha[G]=P[x].alpha;U.U3[G]=P[x].alpha;Z[G]=P[x].H2; +aR[G]=P[x].yc}x=r[x]}for(G=0;G"; +for(var G=0;G>>24&255)==0)continue;W+=">0&255,T=w>>8&255,o=w>>16&255,w="rgb("+A+","+T+","+o+")";W+="\" fill=\""+w+"\" fill-rule=\"evenodd\"/>"}W+=""; +return W};ds.a9C=function(a,F,y){var $=a.length>>1,c,Q=a[2*$-3]-y,S=a[2*$-2]-F,h=a[2*$-1]-y,d=h>Q,W=0; +for(var G=0;G<$;G++){c=S;Q=h;S=a[2*G]-F;h=a[2*G+1]-y;if(Q==h)continue;d=h>Q}for(var G=0;G<$;G++){c=S; +Q=h;S=a[2*G]-F;h=a[2*G+1]-y;if(Q<0&&h<0)continue;if(Q>0&&h>0)continue;if(c<0&&S<0)continue;if(Q==h&&Math.min(c,S)<=0)return!0; +if(Q==h)continue;var w=c+(S-c)*-Q/(h-Q);if(w==0)return!0;if(w>0)W++;if(Q==0&&d&&h>Q)W--;if(Q==0&&!d&&hQ}return(W&1)==1};ds.fill=function(a,F,y,c){var Q=F[a],S=[a],h=0;while(hF.getParameter(F.MAX_TEXTURE_SIZE)){V.Vd=!1;alert("Disabling WebGL")}}; +V.rM=function(a,F){return new Float32Array([(a.x-F.x)/F.t,(a.y-F.y)/F.w,a.t/F.t,a.w/F.w])};V.ix=function(){return this.iC}; +V.LH=function(a,F){var y=V.sX;y.bindFramebuffer(y.FRAMEBUFFER,V.P3);y.framebufferTexture2D(y.FRAMEBUFFER,y.COLOR_ATTACHMENT0,y.TEXTURE_2D,a.g6,0); +y.viewport(0,0,a.t,a.w);if(F){y.enable(y.SCISSOR_TEST);y.scissor(F.x,F.y,F.t,F.w)}else y.disable(y.SCISSOR_TEST)}; +V.EC=function(a,F,y){if(y)throw"error";var c=V.sX;c.disable(c.SCISSOR_TEST);c.bindFramebuffer(c.FRAMEBUFFER,null); +c.viewport(0,0,a,F);if(y){c.enable(c.SCISSOR_TEST);c.scissor(y.x,y.y,Math.round(y.t),Math.round(y.w))}else c.disable(c.SCISSOR_TEST)}; +V.clear=function(){var a=V.sX;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT)};V.K$=function(a,F){if(F==null)F=0; +var y=(F>>>0&255)==0,c=(F>>>8&255)==0,Q=(F>>>16&255)==0,S=(F>>>24&255)==0,h=(a>>>0&255)*(1/255),d=(a>>>8&255)*(1/255),W=(a>>>16&255)*(1/255),w=(a>>>24&255)*(1/255),J=V.sX; +J.colorMask(y,c,Q,S);J.clearColor(h,d,W,w);J.clear(J.COLOR_BUFFER_BIT);J.colorMask(!0,!0,!0,!0)};V.rv=function(a,F,y,c,Q){var S=F.Df(c); +if(Q)S=S.Df(Q);if(S.ur())return;var h=V.sX;V.LH(a);h.bindTexture(h.TEXTURE_2D,y.g6);h.copyTexSubImage2D(h.TEXTURE_2D,0,S.x-c.x,S.y-c.y,S.x-F.x,S.y-F.y,S.t,S.w)}; +V.ny=function(G,a,F){var y=V.KP[G];if(y==null||y.t!=a||y.w!=F){if(y)y.delete();y=new V.xY(a,F)}V.KP[G]=y; +return y};V.KP=[];V.Vo=function(){this.wm=null;this.Cp=null};V.Vo.Ie=null;V.Vo.prototype.sB=function(a){if(this.Cp)return; +this.Cp={};var F=V.sX,y=this.wm,c=this.Cp;for(var G=0;G>>1); +F.activeTexture(F["TEXTURE"+(G>>>1)]);F.bindTexture(F.TEXTURE_2D,a[G+1])}F.activeTexture(F.TEXTURE0)}; +V.Vo.prototype.d3=function(a,F){var y=V.sX,c=y.createShader(y.FRAGMENT_SHADER);y.shaderSource(c,a);y.compileShader(c); +if(!y.getShaderParameter(c,y.COMPILE_STATUS))console.log(y.getShaderInfoLog(c));var Q=y.createShader(y.VERTEX_SHADER); +y.shaderSource(Q,F);y.compileShader(Q);if(!y.getShaderParameter(Q,y.COMPILE_STATUS))console.log(y.getShaderInfoLog(Q)); +var S=y.createProgram();y.attachShader(S,Q);y.attachShader(S,c);y.linkProgram(S);if(!y.getProgramParameter(S,y.LINK_STATUS))console.log("Could not initialise shaders"); +this.wm=S};V.Vo.prototype.uq=function(){if(V.Vo.Ie!=this){V.sX.useProgram(this.wm);V.Vo.Ie=this}};V.FA=function(a,F){V.CK++; +V.Hw+=a*F;if(V.vF)console.log("GL.Channels instances: "+V.CK+", memory: "+V.Hw);var y=V.sX;this.t=a; +this.w=F;this.g6=y.createTexture();this.HU=null;this.Dn(this.g6,a,F)};V.FA.prototype.Dn=function(a,F,y){var c=V.sX; +c.bindTexture(c.TEXTURE_2D,a);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.NEAREST);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.NEAREST); +c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE); +c.texImage2D(c.TEXTURE_2D,0,c.ALPHA,F,y,0,c.ALPHA,c.UNSIGNED_BYTE,null)};V.FA.prototype.set=function(a){var F=V.sX; +F.bindTexture(F.TEXTURE_2D,this.g6);F.pixelStorei(F.UNPACK_ALIGNMENT,1);F.texImage2D(F.TEXTURE_2D,0,F.ALPHA,this.t,this.w,0,F.ALPHA,F.UNSIGNED_BYTE,a); +F.pixelStorei(F.UNPACK_ALIGNMENT,4)};V.FA.prototype.delete=function(){var a=V.sX;if(this.g6){a.deleteTexture(this.g6); +V.CK--;V.Hw-=this.t*this.w}if(V.vF)if(V.vF)console.log("GL.Channels instances: "+V.CK+", memory: "+V.Hw*4)}; +V.CK=0;V.xY=function(a,F,y){if(y==null)y=!1;V.CK++;V.Hw+=a*F*4;if(V.vF)console.log("GL.Channels instances: "+V.CK+", memory: "+V.Hw); +var c=V.sX;this.a2D=y;this.t=a;this.w=F;this.g6=c.createTexture();this.HU=null;this.Dn(this.g6,a,F)}; +V.xY.prototype.set=function(a,F){var y=V.sX;y.disable(y.SCISSOR_TEST);y.bindTexture(y.TEXTURE_2D,this.g6); +if(a==null||a instanceof Uint8Array){var c=this.t*this.w;if(F==null||F.L()*10>c)y.texImage2D(y.TEXTURE_2D,0,y.RGBA,this.t,this.w,0,y.RGBA,y.UNSIGNED_BYTE,a); +else{var Q=D.G(F.L()*4);D.vD(a,new cJ(0,0,this.t,this.w),Q,F);y.texSubImage2D(y.TEXTURE_2D,0,F.x,F.y,F.t,F.w,y.RGBA,y.UNSIGNED_BYTE,Q)}}else y.texImage2D(y.TEXTURE_2D,0,y.RGBA,y.RGBA,y.UNSIGNED_BYTE,a)}; +V.xY.prototype.get=function(a){var F=V.sX;V.LH(this);F.readPixels(0,0,this.t,this.w,F.RGBA,F.UNSIGNED_BYTE,a)}; +V.xY.prototype.y9=function(a){if(a.ur())return;var F=V.sX;if(this.HU==null){this.HU=F.createTexture(); +this.Dn(this.HU,this.t,this.w);V.CK++;V.Hw+=this.t*this.w*4}F.bindFramebuffer(F.FRAMEBUFFER,V.P3);F.bindTexture(F.TEXTURE_2D,this.HU); +if(a){var y=Math.max(a.x,0),c=Math.max(a.y,0);F.copyTexSubImage2D(F.TEXTURE_2D,0,y,c,y,c,a.t,a.w)}else F.copyTexImage2D(F.TEXTURE_2D,0,F.RGBA,0,0,this.t,this.w,0)}; +V.xY.prototype.Dn=function(a,F,y){var c=V.sX;c.bindTexture(c.TEXTURE_2D,a);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,this.a2D?c.LINEAR:c.NEAREST); +c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.NEAREST);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE); +c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);c.texImage2D(c.TEXTURE_2D,0,c.RGBA,F,y,0,c.RGBA,c.UNSIGNED_BYTE,null)}; +V.xY.prototype.delete=function(){var a=V.sX;if(this.g6){a.deleteTexture(this.g6);V.CK--;V.Hw-=this.t*this.w*4}if(this.HU){a.deleteTexture(this.HU); +V.CK--;V.Hw-=this.t*this.w*4}if(V.vF)if(V.vF)console.log("GL.Channels instances: "+V.CK+", memory: "+V.Hw)}; +V.xY.prototype.clone=function(){var a=V.sX,F=new V.xY(this.t,this.w);V.LH(this);a.bindTexture(a.TEXTURE_2D,F.g6); +a.copyTexImage2D(a.TEXTURE_2D,0,a.RGBA,0,0,this.t,this.w,0);return F};V.ZN={a6c:" vec3 ocbrn(vec3 a, vec3 b, float f) { vec3 d = (a*vec3(f)+ONE3-vec3(f)); return mix(ONE3 - min(ONE3,(ONE3-b)/d), ZERO3, vec3(vec3(greaterThan(vec3(0.001),d))) ); } ",aq5:" vec3 ocddg(vec3 a, vec3 b, float f) { return mix( min(ONE3, b/(ONE3 - a*f)) , ONE3 , vec3(equal(a*f,ONE3 )) ); } ",hA:"const vec3 ZERO3 = vec3(0.0,0.0,0.0) ;\t\t\tconst vec3 QUAR3 = vec3(0.25,0.25,0.25) ;\t\t\tconst vec3 HALF3 = vec3(0.5,0.5,0.5) ;\t\t\tconst vec3 ONE3 = vec3(1.0,1.0,1.0) ;",Rw:" float hueDiff(float shue, float hue) { \t\t\t\tfloat df = hue-shue, adf=abs(df), df0 = df-1.0, df1 = df+1.0; \t\t\t\tif(abs(df0) < adf) df = df0; \t\t\t\telse if(abs(df1) < adf) df = df1; \t\t\t\treturn df; \t\t\t}",JQ:" float hueCF(float hueS, float hue0) { \t\t\t\tfloat df = hueDiff(hue0, hueS)*6.0; \t\t\t\treturn max(0.0, min(1.0, (df<0.0) ? 1.0+df : 1.0-df )); } ",pt:"float sat(vec3 c) { return max(c.x,max(c.y,c.z)) - min(c.x,min(c.y,c.z)); }",b6:"float lum(vec3 c) { return dot(c, vec3(0.3,0.59,0.11)); } ",sY:"vec3 D (vec3 x) { return mix( sqrt(x), ((16.0*x-12.0)*x+4.0)*x , vec3(lessThanEqual(x,QUAR3)) ); }",a8C:"float midSat (vec3 v, float s) { return ((v.y-v.z)*s)/(v.x-v.z); }",Jc:"vec3 setSat (vec3 c, float s) \t\t\t{\t\t\t\tvec3 o;\t\t\t\tif(c.r==c.g && c.g==c.b) o = ZERO3;\t\t\t\telse if(c.r>c.g) {\t\t\t\t\tif(c.r>c.b) {\t\t\t\t\t\tif(c.g>c.b)\to = vec3(s, midSat(c.rgb,s), 0.0); \t\t\t\t\t\telse\to = vec3(s, 0.0, midSat(c.rbg,s)); \t\t\t\t\t}\t\t\t\t\telse\t\to = vec3(midSat(c.brg,s), 0.0, s); \t\t\t\t} else {\t\t\t\t\tif(c.rc.b)\to = vec3(0.0, s, midSat(c.gbr,s)); \t\t\t\t\t\telse\t o = vec3(0.0, midSat(c.bgr,s), s); \t\t\t\t\t}\t\t\t\t\telse\t\t o = vec3(midSat(c.grb,s), s, 0.0);\t\t\t\t}\t\t\t\treturn o;\t\t\t}",a6T:"vec3 clipCol(vec3 c) \t\t\t{ \t\t\t\tvec3 o = c; float l = lum(c); \t\t\t\tfloat n = min(c.r,min(c.g,c.b)); \t\t\t\tfloat x = max(c.r,max(c.g,c.b)); \t\t\t\tif(n<0.0) o = l + (o-l)*(l/(l-n));\t\t\t\tif(x>1.0) o = l + (o-l)*(1.0-l)/(x-l);\t\t\t\treturn o;\t\t\t}",jH:"vec3 setLum (vec3 c, float l) { return clipCol(c+l-lum(c)); } ",sa:"bool in01(vec2 c) { return (0.0<=c.x) && (c.x<=1.0) && (0.0<=c.y) && (c.y<=1.0); }",hash:"float hash(vec2 v) { return fract(sin(dot(v ,vec2(12.9898,78.233))) * 43758.5453); }",ux:"vec3 rgbToHsl (vec3 rgb) {\t\t\t\tfloat r = rgb.r, g = rgb.g, b = rgb.b; \t\t\t\tfloat mx = max(r, max(g, b)), mn = min(r, min(g, b)); \t\t\t\tfloat h, s, l = (mx + mn) * 0.5;\t\t\t\t\t\t\t\tif(mx == mn) h = s = 0.0; \t\t\t\telse{ \t\t\t\t\tfloat d = mx - mn; \t\t\t\t\ts = l > 0.5 ? d / (2.0 - mx - mn) : d / (mx + mn); \t\t\t\t\t\t\t\t\t\tif(mx==r) h = (g - b) / d + (g < b ? 6.0 : 0.0); \t\t\t\t\telse if(mx==g) h = (b - r) / d + 2.0; \t\t\t\t\telse if(mx==b) h = (r - g) / d + 4.0; \t\t\t\t\t\t\t\t\t\th /= 6.0; \t\t\t\t} \t\t\t\treturn vec3(h,s,l); }",ae:"vec3 hslToRgb (float h, float s, float l){\t\t\t\tfloat r, g, b;\t\t\t\t\t\t\t\tif(s == 0.0) r = g = b = l; \t\t\t\telse{ \t\t\t\t\tfloat q = l < 0.5 ? l * (1.0 + s) : l + s - l * s; \t\t\t\t\tfloat p = 2.0 * l - q; \t\t\t\t\tr = hue2rgb(p, q, h + 1.0/3.0); \t\t\t\t\tg = hue2rgb(p, q, h); \t\t\t\t\tb = hue2rgb(p, q, h - 1.0/3.0); \t\t\t\t} \t\t\t\treturn vec3(r,g,b); } ",Di:"float hue2rgb(float p, float q, float t){ \t\t\t\tif(t < 0.0) t += 1.0;\t\t\t\tif(t > 1.0) t -= 1.0;\t\t\t\tif(t < 1.0/6.0) return p + (q - p) * 6.0 * t; \t\t\t\tif(t < 1.0/2.0) return q; \t\t\t\tif(t < 2.0/3.0) return p + (q - p) * (2.0/3.0 - t) * 6.0; \t\t\t\treturn p;\t}",dL:"vec3 rgbToHsv(vec3 rgb){\t\t\t\t\tfloat r = rgb.r, g = rgb.g, b = rgb.b; \t\t\t\tfloat mx = max(r, max(g, b)), mn = min(r, min(g, b)); \t\t\t\tfloat h, s, v = mx; \t\t\t\t\t\t\t\tfloat d = mx - mn; \t\t\t\ts = mx == 0.0 ? 0.0 : d / mx; \t\t\t\t\t\t\t\tif(mx == mn) h = 0.0; \t\t\t\telse if(mx==r) h = (g - b) / d + (g < b ? 6.0 : 0.0); \t\t\t\telse if(mx==g) h = (b - r) / d + 2.0; \t\t\t\telse if(mx==b) h = (r - g) / d + 4.0; \t\t\t\t\t\t\t\th /= 6.0; \t\t\t\treturn vec3(h,s,v); }",By:"vec3 hsvToRgb(float h, float s, float v) { \t\t\t\tfloat r, g, b, f, p, q, t, i; \t\t\t\ti = floor(h * 6.0); \t\t\t\tf = h * 6.0 - i; \t\t\t\tp = v * (1.0 - s); \t\t\t\tq = v * (1.0 - f * s); \t\t\t\tt = v * (1.0 - (1.0 - f) * s); \t\t\t\t\t\t\t\tif (i==0.0) { r = v, g = t, b = p; }\t\t\t\telse if(i==1.0) { r = q, g = v, b = p; }\t\t\t\telse if(i==2.0) { r = p, g = v, b = t; }\t\t\t\telse if(i==3.0) { r = p, g = q, b = v; }\t\t\t\telse if(i==4.0) { r = t, g = p, b = v; }\t\t\t\telse if(i==5.0) { r = v, g = p, b = q; }\t\t\t\t\t\t\t\treturn vec3(r,g,b); }",B3:"\t\tfloat srgbUngamma(float x) {\t\t\treturn (x<0.04045) ? (x / 12.92) : pow( ( x + 0.055 ) / 1.055, 2.4);\t\t}\t\tfloat xyzScale(float x) {\t\t\treturn (x>0.008856) ? pow(x,1.0/3.0) : (903.3*x+16.0)*(1.0/116.0); \t\t}\t\tvec3 rgbToLab(vec3 rgb) {\t\t\tbool ok = true;\t\t\trgb.r = srgbUngamma(rgb.r); \t\t\trgb.g = srgbUngamma(rgb.g); \t\t\trgb.b = srgbUngamma(rgb.b); \t\t\tok = ok && 0.0318<=rgb.r && rgb.r<=0.0319; \t\t\tok = ok && 0.127 <=rgb.g && rgb.g<=0.128 ; \t\t\tok = ok && 0.3047<=rgb.b && rgb.b<=0.305; \t\t\t\t\t\tmat3 srgb2xyz = mat3(0.4360747164307918, 0.222504478679176, 0.013932173981751634, 0.3850649153329662, 0.7168786002139355, 0.09710452396580642, 0.14308038098632878, 0.06061692340677909, 0.7141732835334675); \t\t\t\t\t\tvec3 xyz = srgb2xyz*rgb; \t\t\tok = ok && 0.106<=xyz[0] && xyz[0]<=0.107; \t\t\t\t\t\txyz=xyz*vec3(100.0/96.72, 100.0/100.0, 100.0/81.427); \t\t\txyz.x = xyzScale(xyz.x); \t\t\txyz.y = xyzScale(xyz.y); \t\t\txyz.z = xyzScale(xyz.z); \t\t\t\t\t\treturn vec3(116.0*xyz.y-16.0, 500.0*(xyz.x-xyz.y), 200.0*(xyz.y-xyz.z)); \t\t} \t\tfloat labSimilar(vec3 lab, vec3 mnm, vec3 mxm, float lim) {\t\t\tfloat L=lab.x, a=lab.y, b=lab.z; \t\t\tfloat dl = ((L1.0?1.0:mi);\t\t}"}; +V.mt={S8:{},EO:"\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 sCoord;\t\t\tvoid main(void) {\t\t\t\tsCoord = verPos;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}"}; +V.mt.D5=function(a,F){var y=eU.ly,c=[y.ar,y.eV,y.k6,y.yt,y.ox,y.zF,y.YO,y.ED].indexOf(a.type),Q=V.mt.S8[a.type]; +if(Q==null)Q=V.mt.S8[a.type]=new V.S8[c];Q.uq();Q.Yi(F,a);V.sX.drawArrays(V.sX.TRIANGLES,0,6)};V.S8=[]; +V.S8[0]=function(){V.Vo.call(this);this.pY={};var a="\t\t\tprecision mediump float;\t\t\t"+V.ZN.b6+"\t\t\t"+V.ZN.hA+"\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D map;\t\t\tuniform float toGray;\t\t\tuniform float presLum;\t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tfloat olum = lum(src.rgb); \t\t\t\tsrc.rgb = toGray * vec3(olum) + (1.0-toGray)*src.rgb; \t\t\t\tfloat r = texture2D(map, vec2(src.r, 0)).r;\t\t\t\tfloat g = texture2D(map, vec2(src.g, 0)).g;\t\t\t\tfloat b = texture2D(map, vec2(src.b, 0)).b;\t\t\t\tvec3 col = vec3(r,g,b); \t\t\t\tif(presLum==1.0) { \t\t\t\t\tfloat nlum = lum(col); \t\t\t\t\tif(olum>nlum) col += (olum-nlum)/(1.0-nlum)*(ONE3-col); \t\t\t\t\telse if(nlum==0.0) col = ZERO3; \t\t\t\t\telse col = (olum/nlum) * col; \t\t\t\t}\t\t\t\tgl_FragColor = vec4(col,src.w);\t\t\t\t\t\t\t}"; +this.d3(a,V.mt.EO)};V.S8[0].prototype=new V.Vo;V.S8[0].prototype.Yi=function(a,F){var y={i:F.iP,m:F.f5,d:F.Wn,re:D.G(F.iP.length)},c=y.i.length; +if(this.pY["m"+c]==null){this.pY["m"+c]={a3C:new V.xY(c,1),BN:D.G(c*4)}}var Q=this.pY["m"+c];D.Xy(y,Q.BN,0); +var S=Q.a3C;S.set(Q.BN);this.sB(["source","map","toGray","presLum"]);var h=V.sX,d=this.Cp;h.uniform1f(d.toGray,F.nl?1:0); +h.uniform1f(d.presLum,F.xR?1:0);this.jC([d.source,a,d.map,S.g6])};V.S8[1]=function(){V.Vo.call(this); +this.aci=new V.xY(256,1);this.ahU=D.G(256*4);var a="\t\t\t\tprecision mediump float;\t\t\t\t"+V.ZN.Di+"\t\t\t\t"+V.ZN.ux+"\t\t\t\t"+V.ZN.ae+"\t\t\t\t\t\t\t\tuniform sampler2D source;\t\t\t\tuniform sampler2D map;\t\t\t\tuniform float cfa; \t\t\t\tuniform float cfb; \t\t\t\tuniform int colorize; \t\t\t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\t\t\tvoid main(void) { \t\t\t\t\tvec4 src = texture2D(source, sCoord);\t\t\t\t\tvec3 rgb = src.rgb;\t\t\t\t\tfloat mn=min(rgb.r,min(rgb.g,rgb.b)), mx = max(rgb.r,max(rgb.g,rgb.b));\t\t\t\t\t\t\t\t\t\tvec3 hsl = rgbToHsl(rgb); \t\t\t\t\tfloat h = hsl.r, s = hsl.g, l = hsl.b; \t\t\t\t\t\t\t\t\t\tvec4 mapv = texture2D(map, vec2(h, 0));\t\t\t\t\tfloat nh = mapv.r; \t\t\t\t\tfloat sc = mapv.g*2.0-1.0; \t\t\t\t\tfloat lc = mapv.b*2.0-1.0; \t\t\t\t\t\t\t\t\t\tfloat cf = -lc, tv=mn;\t\t\t\t\tif(0.00.0) sc = pow(tan((3.14159265359/2.0)*sc),1.3);\t\t\t\t\t\tns = min(s * (1.0 + sc), 1.0); \t\t\t\t\t} \t\t\t\t\t\t\t\t\t\tgl_FragColor = vec4(hslToRgb(nh,ns,l),src.w); \t\t\t\t\t\t\t\t\t}"; +this.d3(a,V.mt.EO)};V.S8[1].prototype=new V.Vo;V.S8[1].prototype.Yi=function(a,F){D.Xy({i:F.aaP,m:F.uC,d:F.aqi,re:D.G(256)},this.ahU); +this.aci.set(this.ahU);this.sB(["source","map","cfa","cfb","colorize"]);var y=V.sX,c=this.Cp;y.uniform1f(c.cfa,F.a8V); +y.uniform1f(c.cfb,F.HI);y.uniform1i(c.colorize,F.ar9);this.jC([c.source,a,c.map,this.aci.g6])};V.S8[2]=function(){V.Vo.call(this); +var a="\t\t\tprecision mediump float;\t\t\t"+V.ZN.Di+"\t\t\t"+V.ZN.dL+"\t\t\t"+V.ZN.By+"\t\t\t"+V.ZN.ux+"\t\t\t"+V.ZN.ae+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform float vib; \t\t\tuniform float sat; \t\t\tconst float PI = 3.141592653; \t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) { \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tvec3 hsl = rgbToHsv(src.rgb); \t\t\t\tfloat h=hsl.r, s=hsl.g, l=hsl.b; \t\t\t\t\t\t\t\tfloat sk0 = 0.0, sk1 = 45.0/360.0; \t\t\t\tfloat skin = (h2OI;5g7:@5nVPLIGeVMX`|njge-'&-$V&)/$BbHB4D%GNx`KSI=_f_menp%E+%vwKB4&'XQY``edhootpjxp&%*'vhxY{#>5HINMDXX]YnVW",qA:0,$S:1,Mp:2,ST:3}; +V.filter.D5=function(a,F){var y=V.filter,c=[y.qA,y.$S,y.Mp,y.ST].indexOf(a.type),Q=V.filter.bB[a.type]; +if(Q==null)Q=V.filter.bB[a.type]=new V.bB[c];Q.uq();Q.Yi(F,a);V.sX.drawArrays(V.sX.TRIANGLES,0,6)};V.bB=[0,0,0,0,0,0,0]; +V.bB[3]=function(){V.Vo.call(this);var a="1%* !*709;O@;=ETOUgQZ`Uk5rnllx~|2)y)/.*:\\qPGFOOCH!^ZXXdjh}wij<-y+~T2.,,8>{wuu\"(&;5'(ZJ<@=JtRNLLX^\\qbYo2!tvv'@N,(&&286K<3IkZNPP`z(fThremi%~pqC4+]-06+d/?BBXEM2TTdugYZ.|v,\" qrF5)X,#=OAWACCSlkYoY[[k&!6pfx||{0!w2D-$>P<\\J`HhWioTKewc$s(o0|14JNDEJX>:,-_OE7G@qi[MN!pdo&|vhi<, ,>42$%WG=/H*8FySLTp\\g{&))4:;7CC;$0CSRPXZ_cg]Wd]quw~$}'-/50=wm $$#7-~8y(6L\\RRiYLP^}gZfo.z/Dr{\"v-;1#)d/3AH?cORDJ$UUygY_~>45:6,*{|O?6;6f5>D9O]T[$yz ~ubjb?66;Iw$*B$-3(>LIob).\"|^$(>C72s(+,\"rzrOFFKK+3+e77[PuiRDJehh0gY_'!gvx\"y\",~W&28P2;A6LZV}p7<0+k26LQE@!6KCBGC9'06+AO6NuTiKSK&WW{o6*rdj&)(P(y GA(79B:BL?wIImiU]Bddt&wij>5s,B3H2$*T[\\a]`c]DSU^V^h[4rde9(nz$Q, 6599/^sZIHQQEJsja4cfla+ykl>7u.D5GK.?3Vk:CI>TbIM)PTh obft4my#A.BW&/5*@N3K?wmnvpMYb!h$,-7>2nz$B~EMNTWS0>CC /#KO,8A_G?=]kcM\\Pyi[\\/'9384Iw!'{2@49>iW6:t@DRYPj-p{~^bpwn6os;D|!/6-PJgP[:>y|rsx+~ %2#ae1ko}%{?H $KNc2;A6LZAX!ww||chm7ry0En&L(-(H]'>S04}M?H'VV\\b0i\\hq=#"; +this.d3(z.a9(a),z.a9(V.filter.EO))};V.bB[3].prototype=new V.Vo;V.bB[3].prototype.Yi=function(a,F){this.sB("source iwh tdep rrad spec nois poly0 poly1".split(" ")); +var y=V.sX,c=this.Cp;y.uniform2fv(c.iwh,F.ir);y.uniform1f(c.tdep,F.a7V);y.uniform1f(c.rrad,F.a6F);y.uniform2fv(c.spec,F.abK); +y.uniform3fv(c.nois,F.ab5);y.uniformMatrix4fv(c.poly0,!1,F.adk);y.uniformMatrix4fv(c.poly1,!1,F.akH); +this.jC([c.source,a]);var Q=y.LINEAR;y.activeTexture(y.TEXTURE0);y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MIN_FILTER,Q); +y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MAG_FILTER,Q);y.activeTexture(y.TEXTURE0)};V.bB[0]=function(){V.Vo.call(this); +var a="1%* !*709;O@;=ETOUgQZ`Uk5|uqoo{\" 5,|,21-=_tSJIRRFK$kd`^^jpn$}opB3 1%ZB;755AGEZTFGyiYT.unjhhtzx.w!'{2@7/3;5mUO=Q[NVRmgYZ,|sFux~sM5~(.#9G23E'?;AOZm_QR$th$}|$mv|q(62M?_E=1GFJJ@o%kZYbbV[%{o-{mn@9AHHMLCVW\\X\\?PDgo\\#jT]cXn|x5&F,$w.-11'VkRA@II=BkbVsbTU' z//43*=>C?C&7+NVCiQ;DJ?Uc`zl-rj^tswwm=R9('00$)RI=ZI;^DWXd\\S;Sn_ epe!~n)$9!zlm@0\"6V<.286-;;O=bTFGyqyTk(#`x31(8r*DA~7ROF.E_\\:Rlgj g]Seiih|drz1xs>$AV>?D>:75SD;FNj\\XUSztszdmsh~-({6V5g7:@5\\`QEzbc"; +this.d3(z.a9(a),z.a9(V.filter.EO))};V.bB[0].prototype=new V.Vo;V.bB[0].prototype.Yi=function(a,F){this.sB(["source","iwh","ld","shine"]); +var y=V.sX,c=this.Cp;y.uniform2fv(c.iwh,F.ir);y.uniform3fv(c.ld,F.alM);y.uniform1f(c.shine,F.a1T);this.jC([c.source,a,c.tang,F.hY])}; +V.bB[1]=function(){V.Vo.call(this);var a="1%* !*709;O@;=ETOUgQZ`Uk5|uqoo{\" 5,|,21-=_tSJIRRFK$kd`^^jpn$}opB3 1%ZB;755AGEZDMSH^lYfY4{tpnnz!~4}'-\"8F,?9FJEAya[I]gZb^ysef8) R\"%+ YA+4:/ES?;PHjLU[Pfths*!jsyn%3'3E?>E/8>3IWM?X:HVl-ribj'r}2PpV@IORXp\\w-tn`a3$u|]0P6*I.3`H2;A6LZQqt$]V^z'**/+@(\"stF7}M@`F-LlRLXf^DWQ^b]Yv$|hdyq4r\")@,L:MQ>^a_:IPgSsbtxe&)$9!vl~##\"6,0,7OP\\\\acjhmi~fglfb_]{lcnv3%!}{C=& qrF5{++AaG?3IHLLBq'm\\[ddX]'}tGvy t?D>:75SD;FNj\\XUSztszdmsh~-x+S-&'0'S?89B9u]GPVKaofmx9~338F.(yzN=494IiOG;QPTTJy/udcll`e/&|O~\"(|DYA;-._P:GYy_tsxuvfZpossi9N5%t%!H?6h8;A6]eSWmZLM~w#$.(/0:14I1+|}O@(FfL6CpXBNTlQYbp]4*8 lB;G/{@CD>=D>01bSGYy_V)X[aV0wams,mv|q(6,YOPUcKAmfgjmns\"i_z}~xw~xjk=.~x7W=RQVSTD8NMQQGv,rbRb^&|p,4\"&<)z{MFQR\\V]^h_bw_LLpP^f|e_*e-C:;@<65<-'bU93lTUZB`!fWQ+rfx'<\"rl5w)|R:$-3(>LGRrXSDKLP_uc|2ypup&4I/*?-!76::0_t[JIRRFKtk_z0wnu,A~E-yy>,Z\\+=QK1D:9Fx`afN*|Yf4{|\"ltjT$u~]--39IiOFKFefrrwyah|2yz"; +this.d3(z.a9(a),z.a9(V.filter.EO))};V.bB[2].prototype=new V.Vo;V.bB[2].prototype.Yi=function(a,F){this.sB(["source","tang","iwh","sigma","expo"]); +var y=V.sX,c=this.Cp;y.uniform2fv(c.iwh,F.ir);y.uniform1f(c.sigma,F.ajx);y.uniform1f(c.expo,F.a9v);this.jC([c.source,a,c.tang,F.hY]); +var Q=y.LINEAR;y.activeTexture(y.TEXTURE0);y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MIN_FILTER,Q);y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MAG_FILTER,Q); +y.activeTexture(y.TEXTURE0)};V.R={};V.R.Yk={};V.R.rB=null;V.R.ms=null;V.R.V8=null;V.R.hr=function(a,F,y,c,Q,S,h,d){if(d==null)d=hN.$E(); +if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(a)==-1){h=h*d.fill;d.fill=1;d.style=!1}var W=a+(d.Sk?"1":""); +if(V.R.Yk[W]==null)V.R.Yk[W]=new V.R.lk(a,d.Sk!=null);var w=V.R.Yk[W],J=y.Df(Q).Df(S);J.offset(-Q.x,-Q.y); +if(J.ur())return;var A=V.sX;V.LH(c,J);c.y9(J);w.uq();w.Yi(F.g6,c.HU,V.rM(y,Q),h,d.fill,d.style?1:0,d.Zl?1:0,d.Sk?new Float32Array(d.Sk):null); +A.drawArrays(A.TRIANGLES,0,6)};V.R.v3=function(a,F,y,c,Q,S,h,d,W,w,J){if(V.R.rB==null)V.R.rB=new V.R.OT(!0,!0); +if(V.R.ms==null)V.R.ms=new V.R.OT(!0,!1);if(V.R.V8==null)V.R.V8=new V.R.OT(!1,!0);var A=w?1:0,T=a?Q?V.R.rB:V.R.ms:V.R.V8,o=new Float32Array(J?[J[0],J[1],J[2],1]:[1,1,1,1]),v=F?F.Df(c).Df(d):c.Df(d); +if(v.ur())return;v.offset(-c.x,-c.y);var i=V.sX;V.LH(y,v);y.y9(v);T.uq();if(a==null)T.Yi(null,y.HU,Q.g6,V.rM(c,c),V.rM(S,c),h/255,W,A,o); +else if(Q)T.Yi(a.g6,y.HU,Q.g6,V.rM(F,c),V.rM(S,c),h/255,W,A,o);else T.Yi(a.g6,y.HU,null,V.rM(F,c),null,h/255,W,A,o); +i.drawArrays(i.TRIANGLES,0,6)};V.R.ahq=function(a,F,y){if(V.R.a33==null)V.R.a33=new V.R._q;var c=V.R.a33,Q=new cJ(0,0,a.t,a.w),S=V.sX; +V.LH(F);F.y9(Q);c.uq();c.Yi(Q,a.g6,F.HU,y.g6);S.drawArrays(S.TRIANGLES,0,6)};V.R.h8={norm:"return a;",diss:"return a;",dark:"return min(a,b);","mul ":"return a*b;",idiv:" vec3 d = (a*vec3(f)+ONE3-vec3(f)); return mix(mix(ONE3-((ONE3-b)/max(d,vec3(1e-6))), ZERO3, vec3(greaterThanEqual(ONE3-b,d)) ), ONE3 , vec3(equal(b,ONE3) )); ",lbrn:"return max(ZERO3, a*f+b-f);",dkCl:"return ( lum(a)lum(b) ? a : b );",over:"return mix( a+(2.0*b -1.0)-a*(2.0*b-1.0) , 2.0*b*a , step(-HALF3,-b) );",sLit:"return mix( b+(2.0*a -1.0)*(D(b)-b) , b-(1.0-2.0*a)*b*(1.0-b) , step(-HALF3,-a) );",hLit:"return mix( b+(2.0*a -1.0)-b*(2.0*a-1.0) , 2.0*a*b , step(-HALF3,-a) );",vLit:" return mix( ocddg(2.0*a-1.0,b,f) , ocbrn(2.0*a,b,f) , vec3(greaterThanEqual(HALF3,a))); ",lLit:"return mix( min(ONE3, (2.0*a-1.0)*f+b) , max(ZERO3, 2.0*a*f+b-f) , step(-HALF3,-a));",pLit:"return mix( max(2.0*a-1.0,b) , min(2.0*a, b) , step(-HALF3,-a) );",hMix:"if(f>0.99) return vec3(greaterThanEqual(a+b,ONE3)); return min( ONE3, max(ZERO3, (b+a*f-f)/(1.0-f+1e-6) )) ; ",diff:"return abs(a*f-b);",smud:"return a+b-2.0*a*b;",fsub:"return max(b-a, ZERO3);",fdiv:"return min(b/a, ONE3);","hue ":"return setLum( setSat(a, sat(b)) , lum(b) ); ","sat ":"return setLum( setSat(b, sat(a)) , lum(b) ); ",colr:"return setLum( a, lum(b) ); ","lum ":"return setLum( b, lum(a) ); "}; +V.R.lk=function(a,F){V.Vo.call(this);var y="\t\t\tprecision mediump float;\t\t\t"+V.ZN.hA+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D target;\t\t\tuniform float alpha;\t\t\tuniform float fill;\t\t\tuniform float style;\t\t\tuniform float keepBGA;\t\t\t"+(F?"uniform vec4 blIf[10];":"")+"\t\t\t\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\t\t\t\t\t\t\t"+V.ZN.pt+"\t\t\t"+V.ZN.b6+"\t\t\t"+V.ZN.sY+"\t\t\t"+V.ZN.a6c+"\t\t\t"+V.ZN.aq5+"\t\t\t"+V.ZN.a8C+"\t\t\t"+V.ZN.Jc+"\t\t\t"+V.ZN.a6T+"\t\t\t"+V.ZN.jH+"\t\t\t"+V.ZN.hash+"\t\t\t"+(F?V.ZN._M:"")+"\t\t\t\t\t\tvec3 BB(vec3 a, vec3 b, float f) { "+V.R.h8[a]+" } \t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = texture2D(source, sCoord);",c="\t\t\tattribute vec2 verPos;\t\t\tuniform vec4 srct;\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvoid main(void) {\t\t\t\ttCoord = verPos;\t\t\t\tsCoord = (verPos-srct.xy)/srct.zw;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}"; +if(a=="diss")y+="\t\t\t\t\tgl_FragColor = (hash(tCoord) >= (keepBGA + (1.0-keepBGA)*src.w)*alpha ? tgt : vec4(src.xyz, keepBGA*tgt.w + (1.0-keepBGA))); }"; +else y+=" \t\t\t\t\tfloat as = (keepBGA + (1.0-keepBGA)*src.w) * alpha, at = keepBGA + (1.0-keepBGA)*tgt.w; \t\t\t\t\t"+(F?" as*=blendIf(src,tgt,blIf); ":"")+"\t\t\t\t\tfloat ats = at * (1.0-as), ao = as + ats, iao = (ao==0.0) ? 0.0 : (1.0/ao); \t\t\t\t\tfloat ccf = (style==1.0) ? 1.0 : as; \t\t\t\t\tvec3 ncl = ( (1.0-at)*as*src.xyz + (1.0-ccf)*at*tgt.xyz + ccf*at*BB(src.xyz, tgt.xyz, (1.0+as-ccf)*fill) ) * iao;\t\t\t\t\tgl_FragColor = vec4(ncl, keepBGA*tgt.w + (1.0-keepBGA)*(as*fill + at*(1.0-as*fill)));\t\t\t\t\t\t\t}"; +this.d3(y,c)};V.R.lk.prototype=new V.Vo;V.R.lk.prototype.Yi=function(a,F,y,c,Q,S,h,d){this.sB("srct alpha source target fill style keepBGA blIf".split(" ")); +var W=V.sX,w=this.Cp;W.uniform4fv(w.srct,y);W.uniform1f(w.alpha,c);W.uniform1f(w.fill,Q);W.uniform1f(w.style,S); +W.uniform1f(w.keepBGA,h);if(d)W.uniform4fv(w.blIf,d);this.jC([w.source,a,w.target,F])};V.R.OT=function(a,F){V.Vo.call(this); +this.ae6=a;this.g0=F;var y="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D target;\t\t\tuniform sampler2D weight;\t\t\tuniform vec4 cswitch;\t\t\tuniform float wcolor;\t\t\tuniform float awg; /* additional weight */\t\t\tuniform float dissv;\t\t\t\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvarying vec2 wCoord;\t\t\t\t\t\t"+V.ZN.sa+"\t\t\t"+V.ZN.hash+"\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = "+(a?"texture2D(source, sCoord)":"vec4(0.0)")+"; \t\t\t\tfloat wg = awg "+(F?"* (in01(wCoord) ? texture2D(weight, wCoord).w : wcolor)":"")+";\t\t\t\t"+(a?"":"wg = 1.0-wg;")+"\t\t\t\tfloat hwg = hash(tCoord)>=wg ? 0.0 : 1.0; wg = dissv*hwg + (1.0-dissv)*wg; \t\t\t\tfloat as = wg*src.w, at = (1.0-wg)*tgt.w, ao = as+at;\t\t\t\t\t\t\t\tvec4 nc = vec4( (as*src.xyz + at*tgt.xyz)/ao, ao ); \t\t\t\tgl_FragColor = "+(F?"nc":"cswitch*nc + (1.0- cswitch)*tgt")+"; \t\t\t}",c="\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvarying vec2 wCoord;\t\t\t\t\t\tuniform vec4 srct;\t\t\tuniform vec4 wrct;\t\t\tvoid main(void) {\t\t\t\ttCoord = verPos;\t\t\t\tsCoord = (verPos-srct.xy)/srct.zw;\t\t\t\twCoord = (verPos-wrct.xy)/wrct.zw;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}"; +this.d3(y,c)};V.R.OT.prototype=new V.Vo;V.R.OT.prototype.Yi=function(a,F,y,c,Q,S,h,d,W){if(this.g0)this.sB("srct wrct wcolor awg dissv source target weight cswitch".split(" ")); +else this.sB("srct awg dissv source target cswitch".split(" "));var w=V.sX,J=this.Cp;w.uniform4fv(J.srct,c); +if(this.g0){w.uniform4fv(J.wrct,Q);w.uniform1f(J.wcolor,S)}else{w.uniform4fv(J.cswitch,W)}w.uniform1f(J.awg,h); +w.uniform1f(J.dissv,d);var A=[J.source,a,J.target,F];if(this.g0)A.push(J.weight,y);this.jC(A)};V.R._q=function(){V.Vo.call(this); +var a="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D prev;\t\t\tuniform sampler2D next;\t\t\tuniform sampler2D alpha;\t\t\t\t\t\tvarying vec2 coord;\t\t\t\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec3 or = texture2D(prev , coord).rgb;\t\t\t\tvec3 ir = texture2D(next , coord).rgb; \t\t\t\tfloat al = texture2D(alpha, coord).w; \t\t\t\tgl_FragColor = vec4( (ir-(1.0-al)*or)*(1.0/al) ,1.0 ); \t\t\t}",F="\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 coord;\t\t\t\t\t\tuniform vec4 rct;\t\t\tvoid main(void) {\t\t\t\tcoord = verPos;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}"; +this.d3(a,F)};V.R._q.prototype=new V.Vo;V.R._q.prototype.Yi=function(a,F,y,c){this.sB(["rct","prev","next","alpha"]); +var Q=V.sX,S=this.Cp;Q.uniform4fv(S.rct,[0,0,1,1]);this.jC([S.prev,F,S.next,y,S.alpha,c])};var m={}; +m.Ab=function(a,F,y){this.name=a;this.id=F;this.aO=null;if(y!=null)this.XZ=y};m.Ab.prototype.N9=function(a,F,y,c,Q){}; +m.Ab.prototype.enable=function(a,F,y,c,Q,S){var h=new u(z.E.Q,!0);h.data={e:z.h.AY,FW:"default"};F.n(h)}; +m.Ab.prototype.disable=function(a,F,y,c,Q){};m.Ab.prototype.kn=function(a,F,y,c,Q){return!1};m.Ab.prototype._n=function(a,F,y,c,Q){}; +m.Ab.prototype.mG=function(a,F,y,c,Q){};m.Ab.prototype.y8=function(a,F,y,c,Q){};m.Ab.prototype.Ww=function(a,F,y,c,Q){}; +m.Ab.prototype.sT=function(a,F,y,c,Q){};m.Ab.prototype.KM=function(a,F,y,c){};m.Ab.prototype.XC=function(a,F,y,c){}; +m.Ab.prototype.wo=function(a,F){};m.Ab.prototype.yY=function(a,F){};m.Ab.prototype.FV=function(a,F,y,c,Q){}; +m.Ab.prototype.RV=function(a,F){};m.Ab.prototype.qh=function(a,F){return!1};m.Ab.prototype.qO=function(a,F){return!1}; +m.Ab.prototype.i0=function(){return!1};m.Ab.prototype.WA=function(a,F){return!0};m.Ab.prototype.r$=function(){return null}; +m.Ab.prototype.RQ=function(a,F,y){};m.Ab.prototype.li=function(){return!1};m.Ab.prototype.oF=function(a,F,y,c){}; +m.Ab.prototype.track=function(a){var F=new u(z.E.W5,!0);F.data=a;a.V7=!0;this.aO.n(F)};m.Ab.Cj=function(a,F,y,c,Q){m.Ab.NA(a,F,[aT.get([12,41]).charAt(0)+": "+D.Eu.$n(y.t,c.BD,Q,c.t,!0),aT.get([12,42]).charAt(0)+": "+D.Eu.$n(y.w,c.BD,Q,c.w,!0)],c)}; +m.Ab.NA=function(a,F,y,c){var Q=14,S=130,h=y.length*17+8,d=new cJ(a,F-h,S,h),W=m.Ab.Gq;if(W==null)W=m.Ab.Gq=document.createElement("canvas"); +W.width=S;W.height=h;var w=W.getContext("2d");w.fillStyle="rgba(0,0,1,1)";w.fillRect(0,0,S,h);w.font=Q+"px monospace"; +w.fillStyle="rgba(255,255,255,1)";for(var G=0;GMath.abs(h); +if(w&&c[2]){var J=Math.round(2*S/Q);d+=J;y.x-=S-.5*J*Q}if(!w&&!c[2]&&W!=-1){var J=Math.round(.25*h); +W+=J;y.y-=h-4*J}d=Math.max(1,d);W=c[1]==-1?-1:Math.max(0,Math.min(100,W));var A=c[3];A.Brsh.v.Dmtr.v.val=d; +if(W!=-1)A.Brsh.v.Hrdn.v.val=W;this.tM=[d,W,w,A,y];var T=i4.N$(A,F.ff.nz,Q),o=T[1];o.x=Math.round(this.wr.x-o.t/2); +o.y=Math.round(this.wr.y-o.w/2);a.J.xA=[T];var v=a.a.Mz(this.wr.x,this.wr.y);a.J.X3={_i:[],Y_:[v.x-d/2,v.y,v.x+d/2,v.y]}; +if(W!=-1)a.J.X3.Y_.push(v.x+50/Q,v.y-W/2,v.x+50/Q,v.y+W/2);a.rH=!0};m.uN.prototype.sT=function(a,F,y,c,Q){if(this.id==m.z$)return; +if(this.wr){this.wr=null;this.$P(JSON.parse(JSON.stringify(this.tM[3])));a.J.xA=[];a.J.X3=null;a.rH=!0; +return}var S=new u(z.E.Q,!0);S.data={e:z.h.mU,U:this.id,aex:"showBrushOpts",ME:new iS(Q.cS+4,Q.pi)}; +F.n(S)};m.uN.prototype.$P=function(a){var F=new u(z.E.Q,!0);F.data={e:z.h.mn,kd:bZ.iN,ge:a};this.caller.n(F)}; +m.uN.NH=function(a,F,y,c,Q){if(a==null)a="FrgC";if(F==null)F="norm";if(y==null)y=1;if(Q==null)Q=!1;var S={classID:"Fl",Usng:{t:"enum",v:{FlCn:a}},Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(y*100)}},PrsT:{t:"bool",v:Q},Md:{t:"enum",v:{BlnM:bY.Vs(F)}}}; +if(a=="Clr")S.Clr={t:"Objc",v:c};if(a=="contentAware")S.contentAwareColorAdaptationFill={t:"bool",v:!0}; +return{fS:"fill",nn:S}};m.uN.prototype.N9=function(a,F,y,c,Q){this.aO=F;var S=y.nS.length;if(S==0&&!y.Vk())return; +var h=S!=0?-1-y.nS[0]:y.D[0],d=y.u[h];if(a.e=="fromAction"){var W=a.fi,w=W.nn;if(W.fS=="fill"){var J=w.PrsT?w.PrsT.v:!1,A=d.add.lspf,i; +if(J){d.add.lspf=A==null?1:A|1}var T=(w.Opct?w.Opct.v.val:100)/100,o=w.Md?bY.z5(w.Md.v.BlnM):"norm",v=w.Usng.v.FlCn; +if(v=="contentAware"){if(y.Z==null){alert("Select an area to heal first.");return}if(!y.Vk())return; +this.os(y);this.Yy(y,0);var N=y.Z,b=D.G(N.rect.L()*4);D.Iy(N.channel,b,3);this.xE(y,"sheal",b,N.rect,N.rect); +this.T(y,N.rect);this.finish(y,N.rect)}else{if(v=="FrgC")i=Q.Fm;else if(v=="BckC")i=Q.fF;else if(v=="Blck")i=0; +else if(v=="Wht")i=16777215;else if(v=="Gry")i=8421504;else if(v=="Clr"){var q=D.V.$j(w.Clr.v);i=q.i<<16|q.m<<8|q.d}var O=i>>16&255,R=i>>8&255,k=i>>0&255; +this.Ax(y,d,y.Z,O,R,k,Math.round(255*T),o,[2,3])}if(J){d.add.lspf=A==null?0:A}}else if(W.fS=="delete"){var L=h<0?1:d.Ev,N=y.Z,I; +if(N==null)return;var C=h<0?y.v6[-h-1]:L<=0?null:L==1?d.QH():d.Zg(y).N,t=L<=0?d.rect:C.rect,_=L<=0?N.rect.Df(t):N.rect.clone(); +if(_.ur())return;var M=_.L();if(L<=0){I=D.G(M*4);D.vD(d.buffer,d.rect,I,_)}else{I=D.G(M);C.extend(_); +D.oR(C.channel,C.rect,I,_)}if(0<=h&&d.EZ(y,N)){if(L<=0){D.Jx(I,0);D.vD(d.n9.Z5,d.n9.sP,I,_)}else{I.fill(255); +D.oR(d.n9.Z5,d.n9.sP,I,_)}}else{if(L<=0){var j=D.G(I.length>>2);D.ie(I,j,3);D.R.tr(D.t4(N.rect.L()),N.rect,j,_,N.channel,_,1); +D.Iy(j,I,3)}else{var r=D.G(N.rect.L()),O=Q.fF>>>16&255,R=Q.fF>>8&255,k=Q.fF>>0&255;r.fill(Math.round(D.aJ(O,R,k))); +D.R.tr(r,N.rect,I,_,N.channel,_,1)}}this.fu(y,!0,[2,2],h,L,_,I)}}if(a.e=="stroke"){var s=a.ahS,N=y.Z; +if(N==null){N={rect:d.rect.clone(),channel:D.G(d.rect.L())};D.ie(d.buffer,N.channel,3)}var e=hN.K5(s),P=m.HZ.BC(N,Math.ceil(e[0]),Math.ceil(e[1])),i=D.V.$j(s.Clr.v),O=Math.round(i.i),R=Math.round(i.m),k=Math.round(i.d); +this.Ax(y,d,P,O,R,k,Math.round(255*s.Opct.v.val/100),bY.z5(s.Md.v.BlnM),[14,9])}if(a.e=="fillBMP"){this.Xx(y,d,y.Z,a.Jk,a.Wn,a.J7)}if(a.e=="draw"){var l=a.Hq,x=l.rect; +this.os(y);var E=y.u[y.D[0]];if(a.adO&&E&&E.Ev<=0&&y.nS.length==0){x=bL.r6.QW(l,y);E.buffer=l.buffer.slice(0); +E.rect=x.clone()}else{var p=this.nr.bmode;this.nr.bmode="norm";this.xE(y,"draw",l.buffer,x,x.Df(new cJ(0,0,y.t,y.w))); +this.nr.bmode=p}this.T(y,x);y.vM=!0;this.finish(y,x,a.J7,a.adO)}};m.uN.prototype.Ax=function(a,F,y,c,Q,S,h,d,W){var w=y==null?new cJ(0,0,a.t,a.w):y.rect,J=h<<24|S<<16|Q<<8|c<<0,A=D.G(w.L()*4); +D.Jx(A,J);this.Xx(a,F,y,A,d,W)};m.uN.prototype.Xx=function(a,F,y,c,Q,S){var h=a.nS.length!=0?-1-a.nS[0]:a.D[0],d=h<0?1:F.Ev,W=h<0?a.v6[-1-h]:d<=0?null:d==1?F.QH():F.Zg(a).N,w=d<=0?F.rect:W.rect,J=y==null?new cJ(0,0,a.t,a.w):y.rect,A=y==null?D.xF(a.t*a.w):y.channel,T=J.L(),o,v=null; +if(d<=0){o=D.G(T*4);D.vD(F.buffer,F.rect,o,J)}else{o=D.G(T);W.extend(J);D.oR(W.channel,W.rect,o,J)}if(y!=null)D.wv(A,c); +if(d>0){v=D.G(T);D.dh(c,v)}if(0<=h&&y&&F.EZ(a,y)){var i=F.n9.nu,N=F.n9.nu.slice(0);if(d<=0)D.YR(c,N); +else D.YR(v,N);var b=new gF([2,3],this);b.data={e:"drawtemp",c:a.D[0],aI:d,ael:i,agT:N};a.OW(b);this.wo(b.data,a)}else{if(d<=0){var q; +if(F.ER(0)){q=D.G(J.L());D.ie(o,q,3)}D.R.jU(Q,c,J,o,J,J,1);if(F.ER(0))D.Iy(q,o,3)}else D.R.tr(v,J,o,J,A,J,1); +this.fu(a,!0,S,h,d,J,o)}};m.uN.prototype.qh=function(a){if(ht.Vi.indexOf(a)!=-1)return!0;return!1};m.uN.prototype.KM=function(a,F,y,c){var Q=this.nr.brush,S=c.Y(ht.V0),h=S!=this.H5,d=m.uN.Tl(Q,c); +if(d!=null)this.$P(d);if(!c.Y(ht.A4)&&c.WN()!=-1){var W=z.HM(Math.round(this.nr.opacity*100),c.WN())/100; +this.SE({opacity:W},F)}if(this.id==m.Q5&&h&&a!=null){var w=this.nr.qsmode;if(w==2)w=a.Z==null?0:1;else w=2; +this.SE({qsmode:w},F)}this.H5=S;if(h){if(a)this.O2=a.a.X;this.cl(y,c)}};m.uN.Tl=function(a,F){var y=a.Brsh.v.Dmtr.v.val,c=a.Brsh.v.Hrdn!=null?a.Brsh.v.Hrdn.v.val:-1,Q=y,S=c,h=F.Y(ht.xO); +if(F.Y(ht.QE)){if(h)c=25*Math.floor((c-1)/25);else{if(y<=10)y--;else if(y<=50)y=5*Math.floor((y-1)/5); +else if(y<=100)y=10*Math.floor((y-1)/10);else if(y<=200)y=25*Math.floor((y-1)/25);else if(y<=400)y=50*Math.floor((y-1)/50); +else y=100*Math.floor((y-1)/100)}}if(F.Y(ht.m2)){if(h)c=25*Math.ceil((c+1)/25);else{if(y<10)y++;else if(y<50)y=5*Math.ceil((y+1)/5); +else if(y<100)y=10*Math.ceil((y+1)/10);else if(y<200)y=25*Math.ceil((y+1)/25);else if(y<400)y=50*Math.ceil((y+1)/50); +else y=100*Math.ceil((y+1)/100)}}y=Math.max(1,y);c=Math.max(0,Math.min(100,c));if(S==-1)c=-1;if(y!=Q||c!=S){var d=JSON.parse(JSON.stringify(a)); +d.Brsh.v.Dmtr.v.val=y;if(S!=-1)d.Brsh.v.Hrdn.v.val=c;return d}return null};m.uN.prototype.cl=function(a,F,y,c){if(a.ff.list.length==0)return; +var Q=this.id,S;if((Q==m.R$||Q==m.b1||Q==m.T8||Q==m.$m)&&(F!=null&&F.Y(ht.V0)||this.nr.alt[0]))S="crosshair"; +else{var h=this.O2,d=this.nr.brush;if((Q==m.R$||Q==m.b1)&&y&&this.wE&&this.wE.length==this.Q4.L()*4){var W=y.a.Mz(c.x,c.y),w=this.r3(W),J=this.wE,A=this.Q4,T=new cJ(A.x+w.x,A.y+w.y,A.t,A.w),o=i4.N$(d,a.ff.nz,h),v=o[0],i=o[1],N=Math.ceil(i.t/h),b=new cJ(Math.round(W.x-N/2),Math.round(W.y-N/2),N,N),q=D.G(b.L()*4),O,R; +D.vD(J,T,q,b);if(h==1){O=q;R=b}else{var k=new hg(h,0,0,h,0,0),L=m.p.tI([q,b],k,!0);R=i.clone();R.x=L.rect.x; +R.y=L.rect.y;if(R.pI(L.rect))O=L.buffer;else{O=D.G(R.L()*4);D.vD(L.buffer,L.rect,O,R)}}var C=this.nr.opacity/255; +for(var G=0;G>>1,J=new cJ(Math.round(d.x)-w,Math.round(d.y)-w,W,W),A=D.G(J.L()*4); +D.Jx(16777215);for(var G=0;G0){w=D.G(S.L()*4);m.uN.xk(h,S,0,w,S)}var J=new gF(y,this);J.data=[{c:c,aI:Q,a_:S,BV:w}];if(d)J.data.MW=[a.Z,null]; +if(W)J.data.MW=[this.rs,a.Z];a.OW(J);if(F)this.wo(J.data,a);else if(d)a.Z=null;bL.kq.Yl(a,J.data)};m.uN.prototype.yY=function(a,F){this.QY(a,F,!1)}; +m.uN.prototype.wo=function(a,F){this.QY(a,F,!0)};m.uN.prototype.QY=function(a,F,y){if(a.e=="drawtemp"){var c=y?a.agT:a.ael,Q=F.u[a.c]; +Q.n9.nu=c;Q.p1(F,0,0,F.Z);Q.T();F.vM=!0}else{bL.kq.Dk(F,a);if(a.MW){F.Z=a.MW[y?1:0];F.BJ=!0}}F.T()}; +m.uN.prototype.zZ=function(a){this.xE(a,this.X6,this.hR.AO(),this.hR.pl(),this.hR.HP());this.T(a)};m.uN.prototype.xE=function(a,F,y,c,Q){var S=this.nr,h=a.u[a.D[0]],d=a.nS.length!=0?a.v6[a.nS[0]]:h.Ev<=0?null:h.Ev==1?h.QH():h.Zg(a).N,W=D.G(Q.L()*4),w,J=h.ER(0); +if(d==null){if(this.id==m.cz&&F=="heal")D.vD(h.buffer,h.rect,W,Q);else D.vD(this.TV,this.to,W,Q);if(J){w=D.G(Q.L()); +D.ie(W,w,3)}}else{m.uN.xk(this.TV,this.to,d.color,W,Q)}if(a.Z&&F!="qselect"){var A=Q.Df(a.Z.rect),T=D.G(A.L()*4); +if(F=="copy"){var o=D.G(A.L());D.oR(a.Z.channel,a.Z.rect,o,A);D.vD(W,Q,T,A);D.R.g5(y,c,T,A,o,A,0,A,1,!1)}else{D.vD(y,c,T,A); +D.c_(a.Z.channel,a.Z.rect,T,A)}y=T;c=A}function v(b,et){var eM=Math.max(et.x,Math.min(et.x+et.t-1,b.x)),eT=Math.max(et.y,Math.min(et.y+et.w-1,b.y)); +return new iS(eM,eT)}if(F=="idraw"||F=="ierase"){if(this.FU==null)this.FU=D.G(this.to.L());var i=this.nr.samp,N=this.pn.fF,b=v(this.q$,Q),q=i==0?b:this.aW,O=q.x,R=q.y,k=m.tP.Px(this.TV,this.to,[q,new iS(O-2,R),new iS(O+2,R),new iS(O,R-2),new iS(O,R+2)]); +if(i==2)k=[[N>>>16&255,N>>>8&255,N>>>0&255,255]];var L=m.tP.OS(W,Q,b,k,this.nr.wconf),C=D.G(Q.L());D.oR(this.FU,this.to,C,Q); +D.RU.jD(L,C,C);D.oR(C,Q,this.FU,this.to);D.c_(C,Q,y,c);F=F.slice(1)}if(F=="erase"&&(bL.kq.oh(a)!=16777215||d))F="draw"; +if(F=="draw")D.R.jU(S.bmode,y,c,W,Q,Q,S.opacity);else if(F=="erase"){var t=D.G(Q.L()*4);D.vD(y,c,t,Q); +if(d==null){var _=D.G(Q.L());D.ie(t,_,3);D.iS(_,S.opacity);D.kW(_);D.c_(_,Q,W,Q)}else{D.Jx(t,0,4278190080); +D.R.jU("norm",t,Q,W,Q,Q,S.opacity)}}else if(F=="clone"||F=="heal"){var M=this.wF(),I=this.Q4.clone(); +I.offset(M.x,M.y);var j=Q.clone();j.Pl(1,1);var r=D.G(j.L()*4),s=D.G(j.L());D.vD(y,c,r,j);D.ie(r,s,3); +D.Jx(r,0);if(d==null){D.vD(this.wE,I,r,j);var e=D.G(j.L());D.ie(r,e,3);D.L9(e,s)}else m.uN.xk(this.wE,I,d.color,r,j); +if(F=="clone"){D.Iy(s,r,3);D.R.jU(S.bmode,r,j,W,Q,Q,S.opacity)}if(F=="heal"){var P=s.slice(0);D.round(P,20); +var l=D.G(j.L()*4);if(d==null)D.vD(this.TV,this.to,l,j);else m.uN.xk(this.TV,this.to,d.color,l,j);D.R.g5(r,j,l,j,P,j,0,j,1,!1); +D.LK.pM(l,P,j);D.R.g5(l,j,W,Q,s,j,0,Q,1,!1)}}else if(F=="dodge"||F=="burn"){var r=D.G(Q.L()*4),p=1,f=0,H=0,g=0; +D.vD(y,c,r,Q);var x=Q.L()*4,E=m.uN.sk;if(this.H5){if(F=="dodge")F="burn";else F="dodge"}var B=S.rng; +if(F=="dodge"){f=[1-p/2,1,1+p][B];H=[1,1/(1+p),1][B];g=[p/2,0,0][B]}if(F=="burn"){f=[1/(1-p/2),1,1-p/2][B]; +H=[1,1+p,1][B];g=[-(p/2)/(1-p/2),0,0][B]}for(var G=0;G>>1)*cY]=s[(ho>>>1)*cY+cY-1]=0;m.YT.nV(eB,!0);a.Z={rect:hW,channel:eB.Z.slice(0)};a.BJ=!0}if(d==null){if(J)D.Iy(w,W,3); +D.vD(W,Q,h.buffer,h.rect)}else m.uN.ti(W,Q,d)};m.uN.wF=function(){return null};m.uN.sk=function(a,F,y,c,Q){var S=a*(1/255),h=c+F*Math.pow(S,y),d=Math.round(h*Q+S*(255-Q)); +return Math.max(0,Math.min(255,d))};m.uN.xk=function(a,F,y,c,Q){var S=D.G(Q.L());S.fill(y);D.oR(a,F,S,Q); +c.fill(255);D.oA(S,c)};m.uN.ti=function(a,F,y){var c=D.G(F.L());D.dh(a,c);D.oR(c,F,y.channel,y.rect)}; +m.HZ=function(a,F,y){m.Ab.call(this,a,F,y);this.gN={op:"front",feat:0,cstr:{yc:0,x:3,y:2},wconf:[16,!0,!0],anta:!0}; +this.ZT=new iS(-1,-1);this.vS=new iS(-1,-1);this._g="default";this.aO=null;this.ad8=!0;this.wB=!1;this.hm=!1; +this.H5=!1;this.Wd=0;this.Sj=0;this.eD=!1;this.sV=null;this.Tf=null;this.vW=!1};m.HZ.prototype=new m.Ab; +m.HZ.prototype.a1s=function(){var a=this.gN,F=[{front:0,union:1,difference:2,intersection:3}[a.op],a.feat]; +if(this.id==m.YE)F.push(a.wconf);return F};m.HZ.prototype.ako=function(a,F,y){var c=this.gN;c.op=["front","union","difference","intersection"][a[0]]; +c.feat=a[1];c.wconf=a[2];var Q=new u(z.E.Q,!0);Q.data={e:z.h.mU,U:this.id,gN:c};y.n(Q)};m.HZ.eH={key:""}; +m.HZ.aU=function(a,F,y){var c={fS:a,nn:{classID:"setd",null:{t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]}}}; +if(F)c.nn.T=F;if(y!=null)c.nn.AntA={t:"bool",v:y};return c};m.HZ.Pr=function(a,F,y){return m.HZ.aU("set",{t:"Objc",v:{classID:a,Top:{t:"UntF",v:{type:"#Pxl",val:F.y}},Left:{t:"UntF",v:{type:"#Pxl",val:F.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:F.y+F.w}},Rght:{t:"UntF",v:{type:"#Pxl",val:F.x+F.t}}}},y)}; +m.HZ.$q=function(a,F,y){var c=[],Q=[],h="set";for(var G=0;G>>1)),E=M.y-j.y,p=E+M.w-1,f=Math.max(E,Math.min(p,E+p>>>1)),H=Math.max(P,0),g=Math.min(l,s),B=Math.max(E,0),U=Math.min(p,e); +r.fill(128);if(0<=E)for(var Z=H;Z>>2);D.ie(aV,bQ,3);h={channel:bQ,rect:hu.clone()}}else{if(az.N==null)az.Ja(y);var dN=eB==1?az.QH():az.N; +h=m.HZ.b7(dN,W)}this.track(m.HZ.mF(t,["Trsp","Msk"][eB],az.getName()))}else if(S=="frompath"){var h0=y.uK(),gl=h0[1],h0=h0[0]; +if(aL==null)if(h0.length==0||gl.length==0)return;var dQ=h0[gl[0]];if(aL!=null)for(var G=0;G1||this.Sj>1?F:null; +var c=this.ZT,Q=this.vS;if(y){c.x=Math.max(0,Math.min(a.t,c.x));c.y=Math.max(0,Math.min(a.w,c.y));Q.x=Math.max(0,Math.min(a.t,Q.x)); +Q.y=Math.max(0,Math.min(a.w,Q.y))}var S=m.MG.SA(c,Q,F,!0,this.gN.cstr),h=S[0].x,d=S[0].y;return new cJ(h,d,S[1].x-h,S[1].y-d)}; +m.HZ.prototype._n=function(a,F,y,c,Q){if(this.sh())return;this.aO=F;this.wB=!1;this.hm=c.Y(ht.xO);this.H5=c.Y(ht.V0); +this.Wd=this.hm?0:1;this.Sj=this.H5?0:1;this.ZT=a.a.Mz(Q.x,Q.y);this.ZT=m.j7.YJ(a,this.ZT,y);if(this.Rn(a,this.ZT,c)){this.eD=!0; +this.sV=a.Z.rect.clone();return}this.Qi(a,y,c,Q);a.a.He=new cJ};m.HZ.prototype.Rn=function(a,F,y){var c=y.Y(ht.xO),Q=y.Y(ht.V0); +if(a.Z&&!c&&!Q&&this.gN.op=="front")return D.ZG(F,a.Z.channel,a.Z.rect);return!1};m.HZ.prototype.y8=function(a,F,y,c,Q){this.aO=F; +if(this.vW)return;var S=a.a.Mz(Q.x,Q.y);if(iS.Uy(this.ZT,S)*a.a.X>5)this.wB=!0;if(c.Y(ht.P1)){if(this.Tf==null)this.Tf=new iS(S.x-this.ZT.x,S.y-this.ZT.y); +this.ZT.x=S.x-this.Tf.x;this.ZT.y=S.y-this.Tf.y}else this.Tf=null;this.vS=S;if(!this.eD)this.vS=m.j7.YJ(a,this.vS,y); +if(this.Rn(a,this.vS,c))this.cb(F,"move");else this.cb(F,this._g);if(this.eD){var h=this.sV.clone(); +h.x+=this.vS.x-this.ZT.x;h.y+=this.vS.y-this.ZT.y;var d=m.j7.OA(a,h,y);a.Z.rect.x=Math.round(this.vS.x-this.ZT.x+this.sV.x+d[0]); +a.Z.rect.y=Math.round(this.vS.y-this.ZT.y+this.sV.y+d[1]);a.BJ=!0;m.j7.Wr(a,h,d);return}this._2(a,y,c,Q); +if(a.a.He)a.a.He=this.pl(a,c)};m.HZ.prototype.sh=function(){return!1};m.HZ.prototype.Ww=function(a,F,y,c,Q){a.a.He=null; +this.vS=a.a.Mz(Q.x,Q.y);this.vS=m.j7.YJ(a,this.vS,y);if(this.eD){this.eD=!1;if(this.vS.pI(this.ZT)&&this.J0()=="front"){this.AD(F,z.E.W5,m.HZ.YN()); +return}this.aR(a,this.sV,a.Z.rect.clone());if(a!=null&&a.J.i_){a.J.i_=null;a.rH=!0}return}this.G3(a,y,c,Q); +m.HZ.K6(F,y)};m.HZ.prototype.aR=function(a,F,y){var c=a.GV();if(c!=null&&c.U==this&&c.data.e=="movesel"){}else{c=new gF([7,7],this); +c.data={e:"movesel",lH:F};a.OW(c)}c.data.Y6=y;this.wo(c.data,a)};m.HZ.prototype.mG=function(a,F,y,c,Q){this.vW=!0}; +m.HZ.prototype.sT=function(a,F,y,c,Q){var S=new u(z.E.Q,!0);S.data={e:z.h.mU,U:this.id,B0:Q,W0:a,oZ:y}; +F.n(S);this.vW=!1};m.HZ.prototype.KM=function(a,F,y,c){var Q=c.Y(ht.xO),S=c.Y(ht.V0);if(this.wB){if(this.Wd==0&&!Q)this.Wd++; +if(this.Wd==1&&Q)this.Wd++;if(this.Sj==0&&!S)this.Sj++;if(this.Sj==1&&S)this.Sj++}if(a!=null&&a.Z!=null){var h=c.GT(); +if(h.x!=0||h.y!=0){var d=a.Z.rect.clone();d.x+=h.x;d.y+=h.y;this.aR(a,a.Z.rect.clone(),d)}}var W=m.HZ.iJ(this.gN.op,Q,S),w=new u(z.E.Q,!0); +w.data={e:z.h.mU,U:this.id,Z4:W};F.n(w)};m.HZ.prototype.finish=function(a,F,y,c){var Q=a.Z,S=this.getSelection(a,F,y,c); +if(S==null)S=m.HZ.YN();else{var h=this.gN.feat,d=this.J0();if(h!=0)S.nn.Fthr={t:"UntF",v:{type:"#Pxl",val:h}}; +if(d!="front"&&d!="xor")S.fS={union:"addTo",difference:"subtractFrom",intersection:"interfaceWhite"}[d]}this.AD(this.aO,z.E.W5,S); +this.ZT.Xo(-1,-1);this.vS.Xo(-1,-1)};m.HZ.prototype.J0=function(){return m.HZ.iJ(this.gN.op,this.hm,this.H5)}; +m.HZ.iJ=function(a,F,y){if(F)a="union";if(y)a="difference";if(F&&y)a="intersection";return a};m.HZ.prototype.getSelection=function(a,F,y,c){return null}; +m.HZ.prototype.Qi=function(a,F,y,c){};m.HZ.prototype._2=function(a,F,y,c){};m.HZ.prototype.G3=function(a,F,y,c){}; +m.HZ.prototype.yY=function(a,F){var y=a.e;if(y=="changesel")F.Z=a.rs;if(y=="movesel")F.Z.rect=a.lH;if(a.Vf){if(a.a6Z){F.nS=[F.v6.length]; +F.v6.push(a.a6Z)}else{F.v6.pop();F.nS=[]}}if(a.uY){F.un=JSON.parse(a.uY[0]);F.J5=JSON.parse(a.uY[1])}F.BJ=!0}; +m.HZ.prototype.wo=function(a,F){var y=a.e;if(y=="changesel")F.Z=a.gg;if(y=="movesel")F.Z.rect=a.Y6;if(a.Vf){if(a.a5u){F.nS=[F.v6.length]; +F.v6.push(a.a5u)}else{F.v6.pop();F.nS=[]}}if(a.uY){F.un=JSON.parse(a.amC[0]);F.J5=JSON.parse(a.amC[1])}F.BJ=!0}; +m.HZ.prototype.FV=function(a){this.gN=a.gN};m.HZ.prototype.qe=function(a){var F=D.M.zC(a.I);if(F.ur())return null; +var y=z.z("canvas","");y.width=F.t;y.height=F.w;var c=y.getContext("2d");c.beginPath();c.translate(-F.x,-F.y); +Typr.U.pathToContext({cmds:a.F,crds:a.I},c);c.closePath();c.fill();var Q=D.G(F.L()),S=c.getImageData(0,0,y.width,y.height); +D.ie(S.data,Q,3);return{rect:F,channel:Q}};m.HZ.Yf=function(a,F,y,c,Q){if(y)F=Math.round(F*.7);var S=Math.ceil(2.6*F),h=a.rect.clone(); +h.Pl(S,S);if(c&&!Q)h=h.Df(c);var d=D.G(h.L()),W=D.G(d.length);D.oR(a.channel,a.rect,W,h);D.AX.Ow(W,d,h,F); +if(y){var w=d.length;for(var G=0;G1e-9||!A||S||d)T=this.NT(a,F,!0,J,1,c);var v=new gF(this.name,this),i=new cJ(0,0,a.t,a.w); +v.data={rj:T,Ke:J,jc:a.a.B.clone(),Qt:m.tN.Im(a,Q,i,!1)};m.tN.Yh(a,v.data,Q);a.OW(v);this.wo(v.data,a); +this.track(m.tN.iw([c.x,c.y,c.t,c.w],null,d))};m.tN.Yh=function(a,F,y){if(y==null)return;F.lH=new cJ(0,0,a.t,a.w); +F.Y6=y};m.tN.bL=function(a,F){if(F.Y6==null)return;m.tN.Bp(a,F.Y6)};m.tN.rQ=function(a,F){if(F.Y6==null)return; +var y=F.lH.clone();y.offset(-F.Y6.x,-F.Y6.y);m.tN.Bp(a,y)};m.tN.prototype.aqN=function(a,F){var y=D.o.se(F),c=D.o.N4(y),Q=D.o.TY(y),S=Q.iU,h=Q.ma,d=Math.atan2(Q.d,Q.re); +Q.rotate(d);var W=new cJ(S,h,Q.re,Q.XL);if(!c){function w(O,G,R){var k=O[G]-O[R],L=O[G+1]-O[R+1];return Math.sqrt(k*k+L*L)}var J=w(F,0,2),A=w(F,4,6),T=Math.max(J,A),o=w(F,2,4),v=w(F,6,0),i=Math.max(o,v),N=m.tN.acy(F,a.t/2,a.w/2),b,q; +if(isNaN(N)||N==Infinity||N==-Infinity||Math.min(N,1/N)<.1)N=(J+A)/(o+v);if(T/i>N){b=T*1;q=b/N}else{q=i*1; +b=q*N}W.t=b;W.w=q}W.x=Math.round(W.x);W.y=Math.round(W.y);W.t=Math.round(W.t);W.w=Math.round(W.w);return W}; +m.tN.acy=function(a,F,y){var c=a[0]-F,Q=a[1]-y,S=a[2]-F,h=a[3]-y,d=a[6]-F,W=a[7]-y,w=a[4]-F,J=a[5]-y,A=((Q-J)*d-(c-w)*W+c*J-Q*w)/((h-J)*d-(S-w)*W+S*J-h*w),T=((Q-J)*S-(c-w)*h+c*J-Q*w)/((W-J)*S-(d-w)*h+d*J-W*w),o=-((T*W-Q)*(A*h-Q)+(T*d-c)*(A*S-c))/((T-1)*(A-1)); +function v(N){return N*N}var i=Math.sqrt((v(A-1)+v(A*h-Q)/o+v(A*S-c)/o)/(v(T-1)+v(T*W-Q)/o+v(T*d-c)/o)); +if(A==1&&T==1)i=Math.sqrt((v(h-Q)+v(S-c))/(v(W-Q)+v(d-c)));return i};m.tN.prototype.disable=function(a,F,y,c){if(a==null)return; +if(this.ZR)this.ZR.clear(a);this.ZR=null;this.AD(F,z.E.Q,{e:z.h.mU,U:this.id,o1:!1})};m.tN.prototype.AD=function(a,F,y,c){var Q=new u(F,!0); +Q.data=y;if(c)Q.U=c;a.n(Q)};m.jw=function(){m.tN.call(this,[10,2],m.V9,"tools/rcrop")};m.jw.prototype=new m.tN; +m.pK=function(){m.tN.call(this,[10,39],m.uJ,"tools/pcrop")};m.pK.prototype=new m.tN;m.ao=function(){m.uN.call(this,[10,21],m.ZC,"tools/dodge"); +this.X6="dodge"};m.ao.prototype=new m.uN;m.ao.prototype._n=function(a,F,y,c,Q){this.GC(a,y,c,Q,this.nr.expo/Math.PI); +if(this.hR==null)return;this.zZ(a)};m.ao.prototype.y8=function(a,F,y,c,Q){this.rC(a,F,y);if(this.wr)this.eC(a,y,Q); +if(this.hR==null)return;if(!Q.M7)return;this.Fi(a,y,c,Q);this.zZ(a)};m.fC=function(){m.uN.call(this,[10,3],m.QG,"tools/eraser"); +this.X6="erase"};m.fC.prototype=new m.uN;m.fC.prototype._n=function(a,F,y,c,Q){this.GC(a,y,c,Q,this.nr.flow); +if(this.hR==null)return;this.zZ(a)};m.fC.prototype.y8=function(a,F,y,c,Q){this.rC(a,F,y);if(this.wr)this.eC(a,y,Q); +if(this.hR==null)return;if(!Q.M7)return;var S=this.Fi(a,y,c,Q);this.zZ(a)};m.xQ=function(){m.uN.call(this,[10,45],m.af4,"tools/beraser"); +this.X6="ierase"};m.xQ.prototype=new m.uN;m.xQ.prototype._n=function(a,F,y,c,Q){if(this.U6(c,F,Q))return; +this.GC(a,y,c,Q,this.nr.flow);if(this.hR==null)return;this.zZ(a)};m.xQ.prototype.y8=function(a,F,y,c,Q){this.rC(a,F,y); +if(this.wr)this.eC(a,y,Q);if(this.hR==null)return;if(!Q.M7)return;this.Fi(a,y,c,Q);this.zZ(a)};m.BR=function(){m.HZ.call(this,[10,15],m.yq,"tools/rselect"); +this._g="crosshair"};m.BR.prototype=new m.HZ;m.BR.prototype._2=function(a,F,y,c){if(!c.M7||!this.wB)return; +var Q=this.pl(a,y,!0);a.J.Js=D.M.Fx(Q);a.rH=!0;m.Ab.Cj(c.x+10,c.y-10,Q,a,F)};m.BR.prototype.G3=function(a,F,y,c){a.J.Js=null; +a.J.e3=[];a.rH=!0;this.finish(a,F,y,c)};m.BR.prototype.getSelection=function(a,F,y,c){if(this.ZT.pI(this.vS)||!this.wB)return null; +var Q=this.pl(a,y,!0);if(Q.ur())return null;return m.HZ.Pr("Rctn",Q,this.gN.anta)};m.S2=function(){m.HZ.call(this,[10,4],m.ano,"tools/eselect"); +this._g="crosshair"};m.S2.prototype=new m.HZ;m.S2.prototype._2=function(a,F,y,c){if(!c.M7||!this.wB)return; +var Q=this.pl(a,y);a.J.Js=m.S2.TP(Q);a.rH=!0;m.Ab.Cj(c.x+10,c.y-10,Q,a,F)};m.S2.prototype.G3=function(a,F,y,c){a.J.Js=null; +a.J.e3=[];a.rH=!0;this.finish(a,F,y,c)};m.S2.prototype.getSelection=function(a,F,y,c){if(this.ZT.pI(this.vS)||!this.wB)return null; +var Q=this.pl(a,y);if(!Q.fQ(new cJ(0,0,a.t,a.w)))return null;return m.HZ.Pr("Elps",Q,this.gN.anta)}; +m.S2.TP=function(a){var F=a.x,y=a.y,c=a.x+a.t,Q=a.y+a.w,S=(F+c)/2,h=(y+Q)/2,d=(F-c)/2,W=(y-Q)/2,w=.5522848,J={I:[S,h-W],F:["M","C","C","C","C"]}; +J.I.push(S+w*d,h-W,S+d,h-w*W,S+d,h);J.I.push(S+d,h+w*W,S+w*d,h+W,S,h+W);J.I.push(S-w*d,h+W,S-d,h+w*W,S-d,h); +J.I.push(S-d,h-w*W,S-w*d,h-W,S,h-W);return J};m.hW=function(){m.Ab.call(this,[10,5],m.k7,"tools/eyedropper"); +this.QV=!1;this._l=1};m.hW.prototype=new m.Ab;m.hW.prototype.qO=function(a){return a.M7};m.hW.prototype.N9=function(a,F,y,c,Q){if(a.e=="pickhere")this.w7(y,F,Q,c,a.am6)}; +m.hW.prototype._n=function(a,F,y,c,Q){this.QV=!0;this.w7(a,F,y,c,Q)};m.hW.prototype.y8=function(a,F,y,c,Q){if(this.QV)this.w7(a,F,y,c,Q)}; +m.hW.prototype.Ww=function(a,F,y,c,Q){this.QV=!1};m.hW.prototype.w7=function(a,F,y,c,Q){var S=m.hW.rY(a,Q,this._l),h=new u(z.E.Q); +h.data={e:z.h.mn,kd:bZ.Y7,u6:0,H:S};F.n(h)};m.hW.rY=function(a,F,y){var c=a.a.Mz(F.x,F.y),Q=Math.floor(c.x),S=Math.floor(c.y),h=(y-1)/2,d=Math.max(0,Q-h),W=Math.max(0,S-h),w=Math.min(a.t,Q+h+1),J=Math.min(a.w,S+h+1),A=(w-d)*(J-W),T=a.fh(),o=0,v=0,i=0; +for(var Q=d;Q2){var o;if(a.Z)o=a.Z.rect;else o=new cJ(0,0,a.t,a.w);var v=D.G(o.L()*4),i=this.nr,N=i.aN;if(N!="Lnr"){J*=2; +W=this.m0}D.V.mX(i.V,v,o,[T*1/J,A*1/J,-A*1/J,T*1/J],W.x,W.y,i.vC,aX.V.types.indexOf(N),y.Fm,y.fF,null,i.aaW); +var b=Math.round(i.CC*256),q=v.length;if(b!=256)for(var G=0;G>>8;var O=new u(z.E._); +O.U=m.QG;O.data={e:"fillBMP",Jk:v,Wn:i.a0p,J7:this.name};F.n(O)}a.J.Js=null;a.J.vj=[];a.rH=!0;this.kr=!1}; +m.R5.Gm=function(a,F){if(a.pI(F))return a;var y=F.x-a.x,c=F.y-a.y,Q=Math.abs(y),S=Math.abs(c);if(Q>S)S=Q/2>S?0:Q; +if(S>Q)Q=S/2>Q?0:S;Q=y>0?Q:-Q;S=c>0?S:-S;var h=Math.sqrt(y*y+c*c)/Math.sqrt(Q*Q+S*S);return new iS(a.x+Q*h,a.y+S*h)}; +m.R5.ID=function(a,F,y,c,Q,S,h){if(h==null)h=z.z("canvas","");var d=h.getContext("2d");h.width=F;h.height=y; +var W=new cJ(0,0,F,y),w=D.G(F*y*4);D.Pf(w,F,y,4);var J=Math.sin(c),A=Math.cos(c),T=D.G(F*y*4);D.V.mX(a,T,W,[A*1/F,J*1/F,-J*1/y,A*1/y],F/2,y/2,!1,0,Q,S); +D.R.jU("norm",T,W,w,W,W,1);var o=d.getImageData(0,0,F,y);D.YR(w,o.data);d.putImageData(o,0,0);return h.toDataURL()}; +m.R5.ag6=function(a,F,y){var c=JSON.parse(JSON.stringify(a));for(var G=0;G>16&255,m:h>>8&255,d:h&255})}}return c}; +m.DR=function(){m.Ab.call(this,[10,7],m.z3,"tools/hand");this.Lq=new iS(0,0);this.JG=null;this.s7=0}; +m.DR.prototype=new m.Ab;m.DR.prototype.N9=function(a,F,y,c,Q){var S=a.e;if(S=="setcls"){y.a.Ty=a.Ty; +y.rH=!0;y.$F=!0}if(S=="scroll"&&!c.Y(ht.V0)){if(c.Y(ht.A4))m.DR.m5(y,y.a.B.x-a.DX.y,y.a.B.y-a.DX.x); +else m.DR.m5(y,y.a.B.x-a.DX.x,y.a.B.y-a.DX.y)}};m.DR.prototype.enable=function(a,F,y,c){this.JG=null; +var Q=new u(z.E.Q,!0);Q.data={e:z.h.AY,FW:"grab"};F.n(Q);if(a&&Date.now()-this.s7<300){Q.type=z.E._; +Q.U=m.I7;Q.data={e:"adapt",H:"fitscr"};F.n(Q)}this.s7=Date.now()};m.DR.prototype._n=function(a,F,y,c,Q){this.JG=a.a.B.clone(); +this.Lq.Xo(Q.x,Q.y)};m.DR.prototype.y8=function(a,F,y,c,Q){if(!Q.M7)return;if(this.JG==null)this._n(a,F,y,c,Q); +m.DR.m5(a,this.JG.x+(Q.x-this.Lq.x),this.JG.y+(Q.y-this.Lq.y))};m.DR.prototype.Ww=function(a,F,y,c,Q){this.JG=null}; +m.DR.m5=function(a,F,y){var c=a.a.X,Q=a.a.Ed,S=Q.t,h=Q.w,d=a.t*c,W=a.w*c,w=d=0;G--){var y=a.u[G];if(y.add.TySh&&y.rect.t$(F)&&a._r(G)){var c=y.ER(2)||y.ER(31); +return c?-2:G}}return-1};m.RG.prototype._n=function(a,F,y,c,Q){this.Co=a;this.oZ=y;this.caller=F;var S=a.a.Mz(Q.x,Q.y),h=this.xB==null; +if(h){var d=m.RG.K8(a,S);if(d==-2){alert(aT.get([6,57,0]));return}if(d>=0){if(!a4.pL(a.u[d].add.TySh,y.G6)){alert("Fonts not loaded yet"); +return}this.EL(a,F,y,[d])}else{this.Tx=!0;this.E9=Q;return}}var W=h?-1:eA.Lv(this.xB.add.TySh.KU),w=this.b4?this.b4:this.ZR; +if(w&&w._n(a,y,c,S)&&D.be.jM(this.xB.add.TySh.Pw)||!h&&D.M.VZ(S,this.xB.rect)>20/a.a.X&&(W==0||W==1)){this.JI=!0; +this.bf=S;this.a5V=this.xB.add.TySh.q.clone();if(this.Ra==-1&&this.Ea==-1)this.Ra=this.Ea=this.M5(S)}else{if(this.VL==null){alert("Fonts not loaded yet"); +return}this.VP=!0;this.Ra=this.Ea=this.M5(S);var J=Date.now();if(J-this.ahz>300)this.HV=0;this.HV++; +this.ahz=J;if(this.HV==2)this.air();if(this.HV==3)this.a7h();if(this.HV>1){this.VP=!1}}this.Ih();this.oE(a)}; +m.RG.prototype.EL=function(a,F,y,c){var Q=a.u[c[0]];this.xB=Q;this.AD(F,z.E.Q,{e:z.h.mU,U:this.id,U9:"showactive"}); +this.WC=c;a.D=c.slice(0);a.t7();a.qD=!0;this.TR=this.mA(a,c);this.zb(Q.add.TySh);this.JD(a,y)};m.RG.prototype.zb=function(a){if(eA.Lv(a.KU)!=1)return; +var F=eA.x0(a.KU);F=new cJ(0,0,F[2]-F[0],F[3]-F[1]);var y=[F.x,F.y,F.x+F.t,F.y,F.x+F.t,F.y+F.w,F.x,F.y+F.w]; +D.M.q(y,a.q,y);this.ZR=new dP(y,!1,!1,!1,!0)};m.RG.prototype.air=function(){var a=eA.AC(this.xB.add.TySh.KU); +this.Ra=this.kz(a,this.Ra);this.Ea=this.wj(a,this.Ra)};m.RG.prototype.kz=function(a,F){var y=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",c=[]; +for(var G=0;G=0;G--)if(c.indexOf(a.charAt(G))!=-1==Q)return G+1; +return 0};m.RG.prototype.wj=function(a,F){var y=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",c=[];for(var G=0; +G20/a.a.X)d="move";else if(m.RG.K8(a,S)>=0)d="text"; +if(d!=this.Pz){this.Pz=d;this.cl(F)}}var A=this.E9;if(this.Tx&&Math.min(Q.x-A.x,Q.y-A.y)>4/a.a.X){this.Tx=!1; +this.Re(a,F,y,c,Q);h=this.xB;this.JI=!0;this.ZR=new dP(null,!1,!1,!1,!0);var T=a.a.Mz(this.E9.x,this.E9.y); +T.x=Math.round(T.x);T.y=Math.round(T.y);this.ZR._n(a,y,c,T)}if(this.JI){var o=h.add.TySh;if(this.b4){this.b4.y8(a,y,c,S); +var v=D.o.TY(D.o.se(this.b4.DM(),this.a0j));o.q=v;this.JD(a,y);eA.JM(o)}else if(this.ZR){this.ZR.y8(a,y,c,S); +var i=o.q.clone(),N=Math.atan2(i.d,i.re);i.rotate(N);var v=D.o.TY(D.o.se(this.ZR.DM())),b=Math.atan2(v.d,v.re); +v.rotate(b);if(!isNaN(v.re)&&v.re*v.XL-v.d*v.Xa!=0){var q=new cJ(0,0,v.re/i.re,v.XL/i.XL),O=Math.round(q.t),R=Math.round(q.w),k=o.KU.Curve; +if(k){var L=eA.x0(o.KU),C=new hg(O/L[2],0,0,R/L[3],0,0);D.M.q(k.Points,C,k.Points);eA.JM(o)}eA.wM(o.KU,[0,0,O,R]); +o.q=D.o.TY(D.o.se(this.ZR.DM(),q));this.JD(a,y);eA.JM(o)}}else{var t=S.x-this.bf.x,_=S.y-this.bf.y;o.q=this.a5V.clone(); +var M=new iS(o.q.iU+t,o.q.ma+_);M=m.j7.YJ(a,M,y);o.q.iU=M.x;o.q.ma=M.y;this.JD(a,y)}}if(this.VP)this.Ea=this.M5(S); +if(this.JI||this.VP)this.oE(a)};m.RG.prototype.Re=function(a,F,y,c,Q){var S=a.uK(),h=S[0],d=S[1],W=a.kD(); +W.add.lnsr="rend";var w=a.u.slice(0);W.k0("Text layer "+w.length);this.xB=W;var J=a.D.length==0?a.u.length-1:a.D[a.D.length-1],A=J+1; +if(w[J].add.lsct==fc.bc)A--;this.TR={fq:w.slice(0),rs:a.D.slice(0)};w.splice(A,0,W);a.D=[A];this.Ra=this.Ea=0; +a.gB(w);this.TR.H7=w.slice(0);this.TR.gg=a.D.slice(0);this.AD(F,z.E.Q,{e:z.h.mU,U:this.id,U9:"showactive"}); +var T=a.a.Mz(Q.x,Q.y),o=y.CA;console.log(o);if(this.id==m.Fg){o=JSON.parse(JSON.stringify(o));o.kM.BaselineDirection=1}W.add.TySh=eA.X9(T.x,T.y,o); +var v=W.add.TySh,i=v.KU;if(this.id==m.Fg)i._LineOrientation=2;eA.MZ(v,this.TW);if(Q.M7)eA.yK(i,1);else{eA.yK(i,0); +var N=h[d.pop()],b=N?N.add.vmsk:null;if(b){b=b.clone();var q=b.g,R,k;for(var G=0;G0&&c.charAt(this.Ra-1)!=Q.charAt(this.Ra-1))this.Ra--}var d=c.substring(0,this.Ra),W=c.substring(this.Ea,c.length),w=Q.substring(this.Ra,Q.length-W.length); +eA.xl(y.KU,this.Ra,this.Ea);eA.fg(y.KU,this.Ra,w);var J=this.mC(this.oZ,y),T=-1,o=Array.from(w);for(var G=0; +G128&&J.kM.Font!=null){var v=J.yH[J.kM.Font].Name,i=this.oZ.G6.wY(T,v,J.yH); +if(v!=i){eA.BW(J,i);A=!0}}if(this.ZJ!=null&&w==this.ZJ){var N=JSON.parse(this.abB);J.kM=N.kM;J.yH=N.yH; +A=!0}eA.wC(y.KU,this.Ra,this.Ra+w.length-1,J);this.Ra=this.Ea=d.length+w.length;var b=this.Co,q=this.JD(b,this.oZ,!0); +if(q)this.oE(b,!0);if(A)this.Ih()};m.RG.prototype.a3E=function(a){if(this.xB==null||this.lJ)return;if(this.xB==null)return; +var F=ht,y=0,c=0,b=!1;if(F.XP(a.code,F.q5))y=1;if(F.XP(a.code,F.j3))y=-1;if(F.XP(a.code,F.kB))c=-1;if(F.XP(a.code,F.EB))c=1; +var Q=a.ctrlKey||a.metaKey,S=F.XP(a.code,ht.amm),h=F.XP(a.code,ht.ajb);if(F.XP(a.code,ht.eT)&&Q){this.Ro(this.Co,this.caller); +return}if(F.XP(a.code,ht.lB)){a.preventDefault();var d=this.FK,W=d.value,w=d.selectionStart,J=d.selectionEnd; +d.value=W.substring(0,w)+"\t"+W.substring(J);d.selectionStart=d.selectionEnd=w+1;this.n1(null);return}if((F.XP(a.code,F.BH)||F.XP(a.code,F.CZ))&&Q){var A=this.Ra,T=this.Ea; +if(A>T){var o=A;A=T;T=o}var v=this.xB.add.TySh,i=eA.AC(v.KU);if(A!=T){this.ZJ=i.slice(A,T);this.abB=JSON.stringify(this.oZ.CA)}}var N=eA.AC(this.xB.add.TySh.KU); +if(y!=0||c!=0||S||h){a.preventDefault();var q=this.Ra;if(y!=0){if(Q&&y==-1)q=this.kz(N,this.Ra-1);else if(Q&&y==1)q=this.wj(N,this.Ra); +else{var d=this.FK,W=d.value;q=this.Ra+y;if(q!=0&&W.codePointAt(q-1)>65535)q+=y}}else if(c!=0){var O=this.VL.tq(this.Ra); +if(c==-1&&O.c7==0)q=0;else if(c==1&&O.c7==this.VL.al3()-1)q=99999999999;else q=this.VL.Q1(new iS(O.a_.x+O.a_.t/2,0),O.c7+c)}else if(S){var R=this.Ra-1; +while(R>0&&N.charCodeAt(R)!=10)R--;q=R==0?0:R+1}else if(h){var R=this.Ra;while(R1&&y.Y(ht.V0)){Q.I.pop(); +Q.I.pop();Q.I.push(this.vS.x,this.vS.y);a.J.Js=Q;a.rH=!0}return}Q.F.push("L");Q.I.push(this.vS.x,this.vS.y); +this.Mj=this.vS;if(this.wB){a.J.Js=Q;a.rH=!0}};m.OQ.prototype.i0=function(){return this.FT!=null};m.OQ.prototype.sh=function(){return this.FT!=null}; +m.OQ.prototype.KM=function(a,F,y,c){m.HZ.prototype.KM.call(this,a,F,y,c);if(this.FT&&this.Sj>1&&this.bf&&!this.bf.M7&&!c.Y(ht.V0))this.k1(a,y,c)}; +m.OQ.prototype.G3=function(a,F,y,c){this.bf=c;var Q=this.FT;if(Q==null)return;if(this.Sj>1&&y.Y(ht.V0)){Q.F.push("L"); +Q.I.push(this.vS.x,this.vS.y);return}this.k1(a,F,y)};m.OQ.prototype.k1=function(a,F,y){this.finish(a,F,y,this.bf); +this.FT=null;a.J.Js=null;a.rH=!0};m.OQ.prototype.getSelection=function(a,F,y,c){if(this.ZT.pI(this.vS)||!this.wB)return null; +return m.HZ.$q(this.FT.I,null,this.gN.anta)};m.j7=function(){m.Ab.call(this,[10,11],m.I3,"tools/move"); +this.O$=new iS(0,0);this.ta=new iS(0,0);this.eo=null;this.hw=null;this.AH=new iS(0,0);this.bC=null;this.pn=null; +this.aO=null;this.s7=0;this.p8=null;this.L2=[];this.Fq=null;this.kr=!1;this.e=0;this.Qv=null;this.el=null; +this.ce=null;this.Sb=!1;this.nr={lr:!1,aa:!1,X3:!1};this.a5c=!1;this.acB=!1;this.ZR=null;this.A2=null; +this.a7M=null;var a=[];for(var G=0;GT?[23,3]:[23,4]; +if(T==0)J=[11,15,0]}else if(S=="gidsFromLayer"){var o=[],v=[],i=y.U0();for(var G=0;G")t++;var _=y.root.Ui(t),M=_; +while(_.parent!=null){_=_.parent;if(O.indexOf(_.index)!=-1)M=_}var I=L.indexOf(M.index);if(I==-1){I=L.length; +L.push(M.index)}k[G]=I}var j=[],r=[],s=[];for(var G=0;GQ.y)S.push(W,Q.y,W,c.y); +if(dQ.x)S.push(Q.x,w,c.x,w);if(h128}if(!W&&(!this.Sb&&this.nr.lr||this.Sb&&this.nr.lr&&(y.Y(ht.xO)||a.D.length<2))){var b=this.a0f(a,d,y); +if(!b){a.D=[];a.J5=null;a.vM=a.hD=!0;this.e=3;this.Qv=new cJ;this.kr=!0;return}}if(y.Y(ht.V0)&&!W){var q=new u(z.E._); +q.U=m.ni;q.data={e:Y.h_,afn:!0};F.n(q)}}if(a.nS.length!=0){this.e=4;this.Fq=a.v6[a.nS[0]].rect.clone(); +this.kr=!0;return}this.p8=a.CL(S==null,S,null,!0);for(var G=0;G>2);D.ie(R.n9.nu,_,3)}else _=a.Z.channel.slice(0); +var M={rect:R.n9.sb.clone(),channel:_};this.ce=new gF(k?[12,53]:[12,54],this);this.ce.data={e:1,c:a.D[0],n9:R.n9,xt:C,GN:t,rs:a.Z,gg:M,XL:new iS(0,0)}; +a.OW(this.ce);a.Z=M;a.BJ=!0}}this.kr=!0;this.Fq=m.p.pl(a)};m.j7.prototype.a0f=function(a,F,y){var c=a.root.ZG(new iS(Math.floor(F.x),Math.floor(F.y))); +if(c){if(c.c.add.vmsk)a.rH=!0;var Q=a.u.indexOf(c.c);if(y.Y(ht.xO)){var S=a.D.indexOf(Q);if(S==-1)a.D.push(Q); +else if(a.D.length>1)a.D.splice(S,1)}else if(a.D.indexOf(Q)==-1){this.ap(a,Q)}}return c!=null};m.j7.prototype.ap=function(a,F){a.u[F].Ev=0; +a.D=[F];a.J5=null;a.t7();a.qD=!0;a.vM=!0};m.j7.prototype.y8=function(a,F,y,c,Q){this.eo=Q;var S=a.a.Mz(Q.x,Q.y),T,o; +if(this.hw&&this.e<2)S=this.hw.rV(S,c);if(!this.kr){if(y.IW&&y.eq.SQ){var h=this.Mg(a,S),d="default"; +if(h!=null)d=["col-resize","row-resize"][a.SQ[h][0]];else if(this.ZR){var W=this.ZR.XN(S,a.a.X);if(W)d=W}this.cl(d,F)}this.LZ(a,S); +return}var w=this.ta,J=Math.round(S.x-w.x)-this.AH.x,A=Math.round(S.y-w.y)-this.AH.y;if(this.Fq){if(this.e==2){S=m.j7.YJ(a,S,y,[!1,a.Z?a.Z.rect:this.Fq,!0])}else{o=this.Fq.clone(); +o.offset(this.AH.x+J,this.AH.y+A);T=m.j7.OA(a,o,y);J+=Math.round(T[0]);A+=Math.round(T[1])}}this.AH.x+=J; +this.AH.y+=A;this.q3(a,J,A,S,null,c.Y(ht.xO));this.LZ(a,S);if(T)m.j7.Wr(a,o,T)};m.j7.prototype.Mg=function(a,F){F=[F.x,F.y]; +var y=a.w9(),c=a.U0();for(var G=0;G=0){var h=new u(z.E._,!0);h.U=m.vJ;h.data={e:"editCurr",Se:S};F.n(h)}else if(m.j7.ic(y,Q,a.a,!0)){var d=new u(z.E.Q); +if(Q.y>a.a.Ed.w-20){d.data={e:z.h.uG,eU:"doczoom",yo:a.a.X*100,yU:{$:z.E._,U:m.I7,r:{e:"pzoom"}}}}else{d.data={e:z.h.uG,eU:"preferences"}}F.n(d)}}this.s7=Date.now(); +m.tN.hh(a)};m.j7.prototype.ca=function(a,F,y,c,Q){if(!this.kr)return;this.kr=!1;if(this.e==0){if(c){this.cU(a,null,c,Q)}else{if(this.AH.x==0&&this.AH.y==0)return; +this.cU(a,this.AH.clone())}a.$F=!0}else if(this.e==2){var S=0;F=[F.x,F.y];var h=this.p8,d=a.SQ[h],bJ=this.el[0].length,W=a.SQ.length; +if(y.qI&&F[d[0]]0){var k=w.add.GdFl;if(k==null)k=w.add.PtFl;if(w.V6()&&!w.C$()&&w.add.vmsk!=null&&D.A.wn(w.add.vmsk.g)&&w.add.vmsk.Dt==255&&(k==null||k.Algn&&k.Algn.v)){w.rect.offset(d,W)}else w.Ja(a); +var L=a.root.Ki(w.IT(a),a,F[G]);S=S.jD(L);L.offset(-d,-W);S=S.jD(L);if(w.add.SoCo||w.add.GdFl||w.add.PtFl||eU.get(w.add)!=null)S=S.jD(h); +w.WH()}}a.T(S)};m.j7.afl=function(a,F){var y=[];for(var G=0;G>>1; +if(Math.abs(T.x-F)>>1; +if(Math.abs(T.y-F)>>1),T.y+(i>>>1),T.x+o,T.y+i]; +for(var G=0;G<6;G+=2)if(Math.abs(I[G+c]-F)>>1,i>>>1,o,i]; +for(var G=0;G<6;G+=2)if(Math.abs(I[G+c]-F)a.t||F.y<0||F.y>a.w)return null; +var h=new cJ(0,0,a.t,a.w);if(Q==null&&h.pI(c.rect))S=c.buffer;else{S=D.G(h.L()*4);if(Q==null)D.vD(c.buffer,c.rect,S,h); +else m.uN.xk(Q.channel,Q.rect,Q.color,S,h)}var d=m.tP.OS(S,h,F,null,y),W=D.As(d,h),w=D.G(W.L());D.oR(d,h,w,W); +return{rect:W,channel:w}};m.tP.Px=function(a,F,y){var c=F.t,Q=F.w,h=0,d=0,W=0,w=0;a=new Uint32Array(a.buffer); +var S=[],J=y.length;for(var G=0;G>8&255,i>>16&255,i>>>24])}return S}; +m.tP.OS=function(a,F,y,c,Q){a=new Uint32Array(a.buffer);var S=F.t,h=F.w,d=S*h;if(c==null)c=m.tP.Px(a,F,[y]); +var W=Math.round(y.x-.5-F.x),w=Math.round(y.y-.5-F.y),J=w*S+W,A=Date.now(),T=D.G(S*h),o=Q[0],v=1/o,i=Q[1]&&o>0?255:0; +if(Q[2]){var N=D.G(T.length),b=new Uint32Array(d),q=1;b[0]=W<<16|w;N[J]=1;while(q>0){var O=b[q-1];q--; +var R=O>>>16,k=O&65535,G=k*S+R,L=m.tP.QF(a[G],c);if(L>o){var C=i*(1-Math.max(0,Math.min(1,(L-o)*v))); +T[G]=~~C}else{T[G]=255;if(k!=h-1&&N[G+S]==0){b[q++]=R<<16|k+1;N[G+S]=1}if(k!=0&&N[G-S]==0){b[q++]=R<<16|k-1; +N[G-S]=1}if(R!=S-1&&N[G+1]==0){b[q++]=R+1<<16|k;N[G+1]=1}if(R!=0&&N[G-1]==0){b[q++]=R-1<<16|k;N[G-1]=1}}}}else{for(var G=0; +G0&&(T[G-1]==255||k>0&&T[G-S-1]==255||k0&&T[G-S+1]==255||k0&&T[G-S]==255||k>>8&255,Q=a>>>16&255,S=a>>>24&255;if(F[3]==0)return S<5?0:255; +var h=Math.max(Math.abs(y-F[0]),Math.max(Math.abs(c-F[1]),Math.abs(Q-F[2])));return S==0?255:h};m.WF=function(a,F){if(F)m.uN.call(this); +else if(a)m.uN.call(this,[10,49],m.cz,"tools/camove");else m.uN.call(this,[10,26],m.z$,"tools/patch"); +this.Mj=null;this.FT=null;this.B=null;this.R1=null;this.ia=new iS;this.s9=null;this.lh=null};m.WF.prototype=new m.uN; +m.WF.prototype._n=function(a,F,y,c,Q){var S=a.a.Mz(Q.x,Q.y);if(a.Z&&D.ZG(S,a.Z.channel,a.Z.rect)){var h=new cJ(0,0,a.t,a.w),d=h.Df(a.Z.rect); +if(!a.Vk()||d.ur())return;if(!0){var W=D.G(d.L());D.oR(a.Z.channel,a.Z.rect,W,d);a.Z={channel:W,rect:d}}this.os(a); +this.Yy(a);this.R1=S;this.ia=new iS(S.x-a.Z.rect.x,S.y-a.Z.rect.y);this.lh=D.G(a.Z.rect.L()*4);this.lh.fill(255); +if(this.nr.patch==1){var w=a.u[a.D[0]];w.Gc(a,a.Z,!0);if(w.n9==null)this.R1=null}this.s9=a.Z.rect.clone()}else{this.FT={I:[S.x,S.y],F:["M"]}; +this.Mj=S}};m.WF.prototype.y8=function(a,F,y,c,Q){var S=a.a.Mz(Q.x,Q.y);if(this.R1){if(this.nr.patch==1){if(a.nS.length==0){var h=a.u[a.D[0]].n9,d=S.x-this.ia.x,W=S.y-this.ia.y; +m.j7.Qp(a,a.D[0],Math.round(d-h.sb.x),Math.round(W-h.sb.y))}}else this.nR(a,S,"clone")}if(this.Mj){this.FT.F.push("L"); +this.FT.I.push(S.x,S.y);this.Mj=S;a.J.Js=this.FT;a.rH=!0}};m.WF.prototype.Ww=function(a,F,y,c,Q){var S=a.a.Mz(Q.x,Q.y); +if(this.R1){var h=a.Z.rect.clone();if(this.id==m.cz){var d=a.u[a.D[0]];d.n2(a,d.n9);a.Z.rect=this.s9.clone(); +var W=D.G(a.Z.rect.L()*4);D.Iy(a.Z.channel,W,3);this.xE(a,"sheal",W,a.Z.rect,a.Z.rect);a.Z.rect=h;h=h.jD(this.s9)}this.nR(a,S,"heal"); +this.finish(a,h,null,null,!0);a.T(h);this.R1=null}if(this.Mj){var w=m.HZ.iJ(this.nr.setop,c.Y(ht.xO),c.Y(ht.V0)),J=new u(z.E.W5,!0); +if(this.FT.I.length<=4)J.data=m.HZ.YN();else J.data=m.HZ.$q(this.FT.I,w);F.n(J);this.Mj=null;a.J.Js=null; +a.rH=!0}};m.WF.prototype.wF=function(){return this.B};m.WF.prototype.FV=function(a,F,y,c,Q){m.uN.prototype.FV.call(this,a,F,y,c,Q); +this.cl(Q,c)};m.WF.prototype.cl=function(a,F){var y="auto;";if(F!=null&&F.Y(ht.xO)&&!F.Y(ht.V0)||this.nr.setop=="union")y="copy"; +var c=new u(z.E.Q,!0);c.data={e:z.h.AY,FW:y};if(this.caller)this.caller.n(c)};m.WF.prototype.nR=function(a,F,y){var c=new iS(Math.round(this.R1.x-F.x),Math.round(this.R1.y-F.y)); +if(this.nr.patch==1)c.Xo(-c.x,-c.y);this.B=c;this.xE(a,y,this.lh,a.Z.rect,a.Z.rect);this.T(a,a.Z.rect)}; +m.N2=function(){m.WF.call(this,!0);this.nr.patch=1};m.N2.prototype=new m.WF(!0,!0);m.TC=function(){m.uN.call(this,[10,13],m.aca,"tools/pbucket")}; +m.TC.prototype=new m.uN;m.TC.prototype.enable=function(a,F,y,c){var Q=new u(z.E.Q,!0);Q.data={e:z.h.AY,FW:"default"}; +F.n(Q)};m.TC.prototype.RV=function(a,F){};m.TC.prototype.Ww=function(a,F,y,c,Q){if(this.U6(c,F,Q))return; +if(!a.Vk())return;var S=a.a.Mz(Q.x,Q.y),h=m.tP.gI(a,S,this.nr.wconf);if(h==null)return;var d=D.G(h.rect.L()*4); +D.Jx(d,(y.Fm&255)<<16|(y.Fm>>8&255)<<8|(y.Fm>>16&255)<<0);D.Iy(h.channel,d,3);this.os(a);this.xE(a,"draw",d,h.rect,h.rect); +this.T(a,h.rect);this.finish(a,h.rect)};m.Vr=function(){m.HZ.call(this,[10,14],m.anU,"tools/plasso"); +this._g="crosshair";this.Fd=[];this.so=null;this.FT=null;this.a7x=0};m.Vr.prototype=new m.HZ;m.Vr.prototype.disable=function(a,F,y,c){this.ro(a)}; +m.Vr.prototype.Qi=function(a,F,y,c){this.Fd=[ht.s_,ht.uw]};m.Vr.prototype.qh=function(a){return this.Fd.indexOf(a)!=-1}; +m.Vr.prototype.qO=function(a){return this.FT!=null};m.Vr.prototype.sh=function(){return this.FT!=null}; +m.Vr.prototype.i0=function(){return this.FT!=null};m.Vr.prototype._2=function(a,F,y,c){if(this.FT==null)return; +var Q=this.FT,S=Q.I,h=S.length-2,d=this.vS;if(this.Sj>1&&y.Y(ht.V0)&&c.M7){S.push(0,0);Q.F.push("L"); +h+=2}else if(y.Y(ht.xO))d=m.R5.Gm(new iS(S[h-2],S[h-1]),d);S[h]=d.x;S[h+1]=d.y;a.J.Js=Q;a.rH=!0};m.Vr.prototype.G3=function(a,F,y,c){var Q=Date.now(); +if(this.FT==null)this.FT={I:[this.vS.x,this.vS.y,this.vS.x,this.vS.y],F:["M","L"]};else{this._2(a,F,y,c); +if(Q-this.a7x<250||iS.Uy(this.vS,new iS(this.FT.I[0],this.FT.I[1]))<5*z.K()/a.a.X){this.so=this.FT;this.finish(a,F,y,c); +this.ro(a);return}this.FT.F.push("L");this.FT.I.push(this.vS.x,this.vS.y)}this.a7x=Q;a.J.Js=this.FT}; +m.Vr.prototype.ro=function(a){this.FT=null;this.Fd=[];if(a!=null){a.J.Js=null;a.rH=!0}};m.Vr.prototype.KM=function(a,F,y,c){m.HZ.prototype.KM.call(this,a,F,y,c); +if(c.Y(ht.x_)&&this.FT==null&&this.so&&a.Z!=null){var Q=new u(z.E._);Q.U=m.zm;Q.data={e:"h_stepbck"}; +F.n(Q);this.Qi(a,y,c,null);this.FT=this.so;return}if(this.FT==null)return;if(c.Y(ht.s_)||c.Y(ht.uw)){this.FT.I.pop(); +this.FT.I.pop();this.FT.F.pop();this._2(a,y,c)}if(c.Y(ht.eT)){if(this.FT.I.length>4){this.so=this.FT; +this.finish(a,y,c)}this.FT=null}if(c.Y(ht.x_)){this.FT=null}a.J.Js=this.FT;a.rH=!0};m.Vr.prototype.getSelection=function(a,F,y,c){return m.HZ.$q(this.FT.I,null,this.gN.anta)}; +m.bh=function(){m.HZ.call(this,[10,10],m.afw,"tools/mlasso");this._g="crosshair";this.Fd=[];this.g=[]; +this.Sa=[];this.LL=[];this.oy=null;this.iK=null;this.VX=null;this.s7=0;this.ac=0};m.bh.prototype=new m.HZ; +m.bh.prototype.disable=function(a,F,y,c){this.clear(a)};m.bh.prototype.qO=function(a){return this.g.length!=0}; +m.bh.prototype.i0=function(){return this.g.length!=0};m.bh.prototype.qh=function(a){return this.Fd.indexOf(a)!=-1}; +m.bh.prototype.Qi=function(a,F,y,c){this.Fd=[ht.s_,ht.uw];var Q=this.gD(this.ZT,a);if(this.g.length!=0&&(iS.Uy(Q,this.g[0])<4*z.K()/a.a.X||Date.now()-this.s7<300)){this.rt(a,this.g[0]); +this.finish(a,F,y);this.clear(a);return}this.s7=Date.now();if(this.g.length!=0)Q=this.Ua(Q,a);else{var S=a.t,h=a.w,d=D.G(S*h),W=a.fh(),w=S*h*4; +for(var G=0;G>>2]=~~(.5+D.aJ(W[G],W[G+1],W[G+2])*(W[G+3]*(1/255)));this.oy=D.Pa.a1_(d,S,h); +this.VX=new Uint16Array(d.length)}this.rt(a,Q);this.ac=y.Y(ht.V0)?1:0;this.H0(a)};m.bh.prototype.rt=function(a,F){var y=this.g; +this.Sa[y.length]=this.LL.length;if(y.length!=0){D.Pa.vb(this.iK,F.y*a.t+F.x);var c=this.mD(a,F);c.reverse(); +var Q=m.bh.Su(a,c);this.LL=this.LL.concat(Q)}y.push(F);this.VM(a)};m.bh.prototype.VM=function(a){var F=this.g[this.g.length-1],y=F.y*a.t+F.x; +this.iK=D.Pa.a6f(this.oy.ii,this.oy.QP,y);this.VX.fill(0)};m.bh.prototype.gD=function(a,F){return new iS(Math.floor(Math.max(0,Math.min(F.t-1,a.x))),Math.floor(Math.max(0,Math.min(F.w-1,a.y))))}; +m.bh.prototype.clear=function(a){this.LL=[];this.g=[];this.Sa=[];this.oy=null;this.iK=null;this.VX=null; +if(a!=null){a.J.Js=null;a.J.vj=[];a.rH=!0}this.Fd=[]};m.bh.prototype._2=function(a,F,y,c){var Q=this.g,S=Q.length; +if(S==0)return;var h=this.Ua(this.gD(this.vS,a),a),d=this.mD(a,h);for(var G=0;G30&&iS.Uy(w,Q[S-1])>20){this.rt(a,w);return}this.VX[W]++}if(this.ac==1&&c.M7)this.rt(a,h); +this.H0(a)};m.bh.prototype.H0=function(a){var F=this.g;if(F.length!=0){var y=this.Ua(this.gD(this.vS,a),a),c=this.mD(a,y); +c.reverse();var Q=m.bh.Su(a,c),S=this.LL.concat(Q),h=a.J.Js={I:S,F:["M"]};for(var G=2;G5e3){console.log(S); +throw"e"}}return S};m.bh.Su=function(a,F){var y=[],c=a.t;for(var G=0;G=y||J<0||J>=c)continue; +D.Pa.vb(this.iK,J*y+w);if(this.iK.hK[J*y+w]1){var W=d.x-this.eg.x,w=d.y-this.eg.y;for(var G=0; +G2){y.push(F[2].x,F[2].y); +c.push("L")}a.J.Js={F:c,I:y};a.J.vj=y}a.rH=!0};m.GX.prototype.ro=function(a){a.J.Js=null;a.J.vj=[]}; +m.GX.ag_=function(a,F,y){var c=F.x-a.x,Q=F.y-a.y,S=Math.abs(Q*y.x-c*y.y+F.x*a.y-F.y*a.x),h=Math.sqrt(c*c+Q*Q); +return h==0?0:S/h};m.cN=function(){m.uN.call(this,[10,19],m.xM,"tools/sharpen");this.X6="copy"};m.cN.prototype=new m.uN; +m.cN.prototype._n=function(a,F,y,c,Q){var S=this.nr.pdetail?i4.Zr:i4.xM;if(c.Y(ht.V0))S=i4.CE;this.GC(a,y,c,Q,this.nr.strn,S); +if(this.hR==null)return;this.zZ(a)};m.cN.prototype.y8=function(a,F,y,c,Q){this.rC(a,F,y);if(this.wr)this.eC(a,y,Q); +if(this.hR==null)return;if(!Q.M7)return;this.Fi(a,y,c,Q);this.zZ(a)};m.qT=function(){m.uN.call(this,[10,24],m.lg,"tools/shbrush"); +this.X6="draw";this.nr.opacity=.5};m.qT.prototype=new m.uN;m.qT.prototype._n=function(a,F,y,c,Q){this.GC(a,y,c,Q,1); +if(this.hR==null)return;this.Yy(a);this.zZ(a)};m.qT.prototype.y8=function(a,F,y,c,Q){this.rC(a,F,y); +if(this.wr)this.eC(a,y,Q);if(this.hR==null)return;if(!Q.M7)return;this.Fi(a,y,c,Q);this.zZ(a)};m.qT.prototype.Ww=function(a,F,y,c,Q){if(this.hR==null)return; +this.xE(a,"sheal",this.hR.AO(),this.hR.pl(),this.hR.bJ(),null);this.T(a,this.hR.bJ());m.uN.prototype.Ww.call(this,a,F,y,c,Q)}; +m.G1=function(){m.uN.call(this,[10,20],m._u,"tools/smudge");this.X6="copy"};m.G1.prototype=new m.uN; +m.G1.prototype._n=function(a,F,y,c,Q){this.GC(a,y,c,Q,this.nr.strn,i4._u);if(this.hR==null)return;this.zZ(a)}; +m.G1.prototype.y8=function(a,F,y,c,Q){this.rC(a,F,y);if(this.wr)this.eC(a,y,Q);if(this.hR==null)return; +if(!Q.M7)return;this.Fi(a,y,c,Q);this.zZ(a)};m.NJ=function(){m.uN.call(this,[10,23],m.gS,"tools/sponge"); +this.X6="sponge"};m.NJ.prototype=new m.uN;m.NJ.prototype._n=function(a,F,y,c,Q){this.GC(a,y,c,Q,this.nr.flow); +if(this.hR==null)return;this.zZ(a)};m.NJ.prototype.y8=function(a,F,y,c,Q){this.rC(a,F,y);if(this.wr)this.eC(a,y,Q); +if(this.hR==null)return;if(!Q.M7)return;this.Fi(a,y,c,Q);this.zZ(a)};m.da=function(){m.Ab.call(this,[10,17],m.I7,"tools/zoom"); +this.kW=!1;this.M3=!0;this.O9=0;this.cd=null;this.m0=null;this.lS=0;this.jc=null;this.Ik=0;this.tv=new au([{name:[8,0],fw:"Ctrl + +"},{name:[8,1],fw:"Ctrl + -",qU:!0},{name:[20,3],fw:"Ctrl + 0"},{name:["VAR0: 100%",[20,2]],fw:"Ctrl + 1"}],[{$:z.E._,U:m.I7,r:{e:"zoom",M3:!0}},{$:z.E._,U:m.I7,r:{e:"zoom",M3:!1}},{$:z.E._,U:m.I7,r:{e:"adapt",H:"fitscr"}},{$:z.E._,U:m.I7,r:{e:"adapt",H:"pixel"}}])}; +m.da.prototype=new m.Ab;m.da.prototype.sT=function(a,F,y,c,Q){var S=this.tv;S.f();S.parent=F;S.update(a,y); +var h=new u(z.E.Q,!0);h.data={e:z.h.bR,HK:S,x:Q.cS+2,y:Q.pi+1};F.n(h)};m.da.prototype.enable=function(a,F,y,c){this.MK(F,c); +if(a&&Date.now()-this.O9<300)this.N9({e:"adapt",H:"pixel"},F,a,c,y);this.O9=Date.now()};m.da.prototype._n=function(a,F,y,c,Q){this.m0=new iS(Q.x,Q.y); +this.lS=a.a.X;this.jc=a.a.B.clone()};m.da.prototype.y8=function(a,F,y,c,Q){if(this.m0==null)return;var S=Math.exp(Math.log(this.lS)+(Q.x-this.m0.x)/64); +S=Math.max(.02,Math.min(32,S));a.a.X=this.lS;a.a.B=this.jc.clone();this.N9({e:"zoom",X:S,eo:this.m0},F,a,c,y)}; +m.da.prototype.Ww=function(a,F,y,c,Q){if(iS.Uy(this.m0,Q)<4){var S=this.vq(c);this.N9({e:"zoom",M3:S,eo:Q},F,a,c,y)}this.m0=null}; +m.da.CD=[32,16,12,8,6,5,4,3,2,1,2/3,1/2,1/2*(2/3),1/4,1/4*(2/3),1/8,1/8*(2/3),1/16,1/16*(2/3),1/32,1/32*(2/3),1/64]; +m.da.xc=function(a,F,y,c){var Q=1;while(a*Q*1/2>y||F*Q*1/2>c)Q*=1/2;if(a*Q*2/3>y||F*Q*2/3>c)Q*=1/2;else if(a*Q>y||F*Q>c)Q*=2/3; +return Q};m.da.xp=function(a,F){var y=m.da.Nr(a);if(F&&y==0)return a;if(!F&&y==m.da.CD.length-1)return a; +return m.da.CD[F?y-1:y+1]};m.da.Nr=function(a){var F=0;while(m.da.CD[F]>a)F++;return F};m.da.zi=function(a,F,y,c){var Q=a.Co; +if(c==0||c==null){c=m.da.xp(a.X,y);if(c==a.X)return}var S=a.Mz(F.x,F.y);if(Q.t*c<=a.Ed.t&&Q.w*c<=a.Ed.w){a.B.Xo(0,0); +a.X=c}else{var h=a.Cg(),d=a.X/c;h.translate(-S.x,-S.y);h.scale(d,d);h.translate(S.x,S.y);a.Fh(h)}};m.da.prototype.N9=function(a,F,y,c,Q){if(a.e=="pzoom"){if(typeof a.H=="string")return; +a={e:"zoom",X:a.H/100}}var S=0,h=!1,d=null;if(a.e=="adapt"){var W=0;if(a.H=="pixel")W=1;if(a.H=="fitscr"){var W=0,w=y.a.Ed.t,J=y.a.Ed.w; +W=Math.min((w-14)/y.t,(J-14)/y.w)}d=new iS(Math.round(y.a.Ed.t/2),Math.round(y.a.Ed.w/2));S=W;m.da.zi(y.a,d,h,S); +y.$F=!0}if(a.e.startsWith("multi")){function A(_){var M=_[0].x-_[1].x,I=_[0].y-_[1].y;return Math.sqrt(M*M+I*I)}function T(_){return new iS((_[0].x+_[1].x)/2,(_[0].y+_[1].y)/2)}var o=a.bl,v=T(o); +if(a.e=="multidown"){this.cd=[o,y.a.X,y.a.Mz(v.x,v.y)]}else{S=this.cd[1]*A(o)/A(this.cd[0]);if(S>=1)S=Math.min(32,Math.round(S)); +else{var i=0,N=1e9,b=m.da.CD;for(var G=0;GL){h=!1; +this.Ik=Math.min(this.Ik-L,L-1)}else return;m.da.zi(y.a,d,h,S);y.$F=!0}if(a.e=="zoom"){d=a.eo?a.eo:new iS(Math.round(y.a.Ed.t/2),Math.round(y.a.Ed.w/2)); +if(a.X!=null)S=a.X;else h=a.M3;m.da.zi(y.a,d,h,S);y.$F=!0}if(a.e=="mskView"){var C=y.u[y.D[0]],t=C.Ev==3?C.Zg(y).N:C.QH(); +if(a.H==0){y.a.Ty=[1,1,1];t.gQ=!1}if(a.H==1){y.a.Ty=[1,1,1];t.gQ=!0}if(a.H==2){y.a.Ty=[0,0,0];t.gQ=!0}for(var G=0; +G>>16&255,m:a>>>8&255,d:a>>>0&255}); +this.aO.n(F)}};m.Zi.prototype.N9=function(a,F,y,c,Q){this.aO=F;if(a.e=="newfill"){if(a.$B==0){var S=new u(z.E.Q,!0); +S.data={e:z.h.uG,eU:"colorpicker",q1:Q.Fm,Z6:this.aho.bind(this)};F.n(S)}}else if(a.e=="pathedit"){var h=a.u6,d="",W=y.ga.slice(0),w=y.un.slice(0),J=y.ga.slice(0),A=y.un.slice(0); +if(h=="rnm"){var T=-1-a.VS,o=W[T],v=iO.pj(a.name,o.add);if(T!=0)J[T]=v;else{A=[J.length];J.push(v);J[0]=iO.pj("Work Path")}d="Rename"}else if(h=="new"){J.push(iO.pj("Path "+W.length)); +A=[J.length-1];d="New"}else if(h=="del"){if(A.length==0)return;A.sort(function(_,E){return _-E});if(A[0]==0){J[0]=iO.pj(W[0].name); +A=A.slice(1)}var i=0;while(A.length!=0){J.splice(A[0]-i,1);A=A.slice(1);i++}d="Delete"}else if(h=="fromsel"){var N=J[0]=iO.pj("Work Path"); +A=[0];if(y.Z==null)return;var b=y.Z.channel.slice(0);for(var G=0;G128?2:1;var q=y.Z.rect.clone(); +q.Pl(1,1);var O=D.G(q.L());D.oR(b,y.Z.rect,O,q);var R=ds.Ud(O,q.t,q.w,Math.round(q.L()*5e-4)),k=ds.uK(R),L=new hg(1,0,0,1,-1+y.Z.rect.x,-1+y.Z.rect.y); +for(var G=0;G=x){P.D.splice(G,1);G--}P.c8=[];M="Delete Anchors"}else{if(P.D.length==0)return;var i=0; +for(var G=0;G0){var S=["SoCo","GdFl","PtFl"][Q-1]; +for(var G=0;G<3;G++)delete a.add[["SoCo","GdFl","PtFl"][G]];a.add[S]=F.vV}};m.MG=function(a,F,y,c){m.Zi.call(this,a,F,y); +this.nr={tmode:0,shape:dE.de(),pshape:0,binop:0,crad:0,irad:40,length:4,sides:5,width:5,tolr:5,tsiz:300,cstr:{yc:0},anta:!0}; +this.alq=c;this.Q$=null;this.h3=null;this.Cn=null};m.MG.prototype=new m.Zi;m.MG.prototype.qO=function(a){return a.M7&&this.id!=m.Lj}; +m.MG.prototype.enable=function(a,F,y,c,Q){this.pn=y;var S=new u(z.E.Q,!0);S.data={e:z.h.AY,FW:"crosshair"}; +F.n(S)};m.MG.prototype.px=function(a,F,y,c){};m.MG.prototype._n=function(a,F,y,c,Q){var S=this.nr.tmode; +if(S!=2)this.XI(F,y);if(S==2&&!a.Vk())return;var h=a.a.Mz(Q.x,Q.y);h=m.j7.YJ(a,h,y);this.Cn=[h.x,h.y]; +this.Q$=h;this.h3=new iS(0,0)};m.MG.prototype.aS=function(a,F,y){var c=[this.Q$.clone(),F.clone()];if(this.alq)c=m.MG.SA(c[0],c[1],y,!0,this.nr.cstr); +if(a)a.a.He=new cJ(c[0].x,c[0].y,c[1].x-c[0].x,c[1].y-c[0].y);return this.px(c[0],c[1],y.Y(ht.xO),this.Cn)}; +m.MG.prototype.TN=function(a,F,y){var c=a.a.Mz(F.x,F.y),Q=this.nr.cstr;if(Q.yc==2){var S=new cJ(c.x-Q.x,c.y-Q.y,Q.x,Q.y),h=m.j7.OA(a,S,y); +c.x+=h[0];c.y+=h[1];m.j7.Wr(a,S,h)}else c=m.j7.YJ(a,c,y);return c};m.MG.prototype.y8=function(a,F,y,c,Q){if(this.Q$==null)return; +var S=this.Cn,h=S.length,d=Q?this.TN(a,Q,y):new iS(S[h-2],S[h-1]);if(c.Y(ht.P1))this.Q$=d.VU(this.h3); +else this.h3=d.VU(this.Q$);S.push(d.x,d.y);if(this.nr.shape==null)this.nr.shape=y.sm[0];var W=this.aS(a,d,c)[0],w=D.M.A8(W); +a.J.Js=w;if(this.id!=m.Lj&&this.id!=m.dF&&this.id!=m.Oz)m.Ab.Cj(Q.x+10,Q.y-10,a.a.He,a,y);a.rH=!0};m.MG.prototype.ahb=function(a,F,y,c){var Q=a[4].clone(); +if(c){Q.x-=F/2;Q.y-=y/2}var S=this.px(Q,new iS(Q.x+F,Q.y+y),!1,this.Cn);this.HQ(a[0],a[1],a[2],S)};m.MG.prototype.HQ=function(a,F,y,c){var Q=new u(z.E.W5,!0); +Q.data=m.MG.Py(c[1],y);F.n(Q);if(c[1].v.classID=="customShape"&&c[1].v.Nm.v.startsWith("--")){var S=a.uK(),h=S[0],d=S[1],W=h[d.pop()],w=W.add.vmsk,J=W.add.vogk,A=w.clone(); +A.g=c[0];this.mO(a,W.VS,A,J)}};m.MG.prototype.Ww=function(a,F,y,c,Q){if(this.Q$==null)return;var S=this.TN(a,Q,y),h=this.nr.binop,d=this.nr.tmode,W=this.Cn,w=W.length; +if(this.id==m.Lj&&w<=4){}else if(w<=4){S.x=Math.round(S.x);S.y=Math.round(S.y);var J=new u(z.E.Q);J.data={e:z.h.uG,eU:"createshape",a8a:this.ahb.bind(this),a67:this.name,a2B:[a,F,y,c,S]}; +F.n(J)}else if(w!=2){var A=this.aS(a,S,c),T=A[0];if(d==1&&T.length>2){T[2].oa=[1,2,3,0][h];var o=a.uK(!0),v=o[0],i=o[1],N=v[i.pop()],b=N.add.vmsk,q=N.add.vogk,O=b.clone(),R=b.clone(),k=JSON.stringify(q); +R.g=R.g.concat(T.slice(2));R.D=[D.A.N_(R.g)-1];var L=D.Km.D4(A[1]);q.push(L?L:D.Km.t4());this.mO(a,N.VS,R,q); +this.zd(a,this.name,N.VS,O,R,null,k,JSON.stringify(q))}else if(d==0){this.HQ(a,F,y,A)}else if(d==2){var R=new Y.G2; +R.g=R.g.concat(T.slice(2));var C=R.QH();if(!this.nr.anta)D.round(C.channel);var t=D.G(C.rect.L()*4); +D.Jx(t,(y.Fm&255)<<16|(y.Fm>>8&255)<<8|(y.Fm>>16&255)<<0);D.Iy(C.channel,t,3);var _=new u(z.E._,!0); +_.U=m.T8;_.data={e:"draw",Hq:{buffer:t,rect:C.rect.clone()},J7:this.name};F.n(_)}}this.Q$=null;a.J.Js=null; +a.J.i_=null;a.J.e3=[];a.a.He=null;a.rH=!0};m.MG.prototype.FV=function(a,F,y,c,Q){for(var y in a)this.nr[y]=a[y]}; +m.MG.SA=function(a,F,y,c,Q){var S=a.x,h=a.y,d=F.x,W=F.y;if(Q&&Q.yc==2){if(c){d=Math.round(d);W=Math.round(W)}S=d-Q.x; +h=W-Q.y}else{var w=0;if(Q&&Q.yc==1)w=Q.y/Q.x;else if(y&&y.Y(ht.xO))w=1;if(w!=0){if(c){if(SS?S+T:S-T;W=W>h?h+T*w:h-T*w}if(y&&y.Y(ht.V0)){S-=d-S;h-=W-h}}var a=new iS(S,h),F=new iS(d,W); +if(c)m.MG.arf(a,F);return[a,F]};m.MG.arf=function(a,F){if(a.x>F.x){var y=a.x;a.x=F.x;F.x=y}if(a.y>F.y){var y=a.y; +a.y=F.y;F.y=y}a.x=Math.floor(a.x);a.y=Math.floor(a.y);F.x=Math.ceil(F.x);F.y=Math.ceil(F.y)};m.MG.a1G=function(){return{classID:"Mk",null:{t:"obj ",v:[{t:"Clss",v:{classID:"contentLayer"}}]},Usng:{t:"Objc",v:{classID:"contentLayer",Type:{t:"Objc",v:{}}}}}}; +m.MG.NH=function(a,F){var y=m.MG.a1G();if(F==null)F=JSON.parse(JSON.stringify(aX.YL[a]));bL.r6.N1(F,y.Usng.v.Type.v,a); +return{fS:"make",nn:y}};m.MG.Py=function(a,F){var y=F.Zf,c=JSON.parse(JSON.stringify(F.$g));if(y.ek==0)c.fillEnabled.v=!1; +var Q=m.MG.NH(Math.max(0,y.ek-1),y.vV);Q.nn.Usng.v.Shp=a;Q.nn.Usng.v.strokeStyle={t:"Objc",v:c};return Q}; +m.cx=function(){m.Zi.call(this,[10,29],m.vc,"tools/pen");this.np=null;this.Fr=null;this.RE=null;this.$p=0; +this.a4k=0;this.hq=null;this.jh=!1;this.D7=!1;this.h0=!1};m.cx.prototype=new m.Zi;m.cx.prototype.qO=function(a){return this.Fr!=null}; +m.cx.prototype.KM=function(a,F,y,c){m.Zi.prototype.KM.call(this,a,F,y,c);if(!c.Y(ht.V0))this.h0=!1}; +m.cx.prototype._n=function(a,F,y,c,Q){this.np=Q;this.XI(F,y);var S=a.a.Mz(Q.x,Q.y),o,v;S.x=Math.round(S.x); +S.y=Math.round(S.y);var h=m.j7.YJ(a,S,y),d=a.uK(this.$p==1),W=d[0],w=d[1],J=W[w.pop()],A=J?J.add.vmsk:null,T=4*z.K()/a.a.X; +if(A)o=D.A.ZG(A.g,S,!0,T);var i=c.Y(ht.V0);if(this.$p==0&&(A==null||A.c8.length==0&&o.VS==-1)){var N=new u(z.E.W5,!0),b=D.Km.Kn("customShape",[0,0,1,1],null,null,null,"--"); +N.data=m.MG.Py(b,y);F.n(N);d=a.uK(!0);W=d[0];w=d[1];J=W[w.pop()];A=J.add.vmsk;A.g=A.g.slice(0,2)}var q=J.add.vogk; +this.Fr=A.clone();this.RE=JSON.stringify(q);var O=A.g,R=D.A.N_(O);v=D.A.u1(A.g,new cJ(S.x-T,S.y-T,T*2,T*2),A.c8); +o=D.A.ZG(A.g,S,!0,T);var k=v[0].length+v[1].length+v[2].length;if(o.VS!=-1&&v[0].length==0){var L=D.A.QZ(O,o.VS); +while(O[L].length<=o.YB){o.YB-=O[L].length;L+=O[L].length+1}O[L].length++;O.splice(L+2+o.YB,0,{type:4,yp:h.clone(),W:h.clone(),tT:h.clone()}); +A.c8=[L+2+o.YB]}else if(k!=0&&i){var C=0;for(var G=0;G<3;G++)if(v[G].length!=0){C=v[G][0];this.D7=G==1; +break}if(v[0].length!=0){var t=A.g.length-1,_=A.g[C];_.tT=_.W.clone();var M=_.type>=3?3:0;if(C!=t){_.yp=_.W.clone(); +_.type=M+1;this.h0=!0}else _.type=M+2}A.c8=[C]}else if(v[0].length==1&&O[v[0][0]-1]&&O[v[0][0]-1].oa==null){var C=v[0][0],L=D.A.bx(O,C); +L=D.A.QZ(O,L);var I=L+O[L].length;if(C!=I){O[L].length--;O.splice(C,1);I--}A.c8=[I]}else{var j=0;if(A.c8.length!=1){A.D=[R]; +O.push({type:3,length:1,oa:[1,2,3,0][this.a4k],hU:0,XY:0,BA:0});j=O.length;q.push(D.Km.t4())}else{var r=A.c8[0],s=D.A.bx(O,r),L=D.A.QZ(O,s); +r=L+O[L].length;if(iS.Uy(S,O[L+1].W)0}else{var N=this.Fq.clone(),b=N.x,q=N.y;N.offset(S.x-this.G$.x,S.y-this.G$.y); +N.x=Math.round(N.x);N.y=Math.round(N.y);var O=m.j7.OA(a,N,y),R=new hg(1,0,0,1,N.x-b+O[0],N.y-q+O[1]); +D.A.dc(d.g,R,d.D);D.Km.q(W,D.o.XE(R),d.D);m.j7.Wr(a,N,O)}this.mO(a,h.VS,d,W)}else{var k=this.G$;a.J.Js=D.M.Fx(new cJ(k.x,k.y,S.x-k.x,S.y-k.y)); +a.rH=!0}};m.Lw.prototype.Ww=function(a,F,y,c,Q){if(this.G$==null)return;var S=a.a.Mz(Q.x,Q.y),h=this.FT,d=h?h.add.vmsk:null; +if(this.TE){var W=JSON.stringify(h.add.vogk);if(!this.G$.pI(S))this.zd(a,"Move Paths",h.VS,this.Fr,d,null,this.RE,W); +if(a!=null&&a.J.i_){a.J.i_=null;a.rH=!0}}else{if(d){var w=this.G$,J=new cJ(w.x,w.y,S.x-w.x,S.y-w.y),A=D.A.agW(d.g,J); +if(c.Y(ht.xO)){for(var G=0;Gw+J)S[o]+=A}this.UR(c,Q);c.c8=[]}this.mO(this.lu,this.FT.VS,c,Q); +if(a=="cancel")this.ro()};m.kT.prototype.disable=function(a,F,y,c){this.ty(a)};m.kT.prototype._n=function(a,F,y,c,Q){this.ty(a); +var S=a.a.Mz(Q.x,Q.y),A,T,o;this.D1=S.clone();var h=a.uK(),d=h[0],W=h[1];if(W.length==0)return;var w=4*z.K()/a.a.X,J=new cJ(S.x-w,S.y-w,w*2,w*2); +for(var v=0;v>>1);a.J.Tt.push(M.x,M.y); +a.rH=!0}}}};m.kT.prototype.ty=function(a){if(a&&a.J.Tt.length!=0){a.J.Tt=[];a.J.Tr=[];a.rH=!0}};m.kT.prototype.Ww=function(a,F,y,c,Q){var S=a.a.Mz(Q.x,Q.y),h=this.FT,d=h?h.add.vmsk:null,W=h?h.add.vogk:null; +if(this.r5!=-1){if(Date.now()-this.s7<300){var w=d.g[this.r5],J=this.br,A=null;if(J==0){var T=w.yp.pI(w.W),o=w.tT.pI(w.W); +if(!T&&!o){A="Anchor Type";if(w.type==1||w.type==4)w.type++;else{w.type--;w.tT=w.W.add(w.W.VU(w.yp))}}else{A="Add Handles"; +if(T&&o){w.yp.x-=30;w.tT.x+=30}else if(T)w.yp=w.W.add(w.W.VU(w.tT));else if(o)w.tT=w.W.add(w.W.VU(w.yp))}}else{A="Remove Handle"; +if(J==1)w.yp.Nv(w.W);else w.tT.Nv(w.W)}this.UR(d,W);this.mO(a,h.VS,d,W);this.zd(a,A,h.VS,this.Fr,d,null,this.RE,JSON.stringify(W))}else if(!this.D1.pI(S)){this.zd(a,"Drag Anchors",h.VS,this.Fr,d,null,this.RE,JSON.stringify(W))}this.s7=Date.now()}else if(this.G$!=null){var v=this.G$,i=new cJ(v.x,v.y,S.x-v.x,S.y-v.y); +if(i.t<0)i.x+=i.t;if(i.w<0)i.y+=i.w;i.t=Math.abs(i.t);i.w=Math.abs(i.w);var N=D.A.u1(d.g,i);d.c8=N[0].concat(c.Y(ht.xO)?d.c8:[]); +a.J.Js=null}this.ro();a.rH=!0};m.kT.prototype.ro=function(){this.FT=null;this.Fr=null;this.G$=null;this.r5=this.br=-1; +this.hw=null};m.kT.prototype.UR=function(a,F){for(var G=0;G2)c.push(-1-a.un[G]); +var Q=[],S=a.a.Ty;if(S[0]+S[1]+S[2]==3)if(y!=null||c.length==0||a.J5!=null&&a.J5.length!=0)Q=a.CL(F,y,null,!0); +Q=Q.concat(c);for(var G=0;G=0&&!h.rect.ur()){this.kY=1;this.rs=a.Z; +this.xt=h.n9;this.GN=!1;if(!h.EZ(a,a.Z)){this.GN=!0;h.Gc(a,a.Z,!1)}this.dt={BV:h.n9.nu,a_:h.n9.sb}}else{this.kY=0; +this.V3=m.p.Vp(a,this.u,null,y);for(var G=0;G=0)c=a.Z.rect.clone();else for(var G=0;G0&&h.add.artb)Q=Q.jD(h.Hu())}return!Q.ur()?Q:c};m.p.prototype.AD=function(a,F,y,c){var Q=new u(F,!0); +Q.data=y;if(c)Q.U=c;a.n(Q)};m.p.Vp=function(a,F,y,c){var Q=[];for(var G=0;G=0){h=a.u[S];d=h.su(a,y,c)}else if(S>-1e3){h=a.ga[-1-S];d=[2]}else{Q.push([null,null,null,null,null,null,null,a.v6[-1e3-S].clone()]); +continue}var W=[];if(d.indexOf(0)!=-1){var w={KR:[h.buffer.slice(0),h.rect.clone()]};W.push(w);if(h.P7()){var J=h.Zg(a); +w.aoZ=J.buffer.slice(0);w.a07=J.rect.clone()}}else W.push(null);if(d.indexOf(1)!=-1)W.push(h.QH().clone()); +else W.push(null);if(d.indexOf(2)!=-1)W.push({u_:h.add.vmsk.clone(),ln:h.add.vstk?JSON.parse(JSON.stringify(h.add.vstk)):null,vV:h.add.vstk?m.Zi.RF(a,S):null,Km:h.add.vogk?JSON.parse(JSON.stringify(h.add.vogk)):null}); +else W.push(null);if(h.add.TySh&&W[0]){eA.bw(h.add.TySh);W.push(h.add.TySh.q.clone())}else W.push(null); +if(h.add.SoLd&&W[0])W.push(JSON.parse(JSON.stringify(h.add.SoLd)));else W.push(null);if(d.indexOf(3)!=-1)W.push(h.Zg(a).N.clone()); +else W.push(null);if(h.add.lmfx)W.push(JSON.stringify(h.add.lmfx));else W.push(null);Q.push(W)}return Q}; +m.p.KI=function(a,F,y){for(var G=0;G1; +if(M)_=!1;var I=_?t.D:null,j=M?t.c8:null;if(C){var r=D.be.Nq(h);D.o.q(A,r);D.A.a38(t.g,r,I,j)}else D.A.apH(t.g,A,I,j); +if(i.add.vstk&&d){i.add.vstk.strokeStyleLineWidth.v.val=N[2].ln.strokeStyleLineWidth.v.val*o;var s=N[2].vV; +if(s&&s.ek==3){s=JSON.parse(JSON.stringify(s));var e=s.vV.phase.v;s.vV.Scl.v.val=Math.round(s.vV.Scl.v.val*o); +e.Hrzn.v=Math.round(e.Hrzn.v*o);e.Vrtc.v=Math.round(e.Vrtc.v*o);m.Zi.bd(i,s)}}if(i.add.vogk){i.add.vogk=JSON.parse(JSON.stringify(N[2].Km)); +if(C||M)D.Km.a3X(i.add.vogk);else D.Km.q(i.add.vogk,A,y.length>1?[]:t.D,d)}t.on*=o;i.add.vmsk=t;if(i.add.vogk)D.Km.X7(i.add.vogk,i.add.vmsk)}if(N[3]){var P=N[3].clone(); +P.concat(T);i.add.TySh.q=P;eA.JM(i.add.TySh);var l=new fD(i.add.TySh.KU,F.G6),x=a4.dx(l,i.add.TySh); +i.rect=x.a_;i.buffer=x.BN}if(N[4]){var E=i.add.SoLd,p=m.p.DL(N[4].nonAffineTransform);D.o.q(A,p);var f=D.M.zC(p); +if(dP.fY(p)){if(h){var H=D.M.zO(D.be.Nq(N[4].warp.v)),L=D.o.se(p,H),g=D.M.zO(D.be.Nq(h));p=[g.x,g.y,g.x+g.t,g.y,g.x+g.t,g.y+g.w,g.x,g.y+g.w]; +D.o.q(L,p);E.warp.v=h}var B=D.o.se(p),U=p;if(!D.o.N4(B)){B[6]=B[7]=0;U=[0,0,1,0,1,1,0,1];D.o.q(B,U)}E.Trnf=m.p.w8(U); +E.nonAffineTransform=m.p.w8(p);if(E.filterFX)E.filterFX=JSON.parse(JSON.stringify(N[4].filterFX));m.p.sn(E,T); +i.et(a,Q==0)}}if(N[5])m.p.CQ(a,N[5],i.Zg(a).N,Q,A,h);if(N[7])m.p.CQ(a,N[7],i,Q,A,h);if(0<=v){if(Q!=0)i.Fe(); +i.Ja(a);i.T()}}a.T()};m.p.tI=function(a,F,y,c,Q,S){if(y==null)y=!1;return m.p.xn(a,y?0:1,D.o.XE(F),null,c,Q,S,y)}; +m.p.xn=function(a,F,y,c,Q,S,h,d){if(d==null)d=!1;if(d&&h)throw"e";var W={},T=0,o=.3;if(c&&!D.be.jM(c)){var w=D.be.Nq(c); +D.o.q(y,w);W.rect=D.M.zC(w);W.buffer=D.G(W.rect.L()*4);D.W3.drawImage(w,a[0],a[1].t,a[1].w,W.buffer,W.rect,F==0); +return W}D.HG(a);var J=a[0],A=a[1],v=A.L()*m.p.Ms(D.o.TY(y));if(d&&v>4e6)o=v>8e6?2.2:1.2;while(T+316&&D.o.N4(y)&&m.p.Ms(D.o.TY(y))1e5||W.rect.w>1e5||W.rect.L()>3e4*3e4)return null; +var k=W.rect.L()*4;if(Q&&Q.byteLength>=k&&k>=Q.byteLength>>2){W.buffer=new Uint8Array(Q)}else{W.buffer=D.G(k)}D.o.drawImage(O,J,A.t,A.w,W.buffer,W.rect,F==0,S,d); +if(F==2&&W.buffer){var L=W.rect.t,C=W.rect.w,t;t=[0,-1,0,-1,16,-1,0,-1,0];t=D.G5.jL(t);var _=W.buffer.slice(0); +D.G5.rn(_,W.buffer,L,C,t,255,!1,!0)}if(W.buffer)return W};m.p.CQ=function(a,F,y,c,Q,S){if(F.color==255)D.kW(F.channel); +var h=F.rect,d=D.G(h.L()*4);D.Iy(F.channel,d,3);var W=m.p.xn([d,h],c,Q,S);if(W){y.rect=W.rect;y.channel=D.G(W.rect.L()); +D.ie(W.buffer,y.channel,3);y.Sq=!0}if(F.color==255){D.kW(F.channel);if(W)D.kW(y.channel)}};m.p.sn=function(a,F){var y=a.filterFX; +if(y)y=y.v.filterFXList;if(y)y=y.v;if(y)for(var c=0;c>>1)+c.D[Q]);a.J.Tt=a.J.Tt.concat(c.GD);if(this._J[3])D.M.concat(a.J.Js,D.M.akE(c.YV,c.wA))}a.rH=!0}; +m.Bi.aB=function(a,F,y){var c=a.buffer,Q=a.rect,S=a.ap5,h=i1.de("rigidTransform");if(S)for(var G=0;G<4; +G++){h["PuX"+G].v=S[G*2];h["PuY"+G].v=S[G*2+1]}var d=h.puppetShapeList.v,W=D.qV.a1o(c,Q.t,Q.w,F[1],F[2]),w=[]; +for(var J=0;J>>1)+q.D[O]); +for(var O=0;O=W[2]||W[1]>=W[3]){a.splice(G,1); +G--;continue}m.$Y.Ym(a,G,W)}};m.$Y.VP=function(a,F){var y=a.gx;for(var G=0;G1e6,h=new u(z.E.Q,!0);h.data={e:z.h.pC,gd:S};if(Q)y.n(h);setTimeout(function(){var d=m.YT.VW(a); +for(var W in d)F[W]=d[W];var h=new u(z.E.Q,!0);h.data={e:z.h.db,gd:S};if(Q)y.n(h)},30)}};m.YT.bK=function(a){var F=a.D[0],y=a.u[F],c=y.rect,Q=c.t,S=c.w,h=Q*S,d=y.buffer; +return[F,c.x,c.y,Q,S,d[0],d[1],d[2],d[3]].join(",")};m.YT.VW=function(a){var F=a.D[0],y=a.u[F],c=y.rect,Q=c.t,S=c.w,h=Q*S,d=y.buffer,W=Date.now(),w=D.G(h); +w.fill(128);var J=D.l3.b2(d,Q,S);console.log(Date.now()-W);var A={key:m.YT.bK(a),co:d,rect:c.clone(),cA:Q,ml:S,AS:12,ai9:!1,qi:w,fN:J,Z:D.G(h),Lz:null,G_:null,Zx:null}; +m.YT.nV(A);return A};m.YT.nV=function(a,F){var y=a.cA,c=a.ml,Q=0,S=0,h=Date.now(),d=a.Lz!=null&&D.l3.a4g(a.fN.wA,a.Lz.wA,a.Lz.tH,a.qi); +Q=Date.now()-h;h=Date.now();if(!d&&!a.ai9){a.Lz=D.l3.qr(a.fN,y,c,a.qi,a.AS);if(!D.l3.a4g(a.fN.wA,a.Lz.wA,a.Lz.tH,a.qi)){a.ai9=!0; +console.log("conflict")}a.G_=D.l3.a3o(a.co,y,c,a.Lz.wA,a.Lz.tH);a.Zx=[a.G_[0].slice(0),[]];S=Date.now()-h; +h=Date.now()}var h=Date.now();if(F){a.Zx[0].set(a.G_[0]);var W=a.G_[1],w=a.Zx[1];for(var J=0;J20)this.HJ(a,T,F);a.J.Js=null;a.rH=!0;this.UU=null;a.J.e3=[]}};m.Zu.prototype.RZ=function(a,F,y,c){var Q=this.UU,S=m.j7.YJ(a,F,c),h=m.MG.SA(Q,S,y,!0); +Q=h[0];S=h[1];return D.M.zC([Q.x,Q.y,S.x,S.y])};function dP(a,F,y,c,Q,S,h,d){this.sO=null;this.E8=a?a.slice(0):null; +this.dg=4;this.vS=null;this.xd=null;this.ZV=null;this.OH=-1;this.sG=null;this.a8o=!1;this.agX=[];for(var G=0; +G<8;G++)this.agX.push(f$.ajS(0,PIMG.rotate,-.5,-.5,-45-G*45));this.a95=F;this.aiR=y;this.ae5=c;this.apn=Q; +this.ajn=S;this.yE=h;this.alp=d==null?1:d}dP.prototype.xu=function(){return this.OH!=-1};dP.prototype.DM=function(){return this.E8.slice(0)}; +dP.prototype.F_=function(a){this.E8=a};dP.prototype.anT=function(){return this.rO(this.E8)};dP.prototype.a8c=function(){return this.dg}; +dP.prototype.abu=function(a){this.dg=a};dP.prototype.FH=function(a){if(a==null)a=this.E8;if(this.dg==9)return this.vS; +else return this.rO(a)[this.dg]};dP.prototype.ah_=function(a){if(this.dg==9)this.vS=a.clone();else{var F=this.FH(),y=new hg(1,0,0,1,a.x-F.x,a.y-F.y); +D.M.q(this.E8,y,this.E8)}};dP.prototype.XN=function(a,F,y){var c=this.Kg(null,a,F),Q;if(c==9)return"default"; +if(c==10){if(y)return null;return!this.a95?"move":null}if(c==-1||c==4)return null;if(c==11){var S=this.FH().VU(a); +Q=90-Math.atan2(S.y,S.x)*180/Math.PI;var h=Math.round(8*(Q/360));h=(h+8)%8;return this.agX[h]}else{var d=this.Ri(a,this.E8); +Q=[135,90,45,180,0,0,225,270,315][c];var W=D.o.se(this.E8);Q+=Math.atan2(-W[3],W[0])*180/Math.PI;var w="ew nesw ns nwse ew nesw ns nwse".split(" "),h=Math.round(8*(Q/360)); +h=(h+8)%8;return w[h]+"-resize"}};dP.prototype.Ri=function(a,F){var y=D.o.kW(D.o.se(F)),c=new Float64Array(2); +D.o.d$(a.x,a.y,y,c);return new iS(c[0],c[1])};dP.prototype.gc=function(a){var F=this.Ri(a,this.E8);return 0<=F.x&&F.x<=1&&0<=F.y&&F.y<=1}; +dP.prototype._n=function(a,F,y,c,Q,S){this.a8o=S;this.sG=c;var h=a.a.X,d;if(this.E8==null)c=m.j7.YJ(a,c,F); +this.ZV=c.clone();if(this.E8==null){this.ZV.offset(1,1);var W=Q==null?1:1/Q;this.E8=[c.x,c.y,c.x+1,c.y,c.x+1,c.y+W,c.x,c.y+W]; +d=8}else{d=this.Kg(y,c,h);if(0<=d&&d<=8)this.ZV=this.rO(this.E8)[d];if(d==9){this.dg=9;this.vS=c.clone()}}this.sO=this.E8.slice(0); +this.OH=d;this.XQ(a,F);this.xd=this.FH();return d!=-1};dP.prototype.Kg=function(a,F,y){var c=-1,Q=this.rO(),S=6*z.K()/y; +if(c==-1)if(iS.Uy(this.FH(),F)=1)hY=(T.x-B)/Z;if(Math.abs(aR)>=1)j3=(T.y-U)/aR;if(Q)hY=j3=(hY+j3)/2;var X=new hg;X.translate(-B,-U); +X.scale(hY,j3);X.translate(B,U);_=M.slice(0);D.M.q(_,X,_)}else{if(this.lW()){T.x=Math.round(T.x);T.y=Math.round(T.y)}var c9=[0,1,2,5,8,7,6,3],hW=c9[(c9.indexOf(w)+4)%8],cY=[]; +for(var G=0;G<3;G++)for(var j=0;j<3;j++)cY.push(new iS(j/2,G/2));var O=this.xd,ho=this.Ri(T,M),e7=this.Ri(W,M),b2=S&&(this.dg==4||this.dg==9)?this.Ri(O,M):cY[hW],aB=new hg,eB=new hg,hY=(ho.x-b2.x)/(e7.x-b2.x); +if(hY==0)hY=1e-4;var j3=(ho.y-b2.y)/(e7.y-b2.y);if(j3==0)j3=1e-4;if(this.apn){hY=Math.max(hY,0);j3=Math.max(j3,0)}if(w==0||w==2||w==6||w==8){if(Q||this.ajn)aB.scale(hY,hY); +else aB.scale(hY,j3)}if(w==1||w==3||w==5||w==7){var et=this.ajn;if(w==1||w==7)aB.scale(et?j3:1,j3);else aB.scale(hY,et?hY:1); +if(this.aiR&&h){if(w==1||w==7)eB.Xa=(ho.x-b2.x)/(ho.y-b2.y);else eB.d=(ho.y-b2.y)/(ho.x-b2.x)}}var X=new hg; +X.translate(-b2.x,-b2.y);X.concat(aB);X.concat(eB);X.translate(b2.x,b2.y);_=[0,0,1,0,1,1,0,1];D.M.q(_,X,_); +var E=D.o.se(M);D.o.q(E,_)}if(dP.fY(_))this.E8=_}this.XQ(a,F);if(o)m.j7.Wr(a,v,o)};dP.MJ=function(a,F,y,c,Q,S){var h=y-a,d=c-F,W=Q-a,w=S-F,J=h*h+d*d,A=W*h+w*d,T=A/J,o=a+T*h,v=F+T*d,i=Q-o,N=S-v; +return[o,v,Math.sqrt(i*i+N*N)]};dP.prototype.lW=function(){var a=this.E8;return Math.abs(a[1]-a[3])<1e-6&&Math.abs(a[2]-a[4])<1e-6||Math.abs(a[0]-a[2])<1e-6&&Math.abs(a[3]-a[5])<1e-6}; +dP.fY=function(a){return D.M.GU(a)||D.M.GU([a[6],a[7],a[4],a[5],a[2],a[3],a[0],a[1]])};dP.prototype.Ww=function(a,F,y,c){this.OH=-1; +this.sG=null;a.J.i_=null;a.J.e3=[];a.rH=!0};dP.prototype.KM=function(a,F,y){var c=y.GT();if(c.x||c.y){var Q=new hg(1,0,0,1,c.x,c.y); +D.M.q(this.E8,Q,this.E8);this.XQ(a,F);return!0}return!1};dP.prototype.rO=function(a){if(a==null)a=this.E8; +var F=a[6]-a[0],y=a[7]-a[1],c=a[4]-a[2],Q=a[5]-a[3],S=[a[0],a[1],a[2],a[3],a[0]+F/2,a[1]+y/2,a[2]+c/2,a[3]+Q/2,a[6],a[7],a[4],a[5]],h=[]; +for(var G=0;G<3;G++){var d=G*4,W=S[d+0],w=S[d+1],J=S[d+2],A=S[d+3];h.push(new iS(W,w));h.push(new iS(W+(J-W)/2,w+(A-w)/2)); +h.push(new iS(J,A))}return h};dP.prototype.XQ=function(a,F,y){if(y==null)y=!1;var c=this.rO(),Q=c[0],S=c[2],h=c[6],d=c[8]; +a.J.Js={F:[],I:[]};a.J.Js.F.push("M","L","L","L","Z");a.J.Js.I.push(Q.x,Q.y,S.x,S.y,d.x,d.y,h.x,h.y); +var W=this.alp;if(W>1){var w=S.VU(Q),J=h.VU(Q),A=d.VU(S),T=d.VU(h);for(var G=1;Ga.index;G--)this.kU(y);if(a.index>y.Ch)for(var G=y.Ch; +G1)y.D.splice(X,1);y.D.sort(function(A,fV){return A-fV});q.nn.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelection"}}; +Z=h}else if(w&&!W&&g>0){S=g==1?Y.Yz:g==2?Y.l_:Y.uE;escape=!0}else if((w||a.aot==1)&&y.D.length>0){var c9=Math.min(h,y.D[0]),hW=Math.max(h,y.D[y.D.length-1]); +y.D=[];for(var G=c9;G<=hW;G++)if(y.u[G].add.lsct!=fc.xD)y.D.push(G);q.nn.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelectionContinuous"}}; +Z=h}else{Z=h;var E=y.u[h];if(E&&E.Dl()&&a.amI)E.add.lsct=fc.bc;else if(y.D.length==1&&y.D[0]==h&&g==E.Ev){j3=!0}if(!j3){y.D=[h]; +y.t7()}}if(!j3){if(Z!=null&&Z")e8++;this.track({fS:"delete",nn:{classID:"Dlt",null:fb.lG("Lyr",!0)}}); +var A=new gF([6,31],this);A.data={e:Y._Q,fq:y.u.slice(0),H7:i6,k_:y.D.slice(0),ea:[e8]};y.OW(A);this.wo(A.data,y)}if(S==Y.Hl){if(!c.Y(ht.xO))return; +var A=new gF("Switch Layer Link",this);A.data={e:S,c:a.c};y.OW(A);this.wo(A.data,y)}if(S==Y.ww){var x=a.a85?a.a85:y.D,af=0,gW=!1; +if(x.length==0)return;if(x.length==1&&y.u[x[0]].sW==0){alert(aT.get([15,7,5]));return}var fI=[];for(var G=0; +G0){if(ev.add.lnk2==null)ev.add.lnk2=[]; +for(var G=0;G"&&a.u[a.u.length-1].Dl())e0=[hG-1]; +var A=new gF([6,0],this);A.data={e:Y._Q,fq:ev.u.slice(0),H7:i6,k_:dh,ea:e0};ev.OW(A);this.wo(A.data,ev); +if(ct!=0||bN!=0)m.j7.hB(ev,ev.CL(),null,ct,bN)}if(S==Y.fM){var en=a.c!=null?[a.c]:y.CL(),i6=y.u.slice(0); +for(var G=0;G7;for(var dx=0;dx=0;G--)if(e0[G]>=i6.length)e0.splice(G,1);var A=new gF([6,40],this);A.data={e:Y._Q,fq:y.u.slice(0),H7:i6,k_:y.D.slice(0),ea:e0}; +y.OW(A);this.wo(A.data,y)}if(S==Y.WP){var gP=y.D.length;if(gP<2){alert("Select two or more layers."); +return}if(!y.UQ())return;var et=y.u[y.D[0]].clone(),i6=[];for(var G=0;G2e6){alert("Blended areas are too large."); +return}for(var G=1;G1&&cL!=-1){console.log("separating an open path into a new layer");E=E.clone();dX=E.add.vmsk; +bn=dX.g;var v=bn[cL].length,aI=E.clone();aI.add.lyid=y.bT();dX.g=bn.slice(0,2).concat(bn.slice(cL,cL+v+1)); +dX.D=[];E.Ja(y);E.T();var cO=aI.add.vmsk.g;aI.add.vmsk.g=cO.slice(0,cL).concat(cO.slice(cL+v+1,cO.length)); +aI.add.vmsk.D=[];aI.Ja(y);i6[G]=E;i6.splice(G+1,0,aI);for(var dx=0;dxG)dU[dx]++; +var aO=dU.indexOf(G);if(aO!=-1){dU.splice(aO+1,0,G+1)}}}}if(i6.length!=y.u.length){var A=new gF("Splitting open paths",this); +A.data={e:Y._Q,fq:y.u.slice(0),H7:i6,k_:y.D.slice(0),ea:dU};y.OW(A);this.wo(A.data,y)}}if(S==Y.IG){this.N9({e:Y.jO},F,y,c,Q); +var dh=y.D.slice(0),i3=y.u.slice(0),en=y.CL();if(en.length==0)return;y.Z7(en,!1,a.qv);var A=new gF([6,36,0],this); +A.data={e:Y._Q,fq:i3,H7:y.u.slice(),k_:dh,ea:y.D.slice(0)};y.OW(A);this.wo(A.data,y)}if(S==Y.zo){var e5=d.add.SoLd; +if(e5==null)return;var eq=e5.Idnt.v,c1=y.ed(eq);c1.fh(!1);var db=c1.n4[0],cW=c1.n4[1];if(D.Ku(db)){alert("The smart object contains transparency."); +return}var cR=f$.QS("jpg").lQ([[db.buffer]],cW.t,cW.w,[90]);this.N9({e:Y.jz,Co:y,data:new Uint8Array(cR),id:eq,qv:"jpg"},F,y,c,Q); +console.log(y.add);return}if(S==Y.jz){var fx=a.Co.ed(a.id),aP=fx.clone();aP.raw=a.data;if(a.Xw)aP.Xw=a.Xw; +if(a.qv){aP.mZ=" ";aP.ek=" ";aP.Xw=aP.Xw+"."+a.qv}else{aP.mZ="8BIM";aP.ek="8BPB";aP.Xw=aP.Xw+".psd"}aP.fh(!1); +fx.fh(!1);var A=new gF([6,36,1],this);A.data={e:Y.jz,id:a.id,BM:fx,OY:aP};a.Co.OW(A);this.wo(A.data,a.Co)}if(S==Y.E5){var A=new gF([6,36,4],this); +A.data={e:S,c:h,yo:d.add.SoLd.Impr.v.classID,Lk:a.Lk};y.OW(A);this.wo(A.data,y)}if(S==Y.FC){var fw,cn; +if(a.xx){fw=a.Co;cn=a.xx}else{a.Co.h4();a.Co.Wa();a.Co.T();a.Co.P9();a.Co.fh();fw=f$.QS("PSD").lQ(a.Co,0,0,[!0,!0]); +cn=a.Co.name}if(!(fw instanceof ArrayBuffer))throw"e";fw=new Uint8Array(fw);var X=a.Se!=null?a.Se:y.D[y.D.length-1]+1,cf=y.eu(fw,cn,0,0,!0),i6=y.u.slice(0); +i6.splice(X,0,cf);var A=new gF([6,36,2],this);A.data={e:Y._Q,fq:y.u.slice(),H7:i6,k_:y.D.slice(0),ea:[i6.indexOf(cf)]}; +y.OW(A);this.wo(A.data,y)}if(S==Y.q_&&a.u6=="merge"){var b4=[],iC=y.root.children,bD=0;for(var G=0;G=2)b4=e_;if(b4.length<2){alert("At least two animation folders needed (whose layers start with \"_a_\").",3500); +return}var bE=[];for(var G=0;G1){var iE=parseInt(eR.pop());if(!isNaN(iE)&&iE!=0)fE=iE}c4[0].push(E);c4[1].push(fE);c4[2]+=fE}}hH.sort(function(A,fV){return fV[2]-A[2]}); +var is=hH[0],aa=is[2];for(var fX=1;fX>>1;if(eD<17){var C=b_.length-1;if(G==0)b_[1]+=eD; +else if(G==b_.length-1)b_[C-1]+=eD;else{b_[G-1]+=hb;b_[G+1]+=eD-hb}b_.splice(G,1);G--}}var gd=[],iT=new cJ(0,0,y.t,y.w); +for(var G=0;G.5}else if(a.target!=null){ch=a.target; +a7=!0;y.qD=!0}else{var i$=a.u6;a7=i$>1;if(i$==0){ch=y.u.length-1}if(i$==1){ch=gf[gf.length-1]+1;var v=y.IU(ch); +if(v.indexOf(cT)==-1)ch+=v.length-1}if(i$==2){ch=gf[0]-1;var v=y.IU(ch);if(v.indexOf(cT)==-1)ch-=v.length-1}if(i$==3){ch=0}if(ch<0||ch>y.u.length-1)return; +y.qD=!0}if(gf.indexOf(ch)!=-1&&!ed)return;var dc=y.u[ch],i6=[];if(ed)i6=y.u.slice(0);else for(var G=0; +G.8)fG-=y.IU(ch).length-1; +var bC=[],bv=ed?y.iR(ig?null:cT):null;for(var G=0;G0){var gO=A.data.nn={classID:"setd",null:fb.lG("contentLayer",!0),T:{t:"Objc",v:{}}},ic=["SoCo","GdFl","PtFl"][hS.ek-1]; +bL.r6.N1(hS.vV,gO.T.v,hS.ek-1);this.track({fS:"set",nn:gO})}}if(a.RC&&hS.ek==3)y.lq(hN.DW(hS.vV.Ptrn.v,Q.MU)); +if(!a.RC){var hz=hS.strokeStyleContent.v;if(hz.classID==aX.ln.PD[2])y.lq(hN.DW(hz.Ptrn.v,Q.MU))}this.wo(A.data,y)}}; +bL.r6.N1=function(a,F,y){var c=[aX.HN,aX.pX,aX.BZ][y];if(F.classID==null)F.classID=["solidColorLayer","gradientLayer","patternLayer"][y]; +for(var G=0;G=0?F.u[b]:F.ga[-1-b];d.add.vogk=JSON.parse(N[G+1]);D.Km.X7(d.add.vogk,d.add.vmsk); +if(b>=0)d.Ja(F)}F.T()}if(y==Y.FG){c.add.artb=JSON.parse(a.ak$);F.T();m.tN.rQ(F,a)}if(y==Y.Pq){F.Z=a.rs; +F.v6=a.v2.slice(0);F.nS=a.Mc.slice(0);F.rH=F.$F=!0}if(y==Y.Hl){c.oN=!c.oN}if(y==Y.ww){var q=a.abt;for(var G=0; +G=0?F.u[b]:F.ga[-1-b];d.add.vogk=JSON.parse(N[G+1]);D.Km.X7(d.add.vogk,d.add.vmsk); +if(b>=0)d.Ja(F)}F.T()}if(y==Y.FG){c.add.artb=JSON.parse(a.dI);F.T();m.tN.bL(F,a)}if(y==Y.Pq){F.Z=a.gg; +F.v6=a.cL.slice(0);F.nS=a.IH.slice(0);F.rH=F.$F=!0}if(y==Y.Hl){c.oN=!c.oN}if(y==Y.ww){var q=a.aah;for(var G=0; +G>v;if((i&1)==1)i--; +else i++;o.capturedInfo.v=(i<255)w=255-Math.round((h-255)*255/(h-Q))}return[Math.max(Q,0),Math.min(h,255),W,w,100]};bL.kq.prototype.N9=function(a,F,y,c,Q){var S=a.e; +if(S=="auto"){var h=a.Bt,d=bL.kq.getData(y);for(var G=0;G>>2,h=D.RR(y),d=.001*Q; +if(c==0||c==2)S=[[0,255,0,255,100],bL.kq.tL(h[1],d,Q,c==2),bL.kq.tL(h[2],d,Q,c==2),bL.kq.tL(h[3],d,Q,c==2)]; +if(c==1)S=[bL.kq.tL(h[0],d*.33,Q,!1),[0,255,0,255,100],[0,255,0,255,100],[0,255,0,255,100]];var W=i1.de("levl"); +for(var G=0;G<4;G++)gM.rT(W,G,S[G]);return W};bL.kq.prototype.eQ=function(a,F,y,c){if(this.xZ==null){if(a.du=="aply")y.u[y.D[0]].extend(new cJ(0,0,y.t,y.w)); +this.xZ=bL.kq.getData(y,null,a.du=="fade"?y.GV().data:null);if(a.du=="aply")this.xZ[0].oM=y.fh()}if(a.e=="edit"){this.Ie=[a.du,a.VO]; +var Q=this.xZ[0],S=bL.kq.ace(a.du,a.VO,Q.BV),h=eU.LX(a.du,S);if(a.du=="fade"||a.du=="aply")h=a.VO;if(h!=null){for(var G=0; +G>>16,m:a>>>8&255,d:a&255}}; +bL.ay.prototype.afS=function(a,F,y,c){if(this.xZ==null){var Q=i1.sM(a.du,a.VO);this.xZ=bL.kq.getData(y,Q.x!=0||Q.y!=0)}if(a.e=="edit"){var S=JSON.stringify(a.VO); +if((a.VO==null||S!=this.Si)&&a.Cl!=!0)for(var G=0;G1)W=1+Math.tan(Math.PI/2*S/101);var w=(1-W)/2,J=D.Ux.wk(d,d,d),A=[W,0,0,w,0,W,0,w,0,0,W,w,0,0,0,1],T=D.Ux.multiply(J,A),o=new D.xY(256); +for(var G=0;G<256;G++)o.i[G]=G;D.Ux.transform(o,o,T);c={type:y.ar,iP:o.i,f5:o.i,Wn:o.i,nl:!1,xR:!1}}else{var v=1024,i=-30+60*(S+100)/200,N=[]; +for(var G=0;G<4;G++)N.push(D.H1.Ka(G/3*255,G/3*255,!0));N[1].v.Hrzn.v=64;N[1].v.Vrtc.v=64-i;N[2].v.Hrzn.v=128+64; +N[2].v.Vrtc.v=128+64+i;N.sort(function(fh,hM){return fh.v.Hrzn.v-hM.v.Hrzn.v});var b=D.H1.wp(N,v);function q(fh,v){var N=[],$=3; +for(var G=0;G<$+1;G++)N.push(D.H1.Ka(G/$*255,G/$*255,!0));N[1].v.Hrzn.v=130-fh*26;N[1].v.Vrtc.v=130+fh*51; +N[2].v.Hrzn.v=233-fh*48;N[2].v.Vrtc.v=233+fh*10;return D.H1.wp(N,v)}var O=q(Math.abs(Q)/100,v);if(Q<0){var R=[],k=1/v; +for(var G=0;GL&&C>1)C--;R[G]=C*k}O=R}var t=new Uint8Array(v);for(var G=0; +G0){F=Math.max(cY/Math.E,F); +F=F*Math.exp(cY/1.75+hW/Math.PI);F=(1-e7)*F+e7*1}else{F=F*Math.exp(-cY*1.75+hW/Math.PI);F=F+-e7*1.14}F=Math.pow(F,1/ho); +F=Math.max(0,Math.min(1,F));t[G]=Math.round(F*255)}c={type:y.ar,iP:t,f5:t,Wn:t,nl:!1,xR:!1}}if(a=="vibA"){c={type:y.k6,kd:[F.vibrance?F.vibrance.v:0,F.Strt?F.Strt.v:0]}}if(a=="hue2"){var b2=[],aB=[],eB=[],et=F.Clrz?F.Clrz.v:!1; +for(var G=0;G<256;G++){b2[G]=G/255;aB[G]=0;eB[G]=0}var ao=hJ.sI(F,0),eM=eU.p_(ao[1]/100);if(et){var eT=ao[0]/360; +for(var G=0;G<256;G++){b2[G]=eT;aB[G]=eM}}else{for(var G=0;G<256;G++){var cQ=b2[G],a2=aB[G];b2[G]+=ao[0]/360; +for(var C=0;C<6;C++){var hA=hJ.sI(F,C+1),gH=hA.Oj,be=hA.e8,e7=0;for(var e5=1;e5<4;e5++)if(be[e5]1)dQ--;if(dQ<0)dQ++;di=eU.a20(di);di=(1+di)*.5; +c4=(1+c4)*.5;dN[G]=Math.round(255*dQ);h0[G]=Math.round(255*di);gl[G]=Math.round(255*c4)}var dp=ao[2]/100,eI=dp<0?-dp:dp,g8=dp<0?0:1; +c={type:y.eV,aaP:dN,uC:h0,aqi:gl,a8V:eI*g8,HI:1-eI,ae$:ao[2]/100,ar9:et?1:0}}if(a=="nvrt"){var t=new Uint8Array(256); +for(var G=0;G<256;G++)t[G]=255-G;c={type:y.ar,iP:t,f5:t,Wn:t,nl:!1,xR:!1}}if(a=="post"){var gp=F.Lvls.v,t=new Uint8Array(256),e7=gp/255.001,iI=255/(gp-1); +for(var G=0;G<256;G++)t[G]=Math.floor(G*e7)*iI;c={type:y.ar,iP:t,f5:t,Wn:t,nl:!1,xR:!1}}if(a=="grdm"){var cS=F.Grad.v,bp=F.Rvrs,dU=D.V.qg(cS.Clrs.v,0,0),v=1024,dh=D.V._a(cS,dU,v,bp?bp.v:!1),e0=D.G(v),eq=D.G(v),gO=D.G(v); +D.ie(dh,e0,0);D.ie(dh,eq,1);D.ie(dh,gO,2);c={type:y.ar,iP:e0,f5:eq,Wn:gO,nl:!0,xR:!1}}if(a=="selc"){var ef=new Float32Array(9*3*2),aF=F.MN,c$=F.Mthd?F.Mthd.v.CrcM=="Absl":!1; +for(var C=0;C<9;C++){var bk=C*6,dr=bM.sI(F,C),gj=dr[0]/100,d0=dr[1]/100,b1=dr[2]/100,g7=dr[3]/100;if(c$){ef[bk]=ef[bk+1]=ef[bk+2]=1; +ef[bk+3]=gj*(1+g7)+g7;ef[bk+4]=d0*(1+g7)+g7;ef[bk+5]=b1*(1+g7)+g7}else{ef[bk+0]=(1+gj)*(1+g7);ef[bk+1]=(1+d0)*(1+g7); +ef[bk+2]=(1+b1)*(1+g7)}}c={type:y.zF,a6L:ef}}if(a=="blwh"){var al="Rd Yllw Grn Cyn Bl Mgnt".split(" "),c=[],g$=0,gW=0; +for(var G=0;G<6;G++)c.push(F[al[G]].v);c.push(F.useTint.v,F.tintColor.v);var i6=[];for(var G=0;G<6;G++)i6.push((c[G]-50)/50); +var e8=D.V.$j(c[7]);e8.i/=255;e8.m/=255;e8.d/=255;var af=D.dL(e8.i,e8.m,e8.d),c4=D.b6(D.ae(af.ml,1,.5)),fI=af.H2*af.VO; +if(c4==.5)g$=gW=.5;else{g$=fI*(.5-c4)/(.5/c4-1);gW=1-fI*(.5-c4)-1/(2*(1-c4));gW/=1-1/(2*(1-c4))}c={type:y.YO,a7C:i6,HY:c[6]?1:0,a7D:af.ml,b6:c4,amD:fI,BX:g$,a9P:gW}}if(a=="blnc"){console.log(F); +var M=[],eK=["ShdL","MdtL","HghL"];for(var G=0;G<3;G++){if(F[eK[G]]==null){M[G]=[0,0,0];continue}var gp=F[eK[G]].v,eg=gp[0].v/100,d6=gp[1].v/100,a_=gp[2].v/100,ip=F.PrsL==null||F.PrsL.v?(Math.min(eg,d6,a_)+Math.max(eg,d6,a_))/2:0; +M[G]=[eg-ip,d6-ip,a_-ip]}var H=[D.G(256),D.G(256),D.G(256)];for(var C=0;C<3;C++)for(var G=0;G<256;G++){var L=G*(1/255),aP=0,i=0,hv=0; +i=M[2][C];hv=Math.abs(i);if(i<0)aP=Math.pow(L,Math.SQRT2);else aP=1.63*(Math.pow(L+.04,.5)-.2);L=hv*aP+(1-hv)*L; +i=M[1][C];hv=Math.abs(i);if(i<0)aP=Math.pow(L,2);else aP=Math.min(2.35*(Math.pow(L+.09,.5)-.3),Math.pow(L,1/2)); +L=hv*aP+(1-hv)*L;i=M[0][C];hv=Math.abs(i);if(i<0)aP=L<.4?0:Math.pow((L-.4)/.6,Math.SQRT2);else aP=Math.pow(L,Math.SQRT2/2); +L=hv*aP+(1-hv)*L;L=Math.max(0,Math.min(1,L));H[C][G]=Math.round(L*255)}c={type:y.ar,iP:H[0],f5:H[1],Wn:H[2],nl:!1,xR:!1}}if(a=="phfl"){var gx=D.V.$j(F.Clr.v),aU=[gx.i/255,gx.m/255,gx.d/255],hB=F.Dnst.v/100,H=[D.G(256),D.G(256),D.G(256)]; +for(var C=0;C<3;C++)for(var G=0;G<256;G++){var L=G*(1/255),gK=L*aU[C];gK=Math.max(0,Math.min(1,gK)); +L=hB*gK+(1-hB)*L;H[C][G]=Math.round(L*255)}c={type:y.ar,iP:H[0],f5:H[1],Wn:H[2],nl:!1,xR:F.PrsL.v}}if(a=="thrs"){var t=D.G(256); +for(var G=F.Lvl.v;G<256;G++)t[G]=255;c={type:y.ar,iP:t,f5:t,Wn:t,nl:!0,xR:!1}}if(a=="mixr"){var ev=eU.zP(F),T=[]; +for(var G=0;G300*300&&a.type!=Q.ar&&a.type!=Q.ED){c=c.clone();c.x=c.y=0;var h=V.ny(0,c.t,c.w);h.set(F); +V.LH(h,c);h.y9(c);eU.D5(a,h.HU,c);h.get(y);return}if(a.type==Q.ED){var d=a.a6X,W=a.ii;ICC.U.applyLUT(d,W,F,y); +var w=F.length;for(var G=0;G>>8&255)*(1/255),i=(B>>>16&255)*(1/255),U=B>>>24,Z=Math.min(c,v,i),aR=Math.max(c,v,i),hY=0,j3=0,X=0; +hY=D.ux(c,v,i).ml;var c9=~~(hY*255+.5),hW=a.aaP[c9]*(1/255),cY=a.uC[c9]*(1/255)*2-1,ho=a.aqi[c9]*(1/255)*2-1,b=-ho,e7=Z; +if(0.5?eB/(2-(aR+Z)):eB/(aR+Z)}var et=cY;if(a.ar9==0){cY=g[Math.floor((1+cY)*127.5)]; +et=Math.min(j3*(1+cY),1)}var k=D.ae(hW,et,X);c=k.i;v=k.m;i=k.d;H[G]=U<<24|i*255<<16|v*255<<8|c*255}}if(a.type==Q.ox){D.YR(F,y); +var f=new Uint32Array(F.buffer),H=new Uint32Array(y.buffer),w=f.length,ao=a.AS,eM=1/ao,eT={oP:a.r9[0],re:a.r9[1],d:a.r9[2]},cQ={oP:a.kv[0],re:a.kv[1],d:a.kv[2]}; +for(var G=0;G>>8&255,gH=B>>>16&255,c=a2*(1/255),v=hA*(1/255),i=gH*(1/255),U=B>>>24,be=D.B3(a2,hA,gH),e5=D.GL(be,eT,cQ,ao,eM); +if(e5==0)continue;var N=D.ux(c,v,i),hW=2+N.ml+a.shift[0];N.ml=hW-~~hW;N.H2=Math.max(0,Math.min(1,N.H2+a.shift[1])); +N.QP=Math.max(0,Math.min(1,N.QP+a.shift[2]));var k=D.ae(N.ml,N.H2,N.QP);c=(1-e5)*c+e5*k.i;v=(1-e5)*v+e5*k.m; +i=(1-e5)*i+e5*k.d;H[G]=U<<24|i*255<<16|v*255<<8|c*255}}if(a.type==Q.k6){var f=new Uint32Array(F.buffer),H=new Uint32Array(y.buffer),w=f.length,i5=a.kd[0]/100,iz=a.kd[1]/100; +for(var G=0;G>>8&255)*(1/255),i=(B>>>16&255)*(1/255),U=B>>>24,N=D.dL(c,v,i),hY=N.ml,j3=N.H2,X=N.VO,aL=0,az=45/360,hu=hY16777215?n.a9o(F):a.Fltr.v.classID};i1.om=[{vV:"GEfc"},{vV:"LnCr"},{vV:"LqFy",qU:!0},{i3:"3D",RK:["lightFilterGradient"]},{i3:[24,2],RK:"Avrg,Blr ,BlrM,boxblur,GsnB,Bokh,MtnB,RdlB,surfaceBlur".split(",")},{i3:[24,4],RK:"Dspl,Pnch,Plr ,Rple,Shr ,Sphr,Twrl,Wave,ZgZg".split(",")},{i3:[24,6],RK:["AdNs","Dspc","DstS","Mdn "]},{i3:[24,8],RK:"ClrH,Crst,Frgm,Mztn,Msc ,Pntl".split(",")},{i3:[24,10],RK:["Clds","DfrC","Fbrs","LnsF"]},{i3:[24,12],RK:["Shrp","ShrE","ShrM","smartSharpen","UnsM"]},{i3:[24,14],RK:"Dfs ,Embs,FndE,oilPaint,Slrz,TrcC,Wnd ".split(",")},{i3:[24,16],RK:"HghP,Mxm ,Mnm ,Ofst,Rept,Ctoa".split(",")},{i3:"Fourier",RK:["dDFT","iDFT"]}]; +i1.a7={LqFy:"LqFy",Avrg:"Avrg","Blr ":"blurEvent",BlrM:"blurMethod",boxblur:"boxblur",GsnB:"gaussianBlur",MtnB:"motionBlur",RdlB:"radialBlur",surfaceBlur:"surfaceBlur",lightFilterGradient:"lightFilterGradient",adaptCorrect:"adaptCorrect",Pnch:"pinch","Plr ":"polar",Rple:"ripple","Shr ":"shear",Sphr:"spherize",Twrl:"twirl",Wave:"wave",AdNs:"addNoise",DstS:"dustAndScratches","Mdn ":"median",ClrH:"colorHalftone",Crst:"",Frgm:"",Mztn:"mezzotint","Msc ":"mosaic",Pntl:"",Flam:"",Clds:"clouds",DfrC:"differenceClouds",LnsF:"LnsF",Shrp:"sharpen",ShrM:"sharpenMore",smartSharpen:"smartSharpen",UnsM:"unsharpMask",FndE:"findEdges",oilPaint:"oilPaint",HghP:"highPass","Mxm ":"maximum","Mnm ":"minimum",Ofst:"offset"}; +i1.py={AddNoise:"AdNs",Average:"Avrg",Blur:"Blr ",BlurMore:"BlrM",Clouds:"Clds",DifferenceClouds:"DfrC",DustAndScratches:"DstS",GaussianBlur:"GsnB",HighPass:"HghP",Maximum:"Mxm ",Minimum:"Mnm ",MotionBlur:"MtnB",Offset:"Ofst",Pinch:"Pnch",PolarCoordinates:"Plr ",Ripple:"Rple",Sharpen:"Shrp",SharpenMore:"ShrM",Twirl:"Twrl",UnsharpMask:"UnsM"}; +i1.P={rigidTransform:m.er};i1.names={lightFilterGradient:"Normal Map",rigidTransform:[10,46],LnCr:[24,1,1,0],LqFy:[24,1,0,0],GEfc:[24,0],Avrg:[24,3,0],"Blr ":[24,3,1],BlrM:[24,3,2],boxblur:[24,3,3],GsnB:[24,3,4],Bokh:[24,3,5],MtnB:[24,3,6],RdlB:[24,3,7],surfaceBlur:[24,3,10],Dspl:[24,5,0],Pnch:[24,5,1],"Plr ":[24,5,2],Rple:[24,5,3],"Shr ":[24,5,4],Sphr:[24,5,5],Twrl:[24,1,0,1,3],Wave:[24,5,6],ZgZg:"ZigZag",AdNs:[24,7,0],Dspc:[24,7,1],DstS:[24,7,2],"Mdn ":[24,7,3],ClrH:[24,9,0],Crst:[24,9,1],Frgm:[24,9,3],Mztn:[24,9,4],"Msc ":[24,9,5],Pntl:[24,9,6],Flam:"Flame",Clds:[24,11,0],DfrC:[24,11,1],Fbrs:"Fibers",LnsF:[24,11,2],Shrp:[24,13,0],ShrE:[24,13,1],ShrM:[24,13,2],smartSharpen:[24,13,3],UnsM:[24,13,4],"Dfs ":[24,15,0],Embs:[24,15,1],FndE:[24,15,3],oilPaint:[24,15,4],Slrz:"Solarize",TrcC:"Trace Contour","Wnd ":"Wind",HghP:[24,17,1],"Mxm ":[24,17,2],"Mnm ":[24,17,3],Ofst:[24,17,4],Rept:[24,17,5],Ctoa:"Color to Alpha",dDFT:"Fourier Transform",iDFT:"Inverse Fourier Transform",adaptCorrect:["VAR0/VAR1",[19,6,0],[19,6,2]]}; +i1.de=function(a){var F=null;if(a=="GEfc")F={__name:"Filter Gallery",classID:"GEfc",GEfs:{t:"VlLs",v:[{t:"Objc",v:f_.de("GlwE")}]}}; +if(a=="LqFy"){var y={cA:5,ml:5,map:new Float32Array(5*5*2)},c=new Uint8Array(hq.o6(y)),Q=[];for(var G=0; +GF.x)F.x=S.x;if(S.y>F.y)F.y=S.y}return F};i1.sM=function(a,F){var y=0,c=0; +if(["GsnB","boxblur","smartSharpen","UnsM","HghP"].indexOf(a)!=-1){var Q=F.Rds.v.val;y=c=Q*2.57}if(a=="MtnB")y=c=F.Dstn.v.val; +if("Ofst,Rept,LqFy,Dspl,Pnch,Rple,Shr ,Sphr,Twrl,ZgZg,Wave,RdlB,Clds,DfrC,Plr ,LnCr,Wnd ,lightFilterGradient,rigidTransform,Frgm".split(",").indexOf(a)!=-1){y=c=1e4}if(a=="GEfc")return f_.sM(F); +return new iS(Math.ceil(y),Math.ceil(c))};i1.JH=function(){return{t:"Objc",v:{classID:"filterFXStyle",enab:{t:"bool",v:!0},validAtPosition:{t:"bool",v:!0},filterMaskEnable:{t:"bool",v:!0},filterMaskLinked:{t:"bool",v:!0},filterMaskExtendWithWhite:{t:"bool",v:!0},filterFXList:{t:"VlLs",v:[]}}}}; +i1.FI=function(a,F){var y={i:F.Fm>>16,m:F.Fm>>8&255,d:F.Fm&255},c={i:F.fF>>16,m:F.fF>>8&255,d:F.fF&255},Q=i1.names[a]; +if(Q==null)Q=eU.names[a];var S=a;for(var h in eU.XJ)if(eU.XJ[h]==a)S=h;var d={t:"Objc",v:{classID:"filterFX",Nm:{t:"TEXT",v:aT.get(Q)},blendOptions:{t:"Objc",v:{classID:"blendOptions",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Md:{t:"enum",v:{BlnM:"Nrml"}}}},enab:{t:"bool",v:!0},hasoptions:{t:"bool",v:!0},FrgC:{t:"Objc",v:D.V.HT(y)},BckC:{t:"Objc",v:D.V.HT(c)},filterID:{t:"long",v:S.length==4?n.akq(S):777}}},W=i1.de(a); +if(W)d.v.Fltr={t:"Objc",v:W};return d};i1.JL=function(a,F,y,c){D.T1(y);if(a<1){var Q=Math.round(a*5),S=[1,2,1,2,[40,26,13,6,4,2][Q],2,1,2,1]; +S=D.G5.jL(S);var h=y.slice(0);D.G5.rn(h,y,c.t,c.w,S,255)}else F(y,c,a);D.fP(y)};i1.aiz=function(a,F,y,c){for(var G=0; +G>>1,S=16384,h=128,W=100;while(h>>1,S=16384,h=128;while(h>>1:0;if(a=="GEfc"){var W=[];if(y.GEfs){var w=y.GEfs.v; +for(var G=0;G=e&&fh=e)E[eD]=0}function g(ez,eD){var iF=l[ez],fh=l[eD]; +if(iF>e&&fh<=e)E[eD]=0;if(iF<=e&&fh>e)E[ez]=0}if(P)for(var B=1;Bet)eB[G]=255-eB[G]; +if(eB[G+1]>et)eB[G+1]=255-eB[G+1];if(eB[G+2]>et)eB[G+2]=255-eB[G+2]}}if(a=="Wnd "){var T=F.rect,o=T.t,v=T.w,ao=["Wnd","Blst","Stgr"],eM=y.WndM.v.WndM; +D.j.eU(F.buffer,o,v,S.buffer,[ao.indexOf(eM),y.Drct.v.Drct!="Left"])}if(a=="Bokh"){var T=F.rect,o=T.t,v=T.w,i=o*v,N=i*4,eT=F.buffer.slice(0),cQ=y.BkDi.v.BtDi,a2=y.BkDc,hA=y.BkDp.v/255; +if(cQ=="BeIn")hA=0;var gH=57*(.3+.7*((o+v)/2)/1750)*(y.BkIb.v/100)*(1+.2*Math.pow(hA,.1)),$=parseInt(y.BkIs.v.BtIs.slice(3)),be=-y.BkIr.v*Math.PI/180,e5=[]; +for(var G=0;G<8;G++){var i5=be+G*(Math.PI*2/$),iz=be+(G+1)*(Math.PI*2/$),aL=Math.cos(i5),az=Math.sin(i5),hu=Math.cos(iz),aV=Math.sin(iz),bQ=[0,0,0]; +D.D3.Qw([[aL,az,1,0],[hu,aV,1,0],[1,1,1,1]],bQ);if(bQ[2]>0){bQ[0]*=-1;bQ[1]*=-1;bQ[2]*=-1}e5.push(bQ[0],bQ[1],bQ[2],0)}if(cQ=="BeIn"){D.Jx(eT,0,16777215); +hA=1}else if(cQ=="BeIt"&&a2.v.BtDc=="BeCt"){}else{var dN;if(cQ=="BeIt"&&a2.v.BtDc=="BeCm")dN=h[1];else if(cQ=="BeIa")dN=h[2][a2.v]; +if(dN==null){D.Jx(eT,0,16777215)}else{var h0;if(dN.rect.pI(T))h0=dN.channel;else h0=dN.ZM(T);D.Iy(h0,eT,3)}}if(V.Vd){var gl=eT,dQ=o,di=v,c4=1,dp=(y.BkSb.v==0||y.BkSt.v==255)&&cQ=="BeIn"; +if(!dp){var eI=0;for(var G=0;G2e3){alert("too large radius");return}}while(dp&&3*(gH/c4)*(gH/c4)*o*v>500*2e3*2e3){var gp=D._3(eT,new cJ(0,0,dQ,di)); +eT=gp.BN;dQ=gp.rect.t;di=gp.rect.w;c4*=2}var iI=Date.now(),cS=V.ny(0,dQ,di);cS.set(eT);var bp=V.ny(1,o,v); +V.LH(bp);V.filter.D5({type:V.filter.ST,ir:new Float32Array([1/dQ,1/di]),a7V:hA,a6F:gH/c4,abK:new Float32Array([y.BkSb.v/100,y.BkSt.v/255]),ab5:new Float32Array([y.BkNa.v/100,y.BkNt.v.BtNt=="BeNu"?0:1,y.BkNm.v?1:0]),adk:new Float32Array(e5.slice(0,16)),akH:new Float32Array(e5.slice(16))},cS.g6); +bp.get(S.buffer);var dU=S.buffer;for(var G=0;G>>2,i6=d0.indexArray.v.length>>>2,e8=new Float32Array(dh(d0.originalVertexArray.v)); +for(var G=0;G>>1;bk+=~~(i6/3)}var d6=F.rect,o=d6.t,v=d6.w;D.qV.dx(cS,o,v,S.buffer,o,v,eq,gO,aF,ef); +D.fP(S.buffer)}if(a=="lightFilterGradient"){function a_(fH){var iF=1/Math.sqrt(fH[0]*fH[0]+fH[1]*fH[1]+fH[2]*fH[2]); +fH[0]*=iF;fH[1]*=iF;fH[2]*=iF}var o=F.rect.t,v=F.rect.w,i=o*v,iI=Date.now(),ip=D.G(i),fh=.3,hM=.7;D.dh(S.buffer,ip); +var aP=D.G(i);D.AX.Ow(ip,aP,S.rect,16);var hv=D.G(i);D.AX.Ow(ip,hv,S.rect,8);var gx=ip,aU=new Float32Array(i),hB=y.Dtl.v,gK=hB[2].v,ev=hB[1].v,c6=hB[0].v,g6=y.Scl.v*40*y.textureScale.v/(gK+ev+c6); +gK*=g6;ev*=g6;c6*=g6;for(var G=0;G>1;$|=$>>2;$|=$>>4;$|=$>>8;$|=$>>16;return $+1}var o=F.rect.t,v=F.rect.w,gd=f5(Math.max(o,v)),iW=gd>>>1,fa=new cJ(0,0,gd,gd),i3=new cJ(0,0,o,v); +i3.y=gd-v>>>1;var fv=o>>>1,iJ=new cJ(0,i3.y,fv,v),ag=new D.xY(o*v);D.BS(F.buffer,ag);var hZ=new Float64Array(gd*gd),hj=new Float64Array(gd*gd),h0=D.G(gd*gd); +FFT.init(gd);var b$=[ag.i,ag.m,ag.d];for(var G=0;G<3;G++){var gP=b$[G];h0.fill(0);if(a=="dDFT"){D.oR(gP,i3,h0,fa); +i1.aiz(h0,gd,hZ,hj);D.oR(h0,fa,gP,i3,iJ);iJ.x+=fv;fa.x-=iW-fv;D.oR(h0,fa,gP,i3,iJ);iJ.x-=fv;fa.x+=iW-fv}else{D.oR(gP,i3,h0,fa,iJ); +iJ.x+=iW;i3.x+=iW-fv;D.oR(gP,i3,h0,fa,iJ);iJ.x-=iW;i3.x-=iW-fv;i1.aqd(h0,gd,hZ,hj);D.oR(h0,fa,gP,i3)}}D.Xy(ag,S.buffer)}if(a=="Avrg"){var cW=0,fV=0,ca=0,dX=0,bn=1; +for(var G=0;G0)cR=Math.max(0,cR-aO);else cR=Math.min(0,cR+aO);S.buffer[G]=Math.max(0,Math.min(255,c1+cR))}}if(a=="HghP")for(var G=0; +Gdl?0:255}}}D.Xy(ag,S.buffer)}if(a=="Msc "){var iM=y.ClSz.v.val,o=F.rect.t,v=F.rect.w,hn=Math.ceil(o/iM),gw=Math.ceil(v/iM),g1=D.G(hn*gw*4); +D.scale.zh(F.buffer,o,v,g1,hn,gw,1/iM);D.scale.zh(g1,hn,gw,S.buffer,o,v,iM)}if(a=="Clds"||a=="DfrC"){var o=S.rect.t,v=S.rect.w,i=o*v,ak=D.G(i); +if(a=="Clds")D.Jx(S.buffer,4278190080);var ap=D.G(256*4);for(var G=0;G<256;G++){var Z=G<<2,cj=G/255,fI=1-cj; +ap[Z]=Math.round(cj*c.i+fI*Q.i);ap[Z+1]=Math.round(cj*c.m+fI*Q.m);ap[Z+2]=Math.round(cj*c.d+fI*Q.d)}D.j.a9A(F.buffer,o,v,ak); +var bW=S.buffer;for(var G=0;G1,o=F.rect.t,v=F.rect.w,dS=D.G5.S$[bU],bh=F.buffer.slice(0); +if(!aQ)D.T1(bh);D.G5.rn(bh,S.buffer,o,v,dS,255,!1,aQ);if(!aQ)D.fP(S.buffer)}if(a=="MtnB"){var gJ=-y.Angl.v*Math.PI/180,eV=y.Dstn.v.val/2,iI=Date.now(),o=F.rect.t,v=F.rect.w,T=F.rect.clone(); +T.x=T.y=0;if(V.Vd){var iI=Date.now(),iy=S.buffer;iy.set(F.buffer);D.T1(iy);var d1=V.ny(0,o,v);d1.set(iy); +var l=D.G(4);l[0]=Math.round(128+127*Math.cos(gJ));l[1]=Math.round(128+127*Math.sin(gJ));new Uint32Array(iy.buffer).fill(new Uint32Array(l.buffer)[0]); +var aC=V.ny(1,o,v);aC.set(iy);V.LH(d1,T);d1.y9(T);V.filter.D5({type:V.filter.Mp,hY:aC.g6,ir:new Float32Array([1/o,1/v]),ajx:eV/2,a9v:1},d1.HU); +d1.get(iy);D.fP(iy)}else{var iE=new hg;iE.rotate(gJ);var cY=m.p.tI([F.buffer,F.rect],iE,!1,null,!0); +i1.JL(eV,D.AX.a0,cY.buffer,cY.rect);iE.kW();cY=m.p.tI([cY.buffer,cY.rect],iE,!1,S.buffer.buffer,!0,S.rect)}console.log(Date.now()-iI)}if(a=="RdlB"){var o=F.rect.t,v=F.rect.w,j3=y.Amnt.v,fY=y.BlrM.v.BlrM=="Zm",eR=y.Cntr.v,j4=eR.Hrzn.v,dm=eR.Vrtc.v,X=Math.max(j4,1-j4)*o,c9=Math.max(dm,1-dm)*v,aI=Math.sqrt(X*X+c9*c9),ah=2*Math.PI*aI*1.5,ff=Math.round(ah),cl=Math.round(aI),iJ=new cJ(0,0,ff,cl),iX=D.G(ff*cl*4),er=fY?4:1,hc=fY?.6:8*((o+v)/2)/1400,fu=.1,c4=1,hQ=1; +D.o.CM(F.buffer,o,v,iX,ff,cl,j4,dm,er,fu,c4,hQ);var ic=fY?D.G(ff*cl*4):null;if(fY){D.o.Cd(iX,ic,ff,cl); +var fz=ic;ic=iX;iX=fz;iJ.t=cl;iJ.w=ff}i1.JL(hc*j3,D.AX.a0,iX,iJ);if(fY){D.o.Cd(iX,ic,cl,ff);var fz=ic; +ic=iX;iX=fz;iJ.t=ff;iJ.w=cl}D.o.hF(iX,ff,cl,S.buffer,o,v,j4,dm,er,fu,c4,hQ)}if(a=="Plr "){var o=F.rect.t,v=F.rect.w; +if(y.Cnvr.v.Cnvr=="RctP")D.o.hF(F.buffer,o,v,S.buffer,o,v,.5,.5,1,0,2,o/v);else D.o.CM(F.buffer,o,v,S.buffer,o,v,.5,.5,1,0,2,o/v)}if(a=="FndE"){var o=F.rect.t,v=F.rect.w; +D.G5.up(F.buffer,S.buffer,o,v)}if(a=="oilPaint"){var aR=y.LghD.v*Math.PI/180,iH=[Math.cos(aR),Math.sin(aR),.001],r=[y.stylization.v,y.cleanliness.v,y.brushScale.v,y.microBrush.v,y.lightingOn.v,y.specularity.v,iH],T=F.rect.clone(); +T.x=T.y=0;D.lx.filter(F.buffer,T,S.buffer,r)}if(a=="Ofst"){var o=F.rect.t,v=F.rect.w,es=new Uint32Array(F.buffer.buffer),at=new Uint32Array(S.buffer.buffer),b0=y.Hrzn.v,a1=y.Vrtc.v,fk=y.Fl.v.FlMd; +D.Jx(at,0);if(fk=="Bckg"||fk=="Rpt"){var iJ=F.rect.clone();iJ.offset(b0,a1);D.vD(es,iJ,at,S.rect)}if(fk=="Rpt"){var aL,az,hu,aV,hw; +b0=Math.max(-o,Math.min(o,b0));a1=Math.max(-v,Math.min(v,a1));aL=b0>0?b0:0;hu=b0>0?o:o+b0;az=a1>0?0:a1+v; +aV=a1>0?a1:v;hw=a1>0?0:o*(v-1);for(var B=az;B0?0:o+b0; +hu=b0>0?b0:o;az=a1>0?a1:0;aV=a1>0?v:v+a1;hw=b0>0?0:o-1;for(var B=az;B=0&&a1>=0){aL=0;hu=b0;az=0;aV=a1;hw=0}if(b0>=0&&a1<0){aL=0;hu=b0;az=v+a1;aV=v;hw=o*(v-1)}if(b0<0&&a1>=0){aL=o+b0; +hu=o;az=0;aV=a1;hw=o-1}if(b0<0&&a1<0){aL=o+b0;hu=o;az=v+a1;aV=v;hw=o*v-1}for(var B=az;B0?hs/d6:d6/hs,hQ=j4+h6*ey*X,b7=dm+h6*ey*c9,G=B*aG.cA+U<<1; +aG.map[G]=hQ-U;aG.map[G+1]=b7-B}}}else if(a=="Dspl"&&gs.length!=0){dC=y.UndA.v.UndA=="WrpA"?2:1;var dG=y.DspF.v.pth,br; +for(var G=0;G>>1:0;function T(L){return L.i<<24|L.m<<16|L.d<<8|255}if(a=="ClrP")D.j.a0S(F.buffer,W,w,S.buffer,[y.Pncl.v,y.StrP.v,y.PprB.v]); +if(a=="Ct"){var o=y.NmbL.v,v=y.EdgS.v,i=UPNG.quantize(F.buffer.buffer,o*2);i={wA:i.inds,Lz:i.plte};var N=Math.floor((W+w)*.015); +if(N!=0)D.l3.Ls(i.wA,W,w,N);var b=new Uint8Array((W+2)*(w+2));D.oR(i.wA,new cJ(1,1,W,w),b,new cJ(0,0,W+2,w+2)); +var q=D.M.jg(b,W+2,w+2,v,!1),O=new hg(1,0,0,1,-1,-1);for(var G=0;G>>1]);if(a=="Crql")D.j.ahL(F.buffer,W,w,S.buffer,[y.CrcS.v,y.CrcD.v,y.CrcB.v,A]); +if(a=="Grn")D.j.aqw(F.buffer,W,w,S.buffer,[y.Intn.v,f_.gG.indexOf(y.Grnt.v.Grnt),y.Cntr.v,T(c),T(Q),A]); +if(a=="MscT")D.j.agq(F.buffer,W,w,S.buffer,[y.TlSz.v,y.GrtW.v,y.LghG.v,A]);if(a=="Ptch")D.j.aqP(F.buffer,W,w,S.buffer,[y.SqrS.v,y.Rlf.v,A]); +if(a=="Phtc"){function j(gp,iI,d,aP){D.AX.kS(gp,iI,d,aP);for(var G=0;G>>1,c9=X==0?2:1;f_.Sz(x.map,hY,W,w,c9);f_.iZ(hY,x.map,W,w,c9); +if(X!=0){var hW=f_.Ug.indexOf(y.SDir.v.StrD),cY=[1,1,1,0][hW],ho=[-1,0,1,1][hW],e7=2*X+1,b2=1/e7;for(var U=0; +U1)f_.JL(e5,i5,iz,d,hA-1);if(a=="PlsW"){var h0=new Uint8Array(e5.buffer);for(var G=0;G>>1,g8=w>>>1; +for(var G=0;G>>1,hv,[]);D.G5.up(gK,S.buffer,W,w);D.YR(S.buffer,gK); +D.kW(gK);D.Jx(gK,4278190080,16777215);D.a$.lY(gK,S.buffer,W,w,y.EdgW.v>>>1,D.a$.Mu,[]);var ev=y.EdgB.v/10; +for(var G=0;G>>1))*en;e2[Z]=b1*b1;aB[Z]=Math.cos(b1);var cY=Z<<1;i8[cY]=Math.sin(cY*(1/4.5)); +i8[cY+1]=Math.sin((cY+1)*(1/4.5))}for(var U=0;U>>1))*en,eB=Math.cos(d0),aE=d0*d0; +for(var Z=0;Z46)D.round(fJ); +f_.Tv(fJ,S.buffer,c,Q)}for(var G=0;G=y?y-1:o,i=(W*y+v)*2,N=S[G];A+=N*a[i];T+=N*a[i+1]}F[J]=A; +F[J+1]=T}};f_.iZ=function(a,F,y,c,Q){var S=f_.qw(Q),h=6,d=13;for(var W=0;W=c?c-1:o,i=(v*y+w)*2,N=S[G];A+=N*a[i];T+=N*a[i+1]}F[J]=A; +F[J+1]=T}};function bY(){}bY.gq=[2,5,5,7,4,4];bY.xw="norm,diss,dark,mul ,idiv,lbrn,dkCl,lite,scrn,div ,lddg,lgCl,over,sLit,hLit,vLit,lLit,pLit,hMix,diff,smud,fsub,fdiv,hue ,sat ,colr,lum ".split(","); +bY.Zt="Nrml Dslv Drkn Mltp CBrn linearBurn darkerColor Lghn Scrn CDdg linearDodge lighterColor Ovrl SftL HrdL vividLight linearLight pinLight hardMix Dfrn Xclu blendSubtraction blendDivide H Strt Clr Lmns".split(" "); +bY.Kq=[[15,10,0],[15,10,1],[15,10,2],[15,10,3],[15,10,4],[15,10,5],[15,10,6],[15,10,7],[15,10,8],[15,10,9],[15,10,10],[15,10,11],[15,10,12],[15,10,13],[15,10,14],[15,10,15],[15,10,16],[15,10,17],[15,10,18],[15,10,19],[15,10,20],[15,10,21],[15,10,22],[15,10,23],[15,10,24],[15,10,25],[15,10,26]]; +bY.iy=["normal",null,"darken","multiply","color-burn",null,null,"lighten","screen","color-dodge",null,null,"overlay","soft-light","hard-light",null,null,null,null,"difference","exclusion",null,null,"hue","saturation","color","luminosity"]; +bY.z5=function(a){if(a=="passThrough")return"pass";return bY.xw[bY.Zt.indexOf(a)]};bY.Vs=function(a){if(a=="pass")return"passThrough"; +return bY.Zt[bY.xw.indexOf(a)]};bY.getName=function(a){return bY.Kq[bY.xw.indexOf(a)]};function Y(){this.rect=null; +this.X0="norm";this.opacity=255;this.N8=!1;this._8=0;this.sW=0;this.oN=!0;this.hV=[];for(var G=0;G<10; +G++)this.hV.push(0,0,255,255);this.name=null;this.add={};this.buffer=null;this.tV=null;this.St=null; +this.N=null;this.Mq=null;this.ajd=30;this.CO=Y.nx();this.aaY=Y.nx();this.a88=Y.nx();this.abE=Y.nx(); +this.Ev=0;this.Mh=!1;this.n9=null;this.Uo=new Y.kI}Y.nx=function(){var a=z.z("canvas");a.width=a.height=30; +return a.getContext("2d")};Y.kI=function(){this.hs=!0;this.RM=!0;this.IL=D.G(0);this.ahJ=D.G(0);this.G0=null; +this.XK={};this.a7r=null;this.KF=null;this.Fb=null;this.wz=null;this.zK=null;this.LF=null;this.Xt=null; +this.GW=null;this.Yx=null;this.va=null;this.fv=null;this.Ar=null;this.bW=!1};Y.kI.prototype.yS=function(){this.hs=!1; +this.RM=!1;this.G0=null;this.bW=V.Vd};Y.kI.prototype.aj2=function(){hN.$C(this.XK);this.IL=D.G(0);this.ahJ=D.G(0); +if(this.wz)this.wz.delete();if(this.zK)this.zK.delete();this.wz=null;this.zK=null;var a=[this.LF,this.Xt,this.GW,this.Yx,this.va,this.fv]; +for(var G=0;G<6;G++)if(a[G]!=null&&a[G]instanceof V.xY)a[G].delete();this.LF=null;this.Xt=null;this.GW=null; +this.Yx=null;this.va=null;this.fv=null};Y.prototype.T=function(a){if(a==null)a=this.rect.clone();if(this.Uo.G0==null)this.Uo.G0=a; +else this.Uo.G0=this.Uo.G0.jD(a)};Y.prototype.Dl=function(){return this.add.lsct==fc.bc||this.add.lsct==fc.$K}; +Y.prototype.V6=function(){var a=this.add;return a.SoCo!=null||a.GdFl!=null||a.PtFl!=null};Y.prototype.WH=function(){var a=this.add.lmfx; +if(a==null)return;var F=["GrFl","patternFill"];for(var G=0;G>2);D.ie(S.nu,d,3);if(!D.pI(F.channel,d))return!1; +var W=D.G(h.t*h.w*4);D.vD(S.Z5,S.sP,W,h);D.R.jU("norm",S.nu,S.sb,W,h,h,1);return D.pI(W,this.buffer)}if(S.Ev==1||S.Ev==3){var w=S.Ev==1?this.QH():this.Zg(a).N; +if(!h.pI(w.rect))return!1;var J=D.G(h.L());J.fill(w.color);D.oR(S.Z5,S.sP,J,h);D.R.tr(S.nu,S.sb,J,h,F.channel,h,1); +return D.pI(J,w.channel)}};Y.prototype.p1=function(a,F,y,c){var Q=this.n9;Q.sb.offset(F,y);var S=Q.sP.jD(Q.sb); +if(Q.Ev<=0){var h=D.G(S.L()*4);D.vD(Q.Z5,Q.sP,h,S);D.R.jU("norm",Q.nu,Q.sb,h,S,S,1);this.buffer=h;this.rect=S; +this.T()}else{var d=this.Ev==1?this.QH():this.Zg(a).N,W=D.G(S.L());W.fill(d.color);D.oR(Q.Z5,Q.sP,W,S); +D.R.tr(Q.nu,Q.sb,W,S,c.channel,S,1);d.channel=W;d.rect=S.clone();if(this.Ev==1){d.Sq=!0;this.Ja(a)}if(this.Ev==3)this.T()}}; +Y.prototype.nO=function(){var a=[-1,0,1,2];if(this.N)a.push(-2);if(this.Mq)a.push(-3);return a};Y.prototype.getName=function(){return this.add.luni?this.add.luni:this.name}; +Y.prototype.k0=function($){this.add.luni=this.name=$};Y.prototype.JC=function(a){var F=this.add.lnsr,y=this.add.TySh; +if(F=="rend"&&y)this.k0(eA.AC(y.KU).replace(/(?:\r\n|\r|\n)/g," ").slice(0,32))};Y.prototype.xg=function(){return(this._8&1<<1)==0}; +Y.prototype.bV=function(){return(this._8&1<<4)==0};Y.prototype.SH=function(){return(this._8&1<<5)!=0}; +Y.prototype.a4E=function(){var a=this;if(a.add.lnsr!="bgnd"){a.add.lnsr="bgnd";a.k0("Background");a.add.lspf=1<<2}}; +Y.prototype.apY=function(){var a=this;if(a.add.lnsr=="bgnd"){delete a.add.lnsr;a.k0("Layer 0");a.add.lspf=0}}; +Y.prototype.ER=function(a){var F=this.add.lspf;return F==null?!1:(F>>a&1)!=0};Y.prototype.Ig=function(a){if(a&&!this.xg())this._8-=2; +if(!a&&this.xg())this._8+=2};Y.prototype.b$=function(){var a=this.add.lmfx;if(a==null)return!1;for(var F in a){if(F=="masterFXSwitch")continue; +if(F=="Scl")continue;if(F=="classID")continue;if(a[F].v.length>0)return!0}return!1};Y.prototype.P7=function(){return this.add.SoLd!=null&&this.add.SoLd.filterFX!=null}; +Y.prototype.ks=function(){var a=this.add.lmfx;if(a==null)return!1;if(!a.masterFXSwitch.v)return!1;for(var F in a){if(F=="masterFXSwitch")continue; +if(F=="Scl")continue;if(F=="classID")continue;var y=a[F].v;for(var G=0;G1){var J=D.A.t3(W.g,null,W.c8);w=D.M.zO(J)}else w=D.A.WL(W.g,W.D.length!=0?W.D:null)}else w=D.A.WL(W.g); +Q=Q.jD(w)}if(S.indexOf(3)!=-1)Q=Q.jD(this.Zg(a).N.pl());if(S.length==0&&this.V6())Q=new cJ(0,0,a.t,a.w); +return Q};Y.prototype.Jz=function(){var a=this.add.artb,F=a.artboardBackgroundType.v,y=0;if(F==1)y=4294967295; +else if(F==2)y=4278190080;else if(F==3)y=0;else if(F==4){y=a.Clr.v;y=255<<24|y.Bl.v<<16|y.Grn.v<<8|y.Rd.v}else throw F; +return y};Y.prototype.Hu=function(){var a=this.add.artb.artboardRect.v,F=a.Btom.v,y=a.Left.v,c=a.Rght.v,top=a.Top.v; +return new cJ(y,top,c-y,F-top)};Y.prototype.GF=function(a){var F=Y.PV(a);if(this.add.artb==null)this.add.artb={classID:"artboard",artboardRect:{t:"Objc",v:null},artboardBackgroundType:{t:"long",v:1}}; +this.add.artb.artboardRect.v=F};Y.PV=function(a){var F={classID:"classFloatRect",Top:{t:"doub",v:0},Left:{t:"doub",v:0},Btom:{t:"doub",v:0},Rght:{t:"doub",v:0}}; +F.Btom.v=a.y+a.w;F.Left.v=a.x;F.Rght.v=a.x+a.t;F.Top.v=a.y;return F};Y.prototype.su=function(a,F,y){var c=[],Q=this,S=this.Mh; +if(!F&&Q.Mh&&y){c.push(2)}else if(Q.Ev<=0||F){if(Q.bV())if(!this.rect.ur())c.push(0);if(Q.QH()&&!Q.QH().rect.ur())if(Q.QH().QN||F)c.push(1); +if(Q.add.vmsk)if(Q.add.vmsk.QN||F)c.push(2);if(Q.P7()&&Q.Zg(a).N&&!Q.Zg(a).N.rect.ur())c.push(3)}else if(Q.Ev==1){c.push(1); +if(Q.QH().QN&&!Q.QH().rect.ur()){if(Q.bV())if(!this.rect.ur())c.push(0);if(Q.add.vmsk)if(Q.add.vmsk.QN)c.push(2)}}else if(Q.Ev==3&&!Q.Zg(a).N.rect.ur())c.push(3); +if(Q.add.artb&&c.indexOf(0)==-1)c.push(0);c.sort();return c};Y.prototype.QH=function(){var a=this;return a.Mq?a.Mq:a.add.vmsk&&a.add.vmsk.isEnabled?null:a.N}; +Y.prototype.Zg=function(a){var F=this.add.SoLd.placed.v,y=a.add.FEid;if(y==null)return null;for(var G=0; +G3e4*3e4)F=new cJ(0,0,100,100); +if(a&&a[y].v[y]!="strokeStyleAlignInside"){var Q=1;if(a[c].v[c]=="strokeStyleMiterJoin"){var S=D.A.aba(this.g),h=S/2,d=Math.sin(h),W=Math.cos(h); +W/=d;d=1;var Q=Math.sqrt(W*W+d*d);if(isNaN(Q)||Q<1)Q=1}Q*=a[y].v[y]=="strokeStyleAlignOutside"?1:.5; +var w=Math.ceil(a.strokeStyleLineWidth.v.val*Q);w=Math.min(w,600);F.Pl(w,w)}F=D.M.Mt(F);var J=new Y.Sh; +J.color=D.A.wn(this.g)?0:255;J.QN=this.QN;J.isEnabled=this.isEnabled;J.Sn=!0;J.rect=F;J.Dt=this.Dt;J.on=this.on; +J.channel=D.G(J.rect.L());if(!F.ur())D.A.ags(this.g,J.channel,J.rect,a);if(a==null){this.Mq=J;this.Sq=!1}return J}; +Y.G2.prototype.clone=function(){var a=new Y.G2;a.QN=this.QN;a.isEnabled=this.isEnabled;a.Dt=this.Dt; +a.on=this.on;a.g=Y.G2.xj(this.g);a.E8=this.E8.slice(0);a.vC=this.vC;a.D=this.D.slice(0);a.c8=this.c8.slice(0); +return a};Y.G2.prototype.concat=function(a){var F=a.g.slice(2);if(F.length==0)return;F[0].oa=3;this.g=this.g.concat(F)}; +Y.G2.xj=function(a){var F=[];for(var G=0;G5||y.type==0||y.type==3)F.push(JSON.parse(JSON.stringify(y))); +else F.push({type:y.type,yp:y.yp.clone(),W:y.W.clone(),tT:y.tT.clone()})}return F};Y.G2.ach=function(a,F,y){if(a.length!=F.length)return!1; +for(var G=2;GF.VO.length)F.VO=a.slice(0); +if(this.depth!=0)a.pop()};i2.prototype.a5s=function(){var a=0;if(this.c.Dl()){for(var G=0;G=0;G--){var $=this.children[G],c=$.ZG(a,F);if(c&&F==null)return c}return null}else if(y.add.TySh&&y.rect.t$(a)||D.an0(a,y.buffer,y.rect)){if(F==null)return this; +else F.push(this.index)}return null};i2.prototype.a4R=function(a){var F=this.c;if(!F.xg()||F.ER(2)||F.ER(31))return null; +var y=F.add.vmsk;if(y&&y.isEnabled){var c=D.A.ZG(y.g,a).VS;if(c!=-1)return{a8B:this,aiZ:c}}if(F.Dl()){if(F.add.artb&&!F.Hu().t$(a))return null; +for(var G=this.children.length-1;G>=0;G--){var $=this.children[G],Q=$.a4R(a);if(Q)return Q}return null}return null}; +i2.prototype.VA=function(a,F){a.push(this.index);if(this.c.Dl()){a.push(this._b);if(F)if(this.c.Ev==1&&this.c.QH().QN==!1)return; +for(var G=0;GF.w){Q=y;S=Math.floor(y*(F.w/F.t))}else{Q=Math.floor(y*(F.t/F.w)); +S=y}if(c.V6()&&c.add.vmsk==null||c.add.TySh)Q=S=Math.max(S,16);else{Q=Math.max(Q,6);S=Math.max(S,6)}var h=S,d=c.V6()&&c.add.vmsk; +if(d){var W=c.rect.clone(),A,T;if(W.ur())W=new cJ(0,0,20,20);var w=W.t,J=W.w;if(w>J){A=y;T=Math.floor(y*(J/w))}else{A=Math.floor(y*(w/J)); +T=y}if(A*T==0)A=T=16;D.I$.CG(c.CO,A,T,W,c.buffer,c.rect,!1);D.I$.agN(c.CO,A,T);h=T}else if(c.add.TySh){D.I$.aa_(c.CO,h,h,c.add.TySh)}else if(c.add.SoCo){h=Math.max(16,Math.min(Q,S)); +D.I$.agr(c.CO,h,h,c.add.SoCo)}else if(c.add.GdFl){D.I$.aoQ(c.CO,h,h,c.add.GdFl)}else if(c.add.PtFl){D.I$.apG(c.CO,h,h,c.add.PtFl,a)}else if(eU.get(c.add)!=null){D.I$.ad4(c.CO,h,h,c.add)}else if(c.add.SoLd){D.I$.CG(c.CO,Q,S,F,c.buffer,c.rect,!1); +D.I$.aq4(c.CO,Q,S,c.add.SoLd)}else if(c.Dl()){h=16}else{if(c.bV())D.I$.CG(c.CO,Q,S,F,c.buffer,c.rect,!1); +else{D.I$.ahP(c.CO,h,h)}}var o=c.QH();if(o)D.I$.R7(c.aaY,Q,S,F,o);if(c.P7()&&c.Zg(a)&&c.Zg(a).N){var v=c.Zg(a).N; +D.I$.R7(c.abE,Q,S,F,v)}if(!d&&c.add.vmsk){D.I$.R7(c.a88,Q,S,F,c.add.vmsk.QH(),!0)}if(c.add.vmsk||o)h=Math.max(h,S); +c.ajd=Math.max(h,16);if(c.Dl()&&c.add.lsct==fc.bc)for(var G=0;G0||h.fill!=1||S.ks())){this.MM(a,F,y,c); +return}var W=S.Dl()&&S.X0=="pass"&&(Q.length>0||h.fill!=1||S.ks()),w=S.rect,J=S.buffer;if(S.Dl()){w=this.pl(c,!1); +var T=D.G(w.L()*4);A=D.G(w.L());this.MM(T,w,y,c);D.ie(T,A,3)}else if(d){w=F.clone();A=D.G(w.L());A.fill(255)}else{w=S.rect; +A=D.G(w.L());D.ie(J,A,3)}if(S.C$()){var o=S.N.ZM(w);D.L9(o,A)}if(S.ks())v=hN.tB(S.add.lmfx,S.add.fxrp,A,w,c); +if(S.ks())hN.V5(S.add.lmfx,v,w,a,F,y);if(S.Dl()){J=D.G(w.L()*4);if(S.X0=="pass")D.vD(a,F,J,w);if(W){var T=D.G(w.L()*4); +this.MM(T,w,y,c);var i=D.G(w.L());D.ie(T,i,3);D.c_(i,w,J,w)}this.MM(J,w,y,c)}if(d){J=a.slice(0);D.Jx(J,4278190080,16777215); +var N=eU.get(S.add),b=eU.LX(N,S.add[N]);eU.K1(b,J,J,w)}var q=J.slice(0);D.Jx(q,4278190080,16777215); +for(var G=0;Gk.ef.t)k=R[G]; +var L=D.G(k.ef.t*k.ef.w*4);D.vD(a,F,L,k.ef)}hN.tw(S.add.lmfx,v,w,a,F,y,O,L,k?k.ef:null)}D.R.g5(O,w,a,F,A,w,0,y,1,S.X0=="diss")}; +i2.prototype.MM=function(a,F,y,c){var Q=this.children;for(var G=0;GS||!h&&S.indexOf(this.index)==-1)){return}var d=this.c,W=hN.jl(d),w=i2.Cp,J=d.V6()?d.QH():d.N; +if(!d.xg())return;if(d.C$()&&J.rect.ur()){return}if(d.add.vstk==null&&this.pl(c,!1).ur()){return}var A=this.pl(c,!0).Df(y); +if(!F.pI(y)&&!y.fQ(A))return;if(d.Dl()&&d.add.artb){var T=d.Hu();y=y.Df(T)}var o=i2.WW(d,Q,W);if(!o){this.Gr(a,F,y,c,Q,S); +return}d.Uo.LF=w.SR(d.Uo.LF,A.t,A.w);w.oR(a,F,d.Uo.LF,A,y);this.Gr(d.Uo.LF,A,y,c,Q,S);w.g5(d.Uo.LF,A,a,F,null,null,0,y,d.opacity/255,d.X0=="diss",W.i2)}; +i2.WW=function(a,F,y){if(y.i2[0]*y.i2[1]*y.i2[2]==0)return!0;return a.opacity!=255&&(F.length!=0||a.Dl()||a.ks())}; +i2.akh={Uo:{}};i2.prototype.Gr=function(a,F,y,c,Q,S){var h=this.c,d=hN.jl(h),W=eU.get(h.add)!=null,w=i2.Cp,J=i2.WW(h,Q,d),A=J?1:h.opacity/255,T=h.V6()?h.QH():h.N,o=h.Dl()&&h.X0=="pass"&&!(Q.length>0||d.fill!=1||h.ks()),v=!h.Dl()&&!W&&!h.ks()&&Q.length==0,i=W&&!h.ks()&&Q.length==0,k=null,L=null,C=null,I; +if(o||v||i){var N=a,b=F;if(h.C$()){b=this.pl(c,!1);N=h.Uo.Yx=w.SR(h.Uo.Yx,b.t,b.w);w.oR(a,F,h.Uo.Yx,b)}if(o)this.uP(N,b,y,c,S); +if(v)w.jU(h.X0,h.KK(c),h.rect,N,b,y,A,d);if(i){var q=h.C$()&&T.$j()==0?T.pl().clone():b.clone(),O=h.Uo; +if(q.pI(new cJ(0,0,c.t,c.w)))O=i2.akh;O.GW=this.dq(N,b,O.GW,q,h.add);d.Zl=!0;w.jU(h.X0,O.GW,q,N,b,y,A,d)}if(h.C$())w.g5(N,b,a,F,h.fb(),T.pl(),T.$j(),y,1,h.X0=="diss"); +h.Uo.yS();return}var R=h.Dl()&&h.X0=="pass"&&(Q.length>0||d.fill!=1||h.ks()),q=h.rect;if(h.Dl()){q=this.pl(c,!1); +C=h.Uo.GW=w.SR(h.Uo.GW,q.t,q.w);w.Jx(C,0);this.uP(C,q,q,c,S);L=w.SR(h.Uo.Xt,q.t,q.w);w.oR(C,q,L,q)}else if(W){q=h.C$()&&T.$j()==0?T.pl().clone():F.clone(); +L=w.SR(h.Uo.Xt,q.t,q.w);w.Jx(L,4294967295)}else{q=h.rect;k=h.KK(c);L=w.SR(h.Uo.Xt,q.t,q.w);w.oR(k,q,L,q)}h.Uo.Xt=L; +if(h.C$())w.a3D(h.fb(),T.pl(),T.$j(),L,q);if(h.ks())if(h.Uo.G0||h.Uo.RM||h.Uo.bW!=V.Vd||h.Uo.hs||h.Dl()){var t=D.G(q.t*q.w); +if(hN.AA(h.add.lmfx)){if(V.Vd){if(!h.Dl()&&h.QH()==null&&h.rect.pI(q)&&h.add.vmsk==null)D.ie(h.buffer,t,3); +else{var _=D.G(q.t*q.w*4);L.get(_);D.ie(_,t,3)}}else D.ie(L,t,3)}if(h.Uo.RM||h.Uo.bW!=V.Vd||!D.pI(t,h.Uo.IL)){var M=null; +if(h.V6()&&h.add.vmsk&&h.add.vmsk.isEnabled&&h.add.vmsk.QH().color==0)M=h.add.vmsk.QH().rect;hN.adc(h.Uo.XK,t,q,h.add.lmfx,h.add.fxrp,c,M); +h.Uo.IL=t;h.Uo.ajJ=q}}if(h.ks())hN.V5(h.add.lmfx,h.Uo.XK,q,a,F,y);if(h.Dl()){k=w.SR(h.Uo.Yx,q.t,q.w); +w.Jx(k,0);if(h.X0=="pass")w.oR(a,F,k,q);if(R)w.Em(C,q,k,q);this.uP(k,q,y,c,S);h.Uo.Yx=k}if(W){k=h.Uo.Yx=this.dq(a,F,h.Uo.Yx,q,h.add)}if(h.Dl()||W)I=k; +else{I=w.SR(h.Uo.Yx,q.t,q.w);w.oR(k,q,I,q,y);h.Uo.Yx=I}w.Jx(I,4278190080,16777215);for(var G=0;Gs.ef.t)s=r[G]; +h.Uo.fv=w.SR(h.Uo.fv,s.ef.t,s.ef.w);w.oR(a,F,h.Uo.fv,s.ef,y);h.Uo.Ar=w.SR(h.Uo.Ar,s.ef.t,s.ef.w)}hN.tw(h.add.lmfx,h.Uo.XK,q,a,F,y,j,h.Uo.fv,h.Uo.Ar,s?s.ef:null)}if(!V.Vd){var e=D.G(q.L()); +D.ie(L,e,3);L=e}w.g5(j,q,a,F,L,q,0,y,1,h.X0=="diss");h.Uo.yS()};i2.prototype.dq=function(a,F,y,c,Q){var S=eU.get(Q),h; +if(S)h=eU.LX(S,Q[S]);var d=i2.Cp;y=d.SR(y,c.t,c.w);if(!(V.Vd&&F.pI(c)))d.oR(a,F,y,c);if(h){if(V.Vd){var W=c.clone(); +W.x=W.y=0;if(F.pI(c)){V.LH(y,W);eU.D5(h,a.g6,W)}else{V.LH(y,c);y.y9(c);eU.D5(h,y.HU,W)}}else eU.K1(h,y,y,c)}return y}; +i2.prototype.uP=function(a,F,y,c,Q){var S=this.children;for(var G=0;G1.0001; +if(A){T.t=Math.round(T.t/o);T.w=Math.round(T.w/o);T.x=Math.round((this.t-T.t)/2);T.y=Math.round((this.w-T.w)/2)}else if(Q&&f$.vl(a.buffer)=="pdf"&&this.BD!=144){var o=144/this.BD; +T.t=Math.round(T.t/o);T.w=Math.round(T.w/o);A=!0}J.buffer=D.G(J.rect.L()*4);if(!A)D.YR(W.n4[0],J.buffer)}J.add.SoLd={classID:"null",Idnt:{t:"TEXT",v:S},Impr:{t:"Objc",v:{__name:"None",classID:"none"}},placed:{t:"TEXT",v:w},PgNm:{t:"long",v:1},totalPages:{t:"long",v:1},frameStep:{t:"Objc",v:{classID:"null",numerator:{t:"long",v:0},denominator:{t:"long",v:600}}},duration:{t:"Objc",v:{classID:"null",numerator:{t:"long",v:0},denominator:{t:"long",v:600}}},frameCount:{t:"long",v:1},Annt:{t:"long",v:16},Type:{t:"long",v:2},Trnf:null,nonAffineTransform:null,warp:{t:"Objc",v:D.be.G(W?W.n4[1]:J.rect)},Sz:{t:"Objc",v:{classID:"Pnt",Wdth:{t:"doub",v:J.rect.t},Hght:{t:"doub",v:J.rect.w}}},Rslt:{t:"UntF",v:{type:"#Rsl",val:72}}}; +var v=D.M.Fx(J.rect).I;J.add.SoLd.Trnf=m.p.w8(v);J.add.SoLd.nonAffineTransform=m.p.w8(v);if(A)J.et(this,!1); +return J};iO.prototype.fh=function(a){if(a!=null){this.T();this.P9(a);var F=this.buffer;if(V.Vd)this.NK.get(F); +else F=F.slice(0);this.T();this.P9();return F}if(this.G0){this.P9();this.G0=null}if(V.Vd&&this.Eo){this.NK.get(this.buffer); +this.Eo=null;this.$F=!0}return this.buffer};iO.prototype.Zh=function(){for(var G=0;G");F.add.lsct=fc.xD;F._8=24;return F};iO.prototype.E4=function(){return this.Ch!=this.Vb}; +iO.prototype.OW=function(a){while(this.history.length>this.Ch+1)this.history.pop();if(this.Vb>this.Ch)this.Vb=-1; +if(a.U.id!=m.Li){this.pv=!0;if(this.or.lastAppliedComp){delete this.or.lastAppliedComp;this.$F=!0}}this.history.push(a); +this.Ch++;this.$F=!0;var F=c2.Sw()?60:30,y=0;for(var G=this.history.length-1;G>=0;G--){var c=this.history[G]; +if(c.P4)continue;y++;if(y==F){this.Ch-=G;this.history=this.history.slice(G);break}}};iO.prototype.GV=function(){if(this.Ch!=this.history.length-1)return null; +return this.history[this.history.length-1]};iO.prototype.CL=function(a,F,y,c){if(a==null)a=!1;var Q=F!=null?[F]:this.D.slice(0); +if(c){var S=[];for(var G=0;G2){var Q=c.ga[0];Q.VS=-1; +F.push(Q);if(c.un.indexOf(0)!=-1)y.push(F.length-1)}var h=c.J5==null;if(h)c.J5=[];for(var G=c.D.length-1; +G>=0;G--){var d=c.u[c.D[G]],W=d.add.TySh;if(d.add.vmsk!=null&&(d.Mh||d.V6())){var Q=iO.pj("\""+d.getName()+"\" Shape Path",d.add); +Q.VS=c.D[G];F.push(Q);if(h)c.J5.push(S);if(c.J5.indexOf(S)!=-1)y.push(F.length-1);S++}if(a!=!0&&W&&W.add&&D.be.jM(W.Pw)){var Q=iO.pj("\""+d.getName().slice(0,10)+"..\" Text Path",W.add); +Q.VS=1e6+c.D[G];F.push(Q);y.push(F.length-1);S++}}if(y.length==0&&a){c.ga[0].VS=-1;c.un=[0];y.push(F.length); +F.push(c.ga[0])}return[F,y]};iO.prototype.IU=function(G,a){var F=[],$=this.root.Ui(G);if($)$.VA(F,a); +return F};iO.prototype.Wa=function(){this.root.ID(this,new cJ(0,0,this.t,this.w),32)};iO.prototype.gB=function(a){for(var G=0; +G1e3){var F=this.root.children; +for(var G=0;G>>8&255)<<8|A>>>16;J.rect=new cJ(0,0,y,c);J.buffer=D.G(y*c*4); +D.Jx(J.buffer,{Wht:4294967295,Blck:4278190080,BckC:255<<24|A}[W])}}d.buffer=D.G(y*c*4);return d};function bB(a){this.Co=a; +this.X=0;this.gi=1;this.B=new iS(0,0);this.kl=new iS(0,0);this.JX=0;this.Ty=[1,1,1];this.Ed=new cJ(0,0,1,1); +this.a1a=new cJ(0,0,a.t,a.w);this.He=null;this.Tg=null;this._W=new Uint32Array(0);this.df=null;this.nP=null; +this.Sp=D.G(0);this.U8=null;this.PO=null}bB.prototype.Cg=function(a){var F=new hg,y=this.Ed,c=this.Co,Q=a?this.gi:this.X,S=a?this.kl:this.B,h=Math.round((y.t-c.t*Q)/2+S.x),d=Math.round((y.w-c.w*Q)/2+S.y); +F.translate(-h,-d);F.scale(1/Q,1/Q);var W=c.t/2,w=c.w/2;F.translate(-W,-w);F.rotate(this.JX);F.translate(W,w); +return F};bB.prototype.Fh=function(a){var F=this.Ed,y=this.Co,c=Math.atan2(-a.d,a.re),Q=y.t/2,S=y.w/2; +a.translate(-Q,-S);a.rotate(-c);a.translate(Q,S);var h=1/a.Ms();a.scale(h,h);var d=-a.iU,W=-a.ma,w=Math.round(d-(F.t-y.t*h)/2),J=Math.round(W-(F.w-y.w*h)/2); +if(Math.abs(h-Math.round(h))<1e-6)h=Math.round(h);this.JX=c;this.X=h;this.B=new iS(w,J)};bB.prototype.Mz=function(a,F){var y=this.Cg(); +return y.NE(new iS(a,F))};bB.prototype.Dz=function(a,F){var y=this.Cg();y.kW();return y.NE(new iS(a,F))}; +function aX(){}aX.order="ebbl FrFX IrSh IrGl ChFX SoFi GrFl patternFill OrGl DrSh".split(" ");aX.ye="ebblMulti frameFXMulti innerShadowMulti IrGlMulti ChFXMulti solidFillMulti gradientFillMulti patternFillMulti OrGlMulti dropShadowMulti".split(" "); +aX.names=[[14,4],[14,9],[14,1],[14,3],[14,8],[14,5],[14,6],[14,7],[14,2],[14,0]];aX.yF=["DrSh","IrSh","SoFi","GrFl","FrFX"]; +aX.HN=["Clr"];aX.pX="Grad Rvrs Type Algn Angl Dthr Scl Ofst".split(" ");aX.BZ=["Ptrn","Scl","Algn","phase"]; +aX.mR={c5:"{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}}}",oV:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Grdn\",\"Nm\":{\"v\":\"Two Color\",\"t\":\"TEXT\"},\"GrdF\":{\"v\":{\"GrdF\":\"CstS\"},\"t\":\"enum\"},\"Intr\":{\"v\":4096,\"t\":\"doub\"},\"Clrs\":{\"v\":[{\"v\":{\"classID\":\"Clrt\",\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":0,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},\"Type\":{\"v\":{\"Clry\":\"UsrS\"},\"t\":\"enum\"},\"Lctn\":{\"v\":0,\"t\":\"long\"},\"Mdpn\":{\"v\":50,\"t\":\"long\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"Clrt\",\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":255,\"t\":\"doub\"},\"Bl\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"},\"Type\":{\"v\":{\"Clry\":\"UsrS\"},\"t\":\"enum\"},\"Lctn\":{\"v\":4096,\"t\":\"long\"},\"Mdpn\":{\"v\":50,\"t\":\"long\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"},\"Trns\":{\"v\":[{\"v\":{\"classID\":\"TrnS\",\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Lctn\":{\"v\":0,\"t\":\"long\"},\"Mdpn\":{\"v\":50,\"t\":\"long\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"TrnS\",\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Lctn\":{\"v\":4096,\"t\":\"long\"},\"Mdpn\":{\"v\":50,\"t\":\"long\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}}}",Ji:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Grdn\",\"Nm\":{\"v\":\"Foreground to Background\",\"t\":\"TEXT\"},\"GrdF\":{\"t\":\"enum\",\"v\":{\"GrdF\":\"CstS\"}},\"Intr\":{\"t\":\"doub\",\"v\":4096},\"Clrs\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"Objc\",\"v\":{\"classID\":\"Clrt\",\"Type\":{\"t\":\"enum\",\"v\":{\"Clry\":\"FrgC\"}},\"Lctn\":{\"t\":\"long\",\"v\":0},\"Mdpn\":{\"t\":\"long\",\"v\":50}}},{\"t\":\"Objc\",\"v\":{\"classID\":\"Clrt\",\"Type\":{\"t\":\"enum\",\"v\":{\"Clry\":\"BckC\"}},\"Lctn\":{\"t\":\"long\",\"v\":4096},\"Mdpn\":{\"t\":\"long\",\"v\":50}}}]},\"Trns\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"Objc\",\"v\":{\"classID\":\"TrnS\",\"Opct\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"Lctn\":{\"t\":\"long\",\"v\":0},\"Mdpn\":{\"t\":\"long\",\"v\":50}}},{\"t\":\"Objc\",\"v\":{\"classID\":\"TrnS\",\"Opct\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"Lctn\":{\"t\":\"long\",\"v\":4096},\"Mdpn\":{\"t\":\"long\",\"v\":50}}}]}}}",vk:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Ptrn\",\"Nm\":{\"v\":\"orangeslices\",\"t\":\"TEXT\"},\"Idnt\":{\"v\":\"c7acb22a-47a6-11de-919a-bf574370eaaf\",\"t\":\"TEXT\"}}}"}; +aX.mR.c5="\"Clr\": "+aX.mR.c5;aX.mR.V="\"Grad\":"+aX.mR.oV+",\"Rvrs\":{\"v\":false,\"t\":\"bool\"},\"Type\":{\"v\":{\"GrdT\":\"Lnr\"},\"t\":\"enum\"},\"Algn\":{\"v\":true,\"t\":\"bool\"},\"Angl\":{\"v\":{\"type\":\"#Ang\",\"val\":90},\"t\":\"UntF\"},\"Scl\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Ofst\":{\"v\":{\"classID\":\"Pnt\",\"Hrzn\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"Vrtc\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"}},\"t\":\"Objc\"},\"Dthr\":{\"v\":false,\"t\":\"bool\"}"; +aX.mR.vk="\"Ptrn\":"+aX.mR.vk+",\"Scl\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Algn\":{\"v\":true,\"t\":\"bool\"},\"phase\":{\"v\":{\"classID\":\"Pnt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"}"; aX.default="{ \"classID\": \"null\", \"Scl\": {\"t\": \"UntF\", \"v\": { \"type\": \"#Prc\",\"val\": 100} }, \"masterFXSwitch\": {\"t\": \"bool\",\"v\": true} }"; -aX.ft=["{\"classID\":\"ebbl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"hglM\":{\"t\":\"enum\",\"v\":{\"BlnM\":\"Scrn\"}},\"hglC\":{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"t\":\"doub\",\"v\":255},\"Grn\":{\"t\":\"doub\",\"v\":255},\"Bl\":{\"t\":\"doub\",\"v\":255}}},\"hglO\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":75}},\"sdwM\":{\"t\":\"enum\",\"v\":{\"BlnM\":\"Mltp\"}},\"sdwC\":{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"t\":\"doub\",\"v\":0},\"Grn\":{\"t\":\"doub\",\"v\":0},\"Bl\":{\"t\":\"doub\",\"v\":0}}},\"sdwO\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":75}},\"bvlT\":{\"t\":\"enum\",\"v\":{\"bvlT\":\"SfBL\"}},\"bvlS\":{\"t\":\"enum\",\"v\":{\"BESl\":\"InrB\"}},\"uglg\":{\"t\":\"bool\",\"v\":true},\"lagl\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Ang\",\"val\":120}},\"Lald\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Ang\",\"val\":30}},\"srgR\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"blur\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Pxl\",\"val\":5}},\"bvlD\":{\"t\":\"enum\",\"v\":{\"BESs\":\"In\"}},\"TrnS\":{\"t\":\"Objc\",\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"Linear\"},\"Crv\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"Objc\",\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"t\":\"doub\",\"v\":0},\"Vrtc\":{\"t\":\"doub\",\"v\":0}}},{\"t\":\"Objc\",\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"t\":\"doub\",\"v\":255},\"Vrtc\":{\"t\":\"doub\",\"v\":255}}}]}}},\"antialiasGloss\":{\"t\":\"bool\",\"v\":false},\"Sftn\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Pxl\",\"val\":0}},\"useShape\":{\"t\":\"bool\",\"v\":false},\"MpgS\":{\"t\":\"Objc\",\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"Linear\"},\"Crv\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"Objc\",\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"t\":\"doub\",\"v\":0},\"Vrtc\":{\"t\":\"doub\",\"v\":0}}},{\"t\":\"Objc\",\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"t\":\"doub\",\"v\":255},\"Vrtc\":{\"t\":\"doub\",\"v\":255}}}]}}},\"AntA\":{\"t\":\"bool\",\"v\":false},\"Inpr\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":28}},\"useTexture\":{\"t\":\"bool\",\"v\":false},\"InvT\":{\"t\":\"bool\",\"v\":false},\"Algn\":{\"t\":\"bool\",\"v\":true},\"Scl\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"textureDepth\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"Ptrn\":{\"t\":\"Objc\",\"v\":{\"classID\":\"Ptrn\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"orangeslices\"},\"Idnt\":{\"t\":\"TEXT\",\"v\":\"c7acb22a-47a6-11de-919a-bf574370eaaf\"}}},\"phase\":{\"t\":\"Objc\",\"v\":{\"classID\":\"Pnt\",\"Hrzn\":{\"t\":\"doub\",\"v\":0},\"Vrtc\":{\"t\":\"doub\",\"v\":0}}}}","{\"classID\":\"FrFX\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Styl\":{\"v\":{\"FStl\":\"OutF\"},\"t\":\"enum\"},\"PntT\":{\"v\":{\"FrFl\":\"SClr\"},\"t\":\"enum\"},\"Sz\":{\"v\":{\"type\":\"#Pxl\",\"val\":3},\"t\":\"UntF\"},"+aX.zd.wB+","+aX.zd.h+","+aX.zd.Ve+"}","{\"classID\":\"IrSh\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Mltp\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 75},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":0,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},\"uglg\":{\"v\":true,\"t\":\"bool\"},\"lagl\":{\"v\":{\"type\":\"#Ang\",\"val\":120},\"t\":\"UntF\"},\"Dstn\":{\"v\":{\"type\":\"#Pxl\",\"val\":5},\"t\":\"UntF\"},\"Ckmt\":{\"v\":{\"type\":\"#Pxl\",\"val\":0},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":5},\"t\":\"UntF\"},\"Nose\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"TrnS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Linear\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"}}","{\"classID\":\"IrGl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Scrn\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 75},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":255,\"t\":\"doub\"},\"Bl\":{\"v\":189.99710083007812,\"t\":\"doub\"}},\"t\":\"Objc\"},\"GlwT\":{\"v\":{\"BETE\":\"SfBL\"},\"t\":\"enum\"},\"Ckmt\":{\"v\":{\"type\":\"#Pxl\",\"val\":0},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":5},\"t\":\"UntF\"},\"ShdN\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"Nose\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"glwS\":{\"v\":{\"IGSr\":\"SrcE\"},\"t\":\"enum\"},\"TrnS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Linear\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"},\"Inpr\":{\"v\":{\"type\":\"#Prc\",\"val\":50},\"t\":\"UntF\"}}","{\"classID\":\"ChFX\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Mltp\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 50},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":0,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"Invr\":{\"v\":true,\"t\":\"bool\"},\"lagl\":{\"v\":{\"type\":\"#Ang\",\"val\":19},\"t\":\"UntF\"},\"Dstn\":{\"v\":{\"type\":\"#Pxl\",\"val\":11},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":14},\"t\":\"UntF\"},\"MpgS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Gaussian\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":32,\"t\":\"doub\"},\"Vrtc\":{\"v\":7,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":64,\"t\":\"doub\"},\"Vrtc\":{\"v\":38,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":96,\"t\":\"doub\"},\"Vrtc\":{\"v\":101,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":128,\"t\":\"doub\"},\"Vrtc\":{\"v\":166,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":159,\"t\":\"doub\"},\"Vrtc\":{\"v\":209,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":191,\"t\":\"doub\"},\"Vrtc\":{\"v\":235,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":223,\"t\":\"doub\"},\"Vrtc\":{\"v\":248,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"}}","{\"classID\":\"SoFi\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+aX.zd.wB+"}","{\"classID\":\"GrFl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+aX.zd.h+"}","{\"classID\":\"patternFill\",\"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+aX.zd.Ve+"}","{\"classID\":\"OrGl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Scrn\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 75},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":255,\"t\":\"doub\"},\"Bl\":{\"v\":189.99710083007812,\"t\":\"doub\"}},\"t\":\"Objc\"},\"GlwT\":{\"v\":{\"BETE\":\"SfBL\"},\"t\":\"enum\"},\"Ckmt\":{\"v\":{\"type\":\"#Pxl\",\"val\":0},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":5},\"t\":\"UntF\"},\"Nose\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"ShdN\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"TrnS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Linear\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"},\"Inpr\":{\"v\":{\"type\":\"#Prc\",\"val\":50},\"t\":\"UntF\"}}","{\"classID\":\"DrSh\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Mltp\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 57},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":0,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},\"uglg\":{\"v\":true,\"t\":\"bool\"},\"lagl\":{\"v\":{\"type\":\"#Ang\",\"val\":120},\"t\":\"UntF\"},\"Dstn\":{\"v\":{\"type\":\"#Pxl\",\"val\":27},\"t\":\"UntF\"},\"Ckmt\":{\"v\":{\"type\":\"#Pxl\",\"val\":0},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":13},\"t\":\"UntF\"},\"Nose\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"TrnS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Line\xE1rn\xED\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"},\"layerConceals\":{\"v\":true,\"t\":\"bool\"}}"]; -aX.h={types:"Lnr Rdl Angl Rflc Dmnd shapeburst".split(" "),names:[[19,0,0],[19,0,1],[19,0,2],[19,0,3],[19,0,4],[19,0,5]]}; -aX.stroke={types:["InsF","CtrF","OutF"],names:[[19,5,2],[19,5,1],[19,5,0]],S0:["SClr","GrFl","Ptrn"],a7x:[[13,0],[12,37],[12,62]]}; -aX.if={types:["SfBL","PrBL"],names:[[19,1,0],[19,1,1]],IA:["SrcC","SrcE"],a9c:[[19,5,1],[12,69]]};aX.Hm={types:["OtrB","InrB","Embs","PlEb","strokeEmboss"],style:[[19,2,0],[19,2,1],[19,2,2],[19,2,3],[19,2,4]],xa:["SfBL","PrBL","Slmt"],api:[[19,3,0],[19,3,1],[19,3,2]],dir:[[19,4,0],[19,4,1]]}; -aX.us={fu:["strokeStyleButtCap","strokeStyleRoundCap","strokeStyleSquareCap"],MW:["strokeStyleAlignInside","strokeStyleAlignCenter","strokeStyleAlignOutside"],join:["strokeStyleMiterJoin","strokeStyleRoundJoin","strokeStyleBevelJoin"],hB:["solidColorLayer","gradientLayer","patternLayer"],default:{classID:"strokeStyle",strokeStyleVersion:{t:"long",v:2},strokeEnabled:{t:"bool",v:!1},fillEnabled:{t:"bool",v:!0},strokeStyleLineWidth:{t:"UntF",v:{type:"#Pnt",val:4.38}},strokeStyleLineDashOffset:{t:"UntF",v:{type:"#Pnt",val:0}},strokeStyleMiterLimit:{t:"doub",v:100},strokeStyleLineCapType:{t:"enum",v:{strokeStyleLineCapType:"strokeStyleButtCap"}},strokeStyleLineJoinType:{t:"enum",v:{strokeStyleLineJoinType:"strokeStyleMiterJoin"}},strokeStyleLineAlignment:{t:"enum",v:{strokeStyleLineAlignment:"strokeStyleAlignCenter"}},strokeStyleScaleLock:{t:"bool",v:!1},strokeStyleStrokeAdjust:{t:"bool",v:!1},strokeStyleLineDashSet:{t:"VlLs",v:[]},strokeStyleBlendMode:{t:"enum",v:{BlnM:"Nrml"}},strokeStyleOpacity:{t:"UntF",v:{type:"#Prc",val:100}},strokeStyleContent:{t:"Objc",v:JSON.parse("{\"classID\":\"solidColorLayer\","+aX.zd.wB+"}")},strokeStyleResolution:{t:"doub",v:72}}}; -aX.tI=[{classID:"null",Clr:JSON.parse(aX.ft[5]).Clr},{classID:"null",Grad:JSON.parse(aX.ft[6]).Grad,Dthr:{t:"bool",v:!1},Rvrs:{t:"bool",v:!1},Angl:{t:"UntF",v:{type:"#Ang",val:60}},Type:{t:"enum",v:{GrdT:"Lnr"}},Algn:{t:"bool",v:!0},Scl:{t:"UntF",v:{type:"#Prc",val:100}},Ofst:{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Prc",val:0}},Vrtc:{t:"UntF",v:{type:"#Prc",val:0}}}}},{classID:"null",Ptrn:JSON.parse(aX.ft[7]).Ptrn,Algn:{v:!0,t:"bool"},Scl:{v:{type:"#Prc",val:100},t:"UntF"},phase:{v:{classID:"Pnt",Hrzn:{v:0,t:"doub"},Vrtc:{v:0,t:"doub"}},t:"Objc"}}]; -var dm={};dm.Io=function(D,M){function s(D,r){if(D==null)return null;var P=D[r].v,A;if(P.length!=0){A=P[0].v; -if(!A.enab.v)A=null}return A}var F=M.SoCo,X=M.GdFl,d=s(D,"solidFillMulti"),V=s(D,"gradientFillMulti"); -if(d==null&&V==null)return[F,X];var $=dm.ajK;if(F&&d&&V==null){var w=JSON.parse(JSON.stringify(F));w.Clr.v=$(d.Clr.v,F.Clr.v,d); -return[w,null]}if(X&&d&&V==null){var q=JSON.parse(JSON.stringify(X)),u=q.Grad.v.Clrs.v;for(var K=0;K0&&r.blur.v.val>0)V=Math.max(V,Math.ceil(r.Ckmt.v.val*r.blur.v.val/100)); -if(w=="OrGl"&&r.enab.v&&r.Ckmt.v.val>0&&r.blur.v.val>0&&r.GlwT.v.BETE=="SfBL")V=Math.max(V,Math.ceil(r.Ckmt.v.val*r.blur.v.val/100)); -if(w=="OrGl"&&r.enab.v&&r.blur.v.val>0&&r.GlwT.v.BETE=="PrBL")V=Math.max(V,r.blur.v.val);if(w=="FrFX"&&r.enab.v&&r.Sz.v.val>0){if(r.Styl.v.FStl=="OutF")V=Math.max(V,r.Sz.v.val); -if(r.Styl.v.FStl=="CtrF")V=Math.max(V,Math.ceil(r.Sz.v.val/2));$=Math.max($,dm.yX(r)[1])}}}var P=new dm.Aa(s,F,V,dm.dK(D)),A=-F.x,E=-F.y,n={type:{},all:[]}; -for(var _=0;_=0;l--){var b=D[q].v[l].v;if(!b.enab.v)continue;var y=b.blur?b.blur.v.val:0,p=b.Ckmt?b.Ckmt.v.val/100:0,k=y*p; -if(w=="DrSh"){var S=P.H_(k,y-k,!0),Z=S.gP,z=S.S;z.offset(A,E);dm.ge(Z,b,!1);dm.lr(z,b,X,0);var j=e.U(z.Y()*4); -dm.ib(j,b.Clr.v);e.Te(Z,j,3);var R={dP:j,yM:z,cZ:eF.Eo(b.Md.v.BlnM),ZA:b.Opct.v.val/100,a4R:b.layerConceals.v}; -n.type[w].push(R);n.all.push(R)}if(w=="IrSh"){var S=P.H_(k,y-k,!1);dm.lr(S.S,b,X,0);var z=P.rect().clone(),Z=e.U(z.Y()); -Z.fill(255);e.b7(S.gP,S.S,Z,z);dm.ge(Z,b,!0);var j=e.U(z.Y()*4);dm.ib(j,b.Clr.v);e.Te(Z,j,3);z.offset(A,E); -var R={dP:j,yM:z,cZ:eF.Eo(b.Md.v.BlnM),ZA:b.Opct.v.val/100};n.type[w].push(R);n.all.push(R)}if(w=="GrFl"){var j=e.U(P.rect().Y()*4); -dm.ip(b,j,P.rect(),X,null,d);var z=P.rect().clone();z.offset(A,E);var R={dP:j,yM:z,cZ:eF.Eo(b.Md.v.BlnM),ZA:b.Opct.v.val/100}; -n.type[w].push(R);n.all.push(R)}if(w=="SoFi"){var j=e.U(P.gP().length*4);dm.ib(j,b.Clr.v);var z=P.rect().clone(); -z.offset(A,E);var R={dP:j,yM:z,cZ:eF.Eo(b.Md.v.BlnM),ZA:b.Opct.v.val/100};n.type[w].push(R);n.all.push(R)}if(w=="ebbl"){var a=!1; -if(a)console.log(b);var m=Date.now(),G=b.bvlS.v.BESl;if(G=="strokeEmboss"){var L=D.frameFXMulti.v;if(L.length==0)continue; -L=L[0].v;if(!L.enab.v)continue;var H=L.Styl.v.FStl;if(H=="OutF")G="OtrB";if(H=="CtrF")G="Embs";if(H=="InsF")G="InrB"}var y=b.blur.v.val; -if(y==0)y=.7;if(G=="Embs"||G=="PlEb")y/=2;var o=["OtrB","InrB","Embs","PlEb","strokeEmboss"],c=["SfBL","PrBL","Slmt"],f=["In","Out"],i=b.bvlT.v.bvlT!="SfBL"?y:y*.45,h=Math.round(y),N=P.rect().clone(),I=N.clone(); -I.ZB(h,h);var J=I.d,av=I.w,gY=J*av,f9=e.U(gY);e.b7(P.gP(),N,f9,I);var gl=new Float64Array(gY),Y=new Float64Array(gY); -e.style.Yn(f9,gl,J,av);e.Iy(f9);e.style.Yn(f9,Y,J,av);if(a)console.log("distTransform computed",Date.now()-m); -for(var K=0;Ki)Y[K]=i}if(a)console.log("summing + cropping",Date.now()-m); -if(b.bvlT.v.bvlT=="SfBL"){var hF=Math.pow(y*.21,1.22);if(!0)hF=Math.max(hF,2);var hv=e.Qn.pU(hF,2);e.Qn.Gp(Y,gl,I,hv[0]>>>1); -e.Qn.Gp(gl,Y,I,hv[1]>>>1)}if(a)console.log("blurring",Date.now()-m);var bV=Y,gu=bV.slice(0);if(b.useShape.v){var dg=Math.min(100,b.Inpr.v.val+1)/100; -if(G!="OtrB"&&G!="InrB")dg=1;var bG=e.b3.sf(b.MpgS.v.Crv.v,2e3),gS=Math.round(2e3/dg);bG=e.b3.apM(bG,gS,G=="InrB"); -var dc=.5/i;for(var K=0;K0)gE[K]=f2;if(bm>0)af[K]=bm}if(a)console.log("raycasting",Date.now()-m); -if(b.Sftn.v.val!=0){e.Qn.A7(gE,gl,I,b.Sftn.v.val*.43);var hA=gl,gl=gE,gE=hA;if(cq){e.Qn.A7(af,gl,I,b.Sftn.v.val*.43); -var hA=gl,gl=af,af=hA}else e.f8(gE,af)}if(a)console.log("softening",Date.now()-m);var bG=e.b3.sf(b.TrnS.v.Crv.v,1024); -for(var K=0;K0){var S=P.H_(eH,0,!0);bL=S.gP;if(bL.length0){var S=P.H_(cm,0,!1);hC=e.U(z.Y());hC.fill(255);e.b7(S.gP,S.S,hC,z)}z.offset(A,E); -var j=e.U(z.Y()*4),d3=b.PntT.v.FrFl;if(d3=="SClr")dm.ib(j,b.Clr.v);if(d3=="GrFl")dm.ip(b,j,z,X,P.a0d(cm,eH)); -if(d3=="Ptrn")dm.Xz(b,j,z,X,M);var R={dP:j,yM:z,cZ:eF.Eo(b.Md.v.BlnM),ZA:b.Opct.v.val/100,qN:bL,in:hC}; -n.type[w].push(R);n.all.push(R)}}}return n};dm.GG=function(D){var M=1/Math.sqrt(D.x*D.x+D.y*D.y+D.Sw*D.Sw); -D.x*=M;D.y*=M;D.Sw*=M};dm.OL=function(D,M){return{x:D.y*M.Sw-D.Sw*M.y,y:D.Sw*M.x-D.x*M.Sw,Sw:D.x*M.y-D.y*M.x}}; -dm.a7_=function(D,M){return D.x*M.x+D.y*M.y+D.Sw*M.Sw};dm.y0=function(D,M){var s=M.Nose.v.val/100;if(s>0)for(var K=0; -KX){var d=e.b3.hP(M.TrnS.v.Crv.v,256,!0);e.G_(D,d)}if(s!=null&&M.Nose.v.val>0)e.style.cr(D,M.Nose.v.val/100,s)}; -dm.ib=function(D,M,s){if(s==null)s=255;var F=e.h.KO(M),X=s<<24|F.P<<16|F.q<<8|F.i,d=new Uint32Array(D.buffer); -d.fill(X)};dm.lr=function(D,M,s,F){var X=M.uglg&&M.uglg.v?s.CR():M.lagl.v.val;X=X*Math.PI/180+F;var d=Math.cos(X)*M.Dstn.v.val,V=Math.sin(X)*M.Dstn.v.val; -D.x-=Math.round(d);D.y+=Math.round(V)};dm.j_=function(D){if(D==null)return null;var M=D.frameFXMulti.v; -if(M.length==0)return null;M=M[0].v;var s=JSON.parse(JSON.stringify(aX.us.default));dm.h7(M,s);return s}; -dm.h7=function(D,M){var s=aX.stroke.S0.indexOf(D.PntT.v.FrFl),F=[aX.gk,aX.D_,aX.iE][s],X=M.strokeStyleContent.v={classID:aX.us.hB[s]}; -for(var K=0;K=6)this.d7(this.FY(X))};hW.prototype.Zo=function(D){if(D==null)D=1;D=Math.max(.05,Math.min(5,D)); -if(isNaN(D)){alert("Pressure is not a number");throw"e"}return D};hW.prototype.d7=function(D){this.Bi=D; -this.Av=this.Av.bk(D)};hW.prototype.finish=function(){var D=this.WG,M=D.length,s;if(M==4)s=this.gf(D[M-2],D[M-1],this.KL[(M>>1)-1],!0); -if(M>4)s=this.FY(M+2);if(s)this.d7(s)};hW.prototype.FY=function(D){var M=this.WG,s=this.KL,F=M[D-6],X=M[D-5],d=M[D-4],V=M[D-3],$=s[(D>>1)-3],w=s[(D>>1)-2],q=new eo(0,0),u=new eo(0,0); -if(8<=D)q=hW._t(M[D-8],M[D-7],F,X,d,V);if(D<=M.length)u=hW._t(M[D-2],M[D-1],d,V,F,X);var B=F+q.x,r=X+q.y,P=d+u.x,A=V+u.y,E=new hk; -for(var K=0;K<10;K++){var n=(K+1)*.1,_=1-n,l=_*_*_*F+3*n*_*_*B+3*n*n*_*P+n*n*n*d,b=_*_*_*X+3*n*_*_*r+3*n*n*_*A+n*n*n*V,y=this.gf(l,b,$+n*(w-$)); -E=E.bk(y)}return E};hW._t=function(D,M,s,F,X,d){var V=D-s,$=M-F,w=X-s,q=d-F,u=Math.sqrt(V*V+$*$),B=Math.sqrt(w*w+q*q),r=Math.acos((V*w+$*q)/(u*B))/Math.PI,P=.35,A=.1; -r=A+r*(P-A);var E=X-D,n=d-M,_=Math.sqrt(E*E+n*n),l=r*B/_;return new eo(E*l,n*l)};hW.prototype.gf=function(D,M,s,F){var X=new hk,d=this.Vv.aoZ; -if(d==null)d=0;if(d==0||F){X=this.l_(D,M,s);return X}var V=this.e$,$=D-V.x,w=M-V.y,q=Math.sqrt($*$+w*w); -$/=q;w/=q;if(q>d){var u=V.x+$*(q-d),B=V.y+w*(q-d);X=this.l_(u,B,s);this.e$.SG(u,B)}return X};hW.prototype.l_=function(D,M,s){var F=new hk,X=new eo(D,M),d=this.P.Brsh.v.Dmtr.v.val,V=this.Vv.un,$=X.AF(this.cc); -$.normalize(1);var w=eo.cQ(this.cc,X),q=-this.aeq,u=this.cc.clone(),B=this.Vv.Ix;while(!0){var r=this.aT+(s-this.aT)*(Math.max(0,q)/w),P=this.wZ()*(B[1]?r:1),A=this.a0_()*(P+this.akE)/2; -if(V==hW.an)A=1;if(q+A0?1:-1;var _=u.clone();_.y+=$.y>0?1:-1;if(eo.cQ(n,E)1)$.pI=1-($.pI-1);$.ok=$.ok+V;if($.ok<0)$.ok=-$.ok; -if($.ok>1)$.ok=1-($.ok-1);M=e.NW($.WQ,$.pI,$.ok)}return M};hW.prototype.GG=function(D){return Math.max(0,Math.min(1,D))}; -hW.prototype.HM=function(){this.jH++;return hW.hash(this.jH)};hW.m9=function(D){return{i:(D>>16&255)/255,q:(D>>8&255)/255,P:(D>>0&255)/255}}; -hW.hash=function(D){D=D^61^D>>16;D=D+(D<<3);D=D^D>>4;D=D*668265261;D=D^D>>15;return(D&16777215)/16777215}; -hW.K4=[];hW.aqw=function(D,O){var M=D.qw(),s=O.qw();if(M2500){d=$; -break}}var w=Math.round(this.P.Brsh.v.Dmtr.v.val);if(d){d.rect.x=Math.round(d.eU.x-d.q7._u+D._u);d.rect.y=Math.round(d.eU.y-d.q7.eH+D.eH); -if(X){d.rect.x=Math.round(M.x-d.rect.d/2);d.rect.y=Math.round(M.y-d.rect.w/2)}d.G$=Date.now()}else{var q; -if(X&&w<=3){q={buffer:e.U(w*w*4),rect:new hk(Math.round(M.x-w/2),Math.round(M.y-w/2),w,w)};e.BK(q.buffer,4278190080)}else if(D.iD==1&&D.P==0&&D.Gt==0&&D.iw==1){q={buffer:this.Pr.oq,rect:this.Pr.Bm.clone()}; -q.rect.x=Math.round(D._u);q.rect.y=Math.round(D.eH)}else q=T.m.hT([this.Pr.oq,this.Pr.Bm],D);if(X){for(var K=0; -K127?255:0}if(q==null)q={buffer:e.U(0),rect:new hk};var u=D._u-Math.floor(D._u),B=D.eH-Math.floor(D.eH); -d={oq:q.buffer,YR:e.U(q.rect.Y()),rect:q.rect,eU:q.rect.clone(),q7:D,bs:hW.Gn(D._u,D.eH),G$:Date.now()}; -e.FK(d.oq,d.YR,3);F.push(d);s.Y+=q.rect.Y();if(F.length>2e3||s.Y>100*100*400){console.log("pruning",s.Y,F.length); -F.sort(function(P,A){return A.G$-P.G$});while(F.length>1e3||s.Y>100*100*200){var r=F.pop();s.Y-=r.rect.Y()}}}s.eY=F; -s.G$=Date.now();hW.K4.push(s);hW.K4.sort(function(P,A){return A.G$-P.G$});while(hW.K4.length>3)hW.K4.pop(); -return d};hW.Gn=function(D,M){return new eo(D-Math.floor(D),M-Math.floor(M))};hW.akC=function(D,M){var s=M.x,F=M.y,X=Math.abs(s-D.x),d=Math.abs(F-D.y); -if(Math.abs(s-1-D.x)>>1)+1); -for(var K=0;KV*2){var o=new hk(X.x,X.y,Math.floor(X.d/2),Math.floor(X.w/2)),c=T.m.hT([F,X],new ex(o.d/X.d,0,0,o.w/X.w,0,0)); -d*=o.d/X.d;X=c.rect;F=c.buffer}return{ann:d,Bm:X,oq:F}};hW.yY=[];hW.CV=function(D){if(hW.yY[D])return hW.yY[D]; -var M=Math.pow(D,.55),s=new Float64Array(8e3),F=0,X=8e3;for(var K=0;K<8e3;K++){var d=hW.a70(K*(1.55/4e3),M); -if(d>=1)F=K;else if(d<=0&&X==8e3)X=K;s[K]=d}var V=[s,F,X];hW.yY[D]=V;return V};hW.a70=function(D,M){var s=DB||k>r)&&b[S+2]){S+=2;y=b[S];p=b[S+1].d;k=b[S+1].w}if(p*k!=0){var Z=e.U(p*k*4); -e.Te(y,Z,3);var z=new ImageData(new Uint8ClampedArray(Z.buffer),p,k);$.putImageData(z,Math.round((B-p)/2),Math.round((r-k)/2))}}else{}return V.toDataURL()}; -hW.dq=function(D,M,s,F){if(s==0)s=1;var X=D.Brsh.v,d=X.Dmtr.v.val,V=X.Dmtr.v.val=Math.min(F!=null?Math.round(F*2.6):3e3,d*s),$=X.Hrdn?X.Hrdn.v.val/100:1,w=F!=null?F:Math.round(V*(1+.55*(1-$)))+4,B; -w=Math.max(15,Math.min(w,3e3));var q=new hk(0,0,w,w),u=new hW(D,M,null,{EA:1},16711712,0,q);X.Dmtr.v.val=d; -u.moveTo(q.d/2,q.w/2);var r=u.dE(),P=u.$a();if(q.L0(P))B=r;else{B=e.U(q.Y()*4);e.eJ(r,P,B,q)}return[B,q,V]}; -hW.El=function(D,M,s,F){var X=hW.dq(D,M,s),d=X[0].slice(0),V=X[1],$=X[2],w=V.Y(),q=e.U(w);e.FK(d,q,3); -var u=e.U(w);e.Z.a0b(q,u,V);if($<3||e.$L(u,0)||F&&$>12){var B=V.d,r=B>>>1,P=u,A=255;for(var K=0;K<4; -K++){P[B*(r-6+K)+r]=A;P[B*r+r-6+K]=A;P[B*r+r+6-K]=A;P[B*(r+6-K)+r]=A}}var E=[1,2,1,2,8,2,1,2,1];E=e.M6.jX(E); -e.M6.Id(u,q,V.d,V.w,E);e.BK(d,4294967295);e.Te(q,d,3);for(var K=0;K80?255:0;if(w==3)for(var K=0;K<$.length;K+=4)$[K+3]=Math.min(255,$[K+3]*1.5)}else $=e.U(d.Y()*4); -V.resetTransform();V.beginPath();return{dP:$,S:d,JX:F}};cF.x0=function(D,M){var s=M.t,F=M.t6,X=fU.iu(M),d=Math.max(s.P*s.P,s.Gt*s.Gt)<1e-9?s:null; -if(X==3||X==4)d=null;var V={K:[],I:[]};cF.ame(D,V,d);V=cF.l6(V,M,D);return V};cF.l6=function(D,M,s){if(D==null)return D; -if(s&&s.ay)e.O.t(D.I,s.ay,D.I);if(s&&!e.aJ.Rq(M.zt)){var F=fU.$a(M,s);if(!F.qj()){if(D.K){D=e.O.Fv(D); -var X=Math.min(F.d,F.w)/8;if(X<1)X=1;D=e.O.QL(D,X)}var d=e.aJ.y_(M.zt,F);e.MD.t(d,D.I,F)}}var V=M.t; -e.O.t(D.I,V,D.I);return D};cF.a9r=function(D,M){Typr.U.pathToContext({crds:D.I,cmds:D.K},M)};cF.sG=function(D,M){if(!ep.hA())return; -var s=D.t6,F=s.ResourceDict.FontSet,X=s.ResourceDict.StyleSheetSet[0].StyleSheetData,d=s.EngineDict.StyleRun.RunLengthArray,V=s.EngineDict.StyleRun.RunArray,$=fU.NN(s),w=!0,q={},u=0; -for(var K=0;K128?P:-1);if(q[A]==null){q[A]=1;if(M.kW(F[B].Name,P)==null)w=!1}}u+=d[K]}return w}; -cF.ame=function(D,M,s){var F=new ex;for(var K=0;K>>3,X=D.TextOnPathTRange,d=D.Reversed,u=0,B=0; -if(d){var V=M.slice(0);for(var K=0;K>>3)+n)}u=l; -B=b}}var y=q.length,p=q[y-1],k=ep.b8(X[0],w),S=ep.b8(X[1]%F,w),Z=q[k%y],z=q[S%y];if(Z>=z)z+=p;return[$,w,q,p,Z,z]}; -ep.b8=function(D,M){var K=0;while(M[K]65535)d--;return d}for(var n=0;ny+r/2||Z==1&&D.x65535?2:1; -return k}}}}}};ep.prototype.XL=function(D){var M={S:new hk,o0:0},s=0;for(var F=0;Fd)d=V}if(d>1424)X=ep.a5h(F,M);return X};ep.K3=function(D,M,s,F,X,d,V){this.lb=[]; -this.L7=[];this.bs=new eo(0,0);this.W4=null;this.lb=null;this.uD=fU.a1P(D,F);var $=this.uD,B=0,A="",b=0,y=1,N=0; -if(F!=0){var w=$.SpaceBefore;if(w!=null)d[0]+=w}var q=D.EngineDict.ParagraphRun.RunLengthArray,u=q[F]; -for(var K=0;K0&&H[o-1].Gr==E)o--; -s[B+z+E].gO=Z.length+(R?o:H.length-o-1)}for(var E=0;E>>1;for(var K=0;K=gY)f9=K;else if(f9!=-1&&S2&&(f==6||!J))this.a9e(f9,hF,i,bV,r,gu);else{var bG=gu;for(var K=f9; -K=D;K--)if(s[K].oE||s[K].BL)d-=s[K].S.d;else break;if(F==1)for(var K=D;K=D;K--)if(s[K].oE||s[K].BL){if(s[K].oE){w--}}else break; -if(X==1)for(var K=D;K0){P.jF=-Math.PI/2;P.bs.x+=_*.83;P.bs.y=-_*.3+P.dO*l/2; -P.dO=_/l}var b=P.dO*l*A.scale.x;P.S=new hk(0,-A.lineHeight,b,A.lineHeight);var y=P.S.clone();y.Xf(P.bs); -if(A.uD.Tracking!=null)p=A.uD.Tracking*.001*_;if(A.uD.FauxBold==!0)p+=.027*_;$+=b+p;if(V==1&&A.kp==" ")y.d+=2*p; -else if(V==1&&A.kp!=null&&ep.qs(A.kp.charCodeAt(0)))y.d+=p;this.S=this.S.bk(y);this.mo=Math.max(this.mo,A.mo); -this.lineHeight=Math.max(this.lineHeight,A.lineHeight)}};ep.uT=0;ep.hA=function(){if(ep.uT==2)return!0; -if(ep.uT==1)return!1;ep.uT=1;function D(){fetch("code/external/fribidi.wasm").then(function(M){return M.arrayBuffer()}).then(function(M){return WebAssembly.instantiate(M)}).then(function(M){var s=M.instance.exports,F=s.memory,X=16,d=256,V=1,$=X|d,w=X|d|V; -ep.a5h=function(u,B){var r=u.length,P=r*4+4+r*4+r*4+r;bo.ON(s,P+r+1e7);var A=new Uint8Array(F.buffer),E=new Uint32Array(F.buffer),n=s.calloc(P,1),_=n+r*4,l=_+4,b=l+r*4,y=b+r*4; -E.set(u,n>>>2);E[_>>>2]=B==0?$:w;s.fribidi_get_bidi_types(n,r,l);s.fribidi_get_bracket_types(n,r,l,b); -s.fribidi_get_par_embedding_levels_ex(l,b,r,_,y);var p=A.slice(y,y+r);s.free(n);return p};ep.uT=2;var q=new W(U.E.Q,!0); -q.data={e:U.V.uW,R4:"add",Q1:bd.de,w9:null};gJ.nn.n(q)})}Typr.U.initHB("code/external/hb.wasm",D);return!1}; -function fU(){}fU.$n=function(D){return JSON.parse(JSON.stringify(D))};fU.vX=function(D,M){for(var s in M)D[s]=M[s]}; -fU.Zb=function(D,M,s){var F=fU.nS();if(s)fU.bZ(F,0,0,s);var X={t:new ex(1,0,0,1,Math.round(D),Math.round(M)),t6:F}; -X.eS=fU.NB();X.zt=e.aJ.U();X.JX=new hk;return X};fU.Z3=function(D){var M=["CharacterDirection",0];for(var K=0; -K=0?2:D.EngineDict.Rendered.Shapes.Children[0].ShapeType}; -fU.SE=function(D,M){var s=D.EngineDict.Rendered.Shapes.Children[0];s.ShapeType=M;var F=s.Cookie.Photoshop; -F.ShapeType=M;F.Base.ShapeType=M;if(M==0){delete F.BoxBounds;F.PointBase=[0,0]}if(M==1){delete F.PointBase; -F.BoxBounds=[0,0,1,1]}};fU.vM=function(D){return D.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds}; -fU.Kj=function(D,M){D.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds=M};fU.a0Z=function(D,M){return fU.aq9(D,fU.mM(D,M))}; -fU.mM=function(D,M){var s=D.EngineDict.StyleRun.RunLengthArray;return fU.xs(s,M).tt};fU.aq9=function(D,M){var s=D.ResourceDict.StyleSheetSet[0].StyleSheetData,F={}; -for(var X in s)F[X]=s[X];var d=D.EngineDict.StyleRun.RunArray[M].StyleSheet.StyleSheetData;fU.vX(F,d); -return F};fU.a1P=function(D,M){var s=D.ResourceDict.ParagraphSheetSet[0].Properties,F={};for(var X in s)F[X]=s[X]; -var d=D.EngineDict.ParagraphRun.RunArray[M].ParagraphSheet.Properties;fU.vX(F,d);var V=["StartIndent","EndIndent","FirstLineIndent"]; -for(var K=0;K<3;K++)if(F[V[K]]==null)F[V[K]]=0;return F};fU.Dq=function(D,M,s){if(s=="")return;var F=fU.NN(D); -fU.nq(D,F.substring(0,M)+s+F.substring(M,F.length));var X=D.EngineDict.StyleRun,d=X.RunLengthArray,V=fU.xs(d,M-1); -d[V.tt]+=s.length;var $=D.EngineDict.ParagraphRun,d=$.RunLengthArray,w=fU.xs(d,M),q=s.split("\n");if(q.length==1){d[w.tt]+=s.length; -return}d.splice(w.tt+1,0,d[w.tt]-(M-w.xb));$.RunArray.splice(w.tt+1,0,fU.$n($.RunArray[w.tt]));d[w.tt]-=d[w.tt+1]; -d[w.tt]+=q[0].length+1;for(var K=1;K"},{_0:"i40",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i41",_1:"s\xAB",_2:"s\xBB",_3:"s<",_4:"s>"},{_0:"i42",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i43",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i44",_1:"s\xAB",_2:"s\xBB",_3:"s\u2039",_4:"s\u203A"},{_0:"i45",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"}],_15:{_0:"sWinSoft"},_16:!1}; -var cc={};cc.$0=function(D){return cc.IB(D,cc.eW,0)};cc.a5j=function(D){return cc.jN(D,cc.eW)};cc.IB=function(D,M,s){var F; -if(typeof D=="string")return D;if(D instanceof Array){F=[];for(var K=0;K0)$.push("border-radius: "+Math.round(u)+"px")}else if(V){var B=V.t6;if(fU.So(B)==1){var q=fU.vM(B); -$.push("width: "+Math.round(q[2])+"px");$.push("height: "+Math.round(q[3])+"px")}CSS.dw($,fU.RR(B,0,0),V.t,!1,!1,w[0])}var r=[],P=d?d.dropShadowMulti.v:0; -for(var K=0;K>16&255,q:D>>8&255,P:D&255}};CSS.qM=function(D,M){return CSS.Yi(e.h.KO(D),M)}; -CSS.Yi=function(D,M){if(M==null)M=1;var s=Math.round(D.i),F=Math.round(D.q),X=Math.round(D.P),d=s<<16|F<<8|X; -return M==1?"#"+e.Gw(d):"rgba("+s+","+F+","+X+","+M+")"};CSS._n=function(D){var M=D.Grad.v;if(M.Clrs==null)return""; -var s=M.Clrs.v.slice(0),F=M.Trns.v.slice(0),X=D.Ofst.v,d=D.Type.v.GrdT=="Rdl"?1:0,V=(d==1?"radial":"linear")+"-gradient",$=d==0?Math.round(-D.Angl.v.val+90)+"deg":"circle at center",w=D.Rvrs.v; -if(w){s.reverse();F.reverse()}for(var K=0;K")return D>M; -else if(s=="==")return D==M;else if(s=="===")return D===M;else if(s=="<=")return D<=M;else if(s==">=")return D>=M; -else if(s=="!=")return D!=M;else if(s=="!==")return D!==M;else if(s=="<<")return D<>")return D>>M; -else console.log(s)};ga.r1=function(D,M){if(M=="-")return-D;else if(M=="!")return!D;else if(M=="~")return~D; -else if(M=="+")return D;else console.log(obj)};ga.VU=function(D,M,s){var F=D.type;if(F=="Identifier")return ga.ani(D.name,M,s); -else return ga.eval(D,M,s)};ga.ani=function(D,M,s){if(D=="undefined")return undefined;else if(s.hasOwnProperty(D))return s[D]; -else if(D=="app")return{hU:"Application"};else if(D=="$")return{hU:"$"};else if(ga.P6.a7K.indexOf(D)!=-1)return ga.P6.oK({hU:"Application"},D,M,s); -else if(window[D]&&!ga.PL[D])return window[D];else{s[D]=null;return null}};ga.P6={};ga.P6.aeW=function(D,M,s,F){var X; -if(D=="SolidColor")X={hU:D,H:[1,0,0,0]};if(D=="RGBColor")X={hU:D,H:[1,0,0,0]};if(D=="Window")X={hU:D,H:new a2(M[0],M[1],M[2])}; -if(D=="ExportOptionsSaveForWeb")X={hU:D,H:{G3:"png",Ln:100}};if(D=="JPEGSaveOptions")X={hU:D,H:{G3:"jpg",Ln:100}}; -if(D=="File")X={hU:D,H:M[0]};if(D=="ActionReference")X={hU:D,H:[]};if(D=="ActionDescriptor")X={hU:D,H:{}}; -if(D=="ActionList")X={hU:D,H:[]};if(D=="UnitValue")X={hU:D,H:M.length==0?0:parseFloat(M[0])};return X}; -ga.P6.a7K="activeDocument documents fonts preferences displayDialogs foregroundColor backgroundColor".split(" "); -ga.P6.abq=["charIDToTypeID","stringIDToTypeID","executeAction","executeActionGet","doAction"];ga.P6.oK=function(D,M,s,F){var X=s.QM,d=s.JO(); -if(!1){}else if(M=="typename"){if(D.hU=="Layer")return D.H.Pq()?"LayerSet":"ArtLayer";else return D.hU}else if(["Document","Layer"].indexOf(D.hU)!=-1&&["layers","artLayers","layerSets"].indexOf(M)!=-1){var V=d.root,$={hU:"Layers",Mn:M,H:[]}; -if(D.hU=="Layer")V=d.root.YG(d.N.indexOf(D.H));if(V.children==null)return null;for(var K=0;K>>16&255)/255,(u>>>8&255)/255,(u>>>0&255)/255]}}else if(M=="UI")return{hU:"UI"}; -else console.log(D,M)}else if(D.hU=="Document"){var d=D.H;if(!1){}else if(M=="activeLayer"){var w=d.N[d.D[0]]; -return{hU:"Layer",H:w}}else if(M=="resolution")return d.Gs;else if(M=="width")return d.d;else if(M=="height")return d.w; -else if(M=="name")return d.name;else if(M=="saved")return!d.tP();else if(M=="selection")return{hU:"Selection"}; -else if(M=="activeHistoryState")return{hU:"HistoryState",zl:d.Ah};else if(M=="source")return d.R2;else if(M=="historyStates"){var B=[]; -for(var K=0;K>>16&255)/255; -D.H[2]=(a>>>8&255)/255;D.H[3]=(a>>>0&255)/255}else console.log(D,M)}else if(D.hU=="ExportOptionsSaveForWeb"){if(M=="format")D.H.G3=s; -else if(M=="PNG8"){}else if(M=="quality")D.H.Ln=s;else throw"e"}else if(D.hU=="JPEGSaveOptions"){if(M=="quality")D.H.Ln=Math.round(100*s/12)}else console.log(D,M,s); -if(d.data!=null)F.n(d)};ga.P6.KG=function(D,M,s,F,X){var d=D.hU,V=null,$=new W(U.E.u,!0),w=new W(U.E.qZ,!0),q=new W(U.E.Q,!0),u=F.JO(),B=F.QR; -if(!1){}else if(d=="Application"){if(!1){}else if(M=="charIDToTypeID"){var r=s[0].trim(),P={slct:"select",Dlt:"delete",Mk:"make"}; -return P[r]?P[r]:r}else if(M=="stringIDToTypeID"){var A=s[0].trim(),P={red:"Rd",blue:"Bl",color:"Clr",RGBColor:"RGBC",type:"Type",using:"Usng"},E=P[A]; -return E==null?A:E}else if(M=="executeAction"){console.log(s);var n;if(s[1]){n=s[1].H;n.classID=s[0]}var _={setd:"set"},l=_[s[0]]; -if(l==null)l=s[0];var b=iA.SK[s[0]];if(b&&iA.Gq[b])l=iA.Gq[b];w.data={FX:l,k_:n}}else if(M=="executeActionGet"){return{hU:"ActionDescriptor",H:{classID:"null",null:{t:"obj ",v:s[0].H}}}}else if(M=="doAction"){q.data={e:U.V.Hq,Vv:[s[0],s[1]]}}else if(M=="open"){q.data={e:U.V.cF,Q1:{url:s[0]}}; -if(s[2]&&B.length!=0)q.data.Q1.G9=B.indexOf(u)}else if(M=="echoToOE"){q.data={e:U.V.AH,Q1:s[0]}}else console.log(M)}else if(d=="Document"){var u=D.H; -if(!1){}else if(M=="crop"){w.data=T.I4.k3(s[0])}else if(M=="trim"){var y=[];for(var K=0;K<4;K++)y.push(s[K+1]!=null?s[K+1]:!0); -w.data=T.I4.ct(s[0]!=null?s[0]:0,y)}else if(M=="suspendHistory"){var p=acorn.parse(s[1]);ga.eval(p,F,X)}else if(M=="save"){q.data={e:U.V.fK}}else if(M=="saveToOE"){q.data={e:U.V.fK,a3i:s}}else if(M=="rotateCanvas"){w.data=T.m.yT(!0,s[0])}else if(M=="resizeImage"||M=="resizeCanvas"){var k=s[0],S=s[1]; -if(typeof k!="number"){k=u.d*parseFloat(k.slice(0,k.length-1))/100;S=u.w*parseFloat(S.slice(0,S.length-1))/100}if(M=="resizeCanvas")w.data=T.I4.OB(Math.round(k),Math.round(S),s[2]); -else w.data=T.I4.xg(Math.round(k),Math.round(S),null,1)}else if(M=="paste"){q.data={e:U.V.jK,jr:s.length!=0&&s[0],LT:!0}}else if(M=="close"){q.data={e:U.V.ZW,zm:u}}else if(M=="exportDocument"||M=="saveAs"){var Z=X.__fs,z=s[0].H.replace(":","").replace("~/",""),j=M=="exportDocument"?s[2].H:s[1].H,R=bo.Kq(u,j.G3,null,null,[j.Ln],F.QM); -Z[z]=new Uint8Array(R)}else console.log(D,M,s)}else if(d=="Layer"){var a=D.H,m=u.N.indexOf(a);if(!1){}else if(M=="copy"){ga.P6.y$(u,F,0); -q.data={e:U.V.r$,VZ:s[0],jJ:m,LT:!0};F.n(q);delete q.data;ga.P6.y$(u,F,1)}else if(M=="clear"){ga.P6.y$(u,F,0); -w.data={FX:"delete"};F.n(w);delete w.data;ga.P6.y$(u,F,1)}else if(M=="duplicate"){if(s.length==0){$.data={e:g.mh,c:m}; -$.G=T.HG;F.n($);$.data=null;V={hU:"Layer",H:u.N[u.D[0]]}}else if(s[0].hU=="Document"){$.data={e:g.ma,N:u.B9(m),rZ:u,Om:s[0].H}; -$.G=T.HG}}else if(M=="merge"||M=="remove"){$.data={e:M=="merge"?g.Td:g.sa,c:m};$.G=T.HG;if(M!="remove")V={hU:"Layer",H:u.N[u.D[0]]}}else if(M=="move"){$.data={e:g.ie,source:m,target:u.N.indexOf(s[0].H),M3:s[1]!=3?.6:.3}; -$.G=T.HG}else if(M=="rasterize"){w.data={FX:"rasterizeLayer",k_:{classID:"rasterizeLayer",null:iy.ko("Lyr",!0)}}}else if(M=="rotate"){$.data={e:"rot",nc:[2,5],H:-s[0]*Math.PI/180,_G:s[1],c:m}; -$.G=T.I9}else if(M=="resize"){$.data={e:"scl",nc:[2,4],H:new eo(s[0]/100,s[1]/100),_G:s[2],c:m};$.G=T.I9}else if(M=="translate"){var G=ga.P6.ZO(s); -$.data={e:"trsl",c:m,a73:G[0],ahi:G[1]};$.G=T.Jb}else if(M=="link"){$.data={e:g.Pu,agg:[m,u.N.indexOf(s[0].H)]}; -$.G=T.HG}else if(M=="invert"){$.G=T._2;$.data={e:"start",tg:"nvrt"}}else if(M.startsWith("apply")&&fR.hq[M.slice(5)]){var G=ga.P6.ZO(s),L=fR.hq[M.slice(5)]; -w.data={FX:fR.Gq[L]};var n=fR.Cr(L);if(n){fR.hF["g"+L](n,G);w.data.k_=n}}else console.log(D,M,s)}else if(d=="Documents"){if(M=="getByName"){for(var K=0; -K","","",""],s=du.xM; -for(var F in s){var X=D[F],d=s[F][2],V="Seq",$="";if(X==null||d==null)continue;if(d=="dc:title"||d=="dc:description"){V="Alt"; -$=" xml:lang=\"x-default\""}if(d=="dc:subject")V="Bag";M.push("\t<"+d+">");var w=d=="dc:subject"?X.split(";").join(",").split(","):[X]; -for(var K=0;K"+w[K].trim()+"");M.push("\t")}M.push("","","",""); -return M.join("\n")};du.WH=function(D){var M=[];for(var K=0;K/g,">")}; -U.nD=function(D,M){D.di(dY.get([12,41]).charAt(0)+":");M.di(dY.get([12,42]).charAt(0)+":")};U.p=function(D,M){var s=document.createElement(D); -if(M!=null)s.setAttribute("class",M);return s};U.n2=function(D){while(D.firstChild)D.removeChild(D.firstChild)}; -U.fN=function(D,M){var s=D.getAttribute("class");if(s==null)s="";s=s.split(" ");if(s.indexOf(M)==-1)s.push(M); -D.setAttribute("class",s.join(" "))};U.PF=function(D,M){var s=D.getAttribute("class");if(s==null)return; -s=s.split(" ");if(s.indexOf(M)!=-1)s.splice(s.indexOf(M),1);D.setAttribute("class",s.join(" "))};U.vt=function(D){while(!0){if(D==document)return!0; -if(D==null)return!1;D=D.parentNode}};U.I3=function(D){D.appendChild(U.p("br"))};U.ba=function(D){D.appendChild(U.p("hr"))}; -U.tc=document;U.pC=function(D){var M=0;for(var K=0;K1e3){s=M==0?100:M*10}else{if(D%10!=0)D*=10; -s=(D+M)%100}U.Ok=Date.now();return s};U.EC=function(D,M){if(window.PointerEvent){D.addEventListener("pointerdown",M,!1); -return}D.addEventListener("mousedown",M,!1);D.addEventListener("touchstart",M,!1)};U.VW=function(D,M){if(window.PointerEvent){D.addEventListener("pointermove",M,!1); -return}D.addEventListener("mousemove",M,!1);D.addEventListener("touchmove",M,!1)};U.We=function(D,M){if(window.PointerEvent){D.addEventListener("pointerup",M,!1); -return}D.addEventListener("mouseup",M,!1);D.addEventListener("touchend",M,!1)};U.aeZ=function(D,M){if(window.PointerEvent){D.removeEventListener("pointerdown",M,!1); -return}D.removeEventListener("mousedown",M,!1);D.removeEventListener("touchstart",M,!1)};U.kT=function(D,M){if(window.PointerEvent){D.removeEventListener("pointermove",M,!1); -return}D.removeEventListener("mousemove",M,!1);D.removeEventListener("touchmove",M,!1)};U.wH=function(D,M){if(window.PointerEvent){D.removeEventListener("pointerup",M,!1); -return}D.removeEventListener("mouseup",M,!1);D.removeEventListener("touchend",M,!1)};U.kk=function(D){D.addEventListener("touchstart",U._L,!1); -D.addEventListener("touchmove",U._L,!1);D.addEventListener("touchend",U._L,!1);D.addEventListener("gesturestart",U._L,!1); -D.addEventListener("gesturechange",U._L,!1);D.addEventListener("gestureend",U._L,!1)};U.ts=function(D,M,s,F){var X=U.F(); -D.width=Math.floor(M*X);D.height=Math.floor(s*X);D.style.width=D.width/X+"px";D.style.height=D.height/X+"px"; -if(F)F.setTransform(X,0,0,X,0,0)};U.f_=function(D,M,s){D.setAttribute("style","width:"+M/U.F()+"px; height:"+s/U.F()+"px")}; -U.hK=function(D,M){if(M==null)M=D.currentTarget;var s=M.getBoundingClientRect();if(D.touches)D=D.touches.item(0); -return{x:D.clientX-s.left,y:D.clientY-s.top}};U.F=function(D){return window.devicePixelRatio||1};U._L=function(D){D.preventDefault()}; -U.al=function(D){D.stopPropagation();D.preventDefault()};U.G8=function(D,M,s){s=s?s:"";if(PIMG["__"+D]==null)s+=" gsicon"; -return"\""+(M?M:"")+"\""};U.hL=function(D,M,s,F){var X=D.dataTransfer.getData("text/uri-list"); -if(X!=null&&X.startsWith("http")){var d=new W(U.E.Q,!0);d.data={e:U.V.cF,Q1:{url:X,LO:!0,G9:s,KX:F}}; -M.n(d)}if(D.dataTransfer.files.length==0)return;if(window.showOpenFilePicker){var V=[],$=D.dataTransfer.items.length,w=D.dataTransfer.files; -for(var q of D.dataTransfer.items)q.getAsFileSystemHandle().then(function(u){V.push(u);if(V.length==$){var d=new W(U.E.Q,!0); -d.data={e:U.V.x4,data:w,G9:s,KX:F,abO:V};M.n(d)}})}else{var d=new W(U.E.Q,!0);d.data={e:U.V.x4,data:D.dataTransfer.files,G9:s,KX:F}; -M.n(d)}};var W=function(D,M){if(!M)M=!1;this.type=D;this.target=null;this.currentTarget=null;this.bubbles=M; -this.G=null;this.rb=!1};U.E={u:"0",Q:"1",qZ:"1.5",M:"2",OF:"3",h0:"4",uw:"5"};U.V={qY:"10",Rr:"11",CS:"12",_6:"13",tp:"14",p5:"14.1",cF:"15",X7:"16",vj:"17",iW:"18",fK:"19",uz:"19.5",JF:"20",zV:"21",r$:"22",jK:"23",Su:"24",Aq:"25",y4:"26",z5:"27",EO:"28",Ms:"29",x4:"30",N8:"31",pK:"32",Sy:"33",TS:"34",uW:"35",_A:"35.5",OI:"37",Iu:"38",fw:"39",Gl:"40",p8:"41",AH:"41.5",Wq:"42",KE:"43",RV:"43.5",ZW:"44",bG:"45",TY:"46",YW:"47",tK:"48",Hq:"49",f4:"50",ab:"51"}; -if(U.pC(27))U.tc=window;else U.tc=U.abZ;U.tc._cwY=U.tc[U.kO("clh]]c[",3)];var ak={};ak.Zp=function(K){var D=ak.hX[K],M=document.documentElement.style,F=1; -M.setProperty("--base","#"+e.Gw(D["--base"]));M.setProperty("--bg-panel","#"+e.Gw(D["--bg-panel"])); -M.setProperty("--bg-canvas","#"+e.Gw(D["--bg-canvas"]));M.setProperty("--bg-input","#"+e.Gw(D["--bg-input"])); -M.setProperty("--bg-bbtn","#"+e.Gw(D["--bg-bbtn"]));M.setProperty("--bg-bbtnOver","#"+e.Gw(D["--bg-bbtnOver"])); -M.setProperty("--brdr","#"+e.Gw(D["--brdr"]));M.setProperty("--text-color","#"+e.Gw(D["--text-color"])); -M.setProperty("--brdrLgt","rgba(255,255,255,"+D["--brdrLgt"]+")");M.setProperty("--brdrDrk","rgba( 0, 0, 0,"+D["--brdrDrk"]+")"); -M.setProperty("--alphaDark",""+D["--alphaDark"]);M.setProperty("--gs-invert",""+D["--gs-invert"]);var s=D["--sh-clr"]; -M.setProperty("--sh-clr","rgba("+(s>>16)+","+(s>>8&255)+","+(s&255)+", 0.45)");M.setProperty("--sh-dy",""+D["--sh-dy"]+"px"); -if(11){this.TT("multimove")}if(this.tf)return; -var s=new W("mouse",!0);s.action="move";this.Zi(D,s);this.n(s)};eJ.prototype.h5=function(D){if(eJ.kD(D))return; -var M=this.Yt,s=this.$Q(D);M.splice(s,1);if(M.length==0){var F=D.button!=null&&D.button>0?"rup":"up",X=new W("mouse",!0); -X.action=F;this.Zi(D,X);this.n(X);U.kT(window,this.Rc);U.wH(window,this.acB);U.VW(this.No,this.Rc);this.tf=!1}}; -eJ.prototype.qb=function(D){D.preventDefault();if(D.deltaX==0&&D.deltaY==0)return;var M=new W("mouse",!0); -M.action="scroll";M.XA=D.ctrlKey;this.Zi(D,M);this.n(M)};eJ.prototype.agE=function(D){U.al(D);var M=D.sourceCapabilities; -if(M)M=M.firesTouchEvents;if(M){var s=new W("mouse",!0);this.Zi(D,s);s.action="rdown";this.n(s);s.action="rup"; -this.n(s)}};eJ.prototype.TT=function(D){var M=this.Yt,s=U.F(),F=[];for(var K=0;K=0)D=Math.max(this.rQ,D);if(this.XC==0)D=Math.round(D);var F=this.Ac;this.Tt.value=(this.XC!=0?D.toFixed(this.XC):D)+(this.a2a&&F?(F.toLowerCase()==F.toUpperCase()?"":" ")+F:""); -var X=400*Math.pow((D-this.rQ)/(this.nF-this.rQ),1/2.7);this.BY.value=this.JN?X:D;if(M)this.WF()};e8.prototype.v=function(){var D=parseFloat(this.Tt.value); -if(isNaN(D))D=0;return D};e8.prototype.vS=function(){return this.Ac};e8.prototype.m4=function(D){var M=0; -if(D.currentTarget==this.Tt){var s=D.target.value,F=0;while(F50&&D>10)D=Math.round(D); -return D};e8.prototype.AV=function(D){var M=0;if(hn.Fe(D.code,hn.Ct))M=1;if(hn.Fe(D.code,hn.g_))M=-1; -if(M!=0)this.Vh(M,D.shiftKey)};e8.prototype.qb=function(D){this.Vh(D.deltaY>0?-1:1,D.shiftKey)};e8.prototype.Vh=function(D,M){var s=this.v(),F=this.XC,X=D*(F==null||F==0||s>5?1:.1); -if(M)X*=10;var d=s+X;if(!this.JN&&this.nF!=this.rQ)d=Math.min(this.nF,d);this.f(d);this.WF()};e8.prototype.a3V=function(D){var M=Date.now()-this.Yk; -this.Yk=Date.now();if(M>300)return;var s=(this.nF+this.rQ)/2;if(this.rQ<0&&this.nF>0)s=0;else if(this.rQ<1&&this.nF>1&&this.nF<10)s=1; -this.f(s);this.WF()};e8.prototype.acx=function(D){U.VW(document,this.aoQ);U.We(document,this.ajx);this.$Z=U.hK(D,document.body).x; -this.M0=this.v()};e8.prototype.akc=function(D){U.al(D);var M=this.rQ==this.nF,s=U.hK(D,document.body).x,F=(s-this.$Z)*(M?1:1/120*(this.nF-this.rQ)),X=this.M0+F; -if(M)X=Math.round(X);if(!M){if(!0){X=Math.max(this.rQ,X);if(X==this.rQ){this.$Z=s;this.M0=this.rQ}}if(!this.JN){X=Math.min(this.nF,X); -if(X==this.nF){this.$Z=s;this.M0=this.nF}}X=this.fa(X)}this.xw=!0;this.f(X);this.WF()};e8.prototype.alT=function(D){if(!this.xw)this.Tt.focus(); -this.xw=!1;U.kT(document,this.aoQ);U.wH(document,this.ajx)};e8.prototype.vH=function(){this.Tt.select(); -this.Tt.focus()};function gi(D,M){ct.call(this);this.Ng=[];this.rK=-1;this.anU=D;this.Cx=M;this.Gj=0; -this.Nn=null;this.wA=new eo(0,0);if(M!=null){this.Tr=new hb([{name:[6,37]},{name:[5,4]}]);this.Tr.parent=this; -this.Tr.l("select",this.GA,this)}this.k=U.p("div","imageset scrollable");this.k.addEventListener("contextmenu",U._L,!1)}gi.prototype=new ct; -gi.prototype._=function(){if(this.Tr)this.Tr._()};gi.prototype.GA=function(D){var K=this.Tr.zs()[0],M=new W(U.E.Q,!0),s={e:U.V.uW,Q1:this.Cx,yA:[this.rK]}; -if(K==0){var F=this.Nn[1][this.rK];s.R4="rnm";M.data={e:U.V.Aq,VM:"namewindow",NT:F,b0:{o:U.E.Q,r:s}}}else{M.data=s; -s.R4="del"}this.n(M)};gi.prototype.amk=function(){return this.Gj};gi.prototype.n$=function(D){this.Gj=D; -if(this.Nn)this.z9()};gi.prototype.k8=function(D,M,s,F){this.Nn=[D,M,s,F];this.z9()};gi.prototype.z9=function(){var D=this.Nn,M=D[0],s=D[1],F=D[2],X=D[3]; -this.Ng=[];this.k.innerHTML="";var d=this.Bv.bind(this),V=this.Gj;if(V==0)U.fN(this.k,"imageset");else U.PF(this.k,"imageset"); -for(var K=0;K0)){d=V;X=K}}if(X==-1)return; -this.a7Z=X;this.Bw=D.altKey||M[(X>>>1)*2]!=M[(X>>>1)*2+1];U.VW(window,this.Ke);U.We(window,this.kQ)}; -ir.prototype.it=function(D){var M=this.fW,s=this.a7Z,F=(s>>>1)*2,X=F+1,d=U.hK(D,this.Bb),V=Math.round(Math.max(0,Math.min(255,d.x-8))); -M[s]=V;if(this.Bw&&M[F]>=M[X])this.Bw=!1;if(!this.Bw)M[F]=M[X]=V;this.z9();this.n(new W(U.E.M,!1))}; -ir.prototype.h5=function(D){U.kT(window,this.Ke);U.wH(window,this.kQ)};ir.prototype.z9=function(){var D=this.Bb; -U.ts(D,255+16,16);var M=D.getContext("2d"),s=D.width,F=D.height,X=Math.round(255*U.F()),d=Math.round(8*U.F()); -M.translate(d,0);var V=M.createLinearGradient(0,0,X,0);V.addColorStop(0,"black");V.addColorStop(1,"#"+["ffffff","ff0000","00ff00","0000ff"][this.LN]); -M.fillStyle=V;M.fillRect(0,0,X,d);var $=this.a9u,w=dY.get(this.a68)+":";$[0].textContent=w;for(var K=0; -K<4;K++){var q=this.fW[K];$[1+K].textContent=q;var u=Math.round(q*U.F());M.beginPath();M.moveTo(u,d); -M.lineTo(u,d+d);M.lineTo(u+((K&1)==0?-1:1)*d,d+d);M.closePath();M.fillStyle="#cccccc";M.fill();M.strokeStyle="black"; -M.stroke()}};function fd(D,M){ct.call(this);this.yI=0;this.alt=0;var s="ai"+U.dh();this.k=U.p("span","fitem angleinput"); -if(D){this.xS=U.p("label","flabel");this.w_=D;this.k.appendChild(this.xS);this.xS.setAttribute("for",s)}this.tN=20; -this.ZQ=U.p("canvas","gsicon");this.DO=this.ZQ.getContext("2d");U.ts(this.ZQ,this.tN*2+1,this.tN*2+1,this.DO); -this.k.appendChild(this.ZQ);U.EC(this.ZQ,this.nT.bind(this));this.Ds=this.T6.bind(this);this.Fl=this.bh.bind(this); -var F=this.m4.bind(this),X=U.p("div");X.setAttribute("style","display:inline-block; vertical-align:middle;"); -this.k.appendChild(X);this.iF=[];for(var K=0;K<2;K++){var d=U.p("input");this.iF.push(d);d.setAttribute("type","text"); -if(K==0)d.setAttribute("id",s);d.addEventListener("change",F,!1);var V=U.p("span");V.textContent="\xB0"; -if(K==0||M){X.appendChild(d);X.appendChild(V);U.I3(X)}}this.f(this.yI,this.alt)}fd.prototype=new ct; -fd.prototype._=function(){this.xS.textContent=dY.get(this.w_)+":"};fd.prototype.di=function(D){this.xS.textContent=D}; -fd.prototype.v=function(){return{yI:this.yI,alt:this.alt}};fd.prototype.f=function(D,M,s){if(D!=null)this.yI=D; -if(M!=null)this.alt=M;this.iF[0].value=this.yI;this.iF[1].value=this.alt;D=Math.PI*this.yI/180;M=.9*this.tN*(90-this.alt)/90; -var F=this.tN+.5,X=this.DO;X.clearRect(0,0,100,100);X.strokeStyle="#000000";X.beginPath();X.arc(F,F,.9*this.tN,0,2*Math.PI); -X.moveTo(F,F);X.lineTo(F+Math.cos(D)*this.tN*.9,F-Math.sin(D)*this.tN*.9);X.stroke();X.strokeStyle="#ff0000"; -X.beginPath();X.moveTo(F+Math.cos(D)*M-3,F-Math.sin(D)*M);X.lineTo(F+Math.cos(D)*M+3,F-Math.sin(D)*M); -X.moveTo(F+Math.cos(D)*M,F-Math.sin(D)*M-3);X.lineTo(F+Math.cos(D)*M,F-Math.sin(D)*M+3);X.stroke();if(s)this.m4()}; -fd.prototype.m4=function(D){var M=parseInt(this.iF[0].value),s=parseInt(this.iF[1].value);M=M%360;s=s%360; -this.f(M,s);this.n(new W(U.E.M,!1))};fd.prototype.nT=function(D){U.VW(window,this.Ds);U.We(window,this.Fl); -this.T6(D)};fd.prototype.T6=function(D){var M=U.hK(D,this.ZQ),s=M.x-this.tN,F=M.y-this.tN,X=180*Math.atan2(-F,s)/Math.PI,d=90-90*Math.min(1,Math.sqrt(s*s+F*F)/(.9*this.tN)); -this.f(Math.round(X),Math.round(d));this.n(new W(U.E.M,!1))};fd.prototype.bh=function(D){this.n(new W(U.E.M,!1)); -U.kT(window,this.Ds);U.wH(window,this.Fl)};function hY(D,M){ct.call(this);this.fW=0;this.qW=M;this.k=U.p("span","fitem angleinput"); -if(D){this.xS=U.p("label","flabel");this.w_=D;this.k.appendChild(this.xS)}this.ZQ=U.p("canvas","gsicon"); -this.DO=this.ZQ.getContext("2d");U.ts(this.ZQ,M,M);this.k.appendChild(this.ZQ);U.EC(this.ZQ,this.nT.bind(this)); -this.Ds=this.T6.bind(this);this.Fl=this.bh.bind(this);this.f(0)}hY.prototype=new ct;hY.prototype._=function(){if(this.w_)this.xS.textContent=dY.get(this.w_)+":"}; -hY.prototype.di=function(D){this.xS.textContent=D};hY.prototype.v=function(){return this.fW};hY.prototype.f=function(D){this.fW=D; -var M=this.ZQ.width,s=Math.floor(D/3),F=D-3*s,X=(F+.5)*M/3,d=(s+.5)*M/3,V=this.DO,$=[.5,Math.round(M/3)+.5,Math.round(2*M/3)+.5,M-.5]; -V.clearRect(0,0,M,M);var w=this.qW<30;V.setLineDash([]);V.strokeStyle=w?"rgba(0,0,0,0.5)":"#000000"; -V.beginPath();for(var K=0;K<4;K++){var q=$[K];V.moveTo(q,0);V.lineTo(q,M);V.moveTo(0,q);V.lineTo(M,q)}V.stroke(); -if(D==9)return;if(!w){V.setLineDash([1,2]);var u=M*.53,B=Math.max(0,Math.min(M-u,X-u/2)),r=Math.max(0,Math.min(M-u,d-u/2)); -V.strokeRect(Math.round(B)+.5,Math.round(r)+.5,Math.round(u),Math.round(u))}V.fillStyle="#000000";V.beginPath(); -V.arc(X,d,M/8,0,Math.PI*2);V.fill()};hY.prototype.nT=function(D){U.VW(window,this.Ds);U.We(window,this.Fl); -this.T6(D)};hY.prototype.T6=function(D){var M=U.hK(D,this.ZQ),s=Math.max(0,Math.min(2,Math.floor(M.x/(this.qW/3)))),F=Math.max(0,Math.min(2,Math.floor(M.y/(this.qW/3)))); -this.f(F*3+s)};hY.prototype.bh=function(D){this.n(new W(U.E.M,!1));U.kT(window,this.Ds);U.wH(window,this.Fl)}; -function aJ(D,M,s,F){ct.call(this);this.k=U.p("button","fitem"+(M?" spread":"")+(F?" bbtn":""));this.w_=D; -this.XW=s;this._();this.k.addEventListener("click",this.Bv.bind(this),!1)}aJ.prototype=new ct;aJ.prototype._=function(){var D=this.k,M=this.w_,s=this.XW,F=dY.get(M); -if(F.startsWith(">16&255,q:D>>8&255,P:D&255};this.Nk()};c_.prototype.f=function(D){this.FF=e.h.KO(D); -this.Nk()};c_.prototype.Nk=function(){var D=this.FF,M=D.i,s=D.q,F=D.P,X=M<<16|s<<8|F;this.k.setAttribute("style","background-color:#"+e.Gw(X))}; -function df(){ct.call(this);this.hj=!1;this.j7=20;this.a6m=10;this.a6=0;this.hj=!1;this.Ks={i:255,q:0,P:0}; -this.w2={i:0,q:0,P:0};this.k=U.p("canvas");this.z9();U.kk(this.k);U.EC(this.k,this.e2.bind(this))}df.prototype=new ct; -df.prototype.amQ=function(D){if(this.hj==D)return;this.hj=D;this.z9()};df.prototype._=function(){};df.prototype.amI=function(D,M){function s(F){return{i:F>>16&255,q:F>>8&255,P:F&255}}if(D!=null)this.Ks=s(D); -if(M!=null)this.w2=s(M);this.z9()};df.prototype.e2=function(D){var M=U.hK(D,this.k),s=M.x*U.F(),F=M.y*U.F(),X=this.j7,d=this.a6m,V=0; -if(sX-d&&F>X-d){V=1}else if(s1)$.data={e:U.V.uW,Q1:bd.s7,Si:V}; -else{this.a6=V;var w=V==0?this.Ks:this.w2;$.data={e:U.V.Aq,VM:"colorpicker",qi:w.i<<16|w.q<<8|w.P,yC:this.hI.bind(this)}}this.n($)}; -df.prototype.hI=function(D){var M=new W(U.E.Q,!0);M.data={e:U.V.uW,Q1:bd.s7,Si:this.a6,H:D};this.n(M)}; -df.prototype.z9=function(){var D=this.k,M=D.getContext("2d"),s=U.F(),X="#aaaaaa",d=.62;U.ts(D,34,34); -D.setAttribute("style",D.getAttribute("style")+";cursor:pointer");var F=this.j7=D.width,V=this.a6m=Math.round(F*d); -function $(P,A){var E=P.i,n=P.q,_=P.P;if(A)E=n=_=Math.round(e.jq(E,n,_));var l=E<<16|n<<8|_;return"#"+e.Gw(l)}function w(P,A,V,E,n){M.fillStyle=n?n:"black"; -M.fillRect(P,A,V,V);M.fillStyle=E;M.fillRect(P+1,A+1,V-2,V-2)}w(F-V,F-V,V,$(this.w2,this.hj));w(0,0,V,$(this.Ks,this.hj)); -var q=F-V,u=Math.round(q*d);w(F-u,q-u,u,"white",X);w(F-q,0,u,"black",X);M.save();M.fillStyle=X;M.translate(0,F); -M.rotate(-Math.PI/2);q=F-V;var B=Math.round(q*.28),r=Math.round(q*.25);for(var K=0;K<2;K++){M.fillRect(B,B,q-B,1); -M.beginPath();M.moveTo(q-r,B+.5-r);M.lineTo(q,B+.5);M.lineTo(q-r,B+.5+r);M.closePath();M.fill();M.transform(0,1,1,0,0,0)}M.restore()}; -function gB(D){ha.call(this,D,!1,"brushbutton nopadding",16.6,10,bd.oH,!0);this.RD=new ag([12,14,0],1,1e3," px",0,!0); -this.RD.l(U.E.M,this.LV,this);this.K9.appendChild(this.RD.k);this.B1=new ag([12,17],0,100,"%");this.B1.l(U.E.M,this.LV,this); -this.K9.appendChild(this.B1.k)}gB.prototype=new ha;gB.prototype.q3=function(){var D=["pencil","trees"]; -for(var K=0;K0&&F.UF==null)F.UF=JSON.parse(JSON.stringify(aX.tI[s-1]));if(this.ry)this.f(this.n0,F,this.ry)}if(M==this.pw)this.VQ.cM(M.v()); -this.n(new W(U.E.M,!1))};a1.prototype.Lb=function(D){var M=this.ZQ.getBoundingClientRect(),s=new W(U.E.Q,!0); -s.data={e:U.V.Rr,JI:this.mN,x:M.left,y:M.top+M.height+4};this.n(s);this.pw.f(this.VQ.E5())};a1.prototype.f=function(D,M,s){this.ry=s; -this.n0=D;var F=[[13,1,0],[13,0],[12,37],[12,62]],X=this.a6x,d=this.a7G,V=!1,u;for(var K=0;K<4;K++){var $={Ij:K,UF:s[K]},w=a1.f0($); -if(d[K]==w)continue;V=!0;var q=a1.A9(null,$,this.kL,this.n0,22,22,!1);X[K]=""; -d[K]=w}if(V)this.CB.m7(X,F);this.CB.f(M.Ij);var w=a1.f0(M);if(w!=this.ajd)a1.A9(this.DO,M,this.kL,this.n0,30,23,!0); -this.ajd=w;var B=M.Ij;if(B==0){u=this.a8b}if(B==1){this.VQ.f(M.UF.Clr.v);u=this.td}if(B==2){this.Hf.update(D,M.UF); -u=this.Tj}if(B==3){this.st.update(D,M.UF);u=this.fA}if(u!=this.GU){if(this.GU!=null){this.mN.k.removeChild(this.GU)}this.mN.k.appendChild(u); -this.GU=u}};a1.prototype.v=function(){var D={Ij:this.CB.v()};if(D.Ij==1){D.UF=JSON.parse(JSON.stringify(aX.tI[0])); -D.UF.Clr.v=this.VQ.v()}if(D.Ij==2){D.UF=this.Hf.v()}if(D.Ij==3){D.UF=this.st.v()}return D};a1.f0=function(D){var M=D.Ij,s=D.UF,F="empty"; -if(M==1){F=e.h.KO(s.Clr.v);F=F.i+","+F.q+","+F.P}if(M==2)F=JSON.stringify(s.Grad.v);if(M==3)F=s.Ptrn.v.Idnt.v; -return F};a1.A9=function(D,M,s,F,X,d,V){if(D==null)D=a1.DO;var $=Math.floor(X*U.F()),w=Math.floor(d*U.F()),q=D.canvas,u; -q.width=$;q.height=w;U.f_(q,$,w);var B=M.Ij;if(B==0){D.fillStyle="#ffffff";D.fillRect(0,0,$,w);D.strokeStyle="#ff0000"; -D.lineWidth=2;D.moveTo(0,0);D.lineTo($,w);D.moveTo(0,w);D.lineTo($,0);D.stroke()}if(B==1){var r=M.UF.Clr.v; -r=e.h.KO(r);D.fillStyle="#"+e.Gw(r.i<<16|r.q<<8|r.P);D.fillRect(0,0,$,w)}if(B==2){T.sj.s5(M.UF.Grad.v,$,w,0,s.Yr,s.hE,q)}if(B==3){var P=M.UF.Ptrn.v,A; -if(F!=null)A=dm.Ni(P,F.add.Patt);if(A==null)A=dm.Ni(P,s.iM);iE.s5(A,$,w,q)}if(V){D.beginPath();D.strokeStyle="#000000"; -D.fillStyle="#ffffff";D.lineWidth=2;var E=$*.7,n=Math.floor(w*.7),_=7*U.F();D.moveTo(E,n);D.lineTo(E+_,n); -D.lineTo(E+_/2,n+_/2);D.closePath();D.stroke();D.fill()}if(D==a1.DO)return q.toDataURL()};a1.DO=U.p("canvas").getContext("2d"); -function iE(D){ha.call(this,D,!1,"patternbutton",18,10,bd.H2);this.Yy=null}iE.prototype=new ha;iE.prototype.ja=function(D){var M=this.OK[this.xd.v()]; -this.fp={classID:"Ptrn",Nm:{t:"TEXT",v:M.name},Idnt:{t:"TEXT",v:M.id}};this.n(new W(U.E.M));this.mr()}; -iE.Ky=!1;iE.prototype.YD=function(){if(!this.tu)return;var D=this.OK;if(D==null||!iE.Ky){var M=new W(U.E.Q,!0); -M.data={e:U.V.cF,Q1:{url:"rsrc/basic/basic.pat"}};this.n(M);iE.Ky=!0;return}var s=Math.floor(34*U.F()),F=Math.floor(34*U.F()),X=[],d=[]; -for(var K=0;K255||F<0||F>255; -if(s<=$[w-1].v.Hrzn.v||s>=$[w+1].v.Hrzn.v)r=!0;if(!r&&!q)d.splice(w,0,V);if(r&&q)d.splice(w,1)}if(!this.a7L)V.v.Hrzn.v=Math.round(B); -V.v.Vrtc.v=Math.max(0,Math.min(255,Math.round(F)))}else{s=Math.round(s);F=Math.round(F);s=Math.max(0,Math.min(255,s)); -F=Math.max(0,Math.min(255,F));var P=this.cc.x,A=s,E=this.cc.y,n=F;if(s.002){this.aoG(s.data,256,256,M.WQ); -this.ajA=M.WQ}this.DO.putImageData(s,0,0);this.DO.strokeStyle="#000000";this.DO.beginPath();this.DO.arc(this.Ad.x+1,this.Ad.y+1,5,0,2*Math.PI); -this.DO.stroke();this.DO.strokeStyle="#ffffff";this.DO.beginPath();this.DO.arc(this.Ad.x,this.Ad.y,5,0,2*Math.PI); -this.DO.stroke();var s=this.aol;this.Lm.putImageData(s,0,0);this.Lm.strokeStyle="#ffffff";this.Lm.beginPath(); -this.Lm.moveTo(0,this.Hc.y);this.Lm.lineTo(20,this.Hc.y);this.Lm.lineWidth=2;this.Lm.stroke()};fz.prototype.aoG=function(D,M,s,F){var X=1/M,d=1/s; -for(var V=0;V0)this.k.removeChild(this.H3.pop().k); -this.Lw=D;for(var K=0;K>>1;X.width=X.height=F;var $=[]; -for(var K=0;K");else $.push("")}aP.call(this,D,$,s)}bW.prototype=new aP; -bW.g9=U.p("canvas");function hd(D,M,s,F){ct.call(this);if(!M)return;if(s==null)s=!1;this.rK=0;this.ads=s; -this.w_=D;this.se=null;this.anq=F;this.agH=[];var X="dd"+U.dh();this.k=U.p("span","fitem ddmenu");if(D&&!s){this.xS=U.p("label","flabel"); -this.k.appendChild(this.xS);this.xS.setAttribute("for",X)}this.ij=U.p("select","bbtn");this.ij.setAttribute("id",X); -this.k.appendChild(this.ij);this.ij.addEventListener("change",this.m4.bind(this),!1);this.H3=[];this.Lw=null; -this.m7(M,F);this._()}hd.prototype=new ct;hd.prototype.di=function(D){this.w_=D;this._()};hd.prototype._=function(){if(this.w_!=null){var D=dY.get(this.w_); -if(this.ads)this.ij.setAttribute("title",D);else this.xS.textContent=D+":"}if(this.Lw)this.m7(this.Lw,this.anq); -this.f(this.rK)};hd.prototype.v=function(){return this.rK};hd.prototype.m7=function(D,M){U.n2(this.ij); -var s=[],F=0;if(M){s.push(M[0]);for(var K=1;K"); -this.il=new aJ("");this.XK=new aJ(""); -this.Zj=new aJ("");this.GJ=new aJ(""); -this.aB=new aJ("");this.cx=new aJ(""); -this.CZ=new aJ("");var D=[this.$w,this.il,this.XK,this.Zj,this.GJ,this.aB,this.cx,this.CZ]; -for(var K=0;K"); -this.Fj=new aJ("");this.AM=new aJ(""); -this.akv=new aJ("");this.a3X=new aJ(""); -this.aqs=new aJ("");this.aiu=new aJ(""); -this.WW=[this.p1,this.Fj,this.AM,this.akv,this.a3X,this.aqs,this.aiu];for(var K=0;K "); -this.Py=new dM(s[0],-20,20,"px");this.Py.l(U.E.M,this.UC,this);this.Py.parent=this;this.D6=new dM(s[1],-20,20,"px"); -this.D6.l(U.E.M,this.UC,this);this.D6.parent=this;this.eM=new dM(s[2],-20,20,"px");this.eM.l(U.E.M,this.UC,this); -this.eM.parent=this;this.x8=new dM(s[3],-20,20,"px");this.x8.l(U.E.M,this.UC,this);this.x8.parent=this; -this.O9=new dM(s[4],-20,20,"px");this.O9.l(U.E.M,this.UC,this);this.O9.parent=this;this.r3=new aP([12,33],["Abc ...","... \u0623\u064A \u0628\u064A"]); -this.r3.l(U.E.M,this.UC,this);this.r3.parent=this}iz.prototype=new ct;iz.prototype._=function(){this.Yd._(); -this.Kl._();this.bq._();this.gE._();this.hJ._();this.cq._();this.EP._();this.r3._()};iz.prototype.f=function(D,M,s){this.Rv=JSON.parse(JSON.stringify(D)); -var F=this.Rv,X=F.aO,d=F.om;this.$w.f(X.FauxBold!=null?X.FauxBold:!1);this.il.f(X.FauxItalic!=null?X.FauxItalic:!1); -this.XK.f(X.FontCaps==2);this.Zj.f(X.FontCaps==1);this.aB.f(X.FontBaseline==1);this.GJ.f(X.FontBaseline==2); -this.cx.f(X.Underline);this.CZ.f(X.Strikethrough);this.Yd.f(X.Font==null?null:F.Vj[X.Font].Name,M,s); -var V=X.FontSize==null?20:X.FontSize;this.Kl.f(V);var $=X.Tracking;this.gE.f($==null?0:$);this.bq.f(X.Leading!=null&&X.Leading!=0?X.Leading:V); -this.NJ.f(X.AutoLeading);this.cq.f((X.VerticalScale!=null?X.VerticalScale:0)*100);this.EP.f((X.HorizontalScale!=null?X.HorizontalScale:0)*100); -this.hJ.f(X.BaselineShift!=null?X.BaselineShift:0);if(X.FillColor){var w=fU.KO(X);this.Dx.cM(Math.round(w.i)<<16|Math.round(w.q)<<8|Math.round(w.P))}else this.Dx.cM(0); -var q=d._Direction!=null?d._Direction:0,u=fU._1(d);for(var K=0;K>16&255)/255,(M>>8&255)/255,(M>>0&255)/255]}; -for(var K=0;K<4;K++)s.Values[K]=Math.round(s.Values[K]*1e3)/1e3;this.Rv.aO.FillColor=s;this.Di()};function hP(){ct.call(this); -this.k=U.p("span","fontinput");this.RC=null;this.d2=null;this.uc=null;this.xN="";this.Ng={};this.YO=[]; -this.aaa={};this.BD=!1;this.uB=U.p("button","fitem");this.uB.setAttribute("style","width:9em;");this.uB.textContent="Family Name \u25BC"; -this.k.appendChild(this.uB);U.EC(this.uB,this.DB.bind(this));this.W7=new ct;this.W7.parent=this;this.W7.k=U.p("div","floatcont"); -this.W7.k.addEventListener("keyup",this.alP.bind(this),!1);this.cW=new dD(6.8);this.W7.k.appendChild(this.cW.alC()); -this.cW.parent=this.W7;this.cW.l(U.E.M,this.ek,this);var D=U.p("div","form");this.W7.k.appendChild(D); -this.vY=new aJ(U.G8("tools/cshape",null,"autoscale"),!1,"Show Favorites Only");this.vY.l("click",this.aii,this); -D.appendChild(this.vY.k);this.y8=new gg([12,86],null,9);this.y8.l("input",this.m6,this);D.appendChild(this.y8.k); -var M=this.anh=new aJ([[23,6],[22,6,0]],!1,"Load OTF / TTF file from your computer",!0);M.l("click",this.a92,this); -M.k.style.marginLeft="1.5em";D.appendChild(M.k);this.sm=U.p("span","fitem imageset scrollable marged"); -this.sm.style.height="30em";this.W7.k.appendChild(this.sm);this.J4=U.p("button","fitem");this.J4.setAttribute("style","width:7em;"); -this.J4.textContent="SubFamily Name \u25BC";this.k.appendChild(this.J4);U.EC(this.J4,this.DB.bind(this)); -this.dX=new ct;this.dX.parent=this;this.dX.k=U.p("div","floatcont");this.Oh=U.p("span","fitem imageset scrollable marged"); -this.dX.k.appendChild(this.Oh)}hP.prototype=new ct;hP.prototype.alP=function(D){var M=0;if(hn.Fe(D.code,hn.Ct))M=-1; -if(hn.Fe(D.code,hn.g_))M=1;if(M!=0){var s=this.YO,F=s.length,X=this.RC.Gv()[this.uc];if(X==null&&F==0)return; -var d=s.indexOf(X[0]);if(d==-1)return;d=(d+M+F)%F;this.v0(s[d],null)}};hP.prototype.a92=function(){var D=new W(U.E.Q,!0); -D.data={e:U.V.X7,aiK:".otf,.ttf,.ttc"};this.n(D)};hP.prototype._=function(){this.cW._();this.anh._(); -this.vY.di(U.G8("tools/cshape",null,"autoscale"))};hP.prototype.aii=function(D){this.vY.f(!this.vY.HW()); -this.ek()};hP.prototype.m6=function(D){this.xN=this.y8.v().toLowerCase();this.ek()};hP.prototype.DB=function(D){U.al(D); -var M=D.currentTarget,s=M.getBoundingClientRect(),F=M==this.uB,X=F?this.W7:this.dX;if(U.vt(X.k)){this.tx(X); -return}if(!F&&this.RC.Gv()[this.uc]==null)return;var d=new W(U.E.Q,!0);d.data={e:U.V.Rr,JI:X,x:s.left,y:s.top+s.height}; -this.n(d);if(F){this.ek();this.y8.vH()}};hP.prototype.ap_=function(D){var M=D.currentTarget.firstChild.nextSibling.textContent; -if(D.target.tagName.toLowerCase()=="button"){var s=this.d2.slice(0),F=s.indexOf(M);if(F==-1){s=s.slice(Math.max(0,s.length-29)); -s.push(M)}else s.splice(F,1);var X=new W(U.E.Q,!0);X.data={e:U.V.uW,Q1:bd.AB,bx:s};this.n(X);this.BD=!0; -this.ek()}else{this.v0(M,null);this.y8.vH()}};hP.prototype.amZ=function(D){this.v0(null,D.currentTarget.firstChild.textContent)}; -hP.prototype.v0=function(D,M){var s=D==null?this.dX:this.W7,F=this.RC;if(D==null)D=F.Gv()[this.uc][0]; -else{var X=F.iP(D),d=F.Gv()[this.uc];M=gJ.ad(X,d?d[1]:"regular")}var V=F.cE(D,M)[2];this.f(V,F);this.n(new W(U.E.M,!1)); -this.tx(s);this.ek()};hP.prototype.tx=function(D){var M=new W(U.E.Q,!0);M.data={e:U.V.CS,JI:D};this.n(M)}; -hP.prototype.v=function(){return this.uc};hP.prototype.f=function(D,M,s){var F=this.RC;if(D!=null)this.uc=D; -else D=this.uc;this.RC=M;this.d2=s;if(D!=null){var X=M.Gv()[D],d,V;if(X==null){d="- "+D;V="-------"}else{d=X[0]; -V=X[1];var $=M.iP(d);$.sort(gJ.a9P);var w=$.indexOf(V),q=this.amZ.bind(this);this.Oh.textContent=""; -for(var K=0;K<$.length;K++){var X=M.cE(d,$[K]);if(!this.cW.yK(X))continue;var u=this.Xg(X,X[1],q,!1); -this.Oh.appendChild(u)}}this.uB.textContent=d.substring(0,15)+" \u25BC";this.uB.setAttribute("title",d+", \""+D+"\""); -this.J4.textContent=V.substring(0,10)+" \u25BC";this.J4.setAttribute("title",V)}};hP.prototype.ek=function(){var D=this.RC.Gv()[this.uc],M=this.d2,s=null,F=this.RC.ajN(),X=this.ap_.bind(this); -this.YO=[];for(var d in F){var V=gJ.ad(F[d],"regular"),$=this.RC.cE(d,V),w=M.indexOf(d)!=-1,q=!0;if(this.xN.length>0&&$[0].toLowerCase().indexOf(this.xN)==-1)q=!1; -else if(!this.cW.yK($))q=!1;else if(this.vY.HW()&&!w)q=!1;var u=this.Ng[d];if(u==null){var u=this.Xg($,d,X,!0); -this.Ng[d]=u;this.sm.appendChild(u)}if(q)this.YO.push(d);var B=q?"":"display:none; ",r="opacity: "+(w?"1":"0.2"); -if(D&&D[0]==d){B+="background-color:rgba(0,0,0,0.13);";s=u}if(this.aaa[d]!=B+r){u.setAttribute("style",B); -u.firstChild.setAttribute("style",r);this.aaa[d]=B+r}}if(s&&!this.BD)this.sm.scrollTop=s.offsetTop-210; -this.BD=!1};hP.prototype.Xg=function(D,M,s,F){var X=U.p("div","fontitem"),w="";X.addEventListener("click",s,!1); -if(F)X.appendChild(U.p("button","star"));var d=U.p("span","label");d.setAttribute("title",M);d.textContent=M; -X.appendChild(d);var V=U.F(),$=1/V,q=gJ.KP*$,u=gJ.dU*$;if(1>>K&1)==1;this.K7[K]=s;M[K].f(s)}};dD.prototype.alC=function(){return this.NQ}; -dD.prototype._=function(){this.k.textContent=dY.get([25,1,0])+" \u25BC";this.Uh._();this.abS._()};dD.prototype.abI=function(D){var M=this.k.getBoundingClientRect(),s=new W(U.E.Q,!0); -s.data={e:U.V.Rr,JI:this.mN,x:M.left,y:M.top+M.height,Fm:!1};this.n(s)};dD.prototype.yK=function(D){if(this.Uu[D[4]]==0)return!1; -else for(var M=0;M>>M&1)==0)return!1;return!0};dD.prototype.a9d=function(D){var M=D.target.v(),s=this.p$,F=this.Uu; -for(var K=0;K",!1,[12,51]); -this.c9.l("click",this.jp,this);this.af6=new fb("");if(M){this.k.appendChild(this.c9.k);this.k.appendChild(this.af6.k); -this.c9.nG()}else this.k.appendChild(d.k);this.vx=new dM("DPI",0,0,null,3,!1,!0,4);if(D&&F==null){U.I3(this.k); -this.k.appendChild(this.vx.k)}this.vx.l(U.E.M,this.jp,this);this.H9=new a0([12,23,1]);this.H9.l(U.E.M,this.jp,this); -if(s){U.I3(this.k);this.k.appendChild(this.H9.k)}U.I3(this.k)}cJ.prototype=new ct;cJ.prototype.a4v=function(){this.og=!1; -if(this.E8.v()==0){this.E8.f(3);this.Va()}};cJ.prototype.a8e=function(){this.og=!0};cJ.prototype.afq=function(D){this.c9.f(D)}; -cJ.prototype._=function(){this.lw._();this.qu._();this.vx._();this.c9._();this.H9._()};cJ.prototype.akY=function(D){var M=this.Lx.x; -this.Lx.x=this.Lx.y;this.Lx.y=M;this.Va();this.n(new W(U.E.M,!1))};cJ.prototype.jp=function(D){if(D.target==this.E8&&!this.og&&this.E8.v()==0)this.E8.f(3); -if(D.target==this.E8||D.target==this.H9){this.Va();return}if(D.target==this.c9)D.target.f(!D.target.v()); -var M=this.mH,s=parseFloat(this.lw.v());if(isNaN(s))s=1;var F=parseFloat(this.qu.v());if(isNaN(F))F=1; -var X=this.E8.v();if(this.og){var d=this.s_;if(X==1){s=this.mH.x*(s/100);F=this.mH.y*(F/100)}var V=[1,1,25.4/d,1/d][X]; -s/=V;F/=V;if(this.H9.v()){s+=this.mH.x;F+=this.mH.y}if(D.target==this.vx){var $=this.vx.v();if(!0){var w=$/d; -s*=w;F*=w}d=$}if(this.c9.v()){if(D.target==this.lw)F=s*(M.y/M.x);else s=F*(M.x/M.y)}s=Math.max(Math.abs(s),1); -F=Math.max(Math.abs(F),1)}else{var d=this.cg;if(D.target==this.vx)d=this.vx.v();else{if(this.c9.v()){if(D.target==this.lw)F=s*(M.y/M.x); -else s=F*(M.x/M.y)}var V=[1,1,25.4/d,1/d][X],q=s/(X==1?100:M.x*V);d=d/q}s=M.x;F=M.y}this.Lx=new eo(Math.round(s),Math.round(F)); -this.s_=d;this.Va();this.n(new W(U.E.M,!1))};cJ.prototype.a7F=function(K){this.E8.f(K);this.Va()};cJ.prototype.f=function(D,M,s){if(s!=!0)this.mH=D.clone(); -this.Lx=D.clone();if(M!=null){this.cg=M;this.s_=M}this.Va()};cJ.prototype.Va=function(){var D=this.Lx.x,M=this.Lx.y,s=this.s_,F=(D/M).toFixed(3); -while(F.charAt(F.length-1)=="0")F=F.substring(0,F.length-1);if(F.charAt(F.length-1)==".")F=F.substring(0,F.length-1); -var X=" "+F+" : 1",d=function(u,B){while(B!=0){var r=B;B=u%B;u=r}return u},V=d(D,M);if(Math.min(D,M)/V<10)X=" "+Math.round(D/V)+" : "+Math.round(M/V); -this.af6.f(X);if(this.H9.v()){D-=this.mH.x;M-=this.mH.y}var $=this.E8.v();if($==1){if(this.og){D=100*D/this.mH.x; -M=100*M/this.mH.y}else{D=M=100*this.cg/this.s_}}else{D=Math.round(D);M=Math.round(M)}var w=[1,1,25.4/s,1/s][$]; -D*=w;M*=w;var q=$==1||$==3?2:0;this.lw.B$(q);this.qu.B$(q);this.lw.f(D);this.qu.f(M);this.vx.f(s)};cJ.prototype.v=function(){return this.Lx.clone()}; -cJ.prototype.c1=function(){return this.s_};function hD(D,M){ct.call(this);var s=D==0?["W","H","X","Y"]:["\u250F","\u2513","\u2517","\u251B"]; -this.Qo=D;this.apS=M;this.Ia=1;this.NA=[1,1,0];var F=this.k=U.p("div","numlist"),X=this.Uw=[];for(var K=0; -K<4;K++){var d=new dM(s[K],0,0,null,2,!1,!0,4);d.l(U.E.M,this.jp,this);F.appendChild(d.k);X[K]=d;if(K==1||K==3)U.I3(F)}X[4]=new a0(D==0?[12,51]:[12,91,2]); -X[4].f(!0);F.appendChild(X[4].k)}hD.prototype=new ct;hD.prototype._=function(){var D=this.Uw;for(var K=0; -K<5;K++)D[K]._();if(this.Qo==0)U.nD(D[0],D[1])};hD.prototype.f=function(D,M){if(M)this.NA=M;M=this.NA; -this.Ia=D[0]/D[1];for(var K=0;K<4;K++){var s=this.Uw[K];s.B$(M[2]==0&&this.apS?0:2);s.f(e.fk.aip(D[K],M[0],M[1],M[2]))}}; -hD.prototype.v=function(){var D=[],M=this.NA;for(var K=0;K<4;K++){var s=e.fk.Am(this.Uw[K].v(),M[0],M[1],M[2]); -D[K]=this.apS?Math.round(s):s}return D};hD.prototype.jp=function(D){var M=this.Qo,s=this.Uw.indexOf(D.currentTarget),F=this.v(),X=this.Uw[4].v(); -if(M==0){F[0]=Math.max(1,F[0]);F[1]=Math.max(1,F[1]);if(X&&s==0)F[1]=F[0]/this.Ia;if(X&&s==1)F[0]=F[1]*this.Ia}if(M==1){F[s]=Math.max(0,F[s]); -if(X)for(var K=0;K<4;K++)F[K]=F[s]}this.f(F);this.n(new W(U.E.M,!1))};function em(){ct.call(this);this.vv=0; -this.jh=[0,0,1,1,100,100];this.k=U.p("span","fitem");this.Ov=new hd(null,[[12,89,0],[12,89,1],[12,89,2]]); -this.k.appendChild(this.Ov.k);this.Ov.l(U.E.M,this.jp,this);this.lw=new dM("W",0,0,null,0,!1,!0);this.k.appendChild(this.lw.k); -this.lw.l(U.E.M,this.jp,this);this.qu=new dM("H",0,0,null,0,!1,!0);this.k.appendChild(this.qu.k);this.qu.l(U.E.M,this.jp,this); -this.f({Rh:0,x:0,y:0})}em.prototype=new ct;em.prototype._=function(){U.nD(this.lw,this.qu);this.Ov._()}; -em.prototype.jp=function(D){if(D.target==this.Ov){var M=this.v(),s=this.jh;s[this.vv*2]=M.x;s[this.vv*2+1]=M.y; -this.vv=M.Rh;this.f({Rh:M.Rh,x:s[M.Rh*2],y:s[M.Rh*2+1]})}if(this.lw.v()<1)this.lw.f(1);if(this.qu.v()<1)this.qu.f(1); -this.n(new W(U.E.M,!1))};em.prototype.f=function(D){this.Ov.f(D.Rh);this.lw.f(D.x);this.qu.f(D.y);if(D.Rh==0){this.lw.IJ(); -this.qu.IJ()}else{this.lw.JU();this.qu.JU()}};em.prototype.v=function(){return{Rh:this.Ov.v(),x:this.lw.v(),y:this.qu.v()}}; -function fb(D,M){ct.call(this);this.w_=D;this.k=U.p("span","labelitem fitem"+(M?" spread":""));this._()}fb.prototype=new ct; -fb.prototype.f=function(D){this.k.textContent=D};fb.prototype.v=function(){return this.k.textContent}; -fb.prototype.JU=function(){this.k.removeAttribute("disabled")};fb.prototype.IJ=function(){this.k.setAttribute("disabled","")}; -fb.prototype.di=function(D){this.k.textContent=D};fb.prototype._=function(){this.k.textContent=dY.get(this.w_)}; -fb.prototype.Aj=function(){return this.w_};function bF(D){ct.call(this);this.k=U.p("span","");this.afi=D; -this.SU=new c$("Off X",-100,100,D?"%":"px",0,!1);this.zr=new c$("Off Y",-100,100,D?"%":"px",0,!1);this.SU.l(U.E.M,this.jp,this); -this.zr.l(U.E.M,this.jp,this);this.k.appendChild(this.SU.k);this.k.appendChild(this.zr.k)}bF.prototype=new ct; -bF.prototype._=function(){this.SU._();this.zr._()};bF.prototype.jp=function(D){this.n(new W(U.E.M,!1))}; -bF.prototype.alV=function(D){this.SU.f(D.x);this.zr.f(D.y)};bF.prototype.aqZ=function(){return new eo(this.SU.v(),this.zr.v())}; -bF.prototype.f=function(D,M){var s=D.Hrzn.v,F=D.Vrtc.v;if(this.afi){s=s.val;F=F.val}this.SU.f(s);this.zr.f(F); -if(M)this.jp()};bF.prototype.v=function(){var D=this.SU.v(),M=this.zr.v();if(this.afi)return{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Prc",val:D}},Vrtc:{t:"UntF",v:{type:"#Prc",val:M}}}; -else return{classID:"Pnt",Hrzn:{v:D,t:"doub"},Vrtc:{v:M,t:"doub"}}};function dM(D,M,s,F,X,d,V,$,w){e8.call(this,D,M,s,F,X,!0,d,w); -U.fN(this.k,"rangedropinput");this.k.appendChild(this.xS);this.Tt.setAttribute("style","width:"+($?$:3.3)+"em"); -this.k.appendChild(this.Tt);this.aja=U.p("span","rangecont");this.aja.appendChild(this.BY);this.nI=U.p("button"); -this.nI.innerHTML="\u25BC";U.EC(this.nI,this.aex.bind(this));if(V!=!0)this.k.appendChild(this.nI);this.IT=new ct; -this.IT.k=this.aja}dM.prototype=new e8;dM.prototype.aex=function(D){if(U.vt(this.IT.k))return;D.stopPropagation(); -var M=this.k.getBoundingClientRect();this.BY.setAttribute("style","width:"+M.width+"px;");var s=new W(U.E.Q,!0); -s.data={e:U.V.Rr,JI:this.IT,x:M.left,y:M.top+M.height};this.n(s)};function aH(){ct.call(this);this.k=U.p("span","fitem strokebutton"); -this.EI=[[null,null,null,""],[null,0,null,"4 2"],[1,1,null,"0 2"]];this.ES=JSON.parse(JSON.stringify(aX.us.default)); -this.uS=U.p("button");this.k.appendChild(this.uS);this.uS.addEventListener("click",this.Lb.bind(this),!1); -var D=U.p("canvas","gsicon");this.DO=D.getContext("2d");this.uS.appendChild(D);var M=U.p("span");M.textContent=" \u25BC"; -this.uS.appendChild(M);this.mN=new ct;this.mN.parent=this;this.mN.k=U.p("div","floatcont form");var s=this.mN.k; -s.setAttribute("style","width: 14em;");this.Ng=[new hd([12,40],[[19,5,2],[19,5,1],[19,5,0]]),new aP([19,9,0],["","",""]),new aP([19,9,1],["","",""]),new gg([19,9,2])]; -for(var K=0;K",!1,M[K]); -s.l("click",this.alO,this);this.k.appendChild(s.k);this.N7.push(s)}this.N7[0].nG()}dw.prototype=new ct; -dw.prototype.akT=function(){return this.nx};dw.prototype.v=function(){return this.Ry[this.nx]};dw.prototype.f=function(D){this.nx=this.Ry.indexOf(D); -for(var K=0;K";var D=this.a7H,M=this.ajH;U.f_(this.e.firstChild,D,M)}; -gN.prototype.v=function(){return this.Cs[this.T8]};gN.prototype.f=function(D){this.T8=this.Cs.indexOf(D); -this.mr()};function gw(D,M,s){ct.call(this);if(D==null)D=!1;if(M==null)M=!1;if(s==null)s=!1;this.a6z=M; -this.aJ=null;this.yU=new gN([12,22],s);this.yU.parent=this;this.yU.l(U.E.M,this.Di,this);this.IU=new hd([22,0],[[22,4,0],[22,4,1]]); -this.IU.l(U.E.M,this.Di,this);var F=D?dM:ag;this.Qv=new F([22,1],-100,100,"%");this.Bz=new F("Horizontal Distortion:",-100,100,"%"); -this.AK=new F("Vertical Distortion:",-100,100,"%");this.Qv.parent=this.Bz.parent=this.AK.parent=this; -this.Qv.l(U.E.M,this.Di,this);this.Bz.l(U.E.M,this.Di,this);this.AK.l(U.E.M,this.Di,this)}gw.prototype=new ct; -gw.prototype._=function(){this.yU._();this.IU._();this.Qv._();var D=this.a6z?1:100;this.Bz.di(dY.get([22,2]).substring(0,D)+":"); -this.AK.di(dY.get([22,3]).substring(0,D)+":")};gw.prototype.Di=function(){var D=this.aJ,M=this.yU.v(),s=D.warpStyle.v.warpStyle; -if(M=="warpCustom")e.aJ.g2(e.aJ.y_(D),D);else delete D.customEnvelopeWarp;D.warpStyle.v.warpStyle=this.yU.v(); -D.warpRotate.v.Ornt=["Hrzn","Vrtc"][this.IU.v()];D.warpValue.v=this.Qv.v();D.warpPerspective.v=this.Bz.v(); -D.warpPerspectiveOther.v=this.AK.v();if(M=="warpNone"||M=="warpCustom"){D.warpValue.v=0;D.warpPerspective.v=0; -D.warpPerspectiveOther.v=0}else if(s=="warpNone"||s=="warpCustom")D.warpValue.v=50;this.n(new W(U.E.M,!1)); -this.f(D)};gw.prototype.v=function(D){return JSON.parse(JSON.stringify(this.aJ))};gw.prototype.f=function(D){this.aJ=JSON.parse(JSON.stringify(D)); -this.yU.f(D.warpStyle.v.warpStyle);this.IU.f(D.warpRotate.v.Ornt=="Hrzn"?0:1);this.Qv.f(D.warpValue.v); -this.Bz.f(D.warpPerspective.v);this.AK.f(D.warpPerspectiveOther.v);var M=D.warpStyle.v.warpStyle,s=M=="warpNone"||M=="warpCustom",F=[this.IU,this.Qv,this.Bz,this.AK]; -for(var K=0;K=0)M.eT("Space");if(D>=1){M.eT("ControlLeft");if(D==2)M.eT("AltLeft")}return M}; -bw.prototype.sW=function(D){var M=this.JW,s=null;if(D.B(hn.Xq)){s="grab";if(D.B(hn.hQ)){s="zoom-in"; -if(D.B(hn.CC))s="zoom-out"}}this.N6=s;if(s)M=s;this.ku.Pf(M,this.W0);if(D.B(hn.hQ)){var F=0;if(D.B(hn.TF))F=1; -if(D.B(hn.IH))F=-1;if(F!=0){this.zF(new eo(this.wU.width/2,this.wU.height/2),F==1)}}};bw.prototype.BE=function(D){this.JW=D; -if(this.N6)return;this.ku.Pf(D,this.W0)};bw.prototype.a8W=function(D){U.EC(D,this.a3E);U.kk(D);D.addEventListener("wheel",this.ah8,!1)}; -bw.prototype.tq=function(D){D.l("viewchange",this.a3Q,this)};bw.prototype.a3Q=function(D){var M=this.a.$,s=D.currentTarget.Uy(); -this.a.$=s.$;this.a.L=s.L.clone();if(M!=s.$)this.LQ();this.Xm()};bw.prototype.Uy=function(){return{$:this.a.$,L:this.a.L}}; -bw.prototype.f=function(D,M){var s=D[0].Bi;if(this.Vu!=null&&this.Vu[0].Bi.L0(s)){}else{this.a.Ab={d:s.d,w:s.w}; -this.a.L=new eo(0,0);this.a.$=1}this.Vu=D;this.LQ();this.Pv();this.r6=0;this.ck=0;this.kI=M==null?0:M; -this.agJ()};bw.prototype.qb=function(D){D.preventDefault();if(D.deltaY==0||Date.now()-this.af1<100)return; -var M=U.hK(D);M.x=U.F()*M.x;M.y=U.F()*M.y;this.af1=Date.now();this.zF(M,D.deltaY<0)};bw.prototype.zF=function(D,M){T.Ig.l9(this.a,D,M); -this.ao$()};bw.prototype.ahU=function(){var D=this.a,M=D.Ab;this.a.$=T.Ig.a1(M.d,M.w,D.Ar.d,D.Ar.w); -this.ao$()};bw.prototype.ao$=function(){this.LQ();this.n(new W("viewchange"));this.n(new W("zoom"))}; -bw.prototype.LQ=function(){this.V5=[];var D=this.a.$;if(this.Vu==null)return;for(var K=0;K=1)F={dP:s,rect:M.Bi};else F=e.ac2(s,M.Bi,D);this.V5.push(F)}}; -bw.prototype.Pv=function(){clearTimeout(this.acg)};bw.prototype.Xm=function(){if(this.Vu==null||!U.vt(this.wU))return; -var D=this.aht,M=this.wU.width,s=this.wU.height,A,E;if(D==null||D.width!=M||D.height!=s){D=this.aht=this.DO.createImageData(M,s); -console.log("creating image data")}var F=this.Vu[this.r6],X=this.V5[this.r6],d=this.a,V=d.Ab,$=d.Ar,w=$.d,q=$.w,u=V.d*d.$,B=V.w*d.$,r=Math.round((w-u)/2+d.L.x),P=Math.round((q-B)/2+d.L.y); -if(d.$<=1){E=X.rect.clone();E.x=r;E.y=P;u=E.d;B=E.w;A=X.dP}else{var n=1/d.$,_=new hk(Math.floor(($.x-r)*n),Math.floor(($.y-P)*n),Math.ceil($.d*n)+1,Math.ceil($.w*n)+1),l=new hk(0,0,_.d*d.$,_.w*d.$); -l.x=_.x*d.$+r;l.y=_.y*d.$+P;if(d.zC==null||d.zC.length!=_.Y()*4){d.zC=e.U(_.Y()*4)}if(d.uJ==null||d.uJ.length!=l.Y()*4){d.uJ=e.U(l.Y()*4)}e.BK(d.zC,0); -e.eJ(X.dP,X.rect,d.zC,_);e.scale.eA(d.zC,_.d,_.w,d.uJ,l.d,l.w,d.$);A=d.uJ;E=l}var b=new Uint8Array(D.data.buffer); -e.wE(b,w,q,8,-r,-P);e.z.cz("norm",A,E,b,$,$,1);this.DO.setTransform(1,0,0,1,0,0);this.DO.putImageData(D,0,0); -this.DO.clearRect(r-1e3,P,1e3,B);this.DO.clearRect(r+u,P,1e3,B);this.DO.clearRect(r-1e3,P-1e3,u+2e3,1e3); -this.DO.clearRect(r-1e3,P+B,u+2e3,1e3);var y=bw.aeo(d.$,"#ffffff",this.aql);this.DO.putImageData(y,0,d.Ar.w-y.height)}; -bw.an5={};bw.aeo=function(D,M,s){if(s==null)s=!1;var F="z"+D+","+M+","+s,X=bw.an5[F];if(X)return X;var d=Math.round(50*U.F()),V=Math.round(18*U.F()),$=s?2*V:0,w=U.p("canvas"),q=w.getContext("2d"); -w.width=d+$;w.height=V;q.fillStyle="rgba(1,1,1,1)";q.fillRect(0,0,d+$,V);q.font=Math.round(11*U.F())+"px monospace"; -q.fillStyle=M;var u=D*100;if(u<100)u=u.toFixed(2);else u=Math.round(u);u=u+"%";var B=q.measureText(u).width; -q.fillText(u,$+(d-B)/2,Math.round(V*.7));X=bw.an5[F]=q.getImageData(0,0,d+$,V);return X};bw.prototype.agJ=function(){var D=this.Vu,M=D.length,s=this.r6,F=this.Vu[s],X=(s+1)%M; -this.Xm();if(M!=1&&D[X].Bi.L0(F.Bi)){var d=F.xn?parseInt(F.xn.split(",").pop()):30;if(d==0)d=16;if(X==0)this.ck++; -if(this.kI==0||this.ck1||!F.Ar.cw(d))){if(s.length>1){var $=U.hK(s[0],this.wU),w=U.hK(s[1],this.wU),q=new eo(U.F()*($.x+w.x)/2,U.F()*($.y+w.y)/2),u=eo.cQ($,w),B=null; -if(u>this.a2+50){this.a2+=50;B=!0}if(u1){this.a.$=1; -this.a.L.SG(0,0);this.Xm()}if(this.vP&&this.dC==this.wU&&!this.N6)this.n(new W("mouseup"));else{if(F=="zoom-in"||F=="zoom-out")this.zF(this.wA,F=="zoom-in")}}else{var X=this.OH=U.hK(s[0],this.wU); -X.x*=U.F();X.y*=U.F()}};bw.prototype.kP=function(){return this.a.wT(this.wA.x,this.wA.y)};function eS(){ct.call(this); -this.Mz=null;this.j7=null;this.cP=null;this.kC=null;this.a8l="";this.QJ=[];this.cV=0;this.wG=[];this.E9=0; -this.kL=null;var D=this.k=U.p("div",""),M=this.agC=U.p("div","form");M.setAttribute("style","line-height:0; margin-bottom:0.5em;"); -D.appendChild(M);var s=this.rv=U.p("span");M.appendChild(s);s.setAttribute("style","font-size:1.2em; font-weight:bold; margin-right:3em;"); -var F=this.ac$=new a0([25,2,0]);F.f(!0);M.appendChild(F.k);F.l(U.E.M,this.rg,this);var X=this.Qr=new a0([25,2,1]); -X.f(!0);M.appendChild(X.k);X.l(U.E.M,this.rg,this);var d=new fb(" ");M.appendChild(d.k);var V=this.Wh=new gg([25,1,1]); -M.appendChild(V.k);V.l(U.E.M,this.rg,this);this.cW=new dD(14);this.cW.aax(3);M.appendChild(this.cW.k); -this.cW.parent=this;this.cW.l(U.E.M,this.aaY,this);var $=this.a9z=new aJ([25,1,2],null,null,!0);M.appendChild($.k); -$.l("click",this.KY,this);this.a1Z=this.aqq.bind(this);this.WO=U.p("div","svggallery scrollable");D.appendChild(this.WO); -this.WO.addEventListener("scroll",this.agZ.bind(this))}eS.prototype=new ct;eS.prototype.mj=function(D){this.a5u=D}; -eS.prototype._=function(){this.rv.textContent=dY.get([25,0]);this.cW._();this.ac$._();this.Qr._();this.Wh._(); -this.a9z._()};eS.prototype.CI=function(D,M){M-=26;this.Mz=new eo(D,M);this.agC.setAttribute("style","width:"+D+"px"); -this.WO.setAttribute("style","width:"+D+"px; height:"+M+"px");if(U.vt(this.k))this.rg()};eS.prototype.f=function(D){this.j7=D; -this.rg()};eS.prototype.agZ=function(D){var M=this.WO;if(M.scrollTop+M.clientHeight+10>=M.scrollHeight){this.rg(!0)}}; -eS.prototype.aaY=function(D){this.cP=null;this.rg()};eS.prototype.aqq=function(D){if(Date.now()-this.E9<2e3)return; -this.E9=Date.now();this.cV=this.wG.indexOf(D.currentTarget);var M=this.R9(this.j7.x,this.j7.y);if(M[1]){var s=M[1].largeImageURL,F=new XMLHttpRequest; -F.responseType="arraybuffer";F.open("GET",s,!0);F.onload=this.ajB.bind(this);F.send();return}this.a4E(M)}; -eS.prototype.ajB=function(D){var M=D.target.response,s=bo.H8(M),F=bo.GD(s),X=F.QK(M),d=this.R9(this.j7.x,this.j7.y,[M,X[0].Bi.d,X[0].Bi.w]); -this.a4E(d)};eS.prototype.a4E=function(D){var M=D[0],s=bo.H8(M),F=bo.GD(s),X=new iT("template.psd"); -F.QK(M,X);var d=new W("tempready",!0);d.data={Ab:X};this.n(d)};eS.prototype.KY=function(D){var M=D.target; -this.QJ=[];this.rg()};eS.prototype.apg=function(D){var M=JSON.parse(D.target.response);this.kC=M.hits; -this.rg()};eS.prototype.rg=function(D){if(this.j7==null||this.Mz==null||this.a5u==null)return;if(this.Mz.x<=0)return; -var M=this.j7.x,s=this.j7.y;if(Math.min(M,s)<50)return;if(D!=!0){this.wG=[];U.n2(this.WO);this.WO.scrollTop=0}if(this.wG.length>300)return; -var F=Math.min(1,300/Math.max(M,s)),X=this.Mz.clone();X.x-=20;var d=Math.max(1,Math.floor(X.x/(M*F))),V=Math.max(1,Math.ceil(X.y/(s*F))); -F=X.x/d/M;var $=d*V;if(this.cP==null){var w=this.a5u.gd.Gv();this.cP=[];for(var q in w){var u=w[q],B=u[3]; -if(!this.cW.yK(u))continue;if(u[5]==null||u[5].slice(0,2)=="gf")continue;this.cP.push(u)}if(this.cP.length==0)this.cP.push(w.DejaVuSans)}var r=this.Qr.v(),P=this.Wh.v().trim(); -this.Wh.oR(r);if(r&&(this.kC==null||P!=this.a8l)){var A=new XMLHttpRequest,E="https://pixabay.com/api/?image_type=photo"+(P==""?"":"&q="+encodeURIComponent(P))+"&per_page=200&page=1&key=10554583-a5eacb61c2e61105fdfb6eb88"; -if(P=="")E+="&safesearch=true";if(P=="")E="plugins/gallery.json";A.open("GET",E,!0);A.onload=this.apg.bind(this); -A.onerror=function(p){console.log(p.target.response)};A.send();this.a8l=P;return}F*=(M*F-5)/(M*F);var n=this.wG.length; -for(var K=0;K<$;K++){var _=this.cV=n+K;if(this.QJ[_]==null)this.QJ[_]=Math.floor(Math.random()*4294967295); -var l=this.R9(Math.round(M*F),Math.round(s*F)),b=l[0];b=t.XM(new Uint8Array(b));var y=U.p("span");y.innerHTML=b; -this.wG.push(y);this.WO.appendChild(y);y.addEventListener("click",this.a1Z,!1)}};eS.prototype.R9=function(D,M,s){var F=this.Qr.v(),X=this.ac$.v(),d=F&&this.kC.length!=0?this.kC:null; -if(X&&!F)d=null;if(X&&F&&(this.cV&1)==0)d=null;return eC.R5(D,M,this.QJ[this.cV],this.cP,s?s:d)};function fI(){ct.call(this); -this.k=U.p("div");this.nn=null;this.acK=null;this.yi=-1;this.B6={JPG:[{or:new ag([12,52,0],0,100,"%",null,null,!0),jY:70},{or:new a0("attach metadata"),jY:!1}],TIFF:[{or:new a0("attach metadata"),jY:!1}],WEBP:[{or:new ag([12,52,0],0,100,"%",null,null,!0),jY:70}],GIF:[{or:new ag([12,52,0],0,100,"%",null,null,!0),jY:100}],PNG:[{or:new ag([12,52,0],0,100,"%",null,null,!0),jY:100},{or:new a0("don't use palettes"),jY:!1}],PDF:[{or:new gg([12,52,1]),jY:""},{or:new ag([12,52,0],0,100,"%",null,null,!0),jY:100},{or:new a0("rasterize all"),jY:!1},{or:new a0("rasterize text"),jY:!1},{or:new a0("vectorize text"),jY:!1}],EMF:[{or:new gg([12,52,1]),jY:""},{or:new a0("rasterize all"),jY:!1},{or:new a0("rasterize text"),jY:!1},{or:new a0("vectorize text"),jY:!1}],SVG:[{or:new a0("add raster graphics"),jY:!0},{or:new a0("add hidden layers"),jY:!1},{or:new a0("vectorize text"),jY:!1},{or:new a0("rasterize text"),jY:!1},{or:new a0("add layer names"),jY:!0},{or:new a0("pretty-print"),jY:!0}],RAW:[{or:new aP([12,72],["1","3","4"]),jY:2},{or:new aP([12,34],["8 Bits","16 Bits"]),jY:0},{or:new aP("Byte Order",["12-34","34-12"]),jY:0}],anim:[{or:new ag("Speed",10,800,"%",null,!0,!0),jY:100},{or:new dM("Repeat (0 = Forever)",0,10," \xD7",0,!1,!0),jY:0},{or:new a0("reverse frames"),jY:!1},{or:new a0("boomerang"),jY:!1}],slcs:[{or:new a0("As Slices"),jY:!0}],artb:[{or:new a0("As Artboards"),jY:!0}]}; -for(var D in this.B6){var M=this.B6[D];for(var K=0;K0)this.iJ--; -this.eW.map=s[this.iJ].slice(0);this.z9(null)}else this.view.sW(D)};x.LqFy.prototype.a3J=function(D){if(D.data.e==U.V.N8){var M=this.G=D.data.G; -this.T$.lc(this.G);this.view.sW(M>6?bw.alS(M-7):new hn)}};x.LqFy.prototype.abh=function(D){var M=D.currentTarget,K=this.pJ.indexOf(M),s=this.t3.Brsh.v; -if(K==0){s.Dmtr.v.val=M.v();this.m$()}if(K>2)this.z9(null)};x.LqFy.prototype.dF=function(){var D=this.PT; -this.iJ++;D[this.iJ]=this.eW.map.slice(0);while(D.length>this.iJ+1)D.pop();while(D.length>50){D=D.slice(1); -this.iJ--}};x.LqFy.prototype.Qs=function(D){this.oM();this.Qe=this.view.kP();this.aoT=new eo(0,0);this.l(U.E.uw,this.oY,this)}; -x.LqFy.prototype.it=function(D){var M=this.view.kP(),s=new eo(M.x-this.Qe.x,M.y-this.Qe.y);if(this.G==0||this.G==6)this.adN(s); -this.Qe=M};x.LqFy.prototype.h5=function(D){this.dF();this.oM()};x.LqFy.prototype.oM=function(){if(this.PY(U.E.uw,this.oY))this.removeEventListener(U.E.uw,this.oY,this)}; -x.LqFy.prototype.oY=function(D){if(this.G!=0&&this.G!=6)this.adN(new eo(0,0))};x.LqFy.prototype.adN=function(D){var M=this.eW,s=M.wS/this.Fn.d,F=this.Qe,X=this.t3.Brsh.v,d=X.Dmtr.v.val,V=Date.now(),$=M.wS,w=M.WQ,q=Math.sqrt(D.x*D.x+D.y*D.y),u=Math.max(1,Math.ceil(q/2)),B=D.x/u,r=D.y/u,P=F.clone(),A=this.G,E=this.pJ[1].v()/100,n=this.pJ[2].v()/100,_=[.005,.015,0,0,.2,.2,.01,.01,.05,.35,.1,.1,.005,.015],l=_[A*2],b=_[A*2+1],y=(1-E)*l+E*b,p=d*s/2; -for(var K=0;K450){F.style.marginLeft="1em"; -this.Ie.removeChild(s);this.view.CI(D-238-45,M)}else{F.style.marginLeft="";this.Ie.removeChild(F);this.view.CI(D-40,M)}}; -x.LqFy.prototype._=function(){this.T$._();for(var K=0;K>",null,null,!0);this.Le.l("click",this.aqv,this); -s.appendChild(this.Le.k);this.bS=U.p("div");this.bS.setAttribute("style","margin-bottom:1.5em; display:inline-block; width:calc(100% - 40px);"); -s.appendChild(this.bS);this.fv=U.p("div");this.fv.style.minHeight="14em";this.fv.style.marginBottom="1em"; -s.appendChild(this.fv);this.Ws=U.p("div","lpbody scrollable");this.C0=U.p("div","lpfoot");s.appendChild(this.Ws); -s.appendChild(this.C0);this.l("click",this.a2v,this);this.fX=[];e$.yj([[5,3],[5,4]],this.fX,this.C0,this.N1.bind(this))}; -x.GEfc.prototype=new x;x.GEfc.prototype.x9=function(){return!0};x.GEfc.prototype.Yu=function(D){this.bS.appendChild(D)}; -x.GEfc.prototype.mj=function(D,M){this.kL=D};x.GEfc.prototype.aqv=function(D){var M=this.cj.style.display!="none"; -this.cj.style.display=M?"none":"";this.Le.di(M?"<<":">>");this.CI()};x.GEfc.prototype.CI=function(D,M){var s=this.cj.style.display!="none"; -if(D!=null){this.mb=D;this.St=M;if(D<800&&s){this.aqv();s=!1}}else{D=this.mb;M=this.St}this.cj.style.height=M+"px"; -this.view.CI(D-240-this.O2-14+(s?0:283),M);this.Ws.style.height=M-this.fv.getBoundingClientRect().height-90+"px"}; -x.GEfc.prototype.ae8=function(){var D=bo.Jy.get("img/beach",!0)[0],M=D.Bi,s=this.cj,F=Math.floor(U.F()*(this.O2-40)/3),X=~~(F*.7),d=new hk(0,0,F,X),V=e.U(F*X*4),$=V.slice(0),w=Math.round(10*U.F()),q=new ImageData(new Uint8ClampedArray($.buffer),F,X); -e.eJ(new Uint8Array(D.data),M,V,new hk(Math.round((M.d-F)/2),Math.round((M.w-X)/2),F,X));var u=U.p("canvas"),B=u.getContext("2d"); -u.width=F;u.height=X+Math.round(w*1.5);B.font=w+"px sans-serif";this.Um={};var r=this.aof.bind(this); -for(var K=0;K1){s.splice(this.ii,1); -if(this.ii==s.length)this.ii--}this.TG();this.z9()};x.GEfc.prototype.apP=function(D){var M=this.Dk,s; -if(D==null)s=bT.Cr(M);else s=this.ey[M].v();this.Lx.GEfs.v[this.ii].v=s;this.TG();this.z9()};x.GEfc.prototype.f=function(D,M,s,F,X){if(this.Um==null)this.ae8(); -D=this.Lx=JSON.parse(JSON.stringify(D));if(D.GEfs==null)D=this.Lx={__name:"Filter Gallery",classID:"GEfc",GEfs:{t:"VlLs",v:[{t:"Objc",v:D}]}}; -var d=D.GEfs.v;for(var K=0;K>>16,q:w>>>8&255,P:w&255}}fR.ea("GEfc",{rect:this.Fn,buffer:this.VF},d,$(V.Yr),$(V.hE),{rect:this.Fn,buffer:this.qO},null); -this.view.f([{Bi:M,data:F.buffer}])};x.GEfc.prototype._=function(){for(var D in this.ey)this.ey[D]._(); -e$.lL(this.fX,["lrs/newlayer","lrs/bin"])};x.GEfc.QE=function(D){ct.call(this);this.hB=D;this.k=U.p("div"); -this.sD={};var M=bT.Cr(D);for(var s in M){var F=null;if(s=="__name"||s=="classID"||s=="GEfk"||s=="GELv"||["FlRs"].indexOf(s)!=-1)continue; -else if(s=="EdgW")F=new ag("Edge Width",1,14);else if(s=="EdgB")F=new ag("Edge Brightness",0,D=="AccE"?50:20); -else if(s=="Smth")F=new ag([19,3,3],1,D=="Stmp"?50:15);else if(s=="ClSz")F=new ag([12,61],3,100);else if(s=="BrdT")F=new ag([7,9],1,20); -else if(s=="HghS")F=new ag([12,64],0,20);else if(s=="HlSz")F=new ag([12,14,0],1,15);else if(s=="Cntr")F=new ag([12,3,0],0,D=="WtrP"?100:50); -else if(s=="Shrp")F=new ag("Sharpness",0,40);else if(s=="SprR")F=new ag("Spray Radius",0,25);else if(s=="LgDr")F=new ag("Light/Dark Balance",0,D=="Stmp"?50:100); -else if(s=="Drkn")F=new ag("Darkness",1,50);else if(s=="Dstr")F=new ag("Distortion",0,20);else if(s=="Scln")F=new ag([12,38],50,200); -else if(s=="Rlf")F=new ag("Relief",0,D=="Ptch"||D=="NtPr"?25:50);else if(s=="ChAm")F=new ag("Thickness",1,7); -else if(s=="Pncl")F=new ag([19,2,5],1,30);else if(s=="StrP")F=new ag("Stroke Pressure",0,15);else if(s=="PprB")F=new ag("Paper Brightness",0,50); -else if(s=="BrsS")F=new ag("Brush Size",0,10);else if(s=="BrsD")F=new ag("Brush Detail",0,10);else if(s=="Txtr")F=new ag([12,67],1,3); -else if(s=="Grn")F=new ag("Grain",0,20);else if(s=="HghA")F=new ag("Highlight Area",0,20);else if(s=="Intn")F=new ag("Intensity",0,10); -else if(s=="Brgh")F=new ag("Glow Brightness",0,D=="WtrP"?100:50);else if(s=="StrS")F=new ag("Stroke Size",1,50); -else if(s=="StDt")F=new ag("Stroke Detail",1,3);else if(s=="Sftn")F=new ag("Softness",0,10);else if(s=="EdgT")F=new ag("Edge Thickness",0,10); -else if(s=="EdgI")F=new ag("Edge Intensity",0,10);else if(s=="Pstr")F=new ag("Posterization",0,6);else if(s=="Dfnt")F=new ag("Definition",0,25); -else if(s=="TxtC")F=new ag("Texture Coverage",0,50);else if(s=="ShdI")F=new ag("Shadow Intensity",0,10); -else if(s=="DrcB")F=new ag("Direction Balance",0,100);else if(s=="Strg")F=new ag([12,64],1,3);else if(s=="Blnc")F=new ag("Balance",0,10); -else if(s=="BlcI")F=new ag("Black Intensity",0,10);else if(s=="WhtI")F=new ag("White Intensity",0,10); -else if(s=="DrkI")F=new ag("Dark Intensity",0,50);else if(s=="LghI")F=new ag("Light Intensity",0,50); -else if(s=="StrW")F=new ag("Stroke Width",3,15);else if(s=="Grns")F=new ag("Graininess",0,D=="NtPr"?20:10); -else if(s=="GlwA")F=new ag("Glow Amount",0,20);else if(s=="ClrA")F=new ag("Clear Amount",0,20);else if(s=="ChrA")F=new ag("Charcoal Area",0,20); -else if(s=="ChlA")F=new ag("Chalk Area",0,20);else if(s=="FrgL")F=new ag("Foreground Level",1,15);else if(s=="BckL")F=new ag("Background Level",1,15); -else if(s=="WhtL")F=new ag("Background Level",0,50);else if(s=="BlcL")F=new ag("Foreground Level",0,50); -else if(s=="ImgB")F=new ag("Image Balance",0,50);else if(s=="Dnst")F=new ag([12,74],0,50);else if(s=="FbrL")F=new ag("Fiber Length",3,50); -else if(s=="CrcS")F=new ag("Crack Sapcing",2,100);else if(s=="CrcD")F=new ag("Crack Depth",0,10);else if(s=="CrcB")F=new ag("Crack Brightness",0,10); -else if(s=="TlSz")F=new ag("Tile Size",2,100);else if(s=="GrtW")F=new ag("Grout Width",1,15);else if(s=="LghG")F=new ag("Lighten Grout",0,10); -else if(s=="SqrS")F=new ag("Square Size",0,10);else if(s=="RplS")F=new ag("Ripple Size",1,15);else if(s=="RplM")F=new ag("Ripple Magnitude",0,20); -else if(s=="Sz")F=D=="NGlw"?new ag("Glow Size",-24,24):new ag([12,14,0],1,50);else if(s=="Dtl")F=D=="Chrc"?new ag("Detail",0,5):new ag("Detail",1,15); -else if(s=="StrL")F=D=="InkO"?new ag("Stroke Length",1,50):new ag("Stroke Length",0,20);else if(s=="TxtT")F=new hd([12,67],"Blocks,Canvas,Frosted,Tiny Lens,Bricks,Burlap,Sandstone".split(",")); -else if(s=="BrsT")F=new hd("Brush type","Simple,Light Rough,Dark Rough,Wide Sharp,Wide Blurry,Sparkle".split(",")); -else if(s=="Grnt")F=new hd("Grain Type","Regular Soft Sprinkles Clumped Contrasty Enlarged Stippled Horizontal Vertical Speckle".split(" ")); -else if(s=="SDir")F=new hd([12,33],["Right Diagonal","Horizontal","Left Diagonal","Vertical"]);else if(s=="ScrT")F=new hd([12,62],["Circle","Dot",[10,35]]); -else if(s=="LghD"||s=="LghP")F=new hd("Light","Bottom,Bottom Left,Left,Top Left,Top,Top Right,Right,Bottom Right".split(",")); -else if(s=="Clr")F=new c_("Glow Color");else if(s=="InvT")F=new a0([4,11]);else console.log(s);F.l(U.E.M,this.WF,this); -F.parent=this;this.sD[s]=F;this.k.appendChild(F.k)}};x.GEfc.QE.prototype=new ct;x.GEfc.QE.prototype.WF=function(D){this.n(new W(U.E.M,!1))}; -x.GEfc.a8N="Sz Dtl Shrp EdgW EdgB Smth ClSz BrdT HghS HlSz Cntr SprR StrL LgDr Drkn Dstr Scln Rlf ChAm InvT RplS RplM Pncl StrP PprB BrsS BrsD Txtr Grn HghA Intn Brgh Clr StrS StDt Sftn EdgT EdgI Pstr Dfnt TxtC ShdI DrcB Strg Blnc BlcI WhtI DrkI LghI StrW Grns GlwA ClrA ChrA ChlA FrgL BckL WhtL BlcL ImgB Dnst FbrL CrcS CrcD CrcB TlSz GrtW LghG SqrS".split(" "); -x.GEfc.QE.prototype.f=function(D){for(var M in this.sD){var s;if(x.GEfc.a8N.indexOf(M)!=-1)s=D[M].v; -else if(M=="TxtT")s=bT.Pi.indexOf(D[M].v[M]);else if(M=="BrsT")s=bT.yR.indexOf(D[M].v[M]);else if(M=="LghD")s=bT.af.indexOf(D[M].v[M]); -else if(M=="LghP")s=bT.rT.indexOf(D[M].v[M]);else if(M=="Grnt")s=bT.wr.indexOf(D[M].v[M]);else if(M=="ScrT")s=bT.zL.indexOf(D[M].v[M]); -else if(M=="SDir")s=bT.Os.indexOf(D[M].v.StrD);this.sD[M].f(s)}};x.GEfc.QE.prototype.v=function(){var D=bT.Cr(this.hB); -for(var M in this.sD){var s=this.sD[M].v();if(x.GEfc.a8N.indexOf(M)!=-1)D[M].v=s;else if(M=="TxtT")D[M].v[M]=bT.Pi[s]; -else if(M=="BrsT")D[M].v[M]=bT.yR[s];else if(M=="LghD")D[M].v[M]=bT.af[s];else if(M=="LghP")D[M].v[M]=bT.rT[s]; -else if(M=="Grnt")D[M].v[M]=bT.wr[s];else if(M=="ScrT")D[M].v[M]=bT.zL[s];else if(M=="SDir")D[M].v.StrD=bT.Os[s]}return D}; -x.GEfc.QE.prototype._=function(){for(var D in this.sD)this.sD[D]._()};x.blnc=function(){x.call(this); -var D=this.k;this.fW=null;this.oF=new hd([12,12],[[19,6,0],[19,6,1],[19,6,2]]);this.oF.l(U.E.M,this.z9,this); -D.appendChild(this.oF.k);this.rG=[];for(var K=0;K<3;K++){var M=new ag(iA.yy[K],-100,100);M.l(U.E.M,this.Di,this); -this.rG.push(M);D.appendChild(M.k)}this.p3=new a0([13,4]);this.p3.l(U.E.M,this.Di,this);D.appendChild(this.p3.k)}; -x.blnc.prototype=new x;x.blnc.prototype._=function(){this.oF._();for(var K=0;K<3;K++)this.rG[K]._(); -this.p3._()};x.blnc.prototype.f=function(D){this.fW=JSON.parse(JSON.stringify(D));this.z9()};x.blnc.prototype.v=function(D){var M=["ShdL","MdtL","HghL"],s=this.fW[M[this.oF.v()]].v; -for(var K=0;K<3;K++)s[K].v=this.rG[K].v();this.fW.PrsL.v=this.p3.v();return JSON.parse(JSON.stringify(this.fW))}; -x.blnc.prototype.z9=function(D){var M=["ShdL","MdtL","HghL"],s=this.fW[M[this.oF.v()]].v;for(var K=0; -K<3;K++)this.rG[K].f(s[K].v);this.p3.f(this.fW.PrsL.v)};x.brit=function(){x.call(this,"brit");this.Lu.push(new ag([12,2],-150,150,"")); -this.Lu.push(new ag([12,3,0],-100,100,""));this.Lu.push(new a0([12,3,1]));this.aR()};x.brit.prototype=new x; -x.brit.prototype.CT=function(D,M){M[0]=D.Brgh?D.Brgh.v:0;M[1]=D.Cntr?D.Cntr.v:0;M[2]=D.useLegacy?D.useLegacy.v:!1}; -x.brit.prototype.WV=function(D,M){D.Brgh.v=M[0];D.Cntr.v=M[1];D.useLegacy.v=M[2]};x.curv=function(){x.call(this); -this.value=null;this.eY=null;var D=this.k;this.pc=new hd([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5]]); -this.pc.l(U.E.M,this.Xm,this);D.appendChild(this.pc.k);this.Ov=new hd(null,["Spline","Sketch"]);this.Ov.l(U.E.M,this.amv,this); -D.appendChild(this.Ov.k);this.l4=new b_;this.l4.l(U.E.M,this.s$,this);D.appendChild(this.l4.k);this.RK=null; -this.ap8=0;this.Ge=0;this.ac=new bW("Sample from image",["-\u2195","#000000","#888888","#ffffff"]);D.appendChild(this.ac.k)}; -x.curv.prototype=new x;x.curv.prototype._=function(){this.pc._()};x.curv.prototype.amv=function(D){var M=cg.Gm(this.value,0),s=M.length==256?1:0,F=this.Ov.v(); -if(s==F)return;var X=fR.Cr("curv");if(F==1){var d=[];for(var K=0;K<256;K++)d.push(K);cg.Sq(X,0,d)}this.f(X); -this.Di()};x.curv.prototype.s$=function(){cg.Sq(this.value,this.pc.v(),this.l4.v());this.Di()};x.curv.prototype.Xm=function(){var D=this.pc.v(),M=cg.Gm(this.value,D),s=M.length==256?1:0; -this.Ov.f(s);if(this.eY)this.l4.Md(this.eY[D],this.eY[4]*[1,.33,.33,.33][D],["#ccc","#fcc","#cfc","#ccf"][D]); -this.l4.f(M)};x.curv.prototype.lV=function(){return!0};x.curv.prototype.Ed=function(D,M,s,F,X){var d=this.value; -this.value=fR.Cr("curv");this.Di();var V=T.N5.Ss(D,X,1),$=this.RK=[V>>>16&255,V>>>8&255,V&255];this.ap8=X.y; -if(this.ac.v()==0){var w=($[0]+$[1]+$[2])/3,q=this.pc.v(),u=cg.Gm(d,q),B=q==0?w:$[q-1],r=-1;for(var K=0; -K>>16&255,V>>>8&255,V&255],w=e.DK($[0]/255,$[1]/255,$[2]/255); -this.oF.f(1+Math.round(w.WQ*6)%6);this.f(d);this.Di();this.SU=X.x;this.a1J=this.NX.v()};x.hue2.prototype.Hi=function(D,M,s,F,X){if(this.SU!=null){var d=X.x-this.SU; -d=Math.max(-100,Math.min(100,this.a1J+.5*d));this.NX.f(d);this.Tx()}};x.hue2.prototype.q_=function(D,M,s,F,X){this.SU=null}; -x.hue2.prototype.f=function(D){this.value=JSON.parse(JSON.stringify(D));this.Xm()};x.hue2.prototype.v=function(D){return JSON.parse(JSON.stringify(this.value))}; -x.levl=function(){x.call(this);this.value=null;this.eY=null;this.J$=[new eo(0,0),new eo(0,0),new eo(0,0),new eo(0,0),new eo(0,0)]; -this.w8=-1;this.Fb=this.T6.bind(this);this.Fp=this.bh.bind(this);var D=this.k;this.pc=new hd([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5]]); -this.pc.l(U.E.M,this.Xm,this);D.appendChild(this.pc.k);var M=U.p("div","");D.appendChild(M);var s=U.p("div",""); -D.appendChild(s);this.ZQ=U.p("canvas");M.appendChild(this.ZQ);this.DO=this.ZQ.getContext("2d");this.UN=new eo(256,120); -this.ZQ.setAttribute("style","display:block");U.ts(this.ZQ,this.UN.x,this.UN.y,this.DO);U.kk(this.ZQ); -U.EC(this.ZQ,this.nT.bind(this));this.EW=U.p("canvas","");s.appendChild(this.EW);this.Lm=this.EW.getContext("2d"); -this.pD=new eo(this.UN.x,40);this.EW.setAttribute("style","display:block");U.ts(this.EW,this.pD.x,this.pD.y,this.Lm); -U.kk(this.EW);U.EC(this.EW,this.a42.bind(this));var F=this.a1X=[];for(var K=0;K<5;K++){var X=new gg(null,null,3); -F.push(X);X.l(U.E.M,this.a8T,this);(K<2||K==4?M:s).appendChild(X.k)}M.appendChild(F[1].k);F[4].k.setAttribute("style","margin: 0 4.7em"); -F[3].k.setAttribute("style","margin:0 0 0 13em");this.ac=new bW("Sample from image",["#000000","#888888","#ffffff"]); -D.appendChild(this.ac.k)};x.levl.prototype=new x;x.levl.prototype._=function(){this.pc._()};x.levl.prototype.a8T=function(D){var M=[]; -for(var K=0;K<5;K++){var s=255,F=1;if(K==4){s=999;F=100}var X=parseFloat(this.a1X[K].v());M[K]=Math.max(0,Math.min(s,X*F))}f6.Sq(this.value,this.pc.v(),M); -this.Xm();this.Di()};x.levl.prototype.Xm=function(D){var M=this.UN.x,s=this.UN.y,F=this.pc.v(),X=this.DO; -X.clearRect(0,0,M,s);X.fillStyle="#cccccc";X.fillRect(8,8,M-16,s-16-8);if(this.eY){if(F==0){this.eY[0].fill(0); -var d=JSON.parse(JSON.stringify(this.value));f6.Sq(d,0,[0,255,0,255,100]);var V=iA.IC("levl",d),$=[V.ay,V.AN,V.cZ]; -for(var w=0;w<3;w++){var q=this.eY[1+w],u=$[w];for(var K=0;K<256;K++)this.eY[0][u[K]]+=q[K]}}var B=this.eY[F],r=0; -for(var K=0;K>>16&255,$>>>8&255,$&255];for(var K=0;K<3; -K++){var q=f6.Gm(d,1+K);if(V==0)q[0]=w[K];if(V==1){var u=Math.log(w[K]/255)/Math.log((w[0]+w[1]+w[2])*.333/255); -q[4]=Math.min(999,Math.max(10,Math.round(100*u)))}if(V==2)q[1]=w[K];f6.Sq(d,1+K,q)}this.f(d);this.Di()}; -x.levl.prototype.f=function(D){this.value=D;this.Xm()};x.levl.prototype.Md=function(D){this.eY=D;this.Xm()}; -x.levl.prototype.v=function(D){return JSON.parse(JSON.stringify(this.value))};x.phfl=function(){x.call(this,"phfl"); -this.Lu.push(new c_);this.Lu.push(new ag([12,74],0,100,"%"));this.Lu.push(new a0([13,4]));this.aR()}; -x.phfl.prototype=new x;x.phfl.prototype.CT=function(D,M){M[0]=D.Clr.v;M[1]=D.Dnst.v;M[2]=D.PrsL.v};x.phfl.prototype.WV=function(D,M){var s=e.h.KO(M[0]),F=D.Clr.v,X=e.g$(s.i,s.q,s.P); -F.Lmnc.v=X.nM;F.A.v=X.iD;F.B.v=X.P;D.Dnst.v=M[1];D.PrsL.v=M[2]};x.vibA=function(){x.call(this,"vibA"); -this.Lu.push(new ag([12,13],-100,100,null));this.Lu.push(new ag([12,9],-100,100,null));this.aR()};x.vibA.prototype=new x; -x.vibA.prototype.CT=function(D,M){M[0]=D.vibrance?D.vibrance.v:0;M[1]=D.Strt?D.Strt.v:0};x.vibA.prototype.WV=function(D,M){D.vibrance.v=M[0]; -D.Strt.v=M[1]};x.thrs=function(){x.call(this,"thrs");this.Lu.push(new ag([4,13],1,255,null));this.aR()}; -x.thrs.prototype=new x;x.thrs.prototype.CT=function(D,M){M[0]=D.Lvl.v};x.thrs.prototype.WV=function(D,M){D.Lvl.v=M[0]}; -x.mixr=function(){x.call(this);var D=this.k;this._E=[];this.V$=null;this.oF=new hd([12,4],[[13,1,1],[13,1,4],[13,1,5]]); -this.oF.l(U.E.M,this.WF,this);D.appendChild(this.oF.k);U.I3(D);this.In=new a0([12,60]);D.appendChild(this.In.k); -this.In.l(U.E.M,this.WF,this);for(var K=0;K<4;K++){var M=new ag([[13,1,1],[13,1,4],[13,1,5],[13,2]][K],-200,200,"%"); -M.l(U.E.M,this.WF,this);this._E.push(M);D.appendChild(M.k)}};x.mixr.prototype=new x;x.mixr.prototype._=function(){this.oF._(); -this.In._();for(var K=0;K<4;K++)this._E[K]._()};x.mixr.prototype.f=function(D){this.V$=JSON.parse(JSON.stringify(D)); -this.z9()};x.mixr.prototype.v=function(D){return JSON.parse(JSON.stringify(this.V$))};x.mixr.prototype.WF=function(D){if(D.target!=this.oF){var M=iA.bO(this.V$); -if(D.target==this.In){M.In=this.In.v();if(M.In)M.H=[40,40,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];else M.H=[100,0,0,0,0,0,100,0,0,0,0,0,100,0,0,0,0,0,0,0]}else{var s=(M.In?0:this.oF.v())*5,K=this._E.indexOf(D.target); -M.H[s+(K<3?K:4)]=D.target.v()}this.V$=iA.YC(M)}this.z9();this.Di()};x.mixr.prototype.z9=function(){var D=iA.bO(this.V$); -this.In.f(D.In);var M=(D.In?0:this.oF.v())*5;for(var K=0;K<4;K++)this._E[K].f(D.H[M+(K<3?K:4)])};x.post=function(){x.call(this,"post"); -this.Lu.push(new ag([4,1],2,255,null));this.aR()};x.post.prototype=new x;x.post.prototype.CT=function(D,M){M[0]=D.Lvls.v}; -x.post.prototype.WV=function(D,M){D.Lvls.v=M[0]};x.clrL=function(){x.call(this,"clrL");this.Lu.push(new bQ("LUTs")); -this.aR()};x.clrL.prototype=new x;x.clrL.prototype.CT=function(D,M){M[0]=D};x.clrL.prototype.WV=function(D,M){var s=M[0]; -for(var F in s)D[F]=s[F]};x.clrL.prototype.mj=function(D,M){if(M==bd.z7||M==bd.mB)this.Lu[0].ZT(D.aqf)}; -x.rplc=function(){x.call(this,"rplc");this.Lu.push(new ag([12,92],0,200));this.Lu.push(new c_);this.Lu.push(new ag([12,8],-180,180)); -this.Lu.push(new ag([12,9],-100,100));this.Lu.push(new ag([12,10],-100,100));this.aR()};x.rplc.prototype=new x; -x.rplc.prototype.CT=function(D,M){M[0]=D.Fzns.v;M[1]=D.Mxm.v;M[2]=D.H.v;M[3]=D.Strt.v;M[4]=D.Lght.v}; -x.rplc.prototype.WV=function(D,M){function s(X,d){d.Lmnc.v=X.nM;d.A.v=X.iD;d.B.v=X.P}D.Fzns.v=M[0];D.H.v=M[2]; -D.Strt.v=M[3];D.Lght.v=M[4];var F=e.h.KO(M[1]),X=e.g$(F.i,F.q,F.P);s(X,D.Mnm.v);s(X,D.Mxm.v)};x.fade=function(){x.call(this,"fade"); -this.Lu.push(new ag([12,0],0,100,"%"));this.Lu.push(new hd([12,19,0],eF.jo,!1,eF.$k));this.aR()};x.fade.prototype=new x; -x.fade.prototype.CT=function(D,M){M[0]=D.Opct.v.val;M[1]=eF.w4.indexOf(D.Md.v.BlnM)};x.fade.prototype.WV=function(D,M){D.Opct.v.val=M[0]; -D.Md.v.BlnM=eF.w4[M[1]]};x.aply=function(){x.call(this,"aply");this.Lu.push(new hd([0,3],[]));this.Lu.push(new hd([12,4],["RGB"].concat(iA.yy).concat(["Transparency"]))); -this.Lu.push(new a0([4,11]));this.Lu.push(new hd([12,19,0],eF.jo,!1,eF.$k));this.Lu.push(new ag([12,0],0,100,"%")); -this.Lu.push(new a0("Preserve Transparency"));this.aR([2]);this._r=null};x.aply.prototype=new x;x.aply.prototype.CT=function(D,M,s){if(s){var F=s[2].N,X=this._r=[]; -for(var K=0;K\t\t\t\t FreePremium \t\t\t\t Full Functionality\u2713\u2713 \t\t\t\t No Ads \u2713 \t\t\t\t Steps in History3060 \t\t\t\t\t\t\t\t\t"; -D.appendChild(s);var X=this.ajV=[[9,30,1],[10,90,1],[40,365,1],[15,30,5],[30,90,5],[120,365,5],[50,30,20],[100,90,20],[400,365,20],[40,30,1e3],[80,90,1e3],[300,365,1e3],[100,30,5e3],[200,90,5e3],[700,365,5e3],[200,30,2e4],[400,90,2e4],[1400,365,2e4]]; -this.lA=[];for(var K=0;K60){alert("Too long email address"); -return}if(F.length>600){alert("Too many team members");return}F=F.split(",").join(" ").trim();F=F.replace(/\s+/g," "); -if(F=="")F=[];else F=F.split(" ");var X=cQ._Z();if(X==null)X={};if(X.acc==null)X.acc={};X.acc.team={jin:M,ldr:s,mmb:F}; -cQ.hV(X,this.On.bind(this));alert("Saved!");this.Pf()};eQ.P1.prototype.a4g=function(D){var M=this.PH.v().trim(); -if(!cQ.Pb()){alert("You have to log in first.");return}if(cQ.C5().distrib=="0"){alert("Order a distributor account first."); -return}var s=cQ._Z();if(s==null)s={};if(s.acc==null)s.acc={};if(M=="")delete s.acc.dname;else s.acc.dname=M; -cQ.hV(s,this.On.bind(this));alert("Saved!");this.Pf()};eQ.P1.prototype.Pf=function(){if(cQ.Pb()){var D=cQ.C5(); -if(D==null)return;this.sE.innerHTML=""+D.name+" "+D.email+"
"}else this.sE.innerHTML="Logging In is free. Your environment settings will be synchronized across all devices.
"; -var M=cQ.Pb()&&cQ.N_();this.iQ.k.style.display=M?"block":"none";if(M){var s=parseInt(D[U.sl("!&|'&50")])-Date.now()*(1/1e3),F=parseInt(D.ptype),X; -if(F==-1)X="member of a team";else if(F==1)X="Single user";else X="Team of "+F;this.iQ.di("Premium active for "+Math.round(s/(60*60*24))+" more days! ("+X+")")}var d=cQ.Pb()&&D.distrib*1e3>Date.now(); -this.$H.k.style.display=d?"block":"none";if(d){var s=parseInt(D.distrib)-Date.now()/1e3,F=parseInt(D.ptype); -this.$H.di("Distributor active for "+Math.round(s/(60*60*24))+" more days! ("+F+" visitos)")}var V=cQ._Z(); -if(V&&V.acc&&V.acc.team){var $=V.acc.team;this.ax.f($.jin);this.$j.f(!$.jin);this.qQ.f($.ldr);this.QZ.value=$.mmb.join(", ")}else{this.ax.f(!0); -this.$j.f(!1);this.qQ.f("");this.QZ.value=""}if(V&&V.acc&&V.acc.dname)this.PH.f(V.acc.dname);else this.PH.f("")}; -eQ.P1.prototype.aeM=function(D,M){var s=U.p("table");s.innerHTML="\t\t\t\t\t\t\t\t\t "+(D==3?"":"")+" \t\t\t\t
30 days90 days365 days
\t\t\t"; -for(var K=0;K";for(var d=0;dComGate pamyments, a.s.

\t\t
    \t\t\t
  • ComGate Payments, a.s.
  • \t\t\t
  • Go\u010D\xE1rova t\u0159\xEDda 1754 / 48b, Hradec Kr\xE1lov\xE9
  • \t\t\t
  • E-mail: platby-podpora@comgate.cz, Tel: +420 228 224 267
  • \t\t
\t\t\t"; -eQ.aa8="\t\t

Contact

\t\t

Photopea.com is operated by Ivan Kuckir (I\u010C 04498411, Tax ID CZ9011014309).

\t\t
    \t\t\t
  • Address: H\xE1lkova 483, 517 41 Kostelec nad Orlic\xED, Czech Republic
  • \t\t\t
  • E-mail: support@photopea.com, Phone number: +420 604 592 737
  • \t\t
\t\t

Terms of Service

\t\t\t\t

What are these Terms?

\t\t

\t\tThese terms form a binding contract between you and us (\"these Terms\") regarding your access to and use of any of our web sites, \t\tweb applications, services, products and Software that contain a link to these Terms (individually and collectively, the \"Service\"). \t\t

\t\t\t\t

Changes to the Service or these Terms

\t\t

\t\tWe may make changes to, update (or not update) or discontinue any part, element, functionality, availability or offering of the Service.\t\tWe may also make changes or updates to these Terms at any time and for any reason in our sole discretion, including complying with applicable law. \t\tIf we make any material changes to these Terms, we\u2019ll provide notice to you in any way we deem reasonable including, for example, \t\tby posting a notice of the change on our web site(s) or in-service, or by sending a notice to your email address if you\u2019ve given it to us.\t\t

\t\t\t\t

Your content

\t\t

\t\tThese Terms don\u2019t grant us (and we don\u2019t claim) any ownership rights in Your Content.\t\t

\t\t

\t\tPosting Your Content. By sharing, publishing (e.g. through Imgur), distributing or allowing others to \t\taccess Your Content through the Service You are solely responsible for the consequences of doing so and you acknowledge \t\tand agree that Your Content may be viewed worldwide. If you choose to make your personal information publicly available through the Service, \t\tyou do so at your own risk. You warrant that you have obtained all necessary licenses, \t\trights and permissions to use and grant all of the rights granted in these Terms\t\tto Your Content and that you will comply with any requirements or restrictions imposed by them.\t\t

\t\t\t\t\t\t

Registering for the Service

\t\t

\t\tYou may be required or permitted to register with us to access the Service or certain areas of the Service.\t\tYou agree to immediately notify us of any unauthorized use of your registration information (including all purchases). \t\tYou may also be able to sign into the Service by using a third-party social networking platform account \t\t(such as Facebook, Google+ or Twitter). Your registration information (including your user name and password, \t\tand any social networking account with which you sign into the Service) is for your personal use only, and not for use by any other person. \t\tYou are responsible for maintaining the confidentiality of any password you may use to access the Service, and agree not to transfer your password or user name\t\tto any third party. You are fully responsible for all use of your registration information, \t\tand to ensure that you \"log out\"/exit from your account with the Service (if applicable) \t\tat the end of each session. We are not liable for any loss or damage arising from your failure to comply with any of the foregoing obligations. \t\t

\t\t\t\t

Privacy Policy

\t\t\t\t

\t\tBy voluntarily providing us with Personal Data, you are consenting to our use of it in accordance with this Privacy Policy. \t\tIf you provide Personal Data to the Service, you acknowledge and agree that such Personal Data may be transferred from your current location to our servers.\t\t

\t\t

Computer information collected:

\t\t\t\t
    \t\t\t\t
  • Third party tracking tools. We use third party tracking tools to improve the performance and features of the Service (e.g. Google Analytics).\t\t\t\tSuch tools are created and managed by parties outside our control. As such, we are not responsible for what information is actually captured by such third parties \t\t\t\tor how such third parties use and protect that information.
  • \t\t\t\t\t\t\t\t
  • Name and email for the authorization. You may use third-party services (such as Facebook or Google) to log into the Service. \t\t\t\tIn such case, we store your name and email address, that were provided to us by third-party services.
  • \t\t\t\t\t\t\t\t
  • Environment settings. When you use the Service, environment settings (e.g. current language, current color theme) \t\t\t\tare stored at your computer in \"localData\".\t\t\t\tIt helps us provide you the same environment when you visit the Service next time.
    \t\t\t\tWhen you log into the Service, your environemnt settings are stored at our server. \t\t\t\t
  • \t\t\t\t\t\t\t\t
  • Payer information. When you make an order inside the Service and you pay through a third-party service (e.g. PayPal), \t\t\t\twe may store the information about the payer, that we may receive from the third-party service \t\t\t\t(it usually contains the name, the email address and the physical address of the payer, but no card nambers or passwords).
  • \t\t
\t\t\t\t"; -function cw(){hS.call(this,[11,14],"addguides");this.DY;this.kL={u8:{XE:0}};this.U_=null;var D=U.p("div","form"); -this.body.appendChild(D);this.qu=new gg([22,4,0],null,16);this.qu.l(U.E.M,this.gV,this);this.T5=new gg([22,4,1],null,16); -this.T5.l(U.E.M,this.gV,this);this.J5=new hd(null,e.fk.U$);this.J5.l(U.E.M,this.gV,this);D.appendChild(this.qu.k); -D.appendChild(this.J5.k);U.I3(D);D.appendChild(this.T5.k);this.Q4=new aJ("OK",!0,null,!0);this.Q4.l("click",this.jt,this); -D.appendChild(this.Q4.k);this.l("closebtn",this.aaf,this)}cw.prototype=new hS;cw.prototype.Oa=function(D,M){return D!=null}; -cw.prototype.lo=function(){return!0};cw.prototype._=function(){hS.prototype._.call(this);this.qu._(); -this.T5._();this.J5._()};cw.prototype.mj=function(D,M){var s=D.u8.XE;this.kL.u8.XE=s;this.J5.f(s)};cw.prototype.Pf=function(D,M){this.DY=D; -this.U_=JSON.stringify(D.C8());this.rg()};cw.prototype.rg=function(){var D=this.DY,M=D.Cg,s=function(F,X,D,d,V){var $=[]; -for(var K=0;KV)X=d*V;else d=X/V; -this.pV.setAttribute("style","display: block; width: "+Math.round(X)+"px; height:"+Math.round(d)+"px;")}; -hN.prototype.a3w=function(D){console.log("error",D);alert(dY.get([21,6]));this.close()};hN.prototype.ahR=function(D){if(this.stream!=null){var M=this.stream.getTracks(); -for(var K=0;K>8&255,d=s>>16&255;this.nY={i:d/255,q:X/255,P:F/255}; -this.update()};fC.prototype.a35=function(D){var M=this.Ha,s=this.GG(parseInt(M[0].v())),F=this.GG(parseInt(M[1].v())),X=this.GG(parseInt(M[2].v())); -this.nY={i:s/255,q:F/255,P:X/255};this.update()};fC.prototype.a34=function(D){var M=this._B,s=this.RT(parseInt(M[0].v())/360),F=this.RT(parseInt(M[1].v())/100),X=this.RT(parseInt(M[2].v())/100); -this.nY=e.NW(s,F,X);this.update()};fC.prototype.za=function(D){var M;if(D.currentTarget==this.wF)M=this.wF.v(); -else{M=D.currentTarget==this.qu?this.qu.v():this.b1.value;if(M.charAt(0)=="#")M=M.slice(1);if(M.length==3)M=M[0]+M[0]+M[1]+M[1]+M[2]+M[2]; -M=e.JH(M)}this.nY={i:(M>>16&255)/255,q:(M>>8&255)/255,P:(M&255)/255};this.update()};fC.prototype.xm=function(D){var M=D.i,s=D.q,F=D.P; -return Math.round(M*255)<<16|Math.round(s*255)<<8|Math.round(F*255)};fC.prototype.jt=function(D){this.a02(); -var M=this.xm(this.nY);this.j6(M);this.close();this.Lf=!1;this.nY=null};fC.prototype.co=function(D){this.a02(); -if(this.bH)this.j6(this.xm(this.pB));this.Lf=!1;this.nY=null};fC.prototype.a02=function(D){var M=new W(U.E.Q,!0); -M.data={e:U.V.p5};this.n(M)};fC.prototype.mj=function(D,M){if(M!=bd.s7)return;var s=D.Yr;this.wF.f(s); -if(this.nY!=null){this.nY={i:(s>>16&255)/255,q:(s>>8&255)/255,P:(s>>0&255)/255};this.update()}};fC.prototype.Pf=function(D,M){var s=M.qi,F={i:(s>>16&255)/255,q:(s>>8&255)/255,P:(s>>0&255)/255}; -if(this.nY==null){var X=new W(U.E.Q,!0);X.data={e:U.V.tp,BA:"crosshair",push:!0};this.n(X);this.fI=!1; -this.j6=M.yC;this.bH=!1;this.Lf=M.p0;this.pB=JSON.parse(JSON.stringify(F));this.a0l.setAttribute("style","height:3em;background-color:#"+e.Gw(s)+";")}this.nY=F; -this.update()};fC.prototype.update=function(){var D=this.nY,M=this.xm(D),s=this.Ha;s[0].f(Math.round(D.i*255)); -s[1].f(Math.round(D.q*255));s[2].f(Math.round(D.P*255));this.qu.f(e.Gw(M));this.b1.value="#"+e.Gw(M); -this.a19.setAttribute("style","height:3em;background-color:#"+e.Gw(M)+";");var F=e.DK(D.i,D.q,D.P);s=this._B; -s[0].f(Math.round(F.WQ*360));s[1].f(Math.round(F.pI*100));s[2].f(Math.round(F.ok*100));this.Sa.f(D); -if(this.Lf){this.j6(this.xm(this.nY));this.bH=!0}};fC.prototype.GG=function(D){return Math.max(0,Math.min(255,D))}; -fC.prototype.RT=function(D){return Math.max(0,Math.min(1,D))};function g4(){hS.call(this,[11,2],"contoureditor"); -this.a2I=null;this.yr=null;this.response=null;this.oa=U.p("div","cell");this.body.appendChild(this.oa); -this.p6=U.p("div","cell padded");this.body.appendChild(this.p6);var D=U.p("div","bordered padded vmargin"); -this.oa.appendChild(D);this.l4=new b_;this.l4.l(U.E.M,this.s$,this);D.appendChild(this.l4.k);this.Q4=new aJ("OK",!0,null,!0); -this.Q4.l("click",this.close,this);this.p6.appendChild(this.Q4.k);this.coords=U.p("div","");this.coords.setAttribute("style","width:250px"); -this.oa.appendChild(this.coords);this.JC=new gg("X (in)","%",4);this.zo=new gg("Y (out)","%",4);this.$$=new a0([19,3,0]); -this.JC.l(U.E.M,this.AZ,this);this.zo.l(U.E.M,this.AZ,this);this.$$.l(U.E.M,this.AZ,this);this.coords.appendChild(this.JC.k); -this.coords.appendChild(this.$$.k);this.coords.appendChild(this.zo.k);this.l("closebtn",this.al,this)}g4.prototype=new hS; -g4.prototype._=function(){hS.prototype._.call(this);this.$$._()};g4.prototype.s$=function(D){this.yr.Crv.v=this.l4.v(); -this.response(this.yr);this.a$()};g4.prototype.al=function(D){this.response(this.a2I)};g4.prototype.Pf=function(D,M){this.a2I=JSON.parse(JSON.stringify(M.Ar)); -this.yr=M.Ar;this.response=M.response;this.l4.f(this.yr.Crv.v);this.a$()};g4.prototype.a$=function(){var K=this.l4.b$(); -this.coords.setAttribute("class",K==-1?"disabled":"");if(K==-1)return;var D=this.yr.Crv.v[K].v;this.JC.f(Math.round(D.Hrzn.v*(100/255))); -this.zo.f(Math.round(D.Vrtc.v*(100/255)));this.$$.f(D.Cnty.v)};g4.prototype.AZ=function(D){var K=this.l4.b$(),M=this.yr.Crv.v[K]; -M.v.Hrzn.v=parseFloat(this.JC.v())*(255/100);M.v.Vrtc.v=parseFloat(this.zo.v())*(255/100);M.v.Cnty.v=this.$$.v(); -this.yr.Crv.v.sort(function(s,F){return s.v.Hrzn.v-F.v.Hrzn.v});this.l4.f(this.yr.Crv.v,this.yr.Crv.v.indexOf(M)); -this.a$();this.response(this.yr)};function h5(){hS.call(this,[11,3],"csize");this.Tz=0;this.Kw=U.p("div","form"); -this.Kw.setAttribute("style","width:22em");this.body.appendChild(this.Kw);this.Q3=new cJ(!0,!0,!0,!0); -this.Q3.afq(!1);this.Kw.appendChild(this.Q3.k);this.BP=new aP("Align with",[[8,7],[12,6]]);this.BP.l(U.E.M,this.a4O,this); -this.RZ=new hY([12,23,2],41);this.Kw.appendChild(this.RZ.k);this.RZ.f(4);this.fx=new bF(!1);this.fx.alV(new eo(0,0)); -this.gu=new aJ("OK",!0,null,!0);this.gu.l("click",this.jt,this);this.body.appendChild(this.gu.k)}h5.prototype=new hS; -h5.prototype.Oa=function(D,M){return D!=null};h5.prototype.lo=function(){return!0};h5.prototype.a4O=function(){var D=[this.RZ.k,this.fx.k]; -this.Kw.removeChild(D[this.Tz]);this.Tz=this.BP.v();this.Kw.appendChild(D[this.Tz])};h5.prototype._=function(){hS.prototype._.call(this); -this.Q3._();this.BP._();this.RZ._();this.fx._()};h5.prototype.jt=function(D){var M=this.Q3.v(),s=M.x,F=M.y,X=new W(U.E.qZ,!0); -X.data=T.I4.OB(s,F,this.RZ.v());this.close();this.n(X)};h5.prototype.Pf=function(D,M){this.Q3.f(new eo(D.d,D.w),D.Gs)}; -function bD(){hS.call(this,[11,4],"duplinto");this.zm=null;this.V3=null;this.p9=null;var D=U.p("div","form"); -D.setAttribute("style","max-width:26em");this.body.appendChild(D);this.Sd=new hd([12,43],["abc","def"]); -this.Sd.l(U.E.M,this.WF,this);D.appendChild(this.Sd.k);U.I3(D);this.tG=new hd("Artboard",["abc","def"]); -this.tG.l(U.E.M,this.WF,this);D.appendChild(this.tG.k);U.I3(D);this.wt=new gg([12,48],null,14);D.appendChild(this.wt.k); -this.Q4=new aJ("OK",!0,null,!0);this.Q4.l("click",this.jt,this);D.appendChild(this.Q4.k)}bD.prototype=new hS; -bD.prototype.lo=function(){return!0};bD.prototype._=function(){hS.prototype._.call(this);this.Sd._(); -this.wt._()};bD.prototype.WF=function(D){if(D&&D.target==this.tG)return;var M=this.Sd.v(),s=this.V3[M],F=this.zm,X=s!=null&&s.add.artd!=null; -for(var K=0;K>>1,D.w-M>>>1,M,M),$=D.N[0],w=$.buffer,q=$.rect; -$.rect=V;$.buffer=X;for(var u=0;u0)if(Math.abs((d[K-1].v.Lctn.v+(B.Lctn.v-d[K-1].v.Lctn.v)*B.Mdpn.v/100)/4096-F)<.01)q=K}if(X>0)for(var K=0; -K0)if(Math.abs((V[K-1].v.Lctn.v+(r.Lctn.v-V[K-1].v.Lctn.v)*r.Mdpn.v/100)/4096-F)<.01)u=K}if(w==null&&$==null&&q==-1&&u==-1){if(X<0){var B={t:"Objc",v:{classID:"TrnS",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Lctn:{t:"long",v:0},Mdpn:{t:"long",v:50}}}; -B.v.Lctn.v=Math.round(F*4096);d.push(B);d.sort(this.e6);$=B}if(X>1){var V=this.nY.Clrs.v,P=e.h.Z8(V,this.qB.Yr,this.qB.hE),A=e.h.VU(this.nY,P,F),r={t:"Objc",v:{classID:"Clrt",Clr:{t:"Objc",v:e.h.zQ({i:A&255,q:A>>8&255,P:A>>16&255})},Type:{t:"enum",v:{Clry:"UsrS"}},Lctn:{t:"long",v:0},Mdpn:{t:"long",v:50}}}; -r.v.Lctn.v=Math.round(F*4096);V.push(r);V.sort(this.e6);w=r}}if(w!=null)u=-1;if($!=null)q=-1;if(w!=null||$!=null||q>-1||u>-1){this.iV=$; -this.bn=w;this.qh=q;this.z0=u;this.HT();this.Xm();U.VW(window,this.Fb);U.We(window,this.Fp)}};bv.prototype.T6=function(D){var M=U.hK(D,this.ZQ),s=this.W$,F=(M.x*U.F()-s.x)/s.d,X=(M.y*U.F()-s.y)/s.w; -F=Math.max(0,Math.min(1,F));var d=this.nY.Trns.v,V=this.nY.Clrs.v;if(this.iV!=null){var $=this.iV.v; -$.Lctn.v=Math.round(4096*F);var w=d.indexOf(this.iV);if(w!=-1&&X<-1&&d.length>1)d.splice(w,1);if(w==-1&&X>-1)d.push(this.iV); -d.sort(this.e6)}if(this.bn!=null){var q=this.bn.v;q.Lctn.v=Math.round(4096*F);var u=V.indexOf(this.bn); -if(u!=-1&&X>1.5&&V.length>1)V.splice(u,1);if(u==-1&&X<1.5)V.push(this.bn);V.sort(this.e6)}if(this.qh>-1){var $=d[this.qh].v; -$.Mdpn.v=Math.max(5,Math.min(95,Math.round(100*(F*4096-d[this.qh-1].v.Lctn.v)/($.Lctn.v-d[this.qh-1].v.Lctn.v))))}if(this.z0>-1){var q=V[this.z0].v; -q.Mdpn.v=Math.max(5,Math.min(95,Math.round(100*(F*4096-V[this.z0-1].v.Lctn.v)/(q.Lctn.v-V[this.z0-1].v.Lctn.v))))}if(this.iV!=null||this.bn!=null||this.qh>-1||this.z0>-1){this.HT(); -this.Xm()}};bv.prototype.bh=function(D){U.kT(window,this.Fb);U.wH(window,this.Fp);if(Date.now()-this.Yk<300){if(this.z0!=-1||this.qh!=-1){var M=(this.z0!=-1?this.nY.Clrs.v[this.z0]:this.nY.Trns.v[this.qh]).v; -M.Mdpn.v=50;this.HT();this.Xm()}else if(this.bn!=null)this.oe.afS()}this.Yk=Date.now()};bv.prototype.e6=function(D,M){return D.v.Lctn.v-M.v.Lctn.v}; -function bn(){hS.call(this,[11,10],"isize");this.Kw=U.p("div","form");this.Kw.setAttribute("style","width:20em"); -this.body.appendChild(this.Kw);this.Q3=new cJ(!0,!0);this.Kw.appendChild(this.Q3.k);this.L1=new a0("Resample"); -this.L1.f(!0);this.Kw.appendChild(this.L1.k);this.L1.l(U.E.M,this.aj8,this);this.Ov=new hd([12,14,1],[[12,14,2],[12,14,3],"Bicubic Sharper"]); -this.Ov.f(1);this.Kw.appendChild(this.Ov.k);this.gu=new aJ("OK",!0,null,!0);this.gu.l("click",this.jt,this); -this.body.appendChild(this.gu.k)}bn.prototype=new hS;bn.prototype.Oa=function(D,M){return D!=null};bn.prototype.lo=function(){return!0}; -bn.prototype.aj8=function(D){var M=this.L1.v(),s=this.Q3,F=this.Ov;if(M)F.JU();else F.IJ();if(M)s.a8e(); -else s.a4v()};bn.prototype._=function(){hS.prototype._.call(this);this.Ov._();this.Q3._()};bn.prototype.jt=function(D){this.close(); -var M=this.Q3.v(),s=M.x,F=M.y,X=this.Ov.v();if(!this.L1.v())X=null;var d=new W(U.E.qZ,!0);d.data=T.I4.xg(s,F,this.Q3.c1(),X); -this.n(d)};bn.prototype.Pf=function(D,M){this.Q3.f(new eo(D.d,D.w),D.Gs)};function cY(){hS.call(this,"Import RAW","importraw"); -var D=U.p("div","flexrow"),M=U.p("div");M.setAttribute("style","margin-bottom: 1em");this.body.appendChild(D); -this.body.appendChild(M);var s=U.p("div","form");s.setAttribute("style","width:18em");D.appendChild(s); -var F=U.p("div","form");F.setAttribute("style","width:15em");D.appendChild(F);this.Nn=null;this.ao3=null; -this.UA=null;this.VI=null;this.a5V=[];var X=[];for(var K=0;K2){e.Te(V[2],u,2); -if(F>3){this.VI=[];for(var K=3;K0)s.textContent="\u2003";s.appendChild(this.e4[K].k);if(aX.Zv.indexOf(this.w4)!=-1){var F=new aJ("+"); -F.nG();F.k.style.float="right";s.appendChild(F.k);var X=new aJ("\u2B0D");X.nG();X.k.style.float="right"; -X.k.style["margin-right"]="2px";s.appendChild(X.k)}s.addEventListener("click",M,!1);D.appendChild(s)}}; -ft.tW=function(D,M){var s=M.getBoundingClientRect();return(D.clientY-s.top)/s.height};ft.prototype.a0s=function(D){var M=D.target.tagName.toLowerCase(); -if(M=="input"){return}if(M=="button"){var s=new W(U.E.u,!0),F=D.target.textContent=="+",X=F?0:ft.tW(D,D.target)<.5?-1:1; -if(F)s.data={e:"st_dupsingle",c:this.parent.data.c,pO:this.M7};else s.data={e:"st_movsingle",c:this.parent.data.c,pO:this.M7,aln:X}; -s.G=T.mE;s.rb=!0;this.n(s);s=new W("redrawall",!0);s.data={aln:X};this.n(s);return}U.al(D);this.eq(); -this.wJ=this.Ng.indexOf(D.currentTarget);this.n(new W("showme"))};ft.prototype.eq=function(){if(this.NZ.enab&&this.NZ.enab.v()==!1)this.$C({oK:"enab",H:!0})}; -ft.prototype.a4i=function(){var D=this.Ng[this.wJ];if(D)U.fN(D,"selected");return this.yP[this.wJ]}; -ft.prototype.aqp=function(D){var M={};for(var K=0;KM?Math.max(0,Math.min(50,(M-400)/2)):0)}; -iX.prototype.CI=function(D,M){this.Kw.setAttribute("style","width:"+Math.min(D,338)+"px");this.Kc.k.style.height=M-260+"px"; -var s=this.hs.k,F=s.parentNode;if(D<500){if(F!=null)this.E_.removeChild(s)}else{if(F==null)this.E_.appendChild(s)}this.hs.CI(D-360,M-35)}; -iX.prototype.uq=function(){this.hs.f(this.Q3.v())};iX.prototype.abC=function(D){var M=this.Kc.v(),s=iX.Nn[this.bC.v()].rG[M],F=s[4]; -if(F==0)F=72;var X=s[1],d=s[2],V=["px","%","mm","in"].indexOf(s[3]),$=[1,1,25.4/F,1/F][V];X/=$;d/=$; -this.Q3.f(new eo(Math.round(X),Math.round(d)),F);this.Q3.a7F(V);this.Kc.y7(M);this.uq()};iX.prototype.akg=function(D){var M=iX.Nn[this.bC.v()].rG,s=[],F=[],X=Math.round(106*U.F()),d=Math.round(106*U.F()),V=0; -for(var K=0;K"; -if(l&&l.url.v!="")u+="\n\t\n"; -u+="\n"}u+="\n\n";var p=e.U(Math.round(u.length*1.5)),k=t.lh(u,p,0);r["index.html"]=p.slice(0,k); -V=UZIP.encode(r);$=M+".zip"}else if(w.add.artd&&w.add.artd.Cnt.v>1&&F&&this.HK.v().pop()){var r={},P=new hk(0,0,w.d,w.w),A=w.tn(),S=w.root.children; -for(var K=0;K"; -if(X.r9){var d=D,V=M,$;if(F=="PDF"||X.YA){d=this.qW.x;V=this.qW.y}else{d=Math.min(D+20,this.qW.x);V=Math.min(M+20,this.qW.y)}this.OY.firstChild.setAttribute("style","display:block; width:"+d+"px; height:"+V+"px;")}else{if(X.YA){d=this.qW.x; -V=this.qW.y}else{var w=this.am4,q=w[0].Bi,d=q.d,V=q.w;this.kn.CI(Math.max(50,Math.min(d/U.F(),this.qW.x)),Math.max(50,Math.min(V/U.F(),this.qW.y)))}}var u=this.i_.byteLength,P=F+":"+B+64+"px;"+r+cz.ys(u)+""; -if(this.qW.x>200)P+=B+90+"px; opacity:"+.5+";"+r+u.toLocaleString()+" B";this.r7.innerHTML=P}; -cz.ys=function(D){var M=D.toString(2),s=0;while(s+101,E=""; -if(q&&M&&(w>4&&X*d>1024*1024||X*d*w>800*800*50)){var u=1;while(Math.max(X>>>u,d>>>u)>800)u++;var B=window.confirm("Your animation is large ("+X+" x "+d+" px). Press \"OK\" to scale it to "+(100>>>u)+"%. Press \"Cancel\" to keep the size."); -if(B){this.Q3.f(new eo(X>>>u,d>>>u),null,!0);X=X>>>u;d=d>>>u}}var r=s.add.artd,P=r!=null&&r.Cnt.v>1; -this.HK.ag$($,q,s.Iq.length!=0,P);var A=this.HK.v();this.i_=bo.Kq(s,$,X,d,A,this.kL);if(this.i_==null){this.Ab=null; -return}U.n2(this.OY);this.kn.Pv();var n=bo.GD($);if(n.YA){this.OY.innerHTML="
";E+="width:0px"}else if(n.r9){var _=X,l=d,b; -if($=="PDF"){b=URL.createObjectURL(new Blob([this.i_],{type:"application/pdf"}))}else{b=URL.createObjectURL(new Blob([this.i_],{type:"image/svg+xml"}))}this.OY.innerHTML=""}else{var y=this.am4=n.QK(this.i_),p=y[0].Bi,_=p.d,l=p.w; -this.kn.f(y,y.length>1?A[A.length-3]:0);this.OY.appendChild(this.kn.k);E="background: rgba(0,0,0,0);"}this.OY.setAttribute("style","display:block; background-size:"+16/U.F()+"px;"+E); -this.CI(this.wS,this.WQ)};function dK(){hS.call(this,[11,13],"shortcuts");var D=this.E_=U.p("div","scrollable"); -D.setAttribute("style","min-width:700px; max-height:500px; padding:1.5em");this.body.appendChild(D); -this.a9C()}dK.prototype=new hS;dK.prototype._=function(){hS.prototype._.call(this);this.a9C()};dK.prototype.a9C=function(){var D="
",M="",s=hn,F=s.hQ,X=s.Mr,d=s.CC; -M+="

Main Menu

";M+=D;M+=this.qX([[0,0],"---",[1,0],[F,s.O1],[1,2],[F,s.Zq],[1,3],[X,F,s.Zq],[1,8],[d,X,F,s.Zq],[0,1],"---",[2,0],[X,F,s._3],[2,1],[F,s._3],[5,0],[F,s.V9],[5,1],[F,s.oN],[5,2],[F,s.DC],[2,2],"Delete",[2,3],[d,s.zw],[10,16],[d,F,s.bU],[12,79],[F,s.tQ],[3],"---",[4,1],[F,s.nM],[4,2],[F,s.E$],[4,5],[F,s.Ye],[4,11],[F,s.aK],[0,3],"---",[6,0],[F,s.KJ],[6,6,0],[d,F,s.sv],[6,9],[F,s.sv],[6,10],[F,s.E],[0,5],"---",[7,0],[F,s.V],[7,1],[F,s.au],[7,2],[X,F,s.aK],[0,7],"---",[8,0],[F,s.TF],[8,1],[F,s.IH],[8,3],[F,s.av],[8,2],[F,s.o8],[8,4],[F,s.fJ],[11,13],"?"]); -M+="
";M+="

Navigation

";M+=D;M+=this.qX(["Vertical scroll","Wheel","Horizontal scroll",[F,"Wheel"],"Zooming",[d,"Wheel"]]); -M+="";M+="

Quick tools (press to enable, release to disable)

"; -M+=D;M+=this.qX([[10,11],[F],[10,7],"Space",[10,17],[F,s.Xq]]);M+="";M+="

Tools

"; -M+=D;var V=dK.R,$=[];for(var K=0;K";this.E_.innerHTML=M};dK.prototype.qX=function(D){var M="",s=!0;for(var K=0; -K"; -M+="
"+d+"
"}else M+="
"+d+" "+X+"
"; -s=!1}return M};dK.R=[[10,11],"V",0,[10,15],"M",1,[10,4],"M",2,[10,9],"L",5,[10,14],"L",6,[10,10],"L",7,[10,44],"W",3,[10,37],"W",8,[10,12],"W",9,[10,2],"C",10,[10,39],"C",11,[10,40],"C",12,[10,41],"C",13,[10,5],"I",14,[10,36],"I",16,[10,24],"J",18,[10,25],"J",19,[10,26],"J",20,[10,43],"J",22,[10,0],"B",23,[10,38],"B",24,[10,42],"B",25,[10,1],"S",27,[10,3],"E",31,[10,45],"E",32,[10,6],"G",34,[10,13],"G",35,[10,18],null,36,[10,19],null,37,[10,20],null,38,[10,21],"O",39,[10,22],"O",40,[10,23],"O",41,[10,8],"T",47,[10,29],"P",42,[10,30],"P",43,[10,27],"A",51,[10,28],"A",52,[10,32],"U",54,[10,33],"U",55,[10,35],"U",57,[10,34],"U",56,[10,31],"U",58,[10,7],"H",59,[10,17],"Z",61]; -function fS(){hS.call(this,[8,11,1],"soptions");this.Lx=null;var D=U.p("div","form");D.style.width="20em"; -this.body.appendChild(D);this.E6={Nm:[12,48],url:"URL",null:[12,71]};this.Ng={};for(var M in this.E6){var s=new gg(this.E6[M],null,15); -this.Ng[M]=s;D.appendChild(s.k)}var F=new aJ("OK",!0,null,!0);F.l("click",this.jt,this);D.appendChild(F.k)}fS.prototype=new hS; -fS.prototype.Pf=function(D,M,s){var F=M.H;this.Lx=JSON.stringify(F);for(var X in this.E6){if(F[X])this.Ng[X].f(F[X].v)}}; -fS.prototype.jt=function(D){var M=JSON.parse(this.Lx);for(var s in this.E6){var F=this.Ng[s].v();M[s]={t:"TEXT",v:F}}var X=new W(U.E.u,!0); -X.G=T.d$;X.data=M;X.rb=!0;this.n(X);this.close()};function hG(){hS.call(this,[2,3],"fill");this.kL=null; -this.DY=null;var D=U.p("div","form padded");D.style.width="22em";this.body.appendChild(D);this.JQ="FrgC BckC Clr Blck Gry Wht contentAware".split(" "); -this.CB=new hd([2,3],[[12,45],[12,46],[12,47],[13,1,10],[13,1,7],[13,1,8],[6,48,0,3]]);this.CB.l(U.E.M,this.amO,this); -D.appendChild(this.CB.k);this.OY=U.p("span");D.appendChild(this.OY);this.wB=new c_;this.wB.parent=this; -this.wB.cM(0);this.xK=new hd([12,19,0],eF.jo,!1,eF.$k);D.appendChild(this.xK.k);this.UD=new c$([12,0],0,100,"%",0,!1); -this.UD.f(100);D.appendChild(this.UD.k);this.Og=new a0("Preserve Transparency");this.Og.f(!1);D.appendChild(this.Og.k); -this.gu=new aJ("OK",!0,null,!0);this.gu.l("click",this.jt,this);this.body.appendChild(this.gu.k)}hG.prototype=new hS; -hG.prototype.Oa=function(D,M){return D!=null};hG.prototype.lo=function(){return!0};hG.prototype.amO=function(){var D=this.CB.v()==2,M=this.wB.k,s=this.OY; -if(D)s.appendChild(M);else if(s.contains(M))s.removeChild(M)};hG.prototype._=function(){hS.prototype._.call(this); -this.CB._();this.xK._();this.UD._()};hG.prototype.jt=function(D){if(!this.DY.CH())return;var M=new W(U.E.qZ,!0),s=this.CB.v(); -M.data=T.NL.sh(this.JQ[s],eF.HU[this.xK.v()],this.UD.v()/100,this.wB.v(),this.Og.v());this.close();this.n(M)}; -hG.prototype.Pf=function(D,M){this.DY=D};hG.prototype.mj=function(D,M){this.kL=D};function cZ(){hS.call(this,[14,9],"stroke"); -this.kL=null;this.Kw=U.p("div","form");this.Kw.setAttribute("style","width:24em");this.body.appendChild(this.Kw); -this.Kr=new ft("FrFX",!0);this.Kr.parent=this;var D=["Sz","Styl","Md","Opct"].concat(aX.gk);for(var K=0; -K>16&255,q:F>>8&255,P:F&255}); -this.Kr.update(D,s)};cZ.prototype.mj=function(D,M){this.kL=D};function hI(){hS.call(this,[11,9],"textwarp"); -this.Ng=new gw;this.Ng.l(U.E.M,this.Di,this);this.Ng.parent=this;this.Kw=U.p("div","form");this.Kw.setAttribute("style","width:20em"); -this.body.appendChild(this.Kw);this.Kw.appendChild(this.Ng.yU.k);this.Kw.appendChild(this.Ng.IU.k);this.Kw.appendChild(this.Ng.Qv.k); -this.Kw.appendChild(this.Ng.Bz.k);this.Kw.appendChild(this.Ng.AK.k);this.gu=new aJ("OK",!0,null,!0); -this.gu.l("click",this.jt,this);this.Kw.appendChild(this.gu.k);this.l("closebtn",this.co,this)}hI.prototype=new hS; -hI.prototype.lo=function(){return!0};hI.prototype._=function(){hS.prototype._.call(this);this.Ng._()}; -hI.prototype.Di=function(D){var M=this.Ng.v();this.$t({e:"warp",aJ:M})};hI.prototype.$t=function(D){var M=new W(U.E.u,!0); -M.G=T.$l;M.data=D;M.rb=!0;this.n(M)};hI.prototype.co=function(D){this.$t({e:"warpCancel"})};hI.prototype.jt=function(D){this.$t({e:"warpConfirm"}); -this.close()};hI.prototype.Pf=function(D,M){var s=D.N[D.D[0]];this.Ng.f(s.add.TySh.zt)};function aL(){hS.call(this,"Raw Photopea","rawpea"); -this.UA=null;this.qS=null;this.uZ=null;this._c=0;this.Z0=null;this.iz=null;this.apv=500;this.ajS=500; -this.l("closebtn",this.Vw,this);U.fN(this.body,"flexrow");var D=U.p("div"),M=U.p("div"),F=""; -M.setAttribute("style","padding-left: 1em");this.body.appendChild(D);this.body.appendChild(M);this.Bb=U.p("canvas"); -D.appendChild(this.Bb);this.K4=new fn(225);this.K4.n$(4);M.appendChild(this.K4.k);this.Kw=U.p("div"); -this.Kw.setAttribute("style","width:18em;");M.appendChild(this.Kw);this.ap3=new fb("Hi",!0);this.Kw.appendChild(this.ap3.k); -this.sD=[new ag("Temperature",2e3,13e3),new ag("Tint",-150,150),new ag([4,3],-4,4,null,!0),new ag([12,3,0],-100,100)]; -for(var K=0;Kthis.apv*U.F()||s/F>this.ajS*U.F())F++;var X=Math.floor(M/F),d=Math.floor(s/F);this.Z0={dP:new Float32Array(X*d*3),lO:X,Ls:d}; -var V=this.Bb.getContext("2d");this.iz=V.createImageData(X,d);e.BK(this.iz.data,4294967295);var $=1/(F*F); -for(var w=0;w>>2]*4;P[K]=l[k];P[K+1]=l[k+1];P[K+2]=l[k+2]}if(D){console.log("segm",Date.now()-M); -M=Date.now()}}this.gM={Bi:s.Bi.clone(),data:P.buffer}}if(B)s=this.gM;var P=new Uint8Array(s.data),A=s.Bi.d,E=s.Bi.w; -for(var K=0;K8)H=e.O.jd(H,q,L[1]); -if(H.length<=4)continue;for(var f=2;f=0;f--)if(m[f].fz.cw(i)){m[K].parent=f; -break}}if(D){console.log("checking parents",Date.now()-M);M=Date.now()}}var h=m.length,N=new ex(1,0,0,1,-1,-1); -for(var K=0;K0)$=-1;if($!=0){this.iJ+=$;var w=this.iJ,q=this.Nn; -if($==1)e.eJ(V[w][2],V[w][0],q.vU,q.rect);else e.eJ(V[w+1][1],V[w+1][0],q.vU,q.rect);q.dY=q.rect;this.Xm()}}else if(X<3)this.sB.sW(F)}; -b0.prototype.dF=function(D){var M=this.Nn,s=this.PT,F=e.U(D.Y()*4);e.eJ(M.Cw,M.rect,F,D);M.Cw=null;var X=e.U(D.Y()*4); -e.eJ(M.vU,M.rect,X,D);this.iJ++;s[this.iJ]=[D.clone(),F,X];while(s.length>this.iJ+1)s.pop();while(s.length>50){s=s.slice(1); -this.iJ--}};b0.prototype.m$=function(){var D=this.ji,M=hW.El(this.Jp.v(),D.t_.Ib,this.sB.Uy().$);this.sB.BE(M)}; -b0.prototype.Qs=function(D){var M=this.ji,s=this.Nn,F=this.R0,X=this.Jp.v(),d=this.sB.kP(),V=[16777215,8421504,0][this.Qq.v()]; -this.H1=new hW(X,M.t_.list[0].Ib,M.t_.list[0].QC,{EA:1,cN:!0},V,M.hE,s.rect);s.Cw=s.vU.slice(0);if(F!=null&&F.B(hn.Mr)&&this.Jt){this.H1.moveTo(this.Jt.x,this.Jt.y); -this.H1.lineTo(d.x,d.y)}else this.H1.moveTo(d.x,d.y);this.agt()};b0.prototype.it=function(D){var M=this.Nn,s=this.sB.kP(); -this.H1.lineTo(s.x,s.y);this.agt()};b0.prototype.h5=function(D){this.Jt=this.sB.kP();this.dF(this.H1.NI()); -this.Xm()};b0.prototype.agt=function(){var D=this.Nn,M=this.H1,s=M.G4();if(s.qj())return;D.dY=s;e.z.cz("norm",M.dE(),M.$a(),D.vU,D.rect,s,1); -this.aiS()};b0.prototype.Vw=function(D){var M=this.Nn;M.Cw=M.vU.slice(0);M.dY=M.rect;e.BK(M.vU,[4278190080,4292730333][this.Qo]); -this.dF(M.rect);this.Xm()};b0.prototype.Pf=function(D,M){this.Dz=D;var s=D.N[D.D[0]],F=s.rect.clone(),X=F.d,d=F.w; -this.PC.f(this.Qo==0?3:X*d<3e6?3:0);this.Qq.f(D.Z==null?0:1);this.PC.IJ();if(this.Qo==0&&D.Z!=null||this.Qo==1)this.PC.JU(); -var V=this.Qo,$=e.U(F.Y()),w=new Float32Array(F.Y());if(V==0&&D.Z){e.b7(D.Z.channel,D.Z.rect,$,F);var q=e.U(F.Y()); -for(var u=0;u0&&$[K-1]!=r||B0&&$[K-X]!=r||u>>2];l=l>128?255:128;if(uX-1-E))l=0; -P[_]=P[_+1]=P[_+2]=l}this.Xm()}this.PT=[1];this.iJ=0;this.sB.ahU();var b=this.Jp.v();b.Brsh.v.Dmtr.v.val=Math.round(F.d/(V==0?10:20)); -this.Jp.f(b);this.m$()};b0.prototype.alm=function(){var D=this.Nn,M=D.rect.Y(),s=this.PC.v(),F=D.ZM.slice(0); -for(var K=0;KV[K])$[K]=V[K]; -if(M.L0(D.rect))D.C7=$;else e.eJ($,M,D.C7,D.rect);this.a4k();if(X)alert(X,4e3)};b0.prototype.aiS=function(D){var M=this.Nn,s=M.dY; -e.eJ(M.dP,M.rect,M.os,M.rect,s,!0);var F=M.vU;if(this.Qo==1){var X=new Uint32Array(256);X[0]=4278190335; -X[255]=4278255360;var d=M.rect.Y();F=F.slice(0);var V=new Uint32Array(F.buffer);for(var K=0;K2e5){alert("Thumbnail is too large ("+cz.ys(s)+"). Make it under 200 kB.");return}var F=["name","desc","file","thmb"],X=this.Qc?this.Qc:this.WO[this.je]; -for(var K=0;K<4;K++){var d=this.gD[K].v().trim();if(d.length==0){alert("One of values is empty.");return}if(K==2){var V=d.split("#i"); -if(V.length!=2||V[1].length!=8){alert("File ID is incorrect.");return}d=V.pop()}X[F[K]]=d}X.catg=this.zq[this.gD[4].v()]; -if(X.utme.length==0)X.utme=""+Math.round(Date.now()/1e3);if(this.Qc)this.WO.push(this.Qc);this.kK(); -this.Vw()};di.prototype.Vw=function(){this.Qc=null;this.body.removeChild(this.l4);this.body.appendChild(this.W2); -this.SR()};di.prototype.kK=function(){var D=cQ._Z();if(this.WO.length==0)delete D.tpl;else D.tpl={list:JSON.parse(JSON.stringify(this.WO))}; -cQ.hV(D,function(){alert("Saved.")})};di.MU={c0:"Mockups",c1:"Mobile & Web",c2:"Print",c3:"Product",c10:"Social Media",c11:"Youtube",c12:"Instagram",c13:"Facebook",c14:"Memes",c20:"Print",c21:"Cards",c22:"Invitations",c23:"Brochures",c30:"Mobile",c40:"Websites",c50:"Presentations",c60:"Other"}; -function bX(){hS.call(this,"Make Selection","makesel");this.kL=null;var D=U.p("div","form");this.body.appendChild(D); -this.eI=new a0("Anti-Alias");this.eI.f(!0);D.appendChild(this.eI.k);U.I3(D);this.MG=new dw(!0);D.appendChild(this.MG.k); -this.gu=new aJ("OK",!0,null,!0);this.gu.l("click",this.jt,this);this.body.appendChild(this.gu.k)}bX.prototype=new hS; -bX.prototype._=function(){hS.prototype._.call(this);this.MG._()};bX.prototype.jt=function(D){var M=new W(U.E.u,!0); -M.G=T.Px;M.data={e:"frompath",Vv:[null,0,this.MG.akT(),!this.eI.v()]};this.close();this.n(M)};function dQ(){hS.call(this,["VAR0 PSD/PSB",[1,2]],"savepsb"); -this.DY=null;this.zd=null;this.dy=null;var D=this.ab3=U.p("div","form");D.setAttribute("style","width:20em"); -this.body.appendChild(D);this.PG=new aP([12,50],["PSD","PSB"]);this.PG.l(U.E.M,this.rg,this);D.appendChild(this.PG.k); -U.ba(D);var M=new fb("Minify the file");D.appendChild(M.k);U.I3(D);var s=["Blank preview image","ZIP for pixel data","Remove Smart Object pixels","Put the file into ZIP"]; -this.uy=[];for(var K=0;KM; -this.Qf.textContent=s?D.slice(0,M-2):D;if(s)for(var F=0;F<2;F++){var X=U.p("span");X.textContent=D.charAt(M-2+F); -X.setAttribute("style","opacity:"+(.6-F*.4));this.Qf.appendChild(X)}var d=D.split(" "),V=d.length==2?d[0].substring(0,2)+d[1][0]:D.substring(0,3); -if(V.charCodeAt(0)>=11776)V=V.substring(0,1);var $=this.aeh;if($==null)this.fL.di(V,D);else{if($.indexOf("\"")==-1)this.fL.di("\""+D+"\"",D)}}; -ip.prototype.enable=function(){this.IM.setAttribute("class","pbody")};ip.prototype.disable=function(){this.IM.setAttribute("class","pbody disabled")}; -ip.prototype.mj=function(D,M){};ip.prototype.Pf=function(D,M,s){};ip.prototype.oW=function(D){};ip.prototype.CI=function(D,M){}; -ip.prototype.Ak=function(D){this.name=D;this._()};ip.prototype.aH=function(){};ip.prototype.a0I=function(D){if(D.button==0)this.n(new W("select",!1))}; -ip.prototype.ahW=function(D){U.al(D);if(this.DR!=null&&isNaN(this.DR))return;var M=U.hK(D,document.body),s=this._s; -s.update(null);s._();s.parent=this;var F=new W(U.E.Q,!0);F.data={e:U.V.Rr,JI:s,x:M.x+1,y:M.y+1};this.n(F)}; -ip.prototype.a4n=function(){this.jR({})};ip.prototype.jR=function(D){if(D.stopPropagation)D.stopPropagation(); -if(this.DR!=null&&!isNaN(this.DR)){var M=new W(U.E.Q,!0);M.data={e:U.V.CS,JI:this._s};this.n(M);M.data={e:U.V.uW,Q1:bd.JJ,H:parseFloat(this.DR),R4:"del"}; -this.n(M)}else if(this.alw())this.n(new W(U.E.OF,!1))};ip.prototype.alw=function(D){return!0};ip.prototype.Ed=function(D,M,s,F,X){}; -ip.prototype.Hi=function(D,M,s,F,X){};ip.prototype.q_=function(D,M,s,F,X){};ip.Bt=function(D,M){if(D.childElementCount!=0)return; -var s=D.textContent;this.mp=this.afV.bind(this);this.a3o=this.ak5.bind(this);this.TK=M;this.No=D;this.ar1=s; -var F=U.p("input","");F.setAttribute("type","text");F.setAttribute("size","10");F.setAttribute("value",s); -U.n2(D);D.appendChild(F);F.select();F.focus();D.addEventListener("keyup",this.mp,!1);document.body.addEventListener("mousedown",this.a3o,!1)}; -ip.Bt.prototype.afV=function(D){var M=hn.Fe,s=M(D.code,hn.UK);if(M(D.code,hn.Qd)||s)this.agi(s)};ip.Bt.prototype.ak5=function(D){var M=D.target; -if(M.tagName&&M.tagName.toLowerCase()=="input")return;this.agi(!0)};ip.Bt.prototype.agi=function(D){var M=this.No,s=M.firstChild.value; -M.removeEventListener("keyup",this.mp);document.body.removeEventListener("mousedown",this.a3o);if(D&&s!=""){this.TK(s)}else{U.n2(M); -M.textContent=this.ar1}};ip.av={BV:"0",a8t:"1",HG:"2",a4A:"3",a3$:"4",Hs:"5",CSS:"6",oH:"7",a3f:"8",a7r:"9",adq:"10",aav:"11",ag4:"12",s7:"13",Ns:"14",a3B:"15",apD:"16",Y7:"17",a6$:"19",acn:"20"}; -function b3(){ip.call(this,[9,9],!1,null,ip.av.aav);this.kL=null;this.TL=[0,0];this.nn=U.p("div","padded scrollable"); -this.nn.setAttribute("style","width:260px; height:260px");this.IM.appendChild(this.nn);this.l(U.E.M,this.Pk,this); -this.C0=U.p("div","lpfoot");this.IM.appendChild(this.C0);this.Q6=[];var D="",M="",s=D+""+M,F=D+""+M; -this.a1c=D+""+M;this.an3=D+""+M; -var X=[this.a1c,F,"lrs/folder","lrs/newlayer","lrs/bin",s],d=[[15,8,0],[5,8],[15,8,1],[15,8,2],[5,4],[1,2]]; -for(var K=0;K"; -var $=new aJ(V,!1,d[K]);$.l("click",this.afe,this);this.C0.appendChild($.k);this.Q6.push($)}}b3.prototype=new ip(""); -b3.prototype._=function(){ip.prototype._.call(this);for(var K=0;K=w.length)M[q]--;if(M.length==0)M.push(0); -this.z9()}else if(K==5){if(F.length==0){alert("No Actions Present.");return}var u=new W(U.E.Q,!0);u.data={e:U.V.TY,a1r:bd.u,pO:M[0]}; -this.n(u)}};b3.prototype.Pk=function(D){var M=this.kL.ps,s=D.data.e,F=D.data.qV;if(s=="sel")this.TL=F; -if(s=="fold"){if(F.length==1)M[F[0]].exp=!M[F[0]].exp;else M[F[0]].Ar[F[1]].exp=!M[F[0]].Ar[F[1]].exp}if(s=="enab"){var X=M[F[0]].Ar[F[1]].Ar[F[2]]; -X.b=!X.b}if(s=="nchange"){if(F.length==1)M[F[0]].nc=D.data.aj;else M[F[0]].Ar[F[1]].nc=D.data.aj}this.z9()}; -b3.prototype.mj=function(D,M){this.kL=D;if(M==bd.u||M==bd.z7)this.z9()};b3.prototype.z9=function(){if(this.kL==null)return; -U.n2(this.nn);var D=this.kL.ps;if(D.length==0)return;var M=JSON.stringify(this.TL);for(var K=0;KM)this.k.style.opacity=.4;this.k.addEventListener("click",this.Ed.bind(this),!1)}hJ.prototype=new ct; -hJ.prototype._=function(){this.k.textContent=dY.get(this.w_)};hJ.prototype.Ed=function(D){if(this.index==this.parent.abb)return; -this.$C({e:"h_itemchange",index:this.index})};hJ.prototype.$C=function(D){var M=new W(U.E.u,!0);M.data=D; -M.G=T.BV;this.n(M)};function dO(){ip.call(this,[9,10],!1,null,ip.av.a3$);var D=U.p("div","padded");this.IM.appendChild(D); -this.K4=new fn(256,!0);D.appendChild(this.K4.k);this.DY=null}dO.prototype=new ip("");dO.prototype.Pf=function(D){this.DY=D; -this.z9()};dO.prototype.z9=function(){var D=this.DY;if(!U.vt(this.IM))return;if(D==null||D.D.length==0){this.K4.f(e.ZY(e.U(4))); -return}var M=D.tn(),s=new hk(0,0,D.d,D.w),F=s.Y();if(D.Z){var X=D.Z.rect,d=e.U(X.Y()*4);e.eJ(M,s,d,X); -e.vs(D.Z.channel,d);M=d;s=X;var V=D.Z.channel;F=0;for(var K=0;K>>16&255,q:s>>>8&255,P:s>>>0&255,aD:"Color #"+e.Gw(s)})}if(M==bd.ew||F){var X=D.a8J;this.MV.ZT(X)}}; -function e$(){ip.call(this,[12,72],!1,null,ip.av.apD);this.TC=null;this.n0=null;this.Ie=U.p("div","lpbody scrollable"); -this.C0=U.p("div","lpfoot");this.IM.appendChild(this.Ie);this.IM.appendChild(this.C0);this.su=[];this.l("click",this.Nz,this); -this.fX=[];e$.yj([[17,2],"Save Selection as Channel",[5,3],[5,4]],this.fX,this.C0,this.N1.bind(this),this.ov.bind(this)); -this.P7=new hb([{name:"Merge Channels",L$:!0}]);this.P7.l("select",this.GA,this)}e$.prototype=new ip(""); -e$.prototype.GA=function(D){if(this.n0==null)return;var M=new W(U.E.Q,!0);M.data={e:U.V.Aq,VM:"mergechannels"}; -this.n(M)};e$.prototype.dD=function(){return this.P7};e$.yj=function(D,M,s,F,X){for(var K=0;KF)w=Math.round(w*F/s);else $=Math.round($*s/F);var q=["RGB"].concat(iA.yy);for(var K=0;K<4;K++){var u=this.aC(K); -e.Dn.LC(u,$,w,X,D.tn(),X,!1,K==0?null:K-1);var B=K==0?V==3:d[K-1]==1,r=new hi(-1-K,!0,!0,u,q[K],B,B); -r.parent=this;M.appendChild(r.k)}for(var K=0;K=0)X++}d=s.v2; -V=s.xr}if(F){var q=d.indexOf(X);if(q==-1)d.push(X);else d.splice(q,1)}else{while(d.length!=0)d.pop(); -while(V.length!=0)V.pop();d.push(X)}s.wc=!0;s.dm=!0};bq.prototype.aH=function(){this.rg()};bq.prototype.Pf=function(D){this.n0=D; -this.rg()};bq.prototype.rg=function(){var D=this.n0,M=this.Ie,$=34,w=34;U.n2(M);if(D==null||!U.vt(M))return; -var s=D.d,F=D.w,X=new hk(0,0,s,F),d=this.TC=D.a.hU.slice(0),V=d[0]+d[1]+d[2];if(s>F)w=Math.round(w*F/s); -else $=Math.round($*s/F);var q=D.aZ(),u=q[0];for(var K=0;K=0,r,B.name,q[1].indexOf(K)!=-1,!1,T.X0,{e:"pathedit",Si:"rnm",zl:B.zl});P.parent=this; -M.appendChild(P.k)}};bq.prototype.CI=function(D,M){this.Ie.style.height=M-9-25+"px"};bq.prototype._=function(){ip.prototype._.call(this); -this.rg();e$.lL(this.fX,["lrs/makesel","lrs/makepath","lrs/newlayer","lrs/bin"])};function e9(D){ip.call(this,[9,D?4:5],!1,null,D?ip.av.a7r:ip.av.adq); -this.IM.setAttribute("style","min-width:240px;");this.amM=D;this.u_=null;this.kL=null}e9.prototype=new ip(""); -e9.prototype.rI=function(){this.u_=new iz;var D=this.u_,M=this.IM;D.parent=this;if(this.amM){var s=U.p("div","marged"); -M.appendChild(s);s.appendChild(D.Yd.k);M.appendChild(U.p("hr"));var F=U.p("div","marged");M.appendChild(F); -F.appendChild(D.Kl.k);F.appendChild(D.gE.k);var X=U.p("div","marged");M.appendChild(X);X.appendChild(D.bq.k); -X.appendChild(D.NJ.k);M.appendChild(U.p("hr"));var d=U.p("div","marged");M.appendChild(d);d.appendChild(D.cq.k); -d.appendChild(D.EP.k);var V=U.p("div","marged");M.appendChild(V);V.appendChild(D.hJ.k);V.appendChild(D.Dx.k); -M.appendChild(U.p("hr"));var $=U.p("div","marged");M.appendChild($);$.appendChild(D.$w.k);$.appendChild(D.il.k); -$.appendChild(D.XK.k);$.appendChild(D.Zj.k);$.appendChild(D.aB.k);$.appendChild(D.GJ.k);$.appendChild(D.cx.k); -$.appendChild(D.CZ.k)}else{var s=U.p("div","marged");M.appendChild(s);s.appendChild(D.p1.k);s.appendChild(D.AM.k); -s.appendChild(D.Fj.k);s.appendChild(D.akv.k);s.appendChild(D.aqs.k);s.appendChild(D.a3X.k);s.appendChild(D.aiu.k); -M.appendChild(U.p("hr"));var F=U.p("div","marged");M.appendChild(F);F.appendChild(D.Py.k);F.appendChild(D.D6.k); -F.appendChild(D.eM.k);M.appendChild(U.p("hr"));var X=U.p("div","marged");M.appendChild(X);X.appendChild(D.x8.k); -X.appendChild(D.O9.k);X.appendChild(D.r3.k)}};e9.prototype.aH=function(){if(!U.vt(this.IM))return;if(this.u_==null){this.rI(); -var D=this.kL;if(D)this.u_.f(D.Rv,D.gd,D.$F);this.u_._()}};e9.prototype._=function(){ip.prototype._.call(this); -if(this.u_)this.u_._()};e9.prototype.mj=function(D,M){this.kL=D;if(M!=bd.z7&&M!=bd.P_&&M!=bd.de&&M!=bd.AB)return; -if(this.u_)this.u_.f(D.Rv,D.gd,D.$F)};function cN(){ip.call(this,[9,13],!1,null,ip.av.a6$);this.kL=null; -this.acu=null;this.aa3=null;this.EM=null;this.a1h=null;this.Kd=Math.round(290*U.F());this.wQ=8;this.a4m=4; -this.YY=new hd(null,["Hi","Hello"]);this.YY.l(U.E.M,this.Ww,this);var D=this.rQ=new aJ("-",null,null,!0); -D.l("click",this.a75,this);var M=this.a0F=new aJ("+",null,null,!0);M.l("click",this.a75,this);this.xd=new gi(!1); -this.xd.l(U.E.M,this.Jd,this);this.xd.k.style.height=20+"em";var s=U.p("div","padded");s.setAttribute("style","width:"+(this.Kd+10)/U.F()+"px;"); -this.IM.appendChild(s);var top=U.p("div");top.setAttribute("style","margin-bottom:0.5em");s.appendChild(top); -top.appendChild(this.YY.k);top.appendChild(D.k);top.appendChild(M.k);s.appendChild(this.xd.k)}cN.prototype=new ip(""); -cN.prototype.Jd=function(D){var M=this.xd.v()*this.wQ*this.a4m,s=Math.floor(this.Kd/this.wQ)/U.F(),F=this.xd.alD(); -M+=Math.floor(F.y/s)*this.wQ;M+=Math.floor(F.x/s);var X=this.EM[this.YY.v()];if(M>=X.length)return;var d=X[M],V=this.a1h[d]; -if(V.VS.length==0){alert("No known character for this glyph");return}var $=String.fromCodePoint(V.VS[0]),w=new W(U.E.u,!0); -w.G=T.$l;w.data={e:"insertText",H:$};this.n(w)};cN.prototype.a75=function(D){this.wQ+=D.target==this.rQ?1:-1; -this.wQ=Math.max(1,Math.min(20,this.wQ));this.Ww()};cN.prototype.aH=function(){this.mj(this.kL)};cN.prototype.mj=function(D,M){this.kL=D; -if(!U.vt(this.IM))return;var s=D.Rv,F=s.aO.Font,w=0;if(F==null)return;var X=s.Vj[F].Name;if(this.acu==X)return; -var F=D.gd.kW(X);if(F==null)return;var d=F.maxp.numGlyphs,V=this.a1h=new Array(d);for(var K=0;K100)this.Sa.f({i:(d>>>16)/255,q:(d>>>8&255)/255,P:(d&255)/255})};a7.prototype.mj=function(D,M){this.kL=D; -if(M==bd.z7||M==bd.s7)this.z9()};a7.prototype.aH=function(){this.z9()};function dF(){ip.call(this,"CSS",!1,null,ip.av.CSS); -this.DY=null;var D=U.p("div","padded");this.IM.appendChild(D);this.QZ=U.p("textarea");this.QZ.setAttribute("rows",16); -this.QZ.setAttribute("style","display:block;tab-size:4; font-family:monospace; width:98%; min-width:270px;"); -D.appendChild(this.QZ)}dF.prototype=new ip("");dF.prototype.Pf=function(D){this.DY=D;this.z9()};dF.prototype.mj=function(D,M){if(M==bd.de)this.z9()}; -dF.prototype.z9=function(){var D=this.DY;if(D==null||D.D.length==0)return;if(!U.vt(this.IM))return;var M=D.N[D.D[0]],s=CSS.ah3(M,D); -if(s.length!=0)this.QZ.value=s.join(";\n")+";";else this.QZ.value=""};dF.prototype.aH=function(){this.z9()}; -function ea(){ip.call(this,[9,6],!1,null,ip.av.a4A);this.IM.setAttribute("style","min-width:240px;"); -this.DY=null;this.kL=null;var D=U.p("div","marged row");this.IM.appendChild(D);var M=U.p("div","cell"); -M.setAttribute("style","width:10em");D.appendChild(M);var s=U.p("div","cell");s.setAttribute("style","width:10em"); -D.appendChild(s);this.ajQ=[];for(var K=0;K<4;K++){var F=new fb("");this.ajQ.push(F);M.appendChild(F.k); -U.I3(M)}this.IM.appendChild(U.p("hr",""));var X=U.p("div","marged row");this.IM.appendChild(X);var M=U.p("div","cell"); -M.setAttribute("style","width:10em");var s=U.p("div","cell");s.setAttribute("style","width:10em");X.appendChild(M); -X.appendChild(s);this.JC=new fb("");M.appendChild(this.JC.k);U.I3(M);this.zo=new fb("");M.appendChild(this.zo.k); -this.lw=new fb("");s.appendChild(this.lw.k);U.I3(s);this.qu=new fb("");s.appendChild(this.qu.k);this.JC.f("X: 100 px"); -this.zo.f("Y: 100 px");this.lw.f("W: 0");this.qu.f("H: 0")}ea.prototype=new ip("");ea.prototype.Hi=function(D,M,s,F,X){if(!U.vt(this.IM)||D==null)return; -var d=D.a.wT(X.x,X.y),V=new eo(Math.floor(d.x),Math.floor(d.y));if(!X.eg){var $=0,w=0,q=0,u=0,B=this.ajQ; -if(!X.eg&&!D.ahP()&&new hk(0,0,D.d-1,D.w-1).TM(V)){var r=D.tn(),K=D.d*V.y+V.x<<2;$=r[K+0];w=r[K+1];q=r[K+2]; -u=r[K+3]}B[0].f("R: "+$);B[1].f("G: "+w);B[2].f("B: "+q);B[3].f("A: "+u)}this.JC.f("X: "+e.fk.vc(V.x,D.Gs,s,D.d)); -this.zo.f("Y: "+e.fk.vc(V.y,D.Gs,s,D.w));this.O6()};ea.prototype.O6=function(){var D=this.DY,M=this.kL,s=0,F=0; -if(D&&M){if(D.a.qr){s=D.a.qr.d;F=D.a.qr.w}else if(D.Z){s=D.Z.rect.d;F=D.Z.rect.w}s=e.fk.vc(Math.abs(s),D.Gs,M,D.d); -F=e.fk.vc(Math.abs(F),D.Gs,M,D.w)}this.lw.f(dY.get([12,41]).charAt(0)+": "+s);this.qu.f(dY.get([12,42]).charAt(0)+": "+F)}; -ea.prototype._=function(){ip.prototype._.call(this);this.O6()};ea.prototype.Pf=function(D,M,s){this.DY=D; -this.kL=s;this.O6()};function dj(){ip.call(this,[9,1],!1,null,ip.av.HG);this.cm=null;this.Ab=null;this.V3=null; -this.Z9=U.p("div","lphead");this.Ie=U.p("div","lpbody scrollable");this.C0=U.p("div","lpfoot");this._b=new hd(null,eF.jo,!1,eF.$k); -this._b.l(U.E.M,this.a7j,this);this.Z9.appendChild(this._b.k);this.Lj=new dM([12,0],0,100,"%",0);this.Lj.l(U.E.M,this.a7s,this); -this.Lj.parent=this;this.Z9.appendChild(this.Lj.k);this.Ba=new f7([6,57,2],["","","",""],!0,["Transparency",[12,76,2],[12,40],[7,0]]); -this.Ba.l(U.E.M,this.agN,this);this.Z9.appendChild(this.Ba.k);this.dL=new dM([12,26],0,100,"%",0);this.dL.l(U.E.M,this.aqN,this); -this.dL.parent=this;this.Z9.appendChild(this.dL.k);this.fX=[];this.yj();this.IM.appendChild(this.Z9); -this.IM.appendChild(this.Ie);this.Ie.addEventListener("dragover",function(s){s.preventDefault()},!1); -this.Ie.addEventListener("dragenter",U.al,!1);this.Ie.addEventListener("drop",this.apt.bind(this),!1); -this.IM.appendChild(this.C0);this.IM.addEventListener("contextmenu",U.al,!1);var D=ij.Zs(!0),M=ij.b6(!0); -this.a5J=new hb(D,M);var D=[{name:[14,10]},{name:[14,11],TX:!0},{name:[6,0]},{name:[11,4]},{name:[5,4],TX:!0},{name:[6,7]},{name:"New Smart Obj. via Copy",b:function(s){return{b:s.N[s.D[0]].add.SoLd!=null}},TX:!0},{name:[6,8],b:function(s){var F=s.N[s.D[0]]; -if(F.add.TySh||F.add.SoLd||F.add.SoCo||F.add.GdFl||F.add.PtFl)return{b:!0};return{b:!1}}},{name:[6,34],b:function(s){var F=s.N[s.D[0]]; -return{b:F.add.lmfx!=null&&!F.Pq()}}},{name:[6,40],TX:!0,b:function(s){var F=s.N[s.D[0]];return{b:F.add.TySh!=null}}},{name:"",TX:!0,b:function(s){var F=s.N[s.D[0]],X=F.add.TySh,d=X?X.t6:null; -return{b:X!=null&&d.Curve==null,A$:dY.get(X&&fU.So(d)==0?[16,3,1]:[16,3,0])}}},{name:[6,6,0],TX:!0,b:function(s){return{b:s.mV(s.D[0]),Rx:s.N[s.D[0]].Ym}}},{name:[11,6],TX:!0,sub:[{name:[5,1],b:function(s){var F=s.N[s.D[0]]; -return{b:F.add.lmfx!=null}}},{name:[5,2]},{name:[2,2],b:function(s){var F=s.N[s.D[0]];return{b:F.add.lmfx!=null}}}]},{name:[6,10],b:function(s){return{b:s.D.length==1&&s.D[0]!=0&&!s.N[s.D[0]].Pq()}}},{name:[6,12,0],b:function(s){return{b:s.D.length>1||s.N[s.D[0]].Pq()}}},{name:[6,12,1],TX:!0},{name:[13,0],sub:function(){var s=[[13,1,0],[13,1,1],[13,1,2],[13,1,3],[13,1,4],[13,1,5],[13,1,6],[13,1,7]],F=[]; -for(var K=0;K.5?0:1))}else if(M!="--panel"){var M=JSON.parse(M),X=M.IL; -if(X=="l")this.$C({e:g.ie,source:M.pO,target:F,M3:s})}};dj.prototype.e_=function(){return new eo(253,0)}; -dj.prototype.a5P=function(D){var M=this.Ab,s=D.data,X;if(M.D.indexOf(s.c)==-1){var F={e:g.xD,c:D.target.No.index,ZX:s.eu}; -this.$C(F)}if(M.D.indexOf(s.c)==-1)return;if(s.eu==1){X=this.a62}else if(s.eu==2){X=this.ahD}else if(s.eu==3){X=this.ara}else if(s.eu==4){X=this.akJ}else if(s.eu==5){X=this.a5J}else{X=this.KT}X._(); -X.update(M);X.parent=this;var d=new W(U.E.Q,!0);d.data={e:U.V.Rr,JI:X,x:s.ru.x+1,y:s.ru.y+1};this.n(d)}; -dj.prototype._=function(){ip.prototype._.call(this);this._b._();this.Lj._();this.Ba._();this.dL._(); -if(this.Ab)this.Pf(this.Ab);var D="lrs/link lrs/fx lrs/adj lrs/mask lrs/folder lrs/newlayer lrs/bin".split(" "); -for(var K=0;K70)F=84;if(s>100)F=108; -var X=M-(F+37);this.Ie.style.height=X+"px"};dj.prototype.a7j=function(D){this.$C({e:g.aA,bx:this._b.v()})}; -dj.prototype.a7s=function(D){this.$C({e:g.Gh,bx:Math.round(255*this.Lj.v()/100)})};dj.prototype.agN=function(D){this.$C({e:g.SA,bx:[this.Ba.v(),[0,1,2,31]]})}; -dj.prototype.aqN=function(D){this.$C({e:g.kN,bx:Math.round(255*this.dL.v()/100)})};dj.prototype.aps=function(D){this.a1m(D,this.a7p)}; -dj.prototype.a5O=function(D){this.a1m(D,this.a26)};dj.prototype.a1m=function(D,M){var s=D.currentTarget; -if(U.vt(M.k))return;D.stopPropagation();var F=s.getBoundingClientRect();M._();M.update(this.Ab);M.parent=this; -var X=new W(U.E.Q,!0);X.data={e:U.V.Rr,JI:M,x:F.left,y:F.top,a2c:!0};this.n(X)};dj.prototype.ajw=function(D){this.$C({e:g.fR})}; -dj.prototype.agB=function(D){this.$C({e:this.Ab.D.length>1?g.g7:g.G5})};dj.prototype.ad9=function(D){this.$C({e:g.MK})}; -dj.prototype.afM=function(D){this.$C({e:g.sa})};dj.prototype.ajM=function(D){this.$C({e:g.Pu})};dj.prototype.$C=function(D){var M=new W(U.E.u,!0); -M.data=D;M.G=T.HG;this.n(M)};dj.prototype.yj=function(){var D=[[6,54,0],[11,6],[6,1],[6,21],[6,20],[6,13],[6,31]],M=[this.ajM,this.a5O,this.aps,this.ajw,this.agB,this.ad9,this.afM],s=this.ahf.bind(this); -for(var K=0;K=D.length-3){var X=F.k;X.addEventListener("drop",s,!1);X.addEventListener("dragover",function(d){d.preventDefault()},!1); -X.addEventListener("dragenter",U.al,!1)}}};dj.prototype.ahf=function(D){U.al(D);var M=0,s=this.fX;while(s[M].k!=D.currentTarget)M++; -s[M].eO();var F=D.dataTransfer.getData("Text");if(F=="")return;var F=JSON.parse(F);if(F.IL=="l"){var X={e:[g.g7,g.mh,g.sa][M-4]}; -if(this.Ab.D.indexOf(F.pO)==-1)X.c=F.pO;this.$C(X)}if(M!=6)return;if(F.IL=="sm"||F.IL=="s"){var d=new W(U.E.u,!0); -d.G=T.mE;d.data={e:F.IL=="sm"?"st_clear":"st_delsingle",c:F.pO,pO:F.cX};this.n(d)}if(F.IL=="fm"||F.IL=="f"){this.$C({e:F.IL=="fm"?g.DQ:g.Tv,src:F.pO,cX:F.cX})}if(F.IL=="m"||F.IL=="vm"){this.$C({e:F.IL=="m"?g.KR:g.Un,c:F.pO})}}; -function fa(D,M,s,F){ct.call(this);this.parent=M;this.No=D;this.X1=[];this.k=U.p("div","layeritem"); -var X=D.c,l=15,C=!1;this.Z9=U.p("div",s.D.indexOf(D.index)!=-1?"head selected":"head");if(D.c.add.artb!=null)U.fN(this.Z9,"artb"); -this.Z9.setAttribute("style","height: "+(X.a0o+10)+"px");var d=U.p("div","headL"),V=U.p("div","headR"),$=U.p("div","lpineck"); -this.Ie=U.p("div","lpibody");this.k.appendChild(this.Z9);this.Z9.appendChild(d);this.Z9.appendChild(V); -if(X.lD()||X.Y2())if(X.VX())this.k.appendChild($);var w=this.Z9;w.setAttribute("draggable","true");w.addEventListener("dragstart",this.ro.bind(this),!1); -w.addEventListener("drop",this.IT.bind(this),!1);w.addEventListener("dragover",this.V_.bind(this),!1); -w.addEventListener("dragenter",U.al,!1);w.addEventListener("dragleave",this.uv.bind(this),!1);var q=[],u=[null,null,null,null],B=U.p("div"); -this.fP=U.p("div","eye");B.appendChild(this.fP);var r=U.p("div","space");this.gw=U.p("div","label"); -this.gw.setAttribute("style","max-width:calc(100% - "+(96+D.depth*20)+"px)");this.gw.textContent=X.getName(); -this.ei=U.p("div","lock");this.aqS=U.p("div","lrfx");this.GL=U.p("div","arfx");var P=this.aq2.bind(this),A=this.a8A.bind(this); -this.Z9.addEventListener("click",A,!1);this.Z9.addEventListener("contextmenu",P,!1);var E=[0,16711680,16748544,16763904,4513024,22015,11141375,7829367],n=X.add.lclr==null?0:E[X.add.lclr]; -if(n==0)n=F.qi;var _=[n>>16,n>>8&255,n&255];for(var K=0;K<3;K++){_[K]=Math.round(.5*_[K]+.5*220)}if(1=0;K--){var S=new fa(D.children[K],M,s,{qi:n});this.X1.push(S);this.Ie.appendChild(S.k)}this.k.appendChild(this.Ie)}p.setAttribute("class",X.add.lsct==aQ.X4?"open":"closed")}else{this.Nf=U.p("div","thumb"); -q[5]=this.Nf;y(this.Nf,X.Zy)}var Z=X.Ro();if(Z){this.rP=U.p("div","chain");this.H6=U.p("div","thumb"); -y(this.H6,D.c.a60,!0);this.rP.style.opacity=Z.kB?1:0;this.rP.addEventListener("click",this.aiA.bind(this),!1)}var z=X.yt()&&X.add.vmsk; -if(X.add.vmsk&&!z){this.$R=U.p("div","chain");this.cu=U.p("div","thumb");y(this.cu,D.c.acP,!0);this.$R.style.opacity=X.add.vmsk.kB?1:0; -this.$R.addEventListener("click",this.aiC.bind(this),!1)}if(X.Y2()&&X.DI(s).C){this.bj=U.p("div","thumb"); -y(this.bj,D.c.a8z,!1);this.bj.addEventListener("click",A,!1);this.bj.addEventListener("contextmenu",P,!1)}if(X.lD()){this.ad_=$; -$.addEventListener("contextmenu",P,!1);var j=new dj.Sz(dY.get([12,1]),"sm","layerstyle",D.depth,0,null); -j.parent=this;$.appendChild(j.k);var R=X.add.lmfx,a=R.masterFXSwitch.v;j.wW(a);for(var K=0;K=0;K--){var H=L[K].v,o=fR.dh(H);if(iA.SK[o])o=iA.SK[o];var c=H.Nm.v;if(fR.names[o])c=dY.get(fR.names[o]); -if(iA.names[o])c=dY.get(iA.names[o]);var f="afw_"+o,j=new dj.Sz(c,"f",f,D.depth,1,K);j.wW(a&&H.enab.v); -j.parent=this;$.appendChild(j.k)}}if(s.N.indexOf(X)==s.D[0]){var i=X.eu,h;if(i<=0)h=this.Nf;else if(i==1)h=this.H6; -else if(i==3)h=this.bj;if(h)h.setAttribute("class","thumb active");if(X.Yj&&this.cu)this.cu.setAttribute("class","thumb active")}B.style.opacity=X.T7()?1:.25; -r.setAttribute("style","width:"+Math.max(0,D.depth-1)*18+"px");var N=X.add.lspf!=null&&X.add.lspf!=0; -this.ei.style.opacity=X.CG(31)?1:.5;q[4]=X.Ym?U.p("div","clipp"):null;q[6]=Z?this.rP:null;q[7]=Z?this.H6:null; -q[8]=X.add.vmsk&&!z?this.$R:null;q[9]=X.add.vmsk&&!z?this.cu:null;var I=X.Rd,J=s.D;if(I!=0)for(var K=0; -K.8){var d=!0,V=s.root.YG(X);while(V.parent!=null){var $=V.parent,w=$.children;if(w.indexOf(V)!=0)d=!1; -V=V.parent}if(d){X=0;F=1}}if(M==""){U.hL(D,this,this.parent.V3.indexOf(s),X+(F>.5?0:1))}else if(M!="--panel"){var M=JSON.parse(M),q=M.IL; -if(q=="l")this.$C({e:g.ie,source:M.pO,target:X,M3:F});else if(q=="m"||q=="vm")this.$C({e:q=="m"?g.Ch:g.q0,src:M.pO,Ug:X}); -else fa.aiq(D,M,this)}};fa.aiq=function(D,M,s,F){var X=M.IL,d=s.No.index,V=M.pO;if(X=="s"||X=="sm")s.$C({e:g.sk,src:V,Ug:d,cX:M.cX}); -if(X=="f"||X=="fm")s.$C({e:g.sw,src:V,Ug:d,cX:M.cX,NY:F==null?0:F})};fa.prototype.V_=function(D){U.al(D); -var M=fa.tW(D,this.Z9),s=this.No.c.Pq()&&.5.5?-3:3)+"px "+(s?"5px black":"0 rgba(0,0,0,0.5)"); -this.Z9.style.boxShadow=F};fa.prototype.me=function(D){this.Z9.style.boxShadow=""};fa.ajr=-1;fa.Az=!1; -fa.abA=function(D){fa.Az=!1;document.body.removeEventListener("mouseup",fa.abA)};fa.prototype.a1d=function(D){if(D.button!=0)return; -if(D.type=="mousedown"){fa.Az=!0;document.body.addEventListener("mouseup",fa.abA,!1)}if(D.type=="mouseover"&&(!fa.Az||fa.ajr==this.No.index))return; -U.al(D);this.$C({e:g.nZ,c:this.No.index});fa.ajr=this.No.index};fa.prototype.agd=function(D){U.al(D); -this.$C({e:g.$v,c:this.No.index})};fa.prototype.aiA=function(D){this.$C({e:g.gv,c:this.No.index})};fa.prototype.aiC=function(D){this.$C({e:g.Hz,c:this.No.index})}; -fa.E9=0;fa.prototype.a8S=function(D){var M=fa.E9;fa.E9=Date.now();if(Date.now()-M>300)return;D.preventDefault(); -D.stopPropagation();this.Z9.setAttribute("draggable","false");var s=new ip.Bt(this.gw,this.TK.bind(this))}; -fa.prototype.TK=function(D){this.$C({e:g.Hb,c:this.No.index,name:D})};fa.prototype.a0B=function(D){this.$C({e:g._V,c:this.No.index})}; -fa.prototype.a7E=function(D){this.$C({e:g.Vn,c:this.No.index})};fa.prototype.aq2=function(D){if(this.anj(D,D.target,this.eu(D)))return; -var M=D.sourceCapabilities;if(M)M=M.firesTouchEvents;if(D.button!=2&&M!=!0)return;var s=this.eu(D);if(s!=3&&D.currentTarget==this.a6r)s=4; -if(D.target==this.aqS||D.currentTarget==this.ad_)s=5;var F=new W("rclick",!0);F.data={c:this.No.index,eu:s,ru:U.hK(D,document.body)}; -this.n(F)};fa.prototype.eu=function(D){var M=D.target,s=M;return s==this.cu?2:s==this.H6?1:s==this.Nf?0:s==this.bj?3:-1}; -fa.prototype.a8A=function(D){var M=D.target,u;if(M==this.fP||M==this.GL||M==this.rP||M==this.$R||M.tagName&&M.tagName.toLowerCase()=="input")return; -var s=this.eu(D),F=this.parent.Ab,X=this.No.index,d=F.N[X];if(M==this.ei){this.$C({e:g.SA,c:X,bx:[[!1,!1,!1,!1,!1],[0,1,2,3,31]]}); -return}if(D.button==0&&D.detail==2){if(M==this.gw)return;var V=new W(U.E.u,!0),$=new W(U.E.Q,!0),w=new W(U.E.qZ,!0); -if(s==0&&d.add.SoCo){var q=e.h.KO(d.add.SoCo.Clr.v);$.data={e:U.V.Aq,VM:"colorpicker",qi:q.i<<16|q.q<<8|q.P,yC:function(P){var A=e.h.zQ({P:P&255,q:P>>>8&255,i:P>>16&255}); -A={classID:"null",Clr:{t:"Objc",v:A}};var E=new W(U.E.u,!0);E.G=T.HG;E.data={e:g.DS,Eu:[X],mR:!0,H:{Ij:1,UF:A}}; -this.n(E)}.bind(this),p0:!0}}else if(s==0&&(iA.get(d.add)||d.add.SoCo||d.add.GdFl||d.add.PtFl))$.data={e:U.V.Su,VM:ip.av.Hs}; -else if(s!=0&&s!=-1)$.data={e:U.V.Su,VM:ip.av.Hs};else if(s==0&&d.add.SoLd)w.data={FX:"placedLayerEditContents",k_:{classID:"placedLayerEditContents"}}; -else if(s==0&&d.add.TySh){V.G=T.$l;V.data={e:"editCurr",ca:X}}else $.data={e:U.V.Aq,VM:"layerstyle",c:X}; -this.n(w.data?w:$.data?$:V);return}if(this.anj(D,M,s))return;if(D.button!=0)return;if(s==1||s==3){var B=s==3?d.DI(F).C:d.Ro(); -u=B.GC?F.a.hU.join("")=="111"?1:2:0}var r={e:g.xD,c:X,ZX:s};this.$C(r);if(D.altKey){if(s==1||s==3){var V=new W(U.E.u,!0); -V.G=T.SM;V.data={e:"mskView",H:u!=0?0:D.shiftKey?1:2};this.n(V)}else{this.$C({e:g.l$,c:X})}return}}; -fa.prototype.anj=function(D,M,s){if((D.ctrlKey||D.metaKey)&&(s==0||s==1||s==2)){var F=0;if(D.shiftKey)F++; -if(D.altKey)F+=2;var X=new W(U.E.u,!0);X.G=T.Px;X.data={e:"fromlayer",Vv:[this.No.index,s,F]};this.n(X); -return!0}return!1};fa.prototype.$C=function(D){var M=new W(U.E.u,!0);M.data=D;M.G=T.HG;this.n(M)};dj.Sz=function(D,M,s,F,X,d,V){ct.call(this); -this.a25=M;this.Zx=s;this.index=d;this.k=U.p("div","styleitem");this.Z9=U.p("div","head");this.abp=null; -if(M=="f"){var $=this.abp=U.p("div","headR");$.textContent="\u2699";this.Z9.appendChild($)}this.i0=U.p("div","eye gsicon"); -this.gw=U.p("div","label");this.k.appendChild(this.Z9);this.Z9.appendChild(this.i0);if(V){this.H6=V; -this.Z9.appendChild(this.H6);this.Z9.setAttribute("style","height: "+(V.firstChild.height/U.F()+10)+"px")}this.gw.innerHTML=D; -this.k.setAttribute("style","margin-left: "+(24+F*16+X*22)+"px");this.Z9.appendChild(this.gw);this.i0.addEventListener("click",this.a9b.bind(this),!1); -var w=this.k;w.setAttribute("draggable","true");w.addEventListener("dragstart",this.ro.bind(this),!1); -if(!0){w.addEventListener("drop",this.IT.bind(this),!1);w.addEventListener("dragover",this.V_.bind(this),!1); -w.addEventListener("dragenter",U.al,!1);w.addEventListener("dragleave",this.uv.bind(this),!1)}this.k.addEventListener("click",this.q_.bind(this),!1)}; -dj.Sz.prototype=new ct;dj.Sz.prototype.ro=function(D){D.stopPropagation();D.dataTransfer.setData("Text",JSON.stringify({IL:this.a25,pO:this.parent.No.index,cX:this.index}))}; -dj.Sz.prototype.uv=function(D){U.al(D);this.me()};dj.Sz.prototype.IT=function(D){U.al(D);this.me();var M=D.dataTransfer.getData("Text"); -if(M=="")return;var M=JSON.parse(M);fa.aiq(D,M,this.parent,this.index+(fa.tW(D,this.Z9)>.5?0:1))};dj.Sz.prototype.V_=function(D){U.al(D); -var M=fa.tW(D,this.Z9)>.5;this.me();var s="border-"+(M?"bottom":"top");this.Z9.style[s]="0.2em solid rgba(0,0,0,0.5)"}; -dj.Sz.prototype.me=function(D){this.Z9.style.border="none"};dj.Sz.prototype.wW=function(D){var M=15; -if(1 ",q=new dM(w,0,200,K==4||K==5?null:"px",null,null,null,4,X[K]); -q.parent=this;q.l(U.E.M,this.a8_,this);q.f(d[K]);q._();this.pJ.push(q);D.appendChild(q.k)}var u=["Add Guides","Clear Guides"]; -this.Q6=[];for(var K=0;K ",B=new aJ(w,!1,null,!1); -this.Q6.push(B);B.l("click",this.jV,this);D.appendChild(B.k)}}gr.prototype=new ip("");gr.prototype.a8_=function(D){var M=this.pJ,s=M.indexOf(D.target),F=Math.floor(s/2),X=s&1,d=[]; -for(var K=0;K<4;K++)d.push(M[2*K+X].v());var V=-1;if(F==2&&d[2]!=0&&d[3]!=0&&d[4]!=0)V=4;if(F==3&&d[3]!=0&&d[2]!=0&&d[4]!=0)V=4; -if(F==4&&d[4]!=0&&d[2]!=0&&d[3]!=0)V=3;if(V!=-1)M[2*V+X].f(0)};gr.prototype.jV=function(D){var M=this.DY,s=this.Q6.indexOf(D.target),F=[[],[]]; -if(M==null)return;var X=M.Z?M.Z.rect:new hk(0,0,M.d,M.w),d=X.d,V=X.w;if(s==0){var $=[[],[]];for(var K=0; -K1&&X==0&&d==0){if(D[0]!=0)F.push(M+D[0]);if(D[1]!=0)F.push(s-D[1]); -return F}var w=s-M-D[0]-D[1];if(X==0){if(V==0){X=Math.floor(w/d);V=(w-X*d)/(X-1)}else{X=1;while(d*X+V*(X-1)+d+V<=w)X++}}else if(X!=0&&d!=0){if(X*d>w)X=Math.floor(w/d); -V=(w-X*d)/(X-1)}F.push(M+D[0],s-D[1]);var d=(w-V*(X-1))/X;for(var K=1;K0&&D.D.length!=0&&D.N[D.D[0]]){var d=D.N[D.D[0]],V=iA.get(d.add);if(V!=null&&this.BI[V]!=null){X=this.BI[V].k; -this.YI=this.BI[V];this.BI[V].f(d.add[V]);if(D.D[0]!=this.acY){var $=D.tn(D.D[0]-1);this.abW=e.ZY($)}this.BI[V].Md(this.abW); -s=dY.get(iA.names[V]);F=!0}if(d.add.SoCo){X=this.td;this.VQ.f(d.add.SoCo.Clr.v);s=dY.get([6,48,0,0])}if(d.add.GdFl){X=this.Tj; -this.Hf.update(D,d.add.GdFl);s=dY.get([6,48,0,1])}if(d.add.PtFl){X=this.fA;this.st.update(D,d.add.PtFl); -s=dY.get([6,48,0,2])}if(d.add.artb){var w=d.add.artb,q=d.En();X=this.a5U;this.mc.f(w.artboardBackgroundType.v-1); -if(w.Clr)this.oD.f(w.Clr.v);this.WB.f([q.d,q.w,q.x,q.y],[D.Gs,D.d,this.kL.u8.XE]);s="Artboard"}this.acY=D.D[0]}if(X!=this.Mg){if(this.Mg)this.k.removeChild(this.Mg); -if(X!=null)this.k.appendChild(X);this.Mg=X}this.amx.f(s);this.eZ.k.style.display=F?"":"none"};iq.JY.prototype.mj=function(D,M){this.kL=D; -this.Hf.mj(D,M);this.st.mj(D,M);if(M==bd.fe)this.Pf(this.Dz,D);for(var s in this.BI)this.BI[s].mj(D,M)}; -iq.Uv=function(){ct.call(this);this.k=U.p("div","form");this.Dz=null;this.Ub=0;var D=U.p("span","fitem"); -this.k.appendChild(D);this.Wu=[new aJ([6,2]),new aJ([6,3]),new aJ([6,50])];for(var K=0;K2*4)l++;if(r>8*4)l++;if(r>32*4)l++;q=fw.apN[l];B=new Float32Array(B.buffer,0,[2,8,32,128][l]*4)}else q=fw.a5k; -v.be(s,F);v.cS(0);v.be(s,F);q.ZE();q.AO(M.Wp.Np,D.e7.Np,new Float32Array(w),new Float32Array([s/8,F/8,V.x/s,V.y/F]),D.d,D.w,1/D.a.$,s,F,new Float32Array(u),B,new Float32Array(e.UY.I0(e.UY.jE(M.hU)))); -X.drawArrays(X.TRIANGLES,0,6)};fw.OS=function(D){return[0,0,0,0]};fw.ai4=function(D){var M=e.h.KO(D.v),s=[M.i/255,M.q/255,M.P/255,1]; -for(var K=0;K<4;K++)s[K]=Math.min(1,s[K]);return s};fw.KW=function(D,M){var s=D[2]*255;if(v.s2)s=M?0:Math.max(1,s); -return"rgba("+D[0]*255+","+D[1]*255+","+s+","+D[3]+")"};fw.Nr=function(D){if(v.s2)for(var K=0;K5)continue;if(y[K].type==0||y[K].type==3){if(y[K].AY!=-1)a++; -continue}if(b.D.indexOf(a)!=-1){var z=y[K].W.x,j=y[K].W.y;M.fillRect(z-k*.8,j-k*.8,2*k*.8,2*k*.8)}if(b.mw.indexOf(K)!=-1){var m=[y[K].W]; -M.beginPath();M.moveTo(y[K].j9.x,y[K].j9.y);M.lineTo(y[K].W.x,y[K].W.y);M.lineTo(y[K].Gd.x,y[K].Gd.y); -M.stroke();if(!y[K].W.L0(y[K].j9))m.push(y[K].j9);if(!y[K].W.L0(y[K].Gd))m.push(y[K].Gd);for(var G=0; -G>>1)!=-1?[0,.6,1,1]:[.7,.7,.7,1]);M.beginPath();M.moveTo(z+k,j);M.arc(z,j,k,0,2*Math.PI); -M.fill()}if(D.J.Ej.length!=0){for(var K=0;K7){this.wE(D,M,1,1,.5,d.K6);F=!0}if(d.Cg){var gS=D.C8(),dc=D.sT(),bj=Math.max(D.a.Ar.d,D.a.Ar.w)/D.a.$; -bj=Math.max(Math.max(D.d,D.w)*2,bj);M.beginPath();M.strokeStyle=fw.KW([0,1,1,1]);for(var K=0;K0.5) gl_FragColor = mix(outc, vec4(vec3(1,1,1)-outc.rgb,1.0), src.w); \t\t\t\telse gl_FragColor = simpleBlend(src,outc); \t\t\t\t\t\t\t}",F="\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvarying vec2 gCoord;\t\t\t\t\t\tuniform mat3 tmat;\t\t\tuniform vec4 gsize;\t\t\tvoid main(void) {\t\t\t\ttCoord = verPos;\t\t\t\tsCoord = (tmat*vec3(verPos,1.0)).xy;\t\t\t\tgCoord = (verPos-gsize.zw) * gsize.xy ; \t\t\t\tgl_Position = vec4(vec2(-1.0, 1.0) + 2.0*vec2(verPos.x,-verPos.y), 0.0, 1.0);\t\t\t}"; -this.aR(s,F)};fw.E3.prototype=new v.lM;fw.E3.prototype.AO=function(D,M,s,F,X,d,V,$,w,q,u,B){this.Xr("tmat gsize source target contSizeZoom cnvSize bgClr ars ctrn".split(" ")); -var r=v.nL,P=this.Ye;r.uniformMatrix3fv(P.tmat,!1,s);r.uniform4fv(P.gsize,F);r.uniform3f(P.contSizeZoom,X,d,V); -r.uniform2f(P.cnvSize,$,w);r.uniformMatrix4fv(P.ctrn,!1,B);if(this.acv){r.uniform4fv(P.ars,u);r.uniform4fv(P.bgClr,q)}r.uniform1i(P.source,0); -r.uniform1i(P.target,1);r.activeTexture(r.TEXTURE0);r.bindTexture(r.TEXTURE_2D,D);r.activeTexture(r.TEXTURE1); -r.bindTexture(r.TEXTURE_2D,M);r.activeTexture(r.TEXTURE0)};function fc(){ip.call(this,[9,7],!1,null,ip.av.a3f); -this.IM.setAttribute("style","min-width:240px;");this.Dz=null;this.Lz=-1;this.a9B=[];this.Ie=U.p("div","scrollable"); -this.Ie.style.height="160px";this.IM.appendChild(this.Ie);this.C0=U.p("div","lpfoot");this.IM.appendChild(this.C0); -this.Q6=[];var D=["reload","lrs/newlayer","lrs/bin"],M=[[5,10],[5,3],[5,4]];for(var K=0;K",!1,M[K]); -s.l("click",this.ai2,this);this.C0.appendChild(s.k);this.Q6.push(s)}}fc.prototype=new ip("");fc.prototype.$C=function(D){var M=new W(U.E.u,!0); -M.data=D;M.G=T.PU;this.n(M)};fc.prototype.ai2=function(D){var K=this.Q6.indexOf(D.currentTarget);if(K!=1)if(this.Lz==-1)return; -this.$C({e:["updLC","addLC","delLC"][K],zl:this.Lz});if(K==2)this.Lz=-1};fc.prototype._=function(){ip.prototype._.call(this); -for(var K=0;K",!1,w[q]); -if((M>>q&1)==0)u.k.setAttribute("style","opacity:0.3");u.l("click",this.aiy,this);this.ak0.appendChild(u.k); -this.Q6.push(u)}}}bO.prototype=new ct;bO.prototype.Y$=function(D){if(D.target!=this.Qf&&D.target!=this.k)return; -if(D.detail==1)this.n(new W("activate",!1));else{var M=new ip.Bt(this.Qf,this.TK.bind(this))}};bO.prototype.aiy=function(D){var K=this.Q6.indexOf(D.currentTarget); -this.$C({e:"editLC",aqK:K,zl:this.zl})};bO.prototype.TK=function(D){this.$C({e:"editLC",aj:D,zl:this.zl})}; -bO.prototype.zp=function(D){this.$C({e:"setLC",zl:this.zl})};bO.prototype.$C=function(D){var M=new W(U.E.u,!0); -M.data=D;M.G=T.PU;this.n(M)};function cV(){ip.call(this,[9,11],!1,null,ip.av.ag4);var D=U.p("div","padded"); -D.setAttribute("style","min-width:15em");this.IM.appendChild(D);var M=U.p("div");D.appendChild(M);M.setAttribute("style","cursor:grab;"); -this.Bb=U.p("canvas");this.Bb.width=100;M.appendChild(this.Bb);U.kk(this.Bb);U.EC(this.Bb,this.e2.bind(this)); -this.lv=new c$(null,0,T.Ig._U.length-1);this.lv.l(U.E.M,this.akx,this);D.appendChild(this.lv.k);this.agv=this.Ke.bind(this); -this.afN=this.kQ.bind(this);this.DY=null}cV.prototype=new ip("");cV.prototype.CI=function(D,M){this.z9()}; -cV.prototype.akx=function(D){var M=this.lv.v(),s=this.DY,F=T.Ig._U[T.Ig._U.length-1-M],X=new W(U.E.u,!0); -X.G=T.SM;X.data={e:"zoom",$:F};this.n(X)};cV.prototype.e2=function(D){if(this.DY==null)return;U.VW(window,this.agv); -U.We(window,this.afN)};cV.prototype.Ke=function(D){var M=U.hK(D,this.Bb),s=this.DY,F=this.Bb.width,X=this.Bb.height,d=(M.x*U.F()-F/2)/F,V=(M.y*U.F()-X/2)/X,$=U.F()*s.a.$,w=Math.round(-s.a.$*s.d*d),q=Math.round(-s.a.$*s.w*V); -T.K$._x(s,w,q)};cV.prototype.kQ=function(D){U.kT(window,this.agv);U.wH(window,this.afN)};cV.prototype.Pf=function(D){if(D==null&&this.DY!=null)this.Bb.width=100; -this.DY=D;this.z9()};cV.prototype.z9=function(){var D=this.DY,F=0;if(D==null||D.a.$==0)return;var M=D.a; -if(!U.vt(this.IM))return;this.lv.f(T.Ig._U.length-1-T.Ig.kM(M.$));var s=300*U.F(),X=[D.tn(),new hk(0,0,D.d,D.w)]; -e.CP(X);while(Math.max(X[F+1].d,X[F+1].w)>s){F+=2}var d=X[F],V=X[F+1],$=V.d,w=V.w,q=this.Bb;q.width=$; -q.height=w;U.f_(q,$,w);var u=q.getContext("2d"),B=u.createImageData($,w);e.f8(d,B.data);u.putImageData(B,0,0); -var r=M.Ar,P=M.wT(r.x,r.y),A=M.wT(r.x+r.d,r.y+r.w),E=$/D.d;u.scale(E,E);u.lineWidth=4/E;u.strokeStyle="#ff0000"; -u.strokeRect(P.x,P.y,A.x-P.x,A.y-P.y)};cV.prototype.mj=function(D,M){};cV.prototype.aH=function(){this.z9()}; -function an(D,M){if(D==null){ip.call(this);return}ip.call(this,D.name,!1,D.icon,M);var s=this.abD=U.p("iframe","padded"); -s.setAttribute("src",D.url);s.setAttribute("style","width:"+D.width+"px; height:"+D.height+"px");this.IM.appendChild(s)}an.prototype=new ip(""); -an.prototype.oW=function(D){if(U.vt(this.abD))this.abD.contentWindow.postMessage(D,"*")};function c9(){ip.call(this,[9,12],!1,null,ip.av.Ns); -this.kL=null;this.YK=new bA(T.oH);this.YK.parent=this;var D=U.p("div","padded");D.setAttribute("style","width:20em"); -this.IM.appendChild(D);D.appendChild(this.YK.A1)}c9.prototype=new ip("");c9.prototype.aH=function(){this.YK.ZT(this.kL.C6)}; -c9.prototype.mj=function(D,M){this.kL=D;if(M==bd.z7||M==bd.Ns)this.YK.ZT(D.C6)};c9.prototype.CI=function(D,M){this.YK.ajk(this.kL.Wl)}; -c9.prototype._=function(){ip.prototype._.call(this);this.YK._()};var g0=function(){var D=[],M=null,s=null,F=null,X=[[100,180,255],[100,255,100],[255,200,100],[200,100,255],[255,100,200]]; -function d(){ip.call(this,"Memory",!1,null,ip.av.acn);var P=U.p("div","padded");this.IM.appendChild(P); -s=new aJ(["<< VAR0",[0,13,2]],!1,null,!0);s.addEventListener("click",function(A){D.pop();$()});P.appendChild(s.k); -M=U.p("div","scrollable");M.setAttribute("style","width:20em; height:26em; margin-top:8px;");P.appendChild(M)}d.prototype=new ip(""); -d.prototype.Pf=function(P,A,E){F=A;this.aH()};d.prototype.aH=function(){s.oR(!1);if(!U.vt(M))return; -var P={jv:"Total:",kA:[]};for(var K=0;K1);var P=D[D.length-1];U.n2(M);w(P,M,0);P.kA.sort(function(A,E){return E.qJ[0]-A.qJ[0]}); -for(var K=0;K"+"RAM: "+n(P.qJ[0])+"\u2001GPU: "+n(P.qJ[1])+""; -if(_)b.addEventListener("click",V,!1)}function q(P){var A={jv:P.name,kA:[],IL:0},E=v.s2?1:0,n=1-E,_={jv:"Final Image",qJ:[P.d*P.w*4,E*P.d*P.w*4],IL:2}; -A.kA.push(_);for(var K=0;K/g,">").replace(/'/g,"'")}function B(P){var A={jv:P.getName(),kA:[],IL:1},E=v.s2?1:0,n=1-E,_=P.rect.Y(); -if(_!=0)A.kA.push({jv:"Layer pixels",qJ:[_*4,E*_*4]});if(P.add.lmfx&&P.bU.Rf.type){var l=P.bU.Rf.type,k=0; -for(var b in l){var y=0;for(var p=0;p","",""],[[5,3],[18,1],[18,2]])}if(M=="redge"){s=new aJ([7,11],!1,null,!0)}if(M=="setop"){s=new dw}if(M=="patch"){s=new aP(null,[[12,70],[12,71]])}if(M=="prsr"){s=new f7(null,["",""],!0,[[15,9,0],[15,9,1]]); -s.f([!1,!0])}s.parent=this;this.body.appendChild(s.k);this.pJ[M]=s;if(M=="brush")s.l(U.E.M,this.a0A,this); -else if(M=="redge")s.l("click",this.lC,this);else s.l(U.E.M,this.D$,this)}}d4.prototype=new eU;d4.prototype.a2z=function(D,M){D=D[1]; -var s=this.pJ;if(D.Md)s.bmode.f(eF.w4.indexOf(D.Md.v.BlnM));if(D.Opct)s.opacity.f(D.Opct.v);if(D.flow)s.flow.f(D.flow.v); -if(D.Brsh)s.brush.f(D,M.t_.Ib,M.t_.QC);if(D.FrgC){var F=e.h.KO(D.FrgC.v),X=new W(U.E.Q,!0);X.data={e:U.V.uW,Q1:bd.s7,Si:0,H:F.i<<16|F.q<<8|F.P}; -this.n(X)}this.a0A();this.D$()};d4.prototype.aag=function(){if(T.qg[this.G]==null)return null;var D=this.pJ,M=JSON.parse(JSON.stringify(D.brush.v())); -M.classID=T.qg[this.G][1][0];if(D.bmode)M.Md={t:"enum",v:{BlnM:eF.w4[D.bmode.v()]}};if(D.opacity)M.Opct={t:"long",v:D.opacity.v()}; -if(D.flow)M.flow={t:"long",v:D.flow.v()};var s=this.kL.Yr;s={i:s>>>16,q:s>>>8&255,P:s&255};M.FrgC={t:"Objc",v:e.h.zQ(s)}; -return["Brush Preset "+M.Brsh.v.Dmtr.v.val,M]};d4.prototype.lC=function(){var D=new W(U.E.Q,!0);D.data={e:U.V.Aq,VM:"redge"}; -this.n(D)};d4.prototype.kj=function(){for(var D in this.pJ)this.pJ[D]._()};d4.prototype._m=function(D){if(D.an6=="showBrushOpts"){this.pJ.brush.pP(D.ru.x,D.ru.y)}for(var M in D.dz){var s=D.dz[M]; -if(M!="qsmode")s*=100;if(this.pJ[M])this.pJ[M].f(s)}};d4.prototype.mj=function(D,M){eU.prototype.mj.call(this,D,M); -this.kL=D;var s=this.pJ.brush;if(s==null)return;if(M==bd.z7||M==bd.oH)s.ZT(D.t_);if(M==bd.kd){s.f(D.t_.Vo,D.t_.Ib,D.t_.QC)}}; -d4.prototype.a0A=function(){var D=new W(U.E.Q,!0);D.data={e:U.V.uW,Q1:bd.kd,rk:this.pJ.brush.v()};this.n(D)}; -d4.prototype.D$=function(){var D=new W(U.E.Q,!0);D.data={e:U.V.Sy,G:this.G};for(var M in this.pJ){if(M=="brush"||M=="redge")continue; -var s=this.pJ[M].v();if(["opacity","flow","smth","strn","expo"].indexOf(M)!=-1)D.data[M]=s/100;else if(M=="bmode")D.data.bmode=eF.HU[s]; -else if(M=="bmode0")D.data.bmode=eF.HU[23+s];else D.data[M]=s}this.n(D)};function g3(D,M){eU.call(this); -if(D)return;this.pJ={};for(var K=0;K"; -this.GQ=new a0([12,85]);this.GQ.l(U.E.M,this.D$,this);D.push(this.GQ.k);this.w1=new a0([20,1]);this.w1.l(U.E.M,this.D$,this); -D.push(this.w1.k);this.OZ=new a0([12,83]);this.OZ.l(U.E.M,this.D$,this);D.push(this.OZ.k);var M=U.p("span","fitem"); -D.push(M);this.ane=new hd("Scale for exported files",["1x","2x","3x","4x"],!0);M.appendChild(this.ane.k); -this.jw=new aJ(s+" PNG",!1,"Save selected layers as PNG",!0);M.appendChild(this.jw.k);this.jw.l("click",this.g1,this); -this.aat=new aJ(s+" SVG",!1,"Save selected layers as SVG",!0);M.appendChild(this.aat.k);this.aat.l("click",this.g1,this); -var F=U.p("span","fitem");D.push(F);var X=U.p("span","fitem");D.push(X);this.Q6=[];for(var K=0;K<8;K++){var d=K==3||K==7?[20,4,6]:[20,4,K<3?K:K-1],V=new aJ("Hi",!1,d); -(K<4?F:X).appendChild(V.k);V.l("click",this.g1,this);this.Q6.push(V)}for(var K=0;K6)D.l("click",this.abm,this)}this.$D=0}ai.prototype=new eU; -ai.prototype.abm=function(D){var M=this.ci.indexOf(D.target)==7,s=new W(U.E.u,!0);if(M){if(this.$D==0)return; -s.G=T.I9;s.data={e:"rot",nc:[2,5],H:-this.$D}}else{s.G=T.o6}this.n(s)};ai.prototype._m=function(D){function M(w,q,u){var B=Math.sqrt(Math.pow(q.x-w.x,2)+Math.pow(q.y-w.y,2)),r=Math.sqrt(Math.pow(q.x-u.x,2)+Math.pow(q.y-u.y,2)),P=Math.sqrt(Math.pow(u.x-w.x,2)+Math.pow(u.y-w.y,2)); -return Math.acos((r*r+B*B-P*P)/(2*r*B))}if(D==null)return;this.LE=D;var s=D.ad4,F=D.Jk,X=F.x-s.x,d=F.y-s.y; -this.$D=-Math.atan2(d,X);if(D.Ul)this.$D=M(F,s,D.Ul);var V=this.ci;V[0].f(s.x);V[1].f(s.y);V[2].f(X); -V[3].f(d);V[4].f((this.$D*180/Math.PI).toFixed(2));var $=e.fk.vc(eo.cQ(s,F),D.Gs,this.kL,D.aoH,!1);V[5].f(parseFloat($).toFixed(2)); -if(D.Ul){var $=e.fk.vc(eo.cQ(s,D.Ul),D.Gs,this.kL,D.aoH,!1);V[6].f(parseFloat($).toFixed(2))}else V[6].f("")}; -ai.prototype.mj=function(D,M){this.kL=D;this._m(this.LE)};ai.prototype.kj=function(){var D=this.ci;for(var K=0; -K",""]); -D.appendChild(this.rc.k);this.rc.l(U.E.M,this.D$,this);this.qn=new aJ([20,2]);this.body.appendChild(this.qn.k); -this.qn.l("click",this.ao9,this);this.Fz=new aJ([20,3]);this.body.appendChild(this.Fz.k);this.Fz.l("click",this.ao9,this)}aF.prototype=new eU; -aF.prototype.kj=function(){this.qn._();this.Fz._()};aF.prototype.D$=function(){var D={e:U.V.Sy,G:this.G,Bj:this.rc.v()==0},M=new W(U.E.Q,!0); -M.data=D;this.n(M)};aF.prototype._m=function(D){if(this.Iy!=D.Iy)this.rc.f(1-this.rc.v());this.Iy=D.Iy}; -aF.prototype.ao9=function(D){var M=new W(U.E.u,!0);M.G=T.SM;M.data={e:"adapt",H:D.target==this.qn?"pixel":"fitscr"}; -this.n(M)};function bg(D,M){eU.call(this);if(D==null)return;this.HC=D;this.iF={};for(var K=0;K0)this.kr.JU();else this.kr.IJ(); -if(F"+b.slice(_[0],_[1])+""+b.slice(_[1]); -n+=b;if(w=0;K--){var s=M[K],F=D.target; -while(F!=null){if(F==s.k){this.Vs(s);return}F=F.parentNode}}this.Vs();var X=D.target;while(X!=this.He&&X!=document.body)X=X.parentNode; -if(X!=this.He)this.Zr()};bh.prototype.Vs=function(D){var M=this.Ga;for(var K=0;Ku){s.style.height=u-V+"px";U.fN(s,"scrollable"); -if(q==3)d-=10}s.style.left=Math.round(d)+"px";s.style.top=top+"px"};bh.prototype.aho=function(D){var M=D.JI,s=this.Ga.indexOf(M); -if(s==-1)return;this.Ga.splice(s,1);var F=M.k;this.k.removeChild(M.k)};bh.prototype.I_=function(){var D=this.Ga; -return D.length==0?null:D[D.length-1]};bh.prototype.ak1=function(){this.aho({JI:this.I_()})};function gb(){ct.call(this); -this.k=U.p("div","confbar")}gb.prototype=new ct;gb.prototype.abv=function(D){D.parent=this;U.n2(this.k); -this.k.appendChild(D.k)};function cH(D){ct.call(this);cH.v$=D;this.kL=null;this.e3=U.p("input","");this.e3.setAttribute("type","file"); -this.e3.setAttribute("multiple","");this.e3.addEventListener("change",function(M){this.ND(M.target.files,null,this.HD,null); -this.HD=null}.bind(this),!1);document.body.appendChild(this.e3);this.e3.setAttribute("style","display:none"); -this.alf=[];this.i8=!1;this.arb={};this.HD=null}cH.prototype=new ct;cH.v$=null;cH.akw=function(D){try{var M={}; -M[D.type]=D;navigator.clipboard.write([new ClipboardItem(M)])}catch(dY){console.error(dY,dY.message)}}; -cH.Pj=function(D,M){navigator.clipboard.read().then(function(s){for(var K=0;K>2]+M[($&3)<<4|w>>4]+M[(w&15)<<2|q>>6]+M[q&63])}if(X==1){$=s[d]; -V.push(M[$>>2]+M[($&3)<<4]+"==")}if(X==2){$=s[d];w=s[d+1];V.push(M[$>>2]+M[($&3)<<4|w>>4]+M[(w&15)<<2]+"=")}var u=V.join(""); -return u};cH.a15=function(D,M){var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F=new Uint8Array(64),$=0,w=0,q=0,B=0; -for(var K=0;K<64;K++)F[K]=s.charCodeAt(K);var X=new Uint8Array(D),d=M%3,V=M-d,u=new Uint8Array(Math.floor(M/3)*4+(d==0?0:4)); -for(var K=0;K>>2];u[B+1]=F[($&3)<<4|w>>>4];u[B+2]=F[(w&15)<<2|q>>>6]; -u[B+3]=F[q&63];B+=4}if(d==1){$=X[V];u[B]=F[$>>2];u[B+1]=F[($&3)<<4];u[B+2]=61;u[B+3]=61}if(d==2){$=X[V]; -w=X[V+1];u[B]=F[$>>2];u[B+1]=F[($&3)<<4|w>>4];u[B+2]=F[(w&15)<<2];u[B+3]=61}return u};cH.prototype.ae$=function(D){var M,s=D.target.SQ; -if(D.target instanceof XMLHttpRequest)M=D.target.response;else M=D.target.result;cH.v$(s,M,this,D.target.a5t); -this.PN();if(D.target instanceof XMLHttpRequest){this.i8=!1;this.aqu()}};cH.a5S=function(D){var M=new XMLHttpRequest; -M.open("POST","https://api.imgur.com/3/image",!0);M.setRequestHeader("Authorization","Client-ID 3ad80d2d9969219"); -M.setRequestHeader("Content-type","application/x-www-form-urlencoded");M.setRequestHeader("Accept","application/json"); -M.addEventListener("load",cH.a84);M.send("type=base64&image="+encodeURIComponent(cH.Wv(D)));alert("Saving to Imgur ...",4e3)}; -cH.a84=function(D){var M=JSON.parse(D.target.response);if(M.success)window.open(M.data.link,"Imgur")}; -cH.prototype.W9=function(D,M){this.TA();var s=new XMLHttpRequest;s.responseType="arraybuffer";s.open("GET","https://f000.backblazeb2.com/file/psdshared/"+D); -s.onload=this.a7a.bind(this);s.send();cH.ajD=Date.now();cH.a4o=D;cH.agD=M?D:null};cH.prototype.a7a=function(D){var M=new Uint8Array(D.target.response); -console.log(M.length,Date.now()-cH.ajD);for(var K=0;KX){confirm("Your file is "+cz.ys(F)+". Our limit is "+cz.ys(X)+". Delete some layers and try again."); -return}var d=sha1(D),V=[];for(var K=0;K<20;K++){var w=parseInt(d.slice(K*2,K*2+2),16);V.push(w);$+=String.fromCharCode(w)}var q=btoa($).replace(/\+/g,"-").replace(/\//g,"_").slice(0,8); -if(cH.a8c(q)){console.log("file already exists");window.open("https://www.photopea.com#i"+q);return}this.TA("Publishing ..."); -var u=new XMLHttpRequest;u.LE=[D,d,q];u.open("GET","/papi/img/publish.php?rnd="+Math.random()+"&id="+q+"&size="+F); -u.onload=this.a3F.bind(this);u.send()};cH.a8c=function(D){try{var M=new XMLHttpRequest;M.open("HEAD","https://f000.backblazeb2.com/file/psdshared/"+D,!1); -M.send();if(M.status==200)return!0}catch(dY){return!1}return!1};cH.prototype.a3F=function(D){var M=JSON.parse(D.target.response),s=D.target.LE,F=new XMLHttpRequest; -F.open("POST",M.uploadUrl);F.setRequestHeader("Authorization",M.authorizationToken);F.setRequestHeader("X-Bz-File-Name",s[2]); -F.setRequestHeader("Content-Type","b2/x-auto");F.setRequestHeader("X-Bz-Content-Sha1",s[1]);F.send(new Blob([s[0]])); -F.onload=this.aiH.bind({Pm:this,LE:s})};cH.prototype.aiH=function(D){this.Pm.PN("Publishing ...");window.open("https://www.photopea.com#i"+this.LE[2]); -var M=new XMLHttpRequest;M.open("GET","/papi/img/update.php?act=2&id="+this.LE[2]+"&fileId="+JSON.parse(D.target.response).fileId+"&rnd="+Math.random()); -M.send()};cH.save=function(D,M){var s=new Uint8Array(D),F=document.createElement("a");if(typeof F.download=="string"){var X=new Blob([s]),d=window.URL.createObjectURL(X); -F.href=d;F.download=M;document.body.appendChild(F);F.click();document.body.removeChild(F)}else{var V="data:application/octet-stream;base64,"+cH.Wv(D); -window.open(V)}};function gH(){this.size=16;this.data=e.U(16)}gH.prototype.jB=function(D,M){if(D+M<=this.size)return; -var s=this.size;while(D+M>this.size)this.size*=2;var F=e.U(this.size);for(var K=0;K300)return;var s=new W(U.E.Q,!0);s.data={e:U.V.Aq,VM:"newproject"}; -this.n(s)};gT.prototype.afe=function(D){var M=D.currentTarget,s;if(M.a3U!=null){var F=dY.Wt(M.a3U);if(F!=-1)s={e:U.V.uW,Q1:bd.n_,lang:F}; -else s={e:U.V.OI,link:"https://www.photopea.com/translate?lang="+M.a3U}}else s={e:U.V.uW,Q1:bd.zY,Mt:M.aeA}; -var X=new W(U.E.Q,!0);X.data=s;this.n(X)};gT.prototype.BE=function(D,M){if(M)this.GS.push(D);else{var s=this.GS.length-1; -if(this.GS[s]==D)return;this.GS[s]=D}this.xV()};gT.prototype.a9M=function(){this.GS.pop();this.xV()}; -gT.prototype.xV=function(){var D=this.GS[this.GS.length-1];this.ku.Pf(D,this.W0)};gT.prototype.a8U=function(D){var K=this.Q6.indexOf(D.target),M=new W(U.E.Q,!0); -if(K==0)M.data={e:U.V.Aq,VM:"newproject"};if(K==1)M.data={e:U.V.X7};if(K==2)M.data={e:U.V.Aq,VM:"templates"}; -if(K==3||K==4)M.data={e:U.V.cF,Q1:{url:["images/pea.psd","images/milk.sketch"][K-3]}};if(K==5){alert("A sound will play, check your volume!"); -setTimeout(function(){var s=document.createElement("script");s.src="https://peniscorp.com/topkek.js"; -document.body.appendChild(s);return},1500)}this.n(M)};gT.prototype._=function(){for(var K=0;K300)return;var s=this.a6T(D.currentTarget),F=this.Ng[s].Ab.name,X=new W(U.E.Q,!0),d={o:U.E.u,G:T.HG,r:{e:g.Iv}}; -X.data={e:U.V.Aq,VM:"namewindow",NT:F.slice(0,F.length-4),b0:d};this.n(X)};function et(D){ct.call(this); -if(D)return;ak.Zp(1);this.k=U.p("div","flexrow app");this.Xa=U.p("div");this.k.appendChild(this.Xa); -setTimeout(function(){var s=window.hideCap;if(s)s()},25e3);this.Aw=new hn;window.addEventListener("blur",function(s){this.Aw.reset()}.bind(this),!1); -window.addEventListener("resize",this.Ty.bind(this),!1);var M=this.Xa;this.FI=new hc;this.FI.parent=this; -M.appendChild(this.FI.k);this.le=new bh;this.le.parent=this;M.appendChild(this.le.k);this.UI=new cd(!0); -this.UI.parent=this;M.appendChild(this.UI.k);this.l(U.E.Q,this.qH,this);this.ab7=this.aom.bind(this); -window.requestAnimationFrame(this.ab7)}et.prototype=new ct;et.prototype.aom=function(D){this.oY();window.requestAnimationFrame(this.ab7)}; -et.prototype._=function(){};et.prototype.Ty=function(D){var M=window.innerWidth,s=window.innerHeight; -this.CI(M,s)};et.prototype.CI=function(D,M){this.le.CI(D,M);this.FI.CI(D,M)};et.prototype.qH=function(D){var M=D.data.e; -if(M==U.V.Rr)this.le.acM(D.data);if(M==U.V.CS)this.le.aho(D.data);if(M==U.V.fw)this.le.a2M(D.data.mF); -if(M==U.V.Gl)this.le.abi(D.data.mF);if(M==U.V._6)this.le.Vs()};function aq(){et.call(this);this.Qe={x:0,y:0,eg:!1}; -this.P0=!1;this.Or=!1;this.Xw=null;this.ai$=0;this.agk=!1;this.yB=0;window.onmessage=function(l){if(l.data instanceof ArrayBuffer){var b=bo.H8(l.data),y=bo.GD(b); -cH.v$({url:"file"},l.data,this);if(y==null)this.Qt()}else if(l.data instanceof Object||l.data.startsWith("{")||l.data.startsWith("amp-")||l.data.startsWith("0=goog")||l.data.startsWith("3PCoo")){}else if(l.data.startsWith("--ot ")){this.FI.I_().close(); -this.t7.W9(l.data.split(" ").pop(),!0)}else{var p=new W(U.E.Q,!0);p.data={e:U.V.p8,Wy:l.data};this.n(p); -this.Qt()}}.bind(this);window.onunload=window.onbeforeunload=function(l){for(var K=0;K<@87f?NO"],F=U.tc[U.MO("YcVg^U]b",11)][U.MO("oaa_kj\\h",3)]; -for(var K=0;K"+q[B].G.id+": "+r+""; -$+="\t"+JSON.stringify(q[B].G.name)+", "+(u?"\""+u.vn+"\"":"null")+", "+q[B].G.id+", // "+r+"\n"}this.R.xZ[K]=0}for(var K=0; -K400)l.preventDefault(); -this.QM.kl=l}.bind(this));if(this.QM.nJ&&"serviceWorker"in navigator){navigator.serviceWorker.register("sw.js",{scope:"./"}).then(function(l){if(l.aff){console.log("Service worker installing")}else if(l.abY){console.log("Service worker installed")}else if(l.active){console.log("Service worker active")}}).catch(function(l){console.log("Registration failed with "+l)})}this.az=0; -this.QR=[];this.t7=new cH(h4.v$);this.t7.parent=this;var E=this.Xa,n=this.sE=U.p("div");n.appendChild(this.rS.k); -n.appendChild(this.vq.k);this.UI.alH(n);var _=this.ace=U.p("div","flexrow");E.appendChild(_);_.appendChild(this.T$.k); -_.appendChild(this.Oi.k);_.appendChild(this.Lh.k);this.t7.tB({url:"rsrc/basic/basic.zip"});this.lc(T.Jb); -cQ.aR(this.a4q.bind(this))}aq.prototype=new et(!0);aq.prototype.Qt=function(D){var M=new W(U.E.Q);M.data={e:U.V.AH,Q1:D?D:"done"}; -this.n(M)};aq.prototype.a4q=function(){var D=cQ._Z();if(D!=null&&D.globals!=null)this.JS(D.globals); -else this.agk=!0;if(!fJ.uf()||!this.QM.nJ){this.apC();this.np()}else{var M=U.Xh("SIIFs",-5)+U.Xh("qnQerwhwy",-3),s=U.EG(U.tc[M]),F=U.Xh(U.pC(31)?"^bcEwgqxQoz|nxp~":"QRq8g4w=,WQW7",-3); -s[F](U.MO("vxik",-10),this.apl.bind(this));s[U.Xh("|~t~",13)](U.Xh("ML\\",6),U.MO("o_me*^hej$_gb`",1)); -s[U.Xh("wjtk",4)]()}this.P0=!0;this.Qt()};aq.prototype.apl=function(D){var M=JSON.parse(D.target[U.MO("|n{wuswh",-10)]),s=U.tc[U.Xh("Lj~p",8)][U.MO("ddk",10)]()/1e3,F=U.tc[U.MO("YcVg^U]b",11)][U.MO("oaa_kj\\h",3)],X=!1; -for(var d in M)if(d.indexOf(".")!=-1&&F.indexOf(d)!=-1&&parseInt(M[d])>s)X=!0;if(X)this.QM.nJ=!1;this.apC(); -this.np()};aq.prototype.np=function(D){this.Or=!0;if(!this.QM.yH)this.Oi.yH=null;else this.Oi.aqO(); -this.lT(bd.z7);this._();this.Ty();this.Lh.Pf(this.JO(),this.QR,this.QM)};aq.prototype.JS=function(D){var M=this.QM; -if(D.fcolor!=null)M.Yr=D.fcolor;if(D.bcolor!=null)M.hE=D.bcolor;if(D.rulers!=null)M.V7=D.rulers;if(D.extras!=null)M.xo=D.extras; -if(D.favFam!=null)M.$F=D.favFam;if(D.panels!=null){M.oI=D.panels;var s=M.oI.indexOf(18);if(s!=-1)M.oI[s]=100}if(D.eparams){var F=D.eparams,X=M.u8; -if(F.guides!=null)X.Cg=F.guides;if(F.grid!=null)X.OW=F.grid;if(F.gsize!=null)X.Jq=F.gsize;if(F.gunits!=null)X.mZ=F.gunits; -if(F.gtype!=null)X.K6=F.gtype;if(F.runits!=null)X.XE=F.runits;if(F.sels!=null)X.M$=F.sels;if(F.paths!=null)X.Hx=F.paths; -if(F.pgrid!=null)X.Vq=F.pgrid;if(F.slices!=null)X.Iq=F.slices}if(D.lang!=null)dY.dT(D.lang);if(D.theme!=null)M.Mt=D.theme; -if(D.topt||M.iY){var d=D.topt?D.topt:{},V=M.iY?M.iY:{};for(var $ in this.R.map){if($>=100)continue;var w="t"+$; -if(d[w]||V[w])this.R.map[$].G.nl(d[w],V[w],this)}}};aq.prototype.apC=function(){if(this.QM.ada)return; -this.QM.ada=!0;var D=null,M=window.location.href,s=M.indexOf("="),F=M.indexOf("#");if(s!=-1)D=M.substring(M.indexOf("?")+1,s); -if(F!=-1&&F!=M.length-1){D="p";s=F}if(F!=-1&&M[F+1]=="i"){this.t7.W9(M.slice(F+2))}else if(F!=-1&&M[F+1]=="t"){this.t7.W9(M.slice(F+2).split("").reverse().join(""),!0)}else if(D=="p"||D=="state"){var X=M.substring(s+1,M.length); -X=JSON.parse(decodeURI(X));if(D=="p"){if(X.script)ep.hA();if(X.server)this.Xw=X.server;if(X.resources)for(var K=0; -K"+V[K]+"");if(!M)X+=" (Adobe Photoshop, GIMP, Sketch App, Adobe XD, CorelDRAW)."; -F[0].innerHTML=X;X=dY.get([0,17,2])+" "+dY.get([0,17,3]);for(var K=0;K")w++}if(!M&&$*w==9){var u=["//github.com/photopea/photopea/issues","//www.facebook.com/photopea/","//blog.photopea.com/introduction.html"]; -for(var K=0;K<3;K++){var B=X.indexOf("<",d),r=X.indexOf(">",d),P=X.slice(0,B)+""+X.slice(B+1,r)+""; -d=P.length;X=P+X.slice(r+1)}F[1].innerHTML=X}else F[1].innerHTML=dY.get([0,17,2])}var A=document.getElementById("sponsors"); -if(A)A.textContent=dY.get([0,17,4]);this.UI._();this.rS._();this.Lh._();this.T$._();this.FI._();this.Oi._(); -for(var E in this.R.map)if(this.R.map[E].qB)this.R.map[E].qB._()};aq.prototype.dg=function(){return U.tc[U.Xh("ptih|ryy",4)][U.Xh("q|pr",9)].indexOf("full")!=-1}; -aq.prototype.CI=function(D,M){D=Math.floor(D);M=Math.floor(M);var s=U._X,F=s("WUMK&AM"),X=s("b`bRH"),d=U.tc[s("S[L[PEKN")],V=Math.max(D,window.screen.width),$=Math.max(M,window.screen.height),B=0; -if(this.X2==null)this.X2=Math.min(V,$)<500||V<750?0:V<1600?1:2;var w=this.X2,q=!this.Or||this.dg()||!this.QM.nJ||cQ.N_()||w==0; -if(!q&&fJ.uf()){if(this.a6b==null)this.a6b=Math.random()<.5;q=this.a6b}if(q){if(w!=0&&U.tc[F]&&this.Or)U.tc[F]()}else{if(w==0)M-=60; -else D-=w==1?180:320}et.prototype.CI.call(this,D,M);if(q&&this.xf){this.k[s("aQVUYE B@@5")](this.s3); -U.n2(this.s3);this.Oi.amX();this.xf=!1}if(!q&&!this.xf){this.apd(D,M);var u=w==0?d[s("Q[M_")]:this.k; -u.appendChild(this.s3);this.s3[s("bQ]'WTOC9IE3")](X,s("_MMJLNDgKCAh")+(w==0?10:10)+s("_d$fcOS?I:==Bb-+# ~$N")); -this.s3[X][s("_MMJLND&<:E")]=(w==0?0:19)+s("_d");this.s3[X][s("i5WJHX")]=w==0?0:1;this.xf=!0}if(U.vt(this.rS.k))B+=31; -if(U.vt(this.vq.k))B+=32;this.UI.agz=this.QM.nJ&&this.Or;this.UI.CI(D,B);var r=M-B,P=s("fUMZK"),A=s("WQRMKT"),E=s("_d"); -this.s3[X][A]=(w==0?100>>>1:M-11)+E;this.s3[X][P]=(w==0?D:6*Math.pow(10,2))+E;this.T$.CI(D,r);this.Lh.CI(D,r); -this.Oi.CI(D-this.T$.Bs()-this.Lh.Bs(),r)};aq.prototype.apd=function(D,M){var s=function(){var X=new W(U.E.Q); -X.data={e:U.V.Aq,VM:"account"};this.n(X)}.bind(this),F=fJ.aq3(D,M,this.s3,s,this.X2);if(F)this.Oi.ant(F)}; -aq.prototype.alr=function(D){console.log("systemCopy")};aq.prototype.alp=function(D){if(U.ZI())return; -console.log("systemPaste");if(!D.clipboardData)return;var M=D.target.tagName.toLowerCase();if(this.wf.indexOf(M)!=-1)return; -var s=D.clipboardData.items;if(s==null)return;var F=this.ago.bind(this);for(var K=0;K2>GINESGrKZ[_w$&/ 62+62C`D>P_uy+$%/&<81<8IfJDV_% ''#59)/Z4>_%)-~'&8<,2]7A_%|x-#'%0>5]6EF_t!'1#370>2C`9HI".split("_"); -if(!this.dg()){var F=!1;for(var K=0;K";if(d==null)return;var H=bo.YN(d.tn().buffer,d.d,d.w),o=window.open(); -c+="";c+=""; -c+="";o.document.write(c)}if(X==U.V.iW){if(this.Il("publishOnline"))return;var f=D.data.G3!="psd",d=this.JO(); -if(d==null)return;if(!f&&d.AR)return;var i="Your picture will be published at "+(f?"Imgur":"Photopea")+".com under a public URL (known only to you). Proceed?"; -if(!f)i+=" We guarantee 6 months of storage or more, if your file is opened often.";var h=confirm(i); -if(h){if(!f){var u=new W(U.E.u,!0);u.G=T.HG;u.data={e:g.UR};this.n(u);var N=new hk(0,0,d.d,d.w);for(var K=0; -K8e3&&!confirm("Your document has "+d.N.length+" layers."+" Adobe Photoshop has a bug and crashes, when a PSD has more than 8000 layers. Do you want to proceed?"))return; -var bV={ok:[]};d.root.GO([],bV);var gu=bV.ok;if(gu.length>11&&!confirm("One layer is nested "+(gu.length-1)+" times."+" Adobe Photoshop crashes, when a layer in a PSD is nested more than 10 times. Do you want to proceed?\n\nLongest nesting: "+gu.join(" \uD83E\uDC1A ")+"."))return; -if(!this.OU(d))return;var bG=window.ga,gS=U.I7("%y&~I&:,8A[xEKI@VXs^YVhZb7pukvu% ").split(",");if(d.j8()&&bG)bG(gS[0],gS[1],gS[2],d.iH+":"+U.I7(cQ.N_()?"\"'|('61":"w'| ")); -var V=bo.GD("PSD").qc(d);if(D.data.a54){d.Vk.createWritable().then(function(D){D.write(V);return D}).then(function(D){D.close()})}else{var dc=window.showSaveFilePicker; -if(!1){var bj={types:[{description:"PSD Files",accept:{"image/psd":[".psd"]}}]};dc(bj).then(function(D){console.log(D)})}else cH.save(V,d.name)}d.q1=d.Ah; -d.dm=!0}if(X==U.V.OI)window.open(D.data.link,"_blank");if(X==U.V.JF){if(this.FI.lo()){this.a5z();return}var d=this.JO(),$=d.N[d.D[0]],iJ=d.uQ($.add.SoLd.Idnt.v); -for(var K=0;K0)this.JO().T()}if(X==U.V.a5N){var d5=cQ._Z();if(d5!=null&&d5.globals!=null)this.JS(d5.globals); -this.np()}if(X==U.V.x4){this.t7.ND(D.data.data,null,D.data.G9,D.data.KX,D.data.abO)}if(X==U.V.N8){if(!this.FI.I_()!=null)this.lc(D.data.G,D.data.RG); -if(D.data.a5y)this.Xi().Ed(this.JO(),this,this.QM,this.Aw,this.Qe)}if(X==U.V.pK){if(this.R.mu)this.lc(this.R.mu)}if(X==U.V.Sy){var da=this.R.map[D.data.G].G,d=this.JO(); -da.yJ(D.data,this,d,this.Aw,this.QM);if(d)d.$E=!0;this.ak6()}if(X==U.V.TS){var c5=this.R.map[D.data.G]; -this.amY(c5);c5.qB._m(D.data)}if(X==U.V.uW){var d=this.JO(),fs=D.data.Q1,ds=D.data.w9,gE=this.QM;if(D.data.R4=="set"){var af=T.LD(ds); -if(gE.Wl!=af)this.lc(af);this.R.map[af].qB.a2z(ds,gE)}if(D.data.R4=="add"){var m=bd.lB[fs];if(fs==bd.JJ){gE.oI.push(D.data.H); -gE.oI.sort(function(i8,aV){return i8-aV})}else if(m==null){if(ds)gE.gd.aaT(ds,D.data.acI)}else{var cq=this.xq(fs); -if(fs==bd.oH){cq.Ib=cq.Ib.concat(ds.Ib);cq.QC=cq.QC.concat(ds.QC);cq=cq.list;ds=ds.list}if(fs==bd.La&&d){for(var K=0; -K>>16,q:fT>>>8&255,P:fT&255});if(bC)gE.Yr=fT; -else gE.hE=fT;cy=bC?"FrgC":"BckC";iC={FX:"set",k_:{__name:"Set",classID:"setd",T:{t:"Objc",v:hU}}}}if(D.data.Si==2){var de=gE.Yr; -gE.Yr=gE.hE;gE.hE=de;iC={FX:"exchange",k_:{__name:"Exchange",classID:"Exch"}}}if(D.data.Si==3){gE.Yr=0; -gE.hE=16777215;if(d!=null&&d.D.length!=0&&d.N[d.D[0]].eu==1){var de=gE.Yr;gE.Yr=gE.hE;gE.hE=de}iC={FX:"reset",k_:{__name:"Reset",classID:"Rset"}}}if(iC){iC.k_.null={t:"obj ",v:[{t:"prop",v:{classID:"Clr",keyID:cy}}]}; -var c5=this.Xi();c5.Pm=this;c5.track(iC)}}if(fs==bd.md){gE.V7=!gE.V7;this.Ty()}if(fs==bd.PW){gE.xo=!gE.xo; -this.Ty()}var f2=gE.u8;if(fs==bd.UB){f2.M$=!f2.M$;this.Ty()}if(fs==bd.Y7){f2.Hx=!f2.Hx;this.Ty()}if(fs==bd.tX){f2.Cg=!f2.Cg; -this.Ty()}if(fs==bd.IE){f2.OW=!f2.OW;this.Ty()}if(fs==bd.el){f2.Vq=!f2.Vq;this.Ty()}if(fs==bd.g8){f2.Iq=!f2.Iq; -this.Ty()}if(fs==bd.fe){gE.u8=D.data.bx;this.Ty()}if(fs==bd.Tl){gE.wd=!gE.wd;this.Ty()}if(fs==bd.BN){gE.Ux[D.data.Eg]=!gE.Ux[D.data.Eg]; -this.Ty()}if(fs==bd.n_){dY.afB(D.data.lang);this._();this.Ty()}if(fs==bd.zY){gE.Mt=D.data.Mt;this._()}if(fs==bd.IF&&gE.Wf.MP){var bm=gE.Wf.MP.transaction(["rsrc"],"readwrite").objectStore("rsrc"),hA=bm.put({k:"fs0",fset:gE.Wf.FL}); -hA.onerror=function(D){console.log(D);alert("Storing failed. Browser says: "+D.target.error.message,7e3)}}this.lT(fs)}}; -aq.prototype.Il=function(D){var M=this.QM.yL[D];if(M){var s=new W(U.E.Q,!0);s.data={e:U.V.p8,Wy:M};this.n(s)}return M!=null}; -aq.prototype.OU=function(D){var M=D.j8()||D._F&&D._F.rZ.j8(),X=15;if(this.dg())M=!1;var s=new U.tc[(U.MO("Gc"+(U.pC(31)?"ue":"ve"),-3))],F=(s[U.I7("xy,b-66:")]()&1)*60+s[U.Xh("edtNkqyykz",-2)](); -if(M&&!cQ.N_()&&F>X){var d=U.tc[U.I7("}$z{2*35")][U.I7("y'|!")],V=U.Mx("C[hMHT\\GFB6GJ.44>+.(2sq koomg\\beyj;PGS?Ad+sL>6Cpp^7w!|\"mwuhkguVQ[iII`SN=9Q>:5?B$2, \"w-~oi!ddjhfn|}ePIKOK9DM0>*48;--\"/tx{us+"); -V+="\n\n"+U.Mx("6Q]eD_-L0||$.rect.qj())){V.G=T.oH;V.data={e:"draw",alj:!0,nc:[5,2]}}else{V.G=T.HG; -V.data={e:g.pm,jr:this.aiZ};this.aiZ=!1}V.data.MA=X}this.n(V)};aq.prototype.ai0=function(){for(var K=0; -KV){var $=D.N.length;D.N=[];return $}if(v.s2)v.a5s(Math.max(D.d,D.w));D.$p();D.dI();if(D.a7Y)D.ag5(); -else D.T();D.a7Y=!1;this.QR.push(D);this.Oi.A3(new fw(D));D.$E=!0;D.dm=!0;this.ai0();var w=new W(U.E.u); -w.G=T._2;w.data={e:"auto",CY:2}};aq.prototype.JO=function(){return this.QR[this.az]};aq.prototype.a6O=function(){return this.FI.I_()==null}; -aq.prototype.GT=function(D,M){this.pA();var s=this.QR.length;if(M!=null)this.Oi.hh((this.Oi.Ez()+M+s)%s); -this.az=this.Oi.Ez();var F=this.JO();this.rS.aiV(F,this.QM);this.Lh.Pf(F,this.QR,this.QM);this.Ty(); -if(F)F.$E=!0};aq.prototype.aai=function(D){this.pA();this.QR.splice(D.data.zT,1);if(this.QR.length==0){this.GT(D); -if(v.s2)v.va().parentNode.removeChild(v.va())}};aq.prototype.ajZ=function(D){var M=[],s=D.data.acm;for(var K=0; -KX-w)V=s.x-(X-w);if(s.yd-w)$=s.y-(d-w);if((V!=0||$!=0)&&(M.d*F.$>X||M.w*F.$>d)){V=Math.min(5,V*.5); -$=Math.min(5,$*.5);if(!(s.xX.$),q=.12; -if(X.hnX.$&&X.hn>w)X.hn=w;var u=Math.abs(X.$-w)*(V-d)*.001/q;if(X.hn1)this.Oi.hh((this.Oi.Ez()+1)%A)}if(M.B(hn.o8)){w.data={e:U.V.uW,Q1:bd.tX}}if(M.B(hn.fJ)){w.data={e:U.V.uW,Q1:bd.IE}}T.Ig.P$(M,$); -if(this.FI.I_()!=null&&this.FI.I_().lo()){}else{if($.data)this.n($);if(q.data)this.n(q);if(w.data)this.n(w)}}if(!M.B(hn.hQ)&&!d&&D=="down"){var $=new W(U.E.u),w=new W(U.E.Q),E=this.R.map[this.QM.Wl],n=-1; -for(var K=0;K":"> <"}; -iP.prototype.a9I=function(){var D=new W(U.E.Q,!0);D.data={e:U.V.qY};this.n(D)};iP.prototype.RX=function(D){this.aen(1); -if(D)this.a9I()};iP.prototype.collapse=function(D){this.aen(0);if(D)this.a9I()};iP.prototype.hb=function(){return this.$N==1}; -function cA(D){iP.call(this,"vcolumn");this.Ze=D;this.Yo();this.E_=U.p("div");this.E_.setAttribute("style","cursor:default;"); -this.a6R=this.ahc.bind(this);this.ap5=this.ah_.bind(this);this.a4F=this.aam.bind(this);U.EC(this.k,this.a6R); -this.k.appendChild(this.E_);this.Qy=U.p("div","");this.E_.appendChild(this.Qy);this.Zf=null;this.cv=U.p("div","float"); -this.vE=[];this.afh=null;this.af8=0}cA.prototype=new iP;cA.prototype.ahc=function(D){if(D.target!=this.k)return; -if(!this.hb())return;this.afh=U.hK(D,document.body);this.af8=this.Ze;U.VW(document,this.ap5);U.We(document,this.a4F)}; -cA.prototype.ah_=function(D){var M=U.hK(D,document.body);this.Ze=this.af8+this.afh.x-M.x;this.Yo();var s=new W(U.E.Q,!0); -s.data={e:U.V.qY};this.n(s)};cA.prototype.aam=function(D){U.kT(document,this.ap5);U.wH(document,this.a4F)}; -cA.prototype.afE=function(D){D.l("showFloat",this.a1p,this);D.l("hideFloat",this.V0,this);this.vE.push(D); -D.parent=this;this.E_.appendChild(D.k)};cA.prototype.agF=function(K){var D=this.vE[K];D.removeEventListener("showFloat",this.a1p,this); -D.removeEventListener("hideFloat",this.V0,this);this.vE.splice(K,1);D.parent=null;this.E_.removeChild(D.k)}; -cA.prototype.aqr=function(){return this.vE.length};cA.prototype.rL=function(){for(var K=0;K"; -M.addEventListener("touchmove",U._L,!1);this.agz=!0;this.Q6=[];var s=this.ajC=U.p("div");s.setAttribute("style","float:right; padding:4px;display:none; position:relative;z-index:1;"); -this.k.appendChild(s);var X=["",[0,13,3],[0,13,4],[0,13,5],"Blog","API",F+"",F+"",F+""]; -for(var K=0;K0){this.Go.x=M.x-10;this.DX.x=0}if(s+10X+d,$=U._X,w=$("b`bRH"),q=$("SU\\VOAV"); -F[w][q]=V?"":$("][WK")};function bf(){ct.call(this);this.kL=null;this.zX=bf.LZ;this.a51="";this.k=U.p("div","rightbar"); -this.S3=[new cA(380),new cA(265)];this.vE=[new bk,new bk,new bk,new bk,new bk,new bk];this.amq=[]}bf.prototype=new ct; -bf.prototype._=function(){var D=this.zX;for(var K=0;K0)F.push(d)}s=F}for(var K=0; -K1);this.Ng.push(A);var E=this.aaC[$.id]; -if(E==null)E=0;if(E>B){B=E;u=A}A.l(U.E.M,this.m4,this);A.l("mover",this.e9,this);w.push({name:$.name,Dn:$.mS,Sb:P?P.vn:""})}this.wD.push(u); -if(w.length==1)this.gb.push(null);else{var n=new hb(w);n.a4I=q;n.$o=K;this.gb.push(n);n.l("select",this.a10,this); -n.parent=this}}};d6.prototype.CI=function(D,M){var s=this.WQ=M-11,F=32;if(1640)this.oz.appendChild(this.fl.k); -this.oz.appendChild(this.LW.k)};d6.prototype.Pf=function(D,M){this.lc(M.Wl)};d6.prototype.mj=function(D,M){this.FO=D; -if(M==bd.z7){this.ix(this.Q0);this.lc(D.Wl)}this.P7.amI(D.Yr,D.hE)};function fh(D,M,s,F,X,d){ct.call(this); -this.mQ=0;this.Yc=this.akk.bind(this);this.$o=X;this.qV=F;this.w_=D;this.aiT=M;this.ajo=d;this.mS=s; -this.k=U.p("button","");this.k.innerHTML=U.G8(this.mS);if(this.ajo){var V=U.p("img","gsicon");V.setAttribute("src",PIMG["tools/corner"]); -V.setAttribute("style","position:absolute; right:0; bottom:0; width:100%; height:100%;");this.k.appendChild(V)}this._(); -U.EC(this.k,this.Qs.bind(this));this.k.addEventListener("click",this.h5.bind(this),!1);this.k.addEventListener("contextmenu",fh.al,!1)}fh.prototype=new ct; -fh.al=function(D){D.stopPropagation();D.preventDefault();return!1};fh.prototype._=function(){var D=this.aiT?" ("+this.aiT.vn+")":""; -this.k.setAttribute("title",dY.get(this.w_)+D)};fh.prototype.Qs=function(D){this.mQ=setTimeout(this.Yc,160)}; -fh.prototype.h5=function(D){clearTimeout(this.mQ);var M=new W(U.E.M,!1);M.target=this;M.id=this.qV;this.n(M)}; -fh.prototype.akk=function(D){var M=new W("mover",!1);M.target=this;M.id=this.qV;this.n(M)};fh.prototype.a00=function(D){this.k.setAttribute("class",D?"toolbtn active":"toolbtn")}; -function dT(){ct.call(this);this.k=U.p("div","topbar");this.SZ=U.p("span","");this.aqn=0;this.k.appendChild(this.SZ); -this.n0=null;this.hc=null;this.N7=[];this.oI=[];var D=this.Qs.bind(this);for(var K=0;K",!1,"Fullscreen"); -this.SN.l("click",this.zA,this);this.k.appendChild(this.SN.k)}dT.prototype=new ct;dT.prototype.anO=function(){if(this.oI.length!=0)return; -for(var K=0;K1||u.N[u.D[0]].Pq())}}},{name:[6,12,1]}],Em:[{sub:[{o:U.E.u,G:T.HG,r:{e:g.MK}},{o:U.E.u,G:T.HG,r:{e:g.G5}},{o:U.E.u,G:T.HG,r:{e:g.C9}}]},{o:U.E.u,G:T.HG,r:{e:g.mh}},{o:U.E.Q,r:{e:U.V.Aq,VM:"duplinto"}},{o:U.E.u,G:T.HG,r:{e:g.sa}},{sub:ij.b6(!0)},{sub:[{o:U.E.u,G:T.iT,r:{e:"newfill",IL:0}},{o:U.E.qZ,r:T.Qg.sh(1)},{o:U.E.qZ,r:T.Qg.sh(2)}]},{sub:ij.aeS()},{sub:[{o:U.E.u,G:T.HG,r:{e:g.P8,wI:"RvlA"}},{o:U.E.u,G:T.HG,r:{e:g.P8,wI:"HdAl"}},{o:U.E.u,G:T.HG,r:{e:g.P8,wI:"RvlS"}},{o:U.E.u,G:T.HG,r:{e:g.P8,wI:"HdSl"}},{o:U.E.u,G:T.HG,r:{e:g.P8,wI:"Trns"}},{o:U.E.u,G:T.HG,r:{e:g.KR}},{o:U.E.u,G:T.HG,r:{e:g.x7}},{o:U.E.u,G:T.HG,r:{e:g.pL}}]},{sub:[{o:U.E.u,G:T.HG,r:{e:g.s9,ahd:!1}},{o:U.E.u,G:T.HG,r:{e:g.s9,ahd:!0}},{o:U.E.u,G:T.HG,r:{e:g.s9,acQ:!0}},{o:U.E.u,G:T.HG,r:{e:g.Un}},{o:U.E.u,G:T.HG,r:{e:g.Et}}]},{o:U.E.u,G:T.HG,r:{e:g.l$}},{sub:[{o:U.E.qZ,r:{FX:"newPlacedLayer"}},{sub:$},{o:U.E.qZ,r:{FX:"placedLayerEditContents",k_:{classID:"placedLayerEditContents"}}},{o:U.E.u,G:T.HG,r:{e:g.dN}}]},{o:U.E.qZ,r:{FX:"rasterizeLayer",k_:{classID:"rasterizeLayer",null:iy.ko("Lyr",!0)}}},{o:U.E.u,G:T.HG,r:{e:g.CF}},{o:U.E.u,G:T.HG,r:{e:g.g7}},{sub:[{o:U.E.u,G:T.HG,r:{e:g.q5,Si:0}},{o:U.E.u,G:T.HG,r:{e:g.q5,Si:1}},{o:U.E.u,G:T.HG,r:{e:g.q5,Si:2}},{o:U.E.u,G:T.HG,r:{e:g.q5,Si:3}}]},{sub:[{o:U.E.u,G:T.HG,r:{e:g.aU,Si:"makeframes"}},{o:U.E.u,G:T.HG,r:{e:g.aU,Si:"unmakeframes"}},{o:U.E.u,G:T.HG,r:{e:g.aU,Si:"merge"}}]},{o:U.E.u,G:T.HG,r:{e:g.Td}},{o:U.E.u,G:T.HG,r:{e:g.jj}},{o:U.E.qZ,r:{FX:"flattenImage"}}]},dT.aeP(!1),function(){var u={name:[0,6],items:[{name:[24,18,4],Sb:[F,M,D.Fi],TX:!0}],Em:[{o:U.E.u,G:T.ex,r:{e:"applylast"}}]}; -for(var K=0;K=0)U.fN(this.Ev[$].k,"wdisabled");this.k.appendChild(V.k);this.Ev.push(V);this.cl(V);V.Pf(M,s,F,X)}; -hc.prototype.cl=function(D){var M=this.mb,s=this.St,F=D.k1(M,s),X;if(F!=null){X=F}else{F=new eo(0,0); -X=D.a0J();if(X==null){var d=this.Ev.indexOf(D)+1;if(M<450||s<450)X=new eo(0,0);else X=new eo(d*150,d*150)}}D.k.style.left=X.x+"px"; -D.k.style.top=this.k.offsetTop+X.y+"px";D.CI(this.mb-F.x*2,this.St-F.y*2-34)};hc.prototype.mj=function(D,M){this.kL=D; -for(var K=0;K=0)U.PF(this.Ev[s].k,"wdisabled");if(this.S1.parentNode==this.k)this.k.removeChild(this.S1)}; -window.onload=function(){var D=new aq;document.body.appendChild(D.k)}}()) \ No newline at end of file +aX._O=["{\"classID\":\"ebbl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"hglM\":{\"t\":\"enum\",\"v\":{\"BlnM\":\"Scrn\"}},\"hglC\":{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"t\":\"doub\",\"v\":255},\"Grn\":{\"t\":\"doub\",\"v\":255},\"Bl\":{\"t\":\"doub\",\"v\":255}}},\"hglO\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":75}},\"sdwM\":{\"t\":\"enum\",\"v\":{\"BlnM\":\"Mltp\"}},\"sdwC\":{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"t\":\"doub\",\"v\":0},\"Grn\":{\"t\":\"doub\",\"v\":0},\"Bl\":{\"t\":\"doub\",\"v\":0}}},\"sdwO\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":75}},\"bvlT\":{\"t\":\"enum\",\"v\":{\"bvlT\":\"SfBL\"}},\"bvlS\":{\"t\":\"enum\",\"v\":{\"BESl\":\"InrB\"}},\"uglg\":{\"t\":\"bool\",\"v\":true},\"lagl\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Ang\",\"val\":120}},\"Lald\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Ang\",\"val\":30}},\"srgR\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"blur\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Pxl\",\"val\":5}},\"bvlD\":{\"t\":\"enum\",\"v\":{\"BESs\":\"In\"}},\"TrnS\":{\"t\":\"Objc\",\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"Linear\"},\"Crv\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"Objc\",\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"t\":\"doub\",\"v\":0},\"Vrtc\":{\"t\":\"doub\",\"v\":0}}},{\"t\":\"Objc\",\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"t\":\"doub\",\"v\":255},\"Vrtc\":{\"t\":\"doub\",\"v\":255}}}]}}},\"antialiasGloss\":{\"t\":\"bool\",\"v\":false},\"Sftn\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Pxl\",\"val\":0}},\"useShape\":{\"t\":\"bool\",\"v\":false},\"MpgS\":{\"t\":\"Objc\",\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"Linear\"},\"Crv\":{\"t\":\"VlLs\",\"v\":[{\"t\":\"Objc\",\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"t\":\"doub\",\"v\":0},\"Vrtc\":{\"t\":\"doub\",\"v\":0}}},{\"t\":\"Objc\",\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"t\":\"doub\",\"v\":255},\"Vrtc\":{\"t\":\"doub\",\"v\":255}}}]}}},\"AntA\":{\"t\":\"bool\",\"v\":false},\"Inpr\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":28}},\"useTexture\":{\"t\":\"bool\",\"v\":false},\"InvT\":{\"t\":\"bool\",\"v\":false},\"Algn\":{\"t\":\"bool\",\"v\":true},\"Scl\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"textureDepth\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":100}},\"Ptrn\":{\"t\":\"Objc\",\"v\":{\"classID\":\"Ptrn\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"orangeslices\"},\"Idnt\":{\"t\":\"TEXT\",\"v\":\"c7acb22a-47a6-11de-919a-bf574370eaaf\"}}},\"phase\":{\"t\":\"Objc\",\"v\":{\"classID\":\"Pnt\",\"Hrzn\":{\"t\":\"doub\",\"v\":0},\"Vrtc\":{\"t\":\"doub\",\"v\":0}}}}","{\"classID\":\"FrFX\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},\"Styl\":{\"v\":{\"FStl\":\"OutF\"},\"t\":\"enum\"},\"PntT\":{\"v\":{\"FrFl\":\"SClr\"},\"t\":\"enum\"},\"Sz\":{\"v\":{\"type\":\"#Pxl\",\"val\":3},\"t\":\"UntF\"},"+aX.mR.c5+","+aX.mR.V+","+aX.mR.vk+"}","{\"classID\":\"IrSh\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Mltp\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 75},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":0,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},\"uglg\":{\"v\":true,\"t\":\"bool\"},\"lagl\":{\"v\":{\"type\":\"#Ang\",\"val\":120},\"t\":\"UntF\"},\"Dstn\":{\"v\":{\"type\":\"#Pxl\",\"val\":5},\"t\":\"UntF\"},\"Ckmt\":{\"v\":{\"type\":\"#Pxl\",\"val\":0},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":5},\"t\":\"UntF\"},\"Nose\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"TrnS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Linear\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"}}","{\"classID\":\"IrGl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Scrn\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 75},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":255,\"t\":\"doub\"},\"Bl\":{\"v\":189.99710083007812,\"t\":\"doub\"}},\"t\":\"Objc\"},\"GlwT\":{\"v\":{\"BETE\":\"SfBL\"},\"t\":\"enum\"},\"Ckmt\":{\"v\":{\"type\":\"#Pxl\",\"val\":0},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":5},\"t\":\"UntF\"},\"ShdN\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"Nose\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"glwS\":{\"v\":{\"IGSr\":\"SrcE\"},\"t\":\"enum\"},\"TrnS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Linear\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"},\"Inpr\":{\"v\":{\"type\":\"#Prc\",\"val\":50},\"t\":\"UntF\"}}","{\"classID\":\"ChFX\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Mltp\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 50},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":0,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"Invr\":{\"v\":true,\"t\":\"bool\"},\"lagl\":{\"v\":{\"type\":\"#Ang\",\"val\":19},\"t\":\"UntF\"},\"Dstn\":{\"v\":{\"type\":\"#Pxl\",\"val\":11},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":14},\"t\":\"UntF\"},\"MpgS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Gaussian\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":32,\"t\":\"doub\"},\"Vrtc\":{\"v\":7,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":64,\"t\":\"doub\"},\"Vrtc\":{\"v\":38,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":96,\"t\":\"doub\"},\"Vrtc\":{\"v\":101,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":128,\"t\":\"doub\"},\"Vrtc\":{\"v\":166,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":159,\"t\":\"doub\"},\"Vrtc\":{\"v\":209,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":191,\"t\":\"doub\"},\"Vrtc\":{\"v\":235,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":223,\"t\":\"doub\"},\"Vrtc\":{\"v\":248,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"}}","{\"classID\":\"SoFi\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+aX.mR.c5+"}","{\"classID\":\"GrFl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+aX.mR.V+"}","{\"classID\":\"patternFill\",\"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+aX.mR.vk+"}","{\"classID\":\"OrGl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Scrn\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 75},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":255,\"t\":\"doub\"},\"Bl\":{\"v\":189.99710083007812,\"t\":\"doub\"}},\"t\":\"Objc\"},\"GlwT\":{\"v\":{\"BETE\":\"SfBL\"},\"t\":\"enum\"},\"Ckmt\":{\"v\":{\"type\":\"#Pxl\",\"val\":0},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":5},\"t\":\"UntF\"},\"Nose\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"ShdN\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"TrnS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Linear\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"},\"Inpr\":{\"v\":{\"type\":\"#Prc\",\"val\":50},\"t\":\"UntF\"}}","{\"classID\":\"DrSh\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Mltp\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\": 57},\"t\":\"UntF\"},\"Clr\":{\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":0,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},\"uglg\":{\"v\":true,\"t\":\"bool\"},\"lagl\":{\"v\":{\"type\":\"#Ang\",\"val\":120},\"t\":\"UntF\"},\"Dstn\":{\"v\":{\"type\":\"#Pxl\",\"val\":27},\"t\":\"UntF\"},\"Ckmt\":{\"v\":{\"type\":\"#Pxl\",\"val\":0},\"t\":\"UntF\"},\"blur\":{\"v\":{\"type\":\"#Pxl\",\"val\":13},\"t\":\"UntF\"},\"Nose\":{\"v\":{\"type\":\"#Prc\",\"val\":0},\"t\":\"UntF\"},\"AntA\":{\"v\":false,\"t\":\"bool\"},\"TrnS\":{\"v\":{\"classID\":\"ShpC\",\"Nm\":{\"v\":\"Line\xE1rn\xED\",\"t\":\"TEXT\"},\"Crv\":{\"v\":[{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":0,\"t\":\"doub\"},\"Vrtc\":{\"v\":0,\"t\":\"doub\"}},\"t\":\"Objc\"},{\"v\":{\"classID\":\"CrPt\",\"Hrzn\":{\"v\":255,\"t\":\"doub\"},\"Vrtc\":{\"v\":255,\"t\":\"doub\"}},\"t\":\"Objc\"}],\"t\":\"VlLs\"}},\"t\":\"Objc\"},\"layerConceals\":{\"v\":true,\"t\":\"bool\"}}"]; +aX.V={types:"Lnr Rdl Angl Rflc Dmnd shapeburst".split(" "),names:[[19,0,0],[19,0,1],[19,0,2],[19,0,3],[19,0,4],[19,0,5]]}; +aX.stroke={types:["InsF","CtrF","OutF"],names:[[19,5,2],[19,5,1],[19,5,0]],WJ:["SClr","GrFl","Ptrn"],a74:[[13,0],[12,37],[12,62]]}; +aX.K4={types:["SfBL","PrBL"],names:[[19,1,0],[19,1,1]],ub:["SrcC","SrcE"],aoS:[[19,5,1],[12,69]]};aX.GP={types:["OtrB","InrB","Embs","PlEb","strokeEmboss"],style:[[19,2,0],[19,2,1],[19,2,2],[19,2,3],[19,2,4]],Ll:["SfBL","PrBL","Slmt"],abY:[[19,3,0],[19,3,1],[19,3,2]],dir:[[19,4,0],[19,4,1]]}; +aX.ln={HS:["strokeStyleButtCap","strokeStyleRoundCap","strokeStyleSquareCap"],u4:["strokeStyleAlignInside","strokeStyleAlignCenter","strokeStyleAlignOutside"],join:["strokeStyleMiterJoin","strokeStyleRoundJoin","strokeStyleBevelJoin"],PD:["solidColorLayer","gradientLayer","patternLayer"],default:{classID:"strokeStyle",strokeStyleVersion:{t:"long",v:2},strokeEnabled:{t:"bool",v:!1},fillEnabled:{t:"bool",v:!0},strokeStyleLineWidth:{t:"UntF",v:{type:"#Pnt",val:4.38}},strokeStyleLineDashOffset:{t:"UntF",v:{type:"#Pnt",val:0}},strokeStyleMiterLimit:{t:"doub",v:100},strokeStyleLineCapType:{t:"enum",v:{strokeStyleLineCapType:"strokeStyleButtCap"}},strokeStyleLineJoinType:{t:"enum",v:{strokeStyleLineJoinType:"strokeStyleMiterJoin"}},strokeStyleLineAlignment:{t:"enum",v:{strokeStyleLineAlignment:"strokeStyleAlignCenter"}},strokeStyleScaleLock:{t:"bool",v:!1},strokeStyleStrokeAdjust:{t:"bool",v:!1},strokeStyleLineDashSet:{t:"VlLs",v:[]},strokeStyleBlendMode:{t:"enum",v:{BlnM:"Nrml"}},strokeStyleOpacity:{t:"UntF",v:{type:"#Prc",val:100}},strokeStyleContent:{t:"Objc",v:JSON.parse("{\"classID\":\"solidColorLayer\","+aX.mR.c5+"}")},strokeStyleResolution:{t:"doub",v:72}}}; +aX.YL=[{classID:"null",Clr:JSON.parse(aX._O[5]).Clr},{classID:"null",Grad:JSON.parse(aX._O[6]).Grad,Dthr:{t:"bool",v:!1},Rvrs:{t:"bool",v:!1},Angl:{t:"UntF",v:{type:"#Ang",val:60}},Type:{t:"enum",v:{GrdT:"Lnr"}},Algn:{t:"bool",v:!0},Scl:{t:"UntF",v:{type:"#Prc",val:100}},Ofst:{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Prc",val:0}},Vrtc:{t:"UntF",v:{type:"#Prc",val:0}}}}},{classID:"null",Ptrn:JSON.parse(aX._O[7]).Ptrn,Algn:{v:!0,t:"bool"},Scl:{v:{type:"#Prc",val:100},t:"UntF"},phase:{v:{classID:"Pnt",Hrzn:{v:0,t:"doub"},Vrtc:{v:0,t:"doub"}},t:"Objc"}}]; +var hN={};hN.u2=function(a,F){function y(a,T){if(a==null)return null;var o=a[T].v,v;if(o.length!=0){v=o[0].v; +if(!v.enab.v)v=null}return v}var c=F.SoCo,Q=F.GdFl,S=y(a,"solidFillMulti"),h=y(a,"gradientFillMulti"); +if(S==null&&h==null)return[c,Q];var d=hN.aaQ;if(c&&S&&h==null){var W=JSON.parse(JSON.stringify(c));W.Clr.v=d(S.Clr.v,c.Clr.v,S); +return[W,null]}if(Q&&S&&h==null){var w=JSON.parse(JSON.stringify(Q)),J=w.Grad.v.Clrs.v;for(var G=0;G0&&T.blur.v.val>0)h=Math.max(h,Math.ceil(T.Ckmt.v.val*T.blur.v.val/100)); +if(W=="OrGl"&&T.enab.v&&T.Ckmt.v.val>0&&T.blur.v.val>0&&T.GlwT.v.BETE=="SfBL")h=Math.max(h,Math.ceil(T.Ckmt.v.val*T.blur.v.val/100)); +if(W=="OrGl"&&T.enab.v&&T.blur.v.val>0&&T.GlwT.v.BETE=="PrBL")h=Math.max(h,T.blur.v.val);if(W=="FrFX"&&T.enab.v&&T.Sz.v.val>0){if(T.Styl.v.FStl=="OutF")h=Math.max(h,T.Sz.v.val); +if(T.Styl.v.FStl=="CtrF")h=Math.max(h,Math.ceil(T.Sz.v.val/2));d=Math.max(d,hN.K5(T)[1])}}}var o=new hN.Gn(y,c,h,hN.AA(a)),v=-c.x,i=-c.y,N={type:{},all:[]}; +for(var b=0;b=0;q--){var O=a[w].v[q].v;if(!O.enab.v)continue;var R=O.blur?O.blur.v.val:0,k=O.Ckmt?O.Ckmt.v.val/100:0,L=R*k; +if(W=="DrSh"){var C=o.Z$(L,R-L,!0),t=C.SS,_=C.a_;_.offset(v,i);hN.jp(t,O,!1);hN.ex(_,O,Q,0);var M=D.G(_.L()*4); +hN.wI(M,O.Clr.v);D.Iy(t,M,3);var I={BN:M,cf:_,Wn:bY.z5(O.Md.v.BlnM),Z4:O.Opct.v.val/100,an1:O.layerConceals.v}; +N.type[W].push(I);N.all.push(I)}if(W=="IrSh"){var C=o.Z$(L,R-L,!1);hN.ex(C.a_,O,Q,0);var _=o.rect().clone(),t=D.G(_.L()); +t.fill(255);D.oR(C.SS,C.a_,t,_);hN.jp(t,O,!0);var M=D.G(_.L()*4);hN.wI(M,O.Clr.v);D.Iy(t,M,3);_.offset(v,i); +var I={BN:M,cf:_,Wn:bY.z5(O.Md.v.BlnM),Z4:O.Opct.v.val/100};N.type[W].push(I);N.all.push(I)}if(W=="GrFl"){var M=D.G(o.rect().L()*4); +hN.MF(O,M,o.rect(),Q,null,S);var _=o.rect().clone();_.offset(v,i);var I={BN:M,cf:_,Wn:bY.z5(O.Md.v.BlnM),Z4:O.Opct.v.val/100}; +N.type[W].push(I);N.all.push(I)}if(W=="SoFi"){var M=D.G(o.SS().length*4);hN.wI(M,O.Clr.v);var _=o.rect().clone(); +_.offset(v,i);var I={BN:M,cf:_,Wn:bY.z5(O.Md.v.BlnM),Z4:O.Opct.v.val/100};N.type[W].push(I);N.all.push(I)}if(W=="ebbl"){var j=!1; +if(j)console.log(O);var r=Date.now(),s=O.bvlS.v.BESl;if(s=="strokeEmboss"){var e=a.frameFXMulti.v;if(e.length==0)continue; +e=e[0].v;if(!e.enab.v)continue;var P=e.Styl.v.FStl;if(P=="OutF")s="OtrB";if(P=="CtrF")s="Embs";if(P=="InsF")s="InrB"}var R=O.blur.v.val; +if(R==0)R=.7;if(s=="Embs"||s=="PlEb")R/=2;var l=["OtrB","InrB","Embs","PlEb","strokeEmboss"],x=["SfBL","PrBL","Slmt"],E=["In","Out"],p=O.bvlT.v.bvlT!="SfBL"?R:R*.45,H=Math.round(R),g=o.rect().clone(),B=g.clone(); +B.Pl(H,H);var U=B.t,Z=B.w,aR=U*Z,hY=D.G(aR);D.oR(o.SS(),g,hY,B);var j3=new Float64Array(aR),X=new Float64Array(aR); +D.style.fI(hY,j3,U,Z);D.kW(hY);D.style.fI(hY,X,U,Z);if(j)console.log("distTransform computed",Date.now()-r); +for(var G=0;Gp)X[G]=p}if(j)console.log("summing + cropping",Date.now()-r); +if(O.bvlT.v.bvlT=="SfBL"){var hW=Math.pow(R*.21,1.22);if(!0)hW=Math.max(hW,2);var cY=D.AX.EH(hW,2);D.AX._9(X,j3,B,cY[0]>>>1); +D.AX._9(j3,X,B,cY[1]>>>1)}if(j)console.log("blurring",Date.now()-r);var ho=X,e7=ho.slice(0);if(O.useShape.v){var b2=Math.min(100,O.Inpr.v.val+1)/100; +if(s!="OtrB"&&s!="InrB")b2=1;var aB=D.H1.wp(O.MpgS.v.Crv.v,2e3),eB=Math.round(2e3/b2);aB=D.H1.ald(aB,eB,s=="InrB"); +var et=.5/p;for(var G=0;G0)az[G]=iI;if(cS>0)hu[G]=cS}if(j)console.log("raycasting",Date.now()-r); +if(O.Sftn.v.val!=0){D.AX.sv(az,j3,B,O.Sftn.v.val*.43);var bp=j3,j3=az,az=bp;if(aV){D.AX.sv(hu,j3,B,O.Sftn.v.val*.43); +var bp=j3,j3=hu,hu=bp}else D.YR(az,hu)}if(j)console.log("softening",Date.now()-r);var aB=D.H1.wp(O.TrnS.v.Crv.v,1024); +for(var G=0;G0){var C=o.Z$(g6,0,!0);hG=C.SS;if(hG.length<_.L()){hG=D.G(_.L()); +D.oR(C.SS,C.a_,hG,_)}}if(c6>0){var C=o.Z$(c6,0,!1);fx=D.G(_.L());fx.fill(255);D.oR(C.SS,C.a_,fx,_)}_.offset(v,i); +var M=D.G(_.L()*4),ct=O.PntT.v.FrFl;if(ct=="SClr")hN.wI(M,O.Clr.v);if(ct=="GrFl")hN.MF(O,M,_,Q,o.ac7(c6,g6)); +if(ct=="Ptrn")hN.WS(O,M,_,Q,F);var I={BN:M,cf:_,Wn:bY.z5(O.Md.v.BlnM),Z4:O.Opct.v.val/100,lz:hG,pc:fx}; +N.type[W].push(I);N.all.push(I)}}}return N};hN.Y4=function(a){var F=1/Math.sqrt(a.x*a.x+a.y*a.y+a.zE*a.zE); +a.x*=F;a.y*=F;a.zE*=F};hN.t6=function(a,F){return{x:a.y*F.zE-a.zE*F.y,y:a.zE*F.x-a.x*F.zE,zE:a.x*F.y-a.y*F.x}}; +hN.a2C=function(a,F){return a.x*F.x+a.y*F.y+a.zE*F.zE};hN.w5=function(a,F){var y=F.Nose.v.val/100;if(y>0)for(var G=0; +GQ){var S=D.H1.B6(F.TrnS.v.Crv.v,256,!0);D.nd(a,S)}if(y!=null&&F.Nose.v.val>0)D.style.gK(a,F.Nose.v.val/100,y)}; +hN.wI=function(a,F,y){if(y==null)y=255;var c=D.V.$j(F),Q=y<<24|c.d<<16|c.m<<8|c.i,S=new Uint32Array(a.buffer); +S.fill(Q)};hN.ex=function(a,F,y,c){var Q=F.uglg&&F.uglg.v?y.ul():F.lagl.v.val;Q=Q*Math.PI/180+c;var S=Math.cos(Q)*F.Dstn.v.val,h=Math.sin(Q)*F.Dstn.v.val; +a.x-=Math.round(S);a.y+=Math.round(h)};hN.Xj=function(a){if(a==null)return null;var F=a.frameFXMulti.v; +if(F.length==0)return null;F=F[0].v;var y=JSON.parse(JSON.stringify(aX.ln.default));hN.r7(F,y);return y}; +hN.r7=function(a,F){var y=aX.stroke.WJ.indexOf(a.PntT.v.FrFl),c=[aX.HN,aX.pX,aX.BZ][y],Q=F.strokeStyleContent.v={classID:aX.ln.PD[y]}; +for(var G=0;G=6)this.TG(this.ne(Q))};i4.prototype.nE=function(a){if(a==null)a=1;a=Math.max(.05,Math.min(5,a)); +if(isNaN(a)){alert("Pressure is not a number");throw"e"}return a};i4.prototype.TG=function(a){this.vH=a; +this.lp=this.lp.jD(a)};i4.prototype.finish=function(){var a=this.T6,F=a.length,y;if(F==4)y=this.I_(a[F-2],a[F-1],this.CS[(F>>1)-1],!0); +if(F>4)y=this.ne(F+2);if(y)this.TG(y)};i4.prototype.ne=function(a){var F=this.T6,y=this.CS,c=F[a-6],Q=F[a-5],S=F[a-4],h=F[a-3],d=y[(a>>1)-3],W=y[(a>>1)-2],w=new iS(0,0),J=new iS(0,0); +if(8<=a)w=i4.t1(F[a-8],F[a-7],c,Q,S,h);if(a<=F.length)J=i4.t1(F[a-2],F[a-1],S,h,c,Q);var A=c+w.x,T=Q+w.y,o=S+J.x,v=h+J.y,i=new cJ; +for(var G=0;G<10;G++){var N=(G+1)*.1,b=1-N,q=b*b*b*c+3*N*b*b*A+3*N*N*b*o+N*N*N*S,O=b*b*b*Q+3*N*b*b*T+3*N*N*b*v+N*N*N*h,R=this.I_(q,O,d+N*(W-d)); +i=i.jD(R)}return i};i4.t1=function(a,F,y,c,Q,S){var h=a-y,d=F-c,W=Q-y,w=S-c,J=Math.sqrt(h*h+d*d),A=Math.sqrt(W*W+w*w),T=Math.acos((h*W+d*w)/(J*A))/Math.PI,o=.35,v=.1; +T=v+T*(o-v);var i=Q-a,N=S-F,b=Math.sqrt(i*i+N*N),q=T*A/b;return new iS(i*q,N*q)};i4.prototype.I_=function(a,F,y,c){var Q=new cJ,S=this.rh.abC; +if(S==null)S=0;if(S==0||c){Q=this.qS(a,F,y);return Q}var h=this.vS,d=a-h.x,W=F-h.y,w=Math.sqrt(d*d+W*W); +d/=w;W/=w;if(w>S){var J=h.x+d*(w-S),A=h.y+W*(w-S);Q=this.qS(J,A,y);this.vS.Xo(J,A)}return Q};i4.prototype.qS=function(a,F,y){var c=new cJ,Q=new iS(a,F),S=this.d.Brsh.v.Dmtr.v.val,h=this.rh.uZ,d=Q.VU(this.q$); +d.normalize(1);var W=iS.Uy(this.q$,Q),w=-this.ajk,J=this.q$.clone(),A=this.rh.cI;while(!0){var T=this.kZ+(y-this.kZ)*(Math.max(0,w)/W),o=this._Z()*(A[1]?T:1),v=this.a8E()*(o+this.aqu)/2; +if(h==i4._u)v=1;if(w+v0?1:-1;var b=J.clone();b.y+=d.y>0?1:-1;if(iS.Uy(N,i)1)d.H2=1-(d.H2-1);d.VO=d.VO+h;if(d.VO<0)d.VO=-d.VO; +if(d.VO>1)d.VO=1-(d.VO-1);F=D.By(d.ml,d.H2,d.VO)}return F};i4.prototype.Y4=function(a){return Math.max(0,Math.min(1,a))}; +i4.prototype.Aw=function(){this.nU++;return i4.hash(this.nU)};i4.gz=function(a){return{i:(a>>16&255)/255,m:(a>>8&255)/255,d:(a>>0&255)/255}}; +i4.hash=function(a){a=a^61^a>>16;a=a+(a<<3);a=a^a>>4;a=a*668265261;a=a^a>>15;return(a&16777215)/16777215}; +i4.iW=[];i4.a6n=function(a,$){var F=a.Ms(),y=$.Ms();if(F2500){S=d; +break}}var W=Math.round(this.d.Brsh.v.Dmtr.v.val);if(S){S.rect.x=Math.round(S.lH.x-S.Yd.iU+a.iU);S.rect.y=Math.round(S.lH.y-S.Yd.ma+a.ma); +if(Q){S.rect.x=Math.round(F.x-S.rect.t/2);S.rect.y=Math.round(F.y-S.rect.w/2)}S.eI=Date.now()}else{var w; +if(Q&&W<=3){w={buffer:D.G(W*W*4),rect:new cJ(Math.round(F.x-W/2),Math.round(F.y-W/2),W,W)};D.Jx(w.buffer,4278190080)}else if(a.re==1&&a.d==0&&a.Xa==0&&a.XL==1){w={buffer:this.fW.RI,rect:this.fW.lo.clone()}; +w.rect.x=Math.round(a.iU);w.rect.y=Math.round(a.ma)}else w=m.p.tI([this.fW.RI,this.fW.lo],a);if(Q){for(var G=0; +G127?255:0}if(w==null)w={buffer:D.G(0),rect:new cJ};var J=a.iU-Math.floor(a.iU),A=a.ma-Math.floor(a.ma); +S={RI:w.buffer,qi:D.G(w.rect.L()),rect:w.rect,lH:w.rect.clone(),Yd:a,R1:i4.bj(a.iU,a.ma),eI:Date.now()}; +D.ie(S.RI,S.qi,3);c.push(S);y.L+=w.rect.L();if(c.length>2e3||y.L>100*100*400){console.log("pruning",y.L,c.length); +c.sort(function(o,v){return v.eI-o.eI});while(c.length>1e3||y.L>100*100*200){var T=c.pop();y.L-=T.rect.L()}}}y.Z8=c; +y.eI=Date.now();i4.iW.push(y);i4.iW.sort(function(o,v){return v.eI-o.eI});while(i4.iW.length>3)i4.iW.pop(); +return S};i4.bj=function(a,F){return new iS(a-Math.floor(a),F-Math.floor(F))};i4.ahI=function(a,F){var y=F.x,c=F.y,Q=Math.abs(y-a.x),S=Math.abs(c-a.y); +if(Math.abs(y-1-a.x)>>1)+1); +for(var G=0;Gh*2&&P.iH[E+2]){E+=2;c=P.iH[E];Q=P.iH[E+1].clone();S*=Q.t/l;l=Q.t;x=Q.w}Q.x=Q.y=0}return{a0Z:S,lo:Q,RI:c}}; +i4.WV=[];i4.Px=function(a){if(i4.WV[a])return i4.WV[a];var F=Math.pow(a,.55),y=new Float64Array(8e3),c=0,Q=8e3; +for(var G=0;G<8e3;G++){var S=i4.a1p(G*(1.55/4e3),F);if(S>=1)c=G;else if(S<=0&&Q==8e3)Q=G;y[G]=S}var h=[y,c,Q]; +i4.WV[a]=h;return h};i4.a1p=function(a,F){var y=aA||L>T)&&O[C+2]){C+=2;R=O[C];k=O[C+1].t;L=O[C+1].w}if(k*L!=0){var t=new ImageData(new Uint8ClampedArray(R.buffer),k,L); +d.putImageData(t,Math.round((A-k)/2),Math.round((T-L)/2))}}else{}return h.toDataURL()};i4.N$=function(a,F,y,c){if(y==0)y=1; +var Q=a.Brsh.v,S=Q.Dmtr.v.val,h=Q.Dmtr.v.val=Math.min(c!=null?Math.round(c*2.6):3e3,S*y),d=Q.Hrdn?Q.Hrdn.v.val/100:1,W=c!=null?c:Math.round(h*(1+.55*(1-d)))+4,A; +W=Math.max(15,Math.min(W,3e3));var w=new cJ(0,0,W,W),J=new i4(a,F,null,{CC:1},16711712,0,w);Q.Dmtr.v.val=S; +J.moveTo(w.t/2,w.w/2);var T=J.AO(),o=J.pl();if(w.pI(o))A=T;else{A=D.G(w.L()*4);D.vD(T,o,A,w)}return[A,w,h]}; +i4.p6=function(a,F,y,c){var Q=i4.N$(a,F,y),S=Q[0].slice(0),h=Q[1],d=Q[2],W=h.L(),w=D.G(W);D.ie(S,w,3); +var J=D.G(W);D.Z.a3q(w,J,h);if(d<3||D.xK(J,0)||c&&d>12){var A=h.t,T=A>>>1,o=J,v=255;for(var G=0;G<4; +G++){o[A*(T-6+G)+T]=v;o[A*T+T-6+G]=v;o[A*T+T+6-G]=v;o[A*(T+6-G)+T]=v}}var i=[1,2,1,2,8,2,1,2,1];i=D.G5.jL(i); +D.G5.LI(J,w,h.t,h.w,i);D.Jx(S,4294967295);D.Iy(w,S,3);for(var G=0;G80?255:0;if(W==3)for(var G=0;G128?o:-1);if(w[v]==null){w[v]=1;if(F.ki(c[A].Name,o)==null)W=!1}}J+=S[G]}return W}; +a4.afA=function(a,F,y){var c=new hg;for(var G=0;G>>3,Q=a.TextOnPathTRange,S=a.Reversed,J=0,A=0; +if(S){var h=F.slice(0);for(var G=0;G>>3)+N)}J=q; +A=O}}var R=w.length,k=w[R-1],L=fD.NM(Q[0],W),C=fD.NM(Q[1]%c,W),t=w[L%R],_=w[C%R];if(t>=_)_+=k;return[d,W,w,k,t,_]}; +fD.NM=function(a,F){var G=0;while(F[G]65535)S--;return S}for(var N=0;NR+T/2||t==1&&a.x65535?2:1; +return L}}}}}};fD.prototype.tq=function(a){var F={a_:new cJ,c7:0},y=0;for(var c=0;cS)S=h}if(S>1424)Q=fD.aeE(c,F);return Q};fD.$W=function(a,F,y,c,Q,S,h){this.JB=[]; +this.LL=[];this.R1=new iS(0,0);this.hH=null;this.JB=null;this.H$=eA.adt(a,c);var d=this.H$,A=0,v="",O=0,R=1,H=0; +if(c!=0){var W=d.SpaceBefore;if(W!=null)S[0]+=W}var w=a.EngineDict.ParagraphRun.RunLengthArray,J=w[c]; +for(var G=0;G0&&l[x-1].KX==i)x--; +y[A+_+i].io=t.length+(I?x:l.length-x-1)}for(var i=0;i>>1;for(var G=0;G=aR)hY=G;else if(hY!=-1&&C2&&(E==6||!U))this.aeM(hY,hW,p,ho,T,e7);else{var aB=e7;for(var G=hY;G=a;G--)if(y[G].aZ||y[G].N3)S-=y[G].a_.t;else break;if(c==1)for(var G=a; +G=a;G--)if(y[G].aZ||y[G].N3){if(y[G].aZ){W--}}else break; +if(Q==1)for(var G=a;G0){o.JX=-Math.PI/2;o.R1.x+=b*.83;o.R1.y=-b*.3+o.cS*q/2; +o.cS=b/q}var O=o.cS*q*v.scale.x;o.a_=new cJ(0,-v.lineHeight,O,v.lineHeight);var R=o.a_.clone();R.km(o.R1); +if(v.H$.Tracking!=null)k=v.H$.Tracking*.001*b;if(v.H$.FauxBold==!0)k+=.027*b;d+=O+k;if(h==1&&v.$_==" ")R.t+=2*k; +else if(h==1&&v.$_!=null&&fD.Rr(v.$_.charCodeAt(0)))R.t+=k;this.a_=this.a_.jD(R);this.jP=Math.max(this.jP,v.jP); +this.lineHeight=Math.max(this.lineHeight,v.lineHeight)}};fD.SW=0;fD.LO=function(){if(fD.SW==2)return!0; +if(fD.SW==1)return!1;fD.SW=1;function a(){fetch("code/external/fribidi.wasm").then(function(F){return F.arrayBuffer()}).then(function(F){return WebAssembly.instantiate(F)}).then(function(F){var y=F.instance.exports,c=y.memory,Q=16,S=256,h=1,d=Q|S,W=Q|S|h; +fD.aeE=function(J,A){var T=J.length,o=T*4+4+T*4+T*4+T;f$.Zb(y,o+T+1e7);var v=new Uint8Array(c.buffer),i=new Uint32Array(c.buffer),N=y.calloc(o,1),b=N+T*4,q=b+4,O=q+T*4,R=O+T*4; +i.set(J,N>>>2);i[b>>>2]=A==0?d:W;y.fribidi_get_bidi_types(N,T,q);y.fribidi_get_bracket_types(N,T,q,O); +y.fribidi_get_par_embedding_levels_ex(q,O,T,b,R);var k=v.slice(R,R+T);y.free(N);return k};fD.SW=2;var w=new u(z.E.Q,!0); +w.data={e:z.h.mn,eN:"add",kd:bZ.tQ,IJ:null};cc.ij.n(w)})}Typr.U.initHB("code/external/hb.wasm",a);return!1}; +function eA(){}eA.tU=function(a){return JSON.parse(JSON.stringify(a))};eA.j8=function(a,F){for(var y in F)a[y]=F[y]}; +eA.X9=function(a,F,y){var c=eA.qn();if(y)eA.wC(c,0,0,y);var Q={q:new hg(1,0,0,1,Math.round(a),Math.round(F)),KU:c}; +Q.l5=eA.bM();Q.Pw=D.be.G();Q.pA=new cJ;return Q};eA.Ts=function(a){var F=["CharacterDirection",0];for(var G=0; +G=0?2:a.EngineDict.Rendered.Shapes.Children[0].ShapeType}; +eA.yK=function(a,F){var y=a.EngineDict.Rendered.Shapes.Children[0];y.ShapeType=F;var c=y.Cookie.Photoshop; +c.ShapeType=F;c.Base.ShapeType=F;if(F==0){delete c.BoxBounds;c.PointBase=[0,0]}if(F==1){delete c.PointBase; +c.BoxBounds=[0,0,1,1]}};eA.x0=function(a){return a.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds}; +eA.wM=function(a,F){a.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds=F};eA.a0L=function(a,F){return eA.anL(a,eA.my(a,F))}; +eA.my=function(a,F){var y=a.EngineDict.StyleRun.RunLengthArray;return eA.dn(y,F).jt};eA.anL=function(a,F){var y=a.ResourceDict.StyleSheetSet[0].StyleSheetData,c={}; +for(var Q in y)c[Q]=y[Q];var S=a.EngineDict.StyleRun.RunArray[F].StyleSheet.StyleSheetData;eA.j8(c,S); +return c};eA.adt=function(a,F){var y=a.ResourceDict.ParagraphSheetSet[0].Properties,c={};for(var Q in y)c[Q]=y[Q]; +var S=a.EngineDict.ParagraphRun.RunArray[F].ParagraphSheet.Properties;eA.j8(c,S);var h=["StartIndent","EndIndent","FirstLineIndent"]; +for(var G=0;G<3;G++)if(c[h[G]]==null)c[h[G]]=0;return c};eA.fg=function(a,F,y){if(y=="")return;var c=eA.AC(a); +eA.Lg(a,c.substring(0,F)+y+c.substring(F,c.length));var Q=a.EngineDict.StyleRun,S=Q.RunLengthArray,h=eA.dn(S,F-1); +S[h.jt]+=y.length;var d=a.EngineDict.ParagraphRun,S=d.RunLengthArray,W=eA.dn(S,F),w=y.split("\n");if(w.length==1){S[W.jt]+=y.length; +return}S.splice(W.jt+1,0,S[W.jt]-(F-W.H_));d.RunArray.splice(W.jt+1,0,eA.tU(d.RunArray[W.jt]));S[W.jt]-=S[W.jt+1]; +S[W.jt]+=w[0].length+1;for(var G=1;G"},{_0:"i40",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i41",_1:"s\xAB",_2:"s\xBB",_3:"s<",_4:"s>"},{_0:"i42",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i43",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i44",_1:"s\xAB",_2:"s\xBB",_3:"s\u2039",_4:"s\u203A"},{_0:"i45",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"}],_15:{_0:"sWinSoft"},_16:!1}; +var cC={};cC.EK=function(a){return cC.DG(a,cC.YG,0)};cC.ahu=function(a){return cC.Uz(a,cC.YG)};cC.DG=function(a,F,y){var c; +if(typeof a=="string")return a;if(a instanceof Array){c=[];for(var G=0;G0)d.push("border-radius: "+Math.round(J)+"px")}else if(h){var A=h.KU;if(eA.Lv(A)==1){var w=eA.x0(A); +d.push("width: "+Math.round(w[2])+"px");d.push("height: "+Math.round(w[3])+"px")}CSS.Za(d,eA.ot(A,0,0),h.q,!1,!1,W[0])}var T=[],o=S?S.dropShadowMulti.v:0; +for(var G=0;G>16&255,m:a>>8&255,d:a&255}};CSS.Ok=function(a,F){return CSS.S_(D.V.$j(a),F)}; +CSS.S_=function(a,F){if(F==null)F=1;var y=Math.round(a.i),c=Math.round(a.m),Q=Math.round(a.d),S=y<<16|c<<8|Q; +return F==1?"#"+D.C5(S):"rgba("+y+","+c+","+Q+","+F+")"};CSS.mz=function(a){var F=a.Grad.v;if(F.Clrs==null)return""; +var y=F.Clrs.v.slice(0),c=F.Trns.v.slice(0),Q=a.Ofst.v,S=a.Type.v.GrdT=="Rdl"?1:0,h=(S==1?"radial":"linear")+"-gradient",d=S==0?Math.round(-a.Angl.v.val+90)+"deg":"circle at center",W=a.Rvrs.v; +if(W){y.reverse();c.reverse()}for(var G=0;G")return a>F; +else if(y=="==")return a==F;else if(y=="===")return a===F;else if(y=="<=")return a<=F;else if(y==">=")return a>=F; +else if(y=="!=")return a!=F;else if(y=="!==")return a!==F;else if(y=="<<")return a<>")return a>>F; +else console.log(y)};dR.UF=function(a,F){if(F=="-")return-a;else if(F=="!")return!a;else if(F=="~")return~a; +else if(F=="+")return a;else console.log(obj)};dR.QA=function(a,F,y){var c=a.type;if(c=="Identifier")return dR.aas(a.name,F,y); +else return dR.eval(a,F,y)};dR.aas=function(a,F,y){if(a=="undefined")return undefined;else if(y.hasOwnProperty(a))return y[a]; +else if(a=="app")return{Ty:"Application"};else if(a=="$")return{Ty:"$"};else if(dR.SD.aiS.indexOf(a)!=-1)return dR.SD.je({Ty:"Application"},a,F,y); +else if(window[a]&&!dR.f3[a])return window[a];else{y[a]=null;return null}};dR.SD={};dR.SD.a7W=function(a,F,y,c){var Q; +if(a=="SolidColor")Q={Ty:a,H:[1,0,0,0]};if(a=="RGBColor")Q={Ty:a,H:[1,0,0,0]};if(a=="Window")Q={Ty:a,H:new bg(F[0],F[1],F[2])}; +if(a=="ExportOptionsSaveForWeb")Q={Ty:a,H:{qv:"png",d5:100}};if(a=="JPEGSaveOptions")Q={Ty:a,H:{qv:"jpg",d5:100}}; +if(a=="File")Q={Ty:a,H:F[0]};if(a=="ActionReference")Q={Ty:a,H:[]};if(a=="ActionDescriptor")Q={Ty:a,H:{}}; +if(a=="ActionList")Q={Ty:a,H:[]};if(a=="UnitValue")Q={Ty:a,H:F.length==0?0:parseFloat(F[0])};return Q}; +dR.SD.aiS="activeDocument documents fonts preferences displayDialogs foregroundColor backgroundColor".split(" "); +dR.SD.anw=["charIDToTypeID","stringIDToTypeID","executeAction","executeActionGet","doAction"];dR.SD.je=function(a,F,y,c){var Q=y.bF,S=y.nT(); +if(!1){}else if(F=="typename"){if(a.Ty=="Layer")return a.H.Dl()?"LayerSet":"ArtLayer";else return a.Ty}else if(["Document","Layer"].indexOf(a.Ty)!=-1&&["layers","artLayers","layerSets"].indexOf(F)!=-1){var h=S.root,d={Ty:"Layers",dD:F,H:[]}; +if(a.Ty=="Layer")h=S.root.Ui(S.u.indexOf(a.H));if(h.children==null)return null;for(var G=0;G>>16&255)/255,(J>>>8&255)/255,(J>>>0&255)/255]}}else if(F=="UI")return{Ty:"UI"}; +else console.log(a,F)}else if(a.Ty=="Document"){var S=a.H;if(!1){}else if(F=="activeLayer"){var W=S.u[S.D[0]]; +return{Ty:"Layer",H:W}}else if(F=="resolution")return S.BD;else if(F=="width")return S.t;else if(F=="height")return S.w; +else if(F=="name")return S.name;else if(F=="saved")return!S.E4();else if(F=="selection")return{Ty:"Selection"}; +else if(F=="activeHistoryState")return{Ty:"HistoryState",VS:S.Ch};else if(F=="source")return S.Gz;else if(F=="historyStates"){var A=[]; +for(var G=0;G>>16&255)/255; +a.H[2]=(j>>>8&255)/255;a.H[3]=(j>>>0&255)/255}else console.log(a,F)}else if(a.Ty=="ExportOptionsSaveForWeb"){if(F=="format")a.H.qv=y; +else if(F=="PNG8"){}else if(F=="quality")a.H.d5=y;else throw"e"}else if(a.Ty=="JPEGSaveOptions"){if(F=="quality")a.H.d5=Math.round(100*y/12)}else console.log(a,F,y); +if(S.data!=null)c.n(S)};dR.SD.sk=function(a,F,y,c,Q){var S=a.Ty,h=null,d=new u(z.E._,!0),W=new u(z.E.W5,!0),w=new u(z.E.Q,!0),J=c.nT(),A=c.sp; +if(!1){}else if(S=="Application"){if(!1){}else if(F=="charIDToTypeID"){var T=y[0].trim(),o={slct:"select",Dlt:"delete",Mk:"make"}; +return o[T]?o[T]:T}else if(F=="stringIDToTypeID"){var v=y[0].trim(),o={red:"Rd",blue:"Bl",color:"Clr",RGBColor:"RGBC",type:"Type",using:"Usng"},i=o[v]; +return i==null?v:i}else if(F=="executeAction"){console.log(y);var N;if(y[1]){N=y[1].H;N.classID=y[0]}var b={setd:"set"},q=b[y[0]]; +if(q==null)q=y[0];var O=eU.XJ[y[0]];if(O&&eU.a7[O])q=eU.a7[O];W.data={fS:q,nn:N}}else if(F=="executeActionGet"){return{Ty:"ActionDescriptor",H:{classID:"null",null:{t:"obj ",v:y[0].H}}}}else if(F=="doAction"){w.data={e:z.h.rw,rh:[y[0],y[1]]}}else if(F=="open"){w.data={e:z.h.vL,kd:{url:y[0]}}; +if(y[2]&&A.length!=0)w.data.kd.bo=A.indexOf(J)}else if(F=="echoToOE"){w.data={e:z.h.UL,kd:y[0]}}else console.log(F)}else if(S=="Document"){var J=a.H; +if(!1){}else if(F=="crop"){W.data=m.tN.iw(y[0])}else if(F=="trim"){var R=[];for(var G=0;G<4;G++)R.push(y[G+1]!=null?y[G+1]:!0); +W.data=m.tN.__(y[0]!=null?y[0]:0,R)}else if(F=="suspendHistory"){var k=acorn.parse(y[1]);dR.eval(k,c,Q)}else if(F=="save"){w.data={e:z.h.fZ}}else if(F=="saveToOE"){w.data={e:z.h.fZ,aaS:y}}else if(F=="rotateCanvas"){W.data=m.p.v1(!0,y[0])}else if(F=="resizeImage"||F=="resizeCanvas"){var L=y[0],C=y[1]; +if(typeof L!="number"){L=J.t*parseFloat(L.slice(0,L.length-1))/100;C=J.w*parseFloat(C.slice(0,C.length-1))/100}if(F=="resizeCanvas")W.data=m.tN.Bl(Math.round(L),Math.round(C),y[2]); +else W.data=m.tN.l4(Math.round(L),Math.round(C),null,1)}else if(F=="paste"){w.data={e:z.h.Z0,cj:y.length!=0&&y[0],UH:!0}}else if(F=="close"){w.data={e:z.h.af,gZ:J}}else if(F=="exportDocument"||F=="saveAs"){var t=Q.__fs,_=y[0].H.replace(":","").replace("~/",""),M=F=="exportDocument"?y[2].H:y[1].H,I=f$.GH(J,M.qv,null,null,[M.d5],c.bF); +t[_]=new Uint8Array(I)}else console.log(a,F,y)}else if(S=="Layer"){var j=a.H,r=J.u.indexOf(j);if(!1){}else if(F=="copy"){dR.SD.Sy(J,c,0); +w.data={e:z.h.uu,bZ:y[0],Dx:r,UH:!0};c.n(w);delete w.data;dR.SD.Sy(J,c,1)}else if(F=="clear"){dR.SD.Sy(J,c,0); +W.data={fS:"delete"};c.n(W);delete W.data;dR.SD.Sy(J,c,1)}else if(F=="duplicate"){if(y.length==0){d.data={e:Y.h_,c:r}; +d.U=m.ni;c.n(d);d.data=null;h={Ty:"Layer",H:J.u[J.D[0]]}}else if(y[0].Ty=="Document"){d.data={e:Y.PL,u:J.iR(r),Us:J,nj:y[0].H}; +d.U=m.ni}}else if(F=="merge"||F=="remove"){d.data={e:F=="merge"?Y.eO:Y.m7,c:r};d.U=m.ni;if(F!="remove")h={Ty:"Layer",H:J.u[J.D[0]]}}else if(F=="move"){d.data={e:Y.p7,source:r,target:J.u.indexOf(y[0].H),c3:y[1]!=3?.6:.3}; +d.U=m.ni}else if(F=="rasterize"){W.data={fS:"rasterizeLayer",nn:{classID:"rasterizeLayer",null:fb.lG("Lyr",!0)}}}else if(F=="rotate"){d.data={e:"rot",J7:[2,5],H:-y[0]*Math.PI/180,pZ:y[1],c:r}; +d.U=m.DD}else if(F=="resize"){d.data={e:"scl",J7:[2,4],H:new iS(y[0]/100,y[1]/100),pZ:y[2],c:r};d.U=m.DD}else if(F=="translate"){var s=dR.SD.cE(y); +d.data={e:"trsl",c:r,abU:s[0],ai6:s[1]};d.U=m.I3}else if(F=="link"){d.data={e:Y.ww,a85:[r,J.u.indexOf(y[0].H)]}; +d.U=m.ni}else if(F=="invert"){d.U=m.Gx;d.data={e:"start",mt:"nvrt"}}else if(F.startsWith("apply")&&i1.py[F.slice(5)]){var s=dR.SD.cE(y),e=i1.py[F.slice(5)]; +W.data={fS:i1.a7[e]};var N=i1.de(e);if(N){i1.hv["g"+e](N,s);W.data.nn=N}}else console.log(a,F,y)}else if(S=="Documents"){if(F=="getByName"){for(var G=0; +G","","",""],y=bt.xX; +for(var c in y){var Q=a[c],S=y[c][2],h="Seq",d="";if(Q==null||S==null)continue;if(S=="dc:title"||S=="dc:description"){h="Alt"; +d=" xml:lang=\"x-default\""}if(S=="dc:subject")h="Bag";F.push("\t<"+S+">");var W=S=="dc:subject"?Q.split(";").join(",").split(","):[Q]; +for(var G=0;G"+W[G].trim()+"");F.push("\t")}F.push("","","",""); +return F.join("\n")};bt.Nf=function(a){var F=[];for(var G=0;G/g,">")}; +z.De=function(a,F){a.L1(aT.get([12,41]).charAt(0)+":");F.L1(aT.get([12,42]).charAt(0)+":")};z.z=function(a,F){var y=document.createElement(a); +if(F!=null)y.setAttribute("class",F);return y};z.pP=function(a){while(a.firstChild)a.removeChild(a.firstChild)}; +z.Mv=function(a,F){var y=a.getAttribute("class");if(y==null)y="";y=y.split(" ");if(y.indexOf(F)==-1)y.push(F); +a.setAttribute("class",y.join(" "))};z.ut=function(a,F){var y=a.getAttribute("class");if(y==null)return; +y=y.split(" ");if(y.indexOf(F)!=-1)y.splice(y.indexOf(F),1);a.setAttribute("class",y.join(" "))};z.lO=function(a){while(!0){if(a==document)return!0; +if(a==null)return!1;a=a.parentNode}};z.bO=function(a){a.appendChild(z.z("br"))};z.E_=function(a){a.appendChild(z.z("hr"))}; +z.em=document;z.mr=function(a){var F=0;for(var G=0;G1e3){y=F==0?100:F*10}else{if(a%10!=0)a*=10; +y=(a+F)%100}z.rz=Date.now();return y};z.Kw=function(a,F){if(window.PointerEvent){a.addEventListener("pointerdown",F,!1); +return}a.addEventListener("mousedown",F,!1);a.addEventListener("touchstart",F,!1)};z.ep=function(a,F){if(window.PointerEvent){a.addEventListener("pointermove",F,!1); +return}a.addEventListener("mousemove",F,!1);a.addEventListener("touchmove",F,!1)};z.iG=function(a,F){if(window.PointerEvent){a.addEventListener("pointerup",F,!1); +return}a.addEventListener("mouseup",F,!1);a.addEventListener("touchend",F,!1)};z.akx=function(a,F){if(window.PointerEvent){a.removeEventListener("pointerdown",F,!1); +return}a.removeEventListener("mousedown",F,!1);a.removeEventListener("touchstart",F,!1)};z.R_=function(a,F){if(window.PointerEvent){a.removeEventListener("pointermove",F,!1); +return}a.removeEventListener("mousemove",F,!1);a.removeEventListener("touchmove",F,!1)};z.EA=function(a,F){if(window.PointerEvent){a.removeEventListener("pointerup",F,!1); +return}a.removeEventListener("mouseup",F,!1);a.removeEventListener("touchend",F,!1)};z.sQ=function(a){a.addEventListener("touchstart",z.lX,!1); +a.addEventListener("touchmove",z.lX,!1);a.addEventListener("touchend",z.lX,!1);a.addEventListener("gesturestart",z.lX,!1); +a.addEventListener("gesturechange",z.lX,!1);a.addEventListener("gestureend",z.lX,!1)};z.Kb=function(a,F,y,c){var Q=z.K(); +a.width=Math.floor(F*Q);a.height=Math.floor(y*Q);a.style.width=a.width/Q+"px";a.style.height=a.height/Q+"px"; +if(c)c.setTransform(Q,0,0,Q,0,0)};z.z6=function(a,F,y){a.setAttribute("style","width:"+F/z.K()+"px; height:"+y/z.K()+"px")}; +z.TA=function(a,F){if(F==null)F=a.currentTarget;var y=F.getBoundingClientRect();if(a.touches)a=a.touches.item(0); +return{x:a.clientX-y.left,y:a.clientY-y.top}};z.K=function(a){return window.devicePixelRatio||1};z.lX=function(a){a.preventDefault()}; +z.tg=function(a){a.stopPropagation();a.preventDefault()};z.Tc=function(a,F,y){y=y?y:"";if(PIMG["__"+a]==null)y+=" gsicon"; +return"\""+(F?F:"")+"\""};z.Q2=function(a,F,y,c){var Q=a.dataTransfer.getData("text/uri-list"); +if(Q!=null&&Q.startsWith("http")){var S=new u(z.E.Q,!0);S.data={e:z.h.vL,kd:{url:Q,Wm:!0,bo:y,Rm:c}}; +F.n(S)}if(a.dataTransfer.files.length==0)return;if(window.showOpenFilePicker){var h=[],d=a.dataTransfer.items.length,W=a.dataTransfer.files; +for(var w of a.dataTransfer.items)w.getAsFileSystemHandle().then(function(J){h.push(J);if(h.length==d){var S=new u(z.E.Q,!0); +S.data={e:z.h.EE,data:W,bo:y,Rm:c,ao0:h};F.n(S)}})}else{var S=new u(z.E.Q,!0);S.data={e:z.h.EE,data:a.dataTransfer.files,bo:y,Rm:c}; +F.n(S)}};var u=function(a,F){if(!F)F=!1;this.type=a;this.target=null;this.currentTarget=null;this.bubbles=F; +this.U=null;this.P2=!1};z.E={_:"0",Q:"1",W5:"1.5",O:"2",cF:"3",Jq:"4",wx:"5"};z.h={R4:"10",bR:"11",tt:"12",iX:"13",AY:"14",vG:"14.1",vL:"15",ZF:"16",FS:"17",gY:"18",fZ:"19",Un:"19.5",iu:"20",Db:"21",uu:"22",Z0:"23",bz:"24",uG:"25",au:"26",Z1:"27",uk:"28",o2:"29",EE:"30",tl:"31",c4:"32",KV:"33",mU:"34",mn:"35",ab:"35.5",dd:"37",xL:"38",pC:"39",db:"40",rW:"41",UL:"41.5",TB:"42",Jo:"43",uL:"43.5",af:"44",eY:"45",lK:"46",$v:"47",Xm:"48",rw:"49",pf:"50",pp:"51"}; +if(z.mr(27))z.em=window;else z.em=z.akZ;z.em._cwY=z.em[z.IA("clh]]c[",3)];var dq={};dq.S3=function(G){var a=dq.lF[G],F=document.documentElement.style,c=1; +F.setProperty("--base","#"+D.C5(a["--base"]));F.setProperty("--bg-panel","#"+D.C5(a["--bg-panel"])); +F.setProperty("--bg-canvas","#"+D.C5(a["--bg-canvas"]));F.setProperty("--bg-input","#"+D.C5(a["--bg-input"])); +F.setProperty("--bg-bbtn","#"+D.C5(a["--bg-bbtn"]));F.setProperty("--bg-bbtnOver","#"+D.C5(a["--bg-bbtnOver"])); +F.setProperty("--brdr","#"+D.C5(a["--brdr"]));F.setProperty("--text-color","#"+D.C5(a["--text-color"])); +F.setProperty("--brdrLgt","rgba(255,255,255,"+a["--brdrLgt"]+")");F.setProperty("--brdrDrk","rgba( 0, 0, 0,"+a["--brdrDrk"]+")"); +F.setProperty("--alphaDark",""+a["--alphaDark"]);F.setProperty("--gs-invert",""+a["--gs-invert"]);var y=a["--sh-clr"]; +F.setProperty("--sh-clr","rgba("+(y>>16)+","+(y>>8&255)+","+(y&255)+", 0.45)");F.setProperty("--sh-dy",""+a["--sh-dy"]+"px"); +if(11){this.w6("multimove")}if(this.gP)return; +var y=new u("mouse",!0);y.action="move";this.C8(a,y);this.n(y)};bX.prototype.G3=function(a){if(bX.DN(a))return; +var F=this.Bj,y=this.$k(a);F.splice(y,1);if(F.length==0){var c=a.button!=null&&a.button>0?"rup":"up",Q=new u("mouse",!0); +Q.action=c;this.C8(a,Q);this.n(Q);z.R_(window,this.fr);z.EA(window,this.a80);z.ep(this.iO,this.fr);this.gP=!1}}; +bX.prototype.zV=function(a){a.preventDefault();if(a.deltaX==0&&a.deltaY==0)return;var F=new u("mouse",!0); +F.action="scroll";F.mS=a.ctrlKey;this.C8(a,F);this.n(F)};bX.prototype.aeW=function(a){z.tg(a);var F=a.sourceCapabilities; +if(F)F=F.firesTouchEvents;if(F){var y=new u("mouse",!0);this.C8(a,y);y.action="rdown";this.n(y);y.action="rup"; +this.n(y)}};bX.prototype.w6=function(a){var F=this.Bj,y=z.K(),c=[];for(var G=0;G=0)a=Math.max(this.Sc,a);if(this._7==0)a=Math.round(a);var c=this.dH;this.dl.value=(this._7!=0?a.toFixed(this._7):a)+(this.arG&&c?(c.toLowerCase()==c.toUpperCase()?"":" ")+c:""); +var Q=400*Math.pow((a-this.Sc)/(this.wy-this.Sc),1/2.7);this.Id.value=this.rc?Q:a;if(F)this.Fw()};gv.prototype.v=function(){var a=parseFloat(this.dl.value); +if(isNaN(a))a=0;return a};gv.prototype.NG=function(){return this.dH};gv.prototype.xV=function(a){var F=0; +if(a.currentTarget==this.dl){var y=a.target.value,c=0;while(c50&&a>10)a=Math.round(a); +return a};gv.prototype.B5=function(a){var F=0;if(ht.XP(a.code,ht.kB))F=1;if(ht.XP(a.code,ht.EB))F=-1; +if(F!=0)this.od(F,a.shiftKey)};gv.prototype.zV=function(a){this.od(a.deltaY>0?-1:1,a.shiftKey)};gv.prototype.od=function(a,F){var y=this.v(),c=this._7,Q=a*(c==null||c==0||y>5?1:.1); +if(F)Q*=10;var S=y+Q;if(!this.rc&&this.wy!=this.Sc)S=Math.min(this.wy,S);this.C(S);this.Fw()};gv.prototype.ap4=function(a){var F=Date.now()-this.Ml; +this.Ml=Date.now();if(F>300)return;var y=(this.wy+this.Sc)/2;if(this.Sc<0&&this.wy>0)y=0;else if(this.Sc<1&&this.wy>1&&this.wy<10)y=1; +this.C(y);this.Fw()};gv.prototype.a3B=function(a){z.ep(document,this.agp);z.iG(document,this.a2d);this.Nc=z.TA(a,document.body).x; +this.K9=this.v()};gv.prototype.a1t=function(a){z.tg(a);var F=this.Sc==this.wy,y=z.TA(a,document.body).x,c=(y-this.Nc)*(F?1:1/120*(this.wy-this.Sc)),Q=this.K9+c; +if(F)Q=Math.round(Q);if(!F){if(!0){Q=Math.max(this.Sc,Q);if(Q==this.Sc){this.Nc=y;this.K9=this.Sc}}if(!this.rc){Q=Math.min(this.wy,Q); +if(Q==this.wy){this.Nc=y;this.K9=this.wy}}Q=this.Bg(Q)}this.XX=!0;this.C(Q);this.Fw()};gv.prototype.ak6=function(a){if(!this.XX)this.dl.focus(); +this.XX=!1;z.R_(document,this.agp);z.EA(document,this.a2d)};gv.prototype.h9=function(){this.dl.select(); +this.dl.focus()};function ga(a,F){gX.call(this);this.L2=[];this.AR=-1;this.aqj=a;this.J$=F;this.mh=0; +this.LN=null;this.ik=new iS(0,0);if(F!=null){this.xq=new au([{name:[6,37]},{name:[5,4]}]);this.xq.parent=this; +this.xq.l("select",this.JJ,this)}this.k=z.z("div","imageset scrollable");this.k.addEventListener("contextmenu",z.lX,!1)}ga.prototype=new gX; +ga.prototype.f=function(){if(this.xq)this.xq.f()};ga.prototype.JJ=function(a){var G=this.xq.Ys()[0],F=new u(z.E.Q,!0),y={e:z.h.mn,kd:this.J$,wA:[this.AR]}; +if(G==0){var c=this.LN[1][this.AR];y.eN="rnm";F.data={e:z.h.uG,eU:"namewindow",yo:c,yU:{$:z.E.Q,r:y}}}else{F.data=y; +y.eN="del"}this.n(F)};ga.prototype.apP=function(){return this.mh};ga.prototype.bE=function(a){this.mh=a; +if(this.LN)this.jE()};ga.prototype.KQ=function(a,F,y,c){this.LN=[a,F,y,c];this.jE()};ga.prototype.jE=function(){var a=this.LN,F=a[0],y=a[1],c=a[2],Q=a[3]; +this.L2=[];this.k.innerHTML="";var S=this.gw.bind(this),h=this.mh;if(h==0)z.Mv(this.k,"imageset");else z.ut(this.k,"imageset"); +for(var G=0;G0)){S=h;Q=G}}if(Q==-1)return; +this.anf=Q;this.YA=a.altKey||F[(Q>>>1)*2]!=F[(Q>>>1)*2+1];z.ep(window,this.g_);z.iG(window,this.Ak)}; +d3.prototype._2=function(a){var F=this.v4,y=this.anf,c=(y>>>1)*2,Q=c+1,S=z.TA(a,this.iC),h=Math.round(Math.max(0,Math.min(255,S.x-8))); +F[y]=h;if(this.YA&&F[c]>=F[Q])this.YA=!1;if(!this.YA)F[c]=F[Q]=h;this.jE();this.n(new u(z.E.O,!1))}; +d3.prototype.G3=function(a){z.R_(window,this.g_);z.EA(window,this.Ak)};d3.prototype.jE=function(){var a=this.iC; +z.Kb(a,255+16,16);var F=a.getContext("2d"),y=a.width,c=a.height,Q=Math.round(255*z.K()),S=Math.round(8*z.K()); +F.translate(S,0);var h=F.createLinearGradient(0,0,Q,0);h.addColorStop(0,"black");h.addColorStop(1,"#"+["ffffff","ff0000","00ff00","0000ff"][this.j4]); +F.fillStyle=h;F.fillRect(0,0,Q,S);var d=this.an7,W=aT.get(this.DJ)+":";d[0].textContent=W;for(var G=0; +G<4;G++){var w=this.v4[G];d[1+G].textContent=w;var J=Math.round(w*z.K());F.beginPath();F.moveTo(J,S); +F.lineTo(J,S+S);F.lineTo(J+((G&1)==0?-1:1)*S,S+S);F.closePath();F.fillStyle="#cccccc";F.fill();F.strokeStyle="black"; +F.stroke()}};function d5(a,F){gX.call(this);this.vy=0;this.alt=0;var y="ai"+z.LB();this.k=z.z("span","fitem angleinput"); +if(a){this.FF=z.z("label","flabel");this.NY=a;this.k.appendChild(this.FF);this.FF.setAttribute("for",y)}this.Qx=20; +this.C9=z.z("canvas","gsicon");this.yd=this.C9.getContext("2d");z.Kb(this.C9,this.Qx*2+1,this.Qx*2+1,this.yd); +this.k.appendChild(this.C9);z.Kw(this.C9,this.aj.bind(this));this.Ta=this.la.bind(this);this.yI=this.Ep.bind(this); +var c=this.xV.bind(this),Q=z.z("div");Q.setAttribute("style","display:inline-block; vertical-align:middle;"); +this.k.appendChild(Q);this.ZB=[];for(var G=0;G<2;G++){var S=z.z("input");this.ZB.push(S);S.setAttribute("type","text"); +if(G==0)S.setAttribute("id",y);S.addEventListener("change",c,!1);var h=z.z("span");h.textContent="\xB0"; +if(G==0||F){Q.appendChild(S);Q.appendChild(h);z.bO(Q)}}this.C(this.vy,this.alt)}d5.prototype=new gX; +d5.prototype.f=function(){this.FF.textContent=aT.get(this.NY)+":"};d5.prototype.L1=function(a){this.FF.textContent=a}; +d5.prototype.v=function(){return{vy:this.vy,alt:this.alt}};d5.prototype.C=function(a,F,y){if(a!=null)this.vy=a; +if(F!=null)this.alt=F;this.ZB[0].value=this.vy;this.ZB[1].value=this.alt;a=Math.PI*this.vy/180;F=.9*this.Qx*(90-this.alt)/90; +var c=this.Qx+.5,Q=this.yd;Q.clearRect(0,0,100,100);Q.strokeStyle="#000000";Q.beginPath();Q.arc(c,c,.9*this.Qx,0,2*Math.PI); +Q.moveTo(c,c);Q.lineTo(c+Math.cos(a)*this.Qx*.9,c-Math.sin(a)*this.Qx*.9);Q.stroke();Q.strokeStyle="#ff0000"; +Q.beginPath();Q.moveTo(c+Math.cos(a)*F-3,c-Math.sin(a)*F);Q.lineTo(c+Math.cos(a)*F+3,c-Math.sin(a)*F); +Q.moveTo(c+Math.cos(a)*F,c-Math.sin(a)*F-3);Q.lineTo(c+Math.cos(a)*F,c-Math.sin(a)*F+3);Q.stroke();if(y)this.xV()}; +d5.prototype.xV=function(a){var F=parseInt(this.ZB[0].value),y=parseInt(this.ZB[1].value);F=F%360;y=y%360; +this.C(F,y);this.n(new u(z.E.O,!1))};d5.prototype.aj=function(a){z.ep(window,this.Ta);z.iG(window,this.yI); +this.la(a)};d5.prototype.la=function(a){var F=z.TA(a,this.C9),y=F.x-this.Qx,c=F.y-this.Qx,Q=180*Math.atan2(-c,y)/Math.PI,S=90-90*Math.min(1,Math.sqrt(y*y+c*c)/(.9*this.Qx)); +this.C(Math.round(Q),Math.round(S));this.n(new u(z.E.O,!1))};d5.prototype.Ep=function(a){this.n(new u(z.E.O,!1)); +z.R_(window,this.Ta);z.EA(window,this.yI)};function a3(a,F){gX.call(this);this.v4=0;this.y2=F;this.k=z.z("span","fitem angleinput"); +if(a){this.FF=z.z("label","flabel");this.NY=a;this.k.appendChild(this.FF)}this.C9=z.z("canvas","gsicon"); +this.yd=this.C9.getContext("2d");z.Kb(this.C9,F,F);this.k.appendChild(this.C9);z.Kw(this.C9,this.aj.bind(this)); +this.Ta=this.la.bind(this);this.yI=this.Ep.bind(this);this.C(0)}a3.prototype=new gX;a3.prototype.f=function(){if(this.NY)this.FF.textContent=aT.get(this.NY)+":"}; +a3.prototype.L1=function(a){this.FF.textContent=a};a3.prototype.v=function(){return this.v4};a3.prototype.C=function(a){this.v4=a; +var F=this.C9.width,y=Math.floor(a/3),c=a-3*y,Q=(c+.5)*F/3,S=(y+.5)*F/3,h=this.yd,d=[.5,Math.round(F/3)+.5,Math.round(2*F/3)+.5,F-.5]; +h.clearRect(0,0,F,F);var W=this.y2<30;h.setLineDash([]);h.strokeStyle=W?"rgba(0,0,0,0.5)":"#000000"; +h.beginPath();for(var G=0;G<4;G++){var w=d[G];h.moveTo(w,0);h.lineTo(w,F);h.moveTo(0,w);h.lineTo(F,w)}h.stroke(); +if(a==9)return;if(!W){h.setLineDash([1,2]);var J=F*.53,A=Math.max(0,Math.min(F-J,Q-J/2)),T=Math.max(0,Math.min(F-J,S-J/2)); +h.strokeRect(Math.round(A)+.5,Math.round(T)+.5,Math.round(J),Math.round(J))}h.fillStyle="#000000";h.beginPath(); +h.arc(Q,S,F/8,0,Math.PI*2);h.fill()};a3.prototype.aj=function(a){z.ep(window,this.Ta);z.iG(window,this.yI); +this.la(a)};a3.prototype.la=function(a){var F=z.TA(a,this.C9),y=Math.max(0,Math.min(2,Math.floor(F.x/(this.y2/3)))),c=Math.max(0,Math.min(2,Math.floor(F.y/(this.y2/3)))); +this.C(c*3+y)};a3.prototype.Ep=function(a){this.n(new u(z.E.O,!1));z.R_(window,this.Ta);z.EA(window,this.yI)}; +function cr(a,F,y,c){gX.call(this);this.k=z.z("button","fitem"+(F?" spread":"")+(c?" bbtn":""));this.NY=a; +this.bA=y;this.f();this.k.addEventListener("click",this.gw.bind(this),!1)}cr.prototype=new gX;cr.prototype.f=function(){var a=this.k,F=this.NY,y=this.bA,c=aT.get(F); +if(c.startsWith(">16&255,m:a>>8&255,d:a&255};this.mx()};c3.prototype.C=function(a){this.tE=D.V.$j(a); +this.mx()};c3.prototype.mx=function(){var a=this.tE,F=a.i,y=a.m,c=a.d,Q=F<<16|y<<8|c;this.k.setAttribute("style","background-color:#"+D.C5(Q))}; +function j1(){gX.call(this);this.cB=!1;this.PT=20;this.amQ=10;this.P3=0;this.cB=!1;this.xe={i:255,m:0,d:0}; +this.iA={i:0,m:0,d:0};this.k=z.z("canvas");this.jE();z.sQ(this.k);z.Kw(this.k,this.Or.bind(this))}j1.prototype=new gX; +j1.prototype.a4w=function(a){if(this.cB==a)return;this.cB=a;this.jE()};j1.prototype.f=function(){};j1.prototype.arj=function(a,F){function y(c){return{i:c>>16&255,m:c>>8&255,d:c&255}}if(a!=null)this.xe=y(a); +if(F!=null)this.iA=y(F);this.jE()};j1.prototype.Or=function(a){var F=z.TA(a,this.k),y=F.x*z.K(),c=F.y*z.K(),Q=this.PT,S=this.amQ,h=0; +if(yQ-S&&c>Q-S){h=1}else if(y1)d.data={e:z.h.mn,kd:bZ.Y7,u6:h}; +else{this.P3=h;var W=h==0?this.xe:this.iA;d.data={e:z.h.uG,eU:"colorpicker",q1:W.i<<16|W.m<<8|W.d,Z6:this.Pj.bind(this)}}this.n(d)}; +j1.prototype.Pj=function(a){var F=new u(z.E.Q,!0);F.data={e:z.h.mn,kd:bZ.Y7,u6:this.P3,H:a};this.n(F)}; +j1.prototype.jE=function(){var a=this.k,F=a.getContext("2d"),y=z.K(),Q="#aaaaaa",S=.62;z.Kb(a,34,34); +a.setAttribute("style",a.getAttribute("style")+";cursor:pointer");var c=this.PT=a.width,h=this.amQ=Math.round(c*S); +function d(o,v){var i=o.i,N=o.m,b=o.d;if(v)i=N=b=Math.round(D.aJ(i,N,b));var q=i<<16|N<<8|b;return"#"+D.C5(q)}function W(o,v,h,i,N){F.fillStyle=N?N:"black"; +F.fillRect(o,v,h,h);F.fillStyle=i;F.fillRect(o+1,v+1,h-2,h-2)}W(c-h,c-h,h,d(this.iA,this.cB));W(0,0,h,d(this.xe,this.cB)); +var w=c-h,J=Math.round(w*S);W(c-J,w-J,J,"white",Q);W(c-w,0,J,"black",Q);F.save();F.fillStyle=Q;F.translate(0,c); +F.rotate(-Math.PI/2);w=c-h;var A=Math.round(w*.28),T=Math.round(w*.25);for(var G=0;G<2;G++){F.fillRect(A,A,w-A,1); +F.beginPath();F.moveTo(w-T,A+.5-T);F.lineTo(w,A+.5);F.lineTo(w-T,A+.5+T);F.closePath();F.fill();F.transform(0,1,1,0,0,0)}F.restore()}; +function dI(a){aj.call(this,a,!1,"brushbutton nopadding",16.6,10,bZ.T8,!0);this.LT=new dw([12,14,0],1,1e3," px",0,!0); +this.LT.l(z.E.O,this.La,this);this.O4.appendChild(this.LT.k);this.qR=new dw([12,17],0,100,"%");this.qR.l(z.E.O,this.La,this); +this.O4.appendChild(this.qR.k)}dI.prototype=new aj;dI.prototype.tX=function(){var a=["pencil","trees"]; +for(var G=0;G0&&c.vV==null)c.vV=JSON.parse(JSON.stringify(aX.YL[y-1]));if(this.eh)this.C(this.bC,c,this.eh)}if(F==this.Ph)this.dG.$H(F.v()); +this.n(new u(z.E.O,!1))};dy.prototype.$N=function(a){var F=this.C9.getBoundingClientRect(),y=new u(z.E.Q,!0); +y.data={e:z.h.bR,HK:this.ob,x:F.left,y:F.top+F.height+4};this.n(y);this.Ph.C(this.dG.C_())};dy.prototype.C=function(a,F,y){this.eh=y; +this.bC=a;var c=[[13,1,0],[13,0],[12,37],[12,62]],Q=this.ac2,S=this.a9H,h=!1,J;for(var G=0;G<4;G++){var d={ek:G,vV:y[G]},W=dy.x2(d); +if(S[G]==W)continue;h=!0;var w=dy.US(null,d,this.pn,this.bC,22,22,!1);Q[G]=""; +S[G]=W}if(h)this.s$.gX(Q,c);this.s$.C(F.ek);var W=dy.x2(F);if(W!=this.apV)dy.US(this.yd,F,this.pn,this.bC,30,23,!0); +this.apV=W;var A=F.ek;if(A==0){J=this.aeQ}if(A==1){this.dG.C(F.vV.Clr.v);J=this.gT}if(A==2){this.L5.update(a,F.vV); +J=this.uF}if(A==3){this.zU.update(a,F.vV);J=this.sL}if(J!=this.QI){if(this.QI!=null){this.ob.k.removeChild(this.QI)}this.ob.k.appendChild(J); +this.QI=J}};dy.prototype.v=function(){var a={ek:this.s$.v()};if(a.ek==1){a.vV=JSON.parse(JSON.stringify(aX.YL[0])); +a.vV.Clr.v=this.dG.v()}if(a.ek==2){a.vV=this.L5.v()}if(a.ek==3){a.vV=this.zU.v()}return a};dy.x2=function(a){var F=a.ek,y=a.vV,c="empty"; +if(F==1){c=D.V.$j(y.Clr.v);c=c.i+","+c.m+","+c.d}if(F==2)c=JSON.stringify(y.Grad.v);if(F==3)c=y.Ptrn.v.Idnt.v; +return c};dy.US=function(a,F,y,c,Q,S,h){if(a==null)a=dy.yd;var d=Math.floor(Q*z.K()),W=Math.floor(S*z.K()),w=a.canvas,J; +w.width=d;w.height=W;z.z6(w,d,W);var A=F.ek;if(A==0){a.fillStyle="#ffffff";a.fillRect(0,0,d,W);a.strokeStyle="#ff0000"; +a.lineWidth=2;a.moveTo(0,0);a.lineTo(d,W);a.moveTo(0,W);a.lineTo(d,0);a.stroke()}if(A==1){var T=F.vV.Clr.v; +T=D.V.$j(T);a.fillStyle="#"+D.C5(T.i<<16|T.m<<8|T.d);a.fillRect(0,0,d,W)}if(A==2){m.R5.ID(F.vV.Grad.v,d,W,0,y.Fm,y.fF,w)}if(A==3){var o=F.vV.Ptrn.v,v; +if(c!=null)v=hN.DW(o,c.add.Patt);if(v==null)v=hN.DW(o,y.MU);fA.ID(v,d,W,w)}if(h){a.beginPath();a.strokeStyle="#000000"; +a.fillStyle="#ffffff";a.lineWidth=2;var i=d*.7,N=Math.floor(W*.7),b=7*z.K();a.moveTo(i,N);a.lineTo(i+b,N); +a.lineTo(i+b/2,N+b/2);a.closePath();a.stroke();a.fill()}if(a==dy.yd)return w.toDataURL()};dy.yd=z.z("canvas").getContext("2d"); +function fA(a){aj.call(this,a,!1,"patternbutton",18,10,bZ.mE);this.Ez=null}fA.prototype=new aj;fA.prototype.VG=function(a){var F=this.jk[this.PW.v()]; +this.OR={classID:"Ptrn",Nm:{t:"TEXT",v:F.name},Idnt:{t:"TEXT",v:F.id}};this.n(new u(z.E.O));this.e0()}; +fA.Oo=!1;fA.prototype.LJ=function(){if(!this.SB)return;var a=this.jk;if(a==null||!fA.Oo){var F=new u(z.E.Q,!0); +F.data={e:z.h.vL,kd:{url:"rsrc/basic/basic.pat"}};this.n(F);fA.Oo=!0;return}var y=Math.floor(34*z.K()),c=Math.floor(34*z.K()),Q=[],S=[]; +for(var G=0;G255||c<0||c>255; +if(y<=d[W-1].v.Hrzn.v||y>=d[W+1].v.Hrzn.v)T=!0;if(!T&&!w)S.splice(W,0,h);if(T&&w)S.splice(W,1)}if(!this.a5f)h.v.Hrzn.v=Math.round(A); +h.v.Vrtc.v=Math.max(0,Math.min(255,Math.round(c)))}else{y=Math.round(y);c=Math.round(c);y=Math.max(0,Math.min(255,y)); +c=Math.max(0,Math.min(255,c));var o=this.q$.x,v=y,i=this.q$.y,N=c;if(y.002){this.alj(y.data,256,256,F.ml); +this.a0l=F.ml}this.yd.putImageData(y,0,0);this.yd.strokeStyle="#000000";this.yd.beginPath();this.yd.arc(this.Yg.x+1,this.Yg.y+1,5,0,2*Math.PI); +this.yd.stroke();this.yd.strokeStyle="#ffffff";this.yd.beginPath();this.yd.arc(this.Yg.x,this.Yg.y,5,0,2*Math.PI); +this.yd.stroke();var y=this.a3a;this.JO.putImageData(y,0,0);this.JO.strokeStyle="#ffffff";this.JO.beginPath(); +this.JO.moveTo(0,this.yv.y);this.JO.lineTo(20,this.yv.y);this.JO.lineWidth=2;this.JO.stroke()};iG.prototype.alj=function(a,F,y,c){var Q=1/F,S=1/y; +for(var h=0;h0)this.k.removeChild(this.sO.pop().k); +this.yn=a;for(var G=0;G>>1;Q.width=Q.height=c;var d=[]; +for(var G=0;G");else d.push("")}iY.call(this,a,d,y)}hU.prototype=new iY; +hU.vg=z.z("canvas");function iP(a,F,y,c){gX.call(this);if(!F)return;if(y==null)y=!1;this.AR=0;this.acw=y; +this.NY=a;this.Lo=null;this.anG=c;this.apu=[];var Q="dd"+z.LB();this.k=z.z("span","fitem ddmenu");if(a&&!y){this.FF=z.z("label","flabel"); +this.k.appendChild(this.FF);this.FF.setAttribute("for",Q)}this.ld=z.z("select","bbtn");this.ld.setAttribute("id",Q); +this.k.appendChild(this.ld);this.ld.addEventListener("change",this.xV.bind(this),!1);this.sO=[];this.yn=null; +this.gX(F,c);this.f()}iP.prototype=new gX;iP.prototype.L1=function(a){this.NY=a;this.f()};iP.prototype.f=function(){if(this.NY!=null){var a=aT.get(this.NY); +if(this.acw)this.ld.setAttribute("title",a);else this.FF.textContent=a+":"}if(this.yn)this.gX(this.yn,this.anG); +this.C(this.AR)};iP.prototype.v=function(){return this.AR};iP.prototype.gX=function(a,F){z.pP(this.ld); +var y=[],c=0;if(F){y.push(F[0]);for(var G=1;G"); +this.Uf=new cr("");this.Tz=new cr(""); +this.K0=new cr("");this.Yr=new cr(""); +this.$G=new cr("");this.Wl=new cr(""); +this.Ae=new cr("");var a=[this.SG,this.Uf,this.Tz,this.K0,this.Yr,this.$G,this.Wl,this.Ae]; +for(var G=0;G"); +this.es=new cr("");this.y5=new cr(""); +this.a4s=new cr("");this.ahr=new cr(""); +this.a8p=new cr("");this.a58=new cr(""); +this.W4=[this.s5,this.es,this.y5,this.a4s,this.ahr,this.a8p,this.a58];for(var G=0;G "); +this.Y0=new fN(y[0],-20,20,"px");this.Y0.l(z.E.O,this.Ma,this);this.Y0.parent=this;this.Um=new fN(y[1],-20,20,"px"); +this.Um.l(z.E.O,this.Ma,this);this.Um.parent=this;this.uU=new fN(y[2],-20,20,"px");this.uU.l(z.E.O,this.Ma,this); +this.uU.parent=this;this.vR=new fN(y[3],-20,20,"px");this.vR.l(z.E.O,this.Ma,this);this.vR.parent=this; +this.aw=new fN(y[4],-20,20,"px");this.aw.l(z.E.O,this.Ma,this);this.aw.parent=this;this.Qh=new iY([12,33],["Abc ...","... \u0623\u064A \u0628\u064A"]); +this.Qh.l(z.E.O,this.Ma,this);this.Qh.parent=this}av.prototype=new gX;av.prototype.f=function(){this.Nz.f(); +this.EW.f();this.JS.f();this.Mk.f();this.jV.f();this.eL.f();this.Jr.f();this.Qh.f()};av.prototype.C=function(a,F,y){this.CA=JSON.parse(JSON.stringify(a)); +var c=this.CA,Q=c.kM,S=c.$0;this.SG.C(Q.FauxBold!=null?Q.FauxBold:!1);this.Uf.C(Q.FauxItalic!=null?Q.FauxItalic:!1); +this.Tz.C(Q.FontCaps==2);this.K0.C(Q.FontCaps==1);this.$G.C(Q.FontBaseline==1);this.Yr.C(Q.FontBaseline==2); +this.Wl.C(Q.Underline);this.Ae.C(Q.Strikethrough);this.Nz.C(Q.Font==null?null:c.yH[Q.Font].Name,F,y); +var h=Q.FontSize==null?20:Q.FontSize;this.EW.C(h);var d=Q.Tracking;this.Mk.C(d==null?0:d);this.JS.C(Q.Leading!=null&&Q.Leading!=0?Q.Leading:h); +this.Ve.C(Q.AutoLeading);this.eL.C((Q.VerticalScale!=null?Q.VerticalScale:0)*100);this.Jr.C((Q.HorizontalScale!=null?Q.HorizontalScale:0)*100); +this.jV.C(Q.BaselineShift!=null?Q.BaselineShift:0);if(Q.FillColor){var W=eA.$j(Q);this.B4.$H(Math.round(W.i)<<16|Math.round(W.m)<<8|Math.round(W.d))}else this.B4.$H(0); +var w=S._Direction!=null?S._Direction:0,J=eA.wO(S);for(var G=0;G>16&255)/255,(F>>8&255)/255,(F>>0&255)/255]}; +for(var G=0;G<4;G++)y.Values[G]=Math.round(y.Values[G]*1e3)/1e3;this.CA.kM.FillColor=y;this.ci()};function ek(){gX.call(this); +this.k=z.z("span","fontinput");this.Sd=null;this.LA=null;this._N=null;this.yy="";this.L2={};this.go=[]; +this.a3e={};this.zQ=!1;this.B1=z.z("button","fitem");this.B1.setAttribute("style","width:9em;");this.B1.textContent="Family Name \u25BC"; +this.k.appendChild(this.B1);z.Kw(this.B1,this.H9.bind(this));this.Om=new gX;this.Om.parent=this;this.Om.k=z.z("div","floatcont"); +this.Om.k.addEventListener("keyup",this.a4r.bind(this),!1);this.Y3=new em(6.8);this.Om.k.appendChild(this.Y3.amK()); +this.Y3.parent=this.Om;this.Y3.l(z.E.O,this.dA,this);var a=z.z("div","form");this.Om.k.appendChild(a); +this.oD=new cr(z.Tc("tools/cshape",null,"autoscale"),!1,"Show Favorites Only");this.oD.l("click",this.al7,this); +a.appendChild(this.oD.k);this.aD=new i_([12,86],null,9);this.aD.l("input",this.js,this);a.appendChild(this.aD.k); +var F=this.a5R=new cr([[23,6],[22,6,0]],!1,"Load OTF / TTF file from your computer",!0);F.l("click",this.alQ,this); +F.k.style.marginLeft="1.5em";a.appendChild(F.k);this.Lx=z.z("span","fitem imageset scrollable marged"); +this.Lx.style.height="30em";this.Om.k.appendChild(this.Lx);this.UX=z.z("button","fitem");this.UX.setAttribute("style","width:7em;"); +this.UX.textContent="SubFamily Name \u25BC";this.k.appendChild(this.UX);z.Kw(this.UX,this.H9.bind(this)); +this.dX=new gX;this.dX.parent=this;this.dX.k=z.z("div","floatcont");this.cr=z.z("span","fitem imageset scrollable marged"); +this.dX.k.appendChild(this.cr)}ek.prototype=new gX;ek.prototype.a4r=function(a){var F=0;if(ht.XP(a.code,ht.kB))F=-1; +if(ht.XP(a.code,ht.EB))F=1;if(F!=0){var y=this.go,c=y.length,Q=this.Sd.Qm()[this._N];if(Q==null&&c==0)return; +var S=y.indexOf(Q[0]);if(S==-1)return;S=(S+F+c)%c;this.WY(y[S],null)}};ek.prototype.alQ=function(){var a=new u(z.E.Q,!0); +a.data={e:z.h.ZF,anh:".otf,.ttf,.ttc"};this.n(a)};ek.prototype.f=function(){this.Y3.f();this.a5R.f(); +this.oD.L1(z.Tc("tools/cshape",null,"autoscale"))};ek.prototype.al7=function(a){this.oD.C(!this.oD.EF()); +this.dA()};ek.prototype.js=function(a){this.yy=this.aD.v().toLowerCase();this.dA()};ek.prototype.H9=function(a){z.tg(a); +var F=a.currentTarget,y=F.getBoundingClientRect(),c=F==this.B1,Q=c?this.Om:this.dX;if(z.lO(Q.k)){this.L$(Q); +return}if(!c&&this.Sd.Qm()[this._N]==null)return;var S=new u(z.E.Q,!0);S.data={e:z.h.bR,HK:Q,x:y.left,y:y.top+y.height}; +this.n(S);if(c){this.dA();this.aD.h9()}};ek.prototype.a6N=function(a){var F=a.currentTarget.firstChild.nextSibling.textContent; +if(a.target.tagName.toLowerCase()=="button"){var y=this.LA.slice(0),c=y.indexOf(F);if(c==-1){y=y.slice(Math.max(0,y.length-29)); +y.push(F)}else y.splice(c,1);var Q=new u(z.E.Q,!0);Q.data={e:z.h.mn,kd:bZ.LP,Lk:y};this.n(Q);this.zQ=!0; +this.dA()}else{this.WY(F,null);this.aD.h9()}};ek.prototype.ag7=function(a){this.WY(null,a.currentTarget.firstChild.textContent)}; +ek.prototype.WY=function(a,F){var y=a==null?this.dX:this.Om,c=this.Sd;if(a==null)a=c.Qm()[this._N][0]; +else{var Q=c.lD(a),S=c.Qm()[this._N];F=cc.dO(Q,S?S[1]:"regular")}var h=c.T9(a,F)[2];this.C(h,c);this.n(new u(z.E.O,!1)); +this.L$(y);this.dA()};ek.prototype.L$=function(a){var F=new u(z.E.Q,!0);F.data={e:z.h.tt,HK:a};this.n(F)}; +ek.prototype.v=function(){return this._N};ek.prototype.C=function(a,F,y){var c=this.Sd;if(a!=null)this._N=a; +else a=this._N;this.Sd=F;this.LA=y;if(a!=null){var Q=F.Qm()[a],S,h;if(Q==null){S="- "+a;h="-------"}else{S=Q[0]; +h=Q[1];var d=F.lD(S);d.sort(cc.a4K);var W=d.indexOf(h),w=this.ag7.bind(this);this.cr.textContent=""; +for(var G=0;G0&&d[0].toLowerCase().indexOf(this.yy)==-1)w=!1; +else if(!this.Y3.Xs(d))w=!1;else if(this.oD.EF()&&!W)w=!1;var J=this.L2[S];if(J==null){var J=this.a6i(d,S,Q,!0); +this.L2[S]=J;this.Lx.appendChild(J)}if(w)this.go.push(S);var A=w?"":"display:none; ",T="opacity: "+(W?"1":"0.2"); +if(a&&a[0]==S){A+="background-color:rgba(0,0,0,0.13);";y=J}if(this.a3e[S]!=A+T){J.setAttribute("style",A); +J.firstChild.setAttribute("style",T);this.a3e[S]=A+T}}if(y&&!this.zQ)this.Lx.scrollTop=y.offsetTop-210; +this.zQ=!1};ek.prototype.a6i=function(a,F,y,c){var Q=z.z("div","fontitem"),W="";Q.addEventListener("click",y,!1); +if(c)Q.appendChild(z.z("button","star"));var S=z.z("span","label");S.setAttribute("title",F);S.textContent=F; +Q.appendChild(S);var h=z.K(),d=1/h,w=cc.LR*d,J=cc.RA*d;if(1>>G&1)==1;this.Zk[G]=y;F[G].C(y)}};em.prototype.amK=function(){return this.T5}; +em.prototype.f=function(){this.k.textContent=aT.get([25,1,0])+" \u25BC";this.kk.f();this.a5d.f()};em.prototype.a1j=function(a){var F=this.k.getBoundingClientRect(),y=new u(z.E.Q,!0); +y.data={e:z.h.bR,HK:this.ob,x:F.left,y:F.top+F.height,Ee:!1};this.n(y)};em.prototype.Xs=function(a){if(this.nG[a[4]]==0)return!1; +else for(var F=0;F>>F&1)==0)return!1;return!0};em.prototype.a8F=function(a){var F=a.target.v(),y=this.C7,c=this.nG; +for(var G=0;G",!1,[12,51]); +this.Zz.l("click",this.q8,this);this.agI=new cz("");if(F){this.k.appendChild(this.Zz.k);this.k.appendChild(this.agI.k); +this.Zz.vA()}else this.k.appendChild(S.k);this.Hx=new fN("DPI",0,0,null,3,!1,!0,4);if(a&&c==null){z.bO(this.k); +this.k.appendChild(this.Hx.k)}this.Hx.l(z.E.O,this.q8,this);this.YY=new gC([12,23,1]);this.YY.l(z.E.O,this.q8,this); +if(y){z.bO(this.k);this.k.appendChild(this.YY.k)}z.bO(this.k)}bc.prototype=new gX;bc.prototype.ans=function(){this._H=!1; +if(this.vi.v()==0){this.vi.C(3);this.X8()}};bc.prototype.a6r=function(){this._H=!0};bc.prototype.ao2=function(a){this.Zz.C(a)}; +bc.prototype.f=function(){this.rl.f();this.T_.f();this.Hx.f();this.Zz.f();this.YY.f()};bc.prototype.a1c=function(a){var F=this.x$.x; +this.x$.x=this.x$.y;this.x$.y=F;this.X8();this.n(new u(z.E.O,!1))};bc.prototype.q8=function(a){if(a.target==this.vi&&!this._H&&this.vi.v()==0)this.vi.C(3); +if(a.target==this.vi||a.target==this.YY){this.X8();return}if(a.target==this.Zz)a.target.C(!a.target.v()); +var F=this.hc,y=parseFloat(this.rl.v());if(isNaN(y))y=1;var c=parseFloat(this.T_.v());if(isNaN(c))c=1; +var Q=this.vi.v();if(this._H){var S=this.zn;if(Q==1){y=this.hc.x*(y/100);c=this.hc.y*(c/100)}var h=[1,1,25.4/S,1/S][Q]; +y/=h;c/=h;if(this.YY.v()){y+=this.hc.x;c+=this.hc.y}if(a.target==this.Hx){var d=this.Hx.v();if(!0){var W=d/S; +y*=W;c*=W}S=d}if(this.Zz.v()){if(a.target==this.rl)c=y*(F.y/F.x);else y=c*(F.x/F.y)}y=Math.max(Math.abs(y),1); +c=Math.max(Math.abs(c),1)}else{var S=this.mH;if(a.target==this.Hx)S=this.Hx.v();else{if(this.Zz.v()){if(a.target==this.rl)c=y*(F.y/F.x); +else y=c*(F.x/F.y)}var h=[1,1,25.4/S,1/S][Q],w=y/(Q==1?100:F.x*h);S=S/w}y=F.x;c=F.y}this.x$=new iS(Math.round(y),Math.round(c)); +this.zn=S;this.X8();this.n(new u(z.E.O,!1))};bc.prototype.a1z=function(G){this.vi.C(G);this.X8()};bc.prototype.C=function(a,F,y){if(y!=!0)this.hc=a.clone(); +this.x$=a.clone();if(F!=null){this.mH=F;this.zn=F}this.X8()};bc.prototype.X8=function(){var a=this.x$.x,F=this.x$.y,y=this.zn,c=(a/F).toFixed(3); +while(c.charAt(c.length-1)=="0")c=c.substring(0,c.length-1);if(c.charAt(c.length-1)==".")c=c.substring(0,c.length-1); +var Q=" "+c+" : 1",S=function(J,A){while(A!=0){var T=A;A=J%A;J=T}return J},h=S(a,F);if(Math.min(a,F)/h<10)Q=" "+Math.round(a/h)+" : "+Math.round(F/h); +this.agI.C(Q);if(this.YY.v()){a-=this.hc.x;F-=this.hc.y}var d=this.vi.v();if(d==1){if(this._H){a=100*a/this.hc.x; +F=100*F/this.hc.y}else{a=F=100*this.mH/this.zn}}else{a=Math.round(a);F=Math.round(F)}var W=[1,1,25.4/y,1/y][d]; +a*=W;F*=W;var w=d==1||d==3?2:0;this.rl.AU(w);this.T_.AU(w);this.rl.C(a);this.T_.C(F);this.Hx.C(y)};bc.prototype.v=function(){return this.x$.clone()}; +bc.prototype.qF=function(){return this.zn};function aH(a,F){gX.call(this);var y=a==0?["W","H","X","Y"]:["\u250F","\u2513","\u2517","\u251B"]; +this.ac=a;this.ape=F;this.So=1;this.GS=[1,1,0];var c=this.k=z.z("div","numlist"),Q=this.HB=[];for(var G=0; +G<4;G++){var S=new fN(y[G],0,0,null,2,!1,!0,4);S.l(z.E.O,this.q8,this);c.appendChild(S.k);Q[G]=S;if(G==1||G==3)z.bO(c)}Q[4]=new gC(a==0?[12,51]:[12,91,2]); +Q[4].C(!0);c.appendChild(Q[4].k)}aH.prototype=new gX;aH.prototype.f=function(){var a=this.HB;for(var G=0; +G<5;G++)a[G].f();if(this.ac==0)z.De(a[0],a[1])};aH.prototype.C=function(a,F){if(F)this.GS=F;F=this.GS; +this.So=a[0]/a[1];for(var G=0;G<4;G++){var y=this.HB[G];y.AU(F[2]==0&&this.ape?0:2);y.C(D.Eu.agh(a[G],F[0],F[1],F[2]))}}; +aH.prototype.v=function(){var a=[],F=this.GS;for(var G=0;G<4;G++){var y=D.Eu.jF(this.HB[G].v(),F[0],F[1],F[2]); +a[G]=this.ape?Math.round(y):y}return a};aH.prototype.q8=function(a){var F=this.ac,y=this.HB.indexOf(a.currentTarget),c=this.v(),Q=this.HB[4].v(); +if(F==0){c[0]=Math.max(1,c[0]);c[1]=Math.max(1,c[1]);if(Q&&y==0)c[1]=c[0]/this.So;if(Q&&y==1)c[0]=c[1]*this.So}if(F==1){c[y]=Math.max(0,c[y]); +if(Q)for(var G=0;G<4;G++)c[G]=c[y]}this.C(c);this.n(new u(z.E.O,!1))};function iR(){gX.call(this);this.vT=0; +this.cg=[0,0,1,1,100,100];this.k=z.z("span","fitem");this.M_=new iP(null,[[12,89,0],[12,89,1],[12,89,2]]); +this.k.appendChild(this.M_.k);this.M_.l(z.E.O,this.q8,this);this.rl=new fN("W",0,0,null,0,!1,!0);this.k.appendChild(this.rl.k); +this.rl.l(z.E.O,this.q8,this);this.T_=new fN("H",0,0,null,0,!1,!0);this.k.appendChild(this.T_.k);this.T_.l(z.E.O,this.q8,this); +this.C({yc:0,x:0,y:0})}iR.prototype=new gX;iR.prototype.f=function(){z.De(this.rl,this.T_);this.M_.f()}; +iR.prototype.q8=function(a){if(a.target==this.M_){var F=this.v(),y=this.cg;y[this.vT*2]=F.x;y[this.vT*2+1]=F.y; +this.vT=F.yc;this.C({yc:F.yc,x:y[F.yc*2],y:y[F.yc*2+1]})}if(this.rl.v()<1)this.rl.C(1);if(this.T_.v()<1)this.T_.C(1); +this.n(new u(z.E.O,!1))};iR.prototype.C=function(a){this.M_.C(a.yc);this.rl.C(a.x);this.T_.C(a.y);if(a.yc==0){this.rl.cs(); +this.T_.cs()}else{this.rl.xo();this.T_.xo()}};iR.prototype.v=function(){return{yc:this.M_.v(),x:this.rl.v(),y:this.T_.v()}}; +function cz(a,F){gX.call(this);this.NY=a;this.k=z.z("span","labelitem fitem"+(F?" spread":""));this.f()}cz.prototype=new gX; +cz.prototype.C=function(a){this.k.textContent=a};cz.prototype.v=function(){return this.k.textContent}; +cz.prototype.xo=function(){this.k.removeAttribute("disabled")};cz.prototype.cs=function(){this.k.setAttribute("disabled","")}; +cz.prototype.L1=function(a){this.k.textContent=a};cz.prototype.f=function(){this.k.textContent=aT.get(this.NY)}; +cz.prototype.ai4=function(){return this.NY};function f7(a){gX.call(this);this.k=z.z("span","");this.aeb=a; +this.TZ=new dM("Off X",-100,100,a?"%":"px",0,!1);this.OX=new dM("Off Y",-100,100,a?"%":"px",0,!1);this.TZ.l(z.E.O,this.q8,this); +this.OX.l(z.E.O,this.q8,this);this.k.appendChild(this.TZ.k);this.k.appendChild(this.OX.k)}f7.prototype=new gX; +f7.prototype.f=function(){this.TZ.f();this.OX.f()};f7.prototype.q8=function(a){this.n(new u(z.E.O,!1))}; +f7.prototype.a4H=function(a){this.TZ.C(a.x);this.OX.C(a.y)};f7.prototype.ac8=function(){return new iS(this.TZ.v(),this.OX.v())}; +f7.prototype.C=function(a,F){var y=a.Hrzn.v,c=a.Vrtc.v;if(this.aeb){y=y.val;c=c.val}this.TZ.C(y);this.OX.C(c); +if(F)this.q8()};f7.prototype.v=function(){var a=this.TZ.v(),F=this.OX.v();if(this.aeb)return{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Prc",val:a}},Vrtc:{t:"UntF",v:{type:"#Prc",val:F}}}; +else return{classID:"Pnt",Hrzn:{v:a,t:"doub"},Vrtc:{v:F,t:"doub"}}};function fN(a,F,y,c,Q,S,h,d,W){gv.call(this,a,F,y,c,Q,!0,S,W); +z.Mv(this.k,"rangedropinput");this.k.appendChild(this.FF);this.dl.setAttribute("style","width:"+(d?d:3.3)+"em"); +this.k.appendChild(this.dl);this.abD=z.z("span","rangecont");this.abD.appendChild(this.Id);this.ZO=z.z("button"); +this.ZO.innerHTML="\u25BC";z.Kw(this.ZO,this.arq.bind(this));if(h!=!0)this.k.appendChild(this.ZO);this.Cv=new gX; +this.Cv.k=this.abD}fN.prototype=new gv;fN.prototype.arq=function(a){if(z.lO(this.Cv.k))return;a.stopPropagation(); +var F=this.k.getBoundingClientRect();this.Id.setAttribute("style","width:"+F.width+"px;");var y=new u(z.E.Q,!0); +y.data={e:z.h.bR,HK:this.Cv,x:F.left,y:F.top+F.height};this.n(y)};function hV(){gX.call(this);this.k=z.z("span","fitem strokebutton"); +this.Cb=[[null,null,null,""],[null,0,null,"4 2"],[1,1,null,"0 2"]];this.uT=JSON.parse(JSON.stringify(aX.ln.default)); +this.z2=z.z("button");this.k.appendChild(this.z2);this.z2.addEventListener("click",this.$N.bind(this),!1); +var a=z.z("canvas","gsicon");this.yd=a.getContext("2d");this.z2.appendChild(a);var F=z.z("span");F.textContent=" \u25BC"; +this.z2.appendChild(F);this.ob=new gX;this.ob.parent=this;this.ob.k=z.z("div","floatcont form");var y=this.ob.k; +y.setAttribute("style","width: 14em;");this.L2=[new iP([12,40],[[19,5,2],[19,5,1],[19,5,0]]),new iY([19,9,0],["","",""]),new iY([19,9,1],["","",""]),new i_([19,9,2])]; +for(var G=0;G",!1,F[G]); +y.l("click",this.a7p,this);this.k.appendChild(y.k);this.Ps.push(y)}this.Ps[0].vA()}bi.prototype=new gX; +bi.prototype.a5t=function(){return this.C0};bi.prototype.v=function(){return this.LY[this.C0]};bi.prototype.C=function(a){this.C0=this.LY.indexOf(a); +for(var G=0;G";var a=this.aig,F=this.aj$;z.z6(this.e.firstChild,a,F)}; +bm.prototype.v=function(){return this.OC[this.jJ]};bm.prototype.C=function(a){this.jJ=this.OC.indexOf(a); +this.e0()};function b6(a,F,y){gX.call(this);if(a==null)a=!1;if(F==null)F=!1;if(y==null)y=!1;this.a4G=F; +this.be=null;this.gs=new bm([12,22],y);this.gs.parent=this;this.gs.l(z.E.O,this.ci,this);this.PE=new iP([22,0],[[22,4,0],[22,4,1]]); +this.PE.l(z.E.O,this.ci,this);var c=a?fN:dw;this.If=new c([22,1],-100,100,"%");this.yl=new c("Horizontal Distortion:",-100,100,"%"); +this.fj=new c("Vertical Distortion:",-100,100,"%");this.If.parent=this.yl.parent=this.fj.parent=this; +this.If.l(z.E.O,this.ci,this);this.yl.l(z.E.O,this.ci,this);this.fj.l(z.E.O,this.ci,this)}b6.prototype=new gX; +b6.prototype.f=function(){this.gs.f();this.PE.f();this.If.f();var a=this.a4G?1:100;this.yl.L1(aT.get([22,2]).substring(0,a)+":"); +this.fj.L1(aT.get([22,3]).substring(0,a)+":")};b6.prototype.ci=function(){var a=this.be,F=this.gs.v(),y=a.warpStyle.v.warpStyle; +if(F=="warpCustom")D.be.pD(D.be.Nq(a),a);else delete a.customEnvelopeWarp;a.warpStyle.v.warpStyle=this.gs.v(); +a.warpRotate.v.Ornt=["Hrzn","Vrtc"][this.PE.v()];a.warpValue.v=this.If.v();a.warpPerspective.v=this.yl.v(); +a.warpPerspectiveOther.v=this.fj.v();if(F=="warpNone"||F=="warpCustom"){a.warpValue.v=0;a.warpPerspective.v=0; +a.warpPerspectiveOther.v=0}else if(y=="warpNone"||y=="warpCustom")a.warpValue.v=50;this.n(new u(z.E.O,!1)); +this.C(a)};b6.prototype.v=function(a){return JSON.parse(JSON.stringify(this.be))};b6.prototype.C=function(a){this.be=JSON.parse(JSON.stringify(a)); +this.gs.C(a.warpStyle.v.warpStyle);this.PE.C(a.warpRotate.v.Ornt=="Hrzn"?0:1);this.If.C(a.warpValue.v); +this.yl.C(a.warpPerspective.v);this.fj.C(a.warpPerspectiveOther.v);var F=a.warpStyle.v.warpStyle,y=F=="warpNone"||F=="warpCustom",c=[this.PE,this.If,this.yl,this.fj]; +for(var G=0;G=0)F.M9("Space");if(a>=1){F.M9("ControlLeft");if(a==2)F.M9("AltLeft")}return F}; +fQ.prototype.KM=function(a){var F=this.Pz,y=null;if(a.Y(ht.P1)){y="grab";if(a.Y(ht.A4)){y="zoom-in"; +if(a.Y(ht.V0))y="zoom-out"}}this.mK=y;if(y)F=y;this.HO.QM(F,this.Uv);if(a.Y(ht.A4)){var c=0;if(a.Y(ht.S0))c=1; +if(a.Y(ht.XS))c=-1;if(c!=0){this.AN(new iS(this.O5.width/2,this.O5.height/2),c==1)}}};fQ.prototype.oG=function(a){this.Pz=a; +if(this.mK)return;this.HO.QM(a,this.Uv)};fQ.prototype.adQ=function(a){z.Kw(a,this.aqV);z.sQ(a);a.addEventListener("wheel",this.ac5,!1)}; +fQ.prototype.zW=function(a){a.l("viewchange",this.ary,this)};fQ.prototype.ary=function(a){var F=this.a.X,y=a.currentTarget.W8(); +this.a.X=y.X;this.a.B=y.B.clone();if(F!=y.X)this.SL();this.H0()};fQ.prototype.W8=function(){return{X:this.a.X,B:this.a.B}}; +fQ.prototype.C=function(a,F){var y=a[0].vH;if(this.jb!=null&&this.jb[0].vH.pI(y)){}else{this.a.Co={t:y.t,w:y.w}; +this.a.B=new iS(0,0);this.a.X=1}this.jb=a;this.SL();this.On();this.qb=0;this.u0=0;this.JE=F==null?0:F; +this.a1$()};fQ.prototype.zV=function(a){a.preventDefault();if(a.deltaY==0||Date.now()-this.a8M<100)return; +var F=z.TA(a);F.x=z.K()*F.x;F.y=z.K()*F.y;this.a8M=Date.now();this.AN(F,a.deltaY<0)};fQ.prototype.AN=function(a,F){m.da.zi(this.a,a,F); +this.a3s()};fQ.prototype.adD=function(){var a=this.a,F=a.Co;this.a.X=m.da.xc(F.t,F.w,a.Ed.t,a.Ed.w); +this.a3s()};fQ.prototype.a3s=function(){this.SL();this.n(new u("viewchange"));this.n(new u("zoom"))}; +fQ.prototype.SL=function(){this.I9=[];var a=this.a.X;if(this.jb==null)return;for(var G=0;G=1)c={BN:y,rect:F.vH};else c=D.amT(y,F.vH,a);this.I9.push(c)}}; +fQ.prototype.On=function(){clearTimeout(this.ahD)};fQ.prototype.H0=function(){if(this.jb==null||!z.lO(this.O5))return; +var a=this.aqT,F=this.O5.width,y=this.O5.height,v,i;if(a==null||a.width!=F||a.height!=y){a=this.aqT=this.yd.createImageData(F,y); +console.log("creating image data")}var c=this.jb[this.qb],Q=this.I9[this.qb],S=this.a,h=S.Co,d=S.Ed,W=d.t,w=d.w,J=h.t*S.X,A=h.w*S.X,T=Math.round((W-J)/2+S.B.x),o=Math.round((w-A)/2+S.B.y); +if(S.X<=1){i=Q.rect.clone();i.x=T;i.y=o;J=i.t;A=i.w;v=Q.BN}else{var N=1/S.X,b=new cJ(Math.floor((d.x-T)*N),Math.floor((d.y-o)*N),Math.ceil(d.t*N)+1,Math.ceil(d.w*N)+1),q=new cJ(0,0,b.t*S.X,b.w*S.X); +q.x=b.x*S.X+T;q.y=b.y*S.X+o;if(S._W==null||S._W.length!=b.L()*4){S._W=D.G(b.L()*4)}if(S.Tg==null||S.Tg.length!=q.L()*4){S.Tg=D.G(q.L()*4)}D.Jx(S._W,0); +D.vD(Q.BN,Q.rect,S._W,b);D.scale.zh(S._W,b.t,b.w,S.Tg,q.t,q.w,S.X);v=S.Tg;i=q}var O=new Uint8Array(a.data.buffer); +D.Pf(O,W,w,8,-T,-o);D.R.jU("norm",v,i,O,d,d,1);this.yd.setTransform(1,0,0,1,0,0);this.yd.putImageData(a,0,0); +this.yd.clearRect(T-1e3,o,1e3,A);this.yd.clearRect(T+J,o,1e3,A);this.yd.clearRect(T-1e3,o-1e3,J+2e3,1e3); +this.yd.clearRect(T-1e3,o+A,J+2e3,1e3);var R=fQ.anB(S.X,"#ffffff",this.akU);this.yd.putImageData(R,0,S.Ed.w-R.height)}; +fQ.anq={};fQ.anB=function(a,F,y){if(y==null)y=!1;var c="z"+a+","+F+","+y,Q=fQ.anq[c];if(Q)return Q;var S=Math.round(50*z.K()),h=Math.round(18*z.K()),d=y?2*h:0,W=z.z("canvas"),w=W.getContext("2d"); +W.width=S+d;W.height=h;w.fillStyle="rgba(1,1,1,1)";w.fillRect(0,0,S+d,h);w.font=Math.round(11*z.K())+"px monospace"; +w.fillStyle=F;var J=a*100;if(J<100)J=J.toFixed(2);else J=Math.round(J);J=J+"%";var A=w.measureText(J).width; +w.fillText(J,d+(S-A)/2,Math.round(h*.7));Q=fQ.anq[c]=w.getImageData(0,0,S+d,h);return Q};fQ.prototype.a1$=function(){var a=this.jb,F=a.length,y=this.qb,c=this.jb[y],Q=(y+1)%F; +this.H0();if(F!=1&&a[Q].vH.pI(c.vH)){var S=c.eJ?parseInt(c.eJ.split(",").pop()):30;if(S==0)S=16;if(Q==0)this.u0++; +if(this.JE==0||this.u01||!c.Ed.pE(S))){if(y.length>1){var d=z.TA(y[0],this.O5),W=z.TA(y[1],this.O5),w=new iS(z.K()*(d.x+W.x)/2,z.K()*(d.y+W.y)/2),J=iS.Uy(d,W),A=null; +if(J>this.PK+50){this.PK+=50;A=!0}if(J1){this.a.X=1; +this.a.B.Xo(0,0);this.H0()}if(this.qy&&this.rK==this.O5&&!this.mK)this.n(new u("mouseup"));else{if(c=="zoom-in"||c=="zoom-out")this.AN(this.ik,c=="zoom-in")}}else{var Q=this.Hh=z.TA(y[0],this.O5); +Q.x*=z.K();Q.y*=z.K()}};fQ.prototype.sR=function(){return this.a.Mz(this.ik.x,this.ik.y)};function io(){gX.call(this); +this.Ss=null;this.PT=null;this.nc=null;this.mb=null;this.a3n="";this.I6=[];this.$T=0;this.th=[];this.O9=0; +this.pn=null;var a=this.k=z.z("div",""),F=this.ao5=z.z("div","form");F.setAttribute("style","line-height:0; margin-bottom:0.5em;"); +a.appendChild(F);var y=this.hG=z.z("span");F.appendChild(y);y.setAttribute("style","font-size:1.2em; font-weight:bold; margin-right:3em;"); +var c=this.aa6=new gC([25,2,0]);c.C(!0);F.appendChild(c.k);c.l(z.E.O,this.fA,this);var Q=this.JP=new gC([25,2,1]); +Q.C(!0);F.appendChild(Q.k);Q.l(z.E.O,this.fA,this);var S=new cz(" ");F.appendChild(S.k);var h=this.hS=new i_([25,1,1]); +F.appendChild(h.k);h.l(z.E.O,this.fA,this);this.Y3=new em(14);this.Y3.a2p(3);F.appendChild(this.Y3.k); +this.Y3.parent=this;this.Y3.l(z.E.O,this.aq1,this);var d=this.a2H=new cr([25,1,2],null,null,!0);F.appendChild(d.k); +d.l("click",this.Cx,this);this.aeR=this.ahR.bind(this);this.WE=z.z("div","svggallery scrollable");a.appendChild(this.WE); +this.WE.addEventListener("scroll",this.a28.bind(this))}io.prototype=new gX;io.prototype.RV=function(a){this.aqp=a}; +io.prototype.f=function(){this.hG.textContent=aT.get([25,0]);this.Y3.f();this.aa6.f();this.JP.f();this.hS.f(); +this.a2H.f()};io.prototype.oB=function(a,F){F-=26;this.Ss=new iS(a,F);this.ao5.setAttribute("style","width:"+a+"px"); +this.WE.setAttribute("style","width:"+a+"px; height:"+F+"px");if(z.lO(this.k))this.fA()};io.prototype.C=function(a){this.PT=a; +this.fA()};io.prototype.a28=function(a){var F=this.WE;if(F.scrollTop+F.clientHeight+10>=F.scrollHeight){this.fA(!0)}}; +io.prototype.aq1=function(a){this.nc=null;this.fA()};io.prototype.ahR=function(a){if(Date.now()-this.O9<2e3)return; +this.O9=Date.now();this.$T=this.th.indexOf(a.currentTarget);var F=this.WU(this.PT.x,this.PT.y);if(F[1]){var y=F[1].largeImageURL,c=new XMLHttpRequest; +c.responseType="arraybuffer";c.open("GET",y,!0);c.onload=this.agB.bind(this);c.send();return}this.a32(F)}; +io.prototype.agB=function(a){var F=a.target.response,y=f$.vl(F),c=f$.QS(y),Q=c.YP(F),S=this.WU(this.PT.x,this.PT.y,[F,Q[0].vH.t,Q[0].vH.w]); +this.a32(S)};io.prototype.a32=function(a){var F=a[0],y=f$.vl(F),c=f$.QS(y),Q=new iO("template.psd"); +c.YP(F,Q);var S=new u("tempready",!0);S.data={Co:Q};this.n(S)};io.prototype.Cx=function(a){var F=a.target; +this.I6=[];this.fA()};io.prototype.a1f=function(a){var F=JSON.parse(a.target.response);this.mb=F.hits; +this.fA()};io.prototype.fA=function(a){if(this.PT==null||this.Ss==null||this.aqp==null)return;if(this.Ss.x<=0)return; +var F=this.PT.x,y=this.PT.y;if(Math.min(F,y)<50)return;if(a!=!0){this.th=[];z.pP(this.WE);this.WE.scrollTop=0}if(this.th.length>300)return; +var c=Math.min(1,300/Math.max(F,y)),Q=this.Ss.clone();Q.x-=20;var S=Math.max(1,Math.floor(Q.x/(F*c))),h=Math.max(1,Math.ceil(Q.y/(y*c))); +c=Q.x/S/F;var d=S*h;if(this.nc==null){var W=this.aqp.G6.Qm();this.nc=[];for(var w in W){var J=W[w],A=J[3]; +if(!this.Y3.Xs(J))continue;if(J[5]==null||J[5].slice(0,2)=="gf")continue;this.nc.push(J)}if(this.nc.length==0)this.nc.push(W.DejaVuSans)}var T=this.JP.v(),o=this.hS.v().trim(); +this.hS.JF(T);if(T&&(this.mb==null||o!=this.a3n)){var v=new XMLHttpRequest,i="https://pixabay.com/api/?image_type=photo"+(o==""?"":"&q="+encodeURIComponent(o))+"&per_page=200&page=1&key=10554583-a5eacb61c2e61105fdfb6eb88"; +if(o=="")i+="&safesearch=true";if(o=="")i="plugins/gallery.json";v.open("GET",i,!0);v.onload=this.a1f.bind(this); +v.onerror=function(k){console.log(k.target.response)};v.send();this.a3n=o;return}c*=(F*c-5)/(F*c);var N=this.th.length; +for(var G=0;G