Skip to content

Instantly share code, notes, and snippets.

@larskuhtz
Last active December 4, 2018 23:05
Show Gist options
  • Save larskuhtz/5ee9510ad5346f988614f202420ddcc4 to your computer and use it in GitHub Desktop.
Save larskuhtz/5ee9510ad5346f988614f202420ddcc4 to your computer and use it in GitHub Desktop.
Haskell Benchmarks for Concurrent Transactions with Many Shared Variables

Setup

This gist contains benchmarks for read-only concurrent transaction that involve many shared variables. The test data is a mutable single-linked list where individual list "cells" are linked via mutable shared variables. The goal is to measure the overhead of different transaction types and variables in read-only transactions when there are no concurrent writes.

The input to a benchmark run is a list of a of successive Int values. The benchmark code runs a number of concurrent threads that each fold over the list and each compute the sum of all entries. The list isn't mutated during the benchmarks.

Benchmark parameters are

  • the length of the list,
  • the number of concurrent threads, and
  • the type of the variables and transactions.

Variable and transaction types are

  • MVar,
  • Compose IORef Maybe (which is fine, since the data structure isn't mutated during the benchmark),
  • TMVar (in STM) evaluated in a single STM transaction,
  • TMVar (hoisted) with each STM action hoisted into a separate singleton STM transaction,
  • TMVar (in IO) with each STM action called in a separate singleton STM transaction,
  • Compose TVar Maybe (in STM) evaluated in a single STM transaction,
  • Compose TVar Maybe (hoisted) with each STM action hoisted into a separate singleton STM transaction, and
  • Compose TVar Maybe (in IO) access in IO without using STM.

"TMVar hoisted" and "TMVar in IO" result in equivalent code. However, the overhead of the hoist implementation for the Stream type that is used in the fold and different inlining by GHC may result in different performance.

Build:

ghc -O2 -threaded -rtsopts -main-is VarList -o main VarList.hs

Run:

./main +RTS -N

Results

Results

As expected Compose IORef Maybe performs best in all settings. Compose TVar Maybe with readTVarIO performs on par with plain IORef. MVar has only little overhead.

TMVar in IO and TMVar hoisted both have acceptable performance with some overhead due to the STM transactions. The hoisted version is somewhat slower, most likely due to overhead in hoist and different inlining by GHC.

In the context of STM transactions TMVar and Compose TVar Maybe perform similar, which can be explained by the fact that TMVar a is implemented as TVar (Maybe a) in base.

Benchmarks didn't complete in acceptable time for benchmarks that run the complete fold in a single STM transaction when there was more than a single thread and a moderately large lists lengths (in the order of thousands).

Results for large STM transactions with many variables

Rendered Notebook

Focusing on the scenarios where the complete fold is done in a single STM transaction, it seems that the run time scales linear in the number of threads and, up to some point, quadratic in the length of the list.

However, if there is more than a single thread and the length of the list growth beyond a certain point (~15,000 - 20,000 in my tests) the running time distribution exhibits a growing tail of very long runs and eventually most runs become long running. The behavior seems to indicate a race between concurrent transactions, which is surprising, since there are no updates to the variables during the test run.

Conclusion

It seems that read-only STM transactions without concurrent writes scale quadratic in the number involved variables and linear in the number of concurrent transactions.

Small (singleton) read transactions come with little overhead, but are still slower than MVar with tryReadMVar.

TVars with readTVarIO have the same performance as plain IORefs. Thus TVars have the benefit that they can be used either like plain IORef without any transaction overhead or in transactions.

Using STM transactions that involve a large number of variables should be avoided, even if when there are no concurrent writes. In addition to the quadratic complexity it seems that there can be races between read-only transactions even in the absence of concurrent updates.

Thus,

  • IORefs are best when there is no concurrent updates beyond what can be done with atomicModifyIORef.
  • MVars are best when concurrent writes can't be ruled out.
  • TVars are best when variables are used in contexts that don't have concurrent writes (where readTVarIO can be used) as well as in contexts with concurrent writes.

It would be nice if base could include a function tryReadTMVarIO that avoids the overhead of an STM transaction.

{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeSynonymInstances #-}
-- |
-- Module: VarList
-- Copyright: Copyright © 2018 Lars Kuhtz <[email protected]>
-- License: MIT
-- Maintainer: Lars Kuhtz <[email protected]>
-- Stability: experimental
--
module VarList
(
-- * Mutable Variables
Var(..)
, MaybeIORef
, MaybeTVar
-- * Cell
, Cell(..)
, foldCell
, cellToStream
, cellFromStream
-- * Test and Benchmark Data
, testCell
-- * Main functions
, main
, main1
, main2
, main3
) where
import Control.Concurrent
import Control.Concurrent.Async
import Control.Concurrent.STM
import Control.DeepSeq
import Control.Monad
import Control.Monad.Morph
import Control.StopWatch
import Criterion
import Criterion.Main
import Data.Foldable
import Data.Functor.Compose
import Data.Functor.Of
import Data.IORef
import qualified Data.List.NonEmpty as L
import qualified Data.Sequence as Seq
import qualified Streaming.Prelude as S
import System.Clock
import System.Environment
import System.IO
import System.Mem
-- -------------------------------------------------------------------------- --
-- Variables
--
-- Note that 'Compose' is used here for type constructors that aren't functors.
class Monad m => Var m v where
readVar :: v x -> m (Maybe x)
newEmptyVar :: m (v x)
newVar :: x -> m (v x)
-- | Depending on the type of the variable this function may block or spin.
awaitVar :: v x -> m x
type MaybeIORef = Compose IORef Maybe
type MaybeTVar = Compose TVar Maybe
instance Var STM TMVar where
readVar = tryReadTMVar
newEmptyVar = newEmptyTMVar
newVar = newTMVar
awaitVar = takeTMVar
{-# INLINE readVar #-}
{-# INLINE newEmptyVar #-}
{-# INLINE newVar #-}
{-# INLINE awaitVar #-}
instance Var IO TMVar where
readVar = atomically . tryReadTMVar
newEmptyVar = newEmptyTMVarIO
newVar = newTMVarIO
awaitVar = atomically . awaitVar
{-# INLINE readVar #-}
{-# INLINE newEmptyVar #-}
{-# INLINE newVar #-}
{-# INLINE awaitVar #-}
instance Var IO MVar where
readVar = tryReadMVar
newEmptyVar = newEmptyMVar
newVar = newMVar
awaitVar = takeMVar
{-# INLINE readVar #-}
{-# INLINE newEmptyVar #-}
{-# INLINE newVar #-}
{-# INLINE awaitVar #-}
instance Var STM (Compose TVar Maybe) where
readVar = readTVar . getCompose
newEmptyVar = Compose <$> newTVar Nothing
newVar = fmap Compose . newTVar . Just
awaitVar = readVar >=> maybe retry return
{-# INLINE readVar #-}
{-# INLINE newEmptyVar #-}
{-# INLINE newVar #-}
{-# INLINE awaitVar #-}
instance Var IO (Compose TVar Maybe) where
readVar = readTVarIO . getCompose
newEmptyVar = Compose <$> newTVarIO Nothing
newVar = fmap Compose . newTVarIO . Just
awaitVar = atomically . awaitVar
{-# INLINE readVar #-}
{-# INLINE newEmptyVar #-}
{-# INLINE newVar #-}
{-# INLINE awaitVar #-}
instance Var IO (Compose IORef Maybe) where
readVar = readIORef . getCompose
newEmptyVar = Compose <$> newIORef Nothing
newVar = fmap Compose . newIORef . Just
-- | This spins
awaitVar v = let go = readVar v >>= maybe (yield >> go) return in go
{-# INLINE readVar #-}
{-# INLINE newEmptyVar #-}
{-# INLINE newVar #-}
{-# INLINE awaitVar #-}
-- -------------------------------------------------------------------------- --
-- Cell
data Cell v a = Cell a !(v (Cell v a))
instance NFData a => NFData (Cell v a) where
rnf (Cell a _) = rnf a
-- | Fold over the values in a cell
--
foldCell
:: Monad m
=> Var m v
=> (b -> a -> b)
-> b
-> Cell v a
-> m b
foldCell f b = go b
where
go !i (Cell !h !t) = readVar t >>= \case
Nothing -> return i
Just c -> go (f i h) c
cellToStream :: Var m v => Cell v a -> S.Stream (Of a) m ()
cellToStream = go
where
go (Cell h t) = do
S.yield h
lift (readVar t) >>= \case
Nothing -> return ()
Just c -> go c
-- | Transforms a stream into a cell and returns the first cell if the stream
-- isn't empty.
--
-- This could be made lazy using 'unsafeInterleavedIO', which would be fine,
-- since the 'Var's won't change once the are evaluated. However, for
-- benchmarking we want it strict.
--
cellFromStream :: Var m v => S.Stream (Of a) m () -> m (v (Cell v a))
cellFromStream s = S.foldrM f (s >> lift newEmptyVar)
where
f !a !x = newVar =<< (Cell a <$> x)
cellFromList :: forall v a m . Var m v => L.NonEmpty a -> m (Cell v a)
cellFromList (a L.:| l) = Cell a <$> go l
where
go [] = newEmptyVar
go (!h:t) = newVar =<< (Cell h <$> go t)
maybeIORefCellFromList :: forall a . L.NonEmpty a -> IO (Cell MaybeIORef a)
maybeIORefCellFromList (a L.:| l) = do
v <- newEmptyVar
go v l
return $ Cell a v
where
go :: MaybeIORef (Cell MaybeIORef a) -> [a] -> IO ()
go _ [] = return ()
go !v (!h:t) = do
!v' <- newEmptyVar
writeIORef (getCompose v) (Just (Cell h v'))
go v' t
-- -------------------------------------------------------------------------- --
-- Main
testCell :: forall v m . Var m v => Int -> m (Cell v Int)
testCell i = awaitVar =<< cellFromStream (S.each [1..i])
main :: IO ()
main = main3
-- -------------------------------------------------------------------------- --
-- Test
main1 :: IO ()
main1 = do
[minThreadCount, maxThreadCount, threadCountStep, minListLength, maxListLength, listLengthStep] <- fmap read . take 2 <$> getArgs
hSetBuffering stdout LineBuffering
putStrLn $ "threadCount, listLength, time"
forM_ [minThreadCount, (minThreadCount + threadCountStep) .. maxThreadCount] $ \threadCount -> do
forM_ [minListLength, (minListLength + listLengthStep) .. maxListLength] $ \listLength -> do
-- Compute test cell
cell <- testCell @MaybeTVar listLength
-- prime test cell evaluation
void $ atomically $ S.sum $ cellToStream $ cell
-- measure concurrent test cell evaluation
performMajorGC
(_, t) <- stopWatch $ replicateConcurrently_ threadCount
$ atomically $ S.sum_ $ cellToStream $ cell
-- print result
putStrLn
$ show threadCount
<> ", " <> show listLength
<> ", " <> show (toNanoSecs t)
-- -------------------------------------------------------------------------- --
-- Comparison with Pure Sequence
main3 :: IO ()
main3 = defaultMain
[ bs 1
, bs 100
, create
]
where
create = bgroup "create" $
[ bench "seq"
$ nf (\s -> Seq.fromList [0..s]) (1000000 :: Int)
, bench "cell"
$ nfAppIO (testCell @MaybeIORef) 1000000
, bench "cell from list"
$ nfAppIO (\s -> cellFromList @MaybeIORef @Int (0 L.:| [1..s])) 1000000
, bench "cell from list 2"
$ nfAppIO (\s -> maybeIORefCellFromList @Int (0 L.:| [1..s])) 1000000
]
bs i = bgroup (show i <> " threads")
[ bgroup "stream" $
[ env (return $ Seq.fromList [0..1000000]) $ \(e :: Seq.Seq Int) -> bench "seq"
$ nfAppIO (S.sum_ . S.each) e
, env (testCell @MaybeIORef 1000000) $ \e -> bench "cell"
$ nfAppIO (S.sum_ . cellToStream) e
]
, bgroup "fold" $
[ env (return $ Seq.fromList [0..1000000]) $ \(e :: Seq.Seq Int) -> bench "seq"
$ nf (foldl' (+) 0) e
, env (testCell @MaybeIORef 1000000) $ \e -> bench "cell"
$ nfAppIO (foldCell (+) 0) e
]
]
-- -------------------------------------------------------------------------- --
-- Criterion Benchmarks
main2 :: IO ()
main2 = defaultMain
[ benchmarks 1
, benchmarks 10
, benchmarks 1000
]
benchmarks :: Int -> Benchmark
benchmarks i = bgroup (show i <> " threads")
[ env (testCell @MVar 10000) $ \e -> bench "MVar"
$ nfAppIO (threaded $ S.sum_ . cellToStream) e
, env (testCell @MaybeIORef 10000) $ \e -> bench "MaybeIORef"
$ nfAppIO (threaded $ S.sum_ . cellToStream) e
, bgroup "TMVar" $
[ env (testCell @TMVar 10000) $ \e -> bench "TMVar hoisted"
$ nfAppIO (threaded $ S.sum_ . hoist atomically . cellToStream) e
, env (testCell @TMVar 10000) $ \e -> bench "TMVar in IO"
$ nfAppIO (threaded $ S.sum_ . cellToStream) e
]
<> if i > 1 then [] else
[ env (testCell @TMVar 10000) $ \e -> bench "TMVar in STM"
$ nfAppIO (threaded $ atomically . S.sum_ . cellToStream) e
-- , env (testCell @TMVar 10000) $ \e -> bench "foldCell Cell TMVar"
-- $ nfAppIO (threaded $ atomically . foldCell ((+) @Int) 0) e
]
, bgroup "MaybeTVar" $
[ env (testCell @MaybeTVar 10000) $ \e -> bench "MaybeTVar hoisted"
$ nfAppIO (threaded $ S.sum_ . hoist atomically . cellToStream) e
, env (testCell @MaybeTVar 10000) $ \e -> bench "MaybeTVar in IO"
$ nfAppIO (threaded $ S.sum_ . cellToStream) e
]
<> if i > 1 then [] else
[ env (testCell @MaybeTVar 10000) $ \e -> bench "MaybeTVar in STM"
$ nfAppIO (threaded $ atomically . S.sum_ . cellToStream) e
]
]
where
threaded f a = replicateConcurrently_ i (f a)
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 296,
"metadata": {},
"outputs": [],
"source": [
"library(ggplot2)"
]
},
{
"cell_type": "code",
"execution_count": 297,
"metadata": {},
"outputs": [],
"source": [
"library(plotly)"
]
},
{
"cell_type": "code",
"execution_count": 298,
"metadata": {},
"outputs": [],
"source": [
"dat = read.csv(\"varlist.csv\", header = TRUE)"
]
},
{
"cell_type": "code",
"execution_count": 440,
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"outputs": [
{
"data": {
"text/html": [
"<!doctype html>\n",
"<html>\n",
"\t<head>\n",
"\t\t<meta charset=\"utf-8\">\n",
"\t\t<script src=\"data:application/javascript;base64,KGZ1bmN0aW9uKCkgewogIC8vIElmIHdpbmRvdy5IVE1MV2lkZ2V0cyBpcyBhbHJlYWR5IGRlZmluZWQsIHRoZW4gdXNlIGl0OyBvdGhlcndpc2UgY3JlYXRlIGEKICAvLyBuZXcgb2JqZWN0LiBUaGlzIGFsbG93cyBwcmVjZWRpbmcgY29kZSB0byBzZXQgb3B0aW9ucyB0aGF0IGFmZmVjdCB0aGUKICAvLyBpbml0aWFsaXphdGlvbiBwcm9jZXNzICh0aG91Z2ggbm9uZSBjdXJyZW50bHkgZXhpc3QpLgogIHdpbmRvdy5IVE1MV2lkZ2V0cyA9IHdpbmRvdy5IVE1MV2lkZ2V0cyB8fCB7fTsKCiAgLy8gU2VlIGlmIHdlJ3JlIHJ1bm5pbmcgaW4gYSB2aWV3ZXIgcGFuZS4gSWYgbm90LCB3ZSdyZSBpbiBhIHdlYiBicm93c2VyLgogIHZhciB2aWV3ZXJNb2RlID0gd2luZG93LkhUTUxXaWRnZXRzLnZpZXdlck1vZGUgPQogICAgICAvXGJ2aWV3ZXJfcGFuZT0xXGIvLnRlc3Qod2luZG93LmxvY2F0aW9uKTsKCiAgLy8gU2VlIGlmIHdlJ3JlIHJ1bm5pbmcgaW4gU2hpbnkgbW9kZS4gSWYgbm90LCBpdCdzIGEgc3RhdGljIGRvY3VtZW50LgogIC8vIE5vdGUgdGhhdCBzdGF0aWMgd2lkZ2V0cyBjYW4gYXBwZWFyI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lQXJncy5jb25jYXQoW3Rhc2suZGF0YV0pOwogICAgICAgICAgdGFzayA9IHRhc2suY29kZTsKICAgICAgICB9CiAgICAgICAgdmFyIHRhc2tGdW5jID0gZXZhbCgiKCIgKyB0YXNrICsgIikiKTsKICAgICAgICBpZiAodHlwZW9mKHRhc2tGdW5jKSAhPT0gImZ1bmN0aW9uIikgewogICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCJUYXNrIG11c3QgYmUgYSBmdW5jdGlvbiEgU291cmNlOlxuIiArIHRhc2spOwogICAgICAgIH0KICAgICAgICB0YXNrRnVuYy5hcHBseSh0YXJnZXQsIHRoZXNlQXJncyk7CiAgICAgIH0pOwogICAgfQogIH0KCiAgZnVuY3Rpb24gaW5pdFNpemluZyhlbCkgewogICAgdmFyIHNpemluZyA9IHNpemluZ1BvbGljeShlbCk7CiAgICBpZiAoIXNpemluZykKICAgICAgcmV0dXJuOwoKICAgIHZhciBjZWwgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiaHRtbHdpZGdldF9jb250YWluZXIiKTsKICAgIGlmICghY2VsKQogICAgICByZXR1cm47CgogICAgaWYgKHR5cGVvZihzaXppbmcucGFkZGluZykgIT09ICJ1bmRlZmluZWQiKSB7CiAgICAgIGRvY3VtZW50LmJvZHkuc3R5bGUubWFyZ2luID0gIjAiOwogICAgICBkb2N1bWVudC5ib2R5LnN0eWxlLnBhZGRpbmcgPSBwYWRkaW5nVG9Dc3ModW5wYWNrUGFkZGluZyhzaXppbmcucGFkZGluZykpOwogICAgfQoKICAgIGlmIChzaXppbmcuZmlsbCkgewogICAgICBkb2N1bWVudC5ib2R5LnN0eWxlLm92ZXJmbG93ID0gImhpZGRlbiI7CiAgICAgIGRvY3VtZW50LmJvZHkuc3R5bGUud2lkdGggPSAiMTAwJSI7CiAgICAgIGRvY3VtZW50LmJvZHkuc3R5bGUuaGVpZ2h0ID0gIjEwMCUiOwogICAgICBkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQuc3R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jcm9sbGJhcnMgdG8gYXBwZWFyIGFuZCBtYWtpbmcgaXQgaW1wb3NzaWJsZSBmb3IKICAgICAgICAgICAgLy8gdGhlIGVsZW1lbnQgdG8gc2hyaW5rOyBzbyB1c2UgbWF4LXdpZHRoIGluc3RlYWQKICAgICAgICAgICAgLmNzcygibWF4V2lkdGgiLCBlbC5vZmZzZXRXaWR0aCkKICAgICAgICAgICAgLmNzcygiaGVpZ2h0IiwgZWwub2Zmc2V0SGVpZ2h0KTsKICAgICAgICAgIGVycm9yRGl2LnRleHQoZXJyLm1lc3NhZ2UpOwogICAgICAgICAgJGVsLmFmdGVyKGVycm9yRGl2KTsKCiAgICAgICAgICAvLyBSZWFsbHkgZHVtYiB3YXkgdG8ga2VlcCB0aGUgc2l6ZS9wb3NpdGlvbiBvZiB0aGUgZXJyb3IgaW4gc3luYyB3aXRoCiAgICAgICAgICAvLyB0aGUgcGFyZW50IGVsZW1lbnQgYXMgdGhlIHdpbmRvdyBpcyByZXNpemVkIG9yIHdoYXRldmVyLgogICAgICAgICAgdmFyIGludElkID0gc2V0SW50ZXJ2YWwoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIGlmICghZXJyb3JEaXZbMF0ucGFyZW50RWxlbWVudCkgewogICAgICAgICAgICAgIGNsZWFySW50ZXJ2YWwoaW50SWQpOwogICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgfQogICAgICAgICAgICBlcnJvckRpdgogICAgICAgICAgICAgIC5jc3MoInRvcCIsIGVsLm9mZnNldFRvcCkKICAgICAgICAgICAgICAuY3NzKCJsZWZ0IiwgZWwub2Zmc2V0TGVmdCkKICAgICAgICAgICAgICAuY3NzKCJtYXhXaWR0aCIsIGVsLm9mZnNldFdpZHRoKQogICAgICAgICAgICAgIC5jc3MoImhlaWdodCIsIGVsLm9mZnNldEhlaWdodCk7CiAgICAgICAgICB9LCA1MDApOwogICAgICAgIH0KICAgICAgfQogICAgfSwKICAgIGNsZWFyRXJyb3I6IGZ1bmN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XMgamF2YXNjcmlwdCBsaXRlcmFscyB0byBvYmplY3RzCiAgICAgICAgaWYgKCEoZGF0YS5ldmFscyBpbnN0YW5jZW9mIEFycmF5KSkgZGF0YS5ldmFscyA9IFtkYXRhLmV2YWxzXTsKICAgICAgICBmb3IgKHZhciBpID0gMDsgZGF0YS5ldmFscyAmJiBpIDwgZGF0YS5ldmFscy5sZW5ndGg7IGkrKykgewogICAgICAgICAgd2luZG93LkhUTUxXaWRnZXRzLmV2YWx1YXRlU3RyaW5nTWVtYmVyKGRhdGEueCwgZGF0YS5ldmFsc1tpXSk7CiAgICAgICAgfQogICAgICAgIGlmICghYmluZGluZ0RlZi5yZW5kZXJPbk51bGxWYWx1ZSkgewogICAgICAgICAgaWYgKGRhdGEueCA9PT0gbnVsbCkgewogICAgICAgICAgICBlbC5zdHlsZS52aXNpYmlsaXR5ID0gImhpZGRlbiI7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIGVsLnN0eWxlLnZpc2liaWxpdHkgPSAiaW5oZXJpdCI7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGlmICghZWxlbWVudERhdGEoZWwsICJpbml0aWFsaXplZCIpKSB7CiAgICAgICAgICBpbml0U2l6aW5nKGVsKTsKCiAgICAgICAgICBlbGVtZW50RGF0YShlbCwgImluaXRpYWxpemVkIiwgdHJ1ZSk7CiAgICAgICAgICBpZiAoYmluZGluZ0RlZi5pbml0aWFsaXplKSB7CiAgICAgICAgICAgIHZhciByZXN1bHQgPSBiaW5kaW5nRGVmLmluaXRpYWxpemUoZWwsIGVsLm9mZnNldFdpZHRoLAogICAgICAgICAgICAgIGVsLm9mZnNldEhlaWdodCk7CiAgICAgICAgICAgIGVsZW1lbnREYXRhKGVsLCAiaW5pdF9yZXN1bHQiLCByZXN1bHQpOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBiaW5kaW5nRGVmLnJlbmRlclZhbHVlKGVsLCBkYXRhLng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zmc2V0V2lkdGgsCiAgICAgICAgICAgIHNpemVPYmogPyBzaXplT2JqLmdldEhlaWdodCgpIDogZWwub2Zmc2V0SGVpZ2h0CiAgICAgICAgICApOwogICAgICAgICAgZWxlbWVudERhdGEoZWwsICJpbml0X3Jlc3VsdCIsIGluaXRSZXN1bHQpOwogICAgICAgIH0KCiAgICAgICAgaWYgKGJpbmRpbmcucmVzaXplKSB7CiAgICAgICAgICB2YXIgbGFzdFNpemUgPSB7CiAgICAgICAgICAgIHc6IHNpemVPYmogPyBzaXplT2JqLmdldFdpZHRoKCkgOiBlbC5vZmZzZXRXaWR0aCwKICAgICAgICAgICAgaDogc2l6ZU9iaiA/IHNpemVPYmouZ2V0SGVpZ2h0KCkgOiBlbC5vZmZzZXRIZWlnaHQKICAgICAgICAgIH07CiAgICAgICAgICB2YXIgcmVzaXplSGFuZGxlciA9IGZ1bmN0aW9uKGUpIHsKICAgICAgICAgICAgdmFyIHNpemUgPSB7CiAgICAgICAgICAgICAgdzogc2l6ZU9iaiA/IHNpemVPYmouZ2V0V2lkdGgoKSA6IGVsLm9mZnNldFdpZHRoLAogICAgICAgICAgICAgIGg6IHNpemVPYmogPyBzaXplT2JqLmdldEhlaWdodCgpIDogZWwub2Zmc2V0SGVpZ2h0CiAgICAgICAgICAgIH07CiAgICAgICAgICAgIGlmIChzaXplLncgPT09IDAgJiYgc2l6ZS5oID09PSAwKQogICAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgaWYgKHNpemUudyA9PT0gbGFzdFNpemUudyAmJiBzaXplLmggPT09IGxhc3RTaXplLmgpCiAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICBsYXN0U2l6ZSA9IHNpemU7CiAgICAgICAgICAgIGJpbmRpbmcucmVzaXplKGVsLCBzaXplLncsIHNpemUuaCwgaW5pdFJlc3VsdCk7CiAgICAgICAgICB9OwoKICAgICAgICAgIG9uKHdpbmRvdywgInJlc2l6ZSIsIHJlc2l6ZUhhbmRsZXIpOwo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m9tIGhhdmluZwogIC8vIHRvIHJld3JpdGUgYWxsIHRoZSBsb2dpYyBpbiB0aGlzIGZpbGUgdG8gYWNjb21vZGF0ZSBib3RoCiAgLy8gdHlwZXMgb2YgZGVmaW5pdGlvbnMuCiAgZnVuY3Rpb24gY3JlYXRlTGVnYWN5RGVmaW5pdGlvbkFkYXB0ZXIoZGVmbikgewogICAgdmFyIHJlc3VsdCA9IHsKICAgICAgbmFtZTogZGVmbi5uYW1lLAogICAgICB0eXBlOiBkZWZuLnR5cGUsCiAgICAgIGluaXRpYWxpemU6IGZ1bmN0aW9uKGVsLCB3aWR0aCwgaGVpZ2h0KSB7CiAgICAgICAgcmV0dXJuIGRlZm4uZmFjdG9yeShlbCwgd2lkdGgsIGhlaWdodCk7CiAgICAgIH0sCiAgICAgIHJlbmRlclZhbHVlOiBmdW5jdGlvbihlbCwgeCwgaW5zdGFuY2UpIHsKICAgICAgICByZXR1cm4gaW5zdGFuY2UucmVuZGVyVmFsdWUoeCk7CiAgICAgIH0sCiAgICAgIHJlc2l6ZTogZnVuY3Rpb24oZWwsIHdpZHRoLCBoZWlnaHQsIGluc3RhbmNlKSB7CiAgICAgICAgcmV0dXJuIGluc3RhbmNlLnJlc2l6ZSh3aWR0aCwgaGVpZ2h0KTsKICAgICAgfQogICAgfTsKCiAgICBpZiAoZGVmbi5maW5kKQogICAgICByZXN1bHQuZmluZCA9IGRlZm4uZmluZDsKICAgIGlmIChkZWZuLnJlbmRlckVycm9yKQogICAgICByZXN1bHQucmVuZGVyRXJyb3IgPSBkZWZuLnJlbmRlckVycm9yOwogICAgaWYgKGRlZm4uY2xlYXJFcnJvcikKICAgICAgcmVzdWx0LmNsZWFyRXJyb3IgPSBkZWZuLmNsZWFyRXJyb3I7CgogICAgcmV0dXJuIHJlc3VsdDsKICB9Cn0pKCk7Cgo=\"></script>\n",
"<script src=\"data:application/javascript;base64,CkhUTUxXaWRnZXRzLndpZGdldCh7CiAgbmFtZTogInBsb3RseSIsCiAgdHl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BpZHMgPSBPYmplY3Qua2V5cyh4LnNlbGVjdGl6ZSk7CiAgICAgICAgCiAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBpZHMubGVuZ3RoOyBpKyspIHsKICAgICAgICAgIHZhciBjb250YWluZXIgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJkaXYiKTsKICAgICAgICAgIGNvbnRhaW5lci5pZCA9IGlkc1tpXTsKICAgICAgICAgIGNvbnRhaW5lci5zdHlsZSA9ICJ3aWR0aDogODAlOyBoZWlnaHQ6IDEwJSI7CiAgICAgICAgICBjb250YWluZXIuY2xhc3MgPSAiZm9ybS1ncm91cCBjcm9zc3RhbGstaW5wdXQtcGxvdGx5LWhpZ2hsaWdodCI7CiAgICAgICAgICAKICAgICAgICAgIHZhciBsYWJlbCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoImxhYmVsIik7CiAgICAgICAgICBsYWJlbC5mb3IgPSBpZHNbaV07CiAgICAgICAgICBsYWJlbC5pbm5lckhUTUwgPSB4LnNlbGVjdGl6ZVtpZHNbaV1dLmdyb3VwOwogICAgICAgICAgbGFiZWwuY2xhc3MgPSAiY29udHJvbC1sYWJlbCI7CiAgICAgICAgICAKICAgICAgICAgIHZhciBzZWxlY3REaXYgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJkaXYiKTsKICAgICAgICAgIHZhciBzZWxlY3QgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJzZWxlY3QiKTsKICAgICAgICAgIHNlbGVjdC5tdWx0aXBsZSA9IHRydWU7CiAgICAgICAgICAKICAgICAgICAgIHNlbGVjdERpdi5hcHBlbmRDaGlsZChzZWxlY3QpOwogICAgICAgICAgY29udGFpbmVyLmFwcGVuZENoaWxkKGxhYmVsKTsKICAgICAgICAgIGNvbnRhaW5lci5hcHBlbmRDaGlsZChzZWxlY3REaXYpOwogICAgICAgICAgZmxleC5hcHBlbmRDaGlsZChjb250YWluZXIpOwogICAgICAgIH0KICAgIC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GZvciAodmFyIGkgPSAwOyBpIDwgZ3Jwcy5sZW5ndGg7IGkrKykgewogICAgICAgICAgY3Jvc3N0YWxrLmdyb3VwKGdycHNbaV0pLnZhcigncGxvdGx5U2VsZWN0aW9uQ29sb3VyJykKICAgICAgICAgICAgLnNldChwaWNrZXIuY29sb3VycGlja2VyKCd2YWx1ZScpKTsKICAgICAgICB9CiAgICAgICAgcGlja2VyLm9uKCJjaGFuZ2UiLCBmdW5jdGlvbigpIHsKICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZ3Jwcy5sZW5ndGg7IGkrKykgewogICAgICAgICAgICBjcm9zc3RhbGsuZ3JvdXAoZ3Jwc1tpXSkudmFyKCdwbG90bHlTZWxlY3Rpb25Db2xvdXInKQogICAgICAgICAgICAgIC5zZXQocGlja2VyLmNvbG91cnBpY2tlcigndmFsdWUnKSk7CiAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgIH0KICAgIH0KICAgIAogICAgLy8gcmVtb3ZlICJzZW5kRGF0YVRvQ2xvdWQiLCB1bmxlc3MgdXNlciBoYXMgc3BlY2lmaWVkIHRoZXkgd2FudCBpdAogICAgeC5jb25maWcgPSB4LmNvbmZpZyB8fCB7fTsKICAgIGlmICgheC5jb25maWcuY2xvdWQpIHsKICAgICAgeC5jb25maWcubW9kZUJhckJ1dHRvbnNUb1JlbW92ZSA9IHguY29uZmlnLm1vZGVCYXJCdXR0b25zVG9SZW1vdmUgfHwgW107CiAgICAgIHguY29uZmlnLm1vZGVCYXJCdXR0b25zVG9SZW1vdmUucHVzaCgic2VuZERhdGFUb0Nsb3VkIik7CiAgICB9CiAgICAKICAgIC8vIGlmIG5vIHBsb3QgZXhpc3RzIHlldCwgY3JlYXRlIG9uZSB3aXRoIGEgcGFydGljdWxhciBjb25maWd1cmF0aW9uCiAgICBpZiAoIWluc3RhbmNlLnBsb3RseSkgewogICAgICAKICAgICAgdmFyIHBsb3QgPSBQbG90bHkucGxvdChncmFwaERpdiwgeCk7C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b3JraW5nPwogICAgICBncmFwaERpdi5kYXRhID0gdW5kZWZpbmVkOwogICAgICBncmFwaERpdi5sYXlvdXQgPSB1bmRlZmluZWQ7CiAgICAgIHZhciBwbG90ID0gUGxvdGx5LnBsb3QoZ3JhcGhEaXYsIHgpOwogICAgICAKICAgIH0KICAgIAogICAgLy8gVHJpZ2dlciBwbG90bHkuanMgY2FsbHMgZGVmaW5lZCB2aWEgYHBsb3RseVByb3h5KClgCiAgICBwbG90LnRoZW4oZnVuY3Rpb24oKSB7CiAgICAgIGlmIChIVE1MV2lkZ2V0cy5zaGlueU1vZGUpIHsKICAgICAgICBTaGlueS5hZGRDdXN0b21NZXNzYWdlSGFuZGxlcigicGxvdGx5LWNhbGxzIiwgZnVuY3Rpb24obXNnKSB7CiAgICAgICAgICB2YXIgZ2QgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZChtc2cuaWQpOwogICAgICAgICAgaWYgKCFnZCkgewogICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoIkNvdWxkbid0IGZpbmQgcGxvdGx5IGdyYXBoIHdpdGggaWQ6ICIgKyBtc2cuaWQpOwogICAgICAgICAgfQogICAgICAgICAgaWYgKCFQbG90bHlbbXNnLm1ldGhvZF0pIHsKICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCJVbmtub3duIG1ldGhvZCAiICsgbXNnLm1ldGhvZCk7CiAgICAgICAgICB9CiAgICAgICAgICB2YXIgYXJncyA9IFtnZF0uY29uY2F0KG1zZy5hcmdzKTsKICAgICAgICAgIFBsb3RseVttc2cubWV0aG9kXS5hcHBseShudWxsLCBhcmdzKTsKICAgICAgICB9KTsKICAgICAgfQogICAgICAKICAgICAgLy8gcGxvdGx5J3MgbWFwYm94IEFQSSBkb2Vzbid0IGN1cnJlbnRseSBzdXBwb3J0IHNldHRpbmcgYm91bmRpbmcgYm94ZXMKICAgICAgLy8gaHR0cHM6Ly93d3cubWFwYm94LmNvbS9tYXBib3gtZ2wtanMvZXhhbXB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AgIGlmICghdHJhY2UuX2lzU2ltcGxlS2V5KSB7CiAgICAgICAgICB2YXIgYXR0cnNUb0F0dGFjaCA9IFsia2V5IiwgInoiXTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgLy8gc2ltcGxlIGtleXMgZmlyZSB0aGUgd2hvbGUga2V5CiAgICAgICAgICBvYmoua2V5ID0gdHJhY2Uua2V5OwogICAgICAgICAgdmFyIGF0dHJzVG9BdHRhY2ggPSBbInoiXTsKICAgICAgICB9CiAgICAgICAgCiAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBhdHRyc1RvQXR0YWNoLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICB2YXIgYXR0ciA9IHRyYWNlW2F0dHJzVG9BdHRhY2hbaV1dOwogICAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkoYXR0cikpIHsKICAgICAgICAgICAgICAvLyBwb2ludE51bWJlciBjYW4gYmUgYW4gYXJyYXkgKGUuZy4sIGhlYXRtYXBzKQogICAgICAgICAgICAgIC8vIFRPRE86IGNhbiBwb2ludE51bWJlciBiZSAzRD8KICAgICAgICAgICAgICBvYmpbYXR0cnNUb0F0dGFjaFtpXV0gPSB0eXBlb2YgcHQucG9pbnROdW1iZXIgPT09ICJudW1iZXIiID8gCiAgICAgICAgICAgICAgICBhdHRyW3B0LnBvaW50TnVtYmVyXSA6IGF0dHJbcHQucG9pbnROdW1iZXJbMF1dW3B0LnBvaW50TnVtYmVyWzFdXTsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIG9iajsKICAgICAgfSk7CiAgICB9CiAgICAKICAgIC8vIHNlbmQgdXNlciBpbnB1dCBldmVudCBkYXRhIHRvIHNoaW55CiAgICBpZiAoSFRNTFdpZGdldHMuc2hpbnlNb2RlKSB7CiAgICAgIC8vIGh0dHBzOi8vcGxvdC5seS9qYXZhc2NyaXB0L3pvb20tZXZlbnRzLwogICAgICBncmFwaERpdi5vbigncGxvdGx5X3JlbGF5b3V0JywgZnVuY3Rpb24oZCkgewogICAgICAgIFNoaW55Lm9uSW5wdXRDaGFuZ2UoCiAgICAgICAgICAiLmNsaWVudFZhbHVlLXBsb3RseV9yZWxheW91dC0iICsgeC5zb3VyY2UsIAogICAgICAgICAgSlNPTi5zdHJpbmdpZnkoZCkKICAgICAgICApOwogICAgICB9KTsKICAgICAgZ3JhcGhEaXYub24oJ3Bsb3RseV9ob3ZlcicsIGZ1bmN0aW9uKGQpIHsKICAgICAgICBTaGlueS5vbklucHV0Q2hhbmdlKAogICAgICAgICAgIi5jbGllbnRWYWx1ZS1wbG90bHlfaG92ZXItIiArIHguc291cmNlLCAKICAgICAgICAgIEpTT04uc3RyaW5naWZ5KGV2ZW50RGF0YVdpdGhLZXkoZCkpCiAgICAgICAgKTsKICAgICAgfSk7CiAgICAgIGdyYXBoRGl2Lm9uKCdwbG90bHlfY2xpY2snLCBmdW5jdGlvbihkKSB7CiAgICAgICAgU2hpbnkub25JbnB1dENoYW5nZSgKICAgICAgICAgICIuY2xpZW50VmFsdWUtcGxvdGx5X2NsaWNrLSIgKyB4LnNvdXJjZSwgCiAgICAgICAgICBKU09OLnN0cmluZ2lmeShldmVudERhdGFXaXRoS2V5KGQpKQogICAgICAgICk7CiAgICAgIH0pOwogICAgICBncmFwaERpdi5vbigncGxvdGx5X3NlbGVjdGVkJywgZnVuY3Rpb24oZCkgewogICAgICAgIFNoaW55Lm9uSW5wdXRDaGFuZ2UoCiAgICAgICAgICAiLmNsaWVudFZhbHVlLXBsb3RseV9zZWxlY3RlZC0iICsgeC5zb3VyY2UsIAogICAgICAgICAgSlNPTi5zdHJpbmdpZnkoZXZlbnREYXRhV2l0aEtleShkKSkKICAgICAgICApOwogICAgICB9KTsKICAgICAgZ3JhcGhEaXYub24oJ3Bsb3RseV91bmhvdmVyJywgZnVuY3Rpb24oZXZlbnREYXRhKSB7CiAgICAgICAgU2hpbnkub25JbnB1dENoYW5nZSgiLmNsaWVudFZhbHVlLXBsb3RseV9ob3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ZhciBldiA9IEpTT04uc3RyaW5naWZ5KGV2ZW50KTsKICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgc2VsZWN0aW9uSGlzdG9yeS5sZW5ndGg7IGkrKykgewogICAgICAgICAgICB2YXIgc2VsID0gSlNPTi5zdHJpbmdpZnkoc2VsZWN0aW9uSGlzdG9yeVtpXSk7CiAgICAgICAgICAgIGlmIChzZWwgPT0gZXYpIHsKICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgCiAgICAgICAgLy8gYWNjdW11bGF0ZSBoaXN0b3J5IGZvciBwZXJzaXN0ZW50IHNlbGVjdGlvbgogICAgICAgIGlmICgheC5oaWdobGlnaHQucGVyc2lzdGVudCkgewogICAgICAgICAgc2VsZWN0aW9uSGlzdG9yeSA9IFtldmVudF07CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHNlbGVjdGlvbkhpc3RvcnkucHVzaChldmVudCk7CiAgICAgICAgfQogICAgICAgIGNyb3NzdGFsay52YXIoInBsb3RseVNlbGVjdGlvbkhpc3RvcnkiKS5zZXQoc2VsZWN0aW9uSGlzdG9yeSk7CiAgICAgICAgCiAgICAgICAgLy8gZG8gdGhlIGFjdHVhbCB1cGRhdGluZyBvZiB0cmFjZXMsIGZyYW1lcywgYW5kIHRoZSBzZWxlY3RpemUgd2lkZ2V0CiAgICAgICAgdHJhY2VNYW5hZ2VyLnVwZGF0ZVNlbGVjdGlvbihzZXQsIGUudmFsdWUpOwogICAgICAgIC8vIGh0dHBzOi8vZ2l0aHViLmNvbS9zZWxlY3RpemUvc2VsZWN0aXplLmpzL2Jsb2IvbWFzdGVyL2RvY3MvYXBpLm1kI21ldGhvZHNfaXRlbXMKICAgICAgICBpZiAoeC5zZWxlY3RpemUpIHsKICAgICAgICAgIGlmICgheC5oaWdobGlnaHQucGVyc2lzdGVudCB8fCBlLnZhbHVlID09PSBudWxsKSB7CiAgICAgICAgICAg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0aGUgImR5bmFtaWMgYnJ1c2ggY29sb3IiIgogICAgICAgIGlmIChkLm1hcmtlcikgewogICAgICAgICAgdHJhY2UubWFya2VyID0gdHJhY2UubWFya2VyIHx8IHt9OwogICAgICAgICAgdHJhY2UubWFya2VyLmNvbG9yID0gIHNlbGVjdGlvbkNvbG91ciB8fCB0cmFjZS5tYXJrZXIuY29sb3IgfHwgZC5tYXJrZXIuY29sb3I7CiAgICAgICAgfQogICAgICAgIGlmIChkLmxpbmUpIHsKICAgICAgICAgIHRyYWNlLmxpbmUgPSB0cmFjZS5saW5lIHx8IHt9OwogICAgICAgICAgdHJhY2UubGluZS5jb2xvciA9ICBzZWxlY3Rpb25Db2xvdXIgfHwgdHJhY2UubGluZS5jb2xvciB8fCBkLmxpbmUuY29sb3I7CiAgICAgICAgfQogICAgICAgIGlmIChkLnRleHRmb250KSB7CiAgICAgICAgICB0cmFjZS50ZXh0Zm9udCA9IHRyYWNlLnRleHRmb250IHx8IHt9OwogICAgICAgICAgdHJhY2UudGV4dGZvbnQuY29sb3IgPSAgc2VsZWN0aW9uQ29sb3VyIHx8IHRyYWNlLnRleHRmb250LmNvbG9yIHx8IGQudGV4dGZvbnQuY29sb3I7CiAgICAgICAgfQogICAgICAgIGlmIChkLmZpbGxjb2xvcikgewogICAgICAgICAgLy8gVE9ETzogc2hvdWxkIHNlbGVjdGlvbkNvbG91ciBpbmhlcml0IGFscGhhIGZyb20gdGhlIGV4aXN0aW5nIGZpbGxjb2xvcj8KICAgICAgICAgIHRyYWNlLmZpbGxjb2xvciA9IHNlbGVjdGlvbkNvbG91ciB8fCB0cmFjZS5maWxsY29sb3IgfHwgZC5maWxsY29sb3I7CiAgICAgICAgfQogICAgICAgIC8vIGF0dGFjaCBhIHNlbnNpYmxlIG5hbWUvbGVnZW5kZ3JvdXAKICAgICAgICB0cmFjZS5uYW1lID0gdHJhY2UubmFtZSB8fCBrZXlzLmpvaW4oIjxiciAvPiIpOwogICAgICAgIHRyYWNlLmxlZ2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2ldLnRyYWNlcyAqaWYqIHRoaXMgZnJhbWUgcmVmZXJlbmNlcyBzZWxlY3RlZCB0cmFjZShzKQogICAgICAgICAgdmFyIG5ld0luZGljZXMgPSBbXTsKICAgICAgICAgIGZvciAodmFyIGogPSAwOyBqIDwgdHJhY2VzLmxlbmd0aDsgaisrKSB7CiAgICAgICAgICAgIHZhciB0ciA9IHRyYWNlc1tqXTsKICAgICAgICAgICAgaWYgKF9mcmFtZXNbaV0udHJhY2VzLmluZGV4T2YodHIuX29yaWdpbmFsSW5kZXgpID4gLTEpIHsKICAgICAgICAgICAgICBuZXdJbmRpY2VzLnB1c2godHIuX25ld0luZGV4KTsKICAgICAgICAgICAgICBfZnJhbWVzW2ldLnRyYWNlcy5wdXNoKHRyLl9uZXdJbmRleCk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICAgIAogICAgICAgICAgLy8gbm90aGluZyB0byBkby4uLgogICAgICAgICAgaWYgKG5ld0luZGljZXMubGVuZ3RoID09PSAwKSB7CiAgICAgICAgICAgIGNvbnRpbnVlOwogICAgICAgICAgfQogICAgICAgICAgCiAgICAgICAgICB2YXIgY3RyID0gMDsKICAgICAgICAgIHZhciBuRnJhbWVUcmFjZXMgPSBfZnJhbWVzW2ldLmRhdGEubGVuZ3RoOwogICAgICAgICAgCiAgICAgICAgICBmb3IgKHZhciBqID0gMDsgaiA8IG5GcmFtZVRyYWNlczsgaisrKSB7CiAgICAgICAgICAgIHZhciBmcmFtZVRyYWNlID0gX2ZyYW1lc1tpXS5kYXRhW2pdOwogICAgICAgICAgICBpZiAoIWZyYW1lVHJhY2Uua2V5IHx8IGZyYW1lVHJhY2Uuc2V0ICE9PSBncm91cCkgewogICAgICAgICAgICAgIGNvbnRpbnVlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIAogICAgICAgICAgICB2YXIgbWF0Y2hGdW5jID0gZ2V0TWF0Y2hGdW5jKGZyYW1lVHJhY2UpOwogICAgICAgICAgICB2YXIgbWF0Y2hlcyA9IG1hdGNoRnVuYyhmcmFtZVRyYWNlLmtleSwga2V5cyk7CiAgICAgICAgICAgIAogICAgICAgICAgICBpZiAobWF0Y2hlcy5sZW5ndGggPiAwKSB7CiAgICAgICAgICAgICAgaWYgKCF0cmFjZS5faXNTaW1wbGVLZXkpIHsKICAgICAgICAgICAgICAgIGZyYW1lVHJhY2UgPSBzdWJzZXRBcnJheUF0dHJzKGZyYW1lVHJhY2UsIG1hdGNoZXMpOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgICB2YXIgZCA9IGdkLl9mdWxsRGF0YVtuZXdJbmRpY2VzW2N0cl1dOwogICAgICAgICAgICAgIGlmIChkLm1hcmtlcikgewogICAgICAgICAgICAgICAgZnJhbWVUcmFjZS5tYXJrZXIgPSBkLm1hcmtlcjsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgaWYgKGQubGluZSkgewogICAgICAgICAgICAgICAgZnJhbWVUcmFjZS5saW5lID0gZC5saW5lOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgICBpZiAoZC50ZXh0Zm9udCkgewogICAgICAgICAgICAgICAgZnJhbWVUcmFjZS50ZXh0Zm9udCA9IGQudGV4dGZvbnQ7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIGN0ciA9IGN0ciArIDE7CiAgICAgICAgICAgICAgX2ZyYW1lc1tpXS5kYXRhLnB1c2goZnJhbWVUcmFjZSk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICAgIAogICAgICAgICAgLy8gdXBkYXRlIGdkLl90cmFuc2l0aW9uRGF0YS5fZnJhbWVIYXNoCiAgICAgICAgICBfaGFzaFtfZnJhbWVzW2ldLm5hbWVdID0gX2ZyYW1lc1tpXTsKICAgICAgICB9CiAgICAgIAogICAgICB9KTsKICAgICAgCiAgICAgIC8vIGRpbSB0cmFjZXMgdGhhdCBoYXZlIGEgc2V0IG1hdGNoaW5nIHRoZSBzZXQgb2Ygc2VsZWN0aW9uIHNldHMKICA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gbWFyZ2luLXJpZ2h0OiBhdXRvOwp9CgouY3Jvc3N0YWxrLWlucHV0LWNoZWNrYm94Z3JvdXAgLmNyb3NzdGFsay1vcHRpb25zLWdyb3VwIC5jcm9zc3RhbGstb3B0aW9ucy1jb2x1bW4gewogIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICBwYWRkaW5nLXJpZ2h0OiAxMnB4OwogIHZlcnRpY2FsLWFsaWduOiB0b3A7Cn0KCkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDo0ODBweCkgewogIC5jcm9zc3RhbGstaW5wdXQtY2hlY2tib3hncm91cCAuY3Jvc3N0YWxrLW9wdGlvbnMtZ3JvdXAgLmNyb3NzdGFsay1vcHRpb25zLWNvbHVtbiB7CiAgICBkaXNwbGF5OiBibG9jazsKICAgIHBhZGRpbmctcmlnaHQ6IGluaGVyaXQ7CiAgfQp9Cg==\" rel=\"stylesheet\" />\n",
"<link href=\"data:text/css;charset-utf-8;base64,LyoKanVzdCBoZXJlIHNvIHRoYXQgcGxvdGx5IHdvcmtzCmNvcnJlY3RseSB3aXRoIGlvc2xpZGVzLgpzZWUgaHR0cHM6Ly9naXRodWIuY29tL3JvcGVuc2NpL3Bsb3RseS9pc3N1ZXMvNDYzCiovCgpzbGlkZTpub3QoLmN1cnJlbnQpIC5wbG90bHkuaHRtbC13aWRnZXR7CiAgZGlzcGxheTogbm9uZTsKfQo=\" rel=\"stylesheet\" />\n",
"<script src=\"data:application/javascript;base64,LyoqCiogcGxvdGx5LmpzIHYxLjM5LjIKKiBDb3B5cmlnaHQgMjAxMi0yMDE4LCBQbG90bHksIEluYy4KKiBBbGwgcmlnaHRzIHJlc2VydmVkLgoqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZQoqLwohZnVuY3Rpb24odCl7aWYoIm9iamVjdCI9PXR5cGVvZiBleHBvcnRzJiYidW5kZWZpbmVkIiE9dHlwZW9mIG1vZHVsZSltb2R1bGUuZXhwb3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Ij0iK3MrIioiK2wrIjtpPCIrYysiOysraSwiK2YrIis9IitzKyIpe3ZhciB4MD0iK3UrIlsiK2krIisiK2YrIl0seDE9Iit1KyJbIitpKyIrIitmKyIrIituKyJdLHhpPSIraCsiW2ldOyIsaz0iZm9yKHZhciBqPSIrcCsiLCIrdisiPSIrcysiKiIrcCsiO2o8IitkKyI7KytqLCIrdisiKz0iK3MrIil7dmFyIHkwPSIrZysiWyIraSsiKyIrdisiXSwiKyhyPyJ5MT0iK2crIlsiK2krIisiK3YrIisiK24rIl0sIjoiIikrInlpPSIrbSsiW2pdOyI7cmV0dXJuIHQ/Xy5wdXNoKHcseCwiOiIsayk6Xy5wdXNoKGsseCwiOiIsdykscj9fLnB1c2goImlmKHkxPHgwfHx4MTx5MCljb250aW51ZTsiKTplP18ucHVzaCgiaWYoeTA8PXgwfHx4MTx5MCljb250aW51ZTsiKTpfLnB1c2goImlmKHkwPHgwfHx4MTx5MCljb250aW51ZTsiKSxfLnB1c2goImZvcih2YXIgaz0iK2krIisxO2s8IituKyI7KytrKXt2YXIgcjA9Iit1KyJbaysiK2YrIl0scjE9Iit1KyJbaysiK24rIisiK2YrIl0sYjA9IitnKyJbaysiK3YrIl0sYjE9IitnKyJbaysiK24rIisiK3YrIl07aWYocjE8YjB8fGIxPHIwKWNvbnRpbnVlICIreCsiO312YXIgIit5KyI9IithKyIoIiksZT9fLnB1c2goInlpLHhpIik6Xy5wdXNoKCJ4aSx5aSIpLF8ucHVzaCgiKTtpZigiK3krIiE9PXZvaWQgMClyZXR1cm4gIit5KyI7fX19Iikse25hbWU6byxjb2RlOl8uam9pbigiIil9fShlLG8sdCk7ci5wdXNoKF8uY29kZSksdy5wdXNoKCJyZXR1cm4gIitfLm5hbWUrIigiK2Iuam9pbigpKyIpOyIpfXcucHVzaCgiaWYoIitjKyItIitsKyI+IitkKyItIitwKyIpeyIpLHQ/KGsoITAsITEpLHcucHVzaCgifWVsc2V7IiksayghMSwhMSkpOih3LnB1c2goImlmKC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dDtlbHNlIGlmKCh0PWcpPT09bSl7Zj8xPT09Zj9vKHQ9Yyh0LGUsciksZSxyLG4saSxoLDIpOjI9PT1mJiZ1KHQsZSxyLG4saSxoKTpvKGEodCksZSxyLG4saSxoLDEpO2JyZWFrfX19ZnVuY3Rpb24gcyh0KXt2YXIgZT10LnByZXYscj10LG49dC5uZXh0O2lmKHYoZSxyLG4pPj0wKXJldHVybiExO2Zvcih2YXIgaT10Lm5leHQubmV4dDtpIT09dC5wcmV2Oyl7aWYoZyhlLngsZS55LHIueCxyLnksbi54LG4ueSxpLngsaS55KSYmdihpLnByZXYsaSxpLm5leHQpPj0wKXJldHVybiExO2k9aS5uZXh0fXJldHVybiEwfWZ1bmN0aW9uIGwodCxlLHIsbil7dmFyIGk9dC5wcmV2LGE9dCxvPXQubmV4dDtpZih2KGksYSxvKT49MClyZXR1cm4hMTtmb3IodmFyIHM9aS54PGEueD9pLng8by54P2kueDpvLng6YS54PG8ueD9hLng6by54LGw9aS55PGEueT9pLnk8by55P2kueTpvLnk6YS55PG8ueT9hLnk6by55LGM9aS54PmEueD9pLng+by54P2kueDpvLng6YS54Pm8ueD9hLng6by54LHU9aS55PmEueT9pLnk+by55P2kueTpvLnk6YS55Pm8ueT9hLnk6by55LGg9cChzLGwsZSxyLG4pLGY9cChjLHUsZSxyLG4pLGQ9dC5wcmV2WixtPXQubmV4dFo7ZCYmZC56Pj1oJiZtJiZtLno8PWY7KXtpZihkIT09dC5wcmV2JiZkIT09dC5uZXh0JiZnKGkueCxpLnksYS54LGEueSxvLngsby55LGQueCxkLnkpJiZ2KGQucHJldixkLGQubmV4dCk+PTApcmV0dXJuITE7aWYoZD1kLnByZXZaLG0hPT10LnByZXYmJm0hPT10Lm5leHQmJmcoaS54LGkueSxhLngsYS55LG8ueCxvLnksbS54LG0ueSkmJnYobS5wcmV2LG0sbS5uZXh0KT49MClyZXR1cm4hMTttPW0ubmV4dFp9Zm9yKDtkJiZkLno+PWg7KXtpZihkIT09dC5wcmV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bQl0sVT0wO1U8MzsrK1UpIWlzTmFOKFZbVV0pJiZpc0Zpbml0ZShWW1VdKSYmKHRoaXMuYm91bmRzWzBdW1VdPU1hdGgubWluKHRoaXMuYm91bmRzWzBdW1VdLFZbVV0pLHRoaXMuYm91bmRzWzFdW1VdPU1hdGgubWF4KHRoaXMuYm91bmRzWzF
@larskuhtz
Copy link
Author

results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment