Welcome to TiddlyWiki created by Jeremy Ruston; Copyright © 2004-2007 Jeremy Ruston, Copyright © 2007-2011 UnaMesa Association
/%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/01. Знакомство с предметом/|
!!!Описание
На первом уроке мы познакомимся с предметом «Окружающий мир». Этот предмет изучает так много разных вещей, что в них можно запутаться. Мы обсудим, как разделить их на части и в каком порядке изучать.
!Дополнительно об уроке
!gallery data
{"data":[
["01 природа.jpg"],
["02 общество.jpg"],
["03 миры живого и неживого.jpg"],
["04 разделили в уме на живое и неживое.jpg"]
],
"options":{}}
!%/
|тип шага|video|
|ссылка на контент шага|https://youtu.be/JsfBUDNRrFo|
|visibleName|Знакомство с предметом|
|ссылка на контент шага|./oms/101-2/|
|тип шага|task|
|visibleName|Живое и неживое|
|ссылка на контент шага|./environment/JPG/text_01_1.jpg|
|тип шага|pager|
|visibleName|Что изучает окружающий мир|
|table of contents thumb|text_01_1.jpg|
|ссылка на контент шага|./environment/JPG/text_01_2.jpg|
|тип шага|pager|
|visibleName|Живое и неживое|
|table of contents thumb|text_01_2.jpg|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/10. Насекомые/|
!!!Описание
Зачем пчеле волосатые ноги? Чем разрисованы крылья бабочки? Почему гусеницы превращаются в куколок, а люди нет? Что ест божья коровка? Какая польза от комаров? На уроке мы ответим на все эти вопросы.
!Дополнительно об уроке
!gallery data
{"data":[
["01 ноги — таракан.jpg",null,null,null],
["02 ноги — кузнечик.jpg",null,null,null],
["03 ноги — медведка.jpg",null,null,null],
["04 ноги — пчела.jpg",null,null,null],
["05 крылья — стрекоза.jpg",null,null,null],
["06 крылья — жук.jpg",null,null,null],
["07 крылья — чешуйки бабочки.jpg",null,null,null],
["08 челюсти — жук.jpg",null,null,null],
["09 клещи.jpg",null,null,null],
["10 младенец.jpg",null,null,null],
["11 взрослый.jpg",null,null,null],
["12 старичок.jpg",null,null,null],
["13 кузнечик.jpg",null,null,null],
["14 кузнечик — жизненный цикл.jpg","",null,null],
["15 бабочка — личинка.jpg","",null,null],
["16 бабочка — жизненный цикл.jpg",null,null,null],
["17 жук-олень.jpg","","https://www.flickr.com/photos/beautiful_bugs/35161081060/","Tim Stratford"],
["18 жук-олень — личинка.jpg","","https://www.flickr.com/photos/79049846@N00/13896015687/in/photostream/","ginann"],
["19 муха взрослая.jpg","","https://www.flickr.com/photos/143758785@N04/27566834386/in/photostream/","Ilvem89"],
["20 муха — личинка.jpg","","https://www.flickr.com/photos/askop/29701791570/","Seig & Alice Kopinitz"],
["21 пчёлы — взрослые и личинки.jpg","","https://www.flickr.com/photos/147403029@N04/32501496050/","Rachael Bonoan"],
["22 пчёлы — личинки.jpg","","https://www.flickr.com/photos/timmiller11/36293911202/","tim miller"],
["23 кузнечик.jpg","","https://www.flickr.com/photos/38277036@N02/35465653602/","Helmut Issler"],
["24 кузнечик — личинка.jpg","","https://www.flickr.com/photos/diathesis/4960927232/in/photostream/","Geoffrey Wiseman"],
["25 кузнечик — взрослый и личинка.jpg","","https://www.flickr.com/photos/mohawkedgeekcris/6306609270/","Cris Ward"],
["26 стрекоза взрослая.jpg","","https://www.flickr.com/photos/jayppics/2374620891/","Jamie Peters"],
["27 стрекоза — личинка.jpg","","https://www.flickr.com/photos/ukwildlife/4651031522/","Neil Phillips"],
["28 таракан — взрослый и личинки.jpg","","https://www.flickr.com/photos/kevinjudge/8386923729/","Kevin Judge"],
["29 бабочка на цветке.jpg",null,"https://commons.wikimedia.org/wiki/File:Black-veined_white_(Aporia_crataegi)_male_underside.jpg","Charles J Sharp"],
["30 гусеница ест лист.jpg",null,"https://ru.wikipedia.org/wiki/%D0%A4%D0%B0%D0%B9%D0%BB:Unidentifiednsect9444.JPG","А. Кабанов"],
["31 платяная моль — гусеница.jpg",null,"https://commons.wikimedia.org/wiki/File:XN_Tineola_bisselliella_0.jpg","Guido Gerding"],
["32 платяная моль — бабочка.jpg",null,"https://commons.wikimedia.org/wiki/File:Tineola.bisselliella.7218.jpg","Olaf Leillinger"],
["33 платяная моль — бабочка.jpg",null,"",""],
["34 тутовый шелкопряд — бабочка.jpg",null,"https://www.flickr.com/photos/josedelgar/26207386455/in/photolist-FVRGWB-9PWFHE","Jose Delgar"],
["35 тутовый шелкопряд — гусеница.jpg",null,"https://www.flickr.com/photos/salvovasta/7286708712/","salvo vasta"],
["36 тутовый шелкопряд — куколки.jpg",null,"https://www.flickr.com/photos/komhuus/8619552850/in/album-72157632994979213/","Kenneth Moore"],
["37 тутовый шелкопряд — бабочка.jpg",null,null,null],
["38 бабочка-махаон.jpg",null,null,null],
["39 жук.jpg",null,null,null],
["40 жук-листоед.jpg",null,null,null],
["41 божья коровка.jpg",null,null,null],
["42 божья коровка.jpg",null,"http://macroid.ru/showphoto.php?photo=71684","Pinochet_A"],
["43 тля.jpg",null,"https://commons.wikimedia.org/wiki/File:Aphidoidea_puceron_Luc_Viatour.jpg","Luc Viatour"],
["44 колорадский жук вредит растениям.jpg",null,"",""],
["45 колорадский жук.jpg",null,"https://www.flickr.com/photos/76790273@N07/14185494411/in","Matt Bertone"],
["47 жук-короед.jpg",null,null,null],
["46 жук-короед.jpg",null,null,null],
["48 ходы жука-короеда.jpg",null,"https://www.flickr.com/photos/robertporter/3725972936/","Robert Porter"],
["49 оса.jpg",null,"https://www.flickr.com/photos/96675437@N06/9840220573/","CLIVE SLACK"],
["50 шмель.jpg",null,"",""],
["51 шмель.jpg",null,null,null],
["52 пчела.jpg",null,null,null],
["53 шершень.jpg",null,"https://www.flickr.com/photos/35065955@N06/6208113686/in/photolist-asAcUS","mark eden"],
["54 муравей.jpg",null,"",""],
["55 муравьи.jpg",null,"https://fotki.yandex.ru/users/woodmen19/","Владимир Брюхов"],
["56 пчела за прилавком.jpg",null,"",""],
["57 муха.jpg",null,"",""],
["58 муха.jpg",null,"https://fotki.yandex.ru/users/woodmen19/","Владимир Брюхов"],
["59 комар.jpg",null,null,null],
["60 комар.jpg",null,"http://insecta.pro/gallery/47554","Vladimir Bryukhov"]
],
"options":{}}
!%/
|visibleName|Насекомые|
|ссылка на контент шага|https://youtu.be/C4FFqjmZvaw|
|тип шага|video|
|visibleName|Насекомые|
|ссылка на контент шага|./oms/110-4/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_10_1.jpg|
|тип шага|pager|
|visibleName|Строение насекомых|
|table of contents thumb|text_10_1.jpg|
|ссылка на контент шага|./environment/JPG/text_10_2.jpg|
|тип шага|pager|
|visibleName|Жизнь насекомых|
|table of contents thumb|text_10_2.jpg|
|ссылка на контент шага|./environment/JPG/text_10_3.jpg|
|тип шага|pager|
|visibleName|Бабочки и жуки|
|table of contents thumb|text_10_3.jpg|
|ссылка на контент шага|./environment/JPG/text_10_4.jpg|
|тип шага|pager|
|visibleName|Осы, муравьи, мухи, комары|
|table of contents thumb|text_10_4.jpg|
|ссылка на материал|./environment/PDF/10-Насекомые-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,3 Мб|
|ссылка на материал|./environment/PDF_2/10-Насекомые-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|232 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/11. Иглокожие/|
!!!Описание
В последнем районе беспозвоночных животных, который мы посетим, проживают морские звёзды и их родственники.
!Дополнительно об уроке
!gallery data
{"data":[
["01 морская звезда.jpg",null,null,null],
["02 морская звезда.jpg",null,"https://www.flickr.com/photos/7916953@N06/2143055030","Charlene-SJ"],
["03 морская звезда.jpg",null,"https://www.flickr.com/photos/52718268@N02/5470287959","mentos2"],
["04 ножки морской звезды.jpg",null,"https://www.flickr.com/photos/akiramedia/302125381","Richard Perry"],
["05 ножки морской звезды.jpg",null,"",""],
["06 морские звёзды вокруг России.jpg",null,"",""],
["07 морской ёж.jpg",null,"",""],
["08 карандашный морской ёж.jpg",null,"",""],
["09 карандашный морской ёж.jpg",null,"https://www.flickr.com/photos/usfwspacific/4967557671","USFWS - Pacific Region"],
["10 колючий морской ёж.jpg",null,"https://commons.wikimedia.org/wiki/File:Sea_Urchin_in_Shedd_Aquarium_(Chicago,_IL)_28Nov07.JPG","Ingvar-fed"],
["11 офиура.jpg",null,"",""],
["12 офиура.jpg",null,"https://commons.wikimedia.org/wiki/File:Brittle_starfish_in_kona.jpg","Brocken Inaglory"],
["13 офиура.jpg",null,"https://en.wikipedia.org/wiki/File:Expl2319_-_Flickr_-_NOAA_Photo_Library.jpg","Lophelia II 2010 Expedition, NOAA-OER/BOEMRE."],
["14 офиура.jpg",null,"https://commons.wikimedia.org/wiki/File:Sanc0448_-_Flickr_-_NOAA_Photo_Library.jpg","G.P. Schmahl, Sanctuary Superintendent. Credit: NOAA/NOS/NMS/FGBNMS\nNational Marine Sanctuaries Media Library"],
["15 офиура.jpg",null,"https://www.flickr.com/photos/dkeats/21349603975","Derek Keats"],
["16 голотурия.jpg",null,"",""],
["17 голотурия.jpg",null,"https://commons.wikimedia.org/wiki/File:Sea_Cucumber_(16847202237).jpg","NOAA's National Ocean Service"],
["18 трепанг.jpg",null,"",""],
["19 трепанг.jpg",null,"https://www.flickr.com/photos/117278953@N05/12586405993","VNIRO PHOTO"],
["20 морская лилия.jpg",null,null,null]
],
"options":{}}
!%/
|visibleName|Иглокожие|
|тип шага|video|
|ссылка на контент шага|https://youtu.be/rdvdu1AkZR0|
|visibleName|У кого сколько ног?|
|ссылка на контент шага|./oms/111-2/|
|тип шага|task|
|ссылка на контент шага|./oms/111-5/|
|тип шага|task|
|visibleName|Иглокожие|
|ссылка на контент шага|./environment/JPG/text_11_1.jpg|
|тип шага|pager|
|visibleName|Морские звёзды и ежи|
|table of contents thumb|text_11_1.jpg|
|ссылка на контент шага|./environment/JPG/text_11_2.jpg|
|тип шага|pager|
|visibleName|Офиуры, голотурии и морские лилии|
|table of contents thumb|text_11_2.jpg|
|ссылка на материал|./environment/PDF/11-Иглокожие-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,3 Мб|
|ссылка на материал|./environment/PDF_2/11-Иглокожие-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|132 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/12. Позвоночные. Рыбы/|
!!!Описание
Мы переходим к позвоночным животным. Сначала обсудим, куда мы попали и с кем нам предстоит познакомиться. А затем поговорим о рыбах: что у них общего, чем они питаются, какую пользу приносят людям?
!gallery data
{"data":[
["01 рыба.jpg",null,null,null],
["02 рыба.jpg",null,null,null],
["03 рыба.jpg",null,null,null],
["04 рыба.jpg",null,null,null],
["05 хрящевая рыба.jpg",null,null,null],
["06 акула.jpg",null,null,null],
["07 акула зубы.jpg",null,"https://www.flickr.com/photos/slimeslayer/2477022372","slimeslayer"],
["08 чешуя акулы.jpg",null,"https://www.livescience.com/18385-shark-skin-mini-whirlpools.html","George Lauder, Johannes Oeffner"],
["09 скат.jpg",null,"https://commons.wikimedia.org/wiki/File:Torpedo_torpedo_corsica2.jpg","Roberto Pillon"],
["10 толстолобик.jpg",null,"http://www.hlasek.com/aristichthys_nobilis1pl.html","lubomir hlasek"],
["11 ёрш.jpg",null,"https://www.flickr.com/photos/127191993@N04/15746462188/","Jack Perks"],
["12 щука.jpg",null,"https://commons.wikimedia.org/wiki/File:Esox_Lucius.JPG","Georg Mittenecker"],
["13 окунь.jpg",null,"https://commons.wikimedia.org/wiki/File:PercheCommune.jpg","Dgp.martin"],
["14 сом.jpg",null,"https://commons.wikimedia.org/wiki/File:Silurus_glanis_02.jpg","Dieter Florian"],
["15 сельдь.jpg",null,"https://commons.wikimedia.org/wiki/File:Herringadultkils.jpg","Kils"],
["16 треска.jpg",null,"https://www.flickr.com/photos/per-barbro/3835549393/","per-barbro"],
["17 мы едим рыбу.jpg",null,"",""],
["18 икра.jpg",null,"",""],
["19 рыбий жир.jpg",null,"",""],
["20 витамин Д.jpg",null,"",""],
["21 рыба ест водоросли.jpg","Рыба ест водоросли","",""],
["22 пруд в тине.jpg",null,"http://images.esosedi.org/tina_v_prudu/38899540/index.html#lat=47322388&lng=39777760&z=15&mt=1&v=1","EkRoshe"]
],
"options":{}}
!%/
|visibleName|Позвоночные. Рыбы|
|ссылка на контент шага|https://youtu.be/RoOglDlxnvw|
|тип шага|video|
|ссылка на контент шага|./oms/112-3/|
|тип шага|task|
|visibleName|Польза рыб|
|ссылка на контент шага|./environment/JPG/text_12_1.jpg|
|тип шага|pager|
|visibleName|Позвоночные|
|table of contents thumb|text_12_1.jpg|
|ссылка на контент шага|./environment/JPG/text_12_2.jpg|
|тип шага|pager|
|visibleName|Рыбы|
|table of contents thumb|text_12_2.jpg|
|ссылка на материал|./environment/PDF/12-Позвоночные_Рыбы-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|2,3 Мб|
|ссылка на материал|./environment/PDF_2/12-Позвоночные_Рыбы-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|116 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/13. Земноводные/|
!!!Описание
От рыб мы переходим к земноводным — родственника лягушки. Давайте разберёмся, удобно ли это: жить и на суше, и в воде?
!%//%
!gallery data
{"data":[
["01 лягушка.jpg",null,null,null],
["02 лягушка в воде и на суше.jpg",null,null,null],
["03 головастик.jpg",null,null,null],
["04 головастик.jpg",null,"https://www.flickr.com/photos/21886313@N00/6203550945","Chris Hall"],
["05 икра в воде.jpg",null,"",""],
["06 головастики в воде.jpg",null,"",""],
["07 лёгкие.jpg",null,"",""],
["08 лягушка.jpg",null,"https://en.wikipedia.org/wiki/File:Rana_esculenta_on_Nymphaea_edit.JPG","Grand-Duc, Niabot"],
["09 жаба.jpg",null,"",""],
["10 жаба.jpg",null,"https://www.flickr.com/photos/pecosvalleydiamond/8484866658","Pecos Valley Diamond"],
["11 жаба со слизнем.jpg",null,"https://www.flickr.com/photos/36837931@N04/18754297615","Bored Koi"],
["12 жаба в бугорках.jpg",null,"https://www.flickr.com/photos/wayuu/5617691066","Ratatusk"],
["13 жаба в бугорках.jpg",null,"https://www.flickr.com/photos/aldovanzeeland/6012774682","A. v. Z."],
["14 домик для жабы.jpg",null,"",""],
["15 домик для жабы.jpg",null,"https://www.flickr.com/photos/enchanticals/5591089721/","Enchanticals ~I'm Coming Back"],
["16 тритон.jpg",null,"https://www.flickr.com/photos/folgeschaden/7408931664","Heiko Wayne"],
["17 саламандра.jpg",null,"https://www.flickr.com/photos/alcedowildlifecom/14687754721","Boris Belchev"],
["18 саламандра.jpg",null,"https://www.flickr.com/photos/94125618@N03/11543472393","Lucas Gutiérrez Jiménez"],
["19 саламандра.jpg",null,"https://www.flickr.com/photos/54349954@N05/5119802963","nocko10"],
["20 саламандра.jpg",null,null,null],
["21 ящерица.jpg",null,null,null]
],
"options":{}}
!%/
|visibleName|Земноводные|
|ссылка на контент шага|https://youtu.be/j3EMDzZph7Q|
|тип шага|video|
|visibleName|Накорми лягушку|
|ссылка на контент шага|./oms/113-1/|
|тип шага|task|
|visibleName|Земноводные|
|ссылка на контент шага|./oms/113-3/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_13_1.jpg|
|тип шага|pager|
|visibleName|Кто такие земноводные|
|table of contents thumb|text_13_1.jpg|
|ссылка на контент шага|./environment/JPG/text_13_2.jpg|
|тип шага|pager|
|visibleName|Разнообразие земноводных|
|table of contents thumb|text_13_2.jpg|
|ссылка на материал|./environment/PDF/13-Земноводные-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,2 Мб|
|ссылка на материал|./environment/PDF_2/13-Земноводные-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|140 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/14. Пресмыкающиеся/|
!!!Описание
Пресмыкающиеся — это родственники ящерицы. Правда, на вид они мало похожи друг на друга. У одних совсем нет ног. У других кости растут не только внутри, но и снаружи тела. А третьи умеют менять свой цвет, когда захотят.
!%//%
!gallery data
{"data":[
["01 ящерица.jpg",null,null,null],
["02 яйца.jpg",null,null,null],
["03 яйцо с детёнышем.jpg",null,null,null],
["04 прыткая ящерица.jpg",null,"https://www.flickr.com/photos/55112887@N04/7902832766","Marian Dragiev"],
["05 прыткая ящерица.jpg",null,"https://www.flickr.com/photos/cobby31/14203219811","paul"],
["06 агама.jpg",null,"https://www.flickr.com/photos/ivl_wildlife_photography/17905470925","Ingeborg van Leeuwen"],
["07 круглоголовка.jpg",null,"https://commons.wikimedia.org/wiki/File:Phrynocephalus_mystaceus.jpg","Antoshin Konstantin"],
["08 геккон.jpg",null,"https://www.flickr.com/photos/oceanearth/4851832478","coastalcreature"],
["09 хамелеон.jpg",null,"",""],
["10 хамелеон.jpg",null,"",""],
["11 хамелеон.jpg",null,"https://www.flickr.com/photos/mshehan/6993118879","Michael Shehan Obeysekera"],
["12 хамелеон.jpg",null,"https://www.flickr.com/photos/robert-kryszat/9244604255","SofteisBoy"],
["13 змея.jpg",null,"https://www.flickr.com/photos/bobbybinguis/2717780111","photoluver1"],
["14 змея.jpg",null,"https://www.flickr.com/photos/7782955@N02/3428423997","Matt Mercier"],
["15 гадюка.jpg",null,"https://www.flickr.com/photos/partystalker/8700549637","Paul van Oudheusden"],
["16 гадюка.jpg",null,"https://www.flickr.com/photos/31371458@N06/2961483158","Greg"],
["17 змеиный яд.jpg",null,"",""],
["18 крокодил.jpg",null,"",""],
["19 крокодил.jpg",null,"https://www.flickr.com/photos/laurentis/2077729327","laurent KB"],
["20 ботинки из кожи крокодила.jpg",null,"",""],
["21 черепаха.jpg",null,"",""],
["22 наземная черепаха.jpg",null,"https://www.flickr.com/photos/23682965@N00/4676286911","Curtis Brandt"],
["23 черепаха водная.jpg",null,"https://www.flickr.com/photos/matt9122/9578211470","Matt Heath"],
["24 черепаха морская.jpg",null,"https://www.flickr.com/photos/zzathras777/5591862993","david reid"],
["25 гребень из панциря церепахи copy.jpg","Гребень из панциря черепахи","",""],
["26 панцирь.jpg",null,"https://www.flickr.com/photos/tim_s_g/14026149260","Timothy George"]
],
"options":{}}
!%/
|visibleName|Пресмыкающиеся|
|ссылка на контент шага|https://youtu.be/sdV9i8z4eKo|
|тип шага|video|
|ссылка на контент шага|./oms/114-1/|
|visibleName|Пресмыкающиеся|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_14_1.jpg|
|тип шага|pager|
|visibleName|Ящерицы, крокодилы и змеи|
|table of contents thumb|text_14_1.jpg|
|ссылка на контент шага|./environment/JPG/text_14_2.jpg|
|тип шага|pager|
|visibleName|Хамелеоны и черепахи|
|table of contents thumb|text_14_2.jpg|
|ссылка на материал|./environment/PDF/14-Пресмыкающиеся-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|720 Кб|
|ссылка на материал|./environment/PDF_2/14-Пресмыкающиеся-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|126 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/15. Птицы/|
!!!Описание
На этом уроке мы обсудим, зачем утке плоский клюв, а павлину — разноцветный хвост, и почему длинные ласточкины крылья не подойдут воробью. А ещё поговорим о жизни перелётных птиц и о пользе, которую они приносят человеку.
!%//%
!gallery data
{"data":[
["01 гнездо и яйца.jpg",null,null,null],
["02 яйцо пресмыкающегося.jpg",null,null,null],
["03 клюв.jpg",null,null,null],
["04 клюв черепахи.jpg",null,null,null],
["05 перо.jpg",null,null,null],
["06 воробей.jpg",null,null,null],
["07 воробей.jpg",null,"https://www.flickr.com/photos/ronatka/16117777461","Natalia Romanenko"],
["08 зяблик.jpg",null,"https://www.flickr.com/photos/96601035@N07/16774217323","Сашкин Сад"],
["09 трясогузка.jpg",null,"https://www.flickr.com/photos/anatoly201011/7091132949","Anatoly haritonov"],
["10 чиж.jpg",null,"https://www.flickr.com/photos/inga_b/8549031287","inga_art"],
["11 чиж.jpg",null,"",""],
["12 синица.jpg",null,"",""],
["13 синица.jpg",null,"https://www.flickr.com/photos/96601035@N07/13897930413","Сашкин Сад"],
["14 соловей.jpg",null,"",""],
["15 дрозд и воробей.jpg",null,"https://www.flickr.com/photos/philwinter/19371335554","Phil Winter"],
["16 ворон.jpg",null,"https://www.flickr.com/photos/122462638@N08/16071963837","Squ ier"],
["17 дрозд.jpg",null,"https://www.flickr.com/photos/minoltoved/17147652842/","minoltoved"],
["18 галка.jpg",null,"https://www.flickr.com/photos/steinarnejensen/7590037750","Stein Arne Jensen"],
["19 грач.jpg",null,"https://www.flickr.com/photos/moonraker2012/16537435046","Pam"],
["20 ворона.jpg",null,"https://www.flickr.com/photos/kavas/17103039790","hkavas"],
["21 ворона.jpg",null,"",""],
["22 орёл.jpg",null,"",""],
["23 сова.jpg",null,"",""],
["24 сова.jpg",null,"https://www.flickr.com/photos/awardphotographs/14578330618","neil ward"],
["25 сыч.jpg",null,"https://www.flickr.com/photos/donbaloglu/4733494525","Volkan Donbaloglu"],
["26 филин.jpg",null,"https://www.flickr.com/photos/59678053@N08/11979730296","Glenn.B"],
["27 чайка.jpg",null,"",""],
["28 утка.jpg",null,"https://www.flickr.com/photos/tim_a/2529058627","Tim Archibald"],
["29 гусь.jpg",null,"",""],
["30 гусь.jpg",null,"https://www.flickr.com/photos/8736453@N02/6350642535","Croydon Nikon User"],
["31 лебедь.jpg",null,"https://www.flickr.com/photos/shannon-s/13760957445","Shannon-S"],
["32 плоский утиный клюв.jpg",null,"https://www.flickr.com/photos/taras_tsyurka/6148645901","Taras Tsyurka"],
["33 журавль.jpg",null,"",""],
["34 журавль.jpg",null,"https://www.flickr.com/photos/107784905@N04/10727994654","Patrick MONNEY"],
["35 страус.jpg",null,"",""],
["36 страус.jpg",null,"https://www.flickr.com/photos/paulinemarcus/8524963453","Pauline Pham"],
["37 пингвин.jpg",null,"",""],
["38 ласточка.jpg",null,"https://www.flickr.com/photos/philwinter/27843703272","Phil Winter"],
["39 ласточка.jpg",null,"",""],
["40 стриж.jpg",null,"https://www.flickr.com/photos/63021221@N05/26540549604/","dmore10"],
["41 широкие крылья.jpg",null,"https://www.flickr.com/photos/bits_n_bobs/8462511393/","Jamie"],
["42 крылья ласточки.jpg",null,"https://www.flickr.com/photos/51013318@N06/7130953507","Mandy West"],
["43 крылья воробья и ласточки.jpg",null,"",""],
["44 ласточка в городе.jpg",null,"https://www.flickr.com/photos/skavak/4946253066","Stamos Kavakakis"],
["45 курица.jpg",null,"",""],
["46 павлин.jpg",null,"https://www.flickr.com/photos/92325053@N02/13756176824","Ballet Queen2013"],
["47 павлин.jpg",null,"",""],
["48 пава.jpg",null,"",""],
["49 рябчик.jpg",null,"https://www.flickr.com/photos/tsunomi/5924879298","kkdemien"],
["50 фазан.jpg",null,"https://www.flickr.com/photos/aljones27/9193687965","Al"],
["51 перепел.jpg",null,"https://www.flickr.com/photos/107784905@N04/16256173280","Patrick MONNEY"],
["52 глухарь.jpg",null,"https://www.flickr.com/photos/73017999@N05/6858087951","Jamie MacArthur"],
["53 тетерев.jpg",null,"https://www.flickr.com/photos/water_rail/6895445968","Mark Hope"],
["54 перелётные птицы.jpg",null,null,null]
],
"options":{}}
!%/
|ссылка на контент шага|./oms/115-1/|
|тип шага|task|
|visibleName|Признаки птиц|
|visibleName|Птицы|
|ссылка на контент шага|https://youtu.be/uNHvDAFhXVw|
|тип шага|video|
|ссылка на контент шага|./oms/115-7/|
|тип шага|task|
|visibleName|Воробей и его родственники|
|ссылка на контент шага|./environment/JPG/text_15_1.jpg|
|тип шага|pager|
|visibleName|Признаки птиц|
|table of contents thumb|text_15_1.jpg|
|ссылка на контент шага|./environment/JPG/text_15_2.jpg|
|тип шага|pager|
|visibleName|Родственники воробьёв и кур|
|table of contents thumb|text_15_2.jpg|
|ссылка на контент шага|./environment/JPG/text_15_3.jpg|
|тип шага|pager|
|visibleName|Хищные и быстрые|
|table of contents thumb|text_15_3.jpg|
|ссылка на контент шага|./environment/JPG/text_15_4.jpg|
|тип шага|pager|
|visibleName|Птицы, связанные с водой|
|table of contents thumb|text_15_4.jpg|
|ссылка на материал|./environment/PDF/15-Птицы-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|2,4 Мб|
|ссылка на материал|./environment/PDF_2/15-Птицы-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|69 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/16. Млекопитающие, часть 1/|
!!!Описание
Мы переходим к зверям, или млекопитающим. Первый урок по этой теме посвящён родственникам мыши — грызунам, а ещё тем, кого иногда с грызунами путают. Мы расскажем, чем зайцы отличаются от кроликов, зачем бобр грызёт деревья и стоит ли заводить дома ежа.
!gallery data
{"data":[
["01 млекопитающие.jpg",null,null,null],
["02 шерсть.jpg",null,null,null],
["03 мышь.jpg",null,null,null],
["04 хомяк.jpg",null,null,null],
["05 хомяк.jpg",null,"https://www.flickr.com/photos/karinology/5594467755/","Karin"],
["06 морская свинка.jpg",null,"https://www.flickr.com/photos/xris74/5873720981","Christoph Pfeilstücker"],
["07 белка.jpg",null,"https://www.flickr.com/photos/thartz00/4847486629/","likeaduck"],
["08 бобр.jpg",null,"",""],
["09 бобр.jpg",null,"https://www.flickr.com/photos/bryndavies/3879874852/","Bryn Davies"],
["10 бобровая нора.jpg",null,"https://www.flickr.com/photos/54496854@N08/15357678718/","mari subb"],
["11 хатка бобра.jpg",null,null,null],
["12 бобровая плотина.jpg",null,"https://www.flickr.com/photos/kirilka/8716344205/","Eu Kos"],
["13 бобровая плотина.jpg",null,"https://www.flickr.com/photos/eukos/5657190608/","kirilka"],
["14 летучая мышь.jpg",null,null,null],
["15 летучая мышь.jpg",null,"https://www.flickr.com/photos/37577693@N04/3934209326/","Michael Pennay"],
["16 летучая мышь.jpg",null,"https://www.flickr.com/photos/erick-rebaya17/9686092675/","Erick Rincones"],
["17 летучая мышь.jpg",null,"https://www.flickr.com/photos/133921734@N07/20821477275/","Christine Marshall"],
["18 рукокрылое с фруктом.jpg",null,null,null],
["19 летучая мышь — вампир.jpg",null,"https://www.flickr.com/photos/chasingtimestudio/5021556965","david"],
["20 заяц.jpg",null,null,null],
["21 заяц.jpg",null,"https://www.flickr.com/photos/104435644@N07/17012349530/","Jacqueline Read"],
["22 заяц.jpg",null,"https://www.flickr.com/photos/cbclove/4371004422/","cbclove"],
["23 заячья еда — ветка.jpg",null,null,null],
["24 морковка.jpg",null,null,null],
["25 кролик.jpg",null,null,null],
["26 заяц в лесу.jpg",null,null,null],
["27 кролик на полянке.jpg",null,null,null],
["28 ёж.jpg",null,null,null],
["29 крот.jpg",null,null,null],
["30 крот.jpg",null,"https://www.flickr.com/photos/16177003@N03/14473068825/","charlie.syme"],
["31 лапы крота.jpg",null,"https://www.flickr.com/photos/38914118@N04/6809682638/","Nottinghamshire Wildlife Trust"]
],
"options":{}}
!%/
|visibleName|Млекопитающие, часть 1|
|ссылка на контент шага|https://youtu.be/fbkhtGNQPFg|
|тип шага|video|
|ссылка на контент шага|./oms/116-1/|
|тип шага|task|
|visibleName|Признаки птиц и зверей|
|ссылка на контент шага|./oms/116-3/|
|тип шага|task|
|visibleName|Звери на обеде|
|ссылка на контент шага|./environment/JPG/text_16_1.jpg|
|тип шага|pager|
|visibleName|Признаки млекопитающих|
|table of contents thumb|text_16_1.jpg|
|ссылка на контент шага|./environment/JPG/text_16_2.jpg|
|тип шага|pager|
|visibleName|Грызуны|
|table of contents thumb|text_16_2.jpg|
|ссылка на контент шага|./environment/JPG/text_16_3.jpg|
|тип шага|pager|
|visibleName|Зайцы, кролики и летучие мыши|
|table of contents thumb|text_16_3.jpg|
|ссылка на материал|./environment/PDF/16-Млекопитающие_часть_1-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|792 Кб|
|ссылка на материал|./environment/PDF_2/16-Млекопитающие_часть_1-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|119 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/17. Млекопитающие, часть 2/|
!!!Описание
Чем хорошо ходить на цыпочках? Чем плохо быть самым большим? Как отрастить пять рук? Кто из зверей самый близкий родственник человека? Разбираемся с этими вопросами в последнем уроке о царстве животных.
!Дополнительно об уроке
!gallery data
{"data":[
["01 стопа человека.jpg",null,null,null],
["02 стопа.jpg",null,null,null],
["03 стопа.jpg",null,null,null],
["04 стопа.jpg",null,null,null],
["05 стопа.jpg",null,null,null],
["06 стопа.jpg",null,null,null],
["07 стопа.jpg",null,null,null],
["08 копыто.jpg",null,null,null],
["09 раздвоенное и цельное копыто.jpg",null,null,null],
["10 подкова.jpg",null,null,null],
["11 раздвоенная подкова.jpg",null,null,null],
["12 лошадь.jpg",null,"https://www.flickr.com/photos/anotherpintplease/4619787856","Mike"],
["13 зебра.jpg",null,"https://www.flickr.com/photos/97959197@N08/14581785461","Alexey Goosev"],
["14 осёл.jpg",null,"https://www.flickr.com/photos/lhoon/4843790350","LHOON"],
["15 носорог.jpg",null,"https://www.flickr.com/photos/76627744@N08/15054659032","Sandsteiner"],
["16 носорог.jpg",null,"https://www.flickr.com/photos/27566485@N02/26238917286","RAHUL SHARMA"],
["17 олень.jpg",null,"",""],
["18 олень.jpg",null,"https://www.flickr.com/photos/sulkyblue/8106359142","Lorna Robinson"],
["19 лось.jpg",null,"https://www.flickr.com/photos/canopic/3008803928","canopic"],
["20 бегемот.jpg",null,"",""],
["21 бегемот.jpg",null,"https://www.flickr.com/photos/cmlburnett/2416465939","Colin Burnett"],
["22 свинья.jpg",null,"",""],
["23 свинья.jpg",null,"https://www.flickr.com/photos/verifex/2974222464","verifex"],
["24 жираф.jpg",null,"",""],
["25 жираф.jpg",null,"https://www.flickr.com/photos/55454198@N00/15266770622","Kendra"],
["26 кошка.jpg",null,"",""],
["27 собака.jpg",null,"",""],
["28 тигр.jpg",null,"https://www.flickr.com/photos/129200875@N05/17265759046","Robert Campbell"],
["29 лев.jpg",null,"https://www.flickr.com/photos/9437621@N05/15938084751","picqero"],
["30 леопард.jpg",null,"https://www.flickr.com/photos/119073906@N08/12852606724","Gunnar Nilsson"],
["31 гепард.jpg",null,"https://www.flickr.com/photos/87423022@N08/8657495628","Roy Lee"],
["32 волк.jpg",null,"https://www.flickr.com/photos/81710321@N08/9148112081","Christina Catlin-Groves"],
["33 лиса.jpg",null,"https://www.flickr.com/photos/7482089@N04/5973756387","Kevin Agar"],
["34 шакал.jpg",null,"https://www.flickr.com/photos/zuliebear/6078828920","Dianne Erskine-Hellrigel"],
["35 бурый медведь.jpg",null,"https://www.flickr.com/photos/tomblandford/8412754546/","Tom Blandford"],
["36 белый медведь.jpg",null,"https://www.flickr.com/photos/andy999/6109954125/","Andy Silver"],
["37 гиена.jpg",null,"https://www.flickr.com/photos/125118261@N05/14662196162","Lily Johnson-Ulrich"],
["38 куница.jpg",null,"https://www.flickr.com/photos/canon_chas/9058263334","Chas Moonie"],
["39 горностай.jpg",null,"https://www.flickr.com/photos/40798812@N03/4629477653","Moira Fenner"],
["40 енот.jpg",null,"https://www.flickr.com/photos/efraserc/5695232644","Eve Fraser-Corp"],
["41 морж.jpg",null,"https://www.flickr.com/photos/just_absurd/5182714048","just_absurd"],
["42 тюлень под водой.jpg",null,"https://www.flickr.com/photos/21563921@N03/37914785654/","Jo Ward"],
["43 синий кит.jpg",null,"",""],
["44 дельфин.jpg",null,"",""],
["45 косатка.jpg",null,"https://www.flickr.com/photos/toryjk/4684188254","Tory Kallman"],
["46 белуха.jpg",null,"https://www.flickr.com/photos/modatogms/10534212046/","Modato Gms"],
["47 синий кит под водой.jpg",null,"https://www.flickr.com/photos/tony_brown/8057860059/","Tony Brown"],
["48 слон.jpg",null,"",""],
["49 слоны.jpg",null,"https://www.flickr.com/photos/zeeyolqpictures/25792173096/","Yoann JEZEQUEL"],
["50 горилла.jpg",null,"https://www.flickr.com/photos/13216860@N00/519528983/","Fiona Potts"],
["51 орангутан.jpg",null,"https://www.flickr.com/photos/29576042@N02/4968587492/","tomh260"],
["52 шимпанзе.jpg",null,"https://www.flickr.com/photos/jonathanjmackintosh/113851445/","Jonathan J Mackintosh"]
],
"options":{}}
!%/
|visibleName|Млекопитающие, часть 2|
|ссылка на контент шага|https://youtu.be/3EfGvwuF77o|
|тип шага|video|
|visibleName|Рыбы и китообразные|
|ссылка на контент шага|./oms/117-4/|
|тип шага|task|
|visibleName|Млекопитающие|
|ссылка на контент шага|./oms/117-5/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_17_1.jpg|
|тип шага|pager|
|visibleName|Копытные|
|table of contents thumb|text_17_1.jpg|
|ссылка на контент шага|./environment/JPG/text_17_2.jpg|
|тип шага|pager|
|visibleName|Хищные и китообразные|
|table of contents thumb|text_17_2.jpg|
|ссылка на материал|./environment/PDF/17-Млекопитающие_часть_2-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|961 Кб|
|ссылка на материал|./environment/PDF_2/17-Млекопитающие_часть_2-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|153 Кб|
<<lessonAdminPanel>>/%
|visibleName|18. Знакомство с растениями|
|galleryFolder|environment/galleries/18. Знакомство с растениями/|
!!!Описание
Мы переходим в новое царство — к растениям! Давайте обсудим, чем жители этого царства отличаются от остальных.
!%//%
!gallery data
{"data":[
["01 растения растут всю жизнь.jpg"],
["02 клубника — рост.jpg"],
["03 клубника — листья отмирают.jpg"],
["04 растения не двигаются.jpg"],
["05 схема фотосинтеза.jpg"],
["06 цепь питания.jpg"]
],
"options":{}}
!%/
|visibleName|Знакомство с растениями|
|ссылка на контент шага|https://youtu.be/haH5vZFbCKE|
|тип шага|video|
|visibleName|Признаки растений|
|ссылка на контент шага|./oms/118-1/|
|тип шага|task|
|visibleName|Фотосинтез|
|ссылка на контент шага|./oms/118-2/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_18_1.jpg|
|тип шага|pager|
|visibleName|Признаки растений|
|table of contents thumb|text_18_1.jpg|
|ссылка на контент шага|./environment/JPG/text_18_2.jpg|
|тип шага|pager|
|visibleName|Фотосинтез|
|table of contents thumb|text_18_2.jpg|
|ссылка на материал|./environment/PDF/18-Знакомство_с_растениями-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|740 Кб|
|ссылка на материал|./environment/PDF_2/18-Знакомство_с_растениями-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|231 Кб|
|visibleName|19. Строение растений|
|galleryFolder|environment/galleries/19. Строение растений/|
<<lessonAdminPanel>>/%
!!!Описание
Разбираемся, из каких основных частей состоят растения и зачем им эти части нужны.
!%//%
!gallery data
{"data":[
["01 условное растение.jpg",null,null,null],
["02 корни.jpg",null,null,null],
["03 корни от веток (баньян).jpg",null,"https://www.flickr.com/photos/125156797@N04/14940770851","Karthikeyan Perumal"],
["04 корни-зацепки (плющ).jpg",null,"https://www.flickr.com/photos/khnumhotep/13645804004","Khnum-hotep"],
["05 соли.jpg",null,null,null],
["06 стебель-лифт поднимает воду.jpg",null,null,null],
["07 стебель спускает питательные вещества.jpg",null,null,null],
["08 жизненные формы.jpg",null,null,null],
["09 цветок и плод.jpg",null,null,null],
["10 плод.jpg",null,null,null],
["11 плод с семенами-колясочками.jpg",null,null,null],
["12 нецветковое растение.jpg",null,null,null],
["13 нецветковое растение.jpg",null,null,null]
],
"options":{}}
!%/
|visibleName|Строение растений|
|ссылка на контент шага|https://youtu.be/BxtPCA-T-uM|
|тип шага|video|
|ссылка на контент шага|./oms/119-1/|
|тип шага|task|
|visibleName|Строение растений|
|ссылка на контент шага|./oms/119-2/|
|тип шага|task|
|visibleName|Строение растений|
|ссылка на контент шага|./oms/119-3/|
|visibleName|Жизненные формы растений|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_19_1.jpg|
|тип шага|pager|
|visibleName|Строение растений|
|table of contents thumb|text_19_1.jpg|
|ссылка на контент шага|./environment/JPG/text_19_2.jpg|
|тип шага|pager|
|visibleName|Жизненные формы растений|
|table of contents thumb|text_19_2.jpg|
|ссылка на материал|./environment/PDF/19-Строение_растений-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|541 Кб|
|ссылка на материал|./environment/PDF_2/19-Строение_растений-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|148 Кб|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment/PDF/01-Знакомство_с_предметом-Конспект.pdf|
|занимает памяти|779 Кб|
|ссылка на материал|./environment/PDF_2/01-Знакомство_с_предметом-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|64 Кб|
<<lessonAdminPanel>>/%
|visibleName|2. Как отличить живое от неживого|
|galleryFolder|environment/galleries/02. Чем живое отличается от неживого/|
!!!Описание
Мы разделили всю природу на мир живого и мир неживого. Но если по виду нам неясно, что перед нами: живой организм или неживой предмет, — как быть? Есть четыре главных признака, которыми обладает всё живое.
!Дополнительно об уроке
!gallery data
{"data":[
["01 человек на велосипеде.jpg","","",""],
["02 живое размножается — мышь.jpg","","",""],
["03 живое размножается — дерево.jpg","","",""],
["04 неживое не размножается.jpg","","",""],
["05 живое растёт — мышь.jpg","","",""],
["06 живое растет — дерево.jpg","","",""],
["07 живое питается — мышь.jpg","","",""],
["08 живое питается — дерево.jpg","","",""],
["09 неживое не питается.jpg","","",""],
["10 учёный увидел клетки в микроскоп.jpg","","",""],
["11 живое состоит из клеток.jpg","","",""],
["12 дом из кирпичей.jpg","","",""],
["13 клетки кожицы лука.jpg","","https://www.flickr.com/photos/107963674@N07/14730447927/","Macroscopic Solutions"],
["14 клетки побега растения.jpg","","https://www.flickr.com/photos/blueridgekitties/4425262405/","BlueRidgeKitties"],
["15 клетки крови лягушки.jpg","","https://www.flickr.com/photos/havovubu/7623398360/","Wayne Large"],
["16 клетки сердца человека.jpg","","https://www.flickr.com/photos/148881376@N06/26634564147/","Christian Zuppinger"],
["17 клетки карандаша.jpg","","",""],
["18 мёртвый пень.jpg","","",""],
["19 костёр как будто питается.jpg","","",""],
["20 костёр как будто растёт.jpg","","",""],
["21 костёр как будто размножается.jpg","","",""],
["22 костёр не состоит из клеток.jpg","","",""]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/f24d6Qi8GbQ|
|тип шага|video|
|visibleName|Чем живое отличается от неживого|
|ссылка на контент шага|./oms/102-1/|
|тип шага|task|
|visibleName|Признаки живого|
|visibleName|Живое, неживое и мёртвое|
|ссылка на контент шага|./oms/102-3/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_02_1.jpg|
|тип шага|pager|
|visibleName|Признаки живого|
|table of contents thumb|text_02_1.jpg|
|ссылка на контент шага|./environment/JPG/text_02_2.jpg|
|тип шага|pager|
|visibleName|Как пользоваться признаками живого|
|table of contents thumb|text_02_2.jpg|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/20. Водоросли и мхи/|
!!!Описание
Первые растения, с которыми мы познакомимся ближе, — это водоросли и мхи. Вы узнаете, чем полезны людям мхи, что вкусного можно сделать из водорослей и относятся ли к ним кувшинки.
!%//%
!gallery data
{"data":[
["01 водоросли.jpg",null,null,null],
["02 водоросли и русалка.jpg",null,null,null],
["03 кувшинки не водоросли.jpg",null,"https://www.flickr.com/photos/jamesjardine/12115671365","James Jardine"],
["04 кувшинки не водоросли.jpg",null,"https://www.flickr.com/photos/jarbasmattos/9185156714","jarbas"],
["05 стебли кувшинки.jpg",null,"",""],
["06 спирогира.jpg",null,"https://commons.wikimedia.org/wiki/File:Spyrogyra-bgiu.jpg","Bogdan"],
["07 улотрикс.jpg",null,"www.shrimp-tank.com","ShrimpTank"],
["08 улотрикс.jpg",null,"https://www.flickr.com/photos/78545007@N02/6885980624","Pefiradfi"],
["09 водоросль-мочалка.jpg",null,"https://www.flickr.com/photos/99248541@N00/8564554556","Sushi_Girl1995"],
["10 ламинария.jpg",null,"",""],
["11 фукус.jpg",null,"https://www.flickr.com/photos/39968898@N02/3678623563","Irish Marine Life"],
["12 фукус.jpg",null,"https://www.flickr.com/photos/bathyporeia/15896377177/","bathyporeia"],
["13 морская капуста.jpg",null,"",""],
["14 агар-агар.jpg",null,"",""],
["15 сладости с агар-агаром.jpg",null,"",""],
["16 мох маршанция.jpg",null,"",""],
["17 мох маршанция.jpg",null,"https://www.flickr.com/photos/solangebelon/7985253466","Solange B"],
["18 мох кукушкин лён.jpg",null,"https://www.flickr.com/photos/stephenbuchan/7160985922","Stephen Buchan"],
["19 мох ритидиадельф.jpg",null,"https://www.flickr.com/photos/natureseye/8511279200","duckinwales"],
["20 мох с подобием цветков.jpg",null,"https://www.flickr.com/photos/bryopix_flickr/6558771385/","Dick Haaksma"],
["21 русалка на моховом камне.jpg",null,"",""],
["22 сфагнум.jpg",null,"",""],
["23 сфагнум.jpg",null,"https://www.flickr.com/photos/sjorgs/7710938294","sjorgs"],
["24 сфагнумом затыкают щели.jpg",null,"",""],
["25 моховое болото.jpg",null,"",""],
["26 торф.jpg",null,"https://www.flickr.com/photos/32692888@N02/18814479981/","John"],
["27 торф.jpg",null,"https://www.flickr.com/photos/kabaert/4279082709/","Kathleen Baert"],
["28 болото.jpg",null,"https://www.flickr.com/photos/jessaerons/27085949040","Pavel Starikov"],
["29 болото.jpg",null,"https://www.flickr.com/photos/asaratoga/7402271898","Valery Petrov"],
["30 торфяной пожар.jpg",null,null,null]
],
"options":{}}
!%/
|visibleName|Водоросли и мхи|
|ссылка на контент шага|https://youtu.be/j6JUSSpTcK8|
|тип шага|video|
|ссылка на контент шага|./oms/120-2/|
|тип шага|task|
|visibleName|Водоросли и мхи|
|ссылка на контент шага|./environment/JPG/text_20_1.jpg|
|тип шага|pager|
|visibleName|Водоросли|
|table of contents thumb|text_20_1.jpg|
|ссылка на контент шага|./environment/JPG/text_20_2.jpg|
|тип шага|pager|
|visibleName|Мхи|
|table of contents thumb|text_20_2.jpg|
|ссылка на материал|./environment/PDF/20-Водоросли_и_мхи-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|994 Кб|
|ссылка на материал|./environment/PDF_2/20-Водоросли_и_мхи-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|165 Кб|
|visibleName||
|galleryFolder|environment/galleries/21. Папоротники и хвойные/|
<<lessonAdminPanel>>/%
!!!Описание
Сколько человек может поместиться на пне? Что необычного в листьях папоротника? Какое растение похоже на чей-то хвостик (и даже называется похоже)? Отвечаем во второй части рассказа о нецветковых растениях.
!%//%
!gallery data
{"data":[
["01 вайя папоротника.jpg",null,null,null],
["02 перо павлина.jpg",null,null,null],
["03 папоротник.jpg",null,"https://www.flickr.com/photos/134108556@N06/22893554971","Daniil Drozdov"],
["04 папоротник.jpg",null,"https://www.flickr.com/photos/jesperanza/8382863140","Jessica Schmidt"],
["05 папоротник.jpg",null,"https://www.flickr.com/photos/29689347@N06/5980456795","Kerry Naugle"],
["06 вайя.jpg",null,"https://www.flickr.com/photos/a-herzog/18469232581","Stiller Beobachter"],
["07 страусник.jpg",null,"https://www.flickr.com/photos/randijaa/26485287393","Randi J."],
["08 щитовник.jpg",null,"https://commons.wikimedia.org/wiki/File:Dryopteris_cristata.jpeg","Kristian Peters"],
["09 хвощ.jpg",null,"",""],
["10 хвощи.jpg",null,"",""],
["11 хвощ.jpg",null,"https://www.flickr.com/photos/ki/2891862109","--ki---"],
["12 древовидный папоротник.jpg",null,"https://commons.wikimedia.org/wiki/File:Dicksonia_antarctica_in_Koishikawa_gardens.jpg","Daderot"],
["13 каламит.jpg",null,"",""],
["14 каламиты.jpg",null,"",""],
["15 каменный уголь.jpg",null,"",""],
["16 лесная сосна.jpg",null,"",""],
["17 ель.jpg",null,"",""],
["18 шишки и хвоя.jpg",null,"",""],
["19 сибирская сосна.jpg",null,"https://www.flickr.com/photos/48592009@N03/22503447443","igor parhomcik"],
["20 лиственница.jpg",null,"https://www.flickr.com/photos/igorkart/24101765211","Igor Kartavykh"],
["21 лиственница жёлтая.jpg",null,"https://www.flickr.com/photos/efenstor/5367467672","Andrey Pivovarov"],
["22 лиственница хвоинки.jpg",null,"https://www.flickr.com/photos/oliveshadow/14070984545","Ol'ga"],
["23 кипарис.jpg",null,"https://www.flickr.com/photos/oninot/14766439386","Tonino De Rubeis"],
["24 туя.jpg",null,"https://www.flickr.com/photos/qvesten/16597216738","qvesten"],
["25 секвойя.jpg",null,"",""],
["26 секвойя.jpg",null,"",""],
["27 секвойя пень.jpg",null,"https://www.flickr.com/photos/maleny_steve/27661682234/","Serendigity"]
],
"options":{}}
!%/
|visibleName|Папоротники и хвойные|
|ссылка на контент шага|https://youtu.be/iLVLnXyMpvw|
|тип шага|video|
|visibleName|Нецветковые растения|
|ссылка на контент шага|./oms/121-1/|
|тип шага|task|
|visibleName|Польза нецветковых растений|
|ссылка на контент шага|./oms/121-2/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_21_1.jpg|
|тип шага|pager|
|visibleName|Папоротники и хвощи|
|table of contents thumb|text_21_1.jpg|
|ссылка на контент шага|./environment/JPG/text_21_2.jpg|
|тип шага|pager|
|visibleName|Хвойные|
|table of contents thumb|text_21_2.jpg|
|ссылка на материал|./environment/PDF/21-Папоротники_и_хвойные-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,3 Мб|
|ссылка на материал|./environment/PDF_2/21-Папоротники_и_хвойные-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|238 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/22. Цветковые деревья и кустарники/|
!!!Описание
Мы обсудим, почему у одних деревьев цветки крупные и душистые, а у других еле заметные. И познакомимся с самыми частыми в наших краях деревьями и кустарниками.
!%//%
!gallery data
{"data":[
["01 цветки яблони.jpg",null,"https://www.flickr.com/photos/sadownictwo/11827278574/","sadownictwo .com.pl"],
["02 цветки груши.jpg",null,"https://www.flickr.com/photos/massimo-buccolieri/26146022132","Massimo Buccolieri"],
["03 цветки сливы.jpg",null,"https://www.flickr.com/photos/zgok/117092689","zgok_cw"],
["04 цветки вишни.jpg",null,"https://www.flickr.com/photos/ketch/4428608149","Keiichi Suda"],
["05 плоды яблони.jpg",null,"https://www.flickr.com/photos/giantmike13/9811194363","giantmike"],
["06 плоды груши.jpg",null,"https://www.flickr.com/photos/tednmiki/22662194459","tednmiki"],
["07 плоды сливы.jpg",null,"https://www.flickr.com/photos/baileysbigblog/7386276516","Pete Bailey"],
["08 плоды вишни.jpg",null,"https://www.flickr.com/photos/elahe63/4805314201","Elahe Dastgheib"],
["09 рябина.jpg",null,"https://www.flickr.com/photos/trgman/4629219052/","Jason"],
["10 магнолия.jpg",null,"https://www.flickr.com/photos/88198496@N04/17143803359/","Frank"],
["11 магнолия.jpg",null,"https://www.flickr.com/photos/lordv/17098145748","Brian Valentine"],
["12 магнолия.jpg",null,"https://www.flickr.com/photos/workmana10/2585378166","Alisa"],
["13 липа.jpg",null,"https://www.flickr.com/photos/canadiantreetours/5930550433","Baye Hunter"],
["14 клён.jpg",null,"https://www.flickr.com/photos/7208148@N02/26301694065/","photopoésie"],
["15 дуб.jpg",null,"https://www.flickr.com/photos/7208148@N02/16629993413/","photopoésie"],
["16 ясень.jpg",null,"https://www.flickr.com/photos/bluebullet/8748001674/","bluebullet"],
["17 берёза.jpg",null,"https://www.flickr.com/photos/54496854@N08/26279533221/","mari subb"],
["18 соцветие берёзы.jpg",null,"",""],
["19 шмели опыляют клевер.jpg",null,"",""],
["20 ветер.jpg",null,"",""],
["21 плоды дуба жёлуди.jpg",null,"https://www.flickr.com/photos/16155010@N04/9608951707/","Simon (celery) Marshall"],
["22 жёлуди.jpg",null,"https://www.flickr.com/photos/edwbaker/3950265408/","Edward Baker"],
["23 жёлуди.jpg",null,"",""],
["24 плоды клёна.jpg",null,"https://www.flickr.com/photos/roddh/142105571/","Rodd Halstead"],
["25 плоды клёна.jpg",null,"https://www.flickr.com/photos/rbdal49/14262262809/","rbdal (Rick Dalrymple)"],
["26 плоды липы.jpg",null,"https://www.flickr.com/photos/steppeland/9555634997/","Steppeland"],
["27 плоды ясеня.jpg",null,"https://www.flickr.com/photos/kewonflickr/6031978323/","Kew on Flickr"],
["28 плоды ясеня.jpg",null,"https://www.flickr.com/photos/pelayobotanica/16367164370/","Javier Pelayo"],
["29 плоды берёзы.jpg",null,"",""],
["30 тополь.jpg",null,"",""],
["31 светлая кора тополей.jpg",null,"https://www.flickr.com/photos/somewhatnorth/6339739426/","SomewhatNorth"],
["32 кора других деревьев.jpg",null,"https://www.flickr.com/photos/c-l-english/8641576649/","Louise and Colin"],
["33 тополя в городе.jpg",null,"",""],
["34 осина.jpg",null,"https://www.flickr.com/photos/22873479@N08/5818225131/","Stefano Zerauschek"],
["35 листья тополя.jpg",null,"https://www.flickr.com/photos/terrificphotos/5874091624/","Terri Roth"],
["36 листья осины.jpg",null,"https://www.flickr.com/photos/valdelobos/6801090744/","José María Escolano"],
["37 ствол осины.jpg",null,"https://www.flickr.com/photos/68282140@N04/22228676954/","julia_HalleFotoFan"],
["38 серёжки осины.jpg",null,"https://www.flickr.com/photos/7208148@N02/27552904020/","photopoésie"],
["39 серёжки осины.jpg",null,"https://www.flickr.com/photos/63054285@N02/7136781611/","Maciej Gołąbek"],
["40 ива дерево.jpg",null,"https://www.flickr.com/photos/12639178@N07/21551032153/","naturgucker.de / enjoynature.net"],
["41 ива кустарник.jpg",null,"https://www.flickr.com/photos/plant_diversity/5002370825/","Matt Lavin"],
["42 шиповник.jpg",null,"https://www.flickr.com/photos/slicomir3/14372562711/","tihoslic3"],
["43 лесные орехи.jpg",null,"https://www.flickr.com/photos/49147273@N04/5302077492/","Robert Klips"],
["44 лещина.jpg",null,"https://commons.wikimedia.org/wiki/File:Port_noisetier.JPG","Port noisetier"],
["45 малина.jpg",null,"https://www.flickr.com/photos/sebastianrittau/15440873842/","Sebastian Rittau"],
["46 крыжовник.jpg",null,"https://www.flickr.com/photos/42135059@N02/4744023729/","david schiller"],
["47 черная смородина.jpg",null,"https://www.flickr.com/photos/ichie-jp/15134583830/","ichie"],
["48 калина.jpg",null,"https://www.flickr.com/photos/serjio/1429200954/","Sergei Rogozhnikov"],
["49 калина.jpg",null,"https://www.flickr.com/photos/12639178@N07/21337293794/","naturgucker.de / enjoynature.net"],
["50 боярышник.jpg",null,"https://www.flickr.com/photos/mishej/36710037751/","John Mishefske"],
["51 бересклет.jpg",null,"https://www.flickr.com/photos/ille43/8046374669/","Sylvi"],
["52 жимолость лесная.jpg",null,"https://www.flickr.com/photos/pelayobotanica/15931750863/","Javier Pelayo"]
],
"options":{}}
!%/
|visibleName|Цветковые деревья и кустарники|
|ссылка на контент шага|https://youtu.be/ZqTcTxPLdSY|
|тип шага|video|
|ссылка на контент шага|./oms/122-1/|
|тип шага|task|
|visibleName|Цветковые деревья и кустарники|
|ссылка на контент шага|./oms/122-3/|
|тип шага|task|
|visibleName|Чьи это цветки?|
|ссылка на контент шага|./oms/122-5/|
|тип шага|task|
|visibleName|Опыление|
|ссылка на контент шага|./environment/JPG/text_22_1.jpg|
|тип шага|pager|
|visibleName|Цветковые деревья|
|table of contents thumb|text_22_1.jpg|
|ссылка на контент шага|./environment/JPG/text_22_2.jpg|
|тип шага|pager|
|visibleName|Цветковые кустарники|
|table of contents thumb|text_22_2.jpg|
|ссылка на материал|./environment/PDF/22-Цветковые_деревья_и_кустарники-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,4 Мб|
|ссылка на материал|./environment/PDF_2/22-Цветковые_деревья_и_кустарники-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|321 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/23. Цветковые травы/|
!!!Описание
Наше путешествие по царству растений заканчивается. Давайте напоследок заглянем к цветковым травянистым растениям и найдём среди них чемпионов: у кого из них самые крупные цветки? У кого самые незаметные? А кого люди больше всего ценят за красоту и аромат?
!%//%
!gallery data
{"data":[
["01 цветок раффлезии.jpg",null,null,null],
["02 цветок раффлезии.jpg",null,"https://www.flickr.com/photos/ukstairs/5640116044/","ukstairs"],
["03 раффлезия.jpg",null,"https://www.flickr.com/photos/francesborg/154142427/","Frances"],
["04 раффлезия.jpg",null,"https://www.flickr.com/photos/29228406@N08/3158921289/","oldbean2008"],
["05 раффлезия.jpg",null,"https://www.flickr.com/photos/adronvet/5583120685/","adronvet"],
["06 рост раффлезии.jpg",null,"",""],
["07 рост раффлезии.jpg",null,"",""],
["08 рост раффлезии.jpg",null,"",""],
["09 рост раффлезии.jpg",null,"",""],
["10 рост раффлезии.jpg",null,"",""],
["11 рост раффлезии.jpg",null,"",""],
["12 кувшинка.jpg",null,"https://www.flickr.com/photos/jamesjardine/12115671365/","James Jardine"],
["13 кувшинка.jpg",null,"https://www.flickr.com/photos/matteokutufa/10159541025/",""],
["14 кувшинка.jpg",null,"https://www.flickr.com/photos/jarbasmattos/9185156714/","jarbas"],
["15 стебли кувшинки.jpg",null,"",""],
["16 кубышка.jpg",null,"https://www.flickr.com/photos/92740970@N03/16205464470/","Zi W"],
["17 полярный мак.jpg",null,"https://www.flickr.com/photos/raudkollur/5857417820/","Örn Óskarsson"],
["18 полярный мак.jpg",null,"https://www.flickr.com/photos/mghnriley/14454357632/","shoots canons"],
["19 полярный мак.jpg",null,"https://www.flickr.com/photos/tim-waters/7761514136/","Tim Waters"],
["20 королева-роза.jpg",null,"",""],
["21 роза.jpg",null,"https://www.flickr.com/photos/millenks/15422197604/","Milena Posteeva"],
["22 королева-лилия.jpg",null,"",""],
["23 лилия.jpg",null,"https://commons.wikimedia.org/wiki/File:Lilium_japonicum_(1).jpg","John Lykkegaard"],
["24 пион.jpg",null,"https://www.flickr.com/photos/42654677@N02/24137972029/","Moon..."],
["25 вельможа-тюльпан.jpg",null,"",""],
["26 тюльпан.jpg",null,"https://www.flickr.com/photos/39350987@N07/16859492141/","Ksenia Davydova"],
["27 нарцисс.jpg",null,"https://www.flickr.com/photos/atila_y/8585633739/","Atila Yumusakkaya"],
["28 колокольчик.jpg",null,"https://www.flickr.com/photos/vadim_plessky/5897071254/","Vadim Plessky"],
["29 колокольчики.jpg",null,"https://www.flickr.com/photos/gotowefoto/17089586419/","tHeDiGiTaLdRoPoUt"],
["30 колокольчик персиколистный (редкий).jpg",null,"https://www.flickr.com/photos/12639178@N07/2599652681/","naturgucker.de / enjoynature.net"],
["31 лютик.jpg",null,"https://www.flickr.com/photos/okora/27001248831/","Ольга К."],
["32 лютик.jpg",null,"https://www.flickr.com/photos/s_cher/15492011126/","Sergei Chernavin"],
["33 звездчатка.jpg",null,"https://www.flickr.com/photos/m-ursus/5716164428/","Михаил"],
["34 мятлик.jpg",null,"https://www.flickr.com/photos/9942395@N04/27542823030/","Jonathan Barth"],
["35 мятлик.jpg",null,"https://www.flickr.com/photos/9942395@N04/27542848460/","Jonathan Barth"],
["36 мятлик.jpg",null,"https://www.flickr.com/photos/annetanne/486162453/","AnneTanne"],
["37 ковыль (волосатик).jpg",null,"https://www.flickr.com/photos/wild-eyes/10802927545/","Sarah Gregg"],
["38 ковыль (перистый).jpg",null,"https://www.flickr.com/photos/123613181@N02/18132540908/","Anna Pérez Corominas"],
["39 ковыль (красивейший).jpg",null,"https://www.flickr.com/photos/100087631@N08/14273953407/","Ex Cogitator"],
["40 клевер.jpg",null,"https://www.flickr.com/photos/hawkeye2011/7415102200/","Hawkeye2011"],
["41 головка клевера.jpg",null,null,null],
["42 горошек.jpg",null,"https://www.flickr.com/photos/jon_d_anderson/28951817468/","Jon. D. Anderson"],
["43 кисть горошка.jpg",null,null,null],
["44 сныть.jpg",null,"https://www.flickr.com/photos/tico_bassie/2693917662/","--Tico--"],
["45 сложный зонтик сныти.jpg",null,"",""],
["46 ромашка.jpg",null,"https://www.flickr.com/photos/apploadr/25604777684/","voyageurrr"],
["47 соцветие ромашки.jpg",null,"",""],
["48 одуванчик.jpg",null,"https://www.flickr.com/photos/112672627@N03/16963605917/","Aaron Swift"],
["49 одуванчик.jpg",null,"https://www.flickr.com/photos/allanhowe/7188731264/","Allan Howe"],
["50 одуванчик.jpg",null,"https://www.flickr.com/photos/114017326@N05/14185864309/","Snowlike96"]
],
"options":{}}
!%/
|visibleName|Цветковые травы|
|ссылка на контент шага|https://youtu.be/_Q3GL6kGN4k|
|тип шага|video|
|ссылка на контент шага|./oms/123-3/|
|тип шага|task|
|visibleName|Цветковые травы|
|ссылка на контент шага|./environment/JPG/text_23_1.jpg|
|тип шага|pager|
|visibleName|Цветковые травы|
|table of contents thumb|text_23_1.jpg|
|ссылка на контент шага|./environment/JPG/text_23_2.jpg|
|тип шага|pager|
|visibleName|Соцветия|
|table of contents thumb|text_23_2.jpg|
|ссылка на материал|./environment/PDF/23-Цветковые_травы-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|850 Кб|
|ссылка на материал|./environment/PDF_2/23-Цветковые_травы-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|223 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/24. Чем полезны и опасны животные для человека/|
!!!Описание
С давних времён животные приносят людям самую разную пользу: кормят, лечат, одевают, помогают перевозить грузы. Но есть и опасности, связанные с животными: они могут укусить, ужалить, заразить человека болезнью, испортить урожай. И всё-таки пользы гораздо больше, чем опасностей!
!%//%
!gallery data
{"data":[
["01 древний охотник.jpg",null,null,null],
["02 рыба.jpg",null,null,null],
["03 икра.jpg",null,null,null],
["04 гусь.jpg",null,null,null],
["05 яйца.jpg",null,null,null],
["06 пчела.jpg",null,null,null],
["07 польза от пчёл.jpg",null,null,null],
["08 двустворчатый моллюск (гребешок).jpg",null,null,null],
["09 улитка.jpg",null,null,null],
["10 осьминог.jpg",null,null,null],
["11 кальмар.jpg",null,null,null],
["12 рак.jpg",null,null,null],
["13 омар.jpg",null,"https://www.flickr.com/photos/animaliaproject/6543245559/","Patrick Randall"],
["14 лангуст.jpg",null,"https://www.flickr.com/photos/stefankoeder/8086863240/","Stefan Köder"],
["15 молоко.jpg",null,"",""],
["16 шерсть.jpg",null,"",""],
["17 верблюд.jpg",null,"",""],
["18 тутовый шелкопряд.jpg",null,"",""],
["19 свинья.jpg",null,"",""],
["20 корова.jpg",null,"",""],
["21 пуховик.jpg",null,"",""],
["22 утка.jpg",null,"",""],
["23 шуба.jpg",null,"",""],
["24 заяц.jpg",null,"",""],
["25 бобр.jpg",null,"",""],
["26 торговец мехами.jpg",null,"",""],
["27 верблюд-перевозчик.jpg",null,"",""],
["28 олень и сани.jpg",null,"",""],
["29 собака.jpg",null,"",""],
["30 змеиный яд.jpg",null,"",""],
["31 мазь.jpg",null,"",""],
["32 панты.jpg",null,"https://www.flickr.com/photos/cirdan-travels/16552772248/","cirdantravels (Fons Buts)"],
["33 средство от ран и ожогов.jpg",null,"",""],
["34 медведь.jpg",null,"https://www.flickr.com/photos/willwade/6042693682/","Will Wade"],
["35 рысь.jpg",null,"https://www.flickr.com/photos/butohmedusa/19407760538/","Sarah A."],
["36 волки в ночном лесу.jpg",null,"",""],
["37 волк.jpg",null,"https://www.flickr.com/photos/81710321@N08/9148112081","Christina Catlin-Groves"],
["38 кабаны.jpg","","https://www.flickr.com/photos/58149020@N06/26484202398/","Tony Cox"],
["39 кабан.jpg",null,null,null],
["40 северный олень.jpg","Северный олень",null,null],
["41 олень.jpg","Олень",null,null],
["42 олень.jpg",null,null,null],
["43 оса.jpg",null,null,null],
["44 императорский скорпион.jpg",null,"https://commons.wikimedia.org/wiki/File:Emperor_scorpion_or_Imperial_scorpion_(Pandinus_imperator).jpg","Mike Baird"],
["45 каракурт.jpg",null,"https://commons.wikimedia.org/wiki/File:Latrodectus_tredecimguttatus_female.jpg","Kork~commonswiki"],
["46 глисты.jpg",null,"",""],
["47 таёжный клещ.jpg",null,"https://fotki.yandex.ru/next/users/woodmen19/album/136845/view/659418","Владимир Брюхов"],
["48 таёжный клещ.jpg",null,"https://fotki.yandex.ru/next/users/woodmen19/album/136845/view/212629","Владимир Брюхов"],
["49 средство против насекомых.jpg",null,null,null],
["50 саранча.jpg",null,null,null],
["51 саранча, гусеницы, медведка.jpg",null,null,null]
],
"options":{}}
!%/
|visibleName|Чем полезны и опасны животные для человека|
|ссылка на контент шага|https://youtu.be/51xd7N9oVXs|
|тип шага|video|
|visibleName|Польза от животных|
|ссылка на контент шага|./oms/124-1/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_24_1.jpg|
|тип шага|pager|
|visibleName|Польза от животных: еда и лекарства|
|table of contents thumb|text_24_1.jpg|
|ссылка на контент шага|./environment/JPG/text_24_2.jpg|
|тип шага|pager|
|visibleName|Польза от животных: одежда и транспорт|
|table of contents thumb|text_24_2.jpg|
|ссылка на контент шага|./environment/JPG/text_24_3.jpg|
|тип шага|pager|
|visibleName|Чем опасны животные для человека|
|table of contents thumb|text_24_3.jpg|
|ссылка на контент шага|./environment/JPG/text_24_4.jpg|
|тип шага|pager|
|visibleName|Как избежать опасности|
|table of contents thumb|text_24_4.jpg|
|ссылка на материал|./environment/PDF/24-Чем_полезны_и_опасны_животные_для_человека-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,5 Мб|
|ссылка на материал|./environment/PDF_2/24-Чем_полезны_и_опасны_животные_для_человека-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|356 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/25. Чем полезны и опасны растения для человека/|
!!!Описание
Мы обсудили, что для человека значат животные, а теперь так же разберём, какую пользу приносят человеку растения и какие опасности они могут в себе скрывать.
!%//%
!gallery data
{"data":[
["01 схема фотосинтеза.jpg",null,null,null],
["02 хлеб.jpg",null,null,null],
["03 колосья.jpg",null,null,null],
["04 мука.jpg",null,null,null],
["05 злаки.jpg",null,null,null],
["06 овощи.jpg",null,null,null],
["07 фрукты.jpg",null,null,null],
["08 ламинария.jpg",null,null,null],
["09 сено.jpg",null,null,null],
["10 куры.jpg",null,null,null],
["11 мята.jpg",null,"https://www.flickr.com/photos/jenn2d2/17139421052/","jenn2d2"],
["12 ромашка.jpg",null,"https://www.flickr.com/photos/iozio/7386356258/","iozio"],
["13 зверобой.jpg",null,"https://www.flickr.com/photos/sumjulia/10969580076/","Nietra*"],
["14 шиповник.jpg",null,"https://www.flickr.com/photos/slicomir3/14372562711/","tihoslic3"],
["15 облепиха.jpg",null,"https://www.flickr.com/photos/30563539@N03/2864410637/","tolyan4eg"],
["16 древесина.jpg",null,"",""],
["17 дрова.jpg",null,"",""],
["18 кубики.jpg",null,"",""],
["19 бамбук.jpg",null,"https://www.flickr.com/photos/10918289@N07/4651720903/","inoc"],
["20 бамбук.jpg",null,"https://www.flickr.com/photos/serlunar/6520685591/","Serlunar"],
["21 бамбук.jpg",null,"https://www.flickr.com/photos/jansm/8070288659/","jansmh"],
["22 бамбук.jpg",null,"https://www.flickr.com/photos/rodrigoosorio/6165199684/","RODRIGO OSORIO"],
["23 декоративные растения.jpg",null,"",""],
["24 одежда из льна.jpg",null,"",""],
["25 книги.jpg",null,"",""],
["26 растение и корова.jpg",null,"",""],
["27 растение и корова.jpg",null,"",""],
["28 бересклет.jpg",null,"https://www.flickr.com/photos/96601035@N07/14990777937/","Сашкин Сад"],
["29 лесная жимолость.jpg",null,"https://www.flickr.com/photos/bulletgirl/9327176863/","Sabrina Blechinger"],
["30 вороний глаз.jpg",null,"https://www.flickr.com/photos/pe_ma/14993572941/","Peter"],
["31 цикута на болоте.jpg",null,"",""],
["32 шипы розы.jpg",null,"https://www.flickr.com/photos/109055998@N08/14167579356/","Elisabeth Els"],
["33 боярышник.jpg",null,"https://www.flickr.com/photos/ibolshakov/14417185844/","Ivan Bolshakov"],
["34 барбарис.jpg",null,"https://www.flickr.com/photos/casualsummer/10174678014/","Mriya"],
["35 кактус.jpg",null,"https://www.flickr.com/photos/peterpearson/4934913996/","Peter Pearson"],
["36 сорняки.jpg",null,null,null],
["37 сельское хозяйство.jpg",null,null,null]
],
"options":{}}
!%/
|visibleName|Чем полезны и опасны растения для человека|
|ссылка на контент шага|https://youtu.be/fqgBs1flutk|
|тип шага|video|
|ссылка на контент шага|./oms/125-2/|
|тип шага|task|
|visibleName|Польза животных и растений|
|ссылка на контент шага|./environment/JPG/text_25_1.jpg|
|тип шага|pager|
|visibleName|Польза растений: кислород, еда и лекарства|
|table of contents thumb|text_25_1.jpg|
|ссылка на контент шага|./environment/JPG/text_25_2.jpg|
|тип шага|pager|
|visibleName|Польза растений: корм и материалы|
|table of contents thumb|text_25_2.jpg|
|ссылка на контент шага|./environment/JPG/text_25_3.jpg|
|тип шага|pager|
|visibleName|Чем опасны растения для человека|
|table of contents thumb|text_25_3.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment/PDF/25-Чем полезны_и_опасны_растения_для_человека-Конспект.pdf|
|занимает памяти|1 Мб|
|ссылка на материал|./environment/PDF_2/25-Чем полезны_и_опасны_растения_для_человека-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|290 Кб|
<<lessonAdminPanel>>/%
|visibleName|26. Культурные злаки. Пшеница|
|galleryFolder|environment/galleries/26. Культурные злаки. Пшеница/|
!!!Описание
Некоторые растения люди специально выращивают, чтобы получать от них ещё больше пользы. Прежде всего, злаки. А главный злак для нашей страны — пшеница. Мы обсудим, как её выращивают и какие блюда из неё готовят.
!%//%
!gallery data
{"data":[
["01 сельское хозяйство.jpg",null,null,null],
["02 мятлик.jpg",null,"https://www.flickr.com/photos/annetanne/486162453/","AnneTanne"],
["03 пшеница.jpg",null,"https://www.flickr.com/photos/vladimirf/4874830533/","KeksKlip"],
["04 пшеница.jpg",null,"https://www.flickr.com/photos/maria_keays/5927121394/","Maria Keays"],
["05 пшеница.jpg",null,"https://www.flickr.com/photos/kdg59/7657225286/","kadege59"],
["06 пшеница зёрна.jpg",null,"https://www.flickr.com/photos/agrilifetoday/14206579449/","AgriLife Today"],
["07 колосья.jpg",null,"",""],
["08 яровая пшеница.jpg",null,"",""],
["09 яровая пшеница.jpg",null,"",""],
["10 яровая пшеница.jpg",null,"",""],
["11 яровая пшеница.jpg",null,"",""],
["12 озимая пшеница.jpg",null,"",""],
["13 озимая пшеница.jpg",null,"",""],
["14 озимая пшеница.jpg",null,"",""],
["15 озимая пшеница.jpg",null,"",""],
["16 озимая пшеница.jpg",null,"",""],
["17 комбайн.jpg",null,"https://www.flickr.com/photos/andrewconard/2621450095/","Andrew Conard"],
["18 зернохранилище.jpg",null,"https://www.flickr.com/photos/pmillera4/12162109155/","Peter Miller"],
["19 зернохранилище.jpg",null,"https://www.flickr.com/photos/78555627@N02/8091519447/","Diyan Nenov"],
["20 зернохранилище.jpg",null,"https://www.flickr.com/photos/forthrightjames/8317550839/","Forthright James"],
["21 белый хлеб.jpg",null,"",""],
["22 пшеничная каша.jpg",null,"",""],
["23 манная каша.jpg",null,"",""],
["24 просо.jpg",null,"https://www.flickr.com/photos/fluffymuppet/6305891756/","Fluffymuppet"],
["25 веник из проса.jpg",null,"https://www.flickr.com/photos/ausiekoala/6574740195/","Bruce Vaughan"]
],
"options":{}}
!%/
|visibleName|Культурные злаки. Пшеница|
|ссылка на контент шага|https://youtu.be/D5aGX4vQOTU|
|тип шага|video|
|ссылка на контент шага|./oms/126-1/|
|тип шага|task|
|visibleName|Полевые работы|
|visibleName|Сельскохозяйственные приспособления|
|ссылка на контент шага|./oms/126-3/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_26_1.jpg|
|тип шага|pager|
|visibleName|Что такое сельское хозяйство|
|table of contents thumb|text_26_1.jpg|
|ссылка на контент шага|./environment/JPG/text_26_2.jpg|
|тип шага|pager|
|visibleName|Пшеницы|
|table of contents thumb|text_26_2.jpg|
|ссылка на материал|./environment/PDF/26-Культурные_злаки_Пшеница-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|570 Кб|
|ссылка на материал|./environment/PDF_2/26-Культурные_злаки_Пшеница-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|274 Кб|
<<lessonAdminPanel>>/%
|visibleName|27. Другие культурные злаки|
|galleryFolder|environment/galleries/27. Другие культурные злаки/|
!!!Описание
Что такое «мамалыга»? Можно ли из злаков сделать бумагу? Чем сено отличается от соломы? Мы ответим на эти вопросы и обсудим, какие ещё злаки, кроме пшеницы, выращивают люди.
!%//%
!gallery data
{"data":[
["01 рожь.jpg",null,"https://www.flickr.com/photos/11213292@N05/4809782720/","September Songs"],
["02 рожь.jpg",null,"https://www.flickr.com/photos/siniy_kot/20823294628/","klgfinn"],
["03 рожь.jpg",null,"https://www.flickr.com/photos/weiswaldemar/14442719421/","Waldemar Weiss"],
["04 рожь.jpg",null,"https://www.flickr.com/photos/n-may/6823645465/","nklwrnc"],
["05 ржаной хлеб.jpg",null,"",""],
["06 кисель.jpg",null,"",""],
["07 квас.jpg",null,"",""],
["08 ржаная каша.jpg",null,"",""],
["09 овёс.jpg",null,"",""],
["10 овёс.jpg",null,"https://www.flickr.com/photos/bolandfamily0621/17120524061/","Brad Boland"],
["11 овёс.jpg",null,"https://www.flickr.com/photos/30548395@N08/3217858375/","juliet d-h"],
["12 овёс.JPG",null,"https://commons.wikimedia.org/wiki/File:Avena_sativa_002.JPG","H. Zell"],
["13 овсянка.jpg",null,"",""],
["14 овсяные печенья.jpg",null,"",""],
["15 ячмень.jpg",null,"https://www.flickr.com/photos/8663137@N04/3672037844","barockschloss"],
["16 перловая каша.jpg",null,"",""],
["17 кукуруза.jpg",null,"https://www.flickr.com/photos/manel/4442575459/","Manel"],
["18 кукуруза.jpg",null,"",""],
["19 мамалыга.jpg",null,"",""],
["20 рис.jpg",null,"https://www.flickr.com/photos/yandeardana/7125293243/","Yande Ardana"],
["21 рисовое поле.jpg",null,"https://www.flickr.com/photos/chansrithaweeporn/15167545222/","Chan Srithaweeporn"],
["22 рисовое поле.jpg",null,"https://www.flickr.com/photos/bomobob/448382120/","bomobob"],
["23 рисовое поле.jpg",null,"https://www.flickr.com/photos/oarranzli/6225404635/","oarranzli"],
["24 рис.jpg",null,"https://www.flickr.com/photos/52601259@N05/8187851789/","Simon"],
["25 рис варёный.jpg",null,"https://www.flickr.com/photos/tokyoviews/12835181134/","TokyoViews"],
["26 сладости из риса.jpg",null,"https://www.flickr.com/photos/koreanet/4384482630/","Republic of Korea"],
["27 рис варёный.jpg",null,"",""],
["28 книга на рисовой бумаге.jpg",null,"",""],
["29 стебли срезанные.jpg",null,"https://www.flickr.com/photos/ninga/8059968515/","Janeanna Rivera"],
["30 сено.jpg",null,"https://www.flickr.com/photos/92867842@N03/15000717586/","aine ni giolla phadraig"],
["31 сено.jpg",null,"",""],
["32 солома.jpg",null,"https://www.flickr.com/photos/chrissphotos/9659306854/","Chrissphotos"],
["33 соломенная игрушка.jpg",null,"https://fotki.yandex.ru/next/search/%D1%81%D0%BE%D0%BB%D0%BE%D0%BC%D0%B5%D0%BD%D0%BD%D0%B0%D1%8F%20%D0%B8%D0%B3%D1%80%D1%83%D1%88%D0%BA%D0%B0/users/tatiana-favourable/album/217160/view/588414?type=image&search-author=tatiana-favourable&page=0&how=week","tatiana.favourable"]
],
"options":{}}
!%/
|visibleName|Другие культурные злаки|
|ссылка на контент шага|https://youtu.be/L20rXPVCOU8|
|тип шага|video|
|ссылка на контент шага|./oms/127-1/|
|тип шага|task|
|visibleName|Злаки|
|ссылка на контент шага|./environment/JPG/text_27_1.jpg|
|тип шага|pager|
|visibleName|Другие культурные злаки|
|table of contents thumb|text_27_1.jpg|
|ссылка на контент шага|./environment/JPG/text_27_2.jpg|
|тип шага|pager|
|visibleName|Сено и солома|
|table of contents thumb|text_27_2.jpg|
|ссылка на материал|./environment/PDF/27-Другие_культурные_злаки-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|660 Кб|
|ссылка на материал|./environment/PDF_2/27-Другие_культурные_злаки-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|218 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/28. Овощи/|
!!!Описание
Вторая важная группа культурных растений — это овощи. Мы обсудим, за кем из них ухаживать проще, а за кем хлопотнее, и вспомним блюда, которые из них готовят.
!%//%
!gallery data
{"data":[
["01 картофель.jpg",null,null,null],
["02 поле с трактором.jpg",null,null,null],
["03 лейка.jpg",null,null,null],
["04 колорадский жук.jpg",null,"https://www.flickr.com/photos/mgrimm82/20310109072/","Martin Grimm"],
["05 колорадский жук.jpg",null,"",""],
["06 опрыскивание поля.jpg",null,"",""],
["07 картофель варёный.jpg",null,"",""],
["08 чипсы картофельные.jpg",null,"",""],
["09 кочан капусты.jpg",null,"",""],
["10 капуста.jpg",null,"https://www.flickr.com/photos/extensionhorticulture/2863345942/","eXtension.org: Gardens, Lawns, and Landscapes"],
["11 теплица.jpg",null,"",""],
["12 рассада.jpg",null,"",""],
["13 щи.jpg",null,"",""],
["14 квашеная капуста.jpg",null,"https://www.flickr.com/photos/128883229@N08/19199346434/","Eugene Evehealth"],
["15 лук.jpg",null,"",""],
["16 лук.jpg",null,"https://www.flickr.com/photos/klephoto/5840047199/","Kim Takes Photos"],
["17 лук.jpg",null,"https://www.flickr.com/photos/92499892@N08/8402629154/","MillyRainbow"],
["18 лук на грядке.jpg",null,"https://www.flickr.com/photos/newsky13/20053770921/","Aleksandr Newsky"],
["19 Лук меняют на зерно.jpg",null,"",""],
["20 суп.jpg",null,"",""],
["21 салат.jpg",null,"",""],
["22 помидор.jpg",null,"",""],
["23 помидор.jpg",null,"https://www.flickr.com/photos/thehamels/218149421/","hollyhamel"],
["24 помидор.jpg",null,"https://www.flickr.com/photos/puppy-eyes/12343266874/","Irene"],
["25 парник.jpg",null,"https://www.flickr.com/photos/iita-media-library/8090422597/","International Institute of Tropical Agriculture"],
["26 помидор болеет.jpg",null,"https://www.flickr.com/photos/42543652@N03/3944489524/","Jennifer Flitcraft"],
["27 огурец.jpg",null,"",""],
["28 огурец.jpg",null,"https://www.flickr.com/photos/70241253@N06/7347944594/","BoothsCountry"],
["29 семена огурца.jpg",null,"https://www.flickr.com/photos/santacruzfarm/5638938690/","Hey! Sam !!"],
["30 огурец.jpg",null,"https://www.flickr.com/photos/santacruzfarm/5972832818/","Hey! Sam !!"],
["31 банка солений.jpg",null,"",""],
["32 корнеплоды на грядке.jpg",null,"",""],
["33 редиска.jpg",null,"https://www.flickr.com/photos/129849442@N06/19510327105/","Niechelle wade"],
["34 свекла.jpg",null,"https://www.flickr.com/photos/angeliquelittle/2650557771/","littlewonderpics"],
["35 прополка.jpg",null,"https://www.flickr.com/photos/35907287@N06/8410197226/","cmillsap1"],
["36 корнеплоды собранные.jpg",null,"https://www.flickr.com/photos/infusionfibers/5736129940/","abby"],
["37 редька.jpg",null,"https://www.flickr.com/photos/kawilson/2602438168/","Kenneth A. Wilson"],
["38 редис.jpg",null,"https://www.flickr.com/photos/7639371@N05/14311670909/","Daniel"],
["39 свекла.jpg",null,"https://www.flickr.com/photos/ryan7077/1017778495/","ryian"],
["40 сахарная свекла.jpg",null,"https://www.flickr.com/photos/clizbiz/10212919443/","Heather"],
["41 горох.jpg",null,"https://www.flickr.com/photos/54912928@N06/5087112309/","Isabel Eyre"],
["42 соя.jpg",null,"https://www.flickr.com/photos/deftgurl/3726221695/","Woodie Anderson"],
["43 чечевица.jpg",null,"https://www.flickr.com/photos/cristine/149569117/","xtinehlee"],
["44 семена гороха.jpg",null,"https://www.flickr.com/photos/127795129@N02/15062675710/","Lera Zinoveva"],
["45 фасоль.jpg",null,"https://www.flickr.com/photos/36062315@N08/4300636744/","Sgt. Huxtable"],
["46 соя.jpg",null,"https://www.flickr.com/photos/funcrunch/8054173211/","Pax Ahimsa Gethen"],
["47 тофу.jpg",null,"https://www.flickr.com/photos/dinnercakes/4587188563/","Dinner Cakes"],
["48 соевое молоко.jpg",null,"https://www.flickr.com/photos/118126242@N02/15318754539/","Food Porn Vegan Style"],
["49 соевый соус.jpg",null,null,null]
],
"options":{}}
!%/
|visibleName|Овощи|
|ссылка на контент шага|https://youtu.be/KGUZwHhC1aE|
|тип шага|video|
|visibleName|Культурные растения|
|ссылка на контент шага|./oms/128-1/|
|тип шага|task|
|visibleName|Овощи|
|тип шага|task|
|ссылка на контент шага|./oms/128-2/|
|visibleName|Консервы|
|ссылка на контент шага|./oms/128-5/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_28_1.jpg|
|тип шага|pager|
|visibleName|Картофель и капуста|
|table of contents thumb|text_28_1.jpg|
|ссылка на контент шага|./environment/JPG/text_28_2.jpg|
|тип шага|pager|
|visibleName|Корнеплоды и бобовые|
|table of contents thumb|text_28_2.jpg|
|ссылка на материал|./environment/PDF/28-Овощи-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|553 Кб|
|ссылка на материал|./environment/PDF_2/28-Овощи-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|954 Кб|
|visibleName||
|galleryFolder|environment/galleries/29. Фрукты и другие культурные растения/|
<<lessonAdminPanel>>/%
!!!Описание
Это урок посвящён культурным растениям, которые не относятся ни к злакам, ни к овощам. Мы обсудим, как выбирают место для яблоневого сада, как из растений получают ткани, какие растения помогают нам выздороветь, а какие вредят здоровью.
!%//%
!gallery data
{"data":[
["01 бананы.jpg","","",""],
["02 груша зелёная.jpg","","",""],
["03 мандарин.jpg","","",""],
["04 слива.jpg","","",""],
["05 яблоко.jpg","","",""],
["06 яблоки.jpg","","https://www.flickr.com/photos/giantmike13/9811194363/","giantmike"],
["07 яблоки.jpg","","https://www.flickr.com/photos/kate12303/2750124426/","Kate"],
["08 лес защищает сад от ветра.jpg","","",""],
["09 яблочный сок.jpg","","https://www.flickr.com/photos/mrbeama/6070293499/","Neil Brown"],
["10 сушёные яблоки.jpg","","https://www.flickr.com/photos/125733347@N06/15452023497/","eceveryshop"],
["11 печёные яблоки.jpg","","https://www.flickr.com/photos/simonesnake/6221442242/","Simone Owings"],
["12 яблочное пюре.jpg","","",""],
["13 вишня.jpg","","",""],
["14 вишня.jpg","","https://www.flickr.com/photos/elahe63/4805314201/","Elahe Dastgheib"],
["15 слива.jpg","","",""],
["16 слива.jpg","","https://www.flickr.com/photos/baileysbigblog/7386276516/","Pete Bailey"],
["17 персик и абрикос.jpg","","",""],
["18 персики.jpg","","https://www.flickr.com/photos/28904058@N05/6040288634/","John Kuster"],
["19 абрикосы.jpg","","https://www.flickr.com/photos/paul-h-burns/14406928084/","Paul Burns"],
["20 абрикосовое варенье.jpg","","https://www.flickr.com/photos/queenieandthedew/4720591892/","Sally"],
["21 курага и чернослив.jpg","","",""],
["22 апельсин.jpg","","",""],
["23 мандарин.jpg","","",""],
["24 лимон.jpg","","",""],
["25 лимон.jpg","","https://www.flickr.com/photos/45041658@N02/16289407675/","xaviergardens"],
["26 апельсиновый сок.jpg","","https://www.flickr.com/photos/francisjimenezmeca/8777474270/","FRANCIS JIMENEZ MECA"],
["27 цитрусовые деревья.jpg","","https://www.flickr.com/photos/tahawus/15684496693/","tahawus"],
["28 мандарины.jpg","","https://www.flickr.com/photos/22218848@N03/9220129725/","tco1961"],
["29 мандарины.jpg","","https://www.flickr.com/photos/oliveplum/12017267296/","oliveplum"],
["30 бутылка масла.jpg","","",""],
["31 подсолнечник.jpg","","https://www.flickr.com/photos/ourcrazylife/5016899924/","angellaD"],
["32 подсолнечник.jpg","","https://www.flickr.com/photos/94178902@N05/9566497755","David Latham"],
["33 олива.jpg","","https://www.flickr.com/photos/polispoliviou/15098926323/","polis poliviou"],
["34 олива.jpg","","https://www.flickr.com/photos/stewdean/3963054413/","Stew Dean"],
["35 оливковое масло.jpg","","",""],
["36 кукуруза.jpg","","https://www.flickr.com/photos/realagriculture/26906453741/","RealAgriculture.com"],
["37 вещи из льна.jpg","","",""],
["38 лён.jpg","","https://www.flickr.com/photos/66479193@N06/7950668240/","Susanne Wiik"],
["39 хлопчатник.jpg","","",""],
["40 поле хлопчатника.jpg","","https://www.flickr.com/photos/cindypl/4121504714/","FlossieJane"],
["41 хлопок.jpg","","https://www.flickr.com/photos/kimberlykv/6288230823/","Kimberly Vardeman"],
["42 хлопок.jpg","","https://www.flickr.com/photos/brennwald/10851705825/","Daniel"],
["43 хлопок.jpg","","https://www.flickr.com/photos/joyatlast/9811295313/","Backyardbella"],
["44 комбайн собирает хлопок.jpg","","https://www.flickr.com/photos/kimberlykv/4087951240/","Kimberly Vardeman"],
["45 вата.jpg","","",""],
["46 роза.jpg","","https://www.flickr.com/photos/shell_b/5209332041/","Michelle Bexon"],
["47 тюльпаны.jpg","","https://www.flickr.com/photos/v57/8514411475/","Valery Chernodedov"],
["48 поле тюльпанов.jpg","","https://www.flickr.com/photos/26556145@N02/13753236863/","Vicki Dixon"],
["49 теплица с цветами.jpg","","https://www.flickr.com/photos/dannytp/25514516584/","Danny te Pas"],
["50 теплица с цветами.jpg","","https://www.flickr.com/photos/93530730@N04/18402734474/","Ronayne94"],
["51 мята.jpg","","https://www.flickr.com/photos/jenn2d2/17139421052/","jenn2d2"],
["52 календула.jpg","","https://www.flickr.com/photos/zoeandjohn/4519677779/","Zo's photos"],
["53 сушёные травы.jpg","","https://www.flickr.com/photos/goodcough/3378373599/","Dmitry Gudkov"],
["54 табак.jpg","","https://www.flickr.com/photos/richardpowers/2828902401/","Richard Powers"],
["55 сигарета.jpg","","",""],
["56 чай.jpg","","https://www.flickr.com/photos/oporquinho/15288530/","oporquinho"],
["57 кофе.jpg","","https://www.flickr.com/photos/yrpopqueen/5520111832/","yrpopqueen"],
["58 какао.jpg","","https://www.flickr.com/photos/135820899@N04/24179729930/","Cacao Tour"],
["59 чай.jpg","","",""],
["60 кофе.jpg","","",""],
["61 какао.jpg","","",""],
["62 шоколад.jpg","","",""],
["63 какао плоды.jpg","","https://www.flickr.com/photos/74653488@N08/14061833818/","daviddontdance"],
["64 кофе плоды.jpg","","https://www.flickr.com/photos/urbanoprudente/8111567972/","Fernando Urbano"],
["65 какао.jpg","","https://www.flickr.com/photos/bambooland/18287568584/","bambooland"],
["66 кофе.jpg","","https://www.flickr.com/photos/bklynphotochik/8323010015/","Tonia Mc Caskill"]
],
"options":{}}
!%/
|visibleName|Фрукты и другие культурные растения|
|ссылка на контент шага|https://youtu.be/9_yZ-yE8ILM|
|тип шага|video|
|ссылка на контент шага|./oms/129-1/|
|тип шага|task|
|visibleName|Овощи и фрукты|
|тип шага|task|
|visibleName|Из чего это сделано?|
|ссылка на контент шага|./oms/129-2/|
|ссылка на контент шага|./environment/JPG/text_29_1.jpg|
|тип шага|pager|
|visibleName|Яблоки|
|table of contents thumb|text_29_1.jpg|
|ссылка на контент шага|./environment/JPG/text_29_2.jpg|
|тип шага|pager|
|visibleName|Косточковые и цитрусы|
|table of contents thumb|text_29_2.jpg|
|ссылка на контент шага|./environment/JPG/text_29_3.jpg|
|тип шага|pager|
|visibleName|Прядильные растения|
|table of contents thumb|text_29_3.jpg|
|ссылка на контент шага|./environment/JPG/text_29_4.jpg|
|тип шага|pager|
|visibleName|Другие культурные растения|
|table of contents thumb|text_29_4.jpg|
|ссылка на материал|./environment/PDF/29-Фрукты_и_другие_культурные_растения-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,1 Мб|
|ссылка на материал|./environment/PDF_2/29-Фрукты_и_другие_культурные_растения-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|227 Кб|
|занимает памяти|686 Кб|
|ссылка на материал|./environment/PDF/02-Чем_живое_отличается_от_неживого-Конспект.pdf|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment/PDF_2/02-Чем_живое_отличается_от_неживого-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|191 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/03. Царства живой природы/|
!!!Описание
Учёные делят живую природу на царства. Давайте разберёмся, кто живёт в этих царствах, и нарисуем их на карте мира живого.
!Дополнительно об уроке
!gallery data
{"data":[
["01 карта живой природы.jpg"],
["02 границы царств.jpg"]
],
"options":{}}
!%/
|тип шага|video|
|ссылка на контент шага|https://youtu.be/L4jtKTaXG0g|
|visibleName|Царства живой природы|
|ссылка на контент шага|./oms/103-1/|
|тип шага|task|
|visibleName|Царства живой природы|
|ссылка на контент шага|./environment/JPG/text_03_1.jpg|
|тип шага|pager|
|visibleName|Царства живой природы|
|table of contents thumb|text_03_1.jpg|
|visibleName||
|galleryFolder|environment/galleries/30. Животноводство. Еда/|
<<lessonAdminPanel>>/%
!!!Описание
Этот урок посвящён животным, которых люди выращивают для еды. Мы расскажем, чем кормят кур и свиней и какой путь проходит молоко от коровьего вымени до нашего стола.
!%//%
!gallery data
{"data":[
["01 сельское хозяйство.jpg","","",""],
["02 собака.jpg","","",""],
["03 кошка.jpg","","",""],
["04 корова.jpg","","",""],
["05 ведро молока.jpg","","",""],
["06 бутылка молока.jpg","","",""],
["07 десять литров молока.jpg","","",""],
["08 пастух и коровы.jpg","","",""],
["09 пастух.jpg","","",""],
["10 сено.jpg","","https://www.flickr.com/photos/92867842@N03/15000717586/","aine ni giolla phadraig"],
["11 солома.jpg","","https://www.flickr.com/photos/chrissphotos/9659306854/","Chrissphotos"],
["12 доярка.jpg","","",""],
["13 корова.jpg","","",""],
["14 творог.jpg","","",""],
["15 йогурт.jpg","","",""],
["16 коза.jpg","","",""],
["17 овца.jpg","","",""],
["18 свинья.jpg","","",""],
["19 свинки и корм.jpg","","",""],
["20 корм для свиней.jpg","","",""],
["21 курица.jpg","","",""],
["22 утка и утята.jpg","","",""],
["23 гусь.jpg","","",""],
["24 яйца и мясо.jpg","","",""],
["25 курятник.jpg","","https://www.flickr.com/photos/mihalis/2872439875/","Jay Klein"],
["26 курятник.jpg","","https://www.flickr.com/photos/ruslik/4156983465/","Ruslan Kapral"],
["27 семечки.jpg","","",""],
["28 скорлупа.jpg","","",""],
["29 пчела.jpg","","",""],
["30 пчела.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Животноводство. Еда|
|ссылка на контент шага|https://youtu.be/ChgLwTah6vc|
|тип шага|video|
|ссылка на контент шага|./oms/130-1/|
|тип шага|task|
|visibleName|Уход за животными|
|ссылка на контент шага|./environment/JPG/text_30_1.jpg|
|тип шага|pager|
|visibleName|Коровы, козы и овцы|
|table of contents thumb|text_30_1.jpg|
|ссылка на контент шага|./environment/JPG/text_30_2.jpg|
|тип шага|pager|
|visibleName|Птицы, свиньи и пчёлы|
|table of contents thumb|text_30_2.jpg|
|ссылка на материал|./environment/PDF/30-Животноводство_Еда-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|487 Кб|
|ссылка на материал|./environment/PDF_2/30-Животноводство_Еда-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|114 Кб|
|visibleName||
|galleryFolder|environment/galleries/31. Животноводство. Одежда и транспорт/|
<<lessonAdminPanel>>/%
!!!Описание
Люди разводят животных не только ради пищи: на этом уроке мы вспомним тех, кто помогает нам согреваться в мороз, перемещаться и перевозить грузы. А ещё разберёмся, что такое породы и зачем они нужны.
!%//%
!gallery data
{"data":[
["01 одежда из льна.jpg","","",""],
["02 кожа.jpg","","",""],
["03 шерсть.jpg","","",""],
["04 верблюд.jpg","","",""],
["05 шуба.jpg","","",""],
["06 песец.jpg","","https://www.flickr.com/photos/drdad/6343890526/","Daniel D'Auria"],
["07 норка.jpg","","https://www.flickr.com/photos/pcurcis/13395219503/","Peter Curcis"],
["08 звероферма.jpg","","https://www.flickr.com/photos/dzivniekubriviba/8503599200/in/album-72157632846091320/","Dzīvnieku brīvība"],
["09 пуховик.jpg","","",""],
["10 гусь.jpg","","",""],
["11 утка.jpg","","",""],
["12 тутовый шелкопряд.jpg","","",""],
["13 тутовый шелкопряд.jpg","","https://www.flickr.com/photos/josedelgar/26207386455/in/photolist-FVRGWB-9PWFHE","Jose Delgar"],
["14 повозка с мехами.jpg","","",""],
["15 лошадь.jpg","","",""],
["16 слон.jpg","","",""],
["17 коза.jpg","","",""],
["18 шерстяная коза.jpg","","",""],
["19 молочная коза.jpg","","",""],
["20 мясная и яйценосная куры.jpg","","",""],
["21 собака.jpg","","",""],
["22 фокстерьер.jpg","","https://www.flickr.com/photos/freyaherridge/14720675265/","maxsharesstuff"],
["23 овчарка.jpg","","https://www.flickr.com/photos/kiased/17090321536/","Kia Sedighi"],
["24 колосья.jpg","","",""],
["25 озимая пшеница.jpg","","",""],
["26 озимая пшеница.jpg","","",""],
["27 озимая пшеница.jpg","","",""],
["28 озимая пшеница.jpg","","",""],
["29 озимая пшеница.jpg","","",""],
["30 яровая пшеница.jpg","","",""],
["31 яровая пшеница.jpg","","",""],
["32 яровая пшеница.jpg","","",""],
["33 яровая пшеница.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Животноводство. Одежда и транспорт|
|ссылка на контент шага|https://youtu.be/-Q1Awx1g2Ac|
|тип шага|video|
|visibleName|Животноводство|
|ссылка на контент шага|./oms/131-1/|
|тип шага|task|
|visibleName|Польза от домашних животных|
|ссылка на контент шага|./oms/131-2/|
|тип шага|task|
|ссылка на контент шага|./oms/131-3/|
|тип шага|task|
|visibleName|Породы животных|
|ссылка на контент шага|./environment/JPG/text_31_1.jpg|
|тип шага|pager|
|visibleName|Породы животных|
|table of contents thumb|text_31_1.jpg|
|ссылка на материал|./environment/PDF/31-Животноводство_Одежда_и_транспорт-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|243 Кб|
|ссылка на материал|./environment/PDF_2/31-Животноводство_Одежда_и_транспорт-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|155 Кб|
|visibleName||
|galleryFolder|environment/galleries/32. Знакомство с грибами/|
<<lessonAdminPanel>>/%
!!!Описание
Мы переходим в новое царство — царство грибов! И на первом уроке поговорим о том, что это за организмы и почему их нельзя отнести ни к растениям, ни к животным.
!%//%
!gallery data
{"data":[
["01 условный гриб.jpg"],
["02 яблоко.jpg"],
["03 яблоня.jpg"],
["04 грибница.jpg"],
["05 грибница.jpg"],
["06 грибница.jpg"],
["07 грибница.jpg"],
["08 грибница и плодовое тело.jpg"]
],
"options":{}}
!%/
|visibleName|Знакомство с грибами|
|ссылка на контент шага|https://youtu.be/LS_BDQd0Zi0|
|тип шага|video|
|visibleName|Помоги кроту|
|ссылка на контент шага|./oms/132-2/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_32_1.jpg|
|тип шага|pager|
|visibleName|Как устроены грибы|
|table of contents thumb|text_32_1.jpg|
|ссылка на контент шага|./environment/JPG/text_32_2.jpg|
|тип шага|pager|
|visibleName|Признаки грибов|
|table of contents thumb|text_32_2.jpg|
|ссылка на материал|./environment/PDF/32-Знакомство_с_грибами-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|310 Кб|
|ссылка на материал|./environment/PDF_2/32-Знакомство_с_грибами-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|145 Кб|
|visibleName||
|galleryFolder|environment/galleries/33. Чем полезны грибы для человека/|
<<lessonAdminPanel>>/%
!!!Описание
Оказывается, грибной суп — это не главное, что грибы дают людям. Они помогают нам печь хлеб и получать уксус, поддерживать здоровье витаминами и лечиться от опасных болезней антибиотиками.
!%//%
!gallery data
{"data":[
["01 полезный и вредный грибы.jpg","Полезный и вредный грибы","",""],
["02 полезный гриб.jpg","Полезный гриб","",""],
["03 дрожжи.jpg","","",""],
["04 выпечка.jpg","","",""],
["05 дрожжи-повара.jpg","","",""],
["06 витамины.jpg","","",""],
["07 мази и шампуни.jpg","","",""],
["08 спирт.jpg","","",""],
["09 уксус.jpg","","",""],
["10 незамерзающая жидкость.jpg","","",""],
["11 пятно на рубашке.jpg","","",""],
["12 обработка кожи перед уколом.jpg","","",""],
["13 съедобные грибы.jpg","","",""],
["14 белый гриб.jpg","","",""],
["15 белый гриб.jpg","","https://fotki.yandex.ru/users/woodmen19/","Владимир Брюхов"],
["16 подберёзовик.jpg","","",""],
["17 подберёзовик.jpg","","https://www.flickr.com/photos/aberkano/3889452739/","Aleksei Bereznisky"],
["18 подберёзовик.jpg","","https://fotki.yandex.ru/users/woodmen19/","Владимир Брюхов"],
["19 подберёзовик под берёзой.jpg","","https://fotki.yandex.ru/users/woodmen19/","Владимир Брюхов"],
["20 подосиновик.jpg","","",""],
["21 подосиновик.jpg","","https://fotki.yandex.ru/users/woodmen19/","Владимир Брюхов"],
["22 лисичка.jpg","","",""],
["23 лисичка.jpg","","https://fotki.yandex.ru/users/woodmen19/","Владимир Брюхов"],
["24 лисичка.jpg","","https://www.flickr.com/photos/tgerus/7999753411/","Tatters"],
["25 кефирный гриб.jpg","","",""],
["26 кефир.jpg","","",""],
["27 чайный гриб.jpg","","https://www.flickr.com/photos/yuki2008/3031174229/","Yuki-2008"],
["28 гриб и бактерия враждуют.jpg","","",""],
["29 антибиотики.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Чем полезны грибы для человека|
|ссылка на контент шага|https://youtu.be/mQ35-pqsesk|
|тип шага|video|
|visibleName|Полезные грибы|
|ссылка на контент шага|./oms/133-1/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_33_1.jpg|
|тип шага|pager|
|visibleName|Дрожжи|
|table of contents thumb|text_33_1.jpg|
|ссылка на контент шага|./environment/JPG/text_33_2.jpg|
|тип шага|pager|
|visibleName|Съедобные грибы|
|table of contents thumb|text_33_2.jpg|
|ссылка на контент шага|./environment/JPG/text_33_3.jpg|
|тип шага|pager|
|visibleName|Другая польза грибов|
|table of contents thumb|text_33_3.jpg|
|ссылка на материал|./environment/PDF/33-Чем_полезны_грибы_для_человека-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1 Мб|
|ссылка на материал|./environment/PDF_2/33-Чем_полезны_грибы_для_человека-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|108 Кб|
|visibleName||
|galleryFolder|environment/galleries/34. Чем опасны грибы для человека/|
<<lessonAdminPanel>>/%
!!!Описание
Грибы живут не только в почве. Одни поселяются в листьях растений, другие — в продуктах, а третьи — в человеческой коже! И растения, и продукты, и люди от этого страдают. Мы обсудим, как не заболеть грибковой болезнью и не пострадать от ядовитых грибов.
!%//%
!gallery data
{"data":[
["01 вредный гриб.jpg","Вредный гриб","",""],
["02 бледная поганка.jpg","","",""],
["03 бледная поганка.jpg","","https://www.flickr.com/photos/ressaure/6580918185/","Tatiana Bulyonkova"],
["04 сатанинский гриб.jpg","","",""],
["05 сатанинский гриб.jpg","","https://yadi.sk/a/A4X1I57P3WAjWx/5affa298f8f7acf4e450f856","vitaly.griboved"],
["06 сатанинский гриб.jpg","","https://yadi.sk/a/A4X1I57P3WAjWx/5affa298f8f7acf4e450f846","vitaly.griboved"],
["07 мучнистая роса.jpg","","https://www.flickr.com/photos/kubina/1896384858/","Jeff Kubina"],
["08 мучнистая роса.jpg","","https://en.wikipedia.org/wiki/File:Powdery_mildew.JPG","Pollinator"],
["09 мучнистая роса на клубнике.jpg","","",""],
["10 пыльная головня.jpg","","https://commons.wikimedia.org/wiki/File:Charbon_nu.jpg","Sylvie Jacquin"],
["11 пыльная головня.jpg","","https://www.flickr.com/photos/cimmyt/5123744887","International Maize and Wheat Improvement Center"],
["12 здоровая кукуруза.jpg","","",""],
["13 пыльная головня на кукурузе.jpg","","",""],
["14 линейная ржавчина.jpg","","https://www.flickr.com/photos/cimmyt/5809539566","International Maize and Wheat Improvement Center"],
["15 спорынья.jpg","","",""],
["16 спорынья.jpg","","https://commons.wikimedia.org/wiki/File:Bromus_erectus_ergot.JPG","Claude De Brauer"],
["17 трутовик.jpg","","https://www.flickr.com/photos/jessaerons/27434090763/","Pavel Starikov"],
["18 трутовик.jpg","","https://www.flickr.com/photos/ressaure/4793352429/","Tatiana Bulyonkova"],
["19 трутовик.jpg","","",""],
["20 грибковая болезнь.jpg","","",""],
["21 плесень.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Чем опасны грибы для человека|
|ссылка на контент шага|https://youtu.be/yAhRdnD-n8A|
|тип шага|video|
|visibleName|Грибковые болезни растений|
|ссылка на контент шага|./oms/OMS34-1/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_34_1.jpg|
|тип шага|pager|
|visibleName|Опасные грибы|
|table of contents thumb|text_34_1.jpg|
|ссылка на контент шага|./environment/JPG/text_34_2.jpg|
|тип шага|pager|
|visibleName|Грибковые болезни|
|table of contents thumb|text_34_2.jpg|
|ссылка на контент шага|./oms/OMS34-2/|
|тип шага|task|
|visibleName|Собери «портрет» бледной поганки|
|ссылка на контент шага|./oms/OMS34-3/|
|тип шага|task|
|visibleName|Профилактика грибковых болезней|
|ссылка на материал|./environment/PDF/34-Чем_опасны_грибы_для_человека-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,1 Мб|
|ссылка на материал|./environment/PDF_2/34-Чем_опасны_грибы_для_человека-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|199 Кб|
|visibleName||
|galleryFolder|environment/galleries/35. Роль грибов в природе/|
<<lessonAdminPanel>>/%
!!!Описание
На этом уроке вы узнаете, что за невидимые лесные дворники убирают опавшие листья и тела умерших животных и почему подберёзовики так любят расти под берёзами.
!%//%
!gallery data
{"data":[
["01 роль грибов в природе.jpg","","",""],
["02 грибы всеядны.jpg","","",""],
["03 как гриб питается.jpg","","",""],
["04 лист упал.jpg","","",""],
["05 гриб переваривает лист.jpg","","",""],
["06 лист превратился в перегной.jpg","","",""],
["07 дворник ест листья.jpg","","",""],
["08 мусор в лесу.jpg","","",""],
["09 гриб и бактерия — дворники.jpg","","",""],
["10 гриб делится с деревом водой.jpg","","",""],
["11 дерево делится с грибом пищей.jpg","","",""],
["12 симбиоз гриба и дерева.jpg","","https://fotki.yandex.ru/next/users/woodmen19/album/100928/view/671055","Владимир Брюхов"],
["13 симбиоз гриба и дерева.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Роль грибов в природе|
|ссылка на контент шага|https://youtu.be/dkFMspuRKA0|
|тип шага|video|
|ссылка на контент шага|./oms/135-3/|
|тип шага|task|
|visibleName|Грибы|
|ссылка на контент шага|./environment/JPG/text_35_1.jpg|
|тип шага|pager|
|visibleName|Грибы-дворники|
|table of contents thumb|text_35_1.jpg|
|ссылка на контент шага|./environment/JPG/text_35_2.jpg|
|тип шага|pager|
|visibleName|Дружба гриба и дерева|
|table of contents thumb|text_35_2.jpg|
|visibleName|Грибные профессии|
|ссылка на контент шага|./oms/OMS35-2/|
|тип шага|task|
|contentHeight|750|
|visibleName|Работа грибов в природе|
|ссылка на контент шага|./oms/OMS35-3/|
|тип шага|task|
|contentHeight|750|
|ссылка на материал|./environment/PDF/35-Роль_грибов_в_природе-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|514 Кб|
|ссылка на материал|./environment/PDF_2/35-Роль_грибов_в_природе-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|223 Кб|
|visibleName||
|galleryFolder|environment/galleries/36. Знакомство с бактериями/|
<<lessonAdminPanel>>/%
!!!Описание
Мы переходим в последнее царство мира живого — царство бактерий. Его крошечные жители поставили сразу несколько мировых рекордов. На этом уроке мы перечислим их и наградим бактерий заслуженными медалями.
!%//%
!gallery data
{"data":[
["01 бактерия.jpg"],
["02 древний пейзаж Земли.jpg"],
["03 гейзер.jpg"],
["04 кислотное озеро.jpg"],
["05 космос.jpg"],
["06 Левенгук и микроскоп.jpg"],
["07 Левенгук и микроскоп.jpg"],
["08 современный учёный и микроскоп.jpg"],
["09 ложка почвы.jpg"],
["10 питание бактерии.jpg"],
["11 резиновая шина.jpg"],
["12 загрязнение леса.jpg"],
["13 загрязнение леса.jpg"],
["14 бактерии кокки.jpg"],
["15 бактерии стрептококки.jpg"],
["16 бактерии стафилококки.jpg"],
["17 бактерии палочки.jpg"],
["18 бактерия спирилла.jpg"]
],
"options":{}}
!%/
|visibleName|Знакомство с бактериями|
|ссылка на контент шага|https://youtu.be/Fw6HPlfG88s|
|тип шага|video|
|visibleName|Достижения бактерий|
|ссылка на контент шага|./oms/136-1/|
|тип шага|task|
|visibleName|Формы бактерий|
|ссылка на контент шага|./oms/136-3/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_36_1.jpg|
|тип шага|pager|
|visibleName|Достижения бактерий, часть 1|
|table of contents thumb|text_36_1.jpg|
|ссылка на контент шага|./environment/JPG/text_36_2.jpg|
|тип шага|pager|
|visibleName|Достижения бактерий, часть 2|
|table of contents thumb|text_36_2.jpg|
|ссылка на контент шага|./environment/JPG/text_36_3.jpg|
|тип шага|pager|
|visibleName|Формы бактерий|
|table of contents thumb|text_36_3.jpg|
|ссылка на материал|./environment/PDF/36-Знакомство_с_бактериями-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1 Мб|
|ссылка на материал|./environment/PDF_2/36-Знакомство_с_бактериями-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|155 Кб|
|visibleName||
|galleryFolder|environment/galleries/37. Чем полезны и опасны бактерии для человека/|
<<lessonAdminPanel>>/%
!!!Описание
Одни бактерии вызывают болезни, а другие помогают их лечить. Одни портят наши продукты, а другие, наоборот, делают их ещё вкуснее!
!%//%
!gallery data
{"data":[
["01 вредная бактерия.jpg"],
["02 полезная бактерия.jpg"],
["03 бактерия-повар.jpg"],
["04 молоко.jpg"],
["05 кисломолочные продукты и молоко.jpg"],
["06 бактерия-дворник.jpg"],
["07 бактерия-фармацевт.jpg"],
["08 инсулин.jpg"],
["09 кишечник.jpg"],
["10 бактерии в кишечнике.jpg"],
["11 болеющий мальчик.jpg"],
["12 антибиотики.jpg"],
["13 глисты в кишечнике.jpg"],
["14 Айболит.jpg"],
["15 суп.jpg"],
["16 суп испортился.jpg"],
["17 молоко.jpg"],
["18 молоко скисло.jpg"],
["19 мясо.jpg"],
["20 мясо испортилось.jpg"],
["21 холодильник.jpg"],
["22 холодильник.jpg"],
["23 грязные руки.jpg"],
["24 бактерия замёрзла.jpg"],
["25 бактерия спит.jpg"],
["26 мытьё рук.jpg"],
["27 мытьё фруктов.jpg"]
],
"options":{}}
!%/
|visibleName|Чем полезны и опасны бактерии для человека|
|ссылка на контент шага|https://youtu.be/Cas0yGMpDtU|
|тип шага|video|
|ссылка на контент шага|./oms/137-2/|
|тип шага|task|
|visibleName|Польза бактерий|
|ссылка на контент шага|./environment/JPG/text_37_1.jpg|
|тип шага|pager|
|visibleName|Бактерии-повара и бактерии-дворники|
|table of contents thumb|text_37_1.jpg|
|ссылка на контент шага|./environment/JPG/text_37_2.jpg|
|тип шага|pager|
|visibleName|Бактерии-соседи и бактерии-фармацевты|
|table of contents thumb|text_37_2.jpg|
|ссылка на контент шага|./environment/JPG/text_37_3.jpg|
|тип шага|pager|
|visibleName|Чем опасны бактерии для человека|
|table of contents thumb|text_37_3.jpg|
|visibleName|Вред от бактерий|
|ссылка на контент шага|./oms/CS137-1/|
|тип шага|task|
|contentHeight|962|
|ссылка на материал|./environment/PDF/37-Чем_полезны_и_опасны_бактерии_для_человека-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|899 Кб|
|ссылка на материал|./environment/PDF_2/37-Чем_полезны_и_опасны_бактерии_для_человека-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|258 Кб|
|visibleName||
|galleryFolder|environment/galleries/38. Роль бактерий в природе/|
<<lessonAdminPanel>>/%
!!!Описание
Вы уже знаете, что бактерии прибираются в природе вместе с грибами. Но это не единственная их роль в природе.
!%//%
!gallery data
{"data":[
["01 бактерия.jpg","","",""],
["02 полезная бактерия.jpg","","",""],
["03 вредная бактерия.jpg","","",""],
["04 древний пейзаж Земли.jpg","","",""],
["05 бактерии в природе.jpg","","",""],
["06 питание бактерии.jpg","","",""],
["07 земляника.jpg","","",""],
["08 антибиотики.jpg","","",""],
["09 гриб и бактерия.jpg","","",""],
["10 горох.jpg","","https://www.flickr.com/photos/54912928@N06/5087112309/","Isabel Eyre"],
["11 горох.jpg","","",""],
["12 бактерии.jpg","","",""],
["13 горох и бактерия.jpg","","",""],
["14 болеющий мальчик.jpg","","",""],
["15 врач.jpg","","",""],
["16 губка.jpg","","",""],
["17 двустворчатый моллюск.jpg","","",""],
["18 цианобактерии и фотосинтез.jpg","","",""],
["19 цианобактерии.jpg","","",""],
["20 цианобактерии.jpg","","https://www.flickr.com/photos/jimmysymons/15636345407/","Jimmy - S"],
["21 пищевая цепочка.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Роль бактерий в природе|
|ссылка на контент шага|https://youtu.be/bs00slmUEb8|
|тип шага|video|
|visibleName|Роли грибов и бактерий|
|ссылка на контент шага|./oms/138-1/|
|тип шага|task|
|ссылка на контент шага|./oms/138-3/|
|тип шага|task|
|visibleName|Бактерии|
|ссылка на контент шага|./environment/JPG/text_38_1.jpg|
|тип шага|pager|
|visibleName|Роль бактерий в природе|
|table of contents thumb|text_38_1.jpg|
|ссылка на контент шага|./environment/JPG/text_38_2.jpg|
|тип шага|pager|
|visibleName|Цианобактерии|
|table of contents thumb|text_38_2.jpg|
|ссылка на материал|./environment/PDF/38-Роль_бактерий_в_природе-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|486 Кб|
|ссылка на материал|./environment/PDF_2/38-Роль_бактерий_в_природе-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|222 Кб|
|visibleName||
|galleryFolder|environment/galleries/39. Лишайники/|
<<lessonAdminPanel>>/%
!!!Описание
На нашем острове осталась ещё одна точка, в которой мы пока не были — Город лишайников. На этом уроке мы зайдём в него и узнаем, как лишайники устроены, чем они полезны людям и что означает научное слово «симбиоз».
!%//%
!gallery data
{"data":[
["01 гриб и цианобактерия.jpg","","",""],
["02 мицелий и цианобактерии.jpg","","",""],
["03 цианобактерии и фотосинтез.jpg","","",""],
["04 симбиоз дерева и грибов.jpg","","",""],
["05 симбиоз человека и бактерий.jpg","","",""],
["06 кустистый лишайник.jpg","","",""],
["07 кустистый лишайник.jpg","","https://www.flickr.com/photos/wild_attributes/9605479820/","Bob Danley"],
["08 листоватый лишайник.jpg","","",""],
["09 листоватый лишайник.jpg","","https://www.flickr.com/photos/imbala/2422204158/","imbala"],
["10 накипной лишайник.jpg","","",""],
["11 накипной лишайник.jpg","","https://www.flickr.com/photos/openspacer/11842324086/","alice cummings"],
["12 накипной лишайник.jpg","","https://www.flickr.com/photos/benetd/134314157/","benet2006"],
["13 лишайниковая манна.jpg","","https://www.flickr.com/photos/copepodo/3548721256/","Rafael Medina"],
["14 библейская манна.jpg","","https://www.flickr.com/photos/ergsart/22277677112/","Art Gallery ErgsArt - by ErgSap"],
["15 манна и пустыня.jpg","","",""],
["16 цетрария.jpg","","https://www.flickr.com/photos/cladoniophile/7331793694/","Brian Eversham"],
["17 северный олень.jpg","","",""],
["18 северный олень ест ягель.jpg","","",""],
["19 цветной лишайник.jpg","","https://www.flickr.com/photos/zoltan/5072867643/","Zoltan Bartalis"],
["20 лишайник для лакмуса.jpg","","https://www.flickr.com/photos/107551605@N04/13008957623/","Peter Keightley"],
["21 раствор лакмуса.jpg","","",""],
["22 покрасневший раствор лакмуса.jpg","","",""],
["23 лишайник на камне.jpg","","https://www.flickr.com/photos/generated/6168124412/","Jared Tarbell"],
["24 лишайник на заборе.jpg","","https://www.flickr.com/photos/notacowgirl/3973834716/","linda stich"],
["25 лишайник на северной почве.jpg","","https://www.flickr.com/photos/carstonc/6978551701/","Carston Curd"],
["26 лишайник на скале.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Лишайники|
|ссылка на контент шага|https://youtu.be/Exd0fXqNVJM|
|тип шага|video|
|visibleName|Польза от лишайников|
|ссылка на контент шага|./oms/139-2/|
|тип шага|task|
|visibleName|Симбиоз|
|ссылка на контент шага|./oms/139-4/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_39_1.jpg|
|тип шага|pager|
|visibleName|Кто такие лишайники|
|table of contents thumb|text_39_1.jpg|
|ссылка на контент шага|./environment/JPG/text_39_2.jpg|
|тип шага|pager|
|visibleName|Жизненные формы лишайников|
|table of contents thumb|text_39_2.jpg|
|ссылка на контент шага|./environment/JPG/text_39_3.jpg|
|тип шага|pager|
|visibleName|Значение лишайников|
|table of contents thumb|text_39_3.jpg|
|visibleName|Строение и виды лишайников|
|ссылка на контент шага|./oms/OMS39-3/|
|тип шага|task|
|contentHeight|780|
|ссылка на материал|./environment/PDF/39-Лишайники-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,1 Мб|
|ссылка на материал|./environment/PDF_2/39-Лишайники-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|267 Кб|
|ссылка на материал|./environment/PDF/03-Царства_живой_природы-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|345 Кб|
|ссылка на материал|./environment/PDF_2/03-Царства_живой_природы-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|116 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/04. Признаки животных/|
!!!Описание
Наше путешествие по миру живого начнётся с царства животных. Давайте разберёмся, что общего у жителей этого царства.
!Дополнительно об уроке
!gallery data
{"data":[
["01 лев питается другими животными.jpg"],
["02 корова питается растениями.jpg"],
["03 губка питается бактериями.jpg"],
["04 животные питаются представителями всех царств.jpg"],
["05 животные активно двигаются.jpg"],
["06 животные растут не всю жизнь.jpg"]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/-HFuePqtadM|
|visibleName|Признаки животных|
|тип шага|video|
|ссылка на контент шага|./oms/104-1/|
|тип шага|task|
|visibleName|Признаки животных|
|visibleName|Признаки животных и признаки живого|
|ссылка на контент шага|./oms/104-2/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_04_1.jpg|
|тип шага|pager|
|visibleName|Признаки животных|
|table of contents thumb|text_04_1.jpg|
|visibleName||
|galleryFolder|environment/galleries/40. Вирусы/|
<<lessonAdminPanel>>/%
!!!Описание
Что это за организмы, да и организмы ли это вообще? Где они на нашей карте? Ведь мы уже обошли все царства и даже город лишайников!
!%//%
!gallery data
{"data":[
["01 вирус.jpg","","",""],
["02 книга вируса.jpg","","",""],
["03 клетка.jpg","","",""],
["04 нос.jpg","","",""],
["05 ветка.jpg","","",""],
["06 клетка.jpg","","",""],
["07 клетка и вирус.jpg","","",""],
["08 клетка и вирус.jpg","","",""],
["09 клетка.jpg","","",""],
["10 признаки вирусов.jpg","","",""],
["11 признаки вирусов.jpg","","",""],
["12 вредный вирус.jpg","","",""],
["13 грипп.jpg","","https://www.flickr.com/photos/sanofi-pasteur/5284032560/","Sanofi Pasteur"],
["14 ветряная оспа.jpg","","",""],
["15 корь.jpg","","https://www.flickr.com/photos/sanofi-pasteur/5279798333/in/album-72157625526694383/","Sanofi Pasteur"],
["16 краснуха.jpg","","https://www.flickr.com/photos/sanofi-pasteur/5280404370/in/album-72157625526694383/","Sanofi Pasteur"],
["17 прививка.jpg","","",""],
["18 больная корова.jpg","","",""],
["19 больная корова.jpg","","",""],
["20 полезный вирус.jpg","","",""],
["21 бактериофаг.jpg","","https://commons.wikimedia.org/wiki/File:Phage.jpg","Dr Graham Beards"],
["22 бактериофаги в ампуле.jpg","","",""],
["23 аптека.jpg","","",""],
["24 бактериофаг.jpg","","",""],
["25 остров вирусов.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Вирусы|
|ссылка на контент шага|https://youtu.be/VeHKft7ey9s|
|тип шага|video|
|ссылка на контент шага|./oms/140-1/|
|тип шага|task|
|visibleName|Признаки вирусов|
|ссылка на контент шага|./environment/JPG/text_40_1.jpg|
|тип шага|pager|
|visibleName|Признаки вирусов|
|table of contents thumb|text_40_1.jpg|
|ссылка на контент шага|./environment/JPG/text_40_2.jpg|
|тип шага|pager|
|visibleName|Жизнь вируса|
|table of contents thumb|text_40_2.jpg|
|ссылка на контент шага|./environment/JPG/text_40_3.jpg|
|тип шага|pager|
|visibleName|Чем вирусы опасны и полезны для человека|
|table of contents thumb|text_40_3.jpg|
|visibleName|Вирус заражает клетку|
|ссылка на контент шага|./oms/OMS40-2/|
|тип шага|task|
|contentHeight|796|
|visibleName|Полезные вирусы|
|ссылка на контент шага|./oms/OMS40-3/|
|тип шага|task|
|contentHeight|796|
|ссылка на материал|./environment/PDF/40-Вирусы-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|762 Кб|
|ссылка на материал|./environment/PDF_2/40-Вирусы-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|236 Кб|
|visibleName||
|galleryFolder|environment/galleries/41. Природные сообщества/|
<<lessonAdminPanel>>/%
!!!Описание
На нашей карте организмы разделены на царства. Но ведь в природе они перемешаны! Мы начинаем разговор о природных сообществах: о том, какие растения, животные, бактерии и грибы живут вместе и как они зависят друг от друга.
!%//%
!gallery data
{"data":[
["01 заяц.jpg"],
["02 волк.jpg"],
["03 бегемот.jpg"],
["04 акула.jpg"],
["05 ёж.jpg"],
["06 осьминог.jpg"],
["07 приспособленность к воде.jpg"],
["08 приспособленность к пустыне.jpg"],
["09 приспособленность к пустыне.jpg"],
["10 приспособленность к полёту.jpg"],
["11 приспособленность к копанию.jpg"],
["12 соседство волка и зайца.jpg"],
["13 зайцы в лесу.jpg"],
["14 волки и зайцы в лесу.jpg"],
["15 волки в лесу.jpg"],
["16 равновесие.jpg"],
["17 равновесие.jpg"],
["18 фотосинтез.jpg"],
["19 цепь питания.jpg"],
["20 цепь питания.jpg"],
["21 цепь питания.jpg"],
["22 звенья пищевой цепи.jpg"],
["23 взаимосвязь организмов.jpg"],
["24 взаимосвязь организмов.jpg"],
["25 дедушка.jpg"],
["26 сова.jpg"],
["27 мышь.jpg"],
["28 мыши.jpg"],
["29 шмели.jpg"],
["30 шмель.jpg"],
["31 клевер.jpg"],
["32 клевер.jpg"],
["33 корова.jpg"],
["34 сказка о сове.jpg"],
["35 лесное сообщество.jpg"],
["36 сообщество озера.jpg"]
],
"options":{}}
!%/
|visibleName|Природные сообщества|
|ссылка на контент шага|https://youtu.be/YtBj5b_cHbA|
|тип шага|video|
|тип шага|task|
|ссылка на контент шага|./oms/141-2/|
|visibleName|Пищевая цепь|
|ссылка на контент шага|./environment/JPG/text_41_1.jpg|
|тип шага|pager|
|visibleName|Что такое сообщество|
|table of contents thumb|text_41_1.jpg|
|ссылка на контент шага|./environment/JPG/text_41_2.jpg|
|тип шага|pager|
|visibleName|Цепи питания|
|table of contents thumb|text_41_2.jpg|
|ссылка на материал|./environment/PDF/41-Природные_сообщества-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|2,8 Мб|
|ссылка на материал|./environment/PDF_2/41-Природные_сообщества-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|97 Кб|
|visibleName|42. Сообщество леса|
|galleryFolder|environment/galleries/42. Сообщество леса/|
<<lessonAdminPanel>>/%
!!!Описание
Лес — это одно из природных сообществ. Ведь он состоит не только из деревьев: в нём много других растений, в нём живут птицы и звери, растут грибы. Мы поговорим о том, из каких этажей состоит лес, какие леса бывают и чем они полезны для человека.
!%//%
!gallery data
{"data":[
["01 лес.jpg"],
["02 хвойный лес.jpg"],
["03 лиственный лес.jpg"],
["04 березняк.jpg"],
["05 берёзы.jpg"],
["06 ельник.jpg"],
["07 ели.jpg"],
["08 сосняк, бор.jpg"],
["09 сосны.jpg"],
["10 дубрава.jpg"],
["11 буковый лес.jpg"],
["12 бук.jpg"],
["13 смешанный лес.jpg"],
["14 ярусы леса.jpg"],
["15 папоротники.jpg"],
["16 кустарники.jpg"],
["17 кустарники.jpg"],
["18 черника и брусника.jpg"],
["19 трутовик.jpg"],
["20 птицы лесного сообщества.jpg"],
["21 подберёзовик.jpg"],
["22 дом.jpg"],
["23 бумага книги.jpg"],
["24 лак для дерева.jpg"],
["25 лесные полосы.jpg"],
["26 отдых в лесу.jpg"],
["27 фотосинтез и лес.jpg"],
["28 ярусы леса.jpg"]
],
"options":{}}
!%/
|visibleName|Сообщество леса|
|ссылка на контент шага|https://youtu.be/pUIGyePXg-I|
|тип шага|video|
|visibleName|Виды лесов|
|ссылка на контент шага|./oms/142-1/|
|тип шага|task|
|visibleName|Лесные этажи|
|ссылка на контент шага|./environment/JPG/text_42_1.jpg|
|тип шага|pager|
|table of contents thumb|text_42_1.jpg|
|visibleName|Виды лесов|
|ссылка на контент шага|./environment/JPG/text_42_2.jpg|
|тип шага|pager|
|table of contents thumb|text_42_2.jpg|
|visibleName|Чем леса полезны для человека|
|ссылка на контент шага|./environment/JPG/text_42_3.jpg|
|тип шага|pager|
|table of contents thumb|text_42_3.jpg|
|ссылка на контент шага|./environment/JPG/text_42_4.jpg|
|тип шага|pager|
|table of contents thumb|text_42_4.jpg|
|visibleName|Обитатели леса|
|ссылка на материал|./environment/PDF/42-Сообщество_леса-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,3 Мб|
|ссылка на материал|./environment/PDF_2/42-Сообщество_леса-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|179 Кб|
|visibleName||
|galleryFolder|environment/galleries/43. Охрана лесных сообществ/|
<<lessonAdminPanel>>/%
!!!Описание
Как мы выяснили на прошлом уроке, леса приносят большую пользу. Поэтому люди стараются защитить их от опасностей. Что это за опасности и как с ними бороться, мы и обсудим на уроке.
!%//%
!gallery data
{"data":[
["01 карта леса.jpg"],
["02 разведение костра.jpg"],
["03 разведение костра.jpg"],
["04 разведение костра.jpg"],
["05 разведение костра.jpg"],
["06 браконьер.jpg"],
["07 браконьер за решёткой.jpg"],
["08 лесные полосы.jpg"],
["09 лесной склон.jpg"]
],
"options":{}}
!%/
|visibleName|Охрана лесных сообществ|
|ссылка на контент шага|https://youtu.be/qt6cSPsdL_E|
|тип шага|video|
|visibleName|Лесные профессии|
|ссылка на контент шага|./oms/143-3/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_43_1.jpg|
|тип шага|pager|
|visibleName|Охрана лесов от огня|
|table of contents thumb|text_43_1.jpg|
|ссылка на контент шага|./environment/JPG/text_43_2.jpg|
|тип шага|pager|
|visibleName|Охрана лесов от насекомых и от охотников|
|table of contents thumb|text_43_2.jpg|
|ссылка на материал|./environment/PDF/43-Охрана_лесных_сообществ-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|500 Кб|
|ссылка на материал|./environment/PDF_2/43-Охрана_лесных_сообществ-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|145 Кб|
|visibleName||
|galleryFolder|environment/galleries/44. Сообщество луга/|
<<lessonAdminPanel>>/%
!!!Описание
Как и лес, лег — это сложно устроенное сообщество со своими этажами и цепями питания.
!%//%
!gallery data
{"data":[
["01 тимофеевка.jpg","","https://www.flickr.com/photos/pelayobotanica/16373280929/","Javier Pelayo"],
["02 ежа.jpg","","https://www.flickr.com/photos/14230388@N03/3533383972/","Bob Osborn"],
["03 донник.jpg","","https://www.flickr.com/photos/134727273@N06/23167786625/","Takashi Hoshide"],
["04 клевер.jpg","","https://www.flickr.com/photos/tommyhaga/7326661890/","TommyHAGA"],
["05 подмаренник.jpg","","https://commons.wikimedia.org/wiki/File:Vall%C3%A9e_du_Marcadau_95.JPG","Guérin Nicolas"],
["06 зверобой.jpg","","https://www.flickr.com/photos/mike_page_gallery/4586460820/","Mike Page"],
["07 звездчатка.jpg","","https://www.flickr.com/photos/iainmclauchlan/5653438520/","Iain McLauchlan"],
["08 вьюнок.jpg","","https://www.flickr.com/photos/ang1852/9385796354/","Angela"],
["09 горошек.jpg","","https://www.flickr.com/photos/stephenbuchan/6085372278/","Stephen Buchan"],
["10 равновесие.jpg","","",""],
["11 цепь питания.jpg","","",""],
["12 повреждённый лист.jpg","","https://www.flickr.com/photos/laurenjacobsen/4891568739/","laurenjacobsen"],
["13 улитка.jpg","","https://www.flickr.com/photos/tamaki/1004370/","Yamanaka Tamaki"],
["14 гусеница.jpg","","https://www.flickr.com/photos/37957896@N03/7119787831/","Wolfgang Walz Hillermann"],
["15 жук-листоед.jpg","","https://www.flickr.com/photos/42998647@N07/16654293337/","Simon Lai"],
["16 кобылка.jpg","","https://www.flickr.com/photos/sanmartin/5012159699/","Gilles San Martin"],
["17 скворец.jpg","","https://www.flickr.com/photos/114781512@N02/15855812119/","Peanut1371"],
["18 воробей.jpg","","https://www.flickr.com/photos/jayyeung71/2222984790/","jay yeung"],
["19 коростель.jpg","","https://www.flickr.com/photos/68769579@N07/14161660807/","Stevie Smith"],
["20 сокол.jpg","","https://www.flickr.com/photos/macngaleria/18700599512/","macn galeria"],
["21 сова.jpg","","https://www.flickr.com/photos/rick_leche/388569179/","Rick Leche - Photography"],
["22 клевер и шмели.jpg","","",""],
["23 пчёлы.jpg","","",""],
["24 шмель.jpg","","",""],
["25 бабочка.jpg","","",""],
["26 муха.jpg","","",""],
["27 жук.jpg","","",""],
["28 сено.jpg","","https://www.flickr.com/photos/92867842@N03/15000717586/","aine ni giolla phadraig"],
["29 поле.jpg","","",""],
["30 рожь.jpg","","https://www.flickr.com/photos/weiswaldemar/14442719421/","Waldemar Weiss"],
["31 овёс.jpg","","https://www.flickr.com/photos/bolandfamily0621/17120524061/","Brad Boland"],
["32 пшеница.jpg","","https://www.flickr.com/photos/vladimirf/4874830533/","KeksKlip"],
["33 луг.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Сообщество луга|
|ссылка на контент шага|https://youtu.be/hcErLxT-3HY|
|тип шага|video|
|visibleName|Растения луга|
|ссылка на контент шага|./oms/144-1/|
|тип шага|task|
|visibleName|Сообщество луга|
|ссылка на контент шага|./environment/JPG/text_44_1.jpg|
|тип шага|pager|
|table of contents thumb|text_44_1.jpg|
|ссылка на контент шага|./environment/JPG/text_44_2.jpg|
|тип шага|pager|
|table of contents thumb|text_44_2.jpg|
|visibleName|Обитатели луга|
|ссылка на материал|./environment/PDF/44-Сообщество_луга-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|367 Кб|
|ссылка на материал|./environment/PDF_2/44-Сообщество_луга-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|192 Кб|
|visibleName||
|galleryFolder|environment/galleries/45. Сообщество озера/|
<<lessonAdminPanel>>/%
!!!Описание
Мы познакомимся с ещё одним типом природных сообществ и обсудим, что общего у всех водных жителей, какими способами можно охотиться в озере и почему озёра важны для людей.
!%//%
!gallery data
{"data":[
["01 сообщество озера.jpg","","",""],
["02 ласты.jpg","","",""],
["03 морская черепаха.jpg","","",""],
["04 весло.jpg","","",""],
["05 жук-плавунец.jpg","","",""],
["06 акула.jpg","","",""],
["07 торпеда.jpg","","",""],
["08 дафния.jpg","","",""],
["09 жабры рыбы.jpg","","",""],
["10 улитка-прудовик.jpg","","",""],
["11 жабры рыбы.jpg","","",""],
["12 рак.jpg","","",""],
["13 личинка стрекозы.jpg","","",""],
["14 двустворчатый моллюск.jpg","","",""],
["15 губка.jpg","","",""],
["16 бадяга.jpg","","https://www.flickr.com/photos/qubsoutreach/5915229514/","Queen's University Biological Station Outreach"],
["17 водоросли.jpg","","",""],
["18 улотрикс.jpg","","https://commons.wikimedia.org/wiki/File:Spyrogyra-bgiu.jpg","Bogdan"],
["19 спирогира.jpg","","www.shrimp-tank.com","ShrimpTank"],
["20 элодея.jpg","","https://www.flickr.com/photos/monikalaplante/6026456315/","Monika LaPlante"],
["21 ряска.jpg","","https://www.flickr.com/photos/celestacey/5574988705/","celestacey"],
["22 ряска.jpg","","https://www.flickr.com/photos/aeschylus18917/5616658183/","Daniel Ruyle"],
["23 кувшинка.jpg","","https://www.flickr.com/photos/henkmulder/29363237187/","Henk Mulder"],
["24 кубышка.jpg","","https://www.flickr.com/photos/92740970@N03/16205464470/","Zi W"],
["25 кувшинка в воде.jpg","","",""],
["26 катушка.jpg","","https://www.flickr.com/photos/21529332@N08/13907310997/","rjadams55"],
["27 прудовик.jpg","","https://commons.wikimedia.org/wiki/File:Water_snail_Rex_2.jpg","Rex / Bart Slingerland"],
["28 карп.jpg","","https://www.flickr.com/photos/cas_docents/4663516705/","Ron DeCloux"],
["29 толстолобик.jpg","","http://www.hlasek.com/aristichthys_nobilis1pl.html","lubomir hlasek"],
["30 окунь.jpg","","https://commons.wikimedia.org/wiki/File:PercheCommune.jpg","Dgp.martin"],
["31 щука.jpg","","https://commons.wikimedia.org/wiki/File:Esox_Lucius.JPG","Georg Mittenecker"],
["32 стрекоза.jpg","","",""],
["33 цепь питания.jpg","","",""],
["34 стакан воды.jpg","","",""],
["35 водохранилище.jpg","","https://www.flickr.com/photos/qonzo/15464275099/","qonzo"],
["36 рыбалка.jpg","","https://www.flickr.com/photos/metroparks/10460789386/","fiveriversmetroparks"],
["37 озеро.jpg","","https://www.flickr.com/photos/sweet_over_photos/9774111385/","Olga Kruglova"]
],
"options":{}}
!%/
|visibleName|Сообщество озера|
|ссылка на контент шага|https://youtu.be/97glHLgJclE|
|тип шага|video|
|ссылка на контент шага|./oms/145-1/|
|тип шага|task|
|visibleName|Обитатели озера|
|visibleName|Сообщество озера|
|ссылка на контент шага|./environment/JPG/text_45_1.jpg|
|тип шага|pager|
|table of contents thumb|text_45_1.jpg|
|visibleName|Обитатели озера|
|ссылка на контент шага|./environment/JPG/text_45_2.jpg|
|тип шага|pager|
|table of contents thumb|text_45_2.jpg|
|ссылка на материал|./environment/PDF/45-Сообщество_озера-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|393 Кб|
|ссылка на материал|./environment/PDF_2/45-Сообщество_озера-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|95 Кб|
|visibleName||
|galleryFolder|environment/galleries/46. Охрана природы/|
<<lessonAdminPanel>>/%
!!!Описание
Человек с давних времён берёт у природы то, что ему нужно. Например, вспахивает поле там, где был лес, и луговые жители остаются без дома. Мы обсудим, как учёные и инженеры стараются защитить природу и как в этом деле можете поучаствовать вы.
!%//%
!gallery data
{"data":[
["01 гнездо и птица.jpg","","",""],
["02 зима.jpg","","https://www.flickr.com/photos/lharkness/2240026440/","Lee Harkness"],
["03 ураган.jpg","","",""],
["04 засуха.jpg","","",""],
["05 саранча.jpg","","https://www.flickr.com/photos/131782374@N03/27281774750/","Вести Детально"],
["06 цепь питания.jpg","","",""],
["07 гнездо и птица.jpg","","",""],
["08 лес.jpg","","",""],
["09 вырубленный лес.jpg","","",""],
["10 луг.jpg","","",""],
["11 поле.jpg","","",""],
["12 учёные.jpg","","",""],
["13 красная книга.jpg","","",""],
["14 браконьер.jpg","","",""],
["15 браконьер за решёткой.jpg","","",""],
["16 стеллерова корова.jpg","","",""],
["17 бизон.jpg","","https://www.flickr.com/photos/tdino/5988529384/","Dean Taylor"],
["18 зубр.jpg","","https://commons.wikimedia.org/wiki/File:Bison_bonasus_(Linnaeus_1758).jpg","Michael Gäbler"],
["19 осушенное болото.jpg","","",""],
["20 озеро.jpg","","",""],
["21 загрязнённое озеро.jpg","","",""],
["22 загрязнённая вода.jpg","","",""],
["23 ноутбук.jpg","","",""],
["24 ракета.jpg","","",""],
["25 учёные.jpg","","",""],
["26 карта заповедников.jpg","","",""],
["27 баргузинский заповедник.jpg","","",""],
["28 баргузинский соболь.jpg","","",""],
["29 соболь в красной книге.jpg","","",""],
["30 воронежский заповедник.jpg","","",""],
["31 бобр.jpg","","",""],
["32 воронежский заповедник.jpg","","http://zapovednik-vrn.ru/gallery/photo-gallery/priroda/pejzazhi/","Александр Мишин"],
["33 бобровая плотина.jpg","","",""],
["34 ольха и ива.jpg","","",""],
["35 ольха.jpg","","",""],
["36 ива.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Охрана природы|
|ссылка на контент шага|https://youtu.be/VbhCvsbqwHo|
|тип шага|video|
|visibleName|Класс волчат|
|ссылка на контент шага|./oms/146-1/|
|тип шага|task|
|visibleName|Охрана природы|
|ссылка на контент шага|./oms/146-2/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_46_1.jpg|
|тип шага|pager|
|visibleName|Охрана природы|
|table of contents thumb|text_46_1.jpg|
|ссылка на контент шага|./environment/JPG/text_46_2.jpg|
|тип шага|pager|
|visibleName|Красная книга|
|table of contents thumb|text_46_2.jpg|
|ссылка на материал|./environment/PDF/46-Охрана_природы-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|549 Кб|
|ссылка на материал|./environment/PDF_2/46-Охрана_природы-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|108 Кб|
|visibleName||
|galleryFolder|environment/galleries/47. Летние задания/|
<<lessonAdminPanel>>/%
!!!Описание
Летом изучать окружающий мир лучше всего. Правда, летом нет уроков, зато есть задание на каникулы.
Мы предложим несколько вариантов, а вы выберите самый интересный!
!%//%
!gallery data
{"data":[
["01 страница гербария.jpg"],
["02 что взять с собой в экспедицию за почвой.jpg"],
["03 выкапываем образец почвы.jpg"],
["04 пакет с почвой.jpg"]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/JraID0yFlmc|
|visibleName|Летние задания|
|тип шага|video|
|ссылка на контент шага|./environment/JPG/text_47_1.jpg|
|тип шага|pager|
|visibleName|Наблюдение за животными|
|table of contents thumb|text_47_1.jpg|
|ссылка на контент шага|./environment/JPG/text_47_2.jpg|
|тип шага|pager|
|visibleName|Коллекции сухих плодов и камней|
|table of contents thumb|text_47_2.jpg|
|ссылка на контент шага|./environment/JPG/text_47_3.jpg|
|тип шага|pager|
|visibleName|Коллекция почвы|
|table of contents thumb|text_47_3.jpg|
|ссылка на контент шага|./environment/JPG/text_47_4.jpg|
|тип шага|pager|
|visibleName|Гербарий|
|table of contents thumb|text_47_4.jpg|
|ссылка на материал|./environment/PDF/47-Летние_задания-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,2 Мб|
|ссылка на материал|./environment/PDF_2/47-Летние_задания-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|120 Кб|
|ссылка на материал|./environment/PDF/04-Признаки_животных-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|118 Кб|
|ссылка на материал|./environment/PDF_2/04-Признаки_животных-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|172 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/05. Медузы и губки/|
!!!Описание
Царство животных делится на две большие части. Мы начнём с беспозвоночных животных — то есть с тех, у кого нет внутреннего скелета. К ним относятся самые древние жители царства животных: медузы и их родственники.
!Дополнительно об уроке
!gallery data
{"data":[
["01 позвоночное.jpg",null,null,null],
["02 позвоночное — внутри кости.jpg",null,null,null],
["03 беспозвоночное.jpg",null,null,null],
["04 беспозвоночное — внутри костей нет.jpg",null,null,null],
["05 «княжества» в царстве животных.jpg","«Княжества» в царстве животных",null,null],
["06 медуза.jpg",null,null,null],
["07 коралл.jpg",null,null,null],
["08 коралловый полип крупно.jpg",null,null,null],
["09 актиния.jpg",null,null,null],
["10 губка.jpg",null,null,null],
["11 губки 1.jpg",null,"https://www.flickr.com/photos/edbierman/4279628779/","Ed Bierman"],
["12 губки 2.jpg",null,"https://www.flickr.com/photos/dkeats/6377736777","Derek Keats"],
["13 фильтр.jpg",null,null,null]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/FPVcL0LtJ18|
|тип шага|video|
|visibleName|Медузы и губки|
|visibleName|Медуза и актиния|
|ссылка на контент шага|./oms/105-2/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_05_1.jpg|
|тип шага|pager|
|visibleName|Как устроено царство животных|
|table of contents thumb|text_05_1.jpg|
|ссылка на контент шага|./environment/JPG/text_05_2.jpg|
|тип шага|pager|
|visibleName|Медузы и кораллы|
|table of contents thumb|text_05_2.jpg|
|ссылка на контент шага|./environment/JPG/text_05_3.jpg|
|тип шага|pager|
|visibleName|Актинии и губки|
|table of contents thumb|text_05_3.jpg|
|ссылка на материал|./environment/PDF/05-Медузы_и_губки-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,1 Мб|
|ссылка на материал|./environment/PDF_2/05-Медузы_и_губки-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|237 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/06. Черви/|
!!!Описание
Дождевого червя видели все. А знакомы ли вы с червями, похожими на ленты, листики и птичьи перья?
!Дополнительно об уроке
!gallery data
{"data":[
["01 морской червь с домиком.jpg","","https://www.flickr.com/photos/britusa/7546847066/","Terry Grogan"],
["02 морской червь с домиком.jpg","","https://www.flickr.com/photos/92516268@N06/36707359315/","Jonathan Amato"],
["03 морской червь.jpg","","",""],
["04 дождевой червь.jpg","","",""],
["05 дождевой червь ест листья.jpg","","",""],
["06 дождевой червь рыхлит почву.jpg","","",""],
["07 глист в животе.jpg","","",""],
["08 плоский червь.jpg","","",""],
["09 плоский червь — яйца.jpg","","",""],
["10 плоский червь — яйцо крупно.jpg","","",""],
["11 плоский червь — личинка.jpg","","",""],
["12 заразиться глистами можно на улице.jpg","","",""],
["13 заразиться глистами можно, если грызть ногти.jpg","","",""],
["14 заразиться глистами можно от домашних животных.jpg","","",""],
["15 заразиться глистами можно от немытых фруктов.jpg","","",""],
["16 заразиться глистами можно, если грызть травинки.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Черви|
|ссылка на контент шага|https://youtu.be/eub04j3ry2g|
|тип шага|video|
|visibleName|Черви|
|ссылка на контент шага|./oms/106-1/|
|тип шага|task|
|ссылка на контент шага|./oms/106-3/|
|тип шага|task|
|visibleName|Дождевые черви|
|ссылка на контент шага|./environment/JPG/text_06_1.jpg|
|тип шага|pager|
|visibleName|Морские и дождевые черви|
|table of contents thumb|text_06_1.jpg|
|ссылка на контент шага|./environment/JPG/text_06_2.jpg|
|тип шага|pager|
|visibleName|Глисты|
|table of contents thumb|text_06_2.jpg|
|ссылка на материал|./environment/PDF/06-Черви-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,2 Мб|
|ссылка на материал|./environment/PDF_2/06-Черви-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|175 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/07. Моллюски/|
!!!Описание
Моллюски бывают очень разными: одни медленно ползают по суше, другие стремительно плавают по морю.
!Дополнительно об уроке
!gallery data
{"data":[
["01 улитка.jpg",null,null,null],
["02 слизень.jpg",null,null,null],
["03 садовая улитка.jpg",null,"https://commons.wikimedia.org/wiki/File:Cepaea_hortensis_01_THWZ.jpg","Thomas Zimmermann"],
["04 полевой слизень.jpg",null,"https://www.flickr.com/photos/dhobern/14676179872","Donald Hobern"],
["05 прудовик обыкновенный.jpg",null,"https://commons.wikimedia.org/wiki/File:Water_snail_Rex_2.jpg","Rex / Bart Slingerland"],
["06 катушка.jpg",null,"https://www.flickr.com/photos/21529332@N08/13907310997","rjadams55"],
["07 слизень ест лист.jpg",null,"https://commons.wikimedia.org/wiki/File:Eating_slug.jpg","Karlprof"],
["08 улитка ест лист.jpg",null,"https://commons.wikimedia.org/wiki/File:Brazilian_Snail.jpg","Dcschmidt"],
["09 робкий человек в шкафу.jpg",null,"",""],
["10 двустворчатый моллюск.jpg",null,"",""],
["11 жемчужина.jpg",null,"",""],
["12 перловица.jpg",null,"https://commons.wikimedia.org/wiki/File:Unio_pictorum_2015.jpg","G.-U. Tolkiehn"],
["13 перловица.jpg",null,"",""],
["14 беззубка.jpg",null,"https://commons.wikimedia.org/wiki/File:Anodonta_cygnea_-_Swan_Mussel_pair.JPG","Rosser1954"],
["15 осьминог.jpg",null,"",""],
["16 осьминог.jpg",null,"https://commons.wikimedia.org/wiki/File:Octopus_at_Kelly_Tarlton%27s.jpg","Pseudopanax"],
["17 кальмар.jpg",null,null,null],
["18 кальмар.jpg",null,"https://commons.wikimedia.org/wiki/File:Squid_colors_2.tif","Betty Wills"],
["19 каракатица.jpg",null,"",""],
["20 каракатица.jpg",null,"https://it.m.wikipedia.org/wiki/File:Cuttlefish_@_Ocean%C3%A1rio_de_Lisboa.jpg","David Sim"],
["21 гребешок.jpg","Гребешок",null,null],
["22 одноногий пират.jpg","Одноногий пират",null,null],
["23 старая раковина.jpg","Старая раковина",null,null],
["24 тридакна.jpg","Тридакна",null,null]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/6OGCE9ad3Ow|
|тип шага|video|
|visibleName|Моллюски|
|ссылка на контент шага|./oms/107-2/|
|тип шага|task|
|visibleName|Двустворчатый моллюск|
|visibleName|Школа моллюсков|
|ссылка на контент шага|./oms/107-5/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_07_1.jpg|
|тип шага|pager|
|visibleName|Брюхоногие и двустворчатые|
|table of contents thumb|text_07_1.jpg|
|ссылка на контент шага|./environment/JPG/text_07_2.jpg|
|тип шага|pager|
|visibleName|Головоногие|
|table of contents thumb|text_07_2.jpg|
|ссылка на материал|./environment/PDF/07-Моллюски-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,5 Мб|
|ссылка на материал|./environment/PDF_2/07-Моллюски-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|112 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/08. Членистоногие, Ракообразные/|
!!!Описание
Членистоногие — самые разнообразные животные. Мы поговорим о четырех группах членистоногих: ракообразных, паукообразных, многоножках и насекомых. Но для начала давайте разберемся, что у всех них общего и почему их так назвали: «членисто-ногие».
!Дополнительно об уроке
!gallery data
{"data":[
["01 членистоногие.jpg"],
["02 рак.jpg"],
["02 рыцарь в доспехах.jpg"],
["03 рак линяет.jpg"],
["04 краб.jpg"],
["05 рак-отшельник.jpg"],
["06 креветка.jpg"],
["06 лодка с вёслами.jpg"],
["07 дафния.jpg"]
],
"options":{}}
!%/
|visibleName|Членистоногие. Ракообразные|
|ссылка на контент шага|https://youtu.be/xYI7YabL7nk|
|тип шага|video|
|visibleName|Рак-отшельник|
|ссылка на контент шага|./oms/108-4/|
|тип шага|task|
|visibleName|Ракообразные|
|ссылка на контент шага|./oms/108-6/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_08_1.jpg|
|тип шага|pager|
|visibleName|Кто относится к членистоногим|
|table of contents thumb|text_08_1.jpg|
|ссылка на контент шага|./environment/JPG/text_08_2.jpg|
|тип шага|pager|
|visibleName|Ноги членистоногих|
|table of contents thumb|text_08_2.jpg|
|ссылка на контент шага|./environment/JPG/text_08_3.jpg|
|тип шага|pager|
|visibleName|Краб, креветка и рак-отшельник|
|table of contents thumb|text_08_3.jpg|
|ссылка на контент шага|./environment/JPG/text_08_4.jpg|
|тип шага|pager|
|visibleName|Раки и дафнии|
|table of contents thumb|text_08_4.jpg|
|ссылка на материал|./environment/PDF/08-Членистоногие_Ракообразные-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|1,5 Мб|
|ссылка на материал|./environment/PDF_2/08-Членистоногие_Ракообразные-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|182 Кб|
<<lessonAdminPanel>>/%
|visibleName||
|galleryFolder|environment/galleries/09. Паукообразные и многоножки/|
!!!Описание
Мы обсудим, опасны ли пауки и их родственники, как они выглядят, чем питаются и кто из них живёт в нашей стране. А ещё поговорим о многоножках, которые тоже относятся к членистоногим.
!Дополнительно об уроке
!gallery data
{"data":[
["01 тигр-паук.jpg",null,null,null],
["02 тигр-паук 6 глаз.jpg",null,null,null],
["03 тигр-паук ядовитый.jpg",null,null,null],
["04 каракурт.jpg",null,"https://commons.wikimedia.org/wiki/File:Latrodectus_tredecimguttatus_female.jpg","Kork~commonswiki"],
["05 каракурт.jpg",null,"https://commons.wikimedia.org/wiki/File:Latrodectus_tredecimguttatus_male.jpg","Kork~commonswiki"],
["06 каракурт — ареал обитания в России.jpg",null,"",""],
["07 паук-каракурт.jpg",null,"",""],
["08 крестовик роговой.jpg",null,"https://fotki.yandex.ru/users/woodmen19/","Владимир Брюхов"],
["09 паук-крестовик.jpg",null,null,null],
["10 серебрянка.jpg",null,"https://commons.wikimedia.org/wiki/File:Argyroneta_Aquatica_Weibchen2.jpg","Norbert Schuller Baupi"],
["11 доломедес.jpg",null,"https://www.flickr.com/photos/johnbalcombe/6046613900/","John Balcombe"],
["12 паук-бокоход.jpg",null,"https://en.wikipedia.org/wiki/File:Ozyptila_praticola_-_front_(aka).jpg","André Karwath"],
["13 паук-волк.jpg",null,"http://www.molbiol.ru/forums/lofiversion/index.php/t180406-2500.html","Woodmen"],
["14 тарантул южнорусский.jpg",null,"https://www.flickr.com/photos/andrej_chudy/2940551371","Andrej Chudý"],
["15 паук-аргиопа.jpg",null,"https://uk.wikipedia.org/wiki/%D0%A4%D0%B0%D0%B9%D0%BB:Argiope_bruennichi_ukr.jpg","Anaxibia"],
["16 паук-скакун.jpg",null,"https://be.wikipedia.org/wiki/%D0%A4%D0%B0%D0%B9%D0%BB:Salticus_scenicus-f.jpg","Magne Flåten"],
["17 скорпион большой.jpg",null,"",""],
["18 скорпион маленький.jpg",null,"",""],
["19 императорский скорпион.jpg",null,"https://bg.wikipedia.org/wiki/%D0%A4%D0%B0%D0%B9%D0%BB:Emperor_scorpion_or_Imperial_scorpion_(Pandinus_imperator).jpg","Mike Baird"],
["20 крымский скорпион.jpg",null,"https://fotki.yandex.ru/next/users/shell-peter/album/165754/view/792859","Литошко Олег"],
["21 таёжный клещ.jpg",null,"",""],
["22 таёжный клещ.jpg",null,"https://fotki.yandex.ru/users/woodmen19/","Владимир Брюхов"],
["23 паутинный клещ.jpg",null,"https://www.flickr.com/photos/sanmartin/4883564395/in/album-72157624590769415/","Gilles San Martin"],
["24 паутинный клещ — вред.jpg",null,"https://commons.wikimedia.org/wiki/File:Tetranychus_urticae_on_sweet_pepper,_Bonenspintmijt_op_paprika_(2).jpg","Rasbak"],
["25 паутинный клещ.jpg",null,"",""],
["26 водяной клещ.jpg",null,"https://commons.wikimedia.org/wiki/File:%D0%92%D0%BE%D0%B4%D1%8F%D0%BD%D0%BE%D0%B9_%D0%BA%D0%BB%D0%B5%D1%89.jpg","Anatoly Mikhaltsov"],
["27 многоножка с десятью ногами.jpg",null,"https://www.flickr.com/photos/andybadger/15609403728/in/pool-myriapoda/","Andy Murray"],
["28 многоножка — сотня ног.jpg",null,"https://commons.wikimedia.org/wiki/File:Female_Illacme_plenipes_(MIL0020)_with_618_legs_-_ZooKeys-241-077-SP-6-left.jpg","Marek, P.; Shear, W.; Bond, J. (2012)"],
["29 костянка обыкновенная.jpg",null,"https://www.flickr.com/photos/briangratwicke/18391662068/in/photolist-u2d5nS","Brian Gratwicke"],
["30 кивсяк.jpg",null,"https://fotki.yandex.ru/users/woodmen19/","Владимир Брюхов"],
["31 кивсяк ест.jpg",null,"https://www.flickr.com/photos/ianredding/15304806833/in/photolist-pVXrPS-pZsVFi-pjr8RT-EgZjPZ","Ian Redding"],
["32 кивсяк сворачивается спиралькой.jpg",null,"https://www.flickr.com/photos/gnilenkov/5887829857","Aleksey Gnilenkov"],
["33 кивсяк.jpg",null,null,null]
],
"options":{}}
!%/
|visibleName|Паукообразные и многоножки|
|ссылка на контент шага|https://youtu.be/It6DqO5RA3g|
|тип шага|video|
|ссылка на контент шага|./oms/109-2/|
|visibleName|Паукообразные и многоножки|
|тип шага|task|
|visibleName|Кто что ест?|
|ссылка на контент шага|./oms/109-3/|
|тип шага|task|
|ссылка на контент шага|./environment/JPG/text_09_1.jpg|
|тип шага|pager|
|visibleName|Пауки|
|table of contents thumb|text_09_1.jpg|
|ссылка на контент шага|./environment/JPG/text_09_2.jpg|
|тип шага|pager|
|visibleName|Родственники пауков и многоножки|
|table of contents thumb|text_09_2.jpg|
|ссылка на материал|./environment/PDF/09-Паукообразные_и_многоножки-Конспект.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|926 Кб|
|ссылка на материал|./environment/PDF_2/09-Паукообразные_и_многоножки-Методичка.pdf|
|visibleName|Рабочий материал|
|занимает памяти|177 Кб|
<!--{{{-->
<div class='header' role='banner' macro='gradient vert [[ColorPalette::PrimaryLight]] [[ColorPalette::PrimaryMid]]'>
<div class='headerShadow'>
<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>
<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span>
</div>
<div class='headerForeground'>
<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>
<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span>
</div>
</div>
<div id='mainMenu' role='navigation' refresh='content' tiddler='MainMenu'></div>
<div id='sidebar'>
<div id='sidebarOptions' role='navigation' refresh='content' tiddler='SideBarOptions'></div>
<div id='sidebarTabs' role='complementary' refresh='content' force='true' tiddler='SideBarTabs'></div>
</div>
<div id='displayArea' role='main'>
<div id='messageArea'></div>
<div id='tiddlerDisplay'></div>
</div>
<!--}}}-->
|PageTemplate|AuthorPageTemplate|
/***
|Version|1.0|
|Short status|<<insertEditable container:"@stateComment" size:max cell>>|
tests: [[BRP 1]], [[BRP 2]], [[BRP 3]]
***/
//{{{
var orig_BRP_changed = Tiddler.prototype.changed;
// this recalcs links according to config.textPrimitives.tiddlerAnyLinkRegExp and
// config.textPrimitives.tiddlerForcedLinkRegExp , so temporarily hijack them
Tiddler.prototype.changed = function()
{
var brackettedLinkRE = config.textPrimitives.brackettedLink,
// titledBrackettedLinkRE = config.textPrimitives.titledBrackettedLink,
sectionOrSliceAddition =
"(?:(?:(?:"+config.textPrimitives.sliceSeparator+"[^\\|\\n\\]]+)|"+ //::
"(?:"+config.textPrimitives.sectionSeparator+"[^\\n\\]]+))?)", //##
tiddlerForcedLinkRegExp = config.textPrimitives.tiddlerForcedLinkRegExp,
tiddlerAnyLinkRegExp = config.textPrimitives.tiddlerAnyLinkRegExp;
// hijack REs
config.textPrimitives.brackettedLink = "\\[\\[([^\\]]+?)"+ // extra "?" is important here
sectionOrSliceAddition+
"\\]\\]";
// core definition: "\\[\\[([^\\]]+)\\]\\]";
// config.textPrimitives.titledBrackettedLink = "\\[\\[([^\\[\\]\\|]+)\\|([^\\[\\]\\|]+?)"+
// sectionOrSliceAddition+
// "\\]\\]";
// core definition: "\\[\\[([^\\[\\]\\|]+)\\|([^\\[\\]\\|]+)\\]\\]";
// recalc, as in the core:
config.textPrimitives.tiddlerForcedLinkRegExp = new RegExp("(?:" +
config.textPrimitives.titledBrackettedLink + ")|(?:" +
config.textPrimitives.brackettedLink + ")|(?:" +
config.textPrimitives.urlPattern + ")","mg");
config.textPrimitives.tiddlerAnyLinkRegExp = new RegExp("("+
config.textPrimitives.wikiLink + ")|(?:" +
config.textPrimitives.titledBrackettedLink + ")|(?:" +
config.textPrimitives.brackettedLink + ")|(?:" +
config.textPrimitives.urlPattern + ")","mg");
var result = orig_BRP_changed.apply(this,arguments);
// unhijack REs
config.textPrimitives.brackettedLink = brackettedLinkRE;
// config.textPrimitives.titledBrackettedLink = titledBrackettedLinkRE;
// recalc again
config.textPrimitives.tiddlerForcedLinkRegExp = new RegExp("(?:" +
config.textPrimitives.titledBrackettedLink + ")|(?:" +
config.textPrimitives.brackettedLink + ")|(?:" +
config.textPrimitives.urlPattern + ")","mg");
config.textPrimitives.tiddlerAnyLinkRegExp = new RegExp("("+
config.textPrimitives.wikiLink + ")|(?:" +
config.textPrimitives.titledBrackettedLink + ")|(?:" +
config.textPrimitives.brackettedLink + ")|(?:" +
config.textPrimitives.urlPattern + ")","mg");
return result; // in fact, there's no result, this is for possible future extensions
};
//}}}
<<tabs txtMainTab
"Поиск" "Move to" CommonAggregationTools##MoveTo
"Все записи" "All tiddlers" CommonAggregationTools##TabAllAll
"Тэги" "All tags" CommonAggregationTools##TabTags
"Ещё.." "More lists" CommonAggregationTools##TabsMore
>>/%
!MoveTo
<<search>>
!TabAllAll
<<tabs txtTabAll
"Timeline" "Timeline" CommonAggregationTools##TabTimeline
"All" "All tiddlers" CommonAggregationTools##TabAll
>>
!TabTimeline
<<timeline>>
!TabAll
<<list all>>
!TabTags
<<allTags excludeLists>>
!TabsMore
<<tabs txtMoreTab
"Missing" "Missing tiddlers" CommonAggregationTools##TabMoreMissing
"Orphans" "Orphaned tiddlers" CommonAggregationTools##TabMoreOrphans
"Shadowed" "Shadowed tiddlers" CommonAggregationTools##TabMoreShadowed
>>
!TabMoreMissing
<<list missing>>
!TabMoreOrphans
<<list orphans>>
!TabMoreShadowed
<<list shadowed>>
!%/
/***
|Description|This plugin fixes a couple of macro params issues:<br>1) fixes macro error in some cases when a named param has {{{{{}}}-containing value;<br>2) makes "escaped" ' and " in macro params be really escaped (examples: {{{"some \"value\""}}} is parsed as {{{some "value"}}} and {{{'that\'s nice'}}} becomes {{{that's nice}}})|
|Version|1.0|
|Short status|<<insertEditable container:"@stateComment" size:max cell>>|
|Author|Yakov Litvin|
***/
//{{{
// fix the error rising for macros with '{{'-containing named param's value
String.prototype.readMacroParams = function(notAllowEval)
{
// YL tweak: don't use "noNames"
var p = this.parseParams("_default",null,!notAllowEval);
var t, n = [];
for(t = 1; t < p.length; t++)
n.push(p[t].value);
return n;
};
// implement escaping of ' and " in macro params
String.prototype.parseParams = function(defaultName,defaultValue,allowEval,noNames,cascadeDefaults)
{
var parseToken = function(match,p) {
var n;
if(match[p]) // Double quoted
// YL tweak: substitute escaped \" with "
n = match[p].replace(/\\"/g,'"');
else if(match[p+1]) // Single quoted
// YL tweak: substitute escaped \' with '
n = match[p+1].replace(/\\'/g,"'");
else if(match[p+2]) // Double-square-bracket quoted
n = match[p+2];
else if(match[p+3]) // Double-brace quoted
try {
n = match[p+3];
if(allowEval && config.evaluateMacroParameters != "none") {
if(config.evaluateMacroParameters == "restricted") {
if(window.restrictedEval)
n = window.restrictedEval(n);
} else
n = window.eval(n);
}
} catch(ex) {
throw "Unable to evaluate {{" + match[p+3] + "}}: " + exceptionText(ex);
}
else if(match[p+4]) // Unquoted
n = match[p+4];
else if(match[p+5]) // empty quote
n = "";
return n;
};
var r = [{}];
var dblQuote = "(?:\"((?:(?:\\\\\")|[^\"])+)\")";
var sngQuote = "(?:'((?:(?:\\\\\')|[^'])+)')";
var dblSquare = "(?:\\[\\[((?:\\s|\\S)*?)\\]\\])";
var dblBrace = "(?:\\{\\{((?:\\s|\\S)*?)\\}\\})";
var unQuoted = noNames ? "([^\"'\\s]\\S*)" : "([^\"':\\s][^\\s:]*)";
var emptyQuote = "((?:\"\")|(?:''))";
var skipSpace = "(?:\\s*)";
var token = "(?:" + dblQuote + "|" + sngQuote + "|" + dblSquare + "|" + dblBrace + "|" + unQuoted + "|" + emptyQuote + ")";
var re = noNames ? new RegExp(token,"mg") : new RegExp(skipSpace + token + skipSpace + "(?:(\\:)" + skipSpace + token + ")?","mg");
var match;
do {
match = re.exec(this);
if(match) {
var n = parseToken(match,1);
if(noNames) {
r.push({ name:"", value:n });
} else {
var v = parseToken(match,8);
if(v == null && defaultName) {
v = n;
n = defaultName;
} else if(v == null && defaultValue) {
v = defaultValue;
}
r.push({ name:n, value:v });
if(cascadeDefaults) {
defaultName = n;
defaultValue = v;
}
}
}
} while(match);
// Summarise parameters into first element
var t;
for(t = 1; t < r.length; t++)
if(r[0][r[t].name])
r[0][r[t].name].push(r[t].value);
else
r[0][r[t].name] = [r[t].value];
return r;
};
//}}}
|>|//Для редактирования данных кликните в соответствующий текст; для применения изменений нажмите ctrl+enter; для отмены -- esc или кликните вне области редактирования.//|
|Автор/%%/ |<<insertEditable tiddler:[[$1]] container:":Автор" cell noNotify>>|
|Аудитория/%%/ |<<insertEditable tiddler:[[$1]] container:":Аудитория" cell noNotify>>|
|Картинка в шапке (ссылка) |<<insertEditable tiddler:[[$1]] container:":Картинка в шапке" cell noNotify>>|
|id курса (по-английски, без пробелов)|<<insertEditable tiddler:[[$1]] container:":courseId" cell noNotify>>|
|Описание |<<insertEditable tiddler:[[$1]] container:"#Описание" cell noNotify>>|
|Дополнительный html в шапке|<<insertEditable tiddler:[[$1]] container:"#In title" cell noNotify>>|
% tabs %((
%% old editor %%
<<fet set:'tag[$1] AND (tag[unit] tag[заголовок 1 надуровня] tag[заголовок 2 надуровня])'
sortableBy:{{store.fetchTiddler('$1').getSlice('courseId',config.macros.itemMenu.defaultField)}}
script 'var wrap = function(text){
if(tiddler.tags.contains("hide"))
text = "--"+text+"--";
if(tiddler.tags.contains("заголовок 1 надуровня"))
return "\'\'"+text+"\'\'";
if(tiddler.tags.contains("заголовок 2 надуровня"))
return "@@font-size:larger;\'\'"+text+"\'\'@@";
// mute units without steps/attachments
return store.getTaggedTiddlers(tiddler.title).length ? text : ("@@color:gray;"+text+"@@")
}'
writeToList 'wrap(insert("!","size:max"))
+"|" + insert(":visibleName","size:max noNotify")'
begin 'adder("text:{{\"<<lessonAdminPanel>\"+\">/%\\n!!!Описание\\n!%/\"}}","Добавить урок","bottom")+"<<addTiddler tag:\'$1\' tag:\'заголовок 1 надуровня\' label:\'Добавить заголовок-разделитель\'>"+"><<addTiddler tag:\'$1\' tag:\'заголовок 2 надуровня\' label:\'Добавить заголовок для большей единицы контента\'>"+">\n||название урока|название, видимое пользователю|\n"' none:same
>>
%% spreadsheet editor %%
<<handsontable
filter:{{'set: tag[$1] AND (tag[unit] tag[заголовок 1 надуровня] tag[заголовок 2 надуровня]) sortField['+ store.fetchTiddler('$1').getSlice('courseId',config.macros.itemMenu.defaultField) +']'}}
containers:"" "!" ":visibleName"
options:'{
colHeaders: ["", "название урока","название, видимое пользователю"],
manualColumnResize: [22],
renderer: function (instance, td, row, col, prop, value, cellProperties)
{
Handsontable.Dom.empty(td);
var stuffToWikify = value,
container = instance.container.parentElement,
filter = jQuery(container).data("tiddlersFilter"),
// tidContainer = jQuery(container).data("containers")[col],
tid = store.filterTiddlers(filter)[row];
var wrap = function(text,tiddler){
if(tiddler.tags.contains("hide"))
text = "--"+text+"--";
if(tiddler.tags.contains("заголовок 1 надуровня"))
return "\'\'"+text+"\'\'";
if(tiddler.tags.contains("заголовок 2 надуровня"))
return "@@font-size:larger;\'\'"+text+"\'\'@@";
// mute units without steps/attachments
return store.getTaggedTiddlers(tiddler.title).length ? text : ("@@color:gray;"+text+"@@")
}
if(col == 1)
stuffToWikify = wrap(stuffToWikify,tid);
if(col == 0 && row < tiddlers.length)
stuffToWikify = "<<itemMenu [["+tid.title+"]] \""+filter+"\" field:"
+store.fetchTiddler("$1").getSlice("courseId",config.macros.itemMenu.defaultField)
+">"+">"
wikify(""+(stuffToWikify || ""),td);
return td;
}/*,
afterSelectionEnd: function afterSelectionEdit(r1, c1, r2, c2) {
//# to test: makes a delay before editing – is it important?
if (r1 !== r2 && c1 !== c2)
return;
this.getActiveEditor().beginEditing();
}*/
}'
>>
))%%
[[edit panel|CourseAdminPanel]]
//{{{
// --- theme switching -------------------------------------
var usedOnline = window.location.protocol != "file:";
var usedWithBackEnd = !!window.saveOnlineChanges;
var visitorThemeName = "WebTheme";
var authorThemeName = "AuthorTheme";
readOnly = usedOnline && !usedWithBackEnd;
// theme setting helpers
story.setVisitorTheme = function() {
story.switchTheme(visitorThemeName);
//# test (online auto-setting, including web config.options.txtTheme is saved)
};
story.setAuthorTheme = function() {
story.switchTheme(authorThemeName);
//# test (online auto-setting, including web config.options.txtTheme is saved)
};
story.toggleRoleTheme = function() {
if(config.options.txtTheme == visitorThemeName)
story.setAuthorTheme();
else
story.setVisitorTheme();
};
// set theme on startup
if(usedOnline && !usedWithBackEnd) {
var ensureTheme = function(){
if(config.options.txtTheme != visitorThemeName)
story.setVisitorTheme();
}
setInterval(ensureTheme,100);
} else {
var ensureTheme = function(){
if(config.options.txtTheme != authorThemeName)
story.setAuthorTheme();
}
story.setAuthorTheme();
//# dirty hacky way:
setTimeout(ensureTheme,100);
setTimeout(ensureTheme,200);
setTimeout(ensureTheme,300);
setTimeout(ensureTheme,400);
setTimeout(ensureTheme,500);
setTimeout(ensureTheme,600);
}
// enable theme switching by pressing ctrl+shift+t
jQuery(document).on('keydown',function(e){
if(usedOnline && !usedWithBackEnd) return;
if((e.which == 222 /*'*/ || e.which == 0) && e.ctrlKey && e.shiftKey) {
story.toggleRoleTheme();
if(e.preventDefault)
e.preventDefault();
return false;
}
});
// display different tiddlers for an author and a visitor:
story.orig_displayDefaultTiddlers = story.displayDefaultTiddlers;
story.displayDefaultTiddlers = function()
{
if(usedOnline && !usedWithBackEnd)
this.displayTiddlers(null, store.filterTiddlers(store.getTiddlerText("WebDefaultTiddlers") ||""));
else
this.orig_displayDefaultTiddlers();
};
// disable including for visitors (prevent error message to appear)
config.options.chkUseInclude = !usedOnline;// || usedWithBackEnd;
// --- helpers ---------------------------------------------
function updateQueryParameter(uri, key, value) {
var re = new RegExp("([?&])" + key + "=.*?(&|#|$)", "i");
if (uri.match(re))
return uri.replace(re, '$1' + key + "=" + value + '$2');
else {
var hash = '';
if( uri.indexOf('#') !== -1 ){
hash = uri.replace(/.*#/, '#');
uri = uri.replace(/#.*/, '');
}
var separator = uri.indexOf('?') !== -1 ? "&" : "?";
return uri + separator + key + "=" + value + hash;
}
};
Tiddler.prototype.getVisibleName = function(sliceName,anotherDefault)
{
return this.getSlice(sliceName || "visibleName") || anotherDefault || this.title;
};
window.isEnvironmentLesson = function(tiddler){
if(tiddler.title == "Тестовый урок с галереей")
return true;
var tags = tiddler.tags;
for(var i = 0; i < tags.length; i++)
if(tags[i].contains("Окружающий мир") || tags[i].contains("Генетика"))
return true;
return false;
};
//
if(config.options.txtUnitStep === undefined)
config.options.txtUnitStep = 0;
if(config.options.txtLessonNumber === undefined)
config.options.txtLessonNumber = 0;
// --- unit step macros ------------------------------------
config.macros.unitStep =
{
getUnitSteps: function(tiddler) {
var tag = tiddler.title,
steps = store.filterTiddlers("set: tag["+tag+"] AND tag[unitStep]");
return config.macros.itemMenu.sortByCounter(steps/*, fieldName*/);
},
handler: function(place,macroName,params,wikifier,paramString,tiddler)
{
var singleStepMode = paramString.contains("singleStepMode");
// lesson steps and current step
var steps = this.getUnitSteps(tiddler);
if(singleStepMode)
steps = [tiddler];
jQuery(document).trigger('lessonPreStart');
// header (navigation)
var header = createTiddlyElement(place,"div","","lessonNavigation","",{role:'navigation'});
var hrefToMain = "http://cpm.dogm.mos.ru/";
var linkToMain = hrefToMain ? createExternalLink(header,hrefToMain) :
jQuery('<a class="noLink"></a>').appendTo(header)[0];
createTiddlyElement(linkToMain,"div","","logo-sign");
// link to course contents (if not available, doesn't do anything)
var getObjectTag = function(tiddler,objectTag) {
if(!tiddler || !tiddler.tags)
return null;
var i, tag;
for(i = 0; i < tiddler.tags.length; i++) {
tag = store.fetchTiddler(tiddler.tags[i]);
if(tag && tag.tags.contains(objectTag))
return tag;
}
return null;
};
var i, attachedToLesson, theCourse;
if(tiddler.tags.contains("alternativeUnit")) {
attachedToLesson = getObjectTag(tiddler,"unit");
theCourse = getObjectTag(attachedToLesson,"course");
} else
theCourse = getObjectTag(tiddler,"course");
var title = tiddler.getVisibleName();
if(theCourse) {
var linkToContents = createTiddlyLink(header,theCourse.title);
jQuery(linkToContents).html(title).addClass("linkToContents");
} else
jQuery("<a class='noLinkToContents'>"+title+"</a>")
.appendTo(header);
var navLink, type;
if(steps.length > 1)
for(var k = 0; k < steps.length; k++) // not compatible with elder browsers
{
let j = k; // fix for IE 11
navLink = createTiddlyElement(header,"a","","stepLink");
jQuery(navLink).on('click',function(){
config.options.txtUnitStep = j;
refreshStep();
});
if(type = steps[j].getSlice("тип шага"))
createTiddlyElement(navLink,"div","",type);
else
createTiddlyText(navLink,"шаг "+j);
}
// wrapper, 3 columns and buttons (backward/forward)
//# when back/forth buttons are added to the first/last steps, alternativeUnit s should be taken into accout
var wrapper = createTiddlyElement(place,"div","","unitStep"),
leftColumn = createTiddlyElement(wrapper,"div","","goPrevContainer"),
contentColumn = createTiddlyElement(wrapper,"div","", "unitStepContentContainer"),
rightColumn = createTiddlyElement(wrapper,"div","","goNextContainer");
if(steps.length == 0)
return;
//# display something indicating that the lesson is empty for now
var goBack = function(){
if(config.options.txtUnitStep > 0) {
config.options.txtUnitStep--;
refreshStep();
}
};
var goForth = function(){
if(config.options.txtUnitStep < steps.length-1) {
config.options.txtUnitStep++;
refreshStep();
}
};
var backContainer = createTiddlyElement(leftColumn,"div","","backContainer");
var backButton = createTiddlyElement(backContainer,"div","","backward");
jQuery(leftColumn).on('click',goBack);
var forthContainer = createTiddlyElement(rightColumn,"div","","forthContainer");
var forwardButton = createTiddlyElement(forthContainer,"div","","forward");
jQuery(rightColumn).on('click',goForth);
var refreshStep = function()
{
// refresh content
jQuery(contentColumn).empty();
// dirty fix for the inconsistent values of config.options.txtUnitStep
if(config.options.txtUnitStep > steps.length-1)
config.options.txtUnitStep = steps.length-1;
var step = steps[config.options.txtUnitStep];
var contentUrl = step ? step.getSlice("ссылка на контент шага") : "";
var specifiedHeight = step.getSlice("contentHeight");
if(specifiedHeight) specifiedHeight = parseInt(specifiedHeight);
if(contentUrl) {
var isImage = /\.(png|jpg|jpeg|gif)(\?.*)?$/i.exec(contentUrl);
var isVideo = /(?:youtube\.com)|(?:youtu\.be)|(?:^[-\w]+$)/i.exec(contentUrl)
|| step.getSlice("тип шага") == "video";
if(isVideo) {
/* deal with the following urls:
*
* https://www.youtube.com/watch?v=34c2GNgBpfE
* https://www.youtube.com/embed/34c2GNgBpfE <- canonical one, turn them into this form
* https://youtu.be/34c2GNgBpfE
* 34c2GNgBpfE
*/
var youtubeIdRE = /((?:youtube\.com\/watch\?v=)|(?:youtube\.com\/embed\/)|(?:youtu\.be\/))?([-\w]+)((\?.*)|(\&.*)|$)/,
youtubeIdMatch = youtubeIdRE.exec(contentUrl),
youtubeId = youtubeIdMatch ? youtubeIdMatch[2]:"";
if(youtubeId)
contentUrl = "https://www.youtube.com/embed/"+ youtubeId;
// if(!contentUrl)
// contentUrl = ""; // set url for video dummy here
// disable autoplay, remove "related" from YouTube videos
contentUrl = updateQueryParameter(contentUrl, "autoplay", 0);
contentUrl = updateQueryParameter(contentUrl,"rel",0);
}
if(isImage)
jQuery("<img src='"+contentUrl+"' />")
.addClass("contentImage")
.appendTo(contentColumn);
else {
var iframe = createTiddlyElement(contentColumn,"iframe","", "contentIframe","",{
src: contentUrl,
frameborder: 0,
allowfullscreen: "allowfullscreen",
scrolling: "no",
was_reloaded: false
});
if(/\.html$/.exec(contentUrl)){
iframe.onload = function(){
this.height = specifiedHeight || (this.contentWindow.document.body.offsetHeight +50);
if(!this.was_reloaded) //optional?
{
this.was_reloaded = true;
try {
this.contentDocument.location.reload();
}catch(ex){}
}
}
// +50 is a dirty hack; no idea why needed
} else
if(specifiedHeight){
iframe.height = specifiedHeight;
} else {
// for video mostly
iframe.height = iframe.offsetWidth * 9/16;
}
}
}
//contentColumn.heigh = contentColumn.firstChild.offsetHeight; //# set via CSS instead
//# implement ?? for no-contentUrl case
// refresh navigation arrows
if(config.options.txtUnitStep == 0)
jQuery(backContainer).hide();
else
jQuery(backContainer).show();
if(config.options.txtUnitStep == steps.length-1)
jQuery(forthContainer).hide();
else
jQuery(forthContainer).show();
//# highlight the link to the opened step in the nav bar
jQuery(".currentStep").removeClass("currentStep");
jQuery(".stepLink:eq("+config.options.txtUnitStep+")") .addClass("currentStep");
}
refreshStep();
},
};
config.macros.lesson =
{
getAttachments: function(tiddler) {
var tag = tiddler.title,
atts = store.filterTiddlers("set: tag["+tag+"] AND tag[attachment]");
return config.macros.itemMenu.sortByCounter(atts/*, fieldName*/);
}
};
config.macros.unitStepFooter =
{
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
//# implement
}
};
config.macros.lessonAdminPanel =
{
handler: function(place,macroName,params,wikifier,paramString,tiddler)
{
// parametric transclusion is useful for more fluid development
wikify('<<tiddler [[LessonAdminPanel]] with:[['+tiddler.title+']] noedit>>',place,null,tiddler);
}
};
// --- course macros ------------------------------------
config.macros.fillCourseHeader = {
handler: function(place,macroName,params,wikifier,paramString,tiddler)
{
var imgUrl = tiddler.getSlice("Картинка в шапке","");
if(imgUrl)
jQuery('#course-header').css("background",
'linear-gradient(to right,rgba(0,0,0,0.4), rgba(0,0,0,0) 80%) no-repeat left, url("'+imgUrl+'") no-repeat center');
jQuery("#main_content #course-header")
.empty()
.append(
'<h2 id="course-name">'+ tiddler.getVisibleName() +'</h2>'+
'<h4 id="course-author">'+ tiddler.getSlice("Автор","") +'</h4>'+
'<h4 id="course-audience">'+ tiddler.getSlice("Аудитория","")+'</h4>'+
(tiddler.getSection("In title",""))
);
}
};
config.macros.fillCourseContents = {
getCourseContents: function(course)
{
if(!course) return null;
//# may be add getting course tiddler if course is the title or courseId
var tids = store.filterTiddlers("[tag["+course.title+"]] [not[tag[hide]]"),
courseId = course.getSlice("courseId","");
return config.macros.itemMenu.sortByCounter(tids, courseId);
},
getCourseLessons: function(course)
{
var contents = this.getCourseContents(course), i;
if(!contents) return null;
for(i = 0; i < contents.length; i++)
if(!contents[i].tags.contains("unit"))
contents.splice(i--,1);
return contents;
},
openLesson: function(lesson,stepIndex)
{
config.options.txtUnitStep = stepIndex;
story.displayTiddler(this,lesson);
},
handler: function(place,macroName,params,wikifier,paramString,courseTiddler)
{
var lessons = this.getCourseLessons(courseTiddler),
contents = this.getCourseContents(courseTiddler);
console.log(courseTiddler);
var predislovieText = '';
if(courseTiddler.title.indexOf('Ген')>=0){
predislovieText='Окружающий мир. Генетика';
} else if(courseTiddler.title.indexOf('1')>0){
predislovieText='1 класс. Мир живого';
} else if(courseTiddler.title.indexOf('2')>0){
predislovieText='2 класс. Мир неживого';
} else if(courseTiddler.title.indexOf('3')>0){
predislovieText='3 класс. Процессы в мире живого';
} else if(courseTiddler.title.indexOf('4')>0){
predislovieText='4 класс. Процессы в мире неживого';
} else {
predislovieText = 'Весь курс';
}
var getIndentIndex = function(itemTiddler) {
if(itemTiddler.tags.contains("unit")) return 0;
if(itemTiddler.tags.contains("заголовок 1 надуровня")) return 1;
if(itemTiddler.tags.contains("заголовок 2 надуровня")) return 2;
},
maxIndentIndex = 0;
for(n = 0; n < contents.length; n++)
if(getIndentIndex(contents[n]) > maxIndentIndex)
maxIndentIndex = getIndentIndex(contents[n]);
var $courseContentsColumn = jQuery("#lessons-list"),
$lessonContentsColumn = jQuery("#lesson-content");
$courseContentsColumn.empty();
// add the "about course" link (implement in refresher)
jQuery('<a class="lesson-name h4" href="#%5B%5BОкружающий мир%5D%5D" >Весь курс</a>')
.appendTo($courseContentsColumn)
.wrap('<div class="lesson" style="'+(predislovieText == 'Весь курс' ? 'display:none;':'')+'" />');;
jQuery('<a class="lesson-name h4">'+predislovieText+'</a>')
.on('click',function(){
config.options.txtLessonNumber = 0;
selectLesson();
}).appendTo($courseContentsColumn)
.wrap('<div class="lesson" />');
// add per lesson links
for(var k = 0; k < contents.length; k++) { let i = k; // fix for IE 11
let item = contents[i], isLesson = item.tags.contains("unit"), isVisible = !item.tags.contains("inner_page");
let mute = isLesson && !store.getTaggedTiddlers(item.title).length && !item.getSection("Описание") || item.isTagged("mute");
let levelClass = isLesson ? 'h4' :
(item.tags.contains("заголовок 1 надуровня")? 'h3' : 'h2');
let indentClass = "indent-"+(maxIndentIndex - getIndentIndex(item));
jQuery('<a class="lesson-name '+levelClass+' '+indentClass+(mute ? ' mute' : '')+(isVisible ? '':' hidden')+'" data-title="'+contents[i].getVisibleName()+'">'
+contents[i].getVisibleName()+'</a>')
.on('click',function(){
if(mute) return;
if(isLesson) {
config.options.txtLessonNumber = lessons.indexOf(item)+1;
selectLesson();
} else if(levelClass == 'h3')
openAccordionSectionAfter(this);
//console.log("clicked");
}).appendTo($courseContentsColumn)
.wrap('<div class="lesson" />');
}
var openAccordionSectionAfter = function(titleElement) {
// a bad hack to implement an "accordion"
if(jQuery('.h3').length)
jQuery('.h4:not(:first)').css('display', 'none');
if(titleElement)
jQuery(titleElement).parent().nextUntil(':has(>.h3)').children() .css('display', 'block');
var lastItem = jQuery('.h4').last()[0];
if(lastItem.text == "Над курсом работали") jQuery(lastItem).css('display', 'block');
//# scroll into view
};
openAccordionSectionAfter(); // hide all
var selectLesson = function() {
// (re)set selection
jQuery('.lesson-active').removeClass("lesson-active");
var lessonNumber = config.options.txtLessonNumber,
lessonNumberAmongContents = lessonNumber == -1 ? 0 :
(lessonNumber == 0 ? 0 :
(lessonNumber == 1 ? 1 : contents.indexOf(lessons[lessonNumber-1]))
);
console.log(courseTiddler.title);
console.log(lessonNumber);
console.log(lessonNumberAmongContents);
jQuery(".lesson-name").eq(lessonNumberAmongContents>0 ? ((lessonNumberAmongContents == 1 && lessonNumber==1 && courseTiddler.title=='Окружающий мир') ? lessonNumberAmongContents+1 : lessonNumberAmongContents+2) : 1).addClass("lesson-active");
$lessonContentsColumn.empty();
var $lessonContentsWrapper = jQuery('<div>').appendTo($lessonContentsColumn);
window.elementToKeepIntoView = $lessonContentsWrapper[0];
jQuery(window).scroll();
if(lessonNumberAmongContents == 0) {
// show "about course"
let description = courseTiddler.getSection("Описание");
if(description)
$lessonContentsWrapper.append('<p>'+description+ '</p>');
/*if(lessons.length)
jQuery('<a class="btn btn-primary">Начать курс</a>')
.on('click',function(){
config.macros.fillCourseContents.openLesson(lessons[0],0);
})
.appendTo($lessonContentsWrapper)
*/
//# hr and teacher description
} else {
// show lesson
var lessonNumber = config.options.txtLessonNumber - 1;
if(lessonNumber >= lessons.length) lessonNumber = 0; // fixes a bug taking place when we jump from a course to another one that has fewer lessons
var lesson = lessons[lessonNumber],
isEnvLesson = window.isEnvironmentLesson(lesson),
title = lesson.title,
visibleTitle = lesson.getVisibleName(),
tags = lesson.tags,
lessonDescription = lesson.getSection("Описание"),
extraHtml = lesson.getSection("Дополнительно об уроке"),
steps = config.macros.unitStep.getUnitSteps(lesson),
ruTypes = {
pager: "Конспект",
task: "Задание",
test: "Тест",
video: "Видео",
},
showSteps = (steps.length > 1) || (courseTiddler.title != "Неорганическая химия"),
goLabel = showSteps ? "Пройти занятие" : "Посмотреть",
isGoButtonNeeded = !courseTiddler.getSlice("hideStartUnitButton");
for(var key in tags){
var elemSelector = '.lesson-name[data-title="'+tags[key]+'"]';
var elem = jQuery(elemSelector).addClass("lesson-active");
}
//# add to course admin panel
setTimeout(function(){
var classNumber = parseInt(document.title.charAt(0));
if(document.title.charAt(0)=='Г'){classNumber=5;}
var postfix = '#goToLesson_'+classNumber+'_'+config.options.txtLessonNumber;
if(classNumber==1 && config.options.txtLessonNumber==48){
postfix = '#authors_1';
} else if(classNumber==1 && config.options.txtLessonNumber==48){
postfix = '#authors_2';
} else if(classNumber==2 && config.options.txtLessonNumber==28){
postfix = '#authors_1';
} else if(classNumber==3 && config.options.txtLessonNumber==23){
postfix = '#authors_3';
} else if(classNumber==4 && config.options.txtLessonNumber==31){
postfix = '#authors_4';
}
if(classNumber)
jQuery('<span>http://okrmir.cpm77.ru/'+postfix+'</span>').appendTo(jQuery('#lessonShortLink'));}, 100);
console.log(config);
$lessonContentsWrapper
.append('<h2>'+visibleTitle+'</h2>')
.append(jQuery('<p></p>').attr('id', 'lessonShortLink'))
//# number in h2/"Занятие #" as h5
.append('<p>'+lessonDescription+'</p>')
.append((steps.length && isGoButtonNeeded) ?
jQuery('<a class="btn btn-primary" >'+goLabel+'</a>')
.on('click',function(){
config.macros.fillCourseContents
.openLesson(title,0);
})
: '')
.append('<ol id="lesson-steps"/>')
if(showSteps) {
for(var i = 0; i < steps.length; i++) {
let type = steps[i].getSlice("тип шага"),
ruType = ruTypes[type], stepNumber = i;
if(isEnvLesson && type == "pager" && steps[i].getSlice("table of contents thumb"))
break;
jQuery('<a>')
.appendTo("#lesson-steps")
.wrap('<li>').wrap('<p>')
.on('click',function(){
config.macros.fillCourseContents
.openLesson(title,stepNumber);
})
//.append('<div class="pull-left '+type+'"/>')
.append(jQuery('<img/>',{
class: "pull-left",
src: "images/"+(type=="pager" ? "text" : type)+".svg", // типы, исп-ные до того, отл-ся от тех, что у Виктора
width: "24px",
height: "24px"
}))
.append('<span class="lesson-label">'+steps[i].getVisibleName()+'</span><br>'+
'<small>'+ruType+'</small>')
//# " - 5:99" (video length)
}
// show pagers as 1 item with several clickable thumbs
if(i < steps.length)
{
var $synopsisContainer = jQuery('<li>').appendTo("#lesson-steps");
let stepNumber = i; // resume counting steps
jQuery('<a>')
.on('click',function(){
config.macros.fillCourseContents.openLesson(title,stepNumber);
})
.appendTo($synopsisContainer)
.wrap('<p>')
.append(jQuery('<img/>',{
class: "pull-left", src: "images/text.svg",
width: "24px", height: "24px"
}))
.append('<span class="lesson-label last-lesson-label">Конспект для ученика</span>')
var thumbUrl,
lessonsThumbsFolder = courseTiddler.getSlice("lessonsThumbsFolder");
var $img, $thumbContainer = jQuery('<ul>',{class:'summary_list'})
.appendTo($synopsisContainer);
for(; i < steps.length; i++) {
let stepNumber = i;
thumbUrl = steps[stepNumber].getSlice("table of contents thumb");
thumbUrl = thumbUrl ? lessonsThumbsFolder + thumbUrl : "";
jQuery('<a>').on('click',function(){
config.macros.fillCourseContents.openLesson(title,stepNumber);
})
.appendTo($thumbContainer)
.wrap('<li>')
.append(jQuery('<img/>',{src: thumbUrl}));
}
}
}
var attachments = config.macros.lesson.getAttachments( lesson ),
attName, attUrl, isPdf, attSize, attExtMatch;
if(isEnvLesson && attachments.length)
jQuery('<h3 class="download_content_header">Материалы для скачивания</h3>').appendTo($lessonContentsWrapper);
for(var k = 0; k < attachments.length; k++)
{
let i = k; // fix for IE 11
attName = attachments[i].getVisibleName();
attUrl = attachments[i].getSlice("ссылка на материал");
attExtMatch = /\.(\w{2,5})$/.exec(attUrl);
isPdf = /\.pdf/i.exec(attUrl);
attSize = attachments[i].getSlice("занимает памяти");
if(isEnvLesson) {
jQuery('<p class="download_content"><span class="download_content_label">'+attName+'</span></p>')
.appendTo($lessonContentsWrapper);
jQuery('<p class="download_links"><a href="'+attUrl+'" target="_blank">'+
'<img src="images/env_galleries/download_arrow_white.svg" class="arrow-attachment-icon">'+
(attExtMatch ? '<span class="file_extension">'+attExtMatch[1]+'</span>' : '')+
(attSize ? '<span class="file-size">'+ attSize+ '</span>' : '')+
'</a></p>')
.appendTo($lessonContentsWrapper);
} else {
jQuery('<a href="'+attUrl+'" target="_blank" />')
.appendTo($lessonContentsWrapper)
.wrap('<p>')
.append('<img src="images/dwnld_solid.svg" class="attachment-icon">'+
'<span class="attachment-label">'+attName+'</span>' +
(isPdf ? ' <img src="images/pdf.svg" class="pdf-attachment-icon">' : '') +
(!attSize ? '' : (isPdf ? ' <span class="file-size">'+attSize+'</span>' : ' (<span class="file-size">'+attSize+'</span>)'))
);
}
}
// add download gallery button
var imageFolder = lesson.getSlice("galleryFolder"),
thumbSubfolder = 'thumbnails/'
var imagesDataJSON = lesson.getSection("gallery data"),
imagesData = imagesDataJSON ? JSON.parse(imagesDataJSON).data : null;
if(imagesData[0][0]) {
jQuery('<p class="download_content"><span class="download_content_label">Рисунки и фотографии</span></p>')
.appendTo($lessonContentsWrapper);
var attUrl = './get_zipped_materials.php?gallery='+imageFolder;
var attSize = ''; //# get from the script
jQuery('<p class="download_links"><a href="'+attUrl+'">'+
'<img src="images/env_galleries/download_arrow_white.svg" class="arrow-attachment-icon">'+
'<span class="file_extension">zip</span>'+
(attSize ? '<span class="file-size">'+ attSize+ '</span>' : '')+
'</a></p>')
.appendTo($lessonContentsWrapper);
}
// preload hover icons
var $preloadArea = jQuery('<div>').appendTo($lessonContentsWrapper)
.append('<div class="download-hover-preload">')
.append('<div class="fancybox-close-hover-preload">')
.append('<div class="fancybox-next-hover-preload">')
.append('<div class="fancybox-prev-hover-preload">');
// add arbitrary html after attachements (from extraHtml)
if(extraHtml) {
var extra = createTiddlyElement($lessonContentsWrapper[0],'div','', 'lessonExtras');
extra.innerHTML = extraHtml;
}
// show gallery
if(isEnvLesson && (imagesData[0][0])) {
// var imagesData = JSON.parse(imagesDataJSON).data;
var capitalize = function(text) {
return text.charAt(0).toLocaleUpperCase() + text.substr(1);
};
var parseTitle = function(fileName) {
var match = /^[\d\-]+ (.+)\.\w+$/.exec(fileName);
return capitalize(match ? match[1] : fileName);
};
var parseSubtitle = function(authorName,url) {
if(!authorName) return "";
return "<a href='"+url+"' target='_blank'>"+
"Фотография автора "+authorName+"</a>";
};
var fixUrl = function(url) {
return url.replace(/й/gm,"й").replace(/ё/gm,"ё");
};
var getThumbUrl = function(customName,imageUrl) {
return fixUrl(imageFolder+thumbSubfolder+
(customName || imageUrl));
};
jQuery('<ol class="gallery_items"></div>')
.appendTo($lessonContentsWrapper[0]);
//# escape double-quot symbols!
var imageData, imageUrl, imageTitle, i;
for(i = 0; i < imagesData.length; i++) {
imageData = imagesData[i];
imageUrl = fixUrl(imageFolder + imageData[0]);
imageTitle = imageData[1] || parseTitle(imageData[0]);
jQuery('<a class=fancybox href="'+imageUrl+
'" title="'+imageTitle+
'" author="'+(imageData[3] || "")+
'" author_url="'+(imageData[2] || "")+
'" subtitle="'+parseSubtitle(imageData[3],imageData[2])+
'"><img src="'+getThumbUrl(imageData[4],imageData[0])+
'" alt=""/><p>'+imageTitle+'</p></a>')
/* jQuery('<a>',{ class: 'fancybox',
href: imageUrl,
title: imageTitle,
author: imageData[3] || "",
author_url: imageData[2] || "",
subtitle: parseSubtitle(imageData[3],imageData[2]),
}) <img src="'+getThumbUrl(imageData[4],imageData[0])+
'" alt=""/><p>'+imageTitle+'</p></a>')
*/ .appendTo(jQuery('.gallery_items')[0])
.wrap('<li>');
}
jQuery(".fancybox")
.attr('rel', 'gallery_items')
.fancybox({
afterLoad: function() {
var number = this.index + 1,
title = this.title,
el = this.element[0],
author = el.getAttribute('author'),
a_url = el.getAttribute('author_url'),
subtitle = parseSubtitle(author,a_url) || " ";
this.title = '<div class="number">'+number+'</div>'+
'<div class="titles">'+
'<span class="main-title">'+title+'</span>' +
'<span class="author-title">'+subtitle+'</span>'+
'</div>';
},
afterShow: function() {
var overlay = jQuery('.fancybox-overlay')[0];
jQuery('<div class=download><a href="' + this.href + '" download></a></div>').appendTo(overlay);
//# download attribute is not supported in IE11 ! see https://stackoverflow.com/questions/18578473/
// may add alert/.. ~Откройте в другом браузере или сохраните картинку, кликнув по ней правой кнопкой мыши~
jQuery('.fancybox-prev').appendTo(overlay);
jQuery('.fancybox-next').appendTo(overlay);
jQuery('.fancybox-close').appendTo(overlay);
//# currently the elements got multiplied (although not visible) – fix this
},
helpers: {
title: { type:"inside" }
},
padding : 0 // no padding around image
});
}
}
};
// pick the step (by default "about course")
selectLesson();
}
};
window.prevScroll = 0;
jQuery(window).scroll(function()
{
var menuEl = window.elementToKeepIntoView;
if(!menuEl) return;
var container = menuEl.parentElement;
if(!container) return;
var height = menuEl.offsetHeight,
windowHeight = findWindowHeight(),
scrollDown = window.prevScroll < findScrollY(),
scrollUp = window.prevScroll > findScrollY();
menuEl.style.position = "relative";
var topLimitByContainer = 0, topLimitByWindow = findScrollY() - findPosY(container) -50,
//# get rid of magic value: it's the container's padding-top in px
bottomLimitByContainer = container.offsetHeight -80, //jQuery(container).innerHeight() ?
//# get rid of magic value: it's the container's padding-top + padding-bottom in px
bottomLimitByWindow = topLimitByWindow + findWindowHeight() -20,
//# get rid of magic value: presumably, it's the header's margin-top in px
//re = /(\-?\d+(?:\.\d+)?)\s?px/i,
getPixels = function(value) {
if(!value) return 0;
//var match = re.exec(value);
//if(!match) return parseInt(value);
return parseInt(value);//match[1]); //test with non-px values (are they stored in .style.top?)
},
menuElTopCss = getPixels(menuEl.style.top);
if(!scrollDown && !scrollUp)
menuEl.style.top = topLimitByWindow + "px"; //attach top to window top
if(scrollDown) {
if(height < windowHeight) {
if(menuElTopCss < topLimitByWindow) // top edge is higher than that of window
menuEl.style.top = topLimitByWindow + "px"; //top to top
} else
if(menuElTopCss + height < bottomLimitByWindow) // bottom edge higher than that of window
menuEl.style.top = (bottomLimitByWindow - height) + "px"; //bottom to bottom
}
if(scrollUp) {
if(height < windowHeight)
menuEl.style.top = topLimitByWindow + "px"; //attach top to window top
else
if(menuElTopCss > topLimitByWindow) // top edge lower than that of window
menuEl.style.top = topLimitByWindow + "px"; //attach top to window top
}
//# deal with selectLesson 46 (ends up below the bottom of the container)
// somehow in the menuElTopCss + height > bottomLimitByContainer check below height == 0
// that's true for each selectLesson firing scroll: height == 0
// ensure we're inside the container
menuElTopCss = getPixels(menuEl.style.top);
if(menuElTopCss < topLimitByContainer)
menuEl.style.top = topLimitByContainer + "px";
//console.log("height: "+height);
if(menuElTopCss + height > bottomLimitByContainer)
menuEl.style.top = (bottomLimitByContainer - height) + "px";
//# make scrolling smoother
window.prevScroll = findScrollY();
});
config.macros.courseAdminPanel = {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
if(!tiddler) return;
// parametric transclusion is useful for more fluid development
wikify('<<tiddler [[CourseAdminPanel]] with:[['+tiddler.title+']] noedit>>',place,null,tiddler);
}
};
// --- common macros ------------------------------------
// make common topLineMenu and footer? use config.macros.siteTopMenu?
// --- make prettyLinks work in a more familiar way -----
// now in OpenInAnotherTabPlugin
/*story.getPermalink = function(title) {
return window.location.toString().replace(/#.*$/,"")
+ "#"+encodeURIComponent(String.encodeTiddlyLink(title));
};
var orig_nonUrl_createTiddlyLink = createTiddlyLink;
createTiddlyLink = function(place,title,includeText,className,isStatic,linkedFromTiddler,noToggle)
{
var btn = orig_nonUrl_createTiddlyLink.apply(this,arguments);
// this allows to use context menu on right-click
btn.href = story.getPermalink(title);
//# set a handler for ctrl+click (open in a new tab)
return btn;
};*/
//}}}
/***
|''Name''|DashesFormattersPlugin|
|''Version''|0.1|
|Short status|<<insertEditable container:"@stateComment" size:max cell>>|
test: a -- b, c --- d, --ef--
----
gh —
***/
//{{{
for(var i = 0; i < config.formatters.length; i++)
if(config.formatters[i].name == "mdash") {
config.formatters[i].name = "ndash";
config.formatters[i].handler = function(w) {
createTiddlyElement(w.output,"span").innerHTML = "–";
};
};
/*config.formatters.splice(i,0,{
name: "mdash",
match: "---",
handler: function(w)
{
createTiddlyElement(w.output,"span").innerHTML = "—";
}
});*/
//}}}
/***
|Version|1.4|
{{PoGc{дописать метаданные!}}} Пока у плагина нет документации и т.п., он базируется в репозитории напару с ~GridPlugin
* в версии 1.2 исправлен тот факт, что ":" включался в slice name
* в версии 1.3 изменено поведение в отношении начальных/конечных пробелов/табуляций вокруг slice name
* в версии 1.4 исправлено поведение, когда пробелы в конце "второго столбца" добавляются в slice value
* когда пробел обязательно заменять на \x20? можно ли тут обойтись без этого?
***/
//{{{
TiddlyWiki.prototype.slicesRE = /(?:^([\'\/]{0,2})~?([\.\w]+)\:\1[\t\x20]*([^\n]+)[\t\x20]*$)|(?:^\|\x20?([\'\/]{0,2})~?([^\|\s\:\~\'\/]|(?:[^\|\s~\'\/][^\|\n\f\r]*[^\|\s\:\'\/]))\:?\4[\x20\t]*\|[\t\x20]*([^\n\t\x20](?:[^\n]*[^\n\t\x20])?)[\t\x20]*\|$)/gm;
store.slices = {};
//}}}
/***
|''Version''|1.4|
|''Requires''|UpToDateFiltersPlugin|
|~|requires http://yakovl.bplaced.net/TW/ExtraFilters.html#UpToDateFiltersPlugin only if TW core version is 2.6.1 or below|
|''Source''|http://yakovl.bplaced.net/TW/ExtraFilters.html#ExtraFiltersPlugin|
|''Documentation''|http://yakovl.bplaced.net/TW/ExtraFilters.html#ExtraFiltersPluginInfo|
|''Author''|Yakov Litvin|
|''Licence''|[[BSD-like open source license|http://yakovl.bplaced.net/TW/ExtraFilters.html#%5B%5BYakov%20Litvin%20Public%20Licence%5D%5D]] |
***/
//{{{
if(!config.filters.all)
config.filters.all = function(results,match) { // v1.0
this.forEachTiddler(function(tName,tiddler){
results.pushUnique(tiddler);
});
return results;
};
config.filters.and = function(results,match) { // v1.0
// parse the argument as "filterName[filterParam"
var dividingRE = /([^\[\]]+)\[([^\]]*)/,
filterParts = dividingRE.exec(match[3]);
if(filterParts) {
var filterName = filterParts[1],
filterParam = filterParts[2];
} else
throw("\"and\" filter: wrong syntax");
// create the set of filtered tiddlers
var filter = "[" + filterName + "[" + filterParam + "]]",
tids = this.filterTiddlers(filter),
newResult = [];
// collect tiddlers present among both "results" and filtered tiddlers
for(var i = 0; i < results.length; i++)
for(var j = 0; j < tids.length; j++)
if(results[i] == tids[j])
newResult.push(tids[j]);
return newResult;
};
config.filters.not = function(results,match) { // v1.0
// parse the argument as "filterName[filterParam"
var dividingRE = /([^\[\]]*)\[([^\]]*)/,
filterParts = dividingRE.exec(match[3]);
if(filterParts) {
var filterName = filterParts[1],
filterParam = filterParts[2];
} else
throw("\"not\" filter: wrong syntax");
// create the set of filtered tiddlers
var filter = "[" + filterName + "[" + filterParam + "]]",
tids = this.filterTiddlers(filter);
// collect tiddlers present among "results", but not among filtered tiddlers
for(var i = 0; i < results.length; i++)
for(var j = 0; j < tids.length; j++)
if(results[i] == tids[j]) {
results.splice(i,1);
i--;
tids.splice(j,1);
break;
}
return results;
};
config.filters.tagTree = function(results, match)
{
results = results || [];
var depthRE = /^(\d),(.+)$/, depthMatch = depthRE.exec(match[3]),
depth = depthMatch ? parseInt(depthMatch[1]) : -1, currentDepth = 0,
root = depthMatch ? depthMatch[2] : match[3], tags = [root], prevLength,
i, tagTags, j;
var rootTid = store.fetchTiddler(root);
if(rootTid) results.pushUnique(rootTid);
// get tags, tags of tags etc ;
// for optimization, push to results inline
do {
prevLength = tags.length;
for(i = 0; i < prevLength; i++) //may be optimized by starting from i = ..
{
tagTags = store.getTaggedTiddlers(tags[i]);
for(j = 0; j < tagTags.length; j++) {
tags.pushUnique(tagTags[j].title);
// optimized place to push:
results.pushUnique(tagTags[j]);
}
}
currentDepth++;
} while (tags.length > prevLength && currentDepth != depth);
return results;
};
config.filters.unclassified = function(results,match) { // v1.0
var category = match[3],
instances = this.getTaggedTiddlers(category);
// filter out tiddlers tagged with instances
for(var i = 0; i < results.length; i++)
for(var j = 0; j < instances.length; j++)
if(results[i].isTagged(instances[j].title)) {
results.splice(i,1);
i--;
break;
}
return results;
};
config.filters.taggedOnly =
config.filters.oTag = function(results, match) { // v1.0
// parse param
var add = true, arg = match[3], i;
switch(arg.substr(0,1)) {
case "+":
// "add" is "true" already
arg = arg.substr(1);
break;
case "-":
add = false;
arg = arg.substr(1);
break;
}
var isTaggedOnly = function(tiddler,arg) {
return (tiddler.tags.length == 1) && (!arg || arg == tiddler.tags[0])
};
if(add) {
var tiddlers = this.reverseLookup();
for(i = 0; i < tiddlers.length; i++)
if(isTaggedOnly(tiddlers[i],arg))
results.pushUnique(tiddlers[i]);
} else {
for(i = 0; i < results.length; i++)
if(!isTaggedOnly(results[i],arg))
results.splice(i--,1);
}
return results;
};
config.filters.hasPart = function (results, match) { // v1.1
// parse the argument
var arg = match[3], reText, re, type, isBad, title;
switch(arg.substr(0,2)) {
case "##":
case "::":
isBad = function(title) {
return store.getTiddlerText(title + arg) ? false : true;
};
break
case "@@":
isBad = function(title) {
return store.getValue(title, arg.substr(2)) ? false : true;
};
break
case "r@": // regExp (for tiddler.text) mode
case "R@":
case "t@": // title mode
case "T@":
reText = store.getTiddlerText(arg.substr(2));
type = arg.substr(0,1);
if(!reText)
if(type == "r" || type == "t")
return results; // "forgiving mode", nothing is filtered out in this case
else
throw("RegExp for filtering is not found in " + arg.substr(2));
// no break here
case "r[":
case "R[":
case "t[":
case "T[":
if(!reText) {
reText = arg.substr(2);
type = arg.substr(0,1);
}
if(type == "r" || type == "t") {
try {
re = new RegExp(reText);
} catch(e) {
return results; // "forgiving mode"
}
} else
re = new RegExp(reText);
if(type == "r" || type == "R")
isBad = function(title) {
return results[i].text.match(re) ? false : true;
};
else
isBad = function(title) {
return title.match(re) ? false : true;
};
break
default:
return results;
}
// filter out corresponding tiddlers
for(var i = 0; i < results.length; i++) {
title = results[i].title;
if(isBad(title)) {
results.splice(i,1);
i--;
}
};
return results;
};
config.filters.sortByText = function (results, match) { // v1.1
// parse the argument
var arg = match[3],
ascending = +1;
switch(arg.substr(0,1)) {
case "-":
ascending = -1;
arg = arg.substr(1);
break;
case "+":
arg = arg.substr(1);
break;
}
// use the rest of the argument to get corresponding section/slice
var partSuffix = (arg.substr(0,2) == "::" || arg.substr(0,2) == "##") ?
arg : "";
var self = this;
var compareText = function(t1,t2) {
var text1 = self.getTiddlerText(t1.title + partSuffix),
text2 = self.getTiddlerText(t2.title + partSuffix);
if(text1 && text2)
return text1.localeCompare(text2);
if(text1)
return -1;
if(text2)
return 1;
return 0;
};
return results.sort(compareText);
};
orig_sortFilter = config.filters.sort;
config.filters.sort = function(results,match) { // sort: random, v1.0
if(match[3] === "*random") {
var auxiliaryArray = [],
size = results.length;
var swap = function(i, j) {
var tmp1 = auxiliaryArray[i];
auxiliaryArray[i] = auxiliaryArray[j];
auxiliaryArray[j] = tmp1;
var tmp2 = results[i];
results[i] = results[j];
results[j] = tmp2;
};
for(var i = 0; i < size; i++)
auxiliaryArray.push(Math.random());
for(var j = 0; j < size; j++)
for(var i = 0; i < size - j; i++)
if(auxiliaryArray[i] < auxiliaryArray[i+1])
swap(i,i+1);
return results;
} else
return orig_sortFilter.apply(this, arguments);
};
config.filters.from = function(results,match) { // v1.0
var filter = this.getTiddlerText(match[3],""),
tiddlers = this.filterTiddlers(filter);
for(var i = 0; i < tiddlers.length; i++)
results.pushUnique(tiddlers[i]);
return results;
};
//}}}
/***
|''Name''|FancyBox2Plugin|
|''Description''|Adds a macro to create image galleries via the fancyBox lib|
|''Version''|0.9.6|
|''Source''|http://yakovl.bplaced.net/TW/ImagesTools/ImageGalleries.html#FancyBox2Plugin|
|''Documentation''|http://yakovl.bplaced.net/TW/ImagesTools/ImageGalleries.html#FancyBox2PluginInfo|
|''Author''|Yakov Litvin|
|''Licence''|[[BSD-like open source license|http://yakovl.bplaced.net/TW/ImagesTools/ImageGalleries.html#%5B%5BYakov%20Litvin%20Public%20Licence%5D%5D]]|
***/
// // Here goes minified and hidden fancyBox v2.1.5 (from fancyapps.com, [[license|fancyapps.com/fancybox/#license]]) /%
(function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&E(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},w=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.5",defaults:{padding:15,margin:20,
width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},
keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+
(I?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,
openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,
isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,
c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&
k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||
b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=
setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,p.bind({"onCancel.player beforeClose.player":c,"onUpdate.player":e,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(q(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))},prev:function(a){var d=b.current;
d&&(q(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=
a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),
b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),
y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;
if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==v)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox-skin")&&!h.is(".fancybox-wrap");)j=h[0]&&!(h[0].style.overflow&&"hidden"===h[0].style.overflow)&&
(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,
{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,
mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=
!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");
"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=
this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);
f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,
e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,
outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}",
g);break;case "swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll":
"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?
h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||
h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c<m&&(c=m,j=l(c/D)),j<u&&(j=u,c=l(j*D))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&
"iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,p)));if(h.fitToView)if(g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height(),h.aspectRatio)for(;(a>z||y>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(p,j-10)),c=l(j*D),c<m&&(c=m,j=l(c/D)),c>n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&j<A&&c+x+q<z)&&(c+=q);g.width(c).height(j);e.width(c+x);a=e.width();
y=e.height();e=(a>z||y>r)&&c>m&&j>u;c=h.aspectRatio?c<F&&j<B&&c<C&&j<A:(c<F||j<B)&&(c<C||j<A);f.extend(h,{dim:{width:w(a),height:w(y)},origWidth:C,origHeight:A,canShrink:e,canExpand:c,wPadding:x,hPadding:v,wrapSpace:y-k.outerHeight(!0),skinSpace:k.height()-j});!H&&(h.autoHeight&&j>u&&j<p&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute",top:c[0],left:c[3]};d.autoCenter&&d.fixed&&
!a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=w(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=w(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&&(d.preventDefault(),
b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=
a||b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())):
(c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:w(c.top-h*a.topRatio),left:w(c.left-j*a.leftRatio),width:w(f+j),height:w(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"===
f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,
{duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=w(l(e[g])-200),c[g]="+=200px"):(e[g]=w(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=
b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:f("html"),create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=
f('<div class="fancybox-overlay"></div>').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?
b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),
p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===
f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=
b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('<div class="fancybox-title fancybox-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,
e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+
":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body");var e=20===
d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("<style type='text/css'>.fancybox-margin{margin-right:"+(d-a)+"px;}</style>").appendTo("head")})})(window,document,jQuery);
// %/
//{{{
// set CSS without changing StyleSheet
var css = store.getTiddlerText("FancyBox2Plugin##StyleSheetFancyBox"),
shadowName = "StyleSheetFancyBox";
commentRegExp = /\/%%%(.*?)%%%\//g;
css = css.replace(commentRegExp,'/*$1*/');
config.shadowTiddlers[shadowName] = "/*{{{*/\n"+css.substring(4,css.length-4)+"\n/*}}}*/";
store.addNotification(shadowName, refreshStyles);
// define the macro
config.macros.fancyBox = {};
config.macros.fancyBox.handler =
function(place, macroName, params, wikifier, paramString, tiddler)
{
// build a gallery id based on the "hash" of the macro text
var macroTWcode = wikifier.source.substring(wikifier.matchStart, wikifier.nextMatch),
galleryId = macroTWcode.replace(/['"<>\n]/g,"");
// parse params, build the images' data
var pParams = paramString.parseParams("image",null,true,false,true),
imagesData = [], i, j,
images = pParams[0]["image"],
forEachImageParams = { "thumb":1, "title":1, "label":1 },
//thumbs = pParams[0]["thumb"],
align = getParam(pParams,"align",""),
inline = getParam(pParams,"inline",paramString.match(/\sinline(\s|$)/gm)),
float = getParam(pParams,"float",""),
folder = getParam(pParams,"folder",""),
thumbFolder = getParam(pParams,"thumbFolder",folder),
config = getParam(pParams,"config",""),
userGalleryId = getParam(pParams,"galleryId","");
//# either parse the folder param here or introduce a global txtGalleriesFolder param or both
galleryId = userGalleryId || galleryId;
// get global params that define styles for each image/wrapper
var imagesParamRegExp = /images-([\w\-]+)/,
wrappersParamRegExp = /wrappers-([\w\-]+)/,
removeDashes = function(str) {
return str.replace(/-(\w)/g,
function($0,$1){ return $1.toUpperCase(); });
},
p, match,
imagesParams = {},
wrappersParams = {};
for(p in pParams[0]) {
if(match = imagesParamRegExp.exec(p))
imagesParams[removeDashes(match[1])] = pParams[0][p][0];
if(match = wrappersParamRegExp.exec(p))
wrappersParams[removeDashes(match[1])] = pParams[0][p][0];
}
// parse fancyBox params from config
try{ config = eval("(function(){return "+config+"})()") }catch(e){config="";}
if(!images) {
createTiddlyError(place, "wrong macro usage (click here for details)", 'there should be at least one "image" argument (first anonymous params are also considered as "image"s)');
return;
}
// find the index of the first image param; see if all the "image"s go next
for(i = 1; i < pParams.length; i++)
if(pParams[i].name == "image")
break;
var allImageParamsGoOneByOne = true;
for(j = 0; j < images.length; j++)
if(pParams[i+j].name != "image") {
allImageParamsGoOneByOne = false;
break;
}
var feiParam, k, feipValues;
if(allImageParamsGoOneByOne)
{
for(i = 0; i < images.length; i++)
imagesData.push({ link: images[i] });
for(feiParam in forEachImageParams)
if(feipValues = pParams[0][feiParam])
for(i = 0; i < feipValues.length; i++)
if(imagesData[i])
imagesData[i][feiParam] = feipValues[i];
} else
for(j = 0; i < pParams.length; i++) // i is not reset by intent
{
if(pParams[i].name == "image")
imagesData[j++] = { link: pParams[i].value };
for(feiParam in forEachImageParams)
if(pParams[i].name == feiParam)
imagesData[j-1][feiParam] = pParams[i].value;
}
// -----------------------------------------------------------
// create the images, wrappers and other stuff
var imagesHolder = createTiddlyElement(place,"div",null,"gallery");
if(inline)
imagesHolder.style.display = "inline-block";
if(align)
imagesHolder.style.align = align;
if(float) {
imagesHolder.style.display = "inline-block";
// doesn't work properly yet
// see the successful solution among tests
imagesHolder.style.float = float;
}
var getFullPath = function(file,folder) {
if(!folder)
return file;
return folder+"/"+file;
}
var imageHolder, image, link, title;
for(i = 0; i < imagesData.length; i++)
{
link = getFullPath(imagesData[i].link,folder);
imageHolder = createTiddlyElement(imagesHolder,"a",null,"fancybox");
// work as a gallery, if there's more then one image:
if(imagesData.length > 1 || userGalleryId)
imageHolder.setAttribute("data-fancybox-group",galleryId);
// add href, this is important for proper size setting and images not being hidden:
imageHolder.setAttribute("href",link);
title = imagesData[i].label || imagesData[i].title;
if(title)
imageHolder.title = title;
// thumb may be image path or "html: myHTML"
var thumb = imagesData[i].thumb,
htmlMatch = thumb ? /^html:((?:.|\n)+)/mg.exec(thumb) : null,
html = htmlMatch ? htmlMatch[1] : "";
if(html)
imageHolder.innerHTML = html;
else {
// "thumbnail" image (shown when fancybox is not activated):
image = createTiddlyElement(imageHolder,"img");
image.src = thumb ? getFullPath(thumb,thumbFolder) : link;
var setThisHere = function(element,property,value) {
if(property == "class")
element.classList.add(value)
else
element.style[property] = value;
};
for(p in imagesParams)
setThisHere(image,p,imagesParams[p]);
for(p in wrappersParams)
setThisHere(imageHolder,p,wrappersParams[p]);
}
}
// activate fancyBox
if(imagesData.length > 1 || userGalleryId)
jQuery('a[data-fancybox-group="'+galleryId+'"]').fancybox(config);
else
jQuery(imageHolder).fancybox(config);
};
//}}}
/***
!!!StyleSheetFancyBox
{{{
/%%% ~my additions %%%/
.gallery .fancybox img { max-width: 24%; margin-left: 0.5%; margin-right: 0.5%; }
/%%% hacks to fight the StyleSheetColors' a:hover {background-color:[[ColorPalette::PrimaryMid]]; rule (part of a rule): %%%/
.fancybox:hover,
a[class~="fancybox-prev"]:hover,
a[class~="fancybox-next"]:hover { background-color:inherit; }
a[class~="fancybox-close"]:hover { background-color: rgba(255, 255, 255, 0); }
/%%%! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license %%%/
/%%% YL modifications: all images were converted to base64 and inserted here %%%/
.fancybox-wrap,
.fancybox-skin,
.fancybox-outer,
.fancybox-inner,
.fancybox-image,
.fancybox-wrap iframe,
.fancybox-wrap object,
.fancybox-nav,
.fancybox-nav span,
.fancybox-tmp
{
padding: 0;
margin: 0;
border: 0;
outline: none;
vertical-align: top;
}
.fancybox-wrap {
position: absolute;
top: 0;
left: 0;
z-index: 8020;
}
.fancybox-skin {
position: relative;
background: #f9f9f9;
color: #444;
text-shadow: none;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.fancybox-opened {
z-index: 8030;
}
.fancybox-opened .fancybox-skin {
-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.fancybox-outer, .fancybox-inner {
position: relative;
}
.fancybox-inner {
overflow: hidden;
}
.fancybox-type-iframe .fancybox-inner {
-webkit-overflow-scrolling: touch;
}
.fancybox-error {
color: #444;
font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
margin: 0;
padding: 15px;
white-space: nowrap;
}
.fancybox-image, .fancybox-iframe {
display: block;
width: 100%;
height: 100%;
}
.fancybox-image {
max-width: 100%;
max-height: 100%;
}
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAACYCAMAAACoAftQAAAAvVBMVEUAAAAAAAAAAAAODg4AAAAAAAAAAADNzc0BAQHZ2dkDAwMHBwcAAADf398CAgI/Pz8BAQEAAACCgoIcHBzl5eUAAAC/v7/x8fEGBgZnZ2cAAADs7OwGBgb4+Pg/Pz/Jycmenp5nZ2f39/eDg4MAAADQ0ND4+Piurq7a2tr8/Pzs7OwAAAD5+fn9/f3e3t4AAAD///9OTk7BwcE1NTWsrKyNjY2cnJx6enpdXV1oaGgsLCy6uroiIiLOzs5BQUFt3PCNAAAAL3RSTlMAAQMIDRIZHSMnLTpESFNVXWlpbG15en+HiZCWoaGssrO2vsDFydPU3uL4+fr9/Ywv6xsAAAQVSURBVHhe7JZbc6JMGIQXAUOQEMi3uMYkrmopZgqs5ujZ//+zvpdNzMsMlli1N3uRvtCbpzo9I+nmhyqN9OO6GNQ6Ha1SG0mcrhskXe90rvKE6kbX7r9MF4vp2887nfBrqPW0xJemD4w32e7jHIj2602SbNZ7Qfgd0zJLtgKi2B0+tSsE3h8u0RX7HGGfHWrK9oiIbrK69SiQHxTliO5VWtP0rrNEemhoj6muaYqx2XuGyJrwbgUKohhb3hIFM6wCC7Zm4+M5Zs5fpKNiTYndEOUHDFRYCeADLvGiy7DtL7E5/12gJPacalPlqEc2eoFAdmCa2UOGyOhoUuQgwo7PxCwJMGXYGcQMlyCVX3DchCkGs3V6h0iFgyUSZsuS6QQLGaYDhueUHxhf3RpzOqB8dRMcz84lf5FS9A1Ngi2PQm8PF7RBZOnEyqFnSC/BKX6bHQmucpB13mRzCJtTsPUowlpl14if2JifUXcwgeqdA2OLn1C+PdsbzCKkW0a3KeKxbbAxF4FJ9EgAaXGqyFORAuLZNrkMZNoNKnNS9PE5dpltFofjB4PJXIAk5rP/HMu4Ukmm7XjEkwLfc2yT66tJk7lp2T2H1LMtk2wVVsWpcE0SlW4DbeLE/xG3eRvfQv7Fptw4KvpDNRKLt1/3rZty/xbjrPef1+5D018ITYttkiTrfAUsrmzK3RTIT/woHxH3DaZl9h2rRH2aX0ydaYb1BVK1zNdA32RvNn7DkVmmoyeVJvYBMcdl5Vg2/lW0zpSbUNIKT12KLV8wVjsmNvGW63feU3qj86veGQmAA1e5qzbStNZdmVTlRzzbSjG+4+t4u1iqjxxjR6pczaiNBCCVXoGx25X7mUNGgJBHM/QsXWp+dk4U5xJjX4EXSM7ACcCxnnnm2zI8rxVoFgMr/lUwUpyNPvYVx/eRfaUSQzkzLWxEOVhiwynCAd2GvCm/2bquBPEo+LxnDv0YXdyfFOHQP+8EV/kY0enSorxyitoLxxwiabDRqDImWF2JJVBIeVNEk2HgsDGn7vkhcPy67lMOiBGF4AGS3tX8yYqAfb5eF/kRiMPX4cDjEDLd8wezJT4lwtHrMHBtbg6V9oLhYDYLw3A2eSVbn0elSdMCecFg+Ee0Kq7dlftLXSCrRxNE8lzH7hp0Nu3qpHQty7Ztq2sabHvtpb/SLauisVTye1O+N2Ubbxhu2xSAq6x1UwoAWfum8P3Gu5ZNYaUA2jaFJYCofVPYOWnZFD4TcLpxU1ZAnN24KRnfxQ2bshEE/Vub8r0p35vi/t9eHRoBDMNQDJUvMLkOkDMM+8D7b9cR+kOKLPy4juojnQeAkWWVAyLLLINVdovj44N8LOqi/3Djxo0bN5ZvdbWJuwHhrw2ILYdqBwDT2fEEXtrZFmVcCWLiAAAAAElFTkSuQmCC");
}
#fancybox-loading {
position: fixed;
top: 50%;
left: 50%;
margin-top: -22px;
margin-left: -22px;
background-position: 0 -108px;
opacity: 0.8;
cursor: pointer;
z-index: 8060;
}
#fancybox-loading div {
width: 44px;
height: 44px;
background: url("data:image/gif;base64,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") center center no-repeat;
}
.fancybox-close {
position: absolute;
top: -18px;
right: -18px;
width: 36px;
height: 36px;
cursor: pointer;
z-index: 8040;
}
.fancybox-nav {
position: absolute;
top: 0;
width: 40%;
height: 100%;
cursor: pointer;
text-decoration: none;
background: transparent url("data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="); /%%% helps IE %%%/
-webkit-tap-highlight-color: rgba(0,0,0,0);
z-index: 8040;
}
.fancybox-prev {
left: 0;
}
.fancybox-next {
right: 0;
}
.fancybox-nav span {
position: absolute;
top: 50%;
width: 36px;
height: 34px;
margin-top: -18px;
cursor: pointer;
z-index: 8040;
visibility: hidden;
}
.fancybox-prev span {
left: 10px;
background-position: 0 -36px;
}
.fancybox-next span {
right: 10px;
background-position: 0 -72px;
}
.fancybox-nav:hover span {
visibility: visible;
}
.fancybox-tmp {
position: absolute;
top: -99999px;
left: -99999px;
max-width: 99999px;
max-height: 99999px;
overflow: visible !important;
}
/%%% Overlay helper %%%/
.fancybox-lock {
overflow: visible !important;
width: auto;
}
.fancybox-lock body {
overflow: hidden !important;
}
.fancybox-lock-test {
overflow-y: hidden !important;
}
.fancybox-overlay {
position: absolute;
top: 0;
left: 0;
overflow: hidden;
display: none;
z-index: 8010;
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpCMEM4NDgzQjlDRTNFMTExODE4NUVDOTdFQ0I0RDgxRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGREU5OEVCQzAzMjYxMUUyOTg5OURDMDlDRTJDMTc0RSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGREU5OEVCQjAzMjYxMUUyOTg5OURDMDlDRTJDMTc0RSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkIxQzg0ODNCOUNFM0UxMTE4MTg1RUM5N0VDQjREODFFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkIwQzg0ODNCOUNFM0UxMTE4MTg1RUM5N0VDQjREODFFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+s3YRAQAAABtJREFUeNpiFODh2cBABGBiIBKMKqSOQoAAAwBokQDs5F/8FAAAAABJRU5ErkJggg==");
}
.fancybox-overlay-fixed {
position: fixed;
bottom: 0;
right: 0;
}
.fancybox-lock .fancybox-overlay {
overflow: auto;
overflow-y: scroll;
}
/%%% Title helper %%%/
.fancybox-title {
visibility: hidden;
font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
position: relative;
text-shadow: none;
z-index: 8050;
}
.fancybox-opened .fancybox-title {
visibility: visible;
}
.fancybox-title-float-wrap {
position: absolute;
bottom: 0;
right: 50%;
margin-bottom: -35px;
z-index: 8050;
text-align: center;
}
.fancybox-title-float-wrap .child {
display: inline-block;
margin-right: -100%;
padding: 2px 20px;
background: transparent; /%%% Fallback for web browsers that doesn't support RGBa %%%/
background: rgba(0, 0, 0, 0.8);
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
text-shadow: 0 1px 2px #222;
color: #FFF;
font-weight: bold;
line-height: 24px;
white-space: nowrap;
}
.fancybox-title-outside-wrap {
position: relative;
margin-top: 10px;
color: #fff;
}
.fancybox-title-inside-wrap {
padding-top: 10px;
}
.fancybox-title-over-wrap {
position: absolute;
bottom: 0;
left: 0;
color: #fff;
padding: 10px;
background: #000;
background: rgba(0, 0, 0, .8);
}
/%%%Retina graphics!%%%/
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5){
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
background-image: url("data:image/png;base64,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");
background-size: 44px 152px; /%%%The size of the normal image, half the size of the hi-res image%%%/
}
#fancybox-loading div {
background-image: url("data:image/gif;base64,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");
background-size: 24px 24px; /%%%The size of the normal image, half the size of the hi-res image%%%/
}
}
}}}
!!!
***/
/***
|Description|Makes ctrl+tab work for tab changing (when focused on an editarea) in ~FireFox (instead of inserting a tab symbol)|
|Version|1.0|
|Short status|<<insertEditable container:"@stateComment" size:max cell>>|
|Author|Yakov Litvin|
keep overwriting in mind! (hope this will move to the core soon)
***/
//{{{
Story.prototype.onTiddlerKeyPress = function(ev)
{
var e = ev || window.event;
clearMessage();
var consume = false;
var title = this.getAttribute("tiddler");
var target = resolveTarget(e);
switch(e.keyCode) {
case 9: // Tab
var ed = story.getTiddlerField(title,"text");
if(target.tagName.toLowerCase() == "input" && ed.value == config.views.editor.defaultText.format([title])) {
// moving from input field and editor still contains default text, so select it
ed.focus();
ed.select();
consume = true;
}
if(config.options.chkInsertTabs && !e.ctrlKey && target.tagName.toLowerCase() == "textarea") {
replaceSelection(target,String.fromCharCode(9));
consume = true;
}
if(config.isOpera)
target.onblur = function() {
this.focus();
this.onblur = null;
};
break;
case 13: // Ctrl-Enter
case 10: // Ctrl-Enter on IE PC
case 77: // Ctrl-Enter is "M" on some platforms
if(e.ctrlKey) {
blurElement(this);
config.macros.toolbar.invokeCommand(this,"defaultCommand",e);
consume = true;
}
break;
case 27: // Escape
blurElement(this);
config.macros.toolbar.invokeCommand(this,"cancelCommand",e);
consume = true;
break;
}
e.cancelBubble = consume;
if(consume) {
if(e.stopPropagation) e.stopPropagation(); // Stop Propagation
e.returnValue = true; // Cancel The Event in IE
if(e.preventDefault ) e.preventDefault(); // Cancel The Event in Moz
}
return !consume;
};
//}}}
/***
|Version|1.0|
{{DDnc{should be based elsewhere}}}
***/
//{{{
jQuery(window).on("scroll",function(){
var menuElement = document.getElementById("mainMenu");
if(!menuElement) return;
var header = document.getElementsByClassName("header")[0],
headerBottom = header.offsetTop + header.offsetHeight - findScrollY(),
position = findScrollY() + Math.max(headerBottom,0)
menuElement.style.top = position+"px";
});
//}}}
/***
|Description |adds toolbar buttons that allow to "fold" tiddlers|
|Version |1.0.5|
|Author |Yakov Litvin|
|Forked from |[[CollapseTiddlersPlugin|http://www.TiddlyTools.com/#CollapseTiddlersPlugin]] by Eric Shulman and previously Bradley Meck|
|Overwrites |{{{Story.prototype.permaView}}}|
|~CoreVersion? |{{DDn{??, >=2.1}}}|
***/
//{{{
config.shadowTiddlers.CollapsedTemplate =
"<!--{{{-->\
<div class='toolbar' macro='toolbar [[CollapsedToolbarCommands]]'></div>\
<div class='title' macro='view title'></div>\
<!--}}}-->";
config.shadowTiddlers.CollapsedToolbarCommands =
"closeTiddler closeOthers expandTiddler collapseOthers +editTiddler "+
"jump > fields permalink references deleteTiddler";
// hijack config.macros.toolbar.handler to add collapseTiddler and collapseOthers
config.options.chkAddFoldingButtons = (config.options.chkAddFoldingButtons === undefined) ? true : config.options.chkAddFoldingButtons;
config.foldTiddlers_orig_toolbarHandler = config.macros.toolbar.handler;
if(config.options.chkAddFoldingButtons)
config.macros.toolbar.handler = function(place,macroName,params,wikifier,paramString,tiddler) {
// warning: paramString is not changed as /currently/ it's not used by config.macros.toolbar.handler
var i, doAdd = true,
mainCommandRegExp = /closeOthers/,
foldCommandRegExp = /collapseTiddler/,
unfoldCommandRegExp = /expandTiddler/;
// don't add in the folded condition (if expandTiddler is present)
// or if collapseTiddler is already present (manually added to toolbar)
for(i = 0; i < params.length; i++)
if(unfoldCommandRegExp.exec(params[i]) ||
foldCommandRegExp.exec(params[i])) {
doAdd = false;
break;
}
if(!doAdd)
return config.foldTiddlers_orig_toolbarHandler.apply(this,arguments);
for(i = 0; i < params.length; i++)
if(mainCommandRegExp.exec(params[i])) { // locate the "edit" command
params.splice(i+1,0,"collapseTiddler","collapseOthers"); // add after "edit"
break;
}
config.foldTiddlers_orig_toolbarHandler.apply(this,arguments);
};
//}}}
//{{{
config.commands.collapseTiddler = {
text: "fold",
tooltip: "Collapse this tiddler",
collapsedTemplate: "CollapsedTemplate",
webCollapsedTemplate: "WebCollapsedTemplate",
handler: function(event,src,title) {
var e = story.findContainingTiddler(src); if (!e) return false;
// don't fold tiddlers that are being edited!
if(story.isDirty(e.getAttribute("tiddler"))) return false;
var t = config.commands.collapseTiddler.getCollapsedTemplate();
config.commands.collapseTiddler.saveTemplate(e);
config.commands.collapseTiddler.display(title,t);
e.setAttribute("folded","true");
return false;
},
getCollapsedTemplate: function() {
return (readOnly && store.tiddlerExists(this.webCollapsedTemplate)) ?
this.webCollapsedTemplate :
this.collapsedTemplate
},
saveTemplate: function(e) {
if (e.getAttribute("savedTemplate") == undefined)
e.setAttribute("savedTemplate", e.getAttribute("template"));
},
// fold/unfold tiddler with suspend/resume of single/top/bottom-of-page mode
display: function(title,t) {
var opt = config.options;
var saveSPM = opt.chkSinglePageMode; opt.chkSinglePageMode = false;
var saveTPM = opt.chkTopOfPageMode; opt.chkTopOfPageMode = false;
var saveBPM = opt.chkBottomOfPageMode; opt.chkBottomOfPageMode = false;
story.displayTiddler(null,title,t);
opt.chkBottomOfPageMode = saveBPM;
opt.chkTopOfPageMode = saveTPM;
opt.chkSinglePageMode = saveSPM;
}
}
config.commands.expandTiddler = {
text: "unfold",
tooltip: "Expand this tiddler",
handler: function(event,src,title)
{
var e = story.findContainingTiddler(src); if (!e) return false;
var t = e.getAttribute("savedTemplate");
config.commands.collapseTiddler.display(title,t);
e.setAttribute("folded","false");
return false;
}
}
config.macros.collapseAll = {
text: "collapse all",
tooltip: "Collapse all tiddlers",
handler: function(place,macroName,params,wikifier,paramString,tiddler){
createTiddlyButton(place,this.text,this.tooltip,function(){
story.forEachTiddler(function(title,tiddler)
{
if(story.isDirty(title)) return;
var t = config.commands.collapseTiddler.getCollapsedTemplate();
config.commands.collapseTiddler.saveTemplate(tiddler);
config.commands.collapseTiddler.display(title,t);
tiddler.folded = true;
});
return false;
})
}
}
config.macros.expandAll = {
text: "expand all",
tooltip: "Expand all tiddlers",
handler: function(place,macroName,params,wikifier,paramString,tiddler){
createTiddlyButton(place,this.text,this.tooltip,function(){
story.forEachTiddler(function(title,tiddler){
var t = config.commands.collapseTiddler.getCollapsedTemplate();
if(tiddler.getAttribute("template")!=t) return; // re-display only if collapsed
var t = tiddler.getAttribute("savedTemplate");
config.commands.collapseTiddler.display(title,t);
tiddler.folded = false;
});
return false;
})
}
}
config.commands.collapseOthers = {
text: "focus",
tooltip: "Expand this tiddler and collapse all others",
handler: function(event,src,title) {
var e = story.findContainingTiddler(src); if (!e) return false;
story.forEachTiddler(function(title,tiddler) {
if(story.isDirty(title)) return;
var t = config.commands.collapseTiddler.getCollapsedTemplate();
if (e == tiddler) t = e.getAttribute("savedTemplate");
config.commands.collapseTiddler.saveTemplate(tiddler);
config.commands.collapseTiddler.display(title,t);
tiddler.folded = (e != tiddler);
})
return false;
}
}
// {{{<<foldFirst>>}}} macro forces tiddler to be folded when *initially* displayed.
// Subsequent re-render does NOT re-fold tiddler, but closing/re-opening tiddler DOES cause it to fold first again.
config.macros.foldFirst = {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var e = story.findContainingTiddler(place);
if (e.getAttribute("foldedFirst") == "true") return; // already been folded once
var title = e.getAttribute("tiddler")
var t = config.commands.collapseTiddler.getCollapsedTemplate();
config.commands.collapseTiddler.saveTemplate(e);
config.commands.collapseTiddler.display(title,t);
e.setAttribute("folded","true");
e.setAttribute("foldedFirst","true"); // only when tiddler is first rendered
return false;
}
}
//}}}
//{{{
// [showFolded[n]] adds .openFolded = true to the last n tiddlers among results
config.filters.showFolded = function(results,match) {
var number = parseInt(match[3]); // if NaN, the loop below just is not executed
for(var i = 0; (i < number) && (results.length-1-i >= 0); i++)
results[results.length-1-i].openFolded = true;
return results;
}
// hijack chooseTemplateForTiddler to open tiddlers with .openFolded folded
config.foldTiddlers_orig_chooseTemplateForTiddler = Story.prototype.chooseTemplateForTiddler;
Story.prototype.chooseTemplateForTiddler = function(title,template) {
var t = store.fetchTiddler(title);
if(t && t.openFolded)
{
t.openFolded = false
return "CollapsedTemplate";
}
return config.foldTiddlers_orig_chooseTemplateForTiddler.apply(this,arguments);
}
//# optionally change fold/unfold ~commands so that they change openFolded (the state is remembered during the session)
Story.prototype.isOpenedFolded = function(title) {
var tiddlerElem = story.getTiddler(title);
if(!tiddlerElem)
return false;
return tiddlerElem.getAttribute("template") == "CollapsedTemplate";
}
//# overwrite permaview to save which tiddlers are folded
// use "filter" paramifier
Story.prototype.permaView = function()
{
var links = [];
this.forEachTiddler(function(title,element) {
links.push(String.encodeTiddlyLink(title) +
(story.isOpenedFolded(title) ? " [showFolded[1]]" : ""));
});
var t = links.join(" ");
t = t.replace(/\\/gm,"\\\\").replace(/"/gm,'\\"');
if(t == "")
t = "#";
else
t = encodeURIComponent('filter:"'+t+'"');
if(window.location.hash != t)
window.location.hash = t;
};
// unescape \" and \\ back..
var _unescape = function(value) {
if(typeof value == "string")
return value.replace(/\\"/gm,'"').replace(/\\\\/,'\\');
return value;
};
// ..by hijacking invokeParamifier (certain paramifiers may be hijacked instead - probably enough to hijack only the "filter" one)
config.extensions.ftp_orig_invokeParamifier = invokeParamifier;
invokeParamifier = function(params,handler) {
if(!params)
return config.extensions.ftp_orig_invokeParamifier.apply(this,arguments);
var paramifiers = params[0], name, i;
for(name in paramifiers)
for(i = 0; i < paramifiers[name].length; i++)
paramifiers[name][i] = _unescape(paramifiers[name][i]);
for(i = 1; i < params.length; i++)
params[i].value = _unescape(params[i].value);
return config.extensions.ftp_orig_invokeParamifier.apply(this,arguments);
};
//}}}
/***
|''Name''|ForEachTiddlerPlugin|
|''Version''|1.3.1|
|''Forked from''|[[abego.ForEachTiddlerPlugin|http://tiddlywiki.abego-software.de/#ForEachTiddlerPlugin]], by Udo Borkowski|
|''Author''|Yakov Litvin|
|''CoreVersion''|2.6.2|
|~|Although 2.6.2 is theoretically minimal TW version required for the correct operation, tests showed that the plugin works in 2.6.0, too.|
***/
//{{{
(function(){
// Only install once
if (version.extensions.ForEachTiddlerPlugin) {
alert("Warning: more than one copy of ForEachTiddlerPlugin is set to be launched");
return;
} else
version.extensions.ForEachTiddlerPlugin = {
source: "[repository url here]",
licence: "[licence url here]",
copyright: "Copyright (c) Yakov Litvin, 2012-2015 [url of the meta page]"
};
//============================================================================
// forEachTiddler Macro
//============================================================================
// ---------------------------------------------------------------------------
// Configurations and constants
// ---------------------------------------------------------------------------
config.macros.forEachTiddler =
{
actions: {
addToList: {},
write: {}
}
};
// ---------------------------------------------------------------------------
// The forEachTiddler Macro Handler
// ---------------------------------------------------------------------------
config.macros.forEachTiddler.handler = function(place,macroName,params,wikifier,paramString,tiddler)
{
// --- Pre-parsing for up-to-date params ----------------
var preParsedParams = this.getUpToDateParams(paramString);
// for backward compability, "params" are used as well
// --- Parsing ------------------------------------------
var parsedParams = this.parseParams(preParsedParams,params);
if (parsedParams.errorText) {
this.handleError(place, parsedParams.errorText);
return;
}//else
parsedParams.place = place;
parsedParams.inTiddler = tiddler ? tiddler : getContainingTiddler(place);
// --- "Static" processing ------------------------------
// Choose the action
var actionName = parsedParams.actionName;
var action = this.actions[actionName]; // no this is always a "known" action
// Create the element
var element = document.createElement(action.element);
jQuery(element).attr({ refresh: "macro", macroName: macroName }).data(parsedParams);
place.appendChild(element);
// --- "Dynamic" processing -----------------------------
this.refresh(element);
};
config.macros.forEachTiddler.refresh = function(element)
{
var parsedParams = jQuery(element).data(),
action = this.actions[parsedParams.actionName];
jQuery(element).empty();
try {
var tiddlersAndContext = this.getTiddlersAndContext(parsedParams);
// Perform the action
action.handler(element, tiddlersAndContext.tiddlers,
parsedParams.actionParameter, tiddlersAndContext.context);
} catch (e) {
this.handleError(place, e);
}
};
config.macros.forEachTiddler.oldFashionParams = ["in", "filter", "where", "sortBy",
"script", "write", "begin", "end", "none", "toFile", "withLineSeparator"
//# add to docs: new actions are to be added here or used in name:param notation only
];
config.macros.forEachTiddler.getUpToDateParams = function(paramString)
// turns stuff like "... where 'tiddler.title.length < 20' ..."
// to "... where:'tiddler.title.length < 20' ..." and then applies parseParams,
// which allows to use params in an arbitrary order and other goodies of parsed params
{
var paramPairRegExp = new RegExp("("+this.oldFashionParams.join("|")+")\\s+"+
"("+ // adapted from String.prototype.parseParams
'(?:"(?:(?:\\\\")|[^"])+")|'+ // double-quoted param
"(?:'(?:(?:\\\\')|[^'])+')|"+ // quoted param
"(?:\\[\\[(?:\\s|\\S)*?\\]\\])|"+ // [[...]]-wrapped
"(?:\\{\\{(?:\\s|\\S)*?\\}\\})|"+ // {{...}}-wrapped
"(?:[^\"':\\s][^\\s:]*)|"+ // non-wrapped
"(?:\"\")|(?:'')"+ // empty '' or ""
")","g");
paramString =
paramString.replace(paramPairRegExp,function($0,$1,$2){ return $1+":"+$2; });
return paramString.parseParams("filter",null,true,false,true);
// the first unnamed param is now considered as the 'filter' param
};
// Returns an object with properties "tiddlers" and "context".
// tiddlers holds the (sorted) tiddlers selected by the parameter,
// context the context of the execution of the macro.
//
// The action is not yet performed.
//
// @param parameter holds the parameter of the macro as separate properties.
// The following properties are supported:
//
// place
// filter
// whereClause
// sortClause
// sortAscending
// actionName
// actionParameter
// scriptText
// tiddlyWikiPath
//
// All properties are optional.
// For most actions the place property must be defined.
//
config.macros.forEachTiddler.getTiddlersAndContext = function(parameter)
{
var context = config.macros.forEachTiddler.createContext(parameter.place, parameter.filter, parameter.whereClause, parameter.sortClause, parameter.sortAscending, parameter.actionName, parameter.actionParameter, parameter.scriptText, parameter.tiddlyWikiPath, parameter.inTiddler);
var tiddlyWiki = parameter.tiddlyWikiPath ? this.loadTiddlyWiki(parameter.tiddlyWikiPath) : store;
context["tiddlyWiki"] = tiddlyWiki;
// Get the tiddlers, as defined by the filter and the whereClause
var tiddlers = this.findTiddlers(parameter.filter, parameter.whereClause, context, tiddlyWiki);
context["tiddlers"] = tiddlers;
// Sort the tiddlers, when sorting is required.
if (parameter.sortClause)
this.sortTiddlers(tiddlers, parameter.sortClause, parameter.sortAscending, context);
return {tiddlers: tiddlers, context: context};
};
// ---------------------------------------------------------------------------
// The actions
// ---------------------------------------------------------------------------
// Internal.
//
// --- The addToList Action -----------------------------------------------
//
config.macros.forEachTiddler.actions.addToList.element = "ul";
config.macros.forEachTiddler.actions.addToList.handler = function(place, tiddlers, parameter, context)
{
for (var i = 0; i < tiddlers.length; i++)
{
var tiddler = tiddlers[i];
var listItem = document.createElement("li");
place.appendChild(listItem);
createTiddlyLink(listItem, tiddler.title, true);
}
};
// Internal.
//
// --- The write Action ---------------------------------------------------
//
config.macros.forEachTiddler.actions.write.element = "span";
config.macros.forEachTiddler.actions.write.handler = function(place, tiddlers, parameter, context)
{
var params = parameter[0].nonParsedParams;
if(!parameter[0]["write"])
return this.handleError(place, "Missing expression behind 'write'.");
var textExpression = config.macros.forEachTiddler.paramEncode(getParam(parameter,["write"]));
var getParamExpression = function(name)
{
if(params.contains(name) && !parameter[0][name])
throw "Missing text behind '%0'".format([name]);
return config.macros.forEachTiddler.paramEncode(getParam(parameter,name));
};
var beginExpression = getParamExpression("begin");
var endExpression = getParamExpression("end");
var noneExpression = getParamExpression("none");
var lineSeparator = undefined;
if(params.contains("toFile") && !parameter[0]["toFile"])
return this.handleError(place, "Filename expected behind 'toFile' of 'write' action.");
var filename = getParam(parameter,"toFile");
filename = config.macros.forEachTiddler.paramEncode(filename);
if(filename) {
filename = config.macros.forEachTiddler.getLocalPath(filename);
if(params.contains("withLineSeparator")&& !parameter[0]["withLineSeparator"])
return this.handleError(place, "Line separator text expected behind 'withLineSeparator' of 'write' action.")
lineSeparator = getParamExpression("withLineSeparator");
}
// Perform the action.
var func = config.macros.forEachTiddler.getEvalTiddlerFunction(textExpression, context),
count = tiddlers.length,
text = "";
if (count > 0 && beginExpression)
text += config.macros.forEachTiddler.getEvalTiddlerFunction(beginExpression, context)(undefined, context, count, undefined);
for (var i = 0; i < count; i++) {
var tiddler = tiddlers[i];
text += func(tiddler, context, count, i);
}
if (count > 0 && endExpression)
text += config.macros.forEachTiddler.getEvalTiddlerFunction(endExpression, context)(undefined, context, count, undefined);
if (count == 0 && noneExpression)
{
var beginAddition = beginExpression ? "("+beginExpression+")" : "",
endAddition = endExpression ? "("+ endExpression+")" : "",
bothAddition = "("+beginAddition
+((beginAddition && endAddition) ? "+" : "")+endAddition+")";
noneExpression = noneExpression
.replace(/(?=\W|^)begin(?=\W|$)/,beginAddition)
.replace(/(?=\W|^)end(?=\W|$)/, endAddition)
.replace(/(?=\W|^)same(?=\W|$)/, bothAddition);
text += config.macros.forEachTiddler.getEvalTiddlerFunction(noneExpression, context)(undefined, context, count, undefined);
}
if (filename) {
if (lineSeparator !== undefined) {
lineSeparator = lineSeparator.replace(/\\n/mg, "\n").replace(/\\r/mg, "\r");
text = text.replace(/\n/mg,lineSeparator);
}
saveFile(filename, convertUnicodeToUTF8(text));
} else
wikify(text, place, null/* highlightRegExp */, context.inTiddler);
};
// ---------------------------------------------------------------------------
// Helpers
// ---------------------------------------------------------------------------
config.macros.forEachTiddler.parseParams = function(preParsedParams,params)
{
if(params.contains("in") && !preParsedParams[0]["in"])
return { errorText: "TiddlyWiki path expected behind 'in'." };
var TWpath = getParam(preParsedParams,"in");
if(params.contains("filter") && !preParsedParams[0]["filter"])
return { errorText: "No filter specified." };
if(params.contains("where") && !preParsedParams[0]["where"])
return { errorText: "whereClause missing behind 'where'." };
var where = getParam(preParsedParams,"where");
var ascending = true;
if(params.contains("sortBy") && !preParsedParams[0]["sortBy"])
return { errorText: "sortClause missing behind 'sortBy'." };
var sortClause = getParam(preParsedParams,"sortBy");
if(preParsedParams[0]["sortBy"] && preParsedParams[0]["sortBy"].length > 1)
ascending = !(preParsedParams[0]["sortBy"][1] == "descending");
if(params.contains("script") && !preParsedParams[0]["script"])
return { errorText: "scriptText is not specified." };
var scriptText = getParam(preParsedParams,"script");
var actionName = "addToList";
for(var knownActionName in this.actions)
if(preParsedParams[0][knownActionName]) {
actionName = knownActionName;
break;
}
// no error handling if there's an unknown action
// because now the order is not important and actionName can have another position
preParsedParams[0].nonParsedParams = params; // for parsing inside actions
return {
tiddlyWikiPath: this.paramEncode(TWpath),
filter: getParam(preParsedParams,"filter"),
whereClause: this.paramEncode(where) || true,
sortClause: this.paramEncode(sortClause),
sortAscending: ascending,
scriptText: this.paramEncode(scriptText),
actionName: actionName,
actionParameter:preParsedParams // not much need to cut out other params
}
};
var getContainingTiddler = function(e)
{
while(e && !hasClass(e,"tiddler"))
e = e.parentNode;
var title = e ? e.getAttribute("tiddler") : null;
return title ? store.getTiddler(title) : null;
};
// Internal.
//
config.macros.forEachTiddler.createContext = function(placeParam, filterParam, whereClauseParam, sortClauseParam, sortAscendingParam, actionNameParam, actionParameterParam, scriptText, tiddlyWikiPathParam, inTiddlerParam) {
return {
place : placeParam,
filter : filterParam,
whereClause : whereClauseParam,
sortClause : sortClauseParam,
sortAscending : sortAscendingParam,
script : scriptText,
actionName : actionNameParam,
actionParameter : actionParameterParam,
tiddlyWikiPath : tiddlyWikiPathParam,
inTiddler : inTiddlerParam, // the tiddler containing the <<forEachTiddler ...>> macro call.
viewerTiddler : getContainingTiddler(placeParam) //the tiddler showing the forEachTiddler result
};
};
// Internal.
//
// Returns a TiddlyWiki with the tiddlers loaded from the TiddlyWiki of the given path.
//
config.macros.forEachTiddler.loadTiddlyWiki = function(path, idPrefix)
{
if (!idPrefix)
idPrefix = "store";
var lenPrefix = idPrefix.length;
// Read the content of the given file
var content = loadFile(this.getLocalPath(path));
if(content === null)
throw "TiddlyWiki '"+path+"' not found.";
var tiddlyWiki = new TiddlyWiki();
if (!tiddlyWiki.importTiddlyWiki(content))
throw "File '"+path+"' is not a TiddlyWiki.";
tiddlyWiki.dirty = false;
return tiddlyWiki;
};
// Internal.
//
// Returns a function that has a function body returning the given javaScriptExpression.
// The function has the parameters:
//
// (tiddler, context, count, index)
//
config.macros.forEachTiddler.getEvalTiddlerFunction = function (javaScriptExpression, context) {
var script = context["script"];
// var functionText = "var theFunction = function(tiddler, context, count, index) { return "+javaScriptExpression+"}";
var functionText = "var theFunction = function(tiddler, context, count, index) { "+(script ? script+";" : "")+"return "+javaScriptExpression+"}";
// var fullText = (script ? script+";" : "")+functionText+";theFunction;";
var fullText = functionText+";theFunction;";
return eval(fullText);
};
// Internal.
//
config.macros.forEachTiddler.findTiddlers = function(filter, whereClause, context, tiddlyWiki) {
var result = [];
var func = config.macros.forEachTiddler.getEvalTiddlerFunction(whereClause, context);
if(filter) {
var tids = tiddlyWiki.filterTiddlers(filter);
for(var i = 0; i < tids.length; i++)
if(func(tids[i], context, undefined, undefined))
result.push(tids[i]);
} else
tiddlyWiki.forEachTiddler(function(title,tiddler) {
if(func(tiddler, context, undefined, undefined))
result.push(tiddler);
});
return result;
};
// Internal.
//
config.macros.forEachTiddler.sortAscending = function(tiddlerA, tiddlerB)
{
return ((tiddlerA.forEachTiddlerSortValue == tiddlerB.forEachTiddlerSortValue)
? 0
: ((tiddlerA.forEachTiddlerSortValue < tiddlerB.forEachTiddlerSortValue)
? -1
: +1))
};
// Internal.
//
config.macros.forEachTiddler.sortDescending = function(tiddlerA, tiddlerB)
{
return ((tiddlerA.forEachTiddlerSortValue == tiddlerB.forEachTiddlerSortValue)
? 0
: ((tiddlerA.forEachTiddlerSortValue < tiddlerB.forEachTiddlerSortValue)
? +1
: -1))
};
// Internal.
//
config.macros.forEachTiddler.sortTiddlers = function(tiddlers, sortClause, ascending, context) {
// To avoid evaluating the sortClause whenever two items are compared
// we pre-calculate the sortValue for every item in the array and store it in a
// temporary property ("forEachTiddlerSortValue") of the tiddlers.
var func = config.macros.forEachTiddler.getEvalTiddlerFunction(sortClause, context);
var count = tiddlers.length;
var i;
for (i = 0; i < count; i++) {
var tiddler = tiddlers[i];
tiddler.forEachTiddlerSortValue = func(tiddler,context, undefined, undefined);
}
// Do the sorting
tiddlers.sort(ascending ? this.sortAscending : this.sortDescending);
// Delete the temporary property that holds the sortValue.
for (i = 0; i < tiddlers.length; i++)
delete tiddlers[i].forEachTiddlerSortValue;
};
// Internal.
//
// Creates an element that holds an error message
//
config.macros.forEachTiddler.createErrorElement = function(place, exception) {
var message = (exception.description) ? exception.description : exception.toString();
return createTiddlyElement(place,"span",null,"forEachTiddlerError","<<forEachTiddler ...>>: "+message);
};
// Internal.
//
// @param place [may be null]
//
config.macros.forEachTiddler.handleError = function(place, exception)
{
if(place)
this.createErrorElement(place, exception);
else
throw exception;
};
// Internal.
//
// Encodes the given string.
//
// Replaces
// "$))" to ">>"
// "$)" to ">"
//
config.macros.forEachTiddler.paramEncode = function(s)
{
if(!s) return s;
var reGTGT = new RegExp("\\$\\)\\)","mg");
var reGT = new RegExp("\\$\\)","mg");
return s.replace(reGTGT, ">>").replace(reGT, ">");
};
//# document the .paramEncode transformation of the params; or get rid of it?
// Internal.
//
// Returns the given original path (that is a file path, starting with "file:")
// as a path to a local file, in the systems native file format.
//
// Handles relative links, too.
//
config.macros.forEachTiddler.getLocalPath = function(originalPath) {
// code adapted from SharedTiddlersPlugin to handle relative paths
var originalAbsolutePath = originalPath;
if(originalAbsolutePath.search(/^((http(s)?)|(file)):/) != 0) {
// no protocol prefix..
if (originalAbsolutePath.search(/^(.\:\\)|(\\\\)|(\/)/) != 0){// is relative?
// as Unix filesystem root is "/", urls starting with it are not considered as relative
var currentUrl = document.location.toString();
var currentPath = (currentUrl.lastIndexOf("/") > -1) ?
currentUrl.substr(0, currentUrl.lastIndexOf("/") + 1) :
currentUrl + "/";
originalAbsolutePath = currentPath + originalAbsolutePath;
} else
// an "absolute" path to a local file. Prefix it with file://
originalAbsolutePath = "file://" + originalAbsolutePath;
// replace every \ by a /, to cover Windows style pathes
originalAbsolutePath = originalAbsolutePath.replace(/\\/mg,"/");
}
return getLocalPath(originalAbsolutePath);
};
// ---------------------------------------------------------------------------
// Stylesheet Extensions (may be overridden by local StyleSheet)
// ---------------------------------------------------------------------------
//
setStylesheet(
".forEachTiddlerError{color: #ffffff;background-color: #880000;}",
"forEachTiddler");
// ---------------------------------------------------------------------------
// fet alias for the the forEachTiddler Macro
// ---------------------------------------------------------------------------
config.macros.fet = config.macros.forEachTiddler;
//============================================================================
// utilities for String and Tiddler objects useful in fet macros
//============================================================================
// Returns true if the string starts with the given prefix, false otherwise.
//
String.prototype.startsWith = function(prefix) {
var n = prefix.length;
return (this.length >= n) && (this.slice(0, n) == prefix);
};
// Returns true if the string ends with the given suffix, false otherwise.
//
String.prototype.endsWith = function(suffix) {
var n = suffix.length;
return (this.length >= n) && (this.right(n) == suffix);
};
// Returns true when the string contains the given substring, false otherwise.
//
String.prototype.contains = function(substring) {
return this.indexOf(substring) >= 0;
};
})();
// Returns the slice value if it is present or defaultText otherwise
//
Tiddler.prototype.getSlice = function(sliceName,defaultText)
{
var re = TiddlyWiki.prototype.slicesRE;
re.lastIndex = 0;
var m = re.exec(this.text);
while(m) {
if(m[2]) {
if(m[2] == sliceName)
return m[3];
} else {
if(m[5] == sliceName)
return m[6];
}
m = re.exec(this.text);
}
return defaultText;
};
// Returns the section value if it is present or defaultText otherwise
//
Tiddler.prototype.getSection = function(sectionName,defaultText)
{
var beginSectionRegExp = new RegExp("(^!{1,6}[ \t]*" + sectionName.escapeRegExp() + "[ \t]*\n)","mg"),
sectionTerminatorRegExp = /^!/mg;
var match = beginSectionRegExp.exec(this.text), sectionText;
if(match) {
sectionText = this.text.substr(match.index+match[1].length);
match = sectionTerminatorRegExp.exec(sectionText);
if(match)
sectionText = sectionText.substr(0,match.index-1); // don't include final \n
return sectionText;
}
return defaultText;
};
var transText = function(tiddlerOrGetTiddlerTextArg, moreArguments)
{
var title = (tiddlerOrGetTiddlerTextArg instanceof Tiddler) ? tiddlerOrGetTiddlerTextArg.title : tiddlerOrGetTiddlerTextArg;
return "<<tiddler [[" + title + "]] "+ (moreArguments||"") +">>"
};
//}}}
/***
|''Name''|FromPlaceToPlacePlugin|
|''Description''|allows to substitute current tiddlers or page instead of opening tiddlers/pages in addition|
|''Documentation''|see below|
|''Type''|plugin|
|''Version''|1.2.0|
|''CoreVersion''|2.5.0|
|''Source''|http://yakovl.bplaced.net/TW/FPTP.html#FromPlaceToPlacePlugin|
|''Author''|Yakov Litvin|
|''Contact''|See the [[main plugin discussion thread|https://groups.google.com/forum/#!topic/tiddlywiki/bICRWy8qo8g]] and [[contacts|http://customize.tiddlyspace.com/#%5B%5BYakov%20Litvin%5D%5D]]|
|''Copyright''|Yakov Litvin, 2013|
|''Licence''|[[BSD-like open source license|http://yakovl.bplaced.net/TW/FPTP.html#%5B%5BYakov%20Litvin%20Public%20Licence%5D%5D]]|
!!!Introduction
In ~TiddlyWiki, links work "comulatively": when you click an internal link, you get +1 tiddler opened, external links open pages without closing ~TiddlyWiki (hence +1 browser tab). At times, this causes unnecessary "flooding" with opened things (tiddlers/pages). To solve this, FromPlaceToPlacePlugin was created.
It works in a simple way: it keeps the common functionality of the "click a link" action, but "hold meta key + click a link" causes "close and open" action:
* for internal links, this means "close the tiddler in which the link is placed and open the target tiddler"
* for external links, this means "open the page in the same browser tab"
!!!Installation & usage
Aside the usual import/copy-and-add-{{{systemConfig}}}-tag action, you need to adjust the meta keys for internal and external links (and reload afterwards). To do this, change the "Config" section of this tiddler ({{{txtFromTiddlerToTiddlerKey}}} for internal and {{{txtFromPageToPageKey}}} for external links), if necessary. Note that:
* {{{shift}}} doesn't work well for external links in Opera: on shift+click it opens the link in a new tab, so this will result in two equal tabs opened (with Opera, I recommend {{{alt}}})
* {{{alt}}} doesn't work well with IE, so you probably would prefer {{{shift}}}
* each {{{alt}}}, {{{ctrl}}} and {{{shift}}} work (with the limitations above); any other value of an option deactivates corresponding feature
Once the meta keys are set and TW is reloaded, try to click links..
!!!Demo
* click this [[internal link|Introduction to FromPlaceToPlacePlugin]] while pressing {{{shift}}} (or whatever meta key you've set)
* click this [[external link|http://yakovl.bplaced.net/TW/STP/STP.html]] while holding {{{alt}}} key
!!!Additional notes
* this works even with implicit links (like those in the "references" popup)
* "external links" are links with the {{{externalLink}}} class, so links created with inline-html won't work unless the class is added
!!!Config
***/
//{{{
config.extensions.txtFromPageToPageKey = 'alt'; // each 'alt', 'ctrl' and 'shift' work
config.extensions.txtFromTiddlerToTiddlerKey = 'shift'; // each 'alt', 'ctrl' and 'shift' work
//}}}
/***
!!!Code
***/
//{{{
(function(){
if(version.extensions.FromPlaceToPlacePlugin)
return;
version.extensions.FromPlaceToPlacePlugin = { major: 1, minor: 2, revision: 0, date: new Date(2013,10,24)};
var firedWhenKeyWasPressed = function(event,key) {
return (event.shiftKey && key == 'shift') ||
(event.ctrlKey && key == 'ctrl') ||
(event.altKey && key == 'alt');
}
//------------------------------------------------------------------------------------------------------------
// From tiddler to tiddler
// keep as a global variable for a possibility of introspection
orig_onClickTiddlerLink = onClickTiddlerLink;
// hijack
onClickTiddlerLink = function(ev) {
var result,
sourceTid = story.findContainingTiddler(this),
event = ev || window.event,
key = config.extensions.txtFromTiddlerToTiddlerKey,
close = (firedWhenKeyWasPressed(event,key) && sourceTid) ? true : false;
// to "correct" page and zoomer position,
// hide the "source" tiddler before opening the "target" and closing the "source"
if(close)
sourceTid.style.display = "none";
result = orig_onClickTiddlerLink(event);
if(close) {
var tName = sourceTid.getAttribute("tiddler");
story.closeTiddler(tName);
}
return result;
}
//------------------------------------------------------------------------------------------------------------
// From page to page
jQuery("body").delegate("a.externalLink", "click", function(ev) {
var event = ev || window.event,
key = config.extensions.txtFromPageToPageKey,
close = firedWhenKeyWasPressed(event,key),
target = jQuery(this).attr("href");
if(close) {
window.location.assign(target);
return false;
}
});
})();
//}}}
/***
|''Name:''|HandsontablePlugin|
|''Description:''|Brings Handsontable spreadsheets into ~TiddlyWiki classic|
|''Author:''|Yakov Litvin|
|''Initial prototype:''|[[by Vincent Yeh|http://twve.tiddlyspot.com/#HandsontablePlugin]]|
|''Source:''|http://yakovl.bplaced.net/TW/Spreadsheets.html|
|''Type:''|plugin|
|''Version:''|0.3.2|
|''Status:''|Stable, useful enough to use in production, but needs some improvements|
|''License:''|MIT|
|''~CoreVersion:''|2.5.0|
{{DDnc{not documented yet: using with a set of tiddlers (filter, containers params, ..)}}}
!! Demo
Basically if you put this macro to your TW:
{{{
<<handsontable [[##some section name]]>>
}}}
you will get this little spreadsheet (try navigating with arrows and typing some stuff):/%
!some section name
{"data":[
[""]
],
"options":{}}
!%/<<handsontable [[##some section name]]>>
and after creating some columns and rows and writing some data you may have something like this:
<<handsontable [[##another section name]]>>/%
!another section name
{"data":[
["","Charly","Bob","Tom"],
["Charly","–","1:1","3:0"],
["Bob","1:1","–","0:3"],
["Tom","0:3","3:0","–"]
],
"options":{}}
!%/You may also populate a table by copy-pasting some content from other tables, including spreadsheets. Data is stored automatically (see below for details). For other examples, see [[Handsontable Demo]].
!! Installation and usage
# Install this plugin (copy-paste it and tag with {{{systemConfig}}} or import; reload TW).
# Add a {{{handsontable}}} macro somewhere with params you see fit and start editing.
* if you use the old approach from Vincent's v0.0.1, you can adapt your data to the new format (macro + section for data and options, see below) or just copy-paste your data. In current version backward compability code is present, but it is deprecated and will be removed at some point.
!!! Macro syntax
the simplest syntax is the following:
{{{
<<handsontable [[##section name]]>>
}}}
this way, data and handsontable options will be stored in a section {{{section name}}} in the same tiddler as the macro. If the section doesn't exist, it will be created hidden (see data format for details). You can also store data in another tiddler by using
{{{
<<handsontable [[tiddler name##section name]]>>
}}}
to store it in a section or
{{{
<<handsontable [[tiddler name]]>>
}}}
to store it just as text of the {{{tiddler name}}} tiddler.
For more advanced usage, one would need to set handsontable options (see [[docs|http://docs.handsontable.com/Core.html]]):
{{{
<<handsontable [[...]] options:'{
rowHeaders: true,
...
}'>>
}}}
Note that options have the following priority: default ones (lowest, see below), from macro params, stored (highest, see below).
!!!Default options
In the version 0.3.1, the following handsontable options are set by default:
|{{{colHeaders: true}}}|headers are useful for manual resizing of columns (as of 05.2017, [[resizing can't be done without them|https://github.com/handsontable/handsontable/issues/4244]])|
|{{{manualColumnResize: true}}}|enables manual resizing, ({{DDn{sizes are not saved yet}}})|
|{{{contextMenu: true}}}|enables context menu ({{DDn{results of toggling read-only and changing alignment are not saved yet}}})|
You may hard-code them in the {{{defaultOptions}}} property of {{{config.macros.handsontable}}}.
!!!wikifiedRenderer
To display cells' content wikified, you may use the {{{renderer}}} option with the pre-defined renderer {{{config.macros.handsontable.wikifiedRenderer}}} like this:
{{{
<<handsontable [[##section name]] options:'{
renderer: this.wikifiedRenderer
}'
>>
}}}
It is also possible to use it only in certain columns using the {{{columns}}} option (2d and 5th columns in the following example):
{{{
columns: [ {},{renderer: this.wikifiedRenderer},
{},{},{renderer: this.wikifiedRenderer}
{},{},{}]
}}}
However, this method prevents creating new columns, so a preferrable approach would be to use a custom renderer:
{{{
renderer: function (instance, td, row, col, prop, value, cellProperties)
{
if(col == 1 || col == 4) // first column has an index of 0
config.macros.handsontable.wikifiedRenderer.apply(this,arguments);
else
Handsontable.renderers.TextRenderer.apply(this,arguments);
}
}}}
!!!Data format
Normally, you don't need to know the data storage format. However, it may be useful if you want to adapt handsontables created with the 0.0.1 version to the new version (use macros) or repair/convert some data.
Data and options are stored as JSON in the section/tiddler chosen in the first macro param:
{{{
!section
{data:[
...
],
options:[
...
]}
}}}
if the section doesn't exist it is created hidden in the end of the tiddler text:
{{{
.../%
!section
...
!%/
}}}
and if the text ends with {{{|}}}, extra linebreak is added (not to hurt a table in TW syntax):
{{{
...|
/%
!section
...
!%/
}}}
!! Changelog
* 0.3.3 (2.07.2017, by Yakov Litvin) – fixed a major bug with refreshing when changing the set of tiddlers by an "external" mean
* 0.3.2 (14.06.2017, by Yakov Litvin) – added refreshing to the aggregated handsontable
* 0.3.1 (20.05.2017, by Yakov Litvin) – fixed setting dirty on displaying aggregated handsontable, fixed: allow to use ctrl+tab to switch browser tab from handsontable
* 0.3.0 (17.05.2017, by Yakov Litvin) – implemented rough prototype for editing granulated data (collected from a filtered set of tiddlers)
* 0.2.4 (15.05.2017, by Yakov Litvin) – fixed autoremoving empty columns/rows (prevented "jumping"/extra page scrolling, removing the only column/row)
* 0.2.3 (2.05.2017, by Yakov Litvin) – implemented autoinserting columns/rows when moving out of right/bottom boundaries when pressing right/down + autoremoving empty columns/rows when going back
* 0.2.2 (22.04.2017, by Yakov Litvin) – tested `wikifiedRenderer`, refactored options system, added `wikifiedRenderer` to the plugin
* 0.2.0 (06.04.2017, by Yakov Litvin) – added a macro that edits data and stores it in a tiddler/section, now ~InlineJavascriptPlugin is not necessary to use this
* 0.1.0 (02.03.2017, by Yakov Litvin) – local copies of handsontable (js and css) used (embedded into the plugin) instead of external ones loaded from web
* 0.0.1 (22.06.2015, by Vincent Yeh) – Born this day.
** Works __with or without a locally installed version__ of Handsontable.
*** If a local version is not installed, this plugin will load its on-line version (http://handsontable.com/dist/handsontable.full.min.js) and its stylesheet (http://handsontable.com/dist/handsontable.full.min.css).
** Updates wiki text upon content change using Handsontable.
** __Works with multiple tables__ in one tiddler if each table data is given a __unique variable name__.
** Tested only in normally loaded tiddlers.
!!Code
***/
// /%
/***
handsontable.min.js 0.31.0
downloaded from http://handsontable.com/dist/handsontable.full.min.js
which redirected to http://docs.handsontable.com/0.31.0/bower_components/handsontable/dist/handsontable.full.min.js
(The MIT License)
Copyright (c) 2012-2014 Marcin Warpechowski
Copyright (c) 2015 Handsoncode sp. z o.o. <hello@handsoncode.net>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
***/
//{{{
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Handsontable=e()}}(function(){var e;return function e(t,n,o){function r(a,l){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!l&&u)return u(a,!0);if(i)return i(a,!0);if(s[a]&&"undefined"!=typeof window[s[a]])return window[s[a]];var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[a]={exports:{}};t[a][0].call(d.exports,function(e){var n=t[a][1][e];return r(n?n:e)},d,d.exports,e,t,n,o)}return n[a].exports}for(var i="function"==typeof require&&require,s=JSON.parse('{"zeroclipboard":"ZeroClipboard","moment":"moment","numbro":"numbro","pikaday":"Pikaday"}')||{},a=0;a<o.length;a++)r(o[a]);return r}({1:[function(e,t,n){},{}],2:[function(e,t,n){window.jQuery&&!function(e){e.fn.handsontable=function(e){var t,n,o,r,i,s=this.first(),a=s.data("handsontable");if("string"!=typeof e)return i=e||{},a?a.updateSettings(i):(a=new Handsontable.Core(s[0],i),s.data("handsontable",a),a.init()),s;if(o=[],arguments.length>1)for(t=1,n=arguments.length;t<n;t++)o.push(arguments[t]);if(a){if("undefined"==typeof a[e])throw new Error("Handsontable do not provide action: "+e);r=a[e].apply(a,o),"destroy"===e&&s.removeData()}return r}}(window.jQuery)},{}],3:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableBorder:{get:function(){return C}},__esModule:{value:!0}});var o,r,i,s,a,l,u=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),c=u.getComputedStyle,d=u.getTrimmingContainer,h=u.innerWidth,f=u.innerHeight,p=u.offset,m=u.outerHeight,g=u.outerWidth,w=(r=e("helpers/dom/event"),r&&r.__esModule&&r||{default:r}).stopImmediatePropagation,v=(i=e("helpers/browser"),i&&i.__esModule&&i||{default:i}).isMobileBrowser,y=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).EventManager,b=(a=e("cell/coords"),a&&a.__esModule&&a||{default:a}).WalkontableCellCoords,C=((l=e("overlay/_base.js"),l&&l.__esModule&&l||{default:l}).WalkontableOverlay,function(e,t){t&&(this.eventManager=new y(e),this.instance=e,this.wot=e,this.settings=t,this.mouseDown=!1,this.main=null,this.top=null,this.left=null,this.bottom=null,this.right=null,this.topStyle=null,this.leftStyle=null,this.bottomStyle=null,this.rightStyle=null,this.cornerDefaultStyle={width:"5px",height:"5px",borderWidth:"2px",borderStyle:"solid",borderColor:"#FFF"},this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())});$traceurRuntime.createClass(C,{registerListeners:function(){var e=this;this.eventManager.addEventListener(document.body,"mousedown",function(){return e.onMouseDown()}),this.eventManager.addEventListener(document.body,"mouseup",function(){return e.onMouseUp()});for(var t=this,n=function(n,o){t.eventManager.addEventListener(t.main.childNodes[n],"mouseenter",function(t){return e.onMouseEnter(t,e.main.childNodes[n])})},o=0,r=this.main.childNodes.length;o<r;o++)n(o,r)},onMouseDown:function(){this.mouseDown=!0},onMouseUp:function(){this.mouseDown=!1},onMouseEnter:function(e,t){function n(e){return e.clientY<Math.floor(i.top)||(e.clientY>Math.ceil(i.top+i.height)||(e.clientX<Math.floor(i.left)||(e.clientX>Math.ceil(i.left+i.width)||void 0)))}function o(e){n(e)&&(r.eventManager.removeEventListener(document.body,"mousemove",o),t.style.display="block")}if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),w(e);var r=this,i=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(document.body,"mousemove",o)}},createBorders:function(e){this.main=document.createElement("div");var t=["top","left","bottom","right","corner"],n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(var o=0;o<5;o++){var r=t[o],i=document.createElement("div");i.className="wtBorder "+(this.settings.className||""),this.settings[r]&&this.settings[r].hide&&(i.className+=" hidden"),n=i.style,n.backgroundColor=this.settings[r]&&this.settings[r].color?this.settings[r].color:e.border.color,n.height=this.settings[r]&&this.settings[r].width?this.settings[r].width+"px":e.border.width+"px",n.width=this.settings[r]&&this.settings[r].width?this.settings[r].width+"px":e.border.width+"px",this.main.appendChild(i)}this.top=this.main.childNodes[0],this.left=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.right=this.main.childNodes[3],this.topStyle=this.top.style,this.leftStyle=this.left.style,this.bottomStyle=this.bottom.style,this.rightStyle=this.right.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),v()&&this.createMultipleSelectorHandles(),this.disappear(),this.wot.wtTable.bordersHolder||(this.wot.wtTable.bordersHolder=document.createElement("div"),this.wot.wtTable.bordersHolder.className="htBorders",this.wot.wtTable.spreader.appendChild(this.wot.wtTable.bordersHolder)),this.wot.wtTable.bordersHolder.insertBefore(this.main,this.wot.wtTable.bordersHolder.firstChild)},createMultipleSelectorHandles:function(){this.selectionHandles={topLeft:document.createElement("DIV"),topLeftHitArea:document.createElement("DIV"),bottomRight:document.createElement("DIV"),bottomRightHitArea:document.createElement("DIV")};var e=10,t=40;this.selectionHandles.topLeft.className="topLeftSelectionHandle",this.selectionHandles.topLeftHitArea.className="topLeftSelectionHandle-HitArea",this.selectionHandles.bottomRight.className="bottomRightSelectionHandle",this.selectionHandles.bottomRightHitArea.className="bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={topLeft:this.selectionHandles.topLeft.style,topLeftHitArea:this.selectionHandles.topLeftHitArea.style,bottomRight:this.selectionHandles.bottomRight.style,bottomRightHitArea:this.selectionHandles.bottomRightHitArea.style};var n={position:"absolute",height:t+"px",width:t+"px","border-radius":parseInt(t/1.5,10)+"px"};for(var o in n)n.hasOwnProperty(o)&&(this.selectionHandles.styles.bottomRightHitArea[o]=n[o],this.selectionHandles.styles.topLeftHitArea[o]=n[o]);var r={position:"absolute",height:e+"px",width:e+"px","border-radius":parseInt(e/1.5,10)+"px",background:"#F5F5FF",border:"1px solid #4285c8"};for(var i in r)r.hasOwnProperty(i)&&(this.selectionHandles.styles.bottomRight[i]=r[i],this.selectionHandles.styles.topLeft[i]=r[i]);this.main.appendChild(this.selectionHandles.topLeft),this.main.appendChild(this.selectionHandles.bottomRight),this.main.appendChild(this.selectionHandles.topLeftHitArea),this.main.appendChild(this.selectionHandles.bottomRightHitArea)},isPartRange:function(e,t){return!(!this.wot.selections.area.cellRange||e==this.wot.selections.area.cellRange.to.row&&t==this.wot.selections.area.cellRange.to.col)},updateMultipleSelectionHandlesPosition:function(e,t,n,o,r,i){var s=parseInt(this.selectionHandles.styles.topLeft.width,10),a=parseInt(this.selectionHandles.styles.topLeftHitArea.width,10);this.selectionHandles.styles.topLeft.top=parseInt(n-s,10)+"px",this.selectionHandles.styles.topLeft.left=parseInt(o-s,10)+"px",this.selectionHandles.styles.topLeftHitArea.top=parseInt(n-a/4*3,10)+"px",this.selectionHandles.styles.topLeftHitArea.left=parseInt(o-a/4*3,10)+"px",this.selectionHandles.styles.bottomRight.top=parseInt(n+i,10)+"px",this.selectionHandles.styles.bottomRight.left=parseInt(o+r,10)+"px",this.selectionHandles.styles.bottomRightHitArea.top=parseInt(n+i-a/4,10)+"px",this.selectionHandles.styles.bottomRightHitArea.left=parseInt(o+r-a/4,10)+"px",this.settings.border.multipleSelectionHandlesVisible&&this.settings.border.multipleSelectionHandlesVisible()?(this.selectionHandles.styles.topLeft.display="block",this.selectionHandles.styles.topLeftHitArea.display="block",this.isPartRange(e,t)?(this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"):(this.selectionHandles.styles.bottomRight.display="block",this.selectionHandles.styles.bottomRightHitArea.display="block")):(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.topLeftHitArea.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"),e==this.wot.wtSettings.getSetting("fixedRowsTop")||t==this.wot.wtSettings.getSetting("fixedColumnsLeft")?(this.selectionHandles.styles.topLeft.zIndex="9999",this.selectionHandles.styles.topLeftHitArea.zIndex="9999"):(this.selectionHandles.styles.topLeft.zIndex="",this.selectionHandles.styles.topLeftHitArea.zIndex="")},appear:function(e){if(!this.disabled){var t,n,o,r,i,s,a,l,u,w,y,C,_,R,M,S,E,O,T;T=this.wot.wtTable.getRenderedRowsCount();for(var k=0;k<T;k++){var x=this.wot.wtTable.rowFilter.renderedToSource(k);if(x>=e[0]&&x<=e[2]){_=x;break}}for(var D=T-1;D>=0;D--){var H=this.wot.wtTable.rowFilter.renderedToSource(D);if(H>=e[0]&&H<=e[2]){M=H;break}}T=this.wot.wtTable.getRenderedColumnsCount();for(var A=0;A<T;A++){var P=this.wot.wtTable.columnFilter.renderedToSource(A);if(P>=e[1]&&P<=e[3]){R=P;break}}for(var N=T-1;N>=0;N--){var L=this.wot.wtTable.columnFilter.renderedToSource(N);if(L>=e[1]&&L<=e[3]){S=L;break}}if(void 0===_||void 0===R)return void this.disappear();t=_!==M||R!==S,n=this.wot.wtTable.getCell(new b(_,R)),o=t?this.wot.wtTable.getCell(new b(M,S)):n,r=p(n),i=t?p(o):r,s=p(this.wot.wtTable.TABLE),l=r.top,y=i.top+m(o)-l,w=r.left,C=i.left+g(o)-w,a=l-s.top-1,u=w-s.left-1;var I=c(n);parseInt(I.borderTopWidth,10)>0&&(a+=1,y=y>0?y-1:0),parseInt(I.borderLeftWidth,10)>0&&(u+=1,C=C>0?C-1:0),this.topStyle.top=a+"px",this.topStyle.left=u+"px",this.topStyle.width=C+"px",this.topStyle.display="block",this.leftStyle.top=a+"px",this.leftStyle.left=u+"px",this.leftStyle.height=y+"px",this.leftStyle.display="block";var W=Math.floor(this.settings.border.width/2);this.bottomStyle.top=a+y-W+"px",this.bottomStyle.left=u+"px",this.bottomStyle.width=C+"px",this.bottomStyle.display="block",this.rightStyle.top=a+"px",this.rightStyle.left=u+C-W+"px",this.rightStyle.height=y+1+"px",this.rightStyle.display="block",v()||!this.hasSetting(this.settings.border.cornerVisible)||this.isPartRange(M,S)?this.cornerStyle.display="none":(this.cornerStyle.top=a+y-4+"px",this.cornerStyle.left=u+C-4+"px",this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none",E=d(this.wot.wtTable.TABLE),S===this.wot.getSetting("totalColumns")-1&&(O=o.offsetLeft+g(o)+parseInt(this.cornerDefaultStyle.width)/2>=h(E),O&&(this.cornerStyle.left=Math.floor(u+C-3-parseInt(this.cornerDefaultStyle.width)/2)+"px",this.cornerStyle.borderRightWidth=0)),M===this.wot.getSetting("totalRows")-1&&(O=o.offsetTop+m(o)+parseInt(this.cornerDefaultStyle.height)/2>=f(E),O&&(this.cornerStyle.top=Math.floor(a+y-3-parseInt(this.cornerDefaultStyle.height)/2)+"px",this.cornerStyle.borderBottomWidth=0)),this.cornerStyle.display="block"),v()&&this.updateMultipleSelectionHandlesPosition(_,R,a,u,C,y)}},disappear:function(){this.topStyle.display="none",this.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none",v()&&(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none")},hasSetting:function(e){return"function"==typeof e?e():!!e}},{}),window.WalkontableBorder=C},{"cell/coords":6,eventManager:42,"helpers/browser":44,"helpers/dom/element":47,"helpers/dom/event":48,"overlay/_base.js":12}],4:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableViewportColumnsCalculator:{get:function(){return r}},__esModule:{value:!0}});var o=new WeakMap,r=function(e,t,n,r,i,s,a){var l=void 0!==arguments[7]?arguments[7]:function(e){return e};o.set(this,{viewportWidth:e,scrollOffset:t,totalColumns:n,columnWidthFn:r,overrideFn:i,onlyFullyVisible:s,stretchingColumnWidthFn:l}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=a,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()},i=r;$traceurRuntime.createClass(r,{calculate:function(){for(var e,t=0,n=!0,r=[],i=o.get(this),s=i.onlyFullyVisible,a=i.overrideFn,l=i.scrollOffset,u=i.totalColumns,c=i.viewportWidth,d=0;d<u;d++){e=this._getColumnWidth(d),t<=l&&!s&&(this.startColumn=d);var h=l>0?c+1:c;if(t>=l&&t+e<=l+h&&(null==this.startColumn&&(this.startColumn=d),this.endColumn=d),r.push(t),t+=e,s||(this.endColumn=d),t>=l+c){n=!1;break}}if(this.endColumn===u-1&&n)for(this.startColumn=this.endColumn;this.startColumn>0;){var f=r[this.endColumn]+e-r[this.startColumn-1];if((f<=c||!s)&&this.startColumn--,f>c)break}null!==this.startColumn&&a&&a(this),this.startPosition=r[this.startColumn],void 0==this.startPosition&&(this.startPosition=null),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)},refreshStretching:function(e){if("none"!==this.stretch){this.totalTargetWidth=e;for(var t=o.get(this),n=t.totalColumns,r=0,i=0;i<n;i++){var s=this._getColumnWidth(i),a=t.stretchingColumnWidthFn(void 0,i);"number"==typeof a?e-=a:r+=s}var l=e-r;if("all"===this.stretch&&l>0)this.stretchAllRatio=e/r,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&e!==1/0){var u=this._getColumnWidth(n-1),c=l+u;this.stretchLastWidth=c>=0?c:u}}},getStretchedColumnWidth:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n},_getStretchedAllColumnWidth:function(e,t){var n=0,r=o.get(this),i=r.totalColumns;if(!this.stretchAllColumnsWidth[e]){var s=Math.round(t*this.stretchAllRatio),a=r.stretchingColumnWidthFn(s,e);void 0===a?this.stretchAllColumnsWidth[e]=s:this.stretchAllColumnsWidth[e]=isNaN(a)?this._getColumnWidth(e):a}if(this.stretchAllColumnsWidth.length===i&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var l=0;l<this.stretchAllColumnsWidth.length;l++)n+=this.stretchAllColumnsWidth[l];n!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-n)}return this.stretchAllColumnsWidth[e]},_getStretchedLastColumnWidth:function(e){var t=o.get(this),n=t.totalColumns;return e===n-1?this.stretchLastWidth:null},_getColumnWidth:function(e){var t=o.get(this).columnWidthFn(e);return void 0===t&&(t=i.DEFAULT_WIDTH),t}},{get DEFAULT_WIDTH(){return 50}}),window.WalkontableViewportColumnsCalculator=r},{}],5:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableViewportRowsCalculator:{get:function(){return r}},__esModule:{value:!0}});var o=new WeakMap,r=function(e,t,n,r,i,s,a){o.set(this,{viewportHeight:e,scrollOffset:t,totalRows:n,rowHeightFn:r,overrideFn:i,onlyFullyVisible:s,horizontalScrollbarHeight:a}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()},i=r;$traceurRuntime.createClass(r,{calculate:function(){for(var e=0,t=!0,n=[],r=o.get(this),s=r.onlyFullyVisible,a=r.overrideFn,l=r.rowHeightFn,u=r.scrollOffset,c=r.totalRows,d=r.viewportHeight,h=r.horizontalScrollbarHeight||0,f=0;f<c;f++){var p=l(f);if(void 0===p&&(p=i.DEFAULT_HEIGHT),e<=u&&!s&&(this.startRow=f),e>=u&&e+p<=u+d-h&&(null===this.startRow&&(this.startRow=f),this.endRow=f),n.push(e),e+=p,s||(this.endRow=f),e>=u+d-h){t=!1;break}}if(this.endRow===c-1&&t)for(this.startRow=this.endRow;this.startRow>0;){var m=n[this.endRow]+p-n[this.startRow-1];if((m<=d-h||!s)&&this.startRow--,m>=d-h)break}null!==this.startRow&&a&&a(this),this.startPosition=n[this.startRow],void 0==this.startPosition&&(this.startPosition=null),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}},{get DEFAULT_HEIGHT(){return 23}}),window.WalkontableViewportRowsCalculator=r},{}],6:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableCellCoords:{get:function(){return o}},__esModule:{value:!0}});var o=function(e,t){"undefined"!=typeof e&&"undefined"!=typeof t?(this.row=e,this.col=t):(this.row=null,this.col=null)};$traceurRuntime.createClass(o,{isValid:function(e){return!(this.row<0||this.col<0)&&!(this.row>=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))},isEqual:function(e){return e===this||this.row===e.row&&this.col===e.col},isSouthEastOf:function(e){return this.row>=e.row&&this.col>=e.col},isNorthWestOf:function(e){return this.row<=e.row&&this.col<=e.col},isSouthWestOf:function(e){return this.row>=e.row&&this.col<=e.col},isNorthEastOf:function(e){return this.row<=e.row&&this.col>=e.col}},{}),window.WalkontableCellCoords=o},{}],7:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableCellRange:{get:function(){return i}},__esModule:{value:!0}});var o,r=(o=e("cell/coords"),o&&o.__esModule&&o||{default:o}).WalkontableCellCoords,i=function(e,t,n){this.highlight=e,this.from=t,this.to=n},s=i;$traceurRuntime.createClass(i,{isValid:function(e){return this.from.isValid(e)&&this.to.isValid(e)},isSingle:function(){return this.from.row===this.to.row&&this.from.col===this.to.col},getHeight:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1},getWidth:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1},includes:function(e){var t=e,n=t.row,o=t.col,r=this.getTopLeftCorner(),i=this.getBottomRightCorner();return r.row<=n&&i.row>=n&&r.col<=o&&i.col>=o},includesRange:function(e){return this.includes(e.getTopLeftCorner())&&this.includes(e.getBottomRightCorner())},isEqual:function(e){return Math.min(this.from.row,this.to.row)==Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)==Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)==Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)==Math.max(e.from.col,e.to.col)},overlaps:function(e){return e.isSouthEastOf(this.getTopLeftCorner())&&e.isNorthWestOf(this.getBottomRightCorner())},isSouthEastOf:function(e){return this.getTopLeftCorner().isSouthEastOf(e)||this.getBottomRightCorner().isSouthEastOf(e)},isNorthWestOf:function(e){return this.getTopLeftCorner().isNorthWestOf(e)||this.getBottomRightCorner().isNorthWestOf(e)},expand:function(e){var t=this.getTopLeftCorner(),n=this.getBottomRightCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=new r(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new r(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)},expandByRange:function(e){if(this.includesRange(e)||!this.overlaps(e))return!1;var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=(this.getTopRightCorner(),this.getBottomLeftCorner(),e.getTopLeftCorner()),i=e.getBottomRightCorner(),a=Math.min(t.row,o.row),l=Math.min(t.col,o.col),u=Math.max(n.row,i.row),c=Math.max(n.col,i.col),d=new r(a,l),h=new r(u,c),f=new s(d,d,h).isCorner(this.from,e),p=e.isEqual(new s(d,d,h));return f&&!p&&(this.from.col>d.col&&(d.col=c,h.col=l),this.from.row>d.row&&(d.row=u,h.row=a)),this.from=d,this.to=h,!0},getDirection:function(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0},setDirection:function(e){var t,n,o,r;switch(e){case"NW-SE":t=[this.getTopLeftCorner(),this.getBottomRightCorner()],this.from=t[0],this.to=t[1],t;break;case"NE-SW":n=[this.getTopRightCorner(),this.getBottomLeftCorner()],this.from=n[0],this.to=n[1],n;break;case"SE-NW":o=[this.getBottomRightCorner(),this.getTopLeftCorner()],this.from=o[0],this.to=o[1],o;break;case"SW-NE":r=[this.getBottomLeftCorner(),this.getTopRightCorner()],this.from=r[0],this.to=r[1],r}},getTopLeftCorner:function(){return new r(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))},getBottomRightCorner:function(){return new r(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))},getTopRightCorner:function(){return new r(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))},getBottomLeftCorner:function(){return new r(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))},isCorner:function(e,t){return!!(t&&t.includes(e)&&(this.getTopLeftCorner().isEqual(new r(t.from.row,t.from.col))||this.getTopRightCorner().isEqual(new r(t.from.row,t.to.col))||this.getBottomLeftCorner().isEqual(new r(t.to.row,t.from.col))||this.getBottomRightCorner().isEqual(new r(t.to.row,t.to.col))))||(e.isEqual(this.getTopLeftCorner())||e.isEqual(this.getTopRightCorner())||e.isEqual(this.getBottomLeftCorner())||e.isEqual(this.getBottomRightCorner()))},getOppositeCorner:function(e,t){if(!(e instanceof r))return!1;if(t&&t.includes(e)){if(this.getTopLeftCorner().isEqual(new r(t.from.row,t.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new r(t.from.row,t.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new r(t.to.row,t.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new r(t.to.row,t.to.col)))return this.getTopLeftCorner()}return e.isEqual(this.getBottomRightCorner())?this.getTopLeftCorner():e.isEqual(this.getTopLeftCorner())?this.getBottomRightCorner():e.isEqual(this.getTopRightCorner())?this.getBottomLeftCorner():e.isEqual(this.getBottomLeftCorner())?this.getTopRightCorner():void 0},getBordersSharedWith:function(e){if(!this.includesRange(e))return[];var t={top:Math.min(this.from.row,this.to.row),bottom:Math.max(this.from.row,this.to.row),left:Math.min(this.from.col,this.to.col),right:Math.max(this.from.col,this.to.col)},n={top:Math.min(e.from.row,e.to.row),bottom:Math.max(e.from.row,e.to.row),left:Math.min(e.from.col,e.to.col),right:Math.max(e.from.col,e.to.col)},o=[];return t.top==n.top&&o.push("top"),t.right==n.right&&o.push("right"),t.bottom==n.bottom&&o.push("bottom"),t.left==n.left&&o.push("left"),o},getInner:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;o<=t.row;o++)for(var i=e.col;i<=t.col;i++)this.from.row===o&&this.from.col===i||this.to.row===o&&this.to.col===i||n.push(new r(o,i));return n},getAll:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;o<=t.row;o++)for(var i=e.col;i<=t.col;i++)e.row===o&&e.col===i?n.push(e):t.row===o&&t.col===i?n.push(t):n.push(new r(o,i));return n},forAll:function(e){for(var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=t.row;o<=n.row;o++)for(var r=t.col;r<=n.col;r++){var i=e(o,r);if(i===!1)return}}},{}),window.WalkontableCellRange=i},{"cell/coords":6}],8:[function(e,t,n){"use strict";Object.defineProperties(n,{Walkontable:{get:function(){return H}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c,d,h,f,p,m,g,w=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),v=w.addClass,y=w.fastInnerText,b=w.isVisible,C=w.removeClass,_=(r=e("helpers/object"),r&&r.__esModule&&r||{default:r}).objectEach,R=(i=e("helpers/string"),i&&i.__esModule&&i||{default:i}),M=R.toUpperCaseFirst,S=R.randomString,E=(s=e("event"),s&&s.__esModule&&s||{default:s}).WalkontableEvent,O=(a=e("overlays"),a&&a.__esModule&&a||{default:a}).WalkontableOverlays,T=(l=e("scroll"),l&&l.__esModule&&l||{default:l}).WalkontableScroll,k=(u=e("settings"),u&&u.__esModule&&u||{default:u}).WalkontableSettings,x=(c=e("table"),c&&c.__esModule&&c||{default:c}).WalkontableTable,D=(d=e("viewport"),d&&d.__esModule&&d||{default:d}).WalkontableViewport,H=((h=e("overlay/_base.js"),h&&h.__esModule&&h||{default:h}).WalkontableOverlay,(f=e("overlay/top.js"),f&&f.__esModule&&f||{default:f}).WalkontableTopOverlay,(p=e("overlay/left.js"),p&&p.__esModule&&p||{default:p}).WalkontableLeftOverlay,(m=e("overlay/debug.js"),m&&m.__esModule&&m||{default:m}).WalkontableDebugOverlay,(g=e("overlay/topLeftCorner.js"),g&&g.__esModule&&g||{default:g}).WalkontableTopLeftCornerOverlay,function(e){var t=[];if(this.guid="wt_"+S(),e.cloneSource?(this.cloneSource=e.cloneSource,this.cloneOverlay=e.cloneOverlay,this.wtSettings=e.cloneSource.wtSettings,this.wtTable=new x(this,e.table,e.wtRootElement),this.wtScroll=new T(this),this.wtViewport=e.cloneSource.wtViewport,this.wtEvent=new E(this),this.selections=this.cloneSource.selections):(this.wtSettings=new k(this,e),this.wtTable=new x(this,e.table),this.wtScroll=new T(this),this.wtViewport=new D(this),this.wtEvent=new E(this),this.selections=this.getSetting("selections"),this.wtOverlays=new O(this),this.exportSettingsAsClassNames()),this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var n=0,o=this.wtTable.THEAD.childNodes[0].childNodes.length;n<o;n++)t.push(this.wtTable.THEAD.childNodes[0].childNodes[n].innerHTML);this.getSetting("columnHeaders").length||this.update("columnHeaders",[function(e,n){y(n,t[e])}])}this.drawn=!1,this.drawInterrupted=!1});$traceurRuntime.createClass(H,{draw:function(){var e=void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,e||b(this.wtTable.TABLE)?this.wtTable.draw(e):this.drawInterrupted=!0,this},getCell:function(e){var t=void 0!==arguments[1]&&arguments[1];if(!t)return this.wtTable.getCell(e);var n=this.wtSettings.getSetting("totalRows"),o=this.wtSettings.getSetting("fixedRowsTop"),r=this.wtSettings.getSetting("fixedRowsBottom"),i=this.wtSettings.getSetting("fixedColumnsLeft");if(e.row<o&&e.col<i)return this.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell(e);if(e.row<o)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<i&&e.row>=n-r){if(this.wtOverlays.bottomLeftCornerOverlay&&this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<i)return this.wtOverlays.leftOverlay.clone.wtTable.getCell(e);if(e.row<n&&e.row>n-r&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)},update:function(e,t){return this.wtSettings.update(e,t)},scrollVertical:function(e){return this.wtOverlays.topOverlay.scrollTo(e),this.getSetting("onScrollVertically"),this},scrollHorizontal:function(e){return this.wtOverlays.leftOverlay.scrollTo(e),this.getSetting("onScrollHorizontally"),this},scrollViewport:function(e){return this.wtScroll.scrollViewport(e),this},getViewport:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]},getOverlayName:function(){return this.cloneOverlay?this.cloneOverlay.type:"master"},isOverlayName:function(e){return!!this.cloneOverlay&&this.cloneOverlay.type===e},exportSettingsAsClassNames:function(){var e=this,t={rowHeaders:["array"],columnHeaders:["array"]},n=[],o=[];_(t,function(t,r){t.indexOf("array")>-1&&e.getSetting(r).length&&o.push("ht"+M(r)),n.push("ht"+M(r))}),C(this.wtTable.wtRootElement.parentNode,n),v(this.wtTable.wtRootElement.parentNode,o)},getSetting:function(e,t,n,o,r){return this.wtSettings.getSetting(e,t,n,o,r)},hasSetting:function(e){return this.wtSettings.has(e)},destroy:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}},{}),window.Walkontable=H},{event:9,"helpers/dom/element":47,"helpers/object":53,"helpers/string":55,"overlay/_base.js":12,"overlay/debug.js":13,"overlay/left.js":14,"overlay/top.js":15,"overlay/topLeftCorner.js":16,overlays:17,scroll:18,settings:20,table:21,viewport:23}],9:[function(e,t,n){"use strict";function o(e){var t=this,n=m(e);this.instance=e;var o=[null,null];this.dblClickTimeout=[null,null];var r,i=function(e){var n=document.activeElement,r=f(h,e.realTarget),i=e.realTarget;if(i!==n&&r(0)!==n&&r(1)!==n){var s=t.parentCell(i);c(i,"corner")?t.instance.getSetting("onCellCornerMouseDown",e,i):s.TD&&t.instance.hasSetting("onCellMouseDown")&&t.instance.getSetting("onCellMouseDown",e,s.coords,s.TD,t.instance),2!==e.button&&s.TD&&(o[0]=s.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout(function(){o[0]=null},1e3))}},s=function(e){t.instance.touchMoving=!0},a=function(e){n.addEventListener(this,"touchmove",s),t.checkIfTouchMove=setTimeout(function(){return t.instance.touchMoving===!0?(t.instance.touchMoving=void 0,void n.removeEventListener("touchmove",s,!1)):void i(e)},30)},l=function(e){var n,o,r;t.instance.hasSetting("onCellMouseOver")&&(n=t.instance.wtTable.TABLE,o=u(e.realTarget,["TD","TH"],n),r=t.instance.cloneSource||t.instance,o&&o!==r.lastMouseOver&&d(o,n)&&(r.lastMouseOver=o,t.instance.getSetting("onCellMouseOver",e,t.instance.wtTable.getCoords(o),o,t.instance)))},g=function(e){if(2!==e.button){var n=t.parentCell(e.realTarget);n.TD===o[0]&&n.TD===o[1]?(c(e.realTarget,"corner")?t.instance.getSetting("onCellCornerDblClick",e,n.coords,n.TD,t.instance):t.instance.getSetting("onCellDblClick",e,n.coords,n.TD,t.instance),o[0]=null,o[1]=null):n.TD===o[0]?(t.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,t.instance),o[1]=n.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout(function(){o[1]=null},500)):n.TD&&t.instance.hasSetting("onCellMouseUp")&&t.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,t.instance)}},w=function(e){clearTimeout(r),e.preventDefault(),g(e)};if(n.addEventListener(this.instance.wtTable.holder,"mousedown",i),n.addEventListener(this.instance.wtTable.TABLE,"mouseover",l),n.addEventListener(this.instance.wtTable.holder,"mouseup",g),this.instance.wtTable.holder.parentNode.parentNode&&p()&&!t.instance.wtTable.isWorkingOnClone()){var v="."+this.instance.wtTable.holder.parentNode.className.split(" ").join(".");n.addEventListener(this.instance.wtTable.holder,"touchstart",function(e){t.instance.touchApplied=!0,d(e.target,v)&&a.call(e.target,e)}),n.addEventListener(this.instance.wtTable.holder,"touchend",function(e){t.instance.touchApplied=!1,d(e.target,v)&&w.call(e.target,e)}),t.instance.momentumScrolling||(t.instance.momentumScrolling={}),n.addEventListener(this.instance.wtTable.holder,"scroll",function(e){clearTimeout(t.instance.momentumScrolling._timeout),t.instance.momentumScrolling.ongoing||t.instance.getSetting("onBeforeTouchScroll"),t.instance.momentumScrolling.ongoing=!0,t.instance.momentumScrolling._timeout=setTimeout(function(){t.instance.touchApplied||(t.instance.momentumScrolling.ongoing=!1,t.instance.getSetting("onAfterMomentumScroll"))},200)})}n.addEventListener(window,"resize",function(){"none"!==t.instance.getSetting("stretchH")&&t.instance.draw()}),this.destroy=function(){clearTimeout(this.dblClickTimeout[0]),clearTimeout(this.dblClickTimeout[1]),n.destroy()}}Object.defineProperties(n,{WalkontableEvent:{get:function(){return o}},__esModule:{value:!0}});var r,i,s,a,l=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),u=l.closestDown,c=l.hasClass,d=l.isChildOf,h=l.getParent,f=(i=e("helpers/function"),i&&i.__esModule&&i||{default:i}).partial,p=(s=e("helpers/browser"),s&&s.__esModule&&s||{default:s}).isMobileBrowser,m=(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).eventManager;o.prototype.parentCell=function(e){var t={},n=this.instance.wtTable.TABLE,o=u(e,["TD","TH"],n);return o?(t.coords=this.instance.wtTable.getCoords(o),t.TD=o):c(e,"wtBorder")&&c(e,"current")?(t.coords=this.instance.selections.current.cellRange.highlight,t.TD=this.instance.wtTable.getCell(t.coords)):c(e,"wtBorder")&&c(e,"area")&&this.instance.selections.area.cellRange&&(t.coords=this.instance.selections.area.cellRange.to,t.TD=this.instance.wtTable.getCell(t.coords)),t},window.WalkontableEvent=o},{eventManager:42,"helpers/browser":44,"helpers/dom/element":47,"helpers/function":50}],10:[function(e,t,n){"use strict";Object.defineProperties(n,{
WalkontableColumnFilter:{get:function(){return o}},__esModule:{value:!0}});var o=function(e,t,n){this.offset=e,this.total=t,this.countTH=n};$traceurRuntime.createClass(o,{offsetted:function(e){return e+this.offset},unOffsetted:function(e){return e-this.offset},renderedToSource:function(e){return this.offsetted(e)},sourceToRendered:function(e){return this.unOffsetted(e)},offsettedTH:function(e){return e-this.countTH},unOffsettedTH:function(e){return e+this.countTH},visibleRowHeadedColumnToSourceColumn:function(e){return this.renderedToSource(this.offsettedTH(e))},sourceColumnToVisibleRowHeadedColumn:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}},{}),window.WalkontableColumnFilter=o},{}],11:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableRowFilter:{get:function(){return o}},__esModule:{value:!0}});var o=function(e,t,n){this.offset=e,this.total=t,this.countTH=n};$traceurRuntime.createClass(o,{offsetted:function(e){return e+this.offset},unOffsetted:function(e){return e-this.offset},renderedToSource:function(e){return this.offsetted(e)},sourceToRendered:function(e){return this.unOffsetted(e)},offsettedTH:function(e){return e-this.countTH},unOffsettedTH:function(e){return e+this.countTH},visibleColHeadedRowToSourceRow:function(e){return this.renderedToSource(this.offsettedTH(e))},sourceRowToVisibleColHeadedRow:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}},{}),window.WalkontableRowFilter=o},{}],12:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableOverlay:{get:function(){return p}},__esModule:{value:!0}});var o,r,i,s,a=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),l=a.getScrollableElement,u=a.getTrimmingContainer,c=(r=e("helpers/object"),r&&r.__esModule&&r||{default:r}).defineGetter,d=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).arrayEach,h=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).eventManager,f={},p=function(e){c(this,"wot",e,{writable:!1}),this.instance=this.wot,this.type="",this.mainTableScrollableElement=null,this.TABLE=this.wot.wtTable.TABLE,this.hider=this.wot.wtTable.hider,this.spreader=this.wot.wtTable.spreader,this.holder=this.wot.wtTable.holder,this.wtRootElement=this.wot.wtTable.wtRootElement,this.trimmingContainer=u(this.hider.parentNode.parentNode),this.areElementSizesAdjusted=!1,this.updateStateOfRendering()},m=p;$traceurRuntime.createClass(p,{updateStateOfRendering:function(){var e=this.needFullRender;this.needFullRender=this.shouldBeRendered();var t=e!==this.needFullRender;return t&&!this.needFullRender&&this.reset(),t},shouldBeRendered:function(){return!0},updateTrimmingContainer:function(){this.trimmingContainer=u(this.hider.parentNode.parentNode)},updateMainScrollableElement:function(){this.mainTableScrollableElement=l(this.wot.wtTable.TABLE)},makeClone:function(e){if(m.CLONE_TYPES.indexOf(e)===-1)throw new Error('Clone type "'+e+'" is not supported.');var t=document.createElement("DIV"),n=document.createElement("TABLE");t.className="ht_clone_"+e+" handsontable",t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.overflow="hidden",n.className=this.wot.wtTable.TABLE.className,t.appendChild(n),this.type=e,this.wot.wtTable.wtRootElement.parentNode.appendChild(t);var o=this.wot.getSetting("preventOverflow");return o===!0||"horizontal"===o&&this.type===m.CLONE_TOP||"vertical"===o&&this.type===m.CLONE_LEFT?this.mainTableScrollableElement=window:this.mainTableScrollableElement=l(this.wot.wtTable.TABLE),new Walkontable({cloneSource:this.wot,cloneOverlay:this,table:n})},refresh:function(){var e=void 0!==arguments[0]&&arguments[0],t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t},reset:function(){if(this.clone){var e=this.clone.wtTable.holder,t=this.clone.wtTable.hider,n=e.style,o=t.style,r=e.parentNode.style;d([n,o,r],function(e){e.width="",e.height=""})}},destroy:function(){h(this.clone).destroy()}},{get CLONE_TOP(){return"top"},get CLONE_BOTTOM(){return"bottom"},get CLONE_LEFT(){return"left"},get CLONE_TOP_LEFT_CORNER(){return"top_left_corner"},get CLONE_BOTTOM_LEFT_CORNER(){return"bottom_left_corner"},get CLONE_DEBUG(){return"debug"},get CLONE_TYPES(){return[m.CLONE_TOP,m.CLONE_BOTTOM,m.CLONE_LEFT,m.CLONE_TOP_LEFT_CORNER,m.CLONE_BOTTOM_LEFT_CORNER,m.CLONE_DEBUG]},registerOverlay:function(e,t){if(m.CLONE_TYPES.indexOf(e)===-1)throw new Error("Unsupported overlay ("+e+").");f[e]=t},createOverlay:function(e,t){return new f[e](t)},isOverlayTypeOf:function(e,t){return!(!e||!f[t])&&e instanceof f[t]}}),window.WalkontableOverlay=p},{eventManager:42,"helpers/array":43,"helpers/dom/element":47,"helpers/object":53}],13:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableDebugOverlay:{get:function(){return a}},__esModule:{value:!0}});var o,r,i=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}).addClass,s=(r=e("_base"),r&&r.__esModule&&r||{default:r}).WalkontableOverlay,a=function(e){$traceurRuntime.superConstructor(l).call(this,e),this.clone=this.makeClone(s.CLONE_DEBUG),this.clone.wtTable.holder.style.opacity=.4,this.clone.wtTable.holder.style.textShadow="0 0 2px #ff0000",i(this.clone.wtTable.holder.parentNode,"wtDebugVisible")},l=a;$traceurRuntime.createClass(a,{},{},s),window.WalkontableDebugOverlay=a,s.registerOverlay(s.CLONE_DEBUG,a)},{_base:12,"helpers/dom/element":47}],14:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableLeftOverlay:{get:function(){return w}},__esModule:{value:!0}});var o,r,i=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),s=i.addClass,a=i.getScrollbarWidth,l=i.getScrollLeft,u=i.getWindowScrollTop,c=i.hasClass,d=i.outerWidth,h=i.innerHeight,f=i.removeClass,p=i.setOverlayPosition,m=i.resetCssTransform,g=(r=e("_base"),r&&r.__esModule&&r||{default:r}).WalkontableOverlay,w=function(e){$traceurRuntime.superConstructor(v).call(this,e),this.clone=this.makeClone(g.CLONE_LEFT)},v=w;$traceurRuntime.createClass(w,{shouldBeRendered:function(){return!(!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)},resetFixedPosition:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"horizontal"===n)t=this.getScrollPosition(),m(e);else{var o,r,i=this.wot.wtTable.hider.getBoundingClientRect(),s=Math.ceil(i.left),a=Math.ceil(i.right);r=this.wot.wtTable.hider.style.top,r=""===r?0:r,o=s<0&&a-e.offsetWidth>0?-s:0,t=o,o+="px",p(e,o,r)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}},setScrollPosition:function(e){this.mainTableScrollableElement===window?window.scrollTo(e,u()):this.mainTableScrollableElement.scrollLeft=e},onScroll:function(){this.wot.getSetting("onScrollVertically")},sumCellSizes:function(e,t){for(var n=0,o=this.wot.wtSettings.defaultColumnWidth;e<t;)n+=this.wot.wtTable.getStretchedColumnWidth(e)||o,e++;return n},adjustElementsSize:function(){var e=void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))},adjustRootElementSize:function(){var e,t=this.wot.wtTable.holder,n=t.clientHeight===t.offsetHeight?0:a(),o=this.clone.wtTable.holder.parentNode,r=o.style,i=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"vertical"===i){var s=this.wot.wtViewport.getWorkspaceHeight()-n;s=Math.min(s,h(this.wot.wtTable.wtRootElement)),r.height=s+"px"}else r.height="";this.clone.wtTable.holder.style.height=r.height,e=d(this.clone.wtTable.TABLE),r.width=(0===e?e:e+4)+"px"},adjustRootChildrenSize:function(){var e=a();this.clone.wtTable.hider.style.height=this.hider.style.height,this.clone.wtTable.holder.style.height=this.clone.wtTable.holder.parentNode.style.height,0===e&&(e=30),this.clone.wtTable.holder.style.width=parseInt(this.clone.wtTable.holder.parentNode.style.width,10)+e+"px"},applyToDOM:function(){var e=this.wot.getSetting("totalColumns");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style.left=this.wot.wtViewport.columnsRenderCalculator.startPosition+"px";else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style.left="0"}this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()},syncOverlayOffset:function(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top=this.wot.wtViewport.rowsRenderCalculator.startPosition+"px":this.clone.wtTable.spreader.style.top=""},scrollTo:function(e,t){var n=this.getTableParentOffset(),o=this.wot.cloneSource?this.wot.cloneSource:this.wot,r=o.wtTable.holder,i=0;t&&r.offsetWidth!==r.clientWidth&&(i=a()),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wot.getSetting("fixedColumnsLeft"),e),n+=i,this.setScrollPosition(n)},getTableParentOffset:function(){var e=this.wot.getSetting("preventOverflow"),t=0;return e||this.trimmingContainer!==window||(t=this.wot.wtTable.holderOffset.left),t},getScrollPosition:function(){return l(this.mainTableScrollableElement)},adjustHeaderBordersPosition:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wot.getSetting("rowHeaders"),o=this.wot.getSetting("fixedColumnsLeft"),r=this.wot.getSetting("totalRows");if(r?f(t,"emptyRows"):s(t,"emptyRows"),o&&!n.length)s(t,"innerBorderLeft");else if(!o&&n.length){var i=c(t,"innerBorderLeft");e?s(t,"innerBorderLeft"):f(t,"innerBorderLeft"),(!i&&e||i&&!e)&&this.wot.wtOverlays.adjustElementsSize()}}},{},g),window.WalkontableLeftOverlay=w,g.registerOverlay(g.CLONE_LEFT,w)},{_base:12,"helpers/dom/element":47}],15:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableTopOverlay:{get:function(){return w}},__esModule:{value:!0}});var o,r,i=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),s=i.addClass,a=i.getScrollbarWidth,l=i.getScrollTop,u=i.getWindowScrollLeft,c=i.hasClass,d=i.outerHeight,h=i.innerWidth,f=i.removeClass,p=i.setOverlayPosition,m=i.resetCssTransform,g=(r=e("_base"),r&&r.__esModule&&r||{default:r}).WalkontableOverlay,w=function(e){$traceurRuntime.superConstructor(v).call(this,e),this.clone=this.makeClone(g.CLONE_TOP)},v=w;$traceurRuntime.createClass(w,{shouldBeRendered:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length)},resetFixedPosition:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"vertical"===n)t=this.getScrollPosition(),m(e);else{var o,r,i=this.wot.wtTable.hider.getBoundingClientRect(),s=Math.ceil(i.top),a=Math.ceil(i.bottom);o=this.wot.wtTable.hider.style.left,o=""===o?0:o,r=s<0&&a-e.offsetHeight>0?-s:0,t=r,r+="px",p(e,o,r)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}},setScrollPosition:function(e){this.mainTableScrollableElement===window?window.scrollTo(u(),e):this.mainTableScrollableElement.scrollTop=e},onScroll:function(){this.wot.getSetting("onScrollHorizontally")},sumCellSizes:function(e,t){for(var n=0,o=this.wot.wtSettings.settings.defaultRowHeight;e<t;){var r=this.wot.wtTable.getRowHeight(e);n+=void 0===r?o:r,e++}return n},adjustElementsSize:function(){var e=void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))},adjustRootElementSize:function(){var e,t=this.wot.wtTable.holder,n=t.clientWidth===t.offsetWidth?0:a(),o=this.clone.wtTable.holder.parentNode,r=o.style,i=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"horizontal"===i){var s=this.wot.wtViewport.getWorkspaceWidth()-n;s=Math.min(s,h(this.wot.wtTable.wtRootElement)),r.width=s+"px"}else r.width="";this.clone.wtTable.holder.style.width=r.width,e=d(this.clone.wtTable.TABLE),r.height=(0===e?e:e+4)+"px"},adjustRootChildrenSize:function(){var e=a();this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===e&&(e=30),this.clone.wtTable.holder.style.height=parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+e+"px"},applyToDOM:function(){var e=this.wot.getSetting("totalRows");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=this.wot.wtViewport.rowsRenderCalculator.startPosition+"px";else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()},syncOverlayOffset:function(){"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.left=this.wot.wtViewport.columnsRenderCalculator.startPosition+"px":this.clone.wtTable.spreader.style.left=""},scrollTo:function(e,t){var n=this.getTableParentOffset(),o=this.wot.cloneSource?this.wot.cloneSource:this.wot,r=o.wtTable.holder,i=0;if(t&&r.offsetHeight!==r.clientHeight&&(i=a()),t){var s=this.wot.getSetting("fixedRowsBottom"),l=(this.wot.getSetting("fixedRowsTop"),this.wot.getSetting("totalRows"));n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight()-this.sumCellSizes(l-s,l),n+=1}else n+=this.sumCellSizes(this.wot.getSetting("fixedRowsTop"),e);n+=i,this.setScrollPosition(n)},getTableParentOffset:function(){return this.mainTableScrollableElement===window?this.wot.wtTable.holderOffset.top:0},getScrollPosition:function(){return l(this.mainTableScrollableElement)},adjustHeaderBordersPosition:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wot.getSetting("totalColumns");if(n?f(t,"emptyColumns"):s(t,"emptyColumns"),0===this.wot.getSetting("fixedRowsTop")&&this.wot.getSetting("columnHeaders").length>0){var o=c(t,"innerBorderTop");e||0===this.wot.getSetting("totalRows")?s(t,"innerBorderTop"):f(t,"innerBorderTop"),(!o&&e||o&&!e)&&this.wot.wtOverlays.adjustElementsSize()}if(0===this.wot.getSetting("rowHeaders").length){var r=this.clone.wtTable.THEAD.querySelectorAll("th:nth-of-type(2)");if(r)for(var i=0;i<r.length;i++)r[i].style["border-left-width"]=0}}},{},g),window.WalkontableTopOverlay=w,g.registerOverlay(g.CLONE_TOP,w)},{_base:12,"helpers/dom/element":47}],16:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableTopLeftCornerOverlay:{get:function(){return d}},__esModule:{value:!0}});var o,r,i=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),s=i.outerHeight,a=i.outerWidth,l=i.setOverlayPosition,u=i.resetCssTransform,c=(r=e("_base"),r&&r.__esModule&&r||{default:r}).WalkontableOverlay,d=function(e){$traceurRuntime.superConstructor(h).call(this,e),this.clone=this.makeClone(c.CLONE_TOP_LEFT_CORNER)},h=d;$traceurRuntime.createClass(d,{shouldBeRendered:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length||!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)},resetFixedPosition:function(){if(this.updateTrimmingContainer(),this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=s(this.clone.wtTable.TABLE),n=a(this.clone.wtTable.TABLE),o=this.wot.getSetting("preventOverflow");if(this.trimmingContainer===window){var r=this.wot.wtTable.hider.getBoundingClientRect(),i=Math.ceil(r.top),c=Math.ceil(r.left),d=Math.ceil(r.bottom),h=Math.ceil(r.right),f="0",p="0";o&&"vertical"!==o||c<0&&h-e.offsetWidth>0&&(f=-c+"px"),o&&"horizontal"!==o||i<0&&d-e.offsetHeight>0&&(p=-i+"px"),l(e,f,p)}else u(e);e.style.height=(0===t?t:t+4)+"px",e.style.width=(0===n?n:n+4)+"px"}}},{},c),window.WalkontableTopLeftCornerOverlay=d,c.registerOverlay(c.CLONE_TOP_LEFT_CORNER,d)},{_base:12,"helpers/dom/element":47}],17:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableOverlays:{get:function(){return w}},__esModule:{value:!0}});var o,r,i,s,a,l=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),u=l.getScrollableElement,c=l.getScrollbarWidth,d=l.getScrollLeft,h=l.getScrollTop,f=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}).arrayEach,p=(i=e("helpers/unicode"),i&&i.__esModule&&i||{default:i}).isKey,m=(s=e("helpers/browser"),s&&s.__esModule&&s||{default:s}).isMobileBrowser,g=(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).EventManager,w=function(e){this.wot=e,this.instance=this.wot,this.eventManager=new g(this.wot),this.wot.update("scrollbarWidth",c()),this.wot.update("scrollbarHeight",c()),this.scrollableElement=u(this.wot.wtTable.TABLE),this.prepareOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.overlayScrollPositions={master:{top:0,left:0},top:{top:null,left:0},bottom:{top:null,left:0},left:{top:0,left:null}},this.pendingScrollCallbacks={master:{top:0,left:0},top:{left:0},bottom:{left:0},left:{top:0}},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.delegatedScrollCallback=!1,this.registeredListeners=[],this.registerListeners()};$traceurRuntime.createClass(w,{prepareOverlays:function(){var e=!1;return this.topOverlay?e=this.topOverlay.updateStateOfRendering()||e:this.topOverlay=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_TOP,this.wot),"undefined"==typeof WalkontableBottomOverlay&&(this.bottomOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),"undefined"==typeof WalkontableBottomLeftCornerOverlay&&(this.bottomLeftCornerOverlay={needFullRender:!1,updateStateOfRendering:function(){return!1}}),this.bottomOverlay?e=this.bottomOverlay.updateStateOfRendering()||e:this.bottomOverlay=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_BOTTOM,this.wot),this.leftOverlay?e=this.leftOverlay.updateStateOfRendering()||e:this.leftOverlay=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_LEFT,this.wot),this.topOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.topLeftCornerOverlay?e=this.topLeftCornerOverlay.updateStateOfRendering()||e:this.topLeftCornerOverlay=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_TOP_LEFT_CORNER,this.wot)),this.bottomOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.bottomLeftCornerOverlay?e=this.bottomLeftCornerOverlay.updateStateOfRendering()||e:this.bottomLeftCornerOverlay=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER,this.wot)),this.wot.getSetting("debug")&&!this.debug&&(this.debug=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_DEBUG,this.wot)),e},refreshAll:function(){if(this.wot.drawn){if(!this.wot.wtTable.holder.parentNode)return void this.destroy();this.wot.draw(!0),this.verticalScrolling&&this.leftOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1}},registerListeners:function(){var e=this,t=this.topOverlay.mainTableScrollableElement,n=this.leftOverlay.mainTableScrollableElement,o=[];for(o.push([document.documentElement,"keydown",function(t){return e.onKeyDown(t)}]),o.push([document.documentElement,"keyup",function(){return e.onKeyUp()}]),o.push([document,"visibilitychange",function(){return e.onKeyUp()}]),o.push([t,"scroll",function(t){return e.onTableScroll(t)}]),t!==n&&o.push([n,"scroll",function(t){return e.onTableScroll(t)}]),this.topOverlay.needFullRender&&(o.push([this.topOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),o.push([this.topOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.bottomOverlay.needFullRender&&(o.push([this.bottomOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),o.push([this.bottomOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.leftOverlay.needFullRender&&(o.push([this.leftOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),o.push([this.leftOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.needFullRender&&o.push([this.topLeftCornerOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}]),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.needFullRender&&o.push([this.bottomLeftCornerOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}]),this.topOverlay.trimmingContainer!==window&&this.leftOverlay.trimmingContainer!==window&&o.push([window,"wheel",function(t){var n,o=t.wheelDeltaY||t.deltaY,r=t.wheelDeltaX||t.deltaX;e.topOverlay.clone.wtTable.holder.contains(t.realTarget)?n="top":e.bottomOverlay.clone&&e.bottomOverlay.clone.wtTable.holder.contains(t.realTarget)?n="bottom":e.leftOverlay.clone.wtTable.holder.contains(t.realTarget)?n="left":e.topLeftCornerOverlay&&e.topLeftCornerOverlay.clone&&e.topLeftCornerOverlay.clone.wtTable.holder.contains(t.realTarget)?n="topLeft":e.bottomLeftCornerOverlay&&e.bottomLeftCornerOverlay.clone&&e.bottomLeftCornerOverlay.clone.wtTable.holder.contains(t.realTarget)&&(n="bottomLeft"),("top"==n&&0!==o||"left"==n&&0!==r||"bottom"==n&&0!==o||("topLeft"===n||"bottomLeft"===n)&&(0!==o||0!==r))&&t.preventDefault()}]);o.length;){var r=o.pop();this.eventManager.addEventListener(r[0],r[1],r[2]),this.registeredListeners.push(r)}},deregisterListeners:function(){for(;this.registeredListeners.length;){var e=this.registeredListeners.pop();this.eventManager.removeEventListener(e[0],e[1],e[2])}},onTableScroll:function(e){if(!m()){var t=this.leftOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(n!==window&&o!==window&&!e.target.contains(n)||t!==window&&o!==window&&!e.target.contains(t))||("scroll"===e.type?this.syncScrollPositions(e):this.translateMouseWheelToScroll(e))}},onKeyDown:function(e){this.keyPressed=p(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")},onKeyUp:function(){this.keyPressed=!1},translateMouseWheelToScroll:function(e){var t=this.topOverlay.clone.wtTable.holder,n=this.bottomOverlay.clone?this.bottomOverlay.clone.wtTable.holder:null,o=this.leftOverlay.clone.wtTable.holder,r=this.topLeftCornerOverlay&&this.topLeftCornerOverlay.clone?this.topLeftCornerOverlay.clone.wtTable.holder:null,i=this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone?this.bottomLeftCornerOverlay.clone.wtTable.holder:null,s=-.2,a=e.wheelDeltaY||-1*e.deltaY,l=e.wheelDeltaX||-1*e.deltaX,u=null,c={type:"wheel"},d=e.target,h=null;for(1===e.deltaMode&&(a*=120,l*=120);d!=document&&null!=d;){if(d.className.indexOf("wtHolder")>-1){u=d;break}d=d.parentNode}return c.target=u,u===r||u===i?(this.syncScrollPositions(c,s*l,"x"),this.syncScrollPositions(c,s*a,"y")):(u===t||u===n?h=a:u===o&&(h=l),this.syncScrollPositions(c,s*h)),!1},syncScrollPositions:function(e){var t=void 0!==arguments[1]?arguments[1]:null,n=void 0!==arguments[2]?arguments[2]:null;if(!this.destroyed){if(0===arguments.length)return void this.syncScrollWithMaster();var o,r,i,s,a,l=this.leftOverlay.mainTableScrollableElement,u=this.topOverlay.mainTableScrollableElement,c=e.target,f=0,p=!1,m=!1,g=this.wot.getSetting("preventOverflow");this.topOverlay.needFullRender&&(o=this.topOverlay.clone.wtTable.holder),this.bottomOverlay.needFullRender&&(a=this.bottomOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&(r=this.leftOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&this.topOverlay.needFullRender&&(i=this.topLeftCornerOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&this.bottomOverlay.needFullRender&&(s=this.bottomLeftCornerOverlay.clone.wtTable.holder),c===document&&(c=window),c===l||c===u?(f=d(g?this.scrollableElement:c),this.horizontalScrolling=!0,this.overlayScrollPositions.master.left=f,p=!0,this.pendingScrollCallbacks.master.left>0?this.pendingScrollCallbacks.master.left--:(o&&o.scrollLeft!==f&&(null==t&&this.pendingScrollCallbacks.top.left++,o.scrollLeft=f,m=l!==window),a&&a.scrollLeft!==f&&(null==t&&this.pendingScrollCallbacks.bottom.left++,a.scrollLeft=f,m=l!==window)),f=h(c),this.verticalScrolling=!0,this.overlayScrollPositions.master.top=f,p=!0,this.pendingScrollCallbacks.master.top>0?this.pendingScrollCallbacks.master.top--:r&&r.scrollTop!==f&&(null==t&&this.pendingScrollCallbacks.left.top++,r.scrollTop=f,m=u!==window)):c===a?(f=d(c),this.horizontalScrolling=!0,this.overlayScrollPositions.bottom.left=f,p=!0,this.pendingScrollCallbacks.bottom.left>0?this.pendingScrollCallbacks.bottom.left--:(null==t&&this.pendingScrollCallbacks.master.left++,l.scrollLeft=f,o&&o.scrollLeft!==f&&(null==t&&this.pendingScrollCallbacks.top.left++,o.scrollLeft=f,m=u!==window)),null!==t&&(p=!0,u.scrollTop+=t)):c===o?(f=d(c),this.horizontalScrolling=!0,this.overlayScrollPositions.top.left=f,p=!0,this.pendingScrollCallbacks.top.left>0?this.pendingScrollCallbacks.top.left--:(null==t&&this.pendingScrollCallbacks.master.left++,l.scrollLeft=f),null!==t&&(p=!0,u.scrollTop+=t),a&&a.scrollLeft!==f&&(null==t&&this.pendingScrollCallbacks.bottom.left++,a.scrollLeft=f,m=u!==window)):c===r?(f=h(c),this.overlayScrollPositions.left.top!==f&&(this.verticalScrolling=!0,this.overlayScrollPositions.left.top=f,p=!0,this.pendingScrollCallbacks.left.top>0?this.pendingScrollCallbacks.left.top--:(null==t&&this.pendingScrollCallbacks.master.top++,u.scrollTop=f)),null!==t&&(p=!0,u.scrollLeft+=t)):c!==i&&c!==s||null!==t&&(p=!0,"x"===n?u.scrollLeft+=t:"y"===n&&(u.scrollTop+=t)),!this.keyPressed&&p&&"scroll"===e.type&&(this.delegatedScrollCallback?this.delegatedScrollCallback=!1:this.refreshAll(),m&&(this.delegatedScrollCallback=!0))}},syncScrollWithMaster:function(){var e=this.topOverlay.mainTableScrollableElement,t=e,n=t.scrollLeft,o=t.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=n),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=n),this.leftOverlay.needFullRender&&(this.leftOverlay.clone.wtTable.holder.scrollTop=o)},updateMainScrollableElements:function(){this.deregisterListeners(),this.leftOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement(),this.scrollableElement=u(this.wot.wtTable.TABLE),this.registerListeners()},destroy:function(){this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.leftOverlay.destroy(),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.destroy(),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.destroy(),this.debug&&this.debug.destroy(),this.destroyed=!0},refresh:function(){var e=void 0!==arguments[0]&&arguments[0];if(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted){var t=this.wot.wtTable.wtRootElement.parentNode||this.wot.wtTable.wtRootElement,n=t.clientWidth,o=t.clientHeight;n===this.spreaderLastSize.width&&o===this.spreaderLastSize.height||(this.spreaderLastSize.width=n,this.spreaderLastSize.height=o,this.adjustElementsSize())}this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.leftOverlay.refresh(e),this.topOverlay.refresh(e),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.refresh(e),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.refresh(e),this.debug&&this.debug.refresh(e)},adjustElementsSize:function(){var e=void 0!==arguments[0]&&arguments[0],t=this.wot.getSetting("totalColumns"),n=this.wot.getSetting("totalRows"),o=this.wot.wtViewport.getRowHeaderWidth(),r=this.wot.wtViewport.getColumnHeaderHeight(),i=this.wot.wtTable.hider.style;i.width=o+this.leftOverlay.sumCellSizes(0,t)+"px",i.height=r+this.topOverlay.sumCellSizes(0,n)+1+"px",this.topOverlay.adjustElementsSize(e),this.leftOverlay.adjustElementsSize(e),this.bottomOverlay.clone&&this.bottomOverlay.adjustElementsSize(e)},applyToDOM:function(){this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted||this.adjustElementsSize(),this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.leftOverlay.applyToDOM()},getParentOverlay:function(e){if(!e)return null;var t=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay],n=null;return f(t,function(t,o){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)}),n}},{}),window.WalkontableOverlays=w},{eventManager:42,"helpers/array":43,"helpers/browser":44,"helpers/dom/element":47,"helpers/unicode":56}],18:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableScroll:{get:function(){return p}},__esModule:{value:!0}});var o,r,i=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),s=i.innerHeight,a=i.innerWidth,l=i.getScrollLeft,u=i.getScrollTop,c=i.offset,d=(r=e("helpers/number"),r&&r.__esModule&&r||{default:r}),h=d.rangeEach,f=d.rangeEachReverse,p=function(e){this.wot=e,this.instance=e};$traceurRuntime.createClass(p,{scrollViewport:function(e){if(this.wot.drawn){var t=this._getVariables(),n=t.topOverlay,o=t.leftOverlay,r=t.totalRows,i=t.totalColumns,s=t.fixedRowsTop,a=t.fixedRowsBottom,l=t.fixedColumnsLeft;if(e.row<0||e.row>Math.max(r-1,0))throw new Error("row "+e.row+" does not exist");if(e.col<0||e.col>Math.max(i-1,0))throw new Error("column "+e.col+" does not exist");e.row>=s&&e.row<this.getFirstVisibleRow()?n.scrollTo(e.row):e.row>this.getLastVisibleRow()&&e.row<r-a&&n.scrollTo(e.row,!0),e.col>=l&&e.col<this.getFirstVisibleColumn()?o.scrollTo(e.col):e.col>this.getLastVisibleColumn()&&o.scrollTo(e.col,!0)}},getFirstVisibleRow:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,o=e.wtViewport,r=e.totalRows,i=e.fixedRowsTop,a=n.getFirstVisibleRow();if(t.mainTableScrollableElement===window){var l=c(n.wtRootElement),d=s(n.hider),h=s(window),p=u(window);if(l.top+d-h<=p){var m=o.getColumnHeaderHeight();m+=t.sumCellSizes(0,i),f(r,1,function(e){if(m+=t.sumCellSizes(e-1,e),l.top+d-m<=p)return a=e,!1})}}return a},getLastVisibleRow:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,o=e.wtViewport,r=e.totalRows,i=n.getLastVisibleRow();if(t.mainTableScrollableElement===window){var a=c(n.wtRootElement),l=s(window),d=u(window);if(a.top>d){var f=o.getColumnHeaderHeight();h(1,r,function(e){if(f+=t.sumCellSizes(e-1,e),a.top+f-d>=l)return i=e-2,!1})}}return i},getFirstVisibleColumn:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,o=e.wtViewport,r=e.totalColumns,i=(e.fixedColumnsLeft,n.getFirstVisibleColumn());if(t.mainTableScrollableElement===window){var s=c(n.wtRootElement),u=a(n.hider),d=a(window),h=l(window);if(s.left+u-d<=h){var p=o.getRowHeaderWidth();f(r,1,function(e){if(p+=t.sumCellSizes(e-1,e),s.left+u-p<=h)return i=e,!1})}}return i},getLastVisibleColumn:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,o=e.wtViewport,r=e.totalColumns,i=n.getLastVisibleColumn();if(t.mainTableScrollableElement===window){var s=c(n.wtRootElement),u=a(window),d=l(window);if(s.left>d){var f=o.getRowHeaderWidth();h(1,r,function(e){if(f+=t.sumCellSizes(e-1,e),s.left+f-d>=u)return i=e-2,!1})}}return i},_getVariables:function(){var e=this.wot,t=e.wtOverlays.topOverlay,n=e.wtOverlays.leftOverlay,o=e.wtTable,r=e.wtViewport,i=e.getSetting("totalRows"),s=e.getSetting("totalColumns"),a=e.getSetting("fixedRowsTop"),l=e.getSetting("fixedRowsBottom"),u=e.getSetting("fixedColumnsLeft");return{topOverlay:t,leftOverlay:n,wtTable:o,wtViewport:r,totalRows:i,totalColumns:s,fixedRowsTop:a,fixedRowsBottom:l,fixedColumnsLeft:u}}},{}),window.WalkontableScroll=p},{"helpers/dom/element":47,"helpers/number":52}],19:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableSelection:{get:function(){return d}},__esModule:{value:!0}});var o,r,i,s,a=(o=e("helpers/dom/element"),
o&&o.__esModule&&o||{default:o}).addClass,l=(r=e("border"),r&&r.__esModule&&r||{default:r}).WalkontableBorder,u=(i=e("cell/coords"),i&&i.__esModule&&i||{default:i}).WalkontableCellCoords,c=(s=e("cell/range"),s&&s.__esModule&&s||{default:s}).WalkontableCellRange,d=function(e,t){this.settings=e,this.cellRange=t||null,this.instanceBorders={}};$traceurRuntime.createClass(d,{getBorder:function(e){return this.instanceBorders[e.guid]?this.instanceBorders[e.guid]:void(this.instanceBorders[e.guid]=new l(e,this.settings))},isEmpty:function(){return null===this.cellRange},add:function(e){this.isEmpty()?this.cellRange=new c(e,e,e):this.cellRange.expand(e)},replace:function(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1},clear:function(){this.cellRange=null},getCorners:function(){var e=this.cellRange.getTopLeftCorner(),t=this.cellRange.getBottomRightCorner();return[e.row,e.col,t.row,t.col]},addClassAtCoords:function(e,t,n,o){var r=e.wtTable.getCell(new u(t,n));"object"==typeof r&&a(r,o)},draw:function(e){if(this.isEmpty()){if(this.settings.border){var t=this.getBorder(e);t&&t.disappear()}}else{for(var n,o,r,i=e.wtTable.getRenderedRowsCount(),s=e.wtTable.getRenderedColumnsCount(),l=this.getCorners(),u=0;u<s;u++)if(o=e.wtTable.columnFilter.renderedToSource(u),o>=l[1]&&o<=l[3]&&(r=e.wtTable.getColumnHeader(o))){var c=[];this.settings.highlightHeaderClassName&&c.push(this.settings.highlightHeaderClassName),this.settings.highlightColumnClassName&&c.push(this.settings.highlightColumnClassName),a(r,c)}for(var d=0;d<i;d++){if(n=e.wtTable.rowFilter.renderedToSource(d),n>=l[0]&&n<=l[2]&&(r=e.wtTable.getRowHeader(n))){var h=[];this.settings.highlightHeaderClassName&&h.push(this.settings.highlightHeaderClassName),this.settings.highlightRowClassName&&h.push(this.settings.highlightRowClassName),a(r,h)}for(var f=0;f<s;f++)o=e.wtTable.columnFilter.renderedToSource(f),n>=l[0]&&n<=l[2]&&o>=l[1]&&o<=l[3]?this.settings.className&&this.addClassAtCoords(e,n,o,this.settings.className):n>=l[0]&&n<=l[2]?this.settings.highlightRowClassName&&this.addClassAtCoords(e,n,o,this.settings.highlightRowClassName):o>=l[1]&&o<=l[3]&&this.settings.highlightColumnClassName&&this.addClassAtCoords(e,n,o,this.settings.highlightColumnClassName)}if(e.getSetting("onBeforeDrawBorders",l,this.settings.className),this.settings.border){var p=this.getBorder(e);p&&p.appear(l)}}}},{}),window.WalkontableSelection=d},{border:3,"cell/coords":6,"cell/range":7,"helpers/dom/element":47}],20:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableSettings:{get:function(){return i}},__esModule:{value:!0}});var o,r=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}).fastInnerText,i=function(e,t){var n=this;this.wot=e,this.instance=e,this.defaults={table:void 0,debug:!1,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},data:void 0,fixedColumnsLeft:0,fixedRowsTop:0,fixedRowsBottom:0,minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(e,t,o){var i=n.getSetting("data",e,t);r(o,void 0===i||null===i?"":i)},columnWidth:function(e){},rowHeight:function(e){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellMouseOver:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null,scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null},this.settings={};for(var o in this.defaults)if(this.defaults.hasOwnProperty(o))if(void 0!==t[o])this.settings[o]=t[o];else{if(void 0===this.defaults[o])throw new Error('A required setting "'+o+'" was not provided');this.settings[o]=this.defaults[o]}};$traceurRuntime.createClass(i,{update:function(e,t){if(void 0===t)for(var n in e)e.hasOwnProperty(n)&&(this.settings[n]=e[n]);else this.settings[e]=t;return this.wot},getSetting:function(e,t,n,o,r){return"function"==typeof this.settings[e]?this.settings[e](t,n,o,r):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]},has:function(e){return!!this.settings[e]}},{}),window.WalkontableSettings=i},{"helpers/dom/element":47}],21:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableTable:{get:function(){return S}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),d=c.getStyle,h=c.getTrimmingContainer,f=c.hasClass,p=c.index,m=c.offset,g=c.removeClass,w=c.removeTextNodes,v=c.overlayContainsElement,y=c.closest,b=(r=e("helpers/function"),r&&r.__esModule&&r||{default:r}).isFunction,C=(i=e("cell/coords"),i&&i.__esModule&&i||{default:i}).WalkontableCellCoords,_=((s=e("cell/range"),s&&s.__esModule&&s||{default:s}).WalkontableCellRange,(a=e("filter/column"),a&&a.__esModule&&a||{default:a}).WalkontableColumnFilter),R=(l=e("filter/row"),l&&l.__esModule&&l||{default:l}).WalkontableRowFilter,M=(u=e("tableRenderer"),u&&u.__esModule&&u||{default:u}).WalkontableTableRenderer,S=function(e,t){var n=this;this.wot=e,this.instance=this.wot,this.TABLE=t,this.TBODY=null,this.THEAD=null,this.COLGROUP=null,this.tableOffset=0,this.holderOffset=0,w(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.colgroupChildrenLength=this.COLGROUP.childNodes.length,this.theadChildrenLength=this.THEAD.firstChild?this.THEAD.firstChild.childNodes.length:0,this.tbodyChildrenLength=this.TBODY.childNodes.length,this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;var o=this.wot.wtSettings.settings.rowHeaderWidth;this.wot.wtSettings.settings.rowHeaderWidth=function(){return n._modifyRowHeaderWidth(o)}};$traceurRuntime.createClass(S,{fixTableDomTree:function(){this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=document.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=document.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=document.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD)),this.wot.getSetting("columnHeaders").length&&!this.THEAD.childNodes.length&&this.THEAD.appendChild(document.createElement("TR"))},createSpreader:function(e){var t,n=e.parentNode;return n&&1===n.nodeType&&f(n,"wtHolder")||(t=document.createElement("div"),t.className="wtSpreader",n&&n.insertBefore(t,e),t.appendChild(e)),t.style.position="relative",t},createHider:function(e){var t,n=e.parentNode;return n&&1===n.nodeType&&f(n,"wtHolder")||(t=document.createElement("div"),t.className="wtHider",n&&n.insertBefore(t,e),t.appendChild(e)),t},createHolder:function(e){var t,n=e.parentNode;return n&&1===n.nodeType&&f(n,"wtHolder")||(t=document.createElement("div"),t.style.position="relative",t.className="wtHolder",n&&n.insertBefore(t,e),this.isWorkingOnClone()||(t.parentNode.className+="ht_master handsontable"),t.appendChild(e)),t},alignOverlaysWithTrimmingContainer:function(){var e=h(this.wtRootElement);if(!this.isWorkingOnClone())if(this.holder.parentNode.style.position="relative",e===window){var t=this.wot.getSetting("preventOverflow");t||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else this.holder.style.width=d(e,"width"),this.holder.style.height=d(e,"height"),this.holder.style.overflow=""},isWorkingOnClone:function(){return!!this.wot.cloneSource},draw:function(e){var t=this.wot,n=t.wtOverlays,o=t.wtViewport,r=this.instance.getSetting("totalRows"),i=this.wot.getSetting("rowHeaders").length,s=this.wot.getSetting("columnHeaders").length,a=!1;if(!this.isWorkingOnClone()&&(this.holderOffset=m(this.holder),e=o.createRenderCalculators(e),i&&!this.wot.getSetting("fixedColumnsLeft"))){var l=n.leftOverlay.getScrollPosition(),u=this.correctHeaderWidth;this.correctHeaderWidth=l>0,u!==this.correctHeaderWidth&&(e=!1)}if(this.isWorkingOnClone()||(a=n.prepareOverlays()),e)this.isWorkingOnClone()||o.createVisibleCalculators(),n&&n.refresh(!0);else{this.isWorkingOnClone()?this.tableOffset=this.wot.cloneSource.wtTable.tableOffset:this.tableOffset=m(this.TABLE);var c;c=WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_DEBUG)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_TOP)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_TOP_LEFT_CORNER)?0:WalkontableOverlay.isOverlayTypeOf(this.instance.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM)||WalkontableOverlay.isOverlayTypeOf(this.instance.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER)?Math.max(r-this.wot.getSetting("fixedRowsBottom"),0):o.rowsRenderCalculator.startRow;var d;d=WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_DEBUG)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_LEFT)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_TOP_LEFT_CORNER)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER)?0:o.columnsRenderCalculator.startColumn,this.rowFilter=new R(c,r,s),this.columnFilter=new _(d,this.wot.getSetting("totalColumns"),i),this.alignOverlaysWithTrimmingContainer(),this._doDraw()}return this.refreshSelections(e),this.isWorkingOnClone()||(n.topOverlay.resetFixedPosition(),n.bottomOverlay.clone&&n.bottomOverlay.resetFixedPosition(),n.leftOverlay.resetFixedPosition(),n.topLeftCornerOverlay&&n.topLeftCornerOverlay.resetFixedPosition(),n.bottomLeftCornerOverlay&&n.bottomLeftCornerOverlay.clone&&n.bottomLeftCornerOverlay.resetFixedPosition()),a&&n.syncScrollWithMaster(),this.wot.drawn=!0,this},_doDraw:function(){var e=new M(this);e.render()},removeClassFromCells:function(e){for(var t=this.TABLE.querySelectorAll("."+e),n=0,o=t.length;n<o;n++)g(t[n],e)},refreshSelections:function(e){if(this.wot.selections){var t=this.wot.selections.length;if(e)for(var n=0;n<t;n++)this.wot.selections[n].settings.className&&this.removeClassFromCells(this.wot.selections[n].settings.className),this.wot.selections[n].settings.highlightHeaderClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightHeaderClassName),this.wot.selections[n].settings.highlightRowClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightRowClassName),this.wot.selections[n].settings.highlightColumnClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightColumnClassName);for(var o=0;o<t;o++)this.wot.selections[o].draw(this.wot,e)}},getCell:function(e){if(this.isRowBeforeRenderedRows(e.row))return-1;if(this.isRowAfterRenderedRows(e.row))return-2;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e.row)];return t?t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e.col)]:void 0},getColumnHeader:function(e){var t=void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];if(n)return n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]},getRowHeader:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return t?t.childNodes[0]:void 0},getCoords:function(e){"TD"!==e.nodeName&&"TH"!==e.nodeName&&(e=y(e,["TD","TH"]));var t=e.parentNode,n=t.parentNode,o=p(t),r=e.cellIndex;return v(WalkontableOverlay.CLONE_TOP_LEFT_CORNER,e)||v(WalkontableOverlay.CLONE_TOP,e)?"THEAD"===n.nodeName&&(o-=n.childNodes.length):o=n===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o),r=v(WalkontableOverlay.CLONE_TOP_LEFT_CORNER,e)||v(WalkontableOverlay.CLONE_LEFT,e)?this.columnFilter.offsettedTH(r):this.columnFilter.visibleRowHeadedColumnToSourceColumn(r),new C(o,r)},getTrForRow:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]},getFirstRenderedRow:function(){return this.wot.wtViewport.rowsRenderCalculator.startRow},getFirstVisibleRow:function(){return this.wot.wtViewport.rowsVisibleCalculator.startRow},getFirstRenderedColumn:function(){return this.wot.wtViewport.columnsRenderCalculator.startColumn},getFirstVisibleColumn:function(){return this.wot.wtViewport.columnsVisibleCalculator.startColumn},getLastRenderedRow:function(){return this.wot.wtViewport.rowsRenderCalculator.endRow},getLastVisibleRow:function(){return this.wot.wtViewport.rowsVisibleCalculator.endRow},getLastRenderedColumn:function(){return this.wot.wtViewport.columnsRenderCalculator.endColumn},getLastVisibleColumn:function(){return this.wot.wtViewport.columnsVisibleCalculator.endColumn},isRowBeforeRenderedRows:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)<0&&e>=0},isRowAfterViewport:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastVisibleRow()},isRowAfterRenderedRows:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastRenderedRow()},isColumnBeforeViewport:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0},isColumnAfterViewport:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)>this.getLastVisibleColumn()},isLastRowFullyVisible:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()},isLastColumnFullyVisible:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()},getRenderedColumnsCount:function(){var e=this.wot.wtViewport.columnsRenderCalculator.count,t=this.wot.getSetting("totalColumns");if(this.wot.isOverlayName(WalkontableOverlay.CLONE_DEBUG))e=t;else if(this.wot.isOverlayName(WalkontableOverlay.CLONE_LEFT)||this.wot.isOverlayName(WalkontableOverlay.CLONE_TOP_LEFT_CORNER)||this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER))return Math.min(this.wot.getSetting("fixedColumnsLeft"),t);return e},getRenderedRowsCount:function(){var e=this.wot.wtViewport.rowsRenderCalculator.count,t=this.wot.getSetting("totalRows");return this.wot.isOverlayName(WalkontableOverlay.CLONE_DEBUG)?e=t:this.wot.isOverlayName(WalkontableOverlay.CLONE_TOP)||this.wot.isOverlayName(WalkontableOverlay.CLONE_TOP_LEFT_CORNER)?e=Math.min(this.wot.getSetting("fixedRowsTop"),t):(this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM)||this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER))&&(e=Math.min(this.wot.getSetting("fixedRowsBottom"),t)),e},getVisibleRowsCount:function(){return this.wot.wtViewport.rowsVisibleCalculator.count},allRowsInViewport:function(){return this.wot.getSetting("totalRows")==this.getVisibleRowsCount()},getRowHeight:function(e){var t=this.wot.wtSettings.settings.rowHeight(e),n=this.wot.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t},getColumnHeaderHeight:function(e){var t=this.wot.wtSettings.settings.defaultRowHeight,n=this.wot.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t},getVisibleColumnsCount:function(){return this.wot.wtViewport.columnsVisibleCalculator.count},allColumnsInViewport:function(){return this.wot.getSetting("totalColumns")==this.getVisibleColumnsCount()},getColumnWidth:function(e){var t=this.wot.wtSettings.settings.columnWidth;return"function"==typeof t?t=t(e):"object"==typeof t&&(t=t[e]),t||this.wot.wtSettings.settings.defaultColumnWidth},getStretchedColumnWidth:function(e){var t=this.getColumnWidth(e),n=null==t?this.instance.wtSettings.settings.defaultColumnWidth:t,o=this.wot.wtViewport.columnsRenderCalculator;if(o){var r=o.getStretchedColumnWidth(e,n);r&&(n=r)}return n},_modifyRowHeaderWidth:function(e){var t=b(e)?e():null;return Array.isArray(t)?(t=$traceurRuntime.spread(t),t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t},_correctRowHeaderWidth:function(e){return"number"!=typeof e&&(e=this.wot.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&e++,e}},{}),window.WalkontableTable=S},{"cell/coords":6,"cell/range":7,"filter/column":10,"filter/row":11,"helpers/dom/element":47,"helpers/function":50,tableRenderer:22}],22:[function(e,t,n){"use strict";function o(e,t){var n=document.createElement("TH");return t.insertBefore(n,e),t.removeChild(e),n}function r(e,t){var n=document.createElement("TD");return t.insertBefore(n,e),t.removeChild(e),n}Object.defineProperties(n,{WalkontableTableRenderer:{get:function(){return p}},__esModule:{value:!0}});var i,s=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),a=s.addClass,l=s.empty,u=s.getScrollbarWidth,c=s.hasClass,d=s.innerHeight,h=s.outerWidth,f=!1,p=function(e){this.wtTable=e,this.wot=e.instance,this.instance=e.instance,this.rowFilter=e.rowFilter,this.columnFilter=e.columnFilter,this.TABLE=e.TABLE,this.THEAD=e.THEAD,this.TBODY=e.TBODY,this.COLGROUP=e.COLGROUP,this.rowHeaders=[],this.rowHeaderCount=0,this.columnHeaders=[],this.columnHeaderCount=0,this.fixedRowsTop=0,this.fixedRowsBottom=0};$traceurRuntime.createClass(p,{render:function(){if(!this.wtTable.isWorkingOnClone()){var e={};if(this.wot.getSetting("beforeDraw",!0,e),e.skipRender===!0)return}this.rowHeaders=this.wot.getSetting("rowHeaders"),this.rowHeaderCount=this.rowHeaders.length,this.fixedRowsTop=this.wot.getSetting("fixedRowsTop"),this.fixedRowsBottom=this.wot.getSetting("fixedRowsBottom"),this.columnHeaders=this.wot.getSetting("columnHeaders"),this.columnHeaderCount=this.columnHeaders.length;var t,n=this.wtTable.getRenderedColumnsCount(),o=this.wtTable.getRenderedRowsCount(),r=this.wot.getSetting("totalColumns"),i=this.wot.getSetting("totalRows"),s=!1;if((WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER))&&(this.columnHeaders=[],this.columnHeaderCount=0),r>=0&&(this.adjustAvailableNodes(),s=!0,this.renderColumnHeaders(),this.renderRows(i,o,n),this.wtTable.isWorkingOnClone()||(t=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null),this.adjustColumnWidths(n),this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights()),s||this.adjustAvailableNodes(),this.removeRedundantRows(o),this.wtTable.isWorkingOnClone()&&!this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM)||this.markOversizedRows(),this.wtTable.isWorkingOnClone())this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize();else{this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1),this.wot.wtOverlays.applyToDOM();var a=h(this.wtTable.hider),l=h(this.wtTable.TABLE);if(0!==a&&l!==a&&this.adjustColumnWidths(n),t!==this.wot.wtViewport.getWorkspaceWidth()){this.wot.wtViewport.containerWidth=null;var u=this.wtTable.getFirstRenderedColumn(),c=this.wtTable.getLastRenderedColumn(),d=this.wot.getSetting("defaultColumnWidth"),f=this.wot.getSetting("rowHeaderWidth");if(f=this.instance.getSetting("onModifyRowHeaderWidth",f),null!=f)for(var p=0;p<this.rowHeaderCount;p++){var m=Array.isArray(f)?f[p]:f;m=null==m?d:m,this.COLGROUP.childNodes[p].style.width=m+"px"}for(var g=u;g<c;g++){var w=this.wtTable.getStretchedColumnWidth(g),v=this.columnFilter.sourceToRendered(g);this.COLGROUP.childNodes[v+this.rowHeaderCount].style.width=w+"px"}}this.wot.getSetting("onDraw",!0)}},removeRedundantRows:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--},renderRows:function(e,t,n){for(var o,r,i=0,s=this.rowFilter.renderedToSource(i),a=this.wtTable.isWorkingOnClone();s<e&&s>=0&&(!f&&i>1e3&&(f=!0,console.warn('Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.')),void 0===t||i!==t);){if(r=this.getOrCreateTrForRow(i,r),this.renderRowHeaders(s,r),this.adjustColumns(r,n+this.rowHeaderCount),o=this.renderCells(s,r,n),a&&!this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM)||this.resetOversizedRow(s),r.firstChild){var l=this.wot.wtTable.getRowHeight(s);l?(l--,r.firstChild.style.height=l+"px"):r.firstChild.style.height=""}i++,s=this.rowFilter.renderedToSource(i)}},resetOversizedRow:function(e){this.wot.getSetting("externalRowCalculator")||this.wot.wtViewport.oversizedRows&&this.wot.wtViewport.oversizedRows[e]&&(this.wot.wtViewport.oversizedRows[e]=void 0)},markOversizedRows:function(){if(!this.wot.getSetting("externalRowCalculator")){var e,t,n,o,r,i=this.instance.wtTable.TBODY.childNodes.length,s=i*this.instance.wtSettings.settings.defaultRowHeight,a=d(this.instance.wtTable.TBODY)-1;this.instance.getSetting("totalRows");if(s!==a||this.instance.getSetting("fixedRowsBottom"))for(;i;)i--,n=this.instance.wtTable.rowFilter.renderedToSource(i),e=this.instance.wtTable.getRowHeight(n),o=this.instance.wtTable.getTrForRow(n),r=o.querySelector("th"),t=r?d(r):d(o)-1,(!e&&this.instance.wtSettings.settings.defaultRowHeight<t||e<t)&&(this.instance.wtViewport.oversizedRows[n]=++t)}},markOversizedColumnHeaders:function(){var e=this.wot.getOverlayName();if(this.columnHeaderCount&&!this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]&&!this.wtTable.isWorkingOnClone()){for(var t=this.wtTable.getRenderedColumnsCount(),n=0;n<this.columnHeaderCount;n++)for(var o=-1*this.rowHeaderCount;o<t;o++)this.markIfOversizedColumnHeader(o);this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]=!0}},adjustColumnHeaderHeights:function(){for(var e=this.wot.getSetting("columnHeaders"),t=this.wot.wtTable.THEAD.childNodes,n=this.wot.wtViewport.oversizedColumnHeaders,o=0,r=e.length;o<r;o++)if(n[o]){if(!t[o]||0===t[o].childNodes.length)return;t[o].childNodes[0].style.height=n[o]+"px"}},markIfOversizedColumnHeader:function(e){for(var t,n,o,r=this.wot.wtTable.columnFilter.renderedToSource(e),i=this.columnHeaderCount,s=this.wot.wtSettings.settings.defaultRowHeight,a=this.wot.getSetting("columnHeaderHeight")||[];i;)i--,t=this.wot.wtTable.getColumnHeaderHeight(i),n=this.wot.wtTable.getColumnHeader(r,i),n&&(o=d(n),(!t&&s<o||t<o)&&(this.wot.wtViewport.oversizedColumnHeaders[i]=o),Array.isArray(a)?null!=a[i]&&(this.wot.wtViewport.oversizedColumnHeaders[i]=a[i]):isNaN(a)||(this.wot.wtViewport.oversizedColumnHeaders[i]=a),this.wot.wtViewport.oversizedColumnHeaders[i]<(a[i]||a)&&(this.wot.wtViewport.oversizedColumnHeaders[i]=a[i]||a))},renderCells:function(e,t,n){for(var o,i,s=0;s<n;s++)i=this.columnFilter.renderedToSource(s),o=0===s?t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(i)]:o.nextSibling,"TH"==o.nodeName&&(o=r(o,t)),c(o,"hide")||(o.className=""),o.removeAttribute("style"),this.wot.wtSettings.settings.cellRenderer(e,i,o);return o},adjustColumnWidths:function(e){var t=0,n=this.wot.cloneSource?this.wot.cloneSource:this.wot,o=n.wtTable.holder,r=this.wot.getSetting("defaultColumnWidth"),i=this.wot.getSetting("rowHeaderWidth");if(o.offsetHeight<o.scrollHeight&&(t=u()),this.wot.wtViewport.columnsRenderCalculator.refreshStretching(this.wot.wtViewport.getViewportWidth()-t),i=this.instance.getSetting("onModifyRowHeaderWidth",i),null!=i)for(var s=0;s<this.rowHeaderCount;s++){var a=Array.isArray(i)?i[s]:i;a=null==a?r:a,this.COLGROUP.childNodes[s].style.width=a+"px"}for(var l=0;l<e;l++){var c=this.wtTable.getStretchedColumnWidth(this.columnFilter.renderedToSource(l));this.COLGROUP.childNodes[l+this.rowHeaderCount].style.width=c+"px"}},appendToTbody:function(e){this.TBODY.appendChild(e),this.wtTable.tbodyChildrenLength++},getOrCreateTrForRow:function(e,t){var n;return e>=this.wtTable.tbodyChildrenLength?(n=this.createRow(),this.appendToTbody(n)):n=0===e?this.TBODY.firstChild:t.nextSibling,n.className&&n.removeAttribute("class"),n},createRow:function(){for(var e=document.createElement("TR"),t=0;t<this.rowHeaderCount;t++)e.appendChild(document.createElement("TH"));return e},renderRowHeader:function(e,t,n){n.className="",n.removeAttribute("style"),this.rowHeaders[t](e,n,t)},renderRowHeaders:function(e,t){for(var n=t.firstChild,r=0;r<this.rowHeaderCount;r++)n?"TD"==n.nodeName&&(n=o(n,t)):(n=document.createElement("TH"),t.appendChild(n)),this.renderRowHeader(e,r,n),n=n.nextSibling},adjustAvailableNodes:function(){this.adjustColGroups(),this.adjustThead()},renderColumnHeaders:function(){if(this.columnHeaderCount)for(var e=this.wtTable.getRenderedColumnsCount(),t=0;t<this.columnHeaderCount;t++)for(var n=this.getTrForColumnHeaders(t),o=-1*this.rowHeaderCount;o<e;o++){var r=this.columnFilter.renderedToSource(o);this.renderColumnHeader(t,r,n.childNodes[o+this.rowHeaderCount])}},adjustColGroups:function(){for(var e=this.wtTable.getRenderedColumnsCount();this.wtTable.colgroupChildrenLength<e+this.rowHeaderCount;)this.COLGROUP.appendChild(document.createElement("COL")),this.wtTable.colgroupChildrenLength++;for(;this.wtTable.colgroupChildrenLength>e+this.rowHeaderCount;)this.COLGROUP.removeChild(this.COLGROUP.lastChild),this.wtTable.colgroupChildrenLength--;this.rowHeaderCount&&a(this.COLGROUP.childNodes[0],"rowHeader")},adjustThead:function(){var e=this.wtTable.getRenderedColumnsCount(),t=this.THEAD.firstChild;if(this.columnHeaders.length){for(var n=0,o=this.columnHeaders.length;n<o;n++){for(t=this.THEAD.childNodes[n],t||(t=document.createElement("TR"),this.THEAD.appendChild(t)),this.theadChildrenLength=t.childNodes.length;this.theadChildrenLength<e+this.rowHeaderCount;)t.appendChild(document.createElement("TH")),this.theadChildrenLength++;for(;this.theadChildrenLength>e+this.rowHeaderCount;)t.removeChild(t.lastChild),this.theadChildrenLength--}var r=this.THEAD.childNodes.length;if(r>this.columnHeaders.length)for(var i=this.columnHeaders.length;i<r;i++)this.THEAD.removeChild(this.THEAD.lastChild)}else t&&l(t)},getTrForColumnHeaders:function(e){return this.THEAD.childNodes[e]},renderColumnHeader:function(e,t,n){return n.className="",n.removeAttribute("style"),this.columnHeaders[e](t,n,e)},adjustColumns:function(e,t){for(var n=e.childNodes.length;n<t;){var o=document.createElement("TD");e.appendChild(o),n++}for(;n>t;)e.removeChild(e.lastChild),n--},removeRedundantColumns:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--}},{}),window.WalkontableTableRenderer=p},{"helpers/dom/element":47}],23:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableViewport:{get:function(){return b}},__esModule:{value:!0}});var o,r,i,s,a,l,u=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,c=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),d=c.getScrollbarWidth,h=(c.getScrollTop,c.getStyle),f=c.offset,p=c.outerHeight,m=c.outerWidth,g=(i=e("helpers/object"),i&&i.__esModule&&i||{default:i}).objectEach,w=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).EventManager,v=(a=e("calculator/viewportColumns"),a&&a.__esModule&&a||{default:a}).WalkontableViewportColumnsCalculator,y=(l=e("calculator/viewportRows"),l&&l.__esModule&&l||{default:l}).WalkontableViewportRowsCalculator,b=function(e){var t=this;this.wot=e,this.instance=this.wot,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=new w(this.wot),this.eventManager.addEventListener(window,"resize",function(){t.clientHeight=t.getWorkspaceHeight()})};$traceurRuntime.createClass(b,{getWorkspaceHeight:function(){var e,t=this.instance.wtOverlays.topOverlay.trimmingContainer,n=0;return t===window?n=document.documentElement.clientHeight:(e=p(t),n=e>0&&t.clientHeight>0?t.clientHeight:1/0),n},getWorkspaceWidth:function(){var e,t,n=this.wot.getSetting("totalColumns"),o=this.instance.wtOverlays.leftOverlay.trimmingContainer,r=this.wot.getSetting("stretchH"),i=document.documentElement.offsetWidth,s=this.wot.getSetting("preventOverflow");return s?m(this.instance.wtTable.wtRootElement):(e=u.freezeOverlays?Math.min(i-this.getWorkspaceOffset().left,i):Math.min(this.getContainerFillWidth(),i-this.getWorkspaceOffset().left,i),o===window&&n>0&&this.sumColumnWidths(0,n-1)>e?document.documentElement.clientWidth:o!==window&&(t=h(this.instance.wtOverlays.leftOverlay.trimmingContainer,"overflow"),"scroll"==t||"hidden"==t||"auto"==t)?Math.max(e,o.clientWidth):"none"!==r&&r?e:Math.max(e,m(this.instance.wtTable.TABLE)))},hasVerticalScroll:function(){return this.getWorkspaceActualHeight()>this.getWorkspaceHeight()},hasHorizontalScroll:function(){return this.getWorkspaceActualWidth()>this.getWorkspaceWidth()},sumColumnWidths:function(e,t){for(var n=0;e<t;)n+=this.wot.wtTable.getColumnWidth(e),e++;return n},getContainerFillWidth:function(){if(this.containerWidth)return this.containerWidth;var e,t,n=this.instance.wtTable.holder;return t=document.createElement("div"),t.style.width="100%",t.style.height="1px",n.appendChild(t),e=t.offsetWidth,this.containerWidth=e,n.removeChild(t),e},getWorkspaceOffset:function(){return f(this.wot.wtTable.TABLE)},getWorkspaceActualHeight:function(){return p(this.wot.wtTable.TABLE)},getWorkspaceActualWidth:function(){return m(this.wot.wtTable.TABLE)||m(this.wot.wtTable.TBODY)||m(this.wot.wtTable.THEAD)},getColumnHeaderHeight:function(){return isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=p(this.wot.wtTable.THEAD)),this.columnHeaderHeight},getViewportHeight:function(){var e,t=this.getWorkspaceHeight();return t===1/0?t:(e=this.getColumnHeaderHeight(),e>0&&(t-=e),t)},getRowHeaderWidth:function(){var e=this.instance.getSetting("rowHeaderWidth"),t=this.instance.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,o=t.length;n<o;n++)this.rowHeaderWidth+=e[n]||e}if(this.wot.cloneSource)return this.wot.cloneSource.wtViewport.getRowHeaderWidth();if(isNaN(this.rowHeaderWidth))if(t.length){var r=this.instance.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var i=0,s=t.length;i<s;i++)r?(this.rowHeaderWidth+=m(r),r=r.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.instance.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth},getViewportWidth:function(){var e,t=this.getWorkspaceWidth();return t===1/0?t:(e=this.getRowHeaderWidth(),e>0?t-e:t)},createRowsCalculator:function(){var e,t,n,o,r,i,s,a=void 0!==arguments[0]&&arguments[0],l=this;return this.rowHeaderWidth=NaN,e=this.wot.wtSettings.settings.renderAllRows?1/0:this.getViewportHeight(),t=this.wot.wtOverlays.topOverlay.getScrollPosition()-this.wot.wtOverlays.topOverlay.getTableParentOffset(),t<0&&(t=0),n=this.wot.getSetting("fixedRowsTop"),r=this.wot.getSetting("fixedRowsBottom"),s=this.wot.getSetting("totalRows"),n&&(i=this.wot.wtOverlays.topOverlay.sumCellSizes(0,n),t+=i,e-=i),r&&this.wot.wtOverlays.bottomOverlay.clone&&(i=this.wot.wtOverlays.bottomOverlay.sumCellSizes(s-r,s),e-=i),o=this.wot.wtTable.holder.clientHeight===this.wot.wtTable.holder.offsetHeight?0:d(),new y(e,t,this.wot.getSetting("totalRows"),function(e){return l.wot.wtTable.getRowHeight(e)},a?null:this.wot.wtSettings.settings.viewportRowCalculatorOverride,a,o)},createColumnsCalculator:function(){var e,t,n=void 0!==arguments[0]&&arguments[0],o=this,r=this.getViewportWidth();if(this.columnHeaderHeight=NaN,e=this.wot.wtOverlays.leftOverlay.getScrollPosition()-this.wot.wtOverlays.leftOverlay.getTableParentOffset(),
e<0&&(e=0),t=this.wot.getSetting("fixedColumnsLeft")){var i=this.wot.wtOverlays.leftOverlay.sumCellSizes(0,t);e+=i,r-=i}return this.wot.wtTable.holder.clientWidth!==this.wot.wtTable.holder.offsetWidth&&(r-=d()),new v(r,e,this.wot.getSetting("totalColumns"),function(e){return o.wot.wtTable.getColumnWidth(e)},n?null:this.wot.wtSettings.settings.viewportColumnCalculatorOverride,n,this.wot.getSetting("stretchH"),function(e,t){return o.wot.getSetting("onBeforeStretchingColumnWidth",e,t)})},createRenderCalculators:function(){var e=void 0!==arguments[0]&&arguments[0];if(e){var t=this.createRowsCalculator(!0),n=this.createColumnsCalculator(!0);this.areAllProposedVisibleRowsAlreadyRendered(t)&&this.areAllProposedVisibleColumnsAlreadyRendered(n)||(e=!1)}return e||(this.rowsRenderCalculator=this.createRowsCalculator(),this.columnsRenderCalculator=this.createColumnsCalculator()),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,e},createVisibleCalculators:function(){this.rowsVisibleCalculator=this.createRowsCalculator(!0),this.columnsVisibleCalculator=this.createColumnsCalculator(!0)},areAllProposedVisibleRowsAlreadyRendered:function(e){return!!this.rowsVisibleCalculator&&(!(e.startRow<this.rowsRenderCalculator.startRow||e.startRow===this.rowsRenderCalculator.startRow&&e.startRow>0)&&!(e.endRow>this.rowsRenderCalculator.endRow||e.endRow===this.rowsRenderCalculator.endRow&&e.endRow<this.wot.getSetting("totalRows")-1))},areAllProposedVisibleColumnsAlreadyRendered:function(e){return!!this.columnsVisibleCalculator&&(!(e.startColumn<this.columnsRenderCalculator.startColumn||e.startColumn===this.columnsRenderCalculator.startColumn&&e.startColumn>0)&&!(e.endColumn>this.columnsRenderCalculator.endColumn||e.endColumn===this.columnsRenderCalculator.endColumn&&e.endColumn<this.wot.getSetting("totalColumns")-1))},resetHasOversizedColumnHeadersMarked:function(){g(this.hasOversizedColumnHeadersMarked,function(e,t,n){n[t]=void 0})}},{}),window.WalkontableViewport=b},{browser:24,"calculator/viewportColumns":4,"calculator/viewportRows":5,eventManager:42,"helpers/dom/element":47,"helpers/object":53}],24:[function(e,t,n){"use strict";function o(e,t){var n=new o.Core(e,t||{});return n.init(),n}var r,i,s,a,l,u,c,d,h,f,p,m,g,w,v,y,b,C,_,R,M,S,E,O;t.exports=o,o.utils={},r=e("shims/runtime"),r&&r.__esModule&&r||{default:r},i=e("es6collections"),i&&i.__esModule&&i||{default:i};var T=(s=e("pluginHooks"),s&&s.__esModule&&s||{default:s}).Hooks,k=(a=e("numbro"),a&&a.__esModule&&a||{default:a}).default,x=(l=e("moment"),l&&l.__esModule&&l||{default:l}).default;"object"==typeof window&&("undefined"==typeof window.numbro&&(window.numbro=k),"undefined"==typeof window.moment&&(window.moment=x)),o.hooks||(o.hooks=new T),o.utils.Hooks=T,u=e("core"),u&&u.__esModule&&u||{default:u},c=e("renderers/_cellDecorator"),c&&c.__esModule&&c||{default:c},d=e("cellTypes"),d&&d.__esModule&&d||{default:d},h=e("plugins/jqueryHandsontable"),h&&h.__esModule&&h||{default:h};var D=(f=e("helpers/array"),f&&f.__esModule&&f||{default:f}),H=(p=e("helpers/browser"),p&&p.__esModule&&p||{default:p}),A=(m=e("helpers/data"),m&&m.__esModule&&m||{default:m}),P=(g=e("helpers/date"),g&&g.__esModule&&g||{default:g}),N=(w=e("helpers/feature"),w&&w.__esModule&&w||{default:w}),L=(v=e("helpers/function"),v&&v.__esModule&&v||{default:v}),I=(y=e("helpers/mixed"),y&&y.__esModule&&y||{default:y}),W=(b=e("helpers/number"),b&&b.__esModule&&b||{default:b}),j=(C=e("helpers/object"),C&&C.__esModule&&C||{default:C}),V=(_=e("helpers/setting"),_&&_.__esModule&&_||{default:_}),B=(R=e("helpers/string"),R&&R.__esModule&&R||{default:R}),F=(M=e("helpers/unicode"),M&&M.__esModule&&M||{default:M}),z=(S=e("helpers/dom/element"),S&&S.__esModule&&S||{default:S}),Y=(E=e("helpers/dom/event"),E&&E.__esModule&&E||{default:E}),U=[D,H,A,P,N,L,I,W,j,V,B,F],G=[z,Y];o.buildDate="Tue Feb 14 2017 11:02:09 GMT+0100 (CET)",o.packageName="handsontable",o.version="0.31.0";var $="@@baseVersion";/^@@/.test($)||(o.baseVersion=$),o.plugins={};var K=(O=e("plugins"),O&&O.__esModule&&O||{default:O}).registerPlugin;o.plugins.registerPlugin=K,o.helper={},o.dom={},o.Dom=o.dom,D.arrayEach(U,function(e){D.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(o.helper[t]=e[t])})}),D.arrayEach(G,function(e){D.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(o.dom[t]=e[t])})})},{cellTypes:25,core:26,es6collections:"es6collections","helpers/array":43,"helpers/browser":44,"helpers/data":45,"helpers/date":46,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/feature":49,"helpers/function":50,"helpers/mixed":51,"helpers/number":52,"helpers/object":53,"helpers/setting":54,"helpers/string":55,"helpers/unicode":56,moment:"moment",numbro:"numbro",pluginHooks:60,plugins:61,"plugins/jqueryHandsontable":2,"renderers/_cellDecorator":118,"shims/runtime":125}],25:[function(e,t,n){"use strict";var o,r,i,s,a,l,u,c,d,h,f,p,m,g,w,v,y,b,C,_,R,M,S,E,O=(o=e("helpers/browser"),o&&o.__esModule&&o||{default:o}).isMobileBrowser,T=(r=e("editors"),r&&r.__esModule&&r||{default:r}).getEditorConstructor,k=(i=e("renderers"),i&&i.__esModule&&i||{default:i}).getRenderer,x=((s=e("editors/autocompleteEditor"),s&&s.__esModule&&s||{default:s}).AutocompleteEditor,(a=e("editors/checkboxEditor"),a&&a.__esModule&&a||{default:a}).CheckboxEditor,(l=e("editors/dateEditor"),l&&l.__esModule&&l||{default:l}).DateEditor,(u=e("editors/dropdownEditor"),u&&u.__esModule&&u||{default:u}).DropdownEditor,(c=e("editors/handsontableEditor"),c&&c.__esModule&&c||{default:c}).HandsontableEditor,(d=e("editors/mobileTextEditor"),d&&d.__esModule&&d||{default:d}).MobileTextEditor,(h=e("editors/numericEditor"),h&&h.__esModule&&h||{default:h}).NumericEditor,(f=e("editors/passwordEditor"),f&&f.__esModule&&f||{default:f}).PasswordEditor,(p=e("editors/selectEditor"),p&&p.__esModule&&p||{default:p}).SelectEditor,(m=e("editors/textEditor"),m&&m.__esModule&&m||{default:m}).TextEditor,(g=e("renderers/autocompleteRenderer"),g&&g.__esModule&&g||{default:g}).AutocompleteRenderer,(w=e("renderers/checkboxRenderer"),w&&w.__esModule&&w||{default:w}).CheckboxRenderer,(v=e("renderers/htmlRenderer"),v&&v.__esModule&&v||{default:v}).HtmlRenderer,(y=e("renderers/numericRenderer"),y&&y.__esModule&&y||{default:y}).NumericRenderer,(b=e("renderers/passwordRenderer"),b&&b.__esModule&&b||{default:b}).PasswordRenderer,(C=e("renderers/textRenderer"),C&&C.__esModule&&C||{default:C}).TextRenderer,(_=e("validators/autocompleteValidator"),_&&_.__esModule&&_||{default:_}).AutocompleteValidator,(R=e("validators/dateValidator"),R&&R.__esModule&&R||{default:R}).DateValidator,(M=e("validators/timeValidator"),M&&M.__esModule&&M||{default:M}).TimeValidator,(S=e("validators/numericValidator"),S&&S.__esModule&&S||{default:S}).NumericValidator,(E=e("browser"),E&&E.__esModule&&E||{default:E}).default);x.AutocompleteCell={editor:T("autocomplete"),renderer:k("autocomplete"),validator:x.AutocompleteValidator},x.CheckboxCell={editor:T("checkbox"),renderer:k("checkbox")},x.TextCell={editor:T(O()?"mobile":"text"),renderer:k("text")},x.NumericCell={editor:T("numeric"),renderer:k("numeric"),validator:x.NumericValidator,dataType:"number"},x.DateCell={editor:T("date"),validator:x.DateValidator,renderer:k("autocomplete")},x.TimeCell={editor:T("text"),validator:x.TimeValidator,renderer:k("text")},x.HandsontableCell={editor:T("handsontable"),renderer:k("autocomplete")},x.PasswordCell={editor:T("password"),renderer:k("password"),copyable:!1},x.DropdownCell={editor:T("dropdown"),renderer:k("autocomplete"),validator:x.AutocompleteValidator},x.cellTypes={text:x.TextCell,date:x.DateCell,time:x.TimeCell,numeric:x.NumericCell,checkbox:x.CheckboxCell,autocomplete:x.AutocompleteCell,handsontable:x.HandsontableCell,password:x.PasswordCell,dropdown:x.DropdownCell},x.cellLookup={validator:{numeric:x.NumericValidator,autocomplete:x.AutocompleteValidator}}},{browser:24,editors:30,"editors/autocompleteEditor":32,"editors/checkboxEditor":33,"editors/dateEditor":34,"editors/dropdownEditor":35,"editors/handsontableEditor":36,"editors/mobileTextEditor":37,"editors/numericEditor":38,"editors/passwordEditor":39,"editors/selectEditor":40,"editors/textEditor":41,"helpers/browser":44,renderers:117,"renderers/autocompleteRenderer":119,"renderers/checkboxRenderer":120,"renderers/htmlRenderer":121,"renderers/numericRenderer":122,"renderers/passwordRenderer":123,"renderers/textRenderer":124,"validators/autocompleteValidator":133,"validators/dateValidator":134,"validators/numericValidator":135,"validators/timeValidator":136}],26:[function(e,t,n){"use strict";var o,r,i,s,a,l,u,c,d,h,f,p,m,g,w,v,y,b,C,_,R,M,S,E=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,O=(r=e("numbro"),r&&r.__esModule&&r||{default:r}).default,T=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),k=T.addClass,x=T.empty,D=T.isChildOfWebComponentTable,H=T.removeClass,A=(s=e("helpers/setting"),s&&s.__esModule&&s||{default:s}).columnFactory,P=(a=e("helpers/function"),a&&a.__esModule&&a||{default:a}).isFunction,N=(l=e("helpers/mixed"),l&&l.__esModule&&l||{default:l}),L=N.isDefined,I=N.isUndefined,W=(u=e("helpers/browser"),u&&u.__esModule&&u||{default:u}).isMobileBrowser,j=(c=e("dataMap"),c&&c.__esModule&&c||{default:c}).DataMap,V=(d=e("editorManager"),d&&d.__esModule&&d||{default:d}).EditorManager,B=(h=e("eventManager"),h&&h.__esModule&&h||{default:h}).eventManager,F=(f=e("helpers/object"),f&&f.__esModule&&f||{default:f}),z=F.deepClone,Y=F.duckSchema,U=F.extend,G=F.isObject,$=F.isObjectEquals,K=F.deepObjectSize,X=(p=e("helpers/array"),p&&p.__esModule&&p||{default:p}),q=X.arrayFlatten,Z=X.arrayMap,J=(m=e("plugins"),m&&m.__esModule&&m||{default:m}).getPlugin,Q=(g=e("renderers"),g&&g.__esModule&&g||{default:g}).getRenderer,ee=(w=e("helpers/string"),w&&w.__esModule&&w||{default:w}).randomString,te=(v=e("helpers/number"),v&&v.__esModule&&v||{default:v}).rangeEach,ne=(y=e("tableView"),y&&y.__esModule&&y||{default:y}).TableView,oe=(b=e("dataSource"),b&&b.__esModule&&b||{default:b}).DataSource,re=(C=e("helpers/data"),C&&C.__esModule&&C||{default:C}),ie=re.translateRowsToColumns,se=re.cellMethodLookupFactory,ae=re.spreadsheetColumnLabel,le=(_=e("utils/recordTranslator"),_&&_.__esModule&&_||{default:_}).getTranslator,ue=(R=e("3rdparty/walkontable/src/cell/coords"),R&&R.__esModule&&R||{default:R}).WalkontableCellCoords,ce=(M=e("3rdparty/walkontable/src/cell/range"),M&&M.__esModule&&M||{default:M}).WalkontableCellRange,de=(S=e("3rdparty/walkontable/src/calculator/viewportColumns"),S&&S.__esModule&&S||{default:S}).WalkontableViewportColumnsCalculator;E.activeGuid=null,E.Core=function(e,t){function n(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue++,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(e){},checkIfQueueIsEmpty:function(){0==this.validatorsInQueue&&0==e&&(e=!0,this.onQueueEmpty(this.valid))}}}function o(e,t,o){function r(){var n;e.length&&(n=E.hooks.run(p,"beforeChange",e,t),P(n)?console.warn("Your beforeChange callback returns a function. It's not supported since Handsontable 0.12.1 (and the returned function will not be executed)."):n===!1&&e.splice(0,e.length)),o()}var i=new n;i.onQueueEmpty=r;for(var s=e.length-1;s>=0;s--)if(null===e[s])e.splice(s,1);else{var a=e[s][0],l=u.propToCol(e[s][1]),c=p.getCellMeta(a,l);if("numeric"===c.type&&"string"==typeof e[s][3]&&e[s][3].length>0&&(/^-?[\d\s]*(\.|\,)?\d*$/.test(e[s][3])||c.format)){var d=e[s][3].length;I(c.language)?O.culture("en-US"):e[s][3].indexOf(".")===d-3&&e[s][3].indexOf(",")===-1?O.culture("en-US"):O.culture(c.language);O.cultureData(O.culture()).delimiters;O.validate(e[s][3])&&!isNaN(e[s][3])?e[s][3]=parseFloat(e[s][3]):e[s][3]=O().unformat(e[s][3])||e[s][3]}p.getCellValidator(c)&&(i.addValidatorToQueue(),p.validateCell(e[s][3],c,function(t,n){return function(o){if("boolean"!=typeof o)throw new Error("Validation error: result is not boolean");if(o===!1&&n.allowInvalid===!1){e.splice(t,1),n.valid=!0;var r=p.getCell(n.row,n.col);H(r,p.getSettings().invalidCellClassName),--t}i.removeValidatorFormQueue()}}(s,c),t))}i.checkIfQueueIsEmpty()}function r(e,t){var n=e.length-1;if(!(n<0)){for(;0<=n;n--){var o=!1;if(null!==e[n]){if(null!=e[n][2]||null!=e[n][3]){if(l.settings.allowInsertRow)for(;e[n][0]>p.countRows()-1;){var r=u.createRow(void 0,void 0,t);if(0===r){o=!0;break}}if(!o){if("array"===p.dataType&&(!l.settings.columns||0===l.settings.columns.length)&&l.settings.allowInsertColumn)for(;u.propToCol(e[n][1])>p.countCols()-1;)u.createCol(void 0,void 0,t);u.set(e[n][0],e[n][1],e[n][3])}}}else e.splice(n,1)}p.forceFullRender=!0,d.adjustRowsAndCols(),E.hooks.run(p,"beforeChangeRender",e,t),h.refreshBorders(null,!0),p.view.wt.wtOverlays.adjustElementsSize(),E.hooks.run(p,"afterChange",e,t||"edit");var i=p.getActiveEditor();i&&L(i.refreshValue)&&i.refreshValue()}}function i(e,t,n){return"object"==typeof e?e:[[e,t,n]]}function s(e){if(e.hasOwnProperty("type")){var t,n={};if("object"==typeof e.type)t=e.type;else if("string"==typeof e.type&&(t=E.cellTypes[e.type],void 0===t))throw new Error('You declared cell type "'+e.type+'" as a string that is not mapped to a known object. Cell type must be an object or a string mapped to an object in Handsontable.cellTypes');for(var o in t)t.hasOwnProperty(o)&&!e.hasOwnProperty(o)&&(n[o]=t[o]);return n}}function a(){throw new Error("This method cannot be called because this Handsontable instance has been destroyed")}var l,u,c,d,h,f,p=this,m=function(){},g=B(p),w=le(p);U(m.prototype,he.prototype),U(m.prototype,t),U(m.prototype,s(t)),this.rootElement=e,this.isHotTableEnv=D(this.rootElement),E.eventManager.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("DIV"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),this.guid="ht_"+ee(),c=new oe(p),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),l={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width"],settings:new m,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},d={alter:function(e,t,n,o,r){function i(e,t,n,o){var r=function(){var e;return"array"===o?e=[]:"object"===o&&(e={}),e},i=Z(new Array(n),function(){return r()});i.unshift(t,0),e.splice.apply(e,i)}var s;switch(n=n||1,e){case"insert_row":var a=p.countSourceRows();if(p.getSettings().maxRows===a)return;t=L(t)?t:a,s=u.createRow(t,n,o),i(l.cellSettings,t,n,"array"),s&&(h.isSelected()&&l.selRange.from.row>=t?(l.selRange.from.row=l.selRange.from.row+s,h.transformEnd(s,0)):h.refreshBorders());break;case"insert_col":s=u.createCol(t,n,o);for(var c=0,f=p.countSourceRows();c<f;c++)l.cellSettings[c]&&i(l.cellSettings[c],t,n);if(s){if(Array.isArray(p.getSettings().colHeaders)){var m=[t,0];m.length+=s,Array.prototype.splice.apply(p.getSettings().colHeaders,m)}h.isSelected()&&l.selRange.from.col>=t?(l.selRange.from.col=l.selRange.from.col+s,h.transformEnd(0,s)):h.refreshBorders()}break;case"remove_row":u.removeRow(t,n,o),l.cellSettings.splice(t,n);var g=p.countRows(),v=p.getSettings().fixedRowsTop;v>=t+1&&(p.getSettings().fixedRowsTop-=Math.min(n,v-t));var y=p.getSettings().fixedRowsBottom;y&&t>=g-y&&(p.getSettings().fixedRowsBottom-=Math.min(n,y)),d.adjustRowsAndCols(),h.refreshBorders();break;case"remove_col":var b=w.toPhysicalColumn(t);u.removeCol(t,n,o);for(var C=0,_=p.countSourceRows();C<_;C++)l.cellSettings[C]&&l.cellSettings[C].splice(b,n);var R=p.getSettings().fixedColumnsLeft;R>=t+1&&(p.getSettings().fixedColumnsLeft-=Math.min(n,R-t)),Array.isArray(p.getSettings().colHeaders)&&("undefined"==typeof b&&(b=-1),p.getSettings().colHeaders.splice(b,n)),d.adjustRowsAndCols(),h.refreshBorders();break;default:throw new Error('There is no such action "'+e+'"')}r||d.adjustRowsAndCols()},adjustRowsAndCols:function(){if(l.settings.minRows){var e=p.countRows();if(e<l.settings.minRows)for(var t=0,n=l.settings.minRows;t<n-e;t++)u.createRow(p.countRows(),1,"auto")}if(l.settings.minSpareRows){var o=p.countEmptyRows(!0);if(o<l.settings.minSpareRows)for(;o<l.settings.minSpareRows&&p.countSourceRows()<l.settings.maxRows;o++)u.createRow(p.countRows(),1,"auto")}var r;if((l.settings.minCols||l.settings.minSpareCols)&&(r=p.countEmptyCols(!0)),l.settings.minCols&&!l.settings.columns&&p.countCols()<l.settings.minCols)for(;p.countCols()<l.settings.minCols;r++)u.createCol(p.countCols(),1,"auto");if(l.settings.minSpareCols&&!l.settings.columns&&"array"===p.dataType&&r<l.settings.minSpareCols)for(;r<l.settings.minSpareCols&&p.countCols()<l.settings.maxCols;r++)u.createCol(p.countCols(),1,"auto");var i=p.countRows(),s=p.countCols();if(0!==i&&0!==s||h.deselect(),h.isSelected()){var a=!1,c=l.selRange.from.row,d=l.selRange.from.col,f=l.selRange.to.row,m=l.selRange.to.col;c>i-1?(c=i-1,a=!0,f>c&&(f=c)):f>i-1&&(f=i-1,a=!0,c>f&&(c=f)),d>s-1?(d=s-1,a=!0,m>d&&(m=d)):m>s-1&&(m=s-1,a=!0,d>m&&(d=m)),a&&p.selectCell(c,d,f,m)}p.view&&p.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,n,o,r,i,s){var a,u,c,d,h=[],f={};if(u=t.length,0===u)return!1;var m,g,w,v;({row:null===n?null:n.row,col:null===n?null:n.col});switch(r){case"shift_down":for(m=n?n.col-e.col+1:0,g=n?n.row-e.row+1:0,t=ie(t),c=0,d=t.length,w=Math.max(d,m);c<w;c++)if(c<d){for(a=0,u=t[c].length;a<g-u;a++)t[c].push(t[c][a%u]);t[c].unshift(e.col+c,e.row,0),p.spliceCol.apply(p,t[c])}else t[c%d][0]=e.col+c,p.spliceCol.apply(p,t[c%d]);break;case"shift_right":for(m=n?n.col-e.col+1:0,g=n?n.row-e.row+1:0,a=0,u=t.length,v=Math.max(u,g);a<v;a++)if(a<u){for(c=0,d=t[a].length;c<m-d;c++)t[a].push(t[a][c%d]);t[a].unshift(e.row+a,e.col,0),p.spliceRow.apply(p,t[a])}else t[a%u][0]=e.row+a,p.spliceRow.apply(p,t[a%u]);break;case"overwrite":default:f.row=e.row,f.col=e.col;var y,b={row:n&&e?n.row-e.row+1:1,col:n&&e?n.col-e.col+1:1},C=0,_=0,R=!0,M=function(e){var n=void 0!==arguments[1]?arguments[1]:null,o=t[e%t.length];return null!==n?o[n%o.length]:o},S=t.length,E=n?n.row-e.row+1:0;for(u=n?E:Math.max(S,E),a=0;a<u&&!(n&&f.row>n.row&&E>S||!l.settings.allowInsertRow&&f.row>p.countRows()-1||f.row>=l.settings.maxRows);a++){var O=a-C,T=M(O).length,k=n?n.col-e.col+1:0;if(d=n?k:Math.max(T,k),f.col=e.col,y=p.getCellMeta(f.row,f.col),"CopyPaste.paste"!==o&&"Autofill.autofill"!==o||!y.skipRowOnPaste){for(_=0,c=0;c<d&&!(n&&f.col>n.col&&k>T||!l.settings.allowInsertColumn&&f.col>p.countCols()-1||f.col>=l.settings.maxCols);c++)if(y=p.getCellMeta(f.row,f.col),"CopyPaste.paste"!==o&&"Autofill.fill"!==o||!y.skipColumnOnPaste)if(y.readOnly)f.col++;else{var x=c-_,D=M(O,x),H=p.getDataAtCell(f.row,f.col),A={row:O,col:x};if("Autofill.fill"===o){var P=p.runHooks("beforeAutofillInsidePopulate",A,i,t,s,{},b);P&&(D=I(P.value)?D:P.value)}if(null!==D&&"object"==typeof D)if(null===H||"object"!=typeof H)R=!1;else{var N=Y(H[0]||H),L=Y(D[0]||D);$(N,L)?D=z(D):R=!1}else null!==H&&"object"==typeof H&&(R=!1);R&&h.push([f.row,f.col,D]),R=!0,f.col++}else _++,f.col++,d++;f.row++}else C++,f.row++,u++}p.setDataAtCell(h,null,null,o||"populateFromArray")}}},this.selection=h={inProgress:!1,selectedHeader:{cols:!1,rows:!1},setSelectedHeaders:function(){var e=void 0!==arguments[0]&&arguments[0],t=void 0!==arguments[1]&&arguments[1],n=void 0!==arguments[2]&&arguments[2];p.selection.selectedHeader.rows=e,p.selection.selectedHeader.cols=t,p.selection.selectedHeader.corner=n},begin:function(){p.selection.inProgress=!0},finish:function(){var e=p.getSelected();E.hooks.run(p,"afterSelectionEnd",e[0],e[1],e[2],e[3]),E.hooks.run(p,"afterSelectionEndByProp",e[0],p.colToProp(e[1]),e[2],p.colToProp(e[3])),p.selection.inProgress=!1},isInProgress:function(){return p.selection.inProgress},setRangeStart:function(e,t){E.hooks.run(p,"beforeSetRangeStart",e),l.selRange=new ce(e,e,e),h.setRangeEnd(e,null,t)},setRangeStartOnly:function(e){E.hooks.run(p,"beforeSetRangeStartOnly",e),l.selRange=new ce(e,e,e)},setRangeEnd:function(e,t,n){if(null!==l.selRange){var o,r=!1,i=!0,s=p.view.wt.wtTable.getFirstVisibleRow(),a=p.view.wt.wtTable.getFirstVisibleColumn(),c={row:null,col:null};E.hooks.run(p,"beforeSetRangeEnd",e),p.selection.begin(),c.row=e.row<0?s:e.row,c.col=e.col<0?a:e.col,l.selRange.to=new ue(c.row,c.col),l.settings.multiSelect||(l.selRange.from=e),p.view.wt.selections.current.clear(),o=p.getCellMeta(l.selRange.highlight.row,l.selRange.highlight.col).disableVisualSelection,"string"==typeof o&&(o=[o]),(o===!1||Array.isArray(o)&&o.indexOf("current")===-1)&&p.view.wt.selections.current.add(l.selRange.highlight),p.view.wt.selections.area.clear(),(o===!1||Array.isArray(o)&&o.indexOf("area")===-1)&&h.isMultiple()&&(p.view.wt.selections.area.add(l.selRange.from),p.view.wt.selections.area.add(l.selRange.to)),(l.settings.currentHeaderClassName||l.settings.currentRowClassName||l.settings.currentColClassName)&&(p.view.wt.selections.highlight.clear(),p.view.wt.selections.highlight.add(l.selRange.from),p.view.wt.selections.highlight.add(l.selRange.to)),E.hooks.run(p,"afterSelection",l.selRange.from.row,l.selRange.from.col,l.selRange.to.row,l.selRange.to.col),E.hooks.run(p,"afterSelectionByProp",l.selRange.from.row,u.colToProp(l.selRange.from.col),l.selRange.to.row,u.colToProp(l.selRange.to.col)),(0===l.selRange.from.row&&l.selRange.to.row===p.countRows()-1&&p.countRows()>1||0===l.selRange.from.col&&l.selRange.to.col===p.countCols()-1&&p.countCols()>1)&&(r=!0),(e.row<0||e.col<0)&&(i=!1),t!==!1&&!r&&i&&(l.selRange.from&&!h.isMultiple()?p.view.scrollViewport(l.selRange.from):p.view.scrollViewport(e)),h.refreshBorders(null,n)}},refreshBorders:function(e,t){t||f.destroyEditor(e),p.view.render(),h.isSelected()&&!t&&f.prepareEditor()},isMultiple:function(){var e=!(l.selRange.to.col===l.selRange.from.col&&l.selRange.to.row===l.selRange.from.row),t=E.hooks.run(p,"afterIsMultipleSelection",e);if(e)return t},transformStart:function(e,t,n,o){var r,i,s,a,u=new ue(e,t),c=0,d=0;p.runHooks("modifyTransformStart",u),r=p.countRows(),i=p.countCols(),a=p.getSettings().fixedRowsBottom,l.selRange.highlight.row+e>r-1?n&&l.settings.minSpareRows>0&&!(a&&l.selRange.highlight.row>=r-a-1)?(p.alter("insert_row",r),r=p.countRows()):l.settings.autoWrapCol&&(u.row=1-r,u.col=l.selRange.highlight.col+u.col==i-1?1-i:1):l.settings.autoWrapCol&&l.selRange.highlight.row+u.row<0&&l.selRange.highlight.col+u.col>=0&&(u.row=r-1,u.col=l.selRange.highlight.col+u.col==0?i-1:-1),l.selRange.highlight.col+u.col>i-1?n&&l.settings.minSpareCols>0?(p.alter("insert_col",i),i=p.countCols()):l.settings.autoWrapRow&&(u.row=l.selRange.highlight.row+u.row==r-1?1-r:1,u.col=1-i):l.settings.autoWrapRow&&l.selRange.highlight.col+u.col<0&&l.selRange.highlight.row+u.row>=0&&(u.row=l.selRange.highlight.row+u.row==0?r-1:-1,u.col=i-1),s=new ue(l.selRange.highlight.row+u.row,l.selRange.highlight.col+u.col),s.row<0?(c=-1,s.row=0):s.row>0&&s.row>=r&&(c=1,s.row=r-1),s.col<0?(d=-1,s.col=0):s.col>0&&s.col>=i&&(d=1,s.col=i-1),p.runHooks("afterModifyTransformStart",s,c,d),h.setRangeStart(s,o)},transformEnd:function(e,t){var n,o,r,i=new ue(e,t),s=0,a=0;p.runHooks("modifyTransformEnd",i),n=p.countRows(),o=p.countCols(),r=new ue(l.selRange.to.row+i.row,l.selRange.to.col+i.col),r.row<0?(s=-1,r.row=0):r.row>0&&r.row>=n&&(s=1,r.row=n-1),r.col<0?(a=-1,r.col=0):r.col>0&&r.col>=o&&(a=1,r.col=o-1),p.runHooks("afterModifyTransformEnd",r,s,a),h.setRangeEnd(r,!0)},isSelected:function(){return null!==l.selRange},inInSelection:function(e){return!!h.isSelected()&&l.selRange.includes(e)},deselect:function(){h.isSelected()&&(p.selection.inProgress=!1,l.selRange=null,p.view.wt.selections.current.clear(),p.view.wt.selections.area.clear(),(l.settings.currentHeaderClassName||l.settings.currentRowClassName||l.settings.currentColClassName)&&p.view.wt.selections.highlight.clear(),f.destroyEditor(),h.refreshBorders(),H(p.rootElement,["ht__selection--rows","ht__selection--columns"]),E.hooks.run(p,"afterDeselect"))},selectAll:function(){l.settings.multiSelect&&(h.setRangeStart(new ue(0,0)),h.setRangeEnd(new ue(p.countRows()-1,p.countCols()-1),!1))},empty:function(){if(h.isSelected()){var e,t,n=l.selRange.getTopLeftCorner(),o=l.selRange.getBottomRightCorner(),r=[];for(e=n.row;e<=o.row;e++)for(t=n.col;t<=o.col;t++)p.getCellMeta(e,t).readOnly||r.push([e,t,""]);p.setDataAtCell(r)}}},this.init=function(){c.setData(l.settings.data),E.hooks.run(p,"beforeInit"),W()&&k(p.rootElement,"mobile"),this.updateSettings(l.settings,!0),this.view=new ne(this),f=new V(p,l,h,u),this.forceFullRender=!0,E.hooks.run(p,"init"),this.view.render(),"object"==typeof l.firstRun&&(E.hooks.run(p,"afterChange",l.firstRun[0],l.firstRun[1]),l.firstRun=!1),E.hooks.run(p,"afterInit")},this.validateCell=function(e,t,n,o){function r(e){var o=t.visualCol,r=t.visualRow,i=p.getCell(r,o,!0);i&&"TH"!=i.nodeName&&p.view.wt.wtSettings.settings.cellRenderer(r,o,i),n(e)}var i=p.getCellValidator(t);"[object RegExp]"===Object.prototype.toString.call(i)&&(i=function(e){return function(t,n){n(e.test(t))}}(i)),P(i)?(e=E.hooks.run(p,"beforeValidate",e,t.visualRow,t.prop,o),p._registerTimeout(setTimeout(function(){i.call(t,e,function(n){n=E.hooks.run(p,"afterValidate",n,e,t.visualRow,t.prop,o),t.valid=n,r(n),E.hooks.run(p,"postAfterValidate",n,e,t.visualRow,t.prop,o)})},0))):p._registerTimeout(setTimeout(function(){t.valid=!0,r(t.valid)},0))},this.setDataAtCell=function(e,t,n,s){var a,l,d,h=i(e,t,n),f=[];for(a=0,l=h.length;a<l;a++){if("object"!=typeof h[a])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof h[a][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");d=u.colToProp(h[a][1]),f.push([h[a][0],d,c.getAtCell(w.toPhysicalRow(h[a][0]),h[a][1]),h[a][2]])}s||"object"!=typeof e||(s=t),p.runHooks("afterSetDataAtCell",f,s),o(f,s,function(){r(f,s)})},this.setDataAtRowProp=function(e,t,n,s){var a,l,u=i(e,t,n),d=[];for(a=0,l=u.length;a<l;a++)d.push([u[a][0],u[a][1],c.getAtCell(w.toPhysicalRow(u[a][0]),u[a][1]),u[a][2]]);s||"object"!=typeof e||(s=t),p.runHooks("afterSetDataAtRowProp",d,s),o(d,s,function(){r(d,s)})},this.listen=function(){E.activeGuid=p.guid},this.unlisten=function(){E.activeGuid=null},this.isListening=function(){return E.activeGuid===p.guid},this.destroyEditor=function(e){h.refreshBorders(e)},this.populateFromArray=function(e,t,n,o,r,i,s,a,l){var u;if("object"!=typeof n||"object"!=typeof n[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");return u="number"==typeof o?new ue(o,r):null,d.populateFromArray(new ue(e,t),n,u,i,s,a,l)},this.spliceCol=function(e,t,n){return u.spliceCol.apply(u,arguments)},this.spliceRow=function(e,t,n){return u.spliceRow.apply(u,arguments)},this.getSelected=function(){if(h.isSelected())return[l.selRange.from.row,l.selRange.from.col,l.selRange.to.row,l.selRange.to.col]},this.getSelectedRange=function(){if(h.isSelected())return l.selRange},this.render=function(){p.view&&(p.renderCall=!0,p.forceFullRender=!0,h.refreshBorders(null,!0))},this.loadData=function(e){function t(){l.cellSettings.length=0}if(Array.isArray(l.settings.dataSchema)?p.dataType="array":P(l.settings.dataSchema)?p.dataType="function":p.dataType="object",u&&u.destroy(),u=new j(p,l,m),"object"==typeof e&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error("loadData only accepts array of objects or array of arrays ("+typeof e+" given)");e=[];var n,o=0,r=0,i=u.getSchema();for(o=0,r=l.settings.startRows;o<r;o++)if("object"!==p.dataType&&"function"!==p.dataType||!l.settings.dataSchema)if("array"===p.dataType)n=z(i[0]),e.push(n);else{n=[];for(var s=0,a=l.settings.startCols;s<a;s++)n.push(null);e.push(n)}else n=z(i),e.push(n)}l.isPopulated=!1,m.prototype.data=e,Array.isArray(e[0])&&(p.dataType="array"),u.dataSource=e,c.data=e,c.dataType=p.dataType,c.colToProp=u.colToProp.bind(u),c.propToCol=u.propToCol.bind(u),t(),d.adjustRowsAndCols(),E.hooks.run(p,"afterLoadData",l.firstRun),l.firstRun?l.firstRun=[null,"loadData"]:(E.hooks.run(p,"afterChange",null,"loadData"),p.render()),l.isPopulated=!0},this.getData=function(e,t,n,o){return I(e)?u.getAll():u.getRange(new ue(e,t),new ue(n,o),u.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return u.getCopyableText(new ue(e,t),new ue(n,o))},this.getCopyableData=function(e,t){return u.getCopyable(e,u.colToProp(t))},this.getSchema=function(){return u.getSchema()},this.updateSettings=function(e,t){var n,o,r,i=!1;if(L(e.rows))throw new Error('"rows" setting is no longer supported. do you mean startRows, minRows or maxRows?');if(L(e.cols))throw new Error('"cols" setting is no longer supported. do you mean startCols, minCols or maxCols?');for(n in e)"data"!==n&&(E.hooks.getRegistered().indexOf(n)>-1?(P(e[n])||Array.isArray(e[n]))&&p.addHook(n,e[n]):!t&&e.hasOwnProperty(n)&&(m.prototype[n]=e[n]));if(void 0===e.data&&void 0===l.settings.data?p.loadData(null):void 0!==e.data?p.loadData(e.data):void 0!==e.columns&&u.createMap(),r=p.countCols(),e.columns&&P(e.columns)&&(r=p.countSourceCols(),i=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(l.cellSettings.length=0),r>0){var a,c;for(n=0,o=0;n<r;n++)i&&!e.columns(n)||(l.columnSettings[o]=A(m,l.columnsSettingConflicts),a=l.columnSettings[o].prototype,m.prototype.columns&&(c=i?m.prototype.columns(n):m.prototype.columns[o],c&&(U(a,c),U(a,s(c)))),o++)}if(L(e.cell))for(var f in e.cell)if(e.cell.hasOwnProperty(f)){var g=e.cell[f];p.setCellMetaObject(g.row,g.col,g)}E.hooks.run(p,"afterCellMetaReset"),L(e.className)&&(m.prototype.className&&H(p.rootElement,m.prototype.className),e.className&&k(p.rootElement,e.className));var w=p.rootElement.style.height;""!==w&&(w=parseInt(p.rootElement.style.height,10));var v=e.height;if(P(v)&&(v=v()),t){var y=p.rootElement.getAttribute("style");y&&p.rootElement.setAttribute("data-initialstyle",p.rootElement.getAttribute("style"))}if(null===v){var b=p.rootElement.getAttribute("data-initialstyle");b&&(b.indexOf("height")>-1||b.indexOf("overflow")>-1)?p.rootElement.setAttribute("style",b):(p.rootElement.style.height="",p.rootElement.style.overflow="")}else void 0!==v&&(p.rootElement.style.height=v+"px",p.rootElement.style.overflow="hidden");if("undefined"!=typeof e.width){var C=e.width;P(C)&&(C=C()),p.rootElement.style.width=C+"px"}t||(u.clearLengthCache(),p.view&&p.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),E.hooks.run(p,"afterUpdateSettings")),d.adjustRowsAndCols(),p.view&&!l.firstRun&&(p.forceFullRender=!0,h.refreshBorders(null,!0)),t||!p.view||""!==w&&""!==v&&void 0!==v||w===v||p.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=p.getSelected();if(m.prototype.getValue){if(P(m.prototype.getValue))return m.prototype.getValue.call(p);if(e)return p.getData()[e[0]][m.prototype.getValue]}else if(e)return p.getDataAtCell(e[0],e[1])},this.getSettings=function(){return l.settings},this.clear=function(){h.selectAll(),h.empty()},this.alter=function(e,t,n,o,r){d.alter(e,t,n,o,r)},this.getCell=function(e,t,n){return p.view.getCellAtCoords(new ue(e,t),n)},this.getCoords=function(e){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,e)},this.colToProp=function(e){return u.colToProp(e)},this.propToCol=function(e){return u.propToCol(e)},this.toVisualRow=function(e){return w.toVisualRow(e)},this.toVisualColumn=function(e){return w.toVisualColumn(e)},this.toPhysicalRow=function(e){return w.toPhysicalRow(e)},this.toPhysicalColumn=function(e){return w.toPhysicalColumn(e)},this.getDataAtCell=function(e,t){return u.get(e,u.colToProp(t))},this.getDataAtRowProp=function(e,t){return u.get(e,t)},this.getDataAtCol=function(e){var t=[];return t.concat.apply(t,u.getRange(new ue(0,e),new ue(l.settings.data.length-1,e),u.DESTINATION_RENDERER))},this.getDataAtProp=function(e){var t,n=[];return t=u.getRange(new ue(0,u.propToCol(e)),new ue(l.settings.data.length-1,u.propToCol(e)),u.DESTINATION_RENDERER),
n.concat.apply(n,t)},this.getSourceData=function(e,t,n,o){var r;return r=void 0===e?c.getData():c.getByRange(new ue(e,t),new ue(n,o))},this.getSourceDataArray=function(e,t,n,o){var r;return r=void 0===e?c.getData(!0):c.getByRange(new ue(e,t),new ue(n,o),!0)},this.getSourceDataAtCol=function(e){return c.getAtColumn(e)},this.getSourceDataAtRow=function(e){return c.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return c.getAtCell(e,t)},this.getDataAtRow=function(e){var t=u.getRange(new ue(e,0),new ue(e,this.countCols()-1),u.DESTINATION_RENDERER);return t[0]},this.getDataType=function(e,t,n,o){var r=this,i=null,s=null;void 0===e&&(e=0,n=this.countRows(),t=0,o=this.countCols()),void 0===n&&(n=e),void 0===o&&(o=t);var a="mixed";return te(Math.min(e,n),Math.max(e,n),function(e){var n=!0;return te(Math.min(t,o),Math.max(t,o),function(t){var o=r.getCellMeta(e,t);return s=o.type,i?n=i===s:i=s,n}),a=n?s:"mixed",n}),a},this.removeCellMeta=function(e,t,n){var o=p.getCellMeta(e,t);void 0!=o[n]&&delete l.cellSettings[e][t][n]},this.spliceCellsMeta=function(e,t){for(var n,o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];(n=l.cellSettings).splice.apply(n,$traceurRuntime.spread([e,t],o))},this.setCellMetaObject=function(e,t,n){if("object"==typeof n)for(var o in n)if(n.hasOwnProperty(o)){var r=n[o];this.setCellMeta(e,t,o,r)}},this.setCellMeta=function(e,t,n,o){var r;r=w.toPhysical(e,t),e=r[0],t=r[1],r,l.cellSettings[e]||(l.cellSettings[e]=[]),l.cellSettings[e][t]||(l.cellSettings[e][t]=new l.columnSettings[t]),l.cellSettings[e][t][n]=o,E.hooks.run(p,"afterSetCellMeta",e,t,n,o)},this.getCellsMeta=function(){return q(l.cellSettings)},this.getCellMeta=function(e,t){var n,o,r=u.colToProp(t),i=e,a=t;if(n=w.toPhysical(e,t),e=n[0],t=n[1],n,l.columnSettings[t]||(l.columnSettings[t]=A(m,l.columnsSettingConflicts)),l.cellSettings[e]||(l.cellSettings[e]=[]),l.cellSettings[e][t]||(l.cellSettings[e][t]=new l.columnSettings[t]),o=l.cellSettings[e][t],o.row=e,o.col=t,o.visualRow=i,o.visualCol=a,o.prop=r,o.instance=p,E.hooks.run(p,"beforeGetCellMeta",e,t,o),U(o,s(o)),o.cells){var c=o.cells.call(o,e,t,r);c&&(U(o,c),U(o,s(c)))}return E.hooks.run(p,"afterGetCellMeta",e,t,o),o},this.getCellMetaAtRow=function(e){return l.cellSettings[e]},this.isColumnModificationAllowed=function(){return!("object"===p.dataType||p.getSettings().columns)};var v=se("renderer");this.getCellRenderer=function(e,t){var n=v.call(this,e,t);return Q(n)},this.getCellEditor=se("editor"),this.getCellValidator=se("validator"),this.validateCells=function(e){var t=new n;e&&(t.onQueueEmpty=e);for(var o=p.countRows()-1;o>=0;){for(var r=p.countCols()-1;r>=0;)t.addValidatorToQueue(),p.validateCell(p.getDataAtCell(o,r),p.getCellMeta(o,r),function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");e===!1&&(t.valid=!1),t.removeValidatorFormQueue()},"validateCells"),r--;o--}t.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=l.settings.rowHeaders;return void 0!==e&&(e=E.hooks.run(p,"modifyRowHeader",e)),void 0===e?(t=[],te(p.countRows()-1,function(e){t.push(p.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[e]?t=t[e]:P(t)?t=t(e):t&&"string"!=typeof t&&"number"!=typeof t&&(t=e+1),t},this.hasRowHeaders=function(){return!!l.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==l.settings.colHeaders&&null!==l.settings.colHeaders)return!!l.settings.colHeaders;for(var e=0,t=p.countCols();e<t;e++)if(p.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=l.settings.columns&&P(l.settings.columns),n=l.settings.colHeaders;if(e=E.hooks.run(p,"modifyColHeader",e),void 0===e){for(var o=[],r=t?p.countSourceCols():p.countCols(),i=0;i<r;i++)o.push(p.getColHeader(i));n=o}else{var s=function(e){for(var t=[],n=p.countSourceCols(),o=0;o<n;o++)P(p.getSettings().columns)&&p.getSettings().columns(o)&&t.push(o);return t[e]},a=e;e=E.hooks.run(p,"modifyCol",e);var u=s(e);l.settings.columns&&P(l.settings.columns)&&l.settings.columns(u)&&l.settings.columns(u).title?n=l.settings.columns(u).title:l.settings.columns&&l.settings.columns[e]&&l.settings.columns[e].title?n=l.settings.columns[e].title:Array.isArray(l.settings.colHeaders)&&void 0!==l.settings.colHeaders[e]?n=l.settings.colHeaders[e]:P(l.settings.colHeaders)?n=l.settings.colHeaders(e):l.settings.colHeaders&&"string"!=typeof l.settings.colHeaders&&"number"!=typeof l.settings.colHeaders&&(n=ae(a))}return n},this._getColWidthFromSettings=function(e){var t=p.getCellMeta(0,e),n=t.width;if(void 0!==n&&n!==l.settings.width||(n=t.colWidths),void 0!==n&&null!==n){switch(typeof n){case"object":n=n[e];break;case"function":n=n(e)}"string"==typeof n&&(n=parseInt(n,10))}return n},this.getColWidth=function(e){var t=p._getColWidthFromSettings(e);return t=E.hooks.run(p,"modifyColWidth",t,e),void 0===t&&(t=de.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=l.settings.rowHeights;if(void 0!==t&&null!==t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e){var t=p._getRowHeightFromSettings(e);return t=E.hooks.run(p,"modifyRowHeight",t,e)},this.countSourceRows=function(){var e=E.hooks.run(p,"modifySourceLength");return e||(p.getSourceData()?p.getSourceData().length:0)},this.countSourceCols=function(){var e=0,t=p.getSourceData()&&p.getSourceData()[0]?p.getSourceData()[0]:[];return e=G(t)?K(t):t.length||0},this.countRows=function(){return u.getLength()},this.countCols=function(){var e=!1,t=0;if("array"===p.dataType&&(e=l.settings.data&&l.settings.data[0]&&l.settings.data[0].length),e&&(t=l.settings.data[0].length),l.settings.columns){var n=P(l.settings.columns);if(n)if("array"===p.dataType){for(var o=0,r=0;r<t;r++)l.settings.columns(r)&&o++;t=o}else"object"!==p.dataType&&"function"!==p.dataType||(t=u.colToPropCache.length);else t=l.settings.columns.length}else"object"!==p.dataType&&"function"!==p.dataType||(t=u.colToPropCache.length);return t},this.rowOffset=function(){return p.view.wt.wtTable.getFirstRenderedRow()},this.colOffset=function(){return p.view.wt.wtTable.getFirstRenderedColumn()},this.countRenderedRows=function(){return p.view.wt.drawn?p.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return p.view.wt.drawn?p.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return p.view.wt.drawn?p.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return p.view.wt.drawn?p.view.wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(e){for(var t,n=p.countRows()-1,o=0;n>=0;){if(t=E.hooks.run(this,"modifyRow",n),p.isEmptyRow(t))o++;else if(e)break;n--}return o},this.countEmptyCols=function(e){if(p.countRows()<1)return 0;for(var t=p.countCols()-1,n=0;t>=0;){if(p.isEmptyCol(t))n++;else if(e)break;t--}return n},this.isEmptyRow=function(e){return l.settings.isEmptyRow.call(p,e)},this.isEmptyCol=function(e){return l.settings.isEmptyCol.call(p,e)},this.selectCell=function(e,t,n,o,r,i){var s;if(i=I(i)||i===!0,"number"!=typeof e||e<0||e>=p.countRows())return!1;if("number"!=typeof t||t<0||t>=p.countCols())return!1;if(L(n)){if("number"!=typeof n||n<0||n>=p.countRows())return!1;if("number"!=typeof o||o<0||o>=p.countCols())return!1}return s=new ue(e,t),l.selRange=new ce(s,s,s),i&&p.listen(),I(n)?h.setRangeEnd(l.selRange.from,r):h.setRangeEnd(new ue(n,o),r),p.selection.finish(),!0},this.selectCellByProp=function(e,t,n,o,r){return arguments[1]=u.propToCol(arguments[1]),L(arguments[3])&&(arguments[3]=u.propToCol(arguments[3])),p.selectCell.apply(p,arguments)},this.deselectCell=function(){h.deselect()},this.scrollViewportTo=function(e,t){var n=void 0!==arguments[2]&&arguments[2],o=void 0!==arguments[3]&&arguments[3];if(void 0!==e&&(e<0||e>=p.countRows()))return!1;if(void 0!==t&&(t<0||t>=p.countCols()))return!1;var r=!1;return void 0!==e&&void 0!==t&&(p.view.wt.wtOverlays.topOverlay.scrollTo(e,n),p.view.wt.wtOverlays.leftOverlay.scrollTo(t,o),r=!0),"number"==typeof e&&"number"!=typeof t&&(p.view.wt.wtOverlays.topOverlay.scrollTo(e,n),r=!0),"number"==typeof t&&"number"!=typeof e&&(p.view.wt.wtOverlays.leftOverlay.scrollTo(t,o),r=!0),r},this.destroy=function(){p._clearTimeouts(),p.view&&p.view.destroy(),c&&c.destroy(),c=null,x(p.rootElement),g.destroy(),E.hooks.run(p,"afterDestroy"),E.hooks.destroy(p);for(var e in p)p.hasOwnProperty(e)&&(P(p[e])?p[e]=a:"guid"!==e&&(p[e]=null));u&&u.destroy(),u=null,l=null,d=null,h=null,f=null,p=null,m=null},this.getActiveEditor=function(){return f.getActiveEditor()},this.getPlugin=function(e){return J(this,e)},this.getInstance=function(){return p},this.addHook=function(e,t){E.hooks.add(e,t,p)},this.hasHook=function(e){return E.hooks.has(e,p)},this.addHookOnce=function(e,t){E.hooks.once(e,t,p)},this.removeHook=function(e,t){E.hooks.remove(e,t,p)},this.runHooks=function(e,t,n,o,r,i,s){return E.hooks.run(p,e,t,n,o,r,i,s)},this.timeouts=[],this._registerTimeout=function(e){this.timeouts.push(e)},this._clearTimeouts=function(){for(var e=0,t=this.timeouts.length;e<t;e++)clearTimeout(this.timeouts[e])},this.version=E.version,E.hooks.run(p,"construct")};var he=function(){};he.prototype={data:void 0,dataSchema:void 0,width:void 0,height:void 0,startRows:5,startCols:5,rowHeaders:void 0,colHeaders:null,colWidths:void 0,rowHeights:void 0,columns:void 0,cells:void 0,cell:[],comments:!1,customBorders:!1,minRows:0,minCols:0,maxRows:1/0,maxCols:1/0,minSpareRows:0,minSpareCols:0,allowInsertRow:!0,allowInsertColumn:!0,allowRemoveRow:!0,allowRemoveColumn:!0,multiSelect:!0,fillHandle:!0,fixedRowsTop:0,fixedRowsBottom:0,fixedColumnsLeft:0,outsideClickDeselects:!0,enterBeginsEditing:!0,enterMoves:{row:1,col:0},tabMoves:{row:0,col:1},autoWrapRow:!1,autoWrapCol:!1,copyRowsLimit:1e3,copyColsLimit:1e3,pasteMode:"overwrite",persistentState:void 0,currentRowClassName:void 0,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",className:void 0,tableClassName:void 0,stretchH:"none",isEmptyRow:function(e){var t,n,o,r;for(t=0,n=this.countCols();t<n;t++)if(o=this.getDataAtCell(e,t),""!==o&&null!==o&&L(o))return"object"==typeof o&&(r=this.getCellMeta(e,t),$(this.getSchema()[r.prop],o));return!0},isEmptyCol:function(e){var t,n,o;for(t=0,n=this.countRows();t<n;t++)if(o=this.getDataAtCell(t,e),""!==o&&null!==o&&L(o))return!1;return!0},observeDOMVisibility:!0,allowInvalid:!0,allowEmpty:!0,invalidCellClassName:"htInvalid",placeholder:!1,placeholderCellClassName:"htPlaceholder",readOnlyCellClassName:"htDimmed",renderer:void 0,commentedCellClassName:"htCommentCell",fragmentSelection:!1,readOnly:!1,skipColumnOnPaste:!1,search:!1,type:"text",copyable:!0,editor:void 0,autoComplete:void 0,visibleRows:10,trimDropdown:!0,debug:!1,wordWrap:!0,noWordWrapClassName:"htNoWrap",contextMenu:void 0,contextMenuCopyPaste:void 0,copyPaste:void 0,undo:void 0,columnSorting:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,mergeCells:!1,viewportRowRenderingOffset:"auto",viewportColumnRenderingOffset:"auto",validator:void 0,disableVisualSelection:!1,sortIndicator:void 0,manualColumnFreeze:void 0,trimWhitespace:!0,settings:void 0,source:void 0,title:void 0,checkedTemplate:void 0,uncheckedTemplate:void 0,label:void 0,format:void 0,language:void 0,selectOptions:void 0,autoColumnSize:void 0,autoRowSize:void 0,dateFormat:void 0,correctFormat:!1,defaultDate:void 0,strict:void 0,allowHtml:!1,renderAllRows:void 0,preventOverflow:!1,bindRowsWithHeaders:void 0,collapsibleColumns:void 0,columnSummary:void 0,dropdownMenu:void 0,filters:void 0,formulas:void 0,ganttChart:void 0,headerTooltips:void 0,hiddenColumns:void 0,hiddenRows:void 0,nestedHeaders:void 0,trimRows:void 0,rowHeaderWidth:void 0,columnHeaderHeight:void 0,observeChanges:void 0,sortFunction:void 0,sortByRelevance:!0,filter:!0,filteringCaseSensitive:!1},E.DefaultSettings=he},{"3rdparty/walkontable/src/calculator/viewportColumns":4,"3rdparty/walkontable/src/cell/coords":6,"3rdparty/walkontable/src/cell/range":7,browser:24,dataMap:27,dataSource:28,editorManager:29,eventManager:42,"helpers/array":43,"helpers/browser":44,"helpers/data":45,"helpers/dom/element":47,"helpers/function":50,"helpers/mixed":51,"helpers/number":52,"helpers/object":53,"helpers/setting":54,"helpers/string":55,numbro:"numbro",plugins:61,renderers:117,tableView:126,"utils/recordTranslator":130}],27:[function(e,t,n){"use strict";function o(e,t,n){var o=this;this.instance=e,this.priv=t,this.GridSettings=n,this.dataSource=this.instance.getSettings().data,this.cachedLength=null,this.skipCache=!1,this.latestSourceRowsCount=0,this.dataSource&&this.dataSource[0]?this.duckSchema=this.recursiveDuckSchema(this.dataSource[0]):this.duckSchema={},this.createMap(),this.interval=O.create(function(){return o.clearLengthCache()},"15fps"),this.instance.addHook("skipLengthCache",function(e){return o.onSkipLengthCache(e)})}Object.defineProperties(n,{DataMap:{get:function(){return o}},__esModule:{value:!0}});var r,i,s,a,l,u,c,d,h,f=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,p=(i=e("SheetClip"),i&&i.__esModule&&i||{default:i}).default,m=(s=e("helpers/data"),s&&s.__esModule&&s||{default:s}).cellMethodLookupFactory,g=(a=e("helpers/setting"),a&&a.__esModule&&a||{default:a}).columnFactory,w=(l=e("helpers/object"),l&&l.__esModule&&l||{default:l}),v=w.createObjectPropListener,y=w.duckSchema,b=w.deepExtend,C=w.deepClone,_=w.isObject,R=w.deepObjectSize,M=(u=e("helpers/array"),u&&u.__esModule&&u||{default:u}),S=M.extendArray,E=M.to2dArray,O=(c=e("utils/interval"),c&&c.__esModule&&c||{default:c}).Interval,T=(d=e("helpers/number"),d&&d.__esModule&&d||{default:d}).rangeEach,k=(h=e("multiMap"),h&&h.__esModule&&h||{default:h}).MultiMap;o.prototype.DESTINATION_RENDERER=1,o.prototype.DESTINATION_CLIPBOARD_GENERATOR=2,o.prototype.recursiveDuckSchema=function(e){return y(e)},o.prototype.recursiveDuckColumns=function(e,t,n){var o,r;if("undefined"==typeof t&&(t=0,n=""),"object"==typeof e&&!Array.isArray(e))for(r in e)e.hasOwnProperty(r)&&(null===e[r]?(o=n+r,this.colToPropCache.push(o),this.propToColCache.set(o,t),t++):t=this.recursiveDuckColumns(e[r],t,r+"."));return t},o.prototype.createMap=function(){var e,t=this.getSchema();if("undefined"==typeof t)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");this.colToPropCache=[],this.propToColCache=new k;var n=this.instance.getSettings().columns;if(n){var o=n.length,r=0,i=!1,s=R(t);for("function"==typeof n&&(o=s>0?s:this.instance.countSourceCols(),i=!0),e=0;e<o;e++){var a=i?n(e):n[e];if(_(a)){if("undefined"!=typeof a.data){var l=i?r:e;this.colToPropCache[l]=a.data,this.propToColCache.set(a.data,l)}r++}}}else this.recursiveDuckColumns(t)},o.prototype.colToProp=function(e){return e=f.hooks.run(this.instance,"modifyCol",e),this.colToPropCache&&"undefined"!=typeof this.colToPropCache[e]?this.colToPropCache[e]:e},o.prototype.propToCol=function(e){var t;return t="undefined"==typeof this.propToColCache.get(e)?e:this.propToColCache.get(e),t=f.hooks.run(this.instance,"unmodifyCol",t)},o.prototype.getSchema=function(){var e=this.instance.getSettings().dataSchema;return e?"function"==typeof e?e():e:this.duckSchema},o.prototype.createRow=function(e,t,n){var o,r,i=this.instance.countCols(),s=0;t||(t=1),("number"!=typeof e||e>=this.instance.countSourceRows())&&(e=this.instance.countSourceRows()),f.hooks.run(this.instance,"beforeCreateRow",e,t,n),r=e;for(var a=this.instance.getSettings().maxRows;s<t&&this.instance.countSourceRows()<a;)"array"===this.instance.dataType?this.instance.getSettings().dataSchema?o=C(this.getSchema()):(o=[],T(i-1,function(){return o.push(null)})):"function"===this.instance.dataType?o=this.instance.getSettings().dataSchema(e):(o={},b(o,this.getSchema())),e===this.instance.countSourceRows()?this.dataSource.push(o):this.spliceData(e,0,o),s++,r++;return f.hooks.run(this.instance,"afterCreateRow",e,s,n),this.instance.forceFullRender=!0,s},o.prototype.createCol=function(e,t,n){if(!this.instance.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");var o,r,i=this.instance.countSourceRows(),s=this.dataSource,a=0;t||(t=1),("number"!=typeof e||e>=this.instance.countCols())&&(e=this.instance.countCols()),f.hooks.run(this.instance,"beforeCreateCol",e,t,n),r=e;for(var l=this.instance.getSettings().maxCols;a<t&&this.instance.countCols()<l;){if(o=g(this.GridSettings,this.priv.columnsSettingConflicts),"number"!=typeof e||e>=this.instance.countCols()){if(i>0)for(var u=0;u<i;u++)"undefined"==typeof s[u]&&(s[u]=[]),s[u].push(null);else s.push([null]);this.priv.columnSettings.push(o)}else{for(var u=0;u<i;u++)s[u].splice(r,0,null);this.priv.columnSettings.splice(r,0,o)}a++,r++}return f.hooks.run(this.instance,"afterCreateCol",e,a,n),this.instance.forceFullRender=!0,a},o.prototype.removeRow=function(e,t,n){t||(t=1),"number"!=typeof e&&(e=-t),t=f.hooks.run(this.instance,"modifyRemovedAmount",t,e),e=(this.instance.countSourceRows()+e)%this.instance.countSourceRows();var o=this.physicalRowsToLogical(e,t),r=f.hooks.run(this.instance,"beforeRemoveRow",e,t,o,n);if(r!==!1){var i,s=this.dataSource;i=this.filterData(e,t),i&&(s.length=0,Array.prototype.push.apply(s,i)),f.hooks.run(this.instance,"afterRemoveRow",e,t,o,n),this.instance.forceFullRender=!0}},o.prototype.removeCol=function(e,t,n){if("object"===this.instance.dataType||this.instance.getSettings().columns)throw new Error("cannot remove column with object data source or columns option specified");t||(t=1),"number"!=typeof e&&(e=-t),e=(this.instance.countCols()+e)%this.instance.countCols();var o=this.physicalColumnsToLogical(e,t),r=o.slice(0).sort(function(e,t){return t-e}),i=f.hooks.run(this.instance,"beforeRemoveCol",e,t,o,n);if(i!==!1){for(var s=!0,a=r.length,l=this.dataSource,u=0;u<a;u++)s&&o[0]!==o[u]-u&&(s=!1);if(s)for(var c=0,d=this.instance.countSourceRows();c<d;c++)l[c].splice(o[0],t);else{for(var h=0,p=this.instance.countSourceRows();h<p;h++)for(var m=0;m<a;m++)l[h].splice(r[m],1);for(var g=0;g<a;g++)this.priv.columnSettings.splice(o[g],1)}f.hooks.run(this.instance,"afterRemoveCol",e,t,o,n),this.instance.forceFullRender=!0}},o.prototype.spliceCol=function(e,t,n){var o=4<=arguments.length?[].slice.call(arguments,3):[],r=this.instance.getDataAtCol(e),i=r.slice(t,t+n),s=r.slice(t+n);S(o,s);for(var a=0;a<n;)o.push(null),a++;return E(o),this.instance.populateFromArray(t,e,o,null,null,"spliceCol"),i},o.prototype.spliceRow=function(e,t,n){var o=4<=arguments.length?[].slice.call(arguments,3):[],r=this.instance.getSourceDataAtRow(e),i=r.slice(t,t+n),s=r.slice(t+n);S(o,s);for(var a=0;a<n;)o.push(null),a++;return this.instance.populateFromArray(e,t,[o],null,null,"spliceRow"),i},o.prototype.spliceData=function(e,t,n){var o=f.hooks.run(this.instance,"beforeDataSplice",e,t,n);o!==!1&&this.dataSource.splice(e,t,n)},o.prototype.filterData=function(e,t){var n=this.physicalRowsToLogical(e,t),o=f.hooks.run(this.instance,"beforeDataFilter",e,t,n);if(o!==!1){var r=this.dataSource.filter(function(e,t){return n.indexOf(t)==-1});return r}},o.prototype.get=function(e,t){e=f.hooks.run(this.instance,"modifyRow",e);var n=this.dataSource[e],o=f.hooks.run(this.instance,"modifyRowData",e);n=isNaN(o)?o:n;var r=null;if(n&&n.hasOwnProperty&&n.hasOwnProperty(t))r=n[t];else if("string"==typeof t&&t.indexOf(".")>-1){var i=t.split("."),s=n;if(!s)return null;for(var a=0,l=i.length;a<l;a++)if(s=s[i[a]],"undefined"==typeof s)return null;r=s}else"function"==typeof t&&(r=t(this.dataSource.slice(e,e+1)[0]));if(f.hooks.has("modifyData",this.instance)){var u=v(r);f.hooks.run(this.instance,"modifyData",e,this.propToCol(t),u,"get"),u.isTouched()&&(r=u.value)}return r};var x=m("copyable",!1);o.prototype.getCopyable=function(e,t){return x.call(this.instance,e,this.propToCol(t))?this.get(e,t):""},o.prototype.set=function(e,t,n,o){e=f.hooks.run(this.instance,"modifyRow",e,o||"datamapGet");var r=this.dataSource[e],i=f.hooks.run(this.instance,"modifyRowData",e);if(r=isNaN(i)?i:r,f.hooks.has("modifyData",this.instance)){var s=v(n);f.hooks.run(this.instance,"modifyData",e,this.propToCol(t),s,"set"),s.isTouched()&&(n=s.value)}if(r&&r.hasOwnProperty&&r.hasOwnProperty(t))r[t]=n;else if("string"==typeof t&&t.indexOf(".")>-1){for(var a=t.split("."),l=r,u=0,c=a.length-1;u<c;u++)"undefined"==typeof l[a[u]]&&(l[a[u]]={}),l=l[a[u]];l[a[u]]=n}else"function"==typeof t?t(this.dataSource.slice(e,e+1)[0],n):r[t]=n},o.prototype.physicalRowsToLogical=function(e,t){for(var n,o=this.instance.countSourceRows(),r=(o+e)%o,i=[],s=t;r<o&&s;)n=f.hooks.run(this.instance,"modifyRow",r),i.push(n),s--,r++;return i},o.prototype.physicalColumnsToLogical=function(e,t){for(var n=this.instance.countCols(),o=(n+e)%n,r=[],i=t;o<n&&i;){var s=f.hooks.run(this.instance,"modifyCol",o);r.push(s),i--,o++}return r},o.prototype.clear=function(){for(var e=0;e<this.instance.countSourceRows();e++)for(var t=0;t<this.instance.countCols();t++)this.set(e,this.colToProp(t),"")},o.prototype.clearLengthCache=function(){this.cachedLength=null},o.prototype.getLength=function(){var e,t=this,n=this.instance.getSettings().maxRows;e=n<0||0===n?0:n||1/0;var o=this.instance.countSourceRows();if(f.hooks.has("modifyRow",this.instance)){var r=this.skipCache;this.interval.start(),o!==this.latestSourceRowsCount&&(r=!0),this.latestSourceRowsCount=o,null===this.cachedLength||r?(T(o-1,function(e){e=f.hooks.run(t.instance,"modifyRow",e),null===e&&--o}),this.cachedLength=o):o=this.cachedLength}else this.interval.stop();return Math.min(o,e)},o.prototype.getAll=function(){var e={row:0,col:0},t=this.instance.getSettings().maxRows;if(0===t)return[];var n={row:Math.min(Math.max(t-1,0),Math.max(this.instance.countSourceRows()-1,0)),col:Math.max(this.instance.countCols()-1,0)};return e.row-n.row!==0||this.instance.countSourceRows()?this.getRange(e,n,o.prototype.DESTINATION_RENDERER):[]},o.prototype.getRange=function(e,t,n){var o,r,i,s,a,l=[],u=n===this.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get;for(r=Math.max(e.row,t.row),s=Math.max(e.col,t.col),o=Math.min(e.row,t.row);o<=r;o++){a=[];var c=f.hooks.run(this.instance,"modifyRow",o);for(i=Math.min(e.col,t.col);i<=s&&null!==c;i++)a.push(u.call(this,o,this.colToProp(i)));null!==c&&l.push(a)}return l},o.prototype.getText=function(e,t){return p.stringify(this.getRange(e,t,this.DESTINATION_RENDERER))},o.prototype.getCopyableText=function(e,t){return p.stringify(this.getRange(e,t,this.DESTINATION_CLIPBOARD_GENERATOR))},o.prototype.onSkipLengthCache=function(e){var t=this;this.skipCache=!0,setTimeout(function(){t.skipCache=!1},e)},o.prototype.destroy=function(){this.interval.stop(),this.interval=null,this.instance=null,this.priv=null,this.GridSettings=null,this.dataSource=null,this.cachedLength=null,this.duckSchema=null}},{SheetClip:"SheetClip",browser:24,"helpers/array":43,"helpers/data":45,"helpers/number":52,"helpers/object":53,"helpers/setting":54,multiMap:59,"utils/interval":129}],28:[function(e,t,n){"use strict";Object.defineProperties(n,{DataSource:{get:function(){return u}},__esModule:{value:!0}});var o,r,i,s=(o=e("helpers/object"),o&&o.__esModule&&o||{default:o}).getProperty,a=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}).arrayEach,l=(i=e("helpers/number"),i&&i.__esModule&&i||{default:i}).rangeEach,u=function(e){var t=void 0!==arguments[1]?arguments[1]:[];this.hot=e,this.data=t,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}};$traceurRuntime.createClass(u,{getData:function(){var e=void 0!==arguments[0]&&arguments[0],t=this.data;return e&&(t=this.getByRange({row:0,col:0},{row:Math.max(this.countRows()-1,0),col:Math.max(this.countColumns()-1,0)},!0)),t},setData:function(e){this.data=e},getAtColumn:function(e){var t=this,n=[];return a(this.data,function(o){var r=t.colToProp(e);o="string"==typeof r?s(o,r):o[r],n.push(o)}),n},getAtRow:function(e){return this.data[e]},getAtCell:function(e,t){var n=null,o=this.hot.runHooks("modifyRowData",e),r=isNaN(o)?o:this.data[e];if(r){var i=this.colToProp(t);n="string"==typeof i?s(r,i):"function"==typeof i?i(this.data.slice(e,e+1)[0]):r[i]}return n},getByRange:function(e,t){var n=void 0!==arguments[2]&&arguments[2],o=this,r=Math.min(e.row,t.row),i=Math.min(e.col,t.col),s=Math.max(e.row,t.row),a=Math.max(e.col,t.col),u=[];return l(r,s,function(e){var t,r=o.getAtRow(e);"array"===o.dataType?t=r.slice(i,a+1):"object"===o.dataType&&(t=n?[]:{},l(i,a,function(e){var i=o.colToProp(e);n?t.push(r[i]):t[i]=r[i]})),u.push(t)}),u},countRows:function(){return Array.isArray(this.data)?this.data.length:0},countColumns:function(){var e=0;return Array.isArray(this.data)&&("array"===this.dataType?e=this.data[0].length:"object"===this.dataType&&(e=Object.keys(this.data[0]).length)),e},destroy:function(){this.data=null,this.hot=null}},{})},{"helpers/array":43,"helpers/number":52,"helpers/object":53}],29:[function(e,t,n){"use strict";function o(e,t,n){function o(e){var o="function"==typeof t.settings.enterMoves?t.settings.enterMoves(event):t.settings.enterMoves;e?n.transformStart(-o.row,-o.col):n.transformStart(o.row,o.col,!0)}function r(e){e?n.transformEnd(-1,0):n.transformStart(-1,0)}function i(e){e?n.transformEnd(1,0):n.transformStart(1,0)}function s(e){e?n.transformEnd(0,1):n.transformStart(0,1)}function a(e){e?n.transformEnd(0,-1):n.transformStart(0,-1)}function l(l){var u,h;if(e.isListening()&&(c.hooks.run(e,"beforeKeyDown",l),!_&&!y(l)&&(t.lastKeyCode=l.keyCode,n.isSelected()))){if(u=(l.ctrlKey||l.metaKey)&&!l.altKey,g&&!g.isWaiting()&&!(p(l.keyCode)||m(l.keyCode)||u||C.isEditorOpened()))return void C.openEditor("",l);switch(h=l.shiftKey?n.setRangeEnd:n.setRangeStart,l.keyCode){case f.A:!C.isEditorOpened()&&u&&(n.selectAll(),l.preventDefault(),w(l));break;case f.ARROW_UP:C.isEditorOpened()&&!g.isWaiting()&&C.closeEditorAndSaveChanges(u),r(l.shiftKey),l.preventDefault(),w(l);break;case f.ARROW_DOWN:C.isEditorOpened()&&!g.isWaiting()&&C.closeEditorAndSaveChanges(u),i(l.shiftKey),l.preventDefault(),w(l);break;case f.ARROW_RIGHT:C.isEditorOpened()&&!g.isWaiting()&&C.closeEditorAndSaveChanges(u),s(l.shiftKey),l.preventDefault(),w(l);break;case f.ARROW_LEFT:C.isEditorOpened()&&!g.isWaiting()&&C.closeEditorAndSaveChanges(u),a(l.shiftKey),l.preventDefault(),w(l);break;case f.TAB:var b="function"==typeof t.settings.tabMoves?t.settings.tabMoves(l):t.settings.tabMoves;l.shiftKey?n.transformStart(-b.row,-b.col):n.transformStart(b.row,b.col,!0),l.preventDefault(),w(l);break;case f.BACKSPACE:case f.DELETE:n.empty(l),C.prepareEditor(),l.preventDefault();break;case f.F2:C.openEditor(null,l),g&&g.enableFullEditMode(),l.preventDefault();break;case f.ENTER:C.isEditorOpened()?(g&&g.state!==c.EditorState.WAITING&&C.closeEditorAndSaveChanges(u),o(l.shiftKey)):e.getSettings().enterBeginsEditing?(C.openEditor(null,l),g&&g.enableFullEditMode()):o(l.shiftKey),l.preventDefault(),v(l);break;case f.ESCAPE:C.isEditorOpened()&&C.closeEditorAndRestoreOriginalValue(u),l.preventDefault();break;case f.HOME:h(l.ctrlKey||l.metaKey?new d(0,t.selRange.from.col):new d(t.selRange.from.row,0)),l.preventDefault(),w(l);break;case f.END:h(l.ctrlKey||l.metaKey?new d(e.countRows()-1,t.selRange.from.col):new d(t.selRange.from.row,e.countCols()-1)),l.preventDefault(),w(l);break;case f.PAGE_UP:n.transformStart(-e.countVisibleRows(),0),l.preventDefault(),w(l);break;case f.PAGE_DOWN:n.transformStart(e.countVisibleRows(),0),l.preventDefault(),w(l)}}}function u(){function t(e,t,n){"TD"==n.nodeName&&(C.openEditor(),g&&g.enableFullEditMode())}e.addHook("afterDocumentKeyDown",l),h.addEventListener(document.documentElement,"keydown",function(t){_||e.runHooks("afterDocumentKeyDown",t)}),e.view.wt.update("onCellDblClick",t),e.addHook("afterDestroy",function(){_=!0})}var h,g,C=this,_=!1;h=b(e),this.destroyEditor=function(e){this.closeEditor(e)},this.getActiveEditor=function(){return g},this.prepareEditor=function(){var n,o,r,i,s,a,l;return g&&g.isWaiting()?void this.closeEditor(!1,!1,function(e){e&&C.prepareEditor()}):(n=t.selRange.highlight.row,o=t.selRange.highlight.col,r=e.colToProp(o),i=e.getCell(n,o),s=e.getSourceDataAtCell(e.runHooks("modifyRow",n),o),a=e.getCellMeta(n,o),l=e.getCellEditor(a),void(l?(g=c.editors.getEditor(l,e),g.prepare(n,o,r,i,s,a)):g=void 0))},this.isEditorOpened=function(){return g&&g.isOpened()},this.openEditor=function(e,t){g&&!g.cellProperties.readOnly?g.beginEditing(e,t):g&&g.cellProperties.readOnly&&t&&t.keyCode===f.ENTER&&o()},this.closeEditor=function(e,t,n){g?g.finishEditing(e,t,n):n&&n(!1)},this.closeEditorAndSaveChanges=function(e){return this.closeEditor(!1,e)},this.closeEditorAndRestoreOriginalValue=function(e){return this.closeEditor(!0,e)},u()}Object.defineProperties(n,{EditorManager:{get:function(){return o}},__esModule:{value:!0}});var r,i,s,a,l,u,c=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,d=(i=e("3rdparty/walkontable/src/cell/coords"),i&&i.__esModule&&i||{default:i}).WalkontableCellCoords,h=(s=e("helpers/unicode"),s&&s.__esModule&&s||{default:s}),f=h.KEY_CODES,p=h.isMetaKey,m=h.isCtrlKey,g=(a=e("helpers/dom/event"),a&&a.__esModule&&a||{default:a}),w=g.stopPropagation,v=g.stopImmediatePropagation,y=g.isImmediatePropagationStopped,b=((l=e("editors"),l&&l.__esModule&&l||{default:l}).getEditor,(u=e("eventManager"),u&&u.__esModule&&u||{default:u}).eventManager);c.EditorManager=o},{"3rdparty/walkontable/src/cell/coords":6,browser:24,editors:30,eventManager:42,"helpers/dom/event":48,"helpers/unicode":56}],30:[function(e,t,n){"use strict";function o(e){var t,n;n={},t=e,this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in n||(n[e.guid]=new t(e)),n[e.guid]}}function r(e,t){var n=new o(t);"string"==typeof e&&(h[e]=n,c.editors[d(e)+"Editor"]=t),f.set(t,n)}function i(e,t){var n;if("function"==typeof e)f.get(e)||r(null,e),n=f.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter ');n=h[e]}if(!n)throw Error('No editor registered under name "'+e+'"');return n.getInstance(t)}function s(e){var t;if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter ');if(t=h[e],!t)throw Error('No editor registered under name "'+e+'"');return t.getConstructor()}function a(e){return!!h[e]}Object.defineProperties(n,{registerEditor:{get:function(){return r}},getEditor:{get:function(){return i}},hasEditor:{get:function(){return a}},getEditorConstructor:{get:function(){return s}},__esModule:{value:!0}});var l,u,c=(l=e("browser"),l&&l.__esModule&&l||{default:l}).default,d=(u=e("helpers/string"),u&&u.__esModule&&u||{default:u}).toUpperCaseFirst,h={},f=new WeakMap;c.editors=c.editors||{},c.editors.registerEditor=r,c.editors.getEditor=i},{browser:24,"helpers/string":55}],31:[function(e,t,n){"use strict";function o(e){this.instance=e,this.state=a.EditorState.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}Object.defineProperties(n,{BaseEditor:{get:function(){return o}},__esModule:{value:!0}});var r,i,s,a=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,l=(i=e("helpers/mixed"),i&&i.__esModule&&i||{default:i}).stringify,u=(s=e("3rdparty/walkontable/src/cell/coords"),s&&s.__esModule&&s||{default:s}).WalkontableCellCoords;a.editors=a.editors||{},a.editors.BaseEditor=o,a.EditorState={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"},o.prototype._fireCallbacks=function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)},o.prototype.init=function(){},o.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},o.prototype.setValue=function(e){throw Error("Editor setValue() method unimplemented")},o.prototype.open=function(){throw Error("Editor open() method unimplemented")},o.prototype.close=function(){throw Error("Editor close() method unimplemented");
},o.prototype.prepare=function(e,t,n,o,r,i){this.TD=o,this.row=e,this.col=t,this.prop=n,this.originalValue=r,this.cellProperties=i;var s=!document.activeElement||document.activeElement&&void 0===document.activeElement.nodeName;this.instance.view.isMouseDown()&&document.activeElement&&document.activeElement!==document.body&&!s?document.activeElement.blur():s&&document.body.focus(),this.state=a.EditorState.VIRGIN},o.prototype.extend=function(){function e(){n.apply(this,arguments)}function t(e,t){function n(){}return n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e}var n=this.constructor;return t(e,n)},o.prototype.saveValue=function(e,t){var n,o;t?(n=this.instance.getSelected(),n[0]>n[2]&&(o=n[0],n[0]=n[2],n[2]=o),n[1]>n[3]&&(o=n[1],n[1]=n[3],n[3]=o)):n=[this.row,this.col,null,null],this.instance.populateFromArray(n[0],n[1],e,n[2],n[3],"edit")},o.prototype.beginEditing=function(e,t){this.state==a.EditorState.VIRGIN&&(this.instance.view.scrollViewport(new u(this.row,this.col)),this.instance.view.render(),this.state=a.EditorState.EDITING,e="string"==typeof e?e:this.originalValue,this.setValue(l(e)),this.open(t),this._opened=!0,this.focus(),this.instance.view.render(),this.instance.runHooks("afterBeginEditing",this.row,this.col))},o.prototype.finishEditing=function(e,t,n){var o,r=this;if(n){var i=this._closeCallback;this._closeCallback=function(e){i&&i(e),n(e),r.instance.view.render()}}if(!this.isWaiting()){if(this.state==a.EditorState.VIRGIN)return void this.instance._registerTimeout(setTimeout(function(){r._fireCallbacks(!0)},0));if(this.state==a.EditorState.EDITING){if(e)return this.cancelChanges(),void this.instance.view.render();var s=this.getValue();o=this.instance.getSettings().trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=a.EditorState.WAITING,this.saveValue(o,t),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(e){r.state=a.EditorState.FINISHED,r.discardEditor(e)}):(this.state=a.EditorState.FINISHED,this.discardEditor(!0))}}},o.prototype.cancelChanges=function(){this.state=a.EditorState.FINISHED,this.discardEditor()},o.prototype.discardEditor=function(e){this.state===a.EditorState.FINISHED&&(e===!1&&this.cellProperties.allowInvalid!==!0?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=a.EditorState.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=a.EditorState.VIRGIN,this._fireCallbacks(!0)))},o.prototype.enableFullEditMode=function(){this._fullEditMode=!0},o.prototype.isInFullEditMode=function(){return this._fullEditMode},o.prototype.isOpened=function(){return this._opened},o.prototype.isWaiting=function(){return this.state===a.EditorState.WAITING},o.prototype.checkEditorSection=function(){var e=this.instance.countRows(),t="";return this.row<this.instance.getSettings().fixedRowsTop?t=this.col<this.instance.getSettings().fixedColumnsLeft?"top-left-corner":"top":this.instance.getSettings().fixedRowsBottom&&this.row>=e-this.instance.getSettings().fixedRowsBottom?t=this.col<this.instance.getSettings().fixedColumnsLeft?"bottom-left-corner":"bottom":this.col<this.instance.getSettings().fixedColumnsLeft&&(t="left"),t}},{"3rdparty/walkontable/src/cell/coords":6,browser:24,"helpers/mixed":51}],32:[function(e,t,n){"use strict";function o(e){H=!1;var t=this.getActiveEditor();if(f(e.keyCode)||e.keyCode===h.BACKSPACE||e.keyCode===h.DELETE||e.keyCode===h.INSERT){var n=0;if(e.keyCode===h.C&&(e.ctrlKey||e.metaKey))return;t.isOpened()||(n+=10),t.htEditor&&t.instance._registerTimeout(setTimeout(function(){t.queryChoices(t.TEXTAREA.value),H=!0},n))}}Object.defineProperties(n,{AutocompleteEditor:{get:function(){return D}},__esModule:{value:!0}});var r,i,s,a,l,u,c,d=(r=e("helpers/unicode"),r&&r.__esModule&&r||{default:r}),h=d.KEY_CODES,f=d.isPrintableChar,p=(i=e("helpers/mixed"),i&&i.__esModule&&i||{default:i}).stringify,m=(s=e("helpers/string"),s&&s.__esModule&&s||{default:s}).stripTags,g=(a=e("helpers/array"),a&&a.__esModule&&a||{default:a}),w=g.pivot,v=(g.arrayFilter,g.arrayMap),y=(l=e("helpers/dom/element"),l&&l.__esModule&&l||{default:l}),b=y.addClass,C=y.getCaretPosition,_=y.getScrollbarWidth,R=y.getSelectionEndPosition,M=y.outerWidth,S=y.outerHeight,E=y.offset,O=y.getTrimmingContainer,T=y.setCaretPosition,k=(u=e("editors"),u&&u.__esModule&&u||{default:u}).registerEditor,x=(c=e("handsontableEditor"),c&&c.__esModule&&c||{default:c}).HandsontableEditor,D=x.prototype.extend();D.prototype.init=function(){x.prototype.init.apply(this,arguments),this.query=null,this.choices=[]},D.prototype.createElements=function(){x.prototype.createElements.apply(this,arguments),b(this.htContainer,"autocompleteEditor"),b(this.htContainer,window.navigator.platform.indexOf("Mac")===-1?"":"htMacScroll")};var H=!1;D.prototype.prepare=function(){this.instance.addHook("beforeKeyDown",o),x.prototype.prepare.apply(this,arguments)},D.prototype.open=function(){this.TEXTAREA_PARENT.style.overflow="auto",x.prototype.open.apply(this,arguments),this.TEXTAREA_PARENT.style.overflow="";var e=this.htEditor.getInstance(),t=this,n=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.TEXTAREA.style.visibility="visible",this.focus(),e.updateSettings({colWidths:n?[M(this.TEXTAREA)-2]:void 0,width:n?M(this.TEXTAREA)+_()+2:void 0,afterRenderer:function(e,n,o,r,i,s){var a,l,u=t.cellProperties,c=u.filteringCaseSensitive,d=u.allowHtml;i=p(i),i&&!d&&(a=c===!0?i.indexOf(this.query):i.toLowerCase().indexOf(t.query.toLowerCase()),a!==-1&&(l=i.substr(a,t.query.length),i=i.replace(l,"<strong>"+l+"</strong>"))),e.innerHTML=i},autoColumnSize:!0,modifyColWidth:function(e,t){var o=this.getPlugin("autoColumnSize").widths;return o[t]&&(e=o[t]),n?e:e+15}}),this.htEditor.view.wt.wtTable.holder.parentNode.style["padding-right"]=_()+2+"px",H&&(H=!1),t.instance._registerTimeout(setTimeout(function(){t.queryChoices(t.TEXTAREA.value)},0))},D.prototype.close=function(){x.prototype.close.apply(this,arguments)},D.prototype.queryChoices=function(e){var t=this;this.query=e;var n=this.cellProperties,o=n.source,r=(n.filter,n.filteringCaseSensitive,n.allowHtml),i=function(e){return v(e,function(e){return m(e)})};"function"==typeof o?o.call(this.cellProperties,e,function(e){t.updateChoicesList(r?e:i(e))}):Array.isArray(o)?this.updateChoicesList(r?o:i(o)):this.updateChoicesList([])},D.prototype.updateChoicesList=function(e){var t=C(this.TEXTAREA),n=R(this.TEXTAREA),o=this.cellProperties.sortByRelevance,r=this.cellProperties.filter,i=null,s=null;o&&(i=D.sortByRelevance(this.getValue(),e,this.cellProperties.filteringCaseSensitive));var a=Array.isArray(i)?i.length:0;if(r===!1)a&&(s=i[0]);else{for(var l=[],u=0,c=e.length;u<c&&!(o&&a<=u);u++)a?l.push(e[i[u]]):l.push(e[u]);s=0,e=l}this.choices=e,this.htEditor.loadData(w([e])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),this.cellProperties.strict===!0&&this.highlightBestMatchingChoice(s),this.instance.listen(),this.TEXTAREA.focus(),T(this.TEXTAREA,t,t===n?void 0:n)},D.prototype.flipDropdownIfNeeded=function(){var e=E(this.TEXTAREA),t=S(this.TEXTAREA),n=this.getDropdownHeight(),o=O(this.instance.view.wt.wtTable.TABLE),r=o.scrollTop,i=S(this.instance.view.wt.wtTable.THEAD),s={row:0,col:0};o!==window&&(s=E(o));var a=e.top-s.top-i+r,l=o.scrollHeight-a-i-t,u=n>l&&a>l;return u?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(u?a:l,n),u},D.prototype.limitDropdownIfNeeded=function(e,t){if(t>e){var n=0,o=0,r=0,i=null;do r=this.htEditor.getRowHeight(o)||this.htEditor.view.wt.wtSettings.settings.defaultRowHeight,n+=r,o++;while(n<e);i=n-r,this.htEditor.flipped&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-i+"px"),this.setDropdownHeight(n-r)}},D.prototype.flipDropdown=function(e){var t=this.htEditor.rootElement.style;t.position="absolute",t.top=-e+"px",this.htEditor.flipped=!0},D.prototype.unflipDropdown=function(){var e=this.htEditor.rootElement.style;"absolute"===e.position&&(e.position="",e.top=""),this.htEditor.flipped=void 0},D.prototype.updateDropdownHeight=function(){var e=this.htEditor.getColWidth(0)+_()+2,t=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:t?void 0:e}),this.htEditor.view.wt.wtTable.alignOverlaysWithTrimmingContainer()},D.prototype.setDropdownHeight=function(e){this.htEditor.updateSettings({height:e})},D.prototype.finishEditing=function(e){e||this.instance.removeHook("beforeKeyDown",o),x.prototype.finishEditing.apply(this,arguments)},D.prototype.highlightBestMatchingChoice=function(e){"number"==typeof e?this.htEditor.selectCell(e,0):this.htEditor.deselectCell()},D.sortByRelevance=function(e,t,n){var o,r,i,s,a=[],l=e.length,u=[],c=t.length;if(0===l){for(s=0;s<c;s++)u.push(s);return u}for(s=0;s<c;s++)o=m(p(t[s])),r=n?o.indexOf(e):o.toLowerCase().indexOf(e.toLowerCase()),r!=-1&&(i=o.length-r-l,a.push({baseIndex:s,index:r,charsLeft:i,value:o}));for(a.sort(function(e,t){return t.index===-1?-1:e.index===-1?1:e.index<t.index?-1:t.index<e.index?1:e.index===t.index?e.charsLeft<t.charsLeft?-1:e.charsLeft>t.charsLeft?1:0:void 0}),s=0,c=a.length;s<c;s++)u.push(a[s].baseIndex);return u},D.prototype.getDropdownHeight=function(){var e=this.htEditor.getInstance().getRowHeight(0)||23,t=this.cellProperties.visibleRows;return this.choices.length>=t?t*e:this.choices.length*e+8},D.prototype.allowKeyEventPropagation=function(e){var t={row:this.htEditor.getSelectedRange()?this.htEditor.getSelectedRange().from.row:-1},n=!1;return e===h.ARROW_DOWN&&t.row>0&&t.row<this.htEditor.countRows()-1&&(n=!0),e===h.ARROW_UP&&t.row>-1&&(n=!0),n},D.prototype.discardEditor=function(e){x.prototype.discardEditor.apply(this,arguments),this.instance.view.render()},k("autocomplete",D)},{editors:30,handsontableEditor:36,"helpers/array":43,"helpers/dom/element":47,"helpers/mixed":51,"helpers/string":55,"helpers/unicode":56}],33:[function(e,t,n){"use strict";Object.defineProperties(n,{CheckboxEditor:{get:function(){return u}},__esModule:{value:!0}});var o,r,i,s=(o=e("editors"),o&&o.__esModule&&o||{default:o}).registerEditor,a=(r=e("_baseEditor"),r&&r.__esModule&&r||{default:r}).BaseEditor,l=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}).hasClass,u=function(){$traceurRuntime.superConstructor(c).apply(this,arguments)},c=u;$traceurRuntime.createClass(u,{beginEditing:function(e,t){if(void 0===t){var n=this.TD.querySelector('input[type="checkbox"]');l(n,"htBadValue")||n.click()}},finishEditing:function(){},init:function(){},open:function(){},close:function(){},getValue:function(){},setValue:function(){},focus:function(){}},{},a),s("checkbox",u)},{_baseEditor:31,editors:30,"helpers/dom/element":47}],34:[function(e,t,n){"use strict";Object.defineProperties(n,{DateEditor:{get:function(){return E}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c,d,h,f=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,p=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),m=p.addClass,g=p.outerHeight,w=(i=e("helpers/object"),i&&i.__esModule&&i||{default:i}).deepExtend,v=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).EventManager,y=(a=e("editors"),a&&a.__esModule&&a||{default:a}),b=(y.getEditor,y.registerEditor),C=(l=e("helpers/unicode"),l&&l.__esModule&&l||{default:l}).isMetaKey,_=(u=e("helpers/dom/event"),u&&u.__esModule&&u||{default:u}).stopPropagation,R=(c=e("textEditor"),c&&c.__esModule&&c||{default:c}).TextEditor,M=(d=e("moment"),d&&d.__esModule&&d||{default:d}).default,S=(h=e("pikaday"),h&&h.__esModule&&h||{default:h}).default,E=function(e){this.$datePicker=null,this.datePicker=null,this.datePickerStyle=null,this.defaultDateFormat="DD/MM/YYYY",this.isCellEdited=!1,this.parentDestroyed=!1,$traceurRuntime.superConstructor(O).call(this,e)},O=E;$traceurRuntime.createClass(E,{init:function(){var e=this;if("function"!=typeof M)throw new Error("You need to include moment.js to your project.");if("function"!=typeof S)throw new Error("You need to include Pikaday to your project.");$traceurRuntime.superGet(this,O.prototype,"init").call(this),this.instance.addHook("afterDestroy",function(){e.parentDestroyed=!0,e.destroyElements()})},createElements:function(){$traceurRuntime.superGet(this,O.prototype,"createElements").call(this),this.datePicker=document.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,m(this.datePicker,"htDatepickerHolder"),document.body.appendChild(this.datePicker),this.$datePicker=new S(this.getDatePickerConfig());var e=new v(this);e.addEventListener(this.datePicker,"mousedown",function(e){return _(e)}),this.hideDatepicker()},destroyElements:function(){this.$datePicker.destroy()},prepare:function(e,t,n,o,r,i){this._opened=!1,$traceurRuntime.superGet(this,O.prototype,"prepare").call(this,e,t,n,o,r,i)},open:function(){var e=void 0!==arguments[0]?arguments[0]:null;$traceurRuntime.superGet(this,O.prototype,"open").call(this),this.showDatepicker(e)},close:function(){var e=this;this._opened=!1,this.instance._registerTimeout(setTimeout(function(){e.instance.selection.refreshBorders()},0)),$traceurRuntime.superGet(this,O.prototype,"close").call(this)},finishEditing:function(){var e=void 0!==arguments[0]&&arguments[0],t=void 0!==arguments[1]&&arguments[1];if(e){var n=this.originalValue;void 0!==n&&this.setValue(n)}this.hideDatepicker(),$traceurRuntime.superGet(this,O.prototype,"finishEditing").call(this,e,t)},showDatepicker:function(e){this.$datePicker.config(this.getDatePickerConfig());var t,n=this.TD.getBoundingClientRect(),o=this.cellProperties.dateFormat||this.defaultDateFormat,r=this.$datePicker.config(),i=this.instance.view.isMouseDown(),s=!!e&&C(e.keyCode);this.datePickerStyle.top=window.pageYOffset+n.top+g(this.TD)+"px",this.datePickerStyle.left=window.pageXOffset+n.left+"px",this.$datePicker._onInputFocus=function(){},r.format=o,this.originalValue?(t=this.originalValue,M(t,o,!0).isValid()&&this.$datePicker.setMoment(M(t,o),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),s||i||this.setValue("")):this.cellProperties.defaultDate?(t=this.cellProperties.defaultDate,r.defaultDate=t,M(t,o,!0).isValid()&&this.$datePicker.setMoment(M(t,o),!0),s||i||this.setValue("")):this.$datePicker.gotoToday(),this.datePickerStyle.display="block",this.$datePicker.show()},hideDatepicker:function(){this.datePickerStyle.display="none",this.$datePicker.hide()},getDatePickerConfig:function(){var e=this,t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&w(n,this.cellProperties.datePickerConfig);var o=n.onSelect,r=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.format=n.format||this.defaultDateFormat,n.reposition=n.reposition||!1,n.onSelect=function(t){isNaN(t.getTime())||(t=M(t).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(t),e.hideDatepicker(),o&&o()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),r&&r()},n}},{},R),f.editors=f.editors||{},f.editors.DateEditor=E,b("date",E)},{browser:24,editors:30,eventManager:42,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/object":53,"helpers/unicode":56,moment:"moment",pikaday:"pikaday",textEditor:41}],35:[function(e,t,n){"use strict";Object.defineProperties(n,{DropdownEditor:{get:function(){return c}},__esModule:{value:!0}});var o,r,i,s=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,a=(r=e("editors"),r&&r.__esModule&&r||{default:r}),l=(a.getEditor,a.registerEditor),u=(a.getEditorConstructor,(i=e("autocompleteEditor"),i&&i.__esModule&&i||{default:i}).AutocompleteEditor),c=function(){$traceurRuntime.superConstructor(d).apply(this,arguments)},d=c;$traceurRuntime.createClass(c,{prepare:function(e,t,n,o,r,i){$traceurRuntime.superGet(this,d.prototype,"prepare").call(this,e,t,n,o,r,i),this.cellProperties.filter=!1,this.cellProperties.strict=!0}},{},u),s.hooks.add("beforeValidate",function(e,t,n,o){var r=this.getCellMeta(t,this.propToCol(n));r.editor===s.editors.DropdownEditor&&void 0===r.strict&&(r.filter=!1,r.strict=!0)}),l("dropdown",c)},{autocompleteEditor:32,browser:24,editors:30}],36:[function(e,t,n){"use strict";Object.defineProperties(n,{HandsontableEditor:{get:function(){return b}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,d=(r=e("helpers/unicode"),r&&r.__esModule&&r||{default:r}).KEY_CODES,h=(i=e("helpers/object"),i&&i.__esModule&&i||{default:i}).extend,f=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}).setCaretPosition,p=(a=e("helpers/dom/event"),a&&a.__esModule&&a||{default:a}),m=p.stopImmediatePropagation,g=p.isImmediatePropagationStopped,w=(l=e("editors"),l&&l.__esModule&&l||{default:l}),v=(w.getEditor,w.registerEditor),y=(u=e("textEditor"),u&&u.__esModule&&u||{default:u}).TextEditor,b=y.prototype.extend();b.prototype.createElements=function(){y.prototype.createElements.apply(this,arguments);var e=document.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()},b.prototype.prepare=function(e,t,n,o,r,i){y.prototype.prepare.apply(this,arguments);var s=this,a={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,afterOnCellMouseDown:function(){var e=this.getValue();void 0!==e&&s.setValue(e),s.instance.destroyEditor()}};this.cellProperties.handsontable&&h(a,i.handsontable),this.htOptions=a};var C=function(e){if(!g(e)){var t,n=this.getActiveEditor(),o=n.htEditor.getInstance();if(e.keyCode==d.ARROW_DOWN)if(o.getSelected()||o.flipped){if(o.getSelected())if(o.flipped)t=o.getSelected()[0]+1;else if(!o.flipped){var r=o.getSelected()[0],i=o.countRows()-1;t=Math.min(i,r+1)}}else t=0;else if(e.keyCode==d.ARROW_UP)if(!o.getSelected()&&o.flipped)t=o.countRows()-1;else if(o.getSelected())if(o.flipped){var r=o.getSelected()[0];t=Math.max(0,r-1)}else{var r=o.getSelected()[0];t=r-1}void 0!==t&&(t<0||o.flipped&&t>o.countRows()-1?o.deselectCell():o.selectCell(t,0),o.getData().length&&(e.preventDefault(),m(e),n.instance.listen(),n.TEXTAREA.focus()))}};b.prototype.open=function(){this.instance.addHook("beforeKeyDown",C),y.prototype.open.apply(this,arguments),this.htEditor&&this.htEditor.destroy(),this.htEditor=new c(this.htContainer,this.htOptions),this.cellProperties.strict?(this.htEditor.selectCell(0,0),this.TEXTAREA.style.visibility="hidden"):(this.htEditor.deselectCell(),this.TEXTAREA.style.visibility="visible"),f(this.TEXTAREA,0,this.TEXTAREA.value.length)},b.prototype.close=function(){this.instance.removeHook("beforeKeyDown",C),this.instance.listen(),y.prototype.close.apply(this,arguments)},b.prototype.focus=function(){this.instance.listen(),y.prototype.focus.apply(this,arguments)},b.prototype.beginEditing=function(e){var t=this.instance.getSettings().onBeginEditing;t&&t()===!1||y.prototype.beginEditing.apply(this,arguments)},b.prototype.finishEditing=function(e,t){if(this.htEditor&&this.htEditor.isListening()&&this.instance.listen(),this.htEditor&&this.htEditor.getSelected()){var n=this.htEditor.getInstance().getValue();void 0!==n&&this.setValue(n)}return y.prototype.finishEditing.apply(this,arguments)},b.prototype.assignHooks=function(){var e=this;this.instance.addHook("afterDestroy",function(){e.htEditor&&e.htEditor.destroy()})},v("handsontable",b)},{browser:24,editors:30,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/object":53,"helpers/unicode":56,textEditor:41}],37:[function(e,t,n){"use strict";Object.defineProperties(n,{MobileTextEditor:{get:function(){return k}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c=((o=e("browser"),o&&o.__esModule&&o||{default:o}).default,(r=e("helpers/unicode"),r&&r.__esModule&&r||{default:r}).KEY_CODES),d=(i=e("helpers/dom/event"),i&&i.__esModule&&i||{default:i}),h=d.stopImmediatePropagation,f=d.isImmediatePropagationStopped,p=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}),m=p.addClass,g=p.getScrollLeft,w=p.getScrollTop,v=p.hasClass,y=p.isChildOf,b=p.offset,C=p.outerHeight,_=p.outerWidth,R=p.removeClass,M=p.setCaretPosition,S=(a=e("editors"),a&&a.__esModule&&a||{default:a}),E=(S.getEditor,S.registerEditor),O=(l=e("_baseEditor"),l&&l.__esModule&&l||{default:l}).BaseEditor,T=(u=e("eventManager"),u&&u.__esModule&&u||{default:u}).eventManager,k=O.prototype.extend(),x={},D=function(){this.controls={},this.controls.leftButton=document.createElement("DIV"),this.controls.leftButton.className="leftButton",this.controls.rightButton=document.createElement("DIV"),this.controls.rightButton.className="rightButton",this.controls.upButton=document.createElement("DIV"),this.controls.upButton.className="upButton",this.controls.downButton=document.createElement("DIV"),this.controls.downButton.className="downButton";for(var e in this.controls)this.controls.hasOwnProperty(e)&&this.positionControls.appendChild(this.controls[e])};k.prototype.valueChanged=function(){return this.initValue!=this.getValue()},k.prototype.init=function(){var e=this;this.eventManager=T(this.instance),this.createElements(),this.bindEvents(),this.instance.addHook("afterDestroy",function(){e.destroy()})},k.prototype.getValue=function(){return this.TEXTAREA.value},k.prototype.setValue=function(e){this.initValue=e,this.TEXTAREA.value=e},k.prototype.createElements=function(){this.editorContainer=document.createElement("DIV"),this.editorContainer.className="htMobileEditorContainer",this.cellPointer=document.createElement("DIV"),this.cellPointer.className="cellPointer",this.moveHandle=document.createElement("DIV"),this.moveHandle.className="moveHandle",this.inputPane=document.createElement("DIV"),this.inputPane.className="inputs",this.positionControls=document.createElement("DIV"),this.positionControls.className="positionControls",this.TEXTAREA=document.createElement("TEXTAREA"),m(this.TEXTAREA,"handsontableInput"),this.inputPane.appendChild(this.TEXTAREA),this.editorContainer.appendChild(this.cellPointer),this.editorContainer.appendChild(this.moveHandle),this.editorContainer.appendChild(this.inputPane),this.editorContainer.appendChild(this.positionControls),D.call(this),document.body.appendChild(this.editorContainer)},k.prototype.onBeforeKeyDown=function(e){var t=this,n=t.getActiveEditor();if(e.target===n.TEXTAREA&&!f(e))switch(e.keyCode){case c.ENTER:n.close(),e.preventDefault();break;case c.BACKSPACE:h(e)}},k.prototype.open=function(){this.instance.addHook("beforeKeyDown",this.onBeforeKeyDown),m(this.editorContainer,"active"),R(this.cellPointer,"hidden"),this.updateEditorPosition()},k.prototype.focus=function(){this.TEXTAREA.focus(),M(this.TEXTAREA,this.TEXTAREA.value.length)},k.prototype.close=function(){this.TEXTAREA.blur(),this.instance.removeHook("beforeKeyDown",this.onBeforeKeyDown),R(this.editorContainer,"active")},k.prototype.scrollToView=function(){var e=this.instance.getSelectedRange().highlight;this.instance.view.scrollViewport(e)},k.prototype.hideCellPointer=function(){v(this.cellPointer,"hidden")||m(this.cellPointer,"hidden")},k.prototype.updateEditorPosition=function(e,t){if(e&&t)e=parseInt(e,10),t=parseInt(t,10),this.editorContainer.style.top=t+"px",this.editorContainer.style.left=e+"px";else{var n=this.instance.getSelected(),o=this.instance.getCell(n[0],n[1]);if(x.cellPointer||(x.cellPointer={height:C(this.cellPointer),width:_(this.cellPointer)}),x.editorContainer||(x.editorContainer={width:_(this.editorContainer)}),void 0!==o){var r=this.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer==window?0:g(this.instance.view.wt.wtOverlays.leftOverlay.holder),i=this.instance.view.wt.wtOverlays.topOverlay.trimmingContainer==window?0:w(this.instance.view.wt.wtOverlays.topOverlay.holder),s=b(o),a=_(o),l={x:r,y:i};this.editorContainer.style.top=parseInt(s.top+C(o)-l.y+x.cellPointer.height,10)+"px",this.editorContainer.style.left=parseInt(window.innerWidth/2-x.editorContainer.width/2,10)+"px",s.left+a/2>parseInt(this.editorContainer.style.left,10)+x.editorContainer.width?this.editorContainer.style.left=window.innerWidth-x.editorContainer.width+"px":s.left+a/2<parseInt(this.editorContainer.style.left,10)+20&&(this.editorContainer.style.left="0px"),this.cellPointer.style.left=parseInt(s.left-x.cellPointer.width/2-b(this.editorContainer).left+a/2-l.x,10)+"px"}}},k.prototype.updateEditorData=function(){var e=this.instance.getSelected(),t=this.instance.getDataAtCell(e[0],e[1]);this.row=e[0],this.col=e[1],this.setValue(t),this.updateEditorPosition()},k.prototype.prepareAndSave=function(){var e;return!this.valueChanged()||(e=this.instance.getSettings().trimWhitespace?[[String.prototype.trim.call(this.getValue())]]:[[this.getValue()]],void this.saveValue(e))},k.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.controls.leftButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(0,-1,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.rightButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(0,1,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.upButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(-1,0,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.downButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(1,0,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.moveHandle,"touchstart",function(t){if(1==t.touches.length){var n=t.touches[0],o={x:e.editorContainer.offsetLeft,y:e.editorContainer.offsetTop},r={x:n.pageX-o.x,y:n.pageY-o.y};e.eventManager.addEventListener(this,"touchmove",function(t){var n=t.touches[0];e.updateEditorPosition(n.pageX-r.x,n.pageY-r.y),e.hideCellPointer(),t.preventDefault()})}}),this.eventManager.addEventListener(document.body,"touchend",function(t){y(t.target,e.editorContainer)||y(t.target,e.instance.rootElement)||e.close()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.leftOverlay.holder,"scroll",function(t){e.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer!=window&&e.hideCellPointer()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.topOverlay.holder,"scroll",function(t){e.instance.view.wt.wtOverlays.topOverlay.trimmingContainer!=window&&e.hideCellPointer()})},k.prototype.destroy=function(){this.eventManager.clear(),this.editorContainer.parentNode.removeChild(this.editorContainer)},E("mobile",k)},{_baseEditor:31,browser:24,editors:30,eventManager:42,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/unicode":56}],38:[function(e,t,n){"use strict";Object.defineProperties(n,{NumericEditor:{get:function(){return u}},__esModule:{value:!0}});var o,r,i,s=(o=e("numbro"),o&&o.__esModule&&o||{default:o}).default,a=(r=e("editors"),r&&r.__esModule&&r||{default:r}).registerEditor,l=(i=e("textEditor"),i&&i.__esModule&&i||{default:i}).TextEditor,u=function(){$traceurRuntime.superConstructor(c).apply(this,arguments)},c=u;$traceurRuntime.createClass(u,{beginEditing:function(e){if("undefined"==typeof e&&this.originalValue){"undefined"!=typeof this.cellProperties.language&&s.culture(this.cellProperties.language);var t=s.cultureData().delimiters.decimal;e=(""+this.originalValue).replace(".",t)}$traceurRuntime.superGet(this,c.prototype,"beginEditing").call(this,e)}},{},l),a("numeric",u)},{editors:30,numbro:"numbro",textEditor:41}],39:[function(e,t,n){"use strict";Object.defineProperties(n,{PasswordEditor:{get:function(){return d}},__esModule:{value:!0}});var o,r,i,s,a=((o=e("browser"),o&&o.__esModule&&o||{default:o}).default,(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}).empty),l=(i=e("editors"),i&&i.__esModule&&i||{default:i}),u=(l.getEditor,l.registerEditor),c=(s=e("textEditor"),s&&s.__esModule&&s||{default:s}).TextEditor,d=function(){$traceurRuntime.superConstructor(h).apply(this,arguments)},h=d;$traceurRuntime.createClass(d,{createElements:function(){$traceurRuntime.superGet(this,h.prototype,"createElements").call(this),this.TEXTAREA=document.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,a(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}},{},c),u("password",d)},{browser:24,editors:30,"helpers/dom/element":47,textEditor:41}],40:[function(e,t,n){"use strict";Object.defineProperties(n,{SelectEditor:{get:function(){return E}},__esModule:{value:!0}});var o,r,i,s,a,l,u=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,c=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),d=c.addClass,h=c.empty,f=c.fastInnerHTML,p=c.getComputedStyle,m=c.getCssTransform,g=c.getScrollableElement,w=c.offset,v=c.outerHeight,y=c.outerWidth,b=c.resetCssTransform,C=(i=e("helpers/dom/event"),i&&i.__esModule&&i||{default:i}).stopImmediatePropagation,_=(s=e("helpers/unicode"),s&&s.__esModule&&s||{default:s}).KEY_CODES,R=(a=e("editors"),a&&a.__esModule&&a||{default:a}),M=(R.getEditor,R.registerEditor),S=(l=e("_baseEditor"),l&&l.__esModule&&l||{default:l}).BaseEditor,E=S.prototype.extend();E.prototype.init=function(){this.select=document.createElement("SELECT"),d(this.select,"htSelectEditor"),this.select.style.display="none",this.instance.rootElement.appendChild(this.select),this.registerHooks()},E.prototype.registerHooks=function(){var e=this;this.instance.addHook("afterScrollHorizontally",function(){return e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){return e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){return e.refreshDimensions()}),this.instance.addHook("afterRowResize",function(){return e.refreshDimensions()})},E.prototype.prepare=function(){S.prototype.prepare.apply(this,arguments);var e,t=this.cellProperties.selectOptions;e="function"==typeof t?this.prepareOptions(t(this.row,this.col,this.prop)):this.prepareOptions(t),h(this.select);for(var n in e)if(e.hasOwnProperty(n)){var o=document.createElement("OPTION");o.value=n,f(o,e[n]),this.select.appendChild(o)}},E.prototype.prepareOptions=function(e){var t={};if(Array.isArray(e))for(var n=0,o=e.length;n<o;n++)t[e[n]]=e[n];else"object"==typeof e&&(t=e);return t},E.prototype.getValue=function(){return this.select.value},E.prototype.setValue=function(e){this.select.value=e};var O=function(e){var t=this,n=t.getActiveEditor();switch(e.keyCode){case _.ARROW_UP:var o=n.select.selectedIndex-1;o>=0&&(n.select[o].selected=!0),C(e),e.preventDefault();break;case _.ARROW_DOWN:var r=n.select.selectedIndex+1;r<=n.select.length-1&&(n.select[r].selected=!0),C(e),e.preventDefault()}};E.prototype.open=function(){this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.instance.addHook("beforeKeyDown",O)},E.prototype.close=function(){this._opened=!1,this.select.style.display="none",this.instance.removeHook("beforeKeyDown",O)},E.prototype.focus=function(){this.select.focus()},E.prototype.refreshValue=function(){var e=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()},E.prototype.refreshDimensions=function(){if(this.state===u.EditorState.EDITING){if(this.TD=this.getEditedCell(),!this.TD)return void this.close();var e,t=y(this.TD)+1,n=v(this.TD)+1,o=w(this.TD),r=w(this.instance.rootElement),i=g(this.TD),s=o.top-r.top-1-(i.scrollTop||0),a=o.left-r.left-1-(i.scrollLeft||0),l=this.checkEditorSection(),c=this.instance.getSettings();c.rowHeaders?1:0,c.colHeaders?1:0;switch(l){case"top":e=m(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=m(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);
break;case"top-left-corner":e=m(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=m(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=m(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}0===this.instance.getSelected()[0]&&(s+=1),0===this.instance.getSelected()[1]&&(a+=1);var d=this.select.style;e&&e!=-1?d[e[0]]=e[1]:b(this.select);var h=p(this.TD);parseInt(h.borderTopWidth,10)>0&&(n-=1),parseInt(h.borderLeftWidth,10)>0&&(t-=1),d.height=n+"px",d.minWidth=t+"px",d.top=s+"px",d.left=a+"px",d.margin="0px"}},E.prototype.getEditedCell=function(){var e,t=this.checkEditorSection();switch(t){case"top":e=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=101;break;case"corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.select.style.zIndex=""}return e!=-1&&e!=-2?e:void 0},M("select",E)},{_baseEditor:31,browser:24,editors:30,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/unicode":56}],41:[function(e,t,n){"use strict";Object.defineProperties(n,{TextEditor:{get:function(){return N}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c,d=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,h=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),f=h.addClass,p=h.getCaretPosition,m=h.getComputedStyle,g=h.getCssTransform,w=h.getScrollableElement,v=h.getScrollbarWidth,y=h.innerWidth,b=h.offset,C=h.resetCssTransform,_=h.setCaretPosition,R=h.hasVerticalScrollbar,M=h.hasHorizontalScrollbar,S=(i=e("autoResize"),i&&i.__esModule&&i||{default:i}).default,E=(s=e("_baseEditor"),s&&s.__esModule&&s||{default:s}).BaseEditor,O=(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).eventManager,T=(l=e("editors"),l&&l.__esModule&&l||{default:l}),k=(T.getEditor,T.registerEditor),x=(u=e("helpers/unicode"),u&&u.__esModule&&u||{default:u}).KEY_CODES,D=(c=e("helpers/dom/event"),c&&c.__esModule&&c||{default:c}),H=D.stopPropagation,A=D.stopImmediatePropagation,P=D.isImmediatePropagationStopped,N=E.prototype.extend();N.prototype.init=function(){var e=this;this.createElements(),this.eventManager=O(this),this.bindEvents(),this.autoResize=S(),this.instance.addHook("afterDestroy",function(){e.destroy()})},N.prototype.getValue=function(){return this.TEXTAREA.value},N.prototype.setValue=function(e){this.TEXTAREA.value=e};var L=function(e){var t,n=this,o=n.getActiveEditor();if(t=(e.ctrlKey||e.metaKey)&&!e.altKey,e.target===o.TEXTAREA&&!P(e)){if(17===e.keyCode||224===e.keyCode||91===e.keyCode||93===e.keyCode)return void A(e);switch(e.keyCode){case x.ARROW_RIGHT:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(e.keyCode))&&A(e);break;case x.ARROW_LEFT:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(e.keyCode))&&A(e);break;case x.ARROW_UP:case x.ARROW_DOWN:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(e.keyCode))&&A(e);break;case x.ENTER:var r=o.instance.getSelected(),i=!(r[0]===r[2]&&r[1]===r[3]);if(t&&!i||e.altKey){if(o.isOpened()){var s=p(o.TEXTAREA),a=o.getValue(),l=a.slice(0,s)+"\n"+a.slice(s);o.setValue(l),_(o.TEXTAREA,s+1)}else o.beginEditing(o.originalValue+"\n");A(e)}e.preventDefault();break;case x.A:case x.X:case x.C:case x.V:t&&A(e);break;case x.BACKSPACE:case x.DELETE:case x.HOME:case x.END:A(e)}[x.ARROW_UP,x.ARROW_RIGHT,x.ARROW_DOWN,x.ARROW_LEFT].indexOf(e.keyCode)===-1&&o.autoResize.resize(String.fromCharCode(e.keyCode))}};N.prototype.open=function(){this.refreshDimensions(),this.instance.addHook("beforeKeyDown",L)},N.prototype.close=function(e){this.textareaParentStyle.display="none",this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.instance.removeHook("beforeKeyDown",L)},N.prototype.focus=function(){this.TEXTAREA.focus(),_(this.TEXTAREA,this.TEXTAREA.value.length)},N.prototype.createElements=function(){this.TEXTAREA=document.createElement("TEXTAREA"),f(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement("DIV"),f(this.TEXTAREA_PARENT,"handsontableInputHolder"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.textareaParentStyle.top=0,this.textareaParentStyle.left=0,this.textareaParentStyle.display="none",this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.instance.rootElement.appendChild(this.TEXTAREA_PARENT);var e=this;this.instance._registerTimeout(setTimeout(function(){e.refreshDimensions()},0))},N.prototype.getEditedCell=function(){var e,t=this.checkEditorSection();switch(t){case"top":e=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=101;break;case"top-left-corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"bottom-left-corner":e=this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;case"bottom":e=this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.textareaParentStyle.zIndex=""}return e!=-1&&e!=-2?e:void 0},N.prototype.refreshValue=function(){var e=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()},N.prototype.refreshDimensions=function(){if(this.state===d.EditorState.EDITING){if(this.TD=this.getEditedCell(),!this.TD)return void this.close(!0);var e,t=b(this.TD),n=b(this.instance.rootElement),o=w(this.TD),r=this.instance.countRows(),i=t.top===n.top?0:1,s=t.top-n.top-i-(o.scrollTop||0),a=t.left-n.left-1-(o.scrollLeft||0),l=this.instance.getSettings(),u=(this.instance.hasRowHeaders(),this.instance.hasColHeaders()),c=this.checkEditorSection(),h=this.TD.style.backgroundColor;switch(c){case"top":e=g(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=g(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=g(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=g(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=g(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(u&&0===this.instance.getSelected()[0]||l.fixedRowsBottom&&this.instance.getSelected()[0]===r-l.fixedRowsBottom)&&(s+=1),0===this.instance.getSelected()[1]&&(a+=1),e&&e!=-1?this.textareaParentStyle[e[0]]=e[1]:C(this.TEXTAREA_PARENT),this.textareaParentStyle.top=s+"px",this.textareaParentStyle.left=a+"px";var f=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,p=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,_=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),S=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),E=v(),O=this.TD.offsetTop+f-S,T=this.TD.offsetLeft+p-_,k=y(this.TD)-8,x=R(o)?E:0,D=M(o)?E:0,H=this.instance.view.maximumVisibleElementWidth(T)-9-x,A=this.TD.scrollHeight+1,P=Math.max(this.instance.view.maximumVisibleElementHeight(O)-D,23),N=m(this.TD);this.TEXTAREA.style.fontSize=N.fontSize,this.TEXTAREA.style.fontFamily=N.fontFamily,this.TEXTAREA.style.backgroundColor="",this.TEXTAREA.style.backgroundColor=h?h:m(this.TEXTAREA).backgroundColor,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(A,P),maxHeight:P,minWidth:Math.min(k,H),maxWidth:H},!0),this.textareaParentStyle.display="block"}},N.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(e){H(e)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(e){H(e)}),this.instance.addHook("afterScrollHorizontally",function(){e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterRowResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterDestroy",function(){e.eventManager.destroy()})},N.prototype.destroy=function(){this.eventManager.destroy()},k("text",N)},{_baseEditor:31,autoResize:"autoResize",browser:24,editors:30,eventManager:42,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/unicode":56}],42:[function(e,t,n){"use strict";function o(e,t){var n,o,r,i,s,a,l="HOT-TABLE";if(t.isTargetWebComponent=!1,t.realTarget=t.target,a=t.stopImmediatePropagation,t.stopImmediatePropagation=function(){a.apply(this),p(this)},!u.eventManager.isHotTableEnv)return t;for(t=d(t),s=t.path?t.path.length:0;s--;){if(t.path[s].nodeName===l)n=!0;else if(n&&t.path[s].shadowRoot){i=t.path[s];break}0!==s||i||(i=t.path[s])}return i||(i=t.target),t.isTargetWebComponent=!0,f()?t.realTarget=t.srcElement||t.toElement:(e instanceof u.Core||e instanceof Walkontable)&&(e instanceof u.Core?o=e.view?e.view.wt.wtTable.TABLE:null:e instanceof Walkontable&&(o=e.wtTable.TABLE.parentNode.parentNode),r=h(t.target,[l],o),r?t.realTarget=o.querySelector(l)||t.target:t.realTarget=t.target),Object.defineProperty(t,"target",{get:function(){return d(i)},enumerable:!0,configurable:!0}),t}function r(e){return new m(e)}Object.defineProperties(n,{EventManager:{get:function(){return m}},eventManager:{get:function(){return r}},__esModule:{value:!0}});var i,s,a,l,u=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,c=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}),d=c.polymerWrap,h=c.closest,f=(a=e("helpers/feature"),a&&a.__esModule&&a||{default:a}).isWebComponentSupportedNatively,p=(l=e("helpers/dom/event"),l&&l.__esModule&&l||{default:l}).stopImmediatePropagation,m=function(){var e=void 0!==arguments[0]?arguments[0]:null;this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])};$traceurRuntime.createClass(m,{addEventListener:function(e,t,n){function r(e){e=o(s,e),n.call(this,e)}var i=this,s=this.context;return this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:r}),window.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r),u.countEventManagerListeners++,function(){i.removeEventListener(e,t,n)}},removeEventListener:function(e,t,n){for(var o,r=this.context.eventListeners.length;r--;)if(o=this.context.eventListeners[r],o.event==t&&o.element==e){if(n&&n!=o.callback)continue;this.context.eventListeners.splice(r,1),o.element.removeEventListener?o.element.removeEventListener(o.event,o.callbackProxy,!1):o.element.detachEvent("on"+o.event,o.callbackProxy),u.countEventManagerListeners--}},clearEvents:function(){if(this.context)for(var e=this.context.eventListeners.length;e--;){var t=this.context.eventListeners[e];t&&this.removeEventListener(t.element,t.event,t.callback)}},clear:function(){this.clearEvents()},destroy:function(){this.clearEvents(),this.context=null},fireEvent:function(e,t){var n,o={bubbles:!0,cancelable:"mousemove"!==t,view:window,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};document.createEvent?(n=document.createEvent("MouseEvents"),n.initMouseEvent(t,o.bubbles,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget||document.body.parentNode)):n=document.createEventObject(),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent("on"+t,n)}},{}),u.countEventManagerListeners=0,u.eventManager=r},{browser:24,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/feature":49}],43:[function(e,t,n){"use strict";function o(e){for(var t=0,n=e.length;t<n;)e[t]=[e[t]],t++}function r(e,t){for(var n=0,o=t.length;n<o;)e.push(t[n]),n++}function i(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,o=e[0].length,r=0;r<n;r++)for(var i=0;i<o;i++)t[i]||(t[i]=[]),t[i][r]=e[r][i];return t}function s(e,t,n,o){var r=-1,i=e.length;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}function a(e,t){for(var n=-1,o=e.length,r=-1,i=[];++n<o;){var s=e[n];t(s,n,e)&&(i[++r]=s)}return i}function l(e,t){for(var n=-1,o=e.length,r=-1,i=[];++n<o;){var s=e[n];i[++r]=t(s,n,e)}return i}function u(e,t){for(var n=-1,o=e.length;++n<o&&t(e[n],n,e)!==!1;);return e}function c(e){return s(e,function(e,t){return e+t},0)}function d(e){return s(e,function(e,t){return e>t?e:t},Array.isArray(e)?e[0]:void 0)}function h(e){return s(e,function(e,t){return e<t?e:t},Array.isArray(e)?e[0]:void 0)}function f(e){return e.length?c(e)/e.length:0}function p(e){return s(e,function(e,t){return e.concat(Array.isArray(t)?p(t):t)},[])}function m(e){var t=[];return u(e,function(e){t.indexOf(e)===-1&&t.push(e)}),t}function g(e,t,n){if(null==e)throw new TypeError('"array" is null or not defined');var o=Object(e),r=o.length>>>0;if(0===r)return!1;for(var i=0|n,s=Math.max(i>=0?i:r-Math.abs(i),0);s<r;){if(o[s]===t)return!0;s++}return!1}Object.defineProperties(n,{to2dArray:{get:function(){return o}},extendArray:{get:function(){return r}},pivot:{get:function(){return i}},arrayReduce:{get:function(){return s}},arrayFilter:{get:function(){return a}},arrayMap:{get:function(){return l}},arrayEach:{get:function(){return u}},arraySum:{get:function(){return c}},arrayMax:{get:function(){return d}},arrayMin:{get:function(){return h}},arrayAvg:{get:function(){return f}},arrayFlatten:{get:function(){return p}},arrayUnique:{get:function(){return m}},arrayIncludes:{get:function(){return g}},__esModule:{value:!0}})},{}],44:[function(e,t,n){"use strict";function o(){return l}function r(){return u}function i(){return c}function s(){return d}function a(e){return e||(e=navigator.userAgent),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}Object.defineProperties(n,{isIE8:{get:function(){return o}},isIE9:{get:function(){return r}},isSafari:{get:function(){return i}},isChrome:{get:function(){return s}},isMobileBrowser:{get:function(){return a}},__esModule:{value:!0}});var l=!document.createTextNode("test").textContent,u=!!document.documentMode,c=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),d=/Chrome/.test(navigator.userAgent)&&/Google/.test(navigator.vendor)},{}],45:[function(e,t,n){"use strict";function o(e){for(var t,n=e+1,o="";n>0;)t=(n-1)%m,o=String.fromCharCode(65+t)+o,n=parseInt((n-t)/m,10);return o}function r(e){var t=0;if(e)for(var n=0,o=e.length-1;n<e.length;n+=1,o-=1)t+=Math.pow(m,o)*(p.indexOf(e[n])+1);return--t,t}function i(){var e,t,n=void 0!==arguments[0]?arguments[0]:100,r=void 0!==arguments[1]?arguments[1]:4,i=[];for(e=0;e<n;e++){var s=[];for(t=0;t<r;t++)s.push(o(t)+(e+1));i.push(s)}return i}function s(){var e,t,n=void 0!==arguments[0]?arguments[0]:100,r=void 0!==arguments[1]?arguments[1]:4,i=[];for(e=0;e<n;e++){var s={};for(t=0;t<r;t++)s["prop"+t]=o(t)+(e+1);i.push(s)}return i}function a(e,t){for(var n,o=[],r=0;r<e;r++){n=[];for(var i=0;i<t;i++)n.push("");o.push(n)}return o}function l(e){var t,n,o,r,i=[],s=0;for(t=0,n=e.length;t<n;t++)for(o=0,r=e[t].length;o<r;o++)o==s&&(i.push([]),s++),i[o].push(e[t][o]);return i}function u(e,t){function n(e){var t=h.cellTypes[e];if("undefined"==typeof t)throw new Error('You declared cell type "'+e+'" as a string that is not mapped to a known object. Cell type must be an object or a string mapped to an object in Handsontable.cellTypes');return t}return t="undefined"==typeof t||t,function(o,r){return function o(r){if(r){if(r.hasOwnProperty(e)&&void 0!==r[e])return r[e];if(r.hasOwnProperty("type")&&r.type){var i;if("string"!=typeof r.type)throw new Error("Cell type must be a string ");if(i=n(r.type),i.hasOwnProperty(e))return i[e];if(t)return}return o(f(r))}}("number"==typeof o?this.getCellMeta(o,r):o)}}Object.defineProperties(n,{spreadsheetColumnLabel:{get:function(){return o}},spreadsheetColumnIndex:{get:function(){return r}},createSpreadsheetData:{get:function(){return i}},createSpreadsheetObjectData:{get:function(){return s}},createEmptySpreadsheetData:{get:function(){return a}},translateRowsToColumns:{get:function(){return l}},cellMethodLookupFactory:{get:function(){return u}},__esModule:{value:!0}});var c,d,h=(c=e("browser"),c&&c.__esModule&&c||{default:c}).default,f=(d=e("object"),d&&d.__esModule&&d||{default:d}).getPrototypeOf,p="ABCDEFGHIJKLMNOPQRSTUVWXYZ",m=p.length},{browser:24,object:53}],46:[function(e,t,n){"use strict";function o(e){var t=new Date(e);return isNaN(new Date(e+"T00:00").getDate())?t:new Date(t.getTime()+6e4*t.getTimezoneOffset())}Object.defineProperties(n,{getNormalizedDate:{get:function(){return o}},__esModule:{value:!0}})},{}],47:[function(e,t,n){"use strict";function o(e){for(var t=void 0!==arguments[1]?arguments[1]:0,n=-1,o=null;null!=e;){if(n===t){o=e;break}e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e=e.host:(n++,e=e.parentNode)}return o}function r(e,t,n){for(;null!=e&&e!==n;){if(e.nodeType===Node.ELEMENT_NODE&&(t.indexOf(e.nodeName)>-1||t.indexOf(e)>-1))return e;e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode}return null}function i(e,t,n){for(var o=[];e&&(e=r(e,t,n),e&&(!n||n.contains(e)));)o.push(e),e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode;var i=o.length;return i?o[i-1]:null}function s(e,t){var n=e.parentNode,o=[];for("string"==typeof t?o=Array.prototype.slice.call(document.querySelectorAll(t),0):o.push(t);null!=n;){if(o.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function a(e){function t(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===o.toUpperCase()}var n,o="hot-table",r=!1;for(n=l(e);null!=n;){if(t(n)){r=!0;break}if(n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r=t(n.host))break;n=n.host}n=n.parentNode}return r}function l(e){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(e):e}function u(e){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(e):e}function c(e){var t=0;if(e.previousSibling)for(;e=e.previousSibling;)++t;return t}function d(e,t){var n=document.querySelector(".ht_clone_"+e);return n?n.contains(t):null}function h(e){var t=0,n=[];if(!e||!e.length)return n;for(;e[t];)n.push(e[t]),t++;return n}function f(e,t){return Z(e,t)}function p(e,t){return J(e,t)}function m(e,t){return Q(e,t)}function g(e,t){if(3===e.nodeType)t.removeChild(e);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(e.nodeName)>-1)for(var n=e.childNodes,o=n.length-1;o>=0;o--)g(n[o],e)}function w(e){for(var t;t=e.lastChild;)e.removeChild(t)}function v(e,t){ue.test(t)?e.innerHTML=t:y(e,t)}function y(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?ce?n.textContent=t:n.data=t:(w(e),e.appendChild(document.createTextNode(t)))}function b(e){for(var t=e;u(t)!==document.documentElement;){if(null===t)return!1;if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(t.host){if(t.host.impl)return b(t.host.impl);if(t.host)return b(t.host);throw new Error("Lost in Web Components world")}return!1}if("none"===t.style.display)return!1;t=t.parentNode}return!0}function C(e){var t,n,o,r,i;if(r=document.documentElement,re()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return i=e.getBoundingClientRect(),{top:i.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||0),left:i.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||0)};for(t=e.offsetLeft,n=e.offsetTop,o=e;(e=e.offsetParent)&&e!==document.body;)t+=e.offsetLeft,n+=e.offsetTop,o=e;return o&&"fixed"===o.style.position&&(t+=window.pageXOffset||r.scrollLeft,n+=window.pageYOffset||r.scrollTop),{left:t,top:n}}function _(){var e=window.scrollY;return void 0===e&&(e=document.documentElement.scrollTop),e}function R(){var e=window.scrollX;return void 0===e&&(e=document.documentElement.scrollLeft),e}function M(e){return e===window?_():e.scrollTop}function S(e){return e===window?R():e.scrollLeft}function E(e){for(var t,n,o,r=e.parentNode,i=["auto","scroll"],s="",a="",l="",u="";r&&r.style&&document.body!==r;){if(t=r.style.overflow,n=r.style.overflowX,o=r.style.overflowY,"scroll"==t||"scroll"==n||"scroll"==o)return r;if(window.getComputedStyle&&(s=window.getComputedStyle(r),a=s.getPropertyValue("overflow"),l=s.getPropertyValue("overflow-y"),u=s.getPropertyValue("overflow-x"),"scroll"===a||"scroll"===u||"scroll"===l))return r;if(r.clientHeight<=r.scrollHeight&&(i.indexOf(o)!==-1||i.indexOf(t)!==-1||i.indexOf(a)!==-1||i.indexOf(l)!==-1))return r;if(r.clientWidth<=r.scrollWidth&&(i.indexOf(n)!==-1||i.indexOf(t)!==-1||i.indexOf(a)!==-1||i.indexOf(u)!==-1))return r;r=r.parentNode}return window}function O(e){for(var t=e.parentNode;t&&t.style&&document.body!==t;){if("visible"!==t.style.overflow&&""!==t.style.overflow)return t;if(window.getComputedStyle){var n=window.getComputedStyle(t);if("visible"!==n.getPropertyValue("overflow")&&""!==n.getPropertyValue("overflow"))return t}t=t.parentNode}return window}function T(e,t){if(e){if(e!==window){var n,o=e.style[t];return""!==o&&void 0!==o?o:(n=k(e),""!==n[t]&&void 0!==n[t]?n[t]:void 0)}if("width"===t)return window.innerWidth+"px";if("height"===t)return window.innerHeight+"px"}}function k(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}function x(e){return e.offsetWidth}function D(e){return re()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight}function H(e){return e.clientHeight||e.innerHeight}function A(e){return e.clientWidth||e.innerWidth}function P(e,t,n){window.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function N(e,t,n){window.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function L(e){if(e.selectionStart)return e.selectionStart;if(document.selection){e.focus();var t=document.selection.createRange();if(null==t)return 0;var n=e.createTextRange(),o=n.duplicate();return n.moveToBookmark(t.getBookmark()),o.setEndPoint("EndToStart",n),o.text.length}return 0}function I(e){if(e.selectionEnd)return e.selectionEnd;if(document.selection){var t=document.selection.createRange();if(null==t)return 0;var n=e.createTextRange();return n.text.indexOf(t.text)+t.text.length}}function W(){var e="";return window.getSelection?e=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e}function j(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var o=e.parentNode,r=o.style.display;o.style.display="block",e.setSelectionRange(t,n),o.style.display=r}}else if(e.createTextRange){var i=e.createTextRange();i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i.select()}}function V(){var e=document.createElement("div");e.style.height="200px",e.style.width="100%";var t=document.createElement("div");t.style.boxSizing="content-box",t.style.height="150px",t.style.left="0px",t.style.overflow="hidden",t.style.position="absolute",t.style.top="0px",t.style.width="200px",t.style.visibility="hidden",t.appendChild(e),(document.body||document.documentElement).appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var o=e.offsetWidth;return n==o&&(o=t.clientWidth),(document.body||document.documentElement).removeChild(t),n-o}function B(){return void 0===le&&(le=V()),le}function F(e){return e.offsetWidth!==e.clientWidth}function z(e){return e.offsetHeight!==e.clientHeight}function Y(e,t,n){te()||ne()?(e.style.top=n,e.style.left=t):oe()?e.style["-webkit-transform"]="translate3d("+t+","+n+",0)":e.style.transform="translate3d("+t+","+n+",0)"}function U(e){var t;return e.style.transform&&""!==(t=e.style.transform)?["transform",t]:e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"])?["-webkit-transform",t]:-1}function G(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")}function $(e){var t=["INPUT","SELECT","TEXTAREA"];return e&&(t.indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function K(e){return $(e)&&e.className.indexOf("handsontableInput")==-1&&e.className.indexOf("copyPaste")==-1}Object.defineProperties(n,{getParent:{get:function(){return o}},closest:{get:function(){return r}},closestDown:{get:function(){return i}},isChildOf:{get:function(){return s}},isChildOfWebComponentTable:{get:function(){return a}},polymerWrap:{get:function(){return l}},polymerUnwrap:{get:function(){return u}},index:{get:function(){return c}},overlayContainsElement:{get:function(){return d}},hasClass:{get:function(){return f}},addClass:{get:function(){return p}},removeClass:{get:function(){return m}},removeTextNodes:{get:function(){return g}},empty:{get:function(){return w}},HTML_CHARACTERS:{get:function(){return ue}},fastInnerHTML:{get:function(){return v}},fastInnerText:{get:function(){return y}},isVisible:{get:function(){return b}},offset:{get:function(){return C}},getWindowScrollTop:{get:function(){return _}},getWindowScrollLeft:{get:function(){return R}},getScrollTop:{get:function(){return M}},getScrollLeft:{get:function(){return S}},getScrollableElement:{get:function(){return E}},getTrimmingContainer:{get:function(){return O}},getStyle:{get:function(){return T}},getComputedStyle:{get:function(){return k}},outerWidth:{get:function(){return x}},outerHeight:{get:function(){return D}},innerHeight:{get:function(){return H}},innerWidth:{get:function(){return A}},addEvent:{get:function(){return P}},removeEvent:{get:function(){return N}},getCaretPosition:{get:function(){return L}},getSelectionEndPosition:{get:function(){return I}},getSelectionText:{get:function(){return W}},setCaretPosition:{get:function(){return j}},getScrollbarWidth:{get:function(){return B}},hasVerticalScrollbar:{get:function(){return F}},hasHorizontalScrollbar:{get:function(){return z}},setOverlayPosition:{get:function(){return Y}},getCssTransform:{get:function(){return U}},resetCssTransform:{get:function(){return G}},isInput:{get:function(){return $}},isOutsideInput:{get:function(){return K}},__esModule:{value:!0}});var X,q,Z,J,Q,ee=(X=e("../browser"),X&&X.__esModule&&X||{default:X}),te=ee.isIE8,ne=ee.isIE9,oe=ee.isSafari,re=(q=e("../feature"),q&&q.__esModule&&q||{default:q}).hasCaptionProblem,ie=!!document.documentElement.classList;if(ie){var se=function(){var e=document.createElement("div");return e.classList.add("test","test2"),e.classList.contains("test2")}();Z=function(e,t){return""!==t&&e.classList.contains(t)},J=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=h(t),se)e.classList.add.apply(e.classList,t);else for(;t&&t[n];)e.classList.add(t[n]),n++},Q=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=h(t),se)e.classList.remove.apply(e.classList,t);else for(;t&&t[n];)e.classList.remove(t[n]),n++}}else{var ae=function(e){return new RegExp("(\\s|^)"+e+"(\\s|$)")};Z=function(e,t){return!!e.className.match(ae(t))},J=function(e,t){var n=0,o=e.className;if("string"==typeof t&&(t=t.split(" ")),""===o)o=t.join(" ");else for(;t&&t[n];)ae(t[n]).test(o)||(o+=" "+t[n]),n++;e.className=o},Q=function(e,t){var n=0,o=e.className;for("string"==typeof t&&(t=t.split(" "));t&&t[n];)o=o.replace(ae(t[n])," ").trim(),n++;e.className!==o&&(e.className=o)}}var le,ue=/(<(.*)>|&(.*);)/,ce=!!document.createTextNode("test").textContent},{"../browser":44,"../feature":49}],48:[function(e,t,n){"use strict";function o(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function r(e){return e.isImmediatePropagationEnabled===!1}function i(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function s(e){return e.pageX?e.pageX:e.clientX+f()}function a(e){return e.pageY?e.pageY:e.clientY+h()}function l(e){return 2===e.button}function u(e){return 0===e.button}Object.defineProperties(n,{stopImmediatePropagation:{get:function(){return o}},isImmediatePropagationStopped:{get:function(){return r}},stopPropagation:{get:function(){return i}},pageX:{get:function(){return s}},pageY:{get:function(){return a}},isRightClick:{get:function(){return l}},isLeftClick:{get:function(){return u}},__esModule:{value:!0}});var c,d=(c=e("element"),c&&c.__esModule&&c||{default:c}),h=d.getWindowScrollTop,f=d.getWindowScrollLeft},{element:47}],49:[function(e,t,n){"use strict";function o(e){return h.call(window,e)}function r(e){f.call(window,e)}function i(){return"ontouchstart"in window}function s(){var e=document.createElement("div");return!(!e.createShadowRoot||!e.createShadowRoot.toString().match(/\[native code\]/))}function a(){var e=document.createElement("TABLE");e.style.borderSpacing=0,e.style.borderWidth=0,e.style.padding=0;var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="<tr><td>t<br>t</td></tr>";var n=document.createElement("CAPTION");n.innerHTML="c<br>c<br>c<br>c",n.style.padding=0,n.style.margin=0,e.insertBefore(n,t),document.body.appendChild(e),m=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}function l(){return void 0===m&&a(),m}function u(e){var t=void 0!==arguments[1]?arguments[1]:{};return g?g:g="object"==typeof Intl?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return(e+"").localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1}}Object.defineProperties(n,{requestAnimationFrame:{get:function(){return o}},cancelAnimationFrame:{get:function(){return r}},isTouchSupported:{get:function(){return i}},isWebComponentSupportedNatively:{get:function(){return s}},hasCaptionProblem:{get:function(){return l}},getComparisonFunction:{get:function(){return u}},__esModule:{value:!0}});for(var c=0,d=["ms","moz","webkit","o"],h=window.requestAnimationFrame,f=window.cancelAnimationFrame,p=0;p<d.length&&!h;++p)h=window[d[p]+"RequestAnimationFrame"],f=window[d[p]+"CancelAnimationFrame"]||window[d[p]+"CancelRequestAnimationFrame"];h||(h=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-c)),o=window.setTimeout(function(){e(t+n)},n);return c=t+n,o}),f||(f=function(e){clearTimeout(e)});var m,g},{}],50:[function(e,t,n){"use strict";function o(e){return"function"==typeof e}function r(e,t){return function(){return e.apply(t,arguments)}}function i(e){function t(){var t=this,s=arguments,a=Date.now(),l=!1;r.lastCallThrottled=!0,o||(o=a,l=!0);var u=n-(a-o);return l?(r.lastCallThrottled=!1,e.apply(this,s)):(i&&clearTimeout(i),i=setTimeout(function(){r.lastCallThrottled=!1,e.apply(t,s),o=0,i=void 0},u)),r}var n=void 0!==arguments[1]?arguments[1]:200,o=0,r={lastCallThrottled:!0},i=null;return t}function s(e){function t(){a=r}function n(){return a?(a--,e.apply(this,arguments)):s.apply(this,arguments)}var o=void 0!==arguments[1]?arguments[1]:200,r=void 0!==arguments[2]?arguments[2]:10,s=i(e,o),a=r;return n.clearHits=t,n}function a(e){function t(){var t=this,i=arguments;return r&&clearTimeout(r),r=setTimeout(function(){n=e.apply(t,i)},o),n}var n,o=void 0!==arguments[1]?arguments[1]:200,r=null;return t}function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e,o=n[0],r=Array.prototype.slice.call(n,1);
return function(){return f(r,function(e,t){return t(e)},o.apply(this,arguments))}}function u(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return e.apply(this,t.concat(n))}}function c(e){function t(o){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s,a=o.concat(r);return s=a.length>=n?e.apply(this,a):t(a)}}var n=e.length;return t([])}function d(e){function t(o){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s,a=o.concat(r.reverse());return s=a.length>=n?e.apply(this,a):t(a)}}var n=e.length;return t([])}Object.defineProperties(n,{isFunction:{get:function(){return o}},proxy:{get:function(){return r}},throttle:{get:function(){return i}},throttleAfterHits:{get:function(){return s}},debounce:{get:function(){return a}},pipe:{get:function(){return l}},partial:{get:function(){return u}},curry:{get:function(){return c}},curryRight:{get:function(){return d}},__esModule:{value:!0}});var h,f=(h=e("array"),h&&h.__esModule&&h||{default:h}).arrayReduce},{array:43}],51:[function(e,t,n){"use strict";function o(e){switch(typeof e){case"string":case"number":return e+"";case"object":return null===e?"":e.toString();case"undefined":return"";default:return e.toString()}}function r(e){return"undefined"!=typeof e}function i(e){return"undefined"==typeof e}function s(e){return null===e||""===e||i(e)}Object.defineProperties(n,{stringify:{get:function(){return o}},isDefined:{get:function(){return r}},isUndefined:{get:function(){return i}},isEmpty:{get:function(){return s}},__esModule:{value:!0}})},{}],52:[function(e,t,n){"use strict";function o(e){var t=typeof e;return"number"==t?!isNaN(e)&&isFinite(e):"string"==t?!!e.length&&(1==e.length?/\d/.test(e):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(e)):"object"==t&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}function r(e,t,n){var o=-1;for("function"==typeof t?(n=t,t=e):o=e-1;++o<=t&&n(o)!==!1;);}function i(e,t,n){var o=e+1;for("function"==typeof t&&(n=t,t=0);--o>=t&&n(o)!==!1;);}function s(e,t){return t=parseInt(t.toString().replace("%",""),10),t=parseInt(e*t/100)}Object.defineProperties(n,{isNumeric:{get:function(){return o}},rangeEach:{get:function(){return r}},rangeEachReverse:{get:function(){return i}},valueAccordingPercent:{get:function(){return s}},__esModule:{value:!0}})},{}],53:[function(e,t,n){"use strict";function o(e){var t;return Array.isArray(e)?t=[]:(t={},p(e,function(e,n){"__children"!==n&&(e&&"object"==typeof e&&!Array.isArray(e)?t[n]=o(e):Array.isArray(e)?e.length&&"object"==typeof e[0]&&!Array.isArray(e[0])?t[n]=[o(e[0])]:t[n]=[]:t[n]=null)})),t}function r(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e}function i(e,t){return p(t,function(t,n){e[n]=t}),e}function s(e,t){p(t,function(n,o){t[o]&&"object"==typeof t[o]?(e[o]||(Array.isArray(t[o])?e[o]=[]:"[object Date]"===Object.prototype.toString.call(t[o])?e[o]=t[o]:e[o]={}),s(e[o],t[o])):e[o]=t[o]})}function a(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function l(e){var t={};return p(e,function(e,n){t[n]=e}),t}function u(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.MIXINS||(e.MIXINS=[]),y(t,function(t){e.MIXINS.push(t.MIXIN_NAME),p(t,function(t,n){if(void 0!==e.prototype[n])throw new Error("Mixin conflict. Property '"+n+"' already exist and cannot be overwritten.");if("function"==typeof t)e.prototype[n]=t;else{var o=function(e,t){e="_"+e;var n=function(e){return(Array.isArray(e)||d(e))&&(e=a(e)),e};return function(){return void 0===this[e]&&(this[e]=n(t)),this[e]}},r=function(e){return e="_"+e,function(t){this[e]=t}};Object.defineProperty(e.prototype,n,{get:o(n,t),set:r(n),configurable:!0})}})}),e}function c(e,t){return JSON.stringify(e)===JSON.stringify(t)}function d(e){return"[object Object]"==Object.prototype.toString.call(e)}function h(e){var t;if("object"==typeof e.__proto__)t=e.__proto__;else{var n,o=e.constructor;"function"==typeof e.constructor&&(n=o,delete e.constructor&&(o=e.constructor,e.constructor=n)),t=o?o.prototype:null}return t}function f(e,t,n,o){o.value=n,o.writable=o.writable!==!1,o.enumerable=o.enumerable!==!1,o.configurable=o.configurable!==!1,Object.defineProperty(e,t,o)}function p(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&e.hasOwnProperty(n))&&t(e[n],n,e)===!1)break;return e}function m(e,t){var n=t.split("."),o=e;return p(n,function(e){if(o=o[e],void 0===o)return o=void 0,!1}),o}function g(e){if(!d(e))return 0;var t=function(e){var n=0;return d(e)?p(e,function(e){n+=t(e)}):n++,n};return t(e)}function w(e){var t,n=void 0!==arguments[1]?arguments[1]:"value",o="_"+n,r=(t={},Object.defineProperty(t,"_touched",{value:!1,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(t,o,{value:e,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(t,"isTouched",{value:function(){return this._touched},configurable:!0,enumerable:!0,writable:!0}),t);return Object.defineProperty(r,n,{get:function(){return this[o]},set:function(e){this._touched=!0,this[o]=e},enumerable:!0,configurable:!0}),r}Object.defineProperties(n,{duckSchema:{get:function(){return o}},inherit:{get:function(){return r}},extend:{get:function(){return i}},deepExtend:{get:function(){return s}},deepClone:{get:function(){return a}},clone:{get:function(){return l}},mixin:{get:function(){return u}},isObjectEquals:{get:function(){return c}},isObject:{get:function(){return d}},getPrototypeOf:{get:function(){return h}},defineGetter:{get:function(){return f}},objectEach:{get:function(){return p}},getProperty:{get:function(){return m}},deepObjectSize:{get:function(){return g}},createObjectPropListener:{get:function(){return w}},__esModule:{value:!0}});var v,y=(v=e("array"),v&&v.__esModule&&v||{default:v}).arrayEach},{array:43}],54:[function(e,t,n){"use strict";function o(e,t){function n(){}i(n,e);for(var o=0,r=t.length;o<r;o++)n.prototype[t[o]]=void 0;return n}Object.defineProperties(n,{columnFactory:{get:function(){return o}},__esModule:{value:!0}});var r,i=(r=e("object"),r&&r.__esModule&&r||{default:r}).inherit},{object:53}],55:[function(e,t,n){"use strict";function o(e){return e[0].toUpperCase()+e.substr(1)}function r(e,t){var n=!0;return m(t.length-1,function(o){if(e.charAt(o)!==t.charAt(o))return n=!1,!1}),n}function i(e,t){var n=!0,o=t.length-1,r=e.length-1;return m(o,function(i){var s=r-i,a=o-i;if(e.charAt(s)!==t.charAt(a))return n=!1,!1}),n}function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],o=e.length;o--;){var r=p(e[o]).toLowerCase();n.indexOf(r)===-1&&n.push(r)}return 1===n.length}function a(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()}function l(e){return/^([0-9][0-9]?\%$)|(^100\%$)/.test(e)}function u(e){var t=void 0!==arguments[1]?arguments[1]:{};return(e+"").replace(/(?:\\)?\[([^\[\]]+)]/g,function(e,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]})}function c(e,t){var n=void 0!==arguments[2]?arguments[2]:" ";if(e+="",e.length>=t)return e;n=String(n);var o=n.length;o||(n=" ");var r=t-e.length,i=Math.ceil(r/n.length),s="";return m(i,function(e){s+=n}),s=s.slice(0,r),s+e}function d(e){return e+="",e.replace(g,"")}Object.defineProperties(n,{toUpperCaseFirst:{get:function(){return o}},startsWith:{get:function(){return r}},endsWith:{get:function(){return i}},equalsIgnoreCase:{get:function(){return s}},randomString:{get:function(){return a}},isPercentValue:{get:function(){return l}},substitute:{get:function(){return u}},padStart:{get:function(){return c}},stripTags:{get:function(){return d}},__esModule:{value:!0}});var h,f,p=(h=e("mixed"),h&&h.__esModule&&h||{default:h}).stringify,m=(f=e("number"),f&&f.__esModule&&f||{default:f}).rangeEach,g=/<\/?\w+\/?>|<\w+[\s|\/][^>]*>/gi},{mixed:51,number:52}],56:[function(e,t,n){"use strict";function o(e){return 32==e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function r(e){var t=[u.ARROW_DOWN,u.ARROW_UP,u.ARROW_LEFT,u.ARROW_RIGHT,u.HOME,u.END,u.DELETE,u.BACKSPACE,u.F1,u.F2,u.F3,u.F4,u.F5,u.F6,u.F7,u.F8,u.F9,u.F10,u.F11,u.F12,u.TAB,u.PAGE_DOWN,u.PAGE_UP,u.ENTER,u.ESCAPE,u.SHIFT,u.CAPS_LOCK,u.ALT];return t.indexOf(e)!==-1}function i(e){return[u.CONTROL_LEFT,224,u.COMMAND_LEFT,u.COMMAND_RIGHT].indexOf(e)!==-1}function s(e,t){var n=t.split("|"),o=!1;return l(n,function(t){if(e===u[t])return o=!0,!1}),o}Object.defineProperties(n,{KEY_CODES:{get:function(){return u}},isPrintableChar:{get:function(){return o}},isMetaKey:{get:function(){return r}},isCtrlKey:{get:function(){return i}},isKey:{get:function(){return s}},__esModule:{value:!0}});var a,l=(a=e("array"),a&&a.__esModule&&a||{default:a}).arrayEach,u={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL_LEFT:91,COMMAND_LEFT:17,COMMAND_RIGHT:93,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,X:88,C:67,V:86}},{array:43}],57:[function(e,t,n){"use strict";Object.defineProperties(n,{arrayMapper:{get:function(){return m}},__esModule:{value:!0}});var o,r,i,s,a=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,l=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}),u=(l.arrayEach,l.arrayReduce),c=l.arrayMap,d=l.arrayMax,h=(i=e("helpers/object"),i&&i.__esModule&&i||{default:i}).defineGetter,f=(s=e("helpers/number"),s&&s.__esModule&&s||{default:s}).rangeEach,p="arrayMapper",m={_arrayMap:[],getValueByIndex:function(e){var t;return void 0===(t=this._arrayMap[e])?null:t},getIndexByValue:function(e){var t;return(t=this._arrayMap.indexOf(e))===-1?null:t},insertItems:function(e){var t=void 0!==arguments[1]?arguments[1]:1,n=this,o=d(this._arrayMap)+1,r=[];return f(t-1,function(t){r.push(n._arrayMap.splice(e+t,0,o+t))}),r},removeItems:function(e){var t=void 0!==arguments[1]?arguments[1]:1,n=this,o=[];if(Array.isArray(e)){var r=[].concat(this._arrayMap);e.sort(function(e,t){return t-e}),o=u(e,function(e,t){return n._arrayMap.splice(t,1),e.concat(r.slice(t,t+1))},[])}else o=this._arrayMap.splice(e,t);return o},unshiftItems:function(e){function t(e){return u(o,function(t,n){return e>n&&t++,t},0)}var n=void 0!==arguments[1]?arguments[1]:1,o=this.removeItems(e,n);this._arrayMap=c(this._arrayMap,function(e,n){var o=t(e);return o&&(e-=o),e})},shiftItems:function(e){var t=void 0!==arguments[1]?arguments[1]:1,n=this;this._arrayMap=c(this._arrayMap,function(n){return n>=e&&(n+=t),n}),f(t-1,function(t){n._arrayMap.splice(e+t,0,e+t)})},clearMap:function(){this._arrayMap.length=0}};h(m,"MIXIN_NAME",p,{writable:!1,enumerable:!1}),a.utils.arrayMapper=m},{browser:24,"helpers/array":43,"helpers/number":52,"helpers/object":53}],58:[function(e,t,n){"use strict";Object.defineProperties(n,{localHooks:{get:function(){return c}},__esModule:{value:!0}});var o,r,i,s=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,a=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}).arrayEach,l=(i=e("helpers/object"),i&&i.__esModule&&i||{default:i}).defineGetter,u="localHooks",c={_localHooks:Object.create(null),addLocalHook:function(e,t){this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t)},runLocalHooks:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=this;this._localHooks[e]&&a(this._localHooks[e],function(e){return e.apply(o,t)})},clearLocalHooks:function(){this._localHooks={}}};l(c,"MIXIN_NAME",u,{writable:!1,enumerable:!1}),s.utils.localHooks=c},{browser:24,"helpers/array":43,"helpers/object":53}],59:[function(e,t,n){"use strict";function o(){function e(e){return null!==e&&!n(e)&&("string"==typeof e||"number"==typeof e)}function t(e){return null!==e&&("object"==typeof e||"function"==typeof e)}function n(e){return e!==e}var o={arrayMap:[],weakMap:new WeakMap};return{get:function(n){return e(n)?o.arrayMap[n]:t(n)?o.weakMap.get(n):void 0},set:function(n,r){if(e(n))o.arrayMap[n]=r;else{if(!t(n))throw new Error("Invalid key type");o.weakMap.set(n,r)}},delete:function(n){e(n)?delete o.arrayMap[n]:t(n)&&o.weakMap.delete(n)}}}Object.defineProperties(n,{MultiMap:{get:function(){return o}},__esModule:{value:!0}}),window.MultiMap=o},{}],60:[function(e,t,n){"use strict";Object.defineProperties(n,{Hooks:{get:function(){return l}},__esModule:{value:!0}});var o,r,i=["afterCellMetaReset","afterChange","afterChangesObserved","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseOver","afterRemoveCol","afterRemoveRow","afterRender","beforeRenderer","afterRenderer","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterUpdateSettings","afterValidate","beforeAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeInit","beforeInitWalkontable","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseOver","beforeRemoveCol","beforeRemoveRow","beforeRender","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyCol","unmodifyCol","unmodifyRow","modifyColHeader","modifyColWidth","modifyRow","modifyRowHeader","modifyRowHeight","modifyData","modifyRowData","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeColumnMove","afterColumnMove","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","modifyColumnHeaderHeight","beforeUndo","afterUndo","beforeRedo","afterRedo","modifyRowHeaderWidth","beforeAutofillInsidePopulate","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","beforeValueRender","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","manualRowHeights","skipLengthCache","afterTrimRow","afterUntrimRow","afterDropdownMenuShow","afterDropdownMenuHide","hiddenRow","hiddenColumn","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing"],s=(o=e("helpers/array"),o&&o.__esModule&&o||{default:o}).arrayEach,a=(r=e("helpers/object"),r&&r.__esModule&&r||{default:r}).objectEach,l=function(){this.globalBucket=this.createEmptyBucket()};$traceurRuntime.createClass(l,{createEmptyBucket:function(){var e=Object.create(null);return s(i,function(t){return e[t]=[]}),e},getBucket:function(){var e=void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket},add:function(e,t){var n=void 0!==arguments[2]?arguments[2]:null,o=this;if(Array.isArray(t))s(t,function(t){return o.add(e,t,n)});else{var r=this.getBucket(n);"undefined"==typeof r[e]&&(this.register(e),r[e]=[]),t.skip=!1,r[e].indexOf(t)===-1&&r[e].push(t)}return this},once:function(e,t){var n=void 0!==arguments[2]?arguments[2]:null,o=this;Array.isArray(t)?s(t,function(t){return o.once(e,t,n)}):(t.runOnce=!0,this.add(e,t,n))},remove:function(e,t){var n=void 0!==arguments[2]?arguments[2]:null,o=this.getBucket(n);return"undefined"!=typeof o[e]&&o[e].indexOf(t)>=0&&(t.skip=!0,!0)},has:function(e){var t=void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)},run:function(e,t,n,o,r,i,s,a){var l=this.globalBucket[t],u=-1,c=l?l.length:0;if(c)for(;++u<c;)if(l[u]&&!l[u].skip){var d=l[u].call(e,n,o,r,i,s,a);void 0!==d&&(n=d),l[u]&&l[u].runOnce&&this.remove(t,l[u])}var h=this.getBucket(e)[t],f=-1,p=h?h.length:0;if(p)for(;++f<p;)if(h[f]&&!h[f].skip){var m=h[f].call(e,n,o,r,i,s,a);void 0!==m&&(n=m),h[f]&&h[f].runOnce&&this.remove(t,h[f],e)}return n},destroy:function(){var e=void 0!==arguments[0]?arguments[0]:null;a(this.getBucket(e),function(e,t,n){return n[t].length=0})},register:function(e){this.isRegistered(e)||i.push(e)},deregister:function(e){this.isRegistered(e)&&i.splice(i.indexOf(e),1)},isRegistered:function(e){return i.indexOf(e)>=0},getRegistered:function(){return i}},{})},{"helpers/array":43,"helpers/object":53}],61:[function(e,t,n){"use strict";function o(e,t){e=h(e),c.plugins[e]=t,c.hooks.add("construct",function(){var n;f.has(this)||f.set(this,{}),n=f.get(this),n[e]||(n[e]=new t(this))}),c.hooks.add("afterDestroy",function(){if(f.has(this)){var e=f.get(this);d(e,function(e){return e.destroy()}),f.delete(this)}})}function r(e,t){if("string"!=typeof t)throw Error('Only strings can be passed as "plugin" parameter');var n=h(t);if(f.has(e)&&f.get(e)[n])return f.get(e)[n]}function i(e){return f.has(e)?Object.keys(f.get(e)):[]}function s(e,t){var n=null;return f.has(e)&&d(f.get(e),function(e,o){e===t&&(n=o)}),n}Object.defineProperties(n,{registerPlugin:{get:function(){return o}},getPlugin:{get:function(){return r}},getRegistredPluginNames:{get:function(){return i}},getPluginName:{get:function(){return s}},__esModule:{value:!0}});var a,l,u,c=(a=e("browser"),a&&a.__esModule&&a||{default:a}).default,d=(l=e("helpers/object"),l&&l.__esModule&&l||{default:l}).objectEach,h=(u=e("helpers/string"),u&&u.__esModule&&u||{default:u}).toUpperCaseFirst,f=new WeakMap},{browser:24,"helpers/object":53,"helpers/string":55}],62:[function(e,t,n){"use strict";Object.defineProperties(n,{default:{get:function(){return C}},__esModule:{value:!0}});var o,r,i,s,a,l=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,u=(r=e("helpers/object"),r&&r.__esModule&&r||{default:r}),c=u.defineGetter,d=u.objectEach,h=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).arrayEach,f=(s=e("utils/recordTranslator"),s&&s.__esModule&&s||{default:s}),p=(f.registerIdentity,f.getTranslator),m=(a=e("plugins"),a&&a.__esModule&&a||{default:a}),g=m.getRegistredPluginNames,w=m.getPluginName,v=new WeakMap,y=null,b=function(e){var t=this;c(this,"hot",e,{writable:!1}),c(this,"t",p(e),{writable:!1}),v.set(this,{hooks:{}}),y=null,this.pluginName=null,this.pluginsInitializedCallbacks=[],this.isPluginsReady=!1,this.enabled=!1,this.initialized=!1,this.hot.addHook("afterPluginsInitialized",function(){return t.onAfterPluginsInitialized()}),this.hot.addHook("afterUpdateSettings",function(){return t.onUpdateSettings()}),this.hot.addHook("beforeInit",function(){return t.init()})};$traceurRuntime.createClass(b,{init:function(){this.pluginName=w(this.hot,this),this.isEnabled&&this.isEnabled()&&this.enablePlugin(),y||(y=g(this.hot)),y.indexOf(this.pluginName)>=0&&y.splice(y.indexOf(this.pluginName),1),y.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0},enablePlugin:function(){this.enabled=!0},disablePlugin:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1},addHook:function(e,t){var n=v.get(this).hooks[e]=v.get(this).hooks[e]||[];this.hot.addHook(e,t),n.push(t),v.get(this).hooks[e]=n},removeHooks:function(e){var t=this;h(v.get(this).hooks[e]||[],function(n){t.hot.removeHook(e,n)})},clearHooks:function(){var e=this,t=v.get(this).hooks;d(t,function(t,n){return e.removeHooks(n)}),t.length=0},callOnPluginsReady:function(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)},onAfterPluginsInitialized:function(){h(this.pluginsInitializedCallbacks,function(e){return e()}),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0},onUpdateSettings:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())},updatePlugin:function(){},destroy:function(){var e=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),d(this,function(t,n){"hot"!==n&&"t"!==n&&(e[n]=null)}),delete this.t,delete this.hot}},{});var C=b;l.plugins.BasePlugin=b},{browser:24,"helpers/array":43,"helpers/object":53,plugins:61,"utils/recordTranslator":130}],63:[function(e,t,n){"use strict";Object.defineProperties(n,{AutoColumnSize:{get:function(){return N}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c,d,h,f,p=(o=e("_base"),o&&o.__esModule&&o||{default:o}).default,m=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}),g=m.arrayEach,w=m.arrayFilter,v=m.arrayReduce,y=m.arrayMap,b=(i=e("helpers/feature"),i&&i.__esModule&&i||{default:i}),C=b.cancelAnimationFrame,_=b.requestAnimationFrame,R=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}).isVisible,M=(a=e("utils/ghostTable"),a&&a.__esModule&&a||{default:a}).GhostTable,S=(l=e("helpers/object"),l&&l.__esModule&&l||{default:l}),E=S.isObject,O=(S.objectEach,u=e("helpers/number"),u&&u.__esModule&&u||{default:u}),T=O.valueAccordingPercent,k=O.rangeEach,x=(c=e("plugins"),c&&c.__esModule&&c||{default:c}).registerPlugin,D=(d=e("utils/samplesGenerator"),d&&d.__esModule&&d||{default:d}).SamplesGenerator,H=(h=e("helpers/string"),h&&h.__esModule&&h||{default:h}).isPercentValue,A=(f=e("3rdparty/walkontable/src/calculator/viewportColumns"),f&&f.__esModule&&f||{default:f}).WalkontableViewportColumnsCalculator,P=new WeakMap,N=function(e){var t=this;$traceurRuntime.superConstructor(L).call(this,e),P.set(this,{cachedColumnHeaders:[]}),this.widths=[],this.ghostTable=new M(this.hot),this.samplesGenerator=new D(function(e,n){return t.hot.getDataAtCell(e,n)}),this.firstCalculation=!0,this.inProgress=!1,this.addHook("beforeColumnResize",function(e,n,o){return t.onBeforeColumnResize(e,n,o)})},L=N;$traceurRuntime.createClass(N,{isEnabled:function(){return this.hot.getSettings().autoColumnSize!==!1&&!this.hot.getSettings().colWidths},enablePlugin:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().autoColumnSize;t&&null!=t.useHeaders&&this.ghostTable.setSetting("useHeaders",t.useHeaders),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("modifyColWidth",function(t,n){return e.getColumnWidth(n,t)}),this.addHook("afterInit",function(){return e.onAfterInit()}),$traceurRuntime.superGet(this,L.prototype,"enablePlugin").call(this)}},updatePlugin:function(){var e=this.findColumnsWhereHeaderWasChanged();e.length&&this.clearCache(e),$traceurRuntime.superGet(this,L.prototype,"updatePlugin").call(this)},disablePlugin:function(){$traceurRuntime.superGet(this,L.prototype,"disablePlugin").call(this)},calculateColumnsWidth:function(){var e=void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},n=void 0!==arguments[2]&&arguments[2],o=this;"number"==typeof e&&(e={from:e,to:e}),"number"==typeof t&&(t={from:t,to:t}),k(e.from,e.to,function(e){if(n||void 0===o.widths[e]&&!o.hot._getColWidthFromSettings(e)){var r=o.samplesGenerator.generateColumnSamples(e,t);r.forEach(function(e,t){return o.ghostTable.addColumn(t,e)})}}),this.ghostTable.columns.length&&(this.ghostTable.getWidths(function(e,t){return o.widths[e]=t}),this.ghostTable.clean())},calculateAllColumnsWidth:function(){var e=void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=this,n=0,o=this.hot.countCols()-1,r=null;this.inProgress=!0;var i=function(){return t.hot?(t.calculateColumnsWidth({from:n,to:Math.min(n+L.CALCULATION_STEP,o)},e),n=n+L.CALCULATION_STEP+1,void(n<o?r=_(i):(C(r),t.inProgress=!1,t.hot.view.wt.wtOverlays.adjustElementsSize(!0),t.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&t.hot.view.wt.wtOverlays.leftOverlay.clone.draw()))):(C(r),void(t.inProgress=!1))};this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateColumnsWidth({from:0,to:this.getSyncCalculationLimit()},e),this.firstCalculation=!1,n=this.getSyncCalculationLimit()+1),n<o?i():this.inProgress=!1},setSamplingOptions:function(){var e=this.hot.getSettings().autoColumnSize,t=e&&e.hasOwnProperty("samplingRatio")?this.hot.getSettings().autoColumnSize.samplingRatio:void 0,n=e&&e.hasOwnProperty("allowSampleDuplicates")?this.hot.getSettings().autoColumnSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)},recalculateAllColumnsWidth:function(){this.hot.view&&R(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllColumnsWidth())},getSyncCalculationLimit:function(){var e=L.SYNC_CALCULATION_LIMIT,t=this.hot.countCols()-1;return E(this.hot.getSettings().autoColumnSize)&&(e=this.hot.getSettings().autoColumnSize.syncLimit,H(e)?e=T(t,e):e>>=0),Math.min(e,t)},getColumnWidth:function(e){var t=arguments[1],n=void 0===arguments[2]||arguments[2],o=t;return void 0===o&&(o=this.widths[e],n&&"number"==typeof o&&(o=Math.max(o,A.DEFAULT_WIDTH))),o},getFirstVisibleColumn:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getFirstVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getFirstRenderedColumn():-1},getLastVisibleColumn:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getLastVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getLastRenderedColumn():-1},findColumnsWhereHeaderWasChanged:function(){var e=this.hot.getColHeader(),t=P.get(this).cachedColumnHeaders,n=v(e,function(e,n,o){var r=t.length;return(r-1<o||t[o]!==n)&&e.push(o),r-1<o?t.push(n):t[o]=n,e},[]);return n},clearCache:function(){var e=void 0!==arguments[0]?arguments[0]:[],t=this;e.length?g(e,function(e){return t.widths[e]=void 0}):this.widths.length=0},isNeedRecalculate:function(){return!!w(this.widths,function(e){return void 0===e}).length},onBeforeRender:function(){var e=this.hot.renderCall,t=this.hot.countRows();t&&(this.calculateColumnsWidth({from:this.getFirstVisibleColumn(),to:this.getLastVisibleColumn()},void 0,e),this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllColumnsWidth())},onAfterLoadData:function(){var e=this;this.hot.view?this.recalculateAllColumnsWidth():setTimeout(function(){e.hot&&e.recalculateAllColumnsWidth()},0)},onBeforeChange:function(e){var t=this,n=y(e,function(e){var n=e,o=(n[0],n[1]);return t.hot.propToCol(o)});this.clearCache(n)},onBeforeColumnResize:function(e,t,n){return n&&(this.calculateColumnsWidth(e,void 0,!0),t=this.getColumnWidth(e,void 0,!1)),t},onAfterInit:function(){P.get(this).cachedColumnHeaders=this.hot.getColHeader()},destroy:function(){this.ghostTable.clean(),$traceurRuntime.superGet(this,L.prototype,"destroy").call(this)}},{get CALCULATION_STEP(){return 50},get SYNC_CALCULATION_LIMIT(){return 50}},p),x("autoColumnSize",N)},{"3rdparty/walkontable/src/calculator/viewportColumns":4,_base:62,"helpers/array":43,"helpers/dom/element":47,"helpers/feature":49,"helpers/number":52,"helpers/object":53,"helpers/string":55,plugins:61,"utils/ghostTable":128,"utils/samplesGenerator":131}],64:[function(e,t,n){"use strict";Object.defineProperties(n,{AutoRowSize:{get:function(){return k}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c,d,h,f=(o=e("_base"),o&&o.__esModule&&o||{default:o}).default,p=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}),m=(p.arrayEach,p.arrayFilter),g=(i=e("helpers/feature"),i&&i.__esModule&&i||{default:i}),w=g.cancelAnimationFrame,v=g.requestAnimationFrame,y=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}).isVisible,b=(a=e("utils/ghostTable"),a&&a.__esModule&&a||{default:a}).GhostTable,C=(l=e("helpers/object"),l&&l.__esModule&&l||{default:l}),_=C.isObject,R=(C.objectEach,u=e("helpers/number"),u&&u.__esModule&&u||{default:u}),M=R.valueAccordingPercent,S=R.rangeEach,E=(c=e("plugins"),c&&c.__esModule&&c||{default:c}).registerPlugin,O=(d=e("utils/samplesGenerator"),d&&d.__esModule&&d||{default:d}).SamplesGenerator,T=(h=e("helpers/string"),h&&h.__esModule&&h||{default:h}).isPercentValue,k=function(e){var t=this;$traceurRuntime.superConstructor(x).call(this,e),this.heights=[],this.ghostTable=new b(this.hot),this.samplesGenerator=new O(function(e,n){return e>=0?t.hot.getDataAtCell(e,n):e===-1?t.hot.getColHeader(n):null}),this.firstCalculation=!0,this.inProgress=!1,this.addHook("beforeRowResize",function(e,n,o){return t.onBeforeRowResize(e,n,o)})},x=k;$traceurRuntime.createClass(k,{isEnabled:function(){return this.hot.getSettings().autoRowSize===!0||_(this.hot.getSettings().autoRowSize)},enablePlugin:function(){var e=this;this.enabled||(this.setSamplingOptions(),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeColumnMove",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnResize",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnSort",function(){return e.clearCache()}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("beforeRowMove",function(t,n){return e.onBeforeRowMove(t,n)}),this.addHook("modifyRowHeight",function(t,n){return e.getRowHeight(n,t)}),this.addHook("modifyColumnHeaderHeight",function(){return e.getColumnHeaderHeight()}),$traceurRuntime.superGet(this,x.prototype,"enablePlugin").call(this))},disablePlugin:function(){$traceurRuntime.superGet(this,x.prototype,"disablePlugin").call(this)},calculateRowsHeight:function(){var e=void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},n=void 0!==arguments[2]&&arguments[2],o=this;if("number"==typeof e&&(e={from:e,to:e}),"number"==typeof t&&(t={from:t,to:t}),null!==this.hot.getColHeader(0)){var r=this.samplesGenerator.generateRowSamples(-1,t);this.ghostTable.addColumnHeadersRow(r.get(-1))}S(e.from,e.to,function(e){if(n||void 0===o.heights[e]){var r=o.samplesGenerator.generateRowSamples(e,t);r.forEach(function(e,t){return o.ghostTable.addRow(t,e)})}}),this.ghostTable.rows.length&&(this.ghostTable.getHeights(function(e,t){return o.heights[e]=t}),this.ghostTable.clean())},calculateAllRowsHeight:function(){var e=void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=this,n=0,o=this.hot.countRows()-1,r=null;this.inProgress=!0;var i=function(){return t.hot?(t.calculateRowsHeight({from:n,to:Math.min(n+x.CALCULATION_STEP,o)},e),n=n+x.CALCULATION_STEP+1,void(n<o?r=v(i):(w(r),t.inProgress=!1,t.hot.view.wt.wtOverlays.adjustElementsSize(!0),t.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&t.hot.view.wt.wtOverlays.leftOverlay.clone.draw()))):(w(r),void(t.inProgress=!1))};this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateRowsHeight({from:0,to:this.getSyncCalculationLimit()},e),this.firstCalculation=!1,n=this.getSyncCalculationLimit()+1),n<o?i():(this.inProgress=!1,this.hot.view.wt.wtOverlays.adjustElementsSize(!1))},setSamplingOptions:function(){var e=this.hot.getSettings().autoRowSize,t=e&&e.hasOwnProperty("samplingRatio")?this.hot.getSettings().autoRowSize.samplingRatio:void 0,n=e&&e.hasOwnProperty("allowSampleDuplicates")?this.hot.getSettings().autoRowSize.allowSampleDuplicates:void 0;t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),n&&this.samplesGenerator.setAllowDuplicates(n)},recalculateAllRowsHeight:function(){y(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight());
},getSyncCalculationLimit:function(){var e=x.SYNC_CALCULATION_LIMIT,t=this.hot.countRows()-1;return _(this.hot.getSettings().autoRowSize)&&(e=this.hot.getSettings().autoRowSize.syncLimit,T(e)?e=M(t,e):e>>=0),Math.min(e,t)},getRowHeight:function(e){var t=arguments[1],n=t;return void 0!==this.heights[e]&&this.heights[e]>(t||0)&&(n=this.heights[e]),n},getColumnHeaderHeight:function(){return this.heights[-1]},getFirstVisibleRow:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getFirstVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getFirstRenderedRow():-1},getLastVisibleRow:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getLastVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getLastRenderedRow():-1},clearCache:function(){this.heights.length=0,this.heights[-1]=void 0},clearCacheByRange:function(e){var t=this;"number"==typeof e&&(e={from:e,to:e}),S(Math.min(e.from,e.to),Math.max(e.from,e.to),function(e){return t.heights[e]=void 0})},isNeedRecalculate:function(){return!!m(this.heights,function(e){return void 0===e}).length},onBeforeRender:function(){var e=this.hot.renderCall;this.calculateRowsHeight({from:this.getFirstVisibleRow(),to:this.getLastVisibleRow()},void 0,e);var t=this.hot.getSettings().fixedRowsBottom;if(t){var n=this.hot.countRows()-1;this.calculateRowsHeight({from:n-t,to:n})}this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllRowsHeight()},onBeforeRowMove:function(e,t){this.clearCacheByRange({from:e,to:t}),this.calculateAllRowsHeight()},onBeforeRowResize:function(e,t,n){return n&&(this.calculateRowsHeight(e,void 0,!0),t=this.getRowHeight(e)),t},onAfterLoadData:function(){var e=this;this.hot.view?this.recalculateAllRowsHeight():setTimeout(function(){e.hot&&e.recalculateAllRowsHeight()},0)},onBeforeChange:function(e){var t=null;1===e.length?t=e[0][0]:e.length>1&&(t={from:e[0][0],to:e[e.length-1][0]}),null!==t&&this.clearCacheByRange(t)},destroy:function(){this.ghostTable.clean(),$traceurRuntime.superGet(this,x.prototype,"destroy").call(this)}},{get CALCULATION_STEP(){return 50},get SYNC_CALCULATION_LIMIT(){return 500}},f),E("autoRowSize",k)},{_base:62,"helpers/array":43,"helpers/dom/element":47,"helpers/feature":49,"helpers/number":52,"helpers/object":53,"helpers/string":55,plugins:61,"utils/ghostTable":128,"utils/samplesGenerator":131}],65:[function(e,t,n){"use strict";Object.defineProperties(n,{Autofill:{get:function(){return T}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c,d=(o=e("_base"),o&&o.__esModule&&o||{default:o}).default,h=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,f=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).arrayIncludes,p=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}),m=p.offset,g=p.outerHeight,w=p.outerWidth,v=(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).eventManager,y=(l=e("plugins"),l&&l.__esModule&&l||{default:l}).registerPlugin,b=(u=e("3rdparty/walkontable/src/cell/coords"),u&&u.__esModule&&u||{default:u}).WalkontableCellCoords,C=(c=e("utils"),c&&c.__esModule&&c||{default:c}),_=C.getDeltas,R=C.getDragDirectionAndRange,M=C.DIRECTIONS,S=C.getMappedFillHandleSetting,E="insert_row",O=200,T=function(e){$traceurRuntime.superConstructor(k).call(this,e),this.eventManager=v(this),this.addingStarted=!1,this.mouseDownOnCellCorner=!1,this.mouseDragOutside=!1,this.handleDraggedCells=0,this.directions=[],this.autoInsertRow=!1},k=T;$traceurRuntime.createClass(T,{isEnabled:function(){return this.hot.getSettings().fillHandle},enablePlugin:function(){var e=this;this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",function(t){return e.onAfterCellCornerMouseDown(t)}),this.addHook("afterOnCellCornerDblClick",function(t){return e.onCellCornerDblClick(t)}),this.addHook("beforeOnCellMouseOver",function(t,n,o){return e.onBeforeCellMouseOver(n)}),$traceurRuntime.superGet(this,k.prototype,"enablePlugin").call(this))},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,k.prototype,"updatePlugin").call(this)},disablePlugin:function(){this.clearMappedSettings(),$traceurRuntime.superGet(this,k.prototype,"disablePlugin").call(this)},getSelectionData:function(){var e={from:this.hot.getSelectedRange().from,to:this.hot.getSelectedRange().to};return this.hot.getData(e.from.row,e.from.col,e.to.row,e.to.col)},fillIn:function(){if(this.hot.view.wt.selections.fill.isEmpty())return!1;var e=this.hot.view.wt.selections.fill.getCorners();this.resetSelectionOfDraggedArea();var t=this.getCornersOfSelectedCells(),n=R(t,e),o=n.directionOfDrag,r=n.startOfDragCoords,i=n.endOfDragCoords;if(this.hot.runHooks("modifyAutofillRange",t,e),r&&r.row>-1&&r.col>-1){var s=this.getSelectionData(),a=_(r,i,s,o);this.hot.runHooks("beforeAutofill",r,i,s),this.hot.populateFromArray(r.row,r.col,s,i.row,i.col,this.pluginName+".fill",null,o,a),this.setSelection(e)}else this.hot.selection.refreshBorders();return!0},reduceSelectionAreaIfNeeded:function(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e},getCoordsOfDragAndDropBorders:function(e){var t,n=this.hot.getSelectedRange().getTopLeftCorner(),o=this.hot.getSelectedRange().getBottomRightCorner();if(f(this.directions,M.vertical)&&(o.row<e.row||n.row>e.row))t=new b(e.row,o.col);else{if(!f(this.directions,M.horizontal))return;t=new b(o.row,e.col)}return this.reduceSelectionAreaIfNeeded(t)},showBorder:function(e){var t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)},addRow:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.alter(E,void 0,1,e.pluginName+".fill"),e.addingStarted=!1},O))},addNewRowIfNeeded:function(){if(this.hot.view.wt.selections.fill.cellRange&&this.addingStarted===!1&&this.autoInsertRow){var e=this.hot.getSelected(),t=this.hot.view.wt.selections.fill.getCorners(),n=this.hot.countRows();e[2]<n-1&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}},getCornersOfSelectedCells:function(){return this.hot.selection.isMultiple()?this.hot.view.wt.selections.area.getCorners():this.hot.view.wt.selections.current.getCorners()},getIndexOfLastAdjacentFilledInRow:function(e){for(var t,n=this.hot.getData(),o=this.hot.countRows(),r=e[2]+1;r<o;r++){for(var i=e[1];i<=e[3];i++){var s=n[r][i];if(s)return-1}var a=n[r][e[1]-1],l=n[r][e[3]+1];(a||l)&&(t=r)}return t},addSelectionFromStartAreaToSpecificRowIndex:function(e,t){this.hot.view.wt.selections.fill.clear(),this.hot.view.wt.selections.fill.add(new b(e[0],e[1])),this.hot.view.wt.selections.fill.add(new b(t,e[3]))},setSelection:function(e){this.hot.selection.setRangeStart(new b(e[0],e[1])),this.hot.selection.setRangeEnd(new b(e[2],e[3]))},selectAdjacent:function(){var e=this.getCornersOfSelectedCells(),t=this.getIndexOfLastAdjacentFilledInRow(e);return t!==-1&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)},resetSelectionOfDraggedArea:function(){this.handleDraggedCells=0,this.hot.view.wt.selections.fill.clear()},redrawBorders:function(e){this.hot.view.wt.selections.fill.clear(),this.hot.view.wt.selections.fill.add(this.hot.getSelectedRange().from),this.hot.view.wt.selections.fill.add(this.hot.getSelectedRange().to),this.hot.view.wt.selections.fill.add(e),this.hot.view.render()},getIfMouseWasDraggedOutside:function(e){var t=m(this.hot.table).top-(window.pageYOffset||document.documentElement.scrollTop)+g(this.hot.table),n=m(this.hot.table).left-(window.pageXOffset||document.documentElement.scrollLeft)+w(this.hot.table);return e.clientY>t&&e.clientX<=n},registerEvents:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()}),this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)})},onCellCornerDblClick:function(){var e=this.selectAdjacent();e&&this.fillIn()},onAfterCellCornerMouseDown:function(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0},onBeforeCellMouseOver:function(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells++,this.showBorder(e),this.addNewRowIfNeeded())},onMouseUp:function(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)},onMouseMove:function(e){var t=this.getIfMouseWasDraggedOutside(e);this.addingStarted===!1&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()},clearMappedSettings:function(){this.directions.length=0,this.autoInsertRow=!1},mapSettings:function(){var e=S(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow},destroy:function(){$traceurRuntime.superGet(this,k.prototype,"destroy").call(this)}},{},d),y("autofill",T),h.hooks.register("modifyAutofillRange"),h.hooks.register("beforeAutofill")},{"3rdparty/walkontable/src/cell/coords":6,_base:62,browser:24,eventManager:42,"helpers/array":43,"helpers/dom/element":47,plugins:61,utils:66}],66:[function(e,t,n){"use strict";function o(e,t,n,o){var r=n.length,i=n?n[0].length:0,s=[],a=t.row-e.row,l=t.col-e.col;if(["down","up"].indexOf(o)!==-1){for(var u=[],c=0;c<=l;c++){var d=parseInt(n[0][c],10),h=parseInt(n[r-1][c],10),f=("down"===o?h-d:d-h)/(r-1)||0;u.push(f)}s.push(u)}if(["right","left"].indexOf(o)!==-1)for(var p=0;p<=a;p++){var m=parseInt(n[p][0],10),g=parseInt(n[p][i-1],10),w=("right"===o?g-m:m-g)/(i-1)||0;s.push([w])}return s}function r(e,t){var n,o,r;return t[0]===e[0]&&t[1]<e[1]?(r="left",n=new WalkontableCellCoords(t[0],t[1]),o=new WalkontableCellCoords(t[2],e[1]-1)):t[0]===e[0]&&t[3]>e[3]?(r="right",n=new WalkontableCellCoords(t[0],e[3]+1),o=new WalkontableCellCoords(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(r="up",n=new WalkontableCellCoords(t[0],t[1]),o=new WalkontableCellCoords(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(r="down",n=new WalkontableCellCoords(e[2]+1,t[1]),o=new WalkontableCellCoords(t[2],t[3])),{directionOfDrag:r,startOfDragCoords:n,endOfDragCoords:o}}function i(e){var t={};return e===!0?(t.directions=Object.keys(c),t.autoInsertRow=!0):l(e)?(u(e.autoInsertRow)?e.direction===c.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,u(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(c)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1),t}Object.defineProperties(n,{DIRECTIONS:{get:function(){return c}},getDeltas:{get:function(){return o}},getDragDirectionAndRange:{get:function(){return r}},getMappedFillHandleSetting:{get:function(){return i}},__esModule:{value:!0}});var s,a,l=(s=e("helpers/object"),s&&s.__esModule&&s||{default:s}).isObject,u=(a=e("helpers/mixed"),a&&a.__esModule&&a||{default:a}).isDefined,c={horizontal:"horizontal",vertical:"vertical"}},{"helpers/mixed":51,"helpers/object":53}],67:[function(e,t,n){"use strict";Object.defineProperties(n,{ColumnSorting:{get:function(){return M}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c,d=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,h=(r=e("moment"),r&&r.__esModule&&r||{default:r}).default,f=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),p=f.addClass,m=f.hasClass,g=f.removeClass,w=(s=e("helpers/array"),s&&s.__esModule&&s||{default:s}),v=w.arrayMap,y=w.arrayReduce,b=(a=e("helpers/mixed"),a&&a.__esModule&&a||{default:a}).isEmpty,C=(l=e("_base"),l&&l.__esModule&&l||{default:l}).default,_=(u=e("plugins"),u&&u.__esModule&&u||{default:u}).registerPlugin,R=(c=e("utils/sortingAlgorithms/mergeSort"),c&&c.__esModule&&c||{default:c}).mergeSort;d.hooks.register("beforeColumnSort"),d.hooks.register("afterColumnSort");var M=function(e){$traceurRuntime.superConstructor(S).call(this,e),this.sortIndicators=[],this.lastSortedColumn=null,this.sortEmptyCells=!1},S=M;$traceurRuntime.createClass(M,{isEnabled:function(){return!!this.hot.getSettings().columnSorting},enablePlugin:function(){var e=this;if(!this.enabled){this.setPluginOptions();var t=this;this.hot.sortIndex=[],this.hot.sort=function(){var e=Array.prototype.slice.call(arguments);return t.sortByColumn.apply(t,e)},"undefined"==typeof this.hot.getSettings().observeChanges&&this.enableObserveChangesPlugin(),this.addHook("afterTrimRow",function(t){return e.sort()}),this.addHook("afterUntrimRow",function(t){return e.sort()}),this.addHook("modifyRow",function(t){return e.translateRow(t)}),this.addHook("unmodifyRow",function(t){return e.untranslateRow(t)}),this.addHook("afterUpdateSettings",function(){return e.onAfterUpdateSettings()}),this.addHook("afterGetColHeader",function(t,n){return e.getColHeader(t,n)}),this.addHook("afterOnCellMouseDown",function(t,n){return e.onAfterOnCellMouseDown(t,n)}),this.addHook("afterCreateRow",function(){t.afterCreateRow.apply(t,arguments)}),this.addHook("afterRemoveRow",function(){t.afterRemoveRow.apply(t,arguments)}),this.addHook("afterInit",function(){return e.sortBySettings()}),this.addHook("afterLoadData",function(){e.hot.sortIndex=[],e.hot.view&&e.sortBySettings()}),this.hot.view&&this.sortBySettings(),$traceurRuntime.superGet(this,S.prototype,"enablePlugin").call(this)}},disablePlugin:function(){this.hot.sort=void 0,$traceurRuntime.superGet(this,S.prototype,"disablePlugin").call(this)},onAfterUpdateSettings:function(){this.sortBySettings()},sortBySettings:function(){var e,t,n=this.hot.getSettings().columnSorting,o=this.loadSortingState();"undefined"==typeof o?(e=n.column,t=n.sortOrder):(e=o.sortColumn,t=o.sortOrder),"number"==typeof e&&(this.lastSortedColumn=e,this.sortByColumn(e,t))},setSortingColumn:function(e,t){return"undefined"==typeof e?(this.hot.sortColumn=void 0,void(this.hot.sortOrder=void 0)):(this.hot.sortColumn===e&&"undefined"==typeof t?this.hot.sortOrder===!1?this.hot.sortOrder=void 0:this.hot.sortOrder=!this.hot.sortOrder:this.hot.sortOrder="undefined"==typeof t||t,void(this.hot.sortColumn=e))},sortByColumn:function(e,t){if(this.setSortingColumn(e,t),"undefined"!=typeof this.hot.sortColumn){var n=d.hooks.run(this.hot,"beforeColumnSort",this.hot.sortColumn,this.hot.sortOrder);n!==!1&&this.sort(),this.updateOrderClass(),this.updateSortIndicator(),d.hooks.run(this.hot,"afterColumnSort",this.hot.sortColumn,this.hot.sortOrder),this.hot.render(),this.saveSortingState()}},saveSortingState:function(){var e={};"undefined"!=typeof this.hot.sortColumn&&(e.sortColumn=this.hot.sortColumn),"undefined"!=typeof this.hot.sortOrder&&(e.sortOrder=this.hot.sortOrder),(e.hasOwnProperty("sortColumn")||e.hasOwnProperty("sortOrder"))&&d.hooks.run(this.hot,"persistentStateSave","columnSorting",e)},loadSortingState:function(){var e={};return d.hooks.run(this.hot,"persistentStateLoad","columnSorting",e),e.value},updateOrderClass:function(){var e;this.hot.sortOrder===!0?e="ascending":this.hot.sortOrder===!1&&(e="descending"),this.sortOrderClass=e},enableObserveChangesPlugin:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.updateSettings({observeChanges:!0})},0))},defaultSort:function(e,t){return function(n,o){return"string"==typeof n[1]&&(n[1]=n[1].toLowerCase()),"string"==typeof o[1]&&(o[1]=o[1].toLowerCase()),n[1]===o[1]?0:b(n[1])?b(o[1])?0:t.columnSorting.sortEmptyCells&&e?-1:1:b(o[1])?b(n[1])?0:t.columnSorting.sortEmptyCells&&e?1:-1:isNaN(n[1])&&!isNaN(o[1])?e?1:-1:!isNaN(n[1])&&isNaN(o[1])?e?-1:1:(isNaN(n[1])||isNaN(o[1])||(n[1]=parseFloat(n[1]),o[1]=parseFloat(o[1])),n[1]<o[1]?e?-1:1:n[1]>o[1]?e?1:-1:0)}},dateSort:function(e,t){return function(n,o){if(n[1]===o[1])return 0;if(b(n[1]))return b(o[1])?0:t.columnSorting.sortEmptyCells&&e?-1:1;if(b(o[1]))return b(n[1])?0:t.columnSorting.sortEmptyCells&&e?1:-1;var r=h(n[1],t.dateFormat),i=h(o[1],t.dateFormat);return r.isValid()?i.isValid()?i.isAfter(r)?e?-1:1:i.isBefore(r)?e?1:-1:0:-1:1}},numericSort:function(e,t){return function(n,o){var r=parseFloat(n[1]),i=parseFloat(o[1]);if(r===i||isNaN(r)&&isNaN(i))return 0;if(t.columnSorting.sortEmptyCells){if(b(n[1]))return e?-1:1;if(b(o[1]))return e?1:-1}return isNaN(r)?1:isNaN(i)?-1:r<i?e?-1:1:r>i?e?1:-1:0}},sort:function(){if("undefined"==typeof this.hot.sortOrder)return void(this.hot.sortIndex.length=0);var e,t,n=this.hot.getCellMeta(0,this.hot.sortColumn),o=this.hot.countEmptyRows();this.hot.sortingEnabled=!1,this.hot.sortIndex.length=0,"undefined"==typeof n.columnSorting.sortEmptyCells&&(n.columnSorting={sortEmptyCells:this.sortEmptyCells}),t=this.hot.getSettings().maxRows===Number.POSITIVE_INFINITY?this.hot.countRows()-this.hot.getSettings().minSpareRows:this.hot.countRows()-o;for(var r=0,i=t;r<i;r++)this.hot.sortIndex.push([r,this.hot.getDataAtCell(r,this.hot.sortColumn)]);if(n.sortFunction)e=n.sortFunction;else switch(n.type){case"date":e=this.dateSort;break;case"numeric":e=this.numericSort;break;default:e=this.defaultSort}R(this.hot.sortIndex,e(this.hot.sortOrder,n));for(var s=this.hot.sortIndex.length;s<this.hot.countRows();s++)this.hot.sortIndex.push([s,this.hot.getDataAtCell(s,this.hot.sortColumn)]);this.hot.sortingEnabled=!0},updateSortIndicator:function(){if("undefined"!=typeof this.hot.sortOrder){var e=this.hot.getCellMeta(0,this.hot.sortColumn);this.sortIndicators[this.hot.sortColumn]=e.sortIndicator}},translateRow:function(e){return this.hot.sortingEnabled&&"undefined"!=typeof this.hot.sortOrder&&this.hot.sortIndex&&this.hot.sortIndex.length&&this.hot.sortIndex[e]?this.hot.sortIndex[e][0]:e},untranslateRow:function(e){if(this.hot.sortingEnabled&&this.hot.sortIndex&&this.hot.sortIndex.length)for(var t=0;t<this.hot.sortIndex.length;t++)if(this.hot.sortIndex[t][0]==e)return t},getColHeader:function(e,t){if(e<0||!t.parentNode)return!1;var n=t.querySelector(".colHeader"),o=(t.getAttribute("colspan"),t.parentNode.parentNode.childNodes),r=Array.prototype.indexOf.call(o,t.parentNode);r-=o.length,n&&(this.hot.getSettings().columnSorting&&e>=0&&r===-1&&p(n,"columnSorting"),g(n,"descending"),g(n,"ascending"),this.sortIndicators[e]&&e===this.hot.sortColumn&&("ascending"===this.sortOrderClass?p(n,"ascending"):"descending"===this.sortOrderClass&&p(n,"descending")))},isSorted:function(){return"undefined"!=typeof this.hot.sortColumn},afterCreateRow:function(e,t){if(this.isSorted()){for(var n=0;n<this.hot.sortIndex.length;n++)this.hot.sortIndex[n][0]>=e&&(this.hot.sortIndex[n][0]+=t);for(var n=0;n<t;n++)this.hot.sortIndex.splice(e+n,0,[e+n,this.hot.getSourceData()[e+n][this.hot.sortColumn+this.hot.colOffset()]]);this.saveSortingState()}},afterRemoveRow:function(e,t){function n(e){return y(o,function(t,n){return e>n&&t++,t},0)}if(this.isSorted()){var o=this.hot.sortIndex.splice(e,t);o=v(o,function(e){return e[0]}),this.hot.sortIndex=v(this.hot.sortIndex,function(e,t){var o=n(e[0]);return o&&(e[0]-=o),e}),this.saveSortingState()}},setPluginOptions:function(){var e=this.hot.getSettings().columnSorting;"object"==typeof e?this.sortEmptyCells=e.sortEmptyCells||!1:this.sortEmptyCells=!1},onAfterOnCellMouseDown:function(e,t){t.row>-1||m(e.realTarget,"columnSorting")&&(t.col!==this.lastSortedColumn&&(this.hot.sortOrder=!0),this.lastSortedColumn=t.col,this.sortByColumn(t.col))}},{},C),_("columnSorting",M)},{_base:62,browser:24,"helpers/array":43,"helpers/dom/element":47,"helpers/mixed":51,moment:"moment",plugins:61,"utils/sortingAlgorithms/mergeSort":132}],68:[function(e,t,n){"use strict";Object.defineProperties(n,{CommentEditor:{get:function(){return i}},__esModule:{value:!0}});var o,r=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}).addClass,i=function(){this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.hidden=!0,this.hide()},s=i;$traceurRuntime.createClass(i,{setPosition:function(e,t){this.editorStyle.left=e+"px",this.editorStyle.top=t+"px"},setSize:function(e,t){if(e&&t){var n=this.getInputElement();n.style.width=e+"px",n.style.height=t+"px"}},resetSize:function(){var e=this.getInputElement();e.style.width="",e.style.height=""},setReadOnlyState:function(e){var t=this.getInputElement();t.readOnly=e},show:function(){this.editorStyle.display="block",this.hidden=!1},hide:function(){this.editorStyle.display="none",this.hidden=!0},isVisible:function(){return"block"===this.editorStyle.display},setValue:function(){var e=void 0!==arguments[0]?arguments[0]:"";e=e||"",this.getInputElement().value=e},getValue:function(){return this.getInputElement().value},isFocused:function(){return document.activeElement===this.getInputElement()},focus:function(){this.getInputElement().focus()},createEditor:function(){var e,t,n=document.querySelector("."+s.CLASS_EDITOR_CONTAINER);return n||(n=document.createElement("div"),r(n,s.CLASS_EDITOR_CONTAINER),document.body.appendChild(n)),e=document.createElement("div"),r(e,s.CLASS_EDITOR),t=document.createElement("textarea"),r(t,s.CLASS_INPUT),e.appendChild(t),n.appendChild(e),e},getInputElement:function(){return this.editor.querySelector("."+s.CLASS_INPUT)},destroy:function(){this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null}},{get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"},get CLASS_EDITOR(){return"htComments"},get CLASS_INPUT(){return"htCommentTextArea"},get CLASS_CELL(){return"htCommentCell"}})},{"helpers/dom/element":47}],69:[function(e,t,n){"use strict";var o;Object.defineProperties(n,{Comments:{get:function(){return B}},__esModule:{value:!0}});var r,i,s,a,l,u,c,d,h,f,p=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,m=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),g=m.addClass,w=m.closest,v=m.isChildOf,y=m.hasClass,b=m.offset,C=m.outerWidth,_=m.outerHeight,R=m.getScrollableElement,M=(s=e("helpers/object"),s&&s.__esModule&&s||{default:s}),S=M.deepClone,E=M.deepExtend,O=(a=e("helpers/function"),a&&a.__esModule&&a||{default:a}).debounce,T=(l=e("eventManager"),l&&l.__esModule&&l||{default:l}).EventManager,k=(u=e("3rdparty/walkontable/src/cell/coords"),u&&u.__esModule&&u||{default:u}).WalkontableCellCoords,x=(c=e("plugins"),c&&c.__esModule&&c||{default:c}).registerPlugin,D=(d=e("_base"),d&&d.__esModule&&d||{default:d}).default,H=(h=e("commentEditor"),h&&h.__esModule&&h||{default:h}).CommentEditor,A=(f=e("contextMenu/utils"),f&&f.__esModule&&f||{default:f}),P=A.checkSelectionConsistency,N=A.markLabelAsSelected,L=new WeakMap,I="comment",W="value",j="style",V="readOnly",B=function(e){$traceurRuntime.superConstructor(F).call(this,e),this.editor=null,this.eventManager=null,this.range={},this.mouseDown=!1,this.contextMenuEvent=!1,this.timer=null,this.displayDelay=250,L.set(this,{tempEditorDimensions:{},cellBelowCursor:null})},F=B;$traceurRuntime.createClass(B,(o={},Object.defineProperty(o,"isEnabled",{value:function(){return!!this.hot.getSettings().comments},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"enablePlugin",{value:function(){var e=this;this.enabled||(this.editor||(this.editor=new H),this.eventManager||(this.eventManager=new T(this)),this.addHook("afterContextMenuDefaultOptions",function(t){return e.addToContextMenu(t)}),this.addHook("afterRenderer",function(t,n,o,r,i,s){return e.onAfterRenderer(t,s)}),this.addHook("afterScrollHorizontally",function(){return e.hide()}),this.addHook("afterScrollVertically",function(){return e.hide()}),this.addHook("afterBeginEditing",function(t){return e.onAfterBeginEditing(t)}),this.registerListeners(),$traceurRuntime.superGet(this,F.prototype,"enablePlugin").call(this))},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"disablePlugin",{value:function(){$traceurRuntime.superGet(this,F.prototype,"disablePlugin").call(this)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"registerListeners",{value:function(){var e=this;this.eventManager.addEventListener(document,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(document,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(document,"mouseup",function(t){return e.onMouseUp(t)}),this.eventManager.addEventListener(this.editor.getInputElement(),"blur",function(t){return e.onEditorBlur(t)}),this.eventManager.addEventListener(this.editor.getInputElement(),"mousedown",function(t){return e.onEditorMouseDown(t)}),this.eventManager.addEventListener(this.editor.getInputElement(),"mouseup",function(t){return e.onEditorMouseUp(t)})},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"setRange",{value:function(e){this.range=e},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"clearRange",{value:function(){this.range={}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"targetIsCellWithComment",{value:function(e){var t=w(e.target,"TD","TBODY");return!!(t&&y(t,"htCommentCell")&&w(t,[this.hot.rootElement]))},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"targetIsCommentTextArea",{value:function(e){return this.editor.getInputElement()===e.target},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"setComment",{value:function(e){var t;if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var n=this.editor.getValue(),o="";null!=e?o=e:null!=n&&(o=n);var r=this.range.from.row,i=this.range.from.col;this.updateCommentMeta(r,i,(t={},Object.defineProperty(t,W,{value:o,configurable:!0,enumerable:!0,writable:!0}),t)),this.hot.render()},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"setCommentAtCell",{value:function(e,t,n){this.setRange({from:new k(e,t)}),this.setComment(n)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"removeComment",{value:function(){var e=void 0===arguments[0]||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');this.hot.setCellMeta(this.range.from.row,this.range.from.col,I,void 0),e&&this.hot.render(),this.hide()},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"removeCommentAtCell",{value:function(e,t){var n=void 0===arguments[2]||arguments[2];this.setRange({from:new k(e,t)}),this.removeComment(n)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"getComment",{value:function(){var e=this.range.from.row,t=this.range.from.col;return this.getCommentMeta(e,t,W)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"getCommentAtCell",{value:function(e,t){return this.getCommentMeta(e,t,W)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"show",{value:function(){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var e=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.refreshEditor(!0),this.editor.setValue(e[I]?e[I][W]:""),this.editor.hidden&&this.editor.show(),!0},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"showAtCell",{value:function(e,t){return this.setRange({from:new k(e,t)}),this.show()},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"hide",{value:function(){this.editor.hidden||this.editor.hide()},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"refreshEditor",{value:function(){var e=void 0!==arguments[0]&&arguments[0];if(e||this.range.from&&this.editor.isVisible()){var t=R(this.hot.view.wt.wtTable.TABLE),n=this.hot.view.wt.wtTable.getCell(this.range.from),o=this.range.from.row,r=this.range.from.col,i=b(n),s=this.hot.view.wt.wtTable.getStretchedColumnWidth(r),a=i.top<0?0:i.top,l=i.left;this.hot.view.wt.wtViewport.hasVerticalScroll()&&t!==window&&(a-=this.hot.view.wt.wtOverlays.topOverlay.getScrollPosition()),this.hot.view.wt.wtViewport.hasHorizontalScroll()&&t!==window&&(l-=this.hot.view.wt.wtOverlays.leftOverlay.getScrollPosition());var u=l+s,c=a,d=this.getCommentMeta(o,r,j),h=this.getCommentMeta(o,r,V);d?this.editor.setSize(d.width,d.height):this.editor.resetSize(),this.editor.setReadOnlyState(h),this.editor.setPosition(u,c)}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"checkSelectionCommentsConsistency",{value:function(){var e=this.hot.getSelectedRange();if(!e)return!1;var t=!1,n=e.from;return this.getCommentMeta(n.row,n.col,W)&&(t=!0),t},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"updateCommentMeta",{value:function(e,t,n){var o,r=this.hot.getCellMeta(e,t)[I];r?(o=S(r),E(o,n)):o=n,this.hot.setCellMeta(e,t,I,o)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"getCommentMeta",{value:function(e,t,n){var o=this.hot.getCellMeta(e,t);if(o[I])return o[I][n]},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"onMouseDown",{value:function(e){if(this.mouseDown=!0,this.hot.view&&this.hot.view.wt){if(!this.contextMenuEvent&&!this.targetIsCommentTextArea(e)){var t=w(e.target,"TD","TBODY"),n=null;t&&(n=this.hot.view.wt.wtTable.getCoords(t)),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}this.contextMenuEvent=!1}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"onMouseOver",{value:function(e){var t=this;if(!this.mouseDown&&!this.editor.isFocused()){var n=L.get(this);n.cellBelowCursor=document.elementFromPoint(e.clientX,e.clientY),O(function(){if(!y(e.target,"wtBorder")&&n.cellBelowCursor===e.target&&t.editor)if(t.targetIsCellWithComment(e)){var o=t.hot.view.wt.wtTable.getCoords(e.target),r={from:new k(o.row,o.col)};t.setRange(r),t.show()}else!v(e.target,document)||t.targetIsCommentTextArea(e)||t.editor.isFocused()||t.hide()},this.displayDelay)()}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"onMouseUp",{value:function(e){this.mouseDown=!1},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"onAfterRenderer",{value:function(e,t){t[I]&&t[I][W]&&g(e,t.commentedCellClassName)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"onEditorBlur",{value:function(e){this.setComment()},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"onEditorMouseDown",{value:function(e){var t=L.get(this);t.tempEditorDimensions={width:C(e.target),height:_(e.target)}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"onEditorMouseUp",{value:function(e){var t,n=L.get(this),o=C(e.target),r=_(e.target);o===n.tempEditorDimensions.width+1&&r===n.tempEditorDimensions.height+2||this.updateCommentMeta(this.range.from.row,this.range.from.col,(t={},Object.defineProperty(t,j,{value:{width:o,height:r},configurable:!0,enumerable:!0,writable:!0}),t))},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"onContextMenuAddComment",{value:function(){var e=this,t=this.hot.getSelectedRange();this.contextMenuEvent=!0,this.setRange({from:t.from}),this.show(),setTimeout(function(){e.hot&&(e.hot.deselectCell(),e.editor.focus())},10)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"onContextMenuRemoveComment",{value:function(e){this.contextMenuEvent=!0;for(var t=e.start.row;t<=e.end.row;t++)for(var n=e.start.col;n<=e.end.col;n++)this.removeCommentAtCell(t,n,!1);this.hot.render()},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"onContextMenuMakeReadOnly",{value:function(e){var t;this.contextMenuEvent=!0;for(var n=e.start.row;n<=e.end.row;n++)for(var o=e.start.col;o<=e.end.col;o++){var r=!!this.getCommentMeta(n,o,V);this.updateCommentMeta(n,o,(t={},Object.defineProperty(t,V,{value:!r,configurable:!0,enumerable:!0,writable:!0}),t))}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"addToContextMenu",{value:function(e){var t=this;e.items.push(p.plugins.ContextMenu.SEPARATOR,{key:"commentsAddEdit",name:function(){return t.checkSelectionCommentsConsistency()?"Edit comment":"Add comment"},callback:function(){return t.onContextMenuAddComment()},disabled:function(){return!(this.getSelected()&&!this.selection.selectedHeader.corner)}},{key:"commentsRemove",name:function(){return"Delete comment"},callback:function(e,n){return t.onContextMenuRemoveComment(n);
},disabled:function(){return t.hot.selection.selectedHeader.corner}},{key:"commentsReadOnly",name:function(){var e=this,t="Read only comment",n=P(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n)[I];if(o&&(o=o[V]),o)return!0});return n&&(t=N(t)),t},callback:function(e,n){return t.onContextMenuMakeReadOnly(n)},disabled:function(){return t.hot.selection.selectedHeader.corner||!t.checkSelectionCommentsConsistency()}})},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"onAfterBeginEditing",{value:function(e,t){this.hide()},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"destroy",{value:function(){this.editor&&this.editor.destroy(),$traceurRuntime.superGet(this,F.prototype,"destroy").call(this)},configurable:!0,enumerable:!0,writable:!0}),o),{},D),x("comments",B)},{"3rdparty/walkontable/src/cell/coords":6,_base:62,browser:24,commentEditor:68,"contextMenu/utils":88,eventManager:42,"helpers/dom/element":47,"helpers/function":50,"helpers/object":53,plugins:61}],70:[function(e,t,n){"use strict";function o(e,t){var n;return i(t,function(t){var o=t.key?t.key.split(":"):null;if(Array.isArray(o)&&o[1]===e)return n=t,!1}),n}Object.defineProperties(n,{CommandExecutor:{get:function(){return s}},__esModule:{value:!0}});var r,i=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}).arrayEach,s=function(e){this.hot=e,this.commands={},this.commonCallback=null};$traceurRuntime.createClass(s,{registerCommand:function(e,t){this.commands[e]=t},setCommonCallback:function(e){this.commonCallback=e},execute:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this,s=e.split(":");e=s[0];var a=2===s.length?s[1]:null,l=this.commands[e];if(!l)throw new Error("Menu command '"+e+"' not exists.");if(a&&l.submenu&&(l=o(a,l.submenu.items)),l.disabled!==!0&&("function"!=typeof l.disabled||l.disabled.call(this.hot)!==!0)&&!l.hasOwnProperty("submenu")){var u=[];"function"==typeof l.callback&&u.push(l.callback),"function"==typeof this.commonCallback&&u.push(this.commonCallback),t.unshift(s.join(":")),i(u,function(e){return e.apply(r.hot,t)})}}},{})},{"helpers/array":43}],71:[function(e,t,n){"use strict";Object.defineProperties(n,{ContextMenu:{get:function(){return F}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c,d,h,l,f,p=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,m=(r=e("_base"),r&&r.__esModule&&r||{default:r}).default,g=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).arrayEach,w=(s=e("commandExecutor"),s&&s.__esModule&&s||{default:s}).CommandExecutor,v=(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).EventManager,y=(l=e("helpers/dom/element"),l&&l.__esModule&&l||{default:l}).hasClass,b=(u=e("itemsFactory"),u&&u.__esModule&&u||{default:u}).ItemsFactory,C=(c=e("menu"),c&&c.__esModule&&c||{default:c}).Menu,_=(d=e("plugins"),d&&d.__esModule&&d||{default:d}).registerPlugin,R=(h=e("helpers/dom/event"),h&&h.__esModule&&h||{default:h}),M=R.stopPropagation,S=R.pageX,E=R.pageY,O=(l=e("helpers/dom/element"),l&&l.__esModule&&l||{default:l}),T=O.getWindowScrollLeft,k=O.getWindowScrollTop,x=(f=e("predefinedItems"),f&&f.__esModule&&f||{default:f}),D=x.ROW_ABOVE,H=x.ROW_BELOW,A=x.COLUMN_LEFT,P=x.COLUMN_RIGHT,N=x.REMOVE_ROW,L=x.REMOVE_COLUMN,I=x.UNDO,W=x.REDO,j=x.READ_ONLY,V=x.ALIGNMENT,B=x.SEPARATOR,F=function(e){$traceurRuntime.superConstructor(z).call(this,e),this.eventManager=new v(this),this.commandExecutor=new w(this.hot),this.itemsFactory=null,this.menu=null},z=F;$traceurRuntime.createClass(F,{isEnabled:function(){return this.hot.getSettings().contextMenu},enablePlugin:function(){var e=this;if(!this.enabled){this.itemsFactory=new b(this.hot,z.DEFAULT_ITEMS);var t=this.hot.getSettings().contextMenu,n={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),$traceurRuntime.superGet(this,z.prototype,"enablePlugin").call(this),this.callOnPluginsReady(function(){e.hot.runHooks("afterContextMenuDefaultOptions",n),e.itemsFactory.setPredefinedItems(n.items);var o=e.itemsFactory.getItems(t);e.menu=new C(e.hot,{className:"htContextMenu",keepInViewport:!0}),e.hot.runHooks("beforeContextMenuSetItems",o),e.menu.setMenuItems(o),e.menu.addLocalHook("afterOpen",function(){return e.onMenuAfterOpen()}),e.menu.addLocalHook("afterClose",function(){return e.onMenuAfterClose()}),e.menu.addLocalHook("executeCommand",function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.executeCommand.apply(e,t)}),g(o,function(t){return e.commandExecutor.registerCommand(t.key,t)})})}},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,z.prototype,"updatePlugin").call(this)},disablePlugin:function(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),$traceurRuntime.superGet(this,z.prototype,"disablePlugin").call(this)},registerEvents:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"contextmenu",function(t){return e.onContextMenu(t)})},open:function(e){this.menu&&(this.menu.open(),this.menu.setPosition({top:parseInt(E(e),10)-k(),left:parseInt(S(e),10)-T()}),this.menu.hotMenu.isHotTableEnv=this.hot.isHotTableEnv,p.eventManager.isHotTableEnv=this.hot.isHotTableEnv)},close:function(){this.menu&&this.menu.close()},executeCommand:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.commandExecutor.execute.apply(this.commandExecutor,e)},onContextMenu:function(e){function t(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}var n=this.hot.getSettings(),o=n.rowHeaders,r=n.colHeaders,i=e.realTarget;this.close(),y(i,"handsontableInput")||(e.preventDefault(),M(e),(o||r||t(i)||y(i,"current")&&y(i,"wtBorder"))&&this.open(e))},onMenuAfterOpen:function(){this.hot.runHooks("afterContextMenuShow",this)},onMenuAfterClose:function(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)},destroy:function(){this.close(),this.menu&&this.menu.destroy(),$traceurRuntime.superGet(this,z.prototype,"destroy").call(this)}},{get DEFAULT_ITEMS(){return[D,H,B,A,P,B,N,L,B,I,W,B,j,B,V]}},m),F.SEPARATOR={name:B},p.hooks.register("afterContextMenuDefaultOptions"),p.hooks.register("afterContextMenuShow"),p.hooks.register("afterContextMenuHide"),p.hooks.register("afterContextMenuExecute"),_("contextMenu",F)},{_base:62,browser:24,commandExecutor:70,eventManager:42,"helpers/array":43,"helpers/dom/element":47,"helpers/dom/event":48,itemsFactory:73,menu:74,plugins:61,predefinedItems:75}],72:[function(e,t,n){"use strict";Object.defineProperties(n,{Cursor:{get:function(){return f}},__esModule:{value:!0}});var o,r,i,s=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,a=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),l=a.getWindowScrollLeft,u=a.getWindowScrollTop,c=(i=e("helpers/dom/event"),i&&i.__esModule&&i||{default:i}),d=c.pageX,h=c.pageY,f=function(e){var t,n,o,r,i,s,a=u(),c=l();this.type=this.getSourceType(e),"literal"===this.type?(t=parseInt(e.top,10),o=parseInt(e.left,10),i=e.height||0,s=e.width||0,n=t,r=o,t+=a,o+=c):"event"===this.type&&(t=parseInt(h(e),10),o=parseInt(d(e),10),i=e.target.clientHeight,s=e.target.clientWidth,n=t-a,r=o-c),this.top=t,this.topRelative=n,this.left=o,this.leftRelative=r,this.scrollTop=a,this.scrollLeft=c,this.cellHeight=i,this.cellWidth=s};$traceurRuntime.createClass(f,{getSourceType:function(e){var t="literal";return e instanceof Event&&(t="event"),t},fitsAbove:function(e){return this.topRelative>=e.offsetHeight},fitsBelow:function(e){var t=void 0!==arguments[1]?arguments[1]:window.innerHeight;return this.topRelative+e.offsetHeight<=t},fitsOnRight:function(e){var t=void 0!==arguments[1]?arguments[1]:window.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t},fitsOnLeft:function(e){return this.leftRelative>=e.offsetWidth}},{}),s.plugins.utils=s.plugins.utils||{},s.plugins.utils.Cursor=f},{browser:24,"helpers/dom/element":47,"helpers/dom/event":48}],73:[function(e,t,n){"use strict";function o(){var e=void 0!==arguments[0]?arguments[0]:null,t=void 0!==arguments[1]?arguments[1]:[],n=void 0!==arguments[2]?arguments[2]:{},o=[];return e&&e.items?e=e.items:Array.isArray(e)||(e=t),u(e)?l(e,function(e,t){var r=n["string"==typeof e?e:t];r||(r=e),u(e)?c(r,e):"string"==typeof r&&(r={name:r}),void 0===r.key&&(r.key=t),o.push(r)}):d(e,function(e,t){var r=n[e];!r&&p.indexOf(e)>=0||(r||(r={name:e,key:t+""}),u(e)&&c(r,e),void 0===r.key&&(r.key=t),o.push(r))}),o}Object.defineProperties(n,{ItemsFactory:{get:function(){return g}},__esModule:{value:!0}});var r,i,s,a=(r=e("helpers/object"),r&&r.__esModule&&r||{default:r}),l=a.objectEach,u=a.isObject,c=a.extend,d=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).arrayEach,h=(s=e("predefinedItems"),s&&s.__esModule&&s||{default:s}),f=h.SEPARATOR,p=h.ITEMS,m=h.predefinedItems,g=function(e){var t=void 0!==arguments[1]?arguments[1]:null;this.hot=e,this.predefinedItems=m(),this.defaultOrderPattern=t};$traceurRuntime.createClass(g,{setPredefinedItems:function(e){var t=this,n={};this.defaultOrderPattern.length=0,l(e,function(e,o){var r="";e.name===f?(n[f]=e,r=f):isNaN(parseInt(o,10))?(e.key=void 0===e.key?o:e.key,n[o]=e,r=e.key):(n[e.key]=e,r=e.key),t.defaultOrderPattern.push(r)}),this.predefinedItems=n},getItems:function(){var e=void 0!==arguments[0]?arguments[0]:null;return o(e,this.defaultOrderPattern,this.predefinedItems)}},{})},{"helpers/array":43,"helpers/object":53,predefinedItems:75}],74:[function(e,t,n){"use strict";Object.defineProperties(n,{Menu:{get:function(){return z}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c,d,h,f,p,m=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,g=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),w=g.addClass,v=g.empty,y=g.fastInnerHTML,b=g.getScrollbarWidth,C=g.isChildOf,_=g.removeClass,R=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}),M=R.arrayEach,S=R.arrayFilter,E=R.arrayReduce,O=(s=e("cursor"),s&&s.__esModule&&s||{default:s}).Cursor,T=(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).EventManager,k=(l=e("helpers/object"),l&&l.__esModule&&l||{default:l}).mixin,x=(u=e("helpers/function"),u&&u.__esModule&&u||{default:u}).debounce,D=(c=e("utils"),c&&c.__esModule&&c||{default:c}),H=D.filterSeparators,A=D.hasSubMenu,P=D.isDisabled,N=D.isItemHidden,L=D.isSeparator,I=D.isSelectionDisabled,W=D.normalizeSelection,j=(d=e("helpers/unicode"),d&&d.__esModule&&d||{default:d}).KEY_CODES,V=(h=e("mixins/localHooks"),h&&h.__esModule&&h||{default:h}).localHooks,B=(f=e("predefinedItems"),f&&f.__esModule&&f||{default:f}).SEPARATOR,F=(p=e("helpers/dom/event"),p&&p.__esModule&&p||{default:p}).stopImmediatePropagation,z=function(e,t){this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1},this.eventManager=new T(this),this.container=this.createContainer(this.options.name),this.hotMenu=null,this.hotSubMenus={},this.parentMenu=this.options.parent||null,this.menuItems=null,this.origOutsideClickDeselects=null,this.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()},Y=z;$traceurRuntime.createClass(z,{registerEvents:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){return e.onDocumentMouseDown(t)})},setMenuItems:function(e){this.menuItems=e},setOffset:function(e){var t=void 0!==arguments[1]?arguments[1]:0;this.offset[e]=t},isSubMenu:function(){return null!==this.parentMenu},open:function(){var e=this;this.container.removeAttribute("style"),this.container.style.display="block";var t=x(function(t){return e.openSubMenu(t)},300),n=S(this.menuItems,function(t){return N(t,e.hot)});n=H(n,B);var o={data:n,colHeaders:!1,colWidths:[200],autoRowSize:!1,readOnly:!0,copyPaste:!1,columns:[{data:"name",renderer:function(t,n,o,r,i,s){return e.menuItemRenderer(t,n,o,r,i,s)}}],renderAllRows:!0,fragmentSelection:"cell",disableVisualSelection:"area",beforeKeyDown:function(t){return e.onBeforeKeyDown(t)},afterOnCellMouseOver:function(n,o,r){e.isAllSubMenusClosed()?t(o.row):e.openSubMenu(o.row)}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new m.Core(this.container,o),this.hotMenu.addHook("afterInit",function(){return e.onAfterInit()}),this.hotMenu.init(),this.hotMenu.listen(),this.blockMainTableCallbacks(),this.runLocalHooks("afterOpen")},close:function(){var e=void 0!==arguments[0]&&arguments[0];this.isOpened()&&(e&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.parentMenu&&this.parentMenu.hotMenu.listen()))},openSubMenu:function(e){if(!this.hotMenu)return!1;var t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!A(t))return!1;var n=this.hotMenu.getSourceDataAtRow(e),o=new Y(this.hot,{parent:this,name:n.name,className:this.options.className,keepInViewport:!0});return o.setMenuItems(n.submenu.items),o.open(),o.setPosition(t.getBoundingClientRect()),this.hotSubMenus[n.key]=o,o},closeSubMenu:function(e){var t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];n&&(n.destroy(),delete this.hotSubMenus[t.key])},closeAllSubMenus:function(){var e=this;M(this.hotMenu.getData(),function(t,n){return e.closeSubMenu(n)})},isAllSubMenusClosed:function(){return 0===Object.keys(this.hotSubMenus).length},destroy:function(){this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy()},isOpened:function(){return null!==this.hotMenu},executeCommand:function(e){if(this.isOpened()&&this.hotMenu.getSelected()){var t=this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelected()[0]);if(this.runLocalHooks("select",t,e),t.isCommand!==!1&&t.name!==B){var n=this.hot.getSelectedRange(),o=n?W(n):{},r=!0;(t.disabled===!0||"function"==typeof t.disabled&&t.disabled.call(this.hot)===!0||t.submenu)&&(r=!1),this.runLocalHooks("executeCommand",t.key,o,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,o,e),r&&this.close(!0)}}},setPosition:function(e){var t=new O(e);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),t.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(t):this.setPositionOnLeftOfCursor(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))},setPositionAboveCursor:function(e){var t=this.offset.above+e.top-this.container.offsetHeight;this.isSubMenu()&&(t=e.top+e.cellHeight-this.container.offsetHeight+3),this.container.style.top=t+"px"},setPositionBelowCursor:function(e){var t=this.offset.below+e.top;this.isSubMenu()&&(t=e.top-1),this.container.style.top=t+"px"},setPositionOnRightOfCursor:function(e){var t;t=this.isSubMenu()?1+e.left+e.cellWidth:this.offset.right+1+e.left,this.container.style.left=t+"px"},setPositionOnLeftOfCursor:function(e){var t=this.offset.left+e.left-this.container.offsetWidth+b()+4;this.container.style.left=t+"px"},selectFirstCell:function(){var e=this.hotMenu.getCell(0,0);L(e)||P(e)||I(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)},selectLastCell:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);L(t)||P(t)||I(t)?this.selectPrevCell(e,0):this.hotMenu.selectCell(e,0)},selectNextCell:function(e,t){var n=e+1,o=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;o&&(L(o)||P(o)||I(o)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))},selectPrevCell:function(e,t){var n=e-1,o=n>=0?this.hotMenu.getCell(n,t):null;o&&(L(o)||P(o)||I(o)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))},menuItemRenderer:function(e,t,n,o,r,i){var s=this,a=e.getSourceDataAtRow(n),l=document.createElement("div"),u=function(e){return e.hasOwnProperty("submenu")},c=function(e){return new RegExp(B,"i").test(e.name)},d=function(e){return e.disabled===!0||"function"==typeof e.disabled&&e.disabled.call(s.hot)===!0},h=function(e){return e.disableSelection};"function"==typeof i&&(i=i.call(this.hot)),v(t),w(l,"htItemWrapper"),t.appendChild(l),c(a)?w(t,"htSeparator"):"function"==typeof a.renderer?(w(t,"htCustomMenuRenderer"),t.appendChild(a.renderer(e,l,n,o,r,i))):y(l,i),d(a)?(w(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):h(a)?(w(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):u(a)?(w(t,"htSubmenu"),h(a)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,o,void 0,void 0,!1,!1)})):(_(t,"htSubmenu"),_(t,"htDisabled"),h(a)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,o,void 0,void 0,!1,!1)}))},createContainer:function(){var e=void 0!==arguments[0]?arguments[0]:null;e&&(e=e.replace(/ /g,"_"),e=this.options.className+"Sub_"+e);var t;return t=e?document.querySelector("."+this.options.className+"."+e):document.querySelector("."+this.options.className),t||(t=document.createElement("div"),w(t,"htMenu "+this.options.className),e&&w(t,e),document.getElementsByTagName("body")[0].appendChild(t)),t},blockMainTableCallbacks:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)},releaseMainTableCallbacks:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)},onBeforeKeyDown:function(e){var t=this.hotMenu.getSelected(),n=!1;switch(e.keyCode){case j.ESCAPE:this.close(),n=!0;break;case j.ENTER:t&&(this.hotMenu.getSourceDataAtRow(t[0]).submenu?n=!0:(this.executeCommand(e),this.close(!0)));break;case j.ARROW_DOWN:t?this.selectNextCell(t[0],t[1]):this.selectFirstCell(),n=!0;break;case j.ARROW_UP:t?this.selectPrevCell(t[0],t[1]):this.selectLastCell(),n=!0;break;case j.ARROW_RIGHT:if(t){var o=this.openSubMenu(t[0]);o&&o.selectFirstCell()}n=!0;break;case j.ARROW_LEFT:t&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),n=!0)}n&&(e.preventDefault(),F(e))},onAfterInit:function(){var e=this.hotMenu.getSettings().data,t=this.hotMenu.view.wt.wtTable.hider.style,n=this.hotMenu.view.wt.wtTable.holder.style,o=parseInt(t.width,10),r=E(e,function(e,t){return e+(t.name===B?1:26)},0);n.width=o+22+"px",n.height=r+4+"px",t.height=n.height},onDocumentMouseDown:function(e){this.isOpened()&&(this.container&&C(e.target,this.container)&&this.executeCommand(e),this.options.standalone&&this.hotMenu&&!C(e.target,this.hotMenu.rootElement)?this.close(!0):(this.isAllSubMenusClosed()||this.isSubMenu())&&!C(e.target,".htMenu")&&C(e.target,document)&&this.close(!0))}},{}),k(z,V)},{browser:24,cursor:72,eventManager:42,"helpers/array":43,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/function":50,"helpers/object":53,"helpers/unicode":56,"mixins/localHooks":58,predefinedItems:75,utils:88}],75:[function(e,t,n){"use strict";function o(){var e={};return y(oe,function(t,n){return e[n]=t()}),e}function r(e,t){ne.indexOf(e)===-1&&(oe[e]=t)}var i;Object.defineProperties(n,{ALIGNMENT:{get:function(){return a.KEY}},CLEAR_COLUMN:{get:function(){return l.KEY}},COLUMN_LEFT:{get:function(){return u.KEY}},COLUMN_RIGHT:{get:function(){return c.KEY}},READ_ONLY:{get:function(){return d.KEY}},REDO:{get:function(){return h.KEY}},REMOVE_COLUMN:{get:function(){return f.KEY}},REMOVE_ROW:{get:function(){return p.KEY}},ROW_ABOVE:{get:function(){return m.KEY}},ROW_BELOW:{get:function(){return g.KEY}},SEPARATOR:{get:function(){return w.KEY}},UNDO:{get:function(){return v.KEY}},ITEMS:{get:function(){return ne}},predefinedItems:{get:function(){return o}},addItem:{get:function(){return r}},__esModule:{value:!0}});var s,a,l,u,c,d,h,f,p,m,g,w,v,a,l,u,c,d,h,f,p,m,g,w,v,y=(s=e("helpers/object"),s&&s.__esModule&&s||{default:s}).objectEach,b=(a=e("predefinedItems/alignment"),a&&a.__esModule&&a||{default:a}),C=b.alignmentItem,_=b.KEY,R=(l=e("predefinedItems/clearColumn"),l&&l.__esModule&&l||{default:l}),M=R.clearColumnItem,S=R.KEY,E=(u=e("predefinedItems/columnLeft"),u&&u.__esModule&&u||{default:u}),O=E.columnLeftItem,T=E.KEY,k=(c=e("predefinedItems/columnRight"),c&&c.__esModule&&c||{default:c}),x=k.columnRightItem,D=k.KEY,H=(d=e("predefinedItems/readOnly"),d&&d.__esModule&&d||{default:d}),A=H.readOnlyItem,P=H.KEY,N=(h=e("predefinedItems/redo"),h&&h.__esModule&&h||{default:h}),L=N.redoItem,I=N.KEY,W=(f=e("predefinedItems/removeColumn"),f&&f.__esModule&&f||{default:f}),j=W.removeColumnItem,V=W.KEY,B=(p=e("predefinedItems/removeRow"),p&&p.__esModule&&p||{default:p}),F=B.removeRowItem,z=B.KEY,Y=(m=e("predefinedItems/rowAbove"),m&&m.__esModule&&m||{default:m}),U=Y.rowAboveItem,G=Y.KEY,$=(g=e("predefinedItems/rowBelow"),g&&g.__esModule&&g||{default:g}),K=$.rowBelowItem,X=$.KEY,q=(w=e("predefinedItems/separator"),w&&w.__esModule&&w||{default:w}),Z=q.separatorItem,J=q.KEY,Q=(v=e("predefinedItems/undo"),v&&v.__esModule&&v||{default:v}),ee=Q.undoItem,te=Q.KEY,a=(a=e("predefinedItems/alignment"),a&&a.__esModule&&a||{default:a}),l=(l=e("predefinedItems/clearColumn"),l&&l.__esModule&&l||{default:l}),u=(u=e("predefinedItems/columnLeft"),u&&u.__esModule&&u||{default:u}),c=(c=e("predefinedItems/columnRight"),c&&c.__esModule&&c||{default:c}),d=(d=e("predefinedItems/readOnly"),d&&d.__esModule&&d||{default:d}),h=(h=e("predefinedItems/redo"),h&&h.__esModule&&h||{default:h}),f=(f=e("predefinedItems/removeColumn"),f&&f.__esModule&&f||{default:f}),p=(p=e("predefinedItems/removeRow"),p&&p.__esModule&&p||{default:p}),m=(m=e("predefinedItems/rowAbove"),m&&m.__esModule&&m||{default:m}),g=(g=e("predefinedItems/rowBelow"),g&&g.__esModule&&g||{default:g}),w=(w=e("predefinedItems/separator"),w&&w.__esModule&&w||{default:w}),v=(v=e("predefinedItems/undo"),v&&v.__esModule&&v||{default:v}),ne=[G,X,T,D,S,z,V,te,I,P,_,J],oe=(i={},Object.defineProperty(i,J,{value:Z,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,G,{value:U,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,X,{value:K,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,T,{value:O,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,D,{value:x,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,S,{value:M,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,z,{value:F,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,V,{value:j,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,te,{value:ee,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,I,{value:L,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,P,{value:A,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,_,{value:C,configurable:!0,enumerable:!0,writable:!0}),i)},{"helpers/object":53,"predefinedItems/alignment":76,"predefinedItems/clearColumn":77,"predefinedItems/columnLeft":78,"predefinedItems/columnRight":79,"predefinedItems/readOnly":80,"predefinedItems/redo":81,"predefinedItems/removeColumn":82,"predefinedItems/removeRow":83,"predefinedItems/rowAbove":84,"predefinedItems/rowBelow":85,"predefinedItems/separator":86,"predefinedItems/undo":87}],76:[function(e,t,n){"use strict";function o(){return{key:h,name:"Alignment",disabled:function(){return!(this.getSelectedRange()&&!this.selection.selectedHeader.corner)},submenu:{items:[{key:h+":left",name:function(){var e=this,t="Left",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htLeft")!==-1)return!0});return n&&(t=c(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="horizontal",r="htLeft";this.runHooks("beforeCellAlignment",n,t,o,r),a(t,o,r,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1},{key:h+":center",name:function(){var e=this,t="Center",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htCenter")!==-1)return!0});return n&&(t=c(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="horizontal",r="htCenter";this.runHooks("beforeCellAlignment",n,t,o,r),a(t,o,r,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1},{key:h+":right",name:function(){var e=this,t="Right",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htRight")!==-1)return!0});return n&&(t=c(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="horizontal",r="htRight";this.runHooks("beforeCellAlignment",n,t,o,r),a(t,o,r,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1},{key:h+":justify",name:function(){var e=this,t="Justify",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htJustify")!==-1)return!0});return n&&(t=c(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="horizontal",r="htJustify";this.runHooks("beforeCellAlignment",n,t,o,r),a(t,o,r,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1},{name:d},{key:h+":top",name:function(){var e=this,t="Top",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htTop")!==-1)return!0});return n&&(t=c(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="vertical",r="htTop";this.runHooks("beforeCellAlignment",n,t,o,r),a(t,o,r,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1},{key:h+":middle",name:function(){var e=this,t="Middle",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htMiddle")!==-1)return!0});return n&&(t=c(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="vertical",r="htMiddle";this.runHooks("beforeCellAlignment",n,t,o,r),a(t,o,r,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1},{key:h+":bottom",name:function(){var e=this,t="Bottom",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htBottom")!==-1)return!0});return n&&(t=c(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="vertical",r="htBottom";this.runHooks("beforeCellAlignment",n,t,o,r),a(t,o,r,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1}]}}}Object.defineProperties(n,{KEY:{get:function(){return h}},alignmentItem:{get:function(){return o}},__esModule:{value:!0}});var r,i,s=(r=e("utils"),r&&r.__esModule&&r||{default:r}),a=s.align,l=s.getAlignmentClasses,u=s.checkSelectionConsistency,c=s.markLabelAsSelected,d=(i=e("separator"),i&&i.__esModule&&i||{default:i}).KEY,h="alignment"},{separator:86,utils:88}],77:[function(e,t,n){"use strict";function o(){return{key:s,name:"Clear column",callback:function(e,t){var n=t.start.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t.start.row,t.end.row),n,"ContextMenu.clearColumn")},disabled:function(){var e=i(this);if(!e)return!0;var t=[e[0],0,e[0],this.countCols()-1],n=t.join(",")==e.join(",");return e[1]<0||this.countCols()>=this.getSettings().maxCols||n}}}Object.defineProperties(n,{KEY:{get:function(){return s}},clearColumnItem:{get:function(){return o}},__esModule:{value:!0}});var r,i=(r=e("utils"),r&&r.__esModule&&r||{default:r}).getValidSelection,s="clear_column"},{utils:88}],78:[function(e,t,n){"use strict";function o(){return{key:s,name:"Insert column on the left",callback:function(e,t){this.alter("insert_col",t.start.col,1,"ContextMenu.columnLeft")},disabled:function(){var e=i(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=[e[0],0,e[0],this.countCols()-1],n=t.join(",")==e.join(","),o=1===this.countCols();return e[1]<0||this.countCols()>=this.getSettings().maxCols||!o&&n},hidden:function(){return!this.getSettings().allowInsertColumn}}}Object.defineProperties(n,{KEY:{get:function(){return s}},columnLeftItem:{get:function(){return o}},__esModule:{value:!0}});var r,i=(r=e("utils"),r&&r.__esModule&&r||{default:r}).getValidSelection,s="col_left"},{utils:88}],79:[function(e,t,n){"use strict";function o(){return{key:s,name:"Insert column on the right",callback:function(e,t){this.alter("insert_col",t.end.col+1,1,"ContextMenu.columnRight")},disabled:function(){var e=i(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=[e[0],0,e[0],this.countCols()-1],n=t.join(",")==e.join(","),o=1===this.countCols();return e[1]<0||this.countCols()>=this.getSettings().maxCols||!o&&n},hidden:function(){return!this.getSettings().allowInsertColumn}}}Object.defineProperties(n,{KEY:{get:function(){return s}},columnRightItem:{get:function(){return o}},__esModule:{value:!0}});var r,i=(r=e("utils"),r&&r.__esModule&&r||{default:r}).getValidSelection,s="col_right"},{utils:88}],80:[function(e,t,n){"use strict";function o(){return{key:l,name:function(){var e=this,t="Read only",n=s(this.getSelectedRange(),function(t,n){return e.getCellMeta(t,n).readOnly});return n&&(t=a(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=s(t,function(t,n){return e.getCellMeta(t,n).readOnly});t.forAll(function(t,o){e.setCellMeta(t,o,"readOnly",!n)}),this.render()},disabled:function(){return!(this.getSelectedRange()&&!this.selection.selectedHeader.corner)}}}Object.defineProperties(n,{KEY:{get:function(){return l}},readOnlyItem:{get:function(){return o}},__esModule:{value:!0}});var r,i=(r=e("utils"),r&&r.__esModule&&r||{default:r}),s=i.checkSelectionConsistency,a=i.markLabelAsSelected,l="make_read_only"},{utils:88}],81:[function(e,t,n){"use strict";function o(){return{key:r,name:"Redo",callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}}}Object.defineProperties(n,{KEY:{get:function(){return r}},redoItem:{get:function(){return o}},__esModule:{value:!0}});var r="redo"},{}],82:[function(e,t,n){"use strict";function o(){return{key:s,name:"Remove column",callback:function(e,t){var n=t.end.col-t.start.col+1;this.alter("remove_col",t.start.col,n,"ContextMenu.removeColumn")},disabled:function(){var e=i(this),t=this.countCols();return!e||this.selection.selectedHeader.rows||this.selection.selectedHeader.corner||!this.isColumnModificationAllowed()||!t},hidden:function(){return!this.getSettings().allowRemoveColumn}}}Object.defineProperties(n,{KEY:{get:function(){return s}},removeColumnItem:{get:function(){return o}},__esModule:{value:!0}});var r,i=(r=e("utils"),r&&r.__esModule&&r||{default:r}).getValidSelection,s="remove_col"},{utils:88}],83:[function(e,t,n){"use strict";function o(){return{key:s,name:"Remove row",callback:function(e,t){var n=t.end.row-t.start.row+1;this.alter("remove_row",t.start.row,n,"ContextMenu.removeRow")},disabled:function(){var e=i(this),t=this.countRows();return!e||this.selection.selectedHeader.cols||this.selection.selectedHeader.corner||!t},hidden:function(){return!this.getSettings().allowRemoveRow}}}Object.defineProperties(n,{KEY:{get:function(){return s}},removeRowItem:{get:function(){return o}},__esModule:{value:!0}});var r,i=(r=e("utils"),r&&r.__esModule&&r||{default:r}).getValidSelection,s="remove_row"},{utils:88}],84:[function(e,t,n){"use strict";function o(){return{key:s,name:"Insert row above",callback:function(e,t){this.alter("insert_row",t.start.row,1,"ContextMenu.rowAbove");
},disabled:function(){var e=i(this);return!e||this.selection.selectedHeader.cols||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}}Object.defineProperties(n,{KEY:{get:function(){return s}},rowAboveItem:{get:function(){return o}},__esModule:{value:!0}});var r,i=(r=e("utils"),r&&r.__esModule&&r||{default:r}).getValidSelection,s="row_above"},{utils:88}],85:[function(e,t,n){"use strict";function o(){return{key:s,name:"Insert row below",callback:function(e,t){this.alter("insert_row",t.end.row+1,1,"ContextMenu.rowBelow")},disabled:function(){var e=i(this);return!e||this.selection.selectedHeader.cols||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}}Object.defineProperties(n,{KEY:{get:function(){return s}},rowBelowItem:{get:function(){return o}},__esModule:{value:!0}});var r,i=(r=e("utils"),r&&r.__esModule&&r||{default:r}).getValidSelection,s="row_below"},{utils:88}],86:[function(e,t,n){"use strict";function o(){return{name:r}}Object.defineProperties(n,{KEY:{get:function(){return r}},separatorItem:{get:function(){return o}},__esModule:{value:!0}});var r="---------"},{}],87:[function(e,t,n){"use strict";function o(){return{key:r,name:"Undo",callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}}}Object.defineProperties(n,{KEY:{get:function(){return r}},undoItem:{get:function(){return o}},__esModule:{value:!0}});var r="undo"},{}],88:[function(e,t,n){"use strict";function o(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}}function r(e){return S(e,"htSeparator")}function i(e){return S(e,"htSubmenu")}function s(e){return S(e,"htDisabled")}function a(e){return S(e,"htSelectionDisabled")}function l(e){var t=e.getSelected();return t?t[0]<0?null:t:null}function u(e,t){return e.indexOf(t)!=-1?e:(e=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ",""),e+=" "+t)}function c(e,t){return e.indexOf(t)!=-1?e:(e=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ",""),e+=" "+t)}function d(e,t){for(var n={},o=e.from.row;o<=e.to.row;o++)for(var r=e.from.col;r<=e.to.col;r++)n[o]||(n[o]=[]),n[o][r]=t(o,r);return n}function h(e,t,n,o){if(e.from.row==e.to.row&&e.from.col==e.to.col)f(e.from.row,e.from.col,t,n,o);else for(var r=e.from.row;r<=e.to.row;r++)for(var i=e.from.col;i<=e.to.col;i++)f(r,i,t,n,o)}function f(e,t,n,o,r){var i=r(e,t),s=o;i.className&&(s="vertical"===n?u(i.className,o):c(i.className,o)),i.className=s}function p(e,t){var n=!1;return e&&e.forAll(function(e,o){if(t(e,o))return n=!0,!1}),n}function m(e){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+e}function g(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))}function w(e,t){for(var n=e.slice(0),o=0;o<n.length&&n[o].name===t;)n.shift();return n}function v(e,t){var n=e.slice(0);return n.reverse(),n=w(n,t),n.reverse(),n}function y(e){var t=[];return M(e,function(e,n){n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}function b(e){var t=void 0!==arguments[1]?arguments[1]:E,n=e.slice(0);return n=w(n,t),n=v(n,t),n=y(n)}Object.defineProperties(n,{normalizeSelection:{get:function(){return o}},isSeparator:{get:function(){return r}},hasSubMenu:{get:function(){return i}},isDisabled:{get:function(){return s}},isSelectionDisabled:{get:function(){return a}},getValidSelection:{get:function(){return l}},prepareVerticalAlignClass:{get:function(){return u}},prepareHorizontalAlignClass:{get:function(){return c}},getAlignmentClasses:{get:function(){return d}},align:{get:function(){return h}},checkSelectionConsistency:{get:function(){return p}},markLabelAsSelected:{get:function(){return m}},isItemHidden:{get:function(){return g}},filterSeparators:{get:function(){return b}},__esModule:{value:!0}});var C,_,R,M=(C=e("helpers/array"),C&&C.__esModule&&C||{default:C}).arrayEach,S=(_=e("helpers/dom/element"),_&&_.__esModule&&_||{default:_}).hasClass,E=(R=e("predefinedItems/separator"),R&&R.__esModule&&R||{default:R}).KEY},{"helpers/array":43,"helpers/dom/element":47,"predefinedItems/separator":86}],89:[function(e,t,n){"use strict";Object.defineProperties(n,{ContextMenuCopyPaste:{get:function(){return w}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c=(o=e("_base"),o&&o.__esModule&&o||{default:o}).default,d=(r=e("zeroclipboard"),r&&r.__esModule&&r||{default:r}).default,h=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}).removeClass,f=(s=e("helpers/array"),s&&s.__esModule&&s||{default:s}).arrayEach,p=(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).EventManager,m=(l=e("plugins"),l&&l.__esModule&&l||{default:l}).registerPlugin,g=(u=e("contextMenu/predefinedItems"),u&&u.__esModule&&u||{default:u}).SEPARATOR,w=function(e){$traceurRuntime.superConstructor(v).call(this,e),this.eventManager=new p(this),this.swfPath=null,this.outsideClickDeselectsCache=null},v=w;$traceurRuntime.createClass(w,{isEnabled:function(){return this.hot.getSettings().contextMenuCopyPaste},enablePlugin:function(){var e=this;if(!this.enabled){"object"==typeof this.hot.getSettings().contextMenuCopyPaste&&(this.swfPath=this.hot.getSettings().contextMenuCopyPaste.swfPath),"undefined"==typeof d&&console.error("To be able to use the Copy/Paste feature from the context menu, you need to manually include ZeroClipboard.js file to your website.");try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){"undefined"==typeof navigator.mimeTypes["application/x-shockwave-flash"]&&console.error("To be able to use the Copy/Paste feature from the context menu, your browser needs to have Flash Plugin installed.")}this.swfPath&&d.config({swfPath:this.swfPath}),this.hot.addHook("afterContextMenuShow",function(){return e.onAfterContextMenuShow()}),this.hot.addHook("afterContextMenuDefaultOptions",function(t){return e.onAfterContextMenuDefaultOptions(t)}),this.registerEvents(),$traceurRuntime.superGet(this,v.prototype,"enablePlugin").call(this)}},disablePlugin:function(){$traceurRuntime.superGet(this,v.prototype,"disablePlugin").call(this)},registerEvents:function(){var e=this;this.eventManager.addEventListener(document,"mouseenter",function(){return e.removeCurrentClass()}),this.eventManager.addEventListener(document,"mouseleave",function(){return e.removeZeroClipboardClass()})},getCopyValue:function(){return this.hot.copyPaste.setCopyableText(),this.hot.copyPaste.copyPasteInstance.elTextarea.value},onAfterContextMenuDefaultOptions:function(e){e.items.unshift({key:"copy",name:"Copy",disabled:function(){return this.selection.selectedHeader.corner}},{key:"paste",name:"Paste",callback:function(){this.copyPaste.triggerPaste()},disabled:function(){return this.selection.selectedHeader.corner}},{name:g})},onAfterContextMenuShow:function(){var e=this,t=this.hot.getPlugin("contextMenu"),n=t.menu.hotMenu.getSourceData();f(n,function(n,o){if("copy"===n.key){var r=new d(t.menu.hotMenu.getCell(o,0));return r.off(),r.on("copy",function(t){var n=t.clipboardData;n.setData("text/plain",e.getCopyValue()),e.hot.getSettings().outsideClickDeselects=e.outsideClickDeselectsCache}),!1}})},removeCurrentClass:function(){var e=this.hot.getPlugin("contextMenu");if(e.enabled){if(e.menu.isOpened()){var t=e.menu.hotMenu.rootElement.querySelector("td.current");t&&h(t,"current")}this.outsideClickDeselectsCache=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1}},removeZeroClipboardClass:function(){var e=this.hot.getPlugin("contextMenu");if(e.enabled){if(e.menu.isOpened()){var t=e.menu.hotMenu.rootElement.querySelector("td.zeroclipboard-is-hover");t&&h(t,"zeroclipboard-is-hover")}this.hot.getSettings().outsideClickDeselects=this.outsideClickDeselectsCache}}},{},c),m("contextMenuCopyPaste",w)},{_base:62,"contextMenu/predefinedItems":75,eventManager:42,"helpers/array":43,"helpers/dom/element":47,plugins:61,zeroclipboard:"zeroclipboard"}],90:[function(e,t,n){"use strict";function o(e){function t(){e.isListening()&&e.selection.empty()}function n(t){var n,o,r,i,s,a,l,u,c,d;if(e.isListening()&&e.selection.isSelected()){n=t,o=y.parse(n),r=e.getSelected(),i=new x(r[0],r[1]),s=new x(r[2],r[3]),a=new D(i,i,s),l=a.getTopLeftCorner(),u=a.getBottomRightCorner(),c=l,d=new x(Math.max(u.row,o.length-1+l.row),Math.max(u.col,o[0].length-1+l.col));var h=s.row-i.row>=o.length-1,f=s.col-i.col>=o[0].length-1;e.addHookOnce("afterChange",function(t,n){var o=t?t.length:0;if(o){var r={row:0,col:0},i=-1;R(t,function(e,n){var s=o>n+1?t[n+1]:null;s&&(h||(r.row=r.row+Math.max(s[0]-e[0]-1,0)),!f&&e[1]>i&&(i=e[1],r.col=r.col+Math.max(s[1]-e[1]-1,0)))}),e.selectCell(c.row,c.col,d.row+r.row,d.col+r.col)}}),e.populateFromArray(c.row,c.col,o,d.row,d.col,"CopyPaste.paste",e.getSettings().pasteMode)}}function o(t){if(e.getSelected()&&!(e.getActiveEditor()&&e.getActiveEditor().isOpened()||O(t))){if(_(t.keyCode)){if(e.getSettings().fragmentSelection&&T())return;return r.setCopyableText(),void E(t)}var n=(t.ctrlKey||t.metaKey)&&!t.altKey;t.keyCode==C.A&&n&&e._registerTimeout(setTimeout(k(r.setCopyableText,r),0))}}var r=this;this.copyPasteInstance=v(),this.copyPasteInstance.onCut(t),this.copyPasteInstance.onPaste(n),this.onPaste=n,e.addHook("beforeKeyDown",o),this.destroy=function(){this.copyPasteInstance&&(this.copyPasteInstance.removeCallback(t),this.copyPasteInstance.removeCallback(n),this.copyPasteInstance.destroy(),this.copyPasteInstance=null),e.removeHook("beforeKeyDown",o)},e.addHook("afterDestroy",k(this.destroy,this)),this.triggerPaste=k(this.copyPasteInstance.triggerPaste,this.copyPasteInstance),this.triggerCut=k(this.copyPasteInstance.triggerCut,this.copyPasteInstance),this.setCopyableText=function(){var t=e.getSettings(),n=t.copyRowsLimit,o=t.copyColsLimit,r=e.getSelectedRange(),i=r.getTopLeftCorner(),s=r.getBottomRightCorner(),a=i.row,l=i.col,u=s.row,c=s.col,d=Math.min(u,a+n-1),h=Math.min(c,l+o-1),f=[];f.push({startRow:a,startCol:l,endRow:d,endCol:h}),f=w.hooks.run(e,"modifyCopyableRange",f);var p=this.getRangedCopyableData(f);e.copyPaste.copyPasteInstance.copyable(p),u===d&&c===h||w.hooks.run(e,"afterCopyLimit",u-a+1,c-l+1,n,o)},this.getRangedCopyableData=function(t){var n=[],o=[],r=[];return R(t,function(e){M(e.startRow,e.endRow,function(e){o.indexOf(e)===-1&&o.push(e)}),M(e.startCol,e.endCol,function(e){r.indexOf(e)===-1&&r.push(e)})}),R(o,function(t){var o=[];R(r,function(n){o.push(e.getCopyableData(t,n))}),n.push(o)}),y.stringify(n)}}function r(){var e=this,t=e.getSettings().copyPaste!==!1;t&&!e.copyPaste?e.copyPaste=new o(e):!t&&e.copyPaste&&(e.copyPaste.destroy(),e.copyPaste=null)}Object.defineProperties(n,{CopyPastePlugin:{get:function(){return o}},__esModule:{value:!0}});var i,s,a,l,u,c,d,h,f,p,m,g,w=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,v=(s=e("copyPaste"),s&&s.__esModule&&s||{default:s}).default,y=(a=e("SheetClip"),a&&a.__esModule&&a||{default:a}).default,b=(l=e("helpers/unicode"),l&&l.__esModule&&l||{default:l}),C=b.KEY_CODES,_=b.isCtrlKey,R=(u=e("helpers/array"),u&&u.__esModule&&u||{default:u}).arrayEach,M=(c=e("helpers/number"),c&&c.__esModule&&c||{default:c}).rangeEach,S=(d=e("helpers/dom/event"),d&&d.__esModule&&d||{default:d}),E=S.stopImmediatePropagation,O=S.isImmediatePropagationStopped,T=(h=e("helpers/dom/element"),h&&h.__esModule&&h||{default:h}).getSelectionText,k=(f=e("helpers/function"),f&&f.__esModule&&f||{default:f}).proxy,x=((p=e("plugins"),p&&p.__esModule&&p||{default:p}).registerPlugin,(m=e("3rdparty/walkontable/src/cell/coords"),m&&m.__esModule&&m||{default:m}).WalkontableCellCoords),D=(g=e("3rdparty/walkontable/src/cell/range"),g&&g.__esModule&&g||{default:g}).WalkontableCellRange;w.hooks.add("afterInit",r),w.hooks.add("afterUpdateSettings",r),w.hooks.register("afterCopyLimit"),w.hooks.register("modifyCopyableRange")},{"3rdparty/walkontable/src/cell/coords":6,"3rdparty/walkontable/src/cell/range":7,SheetClip:"SheetClip",browser:24,copyPaste:"copyPaste","helpers/array":43,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/function":50,"helpers/number":52,"helpers/unicode":56,plugins:61}],91:[function(e,t,n){"use strict";function o(){}var r,i,s,a,l,u=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,c=((i=e("plugins"),i&&i.__esModule&&i||{default:i}).registerPlugin,(s=e("3rdparty/walkontable/src/cell/range"),s&&s.__esModule&&s||{default:s}).WalkontableCellRange),d=(a=e("3rdparty/walkontable/src/selection"),a&&a.__esModule&&a||{default:a}).WalkontableSelection,h=function(e){return"boolean"==typeof e&&e===!0||"object"==typeof e&&e.length>0},f=function(){h(this.getSettings().customBorders)&&(this.customBorders||(l=this,this.customBorders=new o))},p=function(e){for(var t=0;t<l.view.wt.selections.length;t++)if(l.view.wt.selections[t].settings.className==e)return t;return-1},m=function(e){var t={row:e.row,col:e.col},n=new d(e,new c(t,t,t)),o=p(e.className);o>=0?l.view.wt.selections[o]=n:l.view.wt.selections.push(n)},g=function(e,t,n){var o=_(e,t);o=R(o,n),this.setCellMeta(e,t,"borders",o),m(o)},w=function(e){for(var t=e.range,n=t.from.row;n<=t.to.row;n++)for(var o=t.from.col;o<=t.to.col;o++){var r=_(n,o),i=0;n==t.from.row&&(i++,e.hasOwnProperty("top")&&(r.top=e.top)),n==t.to.row&&(i++,e.hasOwnProperty("bottom")&&(r.bottom=e.bottom)),o==t.from.col&&(i++,e.hasOwnProperty("left")&&(r.left=e.left)),o==t.to.col&&(i++,e.hasOwnProperty("right")&&(r.right=e.right)),i>0&&(this.setCellMeta(n,o,"borders",r),m(r))}},v=function(e,t){return"border_row"+e+"col"+t},y=function(){return{width:1,color:"#000"}},b=function(){return{hide:!0}},C=function(){return{width:1,color:"#000",cornerVisible:!1}},_=function(e,t){return{className:v(e,t),border:C(),row:e,col:t,top:b(),right:b(),bottom:b(),left:b()}},R=function(e,t){return t.hasOwnProperty("border")&&(e.border=t.border),t.hasOwnProperty("top")&&(e.top=t.top),t.hasOwnProperty("right")&&(e.right=t.right),t.hasOwnProperty("bottom")&&(e.bottom=t.bottom),t.hasOwnProperty("left")&&(e.left=t.left),e},M=function(e){for(var t=document.querySelectorAll("."+e),n=0;n<t.length;n++)if(t[n]&&"TD"!=t[n].nodeName){var o=t[n].parentNode;o.parentNode&&o.parentNode.removeChild(o)}},S=function(e,t){var n=v(e,t);M(n),this.removeCellMeta(e,t,"borders")},E=function(e,t,n,o){var r=this.getCellMeta(e,t).borders;r&&void 0!=r.border||(r=_(e,t)),o?r[n]=b():r[n]=y(),this.setCellMeta(e,t,"borders",r);var i=v(e,t);M(i),m(r),this.render()},O=function(e,t,n){if(e.from.row==e.to.row&&e.from.col==e.to.col)"noBorders"==t?S.call(this,e.from.row,e.from.col):E.call(this,e.from.row,e.from.col,t,n);else switch(t){case"noBorders":for(var o=e.from.col;o<=e.to.col;o++)for(var r=e.from.row;r<=e.to.row;r++)S.call(this,r,o);break;case"top":for(var i=e.from.col;i<=e.to.col;i++)E.call(this,e.from.row,i,t,n);break;case"right":for(var s=e.from.row;s<=e.to.row;s++)E.call(this,s,e.to.col,t);break;case"bottom":for(var a=e.from.col;a<=e.to.col;a++)E.call(this,e.to.row,a,t);break;case"left":for(var l=e.from.row;l<=e.to.row;l++)E.call(this,l,e.from.col,t)}},T=function(e,t){var n=!1;return e.getSelectedRange().forAll(function(o,r){var i=e.getCellMeta(o,r).borders;if(i){if(!t)return n=!0,!1;if(!i[t].hasOwnProperty("hide"))return n=!0,!1}}),n},k=function(e){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+e},x=function(e){this.getSettings().customBorders&&(e.items.push(u.plugins.ContextMenu.SEPARATOR),e.items.push({key:"borders",name:"Borders",disabled:function(){return this.selection.selectedHeader.corner},submenu:{items:[{key:"borders:top",name:function(){var e="Top",t=T(this,"top");return t&&(e=k(e)),e},callback:function(){var e=T(this,"top");O.call(this,this.getSelectedRange(),"top",e)}},{key:"borders:right",name:function(){var e="Right",t=T(this,"right");return t&&(e=k(e)),e},callback:function(){var e=T(this,"right");O.call(this,this.getSelectedRange(),"right",e)}},{key:"borders:bottom",name:function(){var e="Bottom",t=T(this,"bottom");return t&&(e=k(e)),e},callback:function(){var e=T(this,"bottom");O.call(this,this.getSelectedRange(),"bottom",e)}},{key:"borders:left",name:function(){var e="Left",t=T(this,"left");return t&&(e=k(e)),e},callback:function(){var e=T(this,"left");O.call(this,this.getSelectedRange(),"left",e)}},{key:"borders:no_borders",name:"Remove border(s)",callback:function(){O.call(this,this.getSelectedRange(),"noBorders")},disabled:function(){return!T(this)}}]}}))};u.hooks.add("beforeInit",f),u.hooks.add("afterContextMenuDefaultOptions",x),u.hooks.add("afterInit",function(){var e=this.getSettings().customBorders;if(e){for(var t=0;t<e.length;t++)e[t].range?w.call(this,e[t]):g.call(this,e[t].row,e[t].col,e[t]);this.render(),this.view.wt.draw(!0)}}),u.CustomBorders=o},{"3rdparty/walkontable/src/cell/range":7,"3rdparty/walkontable/src/selection":19,browser:24,plugins:61}],92:[function(e,t,n){"use strict";function o(){this.boundaries=null,this.callback=null}Object.defineProperties(n,{DragToScroll:{get:function(){return o}},__esModule:{value:!0}});var r,i,s,a=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,l=(i=e("eventManager"),i&&i.__esModule&&i||{default:i}).eventManager;(s=e("plugins"),s&&s.__esModule&&s||{default:s}).registerPlugin;a.plugins.DragToScroll=o,o.prototype.setBoundaries=function(e){this.boundaries=e},o.prototype.setCallback=function(e){this.callback=e},o.prototype.check=function(e,t){var n=0,o=0;t<this.boundaries.top?o=t-this.boundaries.top:t>this.boundaries.bottom&&(o=t-this.boundaries.bottom),e<this.boundaries.left?n=e-this.boundaries.left:e>this.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,o)};var u,c=function(e){e.dragToScrollListening=!1;var t=e.view.wt.wtTable.holder;u=new o,t!==window&&(u.setBoundaries(t.getBoundingClientRect()),u.setCallback(function(e,n){e<0?t.scrollLeft-=50:e>0&&(t.scrollLeft+=50),n<0?t.scrollTop-=20:n>0&&(t.scrollTop+=20)}),e.dragToScrollListening=!0)};a.hooks.add("afterInit",function(){var e=this,t=l(this);t.addEventListener(document,"mouseup",function(){e.dragToScrollListening=!1}),t.addEventListener(document,"mousemove",function(t){e.dragToScrollListening&&u.check(t.clientX,t.clientY)})}),a.hooks.add("afterDestroy",function(){l(this).clear()}),a.hooks.add("afterOnCellMouseDown",function(){c(this)}),a.hooks.add("afterOnCellCornerMouseDown",function(){c(this)}),a.plugins.DragToScroll=o},{browser:24,eventManager:42,plugins:61}],93:[function(e,t,n){"use strict";function o(e){return{key:"freeze_column",name:"Freeze this column",callback:function(){var t=this.getSelectedRange().from.col;e.freezeColumn(t),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:(e.from.col!==e.to.col||e.from.col<=this.getSettings().fixedColumnsLeft-1)&&(t=!0),t}}}Object.defineProperties(n,{freezeColumnItem:{get:function(){return o}},__esModule:{value:!0}})},{}],94:[function(e,t,n){"use strict";function o(e){return{key:"unfreeze_column",name:"Unfreeze this column",callback:function(){var t=this.getSelectedRange().from.col;e.unfreezeColumn(t),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},hidden:function(){var e=this.getSelectedRange(),t=!1;return void 0===e?t=!0:(e.from.col!==e.to.col||e.from.col>=this.getSettings().fixedColumnsLeft)&&(t=!0),t}}}Object.defineProperties(n,{unfreezeColumnItem:{get:function(){return o}},__esModule:{value:!0}})},{}],95:[function(e,t,n){"use strict";Object.defineProperties(n,{ManualColumnFreeze:{get:function(){return g}},__esModule:{value:!0}});var o,r,i,s,a,l,u=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,c=(r=e("_base"),r&&r.__esModule&&r||{default:r}).default,d=(i=e("plugins"),i&&i.__esModule&&i||{default:i}).registerPlugin,h=(s=e("helpers/array"),s&&s.__esModule&&s||{default:s}).arrayEach,f=(a=e("contextMenuItem/freezeColumn"),a&&a.__esModule&&a||{default:a}).freezeColumnItem,p=(l=e("contextMenuItem/unfreezeColumn"),l&&l.__esModule&&l||{default:l}).unfreezeColumnItem,m=new WeakMap,g=function(e){$traceurRuntime.superConstructor(w).call(this,e),m.set(this,{moveByFreeze:!1,afterFirstUse:!1}),this.frozenColumnsBasePositions=[],this.manualColumnMovePlugin=void 0},w=g;$traceurRuntime.createClass(g,{isEnabled:function(){return!!this.hot.getSettings().manualColumnFreeze},enablePlugin:function(){var e=this;this.enabled||(this.addHook("afterContextMenuDefaultOptions",function(t){return e.addContextMenuEntry(t)}),this.addHook("afterInit",function(){return e.onAfterInit()}),this.addHook("beforeColumnMove",function(t,n){return e.onBeforeColumnMove(t,n)}),$traceurRuntime.superGet(this,w.prototype,"enablePlugin").call(this))},disablePlugin:function(){var e=m.get(this);e.afterFirstUse=!1,e.moveByFreeze=!1,$traceurRuntime.superGet(this,w.prototype,"disablePlugin").call(this)},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,w.prototype,"updatePlugin").call(this)},freezeColumn:function(e){var t=m.get(this),n=this.hot.getSettings();t.afterFirstUse||(t.afterFirstUse=!0),n.fixedColumnsLeft===this.hot.countCols()||e<=n.fixedColumnsLeft-1||(t.moveByFreeze=!0,e!==this.getMovePlugin().columnsMapper.getValueByIndex(e)&&(this.frozenColumnsBasePositions[n.fixedColumnsLeft]=e),this.getMovePlugin().moveColumn(e,n.fixedColumnsLeft++))},unfreezeColumn:function(e){var t=m.get(this),n=this.hot.getSettings();if(t.afterFirstUse||(t.afterFirstUse=!0),!(n.fixedColumnsLeft<=0||e>n.fixedColumnsLeft-1)){var o=this.getBestColumnReturnPosition(e);t.moveByFreeze=!0,n.fixedColumnsLeft--,this.getMovePlugin().moveColumn(e,o+1)}},getMovePlugin:function(){return this.manualColumnMovePlugin||(this.manualColumnMovePlugin=this.hot.getPlugin("manualColumnMove")),this.manualColumnMovePlugin},getBestColumnReturnPosition:function(e){var t,n=this.getMovePlugin(),o=this.hot.getSettings(),r=o.fixedColumnsLeft,i=n.columnsMapper.getValueByIndex(r);if(null==this.frozenColumnsBasePositions[e])for(t=n.columnsMapper.getValueByIndex(e);i<t;)r++,i=n.columnsMapper.getValueByIndex(r);else{for(t=this.frozenColumnsBasePositions[e],this.frozenColumnsBasePositions[e]=void 0;i<=t;)r++,i=n.columnsMapper.getValueByIndex(r);r=i}return r-1},addContextMenuEntry:function(e){e.items.push(u.plugins.ContextMenu.SEPARATOR,f(this),p(this))},onAfterInit:function(){this.getMovePlugin().isEnabled()||this.getMovePlugin().enablePlugin()},onBeforeColumnMove:function(e,t){var n=m.get(this);if(n.afterFirstUse&&!n.moveByFreeze){var o=this.hot.getSettings().fixedColumnsLeft,r=t<o;if(r||h(e,function(e,t,n){if(e<o)return r=!0,!1}),r)return!1}n.moveByFreeze&&(n.moveByFreeze=!1)},destroy:function(){$traceurRuntime.superGet(this,w.prototype,"destroy").call(this)}},{},c),d("manualColumnFreeze",g)},{_base:62,browser:24,"contextMenuItem/freezeColumn":93,"contextMenuItem/unfreezeColumn":94,"helpers/array":43,plugins:61}],96:[function(e,t,n){"use strict";Object.defineProperties(n,{ColumnsMapper:{get:function(){return f}},__esModule:{value:!0}});var o,r,i,s,a,l=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,u=(r=e("mixins/arrayMapper"),r&&r.__esModule&&r||{default:r}).arrayMapper,c=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).arrayFilter,d=(s=e("helpers/object"),s&&s.__esModule&&s||{default:s}).mixin,h=(a=e("helpers/number"),a&&a.__esModule&&a||{default:a}).rangeEach,f=function(e){this.manualColumnMove=e};$traceurRuntime.createClass(f,{createMap:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,h(n-1,function(e){t._arrayMap[e]=e})},destroy:function(){this._arrayMap=null},moveColumn:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)},clearNull:function(){this._arrayMap=c(this._arrayMap,function(e){return null!==e})}},{}),d(f,u),l.utils.ManualColumnMoveColumnsMapper=f},{browser:24,"helpers/array":43,"helpers/number":52,"helpers/object":53,"mixins/arrayMapper":57}],97:[function(e,t,n){"use strict";Object.defineProperties(n,{ManualColumnMove:{get:function(){return D}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c,d,h,f=(o=e("_base.js"),o&&o.__esModule&&o||{default:o}).default,p=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,m=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).arrayEach,g=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}),w=g.addClass,v=g.removeClass,y=g.offset,b=(a=e("helpers/number"),a&&a.__esModule&&a||{default:a}).rangeEach,C=(l=e("eventManager"),l&&l.__esModule&&l||{default:l}).eventManager,_=(u=e("plugins"),u&&u.__esModule&&u||{default:u}).registerPlugin,R=(c=e("columnsMapper"),c&&c.__esModule&&c||{default:c}).ColumnsMapper,M=(d=e("ui/backlight"),d&&d.__esModule&&d||{default:d}).BacklightUI,S=(h=e("ui/guideline"),h&&h.__esModule&&h||{default:h}).GuidelineUI,E=new WeakMap,O="ht__manualColumnMove",T="show-ui",k="on-moving--columns",x="after-selection--columns",D=function(e){$traceurRuntime.superConstructor(H).call(this,e),E.set(this,{columnsToMove:[],countCols:0,fixedColumns:0,pressed:void 0,disallowMoving:void 0,target:{eventPageX:void 0,coords:void 0,TD:void 0,col:void 0}}),this.removedColumns=[],this.columnsMapper=new R(this),this.eventManager=C(this),this.backlight=new M(e),this.guideline=new S(e)},H=D;$traceurRuntime.createClass(D,{isEnabled:function(){return!!this.hot.getSettings().manualColumnMove},enablePlugin:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(t,n,o,r){return e.onBeforeOnCellMouseDown(t,n,o,r)}),this.addHook("beforeOnCellMouseOver",function(t,n,o,r){return e.onBeforeOnCellMouseOver(t,n,o,r)}),this.addHook("afterScrollVertically",function(){return e.onAfterScrollVertically()}),this.addHook("modifyCol",function(t,n){return e.onModifyCol(t,n)}),this.addHook("beforeRemoveCol",function(t,n){return e.onBeforeRemoveCol(t,n)}),this.addHook("afterRemoveCol",function(t,n){return e.onAfterRemoveCol(t,n)}),this.addHook("afterCreateCol",function(t,n){return e.onAfterCreateCol(t,n)}),this.addHook("unmodifyCol",function(t){return e.onUnmodifyCol(t)}),this.registerEvents(),w(this.hot.rootElement,O),$traceurRuntime.superGet(this,H.prototype,"enablePlugin").call(this))},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),$traceurRuntime.superGet(this,H.prototype,"updatePlugin").call(this)},disablePlugin:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)&&this.columnsMapper.clearMap(),v(this.hot.rootElement,O),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),$traceurRuntime.superGet(this,H.prototype,"disablePlugin").call(this)},moveColumn:function(e,t){this.moveColumns([e],t)},moveColumns:function(e,t){var n=this,o=E.get(this),r=this.hot.runHooks("beforeColumnMove",e,t);o.disallowMoving=!r,r!==!1&&(m(e,function(e,t,o){o[t]=n.columnsMapper.getValueByIndex(e)}),m(e,function(e,o){var r=n.columnsMapper.getIndexByValue(e);r!==t&&n.columnsMapper.moveColumn(r,t+o)}),this.columnsMapper.clearNull()),this.hot.runHooks("afterColumnMove",e,t)},changeSelection:function(e,t){var n=this.hot.selection,o=this.hot.countRows()-1;n.setRangeStartOnly(new WalkontableCellCoords(0,e)),n.setRangeEnd(new WalkontableCellCoords(o,t),!1)},getColumnsWidth:function(e,t){for(var n=0,o=e;o<t;o++){var r=0;r=o<0?this.hot.view.wt.wtTable.getColumnWidth(o)||0:this.hot.view.wt.wtTable.getStretchedColumnWidth(o)||0,n+=r}return n},initialSettings:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)?this.moveColumns(e,0):void 0!==e&&this.persistentStateLoad()},isFixedColumnsLeft:function(e){return e<this.hot.getSettings().fixedColumnsLeft},persistentStateSave:function(){p.hooks.run(this.hot,"persistentStateSave","manualColumnMove",this.columnsMapper._arrayMap)},persistentStateLoad:function(){var e={};p.hooks.run(this.hot,"persistentStateLoad","manualColumnMove",e),e.value&&(this.columnsMapper._arrayMap=e.value)},prepareColumnsToMoving:function(e,t){var n=[];return b(e,t,function(e){n.push(e)}),n},refreshPositions:function(){var e=E.get(this),t=this.hot.view.wt.wtTable.getFirstVisibleColumn(),n=this.hot.view.wt.wtTable.getLastVisibleColumn(),o=this.hot.view.wt.wtTable,r=this.hot.view.wt.wtOverlays.scrollableElement,i="number"==typeof r.scrollX?r.scrollX:r.scrollLeft,s=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,e.coordsColumn),a=e.target.eventPageX-(e.rootElementOffset-(void 0===r.scrollX?i:0)),l=o.hider.offsetWidth,u=o.TBODY.offsetLeft,c=this.backlight.getOffset().left,d=this.backlight.getSize().width,h=0;if(e.rootElementOffset+o.holder.offsetWidth+i<e.target.eventPageX&&e.coordsColumn<e.countCols&&e.coordsColumn++,e.hasRowHeaders&&(h=this.hot.view.wt.wtOverlays.leftOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsLeft(e.coordsColumn)&&(s+=i),s+=h,e.coordsColumn<0)e.fixedColumns>0?e.target.col=0:e.target.col=t>0?t-1:t;else if(e.target.TD.offsetWidth/2+s<=a){var f=e.coordsColumn>=e.countCols?e.countCols-1:e.coordsColumn;e.target.col=f+1,s+=e.target.TD.offsetWidth,e.target.col>n&&this.hot.scrollViewportTo(void 0,n+1,void 0,!0)}else e.target.col=e.coordsColumn,e.target.col<=t&&e.target.col>=e.fixedColumns&&this.hot.scrollViewportTo(void 0,t-1);e.target.col<=t&&e.target.col>=e.fixedColumns&&this.hot.scrollViewportTo(void 0,t-1);var p=a,m=s;a+d+c>=l?p=l-d-c:a+c<u+h&&(p=u+h+Math.abs(c)),s>=l-1?m=l-1:0===m?m=1:void 0!==r.scrollX&&e.coordsColumn<e.fixedColumns&&(m-=e.rootElementOffset<=r.scrollX?e.rootElementOffset:0),this.backlight.setPosition(null,p),this.guideline.setPosition(null,m)},registerEvents:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()})},unregisterEvents:function(){this.eventManager.clear()},onBeforeOnCellMouseDown:function(e,t,n,o){var r=this.hot.view.wt.wtTable,i=this.hot.selection.selectedHeader.cols,s=this.hot.getSelectedRange(),a=E.get(this),l=e.realTarget.className.indexOf("columnSorting")>-1;if(!s||!i||a.pressed||0!==e.button||l)return a.pressed=!1,a.columnsToMove.length=0,void v(this.hot.rootElement,[k,T]);var u=this.guideline.isBuilt()&&!this.guideline.isAppended(),c=this.backlight.isBuilt()&&!this.backlight.isAppended();u&&c&&(this.guideline.appendTo(r.hider),this.backlight.appendTo(r.hider));var d=s,h=d.from,f=d.to,p=Math.min(h.col,f.col),m=Math.max(h.col,f.col);if(t.row<0&&t.col>=p&&t.col<=m){o.column=!0,a.pressed=!0,a.target.eventPageX=e.pageX,a.coordsColumn=t.col,a.target.TD=n,a.target.col=t.col,a.columnsToMove=this.prepareColumnsToMoving(p,m),a.hasRowHeaders=!!this.hot.getSettings().rowHeaders,a.countCols=this.hot.countCols(),a.fixedColumns=this.hot.getSettings().fixedColumnsLeft,a.rootElementOffset=y(this.hot.rootElement).left;var g=a.hasRowHeaders?-1:0,b=r.holder.scrollTop+r.getColumnHeaderHeight(0)+1,C=t.col<a.fixedColumns,_=this.hot.view.wt.wtOverlays.scrollableElement,R=_.scrollX?_.scrollX-a.rootElementOffset:0,M=e.layerX-(C?R:0),S=Math.abs(this.getColumnsWidth(p,t.col)+M);this.backlight.setPosition(b,this.getColumnsWidth(g,p)+S),this.backlight.setSize(this.getColumnsWidth(p,m+1),r.hider.offsetHeight-b),this.backlight.setOffset(null,S*-1),w(this.hot.rootElement,k)}else v(this.hot.rootElement,x),a.pressed=!1,a.columnsToMove.length=0},onMouseMove:function(e){var t=E.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().width;this.backlight.setSize(0),setTimeout(function(){this.backlight.setPosition(n)})}t.target.eventPageX=e.pageX,this.refreshPositions()}},onBeforeOnCellMouseOver:function(e,t,n,o){var r=this.hot.getSelectedRange(),i=E.get(this);r&&i.pressed&&(i.columnsToMove.indexOf(t.col)>-1?v(this.hot.rootElement,T):w(this.hot.rootElement,T),o.row=!0,o.column=!0,o.cell=!0,i.coordsColumn=t.col,i.target.TD=n)},onMouseUp:function(){var e=E.get(this);if(e.coordsColumn=void 0,e.pressed=!1,e.backlightWidth=0,v(this.hot.rootElement,[k,T,x]),this.hot.selection.selectedHeader.cols&&w(this.hot.rootElement,x),!(e.columnsToMove.length<1||void 0===e.target.col||e.columnsToMove.indexOf(e.target.col)>-1)){
if(this.moveColumns(e.columnsToMove,e.target.col),this.persistentStateSave(),this.hot.render(),this.hot.view.wt.wtOverlays.adjustElementsSize(!0),!e.disallowMoving){var t=this.columnsMapper.getIndexByValue(e.columnsToMove[0]),n=this.columnsMapper.getIndexByValue(e.columnsToMove[e.columnsToMove.length-1]);this.changeSelection(t,n)}e.columnsToMove.length=0}},onAfterScrollVertically:function(){var e=this.hot.view.wt.wtTable,t=e.getColumnHeaderHeight(0)+1,n=e.holder.scrollTop,o=t+n;this.backlight.setPosition(o),this.backlight.setSize(null,e.hider.offsetHeight-o)},onAfterCreateCol:function(e,t){this.columnsMapper.shiftItems(e,t)},onBeforeRemoveCol:function(e,t){var n=this;this.removedColumns.length=0,e!==!1&&b(e,e+t-1,function(e){n.removedColumns.push(n.hot.runHooks("modifyCol",e,n.pluginName))})},onAfterRemoveCol:function(e,t){this.columnsMapper.unshiftItems(this.removedColumns)},onModifyCol:function(e,t){if(t!==this.pluginName){var n=this.columnsMapper.getValueByIndex(e);e=null===n?e:n}return e},onUnmodifyCol:function(e){var t=this.columnsMapper.getIndexByValue(e);return e=null===t?e:t},onAfterPluginsInitialized:function(){var e=this.hot.countCols(),t=this.columnsMapper._arrayMap.length;if(0===t)this.columnsMapper.createMap(this.hot.countSourceCols()||this.hot.getSettings().startCols);else if(t<e){var n=e-t;this.columnsMapper.insertItems(t,n)}else if(t>e){var o=e-1,r=[];m(this.columnsMapper._arrayMap,function(e,t,n){e>o&&r.push(t)}),this.columnsMapper.removeItems(r)}this.initialSettings(),this.backlight.build(),this.guideline.build()},destroy:function(){this.backlight.destroy(),this.guideline.destroy(),$traceurRuntime.superGet(this,H.prototype,"destroy").call(this)}},{},f),_("ManualColumnMove",D),p.hooks.register("beforeColumnMove"),p.hooks.register("afterColumnMove"),p.hooks.register("unmodifyCol")},{"_base.js":62,browser:24,columnsMapper:96,eventManager:42,"helpers/array":43,"helpers/dom/element":47,"helpers/number":52,plugins:61,"ui/backlight":99,"ui/guideline":100}],98:[function(e,t,n){"use strict";Object.defineProperties(n,{BaseUI:{get:function(){return u}},__esModule:{value:!0}});var o,r=(o=e("helpers/number"),o&&o.__esModule&&o||{default:o}).isNumeric,i=0,s=1,a=2,l="px",u=function(e){this.hot=e,this._element=null,this.state=i};$traceurRuntime.createClass(u,{appendTo:function(e){e.appendChild(this._element),this.state=a},build:function(){this._element=document.createElement("div"),this.state=s},destroy:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=i},isAppended:function(){return this.state===a},isBuilt:function(){return this.state>=s},setPosition:function(e,t){r(e)&&(this._element.style.top=e+l),r(t)&&(this._element.style.left=t+l)},getPosition:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}},setSize:function(e,t){r(e)&&(this._element.style.width=e+l),r(t)&&(this._element.style.height=t+l)},getSize:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}},setOffset:function(e,t){r(e)&&(this._element.style.marginTop=e+l),r(t)&&(this._element.style.marginLeft=t+l)},getOffset:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}},{})},{"helpers/number":52}],99:[function(e,t,n){"use strict";Object.defineProperties(n,{BacklightUI:{get:function(){return l}},__esModule:{value:!0}});var o,r,i=(o=e("_base"),o&&o.__esModule&&o||{default:o}).BaseUI,s=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}).addClass,a="ht__manualColumnMove--backlight",l=function(e){$traceurRuntime.superConstructor(u).call(this,e)},u=l;$traceurRuntime.createClass(l,{build:function(){$traceurRuntime.superGet(this,u.prototype,"build").call(this),s(this._element,a)}},{},i)},{_base:98,"helpers/dom/element":47}],100:[function(e,t,n){"use strict";Object.defineProperties(n,{GuidelineUI:{get:function(){return l}},__esModule:{value:!0}});var o,r,i=(o=e("_base"),o&&o.__esModule&&o||{default:o}).BaseUI,s=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}).addClass,a="ht__manualColumnMove--guideline",l=function(e){$traceurRuntime.superConstructor(u).call(this,e)},u=l;$traceurRuntime.createClass(l,{build:function(){$traceurRuntime.superGet(this,u.prototype,"build").call(this),s(this._element,a)}},{},i)},{_base:98,"helpers/dom/element":47}],101:[function(e,t,n){"use strict";Object.defineProperties(n,{ManualColumnResize:{get:function(){return M}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c,d=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,h=(r=e("_base.js"),r&&r.__esModule&&r||{default:r}).default,f=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),p=f.addClass,m=f.hasClass,g=f.removeClass,w=f.outerHeight,v=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).eventManager,y=(a=e("helpers/dom/event"),a&&a.__esModule&&a||{default:a}),b=y.pageX,C=(y.pageY,(l=e("helpers/array"),l&&l.__esModule&&l||{default:l}).arrayEach),_=(u=e("helpers/number"),u&&u.__esModule&&u||{default:u}).rangeEach,R=(c=e("plugins"),c&&c.__esModule&&c||{default:c}).registerPlugin,M=function(e){$traceurRuntime.superConstructor(S).call(this,e),this.currentTH=null,this.currentCol=null,this.selectedCols=[],this.currentWidth=null,this.newSize=null,this.startY=null,this.startWidth=null,this.startOffset=null,this.handle=document.createElement("DIV"),this.guide=document.createElement("DIV"),this.eventManager=v(this),this.pressed=null,this.dblclick=0,this.autoresizeTimeout=null,this.manualColumnWidths=[],p(this.handle,"manualColumnResizer"),p(this.guide,"manualColumnResizerGuide")},S=M;$traceurRuntime.createClass(M,{isEnabled:function(){return this.hot.getSettings().manualColumnResize},enablePlugin:function(){var e=this;if(!this.enabled){this.manualColumnWidths=[];var t=this.hot.getSettings().manualColumnResize,n=this.loadManualColumnWidths();this.addHook("modifyColWidth",function(t,n){return e.onModifyColWidth(t,n)}),this.addHook("beforeStretchingColumnWidth",function(t,n){return e.onBeforeStretchingColumnWidth(t,n)}),this.addHook("beforeColumnResize",function(t,n,o){return e.onBeforeColumnResize(t,n,o)}),"undefined"!=typeof n?this.manualColumnWidths=n:Array.isArray(t)?this.manualColumnWidths=t:this.manualColumnWidths=[],d.hooks.register("beforeColumnResize"),d.hooks.register("afterColumnResize"),this.bindEvents(),$traceurRuntime.superGet(this,S.prototype,"enablePlugin").call(this)}},updatePlugin:function(){var e=this.hot.getSettings().manualColumnResize;Array.isArray(e)?this.manualColumnWidths=e:e||(this.manualColumnWidths=[])},disablePlugin:function(){$traceurRuntime.superGet(this,S.prototype,"disablePlugin").call(this)},saveManualColumnWidths:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.manualColumnWidths)},loadManualColumnWidths:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",e),e.value},setupHandlePosition:function(e){var t=this;if(!e.parentNode)return!1;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(e).col,o=w(this.currentTH);if(n>=0){var r=this.currentTH.getBoundingClientRect();if(this.currentCol=n,this.selectedCols=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.cols){var i=this.hot.getSelectedRange(),s=i.from,a=i.to,l=s.col,u=a.col;l>=u&&(l=a.col,u=s.col),this.currentCol>=l&&this.currentCol<=u?_(l,u,function(e){return t.selectedCols.push(e)}):this.selectedCols.push(this.currentCol)}else this.selectedCols.push(this.currentCol);this.startOffset=r.left-6,this.startWidth=parseInt(r.width,10),this.handle.style.top=r.top+"px",this.handle.style.left=this.startOffset+this.startWidth+"px",this.handle.style.height=o+"px",this.hot.rootElement.appendChild(this.handle)}},refreshHandlePosition:function(){this.handle.style.left=this.startOffset+this.currentWidth+"px"},setupGuidePosition:function(){var e=parseInt(w(this.handle),10),t=parseInt(this.handle.style.top,10)+e,n=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);p(this.handle,"active"),p(this.guide,"active"),this.guide.style.top=t+"px",this.guide.style.left=this.handle.style.left,this.guide.style.height=n-e+"px",this.hot.rootElement.appendChild(this.guide)},refreshGuidePosition:function(){this.guide.style.left=this.handle.style.left},hideHandleAndGuide:function(){g(this.handle,"active"),g(this.guide,"active")},checkIfColumnHeader:function(e){if(e!=this.hot.rootElement){var t=e.parentNode;return"THEAD"===t.tagName||this.checkIfColumnHeader(t)}return!1},getTHFromTargetElement:function(e){return"TABLE"!=e.tagName?"TH"==e.tagName?e:this.getTHFromTargetElement(e.parentNode):null},onMouseOver:function(e){if(this.checkIfColumnHeader(e.target)){var t=this.getTHFromTargetElement(e.target);if(!t)return;var n=t.getAttribute("colspan");!t||null!==n&&1!==n||this.pressed||this.setupHandlePosition(t)}},afterMouseDownTimeout:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){var r=e.hot.runHooks("beforeColumnResize",n,e.newSize,!0);void 0!==r&&(e.newSize=r),"all"===e.hot.getSettings().stretchH?e.clearManualSize(n):e.setManualSize(n,e.newSize),o&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",n,e.newSize,!0)};if(this.dblclick>=2){var o=this.selectedCols.length;o>1?(C(this.selectedCols,function(e){n(e)}),t()):C(this.selectedCols,function(e){n(e,!0)})}this.dblclick=0,this.autoresizeTimeout=null},onMouseDown:function(e){var t=this;m(e.target,"manualColumnResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick++,this.startX=b(e),this.newSize=this.startWidth)},onMouseMove:function(e){var t=this;this.pressed&&(this.currentWidth=this.startWidth+(b(e)-this.startX),C(this.selectedCols,function(e){t.newSize=t.setManualSize(e,t.currentWidth)}),this.refreshHandlePosition(),this.refreshGuidePosition())},onMouseUp:function(e){var t=this,n=function(){t.hot.forceFullRender=!0,t.hot.view.render(),t.hot.view.wt.wtOverlays.adjustElementsSize(!0)},o=function(e,o){t.hot.runHooks("beforeColumnResize",e,t.newSize),o&&n(),t.saveManualColumnWidths(),t.hot.runHooks("afterColumnResize",e,t.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startWidth){var r=this.selectedCols.length;r>1?(C(this.selectedCols,function(e){o(e)}),n()):C(this.selectedCols,function(e){o(e,!0)})}this.setupHandlePosition(this.currentTH)}},bindEvents:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(t){return e.onMouseUp(t)})},setManualSize:function(e,t){return t=Math.max(t,20),e=this.hot.runHooks("modifyCol",e),this.manualColumnWidths[e]=t,t},clearManualSize:function(e){e=this.hot.runHooks("modifyCol",e),this.manualColumnWidths[e]=void 0},onModifyColWidth:function(e,t){return this.enabled&&(t=this.hot.runHooks("modifyCol",t),this.hot.getSettings().manualColumnResize&&this.manualColumnWidths[t])?this.manualColumnWidths[t]:e},onBeforeStretchingColumnWidth:function(e,t){var n=this.manualColumnWidths[t];return void 0===n&&(n=e),n},onBeforeColumnResize:function(){this.hot.view.wt.wtViewport.hasOversizedColumnHeadersMarked={}}},{},h),R("manualColumnResize",M)},{"_base.js":62,browser:24,eventManager:42,"helpers/array":43,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/number":52,plugins:61}],102:[function(e,t,n){"use strict";Object.defineProperties(n,{ManualRowMove:{get:function(){return D}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c,d,h,f=(o=e("_base.js"),o&&o.__esModule&&o||{default:o}).default,p=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,m=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).arrayEach,g=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}),w=g.addClass,v=g.removeClass,y=g.offset,b=(a=e("helpers/number"),a&&a.__esModule&&a||{default:a}).rangeEach,C=(l=e("eventManager"),l&&l.__esModule&&l||{default:l}).eventManager,_=(u=e("plugins"),u&&u.__esModule&&u||{default:u}).registerPlugin,R=(c=e("rowsMapper"),c&&c.__esModule&&c||{default:c}).RowsMapper,M=(d=e("ui/backlight"),d&&d.__esModule&&d||{default:d}).BacklightUI,S=(h=e("ui/guideline"),h&&h.__esModule&&h||{default:h}).GuidelineUI,E=new WeakMap,O="ht__manualRowMove",T="show-ui",k="on-moving--rows",x="after-selection--rows",D=function(e){$traceurRuntime.superConstructor(H).call(this,e),E.set(this,{rowsToMove:[],pressed:void 0,disallowMoving:void 0,target:{eventPageY:void 0,coords:void 0,TD:void 0,row:void 0}}),this.removedRows=[],this.rowsMapper=new R(this),this.eventManager=C(this),this.backlight=new M(e),this.guideline=new S(e)},H=D;$traceurRuntime.createClass(D,{isEnabled:function(){return!!this.hot.getSettings().manualRowMove},enablePlugin:function(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(t,n,o,r){return e.onBeforeOnCellMouseDown(t,n,o,r)}),this.addHook("beforeOnCellMouseOver",function(t,n,o,r){return e.onBeforeOnCellMouseOver(t,n,o,r)}),this.addHook("afterScrollHorizontally",function(){return e.onAfterScrollHorizontally()}),this.addHook("modifyRow",function(t,n){return e.onModifyRow(t,n)}),this.addHook("beforeRemoveRow",function(t,n){return e.onBeforeRemoveRow(t,n)}),this.addHook("afterRemoveRow",function(t,n){return e.onAfterRemoveRow(t,n)}),this.addHook("afterCreateRow",function(t,n){return e.onAfterCreateRow(t,n)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),this.addHook("beforeColumnSort",function(t,n){return e.onBeforeColumnSort(t,n)}),this.addHook("unmodifyRow",function(t){return e.onUnmodifyRow(t)}),this.registerEvents(),w(this.hot.rootElement,O),$traceurRuntime.superGet(this,H.prototype,"enablePlugin").call(this))},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),this.onAfterPluginsInitialized(),$traceurRuntime.superGet(this,H.prototype,"updatePlugin").call(this)},disablePlugin:function(){var e=this.hot.getSettings().manualRowMove;Array.isArray(e)&&this.rowsMapper.clearMap(),v(this.hot.rootElement,O),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),$traceurRuntime.superGet(this,H.prototype,"disablePlugin").call(this)},moveRow:function(e,t){this.moveRows([e],t)},moveRows:function(e,t){var n=this,o=E.get(this),r=this.hot.runHooks("beforeRowMove",e,t);o.disallowMoving=r===!1,o.disallowMoving||(m(e,function(e,t,o){o[t]=n.rowsMapper.getValueByIndex(e)}),m(e,function(e,o){var r=n.rowsMapper.getIndexByValue(e);r!==t&&n.rowsMapper.moveRow(r,t+o)}),this.rowsMapper.clearNull()),this.hot.runHooks("afterRowMove",e,t)},changeSelection:function(e,t){var n=this.hot.selection,o=this.hot.countCols()-1;n.setRangeStartOnly(new WalkontableCellCoords(e,0)),n.setRangeEnd(new WalkontableCellCoords(t,o),!1)},getRowsHeight:function(e,t){for(var n=0,o=e;o<t;o++){var r=this.hot.view.wt.wtTable.getRowHeight(o)||23;n+=r}return n},initialSettings:function(){var e=this.hot.getSettings().manualRowMove;if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){var t=this.persistentStateLoad();t.length&&this.moveRows(t,0)}},isFixedRowTop:function(e){return e<this.hot.getSettings().fixedRowsTop},isFixedRowBottom:function(e){return e>this.hot.getSettings().fixedRowsBottom},persistentStateSave:function(){p.hooks.run(this.hot,"persistentStateSave","manualRowMove",this.rowsMapper._arrayMap)},persistentStateLoad:function(){var e={};return p.hooks.run(this.hot,"persistentStateLoad","manualRowMove",e),e.value?e.value:[]},prepareRowsToMoving:function(){var e=this.hot.getSelectedRange(),t=[];if(!e)return t;var n=e,o=n.from,r=n.to,i=Math.min(o.row,r.row),s=Math.max(o.row,r.row);return b(i,s,function(e){t.push(e)}),t},refreshPositions:function(){var e=E.get(this),t=e.target.coords,n=this.hot.view.wt.wtTable.getFirstVisibleRow(),o=this.hot.view.wt.wtTable.getLastVisibleRow(),r=this.hot.getSettings().fixedRowsTop,i=this.hot.countRows();t.row<r&&n>0&&this.hot.scrollViewportTo(n-1),t.row>=o&&o<i&&this.hot.scrollViewportTo(o+1,void 0,!0);var s=this.hot.view.wt.wtTable,a=e.target.TD,l=y(this.hot.rootElement),u=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,t.row),c=e.target.eventPageY-l.top+s.holder.scrollTop,d=s.hider.offsetHeight,h=s.TBODY.offsetTop,f=this.backlight.getOffset().top,p=this.backlight.getSize().height;l.top+s.holder.offsetHeight<e.target.eventPageY&&e.target.coords.row++,this.isFixedRowTop(t.row)&&(u+=s.holder.scrollTop),t.row<0?e.target.row=n>0?n-1:n:a.offsetHeight/2+u<=c?(e.target.row=t.row+1,u+=0===t.row?a.offsetHeight-1:a.offsetHeight):e.target.row=t.row;var m=c,g=u;c+p+f>=d?m=d-p-f:c+f<h&&(m=h+Math.abs(f)),u>=d-1&&(g=d-1);var w=0;this.hot.view.wt.wtOverlays.topOverlay&&(w=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.TABLE.offsetHeight),t.row>=r&&g-s.holder.scrollTop<w&&this.hot.scrollViewportTo(t.row),this.backlight.setPosition(m),this.guideline.setPosition(g)},updateRowsMapper:function(){var e=this.hot.countSourceRows(),t=this.rowsMapper._arrayMap.length;if(0===t)this.rowsMapper.createMap(e||this.hot.getSettings().startRows);else if(t<e){var n=e-t;this.rowsMapper.insertItems(t,n)}else if(t>e){var o=e-1,r=[];m(this.rowsMapper._arrayMap,function(e,t,n){e>o&&r.push(t)}),this.rowsMapper.removeItems(r)}},registerEvents:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()})},unregisterEvents:function(){this.eventManager.clear()},onBeforeColumnSort:function(e,t){var n=E.get(this);n.disallowMoving=void 0!==t},onBeforeOnCellMouseDown:function(e,t,n,o){var r=this.hot.view.wt.wtTable,i=this.hot.selection.selectedHeader.rows,s=this.hot.getSelectedRange(),a=E.get(this);if(!s||!i||a.pressed||0!==e.button)return a.pressed=!1,a.rowsToMove.length=0,void v(this.hot.rootElement,[k,T]);var l=this.guideline.isBuilt()&&!this.guideline.isAppended(),u=this.backlight.isBuilt()&&!this.backlight.isAppended();l&&u&&(this.guideline.appendTo(r.hider),this.backlight.appendTo(r.hider));var c=s,d=c.from,h=c.to,f=Math.min(d.row,h.row),p=Math.max(d.row,h.row);if(t.col<0&&t.row>=f&&t.row<=p){o.row=!0,a.pressed=!0,a.target.eventPageY=e.pageY,a.target.coords=t,a.target.TD=n,a.rowsToMove=this.prepareRowsToMoving();var m=r.holder.scrollLeft+r.getColumnWidth(-1);this.backlight.setPosition(null,m),this.backlight.setSize(r.hider.offsetWidth-m,this.getRowsHeight(f,p+1)),this.backlight.setOffset((this.getRowsHeight(f,t.row)+e.layerY)*-1,null),w(this.hot.rootElement,k),this.refreshPositions()}else v(this.hot.rootElement,x),a.pressed=!1,a.rowsToMove.length=0},onMouseMove:function(e){var t=E.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().height;this.backlight.setSize(null,0),setTimeout(function(){this.backlight.setPosition(null,n)})}t.target.eventPageY=e.pageY,this.refreshPositions()}},onBeforeOnCellMouseOver:function(e,t,n,o){var r=this.hot.getSelectedRange(),i=E.get(this);r&&i.pressed&&(i.rowsToMove.indexOf(t.row)>-1?v(this.hot.rootElement,T):w(this.hot.rootElement,T),o.row=!0,o.column=!0,o.cell=!0,i.target.coords=t,i.target.TD=n)},onMouseUp:function(){var e=E.get(this),t=e.target.row,n=e.rowsToMove.length;if(e.pressed=!1,e.backlightHeight=0,v(this.hot.rootElement,[k,T,x]),this.hot.selection.selectedHeader.rows&&w(this.hot.rootElement,x),!(n<1||void 0===t||e.rowsToMove.indexOf(t)>-1||e.rowsToMove[n-1]===t-1)){if(this.moveRows(e.rowsToMove,t),this.persistentStateSave(),this.hot.render(),!e.disallowMoving){var o=this.rowsMapper.getIndexByValue(e.rowsToMove[0]),r=this.rowsMapper.getIndexByValue(e.rowsToMove[n-1]);this.changeSelection(o,r)}e.rowsToMove.length=0}},onAfterScrollHorizontally:function(){var e=this.hot.view.wt.wtTable,t=e.getColumnWidth(-1),n=e.holder.scrollLeft,o=t+n;this.backlight.setPosition(null,o),this.backlight.setSize(e.hider.offsetWidth-o)},onAfterCreateRow:function(e,t){this.rowsMapper.shiftItems(e,t)},onBeforeRemoveRow:function(e,t){var n=this;this.removedRows.length=0,e!==!1&&b(e,e+t-1,function(e){n.removedRows.push(n.hot.runHooks("modifyRow",e,n.pluginName))})},onAfterRemoveRow:function(e,t){this.rowsMapper.unshiftItems(this.removedRows)},onAfterLoadData:function(e){this.updateRowsMapper()},onModifyRow:function(e,t){if(t!==this.pluginName){var n=this.rowsMapper.getValueByIndex(e);e=null===n?e:n}return e},onUnmodifyRow:function(e){var t=this.rowsMapper.getIndexByValue(e);return null===t?e:t},onAfterPluginsInitialized:function(){this.updateRowsMapper(),this.initialSettings(),this.backlight.build(),this.guideline.build()},destroy:function(){this.backlight.destroy(),this.guideline.destroy(),$traceurRuntime.superGet(this,H.prototype,"destroy").call(this)}},{},f),_("ManualRowMove",D),p.hooks.register("beforeRowMove"),p.hooks.register("afterRowMove"),p.hooks.register("unmodifyRow")},{"_base.js":62,browser:24,eventManager:42,"helpers/array":43,"helpers/dom/element":47,"helpers/number":52,plugins:61,rowsMapper:103,"ui/backlight":105,"ui/guideline":106}],103:[function(e,t,n){"use strict";Object.defineProperties(n,{RowsMapper:{get:function(){return f}},__esModule:{value:!0}});var o,r,i,s,a,l=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,u=(r=e("mixins/arrayMapper"),r&&r.__esModule&&r||{default:r}).arrayMapper,c=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).arrayFilter,d=(s=e("helpers/object"),s&&s.__esModule&&s||{default:s}).mixin,h=(a=e("helpers/number"),a&&a.__esModule&&a||{default:a}).rangeEach,f=function(e){this.manualRowMove=e};$traceurRuntime.createClass(f,{createMap:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,h(n-1,function(e){t._arrayMap[e]=e})},destroy:function(){this._arrayMap=null},moveRow:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)},clearNull:function(){this._arrayMap=c(this._arrayMap,function(e){return null!==e})}},{}),d(f,u),l.utils.ManualRowMoveRowsMapper=f},{browser:24,"helpers/array":43,"helpers/number":52,"helpers/object":53,"mixins/arrayMapper":57}],104:[function(e,t,n){"use strict";Object.defineProperties(n,{BaseUI:{get:function(){return a}},__esModule:{value:!0}});var o=0,r=1,i=2,s="px",a=function(e){this.hot=e,this._element=null,this.state=o};$traceurRuntime.createClass(a,{appendTo:function(e){e.appendChild(this._element),this.state=i},build:function(){this._element=document.createElement("div"),this.state=r},destroy:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=o},isAppended:function(){return this.state===i},isBuilt:function(){return this.state>=r},setPosition:function(e,t){e&&(this._element.style.top=e+s),t&&(this._element.style.left=t+s)},getPosition:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}},setSize:function(e,t){e&&(this._element.style.width=e+s),t&&(this._element.style.height=t+s)},getSize:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}},setOffset:function(e,t){e&&(this._element.style.marginTop=e+s),t&&(this._element.style.marginLeft=t+s)},getOffset:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}},{})},{}],105:[function(e,t,n){"use strict";Object.defineProperties(n,{BacklightUI:{get:function(){return l}},__esModule:{value:!0}});var o,r,i=(o=e("_base"),o&&o.__esModule&&o||{default:o}).BaseUI,s=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}).addClass,a="ht__manualRowMove--backlight",l=function(e){$traceurRuntime.superConstructor(u).call(this,e)},u=l;$traceurRuntime.createClass(l,{build:function(){$traceurRuntime.superGet(this,u.prototype,"build").call(this),s(this._element,a)}},{},i)},{_base:104,"helpers/dom/element":47}],106:[function(e,t,n){"use strict";Object.defineProperties(n,{GuidelineUI:{get:function(){return l}},__esModule:{value:!0}});var o,r,i=(o=e("_base"),o&&o.__esModule&&o||{default:o}).BaseUI,s=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}).addClass,a="ht__manualRowMove--guideline",l=function(e){$traceurRuntime.superConstructor(u).call(this,e)},u=l;$traceurRuntime.createClass(l,{build:function(){$traceurRuntime.superGet(this,u.prototype,"build").call(this),s(this._element,a)}},{},i)},{_base:104,"helpers/dom/element":47}],107:[function(e,t,n){"use strict";Object.defineProperties(n,{ManualRowResize:{get:function(){return M}},__esModule:{value:!0}});var o,r,i,s,a,l,u,c,d=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,h=(r=e("_base.js"),r&&r.__esModule&&r||{default:r}).default,f=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),p=f.addClass,m=f.hasClass,g=f.removeClass,w=f.outerWidth,v=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).eventManager,y=(a=e("helpers/dom/event"),a&&a.__esModule&&a||{default:a}),b=(y.pageX,y.pageY),C=(l=e("helpers/array"),l&&l.__esModule&&l||{default:l}).arrayEach,_=(u=e("helpers/number"),u&&u.__esModule&&u||{default:u}).rangeEach,R=(c=e("plugins"),c&&c.__esModule&&c||{default:c}).registerPlugin,M=function(e){$traceurRuntime.superConstructor(S).call(this,e),this.currentTH=null,this.currentRow=null,this.selectedRows=[],this.currentHeight=null,this.newSize=null,this.startY=null,this.startHeight=null,this.startOffset=null,this.handle=document.createElement("DIV"),this.guide=document.createElement("DIV"),this.eventManager=v(this),this.pressed=null,this.dblclick=0,this.autoresizeTimeout=null,this.manualRowHeights=[],p(this.handle,"manualRowResizer"),p(this.guide,"manualRowResizerGuide")},S=M;$traceurRuntime.createClass(M,{isEnabled:function(){return this.hot.getSettings().manualRowResize},enablePlugin:function(){var e=this;if(!this.enabled){this.manualRowHeights=[];var t=this.hot.getSettings().manualRowResize,n=this.loadManualRowHeights();"undefined"!=typeof n?this.manualRowHeights=n:Array.isArray(t)?this.manualRowHeights=t:this.manualRowHeights=[],this.addHook("modifyRowHeight",function(t,n){return e.onModifyRowHeight(t,n)}),d.hooks.register("beforeRowResize"),d.hooks.register("afterRowResize"),this.bindEvents(),$traceurRuntime.superGet(this,S.prototype,"enablePlugin").call(this)}},updatePlugin:function(){var e=this.hot.getSettings().manualRowResize;Array.isArray(e)?this.manualRowHeights=e:e||(this.manualRowHeights=[])},disablePlugin:function(){$traceurRuntime.superGet(this,S.prototype,"disablePlugin").call(this)},saveManualRowHeights:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.manualRowHeights)},loadManualRowHeights:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowHeights",e),e.value},setupHandlePosition:function(e){var t=this;this.currentTH=e;var n=this.hot.view.wt.wtTable.getCoords(e).row,o=w(this.currentTH);if(n>=0){var r=this.currentTH.getBoundingClientRect();if(this.currentRow=n,this.selectedRows=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.rows){var i=this.hot.getSelectedRange(),s=i.from,a=i.to,l=s.row,u=a.row;l>=u&&(l=a.row,u=s.row),this.currentRow>=l&&this.currentRow<=u?_(l,u,function(e){return t.selectedRows.push(e)}):this.selectedRows.push(this.currentRow)}else this.selectedRows.push(this.currentRow);this.startOffset=r.top-6,this.startHeight=parseInt(r.height,10),this.handle.style.left=r.left+"px",this.handle.style.top=this.startOffset+this.startHeight+"px",this.handle.style.width=o+"px",this.hot.rootElement.appendChild(this.handle)}},refreshHandlePosition:function(){this.handle.style.top=this.startOffset+this.currentHeight+"px"},setupGuidePosition:function(){var e=parseInt(w(this.handle),10),t=parseInt(this.handle.style.left,10)+e,n=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);p(this.handle,"active"),p(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style.left=t+"px",this.guide.style.width=n-e+"px",this.hot.rootElement.appendChild(this.guide)},refreshGuidePosition:function(){this.guide.style.top=this.handle.style.top},hideHandleAndGuide:function(){g(this.handle,"active"),g(this.guide,"active")},checkIfRowHeader:function(e){if(e!=this.hot.rootElement){var t=e.parentNode;return"TBODY"===t.tagName||this.checkIfRowHeader(t)}return!1},getTHFromTargetElement:function(e){return"TABLE"!=e.tagName?"TH"==e.tagName?e:this.getTHFromTargetElement(e.parentNode):null},onMouseOver:function(e){if(this.checkIfRowHeader(e.target)){var t=this.getTHFromTargetElement(e.target);t&&(this.pressed||this.setupHandlePosition(t))}},afterMouseDownTimeout:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(n,o){var r=e.hot.runHooks("beforeRowResize",n,e.newSize,!0);void 0!==r&&(e.newSize=r),e.setManualSize(n,e.newSize),o&&t(),e.hot.runHooks("afterRowResize",n,e.newSize,!0)};if(this.dblclick>=2){var o=this.selectedRows.length;o>1?(C(this.selectedRows,function(e){n(e)}),t()):C(this.selectedRows,function(e){n(e,!0)})}this.dblclick=0,this.autoresizeTimeout=null},onMouseDown:function(e){var t=this;m(e.target,"manualRowResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null==this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick++,this.startY=b(e),this.newSize=this.startHeight)},onMouseMove:function(e){var t=this;this.pressed&&(this.currentHeight=this.startHeight+(b(e)-this.startY),C(this.selectedRows,function(e){t.newSize=t.setManualSize(e,t.currentHeight)}),this.refreshHandlePosition(),this.refreshGuidePosition())},onMouseUp:function(e){var t=this,n=function(){t.hot.forceFullRender=!0,t.hot.view.render(),t.hot.view.wt.wtOverlays.adjustElementsSize(!0)},o=function(e,o){t.hot.runHooks("beforeRowResize",e,t.newSize),o&&n(),t.saveManualRowHeights(),t.hot.runHooks("afterRowResize",e,t.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startHeight){var r=this.selectedRows.length;r>1?(C(this.selectedRows,function(e){o(e)}),n()):C(this.selectedRows,function(e){o(e,!0)})}this.setupHandlePosition(this.currentTH)}},bindEvents:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(t){return e.onMouseUp(t)})},setManualSize:function(e,t){return e=this.hot.runHooks("modifyRow",e),this.manualRowHeights[e]=t,t},onModifyRowHeight:function(e,t){if(this.enabled){var n=this.hot.getPlugin("autoRowSize"),o=n?n.heights[t]:null;t=this.hot.runHooks("modifyRow",t);var r=this.manualRowHeights[t];if(void 0!==r&&(r===o||r>(e||0)))return r}return e}},{},h),R("manualRowResize",M)},{"_base.js":62,browser:24,eventManager:42,"helpers/array":43,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/number":52,plugins:61}],108:[function(e,t,n){"use strict";function o(){var e=[];return e.getInfo=function(e,t){
for(var n=0,o=this.length;n<o;n++)if(this[n].row<=e&&this[n].row+this[n].rowspan-1>=e&&this[n].col<=t&&this[n].col+this[n].colspan-1>=t)return this[n]},e.setInfo=function(e){for(var t=0,n=this.length;t<n;t++)if(this[t].row===e.row&&this[t].col===e.col)return void(this[t]=e);this.push(e)},e.removeInfo=function(e,t){for(var n=0,o=this.length;n<o;n++)if(this[n].row===e&&this[n].col===t){this.splice(n,1);break}},e}function r(e){if(this.mergedCellInfoCollection=new o,Array.isArray(e))for(var t=0,n=e.length;t<n;t++)this.mergedCellInfoCollection.setInfo(e[t])}function i(e,t){var n=this.getSettings().mergeCells;if(n&&!this.selection.isMultiple()){var o=this.mergeCells.mergedCellInfoCollection.getInfo(e[0],e[1]);o&&(e[0]=o.row,e[1]=o.col,e[2]=o.row+o.rowspan-1,e[3]=o.col+o.colspan-1)}}function s(e,t){this.mergeCells&&this.mergeCells.shiftCollection("right",e,t)}function a(e,t){this.mergeCells&&this.mergeCells.shiftCollection("left",e,t)}function l(e,t){this.mergeCells&&this.mergeCells.shiftCollection("down",e,t)}function u(e,t){this.mergeCells&&this.mergeCells.shiftCollection("up",e,t)}Object.defineProperties(n,{MergeCells:{get:function(){return r}},__esModule:{value:!0}});var c,d,h,f,p,m,g=(c=e("browser"),c&&c.__esModule&&c||{default:c}).default,w=((d=e("plugins"),d&&d.__esModule&&d||{default:d}).registerPlugin,(h=e("helpers/dom/event"),h&&h.__esModule&&h||{default:h}).stopImmediatePropagation),v=(f=e("3rdparty/walkontable/src/cell/coords"),f&&f.__esModule&&f||{default:f}).WalkontableCellCoords,y=(p=e("3rdparty/walkontable/src/cell/range"),p&&p.__esModule&&p||{default:p}).WalkontableCellRange,b=(m=e("3rdparty/walkontable/src/table"),m&&m.__esModule&&m||{default:m}).WalkontableTable;r.prototype.canMergeRange=function(e){return!e.isSingle()},r.prototype.mergeRange=function(e){if(this.canMergeRange(e)){var t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),o={};o.row=t.row,o.col=t.col,o.rowspan=n.row-t.row+1,o.colspan=n.col-t.col+1,this.mergedCellInfoCollection.setInfo(o)}},r.prototype.mergeOrUnmergeSelection=function(e){var t=this.mergedCellInfoCollection.getInfo(e.from.row,e.from.col);t?this.unmergeSelection(e.from):this.mergeSelection(e)},r.prototype.mergeSelection=function(e){this.mergeRange(e)},r.prototype.unmergeSelection=function(e){var t=this.mergedCellInfoCollection.getInfo(e.row,e.col);this.mergedCellInfoCollection.removeInfo(t.row,t.col)},r.prototype.applySpanProperties=function(e,t,n){var o=this.mergedCellInfoCollection.getInfo(t,n);o?o.row===t&&o.col===n?(e.setAttribute("rowspan",o.rowspan),e.setAttribute("colspan",o.colspan)):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"))},r.prototype.modifyTransform=function(e,t,n){var o=function(e,t){return t.row>=e.row&&t.row<=e.row+e.rowspan-1},r=function(e,t){return t.col>=e.col&&t.col<=e.col+e.colspan-1},i=function(e){return new v(t.to.row+e.row,t.to.col+e.col)},s={row:n.row,col:n.col};if("modifyTransformStart"==e){this.lastDesiredCoords||(this.lastDesiredCoords=new v(null,null));for(var a,l=new v(t.highlight.row,t.highlight.col),u=this.mergedCellInfoCollection.getInfo(l.row,l.col),c=0,d=this.mergedCellInfoCollection.length;c<d;c++){var h=this.mergedCellInfoCollection[c];if(h=new v(h.row+h.rowspan-1,h.col+h.colspan-1),t.includes(h)){a=!0;break}}if(u){var f=new v(u.row,u.col),p=new v(u.row+u.rowspan-1,u.col+u.colspan-1),m=new y(f,f,p);m.includes(this.lastDesiredCoords)||(this.lastDesiredCoords=new v(null,null)),s.row=this.lastDesiredCoords.row?this.lastDesiredCoords.row-l.row:s.row,s.col=this.lastDesiredCoords.col?this.lastDesiredCoords.col-l.col:s.col,n.row>0?s.row=u.row+u.rowspan-1-l.row+n.row:n.row<0&&(s.row=l.row-u.row+n.row),n.col>0?s.col=u.col+u.colspan-1-l.col+n.col:n.col<0&&(s.col=l.col-u.col+n.col)}var g=new v(t.highlight.row+s.row,t.highlight.col+s.col),w=this.mergedCellInfoCollection.getInfo(g.row,g.col);w&&(this.lastDesiredCoords=g,s={row:w.row-l.row,col:w.col-l.col})}else if("modifyTransformEnd"==e)for(var c=0,d=this.mergedCellInfoCollection.length;c<d;c++){var b=this.mergedCellInfoCollection[c],f=new v(b.row,b.col),p=new v(b.row+b.rowspan-1,b.col+b.colspan-1),C=new y(f,f,p),_=t.getBordersSharedWith(C);if(C.isEqual(t))t.setDirection("NW-SE");else if(_.length>0){var R=t.highlight.isEqual(C.from);_.indexOf("top")>-1?t.to.isSouthEastOf(C.from)&&R?t.setDirection("NW-SE"):t.to.isSouthWestOf(C.from)&&R&&t.setDirection("NE-SW"):_.indexOf("bottom")>-1&&(t.to.isNorthEastOf(C.from)&&R?t.setDirection("SW-NE"):t.to.isNorthWestOf(C.from)&&R&&t.setDirection("SE-NW"))}var g=i(s),M=o(b,g),S=r(b,g);t.includesRange(C)&&(C.includes(g)||M||S)&&(M&&(s.row<0?s.row-=b.rowspan-1:s.row>0&&(s.row+=b.rowspan-1)),S&&(s.col<0?s.col-=b.colspan-1:s.col>0&&(s.col+=b.colspan-1)))}0!==s.row&&(n.row=s.row),0!==s.col&&(n.col=s.col)},r.prototype.shiftCollection=function(e,t,n){var o=[0,0];switch(e){case"right":o[0]+=1;break;case"left":o[0]-=1;break;case"down":o[1]+=1;break;case"up":o[1]-=1}for(var r=0;r<this.mergedCellInfoCollection.length;r++){var i=this.mergedCellInfoCollection[r];"right"===e||"left"===e?t<=i.col&&(i.col+=o[0]):t<=i.row&&(i.row+=o[1])}};var C=function(){var e=this,t=e.getSettings().mergeCells;t&&(e.mergeCells||(e.mergeCells=new r(t)))},_=function(){var e=this;e.mergeCells&&(e.view.wt.wtTable.getCell=function(t){if(e.getSettings().mergeCells){var n=e.mergeCells.mergedCellInfoCollection.getInfo(t.row,t.col);n&&(t=n)}return b.prototype.getCell.call(this,t)})},R=function(){var e=this,t=e.getSettings().mergeCells;if(t)if(e.mergeCells){if(e.mergeCells.mergedCellInfoCollection=new o,Array.isArray(t))for(var n=0,i=t.length;n<i;n++)e.mergeCells.mergedCellInfoCollection.setInfo(t[n])}else e.mergeCells=new r(t);else e.mergeCells&&(e.mergeCells.mergedCellInfoCollection=new o)},M=function(e){if(this.mergeCells){var t=(e.ctrlKey||e.metaKey)&&!e.altKey;t&&77===e.keyCode&&(this.mergeCells.mergeOrUnmergeSelection(this.getSelectedRange()),this.render(),w(e))}},S=function(e){this.getSettings().mergeCells&&(e.items.push(g.plugins.ContextMenu.SEPARATOR),e.items.push({key:"mergeCells",name:function(){var e=this.getSelected(),t=this.mergeCells.mergedCellInfoCollection.getInfo(e[0],e[1]);return t?"Unmerge cells":"Merge cells"},callback:function(){this.mergeCells.mergeOrUnmergeSelection(this.getSelectedRange()),this.render()},disabled:function(){return this.selection.selectedHeader.corner}}))},E=function(e,t,n,o,r,i){this.mergeCells&&this.mergeCells.applySpanProperties(e,t,n)},O=function(e){return function(t){var n=this.getSettings().mergeCells;if(n){var o=this.getSelectedRange();if(this.mergeCells.modifyTransform(e,o,t),"modifyTransformEnd"===e){var r=this.countRows(),i=this.countCols();o.from.row<0?o.from.row=0:o.from.row>0&&o.from.row>=r&&(o.from.row=o.from-1),o.from.col<0?o.from.col=0:o.from.col>0&&o.from.col>=i&&(o.from.col=i-1)}}}},T=function(e){this.lastDesiredCoords=null;var t=this.getSettings().mergeCells;if(t){var n=this.getSelectedRange();n.highlight=new v(n.highlight.row,n.highlight.col),n.to=e;var o=!1;do{o=!1;for(var r=0,i=this.mergeCells.mergedCellInfoCollection.length;r<i;r++){var s=this.mergeCells.mergedCellInfoCollection[r],a=new v(s.row,s.col),l=new v(s.row+s.rowspan-1,s.col+s.colspan-1),u=new y(a,a,l);n.expandByRange(u)&&(e.row=n.to.row,e.col=n.to.col,o=!0)}}while(o)}},k=function(e,t){if(t&&"area"==t){var n=this.getSettings().mergeCells;if(n)for(var o=this.getSelectedRange(),r=new y(o.from,o.from,o.from),i=new y(o.to,o.to,o.to),s=0,a=this.mergeCells.mergedCellInfoCollection.length;s<a;s++){var l=this.mergeCells.mergedCellInfoCollection[s],u=new v(l.row,l.col),c=new v(l.row+l.rowspan-1,l.col+l.colspan-1),d=new y(u,u,c);r.expandByRange(d)&&(e[0]=r.from.row,e[1]=r.from.col),i.expandByRange(d)&&(e[2]=i.from.row,e[3]=i.from.col)}}},x=function(e,t,n){var o=this.getSettings().mergeCells;if(o){var r=this.mergeCells.mergedCellInfoCollection.getInfo(e,t);!r||r.row==e&&r.col==t||(n.copyable=!1)}},D=function(e){var t=this.getSettings().mergeCells;if(t)for(var n,o=this.countCols(),r=0;r<o;r++){if(n=this.mergeCells.mergedCellInfoCollection.getInfo(e.startRow,r),n&&n.row<e.startRow)return e.startRow=n.row,D.call(this,e);if(n=this.mergeCells.mergedCellInfoCollection.getInfo(e.endRow,r)){var i=n.row+n.rowspan-1;if(i>e.endRow)return e.endRow=i,D.call(this,e)}}},H=function(e){var t=this.getSettings().mergeCells;if(t)for(var n,o=this.countRows(),r=0;r<o;r++){if(n=this.mergeCells.mergedCellInfoCollection.getInfo(r,e.startColumn),n&&n.col<e.startColumn)return e.startColumn=n.col,H.call(this,e);if(n=this.mergeCells.mergedCellInfoCollection.getInfo(r,e.endColumn)){var i=n.col+n.colspan-1;if(i>e.endColumn)return e.endColumn=i,H.call(this,e)}}},A=function(e){if(e&&this.mergeCells){var t=this.mergeCells.mergedCellInfoCollection,n=this.getSelectedRange();for(var o in t)if(n.highlight.row==t[o].row&&n.highlight.col==t[o].col&&n.to.row==t[o].row+t[o].rowspan-1&&n.to.col==t[o].col+t[o].colspan-1)return!1}return e};g.hooks.add("beforeInit",C),g.hooks.add("afterInit",_),g.hooks.add("afterUpdateSettings",R),g.hooks.add("beforeKeyDown",M),g.hooks.add("modifyTransformStart",O("modifyTransformStart")),g.hooks.add("modifyTransformEnd",O("modifyTransformEnd")),g.hooks.add("beforeSetRangeEnd",T),g.hooks.add("beforeDrawBorders",k),g.hooks.add("afterIsMultipleSelection",A),g.hooks.add("afterRenderer",E),g.hooks.add("afterContextMenuDefaultOptions",S),g.hooks.add("afterGetCellMeta",x),g.hooks.add("afterViewportRowCalculatorOverride",D),g.hooks.add("afterViewportColumnCalculatorOverride",H),g.hooks.add("modifyAutofillRange",i),g.hooks.add("afterCreateCol",s),g.hooks.add("afterRemoveCol",a),g.hooks.add("afterCreateRow",l),g.hooks.add("afterRemoveRow",u),g.MergeCells=r},{"3rdparty/walkontable/src/cell/coords":6,"3rdparty/walkontable/src/cell/range":7,"3rdparty/walkontable/src/table":21,browser:24,"helpers/dom/event":48,plugins:61}],109:[function(e,t,n){"use strict";Object.defineProperties(n,{MultipleSelectionHandles:{get:function(){return w}},__esModule:{value:!0}});var o,r,i,s,a,l,u=((o=e("browser"),o&&o.__esModule&&o||{default:o}).default,r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),c=u.getWindowScrollTop,d=u.hasClass,h=u.getWindowScrollLeft,f=(i=e("helpers/browser"),i&&i.__esModule&&i||{default:i}).isMobileBrowser,p=(s=e("_base"),s&&s.__esModule&&s||{default:s}).default,m=(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).EventManager,g=(l=e("plugins"),l&&l.__esModule&&l||{default:l}).registerPlugin,w=function(e){$traceurRuntime.superConstructor(v).call(this,e),this.dragged=[],this.eventManager=null,this.lastSetCell=null},v=w;$traceurRuntime.createClass(w,{isEnabled:function(){return f()},enablePlugin:function(){this.enabled||(this.eventManager||(this.eventManager=new m(this)),this.registerListeners(),$traceurRuntime.superGet(this,v.prototype,"enablePlugin").call(this))},registerListeners:function(){function e(e){if(1===t.dragged.length)return t.dragged.splice(0,t.dragged.length),!0;var n=t.dragged.indexOf(e);return n!=-1&&void(0===n?t.dragged=t.dragged.slice(0,1):1==n&&(t.dragged=t.dragged.slice(-1)))}var t=this;this.eventManager.addEventListener(this.hot.rootElement,"touchstart",function(e){var n;return d(e.target,"topLeftSelectionHandle-HitArea")?(n=t.hot.getSelectedRange(),t.dragged.push("topLeft"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):d(e.target,"bottomRightSelectionHandle-HitArea")?(n=t.hot.getSelectedRange(),t.dragged.push("bottomRight"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchend",function(n){return d(n.target,"topLeftSelectionHandle-HitArea")?(e.call(t,"topLeft"),t.touchStartRange=void 0,n.preventDefault(),!1):d(n.target,"bottomRightSelectionHandle-HitArea")?(e.call(t,"bottomRight"),t.touchStartRange=void 0,n.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchmove",function(e){var n,o,r,i,s,a,l,u=c(),d=h();0!==t.dragged.length&&(n=document.elementFromPoint(e.touches[0].screenX-d,e.touches[0].screenY-u),n&&n!==t.lastSetCell&&("TD"!=n.nodeName&&"TH"!=n.nodeName||(o=t.hot.getCoords(n),o.col==-1&&(o.col=0),r=t.hot.getSelectedRange(),i=r.getWidth(),s=r.getHeight(),a=r.getDirection(),1==i&&1==s&&t.hot.selection.setRangeEnd(o),l=t.getCurrentRangeCoords(r,o,t.touchStartRange.direction,a,t.dragged[0]),null!==l.start&&t.hot.selection.setRangeStart(l.start),t.hot.selection.setRangeEnd(l.end),t.lastSetCell=n),e.preventDefault()))})},getCurrentRangeCoords:function(e,t,n,o,r){var i=e.getTopLeftCorner(),s=e.getBottomRightCorner(),a=e.getBottomLeftCorner(),l=e.getTopRightCorner(),u={start:null,end:null};switch(n){case"NE-SW":switch(o){case"NE-SW":case"NW-SE":u="topLeft"==r?{start:new WalkontableCellCoords(t.row,e.highlight.col),end:new WalkontableCellCoords(a.row,t.col)}:{start:new WalkontableCellCoords(e.highlight.row,t.col),end:new WalkontableCellCoords(t.row,i.col)};break;case"SE-NW":"bottomRight"==r&&(u={start:new WalkontableCellCoords(s.row,t.col),end:new WalkontableCellCoords(t.row,i.col)})}break;case"NW-SE":switch(o){case"NE-SW":"topLeft"==r?u={start:t,end:a}:u.end=t;break;case"NW-SE":"topLeft"==r?u={start:t,end:s}:u.end=t;break;case"SE-NW":"topLeft"==r?u={start:t,end:i}:u.end=t;break;case"SW-NE":"topLeft"==r?u={start:t,end:l}:u.end=t}break;case"SW-NE":switch(o){case"NW-SE":u="bottomRight"==r?{start:new WalkontableCellCoords(t.row,i.col),end:new WalkontableCellCoords(a.row,t.col)}:{start:new WalkontableCellCoords(i.row,t.col),end:new WalkontableCellCoords(t.row,s.col)};break;case"SW-NE":u="topLeft"==r?{start:new WalkontableCellCoords(e.highlight.row,t.col),end:new WalkontableCellCoords(t.row,s.col)}:{start:new WalkontableCellCoords(t.row,i.col),end:new WalkontableCellCoords(i.row,t.col)};break;case"SE-NW":"bottomRight"==r?u={start:new WalkontableCellCoords(t.row,l.col),end:new WalkontableCellCoords(i.row,t.col)}:"topLeft"==r&&(u={start:a,end:t})}break;case"SE-NW":switch(o){case"NW-SE":case"NE-SW":case"SW-NE":"topLeft"==r&&(u.end=t);break;case"SE-NW":"topLeft"==r?u.end=t:u={start:t,end:i}}}return u},isDragged:function(){return this.dragged.length>0}},{},p),g("multipleSelectionHandles",w)},{_base:62,browser:24,eventManager:42,"helpers/browser":44,"helpers/dom/element":47,plugins:61}],110:[function(e,t,n){"use strict";Object.defineProperties(n,{DataObserver:{get:function(){return d}},__esModule:{value:!0}});var o,r,i,s,a=(o=e("jsonpatch"),o&&o.__esModule&&o||{default:o}).default,l=(r=e("../../mixins/localHooks"),r&&r.__esModule&&r||{default:r}).localHooks,u=(i=e("../../helpers/object"),i&&i.__esModule&&i||{default:i}).mixin,c=(s=e("utils"),s&&s.__esModule&&s||{default:s}).cleanPatches,d=function(e){this.observedData=null,this.observer=null,this.paused=!1,this.setObservedData(e)};$traceurRuntime.createClass(d,{setObservedData:function(e){var t=this;this.observer&&a.unobserve(this.observedData,this.observer),this.observedData=e,this.observer=a.observe(this.observedData,function(e){return t.onChange(e)})},isPaused:function(){return this.paused},pause:function(){this.paused=!0},resume:function(){this.paused=!1},onChange:function(e){this.runLocalHooks("change",c(e))},destroy:function(){a.unobserve(this.observedData,this.observer),this.observedData=null,this.observer=null}},{}),u(d,l)},{"../../helpers/object":53,"../../mixins/localHooks":58,jsonpatch:"jsonpatch",utils:112}],111:[function(e,t,n){"use strict";Object.defineProperties(n,{ObserveChanges:{get:function(){return p}},__esModule:{value:!0}});var o,r,i,s,a,l,u=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,c=(r=e("_base"),r&&r.__esModule&&r||{default:r}).default,d=((i=e("jsonpatch"),i&&i.__esModule&&i||{default:i}).default,(s=e("dataObserver"),s&&s.__esModule&&s||{default:s}).DataObserver),h=(a=e("helpers/array"),a&&a.__esModule&&a||{default:a}).arrayEach,f=(l=e("plugins"),l&&l.__esModule&&l||{default:l}).registerPlugin;u.hooks.register("afterChangesObserved");var p=function(e){$traceurRuntime.superConstructor(m).call(this,e),this.observer=null},m=p;$traceurRuntime.createClass(p,{isEnabled:function(){return this.hot.getSettings().observeChanges},enablePlugin:function(){var e=this;this.enabled||(this.observer||(this.observer=new d(this.hot.getSourceData()),this._exposePublicApi()),this.observer.addLocalHook("change",function(t){return e.onDataChange(t)}),this.addHook("afterCreateRow",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveRow",function(){return e.onAfterTableAlter()}),this.addHook("afterCreateCol",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveCol",function(){return e.onAfterTableAlter()}),this.addHook("afterChange",function(t,n){return e.onAfterTableAlter(n)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),$traceurRuntime.superGet(this,m.prototype,"enablePlugin").call(this))},disablePlugin:function(){this.observer&&(this.observer.destroy(),this.observer=null,this._deletePublicApi()),$traceurRuntime.superGet(this,m.prototype,"disablePlugin").call(this)},onDataChange:function(e){var t=this;if(!this.observer.isPaused()){var n=this.pluginName+".change",o={add:function(e){isNaN(e.col)?t.hot.runHooks("afterCreateRow",e.row,1,n):t.hot.runHooks("afterCreateCol",e.col,1,n)},remove:function(e){isNaN(e.col)?t.hot.runHooks("afterRemoveRow",e.row,1,n):t.hot.runHooks("afterRemoveCol",e.col,1,n)},replace:function(e){t.hot.runHooks("afterChange",[e.row,e.col,null,e.value],n)}};h(e,function(e){o[e.op]&&o[e.op](e)}),this.hot.render()}this.hot.runHooks("afterChangesObserved")},onAfterTableAlter:function(e){var t=this;"loadData"!==e&&(this.observer.pause(),this.hot.addHookOnce("afterChangesObserved",function(){return t.observer.resume()}))},onAfterLoadData:function(e){e||this.observer.setObservedData(this.hot.getSourceData())},destroy:function(){this.observer&&(this.observer.destroy(),this._deletePublicApi()),$traceurRuntime.superGet(this,m.prototype,"destroy").call(this)},_exposePublicApi:function(){var e=this,t=this.hot;t.pauseObservingChanges=function(){return e.observer.pause()},t.resumeObservingChanges=function(){return e.observer.resume()},t.isPausedObservingChanges=function(){return e.observer.isPaused()}},_deletePublicApi:function(){var e=this.hot;delete e.pauseObservingChanges,delete e.resumeObservingChanges,delete e.isPausedObservingChanges}},{},c),f("observeChanges",p)},{_base:62,browser:24,dataObserver:110,"helpers/array":43,jsonpatch:"jsonpatch",plugins:61}],112:[function(e,t,n){"use strict";function o(e){var t=[];return e=a(e,function(e){return!/[\/]length/gi.test(e.path)&&!!r(e.path)}),e=l(e,function(e){var t=r(e.path);return e.row=t.row,e.col=t.col,e}),e=a(e,function(e){if(["add","remove"].indexOf(e.op)!==-1&&!isNaN(e.col)){if(t.indexOf(e.col)!==-1)return!1;t.push(e.col)}return!0}),t.length=0,e}function r(e){var t=e.match(/^\/(\d+)\/?(.*)?$/);if(!t)return null;var n=t,o=n[1],r=n[2];return{row:parseInt(o,10),col:/^\d*$/.test(r)?parseInt(r,10):r}}Object.defineProperties(n,{cleanPatches:{get:function(){return o}},parsePath:{get:function(){return r}},__esModule:{value:!0}});var i,s=(i=e("../../helpers/array"),i&&i.__esModule&&i||{default:i}),a=s.arrayFilter,l=s.arrayMap},{"../../helpers/array":43}],113:[function(e,t,n){"use strict";function o(e){var t,n=function(){window.localStorage[e+"__persistentStateKeys"]=JSON.stringify(t)},o=function(){var n=window.localStorage[e+"__persistentStateKeys"],o="string"==typeof n?JSON.parse(n):void 0;t=o?o:[]},r=function(){t=[],n()};o(),this.saveValue=function(o,r){window.localStorage[e+"_"+o]=JSON.stringify(r),t.indexOf(o)==-1&&(t.push(o),n())},this.loadValue=function(t,n){t="undefined"==typeof t?n:t;var o=window.localStorage[e+"_"+t];return"undefined"==typeof o?void 0:JSON.parse(o)},this.reset=function(t){window.localStorage.removeItem(e+"_"+t)},this.resetAll=function(){for(var n=0;n<t.length;n++)window.localStorage.removeItem(e+"_"+t[n]);r()}}function r(){function e(){var e=this;for(var t in r)r.hasOwnProperty(t)&&e.addHook(t,r[t])}function t(){var e=this;for(var t in r)r.hasOwnProperty(t)&&e.removeHook(t,r[t])}var n=this;this.init=function(){var r=this,i=r.getSettings().persistentState;return n.enabled=!!i,n.enabled?(r.storage||(r.storage=new o(r.rootElement.id)),r.resetState=n.resetValue,void e.call(r)):void t.call(r)},this.saveValue=function(e,t){var n=this;n.storage.saveValue(e,t)},this.loadValue=function(e,t){var n=this;t.value=n.storage.loadValue(e)},this.resetValue=function(e){var t=this;"undefined"==typeof e?t.storage.resetAll():t.storage.reset(e)};var r={persistentStateSave:n.saveValue,persistentStateLoad:n.loadValue,persistentStateReset:n.resetValue};for(var i in r)r.hasOwnProperty(i)&&a.hooks.register(i)}Object.defineProperties(n,{HandsontablePersistentState:{get:function(){return r}},__esModule:{value:!0}});var i,s,a=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,l=((s=e("plugins"),s&&s.__esModule&&s||{default:s}).registerPlugin,new r);a.hooks.add("beforeInit",l.init),a.hooks.add("afterUpdateSettings",l.init)},{browser:24,plugins:61}],114:[function(e,t,n){"use strict";function o(){var e=this,t=!!e.getSettings().search;t?e.search=new a.Search(e):delete e.search}var r,i,s,a=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,l=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),u=l.addClass,c=l.removeClass,d=(s=e("renderers"),s&&s.__esModule&&s||{default:s}),h=d.registerRenderer,f=d.getRenderer;a.Search=function(e){this.query=function(t,n,o){var r=e.countRows(),i=e.countCols(),s=[];n||(n=a.Search.global.getDefaultCallback()),o||(o=a.Search.global.getDefaultQueryMethod());for(var l=0;l<r;l++)for(var u=0;u<i;u++){var c=e.getDataAtCell(l,u),d=e.getCellMeta(l,u),h=d.search.callback||n,f=d.search.queryMethod||o,p=f(t,c);if(p){var m={row:l,col:u,data:c};s.push(m)}h&&h(e,l,u,c,p)}return s}},a.Search.DEFAULT_CALLBACK=function(e,t,n,o,r){e.getCellMeta(t,n).isSearchResult=r},a.Search.DEFAULT_QUERY_METHOD=function(e,t){return!("undefined"==typeof e||null==e||!e.toLowerCase||0===e.length)&&("undefined"!=typeof t&&null!=t&&t.toString().toLowerCase().indexOf(e.toLowerCase())!=-1)},a.Search.DEFAULT_SEARCH_RESULT_CLASS="htSearchResult",a.Search.global=function(){var e=a.Search.DEFAULT_CALLBACK,t=a.Search.DEFAULT_QUERY_METHOD,n=a.Search.DEFAULT_SEARCH_RESULT_CLASS;return{getDefaultCallback:function(){return e},setDefaultCallback:function(t){e=t},getDefaultQueryMethod:function(){return t},setDefaultQueryMethod:function(e){t=e},getDefaultSearchResultClass:function(){return n},setDefaultSearchResultClass:function(e){n=e}}}(),a.SearchCellDecorator=function(e,t,n,o,r,i,s){var l=null!==s.search&&"object"==typeof s.search&&s.search.searchResultClass||a.Search.global.getDefaultSearchResultClass();s.isSearchResult?u(t,l):c(t,l)};var p=f("base");h("base",function(e,t,n,o,r,i,s){p.apply(this,arguments),a.SearchCellDecorator.apply(this,arguments)}),a.hooks.add("afterInit",o),a.hooks.add("afterUpdateSettings",o)},{browser:24,"helpers/dom/element":47,renderers:117}],115:[function(e,t,n){"use strict";Object.defineProperties(n,{TouchScroll:{get:function(){return w}},__esModule:{value:!0}});var o,r,i,s,a,l,u=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,c=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),d=c.addClass,h=c.removeClass,f=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).arrayEach,p=(s=e("_base"),s&&s.__esModule&&s||{default:s}).default,m=(a=e("plugins"),a&&a.__esModule&&a||{default:a}).registerPlugin,g=(l=e("helpers/feature"),l&&l.__esModule&&l||{default:l}).isTouchSupported,w=function(e){$traceurRuntime.superConstructor(v).call(this,e),this.scrollbars=[],this.clones=[],this.lockedCollection=!1},v=w;$traceurRuntime.createClass(w,{isEnabled:function(){return g()},enablePlugin:function(){var e=this;this.enabled||(this.addHook("afterRender",function(){return e.onAfterRender()}),this.registerEvents(),$traceurRuntime.superGet(this,v.prototype,"enablePlugin").call(this))},updatePlugin:function(){this.lockedCollection=!1,$traceurRuntime.superGet(this,v.prototype,"updatePlugin").call(this)},disablePlugin:function(){$traceurRuntime.superGet(this,v.prototype,"disablePlugin").call(this)},registerEvents:function(){var e=this;this.addHook("beforeTouchScroll",function(){return e.onBeforeTouchScroll()}),this.addHook("afterMomentumScroll",function(){return e.onAfterMomentumScroll()})},onAfterRender:function(){if(!this.lockedCollection){var e=this.hot.view.wt.wtOverlays,t=e.topOverlay,n=e.bottomOverlay,o=e.leftOverlay,r=e.topLeftCornerOverlay,i=e.bottomLeftCornerOverlay;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(t),n.clone&&this.scrollbars.push(n),this.scrollbars.push(o),r&&this.scrollbars.push(r),i&&i.clone&&this.scrollbars.push(i),this.clones.length=0,t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),o.needFullRender&&this.clones.push(o.clone.wtTable.holder.parentNode),r&&this.clones.push(r.clone.wtTable.holder.parentNode),i&&i.clone&&this.clones.push(i.clone.wtTable.holder.parentNode)}},onBeforeTouchScroll:function(){u.freezeOverlays=!0,f(this.clones,function(e){d(e,"hide-tween")})},onAfterMomentumScroll:function(){var e=this;u.freezeOverlays=!1,f(this.clones,function(e){h(e,"hide-tween"),d(e,"show-tween")}),setTimeout(function(){f(e.clones,function(e){h(e,"show-tween")})},400),f(this.scrollbars,function(e){e.refresh(),e.resetFixedPosition()}),this.hot.view.wt.wtOverlays.syncScrollWithMaster()}},{},p),m("touchScroll",w)},{_base:62,browser:24,"helpers/array":43,"helpers/dom/element":47,"helpers/feature":49,plugins:61}],116:[function(e,t,n){"use strict";function o(){var e=this,t="undefined"==typeof e.getSettings().undo||e.getSettings().undo;t?e.undoRedo||(e.undoRedo=new f.UndoRedo(e),s(e),e.addHook("beforeKeyDown",r),e.addHook("afterChange",i)):e.undoRedo&&(delete e.undoRedo,a(e),e.removeHook("beforeKeyDown",r),e.removeHook("afterChange",i))}function r(e){var t=this,n=(e.ctrlKey||e.metaKey)&&!e.altKey;n&&(89===e.keyCode||e.shiftKey&&90===e.keyCode?(t.undoRedo.redo(),y(e)):90===e.keyCode&&(t.undoRedo.undo(),y(e)))}function i(e,t){var n=this;if("loadData"===t)return n.undoRedo.clear()}function s(e){e.undo=function(){return e.undoRedo.undo()},e.redo=function(){return e.undoRedo.redo()},e.isUndoAvailable=function(){return e.undoRedo.isUndoAvailable()},e.isRedoAvailable=function(){return e.undoRedo.isRedoAvailable()},e.clearUndo=function(){return e.undoRedo.clear()}}function a(e){delete e.undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo}var l,u,c,d,h,f=(l=e("browser"),l&&l.__esModule&&l||{default:l}).default,p=(u=e("helpers/array"),u&&u.__esModule&&u||{default:u}).arrayMap,m=(c=e("helpers/number"),c&&c.__esModule&&c||{default:c}).rangeEach,g=(d=e("helpers/object"),d&&d.__esModule&&d||{default:d}),w=g.inherit,v=g.deepClone,y=(h=e("helpers/dom/event"),h&&h.__esModule&&h||{default:h}).stopImmediatePropagation;f.UndoRedo=function(e){var t=this;this.instance=e,this.doneActions=[],this.undoneActions=[],this.ignoreNewActions=!1,e.addHook("afterChange",function(e,n){e&&"UndoRedo.undo"!==n&&"UndoRedo.redo"!==n&&t.done(new f.UndoRedo.ChangeAction(e))}),e.addHook("afterCreateRow",function(e,n,o){if("UndoRedo.undo"!==o&&"UndoRedo.undo"!==o&&"auto"!==o){var r=new f.UndoRedo.CreateRowAction(e,n);t.done(r)}}),e.addHook("beforeRemoveRow",function(e,n,o,r){if("UndoRedo.undo"!==r&&"UndoRedo.redo"!==r&&"auto"!==r){var i=t.instance.getSourceDataArray();e=(i.length+e)%i.length;var s=v(i.slice(e,e+n));t.done(new f.UndoRedo.RemoveRowAction(e,s))}}),e.addHook("afterCreateCol",function(e,n,o){"UndoRedo.undo"!==o&&"UndoRedo.redo"!==o&&"auto"!==o&&t.done(new f.UndoRedo.CreateColumnAction(e,n))}),e.addHook("beforeRemoveCol",function(n,o,r,i){if("UndoRedo.undo"!==i&&"UndoRedo.redo"!==i&&"auto"!==i){var s=t.instance.getSourceDataArray();n=(t.instance.countCols()+n)%t.instance.countCols();var a=[],l=[],u=[];m(s.length-1,function(t){var r=[],i=s[t];m(n,n+(o-1),function(t){r.push(i[e.runHooks("modifyCol",t)])}),a.push(r)}),m(o-1,function(t){u.push(e.runHooks("modifyCol",n+t))}),Array.isArray(e.getSettings().colHeaders)&&m(o-1,function(t){l.push(e.getSettings().colHeaders[e.runHooks("modifyCol",n+t)]||null)});var c=t.instance.getPlugin("manualColumnMove"),d=c.isEnabled()?c.columnsMapper.__arrayMap:[],h=new f.UndoRedo.RemoveColumnAction(n,u,a,l,d);t.done(h)}}),e.addHook("beforeCellAlignment",function(e,n,o,r){var i=new f.UndoRedo.CellAlignmentAction(e,n,o,r);t.done(i)}),e.addHook("beforeFilter",function(e){t.done(new f.UndoRedo.FiltersAction(e))}),e.addHook("beforeRowMove",function(e,n){e!==!1&&t.done(new f.UndoRedo.RowMoveAction(e,n))})},f.UndoRedo.prototype.done=function(e){this.ignoreNewActions||(this.doneActions.push(e),this.undoneActions.length=0)},f.UndoRedo.prototype.undo=function(){if(this.isUndoAvailable()){var e=this.doneActions.pop(),t=v(e),n=this.instance,o=n.runHooks("beforeUndo",t);if(o===!1)return;this.ignoreNewActions=!0;var r=this;e.undo(this.instance,function(){r.ignoreNewActions=!1,r.undoneActions.push(e)}),n.runHooks("afterUndo",t)}},f.UndoRedo.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.pop(),t=v(e),n=this.instance,o=n.runHooks("beforeRedo",t);if(o===!1)return;this.ignoreNewActions=!0;var r=this;e.redo(this.instance,function(){r.ignoreNewActions=!1,r.doneActions.push(e)}),n.runHooks("afterRedo",t)}},f.UndoRedo.prototype.isUndoAvailable=function(){return this.doneActions.length>0},f.UndoRedo.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},f.UndoRedo.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},f.UndoRedo.Action=function(){},f.UndoRedo.Action.prototype.undo=function(){},f.UndoRedo.Action.prototype.redo=function(){},f.UndoRedo.ChangeAction=function(e){this.changes=e,this.actionType="change"},w(f.UndoRedo.ChangeAction,f.UndoRedo.Action),f.UndoRedo.ChangeAction.prototype.undo=function(e,t){for(var n=v(this.changes),o=e.countEmptyRows(!0),r=e.countEmptyCols(!0),i=0,s=n.length;i<s;i++)n[i].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.undo");for(var a=0,l=n.length;a<l;a++)e.getSettings().minSpareRows&&n[a][0]+1+e.getSettings().minSpareRows===e.countRows()&&o==e.getSettings().minSpareRows&&(e.alter("remove_row",parseInt(n[a][0]+1,10),e.getSettings().minSpareRows),e.undoRedo.doneActions.pop()),e.getSettings().minSpareCols&&n[a][1]+1+e.getSettings().minSpareCols===e.countCols()&&r==e.getSettings().minSpareCols&&(e.alter("remove_col",parseInt(n[a][1]+1,10),e.getSettings().minSpareCols),e.undoRedo.doneActions.pop())},f.UndoRedo.ChangeAction.prototype.redo=function(e,t){for(var n=v(this.changes),o=0,r=n.length;o<r;o++)n[o].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"UndoRedo.redo")},f.UndoRedo.CreateRowAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_row"},w(f.UndoRedo.CreateRowAction,f.UndoRedo.Action),f.UndoRedo.CreateRowAction.prototype.undo=function(e,t){var n=e.countRows(),o=e.getSettings().minSpareRows;this.index>=n&&this.index-o<n&&(this.index-=o),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")},f.UndoRedo.CreateRowAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row",this.index,this.amount,"UndoRedo.redo")},f.UndoRedo.RemoveRowAction=function(e,t){this.index=e,this.data=t,this.actionType="remove_row"},w(f.UndoRedo.RemoveRowAction,f.UndoRedo.Action),f.UndoRedo.RemoveRowAction.prototype.undo=function(e,t){e.alter("insert_row",this.index,this.data.length,"UndoRedo.undo"),e.addHookOnce("afterRender",t),e.populateFromArray(this.index,0,this.data,void 0,void 0,"UndoRedo.undo")},f.UndoRedo.RemoveRowAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveRow",t),
e.alter("remove_row",this.index,this.data.length,"UndoRedo.redo")},f.UndoRedo.CreateColumnAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_col"},w(f.UndoRedo.CreateColumnAction,f.UndoRedo.Action),f.UndoRedo.CreateColumnAction.prototype.undo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")},f.UndoRedo.CreateColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col",this.index,this.amount,"UndoRedo.redo")},f.UndoRedo.RemoveColumnAction=function(e,t,n,o,r){this.index=e,this.indexes=t,this.data=n,this.amount=this.data[0].length,this.headers=o,this.columnPositions=r.slice(0),this.actionType="remove_col"},w(f.UndoRedo.RemoveColumnAction,f.UndoRedo.Action),f.UndoRedo.RemoveColumnAction.prototype.undo=function(e,t){var n,o=this,r=this.indexes.slice(0).sort(),i=function(e,t,n){return n[o.indexes.indexOf(r[t])]},s=[];m(this.data.length-1,function(e){s[e]=p(o.data[e],i)});var a=[];a=p(this.headers,i);var l=[];f.hooks.run(e,"beforeCreateCol",this.indexes[0],this.indexes[this.indexes.length-1],"UndoRedo.undo"),m(this.data.length-1,function(t){n=e.getSourceDataAtRow(t),m(r.length-1,function(e){n.splice(r[e],0,s[t][e]),l.push([t,r[e],null,s[t][e]])})}),e.getPlugin("formulas")&&e.getPlugin("formulas").onAfterSetDataAtCell(l),"undefined"!=typeof this.headers&&m(a.length-1,function(t){e.getSettings().colHeaders.splice(r[t],0,a[t])}),e.getPlugin("manualColumnMove")&&(e.getPlugin("manualColumnMove").columnsMapper.__arrayMap=this.columnPositions),e.addHookOnce("afterRender",t),f.hooks.run(e,"afterCreateCol",this.indexes[0],this.indexes[this.indexes.length-1],"UndoRedo.undo"),e.getPlugin("formulas")&&e.getPlugin("formulas").recalculateFull(),e.render()},f.UndoRedo.RemoveColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")},f.UndoRedo.CellAlignmentAction=function(e,t,n,o){this.stateBefore=e,this.range=t,this.type=n,this.alignment=o},f.UndoRedo.CellAlignmentAction.prototype.undo=function(e,t){if(e.getPlugin("contextMenu").isEnabled()){for(var n=this.range.from.row;n<=this.range.to.row;n++)for(var o=this.range.from.col;o<=this.range.to.col;o++)e.setCellMeta(n,o,"className",this.stateBefore[n][o]||" htLeft");e.addHookOnce("afterRender",t),e.render()}},f.UndoRedo.CellAlignmentAction.prototype.redo=function(e,t){e.getPlugin("contextMenu").isEnabled()&&(e.selectCell(this.range.from.row,this.range.from.col,this.range.to.row,this.range.to.col),e.getPlugin("contextMenu").executeCommand("alignment:"+this.alignment.replace("ht","").toLowerCase()),e.addHookOnce("afterRender",t),e.render())},f.UndoRedo.FiltersAction=function(e){this.formulaStacks=e,this.actionType="filter"},w(f.UndoRedo.FiltersAction,f.UndoRedo.Action),f.UndoRedo.FiltersAction.prototype.undo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.formulaCollection.importAllFormulas(this.formulaStacks.slice(0,this.formulaStacks.length-1)),n.filter()},f.UndoRedo.FiltersAction.prototype.redo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.formulaCollection.importAllFormulas(this.formulaStacks),n.filter()},f.UndoRedo.RowMoveAction=function(e,t){this.rows=e.slice(),this.target=t},w(f.UndoRedo.RowMoveAction,f.UndoRedo.Action),f.UndoRedo.RowMoveAction.prototype.undo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t);for(var o=this.rows[0]<this.target?-1*this.rows.length:0,r=this.rows[0]>this.target?this.rows[0]+this.rows.length:this.rows[0],i=[],s=this.rows.length+o,a=o;a<s;a++)i.push(this.target+a);n.moveRows(i.slice(),r),e.render(),e.selection.setRangeStartOnly(new WalkontableCellCoords(this.rows[0],0)),e.selection.setRangeEnd(new WalkontableCellCoords(this.rows[this.rows.length-1],e.countCols()-1))},f.UndoRedo.RowMoveAction.prototype.redo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t),n.moveRows(this.rows.slice(),this.target),e.render();var o=this.rows[0]<this.target?this.target-this.rows.length:this.target;e.selection.setRangeStartOnly(new WalkontableCellCoords(o,0)),e.selection.setRangeEnd(new WalkontableCellCoords(o+this.rows.length-1,e.countCols()-1))},f.hooks.add("afterInit",o),f.hooks.add("afterUpdateSettings",o),f.hooks.register("beforeUndo"),f.hooks.register("afterUndo"),f.hooks.register("beforeRedo"),f.hooks.register("afterRedo")},{browser:24,"helpers/array":43,"helpers/dom/event":48,"helpers/number":52,"helpers/object":53}],117:[function(e,t,n){"use strict";function o(e,t){var n;c[e]=t,n=u(e)+"Renderer",l.renderers[n]=t,l[n]=t,"base"===e&&(l.renderers.cellDecorator=t)}function r(e){if("function"==typeof e)return e;if("string"!=typeof e)throw Error('Only strings and functions can be passed as "renderer" parameter');if(!(e in c))throw Error('No editor registered under name "'+e+'"');return c[e]}function i(e){return e in c}Object.defineProperties(n,{registerRenderer:{get:function(){return o}},getRenderer:{get:function(){return r}},hasRenderer:{get:function(){return i}},__esModule:{value:!0}});var s,a,l=(s=e("browser"),s&&s.__esModule&&s||{default:s}).default,u=(a=e("helpers/string"),a&&a.__esModule&&a||{default:a}).toUpperCaseFirst,c={};l.renderers=l.renderers||{},l.renderers.registerRenderer=o,l.renderers.getRenderer=r},{browser:24,"helpers/string":55}],118:[function(e,t,n){"use strict";function o(e,t,n,o,r,i,s){s.className&&(t.className?t.className=t.className+" "+s.className:t.className=s.className),s.readOnly&&a(t,s.readOnlyCellClassName),s.valid===!1&&s.invalidCellClassName?a(t,s.invalidCellClassName):l(t,s.invalidCellClassName),s.wordWrap===!1&&s.noWordWrapClassName&&a(t,s.noWordWrapClassName),!i&&s.placeholder&&a(t,s.placeholderCellClassName)}Object.defineProperties(n,{cellDecorator:{get:function(){return o}},__esModule:{value:!0}});var r,i,s=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),a=s.addClass,l=s.removeClass,u=(i=e("renderers"),i&&i.__esModule&&i||{default:i}).registerRenderer;u("base",o)},{"helpers/dom/element":47,renderers:117}],119:[function(e,t,n){"use strict";function o(e,t,n,o,r,i,s){var a=(g.cloneNode(!0),w.cloneNode(!0));if(s.allowHtml?f("html").apply(this,arguments):f("text").apply(this,arguments),t.appendChild(a),u(t,"htAutocomplete"),t.firstChild||t.appendChild(document.createTextNode(String.fromCharCode(160))),!e.acArrowListener){var l=d(e);e.acArrowListener=function(r){c(r.target,"htAutocompleteArrow")&&e.view.wt.getSetting("onCellDblClick",null,new m(n,o),t)},l.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",function(){l.destroy()})}}Object.defineProperties(n,{autocompleteRenderer:{get:function(){return o}},__esModule:{value:!0}});var r,i,s,a,l=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),u=l.addClass,c=l.hasClass,d=(l.empty,(i=e("eventManager"),i&&i.__esModule&&i||{default:i}).eventManager),h=(s=e("renderers"),s&&s.__esModule&&s||{default:s}),f=h.getRenderer,p=h.registerRenderer,m=(a=e("3rdparty/walkontable/src/cell/coords"),a&&a.__esModule&&a||{default:a}).WalkontableCellCoords,g=document.createElement("DIV");g.className="htAutocompleteWrapper";var w=document.createElement("DIV");w.className="htAutocompleteArrow",w.appendChild(document.createTextNode(String.fromCharCode(9660)));p("autocomplete",o)},{"3rdparty/walkontable/src/cell/coords":6,eventManager:42,"helpers/dom/element":47,renderers:117}],120:[function(e,t,n){"use strict";function o(e,t,n,o,a,l,u){function c(e){var t="SPACE|ENTER",n="DELETE|BACKSPACE",o=O(E,e.keyCode);o(t+"|"+n)&&!x(e)&&h(function(){k(e),e.preventDefault()}),o(t)&&d(),o(n)&&d(!0)}function d(){var t=void 0!==arguments[0]&&arguments[0],n=e.getSelectedRange();if(n){for(var o=n.getTopLeftCorner(),r=n.getBottomRightCorner(),i=[],s=o.row;s<=r.row;s+=1)for(var a=o.col;a<=r.col;a+=1){var l=e.getCellMeta(s,a);if("checkbox"!==l.type)return;if(l.readOnly!==!0){"undefined"==typeof l.checkedTemplate&&(l.checkedTemplate=!0),"undefined"==typeof l.uncheckedTemplate&&(l.uncheckedTemplate=!1);var u=e.getDataAtCell(s,a);t===!1?u===l.checkedTemplate?i.push([s,a,l.uncheckedTemplate]):[l.uncheckedTemplate,null,void 0].indexOf(u)!==-1&&i.push([s,a,l.checkedTemplate]):i.push([s,a,l.uncheckedTemplate])}}i.length>0&&e.setDataAtCell(i)}}function h(t){var n=e.getSelectedRange();if(n)for(var o=n.getTopLeftCorner(),r=n.getBottomRightCorner(),i=o.row;i<=r.row;i++)for(var s=o.col;s<=r.col;s++){var a=e.getCellMeta(i,s);if("checkbox"!==a.type)return;var l=e.getCell(i,s);if(null==l)t(i,s,a);else{var u=l.querySelectorAll("input[type=checkbox]");u.length>0&&!a.readOnly&&t(u)}}}M("base").apply(this,arguments);var f=(r(e),i()),p=u.label,m=!1;if("undefined"==typeof u.checkedTemplate&&(u.checkedTemplate=!0),"undefined"==typeof u.uncheckedTemplate&&(u.uncheckedTemplate=!1),y(t),l===u.checkedTemplate||C(l,u.checkedTemplate)?f.checked=!0:l===u.uncheckedTemplate||C(l,u.uncheckedTemplate)?f.checked=!1:null===l?b(f,"noValue"):(f.style.display="none",b(f,A),m=!0),f.setAttribute("data-row",n),f.setAttribute("data-col",o),!m&&p){var g="";p.value?g="function"==typeof p.value?p.value.call(this,n,o,a,l):p.value:p.property&&(g=e.getDataAtRowProp(n,p.property));var w=s(g);"before"===p.position?w.appendChild(f):w.insertBefore(f,w.firstChild),f=w}t.appendChild(f),m&&t.appendChild(document.createTextNode("#bad-value#")),D.has(e)||(D.set(e,!0),e.addHook("beforeKeyDown",c))}function r(e){var t=H.get(e);return t||(t=new _(e),t.addEventListener(e.rootElement,"click",function(t){return l(t,e)}),t.addEventListener(e.rootElement,"mouseup",function(t){return a(t,e)}),t.addEventListener(e.rootElement,"change",function(t){return u(t,e)}),H.set(e,t)),t}function i(){var e=document.createElement("input");return e.className="htCheckboxRendererInput",e.type="checkbox",e.setAttribute("autocomplete","off"),e.setAttribute("tabindex","-1"),e.cloneNode(!1)}function s(e){var t=document.createElement("label");return t.className="htCheckboxRendererLabel",t.appendChild(document.createTextNode(e)),t.cloneNode(!0)}function a(e,t){c(e.target)&&setTimeout(t.listen,10)}function l(e,t){if(!c(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),o=parseInt(e.target.getAttribute("data-col"),10),r=t.getCellMeta(n,o);r.readOnly&&e.preventDefault()}function u(e,t){if(!c(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),o=parseInt(e.target.getAttribute("data-col"),10),r=t.getCellMeta(n,o);if(!r.readOnly){var i=null;i=e.target.checked?void 0===r.checkedTemplate||r.checkedTemplate:void 0!==r.uncheckedTemplate&&r.uncheckedTemplate,t.setDataAtCell(n,o,i)}}function c(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}Object.defineProperties(n,{checkboxRenderer:{get:function(){return o}},__esModule:{value:!0}});var d,h,f,p,m,g,w,v=(d=e("helpers/dom/element"),d&&d.__esModule&&d||{default:d}),y=v.empty,b=v.addClass,C=(v.hasClass,(h=e("helpers/string"),h&&h.__esModule&&h||{default:h}).equalsIgnoreCase),_=(f=e("eventManager"),f&&f.__esModule&&f||{default:f}).EventManager,R=(p=e("renderers"),p&&p.__esModule&&p||{default:p}),M=R.getRenderer,S=R.registerRenderer,E=(m=e("helpers/unicode"),m&&m.__esModule&&m||{default:m}).isKey,O=(g=e("helpers/function"),g&&g.__esModule&&g||{default:g}).partial,T=(w=e("helpers/dom/event"),w&&w.__esModule&&w||{default:w}),k=T.stopImmediatePropagation,x=T.isImmediatePropagationStopped,D=new WeakMap,H=new WeakMap,A="htBadValue";S("checkbox",o)},{eventManager:42,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/function":50,"helpers/string":55,"helpers/unicode":56,renderers:117}],121:[function(e,t,n){"use strict";function o(e,t,n,o,r,i,a){l("base").apply(this,arguments),null!==i&&void 0!==i||(i=""),s(t,i)}Object.defineProperties(n,{htmlRenderer:{get:function(){return o}},__esModule:{value:!0}});var r,i,s=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}).fastInnerHTML,a=(i=e("renderers"),i&&i.__esModule&&i||{default:i}),l=a.getRenderer,u=a.registerRenderer;u("html",o)},{"helpers/dom/element":47,renderers:117}],122:[function(e,t,n){"use strict";function o(e,t,n,o,r,i,s){if(d(i)){"undefined"!=typeof s.language&&a.culture(s.language),i=a(i).format(s.format||"0");var l=s.className||"",c=l.length?l.split(" "):[];c.indexOf("htLeft")<0&&c.indexOf("htCenter")<0&&c.indexOf("htRight")<0&&c.indexOf("htJustify")<0&&c.push("htRight"),c.indexOf("htNumeric")<0&&c.push("htNumeric"),s.className=c.join(" ")}u("text")(e,t,n,o,r,i,s)}Object.defineProperties(n,{numericRenderer:{get:function(){return o}},__esModule:{value:!0}});var r,i,s,a=(r=e("numbro"),r&&r.__esModule&&r||{default:r}).default,l=(i=e("renderers"),i&&i.__esModule&&i||{default:i}),u=l.getRenderer,c=l.registerRenderer,d=(s=e("helpers/number"),s&&s.__esModule&&s||{default:s}).isNumeric;c("numeric",o)},{"helpers/number":52,numbro:"numbro",renderers:117}],123:[function(e,t,n){"use strict";function o(e,t,n,o,r,i,a){l("text").apply(this,arguments),i=t.innerHTML;var u,c=a.hashLength||i.length,d=a.hashSymbol||"*";for(u="";u.split(d).length-1<c;u+=d);s(t,u)}Object.defineProperties(n,{passwordRenderer:{get:function(){return o}},__esModule:{value:!0}});var r,i,s=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}).fastInnerHTML,a=(i=e("renderers"),i&&i.__esModule&&i||{default:i}),l=a.getRenderer,u=a.registerRenderer;u("password",o)},{"helpers/dom/element":47,renderers:117}],124:[function(e,t,n){"use strict";function o(e,t,n,o,r,i,s){h("base").apply(this,arguments),!i&&s.placeholder&&(i=s.placeholder);var a=c(i);if(e.getSettings().trimWhitespace||(a=a.replace(/ /g,String.fromCharCode(160))),s.rendererTemplate){l(t);var d=document.createElement("TEMPLATE");d.setAttribute("bind","{{}}"),d.innerHTML=s.rendererTemplate,HTMLTemplateElement.decorate(d),d.model=e.getSourceDataAtRow(n),t.appendChild(d)}else u(t,a)}Object.defineProperties(n,{textRenderer:{get:function(){return o}},__esModule:{value:!0}});var r,i,s,a=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),l=a.empty,u=a.fastInnerText,c=(i=e("helpers/mixed"),i&&i.__esModule&&i||{default:i}).stringify,d=(s=e("renderers"),s&&s.__esModule&&s||{default:s}),h=d.getRenderer,f=d.registerRenderer;f("text",o)},{"helpers/dom/element":47,"helpers/mixed":51,renderers:117}],125:[function(e,t,n){!function(e){"use strict";function t(e){return{configurable:!0,enumerable:!1,value:e,writable:!0}}function n(){return"__$"+Math.floor(1e9*Math.random())+"$"+ ++H+"$__"}function o(e){return I[e]}function r(){var e=n();return I[e]=!0,e}function i(e){return"object"==typeof e&&e instanceof l}function s(e){return i(e)?"symbol":typeof e}function a(e){var t=new l(e);if(!(this instanceof a))return t;throw new TypeError("Symbol cannot be new'ed")}function l(e){var t=n();S(this,N,{value:this}),S(this,A,{value:t}),S(this,P,{value:e}),c(this),L[t]=this}function u(e){var t=e[W];return t&&t.self===e?t:x(e)?(V.hash.value=B++,V.self.value=e,j.value=R(null,V),S(e,W,j),j.value):void 0}function c(e){return u(e),E.apply(this,arguments)}function d(e){return L[e]||I[e]}function h(e){return i(e)?e[A]:e}function f(e){for(var t=[],n=T(e),o=0;o<n.length;o++){var r=L[n[o]];r&&t.push(r)}return t}function p(t){return e.traceur&&e.traceur.options[t]}function m(e){for(var t=1;t<arguments.length;t++)for(var n=T(arguments[t]),o=0;o<n.length;o++){var r=n[o];d(r)||!function(t,n){S(e,n,{get:function(){return t[n]},enumerable:!0})}(arguments[t],n[o])}return e}function g(e){return null!=e&&("object"==typeof e||"function"==typeof e)}function w(e){if(null==e)throw _();return C(e)}function v(e){if(null==e)throw new TypeError("Value cannot be converted to an Object");return e}function y(e,t){e.Symbol||(e.Symbol=t,Object.getOwnPropertySymbols=f),e.Symbol.iterator||(e.Symbol.iterator=t("Symbol.iterator"))}function b(e){y(e,a),e.Reflect=e.Reflect||{},e.Reflect.global=e.Reflect.global||e}if(!e.$traceurRuntime){var C=Object,_=TypeError,R=C.create,M=C.defineProperties,S=C.defineProperty,E=C.freeze,O=C.getOwnPropertyDescriptor,T=C.getOwnPropertyNames,k=C.keys,x=Object.isExtensible,D=t,H=0,A=n(),P=n(),N=n(),L=R(null),I=R(null);S(a.prototype,"constructor",t(a)),S(a.prototype,"toString",D(function(){var e=this[N];if(!p("symbols"))return e[A];if(!e)throw TypeError("Conversion from symbol to string");var t=e[P];return void 0===t&&(t=""),"Symbol("+t+")"})),S(a.prototype,"valueOf",D(function(){var e=this[N];if(!e)throw TypeError("Conversion from symbol to string");return p("symbols")?e:e[A]})),S(l.prototype,"constructor",t(a)),S(l.prototype,"toString",{value:a.prototype.toString,enumerable:!1}),S(l.prototype,"valueOf",{value:a.prototype.valueOf,enumerable:!1});var W=r(),j={value:void 0},V={hash:{value:void 0},self:{value:void 0}},B=0;c(l.prototype),b(e),e.$traceurRuntime={checkObjectCoercible:v,createPrivateName:r,defineProperties:M,defineProperty:S,exportStar:m,getOwnHashObject:u,getOwnPropertyDescriptor:O,getOwnPropertyNames:T,isObject:g,isPrivateName:o,isSymbolString:d,keys:k,setupGlobals:b,toObject:w,toProperty:h,typeof:s}}}(window),function(){"use strict";function e(){for(var e,n=[],o=0,r=0;r<arguments.length;r++){var i=$traceurRuntime.checkObjectCoercible(arguments[r]);"function"!=typeof i[t(Symbol.iterator)]&&(i[t(Symbol.iterator)]=function(){var e=this,t=e.length,n=0;return{next:function(){var o={done:!0};return n<t&&(o.done=!1,o.value=e[n],++n),o}}});for(var s=i[t(Symbol.iterator)]();!(e=s.next()).done;)n[o++]=e.value}return n}var t=$traceurRuntime.toProperty;$traceurRuntime.spread=e}(),function(){"use strict";function e(e,t){var n=m(e);do{var o=p(n,t);if(o)return o;n=m(n)}while(n)}function t(e){return e.__proto__}function n(e,t,n,r){return o(e,t,n).apply(e,r)}function o(t,n,o){var r=e(n,o);if(r)return r.get?r.get.call(t):r.value}function r(t,n,o,r){var i=e(n,o);if(i&&i.set)return i.set.call(t,r),r;throw c("super has no setter '"+o+"'.")}function i(e){for(var t={},n=v(e),o=0;o<n.length;o++){var r=n[o];t[r]=p(e,r)}for(var i=y(e),o=0;o<i.length;o++){var s=i[o];t[g(s)]=p(e,g(s))}return t}function s(e,t,n,o){return f(t,"constructor",{value:e,configurable:!0,enumerable:!1,writable:!0}),arguments.length>3?("function"==typeof o&&(e.__proto__=o),e.prototype=d(a(o),i(t))):e.prototype=t,f(e,"prototype",{configurable:!1,writable:!1}),h(e,i(n))}function a(e){if("function"==typeof e){var t=e.prototype;if(u(t)===t||null===t)return e.prototype;throw new c("super prototype must be an Object or null")}if(null===e)return null;throw new c("Super expression must either be null or a function, not "+typeof e+".")}function l(e,t,o){null!==m(t)&&n(e,t,"constructor",o)}var u=Object,c=TypeError,d=u.create,h=$traceurRuntime.defineProperties,f=$traceurRuntime.defineProperty,p=$traceurRuntime.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=$traceurRuntime.toProperty,w=Object,v=w.getOwnPropertyNames,y=w.getOwnPropertySymbols;$traceurRuntime.createClass=s,$traceurRuntime.defaultSuperCall=l,$traceurRuntime.superCall=n,$traceurRuntime.superConstructor=t,$traceurRuntime.superGet=o,$traceurRuntime.superSet=r}()},{}],126:[function(e,t,n){"use strict";function o(e){var t=this,n=this;this.eventManager=M(e),this.instance=e,this.settings=e.getSettings(),this.selectionMouseDown=!1;var o=e.rootElement.getAttribute("style");o&&e.rootElement.setAttribute("data-originalstyle",o),p(e.rootElement,"handsontable");var r=document.createElement("TABLE");p(r,"htCore"),e.getSettings().tableClassName&&p(r,e.getSettings().tableClassName),this.THEAD=document.createElement("THEAD"),r.appendChild(this.THEAD),this.TBODY=document.createElement("TBODY"),r.appendChild(this.TBODY),e.table=r,e.container.insertBefore(r,e.container.firstChild),this.eventManager.addEventListener(e.rootElement,"mousedown",function(e){this.selectionMouseDown=!0,n.isTextSelectionAllowed(e.target)||(s(),e.preventDefault(),window.focus())}),this.eventManager.addEventListener(e.rootElement,"mouseup",function(e){this.selectionMouseDown=!1}),this.eventManager.addEventListener(e.rootElement,"mousemove",function(e){this.selectionMouseDown&&!n.isTextSelectionAllowed(e.target)&&(s(),e.preventDefault())}),this.eventManager.addEventListener(document.documentElement,"keyup",function(t){e.selection.isInProgress()&&!t.shiftKey&&e.selection.finish()});var i;this.isMouseDown=function(){return i},this.eventManager.addEventListener(document.documentElement,"mouseup",function(t){e.selection.isInProgress()&&1===t.which&&e.selection.finish(),i=!1,_(document.activeElement)&&e.unlisten()}),this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){var o=t.target,r=t.target,s=t.x||t.clientX,a=t.y||t.clientY;if(!i&&e.rootElement){if(r===e.view.wt.wtTable.holder){var l=v();if(document.elementFromPoint(s+l,a)!==e.view.wt.wtTable.holder||document.elementFromPoint(s,a+l)!==e.view.wt.wtTable.holder)return}else for(;r!==document.documentElement;){if(null===r){if(t.isTargetWebComponent)break;return}if(r===e.rootElement)return;r=r.parentNode}var u="function"==typeof n.settings.outsideClickDeselects?n.settings.outsideClickDeselects(o):n.settings.outsideClickDeselects;u?e.deselectCell():e.destroyEditor()}}),this.eventManager.addEventListener(r,"selectstart",function(e){n.settings.fragmentSelection||C(e.target)||e.preventDefault()});var s=function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},a=[new D({className:"current",border:{width:2,color:"#5292F7",cornerVisible:function(){return n.settings.fillHandle&&!n.isCellEdited()&&!e.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!n.isCellEdited()&&!e.selection.isMultiple()}}}),new D({className:"area",border:{width:1,color:"#89AFF9",cornerVisible:function(){return n.settings.fillHandle&&!n.isCellEdited()&&e.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!n.isCellEdited()&&e.selection.isMultiple()}}}),new D({className:"highlight",highlightHeaderClassName:n.settings.currentHeaderClassName,highlightRowClassName:n.settings.currentRowClassName,highlightColumnClassName:n.settings.currentColClassName}),new D({className:"fill",border:{width:1,color:"red"}})];a.current=a[0],a.area=a[1],a.highlight=a[2],a.fill=a[3];var l={debug:function(){return n.settings.debug},externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:r,preventOverflow:function(){return t.settings.preventOverflow},stretchH:function(){return n.settings.stretchH},data:e.getDataAtCell,totalRows:function(){return e.countRows()},totalColumns:function(){return e.countCols()},fixedColumnsLeft:function(){return n.settings.fixedColumnsLeft},fixedRowsTop:function(){return n.settings.fixedRowsTop},fixedRowsBottom:function(){return n.settings.fixedRowsBottom},minSpareRows:function(){return n.settings.minSpareRows},renderAllRows:n.settings.renderAllRows,rowHeaders:function(){var t=[];return e.hasRowHeaders()&&t.push(function(e,t){n.appendRowHeader(e,t)}),h.hooks.run(e,"afterGetRowHeaderRenderers",t),t},columnHeaders:function(){var t=[];return e.hasColHeaders()&&t.push(function(e,t){n.appendColHeader(e,t)}),h.hooks.run(e,"afterGetColumnHeaderRenderers",t),t},columnWidth:e.getColWidth,rowHeight:e.getRowHeight,cellRenderer:function(e,t,o){var r=n.instance.getCellMeta(e,t),i=n.instance.colToProp(t),s=n.instance.getDataAtRowProp(e,i);n.instance.hasHook("beforeValueRender")&&(s=n.instance.runHooks("beforeValueRender",s)),n.instance.runHooks("beforeRenderer",o,e,t,i,s,r),n.instance.getCellRenderer(r)(n.instance,o,e,t,i,s,r),n.instance.runHooks("afterRenderer",o,e,t,i,s,r)},selections:a,hideBorderOnMouseDownOver:function(){return n.settings.fragmentSelection},onCellMouseDown:function(t,o,r,s){var a={row:!1,column:!1,cells:!1};if(e.listen(),n.activeWt=s,i=!0,h.hooks.run(e,"beforeOnCellMouseDown",t,o,r,a),!O(t)){var l=e.getSelectedRange(),u=e.selection,c=u.selectedHeader;if(t.shiftKey&&l)o.row>=0&&o.col>=0&&!a.cells?(u.setSelectedHeaders(!1,!1),u.setRangeEnd(o)):(c.cols||c.rows)&&o.row>=0&&o.col>=0&&!a.cells?(u.setSelectedHeaders(!1,!1),u.setRangeEnd(new x(o.row,o.col))):c.cols&&o.row<0&&!a.column?u.setRangeEnd(new x(l.to.row,o.col)):c.rows&&o.col<0&&!a.row?u.setRangeEnd(new x(o.row,l.to.col)):(!c.cols&&!c.rows&&o.col<0||c.cols&&o.col<0)&&!a.row?(u.setSelectedHeaders(!0,!1),u.setRangeStartOnly(new x(l.from.row,0)),u.setRangeEnd(new x(o.row,e.countCols()-1))):(!c.cols&&!c.rows&&o.row<0||c.rows&&o.row<0)&&!a.column&&(u.setSelectedHeaders(!1,!0),u.setRangeStartOnly(new x(0,l.from.col)),u.setRangeEnd(new x(e.countRows()-1,o.col)));else{var d=!0;if(l){var f=l,m=f.from,g=f.to,w=!u.inInSelection(o);if(o.row<0&&c.cols){var v=Math.min(m.col,g.col),y=Math.max(m.col,g.col);d=o.col<v||o.col>y}else if(o.col<0&&c.rows){var b=Math.min(m.row,g.row),C=Math.max(m.row,g.row);d=o.row<b||o.row>C}else d=w}var _=T(t),M=k(t)||"touchstart"===t.type;o.row<0&&o.col>=0&&!a.column?(u.setSelectedHeaders(!1,!0),(M||_&&d)&&(u.setRangeStartOnly(new x(0,o.col)),u.setRangeEnd(new x(Math.max(e.countRows()-1,0),o.col),!1))):o.col<0&&o.row>=0&&!a.row?(u.setSelectedHeaders(!0,!1),(M||_&&d)&&(u.setRangeStartOnly(new x(o.row,0)),u.setRangeEnd(new x(o.row,Math.max(e.countCols()-1,0)),!1))):o.col>=0&&o.row>=0&&!a.cells?(M||_&&d)&&(u.setSelectedHeaders(!1,!1),u.setRangeStart(o)):o.col<0&&o.row<0&&(o.row=0,o.col=0,u.setSelectedHeaders(!1,!1,!0),u.setRangeStart(o))}u.selectedHeader.rows?(R(e.rootElement,"ht__selection--columns"),p(e.rootElement,"ht__selection--rows")):u.selectedHeader.cols?(R(e.rootElement,"ht__selection--rows"),p(e.rootElement,"ht__selection--columns")):R(e.rootElement,["ht__selection--rows","ht__selection--columns"]),h.hooks.run(e,"afterOnCellMouseDown",t,o,r),n.activeWt=n.wt}},onCellMouseOver:function(t,o,r,s){var a={row:!1,column:!1,cell:!1};n.activeWt=s,h.hooks.run(e,"beforeOnCellMouseOver",t,o,r,a),O(t)||(0===t.button&&i&&(o.row>=0&&o.col>=0?e.selection.selectedHeader.cols&&!a.column?e.selection.setRangeEnd(new x(e.countRows()-1,o.col),!1):e.selection.selectedHeader.rows&&!a.row?e.selection.setRangeEnd(new x(o.row,e.countCols()-1),!1):a.cell||e.selection.setRangeEnd(o):e.selection.selectedHeader.cols&&!a.column?e.selection.setRangeEnd(new x(e.countRows()-1,o.col),!1):e.selection.selectedHeader.rows&&!a.row?e.selection.setRangeEnd(new x(o.row,e.countCols()-1),!1):a.cell||e.selection.setRangeEnd(o)),h.hooks.run(e,"afterOnCellMouseOver",t,o,r),n.activeWt=n.wt)},onCellMouseUp:function(t,o,r,i){n.activeWt=i,h.hooks.run(e,"beforeOnCellMouseUp",t,o,r),h.hooks.run(e,"afterOnCellMouseUp",t,o,r),n.activeWt=n.wt},onCellCornerMouseDown:function(t){t.preventDefault(),h.hooks.run(e,"afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),h.hooks.run(e,"afterOnCellCornerDblClick",t)},beforeDraw:function(e,t){n.beforeRender(e,t)},onDraw:function(e){n.onDraw(e)},onScrollVertically:function(){e.runHooks("afterScrollVertically")},onScrollHorizontally:function(){e.runHooks("afterScrollHorizontally")},onBeforeDrawBorders:function(t,n){e.runHooks("beforeDrawBorders",t,n)},onBeforeTouchScroll:function(){e.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){e.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){return e.runHooks("beforeStretchingColumnWidth",t,n)},onModifyRowHeaderWidth:function(t){return e.runHooks("modifyRowHeaderWidth",t)},viewportRowCalculatorOverride:function(t){var o=e.countRows(),r=n.settings.viewportRowRenderingOffset;if("auto"===r&&n.settings.fixedRowsTop&&(r=10),"number"==typeof r&&(t.startRow=Math.max(t.startRow-r,0),t.endRow=Math.min(t.endRow+r,o-1)),"auto"===r){var i=t.startRow+t.endRow-t.startRow,s=Math.ceil(i/o*12);t.startRow=Math.max(t.startRow-s,0),t.endRow=Math.min(t.endRow+s,o-1)}e.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var o=e.countCols(),r=n.settings.viewportColumnRenderingOffset;if("auto"===r&&n.settings.fixedColumnsLeft&&(r=10),"number"==typeof r&&(t.startColumn=Math.max(t.startColumn-r,0),t.endColumn=Math.min(t.endColumn+r,o-1)),"auto"===r){var i=t.startColumn+t.endColumn-t.startColumn,s=Math.ceil(i/o*12);t.startRow=Math.max(t.startColumn-s,0),t.endColumn=Math.min(t.endColumn+s,o-1)}e.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return n.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.runHooks("modifyColumnHeaderHeight");return n.settings.columnHeaderHeight||t}};h.hooks.run(e,"beforeInitWalkontable",l),this.wt=new H(l),this.activeWt=this.wt,this.eventManager.addEventListener(n.wt.wtTable.spreader,"mousedown",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&E(e)}),this.eventManager.addEventListener(n.wt.wtTable.spreader,"contextmenu",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&E(e)}),this.eventManager.addEventListener(document.documentElement,"click",function(){n.settings.observeDOMVisibility&&n.wt.drawInterrupted&&(n.instance.forceFullRender=!0,n.render())})}Object.defineProperties(n,{TableView:{get:function(){return o}},__esModule:{value:!0}});var r,i,s,a,l,u,c,d,h=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,f=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),p=f.addClass,m=f.empty,g=f.fastInnerHTML,w=f.fastInnerText,v=f.getScrollbarWidth,y=f.hasClass,b=f.isChildOf,C=f.isInput,_=f.isOutsideInput,R=f.removeClass,M=((s=e("helpers/object"),s&&s.__esModule&&s||{default:s}).createObjectPropListener,(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).eventManager),S=(l=e("helpers/dom/event"),l&&l.__esModule&&l||{default:l}),E=S.stopPropagation,O=S.isImmediatePropagationStopped,T=S.isRightClick,k=S.isLeftClick,x=(u=e("3rdparty/walkontable/src/cell/coords"),u&&u.__esModule&&u||{default:u}).WalkontableCellCoords,D=(c=e("3rdparty/walkontable/src/selection"),c&&c.__esModule&&c||{default:c}).WalkontableSelection,H=(d=e("3rdparty/walkontable/src/core"),d&&d.__esModule&&d||{default:d}).Walkontable;h.TableView=o,o.prototype.isTextSelectionAllowed=function(e){if(C(e))return!0;var t=b(e,this.instance.view.wt.wtTable.spreader);return!(this.settings.fragmentSelection!==!0||!t)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))},o.prototype.isSelectedOnlyCell=function(){var e=this.instance.getSelected()||[],t=e[0],n=e[1],o=e[2],r=e[3];return void 0!==t&&t===o&&n===r},o.prototype.isCellEdited=function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()},o.prototype.beforeRender=function(e,t){e&&h.hooks.run(this.instance,"beforeRender",this.instance.forceFullRender,t)},o.prototype.onDraw=function(e){e&&h.hooks.run(this.instance,"afterRender",this.instance.forceFullRender)},o.prototype.render=function(){this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1},o.prototype.getCellAtCoords=function(e,t){var n=this.wt.getCell(e,t);return n<0?null:n},o.prototype.scrollViewport=function(e){this.wt.scrollViewport(e)},o.prototype.appendRowHeader=function(e,t){if(t.firstChild){var n=t.firstChild;if(!y(n,"relative"))return m(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var o=document.createElement("div"),r=document.createElement("span");o.className="relative",r.className="rowHeader",this.updateCellHeader(r,e,this.instance.getRowHeader),o.appendChild(r),t.appendChild(o)}h.hooks.run(this.instance,"afterGetRowHeader",e,t)},o.prototype.appendColHeader=function(e,t){if(t.firstChild){var n=t.firstChild;y(n,"relative")?this.updateCellHeader(n.querySelector(".colHeader"),e,this.instance.getColHeader):(m(t),this.appendColHeader(e,t))}else{var o=document.createElement("div"),r=document.createElement("span");o.className="relative",r.className="colHeader",this.updateCellHeader(r,e,this.instance.getColHeader),o.appendChild(r),
t.appendChild(o)}h.hooks.run(this.instance,"afterGetColHeader",e,t)},o.prototype.updateCellHeader=function(e,t,n){var o=t,r=this.wt.wtOverlays.getParentOverlay(e)||this.wt;e.parentNode&&(y(e,"colHeader")?o=r.wtTable.columnFilter.sourceToRendered(t):y(e,"rowHeader")&&(o=r.wtTable.rowFilter.sourceToRendered(t))),o>-1?g(e,n(t)):(w(e,String.fromCharCode(160)),p(e,"cornerHeader"))},o.prototype.maximumVisibleElementWidth=function(e){var t=this.wt.wtViewport.getWorkspaceWidth(),n=t-e;return n>0?n:0},o.prototype.maximumVisibleElementHeight=function(e){var t=this.wt.wtViewport.getWorkspaceHeight(),n=t-e;return n>0?n:0},o.prototype.mainViewIsActive=function(){return this.wt===this.activeWt},o.prototype.destroy=function(){this.wt.destroy(),this.eventManager.destroy()}},{"3rdparty/walkontable/src/cell/coords":6,"3rdparty/walkontable/src/core":8,"3rdparty/walkontable/src/selection":19,browser:24,eventManager:42,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/object":53}],127:[function(e,t,n){"use strict";Object.defineProperties(n,{NodeStructure:{get:function(){return i}},LinkedList:{get:function(){return s}},__esModule:{value:!0}});var o,r=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,i=function(e){this.data=e,this.next=null,this.prev=null};$traceurRuntime.createClass(i,{},{});var s=function(){this.first=null,this.last=null};$traceurRuntime.createClass(s,{push:function(e){var t=new i(e);if(null===this.first)this.first=this.last=t;else{var n=this.last;this.last=t,t.prev=n,n.next=t}},unshift:function(e){var t=new i(e);if(null===this.first)this.first=this.last=t;else{var n=this.first;this.first=t,t.next=n,n.prev=t}},inorder:function(e){for(var t=this.first;t;)e(t),t=t.next},remove:function(e){if(null===this.first)return!1;for(var t,n,o=this.first;o;){if(o.data===e)return t=o.next,n=o.prev,t&&(t.prev=n),n&&(n.next=t),o===this.first&&(this.first=t),o===this.last&&(this.last=n),!0;o=o.next}return!1},hasCycle:function(){for(var e=this.first,t=this.first;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}},pop:function(){if(null===this.last)return null;var e=this.last;return this.last=this.last.prev,e},shift:function(){if(null===this.first)return null;var e=this.first;return this.first=this.first.next,e},recursiveReverse:function(){function e(t,n){n&&(e(n,n.next),n.next=t)}if(this.first){e(this.first,this.first.next),this.first.next=null;var t=this.first;this.first=this.last,this.last=t}},reverse:function(){if(this.first&&this.first.next){for(var e,t=this.first.next,n=this.first;t;)e=t.next,t.next=n,n.prev=t,n=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=n,this.last=e}}},{}),r.utils.NodeStructure=i,r.utils.LinkedList=s},{browser:24}],128:[function(e,t,n){"use strict";Object.defineProperties(n,{GhostTable:{get:function(){return m}},__esModule:{value:!0}});var o,r,i,s,a,l,u=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,c=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),d=c.addClass,h=c.outerHeight,f=c.outerWidth,p=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).arrayEach,m=((s=e("helpers/object"),s&&s.__esModule&&s||{default:s}).objectEach,(a=e("helpers/number"),a&&a.__esModule&&a||{default:a}).rangeEach,(l=e("helpers/mixed"),l&&l.__esModule&&l||{default:l}).stringify,function(e){this.hot=e,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}});$traceurRuntime.createClass(m,{addRow:function(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table},addColumnHeadersRow:function(e){if(null!=this.hot.getColHeader(0)){var t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tHead.appendChild(this.createColumnHeadersRow()),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}},addColumn:function(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table},getHeights:function(e){this.injected||this.injectTable(),p(this.rows,function(t){e(t.row,h(t.table)-1)})},getWidths:function(e){this.injected||this.injectTable(),p(this.columns,function(t){e(t.col,f(t.table))})},setSettings:function(e){this.settings=e},setSetting:function(e,t){this.settings||(this.settings={}),this.settings[e]=t},getSettings:function(){return this.settings},getSetting:function(e){return this.settings?this.settings[e]:null},createColGroupsCol:function(){var e=this,t=document,n=t.createDocumentFragment();return this.hot.hasRowHeaders()&&n.appendChild(this.createColElement(-1)),this.samples.forEach(function(t){p(t.strings,function(t){n.appendChild(e.createColElement(t.col))})}),n},createRow:function(e){var t=this,n=document,o=n.createDocumentFragment(),r=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,r),o.appendChild(r)),this.samples.forEach(function(r){p(r.strings,function(r){var i=r.col,s=t.hot.getCellMeta(e,i);s.col=i,s.row=e;var a=t.hot.getCellRenderer(s),l=n.createElement("td");a(t.hot,l,e,i,t.hot.colToProp(i),r.value,s),o.appendChild(l)})}),o},createColumnHeadersRow:function(){var e=this,t=document,n=t.createDocumentFragment();if(this.hot.hasRowHeaders()){var o=t.createElement("th");this.hot.view.appendColHeader(-1,o),n.appendChild(o)}return this.samples.forEach(function(o){p(o.strings,function(o){var r=o.col,i=t.createElement("th");e.hot.view.appendColHeader(r,i),n.appendChild(i)})}),n},createCol:function(e){var t=this,n=document,o=n.createDocumentFragment();return this.samples.forEach(function(r){p(r.strings,function(r){var i=r.row,s=t.hot.getCellMeta(i,e);s.col=e,s.row=i;var a=t.hot.getCellRenderer(s),l=n.createElement("td"),u=n.createElement("tr");a(t.hot,l,i,e,t.hot.colToProp(e),r.value,s),u.appendChild(l),o.appendChild(u)})}),o},clean:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()},injectTable:function(){var e=void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)},removeTable:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)},createColElement:function(e){var t=document,n=t.createElement("col");return n.style.width=this.hot.view.wt.wtTable.getStretchedColumnWidth(e)+"px",n},createTable:function(){var e=void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("table"),r=t.createElement("thead"),i=t.createElement("tbody"),s=t.createElement("colgroup"),a=t.createElement("tr"),l=t.createElement("th");return this.isVertical()&&o.appendChild(s),this.isHorizontal()&&(a.appendChild(l),r.appendChild(a),o.style.tableLayout="auto",o.style.width="auto"),o.appendChild(r),this.isVertical()&&i.appendChild(a),o.appendChild(i),d(o,e),n.appendChild(o),{fragment:n,table:o,tHead:r,tBody:i,colGroup:s,tr:a,th:l}},createContainer:function(){var e=void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("div");return e="htGhostTable htAutoSize "+e.trim(),d(o,e),n.appendChild(o),{fragment:n,container:o}},isVertical:function(){return!(!this.rows.length||this.columns.length)},isHorizontal:function(){return!(!this.columns.length||this.rows.length)}},{}),u.utils.GhostTable=m},{browser:24,"helpers/array":43,"helpers/dom/element":47,"helpers/mixed":51,"helpers/number":52,"helpers/object":53}],129:[function(e,t,n){"use strict";function o(e){return"string"==typeof e&&/fps$/.test(e)&&(e=1e3/parseInt(e.replace("fps","")||0,10)),e}Object.defineProperties(n,{Interval:{get:function(){return c}},__esModule:{value:!0}});var r,i,s=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,a=(i=e("helpers/feature"),i&&i.__esModule&&i||{default:i}),l=a.requestAnimationFrame,u=a.cancelAnimationFrame,c=function(e,t){var n=this;this.timer=null,this.func=e,this.delay=o(t),this.stopped=!0,this._then=null,this._callback=function(){return n.__callback()}},d=c;$traceurRuntime.createClass(c,{start:function(){return this.stopped&&(this._then=Date.now(),this.stopped=!1,this.timer=l(this._callback)),this},stop:function(){return this.stopped||(this.stopped=!0,u(this.timer),this.timer=null),this},__callback:function(){if(this.timer=l(this._callback),this.delay){var e=Date.now(),t=e-this._then;t>this.delay&&(this._then=e-t%this.delay,this.func())}else this.func()}},{create:function(e,t){return new d(e,t)}}),s.utils.Interval=c},{browser:24,"helpers/feature":49}],130:[function(e,t,n){"use strict";function o(e,t){c.set(e,t)}function r(e){var t;if(!(e instanceof a.Core)){if(!c.has(e))throw Error("Record translator was not registered for this object identity");e=c.get(e)}return d.has(e)?t=d.get(e):(t=new u(e),d.set(e,t)),t}Object.defineProperties(n,{registerIdentity:{get:function(){return o}},getTranslator:{get:function(){return r}},__esModule:{value:!0}});var i,s,a=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,l=(s=e("helpers/object"),s&&s.__esModule&&s||{default:s}).isObject,u=function(e){this.hot=e};$traceurRuntime.createClass(u,{toVisualRow:function(e){return this.hot.runHooks("unmodifyRow",e)},toVisualColumn:function(e){return this.hot.runHooks("unmodifyCol",e)},toVisual:function(e,t){var n;return n=l(e)?{row:this.toVisualRow(e.row),column:this.toVisualColumn(e.column)}:[this.toVisualRow(e),this.toVisualColumn(t)]},toPhysicalRow:function(e){return this.hot.runHooks("modifyRow",e)},toPhysicalColumn:function(e){return this.hot.runHooks("modifyCol",e)},toPhysical:function(e,t){var n;return n=l(e)?{row:this.toPhysicalRow(e.row),column:this.toPhysicalColumn(e.column)}:[this.toPhysicalRow(e),this.toPhysicalColumn(t)]}},{});var c=new WeakMap,d=new WeakMap;a.utils.RecordTranslator=u,a.utils.RecordTranslatorUtils={registerIdentity:o,getTranslator:r}},{browser:24,"helpers/object":53}],131:[function(e,t,n){"use strict";var o;Object.defineProperties(n,{SamplesGenerator:{get:function(){return g}},__esModule:{value:!0}});var r,i,s,a,l,u,c=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,d=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),h=(d.addClass,d.outerHeight,d.outerWidth,(s=e("helpers/array"),s&&s.__esModule&&s||{default:s}).arrayEach,a=e("helpers/object"),a&&a.__esModule&&a||{default:a}),f=(h.objectEach,h.isObject),p=(l=e("helpers/number"),l&&l.__esModule&&l||{default:l}).rangeEach,m=(u=e("helpers/mixed"),u&&u.__esModule&&u||{default:u}).stringify,g=function(e){this.samples=null,this.dataFactory=e,this.customSampleCount=null,this.allowDuplicates=!1},w=g;$traceurRuntime.createClass(g,(o={},Object.defineProperty(o,"getSampleCount",{value:function(){return this.customSampleCount?this.customSampleCount:w.SAMPLE_COUNT},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"setSampleCount",{value:function(e){this.customSampleCount=e},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"setAllowDuplicates",{value:function(e){this.allowDuplicates=e},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"generateRowSamples",{value:function(e,t){return this.generateSamples("row",t,e)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"generateColumnSamples",{value:function(e,t){return this.generateSamples("col",t,e)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"generateSamples",{value:function(e,t,n){var o=this,r=new Map;return"number"==typeof n&&(n={from:n,to:n}),p(n.from,n.to,function(n){var i=o.generateSample(e,t,n);r.set(n,i)}),r},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"generateSample",{value:function(e,t,n){var o,r=this,i=new Map,s=[];return p(t.from,t.to,function(t){var a,l;if("row"===e)l=r.dataFactory(n,t);else{if("col"!==e)throw new Error("Unsupported sample type");l=r.dataFactory(t,n)}o=f(l)?Object.keys(l).length:Array.isArray(l)?l.length:m(l).length,i.has(o)||i.set(o,{needed:r.getSampleCount(),strings:[]});var u=i.get(o);if(u.needed){var c=s.indexOf(l)>-1;if(!c||r.allowDuplicates){var d="row"===e?"col":"row";u.strings.push((a={},Object.defineProperty(a,"value",{value:l,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(a,d,{value:t,configurable:!0,enumerable:!0,writable:!0}),a)),s.push(l),u.needed--}}}),i},configurable:!0,enumerable:!0,writable:!0}),o),{get SAMPLE_COUNT(){return 3}}),c.utils.SamplesGenerator=g},{browser:24,"helpers/array":43,"helpers/dom/element":47,"helpers/mixed":51,"helpers/number":52,"helpers/object":53}],132:[function(e,t,n){"use strict";function o(e){var t=void 0!==arguments[1]?arguments[1]:u,n=void 0!==arguments[2]?arguments[2]:0,i=void 0!==arguments[3]?arguments[3]:e.length;if(Math.abs(i-n)<=1)return[];var s=Math.ceil((n+i)/2);return o(e,t,n,s),o(e,t,s,i),r(e,t,n,s,i)}function r(e,t,n,o,r){for(var i=new a,s=new a,l=o-n,u=r-o,c=Math.max(l,u),d=r-n,h=0;h<c;h+=1)h<l&&i.push(e[n+h]),h<u&&s.push(e[o+h]);for(var f=0;f<d;)i.first&&s.first?t(i.first.data,s.first.data)>0?e[n+f]=s.shift().data:e[n+f]=i.shift().data:i.first?e[n+f]=i.shift().data:e[n+f]=s.shift().data,f+=1;return e}Object.defineProperties(n,{mergeSort:{get:function(){return o}},__esModule:{value:!0}});var i,s,a=(i=e("../dataStructures/linkedList"),i&&i.__esModule&&i||{default:i}).LinkedList,l=(s=e("browser"),s&&s.__esModule&&s||{default:s}).default,u=function(e,t){var n=e.toString(),o=t.toString();return n===o?0:n<o?-1:1};l.utils.mergeSort=o},{"../dataStructures/linkedList":127,browser:24}],133:[function(e,t,n){"use strict";function o(e,t){var n=e;return function(e){for(var o=!1,r=0,i=e.length;r<i;r++)if(n===e[r]){o=!0;break}t(o)}}var r,i,s=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default;(i=e("helpers/mixed"),i&&i.__esModule&&i||{default:i}).stringify;s.AutocompleteValidator=function(e,t){return null==e&&(e=""),this.allowEmpty&&""===e?void t(!0):void(this.strict&&this.source?"function"==typeof this.source?this.source(e,o(e,t)):o(e,t)(this.source):t(!0))}},{browser:24,"helpers/mixed":51}],134:[function(e,t,n){"use strict";var o,r,i,s,a=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,l=(r=e("moment"),r&&r.__esModule&&r||{default:r}).default,u=(i=e("../helpers/date"),i&&i.__esModule&&i||{default:i}).getNormalizedDate,c=(s=e("editors"),s&&s.__esModule&&s||{default:s}).getEditor;a.DateValidator=function(e,t){var n=!0,o=c("date",this.instance);null==e&&(e="");var r=l(new Date(e)).isValid()||l(e,o.defaultDateFormat).isValid(),i=l(e,this.dateFormat||o.defaultDateFormat,!0).isValid();if(this.allowEmpty&&""===e&&(r=!0,i=!0),r||(n=!1),!r&&i&&(n=!0),r&&!i)if(this.correctFormat===!0){var s=d(e,this.dateFormat),a=this.instance.runHooks("unmodifyRow",this.row),u=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(a,u,s,"dateValidator"),n=!0}else n=!1;t(n)};var d=function(e,t){var n,o=l(u(e)),r=l(e,t),i=e.search(/[A-z]/g)>-1;return n=o.isValid()&&o.format("x")===r.format("x")||!r.isValid()||i?o:r,n.format(t)}},{"../helpers/date":46,browser:24,editors:30,moment:"moment"}],135:[function(e,t,n){"use strict";var o,r=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default;r.NumericValidator=function(e,t){null==e&&(e=""),t(this.allowEmpty&&""===e?!0:""===e?!1:/^-?\d*(\.|\,)?\d*$/.test(e))}},{browser:24}],136:[function(e,t,n){"use strict";var o,r,i=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,s=(r=e("moment"),r&&r.__esModule&&r||{default:r}).default,a=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"];i.TimeValidator=function(e,t){var n=!0,o=this.timeFormat||"h:mm:ss a";null===e&&(e=""),e=/^\d{3,}$/.test(e)?parseInt(e,10):e;var r=/^\d{1,2}$/.test(e);r&&(e+=":00");var i=s(e,a,!0).isValid()?s(e):s(e,o),l=i.isValid(),u=s(e,o,!0).isValid()&&!r;if(this.allowEmpty&&""===e&&(l=!0,u=!0),l||(n=!1),!l&&u&&(n=!0),l&&!u)if(this.correctFormat===!0){var c=i.format(o),d=this.instance.runHooks("unmodifyRow",this.row),h=this.instance.runHooks("unmodifyCol",this.col);this.instance.setDataAtCell(d,h,c,"timeValidator"),n=!0}else n=!1;t(n)}},{browser:24,moment:"moment"}],SheetClip:[function(e,t,n){!function(e){"use strict";function t(e){return e.split('"').length-1}var o={parse:function(e){var n,o,r,i,s,a,l,u=[],c=0;for(r=e.split("\n"),r.length>1&&""===r[r.length-1]&&r.pop(),n=0,o=r.length;n<o;n+=1){for(r[n]=r[n].split("\t"),i=0,s=r[n].length;i<s;i+=1)u[c]||(u[c]=[]),a&&0===i?(l=u[c].length-1,u[c][l]=u[c][l]+"\n"+r[n][0],a&&1&t(r[n][0])&&(a=!1,u[c][l]=u[c][l].substring(0,u[c][l].length-1).replace(/""/g,'"'))):i===s-1&&0===r[n][i].indexOf('"')&&1&t(r[n][i])?(u[c].push(r[n][i].substring(1).replace(/""/g,'"')),a=!0):(u[c].push(r[n][i].replace(/""/g,'"')),a=!1);a||(c+=1)}return u},stringify:function(e){var t,n,o,r,i,s="";for(t=0,n=e.length;t<n;t+=1){for(r=e[t].length,o=0;o<r;o+=1)o>0&&(s+="\t"),i=e[t][o],s+="string"==typeof i?i.indexOf("\n")>-1?'"'+i.replace(/"/g,'""')+'"':i:null===i||void 0===i?"":i;s+="\n"}return s}};"undefined"!=typeof n?(n.parse=o.parse,n.stringify=o.stringify):e.SheetClip=o}(window)},{}],autoResize:[function(e,t,n){function o(){function e(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}var t,n={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},o=document.body,r=document.createTextNode(""),i=document.createElement("SPAN"),s=function(e,t,n){window.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n,!1)},a=function(e,t,n){window.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},l=function(s){var a,l;s?/^[a-zA-Z \.,\\\/\|0-9]$/.test(s)||(s="."):s="",void 0!==r.textContent?r.textContent=t.value+s:r.data=t.value+s,i.style.fontSize=e(t).fontSize,i.style.fontFamily=e(t).fontFamily,i.style.whiteSpace="pre",o.appendChild(i),a=i.clientWidth+2,o.removeChild(i),t.style.height=n.minHeight+"px",n.minWidth>a?t.style.width=n.minWidth+"px":a>n.maxWidth?t.style.width=n.maxWidth+"px":t.style.width=a+"px",l=t.scrollHeight?t.scrollHeight-1:0,n.minHeight>l?t.style.height=n.minHeight+"px":n.maxHeight<l?(t.style.height=n.maxHeight+"px",t.style.overflowY="visible"):t.style.height=l+"px"},u=function(){window.setTimeout(l,0)},c=function(e){if(e&&e.minHeight)if("inherit"==e.minHeight)n.minHeight=t.clientHeight;else{var o=parseInt(e.minHeight);isNaN(o)||(n.minHeight=o)}if(e&&e.maxHeight)if("inherit"==e.maxHeight)n.maxHeight=t.clientHeight;else{var s=parseInt(e.maxHeight);isNaN(s)||(n.maxHeight=s)}if(e&&e.minWidth)if("inherit"==e.minWidth)n.minWidth=t.clientWidth;else{var a=parseInt(e.minWidth);isNaN(a)||(n.minWidth=a)}if(e&&e.maxWidth)if("inherit"==e.maxWidth)n.maxWidth=t.clientWidth;else{var l=parseInt(e.maxWidth);isNaN(l)||(n.maxWidth=l)}i.firstChild||(i.className="autoResize",i.style.display="inline-block",i.appendChild(r))},d=function(e,o,r){t=e,c(o),"TEXTAREA"==t.nodeName&&(t.style.resize="none",t.style.overflowY="",t.style.height=n.minHeight+"px",t.style.minWidth=n.minWidth+"px",t.style.maxWidth=n.maxWidth+"px",t.style.overflowY="hidden"),r&&(s(t,"change",l),s(t,"cut",u),s(t,"paste",u),s(t,"drop",u),s(t,"keydown",u),s(t,"focus",l)),l()};return{init:function(e,t,n){d(e,t,n)},unObserve:function(){a(t,"change",l),a(t,"cut",u),a(t,"paste",u),a(t,"drop",u),a(t,"keydown",u),a(t,"focus",l)},resize:l}}"undefined"!=typeof n&&(t.exports=o)},{}],copyPaste:[function(e,t,n){function o(){return i?i.hasBeenDestroyed()&&i.init():i=new r,i.refCounter++,i}function r(){this.refCounter=0,this.init()}var i;"undefined"!=typeof n&&(t.exports=o),r.prototype.init=function(){var e,t;this.copyCallbacks=[],this.cutCallbacks=[],this.pasteCallbacks=[],t=document.body,document.getElementById("CopyPasteDiv")?(this.elDiv=document.getElementById("CopyPasteDiv"),this.elTextarea=this.elDiv.firstChild):(this.elDiv=document.createElement("div"),this.elDiv.id="CopyPasteDiv",e=this.elDiv.style,e.position="fixed",e.top="-10000px",e.left="-10000px",t.appendChild(this.elDiv),this.elTextarea=document.createElement("textarea"),this.elTextarea.className="copyPaste",this.elTextarea.onpaste=function(e){var t,n;"WebkitAppearance"in document.documentElement.style&&(t=e.clipboardData.getData("Text"),navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1&&(n=t.split("\n"),""===n[n.length-1]&&n.pop(),t=n.join("\n")),this.value=t,e.preventDefault())},e=this.elTextarea.style,e.width="10000px",e.height="10000px",e.overflow="hidden",this.elDiv.appendChild(this.elTextarea),"undefined"!=typeof e.opacity&&(e.opacity=0)),this.onKeyDownRef=this.onKeyDown.bind(this),document.documentElement.addEventListener("keydown",this.onKeyDownRef,!1)},r.prototype.onKeyDown=function(e){function t(){var e=document.activeElement;return e.shadowRoot&&e.shadowRoot.activeElement&&(e=e.shadowRoot.activeElement),["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable}var n=this,o=!1;if(e.metaKey?o=!0:e.ctrlKey&&navigator.userAgent.indexOf("Mac")===-1&&(o=!0),o){if(document.activeElement!==this.elTextarea&&(""!==this.getSelectionText()||t()))return;this.selectNodeText(this.elTextarea),setTimeout(function(){document.activeElement!==n.elTextarea&&n.selectNodeText(n.elTextarea)},0)}e.isImmediatePropagationEnabled===!1||!o||67!==e.keyCode&&86!==e.keyCode&&88!==e.keyCode||(88===e.keyCode?setTimeout(function(){n.triggerCut(e)},0):86===e.keyCode&&setTimeout(function(){n.triggerPaste(e)},0))},r.prototype.selectNodeText=function(e){e&&e.select()},r.prototype.getSelectionText=function(){var e="";return window.getSelection?e=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e},r.prototype.copyable=function(e){if("string"!=typeof e&&void 0===e.toString)throw new Error("copyable requires string parameter");this.elTextarea.value=e,this.selectNodeText(this.elTextarea)},r.prototype.onCut=function(e){this.cutCallbacks.push(e)},r.prototype.onPaste=function(e){this.pasteCallbacks.push(e)},r.prototype.removeCallback=function(e){var t,n;for(t=0,n=this.copyCallbacks.length;t<n;t++)if(this.copyCallbacks[t]===e)return this.copyCallbacks.splice(t,1),!0;for(t=0,n=this.cutCallbacks.length;t<n;t++)if(this.cutCallbacks[t]===e)return this.cutCallbacks.splice(t,1),!0;for(t=0,n=this.pasteCallbacks.length;t<n;t++)if(this.pasteCallbacks[t]===e)return this.pasteCallbacks.splice(t,1),!0;return!1},r.prototype.triggerCut=function(e){var t=this;t.cutCallbacks&&setTimeout(function(){for(var n=0,o=t.cutCallbacks.length;n<o;n++)t.cutCallbacks[n](e)},50)},r.prototype.triggerPaste=function(e,t){var n=this;n.pasteCallbacks&&setTimeout(function(){for(var o=t||n.elTextarea.value,r=0,i=n.pasteCallbacks.length;r<i;r++)n.pasteCallbacks[r](o,e)},50)},r.prototype.destroy=function(){this.hasBeenDestroyed()||0!==--this.refCounter||(this.elDiv&&this.elDiv.parentNode&&(this.elDiv.parentNode.removeChild(this.elDiv),this.elDiv=null,this.elTextarea=null),document.documentElement.removeEventListener("keydown",this.onKeyDownRef),this.onKeyDownRef=null)},r.prototype.hasBeenDestroyed=function(){return!this.refCounter}},{}],es6collections:[function(e,t,n){/*!
* Copyright (C) 2011 by Andrea Giammarchi, @WebReflection
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
!function(e){"use strict";function t(e,t){function o(e){return this&&this.constructor===o?(this._keys=[],this._values=[],this._itp=[],this.objectOnly=t,void(e&&n.call(this,e))):new o(e)}return t||y(e,"size",{get:g}),e.constructor=o,o.prototype=e,o}function n(e){this.add?e.forEach(this.add,this):e.forEach(function(e){this.set(e[0],e[1])},this)}function o(e){return this.has(e)&&(this._keys.splice(v,1),this._values.splice(v,1),this._itp.forEach(function(e){v<e[0]&&e[0]--})),-1<v}function r(e){return this.has(e)?this._values[v]:void 0}function i(e,t){if(this.objectOnly&&t!==Object(t))throw new TypeError("Invalid value used as weak collection key");if(t!=t||0===t)for(v=e.length;v--&&!b(e[v],t););else v=e.indexOf(t);return-1<v}function s(e){return i.call(this,this._values,e)}function a(e){return i.call(this,this._keys,e)}function l(e,t){return this.has(e)?this._values[v]=t:this._values[this._keys.push(e)-1]=t,this}function u(e){return this.has(e)||this._values.push(e),this}function c(){this._values.length=0}function d(){return m(this._itp,this._keys)}function h(){return m(this._itp,this._values)}function f(){return m(this._itp,this._keys,this._values)}function p(){return m(this._itp,this._values,this._values)}function m(e,t,n){var o=[0],r=!1;return e.push(o),{next:function(){var i,s=o[0];return!r&&s<t.length?(i=n?[t[s],n[s]]:t[s],o[0]++):(r=!0,e.splice(e.indexOf(o),1)),{done:r,value:i}}}}function g(){return this._values.length}function w(e,t){for(var n=this.entries();;){var o=n.next();if(o.done)break;e.call(t,o.value[1],o.value[0],this)}}var v,y=Object.defineProperty,b=function(e,t){return isNaN(e)?isNaN(t):e===t};"undefined"==typeof WeakMap&&(e.WeakMap=t({delete:o,clear:c,get:r,has:a,set:l},!0)),"undefined"==typeof Map&&(e.Map=t({delete:o,has:a,get:r,set:l,keys:d,values:h,entries:f,forEach:w,clear:c})),"undefined"==typeof Set&&(e.Set=t({has:s,add:u,delete:o,clear:c,keys:h,values:h,entries:p,forEach:w})),"undefined"==typeof WeakSet&&(e.WeakSet=t({delete:o,add:u,clear:c,has:s},!0))}("undefined"!=typeof n&&"undefined"!=typeof global?global:window)},{}],jsonpatch:[function(e,t,n){/*!
* https://github.com/Starcounter-Jack/JSON-Patch
* json-patch-duplex.js version: 0.5.7
* (c) 2013 Joachim Wester
* MIT license
*/
var o,r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=Error;!function(e){function t(e,n){switch(typeof e){case"undefined":case"boolean":case"string":case"number":return e===n;case"object":if(null===e)return null===n;if(E(e)){if(!E(n)||e.length!==n.length)return!1;for(var o=0,r=e.length;o<r;o++)if(!t(e[o],n[o]))return!1;return!0}var i=y(n),s=i.length;if(y(e).length!==s)return!1;for(var o=0;o<s;o++)if(!t(e[o],n[o]))return!1;return!0;default:return!1}}function n(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function o(e){for(var t=0,n=R.length;t<n;t++)if(R[t].obj===e)return R[t]}function s(e,t){for(var n=0,o=e.observers.length;n<o;n++)if(e.observers[n].callback===t)return e.observers[n].observer}function a(e,t){for(var n=0,o=e.observers.length;n<o;n++)if(e.observers[n].observer===t)return void e.observers.splice(n,1)}function l(e,t){t.unobserve()}function u(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function c(e,t){var n,r=[],l=o(e);if(l?n=s(l,t):(l=new M(e),R.push(l)),n)return n;if(n={},l.value=u(e),t){n.callback=t,n.next=null;var c=this.intervals||[100,1e3,1e4,6e4];if(void 0===c.push)throw new i("jsonpatch.intervals must be an array");var h=0,f=function(){d(n)},p=function(){clearTimeout(n.next),n.next=setTimeout(function(){f(),h=0,n.next=setTimeout(m,c[h++])},0)},m=function(){f(),h==c.length&&(h=c.length-1),n.next=setTimeout(m,c[h++])};"undefined"!=typeof window&&(window.addEventListener?(window.addEventListener("mousedown",p),window.addEventListener("mouseup",p),window.addEventListener("keydown",p)):(document.documentElement.attachEvent("onmousedown",p),document.documentElement.attachEvent("onmouseup",p),document.documentElement.attachEvent("onkeydown",p))),n.next=setTimeout(m,c[h++])}return n.patches=r,n.object=e,n.unobserve=function(){d(n),clearTimeout(n.next),a(l,n),"undefined"!=typeof window&&(window.removeEventListener?(window.removeEventListener("mousedown",p),window.removeEventListener("mouseup",p),window.removeEventListener("keydown",p)):(document.documentElement.detachEvent("onmousedown",p),document.documentElement.detachEvent("onmouseup",p),document.documentElement.detachEvent("onkeydown",p)))},l.observers.push(new S(t,n)),n}function d(e){for(var t,n=0,o=R.length;n<o;n++)if(R[n].obj===e.object){t=R[n];break}h(t.value,e.object,e.patches,""),e.patches.length&&p(t.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function h(e,t,o,r){for(var i=y(t),s=y(e),a=!1,l=!1,c=s.length-1;c>=0;c--){var d=s[c],f=e[d];if(t.hasOwnProperty(d)){var p=t[d];"object"==typeof f&&null!=f&&"object"==typeof p&&null!=p?h(f,p,o,r+"/"+n(d)):f!=p&&(a=!0,o.push({op:"replace",path:r+"/"+n(d),value:u(p)}))}else o.push({op:"remove",path:r+"/"+n(d)}),l=!0}if(l||i.length!=s.length)for(var c=0;c<i.length;c++){var d=i[c];e.hasOwnProperty(d)||o.push({op:"add",path:r+"/"+n(d),value:u(t[d])})}}function f(e){for(var t,n=0,o=e.length;n<o;){t=e.charCodeAt(n);{if(!(t>=48&&t<=57))return!1;n++}}return!0}function p(e,t,n){for(var o,r,i=!1,s=0,a=t.length;s<a;){o=t[s],s++;for(var l=o.path||"",u=l.split("/"),c=e,d=1,h=u.length,p=void 0;;){if(r=u[d],n&&void 0===p&&(void 0===c[r]?p=u.slice(0,d).join("/"):d==h-1&&(p=o.path),void 0!==p&&this.validator(o,s-1,e,p)),d++,void 0===r&&d>=h){i=_[o.op].call(o,c,r,e);break}if(E(c)){if("-"===r)r=c.length;else{if(n&&!f(r))throw new O("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",s-1,o.path,o);r=parseInt(r,10)}if(d>=h){if(n&&"add"===o.op&&r>c.length)throw new O("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",s-1,o.path,o);i=C[o.op].call(o,c,r,e);break}}else if(r&&r.indexOf("~")!=-1&&(r=r.replace(/~1/g,"/").replace(/~0/g,"~")),d>=h){i=b[o.op].call(o,c,r,e);break}c=c[r]}}return i}function m(e,t){var n=[];return h(e,t,n,""),n}function g(e){if(void 0===e)return!0;if("array"==typeof e||"object"==typeof e)for(var t in e)if(g(e[t]))return!0;return!1}function w(t,n,o,r){if("object"!=typeof t||null===t||E(t))throw new O("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,t,o);if(!b[t.op])throw new O("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,t,o);if("string"!=typeof t.path)throw new O("Operation `path` property is not a string","OPERATION_PATH_INVALID",n,t,o);if(("move"===t.op||"copy"===t.op)&&"string"!=typeof t.from)throw new O("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,t,o);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&void 0===t.value)throw new O("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,t,o);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&g(t.value))throw new O("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,t,o);if(o)if("add"==t.op){var i=t.path.split("/").length,s=r.split("/").length;if(i!==s+1&&i!==s)throw new O("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,t,o)}else if("replace"===t.op||"remove"===t.op||"_get"===t.op){if(t.path!==r)throw new O("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,t,o)}else if("move"===t.op||"copy"===t.op){var a={op:"_get",path:t.from,value:void 0},l=e.validate([a],o);if(l&&"OPERATION_PATH_UNRESOLVABLE"===l.name)throw new O("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,t,o)}}function v(e,t){try{if(!E(e))throw new O("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)t=JSON.parse(JSON.stringify(t)),p.call(this,t,e,!0);else for(var n=0;n<e.length;n++)this.validator(e[n],n)}catch(e){if(e instanceof O)return e;throw e}}var y=function(e){if(E(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var t=[];for(var o in e)e.hasOwnProperty(o)&&t.push(o);return t},b={add:function(e,t){return e[t]=this.value,!0},remove:function(e,t){return delete e[t],!0},replace:function(e,t){return e[t]=this.value,!0},move:function(e,t,n){var o={op:"_get",path:this.from};return p(n,[o]),p(n,[{op:"remove",path:this.from}]),p(n,[{op:"add",path:this.path,value:o.value}]),!0},copy:function(e,t,n){var o={op:"_get",path:this.from};return p(n,[o]),p(n,[{op:"add",path:this.path,value:o.value}]),!0},test:function(e,n){return t(e[n],this.value)},_get:function(e,t){this.value=e[t]}},C={add:function(e,t){return e.splice(t,0,this.value),!0},remove:function(e,t){return e.splice(t,1),!0},replace:function(e,t){return e[t]=this.value,!0},move:b.move,copy:b.copy,test:b.test,_get:b._get},_={add:function(e){_.remove.call(this,e);for(var t in this.value)this.value.hasOwnProperty(t)&&(e[t]=this.value[t]);return!0},remove:function(e){for(var t in e)e.hasOwnProperty(t)&&b.remove.call(this,e,t);return!0},replace:function(e){return p(e,[{op:"remove",path:this.path}]),p(e,[{op:"add",path:this.path,value:this.value}]),!0},move:b.move,copy:b.copy,test:function(e){return JSON.stringify(e)===JSON.stringify(this.value)},_get:function(e){this.value=e}},R=[],M=function(){function e(e){this.observers=[],this.obj=e}return e}(),S=function(){function e(e,t){this.callback=e,this.observer=t}return e}();e.unobserve=l,e.observe=c,e.generate=d;var E;E=Array.isArray?Array.isArray:function(e){return e.push&&"number"==typeof e.length},e.apply=p,e.compare=m;var O=function(e){function t(t,n,o,r,i){e.call(this,t),this.message=t,this.name=n,this.index=o,this.operation=r,this.tree=i}return r(t,e),t}(i);e.JsonPatchError=O,e.Error=O,e.validator=w,e.validate=v}(o||(o={})),"undefined"!=typeof n&&(n.apply=o.apply,n.observe=o.observe,n.unobserve=o.unobserve,n.generate=o.generate,n.compare=o.compare,n.validate=o.validate,n.validator=o.validator,n.JsonPatchError=o.JsonPatchError,n.Error=o.Error)},{}],moment:[function(t,n,o){!function(t,r){"object"==typeof o&&"undefined"!=typeof n?n.exports=r():"function"==typeof e&&e.amd?e(r):t.moment=r()}(this,function(){"use strict";function e(){return vo.apply(null,arguments)}function o(e){vo=e}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){var t;for(t in e)return!1;return!0}function a(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,o=[];for(n=0;n<e.length;++n)o.push(t(e[n],n));return o}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,o){return yt(e,t,n,o,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function p(e){return null==e._pf&&(e._pf=f()),e._pf}function m(e){if(null==e._isValid){var t=p(e),n=bo.call(t.parsedDateParts,function(e){return null!=e}),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function g(e){var t=h(NaN);return null!=e?d(p(t),e):p(t).userInvalidated=!0,t}function w(e){return void 0===e}function v(e,t){var n,o,r;if(w(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),w(t._i)||(e._i=t._i),w(t._f)||(e._f=t._f),w(t._l)||(e._l=t._l),w(t._strict)||(e._strict=t._strict),w(t._tzm)||(e._tzm=t._tzm),w(t._isUTC)||(e._isUTC=t._isUTC),w(t._offset)||(e._offset=t._offset),w(t._pf)||(e._pf=p(t)),w(t._locale)||(e._locale=t._locale),Co.length>0)for(n in Co)o=Co[n],r=t[o],w(r)||(e[o]=r);return e}function y(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),_o===!1&&(_o=!0,e.updateOffset(this),_o=!1)}function b(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function C(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=C(t)),n}function R(e,t,n){var o,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0;for(o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&_(e[o])!==_(t[o]))&&s++;return s+i}function M(t){e.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,n){var o=!0;return d(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),o){for(var r,i=[],s=0;s<arguments.length;s++){if(r="","object"==typeof arguments[s]){r+="\n["+s+"] ";for(var a in arguments[0])r+=a+": "+arguments[0][a]+", ";r=r.slice(0,-2)}else r=arguments[s];i.push(r)}M(t+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),o=!1}return n.apply(this,arguments)},n)}function E(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),Ro[t]||(M(n),Ro[t]=!0)}function O(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e){var t,n;for(n in e)t=e[n],O(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function k(e,t){var n,o=d({},e);for(n in t)c(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},d(o[n],e[n]),d(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)c(e,n)&&!c(t,n)&&i(e[n])&&(o[n]=d({},o[n]));return o}function x(e){null!=e&&this.set(e)}function D(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return O(o)?o.call(t,n):o}function H(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function A(){return this._invalidDate}function P(e){return this._ordinal.replace("%d",e)}function N(e,t,n,o){var r=this._relativeTime[n];return O(r)?r(e,t,n,o):r.replace(/%d/i,e)}function L(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}function I(e,t){var n=e.toLowerCase();Ao[n]=Ao[n+"s"]=Ao[t]=e}function W(e){return"string"==typeof e?Ao[e]||Ao[e.toLowerCase()]:void 0}function j(e){var t,n,o={};for(n in e)c(e,n)&&(t=W(n),t&&(o[t]=e[n]));return o}function V(e,t){Po[e]=t}function B(e){var t=[];for(var n in e)t.push({unit:n,priority:Po[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function F(t,n){return function(o){return null!=o?(Y(this,t,o),e.updateOffset(this,n),this):z(this,t)}}function z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Y(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function U(e){return e=W(e),O(this[e])?this[e]():this}function G(e,t){if("object"==typeof e){e=j(e);for(var n=B(e),o=0;o<n.length;o++)this[n[o].unit](e[n[o].unit])}else if(e=W(e),O(this[e]))return this[e](t);return this}function $(e,t,n){var o=""+Math.abs(e),r=t-o.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}function K(e,t,n,o){var r=o;"string"==typeof o&&(r=function(){return this[o]()}),e&&(Wo[e]=r),t&&(Wo[t[0]]=function(){return $(r.apply(this,arguments),t[1],t[2])}),n&&(Wo[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function X(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function q(e){var t,n,o=e.match(No);for(t=0,n=o.length;t<n;t++)Wo[o[t]]?o[t]=Wo[o[t]]:o[t]=X(o[t]);return function(t){var r,i="";for(r=0;r<n;r++)i+=o[r]instanceof Function?o[r].call(t,e):o[r];return i}}function Z(e,t){return e.isValid()?(t=J(t,e.localeData()),Io[t]=Io[t]||q(t),Io[t](e)):e.localeData().invalidDate()}function J(e,t){function n(e){return t.longDateFormat(e)||e}var o=5;for(Lo.lastIndex=0;o>=0&&Lo.test(e);)e=e.replace(Lo,n),Lo.lastIndex=0,o-=1;return e}function Q(e,t,n){nr[e]=O(t)?t:function(e,o){return e&&n?n:t}}function ee(e,t){return c(nr,e)?nr[e](t._strict,t._locale):new RegExp(te(e))}function te(e){return ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,r){return t||n||o||r}))}function ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function oe(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),a(t)&&(o=function(e,n){n[t]=_(e)}),n=0;n<e.length;n++)or[e[n]]=o}function re(e,t){oe(e,function(e,n,o,r){o._w=o._w||{},t(e,o._w,o,r)})}function ie(e,t,n){null!=t&&c(or,e)&&or[e](t,n._a,n,e)}function se(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function ae(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||pr).test(t)?"format":"standalone"][e.month()]:this._months}function le(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[pr.test(t)?"format":"standalone"][e.month()]:this._monthsShort}function ue(e,t,n){var o,r,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=h([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?(r=fr.call(this._shortMonthsParse,s),r!==-1?r:null):(r=fr.call(this._longMonthsParse,s),r!==-1?r:null):"MMM"===t?(r=fr.call(this._shortMonthsParse,s),r!==-1?r:(r=fr.call(this._longMonthsParse,s),r!==-1?r:null)):(r=fr.call(this._longMonthsParse,s),r!==-1?r:(r=fr.call(this._shortMonthsParse,s),r!==-1?r:null))}function ce(e,t,n){var o,r,i;if(this._monthsParseExact)return ue.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=h([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function de(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=_(t);else if(t=e.localeData().monthsParse(t),!a(t))return e;return n=Math.min(e.date(),se(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function he(t){return null!=t?(de(this,t),e.updateOffset(this,!0),this):z(this,"Month")}function fe(){return se(this.year(),this.month())}function pe(e){return this._monthsParseExact?(c(this,"_monthsRegex")||ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=wr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function me(e){return this._monthsParseExact?(c(this,"_monthsRegex")||ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=vr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ge(){function e(e,t){return t.length-e.length}var t,n,o=[],r=[],i=[];for(t=0;t<12;t++)n=h([2e3,t]),o.push(this.monthsShort(n,"")),r.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(o.sort(e),r.sort(e),i.sort(e),t=0;t<12;t++)o[t]=ne(o[t]),r[t]=ne(r[t]);for(t=0;t<24;t++)i[t]=ne(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function we(e){return ve(e)?366:365}function ve(e){return e%4===0&&e%100!==0||e%400===0}function ye(){return ve(this.year())}function be(e,t,n,o,r,i,s){var a=new Date(e,t,n,o,r,i,s);return e<100&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function Ce(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function _e(e,t,n){var o=7+t-n,r=(7+Ce(e,0,o).getUTCDay()-t)%7;return-r+o-1}function Re(e,t,n,o,r){var i,s,a=(7+n-o)%7,l=_e(e,o,r),u=1+7*(t-1)+a+l;return u<=0?(i=e-1,s=we(i)+u):u>we(e)?(i=e+1,s=u-we(e)):(i=e,s=u),{year:i,dayOfYear:s}}function Me(e,t,n){var o,r,i=_e(e.year(),t,n),s=Math.floor((e.dayOfYear()-i-1)/7)+1;return s<1?(r=e.year()-1,o=s+Se(r,t,n)):s>Se(e.year(),t,n)?(o=s-Se(e.year(),t,n),r=e.year()+1):(r=e.year(),o=s),{week:o,year:r}}function Se(e,t,n){var o=_e(e,t,n),r=_e(e+1,t,n);return(we(e)-o+r)/7}function Ee(e){return Me(e,this._week.dow,this._week.doy).week}function Oe(){return this._week.dow}function Te(){return this._week.doy}function ke(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function xe(e){var t=Me(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function De(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function He(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ae(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:this._weekdays}function Pe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ne(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Le(e,t,n){var o,r,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=h([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?(r=fr.call(this._weekdaysParse,s),r!==-1?r:null):"ddd"===t?(r=fr.call(this._shortWeekdaysParse,s),r!==-1?r:null):(r=fr.call(this._minWeekdaysParse,s),r!==-1?r:null):"dddd"===t?(r=fr.call(this._weekdaysParse,s),r!==-1?r:(r=fr.call(this._shortWeekdaysParse,s),r!==-1?r:(r=fr.call(this._minWeekdaysParse,s),r!==-1?r:null))):"ddd"===t?(r=fr.call(this._shortWeekdaysParse,s),r!==-1?r:(r=fr.call(this._weekdaysParse,s),r!==-1?r:(r=fr.call(this._minWeekdaysParse,s),r!==-1?r:null))):(r=fr.call(this._minWeekdaysParse,s),r!==-1?r:(r=fr.call(this._weekdaysParse,s),r!==-1?r:(r=fr.call(this._shortWeekdaysParse,s),r!==-1?r:null)))}function Ie(e,t,n){var o,r,i;if(this._weekdaysParseExact)return Le.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=h([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function We(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=De(e,this.localeData()),this.add(e-t,"d")):t}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ve(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=He(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Be(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Mr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Fe(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Sr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ze(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Er),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ye(){function e(e,t){return t.length-e.length}var t,n,o,r,i,s=[],a=[],l=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),s.push(o),a.push(r),l.push(i),u.push(o),u.push(r),u.push(i);for(s.sort(e),a.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)a[t]=ne(a[t]),l[t]=ne(l[t]),u[t]=ne(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ue(){return this.hours()%12||12}function Ge(){return this.hours()||24}function $e(e,t){K(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}function Xe(e){return"p"===(e+"").toLowerCase().charAt(0)}function qe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ze(e){return e?e.toLowerCase().replace("_","-"):e}function Je(e){for(var t,n,o,r,i=0;i<e.length;){for(r=Ze(e[i]).split("-"),t=r.length,n=Ze(e[i+1]),n=n?n.split("-"):null;t>0;){if(o=Qe(r.slice(0,t).join("-")))return o;if(n&&n.length>=t&&R(r,n,!0)>=t-1)break;t--}i++}return null}function Qe(e){var o=null;if(!Dr[e]&&"undefined"!=typeof n&&n&&n.exports)try{o=Or._abbr,t("./locale/"+e),et(o)}catch(e){}return Dr[e]}function et(e,t){var n;return e&&(n=w(t)?ot(e):tt(e,t),n&&(Or=n)),Or._abbr}function tt(e,t){if(null!==t){var n=xr;if(t.abbr=e,null!=Dr[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Dr[e]._config;else if(null!=t.parentLocale){if(null==Dr[t.parentLocale])return Hr[t.parentLocale]||(Hr[t.parentLocale]=[]),Hr[t.parentLocale].push({name:e,config:t}),null;n=Dr[t.parentLocale]._config}return Dr[e]=new x(k(n,t)),Hr[e]&&Hr[e].forEach(function(e){tt(e.name,e.config)}),et(e),Dr[e]}return delete Dr[e],null}function nt(e,t){if(null!=t){var n,o=xr;null!=Dr[e]&&(o=Dr[e]._config),t=k(o,t),n=new x(t),n.parentLocale=Dr[e],Dr[e]=n,et(e)}else null!=Dr[e]&&(null!=Dr[e].parentLocale?Dr[e]=Dr[e].parentLocale:null!=Dr[e]&&delete Dr[e]);return Dr[e]}function ot(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Or;if(!r(e)){if(t=Qe(e))return t;e=[e]}return Je(e)}function rt(){return Eo(Dr)}function it(e){var t,n=e._a;return n&&p(e).overflow===-2&&(t=n[ir]<0||n[ir]>11?ir:n[sr]<1||n[sr]>se(n[rr],n[ir])?sr:n[ar]<0||n[ar]>24||24===n[ar]&&(0!==n[lr]||0!==n[ur]||0!==n[cr])?ar:n[lr]<0||n[lr]>59?lr:n[ur]<0||n[ur]>59?ur:n[cr]<0||n[cr]>999?cr:-1,p(e)._overflowDayOfYear&&(t<rr||t>sr)&&(t=sr),p(e)._overflowWeeks&&t===-1&&(t=dr),p(e)._overflowWeekday&&t===-1&&(t=hr),p(e).overflow=t),e}function st(e){var t,n,o,r,i,s,a=e._i,l=Ar.exec(a)||Pr.exec(a);if(l){for(p(e).iso=!0,t=0,n=Lr.length;t<n;t++)if(Lr[t][1].exec(l[1])){r=Lr[t][0],o=Lr[t][2]!==!1;break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=Ir.length;t<n;t++)if(Ir[t][1].exec(l[3])){i=(l[2]||" ")+Ir[t][0];break}if(null==i)return void(e._isValid=!1)}if(!o&&null!=i)return void(e._isValid=!1);if(l[4]){if(!Nr.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(i||"")+(s||""),ht(e)}else e._isValid=!1}function at(t){var n=Wr.exec(t._i);return null!==n?void(t._d=new Date(+n[1])):(st(t),void(t._isValid===!1&&(delete t._isValid,e.createFromInputFallback(t))))}function lt(e,t,n){return null!=e?e:null!=t?t:n}function ut(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ct(e){var t,n,o,r,i=[];if(!e._d){for(o=ut(e),e._w&&null==e._a[sr]&&null==e._a[ir]&&dt(e),e._dayOfYear&&(r=lt(e._a[rr],o[rr]),e._dayOfYear>we(r)&&(p(e)._overflowDayOfYear=!0),n=Ce(r,0,e._dayOfYear),e._a[ir]=n.getUTCMonth(),e._a[sr]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=o[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ar]&&0===e._a[lr]&&0===e._a[ur]&&0===e._a[cr]&&(e._nextDay=!0,e._a[ar]=0),e._d=(e._useUTC?Ce:be).apply(null,i),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ar]=24)}}function dt(e){var t,n,o,r,i,s,a,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)i=1,s=4,n=lt(t.GG,e._a[rr],Me(bt(),1,4).year),o=lt(t.W,1),r=lt(t.E,1),(r<1||r>7)&&(l=!0);else{i=e._locale._week.dow,s=e._locale._week.doy;var u=Me(bt(),i,s);n=lt(t.gg,e._a[rr],u.year),o=lt(t.w,u.week),null!=t.d?(r=t.d,(r<0||r>6)&&(l=!0)):null!=t.e?(r=t.e+i,(t.e<0||t.e>6)&&(l=!0)):r=i}o<1||o>Se(n,i,s)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(a=Re(n,o,r,i,s),e._a[rr]=a.year,e._dayOfYear=a.dayOfYear)}function ht(t){if(t._f===e.ISO_8601)return void st(t);t._a=[],p(t).empty=!0;var n,o,r,i,s,a=""+t._i,l=a.length,u=0;for(r=J(t._f,t._locale).match(No)||[],n=0;n<r.length;n++)i=r[n],o=(a.match(ee(i,t))||[])[0],o&&(s=a.substr(0,a.indexOf(o)),s.length>0&&p(t).unusedInput.push(s),a=a.slice(a.indexOf(o)+o.length),u+=o.length),Wo[i]?(o?p(t).empty=!1:p(t).unusedTokens.push(i),ie(i,o,t)):t._strict&&!o&&p(t).unusedTokens.push(i);p(t).charsLeftOver=l-u,a.length>0&&p(t).unusedInput.push(a),t._a[ar]<=12&&p(t).bigHour===!0&&t._a[ar]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[ar]=ft(t._locale,t._a[ar],t._meridiem),ct(t),it(t)}function ft(e,t,n){var o;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(o=e.isPM(n),o&&t<12&&(t+=12),o||12!==t||(t=0),t):t}function pt(e){var t,n,o,r,i;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)i=0,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],ht(t),m(t)&&(i+=p(t).charsLeftOver,i+=10*p(t).unusedTokens.length,p(t).score=i,(null==o||i<o)&&(o=i,n=t));d(e,n||t)}function mt(e){if(!e._d){var t=j(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ct(e)}}function gt(e){var t=new y(it(wt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function wt(e){var t=e._i,n=e._f;return e._locale=e._locale||ot(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new y(it(t)):(l(t)?e._d=t:r(n)?pt(e):n?ht(e):vt(e),m(e)||(e._d=null),e))}function vt(t){var n=t._i;void 0===n?t._d=new Date(e.now()):l(n)?t._d=new Date(n.valueOf()):"string"==typeof n?at(t):r(n)?(t._a=u(n.slice(0),function(e){return parseInt(e,10)}),ct(t)):"object"==typeof n?mt(t):a(n)?t._d=new Date(n):e.createFromInputFallback(t)}function yt(e,t,n,o,a){var l={};return n!==!0&&n!==!1||(o=n,n=void 0),(i(e)&&s(e)||r(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=n,l._i=e,l._f=t,l._strict=o,gt(l)}function bt(e,t,n,o){return yt(e,t,n,o,!1)}function Ct(e,t){var n,o;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return bt();for(n=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](n)||(n=t[o]);return n}function _t(){var e=[].slice.call(arguments,0);return Ct("isBefore",e)}function Rt(){var e=[].slice.call(arguments,0);return Ct("isAfter",e)}function Mt(e){var t=j(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*i,this._months=+r+3*o+12*n,this._data={},this._locale=ot(),this._bubble()}function St(e){return e instanceof Mt}function Et(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Ot(e,t){K(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+$(~~(e/60),2)+t+$(~~e%60,2)})}function Tt(e,t){var n=(t||"").match(e);if(null===n)return null;var o=n[n.length-1]||[],r=(o+"").match(Fr)||["-",0,0],i=+(60*r[1])+_(r[2]);return 0===i?0:"+"===r[0]?i:-i}function kt(t,n){var o,r;return n._isUTC?(o=n.clone(),r=(b(t)||l(t)?t.valueOf():bt(t).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+r),e.updateOffset(o,!1),o):bt(t).local()}function xt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Dt(t,n){var o,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(t=Tt(Qo,t),null===t)return this}else Math.abs(t)<16&&(t*=60);return!this._isUTC&&n&&(o=xt(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==t&&(!n||this._changeInProgress?$t(this,Ft(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:xt(this)}function Ht(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset();
}function At(e){return this.utcOffset(0,e)}function Pt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(xt(this),"m")),this}function Nt(){if(null!=this._tzm)this.utcOffset(this._tzm);else if("string"==typeof this._i){var e=Tt(Jo,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Lt(e){return!!this.isValid()&&(e=e?bt(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function It(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Wt(){if(!w(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),e=wt(e),e._a){var t=e._isUTC?h(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&R(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function jt(){return!!this.isValid()&&!this._isUTC}function Vt(){return!!this.isValid()&&this._isUTC}function Bt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ft(e,t){var n,o,r,i=e,s=null;return St(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:a(e)?(i={},t?i[t]=e:i.milliseconds=e):(s=zr.exec(e))?(n="-"===s[1]?-1:1,i={y:0,d:_(s[sr])*n,h:_(s[ar])*n,m:_(s[lr])*n,s:_(s[ur])*n,ms:_(Et(1e3*s[cr]))*n}):(s=Yr.exec(e))?(n="-"===s[1]?-1:1,i={y:zt(s[2],n),M:zt(s[3],n),w:zt(s[4],n),d:zt(s[5],n),h:zt(s[6],n),m:zt(s[7],n),s:zt(s[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(r=Ut(bt(i.from),bt(i.to)),i={},i.ms=r.milliseconds,i.M=r.months),o=new Mt(i),St(e)&&c(e,"_locale")&&(o._locale=e._locale),o}function zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Yt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ut(e,t){var n;return e.isValid()&&t.isValid()?(t=kt(t,e),e.isBefore(t)?n=Yt(e,t):(n=Yt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Gt(e,t){return function(n,o){var r,i;return null===o||isNaN(+o)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),n="string"==typeof n?+n:n,r=Ft(n,o),$t(this,r,e),this}}function $t(t,n,o,r){var i=n._milliseconds,s=Et(n._days),a=Et(n._months);t.isValid()&&(r=null==r||r,i&&t._d.setTime(t._d.valueOf()+i*o),s&&Y(t,"Date",z(t,"Date")+s*o),a&&de(t,z(t,"Month")+a*o),r&&e.updateOffset(t,s||a))}function Kt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Xt(t,n){var o=t||bt(),r=kt(o,this).startOf("day"),i=e.calendarFormat(this,r)||"sameElse",s=n&&(O(n[i])?n[i].call(this,o):n[i]);return this.format(s||this.localeData().calendar(i,this,bt(o)))}function qt(){return new y(this)}function Zt(e,t){var n=b(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&(t=W(w(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Jt(e,t){var n=b(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&(t=W(w(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Qt(e,t,n,o){return o=o||"()",("("===o[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))}function en(e,t){var n,o=b(e)?e:bt(e);return!(!this.isValid()||!o.isValid())&&(t=W(t||"millisecond"),"millisecond"===t?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function tn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function nn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function on(e,t,n){var o,r,i,s;return this.isValid()?(o=kt(e,this),o.isValid()?(r=6e4*(o.utcOffset()-this.utcOffset()),t=W(t),"year"===t||"month"===t||"quarter"===t?(s=rn(this,o),"quarter"===t?s/=3:"year"===t&&(s/=12)):(i=this-o,s="second"===t?i/1e3:"minute"===t?i/6e4:"hour"===t?i/36e5:"day"===t?(i-r)/864e5:"week"===t?(i-r)/6048e5:i),n?s:C(s)):NaN):NaN}function rn(e,t){var n,o,r=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(r,"months");return t-i<0?(n=e.clone().add(r-1,"months"),o=(t-i)/(i-n)):(n=e.clone().add(r+1,"months"),o=(t-i)/(n-i)),-(r+o)||0}function sn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function an(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?O(Date.prototype.toISOString)?this.toDate().toISOString():Z(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):Z(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ln(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',o=0<this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]';return this.format(n+o+r+i)}function un(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=Z(this,t);return this.localeData().postformat(n)}function cn(e,t){return this.isValid()&&(b(e)&&e.isValid()||bt(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dn(e){return this.from(bt(),e)}function hn(e,t){return this.isValid()&&(b(e)&&e.isValid()||bt(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fn(e){return this.to(bt(),e)}function pn(e){var t;return void 0===e?this._locale._abbr:(t=ot(e),null!=t&&(this._locale=t),this)}function mn(){return this._locale}function gn(e){switch(e=W(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function wn(e){return e=W(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function vn(){return this._d.valueOf()-6e4*(this._offset||0)}function yn(){return Math.floor(this.valueOf()/1e3)}function bn(){return new Date(this.valueOf())}function Cn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _n(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Rn(){return this.isValid()?this.toISOString():null}function Mn(){return m(this)}function Sn(){return d({},p(this))}function En(){return p(this).overflow}function On(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Tn(e,t){K(0,[e,e.length],0,t)}function kn(e){return An.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function xn(e){return An.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Dn(){return Se(this.year(),1,4)}function Hn(){var e=this.localeData()._week;return Se(this.year(),e.dow,e.doy)}function An(e,t,n,o,r){var i;return null==e?Me(this,o,r).year:(i=Se(e,o,r),t>i&&(t=i),Pn.call(this,e,t,n,o,r))}function Pn(e,t,n,o,r){var i=Re(e,t,n,o,r),s=Ce(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Nn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Ln(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function In(e,t){t[cr]=_(1e3*("0."+e))}function Wn(){return this._isUTC?"UTC":""}function jn(){return this._isUTC?"Coordinated Universal Time":""}function Vn(e){return bt(1e3*e)}function Bn(){return bt.apply(null,arguments).parseZone()}function Fn(e){return e}function zn(e,t,n,o){var r=ot(),i=h().set(o,t);return r[n](i,e)}function Yn(e,t,n){if(a(e)&&(t=e,e=void 0),e=e||"",null!=t)return zn(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=zn(e,o,n,"month");return r}function Un(e,t,n,o){"boolean"==typeof e?(a(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,a(t)&&(n=t,t=void 0),t=t||"");var r=ot(),i=e?r._week.dow:0;if(null!=n)return zn(t,(n+i)%7,o,"day");var s,l=[];for(s=0;s<7;s++)l[s]=zn(t,(s+i)%7,o,"day");return l}function Gn(e,t){return Yn(e,t,"months")}function $n(e,t){return Yn(e,t,"monthsShort")}function Kn(e,t,n){return Un(e,t,n,"weekdays")}function Xn(e,t,n){return Un(e,t,n,"weekdaysShort")}function qn(e,t,n){return Un(e,t,n,"weekdaysMin")}function Zn(){var e=this._data;return this._milliseconds=ti(this._milliseconds),this._days=ti(this._days),this._months=ti(this._months),e.milliseconds=ti(e.milliseconds),e.seconds=ti(e.seconds),e.minutes=ti(e.minutes),e.hours=ti(e.hours),e.months=ti(e.months),e.years=ti(e.years),this}function Jn(e,t,n,o){var r=Ft(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function Qn(e,t){return Jn(this,e,t,1)}function eo(e,t){return Jn(this,e,t,-1)}function to(e){return e<0?Math.floor(e):Math.ceil(e)}function no(){var e,t,n,o,r,i=this._milliseconds,s=this._days,a=this._months,l=this._data;return i>=0&&s>=0&&a>=0||i<=0&&s<=0&&a<=0||(i+=864e5*to(ro(a)+s),s=0,a=0),l.milliseconds=i%1e3,e=C(i/1e3),l.seconds=e%60,t=C(e/60),l.minutes=t%60,n=C(t/60),l.hours=n%24,s+=C(n/24),r=C(oo(s)),a+=r,s-=to(ro(r)),o=C(a/12),a%=12,l.days=s,l.months=a,l.years=o,this}function oo(e){return 4800*e/146097}function ro(e){return 146097*e/4800}function io(e){var t,n,o=this._milliseconds;if(e=W(e),"month"===e||"year"===e)return t=this._days+o/864e5,n=this._months+oo(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ro(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}}function so(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12)}function ao(e){return function(){return this.as(e)}}function lo(e){return e=W(e),this[e+"s"]()}function uo(e){return function(){return this._data[e]}}function co(){return C(this.days()/7)}function ho(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function fo(e,t,n){var o=Ft(e).abs(),r=wi(o.as("s")),i=wi(o.as("m")),s=wi(o.as("h")),a=wi(o.as("d")),l=wi(o.as("M")),u=wi(o.as("y")),c=r<vi.s&&["s",r]||i<=1&&["m"]||i<vi.m&&["mm",i]||s<=1&&["h"]||s<vi.h&&["hh",s]||a<=1&&["d"]||a<vi.d&&["dd",a]||l<=1&&["M"]||l<vi.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,ho.apply(null,c)}function po(e){return void 0===e?wi:"function"==typeof e&&(wi=e,!0)}function mo(e,t){return void 0!==vi[e]&&(void 0===t?vi[e]:(vi[e]=t,!0))}function go(e){var t=this.localeData(),n=fo(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function wo(){var e,t,n,o=yi(this._milliseconds)/1e3,r=yi(this._days),i=yi(this._months);e=C(o/60),t=C(e/60),o%=60,e%=60,n=C(i/12),i%=12;var s=n,a=i,l=r,u=t,c=e,d=o,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(s?s+"Y":"")+(a?a+"M":"")+(l?l+"D":"")+(u||c||d?"T":"")+(u?u+"H":"")+(c?c+"M":"")+(d?d+"S":""):"P0D"}var vo,yo;yo=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var bo=yo,Co=e.momentProperties=[],_o=!1,Ro={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var Mo;Mo=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};var So,Eo=Mo,Oo={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},To={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},ko="Invalid date",xo="%d",Do=/\d{1,2}/,Ho={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Ao={},Po={},No=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Lo=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Io={},Wo={},jo=/\d/,Vo=/\d\d/,Bo=/\d{3}/,Fo=/\d{4}/,zo=/[+-]?\d{6}/,Yo=/\d\d?/,Uo=/\d\d\d\d?/,Go=/\d\d\d\d\d\d?/,$o=/\d{1,3}/,Ko=/\d{1,4}/,Xo=/[+-]?\d{1,6}/,qo=/\d+/,Zo=/[+-]?\d+/,Jo=/Z|[+-]\d\d:?\d\d/gi,Qo=/Z|[+-]\d\d(?::?\d\d)?/gi,er=/[+-]?\d+(\.\d{1,3})?/,tr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,nr={},or={},rr=0,ir=1,sr=2,ar=3,lr=4,ur=5,cr=6,dr=7,hr=8;So=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};var fr=So;K("M",["MM",2],"Mo",function(){return this.month()+1}),K("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),K("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),V("month",8),Q("M",Yo),Q("MM",Yo,Vo),Q("MMM",function(e,t){return t.monthsShortRegex(e)}),Q("MMMM",function(e,t){return t.monthsRegex(e)}),oe(["M","MM"],function(e,t){t[ir]=_(e)-1}),oe(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);null!=r?t[ir]=r:p(n).invalidMonth=e});var pr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,mr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),gr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),wr=tr,vr=tr;K("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),K(0,["YY",2],0,function(){return this.year()%100}),K(0,["YYYY",4],0,"year"),K(0,["YYYYY",5],0,"year"),K(0,["YYYYYY",6,!0],0,"year"),I("year","y"),V("year",1),Q("Y",Zo),Q("YY",Yo,Vo),Q("YYYY",Ko,Fo),Q("YYYYY",Xo,zo),Q("YYYYYY",Xo,zo),oe(["YYYYY","YYYYYY"],rr),oe("YYYY",function(t,n){n[rr]=2===t.length?e.parseTwoDigitYear(t):_(t)}),oe("YY",function(t,n){n[rr]=e.parseTwoDigitYear(t)}),oe("Y",function(e,t){t[rr]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return _(e)+(_(e)>68?1900:2e3)};var yr=F("FullYear",!0);K("w",["ww",2],"wo","week"),K("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),V("week",5),V("isoWeek",5),Q("w",Yo),Q("ww",Yo,Vo),Q("W",Yo),Q("WW",Yo,Vo),re(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=_(e)});var br={dow:0,doy:6};K("d",0,"do","day"),K("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),K("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),K("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),K("e",0,0,"weekday"),K("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),Q("d",Yo),Q("e",Yo),Q("E",Yo),Q("dd",function(e,t){return t.weekdaysMinRegex(e)}),Q("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Q("dddd",function(e,t){return t.weekdaysRegex(e)}),re(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),re(["d","e","E"],function(e,t,n,o){t[o]=_(e)});var Cr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),_r="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mr=tr,Sr=tr,Er=tr;K("H",["HH",2],0,"hour"),K("h",["hh",2],0,Ue),K("k",["kk",2],0,Ge),K("hmm",0,0,function(){return""+Ue.apply(this)+$(this.minutes(),2)}),K("hmmss",0,0,function(){return""+Ue.apply(this)+$(this.minutes(),2)+$(this.seconds(),2)}),K("Hmm",0,0,function(){return""+this.hours()+$(this.minutes(),2)}),K("Hmmss",0,0,function(){return""+this.hours()+$(this.minutes(),2)+$(this.seconds(),2)}),$e("a",!0),$e("A",!1),I("hour","h"),V("hour",13),Q("a",Ke),Q("A",Ke),Q("H",Yo),Q("h",Yo),Q("HH",Yo,Vo),Q("hh",Yo,Vo),Q("hmm",Uo),Q("hmmss",Go),Q("Hmm",Uo),Q("Hmmss",Go),oe(["H","HH"],ar),oe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),oe(["h","hh"],function(e,t,n){t[ar]=_(e),p(n).bigHour=!0}),oe("hmm",function(e,t,n){var o=e.length-2;t[ar]=_(e.substr(0,o)),t[lr]=_(e.substr(o)),p(n).bigHour=!0}),oe("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[ar]=_(e.substr(0,o)),t[lr]=_(e.substr(o,2)),t[ur]=_(e.substr(r)),p(n).bigHour=!0}),oe("Hmm",function(e,t,n){var o=e.length-2;t[ar]=_(e.substr(0,o)),t[lr]=_(e.substr(o))}),oe("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[ar]=_(e.substr(0,o)),t[lr]=_(e.substr(o,2)),t[ur]=_(e.substr(r))});var Or,Tr=/[ap]\.?m?\.?/i,kr=F("Hours",!0),xr={calendar:Oo,longDateFormat:To,invalidDate:ko,ordinal:xo,ordinalParse:Do,relativeTime:Ho,months:mr,monthsShort:gr,week:br,weekdays:Cr,weekdaysMin:Rr,weekdaysShort:_r,meridiemParse:Tr},Dr={},Hr={},Ar=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Pr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Nr=/Z|[+-]\d\d(?::?\d\d)?/,Lr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ir=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Wr=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=S("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){};var jr=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Vr=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}),Br=function(){return Date.now?Date.now():+new Date};Ot("Z",":"),Ot("ZZ",""),Q("Z",Qo),Q("ZZ",Qo),oe(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Tt(Qo,e)});var Fr=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var zr=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Yr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ft.fn=Mt.prototype;var Ur=Gt(1,"add"),Gr=Gt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $r=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});K(0,["gg",2],0,function(){return this.weekYear()%100}),K(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Tn("gggg","weekYear"),Tn("ggggg","weekYear"),Tn("GGGG","isoWeekYear"),Tn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),Q("G",Zo),Q("g",Zo),Q("GG",Yo,Vo),Q("gg",Yo,Vo),Q("GGGG",Ko,Fo),Q("gggg",Ko,Fo),Q("GGGGG",Xo,zo),Q("ggggg",Xo,zo),re(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=_(e)}),re(["gg","GG"],function(t,n,o,r){n[r]=e.parseTwoDigitYear(t)}),K("Q",0,"Qo","quarter"),I("quarter","Q"),V("quarter",7),Q("Q",jo),oe("Q",function(e,t){t[ir]=3*(_(e)-1)}),K("D",["DD",2],"Do","date"),I("date","D"),V("date",9),Q("D",Yo),Q("DD",Yo,Vo),Q("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),oe(["D","DD"],sr),oe("Do",function(e,t){t[sr]=_(e.match(Yo)[0],10)});var Kr=F("Date",!0);K("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),V("dayOfYear",4),Q("DDD",$o),Q("DDDD",Bo),oe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=_(e)}),K("m",["mm",2],0,"minute"),I("minute","m"),V("minute",14),Q("m",Yo),Q("mm",Yo,Vo),oe(["m","mm"],lr);var Xr=F("Minutes",!1);K("s",["ss",2],0,"second"),I("second","s"),V("second",15),Q("s",Yo),Q("ss",Yo,Vo),oe(["s","ss"],ur);var qr=F("Seconds",!1);K("S",0,0,function(){return~~(this.millisecond()/100)}),K(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),K(0,["SSS",3],0,"millisecond"),K(0,["SSSS",4],0,function(){return 10*this.millisecond()}),K(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),K(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),K(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),K(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),K(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),V("millisecond",16),Q("S",$o,jo),Q("SS",$o,Vo),Q("SSS",$o,Bo);var Zr;for(Zr="SSSS";Zr.length<=9;Zr+="S")Q(Zr,qo);for(Zr="S";Zr.length<=9;Zr+="S")oe(Zr,In);var Jr=F("Milliseconds",!1);K("z",0,0,"zoneAbbr"),K("zz",0,0,"zoneName");var Qr=y.prototype;Qr.add=Ur,Qr.calendar=Xt,Qr.clone=qt,Qr.diff=on,Qr.endOf=wn,Qr.format=un,Qr.from=cn,Qr.fromNow=dn,Qr.to=hn,Qr.toNow=fn,Qr.get=U,Qr.invalidAt=En,Qr.isAfter=Zt,Qr.isBefore=Jt,Qr.isBetween=Qt,Qr.isSame=en,Qr.isSameOrAfter=tn,Qr.isSameOrBefore=nn,Qr.isValid=Mn,Qr.lang=$r,Qr.locale=pn,Qr.localeData=mn,Qr.max=Vr,Qr.min=jr,Qr.parsingFlags=Sn,Qr.set=G,Qr.startOf=gn,Qr.subtract=Gr,Qr.toArray=Cn,Qr.toObject=_n,Qr.toDate=bn,Qr.toISOString=an,Qr.inspect=ln,Qr.toJSON=Rn,Qr.toString=sn,Qr.unix=yn,Qr.valueOf=vn,Qr.creationData=On,Qr.year=yr,Qr.isLeapYear=ye,Qr.weekYear=kn,Qr.isoWeekYear=xn,Qr.quarter=Qr.quarters=Nn,Qr.month=he,Qr.daysInMonth=fe,Qr.week=Qr.weeks=ke,Qr.isoWeek=Qr.isoWeeks=xe,Qr.weeksInYear=Hn,Qr.isoWeeksInYear=Dn,Qr.date=Kr,Qr.day=Qr.days=We,Qr.weekday=je,Qr.isoWeekday=Ve,Qr.dayOfYear=Ln,Qr.hour=Qr.hours=kr,Qr.minute=Qr.minutes=Xr,Qr.second=Qr.seconds=qr,Qr.millisecond=Qr.milliseconds=Jr,Qr.utcOffset=Dt,Qr.utc=At,Qr.local=Pt,Qr.parseZone=Nt,Qr.hasAlignedHourOffset=Lt,Qr.isDST=It,Qr.isLocal=jt,Qr.isUtcOffset=Vt,Qr.isUtc=Bt,Qr.isUTC=Bt,Qr.zoneAbbr=Wn,Qr.zoneName=jn,Qr.dates=S("dates accessor is deprecated. Use date instead.",Kr),Qr.months=S("months accessor is deprecated. Use month instead",he),Qr.years=S("years accessor is deprecated. Use year instead",yr),Qr.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ht),Qr.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Wt);var ei=x.prototype;ei.calendar=D,ei.longDateFormat=H,ei.invalidDate=A,ei.ordinal=P,ei.preparse=Fn,ei.postformat=Fn,ei.relativeTime=N,ei.pastFuture=L,ei.set=T,ei.months=ae,ei.monthsShort=le,ei.monthsParse=ce,ei.monthsRegex=me,ei.monthsShortRegex=pe,ei.week=Ee,ei.firstDayOfYear=Te,ei.firstDayOfWeek=Oe,ei.weekdays=Ae,ei.weekdaysMin=Ne,ei.weekdaysShort=Pe,ei.weekdaysParse=Ie,ei.weekdaysRegex=Be,ei.weekdaysShortRegex=Fe,ei.weekdaysMinRegex=ze,ei.isPM=Xe,ei.meridiem=qe,et("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===_(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),e.lang=S("moment.lang is deprecated. Use moment.locale instead.",et),e.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ot);var ti=Math.abs,ni=ao("ms"),oi=ao("s"),ri=ao("m"),ii=ao("h"),si=ao("d"),ai=ao("w"),li=ao("M"),ui=ao("y"),ci=uo("milliseconds"),di=uo("seconds"),hi=uo("minutes"),fi=uo("hours"),pi=uo("days"),mi=uo("months"),gi=uo("years"),wi=Math.round,vi={s:45,m:45,h:22,d:26,M:11},yi=Math.abs,bi=Mt.prototype;return bi.abs=Zn,bi.add=Qn,bi.subtract=eo,bi.as=io,bi.asMilliseconds=ni,bi.asSeconds=oi,bi.asMinutes=ri,bi.asHours=ii,bi.asDays=si,bi.asWeeks=ai,bi.asMonths=li,bi.asYears=ui,bi.valueOf=so,bi._bubble=no,bi.get=lo,bi.milliseconds=ci,bi.seconds=di,bi.minutes=hi,bi.hours=fi,bi.days=pi,bi.weeks=co,bi.months=mi,bi.years=gi,bi.humanize=go,bi.toISOString=wo,bi.toString=wo,bi.toJSON=wo,bi.locale=pn,bi.localeData=mn,bi.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",wo),bi.lang=$r,K("X",0,0,"unix"),K("x",0,0,"valueOf"),Q("x",Zo),Q("X",er),oe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),oe("x",function(e,t,n){n._d=new Date(_(e))}),e.version="2.17.1",o(bt),e.fn=Qr,e.min=_t,e.max=Rt,e.now=Br,e.utc=h,e.unix=Vn,e.months=Gn,e.isDate=l,e.locale=et,e.invalid=g,e.duration=Ft,e.isMoment=b,e.weekdays=Kn,e.parseZone=Bn,e.localeData=ot,e.isDuration=St,e.monthsShort=$n,e.weekdaysMin=qn,e.defineLocale=tt,e.updateLocale=nt,e.locales=rt,e.weekdaysShort=Xn,e.normalizeUnits=W,e.relativeTimeRounding=po,e.relativeTimeThreshold=mo,e.calendarFormat=Kt,e.prototype=Qr,e})},{}],numbro:[function(t,n,o){/*!
* numbro.js
* version : 1.9.3
* author : Företagsplatsen AB
* license : MIT
* http://www.foretagsplatsen.se
*/
(function(){"use strict";function o(e){this._value=e}function r(e){var t,n="";for(t=0;t<e;t++)n+="0";return n}function i(e,t){var n,o,i,s,a,l,u,c;return c=e.toString(),n=c.split("e")[0],s=c.split("e")[1],o=n.split(".")[0],i=n.split(".")[1]||"",+s>0?c=o+i+r(s-i.length):(a=+o<0?"-0":"0",t>0&&(a+="."),u=r(-1*s-1),l=(u+Math.abs(o)+i).substr(0,t),c=a+l),+s>0&&t>0&&(c+="."+r(t)),c}function s(e,t,n,o){var r,s,a=Math.pow(10,t);return e.toString().indexOf("e")>-1?(s=i(e,t),"-"===s.charAt(0)&&+s>=0&&(s=s.substr(1))):s=(n(e+"e+"+t)/a).toFixed(t),o&&(r=new RegExp("0{1,"+o+"}$"),s=s.replace(r,"")),s}function a(e,t,n){var o,r=t.replace(/\{[^\{\}]*\}/g,"");return o=r.indexOf("$")>-1?u(e,O[k].currency.symbol,t,n):r.indexOf("%")>-1?d(e,t,n):r.indexOf(":")>-1?h(e,t):m(e._value,t,n)}function l(e,t){var n,o,r,i,s,a=t,l=!1;if(t.indexOf(":")>-1)e._value=f(t);else if(t===x)e._value=0;else{for("."!==O[k].delimiters.decimal&&(t=t.replace(/\./g,"").replace(O[k].delimiters.decimal,".")),n=new RegExp("[^a-zA-Z]"+O[k].abbreviations.thousand+"(?:\\)|(\\"+O[k].currency.symbol+")?(?:\\))?)?$"),o=new RegExp("[^a-zA-Z]"+O[k].abbreviations.million+"(?:\\)|(\\"+O[k].currency.symbol+")?(?:\\))?)?$"),r=new RegExp("[^a-zA-Z]"+O[k].abbreviations.billion+"(?:\\)|(\\"+O[k].currency.symbol+")?(?:\\))?)?$"),i=new RegExp("[^a-zA-Z]"+O[k].abbreviations.trillion+"(?:\\)|(\\"+O[k].currency.symbol+")?(?:\\))?)?$"),s=1;s<R.length&&!l;++s)t.indexOf(R[s])>-1?l=Math.pow(1024,s):t.indexOf(M[s])>-1&&(l=Math.pow(1e3,s));var u=t.replace(/[^0-9\.]+/g,"");""===u?e._value=NaN:(e._value=(l?l:1)*(a.match(n)?Math.pow(10,3):1)*(a.match(o)?Math.pow(10,6):1)*(a.match(r)?Math.pow(10,9):1)*(a.match(i)?Math.pow(10,12):1)*(t.indexOf("%")>-1?.01:1)*((t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1)*Number(u),e._value=l?Math.ceil(e._value):e._value)}return e._value}function u(e,t,n,o){var r,i,s=n,a=s.indexOf("$"),l=s.indexOf("("),u=s.indexOf("+"),c=s.indexOf("-"),d="",h="";if(s.indexOf("$")===-1?"infix"===O[k].currency.position?(h=t,O[k].currency.spaceSeparated&&(h=" "+h+" ")):O[k].currency.spaceSeparated&&(d=" "):s.indexOf(" $")>-1?(d=" ",s=s.replace(" $","")):s.indexOf("$ ")>-1?(d=" ",s=s.replace("$ ","")):s=s.replace("$",""),i=m(e._value,s,o,h),n.indexOf("$")===-1)switch(O[k].currency.position){case"postfix":i.indexOf(")")>-1?(i=i.split(""),i.splice(-1,0,d+t),i=i.join("")):i=i+d+t;break;case"infix":break;case"prefix":i.indexOf("(")>-1||i.indexOf("-")>-1?(i=i.split(""),r=Math.max(l,c)+1,i.splice(r,0,t+d),i=i.join("")):i=t+d+i;break;default:throw Error('Currency position should be among ["prefix", "infix", "postfix"]')}else a<=1?i.indexOf("(")>-1||i.indexOf("+")>-1||i.indexOf("-")>-1?(i=i.split(""),r=1,(a<l||a<u||a<c)&&(r=0),i.splice(r,0,t+d),i=i.join("")):i=t+d+i:i.indexOf(")")>-1?(i=i.split(""),i.splice(-1,0,d+t),i=i.join("")):i=i+d+t;return i}function c(e,t,n,o){return u(e,t,n,o)}function d(e,t,n){var o,r="",i=100*e._value;return t.indexOf(" %")>-1?(r=" ",t=t.replace(" %","")):t=t.replace("%",""),o=m(i,t,n),o.indexOf(")")>-1?(o=o.split(""),o.splice(-1,0,r+"%"),o=o.join("")):o=o+r+"%",o}function h(e){var t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),o=Math.round(e._value-60*t*60-60*n);return t+":"+(n<10?"0"+n:n)+":"+(o<10?"0"+o:o)}function f(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}function p(e,t,n){var o,r,i,s=t[0],a=Math.abs(e);if(a>=n){for(o=1;o<t.length;++o)if(r=Math.pow(n,o),i=Math.pow(n,o+1),a>=r&&a<i){s=t[o],e/=r;break}s===t[0]&&(e/=Math.pow(n,t.length-1),s=t[t.length-1])}return{value:e,suffix:s}}function m(e,t,n,o){var i,a,l,u,c,d,h,f,m,g,w,v,y,b,C,_,R,M=!1,S=!1,T=!1,D="",H=!1,A=!1,P=!1,N=!1,L=!1,I="",W="",j=Math.abs(e),V="",B=!1,F=!1,z="";if(0===e&&null!==x)return x;if(!isFinite(e))return""+e;if(0===t.indexOf("{")){var Y=t.indexOf("}");if(Y===-1)throw Error('Format should also contain a "}"');g=t.slice(1,Y),t=t.slice(Y+1)}else g="";if(t.indexOf("}")===t.length-1){var U=t.indexOf("{");if(U===-1)throw Error('Format should also contain a "{"');w=t.slice(U+1,-1),t=t.slice(0,U+1)}else w="";var G;for(G=t.indexOf(".")===-1?t.match(/([0-9]+).*/):t.match(/([0-9]+)\..*/),_=null===G?-1:G[1].length,t.indexOf("-")!==-1&&(B=!0),t.indexOf("(")>-1?(M=!0,t=t.slice(1,-1)):t.indexOf("+")>-1&&(S=!0,t=t.replace(/\+/g,"")),t.indexOf("a")>-1&&(f=t.split(".")[0].match(/[0-9]+/g)||["0"],f=parseInt(f[0],10),H=t.indexOf("aK")>=0,A=t.indexOf("aM")>=0,P=t.indexOf("aB")>=0,N=t.indexOf("aT")>=0,L=H||A||P||N,t.indexOf(" a")>-1?(D=" ",t=t.replace(" a","")):t=t.replace("a",""),l=Math.floor(Math.log(j)/Math.LN10)+1,c=l%3,c=0===c?3:c,f&&0!==j&&(u=Math.floor(Math.log(j)/Math.LN10)+1-f,d=3*~~((Math.min(f,l)-c)/3),j/=Math.pow(10,d),t.indexOf(".")===-1&&f>3&&(t+="[.]",b=0===u?0:3*~~(u/3)-u,b=b<0?b+3:b,t+=r(b))),Math.floor(Math.log(Math.abs(e))/Math.LN10)+1!==f&&(j>=Math.pow(10,12)&&!L||N?(D+=O[k].abbreviations.trillion,e/=Math.pow(10,12)):j<Math.pow(10,12)&&j>=Math.pow(10,9)&&!L||P?(D+=O[k].abbreviations.billion,e/=Math.pow(10,9)):j<Math.pow(10,9)&&j>=Math.pow(10,6)&&!L||A?(D+=O[k].abbreviations.million,e/=Math.pow(10,6)):(j<Math.pow(10,6)&&j>=Math.pow(10,3)&&!L||H)&&(D+=O[k].abbreviations.thousand,e/=Math.pow(10,3)))),R=0;R<E.length;++R)if(i=E[R],t.indexOf(i.marker)>-1){t.indexOf(" "+i.marker)>-1&&(I=" "),t=t.replace(I+i.marker,""),a=p(e,i.suffixes,i.scale),e=a.value,I+=a.suffix;break}if(t.indexOf("o")>-1&&(t.indexOf(" o")>-1?(W=" ",t=t.replace(" o","")):t=t.replace("o",""),O[k].ordinal&&(W+=O[k].ordinal(e))),t.indexOf("[.]")>-1&&(T=!0,t=t.replace("[.]",".")),h=e.toString().split(".")[0],m=t.split(".")[1],v=t.indexOf(","),m){if(m.indexOf("*")!==-1?V=s(e,e.toString().split(".")[1].length,n):m.indexOf("[")>-1?(m=m.replace("]",""),m=m.split("["),V=s(e,m[0].length+m[1].length,n,m[1].length)):V=s(e,m.length,n),h=V.split(".")[0],V.split(".")[1].length){var $=o?D+o:O[k].delimiters.decimal;V=$+V.split(".")[1]}else V="";T&&0===Number(V.slice(1))&&(V="")}else h=s(e,0,n);return h.indexOf("-")>-1&&(h=h.slice(1),F=!0),h.length<_&&(h=r(_-h.length)+h),v>-1&&(h=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+O[k].delimiters.thousands)),0===t.indexOf(".")&&(h=""),y=t.indexOf("("),C=t.indexOf("-"),z=y<C?(M&&F?"(":"")+(B&&F||!M&&F?"-":""):(B&&F||!M&&F?"-":"")+(M&&F?"(":""),g+z+(!F&&S&&0!==e?"+":"")+h+V+(W?W:"")+(D&&!o?D:"")+(I?I:"")+(M&&F?")":"")+w}function g(e,t){O[e]=t}function w(e){k=e;var t=O[e].defaults;t&&t.format&&C.defaultFormat(t.format),t&&t.currencyFormat&&C.defaultCurrencyFormat(t.currencyFormat)}function v(){return"undefined"!=typeof process&&void 0===process.browser&&process.title&&(0===process.title.indexOf("node")||process.title.indexOf("meteor-tool")>0||"grunt"===process.title||"gulp"===process.title)&&"undefined"!=typeof t}function y(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)}function b(){var e=Array.prototype.slice.call(arguments);return e.reduce(function(e,t){var n=y(e),o=y(t);return n>o?n:o},-(1/0))}var C,_="1.9.3",R=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],M=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],S={general:{scale:1024,suffixes:M,marker:"bd"},binary:{scale:1024,suffixes:R,marker:"b"},decimal:{scale:1e3,suffixes:M,marker:"d"}},E=[S.general,S.binary,S.decimal],O={},T=O,k="en-US",x=null,D="0,0",H="0$",A="undefined"!=typeof n&&n.exports,P={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00"}};C=function(e){return C.isNumbro(e)?e=e.value():0===e||"undefined"==typeof e?e=0:Number(e)||(e=C.fn.unformat(e)),new o(Number(e))},C.version=_,C.isNumbro=function(e){return e instanceof o},C.setLanguage=function(e,t){console.warn("`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead");var n=e,o=e.split("-")[0],r=null;T[n]||(Object.keys(T).forEach(function(e){r||e.split("-")[0]!==o||(r=e)}),n=r||t||"en-US"),w(n)},C.setCulture=function(e,t){var n=e,o=e.split("-")[1],r=null;O[n]||(o&&Object.keys(O).forEach(function(e){r||e.split("-")[1]!==o||(r=e)}),n=r||t||"en-US"),w(n)},C.language=function(e,t){if(console.warn("`language` is deprecated since version 1.6.0. Use `culture` instead"),!e)return k;if(e&&!t){if(!T[e])throw new Error("Unknown language : "+e);w(e)}return!t&&T[e]||g(e,t),C},C.culture=function(e,t){if(!e)return k;if(e&&!t){if(!O[e])throw new Error("Unknown culture : "+e);w(e)}return!t&&O[e]||g(e,t),C},C.languageData=function(e){if(console.warn("`languageData` is deprecated since version 1.6.0. Use `cultureData` instead"),!e)return T[k];if(!T[e])throw new Error("Unknown language : "+e);return T[e]},C.cultureData=function(e){if(!e)return O[k];if(!O[e])throw new Error("Unknown culture : "+e);return O[e]},C.culture("en-US",P),C.languages=function(){return console.warn("`languages` is deprecated since version 1.6.0. Use `cultures` instead"),T},C.cultures=function(){return O},C.zeroFormat=function(e){x="string"==typeof e?e:null},C.defaultFormat=function(e){D="string"==typeof e?e:"0.0"},C.defaultCurrencyFormat=function(e){H="string"==typeof e?e:"0$"},C.validate=function(e,t){var n,o,r,i,s,a,l,u;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numbro.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),e=e.replace(/^[+-]?/,""),e.match(/^\d+$/))return!0;if(""===e)return!1;try{l=C.cultureData(t)}catch(e){l=C.cultureData(C.culture())}return r=l.currency.symbol,s=l.abbreviations,n=l.delimiters.decimal,o="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,u=e.match(/^[^\d\.\,]+/),(null===u||(e=e.substr(1),u[0]===r))&&(u=e.match(/[^\d]+$/),(null===u||(e=e.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(a=new RegExp(o+"{2}"),!e.match(/[^\d.,]/g)&&(i=e.split(n),!(i.length>2)&&(i.length<2?!!i[0].match(/^\d+.*\d$/)&&!i[0].match(a):""===i[0]?!i[0].match(a)&&!!i[1].match(/^\d+$/):1===i[0].length?!!i[0].match(/^\d+$/)&&!i[0].match(a)&&!!i[1].match(/^\d+$/):!!i[0].match(/^\d+.*\d$/)&&!i[0].match(a)&&!!i[1].match(/^\d+$/)))))},C.loadLanguagesInNode=function(){console.warn("`loadLanguagesInNode` is deprecated since version 1.6.0. Use `loadCulturesInNode` instead"),C.loadCulturesInNode()},C.loadCulturesInNode=function(){var e=t("./languages");for(var n in e)n&&C.culture(n,e[n])},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(e,t){if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var n,o,r=this.length>>>0,i=!1;for(1<arguments.length&&(o=t,i=!0),n=0;r>n;++n)this.hasOwnProperty(n)&&(i?o=e(o,this[n],n,this):(o=this[n],i=!0));if(!i)throw new TypeError("Reduce of empty array with no initial value");return o}),C.fn=o.prototype={clone:function(){return C(this)},format:function(e,t){return a(this,e?e:D,void 0!==t?t:Math.round)},formatCurrency:function(e,t){return u(this,O[k].currency.symbol,e?e:H,void 0!==t?t:Math.round)},formatForeignCurrency:function(e,t,n){return c(this,e,t?t:H,void 0!==n?n:Math.round)},unformat:function(e){if("number"==typeof e)return e;if("string"==typeof e){var t=l(this,e);return isNaN(t)?void 0:t}},binaryByteUnits:function(){return p(this._value,S.binary.suffixes,S.binary.scale).suffix},byteUnits:function(){return p(this._value,S.general.suffixes,S.general.scale).suffix},decimalByteUnits:function(){return p(this._value,S.decimal.suffixes,S.decimal.scale).suffix},value:function(){return this._value},valueOf:function(){return this._value},set:function(e){return this._value=Number(e),this},add:function(e){function t(e,t){return e+n*t}var n=b.call(null,this._value,e);return this._value=[this._value,e].reduce(t,0)/n,this},subtract:function(e){function t(e,t){return e-n*t}var n=b.call(null,this._value,e);return this._value=[e].reduce(t,this._value*n)/n,this},multiply:function(e){function t(e,t){var n=b(e,t),o=e*n;return o*=t*n,o/=n*n}return this._value=[this._value,e].reduce(t,1),this},divide:function(e){function t(e,t){var n=b(e,t);return e*n/(t*n)}return this._value=[this._value,e].reduce(t),this},difference:function(e){return Math.abs(C(this._value).subtract(e).value())}},v()&&C.loadCulturesInNode(),A?n.exports=C:("undefined"==typeof ender&&(this.numbro=C),"function"==typeof e&&e.amd&&e([],function(){return C}))}).call("undefined"==typeof window?this:window)},{languages:1}],pikaday:[function(t,n,o){/*!
* Pikaday
*
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
*/
!function(r,i){"use strict";var s;if("object"==typeof o){try{s=t("moment")}catch(e){}n.exports=i(s)}else"function"==typeof e&&e.amd?e(function(e){var t="moment";try{s=e(t)}catch(e){}return i(s)}):r.Pikaday=i(r.moment)}(this,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,o=window.document,r=window.setTimeout,i=function(e,t,o,r){n?e.addEventListener(t,o,!!r):e.attachEvent("on"+t,o)},s=function(e,t,o,r){n?e.removeEventListener(t,o,!!r):e.detachEvent("on"+t,o)},a=function(e,t,n){var r;o.createEvent?(r=o.createEvent("HTMLEvents"),r.initEvent(t,!0,!1),r=y(r,n),e.dispatchEvent(r)):o.createEventObject&&(r=o.createEventObject(),r=y(r,n),e.fireEvent("on"+t,r))},l=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},u=function(e,t){return(" "+e.className+" ").indexOf(" "+t+" ")!==-1},c=function(e,t){u(e,t)||(e.className=""===e.className?t:e.className+" "+t)},d=function(e,t){e.className=l((" "+e.className+" ").replace(" "+t+" "," "))},h=function(e){return/Array/.test(Object.prototype.toString.call(e))},f=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},p=function(e){var t=e.getDay();return 0===t||6===t},m=function(e){return e%4===0&&e%100!==0||e%400===0},g=function(e,t){return[31,m(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},w=function(e){f(e)&&e.setHours(0,0,0,0)},v=function(e,t){return e.getTime()===t.getTime()},y=function(e,t,n){var o,r;for(o in t)r=void 0!==e[o],r&&"object"==typeof t[o]&&null!==t[o]&&void 0===t[o].nodeName?f(t[o])?n&&(e[o]=new Date(t[o].getTime())):h(t[o])?n&&(e[o]=t[o].slice(0)):e[o]=y({},t[o],n):!n&&r||(e[o]=t[o]);return e},b=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},C={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},_=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},R=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},M=function(e,t,n){var o=new Date(n,0,1),r=Math.ceil(((new Date(n,t,e)-o)/864e5+o.getDay()+1)/7);return'<td class="pika-week">'+r+"</td>"},S=function(e,t){return"<tr>"+(t?e.reverse():e).join("")+"</tr>"},E=function(e){return"<tbody>"+e.join("")+"</tbody>"},O=function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+_(e,t)+'">'+_(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"},T=function(e,t,n,o,r,i){var s,a,l,u,c,d=e._o,f=n===d.minYear,p=n===d.maxYear,m='<div id="'+i+'" class="pika-title" role="heading" aria-live="assertive">',g=!0,w=!0;for(l=[],s=0;s<12;s++)l.push('<option value="'+(n===r?s-t:12+s-t)+'"'+(s===o?' selected="selected"':"")+(f&&s<d.minMonth||p&&s>d.maxMonth?'disabled="disabled"':"")+">"+d.i18n.months[s]+"</option>");for(u='<div class="pika-label">'+d.i18n.months[o]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",h(d.yearRange)?(s=d.yearRange[0],a=d.yearRange[1]+1):(s=n-d.yearRange,a=1+n+d.yearRange),l=[];s<a&&s<=d.maxYear;s++)s>=d.minYear&&l.push('<option value="'+s+'"'+(s===n?' selected="selected"':"")+">"+s+"</option>");return c='<div class="pika-label">'+n+d.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",m+=d.showMonthAfterYear?c+u:u+c,f&&(0===o||d.minMonth>=o)&&(g=!1),p&&(11===o||d.maxMonth<=o)&&(w=!1),0===t&&(m+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+d.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(m+='<button class="pika-next'+(w?"":" is-disabled")+'" type="button">'+d.i18n.nextMonth+"</button>"),m+="</div>"},k=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+O(e)+E(t)+"</table>"},x=function(s){var a=this,l=a.config(s);a._onMouseDown=function(e){if(a._v){e=e||window.event;var t=e.target||e.srcElement;if(t)if(u(t,"is-disabled")||(!u(t,"pika-button")||u(t,"is-empty")||u(t.parentNode,"is-disabled")?u(t,"pika-prev")?a.prevMonth():u(t,"pika-next")&&a.nextMonth():(a.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),l.bound&&r(function(){a.hide(),l.field&&l.field.blur()},100))),u(t,"pika-select"))a._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},a._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;t&&(u(t,"pika-select-month")?a.gotoMonth(t.value):u(t,"pika-select-year")&&a.gotoYear(t.value))},a._onKeyChange=function(e){if(e=e||window.event,a.isVisible())switch(e.keyCode){case 13:case 27:l.field.blur();break;case 37:e.preventDefault(),a.adjustDate("subtract",1);break;case 38:a.adjustDate("subtract",7);break;case 39:a.adjustDate("add",1);break;case 40:a.adjustDate("add",7)}},a._onInputChange=function(n){var o;n.firedBy!==a&&(t?(o=e(l.field.value,l.format,l.formatStrict),o=o&&o.isValid()?o.toDate():null):o=new Date(Date.parse(l.field.value)),f(o)&&a.setDate(o),a._v||a.show())},a._onInputFocus=function(){a.show()},a._onInputClick=function(){a.show()},a._onInputBlur=function(){var e=o.activeElement;do if(u(e,"pika-single"))return;while(e=e.parentNode);a._c||(a._b=r(function(){a.hide()},50)),a._c=!1},a._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,o=t;if(t){!n&&u(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),i(t,"change",a._onChange)));do if(u(o,"pika-single")||o===l.trigger)return;while(o=o.parentNode);a._v&&t!==l.trigger&&o!==l.trigger&&a.hide()}},a.el=o.createElement("div"),a.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),i(a.el,"mousedown",a._onMouseDown,!0),i(a.el,"touchend",a._onMouseDown,!0),i(a.el,"change",a._onChange),i(o,"keydown",a._onKeyChange),l.field&&(l.container?l.container.appendChild(a.el):l.bound?o.body.appendChild(a.el):l.field.parentNode.insertBefore(a.el,l.field.nextSibling),i(l.field,"change",a._onInputChange),l.defaultDate||(t&&l.field.value?l.defaultDate=e(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var c=l.defaultDate;f(c)?l.setDefaultDate?a.setDate(c,!0):a.gotoDate(c):a.gotoDate(new Date),l.bound?(this.hide(),a.el.className+=" is-bound",i(l.trigger,"click",a._onInputClick),i(l.trigger,"focus",a._onInputFocus),i(l.trigger,"blur",a._onInputBlur)):this.show()};return x.prototype={config:function(e){this._o||(this._o=y({},C,!0));var t=y(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,f(t.minDate)||(t.minDate=!1),f(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),h(t.yearRange)){var o=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||o,t.yearRange[1]=parseInt(t.yearRange[1],10)||o}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||C.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return f(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,o){t&&e.isMoment(n)&&this.setDate(n.toDate(),o)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):new Date},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",a(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),f(e)){var n=this._o.minDate,o=this._o.maxDate;f(n)&&e<n?e=n:f(o)&&e>o&&(e=o),this._d=new Date(e.getTime()),w(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),a(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(f(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),o=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),r=e.getTime();o.setMonth(o.getMonth()+1),o.setDate(o.getDate()-1),t=r<n.getTime()||o.getTime()<r}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(n,o){var r,i=this.getDate(),s=24*parseInt(o)*60*60*1e3;"add"===n?r=new Date(i.valueOf()+s):"subtract"===n&&(r=new Date(i.valueOf()-s)),t&&("add"===n?r=e(i).add(o,"days").toDate():"subtract"===n&&(r=e(i).subtract(o,"days").toDate())),this.setDate(r)},adjustCalendars:function(){this.calendars[0]=b(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=b({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(w(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=C.minDate,this._o.minYear=C.minYear,this._o.minMonth=C.minMonth,this._o.startRange=C.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(w(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=C.maxDate,this._o.maxYear=C.maxYear,this._o.maxMonth=C.maxMonth,this._o.endRange=C.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,o=n.minYear,i=n.maxYear,s=n.minMonth,a=n.maxMonth,l="";this._y<=o&&(this._y=o,!isNaN(s)&&this._m<s&&(this._m=s)),this._y>=i&&(this._y=i,!isNaN(a)&&this._m>a&&(this._m=a)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;u<n.numberOfMonths;u++)l+='<div class="pika-lendar">'+T(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,t)+this.render(this.calendars[u].year,this.calendars[u].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&r(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,r,i,s,a,l,u,c;if(!this._o.container){if(this.el.style.position="absolute",e=this._o.trigger,t=e,n=this.el.offsetWidth,r=this.el.offsetHeight,i=window.innerWidth||o.documentElement.clientWidth,s=window.innerHeight||o.documentElement.clientHeight,a=window.pageYOffset||o.body.scrollTop||o.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)c=e.getBoundingClientRect(),l=c.left+window.pageXOffset,u=c.bottom+window.pageYOffset;else for(l=t.offsetLeft,u=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,u+=t.offsetTop;(this._o.reposition&&l+n>i||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth),(this._o.reposition&&u+r>s+a||this._o.position.indexOf("top")>-1&&u-r-e.offsetHeight>0)&&(u=u-r-e.offsetHeight),this.el.style.left=l+"px",this.el.style.top=u+"px"}},render:function(e,t,n){var o=this._o,r=new Date,i=g(e,t),s=new Date(e,t,1).getDay(),a=[],l=[];w(r),o.firstDay>0&&(s-=o.firstDay,s<0&&(s+=7));for(var u=0===t?11:t-1,c=11===t?0:t+1,d=0===t?e-1:e,h=11===t?e+1:e,m=g(d,u),y=i+s,b=y;b>7;)b-=7;y+=7-b;for(var C=0,_=0;C<y;C++){var E=new Date(e,t,1+(C-s)),O=!!f(this._d)&&v(E,this._d),T=v(E,r),x=C<s||C>=i+s,D=1+(C-s),H=t,A=e,P=o.startRange&&v(o.startRange,E),N=o.endRange&&v(o.endRange,E),L=o.startRange&&o.endRange&&o.startRange<E&&E<o.endRange,I=o.minDate&&E<o.minDate||o.maxDate&&E>o.maxDate||o.disableWeekends&&p(E)||o.disableDayFn&&o.disableDayFn(E);x&&(C<s?(D=m+D,H=u,A=d):(D-=i,H=c,A=h));var W={day:D,month:H,year:A,isSelected:O,isToday:T,isDisabled:I,isEmpty:x,isStartRange:P,isEndRange:N,isInRange:L,showDaysInNextAndPreviousMonths:o.showDaysInNextAndPreviousMonths};l.push(R(W)),7===++_&&(o.showWeekNumber&&l.unshift(M(C-s,t,e)),a.push(S(l,o.isRTL)),l=[],_=0)}return k(o,a,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(d(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(i(o,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;e!==!1&&(this._o.bound&&s(o,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",c(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),s(this.el,"mousedown",this._onMouseDown,!0),s(this.el,"touchend",this._onMouseDown,!0),s(this.el,"change",this._onChange),this._o.field&&(s(this._o.field,"change",this._onInputChange),this._o.bound&&(s(this._o.trigger,"click",this._onInputClick),s(this._o.trigger,"focus",this._onInputFocus),s(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},x})},{moment:"moment"}],zeroclipboard:[function(t,n,o){/*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface
* Copyright (c) 2009-2016 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.3.0
*/
!function(t,o){"use strict";var r,i,s,a=t,l=a.document,u=a.navigator,c=a.setTimeout,d=a.clearTimeout,h=a.setInterval,f=a.clearInterval,p=a.getComputedStyle,m=a.encodeURIComponent,g=a.ActiveXObject,w=a.Error,v=a.Number.parseInt||a.parseInt,y=a.Number.parseFloat||a.parseFloat,b=a.Number.isNaN||a.isNaN,C=a.Date.now,_=a.Object.keys,R=a.Object.prototype.hasOwnProperty,M=a.Array.prototype.slice,S=function(){var e=function(e){return e};if("function"==typeof a.wrap&&"function"==typeof a.unwrap)try{var t=l.createElement("div"),n=a.unwrap(t);1===t.nodeType&&n&&1===n.nodeType&&(e=a.unwrap)}catch(e){}return e}(),E=function(e){return M.call(e,0)},O=function(){var e,t,n,r,i,s,a=E(arguments),l=a[0]||{};for(e=1,t=a.length;e<t;e++)if(null!=(n=a[e]))for(r in n)R.call(n,r)&&(i=l[r],s=n[r],l!==s&&s!==o&&(l[r]=s));return l},T=function(e){var t,n,o,r;if("object"!=typeof e||null==e||"number"==typeof e.nodeType)t=e;else if("number"==typeof e.length)for(t=[],n=0,o=e.length;n<o;n++)R.call(e,n)&&(t[n]=T(e[n]));else{t={};for(r in e)R.call(e,r)&&(t[r]=T(e[r]))}return t},k=function(e,t){for(var n={},o=0,r=t.length;o<r;o++)t[o]in e&&(n[t[o]]=e[t[o]]);return n},x=function(e,t){var n={};for(var o in e)t.indexOf(o)===-1&&(n[o]=e[o]);return n},D=function(e){if(e)for(var t in e)R.call(e,t)&&delete e[t];return e},H=function(e,t){if(e&&1===e.nodeType&&e.ownerDocument&&t&&(1===t.nodeType&&t.ownerDocument&&t.ownerDocument===e.ownerDocument||9===t.nodeType&&!t.ownerDocument&&t===e.ownerDocument))do{if(e===t)return!0;e=e.parentNode}while(e);return!1},A=function(e){var t;return"string"==typeof e&&e&&(t=e.split("#")[0].split("?")[0],t=e.slice(0,e.lastIndexOf("/")+1)),t},P=function(e){var t,n;return"string"==typeof e&&e&&(n=e.match(/^(?:|[^:@]*@|.+\)@(?=http[s]?|file)|.+?\s+(?: at |@)(?:[^:\(]+ )*[\(]?)((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),n&&n[1]?t=n[1]:(n=e.match(/\)@((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),n&&n[1]&&(t=n[1]))),t},N=function(){var e,t;try{throw new w}catch(e){t=e}return t&&(e=t.sourceURL||t.fileName||P(t.stack)),e},L=function(){var e,t,n;if(l.currentScript&&(e=l.currentScript.src))return e;if(t=l.getElementsByTagName("script"),1===t.length)return t[0].src||o;if("readyState"in(t[0]||document.createElement("script")))for(n=t.length;n--;)if("interactive"===t[n].readyState&&(e=t[n].src))return e;return"loading"===l.readyState&&(e=t[t.length-1].src)?e:(e=N())?e:o},I=function(){var e,t,n,r=l.getElementsByTagName("script");for(e=r.length;e--;){if(!(n=r[e].src)){t=null;break}if(n=A(n),null==t)t=n;else if(t!==n){t=null;break}}return t||o},W=function(){var e=A(L())||I()||"";return e+"ZeroClipboard.swf"},j=function(){var e=/win(dows|[\s]?(nt|me|ce|xp|vista|[\d]+))/i;return!!u&&(e.test(u.appVersion||"")||e.test(u.platform||"")||(u.userAgent||"").indexOf("Windows")!==-1)},V=function(){return null==a.opener&&(!!a.top&&a!=a.top||!!a.parent&&a!=a.parent)}(),B="html"===l.documentElement.nodeName,F={bridge:null,version:"0.0.0",pluginType:"unknown",sandboxed:null,disabled:null,outdated:null,insecure:null,unavailable:null,degraded:null,deactivated:null,overdue:null,ready:null},z="11.0.0",Y={},U={},G=null,$=0,K=0,X={ready:"Flash communication is established",error:{"flash-sandboxed":"Attempting to run Flash in a sandboxed iframe, which is impossible","flash-disabled":"Flash is disabled or not installed. May also be attempting to run Flash in a sandboxed iframe, which is impossible.","flash-outdated":"Flash is too outdated to support ZeroClipboard","flash-insecure":"Flash will be unable to communicate due to a protocol mismatch between your `swfPath` configuration and the page","flash-unavailable":"Flash is unable to communicate bidirectionally with JavaScript","flash-degraded":"Flash is unable to preserve data fidelity when communicating with JavaScript","flash-deactivated":"Flash is too outdated for your browser and/or is configured as click-to-activate.\nThis may also mean that the ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity.\nMay also be attempting to run Flash in a sandboxed iframe, which is impossible.","flash-overdue":"Flash communication was established but NOT within the acceptable time limit","version-mismatch":"ZeroClipboard JS version number does not match ZeroClipboard SWF version number","clipboard-error":"At least one error was thrown while ZeroClipboard was attempting to inject your data into the clipboard","config-mismatch":"ZeroClipboard configuration does not match Flash's reality","swf-not-found":"The ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity","browser-unsupported":"The browser does not support the required HTML DOM and JavaScript features"}},q=["flash-unavailable","flash-degraded","flash-overdue","version-mismatch","config-mismatch","clipboard-error"],Z=["flash-sandboxed","flash-disabled","flash-outdated","flash-insecure","flash-unavailable","flash-degraded","flash-deactivated","flash-overdue"],J=new RegExp("^flash-("+Z.map(function(e){return e.replace(/^flash-/,"")}).join("|")+")$"),Q=new RegExp("^flash-("+Z.filter(function(e){return"flash-disabled"!==e}).map(function(e){return e.replace(/^flash-/,"")}).join("|")+")$"),ee={swfPath:W(),trustedDomains:a.location.host?[a.location.host]:[],cacheBust:!0,forceEnhancedClipboard:!1,flashLoadTimeout:3e4,autoActivate:!0,bubbleEvents:!0,fixLineEndings:!0,containerId:"global-zeroclipboard-html-bridge",containerClass:"global-zeroclipboard-container",swfObjectId:"global-zeroclipboard-flash-bridge",hoverClass:"zeroclipboard-is-hover",activeClass:"zeroclipboard-is-active",forceHandCursor:!1,title:null,zIndex:999999999},te=function(e){"object"!=typeof e||!e||"length"in e||_(e).forEach(function(t){if(/^(?:forceHandCursor|title|zIndex|bubbleEvents|fixLineEndings)$/.test(t))ee[t]=e[t];else if(null==F.bridge)if("containerId"===t||"swfObjectId"===t){if(!ve(e[t]))throw new Error("The specified `"+t+"` value is not valid as an HTML4 Element ID");ee[t]=e[t]}else ee[t]=e[t]});{if("string"!=typeof e||!e)return T(ee);if(R.call(ee,e))return ee[e]}},ne=function(){return Je(),{browser:O(k(u,["userAgent","platform","appName","appVersion"]),{isSupported:oe()}),flash:x(F,["bridge"]),zeroclipboard:{version:et.version,config:et.config()}}},oe=function(){return!!(l.addEventListener&&a.Object.keys&&a.Array.prototype.map)},re=function(){return!!(F.sandboxed||F.disabled||F.outdated||F.unavailable||F.degraded||F.deactivated)},ie=function(e,t){var n,i,s,a={};if("string"==typeof e&&e?s=e.toLowerCase().split(/\s+/):"object"!=typeof e||!e||"length"in e||"undefined"!=typeof t||_(e).forEach(function(t){var n=e[t];"function"==typeof n&&et.on(t,n)}),s&&s.length&&t){for(n=0,i=s.length;n<i;n++)e=s[n].replace(/^on/,""),a[e]=!0,Y[e]||(Y[e]=[]),Y[e].push(t);if(a.ready&&F.ready&&et.emit({type:"ready"}),a.error){for(oe()||et.emit({type:"error",name:"browser-unsupported"}),n=0,i=Z.length;n<i;n++)if(F[Z[n].replace(/^flash-/,"")]===!0){et.emit({type:"error",name:Z[n]});break}r!==o&&et.version!==r&&et.emit({type:"error",name:"version-mismatch",jsVersion:et.version,swfVersion:r})}}return et},se=function(e,t){var n,o,r,i,s;if(0===arguments.length?i=_(Y):"string"==typeof e&&e?i=e.toLowerCase().split(/\s+/):"object"!=typeof e||!e||"length"in e||"undefined"!=typeof t||_(e).forEach(function(t){var n=e[t];"function"==typeof n&&et.off(t,n)}),i&&i.length)for(n=0,o=i.length;n<o;n++)if(e=i[n].replace(/^on/,""),s=Y[e],s&&s.length)if(t)for(r=s.indexOf(t);r!==-1;)s.splice(r,1),r=s.indexOf(t,r);else s.length=0;return et},ae=function(e){var t;return t="string"==typeof e&&e?T(Y[e])||null:T(Y)},le=function(e){var t,n,o;if(e=ye(e),e&&!Ee(e))return"ready"===e.type&&F.overdue===!0?et.emit({type:"error",name:"flash-overdue"}):(t=O({},e),Me.call(this,t),"copy"===e.type&&(o=Ne(U),n=o.data,G=o.formatMap),n)},ue=function(){var e=ee.swfPath||"",t=e.slice(0,2),n=e.slice(0,e.indexOf("://")+1);return"\\\\"===t?"file:":"//"===t||""===n?a.location.protocol:n},ce=function(){var e,t,n=F.sandboxed;return oe()?(Je(),"boolean"!=typeof F.ready&&(F.ready=!1),void(F.sandboxed!==n&&F.sandboxed===!0?(F.ready=!1,et.emit({type:"error",name:"flash-sandboxed"})):et.isFlashUnusable()||null!==F.bridge||(t=ue(),t&&t!==a.location.protocol?et.emit({type:"error",name:"flash-insecure"}):(e=ee.flashLoadTimeout,"number"==typeof e&&e>=0&&($=c(function(){"boolean"!=typeof F.deactivated&&(F.deactivated=!0),F.deactivated===!0&&et.emit({type:"error",name:"flash-deactivated"})},e)),F.overdue=!1,Ae())))):(F.ready=!1,void et.emit({type:"error",name:"browser-unsupported"}))},de=function(){et.clearData(),et.blur(),et.emit("destroy"),Pe(),et.off()},he=function(e,t){var n;if("object"==typeof e&&e&&"undefined"==typeof t)n=e,et.clearData();else{if("string"!=typeof e||!e)return;n={},n[e]=t}for(var o in n)"string"==typeof o&&o&&R.call(n,o)&&"string"==typeof n[o]&&n[o]&&(U[o]=Ze(n[o]))},fe=function(e){"undefined"==typeof e?(D(U),G=null):"string"==typeof e&&R.call(U,e)&&delete U[e]},pe=function(e){return"undefined"==typeof e?T(U):"string"==typeof e&&R.call(U,e)?U[e]:void 0},me=function(e){if(e&&1===e.nodeType){i&&(ze(i,ee.activeClass),i!==e&&ze(i,ee.hoverClass)),i=e,Fe(e,ee.hoverClass);var t=e.getAttribute("title")||ee.title;if("string"==typeof t&&t){var n=De(F.bridge);n&&n.setAttribute("title",t)}var o=ee.forceHandCursor===!0||"pointer"===Ye(e,"cursor");Xe(o),Ke()}},ge=function(){var e=De(F.bridge);e&&(e.removeAttribute("title"),e.style.left="0px",e.style.top="-9999px",e.style.width="1px",e.style.height="1px"),i&&(ze(i,ee.hoverClass),ze(i,ee.activeClass),i=null)},we=function(){return i||null},ve=function(e){return"string"==typeof e&&e&&/^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(e)},ye=function(e){var t;if("string"==typeof e&&e?(t=e,e={}):"object"==typeof e&&e&&"string"==typeof e.type&&e.type&&(t=e.type),t){t=t.toLowerCase(),!e.target&&(/^(copy|aftercopy|_click)$/.test(t)||"error"===t&&"clipboard-error"===e.name)&&(e.target=s),O(e,{type:t,target:e.target||i||null,relatedTarget:e.relatedTarget||null,currentTarget:F&&F.bridge||null,timeStamp:e.timeStamp||C()||null});var n=X[e.type];return"error"===e.type&&e.name&&n&&(n=n[e.name]),n&&(e.message=n),"ready"===e.type&&O(e,{target:null,version:F.version}),"error"===e.type&&(J.test(e.name)&&O(e,{target:null,minimumVersion:z}),Q.test(e.name)&&O(e,{version:F.version}),"flash-insecure"===e.name&&O(e,{pageProtocol:a.location.protocol,swfProtocol:ue()})),"copy"===e.type&&(e.clipboardData={setData:et.setData,clearData:et.clearData}),"aftercopy"===e.type&&(e=Le(e,G)),e.target&&!e.relatedTarget&&(e.relatedTarget=be(e.target)),Ce(e)}},be=function(e){var t=e&&e.getAttribute&&e.getAttribute("data-clipboard-target");return t?l.getElementById(t):null},Ce=function(e){if(e&&/^_(?:click|mouse(?:over|out|down|up|move))$/.test(e.type)){var t=e.target,n="_mouseover"===e.type&&e.relatedTarget?e.relatedTarget:o,r="_mouseout"===e.type&&e.relatedTarget?e.relatedTarget:o,i=Ue(t),s=a.screenLeft||a.screenX||0,u=a.screenTop||a.screenY||0,c=l.body.scrollLeft+l.documentElement.scrollLeft,d=l.body.scrollTop+l.documentElement.scrollTop,h=i.left+("number"==typeof e._stageX?e._stageX:0),f=i.top+("number"==typeof e._stageY?e._stageY:0),p=h-c,m=f-d,g=s+p,w=u+m,v="number"==typeof e.movementX?e.movementX:0,y="number"==typeof e.movementY?e.movementY:0;delete e._stageX,delete e._stageY,O(e,{srcElement:t,fromElement:n,toElement:r,screenX:g,screenY:w,pageX:h,pageY:f,clientX:p,clientY:m,x:p,y:m,movementX:v,movementY:y,offsetX:0,offsetY:0,layerX:0,layerY:0})}return e},_e=function(e){var t=e&&"string"==typeof e.type&&e.type||"";return!/^(?:(?:before)?copy|destroy)$/.test(t)},Re=function(e,t,n,o){o?c(function(){e.apply(t,n)},0):e.apply(t,n)},Me=function(e){if("object"==typeof e&&e&&e.type){var t=_e(e),n=Y["*"]||[],o=Y[e.type]||[],r=n.concat(o);if(r&&r.length){var i,s,l,u,c,d=this;for(i=0,s=r.length;i<s;i++)l=r[i],u=d,"string"==typeof l&&"function"==typeof a[l]&&(l=a[l]),"object"==typeof l&&l&&"function"==typeof l.handleEvent&&(u=l,l=l.handleEvent),"function"==typeof l&&(c=O({},e),Re(l,u,[c],t))}return this}},Se=function(e){var t=null;return(V===!1||e&&"error"===e.type&&e.name&&q.indexOf(e.name)!==-1)&&(t=!1),t},Ee=function(e){var t=e.target||i||null,n="swf"===e._source;switch(delete e._source,e.type){case"error":var o="flash-sandboxed"===e.name||Se(e);"boolean"==typeof o&&(F.sandboxed=o),"browser-unsupported"===e.name?O(F,{disabled:!1,outdated:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:!1,ready:!1}):Z.indexOf(e.name)!==-1?O(F,{disabled:"flash-disabled"===e.name,outdated:"flash-outdated"===e.name,insecure:"flash-insecure"===e.name,unavailable:"flash-unavailable"===e.name,degraded:"flash-degraded"===e.name,deactivated:"flash-deactivated"===e.name,overdue:"flash-overdue"===e.name,ready:!1}):"version-mismatch"===e.name&&(r=e.swfVersion,O(F,{disabled:!1,outdated:!1,insecure:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:!1,ready:!1})),$e();break;case"ready":r=e.swfVersion;var a=F.deactivated===!0;O(F,{sandboxed:!1,disabled:!1,outdated:!1,insecure:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:a,ready:!a}),$e();break;case"beforecopy":s=t;break;case"copy":var l,u,c=e.relatedTarget;!U["text/html"]&&!U["text/plain"]&&c&&(u=c.value||c.outerHTML||c.innerHTML)&&(l=c.value||c.textContent||c.innerText)?(e.clipboardData.clearData(),e.clipboardData.setData("text/plain",l),u!==l&&e.clipboardData.setData("text/html",u)):!U["text/plain"]&&e.target&&(l=e.target.getAttribute("data-clipboard-text"))&&(e.clipboardData.clearData(),e.clipboardData.setData("text/plain",l));break;case"aftercopy":Oe(e),et.clearData(),t&&t!==Be()&&t.focus&&t.focus();break;case"_mouseover":et.focus(t),ee.bubbleEvents===!0&&n&&(t&&t!==e.relatedTarget&&!H(e.relatedTarget,t)&&Te(O({},e,{type:"mouseenter",bubbles:!1,cancelable:!1})),Te(O({},e,{type:"mouseover"})));break;case"_mouseout":et.blur(),ee.bubbleEvents===!0&&n&&(t&&t!==e.relatedTarget&&!H(e.relatedTarget,t)&&Te(O({},e,{type:"mouseleave",bubbles:!1,cancelable:!1})),Te(O({},e,{type:"mouseout"})));break;case"_mousedown":Fe(t,ee.activeClass),ee.bubbleEvents===!0&&n&&Te(O({},e,{type:e.type.slice(1)}));break;case"_mouseup":ze(t,ee.activeClass),ee.bubbleEvents===!0&&n&&Te(O({},e,{type:e.type.slice(1)}));break;case"_click":s=null,ee.bubbleEvents===!0&&n&&Te(O({},e,{type:e.type.slice(1)}));break;case"_mousemove":ee.bubbleEvents===!0&&n&&Te(O({},e,{type:e.type.slice(1)}))}if(/^_(?:click|mouse(?:over|out|down|up|move))$/.test(e.type))return!0},Oe=function(e){if(e.errors&&e.errors.length>0){var t=T(e);O(t,{type:"error",name:"clipboard-error"}),delete t.success,c(function(){et.emit(t)},0)}},Te=function(e){if(e&&"string"==typeof e.type&&e){var t,n=e.target||null,o=n&&n.ownerDocument||l,r={view:o.defaultView||a,canBubble:!0,cancelable:!0,detail:"click"===e.type?1:0,button:"number"==typeof e.which?e.which-1:"number"==typeof e.button?e.button:o.createEvent?0:1},i=O(r,e);n&&o.createEvent&&n.dispatchEvent&&(i=[i.type,i.canBubble,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget],t=o.createEvent("MouseEvents"),t.initMouseEvent&&(t.initMouseEvent.apply(t,i),t._source="js",n.dispatchEvent(t)))}},ke=function(){var e=ee.flashLoadTimeout;if("number"==typeof e&&e>=0){var t=Math.min(1e3,e/10),n=ee.swfObjectId+"_fallbackContent";K=h(function(){var e=l.getElementById(n);Ge(e)&&($e(),F.deactivated=null,et.emit({type:"error",name:"swf-not-found"}))},t)}},xe=function(){var e=l.createElement("div");return e.id=ee.containerId,e.className=ee.containerClass,e.style.position="absolute",e.style.left="0px",e.style.top="-9999px",e.style.width="1px",e.style.height="1px",e.style.zIndex=""+qe(ee.zIndex),e},De=function(e){for(var t=e&&e.parentNode;t&&"OBJECT"===t.nodeName&&t.parentNode;)t=t.parentNode;return t||null},He=function(e){return"string"==typeof e&&e?e.replace(/["&'<>]/g,function(e){switch(e){case'"':return""";case"&":return"&";case"'":return"'";case"<":return"<";case">":return">";default:return e}}):e},Ae=function(){var e,t=F.bridge,n=De(t);if(!t){var o=Ve(a.location.host,ee),r="never"===o?"none":"all",i=We(O({jsVersion:et.version},ee)),s=ee.swfPath+Ie(ee.swfPath,ee);B&&(s=He(s)),n=xe();var u=l.createElement("div");n.appendChild(u),l.body.appendChild(n);var c=l.createElement("div"),d="activex"===F.pluginType;c.innerHTML='<object id="'+ee.swfObjectId+'" name="'+ee.swfObjectId+'" width="100%" height="100%" '+(d?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"':'type="application/x-shockwave-flash" data="'+s+'"')+">"+(d?'<param name="movie" value="'+s+'"/>':"")+'<param name="allowScriptAccess" value="'+o+'"/><param name="allowNetworking" value="'+r+'"/><param name="menu" value="false"/><param name="wmode" value="transparent"/><param name="flashvars" value="'+i+'"/><div id="'+ee.swfObjectId+'_fallbackContent"> </div></object>',t=c.firstChild,c=null,S(t).ZeroClipboard=et,n.replaceChild(t,u),ke()}return t||(t=l[ee.swfObjectId],t&&(e=t.length)&&(t=t[e-1]),!t&&n&&(t=n.firstChild)),F.bridge=t||null,t},Pe=function(){var e=F.bridge;if(e){var t=De(e);t&&("activex"===F.pluginType&&"readyState"in e?(e.style.display="none",function n(){if(4===e.readyState){for(var o in e)"function"==typeof e[o]&&(e[o]=null);e.parentNode&&e.parentNode.removeChild(e),t.parentNode&&t.parentNode.removeChild(t)}else c(n,10)}()):(e.parentNode&&e.parentNode.removeChild(e),t.parentNode&&t.parentNode.removeChild(t))),$e(),F.ready=null,F.bridge=null,F.deactivated=null,F.insecure=null,r=o}},Ne=function(e){var t={},n={};if("object"==typeof e&&e){for(var o in e)if(o&&R.call(e,o)&&"string"==typeof e[o]&&e[o])switch(o.toLowerCase()){case"text/plain":case"text":case"air:text":case"flash:text":t.text=e[o],n.text=o;break;case"text/html":case"html":case"air:html":case"flash:html":t.html=e[o],n.html=o;break;case"application/rtf":case"text/rtf":case"rtf":case"richtext":case"air:rtf":case"flash:rtf":t.rtf=e[o],n.rtf=o}return{data:t,formatMap:n}}},Le=function(e,t){if("object"!=typeof e||!e||"object"!=typeof t||!t)return e;var n={};for(var o in e)if(R.call(e,o))if("errors"===o){n[o]=e[o]?e[o].slice():[];for(var r=0,i=n[o].length;r<i;r++)n[o][r].format=t[n[o][r].format]}else if("success"!==o&&"data"!==o)n[o]=e[o];else{n[o]={};var s=e[o];for(var a in s)a&&R.call(s,a)&&R.call(t,a)&&(n[o][t[a]]=s[a])}return n},Ie=function(e,t){var n=null==t||t&&t.cacheBust===!0;return n?(e.indexOf("?")===-1?"?":"&")+"noCache="+C():""},We=function(e){var t,n,o,r,i="",s=[];if(e.trustedDomains&&("string"==typeof e.trustedDomains?r=[e.trustedDomains]:"object"==typeof e.trustedDomains&&"length"in e.trustedDomains&&(r=e.trustedDomains)),r&&r.length)for(t=0,n=r.length;t<n;t++)if(R.call(r,t)&&r[t]&&"string"==typeof r[t]){if(o=je(r[t]),!o)continue;if("*"===o){s.length=0,s.push(o);break}s.push.apply(s,[o,"//"+o,a.location.protocol+"//"+o])}return s.length&&(i+="trustedOrigins="+m(s.join(","))),e.forceEnhancedClipboard===!0&&(i+=(i?"&":"")+"forceEnhancedClipboard=true"),"string"==typeof e.swfObjectId&&e.swfObjectId&&(i+=(i?"&":"")+"swfObjectId="+m(e.swfObjectId)),"string"==typeof e.jsVersion&&e.jsVersion&&(i+=(i?"&":"")+"jsVersion="+m(e.jsVersion)),i},je=function(e){if(null==e||""===e)return null;if(e=e.replace(/^\s+|\s+$/g,""),""===e)return null;var t=e.indexOf("//");e=t===-1?e:e.slice(t+2);var n=e.indexOf("/");return e=n===-1?e:t===-1||0===n?null:e.slice(0,n),e&&".swf"===e.slice(-4).toLowerCase()?null:e||null},Ve=function(){var e=function(e){var t,n,o,r=[];if("string"==typeof e&&(e=[e]),"object"!=typeof e||!e||"number"!=typeof e.length)return r;for(t=0,n=e.length;t<n;t++)if(R.call(e,t)&&(o=je(e[t]))){if("*"===o){r.length=0,r.push("*");break}r.indexOf(o)===-1&&r.push(o)}return r};return function(t,n){var o=je(n.swfPath);null===o&&(o=t);var r=e(n.trustedDomains),i=r.length;if(i>0){if(1===i&&"*"===r[0])return"always";if(r.indexOf(t)!==-1)return 1===i&&t===o?"sameDomain":"always"}return"never"}}(),Be=function(){try{return l.activeElement}catch(e){return null}},Fe=function(e,t){var n,o,r,i=[];if("string"==typeof t&&t&&(i=t.split(/\s+/)),e&&1===e.nodeType&&i.length>0){for(r=(" "+(e.className||"")+" ").replace(/[\t\r\n\f]/g," "),n=0,o=i.length;n<o;n++)r.indexOf(" "+i[n]+" ")===-1&&(r+=i[n]+" ");r=r.replace(/^\s+|\s+$/g,""),r!==e.className&&(e.className=r)}return e},ze=function(e,t){var n,o,r,i=[];if("string"==typeof t&&t&&(i=t.split(/\s+/)),e&&1===e.nodeType&&i.length>0&&e.className){for(r=(" "+e.className+" ").replace(/[\t\r\n\f]/g," "),n=0,o=i.length;n<o;n++)r=r.replace(" "+i[n]+" "," ");r=r.replace(/^\s+|\s+$/g,""),r!==e.className&&(e.className=r)}return e},Ye=function(e,t){var n=p(e,null).getPropertyValue(t);return"cursor"!==t||n&&"auto"!==n||"A"!==e.nodeName?n:"pointer"},Ue=function(e){var t={left:0,top:0,width:0,height:0};if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),o=a.pageXOffset,r=a.pageYOffset,i=l.documentElement.clientLeft||0,s=l.documentElement.clientTop||0,u=0,c=0;if("relative"===Ye(l.body,"position")){var d=l.body.getBoundingClientRect(),h=l.documentElement.getBoundingClientRect();u=d.left-h.left||0,c=d.top-h.top||0}t.left=n.left+o-i-u,t.top=n.top+r-s-c,t.width="width"in n?n.width:n.right-n.left,t.height="height"in n?n.height:n.bottom-n.top}return t},Ge=function(e){if(!e)return!1;var t=p(e,null);if(!t)return!1;var n=y(t.height)>0,o=y(t.width)>0,r=y(t.top)>=0,i=y(t.left)>=0,s=n&&o&&r&&i,a=s?null:Ue(e),l="none"!==t.display&&"collapse"!==t.visibility&&(s||!!a&&(n||a.height>0)&&(o||a.width>0)&&(r||a.top>=0)&&(i||a.left>=0));return l},$e=function(){d($),$=0,f(K),K=0},Ke=function(){var e;if(i&&(e=De(F.bridge))){var t=Ue(i);O(e.style,{width:t.width+"px",height:t.height+"px",top:t.top+"px",left:t.left+"px",zIndex:""+qe(ee.zIndex)})}},Xe=function(e){F.ready===!0&&(F.bridge&&"function"==typeof F.bridge.setHandCursor?F.bridge.setHandCursor(e):F.ready=!1)},qe=function(e){if(/^(?:auto|inherit)$/.test(e))return e;var t;return"number"!=typeof e||b(e)?"string"==typeof e&&(t=qe(v(e,10))):t=e,"number"==typeof t?t:"auto"},Ze=function(e){var t=/(\r\n|\r|\n)/g;return"string"==typeof e&&ee.fixLineEndings===!0&&(j()?/((^|[^\r])\n|\r([^\n]|$))/.test(e)&&(e=e.replace(t,"\r\n")):/\r/.test(e)&&(e=e.replace(t,"\n"))),e},Je=function(e){var n,o,r,i=F.sandboxed,s=null;if(e=e===!0,V===!1)s=!1;else{try{o=t.frameElement||null}catch(e){r={name:e.name,message:e.message}}if(o&&1===o.nodeType&&"IFRAME"===o.nodeName)try{s=o.hasAttribute("sandbox")}catch(e){s=null}else{try{n=document.domain||null}catch(e){n=null}(null===n||r&&"SecurityError"===r.name&&/(^|[\s\(\[@])sandbox(es|ed|ing|[\s\.,!\)\]@]|$)/.test(r.message.toLowerCase()))&&(s=!0)}}return F.sandboxed=s,i===s||e||Qe(g),s},Qe=function(e){function t(e){var t=e.match(/[\d]+/g);return t.length=3,t.join(".")}function n(e){return!!e&&(e=e.toLowerCase())&&(/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(e)||"chrome.plugin"===e.slice(-13))}function o(e){e&&(a=!0,e.version&&(d=t(e.version)),!d&&e.description&&(d=t(e.description)),e.filename&&(c=n(e.filename)))}var r,i,s,a=!1,l=!1,c=!1,d="";if(u.plugins&&u.plugins.length)r=u.plugins["Shockwave Flash"],o(r),u.plugins["Shockwave Flash 2.0"]&&(a=!0,d="2.0.0.11");else if(u.mimeTypes&&u.mimeTypes.length)s=u.mimeTypes["application/x-shockwave-flash"],r=s&&s.enabledPlugin,o(r);else if("undefined"!=typeof e){l=!0;try{i=new e("ShockwaveFlash.ShockwaveFlash.7"),a=!0,d=t(i.GetVariable("$version"))}catch(n){try{i=new e("ShockwaveFlash.ShockwaveFlash.6"),a=!0,d="6.0.21"}catch(n){try{i=new e("ShockwaveFlash.ShockwaveFlash"),a=!0,d=t(i.GetVariable("$version"))}catch(e){l=!1}}}}F.disabled=a!==!0,F.outdated=d&&y(d)<y(z),F.version=d||"0.0.0",F.pluginType=c?"pepper":l?"activex":a?"netscape":"unknown"};Qe(g),Je(!0);var et=function(){return this instanceof et?void("function"==typeof et._createClient&&et._createClient.apply(this,E(arguments))):new et};et.version="2.3.0",et.config=function(){return te.apply(this,E(arguments))},et.state=function(){return ne.apply(this,E(arguments))},et.isFlashUnusable=function(){return re.apply(this,E(arguments))},et.on=function(){return ie.apply(this,E(arguments))},et.off=function(){return se.apply(this,E(arguments))},et.handlers=function(){return ae.apply(this,E(arguments))},et.emit=function(){return le.apply(this,E(arguments))},et.create=function(){return ce.apply(this,E(arguments))},et.destroy=function(){return de.apply(this,E(arguments))},et.setData=function(){return he.apply(this,E(arguments))},et.clearData=function(){return fe.apply(this,E(arguments))},et.getData=function(){return pe.apply(this,E(arguments))},et.focus=et.activate=function(){return me.apply(this,E(arguments))},et.blur=et.deactivate=function(){return ge.apply(this,E(arguments))},et.activeElement=function(){return we.apply(this,E(arguments))};var tt=0,nt={},ot=0,rt={},it={};O(ee,{autoActivate:!0});var st=function(e){var t,n=this;n.id=""+tt++,t={instance:n,elements:[],handlers:{},coreWildcardHandler:function(e){return n.emit(e)}},nt[n.id]=t,e&&n.clip(e),et.on("*",t.coreWildcardHandler),et.on("destroy",function(){n.destroy()}),et.create()},at=function(e,t){var n,i,s,a={},l=this,u=nt[l.id],c=u&&u.handlers;if(!u)throw new Error("Attempted to add new listener(s) to a destroyed ZeroClipboard client instance");if("string"==typeof e&&e?s=e.toLowerCase().split(/\s+/):"object"!=typeof e||!e||"length"in e||"undefined"!=typeof t||_(e).forEach(function(t){var n=e[t];"function"==typeof n&&l.on(t,n)}),s&&s.length&&t){for(n=0,i=s.length;n<i;n++)e=s[n].replace(/^on/,""),a[e]=!0,c[e]||(c[e]=[]),c[e].push(t);if(a.ready&&F.ready&&this.emit({type:"ready",client:this}),a.error){for(n=0,i=Z.length;n<i;n++)if(F[Z[n].replace(/^flash-/,"")]){this.emit({type:"error",name:Z[n],client:this});break}r!==o&&et.version!==r&&this.emit({type:"error",name:"version-mismatch",jsVersion:et.version,swfVersion:r})}}return l},lt=function(e,t){var n,o,r,i,s,a=this,l=nt[a.id],u=l&&l.handlers;if(!u)return a;if(0===arguments.length?i=_(u):"string"==typeof e&&e?i=e.split(/\s+/):"object"!=typeof e||!e||"length"in e||"undefined"!=typeof t||_(e).forEach(function(t){var n=e[t];"function"==typeof n&&a.off(t,n)}),i&&i.length)for(n=0,o=i.length;n<o;n++)if(e=i[n].toLowerCase().replace(/^on/,""),s=u[e],s&&s.length)if(t)for(r=s.indexOf(t);r!==-1;)s.splice(r,1),r=s.indexOf(t,r);else s.length=0;return a},ut=function(e){var t=null,n=nt[this.id]&&nt[this.id].handlers;return n&&(t="string"==typeof e&&e?n[e]?n[e].slice(0):[]:T(n)),t},ct=function(e){var t,n=this;return mt.call(n,e)&&("object"==typeof e&&e&&"string"==typeof e.type&&e.type&&(e=O({},e)),t=O({},ye(e),{client:n}),gt.call(n,t)),n},dt=function(e){if(!nt[this.id])throw new Error("Attempted to clip element(s) to a destroyed ZeroClipboard client instance");e=wt(e);for(var t=0;t<e.length;t++)if(R.call(e,t)&&e[t]&&1===e[t].nodeType){e[t].zcClippingId?rt[e[t].zcClippingId].indexOf(this.id)===-1&&rt[e[t].zcClippingId].push(this.id):(e[t].zcClippingId="zcClippingId_"+ot++,rt[e[t].zcClippingId]=[this.id],ee.autoActivate===!0&&vt(e[t]));var n=nt[this.id]&&nt[this.id].elements;n.indexOf(e[t])===-1&&n.push(e[t])}return this},ht=function(e){var t=nt[this.id];if(!t)return this;var n,o=t.elements;e="undefined"==typeof e?o.slice(0):wt(e);for(var r=e.length;r--;)if(R.call(e,r)&&e[r]&&1===e[r].nodeType){for(n=0;(n=o.indexOf(e[r],n))!==-1;)o.splice(n,1);var i=rt[e[r].zcClippingId];if(i){for(n=0;(n=i.indexOf(this.id,n))!==-1;)i.splice(n,1);0===i.length&&(ee.autoActivate===!0&&yt(e[r]),delete e[r].zcClippingId)}}return this},ft=function(){var e=nt[this.id];return e&&e.elements?e.elements.slice(0):[]},pt=function(){var e=nt[this.id];e&&(this.unclip(),this.off(),et.off("*",e.coreWildcardHandler),delete nt[this.id])},mt=function(e){if(!e||!e.type)return!1;if(e.client&&e.client!==this)return!1;var t=nt[this.id],n=t&&t.elements,o=!!n&&n.length>0,r=!e.target||o&&n.indexOf(e.target)!==-1,i=e.relatedTarget&&o&&n.indexOf(e.relatedTarget)!==-1,s=e.client&&e.client===this;return!(!t||!(r||i||s))},gt=function(e){var t=nt[this.id];if("object"==typeof e&&e&&e.type&&t){var n=_e(e),o=t&&t.handlers["*"]||[],r=t&&t.handlers[e.type]||[],i=o.concat(r);if(i&&i.length){var s,l,u,c,d,h=this;for(s=0,l=i.length;s<l;s++)u=i[s],c=h,"string"==typeof u&&"function"==typeof a[u]&&(u=a[u]),"object"==typeof u&&u&&"function"==typeof u.handleEvent&&(c=u,u=u.handleEvent),"function"==typeof u&&(d=O({},e),Re(u,c,[d],n))}}},wt=function(e){return"string"==typeof e&&(e=[]),"number"!=typeof e.length?[e]:e},vt=function(e){if(e&&1===e.nodeType){var t=function(e){(e||(e=a.event))&&("js"!==e._source&&(e.stopImmediatePropagation(),e.preventDefault()),delete e._source)},n=function(n){(n||(n=a.event))&&(t(n),et.focus(e))};e.addEventListener("mouseover",n,!1),e.addEventListener("mouseout",t,!1),e.addEventListener("mouseenter",t,!1),e.addEventListener("mouseleave",t,!1),e.addEventListener("mousemove",t,!1),it[e.zcClippingId]={mouseover:n,mouseout:t,mouseenter:t,mouseleave:t,mousemove:t}}},yt=function(e){if(e&&1===e.nodeType){var t=it[e.zcClippingId];if("object"==typeof t&&t){for(var n,o,r=["move","leave","enter","out","over"],i=0,s=r.length;i<s;i++)n="mouse"+r[i],o=t[n],"function"==typeof o&&e.removeEventListener(n,o,!1);delete it[e.zcClippingId]}}};et._createClient=function(){st.apply(this,E(arguments))},et.prototype.on=function(){return at.apply(this,E(arguments))},et.prototype.off=function(){return lt.apply(this,E(arguments))},et.prototype.handlers=function(){return ut.apply(this,E(arguments))},et.prototype.emit=function(){return ct.apply(this,E(arguments))},et.prototype.clip=function(){return dt.apply(this,E(arguments))},et.prototype.unclip=function(){return ht.apply(this,E(arguments))},et.prototype.elements=function(){return ft.apply(this,E(arguments))},et.prototype.destroy=function(){return pt.apply(this,E(arguments))},et.prototype.setText=function(e){if(!nt[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return et.setData("text/plain",e),this},et.prototype.setHtml=function(e){if(!nt[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return et.setData("text/html",e),this},et.prototype.setRichText=function(e){if(!nt[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return et.setData("application/rtf",e),this},et.prototype.setData=function(){if(!nt[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return et.setData.apply(this,E(arguments)),this},et.prototype.clearData=function(){if(!nt[this.id])throw new Error("Attempted to clear pending clipboard data from a destroyed ZeroClipboard client instance");return et.clearData.apply(this,E(arguments)),this},et.prototype.getData=function(){if(!nt[this.id])throw new Error("Attempted to get pending clipboard data from a destroyed ZeroClipboard client instance");return et.getData.apply(this,E(arguments))},"function"==typeof e&&e.amd?e(function(){return et}):"object"==typeof n&&n&&"object"==typeof n.exports&&n.exports?n.exports=et:t.ZeroClipboard=et}(function(){return this||window}())},{}]},{},[24,63,65,66,64,67,110,111,112,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,109,113,114,115,116,133,134,135,136,119,120,121,122,123,124,32,36,33,34,41,35,37,38,39,40])(24)});
//}}}
// %/ //
/***
!!! .setHiddenSection helper
***/
//{{{
// Sets the section value if it is present, appends a hidden one otherwise
// (code adapted from SetManagerPlugin, Tiddler.prototype.setSection)
//
Tiddler.prototype.setHiddenSection = function(sectionName,value)
{
var beginSectionRegExp = new RegExp("(^!{1,6}[ \t]*" + sectionName.escapeRegExp() + "[ \t]*(\n|$))","mg"),
sectionTerminatorRegExp = /^!/mg,
match = beginSectionRegExp.exec(this.text);
if(match) // edit existing section
{
var sectionTitle = match[1],
emptyAtEnd = match[2] != "\n",
beforeSection = this.text.substr(0,match.index),
sectionAndAfter = this.text.substr(match.index + match[1].length);
match = sectionTerminatorRegExp.exec(sectionAndAfter);
var afterSection = match ? sectionAndAfter.substr(match.index) : "";
this.text = beforeSection + sectionTitle + (emptyAtEnd ? "\n" : "") +
value + (afterSection ? ("\n" + afterSection) : "");
}
else // append to the end, but don't break TW tables
this.text = this.text + (this.text[this.text.length-1] == "|" ? "\n":"") +
"/%\n!"+sectionName + "\n"+value+"\n!%/";
// setting dirty, notifying is not done here
};
//}}}
/***
!!! {{{handsontable}}} macro
***/
//{{{
config.macros.handsontable = {
defaultOptions: {
//rowHeaders: true, //alphanumerical headers, not very useful,
colHeaders: true, //but needed for resizing
contextMenu: true,
//manualRowResize: true,
manualColumnResize: true
},
createContainer: function(place,id)
{
// create a container with a unique id so that 2 HOTs don't interfere
var containerId = id || ("handsontable" + Math.floor(Math.random()*1000));
while(document.getElementById(containerId))
containerId += Math.floor(Math.random()*10);
return createTiddlyElement(place,"div",containerId,null,null,{
refresh: "macro", macroName: "handsontable" // enable refreshing
});
},
wikifiedRenderer: function(instance, td, row, col, prop, value, cellProperties)
{
Handsontable.Dom.empty(td);
wikify(""+(value || ""),td);
return td;
},
allowBrowserTabSwitch: function(event){
var $tab = 9;
if(event.which == $tab && event.ctrlKey)
Handsontable.Dom.stopImmediatePropagation(event);
},
expandOnNavigatingBeyondBoundaries: function(event)
{
var $right = 39, $down = 40, $left = 37, $up = 38,
selected = this.getSelected(),
isEditMode = this.getActiveEditor().isOpened();
if(isEditMode) return;
// calc dimensions
var startRowNum = selected ? (selected[0]+1) : null,
startColNum = selected ? (selected[1]+1) : null,
endRowNum = selected ? (selected[2]+1) : null,
endColNum = selected ? (selected[3]+1) : null,
// endRowNum is not necessarily >= startRowNum, it is where selection /has ended/
rowsNum = this.countRows(),
colsNum = this.countCols(),
isFirstRow = endRowNum == 0,
isLastRow = endRowNum == rowsNum,
isFirstCol = endColNum == 0,
isLastCol = endColNum == colsNum,
i, noData, data = this.getData();
//# test with selections (not just one cell) from right to left/from bottom to top: probably behaves inadequately
// handle arrow keys
if(isLastRow) {
if(event.which == $down)
this.alter('insert_row');
if(event.which == $up && !isFirstRow) {
noData = true;
for(i = 0; i < colsNum; i++)
if(data[endRowNum-1][i])
noData = false;
if(noData) {
this.alter('remove_row');
Handsontable.Dom
.stopImmediatePropagation(event);
// don't scroll the page
if(event.preventDefault)
event.preventDefault();
}
}
}
if(isLastCol) {
if(event.which == $right)
this.alter('insert_col');
if(event.which == $left && !isFirstCol) {
noData = true;
for(i = 0; i < rowsNum; i++)
if(data[i][endColNum-1])
noData = false;
if(noData) {
this.alter('remove_col');
Handsontable.Dom
.stopImmediatePropagation(event);
// don't scroll the page
if(event.preventDefault)
event.preventDefault();
}
}
}
},
getGranulatedData: function(tiddlers,containers)
{
//# if containers/tiddlers is not an Array, ...
return tiddlers.map(function(tiddler,i,arr){
var tidData = [], i, partName;
for(i = 0; i < containers.length; i++)
{
// looks like .getData from InsertEditable/SetManagerPlugin may be used here
partName = containers[i].substr(1);
switch(containers[i][0]) {
case "!":
tidData.push(tiddler.title);
break;case "t":
tidData.push(tiddler.text);
break;case "#":
tidData.push(tiddler.getSection(partName||""));
break;case ":":
tidData.push(tiddler.getSlice(partName||""));
break;case "@":
tidData.push(store.getValue(tiddler,partName)||"") ;
break;default:
tidData.push("");
}
}
return tidData;
});
},
handler: function(place,macroName,params,wikifier,paramString,tiddler)
{
// parse macro params
var pParams = paramString.parseParams("dataAndOptions",null,true,false, true),
filter = getParam(pParams,"filter"),
containers = pParams[0]["containers"], //containers:"!" ":slice" ...
macroData = JSON.parse(getParam(pParams,"data","[ [\"\"] ]")),
macroOptions; //= JSON.parse(getParam(pParams,"options","{}"))
eval("macroOptions = "+getParam(pParams,"options","{}"));
var dataAndOptionsSection = getParam(pParams,"dataAndOptions",""),
separator = config.textPrimitives.sectionSeparator,
dataAndOptionsText, dataAndOptions, storedData, storedOptions,
nonStoredOptions = macroOptions;
merge(nonStoredOptions, this.defaultOptions, true);
// priority is: storedOptions (highest), macroOptions, defaultOptions
//# refreshing should start here (seems to be only needed for aggregated data)
// probably updating data and may be calling hot.render() is enough
// get stored data and options
if(dataAndOptionsSection) {
if(dataAndOptionsSection.indexOf(separator) == 0)
dataAndOptionsSection = tiddler.title + dataAndOptionsSection;
dataAndOptionsText = store.getTiddlerText(dataAndOptionsSection);
dataAndOptions = dataAndOptionsText ?
JSON.parse(dataAndOptionsText) : {};
storedData = dataAndOptions.data;
storedOptions = dataAndOptions.options;
}
if(filter) {
containers = containers || ["!"];
var tiddlers = store.filterTiddlers(filter),
granulatedData = this.getGranulatedData(tiddlers,containers);
}
var container = this.createContainer(place);
console.log("container: ",container);
// collect options
var options = storedOptions || {},
data = filter ? granulatedData : (storedData || macroData);
merge(options,nonStoredOptions,true);
merge(options,{
data: data,
afterChange: filter ? this.saveToContainers : this.saveToTiddler
},true);
//# change stuff below for the case of aggregated data (both storedOptions and nonStoredOptions may still be useful)
// colHeaders: ["","[[not wikified..]]","..but custom","headers",""],
// store options and other stuff in container and init handsontable
if(filter) {
jQuery(container).data("containers",containers);
jQuery(container).data("tiddlers",tiddlers);
jQuery(container).data("tiddlersFilter",filter);
}
//# implement saving options in the case of containers as well
jQuery(container).data("sourceTiddler",tiddler.title);
jQuery(container).data("dataAndOptionsSection",dataAndOptionsSection);
jQuery(container).data("data",data); // write-only: use to update HOT without creating a new one
jQuery(container).data("hotOptions",options);
jQuery(container).data("nonStoredOptions",nonStoredOptions);
//console.log("handler launched 1");
//try {
var handsontable = new Handsontable(container,options);
//} catch(e) {
// console.log("error with creating handsontable, container is",container,"; options is ",options,"exception is ",e.message);
//};
//console.log("handler launched 2");
jQuery(container).data("handsontable",handsontable);
//var hotBack = jQuery(container).data("handsontable");
//console.log("handler launched 3, hotBack is",hotBack);
Handsontable.hooks.add('beforeKeyDown',this.allowBrowserTabSwitch,
handsontable);
//# temporal simplification
if(filter) return;
// save data to tiddler when a row/column is created/removed as well
Handsontable.hooks.add('afterRemoveCol',this.saveToTiddler, handsontable);
Handsontable.hooks.add('afterRemoveRow',this.saveToTiddler, handsontable);
Handsontable.hooks.add('afterCreateCol',this.saveToTiddler, handsontable);
Handsontable.hooks.add('afterCreateRow',this.saveToTiddler, handsontable);
// automatically add/remove empty rows/columns
Handsontable.hooks.add('beforeKeyDown',
this.expandOnNavigatingBeyondBoundaries, handsontable);
},
refresh: function(element) {
var filter = jQuery(element).data("tiddlersFilter");
// refreshing handsontable for non-granulated data doesn't seem
// to be useful (unless we need to use several HOTs for the same data):
if(!filter) return;
var tiddlers = store.filterTiddlers(filter),
containers = jQuery(element).data("containers"),
granulatedData = this.getGranulatedData(tiddlers,containers),
handsontable = jQuery(element).data("handsontable"),
data = jQuery(element).data("data"),
freshData = this.getGranulatedData(tiddlers,containers);
//if(!handsontable) console.log("refresher: handsontable is "+handsontable);
//else console.log("refresher: handsontable is defined");
// set data equal to freshData so that it is still the same array (data = freshData doesn't suffice)
data.splice(0,data.length); //empty data
data.push.apply(data,freshData);//copy freshData to data
// may use data.splice(0, data.length, ...freshData); but requires ES2015
//console.log("refresher, data is",data);
handsontable.render();
},
saveToContainers: function(change,source)
{
var data = this.getData(),
container = this.container.parentElement,
filter = jQuery(container).data("tiddlersFilter"),
tiddlers = store.filterTiddlers(filter), i, row, tid,
containers = jQuery(container).data("containers"), j, value, partName;
// simple tiddlers updating assuming no rows were moved, deleted or added
for(i = 0; i < tiddlers.length; i++)
{
row = data[i]; // data correspoding to this tiddler
tid = tiddlers[i];
for(j = 0; j < containers.length; j++)
{
value = row[j] || "";
partName = containers[j].substr(1);
// looks like .setData from InsertEditable/SetManagerPlugin may be used here, except if noNotify is required (saveTiddler does notifying)
switch(containers[j][0])
{
case "!": // title
if(!value || tid.title == value) break;
store.saveTiddler(tid,value); // requires my fix to .sT
break;case "t": // text
if(tid.text == value) break;
store.saveTiddler(tid,null,value);
break;case "#":
tid.setSection(partName,value);
//if(tid.getSection(partName)!=value) store.notify(tid.title,true);
break;case ":":
tid.setSlice(partName,value);
//if(tid.getSlice(partName)!=) store.notify(tid.title,true);
break;case "@":
//if(store.getValue(tid,partName)==value) break;
store.setValue(tid,partName,value);
break;default:
//# warn somehow?
break;
}
}
}
if(change && change[2] != change[3]) // a real change
store.setDirty(true);
// advanced implementation:
//# add new tiddlers
//# if there's no title field, how to add tiddler?
//# ? when a row is removed/a title is deleted in it, do ? with the tiddler
//# how to detect moved rows? which row was removed? probably requires extra hooks
},
convertDataToJSON: function(data)
{
//# for a nicer storage format: turn edited numbers into numbers, not strings:
// http://stackoverflow.com/questions/18302890/json-stringify-input-values-as-numbers
// and also turn nulls into ""
return JSON.stringify(data,"",4)
.replace(/\n {8}([^\n]*)\n {4}\]/gm,function($0,$1){
return $1+"]";
})
.replace(/\n {8}/gm,"")
.replace(/^ {4}/gm,"\t");
},
saveToTiddler: function(change,source)
{
// get tiddler, HOT options
var tiddlyContainer = this.container.parentElement,
dataAndOptionsSection = jQuery(tiddlyContainer)
.data("dataAndOptionsSection"),
nonStoredOptions = jQuery(tiddlyContainer).data("nonStoredOptions"),
re = new RegExp("^(.*)" + config.textPrimitives.sectionSeparator + "(.+)$"),
match = re.exec(dataAndOptionsSection),
tiddlerNameByMacro = jQuery(tiddlyContainer).data("sourceTiddler"),
// dataAndOptionsSection may be
tiddlerName = match ? match[1] : // tiddler name##section name
dataAndOptionsSection || tiddlerNameByMacro, // tid name; nothing?
sectionName = match ? match[2] : "",
// fetches if exists and creates otherwise:
tiddler = store.createTiddler(tiddlerName);
// get updated data
var data = this.getData(), dataText, optionsText, fullJSON,
hotMacro = config.macros.handsontable;
//# get updated col widths, merged cells, update hotOptions
var hotOptions = jQuery(tiddlyContainer).data("hotOptions");
//# this works fine but should be changed not on data change but on merge/unmerge
if(this.mergeCells)
hotOptions.mergeCells = this.mergeCells.mergedCellInfoCollection;
// prepare/format data and options for saving
delete hotOptions.data; // we don't need 2 copies of data stored
for(var key in nonStoredOptions) // remove also nonStoredOptions
if(nonStoredOptions[key] == hotOptions[key])
delete hotOptions[key];
dataText = hotMacro.convertDataToJSON(data);
optionsText = hotMacro.convertDataToJSON(hotOptions);
fullJSON = '{"data":' + dataText + ',\n"options":' + optionsText +'}';
// determine portion of tiddler's text to update, update tiddler text
if(sectionName)
tiddler.setHiddenSection(sectionName,fullJSON);
else if(tiddlerName != tiddlerNameByMacro)
tiddler.text = fullJSON;
else
; //# notify: won't save
//# refresh/notify? refreshing is unwanted
//# requirements: updating must be successful even after several successive changes,
// including changes of other reflexive formatters in the same tiddler
// (most importantly earlier in the tw-code), without overwriting those changes
//# options to implement:
// + use section for data and options (implemented)
// - set/require an id and search macro text by id
// - substitute the whole text of macro each time (by search: this won't be hurt by editing other parts)
// . there may be multiple macros with the same tw-code (including in code blocks), but taht's a ~rare case
// - extend wikifier by a "virtual text-tree" layer which knows a) what text corresponds to each formatter; b) how to assemble wikitext from those texts. The tree is to be updated on edit and to notify other trees if other wikifiers are showing (parts of) the same tiddler
// (change wikifier's .source? will this affect other formatters' wikifier? will this help without changing .matchStart etc?)
// this probably still doesn't help when there's several wikifiers wikified (parts of) the same tiddler
// wikifier.matchStart contains the position of the first <
// wikifier.nextMatch contains the position of the symbol after the last >
// macroName and paramString contain all but <<, >> and whitespace between macroName and paramString
// also, wikifier.tiddler, .source and .output (and others) may be used
}
};
// for research purposes:
config.macros.testIfWikifierIsShared = {
handler: function(place,macroName,params,wikifier,paramString,tiddler)
{
if(!window.wikifiersCollection)
window.wikifiersCollection = [];
window.wikifiersCollection.push(wikifier);
}
};
//}}}
/***
!!! config.extensions.Handsontable (deprecated tools from the first version)
***/
//{{{
config.extensions.Handsontable = {
major: 0, minor: 2, revision: 0,
date: new Date('2017/04/06'),
afterChange: function(change,source)
{
if ( source == 'loadData' ) return;
// Find the tiddler containing this table.
var container = this.container;
var parent = story.findContainingTiddler(container);
var tiddler = store.getTiddler(
parent.getAttribute("tiddler")
);
// Get the tiddler text.
var text = tiddler.text;
// Find the start and end of table data.
// First we find the index number of this Handsontable.
var hots = parent.querySelectorAll('div.ht_master');
var ndx = -1;
for(var t = 0; t < hots.length; t++)
if(hots[t] == container){
ndx = t;
break;
}
// Then we find the variable name for the table data, we assume it exists.
// The variable name is assigned to the data property
// of the new Handsontable() constructor call option.
// Hence we look for the right new Handsontable() statement
// and the data property of its option.
var p1 = -1;
var regexp = /new\s+Handsontable/gm;
while(ndx >= 0) {
if (regexp.test(text))
p1 = regexp.lastIndex;
ndx--;
}
regexp = /data\s*:/gm;
regexp.lastIndex = p1;
if (regexp.test(text)) p1 = regexp.lastIndex;
var p2 = text.indexOf(',',p1+1);
var dataname = text.substring(p1,p2).trim();
//
// Now we look back for the beginning of data definition.
// If there are multiple tables created using the Handsontable,
// each of their data sets must have a unique variable name
// or the update may go to the wrong place.
p1 = text.lastIndexOf(dataname,p1)+dataname.length;
//
// and then we look for the end of data definition.
p2 = text.indexOf('];',p1)+2;
// Convert the modified data into text with some nice formatting
var data = this.getData();
var txtdata = ' = ' +
config.macros.handsontable.convertDataToJSON(data)+";";
// Replace the original definition string with the modified one.
text = text.substring(0,p1) + txtdata + text.substring(p2);
// Set it back to the tiddler,
tiddler.set(tiddler.title,text,tiddler.modifier,new Date());
// and mark TiddlyWiki as modified.
store.setDirty(true);
}
};
//}}}
// /%
/***
!handsontable.min.css
***/
///***
//handsontable.min.css 0.31.0
//downloaded from http://handsontable.com/dist/handsontable.full.min.css
//which redirected to http://docs.handsontable.com/0.31.0/bower_components/handsontable/dist/handsontable.full.min.css
//
//(The MIT License)
//
//Copyright (c) 2012-2014 Marcin Warpechowski
//Copyright (c) 2015 Handsoncode sp. z o.o. <hello@handsoncode.net>
//
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
//
//The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
//
//THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
//IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//***/
///*{{{*/
//.handsontable{position:relative}.handsontable .hide{display:none}.handsontable .relative{position:relative}.handsontable.htAutoSize{visibility:hidden;left:-99000px;position:absolute;top:-99000px}.handsontable .wtHider{width:0}.handsontable .wtSpreader{position:relative;width:0;height:auto}.handsontable table,.handsontable tbody,.handsontable thead,.handsontable td,.handsontable th,.handsontable input,.handsontable textarea,.handsontable div{box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.handsontable input,.handsontable textarea{min-height:initial}.handsontable table.htCore{border-collapse:separate;border-spacing:0;margin:0;border-width:0;table-layout:fixed;width:0;outline-width:0;max-width:none;max-height:none}.handsontable col{width:50px}.handsontable col.rowHeader{width:50px}.handsontable th,.handsontable td{border-top-width:0;border-left-width:0;border-right:1px solid #CCC;border-bottom:1px solid #CCC;height:22px;empty-cells:show;line-height:21px;padding:0 4px 0 4px;background-color:#FFF;vertical-align:top;overflow:hidden;outline-width:0;white-space:pre-line;background-clip:padding-box}.handsontable td.htInvalid{background-color:#ff4c42!important}.handsontable td.htNoWrap{white-space:nowrap}.handsontable th:last-child{border-right:1px solid #CCC;border-bottom:1px solid #CCC}.handsontable tr:first-child th.htNoFrame,.handsontable th:first-child.htNoFrame,.handsontable th.htNoFrame{border-left-width:0;background-color:white;border-color:#FFF}.handsontable th:first-child,.handsontable th:nth-child(2),.handsontable td:first-of-type,.handsontable .htNoFrame+th,.handsontable .htNoFrame+td{border-left:1px solid #CCC}.handsontable.htRowHeaders thead tr th:nth-child(2){border-left:1px solid #CCC}.handsontable tr:first-child th,.handsontable tr:first-child td{border-top:1px solid #CCC}.ht_master:not(.innerBorderLeft):not(.emptyColumns) ~ .handsontable tbody tr th,.ht_master:not(.innerBorderLeft):not(.emptyColumns) ~ .handsontable:not(.ht_clone_top) thead tr th:first-child{border-right-width:0}.ht_master:not(.innerBorderTop) thead tr:last-child th,.ht_master:not(.innerBorderTop) ~ .handsontable thead tr:last-child th,.ht_master:not(.innerBorderTop) thead tr.lastChild th,.ht_master:not(.innerBorderTop) ~ .handsontable thead tr.lastChild th{border-bottom-width:0}.handsontable th{background-color:#f3f3f3;color:#222;text-align:center;font-weight:normal;white-space:nowrap}.handsontable thead th{padding:0}.handsontable th.active{background-color:#CCC}.handsontable thead th .relative{padding:2px 4px}.handsontable tbody th.ht__highlight,.handsontable thead th.ht__highlight{background-color:#dcdcdc}.handsontable.ht__selection--columns thead th.ht__highlight,.handsontable.ht__selection--rows tbody th.ht__highlight{background-color:#8eb0e7;color:#000}.handsontable .manualColumnResizer{position:fixed;top:0;cursor:col-resize;z-index:110;width:5px;height:25px}.handsontable .manualRowResizer{position:fixed;left:0;cursor:row-resize;z-index:110;height:5px;width:50px}.handsontable .manualColumnResizer:hover,.handsontable .manualColumnResizer.active,.handsontable .manualRowResizer:hover,.handsontable .manualRowResizer.active{background-color:#AAB}.handsontable .manualColumnResizerGuide{position:fixed;right:0;top:0;background-color:#AAB;display:none;width:0;border-right:1px dashed #777;margin-left:5px}.handsontable .manualRowResizerGuide{position:fixed;left:0;bottom:0;background-color:#AAB;display:none;height:0;border-bottom:1px dashed #777;margin-top:5px}.handsontable .manualColumnResizerGuide.active,.handsontable .manualRowResizerGuide.active{display:block;z-index:199}.handsontable .columnSorting{position:relative}.handsontable .columnSorting:hover{text-decoration:underline;cursor:pointer}.handsontable .columnSorting.ascending::after{content:'\25B2';color:#5f5f5f;position:absolute;right:-15px}.handsontable .columnSorting.descending::after{content:'\25BC';color:#5f5f5f;position:absolute;right:-15px}.handsontable .wtBorder{position:absolute;font-size:0}.handsontable .wtBorder.hidden{display:none!important}.handsontable td.area{background:-moz-linear-gradient(top,rgba(181,209,255,0.34) 0,rgba(181,209,255,0.34) 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,rgba(181,209,255,0.34)),color-stop(100%,rgba(181,209,255,0.34)));background:-webkit-linear-gradient(top,rgba(181,209,255,0.34) 0,rgba(181,209,255,0.34) 100%);background:-o-linear-gradient(top,rgba(181,209,255,0.34) 0,rgba(181,209,255,0.34) 100%);background:-ms-linear-gradient(top,rgba(181,209,255,0.34) 0,rgba(181,209,255,0.34) 100%);background:linear-gradient(to bottom,rgba(181,209,255,0.34) 0,rgba(181,209,255,0.34) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#57b5d1ff',endColorstr='#57b5d1ff',GradientType=0);background-color:#fff}.handsontable .wtBorder.corner{font-size:0;cursor:crosshair}.handsontable .htBorder.htFillBorder{background:red;width:1px;height:1px}.handsontableInput{border:0;outline-width:0;margin:0;padding:1px 5px 0 5px;font-family:inherit;line-height:21px;font-size:inherit;box-shadow:0 0 0 2px #5292f7 inset;resize:none;display:inline-block;color:#000;border-radius:0;background-color:#FFF}.handsontableInputHolder{position:absolute;top:0;left:0;z-index:100}.htSelectEditor{-webkit-appearance:menulist-button!important;position:absolute;width:auto}.handsontable .htDimmed{color:#777}.handsontable .htSubmenu{position:relative}.handsontable .htSubmenu :after{content:'▶';color:#777;position:absolute;right:5px}.handsontable .htLeft{text-align:left}.handsontable .htCenter{text-align:center}.handsontable .htRight{text-align:right}.handsontable .htJustify{text-align:justify}.handsontable .htTop{vertical-align:top}.handsontable .htMiddle{vertical-align:middle}.handsontable .htBottom{vertical-align:bottom}.handsontable .htPlaceholder{color:#999}.handsontable .htAutocompleteArrow{float:right;font-size:10px;color:#EEE;cursor:default;width:16px;text-align:center}.handsontable td .htAutocompleteArrow:hover{color:#777}.handsontable td.area .htAutocompleteArrow{color:#d3d3d3}.handsontable .htCheckboxRendererInput{display:inline-block;vertical-align:middle}.handsontable .htCheckboxRendererInput.noValue{opacity:.5}.handsontable .htCheckboxRendererLabel{cursor:pointer;display:inline-block;width:100%}@-webkit-keyframes opacity-hide{from{opacity:1}to{opacity:0}}@keyframes opacity-hide{from{opacity:1}to{opacity:0}}@-webkit-keyframes opacity-show{from{opacity:0}to{opacity:1}}@keyframes opacity-show{from{opacity:0}to{opacity:1}}.handsontable .handsontable.ht_clone_top .wtHider{padding:0 0 5px 0}.handsontable .autocompleteEditor.handsontable{padding-right:17px}.handsontable .autocompleteEditor.handsontable.htMacScroll{padding-right:15px}.handsontable.listbox{margin:0}.handsontable.listbox .ht_master table{border:1px solid #ccc;border-collapse:separate;background:white}.handsontable.listbox th,.handsontable.listbox tr:first-child th,.handsontable.listbox tr:last-child th,.handsontable.listbox tr:first-child td,.handsontable.listbox td{border-color:transparent}.handsontable.listbox th,.handsontable.listbox td{white-space:nowrap;text-overflow:ellipsis}.handsontable.listbox td.htDimmed{cursor:default;color:inherit;font-style:inherit}.handsontable.listbox .wtBorder{visibility:hidden}.handsontable.listbox tr td.current,.handsontable.listbox tr:hover td{background:#eee}.ht_clone_top{z-index:101}.ht_clone_left{z-index:102}.ht_clone_top_left_corner,.ht_clone_bottom_left_corner{z-index:103}.ht_clone_debug{z-index:103}.handsontable td.htSearchResult{background:#fcedd9;color:#583707}.htBordered{border-width:1px}.htBordered.htTopBorderSolid{border-top-style:solid;border-top-color:#000}.htBordered.htRightBorderSolid{border-right-style:solid;border-right-color:#000}.htBordered.htBottomBorderSolid{border-bottom-style:solid;border-bottom-color:#000}.htBordered.htLeftBorderSolid{border-left-style:solid;border-left-color:#000}.handsontable tbody tr th:nth-last-child(2){border-right:1px solid #CCC}.handsontable thead tr:nth-last-child(2) th.htGroupIndicatorContainer{border-bottom:1px solid #CCC;padding-bottom:5px}.ht_clone_top_left_corner thead tr th:nth-last-child(2){border-right:1px solid #CCC}.htCollapseButton{width:10px;height:10px;line-height:10px;text-align:center;border-radius:5px;border:1px solid #f3f3f3;-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.4);box-shadow:1px 1px 3px rgba(0,0,0,0.4);cursor:pointer;margin-bottom:3px;position:relative}.htCollapseButton:after{content:"";height:300%;width:1px;display:block;background:#ccc;margin-left:4px;position:absolute;bottom:10px}thead .htCollapseButton{right:5px;position:absolute;top:5px;background:#fff}thead .htCollapseButton:after{height:1px;width:700%;right:10px;top:4px}.handsontable tr th .htExpandButton{position:absolute;width:10px;height:10px;line-height:10px;text-align:center;border-radius:5px;border:1px solid #f3f3f3;-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.4);box-shadow:1px 1px 3px rgba(0,0,0,0.4);cursor:pointer;top:0;display:none}.handsontable thead tr th .htExpandButton{top:5px}.handsontable tr th .htExpandButton.clickable{display:block}.collapsibleIndicator{position:absolute;top:50%;transform:translate(0%,-50%);right:5px;border:1px solid #a6a6a6;line-height:10px;color:#222;border-radius:10px;font-size:10px;width:10px;height:10px;cursor:pointer;-webkit-box-shadow:0 0 0 6px rgba(238,238,238,1);-moz-box-shadow:0 0 0 6px rgba(238,238,238,1);box-shadow:0 0 0 6px rgba(238,238,238,1);background:#eee}.handsontable col.hidden{width:0!important}.handsontable table tr th.lightRightBorder{border-right:1px solid #e6e6e6}.handsontable tr.hidden,.handsontable tr.hidden td,.handsontable tr.hidden th{display:none}.ht_master,.ht_clone_left,.ht_clone_top,.ht_clone_bottom{overflow:hidden}.ht_master .wtHolder{overflow:auto}.ht_clone_left .wtHolder{overflow-x:hidden;overflow-y:auto}.ht_clone_top .wtHolder,.ht_clone_bottom .wtHolder{overflow-x:auto;overflow-y:hidden}.wtDebugHidden{display:none}.wtDebugVisible{display:block;-webkit-animation-duration:.5s;-webkit-animation-name:wtFadeInFromNone;animation-duration:.5s;animation-name:wtFadeInFromNone}@keyframes wtFadeInFromNone{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@-webkit-keyframes wtFadeInFromNone{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}.handsontable.mobile,.handsontable.mobile .wtHolder{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-overflow-scrolling:touch}.htMobileEditorContainer{display:none;position:absolute;top:0;width:70%;height:54pt;background:#f8f8f8;border-radius:20px;border:1px solid #ebebeb;z-index:999;box-sizing:border-box;-webkit-box-sizing:border-box;-webkit-text-size-adjust:none}.topLeftSelectionHandle:not(.ht_master .topLeftSelectionHandle),.topLeftSelectionHandle-HitArea:not(.ht_master .topLeftSelectionHandle-HitArea){z-index:9999}.topLeftSelectionHandle,.topLeftSelectionHandle-HitArea,.bottomRightSelectionHandle,.bottomRightSelectionHandle-HitArea{left:-10000px;top:-10000px}.htMobileEditorContainer.active{display:block}.htMobileEditorContainer .inputs{position:absolute;right:210pt;bottom:10pt;top:10pt;left:14px;height:34pt}.htMobileEditorContainer .inputs textarea{font-size:13pt;border:1px solid #a1a1a1;-webkit-appearance:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;position:absolute;left:14px;right:14px;top:0;bottom:0;padding:7pt}.htMobileEditorContainer .cellPointer{position:absolute;top:-13pt;height:0;width:0;left:30px;border-left:13pt solid transparent;border-right:13pt solid transparent;border-bottom:13pt solid #ebebeb}.htMobileEditorContainer .cellPointer.hidden{display:none}.htMobileEditorContainer .cellPointer:before{content:'';display:block;position:absolute;top:2px;height:0;width:0;left:-13pt;border-left:13pt solid transparent;border-right:13pt solid transparent;border-bottom:13pt solid #f8f8f8}.htMobileEditorContainer .moveHandle{position:absolute;top:10pt;left:5px;width:30px;bottom:0;cursor:move;z-index:9999}.htMobileEditorContainer .moveHandle:after{content:"..\a..\a..\a..";white-space:pre;line-height:10px;font-size:20pt;display:inline-block;margin-top:-8px;color:#ebebeb}.htMobileEditorContainer .positionControls{width:205pt;position:absolute;right:5pt;top:0;bottom:0}.htMobileEditorContainer .positionControls>div{width:50pt;height:100%;float:left}.htMobileEditorContainer .positionControls>div:after{content:" ";display:block;width:15pt;height:15pt;text-align:center;line-height:50pt}.htMobileEditorContainer .leftButton:after,.htMobileEditorContainer .rightButton:after,.htMobileEditorContainer .upButton:after,.htMobileEditorContainer .downButton:after{transform-origin:5pt 5pt;-webkit-transform-origin:5pt 5pt;margin:21pt 0 0 21pt}.htMobileEditorContainer .leftButton:after{border-top:2px solid #288ffe;border-left:2px solid #288ffe;-webkit-transform:rotate(-45deg)}.htMobileEditorContainer .leftButton:active:after{border-color:#cfcfcf}.htMobileEditorContainer .rightButton:after{border-top:2px solid #288ffe;border-left:2px solid #288ffe;-webkit-transform:rotate(135deg)}.htMobileEditorContainer .rightButton:active:after{border-color:#cfcfcf}.htMobileEditorContainer .upButton:after{border-top:2px solid #288ffe;border-left:2px solid #288ffe;-webkit-transform:rotate(45deg)}.htMobileEditorContainer .upButton:active:after{border-color:#cfcfcf}.htMobileEditorContainer .downButton:after{border-top:2px solid #288ffe;border-left:2px solid #288ffe;-webkit-transform:rotate(225deg)}.htMobileEditorContainer .downButton:active:after{border-color:#cfcfcf}.handsontable.hide-tween{-webkit-animation:opacity-hide .3s;animation:opacity-hide .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.handsontable.show-tween{-webkit-animation:opacity-show .3s;animation:opacity-show .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.htCommentCell{position:relative}.htCommentCell:after{content:'';position:absolute;top:0;right:0;border-left:6px solid transparent;border-top:6px solid black}.htComments{display:none;z-index:1059;position:absolute}.htCommentTextArea{box-shadow:rgba(0,0,0,0.117647) 0 1px 3px,rgba(0,0,0,0.239216) 0 1px 2px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:0;border-left:3px solid #ccc;background-color:#fff;width:215px;height:90px;font-size:12px;padding:5px;outline:0!important;-webkit-appearance:none}.htCommentTextArea:focus{box-shadow:rgba(0,0,0,0.117647) 0 1px 3px,rgba(0,0,0,0.239216) 0 1px 2px,inset 0 0 0 1px #5292f7;border-left:3px solid #5292f7}/*!
// * Handsontable ContextMenu
// */.htContextMenu{display:none;position:absolute;z-index:1060}.htContextMenu .ht_clone_top,.htContextMenu .ht_clone_left,.htContextMenu .ht_clone_corner,.htContextMenu .ht_clone_debug{display:none}.htContextMenu table.htCore{border:1px solid #ccc;border-bottom-width:2px;border-right-width:2px}.htContextMenu .wtBorder{visibility:hidden}.htContextMenu table tbody tr td{background:white;border-width:0;padding:4px 6px 0 6px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.htContextMenu table tbody tr td:first-child{border:0}.htContextMenu table tbody tr td.htDimmed{font-style:normal;color:#323232}.htContextMenu table tbody tr td.current,.htContextMenu table tbody tr td.zeroclipboard-is-hover{background:#f3f3f3}.htContextMenu table tbody tr td.htSeparator{border-top:1px solid #bbb;height:0;padding:0;cursor:default}.htContextMenu table tbody tr td.htDisabled{color:#999;cursor:default}.htContextMenu table tbody tr td.htDisabled:hover{background:#fff;color:#999;cursor:default}.htContextMenu table tbody tr.htHidden{display:none}.htContextMenu table tbody tr td .htItemWrapper{margin-left:10px;margin-right:6px}.htContextMenu table tbody tr td div span.selected{margin-top:-2px;position:absolute;left:4px}.htContextMenu .ht_master .wtHolder{overflow:hidden}.htRowHeaders .ht_master.innerBorderLeft ~ .ht_clone_top_left_corner th:nth-child(2),.htRowHeaders .ht_master.innerBorderLeft ~ .ht_clone_left td:first-of-type{border-left:0 none}.handsontable .wtHider{position:relative}.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualColumnMove.on-moving--columns,.handsontable.ht__manualColumnMove.on-moving--columns thead th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualColumnMove.on-moving--columns .manualColumnResizer{display:none}.handsontable .ht__manualColumnMove--guideline,.handsontable .ht__manualColumnMove--backlight{position:absolute;height:100%;display:none}.handsontable .ht__manualColumnMove--guideline{background:#757575;width:2px;top:0;margin-left:-1px;z-index:105}.handsontable .ht__manualColumnMove--backlight{background:#343434;background:rgba(52,52,52,0.25);display:none;z-index:105;pointer-events:none}.handsontable.on-moving--columns.show-ui .ht__manualColumnMove--guideline,.handsontable.on-moving--columns .ht__manualColumnMove--backlight{display:block}.handsontable .wtHider{position:relative}.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualRowMove.on-moving--rows,.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer{display:none}.handsontable .ht__manualRowMove--guideline,.handsontable .ht__manualRowMove--backlight{position:absolute;width:100%;display:none}.handsontable .ht__manualRowMove--guideline{background:#757575;height:2px;left:0;margin-top:-1px;z-index:105}.handsontable .ht__manualRowMove--backlight{background:#343434;background:rgba(52,52,52,0.25);display:none;z-index:105;pointer-events:none}.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline,.handsontable.on-moving--rows .ht__manualRowMove--backlight{display:block}/*!
// * Pikaday
// * Copyright © 2014 David Bushell | BSD & MIT license | http://dbushell.com/
// */.pika-single{z-index:9999;display:block;position:relative;color:#333;background:#fff;border:1px solid #ccc;border-bottom-color:#bbb;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}.pika-single:before,.pika-single:after{content:" ";display:table}.pika-single:after{clear:both}.pika-single{*zoom:1}.pika-single.is-hidden{display:none}.pika-single.is-bound{position:absolute;box-shadow:0 5px 15px -5px rgba(0,0,0,.5)}.pika-lendar{float:left;width:240px;margin:8px}.pika-title{position:relative;text-align:center}.pika-label{display:inline-block;*display:inline;position:relative;z-index:9999;overflow:hidden;margin:0;padding:5px 3px;font-size:14px;line-height:20px;font-weight:bold;background-color:#fff}.pika-title select{cursor:pointer;position:absolute;z-index:9998;margin:0;left:0;top:5px;filter:alpha(opacity=0);opacity:0}.pika-prev,.pika-next{display:block;cursor:pointer;position:relative;outline:0;border:0;padding:0;width:20px;height:30px;text-indent:20px;white-space:nowrap;overflow:hidden;background-color:transparent;background-position:center center;background-repeat:no-repeat;background-size:75% 75%;opacity:.5;*position:absolute;*top:0}.pika-prev:hover,.pika-next:hover{opacity:1}.pika-prev,.is-rtl .pika-next{float:left;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==');*left:0}.pika-next,.is-rtl .pika-prev{float:right;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=');*right:0}.pika-prev.is-disabled,.pika-next.is-disabled{cursor:default;opacity:.2}.pika-select{display:inline-block;*display:inline}.pika-table{width:100%;border-collapse:collapse;border-spacing:0;border:0}.pika-table th,.pika-table td{width:14.285714285714286%;padding:0}.pika-table th{color:#999;font-size:12px;line-height:25px;font-weight:bold;text-align:center}.pika-button{cursor:pointer;display:block;box-sizing:border-box;-moz-box-sizing:border-box;outline:0;border:0;margin:0;width:100%;padding:5px;color:#666;font-size:12px;line-height:15px;text-align:right;background:#f5f5f5}.pika-week{font-size:11px;color:#999}.is-today .pika-button{color:#3af;font-weight:bold}.is-selected .pika-button{color:#fff;font-weight:bold;background:#3af;box-shadow:inset 0 1px 3px #178fe5;border-radius:3px}.is-inrange .pika-button{background:#d5e9f7}.is-startrange .pika-button{color:#fff;background:#6cb31d;box-shadow:none;border-radius:3px}.is-endrange .pika-button{color:#fff;background:#3af;box-shadow:none;border-radius:3px}.is-disabled .pika-button,.is-outside-current-month .pika-button{pointer-events:none;cursor:default;color:#999;opacity:.3}.pika-button:hover{color:#fff;background:#ff8000;box-shadow:none;border-radius:3px}.pika-table abbr{border-bottom:0;cursor:help}
///*}}}*/
/***
!end of handsontable.min.css
***/
// %/ //
//{{{
var cssName = "handsontable.min.css",
css = store.getTiddlerText("HandsontablePlugin"+"##"+cssName).replace(/^\/\//gm,"");
css = css.substring(4,css.length-4); // cut leading ***/ and trailing /*** of the section
config.shadowTiddlers[cssName] = css;
store.addNotification(cssName, refreshStyles);
//}}}
/***
|Version|custom version forked from 0.4.5|
|Requires|FoldTiddlerPlugin CustomSettingsPlugin|
|~|doesn't require FoldTiddlerPlugin, but if used, that one must be launched first|
***/
//{{{
var permaViewClass = "permaviewButton";
config.options.chkSinglePageMode = readOnly;
config.options.chkKeepPermaview = readOnly;
config.macros.reopenPermaview =
{
reopen: function()
{
// prevent empty hash to appear in history because of story.closeAllTiddlers()
var doPermaView = story.permaView;
story.permaView = function(){};
var params = getParameters(); // paramifiers in hash
story.closeAllTiddlers();
if(!params)
story.displayDefaultTiddlers();
else {
params = params.parseParams("open",null,false);
invokeParamifier(params,"onstart");
}
// get original permaView back
story.permaView = doPermaView;
},
handler: function(place,macroName,params,wikifier,paramString)
{
// parse params
var pParams = paramString.parseParams("label",null,true,false,true),
label = getParam(pParams,"label","⟳"),
prompt = getParam(pParams,"prompt","reopen permaview/default tiddlers");
// create button
createTiddlyButton(place,label,prompt,this.reopen);
}
};
// extend the permaview macro:
// when chkAddReopenToPermaview is true, add the reopen button next to the permaview
// also add the permaviewButton class to display the "non-permaview" state
config.macros.permaview.HPVP_orig_handler = config.macros.permaview.handler;
config.macros.permaview.handler = function(place,macroName,params,wikifier,paramString,tid)
{
if(config.options.chkAddReopenToPermaview) {
var wrapper = createTiddlyElement(place,"span");
place = wrapper;
}
this.HPVP_orig_handler.apply(this,arguments);
place.lastChild.classList.add(permaViewClass);
if(config.options.chkAddReopenToPermaview) {
place.lastChild.style.display = "inline";
config.macros.reopenPermaview.handler(place,"",[],wikifier,"");
place.lastChild.style.display = "inline";
// inline styling is needed for the sidebar
}
};
// keep permaview on any tiddler open/close:
story.HPVP_orig_displayTiddler = story.displayTiddler;
story.displayTiddler = function(srcElement,tiddler,template,animate,unused,customFields,toggle,animationSrc)
{
if(config.options.chkSinglePageMode)
{
var savedPermaView = this.permaView;
this.permaView = function(){}; // prevent intermediate "empty hash" state
story.closeAllTiddlers();
}
var result = this.HPVP_orig_displayTiddler.apply(this,arguments);
tiddler = (tiddler instanceof Tiddler) ? tiddler : store.fetchTiddler(tiddler);
var title = tiddler.getVisibleName();
if(config.options.chkSinglePageMode) {
this.permaView = savedPermaView;
document.title = jQuery('<div>').html(title).text() //convert and stuff like that
;
// +" - "+ store.getTiddlerText("SiteSubtitle");
}
if(config.options.chkKeepPermaview)
this.permaView();
if(config.options.chkSinglePageMode) window.scroll(0,0);
//# scroll to the top of #tiddlerDisplay , take animation into account
return result;
};
story.HPVP_orig_closeTiddler = story.closeTiddler;
story.closeTiddler = function(title,animate,unused)
{
var result = story.HPVP_orig_closeTiddler.apply(this,arguments);
if(config.options.chkKeepPermaview) {
if(config.options.chkAnimate)
// animated closing keeps tiddler visible for .permaView() for some time
setTimeout("story.permaView()",config.animDuration+10);
else
// delay without animation causes "sometimes fail to close" bug
// (ensureOpenedByURI fires earlier)
story.permaView();
}
return result;
};
// enable "back" button (both browser and keyboard) by regularly checking permaview
var ensureOpenedByURI = function()
{
if(!config.options.chkKeepPermaview) return;
var correctTiddlersAreOpen = true,
paramifiersString = getParameters(), paramifiers, filter, tiddlers,
exoticParamifiersPresent = false, i, currentlyOpenTiddlers = [];
// check if some tiddlers are missing/extra compared to permaview
if(paramifiersString) {
paramifiers = paramifiersString.parseParams("open",null,false);
filter = "";
// paramifiers[0] is a "summary" object, skip that one
for(i = 1; i < paramifiers.length; i++)
switch(paramifiers[i].name) {
// since permaview only generates either filter or open we only take them into account
case "filter": filter += paramifiers[i].value; break;
case "open": filter += "[["+paramifiers[i].value+"]]"; break;
default: exoticParamifiersPresent = true;
}
} else
filter = store.getTiddlerText("DefaultTiddlers");
if(exoticParamifiersPresent) return;
// compare the open tiddler set and the set suggested by paramifiers
tiddlers = store.filterTiddlers(filter);
story.forEachTiddler(function(title,e){currentlyOpenTiddlers.push(title);});
if(tiddlers.length != currentlyOpenTiddlers.length)
correctTiddlersAreOpen = false;
else
for(i = 0; i < tiddlers.length; i++)
if(currentlyOpenTiddlers.indexOf(tiddlers[i].title) == -1)
correctTiddlersAreOpen = false;
// save scroll position
var posX = findScrollX();
var posY = findScrollY();
// reopen if none are edited
if(!correctTiddlersAreOpen && !story.areAnyDirty()) {
config.macros.reopenPermaview.reopen();
window.scrollTo(posX,posY);
}
}
setInterval(ensureOpenedByURI,300);
//# see also https://css-tricks.com/using-the-html5-history-api/ , "ajax browser history html5"
// pragmatics: permalinks well-distinguished by social networks
// apply different styling to the permaview button, depending on permaview/"non-permaview" state
var css = "."+permaViewClass+" { font-weight: bold; color: red !important; }";
//# trace displayed stuff, on story change apply styles to .permaviewButton
// setStylesheet(css,"highlightSaving");
//# on permaview, change the styles back
// removeStyleSheet("highlightSaving");
//}}}
/***
|Description|This plugin introduces new formatters that generate sub- and superscripts|
|Version|1.0|
|Short status|<<insertEditable container:"@stateComment" size:max cell>>|
subscript syntax: {{{text,,with subscript,,}}} → text,,with subscript,,
superscript containing float syntaxes:
{{{10^1.1}}} → 10^1.1, {{{10^+1,1}}} → 10^+1,1, {{{10^-0.2}}} → 10^-0.2, {{{2^8}}} → 2^8, {{{n^3}}} → n^3
***/
//{{{
config.formatters.push({
name: "subscript",
match: ",,(?!\\s|$)",
handler: function(w) {
w.subWikifyTerm(createTiddlyElement(w.output,"sub"),/(,,)/mg);
}
},{
name: "power",
match: "\\^(?:\\+|-|±|\\+-|∓|-\\+)?\\d+(?:(?:\\.|,)\\d+)?",
lookaheadRegExp: /\^((?:\+|-|±|\+-|∓|-\+)?\d+(?:(?:\.|,)\d+)?)/g,
handler: function(w) {
this.lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = this.lookaheadRegExp.exec(w.source),
power = lookaheadMatch[1].replace("+-","±").replace("-+","∓");
createTiddlyElement(w.output,'sup',null,null/*class*/,power);
w.nextMatch = this.lookaheadRegExp.lastIndex;
}
})
//}}}
|>|//Для редактирования данных кликните в соответствующий текст; для применения изменений нажмите ctrl+enter; для отмены – esc или кликните вне области редактирования.//|
|Описание урока|<<insertEditable tiddler:[[$1]] container:"#Описание" size:max>>|
|Дополнительно ("подвал" в оглавлении урока)|<<insertEditable tiddler:[[$1]] container:"#Дополнительно об уроке" size:max>>|
% tabs %((
%% old editor %%
<<fet set:'tag[$1] AND tag[unitStep]' sortable
begin '"||название шага|Название, видимое пользователю+++^*@[*]Если совпадает с названием, вводить не надо===|ссылка на контент (в iframe)|тип|\n"'
writeToList 'insert("!","size:max")
+"|" + insert(":visibleName","cell")
+ "|" + insert(":ссылка на контент шага","cell")
+ "|" + insert(":тип шага","size:min")
+ "|+++^*[*]height: "+ insert(":contentHeight") +"<br>contents thumb: "+insert(":table of contents thumb")+"==="'
end 'adder("","Добавить шаг урока","bottom")'
none:end>>
%% spreadsheet editor %%
<<handsontable
filter:{{'set: tag[$1] AND tag[unitStep] sortField[orderCounter]'}}
containers:"" "" "!" ":visibleName" ":ссылка на контент шага" ":тип шага" ""
options:'{
colHeaders: ["","","название шага","название, видимое пользователю","ссылка на контент (в iframe)", "тип",""],
manualColumnResize: [22,22,"","","","",26],
renderer: function (instance, td, row, col, prop, value, cellProperties)
{
Handsontable.Dom.empty(td);
var stuffToWikify = value,
container = instance.container.parentElement,
filter = jQuery(container).data("tiddlersFilter"),
tid = store.filterTiddlers(filter)[row];
if(col == 0) {
stuffToWikify = ""+(row+1);
td.classList.add("htRight");
td.style["background-color"] = "#EEE";
}
if(col == 1 && row < tiddlers.length)
stuffToWikify = "<<itemMenu [["+tid.title+"]] \""+filter+"\" field:orderCounter>"+">";
if(col == 6)
stuffToWikify = "+++*[*]height: <<insertEditable tiddler:[["+ tid.title +"]] "+
"container:\":contentHeight\">"+"><br>contents thumb: <<insertEditable tiddler:[["+ tid.title +"]] container:\":table of contents thumb\">"+">==="
wikify(""+(stuffToWikify || ""),td);
return td;
}
}'
>>
))%%
<<fet set:'tag[$1] AND tag[attachment]' sortable
begin '"||Название|Название, видимое пользователю+++^*@[*]Если совпадает с названием, вводить не надо===|Ссылка+++^*@[*]предпочтительно – относительная!===|Размер+++^*@[*]типа \"257 КБ\" или \"1.4 МБ\"===|\n"'
writeToList 'insert("!","size:max")
+"|" + insert(":visibleName","cell")
+"|" + insert(":ссылка на материал","cell")
+"|" + insert(":занимает памяти","")'
end 'adder("","Добавить ссылку на материал для скачивания")'
none:end>>
<<fet set:'tag[$1] AND tag[alternativeUnit]' sortable
begin '"|||Название, видимое пользователю+++^*@[*]Если совпадает с названием, вводить не надо===|\n"'
writeToList 'insert("!","size:max")
+"|" + insert(":visibleName","cell")'
end 'adder("text:{{\"<<lessonAdminPanel>\"+\">/%\\n!!!Описание\\n!%/\"}}","Добавить \"альтернативный\" урок")'
none:end>>
++++[Галерея]
|папка с картинками|<<insertEditable tiddler:[[$1]] container:":galleryFolder" fillElement>>|
<<handsontable [[$1##gallery data]] options:'{ colHeaders: ["имя файла", "заголовок", "ссылка авторства", "автор", "thumb_name", "thumb_x2_name"] }'>>
===
[[edit panel|LessonAdminPanel]]
/***
|Short status|<<insertEditable container:"@stateComment" size:max cell>>|
|Version|0.1.1|
***/
//{{{
config.options.chkRebindLinksSilently = false;
Tiddler.prototype.orig_assign_rename = Tiddler.prototype.assign;
Tiddler.prototype.assign = function(title,text,modifier,modified,tags,created,fields,creator)
{
var tagsOnly = true; // only tags renaming is implemented, not link rebuilding
var oldTitle = this.title, renaming = title && (oldTitle != title),
tagged, linking = [], i;
var msgConfirmRetag = "Some tiddlers are tagged with the tiddler being renamed, change their tags accordingly?",
msgConfirmRelink = "Some tiddlers have links to the tiddler being renamed, change them to keep links alive?",
msgConfirmRelinkAndRetag = "Some tiddlers are tagged with the tiddler being renamed, some have links to it, change them accordingly?";
var fixTags = function(){
for(var i = 0; i < tagged.length; i++)
// rename the tag (.indexOf is always > -1)
tagged[i].tags[tagged[i].tags.indexOf(oldTitle)] = title;
};
//# add notifying/refreshing (at least optional): renamed tags are not shown
var fixLinks = function(tiddler){
//# build this, use oldTitle and title
// see how links are found in .changed (take into account BetterReferencesPlugin)
};
if (renaming) {
tagged = store.getTaggedTiddlers(this.title);
linking = store.getReferringTiddlers(this.title);
if(tagged.length) {
if(!tagsOnly && linking.length) {
if(config.options.chkRebindLinksSilently ||
confirm(msgConfirmRelinkAndRetag))
fixTags();
for(i = 0; i < linking.length; i++)
fixLinks(linking[i]);
} else
if(config.options.chkRebindLinksSilently ||
confirm(msgConfirmRetag)) {
fixTags();
}
} else if(!tagsOnly && linking.length)
if(config.options.chkRebindLinksSilently ||
confirm(msgConfirmRelink))
for(i = 0; i < linking.length; i++)
fixLinks(linking[i]);
}
return Tiddler.prototype.orig_assign_rename.apply(this,arguments);
};
//}}}
/***
тестируем в [[test bootstrap]]
***/
//{{{
// using actual link elements in the template works much better as CSS is applied only in that contex
//jQuery("head").append("<link rel='stylesheet' type='text/css' href='css/bootstrap.min.css' />");
//jQuery("head").append("<link rel='stylesheet' type='text/css' href='css/course.css' />");
/*
//# use jQuery.getScript("js/bootstrap.min.js") on "test bootstrap" tiddler open
story.bs_orig_displayTiddler = story.displayTiddler;
story.displayTiddler = function (srcElement,tiddler,template,animate,unused,customFields,toggle,animationSrc)
{
var res = this.bs_orig_displayTiddler.apply(this,arguments);
var title = (tiddler instanceof Tiddler) ? tiddler.title : tiddler;
if(title == "test bootstrap")
jQuery.getScript("js/bootstrap.min.js");
return res;
};
*/
//}}}
/***
1. loading bs.js in MarkupPostBody via {{{<script src="js/bootstrap.min.js"></script>}}} doesn't work: looks like it must be launched when the DOM is built already
retest js, notes below may be a misinterpretation (it is CSS which was missing):
2. [[loading|LoadBootstrapPlugin]] bs.js async on tiddler open doesn't work "as expected" as well!
----
3. ???
4. check what happens if bs.js is loaded twice?
5. check if bs.js has to be loaded each time the tiddler is reopened after closing (try to just reopen first)
6. check how 2+ bs.js interact
***/
[[Root]]
[[1 класс|Окружающий мир. 1й класс]]
[[2 класс|Окружающий мир. 2 класс]]
[[3 класс|Окружающий мир. 3 класс]]
[[4 класс|Окружающий мир. 4 класс]]
[[Генетика|Генетика]]
/***
|''Version''|1.0|
|Short status|<<insertEditable container:"@stateComment" size:max cell>>|
text `some.code` more text more `code`, two {{{`}}} one by one: ``; and finally `multiline
code` and
* `multiline code
in a list`
the behaviour is the same as with {{{{{{}}}.
***/
//{{{
config.formatters.push({
name: "markDownCode",
match: "`",
handler: function(w)
{
// version based on the "characterFormat", {{{ case, not tested yet:
var lookaheadRegExp = /`((?:.|\n)*?)`/mg;
lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = lookaheadRegExp.exec(w.source);
if(!lookaheadMatch || lookaheadMatch.index != w.matchStart)
return;
createTiddlyElement(w.output,"code",null,null,lookaheadMatch[1]);
w.nextMatch = lookaheadRegExp.lastIndex;
}
});
//}}}
<!--{{{-->
<link rel='alternate' type='application/rss+xml' title='RSS' href='index.xml' />
<!-- link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=cyrillic" rel="stylesheet" -->
<style>
@font-face {
font-family: open-sans;
src: url(./_Commons/widgets/1.0.1/fonts/OpenSans/OpenSans-Regular.ttf);
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: open-sans;
src: url(./_Commons/widgets/1.0.1/fonts/OpenSans/OpenSans-Bold.ttf);
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: conqueror;
src: url(./fonts/Conqueror/Conqueror.webkit/Conqueror.ttf);
}
</style>
<!--}}}-->
/***
|Name|NestedSlidersPlugin|
|Source|http://www.TiddlyTools.com/#NestedSlidersPlugin|
|Documentation|http://www.TiddlyTools.com/#NestedSlidersPluginInfo|
|Version|2.4.9|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|show content in nest-able sliding/floating panels, without creating separate tiddlers for each panel's content|
!!!!!Configuration
<<<
<<option chkFloatingSlidersAnimate>> allow floating sliders to animate when opening/closing
Note: for floating slider animation to occur you must also allow animation in general (see [[AdvancedOptions]]).
<<<
!!!!!Code
***/
//{{{
version.extensions.NestedSlidersPlugin= {major: 2, minor: 4, revision: 9, date: new Date(2008,11,15)};
// options for deferred rendering of sliders that are not initially displayed
if (config.options.chkFloatingSlidersAnimate===undefined)
config.options.chkFloatingSlidersAnimate=false; // avoid clipping problems in IE
// default styles for 'floating' class
setStylesheet(".floatingPanel { position:absolute; z-index:10; padding:0.5em; margin:0em; \
background-color:#eee; color:#000; border:1px solid #000; text-align:left; }","floatingPanelStylesheet");
// if removeCookie() function is not defined by TW core, define it here.
if (window.removeCookie===undefined) {
window.removeCookie=function(name) {
document.cookie = name+'=; expires=Thu, 01-Jan-1970 00:00:01 UTC; path=/;';
}
}
config.formatters.push( {
name: "nestedSliders",
match: "\\n?\\+{3}",
terminator: "\\s*\\={3}\\n?",
lookahead: "\\n?\\+{3}(\\+)?(\\([^\\)]*\\))?(\\!*)?(\\^(?:[^\\^\\*\\@\\[\\>]*\\^)?)?(\\*)?(\\@)?(?:\\{\\{([\\w]+[\\s\\w]*)\\{)?(\\[[^\\]]*\\])?(\\[[^\\]]*\\])?(?:\\}{3})?(\\#[^:]*\\:)?(\\>)?(\\.\\.\\.)?\\s*",
handler: function(w)
{
lookaheadRegExp = new RegExp(this.lookahead,"mg");
lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = lookaheadRegExp.exec(w.source)
if(lookaheadMatch && lookaheadMatch.index == w.matchStart)
{
var defopen=lookaheadMatch[1];
var cookiename=lookaheadMatch[2];
var header=lookaheadMatch[3];
var panelwidth=lookaheadMatch[4];
var transient=lookaheadMatch[5];
var hover=lookaheadMatch[6];
var buttonClass=lookaheadMatch[7];
var label=lookaheadMatch[8];
var openlabel=lookaheadMatch[9];
var panelID=lookaheadMatch[10];
var blockquote=lookaheadMatch[11];
var deferred=lookaheadMatch[12];
// location for rendering button and panel
var place=w.output;
// default to closed, no cookie, no accesskey, no alternate text/tip
var show="none"; var cookie=""; var key="";
var closedtext=">"; var closedtip="";
var openedtext="<"; var openedtip="";
// extra "+", default to open
if (defopen) show="block";
// cookie, use saved open/closed state
if (cookiename) {
cookie=cookiename.trim().slice(1,-1);
cookie="chkSlider"+cookie;
if (config.options[cookie]==undefined)
{ config.options[cookie] = (show=="block") }
show=config.options[cookie]?"block":"none";
}
// parse label/tooltip/accesskey: [label=X|tooltip]
if (label) {
var parts=label.trim().slice(1,-1).split("|");
closedtext=parts.shift();
if (closedtext.substr(closedtext.length-2,1)=="=")
{ key=closedtext.substr(closedtext.length-1,1); closedtext=closedtext.slice(0,-2); }
openedtext=closedtext;
if (parts.length) closedtip=openedtip=parts.join("|");
else { closedtip="show "+closedtext; openedtip="hide "+closedtext; }
}
// parse alternate label/tooltip: [label|tooltip]
if (openlabel) {
var parts=openlabel.trim().slice(1,-1).split("|");
openedtext=parts.shift();
if (parts.length) openedtip=parts.join("|");
else openedtip="hide "+openedtext;
}
var title=show=='block'?openedtext:closedtext;
var tooltip=show=='block'?openedtip:closedtip;
// create the button
if (header) { // use "Hn" header format instead of button/link
var lvl=(header.length>5)?5:header.length;
var btn = createTiddlyElement(createTiddlyElement(place,"h"+lvl,null,null,null),"a",null,buttonClass,title);
btn.onclick=onClickNestedSlider;
btn.setAttribute("href","javascript:;");
btn.setAttribute("title",tooltip);
}
else
var btn = createTiddlyButton(place,title,tooltip,onClickNestedSlider,buttonClass);
btn.innerHTML=title; // enables use of HTML entities in label
// set extra button attributes
btn.setAttribute("closedtext",closedtext);
btn.setAttribute("closedtip",closedtip);
btn.setAttribute("openedtext",openedtext);
btn.setAttribute("openedtip",openedtip);
btn.sliderCookie = cookie; // save the cookiename (if any) in the button object
btn.defOpen=defopen!=null; // save default open/closed state (boolean)
btn.keyparam=key; // save the access key letter ("" if none)
if (key.length) {
btn.setAttribute("accessKey",key); // init access key
btn.onfocus=function(){this.setAttribute("accessKey",this.keyparam);}; // **reclaim** access key on focus
}
btn.setAttribute("hover",hover?"true":"false");
btn.onmouseover=function(ev) {
// optional 'open on hover' handling
if (this.getAttribute("hover")=="true" && this.sliderPanel.style.display=='none') {
document.onclick.call(document,ev); // close transients
onClickNestedSlider(ev); // open this slider
}
// mouseover on button aligns floater position with button
if (window.adjustSliderPos) window.adjustSliderPos(this.parentNode,this,this.sliderPanel);
}
// create slider panel
var panelClass=panelwidth?"floatingPanel":"sliderPanel";
if (panelID) panelID=panelID.slice(1,-1); // trim off delimiters
var panel=createTiddlyElement(place,"div",panelID,panelClass,null);
panel.button = btn; // so the slider panel know which button it belongs to
btn.sliderPanel=panel; // so the button knows which slider panel it belongs to
panel.defaultPanelWidth=(panelwidth && panelwidth.length>2)?panelwidth.slice(1,-1):"";
panel.setAttribute("transient",transient=="*"?"true":"false");
panel.style.display = show;
panel.style.width=panel.defaultPanelWidth;
panel.onmouseover=function(event) // mouseover on panel aligns floater position with button
{ if (window.adjustSliderPos) window.adjustSliderPos(this.parentNode,this.button,this); }
// render slider (or defer until shown)
w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length;
if ((show=="block")||!deferred) {
// render now if panel is supposed to be shown or NOT deferred rendering
w.subWikify(blockquote?createTiddlyElement(panel,"blockquote"):panel,this.terminator);
// align floater position with button
if (window.adjustSliderPos) window.adjustSliderPos(place,btn,panel);
}
else {
var src = w.source.substr(w.nextMatch);
var endpos=findMatchingDelimiter(src,"+++","===");
panel.setAttribute("raw",src.substr(0,endpos));
panel.setAttribute("blockquote",blockquote?"true":"false");
panel.setAttribute("rendered","false");
w.nextMatch += endpos+3;
if (w.source.substr(w.nextMatch,1)=="\n") w.nextMatch++;
}
}
}
}
)
function findMatchingDelimiter(src,starttext,endtext) {
var startpos = 0;
var endpos = src.indexOf(endtext);
// check for nested delimiters
while (src.substring(startpos,endpos-1).indexOf(starttext)!=-1) {
// count number of nested 'starts'
var startcount=0;
var temp = src.substring(startpos,endpos-1);
var pos=temp.indexOf(starttext);
while (pos!=-1) { startcount++; pos=temp.indexOf(starttext,pos+starttext.length); }
// set up to check for additional 'starts' after adjusting endpos
startpos=endpos+endtext.length;
// find endpos for corresponding number of matching 'ends'
while (startcount && endpos!=-1) {
endpos = src.indexOf(endtext,endpos+endtext.length);
startcount--;
}
}
return (endpos==-1)?src.length:endpos;
}
//}}}
//{{{
window.onClickNestedSlider=function(e)
{
if (!e) var e = window.event;
var theTarget = resolveTarget(e);
while (theTarget && theTarget.sliderPanel==undefined) theTarget=theTarget.parentNode;
if (!theTarget) return false;
var theSlider = theTarget.sliderPanel;
var isOpen = theSlider.style.display!="none";
// if SHIFT-CLICK, dock panel first (see [[MoveablePanelPlugin]])
if (e.shiftKey && config.macros.moveablePanel) config.macros.moveablePanel.dock(theSlider,e);
// toggle label
theTarget.innerHTML=isOpen?theTarget.getAttribute("closedText"):theTarget.getAttribute("openedText");
// toggle tooltip
theTarget.setAttribute("title",isOpen?theTarget.getAttribute("closedTip"):theTarget.getAttribute("openedTip"));
// deferred rendering (if needed)
if (theSlider.getAttribute("rendered")=="false") {
var place=theSlider;
if (theSlider.getAttribute("blockquote")=="true")
place=createTiddlyElement(place,"blockquote");
wikify(theSlider.getAttribute("raw"),place);
theSlider.setAttribute("rendered","true");
}
// show/hide the slider
if(config.options.chkAnimate && (!hasClass(theSlider,'floatingPanel') || config.options.chkFloatingSlidersAnimate))
anim.startAnimating(new Slider(theSlider,!isOpen,e.shiftKey || e.altKey,"none"));
else
theSlider.style.display = isOpen ? "none" : "block";
// reset to default width (might have been changed via plugin code)
theSlider.style.width=theSlider.defaultPanelWidth;
// align floater panel position with target button
if (!isOpen && window.adjustSliderPos) window.adjustSliderPos(theSlider.parentNode,theTarget,theSlider);
// if showing panel, set focus to first 'focus-able' element in panel
if (theSlider.style.display!="none") {
var ctrls=theSlider.getElementsByTagName("*");
for (var c=0; c<ctrls.length; c++) {
var t=ctrls[c].tagName.toLowerCase();
if ((t=="input" && ctrls[c].type!="hidden") || t=="textarea" || t=="select")
{ try{ ctrls[c].focus(); } catch(err){;} break; }
}
}
var cookie=theTarget.sliderCookie;
if (cookie && cookie.length) {
config.options[cookie]=!isOpen;
if (config.options[cookie]!=theTarget.defOpen) window.saveOptionCookie(cookie);
else window.removeCookie(cookie); // remove cookie if slider is in default display state
}
// prevent SHIFT-CLICK from being processed by browser (opens blank window... yuck!)
// prevent clicks *within* a slider button from being processed by browser
// but allow plain click to bubble up to page background (to close transients, if any)
if (e.shiftKey || theTarget!=resolveTarget(e))
{ e.cancelBubble=true; if (e.stopPropagation) e.stopPropagation(); }
Popup.remove(); // close open popup (if any)
return false;
}
//}}}
//{{{
// click in document background closes transient panels
document.nestedSliders_savedOnClick=document.onclick;
document.onclick=function(ev) { if (!ev) var ev=window.event; var target=resolveTarget(ev);
if (document.nestedSliders_savedOnClick)
var retval=document.nestedSliders_savedOnClick.apply(this,arguments);
// if click was inside a popup... leave transient panels alone
var p=target; while (p) if (hasClass(p,"popup")) break; else p=p.parentNode;
if (p) return retval;
// if click was inside transient panel (or something contained by a transient panel), leave it alone
var p=target; while (p) {
if ((hasClass(p,"floatingPanel")||hasClass(p,"sliderPanel"))&&p.getAttribute("transient")=="true") break;
p=p.parentNode;
}
if (p) return retval;
// otherwise, find and close all transient panels...
var all=document.all?document.all:document.getElementsByTagName("DIV");
for (var i=0; i<all.length; i++) {
// if it is not a transient panel, or the click was on the button that opened this panel, don't close it.
if (all[i].getAttribute("transient")!="true" || all[i].button==target) continue;
// otherwise, if the panel is currently visible, close it by clicking it's button
if (all[i].style.display!="none") window.onClickNestedSlider({target:all[i].button})
if (!hasClass(all[i],"floatingPanel")&&!hasClass(all[i],"sliderPanel")) all[i].style.display="none";
}
return retval;
};
//}}}
//{{{
// adjust floating panel position based on button position
if (window.adjustSliderPos==undefined) window.adjustSliderPos=function(place,btn,panel) {
if (hasClass(panel,"floatingPanel") && !hasClass(panel,"undocked")) {
// see [[MoveablePanelPlugin]] for use of 'undocked'
var rightEdge=document.body.offsetWidth-1;
var panelWidth=panel.offsetWidth;
var left=0;
var top=btn.offsetHeight;
if (place.style.position=="relative" && findPosX(btn)+panelWidth>rightEdge) {
left-=findPosX(btn)+panelWidth-rightEdge; // shift panel relative to button
if (findPosX(btn)+left<0) left=-findPosX(btn); // stay within left edge
}
if (place.style.position!="relative") {
var left=findPosX(btn);
var top=findPosY(btn)+btn.offsetHeight;
var p=place; while (p && !hasClass(p,'floatingPanel')) p=p.parentNode;
if (p) { left-=findPosX(p); top-=findPosY(p); }
if (left+panelWidth>rightEdge) left=rightEdge-panelWidth;
if (left<0) left=0;
}
panel.style.left=left+"px"; panel.style.top=top+"px";
}
}
//}}}
//{{{
// TW2.1 and earlier:
// hijack Slider stop handler so overflow is visible after animation has completed
Slider.prototype.coreStop = Slider.prototype.stop;
Slider.prototype.stop = function()
{ this.coreStop.apply(this,arguments); this.element.style.overflow = "visible"; }
// TW2.2+
// hijack Morpher stop handler so sliderPanel/floatingPanel overflow is visible after animation has completed
if (version.major+.1*version.minor+.01*version.revision>=2.2) {
Morpher.prototype.coreStop = Morpher.prototype.stop;
Morpher.prototype.stop = function() {
this.coreStop.apply(this,arguments);
var e=this.element;
if (hasClass(e,"sliderPanel")||hasClass(e,"floatingPanel")) {
// adjust panel overflow and position after animation
e.style.overflow = "visible";
if (window.adjustSliderPos) window.adjustSliderPos(e.parentNode,e.button,e);
}
};
}
//}}}
/***
|Version|0.7.0|
О плагине и разработке <<tiddler [[to do list template##main]] with:"regarding NestedSwitcherPlugin" with:orderNtpNotes noedit>>
***/
//{{{
// regexp helpers:
var begin = "^",
someDotsDontRemember = "\\.*",
someDots = "("+someDotsDontRemember+")",
mainHead = "%((?: tabs[_><]? )|(?: js )|(?:%+))%\\((\\w*)\\($",
mainHeadDontRemember = "%(?:(?: tabs[_><]? )|(?: js )|(?:%+))%\\(\\w*\\($",
terminator = "\\)\\)%%\\n?";
var nestedSwitchersFormatter =
{
name: "nestedSwitchers",
match: begin + someDotsDontRemember + mainHeadDontRemember,
matchAgain: begin + someDots + mainHead
}
nestedSwitchersFormatter.handler = function(w)
{
// check how many dots go before the %...% (the nesting level)
var matchAgainRegExp = new RegExp(this.matchAgain,"mg");
matchAgainRegExp.lastIndex = w.matchStart;
var dots = matchAgainRegExp.exec(w.source)[1];
var lookahead = begin + dots + mainHead +"((?:.|\n)*?)"+ begin + dots + terminator;
lookaheadRegExp = new RegExp(lookahead,"mg");
lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = lookaheadRegExp.exec(w.source);
if(lookaheadMatch && lookaheadMatch.index == w.matchStart)
{
var param = lookaheadMatch[2];
switch(lookaheadMatch[1])
{
case " tabs< ":
case " tabs> ":
case " tabs_ ":
//# do extra stuff here, propagate
case " tabs ":
case "%":
if(param.substr(0,7) != "txtTabs")
param = "txtTabs" + param.substr(0,1).toUpperCase() +
param.substr(1);
this.tabsHandler(lookaheadMatch[3],w.output,dots,param,w);
break;
case " js ":
case "%%":
this.jsHandler(lookaheadMatch[3],w.output,dots,param,w);
break;
}
w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length;
}
};
var tabNameAddition = "_text_:";
nestedSwitchersFormatter.tabsHandler = function(text,place,dots,cookieName,wikifier)
{
// create the place where tabs should be put
var el = "div", validTab = false,
wrapper = createTiddlyElement(null,el,null,"tabsetWrapper " + cookieName),
tabset = createTiddlyElement(wrapper,el,null,"tabset",null,{cookie:cookieName});
// parse the text
// .%% label 1 % tooltip 1 % or .<% label 1 %
// content 1
// ...
var match, startTextIndex, endTextIndex,
tabText, tabLabel, tabTooltip, transclusionArguments, tab, defaultTab,
dotsPattern = dots.replace(".","\\."),
labelTextPattern = "(?:[^%\\n]|(?:%%))*?", // any of ((not % or linebreak) or %%)
labelPattern = "%% +("+labelTextPattern+") +(?:% +("+labelTextPattern+") +)?"+
"(?:%(\\[\\["+labelTextPattern+"\\]\\]"+labelTextPattern+"))?%%$",
headPattern = begin + dotsPattern + labelPattern,
headRegExp = new RegExp(headPattern,"mg");
match = headRegExp.exec(text);
defaultTab = match ? match[1] : "";
while(match)
{
startTextIndex = match.index + match[0].length;
tabLabel = match[1] .replace("%%","%");
tabTooltip = (match[2] || "").replace("%%","%");
transclusionArguments = (match[3] || "").replace("%%","%");
if(match = headRegExp.exec(text))
endTextIndex = match.index;
else
endTextIndex = text.length;
tabText = transclusionArguments ? "<<tiddler "+transclusionArguments+">>" :
jQuery.trim(text.substring(startTextIndex,endTextIndex));
tab = createTiddlyElement(tabset,"a",null,"tab tabUnselected",null,{
tab : tabLabel, content: tabNameAddition + tabText,
href: "javascript:;"
})
if(tabTooltip)
tab.setAttribute("title",tabTooltip);
if(tabLabel)
// tab.appendChild(document.createTextNode(tabLabel));
wikify(tabLabel,tab,null,wikifier.tiddler)
tab.onclick = config.macros.tabs.onClickTab;
tab.title = tabTooltip;
createTiddlyElement(tab,"span",null,null," ",{style:"font-size:0pt;line-height:0px"});
//# is this necessary? this was taken from config.macros.tabs.handler
if(config.options[cookieName] == tabLabel)
validTab = true;
}
if(!validTab)
config.options[cookieName] = defaultTab;
place.appendChild(wrapper);
config.macros.tabs.switchTab(tabset,config.options[cookieName]);
};
// hijack config.macros.tabs.switchTab so that is takes into account "text" params
// (aside normal "where text is" params)
config.macros.tabs.bare_switchTab = config.macros.tabs.switchTab;
config.macros.tabs.switchTab = function(tabset,tab)
{
if(!store.ntp_orig_getTiddlerText)
{
store.ntp_orig_getTiddlerText = store.getTiddlerText;
store.getTiddlerText = function(title,defaultText)
{
if(title.substr(0,tabNameAddition.length) == tabNameAddition)
return title.substr(tabNameAddition.length);
return this.ntp_orig_getTiddlerText(title,defaultText);
};
store.ntp_orig_getTiddler = store.getTiddler;
store.getTiddler = function(title)
{
if(title.substr(0,tabNameAddition.length) == tabNameAddition) {
var tidElem = story.findContainingTiddler(tabset),
tidName = tidElem ? tidElem.getAttribute("tiddler") : "";
return store.fetchTiddler(tidName);
}
return this.ntp_orig_getTiddler(title);
};
}
this.bare_switchTab.apply(this,arguments);
if(store.ntp_orig_getTiddlerText)
{
store.getTiddlerText = store.ntp_orig_getTiddlerText;
store.getTiddler = store.ntp_orig_getTiddler;
}
store.ntp_orig_getTiddlerText = null;
// this complicated stuff about .getTiddlerText is needed for nested tabs
// the stuff about .getTiddler gives the right "tiddler" context for the wikification
};
nestedSwitchersFormatter.jsHandler = function(text,place,dots,param,wikifier)
{
//# for testing:
createTiddlyElement(place,"div",null,null,"js: "+text,{style: "color:green; white-space:pre;"})
};
config.formatters.push(nestedSwitchersFormatter);
//}}}
/***
|''Name''|NightModePlugin|
|''Description''|This plugin introduces the {{{switchNightMode}}} macro that allows to switch "day mode" and "night mode" styles|
|''Version''|0.9.8|
|''~CoreVersion''||
|''Author''|Yakov Litvin|
!!!Syntax
{{{
<<switchNightMode label:"try this">>
}}}
!!!Demo
<<switchNightMode label:"try this">>
!!!Code
***/
//{{{
var applySectionCSS = function(section) {
var text = store.getRecursiveTiddlerText("NightModePlugin##"+section,"",1);
text = text.substring(3, text.length-3);
return setStylesheet(text,section);
};
config.macros.switchNightMode = {
nightCPText: store.getTiddlerText("NightModePlugin##NightModeColorPalette"),
goNight: function() { // doesn't check or change the cookie-parameter
var paletteName = "ColorPalette",
paletteTid = store.fetchTiddler(paletteName);
this.dayPalette = {
tid: paletteTid ? paletteTid : null,
shadow: paletteTid ? null : config.shadowTiddlers[paletteName]
};
var nigthTid = new Tiddler(paletteName);
nigthTid.assign(null,this.nightCPText)
store.saveTiddler(nigthTid); // attach the tiddler, recalc slices, invoke notifiers
applySectionCSS("TextBoxColors");
applySectionCSS("~FewerColors");
},
goDay: function() { // doesn't check or change the cookie-parameter
var paletteName = "ColorPalette";
if(this.dayPalette.shadow)
config.shadowTiddlers[paletteName] = this.dayPalette.shadow;
store.removeTiddler(paletteName); // to recalc slices of ColorPalette
if(this.dayPalette.tid)
store.saveTiddler(this.dayPalette.tid);
removeStyleSheet("TextBoxColors");
removeStyleSheet("~FewerColors");
},
switchMode: function() {
if(config.options.chkNightMode)
config.macros.switchNightMode.goDay();
else
config.macros.switchNightMode.goNight();
config.options.chkNightMode = !config.options.chkNightMode;
// "baking" doesn't work yet..
if(saveOption)
saveOption("chkNightMode");
else
saveOptionCookie("chkNightMode");
refreshColorPalette();
},
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var pParams = paramString.parseParams("anon",null,true,false,true),
label = getParam(pParams,"label","switch");
createTiddlyButton(place,label,""/*tooltip*/,this.switchMode);
}
};
var orig_saveChanges = saveChanges;
saveChanges = function(onlyIfDirty,tiddlers)
{
// make sure that the night palette is not saved
var toggle = config.options.chkNightMode;
if(toggle) {
if(config.macros.switchNightMode.dayPalette.tid)
store.addTiddler(config.macros.switchNightMode.dayPalette.tid);
else
store.deleteTiddler("ColorPalette");
}
orig_saveChanges.apply(this,arguments);
if(toggle) {
var nigthTid = new Tiddler("ColorPalette");
nigthTid.assign(null,config.macros.switchNightMode.nightCPText)
store.addTiddler(nigthTid);
}
}
// apply night mode if it was set previously
// (.init method of the macro shouldn't be used as it is invoked too late and would require refreshing)
if(config.options.chkNightMode)
config.macros.switchNightMode.goNight();
//}}}
/***
!!!TextBoxColors
{{{
input, select,
textarea { color:[[ColorPalette::Foreground]]; background-color:[[ColorPalette::Background]]; }
}}}
!!!~FewerColors
{{{
.title, h1, h2, h3, h4, h5, h6
{ color:[[ColorPalette::PrimaryDark]]; }
}}}
!!!NightModeColorPalette
Background: #000
Foreground: #fff
~PrimaryPale: #730
~PrimaryLight: #e70
~PrimaryMid: #fb4
~PrimaryDark: #feb
~SecondaryPale: #003
~SecondaryLight: #017
~SecondaryMid: #24b
~SecondaryDark: #7be
~TertiaryPale: #111
~TertiaryLight: #333
~TertiaryMid: #666
~TertiaryDark: #999
Error: #f44
***/
//{{{
// cookie helpers (see https://stackoverflow.com/a/4825695/3995261)
function setCookie(name, value) { // we don't need expiring yet (as well as cookie deleting)
document.cookie = name + "=" + encodeURIComponent(value) + "; path=/";
}
function getCookie(name, defaultValue) {
if(!name) return undefined;
var startPosition = document.cookie.indexOf(name + "=");
if(startPosition == -1)
return defaultValue;
var valuePosition = startPosition + name.length + 1,
valueEndPosition = document.cookie.indexOf(";", valuePosition);
if(valueEndPosition == -1)
valueEndPosition = document.cookie.length;
return decodeURIComponent(document.cookie.substring(valuePosition,valueEndPosition));
}
// helpers to detect mobile devices, different browsers (using https://github.com/lancedikson/bowser)
function isSmartPhone() { return !!bowser.mobile }
function isTablet() { return !!bowser.tablet }
function isAndroid() { return !!bowser.android }
function isiOS() { return !!bowser.ios }
function isBadBrowser() { return !!bowser.msie }
function isYaBrowser() { return bowser.name == "Yandex Browser" }
function isChBrowser() { return !!bowser.chrome }
function isFfBrowser() { return !!bowser.firefox }
function isUnknownBrowser() {
return !isBadBrowser() && !isYaBrowser() && !isFfBrowser() && !isChBrowser()
}
// version thresholds may need some adjustments
function isOutdatedYaBrowser() {
return isYaBrowser() && parseInt(bowser.version) < 18
}
function isOutdatedFfBrowser() {
return isFfBrowser() && parseInt(bowser.version) < 58
}
function isOutdatedChBrowser() {
return isChBrowser() && parseInt(bowser.version) < 65
}
// see https://docs.google.com/spreadsheets/d/1E147atrF4SEAg9w3l3muqKy-EDgU3yq4jz5InW0fEbY/edit
// popup creating helpers
function notifyIfMobile() {
var dontShowAgainCookie = 'dontNotifyMobileUnsupported';
if(!isSmartPhone()) return;
if(getCookie(dontShowAgainCookie,false)) return;
var popupContainer = createTiddlyElement(document.body,'div',null,null,'popup_container');
popupContainer.innerHTML = '<style>'+popupsCSS.mobile+'</style>'+ popupsHtmls.mobile;
jQuery('.wrong_device_popup_button_dismiss_popup').on('click',function(){
var checkbox = document.querySelector('.wrong_device_popup_checkbox_remember_skip');
if(checkbox && checkbox.checked)
setCookie(dontShowAgainCookie,1);
document.body.removeChild(popupContainer);
});
}
function notifyIfBrowserIsNotNice() {
// set/pick cookies' and templates' names
var dontShowAgainCookie, templateName;
if(isBadBrowser()) {
templateName = 'badBrowser';
} else if(isUnknownBrowser()) { // once + once after 2 weeks
dontShowAgainCookie = 'dontNotifyBrowserUnknown';
templateName = getCookie(dontShowAgainCookie) ? 'unknownBrowserRepeat' : 'unknownBrowser';
} else if(isOutdatedYaBrowser()) {
dontShowAgainCookie = 'dontNotifyOldBrowser';
templateName = 'oldYandexBrowser';
} else if(isOutdatedFfBrowser()) {
dontShowAgainCookie = 'dontNotifyOldBrowser';
templateName = 'oldFireFoxBrowser';
} else if(isOutdatedChBrowser()) {
dontShowAgainCookie = 'dontNotifyOldBrowser';
templateName = 'oldChromeBrowser';
} else
return;
var cookieValue = getCookie(dontShowAgainCookie),
twoWeeks = 1000 * 60 * 60 * 24 * 14; // in milliseconds
// for unknown browsers, we notify again after 2 weeks; for others, we don't notify if user asked to
if(cookieValue && (dontShowAgainCookie != 'dontNotifyBrowserUnknown' || // cookie as flag
((new Date()).getTime() - parseInt(cookieValue) < twoWeeks) )) // cookie as timestamp
return;
var template = popupsHtmls[templateName];
if(isUnknownBrowser()) {
if(isTablet() && isAndroid())
template = template
.replace(/@@linkToYandexBrowser@@/gm, "market://details?id=com.yandex.browser")
.replace(/@@linkToChromeBrowser@@/gm, "market://details?id=com.android.chrome")
.replace(/@@linkToFireFoxBrowser@@/gm,"")
.replace(/@@hideFFonTablets@@/gm,"style='display:none;'");
else if(isTablet() && isiOS())
template = template
.replace(/@@linkToYandexBrowser@@/gm, "https://itunes.apple.com/ru/app/id483693909")
.replace(/@@linkToChromeBrowser@@/gm, "https://itunes.apple.com/ru/app/id535886823")
.replace(/@@linkToFireFoxBrowser@@/gm,"")
.replace(/@@hideFFonTablets@@/gm,"style='display:none;'");
else
template = template
.replace(/@@linkToYandexBrowser@@/gm, "https://browser.yandex.ru/")
.replace(/@@linkToChromeBrowser@@/gm, "https://www.google.ru/chrome/")
.replace(/@@linkToFireFoxBrowser@@/gm,"https://www.mozilla.org/ru/firefox/")
.replace(/@@hideFFonTablets@@/gm,"");
}
var popupContainer = createTiddlyElement(document.body,'div',null,null,'popup_container');
popupContainer.innerHTML = '<style>'+popupsCSS.badBrowser+'</style>'+ template
+'<div class="preload"></div>';
jQuery('.wrong_browser_popup_button_dismiss_popup').on('click',function(){
var checkbox = document.querySelector('.wrong_browser_popup_checkbox_remember_skip');
if(checkbox && checkbox.checked) {
if(dontShowAgainCookie != 'dontNotifyBrowserUnknown') // set "don't notify" flag
setCookie(dontShowAgainCookie,true);
else if(!cookieValue) // first switch off, set timestamp for one more
setCookie(dontShowAgainCookie,(new Date()).getTime());
else // second switch off, set "don't notify" flag
setCookie(dontShowAgainCookie,true);
}
document.body.removeChild(popupContainer);
});
}
function notifyUnsupported(eventType) {
// should give only 1 notification per user for all eventType s – so that they won't get more than 1
switch(eventType) {
case "sessionStart":
notifyIfMobile();
break;
case "lessonStart":
if(!isSmartPhone()) notifyIfBrowserIsNotNice();
break;
}
}
// 'startup' event is already in the TW core
// in CSP introduced config.macros.fillCourseContents.openLesson helper, added 'lessonStart' event there
// set handlers for these events:
jQuery(document)
.on('startup', function(){ notifyUnsupported('sessionStart'); })
.on('lessonPreStart', function(){ notifyUnsupported('lessonStart'); })
var popupsCSS = {
mobile: store.getTiddlerText("NotifyUnsupportedTemplates##wrong_device_style").slice(6,-6),
badBrowser: store.getTiddlerText("NotifyUnsupportedTemplates##wrong_browser_style").slice(6,-6)
}
var popupsHtmls = {
mobile: store.getTiddlerText("NotifyUnsupportedTemplates##wrong_device").slice(6,-6),
badBrowser: store.getTiddlerText("NotifyUnsupportedTemplates##wrong_browser").slice(6,-6),
unknownBrowser: store.getTiddlerText("NotifyUnsupportedTemplates##unknown_browser").slice(6,-6),
oldYandexBrowser: store.getTiddlerText("NotifyUnsupportedTemplates##old_yandex").slice(6,-6),
oldChromeBrowser: store.getTiddlerText("NotifyUnsupportedTemplates##old_chrome").slice(6,-6),
oldFireFoxBrowser: store.getTiddlerText("NotifyUnsupportedTemplates##old_firefox").slice(6,-6)
};
var headerRE = /(<h1>)\s*([^<]*)\s*(<\/h1>)/,
newHeader = 'Всё ли работает нормально?',
messageRE = /(<p[^>]*wrong_browser_popup_message_unknown_browser[^>]*>)([^<]*)(<\/p>)/,
newMessage = 'Хотим напомнить, что в браузере, который вы используете, интерактивные задания могут отображаться неправильно: например, без анимации. Для полной уверенности в том, что всё работает как надо, установите один из этих браузеров:';
popupsHtmls.unknownBrowserRepeat = popupsHtmls.unknownBrowser.replace(messageRE,
function(wholeParagraph,openTag,content,closeTag){
return openTag+newMessage+closeTag;
}
).replace(headerRE,function(wholeHeader,openTag,header,closeTag){ return openTag + newHeader + closeTag; });
//}}}
// /%
// bowser 1.9.3 (minified)
!function(e,t,n){typeof module!="undefined"&&module.exports?module.exports=n():typeof define=="function"&&define.amd?define(t,n):e[t]=n()}(this,"bowser",function(){function t(t){function n(e){var n=t.match(e);return n&&n.length>1&&n[1]||""}function r(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}function N(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return undefined}}var i=n(/(ipod|iphone|ipad)/i).toLowerCase(),s=/like android/i.test(t),o=!s&&/android/i.test(t),u=/nexus\s*[0-6]\s*/i.test(t),a=!u&&/nexus\s*[0-9]+/i.test(t),f=/CrOS/.test(t),l=/silk/i.test(t),c=/sailfish/i.test(t),h=/tizen/i.test(t),p=/(web|hpw)os/i.test(t),d=/windows phone/i.test(t),v=/SamsungBrowser/i.test(t),m=!d&&/windows/i.test(t),g=!i&&!l&&/macintosh/i.test(t),y=!o&&!c&&!h&&!p&&/linux/i.test(t),b=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),w=n(/version\/(\d+(\.\d+)?)/i),E=/tablet/i.test(t)&&!/tablet pc/i.test(t),S=!E&&/[^-]mobi/i.test(t),x=/xbox/i.test(t),T;/opera/i.test(t)?T={name:"Opera",opera:e,version:w||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?T={name:"Opera",opera:e,version:n(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||w}:/SamsungBrowser/i.test(t)?T={name:"Samsung Internet for Android",samsungBrowser:e,version:w||n(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(t)?T={name:"Opera Coast",coast:e,version:w||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?T={name:"Yandex Browser",yandexbrowser:e,version:w||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?T={name:"UC Browser",ucbrowser:e,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?T={name:"Maxthon",maxthon:e,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?T={name:"Epiphany",epiphany:e,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?T={name:"Puffin",puffin:e,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?T={name:"Sleipnir",sleipnir:e,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?T={name:"K-Meleon",kMeleon:e,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:d?(T={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},b?(T.msedge=e,T.version=b):(T.msie=e,T.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?T={name:"Internet Explorer",msie:e,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:f?T={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?T={name:"Microsoft Edge",msedge:e,version:b}:/vivaldi/i.test(t)?T={name:"Vivaldi",vivaldi:e,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||w}:c?T={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?T={name:"SeaMonkey",seamonkey:e,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(T={name:"Firefox",firefox:e,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(T.firefoxos=e,T.osname="Firefox OS")):l?T={name:"Amazon Silk",silk:e,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?T={name:"PhantomJS",phantom:e,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?T={name:"SlimerJS",slimer:e,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?T={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:w||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:p?(T={name:"WebOS",osname:"WebOS",webos:e,version:w||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(T.touchpad=e)):/bada/i.test(t)?T={name:"Bada",osname:"Bada",bada:e,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:h?T={name:"Tizen",osname:"Tizen",tizen:e,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||w}:/qupzilla/i.test(t)?T={name:"QupZilla",qupzilla:e,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||w}:/chromium/i.test(t)?T={name:"Chromium",chromium:e,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||w}:/chrome|crios|crmo/i.test(t)?T={name:"Chrome",chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:o?T={name:"Android",version:w}:/safari|applewebkit/i.test(t)?(T={name:"Safari",safari:e},w&&(T.version=w)):i?(T={name:i=="iphone"?"iPhone":i=="ipad"?"iPad":"iPod"},w&&(T.version=w)):/googlebot/i.test(t)?T={name:"Googlebot",googlebot:e,version:n(/googlebot\/(\d+(\.\d+))/i)||w}:T={name:n(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!T.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(T.name=T.name||"Blink",T.blink=e):(T.name=T.name||"Webkit",T.webkit=e),!T.version&&w&&(T.version=w)):!T.opera&&/gecko\//i.test(t)&&(T.name=T.name||"Gecko",T.gecko=e,T.version=T.version||n(/gecko\/(\d+(\.\d+)?)/i)),!T.windowsphone&&(o||T.silk)?(T.android=e,T.osname="Android"):!T.windowsphone&&i?(T[i]=e,T.ios=e,T.osname="iOS"):g?(T.mac=e,T.osname="macOS"):x?(T.xbox=e,T.osname="Xbox"):m?(T.windows=e,T.osname="Windows"):y&&(T.linux=e,T.osname="Linux");var C="";T.windows?C=N(n(/Windows ((NT|XP)( \d\d?.\d)?)/i)):T.windowsphone?C=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):T.mac?(C=n(/Mac OS X (\d+([_\.\s]\d+)*)/i),C=C.replace(/[_\s]/g,".")):i?(C=n(/os (\d+([_\s]\d+)*) like mac os x/i),C=C.replace(/[_\s]/g,".")):o?C=n(/android[ \/-](\d+(\.\d+)*)/i):T.webos?C=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):T.blackberry?C=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):T.bada?C=n(/bada\/(\d+(\.\d+)*)/i):T.tizen&&(C=n(/tizen[\/\s](\d+(\.\d+)*)/i)),C&&(T.osversion=C);var k=!T.windows&&C.split(".")[0];if(E||a||i=="ipad"||o&&(k==3||k>=4&&!S)||T.silk)T.tablet=e;else if(S||i=="iphone"||i=="ipod"||o||u||T.blackberry||T.webos||T.bada)T.mobile=e;return T.msedge||T.msie&&T.version>=10||T.yandexbrowser&&T.version>=15||T.vivaldi&&T.version>=1||T.chrome&&T.version>=20||T.samsungBrowser&&T.version>=4||T.firefox&&T.version>=20||T.safari&&T.version>=6||T.opera&&T.version>=10||T.ios&&T.osversion&&T.osversion.split(".")[0]>=6||T.blackberry&&T.version>=10.1||T.chromium&&T.version>=20?T.a=e:T.msie&&T.version<10||T.chrome&&T.version<20||T.firefox&&T.version<20||T.safari&&T.version<6||T.opera&&T.version<10||T.ios&&T.osversion&&T.osversion.split(".")[0]<6||T.chromium&&T.version<20?T.c=e:T.x=e,T}function r(e){return e.split(".").length}function i(e,t){var n=[],r;if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r++)n.push(t(e[r]));return n}function s(e){var t=Math.max(r(e[0]),r(e[1])),n=i(e,function(e){var n=t-r(e);return e+=(new Array(n+1)).join(".0"),i(e.split("."),function(e){return(new Array(20-e.length)).join("0")+e}).reverse()});while(--t>=0){if(n[0][t]>n[1][t])return 1;if(n[0][t]!==n[1][t])return-1;if(t===0)return 0}}function o(e,r,i){var o=n;typeof r=="string"&&(i=r,r=void 0),r===void 0&&(r=!1),i&&(o=t(i));var u=""+o.version;for(var a in e)if(e.hasOwnProperty(a)&&o[a]){if(typeof e[a]!="string")throw new Error("Browser version in the minVersion map should be a string: "+a+": "+String(e));return s([u,e[a]])<0}return r}function u(e,t,n){return!o(e,t,n)}var e=!0,n=t(typeof navigator!="undefined"?navigator.userAgent||"":"");return n.test=function(e){for(var t=0;t<e.length;++t){var r=e[t];if(typeof r=="string"&&r in n)return!0}return!1},n.isUnsupportedBrowser=o,n.compareVersions=s,n.check=u,n._detect=t,n.detect=t,n})
// %/
!wrong_device_style
//{{{
/*------------------- wrong_device_popup ---------------------------------------*/
.wrong_device_popup_container {
/* logical block, should be in body tag */
}
.wrong_device_popup_container .wrong_device_popup_overlay {
position: fixed;
box-sizing: border-box;
overflow: hidden;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 88888;
background-color: rgba(240,240,240,0.9);
}
.wrong_device_popup_container .wrong_device_popup_wrapper {
display: flex;
position: absolute;
box-sizing: border-box;
text-align: center;
line-height: 100%;
top: 0;
left: 0;
width: 100%;
min-height: 100%;
/*min-height: ;
min-width: ;*/
z-index: 99999;
padding: 5vmin 0;
}
.wrong_device_popup_wrapper .wrong_device_popup_window {
display: block;
position: relative;
margin: auto;
width: 90vmin;
/* height: 90%; */
background-color: #ffffff;
text-align: center;
box-sizing: border-box;
font-family: open-sans, serif;
padding: 4.3vmin 0 8.8vmin;
}
.wrong_device_popup_window .wrong_device_popup_button_container {
text-align: right;
margin: 0;
padding: 0 4vmin;
}
.wrong_device_popup_button_container .wrong_device_popup_button {
width: 4.4vmin;
height: 4.4vmin;
cursor: pointer;
}
.wrong_device_popup_window p .wrong_device_popup_button_dismiss_popup {
/* logical block for script */
}
.wrong_device_popup_window .wrong_device_popup_image_block {
display: block;
box-sizing: border-box;
margin: 4vmin 0;
}
.wrong_device_popup_window img {
width: 42vmin;
height: 28vmin;
}
.wrong_device_popup_window h1 {
margin: 4vmin 0;
font-weight: bold;
font-size: 6.9vmin;
line-height: 8vmin;
padding: 0 10vmin;
border-bottom: none;
color: black;
}
.wrong_device_popup_window p {
margin: 0 0;
font-weight: normal;
font-size: 5vmin;
line-height: 5vmin;
}
.wrong_device_popup_window .wrong_device_popup_message {
padding: 0 7vmin;
line-height: 7vmin;
}
.wrong_device_popup_window .wrong_device_popup_checkbox_message {
margin: 13vmin 0 0;
}
/*------------------- end - wrong_device_popup ---------------------------------*/
/*------------------- checkbox -------------------------------------------------*/
/* The container */
.wrong_device_popup_window .wrong_device_popup_checkbox_container {
display: inline-block;
position: relative;
cursor: pointer;
font-size: 5vmin;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/*
.wrong_device_popup_window .wrong_device_popup_checkbox_container:hover {
color: #999999;
}
*/
/* Hide the browser's default checkbox */
.wrong_device_popup_checkbox_container input {
position: absolute;
opacity: 0;
cursor: pointer;
top: 0.4vmin;
width: 4vmin;
height: 4vmin;
}
.wrong_device_popup_window .wrong_device_popup_checkbox_remember_skip_popup {
/* logical block for script */
}
/* Create a custom checkbox */
.wrong_device_popup_checkbox_container .wrong_device_popup_checkbox_checkmark {
position: relative;
display: inline-block;
top: 0.4vmin;
height: 4.4vmin;
width: 4.4vmin;
background-color: transparent;
border: 0.4vmin solid #999999;
box-sizing: border-box;
margin: 0 3.6vmin 0 0;
}
/* On mouse-over, add a grey background color */
/*
.wrong_device_popup_checkbox_container:hover input ~ .wrong_device_popup_checkbox_checkmark {
border: 0.4vmin solid #999999;
}
*/
/* When the checkbox is checked, add a blue background */
.wrong_device_popup_checkbox_container input:checked ~ .wrong_device_popup_checkbox_checkmark {
/* blue background */
}
/* Create the checkmark/indicator (hidden when not checked) */
.wrong_device_popup_checkbox_checkmark:after {
content: "";
position: absolute;
display: none;
}
/* Show the checkmark when checked */
.wrong_device_popup_checkbox_container input:checked ~ .wrong_device_popup_checkbox_checkmark:after {
display: block;
}
/* Style the checkmark/indicator */
.wrong_device_popup_checkbox_container .wrong_device_popup_checkbox_checkmark:after {
left: 1.06vmin;
top: -0.11vmin;
width: 1.173vmin;
height: 2.64vmin;
border: solid #000000;
border-width: 0 0.586vmin 0.586vmin 0;
-webkit-transform: rotate(40deg);
-ms-transform: rotate(40deg);
transform: rotate(40deg);
}
/*------------------- end - checkbox -------------------------------------------*/
//}}}
!wrong_browser_style
//{{{
.preload {
content: url("./components/notifyUnsupported/close_pale.svg");
content: url("./components/notifyUnsupported/close_pale_hover.svg");
display: none;
}
/*------------------- wrong_browser_popup --------------------------------------*/
.wrong_browser_popup_container {
/* logical block, should be in body tag */
}
.wrong_browser_popup_container .wrong_browser_popup_overlay {
position: fixed;
box-sizing: border-box;
overflow: hidden;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 88888;
background-color: rgba(240,240,240,0.9);
}
.wrong_browser_popup_container .wrong_browser_popup_wrapper {
position: absolute;
box-sizing: border-box;
top: 0;
left: 0;
width: 100%;
min-height: 820px;
z-index: 99999;
}
.wrong_browser_popup_wrapper .wrong_browser_popup_window {
position: relative;
margin: 60px auto 0px auto;
width: 850px;
max-width: 90%;
min-width: 620px;
background-color: #ffffff;
text-align: center;
/*z-index: 88888;*/
box-sizing: border-box;
font-family: open-sans, serif;
padding: 0 0 88px 0;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.wrong_browser_popup_window .wrong_browser_popup_button_container {
text-align: right;
margin: 0;
padding: 40px 40px 22px;
}
.wrong_browser_popup_button_container .wrong_browser_popup_button {
cursor: pointer;
fill: #666666;
}
.wrong_browser_popup_button_container .wrong_browser_popup_button:hover {
fill: #2d2d2d;
}
.wrong_browser_popup_window p .wrong_browser_popup_button_dismiss_popup {
/* logical block for script */
}
.wrong_browser_popup_window h1 {
margin: 19px 0;
font-weight: bold;
font-size: 28px;
line-height: 39px;
border-bottom: none;
color: black;
}
.wrong_browser_popup_window p {
margin: 18px 0;
font-weight: normal;
font-size: 18px;
line-height: 24px;
}
.wrong_browser_popup_window .wrong_browser_popup_update_link {
color: #666666
}
.wrong_browser_popup_window .wrong_browser_popup_update_link:hover {
color: #2d2d2d;
}
.wrong_browser_popup_window .wrong_browser_popup_message {
padding: 0 140px;
}
.wrong_browser_popup_window .wrong_browser_popup_message_wrong_browser {
margin: 18px 0 24px;
}
.wrong_browser_popup_window .wrong_browser_popup_message_unknown_browser {
margin: 0;
}
.wrong_browser_popup_window .wrong_browser_popup_browser_block {
display: inline-block;
box-sizing: border-box;
width: 178px;
margin: 26px 10px;
}
.wrong_browser_popup_browser_block .wrong_browser_popup_yandex_icon_wrapper {
display: block;
width: 178px;
height: 168px;
box-sizing: border-box;
padding-top: 15px;
}
.wrong_browser_popup_browser_block .wrong_browser_popup_chrome_icon_wrapper {
display: block;
width: 178px;
height: 168px;
box-sizing: border-box;
padding-top: 17px;
}
.wrong_browser_popup_browser_block .wrong_browser_popup_firefox_icon_wrapper {
display: block;
width: 178px;
height: 168px;
box-sizing: border-box;
padding-top: 2px;
}
.wrong_browser_popup_browser_block img {
}
.wrong_browser_popup_browser_block p {
margin: 0;
}
.wrong_browser_popup_browser_block a {
color: #666666;
text-decoration: none;
}
.wrong_browser_popup_browser_block:hover a {
color: #2d2d2d;
}
.wrong_browser_popup_window .wrong_browser_popup_checkbox_message {
margin: 35px 0 18px;
}
/*------------------- end - wrong_browser_popup --------------------------------*/
/*------------------- checkbox -------------------------------------------------*/
/* The container */
.wrong_browser_popup_window .wrong_browser_popup_checkbox_container {
display: inline-block;
position: relative;
/*padding-left: 35px;
margin-bottom: 12px;*/
cursor: pointer;
font-size: 18px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.wrong_browser_popup_window .wrong_browser_popup_checkbox_container:hover {
color: #2d2d2d;
}
/* Hide the browser's default checkbox */
.wrong_browser_popup_checkbox_container input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 11px;
width: 11px;
top: 4px;
left: -31px;
}
.wrong_browser_popup_window .wrong_browser_popup_checkbox_remember_skip_popup {
/* logical block for script */
}
/* Create a custom checkbox */
.wrong_browser_popup_checkbox_container .wrong_browser_popup_checkbox_checkmark {
position: absolute;
display: inline-block;
top: 4px;
left: -31px;
height: 17px;
width: 17px;
background-color: transparent;
border: 1px solid #000000;
box-sizing: border-box;
}
/* On mouse-over, add a grey background color */
.wrong_browser_popup_checkbox_container:hover input ~ .wrong_browser_popup_checkbox_checkmark {
border: 1px solid #2d2d2d;
}
/* When the checkbox is checked, add a blue background */
.wrong_browser_popup_checkbox_container input:checked ~ .wrong_browser_popup_checkbox_checkmark {
/* blue background */
}
/* Create the checkmark/indicator (hidden when not checked) */
.wrong_browser_popup_checkbox_checkmark:after {
content: "";
position: absolute;
display: none;
}
/* Show the checkmark when checked */
.wrong_browser_popup_checkbox_container input:checked ~ .wrong_browser_popup_checkbox_checkmark:after {
display: block;
}
/* Style the checkmark/indicator */
.wrong_browser_popup_checkbox_container .wrong_browser_popup_checkbox_checkmark:after {
left: 5px;
top: 1px;
width: 4px;
height: 9px;
border: solid #000000;
border-width: 0 2px 2px 0;
-webkit-transform: rotate(40deg);
-ms-transform: rotate(40deg);
transform: rotate(40deg);
}
/*------------------- end - checkbox -------------------------------------------*/
/*----------------------- old_chrome -------------------------------------------*/
/*
.wrong_browser_popup_wrapper .wrong_browser_popup_window_old_chrome {
padding: 50px 0 78px;
}
*/
.wrong_browser_popup_window_old_chrome .wrong_browser_popup_button_container {
padding-bottom: 0;
}
.wrong_browser_popup_window_old_chrome .wrong_browser_popup_browser_block {
margin: 0;
}
.wrong_browser_popup_window_old_chrome h1 {
margin: 10px 0 19px;
}
.wrong_browser_popup_window_old_chrome .wrong_browser_popup_checkbox_message {
margin: 66px 0 18px;
}
/*------------------- end - old_chrome -----------------------------------------*/
/*----------------------- old_firefox ------------------------------------------*/
/*
.wrong_browser_popup_wrapper .wrong_browser_popup_window_old_firefox {
padding: 50px 0 78px;
}
*/
.wrong_browser_popup_window_old_firefox .wrong_browser_popup_button_container {
padding-bottom: 0;
}
.wrong_browser_popup_window_old_firefox .wrong_browser_popup_browser_block {
margin: 0;
}
.wrong_browser_popup_window_old_firefox h1 {
margin: 10px 0 19px;
}
.wrong_browser_popup_window_old_firefox .wrong_browser_popup_checkbox_message {
margin: 66px 0 18px;
}
/*------------------- end - old_firefox ----------------------------------------*/
/*----------------------- old_yandex -------------------------------------------*/
/*
.wrong_browser_popup_wrapper .wrong_browser_popup_window_old_yandex {
padding: 50px 0 82px;
}
*/
.wrong_browser_popup_window_old_yandex .wrong_browser_popup_button_container {
padding-bottom: 0;
}
.wrong_browser_popup_window_old_yandex .wrong_browser_popup_browser_block {
margin: 0;
}
.wrong_browser_popup_window_old_yandex h1 {
margin: 10px 0 19px;
}
.wrong_browser_popup_window_old_yandex .wrong_browser_popup_checkbox_message {
margin: 72px 0 18px;
}
/*------------------- end - old_yandex -----------------------------------------*/
//}}}
!wrong_device
//{{{
<div class="wrong_device_popup_container">
<div class="wrong_device_popup_overlay">
</div>
<div class="wrong_device_popup_wrapper">
<div class="wrong_device_popup_window">
<p class="wrong_device_popup_button_container">
<img src="./components/notifyUnsupported/close.svg" class="wrong_device_popup_button wrong_device_popup_button_dismiss_popup" width="20px" height="20px">
</p>
<div class="wrong_device_popup_image_block">
<img src="./components/notifyUnsupported/devices.svg" width="200px" height="200px">
</div>
<h1>
Переходите на большой экран
</h1>
<p class="wrong_device_popup_message">
Наш сайт предназначен для работы на компьютере или планшете. На мобильном телефоне интерактивные задания могут отображаться неправильно.
</p>
<p class="wrong_device_popup_checkbox_message">
<label class="wrong_device_popup_checkbox_container">
<input type="checkbox" class="wrong_device_popup_checkbox_remember_skip">
<span class="wrong_device_popup_checkbox_checkmark"></span>
Больше не показывать
</label>
</p>
</div>
</div>
</div>
//}}}
!wrong_browser
//{{{
<div class="wrong_browser_popup_container">
<div class="wrong_browser_popup_overlay">
</div>
<div class="wrong_browser_popup_wrapper">
<div class="wrong_browser_popup_window">
<p class="wrong_browser_popup_button_container">
<svg class="wrong_browser_popup_button wrong_browser_popup_button_dismiss_popup" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31.41 31.41" width="22px" height="22px">
<title>
devices
</title>
<rect x="14.21" y="-5.01" width="3" height="41.43" transform="translate(-6.51 15.71) rotate(-45)"/>
<rect x="-5.01" y="14.21" width="41.43" height="3" transform="translate(-6.51 15.71) rotate(-45)"/>
</svg>
</p>
<h1>
Неподдерживаемый браузер
</h1>
<p class="wrong_browser_popup_message wrong_browser_popup_message_wrong_browser">
В браузере, который вы используете, интерактивные задания не работают. Чтобы использовать все возможности сайта, пожалуйста, установите один из этих браузеров:
</p>
<div class="wrong_browser_popup_browser_block">
<a class="wrong_browser_popup_yandex_icon_wrapper" href="https://browser.yandex.ru/" target="_blank">
<img src="./components/notifyUnsupported/yandex.svg" width="140px" height="140px">
</a>
<p>
<a href="https://browser.yandex.ru/" target="_blank">
Яндекс.Браузер
</a>
</p>
</div>
<div class="wrong_browser_popup_browser_block">
<a class="wrong_browser_popup_chrome_icon_wrapper" href="https://www.google.ru/chrome/" target="_blank">
<img src="./components/notifyUnsupported/chrome.svg" width="134px" height="134px">
</a>
<p>
<a href="https://www.google.ru/chrome/" target="_blank">
Google Chrome
</a>
</p>
</div>
<div class="wrong_browser_popup_browser_block">
<a class="wrong_browser_popup_firefox_icon_wrapper" href="https://www.mozilla.org/ru/firefox/" target="_blank">
<img src="./components/notifyUnsupported/firefox.svg" width="154px" height="154px">
</a>
<p>
<a href="https://www.mozilla.org/ru/firefox/" target="_blank">
Mozilla Firefox
</a>
</p>
</div>
</div>
</div>
</div>
//}}}
!unknown_browser
//{{{
<div class="wrong_browser_popup_container">
<div class="wrong_browser_popup_overlay">
</div>
<div class="wrong_browser_popup_wrapper">
<div class="wrong_browser_popup_window">
<p class="wrong_browser_popup_button_container">
<svg class="wrong_browser_popup_button wrong_browser_popup_button_dismiss_popup" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31.41 31.41" width="22px" height="22px">
<title>
devices
</title>
<rect x="14.21" y="-5.01" width="3" height="41.43" transform="translate(-6.51 15.71) rotate(-45)"/>
<rect x="-5.01" y="14.21" width="41.43" height="3" transform="translate(-6.51 15.71) rotate(-45)"/>
</svg>
</p>
<h1>
Неподдерживаемый браузер
</h1>
<p class="wrong_browser_popup_message wrong_browser_popup_message_unknown_browser">
В браузере, который вы используете, интерактивные задания могут отображаться неправильно. Чтобы использовать все возможности сайта, пожалуйста, установите один из этих браузеров:
</p>
<div class="wrong_browser_popup_browser_block">
<a class="wrong_browser_popup_yandex_icon_wrapper" href="@@linkToYandexBrowser@@" target="_blank">
<img src="./components/notifyUnsupported/yandex.svg" width="140px" height="140px">
</a>
<p>
<a href="@@linkToYandexBrowser@@" target="_blank">
Яндекс.Браузер
</a>
</p>
</div>
<div class="wrong_browser_popup_browser_block">
<a class="wrong_browser_popup_chrome_icon_wrapper" href="@@linkToChromeBrowser@@" target="_blank">
<img src="./components/notifyUnsupported/chrome.svg" width="134px" height="134px">
</a>
<p>
<a href="@@linkToChromeBrowser@@" target="_blank">
Google Chrome
</a>
</p>
</div>
<div class="wrong_browser_popup_browser_block" @@hideFFonTablets@@>
<a class="wrong_browser_popup_firefox_icon_wrapper" href="@@linkToFireFoxBrowser@@" target="_blank">
<img src="./components/notifyUnsupported/firefox.svg" width="154px" height="154px">
</a>
<p>
<a href="@@linkToFireFoxBrowser@@" target="_blank">
Mozilla Firefox
</a>
</p>
</div>
<p class="wrong_browser_popup_checkbox_message">
<label class="wrong_browser_popup_checkbox_container">
<input type="checkbox" class="wrong_browser_popup_checkbox_remember_skip">
<span class="wrong_browser_popup_checkbox_checkmark"></span>
Больше не показывать
</label>
</p>
</div>
</div>
</div>
//}}}
!old_yandex
//{{{
<div class="wrong_browser_popup_container">
<div class="wrong_browser_popup_overlay">
</div>
<div class="wrong_browser_popup_wrapper">
<div class="wrong_browser_popup_window wrong_browser_popup_window_old_yandex">
<p class="wrong_browser_popup_button_container">
<svg class="wrong_browser_popup_button wrong_browser_popup_button_dismiss_popup" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31.41 31.41" width="22px" height="22px">
<title>
devices
</title>
<rect x="14.21" y="-5.01" width="3" height="41.43" transform="translate(-6.51 15.71) rotate(-45)"/>
<rect x="-5.01" y="14.21" width="41.43" height="3" transform="translate(-6.51 15.71) rotate(-45)"/>
</svg>
</p>
<div class="wrong_browser_popup_browser_block">
<div class="wrong_browser_popup_chrome_icon_wrapper">
<img src="./components/notifyUnsupported/yandex.svg" width="140px" height="140px">
</div>
</div>
<h1>
Устаревшая версия браузера
</h1>
<p class="wrong_browser_popup_message">
В вашей версии браузера интерактивные задания могут отображаться неправильно. Чтобы использовать все возможности сайта, пожалуйста, <a href="https://browser.yandex.ru/" class="wrong_browser_popup_update_link" target="_blank">скачайте новую версию</a>.
</p>
<p class="wrong_browser_popup_checkbox_message">
<label class="wrong_browser_popup_checkbox_container">
<input type="checkbox" class="wrong_browser_popup_checkbox_remember_skip">
<span class="wrong_browser_popup_checkbox_checkmark"></span>
Больше не показывать
</label>
</p>
</div>
</div>
</div>
//}}}
!old_firefox
//{{{
<div class="wrong_browser_popup_container">
<div class="wrong_browser_popup_overlay">
</div>
<div class="wrong_browser_popup_wrapper">
<div class="wrong_browser_popup_window wrong_browser_popup_window_old_firefox">
<p class="wrong_browser_popup_button_container">
<svg class="wrong_browser_popup_button wrong_browser_popup_button_dismiss_popup" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31.41 31.41" width="22px" height="22px">
<title>
devices
</title>
<rect x="14.21" y="-5.01" width="3" height="41.43" transform="translate(-6.51 15.71) rotate(-45)"/>
<rect x="-5.01" y="14.21" width="41.43" height="3" transform="translate(-6.51 15.71) rotate(-45)"/>
</svg>
</p>
<div class="wrong_browser_popup_browser_block">
<div class="wrong_browser_popup_chrome_icon_wrapper">
<img src="./components/notifyUnsupported/firefox.svg" width="140px" height="140px">
</div>
</div>
<h1>
Устаревшая версия браузера
</h1>
<p class="wrong_browser_popup_message">
В вашей версии браузера интерактивные задания могут отображаться неправильно. Чтобы использовать все возможности сайта, пожалуйста, обновите браузер.
</p>
<p class="wrong_browser_popup_message">
<a href="https://support.mozilla.org/ru/kb/obnovlenie-firefox-do-poslednej-versii" class="wrong_browser_popup_update_link" target="_blank">
Официальная инструкция об обновлении браузера от компании Mozilla
</a>
</p>
<p class="wrong_browser_popup_checkbox_message">
<label class="wrong_browser_popup_checkbox_container">
<input type="checkbox" class="wrong_browser_popup_checkbox_remember_skip">
<span class="wrong_browser_popup_checkbox_checkmark"></span>
Больше не показывать
</label>
</p>
</div>
</div>
</div>
//}}}
!old_chrome
//{{{
<div class="wrong_browser_popup_container">
<div class="wrong_browser_popup_overlay">
</div>
<div class="wrong_browser_popup_wrapper">
<div class="wrong_browser_popup_window wrong_browser_popup_window_old_chrome">
<p class="wrong_browser_popup_button_container">
<svg class="wrong_browser_popup_button wrong_browser_popup_button_dismiss_popup" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31.41 31.41" width="22px" height="22px">
<title>
devices
</title>
<rect x="14.21" y="-5.01" width="3" height="41.43" transform="translate(-6.51 15.71) rotate(-45)"/>
<rect x="-5.01" y="14.21" width="41.43" height="3" transform="translate(-6.51 15.71) rotate(-45)"/>
</svg>
</p>
<div class="wrong_browser_popup_browser_block">
<div class="wrong_browser_popup_chrome_icon_wrapper">
<img src="./components/notifyUnsupported/chrome.svg" width="140px" height="140px">
</div>
</div>
<h1>
Устаревшая версия браузера
</h1>
<p class="wrong_browser_popup_message">
В вашей версии браузера интерактивные задания могут отображаться неправильно. Чтобы использовать все возможности сайта, пожалуйста, обновите браузер.
</p>
<p class="wrong_browser_popup_message">
<a href="https://support.google.com/chrome/answer/95414?co=GENIE.Platform%3DDesktop&hl=ru" class="wrong_browser_popup_update_link" target="_blank">
Официальная инструкция об обновлении браузера от компании Google
</a>
</p>
<p class="wrong_browser_popup_checkbox_message">
<label class="wrong_browser_popup_checkbox_container">
<input type="checkbox" class="wrong_browser_popup_checkbox_remember_skip">
<span class="wrong_browser_popup_checkbox_checkmark"></span>
Больше не показывать
</label>
</p>
</div>
</div>
</div>
//}}}
/***
|Author|Yakov Litvin|
|Version|0.3.2|
***/
//{{{
story.getPermalink = function(title) {
return window.location.toString().replace(/#.*$/,"")
+ "#"+encodeURIComponent(String.encodeTiddlyLink(title));
};
config.extensions.orig_nonUrl_onClickTiddlerLink = onClickTiddlerLink;
onClickTiddlerLink = function(ev)
{
var e = ev || window.event;
if(e.ctrlKey) {
// get title (code adapted from original onClickTiddlerLink, TW 2.7.1)
var link = resolveTarget(e); // start lookup from the clicked element itself
var title = null;
do {
title = link.getAttribute("tiddlyLink");
link = link.parentNode;
} while(title == null && link != null);
var newTab = window.open(story.getPermalink(title),'_blank');
newTab.focus();
return false;
}
config.extensions.orig_nonUrl_onClickTiddlerLink.apply(this,arguments);
};
jQuery(document).on('mouseover','*[tiddlylink]',function(e){
console.log('mouseover *[tiddlylink]');
var target = e.target,
title = target.getAttribute('tiddlylink');
if(title && target.tagName.toLowerCase() == 'a')
target.href = story.getPermalink(title);
});
//}}}
<!--{{{-->
<div class="fork_notification"></div>
<!-- <div class='header' role='banner' macro='gradient vert [[ColorPalette::PrimaryLight]] [[ColorPalette::PrimaryMid]]'>
<div class='headerShadow'>
<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>
<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span>
</div>
<div class='headerForeground'>
<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>
<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span>
</div>
</div>
<div id='mainMenu' role='navigation' refresh='content' tiddler='MainMenu'></div>
<div id='sidebar'>
<div id='sidebarOptions' role='navigation' refresh='content' tiddler='SideBarOptions'></div>
<div id='sidebarTabs' role='complementary' refresh='content' force='true' tiddler='SideBarTabs'></div>
</div>
<div id='displayArea' role='main'>
<div id='messageArea'></div>
<div id='tiddlerDisplay'></div>
</div>
-->
<!--}}}-->
/***
|Name|RearrangeTiddlersPlugin|
|Source|{{DDn{old:}}} http://www.TiddlyTools.com/#RearrangeTiddlersPlugin|
|Version|2.0.2|
|Author|Yakov Litvin|
|Contributor|Eric Shulman|
|OriginalAuthor|Joe Raii|
|License|{{DDn{old:}}} http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.4.0|
|Type|plugin|
|Description|drag tiddlers by title to re-order story column display|
***/
//{{{
if (Story.prototype.rearrangeTiddlersHijack_refreshTiddler === undefined) {
Story.prototype.rearrangeTiddlersHijack_refreshTiddler = Story.prototype.refreshTiddler;
Story.prototype.refreshTiddler = function(title,template)
{
this.rearrangeTiddlersHijack_refreshTiddler.apply(this,arguments);
var theTiddler = document.getElementById(this.tiddlerId(title));
if(!theTiddler) return;
// find title element
var theHandle = jQuery(theTiddler).children(".title")[0];
if(!theHandle) return theTiddler;
Drag.init(theHandle, theTiddler, 0, 0, null, null);
theHandle.style.cursor = "move";
theHandle.title = "drag title to re-arrange tiddlers, click for more options...";
theTiddler.onDrag = function(x,y,myElem)
{
if (this.style.position != "relative") {
this.savedstyle = this.style.position;
this.style.position = "relative";
}
y = myElem.offsetTop;
var next = myElem.nextSibling;
var prev = myElem.previousSibling;
if (next && y + myElem.offsetHeight > next.offsetTop + next.offsetHeight/2) {
myElem.parentNode.removeChild(myElem);
next.parentNode.insertBefore(myElem, next.nextSibling);//elems[pos+1]);
myElem.style["top"] = -next.offsetHeight/2+"px";
}
if (prev && y < prev.offsetTop + prev.offsetHeight/2) {
myElem.parentNode.removeChild(myElem);
prev.parentNode.insertBefore(myElem, prev);
myElem.style["top"] = prev.offsetHeight/2+"px";
}
};
theTiddler.onDragEnd = function(x,y,myElem)
{
myElem.style["top"] = "0px";
if (this.savedstyle != undefined)
this.style.position = this.savedstyle;
};
theHandle.onclick = function(ev)
{
ev = ev || window.event;
var p = Popup.create(this); if (!p) return;
var b = createTiddlyButton(createTiddlyElement(p,"li"),
"\u25B2 move to top of column ","move this tiddler to the top of the story column",
function() {
var t = story.getTiddler(this.getAttribute("tid"));
t.parentNode.insertBefore(t,t.parentNode.firstChild); // move to top of column
window.scrollTo(0,ensureVisible(t));
return false;
});
b.setAttribute("tid",title);
var b = createTiddlyButton(createTiddlyElement(p,"li"),
"\u25BC move to bottom of column ","move this tiddler to the bottom of the story column",
function() {
var t = story.getTiddler(this.getAttribute("tid"));
t.parentNode.insertBefore(t,null); // move to bottom of column
window.scrollTo(0,ensureVisible(t));
return false;
});
b.setAttribute("tid",title);
Popup.show();
ev.cancelBubble = true;
if (ev.stopPropagation) ev.stopPropagation();
return false;
};
return theTiddler;
}
}
/**************************************************
* dom-drag.js
* 09.25.2001
* www.youngpup.net
**************************************************
* 10.28.2001 - fixed minor bug where events
* sometimes fired off the handle, not the root.
**************************************************/
var Drag = {
obj: null,
init: function(o, oRoot, minX, maxX, minY, maxY)
{
o.onmousedown = Drag.start;
o.root = oRoot && oRoot != null ? oRoot : o ;
if (isNaN(parseInt(o.root.style.left))) o.root.style.left = "0px";
if (isNaN(parseInt(o.root.style.top ))) o.root.style.top = "0px";
o.minX = typeof minX != 'undefined' ? minX : null;
o.minY = typeof minY != 'undefined' ? minY : null;
o.maxX = typeof maxX != 'undefined' ? maxX : null;
o.maxY = typeof maxY != 'undefined' ? maxY : null;
o.root.onDragStart = new Function();
o.root.onDragEnd = new Function();
o.root.onDrag = new Function();
},
start: function(e)
{
var o = Drag.obj = this;
e = Drag.fixE(e);
var y = parseInt(o.root.style.top);
var x = parseInt(o.root.style.left);
o.root.onDragStart(x, y, Drag.obj.root);
o.lastMouseX = e.clientX;
o.lastMouseY = e.clientY;
if (o.minX != null) o.minMouseX = e.clientX - x + o.minX;
if (o.maxX != null) o.maxMouseX = o.minMouseX + o.maxX - o.minX;
if (o.minY != null) o.minMouseY = e.clientY - y + o.minY;
if (o.maxY != null) o.maxMouseY = o.minMouseY + o.maxY - o.minY;
document.onmousemove = Drag.drag;
document.onmouseup = Drag.end;
Drag.obj.root.style["z-index"] = "10";
return false;
},
drag: function(e)
{
e = Drag.fixE(e);
var o = Drag.obj;
var ey = e.clientY;
var ex = e.clientX;
var y = parseInt(o.root.style.top);
var x = parseInt(o.root.style.left);
var nx, ny;
if (o.minX != null) ex = Math.max(ex, o.minMouseX);
if (o.maxX != null) ex = Math.min(ex, o.maxMouseX);
if (o.minY != null) ey = Math.max(ey, o.minMouseY);
if (o.maxY != null) ey = Math.min(ey, o.maxMouseY);
nx = x + (ex - o.lastMouseX);
ny = y + (ey - o.lastMouseY);
Drag.obj.root.style["left"] = nx + "px";
Drag.obj.root.style["top"] = ny + "px";
Drag.obj.lastMouseX = ex;
Drag.obj.lastMouseY = ey;
Drag.obj.root.onDrag(nx, ny, Drag.obj.root);
return false;
},
end: function()
{
document.onmousemove = null;
document.onmouseup = null;
Drag.obj.root.style["z-index"] = "0";
Drag.obj.root.onDragEnd(parseInt(Drag.obj.root.style["left"]), parseInt(Drag.obj.root.style["top"]), Drag.obj.root);
Drag.obj = null;
},
fixE: function(e)
{
if (typeof e == 'undefined') e = window.event;
if (typeof e.layerX == 'undefined') e.layerX = e.offsetX;
if (typeof e.layerY == 'undefined') e.layerY = e.offsetY;
return e;
}
};
//}}}
* [[Окружающий мир]]
** [[Окружающий мир. 1й класс]]
** [[Окружающий мир. 2 класс]]
** [[Окружающий мир. 3 класс]]
** [[Окружающий мир. 4 класс]]
* [[Генетика]]
* для выгрузки:
** <<saveAs
'label:полный курс (без плашки "tests")'
"target:./okrmir_full_nonTest.html"
'process:
for(var i = 0; i < tids.length; i++)
if(tids[i].title == "WebPageTemplate" || tids[i].title == "AuthorPageTemplate")
tids[i].text = tids[i].text.replace(/<div[^>]+fork_notification[^>]*>[^<]+<\/div>\n/,"");
'
quiet replace
>>/%
** [--только 1й класс – то же, но добавить filter:..., убрать из корневой записи ссылку на "все курсы"--]%/
/***
***/
//{{{
// tagging macro
config.macros.tagging.label = "записи с этим тэгом:";
config.macros.tagging.labelNotTag = "нет записей с этим тэгом";
config.macros.tagging.tooltip = "Список записей с тэгом '%0'";
// tags macro
config.views.wikified.tag.labelNoTags = "нет тэгов";
config.views.wikified.tag.labelTags = "тэги:";
config.views.wikified.tag.openTag = "Открыть тэг '%0'";
config.views.wikified.tag.tooltip = "Показать записи с тэгом '%0'";
config.views.wikified.tag.openAllText = "Открыть все";
config.views.wikified.tag.openAllTooltip = "Открыть все эти записи";
config.views.wikified.tag.popupNone = "Других записей с тэгом '%0' нет";
// closeAll macro
config.macros.closeAll.label = "закрыть все";
config.macros.closeAll.prompt = readOnly ? "закрыть все открытые записи" : "закрыть все открытые записи (кроме редактируемых)";
// search macro
config.macros.search.label = "искать";
config.macros.search.prompt = "Искать на этом сайте (в этой TiddlyWiki)";
// toolbar commands (some)
config.commands.closeTiddler.text = "закрыть";
config.commands.closeTiddler.tooltip = "закрыть эту запись";
// simple translation of view->date (uses numerical representation of months)
//# to do: convert to "13 июля 2016"
config.macros.view.views.date = function(value,place,params,wikifier,paramString,tiddler) {
value = Date.convertFromYYYYMMDDHHMM(value);
dateString = params[2] ? value.formatString(params[2]) : value.toLocaleDateString(); // "13.07.2016"
createTiddlyText(place,dateString);
}
// "created" above tiddler's title
config.views.wikified.createdPrompt = "создано";
//}}}
/***
|Name|SaveAsPlugin|
|Source||
|Documentation||
|Version|2.10.1|
|Author|Eric Shulman|
|Tweaked by|Yakov Litvin (after v2.7.1)|
|License||
|~CoreVersion|2.1|
|Type|plugin|
|Description|Save current document to another path/filename|
***/
//{{{
version.extensions.SaveAsPlugin = { major: 2, minor: 10, revision: 1, date: new Date(2016,5,6) };
/* YL tweak+ */ // code adapted from SharedTiddlersPlugin to handle relative paths
var getPathFromURL = function(url) {
return (url.lastIndexOf("/") > -1) ?
url.substr(0, url.lastIndexOf("/") + 1) : "";
};
// limitedly turns URI (URL) reference into an absolute URI (URL) and windows paths into URL
var resolveURL = function(url) {
if (url.search(/^((http(s)?)|(file)):/) != 0) {
// no protocol prefix..
if (url.search(/^(.\:\\)|(\\\\)|(\/)/) != 0) // is relative?
// as Unix filesystem root is "/", urls starting with it are not considered as relative
url = getPathFromURL(document.location.toString()) + url;
else
// "url" is an "absolute" path to a local file. Prefix it with file://
url = "file://" + url;
// replace every \ by a /, to cover Windows style pathes
url = url.replace(/\\/mg,"/");
}
return url;
};
/* YL tweak= */
config.macros.saveAs = {
label: 'save as...',
labelparam: 'label:',
prompt: 'Save current document to a different path/file',
promptparam: 'prompt:',
filePrompt: 'Please select or enter a target path/filename',
targetparam: 'target:',
defaultFilename: 'new.html',
filenameparam: 'filename:',
currfilekeyword: 'here',
typeparam: 'type:',
type_TW: 'tw', type_PS: 'ps', type_TX: 'tx', type_CS: 'cs', type_NF: 'nf', // file type tokens
type_map: {
tiddlywiki:'tw', tw:'tw', wiki: 'tw',
purestore: 'ps', ps:'ps', store:'ps',
plaintext: 'tx', tx:'tx', text: 'tx',
comma: 'cs', cs:'cs', csv: 'cs',
newsfeed: 'nf', nf:'nf', xml: 'nf', rss:'nf'
},
/* YL tweak */ filterExpression: 'filter:',
limitparam: 'limit:',
/* YL tweak */ scriptparam: 'process:',
replaceparam: 'replace',
mergeparam: 'merge',
quietparam: 'quiet',
openparam: 'open',
askParam: 'ask',
hereParam: 'here',
askMsg: "Enter a tag filter (use * for all tiddlers, 'none' for blank document)",
hereMsg: 'Enter a tiddler title',
emptyParam: 'none',
confirmmsg: "Found %0 tiddlers matching\n\n'%1'\n\nPress OK to proceed",
mergeprompt: '%0\nalready contains tiddler definitions.\n'
+'\nPress OK to add new/revised tiddlers to current file contents.'
+'\nPress Cancel to completely replace file contents',
mergestatus: 'Merged %0 new/revised tiddlers and %1 existing tiddlers',
okmsg: '%0 tiddlers written to %1',
failmsg: 'An error occurred while creating %1',
filter: '',
handler: function(place,macroName,params) {
if ((params[0]||'').startsWith(this.labelparam))
var label=params.shift().substr(this.labelparam.length);
if ((params[0]||'').startsWith(this.promptparam))
var prompt=params.shift().substr(this.promptparam.length);
if ((params[0]||'').startsWith(this.targetparam))
var target=params.shift().substr(this.targetparam.length);
if ((params[0]||'').startsWith(this.filenameparam))
var filename=params.shift().substr(this.filenameparam.length);
if ((params[0]||'').startsWith(this.typeparam))
var filetype=this.type_map[params.shift().substr(this.typeparam.length).toLowerCase()];
/* YL tweak */ if ((params[0]||'').startsWith(this.filterExpression))
var filterExpression=params.shift().substr(this.filterExpression.length);
if ((params[0]||'').startsWith(this.limitparam))
var limit=params.shift().substr(this.limitparam.length);
/* YL tweak */ if ((params[0]||'').startsWith(this.scriptparam))
var script=params.shift().substr(this.scriptparam.length);
var q=((params[0]||'')==this.quietparam); if (q) params.shift();
var o=((params[0]||'')==this.replaceparam); if (o) params.shift();
var m=((params[0]||'')==this.mergeparam); if (m) params.shift();
var a=((params[0]||'')==this.openparam); if (a) params.shift();
var btn=createTiddlyButton(place,label||this.label,prompt||this.prompt,
function(){ config.macros.saveAs.go( this.getAttribute('target'),
this.getAttribute('filename'), this.getAttribute('filetype'),
this.getAttribute('filter'),
/* YL tweak */ this.getAttribute('filterExpression'),
this.getAttribute('limit'),
/* YL tweak */ this.getAttribute('modScript'),
this.getAttribute('quiet')=='true',
this.getAttribute('overwrite')=='true',
this.getAttribute('merge')=='true',
this.getAttribute('autoopen')=='true',
this);
return false;
});
if (target) btn.setAttribute('target',target);
if (filename) btn.setAttribute('filename',filename);
btn.setAttribute('filetype',filetype||this.type_TW);
/* YL tweak */ btn.setAttribute('filterExpression',filterExpression||'');
btn.setAttribute('filter',params.join(' '));
/* YL tweak */ btn.setAttribute('modScript',script||'');
btn.setAttribute('limit',limit||0);
btn.setAttribute('quiet',q?'true':'false');
btn.setAttribute('overwrite',o?'true':'false');
btn.setAttribute('merge',m?'true':'false');
btn.setAttribute('autoopen',a?'true':'false');
},
go: function(target,filename,filetype,filter,filterExpr,limit,script,quiet,overwrite,merge,autoopen,here){
/* YL tweak */ // added the "filterExpr" and "script" params
var cm=config.messages; // abbreviation
var cms=config.macros.saveAs; // abbreviation
if (window.location.protocol!='file:') // make sure we are local
{ displayMessage(cm.notFileUrlError); return; }
// get tidders, confirm filtered results
/* YL tweak+ */ filter = filter.length ? "[tag["+filter+"]]" : null;
/* YL tweak= */ filterExpr = filterExpr.length ? filterExpr + (filter ? " "+filter : "") : (filter ? filter : "");
var tids=cms.selectTiddlers(filterExpr,here);
if (tids===false) return; // cancelled by user
if (cms.filter!=cms.emptyParam && cms.filter.length && !quiet)
if (!confirm(cms.confirmmsg.format([tids.length,cms.filter]))) return;
/* YL tweak+ */ // switch tiddlers from store to their copies, launch the script
for(var i = 0; i < tids.length; i++) {
tids[i] = jQuery.extend(true, new Tiddler(), tids[i]);
// keep the original titles for correct markup blocks updating and other things
tids[i].orig_title = tids[i].title;
}
// wrap the script so that the "tids" var can be used even if the code is minified
script = "config.macros.saveAs.f = function(tids) {" + script + "};"
eval(script);
/* YL tweak= */ this.f(tids);
// get target path/filename
if (!filetype) filetype=this.type_TW;
target=target||cms.getTarget(filename,filetype==this.type_TX?'txt':filetype==this.type_CS?'csv':'html');
if (!target) return; // cancelled by user
/* YL tweak+ */ var link = resolveURL(target);
/* YL tweak= */ target = getLocalPath(link);
var samefile=link==decodeURIComponent(window.location.href);
var p=getLocalPath(document.location.href);
if (samefile) {
if (config.options.chkSaveBackups)
{ var t=loadOriginal(p);if(t)saveBackup(p,t); }
if (config.options.chkGenerateAnRssFeed && saveRss instanceof Function)
saveRss(p);
}
var notes='';
var total={val:0};
var out=this.assembleFile(target,filetype,tids,limit||0,notes,quiet,overwrite,merge,total);
var ok=saveFile(target,out);
if (ok && autoopen) {
if (!samefile) window.open(link).focus();
else { store.setDirty(false); window.location.reload(); }
}
if (!quiet || !(ok && autoopen))
displayMessage((ok?this.okmsg:this.failmsg).format([total.val,target]),link);
},
selectTiddlers: function(filter,here) {
var cms=config.macros.saveAs; // abbreviation
var tids=[]; cms.filter=filter||'';
if (filter==cms.emptyParam)
return tids;
if (filter==config.macros.saveAs.hereParam) {
var here=story.findContainingTiddler(here);
if (here) var tid=here.getAttribute('tiddler');
else var tid=prompt(config.macros.saveAs.hereMsg,'');
while (tid && !store.tiddlerExists(tid)) {
var err='"'+tid+'" not found.\nPlease try again.\n\n';
var tid=prompt(err+config.macros.saveAs.hereMsg,tid);
}
if (!tid) return false; // cancelled by user
return [store.getTiddler(tid)];
}
if (filter==config.macros.saveAs.askParam) {
filter=prompt(config.macros.saveAs.askMsg,'');
if (!filter) return false; // cancelled by user
cms.filter=filter=='*'?'':filter;
}
if (!filter||!filter.length||filter=='*') tids=store.getTiddlers('title');
/* YL tweak */ else tids=store.filterTiddlers(filter);
return tids;
},
getTarget: function(defName,defExt) {
var cms=config.macros.saveAs; // abbreviation
// get new target path/filename
var newPath=getLocalPath(window.location.href);
var slashpos=newPath.lastIndexOf('/'); if (slashpos==-1) slashpos=newPath.lastIndexOf('\\');
if (slashpos!=-1) newPath=newPath.substr(0,slashpos+1); // trim filename
if (!defName||!defName.length) { // use current filename as default
var p=getLocalPath(window.location.href);
var s=p.lastIndexOf('/'); if (s==-1) s=p.lastIndexOf('\\');
if (s!=-1) defName=p.substr(s+1);
}
var defFilename=(defName||cms.defaultFilename).replace(/.html$/,'.'+defExt);
var target=cms.askForFilename(cms.filePrompt,newPath,defFilename,defExt);
if (!target) return; // cancelled by user
// if specified file does not include a path, assemble fully qualified path and filename
var slashpos=target.lastIndexOf('/'); if (slashpos==-1) slashpos=target.lastIndexOf('\\');
if (slashpos==-1) target=target+(defName||cms.defaultFilename).replace(/.html$/,'.'+defExt);
return target;
},
askForFilename: function(msg,path,file,defExt) {
/* if(window.Components) { // moz
try {
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
var nsIFilePicker = window.Components.interfaces.nsIFilePicker;
var picker = Components.classes['@mozilla.org/filepicker;1'].createInstance(nsIFilePicker);
picker.init(window, msg, nsIFilePicker.modeSave);
var thispath = Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile);
thispath.initWithPath(path);
picker.displayDirectory=thispath;
picker.defaultExtension=defExt||'html';
picker.defaultString=file;
picker.appendFilters(nsIFilePicker.filterAll|nsIFilePicker.filterText|nsIFilePicker.filterHTML);
if (picker.show()!=nsIFilePicker.returnCancel) var result=picker.file.path;
}
catch(e) { alert('error during local file access: '+e.toString()) }
} else {
*/ try { // IE, XP/Vista only
var s = new ActiveXObject('UserAccounts.CommonDialog');
s.Filter='All files|*.*|Text files|*.txt|HTML files|*.htm;*.html|';
s.FilterIndex=(defExt=='txt')?2:3; // default to HTML files;
s.InitialDir=path;
s.FileName=file;
if (s.showOpen()) var result=s.FileName;
}
catch(e) { var result=prompt(msg,path+file); } // fallback for other browsers
// }
return result;
},
plainTextHeader:
'Source:\n\t%0\n'
+'Title:\n\t%1\n'
+'Subtitle:\n\t%2\n'
+'Created:\n\t%3 by %4\n'
+'Application:\n\tTiddlyWiki %5 / %6 %7\n\n',
plainTextTiddler:
'- - - - - - - - - - - - - - -\n'
+'| title: %0\n'
+'| created: %1\n'
+'| modified: %2\n'
+'| edited by: %3\n'
+'| tags: %4\n'
+'- - - - - - - - - - - - - - -\n'
+'%5\n',
plainTextFooter:
'',
newsFeedHeader:
'<'+'?xml version="1.0"?'+'>\n'
+'<rss version="2.0">\n'
+'<channel>\n'
+'<title>%1</title>\n'
+'<link>%0</link>\n'
+'<description>%2</description>\n'
+'<language>en-us</language>\n'
+'<copyright>Copyright '+(new Date().getFullYear())+' %4</copyright>\n'
+'<pubDate>%3</pubDate>\n'
+'<lastBuildDate>%3</lastBuildDate>\n'
+'<docs>http://blogs.law.harvard.edu/tech/rss</docs>\n'
+'<generator>TiddlyWiki %5 / %6 %7</generator>\n',
newsFeedTiddler:
'\n%0\n',
newsFeedFooter:
'</channel></rss>',
pureStoreHeader:
'<html><body>'
+'<style type="text/css">'
+' #storeArea {display:block;margin:1em;}'
+' #storeArea div {padding:0.5em;margin:1em;border:2px solid black;height:10em;overflow:auto;}'
+' #pureStoreHeading {width:100%;text-align:left;background-color:#eeeeee;padding:1em;}'
+'</style>'
+'<div id="pureStoreHeading">'
+' TiddlyWiki "PureStore" export file<br>'
+' Source'+': <b>%0</b><br>'
+' Title: <b>%1</b><br>'
+' Subtitle: <b>%2</b><br>'
+' Created: <b>%3</b> by <b>%4</b><br>'
+' TiddlyWiki %5 / %6 %7<br>'
+' Notes:<hr><pre>%8</pre>'
+'</div>'
+'<div id="storeArea">',
pureStoreTiddler:
'%0\n%1',
pureStoreFooter:
'</div><!--POST-BODY-START-->\n<!--POST-BODY-END--></body></html>',
assembleFile: function(target,filetype,tids,limit,notes,quiet,overwrite,merge,total) {
var revised='';
var now = new Date().toLocaleString();
var src=convertUnicodeToUTF8(document.location.href);
var title = convertUnicodeToUTF8(wikifyPlain('SiteTitle').htmlEncode());
var subtitle = convertUnicodeToUTF8(wikifyPlain('SiteSubtitle').htmlEncode());
var user = convertUnicodeToUTF8(config.options.txtUserName.htmlEncode());
var twver = version.major+'.'+version.minor+'.'+version.revision;
var v=version.extensions.SaveAsPlugin; var pver = v.major+'.'+v.minor+'.'+v.revision;
var headerargs=[src,title,subtitle,now,user,twver,'SaveAsPlugin',pver,notes];
switch (filetype) {
case this.type_TX: // plain text
var header=this.plainTextHeader.format(headerargs);
var footer=this.plainTextFooter;
break;
case this.type_CS: // comma-separated
var fields={};
for (var i=0; i<tids.length; i++) for (var f in tids[i].fields) fields[f]=f;
var names=['title','created','modified','modifier','tags','text'];
for (var f in fields) names.push(f);
var header=names.join(',')+'\n';
var footer='';
break;
case this.type_NF: // news feed (XML)
headerargs[0]=store.getTiddlerText('SiteUrl','');
var header=this.newsFeedHeader.format(headerargs);
var footer=this.newsFeedFooter;
tids=store.sortTiddlers(tids,'-modified');
break;
case this.type_PS: // PureStore (no code)
var header=this.pureStoreHeader.format(headerargs);
var footer=this.pureStoreFooter;
break;
case this.type_TW: // full TiddlyWiki
default:
var currPath=getLocalPath(window.location.href);
var original=loadFile(currPath);
if (!original) { alert(config.messages.cantSaveError); return; }
var posDiv = locateStoreArea(original);
if (!posDiv) { alert(config.messages.invalidFileError.format([currPath])); return; }
var header = original.substr(0,posDiv[0]+startSaveArea.length)+'\n';
var footer = '\n'+original.substr(posDiv[1]);
break;
}
if (parseInt(limit)!=0) tids=tids.slice(0,limit);
var out=this.getData(target,filetype,tids,quiet,overwrite,merge,fields);
var revised = header+convertUnicodeToUTF8(out.join('\n'))+footer;
// if full TW, insert page title and language attr, and reset MARKUP blocks as needed...
/* YL tweak+ */ // for that, temporary change the store so that already processed tiddlers are used
var createContextStore = function(tids) {
var contextStore = new TiddlyWiki();
// copy all the tiddlers:
store.forEachTiddler(function(title,tiddler){ contextStore.addTiddler(tiddler); });
// substitute original tiddlers with their processed "images":
for(var i = 0; i < tids.length; i++) {
contextStore.deleteTiddler(tids[i].orig_title);
contextStore.addTiddler(tids[i]);
}
return contextStore;
/* YL tweak= */ }
if (filetype==this.type_TW) {
/* YL tweak+ */ // change the store so that in this context already processed tiddlers are used:
var mainStore = store;
/* YL tweak= */ store = createContextStore(tids);
var newSiteTitle=convertUnicodeToUTF8(getPageTitle()).htmlEncode();
revised=revised.replaceChunk('<title'+'>','</title'+'>',' ' + newSiteTitle + ' ');
revised=updateLanguageAttribute(revised);
var titles=[]; for (var i=0; i<tids.length; i++) titles.push(tids[i].title);
revised=updateMarkupBlock(revised,'PRE-HEAD',
titles.contains('MarkupPreHead')? 'MarkupPreHead' :null);
revised=updateMarkupBlock(revised,'POST-HEAD',
titles.contains('MarkupPostHead')?'MarkupPostHead':null);
revised=updateMarkupBlock(revised,'PRE-BODY',
titles.contains('MarkupPreBody')? 'MarkupPreBody' :null);
revised=updateMarkupBlock(revised,'POST-SCRIPT',
titles.contains('MarkupPostBody')?'MarkupPostBody':null);
/* YL tweak */ // return the original store:
/* YL tweak */ store = mainStore;
}
total.val=out.length;
return revised;
},
getData: function(target,filetype,tids,quiet,overwrite,merge,fields) {
// output selected tiddlers and gather list of titles (for use with merge)
var out=[]; var titles=[];
var url=store.getTiddlerText('SiteUrl','');
for (var i=0; i<tids.length; i++) {
out.push(this.formatItem(store,filetype,tids[i],url,fields));
titles.push(tids[i].title);
}
// if TW or PureStore format, ask to merge with existing tiddlers (if any)
if (filetype==this.type_TW || filetype==this.type_PS) {
if (overwrite) return out; // skip merge... forced overwrite
var txt=loadFile(target);
if (txt && txt.length) {
var remoteStore=new TiddlyWiki();
if (version.major+version.minor*.1+version.revision*.01<2.52) txt=convertUTF8ToUnicode(txt);
if (remoteStore.importTiddlyWiki(txt) && (merge||confirm(this.mergeprompt.format([target])))) {
var existing=remoteStore.getTiddlers('title');
for (var i=0; i<existing.length; i++)
if (!titles.contains(existing[i].title))
out.push(this.formatItem(remoteStore,filetype,existing[i],url));
if (!quiet) displayMessage(this.mergestatus.format([tids.length,out.length-tids.length]));
}
}
}
return out;
},
formatItem: function(s,f,t,u,fields) {
if (f==this.type_TW)
var r=s.getSaver().externalizeTiddler(s,t);
if (f==this.type_PS)
var r=this.pureStoreTiddler.format([t.title,s.getSaver().externalizeTiddler(s,t)]);
if (f==this.type_NF)
var r=this.newsFeedTiddler.format([t.saveToRss(u)]);
if (f==this.type_TX)
var r=this.plainTextTiddler.format([t.title, t.created.toLocaleString(), t.modified.toLocaleString(),
t.modifier, String.encodeTiddlyLinkList(t.tags), t.text]);
if (f==this.type_CS) {
function toCSV(t) { return '"'+t.replace(/"/g,'""')+'"'; } // always encode CSV
var out=[ toCSV(t.title), toCSV(t.created.toLocaleString()), toCSV(t.modified.toLocaleString()),
toCSV(t.modifier), toCSV(String.encodeTiddlyLinkList(t.tags)), toCSV(t.text) ];
for (var f in fields) out.push(toCSV(t.fields[f]||''));
var r=out.join(',');
}
return r||'';
}
};
//}}}
//{{{
// automatically add saveAs to backstage
config.tasks.saveAs = {
text: 'saveAs',
tooltip: config.macros.saveAs.prompt,
action: function(){ clearMessage(); config.macros.saveAs.go(); }
}
config.backstageTasks.splice(config.backstageTasks.indexOf('save')+1,0,'saveAs');
//}}}
/***
|''Version''|0.1.1|
|''Author''|Yakov Litvin|
|''Description''|This plugin fixes [[issue 146|https://github.com/TiddlyWiki/tiddlywiki/issues/146]] and ... [{{{TiddlyWiki.prototype.saveTiddler}}}]|
|''Overwriting notice''|This plugin overwrites the {{{Story.prototype.saveTiddler}}} and {{{TiddlyWiki.prototype.saveTiddler}}} methods. So any plugin that hijack any of these should use the {{{Requires}}} slice mentioning this plugin (if it is installed); plugins that overwrite these functions will likely cause conflicts/won't work.|
***/
//{{{
Story.prototype.saveTiddler = function(title,minorUpdate)
{
var tiddlerElem = this.getTiddler(title);
if(!tiddlerElem)
return null;
var fields = {};
this.gatherSaveFields(tiddlerElem,fields);
var newTitle = fields.title || title;
if(!store.tiddlerExists(newTitle)) {
newTitle = newTitle.trim();
var creator = config.options.txtUserName;
}
if(store.tiddlerExists(newTitle) && newTitle != title) {
if(!confirm(config.messages.overwriteWarning.format([newTitle.toString()])))
return null;
// was: title = newTitle;
// title = newTitle; // this line causes the bug
// this line is to be deleted; learn when and why this was introduced
// the next 4 usages of "title" marked with "+>" should work fine without this
}
/*+>*/ if(newTitle != title)
this.closeTiddler(newTitle,false);
tiddlerElem.id = this.tiddlerId(newTitle);
tiddlerElem.setAttribute("tiddler",newTitle);
tiddlerElem.setAttribute("template",DEFAULT_VIEW_TEMPLATE);
tiddlerElem.setAttribute("dirty","false");
if(config.options.chkForceMinorUpdate)
minorUpdate = !minorUpdate;
if(!store.tiddlerExists(newTitle))
minorUpdate = false;
var newDate = new Date();
/*+>*/ if(store.tiddlerExists(title)) {
/*+>*/ var t = store.fetchTiddler(title);
var extendedFields = t.fields;
creator = t.creator;
} else
extendedFields = merge({},config.defaultCustomFields);
for(var n in fields)
if(!TiddlyWiki.isStandardField(n))
extendedFields[n] = fields[n];
/*+>*/ var tiddler = store.saveTiddler(title,newTitle,fields.text,minorUpdate ? undefined : config.options.txtUserName,minorUpdate ? undefined : newDate,fields.tags,extendedFields,null,null,creator);
autoSaveChanges(null,[tiddler]);
return newTitle;
};
//}}}
// // Ещё один, более мелкий фикс (делает более ясным код {{{TiddlyWiki.prototype.saveTiddler}}}, исправляет назначение custom fields в случае, когда ...); важен для renaming в SMP!
//{{{
TiddlyWiki.prototype.saveTiddler = function(title,newTitle,newBody,modifier,modified,tags,fields,clearChangeCount,created,creator)
{
var tiddler;
if(title instanceof Tiddler) {
tiddler = title;
title = tiddler.title;
} else
tiddler = this.fetchTiddler(title);
if(tiddler) {
created = created || tiddler.created; // Preserve created date
creator = creator || tiddler.creator;
this.deleteTiddler(title);
} else {
created = created || modified;
tiddler = new Tiddler();
}
fields = merge(merge(tiddler ? tiddler.fields : {},fields), config.defaultCustomFields,true);
tiddler.set(newTitle,newBody,modifier,modified,tags,created,fields,creator);
this.addTiddler(tiddler);
if(clearChangeCount)
tiddler.clearChangeCount();
else
tiddler.incChangeCount();
if(title != newTitle)
this.notify(title,true);
this.notify(newTitle,true);
if(window.location.protocol == "file:")
this.setDirty(true);
return tiddler;
};
//}}}
/***
|''Version''|1.6.5|
***/
//{{{
// styling helpers
var getStylesFromSection = function(sectionName) {
var css = store.getTiddlerText("SetCommonStylesPlugin##"+sectionName,"");
return css.replace("{{{","/"+"*{{{*"+"/").replace("}}}","/"+"*}}}*"+"/");
};
var setCssShadow = function(sectionName,shadowName) {
config.shadowTiddlers[shadowName] = getStylesFromSection(sectionName);
store.addNotification(shadowName, refreshStyles);
store.addNotification("ColorPalette",function(smth,doc) {
refreshStyles(shadowName,doc);
});
};
// set styles
setCssShadow("Semantics", "CommonSemanticsStyleSheet");
setCssShadow("Representation", "CommonRepresenationStyleSheet");
setCssShadow("Representation tools", "CommonRepresToolsStyleSheet");
//if(jQuery.browser.mozilla) // now done via CSS
setCssShadow("FireFox CSS", "FireFoxFixesStyleSheet");
csp_old_wikify = wikify;
wikify = function(source,output,highlightRegExp,tiddler) {
csp_old_wikify.apply(this,arguments);
jQuery(".NTerm").each(function(){
// avoid multiple wrapping because of ~ wikifications:
if(!jQuery(this.parentNode).hasClass("NTermWrap"))
jQuery(this).wrap("<span class='NTermWrap'></span>");
});
jQuery(".LimitGeneral").each(function(){
// avoid multiple wrapping because of ~ wikifications:
if(!jQuery(this.parentNode).hasClass("LimitGeneralWrap"))
jQuery(this).wrap("<span class='LimitGeneralWrap'></span>");
});
};
// to get green underlined, add a wrapper with the NTermWrap class; apply the styling to both wrappers (.NTermWrap) and the element itself (.NTerm)
// hide message area on click elsewhere (useful for touchscreen devices
var positiveClearMessage = function() {
clearMessage();
return true;
};
jQuery("body").on("click",positiveClearMessage);
if(!config.extensions.postponeMsg) {
config.extensions.postponeMsg = true;
config.extensions.orig_displayMessage = displayMessage;
displayMessage = function(a,b) {
var doDisplay = function() { config.extensions.orig_displayMessage(a,b); };
setTimeout(doDisplay,100);
};
}
//}}}
/***
!!!Semantics
{{{
div[tags~="code"] .editor, #tiddlerStyleSheet .editor,
div[tags~="systemConfig"] .editor
{ font-family: monospace; }
.PoG, .PoGc { color: green; }
.DDn, .DDnc { color: purple; }
.FpG, .FpGc { color: blue; }
.PoGc:before, .DDnc:before, .FpGc:before,
.c:before { content: "["; color: [[ColorPalette::Foreground]]; }
.PoGc:after, .DDnc:after, .FpGc:after,
.c:after { content: "]"; color: [[ColorPalette::Foreground]]; }
.NTerm { color: [[ColorPalette::Foreground]]; font-weight: normal; }
.NTermWrap { color: #00aa00; text-decoration: underline; font-weight: bold; }
.LimitGeneral { color: [[ColorPalette::Foreground]]; font-weight: normal; }
.LimitGeneralWrap { color: #0000ff; text-decoration: underline; font-weight: bold; }
}}}
!!!Semantics details
* possibilities of growth (including comments): {{{.PoG}}}, {{{.PoGc}}}
* done [written] to be done, but not ideally: {{{.DDn}}}, {{{.DDnc}}}
* frozen possibilities of growth or things done/written not ideally: {{{.FpG}}}, {{{.FpGc}}}
* just comments or implied things: {{{.c}}}
* {{{code}}} tag is to be used in tiddlers with code (CSS, ~JavaScript etc) which changes representation when editing
* {{PoGc{лучше перевести все описания на русский -- слишком много неопределённости}}}
* {{PoGc{стоит что-то придумать с {{{[[ColorPalette::Foreground]]}}} на случай night mode}}}
!!!Representation
{{{
#sidebarOptions .sliderPanel { background-color:[[ColorPalette::Background]] !important;
font-size: 95% !important; }
#tiddlerStyleSheet .viewer pre { clear: both !important; }
.headerForeground,
.headerShadow { padding-top: 1em !important; }
.viewer .tabContents { background-color: inherit; }
}}}
!!!Representation details
* ...
* {{{margin-bottom}}} of {{{#displayArea}}} -- to be able to keep the content on the eye level
!!!Representation tools
{{{
table.borderless,
table.borderless tr,
table.borderless td,
table.borderless th { border: 0 !important; }
div[tags~="hideTagged"]
.tagging { display: none; }
div[tags~="hideTags"]
.tagged { display: none; }
}}}
!!!Representation tools details
* ...
!!!FireFox CSS
{{{
@-moz-document url-prefix() {
pre, code, div[tags~="code"] .editor,
div[tags~="systemConfig"] .editor,
#tiddlerStyleSheet .editor
{ font-family: 'Droid Sans Mono', Consolas !important; font-size: 100% !important; }
}
}}}
!!!!
***/
/***
|Version|0.1|
|Short status|<<insertEditable container:"@stateComment" size:max cell>>|
***/
//{{{
// adapted from the 2.7.1 core:
// Sets the value of the given field of the tiddler to the value.
// Setting an ExtendedField's value to null or undefined removes the field.
// Setting a namespace to undefined removes all fields of that namespace.
// The fieldName is case-insensitive.
// All values will be converted to a string value.
TiddlyWiki.prototype.setValue = function(tiddler,fieldName,value,noNotify)
{
TiddlyWiki.checkFieldName(fieldName);
var t = this.resolveTiddler(tiddler);
if(!t)
return;
fieldName = fieldName.toLowerCase();
var isRemove = (value === undefined) || (value === null);
var accessor = TiddlyWiki.standardFieldAccess[fieldName];
if(accessor) {
if(isRemove)
// don't remove StandardFields
return;
var h = TiddlyWiki.standardFieldAccess[fieldName];
if(!h.set(t,value))
return;
} else {
var oldValue = t.fields[fieldName];
if(isRemove) {
if(oldValue !== undefined)
// deletes a single field
delete t.fields[fieldName];
else {
// no concrete value is defined for the fieldName
// so we guess this is a namespace path.
// delete all fields in a namespace
var re = new RegExp("^"+fieldName+"\\.");
var dirty = false;
var n;
for(n in t.fields)
if(n.match(re)) {
delete t.fields[n];
dirty = true;
}
if(!dirty)
return;
}
} else {
// the "normal" set case. value is defined (not null/undefined)
// For convenience provide a nicer conversion Date->String
value = value instanceof Date ? value.convertToYYYYMMDDHHMMSSMMM() : String(value);
if(oldValue == value)
return;
t.fields[fieldName] = value;
}
}
// When we are here the tiddler/store really was changed.
if(!noNotify)
this.notify(t.title,true);
if(!fieldName.match(/^temp\./))
this.setDirty(true);
};
//}}}
/***
|Version|0.11.3|
|Requires|ForEachTiddlerPlugin SetFieldPlugin SharedTiddlersPlugin|
|~|ForEachTiddlerPlugin is not required for the operation of the plugin, but if FETP is present, it should be evaluated before this plugin (same for SharedTiddlersPlugin); also, there's no other simple way to use this plugin aside with FETP; SetFieldPlugin is required for quality (removes extra refreshing which quickens some actions and removes some representation bugs|
|Documentation|[[SetManagerPluginInfo]]|
|Author|Yakov Litvin|
***/
//{{{
// sort counters methods ("S" stands for "sort")
Tiddler.prototype.getSCounterPlace = function(storageName)
{
storageName = storageName || config.macros.itemMenu.defaultField
var withFieldNameRegExp = /(.*?)@@(.*)/,
withFieldNameMatch = withFieldNameRegExp.exec(storageName);
return {
storageName: withFieldNameMatch ? withFieldNameMatch[1] : null,
fieldName: withFieldNameMatch ? withFieldNameMatch[2] : storageName
}
};
Tiddler.prototype.getRawSData = function(fieldName)
{
fieldName = fieldName || config.macros.itemMenu.defaultField;
if(!this.getIncludeURL || !this.getIncludeURL())
return store.getValue(this,fieldName);
};
Tiddler.prototype.getSCounter = function(fieldName)
{
var storageData = this.getSCounterPlace(fieldName),
storageName = storageData.storageName,
storageField = storageData.fieldName,
indexText;
if(!this.getIncludeURL || !this.getIncludeURL())
return parseInt(this.getRawSData(storageField));
// for included tiddlers use a separate tiddler as a stored index
if(storageName) {
var storageTiddler = store.fetchTiddler(storageName);
indexText = storageTiddler ?
storageTiddler.getRawSData(storageField) : "";
} else
indexText = store.getTiddlerText(storageField);
// find the line in the index which describes the tiddler, if present
var indexLineRegExp = config.macros.itemMenu.getIndexLineRegExp(this.title),
indexMatch = indexLineRegExp.exec(indexText);
return indexMatch ? parseInt(indexMatch[1]) : undefined;
};
Tiddler.prototype.setRawSData = function(fieldName,value)
{
fieldName = fieldName || config.macros.itemMenu.defaultField;
// reduced version of store.setValue(this,fieldName,value) for SData
TiddlyWiki.checkFieldName(fieldName);
fieldName = fieldName.toLowerCase();
if(TiddlyWiki.standardFieldAccess[fieldName])
return;
if(this.fields[fieldName] == value)
return;
this.fields[fieldName] = ""+value; // as a String, only string values are stored
store.setDirty(true);
};
Tiddler.prototype.updateSIndex = function(indexText,value)
{
// find the line in the index which describes the tiddler, if present
var indexLineRegExp = config.macros.itemMenu.getIndexLineRegExp(this.title),
indexMatch = indexLineRegExp.exec(indexText);
var newIndexLine = config.macros.itemMenu.createIndexLine(this.title,value);
if(indexMatch)
indexText = indexText.replace(indexLineRegExp,newIndexLine);
else
indexText += (newIndexLine+"\n");
return indexText;
};
Tiddler.prototype.setSCounter = function(fieldName,value)
{
var storageData = this.getSCounterPlace(fieldName),
storageName = storageData.storageName,
storageField = storageData.fieldName,
indexText;
if(!this.getIncludeURL || !this.getIncludeURL()) {
this.setRawSData(storageField,value);
return;
};
// for included tiddlers use a separate tiddler as a stored index
// for orderField@@tiddlerName syntax, use the storageName tiddler
// for storage, otherwise use the fieldName tiddler
var indexTid = store.fetchTiddler(storageName || fieldName);
if(!indexTid)
indexTid = store.createTiddler(storageName || fieldName);
if(storageName) {
indexText = indexTid.getRawSData(storageField) || "";
indexText = this.updateSIndex(indexText,value);
indexTid.setRawSData(storageField,indexText);
} else
indexTid.text = this.updateSIndex(indexTid.text,value);
};
Tiddler.prototype.deleteSCounter = function(fieldName)
{
fieldName = fieldName.toLowerCase();
if(TiddlyWiki.standardFieldAccess[fieldName])
return; // use of StandardFields is unlikely, but don't remove them anyway
if(this.getSCounter(fieldName) !== undefined)
delete this.fields[fieldName];
};
// --------------------------------------------------------------------------------
TiddlyWiki.prototype.saveModifiedTiddler = function(title, newTitle, newBody, tags, fields, clearChangeCount, created, creator) {
var tidBeingChanged = (title instanceof Tiddler) ? title : this.fetchTiddler(title);
title = tidBeingChanged.title;
var conflictingTiddler = this.fetchTiddler(newTitle) || this.fetchTiddler(title);
if(conflictingTiddler && conflictingTiddler != tidBeingChanged)
if(!confirm("A tiddler named \""+title+"\" already exists. Do you want to overwrite it?"))
return;
return this.saveTiddler(title,newTitle,newBody,
config.options.txtUserName,
new Date(),
tags,fields,clearChangeCount,created,creator)
};
var preventOtherHandling = window.preventOtherHandling = function(e)
{
// prevent propagation
if (e.stopPropagation)
e.stopPropagation();
e.cancelBubble = true;
// prevent browser action from firing
if(e.preventDefault)
e.preventDefault();
e.returnValue = false;
// see https://learn.javascript.ru/default-browser-action
}
// helps to avoid popup closing on event
var wrapNoClose = window.wrapNoClose = function(func)
{
return function(ev)
{
if(func) func.apply(this,arguments);
var e = ev || window.event; // support old IE
if(!e)
return false;
preventOtherHandling(e);
};
};
// helps to make the height of textareas appropriate (a working prototype)
//# defaultHeight should be calced as a height of one line;
//# maxHeight - not more than 1/2 or 3/4 of the screen
//# also, better to get rid of shrinking scrollbar..
var adjustHeightToContent = function()
{
var defaultHeight = 30;
var maxHeight = 400;
jQuery(this).height(defaultHeight);
jQuery(this).height(Math.min(this.scrollHeight , maxHeight));
};
// --------------------------------------------------------------------------------
// constants for using with jQuery .which() in keyup handlers
var $tab = 9,
$enter = 13,
$esc = 27,
$delete = 46,
$home = 36,
$end = 35,
$up = 38,
$down = 40,
$pgUp = 33,
$pgDn = 34,
$plus = 61,
$r = 82,
$e = 69,
$t = 84,
$i = 73,
$x = 88,
$d = 68;
// --------------------------------------------------------------------------------
// detecting touch-screens (see http://stackoverflow.com/a/4819886/3995261)
window.isOpenedOnTouchScreen = function()
{
return !!('ontouchstart' in this);
}
//}}}
//{{{
config.macros.itemMenu =
{
getIndexLineRegExp: function(tiddlerName) {
return new RegExp(tiddlerName.escapeRegExp() + ": ([0-9]+)");
},
createIndexLine: function(tiddlerName, value) {
return tiddlerName+": "+value;
},
defaultField: "orderCounter",
itemMenuClass: "listMenuButton",
sortByCounter: function(tiddlerArray, fieldName)
{
var defaultValue = -1; // undefinedUp (1000 for undefinedDown)
return tiddlerArray.sort(function(t1,t2){
var c1 = t1.getSCounter(fieldName), c2 = t2.getSCounter(fieldName);
c1 = (!c1 && c1 != 0) ? defaultValue : c1;
c2 = (!c2 && c2 != 0) ? defaultValue : c2;
return c1 - c2;
});
},
currentlyDragged: [],
setCurrentlyDragged: function(tidName,sortField,dropAction,itemMenuElement,
onKeyDown,onKeyUp)
{
this.currentlyDragged.push({
name: tidName,
field: sortField,
dropAction: dropAction,
itemMenuElement: itemMenuElement,
onKeyDown: onKeyDown,
onKeyUp: onKeyUp
});
if(itemMenuElement) {
jQuery(itemMenuElement).bind("keyup",onKeyUp);
jQuery(itemMenuElement).bind("keydown",onKeyDown);
}
},
clearCurrentlyDragged: function()
{
if(!this.currentlyDragged[0]) return;
var i, context, upHandler, downHandler;
for(i = 0; i < this.currentlyDragged.length; i++)
{
context = this.currentlyDragged[i];
upHandler = context.onKeyUp;
downHandler = context.onKeyDown;
if(!context.itemMenuElement) continue;
if(downHandler)
jQuery(context.itemMenuElement).unbind("keydown",downHandler);
if(upHandler)
jQuery(context.itemMenuElement).unbind("keyup",upHandler);
}
this.currentlyDragged = [];
jQuery(".buttonSortState").parent().parent().removeClass("selected");
//# check if /\ grandparent is <tr> and remove only in that case
jQuery(".buttonSortState").removeClass("buttonSortState");
},
getCurrentlyDragged: function() {
//# for now, works only with the first selection (if multiple)
return this.currentlyDragged[0] ? this.currentlyDragged[0].name : null;
},
getCurrentSourceListContext: function() {
//# for now, works only with the first selection (if multiple)
return this.currentlyDragged[0];
},
markSelected: function(itemMenu)
{
if(!itemMenu) return;
jQuery(itemMenu).addClass("buttonSortState").focus();
if(itemMenu.parentElement.tagName.toLowerCase() == "td")
jQuery(itemMenu).parent().parent().addClass("selected");
},
ensureFocusOnCurrentlyDragged: function()
{
var currentlyDragged = this.getCurrentSourceListContext();
console.log("currentlyDragged:");console.log(currentlyDragged);
if(!currentlyDragged) return;
var itemMenu = currentlyDragged.itemMenuElement;
// because of refreshing, itemMenu can be no longer attached to the ~root
// element (document? html?). If that's the case, find the new one
var newItemMenu, itemMenus = jQuery("."+this.itemMenuClass+
'[filter=\''+itemMenu.getAttribute("filter")+'\']')
.each(function(i,el){
if(el.tiddler == itemMenu.tiddler)
newItemMenu = el;
});
if(newItemMenu != itemMenu) {
// remember actual element, reattach onkeyup, onkeydown handlers
currentlyDragged.itemMenuElement = newItemMenu;
jQuery(newItemMenu).bind("keyup",currentlyDragged.onKeyUp);
jQuery(newItemMenu).bind("keydown",currentlyDragged.onKeyDown);
}
this.markSelected(newItemMenu);
},
actionStepsWithArguments: {},
actionStepsWithoutArguments: {},
applyActionStep: function(tiddler, actionStep, rootElement)
{
var actionRegExp = /(.\w+)\.\.(.*)/,
match = actionRegExp.exec(actionStep),
actionStepName;
if(match) { // action with an argument
for(actionStepName in this.actionStepsWithArguments)
if(actionStepName == match[1])
return this.actionStepsWithArguments[actionStepName](tiddler,match[2],rootElement);
//# may be throw an error/warning?
return;
} else // actionStep without arguments
for(actionStepName in this.actionStepsWithoutArguments)
if(actionStepName == actionStep)
return this.actionStepsWithoutArguments[actionStepName](tiddler,rootElement);
//# may be throw an error/warning?
return;
},
parseAndApplyAction: function(tiddler, actionLine, rootElement, noNotify)
{
if(!tiddler || !actionLine)
return;
var actionStepsArray = actionLine.split(",,");
for(var i = 0; i < actionStepsArray.length; i++)
this.applyActionStep(tiddler,jQuery.trim(actionStepsArray[i]), rootElement);
if(!noNotify)
store.notify(tiddler.title,true);
},
parseAndSeparateActions: function(actionsLine)
{
var actionsArray = actionsLine.split(";;");
if(actionsArray.length == 1 && !actionsArray[0].contains("::"))
return jQuery.trim(actionsArray[0]);
var actionMap = {},
name_and_action_RegExp = /(.+?)::(.*)/, match;
for(var i = 0; i < actionsArray.length; i++)
{
match = name_and_action_RegExp.exec(actionsArray[i]);
if(!match || !match[1] || !match[2])
//# may be throw an error/warning?
continue;
actionMap[jQuery.trim(match[1])] = jQuery.trim(match[2]);
actionMap["default"] = actionMap["default"] || jQuery.trim(match[2]);
}
return actionMap;
},
// moving helpers
checkCounters: function(filter,field)
{
var tids = store.filterTiddlers(filter);
tids = this.sortByCounter(tids, field);
for(var i = 0; i < tids.length; i++)
tids[i].setSCounter(field,i);
return tids;
},
moveToArbitraryPlace: function(filter,tiddler,field,index,doCycle)
{
var tids = this.checkCounters(filter,field), i,
tidIndex = tids.indexOf(tiddler),
tidsNum = tids.length;
// parse "top"/"bottom" values
index = (index == "top") ? 0 : (index == "bottom" ? tidsNum-1 : index);
if(doCycle) {
index = index % tidsNum;
index = (index < 0) ? (index + tidsNum) : index;
}
// do nothing in cases.. ("tidIndex < 0" = "tiddler is not in the list")
if(tidIndex == index || tidIndex < 0 || index < 0 || index >= tids.length)
return;
// move items
tiddler.setSCounter(field,index);
if(tidIndex > index)
for(i = index; i < tidIndex; i++)
tids[i].setSCounter(field,i+1);
else
for(i = index; i > tidIndex; i--)
tids[i].setSCounter(field,i-1);
// refresh the list (order)
store.notify(field,true);
// ~200 ms for notifying / in which browser?
},
moveToTop: function(filter,tiddler,field)
{ this.moveToArbitraryPlace(filter,tiddler,field,"top"); },
moveToBottom: function(filter,tiddler,field)
{ this.moveToArbitraryPlace(filter,tiddler,field,"bottom"); },
// syntax: <<itemMenu tiddlerName filter field:fieldName addAction:actionSyntax
// dropAction:actionSyntax switchActions:actionsSyntax>>
handler: function(place,macroName,params,wikifier,paramString,tiddler)
{
// parse params: tiddlerName, context filter; field, noConflicts
var pParams = paramString.parseParams("pP",null,true,false,true),
tName = pParams[0]["pP"][0], // name of the tid governed by itemMenu
tid = store.fetchTiddler(tName),
filter = pParams[0]["pP"][1], // tids among which the sorting is done
field = getParam(pParams,"field",this.defaultField), // field which holds the counter value
addAction = getParam(pParams,"addAction",""), //
dropAction = getParam(pParams,"dropAction",""), //
switchActions = getParam(pParams,"switchActions",""); //
var cmi = config.macros.itemMenu; // shortcut
var serapartedSwitchActions = this.parseAndSeparateActions(switchActions);
var checkCounters = function()
{ return cmi.checkCounters(filter,field); };
// selecting/rearranging helpers
var cancelSelection = function()
{
cmi.clearCurrentlyDragged();
Popup.remove(); // close the popup, including on esc
};
var getSelected = function()
{
// get currently "dragged" itemMenu element
var draggedContext = cmi.getCurrentSourceListContext();
return draggedContext ? draggedContext.itemMenuElement : null;
};
// jQuery of itemMenu elements with the same filter
var getJMenus = function()
{
return jQuery("."+cmi.itemMenuClass+"[filter='"+filter+"']");
};
var reselectByIndex = function(jMenus,index) // jMenus is "jQuery(menus)"
{
var menuToSelect = jMenus[index];
if(!menuToSelect) return;
cancelSelection();
// select (focus is needed for keyboard events to fire)
jQuery(menuToSelect).focus().click();
console.log("click generated in reselectByIndex");
//# may be optimize the two previous steps (do reselection directly)
};
var selectNext = function()
{
var itemMenu = getSelected();
if(!itemMenu) return;
// other item menus, found by the same filter
var menus = getJMenus(),
currentIndex = menus.index(itemMenu);
reselectByIndex(menus,currentIndex+1);
};
var selectPrev = function()
{
var itemMenu = getSelected();
if(!itemMenu) return;
// other item menus, found by the same filter
var menus = getJMenus(),
currentIndex = menus.index(itemMenu);
reselectByIndex(menus,currentIndex-1);
};
var selectNeighbour = function()
{
var itemMenu = getSelected();
if(!itemMenu) return;
// other item menus, found by the same filter
var menus = getJMenus(),
currentIndex = menus.index(itemMenu);
if(currentIndex > 0)
reselectByIndex(menus,currentIndex-1);
else
reselectByIndex(menus,currentIndex+1);
// returns true when successfully selected another item
return getSelected() != itemMenu;
};
var selectFirst = function()
{
// other item menus, found by the same filter
var menus = getJMenus();
reselectByIndex(menus,0);
};
var selectLast = function()
{
// other item menus, found by the same filter
var menus = getJMenus();
reselectByIndex(menus,menus.length-1);
};
var moveDown = function(doReselect)
{
var tids = checkCounters(), i = tids.indexOf(tid);
if(i < 0) return; // not among tids
if(i >= tids.length-1) // out of boundaries
return doReselect ? "" : cancelSelection();
// make the switch with the neighbour
tids[i].setSCounter(field,i+1);
tids[i+1].setSCounter(field,i);
// refresh the list (order)
store.notify(field,true);
//# try to avoid extra refreshing on long press down
if(doReselect) reselectByIndex(getJMenus(),i+1);
};
var moveUp = function(doReselect)
{
var tids = checkCounters(), i = tids.indexOf(tid);
if(i < 0) return; // not among tids
if(i <= 0) // out of boundaries
return doReselect ? "" : cancelSelection();
// make the switch with the neighbour
tids[i].setSCounter(field,i-1);
tids[i-1].setSCounter(field,i);
// refresh the list (order)
store.notify(field,true);
if(doReselect) reselectByIndex(getJMenus(),i-1);
};
var moveToTop = function(doReselect)
{
cmi.moveToTop(filter,tid,field);
if(doReselect) reselectByIndex(getJMenus(),0);
};
var moveToBottom = function(doReselect)
{
cmi.moveToBottom(filter,tid,field);
var menus = getJMenus();
if(doReselect) reselectByIndex(menus,menus.length-1);
};
var moveToArbitraryPlace = function(movingTidName, above)
{ // filter, targetTidName is got via enclosure
var tids = checkCounters(),
movingTid = store.fetchTiddler(movingTidName),
targetTid = store.fetchTiddler(tName),
movingInd = tids.indexOf(movingTid),
targetInd = tids.indexOf(targetTid),
index = targetInd + ((movingInd > targetInd) ? (above ? 0 : 1) : (above ? -1 : 0));
cmi.moveToArbitraryPlace(filter,movingTid,field, index);
};
var onClickItemMenu = wrapNoClose(function(e)
{
if(!cmi.getCurrentlyDragged()) // ~drag
{
clearMessage(); // useful on smartphones
// open the popup menu:
var manageButton = this;
var popup = Popup.create(this);
jQuery(popup).addClass("itemMenu");
// then, add buttons there:
// the "cancel selection" button
createTiddlyButton(popup,"","cancel selection",
cancelSelection,"cancelSelectionButton button");
// switch action(s) button
var createActionButtonInPopup = function(place,actionName)
{
var li = createTiddlyElement(place,"li"),
action = serapartedSwitchActions[actionName];
createTiddlyButton(li,actionName,"",function(){
cmi.parseAndApplyAction(tid,action,this);
cancelSelection();
},"listedDoActionButton button");
};
var bringActions = wrapNoClose(function() {
if(serapartedSwitchActions["default"])
{
// named actions
var dPopup = Popup.create(popup), li, actName;
for(actName in serapartedSwitchActions) {
if(actName == "default")
continue;
createActionButtonInPopup(dPopup, actName);
}
Popup.show("bottom","left");
} else { // single unnamed action is defined
cmi.parseAndApplyAction(tid,switchActions, this);
cancelSelection();
}
cmi.clearCurrentlyDragged();
// no class removing since refreshing is applied
});
if(serapartedSwitchActions && tid)
createTiddlyButton(popup,"","drop this item",
bringActions,"doActionButton button");
// tag toggler
var macroText = "<<tagToggler [["+tName+"]] \"\">>";
wikify(macroText, popup);
var tagButton = popup.lastChild,
startTagToggling = function() {
jQuery(tagButton).click();
console.log("click generated in startTagToggling");
};
// the "info" button
var showTiddlerInfo = wrapNoClose(function(){
var infoPopup = Popup.create(popup);
createTiddlyText(infoPopup,"references:");
config.commands.references.handlePopup(infoPopup, tid.title);
Popup.show("bottom","left");
return false;
});
createTiddlyButton(popup,"","tiddler info", showTiddlerInfo,"tiddlerInfoButton button");
// the "rename" button
var startRenaming = wrapNoClose(function(){
var renamePopup = Popup.create(popup),
li = createTiddlyElement(renamePopup,"li"),
initTitle = tid.title,
nameField = createTiddlyElement(li,"textarea",null,"nameInput"),
changeName = function(doSave,goOnSelected)
{
var newTitle = jQuery.trim(nameField.value);
store.saveModifiedTiddler(initTitle,newTitle);
story.refreshTiddler(tid.title,null,true);
if(doSave) autoSaveChanges();
if(!goOnSelected)
cancelSelection();
else
cmi.ensureFocusOnCurrentlyDragged();
};
nameField.value = tid.title;
createTiddlyButton(li,"rename","rename \""+tid.title
+"\"",changeName,"button renameButton");
nameField.onclick = wrapNoClose(); // prevent popup closing
// press enter to apply or esc to exit
// (shift and ctrl are also taken into account)
nameField.onkeydown = function(ev)
{
var e = ev || window.event;
if(e.which == $enter) {
changeName(e.ctrlKey,e.shiftKey);
Popup.remove(1); // renamePopup only
window.preventOtherHandling(e);
}
if(e.which == $esc) {
if(e.shiftKey) {
cmi.ensureFocusOnCurrentlyDragged();
Popup.remove(1);
window.preventOtherHandling(e);
} else
cancelSelection();
}
};
Popup.show("bottom","left");
nameField.focus(); // put the cursor inside the name edit area
});
createTiddlyButton(popup,"","rename this tiddler", startRenaming,"renameTiddlerButton button");
// the "edit text" button
var startEditing = wrapNoClose(function()
{
var textEditPopup = Popup.create(popup),
li = createTiddlyElement(textEditPopup,"li"),
textField = createTiddlyElement(li,"textarea",null,"ttextInput"),
changeText = function(e)
// e is either click or keydown (enter) event
{
var goOnSelected = e.shiftKey;
tid.set(null,textField.value);
store.saveModifiedTiddler(tid);
story.refreshTiddler(tid.title,null,true);
autoSaveChanges();
if(goOnSelected)
cmi.ensureFocusOnCurrentlyDragged();
else
cancelSelection();
};
textField.value = tid.text;
// change the width of the popup and hence of {{{textField}}}
textEditPopup.style.width = "100%";
createTiddlyButton(li,"save","save the text of \""+
tid.title+"\"",changeText,
"button saveTextButton");
textField.onclick = wrapNoClose(); // prevent popup closing
// press enter to apply or esc to exit
// (shift and ctrl are also taken into account)
textField.onkeydown = function(ev)
{
var e = ev || window.event;
if(e.ctrlKey && e.which == $enter) {
changeText(e);
Popup.remove(1); //textEditPopup only
window.preventOtherHandling(e);
}
if(e.which == $esc) {
if(e.shiftKey) {
cmi.ensureFocusOnCurrentlyDragged();
Popup.remove(1);
window.preventOtherHandling(e);
} else {
Popup.remove();
cancelSelection();
}
}
};
textField.onkeypress = function(e)
{
adjustHeightToContent.apply(this);
// avoid firing of story.onTiddlerKeyPress
if(e.which == $enter) {
if(e.stopPropagation)
e.stopPropagation();
e.cancelBubble = true;
}
// don't return false to insert linebreaks
// on enter (when typing)
}
Popup.show("bottom","left");
adjustHeightToContent.apply(textField);
textField.focus(); // put the cursor inside the text edit area
});
createTiddlyButton(popup,"","edit the tiddler text",
startEditing,"editTiddlerTextButton button");
// the "open" button
var i = getTiddlyLinkInfo(tName,"openTiddlerButton button"),
openTiddler = function(e) {
onClickTiddlerLink(e);
cancelSelection();
},
openButton = createTiddlyButton(popup,"","open "+tName,
openTiddler,i.classes,null,null,{
refresh: "link", tiddlyLink: tName
}), // see createTiddlyLink source
clickOpenTiddler = function(){
jQuery(openButton).click();
console.log("click generated in clickOpenTiddler");
};
// "add" button
var cma = config.macros.addTiddler;
if(cma && addAction) {
var btn = createTiddlyButton(popup,"",
"add tiddler here",cma.onClick,
"addTiddlerButton button"),
currentIndex = getJMenus().index(this);
btn.params = { title:"", text:"", commonTags:[],
addAction: addAction,
orderCounter: field,
orderFilter: filter,
orderMode: currentIndex+1
}
var addTiddler = function() {
jQuery(btn).click();
};
}
// the "delete" button
var confirmDeleteMsg = config.commands.deleteTiddler.warning,
deleteTiddler = function(e,goOnSelected)
{
if(e) // on click
goOnSelected = goOnSelected || e.shiftKey;
if(confirm(confirmDeleteMsg.format([tName]))) {
if(goOnSelected)
goOnSelected = selectNeighbour();
// if no neighbour, nothing to reselect
store.removeTiddler(tName);
autoSaveChanges();
}
if(goOnSelected)
cmi.ensureFocusOnCurrentlyDragged();
else
cancelSelection();
};
createTiddlyButton(popup,"","delete this tiddler",
deleteTiddler,"deleteTiddlerButton button");
// support keyboard
// keypress ignores "delete", arrows etc, hence keydown
var onKeyDownItemMenu = function(e) {
switch(e.which) {
case $enter: clickOpenTiddler();break;
case $down:
if(e.ctrlKey) moveDown(true);
else selectNext();
break;
case $up:
if(e.ctrlKey) moveUp(true);
else selectPrev();
break;
case $home:
if(e.ctrlKey) moveToTop(true);
else selectFirst();
break;
case $end:
if(e.ctrlKey) moveToBottom(true);
else selectLast();
break;
case $esc:
// onkeydown here, because onkeyup ~can't be
// prevented from ~propagation in subpopups
if(!e.shiftKey)
cancelSelection();
else
//for the info and tag popups
Popup.remove(1);
break;
//# add keyboard support for moving to the beginning/end (ctrl+)"Home"/"End"
}
// allow browser tab switching
if(e.which != $tab || !e.ctrlKey)
return false;
};
var onKeyUpItemMenu = function(e) {
switch(e.which) {
case $i: showTiddlerInfo(); break;
case $r: startRenaming(); break;
case $e: startEditing(); break;
case $t: startTagToggling(); break;
case $d:
if(serapartedSwitchActions && tid)
bringActions();
break;
case $plus:
if(cma && addAction)
addTiddler(e);
break;
case $delete: case $x:
// tries to reselect if e.shiftKey!
deleteTiddler(null,e.shiftKey);
break;
//# add keyboard support for actions D[A?]
}
return false;
};
cmi.setCurrentlyDragged(tName, field, dropAction, this, onKeyDownItemMenu, onKeyUpItemMenu);
cmi.markSelected(this);
/*# create array of { handler: .. , label: .. , activationKeys: .. }
and try to make button creation, keyboard support "for each ..", extendable set of .. */
Popup.show("top","right");
jQuery(popup).addClass("hide");
} else { // ~drop
// if taken from another list, the item must be changed by the drop+add actions
var dragListContext = cmi.getCurrentSourceListContext(),
dropActionNow = dragListContext.dropAction,
/* not 100% accurate */ sameList = (dropActionNow == dropAction) && (dragListContext.field == field),
dropFromOtherList = !sameList && (dropActionNow || addAction),
dropAndAddAction = (dropActionNow && addAction) ?
(dropActionNow+",,"+addAction)
: (dropActionNow || addAction);
if(dropFromOtherList)
{
var draggedTid = store.fetchTiddler(cmi.getCurrentlyDragged());
cmi.parseAndApplyAction(draggedTid,dropAndAddAction);
draggedTid.deleteSCounter(dragListContext.field);
}
// move the item
Popup.remove(); // close the popup
if(cmi.getCurrentlyDragged() == tName) {
jQuery(this).removeClass("buttonSortState");
moveDown(); // on drop-on-self
} else
moveToArbitraryPlace(cmi.getCurrentlyDragged(),true);
// refreshing removes the "buttonSortState" class
cmi.clearCurrentlyDragged();
}
});
// create the 2 sets of classes for the button and for the table row
// (if itemMenu is inside a td element) based on the tiddler's tags
var itemMenuClasses = this.itemMenuClass,
rowClasses = "",
badSymbolsRE = /[\.,;:`!@#\$%\^&\*\(\)\+=\[\]\{\}\|\\/'"~ ]/g;
for(var i = 0 ; tid && i < tid.tags.length ; i++) {
// process each tag: substitute spaces and symbols .,;:!'"()[]{}=+\|/*&^%$#@`~ with "_"
itemMenuClasses += " marker_"+ tid.tags[i].replace(badSymbolsRE,"_");
rowClasses += "line_"+ tid.tags[i].replace(badSymbolsRE,"_")+" ";
}
// create the button(s) // text is set via CSS
var btn = createTiddlyButton(place,"","",onClickItemMenu,itemMenuClasses);
btn.setAttribute("filter",filter);
btn.tiddler = tid;
// in table, add the line_className classes based on the tiddler's tags
if(place.tagName.toLowerCase() == "td")
jQuery(place).parent().addClass(rowClasses);
}
}
// define the actions
// add tag
config.macros.itemMenu.actionStepsWithArguments["+tag"] = function(tiddler,tag)
{
if(!tiddler.isTagged(tag)) {
tiddler.tags.push(tag);
tiddler.modifier = config.options.txtUserName;
tiddler.modified = new Date();
}
};
// remove tag
config.macros.itemMenu.actionStepsWithArguments["-tag"] = function(tiddler,tag)
{
if(tiddler.isTagged(tag)) {
tiddler.tags.splice(tiddler.tags.indexOf(tag),1);
tiddler.modifier = config.options.txtUserName;
tiddler.modified = new Date();
}
};
// toggle tag
config.macros.itemMenu.actionStepsWithArguments["!tag"] = function(tiddler,tag)
{
if(tiddler.isTagged(tag))
tiddler.tags.splice(tiddler.tags.indexOf(tag),1);
else
tiddler.tags.push(tag);
tiddler.modifier = config.options.txtUserName;
tiddler.modified = new Date();
};
// set field
config.macros.itemMenu.actionStepsWithArguments["setField"] = function(tiddler,argument)
{
var argRE = /(\w+)\.\.(.*)/, argMatch = argRE.exec(argument);
if(!argMatch) return;
var field = argMatch[1], value = argMatch[2];
value = value || null; // to remove the field if empty
store.setValue(tiddler,field,value,true);
};
// delete field
config.macros.itemMenu.actionStepsWithArguments["deleteField"] = function(tiddler,argument)
{
store.setValue(tiddler,argument,null,true);
};
//config.macros.itemMenu.actionStepsWithArguments["<name>"] = function(tiddler,arg) {
//};
// save changes
config.macros.itemMenu.actionStepsWithoutArguments["save"] = function() {
saveChanges();
};
config.macros.itemMenu.actionStepsWithoutArguments["delete"] = function(tiddler) {
var confirmDeleteMsg = config.commands.deleteTiddler.warning;
if(confirm(confirmDeleteMsg.format([tiddler.name])))
{
store.removeTiddler(tiddler.title);
autoSaveChanges();
}
};
//config.macros.itemMenu.actionStepsWithoutArguments["<name>"] = function(tiddler) {
//};
// implement the styling
var iMenuClass = config.macros.itemMenu.itemMenuClass;
config.shadowTiddlers["StyleSheetManualSorter"] = "/*{{{*/\n"+
".editTTextItem { width: 100% }\n"+
".ttextInput { width: 99%; margin-right: 0.5%; margin-left: 0.5%; }\n\n"+
"."+iMenuClass+" { color: inherit; font-weight: bold; }\n"+
"."+iMenuClass+":hover { background-color: inherit; color: green; }\n"+ // use ColorPalette?
"."+iMenuClass+":before { content: \"⊙\"; }\n"+
".cancelSelectionButton:before { content: \"⊗\"; }\n"+
".doActionButton:before { content: \"D\"; }\n"+
".tiddlerInfoButton:before { content: \"I\"; }\n"+
".renameTiddlerButton:before { content: \"R\"; }\n"+
".editTiddlerTextButton:before { content: \"E\"; }\n"+
".openTiddlerButton:before { content: \"O\"; font-weight: normal; }\n"+
".addTiddlerButton:before { content: \"+\"; }\n"+
".deleteTiddlerButton:before { content: \"X\"; }\n"+
".itemMenu .tagTogglerButton:before { content: \"T\"; }\n"+
".itemMenu .button { padding-left: 0.25em; padding-right: 0.25em; }\n"+
".buttonSortState:hover,\n"+
".buttonSortState { background-color: inherit; color: #00B000; }\n"+
// for "lists" with buttons as "markers" (using tables)
".tableList,\n"+
".tableList > tbody,\n"+
".tableList > tbody > tr,\n"+
".tableList > tbody > tr > td,\n"+
".tableList .button { border: none !important; }\n"+
".tableList td { vertical-align: top; padding: 0px 3px; }\n"+
".tableList ul,\n"+
".tableList ol,\n"+
"li .tableList,\n"+
".tableList .tableList { margin: 0; }\n"+
".tableList > tbody > .selected { background-color: #ddddff; }\n\n"+
// full width of table with minimal width of the first column
".tableList { width: calc(100% - 2em); }\n"+ // 2em of margins on both sides
".tableList > tbody > tr > td:first-child { width: 1px; }\n"+
/* is some cases
* .tableList td { width: 1px; }
* .tableList td:last-child { width: 100%; }
* would be more suitable */
"/*}}}*/";
store.addNotification("StyleSheetManualSorter", refreshStyles);
//}}}
/***
!!!Tagging helpers and tagToggler macro
***/
//{{{
config.filters.existingTags = function(results,match)
{
var allTags = store.getTags();
for(var i = 0; i < allTags.length; i++)
allTags[i] = allTags[i][0];
if(match[3] == "-") {
for(i = 0; i < results.length; i++)
if(!allTags.contains(results[i].title))
results.splice(i--,1);
return results;
}
for(var i = 0; i < allTags.length; i++)
allTags[i] = store.fetchTiddler(allTags[i]) || new Tiddler(allTags[i]);
// default action: add all the tags
for(i = 0; i < allTags.length; i++)
results.pushUnique(allTags[i]);
return results;
};
config.filters.tagging = function(results,match)
{
var prefix = match[3].substr(0,1), title = match[3].substr(1), tid = store.fetchTiddler(title),
tagging = [], notTagging = [];
if(!tid)
return [];
//# this behaviour may be changed after some testing
for(var i = 0; i < results.length; i++)
if(tid.tags.contains(results[i].title))
tagging.push(results[i]);
else
notTagging.push(results[i]);
switch(prefix) {
case ">":
return tagging.concat(notTagging)
case "<":
return notTagging.concat(tagging)
case "+":
return tagging
case "-":
return notTagging
}
displayMessage("Warning: the \"tagging\" filter must be used with one of the prefixes +, -, > or <, which is not the case.");
// use cookie to decide whether to suppress the message?
return results;
};
config.macros.tagToggler = {};
config.macros.tagToggler.handler = function(place,macroName,params,wikifier,paramString,tiddler)
{
// parse params
var pParams = paramString.parseParams("pParams",null,true,false,true),
tid = store.fetchTiddler(pParams[0]["pParams"][0]) || tiddler; // tid. which tags will be toggled
if(!tid) return;
var label = pParams[0]["pParams"][1];
if(label == "." || label == undefined)
label = "toggle tags";
var tooltip = getParam(pParams,"tooltip","toggle tags of "+tid.title),
doAutoSave = params.contains('doAutoSave') || false,
tagsSet = getParam(pParams,"tags","[existingTags[+]] [tagging[>"+tid.title+"]]");
// for compability with SetManagerPlugin
var cmi = config.macros.itemMenu,
clearSelected = function()
{
if(cmi) cmi.clearCurrentlyDragged();
},
returnItemMenuSelection = function()
{
if(cmi) cmi.ensureFocusOnCurrentlyDragged();
};
var whereToScroll;
var toggleTag = function(tid,tag,refreshTagListIfNotClosing)
{
if(tid.isTagged(tag))
tid.tags.splice(tid.tags.indexOf(tag),1);
else
tid.tags.push(tag);
if(refreshTagListIfNotClosing) return refreshTagListIfNotClosing();
store.saveModifiedTiddler(tid);
story.refreshTiddler(tid.title,null,true);
if(doAutoSave)
autoSaveChanges();
if(whereToScroll)
window.scrollTo(0,ensureVisible(whereToScroll));
clearSelected();
};
// define the onclick handlers
var onTagClick = wrapNoClose(function(e)
{
var tag = this.getAttribute("tag"),
shiftWasHold = (e || window.event).shiftKey;
toggleTag(tid,tag,shiftWasHold ? this.refreshTagList : null);
return false;
});
var onClick = wrapNoClose(function()
{
// form the list of the tags to choose from, all tags to start somewhere
var availableTags = [],
allTags = store.getTags(),
noTagsMsg = "No tags found by the provided criterion";
for(var i = 0; i < allTags.length; i++)
availableTags.push(allTags[i][0]);
// build the list of tags and labels
var tagsToWorkWith = store.filterTiddlers(tagsSet);
for(i = 0; i < tagsToWorkWith.length; i++)
tagsToWorkWith[i] = tagsToWorkWith[i].title;
var menuTags = [], menuLabels = [], menuItems = [], t;
for(i = 0; i < tagsToWorkWith.length; i++) {
t = tagsToWorkWith[i];
menuItems.push({
tag: t,
label: t // '[x] ' or '[ ] ' addition is now defined via css
})
}
// create the popup menu
var popup = Popup.create(this), li, tagButton;
// arbitrary tag toggler
li = createTiddlyElement(popup,"li");
var newTagField = createTiddlyElement(li,"input",null,"newTagInput",{type:"text"});
newTagField.onclick = wrapNoClose(); // prevent the popup from closing on click here
var selectedTagIndex = 0, // 0 means "not selected"
selectNextTag = function()
{
var nextListItem = popup.childNodes[selectedTagIndex+1];
if(!nextListItem) return // out of boundaries, won't move
jQuery(popup).children().children().removeClass("selectedTag");
selectedTagIndex++;
nextListItem.childNodes[0].classList.add("selectedTag");
},
selectTag15ahead = function()
{
var numberOfItems = jQuery(popup).children().length; // tags+1
selectedTagIndex = Math.min(selectedTagIndex + 15,numberOfItems-1);
var newListItem = popup.childNodes[selectedTagIndex];
jQuery(popup).children().children().removeClass("selectedTag");
newListItem.childNodes[0].classList.add("selectedTag");
},
selectPrevTag = function()
{
var prevListItem = popup.childNodes[selectedTagIndex-1];
if(selectedTagIndex == 0) return;
jQuery(popup).children().children().removeClass("selectedTag");
selectedTagIndex--;
if(selectedTagIndex == 0) return; // don't color the main field
//# or do so but color it in the beginning as well
prevListItem.childNodes[0].classList.add("selectedTag");
},
selectTag15back = function()
{
var numberOfItems = jQuery(popup).children().length; // tags+1
selectedTagIndex = Math.max(selectedTagIndex - 15,0);
var newListItem = popup.childNodes[selectedTagIndex];
jQuery(popup).children().children().removeClass("selectedTag");
if(selectedTagIndex > 0)
newListItem.childNodes[0].classList.add("selectedTag");
},
selectTag = function(tag)
{
var button = jQuery(popup).children().children("*[tag='"+tag+"']");
if(!button.length) return;
button.addClass("selectedTag");
// get index, set selectedTagIndex
selectedTagIndex = jQuery(popup).children().children().index(button)
- 1;
},
getSelectedTagButton = function() {
if(selectedTagIndex == 0) // fosuced on new tag field
return null;
return popup.childNodes[selectedTagIndex].childNodes[0];
},
toggleSelected = function(goOnToggling)
{
var button = getSelectedTagButton();
if(!button) return;
tag = button.getAttribute("tag");
fieldValue = newTagField.value;
toggleTag(tid,tag,goOnToggling ? refreshTagList : null);
newTagField.value = fieldValue;
newTagField.select();
selectTag(tag);
return tag;
},
toggleNew = function(goOnToggling) {
var tag = jQuery.trim(newTagField.value), isNewTag = true, i;
// add the tag to the list if it's totally new:
for(i = 0; i < menuItems.length; i++)
if(menuItems[i].tag == tag)
isNewTag = false;
if(isNewTag)
menuItems.push({ tag:tag, label:tag });
toggleTag(tid,tag,goOnToggling ? refreshTagList : null);
};
// push the button to apply/click elsewhere to cancel..
createTiddlyButton(li,"toggle","toggle the entered tag in the tiddler",
toggleNew,"button tagAdderButton");
// ..or use keyboard (see below)
// tags from the set
var refreshTagList = function()
{
//console.log("caller is " + arguments.callee.caller.toString());
// clear the list (but don't remove the first item)
while(popup.childNodes[1])
popup.removeChild(popup.childNodes[1]);
newTagField.focus();
selectedTagIndex = 0;
// refill the list
if(menuItems.length == 0) {
createTiddlyText(createTiddlyElement(popup,"li"),noTagsMsg);
return;
}
var fieldValueLowered = newTagField.value.toLocaleLowerCase(),
sortedMenuItems = menuItems.concat([]).sort(function(a,b){
if(!fieldValueLowered) return 0;
// store where the value from the field starts in the tag
a.index= a.tag.toLocaleLowerCase().search(fieldValueLowered);
b.index= b.tag.toLocaleLowerCase().search(fieldValueLowered);
// if(tid.tags.contains(a.tag) && a.index != -1) a.index = -2;
// if(tid.tags.contains(b.tag) && b.index != -1) b.index = -2;
return a.index > b.index;
}),
item;
for(i = 0; i < sortedMenuItems.length; i++)
{
item = fieldValueLowered ? sortedMenuItems[i] : menuItems[i];
if(fieldValueLowered && item.index == -1) continue;
li = createTiddlyElement(popup,"li");
tagButton = createTiddlyButton(li,item.label,
"toggle '"+item.tag+"'",onTagClick,"button tag"+
(tid.tags.contains(item.tag)? "" : "Not")+"Present");
tagButton.setAttribute("tag",item.tag);
tagButton.refreshTagList = refreshTagList;
}
};
refreshTagList();
// show the popup menu
Popup.show("bottom","left");
// support keyboard navigation
jQuery(newTagField).bind('input',function(e)
{
refreshTagList();
});
jQuery(newTagField).bind('keyup',function(e)
{
goOnToggling = e.shiftKey;
if(e.which == $enter) {
toggleSelected(goOnToggling) || toggleNew(goOnToggling);
if(!goOnToggling) Popup.remove();
//document.getElementById("displayArea").focus()
return;
}
if(e.which == $esc) {
if(whereToScroll)
window.scrollTo(0,ensureVisible(whereToScroll));
if(e.shiftKey) {
returnItemMenuSelection();
Popup.remove(1);
//# make sure doesn't get propagated?
} else {
clearSelected();
Popup.remove();
}
//document.getElementById("displayArea").focus()
}
});
jQuery(newTagField).bind('keydown',function(e)
{
if(e.which == $down && !e.ctrlKey)
selectNextTag();
if(e.which == $up && !e.ctrlKey)
selectPrevTag();
if(e.which == $pgDn || (e.which == $down && e.ctrlKey))
selectTag15ahead();
if(e.which == $pgUp || (e.which == $up && e.ctrlKey))
selectTag15back();
if(selectedTagIndex)
window.scrollTo(0,ensureVisible(getSelectedTagButton()));
else
window.scrollTo(0,ensureVisible(newTagField));
});
});
// create the button
whereToScroll = createTiddlyButton(place,label,tooltip,onClick,"button tagTogglerButton");
}
// set styling
config.shadowTiddlers["TagAdderStyleSheet"] = "/*{{{*/\n"+
".tagPresent:before { content: \"[x] \"; }\n"+
".tagNotPresent:before { content: \"[ ] \"; }\n"+
".newTagInput { float: left; margin-right: 0.5em; }\n"+
".tagAdderButton { text-align: center; }\n"+
".selectedTag { color: blue !important; }\n"+
"/*}}}*/";
store.addNotification("TagAdderStyleSheet", refreshStyles);
//}}}
/***
!!!Hijack forEachTiddler macro to enable the new params
***/
//{{{
// helper filter for hiding hidden tiddlers
config.filters.hideFromFet = function(results,match)
{
var contextName = match[3], noContext = contextName == "-";
for(var i = 0; i < results.length; i++)
if(results[i].fields["hideInFet".toLowerCase()] &&
(results[i].fields["hideInFet".toLowerCase()] && noContext ||
results[i].fields["hideInFet".toLowerCase()]
.split(" ").contains(contextName)))
results.splice(i--,1);
return results;
};
// hijack config.macros.forEachTiddler.parseParams so that it handles
// "set", "sortable"/"sortableBy", "addAction", "dropAction", "switchAction" params
// the "params" array is not changed as its usages in parseParams don't need it,
// same story for preParsedParams[i] (i > 0)
if(config.macros.forEachTiddler && !config.macros.forEachTiddler.hijacked_sortable)
{
//# check if the proper version of FET (1.3.0 or above) is used
config.macros.forEachTiddler.hijacked_sortable = true;
config.macros.forEachTiddler.oldFashionParams =
config.macros.forEachTiddler.oldFashionParams.concat([
"sortableBy", "addAction", "dropAction", "switchActions", "writeToList"]);
config.extensions.ManualSortMacroPlugin = {
orig_fet_parseParams: config.macros.forEachTiddler.parseParams
};
var origParse = config.extensions.ManualSortMacroPlugin.orig_fet_parseParams;
config.macros.forEachTiddler.parseParams = function(preParsedParams,params)
{
// parse the "set" param
var setDescription = getParam(preParsedParams,"set",""), filter, sortField,
setAddAction, setDropAction, cmd = config.macros.defineSet;
if(setDescription) {
if(!setDescription.contains("[")) {
filter = "[set["+ setDescription +"]]"; // named set
sortField = cmd.getSortFieldForNamedSet(setDescription);
setAddAction = cmd.getAddToNamedSetAction(setDescription);
setDropAction= cmd.getDropFromNamedSetAction(setDescription);
} else {
filter = "set: "+setDescription; // inline set
var setDefinition = cmd.parseSetDefinition(setDescription);
// don't overwrite setDefinition as it is passed to adder
sortField = setDefinition.sortField;
setAddAction = cmd.getAddToSetAction(setDefinition);
setDropAction = cmd.getDropFromSetAction(setDefinition);
}
sortField = sortField || config.macros.itemMenu.defaultField;
}
// remember the filter (calc from both "set" and "filter" params)
var filterParam = getParam(preParsedParams,"filter","") +
(setDescription ? " [hideFromFet[-]]" : "");
if(filter && filterParam) {
if(filter.indexOf("set: ") == 0)
filter = filter + " modify: " + filterParam;
else
filter = filter + " " + filterParam;
} else if(filterParam)
filter = filterParam;
if(!filter)
return origParse.apply(this,arguments);
// the "in", "where" params stay untouched; change the filter param
preParsedParams[0]["filter"] = [filter];
// hijack the "script" param (define the "editable" and "adder" helpers)
// for now, deprecated "insert" helper is supported (same as "editable")
var usedScript = getParam(preParsedParams,"script",""),
insertDefinition = "var editable = "+
"function(container,params,defaultText,preprocessScript) {"+
"container = container || 't';"+
"params = params || '';"+
"if(defaultText)"+
" params = 'showIfNoValue:\\''+defaultText+'\\' '+params;"+
"if(preprocessScript)"+
" params = 'preprocess:\\''+preprocessScript+'\\''+params;"+
"return '<<insertEditable tiddler:['+'['+tiddler.title+']] container:\"'+container+'\" '+(params||'')+'>>';"+
"}, insert = editable;";
adderDefinitionBegin = 'var adder = '+
'function(args,label,orderMode,title) {'+
'return "<<addTiddler"'+
' +(" label:\'"+(label || "+")+"\'")'+
' '+(setDescription ? ('+" set:\''+setDescription+'\'"') : ''),
adderDefinitionEnd =
' +(" title:\'"+(title || "")+"\'")'+ // empty by default
' +" "+(args||"")'+
' +">>"'+
'};',
adderDefinition = adderDefinitionBegin + adderDefinitionEnd,
// unless sortableBy is defined, orderMode is ignored (see below)
fullScript = insertDefinition + adderDefinition + usedScript;
preParsedParams[0]["script"] = [fullScript];
// process and apply sortable/sortableBy params/sortField from set definition
var sortableParamIndex = params.indexOf("sortable"),
justSortable = sortableParamIndex != -1,
sortableBy = getParam(preParsedParams,"sortableBy");
if(params.contains("sortableBy") && !sortableBy // empty = default
|| justSortable)
sortableBy = config.macros.itemMenu.defaultField;
// support the deprecated {{{sortableBy '"orderCountName"'}}} syntax
var fieldWithQuotsMatch = /^"(.+)"$/.exec(sortableBy);
sortableBy = fieldWithQuotsMatch ? fieldWithQuotsMatch[1] : sortableBy;
// sortField can be defined directly or from the set (see above)
sortField = sortableBy || sortField;
//# rethink from here: either move this stuff below actions parsing etc (more meaninglful)
// or add "&& !setDescription" (this is to enable actions and other stuff for sets,
// even if sortField is not defined)
//+ from here
if(!justSortable && !sortField)
return origParse.apply(this,arguments);
// support the "extended scope for sorting"
//# is it extended or narrowed?
var fieldAndFilterMatch = /^(\w+) (\[.+)$/.exec(sortField),
sortFilter = fieldAndFilterMatch ? fieldAndFilterMatch[2] : filter;
sortField = fieldAndFilterMatch ? fieldAndFilterMatch[1] : sortField;
// set the "sortBy" param
var undefinedUp = true;
var sortScript = "(function(){ var c = tiddler.getSCounter(\"" + sortField +
"\"); return (c != 0 && !c)?" + (undefinedUp ? "-1" : "1000") + ": c; })()";
// lists of 999+ tiddlers long are not supposed to be used with manual sorting
preParsedParams[0]["sortBy"] = [sortScript];
// the sortable/sortableBy part is left in preParsedParams[0] as is
// extend the "adder" helper in the "script" param using specified sortField
adderDefinition = adderDefinitionBegin +
' +(orderMode ? (" order:\''+sortField+','
+filter.replace(/"/g,'\\"')
//# do smth about "'"s in filter (macro param parsing)
+',"+orderMode+"\'") : "")'+
adderDefinitionEnd;
fullScript = insertDefinition + adderDefinition + usedScript;
preParsedParams[0]["script"] = [fullScript];
//= up to here
// for actions other than "write" (and "writeToList" ~action), do no more
for(var knownActionName in config.macros.forEachTiddler.actions)
if(knownActionName != "write" && params.contains(knownActionName))
return origParse.apply(this,arguments);
// in original FETP, that's "addToList" action only
// parse the [SMP] actions-defining params
var addAction = getParam(preParsedParams,"addAction",setAddAction),
dropAction = getParam(preParsedParams,"dropAction",setDropAction),
switchActions = preParsedParams ? (
preParsedParams[0]["switchActions"] ?
preParsedParams[0]["switchActions"].join(";;")
: ""
) : "";
// allow multiple switchActions params (but each must have a name..)
var commonText = "description is expected behind";
if(!addAction && !(addAction == "") && params.contains("addAction"))
return { errorText: "An action "+commonText+" 'addAction'." };
if(!dropAction && !(dropAction == "") && params.contains("dropAction"))
return { errorText: "An action "+commonText+" 'dropAction'." };
if(!switchActions && !(switchActions=="")&& params.contains("switchActions"))
return { errorText: "An action(s) "+commonText+" 'switchActions'."};
// parse [FET] action
var action = "writeToList"; // default pseudo-action
// when action is not specified it is considered as writeToList with..
var defaultText = '"["+"["+tiddler.title+"]]"';
//# unknown actions are considered as the default one.. which is bad for other extensions
// when "writeToList" is used, in fact it preparses the argument for "write"
writeToListText = getParam(preParsedParams,"writeToList",defaultText);
var writeText = '"| "+itemMenu()+" |"+(' +writeToListText+ ')+"|\\n"';
// when "write" is used, its argument is used after only "minimal"preparsing
if(preParsedParams[0]["write"])
action = "write";
writeText = getParam(preParsedParams,"write",writeText);
// substitute all the "itemMenu()" expressions in the argument of "write"
// with their intended "meaning" (hence use non-greedy regexp)
var itemMenuRegExp = /(.*?)itemMenu\(\)/g;
var insertItemMenu = function($0,$1) {
var escapedFilter = sortFilter.contains('"') ?
('\\\''+sortFilter.replace(/"/g,'\\\"')+'\\\'') :
("\\\""+sortFilter.replace(/'/g,"\\\'")+"\\\"") ;
// this is a semi-fix: tags with both ' and " will cause troubles with manual sorting..
// escape the actions as well
return $1 + "\"<<itemMenu [[\"+tiddler.title+\"]] "+ escapedFilter +
(sortField ? (" field:\\\""+ sortField +"\\\"") : "")+
(addAction ? " addAction:\\\""+addAction+"\\\"" : "")+
(dropAction ? " dropAction:\\\""+dropAction+"\\\"" : "")+
(switchActions ? " switchActions:\\\""+switchActions+"\\\"" : "")+">>\"";
}
writeText = writeText.replace(itemMenuRegExp,insertItemMenu);
// change preParsedParams accordingly (use writeText, "write" action)
preParsedParams[0]["write"] = [writeText];
// change the begin argument (leave end, none, toFile parts unchanged)
if(action == "writeToList")
preParsedParams[0]["begin"] = [(preParsedParams[0]["begin"] ?
preParsedParams[0]["begin"][0]:'""') + '+"|tableList|k\\n"'];
// call the parser with the new arguments
return origParse.apply(this,arguments);
}
}
//}}}
/***
!!!addTiddler macro
***/
//{{{
config.macros.addTiddler = {
handler: function(place,macroName,params,wikifier,paramString) {
if(readOnly)
return;
// param parsing (partially taken from the newTiddler macro)
params = paramString.parseParams("title",null,true,false,false);
var title = getParam(params,"title", config.macros.newTiddler.title),
label = getParam(params,"label", config.macros.newTiddler.label),
prompt = getParam(params,"prompt",config.macros.newTiddler.prompt),
text = getParam(params,"text",""),
set = getParam(params,"set",""),
commonTags = [], t,
orderParts = getParam(params,"order",""),
orderPartsMatch = /^(\w*),(.+),([\w\d\-]+(?:,\w+)?)$/ .exec(orderParts),
orderCounter = orderPartsMatch ? orderPartsMatch[1] : undefined,
orderFilter = orderPartsMatch ? orderPartsMatch[2] : undefined,
orderMode = orderPartsMatch ? orderPartsMatch[3] : undefined,
orderParamDefault;
if(orderMode) {
orderPartsMatch = /^(\w+),(\w+)$/.exec(orderMode);
orderMode = orderPartsMatch ? orderPartsMatch[1] : orderMode;
orderParamDefault = orderPartsMatch ? orderPartsMatch[2] : undefined;
}
var cmd = config.macros.defineSet;
// get addAction for the set and orderCounter
if(set && cmd) {
// set may be either set name or set definition
if(!set.contains("[")) {
orderCounter = orderCounter ||
cmd.getSortFieldForNamedSet(set);
var action = cmd.getAddToNamedSetAction(set);
} else {
var setDefinition = cmd.parseSetDefinition(set);
orderCounter = orderCounter || setDefinition.sortField;
var action = cmd.getAddToSetAction(setDefinition)
}
}
for(t = 1; t < params.length; t++)
if((params[t].name == "anon" && t != 1) || (params[t].name == "tag"))
commonTags.push(params[t].value);
if((orderCounter =="default" || orderCounter =="") && config.macros.itemMenu)
orderCounter = config.macros.itemMenu.defaultField;
// create button, attach params to it
var btn = createTiddlyButton(place,label,prompt,this.onClick);
btn.params =
{
title: title,
commonTags: commonTags,
addAction: (set && cmd) ? action : "",
text: text,
orderCounter: orderCounter,
orderFilter: orderFilter,
orderMode: orderMode,
orderParamDefault: orderParamDefault
};
},
onClick: window.wrapNoClose(function()
{
// extract params
var title = this.params.title,
text = this.params.text,
tags = [].concat(this.params.commonTags), // should be a new array
//# do the same "copying" for fields, if are set here
addAction = this.params.addAction,
orderCounter = this.params.orderCounter,
orderFilter = this.params.orderFilter,
orderMode = this.params.orderMode,
orderParamDefault = this.params.orderParamDefault,
// create DOM
popup = Popup.create(this),
wrapper = createTiddlyElement(popup,"li"),
nameField = createTiddlyElement(wrapper,"input",null,"newTitleInput",{type:"text"});
nameField.onclick = window.wrapNoClose();
nameField.value = title;
var cmi = config.macros.itemMenu,
addTidToSet = function(tiddler)
{
if(!addAction || !cmi) return;
cmi.parseAndApplyAction(tiddler, addAction, null, true);
};
var createTheTiddler = function(goOnSelected)
{
var theTiddler = new Tiddler(jQuery.trim(nameField.value)),
modifier = config.options.txtUserName;
theTiddler.assign(null,text,modifier,null,tags);
if(store.fetchTiddler(theTiddler.title) && !confirm("A tiddler named \""+theTiddler.title+"\" already exists. Do you want to overwrite it?"))
return;
addTidToSet(theTiddler);
store.saveTiddler(theTiddler);
if(orderCounter && Tiddler.prototype.setSCounter && cmi)
{
if(orderMode == "top")
cmi.moveToTop(orderFilter, theTiddler, orderCounter);
if(orderMode == "bottom")
cmi.moveToBottom(orderFilter,theTiddler,orderCounter);
var orderModeIndex = parseInt(orderMode);
if(!isNaN(orderModeIndex))
cmi.moveToArbitraryPlace(orderFilter,theTiddler, orderCounter,orderModeIndex,true);
// use: orderParamDefault
}
// for compability with SetManagerPlugin (usage in itemMenus)
if(cmi)
{
if(goOnSelected)
cmi.ensureFocusOnCurrentlyDragged();
else
cmi.clearCurrentlyDragged();
}
// bad fix for SMP: if autoSaveChanges(); is called directly,
// reselection doesn't work; but it's enough to set timeout
// of 1 ms and the bug disappears
setTimeout(autoSaveChanges,1);
};
// process enter/esc key presses
// compatible with SetManagerPlugin (for usage in itemMenus)
nameField.onkeydown = function(ev)
{
var e = ev || window.event;
if(e.which == $enter)
{
createTheTiddler(e.shiftKey);
if(e.shiftKey)
Popup.remove(1);
else
Popup.remove();
window.preventOtherHandling(e);
}
if(e.which == $esc) {
if(e.shiftKey) {
if(cmi) cmi.ensureFocusOnCurrentlyDragged();
Popup.remove(1);
} else {
if(cmi) cmi.clearCurrentlyDragged();
Popup.remove();
}
}
};
if(orderMode == "checkboxes") {
// add possibilities to put the tiddler on top/bottom of a certain list (certain orderCounter):
// create 2 checkboxes (t: [] b: []), add .. behaviour
createTiddlyText(popup,"t:");
var checkBoxTop = createTiddlyElement(popup,"input","test"/*null*/,null,null,{
type:'checkbox',
value:false
// calc the value the way it should be calced (chkAddToTop, ..)
});
checkBoxTop.onclick = window.wrapNoClose(function(){
checkBoxTop.setAttribute(!checkBoxTop.value);
// checkboxes should deactivate each other, ..
});
// add the onclick handler (change .., no close)
createTiddlyText(popup,"b:");
config.macros.option.handler(popup,"option",null,wikifier,"chkAddToBottom");
checkBox = popup.lastChild;
checkBox.onclick = window.wrapNoClose(checkBox.onclick);
// this works, but the checkbox being checked/unchecked is not displayed unless the popup is reopened
// - try config.macros.option.genericCreate(place,type,opt,className,desc)
// process the orderCounter taken from the check box
}
// "add" button
createTiddlyButton(popup,"add","add the tiddler",createTheTiddler);
// cancel - on click elsewhere
// show the popup menu, focus inside the text field
Popup.show();
nameField.focus();
nameField.select()
})
}
//}}}
/***
!!!insertEditable macro
***/
//{{{
// Sets the section value if it is present, appends otherwise
// tip: if sectionName is "!!smth", then "!!!smth" is appended
//
Tiddler.prototype.setSection = function(sectionName,value)
{
var beginSectionRegExp = new RegExp("(^!{1,6}[ \t]*" + sectionName.escapeRegExp() + "[ \t]*(\n|$))","mg"),
sectionTerminatorRegExp = /^!/mg,
match = beginSectionRegExp.exec(this.text);
if(match) // edit existing section
{
var sectionTitle = match[1],
emptyAtEnd = match[2] != "\n",
beforeSection = this.text.substr(0,match.index),
sectionAndAfter = this.text.substr(match.index + match[1].length);
match = sectionTerminatorRegExp.exec(sectionAndAfter);
var afterSection = match ? sectionAndAfter.substr(match.index) : "";
this.text = beforeSection + sectionTitle + (emptyAtEnd ? "\n" : "") + value
+ (afterSection ? ("\n" + afterSection) : "");
} else // add anew
this.text = this.text + "\n!"+sectionName + "\n"+value;
// setting dirty, notifying is not done here
};
// Sets the slice value if it is present, otherwise appends it as |name|value|
// either after the last slice or to the beginning of the text (if no slices are present)
//
Tiddler.prototype.setSlice = function(sliceName,value)
{
var replaceSliceSubPart = function(text,part,oldValue)
{
if(oldValue == value)
return text;
var eOldValue = oldValue.escapeRegExp(),
eSliceName = sliceName.escapeRegExp();
// "table" notation
var simplifiedPattern = "^(.*"+eSliceName+".*\\|.*)"+eOldValue+"(.*\\|)$",
simplifiedRegExp = new RegExp(simplifiedPattern),
newPart = part.replace(simplifiedRegExp,function($0,$1,$2){
return $1 + value + $2;
});
if(newPart != part)
return text.replace(part, newPart);
// "sliceName: sliceValue" notation
simplifiedPattern = "^(.*"+eSliceName+"\\:[\\s\\t])"+eOldValue+"(.*)$";
simplifiedRegExp = new RegExp(simplifiedPattern),
newPart = part.replace(simplifiedRegExp,function($0,$1,$2){
return $1 + value + $2;
});
if(newPart != part)
return text.replace(part, newPart);
};
// modification of TiddlyWiki.prototype.slicesRE to process "|..sliceName..||" syntax
// empty slices in the "sliceName:" notation are not supported
var re = /(?:^([\'\/]{0,2})~?([\.\w]+)\:\1[\t\x20]*([^\n]+)[\t\x20]*$)|(?:^\|\x20?([\'\/]{0,2})~?([^\|\s\:\~\'\/]|(?:[^\|\s~\'\/][^\|\n\f\r]*[^\|\s\:\'\/]))\:?\4[\x20\t]*\|[\t\x20]*([^\n\t\x20]?(?:[^\n]*[^\n\t\x20])?)[\t\x20]*\|$)/gm;
re.lastIndex = 0;
var m = re.exec(this.text);
while(m) {
if(m[2]) {
if(m[2] == sliceName) {
this.text = replaceSliceSubPart(this.text,m[0],m[3]);
break;
}
} else {
if(m[5] == sliceName) {
this.text = replaceSliceSubPart(this.text,m[0],m[6]);
break;
}
}
m = re.exec(this.text);
}
if(!m || !m[2] && !m[5]) // if the slice is not present
{
// append after the last slice/to the start of text (adapted from GridPlugin)
var matches = this.text.match(re),
lastSlice = matches ? matches[matches.length-1] : null,
where = lastSlice ? this.text.indexOf(lastSlice)+lastSlice.length : 0;
this.text = this.text.substr(0,where)+
(lastSlice ? '\n|%0|%1|' : '|%0|%1|\n').format(sliceName,value)+
this.text.substr(where);
}
// recalc "stored" slices for this tiddler:
delete store.slices[this.title];
// setting dirty, notifying is not done here
};
config.macros.insertEditable = {
handler: function(place,macroName,params,wikifier,paramString,tiddler)
{
// parse and attach params to DOM
var pParams = paramString.parseParams("tiddler",null,true,false,true),
cell = params.contains("cell"),
fill = cell || params.contains("fillElement"),
wrapper = fill ? place : createTiddlyElement(place,"span"),
tidName = getParam(pParams,"tiddler",""),
partName = getParam(pParams,"container","t"),
applyOnEnter = getParam(pParams,"applyOnEnter"),
selectOptions = getParam(pParams,"options","[]");
eval('selectOptions = '+selectOptions);
wrapper.options = {
tiddler: tidName ? store.fetchTiddler(tidName) : tiddler,
//# store tiddler name so that we can create it if it doesn't exist
part: partName,
viewType: getParam(pParams,"viewType","wikified"),
selectOptions: selectOptions,
withButton: params.contains("button") || window.isOpenedOnTouchScreen(), // default for touch screens
defaultShowText: getParam(pParams,"showIfNoValue"),
preprocess: getParam(pParams,"preprocess",""),
size: getParam(pParams,"size",""),
fill: fill,
transparentEmpty: cell || params.contains("transparentEmpty"),
saveOnApply: params.contains("saveOnApply"),
applyOnEnter: (partName[0] == ":") || (partName[0] == "!") ||
(applyOnEnter === undefined ?
params.contains("applyOnEnter") : applyOnEnter),
keepOnBlur: params.contains("keepOnBlur"),
noNotify_partial: cell || params.contains("noNotify"),
noedit: params.contains("noedit")
};
this.turnViewMode(wrapper);
},
getData: function(tiddler, part)
{
var partName = part.substr(1);
switch(part[0]) {
case "t":
return tiddler.text || "";
case "!":
return tiddler.title;
case "#":
return (tiddler.getSection ? tiddler.getSection(partName)
: store.getTiddlerText(tiddler.title+"##"+partName))
|| "";
case ":":
return (tiddler.getSlice ? tiddler.getSlice(partName)
: store.getTiddlerText(tiddler.title+"::"+partName))
|| "";
case "@":
return store.getValue(tiddler,partName) || "";
}
},
setData: function(tiddler, part, value, noNotify_partial)
{
var partName = part.substr(1);
//if(!tiddler)
//# deal with the case when tiddler doesn't exist yet
switch(part[0]) {
case "t":
store.saveTiddler(tiddler,null,value);
break;
case "!":
store.saveTiddler(tiddler,value); // requires my fix to .sT
break;
case "#":
tiddler.setSection(partName,value);
store.setDirty(true);
// refresh display of the corresponding tiddler:
if(!noNotify_partial) store.notify(tiddler.title,true);
break;
case ":":
tiddler.setSlice(partName,value);
store.setDirty(true);
if(!noNotify_partial) store.notify(tiddler.title,true);
break;
case "@":
store.setValue(tiddler,partName,value);
break;
}
//# change the "modifier/d" fields?
},
turnViewMode: function(place)
{
if(!place.options.tiddler && place.options.part[0] != "c")
return;
//# wtf is this "c" as first character?
//# may be add warning; also, do the same for unsupported container types
var value = this.getData(place.options.tiddler, place.options.part) ||
place.options.defaultShowText || "",
fill = place.options.fill,
noedit = place.options.noedit,
classEmpty = place.options.transparentEmpty ? "transparentEmptyViewer"
: (place.options.viewType == "select"? "":"emptyViewer");
var preprocessScript = place.options.preprocess;
if(preprocessScript) {
var fullScript =
"place.options.preprocessFunc = function(text){"+
"var q = \"'\"\n"+
preprocessScript+
"\nreturn text;};";
eval(fullScript);
value = place.options.preprocessFunc(value);
}
if(fill)
place.style.padding = (place.options.initialPadding !== undefined)
? place.options.initialPadding
: place.style.padding;
if(fill && !noedit && !value)
place.classList.add(classEmpty);
var html = '<span'+
(!fill && !value ? ' class="'+classEmpty+'"' : '')+
'></span>';
place.innerHTML = html;
place.onclick = function(e)
{
// prevent editor-containing popup closing etc:
if(e.stopPropagation) e.stopPropagation();
e.cancelBubble = true;
// prevent editing when clicking links, buttons, etc; if noedit:
if(noedit || e.target.tagName.
match(/^(a|img|input|textarea|select|option)$/i))
return true;
place.classList.remove(classEmpty);
config.macros.insertEditable.turnEditMode(this);
return false;
}
var container = fill ? place : place.firstChild;
switch(place.options.viewType) {
case "plain":
createTiddlyText(container,value);
break;
case "html":
container.innerHTML = value;
break;
case "select":
var select = createTiddlyElement(container, 'select'),
options = place.options.selectOptions, i,
selectedIndex = -1;
// populate with options
for(i = 0; i < options.length; i++) {
createTiddlyElement(select,'option',null,null,
options[i].label, {value:options[i].option});
if(options[i].option == value)
selectedIndex = i;
}
if(selectedIndex != -1)
select.selectedIndex = selectedIndex;
else {
// indicate that value is not a suggested option
jQuery(select).addClass('unsuggested');
jQuery(select).find('option').addClass('normal');
// but show it as a selected "option"
var currentOption = jQuery('<option>'+ value +'</option>')
.prependTo(select);
select.selectedIndex = 0;
}
select.onchange = function(e) {
// once wrong option is changed to an expected one
if(jQuery(select).hasClass('unsuggested')
&& select.selectedIndex != 0)
jQuery(select).removeClass('unsuggested')
.find(':first-child').remove();
var newValue = e.target.value;
config.macros.insertEditable.setData( place.options.tiddler, place.options.part, newValue, place.options.noNotify_partial);
if(place.options.saveOnApply)
autoSaveChanges();
};
break;
case "wikified":
default:
wikify(value,container,null,place.options.tiddler);
}
},
turnEditMode: function(place)
{
// add the edit area
var value = this.getData(place.options.tiddler, place.options.part),
rowslimit = 1,
size = place.options.size;
place.innerHTML = (size == "minimal" || size == "min") ?
'<input type="text" class="mini-inline-editor"></input>'
:('<textarea class="inline-editor"' +
' style="height: '+rowslimit+'.1em;'+
(size == "max" ? 'width:100%;' :
(place.options.fill ? 'width:98%;' : ''))+'"' +
'></textarea>');
if(place.options.fill) {
place.options.initialPadding = place.style.padding;
place.style.padding = "0";
}
var editarea = place.firstChild, button;
editarea.value = value;
// define apply/cancel helpers
var turnOffEditing = function()
{
config.macros.insertEditable.turnViewMode(place);
jQuery('html').off("click",onClick);
},
applyChanges = function()
{
config.macros.insertEditable.setData(place.options.tiddler, place.options.part, editarea.value, place.options.noNotify_partial);
turnOffEditing();
if(place.options.saveOnApply)
autoSaveChanges();
};
if(place.options.withButton)
button = createTiddlyButton(place,"save",null,applyChanges);
// on click outside the edit area, switch to the view mode
var onClick = function(e) {
if(place.options.keepOnBlur || jQuery(e.target).parents()/*and self*/.addBack().is(place))
return;
turnOffEditing();
};
place.onclick = null;
jQuery('html').click(onClick);
//# avoid creating of a "global" handler? (to remove extra code from .onkeydown handler)
editarea.onkeydown = function(ev)
{
var e = ev || window.event;
if(e.which == $esc)
// for now, don't check if was changed
turnOffEditing()
if((e.which == $enter) && (e.ctrlKey || place.options.applyOnEnter))
{
applyChanges();
e.cancelBubble = true;
if(e.stopPropagation) e.stopPropagation();
return false;
}
};
editarea.onkeypress = function(){
adjustHeightToContent.apply(this);
//# check here for changes to visualize (bgcolor/..)
}
// set initial "state"
editarea.focus();
if(!window.isOpenedOnTouchScreen()) // with FF for Android, better not to
editarea.select();
adjustHeightToContent.apply(editarea);
}
};
// define styles
var bgColor = store.getTiddlerText("ColorPalette::Background");
setStylesheet(
'.emptyViewer { color: #dddddd; background-color: #dddddd; }\n'+
'.emptyViewer:before, .transparentEmptyViewer:before { content: "__" }\n'+
'.mini-inline-editor { width: 1.5em; }\n'+
'@-moz-document url-prefix() {.inline-editor { font-family: Consolas !important; font-size: 100% !important; }}\n'+
'.transparentEmptyViewer { color: '+bgColor+'; background-color: '+bgColor+'; }\n' +
'.unsuggested { background-color: #ffdddd; }\n'+
'option.normal { background-color: white; }',
"StyleSheetInsertEditable");
//# think about better styling (no "__" when copying)
// =========== Extras ===========
// hijack edit macro to make tiddler titles editable inline
(function(){
/* config.macros.chkEditableTitles = (config.macros.chkEditableTitles === undefined) ?
!('ontouchstart' in window) : config.macros.chkEditableTitles;
// default for non-touch screens for now
if(!config.macros.chkEditableTitles)
return;
config.macros.view.iep_orig_handler = config.macros.view.handler;
config.macros.view.handler = function(place,macroName,params,wikifier,paramString,tiddler) {
if(readOnly || !(tiddler instanceof Tiddler) || tiddler.isReadOnly() ||
params[0] != "title" || !place.classList.contains("title"))
// the last is a hack for avoiding insertEditable in the <<list>> macro
return this.iep_orig_handler.apply(this,arguments);
wikify('<<insertEditable container:"!" size:max viewType:plain>>',place,null,tiddler);
//story.setDirty(tiddler.title,true); ?
};
*/
})()
//}}}
/***
!!!Sets API and macros
***/
//{{{
// overwrite filterTiddlers to enable different kinds of hijacking
//# to be incorporated into the core
TiddlyWiki.prototype.filterTiddlers = function(filter,results)
{
var re = /([^\s\[\]]+)|(?:\[([ \w\.\-]+)\[([^\]]+)\]\])|(?:\[\[([^\]]+)\]\])/mg;
results = results || [];
var match, handler;
if(filter)
while(match = re.exec(filter)) {
handler = ( match[1] || match[4] ) ? 'tiddler' :
config.filters[match[2]] ? match[2] : 'field';
results = config.filters[handler].call(this,results,match);
}
return results;
};
// extendable set of elementary sets definitions
// "?" is for the belongCheck, "+" - for addAction getter, "-" - for dropAction getter
config.elementarySets =
{
tiddler: {
"?": function(title,tiddler) {
return tiddler.title == title;
},
"+": function(title) {
return ""; // no action for now
},
"-": function(title) {
return ""; // no action for now
}
},
tag: {
"?": function(tagName,tiddler) {
return tiddler.tags.contains(tagName);
},
"+": function(tagName) {
//# check the absence of ",,","::",";;"
return "+tag.."+tagName;
},
"-": function(tagName) {
//# check the absence of ",,","::",";;"
return "-tag.."+tagName;
}
}
}
config.macros.defineSet =
{
sets: {},
add: function (setName, setDefinition, setTags)
{
if(this.sets[setName])
displayMessage("the set \""+setName+"\" will be redifined");
//# this behaviour may be changed if necessary
this.sets[setName] = { definition: setDefinition, tags: setTags };
},
// this returns a function(tiddler) which checks if the tiddler is in the set;
// if there's some "do" parts, it ignores them if forceFunc and
// returns an array of tiddlers instead of a function otherwise
//
getIsInSet: function (setDefinition,forceFunc)
{
var returnFunc = true, definedPart, resultRecursive,
parts = setDefinition.parts, type, i,
singleTokenRE = /(?:(\w*)\[((?:[^\]]|(?:\]\]))*)\])/,
tokenMatch, tokenType, tokenValue;
//# precalc setDefinition.parts[i].definedPart in .parseSetDefinition? (although func/not func stuff ..)
// for each part..
for(i = 0; i < parts.length; i++)
{
definedPart = null;
// process tokens first
if(parts[i].token)
{
tokenMatch = singleTokenRE.exec(parts[i].token);
//# single tokens first; .oO when multiple are needed, implement parsing
if(!tokenMatch) continue;
tokenType = tokenMatch[1];
tokenValue = tokenMatch[2];
definedPart = {
type: tokenType,
value: tokenValue
};
// process elementaries with corresponding handlers
if(config.elementarySets[tokenType]) {
definedPart.checkTiddler = function(tiddler) {
return config.elementarySets[this.type]["?"]
(this.value, tiddler);
};
parts[i].definedPart = definedPart;
continue;
}
//# process non-elementary tokens,
// for "set" and "setsTagged", launch recursively,
// if returns an array of tids instead of a function
// and !forceFunc, set returnFunc = false
// in contrast to inline sets, named sets can cause infinite loops..
}
// next, process "sets" (defined for brackets)
if(parts[i].set)
{
resultRecursive = this.getIsInSet(parts[i].set,forceFunc);
parts[i].definedPart = resultRecursive instanceof Function ?
{ checkTiddler: resultRecursive } : resultRecursive;
// in the latter case resultRecursive is an array with tids
continue;
}
//# for each "do" if !forceFunc, /skip/ it;
// set returnFunc = false otherwise
}
if(returnFunc) {
// combine checks from parts via setDefinition.combine (example: "+4*1-3+5")
return function(tiddler) {
var re = /([\+\-\*])(\d+)/g, m, isGood = false, val;
//console.log(".combine: "+setDefinition.combine+", parts:");console.log(parts);
//console.log("find definedParts in parts[i].definedPart");
while(m = re.exec(setDefinition.combine)) {
i = parseInt(m[2]);
val = parts[i].definedPart.checkTiddler(tiddler);
//console.log(i+": val is "+val+", isGood is "+isGood);
switch(m[1])
{
case "+": isGood = isGood || val; break;
case "*": isGood = isGood && val; break;
case "-": isGood = isGood && !val; break;
}
}
return isGood;
};
} //else
//# build and return an array of tiddlers
},
getIsInNamedSet: function (setName,forceFunc)
{
var set = this.sets[setName];
if(!set) return null;
return this.getIsInSet(set.definition,forceFunc);
},
getSetTiddlers: function (setDefinition,results)
{
results = results || [];
var check = this.getIsInSet(setDefinition);
if(!check)
return results;
var newTids = [];
if(check instanceof Function)
store.forEachTiddler(function(tName,tiddler) {
if(check(tiddler)) newTids.push(tiddler);
});
else
// check is not a function, but an array of tiddlers
newTids = check;
if(setDefinition.sortField) {
var getComparableCounter = function(tiddler)
{
var c = tiddler.getSCounter(setDefinition.sortField);
return (c != 0 && !c)? -1 : c; // undefined up
};
newTids.sort(function(tiddlerA, tiddlerB)
{
return getComparableCounter(tiddlerA)
- getComparableCounter(tiddlerB);
});
}
for(var i = 0; i < newTids.length; i++)
results.pushUnique(newTids[i]);
return results;
},
getNamedSetTiddlers: function (setName,results)
{
var set = this.sets[setName];
if(!set) return results;
return this.getSetTiddlers(set.definition,results);
},
calcActionStepsInDefinition: function (setDefinition)
{
var parts = setDefinition.parts, i,
singleTokenRE = /(?:(\w*)\[((?:[^\]]|(?:\]\]))*)\])/,
tokenMatch, tokenType, tokenValue;
// for each part
for(i = 0; i < parts.length; i++)
{
// create descriptions of 2 actions sequences:
// one adds a tiddler to the set, another removes the tiddler from it
// process tokens first
if(parts[i].token)
{
tokenMatch = singleTokenRE.exec(parts[i].token);
//# single tokens first; .oO when multiple are needed, implement parsing
if(!tokenMatch) continue;
tokenType = tokenMatch[1];
tokenValue = tokenMatch[2];
// process elementaries with corresponding handlers
if(config.elementarySets[tokenType]) {
//# add "don't recalc if already calced"
parts[i].addAction = config.elementarySets[tokenType]
["+"](tokenValue);
parts[i].dropAction= config.elementarySets[tokenType]
["-"](tokenValue);
continue;
}
//# process non-elementary tokens,
//# ...
}
// next, process "sets" (defined for brackets)
if(parts[i].set)
{
//# add "don't recalc if already calced"
parts[i].addAction = this.getAddToSetAction(parts[i].set);
parts[i].dropAction= this.getDropFromSetAction(parts[i].set);
continue;
}
//# do anything about "do"s?
}
return;
},
getAddToSetAction: function (setDefinition)
{
// combine the already calced actions into one
var re = /([\+\-\*])(\d+)/g, m, i, partActions, actions = "";
while(m = re.exec(setDefinition.combine))
{
i = parseInt(m[2]);
partActions = setDefinition.parts[i];
switch(m[1])
{
case "+":
if(actions || !partActions.addAction) continue;
// unless that's the ~first action~, do nothing
// (we suppose that if one describes a set like
// "this OR that", than add action adds to "this"
actions = partActions.addAction;
break;
case "*":
if(!partActions.addAction) continue;
if(actions) actions += ",,";
actions += partActions.addAction;
break;
case "-":
if(!partActions.dropAction) continue;
if(actions) actions += ",,";
actions += partActions.dropAction;
break;
}
}
return actions;
},
getAddToNamedSetAction: function (setName)
{
var set = this.sets[setName];
if(!set) return null;
return this.getAddToSetAction(set.definition);
},
getDropFromSetAction: function (setDefinition)
{
// combine the already calced actions into one
var re = /([\+\-\*])(\d+)/g, m, i, partActions, actions = "";
while(m = re.exec(setDefinition.combine))
{
i = parseInt(m[2]);
partActions = setDefinition.parts[i];
switch(m[1])
{
// case "*": do nothing (if a tiddler is droped from "a",
// it is dropped from "a OR b"
// case "-": same (consider "a" and "a AND NOT b")
case "+":
if(!partActions.dropAction) continue;
if(actions) actions += ",,";
actions += partActions.dropAction;
break;
}
}
return actions;
},
getDropFromNamedSetAction: function (setName)
{
var set = this.sets[setName];
if(!set) return null;
return this.getDropFromSetAction(set.definition);
},
getSortFieldForNamedSet: function (setName)
{
return this.sets[setName] ? this.sets[setName].definition.sortField : null;
},
parseSetDefinition: function (text)
{
var set = { parts: [], combine: null, sortField: null };
// remember tokens (..[..]..[..]...), substitute them with their numbers
var tokenRegExp = /(?:\w*\[(?:[^\]]|(?:\]\]))*\])+/, // "]]" = escaped "]"
tokenMatch, origTokenText, tokenText,
sortFieldRegExp = /sortField\[(.*)\]/, sortFieldMatch;
while(tokenMatch = tokenRegExp.exec(text))
{
origTokenText = tokenMatch[0];
tokenText = origTokenText[0]=="[" ?
("tiddler"+origTokenText) : origTokenText;
sortFieldMatch = sortFieldRegExp.exec(tokenText);
if(sortFieldMatch) {
text = text.replace(origTokenText,"");
set.sortField = sortFieldMatch[1];
} else {
text = text.replace(origTokenText,set.parts.length);
set.parts.push({ token: tokenText });
}
}
// find first-level brackets, add definitions, substitute in text
var openPosition = text.indexOf("("), i, level = 0, closePosition, setText;
while(openPosition > -1)
{
// find closing bracket position
level = 1; i = openPosition+1;
while(level > 0) {
if(text[i] == "(")
level++;
if(text[i] == ")")
level--;
i++;
}
closePosition = i;
// add definition, parse it recursively, subsititute
setText = text.substring(openPosition+1, closePosition-1)
// substitute numbers in setText back with tokens:
.replace(/\d+/g,function(match){
return set.parts[parseInt(match)].token
});
set.parts.push({ set: this.parseSetDefinition(setText) });
text = text.substring(0,openPosition) + (set.parts.length-1)
+ text.substring(closePosition);
// find next open
openPosition = text.indexOf("(");
}
// find <num> DO <num>, add them to parts, substitute
var doRegExp = /(\d+)\s+DO\s+(\d+)/m, doMatch, target, action;
while(doMatch = doRegExp.exec(text))
{
action = parseInt(doMatch[2]); target = parseInt(doMatch[1]);
action = set.parts[action].token;
target = set.parts[target].token || target;
// add the definition part, substitute the DO expression in the text
set.parts.push({ do: action , to: target });
text = text.replace(doMatch[0],set.parts.length-1);
}
set.combine = "+"+text.replace(/\s+AND\s+/g,"*")
.replace(/\s+NOT\s+/g,"-")
.replace(/\s+OR\s+/g,"+")
.replace(/^ +/,"").replace(/ +$/,"").replace(/ +/g,"+");
this.calcActionStepsInDefinition(set);
return set;
},
handler: function(place,macroName,params,wikifier,paramString,tiddler)
{
// parse params
var parsedParams = paramString.parseParams("name",null,true,false,true),
setName = getParam(parsedParams,"name"),
setText = getParam(parsedParams,"tids"),
setSortField = getParam(parsedParams,"sortField",""),
setTagsLine = getParam(parsedParams,"tags",""),
setTags = setTagsLine.readBracketedList();
if(!setName || !setText)
return;
if(setSortField) setText += " sortField["+ setSortField +"]";
var setDefinition = this.parseSetDefinition(setText);
// show macro text
var w = wikifier, macroTWcode = w.source.substring(w.matchStart,w.nextMatch),
hide = getFlag(parsedParams, "hide", false) || params.contains('hide');
if (!hide)
createTiddlyText(createTiddlyElement(place,"code"),macroTWcode);
// define the set
this.add(setName, setDefinition, setTags);
}
};
// if SharedTiddlersPlugin is installed, make sets "include-aware"
var stp = config.extensions.SharedTiddlersPlugin;
if(stp)
stp.useForReallyEachTiddler(config.macros.defineSet,"getSetTiddlers");
// hijack filterTiddlers so that if there's "set:..." part with an optional terminator
// ":set", then that part is parsed as a definition of a set
TiddlyWiki.prototype.ds_orig_filterTiddlers = TiddlyWiki.prototype.filterTiddlers;
TiddlyWiki.prototype.filterTiddlers = function(filter,results)
{
var beginSetMark = "set:", endSetMark = " modify:";
// set definition starts with "set:", if no such thing, use ordinary filtering
if(filter.indexOf(beginSetMark) != 0)
return this.ds_orig_filterTiddlers(filter,results);
// add tiddlers from the set
results = results || [];
var modifyPos = filter.indexOf(endSetMark), filterAsWell = (modifyPos != "-1"),
setDef = filterAsWell ? filter.substring(4,modifyPos) : filter.substr(4),
tids = config.macros.defineSet.getSetTiddlers(
config.macros.defineSet.parseSetDefinition(setDef),results);
// if necessary, apply the additional filters, return
if(!filterAsWell)
return results;
filter = filter.substr(modifyPos + endSetMark.length);
return this.ds_orig_filterTiddlers(filter,results);
};
config.filters.set = function(results,match)
{
var setName = match[3];
return config.macros.defineSet.getNamedSetTiddlers(setName,results);
};
//-------------------------------------------------------------------------------
// wikify SetsList on startup
//
var readSetsList = function()
{
if(!window.store)
return setTimeout(readSetsList,100);
var setsList = store.fetchTiddler("SetsList"),
setsListText = setsList ? setsList.text : "";
if(setsListText)
wikify(setsListText,document.createElement("div"),null,setsList);
};
setTimeout(readSetsList,100);
//# test why this first timeout is needed (copied from CTP, STP)
//}}}
/***
|Requires|ForEachTiddlerPlugin SetManagerPlugin|
|Version|0.4|
этот плагин предназначен для дополнительных elementary sets, switch actions и др. необязательных расширений SetManagerPlugin
* ForEachTiddlerPlugin нужен, пока {{{.getSlice}}} и {{{.getSection}}} не определены в ядре
to do<<tiddler [[to do list template##main]] with:"set extras todo" with:orderSEtodo noedit>>
***/
//{{{
(function(){
if(!config.macros.itemMenu)
return;
config.macros.itemMenu.actionStepsWithoutArguments["markChanged"] = function(tiddler)
{ // for coordinator
tiddler.modifier = config.options.txtUserName;
tiddler.modified = new Date();
};
config.elementarySets.hasPart =
{
"?": function(param,tiddler)
{
var regExpText, re, type;
switch(param.substr(0,2)) {
case config.textPrimitives.sectionSeparator: // ##
return !!(tiddler.getSection(param.substr(2)));
case config.textPrimitives.sliceSeparator: // ::
return !!(tiddler.getSlice(param.substr(2)));
case "@@":
return !!(tiddler.fields[param.substr(2).toLowerCase()]);
case "r@": // regExp (for tiddler.text) mode
case "R@":
case "t@": // title mode
case "T@":
regExpText = store.getTiddlerText(param.substr(2));
type = param.substr(0,1);
if(!regExpText) {
if(type == "r" || type == "t")
return true; // "forgiving mode", nothing is filtered out in this case
else
throw("RegExp for checkTiddler is not found in " + param.substr(2));
//# test this case out
}
// no break here
case "r[":
case "R[":
case "t[":
case "T[":
if(!regExpText) {
regExpText = param.substr(2);
type = param.substr(0,1);
}
if(type == "r" || type == "t") {
try {
re = new RegExp(regExpText);
} catch(e) {
return false; // "forgiving mode"
}
} else
re = new RegExp(regExpText);
if(type == "r" || type == "R")
return !!(tiddler.text.match(re));
else
return !!(tiddler.title.match(re));
}
return false;
},
"+": function(param) {
return ""; // for now, no idea what to do here; this won't matter frequently
},
"-": function(param) {
return ""; // for now, no idea what to do here; this won't matter frequently
}
};
config.macros.itemMenu.actionStepsWithoutArguments["-tags"] = function(tiddler) {
tiddler.tags = [];
};
config.elementarySets.taggedOnly =
config.elementarySets.oTag = {
"?": function(tag,tiddler) {
return (tiddler.tags.length == 1) && (!tag || tag == tiddler.tags[0]);
},
"+": function(tag) {
return "-tags,,+tag.."+tag;
},
"-": function(tag) { return "-tag.."+tag; }
};
config.elementarySets.unclassified = {
//# implemented "as was"; may be scanning the whole tree instead
"?": function(metaTag,tiddler) {
var tags = [], tag, i;
for(i = 0; i < tiddler.tags.length; i++) {
tag = store.fetchTiddler(tiddler.tags[i]);
if(tag && tag.tags.contains(metaTag))
return false;
}
return true;
},
//# implement
"+": function(metaTag) {
return ""; /*<addToSetAction> - show "available" tags, ask for a tag to add
(may be new; in that case create a tag-tid with metaTag) */
},
"-": function(metaTag) {
return "" /*<dropFromSetAction> - remove tags tagged with metaTag*/;
}
};
//config.macros.itemMenu.actionStepsWithArguments["<name>"] = function(tiddler,arg) {
//};
//config.macros.itemMenu.actionStepsWithoutArguments["<name>"] = function(tiddler) {
//};
//config.elementarySets["<name>"] = {
// "?": function(param,tiddler) { return <isInSet> },
// "+": function(param) { return <addToSetAction> },
// "-": function(param) { return <dropFromSetAction> }
//}
})()
//}}}
/***
|''Name''|SharedTiddlersPlugin|
|''Description''|Introduces a possibility to use tiddlers from other ~TiddlyWikis (with or without importing them)|
|''Documentation''|http://yakovl.bplaced.net/TW/STP/STP.html#SharedTiddlersPluginInfo|
|''Type''|plugin|
|''Version''|2.4.0"'|
|''~CoreVersion''|2.2.6|
|''Requires''|UpToDateFiltersPlugin|
|''Requirements note''|[[UpToDateFiltersPlugin|http://yakovl.bplaced.net/TW/ExtraFilters.html#UpToDateFiltersPlugin]] is necessary only for TW below v2.6.2|
|''Source''|http://yakovl.bplaced.net/TW/STP/STP.html#SharedTiddlersPlugin|
|''Author''|Yakov Litvin|
|''Forked from''|[[IncludePlugin|http://tiddlywiki.abego-software.de/#IncludePlugin]], by Udo Borkowski|
|''Contact''|see [[docs|SharedTiddlersPluginInfo]]|
|''Copyright''|Yakov Litvin, 2013|
|''Licence''|[[BSD-like open source license|http://yakovl.bplaced.net/TW/STP/STP.html#%5B%5BYakov%20Litvin%20Public%20Licence%5D%5D]] |
|>| In this tiddler, the code is minified and hidden; the full code can be found [[here|http://yakovl.bplaced.net/TW/STP/STP.html#SharedTiddlersPluginCode]]. |
''Config:''
***/
//{{{
config.options.STP_hijackPrettyLink = true;
config.options.STP_hijackImageFormatter = true;
//}}}
// /%
config.filters.all = function(results,match) {
if(match[3] == "with included") { // brings included tiddlers as well
var m,matched = this.reverseLookup();
for(m = 0; m < matched.length; m++)
results.pushUnique(matched[m]);
} else
this.forEachTiddler(function(tName,tiddler){
results.pushUnique(tiddler);
});
return results;
};
config.filters.includedFrom = function(results,match) {
var url = twWeb.getStoreUrlById(match[3]);
if(!url)
return [];
for(var i = 0; i < results.length; i++)
if(results[i].getIncludeURL() != url)
results.splice(i--,1);
return results;
};
config.filters.external = function(results,match) {
for(var i = 0; i < results.length; i++)
if(!results[i].getIncludeURL())
results.splice(i--,1);
return results;
};
config.filters.internal = function(results,match) {
for(var i = 0; i < results.length; i++)
if(results[i].getIncludeURL())
results.splice(i--,1);
return results;
};
(function(){
//==============================================================================
// install only once stuff
// Ensure the global abego namespace is set up.
if (!window.abego) window.abego = {};
// Install only once (don't install if abego.IncludePlugin is installed as well)
if (abego.TiddlyWikiIncluder)
return alert("Warning: abego.TiddlyWikiIncluder already exists, so probably two copies of SharedTiddlersPlugin and/or IncludePlugin are installed and activated. It is highly recommended to deactivate all but one copy. You can find those by searching 'abego.TiddlyWikiIncluder'.");
// abego.TiddlyWikiIncluder is defined near the end of the code
// Define the API namespace:
window.sharedTiddlersAPI = {};
//==============================================================================
// Helpers
// This is used instead of displayMessage, because the latter sometimes doesn't show the messages
var displayAndLogMessage = function(text,linkText) {
displayMessage(text,linkText);
console.log(text);
};
var invokeLater = function(func, delay, priority) {
return setTimeout(func,delay);
};
//------------------------------------------------------------------------------
// url helpers
var isRelativeURL = function(url) {
// as Unix filesystem root is "/", urls starting with it are not considered as relative
return (url.search(/^(?:((http(s)?)|(file)):)|(.\:\\)|(\\\\)|(\/)/) != 0);
};
var getPathFromURL = function(url) {
return (url.lastIndexOf("/") > -1) ?
url.substr(0, url.lastIndexOf("/") + 1) : "";
};
var resolveUrlFrom = function(urlToResolve, sourceUrl) {
return (isRelativeURL(urlToResolve) && sourceUrl) ?
getPathFromURL(sourceUrl) + urlToResolve : urlToResolve;
};
// limitedly turns URI (URL) reference into an absolute URI (URL) and windows paths into URL
var stp_resolveURL = function(url) {
if (url.search(/^((http(s)?)|(file)):/) != 0) {
// no protocol prefix..
if (isRelativeURL(url))
url = resolveUrlFrom(url, document.location.toString());
else
// "url" is an "absolute" path to a local file. Prefix it with file://
url = "file://" + url;
// replace every \ by a /, to cover Windows style pathes
url = url.replace(/\\/mg,"/");
}
return url;
};
//------------------------------------------------------------------------------
// file/tw loading functions
// an evolution of the deprecated loadRemoteFile function with TW 2.7.0 codes
var stp_loadRemoteFile = function(url,callback,params) {
if(version.major < 2 || version.major == 2 && version.minor < 7) {
var httpSuccess = function(xhr) {
try {
return (!xhr.status && location.protocol === "file:") ||
(xhr.status >= 200 && xhr.status < 300) ||
xhr.status === 304 || xhr.status === 1223;
} catch(e) {}
return false;
};
var options = {
type:"GET",
url:url,
processData:false,
data:undefined, // cut off?
cache:false,
beforeSend: function(xhr) {;},
complete: function(xhr,textStatus) {
if(httpSuccess(xhr))
callback(true,params,xhr.responseText,url,xhr);
else
callback(false,params,null,url,xhr);
}
};
try {
if(window.Components && window.netscape && window.netscape.security && document.location.protocol.indexOf("http") == -1)
window.netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
} catch (ex) {}
return jQuery.ajax(options);
} else
return httpReq("GET",url,callback,params);
};
// Asynchronously load the given (local or remote) file.
//
// @param url
// value: either an URL or a local file path to a file
//
// Examples:
// * http://www.abego-software.de/index.html
// * file:///C:/abegoWebSite-Copy/index.html
// * C:\abegoWebSite-Copy\index.html (for Windows machines)
//
// Notice: backslashes in JavaScript string constants must be escaped,
// i.e. the last example must be written as: "C:\\abegoWebSite-Copy\\index.html"
// when "hardcoded" in JavaScript source code.
//
// @param callback
// value: function(content,url,params,errorMessage)
// called at the end of the operation.
// On success content holds the content of the loaded file.
// On error content is undefined and errorMessage holds an error message.
// params is the params passed into stp_LoadFile.
//
// @param params
// passed through to the callback function
//
var stp_LoadFile = function(url,callback,params) {
var onLoad = function(status,params,responseText,url,xhr) {
return status
? callback(responseText, url, params)
: callback(undefined, url, params, "Error loading %0".format([url]));
};
// Make sure the URL is a real URL, with protocol prefix etc.
url = stp_resolveURL(url);
stp_loadRemoteFile(url,onLoad,params);
};
// Asynchronously load the given (local or remote) TiddlyWiki store.
//
// @param url
// value: either an URL or a local file path to a TiddlyWiki file (absolute or relative)
//
// Examples:
// * http://www.abego-software.de/index.html
// * file:///C:/abegoWebSite-Copy/index.html
// * include/beta.html
// * C:\abegoWebSite-Copy\index.html (for Windows machines)
//
// Notice: backslashes in JavaScript string constants must be escaped,
// i.e. the last example must be written as: "C:\\abegoWebSite-Copy\\index.html"
// when "hardcoded" in JavaScript source code.
//
// @param callbackWithStore
// value: function(theStore,url,params,errorMessage)
// called at the end of the operation.
// On success theStore holds the loaded store (a TiddlyWiki object).
// On error theStore is undefined and errorMessage holds an error message.
// params is the params passed into stp_loadTiddlyWikiStore
//
// @param params
// passed through to the callbackWithStore
//
// @param progress [optional]
// value: function(message, sender, state, url, params)
// called in various situations during the operation,
// typically used to show "the progress" of the operation.
// sender: the constant "stp_loadTiddlyWikiStore"
// state: one of these: "Started", "Processing", "Done", "Failed"
// "Processing" means the data has been received and in now processed.
//
var stp_loadTiddlyWikiStore = function(url,callbackWithStore,params,progress) {
var sendProgress = function(message, state) {
if (progress)
progress(message,"stp_loadTiddlyWikiStore",state,url,params);
};
var sendError = function(message) {
sendProgress("Error when loading %0".format([url]),"Failed");
callbackWithStore(undefined, url, params, message);
return message;
};
var sendStore = function(store) {
sendProgress("Loaded %0".format([url]),"Done");
callbackWithStore(store, url, params);
return null;
};
var callback = function(content,theURL,params,errorMessage) {
if (content === undefined) {
sendError(errorMessage);
return;
};
sendProgress("Processing %0".format([url]),"Processing");
var invalidFileErrorMsg = "The file '%0' does not appear to be a valid TiddlyWiki file";
try {
// Load the content from the "content" string into a TiddlyWiki() object
var importStore = new TiddlyWiki();
var errorText = importStore.importTiddlyWiki(content)? null :
"Problem with importing TiddlyWiki, probable reason is: "+
invalidFileErrorMsg.format([url]);
if(errorText)
sendError(errorText);
else
sendStore(importStore);
} catch (ex) {
sendError(exceptionText(ex));
};
};
sendProgress("Start loading %0".format([url]),"Started");
stp_LoadFile(url,callback,params);
};
//------------------------------------------------------------------------------
// plugin installation helpers
var getArbitraryPluginInfo = function(tiddler) {
// getPluginInfo can't be used (for included tiddlers) because of the ugly slice handling of the core
// (it uses {store} where it could handle the tiddler directly)
var pInfo = {};
var slices = {};
var requiredInfo = ["Name","Description","Version","Requires","CoreVersion","Date","Source", "Author","License","Browsers"];
store.slicesRE.lastIndex = 0;
var match = store.slicesRE.exec(tiddler.text);
while(match) {
if(match[2])
slices[match[2]] = match[3];
else
slices[match[5]] = match[6];
match = store.slicesRE.exec(tiddler.text);
}
for(var i = 0; i < requiredInfo.length; i++)
if(slices[requiredInfo[i]])
pInfo[requiredInfo[i]] = slices[requiredInfo[i]];
pInfo.tiddler = tiddler;
pInfo.title = tiddler.title;
pInfo.log = [];
return pInfo;
}
var checkPluginInstalled = function(pluginName) {
for(var i = 0; i < installedPlugins.length; i++)
if(installedPlugins[i].title == pluginName || installedPlugins[i].Name == pluginName)
return true;
return false;
}
var installPlugin = function(tiddler,force) {
var pluginName = getArbitraryPluginInfo(tiddler).Name || tiddler.title;
// check if such a plugin was installed previously, return if so
if(!force) // two layers to improve the speed in the "force == true" case
if(checkPluginInstalled(pluginName))
return;
// get the plugin info
var pluginInfo = getArbitraryPluginInfo(tiddler);
if(tiddler.getIncludeURL())
pluginInfo.log.push("included from "+tiddler.getIncludeURL());
// install the plugin
pluginInfo.executed = true;
var startTime = new Date();
try {
window.eval(tiddler.text);
} catch(ex) {
pluginInfo.log.push(config.messages.pluginError.format([exceptionText(ex)]));
pluginInfo.error = true;
console.log("error evaluating " + tiddler.title, ex);
story.displayTiddler(null,"PluginManager");
displayMessage(config.messages.customConfigError);
}
pluginInfo.startupTime = String((new Date()) - startTime) + "ms";
// register the plugin
installedPlugins.push(pluginInfo);
}
//==============================================================================
// Shared Tiddlers Plugin
// Constants
var WAITING = "waiting";
var LOADING = "loading";
var ANI_DURATION_HIDE_STATE = 1000;
var REFRESH_PRIORITY = -200;
var ANIMATION_PRIORITY = -100;
var UPDATE_STATE_PRIORITY = -300;
// --------------------------------------------------
// Variables
var useInclude; // this variable can be used to control include enabling by other things than cookies
var includedStores = {}; // url(String) -> TiddlyWiki or String; if not (yet) loaded a status or an error string
var pendingOnLoadURLs = []; // [] of String: a list of urls that should be passed with the next "notifyListeners"
var refreshTiddlyWikiTimerID; // for delayed refresh
var listeners = [];
var progress;
// rules pointing which stores tiddlers with conflicting names should be fetched from
function FetchPreferences() {
var prefs = {};
this.add = function(tiddlerName,sourceUrl,substitute,substituteShadow) {
if(!substitute && !substituteShadow)
return;
if(prefs[tiddlerName] == undefined)
prefs[tiddlerName] = {urlsSubs: [], urlsSubsSh: []};
if(substitute)
prefs[tiddlerName].urlsSubs.pushUnique(sourceUrl);
if(substituteShadow)
prefs[tiddlerName].urlsSubsSh.pushUnique(sourceUrl);
};
/* this.getPrefs = function(tiddlerName) {
return jQuery.extend(true, {}, prefs[tiddlerName]);
};
*/ this.getSubsUrl = function(tiddlerName) {
var pref = prefs[tiddlerName];
if(pref == null)
return null;
if(pref.urlsSubs.length == 0)
return null;
return pref.urlsSubs[0];
};
this.getSubsShUrl = function(tiddlerName) {
var pref = prefs[tiddlerName];
if(pref == null)
return null;
if(pref.urlsSubsSh.length == 0)
return null;
// check if there's a tiddler with both preferences
var i, j;
for(i = 0; i < pref.urlsSubs.length; i++)
for(j = 0; i < pref.urlsSubsSh.length; j++)
if(pref.urlsSubs[i] == pref.urlsSubsSh[j])
return pref.urlsSubs[i];
return pref.urlsSubsSh[0];
};
this.containSubsUrl = function(tName,url) {
var pref = prefs[tName];
if(pref == null)
return false;
return pref.urlsSubs.contains(url);
};
this.containSubsShUrl = function(tName,url) {
var pref = prefs[tName];
if(pref == null)
return false;
return pref.urlsSubsSh.contains(url);
};
this.removeByUrl = function(url) { // removes all priorities of tiddlers, included from the url
var tName, pref, i;
for(tName in prefs) {
pref = prefs[tName]
for(i = 0; i < pref.urlsSubs.length; i++)
if(pref.urlsSubs[i] == url)
pref.urlsSubs.splice(i--,1);
for(i = 0; i < pref.urlsSubsSh.length; i++)
if(pref.urlsSubsSh[i] == url)
pref.urlsSubsSh.splice(i--,1);
// if (pref.urlsSubs.length == 0 && pref.urlsSubsSh.length == 0), not nec. to delete pref
}
};
};
var fetchPreferences = new FetchPreferences();
function Conflicts() {
// hashmaps by tiddler name of potentially conflicting tiddlers with that name;
// each element is a hashmap by url of tiddlers with such names
var pConfs = {}, // doesn't contain info about tiddlers in the main store
pSConfs = {}; // for tiddlers that may conflict when substituting a shadow
this.init = function() {
// notify of name conflicts in the whole set of initial and included tiddlers?
if(config.options.chkWarnOnSharedTiddlersConflicts == undefined) config.options.chkWarnOnSharedTiddlersConflicts = true;
// use alert() for notifications?
if(config.options.chkAlertOnSharedTiddlersConflicts == undefined) config.options.chkAlertOnSharedTiddlersConflicts = false;
};
// check whether a new tiddler (not included yet) may cause a conflict (now or in the future)
this.checkNew = function(tName, url, subs, subsSh) {
// use to add when a tiddler with such name is already present
var addData = function(confsMap, tidParams) {
var includeData = function(tidParams) { // better to create a separate class
return { subs: tidParams.substitute, warned: false };
};
var getSubsPriority = function(data) {
return data.subs;
}
var conf = confsMap[tidParams.title];
if(!conf) {
conf = confsMap[tidParams.title] = {};
conf[tidParams.url] = includeData(tidParams);
} else {
var confPart = conf[tidParams.url];
if(!confPart)
conf[tidParams.url] = includeData(tidParams);
else {
if(!getSubsPriority(confPart) && tidParams.substitute)
conf[tidParams.url] = includeData(tidParams);
// better to set subs to true and warned to false
}
}
}
// check if there's a tiddler with such a name
var existingTid = forEachLoadedStore(function(theStore, storeUrl) { // in included stores
if(storeUrl != url)
return theStore.fetchTiddler(tName);
}) || window.sharedTiddlersAPI.orig_fetchTiddler(tName); // or in the main one
// if the tiddler is added to the main store after exactly one tiddler is included, no conflict is
// detected by this algorithm; also, it doesn't account deleting the tiddler from the main store
if(!existingTid)
return;
var mainStoreId = "main store",
existingTidUrl = existingTid.getIncludeURL();
// check conflicts among all included tiddlers (important when no shadow with such name exists)
if(!pConfs[tName])
addData(pConfs, {
title: tName,
url: existingTidUrl || mainStoreId,
substitute: existingTidUrl ? fetchPreferences.containSubsUrl(tName,existingTidUrl) : undefined
});
addData(pConfs, { title: tName, url: url, substitute: subs });
// check conflicts among tiddlers that substitute a shadow
if(subsSh) {
var existingTidSubsSh = forEachLoadedStore(function(theStore, storeUrl) {
if(storeUrl != url && fetchPreferences.containSubsShUrl(tName,storeUrl))
return theStore.fetchTiddler(tName);
}) || window.sharedTiddlersAPI.orig_fetchTiddler(tName);
// same problems
if(!existingTidSubsSh)
return;
var existingTidSubsShUrl = existingTidSubsSh.getIncludeURL();
// conflicts among substituting tiddlers are important when a shadow with such name exists
if(!pSConfs[tName])
addData(pSConfs, {
title: tName,
url: existingTidSubsShUrl || mainStoreId,
substitute: existingTidSubsShUrl ? fetchPreferences.containSubsShUrl(tName,existingTidSubsShUrl) : undefined
});
addData(pSConfs, { title: tName, url: url, substitute: subs });
}
};
this.markNodeUnloaded = function(url) {
var t;
for(t in pConfs)
if(pConfs[t][url])
delete pConfs[t][url];
for(t in pSConfs)
if(pSConfs[t][url])
delete pSConfs[t][url];
};
this.notify = function() {
var msgAndLog = config.options.chkWarnOnSharedTiddlersConflicts;
var doAlert = config.options.chkAlertOnSharedTiddlersConflicts;
if(!doAlert && !msgAndLog)
return; // no conflict is marked as "warned" - this is by intent
var tName, tUrl;
var checkOrDisplayConflicts = function(map,msgAndLog,markWarned) {
var msg = ""; // message to return (for alerting etc)
var addM = function(m) { // pushes all notification messages
msg += ("\n"+m);
if(msgAndLog)
displayAndLogMessage(m);
};
var tName, tSources, tUrl, subs, nOfConflicting, newPresent,
subsMsg = " (with the subsitute priority)";
// mark conflicts among tiddlers with the substitute priority
// find out where necessary, notify
for(tName in map) {
tSources = map[tName];
// find out which priority is of interest
subs = false;
for(tUrl in tSources)
if(tSources[tUrl].subs)
subs = true;
// if there's only one tiddler with "substitute", there's no conflict
nOfConflicting = 0;
for(tUrl in tSources)
if(tSources[tUrl].subs == subs)
nOfConflicting++;
if(nOfConflicting < 2)
break;
// find out if new conflicting tiddlers are present
newPresent = false;
for(tUrl in tSources)
if(tSources[tUrl].subs == subs && !tSources[tUrl].warned)
newPresent = true;
// start notification
if(newPresent) {
addM("* "+tName+" in:");
for(tUrl in tSources)
if(tSources[tUrl].subs == subs && !tSources[tUrl].warned) {
addM("** "+tUrl);
if(markWarned)
tSources[tUrl].warned = true;
}
if(subs)
addM(subsMsg);
}
}
return msg;
};
var msg = "";
if(checkOrDisplayConflicts(pConfs,false,false)) { // new conflicts present
msg += "New conflicts:";
if(msgAndLog) displayAndLogMessage(msg);
msg += checkOrDisplayConflicts(pConfs,msgAndLog,true);
};
if(checkOrDisplayConflicts(pSConfs,false,false)) { // new conflicts among tiddlers substituting shadows present
if(msg) msg += "\n";
var m = "New conflicts among tiddlers competing for substituting shadows:";
msg += m;
if(msgAndLog) displayAndLogMessage(m);
msg += checkOrDisplayConflicts(pSConfs,msgAndLog,true);
};
if(doAlert && msg)
alert(msg);
};
// this.state = // return current state as a string (for includeState)
};
conflicts = new Conflicts();
conflicts.init();
// --------------------------------------------------
// Helper functions
var isIncludeEnabled = function() {
if (useInclude === undefined)
useInclude = config.options.chkUseInclude === undefined || config.options.chkUseInclude;
return useInclude;
};
var getMissingIncludeMsg = function(url) {
return "No include specified for %0".format([url])
};
// Called after one or more included TiddlyWikis are loaded
//
var notifyListeners = function() {
var urls = pendingOnLoadURLs;
pendingOnLoadURLs = [];
if (urls.length)
for (var i = 0; i < listeners.length; i++)
listeners[i](urls);
};
var idleCount; // Reset to 0 when the system is "not idle", incremented inside refreshTiddlyWiki
var refreshTiddlyWiki = function() {
// To avoid to much refreshing/flickering don't refresh immediately
// but wait until the system was idle for a certain time.
if (refreshTiddlyWikiTimerID !== undefined) clearInterval(refreshTiddlyWikiTimerID);
idleCount = 0;
var sendDone = function() {
twWeb.sendProgress("","","Done");
};
refreshTiddlyWikiTimerID = setInterval(function() {
idleCount++;
if (idleCount <= 10)
return;
clearInterval(refreshTiddlyWikiTimerID);
refreshTiddlyWikiTimerID = undefined;
twWeb.sendProgress("Refreshing...","","");
refreshDisplay();
invokeLater(sendDone,0,REFRESH_PRIORITY);
},1);
};
// Calls callback for every loaded store and returns the first non-false/null.. value returned by callback.
//
// @param callback
// value: function(store, url)
//
var forEachLoadedStore = function(callback) {
var result;
for(var url in includedStores) {
var theStore = twWeb.getStore(url);
if (theStore && (result = callback(theStore, url)))
return result;
}
};
// hijack fetchTiddler so that it works with tiddlers from included stores as well
var attachToStore = function() {
if (!window.store)
return invokeLater(attachToStore,100);
var orig_fetchTiddler = store.fetchTiddler;
window.sharedTiddlersAPI.orig_fetchTiddler = orig_fetchTiddler;
// reserve access to the original method to be able to fetch tiddlers from main store,
// including substituted ones
store.fetchTiddler = function(title) {
var t, subsUrl = fetchPreferences.getSubsUrl(title), subsShUrl;
// first, look for the tiddler in the main store, unless there's nothing to substitute with
if(!subsUrl) {
t = orig_fetchTiddler.apply(this,arguments);
if(t) return t;
} else
return includedStores[subsUrl].fetchTiddler(title);
// then, look for shadowed tiddlers in main store and external ones to substitute those
if(config.shadowTiddlers[title] !== undefined) {
if(subsShUrl = fetchPreferences.getSubsShUrl(title))
return includedStores[subsShUrl].fetchTiddler(title);
else
return undefined;
};
// Don't look for the "New Tiddler" tiddler in the included TiddlyWikis,
// since returning such a tiddler (that is readonly) will make it impossible
// in the Main TiddlyWiki to create new tiddlers via standart "new tiddler" button.
if (title == config.macros.newTiddler.title) return undefined;
// finally, look for an external one without "substitute" preference
return forEachLoadedStore(function(theStore, url) {
return theStore.fetchTiddler(title);
});
};
// refresh TiddlyWiki to reflect the new included Tiddlers (if we have any).
if(twWeb.getIncludedStoresUrls().length)
refreshTiddlyWiki();
};
var includeFromIncludeList = function() {
if (!window.store)
return invokeLater(includeFromIncludeList,100);
var includeListText = store.getTiddlerText("IncludeList");
if (includeListText)
wikify(includeListText,document.createElement("div"),undefined,store.fetchTiddler("IncludeList"));
};
var getFunctionUsingForReallyEachTiddler = function(func) {
var wrapper = function() {
var orig_forEachTiddler = store.forEachTiddler;
var forEachTiddlerWithIncludes = function(callback) {
var done = {};
var callbackWrapper = function(title, tiddler) {
// ensure every title is only processed once
if(done[title])
return;
// do and set done for appropriate tiddlers
if(!fetchPreferences.getSubsUrl(title)||
(fetchPreferences.getSubsUrl(title) == tiddler.getIncludeURL())) {
done[title] = 1;
callback.apply(this,arguments);
};
};
// first, forEachTiddler over the original tiddlers
orig_forEachTiddler.call(store, callbackWrapper);
// add nonsubstituted shadowTiddler titles to done
// (to avoid an included store hide a shadow tiddler)
for (var n in config.shadowTiddlers)
if(!fetchPreferences.getSubsShUrl(n))
done[n] = 1;
// add the "New Tiddler" tiddler to done
// to avoid an included store (with such tiddler) prevent creating new tiddlers
done[config.macros.newTiddler.title] = 1;
// forEachTiddler over every included store
forEachLoadedStore(function(theStore, url) {
theStore.forEachTiddler(callbackWrapper);
});
};
store.forEachTiddler = forEachTiddlerWithIncludes;
try {
return func.apply(this,arguments);
} finally {
store.forEachTiddler = orig_forEachTiddler;
};
};
return wrapper;
};
var useForReallyEachTiddler = function(object,property) {
return object[property] = getFunctionUsingForReallyEachTiddler(object[property]);
};
//================================================================================
// config.extensions.SharedTiddlersPlugin (the "includer" engine)
config.extensions.SharedTiddlersPlugin = {
// function config.extensions.SharedTiddlersPlugin.getFunctionUsingForReallyEachTiddler(func)
//
// Returns a function that behaves as func, but every call to store.forEachTiddler will actually
// be a call to forReallyEachTiddler (see below), i.e. iterate over the tiddlers of the main store
// and of the included TiddlyWikis
//
// @return the patched function
//
getFunctionUsingForReallyEachTiddler: getFunctionUsingForReallyEachTiddler,
// function config.extensions.SharedTiddlersPlugin.useForReallyEachTiddler(object,property)
//
// Patches the function hold in the given property of the object in such a way that every call
// to store.forEachTiddler will actually be a call to forReallyEachTiddler (see below), i.e.
// iterate over the tiddlers of the main store and of the included TiddlyWikis
//
// @param object
// @param property the name of the property of the object containing the function to be patched.
// @return the patched function
//
useForReallyEachTiddler: useForReallyEachTiddler,
// Add a listener function to the TiddlyWikiIncluder.
//
// @param listener function(urls)
// urls: [] of Strings, containing the urls of the TiddlyWiki just included
// (see url@config.extensions.SharedTiddlersPlugin.include)
// called whenever one or more TiddlyWiki store are successfully included.
//
addListener: function(listener) {
listeners.push(listener);
}
};
// -------------------------------------------------------------------------------
// TiddlyWikiIncluder initialization code
config.extensions.SharedTiddlersPlugin.addListener(refreshTiddlyWiki);
config.shadowTiddlers.AdvancedOptions +=
("\n~IncludePlugin settings:"+
"\n<<option chkUseInclude>> Include ~TiddlyWikis"+
"\n<<option chkAlertOnSharedTiddlersConflicts>> Alert on tiddler name conflicts"+
"\n<<option chkWarnOnSharedTiddlersConflicts>> Display messages and write log in the browser console on conflicts"+
"\nIncludeList | IncludeState | ImportIncluded | [[help|http://yakovl.bplaced.net/TW/SharedTiddlersPlugin.html/#SharedTiddlersPluginInfo]]"+
"\n^^(Reload this ~TiddlyWiki to make changes become effective)^^");
config.shadowTiddlers.IncludeState = "<<includeState>>";
// add the "importer" engine
config.shadowTiddlers.ImportIncluded =
"| the url of the document to import from | <<option txtStoreUrl>> |\n"+
"| the filter of tiddlers to import | <<option txtFilterTiddlersToImport>> |\n"+
"| the importing mode | <<option txtImportMode>> |\n"+
"<html><a href='javascript:;' onclick='\n"+
" var storeUrl = config.options.txtStoreUrl,\n"+
" params = {\n"+
" filterLine: config.options.txtFilterTiddlersToImport,\n"+
" importMode: config.options.txtImportMode,\n"+
" noRefresh: true,\n"+
" };\n"+
" if(!storeUrl)\n"+
" return displayMessage(\"please specify the url to import from\");\n"+
" if(!params.filterLine)\n"+
" return displayMessage(\"please specify the filter of tiddlers to import\");\n"+
" if(!sharedTiddlersAPI.getStore(storeUrl))\n"+
" displayMessage(\"warning: no store was loaded from \"+storeUrl+\" previously, trying now\");\n"+
" twWeb.include(storeUrl,params);\n"+
"'>import (without saving)<a/></html>";
//================================================================================
// Tiddler extension/modification
Tiddler.prototype.isIncluded = function() {
return this.includeURL != undefined;
};
Tiddler.prototype.getIncludeURL = function() {
return this.includeURL;
};
Tiddler.prototype.setIncludeURL = function(url) {
this.includeURL = url;
};
Tiddler.prototype.deleteIncludeURL = function() {
delete this.includeURL;
};
// make included tiddlers readonly
config.extensions.SharedTiddlersPlugin.orig_Tiddler_isReadOnly = Tiddler.prototype.isReadOnly;
Tiddler.prototype.isReadOnly = function() {
return config.extensions.SharedTiddlersPlugin.orig_Tiddler_isReadOnly.apply(this,arguments) || this.isIncluded();
}
//================================================================================
// TiddlyWiki modifications
// In some TiddlyWiki functions the "forEachTiddler" should work on all tiddlers, also those from
// included store. (E.g. TiddlyWiki.prototype.getTags)
//
// But not for all (e.g. TiddlyWiki.prototype.getTiddlers is used for saving, but only the "own" tiddlers should be saved)
//
// Therefore explicitly list the functions that should be "wrapped" to use the "forReallyEachTiddler".
//
var tiddlyWikiFunctionsUsingForReallyEachTiddler = {
getMissingLinks: 1, getOrphans: 1,
getTags: 1, reverseLookup: 1, updateTiddlers: 1};
for (var n in tiddlyWikiFunctionsUsingForReallyEachTiddler)
useForReallyEachTiddler(TiddlyWiki.prototype,n);
//================================================================================
// Web of TiddlyWikis
function IncludingMemorizer() { // the structure to store info about already handled include macros
var used = {};
this.isUsed = function(line) { return used[line]? true : false; };
this.setUsed = function(line) { used[line] = 1; };
this.getUsed = function() { return jQuery.extend(true, {}, used) };
this.markUnused = function(usedMap) {
for(var u in usedMap)
used[u] = undefined; // don't delete to keep the order of inclusion (for reloading)
};
};
function TwWeb() {
var nodes = {}; // hashmap by node name of nodes' metadata
var nodeConflicts = {}; // hashmap by node name of arrays of conflicts
var nodeWaitingTasks = {}; // hashmap by node name of arrays of Waiting Tasks
var nodeDescription = function(url) { // PoG: can be turned into a separated "class"
return { url : url };
};
var selfNodeName;
var self = this;
this.includeUsages = new IncludingMemorizer();
// ----- Nodes desctiptions part ---------------------------------------------------------------------
// set/get the name of "main" (including) node
this.setSelfNodeName = function(name) {
selfNodeName = name;
};
this.getSelfNodeName = function() {
return selfNodeName;
};
// set/get/delete node description
this.setNodeDesc = function(nodeName, desc) {
var existing = this.getNodeDesc(nodeName);
// currently, doesn't change metadata on conflict
if(existing)
this.addConflict(nodeName, desc);
else
nodes[nodeName] = desc;
this.callWaitingTasks(nodeName);
};
this.getNodeDesc = function(nodeName) {
return nodes[nodeName];
};
this.deleteNodeDesc = function(nodeName) {
nodes[nodeName] = null;
};
// "API" method to be used in the macro
this.addNodeDesc = function(nodeName, url) {
this.setNodeDesc(nodeName, nodeDescription(url));
};
// returns "better" description if one is "strictly better" than the other or "even" and null otherwise
this.compareNodeDesc = function(desc1, desc2) {
// looks like here's a mistake: probably ": desc2" (?)
return (desc1.url == desc2.url)? desc1 : null;
};
this.getNodeUrl = function(nodeName) {
var desc = this.getNodeDesc(nodeName);
return desc? desc.url : null;
};
// @param nodeId
// url or "node: nodeName" id of the node
// @return url of the node (if it is defined) or null
//
this.getStoreUrlById = function(nodeId) {
var node = self.checkNodeNotation(nodeId),
url = node ? self.getNodeUrl(node) : nodeId;
return url;
}
this.setNodeNotation = function(nodeName) {
return "node: " + nodeName;
};
this.checkNodeNotation = function(urlParam) {
var nodeCalcRE = /node: (.*)/,
nodeCalcMatch = nodeCalcRE.exec(urlParam);
return nodeCalcMatch ? nodeCalcMatch[1] : null;
};
this.addConflict = function(nodeName, nodeDesciption) {
var betterDesc = this.compareNodeDesc(nodeDesciption,this.getNodeDesc(nodeName));
if(betterDesc) {
this.deleteNodeDesc(nodeName);
this.setNodeDesc(nodeName, betterDesc);
return;
}
if(nodeConflicts[nodeName])
nodeConflicts[nodeName].push(nodeDesciption);
else
nodeConflicts[nodeName] = [ nodeDesciption ];
alert( "Warning: more than one description of the "+nodeName+" node was pushed. "+
"The earlier version is kept." );
};
// ----- Waiting tasks part --------------------------------------------------------------------------
this.setWaitingTask = function(nodeName, waitingTaskFunc, waitingTaskSelf) {
var waitingTask = { action: waitingTaskFunc, self: waitingTaskSelf };
if(nodeWaitingTasks[nodeName])
nodeWaitingTasks[nodeName].push(waitingTask);
else
nodeWaitingTasks[nodeName] = [ waitingTask ];
if(this.getNodeUrl(nodeName))
this.callWaitingTasks(nodeName);
};
this.callWaitingTasks = function(nodeName) {
var toDo = nodeWaitingTasks[nodeName];
if(toDo)
for(var i = 0; i < toDo.length; i++)
toDo[i].action.call(toDo[i].self);
nodeWaitingTasks[nodeName] = null; // remove called Waiting Tasks
};
// ----- Including stuff part ------------------------------------------------------------------------
// ---- helpers ----
this.setProgressFunction = function(func) {
progress = func;
};
/* this.getProgressFunction = function() { // is not in use
return progress;
};
*/ this.sendProgress = function(message, sender, state) {
if (progress)
progress.apply(this,arguments);
};
// Returns true when there are "pending" includes, i.e. TiddlyWiki that are not yet loaded.
// A TiddlyWiki that failed loading is not pending.
//
this.hasPendingIncludes = function() {
var state;
for(var url in includedStores) {
state = this.getState(url);
if (state == WAITING || state == LOADING)
return true;
};
return false;
};
// Called when an included TiddlyWiki could not be loaded.
// By default an error message is displayed.
//
this.onError = function(url, errorMessage) {
displayAndLogMessage("Error when including '%0':\n%1".format([url, errorMessage]));
};
// import a tiddler from an included store
//
// @param tiddler - a tiddler to import
// @param mode: undefined or 1 - import anyway (other modes, like "don't substitute" will be supported)
// @return the result object:
// .status means: -1 = error, 0 = tiddler is imported, >0 - reserved for other situations
// .errorText is not empty on error
// .tiddler is the tiddler with /the title/ which is in the store after "it is over" (may be null)
// .from is the url line equal to the includeURL of the imported tiddler
//
this.importIncluded = function(tiddler,mode) {
if(mode == undefined)
mode = 1;
else
mode = parseInt(mode);
var t, tInMain, result = { tiddler: null };
var doImport = function(t) {
store.addTiddler(t);
store.setDirty(true);
result.status = 0;
result.tiddler = t;
result.from = url;
};
if(tiddler instanceof Tiddler) {
// see return value, this is for the case when the import is not done
result.tiddler = window.sharedTiddlersAPI.orig_fetchTiddler(tiddler.title);
t = jQuery.extend(true, new Tiddler(), tiddler);
} else {
result.status = -1;
result.errorText = "not a Tiddler instance";
return result;
};
var url;
if(url = t.getIncludeURL())
t.deleteIncludeURL();
switch(mode) {
case 4: { // import only newer and on confirm
tInMain = window.sharedTiddlersAPI.orig_fetchTiddler(t.title);
if(!tInMain || tInMain.modified < t.modified)
if(confirm("Up-to-date "+t.title+" from "+url+" is availabe, import?"))
doImport(t);
break
}
case 2: { // import only newer versions/unexisting tiddlers
tInMain = window.sharedTiddlersAPI.orig_fetchTiddler(t.title);
if(!tInMain || tInMain.modified < t.modified)
doImport(t);
break
}
case 3: { // import on confirm
if(confirm(t.title+" from "+url+" is availabe, import?"))
doImport(t);
break
}
case 1: { // import anyway
doImport(t);
break
}
default: {
result.status = -1;
result.errorText = "unknown import mode";
}
};
return result;
};
this.importAndLog = function(tiddler,mode) {
var name = tiddler.title,
result = twWeb.importIncluded(tiddler,mode);
// this.importIncluded is not used to be able to pass the method to the API
switch(result.status) {
case 0: console.log("imported: "+name+" from "+result.from);
break
case -1: console.log("error importing "+name+": "+result.errorText);
break
}
};
// ---- main ----
// Includes the (local or remote) TiddlyWiki store with the given url.
//
// @param url see url@stp_loadTiddlyWikiStore
// @param includeParams a set of the following params for including:
// filterLine a filter expression defining a set of tiddlers to include
// substituting points whether an included tiddler should sustitute
// one in the main document if there's a conflict of names
// substituteShadows points whether shadowed tiddlers of the main document with names equal to
// those of included ones should be substituted (in cases of conflicts);
// works only with (substituting == true)
// delayMilliSeconds addition delay of loading
// noRefresh
// importMode
// evalTiddlers
// wikifyTiddlers
//
this.include = function(urlOrNodeParam, includeParams) {
if (!isIncludeEnabled())
return;
var self = this;
var includeOrHandleUrl = function(url) {
var loadStoreCallback = function(theStore,urlInCallback,params,errorMessage) {
if(theStore === undefined) {
includedStores[url] = errorMessage;
self.onError(url, errorMessage);
return;
} else
includedStores[url] = theStore;
// keep orig_store not to load tw-documents multiple times
// because of multiple include macros:
includedStores[url].orig_store = new TiddlyWiki();
includedStores[url].forEachTiddler(function(tName,tiddler){
tiddler.setIncludeURL(url);
includedStores[url].orig_store.addTiddler(tiddler);
});
includedStores[url].clear();
// include, create fetchPreferences and notify of conflicts; or import
addFromLoadedStore();
};
var addFromLoadedStore = function() {
// uses url and includeParams exploiting closure
var substituting = includeParams.substitute,
substituteShadows = includeParams.substituteShadows,
importMode = includeParams.importMode;
if(twWeb.getStore(url) === null)
return invokeLater(addFromLoadedStore, 100); // 100 milliseconds
// new tiddlers should be added *when the store is loaded*
// add tiddlers to included stores and check new conflicts (among non-subs. tids)
var i, t,
new_tiddlers = includedStores[url].orig_store.filterTiddlers(includeParams.filterLine);
for(i = 0; i < new_tiddlers.length; i++) {
t = jQuery.extend(true, new Tiddler(), new_tiddlers[i]); //copy (by value)
if(includedStores[url].orig_store.fetchTiddler(t.title)) {
// ignore empty tiddlers created by the "tiddler" filter
if(importMode)
twWeb.importAndLog(t,importMode);
else {
// check for upcoming conflicts first
conflicts.checkNew(t.title, url, substituting, substituteShadows);
// then include
includedStores[url].addTiddler(t);
};
if(includeParams.evalTiddlers)
installPlugin(t);
if(includeParams.wikifyTiddlers)
wikify(t.text,document.createElement("div"),undefined,t);
};
};
// add items to fetchPreferences if have to
if(!importMode && (substituting || substituteShadows))
for(i = 0; i < new_tiddlers.length; i++)
fetchPreferences.add(new_tiddlers[i].title,url,substituting, substituteShadows);
conflicts.notify();
// "recalc" slices
store.slices = {};
// refresh things to get included stylesheets, PageTemplate and ViewTemplate applied
if(!includeParams.noRefresh) {
refreshAll();
story.refreshAllTiddlers();
}
pendingOnLoadURLs.push(url);
invokeLater(notifyListeners);
};
var loadStore = function() {
includedStores[url] = LOADING;
stp_loadTiddlyWikiStore(url,loadStoreCallback,null,progress);
// {includeParams:includeParams} can be used instead of null so that
// loadStoreCallback will have access to the includeParams
};
var urlIsNew = !(includedStores[url]);
if(urlIsNew) {
includedStores[url] = WAITING;
if (includeParams.delayMilliSeconds)
invokeLater(loadStore, includeParams.delayMilliSeconds);
else
loadStore();
} else
addFromLoadedStore();
};
var nodeName = this.checkNodeNotation(urlOrNodeParam);
if(nodeName) {
if(nodeName == this.getSelfNodeName()) // don't include from the main (self) TiddlyWiki
return;
this.setWaitingTask(nodeName,function(){
var url = this.getNodeUrl(nodeName);
includeOrHandleUrl(url);
},this);
} else
includeOrHandleUrl(urlOrNodeParam);
};
// ----- Methods for dealing with included stuff -----------------------------------------------------
// @return [] of Strings, the URLs of the includes
//
this.getIncludedStoresUrls = function() { // in a form of an array
var includes = [];
for(var url in includedStores)
includes.push(url);
return includes;
};
// @return the (TiddlyWiki) store with the given URL or "node: nodeName", or null if not (yet) loaded.
//
this.getStore = function(nodeId) {
var url = self.getStoreUrlById(nodeId)
if(!url)
return null;
var s = includedStores[url];
if(s && s instanceof TiddlyWiki)
return s;
return null;
};
// @return a state/error text of the store with the given URL, or null when the store is already loaded
//
this.getState = function(nodeId) {
var url = self.getStoreUrlById(nodeId)
if(!url)
return "the node "+self.checkNodeNotation(nodeId)+" is not described yet, the address is unknown";
var s = includedStores[url];
if (!s)
return getMissingIncludeMsg(url);
return typeof s == "string" ? s : null;
};
// reload one included store or all of them
// previous inclusions are done again, by default only those without eval and import
// important: reload doesn't work correctly with <<include>> usages with multiple urls
//
// @param reloadParams an object containing some of these configuration properties:
// urlOrNodeList an array of TWs' IDs (url or "node: nodeName") to reload;
// if undefined, all TWs are reloaded
// eval points whether to redo inclusions with the "eval" parameter (undefined == false)
// import same for the "import" parameter, but undefined/null -> true
// wikify same for the "wikify" parameter
this.reload = function(reloadParams) {
// determine a TW(s) to reload (undefined => all)
var i, twsToReload = reloadParams.urlOrNodeParam;
// turn "IDs" into actual urls; filter out node names for which urls are not defined
// so waiting tasks are not doubled
if(twsToReload)
for(i = 0; i < twsToReload.length; i++){
nodeName = this.checkNodeNotation(twsToReload[i]);
twsToReload[i] = nodeName ? this.getNodeUrl(nodeName) : twsToReload[i];
if(!twsToReload[i])
twsToReload.splice(i--,1);
}
if(reloadParams.import === undefined || reloadParams.import === null)
reloadParams.import = true;
if(reloadParams.wikify === undefined || reloadParams.wikify === null)
reloadParams.wikify = true;
// collect macro expressions to reload
// may the order of including be important?
var usage, usages = this.includeUsages.getUsed(),
paramString, params, pParams, urlParam, nodeName,
dontReload, i;
for(usage in usages) {
// parsing copied from config.macros.include.handler (to get macro params)
paramString = usage.substring(10,usage.length - 2);
params = paramString.readMacroParams();
pParams = paramString.parseParams("url",null,true,false,true);
urlParam = pParams[0]["url"][0];
nodeName = this.checkNodeNotation(urlParam);
urlParam = nodeName ? this.getNodeUrl(nodeName) : urlParam;
// keep only inclusions that contain IDs corresponding to urls from twsToReload
dontReload = true;
if(twsToReload) {
for(i = 0; i < twsToReload.length; i++)
if(urlParam == twsToReload[i])
dontReload = false;
} else
dontReload = false;
// exclude inclusions with import and eval, if necessary
if(!reloadParams.import && getParam(pParams,"import",undefined) ||
!reloadParams.eval && params.contains('eval') ||
!reloadParams.wikify && params.contains('wikify'))
dontReload = true;
if(dontReload) {
delete usages[usage];
continue;
}
// clean stuff: unload included store, clear priorities, remove conflicts;
// deleting "used" marks is outside this loop
includedStores[urlParam] = undefined;
fetchPreferences.removeByUrl(urlParam);
conflicts.markNodeUnloaded(urlParam);
}
// delete "used" marks
this.includeUsages.markUnused(usages);
// include again
for(usage in usages)
wikify(usage,document.createElement("div"),undefined,null);
};
};
twWeb = new TwWeb();
//================================================================================
// Default Progress Handling for config.extensions.SharedTiddlersPlugin
var showAnimated = function(e, showing, duration) {
// if (!anim || !abego.ShowAnimation) {
e.style.display = showing ? "block" : "none";
return;
// }
// anim.startAnimating(new abego.ShowAnimation(e,showing,duration));
};
config.extensions.SharedTiddlersPlugin.getDefaultProgressFunction = function() {
setStylesheet(
".includeProgressState{\n"+
"background-color:#FFCC00;\n"+
"position:absolute;\n"+
"right:0.2em;\n"+
"top:0.2em;\n"+
"width:7em;\n"+
"padding-left:0.2em;\n"+
"padding-right:0.2em\n"+
"}\n",
"stp_Include");
var createStateElem = function() {
var e = document.createElement("div");
e.className = "includeProgressState";
e.style.display = "none";
document.body.appendChild(e);
return e;
};
var stateElem = createStateElem();
var showState = function(message) {
removeChildren(stateElem);
createTiddlyText(stateElem,message);
showAnimated(stateElem,true,0);
};
var hideState = function() {
// hide the state the next idle time
invokeLater(function() {
showAnimated(stateElem,false,ANI_DURATION_HIDE_STATE);
},100,ANIMATION_PRIORITY);
};
var myProgressFunction = function(message, sender, state, url, params) {
if (state == "Done" || state == "Failed") {
hideState();
return;
}
if (sender == "stp_loadTiddlyWikiStore") {
idleCount = 0;
if (state == "Processing")
showState("Including...");
} else {
showState(message);
}
};
return myProgressFunction;
};
twWeb.setProgressFunction(config.extensions.SharedTiddlersPlugin.getDefaultProgressFunction());
//================================================================================
// The "describeNode" macro
//
// Syntax: <<describeNode nodeName {nodeUrl|self}>>
//
config.macros.describeNode = {};
config.macros.describeNode.handler = function(place,macroName,params,wikifier,paramString,tiddler) {
var macroTWcode = wikifier.source.substring(wikifier.matchStart, wikifier.nextMatch);
createTiddlyText(createTiddlyElement(place,"code"),macroTWcode);
// node description duplicates are handled when adding, so no "handle only once" here
var includeURL = tiddler.getIncludeURL(),
nodeName = params[0],
urlParam = params[1],
self = (urlParam == "self");
if(self) {
var oldSelf = twWeb.getSelfNodeName();
if(oldSelf && (oldSelf != nodeName))
return alert("The \'"+oldSelf+"\' alias is already assigned as the name of the current "+
"TiddlyWiki; the new attempt to assign \'"+nodeName+"\' is ignored.");
twWeb.setSelfNodeName(nodeName);
return;
}
var url = resolveUrlFrom(urlParam, includeURL);
url = stp_resolveURL(url); // if no includeURL
twWeb.addNodeDesc(nodeName,url);
};
//================================================================================
// The "include" macro
//
// Syntax: <<include [url:]url [filters:filterLine] [substitute]
// [substituteShadows] [hide:hideFlag] [delay:delayDuration]>>
//
config.macros.include = {};
config.macros.include.handler = function(place,macroName,params,wikifier,paramString,tiddler) {
var macroTWcode = wikifier.source.substring(wikifier.matchStart, wikifier.nextMatch),
pParams = paramString.parseParams("url",null,true,false,true); // allowEval, cascadeDefaults, names allowed
var hide = getFlag(pParams, "hide", false) || params.contains('hide');
if (!hide)
createTiddlyText(createTiddlyElement(place,"code"),macroTWcode);
if (twWeb.includeUsages.isUsed(macroTWcode))
return;
twWeb.includeUsages.setUsed(macroTWcode);
var urls = pParams[0]["url"],
includeParams = {
delayMilliSeconds: parseInt(getParam(pParams,"delay","0")),
filterLine: getParam(pParams,"filters","[all[-]]"),
substitute: params.contains('substitute'),
substituteShadows: params.contains('substituteShadows'),
noRefresh: params.contains('noRefresh'),
importMode: getParam(pParams,"import",undefined),
evalTiddlers: params.contains('eval'),
wikifyTiddlers: params.contains('wikify')
};
var checkUrlAndInclude = function(url) {
if(url == 'hide' || url == 'substituteShadows' || url == 'substitute' || url == 'eval' ||
url == 'wikify' || url == 'noRefresh')
return;
twWeb.include(url,includeParams);
};
for (var i = 0; urls && i < urls.length; i++)
checkUrlAndInclude(urls[i]);
};
//================================================================================
// The "reloadIncluded" macro
//
// Syntax: <<reloadIncluded [urls:urlsJSON] [reloadParams:otherReloadParamsJSON]
// [label:labelText] [tooltip:tooltipText] [class:className]>>
// (for reloadParams, see twWeb.reload)
//
config.macros.reloadIncluded = {};
config.macros.reloadIncluded.handler = function(place,macroName,params,wikifier,paramString,tiddler) {
// parse params
var pParams = paramString.parseParams("url",null,true,false,true),
label = getParam(pParams,"label","refresh"),
tooltip = getParam(pParams,"tooltip",undefined),
elClass = getParam(pParams,"class"," "), // " " overwrites the default "button" class
urlsText = getParam(pParams,"urls",undefined),
otherReloadParamsText = getParam(pParams,"reloadParams","{}"),
reloadParams = JSON && JSON.parse(otherReloadParamsText) || jQuery.parseJSON(otherReloadParamsText);
reloadParams.urlOrNodeList = !urlsText ? undefined :
(JSON && JSON.parse(urlsText) || jQuery.parseJSON(urlsText));
if(!tooltip) {
if(reloadParams.urlOrNodeList) {
tooltip = "refresh '"+reloadParams.urlOrNodeList[0]+"'";
for(var i = 1; i < reloadParams.urlOrNodeList.length; i++)
tooltip += ", '"+reloadParams.urlOrNodeList[i]+"'";
tooltip += (i > 0) ? " nodes" : " node";
} else
tooltip = "refresh all included nodes";
}
// create button, add handler
createTiddlyButton(place,label,tooltip,function(){
var returnHere = function() {
if(twWeb.hasPendingIncludes()) {
invokeLater(returnHere,100);
return;
} // wait until all the stores are loaded and the page is refreshed
var t = tiddler.title, te = DEFAULT_VIEW_TEMPLATE;
story.displayTiddler(this,t,story.chooseTemplateForTiddler(t,te));
}
twWeb.reload(reloadParams);
invokeLater(returnHere,100); // wait a bit for the nodes to unload
},elClass);
};
//================================================================================
// The "includeState" macro
//
// Syntax: <<includeState>>
//
config.macros.includeState = {};
config.macros.includeState.handler = function(place,macroName,params,wikifier,paramString,tiddler) {
var getFullState = function () {
var s = "";
var includes = twWeb.getIncludedStoresUrls();
if (!includes.length)
return "{{noIncludes{\nNo TiddlyWiki is included or including is disabled (see AdvancedOptions)\n}}}\n";
s += "|!Address|!State|\n";
for (var i = 0; i < includes.length; i++) {
var inc = includes[i];
s += "|{{{"+inc+"}}}|";
var t = twWeb.getState(inc);
s += t ? "{{{"+t+"}}}" : "included";
s += "|\n"
}
s += "|includeState|k\n";
return s;
};
var updateState = function(){
removeChildren(div);
wikify(getFullState(),div);
if (twWeb.hasPendingIncludes())
invokeLater(updateState,500,UPDATE_STATE_PRIORITY);
};
var div = createTiddlyElement(place,"div");
invokeLater(updateState,0,UPDATE_STATE_PRIORITY);
};
//================================================================================
// Change standart formatters
var getFormatterIndex = function(formatterName) {
for(var i = 0; i < config.formatters.length; i++)
if(config.formatters[i].name == formatterName)
return i;
return null;
}
//--------------------------------------------------------------------------------
// Change the prettyLink formatter so that it
// * recognizes [[text|target]]@nodeName and [[target]]@nodeName syntax
// * takes into account includeURL of the tiddler and propagates inclusion
if(config.options.STP_hijackPrettyLink) {
var prettyLinkFormatterIndex = getFormatterIndex("prettyLink");
config.extensions.SharedTiddlersPlugin.orig_prettyLinkFormatter = config.formatters[prettyLinkFormatterIndex];
config.formatters[prettyLinkFormatterIndex] = {
name: "prettyLink",
match: "\\[\\[",
lookaheadRegExp: /\[\[(.*?)(?:\|(~)?(.*?))?\]\](?:(?:@(\w+))(?:@([\w\s\:]+)@)?)?/mg,
handler: function(w) {
this.lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = this.lookaheadRegExp.exec(w.source);
if(lookaheadMatch && lookaheadMatch.index == w.matchStart) {
// call the formatter
config.extensions.SharedTiddlersPlugin.orig_prettyLinkFormatter.handler(w);
// call the include.handler, if necessary
var node = lookaheadMatch[4]? lookaheadMatch[4] : undefined,
includeURL = w.tiddler? w.tiddler.getIncludeURL() : null,
urlParam = node? twWeb.setNodeNotation(node) : (includeURL? includeURL : undefined),
target = lookaheadMatch[3]? lookaheadMatch[3] : lookaheadMatch[1],
paramString = '"'+urlParam+'" filters:"[['+target+']]" hide noRefresh ';
if(lookaheadMatch[5])
paramString += lookaheadMatch[5];
if(urlParam)
config.macros.include.handler(w.output,"include",
paramString.readMacroParams(true),w,paramString,w.tiddler);
// move nextMatch according to this.lookaheadRegExp, not original prettyLink
w.nextMatch = this.lookaheadRegExp.lastIndex;
}
}
};
}
//--------------------------------------------------------------------------------
// Change the image formatter so that it
// * takes into account includeURL of the tiddler and recalcs relative urls
if(config.options.STP_hijackImageFormatter) {
var imageFormatterIndex = getFormatterIndex("image");
config.extensions.SharedTiddlersPlugin.orig_imageFormatterHandler = config.formatters[imageFormatterIndex].handler;
config.formatters[imageFormatterIndex].handler = function(w) {
var lastChildBeforeHandling = w.output.lastChild;
config.extensions.SharedTiddlersPlugin.orig_imageFormatterHandler.apply(this,arguments);
if(w.output.lastChild != lastChildBeforeHandling) {
var img = w.output.lastChild,
includeURL = w.tiddler ? w.tiddler.getIncludeURL() : "",
imgSrc = jQuery(img).attr("src");
// take includeURL into account:
img.src = resolveUrlFrom(imgSrc, includeURL);
}
}
}
//================================================================================
// Add inline-management tools by hijacking .edit.handler
config.extensions.SharedTiddlersPlugin.orig_editHandler = config.macros.edit.handler;
config.macros.edit.handler = function(place,macroName,params,wikifier,paramString,tiddler) {
var includeUrl = tiddler.getIncludeURL();
if(params[0] == "text" && includeUrl){ // only for "text", not other fields
var e = createTiddlyElement(null,"div");
e.className = "manageIncludedPanel";
createTiddlyText(e,"manage the included tiddler: ");
// go to the source
var sourceUrl = includeUrl + "#[["+tiddler.title+"]]";
createExternalLink(e, sourceUrl, "open in the source TiddlyWiki");
// view the link to the source
createTiddlyText(e," (");
createTiddlyButton(e,"view link","view the link to the source",function(e){
var popup = Popup.create(this);
createTiddlyText(popup,sourceUrl);
Popup.show();
var ev = e || window.event;
ev.cancelBubble = true;
if(ev.stopPropagation)
ev.stopPropagation();
return false;
}," ");
createTiddlyText(e,")");
// import
if(!readOnly) {
createTiddlyText(e," | ");
createTiddlyButton(e,"import","import this tiddler",function(){
twWeb.importAndLog(tiddler,1);
}," ");
}
// reload
createTiddlyText(e," | ");
config.macros.reloadIncluded.handler(e,"",null,null,'urls:\'["'+includeUrl+'"]\'',tiddler);
// other actions
// if the read only mode is not set, display all tools otherwise ...
place.appendChild(e);
}
return config.extensions.SharedTiddlersPlugin.orig_editHandler(place,macroName,params,wikifier,paramString,tiddler);
};
//================================================================================
// Perform plugin startup tasks
// add this for the "install only once" check (which also prevents conflicts with abego.IncludePlugin)
// (this is also deprecated API for backward compability)
abego.TiddlyWikiIncluder = {
getIncludes: twWeb.getIncludedStoresUrls,
getState: twWeb.getState,
getStore: twWeb.getStore
};
attachToStore();
invokeLater(includeFromIncludeList,100);
// add several more methods to the "API namespace"
window.sharedTiddlersAPI.getIncludes = twWeb.getIncludedStoresUrls;
window.sharedTiddlersAPI.getState = twWeb.getState;
window.sharedTiddlersAPI.getStore = twWeb.getStore;
window.sharedTiddlersAPI.importAndLog = twWeb.importAndLog;
// iterates over all tiddlers of "the store" and all tiddlers of included (and loaded) stores
//
window.sharedTiddlersAPI.forReallyEachTiddler = function(callback) {
var caller = function() {
store.forEachTiddler(callback);
};
getFunctionUsingForReallyEachTiddler(caller).call(store);
};
})();
//%/ //
/***
|Description|highlights saving button (bold red) when there's unsaved changes|
|Version|1.0|
|Short status|<<insertEditable container:"@stateComment" size:max cell>>|
|Author|Yakov Litvin|
***/
//{{{
// add the "saveChangesButton" class to the save changes button
config.macros.saveChanges.SCM_orig_handler = config.macros.saveChanges.handler;
config.macros.saveChanges.handler = function(place,macroName,params)
{
this.SCM_orig_handler.apply(this,arguments);
place.lastChild.classList.add("saveChangesButton");
};
// styles that highlight save button when there's something to save
var css = ".saveChangesButton { font-weight: bold; color: red !important; }";
TiddlyWiki.prototype.SCM_orig_setDirty = TiddlyWiki.prototype.setDirty;
TiddlyWiki.prototype.setDirty = function(dirty)
{
if(dirty)
setStylesheet(css,"highlightSaving");
else
removeStyleSheet("highlightSaving");
return this.SCM_orig_setDirty.apply(this,arguments);
};
//}}}
<<permaview
>><<closeAll
>><<newTiddler label:"добавить tw-запись"
>><<saveChanges "сохранить"
>><<slider chkSliderOptionsPanel OptionsPanel "options »" "Change TiddlyWiki advanced options"
>><<slider chkSliOptionsPanel [[SideBarOptions##OptionsPanel]] "параметры »" "куки-параметры TW"
>><<switchNightMode label:"switch day/night"
>>/%
!OptionsPanel
<<option chkSaveBackups>> сохранять резервные копии
<<option chkAutoSave>> автосохранение
<<option chkAnimate>> анимация
----
[[полный список пар-ров|AdvancedOptions]]
[[сохранённые параметры|SystemSettings]]
!%/
<<tiddler [[CommonAggregationTools]] noedit>>
/*{{{*/
.file-size{display:none}
#lessonShortLink span{font-size:12px;color:#394B4D;}
.fork_notification {
background-color: #1f98ae;
color: white;
font-weight: bold;
padding: 1em 0;
text-align: center;
}
/* indicate author mode
body { background-color: #f6fff0; } */
/* smartphones and tablets */
/* smartphones */
@media screen and (max-width: 700px) {
.header { display: none; }
}
/**/
div[tags~="systemConfig"] .viewer pre { clear: both !important; }
div[tags~="unit"] .tagging,
div[tags~="course"] .tagging { display: none; }
.larger { font-size: larger; }
/* arrows, 80:140 */
.backward, .forward {
display: inline-block;
/* width: 64px;
height: 112px;
*/ width: 25px;
height: 48px;
}
.backward {
/* background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIuNSAyMyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIuNSAyMzsiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+LnN0MHtmaWxsOiMyMTJCMkI7fTwvc3R5bGU+PGc+PHBhdGggY2xhc3M9InN0MCIgZD0iTTExLjEsMjNsMS40LTEuNEwyLjQsMTEuNUwxMi41LDEuNEwxMS4xLDBMMC4zLDEwLjhDMC4xLDExLDAsMTEuMiwwLDExLjVzMC4xLDAuNSwwLjMsMC43TDExLjEsMjN6Ii8+PC9nPjwvc3ZnPg==); */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAwCAMAAADTlCGvAAAAG1BMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4Gco9AAAACHRSTlMAEDBQwNDg8PRX3M8AAAAySURBVDjL7cmxDQAwCAOwAKXw/8VIncnSOV4NrDxAojpYpCkUz2WB0+X7WKpUH8UG5hgU7gQbPMr73AAAAABJRU5ErkJggg==);
background-repeat: no-repeat;
}
.forward {
/* background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTIuNSAyMyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIuNSAyMzsiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+LnN0MHtmaWxsOiMyMTJCMkI7fTwvc3R5bGU+PGc+PHBhdGggY2xhc3M9InN0MCIgZD0iTTEuNCwyM0wwLDIxLjZsMTAuMS0xMC4xTDAsMS40TDEuNCwwbDEwLjgsMTAuOGMwLjIsMC4yLDAuMywwLjQsMC4zLDAuN3MtMC4xLDAuNS0wLjMsMC43TDEuNCwyM3oiLz48L2c+PC9zdmc+); */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAwCAMAAADTlCGvAAAAG1BMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4Gco9AAAACHRSTlMAEDBQwNDg8PRX3M8AAAAySURBVDjL7ckxEgAgCAMwCiL8/8V6znRxbtaYOWzmlWDTKtVHrXmQvVmUKxRPsLhF4gD0rwQb4xAyFgAAAABJRU5ErkJggg==);
background-repeat: no-repeat;
}
.logo-sign {
background-image: url(images/cpm.png);background-size: auto 30px;
width:33px; height:30px;
background-repeat: no-repeat;
}
/* step types */
.pager {
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i0KHQu9C+0LlfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxnPjxnPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzM5NEI0RCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xOS41LDIwLjVjMCwxLjEtMC45LDItMiwyaC0xMWMtMS4xLDAtMi0wLjktMi0ydi0xNGMwLTEuMSwwLjktMiwyLTJoMTFjMS4xLDAsMiwwLjksMiwyVjIwLjV6Ii8+PC9nPjxnPjxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzM5NEI0RCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSI4IiB5MT0iOS41IiB4Mj0iMTYiIHkyPSI5LjUiLz48L2c+PGc+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzk0QjREIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjgiIHkxPSIxNy41IiB4Mj0iMTYiIHkyPSIxNy41Ii8+PC9nPjxnPjxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzM5NEI0RCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSI4IiB5MT0iMTMuNSIgeDI9IjE2IiB5Mj0iMTMuNSIvPjwvZz48L2c+PC9nPjwvc3ZnPg==);
}
.video {
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i0KHQu9C+0LlfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwYXRoIGZpbGw9IiMzOTRCNEQiIGQ9Ik02Ljk4LDUuNzljMC4wNDMsMC4wMTUsMC4xNjUsMC4wNDEsMC4yMzcsMC4wODVsMTEuNzU2LDcuMTM2YzAuMTQ2LDAuMDg5LDAuMjI0LDAuMTY4LDAuMjQsMC4xNjhjMC4wMDIsMCwwLjAxMS0wLjAwMSwwLjAxMi0wLjAwM2MtMC4wMDgsMC4wMjItMC4wNjIsMC4xMDgtMC4yMjMsMC4yMDZMNy4yNzksMjAuNTE5Yy0wLjA3MiwwLjA0NC0wLjI1OCwwLjA3LTAuMzAxLDAuMDg1Yy0wLjAwOS0wLjA0Ni0wLjE0Ni0wLjEwOS0wLjE0Ni0wLjE5MVY1Ljk4MUM2LjgzMyw1Ljg5OSw2Ljk3MSw1LjgzNiw2Ljk4LDUuNzkgTTYuODg4LDQuNzY4Yy0wLjU0OCwwLTEuMDU1LDAuNDQzLTEuMDU1LDEuMjEzdjE0LjQzMmMwLDAuNzcsMC41MDcsMS4yMTMsMS4wNTUsMS4yMTNjMC4yMzUsMCwwLjU2Ni0wLjA4MSwwLjg0OC0wLjI1M2wxMS43NTYtNy4xMzZjMC45NC0wLjU3MiwwLjk1Ni0xLjUwOCwwLjAxNi0yLjA4TDcuNzI4LDUuMDJDNy40NDcsNC44NDksNy4xMjMsNC43NjgsNi44ODgsNC43NjhMNi44ODgsNC43Njh6Ii8+PC9nPjwvc3ZnPg==);
}
.task {
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i0KHQu9C+0LlfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzM5NEI0RCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xMC42NjYsMjEuNWMtMC41NSwwLTEuNDUsMC0yLDBINS43M2MtMC41NSwwLTEuMjMtMC4yMDItMS4yMy0wLjc1MlY4Ljg4OUM0LjUsOC4zMzksNS4xOCw3LjUsNS43Myw3LjVoMi4yNzhjMC41NSwwLDEuNDIzLDAuMDQxLDEuOTQtMC4xNDdjMCwwLDEuMzItMC4zODMsMC41NDQtMS4xOUM5Ljg5Myw1LjU0LDkuNTg5LDUuMDE1LDkuNTg5LDQuMTMyYzAtMS4yMDQsMS4zOTYtMi42NTYsMi43MTEtMi42NTZjMS4zMTYsMCwyLjcxMSwxLjQ4OCwyLjcxMSwyLjY5M2MwLDAuODg0LTAuMzA0LDEuNDYzLTAuOTAzLDIuMDg2Yy0wLjc3NiwwLjgwNywwLjU0NCwxLjA5NiwwLjU0NCwxLjA5NmMwLjUxNywwLjE4OCwxLjM5LDAuMTUsMS45NCwwLjE1aDIuMjc4YzAuNTUsMCwwLjYzLDAuODM5LDAuNjMsMS4zODl2MS44NmMwLDAuNTUsMC4wMjcsMS40MjEtMC4xNjUsMS45MzdjMCwwLTAuNDU1LDEuNDYyLTEuMzM2LDAuNzUxYy0wLjY4LTAuNTQ4LTEuMjYxLTEuMTI4LTIuMjI2LTEuMTI4Yy0xLjMxNiwwLTIuNzI1LDEuMzA1LTIuNzI1LDIuNTA5YzAsMS4yMDQsMS40NDQsMi41MDksMi43NiwyLjUwOWMwLjk2NSwwLDEuNTk4LTAuNTc5LDIuMjc4LTEuMTI4YzAuODgyLTAuNzExLDEuMjQ3LDAuNzUxLDEuMjQ3LDAuNzUxYzAuMTkzLDAuNTE1LDAuMTY4LDEuMzg3LDAuMTY4LDEuOTM3djEuODZjMCwwLjU1LTAuMDgsMC43NTItMC42MywwLjc1MmgtMi45MzZjLTAuNTUsMC0xLjQ1LDAtMiwwSDEwLjY2NnoiLz48L2c+PC9zdmc+);
}
.test {
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i0KHQu9C+0LlfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxnPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzM5NEI0RCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xOS4zMzMsMTkuNWMwLDEuMTA1LTAuODk1LDItMiwyaC0xMWMtMS4xMDUsMC0yLTAuODk1LTItMnYtMTFjMC0xLjEwNSwwLjg5NS0yLDItMmgxMWMxLjEwNSwwLDIsMC44OTUsMiwyVjE5LjV6Ii8+PC9nPjxwb2x5bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMzOTRCNEQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IjcuMDM1LDExLjIwNSAxMC43MTcsMTcuODkzIDIwLjI0OSwyLjE4OCAiLz48L2c+PC9zdmc+);
}
.pager, .video, .test, .task {
height:24px; width:24px;
background-repeat: no-repeat;
}
/*}}}*/
/***
<html>
<div class="explanation" style=""></div><div class="pager" style=""></div>
<div class="video" style=""></div>
<div class="task" style=""></div>
<div class="test" style=""></div>
</html>
***/
div[tiddler] #footer { display: none !important; }
/*{{{*/
/* ~my additions */
.gallery .fancybox img { max-width: 24%; margin-left: 0.5%; margin-right: 0.5%; }
/* hacks to fight the StyleSheetColors' a:hover {background-color:[[ColorPalette::PrimaryMid]]; rule (part of a rule): */
.fancybox:hover,
a[class~="fancybox-prev"]:hover,
a[class~="fancybox-next"]:hover { background-color:inherit; }
a[class~="fancybox-close"]:hover { background-color: rgba(255, 255, 255, 0); }
/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
/* YL modifications: all images were converted to base64 and inserted here */
.fancybox-wrap,
.fancybox-skin,
.fancybox-outer,
.fancybox-inner,
.fancybox-image,
.fancybox-wrap iframe,
.fancybox-wrap object,
.fancybox-nav,
.fancybox-nav span,
.fancybox-tmp
{
padding: 0;
margin: 0;
border: 0;
outline: none;
vertical-align: top;
}
.fancybox-wrap {
position: absolute;
top: 0;
left: 0;
z-index: 8020;
}
.fancybox-skin {
position: relative;
background: #f9f9f9;
color: #444;
text-shadow: none;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.fancybox-opened {
z-index: 8030;
}
.fancybox-opened .fancybox-skin {
-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.fancybox-outer, .fancybox-inner {
position: relative;
}
.fancybox-inner {
overflow: hidden;
}
.fancybox-type-iframe .fancybox-inner {
-webkit-overflow-scrolling: touch;
}
.fancybox-error {
color: #444;
font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
margin: 0;
padding: 15px;
white-space: nowrap;
}
.fancybox-image, .fancybox-iframe {
display: block;
width: 100%;
height: 100%;
}
.fancybox-image {
max-width: 100%;
max-height: 100%;
}
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAACYCAMAAACoAftQAAAAvVBMVEUAAAAAAAAAAAAODg4AAAAAAAAAAADNzc0BAQHZ2dkDAwMHBwcAAADf398CAgI/Pz8BAQEAAACCgoIcHBzl5eUAAAC/v7/x8fEGBgZnZ2cAAADs7OwGBgb4+Pg/Pz/Jycmenp5nZ2f39/eDg4MAAADQ0ND4+Piurq7a2tr8/Pzs7OwAAAD5+fn9/f3e3t4AAAD///9OTk7BwcE1NTWsrKyNjY2cnJx6enpdXV1oaGgsLCy6uroiIiLOzs5BQUFt3PCNAAAAL3RSTlMAAQMIDRIZHSMnLTpESFNVXWlpbG15en+HiZCWoaGssrO2vsDFydPU3uL4+fr9/Ywv6xsAAAQVSURBVHhe7JZbc6JMGIQXAUOQEMi3uMYkrmopZgqs5ujZ//+zvpdNzMsMlli1N3uRvtCbpzo9I+nmhyqN9OO6GNQ6Ha1SG0mcrhskXe90rvKE6kbX7r9MF4vp2887nfBrqPW0xJemD4w32e7jHIj2602SbNZ7Qfgd0zJLtgKi2B0+tSsE3h8u0RX7HGGfHWrK9oiIbrK69SiQHxTliO5VWtP0rrNEemhoj6muaYqx2XuGyJrwbgUKohhb3hIFM6wCC7Zm4+M5Zs5fpKNiTYndEOUHDFRYCeADLvGiy7DtL7E5/12gJPacalPlqEc2eoFAdmCa2UOGyOhoUuQgwo7PxCwJMGXYGcQMlyCVX3DchCkGs3V6h0iFgyUSZsuS6QQLGaYDhueUHxhf3RpzOqB8dRMcz84lf5FS9A1Ngi2PQm8PF7RBZOnEyqFnSC/BKX6bHQmucpB13mRzCJtTsPUowlpl14if2JifUXcwgeqdA2OLn1C+PdsbzCKkW0a3KeKxbbAxF4FJ9EgAaXGqyFORAuLZNrkMZNoNKnNS9PE5dpltFofjB4PJXIAk5rP/HMu4Ukmm7XjEkwLfc2yT66tJk7lp2T2H1LMtk2wVVsWpcE0SlW4DbeLE/xG3eRvfQv7Fptw4KvpDNRKLt1/3rZty/xbjrPef1+5D018ITYttkiTrfAUsrmzK3RTIT/woHxH3DaZl9h2rRH2aX0ydaYb1BVK1zNdA32RvNn7DkVmmoyeVJvYBMcdl5Vg2/lW0zpSbUNIKT12KLV8wVjsmNvGW63feU3qj86veGQmAA1e5qzbStNZdmVTlRzzbSjG+4+t4u1iqjxxjR6pczaiNBCCVXoGx25X7mUNGgJBHM/QsXWp+dk4U5xJjX4EXSM7ACcCxnnnm2zI8rxVoFgMr/lUwUpyNPvYVx/eRfaUSQzkzLWxEOVhiwynCAd2GvCm/2bquBPEo+LxnDv0YXdyfFOHQP+8EV/kY0enSorxyitoLxxwiabDRqDImWF2JJVBIeVNEk2HgsDGn7vkhcPy67lMOiBGF4AGS3tX8yYqAfb5eF/kRiMPX4cDjEDLd8wezJT4lwtHrMHBtbg6V9oLhYDYLw3A2eSVbn0elSdMCecFg+Ee0Kq7dlftLXSCrRxNE8lzH7hp0Nu3qpHQty7Ztq2sabHvtpb/SLauisVTye1O+N2Ubbxhu2xSAq6x1UwoAWfum8P3Gu5ZNYaUA2jaFJYCofVPYOWnZFD4TcLpxU1ZAnN24KRnfxQ2bshEE/Vub8r0p35vi/t9eHRoBDMNQDJUvMLkOkDMM+8D7b9cR+kOKLPy4juojnQeAkWWVAyLLLINVdovj44N8LOqi/3Djxo0bN5ZvdbWJuwHhrw2ILYdqBwDT2fEEXtrZFmVcCWLiAAAAAElFTkSuQmCC");
}
#fancybox-loading {
position: fixed;
top: 50%;
left: 50%;
margin-top: -22px;
margin-left: -22px;
background-position: 0 -108px;
opacity: 0.8;
cursor: pointer;
z-index: 8060;
}
#fancybox-loading div {
width: 44px;
height: 44px;
background: url("data:image/gif;base64,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") center center no-repeat;
}
.fancybox-close {
position: absolute;
top: -18px;
right: -18px;
width: 36px;
height: 36px;
cursor: pointer;
z-index: 8040;
}
.fancybox-nav {
position: absolute;
top: 0;
width: 40%;
height: 100%;
cursor: pointer;
text-decoration: none;
background: transparent url("data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="); /* helps IE */
-webkit-tap-highlight-color: rgba(0,0,0,0);
z-index: 8020; /* tweak to avoid hovering over the fancybox ~footer */
}
.fancybox-prev {
left: 0;
}
.fancybox-next {
right: 0;
}
.fancybox-nav span {
position: absolute;
top: 50%;
width: 36px;
height: 34px;
margin-top: -41px;
cursor: pointer;
z-index: 8040;
visibility: hidden;
}
.fancybox-prev span {
left: 10px;
background-position: 0 -36px;
}
.fancybox-next span {
right: 10px;
background-position: 0 -72px;
}
.fancybox-nav:hover span {
visibility: visible;
}
.fancybox-tmp {
position: absolute;
top: -99999px;
left: -99999px;
max-width: 99999px;
max-height: 99999px;
overflow: visible !important;
}
/* Overlay helper */
.fancybox-lock {
overflow: visible !important;
width: auto;
}
.fancybox-lock body {
overflow: hidden !important;
}
.fancybox-lock-test {
overflow-y: hidden !important;
}
.fancybox-overlay {
position: absolute;
top: 0;
left: 0;
overflow: hidden;
display: none;
z-index: 8010;
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpCMEM4NDgzQjlDRTNFMTExODE4NUVDOTdFQ0I0RDgxRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGREU5OEVCQzAzMjYxMUUyOTg5OURDMDlDRTJDMTc0RSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGREU5OEVCQjAzMjYxMUUyOTg5OURDMDlDRTJDMTc0RSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkIxQzg0ODNCOUNFM0UxMTE4MTg1RUM5N0VDQjREODFFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkIwQzg0ODNCOUNFM0UxMTE4MTg1RUM5N0VDQjREODFFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+s3YRAQAAABtJREFUeNpiFODh2cBABGBiIBKMKqSOQoAAAwBokQDs5F/8FAAAAABJRU5ErkJggg==");
}
.fancybox-overlay-fixed {
position: fixed;
bottom: 0;
right: 0;
}
.fancybox-lock .fancybox-overlay {
overflow: auto;
overflow-y: scroll;
}
/* Title helper */
.fancybox-title {
visibility: hidden;
font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
position: relative;
text-shadow: none;
z-index: 8050;
}
.fancybox-opened .fancybox-title {
visibility: visible;
}
.fancybox-title-float-wrap {
position: absolute;
bottom: 0;
right: 50%;
margin-bottom: -35px;
z-index: 8050;
text-align: center;
}
.fancybox-title-float-wrap .child {
display: inline-block;
margin-right: -100%;
padding: 2px 20px;
background: transparent; /* Fallback for web browsers that doesn't support RGBa */
background: rgba(0, 0, 0, 0.8);
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
text-shadow: 0 1px 2px #222;
color: #FFF;
font-weight: bold;
line-height: 24px;
white-space: nowrap;
}
.fancybox-title-outside-wrap {
position: relative;
margin-top: 10px;
color: #fff;
}
.fancybox-title-inside-wrap {
padding-top: 10px;
}
.fancybox-title-over-wrap {
position: absolute;
bottom: 0;
left: 0;
color: #fff;
padding: 10px;
background: #000;
background: rgba(0, 0, 0, .8);
}
/*Retina graphics!*/
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5){
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
background-image: url("data:image/png;base64,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");
background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
}
#fancybox-loading div {
background-image: url("data:image/gif;base64,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");
background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
}
}
/*}}}*/
[[StyleSheetGallery]]
/*{{{*/
/* стили, которые затронут что-то в других уроках */
ol#lesson-steps {
margin-bottom: 60px;
background-color: #f7f7f7;
padding-top: 20px;
margin-left: -40px;
padding-left: 65px !important;
margin-right: -20px;
padding-right: 20px;
padding-bottom: 36px !important;
}
ol#lesson-steps small, .dl_content small {
letter-spacing: 0.5px;
}
#lessons-list {
background-color: #eaeaea !important;
}
/*
span.file-size {
color: #1f98ae;
font-size: 15px;
}
*/
/* --------------------------------------------- */
ol.gallery_items {
counter-reset: li;
font-size: 0;
list-style-type: none;
display: flex;
flex-wrap: wrap;
padding-left: 0;
}
ol.gallery_items li {
display: inline-block;
margin: 10px 16px 0 0;
font-size: 17px;
width: 153px;
}
ol.gallery_items li a {
color: #2d2d2d;
}
ol.gallery_items img {
border: 1px solid #e2e2e2 !important;
width: 147px;
height: 98px;
}
ol.gallery_items li p {
font-size: 13px !important;
border: none !important;
padding-left: 20px;
margin-top: 4px;
display: block;
position: relative;
}
ol.gallery_items li p:before {
content: counter(li);
counter-increment: li;
font-weight: 700;
position: absolute;
left: 0px;
color: #394B4D;
display: block;
float: left;
height: 20px;
/*width: 20px;*/
text-align: left;
font-size: 13px;
}
.download {
position: absolute;
bottom: 16px;
right: 32px;
background-image: url(images/env_galleries/download-white.svg);
background-position: 16px center;
background-repeat: no-repeat;
background-size: 18px;
background-color: #2d2d2ddd;
border-radius: 50%;
width: 49px;
height: 49px;
z-index: 9000;
}
.download:hover,
.download-hover-preload {
background-image: url(images/env_galleries/download-white_hover.svg);
}
.download a {
display: block;
width: 100%;
height: 100%;
background-color: transparent;
}
.fancybox-close {
position: absolute;
top: 16px;
right: 32px;
background-image: url(images/env_galleries/close.svg);
background-repeat: no-repeat;
background-position: 16px center;
background-size: 18px !important;
width: 49px;
height: 49px;
background-color: #2d2d2ddd !important; /* without important somewhy is removed on hover */
border-radius: 50%;
background-size: auto;
}
.fancybox-close:hover,
.fancybox-close-hover-preload {
background-image: url(images/env_galleries/close_hover.svg);
}
.fancybox-nav {
/* width: 82px;
height: 82px;
position: absolute;
top: 50%;
margin-top: -41px;
margin-left: 16px;
margin-right: 16px;*/
}
.fancybox-prev span, .fancybox-next span {
width: 82px;
height: 82px;
border-radius: 50%;
background-repeat: no-repeat;
background-size: 18px;
background-color: #2d2d2ddd;
cursor: pointer;
/* visibility: visible;
margin: auto;
top: auto;
right: auto;
bottom: auto;
left: auto;
*/ z-index: 8040;
}
.fancybox-prev span {
background-image: url(images/env_galleries/left.svg);
background-position: 30px center;
}
.fancybox-prev span:hover,
.fancybox-prev-hover-preload {
background-image: url(images/env_galleries/left_hover.svg);
}
.fancybox-next span {
background-image: url(images/env_galleries/right.svg);
background-position: 34px center;
}
.fancybox-next span:hover,
.fancybox-next-hover-preload {
background-image: url(images/env_galleries/right_hover.svg);
}
.fancybox-skin, .fancybox-title-inside-wrap {
background-color: black;
color: white;
}
.fancybox-title {
display: table;
padding: 6px 0;
font-family: open-sans, sans-serif;
}
div.number {
display: table-cell;
padding: 3px 10px 0 15px;
font-weight: 800;
font-size: 14px;
}
div.titles {
display: table-cell;
padding: 0;
}
.main-title {
font-size: 14px;
}
.author-title {
font-size: 11px;
line-height: 1.2;
padding-bottom: 10px;
}
.author-title a {
color: #e2e2e2;
padding-bottom: 2px;
border-bottom: 1px solid rgba(255,255,255,0.3);
}
.author-title a:hover {
color: white;
}
.titles span {
display: block;
float: none;
clear: both;
}
/*}}}*/
chkAnimate: false
chkAutoSave: true
chkSaveBackups: false
/***
|Name|TaggedTemplateTweak|
|Source|http://www.TiddlyTools.com/#TaggedTemplateTweak|
|Documentation|http://www.TiddlyTools.com/#TaggedTemplateTweakInfo|
|Version|1.6.1|
|Author|Eric Shulman|
|License|http://www.TiddlyTools.com/#LegalStatements|
|~CoreVersion|2.1|
|Type|plugin|
|Description|use alternative ViewTemplate/EditTemplate for specific tiddlers|
This plugin extends the core function, {{{story.chooseTemplateForTiddler()}}}, so that any given tiddler can be viewed and/or edited using alternatives to the standard tiddler templates.
!!!!!Documentation
>see [[TaggedTemplateTweakInfo]]
!!!!!Code
***/
//{{{
version.extensions.TaggedTemplateTweak = {major: 1, minor: 6, revision: 1, date: new Date(2009,9,2)};
if (!config.options.txtTemplateTweakFieldname)
config.options.txtTemplateTweakFieldname = 'template';
Story.prototype.taggedTemplate_chooseTemplateForTiddler = Story.prototype.chooseTemplateForTiddler;
Story.prototype.chooseTemplateForTiddler = function(title,template)
{
// get core template and split into theme and template name
var coreTemplate = this.taggedTemplate_chooseTemplateForTiddler.apply(this,arguments);
var theme = "", template = coreTemplate;
var parts = template.split(config.textPrimitives.sectionSeparator);
if (parts[1]) { theme = parts[0]; template = parts[1]; }
else theme = config.options.txtTheme || ""; // if theme is not specified
theme += config.textPrimitives.sectionSeparator;
// look for template using title as prefix
if (!store.getTaggedTiddlers(title).length) { // if tiddler is not a tag
if (store.getTiddlerText(theme+title+template))
return theme+title+template; // theme##TitleTemplate
if (store.getTiddlerText(title+template))
return title+template; // TitleTemplate
}
// look for templates using custom field value as prefix
var v = store.getValue(title,config.options.txtTemplateTweakFieldname);
if (store.getTiddlerText(theme+v+template))
return theme+v+template; // theme##valueTemplate
if (store.getTiddlerText(v+template))
return v+template; // valueTemplate
// look for template using tags as prefix
var tiddler = store.getTiddler(title);
if (!tiddler) return coreTemplate; // tiddler doesn't exist... use core result
for (i = 0; i < tiddler.tags.length; i++) {
var t = tiddler.tags[i]+template; // add tag prefix to template
var c = t.substr(0,1).toUpperCase()+t.substr(1); // capitalized for WikiWord title
if (store.getTiddlerText(theme+t)) { return theme+t; } // theme##tagTemplate
if (store.getTiddlerText(theme+c)) { return theme+c; } // theme##TagTemplate
if (store.getTiddlerText(t)) { return t; } // tagTemplate
if (store.getTiddlerText(c)) { return c; } // TagTemplate
}
// no match... use core result
return coreTemplate;
}
//}}}
/***
Пример кода:
{{{
config.commands.closeTiddler.text = "close";
config.commands.closeTiddler.tooltip = "Close this tiddler";
config.commands.closeOthers.text = "close others";
config.commands.closeOthers.tooltip = "Close all other tiddlers";
}}}
(возможно, стоит заменить текст на картинки -- для mobile)
***/
//{{{
//}}}
/***
|Description|Replaces toolbar buttons with icons|
|Source|Lewcid TW {{DDnc{add the link}}}|
|Tweaked by|Yakov Litvin|
|Version|2.0|
!!!Usage
For each command that you want to set an icon for, just add a line like the following into a tiddler tagged {{{systemConfig}}}, specifying the icon image location:
{{{
config.commands.editTiddler.imgLoc = "jump.bmp";
}}}
No need to edit ViewTemplate!
!!!To do:
* fix "close" SVG: [[it creates bad "padding"|"close" SVG wrong "padding"]]
** then fix padding for images (horizontal = vertical)
* extend so that ~SVGs can be used as icons as well (directly, not using base64); or find out how to convert [[an SVG|closeOthers SVG]] to base64
***/
//{{{
// based on TW 2.7.1 core code
config.macros.toolbar.createCommand = function(place,commandName,tiddler,className)
{
if(typeof commandName != "string")
for(var t in config.commands)
if(config.commands[t] == commandName)
commandName = t;
if(!(tiddler instanceof Tiddler) || (typeof commandName != "string"))
return
var command = config.commands[commandName];
if(command.isEnabled ? !command.isEnabled(tiddler) :
!this.isCommandEnabled(command,tiddler))
return;
var text = command.getText ? command.getText(tiddler) : this.getCommandText(command,tiddler);
var tooltip = command.getTooltip ? command.getTooltip(tiddler) : this.getCommandTooltip(command,tiddler);
var cmd = command.type == "popup" ? this.onClickPopup : this.onClickCommand;
var btn = createTiddlyButton(null,text,tooltip,cmd);
btn.setAttribute("commandName",commandName);
btn.setAttribute("tiddler",tiddler.title);
jQuery(btn).addClass("command_" + commandName);
if(className)
jQuery(btn).addClass(className);
// main change:
if(command.imgLoc) {
btn.innerHTML = "<img src='"+command.imgLoc+"'>";
jQuery(btn).addClass("imageWrappingLink");
}
place.appendChild(btn);
}
setStylesheet(".toolbarImg {vertical-align: middle; cursor:pointer;}\n"+
".imageWrappingLink {display: inline-block;}\n", "commandIconStyles");
// base64 png work:
//config.commands.jump.imgLoc= "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAuCAIAAADcLmxdAAAAtUlEQVRYhe3QSw7EIAwD0Nz/0nQ1/cxQYjuRppWcLdh5EOMBE/8GjGHEMe9BRGF6EBUB6DDi3Yj0vhAxwggjjDCCRwQ2AiKtCirWi9jbjPhCgElEILRFmsQXU6DLBfAFjet/2ybtXQ68Z15dd1ANt70VB5tNSgWHElkfs6Xa5+nf2yVAEcgCWUAg1msqAg5xt6wooBGgg+5kA6lDKRQyC4fYpsWmDr1KTp4p1ZJivmWM+MwjEBvNTi/A51SXaAAAAABJRU5ErkJggg==";
// base64 SVG work as well:
//config.commands.closeTiddler.imgLoc = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0IiBoZWlnaHQ9IjI0cHgiIGlkPSJMYXllcl8xIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0cHgiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxwYXRoIGQ9Ik0yMi4yNDUsNC4wMTVjMC4zMTMsMC4zMTMsMC4zMTMsMC44MjYsMCwxLjEzOWwtNi4yNzYsNi4yN2MtMC4zMTMsMC4zMTItMC4zMTMsMC44MjYsMCwxLjE0bDYuMjczLDYuMjcyICBjMC4zMTMsMC4zMTMsMC4zMTMsMC44MjYsMCwxLjE0bC0yLjI4NSwyLjI3N2MtMC4zMTQsMC4zMTItMC44MjgsMC4zMTItMS4xNDIsMGwtNi4yNzEtNi4yNzFjLTAuMzEzLTAuMzEzLTAuODI4LTAuMzEzLTEuMTQxLDAgIGwtNi4yNzYsNi4yNjdjLTAuMzEzLDAuMzEzLTAuODI4LDAuMzEzLTEuMTQxLDBsLTIuMjgyLTIuMjhjLTAuMzEzLTAuMzEzLTAuMzEzLTAuODI2LDAtMS4xNGw2LjI3OC02LjI2OSAgYzAuMzEzLTAuMzEyLDAuMzEzLTAuODI2LDAtMS4xNEwxLjcwOSw1LjE0N2MtMC4zMTQtMC4zMTMtMC4zMTQtMC44MjcsMC0xLjE0bDIuMjg0LTIuMjc4QzQuMzA4LDEuNDE3LDQuODIxLDEuNDE3LDUuMTM1LDEuNzMgIEwxMS40MDUsOGMwLjMxNCwwLjMxNCwwLjgyOCwwLjMxNCwxLjE0MSwwLjAwMWw2LjI3Ni02LjI2N2MwLjMxMi0wLjMxMiwwLjgyNi0wLjMxMiwxLjE0MSwwTDIyLjI0NSw0LjAxNXoiLz48L3N2Zz4=";
//}}}
/***
|Version|0.9.5|
|state|ready; stickToTheTop option needs more refinement; meta to be written|
!~ToDo
* add style sheet for better positioning of items inside menu (~left/right/center classes)
* refine sticky menu behaviour (see the code, especially "when a tiddler is opened on top" issue)
* check how this interacts with TiddlersBarPlugin
To edit: [[TopLineMenu]]
!Code
***/
//{{{
// menu generating handler; create a macro instead?
config.macros.topLineMenu = {
menuId: "topLineMenu",
tiddlerName: "TopLineMenu",
menuPlaceId: "displayArea",
beforeSelector: "#tiddlerDisplay",
stickToTheTop: true,
handler: function() {
if (document.getElementById(this.menuId))
return;
var place = document.getElementById(this.menuPlaceId);
var theMenu = document.createElement("div");
theMenu.setAttribute("id", this.menuId);
place.insertBefore(theMenu, place.firstChild);
wikify("<<tiddler [["+this.tiddlerName+"]]>>",theMenu);
if(this.stickToTheTop) {
theMenu.style.maxWidth = place.offsetWidth+"px";
//# make this adapt when a sidebar is hidden
var height = theMenu.offsetHeight;
//# update on this.tiddlerName content edit
jQuery(place).find(this.beforeSelector).css("margin-top",height+"px");
//# fix: when a tiddler is opened on top, this doesn't ensures tiddler's
// title is visible
// fix: with margins on startup theMenu was positioned
// to the top of tiddlerDisplay, not to the top of displayArea
jQuery(window).scroll();
//# set z-index to hover above CodeMirror editor
// may be of interest:
// - http://stackoverflow.com/questions/37849710/making-one-navbar-sticky-when-user-scrolls
}
},
init: function() {
if(!this.stickToTheTop) return;
jQuery(window).on("scroll",function(){
var menuElement = document.getElementById(config.macros.topLineMenu.menuId),
header = document.getElementsByClassName("header")[0],
headerBottom = header.offsetTop + header.offsetHeight - findScrollY(),
position = findScrollY() + Math.max(headerBottom,0);
menuElement.style.top = position+"px";
});
setStylesheet("#"+config.macros.topLineMenu.menuId+" {"+
"position:absolute;"+
"}","topLinePositionCSS")
}
};
// old-fashioned way to launch handler, copied from http://tiddlywiki.squize.org/#HoverMenuPlugin
window.old_restart_before_topLineMenu = restart;
restart = function() {
window.old_restart_before_topLineMenu();
config.macros.topLineMenu.handler();
};
// make TopLineMenu resistant to refreshing (refreshPageTemplate)
window.old_refreshPageTemplate_before_topLineMenu = refreshPageTemplate;
refreshPageTemplate = function(title) {
window.old_refreshPageTemplate_before_topLineMenu(title);
config.macros.topLineMenu.handler();
};
//}}}
<!--{{{-->
<div id='displayArea' role='main'>
<div id='messageArea'></div>
<div id='tiddlerDisplay'></div>
</div>
<!--<div id='footer' refresh='content' tiddler='SiteFooter'></div>-->
<!--}}}-->
[[StyleSheet]]
/*{{{*/
/* indicate visitor mode */
body { background-color: #ffffff; }
.tiddler {
padding: 0;
/*display: flex;
flex-direction: column;
min-height: 100vh;*/
}
*[tiddlyLink] { cursor: pointer }
/* .tiddlyLink { cursor: pointer } */
a:hover {
background-color: inherit;
}
a { cursor: pointer; }
h2 {
border: none;
}
#displayArea { position: relative; width: 100%; margin-left: 0; margin-right: 0; margin-top: 0; }
/* header adjustments for env */
div[tiddler="Окружающий мир"] #course-header * { display: none; }
div[tiddler="Окружающий мир"] #course-header h2 { display: block; }
/* links' style adjustments */
#navigation p {text-align: center; font-size: 20px; line-height: 24px; margin: 0;}
#navigation h2 {
text-align: left;
font-size: 24px;
font-weight: 600;
line-height: 24px;
color: #1f98ae;
margin: 0;
padding-left: 16px;
}
#navigation h2 a {
font-size: 24px;
line-height: 24px;
color: #1f98ae;
}
#navigation a { padding: 25px 0 2px !important; }
#navigation .nav-link { border-bottom: thin solid rgba(0,0,0,0.2); }
#navigation .nav-link:hover {
background-color: transparent !important; color: #00d5e0; border-bottom: 1px solid rgba(0,213,224,0.3);
}
div[tiddler="Окружающий мир. 1й класс"] #navigation a[tiddler="Окружающий мир. 1й класс"],
div[tiddler="Окружающий мир. 2 класс"] #navigation a[tiddler="Окружающий мир. 2 класс"],
div[tiddler="Окружающий мир. 3 класс"] #navigation a[tiddler="Окружающий мир. 3 класс"],
div[tiddler="Окружающий мир. 4 класс"] #navigation a[tiddler="Окружающий мир. 4 класс"] {
font-weight: bold;
border-bottom: none;
cursor: default;
pointer-events: none;
}
/* lesson */
.unitStep {
width: 100%;
}
.lessonNavigation {
padding-top: 9px;
padding-bottom: 5px;
border-bottom: 2px solid rgb(233,233,233);
}
.lessonNavigation a {
display: inline-block;
vertical-align: middle;
color: #198C99;
font-family: open-sans, sans-serif; font-weight: normal; font-size: 16px;
margin-left: 0.55em; margin-right:0.55em;
padding-left: 0.2em; padding-right: 0.2em;
cursor: pointer;
}
.lessonNavigation .currentStep {
padding-top: 0.2em; /*padding-bottom: 0.2em;*/
background-color: #AEF0FF; border-radius: 50%;
}
.lessonNavigation .currentStep:hover {
background-color: #AEF0FF;
}
.lessonNavigation .noLinkToContents { padding-left: 3em; }
.lessonNavigation .noLinkToContents,
.lessonNavigation .noLink { cursor: default; }
/*.lessonNavigation .noLinkToContents:hover { color: black; }*/
.lessonNavigation div { display: inline-block; }
/* the magic to enable vertical align (see http://christopheraue.net/2014/02/20/centering-with-vertical-align-middle/) */
.lessonNavigation { /*height: 30px;*/ }
.lessonNavigation a:after { vertical-align: middle; display: inline-block; height: 100%; content: ''; }
.lessonNavigation a:hover { background-color: white; color: #198C99; }
.currentStep div { border-radius: 50%; background-color: #AEF0FF; }
.unitStep {
margin-top: 10px; margin-bottom: 10px; /* temporal solution until this is set by the plugin */
}
.goPrevContainer, .unitStepContentContainer, .goNextContainer {
display: inline-block;
content: ""; vertical-align: middle; /* trick from http://codepen.io/edge0703/pen/iHJuA */
}
.goPrevContainer, .goNextContainer {
width: calc(50% - 512px);/* calc version behaves bad on zoom in *//*15%;*/
height: 100%;
text-align: center;
line-height: 1em;
}
.goPrevContainer:hover, .goNextContainer:hover {
margin-top: calc(1em + 8px);
}
.goPrevContainer:hover:after {
content: "Назад"; display: block; margin-right: 4px;
margin-top: 8px;
}
.goNextContainer:hover:after {
content: "Дальше"; display: block; margin-left: 4px;
margin-top: 8px;
}
.goPrevContainer > div, .goNextContainer > div {
display: inline-block;
width: 80px; height: 80px;
}
.backContainer, .forthContainer { cursor: pointer; }
.backward, .forward {
margin-top: 16px;
display: inline-block;
/* vertical-align: middle;*/
}
.backward { margin-right: 4px; }
.forward { margin-left: 4px; }
/*.backward:before, .forward:before {
display: inline-block; height: 100%;
content: ''; vertical-align: middle;
}*/
.goPrevContainer > div:hover, .goNextContainer > div:hover {
background-color: #eeeeee;
border-radius: 50%;
}
.unitStepContentContainer {
width: 1024px;/*70%;*/
}
.contentIframe, .contentImage {
width: 100%;
}
.unitStepFooter {
border-top: 2px solid rgb(233,233,233);
}
/* course */
.courseTopLineMenu, .courseHeader, .courseTableOfContents { padding-left: 40px; }
.courseTopLineMenu {
min-height: 70px;
}
.courseTopLineMenu a:hover {
background-color: inherit;
}
.courseTopLineMenu .svg {
height: 27px;
display: inline-block;
/* vertical-align: middle;*/
}
/*.courseTopLineMenu .svg:after { vertical-align: middle; display: inline-block; height: 100%; content: ''; }*/
.courseHeader {
background-color: #77cc77; color: white;
background-repeat: no-repeat;
background-size: cover;
}
#course-header { background-size: cover !important; }
.courseTitle { font-size: 3em; }
div[tiddler="Химия. Материалы для самостоятельного обучения"]
#course-header { background-color: rgba(0,0,0,0.4); }
div[tiddler="Олимпиадная математика"]
#course-name { margin-top: 10px; }
.courseContent {}
.courseTableOfContents {
display: table-cell; width: 25%;
min-height: 1em; background-color: #dddddd;
}
.lesson-name {
cursor: pointer;
}
.lesson-name.h4 {line-height: 19px;}
/* indent-0 inherits padding-left from .lesson-name */
.indent-1 { padding-left: 45px !important; }
.indent-2 { padding-left: 60px !important; }
.h2 {
cursor: default; /* this is until .h2 is not used in accordeon */
}
.h2:hover {
text-decoration: none; /* this is until .h2 is not used in accordeon */
}
.mute, .mute:hover {
color: #999999 !important;
cursor: default;
}
.courseLessonTableOfContents {
display: table-cell; width: 75%;
min-height: 1em;
padding-top: 100px;
padding-left: 50px;
}
.lessonTitle {
font-size: 3em;
}
.startLessonButton {
display: inline-block;
padding: 0.7em 1em;
margin: 1em 0;
background-color: #1F98AE;
color: white;
border-radius: 0.5em;
}
.chem_page_preview { width:50%; }
.startLessonButton:hover {
background-color: #006F82;
}
.lessonStepInCourseContents {
height: 45px;
color: rgb(123, 133, 135);
border-bottom: 1px solid rgb(222, 222, 222);
}
.lessonStepInCourseContents div {
display: inline-block;
vertical-align: middle;
}
.lessonStepInCourseContents div:before {
display: inline-block; height: 100%; vertical-align: middle; content: '';
}
.lessonStepNumber {
width: 2em;
text-align: center;
font-weight: bold;
}
.attachment-icon { width: 39px; height: 24px; }
.pdf-attachment-icon { width: 37px; height: 18px; }
.arrow-attachment-icon {
width: 11px;
height: 14px;
margin: -3px 2px 0 0px;
}
ol#lesson-steps .last-lesson-label {
padding-left: 0px;
/*color: #394B4D;*/
}
ol#lesson-steps {
margin-bottom: 46px;
}
ul.summary_list {
font-size: 0;
list-style-type: none;
display: flex;
flex-wrap: wrap;
padding: 0;
}
ul.summary_list li {
display: inline-block;
margin: 10px 16px 0 0;
font-size: 17px;
}
ul.summary_list li img{
-webkit-box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.2);
-moz-box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.2);
box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.2);
width: 147px;
height: 104px;
}
.download_content {
margin-bottom: 8px;
margin-top: 8px;
font-size: 17px;
line-height: 1.2em;
}
.download_links {
margin-bottom: 36px;
margin-top: 8px;
font-size: 12px;
}
.download_links_last {
margin-bottom: 2px;
}
.download_links a {
display: inline-block;
/*min-width: 120px;*/
font-size: 12px;
line-height: 17px;
font-family: open-sans, sans-serif;
color: white;
background-color: #1f98ae;
border: 0;
border-radius: 4px;
margin-right: 12px;
padding: 6px 10px;
}
.download_links a:hover {
background-color: #FFE56C;
color: white;
}
.download_links a:focus {
color: white;
}
.download_links .file-size {
font-size: 12px;
}
.download_content_header {
margin: 60px 0 36px;
font-size: 22px;
line-height: 1.2em;
padding-left: 0px;
color: #394B4D;
font-weight: 800;
border: none;
}
.download_content span {
padding-left: 0px;
/*border-bottom: 1px solid rgba(0,0,0,0.1);*/
color: #394B4D;
line-height: 1.2em;
margin-bottom: 5px;
font-size: 17px;
}
/*
.download_content a:hover span.download_content_label {
border-bottom: 1px solid #00d5e0;
}
*/
.download_content a {
text-decoration: none !important;
}
.download_content small {
text-transform: uppercase;
font-size: 0.6em;
border: none !important;
}
span.file_extension {
text-transform: uppercase;
margin: 0 4px;
letter-spacing: 1px;
}
/*
span.file_extension {
letter-spacing: 0.5px;
text-transform: uppercase;
border: 1px solid #92cad7;
font-size: 10px;
font-weight: bold;
padding: 2px 4px;
border-radius: 4px;
margin: 0 8px 0 6px;
color: #2e93ad;
font-family: open-sans, sans-serif;
position: relative;
top: -1px;
}
*/
/*
span.file-size {
color: #1f98ae;
border-bottom: none;
font-size: 15px;
}
*/
div[tiddler="Окружающий мир. 1й класс"] #lessons-list div:last-child {
margin-top: 25px;
}
div[tiddler="Окружающий мир. 1й класс"] #lessons-list div:last-child a {
border-bottom: none;
}
div[tiddler="Окружающий мир. 1й класс"] #lessons-list div:last-child a:hover {
border-bottom: none;
}
#lesson-content table {
font-size: 18px; /* for paragraphs is set inside course.css */
margin-bottom: 0.5em;
}
#lesson-content table td {
padding-bottom: 1em;
padding-right: 1em;
vertical-align: top;
}
#lesson-content table.logos td {
vertical-align: middle;
}
.courseFooter {
min-height: 1em; background-color: black; color: white;
}
.taskCatalogue td {
vertical-align: top;
}
/*}}}*/
|PageTemplate|WebPageTemplate|
|ViewTemplate|WebViewTemplate|
|StyleSheet|WebStyleSheet|
<!--{{{-->
<div class='toolbar' role='navigation' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></div>
<div class='title' macro='view title'></div>
<div class='subtitle'><span macro='view modifier link'></span>, <span macro='view modified date'></span> (<span macro='message views.wikified.createdPrompt'></span> <span macro='view created date'></span>)</div>
<div class='tagging' macro='tagging'></div>
<div class='tagged' macro='tags'></div>
<div class='viewer' macro='view text wikified'></div>
<div class='tagClear'></div>
<!--}}}-->
/***
|''Name:''|YourSearchPlugin|
|''Version:''|2.1.6 (2012-04-19)|
|''Summary:''|Search your TiddlyWiki with advanced search features such as result lists, tiddler preview, result ranking, search filters, combined searches and many more.|
|''Source:''|http://tiddlywiki.abego-software.de/#YourSearchPlugin|
|''~CoreVersion:''|2.1|
|''Requires:''|~SavingWithRenamingFix|
|~|~SavingWithRenamingFix is not required, but if is used, should be launched first|
|''Twitter:''|[[@abego|https://twitter.com/#!/abego]]|
|''GitHub:''|https://github.com/abego/YourSearchPlugin|
|''Author:''|UdoBorkowski (ub [at] abego-software [dot] de)|
|''License:''|[[BSD open source license|http://www.abego-software.de/legal/apl-v10.html]]|
!About ~YourSearch
~YourSearch gives you a bunch of new features to simplify and speed up your daily searches in ~TiddlyWiki. It seamlessly integrates into the standard ~TiddlyWiki search: just start typing into the 'search' field and explore!
For more information see [[Help|YourSearch Help]].
!Source Code
***/
/***
This plugin's source code is compressed (and hidden).
Use this [[link|https://github.com/abego/YourSearchPlugin/blob/master/src/main/js/YourSearchPlugin-src.js]] to get the readable source code.
***/
///%
if(!version.extensions.YourSearchPlugin){version.extensions.YourSearchPlugin={major:2,minor:1,revision:6,source:"http://tiddlywiki.abego-software.de/#YourSearchPlugin",licence:"[[BSD open source license (abego Software)|http://www.abego-software.de/legal/apl-v10.html]]",copyright:"Copyright (c) abego Software GmbH, 2005-2012 (www.abego-software.de)"};if(!window.abego){window.abego={}}if(!Array.forEach){Array.forEach=function(c,e,d){for(var b=0,a=c.length;b<a;b++){e.call(d,c[b],b,c)}};Array.prototype.forEach=function(d,c){for(var b=0,a=this.length;b<a;b++){d.call(c,this[b],b,this)}}}abego.toInt=function(b,a){if(!b){return a}var c=parseInt(b);return(c==NaN)?a:c};abego.createEllipsis=function(a){var b=createTiddlyElement(a,"span");b.innerHTML="…"};abego.shallowCopy=function(b){if(!b){return b}var a={};for(var c in b){a[c]=b[c]}return a};abego.copyOptions=function(a){return !a?{}:abego.shallowCopy(a)};abego.countStrings=function(d,c){if(!c){return 0}var a=c.length;var f=0;var e=0;while(true){var b=d.indexOf(c,e);if(b<0){return f}f++;e=b+a}return f};abego.getBracedText=function(j,e,a){if(!e){e=0}var k=/\{([^\}]*)\}/gm;k.lastIndex=e;var d=k.exec(j);if(d){var l=d[1];var b=abego.countStrings(l,"{");if(!b){if(a){a.lastIndex=k.lastIndex}return l}var g=j.length;for(var f=k.lastIndex;f<g&&b;f++){var h=j.charAt(f);if(h=="{"){b++}else{if(h=="}"){b--}}}if(!b){if(a){a.lastIndex=f-1}return j.substring(d.index+1,f-1)}}};abego.select=function(d,c,b,a){if(!a){a=[]}d.forEach(function(e){if(c.call(b,e)){a.push(e)}});return a};abego.consumeEvent=function(a){if(a.stopPropagation){a.stopPropagation()}if(a.preventDefault){a.preventDefault()}a.cancelBubble=true;a.returnValue=true};abego.TiddlerFilterTerm=function(d,b){if(!b){b={}}var c=d;if(!b.textIsRegExp){c=d.escapeRegExp();if(b.fullWordMatch){c="\\b"+c+"\\b"}}var a=new RegExp(c,"m"+(b.caseSensitive?"":"i"));this.tester=new abego.MultiFieldRegExpTester(a,b.fields,b.withExtendedFields)};abego.TiddlerFilterTerm.prototype.test=function(a){return this.tester.test(a)};abego.parseNewTiddlerCommandLine=function(c){var a=/(.*?)\.(?:\s+|$)([^#]*)(#.*)?/.exec(c);if(!a){a=/([^#]*)()(#.*)?/.exec(c)}if(a){var d;if(a[3]){var b=a[3].replace(/#/g,"");d=b.parseParams("tag")}else{d=[[]]}var e=a[2]?a[2].trim():"";d.push({name:"text",value:e});d[0].text=[e];return{title:a[1].trim(),params:d}}else{return{title:c.trim(),params:[[]]}}};abego.parseTiddlerFilterTerm=function(queryText,offset,options){var re=/\s*(?:(?:\{([^\}]*)\})|(?:(=)|([#%!])|(?:(\w+)\s*\:(?!\/\/))|(?:(?:("(?:(?:\\")|[^"])+")|(?:\/((?:(?:\\\/)|[^\/])+)\/)|(\w+\:\/\/[^\s]+)|([^\s\)\-\"]+)))))/mg;var shortCuts={"!":"title","%":"text","#":"tags"};var fieldNames={};var fullWordMatch=false;re.lastIndex=offset;while(true){var i=re.lastIndex;var m=re.exec(queryText);if(!m||m.index!=i){throw"Word or String literal expected"}if(m[1]){var lastIndexRef={};var code=abego.getBracedText(queryText,0,lastIndexRef);if(!code){throw"Invalid {...} syntax"}var f=Function("tiddler","return ("+code+");");return{func:f,lastIndex:lastIndexRef.lastIndex,markRE:null}}if(m[2]){fullWordMatch=true}else{if(m[3]){fieldNames[shortCuts[m[3]]]=1}else{if(m[4]){fieldNames[m[4]]=1}else{var textIsRegExp=m[6];var text=m[5]?window.eval(m[5]):m[6]?m[6]:m[7]?m[7]:m[8];options=abego.copyOptions(options);options.fullWordMatch=fullWordMatch;options.textIsRegExp=textIsRegExp;var fields=[];for(var n in fieldNames){fields.push(n)}if(fields.length==0){options.fields=options.defaultFields}else{options.fields=fields;options.withExtendedFields=false}var term=new abego.TiddlerFilterTerm(text,options);var markREText=textIsRegExp?text:text.escapeRegExp();if(markREText&&fullWordMatch){markREText="\\b"+markREText+"\\b"}return{func:function(tiddler){return term.test(tiddler)},lastIndex:re.lastIndex,markRE:markREText?"(?:"+markREText+")":null}}}}}};abego.BoolExp=function(i,c,j){this.s=i;var h=j&&j.defaultOperationIs_OR;var e=/\s*\)/g;var f=/\s*(?:(and|\&\&)|(or|\|\|))/gi;var b=/\s*(\-|not)?(\s*\()?/gi;var a;var d=function(p){b.lastIndex=p;var l=b.exec(i);var o=false;var k=null;if(l&&l.index==p){p+=l[0].length;o=l[1];if(l[2]){var n=a(p);e.lastIndex=n.lastIndex;if(!e.exec(i)){throw"Missing ')'"}k={func:n.func,lastIndex:e.lastIndex,markRE:n.markRE}}}if(!k){k=c(i,p,j)}if(o){k.func=(function(m){return function(q){return !m(q)}})(k.func);k.markRE=null}return k};a=function(s){var n=d(s);while(true){var p=n.lastIndex;f.lastIndex=p;var k=f.exec(i);var o;var q;if(k&&k.index==p){o=!k[1];q=d(f.lastIndex)}else{try{q=d(p)}catch(r){return n}o=h}n.func=(function(t,m,l){return l?function(u){return t(u)||m(u)}:function(u){return t(u)&&m(u)}})(n.func,q.func,o);n.lastIndex=q.lastIndex;if(!n.markRE){n.markRE=q.markRE}else{if(q.markRE){n.markRE=n.markRE+"|"+q.markRE}}}};var g=a(0);this.evalFunc=g.func;if(g.markRE){this.markRegExp=new RegExp(g.markRE,j.caseSensitive?"mg":"img")}};abego.BoolExp.prototype.exec=function(){return this.evalFunc.apply(this,arguments)};abego.BoolExp.prototype.getMarkRegExp=function(){return this.markRegExp};abego.BoolExp.prototype.toString=function(){return this.s};abego.MultiFieldRegExpTester=function(b,a,c){this.re=b;this.fields=a?a:["title","text","tags"];this.withExtendedFields=c};abego.MultiFieldRegExpTester.prototype.test=function(b){var d=this.re;for(var a=0;a<this.fields.length;a++){var c=store.getValue(b,this.fields[a]);if(typeof c=="string"&&d.test(c)){return this.fields[a]}}if(this.withExtendedFields){return store.forEachField(b,function(e,g,f){return typeof f=="string"&&d.test(f)?g:null},true)}return null};abego.TiddlerQuery=function(b,a,d,c,e){if(d){this.regExp=new RegExp(b,a?"mg":"img");this.tester=new abego.MultiFieldRegExpTester(this.regExp,c,e)}else{this.expr=new abego.BoolExp(b,abego.parseTiddlerFilterTerm,{defaultFields:c,caseSensitive:a,withExtendedFields:e})}this.getQueryText=function(){return b};this.getUseRegExp=function(){return d};this.getCaseSensitive=function(){return a};this.getDefaultFields=function(){return c};this.getWithExtendedFields=function(){return e}};abego.TiddlerQuery.prototype.test=function(a){if(!a){return false}if(this.regExp){return this.tester.test(a)}return this.expr.exec(a)};abego.TiddlerQuery.prototype.filter=function(a){return abego.select(a,this.test,this)};abego.TiddlerQuery.prototype.getMarkRegExp=function(){if(this.regExp){return"".search(this.regExp)>=0?null:this.regExp}return this.expr.getMarkRegExp()};abego.TiddlerQuery.prototype.toString=function(){return(this.regExp?this.regExp:this.expr).toString()};abego.PageWiseRenderer=function(){this.firstIndexOnPage=0};merge(abego.PageWiseRenderer.prototype,{setItems:function(a){this.items=a;this.setFirstIndexOnPage(0)},getMaxPagesInNavigation:function(){return 10},getItemsCount:function(a){return this.items?this.items.length:0},getCurrentPageIndex:function(){return Math.floor(this.firstIndexOnPage/this.getItemsPerPage())},getLastPageIndex:function(){return Math.floor((this.getItemsCount()-1)/this.getItemsPerPage())},setFirstIndexOnPage:function(a){this.firstIndexOnPage=Math.min(Math.max(0,a),this.getItemsCount()-1)},getFirstIndexOnPage:function(){this.firstIndexOnPage=Math.floor(this.firstIndexOnPage/this.getItemsPerPage())*this.getItemsPerPage();return this.firstIndexOnPage},getLastIndexOnPage:function(){return Math.min(this.getFirstIndexOnPage()+this.getItemsPerPage()-1,this.getItemsCount()-1)},onPageChanged:function(a,b){},renderPage:function(a){if(a.beginRendering){a.beginRendering(this)}try{if(this.getItemsCount()){var d=this.getLastIndexOnPage();var c=-1;for(var b=this.getFirstIndexOnPage();b<=d;b++){c++;a.render(this,this.items[b],b,c)}}}finally{if(a.endRendering){a.endRendering(this)}}},addPageNavigation:function(c){if(!this.getItemsCount()){return}var k=this;var g=function(n){if(!n){n=window.event}abego.consumeEvent(n);var i=abego.toInt(this.getAttribute("page"),0);var m=k.getCurrentPageIndex();if(i==m){return}var l=i*k.getItemsPerPage();k.setFirstIndexOnPage(l);k.onPageChanged(i,m)};var e;var h=this.getCurrentPageIndex();var f=this.getLastPageIndex();if(h>0){e=createTiddlyButton(c,"Previous","Go to previous page (Shortcut: Alt-'<')",g,"prev");e.setAttribute("page",(h-1).toString());e.setAttribute("accessKey","<")}for(var d=-this.getMaxPagesInNavigation();d<this.getMaxPagesInNavigation();d++){var b=h+d;if(b<0){continue}if(b>f){break}var a=(d+h+1).toString();var j=b==h?"currentPage":"otherPage";e=createTiddlyButton(c,a,"Go to page %0".format([a]),g,j);e.setAttribute("page",(b).toString())}if(h<f){e=createTiddlyButton(c,"Next","Go to next page (Shortcut: Alt-'>')",g,"next");e.setAttribute("page",(h+1).toString());e.setAttribute("accessKey",">")}}});abego.LimitedTextRenderer=function(){var l=40;var c=4;var k=function(p,z,v){var q=p.length;if(q==0){p.push({start:z,end:v});return}var u=0;for(;u<q;u++){var w=p[u];if(w.start<=v&&z<=w.end){var o;var s=u+1;for(;s<q;s++){o=p[s];if(o.start>v||z>w.end){break}}var x=z;var y=v;for(var t=u;t<s;t++){o=p[t];x=Math.min(x,o.start);y=Math.max(y,o.end)}p.splice(u,s-u,{start:x,end:y});return}if(w.start>v){break}}p.splice(u,0,{start:z,end:v})};var d=function(n){var q=0;for(var p=0;p<n.length;p++){var o=n[p];q+=o.end-o.start}return q};var b=function(n){return(n>="a"&&n<="z")||(n>="A"&&n<="Z")||n=="_"};var f=function(p,r){if(!b(p[r])){return null}for(var o=r-1;o>=0&&b(p[o]);o--){}var q=o+1;var t=p.length;for(o=r+1;o<t&&b(p[o]);o++){}return{start:q,end:o}};var a=function(o,q,p){var n;if(p){n=f(o,q)}else{if(q<=0){return q}n=f(o,q-1)}if(!n){return q}if(p){if(n.start>=q-c){return n.start}if(n.end<=q+c){return n.end}}else{if(n.end<=q+c){return n.end}if(n.start>=q-c){return n.start}}return q};var j=function(r,q){var n=[];if(q){var u=0;do{q.lastIndex=u;var o=q.exec(r);if(o){if(u<o.index){var p=r.substring(u,o.index);n.push({text:p})}n.push({text:o[0],isMatch:true});u=o.index+o[0].length}else{n.push({text:r.substr(u)});break}}while(true)}else{n.push({text:r})}return n};var i=function(p){var n=0;for(var o=0;o<p.length;o++){if(p[o].isMatch){n++}}return n};var h=function(v,u,q,t,o){var w=Math.max(Math.floor(o/(t+1)),l);var n=Math.max(w-(q-u),0);var r=Math.min(Math.floor(q+n/3),v.length);var p=Math.max(r-w,0);p=a(v,p,true);r=a(v,r,false);return{start:p,end:r}};var m=function(r,y,o){var n=[];var v=i(r);var u=0;for(var p=0;p<r.length;p++){var x=r[p];var w=x.text;if(x.isMatch){var q=h(y,u,u+w.length,v,o);k(n,q.start,q.end)}u+=w.length}return n};var g=function(t,p,o){var n=o-d(p);while(n>0){if(p.length==0){k(p,0,a(t,o,false));return}else{var q=p[0];var v;var r;if(q.start==0){v=q.end;if(p.length>1){r=p[1].start}else{k(p,v,a(t,v+n,false));return}}else{v=0;r=q.start}var u=Math.min(r,v+n);k(p,v,u);n-=(u-v)}}};var e=function(p,x,w,n,o){if(n.length==0){return}var u=function(z,I,D,F,C){var H;var G;var E=0;var B=0;var A=0;for(;B<D.length;B++){H=D[B];G=H.text;if(F<E+G.length){A=F-E;break}E+=G.length}var y=C-F;for(;B<D.length&&y>0;B++){H=D[B];G=H.text.substr(A);A=0;if(G.length>y){G=G.substr(0,y)}if(H.isMatch){createTiddlyElement(z,"span",null,"marked",G)}else{createTiddlyText(z,G)}y-=G.length}if(C<I.length){abego.createEllipsis(z)}};if(n[0].start>0){abego.createEllipsis(p)}var q=o;for(var r=0;r<n.length&&q>0;r++){var t=n[r];var v=Math.min(t.end-t.start,q);u(p,x,w,t.start,t.start+v);q-=v}};this.render=function(p,q,o,t){if(q.length<o){o=q.length}var r=j(q,t);var n=m(r,q,o);g(q,n,o);e(p,q,r,n,o)}};(function(){function alertAndThrow(msg){alert(msg);throw msg}if(version.major<2||(version.major==2&&version.minor<1)){alertAndThrow("YourSearchPlugin requires TiddlyWiki 2.1 or newer.\n\nCheck the archive for YourSearch plugins\nsupporting older versions of TiddlyWiki.\n\nArchive: http://tiddlywiki.abego-software.de/archive")}abego.YourSearch={};var lastResults=undefined;var lastQuery=undefined;var setLastResults=function(array){lastResults=array};var getLastResults=function(){return lastResults?lastResults:[]};var getLastResultsCount=function(){return lastResults?lastResults.length:0};var matchInTitleWeight=4;var precisionInTitleWeight=10;var matchInTagsWeight=2;var getMatchCount=function(s,re){var m=s.match(re);return m?m.length:0};var standardRankFunction=function(tiddler,query){var markRE=query.getMarkRegExp();if(!markRE){return 1}var matchesInTitle=tiddler.title.match(markRE);var nMatchesInTitle=matchesInTitle?matchesInTitle.length:0;var nMatchesInTags=getMatchCount(tiddler.getTags(),markRE);var lengthOfMatchesInTitle=matchesInTitle?matchesInTitle.join("").length:0;var precisionInTitle=tiddler.title.length>0?lengthOfMatchesInTitle/tiddler.title.length:0;var rank=nMatchesInTitle*matchInTitleWeight+nMatchesInTags*matchInTagsWeight+precisionInTitle*precisionInTitleWeight+1;return rank};var findMatches=function(store,searchText,caseSensitive,useRegExp,sortField,excludeTag){lastQuery=null;var candidates=store.reverseLookup("tags",excludeTag,false);try{var defaultFields=[];if(config.options.chkSearchInTitle){defaultFields.push("title")}if(config.options.chkSearchInText){defaultFields.push("text")}if(config.options.chkSearchInTags){defaultFields.push("tags")}lastQuery=new abego.TiddlerQuery(searchText,caseSensitive,useRegExp,defaultFields,config.options.chkSearchExtendedFields)}catch(e){return[]}var results=lastQuery.filter(candidates);var rankFunction=abego.YourSearch.getRankFunction();for(var i=0;i<results.length;i++){var tiddler=results[i];var rank=rankFunction(tiddler,lastQuery);tiddler.searchRank=rank}if(!sortField){sortField="title"}var sortFunction=function(a,b){var searchRankDiff=a.searchRank-b.searchRank;if(searchRankDiff==0){if(a[sortField]==b[sortField]){return(0)}else{return(a[sortField]<b[sortField])?-1:+1}}else{return(searchRankDiff>0)?-1:+1}};results.sort(sortFunction);return results};var maxCharsInTitle=80;var maxCharsInTags=50;var maxCharsInText=250;var maxCharsInField=50;var itemsPerPageDefault=25;var itemsPerPageWithPreviewDefault=10;var yourSearchResultID="yourSearchResult";var yourSearchResultItemsID="yourSearchResultItems";var lastSearchText=null;var resultElement=null;var searchInputField=null;var searchButton=null;var lastNewTiddlerButton=null;var initStylesheet=function(){if(version.extensions.YourSearchPlugin.styleSheetInited){return}version.extensions.YourSearchPlugin.styleSheetInited=true;setStylesheet(store.getTiddlerText("YourSearchStyleSheet"),"yourSearch")};var isResultOpen=function(){return resultElement!=null&&resultElement.parentNode==document.body};var closeResult=function(){if(isResultOpen()){document.body.removeChild(resultElement)}};var closeResultAndDisplayTiddler=function(e){closeResult();var title=this.getAttribute("tiddlyLink");if(title){var withHilite=this.getAttribute("withHilite");var oldHighlightHack=highlightHack;if(withHilite&&withHilite=="true"&&lastQuery){highlightHack=lastQuery.getMarkRegExp()}story.displayTiddler(this,title);highlightHack=oldHighlightHack}return(false)};var adjustResultPositionAndSize=function(){if(!searchInputField){return}var root=searchInputField;var rootLeft=findPosX(root);var rootTop=findPosY(root);var rootHeight=root.offsetHeight;var popupLeft=rootLeft;var popupTop=rootTop+rootHeight;var winWidth=findWindowWidth();if(winWidth<resultElement.offsetWidth){resultElement.style.width=(winWidth-100)+"px";winWidth=findWindowWidth()}var popupWidth=resultElement.offsetWidth;if(popupLeft+popupWidth>winWidth){popupLeft=winWidth-popupWidth-30}if(popupLeft<0){popupLeft=0}resultElement.style.left=popupLeft+"px";resultElement.style.top=popupTop+"px";resultElement.style.display="block"};var scrollVisible=function(){if(resultElement){window.scrollTo(0,ensureVisible(resultElement))}if(searchInputField){window.scrollTo(0,ensureVisible(searchInputField))}};var ensureResultIsDisplayedNicely=function(){adjustResultPositionAndSize();scrollVisible()};var indexInPage=undefined;var currentTiddler=undefined;var pager=new abego.PageWiseRenderer();var MyItemRenderer=function(parent){this.itemHtml=store.getTiddlerText("YourSearchItemTemplate");if(!this.itemHtml){alertAndThrow("YourSearchItemTemplate not found")}this.place=document.getElementById(yourSearchResultItemsID);if(!this.place){this.place=createTiddlyElement(parent,"div",yourSearchResultItemsID)}};merge(MyItemRenderer.prototype,{render:function(pager,object,index,indexOnPage){indexInPage=indexOnPage;currentTiddler=object;var item=createTiddlyElement(this.place,"div",null,"yourSearchItem");item.innerHTML=this.itemHtml;applyHtmlMacros(item,null);refreshElements(item,null)},endRendering:function(pager){currentTiddler=null}});var refreshResult=function(){if(!resultElement||!searchInputField){return}var html=store.getTiddlerText("YourSearchResultTemplate");if(!html){html="<b>Tiddler YourSearchResultTemplate not found</b>"}resultElement.innerHTML=html;applyHtmlMacros(resultElement,null);refreshElements(resultElement,null);var itemRenderer=new MyItemRenderer(resultElement);pager.renderPage(itemRenderer);ensureResultIsDisplayedNicely()};pager.getItemsPerPage=function(){var n=(config.options.chkPreviewText)?abego.toInt(config.options.txtItemsPerPageWithPreview,itemsPerPageWithPreviewDefault):abego.toInt(config.options.txtItemsPerPage,itemsPerPageDefault);return(n>0)?n:1};pager.onPageChanged=function(){refreshResult()};var reopenResultIfApplicable=function(){if(searchInputField==null||!config.options.chkUseYourSearch){return}if((searchInputField.value==lastSearchText)&&lastSearchText&&!isResultOpen()){if(resultElement&&(resultElement.parentNode!=document.body)){document.body.appendChild(resultElement);ensureResultIsDisplayedNicely()}else{abego.YourSearch.onShowResult(true)}}};var invalidateResult=function(){closeResult();resultElement=null;lastSearchText=null};var isDescendantOrSelf=function(self,e){while(e!=null){if(self==e){return true}e=e.parentNode}return false};var onDocumentClick=function(e){if(e.target==searchInputField){return}if(e.target==searchButton){return}if(resultElement&&isDescendantOrSelf(resultElement,e.target)){return}closeResult()};var onDocumentKeyup=function(e){if(e.keyCode==27){closeResult()}};addEvent(document,"click",onDocumentClick);addEvent(document,"keyup",onDocumentKeyup);var myStorySearch=function(text,useCaseSensitive,useRegExp){lastSearchText=text;setLastResults(findMatches(store,text,useCaseSensitive,useRegExp,"title","excludeSearch"));abego.YourSearch.onShowResult()};var myMacroSearchHandler=function(place,macroName,params,wikifier,paramString,tiddler){initStylesheet();lastSearchText="";var searchTimeout=null;var doSearch=function(txt){if(config.options.chkUseYourSearch){myStorySearch(txt.value,config.options.chkCaseSensitiveSearch,config.options.chkRegExpSearch)}else{story.search(txt.value,config.options.chkCaseSensitiveSearch,config.options.chkRegExpSearch)}lastSearchText=txt.value};var clickHandler=function(e){doSearch(searchInputField);return false};var keyHandler=function(e){if(!e){e=window.event}searchInputField=this;switch(e.keyCode){case 13:if(e.ctrlKey&&lastNewTiddlerButton&&isResultOpen()){lastNewTiddlerButton.onclick.apply(lastNewTiddlerButton,[e])}else{doSearch(this)}break;case 27:if(isResultOpen()){closeResult()}else{this.value="";clearMessage()}break}if(String.fromCharCode(e.keyCode)==this.accessKey||e.altKey){reopenResultIfApplicable()}if(this.value.length<3&&searchTimeout){clearTimeout(searchTimeout)}if(this.value.length>2){if(this.value!=lastSearchText){if(!config.options.chkUseYourSearch||config.options.chkSearchAsYouType){if(searchTimeout){clearTimeout(searchTimeout)}var txt=this;searchTimeout=setTimeout(function(){doSearch(txt)},500)}}else{if(searchTimeout){clearTimeout(searchTimeout)}}}if(this.value.length==0){closeResult()}};var focusHandler=function(e){this.select();clearMessage();reopenResultIfApplicable()};var args=paramString.parseParams("list",null,true);var buttonAtRight=getFlag(args,"buttonAtRight");var sizeTextbox=getParam(args,"sizeTextbox",this.sizeTextbox);var txt=createTiddlyElement(null,"input",null,"txtOptionInput searchField",null);if(params[0]){txt.value=params[0]}txt.onkeyup=keyHandler;txt.onfocus=focusHandler;txt.setAttribute("size",sizeTextbox);txt.setAttribute("accessKey",this.accessKey);txt.setAttribute("autocomplete","off");if(config.browser.isSafari){txt.setAttribute("type","search");txt.setAttribute("results","5")}else{if(!config.browser.isIE){txt.setAttribute("type","text")}}var btn=createTiddlyButton(null,this.label,this.prompt,clickHandler);if(place){if(!buttonAtRight){place.appendChild(btn)}place.appendChild(txt);if(buttonAtRight){place.appendChild(btn)}}searchInputField=txt;searchButton=btn};var openAllFoundTiddlers=function(){closeResult();var results=getLastResults();var n=results.length;if(n){var titles=[];for(var i=0;i<n;i++){titles.push(results[i].title)}story.displayTiddlers(null,titles)}};var createOptionWithRefresh=function(place,optionParams,wikifier,tiddler){invokeMacro(place,"option",optionParams,wikifier,tiddler);var elem=place.lastChild;var oldOnClick=elem.onclick;elem.onclick=function(e){var result=oldOnClick.apply(this,arguments);refreshResult();return result};return elem};var removeTextDecoration=function(s){var removeThis=["''","{{{","}}}","//","<<<","/***","***/"];var reText="";for(var i=0;i<removeThis.length;i++){if(i!=0){reText+="|"}reText+="("+removeThis[i].escapeRegExp()+")"}return s.replace(new RegExp(reText,"mg"),"").trim()};var getShortCutNumber=function(){var i=indexInPage;return(i>=0&&i<=9)?(i<9?(i+1):0):-1};var limitedTextRenderer=new abego.LimitedTextRenderer();var renderLimitedText=function(place,s,maxLen){limitedTextRenderer.render(place,s,maxLen,lastQuery.getMarkRegExp())};var oldTiddlyWikiSaveTiddler=TiddlyWiki.prototype.saveTiddler;TiddlyWiki.prototype.saveTiddler=function(title,newTitle,newBody,modifier,modified,tags,fields){oldTiddlyWikiSaveTiddler.apply(this,arguments);invalidateResult()};var oldTiddlyWikiRemoveTiddler=TiddlyWiki.prototype.removeTiddler;TiddlyWiki.prototype.removeTiddler=function(title){oldTiddlyWikiRemoveTiddler.apply(this,arguments);invalidateResult()};config.macros.yourSearch={label:"yourSearch",prompt:"Gives access to the current/last YourSearch result",handler:function(place,macroName,params,wikifier,paramString,tiddler){if(params.length==0){return}var name=params[0];var func=config.macros.yourSearch.funcs[name];if(func){func(place,macroName,params,wikifier,paramString,tiddler)}},tests:{"true":function(){return true},"false":function(){return false},found:function(){return getLastResultsCount()>0},previewText:function(){return config.options.chkPreviewText}},funcs:{itemRange:function(place){if(getLastResultsCount()){var lastIndex=pager.getLastIndexOnPage();var s="%0 - %1".format([pager.getFirstIndexOnPage()+1,lastIndex+1]);createTiddlyText(place,s)}},count:function(place){createTiddlyText(place,getLastResultsCount().toString())},query:function(place){if(lastQuery){createTiddlyText(place,lastQuery.toString())}},version:function(place){var t="YourSearch %0.%1.%2".format([version.extensions.YourSearchPlugin.major,version.extensions.YourSearchPlugin.minor,version.extensions.YourSearchPlugin.revision]);var e=createTiddlyElement(place,"a");e.setAttribute("href","http://tiddlywiki.abego-software.de/#YourSearchPlugin");e.innerHTML='<font color="black" face="Arial, Helvetica, sans-serif">'+t+"<font>"},copyright:function(place){var e=createTiddlyElement(place,"a");e.setAttribute("href","http://www.abego-software.de");e.innerHTML='<font color="black" face="Arial, Helvetica, sans-serif">© 2005-2008 <b><font color="red">abego</font></b> Software<font>'},newTiddlerButton:function(place){if(lastQuery){var r=abego.parseNewTiddlerCommandLine(lastQuery.getQueryText());var btn=config.macros.newTiddler.createNewTiddlerButton(place,r.title,r.params,"new tiddler","Create a new tiddler based on search text. (Shortcut: Ctrl-Enter; Separators: '.', '#')",null,"text");var oldOnClick=btn.onclick;btn.onclick=function(){closeResult();oldOnClick.apply(this,arguments)};lastNewTiddlerButton=btn}},linkButton:function(place,macroName,params,wikifier,paramString,tiddler){if(params<2){return}var tiddlyLink=params[1];var text=params<3?tiddlyLink:params[2];var tooltip=params<4?text:params[3];var accessKey=params<5?null:params[4];var btn=createTiddlyButton(place,text,tooltip,closeResultAndDisplayTiddler,null,null,accessKey);btn.setAttribute("tiddlyLink",tiddlyLink)},closeButton:function(place,macroName,params,wikifier,paramString,tiddler){createTiddlyButton(place,"close","Close the Search Results (Shortcut: ESC)",closeResult)},openAllButton:function(place,macroName,params,wikifier,paramString,tiddler){var n=getLastResultsCount();if(n==0){return}var title=n==1?"open tiddler":"open all %0 tiddlers".format([n]);var button=createTiddlyButton(place,title,"Open all found tiddlers (Shortcut: Alt-O)",openAllFoundTiddlers);button.setAttribute("accessKey","O")},naviBar:function(place,macroName,params,wikifier,paramString,tiddler){pager.addPageNavigation(place)},"if":function(place,macroName,params,wikifier,paramString,tiddler){if(params.length<2){return}var testName=params[1];var negate=(testName=="not");if(negate){if(params.length<3){return}testName=params[2]}var test=config.macros.yourSearch.tests[testName];var showIt=false;try{if(test){showIt=test(place,macroName,params,wikifier,paramString,tiddler)!=negate}else{showIt=(!eval(testName))==negate}}catch(ex){}if(!showIt){place.style.display="none"}},chkPreviewText:function(place,macroName,params,wikifier,paramString,tiddler){var elem=createOptionWithRefresh(place,"chkPreviewText",wikifier,tiddler);elem.setAttribute("accessKey","P");elem.title="Show text preview of found tiddlers (Shortcut: Alt-P)";return elem}}};config.macros.foundTiddler={label:"foundTiddler",prompt:"Provides information on the tiddler currently processed on the YourSearch result page",handler:function(place,macroName,params,wikifier,paramString,tiddler){var name=params[0];var func=config.macros.foundTiddler.funcs[name];if(func){func(place,macroName,params,wikifier,paramString,tiddler)}},funcs:{title:function(place,macroName,params,wikifier,paramString,tiddler){if(!currentTiddler){return}var shortcutNumber=getShortCutNumber();var tooltip=shortcutNumber>=0?"Open tiddler (Shortcut: Alt-%0)".format([shortcutNumber.toString()]):"Open tiddler";var btn=createTiddlyButton(place,null,tooltip,closeResultAndDisplayTiddler,null);btn.setAttribute("tiddlyLink",currentTiddler.title);btn.setAttribute("withHilite","true");renderLimitedText(btn,currentTiddler.title,maxCharsInTitle);if(shortcutNumber>=0){btn.setAttribute("accessKey",shortcutNumber.toString())}},tags:function(place,macroName,params,wikifier,paramString,tiddler){if(!currentTiddler){return}renderLimitedText(place,currentTiddler.getTags(),maxCharsInTags)},text:function(place,macroName,params,wikifier,paramString,tiddler){if(!currentTiddler){return}renderLimitedText(place,removeTextDecoration(currentTiddler.text),maxCharsInText)},field:function(place,macroName,params,wikifier,paramString,tiddler){if(!currentTiddler){return}var name=params[1];var len=params.length>2?abego.toInt(params[2],maxCharsInField):maxCharsInField;var v=store.getValue(currentTiddler,name);if(v){renderLimitedText(place,removeTextDecoration(v),len)}},number:function(place,macroName,params,wikifier,paramString,tiddler){var numberToDisplay=getShortCutNumber();if(numberToDisplay>=0){var text="%0)".format([numberToDisplay.toString()]);createTiddlyElement(place,"span",null,"shortcutNumber",text)}}}};var opts={chkUseYourSearch:true,chkPreviewText:true,chkSearchAsYouType:true,chkSearchInTitle:true,chkSearchInText:true,chkSearchInTags:true,chkSearchExtendedFields:true,txtItemsPerPage:itemsPerPageDefault,txtItemsPerPageWithPreview:itemsPerPageWithPreviewDefault};for(var n in opts){if(config.options[n]==undefined){config.options[n]=opts[n]}}config.shadowTiddlers.AdvancedOptions+="\n<<option chkUseYourSearch>> Use 'Your Search' //([[more options|YourSearch Options]]) ([[help|YourSearch Help]])// ";config.shadowTiddlers["YourSearch Help"]="!Field Search\nWith the Field Search you can restrict your search to certain fields of a tiddler, e.g only search the tags or only the titles. The general form is //fieldname//'':''//textToSearch// (e.g. {{{title:intro}}}). In addition one-character shortcuts are also supported for the standard fields {{{title}}}, {{{text}}} and {{{tags}}}:\n|!What you want|!What you type|!Example|\n|Search ''titles only''|start word with ''!''|{{{!jonny}}} (shortcut for {{{title:jonny}}})|\n|Search ''contents/text only''|start word with ''%''|{{{%football}}} (shortcut for {{{text:football}}})|\n|Search ''tags only''|start word with ''#''|{{{#Plugin}}} (shortcut for {{{tags:Plugin}}})|\n\nUsing this feature you may also search the extended fields (\"Metadata\") introduced with TiddlyWiki 2.1, e.g. use {{{priority:1}}} to find all tiddlers with the priority field set to \"1\".\n\nYou may search a word in more than one field. E.g. {{{!#Plugin}}} (or {{{title:tags:Plugin}}} in the \"long form\") finds tiddlers containing \"Plugin\" either in the title or in the tags (but does not look for \"Plugin\" in the text). \n\n!Boolean Search\nThe Boolean Search is useful when searching for multiple words.\n|!What you want|!What you type|!Example|\n|''All words'' must exist|List of words|{{{jonny jeremy}}} (or {{{jonny and jeremy}}})|\n|''At least one word'' must exist|Separate words by ''or''|{{{jonny or jeremy}}}|\n|A word ''must not exist''|Start word with ''-''|{{{-jonny}}} (or {{{not jonny}}})|\n\n''Note:'' When you specify two words, separated with a space, YourSearch finds all tiddlers that contain both words, but not necessarily next to each other. If you want to find a sequence of word, e.g. '{{{John Brown}}}', you need to put the words into quotes. I.e. you type: {{{\"john brown\"}}}.\n\nUsing parenthesis you may change the default \"left to right\" evaluation of the boolean search. E.g. {{{not (jonny or jeremy)}}} finds all tiddlers that contain neither \"jonny\" nor \"jeremy. In contrast to this {{{not jonny or jeremy}}} (i.e. without parenthesis) finds all tiddlers that either don't contain \"jonny\" or that contain \"jeremy\".\n\n!'Exact Word' Search\nBy default a search result all matches that 'contain' the searched text. E.g. if you search for {{{Task}}} you will get all tiddlers containing 'Task', but also '~CompletedTask', '~TaskForce' etc.\n\nIf you only want to get the tiddlers that contain 'exactly the word' you need to prefix it with a '='. E.g. typing '=Task' will find the tiddlers that contain the word 'Task', ignoring words that just contain 'Task' as a substring.\n\n!~CaseSensitiveSearch and ~RegExpSearch\nThe standard search options ~CaseSensitiveSearch and ~RegExpSearch are fully supported by YourSearch. However when ''~RegExpSearch'' is on Filtered and Boolean Search are disabled.\n\nIn addition you may do a \"regular expression\" search even with the ''~RegExpSearch'' set to false by directly entering the regular expression into the search field, framed with {{{/.../}}}. \n\nExample: {{{/m[ae][iy]er/}}} will find all tiddlers that contain either \"maier\", \"mayer\", \"meier\" or \"meyer\".\n\n!~JavaScript Expression Filtering\nIf you are familiar with JavaScript programming and know some TiddlyWiki internals you may also use JavaScript expression for the search. Just enter a JavaScript boolean expression into the search field, framed with {{{ { ... } }}}. In the code refer to the variable tiddler and evaluate to {{{true}}} when the given tiddler should be included in the result. \n\nExample: {{{ { tiddler.modified > new Date(\"Jul 4, 2005\")} }}} returns all tiddler modified after July 4th, 2005.\n\n!Combined Search\nYou are free to combine the various search options. \n\n''Examples''\n|!What you type|!Result|\n|{{{!jonny !jeremy -%football}}}|all tiddlers with both {{{jonny}}} and {{{jeremy}}} in its titles, but no {{{football}}} in content.|\n|{{{#=Task}}}|All tiddlers tagged with 'Task' (the exact word). Tags named '~CompletedTask', '~TaskForce' etc. are not considered.|\n\n!Access Keys\nYou are encouraged to use the access keys (also called \"shortcut\" keys) for the most frequently used operations. For quick reference these shortcuts are also mentioned in the tooltip for the various buttons etc.\n\n|!Key|!Operation|\n|{{{Alt-F}}}|''The most important keystroke'': It moves the cursor to the search input field so you can directly start typing your query. Pressing {{{Alt-F}}} will also display the previous search result. This way you can quickly display multiple tiddlers using \"Press {{{Alt-F}}}. Select tiddler.\" sequences.|\n|{{{ESC}}}|Closes the [[YourSearch Result]]. When the [[YourSearch Result]] is already closed and the cursor is in the search input field the field's content is cleared so you start a new query.|\n|{{{Alt-1}}}, {{{Alt-2}}},... |Pressing these keys opens the first, second etc. tiddler from the result list.|\n|{{{Alt-O}}}|Opens all found tiddlers.|\n|{{{Alt-P}}}|Toggles the 'Preview Text' mode.|\n|{{{Alt-'<'}}}, {{{Alt-'>'}}}|Displays the previous or next page in the [[YourSearch Result]].|\n|{{{Return}}}|When you have turned off the 'as you type' search mode pressing the {{{Return}}} key actually starts the search (as does pressing the 'search' button).|\n\n//If some of these shortcuts don't work for you check your browser if you have other extensions installed that already \"use\" these shortcuts.//";config.shadowTiddlers["YourSearch Options"]="|>|!YourSearch Options|\n|>|<<option chkUseYourSearch>> Use 'Your Search'|\n|!|<<option chkPreviewText>> Show Text Preview|\n|!|<<option chkSearchAsYouType>> 'Search As You Type' Mode (No RETURN required to start search)|\n|!|Default Search Filter:<<option chkSearchInTitle>>Title ('!') <<option chkSearchInText>>Text ('%') <<option chkSearchInTags>>Tags ('#') <<option chkSearchExtendedFields>>Extended Fields<html><br><font size=\"-2\">The fields of a tiddlers that are searched when you don't explicitly specify a filter in the search text <br>(Explictly specify fields using one or more '!', '%', '#' or 'fieldname:' prefix before the word/text to find).</font></html>|\n|!|Number of items on search result page: <<option txtItemsPerPage>>|\n|!|Number of items on search result page with preview text: <<option txtItemsPerPageWithPreview>>|\n";config.shadowTiddlers.YourSearchStyleSheet="/***\n!~YourSearchResult Stylesheet\n***/\n/*{{{*/\n.yourSearchResult {\n\tposition: absolute;\n\twidth: 800px;\n\n\tpadding: 0.2em;\n\tlist-style: none;\n\tmargin: 0;\n\n\tbackground: #ffd;\n\tborder: 1px solid DarkGray;\n}\n\n/*}}}*/\n/***\n!!Summary Section\n***/\n/*{{{*/\n.yourSearchResult .summary {\n\tborder-bottom-width: thin;\n\tborder-bottom-style: solid;\n\tborder-bottom-color: #999999;\n\tpadding-bottom: 4px;\n}\n\n.yourSearchRange, .yourSearchCount, .yourSearchQuery {\n\tfont-weight: bold;\n}\n\n.yourSearchResult .summary .button {\n\tfont-size: 10px;\n\n\tpadding-left: 0.3em;\n\tpadding-right: 0.3em;\n}\n\n.yourSearchResult .summary .chkBoxLabel {\n\tfont-size: 10px;\n\n\tpadding-right: 0.3em;\n}\n\n/*}}}*/\n/***\n!!Items Area\n***/\n/*{{{*/\n.yourSearchResult .marked {\n\tbackground: none;\n\tfont-weight: bold;\n}\n\n.yourSearchItem {\n\tmargin-top: 2px;\n}\n\n.yourSearchNumber {\n\tcolor: #808080;\n}\n\n\n.yourSearchTags {\n\tcolor: #008000;\n}\n\n.yourSearchText {\n\tcolor: #808080;\n\tmargin-bottom: 6px;\n}\n\n/*}}}*/\n/***\n!!Footer\n***/\n/*{{{*/\n.yourSearchFooter {\n\tmargin-top: 8px;\n\tborder-top-width: thin;\n\tborder-top-style: solid;\n\tborder-top-color: #999999;\n}\n\n.yourSearchFooter a:hover{\n\tbackground: none;\n\tcolor: none;\n}\n/*}}}*/\n/***\n!!Navigation Bar\n***/\n/*{{{*/\n.yourSearchNaviBar a {\n\tfont-size: 16px;\n\tmargin-left: 4px;\n\tmargin-right: 4px;\n\tcolor: black;\n\ttext-decoration: underline;\n}\n\n.yourSearchNaviBar a:hover {\n\tbackground-color: none;\n}\n\n.yourSearchNaviBar .prev {\n\tfont-weight: bold;\n\tcolor: blue;\n}\n\n.yourSearchNaviBar .currentPage {\n\tcolor: #FF0000;\n\tfont-weight: bold;\n\ttext-decoration: none;\n}\n\n.yourSearchNaviBar .next {\n\tfont-weight: bold;\n\tcolor: blue;\n}\n/*}}}*/\n";config.shadowTiddlers.YourSearchResultTemplate='<!--\n{{{\n-->\n<span macro="yourSearch if found">\n<!-- The Summary Header ============================================ -->\n<table class="summary" border="0" width="100%" cellspacing="0" cellpadding="0"><tbody>\n <tr>\n\t<td align="left">\n\t\tYourSearch Result <span class="yourSearchRange" macro="yourSearch itemRange"></span>\n\t\t of <span class="yourSearchCount" macro="yourSearch count"></span>\n\t\tfor <span class="yourSearchQuery" macro="yourSearch query"></span>\n\t</td>\n\t<td class="yourSearchButtons" align="right">\n\t\t<span macro="yourSearch chkPreviewText"></span><span class="chkBoxLabel">preview text</span>\n\t\t<span macro="yourSearch newTiddlerButton"></span>\n\t\t<span macro="yourSearch openAllButton"></span>\n\t\t<span macro="yourSearch linkButton \'YourSearch Options\' options \'Configure YourSearch\'"></span>\n\t\t<span macro="yourSearch linkButton \'YourSearch Help\' help \'Get help how to use YourSearch\'"></span>\n\t\t<span macro="yourSearch closeButton"></span>\n\t</td>\n </tr>\n</tbody></table>\n\n<!-- The List of Found Tiddlers ============================================ -->\n<div id="yourSearchResultItems" itemsPerPage="25" itemsPerPageWithPreview="10"></div>\n\n<!-- The Footer (with the Navigation) ============================================ -->\n<table class="yourSearchFooter" border="0" width="100%" cellspacing="0" cellpadding="0"><tbody>\n <tr>\n\t<td align="left">\n\t\tResult page: <span class="yourSearchNaviBar" macro="yourSearch naviBar"></span>\n\t</td>\n\t<td align="right"><span macro="yourSearch version"></span>, <span macro="yourSearch copyright"></span>\n\t</td>\n </tr>\n</tbody></table>\n<!-- end of the \'tiddlers found\' case =========================================== -->\n</span>\n\n\n<!-- The "No tiddlers found" case =========================================== -->\n<span macro="yourSearch if not found">\n<table class="summary" border="0" width="100%" cellspacing="0" cellpadding="0"><tbody>\n <tr>\n\t<td align="left">\n\t\tYourSearch Result: No tiddlers found for <span class="yourSearchQuery" macro="yourSearch query"></span>.\n\t</td>\n\t<td class="yourSearchButtons" align="right">\n\t\t<span macro="yourSearch newTiddlerButton"></span>\n\t\t<span macro="yourSearch linkButton \'YourSearch Options\' options \'Configure YourSearch\'"></span>\n\t\t<span macro="yourSearch linkButton \'YourSearch Help\' help \'Get help how to use YourSearch\'"></span>\n\t\t<span macro="yourSearch closeButton"></span>\n\t</td>\n </tr>\n</tbody></table>\n</span>\n\n\n<!--\n}}}\n-->\n';config.shadowTiddlers.YourSearchItemTemplate="<!--\n{{{\n-->\n<span class='yourSearchNumber' macro='foundTiddler number'></span>\n<span class='yourSearchTitle' macro='foundTiddler title'/></span> - \n<span class='yourSearchTags' macro='foundTiddler field tags 50'/></span>\n<span macro=\"yourSearch if previewText\"><div class='yourSearchText' macro='foundTiddler field text 250'/></div></span>\n<!--\n}}}\n-->";config.shadowTiddlers.YourSearch="<<tiddler [[YourSearch Help]]>>";config.shadowTiddlers["YourSearch Result"]="The popup-like window displaying the result of a YourSearch query.";config.macros.search.handler=myMacroSearchHandler;var checkForOtherHijacker=function(){if(config.macros.search.handler!=myMacroSearchHandler){alert("Message from YourSearchPlugin:\n\n\nAnother plugin has disabled the 'Your Search' features.\n\n\nYou may disable the other plugin or change the load order of \nthe plugins (by changing the names of the tiddlers)\nto enable the 'Your Search' features.")}};setTimeout(checkForOtherHijacker,5000);abego.YourSearch.getStandardRankFunction=function(){return standardRankFunction};abego.YourSearch.getRankFunction=function(){return abego.YourSearch.getStandardRankFunction()};abego.YourSearch.getCurrentTiddler=function(){return currentTiddler};abego.YourSearch.closeResult=function(){closeResult()};abego.YourSearch.getFoundTiddlers=function(){return lastResults};abego.YourSearch.getQuery=function(){return lastQuery};abego.YourSearch.onShowResult=function(useOldResult){highlightHack=lastQuery?lastQuery.getMarkRegExp():null;if(!useOldResult){pager.setItems(getLastResults())}if(!resultElement){resultElement=createTiddlyElement(document.body,"div",yourSearchResultID,"yourSearchResult")}else{if(resultElement.parentNode!=document.body){document.body.appendChild(resultElement)}}refreshResult();highlightHack=null}})()};
//%/
<!--{{{-->
<link rel='stylesheet' type='text/css' href='css/bootstrap.min.css' />
<link rel='stylesheet' type='text/css' href='css/course.css' />
<div id="navigation">
<div class="container">
<!--div class="row">
<div class="col-md-4 hidden-xs hidden-sm"><a href="#%5B%5BОкружающий мир%5D%5D"><img src="images/logo_small.svg?crc=140944996" width="176" height="25" /></a></div>
<div class="col-md-3 col-xs-6"><a href="http://childrenscience.ru/" class="nav-link">Курсы</a></div>
<div class="col-md-3 col-xs-6"><a href="http://childrenscience.ru/about/" class="nav-link">О проекте</a></div>
</div-->
<div class="row">
<div class="col-md-2 hidden-xs hidden-sm">
<h2><a style="font-size: 20px;" href="#%5B%5BОкружающий мир%5D%5D" onclick="config.options.txtLessonNumber=0">Окружающий мир</a></h2>
</div>
<div class="col-md-2 col-xs-2"><p>
<a href="#filter:%22%5B%5BОкружающий мир. 1й класс%5D%5D%22"
tiddler="Окружающий мир. 1й класс" class="nav-link" onclick="config.options.txtLessonNumber=0">1 класс</a>
</p></div>
<div class="col-md-2 col-xs-2"><p>
<a href="#filter:%22%5B%5BОкружающий мир. 2 класс%5D%5D%22"
tiddler="Окружающий мир. 2 класс" class="nav-link" onclick="config.options.txtLessonNumber=0">2 класс</a>
</p></div>
<div class="col-md-2 col-xs-2"><p>
<a href="#filter:%22%5B%5BОкружающий мир. 3 класс%5D%5D%22"
tiddler="Окружающий мир. 3 класс" class="nav-link" onclick="config.options.txtLessonNumber=0">3 класс</a>
</p></div>
<div class="col-md-2 col-xs-2"><p>
<a href="#filter:%22%5B%5BОкружающий мир. 4 класс%5D%5D%22"
tiddler="Окружающий мир. 4 класс" class="nav-link" onclick="config.options.txtLessonNumber=0">4 класс</a>
</p></div>
<div class="col-md-2 col-xs-2"><p>
<a href="#filter:%22%5B%5BГенетика%5D%5D%22"
tiddler="Генетика" class="nav-link"
onclick="config.options.txtLessonNumber=0">Генетика</a>
</p></div>
</div>
</div>
</div>
<div class="container" id="main_content">
<div class="row">
<div class="col-md-12 col-xs-12" id="course-header">
<h2 id="course-name">Решение генетических задач</h2>
<h4 id="course-author">Екатерина Романовна Черткова</h4>
<h4 id="course-audience">9–11 класс</h4>
<img src="images/cpm.png" width="70px" height="67px" class="pull-left" id="course-sponsor-img" />
<div class="pull-left center-block" id="course-sponsor-txt">Курс создан при поддержке<br/>Центра Педагогического мастерства</div>
</div>
</div>
<div macro='fillCourseHeader'></div> <!-- TW stuff -->
<div class="row row-flex" id="course-content">
<div class="col-sm-4 col-xs-12" id="lessons-list">
<div class="lesson">
<a href="#" class="lesson-name h4">Весь курс</a>
</div>
<div class="lesson">
<div class="lesson-name h4">Урок с подтемами или часть.</div>
<div class="sub-lessons">
<a href="#" class="lesson-name">Урок 0</a>
<a href="#" class="lesson-name lesson-active">Урок 1 (активен)</a>
<a href="#" class="lesson-name">Урок 2. С очень длинным, просто отвратительным названием.</a>
<a href="#" class="lesson-name">Урок 3</a>
</div>
</div>
<div class="lesson">
<div class="lesson-name h4">Урок с подтемами или часть.</div>
<div class="sub-lessons">
<a href="#" class="lesson-name">Урок 0</a>
<a href="#" class="lesson-name">Урок 1</a>
<a href="#" class="lesson-name">Урок 2. С очень длинным, просто отвратительным названием.</a>
<a href="#" class="lesson-name">Урок 3</a>
</div>
</div>
<div class="lesson">
<a href="#" class="lesson-name h4">Урок без подтем</a>
</div>
<div class="lesson">
<a href="#" class="lesson-name h4">Урок без подтем</a>
</div>
<div class="lesson">
<a href="#" class="lesson-name h4 lesson-active">Активный урок без подтем</a>
</div>
<div class="lesson">
<a href="#" class="lesson-name h4">Урок без подтем</a>
</div>
</div>
<div class="col-sm-8" id="lesson-content">
<h2>Строение нуклеиновых кислот</h2>
<h5>Занятие 2</h5>
<p>Курс «Решение генетических задач» поможет разобраться в алгоритме решения генетических задач, встречающихся на ЕГЭ и олимпиадах.</p>
<p>На первом занятии автор курса, преподаватель школы «Интеллектуал» Екатерина Черткова расскажет о строении нуклеиновых кислот и процессах, которые с ними происходят.</p>
<a class="btn btn-primary" href="#">Пройти занятие</a>
<ol id="lesson-steps">
<li>
<p><a href="#"><img src="images/video.svg" width="24px" height="24px" class="pull-left"/><span class="lesson-label">Шаг 1 - видео</span></a><br/><small>видео - 5:99</small></p>
</li>
<li>
<p><a href="#"><img src="images/text.svg" width="24px" height="24px" class="pull-left"/><span class="lesson-label">Шаг 2 - конспект</span></a><br/><small>конспект</small></p>
</li>
<li>
<p><a href="#"><img src="images/test.svg" width="24px" height="24px" class="pull-left"/><span class="lesson-label">Шаг 3 - тест</span></a><br/><small>текст</small></p>
</li>
<li>
<p><a href="#"><img src="images/task.svg" width="24px" height="24px" class="pull-left"/><span class="lesson-label">Шаг 4 - задание</span></a><br/><small>задание</small></p>
</li>
</ol>
<p><a href="#"><img src="images/dwnld_solid.svg" width="24px" height="24px" />Конспект лекции <img src="images/pdf.png" width="28px" height="18px" /> 278 kB </a></p>
<p><a href="#"><img src="images/dwnld_solid.svg" width="24px" height="24px" />Слайды видеолекции <img src="images/pdf.png" width="28px" height="18px" /> 278 kB </a></p>
</div>
</div>
<div macro='fillCourseContents'></div> <!-- TW stuff -->
</div>
<div id="footer">
<div class="container">
<div class=row>
<div class="col-md-8 col-sm-6">
<h4><strong>Пишите!</strong></h4>
<h4><a href="mailto:info@childrenscience.ru">info@childrenscience.ru</a></h4>
</div>
<div class="col-md-4 col-sm-6">
<h4><strong>Мы в соцсетях:</strong></h4>
<div class="row">
<div class="col-sm-3 col-xs-2"><a href="http://vk.com/childrenscience"><img src="images/vk.png" width="46px" height="46px"></a></div>
<div class="col-sm-3 col-xs-2"><a href="https://www.facebook.com/detinauka"><img src="images/fb.png" width="46px" height="46px"></a></div>
<!-- <div class="col-sm-3 col-xs-2"><a href="http://childrenscience.livejournal.com/"><img src="images/lj.png" width="46px" height="46px"></a></div> -->
<div class="col-sm-3 col-xs-2"><a href="https://www.youtube.com/childrenscience"><img src="images/yt.png" width="46px" height="46px"></a></div>
</div>
</div>
</div>
</div>
</div>
<script src="js/bootstrap.min.js"></script>
<!--}}}-->
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
|visibleName|Мир на карте|
|ссылка на контент шага|https://youtu.be/Gp6BWCTirY8|
|тип шага|video|
|visibleName|Континенты и океаны|
|ссылка на контент шага|./oms/226-1/|
|тип шага|task|
|contentHeight|620|
|visibleName|Собери карту|
|ссылка на контент шага|./oms/226-2/|
|тип шага|task|
|contentHeight|620|
|visibleName|Угадай континент|
|ссылка на контент шага|./oms/226-3/|
|тип шага|task|
|contentHeight|620|
|visibleName|Карта Мира|
|ссылка на контент шага|./environment2/JPG/text_26_1.jpg|
|тип шага|pager|
|table of contents thumb|text_26_1.jpg|
|visibleName|Карта России|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_26_2.jpg|
|table of contents thumb|text_26_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/04-Конспект-История_изучения_космоса.pdf|
|занимает памяти|2.9 Мб|
|visibleName|Воздух в природе и жизни человека|
|ссылка на контент шага|https://youtu.be/KskSadKbzDo|
|тип шага|video|
<<lessonAdminPanel>>/%
|visibleName|1. Тело и вещество |
|galleryFolder|environment2/galleries/201. Тело и вещество/|
!!!Описание
!gallery data
{"data":[
["01 природа.jpg"],
["02 общество.jpg"],
["03 миры живого и неживого.jpg"],
["04-1 живое растет.jpg"],
["04-2 живое питается.jpg"],
["04-3 живое размножается.jpg"],
["04-4 живое состоит из клеток.jpg"],
["05 карта живой природы.jpg"],
["05 мир живого и остров вирусов.jpg"],
["06 два мира.jpg"],
["07-1 царства в двух мирах.jpg"],
["07-2 царства в мире неживого.jpg"]
],
"options":{}}
!%/
|тип шага|video|
|ссылка на контент шага|https://youtu.be/UraMKCUgUlg|
|visibleName|Тело и вещество|
|visibleName|Тела и вещества|
|ссылка на контент шага|./oms/201-1/|
|тип шага|task|
|visibleName|Тело и вещество|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_01_1.jpg|
|table of contents thumb|text_01_1.jpg|
|visibleName|Конспект для ученика|
|занимает памяти|916 Кб|
|ссылка на материал|./environment2/PDF/01-Конспект-Тело_и_вещество.pdf|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/1. РМ. Тело и вещество.pdf|
|занимает памяти|47 Кб|
<<lessonAdminPanel>>/%
|visibleName|2. Свойства веществ|
|galleryFolder|environment2/galleries/202. Свойства веществ/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 агрегатное состояние.jpg"],
["02 хрупкость и пластичность.jpg"],
["03 плавучесть.jpg"],
["04 горючесть.jpg"],
["05 состав.jpg"]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|Свойства веществ|
|ссылка на контент шага|https://youtu.be/EmsGR1NobtY|
|visibleName|Свойства веществ|
|ссылка на контент шага|./environment2/JPG/text_02_1.jpg|
|тип шага|pager|
|table of contents thumb|text_02_1.jpg|
|visibleName|Свойства веществ|
|ссылка на контент шага|./environment2/JPG/text_02_2.jpg|
|тип шага|pager|
|table of contents thumb|text_02_2.jpg|
|ссылка на материал|./environment2/ATTACHMENTS/202/исследование свойств.jpg|
|занимает памяти|2,4 Мб|
|visibleName|Бланк для исследования «бытовых» веществ|
|visibleName|Бланк лото: Свойства веществ|
|ссылка на материал|./environment2/ATTACHMENTS/202/лото свойства.jpg|
|занимает памяти|860 Кб|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/02-Конспект-Свойства_веществ.pdf|
|занимает памяти|1,6 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/2. РМ. Свойства веществ.pdf|
|занимает памяти|47 Кб|
<<lessonAdminPanel>>/%
|visibleName|3. Органические вещества. Нефть |
|galleryFolder|environment2/galleries/203. Органические вещества. Нефть/|
!!!Описание
!gallery data
{"data":[
["01 нефть.jpg","","","","",""],
["02 бумага из древесины.jpg",null,"","","",""],
["03 воск дают пчёлы.jpg",null,"","","",""],
["04 масло из масличных растений.jpg",null,"","","",""],
["05 кислород выделяется при фотосинтезе.jpg",null,"","","",""],
["06 месторождение нефти.jpg",null,"","","",""],
["07 геологи.jpg",null,"","","",""],
["08 буровая установка.jpg",null,"","","",""],
["09 буровики.jpg",null,"","","",""],
["10 нефтяной насос.jpg",null,"","","",""],
["11 много нефтяных насосов.jpg",null,"https://www.flickr.com/photos/breakbeatbilly/15472493181/","Willy Johnson","","Flickr"],
["12 нефть на карте.jpg",null,"","","",""],
["13 карта - нефть.jpg",null,"","","",""]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|Органические вещества. Нефть|
|ссылка на контент шага|https://youtu.be/FtGu2l6j0zQ|
|visibleName|Паспорт нефти|
|ссылка на контент шага|./oms/203-1/|
|тип шага|task|
|visibleName|Кто добывает нефть?|
|ссылка на контент шага|./oms/203-2/|
|тип шага|task|
|visibleName|Как добывают нефть?|
|ссылка на контент шага|./oms/203-3/|
|тип шага|task|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_03_1.jpg|
|visibleName|Органические и неорганические вещества|
|table of contents thumb|text_03_1.jpg|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_03_2.jpg|
|visibleName|Добыча нефти|
|table of contents thumb|text_03_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/03-Конспект-Органические_вещества_Нефть.pdf|
|занимает памяти|2 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/3. РМ. Органические вещества. Нефть.pdf|
|занимает памяти|150 Кб|
<<lessonAdminPanel>>/%
|visibleName|4. Применение нефти|
|galleryFolder|environment2/galleries/204. Применение нефти/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 нефть.jpg","","","","",""],
["02-1 цистерна.jpg","","","","",""],
["02-2 поезд из цистерн.jpg","","https://www.flickr.com/photos/sergejf/18272206730/","sergejf","","Flickr"],
["03 танкер.jpg","","","","",""],
["04 птица в нефти.jpg","","https://fortunedotcom.files.wordpress.com/2015/01/ap10060312648.jpg?quality=80","Charlie Riedel - AP","","Flickr"],
["05 нефтяное пятно убирают.jpg","","https://www.flickr.com/photos/coastguardnews/2701999015/","Coast Guard News","","Flickr"],
["06-1 нефтепровод.jpg","","","","",""],
["06-2 нефтепровод.jpg","","https://www.flickr.com/photos/traderchris/7635388740/","Chris Jepsen","","Flickr"],
["06-3 нефтепровод над землей.jpg","","https://www.flickr.com/photos/toffehoff/4208723645/","toffehoff","","Flickr"],
["07 бензин.jpg","","","","",""],
["08 легковая машина.jpg","","","","",""],
["09 корабль.jpg","","","","",""],
["10 трактор.jpg","","","","",""],
["11 ракета и самолет.jpg","","","","",""],
["12 керосиновая лампа.jpg","","","","",""],
["13 мазут.jpg","","","","",""],
["14 электростанция.jpg","","","","",""],
["15 предметы из пластмассы.jpg","","","","",""],
["16 одежда из синтетики.jpg","","","","",""],
["17 краски из самоцветов.jpg","","","","",""],
["18 краска и лак.jpg","","","","",""],
["19 шарики.jpg","","","","",""],
["20 ластик.jpg","","","","",""],
["21 шина.jpg","","","","",""],
["22 асфальт.jpg","","","","",""],
["23-1 дорога из досок.jpg","","https://www.flickr.com/photos/154121367@N06/34099148484/in/photolist-TXe3Rb-V2hJS7-UmsNJj-9DiGEQ-SSX8xr-6TM1w4-4GPyep-U1MRsp-dnxrW6-qrzAjW-UgreE1-rZ4K6D-T17oDQ-UqXuFT-8kNJgx-UHTuYH-qfC2tN-7yS3Wm-So1yi9-STDp9t-VjFHgu-SVY7jK-VFx7Ug-UWPXVi-Tch2CM-RHVByS-7wXTdd-4Ysia6-j1dHwW-8dZ4ac-q9AjJR-rmbaDB-Uq4PdG-UGYdnU-6QjQb6-UugnYu-dCfv8Z-q5ANUY-aZpQPz-4Wx66t-7PeYgw-V3tSY4-4YCbMk-pLqEqD-h28FQh-85HH5P-SeTjf3-a62wm3-SLHt2k-6VvoZX","Puliti Rachel","","Flickr"],
["23-2 дорога из камня.jpg","","https://www.flickr.com/photos/feridun_f_alkaya/35439326586/in/photolist-VZDP7b-W31v9T-obKmLw-QWN75Q-UPFMaB-pRtQzb-S5rHZG-VdwKpE-VDPDwK-UJ3SFZ-UrzHn8-VFpF9H-V8woLw-R7v2wL-UQzh3N-UeYhnZ-TGfh5p-U3ornH-RsayN2-UFk6ss-VNHhbr-TN5BV5-VDPEDK-SEoN93-pEzeaf-VLtad2-8WPtKK-UJ3VeV-yAMqcw-VRFYNe-UBFhNP-TnsMzf-UFk9Ww-RNYuCq-SQJGhJ-U9cRUC-oE9E9W-U894sZ-UnSRxF-UmfYYr-f7DhSd-nsPeAj-UFk88m-VNHhb6-c92ccf-ffWbwz-UGgFB1-QZiCVg-bEeRb1-T7qEgU","Feridun F. Alkaya","","Flickr"],
["23-3 дорога из брусчатки.jpg","","https://www.flickr.com/photos/waywardphotography/7646879970/in/photolist-cDJg17-Ukun5p-bXeFSS-44ogfZ-oTNkRx-5sACvV-5SQ6X6-3QgRcN-SY64ts-9Gxexr-52Ka5P-5bRrrs-SY67EC-8AcgHJ-nZisBE-nh88SJ-do5B75-DS9bX4-9hBhQ4-5jBs75-9Xn7vU-efUKo9-dXMo3g-jusjoU-8bhgQi-arVAH5-9GX3Dc-hAFuQR-dzaBw4-9jjw9e-9pCZqu-a8ukQo-Gwwrm-nvX3jP-8w5FxU-9Ayuij-BrY98o-HctAqD-mJuHsp-qFekBk-9SsSvb-8bky5f-osScKN-ne3muS-fwzP12-5SQ4DB-8XnWQ1-9QQfT8-TmDwGR-4xh9RY","Justin Carroll","","Flickr"],
["23-4 дорога из асфальта.jpg","","https://www.flickr.com/photos/anekoho/14578168034/in/photolist-oddVsJ-hHPXqC-99pyzT-7eDxMZ-9CrZ2J-6BkpXw-TXsoci-5LFgVr-s82V2V-EFzpo-eJnpiZ-aBgWLG-kCB2qF-aLPGrt-mMVvJh-ibo74Z-7sThbU-USMZ3b-cd2nWQ-D8uBc-mo5axS-VWdses-SsGSwC-dL2FPb-dj5kQb-pd5F1j-of7X6t-T1uAs7-T2jxVV-UienB3-SdeBBU-UAAQEb-dq4LLs-pPzAet-pAWqk2-rKsK3X-5VKs2u-MTFkPt-oLv7Ww-pFRQfu-UtPmn4-UKX84M-8Py9hc-4eujsr-JAtPew-qHCJS3-PCukbo-dzBAex-ruTPoc-eaxrxv","Anek Suwannaphoom","","Flickr"]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|Применение нефти|
|ссылка на контент шага|https://youtu.be/zWaZvEuFjhg|
|visibleName|Предметы из нефти|
|ссылка на контент шага|./oms/204-2/|
|тип шага|task|
|contentHeight|700|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_04_1.jpg|
|visibleName|Применение нефти|
|table of contents thumb|text_04_1.jpg|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_04_2.jpg|
|visibleName|Применение нефти|
|table of contents thumb|text_04_2.jpg|
|visibleName|Как доставить нефть?|
|ссылка на контент шага|./oms/204-1/|
|тип шага|task|
|contentHeight|620|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/04-Конспект-Применение_нефти.pdf|
|занимает памяти|1,5 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/4. РМ. Применение нефти.pdf|
|занимает памяти|80 Кб|
<<lessonAdminPanel>>/%
|visibleName|5. Газ, торф, уголь |
|galleryFolder|environment2/galleries/205. Газ, торф, уголь/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 добыча природного газа.jpg",null,null,null,null,null],
["02-1 природный газ на карте.jpg",null,null,null,null,null],
["02-2 карта - природный газ.jpg",null,null,null,null,null],
["03 газовая заправка.jpg",null,null,null,null,null],
["04 электростанция.jpg",null,null,null,null,null],
["05 газ идет в дома.jpg",null,null,null,null,null],
["06 газовая плита.jpg",null,null,null,null,null],
["07-1 утечка газа — открыть окна.jpg",null,null,null,null,null],
["07-2 утечка газа — правила.jpg",null,null,null,null,null],
["08 сфагнум.jpg",null,null,null,null,null],
["09-1 торф на карте.jpg",null,null,null,null,null],
["09-2 карта - торф.jpg",null,null,null,null,null],
["10-1 образование угля.jpg",null,null,null,null,null],
["10-2 образование угля.jpg",null,null,null,null,null],
["11-1 каменный уголь.jpg",null,null,null,null,null],
["11-2 карта - каменный уголь.jpg",null,null,null,null,null],
["12-1 бурый уголь.jpg",null,null,null,null,null],
["12-2 карта - бурый уголь.jpg",null,null,null,null,null],
["13 вагон угля.jpg",null,null,null,null,null],
["14 посёлок зимой.jpg",null,null,null,null,null],
["15 корабль.jpg",null,null,null,null,null],
["16-1 тролейбус.jpg",null,null,null,null,null],
["16-2 усы.jpg",null,null,null,null,null],
["17 карта - нефть, газ, уголь, торф.jpg",null,null,null,null,null]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|Газ, торф, уголь|
|ссылка на контент шага|https://youtu.be/wI--qnICzAE|
|visibleName|Как обозначить месторождение?|
|ссылка на контент шага|./oms/205-1/|
|тип шага|task|
|ссылка на контент шага|./oms/205-2/|
|тип шага|task|
|visibleName|Если в квартире пахнет газом|
|ссылка на контент шага|./oms/205-3/|
|тип шага|task|
|visibleName|Нефть, газ, торф, уголь|
|ссылка на контент шага|./oms/205-4/|
|тип шага|task|
|visibleName|Паспорт угля|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_05_1.jpg|
|visibleName|Природный газ|
|table of contents thumb|text_05_1.jpg|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_05_2.jpg|
|visibleName|Уголь и торф|
|table of contents thumb|text_05_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/05-Конспект-Газ_торф_уголь.pdf|
|занимает памяти|3,6 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/5. РМ. Газ, торф, уголь.pdf|
|занимает памяти|72 Кб|
<<lessonAdminPanel>>/%
|visibleName|6. Добыча угля|
|galleryFolder|environment2/galleries/206. Добыча угля/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 геологи.jpg","","","","",""],
["02 пласт угля.jpg","","","","",""],
["03 пласт толщиной с дом.jpg","","","","",""],
["04-1 карьер.jpg","","","","",""],
["04-2 карьер.jpg","","https://www.flickr.com/photos/boombana/34232086200/in/photolist-U9YoAL-pECs1D-ToNrQw-UvyVh9-RT8XLd-ifSjAo-8SeLCA-dLHV2K-hRhNrj-qxbxCb-GdHP7-eafW5S-UsUBLX-ft6nuP-qeT6At-nb8MZe-3yUVEE-dk3fUM-VDGMNd-TbNXn8-SYFpxZ-aZm7Rz-VPaheR-zGzqc8-QzUPSS-pt92cQ-ajtMRE-qPWr5C-TEsgXu-fHtmbt-9irEYx-8gwEiP-njxEcg-auGiAt-fJ5UCJ-gJ6Kiq-dhL1YT-bLGiKp-c5Cr6C-jtXzcS-qDmfdC-SNq8fZ-iKBsdS-RBnjX9-kJnzrD-qtChg6-nJLHvs-TjUpit-T1mzzi-SPLot7","Greg McLachlan","",""],
["04-3 угольный карьер.jpg","","https://upload.wikimedia.org/wikipedia/commons/2/21/Mirny_in_Yakutia.jpg","Staselnik","",""],
["05 шагающий экскаватор.jpg","","","","",""],
["06 роторный экскаватор.jpg","","","","",""],
["07-1 карьерный самосвал.jpg","","https://www.flickr.com/photos/mrwubbs/31983435534/in/album-72157653491893229/","Western Maryland Photography","",""],
["07-2 карьерный самосвал.jpg","","","","",""],
["07-3 карьерный самосвал — 100 грузовиков.jpg","","","","",""],
["08 шахта.jpg","","","","",""],
["09 шахтный перфоратор.jpg","","","","",""],
["10 шахтеры с фонариками.jpg","","https://cdn1.img.ria.ru/images/131012/53/1310125302.jpg","РИА Новости / Вера Костамо","","РИА Новости"],
["11 шахтер.jpg","","https://cdn2.img.ria.ru/images/131012/93/1310129381.jpg","РИА Новости / Вера Костамо","","РИА Новости"],
["12 опасно газ.jpg","","","","",""],
["13 обвал на шахте.jpg","","","","",""]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|Добыча угля|
|ссылка на контент шага|https://youtu.be/OJkdlbUMzsU|
|ссылка на контент шага|./oms/206-1/|
|тип шага|task|
|visibleName|Если уголь глубоко|
|тип шага|task|
|ссылка на контент шага|./oms/206-2/|
|visibleName|Если уголь близко|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_06_1.jpg|
|visibleName|Добыча угля карьерным способом|
|table of contents thumb|text_06_1.jpg|
|visibleName|Добыча угля шахтным способом|
|ссылка на контент шага|./environment2/JPG/text_06_2.jpg|
|тип шага|pager|
|table of contents thumb|text_06_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/06-Конспект-Добыча_угля.pdf|
|занимает памяти|1,9 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/6. РМ. Добыча угля.pdf|
|занимает памяти|55 Кб|
<<lessonAdminPanel>>/%
|visibleName|7. Неорганические вещества. Железо|
|galleryFolder|environment2/galleries/207. Неорганические вещества. Железо/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 цветные металлы.jpg"],
["02 железо.jpg"],
["03 железо ржавеет.jpg"],
["04 сталь.jpg"],
["05-1 гайка.jpg"],
["05-2 винты.jpg"],
["05-3 стальной кузов машины.jpg"],
["05-4 кастрюля.jpg"],
["05-5 пушка.jpg"],
["05-6 рельсы.jpg"],
["06 холодильник.jpg"],
["07-1 цистерна.jpg"],
["07-2 цистерна ржавеет.jpg"],
["07-3 цистерна покрашенная.jpg"]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|Неорганические вещества. Железо|
|ссылка на контент шага|https://youtu.be/JxcVD3dA760|
|visibleName|Паспорт железа|
|ссылка на контент шага|./oms/207-1/|
|тип шага|task|
|visibleName|Чёрные металлы|
|ссылка на контент шага|./oms/207-2/|
|тип шага|task|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_07_1.jpg|
|visibleName|Камни и металлы|
|table of contents thumb|text_07_1.jpg|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_07_2.jpg|
|visibleName|Железо|
|table of contents thumb|text_07_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/07-Конспект-Неорганические_вещества_Железо.pdf|
|занимает памяти|3,1 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/7. РМ. Неорганические вещества. Железо.pdf|
|занимает памяти|51 Кб|
<<lessonAdminPanel>>/%
|visibleName|8. Цветные металлы|
|galleryFolder|environment2/galleries/208. Цветные металлы/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 железо и алюминий.jpg"],
["02 алюминий - крылатый металл.jpg"],
["03-1 алюминиевая банка.jpg"],
["03-2 чайник.jpg"],
["03-3 алюминиевая фольга.jpg"],
["03-4 кухня и предметы из алюминия.jpg"],
["04-1 провода и розетка.jpg"],
["04-2 провода из меди и алюминий.jpg"],
["05 девочка с медными волосами.jpg"],
["06 самовар.jpg"],
["07 медяки.jpg"],
["08 оловянный солдатик.jpg"],
["09 оловянные пуговицы.jpg"],
["10 оловянная посуда.jpg"],
["11 паяльник.jpg"],
["12 золото.jpg"],
["13 серебро.jpg"],
["14 серебряные кольца.jpg"],
["15 золотая посуда.jpg"],
["16 золотая и серебряная монеты.jpg"],
["17 медали.jpg"],
["18 обозначение золота.jpg"],
["19 обозначение серебра.jpg"],
["20 оцинкованное железо.jpg"],
["21 бронзовые статуэтки.jpg"],
["22 бронзовый подсвечник.jpg"],
["23 бронзовая ручка.jpg"],
["24 бронзовый загар.jpg"]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|Цветные металлы|
|ссылка на контент шага|https://youtu.be/YJQxigOFfdo|
|visibleName|Металл или сплав?|
|ссылка на контент шага|./oms/208-1/|
|тип шага|task|
|visibleName|Коллекция металлов|
|ссылка на контент шага|./oms/208-2/|
|тип шага|task|
|contentHeight|620|
|visibleName|Из какого это металла?|
|ссылка на контент шага|./oms/208-3/|
|тип шага|task|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_08_1.jpg|
|visibleName|Цветные металлы|
|table of contents thumb|text_08_1.jpg|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_08_2.jpg|
|visibleName|Цветные металлы|
|table of contents thumb|text_08_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/08-Конспект-Цветные_металлы.pdf|
|занимает памяти|2,4 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/8. РМ. Цветные металлы.pdf|
|занимает памяти|51 Кб|
<<lessonAdminPanel>>/%
|visibleName|9. Виды камней|
|galleryFolder|environment2/galleries/209. Виды камней/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 Земля.jpg"],
["02 Земля в разрезе.jpg"],
["03 мантия и земная кора.jpg"],
["04-1 магма поднимается в земную кору.jpg"],
["04-2 магма застывает в земной коре.jpg"],
["05 магма извергается из вулкана.jpg"],
["06-1 образование осадочных камней.jpg"],
["06-2 образование осадочных камней.jpg"],
["06-3 образование осадочных камней.jpg"],
["07 образование метаморфических камней.jpg"]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|Виды камней|
|ссылка на контент шага|https://youtu.be/cTYezCrPkvo|
|visibleName|Строение Земли|
|ссылка на контент шага|oms/209-1/|
|тип шага|task|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_09_1.jpg|
|visibleName|Строение Земли|
|table of contents thumb|text_09_1.jpg|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_09_2.jpg|
|visibleName|Виды камней|
|table of contents thumb|text_09_2.jpg|
|visibleName|Виды камней|
|ссылка на контент шага|oms/209-2/|
|тип шага|task|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/09-Виды_камней-Конспект.pdf|
|занимает памяти|2,6 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/9. РМ. Виды камней.pdf|
|занимает памяти|48 Кб|
<<lessonAdminPanel>>/%
|visibleName|10. «Простые» камни|
|galleryFolder|environment2/galleries/210. Простые камни/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 гранит.jpg","","","","",""],
["02 пол гранит.jpg","","https://www.flickr.com/photos/121392082@N04/14748464070/in/photostream/","Ivo Paunov","","Flickr"],
["03-1 колонны гранит.jpg","","https://www.flickr.com/photos/leterra/9636343661/","Letícia F. Terra","","Flickr"],
["03-2 колонны гранит крупно.jpg","","https://www.flickr.com/photos/jpwchi/4255014865/","Jim W","","Flickr"],
["04 фонтан гранит.jpg","","https://www.flickr.com/photos/124849370@N04/15519621629/","Sean Donnelly","","Flickr"],
["05-1 фонтан гранит летом.jpg","","","","",""],
["05-2 фонтан гранит зимой.jpg","","","","",""],
["06-1 набережная Невы.jpg","","https://commons.wikimedia.org/wiki/File:Kalininsky_District_Council.jpg","Florstein","","Wikimedia Commons"],
["06-2 Нева спуск к воде.jpg","","https://commons.wikimedia.org/wiki/File:Angliyskaya_Embankment_SPB_12-14.jpg","Florstein","","Wikimedia Commons"],
["07 полевой шпат.jpg","","","","",""],
["08 кварц.jpg","","","","",""],
["09 слюда.jpg","","","","",""],
["10-1 коричневый шпат.jpg","","https://upload.wikimedia.org/wikipedia/commons/c/ce/Feldspar_1659.jpg","Dave Dyet","","Wikimedia"],
["10-2 красноватый шпат.jpg","","https://www.flickr.com/photos/28617364@N04/7088748117/","Cran Cowan","","Flickr"],
["10-3 серый шпат.jpg","","https://www.flickr.com/photos/28617364@N04/15805195972/","Cran Cowan","","Flickr"],
["10-4 красивый шпат.jpg","","https://www.flickr.com/photos/28617364@N04/15067909704/","Cran Cowan","","Flickr"],
["10-5 разноцветный шпат.jpg","","https://upload.wikimedia.org/wikipedia/commons/e/e8/Labradorite_%28UCL_Geology_Collections%29.jpg","UCL Mathematical & Physical Sciences","","Flickr"],
["11-0 кварц бесцветный.jpg","","https://www.flickr.com/photos/usageology/16854912762/","Stan Celestian","","Flickr"],
["11-1 кварц агат синий.jpg","","https://www.flickr.com/photos/jsjgeology/32734668126/","James St. John","","Flickr"],
["11-2 кварц агат срез.jpg","","https://www.flickr.com/photos/godpasta/14157750109/","godpasta","","Flickr"],
["11-3 кварц аметист бледный.jpg","","https://www.flickr.com/photos/usageology/11551568773/","Stan Celestian","","Flickr"],
["11-4 кварц аметист.jpg","","https://www.flickr.com/photos/133330636@N08/32076141683/","Connor West","","Flickr"],
["11-5 кварц цитрин.jpg","","https://www.flickr.com/photos/42250269@N06/13471782334/","Gilles Péris y Saborit","","Flickr"],
["12 кварцевые часы.jpg","","","","",""],
["13 окно слюда.jpg","","","","",""],
["14 базальт.jpg","","","","",""],
["15-2 базальт мостовая.jpg.jpg","","https://www.flickr.com/photos/hansbouman/291634925/","Hans Bouman","","Flickr"],
["16 известняк.jpg","","","","",""],
["17 мел.jpg","","","","",""],
["18-1 белокаменная Москва.jpg","","https://www.flickr.com/photos/28010126@N07/8691436568/","Emily","","Flickr"],
["18-2 Коломенское.jpg","","https://www.flickr.com/photos/65509607@N08/7000534233/","Lyudmila Izmaylova","","Flickr"],
["19 образование ракушечника.jpg","","","","",""],
["20 галит.jpg","","","","",""],
["21 месторождение галита.jpg","","","","",""],
["22 галит на карте.jpg","","","","",""],
["22-1 карта - галит.jpg","","","","",""],
["23 месторождение галита фото.jpg","","https://www.flickr.com/photos/carolyncheng/8440931641/","Carolyn Cheng","","Flickr"],
["24 кремень.jpg","","","","",""],
["25-1 черный кремень.jpg","","https://www.flickr.com/photos/rivercrouchwalker/6579969417/","Linda Peall","","Flickr"],
["26-1 красный кремень.jpg","","https://www.flickr.com/photos/davidjcoombes/5861450558/","david coombes","","Flickr"],
["27 высекание огня кремнем.jpg","","","","",""],
["28 кремневое ружье.jpg","","","","",""],
["29 орудия из кремня.jpg","","","","",""],
["30 мрамор.jpg","","","","",""],
["31-3 красный мрамор.jpg","","https://www.flickr.com/photos/sneeb/3512529838/","Deena F","","Flickr"],
["31-5 зеленоватый с золотым мрамор.jpg","","https://www.flickr.com/photos/jsjgeology/14618721017/","James St. John","","Flickr"],
["31-6 мрамор серый в прожилках.jpg","","https://upload.wikimedia.org/wikipedia/commons/thumb/9/92/Marble_wall_of_Ruskeala.jpg/2560px-Marble_wall_of_Ruskeala.jpg","Aleksander Kaasik","","Flickr"],
["31-7 мрамор с прожилками.jpg","","https://www.flickr.com/photos/nauright/5306026580/","romana klee","","Flickr"],
["32 мраморный дворец изнутри.jpg","","https://www.flickr.com/photos/132789386@N08/34509316145/","Lost-Place HDR Studio","","Flickr"],
["33 древнаяя мраморная ваза.jpg","","https://www.flickr.com/photos/wikimediacommons/16426329616/in/photostream/","Ashley Van Haeften","","Flickr"],
["34 мраморный стол.jpg","","https://www.flickr.com/photos/69182166@N08/9563831026/","Leland Little Auction and Estate Sales, Ltd.","","Flickr"],
["35 мраморные шахматы.jpg","","https://www.flickr.com/photos/bleyleluehrs/2399182708/","Dawn Bleyle","","Flickr"],
["36 статуя Давида.jpg","","https://www.flickr.com/photos/36198417@N05/35026722300/","xytse13","","Flickr"]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|«Простые» камни|
|ссылка на контент шага|https://youtu.be/kDQrCuxq8AY|
|visibleName|Из чего состоит гранит?|
|тип шага|task|
|ссылка на контент шага|./oms/210-1/|
|visibleName|Коллекция простых камней|
|ссылка на контент шага|./oms/210-2/|
|тип шага|task|
|contentHeight|620|
|visibleName|Какой это камень?|
|тип шага|task|
|ссылка на контент шага|./oms/210-3/|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_10_1.jpg|
|visibleName|«Простые» камни|
|table of contents thumb|text_10_1.jpg|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_10_2.jpg|
|visibleName|«Простые» камни|
|table of contents thumb|text_10_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/10-Конспект-Простые_камни.pdf|
|занимает памяти|1,5 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/10. РМ. «Простые» камни.pdf|
|занимает памяти|60 Кб|
<<lessonAdminPanel>>/%
|visibleName|11. Драгоценные камни|
|galleryFolder|environment2/galleries/211. Драгоценные камни/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 необработанный алмаз.jpg","","","","",""],
["02 сырой алмаз.jpg","","https://www.flickr.com/photos/serendipitydiamonds/9979136496/in/photolist-gcPFBw-5vv3Qb-9KynTe-ncJNFS-cUmntC-Ujkgpv-TS6xyo-UuLDWu-duGKH6-BZ4jzh-bLRvZv-EttJfz-Gn4CKe-onQp3u-aFZQwp-vVVStA-s9Wxd3-5C9r6P-RZ44vj-bfgmxR-pcH8K8-vvNNcV-dqu2gH-dWtaNE-EQhoCq-8ztaY2-MReEBf-dXyYHx-512vqJ-dWnwCH-oYEz74-cXmz9b-d8VbAA-cvvHTd-dPgs9U-348N7e-dkuu57-eqANmN-9tc5j2-uZKpXk-9mfDbt-kHX262-cUmU8f-PuYpnr-8HUKDm-tn2Q8T-buuWe4-dCcSzA-dC7u4x-dCcMpf/","Mark Johnson","","Flickr"],
["03 сырые цветные алмазы.jpg","","https://www.flickr.com/photos/96118158@N02/16620069936/","Nick Thomas","","Flickr"],
["04 сине-зеленый алмаз.jpg","","https://www.flickr.com/photos/richard_brooksbank/6440803137/in/photostream/","^Richard B^","","Flickr"],
["05 черный алмаз в камне.jpg","","https://www.flickr.com/photos/34831334@N04/3233519695/in/photostream/","shelley_geo","","Flickr"],
["06 кольца с алмазами.jpg","","https://www.flickr.com/photos/149140443@N07/33806575163","Delicate Gem","",""],
["07 сырой и огранённый алмазы.jpg","","https://www.flickr.com/photos/serendipitydiamonds/9979066025/","Mark Johnson","","Flickr"],
["08 сырые алмазы.jpg","","https://www.flickr.com/photos/34831334@N04/3234369882/","shelley_geo","","Flickr"],
["09 мелкие алмазы.jpg","","","","",""],
["10 алмазный круг.jpg","","","","",""],
["11 бриллиант.jpg","","","","",""],
["12 изумруд необработанный.jpg","","","","",""],
["13 изумруд огранённый.jpg","","","","",""],
["14 желто-зеленый изумруд.jpg","","https://www.flickr.com/photos/107963674@N07/26913414504/","Macroscopic Solutions","","Flickr"],
["15 сине-зеленый изумруд.jpg","","https://www.flickr.com/photos/107963674@N07/16917030415/","Macroscopic Solutions","","Flickr"],
["16 изумруд.jpg","","https://www.flickr.com/photos/46019178@N05/21377877333/","betadecay2000","","Flickr"],
["17 изумруд.jpg","","https://www.flickr.com/photos/107963674@N07/16891102616/","Macroscopic Solutions","","Flickr"],
["18 кольцо с изумрудом.jpg","","https://www.flickr.com/photos/132980313@N04/19479760760/in/photostream/","jorge rodriguez","","Flickr"],
["19 изумруды на Урале.jpg","","","","",""],
["20 белочка с изумрудом.jpg","","","","",""],
["21 сырой рубин.jpg","","","","",""],
["22 рубин огранённый.jpg","","https://www.flickr.com/photos/136217278@N04/32978615010/","Svetozar Simov","","Flickr"],
["23 рубин в другом камне.jpg","","https://www.flickr.com/photos/137677069@N08/34376066686/","Gerald Armstrong","","Flickr"],
["24 кольцо с рубином.jpg","","https://www.flickr.com/photos/nmnh/2646520023/","Smithsonian National Museum of Natural History","","Flickr"],
["25 рубин.jpg","","https://www.flickr.com/photos/serpa-design/13021569803/","Tanner Serpa","",""],
["26 рубин.jpg","","","","",""],
["27 корона.jpg","","","","",""],
["28 сапфир необработанный.jpg","","","","",""],
["29 сапфир огранённый.jpg","","","","",""],
["30 сапфир.jpg","","https://www.flickr.com/photos/ptorraca/7004600357/","Peter Torraca","","Flickr"],
["31 сапфир.jpg","","https://www.flickr.com/photos/ptorraca/6480180143/","Peter Torraca","","Flickr"]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|Драгоценные камни|
|ссылка на контент шага|https://youtu.be/NVj32Ouw_Ow|
|visibleName|Какие из этих камней драгоценные?|
|ссылка на контент шага|./oms/211-1/|
|тип шага|task|
|visibleName|Чем украшена брошь?|
|ссылка на контент шага|./oms/211-2/|
|тип шага|task|
|ссылка на контент шага|./environment2/JPG/text_11_1.jpg|
|тип шага|pager|
|visibleName|Драгоценные камни|
|table of contents thumb|text_11_1.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/11-Конспект-Драгоценные_камни.pdf|
|занимает памяти|1,1 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/11. РМ. Драгоценные камни.pdf|
|занимает памяти|54 Кб|
<<lessonAdminPanel>>/%
|visibleName|12. Поделочные камни|
|galleryFolder|environment2/galleries/212. Поделочные камни/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 кварц.jpg","","https://www.flickr.com/photos/usageology/16854912762/","Stan Celestian","",""],
["02 кварц.jpg","","","","",""],
["03 кристаллы кварца.jpg","","https://www.youtube.com/watch?v=xq7sAQGnIGk","Ruben VERA Photography","","Flickr"],
["04 цветной кварц — цитрин.jpg","","https://www.flickr.com/photos/42250269@N06/13471782334/","Gilles Péris y Saborit","","Flickr"],
["05 розовый кварц.jpg","","https://www.flickr.com/photos/stickersattackface/14521824173/","stickersattackface","","Flickr"],
["06 кварц фиолетовый и жёлтый.jpg","","https://www.flickr.com/photos/77434524@N06/9224800511/","Sash Segal","","Flickr"],
["07 фиолетовый кварц — аметист.jpg","","","","",""],
["08 аметист.jpg","","","","",""],
["09 аметист.jpg","","https://www.flickr.com/photos/usageology/11551568773/","Connor West","","Flickr"],
["10 волшебная палочка с аметистом.jpg","","","","",""],
["11 волшебник.jpg","","","","",""],
["12 оранжевый кварц.jpg","","https://www.flickr.com/photos/126868639@N08/14914341955/","Lucas Fassari","","Flickr"],
["13 жёлтый кварц.jpg","","https://www.flickr.com/photos/zircons/4643024773/","jeff schultz","","Flickr"],
["14 цветной кварц — агат.jpg","","https://www.flickr.com/photos/swordtail/8513590187/","mineral2150","","Flickr"],
["15 розовый кварц.jpg","","https://www.flickr.com/photos/kailashcrystals/3379683212/","Kailash Crystals","","Flickr"],
["16 цветной кварц — тигровый глаз.jpg","","https://commons.wikimedia.org/wiki/File:Tigers_eye_crystal444.jpg","Benjamint444","","Flickr"],
["17 цветной кварц — агат.jpg","","https://www.flickr.com/photos/agatehill/5959748615/","agatehill","","Flickr"],
["18 цветной кварц — агат.jpg","","https://www.flickr.com/photos/sio4collector/6864631949/","Ira Bradford","","Flickr"],
["19 цветной кварц — агат.jpg","","https://www.flickr.com/photos/27683743@N03/6739592425/","Alan","","Flickr"],
["20 малахит.jpg","","https://www.flickr.com/photos/smiling_da_vinci/5172908/","Eelco","","Flickr"],
["21 пузыри малахита.jpg","","https://www.flickr.com/photos/127928600@N07/20706568219/","Eduard Stankovič","","Flickr"],
["22 малахит.jpg","","https://www.flickr.com/photos/wilderdom/3003940671/","Jimee, Jackie, Tom & Asha","","Flickr"],
["23 срез малахита.jpg","","https://www.flickr.com/photos/usageology/8419014972/","Stan Celestian","","Flickr"],
["24 срез малахита.jpg","","https://www.flickr.com/photos/hisgett/8030278733/","Tony Hisgett","","Flickr"],
["25 малахит.jpg","","https://www.flickr.com/photos/usageology/8388024050/","Stan Celestian","","Flickr"],
["26 малахит.jpg","","","","",""],
["27 кольцо с малахитом.jpg","","https://www.flickr.com/photos/chrissilynn/4773435786/","Chrissi Lynn Designs","","Flickr"],
["28 статуэтки из малахита.jpg","","https://www.flickr.com/photos/bellasdolls/14689104341/","bellasdolls","","Flickr"],
["29 столешница из малахита.jpg","","https://www.flickr.com/photos/146645939@N08/32385143801/","Frank Alvarado","","Flickr"],
["30 чаша из малахита.jpg","","https://www.flickr.com/photos/kaarin/5337020244/","Kaarin T","","Flickr"],
["31 Данила-мастер.jpg","","","","",""],
["32 малахит — материал хрупкий.jpg","","","","",""],
["33 основа из простого камня.jpg","","","","",""],
["34 основа с наклеенными пластинами.jpg","","","","",""],
["35 готовая чаша.jpg","","","","",""],
["36 пластины малахита.jpg","","https://www.flickr.com/photos/serg-157/5395992055/","Sergey Dushkin","","Flickr"],
["37 бирюза.jpg","","","","",""],
["38 бирюза.jpg","","https://www.flickr.com/photos/44535224@N05/26603195330/","Archangem","",""],
["39 бирюза.jpg","","https://www.flickr.com/photos/35740568@N02/3308684407/","itouchapple","",""],
["40 срез бирюзы.jpg","","https://www.flickr.com/photos/jeff-o-matic/2249880212/","Jeff-o-matic","",""],
["41 украшения из бирюзы.jpg","","","","",""],
["42 корона с бирюзой.jpg","","https://commons.wikimedia.org/wiki/File:Marie_Louise_Diadem.jpg","Gryffindor","",""],
["43 ножны с бирюзой.jpg","","http://www.sothebys.com/en/auctions/ecatalogue/2014/arts-islamic-world-l14223/lot.138.html","Sotheby’s","",""],
["44 яшма.jpg","","","","",""],
["45 яшма тёмно-красная.jpg","","https://www.flickr.com/photos/rocksncrystals/32411413283/","rocksncrystals","",""],
["46 яшма леопардовая.jpg","","https://www.flickr.com/photos/rocksncrystals/33010015895/","rocksncrystals","",""],
["47 яшма оранжевая.jpg","","https://www.flickr.com/photos/rocksncrystals/32586616411/","rocksncrystals","",""],
["48 яшма синяя.jpg","","https://www.flickr.com/photos/robert_stok/4065795690/","Robert","","Flickr"],
["49 яшма зелёная.jpg","","https://www.flickr.com/photos/41475171@N08/3816581037/","gemmys.biz","","Flickr"],
["50 яшма.jpg","","https://www.flickr.com/photos/tjflex/2175558666/","Tjflex2","","Flickr"],
["51 отполированная яшма.jpg","","https://www.flickr.com/photos/rocksncrystals/32958609996/in/photostream/","rocksncrystals","","Flickr"],
["52 украшение с яшмой.jpg","","https://www.flickr.com/photos/23660675@N04/15820612337/","Protean Crafts","","Flickr"],
["53 серьги из яшмы.jpg","","https://www.flickr.com/photos/earthlyjewels/5058385191/","Earthly Jewels","","Flickr"],
["54 кулон с яшмой.jpg","","https://www.flickr.com/photos/larane/6455026125/in/photostream/","Wendie","","Flickr"],
["55 чаша из яшмы с золотом.jpg","","https://www.flickr.com/photos/graeme/27047605885/","Graeme Churchard","","Flickr"],
["56 ваза из яшмы.jpg","","https://www.flickr.com/photos/35470493@N07/4005640818/","Jason Monas","","Flickr"],
["57 сокровища Алмазного фонда.jpg","","http://www.gokhran.ru/assets/vtour/index.html","Госхран России","",""],
["58 сокровища Алмазного фонда.jpg","","http://www.gokhran.ru/assets/vtour/index.html","Госхран России","",""],
["59 сокровища Алмазного фонда.jpg","","http://www.gokhran.ru/assets/vtour/index.html","Госхран России","",""],
["60 сокровища Алмазного фонда.jpg","","http://www.gokhran.ru/assets/vtour/index.html","Госхран России","",""],
["61 сокровища Алмазного фонда.jpg","","http://www.gokhran.ru/assets/vtour/index.html","Госхран России","",""]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|Поделочные камни|
|ссылка на контент шага|https://youtu.be/Q-1bFM-Lt5c|
|visibleName|Какие из этих камней поделочные?|
|ссылка на контент шага|./oms/212-1/|
|тип шага|task|
|visibleName|Из какого это камня?|
|ссылка на контент шага|./oms/212-2/|
|тип шага|task|
|visibleName|Поделочные камни|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_12_1.jpg|
|table of contents thumb|text_12_1.jpg|
|visibleName|Поделочные камни|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_12_2.jpg|
|table of contents thumb|text_12_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/12-Конспект-Поделочные_камни.pdf|
|занимает памяти|2,2 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/12. РМ. Поделочные камни.pdf|
|занимает памяти|53 Кб|
<<lessonAdminPanel>>/%
|visibleName|13. Руды|
|galleryFolder|environment2/galleries/213. Руды/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 самородки.jpg","","","","",""],
["02 самородок золота.jpg","","https://www.flickr.com/photos/pluriverse/2477147531/","Andreas Helke","",""],
["03 самородок золота.jpg","","https://www.flickr.com/photos/95930172@N05/9395430605/","Ken Debney","",""],
["04 самородок серебра.jpg","","https://www.flickr.com/photos/129661685@N03/16362907928/","Elliot Moor","",""],
["05 золото — обозначение.jpg","","","","",""],
["06 серебро — обозначение.jpg","","","","",""],
["07 золото и серебро на карте.jpg","","","","",""],
["08 машина из камня.jpg","","","","",""],
["09 ракета из камня.jpg","","","","",""],
["10 красный железняк.jpg","","","","",""],
["11 гематит.jpg","","https://www.flickr.com/photos/usageology/32254578884/","Stan Celestian","",""],
["12 гематит коричневый.jpg","","https://www.flickr.com/photos/usageology/32943836062/","Stan Celestian","",""],
["13 гематит слоистый.jpg","","https://www.flickr.com/photos/jimmyjohansen/8193043852/","Jimmy Johansen","",""],
["14 бурый железняк.jpg","","","","",""],
["15 бурый железняк.jpg","","https://www.flickr.com/photos/eduardocagney/25653546003/","Eduardo Estéllez Follow","",""],
["16 бурый железняк.jpg","","https://www.flickr.com/photos/60451823@N06/6078110325/","Inca Cusco Minerals","",""],
["17 бурый железняк пузырчатый.jpg","","https://www.flickr.com/photos/otagorockandmineralclub/15377050942/in/photostream/","Otago Rock and Mineral Club","",""],
["18 магнитный железняк.jpg","","","","",""],
["19 магнетит и скрепки.jpg","","https://www.flickr.com/photos/kushalshah/6704697453/","Kushal Shah","",""],
["20 магнетит, монеты и ложка.jpg","","https://www.flickr.com/photos/meg_nicol/3794710761/","meg_nicol","",""],
["21 железная руда — обозначение.jpg","","","","",""],
["22 железная руда на карте.jpg","","","","",""],
["23 алюминиевая руда — обозначение.jpg","","","","",""],
["24 алюминиевая руда на карте.jpg","","","","",""],
["25 боксит.jpg","","","","",""],
["26 боксит красный.jpg","","https://commons.wikimedia.org/wiki/File:Bauxite_h%C3%A9rault.JPG","saphon","",""],
["27 боксит белый.jpg","","https://www.flickr.com/photos/kurt_douglas/6945878043/","PROKJD2007","",""],
["28 боксит красный.jpg","","https://www.flickr.com/photos/44535224@N05/27303561836/","Archangem","",""],
["29 алюминиевая фольга.jpg","","","","",""],
["30 провода.jpg","","","","",""],
["31 ракета и самолет.png","","","","",""],
["32 медные руды — обозначение.jpg","","","","",""],
["33 медные руды на карте.jpg","","","","",""],
["34 куприт.jpg","","https://www.flickr.com/photos/usageology/11514188335/","PROStan Celestian","",""],
["35 медные руды борнит и халькопирит.jpg","","https://www.flickr.com/photos/28617364@N04/8744831426/","Cran Cowan","",""],
["36 медная руда халькопирит.jpg","","https://www.flickr.com/photos/usageology/8028741226/in/photostream/","Stan Celestian","",""],
["37 медная руда халькопирит.jpg","","https://www.flickr.com/photos/fluor_doublet/7001639967/","R. Tanaka","",""],
["38 медная руда.jpg","","https://www.flickr.com/photos/artisticacres/4125769151/","Judy Reiss","",""],
["39 малахит.jpg","","","","",""],
["40 малахитовый цветок.jpg","","","","",""],
["41 халькопирит.jpg","","","","",""],
["42 куприт.jpg","","","","",""],
["43 самородок меди.jpg","","https://www.flickr.com/photos/piedmont_fossil/3225225863/","Mike Fitzpatrick","",""],
["44 самородок меди.jpg","","https://www.flickr.com/photos/insignificantnobody/14355679613/","insignificantnobody","",""],
["45 самородок меди.jpg","","https://www.flickr.com/photos/edsaunders/25732674914/","Eduardo il Magnifico","",""],
["46 полиметаллическая руда.jpg","","https://www.flickr.com/photos/137677069@N08/32899861043/","Gerald Armstrong","",""],
["47 полиметаллическая руда кусок.jpg","","https://www.flickr.com/photos/tommytrevorrow/6175050733/","Polhigey","",""],
["48 полиметаллические руды — обозначение.jpg","","","","",""],
["49 полиметаллические руды на карте.jpg","","","","",""],
["50 все руды на карте.jpg","","","","",""],
["51 карьерный способ добычи ископаемых.jpg","","","","",""],
["52 шахтный способ.jpg","","","","",""],
["53 глубина карьера.jpg","","","","",""]
],
"options":{}}
!%/
|тип шага|video|
|ссылка на контент шага|https://youtu.be/kA9l7gfj50Q|
|visibleName|Руды|
|visibleName|Какой металл выплавляют из руды?|
|ссылка на контент шага|./oms/213-1/|
|тип шага|task|
|visibleName|Как обозначить месторождение?|
|ссылка на контент шага|./oms/213-2/|
|тип шага|task|
|visibleName|Руды|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_13_1.jpg|
|table of contents thumb|text_13_1.jpg|
|visibleName|Руды|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_13_2.jpg|
|table of contents thumb|text_13_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/13-Конспект-Руды.pdf|
|занимает памяти|2,1 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/13. РМ. Руды.pdf|
|занимает памяти|49 Кб|
<<lessonAdminPanel>>/%
|visibleName|14. Чугун и сталь|
|galleryFolder|environment2/galleries/214. Чугун и сталь/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 домна.jpg",null,"",""],
["02 домна размеры.jpg",null,"",""],
["03 кокс.jpg",null,"",""],
["04 кокс раскаленный.jpg",null,"",""],
["05 кокс, руда и известняк.jpg",null,"",""],
["06 домна внутри.jpg",null,"",""],
["07 шлак.jpg",null,"",""],
["08 шлакоблок.jpg",null,"",""],
["09 удобрения из шлака.jpg",null,"",""],
["10 шлак и чугун текут в вагонетки.jpg",null,"",""],
["11 чугун ограда.jpg",null,"",""],
["12 чугун ванна.jpg",null,"",""],
["13 чугун сковородка.jpg",null,"",""],
["14 чугун батарея.jpg",null,"",""],
["15 чугун вал.jpg",null,"",""],
["16 мартеновская печь.jpg",null,"https://commons.wikimedia.org/wiki/File:Siemens_Martin_Ofen_Brandenburg.jpg?uselang=ru","Clemensfranz"],
["17 мартеновская печь в работе.jpg",null,"https://www.flickr.com/photos/chalabala/7907402366/","Jaromír Chalabala"],
["18 бессемеровский конвертер.jpg",null,"https://www.flickr.com/photos/duncanh1/4087044548/in/photostream/","Dun.can"],
["19 бессемеровский конвертер.jpg",null,"https://www.flickr.com/photos/petermit2/32201063033/","Peter Mitchell"],
["20 электропечь.jpg",null,"",""],
["21 электрическая печь.jpg",null,"https://www.flickr.com/photos/oao_tmk/34327769250/in/album-72157637042770594/","TMKgroup"],
["22 электрическая печь.jpg",null,"https://www.flickr.com/photos/netlmultimedia/8617468466/","National Energy Technology Laboratory"],
["23 электрическая печь с крышкой.jpg",null,"https://www.flickr.com/photos/mattnic/9104393954/","Mattnic"],
["24 электрическая печь.jpg",null,"https://www.flickr.com/photos/oao_tmk/10533430935/","TMKgroup"],
["25 электрическая печь.jpg",null,"https://www.flickr.com/photos/oao_tmk/31862418091/in/album-72157637042770594/","TMKgroup"],
["26 пружины и рессоры в автомобиле.jpg",null,"",""],
["27 пружина в ручке.jpg",null,"",""],
["28 сверло.jpg",null,"",""],
["29 корабль.jpg",null,"",""],
["30 трубопровод.jpg",null,"",""],
["31 нержавеющая сталь кастрюля.jpg",null,"",""],
["32 нержавеющая сталь ложки.jpg",null,"",""],
["33 нержавеющая сталь механизм.jpg",null,"",""]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|Чугун и сталь|
|ссылка на контент шага|https://youtu.be/FkAp72fv-R0|
|visibleName|Получение чугуна|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_14_1.jpg|
|table of contents thumb|text_14_1.jpg|
|visibleName|Сталь|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_14_2.jpg|
|table of contents thumb|text_14_2.jpg|
|visibleName|Как получить сталь?|
|ссылка на контент шага|./oms/214-1/|
|тип шага|task|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/14-Конспект-Чугун_и_сталь.pdf|
|занимает памяти|2,1 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/14. РМ. Чугун и сталь.pdf|
|занимает памяти|53 Кб|
<<lessonAdminPanel>>/%
|visibleName|15. Применение камней|
|galleryFolder|environment2/galleries/215. Применение камней/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 бур.jpg","","","","",""],
["02 стеклорез.jpg","","","","",""],
["03 стеклорез и стекло.jpg","","","","",""],
["04 лазер.jpg","","","","",""],
["05 лазер в хирургии.jpg","","https://www.flickr.com/photos/packpix/16265189712/","ucomm.photo","",""],
["06 лазер и расстояния.jpg","","https://www.flickr.com/photos/nasa_goddard/6550944905/","NASA Goddard Space Flight Center","",""],
["07 рубин.jpg","","","","",""],
["08 булыжная мостовая.jpg","","","","",""],
["09 Соловецкий монастырь.jpg","","https://www.flickr.com/photos/black_and_white_photo/5986713457/in/photostream/","Andrey Kalinin","",""],
["10 Соловецкий монастырь.jpg","","https://www.flickr.com/photos/immelrikt/2802989043/","Pavel Pribytkin","",""],
["11 Соловецкий монастырь.jpg","","https://www.flickr.com/photos/jackiebritton/7949800408/","Jackie Britton","",""],
["12 дом из камня.jpg","","","","",""],
["13 известняк.jpg","","","","",""],
["14 глыбы известняка.jpg","","","","",""],
["15 церковь покрова на нерли.jpg","","https://www.flickr.com/photos/62107343@N04/14819902263/","Yuri Zhuck","",""],
["16 Грановитая палата.jpg","","https://www.flickr.com/photos/kuznetsov_sergey/10140929636/","Sergey Kuznetsov","",""],
["17 митрополичьи палаты.jpg","","https://upload.wikimedia.org/wikipedia/commons/9/98/Yar_palaty_autumn.JPG","Ghirlandajo","",""],
["18 удобрения из шлака.jpg","","","","",""],
["19 удобрения из апатита.jpg","","","","",""],
["20 апатит.jpg","","","","",""],
["21 Апатиты на карте России.jpg","","","","",""],
["22 галит.jpg","","","","",""],
["23 тальк.jpg","","","","",""],
["24 карамель.jpg","","","","",""],
["25 сыр.jpg","","","","",""],
["26 сухое молоко.jpg","","","","",""],
["27 мел.jpg","","","","",""],
["28 карандаш.jpg","","","","",""],
["29 графит.jpg","","","","",""],
["30 свойства графита.jpg","","","","",""],
["31 усы.jpg","","","","",""],
["32 троллейбус.jpg","","","","",""],
["33 графит обозначение.jpg","","","","",""],
["34 графит обозначение.jpg","","","","",""],
["35 алмаз.jpg","","https://www.flickr.com/photos/k469/36678185691/","Kiyotaka Ochiai","",""],
["36 алмазная лаборатория.jpg","","https://img.diytrade.com/smimg/2423667/46043485-7941751-0/Synthetic_diamond_making_machine_HPHT_cubic_press_in_Henan_China/9de5.jpg","Diytrade","",""],
["37 алмазная лаборатория.jpg","","http://www.sonicvd.com/product-images/16227118099.jpg","Soni CVD Diamonds","",""],
["38 искусственный алмаз.jpg","","https://www.gemsociety.org/wp-content/uploads/2016/02/Esperanza_Rough_ACH_5062.jpg","Arkansas State Parks & Tourism","",""],
["39 искусственный алмаз.jpg","","http://монокристалл.рф/images/news/2017_03_350_kg_KY_sapphire_crystal.jpg","Монокристал.рф","",""],
["40 графит.JPG","","http://www.vertix.co/uploads/images/products/Graphite-Electrodes.JPG","Vertix Co. Leading Supplier Of Foundry & Metallurgical Materials","",""],
["41 глыба известняка.jpg","","","","",""],
["42 кирпичи и печь.jpg","","","","",""],
["43 плитка.jpg","","","","",""],
["44 плитка.jpg","","","","",""],
["45 фарфоровая посуда.jpg","","","","",""],
["46 фаянсовая раковина.jpg","","","","",""],
["47 глиняная посуда.jpg","","","","",""],
["48 стеклянная посуда.jpg","","","","",""],
["49 окно из слюды.jpg","","","","",""],
["50 окно из стекла.jpg","","","","",""],
["51 сережка с рубином.jpg","","","","",""],
["52 сережка со стразом.jpg","","","","",""],
["53 цемент.jpg","","","","",""],
["54 стекло.jpg","","","","",""]
],
"options":{}}
!%/
|тип шага|video|
|ссылка на контент шага|https://youtu.be/lWDRfYNPYCk|
|visibleName|Применение камней|
|visibleName|Из какого это камня?|
|тип шага|task|
|ссылка на контент шага|./oms/215-1/|
|visibleName|Применение камней|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_15_1.jpg|
|table of contents thumb|text_15_1.jpg|
|visibleName|Применение камней|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_15_2.jpg|
|table of contents thumb|text_15_2.jpg|
|visibleName|Искусственные материалы|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_15_3.jpg|
|table of contents thumb|text_15_3.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/15-Конспект-Применение_камней.pdf|
|занимает памяти|2,7 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/15. РМ. Применение камней.pdf|
|занимает памяти|51 Кб|
<<lessonAdminPanel>>/%
|visibleName|16. Стекло|
|galleryFolder|environment2/galleries/216. Стекло/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 алмаз.jpg","","",""],
["02 кирпич.jpg","","",""],
["03 стекло в окне.jpg","","",""],
["04 стекло в зеркале.jpg","","",""],
["05 стеклянная посуда.jpg","","",""],
["06 легенда о происхождении стекла.jpg","","",""],
["07 легенда о происхождении стекла.jpg","","",""],
["08 легенда о происхождении стекла.jpg","","",""],
["09 легенда о происхождении стекла.jpg","","",""],
["10 легенда о происхождении стекла.jpg","","",""],
["11 легенда о происхождении стекла.jpg","","",""],
["12 легенда о происхождении стекла.jpg","","",""],
["13 легенда о происхождении стекла.jpg","","",""],
["14 легенда о происхождении стекла.jpg","","",""],
["15 легенда о происхождении стекла.jpg","","",""],
["16 песок.jpg","","",""],
["17 сода.jpg","","",""],
["18 выплавка стекла.jpg","","",""],
["18 известняк.jpg","","",""],
["19 выплавка стекла.jpg","","",""],
["20 выплавка стекла.jpg","","",""],
["21 выплавка стекла.jpg","","",""],
["22 выдувание.jpg","","",""],
["23 выдувание вазы.jpg","","https://www.flickr.com/photos/129367835@N04/16296448000/","Damien Ricard"],
["24 выдувание.jpg","","https://www.flickr.com/photos/ruthhb/16994562958/","Ruth Flickr"],
["25 выдувание.jpg","","https://www.flickr.com/photos/pazavi/5654310722/","Avi Paz"],
["26 преccование стакана.jpg","","",""],
["27 преccование стакана.jpg","","",""],
["28 преccование стакана.jpg","","",""],
["29 готовый стакан.jpg","","",""],
["30 хрусталь ограненный.jpg","","https://www.flickr.com/photos/ffibilw/9656408087/","ffibilw"],
["31 стразы.jpg","","",""],
["32 древнее плоское стекло.jpg","","",""],
["33 древнее стекло.jpg","","https://upload.wikimedia.org/wikipedia/commons/7/75/Roman_window_glass_%28FindID_515459%29.jpg","The Portable Antiquities Scheme, alan charman"],
["34 древнее плоское стекло.jpg","","",""],
["35 производство листового стекла.jpg","","",""],
["36 производство листового стекла.jpg","","",""],
["37 стеклянная столешница.jpg","","",""],
["38 стекло в дверях .jpg","","",""],
["39 продавливание.jpg","","",""],
["40 производство стеклонитей.jpg","","",""],
["41 производство стеклонитей.jpg","","",""],
["42 канат из стеклонитей.jpg","","",""],
["43 сетка из стеклонитей.jpg","","",""],
["44 cтеклоткань в лодке.jpg","","",""],
["45 cтеклообои.jpg","","",""],
["46 стеклообои.jpg","","http://elitstroy.by/upload/iblock/3f4/3f473e0f99340f0fee5b449fcfb95c53.jpg","Элитстрой Магазин стройматериалов"],
["47 стеклообои в поликлинике.jpg","","https://memini.ru/media/2015/03/13/89c6da681cb3a6fc3ec33d4fb22f9036.jpg","Пользователь без имени"]
],
"options":{}}
!%/
|тип шага|video|
|ссылка на контент шага|https://youtu.be/aJYjOnmEY-o|
|visibleName|Стекло|
|visibleName|Как делают стекло?|
|ссылка на контент шага|./oms/216-1/|
|тип шага|task|
|visibleName|Способы работы со стеклом|
|тип шага|task|
|ссылка на контент шага|./oms/216-2/|
|visibleName| Стекло|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_16_1.jpg|
|table of contents thumb|text_16_1.jpg|
|visibleName|Способы работы со стеклом|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_16_2.jpg|
|table of contents thumb|text_16_2.jpg|
|visibleName|Способы работы со стеклом|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_16_3.jpg|
|table of contents thumb|text_16_3.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/16-Конспект-Стекло.pdf|
|занимает памяти|1,9 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/16. РМ. Стекло.pdf|
|занимает памяти|50 Кб|
<<lessonAdminPanel>>/%
|visibleName|17. Цемент|
|galleryFolder|environment2/galleries/217. Цемент/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 мост.jpg","","",""],
["02 здание.jpg","","",""],
["03 причал.jpg","","",""],
["05 взлетная полоса.jpg","","",""],
["06 глина и известняк.jpg","","",""],
["07 футбольное поле.jpg","","",""],
["08 бетонная печь.jpg","","",""],
["09 мешок цемента.jpg","","",""],
["10 завод ЖБИ с мешками.jpg","","",""],
["11 завод ЖБИ.jpg","","",""],
["12 кирпичная кладка.jpg","","",""],
["13 схема компонентов бетона.jpg","","",""],
["14 плитка с бордюром.jpg","","",""],
["15 вазон.jpg","","",""],
["16 садовник.jpg","","",""],
["16 треснувшая кадка.jpg","","",""],
["17 кадки из дерева и бетона.jpg","","",""],
["18 железобетонная кадка.jpg","","",""],
["19 железобетонная ограда.jpg","","",""],
["20 решетка из железных прутьев.JPG","","https://commons.wikimedia.org/wiki/File:Rebarbeams.JPG","Useradd"],
["21 железный мост.jpg","","",""],
["22 бетонный мост.jpg","","",""],
["23 железобетонный мост.jpg","","",""],
["24 плитка из декоративного цемента.jpg","","",""],
["25 плитка.jpg","","",""],
["26 клей для плитки.jpg","","",""],
["27 труба из холодостойкой стали.jpg","","",""],
["28 дом на севере.jpg","","",""],
["29 опора моста в воде.jpg","","",""]
],
"options":{}}
!%/
|тип шага|video|
|ссылка на контент шага|https://youtu.be/190lZa-QwTc|
|visibleName|Цемент|
|visibleName|Из чего это сделано?|
|тип шага|task|
|ссылка на контент шага|./oms/217-2/|
|visibleName|Цемент|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_17_1.jpg|
|table of contents thumb|text_17_1.jpg|
|visibleName|Цемент|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_17_2.jpg|
|table of contents thumb|text_17_2.jpg|
|visibleName|Искусственные материалы|
|ссылка на контент шага|./oms/217-3/|
|тип шага|task|
|contentHeight|620|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/17-Конспект-Цемент.pdf|
|занимает памяти|1,6 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/17. РМ. Цемент.pdf|
|занимает памяти|49 Кб|
<<lessonAdminPanel>>/%
|visibleName|18. Окаменелости|
|galleryFolder|environment2/galleries/218. Окаменелости/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 доисторический мир.jpg","","",""],
["02 аммонит в воде.jpg","","",""],
["03 окаменелость в воде.jpg","","",""],
["04 окаменелый аммонит.jpg","","",""],
["05 моллюск на дне.jpg","","",""],
["06 моллюск и хищник.jpg","","",""],
["07 живой аммонит.jpg","","",""],
["08 наутилус.jpg","","https://www.flickr.com/photos/frankfchuang/16015682011/","Frank Chuang"],
["09 акула.jpg","","",""],
["10 торпеда.jpg","","",""],
["11 белемнит.jpg","","",""],
["12 белемнит изнутри.jpg","","",""],
["13 кальмар.jpg","","",""],
["14 скелет носорога.jpg","","https://www.flickr.com/photos/orientalizing/24918654880/in/photostream/","orientalizing"],
["15 скелет.jpg","","https://www.flickr.com/photos/shanes_stuff/4463953770/in/photostream/","Shane K"],
["16 Жорж Кювье.jpg","","https://www.flickr.com/photos/timetravelnow/5521470738/","Ryan Khatam"],
["17 Жорж Кювье.jpg","","",""],
["18 след.jpg","","",""],
["19 ихтиостега оставляет следы.jpg","","",""],
["20 мох маршанция.jpg","","",""],
["21 папоротник.jpg","","",""],
["22 хвощи.jpg","","",""],
["23 древние нецветковые растения.jpg","","",""],
["24 отпечаток растения.jpg","","https://www.flickr.com/photos/48949043@N06/5621339806/","mike hutchins"],
["25 отпечаток растения.jpg","","https://www.flickr.com/photos/natreswales/19322638074/","Natural Resources Wales Cyfoeth Naturiol Cymru"],
["26 отпечаток растения.jpg","","https://www.flickr.com/photos/natreswales/19919043966/","Natural Resources Wales Cyfoeth Naturiol Cymru"],
["27 комар в смоле.jpg","","",""],
["28 комар в смоле.jpg","","",""],
["29 комар в янтаре.jpg","","",""],
["30 комар в янтаре.jpg","","",""],
["31 эволюция.jpg","","",""]
],
"options":{}}
!%/
|тип шага|video|
|ссылка на контент шага|https://youtu.be/tSOHJemmhWY|
|visibleName|Окаменелости|
|visibleName|Древние моллюски|
|тип шага|task|
|ссылка на контент шага|./oms/218-1/|
|visibleName|Окаменелости|
|ссылка на контент шага|./environment2/JPG/text_18_1.jpg|
|тип шага|pager|
|table of contents thumb|text_18_1.jpg|
|visibleName|Палеонтология|
|ссылка на контент шага|./environment2/JPG/text_18_2.jpg|
|тип шага|pager|
|table of contents thumb|text_18_2.jpg|
|visibleName|Доисторический мир|
|ссылка на контент шага|./environment2/JPG/text_18_3.jpg|
|тип шага|pager|
|table of contents thumb|text_18_3.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/18-Конспект-Окаменелости.pdf|
|занимает памяти|3,5 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/18. РМ. Окаменелости.pdf|
|занимает памяти|50 Кб|
<<lessonAdminPanel>>/%
|visibleName|19. Образование почвы|
|galleryFolder|environment2/galleries/219. Образование почвы/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 почва.jpg","","",""],
["02 организмы почвы.jpg","","",""],
["03 корнеплоды в почве.jpg","","",""],
["04 цветок и плод.jpg","","",""],
["05 мёрзлая почва.jpg","","",""],
["06 сухая почва.jpg","","",""],
["07 хорошая почва.jpg","","",""],
["08 разрушение камней.jpg","","",""],
["09 разрушение камней.jpg","","",""],
["10 разрушение камней.jpg","","",""],
["11 разрушение камней.jpg","","",""],
["12 перенос песка.jpg","","",""],
["13 образование перегноя.jpg","","",""],
["14 образование перегноя.jpg","","",""],
["15 образование перегноя.jpg","","",""],
["16 образование перегноя.jpg","","",""],
["17 образование перегноя.jpg","","",""],
["18 образование глины.jpg","","",""],
["19 образование глины.jpg","","",""],
["20 глина.jpg","","",""],
["21 глиняная посуда.jpg","","",""],
["22 песок.jpg","","",""],
["23 глина.jpg","","",""],
["24 перегной.jpg","","",""],
["25 вода.jpg","","",""],
["26 воздух.jpg","","",""],
["27 воздух между песчинками.jpg","","",""],
["28 организмы.jpg","","",""],
["29 компоненты почвы.jpg","","",""]
],
"options":{}}
!%/
|тип шага|video|
|ссылка на контент шага|https://youtu.be/uP9k3nYDGVA|
|visibleName|Образование почвы|
|visibleName|Образование почвы
|
|visibleName|Образование почвы
|
|visibleName|Образование почвы|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_19_1.jpg|
|table of contents thumb|text_19_1.jpg|
|visibleName|Приготовь почву|
|ссылка на контент шага|./oms/219-1/|
|тип шага|task|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/19-Конспект-Образование_почвы.pdf|
|занимает памяти|2 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/19. РМ. Образование почвы.pdf|
|занимает памяти|46 Кб|
<<lessonAdminPanel>>/%
|visibleName|20. Состав и свойства почвы|
|galleryFolder|environment2/galleries/220. Состав и свойства почвы/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 компоненты почвы.jpg","","",""],
["02 песчаная почва.jpg","","",""],
["03 супесь.jpg","","",""],
["04 суглинок.jpg","","",""],
["05 глина.jpg","","",""],
["06 глина.jpg","","",""],
["07 растениеводство.jpg","","",""],
["08 лёгкая почва.jpg","","",""],
["09 тяжёлая почва.jpg","","",""],
["10 чернозём.jpg","","",""],
["11 чернозём в России.jpg","","",""],
["12 песок плохо удерживает воду.jpg","","",""],
["13 глина хорошо удерживает воду.jpg","","",""],
["14 капиллярный эффект.jpg","","",""],
["15 капилляры почвы.jpg","","",""],
["16 рыхление.jpg","","",""],
["17 бактерия и гриб.jpg","","",""],
["18 карта России.jpg","","",""]
],
"options":{}}
!%/
|тип шага|video|
|ссылка на контент шага|https://youtu.be/o4tmuRirI0s|
|visibleName|Состав и свойства почвы|
|visibleName|Разновидности почвы|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_20_1.jpg|
|table of contents thumb|text_20_1.jpg|
|visibleName|Почему почва плодородна|
|ссылка на контент шага|./environment2/JPG/text_20_2.jpg|
|тип шага|pager|
|table of contents thumb|text_20_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/20-Конспект-Состав_и_свойства_почвы.pdf|
|занимает памяти|1,8 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/20. РМ. Состав и свойства почвы.pdf|
|занимает памяти|54 Кб|
<<lessonAdminPanel>>/%
|visibleName|21. Зачем нужны карты и планы|
|galleryFolder|environment2/galleries/221. Зачем нужны карты и планы/|
!!!Описание
<style>
a[href="https://commons.wikimedia.org/wiki/File:Ebstorfer-stich2.jpg"]{font-size:0px;}
a[href="https://commons.wikimedia.org/wiki/File:Ebstorfer-stich2.jpg"]:before{content:"Эбсторфская карта, около 1300 года";font-size:11px;}
a[href="https://commons.wikimedia.org/wiki/File:1482_Cosmographia_Germanus.JPG"]{font-size:0px;}
a[href="https://commons.wikimedia.org/wiki/File:1482_Cosmographia_Germanus.JPG"]:before{content:"Карта Йохана Шнитцера по «Космографии» Птолемея, написанной около 150 года";font-size:11px;}
a[href="https://commons.wikimedia.org/wiki/File:Map_of_Angelino_Dulcert_cropped.jpg"]{font-size:0px;}
a[href="https://commons.wikimedia.org/wiki/File:Map_of_Angelino_Dulcert_cropped.jpg"]:before{content:"Карта Анджелино Далорто, 1339 год";font-size:11px;}
</style>
!%//%
!gallery data
{"data":[
["01 бизоны.jpg","","",""],
["02 план охоты сбоку.jpg","","",""],
["03 план охоты сверху.jpg","","",""],
["04 карта России.jpg","","",""],
["05 петроглифы Канозера.jpg","","https://gazeta-licey.ru/wp-content/uploads/2015/03/petroglif6.jpg","Валентина Чаженгина"],
["06 карта Птолемея.JPG","","https://commons.wikimedia.org/wiki/File:1482_Cosmographia_Germanus.JPG","Карта Йохана Шнитцера по «Космографии» Птолемея, написанной около 150 года"],
["07 эбсторфская карта.jpg","","https://commons.wikimedia.org/wiki/File:Ebstorfer-stich2.jpg","Эбсторфская карта, около 1300 года"],
["08 карта Анджелино Далорто.jpg","","https://commons.wikimedia.org/wiki/File:Map_of_Angelino_Dulcert_cropped.jpg","Карта Анджелино Далорто, 1339 год"],
["09 прямоугольник.jpg","","",""],
["10 чашка.jpg","","",""],
["11 самовар.jpg","","",""],
["12 план стола и шкатулки.jpg","","",""],
["13 самокат.jpg","","",""],
["14 план самоката.jpg","","",""],
["15 лампа.jpg","","",""],
["16 стул.jpg","","",""],
["17 игрушечный слон.jpg","","",""],
["19 план местности.jpg","","",""],
["20 дом.jpg","","",""],
["21 дом сверху.jpg","","",""],
["23 школа.jpg","","",""],
["24 школа сверху.jpg","","",""],
["25 план школы.jpg","","",""],
["26 дерево.jpg","","",""],
["27 дерево сверху.jpg","","",""],
["28 дерево план.jpg","","",""],
["29 Кремль.jpg","","",""],
["30 план Кремля.jpg","","",""]
],
"options":{}}
!%/
|тип шага|video|
|ссылка на контент шага|https://youtu.be/o3mf49SeCRs|
|visibleName|Зачем нужны карты и планы|
|ссылка на контент шага|./environment2/JPG/text_21_1.jpg|
|тип шага|pager|
|visibleName|Карта и план|
|table of contents thumb|text_21_1.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/21-Конспект-Зачем_нужны_карты_и_планы.pdf|
|занимает памяти|1 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/21. РМ. Зачем нужны карты и планы.pdf|
|занимает памяти|45 Кб|
<<lessonAdminPanel>>/%
|visibleName|22. Город и окрестности |
|galleryFolder|environment2/galleries/222. Город и окрестности/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 дома и улицы на карте.jpg","","",""],
["02 автомагистраль на карте.jpg","","",""],
["03 автомагистраль на карте.jpg","","",""],
["04 автомагистраль на карте.jpg","","",""],
["05 перекресток на карте.jpg","","",""],
["06 парк зимой.jpg","","",""],
["07 парк осенью.jpg","","",""],
["08 парк летом.jpg","","",""],
["09 парк на карте.jpg","","",""],
["10 фрагмент плана города с парком.jpg","","",""],
["11 вокзал на карте.jpg","","",""],
["12 два обозначения железной дороги на карте.jpg","","",""],
["13 мост над дорогой на карте.jpg","","",""],
["14 мост над рекой на карте.jpg","","",""],
["15 поселок на карте.jpg","","",""],
["16 поселок с табличкой .jpg","","",""],
["17 план и название.jpg","","",""],
["18 река на карте.jpg","","",""],
["19 лес.jpg","","",""],
["20 карта с лесом.jpg","","",""],
["21 хвойный лес.jpg","","",""],
["22 хвойный лес на карте.jpg","","",""],
["23 лиственный лес.jpg","","",""],
["24 лиственный лес на карте.jpg","","",""],
["25 смешанный лес.jpg","","",""],
["26 смешанный лес на карте.jpg","","",""],
["27 тропинка на карте.jpg","","",""],
["28 луг на карте.jpg","","",""],
["29 кусты.jpg","","",""],
["30 заросли кустарника на карте.jpg","","",""],
["31 обозначение кустов на карте.jpg","","",""],
["32 заросли кустарника и дом.jpg","","",""],
["33 огород на карте.jpg","","",""],
["34 вспаханное поле.jpg","","",""],
["35 поле зеленое.jpg","","",""],
["36 поле со злаками.jpg","","",""],
["37 поле зимой.jpg","","",""],
["38 поле зимой на карте.jpg","","",""],
["39 колодец на карте.jpg","","",""],
["40 ЛЭП на карте.jpg","","",""],
["41 общая карта.jpg","","",""]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/n7-1ZjyNe6k|
|тип шага|video|
|visibleName|Город и окрестности|
|visibleName|Город и окрестности|
|ссылка на контент шага|./environment2/JPG/text_22_1.jpg|
|тип шага|pager|
|table of contents thumb|text_22_1.jpg|
|visibleName|Город и окрестности|
|ссылка на контент шага|./environment2/JPG/text_22_2.jpg|
|тип шага|pager|
|table of contents thumb|text_22_2.jpg|
|visibleName|Город и окрестности|
|ссылка на контент шага|./environment2/JPG/text_22_3.jpg|
|тип шага|pager|
|table of contents thumb|text_22_3.jpg|
|visibleName|Обозначения на плане|
|ссылка на контент шага|./oms/222-1/|
|тип шага|task|
|contentHeight|620|
|visibleName|Обозначения на плане|
|ссылка на контент шага|./oms/222-2/|
|тип шага|task|
|contentHeight|620|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/22-Конспект-Город_и_окрестности.pdf|
|занимает памяти|5 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/22. РМ. Город и окрестности.pdf|
|занимает памяти|48 Кб|
<<lessonAdminPanel>>/%
|visibleName|23. Реки|
|galleryFolder|environment2/galleries/223. Реки/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 родник.jpg","","",""],
["02 родник на карте.jpg","","",""],
["03 исток маленькой речки.jpg","","",""],
["04 название реки.jpg","","",""],
["05 слияние ручьев.jpg","","",""],
["06 излучина и песок на карте.jpg","","",""],
["07 море.jpg","","",""],
["08 пустыня.jpg","","",""],
["09 обозначение песка на карте.jpg","","",""],
["10 излучина и овраг.jpg","","",""],
["11 обрыв на карте.jpg","","",""],
["12 овраг и ребенок.jpg","","",""],
["13 проверка воды взрослым.jpg","","",""],
["14 направление течения на карте.jpg","","",""],
["15 образование старицы.jpg","","",""],
["16 образование старицы.jpg","","",""],
["17 образование старицы.jpg","","",""],
["18 образование старицы.jpg","","",""],
["19 старица на карте.jpg","","",""],
["20 озеро.jpg","","",""],
["21 озера с названиями на карте.jpg","","",""],
["22 устье.jpg","","",""],
["23 дельта.jpg","","",""],
["24 дельта на карте.jpg","","",""],
["25 дельта Невы.jpg","","",""],
["26 притоки на карте.jpg","","",""],
["27 болото на карте.jpg","","",""],
["28 болото.jpg","","",""],
["29 болото.jpg","","",""],
["30 озеро.jpg","","",""],
["31 озеро.jpg","","",""],
["32 план реки.jpg","","",""],
["33 мост в Карелии.jpg","","",""],
["34 мост и его обозначение.jpg","","",""],
["35 пристань на реке.jpg","","",""],
["36 пристань на реке и ее обозначение.jpg","","",""],
["37 порт в тумане.jpg","","",""],
["38 порт и его обозначение.jpg","","",""],
["39 водопад между скал.jpg","","",""],
["40 водопад и его обозначение.jpg","","",""],
["41 реки России.jpg","","",""],
["42 река Волга.jpg","","",""]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/wVO-J6UJzKs|
|тип шага|video|
|visibleName|Реки|
|visibleName|Реки|
|ссылка на контент шага|./environment2/JPG/text_23_1.jpg|
|тип шага|pager|
|table of contents thumb|text_23_1.jpg|
|visibleName|Реки|
|ссылка на контент шага|./environment2/JPG/text_23_2.jpg|
|тип шага|pager|
|table of contents thumb|text_23_2.jpg|
|visibleName|Обозначения на плане|
|ссылка на контент шага|./oms/223-1/|
|тип шага|task|
|contentHeight|620|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/23-Конспект-Реки.pdf|
|занимает памяти|2,6 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/23. РМ. Реки.pdf|
|занимает памяти|50 Кб|
<<lessonAdminPanel>>/%
|visibleName|24. Рельеф|
|galleryFolder|environment2/galleries/224. Рельеф/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 холм и впадина.jpg","","",""],
["02 холм и впадина сверху.jpg","","",""],
["03 холм.jpg","","",""],
["04 холм зимой.jpg","","",""],
["05 холм летом.jpg","","",""],
["06 холм.jpg","","",""],
["07 холм.jpg","","",""],
["08 холм.jpg","","",""],
["09 холм на плане.jpg","","",""],
["10 крутой склон.jpg","","",""],
["11 холм на плане.jpg","","",""],
["12 крутой холм на плане.jpg","","",""],
["13 картографы.jpg","","",""],
["14 гора на карте.jpg","","",""],
["15 впадина.jpg","","",""],
["16 впадина на плане.jpg","","",""],
["17 холм с бергштрихами.jpg","","",""],
["18 обрыв на плане.jpg","","",""],
["19 яма.jpg","","",""],
["20 бугор.jpg","","",""],
["21 карта мира.jpg","","",""],
["22 карта мира с рельефом.jpg","","",""],
["23 горы на карте.jpg","","",""],
["24 низина на карте.jpg","","",""],
["25 водоём на карте.jpg","","",""],
["26 легенда.jpg","","",""],
["27 карта мира с легендой.jpg","","",""]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|Рельеф|
|ссылка на контент шага|https://youtu.be/fHBUFC15OF8|
|visibleName|Рельеф|
|ссылка на контент шага|./environment2/JPG/text_24_1.jpg|
|тип шага|pager|
|table of contents thumb|text_24_1.jpg|
|visibleName|Рельеф|
|ссылка на контент шага|./environment2/JPG/text_24_2.jpg|
|тип шага|pager|
|table of contents thumb|text_24_2.jpg|
|visibleName|Обозначения на плане|
|ссылка на контент шага|./oms/224-1/|
|тип шага|task|
|contentHeight|620|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/24-Конспект-Рельеф.pdf|
|занимает памяти|2,7 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/24. РМ. Рельеф.pdf|
|занимает памяти|48 Кб|
<<lessonAdminPanel>>/%
|visibleName|25. Стороны горизонта|
|galleryFolder|environment2/galleries/225. Стороны горизонта/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 план.jpg","","",""],
["02 Земля.jpg","","",""],
["03 Земля в разрезе.jpg","","",""],
["04 земля и север.jpg","","",""],
["05 Земля и юг.jpg","","",""],
["06 полюса.jpg","","",""],
["07 полюса и восток.jpg","","",""],
["08 стороны горизонта.jpg","","",""],
["09 ориентирование по звёздам.jpg","","",""],
["10 компас.jpg","","",""],
["11 путешественники.jpg","","",""],
["12 компас.jpg","","",""],
["13 корабль.jpg","","",""],
["14 самолет.jpg","","",""],
["15 компас на приборных панелях.jpg","","",""],
["16 геолог и руда.jpg","","",""],
["17 муравейник.jpg","","",""],
["18 муравейник.jpg","","",""],
["19 муравейник.jpg","","",""],
["20 дерево.jpg","","",""],
["21 мох.jpg","","",""],
["22 мох на дереве.jpg","","",""],
["23 мох на дереве.jpg","","",""],
["24 мох на дереве.jpg","","",""],
["25 мох на дереве.jpg","","",""],
["26 Россия на Земле.jpg","","",""],
["27 снежный лес.jpg","","https://www.flickr.com/photos/stawrus/12459002885/in/album-72157640832769374/","Vitaly Stavrovskiy"],
["28 снег в Сочи.jpg","","https://www.flickr.com/photos/dvchigarev/24227399286/","Dmitriy Chigarev"],
["29 цветы в Арктике.jpg","","https://www.flickr.com/photos/62079127@N04/35064950664/in/photostream/","billmired"],
["30 сухой луг и горы.jpg","","https://www.flickr.com/photos/rietje/16780462190/","Rita Willaert"],
["31 путешественник.jpg","","",""],
["32 просека.jpg","","",""],
["33 просека.jpg","","",""],
["34 квартальный столб.jpg","","",""],
["35 квартальный столб сверху.jpg","","",""],
["36 квартальный столб сверху.jpg","","",""],
["37 компас и карта .jpg","","",""],
["38 определение направления по солнцу.jpg","","",""],
["39 если вы заблудились.jpg","","",""],
["40 если вы заблудились.jpg","","",""],
["41 если вы заблудились.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Стороны горизонта|
|тип шага|video|
|ссылка на контент шага|https://youtu.be/v9o1Ebvdzpo |
|visibleName|Стороны горизонта|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_25_1.jpg|
|table of contents thumb|text_25_1.jpg|
|visibleName|Стороны горизонта|
|тип шага|pager|
|ссылка на контент шага|./environment2/JPG/text_25_2.jpg|
|table of contents thumb|text_25_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/25-Конспект-Стороны_горизонта.pdf|
|занимает памяти|1,6 Мб|
<<lessonAdminPanel>>/%
|visibleName|26. Мир на карте|
|galleryFolder|./environment2/galleries/226. Карта мира и карта России/|
!!!Описание
!%//%
!gallery data
{"data":[
["001 карта мира.jpg","","",""],
["002 карта мира.jpg","","",""],
["003 суша и вода.jpg","","",""],
["004 континенты.jpg","","",""],
["005 Евразия.jpg","","",""],
["006 Россия в Евразии.jpg","","",""],
["007 Африка.jpg","","",""],
["008 Африка.jpg","","",""],
["009 Африка с животными.jpg","","",""],
["010 лев.jpg","","https://www.flickr.com/photos/90457959@N06/15074458107/","Valentin Delaye"],
["011 бегемоты.jpg","","https://www.flickr.com/photos/fvfavo/15251961410/","Mario Micklisch"],
["012 жираф.jpg","","https://www.flickr.com/photos/marthaenpiet/437554317/in/photostream/","Martha de Jong-Lantink"],
["013 Австралия.jpg","","",""],
["014 Австралия.jpg","","",""],
["015 Австралия с животными.jpg","","",""],
["016 коалы.jpg","","https://www.flickr.com/photos/midgley/6373005173/","Adrian Midgley"],
["017 кенгуру.jpg","","https://www.flickr.com/photos/inannabintali/7908041480/in/photolist-bhRxBt-cDpiDm-pCF4GN-f7Zgkx-e74U4e-fEv81P-WkPRXq-d5m7iL-8TfCTQ-dhkgst-d3NMdL-dLMp3N-oHVa8A-azXsRS-acwT3-556X5d-fQ1Ahe-me3E1F-U6v8mL-6Ubby-9L3Les-4hrzPQ-aqgKMc-Svno5s-nrggVd-qfbSAH-E18X1A-4hnwyV-38X8Di-8crFiA-2bpnQV-dzpjJ5-Y8qjd8-asrr1V-5U8jM7-4hrBMN-92w6RP-4hrzs1-7xgBZh-2QR8rV-Ua5cxr-qz7iEj-pdYgA-pe6si-8K1GJ2-7R2JAd-buuGWN-pdYJ5-eNGVa-6MCm97/","Bilby Summerhill"],
["018 утконос.jpg","","https://www.flickr.com/photos/darrenputtock/15220743500/in/photostream/","Darren Puttock"],
["019 две Америки.jpg","","",""],
["020 континенты.jpg","","",""],
["021 Антарктида.jpg","","",""],
["022 границы океанов.jpg","","",""],
["023 Тихий океан.jpg","","",""],
["024 Тихий океан.jpg","","",""],
["025 Атлантический океан.jpg","","",""],
["026 Атлантический океан.jpg","","",""],
["027 Индийский океан.jpg","","",""],
["028 Индийский океан.jpg","","",""],
["029 Северный ледовитый океан.jpg","","",""],
["030 вид с ледокола на лёд.jpg","","https://www.flickr.com/photos/gsfc/7163118611/","NASA Goddard Space Flight Center"],
["031 лёд на воде океана.jpg","","https://www.flickr.com/photos/usgeologicalsurvey/4370267907/","U.S. Geological Survey"],
["032 айсберг.jpg","","https://www.flickr.com/photos/usoceangov/8290528771/","NOAA's National Ocean Service"],
["033 океан во льду.jpg","","https://www.flickr.com/photos/usgeologicalsurvey/4370266339/in/photolist-7EbKVD-7zaJEr-7EbKkz-5JDB4S-mpf5ih-bWouiV-e7WisY-oAG34P-7zaLYr-c6uGJG-fpLL8D-5EzGET-p4qJJs-N4H7QG-VzgStK-of4jUd-dSzo81-nq8bQJ-cZK1Sf-5FdCpF-8F6YV1-7EfByY-jPozoN-BNEoGa-oQvZRf-7EfANh-ozWES6-bUYRKt-8F714A-7Efzwh-7EfAAs-pJZ3jt-dSWiLD-7c1rZh-8F3QaH-2LyHPL-8F6ZQd-7Efzvw-dT2Uwd-rGWUia-4RKPnj-bNMk4v-9GVZfY-kygdSn-5EYDPp-BNJ4rP-7EbHqZ-8ziiU5-bUYRJ4-9qTMFt","U.S. Geological Survey"],
["034 Южный океан.jpg","","",""],
["035 море во льду.jpg","","https://www.flickr.com/photos/24789491@N02/16686882635/","Jesse Nickrand"],
["036 пальма над морем.jpg","","https://www.flickr.com/photos/aussieskibum/8457109447/","Mark Kenworthy"],
["037 морская соль.jpg","","https://www.flickr.com/photos/46866137@N07/4726045999/","lapatira"],
["038 берег моря.jpg","","https://www.flickr.com/photos/glowform/7667417632/","Jakub Michankow"],
["039 купающиеся на море.jpg","","https://www.flickr.com/photos/agmwhite/15830662112/","Angus White"],
["040 человек в морскои волне.jpg","Человек в морской волне","https://www.flickr.com/photos/129663546@N08/39383739151/","Christophe GLERANT"],
["041 виды морей на карте.jpg","","",""],
["042 виды морей на карте.jpg","","",""],
["043 виды морей на карте.jpg","","",""],
["044 Средиземное море.jpg","","",""],
["045 Чёрное море.jpg","","",""],
["046 граница России и Чёрное море.jpg","","",""],
["047 Охотское море.jpg","","",""],
["048 граница России и Охотское море.jpg","","",""],
["049 подзорная труба.jpg","","",""],
["050 стороны горизонта.jpg","","",""],
["051 река.jpg","","",""],
["052 Нил.jpg","","",""],
["053 Нил из космоса ночью.jpg","","https://www.flickr.com/photos/nasamarshall/6955974787/","NASA's Marshall Space Flight Center"],
["054 Нил.jpg","","https://www.flickr.com/photos/shinjieo/5198194482/","Jiseon Shin"],
["055 Берега Нила.jpg","","https://www.flickr.com/photos/91352576@N06/8293080565/","NASA Goddard Space Flight Center"],
["056 вид на Нил.jpg","","https://www.flickr.com/photos/boshamite/7024808715/in/photostream/","Hugh Fiske"],
["057 Нил.jpg","","",""],
["058 направление Нила.jpg","","",""],
["059 пустыня.jpg","","",""],
["060 Сахара.jpg","","https://www.flickr.com/photos/itsrick208/13223115424/","Patrick Wuske"],
["061 Сахара и верблюды.jpg","","https://www.flickr.com/photos/12587661@N06/2658551967/in/photolist-53VLST-oWuVnr-F7zDbH-TzqXMU-m1rA4f-S1Kh1N-cydn2j-bMiAGi-2CTnnS-eQG7jz-Smw8YQ-5Mmxtc-SmvBey-T43Se7-nX7pqi-7hb4Jp-2q9YLd-4zp6Fc-2ndZtg-2qav6w-2SaoQp-2ne2z4-2q5CZn-2o8tGZ-aFu8vT-e7wdjg-2q63mn-2q9WPb-2qauwA-2qaw49-8p3rra-aJ7qV-2mfTJi-5PSbMH-ggQ995-KrGUD-e8r8Kc-7Fp5N8-8BjQx9-8p6PPQ-2SeKJA-48i1EH-61w1P3-eZ4FH9-e7wa52-8p3Exk-2SeL7s-2SanXc-2mfTWX-aFu8oF","Michael Gwyther-Jones"],
["062 Сахара.jpg","","https://www.flickr.com/photos/antoncino/12822154214/","Antonio Cinotti"],
["063 Нил из космоса.jpg","","https://www.flickr.com/photos/gsfc/5635018418/","NASA Goddard Space Flight Center"],
["064 Амазонка.jpg","","",""],
["065 Амазонка.jpg","","",""],
["066 направление Амазонки.jpg","","",""],
["067 крокодил в Амазонке.jpg","","https://www.flickr.com/photos/alainrobichon/1733855284/","Alain Robichon"],
["068 лодка в Амазонке.jpg","","https://www.flickr.com/photos/sebmar/25124396337/","The French Travel Photographer"],
["069 бескраиняя Амазонка.jpg","Бескрайняя Амазонка","https://www.flickr.com/photos/75348994@N00/8614800098/","jai Mansson"],
["070 Евразия.jpg","","",""],
["071 Волга.jpg","","",""],
["072 направление Волги.jpg","","",""],
["073 порты на Волге.jpg","","",""],
["074 Волга и ее притоки.jpg","","",""],
["075 Волга и ее притоки.jpg","","",""],
["076 путешественник.jpg","","",""],
["077 Каспийское море.jpg","","",""],
["078 Обь, Енисей и Лена.jpg","","",""],
["079 Обь, Енисей и Лена.jpg","","",""],
["080 направления трех рек.jpg","","",""],
["081 Байкал.jpg","","",""],
["082 Байкал и скалы.jpg","","https://www.flickr.com/photos/41752272@N06/9026626608/in","Andrey Klimov"],
["083 Байкал и скалы.jpg","","https://www.flickr.com/photos/116623991@N02/12367739293/in","Olga Gladushevskaya"],
["084 лед на поверхности Байкала.jpg","","https://www.flickr.com/photos/egorodet/40436367892/","Evgeny Gorodetsky"],
["085 мыс Бурхан.jpg","","https://www.flickr.com/photos/75128377@N06/15333011434/","andrey_kud"],
["086 прозрачная вода Байкала.jpg","","https://www.flickr.com/photos/124107318@N03/27282819182","samkrassenstein"],
["087 прозрачная вода Байкала.jpg","","https://www.flickr.com/photos/janab/3709241498/","La Rusa Loca"],
["088 Гималаи.jpg","","https://www.flickr.com/photos/snackon/2554167173/","--a."],
["089 храм в Гималаях.jpg","","https://www.flickr.com/photos/reurinkjan/34658404735/","reurinkjan"],
["090 деревня в Гималаях.jpg","","https://www.flickr.com/photos/reurinkjan/40690643462/","reurinkjan"],
["091 Гималаи.jpg","","",""],
["092 Гималаи.jpg","","https://www.flickr.com/photos/reurinkjan/6949214394","reurinkjan"],
["093 Гималаи.jpg","","https://www.flickr.com/photos/23985194@N06/15805770412/","pallab seth"],
["094 пики Гималаев.jpg","","https://www.flickr.com/photos/sikari_kukur/7402530874/","Doug Kofsky"],
["095 пастух в Гималаях.jpg","","https://www.flickr.com/photos/23985194@N06/15930732332","pallab seth"],
["096 Анды и Кордильеры.jpg","","",""],
["097 древний город в Андах.jpg","","https://www.flickr.com/photos/karlnorling/7427789764/","karlnorling"],
["098 дорога в Анды.jpg","","https://www.flickr.com/photos/arnaoot/2366362333/in/","Ramsey Arnaoot"],
["099 Кордильеры.jpg","","https://www.flickr.com/photos/140435755@N07/35823251951/in","Hermann Blankenbach"],
["100 Анды и лама.jpg"," Анды и лама","https://www.flickr.com/photos/gregness/13126118804/","Greg Ness"],
["101 Кордильеры и олени.jpg"," Кордильеры и олени","https://www.flickr.com/photos/98620640@N02/23119350904/","Craig Goettsch"],
["102 снежный пик Кордильер.jpg"," Снежный пик Кордильер","https://www.flickr.com/photos/briggsy/7922404078/","John Briggs"],
["103 Кордильеры.jpg"," Кордильеры","https://www.flickr.com/photos/malvino_cba/3293094435/","Malvino_CBA"],
["104 Кавказ.jpg"," Кавказ","https://www.flickr.com/photos/milestravelpics/15851987508/","Miles Traveled"],
["105 Эльбрус.jpg"," Эльбрус","https://www.flickr.com/photos/taema_dreiden/19218286748/","Taema"],
["106 Урал, Саяны и Алтай.jpg"," Урал, Саяны и Алтай","",""],
["107 Урал, Саяны и Алтай.jpg"," Урал, Саяны и Алтай","",""],
["108 Урал, Саяны и Алтай.jpg"," Урал, Саяны и Алтай","",""],
["109 карта России.jpg"," Карта России","",""],
["110 равнины.jpg"," Равнина","",""],
["111 Западно-Сибирская равнина.jpg"," Западно-Сибирская равнина","",""],
["112 Западно-Сибирская равнина.jpg"," Западно-Сибирская равнина","",""],
["113 Западно-сибирское месторождение.jpg"," Западно-сибирское месторождение","http://www.gazprom.ru/f/posts/32/130407/dobycha-urengoy-3.jpg","Газпром"],
["114 Западно-Сибирская равнина.jpg"," Западно-Сибирская равнина","https://commons.wikimedia.org/wiki/File:%D0%92%D0%B8%D0%B4_%D0%BD%D0%B0_%D1%80%D0%B0%D0%B2%D0%BD%D0%B8%D0%BD%D1%83_%D0%B2_%D0%91%D0%B5%D0%BB%D0%BE%D0%BA%D1%83%D1%80%D0%B8%D1%85%D0%B5.JPG","Чуваев Николай"]
],
"options":{}}
!%/
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/26-Конспект-Мир_на_карте.pdf|
|занимает памяти|2,74 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment2/PDF_2/26. РМ. Мир на карте.pdf|
|занимает памяти|55 Кб|
<<lessonAdminPanel>>/%
|visibleName|27. Природные зоны России|
!!!Описание
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/0ILJDHFJjHs|
|visibleName|Природные зоны|
|тип шага|video|
|visibleName|Природные зоны России|
|ссылка на контент шага|./oms/227-1/|
|тип шага|task|
|visibleName|Природные зоны России|
|ссылка на контент шага|./environment2/JPG/text_27_1.jpg|
|тип шага|pager|
|table of contents thumb|text_27_1.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment2/PDF/27-Конспект-Природные_зоны_России.pdf|
|занимает памяти|2,06 Мб|
|visibleName|Над курсом работали|
<<lessonAdminPanel>>/%
!!!Описание
<br><table class="borderless inform">
<tbody>
<tr class="evenRow">
<td>Автор</td>
<td>Роман Борисович Соловьёв</td>
</tr>
<tr class="oddRow">
<td>Научные редакторы</td>
<td>
Павел Юрьевич Плечов, д. г.-м. н.<br>
Елена Моисеевна Гурвич, к. г.-м. н.<br>
Пётр Васильевич Александров, к. г.-м. н.<br>
Тимофей Владимирович Орлов, к. г.-м.
</td>
</tr>
<tr class="evenRow">
<td>Редактор</td>
<td>Анна Булгакова</td>
</tr>
<tr class="evenRow">
<td>Дизайн и вёрстка</td>
<td>
Сергей Серёгин<br>
Полина Лосева
</td>
</tr>
<tr class="oddRow">
<td>Иллюстрации</td>
<td>
Екатерина Веселова<br>
Любовь Макарова<br>
Алексей Власов<br>
Полина Леоненко<br>
Анна Кузина
</td>
</tr>
<tr class="evenRow">
<td>Анимация</td>
<td>
Демир Куулар<br>
Вероника Веселова<br>
Екатерина Веселова
</td>
</tr>
<tr class="oddRow">
<td>
Монтаж и съёмка
</td>
<td>
Алексей Марков<br>
Даулет Жанайдаров<br>
Жамсо Хайдапов
</td>
</tr>
<tr class="evenRow">
<td>Разработка<br>интерактивных заданий</td>
<td>Михаил Киселёв<br>
Николай Барков<br>
Джиого Слепетис
</td>
</tr>
<tr class="evenRow">
<td>Разработка<br>платформы</td>
<td>Яков Литвин
</td>
</tr>
<tr class="oddRow">
<td>Съёмка</td>
<td>
Елена Раднабазарова<br>
Инна Прово
</td>
</tr>
<tr class="evenRow">
<td>Подбор фотографий и видеофрагментов</td>
<td>Елизавета Лосева<br>
Елена Мурашова<br>
Пелагея Негруль
</td>
</tr>
<tr class="oddRow">
<td>Музыкальная заставка</td>
<td>Роман Куперман</td>
</tr>
<tr class="evenRow">
<td>Голос Лиса</td>
<td>Григорий Громов
</td>
</tr>
<tr class="evenRow">
<td>Руководитель проекта</td>
<td>Анна Булгакова
</td>
</tr>
</tbody>
</table>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
<<lessonAdminPanel>>/%
|visibleName|1. Части тела|
!!!Описание
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/GPXPqyVBdTs|
|тип шага|video|
|visibleName|Части тела|
|visibleName|Части тела|
|ссылка на контент шага|./environment3/jpg/environment3_01_01.jpg|
|тип шага|pager|
|table of contents thumb|301 (1).jpg|
|visibleName|Системы органов|
|ссылка на контент шага|./environment3/jpg/environment3_01_02.jpg|
|тип шага|pager|
|table of contents thumb|301 (2).jpg|
|visibleName|Части тела|
|ссылка на контент шага|./oms/301-1/|
|тип шага|task|
|visibleName|Найди лишний|
|ссылка на контент шага|./oms/301-2/|
|тип шага|task|
|contentHeight|600|
|ссылка на материал|./environment3/pdf/environment3_01_k.pdf|
|занимает памяти|868 Кб|
|visibleName|Конспект для ученика|
<<lessonAdminPanel>>/%
|visibleName|2. Опорная система|
|galleryFolder|environment3/galleries/02. Опорная система/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 скелет.jpg"],
["02 зонт.jpg"],
["04 кость.jpg"],
["05 лопатка.jpg"],
["06 кость в разрезе.jpg"],
["07 шов.jpg"],
["08 швы черепа.jpg"],
["09 сустав.jpg"],
["10 строение сустава.jpg"],
["11 строение сустава.jpg"],
["12 хрящевая рыба.jpg"],
["13 скелет хрящевой рыбы.jpg"],
["14 строение сустава.jpg"],
["15 хрящи между позвонками.jpg"],
["16 хрящ.jpg"]
],
"options":{}}
!%/
|visibleName|Опорная система|
|тип шага|video|
|ссылка на контент шага|https://youtu.be/lGc5PMJRCcs|
|visibleName|Опорная система. Строение кости|
|тип шага|pager|
|ссылка на контент шага|./environment3/jpg/environment3_02_01.jpg|
|table of contents thumb|302 (1).jpg|
|visibleName|Соединения костей|
|тип шага|pager|
|ссылка на контент шага|./environment3/jpg/environment3_02_02.jpg|
|table of contents thumb|302 (2).jpg|
|visibleName|Части кости|
|ссылка на контент шага|./oms/302-1/|
|тип шага|task|
|contentHeight|620|
|visibleName|Три способа соединения костей|
|ссылка на контент шага|./oms/302-2/|
|тип шага|task|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/302. РМ. Опорная система.pdf|
|занимает памяти|54 Кб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/301. РМ. Части тела.pdf|
|занимает памяти|53 Кб|
<<lessonAdminPanel>>/%
|visibleName|3. Наши главные кости|
|galleryFolder|environment3/galleries/03. Наши главные кости/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 скелет.jpg"],
["02 череп.jpg"],
["03 позвоночник.jpg"],
["04 птичья клетка.jpg"],
["05 грудная клетка.jpg"]
],
"options":{}}
!%/
|visibleName|Наши главные кости|
|ссылка на контент шага|https://youtu.be/FAv50kqN96Q|
|тип шага|video|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment3/pdf/environment3_03_k.pdf|
|занимает памяти|498 Кб|
|visibleName|Наши главные кости|
|ссылка на контент шага|./environment3/jpg/environment3_03_01.jpg|
|тип шага|pager|
|table of contents thumb|303 (1).jpg|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/303. РМ. Наши главные кости.pdf|
|занимает памяти|46 Кб|
|visibleName|Череп и позвоночник|
|ссылка на контент шага|./environment3/jpg/environment3_03_02.jpg|
|тип шага|pager|
|table of contents thumb|303 (2).jpg|
|тип шага|task|
|visibleName|Собери скелет|
|ссылка на контент шага|./oms/303-1/|
|contentHeight|620|
|visibleName|Подпиши кости черепа|
|ссылка на контент шага|./oms/303-2/|
|тип шага|task|
|contentHeight|620|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment3/pdf/environment3_02_k.pdf|
|занимает памяти|621 Кб|
<<lessonAdminPanel>>/%
|visibleName|4. Двигательная система|
|galleryFolder|environment3/galleries/05. Двигательная система/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 движение.jpg"],
["02 человек на коляске.jpg"],
["03 дыхание.jpg"],
["04 мышцы передней стороны тела.jpg"],
["05 мышца.jpg"],
["06 мышца сокращённая.jpg"],
["07 мышца расслабленная.jpg"],
["08 кость и мышца сокращенная.jpg"],
["09 кость и мышца расслабленная.jpg"]
],
"options":{}}
!%/
|visibleName|Двигательная система|
|ссылка на контент шага|https://youtu.be/uAKD_iebU9Q|
|тип шага|video|
|visibleName|Двигательная система|
|ссылка на контент шага|./environment3/jpg/environment3_05_01.jpg|
|тип шага|pager|
|table of contents thumb|305.jpg|
|visibleName|Подпиши части мышцы|
|ссылка на контент шага|./oms/305-1/|
|тип шага|task|
|visibleName|Конспект для ученика|
|занимает памяти|404 Кб|
|ссылка на материал|./environment3/pdf/environment3_05_k.pdf|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/305. РМ. Двигательная система.pdf|
|занимает памяти|46 Кб|
<<lessonAdminPanel>>/%
|visibleName|5. Наши главные мышцы|
|galleryFolder|environment3/galleries/06. Наши главные мышцы/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 марионетка.jpg"],
["02 мышцы передней стороны тела.jpg"],
["03 мышцы задней стороны тела.jpg"],
["04 круговые мышцы глаз.jpg"],
["05 круговые мышцы глаз.jpg"],
["06 упражнение для грудных мышц.jpg"],
["07 упражнение для прямой мышцы живота.jpg"],
["08 упражнение для трапециевидной мышцы.jpg"],
["09 упражнение для широчайшей мышцы спины.jpg"],
["10 дельта реки.jpg"],
["11 дельта реки.jpg"],
["12 упражнение для дельтовидной мышцы.jpg"],
["13 упражнение для бицепса.jpg"],
["14 ягодичные мышцы у человека и собаки.jpg"],
["15 приседание.jpg"],
["16 трёхглавая мышцы голени.jpg"],
["17 футболист.jpg"],
["18 девочка на роликах.jpg"]
],
"options":{}}
!%/
|visibleName|Наши главные мышцы|
|ссылка на контент шага|https://youtu.be/WwxjgjymKRs|
|тип шага|video|
|visibleName|Наши главные мышцы. Вид спереди|
|ссылка на контент шага|./environment3/jpg/environment3_06_01.jpg|
|тип шага|pager|
|table of contents thumb|306 (1).jpg|
|visibleName|Наши главные мышцы. Вид сзади|
|ссылка на контент шага|./environment3/jpg/environment3_06_02.jpg|
|тип шага|pager|
|table of contents thumb|306 (2).jpg|
|visibleName|Подпиши мышцы|
|ссылка на контент шага|./oms/306-2/|
|тип шага|task|
|visibleName|Работа конкретных мышц|
|ссылка на контент шага|./oms/306-1/|
|тип шага|task|
|visibleName|Конспект для ученика|
|занимает памяти|990 Кб|
|ссылка на материал|./environment3/pdf/environment3_06_k.pdf|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/306. РМ. Наши главные мышцы.pdf|
|занимает памяти|49 Кб|
<<lessonAdminPanel>>/%
|visibleName|6. Кровь|
|galleryFolder|environment3/galleries/08. Кровь/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 кровеносная система.jpg"],
["02 рыбки.jpg"],
["03 эритроцит, лейкоцит, тромбоцит.jpg"],
["04 потеря крови.jpg"],
["05 кровь переносит кислород.jpg"],
["06 кровь переносит питательные вещества.jpg"],
["07 кровь переносит вредные вещества.jpg"],
["08 лейкоциты защищают нас от бактерий.jpg"],
["09 холодный душ.jpg"],
["10 купание в проруби.jpg"],
["11 физкультура.jpg"],
["12 прививки.jpg"],
["13 порез.jpg"],
["14 кровь останавливается.jpg"],
["15 образование тромба.jpg"],
["16 образование тромба.jpg"]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/sZNaNjLXMJM|
|visibleName|Кровь|
|тип шага|video|
|ссылка на контент шага|./environment3/jpg/environment3_08_01.jpg|
|visibleName|Кровь. Часть 1|
|тип шага|pager|
|table of contents thumb|308 (1).jpg|
|ссылка на контент шага|./environment3/jpg/environment3_08_02.jpg|
|visibleName|Кровь. Часть 2|
|тип шага|pager|
|table of contents thumb|308 (2).jpg|
|visibleName|Приготовь кровь|
|ссылка на контент шага|./oms/308-1/|
|тип шага|task|
|visibleName|Работа крови|
|ссылка на контент шага|./oms/308-2/|
|тип шага|task|
|ссылка на контент шага|./oms/308-3/|
|тип шага|task|
|visibleName|Отправь посылку|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment3/pdf/environment3_08_k.pdf|
|занимает памяти|1,4 Мб|
|ссылка на материал|./environment3/pdf-2/308. РМ. Кровь.pdf|
|visibleName|Рабочий материал|
|занимает памяти|29 Кб|
<<lessonAdminPanel>>/%
|visibleName|7. Сердце и сосуды|
|galleryFolder|environment3/galleries/09. Сердце и сосуды/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 кровеносная система.jpg"],
["02 сердечко.jpg"],
["03 сердце.jpg"],
["04 камеры сердца.jpg"],
["05 камеры сердца.jpg"],
["06 сердце в разрезе с сосудами.jpg"],
["07 движение крови в сердце.jpg"],
["08 капилляры в голове.jpg"]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/mYRryRXi3A8|
|тип шага|video|
|visibleName|Сердце и сосуды|
|ссылка на контент шага|./environment3/jpg/environment3_09_01.jpg|
|тип шага|pager|
|visibleName|Сердце|
|table of contents thumb|309 (1).jpg|
|ссылка на контент шага|./environment3/jpg/environment3_09_02.jpg|
|тип шага|pager|
|visibleName|Сосуды|
|table of contents thumb|309 (2).jpg|
|visibleName| Сердце|
|ссылка на контент шага|./oms/309-1/|
|тип шага|task|
|visibleName|Артерии и вены|
|ссылка на контент шага|./oms/309-2/|
|тип шага|task|
|visibleName|Три вида сосудов|
|ссылка на контент шага|./oms/309-3/|
|тип шага|task|
|ссылка на материал|./environment3/pdf/environment3_09_k.pdf|
|занимает памяти|631 Кб|
|visibleName|Конспект для ученика|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/309. РМ. Сердце и сосуды.pdf|
|занимает памяти|46 Кб|
<<lessonAdminPanel>>/%
|visibleName|8. Круги кровообращения|
|galleryFolder|environment3/galleries/10. Круги кровообращения/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 артерии.jpg"],
["02 сосуды ветвятся.jpg"],
["03 капилляры в голове.jpg"],
["04 реки.jpg"],
["05 схема кругов кровообращения.jpg"]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/i3eecroatS8|
|тип шага|video|
|visibleName|Круги кровообращения|
|visibleName|Круги кровообращения|
|ссылка на контент шага|./environment3/jpg/environment3_10_01.jpg|
|тип шага|pager|
|table of contents thumb|310 (1).jpg|
|visibleName|Капилляры|
|ссылка на контент шага|./environment3/jpg/environment3_10_02.jpg|
|тип шага|pager|
|table of contents thumb|310 (2).jpg|
|visibleName|Путь эритроцита|
|ссылка на контент шага|./oms/310-1/|
|тип шага|task|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment3/pdf/environment3_10_k.pdf|
|занимает памяти|542 Кб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/310. РМ. Круги кровообращения.pdf|
|занимает памяти|46 Кб|
<<lessonAdminPanel>>/%
|visibleName|9. Дыхательная система|
|galleryFolder|environment3/galleries/12. Дыхательная система/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 дыхательная система.jpg"],
["02 дрова горят.jpg"],
["03 пища и кислород.jpg"],
["04 пища и кислород.jpg"],
["05 дыхательная система крупнее.jpg"],
["06 надгортанник.jpg"],
["07 надгортанник закрыл трахею.jpg"],
["08 надгортанник открыт.jpg"],
["09 альвеолы в лёгких.jpg"],
["10 альвеолы в лёгких.jpg"],
["11 кровь отдаёт кислород.jpg"],
["12 кровь забирает углекислый газ.jpg"],
["13 кровь отдаёт углекислый газ.jpg"],
["14 кровь забирает кислород.jpg"]
],
"options":{}}
!%/
|visibleName|Дыхательная система|
|ссылка на контент шага|https://youtu.be/YqI4t4lwkY8|
|тип шага|video|
|visibleName|Дыхательная система|
|ссылка на контент шага|./environment3/jpg/environment3_12_01.jpg|
|тип шага|pager|
|table of contents thumb|312 (1).jpg|
|visibleName|Лёгкие|
|ссылка на контент шага|./environment3/jpg/environment3_12_02.jpg|
|тип шага|pager|
|table of contents thumb|312 (2).jpg|
|visibleName|Путь кислорода|
|ссылка на контент шага|./oms/312-1/|
|тип шага|task|
|visibleName|Нос|
|ссылка на контент шага|./oms/312-2/|
|тип шага|task|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment3/pdf/environment3_12_k.pdf|
|занимает памяти|1,4 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/312. РМ. Дыхательная система.pdf|
|занимает памяти|61 Кб|
<<lessonAdminPanel>>/%
|visibleName|10. Что и зачем мы едим|
|galleryFolder|environment3/galleries/14. Что и зачем мы едим/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 пищеварительная система.jpg"],
["02 разная еда.jpg"],
["03 вода.jpg"],
["04 чай и вода.jpg"],
["05 соли.jpg"],
["06 белки.jpg"],
["07 яйцо.jpg"],
["08 белки в яйце.jpg"],
["09 белковая пища.jpg"],
["10 белковая пища.jpg"],
["11 углеводы.jpg"],
["12 хлеб.jpg"],
["13 углеводы к хлебе.jpg"],
["14 углеводная пища.jpg"],
["15 углеводная пища.jpg"],
["16 жиры.jpg"],
["16 масло сливочное.jpg"],
["17 жиры в масле.jpg"],
["18 масло подсолнечное.jpg"],
["19 жиры в масле.jpg"],
["20 витамины.jpg"],
["21 пищевая добавка.jpg"],
["22 виды пищи.jpg"],
["23 молоко.jpg"],
["24 вещества в молоке.jpg"],
["25 каша гречневая.jpg"],
["26 вещества в каше.jpg"],
["27 рыба с картшкой.jpg"],
["28 вещества в рыбе с картошкой.jpg"],
["29 суп.jpg"],
["30 вещества в супе.jpg"],
["31 мы состоим из тех же веществ.jpg"],
["32 молекулы веществ в кишечнике.jpg"],
["33 крупные молекулы перевариваются.jpg"],
["34 переваренные молекулы переходят в кровь.jpg"]
],
"options":{}}
!%/
|тип шага|video|
|visibleName|Что и зачем мы едим|
|ссылка на контент шага|https://youtu.be/Uf0BrTGk2Zc|
|ссылка на контент шага|./environment3/jpg/environment3_14_01.jpg|
|тип шага|pager|
|visibleName|Пища|
|table of contents thumb|314 (1).jpg|
|ссылка на контент шага|./environment3/jpg/environment3_14_02.jpg|
|тип шага|pager|
|visibleName|Зачем нам пища|
|table of contents thumb|314 (2).jpg|
|visibleName|Состав продуктов|
|ссылка на контент шага|./oms/314-1/|
|тип шага|task|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment3/pdf/environment3_14_k.pdf|
|занимает памяти|1,5 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/314. РМ. Что и зачем мы едим.pdf|
|занимает памяти|58 Кб|
<<lessonAdminPanel>>/%
|visibleName|11. Что происходит во рту|
|galleryFolder|environment3/galleries/15. Что происходит во рту/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 пищеварительная система.jpg"],
["02 зубы.jpg"],
["03 рот, пищевод, железы.jpg"],
["04 волшебная лаборатория.jpg"],
["05 слюнные железы.jpg"],
["06 слюнные железы.jpg"],
["07 слюна убивает бактерии.jpg"],
["08 слюна переваривает углеводы.jpg"],
["09 глотание.jpg"]
],
"options":{}}
!%/
|visibleName|Что происходит во рту|
|ссылка на контент шага|https://youtu.be/1mi1c1yDAHg|
|тип шага|video|
|ссылка на контент шага|./environment3/jpg/environment3_15_01.jpg|
|тип шага|pager|
|visibleName|Пищеварительная система|
|table of contents thumb|315 (1).jpg|
|ссылка на контент шага|./environment3/jpg/environment3_15_02.jpg|
|тип шага|pager|
|visibleName|Что происходит с пищей во рту|
|table of contents thumb|315 (2).jpg|
|visibleName|Железы|
|ссылка на контент шага|./oms/315-1/|
|тип шага|task|
|visibleName|Зубы|
|ссылка на контент шага|./oms/315-2/|
|тип шага|task|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment3/pdf/environment3_15_k.pdf|
|занимает памяти|665 Кб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/315. РМ. Что происходит во рту.pdf|
|занимает памяти|51 Кб|
<<lessonAdminPanel>>/%
|visibleName|12. Желудок и кишечник|
|galleryFolder|environment3/galleries/16. Желудок и кишечник/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 пищеварительная система.jpg"],
["02 желудок.jpg"],
["03 желудок мнёт пищу.jpg"],
["04 желудок мнёт пищу.jpg"],
["05 желудок мнёт пищу.jpg"],
["06 белки перевариваются.jpg"],
["07 желудок, кишечник и другие органы.jpg"],
["08 сок поджелудочной железы.jpg"],
["09 желчь из печени.jpg"],
["10 все вещества перевариваются.jpg"],
["11 капилляры кишечника.jpg"],
["12 вода и соль всасываются в толстом кишечнике.jpg"],
["12 кишечная палочка.jpg"]
],
"options":{}}
!%/
|visibleName|Желудок и кишечник|
|тип шага|video|
|ссылка на контент шага|https://youtu.be/Y_JsCvV-lu0|
|ссылка на контент шага|./environment3/jpg/environment3_16_01.jpg|
|тип шага|pager|
|visibleName|Желудок|
|table of contents thumb|316 (1).jpg|
|ссылка на контент шага|./environment3/jpg/environment3_16_02.jpg|
|тип шага|pager|
|visibleName|Кишечник|
|table of contents thumb|316 (2).jpg|
|visibleName|Части пищеварительной системы|
|ссылка на контент шага|./oms/316-1/|
|тип шага|task|
|contentHeight|620|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment3/pdf/environment3_16_k.pdf|
|занимает памяти|915 Кб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/316. РМ. Желудок и кишечник.pdf|
|занимает памяти|49 Кб|
<<lessonAdminPanel>>/%
|visibleName|13. Выделительная система|
|galleryFolder|environment3/galleries/18. Выделительная система/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 выделительная система.jpg"],
["02 как разрушаются углеводы и жиры.jpg"],
["03 как разрушаются белки.jpg"],
["05 строение почки с подписями.jpg"],
["05 строение почки.jpg"],
["06 почка забирает плазму крови.jpg"],
["07 почка возвращает очищенную плазму.jpg"],
["08 выделительная система крупнее.jpg"]
],
"options":{}}
!%/
|тип шага|video|
|ссылка на контент шага|https://youtu.be/vI_gLK2tO_g|
|visibleName|Выделительная система|
|visibleName|Зачем нужна выделительная система|
|ссылка на контент шага|./environment3/jpg/environment3_18_01.jpg|
|тип шага|pager|
|table of contents thumb|318 (1).jpg|
|visibleName|Строение выделительной системы|
|ссылка на контент шага|./environment3/jpg/environment3_18_02.jpg|
|тип шага|pager|
|table of contents thumb|318 (2).jpg|
|visibleName|Вредные вещества|
|ссылка на контент шага|./oms/318-1/|
|тип шага|task|
|visibleName|Выделительная система|
|ссылка на контент шага|./oms/318-2/|
|тип шага|task|
|contentHeight|620|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment3/pdf/environment3_18_k.pdf|
|занимает памяти|341 Кб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/318. РМ. Выделительная система.pdf|
|занимает памяти|44 Кб|
<<lessonAdminPanel>>/%
|visibleName|14. Нервная система|
|galleryFolder|environment3/galleries/19. Нервная система/|
!!!Описание
!%//%
!gallery data
{"data":[
["01 нервная система.jpg"],
["02 головной мозг и его оболочки.jpg"],
["03 оркестрик.jpg"],
["04 директор школы.jpg"],
["05 директор.jpg"],
["06 директор и камеры.jpg"],
["07 директор, камеры и телефоны.jpg"],
["08 органы чувств.jpg"],
["09 кашель.jpg"],
["10 кашель.jpg"],
["11 кашель.jpg"],
["12 кашель.jpg"],
["13 кашель.jpg"],
["14 кашель.jpg"],
["15 кашель.jpg"],
["16 мороженое.jpg"],
["17 слюнной рефлекс.jpg"],
["18 слюнной рефлекс.jpg"],
["19 слюнной рефлекс.jpg"],
["20 слюнной рефлекс.jpg"]
],
"options":{}}
!%/
|visibleName|Нервная система|
|ссылка на контент шага|https://www.youtube.com/watch?v=Ep85hWFJclg|
|тип шага|video|
|visibleName|Нервная система|
|ссылка на контент шага|./environment3/jpg/environment3_19_01.jpg|
|тип шага|pager|
|table of contents thumb|319 (1).jpg|
|visibleName|Как работает нервная система|
|ссылка на контент шага|./environment3/jpg/environment3_19_02.jpg|
|тип шага|pager|
|table of contents thumb|319 (2).jpg|
|visibleName|Примеры рефлексов|
|ссылка на контент шага|./environment3/jpg/environment3_19_03.jpg|
|тип шага|pager|
|table of contents thumb|319 (3).jpg|
|visibleName|Звенья рефлекса|
|ссылка на контент шага|./oms/319-2/|
|тип шага|task|
|тип шага|task|
|ссылка на контент шага|./oms/319-1/|
|visibleName|Нервы|
|contentHeight|620|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment3/pdf/environment3_19_k.pdf|
|занимает памяти|338 Кб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/319. РМ. Нервная система.pdf|
|занимает памяти|62 Кб|
<<lessonAdminPanel>>/%
|visibleName|15. Органы чувств|
|galleryFolder|environment3/galleries/20. Органы чувств/|
!!!Описание
!%//%
!gallery data
{"data":[
["02 глазное яблоко.jpg"],
["03 глаза в глазницах.jpg"],
["04 схема работы глаза.jpg"],
["05 схема глаза.jpg"],
["06 веки и слёзные железы.jpg"],
["07 моргание.jpg"],
["08 моргание.jpg"],
["09 дворнике на машине.jpg"],
["10 дворники на машине.jpg"],
["11 дворники на машине.jpg"],
["12 антенна.jpg"],
["13 наружное ухо.jpg"],
["14 строение уха.jpg"],
["15 строение улитки.jpg"],
["16 строение улитки.jpg"],
["17 строение улитки.jpg"],
["18 строение улитки крупно.jpg"],
["19 кожа.jpg"],
["20 мальчик потеет на солнце.jpg"],
["21 строение кожи.jpg"]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/gLPcdV08q7M|
|тип шага|video|
|visibleName|Органы чувств|
|ссылка на контент шага|./oms/320-2/|
|тип шага|task|
|visibleName|Ухо|
|ссылка на контент шага|./oms/320-3/|
|тип шага|task|
|visibleName|Подпиши части кожи|
|ссылка на контент шага|./environment3/jpg/environment3_20_01.jpg|
|тип шага|pager|
|visibleName|Глаза|
|table of contents thumb|320 (1).jpg|
|visibleName|Уши|
|ссылка на контент шага|./environment3/jpg/environment3_20_02.jpg|
|тип шага|pager|
|table of contents thumb|320 (2).jpg|
|visibleName|Глаз|
|ссылка на контент шага|./oms/320-1/|
|тип шага|task|
|visibleName|Кожа|
|ссылка на контент шага|./environment3/jpg/environment3_20_03.jpg|
|тип шага|pager|
|table of contents thumb|320 (3).jpg|
|ссылка на материал|./environment3/pdf/environment3_20_k.pdf|
|занимает памяти|1,3 Мб|
|visibleName|Конспект для ученика|
|visibleName|Рабочий материал|
|ссылка на материал|./environment3/pdf-2/320. РМ. Органы чувств.pdf|
|занимает памяти|49 Кб|
<<lessonAdminPanel>>/%
|visibleName|16. Гигиена. Шесть систем организма|
!!!Описание
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/Pjf40oLamj0|
|visibleName|Гигиена. Шесть систем органов|
|тип шага|video|
|visibleName|Распредели правила гигиены по свиткам|
|ссылка на контент шага|./oms/321-1/|
|тип шага|task|
|visibleName|Соедини научные факты с правилами гигиены|
|ссылка на контент шага|./oms/321-2/|
|тип шага|task|
|table of contents thumb|321 (1).jpg|
|ссылка на контент шага|environment3/jpg/environment3_21_01.jpg|
|тип шага|pager|
|table of contents thumb|321 (2).jpg|
|ссылка на контент шага|environment3/jpg/environment3_21_02.jpg|
|тип шага|pager|
|table of contents thumb|321 (3).jpg|
|ссылка на контент шага|environment3/jpg/environment3_21_03.jpg|
|тип шага|pager|
|table of contents thumb|321 (4).jpg|
|ссылка на контент шага|environment3/jpg/environment3_21_04.jpg|
|тип шага|pager|
|ссылка на материал|environment3/pdf/environment3_21_k.pdf|
|занимает памяти|1,3 мБ|
|visibleName|Конспект|
<<lessonAdminPanel>>/%
|visibleName|17. Гигиена. Нервная система и органы чувств|
!!!Описание
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
|visibleName|Гигиена. Нервная система и органы чувств|
|ссылка на контент шага|https://youtu.be/bOu3MLolcMY|
|тип шага|video|
|ссылка на контент шага|environment3/jpg/environment3_22_01.jpg|
|тип шага|pager|
|table of contents thumb|322 (1).jpg|
|ссылка на контент шага|environment3/jpg/environment3_22_02.jpg|
|тип шага|pager|
|table of contents thumb|322 (2).jpg|
|ссылка на контент шага|environment3/jpg/environment3_22_03.jpg|
|тип шага|pager|
|table of contents thumb|322 (3).jpg|
|visibleName|Правила гигиены|
|ссылка на контент шага|./oms/322-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Конспект|
|ссылка на материал|environment3/pdf/environment3_22_k.pdf|
|занимает памяти|541 кБ|
|visibleName|Над курсом работали|
<<lessonAdminPanel>>/%
!!!Описание
<br><table class="borderless inform">
<tbody>
<tr class="evenRow">
<td>Автор</td>
<td>Роман Борисович Соловьёв</td>
</tr>
<tr class="oddRow">
<td>Научные редакторы</td>
<td>Сергей Феликсович Хрибар, к. и. н.<br>Марина Владимировна Куликова, к. б. н.<br>Маргарита
Михайловна Атрощенко, к. б. н.<br>Инна Михайловна Есенова<br>
(сотрудники <a class="externalLink" href="http://www.gbmt.ru/ru/index.php" title="" target="_blank">Государственного
Биологического музея им. К. А. Тимирязева</a>)
</td>
</tr>
<tr class="evenRow">
<td>Редактор</td>
<td>Анна Булгакова</td>
</tr>
<tr class="evenRow">
<td>Дизайн и вёрстка</td>
<td>
Полина Лосева
</td>
</tr>
<tr class="oddRow">
<td>Иллюстрации</td>
<td>
Полина Леоненко<br>
Любовь Макарова<br>
Екатерина Пысларь<br>
Анастасия Голикова
</td>
</tr>
<tr class="evenRow">
<td>Анимация</td>
<td>
Демир Куулар<br>
Вероника Веселова
</td>
</tr>
<tr class="oddRow">
<td>
Монтаж и съёмка
</td>
<td>
Даулет Жанайдаров
</td>
</tr>
<tr class="evenRow">
<td>Разработка<br>интерактивных заданий</td>
<td>Михаил Киселёв<br>
Николай Барков
</td>
</tr>
<tr class="evenRow">
<td>Разработка платформы</td>
<td>Яков Литвин
</td>
</tr>
<tr class="oddRow">
<td>Съёмка</td>
<td>
Инна Прово<br>
Владимир Иванов<br>
Елена Раднабазарова
</td>
</tr>
<tr class="oddRow">
<td>Музыкальная заставка</td>
<td>Роман Куперман</td>
</tr>
<tr class="evenRow">
<td>Голоса</td>
<td>
Михаил Гантман<br>
Сергей Рубашкин<br>
Алёна Аникина<br>
Станислав Иванов
</td>
</tr>
<tr class="evenRow">
<td>Руководитель проекта</td>
<td>Анна Булгакова</td>
</tr>
</tbody>
</table>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
|visibleName|1. Космические тела|
|galleryFolder|environment4/galleries/401. Космические тела/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 Земля из космоса.jpg","","https://www.flickr.com/photos/nasamarshall/12882251595/","NASA's Marshall Space Flight Center"],
["02 космический корабль.jpg","","",""],
["03 звёзды.jpg","","",""],
["04 Земля и Солнце.jpg","","",""],
["05 звезда в разрезе.jpg","","",""],
["06 планеты.jpg","","",""],
["07 Земля.jpg","","",""],
["08 Земля, Юпитер и Солнце.jpg","","",""],
["09 астероиды.jpg","","",""],
["10 метеороид.jpg","","",""],
["11 пылевое облако.jpg","","",""],
["12 пылевое облако.jpg","","http://hubblesite.org/image/3870/category/112-hubble-heritage","NASA/ESA/the Hubble Heritage Team"],
["13 пылевое облако.jpg","","https://www.flickr.com/photos/hubble-heritage/25957184683/","Hubble Heritage"],
["14 комета вблизи.jpg","","",""],
["15 комета.jpg","","",""],
["16 комета.jpg","","https://www.flickr.com/photos/7776810@N07/15906662063/in","Alan Tough"],
["17 орбита Земли.jpg","","",""],
["19 галактика.jpg","","https://www.flickr.com/photos/gsfc/6883342722/in","NASA Goddard Space Flight Center"],
["20 спиральная галактика.jpg","","https://www.flickr.com/photos/gsfc/4398655085/in/","NASA Goddard Space Flight Center"],
["21 Млечный путь.jpg","","https://www.flickr.com/photos/lostin4tune/8619080110/","cedrik strahm"],
["22 Солнечная система в Галактике.jpg","","https://commons.wikimedia.org/wiki/File:Ssc2008-10a1.tif","NASA/JPL-Caltech/R. Hurt (SSC/Caltech)"],
["23 Туманность Андромеды.jpg","","https://www.flickr.com/photos/gsfc/3927816038/","NASA Goddard Space Flight Center"],
["24 галактика Андромеды на небе.jpg","","https://www.flickr.com/photos/59251448@N04/12612498073/","Stephen Cheatley"],
["25 созвездия.jpg","","",""],
["26 карта созвездий.jpg","","",""],
["27 ориентирование по звёздам.jpg","","",""],
["28 Большая и Малая Медведицы.jpg","","",""],
["29 звёздное небо.jpg","","https://www.flickr.com/photos/tom_hall_nz/14993052203/in/","Tom Hall"],
["30 звездное небо.jpg","","https://www.flickr.com/photos/q8-mc/9686956117/in","Q8MC"],
["31 Юпитер на небе.jpg","","https://www.flickr.com/photos/16590526@N07/11691802455/","Roger Hutchinson"]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/xAF9YXCr2L8|
|visibleName|Космические тела|
|тип шага|video|
|visibleName|Размеры космических тел|
|ссылка на контент шага|./oms/401-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Космические тела|
|тип шага|pager|
|ссылка на контент шага|./environment4/jpg/environment4_01_01.jpg|
|table of contents thumb|text_01_1.jpg|
|visibleName|Космические тела|
|тип шага|pager|
|ссылка на контент шага|./environment4/jpg/environment4_01_02.jpg|
|table of contents thumb|text_01_2.jpg|
|visibleName|Карта созвездий Северного полушария|
|тип шага|pager|
|ссылка на контент шага|./environment4/jpg/environment4_01_03.jpg|
|table of contents thumb|text_01_3.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/01-Конспект-Космические_тела.pdf|
|занимает памяти|1.8 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment4/pdf-2/401. РМ. Космические тела.pdf|
|занимает памяти|65 Кб|
|visibleName|2. Солнечная система|
|galleryFolder|environment4/galleries/402. Солнечная система/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 Солнечная система.jpg","","",""],
["02 Солнечная система.jpg","","",""],
["03 день и ночь.jpg","","",""],
["04 парад планет - Меркурий.jpg","","",""],
["05 Меркурий.jpg","","",""],
["06 температура на Меркурии.jpg","","",""],
["07 парад планет - Венера.jpg","","",""],
["08 Венера.jpg","","",""],
["09 земная атмосфера.jpg","","",""],
["10 земная атмосфера.jpg","","",""],
["11 температура на Венере.jpg","","",""],
["12 парад планет - Земля.jpg","","",""],
["13 температура на Земле.jpg","","",""],
["14 Земля и Луна.jpg","","",""],
["15 Марс и Фобос.jpg","","http://hubblesite.org/video/963/news/82-solar-system","NASA, ESA, and G. Bacon and Z. Levay (STScI)"],
["16 Земля и Луна.jpg","","",""],
["17 Земля и Луна.jpg","","",""],
["17 обратная сторона Луны.jpg","","",""],
["18 обратная сторона Луны.jpg","","",""],
["19 фото обратной стороны Луны.jpg","","",""],
["20 карта Луны.jpg","","https://geography_atlas.academic.ru/pictures/geography_atlas/000007.jpg","Географический атлас для учителей средней школы. Четвёртое издание"],
["21 парад планет - Марс.jpg","","",""],
["22 Марс.jpg","","",""],
["23 спутники Марса Фобос и Деймос.jpg","","",""],
["24 температура на Марсе.jpg","","",""],
["25 атмосфера Марса.jpg","","",""],
["26 схема фотосинтеза.jpg","","",""],
["27 поверхность Марса.jpg","","https://mars.nasa.gov/resources/21467/","NASA/JPL-Caltech/MSSS"],
["28 Марс.jpg","","https://www.flickr.com/photos/hubble-heritage/27035797612/in","Hubble Heritage"],
["29 поверхность Марса.jpg","","",""],
["30 колонизация Марса.jpg","","",""],
["31 колонизация Марса.jpg","","",""],
["32 колонизация Марса.jpg","","",""],
["33 колонизация Марса.jpg","","",""],
["34 колонизация Марса.jpg","","",""],
["36 Юпитер.jpg","","http://cdn.sci-news.com/images/enlarge3/image_4461e-Jupiter.jpg","NASA"],
["37 Большое Красное пятно.jpg","","",""],
["38 телескоп в обсерватории.jpg","","https://commons.wikimedia.org/wiki/File:Refracting_telescope_of_the_Strasbourg_observatory.jpg","Pethrus"],
["39 спутники Юпитера.jpg","","",""],
["40 Сравнение - Ганимед, Земля, Меркурий.jpg","","",""],
["41 главный пояс астероидов.jpg","","",""],
["42 пояс астероидов.jpg","","",""],
["43 парад планет - Сатурн.jpg","","",""],
["44 спутники Сатурна.jpg","","",""],
["45 парад планет - Уран, Нептун.jpg","","",""],
["46 сравнение - Земля, Уран, Нептун.jpg","","",""],
["47 атмосфера Нептуна.jpg","","",""],
["48 температура на Уране.jpg","","",""],
["49 орбита Земли.jpg","","",""],
["50 орбита Меркурия.jpg","","",""],
["51 орбиты Нептуна.jpg","","",""],
["52 Солнечная система.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Солнечная система|
|ссылка на контент шага|https://youtu.be/2CBEBtGbjmc|
|тип шага|video|
|visibleName|Порядок планет|
|ссылка на контент шага|./oms/402-2/|
|тип шага|task|
|contentHeight|620|
|visibleName|Солнечная система|
|тип шага|pager|
|ссылка на контент шага|./environment4/jpg/environment4_02_01.jpg|
|table of contents thumb|text_02_1.jpg|
|visibleName|Солнечная система|
|тип шага|pager|
|ссылка на контент шага|./environment4/jpg/environment4_02_02.jpg|
|table of contents thumb|text_02_2.jpg|
|visibleName|Планеты Солнечной системы|
|тип шага|pager|
|ссылка на контент шага|./environment4/jpg/environment4_02_03.jpg|
|table of contents thumb|text_02_3.jpg|
|visibleName|Планеты Солнечной системы|
|ссылка на контент шага|./oms/402-1/|
|тип шага|task|
|contentHeight|620|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/02-Конспект-Солнечная_система.pdf|
|занимает памяти|1.6 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment4/pdf-2/402. РМ. Солнечная система.pdf|
|занимает памяти|63 Кб|
|visibleName|3. Время года. День и ночь|
|galleryFolder|environment4/galleries/403. Время суток и время года/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 зимняя ночь.jpg","","",null],
["02 зимний день.jpg","","",null],
["03 летний день.jpg","","",null],
["04 север.jpg","","",null],
["05 субтропики.jpg","","",null],
["06 земные сутки.jpg","","",null],
["07 сутки на Юпитере и Сатурне.jpg","","",null],
["08 год на Земле.jpg","","",null],
["09 пучок лучей.jpg","","",null],
["10 пучок лучей.jpg","","",null],
["11 тепло от лучей.jpg","","",null],
["12 Земля в лучах Солнца.jpg","","",null],
["13 наклон лучей у полюса.jpg","","",null],
["14 наклон лучей у экватора.jpg","","",null],
["15 климат России.jpg","","",null],
["16 климат России.jpg","","",null],
["17 лето в тундре.jpg","","",null],
["18 лето в зоне широколиственных лисов.jpg","","",null],
["19 лето в степи.jpg","","",null],
["20 весна на севере России.jpg","","https://www.flickr.com/photos/125314337@N07/40157554254/in/","Line Højberg"],
["21 весна на севере России.jpg","","",""],
["22 весна в Москве.jpg","","https://www.flickr.com/photos/133245915@N03/26403608547/","Виталий Симонов"],
["23 весна в Пензенской области.jpg","","https://www.flickr.com/photos/102086516@N07/34407832811/","Oleg Anisimov"],
["24 весна в разных точках России.jpg","","",""],
["25 весна в Анапе.jpg","","https://www.flickr.com/photos/telavivlove/26208537423/in/photostream/","telavivlove"],
["26 весна на юге России.jpg","","",null],
["27 Карское и Чёрное море.jpg","","",null],
["28 наклон земной оси.jpg","","",null],
["29 лето в Северном полушарии.jpg","","",null],
["30 лето в Северном полушарии.jpg","","",null],
["31 конец лета в Северном полушарии.jpg","","",null],
["32 начало зимы в Северном полушарии.jpg","","",null],
["33 лето в Южном полушарии.jpg","","",null]
],
"options":{}}
!%/
|тип шага|video|
|ссылка на контент шага|https://youtu.be/UoT2tdk5gvA|
|visibleName|Время года. День и ночь|
|visibleName|День и ночь|
|ссылка на контент шага|./oms/403-1/|
|тип шага|task|
|visibleName|Как Солнце нагревает Землю|
|ссылка на контент шага|./oms/403-2/|
|тип шага|task|
|visibleName|День и ночь. Жара и холод|
|ссылка на контент шага|./environment4/jpg/environment4_03_01.jpg|
|тип шага|pager|
|table of contents thumb|text_03_1.jpg|
|visibleName|Времена года|
|ссылка на контент шага|./environment4/jpg/environment4_03_02.jpg|
|тип шага|pager|
|table of contents thumb|text_03_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/03-Конспект-Время_суток_и_время_года.pdf|
|занимает памяти|5.5 Мб|
|visibleName|Рабочий материал|
|ссылка на материал|./environment4/pdf-2/403. РМ. Время суток и времена года .pdf|
|занимает памяти|58 Кб|
|visibleName|4. История изучения космоса|
|galleryFolder|environment4/galleries/404. История изучения космоса/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 наблюдение за небом в древности.jpg","","",""],
["02 небесный гвоздь.jpg","","",""],
["03 небесный гвоздь.jpg","","",""],
["04 Полярная звезда.jpg","","",""],
["05 Сириус и разлив Нила.jpg","","",""],
["06 Сириус и разлив Нила.jpg","","",""],
["07 ориентирование по звёздам.jpg","","",""],
["08 квадрант.jpg","","https://collection.sciencemuseum.org.uk/objects/co56381/european-horary-quadrant-1650-1725-horary-quadrant-gunter","Lecky, John"],
["09 квадрант на стойке.jpg","","https://collection.sciencemuseum.org.uk/objects/co56149/twelve-inch-quadrant-in-wooden-case-quadrant-optical-case-container","Caulfield, Richard; Lecky, Robert John; Lecky, John; Royal Cork Institution"],
["10 моряк с квадрантом.jpg","","",""],
["11 геоцентрическая модель Вселенной.jpg","","https://commons.wikimedia.org/wiki/File:Geocentric.jpg","File Upload Bot (Magnus Manske)"],
["12 Птолемей.jpg","","",""],
["13 Коперник.jpg","","",""],
["14 памятник Копернику.jpg","","https://www.flickr.com/photos/jasiot/6035224097/","Jasiot"],
["15 Кеплер.jpg","","",""],
["16 Галилей.jpg","","",""],
["17 Галилей с телескопом.jpg","","",""],
["18 телескоп Галилея.jpg","","https://amandakocz.files.wordpress.com/2014/05/galileo.jpg","amandakocz"],
["19 Луна в рукописи Галилея.jpg","","https://commons.wikimedia.org/wiki/File:Galileo_Galilei,_Disegni_originali_delle_Lune,_1609,_Biblioteca_Nazionale_Centrale,_Firenze.jpg","Galileo Galilei"],
["20 спутники Юпитера в рукописи Галилея.jpg","","http://www.astro.umontreal.ca/~paulchar/grps/site/images/galileo.4.html","Galileo Galilei"],
["21 орбитальный телескоп Хаббл.jpg","","https://www.flickr.com/photos/nasahubble/28223588012/","NASA Hubble Space Telescope"],
["22 фотография Хаббла - галактики.jpg","","https://www.flickr.com/photos/nasahubble/25981690618/","NASA Hubble Space Telescope"],
["23 фотография Хаббла.jpg","","https://www.flickr.com/photos/nasahubble/27747573280/","NASA Hubble Space Telescope"],
["24 фотография Хаббла - останки звезды.jpg","","https://www.flickr.com/photos/nasahubble/27993269556/","NASA Hubble Space Telescope"],
["25 фотография Хаббла - спиральная галактика.jpg","","https://www.flickr.com/photos/nasahubble/27925725012/","NASA Hubble Space Telescope"],
["26 телескоп Кеплер в космосе.jpg","","http://www.sciencemag.org/news/2016/07/once-feared-dead-kepler-catches-104-new-exoplanets","AMES/JPL-CALTECH/NASA"],
["27 телескоп Кеплер.jpg","","https://commons.wikimedia.org/wiki/File:Kepler_in_Astrotech%27s_Hazardous_Processing_Facility_(KSC-2009-1645).jpg","NASA/Troy Cryder"],
["28 записи Циолковского.jpg","","http://bucharsky.ru/photos/29/144/","bucharsky.ru"],
["29 эскиз космического корабля Циолковского.jpg","","http://bucharsky.ru/photos/29/145/","bucharsky.ru"],
["30 Циолковский.jpg","","https://commons.wikimedia.org/wiki/File:%D0%A6%D0%B8%D0%BE%D0%BB%D0%BA%D0%BE%D0%B2%D1%81%D0%BA%D0%B8%D0%B9_%D0%B7%D0%B0_%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BE%D0%B9.jpg","Vitold Muratov"],
["31 Циолковский.jpg","","",""],
["32 Королёв с собакой.jpg","","https://cdn2.img.sputnik.by/images/101952/90/1019529063.jpg","РИА НОВОСТИ"],
["33 Королёв.jpg","","https://mfst.igromania.ru/wp-content/uploads/2018/04/KorolevKeldysh.jpg",""],
["34 Спутник-1.JPG","","https://commons.wikimedia.org/wiki/File:Replica_of_Sputnik_1,_World_Museum_Liverpool_(3).JPG","Rept0n1x"],
["35 Гагарин и Королёв.jpg","","https://www.rbth.com/science_and_tech/2017/05/02/sergei-korolev-7-great-achievements_752851","РИА"],
["36 скафандр.jpg","","https://www.flickr.com/photos/photuum/26410850905/","Vasil Kuzmichonak"],
["37 скафандр.jpg","","",""],
["38 Леонов в космосе.jpg","","http://www.filipoc.ru/attaches/posts/rodina/2015-04-05/aleksey-leonov--detstvo-kosmonavta--/a1d9d2b8da3d66631c8963815407419e.jpg","Автор неизвестен"],
["39 Леонов и корабль Восход-2.jpg","","https://rostec.ru/news/4516151/","Ростех"],
["40 Леонов в открытом космосе.jpg","","",""],
["41 Леонов возвращается на корабль.jpg","","",""],
["42 Леонов.jpg","","",""],
["43 музей космонавтики.jpg","","https://www.roscosmos.ru/media/gallery/big/24093/6190034745.jpg","РОСКОСМОС"],
["44 музей космонавтики.jpg","","https://www.roscosmos.ru/media/gallery/big/24093/4941033956.jpg","РОСКОСМОС"],
["45 еда в герметичных упаковках.jpg","","https://commons.wikimedia.org/wiki/File:ISSSpaceFoodOnATray.jpg","NASA"],
["46 еда в тюбиках.jpg","","https://commons.wikimedia.org/wiki/File:Russian_space_food.jpg#file","Benutzer:HPH"],
["47 нагрузочный костюм Пингвин-3.jpg","","http://galspace.spb.ru/museum-3.php?foto_page=23","Мемориальный музей Космонавтики в Москве"],
["48 спутник связи.jpg","","",""],
["49 спутники вокруг Земли.jpg","","",""],
["50 навигаторы.jpg","","",""],
["51 навигаторы.jpg","","",""],
["52 люди с навигаторами.jpg","","",""],
["53 спутник-телескоп.jpg","","",""],
["54 метеоспутник.jpg","","",""],
["55 космодром.jpg","","",""],
["56 летащая ракета.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Рабочий материал|
|ссылка на материал|./environment4/pdf-2/404. РМ. История изучения космоса.pdf|
|занимает памяти|58 Кб|
|visibleName|5. Процессы и явления в мире неживого|
|galleryFolder|environment4/galleries/405. Процессы и явления в мире неживого/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 Солнечная система.jpg","","",""],
["02 Солнце.jpg","","",""],
["03 комета.jpg","","",""],
["04 карта мира живого.jpg","","",""],
["05 жизненный цикл бабочки.jpg","","",""],
["06 карта мира неживого.jpg","","",""],
["07 магматические камни.jpg","","",""],
["08 осадочные камни.jpg","","",""],
["09 осадочные камни 2.jpg","","",""],
["10 метаморфические камни.jpg","","",""],
["11 созвездия.jpg","","",""],
["12 карта мира живого с названиями наук.jpg","","",""],
["13 шкаф с полочками.jpg","","",""],
["14 шкаф «биология».jpg","","",""],
["15 шкаф «физика».jpg","","",""],
["16 философ и стихии.jpg","","",""],
["17 стихии почвы.jpg","","",""],
["18 многие науки папирус.jpg","","",""],
["19 молния.jpg","","",""],
["20 земля магнит.jpg","","",""],
["21 путешественники.jpg","","",""],
["22 шесть элементов.jpg","","",""],
["23 свет и тепло.jpg","","",""],
["24 батарея.jpg","","",""],
["25 Луна в окне.jpg","","",""],
["26 огонь разделяется.jpg","","",""],
["27 стихии остановки.jpg","","",""],
["28 компоненты воздуха.jpg","","",""],
["29 атмосфера.jpg","","",""],
["30 чайник электрический.jpg","","",""],
["31 доска с магнитами.jpg","","",""],
["32 мост.jpg","","",""],
["33 телефон.jpg","","",""],
["34 тостер.jpg","","",""],
["35 пылесос.jpg","","",""],
["36 электрическая плита.jpg","","",""],
["37 кастрюля на плите.jpg","","",""],
["38 холодильник.jpg","","",""],
["39 автомобиль.jpg","","",""],
["40 посёлок зимой.jpg","","",""],
["41 мост.jpg","","",""],
["42 стакан с водой .jpg","","",""],
["43 стихии и стол.jpg","","",""],
["44 набросок опыта.jpg","","",""],
["45 шкаф «биология» наполненный.jpg","","",""],
["46 шкаф «физика» наполненный.jpg","","",""]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/PLiGN3OW21g|
|тип шага|video|
|visibleName|История изучения космоса|
|visibleName|Покорители космоса|
|ссылка на контент шага|./oms/404-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Изучение космоса в древности|
|ссылка на контент шага|./environment4/jpg/text_04_1.jpg|
|тип шага|pager|
|table of contents thumb|text_04_1.jpg|
|visibleName|Развитие астрономии|
|ссылка на контент шага|./environment4/jpg/text_04_2.jpg|
|тип шага|pager|
|table of contents thumb|text_04_2.jpg|
|visibleName|Освоение космоса|
|ссылка на контент шага|./environment4/jpg/text_04_3.jpg|
|тип шага|pager|
|table of contents thumb|text_04_3.jpg|
|visibleName|Шкаф биологии|
|ссылка на контент шага|./oms/405-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Как мы изучаем мир|
|ссылка на контент шага|./environment4/jpg/text_05_1.jpg|
|тип шага|pager|
|table of contents thumb|text_05_1.jpg|
|visibleName|Как мы изучаем мир|
|ссылка на контент шага|./environment4/jpg/text_05_2.jpg|
|тип шага|pager|
|table of contents thumb|text_05_2.jpg|
|visibleName|Шкаф физики|
|ссылка на контент шага|./oms/405-2/|
|тип шага|task|
|contentHeight|620|
|visibleName|Процессы и явления в мире неживого|
|ссылка на контент шага|https://youtu.be/WQOUbubrTkM|
|тип шага|video|
|visibleName|Конспект для ученика|
|занимает памяти|1,7 Мб|
|ссылка на материал|./environment4/pdf/05-%D0%9A%D0%BE%D0%BD%D1%81%D0%BF%D0%B5%D0%BA%D1%82-%D0%9F%D1%80%D0%BE%D1%86%D0%B5%D1%81%D1%81%D1%8B_%D0%B8_%D1%8F%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F_%D0%B2_%D0%BC%D0%B8%D1%80%D0%B5_%D0%BD%D0%B5%D0%B6%D0%B8%D0%B2%D0%BE%D0%B3%D0%BE.pdf|
|visibleName|6. Состав воздуха|
|galleryFolder|environment4/galleries/406. Состав воздуха/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 воздух.jpg"],
["02 Шееле.jpg"],
["03 опыт Шееле.jpg"],
["04 опыт Шееле.jpg"],
["05 опыт Шееле.jpg"],
["06 опыт Шееле.jpg"],
["07 опыт Шееле.jpg"],
["08 состав воздуха.jpg"],
["09 фотосинтез.jpg"],
["10 кислород в организме.jpg"],
["11 пища и кислород.jpg"],
["12 опыт Шееле.jpg"],
["13 азотофиксирующие бактерии.jpg"],
["14 соотношение азота и кислорода.jpg"],
["15 пропорциональный состав воздуха.jpg"],
["16 углекислый газ.jpg"],
["17 углекислый газ.jpg"],
["18 водопад.jpg"],
["19 пустыня.jpg"],
["20 состав воздуха.jpg"]
],
"options":{}}
!%/
|visibleName|Состав воздуха|
|ссылка на контент шага|https://youtu.be/vxHob8uAxLs|
|тип шага|video|
|visibleName|Опыт Шееле|
|ссылка на контент шага|./environment4/jpg/text_06_1.jpg|
|тип шага|pager|
|table of contents thumb|text_06_1.jpg|
|visibleName|Состав воздуха|
|ссылка на контент шага|./environment4/jpg/text_06_2.jpg|
|тип шага|pager|
|table of contents thumb|text_06_2.jpg|
|visibleName|Паспорт воздуха|
|ссылка на контент шага|./oms/406-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Из чего состоит воздух?|
|ссылка на контент шага|./oms/406-2/|
|тип шага|task|
|contentHeight|600|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/06-Конспект-Состав_воздуха.pdf|
|занимает памяти|943 Кб|
|занимает памяти|108 Кб|
|visibleName|Инструкция к опыту и задания|
|ссылка на материал|./environment4/pdf-3/406. Состав воздуха.pdf|
|visibleName|7. Конвекция, или Почему дует ветер?|
|galleryFolder|environment4/galleries/407. Конвекция или почему дует ветер/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 состав воздуха.jpg"],
["02 движение холодного и теплого воздуха.jpg"],
["03 теплый воздух в комнате.jpg"],
["04 охлажденный воздух и открытая дверь.jpg"],
["05 конвекция в комнате.jpg"],
["06 иконка конвекции.jpg"],
["07 конвекция жидкости в кастрюле.jpg"],
["08 конвекция жидкости в кастрюле.jpg"],
["09 конвекция в чае.jpg"],
["10 атмосфера.jpg"],
["11 конвекция в атмосфере.jpg"],
["12 земля и конвекция.jpg"],
["13 девочка и ветер.jpg"],
["14 земля, конвекция и планер.jpg"]
],
"options":{}}
!%/
|ссылка на контент шага|https://www.youtube.com/watch?v=S5H8oY9fjv8&t=0s&list=PLeV_t3gJVt_p_3Z51-7YGoIsNBQEPeffF&index=7&ab_channel=%D0%9A%D1%83%D1%80%D1%81%D0%9E%D0%BA%D1%80%D1%83%D0%B6%D0%B0%D1%8E%D1%89%D0%B8%D0%B9%D0%BC%D0%B8%D1%80|
|тип шага|video|
|visibleName|Конвекция, или Почему дует ветер?|
|ссылка на контент шага|./oms/407-1/|
|visibleName|Конвекция|
|тип шага|task|
|contentHeight|600|
|visibleName|Конвекция|
|ссылка на контент шага|./environment4/jpg/text_07_1.jpg|
|тип шага|pager|
|table of contents thumb|text_07_1.jpg|
|visibleName|Почему дует ветер?|
|ссылка на контент шага|./environment4/jpg/text_07_2.jpg|
|тип шага|pager|
|table of contents thumb|text_07_2.jpg|
|ссылка на материал|./environment4/pdf/07-Конспект-Конвекция_или_почему_дует_ветер.pdf|
|занимает памяти|3 Мб|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/jpg/environment4_07_01.jpg
|
|ссылка на материал|./environment4/pdf-3/407. Конвекция.pdf|
|занимает памяти|115 Кб|
|visibleName|Инструкция к опыту и задания|
|visibleName|8. Атмосферное давление|
|galleryFolder|environment4/galleries/408. Атмосферное давление/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 компоненты воздуха.jpg"],
["02 ветер.jpg"],
["03 Галилео Галилей.jpg"],
["04 кубометр воды и воздуха.jpg"],
["05 вес атмосферы.jpg"],
["06 вес атмосферы.jpg"],
["07 атмосферное давление.jpg"],
["08 атмосферное давление.jpg"],
["09 Отто фон Герике.jpg"],
["10 эксперимент Герике.jpg"],
["11 эксперимент Герике.jpg"],
["12 эксперимент Герике.jpg"],
["13 давление в эксперименте Герике.jpg"],
["14 давление в эксперименте Герике.jpg"],
["15 памятник Герике.jpg"],
["16 кубометры воды и воздуха.jpg"],
["17 кубик ртути.jpg"],
["18 Торричелли.jpg"],
["19 опыт Торричелли.jpg"],
["20 опыт Торричелли.jpg"],
["21 опыт Торричелли.jpg"],
["22 опыт Торричелли.jpg"],
["23 ртутный барометр.jpg"],
["24 высокое давление.jpg"],
["25 низкое давление.jpg"],
["26 барометр.jpg"],
["27 высокое и низкое давление.jpg"],
["28 схема опыта Торричелли.jpg"],
["29 схема опыта Торричелли.jpg"]
],
"options":{}}
!%/
|visibleName|Атмосферное давление|
|ссылка на контент шага|https://youtu.be/Nttd90VAY30|
|тип шага|video|
|visibleName|Атмосферное давление|
|ссылка на контент шага|./environment4/jpg/text_08_1.jpg|
|тип шага|pager|
|table of contents thumb|text_08_1.jpg|
|visibleName|Атмосферное давление|
|ссылка на контент шага|./environment4/jpg/text_08_2.jpg|
|тип шага|pager|
|table of contents thumb|text_08_2.jpg|
|visibleName|Атмосферное давление|
|ссылка на контент шага|./oms/408-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/08-Конспект-Атмосферное_давление.pdf|
|занимает памяти|1,28 Мб|
|ссылка на материал|./environment4/pdf-3/408.%20Атмосферное%20давление.pdf|
|занимает памяти|52 Кб|
|visibleName|Инструкция к опыту и задания|
|visibleName|9. Давление воздуха и звук|
|galleryFolder|environment4/galleries/409. Давление воздуха и звук/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 сколько весит воздух.jpg"],
["02 барометр.jpg"],
["03 кубометры воздуха.jpg"],
["04 опыт Торричелли.jpg"],
["05 гора и объем воздуха.jpg"],
["06 человеку на горе плохо.jpg"],
["07 альпинист с баллоном воздуха.jpg"],
["08 давление и ртуть в барометре.jpg"],
["09 высотомер.jpg"],
["10 высотомер ВД10.jpg"],
["11 давление воздуха и мяч.jpg"],
["12 давление воздуха и мяч.jpg"],
["13 давление и шины.jpg"],
["14 давление и шины.jpg"],
["15 давление и двери.jpg"],
["16 механизм пневмопривода.jpg"],
["17 шахтеры.jpg"],
["18 механизм отбойного молотка.jpg"],
["19 пневматическая дрель.jpg"],
["20 пневматический шуруповёрт.jpg"],
["21 зубоврачебное сверло.jpg"],
["22 стеклодувы.jpg"],
["23 колба и бутылка.jpg"],
["24 выдувание стеклянной бутылки.jpg"],
["25 выдувание стеклянной бутылки.jpg"],
["26 доменная печь.jpg"],
["27 строение уха.jpg"],
["28 ковш и соль.jpg"],
["29 ковш и соль.jpg"],
["30 волна.jpg"],
["31 звуковая и морская волна.jpg"],
["32 отражение звука в горах, эхо.jpg"],
["33 эхо.jpg"],
["34 чертеж театра.jpg"],
["35 чертеж театра в цвете.jpg"],
["36 амфитеатр.jpg"],
["37 амфитеатр.jpg"]
],
"options":{}}
!%/
|visibleName|Давление воздуха и звук|
|ссылка на контент шага|https://youtu.be/5LdiyYVseYc|
|тип шага|video|
|visibleName|Давление воздуха|
|ссылка на контент шага|./environment4/jpg/text_09_1.jpg|
|тип шага|pager|
|table of contents thumb|text_09_1.jpg|
|visibleName|Звук|
|ссылка на контент шага|./environment4/jpg/text_09_2.jpg|
|тип шага|pager|
|table of contents thumb|text_09_2.jpg|
|visibleName|Давление воздуха и звук|
|ссылка на контент шага|./oms/409-1/|
|тип шага|task|
|contentHeight|600|
|ссылка на материал|./environment4/pdf/09-Конспект-Давление_воздуха_и_звук.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|2 Мб|
|visibleName|Инструкция к опыту|
|ссылка на материал|./environment4/pdf-3/409.%20Давление%20воздуха%20и%20звук.pdf|
|занимает памяти|25 Кб|
|visibleName|10. Воздух в природе и жизни человека|
|galleryFolder|environment4/galleries/410. Воздух в природе и жизни человека/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 компоненты воздуха.jpg"],
["02 вес воздуха.jpg"],
["03 Земля, атмосфера.jpg"],
["04 морской червь.jpg"],
["05 осьминог.jpg"],
["06 головастик.jpg"],
["07 рыба.jpg"],
["08 животные с жабрами.jpg"],
["09 кислород и вода.jpg"],
["10 фотосинтез.jpg"],
["11 атмосфера, ясная погода.jpg"],
["12 атмосфера, плохая погода.jpg"],
["13 люди боятся молнии.jpg"],
["14 конвекция.jpg"],
["15 земля и конвекция.jpg"],
["16 земля и конвекция.jpg"],
["17 карта мира с барометрами.jpg"],
["18 северный ветер.jpg"],
["19 скорость ветра зависит от давления.jpg"],
["20 крепкий дом.jpg"],
["21 ветхий и крепкий дом.jpg"],
["22 открытое окно.jpg"],
["23 закрытое окно.jpg"],
["24 закрытые шторы.jpg"],
["25 человек заходит в подъезд.jpg"],
["26 человек заходит в метро.jpg"],
["27 последствия урагана.jpg"],
["28 перевернутая машина.jpg"],
["29 деревья упали на машину.jpg"],
["30 деревья упали на машину.jpg"],
["31 ветер и паруса корабля.jpg"],
["32 мельница.jpg"],
["33 мельница.jpg"],
["34 зерно и мука.jpg"],
["35 ветряк.jpg"],
["36 электрогенератор ветряка.jpg"],
["37 электростанция.jpg"],
["38 метеостанция.jpg"],
["39 румбометр.jpg"],
["40 румбометр и компас.jpg"],
["41 анемометр.jpg"],
["42 вечер в прогнозе погоды.jpg"],
["43 пейзаж в штиль.jpg"],
["44 легкий ветер, 1-2 метра в секунду.jpg"],
["45 ветер, 5 метров в секунду.jpg"],
["46 ветер, 15 метров в секунду.jpg"],
["47 ветер, 20 метров в секунду.jpg"],
["48 штормовой ветер, выше 20 метров в секунду.jpg"],
["49 румбометр, анемометр и анеморумбометр.jpg"],
["50 анеморумбометр.jpg"]
],
"options":{}}
!%/
|visibleName|Польза воздуха|
|ссылка на контент шага|./environment4/jpg/text_10_1.jpg|
|тип шага|pager|
|table of contents thumb|text_10_1.jpg|
|visibleName|Метеорология|
|ссылка на контент шага|./environment4/jpg/text_10_2.jpg|
|тип шага|pager|
|table of contents thumb|text_10_2.jpg|
|visibleName|Скорость ветра|
|ссылка на контент шага|./environment4/jpg/text_10_3.jpg|
|тип шага|pager|
|table of contents thumb|text_10_3.jpg|
|visibleName|Как называется ветер?|
|ссылка на контент шага|./oms/410-2/|
|тип шага|task|
|contentHeight|620|
|visibleName|Конспект для ученика|
|занимает памяти|2,6 Мб|
|ссылка на материал|./environment4/pdf/10-Конспект-Воздух_в_природе_и_жизни_человека.pdf|
|visibleName|11. Состав воды|
|galleryFolder|environment4/galleries/411. Состав воды/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 стихия воздуха.jpg"],
["02 стихия воды.jpg"],
["03 молекулы.jpg"],
["04 молекулы.jpg"],
["05 капля воды.jpg"],
["06 моряк и плащ.jpg"],
["07 атомы.jpg"],
["08 водород.jpg"],
["09 водород и свинец.jpg"],
["10 аналогия.jpg"],
["11 кислород.jpg"],
["12 молекулы азота и углекислого газа.jpg"],
["13 молекулы азота и углекислого газа.jpg"],
["14 воздух смесь молекул.jpg"],
["15 сахароза.jpg"],
["16 молекула сахарозы.jpg"],
["17 вода.jpg"],
["18 буквы азбуки.jpg"],
["19 короткие слова и молекулы.jpg"],
["20 длинные слова и молекулы.jpg"],
["21 набор букв.jpg"],
["22 молекула воды.jpg"],
["23 молекула воды.jpg"],
["24 молекула воды как слово БОБ.jpg"],
["25 две молекулы воды разбираются.jpg"],
["26 атомы собрались в молекулы.jpg"],
["27 атомы собрались в молекулы.jpg"],
["28 получение воды из водорода и кислорода.jpg"]
],
"options":{}}
!%/
|visibleName|Собери молекулы|
|ссылка на контент шага|./oms/411-1/|
|тип шага|task|
|visibleName|Состав молекулы|
|ссылка на контент шага|https://youtu.be/p7F2OqO-Lxw|
|тип шага|video|
|visibleName|Состав вещества|
|ссылка на контент шага|./environment4/jpg/text_11_1.jpg|
|table of contents thumb|text_11_1.jpg|
|тип шага|pager|
|visibleName|Состав вещества|
|ссылка на контент шага|./environment4/jpg/text_11_2.jpg|
|table of contents thumb|text_11_2.jpg|
|тип шага|pager|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/11-Конспект-Состав_воды.pdf|
|занимает памяти|16 Кб|
|visibleName|Инструкция к опыту и задание|
|ссылка на материал|./environment4/pdf-3/411.%20Состав%20воды.pdf|
|занимает памяти|2мБ|
|visibleName|12. Вода — растворитель|
|galleryFolder|environment4/galleries/412. Вода — растворитель/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 молекула воды.jpg","","",""],
["02 молекула воды.jpg","","",""],
["03 море.jpg","","",""],
["04 чай.jpg","","",""],
["05 суп.jpg","","",""],
["06 кусочек сахара в воде.jpg","","",""],
["06 молекулы воды.jpg","","",""],
["07 растворение сахара в воде.jpg","","",""],
["08 первоклашки пришли на урок.jpg","","",""],
["09 первоклашки расселись равномерно.jpg","","",""],
["10 стекло в воде.jpg","","",""],
["11 гранит.jpg","","",""],
["12 кремень.jpg","","",""],
["13 алмаз.jpg","","",""],
["14 молекулы масла в воде.jpg","","",""],
["15 нефтяное пятно.jpg","","https://www.flickr.com/photos/coastguardnews/2701999015/","Coast Guard News"],
["16 молекула мыла.jpg","","",""],
["17 молекула мыла притягивает воду и жир.jpg","","",""],
["18 стирка грязной рубашки.jpg","","",""],
["19 действие мыла.jpg","","",""],
["20 действие мыла.jpg","","",""],
["21 Действие мыла.jpg","","",""],
["22 кровь в сосуде.jpg","","",""],
["23 клетка организма.jpg","","",""],
["24 клетка организма с водой внутри.jpg","","",""],
["25 органические растворители.jpg","","",""],
["26 бензин и керосин.jpg","","",""],
["27 твёрдый раствор.jpg","","",""]
],
"options":{}}
!%/
|ссылка на контент шага|./environment4/jpg/text_12_1.jpg|
|тип шага|pager|
|visibleName|Вода — растворитель|
|table of contents thumb|text_12_1.jpg|
|visibleName|Растворы в живых организмах. Виды растворов и растворителей|
|ссылка на контент шага|./environment4/jpg/text_12_2.jpg|
|тип шага|pager|
|table of contents thumb|text_12_2.jpg|
|visibleName|Вода — растворитель|
|ссылка на контент шага|https://youtu.be/-Dt5Tn2eb6M|
|тип шага|video|
|visibleName|Растворимость|
|ссылка на контент шага|./oms/412-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Инструкция к опыту|
|ссылка на материал|./environment4/pdf-3/412. Вода — растворитель.pdf|
|занимает памяти|22 кБ|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/12-Конспект-Вода_растворитель.pdf|
|занимает памяти|1,6 мБ|
|visibleName|13. Закон Архимеда|
|galleryFolder|environment4/galleries/413. Закон Архимеда/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 растворение 1.jpg","","",""],
["02 растворение 2.jpg","","",""],
["03 кусок сахара.jpg","","",""],
["04 Архимед.jpg","","",""],
["05 винт Архимеда.jpg","","",""],
["06 шар вписанный в цилиндр.jpg","","",""],
["07 коготь Архимеда.jpg","","",""],
["08 гвоздь, тыква, утёнок.jpg","","",""],
["09 мальчик и камень в воде.jpg","","",""],
["10 мальчик и камень на суше.jpg","","",""],
["11 мальчик и папа.jpg","","",""],
["12 вес воздуха.jpg","","",""],
["13 бутылка воды и воздуха.jpg","","",""],
["14 стрелки давления.jpg","","",""],
["15 напор воды.jpg","","",""],
["16 давление в атмосфере.jpg","","",""],
["17 вес лягушки.jpg","","",""],
["18 вес лягушки в воде.jpg","","",""],
["19 мальчик и камень.jpg","","",""],
["20 мальчик, папа и давление воды.jpg","","",""],
["21 мяч, дыня и утёнок.jpg","","",""],
["22 гвоздь и бревно.jpg","","",""],
["23 вытесненная вода 1.jpg","","",""],
["24 вытесненная вода 2.jpg","","",""],
["25 вытесненная вода 3.jpg","","",""],
["26 вытесненная вода 4.jpg","","",""],
["27 лягушка на весах.jpg","","",""],
["28 брусок на весах.jpg","","",""],
["29 яблоко на весах.jpg","","",""],
["30 гвоздь на весах.jpg","","",""],
["31 бревно на весах.jpg","","",""],
["32 формула с лягушкой.jpg","","",""],
["33 солёная вода.jpg","","",""],
["34 клубень и вода на весах.jpg","","",""],
["35 клубень в воде.jpg","","",""],
["36 клубень и солёная вода на весах.jpg","","",""],
["37 клубень в солёной воде.jpg","","",""],
["38 пловец.jpg","","",""],
["39 мальчик и двойник.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Закон Архимеда|
|ссылка на контент шага|./environment4/jpg/text_13_1.jpg|
|тип шага|pager|
|table of contents thumb|text_13_1.jpg|
|visibleName|Закон Архимеда|
|ссылка на контент шага|./environment4/jpg/text_13_2.jpg|
|тип шага|pager|
|table of contents thumb|text_13_2.jpg|
|тип шага|video|
|visibleName|Закон Архимеда|
|ссылка на контент шага|https://youtu.be/ft4OOUMLnNY|
|visibleName|Закон Архимеда|
|ссылка на контент шага|./oms/413-1/|
|тип шага|task|
|contentHeight|600|
|ссылка на контент шага|./oms/413-2/|
|тип шага|task|
|contentHeight|600|
|visibleName|Вес камня в воде|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/13-Конспект-Закон_Архимеда.pdf|
|занимает памяти|1,3 мБ|
|visibleName|Инструкция к опытам и задание|
|ссылка на материал|./environment4/pdf-3/413. Закон Архимеда.pdf|
|занимает памяти|241 кБ|
|visibleName|14. Пар, влажность воздуха, осадки|
|galleryFolder|environment4/galleries/414. Пар, влажность, осадки/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 стакан с водой.jpg","","",""],
["02 молекулы воды.jpg","","",""],
["03 молекулы воды улетают.jpg","","",""],
["04 моряк с мокрым плащом.jpg","","",""],
["05 горячая и холодная вода на доске.jpg","","",""],
["06 горячая и холодная вода на доске.jpg","","",""],
["07 пузырёк пара.jpg","","",""],
["08 вода испаряется на поверхности.jpg","","",""],
["09 вода испаряется в глубине.jpg","","",""],
["10 вода испаряется во всей колбе.jpg","","",""],
["11 «Пар» изо рта.jpg","","",""],
["12 чайник электрический.jpg","","",""],
["13 мальчик на морозе.jpg","","",""],
["14 ноябрь дождливо.jpg","","",""],
["15 нос увлажняет воздух.jpg","","",""],
["16 гигрометр.jpg","","https://commons.wikimedia.org/wiki/File:Hygrometer_USSR_1987.jpg","Schekinov Alexey Victorovich"],
["17 степь.jpg","","",""],
["18 тропики.jpg","","",""],
["19 низкая высокая влажность.jpg","","",""],
["20 конвекция.jpg","","",""],
["21 облака.jpg","","",""],
["22 пар из чайника.jpg","","",""],
["23 пар из чайника.jpg","","",""],
["24 «Пар» изо рта мальчика.jpg","","https://www.flickr.com/photos/11636079@N02/19037943153/","B K"],
["25 «Пар» изо рта оленя.jpg","","https://www.flickr.com/photos/tvrdypa/39061834015/","Pavel Tvrdy"],
["26 «Пар» изо рта девушки.jpg","","https://www.youtube.com/watch?v=vXhxjJMC0aA","zooskifilms"],
["27 слоистые облака.jpg","","https://www.flickr.com/photos/fede_92/43437493762/","fede 92"],
["28 слоистые облака 2.jpg","","https://www.flickr.com/photos/tirzahvb/39419042222/","Tirzah van Bemmel"],
["29 кучевые облака.jpg","","https://www.flickr.com/photos/boxwood_grove/34158314613/","Yury Pain"],
["30 кучевые облака 2.jpg","","https://www.flickr.com/photos/alvinharp/36171466556/","Alvin Harp"],
["31 перистые облака.jpg","","https://www.flickr.com/photos/-jon/7193893508/","-jon"],
["32 перистые облака 2.jpg","","https://www.flickr.com/photos/alexiustan/8061190181/","beanhead4529"],
["33 виды облаков.jpg","","",""],
["34 поток теплого воздуха держит облако.jpg","","",""],
["35 влажность воздуха на карте со шкалой.jpg","","",""],
["36 осадкомер и дождь.jpg","","",""],
["37 осадкомер и дождемер с мм.jpg","","",""],
["38 дождемер с мм.jpg","","",""],
["39 осадкомер.jpg","","https://www.flickr.com/photos/okmesonet/36460408162/","Mesonet User"],
["40 осадкомер.jpg","","https://www.flickr.com/photos/140969380@N07/26312285841/","UBC Micrometeorology"],
["41 гигрометр стрелочный.jpg","","https://www.flickr.com/photos/64711322@N00/8630516664/","eric"],
["42 гигрометр стрелочный.jpg","","https://www.flickr.com/photos/11861387@N07/2641753319/","andrew jason kormanec"],
["43 гигрометр электронный.jpg","","https://www.flickr.com/photos/23913494@N06/2976469763/","dilbertpumpernickle"],
["44 гигрометр электронный 2.jpg","","https://www.flickr.com/photos/zeta_masa/33286069701/","zeta.masa"],
["45 прогноз погоды влажность.jpg","","",""],
["46 оценка влажности.jpg","","",""],
["47 гигрометр.jpg","","",""],
["48 виды облаков.jpg","","",""],
["49 капельки воды превращаются в облако.jpg","","",""],
["50 нагрев воды на поверхности.jpg","","",""],
["51 нагрев воды в глубине.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Зачем нужен этот прибор?|
|ссылка на контент шага|./oms/414-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Какие это облака?|
|ссылка на контент шага|./oms/414-2/|
|тип шага|task|
|contentHeight|600|
|visibleName|Пар|
|ссылка на контент шага|./environment4/jpg/text_14_1.jpg|
|тип шага|pager|
|table of contents thumb|text_14_1.jpg|
|visibleName|Облака|
|ссылка на контент шага|./environment4/jpg/text_14_2.jpg|
|тип шага|pager|
|table of contents thumb|text_14_2.jpg|
|visibleName|Пар, влажность воздуха, осадки|
|ссылка на контент шага|https://youtu.be/x1x0lAxJSJ0|
|тип шага|video|
|visibleName|Инструкция к опыту и задания|
|ссылка на материал|./environment4/pdf-3/414.%20Пар,%20влажность,%20осадки.pdf|
|занимает памяти|53 Кб|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/14-Конспект-Пар_влажность_осадки.pdf|
|занимает памяти|1,4 Мб|
|visibleName|15. Лёд|
|galleryFolder|environment4/galleries/415. Лёд/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 тропики.jpg","","",""],
["02 вечная мерзлота зима.jpg","","",""],
["03 вечная мерзлота лето.jpg","","",""],
["04 сосульки на балконе.jpg","","https://www.flickr.com/photos/65509607@N08/7036163833/","Lyudmila Izmaylova"],
["05 ледяной Эльбрус.jpg","","https://www.flickr.com/photos/taema_dreiden/19218286748/","Taema"],
["06 замерзший Байкал.jpg","","https://www.flickr.com/photos/marcofieber/8710090355/","Marco Fieber"],
["07 заснеженный лес.jpg","","https://www.flickr.com/photos/ponomarevsergey/15582492924/","Sergey Ponomarev"],
["08 снежинка.jpg","","https://www.flickr.com/photos/128294308@N05/27338690879/","Rogg4n"],
["09 молекулы воды.jpg","","",""],
["10 атомы твердых веществ.jpg","","",""],
["11 свойства льда.jpg","","",""],
["12 вода и лёд.jpg","","",""],
["13 колба с водой.jpg","","",""],
["14 колба со льдом.jpg","","",""],
["15 кубики воды.jpg","","",""],
["16 кубики воды и льда.jpg","","",""],
["17 кубик льда и его водяной двойник.jpg","","",""],
["18 озеро лето.jpg","","",""],
["19 озеро осень.jpg","","",""],
["20 озеро поздняя осень.jpg","","",""],
["21 ноль градусов.jpg","","",""],
["22 озеро зима.jpg","","",""],
["23 ноги на льду.jpg","","",""],
["24 папа и ребенок на льду.jpg","","",""],
["25 опасные места на озере зимой.jpg","","",""],
["26 структура льда.jpg","","",""],
["27 лёд и соль.jpg","","",""],
["28 заснеженный тротуар и дворник.jpg","","",""],
["29 снег тает.jpg","","",""],
["30 снег растаял.jpg","","",""],
["31 сосульки на крыше.jpg","","https://www.flickr.com/photos/bslavin/5414745678/","Barbara L. Slavin"],
["32 сосульки.jpg","","https://www.flickr.com/photos/ivan-ru/4392224366/","Collection Vtorov"],
["33 оградительная лента.jpg","","https://www.flickr.com/photos/moscow-live/21807653300/","Фото Москвы Moscow-Live.ru"],
["34 предупреждение о сосульках.jpg","","https://www.flickr.com/photos/14541446@N02/7292453802/","hadronic"],
["35 конькобежный спорт.jpg","","https://www.flickr.com/photos/131096306@N06/32896288565/","#Luistelu"],
["36 санки.jpg","","https://www.flickr.com/photos/denisanikin/25664112221/","Denis Anikin"],
["37 хоккей.jpg","","http://newsprom.ru/news/Sport/221797.html#pretty[221797]/0/","s.s-ports.ru"],
["38 фигурное катание.jpg","","https://mir24.tv/news/16291287/rossiiskie-figuristy-vzyali-eshche-odnu-medal-igr-v-phenchhane","ТАСС / Шарифулин Валерий"],
["39 снег.jpg","","https://www.flickr.com/photos/18313512@N00/11762620295/","geevee41"],
["40 лыжи.jpg","","https://www.flickr.com/photos/lillehammer2016/24781986349/","Lillehammer 2016 Youth Olympic Games"],
["41 снеговик.jpg","","https://www.flickr.com/photos/90360368@N07/11533124885/","Lovely Pom"]
],
"options":{}}
!%/
|visibleName|Лёд|
|ссылка на контент шага|./environment4/jpg/text_15_1.jpg|
|тип шага|pager|
|table of contents thumb|text_15_1.jpg|
|visibleName|Лёд|
|ссылка на контент шага|./environment4/jpg/text_15_2.jpg|
|тип шага|pager|
|table of contents thumb|text_15_2.jpg|
|visibleName|Лёд|
|ссылка на контент шага|https://youtu.be/jW-KLmlsV4M|
|тип шага|video|
|visibleName|Лёд|
|ссылка на контент шага|./oms/415-1/|
|тип шага|task|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/15-Конспект-Лёд.pdf|
|visibleName|Инструкция к опытам|
|ссылка на материал|./environment4/pdf-3/415. Лёд.pdf|
|visibleName|16. Вода в природе и жизни человека|
|galleryFolder|environment4/galleries/416. Вода в природе и жизни человека/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 водная гладь.jpg","","https://flickr.com/photos/alexiustan/8061190181","beanhead4529"],
["02 «Пар» изо рта.jpg","","https://www.flickr.com/photos/11636079@N02/19037943153/","B K"],
["03 замерзший Байкал.jpg","","https://www.flickr.com/photos/marcofieber/8710090355/","Marco Fieber"],
["04 вода в теле человека.jpg","","",""],
["05 сахар в воде.jpg","","",""],
["06 пустыня.jpg","","",""],
["07 полив.jpg","","",""],
["08 полив.jpg","","",""],
["09 мытьё рук.jpg","","",""],
["10 стирка.jpg","","",""],
["11 мусор в воде.jpg","","",""],
["12 фильтр.jpg","","",""],
["13 губка.jpg","","",""],
["14 бактерии в воде.jpg","","",""],
["15 активированный уголь.jpg","","",""],
["16 кипячение воды.jpg","","",""],
["17 флакон яда.jpg","","",""],
["18 озонатор.jpg","","",""],
["19 молекулы соли в воде.jpg","","",""],
["20 планета Земля.jpg","","",""],
["21 чахлое растение.jpg","","",""],
["22 опреснительная установка.jpg","","",""],
["23 карта России.jpg","","",""],
["24 разные фильтры.jpg","","http://rbkv.ru/files/images/articles/filtry-grubojj-i-tonkojj-ochistki.jpg","rbkv.ru"],
["25 фильтры для дома.jpg","","https://www.yourbestdigs.com/reviews/best-water-filter-pitcher/","Daniel Jackson"],
["26 фильтр для загородного дома.jpg","","https://roadkillspatula.wordpress.com/2015/08/29/upgrading-the-whole-house-water-filter-system/","Roadkill Spatula"],
["27 фильтр промышленный.jpg","","https://prom-water.ru/files/azud/discovie/111.jpg","https://prom-water.ru/"],
["28 вода-путешественница.jpg","","",""],
["29 малый круг.jpg","","",""],
["30 грунтовые воды.jpg","","",""],
["31 колодец.jpg","","",""],
["32 родник.jpg","","",""],
["33 реки.jpg","","",""],
["34 большой круг.jpg","","",""],
["35 снег на земле.jpg","","",""],
["36 испарение.jpg","","",""],
["37 вершина горы, снег.jpg","","",""],
["38 испарение на земле.jpg","","",""],
["39 судно в море.jpg","","",""],
["40 нефтепровод.jpg","","",""],
["41 танкер.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Круговорот воды|
|ссылка на контент шага|./oms/416-2/|
|тип шага|task|
|contentHeight|600|
|visibleName|Вода в природе и жизни человека|
|ссылка на контент шага|https://youtu.be/f7FqxLEy_AI|
|тип шага|video|
|visibleName|Вода в природе и жизни человека|
|ссылка на контент шага|./environment4/jpg/text_16_1.jpg|
|тип шага|pager|
|table of contents thumb|text_16_1.jpg|
|visibleName|Загрязнители и способы очистки воды|
|ссылка на контент шага|./environment4/jpg/text_16_2.jpg|
|тип шага|pager|
|table of contents thumb|text_16_2.jpg|
|visibleName|Большой круговорот воды в природе|
|ссылка на контент шага|./environment4/jpg/text_16_3.jpg|
|тип шага|pager|
|table of contents thumb|text_16_3.jpg|
|ссылка на контент шага|./oms/416-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|От чего нужно очищать воду|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/16-Конспект-Вода_в_природе_и_жизни_человека.pdf|
|visibleName|17. Заряды и их взаимодействие|
|galleryFolder|environment4/galleries/417. Заряды и их взаимодействие/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 люди боятся молнии.jpg","","",""],
["02 электрические приборы.jpg","","",""],
["03 янтарь и шерстяная тряпочка.jpg","","",""],
["04 янтарь и соринки.jpg","","",""],
["05 янтарь притягивает соринки.jpg","","",""],
["06 пистолеты.jpg","","",""],
["07 шарики.jpg","","",""],
["08 заряды.jpg","","",""],
["09 конструктор.jpg","","",""],
["10 рубашка.jpg","","",""],
["11 шарики и шарфы.jpg","","",""],
["12 шарики заряжены одинаково.jpg","","",""],
["13 шарики отталкиваются.jpg","","",""],
["14 шарик и шарф.jpg","","",""],
["15 заряд — свойство предмета.jpg","","",""],
["16 молекулы и атомы.jpg","","",""],
["17 атом и заряженные частицы.jpg","","",""],
["18 равновесие зарядов.jpg","","",""],
["19 заряды в атомах уравновешены.jpg","","",""],
["20 школьный класc.jpg","","",""],
["21 шарик и шарф.jpg","","",""],
["22 переход заряженных частиц.jpg","","",""],
["23 шарики отталкиваются.jpg","","",""],
["24 электрический ток.jpg","","",""],
["25 неуравновешенные заряды в предметах.jpg","","",""],
["26 частицы внутри атома.jpg","","",""],
["27 равновесие зарядов в предметах.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Заряды и их взаимодействие|
|ссылка на контент шага|./oms/417-1/|
|тип шага|task|
|contentHeight|620|
|visibleName|Заряды и их взаимодействие|
|ссылка на контент шага|https://youtu.be/L0iPKA2Cp0A|
|тип шага|video|
|visibleName|Заряды и их взаимодействие|
|ссылка на контент шага|./environment4/jpg/text_17_1.jpg|
|тип шага|pager|
|table of contents thumb|text_17_1.jpg|
|visibleName|Заряды и их взаимодействие|
|ссылка на контент шага|./environment4/jpg/text_17_2.jpg|
|тип шага|pager|
|table of contents thumb|text_17_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/17-Конспект-Заряды_и_их_взаимодействие.pdf|
|visibleName|18. Электрический ток|
|galleryFolder|environment4/galleries/418. Электрический ток/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 поток воды в трубе.jpg","","",""],
["02 водопроводные трубы.jpg","","",""],
["03 провода.jpg","","",""],
["04 медный провод в разрезе.jpg","","",""],
["05 труба.jpg","","",""],
["06 провод.jpg","","",""],
["07 ток в проводе.jpg","","",""],
["08 источник тока и провод.jpg","","",""],
["09 насос и труба.jpg","","",""],
["10 источник тока и провод.jpg","","",""],
["11 круги кровообращения.jpg","","",""],
["12 приборы в электрической цепи.jpg","","",""],
["13 схема электрической цепи с подписями.jpg","","",""],
["14 труба и редуктор давления.jpg","","",""],
["15 труба и редуктор давления.jpg","","",""],
["16 сопротивление.jpg","","",""],
["17 сопротивление на проводе.jpg","","",""],
["18 сопротивления.jpg","","https://www.livescience.com/53875-resistors-capacitors-inductors.html","Peter Mathys, University of Colorado"],
["19 сопротивление (условное обозначение).jpg","","",""],
["20 цепь с сопротивлением и без.jpg","","",""],
["21 реостат (условное обозначение).jpg","","",""],
["22 схема с реостатом.jpg","","",""],
["23 электродвигатель (условное обозначение).jpg","","",""],
["24 реостат.jpg","","",""],
["25 сопротивление.jpg","","",""],
["26 электродвигатель.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Электрическая схема|
|ссылка на контент шага|./oms/418-1/|
|тип шага|task|
|contentHeight|620|
|visibleName|Электрический ток|
|ссылка на контент шага|./environment4/jpg/text_18_1.jpg|
|тип шага|pager|
|table of contents thumb|text_18_1.jpg|
|visibleName|Схема электрической цепи|
|ссылка на контент шага|./environment4/jpg/text_18_2.jpg|
|тип шага|pager|
|table of contents thumb|text_18_2.jpg|
|visibleName|Электрический ток|
|ссылка на контент шага|https://youtu.be/0CBJtHaKw60|
|тип шага|video|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/18-Конспект-Электрический_ток.pdf|
|visibleName|19. Проводники и источники тока|
|galleryFolder|environment4/galleries/419. Проводники и источники тока/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 проводник.jpg","","",""],
["02 графит.jpg","","",""],
["03 графитовые вставки в троллейбусах.jpg","","",""],
["04 троллейбус.jpg","","",""],
["05 разделение воды на водород и кислород.jpg","","",""],
["06 разделение воды на водород и кислород.jpg","","",""],
["07 солёная вода — проводник.jpg","","",""],
["08 розетка.jpg","","",""],
["09 источники тока c подписями.jpg","","",""],
["10 Луиджи Гальвани.jpg","","",""],
["11 гальванический элемент.jpg","","",""],
["12 Алессандро Вольта.jpg","","",""],
["13 выбор пластин.jpg","","",""],
["14 цинк и медь.jpg","","",""],
["15 пушки.jpg","","",""],
["16 батарея пушек.jpg","","",""],
["17 вольтов столб.jpg","","",""],
["18 электростанция.jpg","","",""],
["19 электрогенератор.jpg","","",""],
["20 ГЭС.jpg","","",""],
["21 иконка ГЭС.jpg","","",""],
["22 ГЭС на карте России.jpg","","",""],
["23 иконка ТЭС.jpg","","",""],
["24 ТЭС.jpg","","",""],
["25 завод ЖБИ.jpg","","",""],
["26 кухня.jpg","","",""],
["27 фотоэлемент.jpg","","",""],
["28 фотоэлементы.jpg","","",""],
["29 солнечная батарея.jpg","","https://www.flickr.com/photos/123502522@N02/13898686786/","James Moran"],
["30 солнечная батарея.jpg","","https://www.flickr.com/photos/solareworld/8552188190/","Solar Energy World, LLC"],
["31 солнечная батарея.jpg","","https://www.flickr.com/photos/greeleygov/8738562941/","City of Greeley"],
["32 фотосинтез и солнечная батарея.jpg","","",""],
["33 солнечная батарея на космическом аппарате.jpg","","https://en.wikipedia.org/wiki/File:ISS-52_Roll_Out_Solar_Array_(ROSA)_(4).jpg","NASA"],
["34 солнечная батарея на космическом аппарате.jpg","","https://en.wikipedia.org/wiki/File:Illumination_test_on_one_of_Juno%27s_solar_panels.jpg","NASA/Jack Pfaller"],
["35 солнечная батарея на космическом аппарате.jpg","","https://en.wikipedia.org/wiki/File:ROSSA.jpg","NASA"],
["36 батарейка.jpg","","",""],
["37 электрогенератор.jpg","","",""],
["38 Спутник-телескоп.jpg","","",""],
["39 Спутник метеорологический.jpg","","",""],
["40 Спутник связи.jpg","","",""],
["41 Спутник телескоп.jpg","","",""],
["42 батарейка.jpg","","",""],
["43 ветрогенератор.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Проводимость|
|ссылка на контент шага|./oms/419-1/|
|тип шага|task|
|contentHeight|620|
|visibleName|Источники тока|
|ссылка на контент шага|./environment4/jpg/text_19_1.jpg|
|тип шага|pager|
|table of contents thumb|text_19_1.jpg|
|visibleName|Источники тока|
|ссылка на контент шага|./environment4/jpg/text_19_2.jpg|
|тип шага|pager|
|table of contents thumb|text_19_2.jpg|
|visibleName|Источники тока|
|ссылка на контент шага|./environment4/jpg/text_19_3.jpg|
|тип шага|pager|
|table of contents thumb|text_19_3.jpg|
|visibleName|Проводники и источники тока|
|ссылка на контент шага|https://youtu.be/tmBfJJRLhOQ|
|тип шага|video|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/19-Конспект-Проводники-и-источники-тока.pdf|
|visibleName|20. Магнетизм|
|galleryFolder|environment4/galleries/420. Магнетизм/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 электричество и магнетизм.jpg","","",""],
["02 электромагнетизм.jpg","","",""],
["03 одноимённые заряды.jpg","","",""],
["04 разноимённые заряды.jpg","","",""],
["05 магнит.jpg","","",""],
["06 компас и полюса.jpg","","",""],
["07 одноимённые заряды.jpg","","",""],
["08 разноимённые заряды.jpg","","",""],
["09 распиливание магнита.jpg","","",""],
["10 распиленный магнит.jpg","","",""],
["11 мельчайшие частички магнита.jpg","","",""],
["12 мельчайшая частичка магнита.jpg","","",""],
["13 мельчайшая частичка магнита не делится.jpg","","",""],
["14 силовые линии магнитного поля.jpg","","",""],
["15 силовые линии магнитного поля.jpg","","",""],
["16 электрическое поле.jpg","","",""],
["17 Ганс Кристиан Эрстед.jpg","","",""],
["18 Эрстед и помощник.jpg","","",""],
["19 Майкл Фарадей.jpg","","",""],
["20 катушка и амперметр.jpg","","",""],
["21 ток при движении магнита.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Магнетизм|
|ссылка на контент шага|./oms/420-1/|
|тип шага|task|
|contentHeight|620|
|visibleName|Электромагнетизм|
|ссылка на контент шага|./oms/420-2/|
|тип шага|task|
|contentHeight|620|
|visibleName|Магнетизм|
|ссылка на контент шага|./environment4/jpg/text_20_1.jpg|
|тип шага|pager|
|table of contents thumb|text_20_1.jpg|
|visibleName|Электромагнетизм|
|ссылка на контент шага|./environment4/jpg/text_20_2.jpg|
|тип шага|pager|
|table of contents thumb|text_20_2.jpg|
|visibleName|Магнетизм|
|ссылка на контент шага|https://youtu.be/G4ee_rDXV6w|
|тип шага|video|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/20-Конспект-Магнетизм.pdf|
|visibleName|21. Значение электричества для человека|
|galleryFolder|environment4/galleries/421. Значение электричества для человека/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 общий коридор.jpg","","",""],
["02 ключ.jpg","","",""],
["03 динамик.jpg","","",""],
["04 звонок.jpg","","",""],
["05 прихожая.jpg","","",""],
["06 выключатель и лампочка.jpg","","",""],
["07 строение лампочки.jpg","","",""],
["08 кухня.jpg","","",""],
["09 чайник.jpg","","",""],
["10 стиральная машина и нагревательный элемент.jpg","","",""],
["11 электромотор стиральной машины.jpg","","",""],
["12 стиральная машина.jpg","","",""],
["13 пылесос.jpg","","",""],
["14 комната.jpg","","",""],
["15 часы.jpg","","",""],
["16 экран телевизора.jpg","","",""],
["17 изображение на экране.jpg","","",""],
["18 динамики телевизора.jpg","","",""],
["19 динамики телевизора (иконки).jpg","","",""],
["20 ноутбук.jpg","","",""],
["21 город.jpg","","",""],
["22 электродвигатели трамвая.jpg","","",""],
["23 под капотом автомобиля.jpg","","",""],
["24 электробус.jpg","","",""],
["25 электродвигатель на станке.jpg","","https://www.youtube.com/watch?v=JhiQql34l9g","Чилли Вилли"],
["26 электропечь.jpg","","",""],
["27 Не включай сломанный прибор (иконка).jpg","","",""],
["28 держи электроприборы подальше от воды (иконка).jpg","","",""],
["29 не трогай уличные провода (иконка).jpg","","",""],
["30 обрыв провода ЛЭП.jpg","","",""],
["31 не купайся в грозу.jpg","","",""],
["32 гроза на лугу.jpg","","",""],
["33 гроза в лесу.jpg","","",""],
["34 выключай технику во время грозы.jpg","","",""],
["35 громоотвод — неправильное название.jpg","","",""],
["36 молниеотвод.jpg","","",""],
["37 молниеотвод.jpg","","",""],
["38 молниеотвод в городе.jpg","","https://avatars.mds.yandex.net/get-altay/790902/2a00000162ac8b22ee0a6cab3bc1ac39e236/XXXL","Молзем"],
["39 энергосберегающая лампа.jpg","","",""],
["40 молния.jpg","","",""],
["41 телефон заряжается на ванной.jpg","","",""],
["42 телефон заряжается на столе.jpg","","",""],
["43 сломанный тостер.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Электромагнетизм в жизни человека|
|ссылка на контент шага|./environment4/jpg/text_21_1.jpg|
|table of contents thumb|text_21_1.jpg|
|тип шага|pager|
|visibleName|Электромагнетизм в жизни человека|
|ссылка на контент шага|./environment4/jpg/text_21_2.jpg|
|table of contents thumb|text_21_2.jpg|
|тип шага|pager|
|visibleName|Электромагнетизм в жизни человека|
|ссылка на контент шага|./environment4/jpg/text_21_3.jpg|
|table of contents thumb|text_21_3.jpg|
|тип шага|pager|
|visibleName|Значение электричества для человека|
|ссылка на контент шага|https://youtu.be/EWZtViJWec4|
|тип шага|video|
|visibleName|Части электрических приборов|
|ссылка на контент шага|./oms/421-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Электромагнетизм в жизни человека|
|ссылка на контент шага|./oms/421-2/|
|тип шага|task|
|contentHeight|600|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/21-Конспект-Значение_электричества_для_человека.pdf|
|visibleName|22. Свет|
|galleryFolder|environment4/galleries/422. Свет/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 стихия света.jpg","","",""],
["02 Галилео Галилей.jpg","","",""],
["03 Исаак Ньютон.jpg","","",""],
["04 Эрстед и Фарадей.jpg","","",""],
["05 волны света и воды.jpg","","",""],
["06 призма и Ньютон.jpg","","",""],
["07 призма.jpg","","",""],
["08 радуга.jpg","","",""],
["09 цвета радуги.jpg","","",""],
["10 запоминалка цветов радуги.jpg","","",""],
["11 фазан.jpg","","",""],
["12 свет летит до Луны.jpg","","",""],
["13 свет летит до Нептуна.jpg","","",""],
["14 свет летит по прямой.jpg","","",""],
["15 пропускание света.jpg","","",""],
["16 поглощение света.jpg","","",""],
["17 отражение света.jpg","","",""],
["18 пропускание, поглощение и отражение света.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Свет|
|ссылка на контент шага|./environment4/jpg/text_22_1.jpg|
|тип шага|pager|
|table of contents thumb|text_22_1.jpg|
|visibleName|Световые явления|
|ссылка на контент шага|./environment4/jpg/text_22_2.jpg|
|тип шага|pager|
|table of contents thumb|text_22_2.jpg|
|visibleName|Свет|
|ссылка на контент шага|https://youtu.be/GE3KuRjzjpU|
|тип шага|video|
|visibleName|Узнай учёного|
|ссылка на контент шага|./oms/422-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Свет|
|ссылка на контент шага|./oms/422-2/|
|тип шага|task|
|contentHeight|600|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/22-Конспект-Свет.pdf|
|visibleName|23. Отражение и поглощение света|
|galleryFolder|environment4/galleries/423. Отражение и поглощение света/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 прямой луч.jpg","","",""],
["02 луч под углом.jpg","","",""],
["03 луч под углом.jpg","","",""],
["04 пальма.jpg","","",""],
["05 углы падения и отражения.jpg","","",""],
["06 ветки совпали.jpg","","",""],
["07 футбольный мяч.jpg","","",""],
["08 футболист.jpg","","",""],
["09 отражение света от ладони.jpg","","",""],
["10 Луна.jpg","","",""],
["11 рассеивание и отражение.jpg","","",""],
["12 красный цвет.jpg","","",""],
["13 оранжевый цвет.jpg","","",""],
["14 жёлто-зелёный цвет.jpg","","",""],
["15 чёрный и белый цвета.jpg","","",""],
["16 мы видим отражённый свет.jpg","","",""],
["17 фотоэлемент.jpg","","",""],
["18 зелёный цвет.jpg","","",""],
["19 пейзаж.jpg","","",""],
["20 цвета предметов.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Отражение и поглощение света|
|ссылка на контент шага|./environment4/jpg/text_23_1.jpg|
|тип шага|pager|
|table of contents thumb|text_23_1.jpg|
|visibleName|Отражение и поглощение света|
|ссылка на контент шага|./environment4/jpg/text_23_2.jpg|
|тип шага|pager|
|table of contents thumb|text_23_2.jpg|
|visibleName|Отражение и поглощение света|
|ссылка на контент шага|https://youtu.be/4Aty9_o1NW4|
|тип шага|video|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/23-Конспект-Отражение_и_поглощение_света.pdf|
|visibleName|24. Пропускание света. Линзы|
|galleryFolder|environment4/galleries/424. Пропускание света Линзы/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 пропускание света.jpg","","",""],
["02 ванночка и траектория луча.jpg","","",""],
["03 ванночка и траектория луча.jpg","","",""],
["04 Архимед.jpg","","",""],
["05 солнечная система.jpg","","",""],
["06 человек вбегает в воду.jpg","","",""],
["07 преломление света.jpg","","",""],
["08 фокус.jpg","","",""],
["09 учёный с микроскопом.jpg","","",""],
["10 лупа.jpg","","",""],
["11 выпуклая и вогнутая линзы.jpg","","",""],
["12 капля как линза.jpg","","https://www.flickr.com/photos/163262142@N07/46813423185/","Aaron Oh"],
["13 капля как линза.jpg","","https://www.flickr.com/photos/didmyself/10714416436/","Daniel Kulinski"],
["14 сила линзы.jpg","","",""],
["15 карандаш и плоская линза.jpg","","",""],
["16 карандаш и плоская линза.jpg","","",""],
["17 карандаш и выпуклая линза.jpg","","",""],
["18 карандаш и выпуклая линза.jpg","","",""],
["19 линза микроскопа.jpg","","",""],
["20 масляная и водяная линзы.jpg","","",""],
["21 линзы в микроскопе.jpg","","",""],
["22 бактерии под микроскопом.jpg","","",""],
["23 клетки.jpg","","",""],
["24 схема телескопа.jpg","","",""],
["25 спутники Юпитера.jpg","","",""],
["26 телескоп.jpg","","https://www.youtube.com/watch?v=waxqSCEFkBo&t=118s","J.W.Astronomy"],
["27 масляная и водяная линзы.jpg","","",""],
["28 фокус линзы.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Преломление света|
|ссылка на контент шага|./environment4/jpg/text_24_1.jpg|
|тип шага|pager|
|table of contents thumb|text_24_1.jpg|
|visibleName|Линзы|
|ссылка на контент шага|./environment4/jpg/text_24_2.jpg|
|тип шага|pager|
|table of contents thumb|text_24_2.jpg|
|visibleName|Оптические приборы|
|ссылка на контент шага|./environment4/jpg/text_24_3.jpg|
|тип шага|pager|
|table of contents thumb|text_24_3.jpg|
|visibleName|Отражение света|
|ссылка на контент шага|./oms/423-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Пропускание света. Линзы|
|ссылка на контент шага|https://youtu.be/XTrSkN4PVLQ|
|тип шага|video|
|visibleName|Цвет|
|ссылка на контент шага|./oms/423-2/|
|тип шага|task|
|contentHeight|600|
|visibleName|Пропускание света|
|ссылка на контент шага|./oms/424-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/24-Конспект-Пропускание_света_Линзы.pdf|
|visibleName|25. Что такое тепло?|
|galleryFolder|environment4/galleries/425. Что такое тепло/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 горячий песок.jpg","","",""],
["02 нервная система.jpg","","",""],
["03 тарелка с кашей.jpg","","",""],
["04 теплород.jpg","","",""],
["05 Бенджамин Томпсон.jpg","","",""],
["06 сверление ствола.jpg","","",""],
["07 Томпсон размышляет.jpg","","",""],
["08 молекулы металла.jpg","","",""],
["09 молекулы кожи.jpg","","",""],
["10 молекулы металла разогрелись.jpg","","",""],
["11 нагреваясь, воздух расширяется.jpg","","",""],
["12 охлаждаясь, воздух сжимается.jpg","","",""],
["13 гранитная скала.jpg","","",""],
["14 скала трескается.jpg","","",""],
["15 дети стоят строем.jpg","","",""],
["16 дети заняли весь зал.jpg","","",""],
["17 молекулы медленные и быстрые.jpg","","",""],
["18 лёд.jpg","","",""],
["19 лёд плавится.jpg","","",""],
["20 опреснительная установка.jpg","","",""],
["21 облако.jpg","","",""],
["22 доменная печь.jpg","","",""],
["23 магма.jpg","","",""]
],
"options":{}}
!%/
|ссылка на контент шага|./environment4/jpg/text_25_1.jpg|
|тип шага|pager|
|visibleName|Что такое тепло?|
|table of contents thumb|text_25_1.jpg|
|visibleName|Тепловые явления|
|ссылка на контент шага|./environment4/jpg/text_25_2.jpg|
|тип шага|pager|
|table of contents thumb|text_25_2.jpg|
|visibleName|Что такое тепло?|
|ссылка на контент шага|https://youtu.be/YtmNFIvDvyk|
|тип шага|video|
|visibleName|Что такое тепло?|
|ссылка на контент шага|./oms/425-1/|
|тип шага|task|
|contentHeight|600|
|ссылка на материал| ./environment4/pdf/25-Конспект-Что_такое_тепло.pdf|
|visibleName|Конспект для ученика|
|занимает памяти|2,5 мБ|
|visibleName|26. Способы передачи тепла|
|galleryFolder|environment4/galleries/426. Способы передачи тепла/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 воздух нагревается.jpg","","",""],
["02 молекулы горячего и холодного вещества.jpg","","",""],
["03 конвекция.jpg","","",""],
["04 тёплый южный ветер.jpg","","",""],
["05 Солнце.jpg","","",""],
["06 электромагнитные волны.jpg","","",""],
["07 чёрный бак с водой.jpg","","",""],
["08 молекулы в баке с водой.jpg","","",""],
["09 девочка сидит на пляже.jpg","","",""],
["10 нагревание земли.jpg","","",""],
["11 чёрный и белый листы.jpg","","",""],
["12 чернение снега.jpg","","https://www.youtube.com/watch?v=lImSsfzLH7g","Рукастый Мужик"],
["13 излучение.jpg","","",""],
["14 теплопроводность.jpg","","",""],
["15 конвекция.jpg","","",""],
["16 чай.jpg","","",""],
["17 термос в разрезе крупно.jpg","","",""],
["18 термос с чаем в разрезе.jpg","","",""],
["19 инфракрасные лучи внутри термоса.jpg","","",""],
["20 конвекция в термосе.jpg","","",""],
["21 молекулы «горячие» и «холодные».jpg","","",""]
],
"options":{}}
!%/
|visibleName|Способы передачи тепла|
|ссылка на контент шага|./oms/426-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Способы передачи тепла|
|ссылка на контент шага|./environment4/jpg/text_26_1.jpg|
|тип шага|pager|
|table of contents thumb|text_26_1.jpg|
|visibleName|Способы передачи тепла|
|ссылка на контент шага|./environment4/jpg/text_26_2.jpg|
|тип шага|pager|
|table of contents thumb|text_26_2.jpg|
|visibleName|Способы передачи тепла|
|ссылка на контент шага|https://youtu.be/j_0kiplz_s8|
|тип шага|video|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/26-Конспект-Способы_передачи_тепла.pdf|
|занимает памяти|1.6 мБ|
|visibleName|27. Тепловые явления в жизни человека|
|galleryFolder|environment4/galleries/427. Тепловые явления в жизни человека/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 провода летом.jpg","","",""],
["02 провода зимой.jpg","","",""],
["03 рельсы.jpg","","",""],
["04 рельсы погнулись от жары.jpg","","",""],
["05 рельсы с зазором.jpg","","",""],
["06 барометр.jpg","","",""],
["07 мама предлагает надеть шапку.jpg","","",""],
["08 разные шкалы термометров.jpg","","",""],
["09 Андерс Цельсий.jpg","","",""],
["10 создание шкалы.jpg","","",""],
["11 термометр со шкалой.jpg","","",""],
["12 шкала термометра.jpg","","",""],
["13 положительная и отрицательная температуры.jpg","","",""],
["14 выше и ниже нуля.jpg","","",""],
["15 Уильям Томсон Кельвин.jpg","","",""],
["16 шкалы Цельсия и Кельвина.jpg","","",""],
["17 ноль по Кельвину.jpg","","",""],
["18 Нептун.jpg","","",""],
["19 волокно древесины с воздухом.jpg","","",""],
["20 шерсть с воздухом внутри.jpg","","",""],
["21 снежинки с воздухом между ними.jpg","","",""],
["22 озимая пшеница.jpg","","https://www.youtube.com/watch?v=FLIVxk_qHjU","Pro100 ФЕРМЕР"],
["23 деревянный сруб.jpg","","",""],
["24 кирпичный дом.jpg","","",""],
["25 кирпич.jpg","","",""],
["26 бабуля в квартире со старыми окнами.jpg","","",""],
["27 двойной стеклопакет.jpg","","",""],
["28 бабуля и новое окно.jpg","","",""],
["29 каменная вата.jpg","","http://sashakustov.ru/543-mineralnaya-vata-harakteristiki-i-sfery-primeneniya.html","Александр Кустов"],
["30 каменная вата.jpg","","https://www.flickr.com/photos/seadipper/30257465931/in/photolist-g8XmUP-g8XKo7-g8WmM7-g8XEnd-g8YdaR-N6KpTi-N6Kqt6-ga7QpT-4hai36-ga7SH1-93iSGz-89mndE-daxXWA-7pmLFm-7pmKXq-8CyoWw-7phU6c-F2H2Qp-7yEF7G-Eu9W5U-hyaF8f-SeZRgm-2gNh6MB-2gJBnRS-2gdZ9Jq","Elmar Eye"],
["31 каменная вата.jpg","","https://spbrik.ru/wp-content/uploads/2017/03/20170204_120649.jpg","Марина / ООО «РиК»"],
["32 цена деления.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Тепловые явления в жизни человека|
|ссылка на контент шага|https://youtu.be/RZUvZ0SYXCo|
|тип шага|video|
|visibleName|Тепловые явления в жизни человека|
|ссылка на контент шага|./oms/427-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Температурная шкала|
|ссылка на контент шага|./environment4/jpg/text_27_1.jpg|
|тип шага|pager|
|table of contents thumb|text_27_1.jpg|
|visibleName|Теплоизоляторы|
|ссылка на контент шага|./environment4/jpg/text_27_2.jpg|
|тип шага|pager|
|table of contents thumb|text_27_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/27-Конспект-Тепловые_явления_в_жизни_человека.pdf|
|занимает памяти|2,2 мБ|
|visibleName|28. Принципы прочных конструкций|
|galleryFolder|environment4/galleries/428. Принципы прочных конструкций/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 шкаф.jpg","","",""],
["02 шкаф в квартире.jpg","","",""],
["03 шкаф на складе.jpg","","",""],
["04 пол и потолок.jpg","","",""],
["05 сталь, цемент, железобетон.jpg","","",""],
["06 плоский бумажный мост не держит.jpg","","",""],
["07 мост с рёбрами жёсткости.jpg","","",""],
["08 мост-швеллер.jpg","","",""],
["09 мост-тавр.jpg","","",""],
["10 балки.jpg","","",""],
["11 швеллер.jpg","","",""],
["12 сплошная балка.jpg","","",""],
["13 сплошная балка прогнулась.jpg","","",""],
["14 ушная раковина.jpg","","",""],
["15 рёбра жёсткости на ушах.jpg","","",""],
["16 уши без рёбер жёсткости.jpg","","",""],
["17 спаниель.jpg","","",""],
["18 арка из бумаги.jpg","","",""],
["19 арка.jpg","","",""],
["20 мост и поезд.jpg","","",""],
["21 арка.jpg","","https://www.flickr.com/photos/iks_berto/26409631633/","magro_kr"],
["22 арка.jpg","","https://www.flickr.com/photos/jimmyharris/2533979576/","Jimmy Harris"],
["23 древнегреческая арка.jpg","","",""],
["24 современная арка.jpg","","",""],
["25 арка в парке.jpg","","",""],
["26 череп.jpg","","",""],
["27 ребра.jpg","","",""],
["28 гофрированный картон.jpg","","",""],
["29 надрезанный мост с рёбрами жёсткости.jpg","","",""],
["30 останкинская башня.jpg","","https://www.flickr.com/photos/118183537@N06/12800429575/","Maxim Ulitin"],
["31 стебель.jpg","","",""],
["32 бедренная кость.jpg","","",""],
["33 принцип арки.jpg","","",""],
["34 принцип колонны.jpg","","",""],
["35 принцип ребра жёсткости.jpg","","",""],
["36 балки.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Стихия Земли. Принципы прочных конструкций|
|ссылка на контент шага|https://youtu.be/HCnfjQFB1KQ|
|тип шага|video|
|visibleName|Принципы прочных конструкций|
|ссылка на контент шага|./oms/428-1/|
|тип шага|task|
|visibleName|Принципы прочных конструкций|
|ссылка на контент шага|./environment4/jpg/text_28_1.jpg|
|тип шага|pager|
|table of contents thumb|text_28_1.jpg|
|visibleName|Принципы прочных конструкций|
|ссылка на контент шага|./environment4/jpg/text_28_2.jpg|
|тип шага|pager|
|table of contents thumb|text_28_2.jpg|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/28-Конспект-Принципы_прочных_конструкций.pdf|
|занимает памяти|2,1 мБ|
|visibleName|29. Простые механизмы|
|galleryFolder|environment4/galleries/429. Простые механизмы/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 рычаг.jpg","","",""],
["02 части рычага.jpg","","",""],
["03 золотое правило механики.jpg","","",""],
["04 выигрыш в силе.jpg","","",""],
["05 выигрыш в расстоянии.jpg","","",""],
["06 динамометр и груз.jpg","","",""],
["07 динамометр и груз.jpg","","",""],
["08 качели.jpg","","",""],
["09 качели.jpg","","",""],
["10 качели.jpg","","",""],
["11 шкаф и рычаг.jpg","","",""],
["12 одинаковые плечи рычага.jpg","","",""],
["13 разные плечи рычага.jpg","","",""],
["14 дверной замок.jpg","","",""],
["15 рука с гантелей.jpg","","",""],
["16 динамометр и груз.jpg","","",""],
["17 динамометр и груз на наклонной плоскости.jpg","","",""],
["18 наклонная плоскость.jpg","","",""],
["19 погрузка в машину.jpg","","",""],
["20 погрузка в машину.jpg","","",""],
["21 резьба болта.jpg","","",""],
["22 болт.jpg","","",""],
["23 мотор.jpg","","",""],
["24 мотор.jpg","","",""],
["25 молоток с гвоздодёром.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Простые механизмы|
|ссылка на контент шага|https://youtu.be/CxL_cIASofY|
|тип шага|video|
|visibleName|Простые механизмы|
|ссылка на контент шага|./oms/429-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Простые механизмы|
|ссылка на контент шага|./environment4/jpg/text_29_1.jpg|
|table of contents thumb|text_29_1.jpg|
|тип шага|pager|
|visibleName|Простые механизмы в жизни человека|
|table of contents thumb|text_29_2.jpg|
|ссылка на контент шага|./environment4/jpg/text_29_2.jpg|
|тип шага|pager|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/29-Конспект-Простые_механизмы.pdf|
|занимает памяти|1,3 мБ|
|visibleName|30. Сила трения|
|galleryFolder|environment4/galleries/430. Сила трения/|
<<lessonAdminPanel>>/%
!!!Описание
!%//%
!gallery data
{"data":[
["01 прочные конструкции.jpg","","",""],
["02 слон.jpg","","",""],
["03 неровности на столе.jpg","","",""],
["04 неровности на стопе слона.jpg","","",""],
["05 неровности стола и стопы.jpg","","",""],
["06 неровности на подошве ботинка.jpg","","",""],
["07 ботинок.jpg","","",""],
["08 движение в гору.jpg","","",""],
["09 турист.jpg","","",""],
["10 асфальт и камни.jpg","","",""],
["11 дорожное покрытие с неровностями.jpg","","",""],
["12 рабочий с напильником.jpg","","",""],
["13 точильный круг.jpg","","",""],
["14 кремень и наждак.jpg","","",""],
["15 алмазный круг.jpg","","",""],
["16 карандаш стачивается.jpg","","",""],
["17 мел стачивается.jpg","","",""],
["18 дверь с петлями.jpg","","",""],
["19 старая дверь.jpg","","",""],
["20 шестерёнки в часах.jpg","","",""],
["21 шестерёнки сточились.jpg","","",""],
["22 смазочные материалы.jpg","","",""],
["23 машинное масло.jpg","","",""],
["24 лёд и слон.jpg","","",""],
["25 рабочий точит нож.jpg","","",""],
["26 наждачная бумага.jpg","","",""],
["27 карта всего естествознания.jpg","","",""],
["28 карта 1–2 классов.jpg","","",""],
["29 карта 1–2 классов с секретиками.jpg","","",""],
["30 карты и планы.jpg","","",""],
["31 строение тела.jpg","","",""],
["32 космос.jpg","","",""],
["33 превращения в мире неживого.jpg","","",""]
],
"options":{}}
!%/
|visibleName|Сила трения|
|ссылка на контент шага|./oms/430-1/|
|тип шага|task|
|contentHeight|600|
|visibleName|Карты окружающего мира|
|ссылка на контент шага|./oms/430-2/|
|тип шага|task|
|contentHeight|600|
|visibleName|Сила трения|
|ссылка на контент шага|./environment4/jpg/text_30_1.jpg|
|table of contents thumb|text_30_1.jpg|
|тип шага|pager|
|visibleName|Сила трения|
|table of contents thumb|text_30_2.jpg|
|ссылка на контент шага|./environment4/jpg/text_30_2.jpg|
|тип шага|pager|
|visibleName|Сила трения|
|ссылка на контент шага|https://youtu.be/JocKy1xD-eo|
|тип шага|video|
|visibleName|Конспект для ученика|
|ссылка на материал|./environment4/pdf/30-Конспект-Сила_трения.pdf|
|занимает памяти|1,8 мБ|
|visibleName|Над курсом работали|
<<lessonAdminPanel>>/%
!!!Описание
<br><table class="borderless inform">
<tbody>
<tr class="evenRow">
<td>Автор</td>
<td>Роман Борисович Соловьёв</td>
</tr>
<tr class="oddRow">
<td>Научные редакторы</td>
<td>
Антон Константинович Логинов<br>
Евгений Александрович Выродов<br>
Елена Сергеевна Баканас, к. ф.-м. н.<br>
Владимир Викторович Баканас, к. ф.-м. н.<br>
Мария Владимировна Богданова, к. ф.-м. н.
</td>
</tr>
<tr class="evenRow">
<td>Научные консультанты</td>
<td>
Андрей Олегович Белинский<br>
Сергей Юрьевич Пономарёв
</td>
</tr>
<tr class="oddRow">
<td>Редакторы</td>
<td>
Елена Байдина<br>
Наталья Кольцова
</td>
</tr>
<tr class="evenRow">
<td>Дизайн и вёрстка</td>
<td>
Сергей Серёгин<br>
Полина Лосева
</td>
</tr>
<tr class="oddRow">
<td>Иллюстрации</td>
<td>
Полина Леоненко<br>
Алексей Власов<br>
Екатерина Веселова<br>
Любовь Макарова
</td>
</tr>
<tr class="evenRow">
<td>Анимация</td>
<td>
Демир Куулар<br>
Вероника Веселова<br>
Екатерина Веселова
</td>
</tr>
<tr class="oddRow">
<td>
Монтаж
</td>
<td>
Алексей Марков
</td>
</tr>
<tr class="evenRow">
<td>Съёмка</td>
<td>Елена Раднабазарова<br>
Николай Леонидов<br>
Милена Хуторянская<br>
Александр Вареников
</td>
</tr>
<tr class="oddRow">
<td>Подбор фотографий </td>
<td>
Пелагея Негруль
</td>
</tr>
<tr class="oddRow">
<td>Разработка интерактивных заданий</td>
<td>Михаил Киселёв<br>
Николай Барков
</td>
</tr>
<tr class="evenRow">
<td>Разработка платформы</td>
<td>
Яков Литвин
</td>
</tr>
<tr class="evenRow">
<td>Музыкальная заставка</td>
<td>
Роман Куперман
</td>
</tr>
<tr class="oddRow">
<td>Голос Лиса</td>
<td>
Григорий Громов<br>
Теймураз Глонти
</td>
</tr>
<tr class="oddRow">
<td>Руководители проекта</td>
<td>
Анна Булгакова<br>
Степан Санников
</td>
</tr>
</tbody>
</table>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
|visibleName|Карта Мира живого формата А3|
|ссылка на материал|environment/attachments/03_Карта-Мира-живого-А3.jpg|
|занимает памяти|7.3 Мб|
|visibleName|Карта Мира живого формата А4|
|ссылка на материал|environment/attachments/03_Карта-Мира-живого-А4.jpg|
|занимает памяти|3.9 Мб|
|ссылка на материал|environment/attachments/03_Контуры-карты.jpg|
|visibleName|Контуры карты|
|занимает памяти|795 Кб|
|visibleName|Бланки лото|
|ссылка на материал|environment/attachments/09_Бланки-лото.docx|
|занимает памяти|3.8 Мб|
|visibleName|Бланк лото: Водные и сухопутные животные|
|ссылка на материал|environment/attachments/09_Бланк-лото-Водные-и-сухопутные.pdf|
|занимает памяти|377 Кб|
|visibleName|Бланк лото: Моллюски и членистоногие|
|ссылка на материал|environment/attachments/10_Бланк-лото-Моллюски-и-членистоногие.pdf|
|занимает памяти|379 Кб|
|visibleName|Задание для печати по беспозвоночным. Обведи родственников|
|ссылка на материал|environment/attachments/11_Разнообразие-беспозвоночных.jpg|
|занимает памяти|4,2 Мб|
|занимает памяти|4 Мб|
|ссылка на материал|./environment/attachments/117/карта_загадок_1.jpg|
|visibleName|Карта загадок 1 (животные)|
|ссылка на материал|./environment/attachments/117/Как_использовать_карту_загадок.pdf|
|занимает памяти|36 Кб|
|visibleName|Как использовать карту загадок|
|visibleName|Бланк лото: Позвоночные и беспозвоночные|
|ссылка на материал|./environment/attachments/17_Бланк-лото-Позвоночные-и-беспозвоночные.pdf|
|занимает памяти|369 Кб|
|ссылка на материал|environment/attachments/117/17_Контуры_карты_с_районами.jpg|
|visibleName|Контуры карты с районами|
|занимает памяти|927 Кб|
|visibleName|Карта загадок 2 (мир живого и вирусы)|
|ссылка на материал|./environment/attachments/140/карта загадок 2.jpg|
|занимает памяти|4 Мб|
|visibleName|First step of test lesson|
|ссылка на контент шага|oms/205-4/|
|тип шага|task|
|table of contents thumb|https://yastatic.net/www/_/x/Q/xk8YidkhGjIGOrFm_dL5781YA.svg |
|contentHeight|600px|
|visibleName|10. Генетика от Менделя до хромосом|
|galleryFolder|environment5/galleries/510. От законов Менделя до ДНК/|
<<lessonAdminPanel>>/%
!!!Описание
Последний урок курса продолжает рассказ о молекулярной генетике и, прежде всего, о роли ДНК. Вновь обсуждается строение хромосом и их двойной набор, причём на этот раз эти темы рассматриваются в связи с делением клетки. Вторая часть урока связывает изученный материал первого блока, то есть основные понятия классической генетики и законы Менделя, с материалом второго блока — достижениями молекулярной генетики. В заключении курса демонстрируется единство этих подходов.
!%//%
!gallery data
{"data":[
["01 Молекула ДНК и полный набор инструкций.jpg"],
["02 n гороха и человека.jpg"],
["03 Инструкции и ДНК.jpg"],
["04 Путь информации в клетке.jpg"],
["05 Деление клетки и капли.jpg"],
["06 Деление клетки.jpg"],
["07 Материнская клетка исчезает при делении.jpg"],
["08 Клетка.jpg"],
["09 Деление клетки с органоидами 1.jpg"],
["10 Деление клетки с органоидами 2.jpg"],
["11 Распределение наборов хромосом (неправильно!).jpg"],
["12 Распределение наборов хромосом (правильно!).jpg"],
["13 Переписывание (копирование) ДНК.jpg"],
["14 ДНК и РНК (директриса и её заместитель).jpg"],
["15 Копирование ДНК-директрисы.jpg"],
["16 Скопированная ДНК.jpg"],
["17 Копии ДНК с ярлычками для переезда.jpg"],
["18 ДНК укладывается в хромосому.jpg"],
["19 Хромосома.jpg"],
["20 7 пар хромосом.jpg"],
["21 Хромосома — колбаски-близняшки.jpg"],
["22 Хромосома — две колбаски.jpg"],
["23 Этапы деления клетки.jpg"],
["24 Деление клетки, 1 этап.jpg"],
["25 Хромосомы в начале деления.jpg"],
["26 Деление клетки, второй этап.jpg"],
["27 Деление клетки, третий этап.jpg"],
["28 Растаскивание колбасок на третьем этапе.jpg"],
["29 Сократимый белок.jpg"],
["30 Две колбаски для двух дочерних клеток.jpg"],
["31 Дочерние клетки_ одинаковые инструкции и белки.jpg"],
["32 Грегор Мендель.jpg"],
["33 2n гороха равно 14.jpg"],
["34 2n у разных организмов.jpg"],
["35 Доминантная аллель.jpg"],
["36 Рецессивная аллель.jpg"],
["37 Получение двойного набора инструкций.jpg"],
["38 Принц-горошек и его родители.jpg"],
["39 Принц-горошек на грядке.jpg"],
["40 Аллели на хромосомах гороха.jpg"],
["41 У половых клеток по одной аллели.jpg"],
["42 Аллели в обычных клетках.jpg"],
["43 Аллели в половых клетках.jpg"],
["44 Половые клетки — два варианта.jpg"],
["45 Соединение половых клеток в зиготы.jpg"],
["46 Аллели в зиготе.jpg"],
["47 Зиготы с четырьмя сочетаниями аллелей.jpg"],
["48 Сочетание АА.jpg"],
["49 Сочетание Аa и aА.jpg"],
["50 Сочетание aa.jpg"],
["51 4 сочетания аллелей.jpg"],
["52 Организм как смесь инструкций.jpg"],
["53 Ладонь Менделя с горошинами.jpg"]
],
"options":{}}
!%/
|ссылка на контент шага|https://www.youtube.com/watch?v=YNaZW8zLdsg|
|visibleName|Всё только начинается, или Генетика от Менделя до хромосом|
|тип шага|video|
|visibleName|Рабочий материал для учителя|
|ссылка на материал|./environment5/pdf-2/rm-510.pdf|
|занимает памяти|794кБ|
|visibleName|Всё только начинается, или Генетика от Менделя до хромосом|
|ссылка на контент шага|./gen/510/|
|тип шага|task|
|ссылка на контент шага|https://youtu.be/_ZWyw3mZV-0|
|visibleName|Про инструкции в живых организмах, или Знакомство с генетикой|
|тип шага|video|
|ссылка на материал|./environment5/pdf-2/rm-501.pdf|
|занимает памяти|497кБ|
|visibleName|Рабочий материал для учителя|
|visibleName|Про инструкции в живых организмах,
или Знакомство с генетикой|
|visibleName|Про инструкции в живых организмах,
или Знакомство с генетикой|
|visibleName|Про инструкции в живых организмах, или Знакомство с генетикой|
|ссылка на контент шага|./gen/501/|
|тип шага|task|
|visibleName|2. Как передаётся наследственная информация|
|galleryFolder|environment5/galleries/502. Как передается наследственная информация/|
<<lessonAdminPanel>>/%
!!!Описание
На втором уроке курса обсуждается вопрос передачи информации от поколения к поколению. Для этого вводятся понятия наследственной информации и линии поколений. На уроке также даётся объяснение клеточных механизмов передачи информации: краткий рассказ о половых клетках и о том, как они объединяются в зиготу.
!%//%
!gallery data
{"data":[
["01 Инструкции_ пылесос и бактерия.jpg"],
["02 Передача инструкций.jpg"],
["03 Клетки-почтальоны.jpg"],
["04 Половые клетки.jpg"],
["05 Зигота с инструкциями.png"],
["06 Все когда-то были зиготами.jpg"],
["07 Деление зиготы.jpg"],
["08 Линия поколений 1.jpg"],
["09 Линия поколений 2.jpg"]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/Tb00CLnjH_4|
|visibleName|Про волшебных почтальонов, или Как передаётся наследственная информация|
|тип шага|video|
|visibleName|Рабочий материал для учителя|
|ссылка на материал|./environment5/pdf-2/rm-502.pdf|
|занимает памяти|431кБ|
|visibleName|Про волшебных почтальонов, или Как передаётся наследственная информация|
|ссылка на контент шага|./gen/502/|
|тип шага|task|
|visibleName|3. Ген и его варианты|
|galleryFolder|environment5/galleries/503. Ген и его варианты/|
<<lessonAdminPanel>>/%
!!!Описание
На третьем уроке курса вводятся понятия «ген» (информация о том или ином признаке организма) и «аллель» (конкретный вариант этого признака). Эти понятия понадобятся в дальнейшем на уроках и первого, и второго блока. Кроме того, на этом уроке начинается рассказ о селекции, предшественнице генетики, который будет продолжен на следующем, четвёртом, уроке.
!%//%
!gallery data
{"data":[
["01 Две записки от родителей.jpg"],
["02 Инструкции у лисов.jpg"],
["03 Ген и аллели.jpg"],
["04 Козы разных пород.jpg"],
["05 Растение гороха.jpg"],
["06 Бобы гороха.jpg"]
],
"options":{}}
!%/
|visibleName|Про две записки от родителей, или Ген и его варианты|
|ссылка на контент шага|https://youtu.be/JId6Tf5F6X4|
|тип шага|video|
|visibleName|Рабочий материал для учителя|
|ссылка на материал|./environment5/pdf-2/rm-503.pdf|
|занимает памяти|232кБ|
|visibleName|Про две записки от родителей, или Ген и его варианты|
|ссылка на контент шага|./gen/503/|
|тип шага|task|
|visibleName|4. О выведении пород и сортов|
|galleryFolder|environment5/galleries/504. О выведении пород и сортов/|
<<lessonAdminPanel>>/%
!!!Описание
Четвёртый урок курса посвящён селекции, её задачам и основному методу — скрещиванию организмов и отбору лучших представителей потомства. Одна из основных целей урока — познакомить учеников с понятием чистой линии: это понятие необходимо для понимания следующих тем, связанных с первыми законами генетики.
!%//%
!gallery data
{"data":[
["01 Скрещивание серых и белых коз.jpg"],
["02 Скрещивание белых коз.jpg"],
["03 Увеличение доли белых коз.jpg"],
["04 Чистая линия белых коз.jpg"],
["05 Инструкция про шерсть.jpg"],
["06 Одинаковые инструкции про шерсть.jpg"],
["07 Ген про шерсть.jpg"],
["08 Инструкция о холодостойкости.jpg"],
["09 Холодостойкая пшеница.jpg"],
["10 Горох.jpg"],
["11 Скрещивание.jpg"]
],
"options":{}}
!%/
|visibleName|Про красивых козочек и чистые линии, или О выведении пород и сортов|
|ссылка на контент шага|https://youtu.be/p3PV_kKzlpQ|
|тип шага|video|
|visibleName|Рабочий материал для учителя|
|ссылка на материал|./environment5/pdf-2/rm-504.pdf|
|занимает памяти|427кБ|
|visibleName|Про красивых козочек и чистые линии, или О выведении пород и сортов|
|ссылка на контент шага|./gen/504/|
|тип шага|task|
|visibleName|5. Первые генетические опыты|
|galleryFolder|environment5/galleries/505. Первые генетические опыты/|
<<lessonAdminPanel>>/%
!!!Описание
На пятом уроке курса начинается рассказ о законах Менделя. Даётся краткое описание первого и второго опыта Менделя, на основании которых он вывел первый и второй законы классической генетики. Ученики узнают о методике этих опытов и об их результатах. Более подробно эта тема раскрывается на следующем уроке.
!%//%
!gallery data
{"data":[
["01 Грегор Мендель.jpg"],
["02 Мендель в детстве.jpg"],
["03 Мендель монах.jpg"],
["04 Мендель студент.jpg"],
["05 Мендель учитель.jpg"],
["06 Мендель с горохом.jpg"],
["07 Бобы гороха.jpg"],
["08 Зелёные и жёлтые горошины.jpg"],
["09 Чистые линии гороха.jpg"],
["10 Горох на ладони.jpg"],
["11 Мендель сажает горох.jpg"],
["12 Горошины на ладони.jpg"],
["13 Горох на огороде Менделя.jpg"],
["14 Скрещивание двух чистых линий.jpg"],
["15 Одно царство победило другое.jpg"],
["16 Инструкции и поле с горохом.jpg"],
["17 Половые клетки и инструкции.jpg"],
["18 Клетки-почтальоны.jpg"],
["19 Два гороховых царства.jpg"]
],
"options":{}}
!%/
|visibleName|Про два гороховых царства, или Первые генетические опыты|
|ссылка на контент шага|https://youtu.be/LDP6ecGxhIA|
|тип шага|video|
|visibleName|Рабочий материал для учителя|
|ссылка на материал|./environment5/pdf-2/rm-505.pdf|
|занимает памяти|490кБ|
|visibleName|Про два гороховых царства, или Первые генетические опыты|
|ссылка на контент шага|./gen/505/|
|тип шага|task|
|visibleName|6. Как работает гипотеза Менделя|
|galleryFolder|environment5/galleries/506. Про перемешивание инструкций/|
<<lessonAdminPanel>>/%
!!!Описание
Шестой урок курса завершает блок, посвящённый классической генетике. Ученики повторяют прежде изученные понятия, которые помогают им понять результаты первых опытов Менделя. Важнейшей частью урока является знакомство с гипотезой чистоты половых клеток: исторически именно она помогла объяснить результаты первых генетических опытов.
!%//%
!gallery data
{"data":[
["01 Победа жёлтого царства.jpg"],
["02 Свадьба.jpg"],
["03 Аллели чистых линий.jpg"],
["04 Почтальон с инструкцией.jpg"],
["05 Половые клетки чистых линий.jpg"],
["06 Зиготы чистых линий.jpg"],
["07 Конвейер. Одинаковые детали в коробках.jpg"],
["08 Матрёшка и инструкции.jpg"],
["09 Зиготы потомства из первого опыта.jpg"],
["10 Половые клетки потомства из первого опыта.jpg"],
["11 Конвейер. Разные детали в коробках.jpg"],
["12 4 вида матрёшек.jpg"],
["13 Зиготы из второго опыта.jpg"],
["14 Цвет горошин из второго опыта.jpg"]
],
"options":{}}
!%/
|ссылка на контент шага|https://www.youtube.com/watch?v=4lEKQ5z0An0|
|тип шага|video|
|visibleName|Про перемешивание инструкций, или Как работает гипотеза Менделя|
|visibleName|Рабочий материал для учителя|
|ссылка на материал|./environment5/pdf-2/rm-506.pdf|
|занимает памяти|571кБ|
|visibleName|Про перемешивание инструкций, или Как работает гипотеза Менделя|
|ссылка на контент шага|./gen/506/|
|тип шага|task|
|visibleName|7. Как устроена клетка|
|galleryFolder|environment5/galleries/507. Как устроена клетка/|
<<lessonAdminPanel>>/%
!!!Описание
Седьмой урок курса начинает второй блок, посвящённый молекулярной генетике. В нём раскрывается разнообразие наиболее важных веществ клетки (вода, жиры, углеводы, белки, ДНК и РНК), обсуждается значение этих веществ и строение их молекул.
!%//%
!gallery data
{"data":[
["01 Учёный смотрит в микроскоп.jpg"],
["02 Клетки под увеличением.jpg"],
["03 Клетка и признаки живого.jpg"],
["04 Клетка.jpg"],
["05 Хранители организма.jpg"],
["06 Органоид, отвечающий за пищеварение.jpg"],
["07 Органоид, отвечающий за дыхание.jpg"],
["08 Органоиды-«кровеносные сосуды».jpg"],
["09 Органоиды-«кости» и «мышцы».jpg"],
["10 Органоид-«мозг».jpg"],
["11 Количество молекул в клетке.jpg"],
["12 Молекулы воды, жира, углеводов и белков.jpg"],
["13 Молекула воды.jpg"],
["14 Молекула жира.jpg"],
["15 Молекула углевода.jpg"],
["16 Молекула белка.jpg"],
["17 ДНК в ядре клетки.jpg"]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/N-xh41wrIQA|
|тип шага|video|
|visibleName|Про живые пузырьки, или Как устроена клетка|
|ссылка на материал|./environment5/pdf-2/rm-507.pdf|
|занимает памяти|268кБ|
|visibleName|Рабочий материал для учителя|
|visibleName|Про живые пузырьки, или Как устроена клетка|
|ссылка на контент шага|./gen/507/|
|тип шага|task|
|visibleName|8. Главные молекулы клетки|
|galleryFolder|environment5/galleries/508. Главные молекулы клетки/|
<<lessonAdminPanel>>/%
!!!Описание
Восьмой урок закладывает основные представления о строении и работе информационных молекул клетки и белков. Прослеживаются процессы от хранения информации в ДНК до реализации этой информации, то есть до образования белков.
!%//%
!gallery data
{"data":[
["01 Клетка.jpg"],
["02 ДНК и РНК в ядре.jpg"],
["03 Молекула ДНК.jpg"],
["04 Директор и его заместитель.jpg"],
["05 Молекулы клетки.jpg"],
["06 Молекула белка.jpg"],
["07 Белок-волшебник (фермент).jpg"],
["08 Процессы жизнедеятельности.jpg"],
["09 Процесс фотосинтеза.jpg"],
["10 Процесс пищеварения.jpg"],
["11 Процесс дыхания.jpg"],
["12 Белки-волшебники на столе.jpg"],
["13 Конвейер с машинами.jpg"],
["14 Белок-волшебник и белок-строитель.jpg"],
["15 Белки-строители (структурные).jpg"],
["16 Белок-спортсмен (сократимый).jpg"],
["17 ДНК с инструкцией (рисунок Лиса).jpg"],
["18 Клетка и инструкции.jpg"],
["19 Полный набор инструкций.jpg"],
["20 Толщина книги-ДНК.jpg"],
["21 Директриса-ДНК в кабинете.jpg"],
["22 Белки-переписчики.jpg"],
["23 Инструкция к пылесосу.jpg"],
["24 Отдельные листы из инструкции.jpg"],
["25 Копии страницы инструкции.jpg"],
["26 РНК с инструкцией (рисунок Лиса).jpg"],
["27 Профессии белков.jpg"],
["28 Рибосома.jpg"],
["29 Молекулы ДНК и РНК.jpg"],
["30 Путь информации в клетке.jpg"]
],
"options":{}}
!%/
|ссылка на контент шага|https://youtu.be/2KG2y_JjmjI|
|visibleName|Про клеточных директоров и их работников, или Главные молекулы клетки|
|тип шага|video|
|ссылка на материал|./environment5/pdf-2/rm-508.pdf|
|visibleName|Рабочий материал для учителя|
|занимает памяти|564 кБ|
|visibleName|Про клеточных директоров и их работников, или Главные молекулы клетки|
|ссылка на контент шага|./gen/508/|
|тип шага|task|
|visibleName|9. Что такое хромосомы|
|galleryFolder|environment5/galleries/509. Что такое хромосомы/|
<<lessonAdminPanel>>/%
!!!Описание
Девятый урок посвящён более подробному рассказу о ДНК. Обсуждается её строение и расположение в ядре, в том числе и плотная укладка в виде хромосом. Кроме того, на уроке вводится представление о наборах хромосом: ученики узнают, что в большинстве клеток набор информации (набор хромосом) двойной и о том, что это значит для организма.
!%//%
!gallery data
{"data":[
["01 Загадка Лиса.jpg"],
["02 РНК.jpg"],
["03 Путь информации в клетке.jpg"],
["04 Толщина книги-ДНК.jpg"],
["05 Энциклопедия.jpg"],
["06 Тома энциклопедии.jpg"],
["07 Разные организмы и число n.jpg"],
["08 Разрезание ДНК на кусочки.jpg"],
["09 Фотография хромосом человека.jpg"],
["10 Рисунок хромосомы.jpg"],
["11 Хромосома (дорисована Лисом).jpg"],
["12 Хромосома и катушка ниток.jpg"],
["13 Катушка и лента-строчка.jpg"],
["14 Зигота.jpg"],
["15 Этапы упаковки (укладки) ДНК.jpg"],
["16 Хромосомы в ядре.jpg"],
["17 Полный набор хромосом в ядре (n).jpg"],
["18 Рисунок хромосом человека.jpg"],
["19 Директриса-ДНК с портфелями и томами.jpg"],
["20 Лис и два набора фломастеров.jpg"],
["21 Фломастеры Лиса перемешаны.jpg"],
["22 Парные хромосомы человека.jpg"],
["23 Две парные хромосомы.jpg"],
["24 Хромосомы и аллели.jpg"],
["25 Аллели парных хромосом (цвет волос).jpg"],
["26 Аллели парных хромосом (длина ушей).jpg"]
],
"options":{}}
!%/
|ссылка на контент шага|https://www.youtube.com/watch?v=2-h8rEdySLo|
|тип шага|video|
|visibleName|Про строчки, намотанные на катушки, или Что такое хромосомы|
|visibleName|Рабочий материал для учителя|
|ссылка на материал|./environment5/pdf-2/rm-509.pdf|
|занимает памяти|673кБ|
|ссылка на контент шага|./gen/509/|
|тип шага|task|
|visibleName|Про строчки, намотанные на катушки, или Что такое хромосомы|
<!--{{{-->
<div class='centralAllColumn'>
<div macro='unitStep'>
</div><div class='unitStepFooter' macro='unitStepFooter'>
</div> <!-- implement this, make sure it's visible and on bottom if possible -->
</div>
<!--}}}-->
<<lessonAdminPanel>>/%
!!!Описание
<ul>
<li>
<b><a onclick="jQuery('.lesson-name:eq(2)').trigger('click');">Как пользоваться материалами курса</a></b>
<ul>
<li>
<b>Видеоурок</b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(4)').trigger('click');">Интерактивные задания</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(5)').trigger('click');">Конспект для ученика</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(6)').trigger('click');">Рабочий материал для учителя</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(7)').trigger('click');">Галерея</a></b>
</li>
</ul>
</li>
</ul>
<img src="images/video.jpg" width="100%" />
<p>Видеоролики с объяснением нового материала ориентировочно соответствуют одному уроку и длятся в среднем 10–15 минут. Это короче школьного урока, т. к. для полноценного освоения информации видеоролика необходим комментарий учителя, повторение и закрепление материала, рисунки и записи учеников и т. п. Мы предлагаем несколько возможных вариантов использования видеоролика.</p>
<p><b>Варианты использования видеоролика</b></p>
<p style="margin-left:30px"><b>Комментированный показ.</b> Этот вариант мы предлагаем как основной. Он напоминает работу с презентацией. При использовании презентации учитель предъявляет ученикам изображение, даёт нужные пояснения и обсуждает содержание слайда. Так же и при комментированном показе видеоурока учитель может продемонстрировать ученикам фрагмент видео, затем остановить ролик и прокомментировать, обсудить с учениками полученную информацию. Под этот вариант использования видеоролика приспособлены <a onclick="jQuery('.lesson-name.hidden:eq(6)').trigger('click');">рабочие материалы для учителя</a>. Комментированный показ мы рекомендуем для объяснения нового материала. Как особый вид этого варианта возможен обратный комментированный показ. В этом случае объяснения учителя предваряют фрагмент видео, а не следуют после него.</p>
<p style="margin-left:30px"><b>Непрерывный показ.</b> Этот вариант также предполагает совместную работу учителя и учеников по освоению материала видеоролика, но в отличие от комментированного показа ролик предъявляется ученикам целиком. Непрерывный показ больше подходит для повторения изученных тем. </p>
<p style="margin-left:30px"><b>Частичный показ.</b> Наши видеоматериалы содержат фрагменты, которые порой трудно воспроизвести на уроке: сложный опыт, выразительные иллюстрации, объяснение особенно трудных моментов темы. Учитель может демонстрировать ученикам только такие, специально подобранные, моменты видеоролика, а остальной материал объяснять самостоятельно, без использования видео. </p>
<p>Кроме того, видеоуроки могут помочь ученикам, пропустившим занятие, нагнать класс. Их удобно использовать в качестве домашних заданий или заданий для отсутствующих (болеющих) учеников. В этом случае мы рекомендуем дать ученикам задание законспектировать видеоролик и прислать учителю конспект для проверки.</p>
<p>Подробнее познакомиться с методикой работы с видео и другими материалами можно <a onclick="jQuery('.lesson-name:eq(3)').trigger('click');">на курсах повышения квалификации для учителей</a>.</p>
<p><a class="btn btn-primary" onclick="window.scrollTo(0,0)"><b>В начало</b></a></p>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
<<lessonAdminPanel>>/%
!!!Описание
<ul>
<li>
<b><a onclick="jQuery('.lesson-name:eq(2)').trigger('click');">Как пользоваться материалами курса</a></b>
<ul>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(3)').trigger('click');">Видеоурок</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(4)').trigger('click');">Интерактивные задания</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(5)').trigger('click');">Конспект для ученика</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(6)').trigger('click');">Рабочий материал для учителя</a></b>
</li>
<li>
<b>Галерея</b>
</li>
</ul>
</li>
</ul>
<img src="images/galery.jpg" width="100%" />
<p>Иллюстративные материалы, использованные в видеороликах курса, доступны для скачивания. Они могут пригодиться учителю для создания собственных материалов по курсу или для проведения самостоятельных уроков. Например, эти материалы можно использовать:</p>
<ul>
<li>для создания презентаций (вместо видеороликов или в дополнение к ним);</li>
<li>для иллюстрирования отдельных моментов урока, если учитель не использует видеоролик;</li>
<li>для создания сценариев урока на тех или иных образовательных платформах;</li>
<li>для иллюстративной поддержки дополнительных занятий, не входящих в программу курса;</li>
<li>для оформления тематических стендов, настенных газет и т. п.;</li>
<li>для иллюстрирования докладов, проведения научных конференций, представления результатов исследовательских проектов и т. п.</li>
</ul>
<p><a class="btn btn-primary" onclick="window.scrollTo(0,0)"><b>В начало</b></a></p>
!%//%
!gallery data
{"data":[],
"options":{}}
!%/
<<courseAdminPanel>>/%
|Автор ||
|Аудитория ||
|Картинка в шапке |./environment5/geneticsbg.jpg|
|courseId |gen|
|lessonsThumbsFolder|environment5/lessons_thumbs/|
|visibleName |Генетика|
!!!Описание
<p>
Уважаемые коллеги!
</p><p>Представляем вам электронный курс «Окружающий мир. Генетика», дополняющий базовый курс «Окружающий мир. Естествознание». Новый курс знакомит учеников с начальными, наиболее важными понятиями классической и молекулярной генетики и готовит их к соответствующим темам в курсе биологии в старшей школе.
</p><p>С помощью простого образного языка, понятного детям, мы даём ученикам представление об информации в живых организмах, описываем первые два закона Менделя, а затем переходим к молекулярной генетике: говорим об основных информационные молекулах — ДНК и РНК — и выясняем, как реализуется информация, записанная на них. На последнем уроке мы показываем, как связаны клеточные носители информации — молекулы — и законы Менделя.
</p><p>Материал курса «Окружающий мир. Генетика» в большой степени опирается на материал основного курса «Окружающий мир. Естествознание». В новых видеороликах вы найдёте не только понятия и сведения из «Окружающего мира», но и такие же качественные иллюстрации, анимированного Лисёнка, привычные рабочие материалы для учителя, конспекты и интерактивные задания для ученика.
</p><p>Желаем и вам, и вашим ученикам успешного освоения нашего нового курса «Окружающий мир. Генетика».
</p>
<h2>
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Окружающий мир">Весь курс</a></h2>
!!!In title
!%/
<<lessonAdminPanel>>/%
!!!Описание
<ul>
<li>
<b><a onclick="jQuery('.lesson-name:eq(2)').trigger('click');">Как пользоваться материалами курса</a></b>
<ul>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(3)').trigger('click');">Видеоурок</a></b>
</li>
<li>
<b>Интерактивные задания</b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(5)').trigger('click');">Конспект для ученика</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(6)').trigger('click');">Рабочий материал для учителя</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(7)').trigger('click');">Галерея</a></b>
</li>
</ul>
</li>
</ul>
<img src="images/zadanie.jpg" width="100%" />
<p>Интерактивные задания сопровождают каждый видеоролик и предназначены для повторения его материалов. Мы не предусматриваем использование интерактивных заданий в качестве контрольно-измерительных материалов и не рекомендуем выставлять оценки по итогам их выполнения.</p>
<p>Наши интерактивные задания интуитивно понятны ученикам, но мы всё же рекомендуем убедиться, что ученики понимают техническую сторону работы с ними.
Интерактивные задания так же, как и видеоролики можно рекомендовать для учеников, отсутствовавших на уроках, чтобы они не отставали от изучения курса.</p>
<p>Пример интерактивного задания:<br>
<iframe class="contentIframe" id="" src="./oms/146-1/" frameborder="0" allowfullscreen="allowfullscreen" scrolling="no" was_reloaded="false" height="746" style="height: 751px;"></iframe>
</p>
<p><a class="btn btn-primary" onclick="window.scrollTo(0,0)"><b>В начало</b></a></p>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
|visibleName||
<<lessonAdminPanel>>/%
!!!Описание
<ul>
<li>
<b>Как пользоваться материалами курса</b>
<ul>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(3)').trigger('click');">Видеоурок</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(4)').trigger('click');">Интерактивные задания</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(5)').trigger('click');">Конспект для ученика</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(6)').trigger('click');">Рабочий материал для учителя</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(7)').trigger('click');">Галерея</a></b>
</li>
</ul>
</li>
</ul>
<p>И основной, и дополнительный курсы содержат одинаковый набор материалов для каждого модуля (урока): видеоролик урока; интерактивные задания по материалам урока; конспект для ученика (раздаточный материал); рабочий материал для учителя; галерея рисунков и фотографий, использованных в видеоролике.
Подробную информацию об этих материалах и рекомендации по работе с ними можно найти в соответствующих разделах.</p>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
<<lessonAdminPanel>>/%
!!!Описание
<ul>
<li>
<b><a onclick="jQuery('.lesson-name:eq(2)').trigger('click');">Как пользоваться материалами курса</a></b>
<ul>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(3)').trigger('click');">Видеоурок</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(4)').trigger('click');">Интерактивные задания</a></b>
</li>
<li>
<b>Конспект для ученика</b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(6)').trigger('click');">Рабочий материал для учителя</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(7)').trigger('click');">Галерея</a></b>
</li>
</ul>
</li>
</ul>
<img src="images/conspect.jpg" width="100%" />
<p>Конспект для ученика (распечатка) не покрывает всё содержание урока: в него входят только самые важные моменты. Распечатки — не аналог учебника. Их роль — дублировать записи, которые ученик самостоятельно делает по ходу урока в тетради. Если эти записи неполны, непонятны или неряшливы, распечатка восполнит упущения. Кроме того, сделанные профессиональными художниками и дизайнерами конспекты — яркие, красивые, выразительные — служат своеобразным подарком ученику. Поэтому мы рекомендуем делать цветную распечатку конспекта и выдавать её уже после занятия.</p>
<p>Цветные распечатки хорошо хранить в папках: файловых или простых. В конспектах используется сквозная нумерация страниц, что позволяет следить за полнотой набора. Если ученик небрежно относится к конспекту, например, теряет его, мы советуем выдать ему новый экземпляр, но худшего качества (черно-белый или ксерокопию). По распечатанному конспекту, как и по записям в тетради, ученик повторяет материал к уроку или, например, к итоговой контрольной работе.</p>
<p>Пример конспекта:</p>
<img src="./environment/JPG/text_02_1.jpg" width="100%" />
<p><a class="btn btn-primary" onclick="window.scrollTo(0,0)"><b>В начало</b></a></p>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
<<lessonAdminPanel>>/%
!!!Описание
<p>Задать вопросы, высказать свои пожелания или рассказать об ошибке в материалах курса можно по адресу: <a href="mailto:okrumir@yandex.ru">okrumir@yandex.ru</a>.</p>
<p>Информация о курсах повышения квалификации для учителей (см. также <a onclick="jQuery('.lesson-name:eq(6)').trigger('click');">соответствующий раздел сайта</a>): <a href="https://kursitet.ru/">https://kursitet.ru/</a>.</p>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
<<lessonAdminPanel>>/%
!!!Описание
<p>В течение учебного года мы запускаем несколько наборов на курсы повышения квалификации для учителей «Окружающий мир. Естествознание» и «Генетика в начальной школе». На этих курсах мы подробно рассказываем об особенностях электронного курса «Окружающий мир. Естествознание», о методах работы с материалами курса, об особенностях планирования и оригинальных авторских методиках, которые используются на уроках окружающего мира и генетики.</p>
<p>Использование учителями материалов электронного курса в начальной школе создаёт базу для успешного освоения естественно-научных предметов в средней школе, в том числе на углублённом уровне, мотивирует на достижение успехов в олимпиадах по физике, химии, биологии, географии, астрономии, экологии.</p>
<p>Регистрация на курсы повышения квалификации и описание программ: <a href="https://kursitet.ru/">https://kursitet.ru/</a>.</p>
<p><b><a href="https://kursitet.ru/edu-data/plan/world-nat-science2/">
Курс «Окружающий мир. Естествознание»</a></b></p>
<p><b><a href="https://kursitet.ru/edu-data/plan/primary-schl-genetics2/">Курс «Генетика в начальной школе»</a></b></p>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
|visibleName||
<<lessonAdminPanel>>/%
!!!Описание
<br>
<table class="borderless inform">
<tbody>
<tr class="evenRow">
<td>Автор</td>
<td>Роман Борисович Соловьёв</td>
</tr>
<tr class="oddRow">
<td>Научные редакторы</td>
<td>Сергей Феликсович Хрибар, к. и. н.<br>Марина Владимировна Куликова, к. б. н.<br>Маргарита
Михайловна Атрощенко, к. б. н.<br>Инна Михайловна Есенова<br>
(сотрудники <a class="externalLink" href="http://www.gbmt.ru/ru/index.php" title="" target="_blank">Государственного
Биологического музея им. К. А. Тимирязева</a>)
</td>
</tr>
<tr class="evenRow">
<td>Редактор</td>
<td>Полина Лосева</td>
</tr>
<tr class="evenRow">
<td>Дизайн и вёрстка</td>
<td>
Полина Лосева<br>
Кира Слепченкова<br>
Вероника Кириенко<br>
Мария Матвеева
</td>
</tr>
<tr class="oddRow">
<td>Иллюстрации</td>
<td>
Екатерина Пысларь<br>
Полина Леоненко<br>
Александра Тэвдой-Бурмули
</td>
</tr>
<tr class="evenRow">
<td>Анимация</td>
<td>Демир Куулар</td>
</tr>
<tr class="oddRow">
<td>
Монтаж и съёмка
</td>
<td>Даулет Жанайдаров<br>Влас Липовецкий</td>
</tr>
<tr class="evenRow">
<td>Руководство разработкой<br>и создание платформы</td>
<td>Яков Литвин</td>
</tr>
<tr class="evenRow">
<td>Разработка<br>интерактивных заданий</td>
<td>Михаил Киселёв<br>
Григорий Зеленский<br>
Кирилл Шайдулин<br>
Андрей Мартынов<br>
Алексей Кулыгин
</td>
</tr>
<tr class="oddRow">
<td>Музыкальная заставка</td>
<td>Роман Куперман</td>
</tr>
<tr class="evenRow">
<td>Голос Лиса</td>
<td>Григорий Громов
</td>
</tr>
</tbody>
</table>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
|visibleName||
<<lessonAdminPanel>>/%
!!!Описание
</p>
<h3>1 класс</h3>
<table class="borderless inform">
<tbody>
<tr class="evenRow">
<td>Автор</td>
<td>Роман Борисович Соловьёв</td>
</tr>
<tr class="oddRow">
<td>Научные редакторы</td>
<td>Сергей Феликсович Хрибар, к. и. н.<br>Марина Владимировна Куликова, к. б. н.<br>Маргарита
Михайловна Атрощенко, к. б. н.<br>Инна Михайловна Есенова<br>
(сотрудники <a class="externalLink" href="http://www.gbmt.ru/ru/index.php" title="" target="_blank">Государственного
биологического музея им. К. А. Тимирязева</a>)
</td>
</tr>
<tr class="evenRow">
<td>Редактор</td>
<td>Полина Лосева</td>
</tr>
<tr class="evenRow">
<td>Дизайн и вёрстка</td>
<td>
Полина Лосева<br>
Кира Слепченкова<br>
Вероника Кириенко<br>
Мария Матвеева
</td>
</tr>
<tr class="oddRow">
<td>Иллюстрации</td>
<td>
Екатерина Пысларь<br>
Полина Леоненко<br>
Александра Тэвдой-Бурмули
</td>
</tr>
<tr class="evenRow">
<td>Анимация</td>
<td>Демир Куулар</td>
</tr>
<tr class="oddRow">
<td>
Монтаж и съёмка
</td>
<td>Даулет Жанайдаров<br>Влас Липовецкий</td>
</tr>
<tr class="evenRow">
<td>Руководство разработкой<br>и создание платформы</td>
<td>Яков Литвин</td>
</tr>
<tr class="evenRow">
<td>Разработка<br>интерактивных заданий</td>
<td>Михаил Киселёв<br>
Григорий Зеленский<br>
Кирилл Шайдулин<br>
Андрей Мартынов<br>
Алексей Кулыгин
</td>
</tr>
<tr class="oddRow">
<td>Музыкальная заставка</td>
<td>Роман Куперман</td>
</tr>
<tr class="evenRow">
<td>Голос Лиса</td>
<td>Григорий Громов
</td>
</tr>
</tbody>
</table>
<h3>2 класс</h3>
<table class="borderless inform">
<tbody>
<tr class="evenRow">
<td>Автор</td>
<td>Роман Борисович Соловьёв</td>
</tr>
<tr class="oddRow">
<td>Научные редакторы</td>
<td>
Павел Юрьевич Плечов, д. г.-м. н.<br>
Елена Моисеевна Гурвич, к. г.-м. н.<br>
Пётр Васильевич Александров, к. г.-м. н.<br>
Тимофей Владимирович Орлов, к. г.-м.
</td>
</tr>
<tr class="evenRow">
<td>Редактор</td>
<td>Анна Булгакова</td>
</tr>
<tr class="evenRow">
<td>Дизайн и вёрстка</td>
<td>
Сергей Серёгин<br>
Полина Лосева
</td>
</tr>
<tr class="oddRow">
<td>Иллюстрации</td>
<td>
Екатерина Веселова<br>
Любовь Макарова<br>
Алексей Власов<br>
Полина Леоненко<br>
Анна Кузина
</td>
</tr>
<tr class="evenRow">
<td>Анимация</td>
<td>
Демир Куулар<br>
Вероника Веселова<br>
Екатерина Веселова
</td>
</tr>
<tr class="oddRow">
<td>
Монтаж и съёмка
</td>
<td>
Алексей Марков<br>
Даулет Жанайдаров<br>
Жамсо Хайдапов
</td>
</tr>
<tr class="evenRow">
<td>Разработка<br>интерактивных заданий</td>
<td>Михаил Киселёв<br>
Николай Барков<br>
Джиого Слепетис
</td>
</tr>
<tr class="evenRow">
<td>Разработка<br>платформы</td>
<td>Яков Литвин
</td>
</tr>
<tr class="oddRow">
<td>Съёмка</td>
<td>
Елена Раднабазарова<br>
Инна Прово
</td>
</tr>
<tr class="evenRow">
<td>Подбор фотографий и видеофрагментов</td>
<td>Елизавета Лосева<br>
Елена Мурашова<br>
Пелагея Негруль
</td>
</tr>
<tr class="oddRow">
<td>Музыкальная заставка</td>
<td>Роман Куперман</td>
</tr>
<tr class="evenRow">
<td>Голос Лиса</td>
<td>Григорий Громов
</td>
</tr>
<tr class="evenRow">
<td>Руководитель проекта</td>
<td>Анна Булгакова
</td>
</tr>
</tbody>
</table>
<h3>3 класс</h3>
<table class="borderless inform">
<tbody>
<tr class="evenRow">
<td>Автор</td>
<td>Роман Борисович Соловьёв</td>
</tr>
<tr class="oddRow">
<td>Научные редакторы</td>
<td>Сергей Феликсович Хрибар, к. и. н.<br>Марина Владимировна Куликова, к. б. н.<br>Маргарита
Михайловна Атрощенко, к. б. н.<br>Инна Михайловна Есенова<br>
(сотрудники <a class="externalLink" href="http://www.gbmt.ru/ru/index.php" title="" target="_blank">Государственного
биологического музея им. К. А. Тимирязева</a>)
</td>
</tr>
<tr class="evenRow">
<td>Редактор</td>
<td>Анна Булгакова</td>
</tr>
<tr class="evenRow">
<td>Дизайн и вёрстка</td>
<td>
Полина Лосева
</td>
</tr>
<tr class="oddRow">
<td>Иллюстрации</td>
<td>
Полина Леоненко<br>
Любовь Макарова<br>
Екатерина Пысларь<br>
Анастасия Голикова
</td>
</tr>
<tr class="evenRow">
<td>Анимация</td>
<td>
Демир Куулар<br>
Вероника Веселова
</td>
</tr>
<tr class="oddRow">
<td>
Монтаж и съёмка
</td>
<td>
Даулет Жанайдаров
</td>
</tr>
<tr class="evenRow">
<td>Разработка<br>интерактивных заданий</td>
<td>Михаил Киселёв<br>
Николай Барков
</td>
</tr>
<tr class="evenRow">
<td>Разработка платформы</td>
<td>Яков Литвин
</td>
</tr>
<tr class="oddRow">
<td>Съёмка</td>
<td>
Инна Прово<br>
Владимир Иванов<br>
Елена Раднабазарова
</td>
</tr>
<tr class="oddRow">
<td>Музыкальная заставка</td>
<td>Роман Куперман</td>
</tr>
<tr class="evenRow">
<td>Голоса</td>
<td>
Михаил Гантман<br>
Сергей Рубашкин<br>
Алёна Аникина<br>
Станислав Иванов
</td>
</tr>
<tr class="evenRow">
<td>Руководитель проекта</td>
<td>Анна Булгакова</td>
</tr>
</tbody>
</table>
<h3>4 класс</h3>
<br><table class="borderless inform">
<tbody>
<tr class="evenRow">
<td>Автор</td>
<td>Роман Борисович Соловьёв</td>
</tr>
<tr class="oddRow">
<td>Научные редакторы</td>
<td>
Антон Константинович Логинов<br>
Евгений Александрович Выродов<br>
Елена Сергеевна Баканас, к. ф.-м. н.<br>
Владимир Викторович Баканас, к. ф.-м. н.<br>
Мария Владимировна Богданова, к. ф.-м. н.
</td>
</tr>
<tr class="evenRow">
<td>Научные консультанты</td>
<td>
Андрей Олегович Белинский<br>
Сергей Юрьевич Пономарёв
</td>
</tr>
<tr class="oddRow">
<td>Редакторы</td>
<td>
Елена Байдина<br>
Наталья Кольцова
</td>
</tr>
<tr class="evenRow">
<td>Дизайн и вёрстка</td>
<td>
Сергей Серёгин<br>
Полина Лосева
</td>
</tr>
<tr class="oddRow">
<td>Иллюстрации</td>
<td>
Полина Леоненко<br>
Алексей Власов<br>
Екатерина Веселова<br>
Любовь Макарова
</td>
</tr>
<tr class="evenRow">
<td>Анимация</td>
<td>
Демир Куулар<br>
Вероника Веселова<br>
Екатерина Веселова
</td>
</tr>
<tr class="oddRow">
<td>
Монтаж
</td>
<td>
Алексей Марков
</td>
</tr>
<tr class="evenRow">
<td>Съёмка</td>
<td>Елена Раднабазарова<br>
Николай Леонидов<br>
Милена Хуторянская<br>
Александр Вареников
</td>
</tr>
<tr class="oddRow">
<td>Подбор фотографий </td>
<td>
Пелагея Негруль
</td>
</tr>
<tr class="oddRow">
<td>Разработка интерактивных заданий</td>
<td>Михаил Киселёв<br>
Николай Барков
</td>
</tr>
<tr class="evenRow">
<td>Разработка платформы</td>
<td>
Яков Литвин
</td>
</tr>
<tr class="evenRow">
<td>Музыкальная заставка</td>
<td>
Роман Куперман
</td>
</tr>
<tr class="oddRow">
<td>Голос Лиса</td>
<td>
Григорий Громов<br>
Теймураз Глонти
</td>
</tr>
<tr class="oddRow">
<td>Руководители проекта</td>
<td>
Анна Булгакова<br>
Степан Санников
</td>
</tr>
</tbody>
</table>
<h3>Генетика</h3>
<table class="borderless inform">
<tbody>
<tr class="evenRow">
<td>Автор</td>
<td>Роман Борисович Соловьёв</td>
</tr>
<tr class="oddRow">
<td>Научные редакторы</td>
<td>Виктория Николаевна Лавренова<br>
Артём Андреевич Лысенков
</td>
</tr>
<tr class="evenRow">
<td>Редактор</td>
<td>Наталья Кольцова</td>
</tr>
<tr class="evenRow">
<td>Дизайн и вёрстка</td>
<td>
Анна Кременецкая<br>
Сергей Серёгин
</td>
</tr>
<tr class="oddRow">
<td>Иллюстрации</td>
<td>
Полина Куулар
</td>
</tr>
<tr class="evenRow">
<td>Анимация</td>
<td>
Демир Куулар<br>
Вероника Веселова
</td>
</tr>
<tr class="oddRow">
<td>
Монтаж и съёмка
</td>
<td>
Алексей Марков<br>
Александр Вареников<br>
Игорь Щипилов<br>
</td>
</tr>
<tr class="evenRow">
<td>Разработка<br>интерактивных заданий</td>
<td>Михаил Киселёв
</td>
</tr>
<tr class="evenRow">
<td>Разработка платформы</td>
<td>Яков Литвин
</td>
</tr>
<tr class="oddRow">
<td>Подбор фото и видео</td>
<td>
Болат Куулар
</td>
</tr>
<tr class="oddRow">
<td>Музыкальная заставка</td>
<td>Роман Куперман</td>
</tr>
<tr class="evenRow">
<td>Голоса</td>
<td>
Теймураз Глонти
</td>
</tr>
<tr class="evenRow">
<td>Руководитель проекта</td>
<td>Степан Санников</td>
</tr>
</tbody>
</table>
<style>
.inform tr td:first-child{
width: 35%;
}
.inform tr td:last-child{
width: 65%;
}
</style>
<p>Разработан Центром педагогического мастерства при участии фонда «Дети и наука».</p>
<!--p>Курс произведён фондом «Дети и наука» по заказу Центра педагогического мастерства.</p-->
<table class="logos">
<tbody>
<tr class="evenRow">
<td align="center"><a href="http://cpm.dogm.mos.ru/" target="_blank"><img
src="http://cpm.dogm.mos.ru/upload/iblock/59b/logo2015_240kh92.jpg" style="width: 200px;"/></a></td>
<td align="center"><a href="http://childrenscience.ru" target="_blank"><img src="images/logo_small.svg"
style="width: 200px; margin-right: 30px;"/></a>
</td>
</tr>
</tbody>
</table>
<p>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
|visibleName||
<<lessonAdminPanel>>/%
!!!Описание
<br>
<table class="borderless inform">
<tbody>
<tr class="evenRow">
<td>Автор</td>
<td>Роман Борисович Соловьёв</td>
</tr>
<tr class="oddRow">
<td>Научные редакторы</td>
<td>Сергей Феликсович Хрибар, к. и. н.<br>Марина Владимировна Куликова, к. б. н.<br>Маргарита
Михайловна Атрощенко, к. б. н.<br>Инна Михайловна Есенова<br>
(сотрудники <a class="externalLink" href="http://www.gbmt.ru/ru/index.php" title="" target="_blank">Государственного
Биологического музея им. К. А. Тимирязева</a>)
</td>
</tr>
<tr class="evenRow">
<td>Редактор</td>
<td>Полина Лосева</td>
</tr>
<tr class="evenRow">
<td>Дизайн и вёрстка</td>
<td>
Полина Лосева<br>
Кира Слепченкова<br>
Вероника Кириенко<br>
Мария Матвеева
</td>
</tr>
<tr class="oddRow">
<td>Иллюстрации</td>
<td>
Екатерина Пысларь<br>
Полина Леоненко<br>
Александра Тэвдой-Бурмули
</td>
</tr>
<tr class="evenRow">
<td>Анимация</td>
<td>Демир Куулар</td>
</tr>
<tr class="oddRow">
<td>
Монтаж и съёмка
</td>
<td>Даулет Жанайдаров<br>Влас Липовецкий</td>
</tr>
<tr class="evenRow">
<td>Руководство разработкой<br>и создание платформы</td>
<td>Яков Литвин</td>
</tr>
<tr class="evenRow">
<td>Разработка<br>интерактивных заданий</td>
<td>Михаил Киселёв<br>
Григорий Зеленский<br>
Кирилл Шайдулин<br>
Андрей Мартынов<br>
Алексей Кулыгин
</td>
</tr>
<tr class="oddRow">
<td>Музыкальная заставка</td>
<td>Роман Куперман</td>
</tr>
<tr class="evenRow">
<td>Голос Лиса</td>
<td>Григорий Громов
</td>
</tr>
</tbody>
</table>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
|visibleName|О курсе|
<<lessonAdminPanel>>/%
!!!Описание
<p>Уважаемые коллеги-учителя! </p>
<p>Предлагаем вашему вниманию электронные курсы по естествознанию для учеников младшей школы. Основной курс — <b>«Окружающий мир. Естествознание»</b> — рассчитан на четыре года (с первого по четвёртый класс), дополнительный курс — <b>«Окружающий мир. Генетика»</b> — предполагает использование во втором полугодии четвёртого класса (желательно после прохождения основного курса или параллельно с последними его уроками).</p>
<p>Курсы разработаны командой специалистов <a href="https://cpm.dogm.mos.ru/">в Центре педагогического мастерства (г. Москва)</a>. Автор обоих курсов — Роман Борисович Соловьёв.</p>
<ul>
<li>
<b>О курсе</b>
<ul>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(0)').trigger('click');">Основные принципы и содержание курса «Окружающий мир. Естествознание»</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(1)').trigger('click');">Цели и структура курса «Окружающий мир. Генетика»</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(2)').trigger('click');">Общие методические рекомендации</a></b>
</li>
</ul>
</li>
</ul>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
<<lessonAdminPanel>>/%
!!!Описание
<ul>
<li>
<b><a onclick="jQuery('.lesson-name:eq(1)').trigger('click');">О курсе</a></b>
<ul>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(0)').trigger('click');">Основные принципы и содержание курса «Окружающий мир. Естествознание»</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(1)').trigger('click');">Цели и структура курса «Окружающий мир. Генетика»</a></b>
</li>
<li>
<b>Общие методические рекомендации</b>
</li>
</ul>
</li>
</ul>
<h3>Работа учеников на уроке: рисуночные конспекты, методика трёхсекундных рисунков</h3>
<p>Наш курс предполагает обычные типы уроков. В первую очередь, уроки с объяснением нового материала. Именно для них продумано основное содержание, различные типы материалов и методические ходы. Но мы предполагаем, что учитель будет уделять достаточное внимание и урокам повторения с необходимыми рубежными испытаниями, а также лабораторным и практическим работам.</p>
<p>Обратимся к наиболее важному типу занятий, к урокам объяснения нового материала.</p>
<p>Мы рекомендуем организовать урок таким образом, чтобы ученики могли вести записи в тетрадях. Для этого после каждого информационного блока предусмотрены паузы на создание рисуночного конспекта (<a onclick="jQuery('.lesson-name.hidden:eq(3)').trigger('click');">при комментированном показе видеоролика</a>). Во время урока учитель делает записи и схематичные рисунки на доске, а ученики — в тетрадях. Лучше всего ввести и закрепить правило: что на доске, то в тетради.</p>
<p>При этом рисунки ученика не обязательно должны полностью совпадать с рисунками учителя. Если ученик придумает свой символ, свой оригинальный рисунок, это можно только приветствовать (конечно, если его рисунок отражает смысл явления или понятия). Но рисунок учителя на доске всё же очень важен: большинство учеников, скорее всего, постараются повторить именно его. Кроме того, вариант учителя станет общим для всех символом изучаемого объекта или явления, который в дальнейшем будет понятным для каждого ученика.</p>
<p>Пусть вас не смущает, если не получается что-то нарисовать. Не страшно признаться ученикам, что ваши художественные способности невелики. Обычно фраза «Да, я рисую плохо, но вы в тетрадях нарисуйте хорошо» решает эту проблему. Если в классе есть художественно одарённый ребенок, к его помощи тоже можно прибегать: приглашайте его рисовать на доске.</p>
<p>К трёхсекундным рисункам можно делать подписи. Но если ученики пока ещё плохо пишут (например, в первом классе), то заставлять их делать полные записи не нужно. Конспект ученика может быть полностью рисуночным или с сокращением слов до одной-двух букв. </p>
<p>Рисунки конспекта раскрашивать не обязательно: цвет обычно не несёт дополнительной информации и даже вызывает лишние, паразитные, ассоциации и смыслы. Но если ученик рисует быстро, разрешите ему раскрасить нарисованное, чтобы не ждать остальных.</p>
<p>Для облегчения подготовки и ведения урока по такой методике мы подготовили рабочие материалы для учителя, содержащие полный текст (сценарий) урока, рекомендуемые места остановки ролика (стоп-кадры), варианты трёхсекундных рисунков и т.п. Подробнее смотри в разделе <a onclick="jQuery('.lesson-name.hidden:eq(6)').trigger('click');">Рабочий материал для учителя</a>.</p>
<p><a class="btn btn-primary" onclick="window.scrollTo(0,0)"><b>В начало</b></a></p>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
<<courseAdminPanel>>/%
|Автор |Роман Борисович Соловьёв|
|Аудитория |1–4 класс|
|Картинка в шапке |./environment/headeroms_common.jpg|
|courseId |environment0|
!!!Описание
<!--p>Этот курс — первый шаг и фундамент для изучения всего цикла естественных наук. В начальной школе, когда детей еще живо интересует устройство мира, важно сформировать у них целостную систему представлений и удовлетворить их любопытство. В основу курса легли многолетние педагогические наработки, благодаря которым Р. Б. Соловьев виртуозно «раскладывает по полочкам» основы биологии, химии и физики. Опираясь на простое, объясняет сложное: симбиоз, принципы металлургии, работу системы кровообращения.</p>
<p>
Если у вас возникли вопросы или комментарии, пишите нам на <a href="mailto:okrumir@yandex.ru">okrumir@yandex.ru</a>
</p>
<div style="width: 100%; border-top: 1px solid #B7B7B7; padding-top: 10px; margin-top: 20px;">
<img src="./environment/images/rbs.jpg" data-hidpi-src="images/rbs_2x.jpg" alt="" width="255" height="191" style="float: left;">
<p style="margin-top: 16px;"><b>Роман Борисович Соловьёв</b></p>
<p>Учитель с 20-летним стажем. Магистр психологии и педагогики. Создатель курсов пропедевтики естествознания для дошкольников и младших школьников.</p><div style="background: #B7B7B7; clear: both; height: 1px; width: 100%; margin-bottom: 20px;"></div>
</div>
<h2>
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Окружающий мир. 1й класс">1 класс. <span style="font-weight: 400;">Мир живого</span></a>
</h2>
<h2>
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Окружающий мир. 2 класс">2 класс. <span style="font-weight: 400;">Мир неживого</span></a>
</h2>
<h2>
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Окружающий мир. 3 класс">3 класс. <span style="font-weight: 400;">Тело человека</span></a>
</h2>
<h2>
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Окружающий мир. 4 класс"><b>4 класс.</b> <span style="font-weight: 400;">Физические и химические явления</span></a>
</h2-->
<h2>Основной курс:</h2>
<h2 style="font-size: 26px; font-weight: 800; line-height: 28px; margin-bottom: 0;">
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Окружающий мир. 1й класс">
1 класс. <span style="font-weight: 400;">Мир живого</span>
</a>
</h2>
<p style="font-size: 18px; line-height: 26px; margin-bottom: 28px;">
Животные, растения, грибы, бактерии, вирусы и лишайники
</p>
<h2 style="font-size: 26px; font-weight: 800; line-height: 28px; margin-bottom: 0;">
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Окружающий мир. 2 класс">
2 класс. <span style="font-weight: 400;">Мир неживого</span>
</a>
</h2>
<p style="font-size: 18px; line-height: 26px; margin-bottom: 28px;">
Разнообразие материалов, их получение и использование. Карты
</p>
<h2 style="font-size: 26px; font-weight: 800; line-height: 28px; margin-bottom: 0;">
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Окружающий мир. 3 класс">
3 класс. <span style="font-weight: 400;">Тело человека</span>
</a>
</h2>
<p style="font-size: 18px; line-height: 26px; margin-bottom: 28px;">
Семь систем органов. Органы чувств. Правила гигиены
</p>
<h2 style="font-size: 26px; font-weight: 800; line-height: 28px; margin-bottom: 0;">
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Окружающий мир. 4 класс">
4 класс. <span style="font-weight: 400;">Физические и химические явления</span>
</a>
</h2>
<p style="font-size: 18px; line-height: 26px; margin-bottom: 58px;">
Космос, вода, воздух, электричество, магнетизм, свет, тепло, тяжести
</p>
<h2>Дополнительные курсы:</h2>
<h2 style="font-size: 26px; font-weight: 800; line-height: 28px; margin-bottom: 0;">
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Генетика">
Генетика
</a>
</h2>
<p style="font-size: 18px; line-height: 26px; margin-bottom: 58px;">Клетка, гены, законы Менделя, селекция, молекулярная генетика</p>
<br>
<br>
<br>
<p style="font-size: 18px; line-height: 26px; margin-bottom: 30px;">Курс создан при поддержке:</p>
<!--a href="http://cpm.dogm.mos.ru/">
<img src="images/cpm.jpg" style="width: 168px; margin-bottom: 46px;">
</a>
<a href="http://childrenscience.ru/">
<img src="images/cs.png" style=" width: 192px; margin-right: 76px; margin-bottom: 46px;">
</a-->
<table class="logos">
<tbody>
<tr class="evenRow">
<td align="center"><a href="http://cpm.dogm.mos.ru/" target="_blank"><img
src="http://cpm.dogm.mos.ru/upload/iblock/59b/logo2015_240kh92.jpg" style="width: 200px;"/></a></td>
<td align="center"><a href="http://childrenscience.ru" target="_blank"><img src="images/logo_small.svg"
style="width: 200px; margin-right: 30px;"/></a>
</td>
</tr>
</tbody>
</table>
!!!In title
!%/
<<courseAdminPanel>>/%
|Автор ||
|Аудитория ||
|Картинка в шапке |./environment/headeroms_01.jpg|
|courseId |environment|
|visibleName |1 класс|
|lessonsThumbsFolder|environment/lessons_thumbs/|
!!!Описание
<p>В первом классе курс "Окрущающий мир. Естествознание" посвящён разнообразию живого. Он поделен на блоки, соответствующие четырём царствам живой природы: животным, растениям, грибам и бактериям, а также лишайникам и вирусам. Мы обсуждаем разнообразие организмов, их роль в природе и значение для человека. </p>
<h2>Введение</h2>
<p>В блоке «Введение» мы задаём структуру курса на два года вперёд, делим окружающий мир на мир живого и неживого. Неживую природу мы оставляем для второго класса и начинаем обсуждать живое. Сначала мы изучаем признаки живого и делим мир живого на четыре главные царства: животных, растений, грибов и бактерий. Эти царства размещены на воображаемой карте, и по ней мы намечаем маршрут путешествия. Кроме четырёх царств, мы отмечаем на карте город лишайников — составных организмов, образованных из грибов и одноклеточных водорослей или особых фотосинтезирующих бактерий. </p>
<h2>Животные</h2>
<p>Следующие блоки соответствуют царствам живой природы. И первое из них —царство животных. Мы обсуждаем основные признаки животных: подвижность, питание представителями всех царств и ограниченный рост. Эти важные характеристики животных впоследствии будут противопоставлены аналогичным признакам растений. Мы изучаем животных относительно долго, существенно дольше, чем жителей других царств. Это связано, во-первых, с большим интересом учеников именно к животным, а во-вторых, тема животных для учеников несложная, не требующая больших усилий, поэтому в начале первого класса они могут больше времени и сил посвятить освоению более сложных предметов — математики и русского языка (то есть письма и счёта).
Животных мы делим сначала на беспозвоночных и позвоночных, а потом рассматриваем их разнообразие: от самых древних и просто устроенных существ (медуз и их родственников) до наиболее сложных и развитых, то есть млекопитающих. Этот порядок изучения животных соответствует классификации, принятой в школьном курсе биологии. </p>
<h2>Растения </h2>
<p>Так же как мы это сделали с животными, мы даём растениям характеристику: описываем наиболее важные их свойства. Больше всего внимания мы уделяем процессу фотосинтеза, то есть процессу образования питательных веществ и кислорода. После этого кратко обсуждаем строение растения и функции его частей. Так же как царство животных, мы делим растения на два крупных блока: древних нецветковых и наиболее совершенных цветковых растений, а потом обсуждаем их разнообразие.</p>
<h2>Сельское хозяйство </h2>
<p>После изучения растений и животных мы не сразу переходим к следующему царству. Дело в том, что растения и животные в жизни людей играют огромную роль, и эту роль мы раскрываем в блоке «Сельское хозяйство». Мы знакомим учеников с разнообразием пищевых растений, особое внимание уделяем злакам, их возделыванию и сбору урожая. Кроме пищевых растений, рассказываем и о технических. После этого рассматриваем животноводство, обсуждаем виды наиболее важных домашних животных, их пользу и особенности ухода.</p>
<h2>Грибы</h2>
<p>Закончив блок «Сельское хозяйство», мы переходим к царству грибов. Как и прежде, мы начинаем рассказ об этих существах с их характеристики, с признаков. Обзор разнообразия грибов нам было удобно совместить с разговором о значении их для человека. То есть мы показываем разнообразие полезных и вредных грибов.</p>
<h2>Бактерии, лишайники, вирусы</h2>
<p>Рассказ о бактериях выстроен аналогично рассказу о царстве грибов: сперва урок с описанием особенностей, следом — обзор разнообразия. При этом обзор разнообразия бактерий также основан на представлениях об их пользе и вреде для человека. На первом же уроке мы показываем, насколько бактерии необыкновенные существа, а дальше стараемся рассказать о той огромной пользе, которую бактерии приносят человеку. Но и о вреде бактерий мы не забываем: для этой темы предусмотрен отдельный урок.
Кроме того, и в блоке «Грибы», и в блоке «Бактерии» есть урок о роли этих организмов в природе, то есть об их экологическом значении.</p>
<p>В целом линия пользы и вреда от разных объектов и явлений проходит через весь курс с первого до четвёртого класса. Просто в первом классе мы обсуждаем пользу и вред (опасности) от разных организмов, а, например во втором классе, речь идёт уже о пользе и опасностях от неживых объектов. Похожие темы поднимаются и на тех последних уроках, которые ещё связаны с картой живой природы — на уроках о лишайниках и вирусах. На уроке про город лишайников мы вводим понятие симбиоза, обсуждаем строение и особенности этих составных организмов. Потом переходим к вирусам. Вирусы изначально на нашей карте не присутствовали, но мы их дорисовываем, размещая это царство в виде острова между миром живого и неживого. Традиционно двусмысленное отношение к вирусам (как к существам, то есть живым организмам, или как к веществам) в пространстве нашего курса решается просто через особое положение их на карте: между двумя мирами. </p>
<h2>Сообщества </h2>
<p>После изучения четырёх царств живой природы мы напоминаем ученикам, что наша карта и само деление природы на царства существует только в нашем воображении и в воображении учёных. А на самом деле все живые организмы существуют вместе и очень сильно влияют друг на друга. С этих идей мы переходим к экологическому и природоохранному блоку нашего курса. На первом уроке мы объясняем ученикам, что такое сообщество, а за несколько последующих уроков раскрываем это понятие на примерах нескольких конкретных сообществ: леса, луга и озера. От темы сообществ мы переходим к вопросам охраны природы. И последний урок нашего курса в первом классе посвящён летним заданиям. Впрочем, этот урок подходит и ко всем последующим годам, так как на нём мы рассказываем ученикам о разнообразии методов исследования природы и кратко описываем те методы, которые можно использовать во время каникул.</p>
<h2>
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Окружающий мир">Весь курс</a>
</h2>
!!!In title
!%/
<<courseAdminPanel>>/%
|Автор ||
|Аудитория ||
|Картинка в шапке |./environment2/headeroms_02.jpg|
|courseId | environment2|
|lessonsThumbsFolder|environment2/JPG/thumbnails/|
|visibleName |2 класс|
!!!Описание
<p>
Во втором классе курс "Окружающий мир. Естествознание" посвящён миру неживого, что соответствуют традиционным для окружающего мира темам о телах и веществах. Поэтому на первых же уроках мы вводим понятия тела и вещества. Далее мы делим мир неживого на два царства в соответствии с двумя группами веществ: царство органических веществ и царство неорганических веществ. При этом мы сразу вводим критерии для различения этих веществ: органические — это те, что получаются из живых организмов или при непосредственном участии живых организмов, а также то, что получают из нефти. Неорганические вещества мы разделили на металлы и камни.
После тем об органических и неорганических веществах мы обсуждаем тему «Почва». В конце курса второго класса мы изучаем блок «Топография», то есть учим понимать карты и планы.</p>
<h2>Органические вещества</h2>
<p>Поскольку в первом классе мы изучали мир живого, то второй класс начинаем с мира органических веществ, которые ближе организмам и по названию, и по происхождению: их получают из нефти или с помощью живых организмов.
О тех органических веществах, которые получают с помощью живого, мы говорили в первом классе в разных блоках. Например, на уроках о сельском хозяйстве. Воск, спирт, антибиотики, сахар уже встречались ученикам в первом классе, поэтому их нетрудно идентифицировать как органические вещества. В связи с этим мы сразу переходим к нефти: её добыче, транспортировке и тем веществам, которые из неё производятся. В этом блоке вводится понятие полезного ископаемого, а также начинается тематическая линия производственных процессов, которая проходит через весь курс второго класса. Кроме нефти в царстве органических веществ мы встречаемся и другими полезными ископаемыми: углём, природным газом, торфом.</p>
<h2>Металлы и камни</h2>
<p>После знакомства с царством органических веществ мы переходим к веществам неорганическим и сперва изучаем металлы. Подробнее всего мы обсуждаем главный металл человечества — железо, — но рассказываем и про другие, цветные, металлы. Далее мы переходим к камням. Сперва мы изучаем виды камней по происхождению: магматические, осадочные и метаморфические. А дальше мы делим их более понятным для детей способом на простые, поделочные и драгоценные, отводя по одному уроку на каждый из этих видов. Наконец, мы знакомимся с рудами, и это даёт нам возможность описать изготовление железа (чугуна и стали). Мы знакомим учеников с устройством домны и электропечи для выплавки стали.</p>
<h2>Искусственные камни</h2>
<p>После натуральных камней мы переходим к камням искусственным, прежде всего, к стеклу и цементу. Мы обсуждаем историю этих материалов, их получение и применение.
</p>
<h2>Окаменелости и почва</h2>
<p>Наконец, мы снова делаем шаг в сторону живой природы и обсуждаем окаменелости.
</p>
<p>После окаменелостей мы открываем новый остров — новый объект, который, подобно вирусам, заслуживает на нашей карте обособленного положения между мирами живого и неживого. Это почва. В блоке, посвящённом почве, мы обсуждаем её появление, состав и свойства, влияющие на плодородие.
</p>
<h2>Топография</h2>
<p>После занятий о почве мы переходим к блоку о картах и планах. Этот объёмный блок предваряет темы по топографии и географии в средней школе. Дети учатся читать планы, распознавать на них самые важные и часто встречающиеся объекты. От планов мы переходим к картам, делаем обзор карты мира и карты России и в конце блока знакомим учеников с природными зонами нашей страны.</p>
<p>
Блок «Карты и планы» относительно автономный, поэтому его можно перенести из второго класса в начало третьего без нарушения логики и внутренних связей с другими блоками. Такой перенос допустим на усмотрение учителя и может сделать количество уроков во втором и третьем классе более сбалансированным.
</p>
<h2>
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Окружающий мир">Весь курс</a></h2>
!!!In title
!%/
<<courseAdminPanel>>/%
|Автор ||
|Аудитория ||
|Картинка в шапке |./environment3/headeroms_03.jpg|
|courseId | environment3|
|lessonsThumbsFolder|environment3/lessons_thumbs/|
|visibleName |3 класс|
!!!Описание
<p>В третьем классе курс "Окружающий мир. Естествознание" посвящён процессам в мире живого, то есть физиологии. В первом классе некоторые физиологические процессы мы уже рассматривали. Например, мы говорили о фотосинтезе, о превращениях гусеницы в бабочку и т. п. На этот раз мы сосредоточимся на процессах жизнедеятельности в теле человека. При этом разговор о них будет достаточно общим, чтобы эти процессы стали примерами для аналогичных превращений и в других живых существах.
Курс третьего класса делится на блоки в соответствии с системами органов человека: опорно-двигательной, кровеносной, дыхательной, пищеварительной, выделительной и нервной. Мы сочли необязательным рассказывать третьеклассникам о репродуктивной и эндокринной системах. Это связано отчасти со сложностью этих тем, а отчасти с тем, что они пока очень мало знакомы детям и при их изучении нет возможности обратиться к опыту учеников в той мере, в какой это возможно, скажем, в темах о дыхании или пищеварении. Каждый блок, каждую систему органов мы начинаем с описания её роли в организме. Далее мы обсуждаем строение и работу наиболее важных органов этой системы и заканчиваем в ряде случаев уроками с медицинской тематикой.</p>
<h2>Опорно-двигательная система</h2>
<p>Первыми в курсе третьего класса идут уроки про части тела и опорно-двигательную систему. Из дидактических соображений мы делим её на опорную и двигательную. После обсуждения роли опорной системы мы рассматриваем строение костей и их соединение. После этого мы знакомим учеников с разнообразием костей скелета, показываем и называем самые крупные кости тела. Аналогично устроен блок о двигательной системе: мы обсуждаем роль скелетных мышц, упоминая среди прочего дыхательные и мимические мышцы, потом знакомим учеников со строением и разнообразием мышц тела.</p>
<h2>Кровеносная система</h2>
<p>Этот блок уроков начинается с обсуждения состава и функций крови. Далее мы обсуждаем строение и работу сердца и сосудов. Когда ученики узнают про основные части кровеносной системы, можно изучать и круги кровообращения. </p>
<h2>Дыхательная система</h2>
<p>Следом в нашем курсе идёт дыхательная система. Ей посвящён только один урок, но в нём мы рассматриваем множество сложных вопросов: и процесс дыхания как получение энергии из пищи, и строение и работу дыхательных путей, и газообмен в лёгких. В этом нам помогает знание кругов кровообращения, которые изучаются непосредственно перед этим уроком.</p>
<h2>Пищеварительная система</h2>
<p>Этот большой блок начинается с разговора о том, из каких веществ состоит наша пища. После этого шаг за шагом рассматриваются отделы желудочно-кишечного тракта, основные особенности их строения и работы. </p>
<h2>Выделительная и нервная система</h2>
<p>Далее по одному уроку посвящено выделительной и нервной системам. Мы обсуждаем строение почек и их работу, а в нервной системе — головной и спинной мозг и звенья (этапы) рефлекса. К нервной системе близка тема органов чувств. Мы рассматриваем органы зрения, слуха, а так же кожу. Кратко про обоняние мы говорили на уроке о дыхательной системе, поэтому на уроке про органы чувств про обоняние мы не говорим. </p>
<h2>Гигиена</h2>
<p>Последние уроки третьего класса посвящены гигиене. В них рассматриваются все изученные системы органов с точки зрения профилактики болезней.
</p>
<h2>
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Окружающий мир">Весь курс</a>
<h2>
!!!In title
!%/
<<courseAdminPanel>>/%
|Автор ||
|Аудитория ||
|Картинка в шапке |./environment4/headeroms_04.jpg|
|courseId |environment4|
|lessonsThumbsFolder|environment4/lessons_thumbs/|
|visibleName |4 класс|
!!!Описание
<p>В четвёртом классе курс "Окружающий мир. Естествознание" посвящён процессам в мире неживого, то есть химическим и физическим явлениям. Однако начинается он с блока о космосе. В нём мы рассматриваем разнообразие космических объектов, а потом находим эти объекты в созвездиях, галактиках и Солнечной системе. Отдельный урок посвящён планетам Солнечной системы. В конце блока мы рассказываем ученикам о космонавтике, её истории и современности.
После блока о космосе мы переходим к основному содержанию курса четвёртого класса и делим его на отдельные блоки, которые в этом курсе называются стихиями природы. Таких стихий мы предлагаем семь: воздух, вода, электричество, магнетизм, свет, тепло и тяжесть. Они соотносятся с натурфилософскими идеями древних мыслителей о стихиях, но есть и различия: мы ввели стихии электричества и магнетизма, которые позже объединяем в единую электромагнитную. Кроме того, древнюю стихию огня мы рассматриваем по отдельности как свет и тепло. Стихию земли мы назвали стихией тяжести.
Каждый блок начинается с обсуждения сути той или иной стихии, с обсуждения того, что она собой представляет, какова её природа. Далее идут занятия, описывающие основные свойства стихии, а последний урок блока чаще всего касается её пользы, значения в природе и роли в жизни человека.</p>
<h2>Воздух</h2>
<p>Этот блок готовит учеников к пониманию молекулярного состава веществ. Сами понятия молекул и атомов будут введены позже, в блоке о воде. Здесь же нам достаточно показать воздух как смесь газов. Далее мы обсуждаем свойства воздуха и начинаем с наиболее важного и понятного — с конвекции. От конвекции в комнате мы переходим к конвекции в атмосфере — к ветру. С ветра начинается разговор о метеорологии — сквозная тема всего курса четвёртого класса. Далее мы обсуждаем ещё одно важное явление — атмосферное давление. И в результате связываем силу и направление ветра с атмосферным давлением. Далее мы обсуждаем звук, ведь звук для нас чаще всего распространяется именно через воздух. Последний урок блока посвящён разным видам пользы от воздуха, начиная с дыхания и заканчивая пневматическими устройствами.
</p>
<h2>Вода</h2>
<p>Блок, посвящённый воде, начинается с подробного разговора о том, что такое молекулы и атомы. Мы знакомим учеников с молекулой воды и с некоторыми несложными молекулами известных им веществ. На следующих уроках мы погружаем в воду разные тела и наблюдаем, что из этого получается, то есть описываем разные явления. Один из таких уроков посвящён растворению, его природе и тому, как в этом процессе участвуют различные мыльные вещества. Другой урок посвящён закону Архимеда: мы отвечаем на вопрос, почему одни предметы тонут, а другие плавают. После этих уроков мы переходим от жидкой воды к газообразной, а далее к твёрдой — ко льду. Мы обсуждаем испарение воды, её кипение, образование пара и связанные с этим метеоявления: влажность воздуха и осадки. Затем следует урок про лёд. Последний урок блока посвящён роли воды в природе и её значению для человека. На этом уроке мы обсуждаем очистку воды человеком и её естественную очистку в природе. Поскольку такая естественная очистка связана с круговоротом воды в природе, то и о круговоротах воды мы тоже говорим.
</p>
<h2>Электричество и магнетизм </h2>
<p>После блоков о воздухе и воде мы переходим к блокам о стихиях электричества и магнетизма. По аналогии с другими блоками тему электричества мы начинаем с урока о зарядах, то есть о том, что лежит в основе электрических явлений. Далее мы рассказываем о движении зарядов, то есть об электрическом токе, и наиболее важных электрических устройствах. К теме электрических устройств близки проводники и источники тока. Об их разнообразии мы тоже рассказываем ученикам. После этого мы переходим к магнетизму. Задача этого урока не столько познакомить учеников с магнитами, сколько показать, что магнетизм и электричество — родственные явления, единые по природе. И главное, что подтверждает их единство, — это возможность получать электрические явления с помощью магнитных и наоборот. Как, например, электромагниты или индукционный ток в электрогенераторах. Так мы вводим представление об электромагнетизме. В конце блока, посвящённого электромагнетизму, мы, как обычно, предлагаем урок о роли этой стихии в жизни человека. Мы обсуждаем электрические приборы в доме и на улице, а также рассказываем о правилах поведения во время грозы.
</p>
<h2>Свет</h2>
<p>Блок электромагнетизма позволяет нам перейти к световым явлениям и объяснить природу света как электромагнитной волны. Далее в этом блоке мы обсуждаем наиболее важные световые явления: распространение, отражение, поглощение и пропускание света. Мы объясняем ученикам природу цвета, природу преломления и останавливаемся подробнее на самых начальных представлениях об оптике.
В блоке о свете мы очень много обсуждаем роль света в жизни человека, поэтому отдельный урок на эту тему, аналогичный последним урокам в других блоках, здесь не предусмотрен.
</p>
<h2>Тепло</h2>
<p>Следующая стихия — стихия тепла. На первом уроке мы объясняем ученикам физическую природу тепла, то есть движение молекул вещества с разной скоростью, а после делаем акцент на процессах теплопередачи. Эти процессы на следующем уроке сыграют важную роль в объяснении того, как тепло сохраняют и измеряют. Урок о сохранении и измерении тепла аналогичен урокам предыдущих блоков, посвящённых роли стихии в жизни человека.
</p>
<h2>Земля (тяжесть)</h2>
<p>Последний блок посвящён тяжести. Поскольку понятия массы и веса сложны для младшей школы, мы рассчитываем на интуитивное понимание учениками этих явлений и даже называем их бытовым словом «тяжесть». Сначала мы говорим о наиболее важных принципах, позволяющих инженерам создавать массивные конструкции — дома, мосты, башни — лёгкими и прочными. Это принципы ребра жёсткости и арки. Также мы обсуждаем принцип слабого места, то есть говорим о том, что прочность конструкции определяется прочностью самого слабого (то есть наименее прочного) места в ней. Все эти принципы мы иллюстрируем на примерах из техники или обыденной жизни.
Следующий урок посвящён простым механизмам: рычагу и наклонной плоскости. Мы обсуждаем правило рычага и приводим множество примеров использования рычагов и наклонных плоскостей в быту и технике. Наконец, последний урок курса посвящён силе трения — силе, которая и интуитивно, и с научной точки зрения связана с тяжестью.
В первой части урока мы рассматриваем только трение скольжения, поэтому эта часть урока невелика. И поскольку этот урок последний в курсе, то вторая часть урока посвящена обзору всего курса окружающего мира, начиная с первого класса.
</p>
<h2>Сквозные темы курса в четвёртом классе</h2>
<p>В курсе четвёртого класса есть несколько тематических линий, проходящих через все блоки, но не выделенных в отдельные темы уроков. </p>
<h3>Метеорология</h2>
<p>Об одной из таких линий мы уже говорили выше: это метеорологические явления. Погода очень хорошо понятна ученикам, и физические законы, которые лежат в основе погодных явлений, в связи с ними становятся понятнее. Кроме того, для каждого погодного явления мы упоминаем и связанный с ним измерительный прибор, то есть метеоприбор. Так, в разных уроках нашего курса фигурируют барометр, термометр, анемометр, гигрометр и даже анеморумбометр. Кроме того, мы обсуждаем показания этих приборов с точки зрения погоды. Например, мы объясняем, какая влажность воздуха комфортна, а какая — нет, какая скорость ветра может не беспокоить, а какая требует внимания или даже выполнения некоторых правил безопасности. </p>
<h3>Правила безопасности</h2>
<p>Правила безопасности — ещё одна важная линия курса. Прежде всего, мы обсуждаем опасности естественные: ураганы, грозы, тонкий лёд на озере и т. п. Но и правила обращения с некоторыми предметами — например, электрическими приборами, — в нашем курсе тоже можно встретить. Впрочем, тема правил безопасности проходит через уроки всех классов, не только четвёртого.</p>
<h3>Истории открытий</h2>
<p>Мы стараемся во всех классах стараемся показать историю того или иного научного открытия. В четвёртом классе эта линия проходит особенно выразительно. Мы рассказываем и про опыт Шееле, и про открытия Ньютона, и про случайное наблюдение Эрстедом появления магнитного поля вокруг провода, по которому тёк электрический ток, и про многие другие исторические примеры научных достижений.</p>
<h3>Транспорт</h2>
<p>Наконец, в четвёртом классе есть линия разных видов транспорта. Говоря о той или иной стихии, мы упоминаем и соответствующий ей транспорт: водный и воздушный, с электрическими моторами и с бензиновыми, и так далее. </p>
<h2>
<a href="javascript:;" onclick="onClickTiddlerLink(event)" class="tiddlyLink tiddlyLinkExisting" refresh="link" tiddlylink="Окружающий мир">Весь курс</a></h2>
!!!In title
!%/
Основные принципы и содержание курса «Окружающий мир. Естествознание»
<<lessonAdminPanel>>/%
!!!Описание
<ul>
<li>
<b><a onclick="jQuery('.lesson-name:eq(1)').trigger('click');">О курсе</a></b>
<ul>
<li>
<b>Основные принципы и содержание курса «Окружающий мир. Естествознание»</b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(1)').trigger('click');">Цели и структура курса «Окружающий мир. Генетика»</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(2)').trigger('click');">Общие методические рекомендации</a></b>
</li>
</ul>
</li>
</ul>
<h3>Основные принципы курса</h3>
<h4>Преемственность</h4>
<p>Предмет окружающий мир, даже только в его естественнонаучной части, продолжается в средней школе целым веером дисциплин: химией, физикой, географией, биологией, астрономией. В младшей школе мы не найдём другого предмета, который бы имел преемственность с таким количеством предметов средней школы. Поэтому именно преемственность стала для нас одним из важнейших содержательных и организационных принципов курса, одним из его приоритетов.</p>
<h4>Научность</h4>
<p>Одна из главных задач перечисленных выше школьных предметов — обучение основам соответствующих наук. Поэтому преемственность с этими школьными предметами требует высокой степени научности. В курсе окружающего мира мы стремились заложить хорошую научную базу для изучения естественных наук в средней школе. Эта база касается и естественнонаучной эрудиции, и освоения наиболее важных понятий соответствующих научных дисциплин.</p>
<h4>Доступность и всесторонность</h4>
<p>Нетрудно заметить: почти всё, что покрывается содержанием курса «Окружающий мир. Естествознание», все объекты и явления, о которых идёт речь в курсе, для ученика младшей школы оказываются очень знакомыми. И мы старались рассказать о них всесторонне, то есть не оставляя в окружающем мире ребёнка «белых пятен». </p>
<h4>Системность изложения</h4>
<p>Большое количество информации в курсе — научных фактов, понятий — требует ясной структуры и системы изложения. Для того чтобы ученики хорошо ориентировались в курсе, в начале каждого блока мы предлагаем им карты путешествий или понятные планы-обзоры, охватывающие относительно большое число предстоящих уроков. </p>
<p>Итак, преемственность, научность, системность, а также доступность и ясная последовательность изложения — это основные принципы, которыми мы руководствовались при разработке курса.</p>
<h3>Содержание курса</h3>
<p>Курс «Окружающий мир. Естествознание» охватывает обширный материал и рассчитан на большое количество часов классной и домашней работы. Чтобы лучше представить общую структуру и принципы содержательной организации курса, мы предлагаем следующую таблицу.</p>
<img src="images/1.jpg" width="100%" />
<p>Прежде всего, окружающий мир мы разделили на <b>мир живого</b> и <b>мир неживого</b>. Это деление возникло в науке давно, и такой подход очень хорошо понятен ученикам любого возраста.</p>
<p>Кроме того, мы поделили курс на две крупные части. Первая часть, рассчитанная на первый и второй классы, посвящена разнообразию окружающего мира. То есть в первом и втором классе наша основная цель — развитие <b>эрудиции</b>. Соответственно, в первом классе мы обсуждаем разнообразие живой природы, а во втором — неживой.</p>
<p>Если первую часть курса можно условно назвать статической, то вторая посвящена в большей степени процессам («превращениям») в природе, то есть динамике. Таким образом, третий класс посвящён <b>процессам</b> в мире живого (и в таблице он находится на пересечении мира живого и динамического подхода), а четвёртый — процессам в мире неживого.</p>
<p>Соответственно, в третьем классе мы рассматриваем процессы в живой природе и делаем это на примере человеческого организма, то есть третий класс посвящён анатомии и физиологии человека. А четвёртый класс находится на пересечении мира неживого и темы процессов, и здесь мы изучаем химические и физические явления.
Можно заметить, что в эту логику не очень хорошо вписываются география и астрономия. Для них отведено специальное время (см. в таблице темы «Топография» и «Космос»).
После изучения всего курса «Окружающий мир. Естествознание» можно перейти к дополнительным материалам, в том числе к курсу генетики. </p>
<p>Подробнее о содержании курсов окружающего мира и генетики можно узнать в предисловиях к соответствующим разделам сайта:
<a href="#filter:%22%5B%5BОкружающий мир. 1й класс%5D%5D%22" tiddler="Окружающий мир. 1й класс" onclick="config.options.txtLessonNumber=0">1 класс</a>,
<a href="#filter:%22%5B%5BОкружающий мир. 2 класс%5D%5D%22" tiddler="Окружающий мир. 2й класс" onclick="config.options.txtLessonNumber=0">2 класс</a>,
<a href="#filter:%22%5B%5BОкружающий мир. 3 класс%5D%5D%22" tiddler="Окружающий мир. 3й класс" onclick="config.options.txtLessonNumber=0">3 класс</a>,
<a href="#filter:%22%5B%5BОкружающий мир. 4 класс%5D%5D%22" tiddler="Окружающий мир. 1й класс" onclick="config.options.txtLessonNumber=0">4 класс</a>,
<a href="#filter:%22%5B%5BГенетика%5D%5D%22" tiddler="Генетика" onclick="config.options.txtLessonNumber=0">Генетика</a>.
</p>
<p><a class="btn btn-primary" onclick="window.scrollTo(0,0)"><b>В начало</b></a></p>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
|visibleName|1. Знакомство с генетикой|
|galleryFolder|environment5/galleries/501. Урок-знакомство с генетикой/|
<<lessonAdminPanel>>/%
!!!Описание
Курс генетики в младшей школе начинается с блока о классической (менделевской) генетике (первые шесть уроков). На первом уроке ученики получают начальное представление о самой науке, её названии и предмете. Далее вводится представление об информации как об одном из признаков живого, говорится о роли информации в развитии и работе живого организма.
!%//%
!gallery data
{"data":[
["01 Мышата-апельсинки.jpg"],
["02 Мышата.jpg"],
["03 Зародыш.jpg"],
["04 Развитие зародыша.jpg"],
["05 Мышонок с хоботом и тигровым хвостом.jpg"],
["06 Инструкция.jpg"],
["07 Клетки с инструкциями.jpg"],
["08 Клетки в организме.jpg"],
["09 Организмы и инструкции.jpg"],
["10 Красный мухомор.jpg"],
["11 Пять признаков живого.jpg"],
["12 Развитие сосны.jpg"],
["13 Три поколения.jpg"]
],
"options":{}}
!%/
<<lessonAdminPanel>>/%
!!!Описание
<ul>
<li>
<b><a onclick="jQuery('.lesson-name:eq(2)').trigger('click');">Как пользоваться материалами курса</a></b>
<ul>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(3)').trigger('click');">Видеоурок</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(4)').trigger('click');">Интерактивные задания</a></b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(5)').trigger('click');">Конспект для ученика</a></b>
</li>
<li>
<b>Рабочий материал для учителя</b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(7)').trigger('click');">Галерея</a></b>
</li>
</ul>
</li>
</ul>
<img src="images/rm.jpg" width="100%" />
<p>Рабочий материал (РМ) — основной свод рекомендаций для учителя по каждому уроку. РМ содержит:</p>
<ul>
<li>текст сценария, по которому снят видеоролик, с делением на разделы и смысловые блоки;</li>
<li>стоп-кадры с таймингом, то есть указание на время в видеоролике в конце смысловых блоков; ориентируясь на этот тайминг, учитель может останавливать видео и обсуждать с учениками увиденный фрагмент; </li>
<li>варианты схематичных изображений по методике трёхсекундного рисунка; эти изображения лежат в основе ученических рисуночных конспектов, которые они делают самостоятельно в тетрадях (подробнее о методике трёхсекундных рисунков см. ниже);</li>
<li>надписи на доске, которые мы рекомендуем делать по ходу урока; обычно это: заголовки, подписи, важные термины и т.п. (это называется «текст на доске»);</li>
<li>краткие научные и методические комментарии, пояснения и дополнительные сведения для учителя по содержанию урока (приведены в конце рабочего материала, в тексте сценария даны соответствующие ссылки).</li>
</ul>
<p>Готовясь к уроку, заранее ознакомьтесь с содержанием РМа и видеоролика. Вы можете полностью придерживаться сценария или изменять и дополнять его по своему усмотрению. Вне зависимости от того планируете вы тем или иным способом использовать на уроке видеоролик или нет (см. варианты использования видеоролика – гиперссылка на раздел «Видеоурок»), мы рекомендуем оставлять время для записей и рисунков по каждому блоку. </p>
<p>Игру в «Три секунды» удобно проводить за 5–7 минут до конца урока (в самом начале изучения курса). Предлагайте ученикам в числе прочего рисовать те предметы или понятия, которые понадобятся на следующем уроке. Правила этой игры очень просты: ведущий (обычно учитель) предлагает то, что нужно очень быстро нарисовать. Когда участники приступили к работе, ведущий медленно считает до трёх. При этом совершенно не обязательно считать по секундам: обычно в этой игре реально на рисунок уходит 10–15 секунд. Во время творческого процесса мы советуем ходить по рядам и смотреть на результаты. Это даст возможность комментировать работу, удостовериться, что ученики правильно поняли задание, и понять, когда пора дать команду об окончании игры. </p>
<p>Подробнее познакомиться с методикой работы с трёхсекундными рисунками и другими материалами можно <a onclick="jQuery('.lesson-name:eq(6)').trigger('click');">на курсах повышения квалификации для учителей</a>.</p>
<p>Условные обозначения, принятые в рабочих материалах, помогут учителю быстро ориентироваться в его тексте:</p>
<img src="images/for www.jpg" width="100%" />
<p><a class="btn btn-primary" onclick="window.scrollTo(0,0)"><b>В начало</b></a></p>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/
<<lessonAdminPanel>>/%
!!!Описание
<ul>
<li>
<b><a onclick="jQuery('.lesson-name:eq(1)').trigger('click');">О курсе</a></b>
<ul>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(0)').trigger('click');">Основные принципы и содержание курса «Окружающий мир. Естествознание»</a></b>
</li>
<li>
<b>Цели и структура курса «Окружающий мир. Генетика»</b>
</li>
<li>
<b><a onclick="jQuery('.lesson-name.hidden:eq(2)').trigger('click');">Общие методические рекомендации</a></b>
</li>
</ul>
</li>
</ul>
<p>Курс «Окружающий мир. Генетика» рассчитан на учеников четвёртого класса, но будет полезен и более старшим школьникам, вплоть до седьмого класса включительно. </p>
<h3>Цели курса</h3>
<ol>
<li>Познакомить учеников с основными понятиями генетики.</li>
<li>Представить обзор как исторической части генетики (законов Менделя), так и современных воззрений (молекулярной генетики), показать единство этих подходов.</li>
</ol>
<h3>Структура курса</h3>
<p>Курс состоит из десяти уроков и делится на два блока. Первый блок состоит из шести уроков и посвящён <b>классической генетике</b>, то есть опытам Менделя и основным понятиям менделевской генетики. </p>
<p>Во втором блоке курса четыре урока. Они посвящены клеточным основам генетики: информационным молекулам и белкам, их строению и работе в ядре. В последнем уроке мы совмещаем представления классической и <b>молекулярной генетики</b>, показываем их единство.</p>
!%//%
!gallery data
{"data":[
[""]
],
"options":{}}
!%/